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