docs: Hub 2.26.0 released; devotionals endpoint in hub-protocol.md

Hub 2.26.0 (the App from New install, demo scenarios, devotionals) in
VERSIONS.md, the handover and APP-1.0-PLAN, not deployed yet; §3c in
hub-protocol.md for GET /api/v2/devotionals (same as events-hub's copy).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 22:25:15 +02:00
co-authored by Claude Opus 5.5
parent ce169851f7
commit d3789f9b30
4 changed files with 42 additions and 11 deletions
+18
View File
@@ -259,6 +259,24 @@ X-Hub-Install / X-Hub-Timestamp / X-Hub-Signature (as in §3)
- Rate-limited to 60 a minute per IP (against runaway loops; money is limited by the cap).
- A Hub older than 1.6.0 answers `404 NOT_FOUND`: the install treats that as "AI off".
## 3c. Devotionals (Church App, Hub 2.26.0)
`GET /api/v2/devotionals?from=YYYY-MM-DD` (contracts `hub.DEVOTIONALS_PATH`), with
`Authorization: Bearer <the install's licence token>` (§4); no signature. An App set to "From
Cross Code" calls it once a night (and on "Sync now") and keeps what it gets, so a Hub outage
changes nothing.
- `from` defaults to today (South Africa); the answer covers `from` to 3 months on, one
devotional per day at most, oldest first (`devotionalsReplySchema`, `crosscode.devotional/1`,
each with `source: "crosscode"`). The App replaces its copy of that range: a day missing from
the list was removed in the Hub.
- Only the free translations are ever in it (KJV, BSB: contracts `FREE_BIBLE_TRANSLATION_IDS`);
the App shows each passage's `copyright` line under it.
- `401 BAD_LICENCE`: no token, a forged one, or an unknown licence. `403 NOT_AN_APP`: another
product's licence. `403 LICENCE_INACTIVE`: suspended, revoked, or past its grace days.
`400 INVALID_REQUEST`: `from` isn't a date. Rate-limited to 20 a minute per IP.
- A Hub older than 2.26.0 answers `404 NOT_FOUND`: the App keeps what it has.
## 4. Licence token
`hel1.<payload>.<signature>` — `payload` is base64url JSON, `signature` is the base64url