contracts 1.18.0 + website: Get more storage

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>
This commit is contained in:
2026-11-25 16:18:46 +02:00
co-authored by Claude Opus 5.5
parent 53e5de3f14
commit 283e75737d
17 changed files with 276 additions and 12 deletions
@@ -34,6 +34,7 @@ const SAMPLE_SCHEMA: Record<string, string> = {
"hub-heartbeat-app.json": "hub-heartbeat-request",
"hub-heartbeat-accounts.json": "hub-heartbeat-request",
"hub-heartbeat-response.json": "hub-heartbeat-response",
"hub-storage-request.json": "hub-storage-request",
"hub-licence-payload.json": "hub-licence-payload",
"hub-licence-payload-website.json": "hub-licence-payload",
"church-export.json": "church-export",
+1
View File
@@ -40,6 +40,7 @@ const SCHEMAS: Record<string, z.ZodType> = {
"hub-register-response.json": hub.registerResponseSchema,
"hub-heartbeat-events.json": hub.heartbeatRequestSchema,
"hub-heartbeat-website.json": hub.heartbeatRequestSchema,
"hub-storage-request.json": hub.storageRequestSchema,
"hub-heartbeat-app.json": hub.heartbeatRequestSchema,
"hub-heartbeat-accounts.json": hub.heartbeatRequestSchema,
"hub-heartbeat-response.json": hub.heartbeatResponseSchema,