AstrBot-Desktop/docs/protocol/v1/schemas/connection-profile.schema.json
YokiiroBW 058bfc7029
一些检测仍在等待运行
ci / Portable quality checks (push) Waiting to run
ci / Windows Tauri build (push) Waiting to run
feat(identity): add jwt and paper pet actions
2026-07-20 15:55:36 +08:00

163 行
3.1 KiB
JSON

{
"$defs": {
"ActiveSlotKind": {
"enum": [
"companion",
"operations"
],
"type": "string"
},
"AstrBotProfileRole": {
"enum": [
"companion",
"operations",
"general"
],
"type": "string"
},
"AuthenticationType": {
"enum": [
"device-token",
"api-key",
"jwt"
],
"type": "string"
},
"TransportKind": {
"description": "Wire transport used by a connection profile.",
"oneOf": [
{
"const": "desktop-v1",
"description": "Provisional Mock / future Desktop Gateway (`/desktop/v1`).",
"type": "string"
},
{
"const": "astr-bot-open-api",
"description": "Real AstrBot OpenAPI surface (`/api/v1`).",
"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"
]
},
"remoteUsername": {
"description": "AstrBot WebChat username / session owner used by OpenAPI chat.",
"type": [
"string",
"null"
]
},
"role": {
"$ref": "#/$defs/AstrBotProfileRole"
},
"serverInstanceId": {
"type": [
"string",
"null"
]
},
"serverVersion": {
"type": [
"string",
"null"
]
},
"stickySessionId": {
"description": "Sticky AstrBot session id for reconnection continuity.",
"type": [
"string",
"null"
]
},
"transportKind": {
"$ref": "#/$defs/TransportKind",
"default": "desktop-v1",
"description": "Wire transport for this profile. Defaults to Desktop mock/gateway contract."
},
"updatedAt": {
"type": "string"
}
},
"required": [
"id",
"displayName",
"role",
"baseUrl",
"authenticationType",
"createdAt",
"updatedAt"
],
"title": "ConnectionProfile",
"type": "object"
}