Solo para leer y verificar. No puedes copiar, usar, modificar ni redistribuir este código. Aviso completo en la página principal.
contracts/schemas/ok-body.schema.json
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://all-mcp.fyi/contracts/v2/ok-body.schema.json", |
| 4 | "title": "Body of the node's OK line (answer to HELLO and to RENEW): what the control plane decided, relayed to the device. The windows of `policy` are the node's offer, capped at a day only to refuse nonsense: the device clamps each one to its own policy.json (WP13), it never trusts the offer beyond it.", |
| 5 | "type": "object", |
| 6 | "required": ["v", "node", "host", "status", "valid_until", "server_time", "policy"], |
| 7 | "additionalProperties": false, |
| 8 | "properties": { |
| 9 | "v": {"const": 2}, |
| 10 | "node": {"$ref": "common.schema.json#/$defs/node_id"}, |
| 11 | "host": {"$ref": "common.schema.json#/$defs/fqdn"}, |
| 12 | "status": {"$ref": "common.schema.json#/$defs/authorize_status"}, |
| 13 | "valid_until": {"$ref": "common.schema.json#/$defs/epoch_s"}, |
| 14 | "server_time": {"$ref": "common.schema.json#/$defs/epoch_s"}, |
| 15 | "policy": { |
| 16 | "type": "object", |
| 17 | "required": ["ping_interval_s", "dead_peer_s", "stream_idle_s", "stream_max_age_s", "renew_before_valid_until_s"], |
| 18 | "additionalProperties": false, |
| 19 | "properties": { |
| 20 | "ping_interval_s": {"type": "integer", "minimum": 1, "maximum": 86400}, |
| 21 | "dead_peer_s": {"type": "integer", "minimum": 1, "maximum": 86400}, |
| 22 | "stream_idle_s": {"type": "integer", "minimum": 1, "maximum": 86400}, |
| 23 | "stream_max_age_s": {"type": "integer", "minimum": 1, "maximum": 86400}, |
| 24 | "renew_before_valid_until_s": {"type": "integer", "minimum": 1, "maximum": 86400} |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | } |