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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +1 -1
  2. package/dist/activity-DeKJsRry.d.ts +9112 -0
  3. package/dist/authoring.d.ts +1135 -285
  4. package/dist/authoring.js +545 -269
  5. package/dist/automatic-outcomes-B1xrETxm.d.ts +758 -0
  6. package/dist/avatar.d.ts +2 -2
  7. package/dist/browser-DFe7sWSN.d.ts +4154 -0
  8. package/dist/browser.d.ts +11 -2528
  9. package/dist/browser.js +8 -6
  10. package/dist/capability-error-DNMwKmlL.d.ts +458 -0
  11. package/dist/{chunk-V7EZUZ3Z.js → chunk-36HTX2BM.js} +389 -169
  12. package/dist/chunk-6QJ3LADK.js +112 -0
  13. package/dist/{chunk-77H7APVD.js → chunk-BGGKNIRP.js} +1 -1
  14. package/dist/chunk-EYH5RDIE.js +496 -0
  15. package/dist/chunk-GQKYAQM6.js +84 -0
  16. package/dist/chunk-GUP7YRR4.js +42 -0
  17. package/dist/{chunk-V5R2DMGY.js → chunk-GZ6FJAXN.js} +380 -128
  18. package/dist/chunk-JON5SESL.js +2986 -0
  19. package/dist/chunk-MC6V6VMG.js +49 -0
  20. package/dist/chunk-NPGENI7K.js +37 -0
  21. package/dist/chunk-VFHHLN6A.js +284 -0
  22. package/dist/chunk-WJSSJ7AF.js +151 -0
  23. package/dist/{chunk-QBOHLT7M.js → chunk-XFMSUPNS.js} +1 -1
  24. package/dist/{chunk-6A6K5RUD.js → chunk-ZVIRG24J.js} +145 -42
  25. package/dist/{client-CK4nwt7V.d.ts → client-XiuFnug_.d.ts} +2193 -562
  26. package/dist/{submission-input-C9qm9ixd.d.ts → groups-Ck-OxzjD.d.ts} +919 -1142
  27. package/dist/identity-integration-GxAHdKR2.d.ts +58 -0
  28. package/dist/{images--vZ9U0kr.d.ts → images-Dv-P5VBw.d.ts} +2 -2
  29. package/dist/index.d.ts +13 -9
  30. package/dist/index.js +17 -6
  31. package/dist/internal.d.ts +82 -43
  32. package/dist/internal.js +58 -90
  33. package/dist/offers-Cy-e4o5x.d.ts +431 -0
  34. package/dist/{pages-BzqJuI69.d.ts → outcomes-kVB-Juzs.d.ts} +2386 -1490
  35. package/dist/pages-BBYD21IE.d.ts +359 -0
  36. package/dist/participant-rewards-3duLb8YJ.d.ts +668 -0
  37. package/dist/portal-proxy.js +22 -4
  38. package/dist/{profiles-DDMFBRKe.d.ts → profiles-D2aFcOxu.d.ts} +15 -15
  39. package/dist/react/index.d.ts +3122 -1011
  40. package/dist/react/index.js +1627 -779
  41. package/dist/request-error-DWduJCGV.d.ts +62 -0
  42. package/dist/schema-DfJzH2ci.d.ts +5644 -0
  43. package/dist/schema.d.ts +15 -4216
  44. package/dist/schema.js +322 -81
  45. package/dist/server/index.d.ts +81498 -0
  46. package/dist/server/index.js +2520 -0
  47. package/dist/{streaks-CwGReWGt.d.ts → streaks-CWyq8Px5.d.ts} +2 -4
  48. package/dist/submission-input-BZkm6ohU.d.ts +290 -0
  49. package/dist/vite.d.ts +1 -1
  50. package/dist/vite.js +1 -0
  51. package/dist/{wallet-BGOfFkG9.d.ts → wallet-YssWxGg8.d.ts} +35 -38
  52. package/package.json +8 -2
  53. package/dist/chunk-MRIURJE3.js +0 -257
  54. package/dist/chunk-VARGF4JS.js +0 -1733
  55. package/dist/chunk-ZWY3R6B3.js +0 -26
  56. package/dist/collection-BGneJ6Bk.d.ts +0 -114
  57. package/dist/integrations-C3Sp558f.d.ts +0 -1297
  58. package/dist/point-ledgers-iS00Z_v0.d.ts +0 -37
  59. package/dist/schema-pnuWqvGn.d.ts +0 -3396
@@ -1,161 +1,308 @@
1
1
  import { z } from 'zod';
2
- import { q as questDescriptionSchema } from './schema-pnuWqvGn.js';
2
+ import { a as AttemptStatus, bk as questDescriptionSchema, h as TrackerSkipCode } from './schema-DfJzH2ci.js';
3
3
 
4
- declare const authScopeSchema: z.ZodObject<{
5
- organization: z.ZodString;
6
- project: z.ZodString;
7
- environment: z.ZodEnum<{
8
- test: "test";
9
- live: "live";
4
+ declare const contentQualificationDecisionSchema: z.ZodObject<{
5
+ kind: z.ZodEnum<{
6
+ accept: "accept";
7
+ reject: "reject";
8
+ review: "review";
9
+ defer: "defer";
10
+ progress: "progress";
11
+ superseded: "superseded";
10
12
  }>;
13
+ reason: z.ZodNullable<z.ZodString>;
11
14
  }, z.core.$strict>;
12
- declare const principalSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
13
- kind: z.ZodLiteral<"member">;
15
+ declare const contentQualificationQuerySchema: z.ZodObject<{
16
+ quest: z.ZodString;
17
+ member: z.ZodOptional<z.ZodString>;
18
+ /** A content item's record ID in the quest's tracker. */
19
+ content: z.ZodOptional<z.ZodString>;
20
+ cursor: z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strict>;
22
+ declare const contentQualificationSchema: z.ZodObject<{
23
+ quest: z.ZodString;
24
+ /** The content item's record ID in the quest's tracker. */
25
+ content: z.ZodString;
14
26
  member: z.ZodString;
15
- }, z.core.$strip>, z.ZodObject<{
16
- kind: z.ZodLiteral<"staff">;
17
- subject: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- kind: z.ZodLiteral<"operator">;
20
- subject: z.ZodString;
21
- }, z.core.$strip>], "kind">;
22
- declare const sessionSchema: z.ZodObject<{
23
- id: z.ZodString;
24
- principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
25
- kind: z.ZodLiteral<"member">;
26
- member: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- kind: z.ZodLiteral<"staff">;
29
- subject: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- kind: z.ZodLiteral<"operator">;
32
- subject: z.ZodString;
33
- }, z.core.$strip>], "kind">;
34
- expiresAt: z.ZodNumber;
35
- organization: z.ZodString;
36
- project: z.ZodString;
37
- environment: z.ZodEnum<{
38
- test: "test";
39
- live: "live";
27
+ release: z.ZodString;
28
+ attempt: z.ZodString;
29
+ revision: z.ZodString;
30
+ observation: z.ZodString;
31
+ current: z.ZodBoolean;
32
+ state: z.ZodEnum<{
33
+ pending: "pending";
34
+ superseded: "superseded";
35
+ qualified: "qualified";
36
+ unqualified: "unqualified";
37
+ "needs-review": "needs-review";
38
+ failed: "failed";
39
+ stale: "stale";
40
+ blocked: "blocked";
41
+ unavailable: "unavailable";
40
42
  }>;
41
- }, z.core.$strip>;
42
- type Session = z.infer<typeof sessionSchema>;
43
+ reason: z.ZodNullable<z.ZodString>;
44
+ reward: z.ZodObject<{
45
+ attempt: z.ZodNullable<z.ZodString>;
46
+ completion: z.ZodNullable<z.ZodString>;
47
+ state: z.ZodEnum<{
48
+ excluded: "excluded";
49
+ unresolved: "unresolved";
50
+ awarded: "awarded";
51
+ }>;
52
+ }, z.core.$strict>;
53
+ }, z.core.$strict>;
54
+ declare const contentQualificationPageSchema: z.ZodObject<{
55
+ items: z.ZodArray<z.ZodObject<{
56
+ quest: z.ZodString;
57
+ /** The content item's record ID in the quest's tracker. */
58
+ content: z.ZodString;
59
+ member: z.ZodString;
60
+ release: z.ZodString;
61
+ attempt: z.ZodString;
62
+ revision: z.ZodString;
63
+ observation: z.ZodString;
64
+ current: z.ZodBoolean;
65
+ state: z.ZodEnum<{
66
+ pending: "pending";
67
+ superseded: "superseded";
68
+ qualified: "qualified";
69
+ unqualified: "unqualified";
70
+ "needs-review": "needs-review";
71
+ failed: "failed";
72
+ stale: "stale";
73
+ blocked: "blocked";
74
+ unavailable: "unavailable";
75
+ }>;
76
+ reason: z.ZodNullable<z.ZodString>;
77
+ reward: z.ZodObject<{
78
+ attempt: z.ZodNullable<z.ZodString>;
79
+ completion: z.ZodNullable<z.ZodString>;
80
+ state: z.ZodEnum<{
81
+ excluded: "excluded";
82
+ unresolved: "unresolved";
83
+ awarded: "awarded";
84
+ }>;
85
+ }, z.core.$strict>;
86
+ }, z.core.$strict>>;
87
+ nextCursor: z.ZodNullable<z.ZodString>;
88
+ }, z.core.$strict>;
89
+ /** A content metric's name, as its source declares it, such as `likes`. */
90
+ declare const contentMetricSchema: z.ZodString;
91
+ type ContentMetric = z.infer<typeof contentMetricSchema>;
92
+ /** Measured counters by metric name. A metric a sample leaves out is unknown, never zero. */
93
+ declare const contentMetricsSchema: z.ZodRecord<z.ZodString, z.ZodNumber>;
94
+ /** Which declared metrics a content quest's performance stage reads, and how fresh they must be. */
95
+ declare const contentPerformancePolicySchema: z.ZodObject<{
96
+ metrics: z.ZodArray<z.ZodString>;
97
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
98
+ }, z.core.$strict>;
99
+ type ContentPerformancePolicy = z.infer<typeof contentPerformancePolicySchema>;
100
+
43
101
  /**
44
- * A session's principal as the participant client reads it: a known kind, or `{ kind }` alone for
45
- * a kind a newer Relay added, so reading the session never fails on it.
102
+ * The delivery actions this SDK knows. `RewardDelivery.action` is an open string: Relay can add
103
+ * actions, and a delivery keeps one this SDK does not list. Show such a delivery by its status.
46
104
  */
47
- declare const participantPrincipalSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
48
- kind: z.ZodLiteral<"member">;
49
- member: z.ZodString;
50
- }, z.core.$strip>, z.ZodObject<{
51
- kind: z.ZodLiteral<"staff">;
52
- subject: z.ZodString;
53
- }, z.core.$strip>, z.ZodObject<{
54
- kind: z.ZodLiteral<"operator">;
55
- subject: z.ZodString;
56
- }, z.core.$strip>], "kind">, z.ZodObject<{
57
- kind: z.ZodString;
58
- }, z.core.$strip>]>;
59
- type ParticipantPrincipal = z.infer<typeof participantPrincipalSchema>;
60
- /** The session the participant client returns (`auth.session()`). */
61
- declare const participantSessionSchema: z.ZodObject<{
62
- id: z.ZodString;
63
- principal: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
64
- kind: z.ZodLiteral<"member">;
65
- member: z.ZodString;
66
- }, z.core.$strip>, z.ZodObject<{
67
- kind: z.ZodLiteral<"staff">;
68
- subject: z.ZodString;
69
- }, z.core.$strip>, z.ZodObject<{
70
- kind: z.ZodLiteral<"operator">;
71
- subject: z.ZodString;
72
- }, z.core.$strip>], "kind">, z.ZodObject<{
73
- kind: z.ZodString;
74
- }, z.core.$strip>]>;
75
- expiresAt: z.ZodNumber;
76
- organization: z.ZodString;
77
- project: z.ZodString;
78
- environment: z.ZodEnum<{
79
- test: "test";
80
- live: "live";
105
+ declare const RewardDeliveryAction: {
106
+ /** Delivers a quest's Discord role reward. */
107
+ readonly GrantRole: "grant-role";
108
+ };
109
+ /** A known action, or one a newer Relay sends. */
110
+ type RewardDeliveryAction = (typeof RewardDeliveryAction)[keyof typeof RewardDeliveryAction] | (string & {});
111
+ declare const roleReconciliationSchema: z.ZodObject<{
112
+ status: z.ZodEnum<{
113
+ pending: "pending";
114
+ removed: "removed";
115
+ failed: "failed";
116
+ preserved: "preserved";
117
+ granted: "granted";
118
+ }>;
119
+ ownership: z.ZodEnum<{
120
+ external: "external";
121
+ unclaimed: "unclaimed";
122
+ relay: "relay";
81
123
  }>;
124
+ at: z.ZodNumber;
125
+ reason: z.ZodNullable<z.ZodString>;
82
126
  }, z.core.$strip>;
83
- type ParticipantSession = z.infer<typeof participantSessionSchema>;
84
- /** The member a session signs in, or null for a signed-out visitor or another principal kind. */
85
- declare function sessionMember(session: {
86
- principal: ParticipantPrincipal;
87
- } | null | undefined): string | null;
88
- /**
89
- * The signed-in member (`GET /v1/me`). `avatarSeed` seeds the member's generated avatar
90
- * (`defaultAvatar`): an HMAC of the member ID under a per-project secret, so it is stable in the
91
- * project, whatever the member links, and reveals nothing. Not strict: newer servers may add fields.
92
- */
93
- declare const memberSummarySchema: z.ZodObject<{
127
+ declare const knownRewardDeliverySchema: z.ZodObject<{
128
+ id: z.ZodString;
129
+ quest: z.ZodString;
130
+ completion: z.ZodString;
94
131
  member: z.ZodString;
95
- avatarSeed: z.ZodString;
96
- }, z.core.$strip>;
97
- type MemberSummary = z.infer<typeof memberSummarySchema>;
98
- declare const exchangeSchema: z.ZodObject<{
99
- organization: z.ZodString;
100
- project: z.ZodString;
101
- environment: z.ZodEnum<{
102
- test: "test";
103
- live: "live";
132
+ provider: z.ZodLiteral<"discord">;
133
+ action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
134
+ roleId: z.ZodString;
135
+ status: z.ZodEnum<{
136
+ pending: "pending";
137
+ failed: "failed";
138
+ delivered: "delivered";
104
139
  }>;
105
- identity: z.ZodObject<{
106
- issuer: z.ZodString;
107
- subject: z.ZodString;
108
- }, z.core.$strict>;
109
- role: z.ZodEnum<{
110
- member: "member";
111
- staff: "staff";
112
- operator: "operator";
140
+ attempts: z.ZodNumber;
141
+ nextAt: z.ZodNumber;
142
+ lastError: z.ZodNullable<z.ZodString>;
143
+ createdAt: z.ZodNumber;
144
+ deliveredAt: z.ZodNullable<z.ZodNumber>;
145
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
146
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
147
+ reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
148
+ status: z.ZodEnum<{
149
+ pending: "pending";
150
+ removed: "removed";
151
+ failed: "failed";
152
+ preserved: "preserved";
153
+ granted: "granted";
154
+ }>;
155
+ ownership: z.ZodEnum<{
156
+ external: "external";
157
+ unclaimed: "unclaimed";
158
+ relay: "relay";
159
+ }>;
160
+ at: z.ZodNumber;
161
+ reason: z.ZodNullable<z.ZodString>;
162
+ }, z.core.$strip>>>;
163
+ }, z.core.$strip>;
164
+ declare const rewardDeliverySchema: z.ZodUnion<readonly [z.ZodObject<{
165
+ id: z.ZodString;
166
+ quest: z.ZodString;
167
+ completion: z.ZodString;
168
+ member: z.ZodString;
169
+ provider: z.ZodLiteral<"discord">;
170
+ action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
171
+ roleId: z.ZodString;
172
+ status: z.ZodEnum<{
173
+ pending: "pending";
174
+ failed: "failed";
175
+ delivered: "delivered";
113
176
  }>;
114
- }, z.core.$strict>;
115
- type ExchangeInput = z.infer<typeof exchangeSchema>;
116
- declare const exchangeResultSchema: z.ZodObject<{
117
- token: z.ZodString;
118
- session: z.ZodObject<{
177
+ attempts: z.ZodNumber;
178
+ nextAt: z.ZodNumber;
179
+ lastError: z.ZodNullable<z.ZodString>;
180
+ createdAt: z.ZodNumber;
181
+ deliveredAt: z.ZodNullable<z.ZodNumber>;
182
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
183
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
184
+ reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
185
+ status: z.ZodEnum<{
186
+ pending: "pending";
187
+ removed: "removed";
188
+ failed: "failed";
189
+ preserved: "preserved";
190
+ granted: "granted";
191
+ }>;
192
+ ownership: z.ZodEnum<{
193
+ external: "external";
194
+ unclaimed: "unclaimed";
195
+ relay: "relay";
196
+ }>;
197
+ at: z.ZodNumber;
198
+ reason: z.ZodNullable<z.ZodString>;
199
+ }, z.core.$strip>>>;
200
+ }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>, z.ZodObject<{
201
+ id: z.ZodString;
202
+ quest: z.ZodString;
203
+ completion: z.ZodString;
204
+ member: z.ZodString;
205
+ action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
206
+ attempts: z.ZodNumber;
207
+ nextAt: z.ZodNumber;
208
+ lastError: z.ZodNullable<z.ZodString>;
209
+ createdAt: z.ZodNumber;
210
+ deliveredAt: z.ZodNullable<z.ZodNumber>;
211
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
212
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
213
+ provider: z.ZodString;
214
+ status: z.ZodString;
215
+ roleId: z.ZodOptional<z.ZodString>;
216
+ reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
217
+ status: z.ZodString;
218
+ ownership: z.ZodString;
219
+ at: z.ZodNumber;
220
+ reason: z.ZodNullable<z.ZodString>;
221
+ }, z.core.$catchall<z.ZodJSONSchema>>>>;
222
+ }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>]>;
223
+ declare const rewardDeliveriesSchema: z.ZodObject<{
224
+ deliveries: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
119
225
  id: z.ZodString;
120
- principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
121
- kind: z.ZodLiteral<"member">;
122
- member: z.ZodString;
123
- }, z.core.$strip>, z.ZodObject<{
124
- kind: z.ZodLiteral<"staff">;
125
- subject: z.ZodString;
126
- }, z.core.$strip>, z.ZodObject<{
127
- kind: z.ZodLiteral<"operator">;
128
- subject: z.ZodString;
129
- }, z.core.$strip>], "kind">;
130
- expiresAt: z.ZodNumber;
131
- organization: z.ZodString;
132
- project: z.ZodString;
133
- environment: z.ZodEnum<{
134
- test: "test";
135
- live: "live";
226
+ quest: z.ZodString;
227
+ completion: z.ZodString;
228
+ member: z.ZodString;
229
+ provider: z.ZodLiteral<"discord">;
230
+ action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
231
+ roleId: z.ZodString;
232
+ status: z.ZodEnum<{
233
+ pending: "pending";
234
+ failed: "failed";
235
+ delivered: "delivered";
136
236
  }>;
137
- }, z.core.$strip>;
237
+ attempts: z.ZodNumber;
238
+ nextAt: z.ZodNumber;
239
+ lastError: z.ZodNullable<z.ZodString>;
240
+ createdAt: z.ZodNumber;
241
+ deliveredAt: z.ZodNullable<z.ZodNumber>;
242
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
243
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
244
+ reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
245
+ status: z.ZodEnum<{
246
+ pending: "pending";
247
+ removed: "removed";
248
+ failed: "failed";
249
+ preserved: "preserved";
250
+ granted: "granted";
251
+ }>;
252
+ ownership: z.ZodEnum<{
253
+ external: "external";
254
+ unclaimed: "unclaimed";
255
+ relay: "relay";
256
+ }>;
257
+ at: z.ZodNumber;
258
+ reason: z.ZodNullable<z.ZodString>;
259
+ }, z.core.$strip>>>;
260
+ }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>, z.ZodObject<{
261
+ id: z.ZodString;
262
+ quest: z.ZodString;
263
+ completion: z.ZodString;
264
+ member: z.ZodString;
265
+ action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
266
+ attempts: z.ZodNumber;
267
+ nextAt: z.ZodNumber;
268
+ lastError: z.ZodNullable<z.ZodString>;
269
+ createdAt: z.ZodNumber;
270
+ deliveredAt: z.ZodNullable<z.ZodNumber>;
271
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
272
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
273
+ provider: z.ZodString;
274
+ status: z.ZodString;
275
+ roleId: z.ZodOptional<z.ZodString>;
276
+ reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
277
+ status: z.ZodString;
278
+ ownership: z.ZodString;
279
+ at: z.ZodNumber;
280
+ reason: z.ZodNullable<z.ZodString>;
281
+ }, z.core.$catchall<z.ZodJSONSchema>>>>;
282
+ }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>]>>;
138
283
  }, z.core.$strip>;
284
+ type RewardDelivery = z.infer<typeof rewardDeliverySchema>;
139
285
 
140
286
  declare const interactionSchema: z.ZodEnum<{
141
287
  text: "text";
142
- url: "url";
143
- automatic: "automatic";
144
- claim: "claim";
145
288
  staff: "staff";
289
+ claim: "claim";
290
+ automatic: "automatic";
291
+ url: "url";
146
292
  quiz: "quiz";
147
293
  photo: "photo";
148
294
  }>;
149
295
  type QuestInteraction = z.infer<typeof interactionSchema>;
150
296
  declare function questInteraction(trigger: z.infer<typeof questDescriptionSchema>["trigger"]): QuestInteraction;
151
297
  declare const questTypeVersionSchema: z.ZodObject<{
298
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
152
299
  key: z.ZodOptional<z.ZodString>;
153
300
  id: z.ZodString;
154
301
  version: z.ZodString;
155
302
  code: z.ZodString;
156
303
  definition: z.ZodObject<{
157
304
  quest: z.ZodString;
158
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
305
+ evaluatorProtocol: z.ZodLiteral<2>;
159
306
  title: z.ZodString;
160
307
  presentation: z.ZodDefault<z.ZodObject<{
161
308
  quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -179,10 +326,11 @@ declare const questTypeVersionSchema: z.ZodObject<{
179
326
  }, z.core.$strict>>;
180
327
  integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
181
328
  discord: "discord";
329
+ x: "x";
182
330
  }>>>;
183
331
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
184
332
  kind: z.ZodLiteral<"point-ledger">;
185
- default: z.ZodString;
333
+ default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
186
334
  label: z.ZodString;
187
335
  description: z.ZodOptional<z.ZodString>;
188
336
  }, z.core.$strict>, z.ZodObject<{
@@ -196,7 +344,7 @@ declare const questTypeVersionSchema: z.ZodObject<{
196
344
  source: z.ZodUnion<readonly [z.ZodObject<{
197
345
  provider: z.ZodLiteral<"domino">;
198
346
  resource: z.ZodLiteral<"point-ledger">;
199
- }, z.core.$strict>, z.ZodObject<{
347
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
200
348
  provider: z.ZodLiteral<"discord">;
201
349
  resource: z.ZodLiteral<"channel">;
202
350
  types: z.ZodArray<z.ZodEnum<{
@@ -207,7 +355,7 @@ declare const questTypeVersionSchema: z.ZodObject<{
207
355
  provider: z.ZodLiteral<"discord">;
208
356
  resource: z.ZodLiteral<"role">;
209
357
  assignable: z.ZodDefault<z.ZodBoolean>;
210
- }, z.core.$strict>]>;
358
+ }, z.core.$strict>]>]>;
211
359
  label: z.ZodString;
212
360
  description: z.ZodOptional<z.ZodString>;
213
361
  }, z.core.$strict>, z.ZodObject<{
@@ -275,9 +423,11 @@ declare const questTypeVersionSchema: z.ZodObject<{
275
423
  inventory: z.ZodObject<{
276
424
  kind: z.ZodLiteral<"untracked">;
277
425
  }, z.core.$strict>;
278
- fulfillment: z.ZodObject<{
426
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
279
427
  kind: z.ZodLiteral<"staff-handover">;
280
- }, z.core.$strict>;
428
+ }, z.core.$strict>, z.ZodObject<{
429
+ kind: z.ZodLiteral<"automatic">;
430
+ }, z.core.$strict>], "kind">;
281
431
  }, z.core.$strict>;
282
432
  tier: z.ZodString;
283
433
  }, z.core.$strict>, z.ZodObject<{
@@ -323,42 +473,15 @@ declare const questTypeVersionSchema: z.ZodObject<{
323
473
  }>>;
324
474
  }, z.core.$strict>, z.ZodObject<{
325
475
  kind: z.ZodLiteral<"automatic">;
326
- observation: z.ZodOptional<z.ZodObject<{
327
- source: z.ZodString;
328
- type: z.ZodString;
329
- }, z.core.$strict>>;
330
- content: z.ZodOptional<z.ZodObject<{
331
- tracker: z.ZodString;
332
- window: z.ZodObject<{
333
- start: z.ZodNumber;
334
- end: z.ZodOptional<z.ZodNumber>;
335
- }, z.core.$strict>;
336
- enrollment: z.ZodDefault<z.ZodEnum<{
337
- none: "none";
338
- required: "required";
339
- }>>;
340
- posts: z.ZodDefault<z.ZodEnum<{
341
- "after-enrollment": "after-enrollment";
342
- "since-start": "since-start";
343
- }>>;
344
- historical: z.ZodDefault<z.ZodEnum<{
345
- automatic: "automatic";
346
- claim: "claim";
347
- staff: "staff";
348
- }>>;
349
- }, z.core.$strict>>;
350
476
  tracker: z.ZodOptional<z.ZodObject<{
351
477
  tracker: z.ZodString;
352
- source: z.ZodEnum<{
353
- custom: "custom";
354
- "x-search": "x-search";
355
- }>;
356
- on: z.ZodOptional<z.ZodEnum<{
478
+ source: z.ZodString;
479
+ on: z.ZodEnum<{
357
480
  "new-record": "new-record";
358
481
  "new-observation": "new-observation";
359
482
  "data-changed": "data-changed";
360
- }>>;
361
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
483
+ }>;
484
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
362
485
  path: z.ZodString;
363
486
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
364
487
  }, z.core.$strict>, z.ZodObject<{
@@ -375,38 +498,89 @@ declare const questTypeVersionSchema: z.ZodObject<{
375
498
  lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
376
499
  setting: z.ZodString;
377
500
  }, z.core.$strict>]>>;
378
- }, z.core.$strict>]>>;
379
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
501
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
502
+ path: z.ZodString;
503
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
504
+ }, z.core.$strict>, z.ZodObject<{
505
+ path: z.ZodString;
506
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
507
+ setting: z.ZodString;
508
+ }, z.core.$strict>]>>;
509
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
510
+ setting: z.ZodString;
511
+ }, z.core.$strict>]>>;
512
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
513
+ setting: z.ZodString;
514
+ }, z.core.$strict>]>>;
515
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
516
+ setting: z.ZodString;
517
+ }, z.core.$strict>]>>;
518
+ }, z.core.$strict>]>>]>>;
519
+ beneficiary: z.ZodString;
520
+ enrollment: z.ZodOptional<z.ZodEnum<{
521
+ none: "none";
522
+ required: "required";
523
+ }>>;
524
+ since: z.ZodOptional<z.ZodEnum<{
525
+ activation: "activation";
526
+ window: "window";
527
+ enrollment: "enrollment";
528
+ }>>;
529
+ historical: z.ZodOptional<z.ZodEnum<{
530
+ staff: "staff";
531
+ claim: "claim";
532
+ automatic: "automatic";
533
+ }>>;
534
+ content: z.ZodOptional<z.ZodLiteral<true>>;
380
535
  }, z.core.$strict>>;
381
536
  }, z.core.$strict>]>;
382
537
  performance: z.ZodOptional<z.ZodObject<{
383
- metrics: z.ZodArray<z.ZodEnum<{
384
- likes: "likes";
385
- replies: "replies";
386
- reposts: "reposts";
387
- quotes: "quotes";
388
- views: "views";
389
- bookmarks: "bookmarks";
390
- }>>;
538
+ metrics: z.ZodArray<z.ZodString>;
391
539
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
392
540
  }, z.core.$strict>>;
393
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
541
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
542
+ kind: z.ZodLiteral<"completion">;
394
543
  quest: z.ZodString;
395
- }, z.core.$strip>>>;
396
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
397
- kind: z.ZodLiteral<"streak">;
398
- days: z.ZodNumber;
399
- timeZone: z.ZodString;
544
+ scope: z.ZodLiteral<"ever">;
400
545
  }, z.core.$strict>, z.ZodObject<{
401
- kind: z.ZodLiteral<"once">;
546
+ kind: z.ZodLiteral<"completion">;
547
+ quest: z.ZodString;
548
+ scope: z.ZodLiteral<"period">;
549
+ period: z.ZodEnum<{
550
+ day: "day";
551
+ week: "week";
552
+ month: "month";
553
+ }>;
554
+ }, z.core.$strict>], "scope">, z.ZodObject<{
555
+ kind: z.ZodLiteral<"balance">;
556
+ balance: z.ZodString;
557
+ minimum: z.ZodNumber;
402
558
  }, z.core.$strict>, z.ZodObject<{
403
- kind: z.ZodLiteral<"keyed">;
404
- }, z.core.$strict>], "kind">;
559
+ kind: z.ZodLiteral<"group">;
560
+ group: z.ZodString;
561
+ title: z.ZodString;
562
+ }, z.core.$strict>], "kind">>>;
563
+ campaign: z.ZodOptional<z.ZodObject<{
564
+ key: z.ZodString;
565
+ title: z.ZodString;
566
+ window: z.ZodOptional<z.ZodObject<{
567
+ from: z.ZodNumber;
568
+ until: z.ZodNumber;
569
+ }, z.core.$strict>>;
570
+ enrollment: z.ZodDefault<z.ZodEnum<{
571
+ none: "none";
572
+ required: "required";
573
+ }>>;
574
+ }, z.core.$strict>>;
575
+ availability: z.ZodOptional<z.ZodObject<{
576
+ from: z.ZodNumber;
577
+ until: z.ZodNumber;
578
+ }, z.core.$strict>>;
405
579
  visibility: z.ZodDefault<z.ZodEnum<{
406
580
  visible: "visible";
407
581
  hidden: "hidden";
408
582
  }>>;
409
- profile: z.ZodOptional<z.ZodObject<{
583
+ profile: z.ZodDefault<z.ZodObject<{
410
584
  visible: z.ZodBoolean;
411
585
  }, z.core.$strict>>;
412
586
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -416,15 +590,48 @@ declare const questTypeVersionSchema: z.ZodObject<{
416
590
  project: "project";
417
591
  }>;
418
592
  period: z.ZodEnum<{
419
- day: "day";
420
593
  lifetime: "lifetime";
594
+ day: "day";
421
595
  week: "week";
596
+ month: "month";
422
597
  }>;
423
598
  limit: z.ZodNumber;
424
599
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
425
600
  balance: z.ZodString;
426
601
  }, z.core.$strict>]>;
427
602
  }, z.core.$strict>>>;
603
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
604
+ kind: z.ZodLiteral<"streak">;
605
+ days: z.ZodNumber;
606
+ }, z.core.$strip>, z.ZodObject<{
607
+ kind: z.ZodLiteral<"progress">;
608
+ goal: z.ZodObject<{
609
+ kind: z.ZodLiteral<"count">;
610
+ count: z.ZodNumber;
611
+ }, z.core.$strict>;
612
+ window: z.ZodDiscriminatedUnion<[z.ZodObject<{
613
+ kind: z.ZodLiteral<"lifetime">;
614
+ }, z.core.$strict>, z.ZodObject<{
615
+ kind: z.ZodLiteral<"calendar">;
616
+ period: z.ZodEnum<{
617
+ day: "day";
618
+ week: "week";
619
+ month: "month";
620
+ }>;
621
+ latenessMs: z.ZodDefault<z.ZodNumber>;
622
+ }, z.core.$strict>, z.ZodObject<{
623
+ kind: z.ZodLiteral<"rolling">;
624
+ durationMs: z.ZodNumber;
625
+ }, z.core.$strict>], "kind">;
626
+ repeat: z.ZodDefault<z.ZodEnum<{
627
+ repeat: "repeat";
628
+ once: "once";
629
+ }>>;
630
+ }, z.core.$strict>, z.ZodObject<{
631
+ kind: z.ZodLiteral<"once">;
632
+ }, z.core.$strict>, z.ZodObject<{
633
+ kind: z.ZodLiteral<"keyed">;
634
+ }, z.core.$strict>], "kind">;
428
635
  }, z.core.$strict>;
429
636
  provider: z.ZodEnum<{
430
637
  "workers-ai": "workers-ai";
@@ -436,26 +643,17 @@ declare const questTypeVersionSchema: z.ZodObject<{
436
643
  createdAt: z.ZodNumber;
437
644
  }, z.core.$strip>;
438
645
  declare const collectionSlotSchema: z.ZodObject<{
646
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
439
647
  id: z.ZodString;
440
648
  key: z.ZodOptional<z.ZodString>;
441
649
  title: z.ZodString;
442
650
  }, z.core.$strict>;
443
- declare const collectionSlotDeclarationSchema: z.ZodPipe<z.ZodObject<{
651
+ declare const collectionSlotDeclarationSchema: z.ZodObject<{
444
652
  title: z.ZodString;
445
- key: z.ZodOptional<z.ZodString>;
446
- id: z.ZodOptional<z.ZodString>;
447
- }, z.core.$strict>, z.ZodTransform<Omit<{
448
- title: string;
449
- key?: string | undefined;
450
- id?: string | undefined;
451
- }, "id" | "key"> & {
452
- key: string;
453
- }, {
454
- title: string;
455
- key?: string | undefined;
456
- id?: string | undefined;
457
- }>>;
653
+ key: z.ZodString;
654
+ }, z.core.$strict>;
458
655
  declare const questCollectionSchema: z.ZodObject<{
656
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
459
657
  id: z.ZodString;
460
658
  key: z.ZodOptional<z.ZodString>;
461
659
  title: z.ZodString;
@@ -474,7 +672,28 @@ declare const questInstanceSchema: z.ZodObject<{
474
672
  }, z.core.$strict>>;
475
673
  correct: z.ZodString;
476
674
  }, z.core.$strict>>]>>;
477
- requires: z.ZodArray<z.ZodString>;
675
+ requires: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
676
+ kind: z.ZodLiteral<"completion">;
677
+ quest: z.ZodString;
678
+ scope: z.ZodLiteral<"ever">;
679
+ }, z.core.$strict>, z.ZodObject<{
680
+ kind: z.ZodLiteral<"completion">;
681
+ quest: z.ZodString;
682
+ scope: z.ZodLiteral<"period">;
683
+ period: z.ZodEnum<{
684
+ day: "day";
685
+ week: "week";
686
+ month: "month";
687
+ }>;
688
+ }, z.core.$strict>], "scope">, z.ZodObject<{
689
+ kind: z.ZodLiteral<"balance">;
690
+ balance: z.ZodString;
691
+ minimum: z.ZodNumber;
692
+ }, z.core.$strict>, z.ZodObject<{
693
+ kind: z.ZodLiteral<"group">;
694
+ group: z.ZodString;
695
+ title: z.ZodString;
696
+ }, z.core.$strict>], "kind">>;
478
697
  status: z.ZodEnum<{
479
698
  paused: "paused";
480
699
  active: "active";
@@ -495,7 +714,28 @@ declare const questDraftChangesSchema: z.ZodObject<{
495
714
  }, z.core.$strict>>;
496
715
  correct: z.ZodString;
497
716
  }, z.core.$strict>>]>>;
498
- requires: z.ZodArray<z.ZodString>;
717
+ requires: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
718
+ kind: z.ZodLiteral<"completion">;
719
+ quest: z.ZodString;
720
+ scope: z.ZodLiteral<"ever">;
721
+ }, z.core.$strict>, z.ZodObject<{
722
+ kind: z.ZodLiteral<"completion">;
723
+ quest: z.ZodString;
724
+ scope: z.ZodLiteral<"period">;
725
+ period: z.ZodEnum<{
726
+ day: "day";
727
+ week: "week";
728
+ month: "month";
729
+ }>;
730
+ }, z.core.$strict>], "scope">, z.ZodObject<{
731
+ kind: z.ZodLiteral<"balance">;
732
+ balance: z.ZodString;
733
+ minimum: z.ZodNumber;
734
+ }, z.core.$strict>, z.ZodObject<{
735
+ kind: z.ZodLiteral<"group">;
736
+ group: z.ZodString;
737
+ title: z.ZodString;
738
+ }, z.core.$strict>], "kind">>;
499
739
  status: z.ZodEnum<{
500
740
  paused: "paused";
501
741
  active: "active";
@@ -528,7 +768,28 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
528
768
  }, z.core.$strict>>;
529
769
  correct: z.ZodString;
530
770
  }, z.core.$strict>>]>>;
531
- requires: z.ZodArray<z.ZodString>;
771
+ requires: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
772
+ kind: z.ZodLiteral<"completion">;
773
+ quest: z.ZodString;
774
+ scope: z.ZodLiteral<"ever">;
775
+ }, z.core.$strict>, z.ZodObject<{
776
+ kind: z.ZodLiteral<"completion">;
777
+ quest: z.ZodString;
778
+ scope: z.ZodLiteral<"period">;
779
+ period: z.ZodEnum<{
780
+ day: "day";
781
+ week: "week";
782
+ month: "month";
783
+ }>;
784
+ }, z.core.$strict>], "scope">, z.ZodObject<{
785
+ kind: z.ZodLiteral<"balance">;
786
+ balance: z.ZodString;
787
+ minimum: z.ZodNumber;
788
+ }, z.core.$strict>, z.ZodObject<{
789
+ kind: z.ZodLiteral<"group">;
790
+ group: z.ZodString;
791
+ title: z.ZodString;
792
+ }, z.core.$strict>], "kind">>;
532
793
  status: z.ZodEnum<{
533
794
  paused: "paused";
534
795
  active: "active";
@@ -562,7 +823,28 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
562
823
  }, z.core.$strict>>;
563
824
  correct: z.ZodString;
564
825
  }, z.core.$strict>>]>>;
565
- requires: z.ZodArray<z.ZodString>;
826
+ requires: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
827
+ kind: z.ZodLiteral<"completion">;
828
+ quest: z.ZodString;
829
+ scope: z.ZodLiteral<"ever">;
830
+ }, z.core.$strict>, z.ZodObject<{
831
+ kind: z.ZodLiteral<"completion">;
832
+ quest: z.ZodString;
833
+ scope: z.ZodLiteral<"period">;
834
+ period: z.ZodEnum<{
835
+ day: "day";
836
+ week: "week";
837
+ month: "month";
838
+ }>;
839
+ }, z.core.$strict>], "scope">, z.ZodObject<{
840
+ kind: z.ZodLiteral<"balance">;
841
+ balance: z.ZodString;
842
+ minimum: z.ZodNumber;
843
+ }, z.core.$strict>, z.ZodObject<{
844
+ kind: z.ZodLiteral<"group">;
845
+ group: z.ZodString;
846
+ title: z.ZodString;
847
+ }, z.core.$strict>], "kind">>;
566
848
  status: z.ZodEnum<{
567
849
  paused: "paused";
568
850
  active: "active";
@@ -583,13 +865,14 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
583
865
  declare const questCatalogSchema: z.ZodObject<{
584
866
  revision: z.ZodNumber;
585
867
  types: z.ZodArray<z.ZodObject<{
868
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
586
869
  key: z.ZodOptional<z.ZodString>;
587
870
  id: z.ZodString;
588
871
  version: z.ZodString;
589
872
  code: z.ZodString;
590
873
  definition: z.ZodObject<{
591
874
  quest: z.ZodString;
592
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
875
+ evaluatorProtocol: z.ZodLiteral<2>;
593
876
  title: z.ZodString;
594
877
  presentation: z.ZodDefault<z.ZodObject<{
595
878
  quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -613,10 +896,11 @@ declare const questCatalogSchema: z.ZodObject<{
613
896
  }, z.core.$strict>>;
614
897
  integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
615
898
  discord: "discord";
899
+ x: "x";
616
900
  }>>>;
617
901
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
618
902
  kind: z.ZodLiteral<"point-ledger">;
619
- default: z.ZodString;
903
+ default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
620
904
  label: z.ZodString;
621
905
  description: z.ZodOptional<z.ZodString>;
622
906
  }, z.core.$strict>, z.ZodObject<{
@@ -630,7 +914,7 @@ declare const questCatalogSchema: z.ZodObject<{
630
914
  source: z.ZodUnion<readonly [z.ZodObject<{
631
915
  provider: z.ZodLiteral<"domino">;
632
916
  resource: z.ZodLiteral<"point-ledger">;
633
- }, z.core.$strict>, z.ZodObject<{
917
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
634
918
  provider: z.ZodLiteral<"discord">;
635
919
  resource: z.ZodLiteral<"channel">;
636
920
  types: z.ZodArray<z.ZodEnum<{
@@ -641,7 +925,7 @@ declare const questCatalogSchema: z.ZodObject<{
641
925
  provider: z.ZodLiteral<"discord">;
642
926
  resource: z.ZodLiteral<"role">;
643
927
  assignable: z.ZodDefault<z.ZodBoolean>;
644
- }, z.core.$strict>]>;
928
+ }, z.core.$strict>]>]>;
645
929
  label: z.ZodString;
646
930
  description: z.ZodOptional<z.ZodString>;
647
931
  }, z.core.$strict>, z.ZodObject<{
@@ -709,9 +993,11 @@ declare const questCatalogSchema: z.ZodObject<{
709
993
  inventory: z.ZodObject<{
710
994
  kind: z.ZodLiteral<"untracked">;
711
995
  }, z.core.$strict>;
712
- fulfillment: z.ZodObject<{
996
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
713
997
  kind: z.ZodLiteral<"staff-handover">;
714
- }, z.core.$strict>;
998
+ }, z.core.$strict>, z.ZodObject<{
999
+ kind: z.ZodLiteral<"automatic">;
1000
+ }, z.core.$strict>], "kind">;
715
1001
  }, z.core.$strict>;
716
1002
  tier: z.ZodString;
717
1003
  }, z.core.$strict>, z.ZodObject<{
@@ -757,42 +1043,15 @@ declare const questCatalogSchema: z.ZodObject<{
757
1043
  }>>;
758
1044
  }, z.core.$strict>, z.ZodObject<{
759
1045
  kind: z.ZodLiteral<"automatic">;
760
- observation: z.ZodOptional<z.ZodObject<{
761
- source: z.ZodString;
762
- type: z.ZodString;
763
- }, z.core.$strict>>;
764
- content: z.ZodOptional<z.ZodObject<{
1046
+ tracker: z.ZodOptional<z.ZodObject<{
765
1047
  tracker: z.ZodString;
766
- window: z.ZodObject<{
767
- start: z.ZodNumber;
768
- end: z.ZodOptional<z.ZodNumber>;
769
- }, z.core.$strict>;
770
- enrollment: z.ZodDefault<z.ZodEnum<{
771
- none: "none";
772
- required: "required";
773
- }>>;
774
- posts: z.ZodDefault<z.ZodEnum<{
775
- "after-enrollment": "after-enrollment";
776
- "since-start": "since-start";
777
- }>>;
778
- historical: z.ZodDefault<z.ZodEnum<{
779
- automatic: "automatic";
780
- claim: "claim";
781
- staff: "staff";
782
- }>>;
783
- }, z.core.$strict>>;
784
- tracker: z.ZodOptional<z.ZodObject<{
785
- tracker: z.ZodString;
786
- source: z.ZodEnum<{
787
- custom: "custom";
788
- "x-search": "x-search";
789
- }>;
790
- on: z.ZodOptional<z.ZodEnum<{
1048
+ source: z.ZodString;
1049
+ on: z.ZodEnum<{
791
1050
  "new-record": "new-record";
792
1051
  "new-observation": "new-observation";
793
1052
  "data-changed": "data-changed";
794
- }>>;
795
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1053
+ }>;
1054
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
796
1055
  path: z.ZodString;
797
1056
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
798
1057
  }, z.core.$strict>, z.ZodObject<{
@@ -809,38 +1068,89 @@ declare const questCatalogSchema: z.ZodObject<{
809
1068
  lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
810
1069
  setting: z.ZodString;
811
1070
  }, z.core.$strict>]>>;
812
- }, z.core.$strict>]>>;
813
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
1071
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1072
+ path: z.ZodString;
1073
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1074
+ }, z.core.$strict>, z.ZodObject<{
1075
+ path: z.ZodString;
1076
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1077
+ setting: z.ZodString;
1078
+ }, z.core.$strict>]>>;
1079
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1080
+ setting: z.ZodString;
1081
+ }, z.core.$strict>]>>;
1082
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1083
+ setting: z.ZodString;
1084
+ }, z.core.$strict>]>>;
1085
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1086
+ setting: z.ZodString;
1087
+ }, z.core.$strict>]>>;
1088
+ }, z.core.$strict>]>>]>>;
1089
+ beneficiary: z.ZodString;
1090
+ enrollment: z.ZodOptional<z.ZodEnum<{
1091
+ none: "none";
1092
+ required: "required";
1093
+ }>>;
1094
+ since: z.ZodOptional<z.ZodEnum<{
1095
+ activation: "activation";
1096
+ window: "window";
1097
+ enrollment: "enrollment";
1098
+ }>>;
1099
+ historical: z.ZodOptional<z.ZodEnum<{
1100
+ staff: "staff";
1101
+ claim: "claim";
1102
+ automatic: "automatic";
1103
+ }>>;
1104
+ content: z.ZodOptional<z.ZodLiteral<true>>;
814
1105
  }, z.core.$strict>>;
815
1106
  }, z.core.$strict>]>;
816
1107
  performance: z.ZodOptional<z.ZodObject<{
817
- metrics: z.ZodArray<z.ZodEnum<{
818
- likes: "likes";
819
- replies: "replies";
820
- reposts: "reposts";
821
- quotes: "quotes";
822
- views: "views";
823
- bookmarks: "bookmarks";
824
- }>>;
1108
+ metrics: z.ZodArray<z.ZodString>;
825
1109
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
826
1110
  }, z.core.$strict>>;
827
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1111
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
1112
+ kind: z.ZodLiteral<"completion">;
828
1113
  quest: z.ZodString;
829
- }, z.core.$strip>>>;
830
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
831
- kind: z.ZodLiteral<"streak">;
832
- days: z.ZodNumber;
833
- timeZone: z.ZodString;
1114
+ scope: z.ZodLiteral<"ever">;
834
1115
  }, z.core.$strict>, z.ZodObject<{
835
- kind: z.ZodLiteral<"once">;
1116
+ kind: z.ZodLiteral<"completion">;
1117
+ quest: z.ZodString;
1118
+ scope: z.ZodLiteral<"period">;
1119
+ period: z.ZodEnum<{
1120
+ day: "day";
1121
+ week: "week";
1122
+ month: "month";
1123
+ }>;
1124
+ }, z.core.$strict>], "scope">, z.ZodObject<{
1125
+ kind: z.ZodLiteral<"balance">;
1126
+ balance: z.ZodString;
1127
+ minimum: z.ZodNumber;
836
1128
  }, z.core.$strict>, z.ZodObject<{
837
- kind: z.ZodLiteral<"keyed">;
838
- }, z.core.$strict>], "kind">;
1129
+ kind: z.ZodLiteral<"group">;
1130
+ group: z.ZodString;
1131
+ title: z.ZodString;
1132
+ }, z.core.$strict>], "kind">>>;
1133
+ campaign: z.ZodOptional<z.ZodObject<{
1134
+ key: z.ZodString;
1135
+ title: z.ZodString;
1136
+ window: z.ZodOptional<z.ZodObject<{
1137
+ from: z.ZodNumber;
1138
+ until: z.ZodNumber;
1139
+ }, z.core.$strict>>;
1140
+ enrollment: z.ZodDefault<z.ZodEnum<{
1141
+ none: "none";
1142
+ required: "required";
1143
+ }>>;
1144
+ }, z.core.$strict>>;
1145
+ availability: z.ZodOptional<z.ZodObject<{
1146
+ from: z.ZodNumber;
1147
+ until: z.ZodNumber;
1148
+ }, z.core.$strict>>;
839
1149
  visibility: z.ZodDefault<z.ZodEnum<{
840
1150
  visible: "visible";
841
1151
  hidden: "hidden";
842
1152
  }>>;
843
- profile: z.ZodOptional<z.ZodObject<{
1153
+ profile: z.ZodDefault<z.ZodObject<{
844
1154
  visible: z.ZodBoolean;
845
1155
  }, z.core.$strict>>;
846
1156
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -850,15 +1160,48 @@ declare const questCatalogSchema: z.ZodObject<{
850
1160
  project: "project";
851
1161
  }>;
852
1162
  period: z.ZodEnum<{
853
- day: "day";
854
1163
  lifetime: "lifetime";
1164
+ day: "day";
855
1165
  week: "week";
1166
+ month: "month";
856
1167
  }>;
857
1168
  limit: z.ZodNumber;
858
1169
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
859
1170
  balance: z.ZodString;
860
1171
  }, z.core.$strict>]>;
861
1172
  }, z.core.$strict>>>;
1173
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1174
+ kind: z.ZodLiteral<"streak">;
1175
+ days: z.ZodNumber;
1176
+ }, z.core.$strip>, z.ZodObject<{
1177
+ kind: z.ZodLiteral<"progress">;
1178
+ goal: z.ZodObject<{
1179
+ kind: z.ZodLiteral<"count">;
1180
+ count: z.ZodNumber;
1181
+ }, z.core.$strict>;
1182
+ window: z.ZodDiscriminatedUnion<[z.ZodObject<{
1183
+ kind: z.ZodLiteral<"lifetime">;
1184
+ }, z.core.$strict>, z.ZodObject<{
1185
+ kind: z.ZodLiteral<"calendar">;
1186
+ period: z.ZodEnum<{
1187
+ day: "day";
1188
+ week: "week";
1189
+ month: "month";
1190
+ }>;
1191
+ latenessMs: z.ZodDefault<z.ZodNumber>;
1192
+ }, z.core.$strict>, z.ZodObject<{
1193
+ kind: z.ZodLiteral<"rolling">;
1194
+ durationMs: z.ZodNumber;
1195
+ }, z.core.$strict>], "kind">;
1196
+ repeat: z.ZodDefault<z.ZodEnum<{
1197
+ repeat: "repeat";
1198
+ once: "once";
1199
+ }>>;
1200
+ }, z.core.$strict>, z.ZodObject<{
1201
+ kind: z.ZodLiteral<"once">;
1202
+ }, z.core.$strict>, z.ZodObject<{
1203
+ kind: z.ZodLiteral<"keyed">;
1204
+ }, z.core.$strict>], "kind">;
862
1205
  }, z.core.$strict>;
863
1206
  provider: z.ZodEnum<{
864
1207
  "workers-ai": "workers-ai";
@@ -870,6 +1213,7 @@ declare const questCatalogSchema: z.ZodObject<{
870
1213
  createdAt: z.ZodNumber;
871
1214
  }, z.core.$strip>>;
872
1215
  collections: z.ZodArray<z.ZodObject<{
1216
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
873
1217
  id: z.ZodString;
874
1218
  key: z.ZodOptional<z.ZodString>;
875
1219
  title: z.ZodString;
@@ -888,7 +1232,28 @@ declare const questCatalogSchema: z.ZodObject<{
888
1232
  }, z.core.$strict>>;
889
1233
  correct: z.ZodString;
890
1234
  }, z.core.$strict>>]>>;
891
- requires: z.ZodArray<z.ZodString>;
1235
+ requires: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
1236
+ kind: z.ZodLiteral<"completion">;
1237
+ quest: z.ZodString;
1238
+ scope: z.ZodLiteral<"ever">;
1239
+ }, z.core.$strict>, z.ZodObject<{
1240
+ kind: z.ZodLiteral<"completion">;
1241
+ quest: z.ZodString;
1242
+ scope: z.ZodLiteral<"period">;
1243
+ period: z.ZodEnum<{
1244
+ day: "day";
1245
+ week: "week";
1246
+ month: "month";
1247
+ }>;
1248
+ }, z.core.$strict>], "scope">, z.ZodObject<{
1249
+ kind: z.ZodLiteral<"balance">;
1250
+ balance: z.ZodString;
1251
+ minimum: z.ZodNumber;
1252
+ }, z.core.$strict>, z.ZodObject<{
1253
+ kind: z.ZodLiteral<"group">;
1254
+ group: z.ZodString;
1255
+ title: z.ZodString;
1256
+ }, z.core.$strict>], "kind">>;
892
1257
  status: z.ZodEnum<{
893
1258
  paused: "paused";
894
1259
  active: "active";
@@ -913,7 +1278,28 @@ declare const questCatalogSchema: z.ZodObject<{
913
1278
  }, z.core.$strict>>;
914
1279
  correct: z.ZodString;
915
1280
  }, z.core.$strict>>]>>;
916
- requires: z.ZodArray<z.ZodString>;
1281
+ requires: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
1282
+ kind: z.ZodLiteral<"completion">;
1283
+ quest: z.ZodString;
1284
+ scope: z.ZodLiteral<"ever">;
1285
+ }, z.core.$strict>, z.ZodObject<{
1286
+ kind: z.ZodLiteral<"completion">;
1287
+ quest: z.ZodString;
1288
+ scope: z.ZodLiteral<"period">;
1289
+ period: z.ZodEnum<{
1290
+ day: "day";
1291
+ week: "week";
1292
+ month: "month";
1293
+ }>;
1294
+ }, z.core.$strict>], "scope">, z.ZodObject<{
1295
+ kind: z.ZodLiteral<"balance">;
1296
+ balance: z.ZodString;
1297
+ minimum: z.ZodNumber;
1298
+ }, z.core.$strict>, z.ZodObject<{
1299
+ kind: z.ZodLiteral<"group">;
1300
+ group: z.ZodString;
1301
+ title: z.ZodString;
1302
+ }, z.core.$strict>], "kind">>;
917
1303
  status: z.ZodEnum<{
918
1304
  paused: "paused";
919
1305
  active: "active";
@@ -947,7 +1333,28 @@ declare const questCatalogSchema: z.ZodObject<{
947
1333
  }, z.core.$strict>>;
948
1334
  correct: z.ZodString;
949
1335
  }, z.core.$strict>>]>>;
950
- requires: z.ZodArray<z.ZodString>;
1336
+ requires: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
1337
+ kind: z.ZodLiteral<"completion">;
1338
+ quest: z.ZodString;
1339
+ scope: z.ZodLiteral<"ever">;
1340
+ }, z.core.$strict>, z.ZodObject<{
1341
+ kind: z.ZodLiteral<"completion">;
1342
+ quest: z.ZodString;
1343
+ scope: z.ZodLiteral<"period">;
1344
+ period: z.ZodEnum<{
1345
+ day: "day";
1346
+ week: "week";
1347
+ month: "month";
1348
+ }>;
1349
+ }, z.core.$strict>], "scope">, z.ZodObject<{
1350
+ kind: z.ZodLiteral<"balance">;
1351
+ balance: z.ZodString;
1352
+ minimum: z.ZodNumber;
1353
+ }, z.core.$strict>, z.ZodObject<{
1354
+ kind: z.ZodLiteral<"group">;
1355
+ group: z.ZodString;
1356
+ title: z.ZodString;
1357
+ }, z.core.$strict>], "kind">>;
951
1358
  status: z.ZodEnum<{
952
1359
  paused: "paused";
953
1360
  active: "active";
@@ -965,9 +1372,9 @@ declare const questCatalogSchema: z.ZodObject<{
965
1372
  status: z.ZodLiteral<"published">;
966
1373
  releaseIds: z.ZodArray<z.ZodString>;
967
1374
  }, z.core.$strip>], "status">>;
968
- releases: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1375
+ releases: z.ZodDefault<z.ZodArray<z.ZodObject<{
969
1376
  quest: z.ZodString;
970
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1377
+ evaluatorProtocol: z.ZodLiteral<2>;
971
1378
  title: z.ZodString;
972
1379
  presentation: z.ZodDefault<z.ZodObject<{
973
1380
  quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -991,10 +1398,11 @@ declare const questCatalogSchema: z.ZodObject<{
991
1398
  }, z.core.$strict>>;
992
1399
  integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
993
1400
  discord: "discord";
1401
+ x: "x";
994
1402
  }>>>;
995
1403
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
996
1404
  kind: z.ZodLiteral<"point-ledger">;
997
- default: z.ZodString;
1405
+ default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
998
1406
  label: z.ZodString;
999
1407
  description: z.ZodOptional<z.ZodString>;
1000
1408
  }, z.core.$strict>, z.ZodObject<{
@@ -1008,7 +1416,7 @@ declare const questCatalogSchema: z.ZodObject<{
1008
1416
  source: z.ZodUnion<readonly [z.ZodObject<{
1009
1417
  provider: z.ZodLiteral<"domino">;
1010
1418
  resource: z.ZodLiteral<"point-ledger">;
1011
- }, z.core.$strict>, z.ZodObject<{
1419
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
1012
1420
  provider: z.ZodLiteral<"discord">;
1013
1421
  resource: z.ZodLiteral<"channel">;
1014
1422
  types: z.ZodArray<z.ZodEnum<{
@@ -1019,7 +1427,7 @@ declare const questCatalogSchema: z.ZodObject<{
1019
1427
  provider: z.ZodLiteral<"discord">;
1020
1428
  resource: z.ZodLiteral<"role">;
1021
1429
  assignable: z.ZodDefault<z.ZodBoolean>;
1022
- }, z.core.$strict>]>;
1430
+ }, z.core.$strict>]>]>;
1023
1431
  label: z.ZodString;
1024
1432
  description: z.ZodOptional<z.ZodString>;
1025
1433
  }, z.core.$strict>, z.ZodObject<{
@@ -1087,9 +1495,11 @@ declare const questCatalogSchema: z.ZodObject<{
1087
1495
  inventory: z.ZodObject<{
1088
1496
  kind: z.ZodLiteral<"untracked">;
1089
1497
  }, z.core.$strict>;
1090
- fulfillment: z.ZodObject<{
1498
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
1091
1499
  kind: z.ZodLiteral<"staff-handover">;
1092
- }, z.core.$strict>;
1500
+ }, z.core.$strict>, z.ZodObject<{
1501
+ kind: z.ZodLiteral<"automatic">;
1502
+ }, z.core.$strict>], "kind">;
1093
1503
  }, z.core.$strict>;
1094
1504
  tier: z.ZodString;
1095
1505
  }, z.core.$strict>, z.ZodObject<{
@@ -1135,42 +1545,15 @@ declare const questCatalogSchema: z.ZodObject<{
1135
1545
  }>>;
1136
1546
  }, z.core.$strict>, z.ZodObject<{
1137
1547
  kind: z.ZodLiteral<"automatic">;
1138
- observation: z.ZodOptional<z.ZodObject<{
1139
- source: z.ZodString;
1140
- type: z.ZodString;
1141
- }, z.core.$strict>>;
1142
- content: z.ZodOptional<z.ZodObject<{
1143
- tracker: z.ZodString;
1144
- window: z.ZodObject<{
1145
- start: z.ZodNumber;
1146
- end: z.ZodOptional<z.ZodNumber>;
1147
- }, z.core.$strict>;
1148
- enrollment: z.ZodDefault<z.ZodEnum<{
1149
- none: "none";
1150
- required: "required";
1151
- }>>;
1152
- posts: z.ZodDefault<z.ZodEnum<{
1153
- "after-enrollment": "after-enrollment";
1154
- "since-start": "since-start";
1155
- }>>;
1156
- historical: z.ZodDefault<z.ZodEnum<{
1157
- automatic: "automatic";
1158
- claim: "claim";
1159
- staff: "staff";
1160
- }>>;
1161
- }, z.core.$strict>>;
1162
1548
  tracker: z.ZodOptional<z.ZodObject<{
1163
1549
  tracker: z.ZodString;
1164
- source: z.ZodEnum<{
1165
- custom: "custom";
1166
- "x-search": "x-search";
1167
- }>;
1168
- on: z.ZodOptional<z.ZodEnum<{
1550
+ source: z.ZodString;
1551
+ on: z.ZodEnum<{
1169
1552
  "new-record": "new-record";
1170
1553
  "new-observation": "new-observation";
1171
1554
  "data-changed": "data-changed";
1172
- }>>;
1173
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1555
+ }>;
1556
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1174
1557
  path: z.ZodString;
1175
1558
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1176
1559
  }, z.core.$strict>, z.ZodObject<{
@@ -1187,38 +1570,89 @@ declare const questCatalogSchema: z.ZodObject<{
1187
1570
  lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1188
1571
  setting: z.ZodString;
1189
1572
  }, z.core.$strict>]>>;
1190
- }, z.core.$strict>]>>;
1191
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
1573
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1574
+ path: z.ZodString;
1575
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1576
+ }, z.core.$strict>, z.ZodObject<{
1577
+ path: z.ZodString;
1578
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1579
+ setting: z.ZodString;
1580
+ }, z.core.$strict>]>>;
1581
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1582
+ setting: z.ZodString;
1583
+ }, z.core.$strict>]>>;
1584
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1585
+ setting: z.ZodString;
1586
+ }, z.core.$strict>]>>;
1587
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1588
+ setting: z.ZodString;
1589
+ }, z.core.$strict>]>>;
1590
+ }, z.core.$strict>]>>]>>;
1591
+ beneficiary: z.ZodString;
1592
+ enrollment: z.ZodOptional<z.ZodEnum<{
1593
+ none: "none";
1594
+ required: "required";
1595
+ }>>;
1596
+ since: z.ZodOptional<z.ZodEnum<{
1597
+ activation: "activation";
1598
+ window: "window";
1599
+ enrollment: "enrollment";
1600
+ }>>;
1601
+ historical: z.ZodOptional<z.ZodEnum<{
1602
+ staff: "staff";
1603
+ claim: "claim";
1604
+ automatic: "automatic";
1605
+ }>>;
1606
+ content: z.ZodOptional<z.ZodLiteral<true>>;
1192
1607
  }, z.core.$strict>>;
1193
1608
  }, z.core.$strict>]>;
1194
1609
  performance: z.ZodOptional<z.ZodObject<{
1195
- metrics: z.ZodArray<z.ZodEnum<{
1196
- likes: "likes";
1197
- replies: "replies";
1198
- reposts: "reposts";
1199
- quotes: "quotes";
1200
- views: "views";
1201
- bookmarks: "bookmarks";
1202
- }>>;
1610
+ metrics: z.ZodArray<z.ZodString>;
1203
1611
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
1204
1612
  }, z.core.$strict>>;
1205
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1613
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
1614
+ kind: z.ZodLiteral<"completion">;
1206
1615
  quest: z.ZodString;
1207
- }, z.core.$strip>>>;
1208
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1209
- kind: z.ZodLiteral<"streak">;
1210
- days: z.ZodNumber;
1211
- timeZone: z.ZodString;
1616
+ scope: z.ZodLiteral<"ever">;
1212
1617
  }, z.core.$strict>, z.ZodObject<{
1213
- kind: z.ZodLiteral<"once">;
1618
+ kind: z.ZodLiteral<"completion">;
1619
+ quest: z.ZodString;
1620
+ scope: z.ZodLiteral<"period">;
1621
+ period: z.ZodEnum<{
1622
+ day: "day";
1623
+ week: "week";
1624
+ month: "month";
1625
+ }>;
1626
+ }, z.core.$strict>], "scope">, z.ZodObject<{
1627
+ kind: z.ZodLiteral<"balance">;
1628
+ balance: z.ZodString;
1629
+ minimum: z.ZodNumber;
1214
1630
  }, z.core.$strict>, z.ZodObject<{
1215
- kind: z.ZodLiteral<"keyed">;
1216
- }, z.core.$strict>], "kind">;
1631
+ kind: z.ZodLiteral<"group">;
1632
+ group: z.ZodString;
1633
+ title: z.ZodString;
1634
+ }, z.core.$strict>], "kind">>>;
1635
+ campaign: z.ZodOptional<z.ZodObject<{
1636
+ key: z.ZodString;
1637
+ title: z.ZodString;
1638
+ window: z.ZodOptional<z.ZodObject<{
1639
+ from: z.ZodNumber;
1640
+ until: z.ZodNumber;
1641
+ }, z.core.$strict>>;
1642
+ enrollment: z.ZodDefault<z.ZodEnum<{
1643
+ none: "none";
1644
+ required: "required";
1645
+ }>>;
1646
+ }, z.core.$strict>>;
1647
+ availability: z.ZodOptional<z.ZodObject<{
1648
+ from: z.ZodNumber;
1649
+ until: z.ZodNumber;
1650
+ }, z.core.$strict>>;
1217
1651
  visibility: z.ZodDefault<z.ZodEnum<{
1218
1652
  visible: "visible";
1219
1653
  hidden: "hidden";
1220
1654
  }>>;
1221
- profile: z.ZodOptional<z.ZodObject<{
1655
+ profile: z.ZodDefault<z.ZodObject<{
1222
1656
  visible: z.ZodBoolean;
1223
1657
  }, z.core.$strict>>;
1224
1658
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1228,15 +1662,48 @@ declare const questCatalogSchema: z.ZodObject<{
1228
1662
  project: "project";
1229
1663
  }>;
1230
1664
  period: z.ZodEnum<{
1231
- day: "day";
1232
1665
  lifetime: "lifetime";
1666
+ day: "day";
1233
1667
  week: "week";
1668
+ month: "month";
1234
1669
  }>;
1235
1670
  limit: z.ZodNumber;
1236
1671
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1237
1672
  balance: z.ZodString;
1238
1673
  }, z.core.$strict>]>;
1239
1674
  }, z.core.$strict>>>;
1675
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1676
+ kind: z.ZodLiteral<"streak">;
1677
+ days: z.ZodNumber;
1678
+ }, z.core.$strip>, z.ZodObject<{
1679
+ kind: z.ZodLiteral<"progress">;
1680
+ goal: z.ZodObject<{
1681
+ kind: z.ZodLiteral<"count">;
1682
+ count: z.ZodNumber;
1683
+ }, z.core.$strict>;
1684
+ window: z.ZodDiscriminatedUnion<[z.ZodObject<{
1685
+ kind: z.ZodLiteral<"lifetime">;
1686
+ }, z.core.$strict>, z.ZodObject<{
1687
+ kind: z.ZodLiteral<"calendar">;
1688
+ period: z.ZodEnum<{
1689
+ day: "day";
1690
+ week: "week";
1691
+ month: "month";
1692
+ }>;
1693
+ latenessMs: z.ZodDefault<z.ZodNumber>;
1694
+ }, z.core.$strict>, z.ZodObject<{
1695
+ kind: z.ZodLiteral<"rolling">;
1696
+ durationMs: z.ZodNumber;
1697
+ }, z.core.$strict>], "kind">;
1698
+ repeat: z.ZodDefault<z.ZodEnum<{
1699
+ repeat: "repeat";
1700
+ once: "once";
1701
+ }>>;
1702
+ }, z.core.$strict>, z.ZodObject<{
1703
+ kind: z.ZodLiteral<"once">;
1704
+ }, z.core.$strict>, z.ZodObject<{
1705
+ kind: z.ZodLiteral<"keyed">;
1706
+ }, z.core.$strict>], "kind">;
1240
1707
  key: z.ZodOptional<z.ZodString>;
1241
1708
  code: z.ZodString;
1242
1709
  provider: z.ZodEnum<{
@@ -1248,7 +1715,6 @@ declare const questCatalogSchema: z.ZodObject<{
1248
1715
  }>;
1249
1716
  id: z.ZodString;
1250
1717
  createdAt: z.ZodNumber;
1251
- legacy: z.ZodDefault<z.ZodBoolean>;
1252
1718
  origin: z.ZodOptional<z.ZodObject<{
1253
1719
  typeVersion: z.ZodString;
1254
1720
  }, z.core.$strict>>;
@@ -1278,389 +1744,50 @@ declare const questCatalogSchema: z.ZodObject<{
1278
1744
  }, z.core.$strict>>]>>;
1279
1745
  preserved: z.ZodArray<z.ZodString>;
1280
1746
  }, z.core.$strict>>;
1281
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
1282
- quest: z.ZodString;
1283
- title: z.ZodString;
1284
- criteria: z.ZodString;
1285
- humanReview: z.ZodBoolean;
1286
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1287
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
1288
- balance: z.ZodString;
1289
- amount: z.ZodNumber;
1290
- }, z.core.$strict>, z.ZodObject<{
1291
- kind: z.ZodLiteral<"tier">;
1292
- reward: z.ZodObject<{
1293
- id: z.ZodString;
1294
- title: z.ZodString;
1295
- tiers: z.ZodArray<z.ZodObject<{
1296
- id: z.ZodString;
1297
- title: z.ZodString;
1298
- }, z.core.$strict>>;
1299
- inventory: z.ZodObject<{
1300
- kind: z.ZodLiteral<"untracked">;
1301
- }, z.core.$strict>;
1302
- fulfillment: z.ZodObject<{
1303
- kind: z.ZodLiteral<"staff-handover">;
1304
- }, z.core.$strict>;
1305
- }, z.core.$strict>;
1306
- tier: z.ZodString;
1307
- }, z.core.$strict>, z.ZodObject<{
1308
- kind: z.ZodLiteral<"integration">;
1309
- provider: z.ZodLiteral<"discord">;
1310
- action: z.ZodLiteral<"grant-role">;
1311
- roleId: z.ZodString;
1312
- }, z.core.$strict>]>>;
1747
+ }, z.core.$strict>>>;
1748
+ supportedInteractions: z.ZodArray<z.ZodEnum<{
1749
+ text: "text";
1750
+ staff: "staff";
1751
+ claim: "claim";
1752
+ automatic: "automatic";
1753
+ url: "url";
1754
+ quiz: "quiz";
1755
+ photo: "photo";
1756
+ }>>;
1757
+ }, z.core.$strip>;
1758
+ declare const catalogDeploymentSchema: z.ZodObject<{
1759
+ expectedRevision: z.ZodNumber;
1760
+ types: z.ZodDefault<z.ZodArray<z.ZodObject<{
1313
1761
  code: z.ZodString;
1314
1762
  provider: z.ZodEnum<{
1315
1763
  "workers-ai": "workers-ai";
1316
- "fixture-pass": "fixture-pass";
1317
- "fixture-fail": "fixture-fail";
1318
- "fixture-unclear": "fixture-unclear";
1319
- "fixture-error": "fixture-error";
1320
1764
  }>;
1321
- id: z.ZodString;
1322
- createdAt: z.ZodNumber;
1323
- }, z.core.$strip>, z.ZodTransform<{
1324
- quest: string;
1325
- runtimeVersion: 1 | 2;
1326
- title: string;
1327
- presentation: {
1328
- quiz?: {
1329
- id: string;
1330
- prompt: string;
1331
- choices: {
1332
- id: string;
1333
- label: string;
1334
- }[];
1335
- }[] | undefined;
1336
- instructions?: string | undefined;
1337
- video?: {
1338
- url: string;
1339
- poster?: string | undefined;
1340
- captions?: {
1341
- url: string;
1342
- language: string;
1343
- label: string;
1344
- } | undefined;
1345
- } | undefined;
1346
- };
1347
- integrations: "discord"[];
1348
- fields: Record<string, {
1349
- kind: "point-ledger";
1350
- default: string;
1351
- label: string;
1352
- description?: string | undefined;
1353
- } | {
1354
- kind: "datetime";
1355
- default: string;
1356
- label: string;
1357
- description?: string | undefined;
1358
- } | {
1359
- kind: "resource";
1360
- default: string;
1361
- source: {
1362
- provider: "discord";
1363
- resource: "channel";
1364
- types: ("text" | "announcement")[];
1365
- } | {
1366
- provider: "domino";
1367
- resource: "point-ledger";
1368
- } | {
1369
- provider: "discord";
1370
- resource: "role";
1371
- assignable: boolean;
1372
- };
1373
- label: string;
1374
- description?: string | undefined;
1375
- } | {
1376
- kind: "quiz";
1377
- default: {
1378
- id: string;
1379
- prompt: string;
1380
- choices: {
1381
- id: string;
1382
- label: string;
1383
- }[];
1384
- correct: string;
1385
- }[];
1386
- label: string;
1387
- description?: string | undefined;
1388
- } | {
1389
- kind: "text";
1390
- default: string;
1391
- minLength: number;
1392
- maxLength: number;
1393
- multiline: boolean;
1394
- label: string;
1395
- description?: string | undefined;
1396
- } | {
1397
- kind: "integer";
1398
- default: number;
1399
- min: number;
1400
- max: number;
1401
- label: string;
1402
- description?: string | undefined;
1403
- } | {
1404
- kind: "boolean";
1405
- default: boolean;
1406
- label: string;
1407
- description?: string | undefined;
1408
- } | {
1409
- kind: "choice";
1410
- default: string;
1411
- options: string[];
1412
- label: string;
1413
- description?: string | undefined;
1414
- }>;
1415
- values: Record<string, string | number | boolean | {
1416
- id: string;
1417
- prompt: string;
1418
- choices: {
1419
- id: string;
1420
- label: string;
1421
- }[];
1422
- correct: string;
1423
- }[]>;
1424
- rewards: ({
1425
- kind: "tier";
1426
- reward: {
1427
- id: string;
1428
- title: string;
1429
- tiers: {
1430
- id: string;
1431
- title: string;
1432
- }[];
1433
- inventory: {
1434
- kind: "untracked";
1435
- };
1436
- fulfillment: {
1437
- kind: "staff-handover";
1438
- };
1439
- };
1440
- tier: string;
1441
- } | {
1442
- kind: "points";
1443
- balance: string;
1444
- amount: number;
1445
- } | {
1446
- kind: "integration";
1447
- provider: "discord";
1448
- action: "grant-role";
1449
- roleId: string;
1450
- })[];
1451
- humanReview: boolean;
1452
- trigger: {
1453
- kind: "automatic";
1454
- observation?: {
1455
- source: string;
1456
- type: string;
1457
- } | undefined;
1458
- content?: {
1459
- tracker: string;
1460
- window: {
1461
- start: number;
1462
- end?: number | undefined;
1463
- };
1464
- enrollment: "none" | "required";
1465
- posts: "after-enrollment" | "since-start";
1466
- historical: "automatic" | "claim" | "staff";
1467
- } | undefined;
1468
- tracker?: {
1469
- tracker: string;
1470
- source: "custom" | "x-search";
1471
- beneficiary: string;
1472
- on?: "new-record" | "new-observation" | "data-changed" | undefined;
1473
- where?: {
1474
- path: string;
1475
- gt?: number | {
1476
- setting: string;
1477
- } | undefined;
1478
- gte?: number | {
1479
- setting: string;
1480
- } | undefined;
1481
- lt?: number | {
1482
- setting: string;
1483
- } | undefined;
1484
- lte?: number | {
1485
- setting: string;
1486
- } | undefined;
1487
- } | {
1488
- path: string;
1489
- equals: string | number | boolean;
1490
- } | undefined;
1491
- } | undefined;
1492
- } | {
1493
- kind: "manual";
1494
- input: "text";
1495
- constraints: {
1496
- required: boolean;
1497
- minLength: number;
1498
- maxLength: number;
1499
- };
1500
- actor?: "member" | "staff" | undefined;
1501
- } | {
1502
- kind: "manual";
1503
- input: "url";
1504
- constraints: {
1505
- required: boolean;
1506
- allowedHosts?: string[] | undefined;
1507
- };
1508
- actor?: "member" | "staff" | undefined;
1509
- } | {
1510
- kind: "manual";
1511
- input: "none" | "quiz" | "photo";
1512
- actor?: "member" | "staff" | undefined;
1513
- };
1514
- requires: {
1515
- quest: string;
1516
- }[];
1517
- completion: {
1518
- kind: "streak";
1519
- days: number;
1520
- timeZone: string;
1521
- } | {
1522
- kind: "once";
1523
- } | {
1524
- kind: "keyed";
1525
- };
1526
- visibility: "visible" | "hidden";
1527
- budgets: {
1528
- id: string;
1529
- scope: "member" | "project";
1530
- period: "day" | "lifetime" | "week";
1531
- limit: number;
1532
- cost: number | {
1533
- balance: string;
1534
- };
1535
- }[];
1536
- code: string;
1537
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1538
- id: string;
1539
- createdAt: number;
1540
- legacy: boolean;
1541
- lifecycle: "paused" | "active" | "archived";
1542
- performance?: {
1543
- metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
1544
- maxAgeMs: number;
1545
- } | undefined;
1546
- profile?: {
1547
- visible: boolean;
1548
- } | undefined;
1549
- key?: string | undefined;
1550
- origin?: {
1551
- typeVersion: string;
1552
- } | undefined;
1553
- configuration?: {
1554
- defaults: Record<string, string | number | boolean | {
1555
- id: string;
1556
- prompt: string;
1557
- choices: {
1558
- id: string;
1559
- label: string;
1560
- }[];
1561
- correct: string;
1562
- }[]>;
1563
- overrides: Record<string, string | number | boolean | {
1564
- id: string;
1565
- prompt: string;
1566
- choices: {
1567
- id: string;
1568
- label: string;
1569
- }[];
1570
- correct: string;
1571
- }[]>;
1572
- preserved: string[];
1573
- } | undefined;
1574
- }, {
1575
- quest: string;
1576
- title: string;
1577
- criteria: string;
1578
- humanReview: boolean;
1579
- rewards: ({
1580
- kind: "tier";
1581
- reward: {
1582
- id: string;
1583
- title: string;
1584
- tiers: {
1585
- id: string;
1586
- title: string;
1587
- }[];
1588
- inventory: {
1589
- kind: "untracked";
1590
- };
1591
- fulfillment: {
1592
- kind: "staff-handover";
1593
- };
1594
- };
1595
- tier: string;
1596
- } | {
1597
- kind: "points";
1598
- balance: string;
1599
- amount: number;
1600
- } | {
1601
- kind: "integration";
1602
- provider: "discord";
1603
- action: "grant-role";
1604
- roleId: string;
1605
- })[];
1606
- code: string;
1607
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1608
- id: string;
1609
- createdAt: number;
1610
- }>>]>>>;
1611
- supportedInteractions: z.ZodArray<z.ZodEnum<{
1612
- text: "text";
1613
- url: "url";
1614
- automatic: "automatic";
1615
- claim: "claim";
1616
- staff: "staff";
1617
- quiz: "quiz";
1618
- photo: "photo";
1619
- }>>;
1620
- }, z.core.$strip>;
1621
- declare const catalogDeploymentSchema: z.ZodObject<{
1622
- expectedRevision: z.ZodNumber;
1623
- types: z.ZodDefault<z.ZodArray<z.ZodObject<{
1624
- code: z.ZodString;
1625
- provider: z.ZodEnum<{
1626
- "workers-ai": "workers-ai";
1627
- }>;
1628
- }, z.core.$strip>>>;
1629
- collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
1630
- title: z.ZodString;
1631
- key: z.ZodOptional<z.ZodString>;
1632
- id: z.ZodOptional<z.ZodString>;
1633
- }, z.core.$strict>, z.ZodTransform<Omit<{
1634
- title: string;
1635
- key?: string | undefined;
1636
- id?: string | undefined;
1637
- }, "id" | "key"> & {
1638
- key: string;
1639
- }, {
1640
- title: string;
1641
- key?: string | undefined;
1642
- id?: string | undefined;
1643
- }>>>>;
1644
- supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1645
- text: "text";
1646
- url: "url";
1647
- automatic: "automatic";
1648
- claim: "claim";
1649
- staff: "staff";
1650
- quiz: "quiz";
1651
- photo: "photo";
1652
- }>>>;
1653
- }, z.core.$strict>;
1654
- declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1655
- revision: z.ZodNumber;
1656
- types: z.ZodArray<z.ZodObject<{
1657
- key: z.ZodOptional<z.ZodString>;
1765
+ }, z.core.$strip>>>;
1766
+ collections: z.ZodDefault<z.ZodArray<z.ZodObject<{
1767
+ title: z.ZodString;
1768
+ key: z.ZodString;
1769
+ }, z.core.$strict>>>;
1770
+ supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1771
+ text: "text";
1772
+ staff: "staff";
1773
+ claim: "claim";
1774
+ automatic: "automatic";
1775
+ url: "url";
1776
+ quiz: "quiz";
1777
+ photo: "photo";
1778
+ }>>>;
1779
+ }, z.core.$strict>;
1780
+ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1781
+ revision: z.ZodNumber;
1782
+ types: z.ZodArray<z.ZodObject<{
1783
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1784
+ key: z.ZodOptional<z.ZodString>;
1658
1785
  id: z.ZodString;
1659
1786
  version: z.ZodString;
1660
1787
  code: z.ZodString;
1661
1788
  definition: z.ZodObject<{
1662
1789
  quest: z.ZodString;
1663
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1790
+ evaluatorProtocol: z.ZodLiteral<2>;
1664
1791
  title: z.ZodString;
1665
1792
  presentation: z.ZodDefault<z.ZodObject<{
1666
1793
  quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1684,10 +1811,11 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1684
1811
  }, z.core.$strict>>;
1685
1812
  integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1686
1813
  discord: "discord";
1814
+ x: "x";
1687
1815
  }>>>;
1688
1816
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1689
1817
  kind: z.ZodLiteral<"point-ledger">;
1690
- default: z.ZodString;
1818
+ default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
1691
1819
  label: z.ZodString;
1692
1820
  description: z.ZodOptional<z.ZodString>;
1693
1821
  }, z.core.$strict>, z.ZodObject<{
@@ -1701,7 +1829,7 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1701
1829
  source: z.ZodUnion<readonly [z.ZodObject<{
1702
1830
  provider: z.ZodLiteral<"domino">;
1703
1831
  resource: z.ZodLiteral<"point-ledger">;
1704
- }, z.core.$strict>, z.ZodObject<{
1832
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
1705
1833
  provider: z.ZodLiteral<"discord">;
1706
1834
  resource: z.ZodLiteral<"channel">;
1707
1835
  types: z.ZodArray<z.ZodEnum<{
@@ -1712,7 +1840,7 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1712
1840
  provider: z.ZodLiteral<"discord">;
1713
1841
  resource: z.ZodLiteral<"role">;
1714
1842
  assignable: z.ZodDefault<z.ZodBoolean>;
1715
- }, z.core.$strict>]>;
1843
+ }, z.core.$strict>]>]>;
1716
1844
  label: z.ZodString;
1717
1845
  description: z.ZodOptional<z.ZodString>;
1718
1846
  }, z.core.$strict>, z.ZodObject<{
@@ -1780,9 +1908,11 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1780
1908
  inventory: z.ZodObject<{
1781
1909
  kind: z.ZodLiteral<"untracked">;
1782
1910
  }, z.core.$strict>;
1783
- fulfillment: z.ZodObject<{
1911
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
1784
1912
  kind: z.ZodLiteral<"staff-handover">;
1785
- }, z.core.$strict>;
1913
+ }, z.core.$strict>, z.ZodObject<{
1914
+ kind: z.ZodLiteral<"automatic">;
1915
+ }, z.core.$strict>], "kind">;
1786
1916
  }, z.core.$strict>;
1787
1917
  tier: z.ZodString;
1788
1918
  }, z.core.$strict>, z.ZodObject<{
@@ -1828,42 +1958,15 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1828
1958
  }>>;
1829
1959
  }, z.core.$strict>, z.ZodObject<{
1830
1960
  kind: z.ZodLiteral<"automatic">;
1831
- observation: z.ZodOptional<z.ZodObject<{
1832
- source: z.ZodString;
1833
- type: z.ZodString;
1834
- }, z.core.$strict>>;
1835
- content: z.ZodOptional<z.ZodObject<{
1836
- tracker: z.ZodString;
1837
- window: z.ZodObject<{
1838
- start: z.ZodNumber;
1839
- end: z.ZodOptional<z.ZodNumber>;
1840
- }, z.core.$strict>;
1841
- enrollment: z.ZodDefault<z.ZodEnum<{
1842
- none: "none";
1843
- required: "required";
1844
- }>>;
1845
- posts: z.ZodDefault<z.ZodEnum<{
1846
- "after-enrollment": "after-enrollment";
1847
- "since-start": "since-start";
1848
- }>>;
1849
- historical: z.ZodDefault<z.ZodEnum<{
1850
- automatic: "automatic";
1851
- claim: "claim";
1852
- staff: "staff";
1853
- }>>;
1854
- }, z.core.$strict>>;
1855
1961
  tracker: z.ZodOptional<z.ZodObject<{
1856
1962
  tracker: z.ZodString;
1857
- source: z.ZodEnum<{
1858
- custom: "custom";
1859
- "x-search": "x-search";
1860
- }>;
1861
- on: z.ZodOptional<z.ZodEnum<{
1963
+ source: z.ZodString;
1964
+ on: z.ZodEnum<{
1862
1965
  "new-record": "new-record";
1863
1966
  "new-observation": "new-observation";
1864
1967
  "data-changed": "data-changed";
1865
- }>>;
1866
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1968
+ }>;
1969
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1867
1970
  path: z.ZodString;
1868
1971
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1869
1972
  }, z.core.$strict>, z.ZodObject<{
@@ -1880,38 +1983,89 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1880
1983
  lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1881
1984
  setting: z.ZodString;
1882
1985
  }, z.core.$strict>]>>;
1883
- }, z.core.$strict>]>>;
1884
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
1986
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1987
+ path: z.ZodString;
1988
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1989
+ }, z.core.$strict>, z.ZodObject<{
1990
+ path: z.ZodString;
1991
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1992
+ setting: z.ZodString;
1993
+ }, z.core.$strict>]>>;
1994
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1995
+ setting: z.ZodString;
1996
+ }, z.core.$strict>]>>;
1997
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1998
+ setting: z.ZodString;
1999
+ }, z.core.$strict>]>>;
2000
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2001
+ setting: z.ZodString;
2002
+ }, z.core.$strict>]>>;
2003
+ }, z.core.$strict>]>>]>>;
2004
+ beneficiary: z.ZodString;
2005
+ enrollment: z.ZodOptional<z.ZodEnum<{
2006
+ none: "none";
2007
+ required: "required";
2008
+ }>>;
2009
+ since: z.ZodOptional<z.ZodEnum<{
2010
+ activation: "activation";
2011
+ window: "window";
2012
+ enrollment: "enrollment";
2013
+ }>>;
2014
+ historical: z.ZodOptional<z.ZodEnum<{
2015
+ staff: "staff";
2016
+ claim: "claim";
2017
+ automatic: "automatic";
2018
+ }>>;
2019
+ content: z.ZodOptional<z.ZodLiteral<true>>;
1885
2020
  }, z.core.$strict>>;
1886
2021
  }, z.core.$strict>]>;
1887
2022
  performance: z.ZodOptional<z.ZodObject<{
1888
- metrics: z.ZodArray<z.ZodEnum<{
1889
- likes: "likes";
1890
- replies: "replies";
1891
- reposts: "reposts";
1892
- quotes: "quotes";
1893
- views: "views";
1894
- bookmarks: "bookmarks";
1895
- }>>;
2023
+ metrics: z.ZodArray<z.ZodString>;
1896
2024
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
1897
2025
  }, z.core.$strict>>;
1898
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
2026
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
2027
+ kind: z.ZodLiteral<"completion">;
1899
2028
  quest: z.ZodString;
1900
- }, z.core.$strip>>>;
1901
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1902
- kind: z.ZodLiteral<"streak">;
1903
- days: z.ZodNumber;
1904
- timeZone: z.ZodString;
2029
+ scope: z.ZodLiteral<"ever">;
1905
2030
  }, z.core.$strict>, z.ZodObject<{
1906
- kind: z.ZodLiteral<"once">;
2031
+ kind: z.ZodLiteral<"completion">;
2032
+ quest: z.ZodString;
2033
+ scope: z.ZodLiteral<"period">;
2034
+ period: z.ZodEnum<{
2035
+ day: "day";
2036
+ week: "week";
2037
+ month: "month";
2038
+ }>;
2039
+ }, z.core.$strict>], "scope">, z.ZodObject<{
2040
+ kind: z.ZodLiteral<"balance">;
2041
+ balance: z.ZodString;
2042
+ minimum: z.ZodNumber;
1907
2043
  }, z.core.$strict>, z.ZodObject<{
1908
- kind: z.ZodLiteral<"keyed">;
1909
- }, z.core.$strict>], "kind">;
2044
+ kind: z.ZodLiteral<"group">;
2045
+ group: z.ZodString;
2046
+ title: z.ZodString;
2047
+ }, z.core.$strict>], "kind">>>;
2048
+ campaign: z.ZodOptional<z.ZodObject<{
2049
+ key: z.ZodString;
2050
+ title: z.ZodString;
2051
+ window: z.ZodOptional<z.ZodObject<{
2052
+ from: z.ZodNumber;
2053
+ until: z.ZodNumber;
2054
+ }, z.core.$strict>>;
2055
+ enrollment: z.ZodDefault<z.ZodEnum<{
2056
+ none: "none";
2057
+ required: "required";
2058
+ }>>;
2059
+ }, z.core.$strict>>;
2060
+ availability: z.ZodOptional<z.ZodObject<{
2061
+ from: z.ZodNumber;
2062
+ until: z.ZodNumber;
2063
+ }, z.core.$strict>>;
1910
2064
  visibility: z.ZodDefault<z.ZodEnum<{
1911
2065
  visible: "visible";
1912
2066
  hidden: "hidden";
1913
2067
  }>>;
1914
- profile: z.ZodOptional<z.ZodObject<{
2068
+ profile: z.ZodDefault<z.ZodObject<{
1915
2069
  visible: z.ZodBoolean;
1916
2070
  }, z.core.$strict>>;
1917
2071
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1921,15 +2075,48 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1921
2075
  project: "project";
1922
2076
  }>;
1923
2077
  period: z.ZodEnum<{
1924
- day: "day";
1925
2078
  lifetime: "lifetime";
2079
+ day: "day";
1926
2080
  week: "week";
2081
+ month: "month";
1927
2082
  }>;
1928
2083
  limit: z.ZodNumber;
1929
2084
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1930
2085
  balance: z.ZodString;
1931
2086
  }, z.core.$strict>]>;
1932
2087
  }, z.core.$strict>>>;
2088
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
2089
+ kind: z.ZodLiteral<"streak">;
2090
+ days: z.ZodNumber;
2091
+ }, z.core.$strip>, z.ZodObject<{
2092
+ kind: z.ZodLiteral<"progress">;
2093
+ goal: z.ZodObject<{
2094
+ kind: z.ZodLiteral<"count">;
2095
+ count: z.ZodNumber;
2096
+ }, z.core.$strict>;
2097
+ window: z.ZodDiscriminatedUnion<[z.ZodObject<{
2098
+ kind: z.ZodLiteral<"lifetime">;
2099
+ }, z.core.$strict>, z.ZodObject<{
2100
+ kind: z.ZodLiteral<"calendar">;
2101
+ period: z.ZodEnum<{
2102
+ day: "day";
2103
+ week: "week";
2104
+ month: "month";
2105
+ }>;
2106
+ latenessMs: z.ZodDefault<z.ZodNumber>;
2107
+ }, z.core.$strict>, z.ZodObject<{
2108
+ kind: z.ZodLiteral<"rolling">;
2109
+ durationMs: z.ZodNumber;
2110
+ }, z.core.$strict>], "kind">;
2111
+ repeat: z.ZodDefault<z.ZodEnum<{
2112
+ repeat: "repeat";
2113
+ once: "once";
2114
+ }>>;
2115
+ }, z.core.$strict>, z.ZodObject<{
2116
+ kind: z.ZodLiteral<"once">;
2117
+ }, z.core.$strict>, z.ZodObject<{
2118
+ kind: z.ZodLiteral<"keyed">;
2119
+ }, z.core.$strict>], "kind">;
1933
2120
  }, z.core.$strict>;
1934
2121
  provider: z.ZodEnum<{
1935
2122
  "workers-ai": "workers-ai";
@@ -1941,16 +2128,17 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1941
2128
  createdAt: z.ZodNumber;
1942
2129
  }, z.core.$strip>>;
1943
2130
  collections: z.ZodArray<z.ZodObject<{
2131
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1944
2132
  id: z.ZodString;
1945
2133
  key: z.ZodOptional<z.ZodString>;
1946
2134
  title: z.ZodString;
1947
2135
  }, z.core.$strict>>;
1948
2136
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1949
2137
  text: "text";
1950
- url: "url";
1951
- automatic: "automatic";
1952
- claim: "claim";
1953
2138
  staff: "staff";
2139
+ claim: "claim";
2140
+ automatic: "automatic";
2141
+ url: "url";
1954
2142
  quiz: "quiz";
1955
2143
  photo: "photo";
1956
2144
  }>>;
@@ -1974,7 +2162,28 @@ declare const saveQuestDraftSchema: z.ZodObject<{
1974
2162
  }, z.core.$strict>>;
1975
2163
  correct: z.ZodString;
1976
2164
  }, z.core.$strict>>]>>;
1977
- requires: z.ZodArray<z.ZodString>;
2165
+ requires: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
2166
+ kind: z.ZodLiteral<"completion">;
2167
+ quest: z.ZodString;
2168
+ scope: z.ZodLiteral<"ever">;
2169
+ }, z.core.$strict>, z.ZodObject<{
2170
+ kind: z.ZodLiteral<"completion">;
2171
+ quest: z.ZodString;
2172
+ scope: z.ZodLiteral<"period">;
2173
+ period: z.ZodEnum<{
2174
+ day: "day";
2175
+ week: "week";
2176
+ month: "month";
2177
+ }>;
2178
+ }, z.core.$strict>], "scope">, z.ZodObject<{
2179
+ kind: z.ZodLiteral<"balance">;
2180
+ balance: z.ZodString;
2181
+ minimum: z.ZodNumber;
2182
+ }, z.core.$strict>, z.ZodObject<{
2183
+ kind: z.ZodLiteral<"group">;
2184
+ group: z.ZodString;
2185
+ title: z.ZodString;
2186
+ }, z.core.$strict>], "kind">>;
1978
2187
  status: z.ZodEnum<{
1979
2188
  paused: "paused";
1980
2189
  active: "active";
@@ -2045,12 +2254,12 @@ declare const questViewSchema: z.ZodObject<{
2045
2254
  }, z.core.$strict>>;
2046
2255
  }, z.core.$strict>>;
2047
2256
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2257
+ discord: "discord";
2048
2258
  google: "google";
2049
2259
  apple: "apple";
2050
2260
  x: "x";
2051
- discord: "discord";
2052
2261
  }>>>;
2053
- trigger: z.ZodUnion<readonly [z.ZodObject<{
2262
+ trigger: z.ZodUnion<(z.ZodObject<{
2054
2263
  kind: z.ZodLiteral<"manual">;
2055
2264
  input: z.ZodLiteral<"text">;
2056
2265
  constraints: z.ZodObject<{
@@ -2062,7 +2271,7 @@ declare const questViewSchema: z.ZodObject<{
2062
2271
  member: "member";
2063
2272
  staff: "staff";
2064
2273
  }>>;
2065
- }, z.core.$strict>, z.ZodObject<{
2274
+ }, z.core.$strip> | z.ZodObject<{
2066
2275
  kind: z.ZodLiteral<"manual">;
2067
2276
  input: z.ZodLiteral<"url">;
2068
2277
  constraints: z.ZodObject<{
@@ -2073,7 +2282,7 @@ declare const questViewSchema: z.ZodObject<{
2073
2282
  member: "member";
2074
2283
  staff: "staff";
2075
2284
  }>>;
2076
- }, z.core.$strict>, z.ZodObject<{
2285
+ }, z.core.$strip> | z.ZodObject<{
2077
2286
  kind: z.ZodLiteral<"manual">;
2078
2287
  input: z.ZodEnum<{
2079
2288
  none: "none";
@@ -2084,44 +2293,17 @@ declare const questViewSchema: z.ZodObject<{
2084
2293
  member: "member";
2085
2294
  staff: "staff";
2086
2295
  }>>;
2087
- }, z.core.$strict>, z.ZodObject<{
2296
+ }, z.core.$strip> | z.ZodObject<{
2088
2297
  kind: z.ZodLiteral<"automatic">;
2089
- observation: z.ZodOptional<z.ZodObject<{
2090
- source: z.ZodString;
2091
- type: z.ZodString;
2092
- }, z.core.$strict>>;
2093
- content: z.ZodOptional<z.ZodObject<{
2094
- tracker: z.ZodString;
2095
- window: z.ZodObject<{
2096
- start: z.ZodNumber;
2097
- end: z.ZodOptional<z.ZodNumber>;
2098
- }, z.core.$strict>;
2099
- enrollment: z.ZodDefault<z.ZodEnum<{
2100
- none: "none";
2101
- required: "required";
2102
- }>>;
2103
- posts: z.ZodDefault<z.ZodEnum<{
2104
- "after-enrollment": "after-enrollment";
2105
- "since-start": "since-start";
2106
- }>>;
2107
- historical: z.ZodDefault<z.ZodEnum<{
2108
- automatic: "automatic";
2109
- claim: "claim";
2110
- staff: "staff";
2111
- }>>;
2112
- }, z.core.$strict>>;
2113
2298
  tracker: z.ZodOptional<z.ZodObject<{
2114
2299
  tracker: z.ZodString;
2115
- source: z.ZodEnum<{
2116
- custom: "custom";
2117
- "x-search": "x-search";
2118
- }>;
2119
- on: z.ZodOptional<z.ZodEnum<{
2300
+ source: z.ZodString;
2301
+ on: z.ZodEnum<{
2120
2302
  "new-record": "new-record";
2121
2303
  "new-observation": "new-observation";
2122
2304
  "data-changed": "data-changed";
2123
- }>>;
2124
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2305
+ }>;
2306
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
2125
2307
  path: z.ZodString;
2126
2308
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2127
2309
  }, z.core.$strict>, z.ZodObject<{
@@ -2138,50 +2320,135 @@ declare const questViewSchema: z.ZodObject<{
2138
2320
  lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2139
2321
  setting: z.ZodString;
2140
2322
  }, z.core.$strict>]>>;
2141
- }, z.core.$strict>]>>;
2142
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
2323
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2324
+ path: z.ZodString;
2325
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2326
+ }, z.core.$strict>, z.ZodObject<{
2327
+ path: z.ZodString;
2328
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2329
+ setting: z.ZodString;
2330
+ }, z.core.$strict>]>>;
2331
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2332
+ setting: z.ZodString;
2333
+ }, z.core.$strict>]>>;
2334
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2335
+ setting: z.ZodString;
2336
+ }, z.core.$strict>]>>;
2337
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2338
+ setting: z.ZodString;
2339
+ }, z.core.$strict>]>>;
2340
+ }, z.core.$strict>]>>]>>;
2341
+ beneficiary: z.ZodString;
2342
+ enrollment: z.ZodOptional<z.ZodEnum<{
2343
+ none: "none";
2344
+ required: "required";
2345
+ }>>;
2346
+ since: z.ZodOptional<z.ZodEnum<{
2347
+ activation: "activation";
2348
+ window: "window";
2349
+ enrollment: "enrollment";
2350
+ }>>;
2351
+ historical: z.ZodOptional<z.ZodEnum<{
2352
+ staff: "staff";
2353
+ claim: "claim";
2354
+ automatic: "automatic";
2355
+ }>>;
2356
+ content: z.ZodOptional<z.ZodLiteral<true>>;
2143
2357
  }, z.core.$strict>>;
2144
- }, z.core.$strict>]>;
2145
- availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2358
+ }, z.core.$strip>)[]>;
2359
+ availability: z.ZodUnion<(z.ZodObject<{
2146
2360
  kind: z.ZodLiteral<"available">;
2147
2361
  input: z.ZodEnum<{
2148
2362
  text: "text";
2149
- url: "url";
2150
2363
  none: "none";
2364
+ url: "url";
2151
2365
  quiz: "quiz";
2152
2366
  photo: "photo";
2153
2367
  }>;
2154
- }, z.core.$strict>, z.ZodObject<{
2368
+ }, z.core.$strip> | z.ZodObject<{
2155
2369
  kind: z.ZodLiteral<"completed">;
2156
- }, z.core.$strict>, z.ZodObject<{
2370
+ }, z.core.$strip> | z.ZodObject<{
2157
2371
  kind: z.ZodLiteral<"locked">;
2158
- missing: z.ZodArray<z.ZodObject<{
2372
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2373
+ kind: z.ZodLiteral<"completion">;
2159
2374
  quest: z.ZodString;
2160
2375
  title: z.ZodString;
2161
- }, z.core.$strip>>;
2162
- }, z.core.$strict>, z.ZodObject<{
2376
+ scope: z.ZodLiteral<"ever">;
2377
+ }, z.core.$strip>, z.ZodObject<{
2378
+ kind: z.ZodLiteral<"completion">;
2379
+ quest: z.ZodString;
2380
+ title: z.ZodString;
2381
+ scope: z.ZodLiteral<"period">;
2382
+ period: z.ZodEnum<{
2383
+ day: "day";
2384
+ week: "week";
2385
+ month: "month";
2386
+ }>;
2387
+ resetsAt: z.ZodNumber;
2388
+ }, z.core.$strip>, z.ZodObject<{
2389
+ kind: z.ZodLiteral<"balance">;
2390
+ balance: z.ZodString;
2391
+ title: z.ZodString;
2392
+ minimum: z.ZodNumber;
2393
+ current: z.ZodNumber;
2394
+ }, z.core.$strip>, z.ZodObject<{
2395
+ kind: z.ZodLiteral<"group">;
2396
+ group: z.ZodString;
2397
+ title: z.ZodString;
2398
+ }, z.core.$strip>]>>;
2399
+ }, z.core.$strip> | z.ZodObject<{
2400
+ kind: z.ZodLiteral<"blocked">;
2401
+ reason: z.ZodEnum<{
2402
+ paused: "paused";
2403
+ "outside-window": "outside-window";
2404
+ "budget-exhausted": "budget-exhausted";
2405
+ "connection-required": "connection-required";
2406
+ "wallet-required": "wallet-required";
2407
+ "enrollment-required": "enrollment-required";
2408
+ }>;
2409
+ resetsAt: z.ZodOptional<z.ZodNumber>;
2410
+ }, z.core.$strip> | z.ZodObject<{
2163
2411
  kind: z.ZodLiteral<"staff-required">;
2164
- }, z.core.$strict>, z.ZodObject<{
2412
+ }, z.core.$strip> | z.ZodObject<{
2165
2413
  kind: z.ZodLiteral<"automatic">;
2166
- observation: z.ZodOptional<z.ZodObject<{
2167
- source: z.ZodString;
2168
- type: z.ZodString;
2169
- }, z.core.$strict>>;
2170
- }, z.core.$strict>, z.ZodObject<{
2414
+ }, z.core.$strip> | z.ZodObject<{
2171
2415
  kind: z.ZodLiteral<"checking">;
2172
2416
  attempt: z.ZodString;
2173
- }, z.core.$strict>, z.ZodObject<{
2417
+ }, z.core.$strip> | z.ZodObject<{
2174
2418
  kind: z.ZodLiteral<"needs-review">;
2175
2419
  attempt: z.ZodString;
2176
- }, z.core.$strict>, z.ZodObject<{
2420
+ }, z.core.$strip> | z.ZodObject<{
2177
2421
  kind: z.ZodLiteral<"retryable">;
2178
2422
  attempt: z.ZodString;
2179
- }, z.core.$strict>], "kind">;
2423
+ }, z.core.$strip>)[]>;
2180
2424
  completed: z.ZodBoolean;
2181
2425
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2182
2426
  kind: z.ZodLiteral<"streak">;
2183
2427
  days: z.ZodNumber;
2184
- timeZone: z.ZodString;
2428
+ }, z.core.$strip>, z.ZodObject<{
2429
+ kind: z.ZodLiteral<"progress">;
2430
+ goal: z.ZodObject<{
2431
+ kind: z.ZodLiteral<"count">;
2432
+ count: z.ZodNumber;
2433
+ }, z.core.$strict>;
2434
+ window: z.ZodDiscriminatedUnion<[z.ZodObject<{
2435
+ kind: z.ZodLiteral<"lifetime">;
2436
+ }, z.core.$strict>, z.ZodObject<{
2437
+ kind: z.ZodLiteral<"calendar">;
2438
+ period: z.ZodEnum<{
2439
+ day: "day";
2440
+ week: "week";
2441
+ month: "month";
2442
+ }>;
2443
+ latenessMs: z.ZodDefault<z.ZodNumber>;
2444
+ }, z.core.$strict>, z.ZodObject<{
2445
+ kind: z.ZodLiteral<"rolling">;
2446
+ durationMs: z.ZodNumber;
2447
+ }, z.core.$strict>], "kind">;
2448
+ repeat: z.ZodDefault<z.ZodEnum<{
2449
+ repeat: "repeat";
2450
+ once: "once";
2451
+ }>>;
2185
2452
  }, z.core.$strict>, z.ZodObject<{
2186
2453
  kind: z.ZodLiteral<"once">;
2187
2454
  }, z.core.$strict>, z.ZodObject<{
@@ -2217,15 +2484,114 @@ declare const questViewSchema: z.ZodObject<{
2217
2484
  achievedAt: z.ZodNumber;
2218
2485
  }, z.core.$strip>], "status">;
2219
2486
  }, z.core.$strip>>>;
2220
- completionCount: z.ZodDefault<z.ZodNumber>;
2487
+ counter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2488
+ goal: z.ZodNumber;
2489
+ current: z.ZodNumber;
2490
+ window: z.ZodObject<{
2491
+ key: z.ZodString;
2492
+ start: z.ZodNullable<z.ZodNumber>;
2493
+ end: z.ZodNullable<z.ZodNumber>;
2494
+ }, z.core.$strip>;
2495
+ repeat: z.ZodEnum<{
2496
+ repeat: "repeat";
2497
+ once: "once";
2498
+ }>;
2499
+ settled: z.ZodNumber;
2500
+ latest: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2501
+ id: z.ZodString;
2502
+ ordinal: z.ZodNumber;
2503
+ achievedAt: z.ZodNumber;
2504
+ window: z.ZodString;
2505
+ status: z.ZodLiteral<"revoked">;
2506
+ completion: z.ZodString;
2507
+ revokedAt: z.ZodNumber;
2508
+ }, z.core.$strip>, z.ZodObject<{
2509
+ id: z.ZodString;
2510
+ ordinal: z.ZodNumber;
2511
+ achievedAt: z.ZodNumber;
2512
+ window: z.ZodString;
2513
+ status: z.ZodLiteral<"awarded">;
2514
+ completion: z.ZodString;
2515
+ }, z.core.$strip>, z.ZodObject<{
2516
+ id: z.ZodString;
2517
+ ordinal: z.ZodNumber;
2518
+ achievedAt: z.ZodNumber;
2519
+ window: z.ZodString;
2520
+ status: z.ZodLiteral<"budget-exhausted">;
2521
+ budget: z.ZodString;
2522
+ }, z.core.$strip>], "status">>;
2523
+ }, z.core.$strip>>>;
2524
+ progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2525
+ current: z.ZodNumber;
2526
+ target: z.ZodNumber;
2527
+ reason: z.ZodString;
2528
+ }, z.core.$strip>>>;
2529
+ completionCount: z.ZodDefault<z.ZodNumber>;
2221
2530
  visibility: z.ZodDefault<z.ZodEnum<{
2222
2531
  visible: "visible";
2223
2532
  hidden: "hidden";
2224
2533
  }>>;
2225
- missing: z.ZodArray<z.ZodObject<{
2534
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2535
+ kind: z.ZodLiteral<"completion">;
2226
2536
  quest: z.ZodString;
2227
2537
  title: z.ZodString;
2228
- }, z.core.$strip>>;
2538
+ scope: z.ZodLiteral<"ever">;
2539
+ }, z.core.$strip>, z.ZodObject<{
2540
+ kind: z.ZodLiteral<"completion">;
2541
+ quest: z.ZodString;
2542
+ title: z.ZodString;
2543
+ scope: z.ZodLiteral<"period">;
2544
+ period: z.ZodEnum<{
2545
+ day: "day";
2546
+ week: "week";
2547
+ month: "month";
2548
+ }>;
2549
+ resetsAt: z.ZodNumber;
2550
+ }, z.core.$strip>, z.ZodObject<{
2551
+ kind: z.ZodLiteral<"balance">;
2552
+ balance: z.ZodString;
2553
+ title: z.ZodString;
2554
+ minimum: z.ZodNumber;
2555
+ current: z.ZodNumber;
2556
+ }, z.core.$strip>, z.ZodObject<{
2557
+ kind: z.ZodLiteral<"group">;
2558
+ group: z.ZodString;
2559
+ title: z.ZodString;
2560
+ }, z.core.$strip>]>>;
2561
+ campaign: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2562
+ key: z.ZodString;
2563
+ title: z.ZodString;
2564
+ window: z.ZodOptional<z.ZodObject<{
2565
+ from: z.ZodNumber;
2566
+ until: z.ZodNumber;
2567
+ }, z.core.$strict>>;
2568
+ enrollment: z.ZodDefault<z.ZodEnum<{
2569
+ none: "none";
2570
+ required: "required";
2571
+ }>>;
2572
+ enrolledAt: z.ZodNullable<z.ZodNumber>;
2573
+ withdrawnAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2574
+ withdrawalReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2575
+ }, z.core.$strict>>>;
2576
+ window: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2577
+ from: z.ZodNumber;
2578
+ until: z.ZodNumber;
2579
+ }, z.core.$strict>>>;
2580
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2581
+ id: z.ZodString;
2582
+ scope: z.ZodEnum<{
2583
+ member: "member";
2584
+ project: "project";
2585
+ }>;
2586
+ period: z.ZodEnum<{
2587
+ lifetime: "lifetime";
2588
+ day: "day";
2589
+ week: "week";
2590
+ month: "month";
2591
+ }>;
2592
+ remaining: z.ZodNumber;
2593
+ resetsAt: z.ZodNullable<z.ZodNumber>;
2594
+ }, z.core.$strip>>>;
2229
2595
  attempt: z.ZodNullable<z.ZodObject<{
2230
2596
  id: z.ZodString;
2231
2597
  release: z.ZodString;
@@ -2245,15 +2611,7 @@ declare const questViewSchema: z.ZodObject<{
2245
2611
  kind: z.ZodLiteral<"url">;
2246
2612
  value: z.ZodString;
2247
2613
  }, z.core.$strict>]>>;
2248
- status: z.ZodEnum<{
2249
- "needs-review": "needs-review";
2250
- failed: "failed";
2251
- queued: "queued";
2252
- evaluating: "evaluating";
2253
- accepted: "accepted";
2254
- progressed: "progressed";
2255
- rejected: "rejected";
2256
- }>;
2614
+ status: z.ZodType<AttemptStatus, unknown, z.core.$ZodTypeInternals<AttemptStatus, unknown>>;
2257
2615
  reason: z.ZodNullable<z.ZodString>;
2258
2616
  retries: z.ZodNumber;
2259
2617
  generation: z.ZodNumber;
@@ -2274,9 +2632,11 @@ declare const questViewSchema: z.ZodObject<{
2274
2632
  inventory: z.ZodObject<{
2275
2633
  kind: z.ZodLiteral<"untracked">;
2276
2634
  }, z.core.$strict>;
2277
- fulfillment: z.ZodObject<{
2635
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
2278
2636
  kind: z.ZodLiteral<"staff-handover">;
2279
- }, z.core.$strict>;
2637
+ }, z.core.$strict>, z.ZodObject<{
2638
+ kind: z.ZodLiteral<"automatic">;
2639
+ }, z.core.$strict>], "kind">;
2280
2640
  }, z.core.$strict>;
2281
2641
  tier: z.ZodString;
2282
2642
  }, z.core.$strict>, z.ZodObject<{
@@ -2285,16 +2645,26 @@ declare const questViewSchema: z.ZodObject<{
2285
2645
  action: z.ZodLiteral<"grant-role">;
2286
2646
  roleId: z.ZodString;
2287
2647
  }, z.core.$strict>]>>>>;
2648
+ evaluationRun: z.ZodDefault<z.ZodNumber>;
2649
+ deferCount: z.ZodDefault<z.ZodNumber>;
2650
+ deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2651
+ nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2652
+ code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2653
+ progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2654
+ current: z.ZodNumber;
2655
+ target: z.ZodNumber;
2656
+ reason: z.ZodString;
2657
+ }, z.core.$strip>>>;
2288
2658
  requestedReview: z.ZodDefault<z.ZodBoolean>;
2289
2659
  createdAt: z.ZodNumber;
2290
2660
  }, z.core.$strip>>;
2291
2661
  release: z.ZodString;
2292
2662
  interaction: z.ZodEnum<{
2293
2663
  text: "text";
2294
- url: "url";
2295
- automatic: "automatic";
2296
- claim: "claim";
2297
2664
  staff: "staff";
2665
+ claim: "claim";
2666
+ automatic: "automatic";
2667
+ url: "url";
2298
2668
  quiz: "quiz";
2299
2669
  photo: "photo";
2300
2670
  }>;
@@ -2355,12 +2725,12 @@ declare const collectionViewSchema: z.ZodObject<{
2355
2725
  }, z.core.$strict>>;
2356
2726
  }, z.core.$strict>>;
2357
2727
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2728
+ discord: "discord";
2358
2729
  google: "google";
2359
2730
  apple: "apple";
2360
2731
  x: "x";
2361
- discord: "discord";
2362
2732
  }>>>;
2363
- trigger: z.ZodUnion<readonly [z.ZodObject<{
2733
+ trigger: z.ZodUnion<(z.ZodObject<{
2364
2734
  kind: z.ZodLiteral<"manual">;
2365
2735
  input: z.ZodLiteral<"text">;
2366
2736
  constraints: z.ZodObject<{
@@ -2372,7 +2742,7 @@ declare const collectionViewSchema: z.ZodObject<{
2372
2742
  member: "member";
2373
2743
  staff: "staff";
2374
2744
  }>>;
2375
- }, z.core.$strict>, z.ZodObject<{
2745
+ }, z.core.$strip> | z.ZodObject<{
2376
2746
  kind: z.ZodLiteral<"manual">;
2377
2747
  input: z.ZodLiteral<"url">;
2378
2748
  constraints: z.ZodObject<{
@@ -2383,7 +2753,7 @@ declare const collectionViewSchema: z.ZodObject<{
2383
2753
  member: "member";
2384
2754
  staff: "staff";
2385
2755
  }>>;
2386
- }, z.core.$strict>, z.ZodObject<{
2756
+ }, z.core.$strip> | z.ZodObject<{
2387
2757
  kind: z.ZodLiteral<"manual">;
2388
2758
  input: z.ZodEnum<{
2389
2759
  none: "none";
@@ -2394,44 +2764,17 @@ declare const collectionViewSchema: z.ZodObject<{
2394
2764
  member: "member";
2395
2765
  staff: "staff";
2396
2766
  }>>;
2397
- }, z.core.$strict>, z.ZodObject<{
2767
+ }, z.core.$strip> | z.ZodObject<{
2398
2768
  kind: z.ZodLiteral<"automatic">;
2399
- observation: z.ZodOptional<z.ZodObject<{
2400
- source: z.ZodString;
2401
- type: z.ZodString;
2402
- }, z.core.$strict>>;
2403
- content: z.ZodOptional<z.ZodObject<{
2404
- tracker: z.ZodString;
2405
- window: z.ZodObject<{
2406
- start: z.ZodNumber;
2407
- end: z.ZodOptional<z.ZodNumber>;
2408
- }, z.core.$strict>;
2409
- enrollment: z.ZodDefault<z.ZodEnum<{
2410
- none: "none";
2411
- required: "required";
2412
- }>>;
2413
- posts: z.ZodDefault<z.ZodEnum<{
2414
- "after-enrollment": "after-enrollment";
2415
- "since-start": "since-start";
2416
- }>>;
2417
- historical: z.ZodDefault<z.ZodEnum<{
2418
- automatic: "automatic";
2419
- claim: "claim";
2420
- staff: "staff";
2421
- }>>;
2422
- }, z.core.$strict>>;
2423
2769
  tracker: z.ZodOptional<z.ZodObject<{
2424
2770
  tracker: z.ZodString;
2425
- source: z.ZodEnum<{
2426
- custom: "custom";
2427
- "x-search": "x-search";
2428
- }>;
2429
- on: z.ZodOptional<z.ZodEnum<{
2771
+ source: z.ZodString;
2772
+ on: z.ZodEnum<{
2430
2773
  "new-record": "new-record";
2431
2774
  "new-observation": "new-observation";
2432
2775
  "data-changed": "data-changed";
2433
- }>>;
2434
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2776
+ }>;
2777
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
2435
2778
  path: z.ZodString;
2436
2779
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2437
2780
  }, z.core.$strict>, z.ZodObject<{
@@ -2448,50 +2791,135 @@ declare const collectionViewSchema: z.ZodObject<{
2448
2791
  lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2449
2792
  setting: z.ZodString;
2450
2793
  }, z.core.$strict>]>>;
2451
- }, z.core.$strict>]>>;
2452
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
2794
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2795
+ path: z.ZodString;
2796
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2797
+ }, z.core.$strict>, z.ZodObject<{
2798
+ path: z.ZodString;
2799
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2800
+ setting: z.ZodString;
2801
+ }, z.core.$strict>]>>;
2802
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2803
+ setting: z.ZodString;
2804
+ }, z.core.$strict>]>>;
2805
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2806
+ setting: z.ZodString;
2807
+ }, z.core.$strict>]>>;
2808
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2809
+ setting: z.ZodString;
2810
+ }, z.core.$strict>]>>;
2811
+ }, z.core.$strict>]>>]>>;
2812
+ beneficiary: z.ZodString;
2813
+ enrollment: z.ZodOptional<z.ZodEnum<{
2814
+ none: "none";
2815
+ required: "required";
2816
+ }>>;
2817
+ since: z.ZodOptional<z.ZodEnum<{
2818
+ activation: "activation";
2819
+ window: "window";
2820
+ enrollment: "enrollment";
2821
+ }>>;
2822
+ historical: z.ZodOptional<z.ZodEnum<{
2823
+ staff: "staff";
2824
+ claim: "claim";
2825
+ automatic: "automatic";
2826
+ }>>;
2827
+ content: z.ZodOptional<z.ZodLiteral<true>>;
2453
2828
  }, z.core.$strict>>;
2454
- }, z.core.$strict>]>;
2455
- availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2829
+ }, z.core.$strip>)[]>;
2830
+ availability: z.ZodUnion<(z.ZodObject<{
2456
2831
  kind: z.ZodLiteral<"available">;
2457
2832
  input: z.ZodEnum<{
2458
2833
  text: "text";
2459
- url: "url";
2460
2834
  none: "none";
2835
+ url: "url";
2461
2836
  quiz: "quiz";
2462
2837
  photo: "photo";
2463
2838
  }>;
2464
- }, z.core.$strict>, z.ZodObject<{
2839
+ }, z.core.$strip> | z.ZodObject<{
2465
2840
  kind: z.ZodLiteral<"completed">;
2466
- }, z.core.$strict>, z.ZodObject<{
2841
+ }, z.core.$strip> | z.ZodObject<{
2467
2842
  kind: z.ZodLiteral<"locked">;
2468
- missing: z.ZodArray<z.ZodObject<{
2843
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2844
+ kind: z.ZodLiteral<"completion">;
2469
2845
  quest: z.ZodString;
2470
2846
  title: z.ZodString;
2471
- }, z.core.$strip>>;
2472
- }, z.core.$strict>, z.ZodObject<{
2847
+ scope: z.ZodLiteral<"ever">;
2848
+ }, z.core.$strip>, z.ZodObject<{
2849
+ kind: z.ZodLiteral<"completion">;
2850
+ quest: z.ZodString;
2851
+ title: z.ZodString;
2852
+ scope: z.ZodLiteral<"period">;
2853
+ period: z.ZodEnum<{
2854
+ day: "day";
2855
+ week: "week";
2856
+ month: "month";
2857
+ }>;
2858
+ resetsAt: z.ZodNumber;
2859
+ }, z.core.$strip>, z.ZodObject<{
2860
+ kind: z.ZodLiteral<"balance">;
2861
+ balance: z.ZodString;
2862
+ title: z.ZodString;
2863
+ minimum: z.ZodNumber;
2864
+ current: z.ZodNumber;
2865
+ }, z.core.$strip>, z.ZodObject<{
2866
+ kind: z.ZodLiteral<"group">;
2867
+ group: z.ZodString;
2868
+ title: z.ZodString;
2869
+ }, z.core.$strip>]>>;
2870
+ }, z.core.$strip> | z.ZodObject<{
2871
+ kind: z.ZodLiteral<"blocked">;
2872
+ reason: z.ZodEnum<{
2873
+ paused: "paused";
2874
+ "outside-window": "outside-window";
2875
+ "budget-exhausted": "budget-exhausted";
2876
+ "connection-required": "connection-required";
2877
+ "wallet-required": "wallet-required";
2878
+ "enrollment-required": "enrollment-required";
2879
+ }>;
2880
+ resetsAt: z.ZodOptional<z.ZodNumber>;
2881
+ }, z.core.$strip> | z.ZodObject<{
2473
2882
  kind: z.ZodLiteral<"staff-required">;
2474
- }, z.core.$strict>, z.ZodObject<{
2883
+ }, z.core.$strip> | z.ZodObject<{
2475
2884
  kind: z.ZodLiteral<"automatic">;
2476
- observation: z.ZodOptional<z.ZodObject<{
2477
- source: z.ZodString;
2478
- type: z.ZodString;
2479
- }, z.core.$strict>>;
2480
- }, z.core.$strict>, z.ZodObject<{
2885
+ }, z.core.$strip> | z.ZodObject<{
2481
2886
  kind: z.ZodLiteral<"checking">;
2482
2887
  attempt: z.ZodString;
2483
- }, z.core.$strict>, z.ZodObject<{
2888
+ }, z.core.$strip> | z.ZodObject<{
2484
2889
  kind: z.ZodLiteral<"needs-review">;
2485
2890
  attempt: z.ZodString;
2486
- }, z.core.$strict>, z.ZodObject<{
2891
+ }, z.core.$strip> | z.ZodObject<{
2487
2892
  kind: z.ZodLiteral<"retryable">;
2488
2893
  attempt: z.ZodString;
2489
- }, z.core.$strict>], "kind">;
2894
+ }, z.core.$strip>)[]>;
2490
2895
  completed: z.ZodBoolean;
2491
2896
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2492
2897
  kind: z.ZodLiteral<"streak">;
2493
2898
  days: z.ZodNumber;
2494
- timeZone: z.ZodString;
2899
+ }, z.core.$strip>, z.ZodObject<{
2900
+ kind: z.ZodLiteral<"progress">;
2901
+ goal: z.ZodObject<{
2902
+ kind: z.ZodLiteral<"count">;
2903
+ count: z.ZodNumber;
2904
+ }, z.core.$strict>;
2905
+ window: z.ZodDiscriminatedUnion<[z.ZodObject<{
2906
+ kind: z.ZodLiteral<"lifetime">;
2907
+ }, z.core.$strict>, z.ZodObject<{
2908
+ kind: z.ZodLiteral<"calendar">;
2909
+ period: z.ZodEnum<{
2910
+ day: "day";
2911
+ week: "week";
2912
+ month: "month";
2913
+ }>;
2914
+ latenessMs: z.ZodDefault<z.ZodNumber>;
2915
+ }, z.core.$strict>, z.ZodObject<{
2916
+ kind: z.ZodLiteral<"rolling">;
2917
+ durationMs: z.ZodNumber;
2918
+ }, z.core.$strict>], "kind">;
2919
+ repeat: z.ZodDefault<z.ZodEnum<{
2920
+ repeat: "repeat";
2921
+ once: "once";
2922
+ }>>;
2495
2923
  }, z.core.$strict>, z.ZodObject<{
2496
2924
  kind: z.ZodLiteral<"once">;
2497
2925
  }, z.core.$strict>, z.ZodObject<{
@@ -2527,15 +2955,114 @@ declare const collectionViewSchema: z.ZodObject<{
2527
2955
  achievedAt: z.ZodNumber;
2528
2956
  }, z.core.$strip>], "status">;
2529
2957
  }, z.core.$strip>>>;
2958
+ counter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2959
+ goal: z.ZodNumber;
2960
+ current: z.ZodNumber;
2961
+ window: z.ZodObject<{
2962
+ key: z.ZodString;
2963
+ start: z.ZodNullable<z.ZodNumber>;
2964
+ end: z.ZodNullable<z.ZodNumber>;
2965
+ }, z.core.$strip>;
2966
+ repeat: z.ZodEnum<{
2967
+ repeat: "repeat";
2968
+ once: "once";
2969
+ }>;
2970
+ settled: z.ZodNumber;
2971
+ latest: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2972
+ id: z.ZodString;
2973
+ ordinal: z.ZodNumber;
2974
+ achievedAt: z.ZodNumber;
2975
+ window: z.ZodString;
2976
+ status: z.ZodLiteral<"revoked">;
2977
+ completion: z.ZodString;
2978
+ revokedAt: z.ZodNumber;
2979
+ }, z.core.$strip>, z.ZodObject<{
2980
+ id: z.ZodString;
2981
+ ordinal: z.ZodNumber;
2982
+ achievedAt: z.ZodNumber;
2983
+ window: z.ZodString;
2984
+ status: z.ZodLiteral<"awarded">;
2985
+ completion: z.ZodString;
2986
+ }, z.core.$strip>, z.ZodObject<{
2987
+ id: z.ZodString;
2988
+ ordinal: z.ZodNumber;
2989
+ achievedAt: z.ZodNumber;
2990
+ window: z.ZodString;
2991
+ status: z.ZodLiteral<"budget-exhausted">;
2992
+ budget: z.ZodString;
2993
+ }, z.core.$strip>], "status">>;
2994
+ }, z.core.$strip>>>;
2995
+ progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2996
+ current: z.ZodNumber;
2997
+ target: z.ZodNumber;
2998
+ reason: z.ZodString;
2999
+ }, z.core.$strip>>>;
2530
3000
  completionCount: z.ZodDefault<z.ZodNumber>;
2531
3001
  visibility: z.ZodDefault<z.ZodEnum<{
2532
3002
  visible: "visible";
2533
3003
  hidden: "hidden";
2534
3004
  }>>;
2535
- missing: z.ZodArray<z.ZodObject<{
3005
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3006
+ kind: z.ZodLiteral<"completion">;
2536
3007
  quest: z.ZodString;
2537
3008
  title: z.ZodString;
2538
- }, z.core.$strip>>;
3009
+ scope: z.ZodLiteral<"ever">;
3010
+ }, z.core.$strip>, z.ZodObject<{
3011
+ kind: z.ZodLiteral<"completion">;
3012
+ quest: z.ZodString;
3013
+ title: z.ZodString;
3014
+ scope: z.ZodLiteral<"period">;
3015
+ period: z.ZodEnum<{
3016
+ day: "day";
3017
+ week: "week";
3018
+ month: "month";
3019
+ }>;
3020
+ resetsAt: z.ZodNumber;
3021
+ }, z.core.$strip>, z.ZodObject<{
3022
+ kind: z.ZodLiteral<"balance">;
3023
+ balance: z.ZodString;
3024
+ title: z.ZodString;
3025
+ minimum: z.ZodNumber;
3026
+ current: z.ZodNumber;
3027
+ }, z.core.$strip>, z.ZodObject<{
3028
+ kind: z.ZodLiteral<"group">;
3029
+ group: z.ZodString;
3030
+ title: z.ZodString;
3031
+ }, z.core.$strip>]>>;
3032
+ campaign: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3033
+ key: z.ZodString;
3034
+ title: z.ZodString;
3035
+ window: z.ZodOptional<z.ZodObject<{
3036
+ from: z.ZodNumber;
3037
+ until: z.ZodNumber;
3038
+ }, z.core.$strict>>;
3039
+ enrollment: z.ZodDefault<z.ZodEnum<{
3040
+ none: "none";
3041
+ required: "required";
3042
+ }>>;
3043
+ enrolledAt: z.ZodNullable<z.ZodNumber>;
3044
+ withdrawnAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3045
+ withdrawalReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3046
+ }, z.core.$strict>>>;
3047
+ window: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3048
+ from: z.ZodNumber;
3049
+ until: z.ZodNumber;
3050
+ }, z.core.$strict>>>;
3051
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
3052
+ id: z.ZodString;
3053
+ scope: z.ZodEnum<{
3054
+ member: "member";
3055
+ project: "project";
3056
+ }>;
3057
+ period: z.ZodEnum<{
3058
+ lifetime: "lifetime";
3059
+ day: "day";
3060
+ week: "week";
3061
+ month: "month";
3062
+ }>;
3063
+ remaining: z.ZodNumber;
3064
+ resetsAt: z.ZodNullable<z.ZodNumber>;
3065
+ }, z.core.$strip>>>;
2539
3066
  attempt: z.ZodNullable<z.ZodObject<{
2540
3067
  id: z.ZodString;
2541
3068
  release: z.ZodString;
@@ -2555,15 +3082,7 @@ declare const collectionViewSchema: z.ZodObject<{
2555
3082
  kind: z.ZodLiteral<"url">;
2556
3083
  value: z.ZodString;
2557
3084
  }, z.core.$strict>]>>;
2558
- status: z.ZodEnum<{
2559
- "needs-review": "needs-review";
2560
- failed: "failed";
2561
- queued: "queued";
2562
- evaluating: "evaluating";
2563
- accepted: "accepted";
2564
- progressed: "progressed";
2565
- rejected: "rejected";
2566
- }>;
3085
+ status: z.ZodType<AttemptStatus, unknown, z.core.$ZodTypeInternals<AttemptStatus, unknown>>;
2567
3086
  reason: z.ZodNullable<z.ZodString>;
2568
3087
  retries: z.ZodNumber;
2569
3088
  generation: z.ZodNumber;
@@ -2584,9 +3103,11 @@ declare const collectionViewSchema: z.ZodObject<{
2584
3103
  inventory: z.ZodObject<{
2585
3104
  kind: z.ZodLiteral<"untracked">;
2586
3105
  }, z.core.$strict>;
2587
- fulfillment: z.ZodObject<{
3106
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
2588
3107
  kind: z.ZodLiteral<"staff-handover">;
2589
- }, z.core.$strict>;
3108
+ }, z.core.$strict>, z.ZodObject<{
3109
+ kind: z.ZodLiteral<"automatic">;
3110
+ }, z.core.$strict>], "kind">;
2590
3111
  }, z.core.$strict>;
2591
3112
  tier: z.ZodString;
2592
3113
  }, z.core.$strict>, z.ZodObject<{
@@ -2595,16 +3116,26 @@ declare const collectionViewSchema: z.ZodObject<{
2595
3116
  action: z.ZodLiteral<"grant-role">;
2596
3117
  roleId: z.ZodString;
2597
3118
  }, z.core.$strict>]>>>>;
3119
+ evaluationRun: z.ZodDefault<z.ZodNumber>;
3120
+ deferCount: z.ZodDefault<z.ZodNumber>;
3121
+ deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3122
+ nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3123
+ code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3124
+ progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3125
+ current: z.ZodNumber;
3126
+ target: z.ZodNumber;
3127
+ reason: z.ZodString;
3128
+ }, z.core.$strip>>>;
2598
3129
  requestedReview: z.ZodDefault<z.ZodBoolean>;
2599
3130
  createdAt: z.ZodNumber;
2600
3131
  }, z.core.$strip>>;
2601
3132
  release: z.ZodString;
2602
3133
  interaction: z.ZodEnum<{
2603
3134
  text: "text";
2604
- url: "url";
2605
- automatic: "automatic";
2606
- claim: "claim";
2607
3135
  staff: "staff";
3136
+ claim: "claim";
3137
+ automatic: "automatic";
3138
+ url: "url";
2608
3139
  quiz: "quiz";
2609
3140
  photo: "photo";
2610
3141
  }>;
@@ -2638,50 +3169,228 @@ declare const collectionViewSchema: z.ZodObject<{
2638
3169
  }, z.core.$strip>>;
2639
3170
  }, z.core.$strip>;
2640
3171
  declare const questExperienceSchema: z.ZodObject<{
2641
- member: z.ZodString;
2642
- quests: z.ZodArray<z.ZodObject<{
2643
- quest: z.ZodString;
2644
- key: z.ZodOptional<z.ZodString>;
2645
- title: z.ZodString;
2646
- presentation: z.ZodDefault<z.ZodObject<{
2647
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
3172
+ entitlements: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
3173
+ status: z.ZodLiteral<"available">;
3174
+ id: z.ZodString;
3175
+ member: z.ZodString;
3176
+ reward: z.ZodObject<{
3177
+ id: z.ZodString;
3178
+ title: z.ZodString;
3179
+ tiers: z.ZodArray<z.ZodObject<{
2648
3180
  id: z.ZodString;
2649
- prompt: z.ZodString;
2650
- choices: z.ZodArray<z.ZodObject<{
2651
- id: z.ZodString;
2652
- label: z.ZodString;
2653
- }, z.core.$strict>>;
2654
- }, z.core.$strict>>>;
2655
- instructions: z.ZodOptional<z.ZodString>;
2656
- video: z.ZodOptional<z.ZodObject<{
2657
- url: z.ZodString;
2658
- poster: z.ZodOptional<z.ZodString>;
2659
- captions: z.ZodOptional<z.ZodObject<{
2660
- url: z.ZodString;
2661
- language: z.ZodString;
2662
- label: z.ZodString;
2663
- }, z.core.$strict>>;
2664
- }, z.core.$strict>>;
2665
- }, z.core.$strict>>;
2666
- connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2667
- google: "google";
2668
- apple: "apple";
2669
- x: "x";
2670
- discord: "discord";
2671
- }>>>;
2672
- trigger: z.ZodUnion<readonly [z.ZodObject<{
2673
- kind: z.ZodLiteral<"manual">;
2674
- input: z.ZodLiteral<"text">;
2675
- constraints: z.ZodObject<{
2676
- required: z.ZodDefault<z.ZodBoolean>;
2677
- minLength: z.ZodDefault<z.ZodNumber>;
2678
- maxLength: z.ZodDefault<z.ZodNumber>;
2679
- }, z.core.$strict>;
2680
- actor: z.ZodOptional<z.ZodEnum<{
3181
+ title: z.ZodString;
3182
+ }, z.core.$loose>>;
3183
+ inventory: z.ZodObject<{
3184
+ kind: z.ZodString;
3185
+ }, z.core.$loose>;
3186
+ fulfillment: z.ZodObject<{
3187
+ kind: z.ZodString;
3188
+ }, z.core.$loose>;
3189
+ }, z.core.$loose>;
3190
+ earnedTier: z.ZodString;
3191
+ tier: z.ZodString;
3192
+ revision: z.ZodNumber;
3193
+ }, z.core.$loose>, z.ZodObject<{
3194
+ status: z.ZodLiteral<"handing-over">;
3195
+ handover: z.ZodString;
3196
+ startedAt: z.ZodNumber;
3197
+ allocation: z.ZodOptional<z.ZodObject<{
3198
+ item: z.ZodString;
3199
+ label: z.ZodString;
3200
+ }, z.core.$loose>>;
3201
+ id: z.ZodString;
3202
+ member: z.ZodString;
3203
+ reward: z.ZodObject<{
3204
+ id: z.ZodString;
3205
+ title: z.ZodString;
3206
+ tiers: z.ZodArray<z.ZodObject<{
3207
+ id: z.ZodString;
3208
+ title: z.ZodString;
3209
+ }, z.core.$loose>>;
3210
+ inventory: z.ZodObject<{
3211
+ kind: z.ZodString;
3212
+ }, z.core.$loose>;
3213
+ fulfillment: z.ZodObject<{
3214
+ kind: z.ZodString;
3215
+ }, z.core.$loose>;
3216
+ }, z.core.$loose>;
3217
+ earnedTier: z.ZodString;
3218
+ tier: z.ZodString;
3219
+ revision: z.ZodNumber;
3220
+ }, z.core.$loose>, z.ZodObject<{
3221
+ status: z.ZodLiteral<"collected">;
3222
+ handover: z.ZodString;
3223
+ startedAt: z.ZodNumber;
3224
+ allocation: z.ZodOptional<z.ZodObject<{
3225
+ item: z.ZodString;
3226
+ label: z.ZodString;
3227
+ }, z.core.$loose>>;
3228
+ collectedAt: z.ZodNumber;
3229
+ recovery: z.ZodOptional<z.ZodObject<{
3230
+ completion: z.ZodString;
3231
+ reason: z.ZodString;
3232
+ flaggedAt: z.ZodNumber;
3233
+ remainingTier: z.ZodNullable<z.ZodString>;
3234
+ }, z.core.$strip>>;
3235
+ id: z.ZodString;
3236
+ member: z.ZodString;
3237
+ reward: z.ZodObject<{
3238
+ id: z.ZodString;
3239
+ title: z.ZodString;
3240
+ tiers: z.ZodArray<z.ZodObject<{
3241
+ id: z.ZodString;
3242
+ title: z.ZodString;
3243
+ }, z.core.$loose>>;
3244
+ inventory: z.ZodObject<{
3245
+ kind: z.ZodString;
3246
+ }, z.core.$loose>;
3247
+ fulfillment: z.ZodObject<{
3248
+ kind: z.ZodString;
3249
+ }, z.core.$loose>;
3250
+ }, z.core.$loose>;
3251
+ earnedTier: z.ZodString;
3252
+ tier: z.ZodString;
3253
+ revision: z.ZodNumber;
3254
+ }, z.core.$loose>, z.ZodObject<{
3255
+ status: z.ZodLiteral<"void">;
3256
+ voidedAt: z.ZodNumber;
3257
+ id: z.ZodString;
3258
+ member: z.ZodString;
3259
+ reward: z.ZodObject<{
3260
+ id: z.ZodString;
3261
+ title: z.ZodString;
3262
+ tiers: z.ZodArray<z.ZodObject<{
3263
+ id: z.ZodString;
3264
+ title: z.ZodString;
3265
+ }, z.core.$loose>>;
3266
+ inventory: z.ZodObject<{
3267
+ kind: z.ZodString;
3268
+ }, z.core.$loose>;
3269
+ fulfillment: z.ZodObject<{
3270
+ kind: z.ZodString;
3271
+ }, z.core.$loose>;
3272
+ }, z.core.$loose>;
3273
+ earnedTier: z.ZodString;
3274
+ tier: z.ZodString;
3275
+ revision: z.ZodNumber;
3276
+ }, z.core.$loose>], "status">, z.ZodPipe<z.ZodObject<{
3277
+ status: z.ZodString;
3278
+ id: z.ZodString;
3279
+ member: z.ZodString;
3280
+ reward: z.ZodObject<{
3281
+ id: z.ZodString;
3282
+ title: z.ZodString;
3283
+ tiers: z.ZodArray<z.ZodObject<{
3284
+ id: z.ZodString;
3285
+ title: z.ZodString;
3286
+ }, z.core.$loose>>;
3287
+ inventory: z.ZodObject<{
3288
+ kind: z.ZodString;
3289
+ }, z.core.$loose>;
3290
+ fulfillment: z.ZodObject<{
3291
+ kind: z.ZodString;
3292
+ }, z.core.$loose>;
3293
+ }, z.core.$loose>;
3294
+ earnedTier: z.ZodString;
3295
+ tier: z.ZodString;
3296
+ revision: z.ZodNumber;
3297
+ }, z.core.$loose>, z.ZodTransform<{
3298
+ status: "unsupported";
3299
+ reportedStatus: string;
3300
+ id: string;
3301
+ member: string;
3302
+ reward: {
3303
+ [x: string]: unknown;
3304
+ id: string;
3305
+ title: string;
3306
+ tiers: {
3307
+ [x: string]: unknown;
3308
+ id: string;
3309
+ title: string;
3310
+ }[];
3311
+ inventory: {
3312
+ [x: string]: unknown;
3313
+ kind: string;
3314
+ };
3315
+ fulfillment: {
3316
+ [x: string]: unknown;
3317
+ kind: string;
3318
+ };
3319
+ };
3320
+ earnedTier: string;
3321
+ tier: string;
3322
+ revision: number;
3323
+ }, {
3324
+ [x: string]: unknown;
3325
+ status: string;
3326
+ id: string;
3327
+ member: string;
3328
+ reward: {
3329
+ [x: string]: unknown;
3330
+ id: string;
3331
+ title: string;
3332
+ tiers: {
3333
+ [x: string]: unknown;
3334
+ id: string;
3335
+ title: string;
3336
+ }[];
3337
+ inventory: {
3338
+ [x: string]: unknown;
3339
+ kind: string;
3340
+ };
3341
+ fulfillment: {
3342
+ [x: string]: unknown;
3343
+ kind: string;
3344
+ };
3345
+ };
3346
+ earnedTier: string;
3347
+ tier: string;
3348
+ revision: number;
3349
+ }>>]>>>;
3350
+ member: z.ZodString;
3351
+ quests: z.ZodArray<z.ZodObject<{
3352
+ quest: z.ZodString;
3353
+ key: z.ZodOptional<z.ZodString>;
3354
+ title: z.ZodString;
3355
+ presentation: z.ZodDefault<z.ZodObject<{
3356
+ quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
3357
+ id: z.ZodString;
3358
+ prompt: z.ZodString;
3359
+ choices: z.ZodArray<z.ZodObject<{
3360
+ id: z.ZodString;
3361
+ label: z.ZodString;
3362
+ }, z.core.$strict>>;
3363
+ }, z.core.$strict>>>;
3364
+ instructions: z.ZodOptional<z.ZodString>;
3365
+ video: z.ZodOptional<z.ZodObject<{
3366
+ url: z.ZodString;
3367
+ poster: z.ZodOptional<z.ZodString>;
3368
+ captions: z.ZodOptional<z.ZodObject<{
3369
+ url: z.ZodString;
3370
+ language: z.ZodString;
3371
+ label: z.ZodString;
3372
+ }, z.core.$strict>>;
3373
+ }, z.core.$strict>>;
3374
+ }, z.core.$strict>>;
3375
+ connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3376
+ discord: "discord";
3377
+ google: "google";
3378
+ apple: "apple";
3379
+ x: "x";
3380
+ }>>>;
3381
+ trigger: z.ZodUnion<(z.ZodObject<{
3382
+ kind: z.ZodLiteral<"manual">;
3383
+ input: z.ZodLiteral<"text">;
3384
+ constraints: z.ZodObject<{
3385
+ required: z.ZodDefault<z.ZodBoolean>;
3386
+ minLength: z.ZodDefault<z.ZodNumber>;
3387
+ maxLength: z.ZodDefault<z.ZodNumber>;
3388
+ }, z.core.$strict>;
3389
+ actor: z.ZodOptional<z.ZodEnum<{
2681
3390
  member: "member";
2682
3391
  staff: "staff";
2683
3392
  }>>;
2684
- }, z.core.$strict>, z.ZodObject<{
3393
+ }, z.core.$strip> | z.ZodObject<{
2685
3394
  kind: z.ZodLiteral<"manual">;
2686
3395
  input: z.ZodLiteral<"url">;
2687
3396
  constraints: z.ZodObject<{
@@ -2692,7 +3401,7 @@ declare const questExperienceSchema: z.ZodObject<{
2692
3401
  member: "member";
2693
3402
  staff: "staff";
2694
3403
  }>>;
2695
- }, z.core.$strict>, z.ZodObject<{
3404
+ }, z.core.$strip> | z.ZodObject<{
2696
3405
  kind: z.ZodLiteral<"manual">;
2697
3406
  input: z.ZodEnum<{
2698
3407
  none: "none";
@@ -2703,44 +3412,17 @@ declare const questExperienceSchema: z.ZodObject<{
2703
3412
  member: "member";
2704
3413
  staff: "staff";
2705
3414
  }>>;
2706
- }, z.core.$strict>, z.ZodObject<{
3415
+ }, z.core.$strip> | z.ZodObject<{
2707
3416
  kind: z.ZodLiteral<"automatic">;
2708
- observation: z.ZodOptional<z.ZodObject<{
2709
- source: z.ZodString;
2710
- type: z.ZodString;
2711
- }, z.core.$strict>>;
2712
- content: z.ZodOptional<z.ZodObject<{
2713
- tracker: z.ZodString;
2714
- window: z.ZodObject<{
2715
- start: z.ZodNumber;
2716
- end: z.ZodOptional<z.ZodNumber>;
2717
- }, z.core.$strict>;
2718
- enrollment: z.ZodDefault<z.ZodEnum<{
2719
- none: "none";
2720
- required: "required";
2721
- }>>;
2722
- posts: z.ZodDefault<z.ZodEnum<{
2723
- "after-enrollment": "after-enrollment";
2724
- "since-start": "since-start";
2725
- }>>;
2726
- historical: z.ZodDefault<z.ZodEnum<{
2727
- automatic: "automatic";
2728
- claim: "claim";
2729
- staff: "staff";
2730
- }>>;
2731
- }, z.core.$strict>>;
2732
3417
  tracker: z.ZodOptional<z.ZodObject<{
2733
3418
  tracker: z.ZodString;
2734
- source: z.ZodEnum<{
2735
- custom: "custom";
2736
- "x-search": "x-search";
2737
- }>;
2738
- on: z.ZodOptional<z.ZodEnum<{
3419
+ source: z.ZodString;
3420
+ on: z.ZodEnum<{
2739
3421
  "new-record": "new-record";
2740
3422
  "new-observation": "new-observation";
2741
3423
  "data-changed": "data-changed";
2742
- }>>;
2743
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3424
+ }>;
3425
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
2744
3426
  path: z.ZodString;
2745
3427
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2746
3428
  }, z.core.$strict>, z.ZodObject<{
@@ -2757,50 +3439,135 @@ declare const questExperienceSchema: z.ZodObject<{
2757
3439
  lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2758
3440
  setting: z.ZodString;
2759
3441
  }, z.core.$strict>]>>;
2760
- }, z.core.$strict>]>>;
2761
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
3442
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3443
+ path: z.ZodString;
3444
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3445
+ }, z.core.$strict>, z.ZodObject<{
3446
+ path: z.ZodString;
3447
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3448
+ setting: z.ZodString;
3449
+ }, z.core.$strict>]>>;
3450
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3451
+ setting: z.ZodString;
3452
+ }, z.core.$strict>]>>;
3453
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3454
+ setting: z.ZodString;
3455
+ }, z.core.$strict>]>>;
3456
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3457
+ setting: z.ZodString;
3458
+ }, z.core.$strict>]>>;
3459
+ }, z.core.$strict>]>>]>>;
3460
+ beneficiary: z.ZodString;
3461
+ enrollment: z.ZodOptional<z.ZodEnum<{
3462
+ none: "none";
3463
+ required: "required";
3464
+ }>>;
3465
+ since: z.ZodOptional<z.ZodEnum<{
3466
+ activation: "activation";
3467
+ window: "window";
3468
+ enrollment: "enrollment";
3469
+ }>>;
3470
+ historical: z.ZodOptional<z.ZodEnum<{
3471
+ staff: "staff";
3472
+ claim: "claim";
3473
+ automatic: "automatic";
3474
+ }>>;
3475
+ content: z.ZodOptional<z.ZodLiteral<true>>;
2762
3476
  }, z.core.$strict>>;
2763
- }, z.core.$strict>]>;
2764
- availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
3477
+ }, z.core.$strip>)[]>;
3478
+ availability: z.ZodUnion<(z.ZodObject<{
2765
3479
  kind: z.ZodLiteral<"available">;
2766
3480
  input: z.ZodEnum<{
2767
3481
  text: "text";
2768
- url: "url";
2769
3482
  none: "none";
3483
+ url: "url";
2770
3484
  quiz: "quiz";
2771
3485
  photo: "photo";
2772
3486
  }>;
2773
- }, z.core.$strict>, z.ZodObject<{
3487
+ }, z.core.$strip> | z.ZodObject<{
2774
3488
  kind: z.ZodLiteral<"completed">;
2775
- }, z.core.$strict>, z.ZodObject<{
3489
+ }, z.core.$strip> | z.ZodObject<{
2776
3490
  kind: z.ZodLiteral<"locked">;
2777
- missing: z.ZodArray<z.ZodObject<{
3491
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3492
+ kind: z.ZodLiteral<"completion">;
2778
3493
  quest: z.ZodString;
2779
3494
  title: z.ZodString;
2780
- }, z.core.$strip>>;
2781
- }, z.core.$strict>, z.ZodObject<{
3495
+ scope: z.ZodLiteral<"ever">;
3496
+ }, z.core.$strip>, z.ZodObject<{
3497
+ kind: z.ZodLiteral<"completion">;
3498
+ quest: z.ZodString;
3499
+ title: z.ZodString;
3500
+ scope: z.ZodLiteral<"period">;
3501
+ period: z.ZodEnum<{
3502
+ day: "day";
3503
+ week: "week";
3504
+ month: "month";
3505
+ }>;
3506
+ resetsAt: z.ZodNumber;
3507
+ }, z.core.$strip>, z.ZodObject<{
3508
+ kind: z.ZodLiteral<"balance">;
3509
+ balance: z.ZodString;
3510
+ title: z.ZodString;
3511
+ minimum: z.ZodNumber;
3512
+ current: z.ZodNumber;
3513
+ }, z.core.$strip>, z.ZodObject<{
3514
+ kind: z.ZodLiteral<"group">;
3515
+ group: z.ZodString;
3516
+ title: z.ZodString;
3517
+ }, z.core.$strip>]>>;
3518
+ }, z.core.$strip> | z.ZodObject<{
3519
+ kind: z.ZodLiteral<"blocked">;
3520
+ reason: z.ZodEnum<{
3521
+ paused: "paused";
3522
+ "outside-window": "outside-window";
3523
+ "budget-exhausted": "budget-exhausted";
3524
+ "connection-required": "connection-required";
3525
+ "wallet-required": "wallet-required";
3526
+ "enrollment-required": "enrollment-required";
3527
+ }>;
3528
+ resetsAt: z.ZodOptional<z.ZodNumber>;
3529
+ }, z.core.$strip> | z.ZodObject<{
2782
3530
  kind: z.ZodLiteral<"staff-required">;
2783
- }, z.core.$strict>, z.ZodObject<{
3531
+ }, z.core.$strip> | z.ZodObject<{
2784
3532
  kind: z.ZodLiteral<"automatic">;
2785
- observation: z.ZodOptional<z.ZodObject<{
2786
- source: z.ZodString;
2787
- type: z.ZodString;
2788
- }, z.core.$strict>>;
2789
- }, z.core.$strict>, z.ZodObject<{
3533
+ }, z.core.$strip> | z.ZodObject<{
2790
3534
  kind: z.ZodLiteral<"checking">;
2791
3535
  attempt: z.ZodString;
2792
- }, z.core.$strict>, z.ZodObject<{
3536
+ }, z.core.$strip> | z.ZodObject<{
2793
3537
  kind: z.ZodLiteral<"needs-review">;
2794
3538
  attempt: z.ZodString;
2795
- }, z.core.$strict>, z.ZodObject<{
3539
+ }, z.core.$strip> | z.ZodObject<{
2796
3540
  kind: z.ZodLiteral<"retryable">;
2797
3541
  attempt: z.ZodString;
2798
- }, z.core.$strict>], "kind">;
3542
+ }, z.core.$strip>)[]>;
2799
3543
  completed: z.ZodBoolean;
2800
3544
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2801
3545
  kind: z.ZodLiteral<"streak">;
2802
3546
  days: z.ZodNumber;
2803
- timeZone: z.ZodString;
3547
+ }, z.core.$strip>, z.ZodObject<{
3548
+ kind: z.ZodLiteral<"progress">;
3549
+ goal: z.ZodObject<{
3550
+ kind: z.ZodLiteral<"count">;
3551
+ count: z.ZodNumber;
3552
+ }, z.core.$strict>;
3553
+ window: z.ZodDiscriminatedUnion<[z.ZodObject<{
3554
+ kind: z.ZodLiteral<"lifetime">;
3555
+ }, z.core.$strict>, z.ZodObject<{
3556
+ kind: z.ZodLiteral<"calendar">;
3557
+ period: z.ZodEnum<{
3558
+ day: "day";
3559
+ week: "week";
3560
+ month: "month";
3561
+ }>;
3562
+ latenessMs: z.ZodDefault<z.ZodNumber>;
3563
+ }, z.core.$strict>, z.ZodObject<{
3564
+ kind: z.ZodLiteral<"rolling">;
3565
+ durationMs: z.ZodNumber;
3566
+ }, z.core.$strict>], "kind">;
3567
+ repeat: z.ZodDefault<z.ZodEnum<{
3568
+ repeat: "repeat";
3569
+ once: "once";
3570
+ }>>;
2804
3571
  }, z.core.$strict>, z.ZodObject<{
2805
3572
  kind: z.ZodLiteral<"once">;
2806
3573
  }, z.core.$strict>, z.ZodObject<{
@@ -2836,15 +3603,114 @@ declare const questExperienceSchema: z.ZodObject<{
2836
3603
  achievedAt: z.ZodNumber;
2837
3604
  }, z.core.$strip>], "status">;
2838
3605
  }, z.core.$strip>>>;
3606
+ counter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3607
+ goal: z.ZodNumber;
3608
+ current: z.ZodNumber;
3609
+ window: z.ZodObject<{
3610
+ key: z.ZodString;
3611
+ start: z.ZodNullable<z.ZodNumber>;
3612
+ end: z.ZodNullable<z.ZodNumber>;
3613
+ }, z.core.$strip>;
3614
+ repeat: z.ZodEnum<{
3615
+ repeat: "repeat";
3616
+ once: "once";
3617
+ }>;
3618
+ settled: z.ZodNumber;
3619
+ latest: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3620
+ id: z.ZodString;
3621
+ ordinal: z.ZodNumber;
3622
+ achievedAt: z.ZodNumber;
3623
+ window: z.ZodString;
3624
+ status: z.ZodLiteral<"revoked">;
3625
+ completion: z.ZodString;
3626
+ revokedAt: z.ZodNumber;
3627
+ }, z.core.$strip>, z.ZodObject<{
3628
+ id: z.ZodString;
3629
+ ordinal: z.ZodNumber;
3630
+ achievedAt: z.ZodNumber;
3631
+ window: z.ZodString;
3632
+ status: z.ZodLiteral<"awarded">;
3633
+ completion: z.ZodString;
3634
+ }, z.core.$strip>, z.ZodObject<{
3635
+ id: z.ZodString;
3636
+ ordinal: z.ZodNumber;
3637
+ achievedAt: z.ZodNumber;
3638
+ window: z.ZodString;
3639
+ status: z.ZodLiteral<"budget-exhausted">;
3640
+ budget: z.ZodString;
3641
+ }, z.core.$strip>], "status">>;
3642
+ }, z.core.$strip>>>;
3643
+ progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3644
+ current: z.ZodNumber;
3645
+ target: z.ZodNumber;
3646
+ reason: z.ZodString;
3647
+ }, z.core.$strip>>>;
2839
3648
  completionCount: z.ZodDefault<z.ZodNumber>;
2840
3649
  visibility: z.ZodDefault<z.ZodEnum<{
2841
3650
  visible: "visible";
2842
3651
  hidden: "hidden";
2843
3652
  }>>;
2844
- missing: z.ZodArray<z.ZodObject<{
3653
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3654
+ kind: z.ZodLiteral<"completion">;
2845
3655
  quest: z.ZodString;
2846
3656
  title: z.ZodString;
2847
- }, z.core.$strip>>;
3657
+ scope: z.ZodLiteral<"ever">;
3658
+ }, z.core.$strip>, z.ZodObject<{
3659
+ kind: z.ZodLiteral<"completion">;
3660
+ quest: z.ZodString;
3661
+ title: z.ZodString;
3662
+ scope: z.ZodLiteral<"period">;
3663
+ period: z.ZodEnum<{
3664
+ day: "day";
3665
+ week: "week";
3666
+ month: "month";
3667
+ }>;
3668
+ resetsAt: z.ZodNumber;
3669
+ }, z.core.$strip>, z.ZodObject<{
3670
+ kind: z.ZodLiteral<"balance">;
3671
+ balance: z.ZodString;
3672
+ title: z.ZodString;
3673
+ minimum: z.ZodNumber;
3674
+ current: z.ZodNumber;
3675
+ }, z.core.$strip>, z.ZodObject<{
3676
+ kind: z.ZodLiteral<"group">;
3677
+ group: z.ZodString;
3678
+ title: z.ZodString;
3679
+ }, z.core.$strip>]>>;
3680
+ campaign: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3681
+ key: z.ZodString;
3682
+ title: z.ZodString;
3683
+ window: z.ZodOptional<z.ZodObject<{
3684
+ from: z.ZodNumber;
3685
+ until: z.ZodNumber;
3686
+ }, z.core.$strict>>;
3687
+ enrollment: z.ZodDefault<z.ZodEnum<{
3688
+ none: "none";
3689
+ required: "required";
3690
+ }>>;
3691
+ enrolledAt: z.ZodNullable<z.ZodNumber>;
3692
+ withdrawnAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3693
+ withdrawalReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3694
+ }, z.core.$strict>>>;
3695
+ window: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3696
+ from: z.ZodNumber;
3697
+ until: z.ZodNumber;
3698
+ }, z.core.$strict>>>;
3699
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
3700
+ id: z.ZodString;
3701
+ scope: z.ZodEnum<{
3702
+ member: "member";
3703
+ project: "project";
3704
+ }>;
3705
+ period: z.ZodEnum<{
3706
+ lifetime: "lifetime";
3707
+ day: "day";
3708
+ week: "week";
3709
+ month: "month";
3710
+ }>;
3711
+ remaining: z.ZodNumber;
3712
+ resetsAt: z.ZodNullable<z.ZodNumber>;
3713
+ }, z.core.$strip>>>;
2848
3714
  attempt: z.ZodNullable<z.ZodObject<{
2849
3715
  id: z.ZodString;
2850
3716
  release: z.ZodString;
@@ -2864,15 +3730,7 @@ declare const questExperienceSchema: z.ZodObject<{
2864
3730
  kind: z.ZodLiteral<"url">;
2865
3731
  value: z.ZodString;
2866
3732
  }, z.core.$strict>]>>;
2867
- status: z.ZodEnum<{
2868
- "needs-review": "needs-review";
2869
- failed: "failed";
2870
- queued: "queued";
2871
- evaluating: "evaluating";
2872
- accepted: "accepted";
2873
- progressed: "progressed";
2874
- rejected: "rejected";
2875
- }>;
3733
+ status: z.ZodType<AttemptStatus, unknown, z.core.$ZodTypeInternals<AttemptStatus, unknown>>;
2876
3734
  reason: z.ZodNullable<z.ZodString>;
2877
3735
  retries: z.ZodNumber;
2878
3736
  generation: z.ZodNumber;
@@ -2893,9 +3751,11 @@ declare const questExperienceSchema: z.ZodObject<{
2893
3751
  inventory: z.ZodObject<{
2894
3752
  kind: z.ZodLiteral<"untracked">;
2895
3753
  }, z.core.$strict>;
2896
- fulfillment: z.ZodObject<{
3754
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
2897
3755
  kind: z.ZodLiteral<"staff-handover">;
2898
- }, z.core.$strict>;
3756
+ }, z.core.$strict>, z.ZodObject<{
3757
+ kind: z.ZodLiteral<"automatic">;
3758
+ }, z.core.$strict>], "kind">;
2899
3759
  }, z.core.$strict>;
2900
3760
  tier: z.ZodString;
2901
3761
  }, z.core.$strict>, z.ZodObject<{
@@ -2904,16 +3764,26 @@ declare const questExperienceSchema: z.ZodObject<{
2904
3764
  action: z.ZodLiteral<"grant-role">;
2905
3765
  roleId: z.ZodString;
2906
3766
  }, z.core.$strict>]>>>>;
3767
+ evaluationRun: z.ZodDefault<z.ZodNumber>;
3768
+ deferCount: z.ZodDefault<z.ZodNumber>;
3769
+ deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3770
+ nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3771
+ code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3772
+ progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3773
+ current: z.ZodNumber;
3774
+ target: z.ZodNumber;
3775
+ reason: z.ZodString;
3776
+ }, z.core.$strip>>>;
2907
3777
  requestedReview: z.ZodDefault<z.ZodBoolean>;
2908
3778
  createdAt: z.ZodNumber;
2909
3779
  }, z.core.$strip>>;
2910
3780
  release: z.ZodString;
2911
3781
  interaction: z.ZodEnum<{
2912
3782
  text: "text";
2913
- url: "url";
2914
- automatic: "automatic";
2915
- claim: "claim";
2916
3783
  staff: "staff";
3784
+ claim: "claim";
3785
+ automatic: "automatic";
3786
+ url: "url";
2917
3787
  quiz: "quiz";
2918
3788
  photo: "photo";
2919
3789
  }>;
@@ -2974,12 +3844,12 @@ declare const questExperienceSchema: z.ZodObject<{
2974
3844
  }, z.core.$strict>>;
2975
3845
  }, z.core.$strict>>;
2976
3846
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3847
+ discord: "discord";
2977
3848
  google: "google";
2978
3849
  apple: "apple";
2979
3850
  x: "x";
2980
- discord: "discord";
2981
3851
  }>>>;
2982
- trigger: z.ZodUnion<readonly [z.ZodObject<{
3852
+ trigger: z.ZodUnion<(z.ZodObject<{
2983
3853
  kind: z.ZodLiteral<"manual">;
2984
3854
  input: z.ZodLiteral<"text">;
2985
3855
  constraints: z.ZodObject<{
@@ -2991,7 +3861,7 @@ declare const questExperienceSchema: z.ZodObject<{
2991
3861
  member: "member";
2992
3862
  staff: "staff";
2993
3863
  }>>;
2994
- }, z.core.$strict>, z.ZodObject<{
3864
+ }, z.core.$strip> | z.ZodObject<{
2995
3865
  kind: z.ZodLiteral<"manual">;
2996
3866
  input: z.ZodLiteral<"url">;
2997
3867
  constraints: z.ZodObject<{
@@ -3002,7 +3872,7 @@ declare const questExperienceSchema: z.ZodObject<{
3002
3872
  member: "member";
3003
3873
  staff: "staff";
3004
3874
  }>>;
3005
- }, z.core.$strict>, z.ZodObject<{
3875
+ }, z.core.$strip> | z.ZodObject<{
3006
3876
  kind: z.ZodLiteral<"manual">;
3007
3877
  input: z.ZodEnum<{
3008
3878
  none: "none";
@@ -3013,44 +3883,17 @@ declare const questExperienceSchema: z.ZodObject<{
3013
3883
  member: "member";
3014
3884
  staff: "staff";
3015
3885
  }>>;
3016
- }, z.core.$strict>, z.ZodObject<{
3886
+ }, z.core.$strip> | z.ZodObject<{
3017
3887
  kind: z.ZodLiteral<"automatic">;
3018
- observation: z.ZodOptional<z.ZodObject<{
3019
- source: z.ZodString;
3020
- type: z.ZodString;
3021
- }, z.core.$strict>>;
3022
- content: z.ZodOptional<z.ZodObject<{
3023
- tracker: z.ZodString;
3024
- window: z.ZodObject<{
3025
- start: z.ZodNumber;
3026
- end: z.ZodOptional<z.ZodNumber>;
3027
- }, z.core.$strict>;
3028
- enrollment: z.ZodDefault<z.ZodEnum<{
3029
- none: "none";
3030
- required: "required";
3031
- }>>;
3032
- posts: z.ZodDefault<z.ZodEnum<{
3033
- "after-enrollment": "after-enrollment";
3034
- "since-start": "since-start";
3035
- }>>;
3036
- historical: z.ZodDefault<z.ZodEnum<{
3037
- automatic: "automatic";
3038
- claim: "claim";
3039
- staff: "staff";
3040
- }>>;
3041
- }, z.core.$strict>>;
3042
3888
  tracker: z.ZodOptional<z.ZodObject<{
3043
3889
  tracker: z.ZodString;
3044
- source: z.ZodEnum<{
3045
- custom: "custom";
3046
- "x-search": "x-search";
3047
- }>;
3048
- on: z.ZodOptional<z.ZodEnum<{
3890
+ source: z.ZodString;
3891
+ on: z.ZodEnum<{
3049
3892
  "new-record": "new-record";
3050
3893
  "new-observation": "new-observation";
3051
3894
  "data-changed": "data-changed";
3052
- }>>;
3053
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3895
+ }>;
3896
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
3054
3897
  path: z.ZodString;
3055
3898
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3056
3899
  }, z.core.$strict>, z.ZodObject<{
@@ -3067,50 +3910,135 @@ declare const questExperienceSchema: z.ZodObject<{
3067
3910
  lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3068
3911
  setting: z.ZodString;
3069
3912
  }, z.core.$strict>]>>;
3070
- }, z.core.$strict>]>>;
3071
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
3913
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3914
+ path: z.ZodString;
3915
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3916
+ }, z.core.$strict>, z.ZodObject<{
3917
+ path: z.ZodString;
3918
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3919
+ setting: z.ZodString;
3920
+ }, z.core.$strict>]>>;
3921
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3922
+ setting: z.ZodString;
3923
+ }, z.core.$strict>]>>;
3924
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3925
+ setting: z.ZodString;
3926
+ }, z.core.$strict>]>>;
3927
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3928
+ setting: z.ZodString;
3929
+ }, z.core.$strict>]>>;
3930
+ }, z.core.$strict>]>>]>>;
3931
+ beneficiary: z.ZodString;
3932
+ enrollment: z.ZodOptional<z.ZodEnum<{
3933
+ none: "none";
3934
+ required: "required";
3935
+ }>>;
3936
+ since: z.ZodOptional<z.ZodEnum<{
3937
+ activation: "activation";
3938
+ window: "window";
3939
+ enrollment: "enrollment";
3940
+ }>>;
3941
+ historical: z.ZodOptional<z.ZodEnum<{
3942
+ staff: "staff";
3943
+ claim: "claim";
3944
+ automatic: "automatic";
3945
+ }>>;
3946
+ content: z.ZodOptional<z.ZodLiteral<true>>;
3072
3947
  }, z.core.$strict>>;
3073
- }, z.core.$strict>]>;
3074
- availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
3948
+ }, z.core.$strip>)[]>;
3949
+ availability: z.ZodUnion<(z.ZodObject<{
3075
3950
  kind: z.ZodLiteral<"available">;
3076
3951
  input: z.ZodEnum<{
3077
3952
  text: "text";
3078
- url: "url";
3079
3953
  none: "none";
3954
+ url: "url";
3080
3955
  quiz: "quiz";
3081
3956
  photo: "photo";
3082
3957
  }>;
3083
- }, z.core.$strict>, z.ZodObject<{
3958
+ }, z.core.$strip> | z.ZodObject<{
3084
3959
  kind: z.ZodLiteral<"completed">;
3085
- }, z.core.$strict>, z.ZodObject<{
3960
+ }, z.core.$strip> | z.ZodObject<{
3086
3961
  kind: z.ZodLiteral<"locked">;
3087
- missing: z.ZodArray<z.ZodObject<{
3962
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3963
+ kind: z.ZodLiteral<"completion">;
3088
3964
  quest: z.ZodString;
3089
3965
  title: z.ZodString;
3090
- }, z.core.$strip>>;
3091
- }, z.core.$strict>, z.ZodObject<{
3966
+ scope: z.ZodLiteral<"ever">;
3967
+ }, z.core.$strip>, z.ZodObject<{
3968
+ kind: z.ZodLiteral<"completion">;
3969
+ quest: z.ZodString;
3970
+ title: z.ZodString;
3971
+ scope: z.ZodLiteral<"period">;
3972
+ period: z.ZodEnum<{
3973
+ day: "day";
3974
+ week: "week";
3975
+ month: "month";
3976
+ }>;
3977
+ resetsAt: z.ZodNumber;
3978
+ }, z.core.$strip>, z.ZodObject<{
3979
+ kind: z.ZodLiteral<"balance">;
3980
+ balance: z.ZodString;
3981
+ title: z.ZodString;
3982
+ minimum: z.ZodNumber;
3983
+ current: z.ZodNumber;
3984
+ }, z.core.$strip>, z.ZodObject<{
3985
+ kind: z.ZodLiteral<"group">;
3986
+ group: z.ZodString;
3987
+ title: z.ZodString;
3988
+ }, z.core.$strip>]>>;
3989
+ }, z.core.$strip> | z.ZodObject<{
3990
+ kind: z.ZodLiteral<"blocked">;
3991
+ reason: z.ZodEnum<{
3992
+ paused: "paused";
3993
+ "outside-window": "outside-window";
3994
+ "budget-exhausted": "budget-exhausted";
3995
+ "connection-required": "connection-required";
3996
+ "wallet-required": "wallet-required";
3997
+ "enrollment-required": "enrollment-required";
3998
+ }>;
3999
+ resetsAt: z.ZodOptional<z.ZodNumber>;
4000
+ }, z.core.$strip> | z.ZodObject<{
3092
4001
  kind: z.ZodLiteral<"staff-required">;
3093
- }, z.core.$strict>, z.ZodObject<{
4002
+ }, z.core.$strip> | z.ZodObject<{
3094
4003
  kind: z.ZodLiteral<"automatic">;
3095
- observation: z.ZodOptional<z.ZodObject<{
3096
- source: z.ZodString;
3097
- type: z.ZodString;
3098
- }, z.core.$strict>>;
3099
- }, z.core.$strict>, z.ZodObject<{
4004
+ }, z.core.$strip> | z.ZodObject<{
3100
4005
  kind: z.ZodLiteral<"checking">;
3101
4006
  attempt: z.ZodString;
3102
- }, z.core.$strict>, z.ZodObject<{
4007
+ }, z.core.$strip> | z.ZodObject<{
3103
4008
  kind: z.ZodLiteral<"needs-review">;
3104
4009
  attempt: z.ZodString;
3105
- }, z.core.$strict>, z.ZodObject<{
4010
+ }, z.core.$strip> | z.ZodObject<{
3106
4011
  kind: z.ZodLiteral<"retryable">;
3107
4012
  attempt: z.ZodString;
3108
- }, z.core.$strict>], "kind">;
4013
+ }, z.core.$strip>)[]>;
3109
4014
  completed: z.ZodBoolean;
3110
4015
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3111
4016
  kind: z.ZodLiteral<"streak">;
3112
4017
  days: z.ZodNumber;
3113
- timeZone: z.ZodString;
4018
+ }, z.core.$strip>, z.ZodObject<{
4019
+ kind: z.ZodLiteral<"progress">;
4020
+ goal: z.ZodObject<{
4021
+ kind: z.ZodLiteral<"count">;
4022
+ count: z.ZodNumber;
4023
+ }, z.core.$strict>;
4024
+ window: z.ZodDiscriminatedUnion<[z.ZodObject<{
4025
+ kind: z.ZodLiteral<"lifetime">;
4026
+ }, z.core.$strict>, z.ZodObject<{
4027
+ kind: z.ZodLiteral<"calendar">;
4028
+ period: z.ZodEnum<{
4029
+ day: "day";
4030
+ week: "week";
4031
+ month: "month";
4032
+ }>;
4033
+ latenessMs: z.ZodDefault<z.ZodNumber>;
4034
+ }, z.core.$strict>, z.ZodObject<{
4035
+ kind: z.ZodLiteral<"rolling">;
4036
+ durationMs: z.ZodNumber;
4037
+ }, z.core.$strict>], "kind">;
4038
+ repeat: z.ZodDefault<z.ZodEnum<{
4039
+ repeat: "repeat";
4040
+ once: "once";
4041
+ }>>;
3114
4042
  }, z.core.$strict>, z.ZodObject<{
3115
4043
  kind: z.ZodLiteral<"once">;
3116
4044
  }, z.core.$strict>, z.ZodObject<{
@@ -3140,21 +4068,120 @@ declare const questExperienceSchema: z.ZodObject<{
3140
4068
  status: z.ZodLiteral<"awarded">;
3141
4069
  completion: z.ZodString;
3142
4070
  achievedAt: z.ZodNumber;
3143
- }, z.core.$strip>, z.ZodObject<{
4071
+ }, z.core.$strip>, z.ZodObject<{
4072
+ status: z.ZodLiteral<"budget-exhausted">;
4073
+ budget: z.ZodString;
4074
+ achievedAt: z.ZodNumber;
4075
+ }, z.core.$strip>], "status">;
4076
+ }, z.core.$strip>>>;
4077
+ counter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4078
+ goal: z.ZodNumber;
4079
+ current: z.ZodNumber;
4080
+ window: z.ZodObject<{
4081
+ key: z.ZodString;
4082
+ start: z.ZodNullable<z.ZodNumber>;
4083
+ end: z.ZodNullable<z.ZodNumber>;
4084
+ }, z.core.$strip>;
4085
+ repeat: z.ZodEnum<{
4086
+ repeat: "repeat";
4087
+ once: "once";
4088
+ }>;
4089
+ settled: z.ZodNumber;
4090
+ latest: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
4091
+ id: z.ZodString;
4092
+ ordinal: z.ZodNumber;
4093
+ achievedAt: z.ZodNumber;
4094
+ window: z.ZodString;
4095
+ status: z.ZodLiteral<"revoked">;
4096
+ completion: z.ZodString;
4097
+ revokedAt: z.ZodNumber;
4098
+ }, z.core.$strip>, z.ZodObject<{
4099
+ id: z.ZodString;
4100
+ ordinal: z.ZodNumber;
4101
+ achievedAt: z.ZodNumber;
4102
+ window: z.ZodString;
4103
+ status: z.ZodLiteral<"awarded">;
4104
+ completion: z.ZodString;
4105
+ }, z.core.$strip>, z.ZodObject<{
4106
+ id: z.ZodString;
4107
+ ordinal: z.ZodNumber;
4108
+ achievedAt: z.ZodNumber;
4109
+ window: z.ZodString;
3144
4110
  status: z.ZodLiteral<"budget-exhausted">;
3145
4111
  budget: z.ZodString;
3146
- achievedAt: z.ZodNumber;
3147
- }, z.core.$strip>], "status">;
4112
+ }, z.core.$strip>], "status">>;
4113
+ }, z.core.$strip>>>;
4114
+ progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4115
+ current: z.ZodNumber;
4116
+ target: z.ZodNumber;
4117
+ reason: z.ZodString;
3148
4118
  }, z.core.$strip>>>;
3149
4119
  completionCount: z.ZodDefault<z.ZodNumber>;
3150
4120
  visibility: z.ZodDefault<z.ZodEnum<{
3151
4121
  visible: "visible";
3152
4122
  hidden: "hidden";
3153
4123
  }>>;
3154
- missing: z.ZodArray<z.ZodObject<{
4124
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4125
+ kind: z.ZodLiteral<"completion">;
3155
4126
  quest: z.ZodString;
3156
4127
  title: z.ZodString;
3157
- }, z.core.$strip>>;
4128
+ scope: z.ZodLiteral<"ever">;
4129
+ }, z.core.$strip>, z.ZodObject<{
4130
+ kind: z.ZodLiteral<"completion">;
4131
+ quest: z.ZodString;
4132
+ title: z.ZodString;
4133
+ scope: z.ZodLiteral<"period">;
4134
+ period: z.ZodEnum<{
4135
+ day: "day";
4136
+ week: "week";
4137
+ month: "month";
4138
+ }>;
4139
+ resetsAt: z.ZodNumber;
4140
+ }, z.core.$strip>, z.ZodObject<{
4141
+ kind: z.ZodLiteral<"balance">;
4142
+ balance: z.ZodString;
4143
+ title: z.ZodString;
4144
+ minimum: z.ZodNumber;
4145
+ current: z.ZodNumber;
4146
+ }, z.core.$strip>, z.ZodObject<{
4147
+ kind: z.ZodLiteral<"group">;
4148
+ group: z.ZodString;
4149
+ title: z.ZodString;
4150
+ }, z.core.$strip>]>>;
4151
+ campaign: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4152
+ key: z.ZodString;
4153
+ title: z.ZodString;
4154
+ window: z.ZodOptional<z.ZodObject<{
4155
+ from: z.ZodNumber;
4156
+ until: z.ZodNumber;
4157
+ }, z.core.$strict>>;
4158
+ enrollment: z.ZodDefault<z.ZodEnum<{
4159
+ none: "none";
4160
+ required: "required";
4161
+ }>>;
4162
+ enrolledAt: z.ZodNullable<z.ZodNumber>;
4163
+ withdrawnAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4164
+ withdrawalReason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4165
+ }, z.core.$strict>>>;
4166
+ window: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4167
+ from: z.ZodNumber;
4168
+ until: z.ZodNumber;
4169
+ }, z.core.$strict>>>;
4170
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
4171
+ id: z.ZodString;
4172
+ scope: z.ZodEnum<{
4173
+ member: "member";
4174
+ project: "project";
4175
+ }>;
4176
+ period: z.ZodEnum<{
4177
+ lifetime: "lifetime";
4178
+ day: "day";
4179
+ week: "week";
4180
+ month: "month";
4181
+ }>;
4182
+ remaining: z.ZodNumber;
4183
+ resetsAt: z.ZodNullable<z.ZodNumber>;
4184
+ }, z.core.$strip>>>;
3158
4185
  attempt: z.ZodNullable<z.ZodObject<{
3159
4186
  id: z.ZodString;
3160
4187
  release: z.ZodString;
@@ -3174,15 +4201,7 @@ declare const questExperienceSchema: z.ZodObject<{
3174
4201
  kind: z.ZodLiteral<"url">;
3175
4202
  value: z.ZodString;
3176
4203
  }, z.core.$strict>]>>;
3177
- status: z.ZodEnum<{
3178
- "needs-review": "needs-review";
3179
- failed: "failed";
3180
- queued: "queued";
3181
- evaluating: "evaluating";
3182
- accepted: "accepted";
3183
- progressed: "progressed";
3184
- rejected: "rejected";
3185
- }>;
4204
+ status: z.ZodType<AttemptStatus, unknown, z.core.$ZodTypeInternals<AttemptStatus, unknown>>;
3186
4205
  reason: z.ZodNullable<z.ZodString>;
3187
4206
  retries: z.ZodNumber;
3188
4207
  generation: z.ZodNumber;
@@ -3203,9 +4222,11 @@ declare const questExperienceSchema: z.ZodObject<{
3203
4222
  inventory: z.ZodObject<{
3204
4223
  kind: z.ZodLiteral<"untracked">;
3205
4224
  }, z.core.$strict>;
3206
- fulfillment: z.ZodObject<{
4225
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
3207
4226
  kind: z.ZodLiteral<"staff-handover">;
3208
- }, z.core.$strict>;
4227
+ }, z.core.$strict>, z.ZodObject<{
4228
+ kind: z.ZodLiteral<"automatic">;
4229
+ }, z.core.$strict>], "kind">;
3209
4230
  }, z.core.$strict>;
3210
4231
  tier: z.ZodString;
3211
4232
  }, z.core.$strict>, z.ZodObject<{
@@ -3214,16 +4235,26 @@ declare const questExperienceSchema: z.ZodObject<{
3214
4235
  action: z.ZodLiteral<"grant-role">;
3215
4236
  roleId: z.ZodString;
3216
4237
  }, z.core.$strict>]>>>>;
4238
+ evaluationRun: z.ZodDefault<z.ZodNumber>;
4239
+ deferCount: z.ZodDefault<z.ZodNumber>;
4240
+ deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4241
+ nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4242
+ code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4243
+ progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4244
+ current: z.ZodNumber;
4245
+ target: z.ZodNumber;
4246
+ reason: z.ZodString;
4247
+ }, z.core.$strip>>>;
3217
4248
  requestedReview: z.ZodDefault<z.ZodBoolean>;
3218
4249
  createdAt: z.ZodNumber;
3219
4250
  }, z.core.$strip>>;
3220
4251
  release: z.ZodString;
3221
4252
  interaction: z.ZodEnum<{
3222
4253
  text: "text";
3223
- url: "url";
3224
- automatic: "automatic";
3225
- claim: "claim";
3226
4254
  staff: "staff";
4255
+ claim: "claim";
4256
+ automatic: "automatic";
4257
+ url: "url";
3227
4258
  quiz: "quiz";
3228
4259
  photo: "photo";
3229
4260
  }>;
@@ -3281,7 +4312,28 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3281
4312
  }, z.core.$strict>>;
3282
4313
  correct: z.ZodString;
3283
4314
  }, z.core.$strict>>]>>;
3284
- requires: z.ZodArray<z.ZodString>;
4315
+ requires: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
4316
+ kind: z.ZodLiteral<"completion">;
4317
+ quest: z.ZodString;
4318
+ scope: z.ZodLiteral<"ever">;
4319
+ }, z.core.$strict>, z.ZodObject<{
4320
+ kind: z.ZodLiteral<"completion">;
4321
+ quest: z.ZodString;
4322
+ scope: z.ZodLiteral<"period">;
4323
+ period: z.ZodEnum<{
4324
+ day: "day";
4325
+ week: "week";
4326
+ month: "month";
4327
+ }>;
4328
+ }, z.core.$strict>], "scope">, z.ZodObject<{
4329
+ kind: z.ZodLiteral<"balance">;
4330
+ balance: z.ZodString;
4331
+ minimum: z.ZodNumber;
4332
+ }, z.core.$strict>, z.ZodObject<{
4333
+ kind: z.ZodLiteral<"group">;
4334
+ group: z.ZodString;
4335
+ title: z.ZodString;
4336
+ }, z.core.$strict>], "kind">>;
3285
4337
  status: z.ZodEnum<{
3286
4338
  paused: "paused";
3287
4339
  active: "active";
@@ -3315,7 +4367,28 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3315
4367
  }, z.core.$strict>>;
3316
4368
  correct: z.ZodString;
3317
4369
  }, z.core.$strict>>]>>;
3318
- requires: z.ZodArray<z.ZodString>;
4370
+ requires: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
4371
+ kind: z.ZodLiteral<"completion">;
4372
+ quest: z.ZodString;
4373
+ scope: z.ZodLiteral<"ever">;
4374
+ }, z.core.$strict>, z.ZodObject<{
4375
+ kind: z.ZodLiteral<"completion">;
4376
+ quest: z.ZodString;
4377
+ scope: z.ZodLiteral<"period">;
4378
+ period: z.ZodEnum<{
4379
+ day: "day";
4380
+ week: "week";
4381
+ month: "month";
4382
+ }>;
4383
+ }, z.core.$strict>], "scope">, z.ZodObject<{
4384
+ kind: z.ZodLiteral<"balance">;
4385
+ balance: z.ZodString;
4386
+ minimum: z.ZodNumber;
4387
+ }, z.core.$strict>, z.ZodObject<{
4388
+ kind: z.ZodLiteral<"group">;
4389
+ group: z.ZodString;
4390
+ title: z.ZodString;
4391
+ }, z.core.$strict>], "kind">>;
3319
4392
  status: z.ZodEnum<{
3320
4393
  paused: "paused";
3321
4394
  active: "active";
@@ -3333,9 +4406,9 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3333
4406
  status: z.ZodLiteral<"published">;
3334
4407
  releaseIds: z.ZodArray<z.ZodString>;
3335
4408
  }, z.core.$strip>], "status">;
3336
- releases: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4409
+ releases: z.ZodArray<z.ZodObject<{
3337
4410
  quest: z.ZodString;
3338
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
4411
+ evaluatorProtocol: z.ZodLiteral<2>;
3339
4412
  title: z.ZodString;
3340
4413
  presentation: z.ZodDefault<z.ZodObject<{
3341
4414
  quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3359,10 +4432,11 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3359
4432
  }, z.core.$strict>>;
3360
4433
  integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3361
4434
  discord: "discord";
4435
+ x: "x";
3362
4436
  }>>>;
3363
4437
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3364
4438
  kind: z.ZodLiteral<"point-ledger">;
3365
- default: z.ZodString;
4439
+ default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
3366
4440
  label: z.ZodString;
3367
4441
  description: z.ZodOptional<z.ZodString>;
3368
4442
  }, z.core.$strict>, z.ZodObject<{
@@ -3376,7 +4450,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3376
4450
  source: z.ZodUnion<readonly [z.ZodObject<{
3377
4451
  provider: z.ZodLiteral<"domino">;
3378
4452
  resource: z.ZodLiteral<"point-ledger">;
3379
- }, z.core.$strict>, z.ZodObject<{
4453
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
3380
4454
  provider: z.ZodLiteral<"discord">;
3381
4455
  resource: z.ZodLiteral<"channel">;
3382
4456
  types: z.ZodArray<z.ZodEnum<{
@@ -3387,7 +4461,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3387
4461
  provider: z.ZodLiteral<"discord">;
3388
4462
  resource: z.ZodLiteral<"role">;
3389
4463
  assignable: z.ZodDefault<z.ZodBoolean>;
3390
- }, z.core.$strict>]>;
4464
+ }, z.core.$strict>]>]>;
3391
4465
  label: z.ZodString;
3392
4466
  description: z.ZodOptional<z.ZodString>;
3393
4467
  }, z.core.$strict>, z.ZodObject<{
@@ -3455,9 +4529,11 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3455
4529
  inventory: z.ZodObject<{
3456
4530
  kind: z.ZodLiteral<"untracked">;
3457
4531
  }, z.core.$strict>;
3458
- fulfillment: z.ZodObject<{
4532
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
3459
4533
  kind: z.ZodLiteral<"staff-handover">;
3460
- }, z.core.$strict>;
4534
+ }, z.core.$strict>, z.ZodObject<{
4535
+ kind: z.ZodLiteral<"automatic">;
4536
+ }, z.core.$strict>], "kind">;
3461
4537
  }, z.core.$strict>;
3462
4538
  tier: z.ZodString;
3463
4539
  }, z.core.$strict>, z.ZodObject<{
@@ -3503,42 +4579,15 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3503
4579
  }>>;
3504
4580
  }, z.core.$strict>, z.ZodObject<{
3505
4581
  kind: z.ZodLiteral<"automatic">;
3506
- observation: z.ZodOptional<z.ZodObject<{
3507
- source: z.ZodString;
3508
- type: z.ZodString;
3509
- }, z.core.$strict>>;
3510
- content: z.ZodOptional<z.ZodObject<{
3511
- tracker: z.ZodString;
3512
- window: z.ZodObject<{
3513
- start: z.ZodNumber;
3514
- end: z.ZodOptional<z.ZodNumber>;
3515
- }, z.core.$strict>;
3516
- enrollment: z.ZodDefault<z.ZodEnum<{
3517
- none: "none";
3518
- required: "required";
3519
- }>>;
3520
- posts: z.ZodDefault<z.ZodEnum<{
3521
- "after-enrollment": "after-enrollment";
3522
- "since-start": "since-start";
3523
- }>>;
3524
- historical: z.ZodDefault<z.ZodEnum<{
3525
- automatic: "automatic";
3526
- claim: "claim";
3527
- staff: "staff";
3528
- }>>;
3529
- }, z.core.$strict>>;
3530
4582
  tracker: z.ZodOptional<z.ZodObject<{
3531
4583
  tracker: z.ZodString;
3532
- source: z.ZodEnum<{
3533
- custom: "custom";
3534
- "x-search": "x-search";
3535
- }>;
3536
- on: z.ZodOptional<z.ZodEnum<{
4584
+ source: z.ZodString;
4585
+ on: z.ZodEnum<{
3537
4586
  "new-record": "new-record";
3538
4587
  "new-observation": "new-observation";
3539
4588
  "data-changed": "data-changed";
3540
- }>>;
3541
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
4589
+ }>;
4590
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
3542
4591
  path: z.ZodString;
3543
4592
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3544
4593
  }, z.core.$strict>, z.ZodObject<{
@@ -3555,38 +4604,89 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3555
4604
  lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3556
4605
  setting: z.ZodString;
3557
4606
  }, z.core.$strict>]>>;
3558
- }, z.core.$strict>]>>;
3559
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
4607
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4608
+ path: z.ZodString;
4609
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
4610
+ }, z.core.$strict>, z.ZodObject<{
4611
+ path: z.ZodString;
4612
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
4613
+ setting: z.ZodString;
4614
+ }, z.core.$strict>]>>;
4615
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
4616
+ setting: z.ZodString;
4617
+ }, z.core.$strict>]>>;
4618
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
4619
+ setting: z.ZodString;
4620
+ }, z.core.$strict>]>>;
4621
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
4622
+ setting: z.ZodString;
4623
+ }, z.core.$strict>]>>;
4624
+ }, z.core.$strict>]>>]>>;
4625
+ beneficiary: z.ZodString;
4626
+ enrollment: z.ZodOptional<z.ZodEnum<{
4627
+ none: "none";
4628
+ required: "required";
4629
+ }>>;
4630
+ since: z.ZodOptional<z.ZodEnum<{
4631
+ activation: "activation";
4632
+ window: "window";
4633
+ enrollment: "enrollment";
4634
+ }>>;
4635
+ historical: z.ZodOptional<z.ZodEnum<{
4636
+ staff: "staff";
4637
+ claim: "claim";
4638
+ automatic: "automatic";
4639
+ }>>;
4640
+ content: z.ZodOptional<z.ZodLiteral<true>>;
3560
4641
  }, z.core.$strict>>;
3561
4642
  }, z.core.$strict>]>;
3562
4643
  performance: z.ZodOptional<z.ZodObject<{
3563
- metrics: z.ZodArray<z.ZodEnum<{
3564
- likes: "likes";
3565
- replies: "replies";
3566
- reposts: "reposts";
3567
- quotes: "quotes";
3568
- views: "views";
3569
- bookmarks: "bookmarks";
3570
- }>>;
4644
+ metrics: z.ZodArray<z.ZodString>;
3571
4645
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
3572
4646
  }, z.core.$strict>>;
3573
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
4647
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
4648
+ kind: z.ZodLiteral<"completion">;
3574
4649
  quest: z.ZodString;
3575
- }, z.core.$strip>>>;
3576
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
3577
- kind: z.ZodLiteral<"streak">;
3578
- days: z.ZodNumber;
3579
- timeZone: z.ZodString;
4650
+ scope: z.ZodLiteral<"ever">;
3580
4651
  }, z.core.$strict>, z.ZodObject<{
3581
- kind: z.ZodLiteral<"once">;
4652
+ kind: z.ZodLiteral<"completion">;
4653
+ quest: z.ZodString;
4654
+ scope: z.ZodLiteral<"period">;
4655
+ period: z.ZodEnum<{
4656
+ day: "day";
4657
+ week: "week";
4658
+ month: "month";
4659
+ }>;
4660
+ }, z.core.$strict>], "scope">, z.ZodObject<{
4661
+ kind: z.ZodLiteral<"balance">;
4662
+ balance: z.ZodString;
4663
+ minimum: z.ZodNumber;
3582
4664
  }, z.core.$strict>, z.ZodObject<{
3583
- kind: z.ZodLiteral<"keyed">;
3584
- }, z.core.$strict>], "kind">;
4665
+ kind: z.ZodLiteral<"group">;
4666
+ group: z.ZodString;
4667
+ title: z.ZodString;
4668
+ }, z.core.$strict>], "kind">>>;
4669
+ campaign: z.ZodOptional<z.ZodObject<{
4670
+ key: z.ZodString;
4671
+ title: z.ZodString;
4672
+ window: z.ZodOptional<z.ZodObject<{
4673
+ from: z.ZodNumber;
4674
+ until: z.ZodNumber;
4675
+ }, z.core.$strict>>;
4676
+ enrollment: z.ZodDefault<z.ZodEnum<{
4677
+ none: "none";
4678
+ required: "required";
4679
+ }>>;
4680
+ }, z.core.$strict>>;
4681
+ availability: z.ZodOptional<z.ZodObject<{
4682
+ from: z.ZodNumber;
4683
+ until: z.ZodNumber;
4684
+ }, z.core.$strict>>;
3585
4685
  visibility: z.ZodDefault<z.ZodEnum<{
3586
4686
  visible: "visible";
3587
4687
  hidden: "hidden";
3588
4688
  }>>;
3589
- profile: z.ZodOptional<z.ZodObject<{
4689
+ profile: z.ZodDefault<z.ZodObject<{
3590
4690
  visible: z.ZodBoolean;
3591
4691
  }, z.core.$strict>>;
3592
4692
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3596,15 +4696,48 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3596
4696
  project: "project";
3597
4697
  }>;
3598
4698
  period: z.ZodEnum<{
3599
- day: "day";
3600
4699
  lifetime: "lifetime";
4700
+ day: "day";
3601
4701
  week: "week";
4702
+ month: "month";
3602
4703
  }>;
3603
4704
  limit: z.ZodNumber;
3604
4705
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3605
4706
  balance: z.ZodString;
3606
4707
  }, z.core.$strict>]>;
3607
4708
  }, z.core.$strict>>>;
4709
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
4710
+ kind: z.ZodLiteral<"streak">;
4711
+ days: z.ZodNumber;
4712
+ }, z.core.$strip>, z.ZodObject<{
4713
+ kind: z.ZodLiteral<"progress">;
4714
+ goal: z.ZodObject<{
4715
+ kind: z.ZodLiteral<"count">;
4716
+ count: z.ZodNumber;
4717
+ }, z.core.$strict>;
4718
+ window: z.ZodDiscriminatedUnion<[z.ZodObject<{
4719
+ kind: z.ZodLiteral<"lifetime">;
4720
+ }, z.core.$strict>, z.ZodObject<{
4721
+ kind: z.ZodLiteral<"calendar">;
4722
+ period: z.ZodEnum<{
4723
+ day: "day";
4724
+ week: "week";
4725
+ month: "month";
4726
+ }>;
4727
+ latenessMs: z.ZodDefault<z.ZodNumber>;
4728
+ }, z.core.$strict>, z.ZodObject<{
4729
+ kind: z.ZodLiteral<"rolling">;
4730
+ durationMs: z.ZodNumber;
4731
+ }, z.core.$strict>], "kind">;
4732
+ repeat: z.ZodDefault<z.ZodEnum<{
4733
+ repeat: "repeat";
4734
+ once: "once";
4735
+ }>>;
4736
+ }, z.core.$strict>, z.ZodObject<{
4737
+ kind: z.ZodLiteral<"once">;
4738
+ }, z.core.$strict>, z.ZodObject<{
4739
+ kind: z.ZodLiteral<"keyed">;
4740
+ }, z.core.$strict>], "kind">;
3608
4741
  key: z.ZodOptional<z.ZodString>;
3609
4742
  code: z.ZodString;
3610
4743
  provider: z.ZodEnum<{
@@ -3616,7 +4749,6 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3616
4749
  }>;
3617
4750
  id: z.ZodString;
3618
4751
  createdAt: z.ZodNumber;
3619
- legacy: z.ZodDefault<z.ZodBoolean>;
3620
4752
  origin: z.ZodOptional<z.ZodObject<{
3621
4753
  typeVersion: z.ZodString;
3622
4754
  }, z.core.$strict>>;
@@ -3646,337 +4778,9 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3646
4778
  }, z.core.$strict>>]>>;
3647
4779
  preserved: z.ZodArray<z.ZodString>;
3648
4780
  }, z.core.$strict>>;
3649
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
3650
- quest: z.ZodString;
3651
- title: z.ZodString;
3652
- criteria: z.ZodString;
3653
- humanReview: z.ZodBoolean;
3654
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3655
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
3656
- balance: z.ZodString;
3657
- amount: z.ZodNumber;
3658
- }, z.core.$strict>, z.ZodObject<{
3659
- kind: z.ZodLiteral<"tier">;
3660
- reward: z.ZodObject<{
3661
- id: z.ZodString;
3662
- title: z.ZodString;
3663
- tiers: z.ZodArray<z.ZodObject<{
3664
- id: z.ZodString;
3665
- title: z.ZodString;
3666
- }, z.core.$strict>>;
3667
- inventory: z.ZodObject<{
3668
- kind: z.ZodLiteral<"untracked">;
3669
- }, z.core.$strict>;
3670
- fulfillment: z.ZodObject<{
3671
- kind: z.ZodLiteral<"staff-handover">;
3672
- }, z.core.$strict>;
3673
- }, z.core.$strict>;
3674
- tier: z.ZodString;
3675
- }, z.core.$strict>, z.ZodObject<{
3676
- kind: z.ZodLiteral<"integration">;
3677
- provider: z.ZodLiteral<"discord">;
3678
- action: z.ZodLiteral<"grant-role">;
3679
- roleId: z.ZodString;
3680
- }, z.core.$strict>]>>;
3681
- code: z.ZodString;
3682
- provider: z.ZodEnum<{
3683
- "workers-ai": "workers-ai";
3684
- "fixture-pass": "fixture-pass";
3685
- "fixture-fail": "fixture-fail";
3686
- "fixture-unclear": "fixture-unclear";
3687
- "fixture-error": "fixture-error";
3688
- }>;
3689
- id: z.ZodString;
3690
- createdAt: z.ZodNumber;
3691
- }, z.core.$strip>, z.ZodTransform<{
3692
- quest: string;
3693
- runtimeVersion: 1 | 2;
3694
- title: string;
3695
- presentation: {
3696
- quiz?: {
3697
- id: string;
3698
- prompt: string;
3699
- choices: {
3700
- id: string;
3701
- label: string;
3702
- }[];
3703
- }[] | undefined;
3704
- instructions?: string | undefined;
3705
- video?: {
3706
- url: string;
3707
- poster?: string | undefined;
3708
- captions?: {
3709
- url: string;
3710
- language: string;
3711
- label: string;
3712
- } | undefined;
3713
- } | undefined;
3714
- };
3715
- integrations: "discord"[];
3716
- fields: Record<string, {
3717
- kind: "point-ledger";
3718
- default: string;
3719
- label: string;
3720
- description?: string | undefined;
3721
- } | {
3722
- kind: "datetime";
3723
- default: string;
3724
- label: string;
3725
- description?: string | undefined;
3726
- } | {
3727
- kind: "resource";
3728
- default: string;
3729
- source: {
3730
- provider: "discord";
3731
- resource: "channel";
3732
- types: ("text" | "announcement")[];
3733
- } | {
3734
- provider: "domino";
3735
- resource: "point-ledger";
3736
- } | {
3737
- provider: "discord";
3738
- resource: "role";
3739
- assignable: boolean;
3740
- };
3741
- label: string;
3742
- description?: string | undefined;
3743
- } | {
3744
- kind: "quiz";
3745
- default: {
3746
- id: string;
3747
- prompt: string;
3748
- choices: {
3749
- id: string;
3750
- label: string;
3751
- }[];
3752
- correct: string;
3753
- }[];
3754
- label: string;
3755
- description?: string | undefined;
3756
- } | {
3757
- kind: "text";
3758
- default: string;
3759
- minLength: number;
3760
- maxLength: number;
3761
- multiline: boolean;
3762
- label: string;
3763
- description?: string | undefined;
3764
- } | {
3765
- kind: "integer";
3766
- default: number;
3767
- min: number;
3768
- max: number;
3769
- label: string;
3770
- description?: string | undefined;
3771
- } | {
3772
- kind: "boolean";
3773
- default: boolean;
3774
- label: string;
3775
- description?: string | undefined;
3776
- } | {
3777
- kind: "choice";
3778
- default: string;
3779
- options: string[];
3780
- label: string;
3781
- description?: string | undefined;
3782
- }>;
3783
- values: Record<string, string | number | boolean | {
3784
- id: string;
3785
- prompt: string;
3786
- choices: {
3787
- id: string;
3788
- label: string;
3789
- }[];
3790
- correct: string;
3791
- }[]>;
3792
- rewards: ({
3793
- kind: "tier";
3794
- reward: {
3795
- id: string;
3796
- title: string;
3797
- tiers: {
3798
- id: string;
3799
- title: string;
3800
- }[];
3801
- inventory: {
3802
- kind: "untracked";
3803
- };
3804
- fulfillment: {
3805
- kind: "staff-handover";
3806
- };
3807
- };
3808
- tier: string;
3809
- } | {
3810
- kind: "points";
3811
- balance: string;
3812
- amount: number;
3813
- } | {
3814
- kind: "integration";
3815
- provider: "discord";
3816
- action: "grant-role";
3817
- roleId: string;
3818
- })[];
3819
- humanReview: boolean;
3820
- trigger: {
3821
- kind: "automatic";
3822
- observation?: {
3823
- source: string;
3824
- type: string;
3825
- } | undefined;
3826
- content?: {
3827
- tracker: string;
3828
- window: {
3829
- start: number;
3830
- end?: number | undefined;
3831
- };
3832
- enrollment: "none" | "required";
3833
- posts: "after-enrollment" | "since-start";
3834
- historical: "automatic" | "claim" | "staff";
3835
- } | undefined;
3836
- tracker?: {
3837
- tracker: string;
3838
- source: "custom" | "x-search";
3839
- beneficiary: string;
3840
- on?: "new-record" | "new-observation" | "data-changed" | undefined;
3841
- where?: {
3842
- path: string;
3843
- gt?: number | {
3844
- setting: string;
3845
- } | undefined;
3846
- gte?: number | {
3847
- setting: string;
3848
- } | undefined;
3849
- lt?: number | {
3850
- setting: string;
3851
- } | undefined;
3852
- lte?: number | {
3853
- setting: string;
3854
- } | undefined;
3855
- } | {
3856
- path: string;
3857
- equals: string | number | boolean;
3858
- } | undefined;
3859
- } | undefined;
3860
- } | {
3861
- kind: "manual";
3862
- input: "text";
3863
- constraints: {
3864
- required: boolean;
3865
- minLength: number;
3866
- maxLength: number;
3867
- };
3868
- actor?: "member" | "staff" | undefined;
3869
- } | {
3870
- kind: "manual";
3871
- input: "url";
3872
- constraints: {
3873
- required: boolean;
3874
- allowedHosts?: string[] | undefined;
3875
- };
3876
- actor?: "member" | "staff" | undefined;
3877
- } | {
3878
- kind: "manual";
3879
- input: "none" | "quiz" | "photo";
3880
- actor?: "member" | "staff" | undefined;
3881
- };
3882
- requires: {
3883
- quest: string;
3884
- }[];
3885
- completion: {
3886
- kind: "streak";
3887
- days: number;
3888
- timeZone: string;
3889
- } | {
3890
- kind: "once";
3891
- } | {
3892
- kind: "keyed";
3893
- };
3894
- visibility: "visible" | "hidden";
3895
- budgets: {
3896
- id: string;
3897
- scope: "member" | "project";
3898
- period: "day" | "lifetime" | "week";
3899
- limit: number;
3900
- cost: number | {
3901
- balance: string;
3902
- };
3903
- }[];
3904
- code: string;
3905
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
3906
- id: string;
3907
- createdAt: number;
3908
- legacy: boolean;
3909
- lifecycle: "paused" | "active" | "archived";
3910
- performance?: {
3911
- metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3912
- maxAgeMs: number;
3913
- } | undefined;
3914
- profile?: {
3915
- visible: boolean;
3916
- } | undefined;
3917
- key?: string | undefined;
3918
- origin?: {
3919
- typeVersion: string;
3920
- } | undefined;
3921
- configuration?: {
3922
- defaults: Record<string, string | number | boolean | {
3923
- id: string;
3924
- prompt: string;
3925
- choices: {
3926
- id: string;
3927
- label: string;
3928
- }[];
3929
- correct: string;
3930
- }[]>;
3931
- overrides: Record<string, string | number | boolean | {
3932
- id: string;
3933
- prompt: string;
3934
- choices: {
3935
- id: string;
3936
- label: string;
3937
- }[];
3938
- correct: string;
3939
- }[]>;
3940
- preserved: string[];
3941
- } | undefined;
3942
- }, {
3943
- quest: string;
3944
- title: string;
3945
- criteria: string;
3946
- humanReview: boolean;
3947
- rewards: ({
3948
- kind: "tier";
3949
- reward: {
3950
- id: string;
3951
- title: string;
3952
- tiers: {
3953
- id: string;
3954
- title: string;
3955
- }[];
3956
- inventory: {
3957
- kind: "untracked";
3958
- };
3959
- fulfillment: {
3960
- kind: "staff-handover";
3961
- };
3962
- };
3963
- tier: string;
3964
- } | {
3965
- kind: "points";
3966
- balance: string;
3967
- amount: number;
3968
- } | {
3969
- kind: "integration";
3970
- provider: "discord";
3971
- action: "grant-role";
3972
- roleId: string;
3973
- })[];
3974
- code: string;
3975
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
3976
- id: string;
3977
- createdAt: number;
3978
- }>>]>>;
4781
+ }, z.core.$strict>>;
3979
4782
  affectedCollections: z.ZodArray<z.ZodObject<{
4783
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3980
4784
  id: z.ZodString;
3981
4785
  key: z.ZodOptional<z.ZodString>;
3982
4786
  title: z.ZodString;
@@ -3990,17 +4794,109 @@ declare const allocatedQuestSchema: z.ZodObject<{
3990
4794
  id: z.ZodString;
3991
4795
  }, z.core.$strip>;
3992
4796
 
3993
- /** A cursor as a client passes it back. */
3994
- declare const pageCursorSchema: z.ZodString;
3995
- /** A query that pages by cursor only. */
3996
- declare const pageQuerySchema: z.ZodObject<{
3997
- cursor: z.ZodOptional<z.ZodString>;
4797
+ /** `relay.quests.enroll()`: the signed-in member enrolls in a quest that requires enrollment. */
4798
+ declare const questEnrollmentInputSchema: z.ZodObject<{
4799
+ actionId: z.ZodString;
4800
+ /** Quest key or ID. */
4801
+ quest: z.ZodString;
4802
+ }, z.core.$strict>;
4803
+ type QuestEnrollmentInput = z.input<typeof questEnrollmentInputSchema>;
4804
+ /** `management.quests.enroll()`: a server enrolls a member, vouching for their consent. */
4805
+ declare const memberEnrollmentInputSchema: z.ZodObject<{
4806
+ actionId: z.ZodString;
4807
+ quest: z.ZodString;
4808
+ member: z.ZodString;
4809
+ }, z.core.$strict>;
4810
+ type MemberEnrollmentInput = z.input<typeof memberEnrollmentInputSchema>;
4811
+ /**
4812
+ * A member's enrollment in a quest. `enrolledAt` is the first enrollment: enrolling again changes
4813
+ * nothing.
4814
+ */
4815
+ declare const questEnrollmentSchema: z.ZodObject<{
4816
+ quest: z.ZodString;
4817
+ member: z.ZodString;
4818
+ enrolledAt: z.ZodNumber;
4819
+ }, z.core.$strip>;
4820
+ type QuestEnrollment = z.infer<typeof questEnrollmentSchema>;
4821
+ /**
4822
+ * `relay.quests.claim()`: the signed-in member claims one of their outcomes skipped as
4823
+ * `historical`, on a quest whose historical policy is `"claim"`. Relay decides it again under the
4824
+ * quest's current release with historical activity released; any other rule can still skip it.
4825
+ */
4826
+ declare const questClaimInputSchema: z.ZodObject<{
4827
+ actionId: z.ZodString;
4828
+ /** Quest key or ID. */
4829
+ quest: z.ZodString;
4830
+ /** The outcome's tracker, as `QuestOutcome.tracker` names it. */
4831
+ tracker: z.ZodString;
4832
+ record: z.ZodString;
4833
+ observedAt: z.ZodNumber;
3998
4834
  }, z.core.$strict>;
3999
- type PageQuery = z.input<typeof pageQuerySchema>;
4000
- /** One page of a paged read. */
4001
- type Page<T> = {
4002
- items: T[];
4003
- nextCursor: string | null;
4835
+ type QuestClaimInput = z.input<typeof questClaimInputSchema>;
4836
+ /**
4837
+ * The outcome states this SDK knows: an automatic decision `admitted` an attempt or was `skipped`.
4838
+ */
4839
+ declare const QuestOutcomeState: {
4840
+ readonly Admitted: "admitted";
4841
+ readonly Skipped: "skipped";
4004
4842
  };
4843
+ type QuestOutcomeState = (typeof QuestOutcomeState)[keyof typeof QuestOutcomeState];
4844
+ /**
4845
+ * One automatic decision about the signed-in member's activity: a quest admitted an attempt for a
4846
+ * tracker record observation, or skipped it with a stable code. Only decisions Relay attributed to
4847
+ * the member are theirs to read; a record no member has linked yet names nobody.
4848
+ */
4849
+ declare const questOutcomeSchema: z.ZodObject<{
4850
+ automatic: z.ZodOptional<z.ZodString>;
4851
+ quest: z.ZodString;
4852
+ tracker: z.ZodNullable<z.ZodString>;
4853
+ record: z.ZodNullable<z.ZodString>;
4854
+ observedAt: z.ZodNullable<z.ZodNumber>;
4855
+ state: z.ZodEnum<{
4856
+ admitted: "admitted";
4857
+ skipped: "skipped";
4858
+ }>;
4859
+ code: z.ZodType<TrackerSkipCode | null>;
4860
+ reason: z.ZodNullable<z.ZodString>;
4861
+ attempt: z.ZodNullable<z.ZodString>;
4862
+ claimable: z.ZodBoolean;
4863
+ createdAt: z.ZodNumber;
4864
+ updatedAt: z.ZodNumber;
4865
+ }, z.core.$strip>;
4866
+ type QuestOutcome = z.infer<typeof questOutcomeSchema>;
4867
+ /** `relay.quests.outcomes()`: newest first, optionally one quest, state or code. */
4868
+ declare const questOutcomeQuerySchema: z.ZodObject<{
4869
+ /** Quest key or ID. */
4870
+ quest: z.ZodOptional<z.ZodString>;
4871
+ state: z.ZodOptional<z.ZodEnum<{
4872
+ admitted: "admitted";
4873
+ skipped: "skipped";
4874
+ }>>;
4875
+ /** Only skips with this code, such as `historical`. */
4876
+ code: z.ZodOptional<z.ZodString>;
4877
+ cursor: z.ZodOptional<z.ZodString>;
4878
+ }, z.core.$strict>;
4879
+ type QuestOutcomeQuery = z.input<typeof questOutcomeQuerySchema>;
4880
+ declare const questOutcomePageSchema: z.ZodObject<{
4881
+ items: z.ZodArray<z.ZodObject<{
4882
+ automatic: z.ZodOptional<z.ZodString>;
4883
+ quest: z.ZodString;
4884
+ tracker: z.ZodNullable<z.ZodString>;
4885
+ record: z.ZodNullable<z.ZodString>;
4886
+ observedAt: z.ZodNullable<z.ZodNumber>;
4887
+ state: z.ZodEnum<{
4888
+ admitted: "admitted";
4889
+ skipped: "skipped";
4890
+ }>;
4891
+ code: z.ZodType<TrackerSkipCode | null>;
4892
+ reason: z.ZodNullable<z.ZodString>;
4893
+ attempt: z.ZodNullable<z.ZodString>;
4894
+ claimable: z.ZodBoolean;
4895
+ createdAt: z.ZodNumber;
4896
+ updatedAt: z.ZodNumber;
4897
+ }, z.core.$strip>>;
4898
+ nextCursor: z.ZodNullable<z.ZodString>;
4899
+ }, z.core.$strip>;
4900
+ type QuestOutcomePage = z.infer<typeof questOutcomePageSchema>;
4005
4901
 
4006
- export { principalSchema as A, publishQuestDraftSchema as B, questCatalogSchema as C, questCollectionSchema as D, type ExchangeInput as E, questDraftChangesSchema as F, questDraftSchema as G, questInstanceSchema as H, questInteraction as I, questPublicationPreviewSchema as J, questRewardViewSchema as K, questTypeVersionSchema as L, type MemberSummary as M, questViewSchema as N, saveQuestDraftSchema as O, type Page as P, type QuestInteraction as Q, sessionSchema as R, type Session as S, type PageQuery as a, type ParticipantPrincipal as b, type ParticipantSession as c, type QuestRewardView as d, type QuestView as e, exchangeSchema as f, type QuestCatalog as g, type QuestDraft as h, type QuestInstance as i, allocateQuestSchema as j, allocatedQuestSchema as k, authScopeSchema as l, catalogDeploymentPreviewSchema as m, catalogDeploymentSchema as n, collectionSlotDeclarationSchema as o, collectionSlotSchema as p, questExperienceSchema as q, collectionViewSchema as r, sessionMember as s, exchangeResultSchema as t, interactionSchema as u, memberSummarySchema as v, pageCursorSchema as w, pageQuerySchema as x, participantPrincipalSchema as y, participantSessionSchema as z };
4902
+ export { rewardDeliveriesSchema as $, contentQualificationQuerySchema as A, contentQualificationSchema as B, type ContentMetric as C, interactionSchema as D, knownRewardDeliverySchema as E, memberEnrollmentInputSchema as F, publishQuestDraftSchema as G, questCatalogSchema as H, questClaimInputSchema as I, questCollectionSchema as J, questDraftChangesSchema as K, questDraftSchema as L, type MemberEnrollmentInput as M, questEnrollmentInputSchema as N, questEnrollmentSchema as O, questExperienceSchema as P, type QuestClaimInput as Q, type RewardDelivery as R, questInstanceSchema as S, questInteraction as T, questOutcomePageSchema as U, questOutcomeQuerySchema as V, questOutcomeSchema as W, questPublicationPreviewSchema as X, questRewardViewSchema as Y, questTypeVersionSchema as Z, questViewSchema as _, type QuestEnrollment as a, rewardDeliverySchema as a0, roleReconciliationSchema as a1, saveQuestDraftSchema as a2, type QuestEnrollmentInput as b, type QuestInteraction as c, type QuestOutcome as d, type QuestOutcomePage as e, type QuestOutcomeQuery as f, QuestOutcomeState as g, type QuestRewardView as h, type QuestView as i, type ContentPerformancePolicy as j, type QuestCatalog as k, type QuestDraft as l, type QuestInstance as m, RewardDeliveryAction as n, allocateQuestSchema as o, allocatedQuestSchema as p, catalogDeploymentPreviewSchema as q, catalogDeploymentSchema as r, collectionSlotDeclarationSchema as s, collectionSlotSchema as t, collectionViewSchema as u, contentMetricSchema as v, contentMetricsSchema as w, contentPerformancePolicySchema as x, contentQualificationDecisionSchema as y, contentQualificationPageSchema as z };