AstrBot-Desktop/docs/protocol/v1/schemas/connection-profile.schema.json

128 行
2.1 KiB
JSON

{
"$defs": {
"ActiveSlotKind": {
"enum": [
"companion",
"operations"
],
"type": "string"
},
"AstrBotProfileRole": {
"enum": [
"companion",
"operations",
"general"
],
"type": "string"
},
"AuthenticationType": {
"enum": [
"device-token",
"api-key"
],
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"allowInsecureHttp": {
"default": false,
"type": "boolean"
},
"authenticationType": {
"$ref": "#/$defs/AuthenticationType"
},
"autoConnect": {
"default": false,
"type": "boolean"
},
"autoConnectSlot": {
"anyOf": [
{
"$ref": "#/$defs/ActiveSlotKind"
},
{
"type": "null"
}
]
},
"baseUrl": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"credentialReference": {
"type": [
"string",
"null"
]
},
"displayName": {
"type": "string"
},
"eventStreamUrl": {
"type": [
"string",
"null"
]
},
"id": {
"type": "string"
},
"lastConnectedAt": {
"type": [
"string",
"null"
]
},
"localToolPolicyId": {
"type": [
"string",
"null"
]
},
"pinnedCertificateFingerprint": {
"type": [
"string",
"null"
]
},
"protocolVersion": {
"type": [
"string",
"null"
]
},
"role": {
"$ref": "#/$defs/AstrBotProfileRole"
},
"serverInstanceId": {
"type": [
"string",
"null"
]
},
"serverVersion": {
"type": [
"string",
"null"
]
},
"updatedAt": {
"type": "string"
}
},
"required": [
"id",
"displayName",
"role",
"baseUrl",
"authenticationType",
"createdAt",
"updatedAt"
],
"title": "ConnectionProfile",
"type": "object"
}