@domino-sdk/relay 1.0.0-next.5 → 1.0.0-next.7

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.
Files changed (42) hide show
  1. package/README.md +13 -1
  2. package/build.mjs +18 -1
  3. package/dist/authoring.d.ts +322 -14
  4. package/dist/authoring.js +187 -25
  5. package/dist/avatar.d.ts +29 -0
  6. package/dist/avatar.js +21 -0
  7. package/dist/browser.d.ts +19 -3
  8. package/dist/browser.js +6 -6
  9. package/dist/catalog-C09gnPYT.d.ts +3948 -0
  10. package/dist/chunk-7HSTFBMO.js +24 -0
  11. package/dist/{chunk-VH4OQ5VX.js → chunk-ADSP377G.js} +1 -1
  12. package/dist/{chunk-FDWRBMB3.js → chunk-AWLLGCKU.js} +2 -2
  13. package/dist/chunk-DJZB5RY5.js +901 -0
  14. package/dist/chunk-SKETUPST.js +171 -0
  15. package/dist/chunk-UFXBQ6FN.js +257 -0
  16. package/dist/{chunk-NKGJEYZM.js → chunk-UW6R2QGT.js} +610 -719
  17. package/dist/chunk-V7UKZLHA.js +35 -0
  18. package/dist/{chunk-4KNTMNXA.js → chunk-X6FJIPXR.js} +166 -724
  19. package/dist/client-BufGakEt.d.ts +4577 -0
  20. package/dist/collection-BGneJ6Bk.d.ts +114 -0
  21. package/dist/images-e6FW9QSx.d.ts +234 -0
  22. package/dist/index.d.ts +11 -13115
  23. package/dist/index.js +11 -693
  24. package/dist/integrations-C3Sp558f.d.ts +1297 -0
  25. package/dist/internal.d.ts +109 -0
  26. package/dist/internal.js +104 -0
  27. package/dist/point-ledgers-iS00Z_v0.d.ts +37 -0
  28. package/dist/portal-proxy.js +5 -6
  29. package/dist/profiles-BtOXMGcC.d.ts +297 -0
  30. package/dist/react/index.d.ts +51 -34
  31. package/dist/react/index.js +7 -13
  32. package/dist/schema-DCapSPHz.d.ts +3396 -0
  33. package/dist/schema.d.ts +3194 -2366
  34. package/dist/schema.js +539 -3
  35. package/dist/streaks-CwGReWGt.d.ts +73 -0
  36. package/dist/submission-input-Bter6XiI.d.ts +2672 -0
  37. package/dist/units-CwgsPB_r.d.ts +9 -0
  38. package/dist/wallet-Bu6sqJvQ.d.ts +231 -0
  39. package/package.json +17 -4
  40. package/dist/chunk-B76BAJ25.js +0 -624
  41. package/dist/chunk-ONDBQSMU.js +0 -373
  42. package/dist/submission-input-CZDukyb3.d.ts +0 -4998
@@ -0,0 +1,3948 @@
1
+ import { z } from 'zod';
2
+ import { q as questDescriptionSchema } from './schema-DCapSPHz.js';
3
+
4
+ declare const authScopeSchema: z.ZodObject<{
5
+ organization: z.ZodString;
6
+ project: z.ZodString;
7
+ environment: z.ZodEnum<{
8
+ test: "test";
9
+ live: "live";
10
+ }>;
11
+ }, z.core.$strict>;
12
+ declare const principalSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
13
+ kind: z.ZodLiteral<"member">;
14
+ member: z.ZodString;
15
+ }, z.core.$strict>, z.ZodObject<{
16
+ kind: z.ZodLiteral<"staff">;
17
+ subject: z.ZodString;
18
+ }, z.core.$strict>, z.ZodObject<{
19
+ kind: z.ZodLiteral<"operator">;
20
+ subject: z.ZodString;
21
+ }, z.core.$strict>], "kind">;
22
+ declare const sessionSchema: z.ZodObject<{
23
+ organization: z.ZodString;
24
+ project: z.ZodString;
25
+ environment: z.ZodEnum<{
26
+ test: "test";
27
+ live: "live";
28
+ }>;
29
+ id: z.ZodString;
30
+ principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
31
+ kind: z.ZodLiteral<"member">;
32
+ member: z.ZodString;
33
+ }, z.core.$strict>, z.ZodObject<{
34
+ kind: z.ZodLiteral<"staff">;
35
+ subject: z.ZodString;
36
+ }, z.core.$strict>, z.ZodObject<{
37
+ kind: z.ZodLiteral<"operator">;
38
+ subject: z.ZodString;
39
+ }, z.core.$strict>], "kind">;
40
+ expiresAt: z.ZodNumber;
41
+ }, z.core.$strict>;
42
+ type Session = z.infer<typeof sessionSchema>;
43
+ /**
44
+ * The signed-in member (`GET /v1/me`). `avatarSeed` seeds the member's generated avatar
45
+ * (`defaultAvatar`): an HMAC of the member ID under a per-project secret, so it is stable in the
46
+ * project, whatever the member links, and reveals nothing. Not strict: newer servers may add fields.
47
+ */
48
+ declare const memberSummarySchema: z.ZodObject<{
49
+ member: z.ZodString;
50
+ avatarSeed: z.ZodString;
51
+ }, z.core.$strip>;
52
+ type MemberSummary = z.infer<typeof memberSummarySchema>;
53
+ declare const exchangeSchema: z.ZodObject<{
54
+ organization: z.ZodString;
55
+ project: z.ZodString;
56
+ environment: z.ZodEnum<{
57
+ test: "test";
58
+ live: "live";
59
+ }>;
60
+ identity: z.ZodObject<{
61
+ issuer: z.ZodString;
62
+ subject: z.ZodString;
63
+ }, z.core.$strict>;
64
+ role: z.ZodEnum<{
65
+ member: "member";
66
+ staff: "staff";
67
+ operator: "operator";
68
+ }>;
69
+ }, z.core.$strict>;
70
+ type ExchangeInput = z.infer<typeof exchangeSchema>;
71
+ declare const exchangeResultSchema: z.ZodObject<{
72
+ token: z.ZodString;
73
+ session: z.ZodObject<{
74
+ organization: z.ZodString;
75
+ project: z.ZodString;
76
+ environment: z.ZodEnum<{
77
+ test: "test";
78
+ live: "live";
79
+ }>;
80
+ id: z.ZodString;
81
+ principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
82
+ kind: z.ZodLiteral<"member">;
83
+ member: z.ZodString;
84
+ }, z.core.$strict>, z.ZodObject<{
85
+ kind: z.ZodLiteral<"staff">;
86
+ subject: z.ZodString;
87
+ }, z.core.$strict>, z.ZodObject<{
88
+ kind: z.ZodLiteral<"operator">;
89
+ subject: z.ZodString;
90
+ }, z.core.$strict>], "kind">;
91
+ expiresAt: z.ZodNumber;
92
+ }, z.core.$strict>;
93
+ }, z.core.$strip>;
94
+
95
+ declare const interactionSchema: z.ZodEnum<{
96
+ text: "text";
97
+ url: "url";
98
+ automatic: "automatic";
99
+ claim: "claim";
100
+ staff: "staff";
101
+ quiz: "quiz";
102
+ photo: "photo";
103
+ }>;
104
+ type QuestInteraction = z.infer<typeof interactionSchema>;
105
+ declare function questInteraction(trigger: z.infer<typeof questDescriptionSchema>["trigger"]): QuestInteraction;
106
+ declare const questTypeVersionSchema: z.ZodObject<{
107
+ key: z.ZodOptional<z.ZodString>;
108
+ id: z.ZodString;
109
+ version: z.ZodString;
110
+ code: z.ZodString;
111
+ definition: z.ZodObject<{
112
+ quest: z.ZodString;
113
+ runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
114
+ title: z.ZodString;
115
+ presentation: z.ZodDefault<z.ZodObject<{
116
+ quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
117
+ id: z.ZodString;
118
+ prompt: z.ZodString;
119
+ choices: z.ZodArray<z.ZodObject<{
120
+ id: z.ZodString;
121
+ label: z.ZodString;
122
+ }, z.core.$strict>>;
123
+ }, z.core.$strict>>>;
124
+ instructions: z.ZodOptional<z.ZodString>;
125
+ video: z.ZodOptional<z.ZodObject<{
126
+ url: z.ZodString;
127
+ poster: z.ZodOptional<z.ZodString>;
128
+ captions: z.ZodOptional<z.ZodObject<{
129
+ url: z.ZodString;
130
+ language: z.ZodString;
131
+ label: z.ZodString;
132
+ }, z.core.$strict>>;
133
+ }, z.core.$strict>>;
134
+ }, z.core.$strict>>;
135
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
136
+ discord: "discord";
137
+ }>>>;
138
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
139
+ kind: z.ZodLiteral<"point-ledger">;
140
+ default: z.ZodString;
141
+ label: z.ZodString;
142
+ description: z.ZodOptional<z.ZodString>;
143
+ }, z.core.$strict>, z.ZodObject<{
144
+ kind: z.ZodLiteral<"datetime">;
145
+ default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
146
+ label: z.ZodString;
147
+ description: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strict>, z.ZodObject<{
149
+ kind: z.ZodLiteral<"resource">;
150
+ default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
151
+ source: z.ZodUnion<readonly [z.ZodObject<{
152
+ provider: z.ZodLiteral<"domino">;
153
+ resource: z.ZodLiteral<"point-ledger">;
154
+ }, z.core.$strict>, z.ZodObject<{
155
+ provider: z.ZodLiteral<"discord">;
156
+ resource: z.ZodLiteral<"channel">;
157
+ types: z.ZodArray<z.ZodEnum<{
158
+ text: "text";
159
+ announcement: "announcement";
160
+ }>>;
161
+ }, z.core.$strict>, z.ZodObject<{
162
+ provider: z.ZodLiteral<"discord">;
163
+ resource: z.ZodLiteral<"role">;
164
+ assignable: z.ZodDefault<z.ZodBoolean>;
165
+ }, z.core.$strict>]>;
166
+ label: z.ZodString;
167
+ description: z.ZodOptional<z.ZodString>;
168
+ }, z.core.$strict>, z.ZodObject<{
169
+ kind: z.ZodLiteral<"quiz">;
170
+ default: z.ZodArray<z.ZodObject<{
171
+ id: z.ZodString;
172
+ prompt: z.ZodString;
173
+ choices: z.ZodArray<z.ZodObject<{
174
+ id: z.ZodString;
175
+ label: z.ZodString;
176
+ }, z.core.$strict>>;
177
+ correct: z.ZodString;
178
+ }, z.core.$strict>>;
179
+ label: z.ZodString;
180
+ description: z.ZodOptional<z.ZodString>;
181
+ }, z.core.$strict>, z.ZodObject<{
182
+ kind: z.ZodLiteral<"text">;
183
+ default: z.ZodString;
184
+ minLength: z.ZodNumber;
185
+ maxLength: z.ZodNumber;
186
+ multiline: z.ZodBoolean;
187
+ label: z.ZodString;
188
+ description: z.ZodOptional<z.ZodString>;
189
+ }, z.core.$strict>, z.ZodObject<{
190
+ kind: z.ZodLiteral<"integer">;
191
+ default: z.ZodNumber;
192
+ min: z.ZodNumber;
193
+ max: z.ZodNumber;
194
+ label: z.ZodString;
195
+ description: z.ZodOptional<z.ZodString>;
196
+ }, z.core.$strict>, z.ZodObject<{
197
+ kind: z.ZodLiteral<"boolean">;
198
+ default: z.ZodBoolean;
199
+ label: z.ZodString;
200
+ description: z.ZodOptional<z.ZodString>;
201
+ }, z.core.$strict>, z.ZodObject<{
202
+ kind: z.ZodLiteral<"choice">;
203
+ default: z.ZodString;
204
+ options: z.ZodArray<z.ZodString>;
205
+ label: z.ZodString;
206
+ description: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strict>], "kind">>;
208
+ values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
209
+ id: z.ZodString;
210
+ prompt: z.ZodString;
211
+ choices: z.ZodArray<z.ZodObject<{
212
+ id: z.ZodString;
213
+ label: z.ZodString;
214
+ }, z.core.$strict>>;
215
+ correct: z.ZodString;
216
+ }, z.core.$strict>>]>>;
217
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
218
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
219
+ balance: z.ZodString;
220
+ amount: z.ZodNumber;
221
+ }, z.core.$strict>, z.ZodObject<{
222
+ kind: z.ZodLiteral<"tier">;
223
+ reward: z.ZodObject<{
224
+ id: z.ZodString;
225
+ title: z.ZodString;
226
+ tiers: z.ZodArray<z.ZodObject<{
227
+ id: z.ZodString;
228
+ title: z.ZodString;
229
+ }, z.core.$strict>>;
230
+ inventory: z.ZodObject<{
231
+ kind: z.ZodLiteral<"untracked">;
232
+ }, z.core.$strict>;
233
+ fulfillment: z.ZodObject<{
234
+ kind: z.ZodLiteral<"staff-handover">;
235
+ }, z.core.$strict>;
236
+ }, z.core.$strict>;
237
+ tier: z.ZodString;
238
+ }, z.core.$strict>, z.ZodObject<{
239
+ kind: z.ZodLiteral<"integration">;
240
+ provider: z.ZodLiteral<"discord">;
241
+ action: z.ZodLiteral<"grant-role">;
242
+ roleId: z.ZodString;
243
+ }, z.core.$strict>]>>;
244
+ humanReview: z.ZodBoolean;
245
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
246
+ kind: z.ZodLiteral<"manual">;
247
+ input: z.ZodLiteral<"text">;
248
+ constraints: z.ZodObject<{
249
+ required: z.ZodDefault<z.ZodBoolean>;
250
+ minLength: z.ZodDefault<z.ZodNumber>;
251
+ maxLength: z.ZodDefault<z.ZodNumber>;
252
+ }, z.core.$strict>;
253
+ actor: z.ZodOptional<z.ZodEnum<{
254
+ member: "member";
255
+ staff: "staff";
256
+ }>>;
257
+ }, z.core.$strict>, z.ZodObject<{
258
+ kind: z.ZodLiteral<"manual">;
259
+ input: z.ZodLiteral<"url">;
260
+ constraints: z.ZodObject<{
261
+ required: z.ZodDefault<z.ZodBoolean>;
262
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
263
+ }, z.core.$strict>;
264
+ actor: z.ZodOptional<z.ZodEnum<{
265
+ member: "member";
266
+ staff: "staff";
267
+ }>>;
268
+ }, z.core.$strict>, z.ZodObject<{
269
+ kind: z.ZodLiteral<"manual">;
270
+ input: z.ZodEnum<{
271
+ none: "none";
272
+ quiz: "quiz";
273
+ photo: "photo";
274
+ }>;
275
+ actor: z.ZodOptional<z.ZodEnum<{
276
+ member: "member";
277
+ staff: "staff";
278
+ }>>;
279
+ }, z.core.$strict>, z.ZodObject<{
280
+ kind: z.ZodLiteral<"automatic">;
281
+ observation: z.ZodOptional<z.ZodObject<{
282
+ source: z.ZodString;
283
+ type: z.ZodString;
284
+ }, z.core.$strict>>;
285
+ content: z.ZodOptional<z.ZodObject<{
286
+ tracker: z.ZodString;
287
+ window: z.ZodObject<{
288
+ start: z.ZodNumber;
289
+ end: z.ZodOptional<z.ZodNumber>;
290
+ }, z.core.$strict>;
291
+ enrollment: z.ZodDefault<z.ZodEnum<{
292
+ none: "none";
293
+ required: "required";
294
+ }>>;
295
+ posts: z.ZodDefault<z.ZodEnum<{
296
+ "after-enrollment": "after-enrollment";
297
+ "since-start": "since-start";
298
+ }>>;
299
+ historical: z.ZodDefault<z.ZodEnum<{
300
+ automatic: "automatic";
301
+ claim: "claim";
302
+ staff: "staff";
303
+ }>>;
304
+ }, z.core.$strict>>;
305
+ tracker: z.ZodOptional<z.ZodObject<{
306
+ tracker: z.ZodString;
307
+ source: z.ZodEnum<{
308
+ custom: "custom";
309
+ "x-search": "x-search";
310
+ }>;
311
+ on: z.ZodOptional<z.ZodEnum<{
312
+ "new-record": "new-record";
313
+ "new-observation": "new-observation";
314
+ "data-changed": "data-changed";
315
+ }>>;
316
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
317
+ path: z.ZodString;
318
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
319
+ }, z.core.$strict>, z.ZodObject<{
320
+ path: z.ZodString;
321
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
322
+ setting: z.ZodString;
323
+ }, z.core.$strict>]>>;
324
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
325
+ setting: z.ZodString;
326
+ }, z.core.$strict>]>>;
327
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
328
+ setting: z.ZodString;
329
+ }, z.core.$strict>]>>;
330
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
331
+ setting: z.ZodString;
332
+ }, z.core.$strict>]>>;
333
+ }, z.core.$strict>]>>;
334
+ beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
335
+ }, z.core.$strict>>;
336
+ }, z.core.$strict>]>;
337
+ performance: z.ZodOptional<z.ZodObject<{
338
+ metrics: z.ZodArray<z.ZodEnum<{
339
+ likes: "likes";
340
+ replies: "replies";
341
+ reposts: "reposts";
342
+ quotes: "quotes";
343
+ views: "views";
344
+ bookmarks: "bookmarks";
345
+ }>>;
346
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
347
+ }, z.core.$strict>>;
348
+ requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
349
+ quest: z.ZodString;
350
+ }, z.core.$strip>>>;
351
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
352
+ kind: z.ZodLiteral<"streak">;
353
+ days: z.ZodNumber;
354
+ timeZone: z.ZodString;
355
+ }, z.core.$strict>, z.ZodObject<{
356
+ kind: z.ZodLiteral<"once">;
357
+ }, z.core.$strict>, z.ZodObject<{
358
+ kind: z.ZodLiteral<"keyed">;
359
+ }, z.core.$strict>], "kind">;
360
+ visibility: z.ZodDefault<z.ZodEnum<{
361
+ visible: "visible";
362
+ hidden: "hidden";
363
+ }>>;
364
+ profile: z.ZodOptional<z.ZodObject<{
365
+ visible: z.ZodBoolean;
366
+ }, z.core.$strict>>;
367
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
368
+ id: z.ZodString;
369
+ scope: z.ZodEnum<{
370
+ member: "member";
371
+ project: "project";
372
+ }>;
373
+ period: z.ZodEnum<{
374
+ day: "day";
375
+ lifetime: "lifetime";
376
+ week: "week";
377
+ }>;
378
+ limit: z.ZodNumber;
379
+ cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
380
+ balance: z.ZodString;
381
+ }, z.core.$strict>]>;
382
+ }, z.core.$strict>>>;
383
+ }, z.core.$strict>;
384
+ provider: z.ZodEnum<{
385
+ "workers-ai": "workers-ai";
386
+ "fixture-pass": "fixture-pass";
387
+ "fixture-fail": "fixture-fail";
388
+ "fixture-unclear": "fixture-unclear";
389
+ "fixture-error": "fixture-error";
390
+ }>;
391
+ createdAt: z.ZodNumber;
392
+ }, z.core.$strip>;
393
+ declare const collectionSlotSchema: z.ZodObject<{
394
+ id: z.ZodString;
395
+ key: z.ZodOptional<z.ZodString>;
396
+ title: z.ZodString;
397
+ }, z.core.$strict>;
398
+ declare const collectionSlotDeclarationSchema: z.ZodPipe<z.ZodObject<{
399
+ title: z.ZodString;
400
+ key: z.ZodOptional<z.ZodString>;
401
+ id: z.ZodOptional<z.ZodString>;
402
+ }, z.core.$strict>, z.ZodTransform<Omit<{
403
+ title: string;
404
+ key?: string | undefined;
405
+ id?: string | undefined;
406
+ }, "id" | "key"> & {
407
+ key: string;
408
+ }, {
409
+ title: string;
410
+ key?: string | undefined;
411
+ id?: string | undefined;
412
+ }>>;
413
+ declare const questCollectionSchema: z.ZodObject<{
414
+ id: z.ZodString;
415
+ key: z.ZodOptional<z.ZodString>;
416
+ title: z.ZodString;
417
+ quests: z.ZodArray<z.ZodString>;
418
+ }, z.core.$strict>;
419
+ declare const questInstanceSchema: z.ZodObject<{
420
+ id: z.ZodString;
421
+ title: z.ZodString;
422
+ typeVersion: z.ZodString;
423
+ settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
424
+ id: z.ZodString;
425
+ prompt: z.ZodString;
426
+ choices: z.ZodArray<z.ZodObject<{
427
+ id: z.ZodString;
428
+ label: z.ZodString;
429
+ }, z.core.$strict>>;
430
+ correct: z.ZodString;
431
+ }, z.core.$strict>>]>>;
432
+ requires: z.ZodArray<z.ZodString>;
433
+ status: z.ZodEnum<{
434
+ paused: "paused";
435
+ active: "active";
436
+ archived: "archived";
437
+ }>;
438
+ }, z.core.$strict>;
439
+ declare const questDraftChangesSchema: z.ZodObject<{
440
+ quests: z.ZodArray<z.ZodObject<{
441
+ id: z.ZodString;
442
+ title: z.ZodString;
443
+ typeVersion: z.ZodString;
444
+ settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
445
+ id: z.ZodString;
446
+ prompt: z.ZodString;
447
+ choices: z.ZodArray<z.ZodObject<{
448
+ id: z.ZodString;
449
+ label: z.ZodString;
450
+ }, z.core.$strict>>;
451
+ correct: z.ZodString;
452
+ }, z.core.$strict>>]>>;
453
+ requires: z.ZodArray<z.ZodString>;
454
+ status: z.ZodEnum<{
455
+ paused: "paused";
456
+ active: "active";
457
+ archived: "archived";
458
+ }>;
459
+ expectedRelease: z.ZodNullable<z.ZodString>;
460
+ }, z.core.$strict>>;
461
+ collections: z.ZodArray<z.ZodObject<{
462
+ id: z.ZodString;
463
+ key: z.ZodOptional<z.ZodString>;
464
+ title: z.ZodString;
465
+ quests: z.ZodArray<z.ZodString>;
466
+ }, z.core.$strict>>;
467
+ }, z.core.$strict>;
468
+ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
469
+ id: z.ZodString;
470
+ revision: z.ZodNumber;
471
+ baseRevision: z.ZodNumber;
472
+ changes: z.ZodObject<{
473
+ quests: z.ZodArray<z.ZodObject<{
474
+ id: z.ZodString;
475
+ title: z.ZodString;
476
+ typeVersion: z.ZodString;
477
+ settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
478
+ id: z.ZodString;
479
+ prompt: z.ZodString;
480
+ choices: z.ZodArray<z.ZodObject<{
481
+ id: z.ZodString;
482
+ label: z.ZodString;
483
+ }, z.core.$strict>>;
484
+ correct: z.ZodString;
485
+ }, z.core.$strict>>]>>;
486
+ requires: z.ZodArray<z.ZodString>;
487
+ status: z.ZodEnum<{
488
+ paused: "paused";
489
+ active: "active";
490
+ archived: "archived";
491
+ }>;
492
+ expectedRelease: z.ZodNullable<z.ZodString>;
493
+ }, z.core.$strict>>;
494
+ collections: z.ZodArray<z.ZodObject<{
495
+ id: z.ZodString;
496
+ key: z.ZodOptional<z.ZodString>;
497
+ title: z.ZodString;
498
+ quests: z.ZodArray<z.ZodString>;
499
+ }, z.core.$strict>>;
500
+ }, z.core.$strict>;
501
+ status: z.ZodLiteral<"draft">;
502
+ }, z.core.$strip>, z.ZodObject<{
503
+ id: z.ZodString;
504
+ revision: z.ZodNumber;
505
+ baseRevision: z.ZodNumber;
506
+ changes: z.ZodObject<{
507
+ quests: z.ZodArray<z.ZodObject<{
508
+ id: z.ZodString;
509
+ title: z.ZodString;
510
+ typeVersion: z.ZodString;
511
+ settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
512
+ id: z.ZodString;
513
+ prompt: z.ZodString;
514
+ choices: z.ZodArray<z.ZodObject<{
515
+ id: z.ZodString;
516
+ label: z.ZodString;
517
+ }, z.core.$strict>>;
518
+ correct: z.ZodString;
519
+ }, z.core.$strict>>]>>;
520
+ requires: z.ZodArray<z.ZodString>;
521
+ status: z.ZodEnum<{
522
+ paused: "paused";
523
+ active: "active";
524
+ archived: "archived";
525
+ }>;
526
+ expectedRelease: z.ZodNullable<z.ZodString>;
527
+ }, z.core.$strict>>;
528
+ collections: z.ZodArray<z.ZodObject<{
529
+ id: z.ZodString;
530
+ key: z.ZodOptional<z.ZodString>;
531
+ title: z.ZodString;
532
+ quests: z.ZodArray<z.ZodString>;
533
+ }, z.core.$strict>>;
534
+ }, z.core.$strict>;
535
+ status: z.ZodLiteral<"published">;
536
+ releaseIds: z.ZodArray<z.ZodString>;
537
+ }, z.core.$strip>], "status">;
538
+ declare const questCatalogSchema: z.ZodObject<{
539
+ revision: z.ZodNumber;
540
+ types: z.ZodArray<z.ZodObject<{
541
+ key: z.ZodOptional<z.ZodString>;
542
+ id: z.ZodString;
543
+ version: z.ZodString;
544
+ code: z.ZodString;
545
+ definition: z.ZodObject<{
546
+ quest: z.ZodString;
547
+ runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
548
+ title: z.ZodString;
549
+ presentation: z.ZodDefault<z.ZodObject<{
550
+ quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
551
+ id: z.ZodString;
552
+ prompt: z.ZodString;
553
+ choices: z.ZodArray<z.ZodObject<{
554
+ id: z.ZodString;
555
+ label: z.ZodString;
556
+ }, z.core.$strict>>;
557
+ }, z.core.$strict>>>;
558
+ instructions: z.ZodOptional<z.ZodString>;
559
+ video: z.ZodOptional<z.ZodObject<{
560
+ url: z.ZodString;
561
+ poster: z.ZodOptional<z.ZodString>;
562
+ captions: z.ZodOptional<z.ZodObject<{
563
+ url: z.ZodString;
564
+ language: z.ZodString;
565
+ label: z.ZodString;
566
+ }, z.core.$strict>>;
567
+ }, z.core.$strict>>;
568
+ }, z.core.$strict>>;
569
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
570
+ discord: "discord";
571
+ }>>>;
572
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
573
+ kind: z.ZodLiteral<"point-ledger">;
574
+ default: z.ZodString;
575
+ label: z.ZodString;
576
+ description: z.ZodOptional<z.ZodString>;
577
+ }, z.core.$strict>, z.ZodObject<{
578
+ kind: z.ZodLiteral<"datetime">;
579
+ default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
580
+ label: z.ZodString;
581
+ description: z.ZodOptional<z.ZodString>;
582
+ }, z.core.$strict>, z.ZodObject<{
583
+ kind: z.ZodLiteral<"resource">;
584
+ default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
585
+ source: z.ZodUnion<readonly [z.ZodObject<{
586
+ provider: z.ZodLiteral<"domino">;
587
+ resource: z.ZodLiteral<"point-ledger">;
588
+ }, z.core.$strict>, z.ZodObject<{
589
+ provider: z.ZodLiteral<"discord">;
590
+ resource: z.ZodLiteral<"channel">;
591
+ types: z.ZodArray<z.ZodEnum<{
592
+ text: "text";
593
+ announcement: "announcement";
594
+ }>>;
595
+ }, z.core.$strict>, z.ZodObject<{
596
+ provider: z.ZodLiteral<"discord">;
597
+ resource: z.ZodLiteral<"role">;
598
+ assignable: z.ZodDefault<z.ZodBoolean>;
599
+ }, z.core.$strict>]>;
600
+ label: z.ZodString;
601
+ description: z.ZodOptional<z.ZodString>;
602
+ }, z.core.$strict>, z.ZodObject<{
603
+ kind: z.ZodLiteral<"quiz">;
604
+ default: z.ZodArray<z.ZodObject<{
605
+ id: z.ZodString;
606
+ prompt: z.ZodString;
607
+ choices: z.ZodArray<z.ZodObject<{
608
+ id: z.ZodString;
609
+ label: z.ZodString;
610
+ }, z.core.$strict>>;
611
+ correct: z.ZodString;
612
+ }, z.core.$strict>>;
613
+ label: z.ZodString;
614
+ description: z.ZodOptional<z.ZodString>;
615
+ }, z.core.$strict>, z.ZodObject<{
616
+ kind: z.ZodLiteral<"text">;
617
+ default: z.ZodString;
618
+ minLength: z.ZodNumber;
619
+ maxLength: z.ZodNumber;
620
+ multiline: z.ZodBoolean;
621
+ label: z.ZodString;
622
+ description: z.ZodOptional<z.ZodString>;
623
+ }, z.core.$strict>, z.ZodObject<{
624
+ kind: z.ZodLiteral<"integer">;
625
+ default: z.ZodNumber;
626
+ min: z.ZodNumber;
627
+ max: z.ZodNumber;
628
+ label: z.ZodString;
629
+ description: z.ZodOptional<z.ZodString>;
630
+ }, z.core.$strict>, z.ZodObject<{
631
+ kind: z.ZodLiteral<"boolean">;
632
+ default: z.ZodBoolean;
633
+ label: z.ZodString;
634
+ description: z.ZodOptional<z.ZodString>;
635
+ }, z.core.$strict>, z.ZodObject<{
636
+ kind: z.ZodLiteral<"choice">;
637
+ default: z.ZodString;
638
+ options: z.ZodArray<z.ZodString>;
639
+ label: z.ZodString;
640
+ description: z.ZodOptional<z.ZodString>;
641
+ }, z.core.$strict>], "kind">>;
642
+ values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
643
+ id: z.ZodString;
644
+ prompt: z.ZodString;
645
+ choices: z.ZodArray<z.ZodObject<{
646
+ id: z.ZodString;
647
+ label: z.ZodString;
648
+ }, z.core.$strict>>;
649
+ correct: z.ZodString;
650
+ }, z.core.$strict>>]>>;
651
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
652
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
653
+ balance: z.ZodString;
654
+ amount: z.ZodNumber;
655
+ }, z.core.$strict>, z.ZodObject<{
656
+ kind: z.ZodLiteral<"tier">;
657
+ reward: z.ZodObject<{
658
+ id: z.ZodString;
659
+ title: z.ZodString;
660
+ tiers: z.ZodArray<z.ZodObject<{
661
+ id: z.ZodString;
662
+ title: z.ZodString;
663
+ }, z.core.$strict>>;
664
+ inventory: z.ZodObject<{
665
+ kind: z.ZodLiteral<"untracked">;
666
+ }, z.core.$strict>;
667
+ fulfillment: z.ZodObject<{
668
+ kind: z.ZodLiteral<"staff-handover">;
669
+ }, z.core.$strict>;
670
+ }, z.core.$strict>;
671
+ tier: z.ZodString;
672
+ }, z.core.$strict>, z.ZodObject<{
673
+ kind: z.ZodLiteral<"integration">;
674
+ provider: z.ZodLiteral<"discord">;
675
+ action: z.ZodLiteral<"grant-role">;
676
+ roleId: z.ZodString;
677
+ }, z.core.$strict>]>>;
678
+ humanReview: z.ZodBoolean;
679
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
680
+ kind: z.ZodLiteral<"manual">;
681
+ input: z.ZodLiteral<"text">;
682
+ constraints: z.ZodObject<{
683
+ required: z.ZodDefault<z.ZodBoolean>;
684
+ minLength: z.ZodDefault<z.ZodNumber>;
685
+ maxLength: z.ZodDefault<z.ZodNumber>;
686
+ }, z.core.$strict>;
687
+ actor: z.ZodOptional<z.ZodEnum<{
688
+ member: "member";
689
+ staff: "staff";
690
+ }>>;
691
+ }, z.core.$strict>, z.ZodObject<{
692
+ kind: z.ZodLiteral<"manual">;
693
+ input: z.ZodLiteral<"url">;
694
+ constraints: z.ZodObject<{
695
+ required: z.ZodDefault<z.ZodBoolean>;
696
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
697
+ }, z.core.$strict>;
698
+ actor: z.ZodOptional<z.ZodEnum<{
699
+ member: "member";
700
+ staff: "staff";
701
+ }>>;
702
+ }, z.core.$strict>, z.ZodObject<{
703
+ kind: z.ZodLiteral<"manual">;
704
+ input: z.ZodEnum<{
705
+ none: "none";
706
+ quiz: "quiz";
707
+ photo: "photo";
708
+ }>;
709
+ actor: z.ZodOptional<z.ZodEnum<{
710
+ member: "member";
711
+ staff: "staff";
712
+ }>>;
713
+ }, z.core.$strict>, z.ZodObject<{
714
+ kind: z.ZodLiteral<"automatic">;
715
+ observation: z.ZodOptional<z.ZodObject<{
716
+ source: z.ZodString;
717
+ type: z.ZodString;
718
+ }, z.core.$strict>>;
719
+ content: z.ZodOptional<z.ZodObject<{
720
+ tracker: z.ZodString;
721
+ window: z.ZodObject<{
722
+ start: z.ZodNumber;
723
+ end: z.ZodOptional<z.ZodNumber>;
724
+ }, z.core.$strict>;
725
+ enrollment: z.ZodDefault<z.ZodEnum<{
726
+ none: "none";
727
+ required: "required";
728
+ }>>;
729
+ posts: z.ZodDefault<z.ZodEnum<{
730
+ "after-enrollment": "after-enrollment";
731
+ "since-start": "since-start";
732
+ }>>;
733
+ historical: z.ZodDefault<z.ZodEnum<{
734
+ automatic: "automatic";
735
+ claim: "claim";
736
+ staff: "staff";
737
+ }>>;
738
+ }, z.core.$strict>>;
739
+ tracker: z.ZodOptional<z.ZodObject<{
740
+ tracker: z.ZodString;
741
+ source: z.ZodEnum<{
742
+ custom: "custom";
743
+ "x-search": "x-search";
744
+ }>;
745
+ on: z.ZodOptional<z.ZodEnum<{
746
+ "new-record": "new-record";
747
+ "new-observation": "new-observation";
748
+ "data-changed": "data-changed";
749
+ }>>;
750
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
751
+ path: z.ZodString;
752
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
753
+ }, z.core.$strict>, z.ZodObject<{
754
+ path: z.ZodString;
755
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
756
+ setting: z.ZodString;
757
+ }, z.core.$strict>]>>;
758
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
759
+ setting: z.ZodString;
760
+ }, z.core.$strict>]>>;
761
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
762
+ setting: z.ZodString;
763
+ }, z.core.$strict>]>>;
764
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
765
+ setting: z.ZodString;
766
+ }, z.core.$strict>]>>;
767
+ }, z.core.$strict>]>>;
768
+ beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
769
+ }, z.core.$strict>>;
770
+ }, z.core.$strict>]>;
771
+ performance: z.ZodOptional<z.ZodObject<{
772
+ metrics: z.ZodArray<z.ZodEnum<{
773
+ likes: "likes";
774
+ replies: "replies";
775
+ reposts: "reposts";
776
+ quotes: "quotes";
777
+ views: "views";
778
+ bookmarks: "bookmarks";
779
+ }>>;
780
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
781
+ }, z.core.$strict>>;
782
+ requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
783
+ quest: z.ZodString;
784
+ }, z.core.$strip>>>;
785
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
786
+ kind: z.ZodLiteral<"streak">;
787
+ days: z.ZodNumber;
788
+ timeZone: z.ZodString;
789
+ }, z.core.$strict>, z.ZodObject<{
790
+ kind: z.ZodLiteral<"once">;
791
+ }, z.core.$strict>, z.ZodObject<{
792
+ kind: z.ZodLiteral<"keyed">;
793
+ }, z.core.$strict>], "kind">;
794
+ visibility: z.ZodDefault<z.ZodEnum<{
795
+ visible: "visible";
796
+ hidden: "hidden";
797
+ }>>;
798
+ profile: z.ZodOptional<z.ZodObject<{
799
+ visible: z.ZodBoolean;
800
+ }, z.core.$strict>>;
801
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
802
+ id: z.ZodString;
803
+ scope: z.ZodEnum<{
804
+ member: "member";
805
+ project: "project";
806
+ }>;
807
+ period: z.ZodEnum<{
808
+ day: "day";
809
+ lifetime: "lifetime";
810
+ week: "week";
811
+ }>;
812
+ limit: z.ZodNumber;
813
+ cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
814
+ balance: z.ZodString;
815
+ }, z.core.$strict>]>;
816
+ }, z.core.$strict>>>;
817
+ }, z.core.$strict>;
818
+ provider: z.ZodEnum<{
819
+ "workers-ai": "workers-ai";
820
+ "fixture-pass": "fixture-pass";
821
+ "fixture-fail": "fixture-fail";
822
+ "fixture-unclear": "fixture-unclear";
823
+ "fixture-error": "fixture-error";
824
+ }>;
825
+ createdAt: z.ZodNumber;
826
+ }, z.core.$strip>>;
827
+ collections: z.ZodArray<z.ZodObject<{
828
+ id: z.ZodString;
829
+ key: z.ZodOptional<z.ZodString>;
830
+ title: z.ZodString;
831
+ quests: z.ZodArray<z.ZodString>;
832
+ }, z.core.$strict>>;
833
+ quests: z.ZodArray<z.ZodObject<{
834
+ id: z.ZodString;
835
+ title: z.ZodString;
836
+ typeVersion: z.ZodString;
837
+ settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
838
+ id: z.ZodString;
839
+ prompt: z.ZodString;
840
+ choices: z.ZodArray<z.ZodObject<{
841
+ id: z.ZodString;
842
+ label: z.ZodString;
843
+ }, z.core.$strict>>;
844
+ correct: z.ZodString;
845
+ }, z.core.$strict>>]>>;
846
+ requires: z.ZodArray<z.ZodString>;
847
+ status: z.ZodEnum<{
848
+ paused: "paused";
849
+ active: "active";
850
+ archived: "archived";
851
+ }>;
852
+ }, z.core.$strict>>;
853
+ drafts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
854
+ id: z.ZodString;
855
+ revision: z.ZodNumber;
856
+ baseRevision: z.ZodNumber;
857
+ changes: z.ZodObject<{
858
+ quests: z.ZodArray<z.ZodObject<{
859
+ id: z.ZodString;
860
+ title: z.ZodString;
861
+ typeVersion: z.ZodString;
862
+ settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
863
+ id: z.ZodString;
864
+ prompt: z.ZodString;
865
+ choices: z.ZodArray<z.ZodObject<{
866
+ id: z.ZodString;
867
+ label: z.ZodString;
868
+ }, z.core.$strict>>;
869
+ correct: z.ZodString;
870
+ }, z.core.$strict>>]>>;
871
+ requires: z.ZodArray<z.ZodString>;
872
+ status: z.ZodEnum<{
873
+ paused: "paused";
874
+ active: "active";
875
+ archived: "archived";
876
+ }>;
877
+ expectedRelease: z.ZodNullable<z.ZodString>;
878
+ }, z.core.$strict>>;
879
+ collections: z.ZodArray<z.ZodObject<{
880
+ id: z.ZodString;
881
+ key: z.ZodOptional<z.ZodString>;
882
+ title: z.ZodString;
883
+ quests: z.ZodArray<z.ZodString>;
884
+ }, z.core.$strict>>;
885
+ }, z.core.$strict>;
886
+ status: z.ZodLiteral<"draft">;
887
+ }, z.core.$strip>, z.ZodObject<{
888
+ id: z.ZodString;
889
+ revision: z.ZodNumber;
890
+ baseRevision: z.ZodNumber;
891
+ changes: z.ZodObject<{
892
+ quests: z.ZodArray<z.ZodObject<{
893
+ id: z.ZodString;
894
+ title: z.ZodString;
895
+ typeVersion: z.ZodString;
896
+ settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
897
+ id: z.ZodString;
898
+ prompt: z.ZodString;
899
+ choices: z.ZodArray<z.ZodObject<{
900
+ id: z.ZodString;
901
+ label: z.ZodString;
902
+ }, z.core.$strict>>;
903
+ correct: z.ZodString;
904
+ }, z.core.$strict>>]>>;
905
+ requires: z.ZodArray<z.ZodString>;
906
+ status: z.ZodEnum<{
907
+ paused: "paused";
908
+ active: "active";
909
+ archived: "archived";
910
+ }>;
911
+ expectedRelease: z.ZodNullable<z.ZodString>;
912
+ }, z.core.$strict>>;
913
+ collections: z.ZodArray<z.ZodObject<{
914
+ id: z.ZodString;
915
+ key: z.ZodOptional<z.ZodString>;
916
+ title: z.ZodString;
917
+ quests: z.ZodArray<z.ZodString>;
918
+ }, z.core.$strict>>;
919
+ }, z.core.$strict>;
920
+ status: z.ZodLiteral<"published">;
921
+ releaseIds: z.ZodArray<z.ZodString>;
922
+ }, z.core.$strip>], "status">>;
923
+ releases: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
924
+ quest: z.ZodString;
925
+ runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
926
+ title: z.ZodString;
927
+ presentation: z.ZodDefault<z.ZodObject<{
928
+ quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
929
+ id: z.ZodString;
930
+ prompt: z.ZodString;
931
+ choices: z.ZodArray<z.ZodObject<{
932
+ id: z.ZodString;
933
+ label: z.ZodString;
934
+ }, z.core.$strict>>;
935
+ }, z.core.$strict>>>;
936
+ instructions: z.ZodOptional<z.ZodString>;
937
+ video: z.ZodOptional<z.ZodObject<{
938
+ url: z.ZodString;
939
+ poster: z.ZodOptional<z.ZodString>;
940
+ captions: z.ZodOptional<z.ZodObject<{
941
+ url: z.ZodString;
942
+ language: z.ZodString;
943
+ label: z.ZodString;
944
+ }, z.core.$strict>>;
945
+ }, z.core.$strict>>;
946
+ }, z.core.$strict>>;
947
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
948
+ discord: "discord";
949
+ }>>>;
950
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
951
+ kind: z.ZodLiteral<"point-ledger">;
952
+ default: z.ZodString;
953
+ label: z.ZodString;
954
+ description: z.ZodOptional<z.ZodString>;
955
+ }, z.core.$strict>, z.ZodObject<{
956
+ kind: z.ZodLiteral<"datetime">;
957
+ default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
958
+ label: z.ZodString;
959
+ description: z.ZodOptional<z.ZodString>;
960
+ }, z.core.$strict>, z.ZodObject<{
961
+ kind: z.ZodLiteral<"resource">;
962
+ default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
963
+ source: z.ZodUnion<readonly [z.ZodObject<{
964
+ provider: z.ZodLiteral<"domino">;
965
+ resource: z.ZodLiteral<"point-ledger">;
966
+ }, z.core.$strict>, z.ZodObject<{
967
+ provider: z.ZodLiteral<"discord">;
968
+ resource: z.ZodLiteral<"channel">;
969
+ types: z.ZodArray<z.ZodEnum<{
970
+ text: "text";
971
+ announcement: "announcement";
972
+ }>>;
973
+ }, z.core.$strict>, z.ZodObject<{
974
+ provider: z.ZodLiteral<"discord">;
975
+ resource: z.ZodLiteral<"role">;
976
+ assignable: z.ZodDefault<z.ZodBoolean>;
977
+ }, z.core.$strict>]>;
978
+ label: z.ZodString;
979
+ description: z.ZodOptional<z.ZodString>;
980
+ }, z.core.$strict>, z.ZodObject<{
981
+ kind: z.ZodLiteral<"quiz">;
982
+ default: z.ZodArray<z.ZodObject<{
983
+ id: z.ZodString;
984
+ prompt: z.ZodString;
985
+ choices: z.ZodArray<z.ZodObject<{
986
+ id: z.ZodString;
987
+ label: z.ZodString;
988
+ }, z.core.$strict>>;
989
+ correct: z.ZodString;
990
+ }, z.core.$strict>>;
991
+ label: z.ZodString;
992
+ description: z.ZodOptional<z.ZodString>;
993
+ }, z.core.$strict>, z.ZodObject<{
994
+ kind: z.ZodLiteral<"text">;
995
+ default: z.ZodString;
996
+ minLength: z.ZodNumber;
997
+ maxLength: z.ZodNumber;
998
+ multiline: z.ZodBoolean;
999
+ label: z.ZodString;
1000
+ description: z.ZodOptional<z.ZodString>;
1001
+ }, z.core.$strict>, z.ZodObject<{
1002
+ kind: z.ZodLiteral<"integer">;
1003
+ default: z.ZodNumber;
1004
+ min: z.ZodNumber;
1005
+ max: z.ZodNumber;
1006
+ label: z.ZodString;
1007
+ description: z.ZodOptional<z.ZodString>;
1008
+ }, z.core.$strict>, z.ZodObject<{
1009
+ kind: z.ZodLiteral<"boolean">;
1010
+ default: z.ZodBoolean;
1011
+ label: z.ZodString;
1012
+ description: z.ZodOptional<z.ZodString>;
1013
+ }, z.core.$strict>, z.ZodObject<{
1014
+ kind: z.ZodLiteral<"choice">;
1015
+ default: z.ZodString;
1016
+ options: z.ZodArray<z.ZodString>;
1017
+ label: z.ZodString;
1018
+ description: z.ZodOptional<z.ZodString>;
1019
+ }, z.core.$strict>], "kind">>;
1020
+ values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
1021
+ id: z.ZodString;
1022
+ prompt: z.ZodString;
1023
+ choices: z.ZodArray<z.ZodObject<{
1024
+ id: z.ZodString;
1025
+ label: z.ZodString;
1026
+ }, z.core.$strict>>;
1027
+ correct: z.ZodString;
1028
+ }, z.core.$strict>>]>>;
1029
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1030
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
1031
+ balance: z.ZodString;
1032
+ amount: z.ZodNumber;
1033
+ }, z.core.$strict>, z.ZodObject<{
1034
+ kind: z.ZodLiteral<"tier">;
1035
+ reward: z.ZodObject<{
1036
+ id: z.ZodString;
1037
+ title: z.ZodString;
1038
+ tiers: z.ZodArray<z.ZodObject<{
1039
+ id: z.ZodString;
1040
+ title: z.ZodString;
1041
+ }, z.core.$strict>>;
1042
+ inventory: z.ZodObject<{
1043
+ kind: z.ZodLiteral<"untracked">;
1044
+ }, z.core.$strict>;
1045
+ fulfillment: z.ZodObject<{
1046
+ kind: z.ZodLiteral<"staff-handover">;
1047
+ }, z.core.$strict>;
1048
+ }, z.core.$strict>;
1049
+ tier: z.ZodString;
1050
+ }, z.core.$strict>, z.ZodObject<{
1051
+ kind: z.ZodLiteral<"integration">;
1052
+ provider: z.ZodLiteral<"discord">;
1053
+ action: z.ZodLiteral<"grant-role">;
1054
+ roleId: z.ZodString;
1055
+ }, z.core.$strict>]>>;
1056
+ humanReview: z.ZodBoolean;
1057
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
1058
+ kind: z.ZodLiteral<"manual">;
1059
+ input: z.ZodLiteral<"text">;
1060
+ constraints: z.ZodObject<{
1061
+ required: z.ZodDefault<z.ZodBoolean>;
1062
+ minLength: z.ZodDefault<z.ZodNumber>;
1063
+ maxLength: z.ZodDefault<z.ZodNumber>;
1064
+ }, z.core.$strict>;
1065
+ actor: z.ZodOptional<z.ZodEnum<{
1066
+ member: "member";
1067
+ staff: "staff";
1068
+ }>>;
1069
+ }, z.core.$strict>, z.ZodObject<{
1070
+ kind: z.ZodLiteral<"manual">;
1071
+ input: z.ZodLiteral<"url">;
1072
+ constraints: z.ZodObject<{
1073
+ required: z.ZodDefault<z.ZodBoolean>;
1074
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1075
+ }, z.core.$strict>;
1076
+ actor: z.ZodOptional<z.ZodEnum<{
1077
+ member: "member";
1078
+ staff: "staff";
1079
+ }>>;
1080
+ }, z.core.$strict>, z.ZodObject<{
1081
+ kind: z.ZodLiteral<"manual">;
1082
+ input: z.ZodEnum<{
1083
+ none: "none";
1084
+ quiz: "quiz";
1085
+ photo: "photo";
1086
+ }>;
1087
+ actor: z.ZodOptional<z.ZodEnum<{
1088
+ member: "member";
1089
+ staff: "staff";
1090
+ }>>;
1091
+ }, z.core.$strict>, z.ZodObject<{
1092
+ kind: z.ZodLiteral<"automatic">;
1093
+ observation: z.ZodOptional<z.ZodObject<{
1094
+ source: z.ZodString;
1095
+ type: z.ZodString;
1096
+ }, z.core.$strict>>;
1097
+ content: z.ZodOptional<z.ZodObject<{
1098
+ tracker: z.ZodString;
1099
+ window: z.ZodObject<{
1100
+ start: z.ZodNumber;
1101
+ end: z.ZodOptional<z.ZodNumber>;
1102
+ }, z.core.$strict>;
1103
+ enrollment: z.ZodDefault<z.ZodEnum<{
1104
+ none: "none";
1105
+ required: "required";
1106
+ }>>;
1107
+ posts: z.ZodDefault<z.ZodEnum<{
1108
+ "after-enrollment": "after-enrollment";
1109
+ "since-start": "since-start";
1110
+ }>>;
1111
+ historical: z.ZodDefault<z.ZodEnum<{
1112
+ automatic: "automatic";
1113
+ claim: "claim";
1114
+ staff: "staff";
1115
+ }>>;
1116
+ }, z.core.$strict>>;
1117
+ tracker: z.ZodOptional<z.ZodObject<{
1118
+ tracker: z.ZodString;
1119
+ source: z.ZodEnum<{
1120
+ custom: "custom";
1121
+ "x-search": "x-search";
1122
+ }>;
1123
+ on: z.ZodOptional<z.ZodEnum<{
1124
+ "new-record": "new-record";
1125
+ "new-observation": "new-observation";
1126
+ "data-changed": "data-changed";
1127
+ }>>;
1128
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1129
+ path: z.ZodString;
1130
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1131
+ }, z.core.$strict>, z.ZodObject<{
1132
+ path: z.ZodString;
1133
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1134
+ setting: z.ZodString;
1135
+ }, z.core.$strict>]>>;
1136
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1137
+ setting: z.ZodString;
1138
+ }, z.core.$strict>]>>;
1139
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1140
+ setting: z.ZodString;
1141
+ }, z.core.$strict>]>>;
1142
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1143
+ setting: z.ZodString;
1144
+ }, z.core.$strict>]>>;
1145
+ }, z.core.$strict>]>>;
1146
+ beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
1147
+ }, z.core.$strict>>;
1148
+ }, z.core.$strict>]>;
1149
+ performance: z.ZodOptional<z.ZodObject<{
1150
+ metrics: z.ZodArray<z.ZodEnum<{
1151
+ likes: "likes";
1152
+ replies: "replies";
1153
+ reposts: "reposts";
1154
+ quotes: "quotes";
1155
+ views: "views";
1156
+ bookmarks: "bookmarks";
1157
+ }>>;
1158
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
1159
+ }, z.core.$strict>>;
1160
+ requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1161
+ quest: z.ZodString;
1162
+ }, z.core.$strip>>>;
1163
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1164
+ kind: z.ZodLiteral<"streak">;
1165
+ days: z.ZodNumber;
1166
+ timeZone: z.ZodString;
1167
+ }, z.core.$strict>, z.ZodObject<{
1168
+ kind: z.ZodLiteral<"once">;
1169
+ }, z.core.$strict>, z.ZodObject<{
1170
+ kind: z.ZodLiteral<"keyed">;
1171
+ }, z.core.$strict>], "kind">;
1172
+ visibility: z.ZodDefault<z.ZodEnum<{
1173
+ visible: "visible";
1174
+ hidden: "hidden";
1175
+ }>>;
1176
+ profile: z.ZodOptional<z.ZodObject<{
1177
+ visible: z.ZodBoolean;
1178
+ }, z.core.$strict>>;
1179
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1180
+ id: z.ZodString;
1181
+ scope: z.ZodEnum<{
1182
+ member: "member";
1183
+ project: "project";
1184
+ }>;
1185
+ period: z.ZodEnum<{
1186
+ day: "day";
1187
+ lifetime: "lifetime";
1188
+ week: "week";
1189
+ }>;
1190
+ limit: z.ZodNumber;
1191
+ cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1192
+ balance: z.ZodString;
1193
+ }, z.core.$strict>]>;
1194
+ }, z.core.$strict>>>;
1195
+ key: z.ZodOptional<z.ZodString>;
1196
+ code: z.ZodString;
1197
+ provider: z.ZodEnum<{
1198
+ "workers-ai": "workers-ai";
1199
+ "fixture-pass": "fixture-pass";
1200
+ "fixture-fail": "fixture-fail";
1201
+ "fixture-unclear": "fixture-unclear";
1202
+ "fixture-error": "fixture-error";
1203
+ }>;
1204
+ id: z.ZodString;
1205
+ createdAt: z.ZodNumber;
1206
+ legacy: z.ZodDefault<z.ZodBoolean>;
1207
+ origin: z.ZodOptional<z.ZodObject<{
1208
+ typeVersion: z.ZodString;
1209
+ }, z.core.$strict>>;
1210
+ lifecycle: z.ZodDefault<z.ZodEnum<{
1211
+ paused: "paused";
1212
+ active: "active";
1213
+ archived: "archived";
1214
+ }>>;
1215
+ configuration: z.ZodOptional<z.ZodObject<{
1216
+ defaults: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
1217
+ id: z.ZodString;
1218
+ prompt: z.ZodString;
1219
+ choices: z.ZodArray<z.ZodObject<{
1220
+ id: z.ZodString;
1221
+ label: z.ZodString;
1222
+ }, z.core.$strict>>;
1223
+ correct: z.ZodString;
1224
+ }, z.core.$strict>>]>>;
1225
+ overrides: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
1226
+ id: z.ZodString;
1227
+ prompt: z.ZodString;
1228
+ choices: z.ZodArray<z.ZodObject<{
1229
+ id: z.ZodString;
1230
+ label: z.ZodString;
1231
+ }, z.core.$strict>>;
1232
+ correct: z.ZodString;
1233
+ }, z.core.$strict>>]>>;
1234
+ preserved: z.ZodArray<z.ZodString>;
1235
+ }, z.core.$strict>>;
1236
+ }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
1237
+ quest: z.ZodString;
1238
+ title: z.ZodString;
1239
+ criteria: z.ZodString;
1240
+ humanReview: z.ZodBoolean;
1241
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1242
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
1243
+ balance: z.ZodString;
1244
+ amount: z.ZodNumber;
1245
+ }, z.core.$strict>, z.ZodObject<{
1246
+ kind: z.ZodLiteral<"tier">;
1247
+ reward: z.ZodObject<{
1248
+ id: z.ZodString;
1249
+ title: z.ZodString;
1250
+ tiers: z.ZodArray<z.ZodObject<{
1251
+ id: z.ZodString;
1252
+ title: z.ZodString;
1253
+ }, z.core.$strict>>;
1254
+ inventory: z.ZodObject<{
1255
+ kind: z.ZodLiteral<"untracked">;
1256
+ }, z.core.$strict>;
1257
+ fulfillment: z.ZodObject<{
1258
+ kind: z.ZodLiteral<"staff-handover">;
1259
+ }, z.core.$strict>;
1260
+ }, z.core.$strict>;
1261
+ tier: z.ZodString;
1262
+ }, z.core.$strict>, z.ZodObject<{
1263
+ kind: z.ZodLiteral<"integration">;
1264
+ provider: z.ZodLiteral<"discord">;
1265
+ action: z.ZodLiteral<"grant-role">;
1266
+ roleId: z.ZodString;
1267
+ }, z.core.$strict>]>>;
1268
+ code: z.ZodString;
1269
+ provider: z.ZodEnum<{
1270
+ "workers-ai": "workers-ai";
1271
+ "fixture-pass": "fixture-pass";
1272
+ "fixture-fail": "fixture-fail";
1273
+ "fixture-unclear": "fixture-unclear";
1274
+ "fixture-error": "fixture-error";
1275
+ }>;
1276
+ id: z.ZodString;
1277
+ createdAt: z.ZodNumber;
1278
+ }, z.core.$strip>, z.ZodTransform<{
1279
+ quest: string;
1280
+ runtimeVersion: 1 | 2;
1281
+ title: string;
1282
+ presentation: {
1283
+ quiz?: {
1284
+ id: string;
1285
+ prompt: string;
1286
+ choices: {
1287
+ id: string;
1288
+ label: string;
1289
+ }[];
1290
+ }[] | undefined;
1291
+ instructions?: string | undefined;
1292
+ video?: {
1293
+ url: string;
1294
+ poster?: string | undefined;
1295
+ captions?: {
1296
+ url: string;
1297
+ language: string;
1298
+ label: string;
1299
+ } | undefined;
1300
+ } | undefined;
1301
+ };
1302
+ integrations: "discord"[];
1303
+ fields: Record<string, {
1304
+ kind: "point-ledger";
1305
+ default: string;
1306
+ label: string;
1307
+ description?: string | undefined;
1308
+ } | {
1309
+ kind: "datetime";
1310
+ default: string;
1311
+ label: string;
1312
+ description?: string | undefined;
1313
+ } | {
1314
+ kind: "resource";
1315
+ default: string;
1316
+ source: {
1317
+ provider: "discord";
1318
+ resource: "channel";
1319
+ types: ("text" | "announcement")[];
1320
+ } | {
1321
+ provider: "domino";
1322
+ resource: "point-ledger";
1323
+ } | {
1324
+ provider: "discord";
1325
+ resource: "role";
1326
+ assignable: boolean;
1327
+ };
1328
+ label: string;
1329
+ description?: string | undefined;
1330
+ } | {
1331
+ kind: "quiz";
1332
+ default: {
1333
+ id: string;
1334
+ prompt: string;
1335
+ choices: {
1336
+ id: string;
1337
+ label: string;
1338
+ }[];
1339
+ correct: string;
1340
+ }[];
1341
+ label: string;
1342
+ description?: string | undefined;
1343
+ } | {
1344
+ kind: "text";
1345
+ default: string;
1346
+ minLength: number;
1347
+ maxLength: number;
1348
+ multiline: boolean;
1349
+ label: string;
1350
+ description?: string | undefined;
1351
+ } | {
1352
+ kind: "integer";
1353
+ default: number;
1354
+ min: number;
1355
+ max: number;
1356
+ label: string;
1357
+ description?: string | undefined;
1358
+ } | {
1359
+ kind: "boolean";
1360
+ default: boolean;
1361
+ label: string;
1362
+ description?: string | undefined;
1363
+ } | {
1364
+ kind: "choice";
1365
+ default: string;
1366
+ options: string[];
1367
+ label: string;
1368
+ description?: string | undefined;
1369
+ }>;
1370
+ values: Record<string, string | number | boolean | {
1371
+ id: string;
1372
+ prompt: string;
1373
+ choices: {
1374
+ id: string;
1375
+ label: string;
1376
+ }[];
1377
+ correct: string;
1378
+ }[]>;
1379
+ rewards: ({
1380
+ kind: "tier";
1381
+ reward: {
1382
+ id: string;
1383
+ title: string;
1384
+ tiers: {
1385
+ id: string;
1386
+ title: string;
1387
+ }[];
1388
+ inventory: {
1389
+ kind: "untracked";
1390
+ };
1391
+ fulfillment: {
1392
+ kind: "staff-handover";
1393
+ };
1394
+ };
1395
+ tier: string;
1396
+ } | {
1397
+ kind: "points";
1398
+ balance: string;
1399
+ amount: number;
1400
+ } | {
1401
+ kind: "integration";
1402
+ provider: "discord";
1403
+ action: "grant-role";
1404
+ roleId: string;
1405
+ })[];
1406
+ humanReview: boolean;
1407
+ trigger: {
1408
+ kind: "automatic";
1409
+ observation?: {
1410
+ source: string;
1411
+ type: string;
1412
+ } | undefined;
1413
+ content?: {
1414
+ tracker: string;
1415
+ window: {
1416
+ start: number;
1417
+ end?: number | undefined;
1418
+ };
1419
+ enrollment: "none" | "required";
1420
+ posts: "after-enrollment" | "since-start";
1421
+ historical: "automatic" | "claim" | "staff";
1422
+ } | undefined;
1423
+ tracker?: {
1424
+ tracker: string;
1425
+ source: "custom" | "x-search";
1426
+ beneficiary: string;
1427
+ on?: "new-record" | "new-observation" | "data-changed" | undefined;
1428
+ where?: {
1429
+ path: string;
1430
+ gt?: number | {
1431
+ setting: string;
1432
+ } | undefined;
1433
+ gte?: number | {
1434
+ setting: string;
1435
+ } | undefined;
1436
+ lt?: number | {
1437
+ setting: string;
1438
+ } | undefined;
1439
+ lte?: number | {
1440
+ setting: string;
1441
+ } | undefined;
1442
+ } | {
1443
+ path: string;
1444
+ equals: string | number | boolean;
1445
+ } | undefined;
1446
+ } | undefined;
1447
+ } | {
1448
+ kind: "manual";
1449
+ input: "text";
1450
+ constraints: {
1451
+ required: boolean;
1452
+ minLength: number;
1453
+ maxLength: number;
1454
+ };
1455
+ actor?: "member" | "staff" | undefined;
1456
+ } | {
1457
+ kind: "manual";
1458
+ input: "url";
1459
+ constraints: {
1460
+ required: boolean;
1461
+ allowedHosts?: string[] | undefined;
1462
+ };
1463
+ actor?: "member" | "staff" | undefined;
1464
+ } | {
1465
+ kind: "manual";
1466
+ input: "none" | "quiz" | "photo";
1467
+ actor?: "member" | "staff" | undefined;
1468
+ };
1469
+ requires: {
1470
+ quest: string;
1471
+ }[];
1472
+ completion: {
1473
+ kind: "streak";
1474
+ days: number;
1475
+ timeZone: string;
1476
+ } | {
1477
+ kind: "once";
1478
+ } | {
1479
+ kind: "keyed";
1480
+ };
1481
+ visibility: "visible" | "hidden";
1482
+ budgets: {
1483
+ id: string;
1484
+ scope: "member" | "project";
1485
+ period: "day" | "lifetime" | "week";
1486
+ limit: number;
1487
+ cost: number | {
1488
+ balance: string;
1489
+ };
1490
+ }[];
1491
+ code: string;
1492
+ provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1493
+ id: string;
1494
+ createdAt: number;
1495
+ legacy: boolean;
1496
+ lifecycle: "paused" | "active" | "archived";
1497
+ performance?: {
1498
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
1499
+ maxAgeMs: number;
1500
+ } | undefined;
1501
+ profile?: {
1502
+ visible: boolean;
1503
+ } | undefined;
1504
+ key?: string | undefined;
1505
+ origin?: {
1506
+ typeVersion: string;
1507
+ } | undefined;
1508
+ configuration?: {
1509
+ defaults: Record<string, string | number | boolean | {
1510
+ id: string;
1511
+ prompt: string;
1512
+ choices: {
1513
+ id: string;
1514
+ label: string;
1515
+ }[];
1516
+ correct: string;
1517
+ }[]>;
1518
+ overrides: Record<string, string | number | boolean | {
1519
+ id: string;
1520
+ prompt: string;
1521
+ choices: {
1522
+ id: string;
1523
+ label: string;
1524
+ }[];
1525
+ correct: string;
1526
+ }[]>;
1527
+ preserved: string[];
1528
+ } | undefined;
1529
+ }, {
1530
+ quest: string;
1531
+ title: string;
1532
+ criteria: string;
1533
+ humanReview: boolean;
1534
+ rewards: ({
1535
+ kind: "tier";
1536
+ reward: {
1537
+ id: string;
1538
+ title: string;
1539
+ tiers: {
1540
+ id: string;
1541
+ title: string;
1542
+ }[];
1543
+ inventory: {
1544
+ kind: "untracked";
1545
+ };
1546
+ fulfillment: {
1547
+ kind: "staff-handover";
1548
+ };
1549
+ };
1550
+ tier: string;
1551
+ } | {
1552
+ kind: "points";
1553
+ balance: string;
1554
+ amount: number;
1555
+ } | {
1556
+ kind: "integration";
1557
+ provider: "discord";
1558
+ action: "grant-role";
1559
+ roleId: string;
1560
+ })[];
1561
+ code: string;
1562
+ provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1563
+ id: string;
1564
+ createdAt: number;
1565
+ }>>]>>>;
1566
+ supportedInteractions: z.ZodArray<z.ZodEnum<{
1567
+ text: "text";
1568
+ url: "url";
1569
+ automatic: "automatic";
1570
+ claim: "claim";
1571
+ staff: "staff";
1572
+ quiz: "quiz";
1573
+ photo: "photo";
1574
+ }>>;
1575
+ }, z.core.$strip>;
1576
+ declare const catalogDeploymentSchema: z.ZodObject<{
1577
+ expectedRevision: z.ZodNumber;
1578
+ types: z.ZodDefault<z.ZodArray<z.ZodObject<{
1579
+ code: z.ZodString;
1580
+ provider: z.ZodEnum<{
1581
+ "workers-ai": "workers-ai";
1582
+ }>;
1583
+ }, z.core.$strip>>>;
1584
+ collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
1585
+ title: z.ZodString;
1586
+ key: z.ZodOptional<z.ZodString>;
1587
+ id: z.ZodOptional<z.ZodString>;
1588
+ }, z.core.$strict>, z.ZodTransform<Omit<{
1589
+ title: string;
1590
+ key?: string | undefined;
1591
+ id?: string | undefined;
1592
+ }, "id" | "key"> & {
1593
+ key: string;
1594
+ }, {
1595
+ title: string;
1596
+ key?: string | undefined;
1597
+ id?: string | undefined;
1598
+ }>>>>;
1599
+ supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1600
+ text: "text";
1601
+ url: "url";
1602
+ automatic: "automatic";
1603
+ claim: "claim";
1604
+ staff: "staff";
1605
+ quiz: "quiz";
1606
+ photo: "photo";
1607
+ }>>>;
1608
+ }, z.core.$strict>;
1609
+ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1610
+ revision: z.ZodNumber;
1611
+ types: z.ZodArray<z.ZodObject<{
1612
+ key: z.ZodOptional<z.ZodString>;
1613
+ id: z.ZodString;
1614
+ version: z.ZodString;
1615
+ code: z.ZodString;
1616
+ definition: z.ZodObject<{
1617
+ quest: z.ZodString;
1618
+ runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1619
+ title: z.ZodString;
1620
+ presentation: z.ZodDefault<z.ZodObject<{
1621
+ quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
1622
+ id: z.ZodString;
1623
+ prompt: z.ZodString;
1624
+ choices: z.ZodArray<z.ZodObject<{
1625
+ id: z.ZodString;
1626
+ label: z.ZodString;
1627
+ }, z.core.$strict>>;
1628
+ }, z.core.$strict>>>;
1629
+ instructions: z.ZodOptional<z.ZodString>;
1630
+ video: z.ZodOptional<z.ZodObject<{
1631
+ url: z.ZodString;
1632
+ poster: z.ZodOptional<z.ZodString>;
1633
+ captions: z.ZodOptional<z.ZodObject<{
1634
+ url: z.ZodString;
1635
+ language: z.ZodString;
1636
+ label: z.ZodString;
1637
+ }, z.core.$strict>>;
1638
+ }, z.core.$strict>>;
1639
+ }, z.core.$strict>>;
1640
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1641
+ discord: "discord";
1642
+ }>>>;
1643
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1644
+ kind: z.ZodLiteral<"point-ledger">;
1645
+ default: z.ZodString;
1646
+ label: z.ZodString;
1647
+ description: z.ZodOptional<z.ZodString>;
1648
+ }, z.core.$strict>, z.ZodObject<{
1649
+ kind: z.ZodLiteral<"datetime">;
1650
+ default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
1651
+ label: z.ZodString;
1652
+ description: z.ZodOptional<z.ZodString>;
1653
+ }, z.core.$strict>, z.ZodObject<{
1654
+ kind: z.ZodLiteral<"resource">;
1655
+ default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
1656
+ source: z.ZodUnion<readonly [z.ZodObject<{
1657
+ provider: z.ZodLiteral<"domino">;
1658
+ resource: z.ZodLiteral<"point-ledger">;
1659
+ }, z.core.$strict>, z.ZodObject<{
1660
+ provider: z.ZodLiteral<"discord">;
1661
+ resource: z.ZodLiteral<"channel">;
1662
+ types: z.ZodArray<z.ZodEnum<{
1663
+ text: "text";
1664
+ announcement: "announcement";
1665
+ }>>;
1666
+ }, z.core.$strict>, z.ZodObject<{
1667
+ provider: z.ZodLiteral<"discord">;
1668
+ resource: z.ZodLiteral<"role">;
1669
+ assignable: z.ZodDefault<z.ZodBoolean>;
1670
+ }, z.core.$strict>]>;
1671
+ label: z.ZodString;
1672
+ description: z.ZodOptional<z.ZodString>;
1673
+ }, z.core.$strict>, z.ZodObject<{
1674
+ kind: z.ZodLiteral<"quiz">;
1675
+ default: z.ZodArray<z.ZodObject<{
1676
+ id: z.ZodString;
1677
+ prompt: z.ZodString;
1678
+ choices: z.ZodArray<z.ZodObject<{
1679
+ id: z.ZodString;
1680
+ label: z.ZodString;
1681
+ }, z.core.$strict>>;
1682
+ correct: z.ZodString;
1683
+ }, z.core.$strict>>;
1684
+ label: z.ZodString;
1685
+ description: z.ZodOptional<z.ZodString>;
1686
+ }, z.core.$strict>, z.ZodObject<{
1687
+ kind: z.ZodLiteral<"text">;
1688
+ default: z.ZodString;
1689
+ minLength: z.ZodNumber;
1690
+ maxLength: z.ZodNumber;
1691
+ multiline: z.ZodBoolean;
1692
+ label: z.ZodString;
1693
+ description: z.ZodOptional<z.ZodString>;
1694
+ }, z.core.$strict>, z.ZodObject<{
1695
+ kind: z.ZodLiteral<"integer">;
1696
+ default: z.ZodNumber;
1697
+ min: z.ZodNumber;
1698
+ max: z.ZodNumber;
1699
+ label: z.ZodString;
1700
+ description: z.ZodOptional<z.ZodString>;
1701
+ }, z.core.$strict>, z.ZodObject<{
1702
+ kind: z.ZodLiteral<"boolean">;
1703
+ default: z.ZodBoolean;
1704
+ label: z.ZodString;
1705
+ description: z.ZodOptional<z.ZodString>;
1706
+ }, z.core.$strict>, z.ZodObject<{
1707
+ kind: z.ZodLiteral<"choice">;
1708
+ default: z.ZodString;
1709
+ options: z.ZodArray<z.ZodString>;
1710
+ label: z.ZodString;
1711
+ description: z.ZodOptional<z.ZodString>;
1712
+ }, z.core.$strict>], "kind">>;
1713
+ values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
1714
+ id: z.ZodString;
1715
+ prompt: z.ZodString;
1716
+ choices: z.ZodArray<z.ZodObject<{
1717
+ id: z.ZodString;
1718
+ label: z.ZodString;
1719
+ }, z.core.$strict>>;
1720
+ correct: z.ZodString;
1721
+ }, z.core.$strict>>]>>;
1722
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1723
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
1724
+ balance: z.ZodString;
1725
+ amount: z.ZodNumber;
1726
+ }, z.core.$strict>, z.ZodObject<{
1727
+ kind: z.ZodLiteral<"tier">;
1728
+ reward: z.ZodObject<{
1729
+ id: z.ZodString;
1730
+ title: z.ZodString;
1731
+ tiers: z.ZodArray<z.ZodObject<{
1732
+ id: z.ZodString;
1733
+ title: z.ZodString;
1734
+ }, z.core.$strict>>;
1735
+ inventory: z.ZodObject<{
1736
+ kind: z.ZodLiteral<"untracked">;
1737
+ }, z.core.$strict>;
1738
+ fulfillment: z.ZodObject<{
1739
+ kind: z.ZodLiteral<"staff-handover">;
1740
+ }, z.core.$strict>;
1741
+ }, z.core.$strict>;
1742
+ tier: z.ZodString;
1743
+ }, z.core.$strict>, z.ZodObject<{
1744
+ kind: z.ZodLiteral<"integration">;
1745
+ provider: z.ZodLiteral<"discord">;
1746
+ action: z.ZodLiteral<"grant-role">;
1747
+ roleId: z.ZodString;
1748
+ }, z.core.$strict>]>>;
1749
+ humanReview: z.ZodBoolean;
1750
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
1751
+ kind: z.ZodLiteral<"manual">;
1752
+ input: z.ZodLiteral<"text">;
1753
+ constraints: z.ZodObject<{
1754
+ required: z.ZodDefault<z.ZodBoolean>;
1755
+ minLength: z.ZodDefault<z.ZodNumber>;
1756
+ maxLength: z.ZodDefault<z.ZodNumber>;
1757
+ }, z.core.$strict>;
1758
+ actor: z.ZodOptional<z.ZodEnum<{
1759
+ member: "member";
1760
+ staff: "staff";
1761
+ }>>;
1762
+ }, z.core.$strict>, z.ZodObject<{
1763
+ kind: z.ZodLiteral<"manual">;
1764
+ input: z.ZodLiteral<"url">;
1765
+ constraints: z.ZodObject<{
1766
+ required: z.ZodDefault<z.ZodBoolean>;
1767
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1768
+ }, z.core.$strict>;
1769
+ actor: z.ZodOptional<z.ZodEnum<{
1770
+ member: "member";
1771
+ staff: "staff";
1772
+ }>>;
1773
+ }, z.core.$strict>, z.ZodObject<{
1774
+ kind: z.ZodLiteral<"manual">;
1775
+ input: z.ZodEnum<{
1776
+ none: "none";
1777
+ quiz: "quiz";
1778
+ photo: "photo";
1779
+ }>;
1780
+ actor: z.ZodOptional<z.ZodEnum<{
1781
+ member: "member";
1782
+ staff: "staff";
1783
+ }>>;
1784
+ }, z.core.$strict>, z.ZodObject<{
1785
+ kind: z.ZodLiteral<"automatic">;
1786
+ observation: z.ZodOptional<z.ZodObject<{
1787
+ source: z.ZodString;
1788
+ type: z.ZodString;
1789
+ }, z.core.$strict>>;
1790
+ content: z.ZodOptional<z.ZodObject<{
1791
+ tracker: z.ZodString;
1792
+ window: z.ZodObject<{
1793
+ start: z.ZodNumber;
1794
+ end: z.ZodOptional<z.ZodNumber>;
1795
+ }, z.core.$strict>;
1796
+ enrollment: z.ZodDefault<z.ZodEnum<{
1797
+ none: "none";
1798
+ required: "required";
1799
+ }>>;
1800
+ posts: z.ZodDefault<z.ZodEnum<{
1801
+ "after-enrollment": "after-enrollment";
1802
+ "since-start": "since-start";
1803
+ }>>;
1804
+ historical: z.ZodDefault<z.ZodEnum<{
1805
+ automatic: "automatic";
1806
+ claim: "claim";
1807
+ staff: "staff";
1808
+ }>>;
1809
+ }, z.core.$strict>>;
1810
+ tracker: z.ZodOptional<z.ZodObject<{
1811
+ tracker: z.ZodString;
1812
+ source: z.ZodEnum<{
1813
+ custom: "custom";
1814
+ "x-search": "x-search";
1815
+ }>;
1816
+ on: z.ZodOptional<z.ZodEnum<{
1817
+ "new-record": "new-record";
1818
+ "new-observation": "new-observation";
1819
+ "data-changed": "data-changed";
1820
+ }>>;
1821
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1822
+ path: z.ZodString;
1823
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1824
+ }, z.core.$strict>, z.ZodObject<{
1825
+ path: z.ZodString;
1826
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1827
+ setting: z.ZodString;
1828
+ }, z.core.$strict>]>>;
1829
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1830
+ setting: z.ZodString;
1831
+ }, z.core.$strict>]>>;
1832
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1833
+ setting: z.ZodString;
1834
+ }, z.core.$strict>]>>;
1835
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1836
+ setting: z.ZodString;
1837
+ }, z.core.$strict>]>>;
1838
+ }, z.core.$strict>]>>;
1839
+ beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
1840
+ }, z.core.$strict>>;
1841
+ }, z.core.$strict>]>;
1842
+ performance: z.ZodOptional<z.ZodObject<{
1843
+ metrics: z.ZodArray<z.ZodEnum<{
1844
+ likes: "likes";
1845
+ replies: "replies";
1846
+ reposts: "reposts";
1847
+ quotes: "quotes";
1848
+ views: "views";
1849
+ bookmarks: "bookmarks";
1850
+ }>>;
1851
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
1852
+ }, z.core.$strict>>;
1853
+ requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1854
+ quest: z.ZodString;
1855
+ }, z.core.$strip>>>;
1856
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1857
+ kind: z.ZodLiteral<"streak">;
1858
+ days: z.ZodNumber;
1859
+ timeZone: z.ZodString;
1860
+ }, z.core.$strict>, z.ZodObject<{
1861
+ kind: z.ZodLiteral<"once">;
1862
+ }, z.core.$strict>, z.ZodObject<{
1863
+ kind: z.ZodLiteral<"keyed">;
1864
+ }, z.core.$strict>], "kind">;
1865
+ visibility: z.ZodDefault<z.ZodEnum<{
1866
+ visible: "visible";
1867
+ hidden: "hidden";
1868
+ }>>;
1869
+ profile: z.ZodOptional<z.ZodObject<{
1870
+ visible: z.ZodBoolean;
1871
+ }, z.core.$strict>>;
1872
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1873
+ id: z.ZodString;
1874
+ scope: z.ZodEnum<{
1875
+ member: "member";
1876
+ project: "project";
1877
+ }>;
1878
+ period: z.ZodEnum<{
1879
+ day: "day";
1880
+ lifetime: "lifetime";
1881
+ week: "week";
1882
+ }>;
1883
+ limit: z.ZodNumber;
1884
+ cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1885
+ balance: z.ZodString;
1886
+ }, z.core.$strict>]>;
1887
+ }, z.core.$strict>>>;
1888
+ }, z.core.$strict>;
1889
+ provider: z.ZodEnum<{
1890
+ "workers-ai": "workers-ai";
1891
+ "fixture-pass": "fixture-pass";
1892
+ "fixture-fail": "fixture-fail";
1893
+ "fixture-unclear": "fixture-unclear";
1894
+ "fixture-error": "fixture-error";
1895
+ }>;
1896
+ createdAt: z.ZodNumber;
1897
+ }, z.core.$strip>>;
1898
+ collections: z.ZodArray<z.ZodObject<{
1899
+ id: z.ZodString;
1900
+ key: z.ZodOptional<z.ZodString>;
1901
+ title: z.ZodString;
1902
+ }, z.core.$strict>>;
1903
+ supportedInteractions: z.ZodArray<z.ZodEnum<{
1904
+ text: "text";
1905
+ url: "url";
1906
+ automatic: "automatic";
1907
+ claim: "claim";
1908
+ staff: "staff";
1909
+ quiz: "quiz";
1910
+ photo: "photo";
1911
+ }>>;
1912
+ }, z.core.$strip>;
1913
+ declare const saveQuestDraftSchema: z.ZodObject<{
1914
+ id: z.ZodOptional<z.ZodString>;
1915
+ actionId: z.ZodString;
1916
+ expectedRevision: z.ZodNumber;
1917
+ baseRevision: z.ZodNumber;
1918
+ changes: z.ZodObject<{
1919
+ quests: z.ZodArray<z.ZodObject<{
1920
+ id: z.ZodString;
1921
+ title: z.ZodString;
1922
+ typeVersion: z.ZodString;
1923
+ settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
1924
+ id: z.ZodString;
1925
+ prompt: z.ZodString;
1926
+ choices: z.ZodArray<z.ZodObject<{
1927
+ id: z.ZodString;
1928
+ label: z.ZodString;
1929
+ }, z.core.$strict>>;
1930
+ correct: z.ZodString;
1931
+ }, z.core.$strict>>]>>;
1932
+ requires: z.ZodArray<z.ZodString>;
1933
+ status: z.ZodEnum<{
1934
+ paused: "paused";
1935
+ active: "active";
1936
+ archived: "archived";
1937
+ }>;
1938
+ expectedRelease: z.ZodNullable<z.ZodString>;
1939
+ }, z.core.$strict>>;
1940
+ collections: z.ZodArray<z.ZodObject<{
1941
+ id: z.ZodString;
1942
+ key: z.ZodOptional<z.ZodString>;
1943
+ title: z.ZodString;
1944
+ quests: z.ZodArray<z.ZodString>;
1945
+ }, z.core.$strict>>;
1946
+ }, z.core.$strict>;
1947
+ }, z.core.$strict>;
1948
+ declare const publishQuestDraftSchema: z.ZodObject<{
1949
+ id: z.ZodString;
1950
+ expectedRevision: z.ZodNumber;
1951
+ }, z.core.$strict>;
1952
+ /**
1953
+ * A quest reward as a participant sees it. `label` is display text, such as
1954
+ * "10 XP"; read amounts and ledgers from the fields rather than the label.
1955
+ */
1956
+ declare const questRewardViewSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1957
+ kind: z.ZodLiteral<"points">;
1958
+ label: z.ZodString;
1959
+ amount: z.ZodNumber;
1960
+ ledger: z.ZodObject<{
1961
+ id: z.ZodString;
1962
+ key: z.ZodNullable<z.ZodString>;
1963
+ name: z.ZodString;
1964
+ }, z.core.$strip>;
1965
+ }, z.core.$strip>, z.ZodObject<{
1966
+ kind: z.ZodLiteral<"tier">;
1967
+ label: z.ZodString;
1968
+ reward: z.ZodObject<{
1969
+ id: z.ZodString;
1970
+ key: z.ZodNullable<z.ZodString>;
1971
+ title: z.ZodString;
1972
+ }, z.core.$strip>;
1973
+ tier: z.ZodString;
1974
+ }, z.core.$strip>, z.ZodObject<{
1975
+ kind: z.ZodLiteral<"integration">;
1976
+ label: z.ZodString;
1977
+ }, z.core.$strip>], "kind">;
1978
+ declare const questViewSchema: z.ZodObject<{
1979
+ quest: z.ZodString;
1980
+ key: z.ZodOptional<z.ZodString>;
1981
+ title: z.ZodString;
1982
+ presentation: z.ZodDefault<z.ZodObject<{
1983
+ quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
1984
+ id: z.ZodString;
1985
+ prompt: z.ZodString;
1986
+ choices: z.ZodArray<z.ZodObject<{
1987
+ id: z.ZodString;
1988
+ label: z.ZodString;
1989
+ }, z.core.$strict>>;
1990
+ }, z.core.$strict>>>;
1991
+ instructions: z.ZodOptional<z.ZodString>;
1992
+ video: z.ZodOptional<z.ZodObject<{
1993
+ url: z.ZodString;
1994
+ poster: z.ZodOptional<z.ZodString>;
1995
+ captions: z.ZodOptional<z.ZodObject<{
1996
+ url: z.ZodString;
1997
+ language: z.ZodString;
1998
+ label: z.ZodString;
1999
+ }, z.core.$strict>>;
2000
+ }, z.core.$strict>>;
2001
+ }, z.core.$strict>>;
2002
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2003
+ google: "google";
2004
+ apple: "apple";
2005
+ x: "x";
2006
+ discord: "discord";
2007
+ }>>>;
2008
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
2009
+ kind: z.ZodLiteral<"manual">;
2010
+ input: z.ZodLiteral<"text">;
2011
+ constraints: z.ZodObject<{
2012
+ required: z.ZodDefault<z.ZodBoolean>;
2013
+ minLength: z.ZodDefault<z.ZodNumber>;
2014
+ maxLength: z.ZodDefault<z.ZodNumber>;
2015
+ }, z.core.$strict>;
2016
+ actor: z.ZodOptional<z.ZodEnum<{
2017
+ member: "member";
2018
+ staff: "staff";
2019
+ }>>;
2020
+ }, z.core.$strict>, z.ZodObject<{
2021
+ kind: z.ZodLiteral<"manual">;
2022
+ input: z.ZodLiteral<"url">;
2023
+ constraints: z.ZodObject<{
2024
+ required: z.ZodDefault<z.ZodBoolean>;
2025
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
2026
+ }, z.core.$strict>;
2027
+ actor: z.ZodOptional<z.ZodEnum<{
2028
+ member: "member";
2029
+ staff: "staff";
2030
+ }>>;
2031
+ }, z.core.$strict>, z.ZodObject<{
2032
+ kind: z.ZodLiteral<"manual">;
2033
+ input: z.ZodEnum<{
2034
+ none: "none";
2035
+ quiz: "quiz";
2036
+ photo: "photo";
2037
+ }>;
2038
+ actor: z.ZodOptional<z.ZodEnum<{
2039
+ member: "member";
2040
+ staff: "staff";
2041
+ }>>;
2042
+ }, z.core.$strict>, z.ZodObject<{
2043
+ kind: z.ZodLiteral<"automatic">;
2044
+ observation: z.ZodOptional<z.ZodObject<{
2045
+ source: z.ZodString;
2046
+ type: z.ZodString;
2047
+ }, z.core.$strict>>;
2048
+ content: z.ZodOptional<z.ZodObject<{
2049
+ tracker: z.ZodString;
2050
+ window: z.ZodObject<{
2051
+ start: z.ZodNumber;
2052
+ end: z.ZodOptional<z.ZodNumber>;
2053
+ }, z.core.$strict>;
2054
+ enrollment: z.ZodDefault<z.ZodEnum<{
2055
+ none: "none";
2056
+ required: "required";
2057
+ }>>;
2058
+ posts: z.ZodDefault<z.ZodEnum<{
2059
+ "after-enrollment": "after-enrollment";
2060
+ "since-start": "since-start";
2061
+ }>>;
2062
+ historical: z.ZodDefault<z.ZodEnum<{
2063
+ automatic: "automatic";
2064
+ claim: "claim";
2065
+ staff: "staff";
2066
+ }>>;
2067
+ }, z.core.$strict>>;
2068
+ tracker: z.ZodOptional<z.ZodObject<{
2069
+ tracker: z.ZodString;
2070
+ source: z.ZodEnum<{
2071
+ custom: "custom";
2072
+ "x-search": "x-search";
2073
+ }>;
2074
+ on: z.ZodOptional<z.ZodEnum<{
2075
+ "new-record": "new-record";
2076
+ "new-observation": "new-observation";
2077
+ "data-changed": "data-changed";
2078
+ }>>;
2079
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2080
+ path: z.ZodString;
2081
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2082
+ }, z.core.$strict>, z.ZodObject<{
2083
+ path: z.ZodString;
2084
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2085
+ setting: z.ZodString;
2086
+ }, z.core.$strict>]>>;
2087
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2088
+ setting: z.ZodString;
2089
+ }, z.core.$strict>]>>;
2090
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2091
+ setting: z.ZodString;
2092
+ }, z.core.$strict>]>>;
2093
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2094
+ setting: z.ZodString;
2095
+ }, z.core.$strict>]>>;
2096
+ }, z.core.$strict>]>>;
2097
+ beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
2098
+ }, z.core.$strict>>;
2099
+ }, z.core.$strict>]>;
2100
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2101
+ kind: z.ZodLiteral<"available">;
2102
+ input: z.ZodEnum<{
2103
+ text: "text";
2104
+ url: "url";
2105
+ none: "none";
2106
+ quiz: "quiz";
2107
+ photo: "photo";
2108
+ }>;
2109
+ }, z.core.$strict>, z.ZodObject<{
2110
+ kind: z.ZodLiteral<"completed">;
2111
+ }, z.core.$strict>, z.ZodObject<{
2112
+ kind: z.ZodLiteral<"locked">;
2113
+ missing: z.ZodArray<z.ZodObject<{
2114
+ quest: z.ZodString;
2115
+ title: z.ZodString;
2116
+ }, z.core.$strip>>;
2117
+ }, z.core.$strict>, z.ZodObject<{
2118
+ kind: z.ZodLiteral<"staff-required">;
2119
+ }, z.core.$strict>, z.ZodObject<{
2120
+ kind: z.ZodLiteral<"automatic">;
2121
+ observation: z.ZodOptional<z.ZodObject<{
2122
+ source: z.ZodString;
2123
+ type: z.ZodString;
2124
+ }, z.core.$strict>>;
2125
+ }, z.core.$strict>, z.ZodObject<{
2126
+ kind: z.ZodLiteral<"checking">;
2127
+ attempt: z.ZodString;
2128
+ }, z.core.$strict>, z.ZodObject<{
2129
+ kind: z.ZodLiteral<"needs-review">;
2130
+ attempt: z.ZodString;
2131
+ }, z.core.$strict>, z.ZodObject<{
2132
+ kind: z.ZodLiteral<"retryable">;
2133
+ attempt: z.ZodString;
2134
+ }, z.core.$strict>], "kind">;
2135
+ completed: z.ZodBoolean;
2136
+ completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2137
+ kind: z.ZodLiteral<"streak">;
2138
+ days: z.ZodNumber;
2139
+ timeZone: z.ZodString;
2140
+ }, z.core.$strict>, z.ZodObject<{
2141
+ kind: z.ZodLiteral<"once">;
2142
+ }, z.core.$strict>, z.ZodObject<{
2143
+ kind: z.ZodLiteral<"keyed">;
2144
+ }, z.core.$strict>], "kind">>;
2145
+ streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2146
+ goal: z.ZodNumber;
2147
+ current: z.ZodNumber;
2148
+ best: z.ZodNumber;
2149
+ today: z.ZodString;
2150
+ todayQualified: z.ZodBoolean;
2151
+ timeZone: z.ZodString;
2152
+ nextBoundary: z.ZodNumber;
2153
+ pendingTimeZone: z.ZodNullable<z.ZodObject<{
2154
+ timeZone: z.ZodString;
2155
+ effectiveAt: z.ZodNumber;
2156
+ }, z.core.$strip>>;
2157
+ days: z.ZodArray<z.ZodObject<{
2158
+ day: z.ZodNumber;
2159
+ date: z.ZodString;
2160
+ timeZone: z.ZodString;
2161
+ occurredAt: z.ZodNumber;
2162
+ }, z.core.$strip>>;
2163
+ milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
2164
+ status: z.ZodLiteral<"pending">;
2165
+ }, z.core.$strip>, z.ZodObject<{
2166
+ status: z.ZodLiteral<"awarded">;
2167
+ completion: z.ZodString;
2168
+ achievedAt: z.ZodNumber;
2169
+ }, z.core.$strip>, z.ZodObject<{
2170
+ status: z.ZodLiteral<"budget-exhausted">;
2171
+ budget: z.ZodString;
2172
+ achievedAt: z.ZodNumber;
2173
+ }, z.core.$strip>], "status">;
2174
+ }, z.core.$strip>>>;
2175
+ completionCount: z.ZodDefault<z.ZodNumber>;
2176
+ visibility: z.ZodDefault<z.ZodEnum<{
2177
+ visible: "visible";
2178
+ hidden: "hidden";
2179
+ }>>;
2180
+ missing: z.ZodArray<z.ZodObject<{
2181
+ quest: z.ZodString;
2182
+ title: z.ZodString;
2183
+ }, z.core.$strip>>;
2184
+ attempt: z.ZodNullable<z.ZodObject<{
2185
+ id: z.ZodString;
2186
+ release: z.ZodString;
2187
+ quest: z.ZodString;
2188
+ member: z.ZodString;
2189
+ evidence: z.ZodNullable<z.ZodString>;
2190
+ input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2191
+ kind: z.ZodLiteral<"quiz">;
2192
+ release: z.ZodOptional<z.ZodString>;
2193
+ answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
2194
+ [k: string]: string;
2195
+ }, Record<string, string>>>;
2196
+ }, z.core.$strict>, z.ZodObject<{
2197
+ kind: z.ZodLiteral<"text">;
2198
+ value: z.ZodString;
2199
+ }, z.core.$strict>, z.ZodObject<{
2200
+ kind: z.ZodLiteral<"url">;
2201
+ value: z.ZodString;
2202
+ }, z.core.$strict>]>>;
2203
+ status: z.ZodEnum<{
2204
+ "needs-review": "needs-review";
2205
+ failed: "failed";
2206
+ queued: "queued";
2207
+ evaluating: "evaluating";
2208
+ accepted: "accepted";
2209
+ progressed: "progressed";
2210
+ rejected: "rejected";
2211
+ }>;
2212
+ reason: z.ZodNullable<z.ZodString>;
2213
+ retries: z.ZodNumber;
2214
+ generation: z.ZodNumber;
2215
+ completion: z.ZodNullable<z.ZodString>;
2216
+ reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2217
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2218
+ balance: z.ZodString;
2219
+ amount: z.ZodNumber;
2220
+ }, z.core.$strict>, z.ZodObject<{
2221
+ kind: z.ZodLiteral<"tier">;
2222
+ reward: z.ZodObject<{
2223
+ id: z.ZodString;
2224
+ title: z.ZodString;
2225
+ tiers: z.ZodArray<z.ZodObject<{
2226
+ id: z.ZodString;
2227
+ title: z.ZodString;
2228
+ }, z.core.$strict>>;
2229
+ inventory: z.ZodObject<{
2230
+ kind: z.ZodLiteral<"untracked">;
2231
+ }, z.core.$strict>;
2232
+ fulfillment: z.ZodObject<{
2233
+ kind: z.ZodLiteral<"staff-handover">;
2234
+ }, z.core.$strict>;
2235
+ }, z.core.$strict>;
2236
+ tier: z.ZodString;
2237
+ }, z.core.$strict>, z.ZodObject<{
2238
+ kind: z.ZodLiteral<"integration">;
2239
+ provider: z.ZodLiteral<"discord">;
2240
+ action: z.ZodLiteral<"grant-role">;
2241
+ roleId: z.ZodString;
2242
+ }, z.core.$strict>]>>>>;
2243
+ requestedReview: z.ZodDefault<z.ZodBoolean>;
2244
+ createdAt: z.ZodNumber;
2245
+ }, z.core.$strip>>;
2246
+ release: z.ZodString;
2247
+ interaction: z.ZodEnum<{
2248
+ text: "text";
2249
+ url: "url";
2250
+ automatic: "automatic";
2251
+ claim: "claim";
2252
+ staff: "staff";
2253
+ quiz: "quiz";
2254
+ photo: "photo";
2255
+ }>;
2256
+ lifecycle: z.ZodEnum<{
2257
+ paused: "paused";
2258
+ active: "active";
2259
+ archived: "archived";
2260
+ }>;
2261
+ rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2262
+ kind: z.ZodLiteral<"points">;
2263
+ label: z.ZodString;
2264
+ amount: z.ZodNumber;
2265
+ ledger: z.ZodObject<{
2266
+ id: z.ZodString;
2267
+ key: z.ZodNullable<z.ZodString>;
2268
+ name: z.ZodString;
2269
+ }, z.core.$strip>;
2270
+ }, z.core.$strip>, z.ZodObject<{
2271
+ kind: z.ZodLiteral<"tier">;
2272
+ label: z.ZodString;
2273
+ reward: z.ZodObject<{
2274
+ id: z.ZodString;
2275
+ key: z.ZodNullable<z.ZodString>;
2276
+ title: z.ZodString;
2277
+ }, z.core.$strip>;
2278
+ tier: z.ZodString;
2279
+ }, z.core.$strip>, z.ZodObject<{
2280
+ kind: z.ZodLiteral<"integration">;
2281
+ label: z.ZodString;
2282
+ }, z.core.$strip>], "kind">>;
2283
+ }, z.core.$strip>;
2284
+ declare const collectionViewSchema: z.ZodObject<{
2285
+ key: z.ZodOptional<z.ZodString>;
2286
+ id: z.ZodString;
2287
+ title: z.ZodString;
2288
+ quests: z.ZodArray<z.ZodObject<{
2289
+ quest: z.ZodString;
2290
+ key: z.ZodOptional<z.ZodString>;
2291
+ title: z.ZodString;
2292
+ presentation: z.ZodDefault<z.ZodObject<{
2293
+ quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
2294
+ id: z.ZodString;
2295
+ prompt: z.ZodString;
2296
+ choices: z.ZodArray<z.ZodObject<{
2297
+ id: z.ZodString;
2298
+ label: z.ZodString;
2299
+ }, z.core.$strict>>;
2300
+ }, z.core.$strict>>>;
2301
+ instructions: z.ZodOptional<z.ZodString>;
2302
+ video: z.ZodOptional<z.ZodObject<{
2303
+ url: z.ZodString;
2304
+ poster: z.ZodOptional<z.ZodString>;
2305
+ captions: z.ZodOptional<z.ZodObject<{
2306
+ url: z.ZodString;
2307
+ language: z.ZodString;
2308
+ label: z.ZodString;
2309
+ }, z.core.$strict>>;
2310
+ }, z.core.$strict>>;
2311
+ }, z.core.$strict>>;
2312
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2313
+ google: "google";
2314
+ apple: "apple";
2315
+ x: "x";
2316
+ discord: "discord";
2317
+ }>>>;
2318
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
2319
+ kind: z.ZodLiteral<"manual">;
2320
+ input: z.ZodLiteral<"text">;
2321
+ constraints: z.ZodObject<{
2322
+ required: z.ZodDefault<z.ZodBoolean>;
2323
+ minLength: z.ZodDefault<z.ZodNumber>;
2324
+ maxLength: z.ZodDefault<z.ZodNumber>;
2325
+ }, z.core.$strict>;
2326
+ actor: z.ZodOptional<z.ZodEnum<{
2327
+ member: "member";
2328
+ staff: "staff";
2329
+ }>>;
2330
+ }, z.core.$strict>, z.ZodObject<{
2331
+ kind: z.ZodLiteral<"manual">;
2332
+ input: z.ZodLiteral<"url">;
2333
+ constraints: z.ZodObject<{
2334
+ required: z.ZodDefault<z.ZodBoolean>;
2335
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
2336
+ }, z.core.$strict>;
2337
+ actor: z.ZodOptional<z.ZodEnum<{
2338
+ member: "member";
2339
+ staff: "staff";
2340
+ }>>;
2341
+ }, z.core.$strict>, z.ZodObject<{
2342
+ kind: z.ZodLiteral<"manual">;
2343
+ input: z.ZodEnum<{
2344
+ none: "none";
2345
+ quiz: "quiz";
2346
+ photo: "photo";
2347
+ }>;
2348
+ actor: z.ZodOptional<z.ZodEnum<{
2349
+ member: "member";
2350
+ staff: "staff";
2351
+ }>>;
2352
+ }, z.core.$strict>, z.ZodObject<{
2353
+ kind: z.ZodLiteral<"automatic">;
2354
+ observation: z.ZodOptional<z.ZodObject<{
2355
+ source: z.ZodString;
2356
+ type: z.ZodString;
2357
+ }, z.core.$strict>>;
2358
+ content: z.ZodOptional<z.ZodObject<{
2359
+ tracker: z.ZodString;
2360
+ window: z.ZodObject<{
2361
+ start: z.ZodNumber;
2362
+ end: z.ZodOptional<z.ZodNumber>;
2363
+ }, z.core.$strict>;
2364
+ enrollment: z.ZodDefault<z.ZodEnum<{
2365
+ none: "none";
2366
+ required: "required";
2367
+ }>>;
2368
+ posts: z.ZodDefault<z.ZodEnum<{
2369
+ "after-enrollment": "after-enrollment";
2370
+ "since-start": "since-start";
2371
+ }>>;
2372
+ historical: z.ZodDefault<z.ZodEnum<{
2373
+ automatic: "automatic";
2374
+ claim: "claim";
2375
+ staff: "staff";
2376
+ }>>;
2377
+ }, z.core.$strict>>;
2378
+ tracker: z.ZodOptional<z.ZodObject<{
2379
+ tracker: z.ZodString;
2380
+ source: z.ZodEnum<{
2381
+ custom: "custom";
2382
+ "x-search": "x-search";
2383
+ }>;
2384
+ on: z.ZodOptional<z.ZodEnum<{
2385
+ "new-record": "new-record";
2386
+ "new-observation": "new-observation";
2387
+ "data-changed": "data-changed";
2388
+ }>>;
2389
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2390
+ path: z.ZodString;
2391
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2392
+ }, z.core.$strict>, z.ZodObject<{
2393
+ path: z.ZodString;
2394
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2395
+ setting: z.ZodString;
2396
+ }, z.core.$strict>]>>;
2397
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2398
+ setting: z.ZodString;
2399
+ }, z.core.$strict>]>>;
2400
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2401
+ setting: z.ZodString;
2402
+ }, z.core.$strict>]>>;
2403
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2404
+ setting: z.ZodString;
2405
+ }, z.core.$strict>]>>;
2406
+ }, z.core.$strict>]>>;
2407
+ beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
2408
+ }, z.core.$strict>>;
2409
+ }, z.core.$strict>]>;
2410
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2411
+ kind: z.ZodLiteral<"available">;
2412
+ input: z.ZodEnum<{
2413
+ text: "text";
2414
+ url: "url";
2415
+ none: "none";
2416
+ quiz: "quiz";
2417
+ photo: "photo";
2418
+ }>;
2419
+ }, z.core.$strict>, z.ZodObject<{
2420
+ kind: z.ZodLiteral<"completed">;
2421
+ }, z.core.$strict>, z.ZodObject<{
2422
+ kind: z.ZodLiteral<"locked">;
2423
+ missing: z.ZodArray<z.ZodObject<{
2424
+ quest: z.ZodString;
2425
+ title: z.ZodString;
2426
+ }, z.core.$strip>>;
2427
+ }, z.core.$strict>, z.ZodObject<{
2428
+ kind: z.ZodLiteral<"staff-required">;
2429
+ }, z.core.$strict>, z.ZodObject<{
2430
+ kind: z.ZodLiteral<"automatic">;
2431
+ observation: z.ZodOptional<z.ZodObject<{
2432
+ source: z.ZodString;
2433
+ type: z.ZodString;
2434
+ }, z.core.$strict>>;
2435
+ }, z.core.$strict>, z.ZodObject<{
2436
+ kind: z.ZodLiteral<"checking">;
2437
+ attempt: z.ZodString;
2438
+ }, z.core.$strict>, z.ZodObject<{
2439
+ kind: z.ZodLiteral<"needs-review">;
2440
+ attempt: z.ZodString;
2441
+ }, z.core.$strict>, z.ZodObject<{
2442
+ kind: z.ZodLiteral<"retryable">;
2443
+ attempt: z.ZodString;
2444
+ }, z.core.$strict>], "kind">;
2445
+ completed: z.ZodBoolean;
2446
+ completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2447
+ kind: z.ZodLiteral<"streak">;
2448
+ days: z.ZodNumber;
2449
+ timeZone: z.ZodString;
2450
+ }, z.core.$strict>, z.ZodObject<{
2451
+ kind: z.ZodLiteral<"once">;
2452
+ }, z.core.$strict>, z.ZodObject<{
2453
+ kind: z.ZodLiteral<"keyed">;
2454
+ }, z.core.$strict>], "kind">>;
2455
+ streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2456
+ goal: z.ZodNumber;
2457
+ current: z.ZodNumber;
2458
+ best: z.ZodNumber;
2459
+ today: z.ZodString;
2460
+ todayQualified: z.ZodBoolean;
2461
+ timeZone: z.ZodString;
2462
+ nextBoundary: z.ZodNumber;
2463
+ pendingTimeZone: z.ZodNullable<z.ZodObject<{
2464
+ timeZone: z.ZodString;
2465
+ effectiveAt: z.ZodNumber;
2466
+ }, z.core.$strip>>;
2467
+ days: z.ZodArray<z.ZodObject<{
2468
+ day: z.ZodNumber;
2469
+ date: z.ZodString;
2470
+ timeZone: z.ZodString;
2471
+ occurredAt: z.ZodNumber;
2472
+ }, z.core.$strip>>;
2473
+ milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
2474
+ status: z.ZodLiteral<"pending">;
2475
+ }, z.core.$strip>, z.ZodObject<{
2476
+ status: z.ZodLiteral<"awarded">;
2477
+ completion: z.ZodString;
2478
+ achievedAt: z.ZodNumber;
2479
+ }, z.core.$strip>, z.ZodObject<{
2480
+ status: z.ZodLiteral<"budget-exhausted">;
2481
+ budget: z.ZodString;
2482
+ achievedAt: z.ZodNumber;
2483
+ }, z.core.$strip>], "status">;
2484
+ }, z.core.$strip>>>;
2485
+ completionCount: z.ZodDefault<z.ZodNumber>;
2486
+ visibility: z.ZodDefault<z.ZodEnum<{
2487
+ visible: "visible";
2488
+ hidden: "hidden";
2489
+ }>>;
2490
+ missing: z.ZodArray<z.ZodObject<{
2491
+ quest: z.ZodString;
2492
+ title: z.ZodString;
2493
+ }, z.core.$strip>>;
2494
+ attempt: z.ZodNullable<z.ZodObject<{
2495
+ id: z.ZodString;
2496
+ release: z.ZodString;
2497
+ quest: z.ZodString;
2498
+ member: z.ZodString;
2499
+ evidence: z.ZodNullable<z.ZodString>;
2500
+ input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2501
+ kind: z.ZodLiteral<"quiz">;
2502
+ release: z.ZodOptional<z.ZodString>;
2503
+ answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
2504
+ [k: string]: string;
2505
+ }, Record<string, string>>>;
2506
+ }, z.core.$strict>, z.ZodObject<{
2507
+ kind: z.ZodLiteral<"text">;
2508
+ value: z.ZodString;
2509
+ }, z.core.$strict>, z.ZodObject<{
2510
+ kind: z.ZodLiteral<"url">;
2511
+ value: z.ZodString;
2512
+ }, z.core.$strict>]>>;
2513
+ status: z.ZodEnum<{
2514
+ "needs-review": "needs-review";
2515
+ failed: "failed";
2516
+ queued: "queued";
2517
+ evaluating: "evaluating";
2518
+ accepted: "accepted";
2519
+ progressed: "progressed";
2520
+ rejected: "rejected";
2521
+ }>;
2522
+ reason: z.ZodNullable<z.ZodString>;
2523
+ retries: z.ZodNumber;
2524
+ generation: z.ZodNumber;
2525
+ completion: z.ZodNullable<z.ZodString>;
2526
+ reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2527
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2528
+ balance: z.ZodString;
2529
+ amount: z.ZodNumber;
2530
+ }, z.core.$strict>, z.ZodObject<{
2531
+ kind: z.ZodLiteral<"tier">;
2532
+ reward: z.ZodObject<{
2533
+ id: z.ZodString;
2534
+ title: z.ZodString;
2535
+ tiers: z.ZodArray<z.ZodObject<{
2536
+ id: z.ZodString;
2537
+ title: z.ZodString;
2538
+ }, z.core.$strict>>;
2539
+ inventory: z.ZodObject<{
2540
+ kind: z.ZodLiteral<"untracked">;
2541
+ }, z.core.$strict>;
2542
+ fulfillment: z.ZodObject<{
2543
+ kind: z.ZodLiteral<"staff-handover">;
2544
+ }, z.core.$strict>;
2545
+ }, z.core.$strict>;
2546
+ tier: z.ZodString;
2547
+ }, z.core.$strict>, z.ZodObject<{
2548
+ kind: z.ZodLiteral<"integration">;
2549
+ provider: z.ZodLiteral<"discord">;
2550
+ action: z.ZodLiteral<"grant-role">;
2551
+ roleId: z.ZodString;
2552
+ }, z.core.$strict>]>>>>;
2553
+ requestedReview: z.ZodDefault<z.ZodBoolean>;
2554
+ createdAt: z.ZodNumber;
2555
+ }, z.core.$strip>>;
2556
+ release: z.ZodString;
2557
+ interaction: z.ZodEnum<{
2558
+ text: "text";
2559
+ url: "url";
2560
+ automatic: "automatic";
2561
+ claim: "claim";
2562
+ staff: "staff";
2563
+ quiz: "quiz";
2564
+ photo: "photo";
2565
+ }>;
2566
+ lifecycle: z.ZodEnum<{
2567
+ paused: "paused";
2568
+ active: "active";
2569
+ archived: "archived";
2570
+ }>;
2571
+ rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2572
+ kind: z.ZodLiteral<"points">;
2573
+ label: z.ZodString;
2574
+ amount: z.ZodNumber;
2575
+ ledger: z.ZodObject<{
2576
+ id: z.ZodString;
2577
+ key: z.ZodNullable<z.ZodString>;
2578
+ name: z.ZodString;
2579
+ }, z.core.$strip>;
2580
+ }, z.core.$strip>, z.ZodObject<{
2581
+ kind: z.ZodLiteral<"tier">;
2582
+ label: z.ZodString;
2583
+ reward: z.ZodObject<{
2584
+ id: z.ZodString;
2585
+ key: z.ZodNullable<z.ZodString>;
2586
+ title: z.ZodString;
2587
+ }, z.core.$strip>;
2588
+ tier: z.ZodString;
2589
+ }, z.core.$strip>, z.ZodObject<{
2590
+ kind: z.ZodLiteral<"integration">;
2591
+ label: z.ZodString;
2592
+ }, z.core.$strip>], "kind">>;
2593
+ }, z.core.$strip>>;
2594
+ }, z.core.$strip>;
2595
+ declare const questExperienceSchema: z.ZodObject<{
2596
+ member: z.ZodString;
2597
+ quests: z.ZodArray<z.ZodObject<{
2598
+ quest: z.ZodString;
2599
+ key: z.ZodOptional<z.ZodString>;
2600
+ title: z.ZodString;
2601
+ presentation: z.ZodDefault<z.ZodObject<{
2602
+ quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
2603
+ id: z.ZodString;
2604
+ prompt: z.ZodString;
2605
+ choices: z.ZodArray<z.ZodObject<{
2606
+ id: z.ZodString;
2607
+ label: z.ZodString;
2608
+ }, z.core.$strict>>;
2609
+ }, z.core.$strict>>>;
2610
+ instructions: z.ZodOptional<z.ZodString>;
2611
+ video: z.ZodOptional<z.ZodObject<{
2612
+ url: z.ZodString;
2613
+ poster: z.ZodOptional<z.ZodString>;
2614
+ captions: z.ZodOptional<z.ZodObject<{
2615
+ url: z.ZodString;
2616
+ language: z.ZodString;
2617
+ label: z.ZodString;
2618
+ }, z.core.$strict>>;
2619
+ }, z.core.$strict>>;
2620
+ }, z.core.$strict>>;
2621
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2622
+ google: "google";
2623
+ apple: "apple";
2624
+ x: "x";
2625
+ discord: "discord";
2626
+ }>>>;
2627
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
2628
+ kind: z.ZodLiteral<"manual">;
2629
+ input: z.ZodLiteral<"text">;
2630
+ constraints: z.ZodObject<{
2631
+ required: z.ZodDefault<z.ZodBoolean>;
2632
+ minLength: z.ZodDefault<z.ZodNumber>;
2633
+ maxLength: z.ZodDefault<z.ZodNumber>;
2634
+ }, z.core.$strict>;
2635
+ actor: z.ZodOptional<z.ZodEnum<{
2636
+ member: "member";
2637
+ staff: "staff";
2638
+ }>>;
2639
+ }, z.core.$strict>, z.ZodObject<{
2640
+ kind: z.ZodLiteral<"manual">;
2641
+ input: z.ZodLiteral<"url">;
2642
+ constraints: z.ZodObject<{
2643
+ required: z.ZodDefault<z.ZodBoolean>;
2644
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
2645
+ }, z.core.$strict>;
2646
+ actor: z.ZodOptional<z.ZodEnum<{
2647
+ member: "member";
2648
+ staff: "staff";
2649
+ }>>;
2650
+ }, z.core.$strict>, z.ZodObject<{
2651
+ kind: z.ZodLiteral<"manual">;
2652
+ input: z.ZodEnum<{
2653
+ none: "none";
2654
+ quiz: "quiz";
2655
+ photo: "photo";
2656
+ }>;
2657
+ actor: z.ZodOptional<z.ZodEnum<{
2658
+ member: "member";
2659
+ staff: "staff";
2660
+ }>>;
2661
+ }, z.core.$strict>, z.ZodObject<{
2662
+ kind: z.ZodLiteral<"automatic">;
2663
+ observation: z.ZodOptional<z.ZodObject<{
2664
+ source: z.ZodString;
2665
+ type: z.ZodString;
2666
+ }, z.core.$strict>>;
2667
+ content: z.ZodOptional<z.ZodObject<{
2668
+ tracker: z.ZodString;
2669
+ window: z.ZodObject<{
2670
+ start: z.ZodNumber;
2671
+ end: z.ZodOptional<z.ZodNumber>;
2672
+ }, z.core.$strict>;
2673
+ enrollment: z.ZodDefault<z.ZodEnum<{
2674
+ none: "none";
2675
+ required: "required";
2676
+ }>>;
2677
+ posts: z.ZodDefault<z.ZodEnum<{
2678
+ "after-enrollment": "after-enrollment";
2679
+ "since-start": "since-start";
2680
+ }>>;
2681
+ historical: z.ZodDefault<z.ZodEnum<{
2682
+ automatic: "automatic";
2683
+ claim: "claim";
2684
+ staff: "staff";
2685
+ }>>;
2686
+ }, z.core.$strict>>;
2687
+ tracker: z.ZodOptional<z.ZodObject<{
2688
+ tracker: z.ZodString;
2689
+ source: z.ZodEnum<{
2690
+ custom: "custom";
2691
+ "x-search": "x-search";
2692
+ }>;
2693
+ on: z.ZodOptional<z.ZodEnum<{
2694
+ "new-record": "new-record";
2695
+ "new-observation": "new-observation";
2696
+ "data-changed": "data-changed";
2697
+ }>>;
2698
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2699
+ path: z.ZodString;
2700
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2701
+ }, z.core.$strict>, z.ZodObject<{
2702
+ path: z.ZodString;
2703
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2704
+ setting: z.ZodString;
2705
+ }, z.core.$strict>]>>;
2706
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2707
+ setting: z.ZodString;
2708
+ }, z.core.$strict>]>>;
2709
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2710
+ setting: z.ZodString;
2711
+ }, z.core.$strict>]>>;
2712
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2713
+ setting: z.ZodString;
2714
+ }, z.core.$strict>]>>;
2715
+ }, z.core.$strict>]>>;
2716
+ beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
2717
+ }, z.core.$strict>>;
2718
+ }, z.core.$strict>]>;
2719
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2720
+ kind: z.ZodLiteral<"available">;
2721
+ input: z.ZodEnum<{
2722
+ text: "text";
2723
+ url: "url";
2724
+ none: "none";
2725
+ quiz: "quiz";
2726
+ photo: "photo";
2727
+ }>;
2728
+ }, z.core.$strict>, z.ZodObject<{
2729
+ kind: z.ZodLiteral<"completed">;
2730
+ }, z.core.$strict>, z.ZodObject<{
2731
+ kind: z.ZodLiteral<"locked">;
2732
+ missing: z.ZodArray<z.ZodObject<{
2733
+ quest: z.ZodString;
2734
+ title: z.ZodString;
2735
+ }, z.core.$strip>>;
2736
+ }, z.core.$strict>, z.ZodObject<{
2737
+ kind: z.ZodLiteral<"staff-required">;
2738
+ }, z.core.$strict>, z.ZodObject<{
2739
+ kind: z.ZodLiteral<"automatic">;
2740
+ observation: z.ZodOptional<z.ZodObject<{
2741
+ source: z.ZodString;
2742
+ type: z.ZodString;
2743
+ }, z.core.$strict>>;
2744
+ }, z.core.$strict>, z.ZodObject<{
2745
+ kind: z.ZodLiteral<"checking">;
2746
+ attempt: z.ZodString;
2747
+ }, z.core.$strict>, z.ZodObject<{
2748
+ kind: z.ZodLiteral<"needs-review">;
2749
+ attempt: z.ZodString;
2750
+ }, z.core.$strict>, z.ZodObject<{
2751
+ kind: z.ZodLiteral<"retryable">;
2752
+ attempt: z.ZodString;
2753
+ }, z.core.$strict>], "kind">;
2754
+ completed: z.ZodBoolean;
2755
+ completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2756
+ kind: z.ZodLiteral<"streak">;
2757
+ days: z.ZodNumber;
2758
+ timeZone: z.ZodString;
2759
+ }, z.core.$strict>, z.ZodObject<{
2760
+ kind: z.ZodLiteral<"once">;
2761
+ }, z.core.$strict>, z.ZodObject<{
2762
+ kind: z.ZodLiteral<"keyed">;
2763
+ }, z.core.$strict>], "kind">>;
2764
+ streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2765
+ goal: z.ZodNumber;
2766
+ current: z.ZodNumber;
2767
+ best: z.ZodNumber;
2768
+ today: z.ZodString;
2769
+ todayQualified: z.ZodBoolean;
2770
+ timeZone: z.ZodString;
2771
+ nextBoundary: z.ZodNumber;
2772
+ pendingTimeZone: z.ZodNullable<z.ZodObject<{
2773
+ timeZone: z.ZodString;
2774
+ effectiveAt: z.ZodNumber;
2775
+ }, z.core.$strip>>;
2776
+ days: z.ZodArray<z.ZodObject<{
2777
+ day: z.ZodNumber;
2778
+ date: z.ZodString;
2779
+ timeZone: z.ZodString;
2780
+ occurredAt: z.ZodNumber;
2781
+ }, z.core.$strip>>;
2782
+ milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
2783
+ status: z.ZodLiteral<"pending">;
2784
+ }, z.core.$strip>, z.ZodObject<{
2785
+ status: z.ZodLiteral<"awarded">;
2786
+ completion: z.ZodString;
2787
+ achievedAt: z.ZodNumber;
2788
+ }, z.core.$strip>, z.ZodObject<{
2789
+ status: z.ZodLiteral<"budget-exhausted">;
2790
+ budget: z.ZodString;
2791
+ achievedAt: z.ZodNumber;
2792
+ }, z.core.$strip>], "status">;
2793
+ }, z.core.$strip>>>;
2794
+ completionCount: z.ZodDefault<z.ZodNumber>;
2795
+ visibility: z.ZodDefault<z.ZodEnum<{
2796
+ visible: "visible";
2797
+ hidden: "hidden";
2798
+ }>>;
2799
+ missing: z.ZodArray<z.ZodObject<{
2800
+ quest: z.ZodString;
2801
+ title: z.ZodString;
2802
+ }, z.core.$strip>>;
2803
+ attempt: z.ZodNullable<z.ZodObject<{
2804
+ id: z.ZodString;
2805
+ release: z.ZodString;
2806
+ quest: z.ZodString;
2807
+ member: z.ZodString;
2808
+ evidence: z.ZodNullable<z.ZodString>;
2809
+ input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2810
+ kind: z.ZodLiteral<"quiz">;
2811
+ release: z.ZodOptional<z.ZodString>;
2812
+ answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
2813
+ [k: string]: string;
2814
+ }, Record<string, string>>>;
2815
+ }, z.core.$strict>, z.ZodObject<{
2816
+ kind: z.ZodLiteral<"text">;
2817
+ value: z.ZodString;
2818
+ }, z.core.$strict>, z.ZodObject<{
2819
+ kind: z.ZodLiteral<"url">;
2820
+ value: z.ZodString;
2821
+ }, z.core.$strict>]>>;
2822
+ status: z.ZodEnum<{
2823
+ "needs-review": "needs-review";
2824
+ failed: "failed";
2825
+ queued: "queued";
2826
+ evaluating: "evaluating";
2827
+ accepted: "accepted";
2828
+ progressed: "progressed";
2829
+ rejected: "rejected";
2830
+ }>;
2831
+ reason: z.ZodNullable<z.ZodString>;
2832
+ retries: z.ZodNumber;
2833
+ generation: z.ZodNumber;
2834
+ completion: z.ZodNullable<z.ZodString>;
2835
+ reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2836
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
2837
+ balance: z.ZodString;
2838
+ amount: z.ZodNumber;
2839
+ }, z.core.$strict>, z.ZodObject<{
2840
+ kind: z.ZodLiteral<"tier">;
2841
+ reward: z.ZodObject<{
2842
+ id: z.ZodString;
2843
+ title: z.ZodString;
2844
+ tiers: z.ZodArray<z.ZodObject<{
2845
+ id: z.ZodString;
2846
+ title: z.ZodString;
2847
+ }, z.core.$strict>>;
2848
+ inventory: z.ZodObject<{
2849
+ kind: z.ZodLiteral<"untracked">;
2850
+ }, z.core.$strict>;
2851
+ fulfillment: z.ZodObject<{
2852
+ kind: z.ZodLiteral<"staff-handover">;
2853
+ }, z.core.$strict>;
2854
+ }, z.core.$strict>;
2855
+ tier: z.ZodString;
2856
+ }, z.core.$strict>, z.ZodObject<{
2857
+ kind: z.ZodLiteral<"integration">;
2858
+ provider: z.ZodLiteral<"discord">;
2859
+ action: z.ZodLiteral<"grant-role">;
2860
+ roleId: z.ZodString;
2861
+ }, z.core.$strict>]>>>>;
2862
+ requestedReview: z.ZodDefault<z.ZodBoolean>;
2863
+ createdAt: z.ZodNumber;
2864
+ }, z.core.$strip>>;
2865
+ release: z.ZodString;
2866
+ interaction: z.ZodEnum<{
2867
+ text: "text";
2868
+ url: "url";
2869
+ automatic: "automatic";
2870
+ claim: "claim";
2871
+ staff: "staff";
2872
+ quiz: "quiz";
2873
+ photo: "photo";
2874
+ }>;
2875
+ lifecycle: z.ZodEnum<{
2876
+ paused: "paused";
2877
+ active: "active";
2878
+ archived: "archived";
2879
+ }>;
2880
+ rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2881
+ kind: z.ZodLiteral<"points">;
2882
+ label: z.ZodString;
2883
+ amount: z.ZodNumber;
2884
+ ledger: z.ZodObject<{
2885
+ id: z.ZodString;
2886
+ key: z.ZodNullable<z.ZodString>;
2887
+ name: z.ZodString;
2888
+ }, z.core.$strip>;
2889
+ }, z.core.$strip>, z.ZodObject<{
2890
+ kind: z.ZodLiteral<"tier">;
2891
+ label: z.ZodString;
2892
+ reward: z.ZodObject<{
2893
+ id: z.ZodString;
2894
+ key: z.ZodNullable<z.ZodString>;
2895
+ title: z.ZodString;
2896
+ }, z.core.$strip>;
2897
+ tier: z.ZodString;
2898
+ }, z.core.$strip>, z.ZodObject<{
2899
+ kind: z.ZodLiteral<"integration">;
2900
+ label: z.ZodString;
2901
+ }, z.core.$strip>], "kind">>;
2902
+ }, z.core.$strip>>;
2903
+ collections: z.ZodArray<z.ZodObject<{
2904
+ key: z.ZodOptional<z.ZodString>;
2905
+ id: z.ZodString;
2906
+ title: z.ZodString;
2907
+ quests: z.ZodArray<z.ZodObject<{
2908
+ quest: z.ZodString;
2909
+ key: z.ZodOptional<z.ZodString>;
2910
+ title: z.ZodString;
2911
+ presentation: z.ZodDefault<z.ZodObject<{
2912
+ quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
2913
+ id: z.ZodString;
2914
+ prompt: z.ZodString;
2915
+ choices: z.ZodArray<z.ZodObject<{
2916
+ id: z.ZodString;
2917
+ label: z.ZodString;
2918
+ }, z.core.$strict>>;
2919
+ }, z.core.$strict>>>;
2920
+ instructions: z.ZodOptional<z.ZodString>;
2921
+ video: z.ZodOptional<z.ZodObject<{
2922
+ url: z.ZodString;
2923
+ poster: z.ZodOptional<z.ZodString>;
2924
+ captions: z.ZodOptional<z.ZodObject<{
2925
+ url: z.ZodString;
2926
+ language: z.ZodString;
2927
+ label: z.ZodString;
2928
+ }, z.core.$strict>>;
2929
+ }, z.core.$strict>>;
2930
+ }, z.core.$strict>>;
2931
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2932
+ google: "google";
2933
+ apple: "apple";
2934
+ x: "x";
2935
+ discord: "discord";
2936
+ }>>>;
2937
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
2938
+ kind: z.ZodLiteral<"manual">;
2939
+ input: z.ZodLiteral<"text">;
2940
+ constraints: z.ZodObject<{
2941
+ required: z.ZodDefault<z.ZodBoolean>;
2942
+ minLength: z.ZodDefault<z.ZodNumber>;
2943
+ maxLength: z.ZodDefault<z.ZodNumber>;
2944
+ }, z.core.$strict>;
2945
+ actor: z.ZodOptional<z.ZodEnum<{
2946
+ member: "member";
2947
+ staff: "staff";
2948
+ }>>;
2949
+ }, z.core.$strict>, z.ZodObject<{
2950
+ kind: z.ZodLiteral<"manual">;
2951
+ input: z.ZodLiteral<"url">;
2952
+ constraints: z.ZodObject<{
2953
+ required: z.ZodDefault<z.ZodBoolean>;
2954
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
2955
+ }, z.core.$strict>;
2956
+ actor: z.ZodOptional<z.ZodEnum<{
2957
+ member: "member";
2958
+ staff: "staff";
2959
+ }>>;
2960
+ }, z.core.$strict>, z.ZodObject<{
2961
+ kind: z.ZodLiteral<"manual">;
2962
+ input: z.ZodEnum<{
2963
+ none: "none";
2964
+ quiz: "quiz";
2965
+ photo: "photo";
2966
+ }>;
2967
+ actor: z.ZodOptional<z.ZodEnum<{
2968
+ member: "member";
2969
+ staff: "staff";
2970
+ }>>;
2971
+ }, z.core.$strict>, z.ZodObject<{
2972
+ kind: z.ZodLiteral<"automatic">;
2973
+ observation: z.ZodOptional<z.ZodObject<{
2974
+ source: z.ZodString;
2975
+ type: z.ZodString;
2976
+ }, z.core.$strict>>;
2977
+ content: z.ZodOptional<z.ZodObject<{
2978
+ tracker: z.ZodString;
2979
+ window: z.ZodObject<{
2980
+ start: z.ZodNumber;
2981
+ end: z.ZodOptional<z.ZodNumber>;
2982
+ }, z.core.$strict>;
2983
+ enrollment: z.ZodDefault<z.ZodEnum<{
2984
+ none: "none";
2985
+ required: "required";
2986
+ }>>;
2987
+ posts: z.ZodDefault<z.ZodEnum<{
2988
+ "after-enrollment": "after-enrollment";
2989
+ "since-start": "since-start";
2990
+ }>>;
2991
+ historical: z.ZodDefault<z.ZodEnum<{
2992
+ automatic: "automatic";
2993
+ claim: "claim";
2994
+ staff: "staff";
2995
+ }>>;
2996
+ }, z.core.$strict>>;
2997
+ tracker: z.ZodOptional<z.ZodObject<{
2998
+ tracker: z.ZodString;
2999
+ source: z.ZodEnum<{
3000
+ custom: "custom";
3001
+ "x-search": "x-search";
3002
+ }>;
3003
+ on: z.ZodOptional<z.ZodEnum<{
3004
+ "new-record": "new-record";
3005
+ "new-observation": "new-observation";
3006
+ "data-changed": "data-changed";
3007
+ }>>;
3008
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3009
+ path: z.ZodString;
3010
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3011
+ }, z.core.$strict>, z.ZodObject<{
3012
+ path: z.ZodString;
3013
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3014
+ setting: z.ZodString;
3015
+ }, z.core.$strict>]>>;
3016
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3017
+ setting: z.ZodString;
3018
+ }, z.core.$strict>]>>;
3019
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3020
+ setting: z.ZodString;
3021
+ }, z.core.$strict>]>>;
3022
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3023
+ setting: z.ZodString;
3024
+ }, z.core.$strict>]>>;
3025
+ }, z.core.$strict>]>>;
3026
+ beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
3027
+ }, z.core.$strict>>;
3028
+ }, z.core.$strict>]>;
3029
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
3030
+ kind: z.ZodLiteral<"available">;
3031
+ input: z.ZodEnum<{
3032
+ text: "text";
3033
+ url: "url";
3034
+ none: "none";
3035
+ quiz: "quiz";
3036
+ photo: "photo";
3037
+ }>;
3038
+ }, z.core.$strict>, z.ZodObject<{
3039
+ kind: z.ZodLiteral<"completed">;
3040
+ }, z.core.$strict>, z.ZodObject<{
3041
+ kind: z.ZodLiteral<"locked">;
3042
+ missing: z.ZodArray<z.ZodObject<{
3043
+ quest: z.ZodString;
3044
+ title: z.ZodString;
3045
+ }, z.core.$strip>>;
3046
+ }, z.core.$strict>, z.ZodObject<{
3047
+ kind: z.ZodLiteral<"staff-required">;
3048
+ }, z.core.$strict>, z.ZodObject<{
3049
+ kind: z.ZodLiteral<"automatic">;
3050
+ observation: z.ZodOptional<z.ZodObject<{
3051
+ source: z.ZodString;
3052
+ type: z.ZodString;
3053
+ }, z.core.$strict>>;
3054
+ }, z.core.$strict>, z.ZodObject<{
3055
+ kind: z.ZodLiteral<"checking">;
3056
+ attempt: z.ZodString;
3057
+ }, z.core.$strict>, z.ZodObject<{
3058
+ kind: z.ZodLiteral<"needs-review">;
3059
+ attempt: z.ZodString;
3060
+ }, z.core.$strict>, z.ZodObject<{
3061
+ kind: z.ZodLiteral<"retryable">;
3062
+ attempt: z.ZodString;
3063
+ }, z.core.$strict>], "kind">;
3064
+ completed: z.ZodBoolean;
3065
+ completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3066
+ kind: z.ZodLiteral<"streak">;
3067
+ days: z.ZodNumber;
3068
+ timeZone: z.ZodString;
3069
+ }, z.core.$strict>, z.ZodObject<{
3070
+ kind: z.ZodLiteral<"once">;
3071
+ }, z.core.$strict>, z.ZodObject<{
3072
+ kind: z.ZodLiteral<"keyed">;
3073
+ }, z.core.$strict>], "kind">>;
3074
+ streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3075
+ goal: z.ZodNumber;
3076
+ current: z.ZodNumber;
3077
+ best: z.ZodNumber;
3078
+ today: z.ZodString;
3079
+ todayQualified: z.ZodBoolean;
3080
+ timeZone: z.ZodString;
3081
+ nextBoundary: z.ZodNumber;
3082
+ pendingTimeZone: z.ZodNullable<z.ZodObject<{
3083
+ timeZone: z.ZodString;
3084
+ effectiveAt: z.ZodNumber;
3085
+ }, z.core.$strip>>;
3086
+ days: z.ZodArray<z.ZodObject<{
3087
+ day: z.ZodNumber;
3088
+ date: z.ZodString;
3089
+ timeZone: z.ZodString;
3090
+ occurredAt: z.ZodNumber;
3091
+ }, z.core.$strip>>;
3092
+ milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
3093
+ status: z.ZodLiteral<"pending">;
3094
+ }, z.core.$strip>, z.ZodObject<{
3095
+ status: z.ZodLiteral<"awarded">;
3096
+ completion: z.ZodString;
3097
+ achievedAt: z.ZodNumber;
3098
+ }, z.core.$strip>, z.ZodObject<{
3099
+ status: z.ZodLiteral<"budget-exhausted">;
3100
+ budget: z.ZodString;
3101
+ achievedAt: z.ZodNumber;
3102
+ }, z.core.$strip>], "status">;
3103
+ }, z.core.$strip>>>;
3104
+ completionCount: z.ZodDefault<z.ZodNumber>;
3105
+ visibility: z.ZodDefault<z.ZodEnum<{
3106
+ visible: "visible";
3107
+ hidden: "hidden";
3108
+ }>>;
3109
+ missing: z.ZodArray<z.ZodObject<{
3110
+ quest: z.ZodString;
3111
+ title: z.ZodString;
3112
+ }, z.core.$strip>>;
3113
+ attempt: z.ZodNullable<z.ZodObject<{
3114
+ id: z.ZodString;
3115
+ release: z.ZodString;
3116
+ quest: z.ZodString;
3117
+ member: z.ZodString;
3118
+ evidence: z.ZodNullable<z.ZodString>;
3119
+ input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3120
+ kind: z.ZodLiteral<"quiz">;
3121
+ release: z.ZodOptional<z.ZodString>;
3122
+ answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
3123
+ [k: string]: string;
3124
+ }, Record<string, string>>>;
3125
+ }, z.core.$strict>, z.ZodObject<{
3126
+ kind: z.ZodLiteral<"text">;
3127
+ value: z.ZodString;
3128
+ }, z.core.$strict>, z.ZodObject<{
3129
+ kind: z.ZodLiteral<"url">;
3130
+ value: z.ZodString;
3131
+ }, z.core.$strict>]>>;
3132
+ status: z.ZodEnum<{
3133
+ "needs-review": "needs-review";
3134
+ failed: "failed";
3135
+ queued: "queued";
3136
+ evaluating: "evaluating";
3137
+ accepted: "accepted";
3138
+ progressed: "progressed";
3139
+ rejected: "rejected";
3140
+ }>;
3141
+ reason: z.ZodNullable<z.ZodString>;
3142
+ retries: z.ZodNumber;
3143
+ generation: z.ZodNumber;
3144
+ completion: z.ZodNullable<z.ZodString>;
3145
+ reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3146
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
3147
+ balance: z.ZodString;
3148
+ amount: z.ZodNumber;
3149
+ }, z.core.$strict>, z.ZodObject<{
3150
+ kind: z.ZodLiteral<"tier">;
3151
+ reward: z.ZodObject<{
3152
+ id: z.ZodString;
3153
+ title: z.ZodString;
3154
+ tiers: z.ZodArray<z.ZodObject<{
3155
+ id: z.ZodString;
3156
+ title: z.ZodString;
3157
+ }, z.core.$strict>>;
3158
+ inventory: z.ZodObject<{
3159
+ kind: z.ZodLiteral<"untracked">;
3160
+ }, z.core.$strict>;
3161
+ fulfillment: z.ZodObject<{
3162
+ kind: z.ZodLiteral<"staff-handover">;
3163
+ }, z.core.$strict>;
3164
+ }, z.core.$strict>;
3165
+ tier: z.ZodString;
3166
+ }, z.core.$strict>, z.ZodObject<{
3167
+ kind: z.ZodLiteral<"integration">;
3168
+ provider: z.ZodLiteral<"discord">;
3169
+ action: z.ZodLiteral<"grant-role">;
3170
+ roleId: z.ZodString;
3171
+ }, z.core.$strict>]>>>>;
3172
+ requestedReview: z.ZodDefault<z.ZodBoolean>;
3173
+ createdAt: z.ZodNumber;
3174
+ }, z.core.$strip>>;
3175
+ release: z.ZodString;
3176
+ interaction: z.ZodEnum<{
3177
+ text: "text";
3178
+ url: "url";
3179
+ automatic: "automatic";
3180
+ claim: "claim";
3181
+ staff: "staff";
3182
+ quiz: "quiz";
3183
+ photo: "photo";
3184
+ }>;
3185
+ lifecycle: z.ZodEnum<{
3186
+ paused: "paused";
3187
+ active: "active";
3188
+ archived: "archived";
3189
+ }>;
3190
+ rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3191
+ kind: z.ZodLiteral<"points">;
3192
+ label: z.ZodString;
3193
+ amount: z.ZodNumber;
3194
+ ledger: z.ZodObject<{
3195
+ id: z.ZodString;
3196
+ key: z.ZodNullable<z.ZodString>;
3197
+ name: z.ZodString;
3198
+ }, z.core.$strip>;
3199
+ }, z.core.$strip>, z.ZodObject<{
3200
+ kind: z.ZodLiteral<"tier">;
3201
+ label: z.ZodString;
3202
+ reward: z.ZodObject<{
3203
+ id: z.ZodString;
3204
+ key: z.ZodNullable<z.ZodString>;
3205
+ title: z.ZodString;
3206
+ }, z.core.$strip>;
3207
+ tier: z.ZodString;
3208
+ }, z.core.$strip>, z.ZodObject<{
3209
+ kind: z.ZodLiteral<"integration">;
3210
+ label: z.ZodString;
3211
+ }, z.core.$strip>], "kind">>;
3212
+ }, z.core.$strip>>;
3213
+ }, z.core.$strip>>;
3214
+ }, z.core.$strip>;
3215
+ type QuestView = z.infer<typeof questViewSchema>;
3216
+ type QuestRewardView = z.infer<typeof questRewardViewSchema>;
3217
+ type QuestCatalog = z.infer<typeof questCatalogSchema>;
3218
+ type QuestInstance = z.infer<typeof questInstanceSchema>;
3219
+ type QuestDraft = z.infer<typeof questDraftSchema>;
3220
+ declare const questPublicationPreviewSchema: z.ZodObject<{
3221
+ draft: z.ZodDiscriminatedUnion<[z.ZodObject<{
3222
+ id: z.ZodString;
3223
+ revision: z.ZodNumber;
3224
+ baseRevision: z.ZodNumber;
3225
+ changes: z.ZodObject<{
3226
+ quests: z.ZodArray<z.ZodObject<{
3227
+ id: z.ZodString;
3228
+ title: z.ZodString;
3229
+ typeVersion: z.ZodString;
3230
+ settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
3231
+ id: z.ZodString;
3232
+ prompt: z.ZodString;
3233
+ choices: z.ZodArray<z.ZodObject<{
3234
+ id: z.ZodString;
3235
+ label: z.ZodString;
3236
+ }, z.core.$strict>>;
3237
+ correct: z.ZodString;
3238
+ }, z.core.$strict>>]>>;
3239
+ requires: z.ZodArray<z.ZodString>;
3240
+ status: z.ZodEnum<{
3241
+ paused: "paused";
3242
+ active: "active";
3243
+ archived: "archived";
3244
+ }>;
3245
+ expectedRelease: z.ZodNullable<z.ZodString>;
3246
+ }, z.core.$strict>>;
3247
+ collections: z.ZodArray<z.ZodObject<{
3248
+ id: z.ZodString;
3249
+ key: z.ZodOptional<z.ZodString>;
3250
+ title: z.ZodString;
3251
+ quests: z.ZodArray<z.ZodString>;
3252
+ }, z.core.$strict>>;
3253
+ }, z.core.$strict>;
3254
+ status: z.ZodLiteral<"draft">;
3255
+ }, z.core.$strip>, z.ZodObject<{
3256
+ id: z.ZodString;
3257
+ revision: z.ZodNumber;
3258
+ baseRevision: z.ZodNumber;
3259
+ changes: z.ZodObject<{
3260
+ quests: z.ZodArray<z.ZodObject<{
3261
+ id: z.ZodString;
3262
+ title: z.ZodString;
3263
+ typeVersion: z.ZodString;
3264
+ settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
3265
+ id: z.ZodString;
3266
+ prompt: z.ZodString;
3267
+ choices: z.ZodArray<z.ZodObject<{
3268
+ id: z.ZodString;
3269
+ label: z.ZodString;
3270
+ }, z.core.$strict>>;
3271
+ correct: z.ZodString;
3272
+ }, z.core.$strict>>]>>;
3273
+ requires: z.ZodArray<z.ZodString>;
3274
+ status: z.ZodEnum<{
3275
+ paused: "paused";
3276
+ active: "active";
3277
+ archived: "archived";
3278
+ }>;
3279
+ expectedRelease: z.ZodNullable<z.ZodString>;
3280
+ }, z.core.$strict>>;
3281
+ collections: z.ZodArray<z.ZodObject<{
3282
+ id: z.ZodString;
3283
+ key: z.ZodOptional<z.ZodString>;
3284
+ title: z.ZodString;
3285
+ quests: z.ZodArray<z.ZodString>;
3286
+ }, z.core.$strict>>;
3287
+ }, z.core.$strict>;
3288
+ status: z.ZodLiteral<"published">;
3289
+ releaseIds: z.ZodArray<z.ZodString>;
3290
+ }, z.core.$strip>], "status">;
3291
+ releases: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3292
+ quest: z.ZodString;
3293
+ runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
3294
+ title: z.ZodString;
3295
+ presentation: z.ZodDefault<z.ZodObject<{
3296
+ quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
3297
+ id: z.ZodString;
3298
+ prompt: z.ZodString;
3299
+ choices: z.ZodArray<z.ZodObject<{
3300
+ id: z.ZodString;
3301
+ label: z.ZodString;
3302
+ }, z.core.$strict>>;
3303
+ }, z.core.$strict>>>;
3304
+ instructions: z.ZodOptional<z.ZodString>;
3305
+ video: z.ZodOptional<z.ZodObject<{
3306
+ url: z.ZodString;
3307
+ poster: z.ZodOptional<z.ZodString>;
3308
+ captions: z.ZodOptional<z.ZodObject<{
3309
+ url: z.ZodString;
3310
+ language: z.ZodString;
3311
+ label: z.ZodString;
3312
+ }, z.core.$strict>>;
3313
+ }, z.core.$strict>>;
3314
+ }, z.core.$strict>>;
3315
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3316
+ discord: "discord";
3317
+ }>>>;
3318
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3319
+ kind: z.ZodLiteral<"point-ledger">;
3320
+ default: z.ZodString;
3321
+ label: z.ZodString;
3322
+ description: z.ZodOptional<z.ZodString>;
3323
+ }, z.core.$strict>, z.ZodObject<{
3324
+ kind: z.ZodLiteral<"datetime">;
3325
+ default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
3326
+ label: z.ZodString;
3327
+ description: z.ZodOptional<z.ZodString>;
3328
+ }, z.core.$strict>, z.ZodObject<{
3329
+ kind: z.ZodLiteral<"resource">;
3330
+ default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
3331
+ source: z.ZodUnion<readonly [z.ZodObject<{
3332
+ provider: z.ZodLiteral<"domino">;
3333
+ resource: z.ZodLiteral<"point-ledger">;
3334
+ }, z.core.$strict>, z.ZodObject<{
3335
+ provider: z.ZodLiteral<"discord">;
3336
+ resource: z.ZodLiteral<"channel">;
3337
+ types: z.ZodArray<z.ZodEnum<{
3338
+ text: "text";
3339
+ announcement: "announcement";
3340
+ }>>;
3341
+ }, z.core.$strict>, z.ZodObject<{
3342
+ provider: z.ZodLiteral<"discord">;
3343
+ resource: z.ZodLiteral<"role">;
3344
+ assignable: z.ZodDefault<z.ZodBoolean>;
3345
+ }, z.core.$strict>]>;
3346
+ label: z.ZodString;
3347
+ description: z.ZodOptional<z.ZodString>;
3348
+ }, z.core.$strict>, z.ZodObject<{
3349
+ kind: z.ZodLiteral<"quiz">;
3350
+ default: z.ZodArray<z.ZodObject<{
3351
+ id: z.ZodString;
3352
+ prompt: z.ZodString;
3353
+ choices: z.ZodArray<z.ZodObject<{
3354
+ id: z.ZodString;
3355
+ label: z.ZodString;
3356
+ }, z.core.$strict>>;
3357
+ correct: z.ZodString;
3358
+ }, z.core.$strict>>;
3359
+ label: z.ZodString;
3360
+ description: z.ZodOptional<z.ZodString>;
3361
+ }, z.core.$strict>, z.ZodObject<{
3362
+ kind: z.ZodLiteral<"text">;
3363
+ default: z.ZodString;
3364
+ minLength: z.ZodNumber;
3365
+ maxLength: z.ZodNumber;
3366
+ multiline: z.ZodBoolean;
3367
+ label: z.ZodString;
3368
+ description: z.ZodOptional<z.ZodString>;
3369
+ }, z.core.$strict>, z.ZodObject<{
3370
+ kind: z.ZodLiteral<"integer">;
3371
+ default: z.ZodNumber;
3372
+ min: z.ZodNumber;
3373
+ max: z.ZodNumber;
3374
+ label: z.ZodString;
3375
+ description: z.ZodOptional<z.ZodString>;
3376
+ }, z.core.$strict>, z.ZodObject<{
3377
+ kind: z.ZodLiteral<"boolean">;
3378
+ default: z.ZodBoolean;
3379
+ label: z.ZodString;
3380
+ description: z.ZodOptional<z.ZodString>;
3381
+ }, z.core.$strict>, z.ZodObject<{
3382
+ kind: z.ZodLiteral<"choice">;
3383
+ default: z.ZodString;
3384
+ options: z.ZodArray<z.ZodString>;
3385
+ label: z.ZodString;
3386
+ description: z.ZodOptional<z.ZodString>;
3387
+ }, z.core.$strict>], "kind">>;
3388
+ values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
3389
+ id: z.ZodString;
3390
+ prompt: z.ZodString;
3391
+ choices: z.ZodArray<z.ZodObject<{
3392
+ id: z.ZodString;
3393
+ label: z.ZodString;
3394
+ }, z.core.$strict>>;
3395
+ correct: z.ZodString;
3396
+ }, z.core.$strict>>]>>;
3397
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3398
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
3399
+ balance: z.ZodString;
3400
+ amount: z.ZodNumber;
3401
+ }, z.core.$strict>, z.ZodObject<{
3402
+ kind: z.ZodLiteral<"tier">;
3403
+ reward: z.ZodObject<{
3404
+ id: z.ZodString;
3405
+ title: z.ZodString;
3406
+ tiers: z.ZodArray<z.ZodObject<{
3407
+ id: z.ZodString;
3408
+ title: z.ZodString;
3409
+ }, z.core.$strict>>;
3410
+ inventory: z.ZodObject<{
3411
+ kind: z.ZodLiteral<"untracked">;
3412
+ }, z.core.$strict>;
3413
+ fulfillment: z.ZodObject<{
3414
+ kind: z.ZodLiteral<"staff-handover">;
3415
+ }, z.core.$strict>;
3416
+ }, z.core.$strict>;
3417
+ tier: z.ZodString;
3418
+ }, z.core.$strict>, z.ZodObject<{
3419
+ kind: z.ZodLiteral<"integration">;
3420
+ provider: z.ZodLiteral<"discord">;
3421
+ action: z.ZodLiteral<"grant-role">;
3422
+ roleId: z.ZodString;
3423
+ }, z.core.$strict>]>>;
3424
+ humanReview: z.ZodBoolean;
3425
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
3426
+ kind: z.ZodLiteral<"manual">;
3427
+ input: z.ZodLiteral<"text">;
3428
+ constraints: z.ZodObject<{
3429
+ required: z.ZodDefault<z.ZodBoolean>;
3430
+ minLength: z.ZodDefault<z.ZodNumber>;
3431
+ maxLength: z.ZodDefault<z.ZodNumber>;
3432
+ }, z.core.$strict>;
3433
+ actor: z.ZodOptional<z.ZodEnum<{
3434
+ member: "member";
3435
+ staff: "staff";
3436
+ }>>;
3437
+ }, z.core.$strict>, z.ZodObject<{
3438
+ kind: z.ZodLiteral<"manual">;
3439
+ input: z.ZodLiteral<"url">;
3440
+ constraints: z.ZodObject<{
3441
+ required: z.ZodDefault<z.ZodBoolean>;
3442
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
3443
+ }, z.core.$strict>;
3444
+ actor: z.ZodOptional<z.ZodEnum<{
3445
+ member: "member";
3446
+ staff: "staff";
3447
+ }>>;
3448
+ }, z.core.$strict>, z.ZodObject<{
3449
+ kind: z.ZodLiteral<"manual">;
3450
+ input: z.ZodEnum<{
3451
+ none: "none";
3452
+ quiz: "quiz";
3453
+ photo: "photo";
3454
+ }>;
3455
+ actor: z.ZodOptional<z.ZodEnum<{
3456
+ member: "member";
3457
+ staff: "staff";
3458
+ }>>;
3459
+ }, z.core.$strict>, z.ZodObject<{
3460
+ kind: z.ZodLiteral<"automatic">;
3461
+ observation: z.ZodOptional<z.ZodObject<{
3462
+ source: z.ZodString;
3463
+ type: z.ZodString;
3464
+ }, z.core.$strict>>;
3465
+ content: z.ZodOptional<z.ZodObject<{
3466
+ tracker: z.ZodString;
3467
+ window: z.ZodObject<{
3468
+ start: z.ZodNumber;
3469
+ end: z.ZodOptional<z.ZodNumber>;
3470
+ }, z.core.$strict>;
3471
+ enrollment: z.ZodDefault<z.ZodEnum<{
3472
+ none: "none";
3473
+ required: "required";
3474
+ }>>;
3475
+ posts: z.ZodDefault<z.ZodEnum<{
3476
+ "after-enrollment": "after-enrollment";
3477
+ "since-start": "since-start";
3478
+ }>>;
3479
+ historical: z.ZodDefault<z.ZodEnum<{
3480
+ automatic: "automatic";
3481
+ claim: "claim";
3482
+ staff: "staff";
3483
+ }>>;
3484
+ }, z.core.$strict>>;
3485
+ tracker: z.ZodOptional<z.ZodObject<{
3486
+ tracker: z.ZodString;
3487
+ source: z.ZodEnum<{
3488
+ custom: "custom";
3489
+ "x-search": "x-search";
3490
+ }>;
3491
+ on: z.ZodOptional<z.ZodEnum<{
3492
+ "new-record": "new-record";
3493
+ "new-observation": "new-observation";
3494
+ "data-changed": "data-changed";
3495
+ }>>;
3496
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3497
+ path: z.ZodString;
3498
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3499
+ }, z.core.$strict>, z.ZodObject<{
3500
+ path: z.ZodString;
3501
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3502
+ setting: z.ZodString;
3503
+ }, z.core.$strict>]>>;
3504
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3505
+ setting: z.ZodString;
3506
+ }, z.core.$strict>]>>;
3507
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3508
+ setting: z.ZodString;
3509
+ }, z.core.$strict>]>>;
3510
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3511
+ setting: z.ZodString;
3512
+ }, z.core.$strict>]>>;
3513
+ }, z.core.$strict>]>>;
3514
+ beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
3515
+ }, z.core.$strict>>;
3516
+ }, z.core.$strict>]>;
3517
+ performance: z.ZodOptional<z.ZodObject<{
3518
+ metrics: z.ZodArray<z.ZodEnum<{
3519
+ likes: "likes";
3520
+ replies: "replies";
3521
+ reposts: "reposts";
3522
+ quotes: "quotes";
3523
+ views: "views";
3524
+ bookmarks: "bookmarks";
3525
+ }>>;
3526
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
3527
+ }, z.core.$strict>>;
3528
+ requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
3529
+ quest: z.ZodString;
3530
+ }, z.core.$strip>>>;
3531
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
3532
+ kind: z.ZodLiteral<"streak">;
3533
+ days: z.ZodNumber;
3534
+ timeZone: z.ZodString;
3535
+ }, z.core.$strict>, z.ZodObject<{
3536
+ kind: z.ZodLiteral<"once">;
3537
+ }, z.core.$strict>, z.ZodObject<{
3538
+ kind: z.ZodLiteral<"keyed">;
3539
+ }, z.core.$strict>], "kind">;
3540
+ visibility: z.ZodDefault<z.ZodEnum<{
3541
+ visible: "visible";
3542
+ hidden: "hidden";
3543
+ }>>;
3544
+ profile: z.ZodOptional<z.ZodObject<{
3545
+ visible: z.ZodBoolean;
3546
+ }, z.core.$strict>>;
3547
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
3548
+ id: z.ZodString;
3549
+ scope: z.ZodEnum<{
3550
+ member: "member";
3551
+ project: "project";
3552
+ }>;
3553
+ period: z.ZodEnum<{
3554
+ day: "day";
3555
+ lifetime: "lifetime";
3556
+ week: "week";
3557
+ }>;
3558
+ limit: z.ZodNumber;
3559
+ cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3560
+ balance: z.ZodString;
3561
+ }, z.core.$strict>]>;
3562
+ }, z.core.$strict>>>;
3563
+ key: z.ZodOptional<z.ZodString>;
3564
+ code: z.ZodString;
3565
+ provider: z.ZodEnum<{
3566
+ "workers-ai": "workers-ai";
3567
+ "fixture-pass": "fixture-pass";
3568
+ "fixture-fail": "fixture-fail";
3569
+ "fixture-unclear": "fixture-unclear";
3570
+ "fixture-error": "fixture-error";
3571
+ }>;
3572
+ id: z.ZodString;
3573
+ createdAt: z.ZodNumber;
3574
+ legacy: z.ZodDefault<z.ZodBoolean>;
3575
+ origin: z.ZodOptional<z.ZodObject<{
3576
+ typeVersion: z.ZodString;
3577
+ }, z.core.$strict>>;
3578
+ lifecycle: z.ZodDefault<z.ZodEnum<{
3579
+ paused: "paused";
3580
+ active: "active";
3581
+ archived: "archived";
3582
+ }>>;
3583
+ configuration: z.ZodOptional<z.ZodObject<{
3584
+ defaults: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
3585
+ id: z.ZodString;
3586
+ prompt: z.ZodString;
3587
+ choices: z.ZodArray<z.ZodObject<{
3588
+ id: z.ZodString;
3589
+ label: z.ZodString;
3590
+ }, z.core.$strict>>;
3591
+ correct: z.ZodString;
3592
+ }, z.core.$strict>>]>>;
3593
+ overrides: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
3594
+ id: z.ZodString;
3595
+ prompt: z.ZodString;
3596
+ choices: z.ZodArray<z.ZodObject<{
3597
+ id: z.ZodString;
3598
+ label: z.ZodString;
3599
+ }, z.core.$strict>>;
3600
+ correct: z.ZodString;
3601
+ }, z.core.$strict>>]>>;
3602
+ preserved: z.ZodArray<z.ZodString>;
3603
+ }, z.core.$strict>>;
3604
+ }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
3605
+ quest: z.ZodString;
3606
+ title: z.ZodString;
3607
+ criteria: z.ZodString;
3608
+ humanReview: z.ZodBoolean;
3609
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3610
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
3611
+ balance: z.ZodString;
3612
+ amount: z.ZodNumber;
3613
+ }, z.core.$strict>, z.ZodObject<{
3614
+ kind: z.ZodLiteral<"tier">;
3615
+ reward: z.ZodObject<{
3616
+ id: z.ZodString;
3617
+ title: z.ZodString;
3618
+ tiers: z.ZodArray<z.ZodObject<{
3619
+ id: z.ZodString;
3620
+ title: z.ZodString;
3621
+ }, z.core.$strict>>;
3622
+ inventory: z.ZodObject<{
3623
+ kind: z.ZodLiteral<"untracked">;
3624
+ }, z.core.$strict>;
3625
+ fulfillment: z.ZodObject<{
3626
+ kind: z.ZodLiteral<"staff-handover">;
3627
+ }, z.core.$strict>;
3628
+ }, z.core.$strict>;
3629
+ tier: z.ZodString;
3630
+ }, z.core.$strict>, z.ZodObject<{
3631
+ kind: z.ZodLiteral<"integration">;
3632
+ provider: z.ZodLiteral<"discord">;
3633
+ action: z.ZodLiteral<"grant-role">;
3634
+ roleId: z.ZodString;
3635
+ }, z.core.$strict>]>>;
3636
+ code: z.ZodString;
3637
+ provider: z.ZodEnum<{
3638
+ "workers-ai": "workers-ai";
3639
+ "fixture-pass": "fixture-pass";
3640
+ "fixture-fail": "fixture-fail";
3641
+ "fixture-unclear": "fixture-unclear";
3642
+ "fixture-error": "fixture-error";
3643
+ }>;
3644
+ id: z.ZodString;
3645
+ createdAt: z.ZodNumber;
3646
+ }, z.core.$strip>, z.ZodTransform<{
3647
+ quest: string;
3648
+ runtimeVersion: 1 | 2;
3649
+ title: string;
3650
+ presentation: {
3651
+ quiz?: {
3652
+ id: string;
3653
+ prompt: string;
3654
+ choices: {
3655
+ id: string;
3656
+ label: string;
3657
+ }[];
3658
+ }[] | undefined;
3659
+ instructions?: string | undefined;
3660
+ video?: {
3661
+ url: string;
3662
+ poster?: string | undefined;
3663
+ captions?: {
3664
+ url: string;
3665
+ language: string;
3666
+ label: string;
3667
+ } | undefined;
3668
+ } | undefined;
3669
+ };
3670
+ integrations: "discord"[];
3671
+ fields: Record<string, {
3672
+ kind: "point-ledger";
3673
+ default: string;
3674
+ label: string;
3675
+ description?: string | undefined;
3676
+ } | {
3677
+ kind: "datetime";
3678
+ default: string;
3679
+ label: string;
3680
+ description?: string | undefined;
3681
+ } | {
3682
+ kind: "resource";
3683
+ default: string;
3684
+ source: {
3685
+ provider: "discord";
3686
+ resource: "channel";
3687
+ types: ("text" | "announcement")[];
3688
+ } | {
3689
+ provider: "domino";
3690
+ resource: "point-ledger";
3691
+ } | {
3692
+ provider: "discord";
3693
+ resource: "role";
3694
+ assignable: boolean;
3695
+ };
3696
+ label: string;
3697
+ description?: string | undefined;
3698
+ } | {
3699
+ kind: "quiz";
3700
+ default: {
3701
+ id: string;
3702
+ prompt: string;
3703
+ choices: {
3704
+ id: string;
3705
+ label: string;
3706
+ }[];
3707
+ correct: string;
3708
+ }[];
3709
+ label: string;
3710
+ description?: string | undefined;
3711
+ } | {
3712
+ kind: "text";
3713
+ default: string;
3714
+ minLength: number;
3715
+ maxLength: number;
3716
+ multiline: boolean;
3717
+ label: string;
3718
+ description?: string | undefined;
3719
+ } | {
3720
+ kind: "integer";
3721
+ default: number;
3722
+ min: number;
3723
+ max: number;
3724
+ label: string;
3725
+ description?: string | undefined;
3726
+ } | {
3727
+ kind: "boolean";
3728
+ default: boolean;
3729
+ label: string;
3730
+ description?: string | undefined;
3731
+ } | {
3732
+ kind: "choice";
3733
+ default: string;
3734
+ options: string[];
3735
+ label: string;
3736
+ description?: string | undefined;
3737
+ }>;
3738
+ values: Record<string, string | number | boolean | {
3739
+ id: string;
3740
+ prompt: string;
3741
+ choices: {
3742
+ id: string;
3743
+ label: string;
3744
+ }[];
3745
+ correct: string;
3746
+ }[]>;
3747
+ rewards: ({
3748
+ kind: "tier";
3749
+ reward: {
3750
+ id: string;
3751
+ title: string;
3752
+ tiers: {
3753
+ id: string;
3754
+ title: string;
3755
+ }[];
3756
+ inventory: {
3757
+ kind: "untracked";
3758
+ };
3759
+ fulfillment: {
3760
+ kind: "staff-handover";
3761
+ };
3762
+ };
3763
+ tier: string;
3764
+ } | {
3765
+ kind: "points";
3766
+ balance: string;
3767
+ amount: number;
3768
+ } | {
3769
+ kind: "integration";
3770
+ provider: "discord";
3771
+ action: "grant-role";
3772
+ roleId: string;
3773
+ })[];
3774
+ humanReview: boolean;
3775
+ trigger: {
3776
+ kind: "automatic";
3777
+ observation?: {
3778
+ source: string;
3779
+ type: string;
3780
+ } | undefined;
3781
+ content?: {
3782
+ tracker: string;
3783
+ window: {
3784
+ start: number;
3785
+ end?: number | undefined;
3786
+ };
3787
+ enrollment: "none" | "required";
3788
+ posts: "after-enrollment" | "since-start";
3789
+ historical: "automatic" | "claim" | "staff";
3790
+ } | undefined;
3791
+ tracker?: {
3792
+ tracker: string;
3793
+ source: "custom" | "x-search";
3794
+ beneficiary: string;
3795
+ on?: "new-record" | "new-observation" | "data-changed" | undefined;
3796
+ where?: {
3797
+ path: string;
3798
+ gt?: number | {
3799
+ setting: string;
3800
+ } | undefined;
3801
+ gte?: number | {
3802
+ setting: string;
3803
+ } | undefined;
3804
+ lt?: number | {
3805
+ setting: string;
3806
+ } | undefined;
3807
+ lte?: number | {
3808
+ setting: string;
3809
+ } | undefined;
3810
+ } | {
3811
+ path: string;
3812
+ equals: string | number | boolean;
3813
+ } | undefined;
3814
+ } | undefined;
3815
+ } | {
3816
+ kind: "manual";
3817
+ input: "text";
3818
+ constraints: {
3819
+ required: boolean;
3820
+ minLength: number;
3821
+ maxLength: number;
3822
+ };
3823
+ actor?: "member" | "staff" | undefined;
3824
+ } | {
3825
+ kind: "manual";
3826
+ input: "url";
3827
+ constraints: {
3828
+ required: boolean;
3829
+ allowedHosts?: string[] | undefined;
3830
+ };
3831
+ actor?: "member" | "staff" | undefined;
3832
+ } | {
3833
+ kind: "manual";
3834
+ input: "none" | "quiz" | "photo";
3835
+ actor?: "member" | "staff" | undefined;
3836
+ };
3837
+ requires: {
3838
+ quest: string;
3839
+ }[];
3840
+ completion: {
3841
+ kind: "streak";
3842
+ days: number;
3843
+ timeZone: string;
3844
+ } | {
3845
+ kind: "once";
3846
+ } | {
3847
+ kind: "keyed";
3848
+ };
3849
+ visibility: "visible" | "hidden";
3850
+ budgets: {
3851
+ id: string;
3852
+ scope: "member" | "project";
3853
+ period: "day" | "lifetime" | "week";
3854
+ limit: number;
3855
+ cost: number | {
3856
+ balance: string;
3857
+ };
3858
+ }[];
3859
+ code: string;
3860
+ provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
3861
+ id: string;
3862
+ createdAt: number;
3863
+ legacy: boolean;
3864
+ lifecycle: "paused" | "active" | "archived";
3865
+ performance?: {
3866
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3867
+ maxAgeMs: number;
3868
+ } | undefined;
3869
+ profile?: {
3870
+ visible: boolean;
3871
+ } | undefined;
3872
+ key?: string | undefined;
3873
+ origin?: {
3874
+ typeVersion: string;
3875
+ } | undefined;
3876
+ configuration?: {
3877
+ defaults: Record<string, string | number | boolean | {
3878
+ id: string;
3879
+ prompt: string;
3880
+ choices: {
3881
+ id: string;
3882
+ label: string;
3883
+ }[];
3884
+ correct: string;
3885
+ }[]>;
3886
+ overrides: Record<string, string | number | boolean | {
3887
+ id: string;
3888
+ prompt: string;
3889
+ choices: {
3890
+ id: string;
3891
+ label: string;
3892
+ }[];
3893
+ correct: string;
3894
+ }[]>;
3895
+ preserved: string[];
3896
+ } | undefined;
3897
+ }, {
3898
+ quest: string;
3899
+ title: string;
3900
+ criteria: string;
3901
+ humanReview: boolean;
3902
+ rewards: ({
3903
+ kind: "tier";
3904
+ reward: {
3905
+ id: string;
3906
+ title: string;
3907
+ tiers: {
3908
+ id: string;
3909
+ title: string;
3910
+ }[];
3911
+ inventory: {
3912
+ kind: "untracked";
3913
+ };
3914
+ fulfillment: {
3915
+ kind: "staff-handover";
3916
+ };
3917
+ };
3918
+ tier: string;
3919
+ } | {
3920
+ kind: "points";
3921
+ balance: string;
3922
+ amount: number;
3923
+ } | {
3924
+ kind: "integration";
3925
+ provider: "discord";
3926
+ action: "grant-role";
3927
+ roleId: string;
3928
+ })[];
3929
+ code: string;
3930
+ provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
3931
+ id: string;
3932
+ createdAt: number;
3933
+ }>>]>>;
3934
+ affectedCollections: z.ZodArray<z.ZodObject<{
3935
+ id: z.ZodString;
3936
+ key: z.ZodOptional<z.ZodString>;
3937
+ title: z.ZodString;
3938
+ quests: z.ZodArray<z.ZodString>;
3939
+ }, z.core.$strict>>;
3940
+ }, z.core.$strip>;
3941
+ declare const allocateQuestSchema: z.ZodObject<{
3942
+ actionId: z.ZodString;
3943
+ }, z.core.$strict>;
3944
+ declare const allocatedQuestSchema: z.ZodObject<{
3945
+ id: z.ZodString;
3946
+ }, z.core.$strip>;
3947
+
3948
+ export { questPublicationPreviewSchema as A, questRewardViewSchema as B, questTypeVersionSchema as C, questViewSchema as D, type ExchangeInput as E, saveQuestDraftSchema as F, sessionSchema as G, type MemberSummary as M, type QuestInteraction as Q, type Session as S, type QuestRewardView as a, type QuestView as b, type QuestCatalog as c, type QuestDraft as d, type QuestInstance as e, allocateQuestSchema as f, allocatedQuestSchema as g, authScopeSchema as h, catalogDeploymentPreviewSchema as i, catalogDeploymentSchema as j, collectionSlotDeclarationSchema as k, collectionSlotSchema as l, collectionViewSchema as m, exchangeResultSchema as n, exchangeSchema as o, interactionSchema as p, questExperienceSchema as q, memberSummarySchema as r, principalSchema as s, publishQuestDraftSchema as t, questCatalogSchema as u, questCollectionSchema as v, questDraftChangesSchema as w, questDraftSchema as x, questInstanceSchema as y, questInteraction as z };