ModelConnector/schemas/transport_envelope.json
Meta Vens 06a47bb13f connector-usage-only: delete the dollar authorities (WIP, does not yet build)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 04:43:18 +01:00

55 lines
1.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "TransportEnvelope",
"type": "object",
"properties": {
"caller_runtime_id": {
"type": "string"
},
"ciphertext": {
"description": "MessagePack bin: raw bytes, never an array of integers",
"type": "string",
"format": "binary"
},
"message_kind": {
"$ref": "#/$defs/EnvelopeKind"
},
"nonce": {
"type": "array",
"items": {
"type": "integer",
"format": "uint8",
"maximum": 255,
"minimum": 0
},
"maxItems": 12,
"minItems": 12
},
"request_id": {
"type": "string"
},
"schema_id": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"schema_id",
"caller_runtime_id",
"request_id",
"message_kind",
"nonce",
"ciphertext"
],
"$defs": {
"EnvelopeKind": {
"type": "string",
"enum": [
"Invocation",
"Result",
"UsageReadoutRequest",
"UsageReadoutResult"
]
}
}
}