contracts 1.17.0: brand style, church.update, the Website's export, licence storage limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-24 16:25:20 +02:00
co-authored by Claude Opus 5.5
parent 9954e66c33
commit 0e3534f29f
24 changed files with 2326 additions and 12 deletions
+6
View File
@@ -1,6 +1,7 @@
import { z } from "zod";
import { dateTimeSchema, emailSchema, hexColourSchema, idSchema, phoneSchema, slugSchema, timeOfDaySchema, timezoneSchema, urlSchema } from "./common";
import { schemaName } from "./schema-name";
import { brandStyleSchema } from "./style";
/**
* `crosscode.church/1` — the church profile, set once and shared by every product of a church
@@ -68,6 +69,11 @@ export const churchObjectSchema = z
primary: hexColourSchema,
accent: hexColourSchema.nullable(),
}),
/**
* Font pairing and corners, shared by every product (contracts 1.17.0, `./style`). Optional:
* a profile from an Accounts before 1.7.0 has none, which means the defaults.
*/
style: brandStyleSchema.optional(),
}),
/** Empty when campuses are off. */
campuses: z.array(campusSchema).max(50),