Solo para leer y verificar. No puedes copiar, usar, modificar ni redistribuir este código. Aviso completo en la página principal.
contracts/schemas/authorize-response.schema.json
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://all-mcp.fyi/contracts/v2/authorize-response.schema.json", |
| 4 | "title": "200 answer of POST /v1/tunnel/authorize. valid_until is paid up to 14400 s, trial and gated at most 900 s and never beyond the trial's end (policy.authorization); status paused keeps the connection but no client stream is opened.", |
| 5 | "type": "object", |
| 6 | "required": ["ok", "v", "device_id", "label", "host", "status", "plan", "valid_until", "server_time", "policy", "nodes", "e2e_wave", "e2e_kill", "copy_e2ee"], |
| 7 | "additionalProperties": false, |
| 8 | "properties": { |
| 9 | "ok": {"const": true}, |
| 10 | "v": {"const": 1}, |
| 11 | "device_id": {"$ref": "common.schema.json#/$defs/device_id"}, |
| 12 | "label": {"$ref": "common.schema.json#/$defs/label"}, |
| 13 | "host": {"$ref": "common.schema.json#/$defs/fqdn"}, |
| 14 | "status": {"$ref": "common.schema.json#/$defs/authorize_status"}, |
| 15 | "plan": {"type": "string", "enum": ["paid", "trial"]}, |
| 16 | "valid_until": {"$ref": "common.schema.json#/$defs/epoch_s"}, |
| 17 | "server_time": {"$ref": "common.schema.json#/$defs/epoch_s"}, |
| 18 | "policy": {"$ref": "ok-body.schema.json#/properties/policy"}, |
| 19 | "nodes": {"$ref": "common.schema.json#/$defs/nodes"}, |
| 20 | "access": {"$ref": "common.schema.json#/$defs/jwt"}, |
| 21 | "e2e_wave": {"type": "integer", "minimum": 0, "maximum": 100}, |
| 22 | "e2e_kill": {"type": "boolean"}, |
| 23 | "copy_e2ee": {"type": "boolean"} |
| 24 | } |
| 25 | } |