@the-smithy/hearth-schema 0.0.0-stage → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2117 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * The shared block library: the contract between the database, the admin editor,
5
+ * the delivery API, and every client frontend. One library serves every site.
6
+ *
7
+ * Rules for changing it (stored content on many sites depends on it):
8
+ * - Additive changes (a new optional field, a new block type, a new enum value) are safe.
9
+ * - Anything else bumps BLOCK_SCHEMA_VERSION and adds an upgrade step in migrations.ts.
10
+ *
11
+ * Style options are semantic ("default" | "muted" | "inverse" | "accent"), never colors:
12
+ * each client frontend decides what they look like.
13
+ */
14
+ declare const BLOCK_SCHEMA_VERSION = 1;
15
+ declare const image: z.ZodObject<{
16
+ src: z.ZodString;
17
+ alt: z.ZodDefault<z.ZodString>;
18
+ }, z.core.$strip>;
19
+ declare const link: z.ZodObject<{
20
+ label: z.ZodString;
21
+ href: z.ZodString;
22
+ }, z.core.$strip>;
23
+ declare const formFieldSchema: z.ZodObject<{
24
+ name: z.ZodString;
25
+ label: z.ZodString;
26
+ type: z.ZodEnum<{
27
+ text: "text";
28
+ email: "email";
29
+ tel: "tel";
30
+ textarea: "textarea";
31
+ select: "select";
32
+ checkbox: "checkbox";
33
+ }>;
34
+ required: z.ZodDefault<z.ZodBoolean>;
35
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
36
+ placeholder: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strip>;
38
+ declare const blockDataSchemas: {
39
+ readonly hero: z.ZodObject<{
40
+ eyebrow: z.ZodOptional<z.ZodString>;
41
+ heading: z.ZodString;
42
+ body: z.ZodOptional<z.ZodString>;
43
+ image: z.ZodOptional<z.ZodObject<{
44
+ src: z.ZodString;
45
+ alt: z.ZodDefault<z.ZodString>;
46
+ }, z.core.$strip>>;
47
+ primaryCta: z.ZodOptional<z.ZodObject<{
48
+ label: z.ZodString;
49
+ href: z.ZodString;
50
+ }, z.core.$strip>>;
51
+ secondaryCta: z.ZodOptional<z.ZodObject<{
52
+ label: z.ZodString;
53
+ href: z.ZodString;
54
+ }, z.core.$strip>>;
55
+ size: z.ZodDefault<z.ZodEnum<{
56
+ full: "full";
57
+ compact: "compact";
58
+ }>>;
59
+ showLogo: z.ZodOptional<z.ZodBoolean>;
60
+ }, z.core.$strip>;
61
+ readonly richText: z.ZodObject<{
62
+ markdown: z.ZodDefault<z.ZodString>;
63
+ width: z.ZodDefault<z.ZodEnum<{
64
+ narrow: "narrow";
65
+ wide: "wide";
66
+ }>>;
67
+ }, z.core.$strip>;
68
+ readonly mediaText: z.ZodObject<{
69
+ eyebrow: z.ZodOptional<z.ZodString>;
70
+ heading: z.ZodString;
71
+ markdown: z.ZodDefault<z.ZodString>;
72
+ image: z.ZodOptional<z.ZodObject<{
73
+ src: z.ZodString;
74
+ alt: z.ZodDefault<z.ZodString>;
75
+ }, z.core.$strip>>;
76
+ imagePosition: z.ZodDefault<z.ZodEnum<{
77
+ left: "left";
78
+ right: "right";
79
+ }>>;
80
+ imageFit: z.ZodDefault<z.ZodEnum<{
81
+ cover: "cover";
82
+ contain: "contain";
83
+ }>>;
84
+ cta: z.ZodOptional<z.ZodObject<{
85
+ label: z.ZodString;
86
+ href: z.ZodString;
87
+ }, z.core.$strip>>;
88
+ }, z.core.$strip>;
89
+ readonly stats: z.ZodObject<{
90
+ heading: z.ZodOptional<z.ZodString>;
91
+ items: z.ZodArray<z.ZodObject<{
92
+ value: z.ZodString;
93
+ label: z.ZodString;
94
+ }, z.core.$strip>>;
95
+ }, z.core.$strip>;
96
+ readonly cardGrid: z.ZodObject<{
97
+ eyebrow: z.ZodOptional<z.ZodString>;
98
+ heading: z.ZodOptional<z.ZodString>;
99
+ intro: z.ZodOptional<z.ZodString>;
100
+ items: z.ZodArray<z.ZodObject<{
101
+ title: z.ZodString;
102
+ body: z.ZodDefault<z.ZodString>;
103
+ image: z.ZodOptional<z.ZodObject<{
104
+ src: z.ZodString;
105
+ alt: z.ZodDefault<z.ZodString>;
106
+ }, z.core.$strip>>;
107
+ link: z.ZodOptional<z.ZodObject<{
108
+ label: z.ZodString;
109
+ href: z.ZodString;
110
+ }, z.core.$strip>>;
111
+ }, z.core.$strip>>;
112
+ tone: z.ZodDefault<z.ZodEnum<{
113
+ default: "default";
114
+ muted: "muted";
115
+ inverse: "inverse";
116
+ accent: "accent";
117
+ }>>;
118
+ }, z.core.$strip>;
119
+ readonly cta: z.ZodObject<{
120
+ heading: z.ZodString;
121
+ body: z.ZodOptional<z.ZodString>;
122
+ primary: z.ZodOptional<z.ZodObject<{
123
+ label: z.ZodString;
124
+ href: z.ZodString;
125
+ }, z.core.$strip>>;
126
+ secondary: z.ZodOptional<z.ZodObject<{
127
+ label: z.ZodString;
128
+ href: z.ZodString;
129
+ }, z.core.$strip>>;
130
+ tone: z.ZodDefault<z.ZodEnum<{
131
+ default: "default";
132
+ muted: "muted";
133
+ inverse: "inverse";
134
+ accent: "accent";
135
+ }>>;
136
+ image: z.ZodOptional<z.ZodObject<{
137
+ src: z.ZodString;
138
+ alt: z.ZodDefault<z.ZodString>;
139
+ }, z.core.$strip>>;
140
+ }, z.core.$strip>;
141
+ readonly faq: z.ZodObject<{
142
+ heading: z.ZodOptional<z.ZodString>;
143
+ items: z.ZodArray<z.ZodObject<{
144
+ question: z.ZodString;
145
+ answer: z.ZodDefault<z.ZodString>;
146
+ }, z.core.$strip>>;
147
+ }, z.core.$strip>;
148
+ /** Plans or packages side by side. Prices are text, so any currency, "Free" or "Let's talk" works. */
149
+ readonly pricing: z.ZodObject<{
150
+ eyebrow: z.ZodOptional<z.ZodString>;
151
+ heading: z.ZodOptional<z.ZodString>;
152
+ intro: z.ZodOptional<z.ZodString>;
153
+ plans: z.ZodArray<z.ZodObject<{
154
+ name: z.ZodString;
155
+ price: z.ZodString;
156
+ period: z.ZodOptional<z.ZodString>;
157
+ description: z.ZodOptional<z.ZodString>;
158
+ features: z.ZodDefault<z.ZodArray<z.ZodString>>;
159
+ cta: z.ZodOptional<z.ZodObject<{
160
+ label: z.ZodString;
161
+ href: z.ZodString;
162
+ }, z.core.$strip>>;
163
+ highlight: z.ZodOptional<z.ZodString>;
164
+ }, z.core.$strip>>;
165
+ footnote: z.ZodOptional<z.ZodString>;
166
+ tone: z.ZodDefault<z.ZodEnum<{
167
+ default: "default";
168
+ muted: "muted";
169
+ inverse: "inverse";
170
+ accent: "accent";
171
+ }>>;
172
+ }, z.core.$strip>;
173
+ /** Portfolio work: projects with a description, screenshot, live link, role and the tools used. */
174
+ readonly projects: z.ZodObject<{
175
+ eyebrow: z.ZodOptional<z.ZodString>;
176
+ heading: z.ZodOptional<z.ZodString>;
177
+ intro: z.ZodOptional<z.ZodString>;
178
+ items: z.ZodArray<z.ZodObject<{
179
+ name: z.ZodString;
180
+ description: z.ZodDefault<z.ZodString>;
181
+ image: z.ZodOptional<z.ZodObject<{
182
+ src: z.ZodString;
183
+ alt: z.ZodDefault<z.ZodString>;
184
+ }, z.core.$strip>>;
185
+ url: z.ZodOptional<z.ZodString>;
186
+ role: z.ZodOptional<z.ZodString>;
187
+ status: z.ZodOptional<z.ZodString>;
188
+ stack: z.ZodDefault<z.ZodArray<z.ZodString>>;
189
+ }, z.core.$strip>>;
190
+ layout: z.ZodDefault<z.ZodEnum<{
191
+ showcase: "showcase";
192
+ grid: "grid";
193
+ }>>;
194
+ tone: z.ZodDefault<z.ZodEnum<{
195
+ default: "default";
196
+ muted: "muted";
197
+ inverse: "inverse";
198
+ accent: "accent";
199
+ }>>;
200
+ }, z.core.$strip>;
201
+ readonly location: z.ZodObject<{
202
+ eyebrow: z.ZodOptional<z.ZodString>;
203
+ heading: z.ZodOptional<z.ZodString>;
204
+ name: z.ZodString;
205
+ address: z.ZodString;
206
+ hours: z.ZodOptional<z.ZodString>;
207
+ notes: z.ZodOptional<z.ZodString>;
208
+ showMap: z.ZodDefault<z.ZodBoolean>;
209
+ }, z.core.$strip>;
210
+ readonly schedule: z.ZodObject<{
211
+ eyebrow: z.ZodOptional<z.ZodString>;
212
+ heading: z.ZodOptional<z.ZodString>;
213
+ intro: z.ZodOptional<z.ZodString>;
214
+ items: z.ZodArray<z.ZodObject<{
215
+ time: z.ZodString;
216
+ title: z.ZodString;
217
+ details: z.ZodOptional<z.ZodString>;
218
+ }, z.core.$strip>>;
219
+ }, z.core.$strip>;
220
+ readonly gallery: z.ZodObject<{
221
+ heading: z.ZodOptional<z.ZodString>;
222
+ intro: z.ZodOptional<z.ZodString>;
223
+ images: z.ZodArray<z.ZodObject<{
224
+ image: z.ZodObject<{
225
+ src: z.ZodString;
226
+ alt: z.ZodDefault<z.ZodString>;
227
+ }, z.core.$strip>;
228
+ caption: z.ZodOptional<z.ZodString>;
229
+ }, z.core.$strip>>;
230
+ columns: z.ZodDefault<z.ZodEnum<{
231
+ 2: "2";
232
+ 3: "3";
233
+ 4: "4";
234
+ }>>;
235
+ }, z.core.$strip>;
236
+ readonly quote: z.ZodObject<{
237
+ quote: z.ZodString;
238
+ name: z.ZodOptional<z.ZodString>;
239
+ role: z.ZodOptional<z.ZodString>;
240
+ image: z.ZodOptional<z.ZodObject<{
241
+ src: z.ZodString;
242
+ alt: z.ZodDefault<z.ZodString>;
243
+ }, z.core.$strip>>;
244
+ tone: z.ZodDefault<z.ZodEnum<{
245
+ default: "default";
246
+ muted: "muted";
247
+ inverse: "inverse";
248
+ accent: "accent";
249
+ }>>;
250
+ }, z.core.$strip>;
251
+ readonly video: z.ZodObject<{
252
+ heading: z.ZodOptional<z.ZodString>;
253
+ url: z.ZodString;
254
+ title: z.ZodString;
255
+ caption: z.ZodOptional<z.ZodString>;
256
+ }, z.core.$strip>;
257
+ readonly people: z.ZodObject<{
258
+ eyebrow: z.ZodOptional<z.ZodString>;
259
+ heading: z.ZodOptional<z.ZodString>;
260
+ intro: z.ZodOptional<z.ZodString>;
261
+ people: z.ZodArray<z.ZodObject<{
262
+ name: z.ZodString;
263
+ role: z.ZodOptional<z.ZodString>;
264
+ image: z.ZodOptional<z.ZodObject<{
265
+ src: z.ZodString;
266
+ alt: z.ZodDefault<z.ZodString>;
267
+ }, z.core.$strip>>;
268
+ bio: z.ZodOptional<z.ZodString>;
269
+ }, z.core.$strip>>;
270
+ }, z.core.$strip>;
271
+ readonly logos: z.ZodObject<{
272
+ heading: z.ZodOptional<z.ZodString>;
273
+ intro: z.ZodOptional<z.ZodString>;
274
+ logos: z.ZodArray<z.ZodObject<{
275
+ name: z.ZodString;
276
+ logo: z.ZodOptional<z.ZodObject<{
277
+ src: z.ZodString;
278
+ alt: z.ZodDefault<z.ZodString>;
279
+ }, z.core.$strip>>;
280
+ url: z.ZodOptional<z.ZodString>;
281
+ }, z.core.$strip>>;
282
+ }, z.core.$strip>;
283
+ readonly form: z.ZodObject<{
284
+ heading: z.ZodOptional<z.ZodString>;
285
+ intro: z.ZodOptional<z.ZodString>;
286
+ formKey: z.ZodString;
287
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
288
+ name: z.ZodString;
289
+ label: z.ZodString;
290
+ type: z.ZodEnum<{
291
+ text: "text";
292
+ email: "email";
293
+ tel: "tel";
294
+ textarea: "textarea";
295
+ select: "select";
296
+ checkbox: "checkbox";
297
+ }>;
298
+ required: z.ZodDefault<z.ZodBoolean>;
299
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
300
+ placeholder: z.ZodOptional<z.ZodString>;
301
+ }, z.core.$strip>>>;
302
+ submitLabel: z.ZodDefault<z.ZodString>;
303
+ successMessage: z.ZodDefault<z.ZodString>;
304
+ sendConfirmation: z.ZodOptional<z.ZodBoolean>;
305
+ confirmationMessage: z.ZodOptional<z.ZodString>;
306
+ emberFormId: z.ZodOptional<z.ZodString>;
307
+ }, z.core.$strip>;
308
+ readonly upcomingEvents: z.ZodObject<{
309
+ eyebrow: z.ZodOptional<z.ZodString>;
310
+ heading: z.ZodOptional<z.ZodString>;
311
+ intro: z.ZodOptional<z.ZodString>;
312
+ limit: z.ZodDefault<z.ZodNumber>;
313
+ collectionId: z.ZodOptional<z.ZodString>;
314
+ categoryId: z.ZodOptional<z.ZodString>;
315
+ }, z.core.$strip>;
316
+ readonly eventSpotlight: z.ZodObject<{
317
+ eventSlug: z.ZodOptional<z.ZodString>;
318
+ categoryId: z.ZodOptional<z.ZodString>;
319
+ heading: z.ZodOptional<z.ZodString>;
320
+ }, z.core.$strip>;
321
+ /** Entries of a page collection (a blog, case studies…), newest first unless the collection says otherwise. */
322
+ readonly collectionList: z.ZodObject<{
323
+ eyebrow: z.ZodOptional<z.ZodString>;
324
+ heading: z.ZodOptional<z.ZodString>;
325
+ intro: z.ZodOptional<z.ZodString>;
326
+ collectionId: z.ZodString;
327
+ limit: z.ZodDefault<z.ZodNumber>;
328
+ layout: z.ZodDefault<z.ZodEnum<{
329
+ cards: "cards";
330
+ list: "list";
331
+ }>>;
332
+ tag: z.ZodOptional<z.ZodString>;
333
+ categoryId: z.ZodOptional<z.ZodString>;
334
+ }, z.core.$strip>;
335
+ readonly sharedBlock: z.ZodObject<{
336
+ sharedBlockId: z.ZodString;
337
+ }, z.core.$strip>;
338
+ /** One fundraiser with its progress (giving feature). The API adds `fundraiser`. */
339
+ readonly fundraiserSpotlight: z.ZodObject<{
340
+ fundraiserSlug: z.ZodOptional<z.ZodString>;
341
+ categoryId: z.ZodOptional<z.ZodString>;
342
+ heading: z.ZodOptional<z.ZodString>;
343
+ }, z.core.$strip>;
344
+ /** Fundraisers as cards with progress (giving feature). The API adds `fundraisers`. */
345
+ readonly fundraiserGrid: z.ZodObject<{
346
+ eyebrow: z.ZodOptional<z.ZodString>;
347
+ heading: z.ZodOptional<z.ZodString>;
348
+ intro: z.ZodOptional<z.ZodString>;
349
+ limit: z.ZodDefault<z.ZodNumber>;
350
+ status: z.ZodDefault<z.ZodEnum<{
351
+ active: "active";
352
+ completed: "completed";
353
+ all: "all";
354
+ }>>;
355
+ categoryId: z.ZodOptional<z.ZodString>;
356
+ }, z.core.$strip>;
357
+ /**
358
+ * A donation form (giving feature). The frontend posts it to its own server, which starts checkout through the
359
+ * API. The API adds `presetsCents`, `minCents`, `maxCents` and the `fundraiser`, if one is chosen.
360
+ */
361
+ readonly donate: z.ZodObject<{
362
+ heading: z.ZodOptional<z.ZodString>;
363
+ intro: z.ZodOptional<z.ZodString>;
364
+ fundraiserSlug: z.ZodOptional<z.ZodString>;
365
+ submitLabel: z.ZodDefault<z.ZodString>;
366
+ }, z.core.$strip>;
367
+ };
368
+ type BlockType = keyof typeof blockDataSchemas;
369
+ type BlockData<T extends BlockType> = z.infer<(typeof blockDataSchemas)[T]>;
370
+ declare const blockTypes: BlockType[];
371
+ /** Block types that only make sense when a site has the matching feature switched on. (Every site has forms.) */
372
+ declare const blockFeature: Partial<Record<BlockType, "events" | "giving">>;
373
+ declare const blockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
374
+ id: z.ZodString;
375
+ type: z.ZodLiteral<"cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "form" | "upcomingEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
376
+ data: z.ZodObject<{
377
+ eyebrow: z.ZodOptional<z.ZodString>;
378
+ heading: z.ZodString;
379
+ body: z.ZodOptional<z.ZodString>;
380
+ image: z.ZodOptional<z.ZodObject<{
381
+ src: z.ZodString;
382
+ alt: z.ZodDefault<z.ZodString>;
383
+ }, z.core.$strip>>;
384
+ primaryCta: z.ZodOptional<z.ZodObject<{
385
+ label: z.ZodString;
386
+ href: z.ZodString;
387
+ }, z.core.$strip>>;
388
+ secondaryCta: z.ZodOptional<z.ZodObject<{
389
+ label: z.ZodString;
390
+ href: z.ZodString;
391
+ }, z.core.$strip>>;
392
+ size: z.ZodDefault<z.ZodEnum<{
393
+ full: "full";
394
+ compact: "compact";
395
+ }>>;
396
+ showLogo: z.ZodOptional<z.ZodBoolean>;
397
+ }, z.core.$strip> | z.ZodObject<{
398
+ markdown: z.ZodDefault<z.ZodString>;
399
+ width: z.ZodDefault<z.ZodEnum<{
400
+ narrow: "narrow";
401
+ wide: "wide";
402
+ }>>;
403
+ }, z.core.$strip> | z.ZodObject<{
404
+ eyebrow: z.ZodOptional<z.ZodString>;
405
+ heading: z.ZodString;
406
+ markdown: z.ZodDefault<z.ZodString>;
407
+ image: z.ZodOptional<z.ZodObject<{
408
+ src: z.ZodString;
409
+ alt: z.ZodDefault<z.ZodString>;
410
+ }, z.core.$strip>>;
411
+ imagePosition: z.ZodDefault<z.ZodEnum<{
412
+ left: "left";
413
+ right: "right";
414
+ }>>;
415
+ imageFit: z.ZodDefault<z.ZodEnum<{
416
+ cover: "cover";
417
+ contain: "contain";
418
+ }>>;
419
+ cta: z.ZodOptional<z.ZodObject<{
420
+ label: z.ZodString;
421
+ href: z.ZodString;
422
+ }, z.core.$strip>>;
423
+ }, z.core.$strip> | z.ZodObject<{
424
+ heading: z.ZodOptional<z.ZodString>;
425
+ items: z.ZodArray<z.ZodObject<{
426
+ value: z.ZodString;
427
+ label: z.ZodString;
428
+ }, z.core.$strip>>;
429
+ }, z.core.$strip> | z.ZodObject<{
430
+ eyebrow: z.ZodOptional<z.ZodString>;
431
+ heading: z.ZodOptional<z.ZodString>;
432
+ intro: z.ZodOptional<z.ZodString>;
433
+ items: z.ZodArray<z.ZodObject<{
434
+ title: z.ZodString;
435
+ body: z.ZodDefault<z.ZodString>;
436
+ image: z.ZodOptional<z.ZodObject<{
437
+ src: z.ZodString;
438
+ alt: z.ZodDefault<z.ZodString>;
439
+ }, z.core.$strip>>;
440
+ link: z.ZodOptional<z.ZodObject<{
441
+ label: z.ZodString;
442
+ href: z.ZodString;
443
+ }, z.core.$strip>>;
444
+ }, z.core.$strip>>;
445
+ tone: z.ZodDefault<z.ZodEnum<{
446
+ default: "default";
447
+ muted: "muted";
448
+ inverse: "inverse";
449
+ accent: "accent";
450
+ }>>;
451
+ }, z.core.$strip> | z.ZodObject<{
452
+ heading: z.ZodString;
453
+ body: z.ZodOptional<z.ZodString>;
454
+ primary: z.ZodOptional<z.ZodObject<{
455
+ label: z.ZodString;
456
+ href: z.ZodString;
457
+ }, z.core.$strip>>;
458
+ secondary: z.ZodOptional<z.ZodObject<{
459
+ label: z.ZodString;
460
+ href: z.ZodString;
461
+ }, z.core.$strip>>;
462
+ tone: z.ZodDefault<z.ZodEnum<{
463
+ default: "default";
464
+ muted: "muted";
465
+ inverse: "inverse";
466
+ accent: "accent";
467
+ }>>;
468
+ image: z.ZodOptional<z.ZodObject<{
469
+ src: z.ZodString;
470
+ alt: z.ZodDefault<z.ZodString>;
471
+ }, z.core.$strip>>;
472
+ }, z.core.$strip> | z.ZodObject<{
473
+ heading: z.ZodOptional<z.ZodString>;
474
+ items: z.ZodArray<z.ZodObject<{
475
+ question: z.ZodString;
476
+ answer: z.ZodDefault<z.ZodString>;
477
+ }, z.core.$strip>>;
478
+ }, z.core.$strip> | z.ZodObject<{
479
+ eyebrow: z.ZodOptional<z.ZodString>;
480
+ heading: z.ZodOptional<z.ZodString>;
481
+ intro: z.ZodOptional<z.ZodString>;
482
+ plans: z.ZodArray<z.ZodObject<{
483
+ name: z.ZodString;
484
+ price: z.ZodString;
485
+ period: z.ZodOptional<z.ZodString>;
486
+ description: z.ZodOptional<z.ZodString>;
487
+ features: z.ZodDefault<z.ZodArray<z.ZodString>>;
488
+ cta: z.ZodOptional<z.ZodObject<{
489
+ label: z.ZodString;
490
+ href: z.ZodString;
491
+ }, z.core.$strip>>;
492
+ highlight: z.ZodOptional<z.ZodString>;
493
+ }, z.core.$strip>>;
494
+ footnote: z.ZodOptional<z.ZodString>;
495
+ tone: z.ZodDefault<z.ZodEnum<{
496
+ default: "default";
497
+ muted: "muted";
498
+ inverse: "inverse";
499
+ accent: "accent";
500
+ }>>;
501
+ }, z.core.$strip> | z.ZodObject<{
502
+ eyebrow: z.ZodOptional<z.ZodString>;
503
+ heading: z.ZodOptional<z.ZodString>;
504
+ intro: z.ZodOptional<z.ZodString>;
505
+ items: z.ZodArray<z.ZodObject<{
506
+ name: z.ZodString;
507
+ description: z.ZodDefault<z.ZodString>;
508
+ image: z.ZodOptional<z.ZodObject<{
509
+ src: z.ZodString;
510
+ alt: z.ZodDefault<z.ZodString>;
511
+ }, z.core.$strip>>;
512
+ url: z.ZodOptional<z.ZodString>;
513
+ role: z.ZodOptional<z.ZodString>;
514
+ status: z.ZodOptional<z.ZodString>;
515
+ stack: z.ZodDefault<z.ZodArray<z.ZodString>>;
516
+ }, z.core.$strip>>;
517
+ layout: z.ZodDefault<z.ZodEnum<{
518
+ showcase: "showcase";
519
+ grid: "grid";
520
+ }>>;
521
+ tone: z.ZodDefault<z.ZodEnum<{
522
+ default: "default";
523
+ muted: "muted";
524
+ inverse: "inverse";
525
+ accent: "accent";
526
+ }>>;
527
+ }, z.core.$strip> | z.ZodObject<{
528
+ eyebrow: z.ZodOptional<z.ZodString>;
529
+ heading: z.ZodOptional<z.ZodString>;
530
+ name: z.ZodString;
531
+ address: z.ZodString;
532
+ hours: z.ZodOptional<z.ZodString>;
533
+ notes: z.ZodOptional<z.ZodString>;
534
+ showMap: z.ZodDefault<z.ZodBoolean>;
535
+ }, z.core.$strip> | z.ZodObject<{
536
+ eyebrow: z.ZodOptional<z.ZodString>;
537
+ heading: z.ZodOptional<z.ZodString>;
538
+ intro: z.ZodOptional<z.ZodString>;
539
+ items: z.ZodArray<z.ZodObject<{
540
+ time: z.ZodString;
541
+ title: z.ZodString;
542
+ details: z.ZodOptional<z.ZodString>;
543
+ }, z.core.$strip>>;
544
+ }, z.core.$strip> | z.ZodObject<{
545
+ heading: z.ZodOptional<z.ZodString>;
546
+ intro: z.ZodOptional<z.ZodString>;
547
+ images: z.ZodArray<z.ZodObject<{
548
+ image: z.ZodObject<{
549
+ src: z.ZodString;
550
+ alt: z.ZodDefault<z.ZodString>;
551
+ }, z.core.$strip>;
552
+ caption: z.ZodOptional<z.ZodString>;
553
+ }, z.core.$strip>>;
554
+ columns: z.ZodDefault<z.ZodEnum<{
555
+ 2: "2";
556
+ 3: "3";
557
+ 4: "4";
558
+ }>>;
559
+ }, z.core.$strip> | z.ZodObject<{
560
+ quote: z.ZodString;
561
+ name: z.ZodOptional<z.ZodString>;
562
+ role: z.ZodOptional<z.ZodString>;
563
+ image: z.ZodOptional<z.ZodObject<{
564
+ src: z.ZodString;
565
+ alt: z.ZodDefault<z.ZodString>;
566
+ }, z.core.$strip>>;
567
+ tone: z.ZodDefault<z.ZodEnum<{
568
+ default: "default";
569
+ muted: "muted";
570
+ inverse: "inverse";
571
+ accent: "accent";
572
+ }>>;
573
+ }, z.core.$strip> | z.ZodObject<{
574
+ heading: z.ZodOptional<z.ZodString>;
575
+ url: z.ZodString;
576
+ title: z.ZodString;
577
+ caption: z.ZodOptional<z.ZodString>;
578
+ }, z.core.$strip> | z.ZodObject<{
579
+ eyebrow: z.ZodOptional<z.ZodString>;
580
+ heading: z.ZodOptional<z.ZodString>;
581
+ intro: z.ZodOptional<z.ZodString>;
582
+ people: z.ZodArray<z.ZodObject<{
583
+ name: z.ZodString;
584
+ role: z.ZodOptional<z.ZodString>;
585
+ image: z.ZodOptional<z.ZodObject<{
586
+ src: z.ZodString;
587
+ alt: z.ZodDefault<z.ZodString>;
588
+ }, z.core.$strip>>;
589
+ bio: z.ZodOptional<z.ZodString>;
590
+ }, z.core.$strip>>;
591
+ }, z.core.$strip> | z.ZodObject<{
592
+ heading: z.ZodOptional<z.ZodString>;
593
+ intro: z.ZodOptional<z.ZodString>;
594
+ logos: z.ZodArray<z.ZodObject<{
595
+ name: z.ZodString;
596
+ logo: z.ZodOptional<z.ZodObject<{
597
+ src: z.ZodString;
598
+ alt: z.ZodDefault<z.ZodString>;
599
+ }, z.core.$strip>>;
600
+ url: z.ZodOptional<z.ZodString>;
601
+ }, z.core.$strip>>;
602
+ }, z.core.$strip> | z.ZodObject<{
603
+ heading: z.ZodOptional<z.ZodString>;
604
+ intro: z.ZodOptional<z.ZodString>;
605
+ formKey: z.ZodString;
606
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
607
+ name: z.ZodString;
608
+ label: z.ZodString;
609
+ type: z.ZodEnum<{
610
+ text: "text";
611
+ email: "email";
612
+ tel: "tel";
613
+ textarea: "textarea";
614
+ select: "select";
615
+ checkbox: "checkbox";
616
+ }>;
617
+ required: z.ZodDefault<z.ZodBoolean>;
618
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
619
+ placeholder: z.ZodOptional<z.ZodString>;
620
+ }, z.core.$strip>>>;
621
+ submitLabel: z.ZodDefault<z.ZodString>;
622
+ successMessage: z.ZodDefault<z.ZodString>;
623
+ sendConfirmation: z.ZodOptional<z.ZodBoolean>;
624
+ confirmationMessage: z.ZodOptional<z.ZodString>;
625
+ emberFormId: z.ZodOptional<z.ZodString>;
626
+ }, z.core.$strip> | z.ZodObject<{
627
+ eyebrow: z.ZodOptional<z.ZodString>;
628
+ heading: z.ZodOptional<z.ZodString>;
629
+ intro: z.ZodOptional<z.ZodString>;
630
+ limit: z.ZodDefault<z.ZodNumber>;
631
+ collectionId: z.ZodOptional<z.ZodString>;
632
+ categoryId: z.ZodOptional<z.ZodString>;
633
+ }, z.core.$strip> | z.ZodObject<{
634
+ eventSlug: z.ZodOptional<z.ZodString>;
635
+ categoryId: z.ZodOptional<z.ZodString>;
636
+ heading: z.ZodOptional<z.ZodString>;
637
+ }, z.core.$strip> | z.ZodObject<{
638
+ eyebrow: z.ZodOptional<z.ZodString>;
639
+ heading: z.ZodOptional<z.ZodString>;
640
+ intro: z.ZodOptional<z.ZodString>;
641
+ collectionId: z.ZodString;
642
+ limit: z.ZodDefault<z.ZodNumber>;
643
+ layout: z.ZodDefault<z.ZodEnum<{
644
+ cards: "cards";
645
+ list: "list";
646
+ }>>;
647
+ tag: z.ZodOptional<z.ZodString>;
648
+ categoryId: z.ZodOptional<z.ZodString>;
649
+ }, z.core.$strip> | z.ZodObject<{
650
+ sharedBlockId: z.ZodString;
651
+ }, z.core.$strip> | z.ZodObject<{
652
+ fundraiserSlug: z.ZodOptional<z.ZodString>;
653
+ categoryId: z.ZodOptional<z.ZodString>;
654
+ heading: z.ZodOptional<z.ZodString>;
655
+ }, z.core.$strip> | z.ZodObject<{
656
+ eyebrow: z.ZodOptional<z.ZodString>;
657
+ heading: z.ZodOptional<z.ZodString>;
658
+ intro: z.ZodOptional<z.ZodString>;
659
+ limit: z.ZodDefault<z.ZodNumber>;
660
+ status: z.ZodDefault<z.ZodEnum<{
661
+ active: "active";
662
+ completed: "completed";
663
+ all: "all";
664
+ }>>;
665
+ categoryId: z.ZodOptional<z.ZodString>;
666
+ }, z.core.$strip> | z.ZodObject<{
667
+ heading: z.ZodOptional<z.ZodString>;
668
+ intro: z.ZodOptional<z.ZodString>;
669
+ fundraiserSlug: z.ZodOptional<z.ZodString>;
670
+ submitLabel: z.ZodDefault<z.ZodString>;
671
+ }, z.core.$strip>;
672
+ }, z.core.$strip>, ...z.ZodObject<{
673
+ id: z.ZodString;
674
+ type: z.ZodLiteral<"cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "form" | "upcomingEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
675
+ data: z.ZodObject<{
676
+ eyebrow: z.ZodOptional<z.ZodString>;
677
+ heading: z.ZodString;
678
+ body: z.ZodOptional<z.ZodString>;
679
+ image: z.ZodOptional<z.ZodObject<{
680
+ src: z.ZodString;
681
+ alt: z.ZodDefault<z.ZodString>;
682
+ }, z.core.$strip>>;
683
+ primaryCta: z.ZodOptional<z.ZodObject<{
684
+ label: z.ZodString;
685
+ href: z.ZodString;
686
+ }, z.core.$strip>>;
687
+ secondaryCta: z.ZodOptional<z.ZodObject<{
688
+ label: z.ZodString;
689
+ href: z.ZodString;
690
+ }, z.core.$strip>>;
691
+ size: z.ZodDefault<z.ZodEnum<{
692
+ full: "full";
693
+ compact: "compact";
694
+ }>>;
695
+ showLogo: z.ZodOptional<z.ZodBoolean>;
696
+ }, z.core.$strip> | z.ZodObject<{
697
+ markdown: z.ZodDefault<z.ZodString>;
698
+ width: z.ZodDefault<z.ZodEnum<{
699
+ narrow: "narrow";
700
+ wide: "wide";
701
+ }>>;
702
+ }, z.core.$strip> | z.ZodObject<{
703
+ eyebrow: z.ZodOptional<z.ZodString>;
704
+ heading: z.ZodString;
705
+ markdown: z.ZodDefault<z.ZodString>;
706
+ image: z.ZodOptional<z.ZodObject<{
707
+ src: z.ZodString;
708
+ alt: z.ZodDefault<z.ZodString>;
709
+ }, z.core.$strip>>;
710
+ imagePosition: z.ZodDefault<z.ZodEnum<{
711
+ left: "left";
712
+ right: "right";
713
+ }>>;
714
+ imageFit: z.ZodDefault<z.ZodEnum<{
715
+ cover: "cover";
716
+ contain: "contain";
717
+ }>>;
718
+ cta: z.ZodOptional<z.ZodObject<{
719
+ label: z.ZodString;
720
+ href: z.ZodString;
721
+ }, z.core.$strip>>;
722
+ }, z.core.$strip> | z.ZodObject<{
723
+ heading: z.ZodOptional<z.ZodString>;
724
+ items: z.ZodArray<z.ZodObject<{
725
+ value: z.ZodString;
726
+ label: z.ZodString;
727
+ }, z.core.$strip>>;
728
+ }, z.core.$strip> | z.ZodObject<{
729
+ eyebrow: z.ZodOptional<z.ZodString>;
730
+ heading: z.ZodOptional<z.ZodString>;
731
+ intro: z.ZodOptional<z.ZodString>;
732
+ items: z.ZodArray<z.ZodObject<{
733
+ title: z.ZodString;
734
+ body: z.ZodDefault<z.ZodString>;
735
+ image: z.ZodOptional<z.ZodObject<{
736
+ src: z.ZodString;
737
+ alt: z.ZodDefault<z.ZodString>;
738
+ }, z.core.$strip>>;
739
+ link: z.ZodOptional<z.ZodObject<{
740
+ label: z.ZodString;
741
+ href: z.ZodString;
742
+ }, z.core.$strip>>;
743
+ }, z.core.$strip>>;
744
+ tone: z.ZodDefault<z.ZodEnum<{
745
+ default: "default";
746
+ muted: "muted";
747
+ inverse: "inverse";
748
+ accent: "accent";
749
+ }>>;
750
+ }, z.core.$strip> | z.ZodObject<{
751
+ heading: z.ZodString;
752
+ body: z.ZodOptional<z.ZodString>;
753
+ primary: z.ZodOptional<z.ZodObject<{
754
+ label: z.ZodString;
755
+ href: z.ZodString;
756
+ }, z.core.$strip>>;
757
+ secondary: z.ZodOptional<z.ZodObject<{
758
+ label: z.ZodString;
759
+ href: z.ZodString;
760
+ }, z.core.$strip>>;
761
+ tone: z.ZodDefault<z.ZodEnum<{
762
+ default: "default";
763
+ muted: "muted";
764
+ inverse: "inverse";
765
+ accent: "accent";
766
+ }>>;
767
+ image: z.ZodOptional<z.ZodObject<{
768
+ src: z.ZodString;
769
+ alt: z.ZodDefault<z.ZodString>;
770
+ }, z.core.$strip>>;
771
+ }, z.core.$strip> | z.ZodObject<{
772
+ heading: z.ZodOptional<z.ZodString>;
773
+ items: z.ZodArray<z.ZodObject<{
774
+ question: z.ZodString;
775
+ answer: z.ZodDefault<z.ZodString>;
776
+ }, z.core.$strip>>;
777
+ }, z.core.$strip> | z.ZodObject<{
778
+ eyebrow: z.ZodOptional<z.ZodString>;
779
+ heading: z.ZodOptional<z.ZodString>;
780
+ intro: z.ZodOptional<z.ZodString>;
781
+ plans: z.ZodArray<z.ZodObject<{
782
+ name: z.ZodString;
783
+ price: z.ZodString;
784
+ period: z.ZodOptional<z.ZodString>;
785
+ description: z.ZodOptional<z.ZodString>;
786
+ features: z.ZodDefault<z.ZodArray<z.ZodString>>;
787
+ cta: z.ZodOptional<z.ZodObject<{
788
+ label: z.ZodString;
789
+ href: z.ZodString;
790
+ }, z.core.$strip>>;
791
+ highlight: z.ZodOptional<z.ZodString>;
792
+ }, z.core.$strip>>;
793
+ footnote: z.ZodOptional<z.ZodString>;
794
+ tone: z.ZodDefault<z.ZodEnum<{
795
+ default: "default";
796
+ muted: "muted";
797
+ inverse: "inverse";
798
+ accent: "accent";
799
+ }>>;
800
+ }, z.core.$strip> | z.ZodObject<{
801
+ eyebrow: z.ZodOptional<z.ZodString>;
802
+ heading: z.ZodOptional<z.ZodString>;
803
+ intro: z.ZodOptional<z.ZodString>;
804
+ items: z.ZodArray<z.ZodObject<{
805
+ name: z.ZodString;
806
+ description: z.ZodDefault<z.ZodString>;
807
+ image: z.ZodOptional<z.ZodObject<{
808
+ src: z.ZodString;
809
+ alt: z.ZodDefault<z.ZodString>;
810
+ }, z.core.$strip>>;
811
+ url: z.ZodOptional<z.ZodString>;
812
+ role: z.ZodOptional<z.ZodString>;
813
+ status: z.ZodOptional<z.ZodString>;
814
+ stack: z.ZodDefault<z.ZodArray<z.ZodString>>;
815
+ }, z.core.$strip>>;
816
+ layout: z.ZodDefault<z.ZodEnum<{
817
+ showcase: "showcase";
818
+ grid: "grid";
819
+ }>>;
820
+ tone: z.ZodDefault<z.ZodEnum<{
821
+ default: "default";
822
+ muted: "muted";
823
+ inverse: "inverse";
824
+ accent: "accent";
825
+ }>>;
826
+ }, z.core.$strip> | z.ZodObject<{
827
+ eyebrow: z.ZodOptional<z.ZodString>;
828
+ heading: z.ZodOptional<z.ZodString>;
829
+ name: z.ZodString;
830
+ address: z.ZodString;
831
+ hours: z.ZodOptional<z.ZodString>;
832
+ notes: z.ZodOptional<z.ZodString>;
833
+ showMap: z.ZodDefault<z.ZodBoolean>;
834
+ }, z.core.$strip> | z.ZodObject<{
835
+ eyebrow: z.ZodOptional<z.ZodString>;
836
+ heading: z.ZodOptional<z.ZodString>;
837
+ intro: z.ZodOptional<z.ZodString>;
838
+ items: z.ZodArray<z.ZodObject<{
839
+ time: z.ZodString;
840
+ title: z.ZodString;
841
+ details: z.ZodOptional<z.ZodString>;
842
+ }, z.core.$strip>>;
843
+ }, z.core.$strip> | z.ZodObject<{
844
+ heading: z.ZodOptional<z.ZodString>;
845
+ intro: z.ZodOptional<z.ZodString>;
846
+ images: z.ZodArray<z.ZodObject<{
847
+ image: z.ZodObject<{
848
+ src: z.ZodString;
849
+ alt: z.ZodDefault<z.ZodString>;
850
+ }, z.core.$strip>;
851
+ caption: z.ZodOptional<z.ZodString>;
852
+ }, z.core.$strip>>;
853
+ columns: z.ZodDefault<z.ZodEnum<{
854
+ 2: "2";
855
+ 3: "3";
856
+ 4: "4";
857
+ }>>;
858
+ }, z.core.$strip> | z.ZodObject<{
859
+ quote: z.ZodString;
860
+ name: z.ZodOptional<z.ZodString>;
861
+ role: z.ZodOptional<z.ZodString>;
862
+ image: z.ZodOptional<z.ZodObject<{
863
+ src: z.ZodString;
864
+ alt: z.ZodDefault<z.ZodString>;
865
+ }, z.core.$strip>>;
866
+ tone: z.ZodDefault<z.ZodEnum<{
867
+ default: "default";
868
+ muted: "muted";
869
+ inverse: "inverse";
870
+ accent: "accent";
871
+ }>>;
872
+ }, z.core.$strip> | z.ZodObject<{
873
+ heading: z.ZodOptional<z.ZodString>;
874
+ url: z.ZodString;
875
+ title: z.ZodString;
876
+ caption: z.ZodOptional<z.ZodString>;
877
+ }, z.core.$strip> | z.ZodObject<{
878
+ eyebrow: z.ZodOptional<z.ZodString>;
879
+ heading: z.ZodOptional<z.ZodString>;
880
+ intro: z.ZodOptional<z.ZodString>;
881
+ people: z.ZodArray<z.ZodObject<{
882
+ name: z.ZodString;
883
+ role: z.ZodOptional<z.ZodString>;
884
+ image: z.ZodOptional<z.ZodObject<{
885
+ src: z.ZodString;
886
+ alt: z.ZodDefault<z.ZodString>;
887
+ }, z.core.$strip>>;
888
+ bio: z.ZodOptional<z.ZodString>;
889
+ }, z.core.$strip>>;
890
+ }, z.core.$strip> | z.ZodObject<{
891
+ heading: z.ZodOptional<z.ZodString>;
892
+ intro: z.ZodOptional<z.ZodString>;
893
+ logos: z.ZodArray<z.ZodObject<{
894
+ name: z.ZodString;
895
+ logo: z.ZodOptional<z.ZodObject<{
896
+ src: z.ZodString;
897
+ alt: z.ZodDefault<z.ZodString>;
898
+ }, z.core.$strip>>;
899
+ url: z.ZodOptional<z.ZodString>;
900
+ }, z.core.$strip>>;
901
+ }, z.core.$strip> | z.ZodObject<{
902
+ heading: z.ZodOptional<z.ZodString>;
903
+ intro: z.ZodOptional<z.ZodString>;
904
+ formKey: z.ZodString;
905
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
906
+ name: z.ZodString;
907
+ label: z.ZodString;
908
+ type: z.ZodEnum<{
909
+ text: "text";
910
+ email: "email";
911
+ tel: "tel";
912
+ textarea: "textarea";
913
+ select: "select";
914
+ checkbox: "checkbox";
915
+ }>;
916
+ required: z.ZodDefault<z.ZodBoolean>;
917
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
918
+ placeholder: z.ZodOptional<z.ZodString>;
919
+ }, z.core.$strip>>>;
920
+ submitLabel: z.ZodDefault<z.ZodString>;
921
+ successMessage: z.ZodDefault<z.ZodString>;
922
+ sendConfirmation: z.ZodOptional<z.ZodBoolean>;
923
+ confirmationMessage: z.ZodOptional<z.ZodString>;
924
+ emberFormId: z.ZodOptional<z.ZodString>;
925
+ }, z.core.$strip> | z.ZodObject<{
926
+ eyebrow: z.ZodOptional<z.ZodString>;
927
+ heading: z.ZodOptional<z.ZodString>;
928
+ intro: z.ZodOptional<z.ZodString>;
929
+ limit: z.ZodDefault<z.ZodNumber>;
930
+ collectionId: z.ZodOptional<z.ZodString>;
931
+ categoryId: z.ZodOptional<z.ZodString>;
932
+ }, z.core.$strip> | z.ZodObject<{
933
+ eventSlug: z.ZodOptional<z.ZodString>;
934
+ categoryId: z.ZodOptional<z.ZodString>;
935
+ heading: z.ZodOptional<z.ZodString>;
936
+ }, z.core.$strip> | z.ZodObject<{
937
+ eyebrow: z.ZodOptional<z.ZodString>;
938
+ heading: z.ZodOptional<z.ZodString>;
939
+ intro: z.ZodOptional<z.ZodString>;
940
+ collectionId: z.ZodString;
941
+ limit: z.ZodDefault<z.ZodNumber>;
942
+ layout: z.ZodDefault<z.ZodEnum<{
943
+ cards: "cards";
944
+ list: "list";
945
+ }>>;
946
+ tag: z.ZodOptional<z.ZodString>;
947
+ categoryId: z.ZodOptional<z.ZodString>;
948
+ }, z.core.$strip> | z.ZodObject<{
949
+ sharedBlockId: z.ZodString;
950
+ }, z.core.$strip> | z.ZodObject<{
951
+ fundraiserSlug: z.ZodOptional<z.ZodString>;
952
+ categoryId: z.ZodOptional<z.ZodString>;
953
+ heading: z.ZodOptional<z.ZodString>;
954
+ }, z.core.$strip> | z.ZodObject<{
955
+ eyebrow: z.ZodOptional<z.ZodString>;
956
+ heading: z.ZodOptional<z.ZodString>;
957
+ intro: z.ZodOptional<z.ZodString>;
958
+ limit: z.ZodDefault<z.ZodNumber>;
959
+ status: z.ZodDefault<z.ZodEnum<{
960
+ active: "active";
961
+ completed: "completed";
962
+ all: "all";
963
+ }>>;
964
+ categoryId: z.ZodOptional<z.ZodString>;
965
+ }, z.core.$strip> | z.ZodObject<{
966
+ heading: z.ZodOptional<z.ZodString>;
967
+ intro: z.ZodOptional<z.ZodString>;
968
+ fundraiserSlug: z.ZodOptional<z.ZodString>;
969
+ submitLabel: z.ZodDefault<z.ZodString>;
970
+ }, z.core.$strip>;
971
+ }, z.core.$strip>[]], "type">;
972
+ type Block = {
973
+ [T in BlockType]: {
974
+ id: string;
975
+ type: T;
976
+ data: BlockData<T>;
977
+ };
978
+ }[BlockType];
979
+ type ImageRef = z.infer<typeof image>;
980
+ type LinkRef = z.infer<typeof link>;
981
+ type FormField = z.infer<typeof formFieldSchema>;
982
+ /** Page content as stored in `pages.draft` and `page_revisions.content`. */
983
+ declare const pageContentSchema: z.ZodObject<{
984
+ title: z.ZodString;
985
+ seo: z.ZodDefault<z.ZodObject<{
986
+ title: z.ZodOptional<z.ZodString>;
987
+ description: z.ZodOptional<z.ZodString>;
988
+ image: z.ZodOptional<z.ZodObject<{
989
+ src: z.ZodString;
990
+ alt: z.ZodDefault<z.ZodString>;
991
+ }, z.core.$strip>>;
992
+ noIndex: z.ZodOptional<z.ZodBoolean>;
993
+ canonical: z.ZodOptional<z.ZodString>;
994
+ }, z.core.$strip>>;
995
+ blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
996
+ id: z.ZodString;
997
+ type: z.ZodLiteral<"cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "form" | "upcomingEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
998
+ data: z.ZodObject<{
999
+ eyebrow: z.ZodOptional<z.ZodString>;
1000
+ heading: z.ZodString;
1001
+ body: z.ZodOptional<z.ZodString>;
1002
+ image: z.ZodOptional<z.ZodObject<{
1003
+ src: z.ZodString;
1004
+ alt: z.ZodDefault<z.ZodString>;
1005
+ }, z.core.$strip>>;
1006
+ primaryCta: z.ZodOptional<z.ZodObject<{
1007
+ label: z.ZodString;
1008
+ href: z.ZodString;
1009
+ }, z.core.$strip>>;
1010
+ secondaryCta: z.ZodOptional<z.ZodObject<{
1011
+ label: z.ZodString;
1012
+ href: z.ZodString;
1013
+ }, z.core.$strip>>;
1014
+ size: z.ZodDefault<z.ZodEnum<{
1015
+ full: "full";
1016
+ compact: "compact";
1017
+ }>>;
1018
+ showLogo: z.ZodOptional<z.ZodBoolean>;
1019
+ }, z.core.$strip> | z.ZodObject<{
1020
+ markdown: z.ZodDefault<z.ZodString>;
1021
+ width: z.ZodDefault<z.ZodEnum<{
1022
+ narrow: "narrow";
1023
+ wide: "wide";
1024
+ }>>;
1025
+ }, z.core.$strip> | z.ZodObject<{
1026
+ eyebrow: z.ZodOptional<z.ZodString>;
1027
+ heading: z.ZodString;
1028
+ markdown: z.ZodDefault<z.ZodString>;
1029
+ image: z.ZodOptional<z.ZodObject<{
1030
+ src: z.ZodString;
1031
+ alt: z.ZodDefault<z.ZodString>;
1032
+ }, z.core.$strip>>;
1033
+ imagePosition: z.ZodDefault<z.ZodEnum<{
1034
+ left: "left";
1035
+ right: "right";
1036
+ }>>;
1037
+ imageFit: z.ZodDefault<z.ZodEnum<{
1038
+ cover: "cover";
1039
+ contain: "contain";
1040
+ }>>;
1041
+ cta: z.ZodOptional<z.ZodObject<{
1042
+ label: z.ZodString;
1043
+ href: z.ZodString;
1044
+ }, z.core.$strip>>;
1045
+ }, z.core.$strip> | z.ZodObject<{
1046
+ heading: z.ZodOptional<z.ZodString>;
1047
+ items: z.ZodArray<z.ZodObject<{
1048
+ value: z.ZodString;
1049
+ label: z.ZodString;
1050
+ }, z.core.$strip>>;
1051
+ }, z.core.$strip> | z.ZodObject<{
1052
+ eyebrow: z.ZodOptional<z.ZodString>;
1053
+ heading: z.ZodOptional<z.ZodString>;
1054
+ intro: z.ZodOptional<z.ZodString>;
1055
+ items: z.ZodArray<z.ZodObject<{
1056
+ title: z.ZodString;
1057
+ body: z.ZodDefault<z.ZodString>;
1058
+ image: z.ZodOptional<z.ZodObject<{
1059
+ src: z.ZodString;
1060
+ alt: z.ZodDefault<z.ZodString>;
1061
+ }, z.core.$strip>>;
1062
+ link: z.ZodOptional<z.ZodObject<{
1063
+ label: z.ZodString;
1064
+ href: z.ZodString;
1065
+ }, z.core.$strip>>;
1066
+ }, z.core.$strip>>;
1067
+ tone: z.ZodDefault<z.ZodEnum<{
1068
+ default: "default";
1069
+ muted: "muted";
1070
+ inverse: "inverse";
1071
+ accent: "accent";
1072
+ }>>;
1073
+ }, z.core.$strip> | z.ZodObject<{
1074
+ heading: z.ZodString;
1075
+ body: z.ZodOptional<z.ZodString>;
1076
+ primary: z.ZodOptional<z.ZodObject<{
1077
+ label: z.ZodString;
1078
+ href: z.ZodString;
1079
+ }, z.core.$strip>>;
1080
+ secondary: z.ZodOptional<z.ZodObject<{
1081
+ label: z.ZodString;
1082
+ href: z.ZodString;
1083
+ }, z.core.$strip>>;
1084
+ tone: z.ZodDefault<z.ZodEnum<{
1085
+ default: "default";
1086
+ muted: "muted";
1087
+ inverse: "inverse";
1088
+ accent: "accent";
1089
+ }>>;
1090
+ image: z.ZodOptional<z.ZodObject<{
1091
+ src: z.ZodString;
1092
+ alt: z.ZodDefault<z.ZodString>;
1093
+ }, z.core.$strip>>;
1094
+ }, z.core.$strip> | z.ZodObject<{
1095
+ heading: z.ZodOptional<z.ZodString>;
1096
+ items: z.ZodArray<z.ZodObject<{
1097
+ question: z.ZodString;
1098
+ answer: z.ZodDefault<z.ZodString>;
1099
+ }, z.core.$strip>>;
1100
+ }, z.core.$strip> | z.ZodObject<{
1101
+ eyebrow: z.ZodOptional<z.ZodString>;
1102
+ heading: z.ZodOptional<z.ZodString>;
1103
+ intro: z.ZodOptional<z.ZodString>;
1104
+ plans: z.ZodArray<z.ZodObject<{
1105
+ name: z.ZodString;
1106
+ price: z.ZodString;
1107
+ period: z.ZodOptional<z.ZodString>;
1108
+ description: z.ZodOptional<z.ZodString>;
1109
+ features: z.ZodDefault<z.ZodArray<z.ZodString>>;
1110
+ cta: z.ZodOptional<z.ZodObject<{
1111
+ label: z.ZodString;
1112
+ href: z.ZodString;
1113
+ }, z.core.$strip>>;
1114
+ highlight: z.ZodOptional<z.ZodString>;
1115
+ }, z.core.$strip>>;
1116
+ footnote: z.ZodOptional<z.ZodString>;
1117
+ tone: z.ZodDefault<z.ZodEnum<{
1118
+ default: "default";
1119
+ muted: "muted";
1120
+ inverse: "inverse";
1121
+ accent: "accent";
1122
+ }>>;
1123
+ }, z.core.$strip> | z.ZodObject<{
1124
+ eyebrow: z.ZodOptional<z.ZodString>;
1125
+ heading: z.ZodOptional<z.ZodString>;
1126
+ intro: z.ZodOptional<z.ZodString>;
1127
+ items: z.ZodArray<z.ZodObject<{
1128
+ name: z.ZodString;
1129
+ description: z.ZodDefault<z.ZodString>;
1130
+ image: z.ZodOptional<z.ZodObject<{
1131
+ src: z.ZodString;
1132
+ alt: z.ZodDefault<z.ZodString>;
1133
+ }, z.core.$strip>>;
1134
+ url: z.ZodOptional<z.ZodString>;
1135
+ role: z.ZodOptional<z.ZodString>;
1136
+ status: z.ZodOptional<z.ZodString>;
1137
+ stack: z.ZodDefault<z.ZodArray<z.ZodString>>;
1138
+ }, z.core.$strip>>;
1139
+ layout: z.ZodDefault<z.ZodEnum<{
1140
+ showcase: "showcase";
1141
+ grid: "grid";
1142
+ }>>;
1143
+ tone: z.ZodDefault<z.ZodEnum<{
1144
+ default: "default";
1145
+ muted: "muted";
1146
+ inverse: "inverse";
1147
+ accent: "accent";
1148
+ }>>;
1149
+ }, z.core.$strip> | z.ZodObject<{
1150
+ eyebrow: z.ZodOptional<z.ZodString>;
1151
+ heading: z.ZodOptional<z.ZodString>;
1152
+ name: z.ZodString;
1153
+ address: z.ZodString;
1154
+ hours: z.ZodOptional<z.ZodString>;
1155
+ notes: z.ZodOptional<z.ZodString>;
1156
+ showMap: z.ZodDefault<z.ZodBoolean>;
1157
+ }, z.core.$strip> | z.ZodObject<{
1158
+ eyebrow: z.ZodOptional<z.ZodString>;
1159
+ heading: z.ZodOptional<z.ZodString>;
1160
+ intro: z.ZodOptional<z.ZodString>;
1161
+ items: z.ZodArray<z.ZodObject<{
1162
+ time: z.ZodString;
1163
+ title: z.ZodString;
1164
+ details: z.ZodOptional<z.ZodString>;
1165
+ }, z.core.$strip>>;
1166
+ }, z.core.$strip> | z.ZodObject<{
1167
+ heading: z.ZodOptional<z.ZodString>;
1168
+ intro: z.ZodOptional<z.ZodString>;
1169
+ images: z.ZodArray<z.ZodObject<{
1170
+ image: z.ZodObject<{
1171
+ src: z.ZodString;
1172
+ alt: z.ZodDefault<z.ZodString>;
1173
+ }, z.core.$strip>;
1174
+ caption: z.ZodOptional<z.ZodString>;
1175
+ }, z.core.$strip>>;
1176
+ columns: z.ZodDefault<z.ZodEnum<{
1177
+ 2: "2";
1178
+ 3: "3";
1179
+ 4: "4";
1180
+ }>>;
1181
+ }, z.core.$strip> | z.ZodObject<{
1182
+ quote: z.ZodString;
1183
+ name: z.ZodOptional<z.ZodString>;
1184
+ role: z.ZodOptional<z.ZodString>;
1185
+ image: z.ZodOptional<z.ZodObject<{
1186
+ src: z.ZodString;
1187
+ alt: z.ZodDefault<z.ZodString>;
1188
+ }, z.core.$strip>>;
1189
+ tone: z.ZodDefault<z.ZodEnum<{
1190
+ default: "default";
1191
+ muted: "muted";
1192
+ inverse: "inverse";
1193
+ accent: "accent";
1194
+ }>>;
1195
+ }, z.core.$strip> | z.ZodObject<{
1196
+ heading: z.ZodOptional<z.ZodString>;
1197
+ url: z.ZodString;
1198
+ title: z.ZodString;
1199
+ caption: z.ZodOptional<z.ZodString>;
1200
+ }, z.core.$strip> | z.ZodObject<{
1201
+ eyebrow: z.ZodOptional<z.ZodString>;
1202
+ heading: z.ZodOptional<z.ZodString>;
1203
+ intro: z.ZodOptional<z.ZodString>;
1204
+ people: z.ZodArray<z.ZodObject<{
1205
+ name: z.ZodString;
1206
+ role: z.ZodOptional<z.ZodString>;
1207
+ image: z.ZodOptional<z.ZodObject<{
1208
+ src: z.ZodString;
1209
+ alt: z.ZodDefault<z.ZodString>;
1210
+ }, z.core.$strip>>;
1211
+ bio: z.ZodOptional<z.ZodString>;
1212
+ }, z.core.$strip>>;
1213
+ }, z.core.$strip> | z.ZodObject<{
1214
+ heading: z.ZodOptional<z.ZodString>;
1215
+ intro: z.ZodOptional<z.ZodString>;
1216
+ logos: z.ZodArray<z.ZodObject<{
1217
+ name: z.ZodString;
1218
+ logo: z.ZodOptional<z.ZodObject<{
1219
+ src: z.ZodString;
1220
+ alt: z.ZodDefault<z.ZodString>;
1221
+ }, z.core.$strip>>;
1222
+ url: z.ZodOptional<z.ZodString>;
1223
+ }, z.core.$strip>>;
1224
+ }, z.core.$strip> | z.ZodObject<{
1225
+ heading: z.ZodOptional<z.ZodString>;
1226
+ intro: z.ZodOptional<z.ZodString>;
1227
+ formKey: z.ZodString;
1228
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1229
+ name: z.ZodString;
1230
+ label: z.ZodString;
1231
+ type: z.ZodEnum<{
1232
+ text: "text";
1233
+ email: "email";
1234
+ tel: "tel";
1235
+ textarea: "textarea";
1236
+ select: "select";
1237
+ checkbox: "checkbox";
1238
+ }>;
1239
+ required: z.ZodDefault<z.ZodBoolean>;
1240
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
1241
+ placeholder: z.ZodOptional<z.ZodString>;
1242
+ }, z.core.$strip>>>;
1243
+ submitLabel: z.ZodDefault<z.ZodString>;
1244
+ successMessage: z.ZodDefault<z.ZodString>;
1245
+ sendConfirmation: z.ZodOptional<z.ZodBoolean>;
1246
+ confirmationMessage: z.ZodOptional<z.ZodString>;
1247
+ emberFormId: z.ZodOptional<z.ZodString>;
1248
+ }, z.core.$strip> | z.ZodObject<{
1249
+ eyebrow: z.ZodOptional<z.ZodString>;
1250
+ heading: z.ZodOptional<z.ZodString>;
1251
+ intro: z.ZodOptional<z.ZodString>;
1252
+ limit: z.ZodDefault<z.ZodNumber>;
1253
+ collectionId: z.ZodOptional<z.ZodString>;
1254
+ categoryId: z.ZodOptional<z.ZodString>;
1255
+ }, z.core.$strip> | z.ZodObject<{
1256
+ eventSlug: z.ZodOptional<z.ZodString>;
1257
+ categoryId: z.ZodOptional<z.ZodString>;
1258
+ heading: z.ZodOptional<z.ZodString>;
1259
+ }, z.core.$strip> | z.ZodObject<{
1260
+ eyebrow: z.ZodOptional<z.ZodString>;
1261
+ heading: z.ZodOptional<z.ZodString>;
1262
+ intro: z.ZodOptional<z.ZodString>;
1263
+ collectionId: z.ZodString;
1264
+ limit: z.ZodDefault<z.ZodNumber>;
1265
+ layout: z.ZodDefault<z.ZodEnum<{
1266
+ cards: "cards";
1267
+ list: "list";
1268
+ }>>;
1269
+ tag: z.ZodOptional<z.ZodString>;
1270
+ categoryId: z.ZodOptional<z.ZodString>;
1271
+ }, z.core.$strip> | z.ZodObject<{
1272
+ sharedBlockId: z.ZodString;
1273
+ }, z.core.$strip> | z.ZodObject<{
1274
+ fundraiserSlug: z.ZodOptional<z.ZodString>;
1275
+ categoryId: z.ZodOptional<z.ZodString>;
1276
+ heading: z.ZodOptional<z.ZodString>;
1277
+ }, z.core.$strip> | z.ZodObject<{
1278
+ eyebrow: z.ZodOptional<z.ZodString>;
1279
+ heading: z.ZodOptional<z.ZodString>;
1280
+ intro: z.ZodOptional<z.ZodString>;
1281
+ limit: z.ZodDefault<z.ZodNumber>;
1282
+ status: z.ZodDefault<z.ZodEnum<{
1283
+ active: "active";
1284
+ completed: "completed";
1285
+ all: "all";
1286
+ }>>;
1287
+ categoryId: z.ZodOptional<z.ZodString>;
1288
+ }, z.core.$strip> | z.ZodObject<{
1289
+ heading: z.ZodOptional<z.ZodString>;
1290
+ intro: z.ZodOptional<z.ZodString>;
1291
+ fundraiserSlug: z.ZodOptional<z.ZodString>;
1292
+ submitLabel: z.ZodDefault<z.ZodString>;
1293
+ }, z.core.$strip>;
1294
+ }, z.core.$strip>, ...z.ZodObject<{
1295
+ id: z.ZodString;
1296
+ type: z.ZodLiteral<"cta" | "quote" | "people" | "logos" | "hero" | "richText" | "mediaText" | "stats" | "cardGrid" | "faq" | "pricing" | "projects" | "location" | "schedule" | "gallery" | "video" | "form" | "upcomingEvents" | "eventSpotlight" | "collectionList" | "sharedBlock" | "fundraiserSpotlight" | "fundraiserGrid" | "donate">;
1297
+ data: z.ZodObject<{
1298
+ eyebrow: z.ZodOptional<z.ZodString>;
1299
+ heading: z.ZodString;
1300
+ body: z.ZodOptional<z.ZodString>;
1301
+ image: z.ZodOptional<z.ZodObject<{
1302
+ src: z.ZodString;
1303
+ alt: z.ZodDefault<z.ZodString>;
1304
+ }, z.core.$strip>>;
1305
+ primaryCta: z.ZodOptional<z.ZodObject<{
1306
+ label: z.ZodString;
1307
+ href: z.ZodString;
1308
+ }, z.core.$strip>>;
1309
+ secondaryCta: z.ZodOptional<z.ZodObject<{
1310
+ label: z.ZodString;
1311
+ href: z.ZodString;
1312
+ }, z.core.$strip>>;
1313
+ size: z.ZodDefault<z.ZodEnum<{
1314
+ full: "full";
1315
+ compact: "compact";
1316
+ }>>;
1317
+ showLogo: z.ZodOptional<z.ZodBoolean>;
1318
+ }, z.core.$strip> | z.ZodObject<{
1319
+ markdown: z.ZodDefault<z.ZodString>;
1320
+ width: z.ZodDefault<z.ZodEnum<{
1321
+ narrow: "narrow";
1322
+ wide: "wide";
1323
+ }>>;
1324
+ }, z.core.$strip> | z.ZodObject<{
1325
+ eyebrow: z.ZodOptional<z.ZodString>;
1326
+ heading: z.ZodString;
1327
+ markdown: z.ZodDefault<z.ZodString>;
1328
+ image: z.ZodOptional<z.ZodObject<{
1329
+ src: z.ZodString;
1330
+ alt: z.ZodDefault<z.ZodString>;
1331
+ }, z.core.$strip>>;
1332
+ imagePosition: z.ZodDefault<z.ZodEnum<{
1333
+ left: "left";
1334
+ right: "right";
1335
+ }>>;
1336
+ imageFit: z.ZodDefault<z.ZodEnum<{
1337
+ cover: "cover";
1338
+ contain: "contain";
1339
+ }>>;
1340
+ cta: z.ZodOptional<z.ZodObject<{
1341
+ label: z.ZodString;
1342
+ href: z.ZodString;
1343
+ }, z.core.$strip>>;
1344
+ }, z.core.$strip> | z.ZodObject<{
1345
+ heading: z.ZodOptional<z.ZodString>;
1346
+ items: z.ZodArray<z.ZodObject<{
1347
+ value: z.ZodString;
1348
+ label: z.ZodString;
1349
+ }, z.core.$strip>>;
1350
+ }, z.core.$strip> | z.ZodObject<{
1351
+ eyebrow: z.ZodOptional<z.ZodString>;
1352
+ heading: z.ZodOptional<z.ZodString>;
1353
+ intro: z.ZodOptional<z.ZodString>;
1354
+ items: z.ZodArray<z.ZodObject<{
1355
+ title: z.ZodString;
1356
+ body: z.ZodDefault<z.ZodString>;
1357
+ image: z.ZodOptional<z.ZodObject<{
1358
+ src: z.ZodString;
1359
+ alt: z.ZodDefault<z.ZodString>;
1360
+ }, z.core.$strip>>;
1361
+ link: z.ZodOptional<z.ZodObject<{
1362
+ label: z.ZodString;
1363
+ href: z.ZodString;
1364
+ }, z.core.$strip>>;
1365
+ }, z.core.$strip>>;
1366
+ tone: z.ZodDefault<z.ZodEnum<{
1367
+ default: "default";
1368
+ muted: "muted";
1369
+ inverse: "inverse";
1370
+ accent: "accent";
1371
+ }>>;
1372
+ }, z.core.$strip> | z.ZodObject<{
1373
+ heading: z.ZodString;
1374
+ body: z.ZodOptional<z.ZodString>;
1375
+ primary: z.ZodOptional<z.ZodObject<{
1376
+ label: z.ZodString;
1377
+ href: z.ZodString;
1378
+ }, z.core.$strip>>;
1379
+ secondary: z.ZodOptional<z.ZodObject<{
1380
+ label: z.ZodString;
1381
+ href: z.ZodString;
1382
+ }, z.core.$strip>>;
1383
+ tone: z.ZodDefault<z.ZodEnum<{
1384
+ default: "default";
1385
+ muted: "muted";
1386
+ inverse: "inverse";
1387
+ accent: "accent";
1388
+ }>>;
1389
+ image: z.ZodOptional<z.ZodObject<{
1390
+ src: z.ZodString;
1391
+ alt: z.ZodDefault<z.ZodString>;
1392
+ }, z.core.$strip>>;
1393
+ }, z.core.$strip> | z.ZodObject<{
1394
+ heading: z.ZodOptional<z.ZodString>;
1395
+ items: z.ZodArray<z.ZodObject<{
1396
+ question: z.ZodString;
1397
+ answer: z.ZodDefault<z.ZodString>;
1398
+ }, z.core.$strip>>;
1399
+ }, z.core.$strip> | z.ZodObject<{
1400
+ eyebrow: z.ZodOptional<z.ZodString>;
1401
+ heading: z.ZodOptional<z.ZodString>;
1402
+ intro: z.ZodOptional<z.ZodString>;
1403
+ plans: z.ZodArray<z.ZodObject<{
1404
+ name: z.ZodString;
1405
+ price: z.ZodString;
1406
+ period: z.ZodOptional<z.ZodString>;
1407
+ description: z.ZodOptional<z.ZodString>;
1408
+ features: z.ZodDefault<z.ZodArray<z.ZodString>>;
1409
+ cta: z.ZodOptional<z.ZodObject<{
1410
+ label: z.ZodString;
1411
+ href: z.ZodString;
1412
+ }, z.core.$strip>>;
1413
+ highlight: z.ZodOptional<z.ZodString>;
1414
+ }, z.core.$strip>>;
1415
+ footnote: z.ZodOptional<z.ZodString>;
1416
+ tone: z.ZodDefault<z.ZodEnum<{
1417
+ default: "default";
1418
+ muted: "muted";
1419
+ inverse: "inverse";
1420
+ accent: "accent";
1421
+ }>>;
1422
+ }, z.core.$strip> | z.ZodObject<{
1423
+ eyebrow: z.ZodOptional<z.ZodString>;
1424
+ heading: z.ZodOptional<z.ZodString>;
1425
+ intro: z.ZodOptional<z.ZodString>;
1426
+ items: z.ZodArray<z.ZodObject<{
1427
+ name: z.ZodString;
1428
+ description: z.ZodDefault<z.ZodString>;
1429
+ image: z.ZodOptional<z.ZodObject<{
1430
+ src: z.ZodString;
1431
+ alt: z.ZodDefault<z.ZodString>;
1432
+ }, z.core.$strip>>;
1433
+ url: z.ZodOptional<z.ZodString>;
1434
+ role: z.ZodOptional<z.ZodString>;
1435
+ status: z.ZodOptional<z.ZodString>;
1436
+ stack: z.ZodDefault<z.ZodArray<z.ZodString>>;
1437
+ }, z.core.$strip>>;
1438
+ layout: z.ZodDefault<z.ZodEnum<{
1439
+ showcase: "showcase";
1440
+ grid: "grid";
1441
+ }>>;
1442
+ tone: z.ZodDefault<z.ZodEnum<{
1443
+ default: "default";
1444
+ muted: "muted";
1445
+ inverse: "inverse";
1446
+ accent: "accent";
1447
+ }>>;
1448
+ }, z.core.$strip> | z.ZodObject<{
1449
+ eyebrow: z.ZodOptional<z.ZodString>;
1450
+ heading: z.ZodOptional<z.ZodString>;
1451
+ name: z.ZodString;
1452
+ address: z.ZodString;
1453
+ hours: z.ZodOptional<z.ZodString>;
1454
+ notes: z.ZodOptional<z.ZodString>;
1455
+ showMap: z.ZodDefault<z.ZodBoolean>;
1456
+ }, z.core.$strip> | z.ZodObject<{
1457
+ eyebrow: z.ZodOptional<z.ZodString>;
1458
+ heading: z.ZodOptional<z.ZodString>;
1459
+ intro: z.ZodOptional<z.ZodString>;
1460
+ items: z.ZodArray<z.ZodObject<{
1461
+ time: z.ZodString;
1462
+ title: z.ZodString;
1463
+ details: z.ZodOptional<z.ZodString>;
1464
+ }, z.core.$strip>>;
1465
+ }, z.core.$strip> | z.ZodObject<{
1466
+ heading: z.ZodOptional<z.ZodString>;
1467
+ intro: z.ZodOptional<z.ZodString>;
1468
+ images: z.ZodArray<z.ZodObject<{
1469
+ image: z.ZodObject<{
1470
+ src: z.ZodString;
1471
+ alt: z.ZodDefault<z.ZodString>;
1472
+ }, z.core.$strip>;
1473
+ caption: z.ZodOptional<z.ZodString>;
1474
+ }, z.core.$strip>>;
1475
+ columns: z.ZodDefault<z.ZodEnum<{
1476
+ 2: "2";
1477
+ 3: "3";
1478
+ 4: "4";
1479
+ }>>;
1480
+ }, z.core.$strip> | z.ZodObject<{
1481
+ quote: z.ZodString;
1482
+ name: z.ZodOptional<z.ZodString>;
1483
+ role: z.ZodOptional<z.ZodString>;
1484
+ image: z.ZodOptional<z.ZodObject<{
1485
+ src: z.ZodString;
1486
+ alt: z.ZodDefault<z.ZodString>;
1487
+ }, z.core.$strip>>;
1488
+ tone: z.ZodDefault<z.ZodEnum<{
1489
+ default: "default";
1490
+ muted: "muted";
1491
+ inverse: "inverse";
1492
+ accent: "accent";
1493
+ }>>;
1494
+ }, z.core.$strip> | z.ZodObject<{
1495
+ heading: z.ZodOptional<z.ZodString>;
1496
+ url: z.ZodString;
1497
+ title: z.ZodString;
1498
+ caption: z.ZodOptional<z.ZodString>;
1499
+ }, z.core.$strip> | z.ZodObject<{
1500
+ eyebrow: z.ZodOptional<z.ZodString>;
1501
+ heading: z.ZodOptional<z.ZodString>;
1502
+ intro: z.ZodOptional<z.ZodString>;
1503
+ people: z.ZodArray<z.ZodObject<{
1504
+ name: z.ZodString;
1505
+ role: z.ZodOptional<z.ZodString>;
1506
+ image: z.ZodOptional<z.ZodObject<{
1507
+ src: z.ZodString;
1508
+ alt: z.ZodDefault<z.ZodString>;
1509
+ }, z.core.$strip>>;
1510
+ bio: z.ZodOptional<z.ZodString>;
1511
+ }, z.core.$strip>>;
1512
+ }, z.core.$strip> | z.ZodObject<{
1513
+ heading: z.ZodOptional<z.ZodString>;
1514
+ intro: z.ZodOptional<z.ZodString>;
1515
+ logos: z.ZodArray<z.ZodObject<{
1516
+ name: z.ZodString;
1517
+ logo: z.ZodOptional<z.ZodObject<{
1518
+ src: z.ZodString;
1519
+ alt: z.ZodDefault<z.ZodString>;
1520
+ }, z.core.$strip>>;
1521
+ url: z.ZodOptional<z.ZodString>;
1522
+ }, z.core.$strip>>;
1523
+ }, z.core.$strip> | z.ZodObject<{
1524
+ heading: z.ZodOptional<z.ZodString>;
1525
+ intro: z.ZodOptional<z.ZodString>;
1526
+ formKey: z.ZodString;
1527
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1528
+ name: z.ZodString;
1529
+ label: z.ZodString;
1530
+ type: z.ZodEnum<{
1531
+ text: "text";
1532
+ email: "email";
1533
+ tel: "tel";
1534
+ textarea: "textarea";
1535
+ select: "select";
1536
+ checkbox: "checkbox";
1537
+ }>;
1538
+ required: z.ZodDefault<z.ZodBoolean>;
1539
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
1540
+ placeholder: z.ZodOptional<z.ZodString>;
1541
+ }, z.core.$strip>>>;
1542
+ submitLabel: z.ZodDefault<z.ZodString>;
1543
+ successMessage: z.ZodDefault<z.ZodString>;
1544
+ sendConfirmation: z.ZodOptional<z.ZodBoolean>;
1545
+ confirmationMessage: z.ZodOptional<z.ZodString>;
1546
+ emberFormId: z.ZodOptional<z.ZodString>;
1547
+ }, z.core.$strip> | z.ZodObject<{
1548
+ eyebrow: z.ZodOptional<z.ZodString>;
1549
+ heading: z.ZodOptional<z.ZodString>;
1550
+ intro: z.ZodOptional<z.ZodString>;
1551
+ limit: z.ZodDefault<z.ZodNumber>;
1552
+ collectionId: z.ZodOptional<z.ZodString>;
1553
+ categoryId: z.ZodOptional<z.ZodString>;
1554
+ }, z.core.$strip> | z.ZodObject<{
1555
+ eventSlug: z.ZodOptional<z.ZodString>;
1556
+ categoryId: z.ZodOptional<z.ZodString>;
1557
+ heading: z.ZodOptional<z.ZodString>;
1558
+ }, z.core.$strip> | z.ZodObject<{
1559
+ eyebrow: z.ZodOptional<z.ZodString>;
1560
+ heading: z.ZodOptional<z.ZodString>;
1561
+ intro: z.ZodOptional<z.ZodString>;
1562
+ collectionId: z.ZodString;
1563
+ limit: z.ZodDefault<z.ZodNumber>;
1564
+ layout: z.ZodDefault<z.ZodEnum<{
1565
+ cards: "cards";
1566
+ list: "list";
1567
+ }>>;
1568
+ tag: z.ZodOptional<z.ZodString>;
1569
+ categoryId: z.ZodOptional<z.ZodString>;
1570
+ }, z.core.$strip> | z.ZodObject<{
1571
+ sharedBlockId: z.ZodString;
1572
+ }, z.core.$strip> | z.ZodObject<{
1573
+ fundraiserSlug: z.ZodOptional<z.ZodString>;
1574
+ categoryId: z.ZodOptional<z.ZodString>;
1575
+ heading: z.ZodOptional<z.ZodString>;
1576
+ }, z.core.$strip> | z.ZodObject<{
1577
+ eyebrow: z.ZodOptional<z.ZodString>;
1578
+ heading: z.ZodOptional<z.ZodString>;
1579
+ intro: z.ZodOptional<z.ZodString>;
1580
+ limit: z.ZodDefault<z.ZodNumber>;
1581
+ status: z.ZodDefault<z.ZodEnum<{
1582
+ active: "active";
1583
+ completed: "completed";
1584
+ all: "all";
1585
+ }>>;
1586
+ categoryId: z.ZodOptional<z.ZodString>;
1587
+ }, z.core.$strip> | z.ZodObject<{
1588
+ heading: z.ZodOptional<z.ZodString>;
1589
+ intro: z.ZodOptional<z.ZodString>;
1590
+ fundraiserSlug: z.ZodOptional<z.ZodString>;
1591
+ submitLabel: z.ZodDefault<z.ZodString>;
1592
+ }, z.core.$strip>;
1593
+ }, z.core.$strip>[]], "type">>;
1594
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
1595
+ entry: z.ZodOptional<z.ZodObject<{
1596
+ date: z.ZodOptional<z.ZodISODate>;
1597
+ summary: z.ZodOptional<z.ZodString>;
1598
+ image: z.ZodOptional<z.ZodObject<{
1599
+ src: z.ZodString;
1600
+ alt: z.ZodDefault<z.ZodString>;
1601
+ }, z.core.$strip>>;
1602
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
1603
+ }, z.core.$strip>>;
1604
+ }, z.core.$strip>;
1605
+ type PageContent = Omit<z.infer<typeof pageContentSchema>, "blocks"> & {
1606
+ blocks: Block[];
1607
+ };
1608
+ type EntryDetails = NonNullable<z.infer<typeof pageContentSchema>["entry"]>;
1609
+ /**
1610
+ * Privacy-friendly embed URL for a YouTube or Vimeo link, or null if the link
1611
+ * isn't one. Handles watch, youtu.be, shorts, embed, and vimeo.com/<id> forms.
1612
+ */
1613
+ declare function videoEmbedUrl(url: string): string | null;
1614
+ /**
1615
+ * Parse a stored block list, dropping (and reporting) invalid blocks instead
1616
+ * of failing the whole page. One bad block should never take a page down.
1617
+ */
1618
+ declare function parseBlocks(input: unknown): Block[];
1619
+ /** Parse stored page content (draft or revision), tolerating bad blocks. */
1620
+ declare function parsePageContent(input: unknown): PageContent;
1621
+ /** A site's form as managed on its Forms page (the input the admin and importer validate). */
1622
+ declare const formDefinitionSchema: z.ZodObject<{
1623
+ key: z.ZodString;
1624
+ name: z.ZodString;
1625
+ fields: z.ZodArray<z.ZodObject<{
1626
+ name: z.ZodString;
1627
+ label: z.ZodString;
1628
+ type: z.ZodEnum<{
1629
+ text: "text";
1630
+ email: "email";
1631
+ tel: "tel";
1632
+ textarea: "textarea";
1633
+ select: "select";
1634
+ checkbox: "checkbox";
1635
+ }>;
1636
+ required: z.ZodDefault<z.ZodBoolean>;
1637
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
1638
+ placeholder: z.ZodOptional<z.ZodString>;
1639
+ }, z.core.$strip>>;
1640
+ submitLabel: z.ZodDefault<z.ZodString>;
1641
+ successMessage: z.ZodDefault<z.ZodString>;
1642
+ sendConfirmation: z.ZodDefault<z.ZodBoolean>;
1643
+ confirmationMessage: z.ZodOptional<z.ZodString>;
1644
+ }, z.core.$strip>;
1645
+ type FormDefinition = z.infer<typeof formDefinitionSchema>;
1646
+
1647
+ declare const ORGANIZATION_TYPES: readonly ["Organization", "LocalBusiness", "NGO", "Corporation", "EducationalOrganization", "GovernmentOrganization", "MedicalOrganization", "SportsOrganization"];
1648
+ declare const SOCIAL_PLATFORMS: readonly ["facebook", "instagram", "linkedin", "x", "youtube", "tiktok", "other"];
1649
+ declare const siteSettingsSchema: z.ZodObject<{
1650
+ navigation: z.ZodDefault<z.ZodArray<z.ZodObject<{
1651
+ label: z.ZodString;
1652
+ href: z.ZodString;
1653
+ }, z.core.$strip>>>;
1654
+ footerLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1655
+ label: z.ZodString;
1656
+ href: z.ZodString;
1657
+ }, z.core.$strip>>>;
1658
+ contact: z.ZodDefault<z.ZodObject<{
1659
+ email: z.ZodOptional<z.ZodString>;
1660
+ phone: z.ZodOptional<z.ZodString>;
1661
+ address: z.ZodOptional<z.ZodString>;
1662
+ }, z.core.$strip>>;
1663
+ tagline: z.ZodOptional<z.ZodString>;
1664
+ social: z.ZodDefault<z.ZodArray<z.ZodObject<{
1665
+ platform: z.ZodEnum<{
1666
+ facebook: "facebook";
1667
+ instagram: "instagram";
1668
+ linkedin: "linkedin";
1669
+ x: "x";
1670
+ youtube: "youtube";
1671
+ tiktok: "tiktok";
1672
+ other: "other";
1673
+ }>;
1674
+ url: z.ZodURL;
1675
+ label: z.ZodOptional<z.ZodString>;
1676
+ }, z.core.$strip>>>;
1677
+ announcement: z.ZodOptional<z.ZodString>;
1678
+ events: z.ZodDefault<z.ZodObject<{
1679
+ registrationComingSoon: z.ZodDefault<z.ZodBoolean>;
1680
+ comingSoonText: z.ZodOptional<z.ZodString>;
1681
+ }, z.core.$strip>>;
1682
+ email: z.ZodDefault<z.ZodObject<{
1683
+ fromName: z.ZodOptional<z.ZodString>;
1684
+ fromAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodEmail]>>;
1685
+ replyTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodEmail]>>;
1686
+ accentColor: z.ZodOptional<z.ZodString>;
1687
+ footer: z.ZodOptional<z.ZodString>;
1688
+ }, z.core.$strip>>;
1689
+ giving: z.ZodDefault<z.ZodObject<{
1690
+ legalName: z.ZodOptional<z.ZodString>;
1691
+ ein: z.ZodOptional<z.ZodString>;
1692
+ taxStatement: z.ZodOptional<z.ZodString>;
1693
+ presetsCents: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
1694
+ minCents: z.ZodDefault<z.ZodNumber>;
1695
+ maxCents: z.ZodDefault<z.ZodNumber>;
1696
+ }, z.core.$strip>>;
1697
+ seo: z.ZodDefault<z.ZodObject<{
1698
+ titleTemplate: z.ZodOptional<z.ZodString>;
1699
+ description: z.ZodOptional<z.ZodString>;
1700
+ image: z.ZodOptional<z.ZodObject<{
1701
+ src: z.ZodString;
1702
+ alt: z.ZodDefault<z.ZodString>;
1703
+ }, z.core.$strip>>;
1704
+ organizationType: z.ZodDefault<z.ZodEnum<{
1705
+ Organization: "Organization";
1706
+ LocalBusiness: "LocalBusiness";
1707
+ NGO: "NGO";
1708
+ Corporation: "Corporation";
1709
+ EducationalOrganization: "EducationalOrganization";
1710
+ GovernmentOrganization: "GovernmentOrganization";
1711
+ MedicalOrganization: "MedicalOrganization";
1712
+ SportsOrganization: "SportsOrganization";
1713
+ }>>;
1714
+ logo: z.ZodOptional<z.ZodObject<{
1715
+ src: z.ZodString;
1716
+ alt: z.ZodDefault<z.ZodString>;
1717
+ }, z.core.$strip>>;
1718
+ twitterHandle: z.ZodOptional<z.ZodString>;
1719
+ ogBackground: z.ZodOptional<z.ZodString>;
1720
+ ogText: z.ZodOptional<z.ZodString>;
1721
+ ogAccent: z.ZodOptional<z.ZodString>;
1722
+ }, z.core.$strip>>;
1723
+ }, z.core.$strip>;
1724
+ type SiteSettings = z.infer<typeof siteSettingsSchema>;
1725
+ declare function parseSiteSettings(input: unknown): SiteSettings;
1726
+
1727
+ /**
1728
+ * A way to register for an event (sites with the Tickets feature), e.g. "Foursome · $500 · 4 golfers" or a free
1729
+ * "RSVP". Stored on the event; each registration keeps a snapshot of the ticket's name and price.
1730
+ */
1731
+ declare const ticketTypeSchema: z.ZodObject<{
1732
+ id: z.ZodString;
1733
+ name: z.ZodString;
1734
+ description: z.ZodOptional<z.ZodString>;
1735
+ priceCents: z.ZodNumber;
1736
+ attendeesPerRegistration: z.ZodDefault<z.ZodNumber>;
1737
+ attendeeLabel: z.ZodOptional<z.ZodString>;
1738
+ capacity: z.ZodOptional<z.ZodNumber>;
1739
+ active: z.ZodDefault<z.ZodBoolean>;
1740
+ }, z.core.$strip>;
1741
+ declare const ticketTypesSchema: z.ZodArray<z.ZodObject<{
1742
+ id: z.ZodString;
1743
+ name: z.ZodString;
1744
+ description: z.ZodOptional<z.ZodString>;
1745
+ priceCents: z.ZodNumber;
1746
+ attendeesPerRegistration: z.ZodDefault<z.ZodNumber>;
1747
+ attendeeLabel: z.ZodOptional<z.ZodString>;
1748
+ capacity: z.ZodOptional<z.ZodNumber>;
1749
+ active: z.ZodDefault<z.ZodBoolean>;
1750
+ }, z.core.$strip>>;
1751
+ type TicketType = z.infer<typeof ticketTypeSchema>;
1752
+ /** Stored ticket types, dropping anything that doesn't parse (never throws). */
1753
+ declare function parseTicketTypes(input: unknown): TicketType[];
1754
+
1755
+ /** Resolved search and sharing data for a page or event. */
1756
+ type PageMeta = {
1757
+ /** The page's own title. */
1758
+ title: string;
1759
+ /** The <title>, with the site's template applied. */
1760
+ fullTitle: string;
1761
+ description: string | null;
1762
+ path: string;
1763
+ /** Absolute when the site has a domain; otherwise the path. */
1764
+ canonical: string;
1765
+ robots: {
1766
+ index: boolean;
1767
+ follow: boolean;
1768
+ };
1769
+ image: {
1770
+ url: string;
1771
+ width: number;
1772
+ height: number;
1773
+ alt: string;
1774
+ generated: boolean;
1775
+ };
1776
+ openGraph: {
1777
+ type: "website" | "article";
1778
+ siteName: string;
1779
+ locale: string;
1780
+ url: string;
1781
+ };
1782
+ twitter: {
1783
+ card: "summary_large_image";
1784
+ site: string | null;
1785
+ };
1786
+ /** schema.org objects; render each in a <script type="application/ld+json">. */
1787
+ jsonLd: Record<string, unknown>[];
1788
+ };
1789
+ /**
1790
+ * Per-client additions to events. Augment it in a site to type `customFields`:
1791
+ *
1792
+ * declare module "@the-smithy/hearth-schema" { interface EventCustomFields { sponsorTier?: string } }
1793
+ */
1794
+ interface EventCustomFields {
1795
+ }
1796
+ type HearthEvent = {
1797
+ slug: string;
1798
+ title: string;
1799
+ status: "published" | "cancelled";
1800
+ summary: string | null;
1801
+ startsAt: string;
1802
+ endsAt: string | null;
1803
+ allDay: boolean;
1804
+ timezone: string;
1805
+ location: {
1806
+ name: string | null;
1807
+ address: string | null;
1808
+ };
1809
+ registrationUrl: string | null;
1810
+ image: {
1811
+ src: string;
1812
+ alt: string;
1813
+ } | null;
1814
+ customFields: EventCustomFields & Record<string, unknown>;
1815
+ /** Where the event's page lives: /<collection>/<slug> for events in a collection, else /events/<slug>. */
1816
+ path: string;
1817
+ /** The event collection it belongs to (e.g. Talks), if any. */
1818
+ collection: CollectionRef | null;
1819
+ categories: CategoryRef[];
1820
+ /** On-site registration (sites with Tickets), or null when the event uses `registrationUrl` or none. */
1821
+ registration: EventRegistration | null;
1822
+ };
1823
+ /** One ticket as the public sees it: active tickets only, with spots left. */
1824
+ type EventTicket = {
1825
+ id: string;
1826
+ name: string;
1827
+ description: string | null;
1828
+ /** 0 is free (an RSVP). */
1829
+ priceCents: number;
1830
+ attendeesPerRegistration: number;
1831
+ attendeeLabel: string | null;
1832
+ /** Spots left, or null when unlimited. */
1833
+ remaining: number | null;
1834
+ soldOut: boolean;
1835
+ };
1836
+ type EventRegistration = {
1837
+ /** Taking registrations now: published, before the closing time (or the start), and not everything sold out. */
1838
+ open: boolean;
1839
+ closesAt: string | null;
1840
+ tickets: EventTicket[];
1841
+ /** Ticket sales count toward this fundraiser. */
1842
+ fundraiser: {
1843
+ slug: string;
1844
+ title: string;
1845
+ } | null;
1846
+ };
1847
+ /** Register for an event: POST /events/{slug}/registrations. */
1848
+ type RegistrationInput = {
1849
+ /** Ticket id. */
1850
+ ticket: string;
1851
+ name: string;
1852
+ email: string;
1853
+ phone?: string;
1854
+ teamName?: string;
1855
+ /** One name per attendee (the ticket's attendeesPerRegistration). */
1856
+ attendees?: string[];
1857
+ notes?: string;
1858
+ /** Where the payment page sends the buyer afterwards (paid tickets), on the site's domain. */
1859
+ returnUrl: string;
1860
+ };
1861
+ /** Free tickets are confirmed straight away; paid ones wait for payment at `checkoutUrl`. */
1862
+ type RegistrationResult = {
1863
+ registrationId: string;
1864
+ status: "confirmed";
1865
+ } | {
1866
+ registrationId: string;
1867
+ status: "pending";
1868
+ checkoutUrl: string;
1869
+ };
1870
+ /** A category as attached to pages, events and entries, with the group it belongs to. */
1871
+ type CategoryRef = {
1872
+ id: string;
1873
+ slug: string;
1874
+ name: string;
1875
+ group: {
1876
+ id: string;
1877
+ slug: string;
1878
+ name: string;
1879
+ };
1880
+ };
1881
+ /** A group of categories ("Topic") and its categories, as listed by the categories endpoint. */
1882
+ type CategoryGroup = {
1883
+ id: string;
1884
+ slug: string;
1885
+ name: string;
1886
+ appliesTo: "pages" | "events" | "both";
1887
+ /** Also used on fundraisers (sites with Giving). */
1888
+ fundraisers: boolean;
1889
+ /** Several categories from this group can apply at once (topics), or only one (a status). */
1890
+ multiple: boolean;
1891
+ categories: {
1892
+ id: string;
1893
+ slug: string;
1894
+ name: string;
1895
+ description: string | null;
1896
+ }[];
1897
+ };
1898
+ /** A collection's name and address, as attached to its pages and events. */
1899
+ type CollectionRef = {
1900
+ id: string;
1901
+ slug: string;
1902
+ name: string;
1903
+ };
1904
+ /** A user-named group of pages ("Blog") or events ("Talks"). */
1905
+ type Collection = CollectionRef & {
1906
+ kind: "pages" | "events";
1907
+ description: string | null;
1908
+ /** The collection's own address, e.g. "/blog". */
1909
+ path: string;
1910
+ sort: "newest" | "oldest" | "title";
1911
+ };
1912
+ /** One page in a page collection, as listed (the full page comes from pages.get with its path). */
1913
+ type CollectionEntry = {
1914
+ slug: string;
1915
+ path: string;
1916
+ title: string;
1917
+ /** YYYY-MM-DD; falls back to the date the entry was published. */
1918
+ date: string | null;
1919
+ summary: string | null;
1920
+ image: {
1921
+ src: string;
1922
+ alt: string;
1923
+ } | null;
1924
+ tags: string[];
1925
+ categories: CategoryRef[];
1926
+ publishedAt: string | null;
1927
+ };
1928
+ type HearthEventDetail = HearthEvent & {
1929
+ meta: PageMeta;
1930
+ blocks: ResolvedBlock[];
1931
+ };
1932
+ /** A fundraiser with its progress (sites with Giving). Active ones take donations; completed ones stay listed. */
1933
+ type Fundraiser = {
1934
+ slug: string;
1935
+ /** Its page on the website: /fundraisers/<slug>. */
1936
+ path: string;
1937
+ title: string;
1938
+ summary: string | null;
1939
+ image: {
1940
+ src: string;
1941
+ alt: string;
1942
+ } | null;
1943
+ status: "active" | "completed";
1944
+ goalCents: number | null;
1945
+ /** Offline money plus completed online donations (and ticket sales for linked events). */
1946
+ raisedCents: number;
1947
+ donorCount: number;
1948
+ startsAt: string | null;
1949
+ endsAt: string | null;
1950
+ categories: CategoryRef[];
1951
+ };
1952
+ type FundraiserDetail = Fundraiser & {
1953
+ meta: PageMeta;
1954
+ blocks: ResolvedBlock[];
1955
+ };
1956
+ /** Start a donation: POST /donations/checkout. The visitor is then sent to `checkoutUrl` to pay. */
1957
+ type DonationInput = {
1958
+ amountCents: number;
1959
+ /** Fundraiser slug; omit for a general donation. */
1960
+ fundraiser?: string;
1961
+ name?: string;
1962
+ email?: string;
1963
+ /** Hide the donor's name from public lists. */
1964
+ anonymous?: boolean;
1965
+ message?: string;
1966
+ /** Where the payment page sends the donor afterwards (on the site's domain), e.g. https://example.org/donate/thank-you. */
1967
+ returnUrl: string;
1968
+ };
1969
+ type DonationCheckout = {
1970
+ donationId: string;
1971
+ checkoutUrl: string;
1972
+ };
1973
+ /** One of a site's forms (GET /forms/{key}): render it anywhere, then post it back with forms.submit. */
1974
+ type HearthForm = {
1975
+ key: string;
1976
+ name: string;
1977
+ fields: FormField[];
1978
+ submitLabel: string;
1979
+ successMessage: string;
1980
+ };
1981
+ /** Blocks as the API returns them: event blocks carry their events, shared blocks say where they came from. */
1982
+ type Resolved<T extends BlockType> = T extends "hero" ? {
1983
+ id: string;
1984
+ type: T;
1985
+ data: BlockData<T> & {
1986
+ logo?: {
1987
+ src: string;
1988
+ alt: string;
1989
+ } | null;
1990
+ };
1991
+ } : T extends "upcomingEvents" ? {
1992
+ id: string;
1993
+ type: T;
1994
+ data: BlockData<T> & {
1995
+ events: HearthEvent[];
1996
+ };
1997
+ } : T extends "eventSpotlight" ? {
1998
+ id: string;
1999
+ type: T;
2000
+ data: BlockData<T> & {
2001
+ event: HearthEventDetail | null;
2002
+ };
2003
+ } : T extends "collectionList" ? {
2004
+ id: string;
2005
+ type: T;
2006
+ data: BlockData<T> & {
2007
+ collection: Collection | null;
2008
+ entries: CollectionEntry[];
2009
+ };
2010
+ } : T extends "fundraiserSpotlight" ? {
2011
+ id: string;
2012
+ type: T;
2013
+ data: BlockData<T> & {
2014
+ fundraiser: Fundraiser | null;
2015
+ };
2016
+ } : T extends "fundraiserGrid" ? {
2017
+ id: string;
2018
+ type: T;
2019
+ data: BlockData<T> & {
2020
+ fundraisers: Fundraiser[];
2021
+ };
2022
+ } : T extends "form" ? {
2023
+ id: string;
2024
+ type: T;
2025
+ data: BlockData<T> & {
2026
+ fields: FormField[];
2027
+ };
2028
+ } : T extends "donate" ? {
2029
+ id: string;
2030
+ type: T;
2031
+ data: BlockData<T> & {
2032
+ presetsCents: number[];
2033
+ minCents: number;
2034
+ maxCents: number;
2035
+ fundraiser: Fundraiser | null;
2036
+ };
2037
+ } : {
2038
+ id: string;
2039
+ type: T;
2040
+ data: BlockData<T>;
2041
+ };
2042
+ type KnownBlock = {
2043
+ [T in Exclude<BlockType, "sharedBlock">]: Resolved<T> & {
2044
+ shared?: {
2045
+ id: string;
2046
+ name: string;
2047
+ };
2048
+ };
2049
+ }[Exclude<BlockType, "sharedBlock">];
2050
+ /** A block type added to the library after this package version: render it if you can, skip it if not. */
2051
+ type UnknownBlock = {
2052
+ id: string;
2053
+ type: string & {};
2054
+ data: unknown;
2055
+ shared?: {
2056
+ id: string;
2057
+ name: string;
2058
+ };
2059
+ };
2060
+ type ResolvedBlock = KnownBlock | UnknownBlock;
2061
+ /** One block type, narrowed: BlockOf<"hero">. */
2062
+ type BlockOf<T extends Exclude<BlockType, "sharedBlock">> = Extract<KnownBlock, {
2063
+ type: T;
2064
+ }>;
2065
+ type Site = {
2066
+ slug: string;
2067
+ name: string;
2068
+ domain: string | null;
2069
+ features: string[];
2070
+ settings: SiteSettings;
2071
+ };
2072
+ type PageSummary = {
2073
+ slug: string;
2074
+ path: string;
2075
+ title: string;
2076
+ seo: Record<string, unknown>;
2077
+ noIndex: boolean;
2078
+ publishedAt: string | null;
2079
+ collection: CollectionRef | null;
2080
+ categories: CategoryRef[];
2081
+ };
2082
+ type Page = {
2083
+ meta: PageMeta;
2084
+ slug: string;
2085
+ path: string;
2086
+ title: string;
2087
+ seo: Record<string, unknown>;
2088
+ version: number;
2089
+ publishedAt: string;
2090
+ blocks: ResolvedBlock[];
2091
+ /** The page collection it belongs to (a blog…), if any, and its listing details. */
2092
+ collection: CollectionRef | null;
2093
+ entry: EntryDetails | null;
2094
+ categories: CategoryRef[];
2095
+ };
2096
+ type SitemapEntry = {
2097
+ path: string;
2098
+ url: string;
2099
+ lastModified: string | null;
2100
+ priority: number;
2101
+ };
2102
+ /** Body of a publish webhook (verify the X-Hearth-Signature header first). */
2103
+ type WebhookPayload = {
2104
+ site: string;
2105
+ kind: "page" | "sharedBlock" | "event" | "settings" | "scheduled" | (string & {});
2106
+ slug?: string;
2107
+ at: string;
2108
+ };
2109
+ type ApiErrorBody = {
2110
+ error: {
2111
+ code: string;
2112
+ message: string;
2113
+ details?: unknown;
2114
+ };
2115
+ };
2116
+
2117
+ export { type ApiErrorBody, BLOCK_SCHEMA_VERSION, type Block, type BlockData, type BlockOf, type BlockType, type CategoryGroup, type CategoryRef, type Collection, type CollectionEntry, type CollectionRef, type DonationCheckout, type DonationInput, type EntryDetails, type EventCustomFields, type EventRegistration, type EventTicket, type FormDefinition, type FormField, type Fundraiser, type FundraiserDetail, type HearthEvent, type HearthEventDetail, type HearthForm, type ImageRef, type KnownBlock, type LinkRef, ORGANIZATION_TYPES, type Page, type PageContent, type PageMeta, type PageSummary, type RegistrationInput, type RegistrationResult, type ResolvedBlock, SOCIAL_PLATFORMS, type Site, type SiteSettings, type SitemapEntry, type TicketType, type UnknownBlock, type WebhookPayload, blockDataSchemas, blockFeature, blockSchema, blockTypes, formDefinitionSchema, formFieldSchema, pageContentSchema, parseBlocks, parsePageContent, parseSiteSettings, parseTicketTypes, siteSettingsSchema, ticketTypeSchema, ticketTypesSchema, videoEmbedUrl };