For reading and verification only. You may not copy, use, modify or redistribute this code. Full notice on the main page.
contracts/schemas/acme-expected-response.schema.json
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://all-mcp.fyi/contracts/v2/acme-expected-response.schema.json", |
| 4 | "title": "GET /v1/commerce/acme/expected?after=<cursor>&limit=<n>, commerce key, read only: every key the broker has recorded for any label, in the order it was recorded, so that a CT watcher can tell an expected certificate from a mis-issued one. state reserved = recorded before the order and not yet confirmed (a certificate for it may exist), issued = confirmed, expired = never confirmed within the reservation lifetime (a certificate for it may still exist), released = replaced by a newer reservation before use. retired = the label is a tombstone. next is the cursor of the following page, null at the end.", |
| 5 | "type": "object", |
| 6 | "required": ["ok", "v", "server_time", "entries", "next"], |
| 7 | "additionalProperties": false, |
| 8 | "properties": { |
| 9 | "ok": {"const": true}, |
| 10 | "v": {"const": 1}, |
| 11 | "server_time": {"$ref": "common.schema.json#/$defs/epoch_s"}, |
| 12 | "entries": { |
| 13 | "type": "array", |
| 14 | "maxItems": 500, |
| 15 | "items": { |
| 16 | "type": "object", |
| 17 | "required": ["label", "host", "spki_sha256", "state", "recorded_at", "not_before", "not_after", "retired"], |
| 18 | "additionalProperties": false, |
| 19 | "properties": { |
| 20 | "label": {"$ref": "common.schema.json#/$defs/label"}, |
| 21 | "host": {"$ref": "common.schema.json#/$defs/fqdn"}, |
| 22 | "spki_sha256": {"$ref": "common.schema.json#/$defs/sha256_b64url"}, |
| 23 | "state": {"type": "string", "enum": ["reserved", "issued", "expired", "released"]}, |
| 24 | "recorded_at": {"$ref": "common.schema.json#/$defs/epoch_s"}, |
| 25 | "not_before": {"oneOf": [{"type": "null"}, {"$ref": "common.schema.json#/$defs/epoch_s"}]}, |
| 26 | "not_after": {"oneOf": [{"type": "null"}, {"$ref": "common.schema.json#/$defs/epoch_s"}]}, |
| 27 | "retired": {"type": "boolean"} |
| 28 | } |
| 29 | } |
| 30 | }, |
| 31 | "next": {"oneOf": [{"type": "null"}, {"$ref": "common.schema.json#/$defs/count"}]} |
| 32 | } |
| 33 | } |