contracts: hub.storageRequestSchema and its reply, a sample and JSON Schemas. Website: an Owner or Admin asks for more 5 GB steps under Media library (signed to the Hub); the heartbeat reports the licence's storage limit, so the Hub emails the church at 80% and when full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
897 B
JSON
45 lines
897 B
JSON
{
|
|
"$id": "https://c-git.crosscode.co.za/joshua/crosscode-platform/raw/branch/main/packages/contracts/schemas/hub-storage-request.json",
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"properties": {
|
|
"protocolVersion": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"steps": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 10
|
|
},
|
|
"usedBytes": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 9007199254740991
|
|
},
|
|
"limitBytes": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 9007199254740991
|
|
},
|
|
"requestedBy": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"maxLength": 200
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"protocolVersion",
|
|
"steps",
|
|
"usedBytes",
|
|
"limitBytes",
|
|
"requestedBy"
|
|
]
|
|
}
|