ALL

For reading and verification only. You may not copy, use, modify or redistribute this code. Full notice on the main page.

contracts/schemas/cert-status-response.schema.json

SHA-256: 0227d33a6cf0bb048da0c7ed6ee78f7bd942da526e6c480e9d26a2de6dba5648
46 lines · 1833 bytes · View on GitHub

1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "$id": "https://all-mcp.fyi/contracts/v2/cert-status-response.schema.json",
4 "title": "GET /v1/devices/acme/status: what the broker holds for the caller's label (no secrets, never a TXT value).",
5 "type": "object",
6 "required": ["ok", "v", "label", "host", "class", "reservation", "issuances", "enroll_after", "server_time"],
7 "additionalProperties": false,
8 "properties": {
9 "ok": {"const": true},
10 "v": {"const": 1},
11 "label": {"$ref": "common.schema.json#/$defs/label"},
12 "host": {"$ref": "common.schema.json#/$defs/fqdn"},
13 "class": {"$ref": "common.schema.json#/$defs/budget_class"},
14 "reservation": {
15 "oneOf": [
16 {"type": "null"},
17 {
18 "type": "object",
19 "required": ["reservation_id", "spki_sha256", "expires_at"],
20 "additionalProperties": false,
21 "properties": {
22 "reservation_id": {"$ref": "common.schema.json#/$defs/reservation_id"},
23 "spki_sha256": {"$ref": "common.schema.json#/$defs/sha256_b64url"},
24 "expires_at": {"$ref": "common.schema.json#/$defs/epoch_s"}
25 }
26 }
27 ]
28 },
29 "issuances": {
30 "type": "array",
31 "maxItems": 64,
32 "items": {
33 "type": "object",
34 "required": ["spki_sha256", "not_before", "not_after"],
35 "additionalProperties": false,
36 "properties": {
37 "spki_sha256": {"$ref": "common.schema.json#/$defs/sha256_b64url"},
38 "not_before": {"$ref": "common.schema.json#/$defs/epoch_s"},
39 "not_after": {"$ref": "common.schema.json#/$defs/epoch_s"}
40 }
41 }
42 },
43 "enroll_after": {"oneOf": [{"type": "null"}, {"$ref": "common.schema.json#/$defs/epoch_s"}]},
44 "server_time": {"$ref": "common.schema.json#/$defs/epoch_s"}
45 }
46}