80 行
1.4 KiB
JSON
80 行
1.4 KiB
JSON
{
|
|
"$defs": {
|
|
"ActiveSlotKind": {
|
|
"enum": [
|
|
"companion",
|
|
"operations"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"ConnectionState": {
|
|
"enum": [
|
|
"disconnected",
|
|
"connecting",
|
|
"authenticating",
|
|
"syncing",
|
|
"connected",
|
|
"reconnecting",
|
|
"authExpired",
|
|
"incompatible",
|
|
"serverUnavailable",
|
|
"offline",
|
|
"certificateChanged",
|
|
"fatalError"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"activeConversationId": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"lastConnectedAt": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"lastEventId": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"profileId": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"serverInstanceId": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"slot": {
|
|
"$ref": "#/$defs/ActiveSlotKind"
|
|
},
|
|
"state": {
|
|
"$ref": "#/$defs/ConnectionState"
|
|
},
|
|
"unreadCount": {
|
|
"default": 0,
|
|
"format": "uint32",
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"slot",
|
|
"state"
|
|
],
|
|
"title": "ConnectionSlot",
|
|
"type": "object"
|
|
}
|