ai.newnal.illi.device.getState
Everything the device needs to render: status, onboarding code while waiting, home, parents, members, pending requests and the acknowledged event cursor.
Details · query
| Kind | query |
|---|---|
| Authority | device.illi.newnal.ai |
| Indexed |
Checks
Validunlimited-stringdefs.homeRef.properties.nameNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.deviceIdNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.statusNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.onboardingCode.properties.codeNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.pendingRequest.properties.requestIdNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.pendingRequest.properties.typeNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"homeRef": {
"properties": {
"homeId": {
"format": "tid",
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"homeId",
"name"
],
"type": "object"
},
"main": {
"description": "Everything the device needs to render: status, onboarding code while waiting, home, parents, members, pending requests and the acknowledged event cursor.",
"errors": [
{
"name": "DeviceNotFound"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"deviceId": {
"type": "string"
},
"home": {
"ref": "#homeRef",
"type": "ref"
},
"lastEventId": {
"type": "integer"
},
"members": {
"items": {
"ref": "ai.newnal.illi.home.defs#memberView",
"type": "ref"
},
"type": "array"
},
"onboardingCode": {
"ref": "#onboardingCode",
"type": "ref"
},
"parent1": {
"ref": "#parent1",
"type": "ref"
},
"parents": {
"items": {
"ref": "ai.newnal.illi.home.defs#parentView",
"type": "ref"
},
"type": "array"
},
"pendingRequests": {
"items": {
"ref": "#pendingRequest",
"type": "ref"
},
"type": "array"
},
"status": {
"knownValues": [
"registered",
"awaitingLink",
"active",
"unlinked",
"retired"
],
"type": "string"
}
},
"required": [
"deviceId",
"status"
],
"type": "object"
}
},
"parameters": {
"properties": {
"deviceId": {
"maxLength": 64,
"type": "string"
}
},
"required": [
"deviceId"
],
"type": "params"
},
"type": "query"
},
"onboardingCode": {
"properties": {
"code": {
"type": "string"
},
"expiresAt": {
"format": "datetime",
"type": "string"
}
},
"required": [
"code",
"expiresAt"
],
"type": "object"
},
"parent1": {
"properties": {
"did": {
"format": "did",
"type": "string"
},
"handle": {
"format": "handle",
"type": "string"
}
},
"required": [
"did"
],
"type": "object"
},
"pendingRequest": {
"properties": {
"expiresAt": {
"format": "datetime",
"type": "string"
},
"requestId": {
"type": "string"
},
"slot": {
"type": "integer"
},
"type": {
"knownValues": [
"parentCreation"
],
"type": "string"
}
},
"required": [
"requestId",
"type",
"expiresAt"
],
"type": "object"
}
},
"id": "ai.newnal.illi.device.getState",
"lexicon": 1
}