@domino-sdk/relay 1.0.0-next.10 → 1.0.0-next.13

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