-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreceipt.json
More file actions
29 lines (29 loc) · 1.2 KB
/
Copy pathreceipt.json
File metadata and controls
29 lines (29 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://modelmarket.dev/schemas/receipt.json",
"title": "AI Market Signed Receipt",
"description": "Payment receipt for a capability invocation",
"type": "object",
"required": ["nonce", "product_id", "capability_id", "price_usd", "timestamp", "signature"],
"properties": {
"nonce": {"type": "string", "description": "Unique receipt identifier"},
"product_id": {"type": "string"},
"capability_id": {"type": "string"},
"price_usd": {"type": "number", "minimum": 0},
"latency_ms": {"type": "integer"},
"success": {"type": "boolean"},
"channel_id": {"type": "string"},
"consumer_hub": {"type": "string", "format": "uri"},
"routing_fee_bps": {"type": "integer"},
"timestamp": {"type": "string", "format": "date-time"},
"verification": {"type": "object", "description": "Pay-on-Verified envelope (unsigned receipt field; the envelope carries its own ed25519 signature once resolved)"},
"signature": {
"type": "object",
"required": ["algorithm", "value"],
"properties": {
"algorithm": {"type": "string", "const": "ed25519"},
"value": {"type": "string"}
}
}
}
}