@domino-sdk/relay 1.0.0-next.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +1 -1
  2. package/dist/activity-DeKJsRry.d.ts +9112 -0
  3. package/dist/authoring.d.ts +1135 -285
  4. package/dist/authoring.js +545 -269
  5. package/dist/automatic-outcomes-B1xrETxm.d.ts +758 -0
  6. package/dist/avatar.d.ts +2 -2
  7. package/dist/browser-DFe7sWSN.d.ts +4154 -0
  8. package/dist/browser.d.ts +11 -2528
  9. package/dist/browser.js +8 -6
  10. package/dist/capability-error-DNMwKmlL.d.ts +458 -0
  11. package/dist/{chunk-V7EZUZ3Z.js → chunk-36HTX2BM.js} +389 -169
  12. package/dist/chunk-6QJ3LADK.js +112 -0
  13. package/dist/{chunk-77H7APVD.js → chunk-BGGKNIRP.js} +1 -1
  14. package/dist/chunk-EYH5RDIE.js +496 -0
  15. package/dist/chunk-GQKYAQM6.js +84 -0
  16. package/dist/chunk-GUP7YRR4.js +42 -0
  17. package/dist/{chunk-V5R2DMGY.js → chunk-GZ6FJAXN.js} +380 -128
  18. package/dist/chunk-JON5SESL.js +2986 -0
  19. package/dist/chunk-MC6V6VMG.js +49 -0
  20. package/dist/chunk-NPGENI7K.js +37 -0
  21. package/dist/chunk-VFHHLN6A.js +284 -0
  22. package/dist/chunk-WJSSJ7AF.js +151 -0
  23. package/dist/{chunk-QBOHLT7M.js → chunk-XFMSUPNS.js} +1 -1
  24. package/dist/{chunk-6A6K5RUD.js → chunk-ZVIRG24J.js} +145 -42
  25. package/dist/{client-CK4nwt7V.d.ts → client-XiuFnug_.d.ts} +2193 -562
  26. package/dist/{submission-input-C9qm9ixd.d.ts → groups-Ck-OxzjD.d.ts} +919 -1142
  27. package/dist/identity-integration-GxAHdKR2.d.ts +58 -0
  28. package/dist/{images--vZ9U0kr.d.ts → images-Dv-P5VBw.d.ts} +2 -2
  29. package/dist/index.d.ts +13 -9
  30. package/dist/index.js +17 -6
  31. package/dist/internal.d.ts +82 -43
  32. package/dist/internal.js +58 -90
  33. package/dist/offers-Cy-e4o5x.d.ts +431 -0
  34. package/dist/{pages-BzqJuI69.d.ts → outcomes-kVB-Juzs.d.ts} +2386 -1490
  35. package/dist/pages-BBYD21IE.d.ts +359 -0
  36. package/dist/participant-rewards-3duLb8YJ.d.ts +668 -0
  37. package/dist/portal-proxy.js +22 -4
  38. package/dist/{profiles-DDMFBRKe.d.ts → profiles-D2aFcOxu.d.ts} +15 -15
  39. package/dist/react/index.d.ts +3122 -1011
  40. package/dist/react/index.js +1627 -779
  41. package/dist/request-error-DWduJCGV.d.ts +62 -0
  42. package/dist/schema-DfJzH2ci.d.ts +5644 -0
  43. package/dist/schema.d.ts +15 -4216
  44. package/dist/schema.js +322 -81
  45. package/dist/server/index.d.ts +81498 -0
  46. package/dist/server/index.js +2520 -0
  47. package/dist/{streaks-CwGReWGt.d.ts → streaks-CWyq8Px5.d.ts} +2 -4
  48. package/dist/submission-input-BZkm6ohU.d.ts +290 -0
  49. package/dist/vite.d.ts +1 -1
  50. package/dist/vite.js +1 -0
  51. package/dist/{wallet-BGOfFkG9.d.ts → wallet-YssWxGg8.d.ts} +35 -38
  52. package/package.json +8 -2
  53. package/dist/chunk-MRIURJE3.js +0 -257
  54. package/dist/chunk-VARGF4JS.js +0 -1733
  55. package/dist/chunk-ZWY3R6B3.js +0 -26
  56. package/dist/collection-BGneJ6Bk.d.ts +0 -114
  57. package/dist/integrations-C3Sp558f.d.ts +0 -1297
  58. package/dist/point-ledgers-iS00Z_v0.d.ts +0 -37
  59. package/dist/schema-pnuWqvGn.d.ts +0 -3396
@@ -1,3396 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const pointsRewardSchema: z.ZodObject<{
4
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
5
- balance: z.ZodString;
6
- amount: z.ZodNumber;
7
- }, z.core.$strict>;
8
- declare const tieredRewardDefinitionSchema: z.ZodObject<{
9
- id: z.ZodString;
10
- title: z.ZodString;
11
- tiers: z.ZodArray<z.ZodObject<{
12
- id: z.ZodString;
13
- title: z.ZodString;
14
- }, z.core.$strict>>;
15
- inventory: z.ZodObject<{
16
- kind: z.ZodLiteral<"untracked">;
17
- }, z.core.$strict>;
18
- fulfillment: z.ZodObject<{
19
- kind: z.ZodLiteral<"staff-handover">;
20
- }, z.core.$strict>;
21
- }, z.core.$strict>;
22
- type TieredRewardDefinition = z.infer<typeof tieredRewardDefinitionSchema>;
23
- /**
24
- * A tiered reward's stored ID with its authoring key, null for rewards created
25
- * without one. Reads name tiered rewards by ID (`reward.id`); match them against
26
- * `key` rather than comparing an ID with the key given to defineTieredReward.
27
- */
28
- declare const tieredRewardReferenceSchema: z.ZodObject<{
29
- id: z.ZodString;
30
- key: z.ZodNullable<z.ZodString>;
31
- }, z.core.$strip>;
32
- type TieredRewardReference = z.infer<typeof tieredRewardReferenceSchema>;
33
- declare const tierRewardSchema: z.ZodObject<{
34
- kind: z.ZodLiteral<"tier">;
35
- reward: z.ZodObject<{
36
- id: z.ZodString;
37
- title: z.ZodString;
38
- tiers: z.ZodArray<z.ZodObject<{
39
- id: z.ZodString;
40
- title: z.ZodString;
41
- }, z.core.$strict>>;
42
- inventory: z.ZodObject<{
43
- kind: z.ZodLiteral<"untracked">;
44
- }, z.core.$strict>;
45
- fulfillment: z.ZodObject<{
46
- kind: z.ZodLiteral<"staff-handover">;
47
- }, z.core.$strict>;
48
- }, z.core.$strict>;
49
- tier: z.ZodString;
50
- }, z.core.$strict>;
51
- declare const integrationRewardSchema: z.ZodObject<{
52
- kind: z.ZodLiteral<"integration">;
53
- provider: z.ZodLiteral<"discord">;
54
- action: z.ZodLiteral<"grant-role">;
55
- roleId: z.ZodString;
56
- }, z.core.$strict>;
57
- declare const rewardSchema: z.ZodUnion<readonly [z.ZodObject<{
58
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
59
- balance: z.ZodString;
60
- amount: z.ZodNumber;
61
- }, z.core.$strict>, z.ZodObject<{
62
- kind: z.ZodLiteral<"tier">;
63
- reward: z.ZodObject<{
64
- id: z.ZodString;
65
- title: z.ZodString;
66
- tiers: z.ZodArray<z.ZodObject<{
67
- id: z.ZodString;
68
- title: z.ZodString;
69
- }, z.core.$strict>>;
70
- inventory: z.ZodObject<{
71
- kind: z.ZodLiteral<"untracked">;
72
- }, z.core.$strict>;
73
- fulfillment: z.ZodObject<{
74
- kind: z.ZodLiteral<"staff-handover">;
75
- }, z.core.$strict>;
76
- }, z.core.$strict>;
77
- tier: z.ZodString;
78
- }, z.core.$strict>, z.ZodObject<{
79
- kind: z.ZodLiteral<"integration">;
80
- provider: z.ZodLiteral<"discord">;
81
- action: z.ZodLiteral<"grant-role">;
82
- roleId: z.ZodString;
83
- }, z.core.$strict>]>;
84
- type Reward = z.infer<typeof rewardSchema>;
85
- declare function rewardKey(reward: Reward): string;
86
- declare const triggerSchema: z.ZodUnion<readonly [z.ZodObject<{
87
- kind: z.ZodLiteral<"manual">;
88
- input: z.ZodLiteral<"text">;
89
- constraints: z.ZodObject<{
90
- required: z.ZodDefault<z.ZodBoolean>;
91
- minLength: z.ZodDefault<z.ZodNumber>;
92
- maxLength: z.ZodDefault<z.ZodNumber>;
93
- }, z.core.$strict>;
94
- actor: z.ZodOptional<z.ZodEnum<{
95
- member: "member";
96
- staff: "staff";
97
- }>>;
98
- }, z.core.$strict>, z.ZodObject<{
99
- kind: z.ZodLiteral<"manual">;
100
- input: z.ZodLiteral<"url">;
101
- constraints: z.ZodObject<{
102
- required: z.ZodDefault<z.ZodBoolean>;
103
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
104
- }, z.core.$strict>;
105
- actor: z.ZodOptional<z.ZodEnum<{
106
- member: "member";
107
- staff: "staff";
108
- }>>;
109
- }, z.core.$strict>, z.ZodObject<{
110
- kind: z.ZodLiteral<"manual">;
111
- input: z.ZodEnum<{
112
- none: "none";
113
- quiz: "quiz";
114
- photo: "photo";
115
- }>;
116
- actor: z.ZodOptional<z.ZodEnum<{
117
- member: "member";
118
- staff: "staff";
119
- }>>;
120
- }, z.core.$strict>, z.ZodObject<{
121
- kind: z.ZodLiteral<"automatic">;
122
- observation: z.ZodOptional<z.ZodObject<{
123
- source: z.ZodString;
124
- type: z.ZodString;
125
- }, z.core.$strict>>;
126
- content: z.ZodOptional<z.ZodObject<{
127
- tracker: z.ZodString;
128
- window: z.ZodObject<{
129
- start: z.ZodNumber;
130
- end: z.ZodOptional<z.ZodNumber>;
131
- }, z.core.$strict>;
132
- enrollment: z.ZodDefault<z.ZodEnum<{
133
- none: "none";
134
- required: "required";
135
- }>>;
136
- posts: z.ZodDefault<z.ZodEnum<{
137
- "after-enrollment": "after-enrollment";
138
- "since-start": "since-start";
139
- }>>;
140
- historical: z.ZodDefault<z.ZodEnum<{
141
- automatic: "automatic";
142
- claim: "claim";
143
- staff: "staff";
144
- }>>;
145
- }, z.core.$strict>>;
146
- tracker: z.ZodOptional<z.ZodObject<{
147
- tracker: z.ZodString;
148
- source: z.ZodEnum<{
149
- custom: "custom";
150
- "x-search": "x-search";
151
- }>;
152
- on: z.ZodOptional<z.ZodEnum<{
153
- "new-record": "new-record";
154
- "new-observation": "new-observation";
155
- "data-changed": "data-changed";
156
- }>>;
157
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
158
- path: z.ZodString;
159
- equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
160
- }, z.core.$strict>, z.ZodObject<{
161
- path: z.ZodString;
162
- gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
163
- setting: z.ZodString;
164
- }, z.core.$strict>]>>;
165
- gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
166
- setting: z.ZodString;
167
- }, z.core.$strict>]>>;
168
- lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
169
- setting: z.ZodString;
170
- }, z.core.$strict>]>>;
171
- lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
172
- setting: z.ZodString;
173
- }, z.core.$strict>]>>;
174
- }, z.core.$strict>]>>;
175
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
176
- }, z.core.$strict>>;
177
- }, z.core.$strict>]>;
178
- declare const prerequisiteSchema: z.ZodObject<{
179
- quest: z.ZodString;
180
- }, z.core.$strip>;
181
- declare const photoResultSchema: z.ZodObject<{
182
- kind: z.ZodEnum<{
183
- pass: "pass";
184
- fail: "fail";
185
- unclear: "unclear";
186
- }>;
187
- reason: z.ZodString;
188
- }, z.core.$strict>;
189
- type PhotoResult = z.infer<typeof photoResultSchema>;
190
- /** Text is evidence, never an instruction source. Lengths use JavaScript string units. */
191
- declare const textReviewInputSchema: z.ZodObject<{
192
- text: z.ZodString;
193
- criteria: z.ZodString;
194
- }, z.core.$strict>;
195
- type TextReviewInput = z.infer<typeof textReviewInputSchema>;
196
- declare const textResultSchema: z.ZodObject<{
197
- kind: z.ZodEnum<{
198
- pass: "pass";
199
- fail: "fail";
200
- unclear: "unclear";
201
- }>;
202
- reason: z.ZodString;
203
- }, z.core.$strict>;
204
- type TextResult = z.infer<typeof textResultSchema>;
205
- declare const decisionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
206
- kind: z.ZodLiteral<"accept">;
207
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
208
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
209
- balance: z.ZodString;
210
- amount: z.ZodNumber;
211
- }, z.core.$strict>, z.ZodObject<{
212
- kind: z.ZodLiteral<"tier">;
213
- reward: z.ZodObject<{
214
- id: z.ZodString;
215
- title: z.ZodString;
216
- tiers: z.ZodArray<z.ZodObject<{
217
- id: z.ZodString;
218
- title: z.ZodString;
219
- }, z.core.$strict>>;
220
- inventory: z.ZodObject<{
221
- kind: z.ZodLiteral<"untracked">;
222
- }, z.core.$strict>;
223
- fulfillment: z.ZodObject<{
224
- kind: z.ZodLiteral<"staff-handover">;
225
- }, z.core.$strict>;
226
- }, z.core.$strict>;
227
- tier: z.ZodString;
228
- }, z.core.$strict>, z.ZodObject<{
229
- kind: z.ZodLiteral<"integration">;
230
- provider: z.ZodLiteral<"discord">;
231
- action: z.ZodLiteral<"grant-role">;
232
- roleId: z.ZodString;
233
- }, z.core.$strict>]>>;
234
- completionKey: z.ZodOptional<z.ZodString>;
235
- }, z.core.$strict>, z.ZodObject<{
236
- kind: z.ZodLiteral<"reject">;
237
- reason: z.ZodString;
238
- requestedReview: z.ZodOptional<z.ZodLiteral<true>>;
239
- }, z.core.$strict>, z.ZodObject<{
240
- kind: z.ZodLiteral<"review">;
241
- reason: z.ZodString;
242
- rewards: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
243
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
244
- balance: z.ZodString;
245
- amount: z.ZodNumber;
246
- }, z.core.$strict>, z.ZodObject<{
247
- kind: z.ZodLiteral<"tier">;
248
- reward: z.ZodObject<{
249
- id: z.ZodString;
250
- title: z.ZodString;
251
- tiers: z.ZodArray<z.ZodObject<{
252
- id: z.ZodString;
253
- title: z.ZodString;
254
- }, z.core.$strict>>;
255
- inventory: z.ZodObject<{
256
- kind: z.ZodLiteral<"untracked">;
257
- }, z.core.$strict>;
258
- fulfillment: z.ZodObject<{
259
- kind: z.ZodLiteral<"staff-handover">;
260
- }, z.core.$strict>;
261
- }, z.core.$strict>;
262
- tier: z.ZodString;
263
- }, z.core.$strict>, z.ZodObject<{
264
- kind: z.ZodLiteral<"integration">;
265
- provider: z.ZodLiteral<"discord">;
266
- action: z.ZodLiteral<"grant-role">;
267
- roleId: z.ZodString;
268
- }, z.core.$strict>]>>>;
269
- completionKey: z.ZodOptional<z.ZodString>;
270
- }, z.core.$strict>], "kind">;
271
- type Decision = z.infer<typeof decisionSchema>;
272
- declare const reviewModeSchema: z.ZodEnum<{
273
- "workers-ai": "workers-ai";
274
- }>;
275
- declare const storedReviewModeSchema: z.ZodEnum<{
276
- "workers-ai": "workers-ai";
277
- "fixture-pass": "fixture-pass";
278
- "fixture-fail": "fixture-fail";
279
- "fixture-unclear": "fixture-unclear";
280
- "fixture-error": "fixture-error";
281
- }>;
282
- declare const rewardBundleSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
283
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
284
- balance: z.ZodString;
285
- amount: z.ZodNumber;
286
- }, z.core.$strict>, z.ZodObject<{
287
- kind: z.ZodLiteral<"tier">;
288
- reward: z.ZodObject<{
289
- id: z.ZodString;
290
- title: z.ZodString;
291
- tiers: z.ZodArray<z.ZodObject<{
292
- id: z.ZodString;
293
- title: z.ZodString;
294
- }, z.core.$strict>>;
295
- inventory: z.ZodObject<{
296
- kind: z.ZodLiteral<"untracked">;
297
- }, z.core.$strict>;
298
- fulfillment: z.ZodObject<{
299
- kind: z.ZodLiteral<"staff-handover">;
300
- }, z.core.$strict>;
301
- }, z.core.$strict>;
302
- tier: z.ZodString;
303
- }, z.core.$strict>, z.ZodObject<{
304
- kind: z.ZodLiteral<"integration">;
305
- provider: z.ZodLiteral<"discord">;
306
- action: z.ZodLiteral<"grant-role">;
307
- roleId: z.ZodString;
308
- }, z.core.$strict>]>>;
309
- declare const mediaUrlSchema: z.ZodString;
310
- declare const questPresentationSchema: z.ZodObject<{
311
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
312
- id: z.ZodString;
313
- prompt: z.ZodString;
314
- choices: z.ZodArray<z.ZodObject<{
315
- id: z.ZodString;
316
- label: z.ZodString;
317
- }, z.core.$strict>>;
318
- }, z.core.$strict>>>;
319
- instructions: z.ZodOptional<z.ZodString>;
320
- video: z.ZodOptional<z.ZodObject<{
321
- url: z.ZodString;
322
- poster: z.ZodOptional<z.ZodString>;
323
- captions: z.ZodOptional<z.ZodObject<{
324
- url: z.ZodString;
325
- language: z.ZodString;
326
- label: z.ZodString;
327
- }, z.core.$strict>>;
328
- }, z.core.$strict>>;
329
- }, z.core.$strict>;
330
- type QuestPresentation = z.infer<typeof questPresentationSchema>;
331
- /**
332
- * How a quest appears on participant profiles. Hidden by default: a completion can reveal what a
333
- * member holds or did, so each quest opts in.
334
- */
335
- declare const questProfileSchema: z.ZodObject<{
336
- visible: z.ZodBoolean;
337
- }, z.core.$strict>;
338
- type QuestProfile = z.infer<typeof questProfileSchema>;
339
- declare const questDescriptionSchema: z.ZodObject<{
340
- quest: z.ZodString;
341
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
342
- title: z.ZodString;
343
- presentation: z.ZodDefault<z.ZodObject<{
344
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
345
- id: z.ZodString;
346
- prompt: z.ZodString;
347
- choices: z.ZodArray<z.ZodObject<{
348
- id: z.ZodString;
349
- label: z.ZodString;
350
- }, z.core.$strict>>;
351
- }, z.core.$strict>>>;
352
- instructions: z.ZodOptional<z.ZodString>;
353
- video: z.ZodOptional<z.ZodObject<{
354
- url: z.ZodString;
355
- poster: z.ZodOptional<z.ZodString>;
356
- captions: z.ZodOptional<z.ZodObject<{
357
- url: z.ZodString;
358
- language: z.ZodString;
359
- label: z.ZodString;
360
- }, z.core.$strict>>;
361
- }, z.core.$strict>>;
362
- }, z.core.$strict>>;
363
- integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
364
- discord: "discord";
365
- }>>>;
366
- fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
367
- kind: z.ZodLiteral<"point-ledger">;
368
- default: z.ZodString;
369
- label: z.ZodString;
370
- description: z.ZodOptional<z.ZodString>;
371
- }, z.core.$strict>, z.ZodObject<{
372
- kind: z.ZodLiteral<"datetime">;
373
- default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
374
- label: z.ZodString;
375
- description: z.ZodOptional<z.ZodString>;
376
- }, z.core.$strict>, z.ZodObject<{
377
- kind: z.ZodLiteral<"resource">;
378
- default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
379
- source: z.ZodUnion<readonly [z.ZodObject<{
380
- provider: z.ZodLiteral<"domino">;
381
- resource: z.ZodLiteral<"point-ledger">;
382
- }, z.core.$strict>, z.ZodObject<{
383
- provider: z.ZodLiteral<"discord">;
384
- resource: z.ZodLiteral<"channel">;
385
- types: z.ZodArray<z.ZodEnum<{
386
- text: "text";
387
- announcement: "announcement";
388
- }>>;
389
- }, z.core.$strict>, z.ZodObject<{
390
- provider: z.ZodLiteral<"discord">;
391
- resource: z.ZodLiteral<"role">;
392
- assignable: z.ZodDefault<z.ZodBoolean>;
393
- }, z.core.$strict>]>;
394
- label: z.ZodString;
395
- description: z.ZodOptional<z.ZodString>;
396
- }, z.core.$strict>, z.ZodObject<{
397
- kind: z.ZodLiteral<"quiz">;
398
- default: z.ZodArray<z.ZodObject<{
399
- id: z.ZodString;
400
- prompt: z.ZodString;
401
- choices: z.ZodArray<z.ZodObject<{
402
- id: z.ZodString;
403
- label: z.ZodString;
404
- }, z.core.$strict>>;
405
- correct: z.ZodString;
406
- }, z.core.$strict>>;
407
- label: z.ZodString;
408
- description: z.ZodOptional<z.ZodString>;
409
- }, z.core.$strict>, z.ZodObject<{
410
- kind: z.ZodLiteral<"text">;
411
- default: z.ZodString;
412
- minLength: z.ZodNumber;
413
- maxLength: z.ZodNumber;
414
- multiline: z.ZodBoolean;
415
- label: z.ZodString;
416
- description: z.ZodOptional<z.ZodString>;
417
- }, z.core.$strict>, z.ZodObject<{
418
- kind: z.ZodLiteral<"integer">;
419
- default: z.ZodNumber;
420
- min: z.ZodNumber;
421
- max: z.ZodNumber;
422
- label: z.ZodString;
423
- description: z.ZodOptional<z.ZodString>;
424
- }, z.core.$strict>, z.ZodObject<{
425
- kind: z.ZodLiteral<"boolean">;
426
- default: z.ZodBoolean;
427
- label: z.ZodString;
428
- description: z.ZodOptional<z.ZodString>;
429
- }, z.core.$strict>, z.ZodObject<{
430
- kind: z.ZodLiteral<"choice">;
431
- default: z.ZodString;
432
- options: z.ZodArray<z.ZodString>;
433
- label: z.ZodString;
434
- description: z.ZodOptional<z.ZodString>;
435
- }, z.core.$strict>], "kind">>;
436
- values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
437
- id: z.ZodString;
438
- prompt: z.ZodString;
439
- choices: z.ZodArray<z.ZodObject<{
440
- id: z.ZodString;
441
- label: z.ZodString;
442
- }, z.core.$strict>>;
443
- correct: z.ZodString;
444
- }, z.core.$strict>>]>>;
445
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
446
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
447
- balance: z.ZodString;
448
- amount: z.ZodNumber;
449
- }, z.core.$strict>, z.ZodObject<{
450
- kind: z.ZodLiteral<"tier">;
451
- reward: z.ZodObject<{
452
- id: z.ZodString;
453
- title: z.ZodString;
454
- tiers: z.ZodArray<z.ZodObject<{
455
- id: z.ZodString;
456
- title: z.ZodString;
457
- }, z.core.$strict>>;
458
- inventory: z.ZodObject<{
459
- kind: z.ZodLiteral<"untracked">;
460
- }, z.core.$strict>;
461
- fulfillment: z.ZodObject<{
462
- kind: z.ZodLiteral<"staff-handover">;
463
- }, z.core.$strict>;
464
- }, z.core.$strict>;
465
- tier: z.ZodString;
466
- }, z.core.$strict>, z.ZodObject<{
467
- kind: z.ZodLiteral<"integration">;
468
- provider: z.ZodLiteral<"discord">;
469
- action: z.ZodLiteral<"grant-role">;
470
- roleId: z.ZodString;
471
- }, z.core.$strict>]>>;
472
- humanReview: z.ZodBoolean;
473
- trigger: z.ZodUnion<readonly [z.ZodObject<{
474
- kind: z.ZodLiteral<"manual">;
475
- input: z.ZodLiteral<"text">;
476
- constraints: z.ZodObject<{
477
- required: z.ZodDefault<z.ZodBoolean>;
478
- minLength: z.ZodDefault<z.ZodNumber>;
479
- maxLength: z.ZodDefault<z.ZodNumber>;
480
- }, z.core.$strict>;
481
- actor: z.ZodOptional<z.ZodEnum<{
482
- member: "member";
483
- staff: "staff";
484
- }>>;
485
- }, z.core.$strict>, z.ZodObject<{
486
- kind: z.ZodLiteral<"manual">;
487
- input: z.ZodLiteral<"url">;
488
- constraints: z.ZodObject<{
489
- required: z.ZodDefault<z.ZodBoolean>;
490
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
491
- }, z.core.$strict>;
492
- actor: z.ZodOptional<z.ZodEnum<{
493
- member: "member";
494
- staff: "staff";
495
- }>>;
496
- }, z.core.$strict>, z.ZodObject<{
497
- kind: z.ZodLiteral<"manual">;
498
- input: z.ZodEnum<{
499
- none: "none";
500
- quiz: "quiz";
501
- photo: "photo";
502
- }>;
503
- actor: z.ZodOptional<z.ZodEnum<{
504
- member: "member";
505
- staff: "staff";
506
- }>>;
507
- }, z.core.$strict>, z.ZodObject<{
508
- kind: z.ZodLiteral<"automatic">;
509
- observation: z.ZodOptional<z.ZodObject<{
510
- source: z.ZodString;
511
- type: z.ZodString;
512
- }, z.core.$strict>>;
513
- content: z.ZodOptional<z.ZodObject<{
514
- tracker: z.ZodString;
515
- window: z.ZodObject<{
516
- start: z.ZodNumber;
517
- end: z.ZodOptional<z.ZodNumber>;
518
- }, z.core.$strict>;
519
- enrollment: z.ZodDefault<z.ZodEnum<{
520
- none: "none";
521
- required: "required";
522
- }>>;
523
- posts: z.ZodDefault<z.ZodEnum<{
524
- "after-enrollment": "after-enrollment";
525
- "since-start": "since-start";
526
- }>>;
527
- historical: z.ZodDefault<z.ZodEnum<{
528
- automatic: "automatic";
529
- claim: "claim";
530
- staff: "staff";
531
- }>>;
532
- }, z.core.$strict>>;
533
- tracker: z.ZodOptional<z.ZodObject<{
534
- tracker: z.ZodString;
535
- source: z.ZodEnum<{
536
- custom: "custom";
537
- "x-search": "x-search";
538
- }>;
539
- on: z.ZodOptional<z.ZodEnum<{
540
- "new-record": "new-record";
541
- "new-observation": "new-observation";
542
- "data-changed": "data-changed";
543
- }>>;
544
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
545
- path: z.ZodString;
546
- equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
547
- }, z.core.$strict>, z.ZodObject<{
548
- path: z.ZodString;
549
- gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
550
- setting: z.ZodString;
551
- }, z.core.$strict>]>>;
552
- gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
553
- setting: z.ZodString;
554
- }, z.core.$strict>]>>;
555
- lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
556
- setting: z.ZodString;
557
- }, z.core.$strict>]>>;
558
- lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
559
- setting: z.ZodString;
560
- }, z.core.$strict>]>>;
561
- }, z.core.$strict>]>>;
562
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
563
- }, z.core.$strict>>;
564
- }, z.core.$strict>]>;
565
- performance: z.ZodOptional<z.ZodObject<{
566
- metrics: z.ZodArray<z.ZodEnum<{
567
- likes: "likes";
568
- replies: "replies";
569
- reposts: "reposts";
570
- quotes: "quotes";
571
- views: "views";
572
- bookmarks: "bookmarks";
573
- }>>;
574
- maxAgeMs: z.ZodDefault<z.ZodNumber>;
575
- }, z.core.$strict>>;
576
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
577
- quest: z.ZodString;
578
- }, z.core.$strip>>>;
579
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
580
- kind: z.ZodLiteral<"streak">;
581
- days: z.ZodNumber;
582
- timeZone: z.ZodString;
583
- }, z.core.$strict>, z.ZodObject<{
584
- kind: z.ZodLiteral<"once">;
585
- }, z.core.$strict>, z.ZodObject<{
586
- kind: z.ZodLiteral<"keyed">;
587
- }, z.core.$strict>], "kind">;
588
- visibility: z.ZodDefault<z.ZodEnum<{
589
- visible: "visible";
590
- hidden: "hidden";
591
- }>>;
592
- profile: z.ZodOptional<z.ZodObject<{
593
- visible: z.ZodBoolean;
594
- }, z.core.$strict>>;
595
- budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
596
- id: z.ZodString;
597
- scope: z.ZodEnum<{
598
- member: "member";
599
- project: "project";
600
- }>;
601
- period: z.ZodEnum<{
602
- day: "day";
603
- lifetime: "lifetime";
604
- week: "week";
605
- }>;
606
- limit: z.ZodNumber;
607
- cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
608
- balance: z.ZodString;
609
- }, z.core.$strict>]>;
610
- }, z.core.$strict>>>;
611
- }, z.core.$strict>;
612
- type QuestDescription = z.infer<typeof questDescriptionSchema>;
613
- declare const artifactSchema: z.ZodObject<{
614
- code: z.ZodString;
615
- }, z.core.$strict>;
616
- declare const releaseSchema: z.ZodObject<{
617
- code: z.ZodString;
618
- settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
619
- id: z.ZodString;
620
- prompt: z.ZodString;
621
- choices: z.ZodArray<z.ZodObject<{
622
- id: z.ZodString;
623
- label: z.ZodString;
624
- }, z.core.$strict>>;
625
- correct: z.ZodString;
626
- }, z.core.$strict>>]>>;
627
- provider: z.ZodEnum<{
628
- "workers-ai": "workers-ai";
629
- }>;
630
- expectedRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
631
- settingRenames: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
632
- }, z.core.$strict>;
633
- declare const batchReleaseSchema: z.ZodObject<{
634
- releases: z.ZodArray<z.ZodObject<{
635
- code: z.ZodString;
636
- settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
637
- id: z.ZodString;
638
- prompt: z.ZodString;
639
- choices: z.ZodArray<z.ZodObject<{
640
- id: z.ZodString;
641
- label: z.ZodString;
642
- }, z.core.$strict>>;
643
- correct: z.ZodString;
644
- }, z.core.$strict>>]>>;
645
- provider: z.ZodEnum<{
646
- "workers-ai": "workers-ai";
647
- }>;
648
- expectedRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
649
- settingRenames: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
650
- }, z.core.$strict>>;
651
- }, z.core.$strict>;
652
- type ReleaseInput = z.infer<typeof releaseSchema>;
653
- declare const questSettingsInputSchema: z.ZodObject<{
654
- quest: z.ZodString;
655
- expectedRelease: z.ZodString;
656
- set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
657
- id: z.ZodString;
658
- prompt: z.ZodString;
659
- choices: z.ZodArray<z.ZodObject<{
660
- id: z.ZodString;
661
- label: z.ZodString;
662
- }, z.core.$strict>>;
663
- correct: z.ZodString;
664
- }, z.core.$strict>>]>>;
665
- reset: z.ZodArray<z.ZodString>;
666
- }, z.core.$strict>;
667
- type QuestSettingsInput = z.infer<typeof questSettingsInputSchema>;
668
- declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
669
- quest: z.ZodString;
670
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
671
- title: z.ZodString;
672
- presentation: z.ZodDefault<z.ZodObject<{
673
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
674
- id: z.ZodString;
675
- prompt: z.ZodString;
676
- choices: z.ZodArray<z.ZodObject<{
677
- id: z.ZodString;
678
- label: z.ZodString;
679
- }, z.core.$strict>>;
680
- }, z.core.$strict>>>;
681
- instructions: z.ZodOptional<z.ZodString>;
682
- video: z.ZodOptional<z.ZodObject<{
683
- url: z.ZodString;
684
- poster: z.ZodOptional<z.ZodString>;
685
- captions: z.ZodOptional<z.ZodObject<{
686
- url: z.ZodString;
687
- language: z.ZodString;
688
- label: z.ZodString;
689
- }, z.core.$strict>>;
690
- }, z.core.$strict>>;
691
- }, z.core.$strict>>;
692
- integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
693
- discord: "discord";
694
- }>>>;
695
- fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
696
- kind: z.ZodLiteral<"point-ledger">;
697
- default: z.ZodString;
698
- label: z.ZodString;
699
- description: z.ZodOptional<z.ZodString>;
700
- }, z.core.$strict>, z.ZodObject<{
701
- kind: z.ZodLiteral<"datetime">;
702
- default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
703
- label: z.ZodString;
704
- description: z.ZodOptional<z.ZodString>;
705
- }, z.core.$strict>, z.ZodObject<{
706
- kind: z.ZodLiteral<"resource">;
707
- default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
708
- source: z.ZodUnion<readonly [z.ZodObject<{
709
- provider: z.ZodLiteral<"domino">;
710
- resource: z.ZodLiteral<"point-ledger">;
711
- }, z.core.$strict>, z.ZodObject<{
712
- provider: z.ZodLiteral<"discord">;
713
- resource: z.ZodLiteral<"channel">;
714
- types: z.ZodArray<z.ZodEnum<{
715
- text: "text";
716
- announcement: "announcement";
717
- }>>;
718
- }, z.core.$strict>, z.ZodObject<{
719
- provider: z.ZodLiteral<"discord">;
720
- resource: z.ZodLiteral<"role">;
721
- assignable: z.ZodDefault<z.ZodBoolean>;
722
- }, z.core.$strict>]>;
723
- label: z.ZodString;
724
- description: z.ZodOptional<z.ZodString>;
725
- }, z.core.$strict>, z.ZodObject<{
726
- kind: z.ZodLiteral<"quiz">;
727
- default: z.ZodArray<z.ZodObject<{
728
- id: z.ZodString;
729
- prompt: z.ZodString;
730
- choices: z.ZodArray<z.ZodObject<{
731
- id: z.ZodString;
732
- label: z.ZodString;
733
- }, z.core.$strict>>;
734
- correct: z.ZodString;
735
- }, z.core.$strict>>;
736
- label: z.ZodString;
737
- description: z.ZodOptional<z.ZodString>;
738
- }, z.core.$strict>, z.ZodObject<{
739
- kind: z.ZodLiteral<"text">;
740
- default: z.ZodString;
741
- minLength: z.ZodNumber;
742
- maxLength: z.ZodNumber;
743
- multiline: z.ZodBoolean;
744
- label: z.ZodString;
745
- description: z.ZodOptional<z.ZodString>;
746
- }, z.core.$strict>, z.ZodObject<{
747
- kind: z.ZodLiteral<"integer">;
748
- default: z.ZodNumber;
749
- min: z.ZodNumber;
750
- max: z.ZodNumber;
751
- label: z.ZodString;
752
- description: z.ZodOptional<z.ZodString>;
753
- }, z.core.$strict>, z.ZodObject<{
754
- kind: z.ZodLiteral<"boolean">;
755
- default: z.ZodBoolean;
756
- label: z.ZodString;
757
- description: z.ZodOptional<z.ZodString>;
758
- }, z.core.$strict>, z.ZodObject<{
759
- kind: z.ZodLiteral<"choice">;
760
- default: z.ZodString;
761
- options: z.ZodArray<z.ZodString>;
762
- label: z.ZodString;
763
- description: z.ZodOptional<z.ZodString>;
764
- }, z.core.$strict>], "kind">>;
765
- values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
766
- id: z.ZodString;
767
- prompt: z.ZodString;
768
- choices: z.ZodArray<z.ZodObject<{
769
- id: z.ZodString;
770
- label: z.ZodString;
771
- }, z.core.$strict>>;
772
- correct: z.ZodString;
773
- }, z.core.$strict>>]>>;
774
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
775
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
776
- balance: z.ZodString;
777
- amount: z.ZodNumber;
778
- }, z.core.$strict>, z.ZodObject<{
779
- kind: z.ZodLiteral<"tier">;
780
- reward: z.ZodObject<{
781
- id: z.ZodString;
782
- title: z.ZodString;
783
- tiers: z.ZodArray<z.ZodObject<{
784
- id: z.ZodString;
785
- title: z.ZodString;
786
- }, z.core.$strict>>;
787
- inventory: z.ZodObject<{
788
- kind: z.ZodLiteral<"untracked">;
789
- }, z.core.$strict>;
790
- fulfillment: z.ZodObject<{
791
- kind: z.ZodLiteral<"staff-handover">;
792
- }, z.core.$strict>;
793
- }, z.core.$strict>;
794
- tier: z.ZodString;
795
- }, z.core.$strict>, z.ZodObject<{
796
- kind: z.ZodLiteral<"integration">;
797
- provider: z.ZodLiteral<"discord">;
798
- action: z.ZodLiteral<"grant-role">;
799
- roleId: z.ZodString;
800
- }, z.core.$strict>]>>;
801
- humanReview: z.ZodBoolean;
802
- trigger: z.ZodUnion<readonly [z.ZodObject<{
803
- kind: z.ZodLiteral<"manual">;
804
- input: z.ZodLiteral<"text">;
805
- constraints: z.ZodObject<{
806
- required: z.ZodDefault<z.ZodBoolean>;
807
- minLength: z.ZodDefault<z.ZodNumber>;
808
- maxLength: z.ZodDefault<z.ZodNumber>;
809
- }, z.core.$strict>;
810
- actor: z.ZodOptional<z.ZodEnum<{
811
- member: "member";
812
- staff: "staff";
813
- }>>;
814
- }, z.core.$strict>, z.ZodObject<{
815
- kind: z.ZodLiteral<"manual">;
816
- input: z.ZodLiteral<"url">;
817
- constraints: z.ZodObject<{
818
- required: z.ZodDefault<z.ZodBoolean>;
819
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
820
- }, z.core.$strict>;
821
- actor: z.ZodOptional<z.ZodEnum<{
822
- member: "member";
823
- staff: "staff";
824
- }>>;
825
- }, z.core.$strict>, z.ZodObject<{
826
- kind: z.ZodLiteral<"manual">;
827
- input: z.ZodEnum<{
828
- none: "none";
829
- quiz: "quiz";
830
- photo: "photo";
831
- }>;
832
- actor: z.ZodOptional<z.ZodEnum<{
833
- member: "member";
834
- staff: "staff";
835
- }>>;
836
- }, z.core.$strict>, z.ZodObject<{
837
- kind: z.ZodLiteral<"automatic">;
838
- observation: z.ZodOptional<z.ZodObject<{
839
- source: z.ZodString;
840
- type: z.ZodString;
841
- }, z.core.$strict>>;
842
- content: z.ZodOptional<z.ZodObject<{
843
- tracker: z.ZodString;
844
- window: z.ZodObject<{
845
- start: z.ZodNumber;
846
- end: z.ZodOptional<z.ZodNumber>;
847
- }, z.core.$strict>;
848
- enrollment: z.ZodDefault<z.ZodEnum<{
849
- none: "none";
850
- required: "required";
851
- }>>;
852
- posts: z.ZodDefault<z.ZodEnum<{
853
- "after-enrollment": "after-enrollment";
854
- "since-start": "since-start";
855
- }>>;
856
- historical: z.ZodDefault<z.ZodEnum<{
857
- automatic: "automatic";
858
- claim: "claim";
859
- staff: "staff";
860
- }>>;
861
- }, z.core.$strict>>;
862
- tracker: z.ZodOptional<z.ZodObject<{
863
- tracker: z.ZodString;
864
- source: z.ZodEnum<{
865
- custom: "custom";
866
- "x-search": "x-search";
867
- }>;
868
- on: z.ZodOptional<z.ZodEnum<{
869
- "new-record": "new-record";
870
- "new-observation": "new-observation";
871
- "data-changed": "data-changed";
872
- }>>;
873
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
874
- path: z.ZodString;
875
- equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
876
- }, z.core.$strict>, z.ZodObject<{
877
- path: z.ZodString;
878
- gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
879
- setting: z.ZodString;
880
- }, z.core.$strict>]>>;
881
- gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
882
- setting: z.ZodString;
883
- }, z.core.$strict>]>>;
884
- lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
885
- setting: z.ZodString;
886
- }, z.core.$strict>]>>;
887
- lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
888
- setting: z.ZodString;
889
- }, z.core.$strict>]>>;
890
- }, z.core.$strict>]>>;
891
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
892
- }, z.core.$strict>>;
893
- }, z.core.$strict>]>;
894
- performance: z.ZodOptional<z.ZodObject<{
895
- metrics: z.ZodArray<z.ZodEnum<{
896
- likes: "likes";
897
- replies: "replies";
898
- reposts: "reposts";
899
- quotes: "quotes";
900
- views: "views";
901
- bookmarks: "bookmarks";
902
- }>>;
903
- maxAgeMs: z.ZodDefault<z.ZodNumber>;
904
- }, z.core.$strict>>;
905
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
906
- quest: z.ZodString;
907
- }, z.core.$strip>>>;
908
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
909
- kind: z.ZodLiteral<"streak">;
910
- days: z.ZodNumber;
911
- timeZone: z.ZodString;
912
- }, z.core.$strict>, z.ZodObject<{
913
- kind: z.ZodLiteral<"once">;
914
- }, z.core.$strict>, z.ZodObject<{
915
- kind: z.ZodLiteral<"keyed">;
916
- }, z.core.$strict>], "kind">;
917
- visibility: z.ZodDefault<z.ZodEnum<{
918
- visible: "visible";
919
- hidden: "hidden";
920
- }>>;
921
- profile: z.ZodOptional<z.ZodObject<{
922
- visible: z.ZodBoolean;
923
- }, z.core.$strict>>;
924
- budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
925
- id: z.ZodString;
926
- scope: z.ZodEnum<{
927
- member: "member";
928
- project: "project";
929
- }>;
930
- period: z.ZodEnum<{
931
- day: "day";
932
- lifetime: "lifetime";
933
- week: "week";
934
- }>;
935
- limit: z.ZodNumber;
936
- cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
937
- balance: z.ZodString;
938
- }, z.core.$strict>]>;
939
- }, z.core.$strict>>>;
940
- key: z.ZodOptional<z.ZodString>;
941
- code: z.ZodString;
942
- provider: z.ZodEnum<{
943
- "workers-ai": "workers-ai";
944
- "fixture-pass": "fixture-pass";
945
- "fixture-fail": "fixture-fail";
946
- "fixture-unclear": "fixture-unclear";
947
- "fixture-error": "fixture-error";
948
- }>;
949
- id: z.ZodString;
950
- createdAt: z.ZodNumber;
951
- legacy: z.ZodDefault<z.ZodBoolean>;
952
- origin: z.ZodOptional<z.ZodObject<{
953
- typeVersion: z.ZodString;
954
- }, z.core.$strict>>;
955
- lifecycle: z.ZodDefault<z.ZodEnum<{
956
- paused: "paused";
957
- active: "active";
958
- archived: "archived";
959
- }>>;
960
- configuration: z.ZodOptional<z.ZodObject<{
961
- defaults: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
962
- id: z.ZodString;
963
- prompt: z.ZodString;
964
- choices: z.ZodArray<z.ZodObject<{
965
- id: z.ZodString;
966
- label: z.ZodString;
967
- }, z.core.$strict>>;
968
- correct: z.ZodString;
969
- }, z.core.$strict>>]>>;
970
- overrides: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
971
- id: z.ZodString;
972
- prompt: z.ZodString;
973
- choices: z.ZodArray<z.ZodObject<{
974
- id: z.ZodString;
975
- label: z.ZodString;
976
- }, z.core.$strict>>;
977
- correct: z.ZodString;
978
- }, z.core.$strict>>]>>;
979
- preserved: z.ZodArray<z.ZodString>;
980
- }, z.core.$strict>>;
981
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
982
- quest: z.ZodString;
983
- title: z.ZodString;
984
- criteria: z.ZodString;
985
- humanReview: z.ZodBoolean;
986
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
987
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
988
- balance: z.ZodString;
989
- amount: z.ZodNumber;
990
- }, z.core.$strict>, z.ZodObject<{
991
- kind: z.ZodLiteral<"tier">;
992
- reward: z.ZodObject<{
993
- id: z.ZodString;
994
- title: z.ZodString;
995
- tiers: z.ZodArray<z.ZodObject<{
996
- id: z.ZodString;
997
- title: z.ZodString;
998
- }, z.core.$strict>>;
999
- inventory: z.ZodObject<{
1000
- kind: z.ZodLiteral<"untracked">;
1001
- }, z.core.$strict>;
1002
- fulfillment: z.ZodObject<{
1003
- kind: z.ZodLiteral<"staff-handover">;
1004
- }, z.core.$strict>;
1005
- }, z.core.$strict>;
1006
- tier: z.ZodString;
1007
- }, z.core.$strict>, z.ZodObject<{
1008
- kind: z.ZodLiteral<"integration">;
1009
- provider: z.ZodLiteral<"discord">;
1010
- action: z.ZodLiteral<"grant-role">;
1011
- roleId: z.ZodString;
1012
- }, z.core.$strict>]>>;
1013
- code: z.ZodString;
1014
- provider: z.ZodEnum<{
1015
- "workers-ai": "workers-ai";
1016
- "fixture-pass": "fixture-pass";
1017
- "fixture-fail": "fixture-fail";
1018
- "fixture-unclear": "fixture-unclear";
1019
- "fixture-error": "fixture-error";
1020
- }>;
1021
- id: z.ZodString;
1022
- createdAt: z.ZodNumber;
1023
- }, z.core.$strip>, z.ZodTransform<{
1024
- quest: string;
1025
- runtimeVersion: 1 | 2;
1026
- title: string;
1027
- presentation: {
1028
- quiz?: {
1029
- id: string;
1030
- prompt: string;
1031
- choices: {
1032
- id: string;
1033
- label: string;
1034
- }[];
1035
- }[] | undefined;
1036
- instructions?: string | undefined;
1037
- video?: {
1038
- url: string;
1039
- poster?: string | undefined;
1040
- captions?: {
1041
- url: string;
1042
- language: string;
1043
- label: string;
1044
- } | undefined;
1045
- } | undefined;
1046
- };
1047
- integrations: "discord"[];
1048
- fields: Record<string, {
1049
- kind: "point-ledger";
1050
- default: string;
1051
- label: string;
1052
- description?: string | undefined;
1053
- } | {
1054
- kind: "datetime";
1055
- default: string;
1056
- label: string;
1057
- description?: string | undefined;
1058
- } | {
1059
- kind: "resource";
1060
- default: string;
1061
- source: {
1062
- provider: "discord";
1063
- resource: "channel";
1064
- types: ("text" | "announcement")[];
1065
- } | {
1066
- provider: "domino";
1067
- resource: "point-ledger";
1068
- } | {
1069
- provider: "discord";
1070
- resource: "role";
1071
- assignable: boolean;
1072
- };
1073
- label: string;
1074
- description?: string | undefined;
1075
- } | {
1076
- kind: "quiz";
1077
- default: {
1078
- id: string;
1079
- prompt: string;
1080
- choices: {
1081
- id: string;
1082
- label: string;
1083
- }[];
1084
- correct: string;
1085
- }[];
1086
- label: string;
1087
- description?: string | undefined;
1088
- } | {
1089
- kind: "text";
1090
- default: string;
1091
- minLength: number;
1092
- maxLength: number;
1093
- multiline: boolean;
1094
- label: string;
1095
- description?: string | undefined;
1096
- } | {
1097
- kind: "integer";
1098
- default: number;
1099
- min: number;
1100
- max: number;
1101
- label: string;
1102
- description?: string | undefined;
1103
- } | {
1104
- kind: "boolean";
1105
- default: boolean;
1106
- label: string;
1107
- description?: string | undefined;
1108
- } | {
1109
- kind: "choice";
1110
- default: string;
1111
- options: string[];
1112
- label: string;
1113
- description?: string | undefined;
1114
- }>;
1115
- values: Record<string, string | number | boolean | {
1116
- id: string;
1117
- prompt: string;
1118
- choices: {
1119
- id: string;
1120
- label: string;
1121
- }[];
1122
- correct: string;
1123
- }[]>;
1124
- rewards: ({
1125
- kind: "tier";
1126
- reward: {
1127
- id: string;
1128
- title: string;
1129
- tiers: {
1130
- id: string;
1131
- title: string;
1132
- }[];
1133
- inventory: {
1134
- kind: "untracked";
1135
- };
1136
- fulfillment: {
1137
- kind: "staff-handover";
1138
- };
1139
- };
1140
- tier: string;
1141
- } | {
1142
- kind: "points";
1143
- balance: string;
1144
- amount: number;
1145
- } | {
1146
- kind: "integration";
1147
- provider: "discord";
1148
- action: "grant-role";
1149
- roleId: string;
1150
- })[];
1151
- humanReview: boolean;
1152
- trigger: {
1153
- kind: "automatic";
1154
- observation?: {
1155
- source: string;
1156
- type: string;
1157
- } | undefined;
1158
- content?: {
1159
- tracker: string;
1160
- window: {
1161
- start: number;
1162
- end?: number | undefined;
1163
- };
1164
- enrollment: "none" | "required";
1165
- posts: "after-enrollment" | "since-start";
1166
- historical: "automatic" | "claim" | "staff";
1167
- } | undefined;
1168
- tracker?: {
1169
- tracker: string;
1170
- source: "custom" | "x-search";
1171
- beneficiary: string;
1172
- on?: "new-record" | "new-observation" | "data-changed" | undefined;
1173
- where?: {
1174
- path: string;
1175
- gt?: number | {
1176
- setting: string;
1177
- } | undefined;
1178
- gte?: number | {
1179
- setting: string;
1180
- } | undefined;
1181
- lt?: number | {
1182
- setting: string;
1183
- } | undefined;
1184
- lte?: number | {
1185
- setting: string;
1186
- } | undefined;
1187
- } | {
1188
- path: string;
1189
- equals: string | number | boolean;
1190
- } | undefined;
1191
- } | undefined;
1192
- } | {
1193
- kind: "manual";
1194
- input: "text";
1195
- constraints: {
1196
- required: boolean;
1197
- minLength: number;
1198
- maxLength: number;
1199
- };
1200
- actor?: "member" | "staff" | undefined;
1201
- } | {
1202
- kind: "manual";
1203
- input: "url";
1204
- constraints: {
1205
- required: boolean;
1206
- allowedHosts?: string[] | undefined;
1207
- };
1208
- actor?: "member" | "staff" | undefined;
1209
- } | {
1210
- kind: "manual";
1211
- input: "none" | "quiz" | "photo";
1212
- actor?: "member" | "staff" | undefined;
1213
- };
1214
- requires: {
1215
- quest: string;
1216
- }[];
1217
- completion: {
1218
- kind: "streak";
1219
- days: number;
1220
- timeZone: string;
1221
- } | {
1222
- kind: "once";
1223
- } | {
1224
- kind: "keyed";
1225
- };
1226
- visibility: "visible" | "hidden";
1227
- budgets: {
1228
- id: string;
1229
- scope: "member" | "project";
1230
- period: "day" | "lifetime" | "week";
1231
- limit: number;
1232
- cost: number | {
1233
- balance: string;
1234
- };
1235
- }[];
1236
- code: string;
1237
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1238
- id: string;
1239
- createdAt: number;
1240
- legacy: boolean;
1241
- lifecycle: "paused" | "active" | "archived";
1242
- performance?: {
1243
- metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
1244
- maxAgeMs: number;
1245
- } | undefined;
1246
- profile?: {
1247
- visible: boolean;
1248
- } | undefined;
1249
- key?: string | undefined;
1250
- origin?: {
1251
- typeVersion: string;
1252
- } | undefined;
1253
- configuration?: {
1254
- defaults: Record<string, string | number | boolean | {
1255
- id: string;
1256
- prompt: string;
1257
- choices: {
1258
- id: string;
1259
- label: string;
1260
- }[];
1261
- correct: string;
1262
- }[]>;
1263
- overrides: Record<string, string | number | boolean | {
1264
- id: string;
1265
- prompt: string;
1266
- choices: {
1267
- id: string;
1268
- label: string;
1269
- }[];
1270
- correct: string;
1271
- }[]>;
1272
- preserved: string[];
1273
- } | undefined;
1274
- }, {
1275
- quest: string;
1276
- title: string;
1277
- criteria: string;
1278
- humanReview: boolean;
1279
- rewards: ({
1280
- kind: "tier";
1281
- reward: {
1282
- id: string;
1283
- title: string;
1284
- tiers: {
1285
- id: string;
1286
- title: string;
1287
- }[];
1288
- inventory: {
1289
- kind: "untracked";
1290
- };
1291
- fulfillment: {
1292
- kind: "staff-handover";
1293
- };
1294
- };
1295
- tier: string;
1296
- } | {
1297
- kind: "points";
1298
- balance: string;
1299
- amount: number;
1300
- } | {
1301
- kind: "integration";
1302
- provider: "discord";
1303
- action: "grant-role";
1304
- roleId: string;
1305
- })[];
1306
- code: string;
1307
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1308
- id: string;
1309
- createdAt: number;
1310
- }>>]>;
1311
- type PublishedRelease = z.infer<typeof publishedReleaseSchema>;
1312
- declare const templateSchema: z.ZodObject<{
1313
- code: z.ZodString;
1314
- definition: z.ZodObject<{
1315
- quest: z.ZodString;
1316
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1317
- title: z.ZodString;
1318
- presentation: z.ZodDefault<z.ZodObject<{
1319
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
1320
- id: z.ZodString;
1321
- prompt: z.ZodString;
1322
- choices: z.ZodArray<z.ZodObject<{
1323
- id: z.ZodString;
1324
- label: z.ZodString;
1325
- }, z.core.$strict>>;
1326
- }, z.core.$strict>>>;
1327
- instructions: z.ZodOptional<z.ZodString>;
1328
- video: z.ZodOptional<z.ZodObject<{
1329
- url: z.ZodString;
1330
- poster: z.ZodOptional<z.ZodString>;
1331
- captions: z.ZodOptional<z.ZodObject<{
1332
- url: z.ZodString;
1333
- language: z.ZodString;
1334
- label: z.ZodString;
1335
- }, z.core.$strict>>;
1336
- }, z.core.$strict>>;
1337
- }, z.core.$strict>>;
1338
- integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1339
- discord: "discord";
1340
- }>>>;
1341
- fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1342
- kind: z.ZodLiteral<"point-ledger">;
1343
- default: z.ZodString;
1344
- label: z.ZodString;
1345
- description: z.ZodOptional<z.ZodString>;
1346
- }, z.core.$strict>, z.ZodObject<{
1347
- kind: z.ZodLiteral<"datetime">;
1348
- default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
1349
- label: z.ZodString;
1350
- description: z.ZodOptional<z.ZodString>;
1351
- }, z.core.$strict>, z.ZodObject<{
1352
- kind: z.ZodLiteral<"resource">;
1353
- default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
1354
- source: z.ZodUnion<readonly [z.ZodObject<{
1355
- provider: z.ZodLiteral<"domino">;
1356
- resource: z.ZodLiteral<"point-ledger">;
1357
- }, z.core.$strict>, z.ZodObject<{
1358
- provider: z.ZodLiteral<"discord">;
1359
- resource: z.ZodLiteral<"channel">;
1360
- types: z.ZodArray<z.ZodEnum<{
1361
- text: "text";
1362
- announcement: "announcement";
1363
- }>>;
1364
- }, z.core.$strict>, z.ZodObject<{
1365
- provider: z.ZodLiteral<"discord">;
1366
- resource: z.ZodLiteral<"role">;
1367
- assignable: z.ZodDefault<z.ZodBoolean>;
1368
- }, z.core.$strict>]>;
1369
- label: z.ZodString;
1370
- description: z.ZodOptional<z.ZodString>;
1371
- }, z.core.$strict>, z.ZodObject<{
1372
- kind: z.ZodLiteral<"quiz">;
1373
- default: z.ZodArray<z.ZodObject<{
1374
- id: z.ZodString;
1375
- prompt: z.ZodString;
1376
- choices: z.ZodArray<z.ZodObject<{
1377
- id: z.ZodString;
1378
- label: z.ZodString;
1379
- }, z.core.$strict>>;
1380
- correct: z.ZodString;
1381
- }, z.core.$strict>>;
1382
- label: z.ZodString;
1383
- description: z.ZodOptional<z.ZodString>;
1384
- }, z.core.$strict>, z.ZodObject<{
1385
- kind: z.ZodLiteral<"text">;
1386
- default: z.ZodString;
1387
- minLength: z.ZodNumber;
1388
- maxLength: z.ZodNumber;
1389
- multiline: z.ZodBoolean;
1390
- label: z.ZodString;
1391
- description: z.ZodOptional<z.ZodString>;
1392
- }, z.core.$strict>, z.ZodObject<{
1393
- kind: z.ZodLiteral<"integer">;
1394
- default: z.ZodNumber;
1395
- min: z.ZodNumber;
1396
- max: z.ZodNumber;
1397
- label: z.ZodString;
1398
- description: z.ZodOptional<z.ZodString>;
1399
- }, z.core.$strict>, z.ZodObject<{
1400
- kind: z.ZodLiteral<"boolean">;
1401
- default: z.ZodBoolean;
1402
- label: z.ZodString;
1403
- description: z.ZodOptional<z.ZodString>;
1404
- }, z.core.$strict>, z.ZodObject<{
1405
- kind: z.ZodLiteral<"choice">;
1406
- default: z.ZodString;
1407
- options: z.ZodArray<z.ZodString>;
1408
- label: z.ZodString;
1409
- description: z.ZodOptional<z.ZodString>;
1410
- }, z.core.$strict>], "kind">>;
1411
- values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
1412
- id: z.ZodString;
1413
- prompt: z.ZodString;
1414
- choices: z.ZodArray<z.ZodObject<{
1415
- id: z.ZodString;
1416
- label: z.ZodString;
1417
- }, z.core.$strict>>;
1418
- correct: z.ZodString;
1419
- }, z.core.$strict>>]>>;
1420
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1421
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
1422
- balance: z.ZodString;
1423
- amount: z.ZodNumber;
1424
- }, z.core.$strict>, z.ZodObject<{
1425
- kind: z.ZodLiteral<"tier">;
1426
- reward: z.ZodObject<{
1427
- id: z.ZodString;
1428
- title: z.ZodString;
1429
- tiers: z.ZodArray<z.ZodObject<{
1430
- id: z.ZodString;
1431
- title: z.ZodString;
1432
- }, z.core.$strict>>;
1433
- inventory: z.ZodObject<{
1434
- kind: z.ZodLiteral<"untracked">;
1435
- }, z.core.$strict>;
1436
- fulfillment: z.ZodObject<{
1437
- kind: z.ZodLiteral<"staff-handover">;
1438
- }, z.core.$strict>;
1439
- }, z.core.$strict>;
1440
- tier: z.ZodString;
1441
- }, z.core.$strict>, z.ZodObject<{
1442
- kind: z.ZodLiteral<"integration">;
1443
- provider: z.ZodLiteral<"discord">;
1444
- action: z.ZodLiteral<"grant-role">;
1445
- roleId: z.ZodString;
1446
- }, z.core.$strict>]>>;
1447
- humanReview: z.ZodBoolean;
1448
- trigger: z.ZodUnion<readonly [z.ZodObject<{
1449
- kind: z.ZodLiteral<"manual">;
1450
- input: z.ZodLiteral<"text">;
1451
- constraints: z.ZodObject<{
1452
- required: z.ZodDefault<z.ZodBoolean>;
1453
- minLength: z.ZodDefault<z.ZodNumber>;
1454
- maxLength: z.ZodDefault<z.ZodNumber>;
1455
- }, z.core.$strict>;
1456
- actor: z.ZodOptional<z.ZodEnum<{
1457
- member: "member";
1458
- staff: "staff";
1459
- }>>;
1460
- }, z.core.$strict>, z.ZodObject<{
1461
- kind: z.ZodLiteral<"manual">;
1462
- input: z.ZodLiteral<"url">;
1463
- constraints: z.ZodObject<{
1464
- required: z.ZodDefault<z.ZodBoolean>;
1465
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1466
- }, z.core.$strict>;
1467
- actor: z.ZodOptional<z.ZodEnum<{
1468
- member: "member";
1469
- staff: "staff";
1470
- }>>;
1471
- }, z.core.$strict>, z.ZodObject<{
1472
- kind: z.ZodLiteral<"manual">;
1473
- input: z.ZodEnum<{
1474
- none: "none";
1475
- quiz: "quiz";
1476
- photo: "photo";
1477
- }>;
1478
- actor: z.ZodOptional<z.ZodEnum<{
1479
- member: "member";
1480
- staff: "staff";
1481
- }>>;
1482
- }, z.core.$strict>, z.ZodObject<{
1483
- kind: z.ZodLiteral<"automatic">;
1484
- observation: z.ZodOptional<z.ZodObject<{
1485
- source: z.ZodString;
1486
- type: z.ZodString;
1487
- }, z.core.$strict>>;
1488
- content: z.ZodOptional<z.ZodObject<{
1489
- tracker: z.ZodString;
1490
- window: z.ZodObject<{
1491
- start: z.ZodNumber;
1492
- end: z.ZodOptional<z.ZodNumber>;
1493
- }, z.core.$strict>;
1494
- enrollment: z.ZodDefault<z.ZodEnum<{
1495
- none: "none";
1496
- required: "required";
1497
- }>>;
1498
- posts: z.ZodDefault<z.ZodEnum<{
1499
- "after-enrollment": "after-enrollment";
1500
- "since-start": "since-start";
1501
- }>>;
1502
- historical: z.ZodDefault<z.ZodEnum<{
1503
- automatic: "automatic";
1504
- claim: "claim";
1505
- staff: "staff";
1506
- }>>;
1507
- }, z.core.$strict>>;
1508
- tracker: z.ZodOptional<z.ZodObject<{
1509
- tracker: z.ZodString;
1510
- source: z.ZodEnum<{
1511
- custom: "custom";
1512
- "x-search": "x-search";
1513
- }>;
1514
- on: z.ZodOptional<z.ZodEnum<{
1515
- "new-record": "new-record";
1516
- "new-observation": "new-observation";
1517
- "data-changed": "data-changed";
1518
- }>>;
1519
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1520
- path: z.ZodString;
1521
- equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1522
- }, z.core.$strict>, z.ZodObject<{
1523
- path: z.ZodString;
1524
- gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1525
- setting: z.ZodString;
1526
- }, z.core.$strict>]>>;
1527
- gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1528
- setting: z.ZodString;
1529
- }, z.core.$strict>]>>;
1530
- lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1531
- setting: z.ZodString;
1532
- }, z.core.$strict>]>>;
1533
- lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1534
- setting: z.ZodString;
1535
- }, z.core.$strict>]>>;
1536
- }, z.core.$strict>]>>;
1537
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
1538
- }, z.core.$strict>>;
1539
- }, z.core.$strict>]>;
1540
- performance: z.ZodOptional<z.ZodObject<{
1541
- metrics: z.ZodArray<z.ZodEnum<{
1542
- likes: "likes";
1543
- replies: "replies";
1544
- reposts: "reposts";
1545
- quotes: "quotes";
1546
- views: "views";
1547
- bookmarks: "bookmarks";
1548
- }>>;
1549
- maxAgeMs: z.ZodDefault<z.ZodNumber>;
1550
- }, z.core.$strict>>;
1551
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1552
- quest: z.ZodString;
1553
- }, z.core.$strip>>>;
1554
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1555
- kind: z.ZodLiteral<"streak">;
1556
- days: z.ZodNumber;
1557
- timeZone: z.ZodString;
1558
- }, z.core.$strict>, z.ZodObject<{
1559
- kind: z.ZodLiteral<"once">;
1560
- }, z.core.$strict>, z.ZodObject<{
1561
- kind: z.ZodLiteral<"keyed">;
1562
- }, z.core.$strict>], "kind">;
1563
- visibility: z.ZodDefault<z.ZodEnum<{
1564
- visible: "visible";
1565
- hidden: "hidden";
1566
- }>>;
1567
- profile: z.ZodOptional<z.ZodObject<{
1568
- visible: z.ZodBoolean;
1569
- }, z.core.$strict>>;
1570
- budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1571
- id: z.ZodString;
1572
- scope: z.ZodEnum<{
1573
- member: "member";
1574
- project: "project";
1575
- }>;
1576
- period: z.ZodEnum<{
1577
- day: "day";
1578
- lifetime: "lifetime";
1579
- week: "week";
1580
- }>;
1581
- limit: z.ZodNumber;
1582
- cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1583
- balance: z.ZodString;
1584
- }, z.core.$strict>]>;
1585
- }, z.core.$strict>>>;
1586
- }, z.core.$strict>;
1587
- }, z.core.$strip>;
1588
- declare const quizAnswersSchema: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
1589
- [k: string]: string;
1590
- }, Record<string, string>>>;
1591
- declare const quizEvidenceSchema: z.ZodObject<{
1592
- kind: z.ZodLiteral<"quiz">;
1593
- release: z.ZodOptional<z.ZodString>;
1594
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
1595
- [k: string]: string;
1596
- }, Record<string, string>>>;
1597
- }, z.core.$strict>;
1598
- type QuizEvidence = z.infer<typeof quizEvidenceSchema>;
1599
- declare const submissionEvidenceSchema: z.ZodUnion<readonly [z.ZodObject<{
1600
- kind: z.ZodLiteral<"quiz">;
1601
- release: z.ZodOptional<z.ZodString>;
1602
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
1603
- [k: string]: string;
1604
- }, Record<string, string>>>;
1605
- }, z.core.$strict>, z.ZodObject<{
1606
- kind: z.ZodLiteral<"text">;
1607
- value: z.ZodString;
1608
- }, z.core.$strict>, z.ZodObject<{
1609
- kind: z.ZodLiteral<"url">;
1610
- value: z.ZodString;
1611
- }, z.core.$strict>]>;
1612
- type SubmissionEvidence = z.infer<typeof submissionEvidenceSchema>;
1613
- declare const submitSchema: z.ZodObject<{
1614
- actionId: z.ZodString;
1615
- quest: z.ZodString;
1616
- member: z.ZodString;
1617
- evidence: z.ZodOptional<z.ZodString>;
1618
- input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1619
- kind: z.ZodLiteral<"quiz">;
1620
- release: z.ZodOptional<z.ZodString>;
1621
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
1622
- [k: string]: string;
1623
- }, Record<string, string>>>;
1624
- }, z.core.$strict>, z.ZodObject<{
1625
- kind: z.ZodLiteral<"text">;
1626
- value: z.ZodString;
1627
- }, z.core.$strict>, z.ZodObject<{
1628
- kind: z.ZodLiteral<"url">;
1629
- value: z.ZodString;
1630
- }, z.core.$strict>]>>;
1631
- release: z.ZodOptional<z.ZodString>;
1632
- faultAfterReview: z.ZodOptional<z.ZodBoolean>;
1633
- }, z.core.$strict>;
1634
- type SubmitInput = z.infer<typeof submitSchema>;
1635
- declare const attemptSchema: z.ZodObject<{
1636
- id: z.ZodString;
1637
- release: z.ZodString;
1638
- quest: z.ZodString;
1639
- member: z.ZodString;
1640
- evidence: z.ZodNullable<z.ZodString>;
1641
- input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1642
- kind: z.ZodLiteral<"quiz">;
1643
- release: z.ZodOptional<z.ZodString>;
1644
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
1645
- [k: string]: string;
1646
- }, Record<string, string>>>;
1647
- }, z.core.$strict>, z.ZodObject<{
1648
- kind: z.ZodLiteral<"text">;
1649
- value: z.ZodString;
1650
- }, z.core.$strict>, z.ZodObject<{
1651
- kind: z.ZodLiteral<"url">;
1652
- value: z.ZodString;
1653
- }, z.core.$strict>]>>;
1654
- status: z.ZodEnum<{
1655
- "needs-review": "needs-review";
1656
- failed: "failed";
1657
- queued: "queued";
1658
- evaluating: "evaluating";
1659
- accepted: "accepted";
1660
- progressed: "progressed";
1661
- rejected: "rejected";
1662
- }>;
1663
- reason: z.ZodNullable<z.ZodString>;
1664
- retries: z.ZodNumber;
1665
- generation: z.ZodNumber;
1666
- completion: z.ZodNullable<z.ZodString>;
1667
- reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1668
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
1669
- balance: z.ZodString;
1670
- amount: z.ZodNumber;
1671
- }, z.core.$strict>, z.ZodObject<{
1672
- kind: z.ZodLiteral<"tier">;
1673
- reward: z.ZodObject<{
1674
- id: z.ZodString;
1675
- title: z.ZodString;
1676
- tiers: z.ZodArray<z.ZodObject<{
1677
- id: z.ZodString;
1678
- title: z.ZodString;
1679
- }, z.core.$strict>>;
1680
- inventory: z.ZodObject<{
1681
- kind: z.ZodLiteral<"untracked">;
1682
- }, z.core.$strict>;
1683
- fulfillment: z.ZodObject<{
1684
- kind: z.ZodLiteral<"staff-handover">;
1685
- }, z.core.$strict>;
1686
- }, z.core.$strict>;
1687
- tier: z.ZodString;
1688
- }, z.core.$strict>, z.ZodObject<{
1689
- kind: z.ZodLiteral<"integration">;
1690
- provider: z.ZodLiteral<"discord">;
1691
- action: z.ZodLiteral<"grant-role">;
1692
- roleId: z.ZodString;
1693
- }, z.core.$strict>]>>>>;
1694
- requestedReview: z.ZodDefault<z.ZodBoolean>;
1695
- createdAt: z.ZodNumber;
1696
- }, z.core.$strip>;
1697
- type Attempt = z.infer<typeof attemptSchema>;
1698
- declare const eventSchema: z.ZodObject<{
1699
- id: z.ZodNumber;
1700
- attempt: z.ZodNullable<z.ZodString>;
1701
- kind: z.ZodString;
1702
- detail: z.ZodString;
1703
- actor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1704
- at: z.ZodNumber;
1705
- }, z.core.$strip>;
1706
- declare const pickupSelectionSchema: z.ZodObject<{
1707
- item: z.ZodString;
1708
- revision: z.ZodNumber;
1709
- }, z.core.$strict>;
1710
- declare const pickupAllocationSchema: z.ZodObject<{
1711
- item: z.ZodString;
1712
- label: z.ZodString;
1713
- }, z.core.$strict>;
1714
- declare const pickupPolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1715
- kind: z.ZodLiteral<"untracked">;
1716
- }, z.core.$strict>, z.ZodObject<{
1717
- kind: z.ZodLiteral<"at-pickup">;
1718
- tiers: z.ZodArray<z.ZodObject<{
1719
- tier: z.ZodString;
1720
- variants: z.ZodArray<z.ZodObject<{
1721
- item: z.ZodString;
1722
- label: z.ZodString;
1723
- }, z.core.$strict>>;
1724
- }, z.core.$strict>>;
1725
- }, z.core.$strict>], "kind">;
1726
- declare const pickupCatalogSchema: z.ZodObject<{
1727
- reward: z.ZodObject<{
1728
- id: z.ZodString;
1729
- title: z.ZodString;
1730
- tiers: z.ZodArray<z.ZodObject<{
1731
- id: z.ZodString;
1732
- title: z.ZodString;
1733
- }, z.core.$strict>>;
1734
- inventory: z.ZodObject<{
1735
- kind: z.ZodLiteral<"untracked">;
1736
- }, z.core.$strict>;
1737
- fulfillment: z.ZodObject<{
1738
- kind: z.ZodLiteral<"staff-handover">;
1739
- }, z.core.$strict>;
1740
- }, z.core.$strict>;
1741
- revision: z.ZodNumber;
1742
- policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
1743
- kind: z.ZodLiteral<"untracked">;
1744
- }, z.core.$strict>, z.ZodObject<{
1745
- kind: z.ZodLiteral<"at-pickup">;
1746
- tiers: z.ZodArray<z.ZodObject<{
1747
- tier: z.ZodString;
1748
- variants: z.ZodArray<z.ZodObject<{
1749
- item: z.ZodString;
1750
- label: z.ZodString;
1751
- }, z.core.$strict>>;
1752
- }, z.core.$strict>>;
1753
- }, z.core.$strict>], "kind">;
1754
- }, z.core.$strip>;
1755
- declare const pickupAvailabilitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1756
- kind: z.ZodLiteral<"untracked">;
1757
- }, z.core.$strict>, z.ZodObject<{
1758
- kind: z.ZodLiteral<"at-pickup">;
1759
- revision: z.ZodNumber;
1760
- variants: z.ZodArray<z.ZodObject<{
1761
- item: z.ZodString;
1762
- label: z.ZodString;
1763
- available: z.ZodNumber;
1764
- }, z.core.$strict>>;
1765
- }, z.core.$strict>], "kind">;
1766
- type PickupAvailability = z.infer<typeof pickupAvailabilitySchema>;
1767
- declare const configurePickupSchema: z.ZodObject<{
1768
- reward: z.ZodString;
1769
- revision: z.ZodNumber;
1770
- actionId: z.ZodString;
1771
- policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
1772
- kind: z.ZodLiteral<"untracked">;
1773
- }, z.core.$strict>, z.ZodObject<{
1774
- kind: z.ZodLiteral<"at-pickup">;
1775
- tiers: z.ZodArray<z.ZodObject<{
1776
- tier: z.ZodString;
1777
- variants: z.ZodArray<z.ZodObject<{
1778
- label: z.ZodString;
1779
- item: z.ZodOptional<z.ZodString>;
1780
- }, z.core.$strict>>;
1781
- }, z.core.$strict>>;
1782
- }, z.core.$strict>], "kind">;
1783
- }, z.core.$strict>;
1784
- declare const entitlementSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1785
- status: z.ZodLiteral<"available">;
1786
- id: z.ZodString;
1787
- member: z.ZodString;
1788
- reward: z.ZodObject<{
1789
- id: z.ZodString;
1790
- title: z.ZodString;
1791
- tiers: z.ZodArray<z.ZodObject<{
1792
- id: z.ZodString;
1793
- title: z.ZodString;
1794
- }, z.core.$strict>>;
1795
- inventory: z.ZodObject<{
1796
- kind: z.ZodLiteral<"untracked">;
1797
- }, z.core.$strict>;
1798
- fulfillment: z.ZodObject<{
1799
- kind: z.ZodLiteral<"staff-handover">;
1800
- }, z.core.$strict>;
1801
- }, z.core.$strict>;
1802
- earnedTier: z.ZodString;
1803
- tier: z.ZodString;
1804
- revision: z.ZodNumber;
1805
- }, z.core.$strict>, z.ZodObject<{
1806
- status: z.ZodLiteral<"handing-over">;
1807
- handover: z.ZodString;
1808
- startedAt: z.ZodNumber;
1809
- allocation: z.ZodOptional<z.ZodObject<{
1810
- item: z.ZodString;
1811
- label: z.ZodString;
1812
- }, z.core.$strict>>;
1813
- id: z.ZodString;
1814
- member: z.ZodString;
1815
- reward: z.ZodObject<{
1816
- id: z.ZodString;
1817
- title: z.ZodString;
1818
- tiers: z.ZodArray<z.ZodObject<{
1819
- id: z.ZodString;
1820
- title: z.ZodString;
1821
- }, z.core.$strict>>;
1822
- inventory: z.ZodObject<{
1823
- kind: z.ZodLiteral<"untracked">;
1824
- }, z.core.$strict>;
1825
- fulfillment: z.ZodObject<{
1826
- kind: z.ZodLiteral<"staff-handover">;
1827
- }, z.core.$strict>;
1828
- }, z.core.$strict>;
1829
- earnedTier: z.ZodString;
1830
- tier: z.ZodString;
1831
- revision: z.ZodNumber;
1832
- }, z.core.$strict>, z.ZodObject<{
1833
- status: z.ZodLiteral<"collected">;
1834
- handover: z.ZodString;
1835
- startedAt: z.ZodNumber;
1836
- allocation: z.ZodOptional<z.ZodObject<{
1837
- item: z.ZodString;
1838
- label: z.ZodString;
1839
- }, z.core.$strict>>;
1840
- collectedAt: z.ZodNumber;
1841
- id: z.ZodString;
1842
- member: z.ZodString;
1843
- reward: z.ZodObject<{
1844
- id: z.ZodString;
1845
- title: z.ZodString;
1846
- tiers: z.ZodArray<z.ZodObject<{
1847
- id: z.ZodString;
1848
- title: z.ZodString;
1849
- }, z.core.$strict>>;
1850
- inventory: z.ZodObject<{
1851
- kind: z.ZodLiteral<"untracked">;
1852
- }, z.core.$strict>;
1853
- fulfillment: z.ZodObject<{
1854
- kind: z.ZodLiteral<"staff-handover">;
1855
- }, z.core.$strict>;
1856
- }, z.core.$strict>;
1857
- earnedTier: z.ZodString;
1858
- tier: z.ZodString;
1859
- revision: z.ZodNumber;
1860
- }, z.core.$strict>], "status">;
1861
- type Entitlement = z.infer<typeof entitlementSchema>;
1862
- declare const beginHandoverSchema: z.ZodObject<{
1863
- actionId: z.ZodString;
1864
- revision: z.ZodNumber;
1865
- selection: z.ZodOptional<z.ZodObject<{
1866
- item: z.ZodString;
1867
- revision: z.ZodNumber;
1868
- }, z.core.$strict>>;
1869
- }, z.core.$strict>;
1870
- declare const confirmHandoverSchema: z.ZodObject<{
1871
- actionId: z.ZodString;
1872
- handover: z.ZodString;
1873
- }, z.core.$strict>;
1874
- declare const completionRecordSchema: z.ZodObject<{
1875
- key: z.ZodDefault<z.ZodString>;
1876
- id: z.ZodString;
1877
- quest: z.ZodString;
1878
- member: z.ZodString;
1879
- }, z.core.$strip>;
1880
- declare const questAvailabilitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1881
- kind: z.ZodLiteral<"available">;
1882
- input: z.ZodEnum<{
1883
- text: "text";
1884
- url: "url";
1885
- none: "none";
1886
- quiz: "quiz";
1887
- photo: "photo";
1888
- }>;
1889
- }, z.core.$strict>, z.ZodObject<{
1890
- kind: z.ZodLiteral<"completed">;
1891
- }, z.core.$strict>, z.ZodObject<{
1892
- kind: z.ZodLiteral<"locked">;
1893
- missing: z.ZodArray<z.ZodObject<{
1894
- quest: z.ZodString;
1895
- title: z.ZodString;
1896
- }, z.core.$strip>>;
1897
- }, z.core.$strict>, z.ZodObject<{
1898
- kind: z.ZodLiteral<"staff-required">;
1899
- }, z.core.$strict>, z.ZodObject<{
1900
- kind: z.ZodLiteral<"automatic">;
1901
- observation: z.ZodOptional<z.ZodObject<{
1902
- source: z.ZodString;
1903
- type: z.ZodString;
1904
- }, z.core.$strict>>;
1905
- }, z.core.$strict>, z.ZodObject<{
1906
- kind: z.ZodLiteral<"checking">;
1907
- attempt: z.ZodString;
1908
- }, z.core.$strict>, z.ZodObject<{
1909
- kind: z.ZodLiteral<"needs-review">;
1910
- attempt: z.ZodString;
1911
- }, z.core.$strict>, z.ZodObject<{
1912
- kind: z.ZodLiteral<"retryable">;
1913
- attempt: z.ZodString;
1914
- }, z.core.$strict>], "kind">;
1915
- type QuestAvailability = z.infer<typeof questAvailabilitySchema>;
1916
- declare const memberProgressSchema: z.ZodObject<{
1917
- member: z.ZodString;
1918
- quests: z.ZodArray<z.ZodObject<{
1919
- quest: z.ZodString;
1920
- key: z.ZodOptional<z.ZodString>;
1921
- release: z.ZodOptional<z.ZodString>;
1922
- title: z.ZodString;
1923
- presentation: z.ZodDefault<z.ZodObject<{
1924
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
1925
- id: z.ZodString;
1926
- prompt: z.ZodString;
1927
- choices: z.ZodArray<z.ZodObject<{
1928
- id: z.ZodString;
1929
- label: z.ZodString;
1930
- }, z.core.$strict>>;
1931
- }, z.core.$strict>>>;
1932
- instructions: z.ZodOptional<z.ZodString>;
1933
- video: z.ZodOptional<z.ZodObject<{
1934
- url: z.ZodString;
1935
- poster: z.ZodOptional<z.ZodString>;
1936
- captions: z.ZodOptional<z.ZodObject<{
1937
- url: z.ZodString;
1938
- language: z.ZodString;
1939
- label: z.ZodString;
1940
- }, z.core.$strict>>;
1941
- }, z.core.$strict>>;
1942
- }, z.core.$strict>>;
1943
- connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1944
- google: "google";
1945
- apple: "apple";
1946
- x: "x";
1947
- discord: "discord";
1948
- }>>>;
1949
- trigger: z.ZodUnion<readonly [z.ZodObject<{
1950
- kind: z.ZodLiteral<"manual">;
1951
- input: z.ZodLiteral<"text">;
1952
- constraints: z.ZodObject<{
1953
- required: z.ZodDefault<z.ZodBoolean>;
1954
- minLength: z.ZodDefault<z.ZodNumber>;
1955
- maxLength: z.ZodDefault<z.ZodNumber>;
1956
- }, z.core.$strict>;
1957
- actor: z.ZodOptional<z.ZodEnum<{
1958
- member: "member";
1959
- staff: "staff";
1960
- }>>;
1961
- }, z.core.$strict>, z.ZodObject<{
1962
- kind: z.ZodLiteral<"manual">;
1963
- input: z.ZodLiteral<"url">;
1964
- constraints: z.ZodObject<{
1965
- required: z.ZodDefault<z.ZodBoolean>;
1966
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1967
- }, z.core.$strict>;
1968
- actor: z.ZodOptional<z.ZodEnum<{
1969
- member: "member";
1970
- staff: "staff";
1971
- }>>;
1972
- }, z.core.$strict>, z.ZodObject<{
1973
- kind: z.ZodLiteral<"manual">;
1974
- input: z.ZodEnum<{
1975
- none: "none";
1976
- quiz: "quiz";
1977
- photo: "photo";
1978
- }>;
1979
- actor: z.ZodOptional<z.ZodEnum<{
1980
- member: "member";
1981
- staff: "staff";
1982
- }>>;
1983
- }, z.core.$strict>, z.ZodObject<{
1984
- kind: z.ZodLiteral<"automatic">;
1985
- observation: z.ZodOptional<z.ZodObject<{
1986
- source: z.ZodString;
1987
- type: z.ZodString;
1988
- }, z.core.$strict>>;
1989
- content: z.ZodOptional<z.ZodObject<{
1990
- tracker: z.ZodString;
1991
- window: z.ZodObject<{
1992
- start: z.ZodNumber;
1993
- end: z.ZodOptional<z.ZodNumber>;
1994
- }, z.core.$strict>;
1995
- enrollment: z.ZodDefault<z.ZodEnum<{
1996
- none: "none";
1997
- required: "required";
1998
- }>>;
1999
- posts: z.ZodDefault<z.ZodEnum<{
2000
- "after-enrollment": "after-enrollment";
2001
- "since-start": "since-start";
2002
- }>>;
2003
- historical: z.ZodDefault<z.ZodEnum<{
2004
- automatic: "automatic";
2005
- claim: "claim";
2006
- staff: "staff";
2007
- }>>;
2008
- }, z.core.$strict>>;
2009
- tracker: z.ZodOptional<z.ZodObject<{
2010
- tracker: z.ZodString;
2011
- source: z.ZodEnum<{
2012
- custom: "custom";
2013
- "x-search": "x-search";
2014
- }>;
2015
- on: z.ZodOptional<z.ZodEnum<{
2016
- "new-record": "new-record";
2017
- "new-observation": "new-observation";
2018
- "data-changed": "data-changed";
2019
- }>>;
2020
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2021
- path: z.ZodString;
2022
- equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2023
- }, z.core.$strict>, z.ZodObject<{
2024
- path: z.ZodString;
2025
- gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2026
- setting: z.ZodString;
2027
- }, z.core.$strict>]>>;
2028
- gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2029
- setting: z.ZodString;
2030
- }, z.core.$strict>]>>;
2031
- lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2032
- setting: z.ZodString;
2033
- }, z.core.$strict>]>>;
2034
- lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2035
- setting: z.ZodString;
2036
- }, z.core.$strict>]>>;
2037
- }, z.core.$strict>]>>;
2038
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
2039
- }, z.core.$strict>>;
2040
- }, z.core.$strict>]>;
2041
- availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2042
- kind: z.ZodLiteral<"available">;
2043
- input: z.ZodEnum<{
2044
- text: "text";
2045
- url: "url";
2046
- none: "none";
2047
- quiz: "quiz";
2048
- photo: "photo";
2049
- }>;
2050
- }, z.core.$strict>, z.ZodObject<{
2051
- kind: z.ZodLiteral<"completed">;
2052
- }, z.core.$strict>, z.ZodObject<{
2053
- kind: z.ZodLiteral<"locked">;
2054
- missing: z.ZodArray<z.ZodObject<{
2055
- quest: z.ZodString;
2056
- title: z.ZodString;
2057
- }, z.core.$strip>>;
2058
- }, z.core.$strict>, z.ZodObject<{
2059
- kind: z.ZodLiteral<"staff-required">;
2060
- }, z.core.$strict>, z.ZodObject<{
2061
- kind: z.ZodLiteral<"automatic">;
2062
- observation: z.ZodOptional<z.ZodObject<{
2063
- source: z.ZodString;
2064
- type: z.ZodString;
2065
- }, z.core.$strict>>;
2066
- }, z.core.$strict>, z.ZodObject<{
2067
- kind: z.ZodLiteral<"checking">;
2068
- attempt: z.ZodString;
2069
- }, z.core.$strict>, z.ZodObject<{
2070
- kind: z.ZodLiteral<"needs-review">;
2071
- attempt: z.ZodString;
2072
- }, z.core.$strict>, z.ZodObject<{
2073
- kind: z.ZodLiteral<"retryable">;
2074
- attempt: z.ZodString;
2075
- }, z.core.$strict>], "kind">;
2076
- completed: z.ZodBoolean;
2077
- completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2078
- kind: z.ZodLiteral<"streak">;
2079
- days: z.ZodNumber;
2080
- timeZone: z.ZodString;
2081
- }, z.core.$strict>, z.ZodObject<{
2082
- kind: z.ZodLiteral<"once">;
2083
- }, z.core.$strict>, z.ZodObject<{
2084
- kind: z.ZodLiteral<"keyed">;
2085
- }, z.core.$strict>], "kind">>;
2086
- streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2087
- goal: z.ZodNumber;
2088
- current: z.ZodNumber;
2089
- best: z.ZodNumber;
2090
- today: z.ZodString;
2091
- todayQualified: z.ZodBoolean;
2092
- timeZone: z.ZodString;
2093
- nextBoundary: z.ZodNumber;
2094
- pendingTimeZone: z.ZodNullable<z.ZodObject<{
2095
- timeZone: z.ZodString;
2096
- effectiveAt: z.ZodNumber;
2097
- }, z.core.$strip>>;
2098
- days: z.ZodArray<z.ZodObject<{
2099
- day: z.ZodNumber;
2100
- date: z.ZodString;
2101
- timeZone: z.ZodString;
2102
- occurredAt: z.ZodNumber;
2103
- }, z.core.$strip>>;
2104
- milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
2105
- status: z.ZodLiteral<"pending">;
2106
- }, z.core.$strip>, z.ZodObject<{
2107
- status: z.ZodLiteral<"awarded">;
2108
- completion: z.ZodString;
2109
- achievedAt: z.ZodNumber;
2110
- }, z.core.$strip>, z.ZodObject<{
2111
- status: z.ZodLiteral<"budget-exhausted">;
2112
- budget: z.ZodString;
2113
- achievedAt: z.ZodNumber;
2114
- }, z.core.$strip>], "status">;
2115
- }, z.core.$strip>>>;
2116
- completionCount: z.ZodDefault<z.ZodNumber>;
2117
- visibility: z.ZodDefault<z.ZodEnum<{
2118
- visible: "visible";
2119
- hidden: "hidden";
2120
- }>>;
2121
- missing: z.ZodArray<z.ZodObject<{
2122
- quest: z.ZodString;
2123
- title: z.ZodString;
2124
- }, z.core.$strip>>;
2125
- attempt: z.ZodNullable<z.ZodObject<{
2126
- id: z.ZodString;
2127
- release: z.ZodString;
2128
- quest: z.ZodString;
2129
- member: z.ZodString;
2130
- evidence: z.ZodNullable<z.ZodString>;
2131
- input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2132
- kind: z.ZodLiteral<"quiz">;
2133
- release: z.ZodOptional<z.ZodString>;
2134
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
2135
- [k: string]: string;
2136
- }, Record<string, string>>>;
2137
- }, z.core.$strict>, z.ZodObject<{
2138
- kind: z.ZodLiteral<"text">;
2139
- value: z.ZodString;
2140
- }, z.core.$strict>, z.ZodObject<{
2141
- kind: z.ZodLiteral<"url">;
2142
- value: z.ZodString;
2143
- }, z.core.$strict>]>>;
2144
- status: z.ZodEnum<{
2145
- "needs-review": "needs-review";
2146
- failed: "failed";
2147
- queued: "queued";
2148
- evaluating: "evaluating";
2149
- accepted: "accepted";
2150
- progressed: "progressed";
2151
- rejected: "rejected";
2152
- }>;
2153
- reason: z.ZodNullable<z.ZodString>;
2154
- retries: z.ZodNumber;
2155
- generation: z.ZodNumber;
2156
- completion: z.ZodNullable<z.ZodString>;
2157
- reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2158
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
2159
- balance: z.ZodString;
2160
- amount: z.ZodNumber;
2161
- }, z.core.$strict>, z.ZodObject<{
2162
- kind: z.ZodLiteral<"tier">;
2163
- reward: z.ZodObject<{
2164
- id: z.ZodString;
2165
- title: z.ZodString;
2166
- tiers: z.ZodArray<z.ZodObject<{
2167
- id: z.ZodString;
2168
- title: z.ZodString;
2169
- }, z.core.$strict>>;
2170
- inventory: z.ZodObject<{
2171
- kind: z.ZodLiteral<"untracked">;
2172
- }, z.core.$strict>;
2173
- fulfillment: z.ZodObject<{
2174
- kind: z.ZodLiteral<"staff-handover">;
2175
- }, z.core.$strict>;
2176
- }, z.core.$strict>;
2177
- tier: z.ZodString;
2178
- }, z.core.$strict>, z.ZodObject<{
2179
- kind: z.ZodLiteral<"integration">;
2180
- provider: z.ZodLiteral<"discord">;
2181
- action: z.ZodLiteral<"grant-role">;
2182
- roleId: z.ZodString;
2183
- }, z.core.$strict>]>>>>;
2184
- requestedReview: z.ZodDefault<z.ZodBoolean>;
2185
- createdAt: z.ZodNumber;
2186
- }, z.core.$strip>>;
2187
- }, z.core.$strip>>;
2188
- entitlements: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2189
- status: z.ZodLiteral<"available">;
2190
- id: z.ZodString;
2191
- member: z.ZodString;
2192
- reward: z.ZodObject<{
2193
- id: z.ZodString;
2194
- title: z.ZodString;
2195
- tiers: z.ZodArray<z.ZodObject<{
2196
- id: z.ZodString;
2197
- title: z.ZodString;
2198
- }, z.core.$strict>>;
2199
- inventory: z.ZodObject<{
2200
- kind: z.ZodLiteral<"untracked">;
2201
- }, z.core.$strict>;
2202
- fulfillment: z.ZodObject<{
2203
- kind: z.ZodLiteral<"staff-handover">;
2204
- }, z.core.$strict>;
2205
- }, z.core.$strict>;
2206
- earnedTier: z.ZodString;
2207
- tier: z.ZodString;
2208
- revision: z.ZodNumber;
2209
- }, z.core.$strict>, z.ZodObject<{
2210
- status: z.ZodLiteral<"handing-over">;
2211
- handover: z.ZodString;
2212
- startedAt: z.ZodNumber;
2213
- allocation: z.ZodOptional<z.ZodObject<{
2214
- item: z.ZodString;
2215
- label: z.ZodString;
2216
- }, z.core.$strict>>;
2217
- id: z.ZodString;
2218
- member: z.ZodString;
2219
- reward: z.ZodObject<{
2220
- id: z.ZodString;
2221
- title: z.ZodString;
2222
- tiers: z.ZodArray<z.ZodObject<{
2223
- id: z.ZodString;
2224
- title: z.ZodString;
2225
- }, z.core.$strict>>;
2226
- inventory: z.ZodObject<{
2227
- kind: z.ZodLiteral<"untracked">;
2228
- }, z.core.$strict>;
2229
- fulfillment: z.ZodObject<{
2230
- kind: z.ZodLiteral<"staff-handover">;
2231
- }, z.core.$strict>;
2232
- }, z.core.$strict>;
2233
- earnedTier: z.ZodString;
2234
- tier: z.ZodString;
2235
- revision: z.ZodNumber;
2236
- }, z.core.$strict>, z.ZodObject<{
2237
- status: z.ZodLiteral<"collected">;
2238
- handover: z.ZodString;
2239
- startedAt: z.ZodNumber;
2240
- allocation: z.ZodOptional<z.ZodObject<{
2241
- item: z.ZodString;
2242
- label: z.ZodString;
2243
- }, z.core.$strict>>;
2244
- collectedAt: z.ZodNumber;
2245
- id: z.ZodString;
2246
- member: z.ZodString;
2247
- reward: z.ZodObject<{
2248
- id: z.ZodString;
2249
- title: z.ZodString;
2250
- tiers: z.ZodArray<z.ZodObject<{
2251
- id: z.ZodString;
2252
- title: z.ZodString;
2253
- }, z.core.$strict>>;
2254
- inventory: z.ZodObject<{
2255
- kind: z.ZodLiteral<"untracked">;
2256
- }, z.core.$strict>;
2257
- fulfillment: z.ZodObject<{
2258
- kind: z.ZodLiteral<"staff-handover">;
2259
- }, z.core.$strict>;
2260
- }, z.core.$strict>;
2261
- earnedTier: z.ZodString;
2262
- tier: z.ZodString;
2263
- revision: z.ZodNumber;
2264
- }, z.core.$strict>], "status">>;
2265
- }, z.core.$strip>;
2266
- declare const snapshotSchema: z.ZodObject<{
2267
- releases: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2268
- quest: z.ZodString;
2269
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
2270
- title: z.ZodString;
2271
- presentation: z.ZodDefault<z.ZodObject<{
2272
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
2273
- id: z.ZodString;
2274
- prompt: z.ZodString;
2275
- choices: z.ZodArray<z.ZodObject<{
2276
- id: z.ZodString;
2277
- label: z.ZodString;
2278
- }, z.core.$strict>>;
2279
- }, z.core.$strict>>>;
2280
- instructions: z.ZodOptional<z.ZodString>;
2281
- video: z.ZodOptional<z.ZodObject<{
2282
- url: z.ZodString;
2283
- poster: z.ZodOptional<z.ZodString>;
2284
- captions: z.ZodOptional<z.ZodObject<{
2285
- url: z.ZodString;
2286
- language: z.ZodString;
2287
- label: z.ZodString;
2288
- }, z.core.$strict>>;
2289
- }, z.core.$strict>>;
2290
- }, z.core.$strict>>;
2291
- integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2292
- discord: "discord";
2293
- }>>>;
2294
- fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2295
- kind: z.ZodLiteral<"point-ledger">;
2296
- default: z.ZodString;
2297
- label: z.ZodString;
2298
- description: z.ZodOptional<z.ZodString>;
2299
- }, z.core.$strict>, z.ZodObject<{
2300
- kind: z.ZodLiteral<"datetime">;
2301
- default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
2302
- label: z.ZodString;
2303
- description: z.ZodOptional<z.ZodString>;
2304
- }, z.core.$strict>, z.ZodObject<{
2305
- kind: z.ZodLiteral<"resource">;
2306
- default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
2307
- source: z.ZodUnion<readonly [z.ZodObject<{
2308
- provider: z.ZodLiteral<"domino">;
2309
- resource: z.ZodLiteral<"point-ledger">;
2310
- }, z.core.$strict>, z.ZodObject<{
2311
- provider: z.ZodLiteral<"discord">;
2312
- resource: z.ZodLiteral<"channel">;
2313
- types: z.ZodArray<z.ZodEnum<{
2314
- text: "text";
2315
- announcement: "announcement";
2316
- }>>;
2317
- }, z.core.$strict>, z.ZodObject<{
2318
- provider: z.ZodLiteral<"discord">;
2319
- resource: z.ZodLiteral<"role">;
2320
- assignable: z.ZodDefault<z.ZodBoolean>;
2321
- }, z.core.$strict>]>;
2322
- label: z.ZodString;
2323
- description: z.ZodOptional<z.ZodString>;
2324
- }, z.core.$strict>, z.ZodObject<{
2325
- kind: z.ZodLiteral<"quiz">;
2326
- default: z.ZodArray<z.ZodObject<{
2327
- id: z.ZodString;
2328
- prompt: z.ZodString;
2329
- choices: z.ZodArray<z.ZodObject<{
2330
- id: z.ZodString;
2331
- label: z.ZodString;
2332
- }, z.core.$strict>>;
2333
- correct: z.ZodString;
2334
- }, z.core.$strict>>;
2335
- label: z.ZodString;
2336
- description: z.ZodOptional<z.ZodString>;
2337
- }, z.core.$strict>, z.ZodObject<{
2338
- kind: z.ZodLiteral<"text">;
2339
- default: z.ZodString;
2340
- minLength: z.ZodNumber;
2341
- maxLength: z.ZodNumber;
2342
- multiline: z.ZodBoolean;
2343
- label: z.ZodString;
2344
- description: z.ZodOptional<z.ZodString>;
2345
- }, z.core.$strict>, z.ZodObject<{
2346
- kind: z.ZodLiteral<"integer">;
2347
- default: z.ZodNumber;
2348
- min: z.ZodNumber;
2349
- max: z.ZodNumber;
2350
- label: z.ZodString;
2351
- description: z.ZodOptional<z.ZodString>;
2352
- }, z.core.$strict>, z.ZodObject<{
2353
- kind: z.ZodLiteral<"boolean">;
2354
- default: z.ZodBoolean;
2355
- label: z.ZodString;
2356
- description: z.ZodOptional<z.ZodString>;
2357
- }, z.core.$strict>, z.ZodObject<{
2358
- kind: z.ZodLiteral<"choice">;
2359
- default: z.ZodString;
2360
- options: z.ZodArray<z.ZodString>;
2361
- label: z.ZodString;
2362
- description: z.ZodOptional<z.ZodString>;
2363
- }, z.core.$strict>], "kind">>;
2364
- values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
2365
- id: z.ZodString;
2366
- prompt: z.ZodString;
2367
- choices: z.ZodArray<z.ZodObject<{
2368
- id: z.ZodString;
2369
- label: z.ZodString;
2370
- }, z.core.$strict>>;
2371
- correct: z.ZodString;
2372
- }, z.core.$strict>>]>>;
2373
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2374
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
2375
- balance: z.ZodString;
2376
- amount: z.ZodNumber;
2377
- }, z.core.$strict>, z.ZodObject<{
2378
- kind: z.ZodLiteral<"tier">;
2379
- reward: z.ZodObject<{
2380
- id: z.ZodString;
2381
- title: z.ZodString;
2382
- tiers: z.ZodArray<z.ZodObject<{
2383
- id: z.ZodString;
2384
- title: z.ZodString;
2385
- }, z.core.$strict>>;
2386
- inventory: z.ZodObject<{
2387
- kind: z.ZodLiteral<"untracked">;
2388
- }, z.core.$strict>;
2389
- fulfillment: z.ZodObject<{
2390
- kind: z.ZodLiteral<"staff-handover">;
2391
- }, z.core.$strict>;
2392
- }, z.core.$strict>;
2393
- tier: z.ZodString;
2394
- }, z.core.$strict>, z.ZodObject<{
2395
- kind: z.ZodLiteral<"integration">;
2396
- provider: z.ZodLiteral<"discord">;
2397
- action: z.ZodLiteral<"grant-role">;
2398
- roleId: z.ZodString;
2399
- }, z.core.$strict>]>>;
2400
- humanReview: z.ZodBoolean;
2401
- trigger: z.ZodUnion<readonly [z.ZodObject<{
2402
- kind: z.ZodLiteral<"manual">;
2403
- input: z.ZodLiteral<"text">;
2404
- constraints: z.ZodObject<{
2405
- required: z.ZodDefault<z.ZodBoolean>;
2406
- minLength: z.ZodDefault<z.ZodNumber>;
2407
- maxLength: z.ZodDefault<z.ZodNumber>;
2408
- }, z.core.$strict>;
2409
- actor: z.ZodOptional<z.ZodEnum<{
2410
- member: "member";
2411
- staff: "staff";
2412
- }>>;
2413
- }, z.core.$strict>, z.ZodObject<{
2414
- kind: z.ZodLiteral<"manual">;
2415
- input: z.ZodLiteral<"url">;
2416
- constraints: z.ZodObject<{
2417
- required: z.ZodDefault<z.ZodBoolean>;
2418
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
2419
- }, z.core.$strict>;
2420
- actor: z.ZodOptional<z.ZodEnum<{
2421
- member: "member";
2422
- staff: "staff";
2423
- }>>;
2424
- }, z.core.$strict>, z.ZodObject<{
2425
- kind: z.ZodLiteral<"manual">;
2426
- input: z.ZodEnum<{
2427
- none: "none";
2428
- quiz: "quiz";
2429
- photo: "photo";
2430
- }>;
2431
- actor: z.ZodOptional<z.ZodEnum<{
2432
- member: "member";
2433
- staff: "staff";
2434
- }>>;
2435
- }, z.core.$strict>, z.ZodObject<{
2436
- kind: z.ZodLiteral<"automatic">;
2437
- observation: z.ZodOptional<z.ZodObject<{
2438
- source: z.ZodString;
2439
- type: z.ZodString;
2440
- }, z.core.$strict>>;
2441
- content: z.ZodOptional<z.ZodObject<{
2442
- tracker: z.ZodString;
2443
- window: z.ZodObject<{
2444
- start: z.ZodNumber;
2445
- end: z.ZodOptional<z.ZodNumber>;
2446
- }, z.core.$strict>;
2447
- enrollment: z.ZodDefault<z.ZodEnum<{
2448
- none: "none";
2449
- required: "required";
2450
- }>>;
2451
- posts: z.ZodDefault<z.ZodEnum<{
2452
- "after-enrollment": "after-enrollment";
2453
- "since-start": "since-start";
2454
- }>>;
2455
- historical: z.ZodDefault<z.ZodEnum<{
2456
- automatic: "automatic";
2457
- claim: "claim";
2458
- staff: "staff";
2459
- }>>;
2460
- }, z.core.$strict>>;
2461
- tracker: z.ZodOptional<z.ZodObject<{
2462
- tracker: z.ZodString;
2463
- source: z.ZodEnum<{
2464
- custom: "custom";
2465
- "x-search": "x-search";
2466
- }>;
2467
- on: z.ZodOptional<z.ZodEnum<{
2468
- "new-record": "new-record";
2469
- "new-observation": "new-observation";
2470
- "data-changed": "data-changed";
2471
- }>>;
2472
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2473
- path: z.ZodString;
2474
- equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2475
- }, z.core.$strict>, z.ZodObject<{
2476
- path: z.ZodString;
2477
- gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2478
- setting: z.ZodString;
2479
- }, z.core.$strict>]>>;
2480
- gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2481
- setting: z.ZodString;
2482
- }, z.core.$strict>]>>;
2483
- lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2484
- setting: z.ZodString;
2485
- }, z.core.$strict>]>>;
2486
- lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2487
- setting: z.ZodString;
2488
- }, z.core.$strict>]>>;
2489
- }, z.core.$strict>]>>;
2490
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
2491
- }, z.core.$strict>>;
2492
- }, z.core.$strict>]>;
2493
- performance: z.ZodOptional<z.ZodObject<{
2494
- metrics: z.ZodArray<z.ZodEnum<{
2495
- likes: "likes";
2496
- replies: "replies";
2497
- reposts: "reposts";
2498
- quotes: "quotes";
2499
- views: "views";
2500
- bookmarks: "bookmarks";
2501
- }>>;
2502
- maxAgeMs: z.ZodDefault<z.ZodNumber>;
2503
- }, z.core.$strict>>;
2504
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
2505
- quest: z.ZodString;
2506
- }, z.core.$strip>>>;
2507
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
2508
- kind: z.ZodLiteral<"streak">;
2509
- days: z.ZodNumber;
2510
- timeZone: z.ZodString;
2511
- }, z.core.$strict>, z.ZodObject<{
2512
- kind: z.ZodLiteral<"once">;
2513
- }, z.core.$strict>, z.ZodObject<{
2514
- kind: z.ZodLiteral<"keyed">;
2515
- }, z.core.$strict>], "kind">;
2516
- visibility: z.ZodDefault<z.ZodEnum<{
2517
- visible: "visible";
2518
- hidden: "hidden";
2519
- }>>;
2520
- profile: z.ZodOptional<z.ZodObject<{
2521
- visible: z.ZodBoolean;
2522
- }, z.core.$strict>>;
2523
- budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2524
- id: z.ZodString;
2525
- scope: z.ZodEnum<{
2526
- member: "member";
2527
- project: "project";
2528
- }>;
2529
- period: z.ZodEnum<{
2530
- day: "day";
2531
- lifetime: "lifetime";
2532
- week: "week";
2533
- }>;
2534
- limit: z.ZodNumber;
2535
- cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2536
- balance: z.ZodString;
2537
- }, z.core.$strict>]>;
2538
- }, z.core.$strict>>>;
2539
- key: z.ZodOptional<z.ZodString>;
2540
- code: z.ZodString;
2541
- provider: z.ZodEnum<{
2542
- "workers-ai": "workers-ai";
2543
- "fixture-pass": "fixture-pass";
2544
- "fixture-fail": "fixture-fail";
2545
- "fixture-unclear": "fixture-unclear";
2546
- "fixture-error": "fixture-error";
2547
- }>;
2548
- id: z.ZodString;
2549
- createdAt: z.ZodNumber;
2550
- legacy: z.ZodDefault<z.ZodBoolean>;
2551
- origin: z.ZodOptional<z.ZodObject<{
2552
- typeVersion: z.ZodString;
2553
- }, z.core.$strict>>;
2554
- lifecycle: z.ZodDefault<z.ZodEnum<{
2555
- paused: "paused";
2556
- active: "active";
2557
- archived: "archived";
2558
- }>>;
2559
- configuration: z.ZodOptional<z.ZodObject<{
2560
- defaults: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
2561
- id: z.ZodString;
2562
- prompt: z.ZodString;
2563
- choices: z.ZodArray<z.ZodObject<{
2564
- id: z.ZodString;
2565
- label: z.ZodString;
2566
- }, z.core.$strict>>;
2567
- correct: z.ZodString;
2568
- }, z.core.$strict>>]>>;
2569
- overrides: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
2570
- id: z.ZodString;
2571
- prompt: z.ZodString;
2572
- choices: z.ZodArray<z.ZodObject<{
2573
- id: z.ZodString;
2574
- label: z.ZodString;
2575
- }, z.core.$strict>>;
2576
- correct: z.ZodString;
2577
- }, z.core.$strict>>]>>;
2578
- preserved: z.ZodArray<z.ZodString>;
2579
- }, z.core.$strict>>;
2580
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
2581
- quest: z.ZodString;
2582
- title: z.ZodString;
2583
- criteria: z.ZodString;
2584
- humanReview: z.ZodBoolean;
2585
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2586
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
2587
- balance: z.ZodString;
2588
- amount: z.ZodNumber;
2589
- }, z.core.$strict>, z.ZodObject<{
2590
- kind: z.ZodLiteral<"tier">;
2591
- reward: z.ZodObject<{
2592
- id: z.ZodString;
2593
- title: z.ZodString;
2594
- tiers: z.ZodArray<z.ZodObject<{
2595
- id: z.ZodString;
2596
- title: z.ZodString;
2597
- }, z.core.$strict>>;
2598
- inventory: z.ZodObject<{
2599
- kind: z.ZodLiteral<"untracked">;
2600
- }, z.core.$strict>;
2601
- fulfillment: z.ZodObject<{
2602
- kind: z.ZodLiteral<"staff-handover">;
2603
- }, z.core.$strict>;
2604
- }, z.core.$strict>;
2605
- tier: z.ZodString;
2606
- }, z.core.$strict>, z.ZodObject<{
2607
- kind: z.ZodLiteral<"integration">;
2608
- provider: z.ZodLiteral<"discord">;
2609
- action: z.ZodLiteral<"grant-role">;
2610
- roleId: z.ZodString;
2611
- }, z.core.$strict>]>>;
2612
- code: z.ZodString;
2613
- provider: z.ZodEnum<{
2614
- "workers-ai": "workers-ai";
2615
- "fixture-pass": "fixture-pass";
2616
- "fixture-fail": "fixture-fail";
2617
- "fixture-unclear": "fixture-unclear";
2618
- "fixture-error": "fixture-error";
2619
- }>;
2620
- id: z.ZodString;
2621
- createdAt: z.ZodNumber;
2622
- }, z.core.$strip>, z.ZodTransform<{
2623
- quest: string;
2624
- runtimeVersion: 1 | 2;
2625
- title: string;
2626
- presentation: {
2627
- quiz?: {
2628
- id: string;
2629
- prompt: string;
2630
- choices: {
2631
- id: string;
2632
- label: string;
2633
- }[];
2634
- }[] | undefined;
2635
- instructions?: string | undefined;
2636
- video?: {
2637
- url: string;
2638
- poster?: string | undefined;
2639
- captions?: {
2640
- url: string;
2641
- language: string;
2642
- label: string;
2643
- } | undefined;
2644
- } | undefined;
2645
- };
2646
- integrations: "discord"[];
2647
- fields: Record<string, {
2648
- kind: "point-ledger";
2649
- default: string;
2650
- label: string;
2651
- description?: string | undefined;
2652
- } | {
2653
- kind: "datetime";
2654
- default: string;
2655
- label: string;
2656
- description?: string | undefined;
2657
- } | {
2658
- kind: "resource";
2659
- default: string;
2660
- source: {
2661
- provider: "discord";
2662
- resource: "channel";
2663
- types: ("text" | "announcement")[];
2664
- } | {
2665
- provider: "domino";
2666
- resource: "point-ledger";
2667
- } | {
2668
- provider: "discord";
2669
- resource: "role";
2670
- assignable: boolean;
2671
- };
2672
- label: string;
2673
- description?: string | undefined;
2674
- } | {
2675
- kind: "quiz";
2676
- default: {
2677
- id: string;
2678
- prompt: string;
2679
- choices: {
2680
- id: string;
2681
- label: string;
2682
- }[];
2683
- correct: string;
2684
- }[];
2685
- label: string;
2686
- description?: string | undefined;
2687
- } | {
2688
- kind: "text";
2689
- default: string;
2690
- minLength: number;
2691
- maxLength: number;
2692
- multiline: boolean;
2693
- label: string;
2694
- description?: string | undefined;
2695
- } | {
2696
- kind: "integer";
2697
- default: number;
2698
- min: number;
2699
- max: number;
2700
- label: string;
2701
- description?: string | undefined;
2702
- } | {
2703
- kind: "boolean";
2704
- default: boolean;
2705
- label: string;
2706
- description?: string | undefined;
2707
- } | {
2708
- kind: "choice";
2709
- default: string;
2710
- options: string[];
2711
- label: string;
2712
- description?: string | undefined;
2713
- }>;
2714
- values: Record<string, string | number | boolean | {
2715
- id: string;
2716
- prompt: string;
2717
- choices: {
2718
- id: string;
2719
- label: string;
2720
- }[];
2721
- correct: string;
2722
- }[]>;
2723
- rewards: ({
2724
- kind: "tier";
2725
- reward: {
2726
- id: string;
2727
- title: string;
2728
- tiers: {
2729
- id: string;
2730
- title: string;
2731
- }[];
2732
- inventory: {
2733
- kind: "untracked";
2734
- };
2735
- fulfillment: {
2736
- kind: "staff-handover";
2737
- };
2738
- };
2739
- tier: string;
2740
- } | {
2741
- kind: "points";
2742
- balance: string;
2743
- amount: number;
2744
- } | {
2745
- kind: "integration";
2746
- provider: "discord";
2747
- action: "grant-role";
2748
- roleId: string;
2749
- })[];
2750
- humanReview: boolean;
2751
- trigger: {
2752
- kind: "automatic";
2753
- observation?: {
2754
- source: string;
2755
- type: string;
2756
- } | undefined;
2757
- content?: {
2758
- tracker: string;
2759
- window: {
2760
- start: number;
2761
- end?: number | undefined;
2762
- };
2763
- enrollment: "none" | "required";
2764
- posts: "after-enrollment" | "since-start";
2765
- historical: "automatic" | "claim" | "staff";
2766
- } | undefined;
2767
- tracker?: {
2768
- tracker: string;
2769
- source: "custom" | "x-search";
2770
- beneficiary: string;
2771
- on?: "new-record" | "new-observation" | "data-changed" | undefined;
2772
- where?: {
2773
- path: string;
2774
- gt?: number | {
2775
- setting: string;
2776
- } | undefined;
2777
- gte?: number | {
2778
- setting: string;
2779
- } | undefined;
2780
- lt?: number | {
2781
- setting: string;
2782
- } | undefined;
2783
- lte?: number | {
2784
- setting: string;
2785
- } | undefined;
2786
- } | {
2787
- path: string;
2788
- equals: string | number | boolean;
2789
- } | undefined;
2790
- } | undefined;
2791
- } | {
2792
- kind: "manual";
2793
- input: "text";
2794
- constraints: {
2795
- required: boolean;
2796
- minLength: number;
2797
- maxLength: number;
2798
- };
2799
- actor?: "member" | "staff" | undefined;
2800
- } | {
2801
- kind: "manual";
2802
- input: "url";
2803
- constraints: {
2804
- required: boolean;
2805
- allowedHosts?: string[] | undefined;
2806
- };
2807
- actor?: "member" | "staff" | undefined;
2808
- } | {
2809
- kind: "manual";
2810
- input: "none" | "quiz" | "photo";
2811
- actor?: "member" | "staff" | undefined;
2812
- };
2813
- requires: {
2814
- quest: string;
2815
- }[];
2816
- completion: {
2817
- kind: "streak";
2818
- days: number;
2819
- timeZone: string;
2820
- } | {
2821
- kind: "once";
2822
- } | {
2823
- kind: "keyed";
2824
- };
2825
- visibility: "visible" | "hidden";
2826
- budgets: {
2827
- id: string;
2828
- scope: "member" | "project";
2829
- period: "day" | "lifetime" | "week";
2830
- limit: number;
2831
- cost: number | {
2832
- balance: string;
2833
- };
2834
- }[];
2835
- code: string;
2836
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
2837
- id: string;
2838
- createdAt: number;
2839
- legacy: boolean;
2840
- lifecycle: "paused" | "active" | "archived";
2841
- performance?: {
2842
- metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
2843
- maxAgeMs: number;
2844
- } | undefined;
2845
- profile?: {
2846
- visible: boolean;
2847
- } | undefined;
2848
- key?: string | undefined;
2849
- origin?: {
2850
- typeVersion: string;
2851
- } | undefined;
2852
- configuration?: {
2853
- defaults: Record<string, string | number | boolean | {
2854
- id: string;
2855
- prompt: string;
2856
- choices: {
2857
- id: string;
2858
- label: string;
2859
- }[];
2860
- correct: string;
2861
- }[]>;
2862
- overrides: Record<string, string | number | boolean | {
2863
- id: string;
2864
- prompt: string;
2865
- choices: {
2866
- id: string;
2867
- label: string;
2868
- }[];
2869
- correct: string;
2870
- }[]>;
2871
- preserved: string[];
2872
- } | undefined;
2873
- }, {
2874
- quest: string;
2875
- title: string;
2876
- criteria: string;
2877
- humanReview: boolean;
2878
- rewards: ({
2879
- kind: "tier";
2880
- reward: {
2881
- id: string;
2882
- title: string;
2883
- tiers: {
2884
- id: string;
2885
- title: string;
2886
- }[];
2887
- inventory: {
2888
- kind: "untracked";
2889
- };
2890
- fulfillment: {
2891
- kind: "staff-handover";
2892
- };
2893
- };
2894
- tier: string;
2895
- } | {
2896
- kind: "points";
2897
- balance: string;
2898
- amount: number;
2899
- } | {
2900
- kind: "integration";
2901
- provider: "discord";
2902
- action: "grant-role";
2903
- roleId: string;
2904
- })[];
2905
- code: string;
2906
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
2907
- id: string;
2908
- createdAt: number;
2909
- }>>]>>;
2910
- completions: z.ZodArray<z.ZodObject<{
2911
- key: z.ZodDefault<z.ZodString>;
2912
- id: z.ZodString;
2913
- quest: z.ZodString;
2914
- member: z.ZodString;
2915
- }, z.core.$strip>>;
2916
- entitlements: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2917
- status: z.ZodLiteral<"available">;
2918
- id: z.ZodString;
2919
- member: z.ZodString;
2920
- reward: z.ZodObject<{
2921
- id: z.ZodString;
2922
- title: z.ZodString;
2923
- tiers: z.ZodArray<z.ZodObject<{
2924
- id: z.ZodString;
2925
- title: z.ZodString;
2926
- }, z.core.$strict>>;
2927
- inventory: z.ZodObject<{
2928
- kind: z.ZodLiteral<"untracked">;
2929
- }, z.core.$strict>;
2930
- fulfillment: z.ZodObject<{
2931
- kind: z.ZodLiteral<"staff-handover">;
2932
- }, z.core.$strict>;
2933
- }, z.core.$strict>;
2934
- earnedTier: z.ZodString;
2935
- tier: z.ZodString;
2936
- revision: z.ZodNumber;
2937
- }, z.core.$strict>, z.ZodObject<{
2938
- status: z.ZodLiteral<"handing-over">;
2939
- handover: z.ZodString;
2940
- startedAt: z.ZodNumber;
2941
- allocation: z.ZodOptional<z.ZodObject<{
2942
- item: z.ZodString;
2943
- label: z.ZodString;
2944
- }, z.core.$strict>>;
2945
- id: z.ZodString;
2946
- member: z.ZodString;
2947
- reward: z.ZodObject<{
2948
- id: z.ZodString;
2949
- title: z.ZodString;
2950
- tiers: z.ZodArray<z.ZodObject<{
2951
- id: z.ZodString;
2952
- title: z.ZodString;
2953
- }, z.core.$strict>>;
2954
- inventory: z.ZodObject<{
2955
- kind: z.ZodLiteral<"untracked">;
2956
- }, z.core.$strict>;
2957
- fulfillment: z.ZodObject<{
2958
- kind: z.ZodLiteral<"staff-handover">;
2959
- }, z.core.$strict>;
2960
- }, z.core.$strict>;
2961
- earnedTier: z.ZodString;
2962
- tier: z.ZodString;
2963
- revision: z.ZodNumber;
2964
- }, z.core.$strict>, z.ZodObject<{
2965
- status: z.ZodLiteral<"collected">;
2966
- handover: z.ZodString;
2967
- startedAt: z.ZodNumber;
2968
- allocation: z.ZodOptional<z.ZodObject<{
2969
- item: z.ZodString;
2970
- label: z.ZodString;
2971
- }, z.core.$strict>>;
2972
- collectedAt: z.ZodNumber;
2973
- id: z.ZodString;
2974
- member: z.ZodString;
2975
- reward: z.ZodObject<{
2976
- id: z.ZodString;
2977
- title: z.ZodString;
2978
- tiers: z.ZodArray<z.ZodObject<{
2979
- id: z.ZodString;
2980
- title: z.ZodString;
2981
- }, z.core.$strict>>;
2982
- inventory: z.ZodObject<{
2983
- kind: z.ZodLiteral<"untracked">;
2984
- }, z.core.$strict>;
2985
- fulfillment: z.ZodObject<{
2986
- kind: z.ZodLiteral<"staff-handover">;
2987
- }, z.core.$strict>;
2988
- }, z.core.$strict>;
2989
- earnedTier: z.ZodString;
2990
- tier: z.ZodString;
2991
- revision: z.ZodNumber;
2992
- }, z.core.$strict>], "status">>;
2993
- attempts: z.ZodArray<z.ZodObject<{
2994
- id: z.ZodString;
2995
- release: z.ZodString;
2996
- quest: z.ZodString;
2997
- member: z.ZodString;
2998
- evidence: z.ZodNullable<z.ZodString>;
2999
- input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3000
- kind: z.ZodLiteral<"quiz">;
3001
- release: z.ZodOptional<z.ZodString>;
3002
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
3003
- [k: string]: string;
3004
- }, Record<string, string>>>;
3005
- }, z.core.$strict>, z.ZodObject<{
3006
- kind: z.ZodLiteral<"text">;
3007
- value: z.ZodString;
3008
- }, z.core.$strict>, z.ZodObject<{
3009
- kind: z.ZodLiteral<"url">;
3010
- value: z.ZodString;
3011
- }, z.core.$strict>]>>;
3012
- status: z.ZodEnum<{
3013
- "needs-review": "needs-review";
3014
- failed: "failed";
3015
- queued: "queued";
3016
- evaluating: "evaluating";
3017
- accepted: "accepted";
3018
- progressed: "progressed";
3019
- rejected: "rejected";
3020
- }>;
3021
- reason: z.ZodNullable<z.ZodString>;
3022
- retries: z.ZodNumber;
3023
- generation: z.ZodNumber;
3024
- completion: z.ZodNullable<z.ZodString>;
3025
- reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3026
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
3027
- balance: z.ZodString;
3028
- amount: z.ZodNumber;
3029
- }, z.core.$strict>, z.ZodObject<{
3030
- kind: z.ZodLiteral<"tier">;
3031
- reward: z.ZodObject<{
3032
- id: z.ZodString;
3033
- title: z.ZodString;
3034
- tiers: z.ZodArray<z.ZodObject<{
3035
- id: z.ZodString;
3036
- title: z.ZodString;
3037
- }, z.core.$strict>>;
3038
- inventory: z.ZodObject<{
3039
- kind: z.ZodLiteral<"untracked">;
3040
- }, z.core.$strict>;
3041
- fulfillment: z.ZodObject<{
3042
- kind: z.ZodLiteral<"staff-handover">;
3043
- }, z.core.$strict>;
3044
- }, z.core.$strict>;
3045
- tier: z.ZodString;
3046
- }, z.core.$strict>, z.ZodObject<{
3047
- kind: z.ZodLiteral<"integration">;
3048
- provider: z.ZodLiteral<"discord">;
3049
- action: z.ZodLiteral<"grant-role">;
3050
- roleId: z.ZodString;
3051
- }, z.core.$strict>]>>>>;
3052
- requestedReview: z.ZodDefault<z.ZodBoolean>;
3053
- createdAt: z.ZodNumber;
3054
- }, z.core.$strip>>;
3055
- balances: z.ZodArray<z.ZodObject<{
3056
- member: z.ZodString;
3057
- balance: z.ZodString;
3058
- earned: z.ZodNumber;
3059
- held: z.ZodNumber;
3060
- available: z.ZodNumber;
3061
- }, z.core.$strip>>;
3062
- events: z.ZodArray<z.ZodObject<{
3063
- id: z.ZodNumber;
3064
- attempt: z.ZodNullable<z.ZodString>;
3065
- kind: z.ZodString;
3066
- detail: z.ZodString;
3067
- actor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3068
- at: z.ZodNumber;
3069
- }, z.core.$strip>>;
3070
- }, z.core.$strip>;
3071
- type Snapshot = z.infer<typeof snapshotSchema>;
3072
- declare const evidenceSchema: z.ZodObject<{
3073
- id: z.ZodString;
3074
- member: z.ZodString;
3075
- type: z.ZodEnum<{
3076
- "image/jpeg": "image/jpeg";
3077
- "image/png": "image/png";
3078
- }>;
3079
- size: z.ZodNumber;
3080
- }, z.core.$strip>;
3081
- /**
3082
- * Relay's error body. `code` is open: Relay adds codes over time, and clients keep ones they do
3083
- * not know (see `RelayErrorCode` for the known ones).
3084
- */
3085
- declare const errorSchema: z.ZodObject<{
3086
- error: z.ZodString;
3087
- code: z.ZodOptional<z.ZodString>;
3088
- missing: z.ZodOptional<z.ZodArray<z.ZodObject<{
3089
- quest: z.ZodString;
3090
- title: z.ZodString;
3091
- }, z.core.$strip>>>;
3092
- }, z.core.$strip>;
3093
- declare const staffDecisionSchema: z.ZodObject<{
3094
- actionId: z.ZodString;
3095
- generation: z.ZodNumber;
3096
- decision: z.ZodEnum<{
3097
- accept: "accept";
3098
- reject: "reject";
3099
- }>;
3100
- reason: z.ZodString;
3101
- }, z.core.$strict>;
3102
- declare const stockSchema: z.ZodObject<{
3103
- item: z.ZodString;
3104
- quantity: z.ZodNumber;
3105
- }, z.core.$strict>;
3106
- declare const reservationSchema: z.ZodObject<{
3107
- actionId: z.ZodString;
3108
- member: z.ZodString;
3109
- item: z.ZodString;
3110
- balance: z.ZodString;
3111
- price: z.ZodNumber;
3112
- }, z.core.$strict>;
3113
- type MemberProgress = z.infer<typeof memberProgressSchema>;
3114
- declare const reviewListSchema: z.ZodObject<{
3115
- member: z.ZodOptional<z.ZodString>;
3116
- quest: z.ZodOptional<z.ZodString>;
3117
- limit: z.ZodDefault<z.ZodNumber>;
3118
- cursor: z.ZodOptional<z.ZodString>;
3119
- }, z.core.$strict>;
3120
- declare const memberListSchema: z.ZodObject<{
3121
- prefix: z.ZodOptional<z.ZodString>;
3122
- limit: z.ZodDefault<z.ZodNumber>;
3123
- cursor: z.ZodOptional<z.ZodString>;
3124
- }, z.core.$strict>;
3125
- declare const reviewItemSchema: z.ZodObject<{
3126
- attempt: z.ZodObject<{
3127
- id: z.ZodString;
3128
- release: z.ZodString;
3129
- quest: z.ZodString;
3130
- member: z.ZodString;
3131
- evidence: z.ZodNullable<z.ZodString>;
3132
- input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3133
- kind: z.ZodLiteral<"quiz">;
3134
- release: z.ZodOptional<z.ZodString>;
3135
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
3136
- [k: string]: string;
3137
- }, Record<string, string>>>;
3138
- }, z.core.$strict>, z.ZodObject<{
3139
- kind: z.ZodLiteral<"text">;
3140
- value: z.ZodString;
3141
- }, z.core.$strict>, z.ZodObject<{
3142
- kind: z.ZodLiteral<"url">;
3143
- value: z.ZodString;
3144
- }, z.core.$strict>]>>;
3145
- status: z.ZodEnum<{
3146
- "needs-review": "needs-review";
3147
- failed: "failed";
3148
- queued: "queued";
3149
- evaluating: "evaluating";
3150
- accepted: "accepted";
3151
- progressed: "progressed";
3152
- rejected: "rejected";
3153
- }>;
3154
- reason: z.ZodNullable<z.ZodString>;
3155
- retries: z.ZodNumber;
3156
- generation: z.ZodNumber;
3157
- completion: z.ZodNullable<z.ZodString>;
3158
- reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3159
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
3160
- balance: z.ZodString;
3161
- amount: z.ZodNumber;
3162
- }, z.core.$strict>, z.ZodObject<{
3163
- kind: z.ZodLiteral<"tier">;
3164
- reward: z.ZodObject<{
3165
- id: z.ZodString;
3166
- title: z.ZodString;
3167
- tiers: z.ZodArray<z.ZodObject<{
3168
- id: z.ZodString;
3169
- title: z.ZodString;
3170
- }, z.core.$strict>>;
3171
- inventory: z.ZodObject<{
3172
- kind: z.ZodLiteral<"untracked">;
3173
- }, z.core.$strict>;
3174
- fulfillment: z.ZodObject<{
3175
- kind: z.ZodLiteral<"staff-handover">;
3176
- }, z.core.$strict>;
3177
- }, z.core.$strict>;
3178
- tier: z.ZodString;
3179
- }, z.core.$strict>, z.ZodObject<{
3180
- kind: z.ZodLiteral<"integration">;
3181
- provider: z.ZodLiteral<"discord">;
3182
- action: z.ZodLiteral<"grant-role">;
3183
- roleId: z.ZodString;
3184
- }, z.core.$strict>]>>>>;
3185
- requestedReview: z.ZodDefault<z.ZodBoolean>;
3186
- createdAt: z.ZodNumber;
3187
- }, z.core.$strip>;
3188
- title: z.ZodString;
3189
- checks: z.ZodArray<z.ZodObject<{
3190
- criteria: z.ZodString;
3191
- result: z.ZodObject<{
3192
- kind: z.ZodEnum<{
3193
- pass: "pass";
3194
- fail: "fail";
3195
- unclear: "unclear";
3196
- }>;
3197
- reason: z.ZodString;
3198
- }, z.core.$strict>;
3199
- }, z.core.$strip>>;
3200
- }, z.core.$strip>;
3201
- declare const reviewPageSchema: z.ZodObject<{
3202
- items: z.ZodArray<z.ZodObject<{
3203
- attempt: z.ZodObject<{
3204
- id: z.ZodString;
3205
- release: z.ZodString;
3206
- quest: z.ZodString;
3207
- member: z.ZodString;
3208
- evidence: z.ZodNullable<z.ZodString>;
3209
- input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3210
- kind: z.ZodLiteral<"quiz">;
3211
- release: z.ZodOptional<z.ZodString>;
3212
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
3213
- [k: string]: string;
3214
- }, Record<string, string>>>;
3215
- }, z.core.$strict>, z.ZodObject<{
3216
- kind: z.ZodLiteral<"text">;
3217
- value: z.ZodString;
3218
- }, z.core.$strict>, z.ZodObject<{
3219
- kind: z.ZodLiteral<"url">;
3220
- value: z.ZodString;
3221
- }, z.core.$strict>]>>;
3222
- status: z.ZodEnum<{
3223
- "needs-review": "needs-review";
3224
- failed: "failed";
3225
- queued: "queued";
3226
- evaluating: "evaluating";
3227
- accepted: "accepted";
3228
- progressed: "progressed";
3229
- rejected: "rejected";
3230
- }>;
3231
- reason: z.ZodNullable<z.ZodString>;
3232
- retries: z.ZodNumber;
3233
- generation: z.ZodNumber;
3234
- completion: z.ZodNullable<z.ZodString>;
3235
- reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3236
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
3237
- balance: z.ZodString;
3238
- amount: z.ZodNumber;
3239
- }, z.core.$strict>, z.ZodObject<{
3240
- kind: z.ZodLiteral<"tier">;
3241
- reward: z.ZodObject<{
3242
- id: z.ZodString;
3243
- title: z.ZodString;
3244
- tiers: z.ZodArray<z.ZodObject<{
3245
- id: z.ZodString;
3246
- title: z.ZodString;
3247
- }, z.core.$strict>>;
3248
- inventory: z.ZodObject<{
3249
- kind: z.ZodLiteral<"untracked">;
3250
- }, z.core.$strict>;
3251
- fulfillment: z.ZodObject<{
3252
- kind: z.ZodLiteral<"staff-handover">;
3253
- }, z.core.$strict>;
3254
- }, z.core.$strict>;
3255
- tier: z.ZodString;
3256
- }, z.core.$strict>, z.ZodObject<{
3257
- kind: z.ZodLiteral<"integration">;
3258
- provider: z.ZodLiteral<"discord">;
3259
- action: z.ZodLiteral<"grant-role">;
3260
- roleId: z.ZodString;
3261
- }, z.core.$strict>]>>>>;
3262
- requestedReview: z.ZodDefault<z.ZodBoolean>;
3263
- createdAt: z.ZodNumber;
3264
- }, z.core.$strip>;
3265
- title: z.ZodString;
3266
- checks: z.ZodArray<z.ZodObject<{
3267
- criteria: z.ZodString;
3268
- result: z.ZodObject<{
3269
- kind: z.ZodEnum<{
3270
- pass: "pass";
3271
- fail: "fail";
3272
- unclear: "unclear";
3273
- }>;
3274
- reason: z.ZodString;
3275
- }, z.core.$strict>;
3276
- }, z.core.$strip>>;
3277
- }, z.core.$strip>>;
3278
- nextCursor: z.ZodNullable<z.ZodString>;
3279
- }, z.core.$strip>;
3280
- declare const memberPageSchema: z.ZodObject<{
3281
- items: z.ZodArray<z.ZodObject<{
3282
- member: z.ZodString;
3283
- }, z.core.$strip>>;
3284
- nextCursor: z.ZodNullable<z.ZodString>;
3285
- }, z.core.$strip>;
3286
- type ReviewPage = z.infer<typeof reviewPageSchema>;
3287
- type MemberPage = z.infer<typeof memberPageSchema>;
3288
- declare const createStockItemSchema: z.ZodObject<{
3289
- actionId: z.ZodString;
3290
- name: z.ZodString;
3291
- }, z.core.$strict>;
3292
- declare const stockItemSchema: z.ZodObject<{
3293
- id: z.ZodString;
3294
- name: z.ZodString;
3295
- }, z.core.$strip>;
3296
- /** Immutable performance input, including the content-approved reward selection. */
3297
- declare const contentPerformanceSnapshotSchema: z.ZodObject<{
3298
- contentAttempt: z.ZodString;
3299
- observation: z.ZodString;
3300
- observedAt: z.ZodNumber;
3301
- metrics: z.ZodRecord<z.ZodEnum<{
3302
- likes: "likes";
3303
- replies: "replies";
3304
- reposts: "reposts";
3305
- quotes: "quotes";
3306
- views: "views";
3307
- bookmarks: "bookmarks";
3308
- }> & z.core.$partial, z.ZodNumber>;
3309
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3310
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
3311
- balance: z.ZodString;
3312
- amount: z.ZodNumber;
3313
- }, z.core.$strict>, z.ZodObject<{
3314
- kind: z.ZodLiteral<"tier">;
3315
- reward: z.ZodObject<{
3316
- id: z.ZodString;
3317
- title: z.ZodString;
3318
- tiers: z.ZodArray<z.ZodObject<{
3319
- id: z.ZodString;
3320
- title: z.ZodString;
3321
- }, z.core.$strict>>;
3322
- inventory: z.ZodObject<{
3323
- kind: z.ZodLiteral<"untracked">;
3324
- }, z.core.$strict>;
3325
- fulfillment: z.ZodObject<{
3326
- kind: z.ZodLiteral<"staff-handover">;
3327
- }, z.core.$strict>;
3328
- }, z.core.$strict>;
3329
- tier: z.ZodString;
3330
- }, z.core.$strict>, z.ZodObject<{
3331
- kind: z.ZodLiteral<"integration">;
3332
- provider: z.ZodLiteral<"discord">;
3333
- action: z.ZodLiteral<"grant-role">;
3334
- roleId: z.ZodString;
3335
- }, z.core.$strict>]>>;
3336
- }, z.core.$strict>;
3337
- type ContentPerformanceSnapshot = z.infer<typeof contentPerformanceSnapshotSchema>;
3338
- declare const contentPerformanceQuerySchema: z.ZodObject<{
3339
- quest: z.ZodString;
3340
- member: z.ZodOptional<z.ZodString>;
3341
- cursor: z.ZodOptional<z.ZodString>;
3342
- content: z.ZodString;
3343
- }, z.core.$strict>;
3344
- declare const contentPerformancePageSchema: z.ZodObject<{
3345
- current: z.ZodObject<{
3346
- state: z.ZodEnum<{
3347
- pending: "pending";
3348
- superseded: "superseded";
3349
- qualified: "qualified";
3350
- unqualified: "unqualified";
3351
- "needs-review": "needs-review";
3352
- failed: "failed";
3353
- "content-pending": "content-pending";
3354
- "content-unqualified": "content-unqualified";
3355
- waiting: "waiting";
3356
- }>;
3357
- reason: z.ZodNullable<z.ZodString>;
3358
- contentAttempt: z.ZodString;
3359
- attempt: z.ZodNullable<z.ZodString>;
3360
- reward: z.ZodObject<{
3361
- attempt: z.ZodNullable<z.ZodString>;
3362
- completion: z.ZodNullable<z.ZodString>;
3363
- state: z.ZodEnum<{
3364
- excluded: "excluded";
3365
- unresolved: "unresolved";
3366
- awarded: "awarded";
3367
- }>;
3368
- }, z.core.$strict>;
3369
- }, z.core.$strict>;
3370
- items: z.ZodArray<z.ZodObject<{
3371
- attempt: z.ZodString;
3372
- contentAttempt: z.ZodString;
3373
- observation: z.ZodString;
3374
- observedAt: z.ZodNumber;
3375
- metrics: z.ZodRecord<z.ZodEnum<{
3376
- likes: "likes";
3377
- replies: "replies";
3378
- reposts: "reposts";
3379
- quotes: "quotes";
3380
- views: "views";
3381
- bookmarks: "bookmarks";
3382
- }> & z.core.$partial, z.ZodNumber>;
3383
- state: z.ZodEnum<{
3384
- pending: "pending";
3385
- superseded: "superseded";
3386
- qualified: "qualified";
3387
- unqualified: "unqualified";
3388
- "needs-review": "needs-review";
3389
- failed: "failed";
3390
- }>;
3391
- reason: z.ZodNullable<z.ZodString>;
3392
- }, z.core.$strict>>;
3393
- nextCursor: z.ZodNullable<z.ZodString>;
3394
- }, z.core.$strict>;
3395
-
3396
- export { pickupCatalogSchema as $, type Attempt as A, confirmHandoverSchema as B, type ContentPerformanceSnapshot as C, type Decision as D, type Entitlement as E, contentPerformancePageSchema as F, contentPerformanceSnapshotSchema as G, createStockItemSchema as H, decisionSchema as I, entitlementSchema as J, errorSchema as K, eventSchema as L, type MemberProgress as M, evidenceSchema as N, integrationRewardSchema as O, type PhotoResult as P, type QuestPresentation as Q, type Reward as R, type SubmissionEvidence as S, type TieredRewardReference as T, mediaUrlSchema as U, memberListSchema as V, memberPageSchema as W, memberProgressSchema as X, photoResultSchema as Y, pickupAllocationSchema as Z, pickupAvailabilitySchema as _, type QuestProfile as a, pickupPolicySchema as a0, pickupSelectionSchema as a1, pointsRewardSchema as a2, prerequisiteSchema as a3, publishedReleaseSchema as a4, questAvailabilitySchema as a5, questPresentationSchema as a6, questProfileSchema as a7, questSettingsInputSchema as a8, quizAnswersSchema as a9, quizEvidenceSchema as aa, releaseSchema as ab, reservationSchema as ac, reviewItemSchema as ad, reviewListSchema as ae, reviewModeSchema as af, reviewPageSchema as ag, rewardBundleSchema as ah, rewardKey as ai, snapshotSchema as aj, staffDecisionSchema as ak, stockItemSchema as al, stockSchema as am, storedReviewModeSchema as an, submissionEvidenceSchema as ao, templateSchema as ap, textResultSchema as aq, textReviewInputSchema as ar, tierRewardSchema as as, tieredRewardDefinitionSchema as at, tieredRewardReferenceSchema as au, type QuizEvidence as b, type SubmitInput as c, type TextReviewInput as d, type TextResult as e, type TieredRewardDefinition as f, contentPerformanceQuerySchema as g, type MemberPage as h, type PickupAvailability as i, type PublishedRelease as j, type QuestAvailability as k, type QuestDescription as l, type QuestSettingsInput as m, type ReleaseInput as n, type ReviewPage as o, type Snapshot as p, questDescriptionSchema as q, rewardSchema as r, submitSchema as s, triggerSchema as t, artifactSchema as u, attemptSchema as v, batchReleaseSchema as w, beginHandoverSchema as x, completionRecordSchema as y, configurePickupSchema as z };