contracts 1.20.0: devotionals, Bible passages, messaging.get, WhatsApp opt-out, App export

The contracts for Church App 1.0.0 (docs/APP-1.0-PLAN.md §12). Additive.

- crosscode.devotional/1, the Hub's devotionals reply, and the devotionals CSV
  import (parseCsv, checkDevotionalCsv, template), shared by the Hub and the App
- Bible books (USFM, English and Afrikaans), seven translations with YouVersion
  ids and copyright lines, parseBibleReference, youVersionUrl
- messaging.get and the messaging.changed hint; whatsapp.optout and
  whatsapp_opted_out on the profile
- APP_MODULES, hub.DEVOTIONALS_PATH, agent.APP_DEMO_PROFILES, app in DEMO_PRODUCTS
- the app section of the church export, people[].roles
- Accounts refuses the two new requests until 1.9.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 09:54:25 +02:00
co-authored by Claude Opus 5.5
parent 8372ef8c6b
commit 514a6d8bc0
39 changed files with 2993 additions and 15 deletions
+9
View File
@@ -16,6 +16,15 @@ export const EVENT_PRODUCTS = ["events", "website", "app"] as const;
export const eventProductSchema = z.enum(EVENT_PRODUCTS);
export type EventProduct = z.infer<typeof eventProductSchema>;
/**
* The Church App's modules (contracts 1.20.0, APP-1.0-PLAN §2): each can be switched off. The App
* reports the ones that are on in its heartbeat (`hub.appStatsSchema.modules`, which takes any
* slug so a later module never breaks an older Hub).
*/
export const APP_MODULES = ["house-of-prayer", "prayer-requests", "announcements", "devotionals", "events"] as const;
export const appModuleSchema = z.enum(APP_MODULES);
export type AppModule = z.infer<typeof appModuleSchema>;
/** Ids are UUIDs everywhere: records, installs, licences, customers and account `sub`s. */
export const idSchema = z.uuid();