2026-07-18 20:34:47 +08:00
|
|
|
{
|
|
|
|
|
"$defs": {
|
|
|
|
|
"ActiveSlotKind": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"companion",
|
|
|
|
|
"operations"
|
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"AstrBotProfileRole": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"companion",
|
|
|
|
|
"operations",
|
|
|
|
|
"general"
|
|
|
|
|
],
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"AuthenticationType": {
|
|
|
|
|
"enum": [
|
|
|
|
|
"device-token",
|
2026-07-20 15:55:36 +08:00
|
|
|
"api-key",
|
|
|
|
|
"jwt"
|
2026-07-18 20:34:47 +08:00
|
|
|
],
|
|
|
|
|
"type": "string"
|
2026-07-20 11:31:41 +08:00
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
]
|
2026-07-18 20:34:47 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"$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"
|
|
|
|
|
]
|
|
|
|
|
},
|
2026-07-20 11:31:41 +08:00
|
|
|
"remoteUsername": {
|
|
|
|
|
"description": "AstrBot WebChat username / session owner used by OpenAPI chat.",
|
|
|
|
|
"type": [
|
|
|
|
|
"string",
|
|
|
|
|
"null"
|
|
|
|
|
]
|
|
|
|
|
},
|
2026-07-18 20:34:47 +08:00
|
|
|
"role": {
|
|
|
|
|
"$ref": "#/$defs/AstrBotProfileRole"
|
|
|
|
|
},
|
|
|
|
|
"serverInstanceId": {
|
|
|
|
|
"type": [
|
|
|
|
|
"string",
|
|
|
|
|
"null"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"serverVersion": {
|
|
|
|
|
"type": [
|
|
|
|
|
"string",
|
|
|
|
|
"null"
|
|
|
|
|
]
|
|
|
|
|
},
|
2026-07-20 11:31:41 +08:00
|
|
|
"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."
|
|
|
|
|
},
|
2026-07-18 20:34:47 +08:00
|
|
|
"updatedAt": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": [
|
|
|
|
|
"id",
|
|
|
|
|
"displayName",
|
|
|
|
|
"role",
|
|
|
|
|
"baseUrl",
|
|
|
|
|
"authenticationType",
|
|
|
|
|
"createdAt",
|
|
|
|
|
"updatedAt"
|
|
|
|
|
],
|
|
|
|
|
"title": "ConnectionProfile",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|