{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Unlink the home's device (root admin). The home keeps its data; the device shows set-up again.",
      "errors": [
        {
          "name": "NotRootAdmin"
        },
        {
          "name": "HomeNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "homeId": {
              "format": "tid",
              "type": "string"
            }
          },
          "required": [
            "homeId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "deviceId": {
              "type": "string"
            },
            "status": {
              "type": "string"
            }
          },
          "required": [
            "deviceId",
            "status"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.device.unlink",
  "lexicon": 1
}
