28 lines
1.6 KiB
JSON
28 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://go-sip.local/contracts/proposals/call-execute-v0.4-proposal.schema.json",
|
|
"title": "Project-local call.execute ingress; external SaaS compatibility unverified",
|
|
"$comment": "Only replaces call.execute ingress in command-next.v0.1-proposal. This MQ command has no expiry; dispatcher must obtain and check fresh independent authorization before admission and originate. The command.result egress remains v0.1.",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["schema_version", "dispatcher_id", "tenant_id", "tenant_key", "trace_id", "issued_at", "command_id", "command_type", "payload"],
|
|
"properties": {
|
|
"schema_version": {"const": "call-execute.v0.4-proposal"},
|
|
"dispatcher_id": {"$ref": "https://go-sip.local/contracts/v1/mq.schema.json#/$defs/dispatcherId"},
|
|
"tenant_id": {"$ref": "https://go-sip.local/contracts/v1/mq.schema.json#/$defs/id"},
|
|
"tenant_key": {"$ref": "https://go-sip.local/contracts/v1/mq.schema.json#/$defs/tenantKey"},
|
|
"trace_id": {"$ref": "https://go-sip.local/contracts/v1/mq.schema.json#/$defs/id"},
|
|
"issued_at": {"$ref": "https://go-sip.local/contracts/v1/mq.schema.json#/$defs/time"},
|
|
"command_id": {"$ref": "https://go-sip.local/contracts/v1/mq.schema.json#/$defs/id"},
|
|
"command_type": {"const": "call.execute"},
|
|
"payload": {
|
|
"type": "object", "additionalProperties": false,
|
|
"required": ["task_id", "callee"],
|
|
"properties": {
|
|
"task_id": {"type": "string", "pattern": "^[A-Za-z0-9_-]{1,128}$"},
|
|
"callee": {"type": "string", "minLength": 1}
|
|
}
|
|
}
|
|
}
|
|
}
|