For reading and verification only. You may not copy, use, modify or redistribute this code. Full notice on the main page.
contracts/schemas/authorize-request.schema.json
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://all-mcp.fyi/contracts/v2/authorize-request.schema.json", |
| 4 | "title": "POST /v1/tunnel/authorize, node to control plane (authenticated by the node assertion header, never by anything a device sends). The node never sends a host name: the control plane answers it from the device id.", |
| 5 | "type": "object", |
| 6 | "required": ["v", "device_id", "session_jti", "reason", "node"], |
| 7 | "additionalProperties": false, |
| 8 | "properties": { |
| 9 | "v": {"const": 1}, |
| 10 | "device_id": {"$ref": "common.schema.json#/$defs/device_id"}, |
| 11 | "session_jti": {"$ref": "common.schema.json#/$defs/jti"}, |
| 12 | "reason": {"type": "string", "enum": ["hello", "renew"]}, |
| 13 | "node": {"$ref": "common.schema.json#/$defs/node_id"} |
| 14 | } |
| 15 | } |