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
+6
View File
@@ -35,6 +35,12 @@ export const profileSchema = z.object({
phone_number_verified: z.boolean(),
/** Whether the church may send this person news, per channel. */
news_consent: newsConsentSchema,
/**
* 1.20.0: the person replied STOP to the church's WhatsApp number (APP-1.0-PLAN §8, decision
* 11). No product sends them WhatsApp of any kind, reminders included, until they turn it back
* on in Accounts. Accounts keeps it for every product. Absent (an older Accounts): false.
*/
whatsapp_opted_out: z.boolean().optional(),
});
export type Profile = z.infer<typeof profileSchema>;