ALL

Solo para leer y verificar. No puedes copiar, usar, modificar ni redistribuir este código. Aviso completo en la página principal.

contracts/schemas/acme-budget-response.schema.json

SHA-256: c6ce62d65fd2a505526a8d1f68ca25a369831e4e46cf95d7e1e7bc9a4fa4b72a
38 líneas · 1901 bytes · Ver en GitHub

1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "$id": "https://all-mcp.fyi/contracts/v2/acme-budget-response.schema.json",
4 "title": "GET /v1/commerce/acme/budget, commerce key, read only: the first-issuance budget of the rolling window as the broker sees it now (the 70 percent alert of the monitor and the wave calendar read it). used = confirmed first issuances still inside the window plus the open reservations; reserved is the part of used that is not yet confirmed; quota is the class's own share of policy.budget.first_issuances_total; a class above its quota is borrowing. lapsed = how many of the used slots are held by a reservation that ended unconfirmed after a TXT was set (see acme-lapsed-response): the alert of the monitor on a systemic failure of the orders.",
5 "type": "object",
6 "required": ["ok", "v", "server_time", "window_days", "total", "classes", "lapsed"],
7 "additionalProperties": false,
8 "properties": {
9 "ok": {"const": true},
10 "v": {"const": 1},
11 "server_time": {"$ref": "common.schema.json#/$defs/epoch_s"},
12 "window_days": {"type": "integer", "minimum": 1, "maximum": 365},
13 "lapsed": {"$ref": "common.schema.json#/$defs/count"},
14 "total": {"$ref": "#/$defs/share"},
15 "classes": {
16 "type": "object",
17 "required": ["paid", "trial", "flex"],
18 "additionalProperties": false,
19 "properties": {
20 "paid": {"$ref": "#/$defs/share"},
21 "trial": {"$ref": "#/$defs/share"},
22 "flex": {"$ref": "#/$defs/share"}
23 }
24 }
25 },
26 "$defs": {
27 "share": {
28 "type": "object",
29 "required": ["quota", "used", "reserved"],
30 "additionalProperties": false,
31 "properties": {
32 "quota": {"$ref": "common.schema.json#/$defs/count"},
33 "used": {"$ref": "common.schema.json#/$defs/count"},
34 "reserved": {"$ref": "common.schema.json#/$defs/count"}
35 }
36 }
37 }
38}