@domino-sdk/relay 1.0.0-next.9 → 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 +1027 -233
  4. package/dist/authoring.js +478 -277
  5. package/dist/automatic-outcomes-B1xrETxm.d.ts +758 -0
  6. package/dist/avatar.d.ts +2 -2
  7. package/dist/browser-DFe7sWSN.d.ts +4154 -0
  8. package/dist/browser.d.ts +11 -2613
  9. package/dist/browser.js +8 -6
  10. package/dist/{integrations-Ba5TtqTv.d.ts → capability-error-DNMwKmlL.d.ts} +124 -76
  11. package/dist/{chunk-PHU5VDLR.js → chunk-36HTX2BM.js} +389 -169
  12. package/dist/chunk-6QJ3LADK.js +112 -0
  13. package/dist/{chunk-4LBUTHD6.js → chunk-BGGKNIRP.js} +1 -1
  14. package/dist/chunk-EYH5RDIE.js +496 -0
  15. package/dist/chunk-GQKYAQM6.js +84 -0
  16. package/dist/chunk-GUP7YRR4.js +42 -0
  17. package/dist/{chunk-X2F2RAR3.js → chunk-GZ6FJAXN.js} +380 -128
  18. package/dist/chunk-JON5SESL.js +2986 -0
  19. package/dist/chunk-MC6V6VMG.js +49 -0
  20. package/dist/chunk-NPGENI7K.js +37 -0
  21. package/dist/chunk-VFHHLN6A.js +284 -0
  22. package/dist/chunk-WJSSJ7AF.js +151 -0
  23. package/dist/{chunk-7Q4BGGT6.js → chunk-XFMSUPNS.js} +1 -1
  24. package/dist/{chunk-P6FK43GG.js → chunk-ZVIRG24J.js} +145 -42
  25. package/dist/{client-CT4-S5vc.d.ts → client-XiuFnug_.d.ts} +2161 -615
  26. package/dist/{submission-input-0OOGaq8c.d.ts → groups-Ck-OxzjD.d.ts} +916 -1139
  27. package/dist/identity-integration-GxAHdKR2.d.ts +58 -0
  28. package/dist/images-Dv-P5VBw.d.ts +234 -0
  29. package/dist/index.d.ts +13 -9
  30. package/dist/index.js +17 -6
  31. package/dist/internal.d.ts +82 -44
  32. package/dist/internal.js +43 -89
  33. package/dist/offers-Cy-e4o5x.d.ts +431 -0
  34. package/dist/{pages-D3titw5B.d.ts → outcomes-kVB-Juzs.d.ts} +2157 -1448
  35. package/dist/pages-BBYD21IE.d.ts +359 -0
  36. package/dist/participant-rewards-3duLb8YJ.d.ts +668 -0
  37. package/dist/portal-proxy.js +22 -4
  38. package/dist/{profiles-DDMFBRKe.d.ts → profiles-D2aFcOxu.d.ts} +15 -15
  39. package/dist/react/index.d.ts +3038 -1029
  40. package/dist/react/index.js +1627 -779
  41. package/dist/request-error-DWduJCGV.d.ts +62 -0
  42. package/dist/schema-DfJzH2ci.d.ts +5644 -0
  43. package/dist/schema.d.ts +15 -4168
  44. package/dist/schema.js +310 -81
  45. package/dist/server/index.d.ts +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-QR7ZA2BJ.js +0 -257
  54. package/dist/chunk-YYD4QUBO.js +0 -2348
  55. package/dist/chunk-ZWY3R6B3.js +0 -26
  56. package/dist/collection-BGneJ6Bk.d.ts +0 -114
  57. package/dist/images-BTgk6OmC.d.ts +0 -1564
  58. package/dist/point-ledgers-iS00Z_v0.d.ts +0 -37
  59. package/dist/schema-Di3aLSiK.d.ts +0 -3532
@@ -1,161 +1,308 @@
1
1
  import { z } from 'zod';
2
- import { a5 as questDescriptionSchema } from './schema-Di3aLSiK.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,41 +473,14 @@ 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
- required: "required";
338
- none: "none";
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
- }>>;
483
+ }>;
361
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]>;
@@ -393,37 +516,71 @@ declare const questTypeVersionSchema: z.ZodObject<{
393
516
  setting: z.ZodString;
394
517
  }, z.core.$strict>]>>;
395
518
  }, z.core.$strict>]>>]>>;
396
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
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>>;
397
535
  }, z.core.$strict>>;
398
536
  }, z.core.$strict>]>;
399
537
  performance: z.ZodOptional<z.ZodObject<{
400
- metrics: z.ZodArray<z.ZodEnum<{
401
- likes: "likes";
402
- replies: "replies";
403
- reposts: "reposts";
404
- quotes: "quotes";
405
- views: "views";
406
- bookmarks: "bookmarks";
407
- }>>;
538
+ metrics: z.ZodArray<z.ZodString>;
408
539
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
409
540
  }, z.core.$strict>>;
410
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
541
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
542
+ kind: z.ZodLiteral<"completion">;
411
543
  quest: z.ZodString;
412
- }, z.core.$strip>>>;
413
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
414
- kind: z.ZodLiteral<"streak">;
415
- days: z.ZodNumber;
416
- timeZone: z.ZodString;
544
+ scope: z.ZodLiteral<"ever">;
417
545
  }, z.core.$strict>, z.ZodObject<{
418
- 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;
419
558
  }, z.core.$strict>, z.ZodObject<{
420
- kind: z.ZodLiteral<"keyed">;
421
- }, 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>>;
422
579
  visibility: z.ZodDefault<z.ZodEnum<{
423
580
  visible: "visible";
424
581
  hidden: "hidden";
425
582
  }>>;
426
- profile: z.ZodOptional<z.ZodObject<{
583
+ profile: z.ZodDefault<z.ZodObject<{
427
584
  visible: z.ZodBoolean;
428
585
  }, z.core.$strict>>;
429
586
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -433,15 +590,48 @@ declare const questTypeVersionSchema: z.ZodObject<{
433
590
  project: "project";
434
591
  }>;
435
592
  period: z.ZodEnum<{
436
- day: "day";
437
593
  lifetime: "lifetime";
594
+ day: "day";
438
595
  week: "week";
596
+ month: "month";
439
597
  }>;
440
598
  limit: z.ZodNumber;
441
599
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
442
600
  balance: z.ZodString;
443
601
  }, z.core.$strict>]>;
444
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">;
445
635
  }, z.core.$strict>;
446
636
  provider: z.ZodEnum<{
447
637
  "workers-ai": "workers-ai";
@@ -453,26 +643,17 @@ declare const questTypeVersionSchema: z.ZodObject<{
453
643
  createdAt: z.ZodNumber;
454
644
  }, z.core.$strip>;
455
645
  declare const collectionSlotSchema: z.ZodObject<{
646
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
456
647
  id: z.ZodString;
457
648
  key: z.ZodOptional<z.ZodString>;
458
649
  title: z.ZodString;
459
650
  }, z.core.$strict>;
460
- declare const collectionSlotDeclarationSchema: z.ZodPipe<z.ZodObject<{
651
+ declare const collectionSlotDeclarationSchema: z.ZodObject<{
461
652
  title: z.ZodString;
462
- key: z.ZodOptional<z.ZodString>;
463
- id: z.ZodOptional<z.ZodString>;
464
- }, z.core.$strict>, z.ZodTransform<Omit<{
465
- title: string;
466
- key?: string | undefined;
467
- id?: string | undefined;
468
- }, "id" | "key"> & {
469
- key: string;
470
- }, {
471
- title: string;
472
- key?: string | undefined;
473
- id?: string | undefined;
474
- }>>;
653
+ key: z.ZodString;
654
+ }, z.core.$strict>;
475
655
  declare const questCollectionSchema: z.ZodObject<{
656
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
476
657
  id: z.ZodString;
477
658
  key: z.ZodOptional<z.ZodString>;
478
659
  title: z.ZodString;
@@ -491,7 +672,28 @@ declare const questInstanceSchema: z.ZodObject<{
491
672
  }, z.core.$strict>>;
492
673
  correct: z.ZodString;
493
674
  }, z.core.$strict>>]>>;
494
- 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">>;
495
697
  status: z.ZodEnum<{
496
698
  paused: "paused";
497
699
  active: "active";
@@ -512,7 +714,28 @@ declare const questDraftChangesSchema: z.ZodObject<{
512
714
  }, z.core.$strict>>;
513
715
  correct: z.ZodString;
514
716
  }, z.core.$strict>>]>>;
515
- 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">>;
516
739
  status: z.ZodEnum<{
517
740
  paused: "paused";
518
741
  active: "active";
@@ -545,7 +768,28 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
545
768
  }, z.core.$strict>>;
546
769
  correct: z.ZodString;
547
770
  }, z.core.$strict>>]>>;
548
- 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">>;
549
793
  status: z.ZodEnum<{
550
794
  paused: "paused";
551
795
  active: "active";
@@ -579,7 +823,28 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
579
823
  }, z.core.$strict>>;
580
824
  correct: z.ZodString;
581
825
  }, z.core.$strict>>]>>;
582
- 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">>;
583
848
  status: z.ZodEnum<{
584
849
  paused: "paused";
585
850
  active: "active";
@@ -600,13 +865,14 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
600
865
  declare const questCatalogSchema: z.ZodObject<{
601
866
  revision: z.ZodNumber;
602
867
  types: z.ZodArray<z.ZodObject<{
868
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
603
869
  key: z.ZodOptional<z.ZodString>;
604
870
  id: z.ZodString;
605
871
  version: z.ZodString;
606
872
  code: z.ZodString;
607
873
  definition: z.ZodObject<{
608
874
  quest: z.ZodString;
609
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
875
+ evaluatorProtocol: z.ZodLiteral<2>;
610
876
  title: z.ZodString;
611
877
  presentation: z.ZodDefault<z.ZodObject<{
612
878
  quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -630,10 +896,11 @@ declare const questCatalogSchema: z.ZodObject<{
630
896
  }, z.core.$strict>>;
631
897
  integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
632
898
  discord: "discord";
899
+ x: "x";
633
900
  }>>>;
634
901
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
635
902
  kind: z.ZodLiteral<"point-ledger">;
636
- default: z.ZodString;
903
+ default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
637
904
  label: z.ZodString;
638
905
  description: z.ZodOptional<z.ZodString>;
639
906
  }, z.core.$strict>, z.ZodObject<{
@@ -647,7 +914,7 @@ declare const questCatalogSchema: z.ZodObject<{
647
914
  source: z.ZodUnion<readonly [z.ZodObject<{
648
915
  provider: z.ZodLiteral<"domino">;
649
916
  resource: z.ZodLiteral<"point-ledger">;
650
- }, z.core.$strict>, z.ZodObject<{
917
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
651
918
  provider: z.ZodLiteral<"discord">;
652
919
  resource: z.ZodLiteral<"channel">;
653
920
  types: z.ZodArray<z.ZodEnum<{
@@ -658,7 +925,7 @@ declare const questCatalogSchema: z.ZodObject<{
658
925
  provider: z.ZodLiteral<"discord">;
659
926
  resource: z.ZodLiteral<"role">;
660
927
  assignable: z.ZodDefault<z.ZodBoolean>;
661
- }, z.core.$strict>]>;
928
+ }, z.core.$strict>]>]>;
662
929
  label: z.ZodString;
663
930
  description: z.ZodOptional<z.ZodString>;
664
931
  }, z.core.$strict>, z.ZodObject<{
@@ -726,9 +993,11 @@ declare const questCatalogSchema: z.ZodObject<{
726
993
  inventory: z.ZodObject<{
727
994
  kind: z.ZodLiteral<"untracked">;
728
995
  }, z.core.$strict>;
729
- fulfillment: z.ZodObject<{
996
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
730
997
  kind: z.ZodLiteral<"staff-handover">;
731
- }, z.core.$strict>;
998
+ }, z.core.$strict>, z.ZodObject<{
999
+ kind: z.ZodLiteral<"automatic">;
1000
+ }, z.core.$strict>], "kind">;
732
1001
  }, z.core.$strict>;
733
1002
  tier: z.ZodString;
734
1003
  }, z.core.$strict>, z.ZodObject<{
@@ -774,41 +1043,14 @@ declare const questCatalogSchema: z.ZodObject<{
774
1043
  }>>;
775
1044
  }, z.core.$strict>, z.ZodObject<{
776
1045
  kind: z.ZodLiteral<"automatic">;
777
- observation: z.ZodOptional<z.ZodObject<{
778
- source: z.ZodString;
779
- type: z.ZodString;
780
- }, z.core.$strict>>;
781
- content: z.ZodOptional<z.ZodObject<{
782
- tracker: z.ZodString;
783
- window: z.ZodObject<{
784
- start: z.ZodNumber;
785
- end: z.ZodOptional<z.ZodNumber>;
786
- }, z.core.$strict>;
787
- enrollment: z.ZodDefault<z.ZodEnum<{
788
- required: "required";
789
- none: "none";
790
- }>>;
791
- posts: z.ZodDefault<z.ZodEnum<{
792
- "after-enrollment": "after-enrollment";
793
- "since-start": "since-start";
794
- }>>;
795
- historical: z.ZodDefault<z.ZodEnum<{
796
- automatic: "automatic";
797
- claim: "claim";
798
- staff: "staff";
799
- }>>;
800
- }, z.core.$strict>>;
801
1046
  tracker: z.ZodOptional<z.ZodObject<{
802
1047
  tracker: z.ZodString;
803
- source: z.ZodEnum<{
804
- custom: "custom";
805
- "x-search": "x-search";
806
- }>;
807
- on: z.ZodOptional<z.ZodEnum<{
1048
+ source: z.ZodString;
1049
+ on: z.ZodEnum<{
808
1050
  "new-record": "new-record";
809
1051
  "new-observation": "new-observation";
810
1052
  "data-changed": "data-changed";
811
- }>>;
1053
+ }>;
812
1054
  where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
813
1055
  path: z.ZodString;
814
1056
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -844,37 +1086,71 @@ declare const questCatalogSchema: z.ZodObject<{
844
1086
  setting: z.ZodString;
845
1087
  }, z.core.$strict>]>>;
846
1088
  }, z.core.$strict>]>>]>>;
847
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
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>>;
848
1105
  }, z.core.$strict>>;
849
1106
  }, z.core.$strict>]>;
850
1107
  performance: z.ZodOptional<z.ZodObject<{
851
- metrics: z.ZodArray<z.ZodEnum<{
852
- likes: "likes";
853
- replies: "replies";
854
- reposts: "reposts";
855
- quotes: "quotes";
856
- views: "views";
857
- bookmarks: "bookmarks";
858
- }>>;
1108
+ metrics: z.ZodArray<z.ZodString>;
859
1109
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
860
1110
  }, z.core.$strict>>;
861
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1111
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
1112
+ kind: z.ZodLiteral<"completion">;
862
1113
  quest: z.ZodString;
863
- }, z.core.$strip>>>;
864
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
865
- kind: z.ZodLiteral<"streak">;
866
- days: z.ZodNumber;
867
- timeZone: z.ZodString;
1114
+ scope: z.ZodLiteral<"ever">;
868
1115
  }, z.core.$strict>, z.ZodObject<{
869
- 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;
870
1128
  }, z.core.$strict>, z.ZodObject<{
871
- kind: z.ZodLiteral<"keyed">;
872
- }, 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>>;
873
1149
  visibility: z.ZodDefault<z.ZodEnum<{
874
1150
  visible: "visible";
875
1151
  hidden: "hidden";
876
1152
  }>>;
877
- profile: z.ZodOptional<z.ZodObject<{
1153
+ profile: z.ZodDefault<z.ZodObject<{
878
1154
  visible: z.ZodBoolean;
879
1155
  }, z.core.$strict>>;
880
1156
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -884,15 +1160,48 @@ declare const questCatalogSchema: z.ZodObject<{
884
1160
  project: "project";
885
1161
  }>;
886
1162
  period: z.ZodEnum<{
887
- day: "day";
888
1163
  lifetime: "lifetime";
1164
+ day: "day";
889
1165
  week: "week";
1166
+ month: "month";
890
1167
  }>;
891
1168
  limit: z.ZodNumber;
892
1169
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
893
1170
  balance: z.ZodString;
894
1171
  }, z.core.$strict>]>;
895
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">;
896
1205
  }, z.core.$strict>;
897
1206
  provider: z.ZodEnum<{
898
1207
  "workers-ai": "workers-ai";
@@ -904,6 +1213,7 @@ declare const questCatalogSchema: z.ZodObject<{
904
1213
  createdAt: z.ZodNumber;
905
1214
  }, z.core.$strip>>;
906
1215
  collections: z.ZodArray<z.ZodObject<{
1216
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
907
1217
  id: z.ZodString;
908
1218
  key: z.ZodOptional<z.ZodString>;
909
1219
  title: z.ZodString;
@@ -922,7 +1232,28 @@ declare const questCatalogSchema: z.ZodObject<{
922
1232
  }, z.core.$strict>>;
923
1233
  correct: z.ZodString;
924
1234
  }, z.core.$strict>>]>>;
925
- 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">>;
926
1257
  status: z.ZodEnum<{
927
1258
  paused: "paused";
928
1259
  active: "active";
@@ -947,7 +1278,28 @@ declare const questCatalogSchema: z.ZodObject<{
947
1278
  }, z.core.$strict>>;
948
1279
  correct: z.ZodString;
949
1280
  }, z.core.$strict>>]>>;
950
- 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">>;
951
1303
  status: z.ZodEnum<{
952
1304
  paused: "paused";
953
1305
  active: "active";
@@ -981,7 +1333,28 @@ declare const questCatalogSchema: z.ZodObject<{
981
1333
  }, z.core.$strict>>;
982
1334
  correct: z.ZodString;
983
1335
  }, z.core.$strict>>]>>;
984
- 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">>;
985
1358
  status: z.ZodEnum<{
986
1359
  paused: "paused";
987
1360
  active: "active";
@@ -999,9 +1372,9 @@ declare const questCatalogSchema: z.ZodObject<{
999
1372
  status: z.ZodLiteral<"published">;
1000
1373
  releaseIds: z.ZodArray<z.ZodString>;
1001
1374
  }, z.core.$strip>], "status">>;
1002
- releases: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1375
+ releases: z.ZodDefault<z.ZodArray<z.ZodObject<{
1003
1376
  quest: z.ZodString;
1004
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1377
+ evaluatorProtocol: z.ZodLiteral<2>;
1005
1378
  title: z.ZodString;
1006
1379
  presentation: z.ZodDefault<z.ZodObject<{
1007
1380
  quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1025,10 +1398,11 @@ declare const questCatalogSchema: z.ZodObject<{
1025
1398
  }, z.core.$strict>>;
1026
1399
  integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1027
1400
  discord: "discord";
1401
+ x: "x";
1028
1402
  }>>>;
1029
1403
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1030
1404
  kind: z.ZodLiteral<"point-ledger">;
1031
- default: z.ZodString;
1405
+ default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
1032
1406
  label: z.ZodString;
1033
1407
  description: z.ZodOptional<z.ZodString>;
1034
1408
  }, z.core.$strict>, z.ZodObject<{
@@ -1042,7 +1416,7 @@ declare const questCatalogSchema: z.ZodObject<{
1042
1416
  source: z.ZodUnion<readonly [z.ZodObject<{
1043
1417
  provider: z.ZodLiteral<"domino">;
1044
1418
  resource: z.ZodLiteral<"point-ledger">;
1045
- }, z.core.$strict>, z.ZodObject<{
1419
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
1046
1420
  provider: z.ZodLiteral<"discord">;
1047
1421
  resource: z.ZodLiteral<"channel">;
1048
1422
  types: z.ZodArray<z.ZodEnum<{
@@ -1053,7 +1427,7 @@ declare const questCatalogSchema: z.ZodObject<{
1053
1427
  provider: z.ZodLiteral<"discord">;
1054
1428
  resource: z.ZodLiteral<"role">;
1055
1429
  assignable: z.ZodDefault<z.ZodBoolean>;
1056
- }, z.core.$strict>]>;
1430
+ }, z.core.$strict>]>]>;
1057
1431
  label: z.ZodString;
1058
1432
  description: z.ZodOptional<z.ZodString>;
1059
1433
  }, z.core.$strict>, z.ZodObject<{
@@ -1121,9 +1495,11 @@ declare const questCatalogSchema: z.ZodObject<{
1121
1495
  inventory: z.ZodObject<{
1122
1496
  kind: z.ZodLiteral<"untracked">;
1123
1497
  }, z.core.$strict>;
1124
- fulfillment: z.ZodObject<{
1498
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
1125
1499
  kind: z.ZodLiteral<"staff-handover">;
1126
- }, z.core.$strict>;
1500
+ }, z.core.$strict>, z.ZodObject<{
1501
+ kind: z.ZodLiteral<"automatic">;
1502
+ }, z.core.$strict>], "kind">;
1127
1503
  }, z.core.$strict>;
1128
1504
  tier: z.ZodString;
1129
1505
  }, z.core.$strict>, z.ZodObject<{
@@ -1169,41 +1545,14 @@ declare const questCatalogSchema: z.ZodObject<{
1169
1545
  }>>;
1170
1546
  }, z.core.$strict>, z.ZodObject<{
1171
1547
  kind: z.ZodLiteral<"automatic">;
1172
- observation: z.ZodOptional<z.ZodObject<{
1173
- source: z.ZodString;
1174
- type: z.ZodString;
1175
- }, z.core.$strict>>;
1176
- content: z.ZodOptional<z.ZodObject<{
1177
- tracker: z.ZodString;
1178
- window: z.ZodObject<{
1179
- start: z.ZodNumber;
1180
- end: z.ZodOptional<z.ZodNumber>;
1181
- }, z.core.$strict>;
1182
- enrollment: z.ZodDefault<z.ZodEnum<{
1183
- required: "required";
1184
- none: "none";
1185
- }>>;
1186
- posts: z.ZodDefault<z.ZodEnum<{
1187
- "after-enrollment": "after-enrollment";
1188
- "since-start": "since-start";
1189
- }>>;
1190
- historical: z.ZodDefault<z.ZodEnum<{
1191
- automatic: "automatic";
1192
- claim: "claim";
1193
- staff: "staff";
1194
- }>>;
1195
- }, z.core.$strict>>;
1196
1548
  tracker: z.ZodOptional<z.ZodObject<{
1197
1549
  tracker: z.ZodString;
1198
- source: z.ZodEnum<{
1199
- custom: "custom";
1200
- "x-search": "x-search";
1201
- }>;
1202
- on: z.ZodOptional<z.ZodEnum<{
1550
+ source: z.ZodString;
1551
+ on: z.ZodEnum<{
1203
1552
  "new-record": "new-record";
1204
1553
  "new-observation": "new-observation";
1205
1554
  "data-changed": "data-changed";
1206
- }>>;
1555
+ }>;
1207
1556
  where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1208
1557
  path: z.ZodString;
1209
1558
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -1239,37 +1588,71 @@ declare const questCatalogSchema: z.ZodObject<{
1239
1588
  setting: z.ZodString;
1240
1589
  }, z.core.$strict>]>>;
1241
1590
  }, z.core.$strict>]>>]>>;
1242
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
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>>;
1243
1607
  }, z.core.$strict>>;
1244
1608
  }, z.core.$strict>]>;
1245
1609
  performance: z.ZodOptional<z.ZodObject<{
1246
- metrics: z.ZodArray<z.ZodEnum<{
1247
- likes: "likes";
1248
- replies: "replies";
1249
- reposts: "reposts";
1250
- quotes: "quotes";
1251
- views: "views";
1252
- bookmarks: "bookmarks";
1253
- }>>;
1610
+ metrics: z.ZodArray<z.ZodString>;
1254
1611
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
1255
1612
  }, z.core.$strict>>;
1256
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1613
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
1614
+ kind: z.ZodLiteral<"completion">;
1257
1615
  quest: z.ZodString;
1258
- }, z.core.$strip>>>;
1259
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1260
- kind: z.ZodLiteral<"streak">;
1261
- days: z.ZodNumber;
1262
- timeZone: z.ZodString;
1616
+ scope: z.ZodLiteral<"ever">;
1263
1617
  }, z.core.$strict>, z.ZodObject<{
1264
- 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;
1265
1630
  }, z.core.$strict>, z.ZodObject<{
1266
- kind: z.ZodLiteral<"keyed">;
1267
- }, 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>>;
1268
1651
  visibility: z.ZodDefault<z.ZodEnum<{
1269
1652
  visible: "visible";
1270
1653
  hidden: "hidden";
1271
1654
  }>>;
1272
- profile: z.ZodOptional<z.ZodObject<{
1655
+ profile: z.ZodDefault<z.ZodObject<{
1273
1656
  visible: z.ZodBoolean;
1274
1657
  }, z.core.$strict>>;
1275
1658
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1279,15 +1662,48 @@ declare const questCatalogSchema: z.ZodObject<{
1279
1662
  project: "project";
1280
1663
  }>;
1281
1664
  period: z.ZodEnum<{
1282
- day: "day";
1283
1665
  lifetime: "lifetime";
1666
+ day: "day";
1284
1667
  week: "week";
1668
+ month: "month";
1285
1669
  }>;
1286
1670
  limit: z.ZodNumber;
1287
1671
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1288
1672
  balance: z.ZodString;
1289
1673
  }, z.core.$strict>]>;
1290
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">;
1291
1707
  key: z.ZodOptional<z.ZodString>;
1292
1708
  code: z.ZodString;
1293
1709
  provider: z.ZodEnum<{
@@ -1299,7 +1715,6 @@ declare const questCatalogSchema: z.ZodObject<{
1299
1715
  }>;
1300
1716
  id: z.ZodString;
1301
1717
  createdAt: z.ZodNumber;
1302
- legacy: z.ZodDefault<z.ZodBoolean>;
1303
1718
  origin: z.ZodOptional<z.ZodObject<{
1304
1719
  typeVersion: z.ZodString;
1305
1720
  }, z.core.$strict>>;
@@ -1329,359 +1744,13 @@ declare const questCatalogSchema: z.ZodObject<{
1329
1744
  }, z.core.$strict>>]>>;
1330
1745
  preserved: z.ZodArray<z.ZodString>;
1331
1746
  }, z.core.$strict>>;
1332
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
1333
- quest: z.ZodString;
1334
- title: z.ZodString;
1335
- criteria: z.ZodString;
1336
- humanReview: z.ZodBoolean;
1337
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1338
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
1339
- balance: z.ZodString;
1340
- amount: z.ZodNumber;
1341
- }, z.core.$strict>, z.ZodObject<{
1342
- kind: z.ZodLiteral<"tier">;
1343
- reward: z.ZodObject<{
1344
- id: z.ZodString;
1345
- title: z.ZodString;
1346
- tiers: z.ZodArray<z.ZodObject<{
1347
- id: z.ZodString;
1348
- title: z.ZodString;
1349
- }, z.core.$strict>>;
1350
- inventory: z.ZodObject<{
1351
- kind: z.ZodLiteral<"untracked">;
1352
- }, z.core.$strict>;
1353
- fulfillment: z.ZodObject<{
1354
- kind: z.ZodLiteral<"staff-handover">;
1355
- }, z.core.$strict>;
1356
- }, z.core.$strict>;
1357
- tier: z.ZodString;
1358
- }, z.core.$strict>, z.ZodObject<{
1359
- kind: z.ZodLiteral<"integration">;
1360
- provider: z.ZodLiteral<"discord">;
1361
- action: z.ZodLiteral<"grant-role">;
1362
- roleId: z.ZodString;
1363
- }, z.core.$strict>]>>;
1364
- code: z.ZodString;
1365
- provider: z.ZodEnum<{
1366
- "workers-ai": "workers-ai";
1367
- "fixture-pass": "fixture-pass";
1368
- "fixture-fail": "fixture-fail";
1369
- "fixture-unclear": "fixture-unclear";
1370
- "fixture-error": "fixture-error";
1371
- }>;
1372
- id: z.ZodString;
1373
- createdAt: z.ZodNumber;
1374
- }, z.core.$strip>, z.ZodTransform<{
1375
- quest: string;
1376
- runtimeVersion: 1 | 2;
1377
- title: string;
1378
- presentation: {
1379
- quiz?: {
1380
- id: string;
1381
- prompt: string;
1382
- choices: {
1383
- id: string;
1384
- label: string;
1385
- }[];
1386
- }[] | undefined;
1387
- instructions?: string | undefined;
1388
- video?: {
1389
- url: string;
1390
- poster?: string | undefined;
1391
- captions?: {
1392
- url: string;
1393
- language: string;
1394
- label: string;
1395
- } | undefined;
1396
- } | undefined;
1397
- };
1398
- integrations: "discord"[];
1399
- fields: Record<string, {
1400
- kind: "point-ledger";
1401
- default: string;
1402
- label: string;
1403
- description?: string | undefined;
1404
- } | {
1405
- kind: "datetime";
1406
- default: string;
1407
- label: string;
1408
- description?: string | undefined;
1409
- } | {
1410
- kind: "resource";
1411
- default: string;
1412
- source: {
1413
- provider: "discord";
1414
- resource: "channel";
1415
- types: ("text" | "announcement")[];
1416
- } | {
1417
- provider: "domino";
1418
- resource: "point-ledger";
1419
- } | {
1420
- provider: "discord";
1421
- resource: "role";
1422
- assignable: boolean;
1423
- };
1424
- label: string;
1425
- description?: string | undefined;
1426
- } | {
1427
- kind: "quiz";
1428
- default: {
1429
- id: string;
1430
- prompt: string;
1431
- choices: {
1432
- id: string;
1433
- label: string;
1434
- }[];
1435
- correct: string;
1436
- }[];
1437
- label: string;
1438
- description?: string | undefined;
1439
- } | {
1440
- kind: "text";
1441
- default: string;
1442
- minLength: number;
1443
- maxLength: number;
1444
- multiline: boolean;
1445
- label: string;
1446
- description?: string | undefined;
1447
- } | {
1448
- kind: "integer";
1449
- default: number;
1450
- min: number;
1451
- max: number;
1452
- label: string;
1453
- description?: string | undefined;
1454
- } | {
1455
- kind: "boolean";
1456
- default: boolean;
1457
- label: string;
1458
- description?: string | undefined;
1459
- } | {
1460
- kind: "choice";
1461
- default: string;
1462
- options: string[];
1463
- label: string;
1464
- description?: string | undefined;
1465
- }>;
1466
- values: Record<string, string | number | boolean | {
1467
- id: string;
1468
- prompt: string;
1469
- choices: {
1470
- id: string;
1471
- label: string;
1472
- }[];
1473
- correct: string;
1474
- }[]>;
1475
- rewards: ({
1476
- kind: "tier";
1477
- reward: {
1478
- id: string;
1479
- title: string;
1480
- tiers: {
1481
- id: string;
1482
- title: string;
1483
- }[];
1484
- inventory: {
1485
- kind: "untracked";
1486
- };
1487
- fulfillment: {
1488
- kind: "staff-handover";
1489
- };
1490
- };
1491
- tier: string;
1492
- } | {
1493
- kind: "points";
1494
- balance: string;
1495
- amount: number;
1496
- } | {
1497
- kind: "integration";
1498
- provider: "discord";
1499
- action: "grant-role";
1500
- roleId: string;
1501
- })[];
1502
- humanReview: boolean;
1503
- trigger: {
1504
- kind: "automatic";
1505
- observation?: {
1506
- source: string;
1507
- type: string;
1508
- } | undefined;
1509
- content?: {
1510
- tracker: string;
1511
- window: {
1512
- start: number;
1513
- end?: number | undefined;
1514
- };
1515
- enrollment: "required" | "none";
1516
- posts: "after-enrollment" | "since-start";
1517
- historical: "automatic" | "claim" | "staff";
1518
- } | undefined;
1519
- tracker?: {
1520
- tracker: string;
1521
- source: "custom" | "x-search";
1522
- beneficiary: string;
1523
- on?: "new-record" | "new-observation" | "data-changed" | undefined;
1524
- where?: {
1525
- path: string;
1526
- gt?: number | {
1527
- setting: string;
1528
- } | undefined;
1529
- gte?: number | {
1530
- setting: string;
1531
- } | undefined;
1532
- lt?: number | {
1533
- setting: string;
1534
- } | undefined;
1535
- lte?: number | {
1536
- setting: string;
1537
- } | undefined;
1538
- } | {
1539
- path: string;
1540
- equals: string | number | boolean;
1541
- } | ({
1542
- path: string;
1543
- gt?: number | {
1544
- setting: string;
1545
- } | undefined;
1546
- gte?: number | {
1547
- setting: string;
1548
- } | undefined;
1549
- lt?: number | {
1550
- setting: string;
1551
- } | undefined;
1552
- lte?: number | {
1553
- setting: string;
1554
- } | undefined;
1555
- } | {
1556
- path: string;
1557
- equals: string | number | boolean;
1558
- })[] | undefined;
1559
- } | undefined;
1560
- } | {
1561
- kind: "manual";
1562
- input: "text";
1563
- constraints: {
1564
- required: boolean;
1565
- minLength: number;
1566
- maxLength: number;
1567
- };
1568
- actor?: "member" | "staff" | undefined;
1569
- } | {
1570
- kind: "manual";
1571
- input: "url";
1572
- constraints: {
1573
- required: boolean;
1574
- allowedHosts?: string[] | undefined;
1575
- };
1576
- actor?: "member" | "staff" | undefined;
1577
- } | {
1578
- kind: "manual";
1579
- input: "none" | "quiz" | "photo";
1580
- actor?: "member" | "staff" | undefined;
1581
- };
1582
- requires: {
1583
- quest: string;
1584
- }[];
1585
- completion: {
1586
- kind: "streak";
1587
- days: number;
1588
- timeZone: string;
1589
- } | {
1590
- kind: "once";
1591
- } | {
1592
- kind: "keyed";
1593
- };
1594
- visibility: "visible" | "hidden";
1595
- budgets: {
1596
- id: string;
1597
- scope: "member" | "project";
1598
- period: "day" | "lifetime" | "week";
1599
- limit: number;
1600
- cost: number | {
1601
- balance: string;
1602
- };
1603
- }[];
1604
- code: string;
1605
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1606
- id: string;
1607
- createdAt: number;
1608
- legacy: boolean;
1609
- lifecycle: "paused" | "active" | "archived";
1610
- performance?: {
1611
- metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
1612
- maxAgeMs: number;
1613
- } | undefined;
1614
- profile?: {
1615
- visible: boolean;
1616
- } | undefined;
1617
- key?: string | undefined;
1618
- origin?: {
1619
- typeVersion: string;
1620
- } | undefined;
1621
- configuration?: {
1622
- defaults: Record<string, string | number | boolean | {
1623
- id: string;
1624
- prompt: string;
1625
- choices: {
1626
- id: string;
1627
- label: string;
1628
- }[];
1629
- correct: string;
1630
- }[]>;
1631
- overrides: Record<string, string | number | boolean | {
1632
- id: string;
1633
- prompt: string;
1634
- choices: {
1635
- id: string;
1636
- label: string;
1637
- }[];
1638
- correct: string;
1639
- }[]>;
1640
- preserved: string[];
1641
- } | undefined;
1642
- }, {
1643
- quest: string;
1644
- title: string;
1645
- criteria: string;
1646
- humanReview: boolean;
1647
- rewards: ({
1648
- kind: "tier";
1649
- reward: {
1650
- id: string;
1651
- title: string;
1652
- tiers: {
1653
- id: string;
1654
- title: string;
1655
- }[];
1656
- inventory: {
1657
- kind: "untracked";
1658
- };
1659
- fulfillment: {
1660
- kind: "staff-handover";
1661
- };
1662
- };
1663
- tier: string;
1664
- } | {
1665
- kind: "points";
1666
- balance: string;
1667
- amount: number;
1668
- } | {
1669
- kind: "integration";
1670
- provider: "discord";
1671
- action: "grant-role";
1672
- roleId: string;
1673
- })[];
1674
- code: string;
1675
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1676
- id: string;
1677
- createdAt: number;
1678
- }>>]>>>;
1747
+ }, z.core.$strict>>>;
1679
1748
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1680
1749
  text: "text";
1681
- url: "url";
1682
- automatic: "automatic";
1683
- claim: "claim";
1684
1750
  staff: "staff";
1751
+ claim: "claim";
1752
+ automatic: "automatic";
1753
+ url: "url";
1685
1754
  quiz: "quiz";
1686
1755
  photo: "photo";
1687
1756
  }>>;
@@ -1694,27 +1763,16 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1694
1763
  "workers-ai": "workers-ai";
1695
1764
  }>;
1696
1765
  }, z.core.$strip>>>;
1697
- collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
1766
+ collections: z.ZodDefault<z.ZodArray<z.ZodObject<{
1698
1767
  title: z.ZodString;
1699
- key: z.ZodOptional<z.ZodString>;
1700
- id: z.ZodOptional<z.ZodString>;
1701
- }, z.core.$strict>, z.ZodTransform<Omit<{
1702
- title: string;
1703
- key?: string | undefined;
1704
- id?: string | undefined;
1705
- }, "id" | "key"> & {
1706
- key: string;
1707
- }, {
1708
- title: string;
1709
- key?: string | undefined;
1710
- id?: string | undefined;
1711
- }>>>>;
1768
+ key: z.ZodString;
1769
+ }, z.core.$strict>>>;
1712
1770
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1713
1771
  text: "text";
1714
- url: "url";
1715
- automatic: "automatic";
1716
- claim: "claim";
1717
1772
  staff: "staff";
1773
+ claim: "claim";
1774
+ automatic: "automatic";
1775
+ url: "url";
1718
1776
  quiz: "quiz";
1719
1777
  photo: "photo";
1720
1778
  }>>>;
@@ -1722,13 +1780,14 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1722
1780
  declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1723
1781
  revision: z.ZodNumber;
1724
1782
  types: z.ZodArray<z.ZodObject<{
1783
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1725
1784
  key: z.ZodOptional<z.ZodString>;
1726
1785
  id: z.ZodString;
1727
1786
  version: z.ZodString;
1728
1787
  code: z.ZodString;
1729
1788
  definition: z.ZodObject<{
1730
1789
  quest: z.ZodString;
1731
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1790
+ evaluatorProtocol: z.ZodLiteral<2>;
1732
1791
  title: z.ZodString;
1733
1792
  presentation: z.ZodDefault<z.ZodObject<{
1734
1793
  quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1752,10 +1811,11 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1752
1811
  }, z.core.$strict>>;
1753
1812
  integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1754
1813
  discord: "discord";
1814
+ x: "x";
1755
1815
  }>>>;
1756
1816
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1757
1817
  kind: z.ZodLiteral<"point-ledger">;
1758
- default: z.ZodString;
1818
+ default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
1759
1819
  label: z.ZodString;
1760
1820
  description: z.ZodOptional<z.ZodString>;
1761
1821
  }, z.core.$strict>, z.ZodObject<{
@@ -1769,7 +1829,7 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1769
1829
  source: z.ZodUnion<readonly [z.ZodObject<{
1770
1830
  provider: z.ZodLiteral<"domino">;
1771
1831
  resource: z.ZodLiteral<"point-ledger">;
1772
- }, z.core.$strict>, z.ZodObject<{
1832
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
1773
1833
  provider: z.ZodLiteral<"discord">;
1774
1834
  resource: z.ZodLiteral<"channel">;
1775
1835
  types: z.ZodArray<z.ZodEnum<{
@@ -1780,7 +1840,7 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1780
1840
  provider: z.ZodLiteral<"discord">;
1781
1841
  resource: z.ZodLiteral<"role">;
1782
1842
  assignable: z.ZodDefault<z.ZodBoolean>;
1783
- }, z.core.$strict>]>;
1843
+ }, z.core.$strict>]>]>;
1784
1844
  label: z.ZodString;
1785
1845
  description: z.ZodOptional<z.ZodString>;
1786
1846
  }, z.core.$strict>, z.ZodObject<{
@@ -1848,9 +1908,11 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1848
1908
  inventory: z.ZodObject<{
1849
1909
  kind: z.ZodLiteral<"untracked">;
1850
1910
  }, z.core.$strict>;
1851
- fulfillment: z.ZodObject<{
1911
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
1852
1912
  kind: z.ZodLiteral<"staff-handover">;
1853
- }, z.core.$strict>;
1913
+ }, z.core.$strict>, z.ZodObject<{
1914
+ kind: z.ZodLiteral<"automatic">;
1915
+ }, z.core.$strict>], "kind">;
1854
1916
  }, z.core.$strict>;
1855
1917
  tier: z.ZodString;
1856
1918
  }, z.core.$strict>, z.ZodObject<{
@@ -1896,41 +1958,14 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1896
1958
  }>>;
1897
1959
  }, z.core.$strict>, z.ZodObject<{
1898
1960
  kind: z.ZodLiteral<"automatic">;
1899
- observation: z.ZodOptional<z.ZodObject<{
1900
- source: z.ZodString;
1901
- type: z.ZodString;
1902
- }, z.core.$strict>>;
1903
- content: z.ZodOptional<z.ZodObject<{
1904
- tracker: z.ZodString;
1905
- window: z.ZodObject<{
1906
- start: z.ZodNumber;
1907
- end: z.ZodOptional<z.ZodNumber>;
1908
- }, z.core.$strict>;
1909
- enrollment: z.ZodDefault<z.ZodEnum<{
1910
- required: "required";
1911
- none: "none";
1912
- }>>;
1913
- posts: z.ZodDefault<z.ZodEnum<{
1914
- "after-enrollment": "after-enrollment";
1915
- "since-start": "since-start";
1916
- }>>;
1917
- historical: z.ZodDefault<z.ZodEnum<{
1918
- automatic: "automatic";
1919
- claim: "claim";
1920
- staff: "staff";
1921
- }>>;
1922
- }, z.core.$strict>>;
1923
1961
  tracker: z.ZodOptional<z.ZodObject<{
1924
1962
  tracker: z.ZodString;
1925
- source: z.ZodEnum<{
1926
- custom: "custom";
1927
- "x-search": "x-search";
1928
- }>;
1929
- on: z.ZodOptional<z.ZodEnum<{
1963
+ source: z.ZodString;
1964
+ on: z.ZodEnum<{
1930
1965
  "new-record": "new-record";
1931
1966
  "new-observation": "new-observation";
1932
1967
  "data-changed": "data-changed";
1933
- }>>;
1968
+ }>;
1934
1969
  where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1935
1970
  path: z.ZodString;
1936
1971
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -1966,37 +2001,71 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1966
2001
  setting: z.ZodString;
1967
2002
  }, z.core.$strict>]>>;
1968
2003
  }, z.core.$strict>]>>]>>;
1969
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
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>>;
1970
2020
  }, z.core.$strict>>;
1971
2021
  }, z.core.$strict>]>;
1972
2022
  performance: z.ZodOptional<z.ZodObject<{
1973
- metrics: z.ZodArray<z.ZodEnum<{
1974
- likes: "likes";
1975
- replies: "replies";
1976
- reposts: "reposts";
1977
- quotes: "quotes";
1978
- views: "views";
1979
- bookmarks: "bookmarks";
1980
- }>>;
2023
+ metrics: z.ZodArray<z.ZodString>;
1981
2024
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
1982
2025
  }, z.core.$strict>>;
1983
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
2026
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
2027
+ kind: z.ZodLiteral<"completion">;
1984
2028
  quest: z.ZodString;
1985
- }, z.core.$strip>>>;
1986
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1987
- kind: z.ZodLiteral<"streak">;
1988
- days: z.ZodNumber;
1989
- timeZone: z.ZodString;
2029
+ scope: z.ZodLiteral<"ever">;
1990
2030
  }, z.core.$strict>, z.ZodObject<{
1991
- 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;
1992
2043
  }, z.core.$strict>, z.ZodObject<{
1993
- kind: z.ZodLiteral<"keyed">;
1994
- }, 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>>;
1995
2064
  visibility: z.ZodDefault<z.ZodEnum<{
1996
2065
  visible: "visible";
1997
2066
  hidden: "hidden";
1998
2067
  }>>;
1999
- profile: z.ZodOptional<z.ZodObject<{
2068
+ profile: z.ZodDefault<z.ZodObject<{
2000
2069
  visible: z.ZodBoolean;
2001
2070
  }, z.core.$strict>>;
2002
2071
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2006,15 +2075,48 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
2006
2075
  project: "project";
2007
2076
  }>;
2008
2077
  period: z.ZodEnum<{
2009
- day: "day";
2010
2078
  lifetime: "lifetime";
2079
+ day: "day";
2011
2080
  week: "week";
2081
+ month: "month";
2012
2082
  }>;
2013
2083
  limit: z.ZodNumber;
2014
2084
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2015
2085
  balance: z.ZodString;
2016
2086
  }, z.core.$strict>]>;
2017
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">;
2018
2120
  }, z.core.$strict>;
2019
2121
  provider: z.ZodEnum<{
2020
2122
  "workers-ai": "workers-ai";
@@ -2026,16 +2128,17 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
2026
2128
  createdAt: z.ZodNumber;
2027
2129
  }, z.core.$strip>>;
2028
2130
  collections: z.ZodArray<z.ZodObject<{
2131
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2029
2132
  id: z.ZodString;
2030
2133
  key: z.ZodOptional<z.ZodString>;
2031
2134
  title: z.ZodString;
2032
2135
  }, z.core.$strict>>;
2033
2136
  supportedInteractions: z.ZodArray<z.ZodEnum<{
2034
2137
  text: "text";
2035
- url: "url";
2036
- automatic: "automatic";
2037
- claim: "claim";
2038
2138
  staff: "staff";
2139
+ claim: "claim";
2140
+ automatic: "automatic";
2141
+ url: "url";
2039
2142
  quiz: "quiz";
2040
2143
  photo: "photo";
2041
2144
  }>>;
@@ -2059,7 +2162,28 @@ declare const saveQuestDraftSchema: z.ZodObject<{
2059
2162
  }, z.core.$strict>>;
2060
2163
  correct: z.ZodString;
2061
2164
  }, z.core.$strict>>]>>;
2062
- 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">>;
2063
2187
  status: z.ZodEnum<{
2064
2188
  paused: "paused";
2065
2189
  active: "active";
@@ -2130,12 +2254,12 @@ declare const questViewSchema: z.ZodObject<{
2130
2254
  }, z.core.$strict>>;
2131
2255
  }, z.core.$strict>>;
2132
2256
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2257
+ discord: "discord";
2133
2258
  google: "google";
2134
2259
  apple: "apple";
2135
2260
  x: "x";
2136
- discord: "discord";
2137
2261
  }>>>;
2138
- trigger: z.ZodUnion<readonly [z.ZodObject<{
2262
+ trigger: z.ZodUnion<(z.ZodObject<{
2139
2263
  kind: z.ZodLiteral<"manual">;
2140
2264
  input: z.ZodLiteral<"text">;
2141
2265
  constraints: z.ZodObject<{
@@ -2147,7 +2271,7 @@ declare const questViewSchema: z.ZodObject<{
2147
2271
  member: "member";
2148
2272
  staff: "staff";
2149
2273
  }>>;
2150
- }, z.core.$strict>, z.ZodObject<{
2274
+ }, z.core.$strip> | z.ZodObject<{
2151
2275
  kind: z.ZodLiteral<"manual">;
2152
2276
  input: z.ZodLiteral<"url">;
2153
2277
  constraints: z.ZodObject<{
@@ -2158,7 +2282,7 @@ declare const questViewSchema: z.ZodObject<{
2158
2282
  member: "member";
2159
2283
  staff: "staff";
2160
2284
  }>>;
2161
- }, z.core.$strict>, z.ZodObject<{
2285
+ }, z.core.$strip> | z.ZodObject<{
2162
2286
  kind: z.ZodLiteral<"manual">;
2163
2287
  input: z.ZodEnum<{
2164
2288
  none: "none";
@@ -2169,43 +2293,16 @@ declare const questViewSchema: z.ZodObject<{
2169
2293
  member: "member";
2170
2294
  staff: "staff";
2171
2295
  }>>;
2172
- }, z.core.$strict>, z.ZodObject<{
2296
+ }, z.core.$strip> | z.ZodObject<{
2173
2297
  kind: z.ZodLiteral<"automatic">;
2174
- observation: z.ZodOptional<z.ZodObject<{
2175
- source: z.ZodString;
2176
- type: z.ZodString;
2177
- }, z.core.$strict>>;
2178
- content: z.ZodOptional<z.ZodObject<{
2179
- tracker: z.ZodString;
2180
- window: z.ZodObject<{
2181
- start: z.ZodNumber;
2182
- end: z.ZodOptional<z.ZodNumber>;
2183
- }, z.core.$strict>;
2184
- enrollment: z.ZodDefault<z.ZodEnum<{
2185
- required: "required";
2186
- none: "none";
2187
- }>>;
2188
- posts: z.ZodDefault<z.ZodEnum<{
2189
- "after-enrollment": "after-enrollment";
2190
- "since-start": "since-start";
2191
- }>>;
2192
- historical: z.ZodDefault<z.ZodEnum<{
2193
- automatic: "automatic";
2194
- claim: "claim";
2195
- staff: "staff";
2196
- }>>;
2197
- }, z.core.$strict>>;
2198
2298
  tracker: z.ZodOptional<z.ZodObject<{
2199
2299
  tracker: z.ZodString;
2200
- source: z.ZodEnum<{
2201
- custom: "custom";
2202
- "x-search": "x-search";
2203
- }>;
2204
- on: z.ZodOptional<z.ZodEnum<{
2300
+ source: z.ZodString;
2301
+ on: z.ZodEnum<{
2205
2302
  "new-record": "new-record";
2206
2303
  "new-observation": "new-observation";
2207
2304
  "data-changed": "data-changed";
2208
- }>>;
2305
+ }>;
2209
2306
  where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
2210
2307
  path: z.ZodString;
2211
2308
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -2241,49 +2338,117 @@ declare const questViewSchema: z.ZodObject<{
2241
2338
  setting: z.ZodString;
2242
2339
  }, z.core.$strict>]>>;
2243
2340
  }, z.core.$strict>]>>]>>;
2244
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
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>>;
2245
2357
  }, z.core.$strict>>;
2246
- }, z.core.$strict>]>;
2247
- availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2358
+ }, z.core.$strip>)[]>;
2359
+ availability: z.ZodUnion<(z.ZodObject<{
2248
2360
  kind: z.ZodLiteral<"available">;
2249
2361
  input: z.ZodEnum<{
2250
2362
  text: "text";
2251
- url: "url";
2252
2363
  none: "none";
2364
+ url: "url";
2253
2365
  quiz: "quiz";
2254
2366
  photo: "photo";
2255
2367
  }>;
2256
- }, z.core.$strict>, z.ZodObject<{
2368
+ }, z.core.$strip> | z.ZodObject<{
2257
2369
  kind: z.ZodLiteral<"completed">;
2258
- }, z.core.$strict>, z.ZodObject<{
2370
+ }, z.core.$strip> | z.ZodObject<{
2259
2371
  kind: z.ZodLiteral<"locked">;
2260
- missing: z.ZodArray<z.ZodObject<{
2372
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2373
+ kind: z.ZodLiteral<"completion">;
2261
2374
  quest: z.ZodString;
2262
2375
  title: z.ZodString;
2263
- }, z.core.$strip>>;
2264
- }, 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<{
2265
2411
  kind: z.ZodLiteral<"staff-required">;
2266
- }, z.core.$strict>, z.ZodObject<{
2412
+ }, z.core.$strip> | z.ZodObject<{
2267
2413
  kind: z.ZodLiteral<"automatic">;
2268
- observation: z.ZodOptional<z.ZodObject<{
2269
- source: z.ZodString;
2270
- type: z.ZodString;
2271
- }, z.core.$strict>>;
2272
- }, z.core.$strict>, z.ZodObject<{
2414
+ }, z.core.$strip> | z.ZodObject<{
2273
2415
  kind: z.ZodLiteral<"checking">;
2274
2416
  attempt: z.ZodString;
2275
- }, z.core.$strict>, z.ZodObject<{
2417
+ }, z.core.$strip> | z.ZodObject<{
2276
2418
  kind: z.ZodLiteral<"needs-review">;
2277
2419
  attempt: z.ZodString;
2278
- }, z.core.$strict>, z.ZodObject<{
2420
+ }, z.core.$strip> | z.ZodObject<{
2279
2421
  kind: z.ZodLiteral<"retryable">;
2280
2422
  attempt: z.ZodString;
2281
- }, z.core.$strict>], "kind">;
2423
+ }, z.core.$strip>)[]>;
2282
2424
  completed: z.ZodBoolean;
2283
2425
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2284
2426
  kind: z.ZodLiteral<"streak">;
2285
2427
  days: z.ZodNumber;
2286
- 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
+ }>>;
2287
2452
  }, z.core.$strict>, z.ZodObject<{
2288
2453
  kind: z.ZodLiteral<"once">;
2289
2454
  }, z.core.$strict>, z.ZodObject<{
@@ -2319,15 +2484,114 @@ declare const questViewSchema: z.ZodObject<{
2319
2484
  achievedAt: z.ZodNumber;
2320
2485
  }, z.core.$strip>], "status">;
2321
2486
  }, z.core.$strip>>>;
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>>>;
2322
2529
  completionCount: z.ZodDefault<z.ZodNumber>;
2323
2530
  visibility: z.ZodDefault<z.ZodEnum<{
2324
2531
  visible: "visible";
2325
2532
  hidden: "hidden";
2326
2533
  }>>;
2327
- missing: z.ZodArray<z.ZodObject<{
2534
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2535
+ kind: z.ZodLiteral<"completion">;
2328
2536
  quest: z.ZodString;
2329
2537
  title: z.ZodString;
2330
- }, 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>>>;
2331
2595
  attempt: z.ZodNullable<z.ZodObject<{
2332
2596
  id: z.ZodString;
2333
2597
  release: z.ZodString;
@@ -2347,15 +2611,7 @@ declare const questViewSchema: z.ZodObject<{
2347
2611
  kind: z.ZodLiteral<"url">;
2348
2612
  value: z.ZodString;
2349
2613
  }, z.core.$strict>]>>;
2350
- status: z.ZodEnum<{
2351
- "needs-review": "needs-review";
2352
- failed: "failed";
2353
- queued: "queued";
2354
- evaluating: "evaluating";
2355
- accepted: "accepted";
2356
- progressed: "progressed";
2357
- rejected: "rejected";
2358
- }>;
2614
+ status: z.ZodType<AttemptStatus, unknown, z.core.$ZodTypeInternals<AttemptStatus, unknown>>;
2359
2615
  reason: z.ZodNullable<z.ZodString>;
2360
2616
  retries: z.ZodNumber;
2361
2617
  generation: z.ZodNumber;
@@ -2376,9 +2632,11 @@ declare const questViewSchema: z.ZodObject<{
2376
2632
  inventory: z.ZodObject<{
2377
2633
  kind: z.ZodLiteral<"untracked">;
2378
2634
  }, z.core.$strict>;
2379
- fulfillment: z.ZodObject<{
2635
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
2380
2636
  kind: z.ZodLiteral<"staff-handover">;
2381
- }, z.core.$strict>;
2637
+ }, z.core.$strict>, z.ZodObject<{
2638
+ kind: z.ZodLiteral<"automatic">;
2639
+ }, z.core.$strict>], "kind">;
2382
2640
  }, z.core.$strict>;
2383
2641
  tier: z.ZodString;
2384
2642
  }, z.core.$strict>, z.ZodObject<{
@@ -2387,16 +2645,26 @@ declare const questViewSchema: z.ZodObject<{
2387
2645
  action: z.ZodLiteral<"grant-role">;
2388
2646
  roleId: z.ZodString;
2389
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>>>;
2390
2658
  requestedReview: z.ZodDefault<z.ZodBoolean>;
2391
2659
  createdAt: z.ZodNumber;
2392
2660
  }, z.core.$strip>>;
2393
2661
  release: z.ZodString;
2394
2662
  interaction: z.ZodEnum<{
2395
2663
  text: "text";
2396
- url: "url";
2397
- automatic: "automatic";
2398
- claim: "claim";
2399
2664
  staff: "staff";
2665
+ claim: "claim";
2666
+ automatic: "automatic";
2667
+ url: "url";
2400
2668
  quiz: "quiz";
2401
2669
  photo: "photo";
2402
2670
  }>;
@@ -2457,12 +2725,12 @@ declare const collectionViewSchema: z.ZodObject<{
2457
2725
  }, z.core.$strict>>;
2458
2726
  }, z.core.$strict>>;
2459
2727
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2728
+ discord: "discord";
2460
2729
  google: "google";
2461
2730
  apple: "apple";
2462
2731
  x: "x";
2463
- discord: "discord";
2464
2732
  }>>>;
2465
- trigger: z.ZodUnion<readonly [z.ZodObject<{
2733
+ trigger: z.ZodUnion<(z.ZodObject<{
2466
2734
  kind: z.ZodLiteral<"manual">;
2467
2735
  input: z.ZodLiteral<"text">;
2468
2736
  constraints: z.ZodObject<{
@@ -2474,7 +2742,7 @@ declare const collectionViewSchema: z.ZodObject<{
2474
2742
  member: "member";
2475
2743
  staff: "staff";
2476
2744
  }>>;
2477
- }, z.core.$strict>, z.ZodObject<{
2745
+ }, z.core.$strip> | z.ZodObject<{
2478
2746
  kind: z.ZodLiteral<"manual">;
2479
2747
  input: z.ZodLiteral<"url">;
2480
2748
  constraints: z.ZodObject<{
@@ -2485,7 +2753,7 @@ declare const collectionViewSchema: z.ZodObject<{
2485
2753
  member: "member";
2486
2754
  staff: "staff";
2487
2755
  }>>;
2488
- }, z.core.$strict>, z.ZodObject<{
2756
+ }, z.core.$strip> | z.ZodObject<{
2489
2757
  kind: z.ZodLiteral<"manual">;
2490
2758
  input: z.ZodEnum<{
2491
2759
  none: "none";
@@ -2496,43 +2764,16 @@ declare const collectionViewSchema: z.ZodObject<{
2496
2764
  member: "member";
2497
2765
  staff: "staff";
2498
2766
  }>>;
2499
- }, z.core.$strict>, z.ZodObject<{
2767
+ }, z.core.$strip> | z.ZodObject<{
2500
2768
  kind: z.ZodLiteral<"automatic">;
2501
- observation: z.ZodOptional<z.ZodObject<{
2502
- source: z.ZodString;
2503
- type: z.ZodString;
2504
- }, z.core.$strict>>;
2505
- content: z.ZodOptional<z.ZodObject<{
2506
- tracker: z.ZodString;
2507
- window: z.ZodObject<{
2508
- start: z.ZodNumber;
2509
- end: z.ZodOptional<z.ZodNumber>;
2510
- }, z.core.$strict>;
2511
- enrollment: z.ZodDefault<z.ZodEnum<{
2512
- required: "required";
2513
- none: "none";
2514
- }>>;
2515
- posts: z.ZodDefault<z.ZodEnum<{
2516
- "after-enrollment": "after-enrollment";
2517
- "since-start": "since-start";
2518
- }>>;
2519
- historical: z.ZodDefault<z.ZodEnum<{
2520
- automatic: "automatic";
2521
- claim: "claim";
2522
- staff: "staff";
2523
- }>>;
2524
- }, z.core.$strict>>;
2525
2769
  tracker: z.ZodOptional<z.ZodObject<{
2526
2770
  tracker: z.ZodString;
2527
- source: z.ZodEnum<{
2528
- custom: "custom";
2529
- "x-search": "x-search";
2530
- }>;
2531
- on: z.ZodOptional<z.ZodEnum<{
2771
+ source: z.ZodString;
2772
+ on: z.ZodEnum<{
2532
2773
  "new-record": "new-record";
2533
2774
  "new-observation": "new-observation";
2534
2775
  "data-changed": "data-changed";
2535
- }>>;
2776
+ }>;
2536
2777
  where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
2537
2778
  path: z.ZodString;
2538
2779
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -2568,49 +2809,117 @@ declare const collectionViewSchema: z.ZodObject<{
2568
2809
  setting: z.ZodString;
2569
2810
  }, z.core.$strict>]>>;
2570
2811
  }, z.core.$strict>]>>]>>;
2571
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
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>>;
2572
2828
  }, z.core.$strict>>;
2573
- }, z.core.$strict>]>;
2574
- availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2829
+ }, z.core.$strip>)[]>;
2830
+ availability: z.ZodUnion<(z.ZodObject<{
2575
2831
  kind: z.ZodLiteral<"available">;
2576
2832
  input: z.ZodEnum<{
2577
2833
  text: "text";
2578
- url: "url";
2579
2834
  none: "none";
2835
+ url: "url";
2580
2836
  quiz: "quiz";
2581
2837
  photo: "photo";
2582
2838
  }>;
2583
- }, z.core.$strict>, z.ZodObject<{
2839
+ }, z.core.$strip> | z.ZodObject<{
2584
2840
  kind: z.ZodLiteral<"completed">;
2585
- }, z.core.$strict>, z.ZodObject<{
2841
+ }, z.core.$strip> | z.ZodObject<{
2586
2842
  kind: z.ZodLiteral<"locked">;
2587
- missing: z.ZodArray<z.ZodObject<{
2843
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2844
+ kind: z.ZodLiteral<"completion">;
2588
2845
  quest: z.ZodString;
2589
2846
  title: z.ZodString;
2590
- }, z.core.$strip>>;
2591
- }, 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<{
2592
2882
  kind: z.ZodLiteral<"staff-required">;
2593
- }, z.core.$strict>, z.ZodObject<{
2883
+ }, z.core.$strip> | z.ZodObject<{
2594
2884
  kind: z.ZodLiteral<"automatic">;
2595
- observation: z.ZodOptional<z.ZodObject<{
2596
- source: z.ZodString;
2597
- type: z.ZodString;
2598
- }, z.core.$strict>>;
2599
- }, z.core.$strict>, z.ZodObject<{
2885
+ }, z.core.$strip> | z.ZodObject<{
2600
2886
  kind: z.ZodLiteral<"checking">;
2601
2887
  attempt: z.ZodString;
2602
- }, z.core.$strict>, z.ZodObject<{
2888
+ }, z.core.$strip> | z.ZodObject<{
2603
2889
  kind: z.ZodLiteral<"needs-review">;
2604
2890
  attempt: z.ZodString;
2605
- }, z.core.$strict>, z.ZodObject<{
2891
+ }, z.core.$strip> | z.ZodObject<{
2606
2892
  kind: z.ZodLiteral<"retryable">;
2607
2893
  attempt: z.ZodString;
2608
- }, z.core.$strict>], "kind">;
2894
+ }, z.core.$strip>)[]>;
2609
2895
  completed: z.ZodBoolean;
2610
2896
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2611
2897
  kind: z.ZodLiteral<"streak">;
2612
2898
  days: z.ZodNumber;
2613
- 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
+ }>>;
2614
2923
  }, z.core.$strict>, z.ZodObject<{
2615
2924
  kind: z.ZodLiteral<"once">;
2616
2925
  }, z.core.$strict>, z.ZodObject<{
@@ -2646,15 +2955,114 @@ declare const collectionViewSchema: z.ZodObject<{
2646
2955
  achievedAt: z.ZodNumber;
2647
2956
  }, z.core.$strip>], "status">;
2648
2957
  }, z.core.$strip>>>;
2649
- completionCount: z.ZodDefault<z.ZodNumber>;
2650
- visibility: z.ZodDefault<z.ZodEnum<{
2651
- visible: "visible";
2652
- hidden: "hidden";
2653
- }>>;
2654
- missing: z.ZodArray<z.ZodObject<{
2655
- quest: z.ZodString;
2656
- title: z.ZodString;
2657
- }, 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>>>;
3000
+ completionCount: z.ZodDefault<z.ZodNumber>;
3001
+ visibility: z.ZodDefault<z.ZodEnum<{
3002
+ visible: "visible";
3003
+ hidden: "hidden";
3004
+ }>>;
3005
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3006
+ kind: z.ZodLiteral<"completion">;
3007
+ quest: z.ZodString;
3008
+ title: z.ZodString;
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>>>;
2658
3066
  attempt: z.ZodNullable<z.ZodObject<{
2659
3067
  id: z.ZodString;
2660
3068
  release: z.ZodString;
@@ -2674,15 +3082,7 @@ declare const collectionViewSchema: z.ZodObject<{
2674
3082
  kind: z.ZodLiteral<"url">;
2675
3083
  value: z.ZodString;
2676
3084
  }, z.core.$strict>]>>;
2677
- status: z.ZodEnum<{
2678
- "needs-review": "needs-review";
2679
- failed: "failed";
2680
- queued: "queued";
2681
- evaluating: "evaluating";
2682
- accepted: "accepted";
2683
- progressed: "progressed";
2684
- rejected: "rejected";
2685
- }>;
3085
+ status: z.ZodType<AttemptStatus, unknown, z.core.$ZodTypeInternals<AttemptStatus, unknown>>;
2686
3086
  reason: z.ZodNullable<z.ZodString>;
2687
3087
  retries: z.ZodNumber;
2688
3088
  generation: z.ZodNumber;
@@ -2703,9 +3103,11 @@ declare const collectionViewSchema: z.ZodObject<{
2703
3103
  inventory: z.ZodObject<{
2704
3104
  kind: z.ZodLiteral<"untracked">;
2705
3105
  }, z.core.$strict>;
2706
- fulfillment: z.ZodObject<{
3106
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
2707
3107
  kind: z.ZodLiteral<"staff-handover">;
2708
- }, z.core.$strict>;
3108
+ }, z.core.$strict>, z.ZodObject<{
3109
+ kind: z.ZodLiteral<"automatic">;
3110
+ }, z.core.$strict>], "kind">;
2709
3111
  }, z.core.$strict>;
2710
3112
  tier: z.ZodString;
2711
3113
  }, z.core.$strict>, z.ZodObject<{
@@ -2714,16 +3116,26 @@ declare const collectionViewSchema: z.ZodObject<{
2714
3116
  action: z.ZodLiteral<"grant-role">;
2715
3117
  roleId: z.ZodString;
2716
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>>>;
2717
3129
  requestedReview: z.ZodDefault<z.ZodBoolean>;
2718
3130
  createdAt: z.ZodNumber;
2719
3131
  }, z.core.$strip>>;
2720
3132
  release: z.ZodString;
2721
3133
  interaction: z.ZodEnum<{
2722
3134
  text: "text";
2723
- url: "url";
2724
- automatic: "automatic";
2725
- claim: "claim";
2726
3135
  staff: "staff";
3136
+ claim: "claim";
3137
+ automatic: "automatic";
3138
+ url: "url";
2727
3139
  quiz: "quiz";
2728
3140
  photo: "photo";
2729
3141
  }>;
@@ -2757,6 +3169,184 @@ declare const collectionViewSchema: z.ZodObject<{
2757
3169
  }, z.core.$strip>>;
2758
3170
  }, z.core.$strip>;
2759
3171
  declare const questExperienceSchema: 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<{
3180
+ id: z.ZodString;
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
+ }>>]>>>;
2760
3350
  member: z.ZodString;
2761
3351
  quests: z.ZodArray<z.ZodObject<{
2762
3352
  quest: z.ZodString;
@@ -2783,12 +3373,12 @@ declare const questExperienceSchema: z.ZodObject<{
2783
3373
  }, z.core.$strict>>;
2784
3374
  }, z.core.$strict>>;
2785
3375
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3376
+ discord: "discord";
2786
3377
  google: "google";
2787
3378
  apple: "apple";
2788
3379
  x: "x";
2789
- discord: "discord";
2790
3380
  }>>>;
2791
- trigger: z.ZodUnion<readonly [z.ZodObject<{
3381
+ trigger: z.ZodUnion<(z.ZodObject<{
2792
3382
  kind: z.ZodLiteral<"manual">;
2793
3383
  input: z.ZodLiteral<"text">;
2794
3384
  constraints: z.ZodObject<{
@@ -2800,7 +3390,7 @@ declare const questExperienceSchema: z.ZodObject<{
2800
3390
  member: "member";
2801
3391
  staff: "staff";
2802
3392
  }>>;
2803
- }, z.core.$strict>, z.ZodObject<{
3393
+ }, z.core.$strip> | z.ZodObject<{
2804
3394
  kind: z.ZodLiteral<"manual">;
2805
3395
  input: z.ZodLiteral<"url">;
2806
3396
  constraints: z.ZodObject<{
@@ -2811,7 +3401,7 @@ declare const questExperienceSchema: z.ZodObject<{
2811
3401
  member: "member";
2812
3402
  staff: "staff";
2813
3403
  }>>;
2814
- }, z.core.$strict>, z.ZodObject<{
3404
+ }, z.core.$strip> | z.ZodObject<{
2815
3405
  kind: z.ZodLiteral<"manual">;
2816
3406
  input: z.ZodEnum<{
2817
3407
  none: "none";
@@ -2822,43 +3412,16 @@ declare const questExperienceSchema: z.ZodObject<{
2822
3412
  member: "member";
2823
3413
  staff: "staff";
2824
3414
  }>>;
2825
- }, z.core.$strict>, z.ZodObject<{
3415
+ }, z.core.$strip> | z.ZodObject<{
2826
3416
  kind: z.ZodLiteral<"automatic">;
2827
- observation: z.ZodOptional<z.ZodObject<{
2828
- source: z.ZodString;
2829
- type: z.ZodString;
2830
- }, z.core.$strict>>;
2831
- content: z.ZodOptional<z.ZodObject<{
2832
- tracker: z.ZodString;
2833
- window: z.ZodObject<{
2834
- start: z.ZodNumber;
2835
- end: z.ZodOptional<z.ZodNumber>;
2836
- }, z.core.$strict>;
2837
- enrollment: z.ZodDefault<z.ZodEnum<{
2838
- required: "required";
2839
- none: "none";
2840
- }>>;
2841
- posts: z.ZodDefault<z.ZodEnum<{
2842
- "after-enrollment": "after-enrollment";
2843
- "since-start": "since-start";
2844
- }>>;
2845
- historical: z.ZodDefault<z.ZodEnum<{
2846
- automatic: "automatic";
2847
- claim: "claim";
2848
- staff: "staff";
2849
- }>>;
2850
- }, z.core.$strict>>;
2851
3417
  tracker: z.ZodOptional<z.ZodObject<{
2852
3418
  tracker: z.ZodString;
2853
- source: z.ZodEnum<{
2854
- custom: "custom";
2855
- "x-search": "x-search";
2856
- }>;
2857
- on: z.ZodOptional<z.ZodEnum<{
3419
+ source: z.ZodString;
3420
+ on: z.ZodEnum<{
2858
3421
  "new-record": "new-record";
2859
3422
  "new-observation": "new-observation";
2860
3423
  "data-changed": "data-changed";
2861
- }>>;
3424
+ }>;
2862
3425
  where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
2863
3426
  path: z.ZodString;
2864
3427
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -2894,49 +3457,117 @@ declare const questExperienceSchema: z.ZodObject<{
2894
3457
  setting: z.ZodString;
2895
3458
  }, z.core.$strict>]>>;
2896
3459
  }, z.core.$strict>]>>]>>;
2897
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
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>>;
2898
3476
  }, z.core.$strict>>;
2899
- }, z.core.$strict>]>;
2900
- availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
3477
+ }, z.core.$strip>)[]>;
3478
+ availability: z.ZodUnion<(z.ZodObject<{
2901
3479
  kind: z.ZodLiteral<"available">;
2902
3480
  input: z.ZodEnum<{
2903
3481
  text: "text";
2904
- url: "url";
2905
3482
  none: "none";
3483
+ url: "url";
2906
3484
  quiz: "quiz";
2907
3485
  photo: "photo";
2908
3486
  }>;
2909
- }, z.core.$strict>, z.ZodObject<{
3487
+ }, z.core.$strip> | z.ZodObject<{
2910
3488
  kind: z.ZodLiteral<"completed">;
2911
- }, z.core.$strict>, z.ZodObject<{
3489
+ }, z.core.$strip> | z.ZodObject<{
2912
3490
  kind: z.ZodLiteral<"locked">;
2913
- missing: z.ZodArray<z.ZodObject<{
3491
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3492
+ kind: z.ZodLiteral<"completion">;
2914
3493
  quest: z.ZodString;
2915
3494
  title: z.ZodString;
2916
- }, z.core.$strip>>;
2917
- }, 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<{
2918
3530
  kind: z.ZodLiteral<"staff-required">;
2919
- }, z.core.$strict>, z.ZodObject<{
3531
+ }, z.core.$strip> | z.ZodObject<{
2920
3532
  kind: z.ZodLiteral<"automatic">;
2921
- observation: z.ZodOptional<z.ZodObject<{
2922
- source: z.ZodString;
2923
- type: z.ZodString;
2924
- }, z.core.$strict>>;
2925
- }, z.core.$strict>, z.ZodObject<{
3533
+ }, z.core.$strip> | z.ZodObject<{
2926
3534
  kind: z.ZodLiteral<"checking">;
2927
3535
  attempt: z.ZodString;
2928
- }, z.core.$strict>, z.ZodObject<{
3536
+ }, z.core.$strip> | z.ZodObject<{
2929
3537
  kind: z.ZodLiteral<"needs-review">;
2930
3538
  attempt: z.ZodString;
2931
- }, z.core.$strict>, z.ZodObject<{
3539
+ }, z.core.$strip> | z.ZodObject<{
2932
3540
  kind: z.ZodLiteral<"retryable">;
2933
3541
  attempt: z.ZodString;
2934
- }, z.core.$strict>], "kind">;
3542
+ }, z.core.$strip>)[]>;
2935
3543
  completed: z.ZodBoolean;
2936
3544
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2937
3545
  kind: z.ZodLiteral<"streak">;
2938
3546
  days: z.ZodNumber;
2939
- 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
+ }>>;
2940
3571
  }, z.core.$strict>, z.ZodObject<{
2941
3572
  kind: z.ZodLiteral<"once">;
2942
3573
  }, z.core.$strict>, z.ZodObject<{
@@ -2972,15 +3603,114 @@ declare const questExperienceSchema: z.ZodObject<{
2972
3603
  achievedAt: z.ZodNumber;
2973
3604
  }, z.core.$strip>], "status">;
2974
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>>>;
2975
3648
  completionCount: z.ZodDefault<z.ZodNumber>;
2976
3649
  visibility: z.ZodDefault<z.ZodEnum<{
2977
3650
  visible: "visible";
2978
3651
  hidden: "hidden";
2979
3652
  }>>;
2980
- missing: z.ZodArray<z.ZodObject<{
3653
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3654
+ kind: z.ZodLiteral<"completion">;
2981
3655
  quest: z.ZodString;
2982
3656
  title: z.ZodString;
2983
- }, 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>>>;
2984
3714
  attempt: z.ZodNullable<z.ZodObject<{
2985
3715
  id: z.ZodString;
2986
3716
  release: z.ZodString;
@@ -3000,15 +3730,7 @@ declare const questExperienceSchema: z.ZodObject<{
3000
3730
  kind: z.ZodLiteral<"url">;
3001
3731
  value: z.ZodString;
3002
3732
  }, z.core.$strict>]>>;
3003
- status: z.ZodEnum<{
3004
- "needs-review": "needs-review";
3005
- failed: "failed";
3006
- queued: "queued";
3007
- evaluating: "evaluating";
3008
- accepted: "accepted";
3009
- progressed: "progressed";
3010
- rejected: "rejected";
3011
- }>;
3733
+ status: z.ZodType<AttemptStatus, unknown, z.core.$ZodTypeInternals<AttemptStatus, unknown>>;
3012
3734
  reason: z.ZodNullable<z.ZodString>;
3013
3735
  retries: z.ZodNumber;
3014
3736
  generation: z.ZodNumber;
@@ -3029,9 +3751,11 @@ declare const questExperienceSchema: z.ZodObject<{
3029
3751
  inventory: z.ZodObject<{
3030
3752
  kind: z.ZodLiteral<"untracked">;
3031
3753
  }, z.core.$strict>;
3032
- fulfillment: z.ZodObject<{
3754
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
3033
3755
  kind: z.ZodLiteral<"staff-handover">;
3034
- }, z.core.$strict>;
3756
+ }, z.core.$strict>, z.ZodObject<{
3757
+ kind: z.ZodLiteral<"automatic">;
3758
+ }, z.core.$strict>], "kind">;
3035
3759
  }, z.core.$strict>;
3036
3760
  tier: z.ZodString;
3037
3761
  }, z.core.$strict>, z.ZodObject<{
@@ -3040,16 +3764,26 @@ declare const questExperienceSchema: z.ZodObject<{
3040
3764
  action: z.ZodLiteral<"grant-role">;
3041
3765
  roleId: z.ZodString;
3042
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>>>;
3043
3777
  requestedReview: z.ZodDefault<z.ZodBoolean>;
3044
3778
  createdAt: z.ZodNumber;
3045
3779
  }, z.core.$strip>>;
3046
3780
  release: z.ZodString;
3047
3781
  interaction: z.ZodEnum<{
3048
3782
  text: "text";
3049
- url: "url";
3050
- automatic: "automatic";
3051
- claim: "claim";
3052
3783
  staff: "staff";
3784
+ claim: "claim";
3785
+ automatic: "automatic";
3786
+ url: "url";
3053
3787
  quiz: "quiz";
3054
3788
  photo: "photo";
3055
3789
  }>;
@@ -3110,12 +3844,12 @@ declare const questExperienceSchema: z.ZodObject<{
3110
3844
  }, z.core.$strict>>;
3111
3845
  }, z.core.$strict>>;
3112
3846
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3847
+ discord: "discord";
3113
3848
  google: "google";
3114
3849
  apple: "apple";
3115
3850
  x: "x";
3116
- discord: "discord";
3117
3851
  }>>>;
3118
- trigger: z.ZodUnion<readonly [z.ZodObject<{
3852
+ trigger: z.ZodUnion<(z.ZodObject<{
3119
3853
  kind: z.ZodLiteral<"manual">;
3120
3854
  input: z.ZodLiteral<"text">;
3121
3855
  constraints: z.ZodObject<{
@@ -3127,7 +3861,7 @@ declare const questExperienceSchema: z.ZodObject<{
3127
3861
  member: "member";
3128
3862
  staff: "staff";
3129
3863
  }>>;
3130
- }, z.core.$strict>, z.ZodObject<{
3864
+ }, z.core.$strip> | z.ZodObject<{
3131
3865
  kind: z.ZodLiteral<"manual">;
3132
3866
  input: z.ZodLiteral<"url">;
3133
3867
  constraints: z.ZodObject<{
@@ -3138,7 +3872,7 @@ declare const questExperienceSchema: z.ZodObject<{
3138
3872
  member: "member";
3139
3873
  staff: "staff";
3140
3874
  }>>;
3141
- }, z.core.$strict>, z.ZodObject<{
3875
+ }, z.core.$strip> | z.ZodObject<{
3142
3876
  kind: z.ZodLiteral<"manual">;
3143
3877
  input: z.ZodEnum<{
3144
3878
  none: "none";
@@ -3149,43 +3883,16 @@ declare const questExperienceSchema: z.ZodObject<{
3149
3883
  member: "member";
3150
3884
  staff: "staff";
3151
3885
  }>>;
3152
- }, z.core.$strict>, z.ZodObject<{
3886
+ }, z.core.$strip> | z.ZodObject<{
3153
3887
  kind: z.ZodLiteral<"automatic">;
3154
- observation: z.ZodOptional<z.ZodObject<{
3155
- source: z.ZodString;
3156
- type: z.ZodString;
3157
- }, z.core.$strict>>;
3158
- content: z.ZodOptional<z.ZodObject<{
3159
- tracker: z.ZodString;
3160
- window: z.ZodObject<{
3161
- start: z.ZodNumber;
3162
- end: z.ZodOptional<z.ZodNumber>;
3163
- }, z.core.$strict>;
3164
- enrollment: z.ZodDefault<z.ZodEnum<{
3165
- required: "required";
3166
- none: "none";
3167
- }>>;
3168
- posts: z.ZodDefault<z.ZodEnum<{
3169
- "after-enrollment": "after-enrollment";
3170
- "since-start": "since-start";
3171
- }>>;
3172
- historical: z.ZodDefault<z.ZodEnum<{
3173
- automatic: "automatic";
3174
- claim: "claim";
3175
- staff: "staff";
3176
- }>>;
3177
- }, z.core.$strict>>;
3178
3888
  tracker: z.ZodOptional<z.ZodObject<{
3179
3889
  tracker: z.ZodString;
3180
- source: z.ZodEnum<{
3181
- custom: "custom";
3182
- "x-search": "x-search";
3183
- }>;
3184
- on: z.ZodOptional<z.ZodEnum<{
3890
+ source: z.ZodString;
3891
+ on: z.ZodEnum<{
3185
3892
  "new-record": "new-record";
3186
3893
  "new-observation": "new-observation";
3187
3894
  "data-changed": "data-changed";
3188
- }>>;
3895
+ }>;
3189
3896
  where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
3190
3897
  path: z.ZodString;
3191
3898
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -3221,49 +3928,117 @@ declare const questExperienceSchema: z.ZodObject<{
3221
3928
  setting: z.ZodString;
3222
3929
  }, z.core.$strict>]>>;
3223
3930
  }, z.core.$strict>]>>]>>;
3224
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
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>>;
3225
3947
  }, z.core.$strict>>;
3226
- }, z.core.$strict>]>;
3227
- availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
3948
+ }, z.core.$strip>)[]>;
3949
+ availability: z.ZodUnion<(z.ZodObject<{
3228
3950
  kind: z.ZodLiteral<"available">;
3229
3951
  input: z.ZodEnum<{
3230
3952
  text: "text";
3231
- url: "url";
3232
3953
  none: "none";
3954
+ url: "url";
3233
3955
  quiz: "quiz";
3234
3956
  photo: "photo";
3235
3957
  }>;
3236
- }, z.core.$strict>, z.ZodObject<{
3958
+ }, z.core.$strip> | z.ZodObject<{
3237
3959
  kind: z.ZodLiteral<"completed">;
3238
- }, z.core.$strict>, z.ZodObject<{
3960
+ }, z.core.$strip> | z.ZodObject<{
3239
3961
  kind: z.ZodLiteral<"locked">;
3240
- missing: z.ZodArray<z.ZodObject<{
3962
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3963
+ kind: z.ZodLiteral<"completion">;
3241
3964
  quest: z.ZodString;
3242
3965
  title: z.ZodString;
3243
- }, z.core.$strip>>;
3244
- }, 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<{
3245
4001
  kind: z.ZodLiteral<"staff-required">;
3246
- }, z.core.$strict>, z.ZodObject<{
4002
+ }, z.core.$strip> | z.ZodObject<{
3247
4003
  kind: z.ZodLiteral<"automatic">;
3248
- observation: z.ZodOptional<z.ZodObject<{
3249
- source: z.ZodString;
3250
- type: z.ZodString;
3251
- }, z.core.$strict>>;
3252
- }, z.core.$strict>, z.ZodObject<{
4004
+ }, z.core.$strip> | z.ZodObject<{
3253
4005
  kind: z.ZodLiteral<"checking">;
3254
4006
  attempt: z.ZodString;
3255
- }, z.core.$strict>, z.ZodObject<{
4007
+ }, z.core.$strip> | z.ZodObject<{
3256
4008
  kind: z.ZodLiteral<"needs-review">;
3257
4009
  attempt: z.ZodString;
3258
- }, z.core.$strict>, z.ZodObject<{
4010
+ }, z.core.$strip> | z.ZodObject<{
3259
4011
  kind: z.ZodLiteral<"retryable">;
3260
4012
  attempt: z.ZodString;
3261
- }, z.core.$strict>], "kind">;
4013
+ }, z.core.$strip>)[]>;
3262
4014
  completed: z.ZodBoolean;
3263
4015
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3264
4016
  kind: z.ZodLiteral<"streak">;
3265
4017
  days: z.ZodNumber;
3266
- 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
+ }>>;
3267
4042
  }, z.core.$strict>, z.ZodObject<{
3268
4043
  kind: z.ZodLiteral<"once">;
3269
4044
  }, z.core.$strict>, z.ZodObject<{
@@ -3299,15 +4074,114 @@ declare const questExperienceSchema: z.ZodObject<{
3299
4074
  achievedAt: z.ZodNumber;
3300
4075
  }, z.core.$strip>], "status">;
3301
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;
4110
+ status: z.ZodLiteral<"budget-exhausted">;
4111
+ budget: z.ZodString;
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;
4118
+ }, z.core.$strip>>>;
3302
4119
  completionCount: z.ZodDefault<z.ZodNumber>;
3303
4120
  visibility: z.ZodDefault<z.ZodEnum<{
3304
4121
  visible: "visible";
3305
4122
  hidden: "hidden";
3306
4123
  }>>;
3307
- missing: z.ZodArray<z.ZodObject<{
4124
+ missing: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4125
+ kind: z.ZodLiteral<"completion">;
3308
4126
  quest: z.ZodString;
3309
4127
  title: z.ZodString;
3310
- }, 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>>>;
3311
4185
  attempt: z.ZodNullable<z.ZodObject<{
3312
4186
  id: z.ZodString;
3313
4187
  release: z.ZodString;
@@ -3327,15 +4201,7 @@ declare const questExperienceSchema: z.ZodObject<{
3327
4201
  kind: z.ZodLiteral<"url">;
3328
4202
  value: z.ZodString;
3329
4203
  }, z.core.$strict>]>>;
3330
- status: z.ZodEnum<{
3331
- "needs-review": "needs-review";
3332
- failed: "failed";
3333
- queued: "queued";
3334
- evaluating: "evaluating";
3335
- accepted: "accepted";
3336
- progressed: "progressed";
3337
- rejected: "rejected";
3338
- }>;
4204
+ status: z.ZodType<AttemptStatus, unknown, z.core.$ZodTypeInternals<AttemptStatus, unknown>>;
3339
4205
  reason: z.ZodNullable<z.ZodString>;
3340
4206
  retries: z.ZodNumber;
3341
4207
  generation: z.ZodNumber;
@@ -3356,9 +4222,11 @@ declare const questExperienceSchema: z.ZodObject<{
3356
4222
  inventory: z.ZodObject<{
3357
4223
  kind: z.ZodLiteral<"untracked">;
3358
4224
  }, z.core.$strict>;
3359
- fulfillment: z.ZodObject<{
4225
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
3360
4226
  kind: z.ZodLiteral<"staff-handover">;
3361
- }, z.core.$strict>;
4227
+ }, z.core.$strict>, z.ZodObject<{
4228
+ kind: z.ZodLiteral<"automatic">;
4229
+ }, z.core.$strict>], "kind">;
3362
4230
  }, z.core.$strict>;
3363
4231
  tier: z.ZodString;
3364
4232
  }, z.core.$strict>, z.ZodObject<{
@@ -3367,16 +4235,26 @@ declare const questExperienceSchema: z.ZodObject<{
3367
4235
  action: z.ZodLiteral<"grant-role">;
3368
4236
  roleId: z.ZodString;
3369
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>>>;
3370
4248
  requestedReview: z.ZodDefault<z.ZodBoolean>;
3371
4249
  createdAt: z.ZodNumber;
3372
4250
  }, z.core.$strip>>;
3373
4251
  release: z.ZodString;
3374
4252
  interaction: z.ZodEnum<{
3375
4253
  text: "text";
3376
- url: "url";
3377
- automatic: "automatic";
3378
- claim: "claim";
3379
4254
  staff: "staff";
4255
+ claim: "claim";
4256
+ automatic: "automatic";
4257
+ url: "url";
3380
4258
  quiz: "quiz";
3381
4259
  photo: "photo";
3382
4260
  }>;
@@ -3434,7 +4312,28 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3434
4312
  }, z.core.$strict>>;
3435
4313
  correct: z.ZodString;
3436
4314
  }, z.core.$strict>>]>>;
3437
- 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">>;
3438
4337
  status: z.ZodEnum<{
3439
4338
  paused: "paused";
3440
4339
  active: "active";
@@ -3468,7 +4367,28 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3468
4367
  }, z.core.$strict>>;
3469
4368
  correct: z.ZodString;
3470
4369
  }, z.core.$strict>>]>>;
3471
- 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">>;
3472
4392
  status: z.ZodEnum<{
3473
4393
  paused: "paused";
3474
4394
  active: "active";
@@ -3486,9 +4406,9 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3486
4406
  status: z.ZodLiteral<"published">;
3487
4407
  releaseIds: z.ZodArray<z.ZodString>;
3488
4408
  }, z.core.$strip>], "status">;
3489
- releases: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4409
+ releases: z.ZodArray<z.ZodObject<{
3490
4410
  quest: z.ZodString;
3491
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
4411
+ evaluatorProtocol: z.ZodLiteral<2>;
3492
4412
  title: z.ZodString;
3493
4413
  presentation: z.ZodDefault<z.ZodObject<{
3494
4414
  quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3512,10 +4432,11 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3512
4432
  }, z.core.$strict>>;
3513
4433
  integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
3514
4434
  discord: "discord";
4435
+ x: "x";
3515
4436
  }>>>;
3516
4437
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3517
4438
  kind: z.ZodLiteral<"point-ledger">;
3518
- default: z.ZodString;
4439
+ default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
3519
4440
  label: z.ZodString;
3520
4441
  description: z.ZodOptional<z.ZodString>;
3521
4442
  }, z.core.$strict>, z.ZodObject<{
@@ -3529,7 +4450,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3529
4450
  source: z.ZodUnion<readonly [z.ZodObject<{
3530
4451
  provider: z.ZodLiteral<"domino">;
3531
4452
  resource: z.ZodLiteral<"point-ledger">;
3532
- }, z.core.$strict>, z.ZodObject<{
4453
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
3533
4454
  provider: z.ZodLiteral<"discord">;
3534
4455
  resource: z.ZodLiteral<"channel">;
3535
4456
  types: z.ZodArray<z.ZodEnum<{
@@ -3540,7 +4461,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3540
4461
  provider: z.ZodLiteral<"discord">;
3541
4462
  resource: z.ZodLiteral<"role">;
3542
4463
  assignable: z.ZodDefault<z.ZodBoolean>;
3543
- }, z.core.$strict>]>;
4464
+ }, z.core.$strict>]>]>;
3544
4465
  label: z.ZodString;
3545
4466
  description: z.ZodOptional<z.ZodString>;
3546
4467
  }, z.core.$strict>, z.ZodObject<{
@@ -3608,9 +4529,11 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3608
4529
  inventory: z.ZodObject<{
3609
4530
  kind: z.ZodLiteral<"untracked">;
3610
4531
  }, z.core.$strict>;
3611
- fulfillment: z.ZodObject<{
4532
+ fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
3612
4533
  kind: z.ZodLiteral<"staff-handover">;
3613
- }, z.core.$strict>;
4534
+ }, z.core.$strict>, z.ZodObject<{
4535
+ kind: z.ZodLiteral<"automatic">;
4536
+ }, z.core.$strict>], "kind">;
3614
4537
  }, z.core.$strict>;
3615
4538
  tier: z.ZodString;
3616
4539
  }, z.core.$strict>, z.ZodObject<{
@@ -3656,41 +4579,14 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3656
4579
  }>>;
3657
4580
  }, z.core.$strict>, z.ZodObject<{
3658
4581
  kind: z.ZodLiteral<"automatic">;
3659
- observation: z.ZodOptional<z.ZodObject<{
3660
- source: z.ZodString;
3661
- type: z.ZodString;
3662
- }, z.core.$strict>>;
3663
- content: z.ZodOptional<z.ZodObject<{
3664
- tracker: z.ZodString;
3665
- window: z.ZodObject<{
3666
- start: z.ZodNumber;
3667
- end: z.ZodOptional<z.ZodNumber>;
3668
- }, z.core.$strict>;
3669
- enrollment: z.ZodDefault<z.ZodEnum<{
3670
- required: "required";
3671
- none: "none";
3672
- }>>;
3673
- posts: z.ZodDefault<z.ZodEnum<{
3674
- "after-enrollment": "after-enrollment";
3675
- "since-start": "since-start";
3676
- }>>;
3677
- historical: z.ZodDefault<z.ZodEnum<{
3678
- automatic: "automatic";
3679
- claim: "claim";
3680
- staff: "staff";
3681
- }>>;
3682
- }, z.core.$strict>>;
3683
4582
  tracker: z.ZodOptional<z.ZodObject<{
3684
4583
  tracker: z.ZodString;
3685
- source: z.ZodEnum<{
3686
- custom: "custom";
3687
- "x-search": "x-search";
3688
- }>;
3689
- on: z.ZodOptional<z.ZodEnum<{
4584
+ source: z.ZodString;
4585
+ on: z.ZodEnum<{
3690
4586
  "new-record": "new-record";
3691
4587
  "new-observation": "new-observation";
3692
4588
  "data-changed": "data-changed";
3693
- }>>;
4589
+ }>;
3694
4590
  where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
3695
4591
  path: z.ZodString;
3696
4592
  equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -3726,37 +4622,71 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3726
4622
  setting: z.ZodString;
3727
4623
  }, z.core.$strict>]>>;
3728
4624
  }, z.core.$strict>]>>]>>;
3729
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
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>>;
3730
4641
  }, z.core.$strict>>;
3731
4642
  }, z.core.$strict>]>;
3732
4643
  performance: z.ZodOptional<z.ZodObject<{
3733
- metrics: z.ZodArray<z.ZodEnum<{
3734
- likes: "likes";
3735
- replies: "replies";
3736
- reposts: "reposts";
3737
- quotes: "quotes";
3738
- views: "views";
3739
- bookmarks: "bookmarks";
3740
- }>>;
4644
+ metrics: z.ZodArray<z.ZodString>;
3741
4645
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
3742
4646
  }, z.core.$strict>>;
3743
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
4647
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
4648
+ kind: z.ZodLiteral<"completion">;
3744
4649
  quest: z.ZodString;
3745
- }, z.core.$strip>>>;
3746
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
3747
- kind: z.ZodLiteral<"streak">;
3748
- days: z.ZodNumber;
3749
- timeZone: z.ZodString;
4650
+ scope: z.ZodLiteral<"ever">;
3750
4651
  }, z.core.$strict>, z.ZodObject<{
3751
- 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;
3752
4664
  }, z.core.$strict>, z.ZodObject<{
3753
- kind: z.ZodLiteral<"keyed">;
3754
- }, 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>>;
3755
4685
  visibility: z.ZodDefault<z.ZodEnum<{
3756
4686
  visible: "visible";
3757
4687
  hidden: "hidden";
3758
4688
  }>>;
3759
- profile: z.ZodOptional<z.ZodObject<{
4689
+ profile: z.ZodDefault<z.ZodObject<{
3760
4690
  visible: z.ZodBoolean;
3761
4691
  }, z.core.$strict>>;
3762
4692
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3766,15 +4696,48 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3766
4696
  project: "project";
3767
4697
  }>;
3768
4698
  period: z.ZodEnum<{
3769
- day: "day";
3770
4699
  lifetime: "lifetime";
4700
+ day: "day";
3771
4701
  week: "week";
4702
+ month: "month";
3772
4703
  }>;
3773
4704
  limit: z.ZodNumber;
3774
4705
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3775
4706
  balance: z.ZodString;
3776
4707
  }, z.core.$strict>]>;
3777
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">;
3778
4741
  key: z.ZodOptional<z.ZodString>;
3779
4742
  code: z.ZodString;
3780
4743
  provider: z.ZodEnum<{
@@ -3786,7 +4749,6 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3786
4749
  }>;
3787
4750
  id: z.ZodString;
3788
4751
  createdAt: z.ZodNumber;
3789
- legacy: z.ZodDefault<z.ZodBoolean>;
3790
4752
  origin: z.ZodOptional<z.ZodObject<{
3791
4753
  typeVersion: z.ZodString;
3792
4754
  }, z.core.$strict>>;
@@ -3816,354 +4778,9 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3816
4778
  }, z.core.$strict>>]>>;
3817
4779
  preserved: z.ZodArray<z.ZodString>;
3818
4780
  }, z.core.$strict>>;
3819
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
3820
- quest: z.ZodString;
3821
- title: z.ZodString;
3822
- criteria: z.ZodString;
3823
- humanReview: z.ZodBoolean;
3824
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3825
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
3826
- balance: z.ZodString;
3827
- amount: z.ZodNumber;
3828
- }, z.core.$strict>, z.ZodObject<{
3829
- kind: z.ZodLiteral<"tier">;
3830
- reward: z.ZodObject<{
3831
- id: z.ZodString;
3832
- title: z.ZodString;
3833
- tiers: z.ZodArray<z.ZodObject<{
3834
- id: z.ZodString;
3835
- title: z.ZodString;
3836
- }, z.core.$strict>>;
3837
- inventory: z.ZodObject<{
3838
- kind: z.ZodLiteral<"untracked">;
3839
- }, z.core.$strict>;
3840
- fulfillment: z.ZodObject<{
3841
- kind: z.ZodLiteral<"staff-handover">;
3842
- }, z.core.$strict>;
3843
- }, z.core.$strict>;
3844
- tier: z.ZodString;
3845
- }, z.core.$strict>, z.ZodObject<{
3846
- kind: z.ZodLiteral<"integration">;
3847
- provider: z.ZodLiteral<"discord">;
3848
- action: z.ZodLiteral<"grant-role">;
3849
- roleId: z.ZodString;
3850
- }, z.core.$strict>]>>;
3851
- code: z.ZodString;
3852
- provider: z.ZodEnum<{
3853
- "workers-ai": "workers-ai";
3854
- "fixture-pass": "fixture-pass";
3855
- "fixture-fail": "fixture-fail";
3856
- "fixture-unclear": "fixture-unclear";
3857
- "fixture-error": "fixture-error";
3858
- }>;
3859
- id: z.ZodString;
3860
- createdAt: z.ZodNumber;
3861
- }, z.core.$strip>, z.ZodTransform<{
3862
- quest: string;
3863
- runtimeVersion: 1 | 2;
3864
- title: string;
3865
- presentation: {
3866
- quiz?: {
3867
- id: string;
3868
- prompt: string;
3869
- choices: {
3870
- id: string;
3871
- label: string;
3872
- }[];
3873
- }[] | undefined;
3874
- instructions?: string | undefined;
3875
- video?: {
3876
- url: string;
3877
- poster?: string | undefined;
3878
- captions?: {
3879
- url: string;
3880
- language: string;
3881
- label: string;
3882
- } | undefined;
3883
- } | undefined;
3884
- };
3885
- integrations: "discord"[];
3886
- fields: Record<string, {
3887
- kind: "point-ledger";
3888
- default: string;
3889
- label: string;
3890
- description?: string | undefined;
3891
- } | {
3892
- kind: "datetime";
3893
- default: string;
3894
- label: string;
3895
- description?: string | undefined;
3896
- } | {
3897
- kind: "resource";
3898
- default: string;
3899
- source: {
3900
- provider: "discord";
3901
- resource: "channel";
3902
- types: ("text" | "announcement")[];
3903
- } | {
3904
- provider: "domino";
3905
- resource: "point-ledger";
3906
- } | {
3907
- provider: "discord";
3908
- resource: "role";
3909
- assignable: boolean;
3910
- };
3911
- label: string;
3912
- description?: string | undefined;
3913
- } | {
3914
- kind: "quiz";
3915
- default: {
3916
- id: string;
3917
- prompt: string;
3918
- choices: {
3919
- id: string;
3920
- label: string;
3921
- }[];
3922
- correct: string;
3923
- }[];
3924
- label: string;
3925
- description?: string | undefined;
3926
- } | {
3927
- kind: "text";
3928
- default: string;
3929
- minLength: number;
3930
- maxLength: number;
3931
- multiline: boolean;
3932
- label: string;
3933
- description?: string | undefined;
3934
- } | {
3935
- kind: "integer";
3936
- default: number;
3937
- min: number;
3938
- max: number;
3939
- label: string;
3940
- description?: string | undefined;
3941
- } | {
3942
- kind: "boolean";
3943
- default: boolean;
3944
- label: string;
3945
- description?: string | undefined;
3946
- } | {
3947
- kind: "choice";
3948
- default: string;
3949
- options: string[];
3950
- label: string;
3951
- description?: string | undefined;
3952
- }>;
3953
- values: Record<string, string | number | boolean | {
3954
- id: string;
3955
- prompt: string;
3956
- choices: {
3957
- id: string;
3958
- label: string;
3959
- }[];
3960
- correct: string;
3961
- }[]>;
3962
- rewards: ({
3963
- kind: "tier";
3964
- reward: {
3965
- id: string;
3966
- title: string;
3967
- tiers: {
3968
- id: string;
3969
- title: string;
3970
- }[];
3971
- inventory: {
3972
- kind: "untracked";
3973
- };
3974
- fulfillment: {
3975
- kind: "staff-handover";
3976
- };
3977
- };
3978
- tier: string;
3979
- } | {
3980
- kind: "points";
3981
- balance: string;
3982
- amount: number;
3983
- } | {
3984
- kind: "integration";
3985
- provider: "discord";
3986
- action: "grant-role";
3987
- roleId: string;
3988
- })[];
3989
- humanReview: boolean;
3990
- trigger: {
3991
- kind: "automatic";
3992
- observation?: {
3993
- source: string;
3994
- type: string;
3995
- } | undefined;
3996
- content?: {
3997
- tracker: string;
3998
- window: {
3999
- start: number;
4000
- end?: number | undefined;
4001
- };
4002
- enrollment: "required" | "none";
4003
- posts: "after-enrollment" | "since-start";
4004
- historical: "automatic" | "claim" | "staff";
4005
- } | undefined;
4006
- tracker?: {
4007
- tracker: string;
4008
- source: "custom" | "x-search";
4009
- beneficiary: string;
4010
- on?: "new-record" | "new-observation" | "data-changed" | undefined;
4011
- where?: {
4012
- path: string;
4013
- gt?: number | {
4014
- setting: string;
4015
- } | undefined;
4016
- gte?: number | {
4017
- setting: string;
4018
- } | undefined;
4019
- lt?: number | {
4020
- setting: string;
4021
- } | undefined;
4022
- lte?: number | {
4023
- setting: string;
4024
- } | undefined;
4025
- } | {
4026
- path: string;
4027
- equals: string | number | boolean;
4028
- } | ({
4029
- path: string;
4030
- gt?: number | {
4031
- setting: string;
4032
- } | undefined;
4033
- gte?: number | {
4034
- setting: string;
4035
- } | undefined;
4036
- lt?: number | {
4037
- setting: string;
4038
- } | undefined;
4039
- lte?: number | {
4040
- setting: string;
4041
- } | undefined;
4042
- } | {
4043
- path: string;
4044
- equals: string | number | boolean;
4045
- })[] | undefined;
4046
- } | undefined;
4047
- } | {
4048
- kind: "manual";
4049
- input: "text";
4050
- constraints: {
4051
- required: boolean;
4052
- minLength: number;
4053
- maxLength: number;
4054
- };
4055
- actor?: "member" | "staff" | undefined;
4056
- } | {
4057
- kind: "manual";
4058
- input: "url";
4059
- constraints: {
4060
- required: boolean;
4061
- allowedHosts?: string[] | undefined;
4062
- };
4063
- actor?: "member" | "staff" | undefined;
4064
- } | {
4065
- kind: "manual";
4066
- input: "none" | "quiz" | "photo";
4067
- actor?: "member" | "staff" | undefined;
4068
- };
4069
- requires: {
4070
- quest: string;
4071
- }[];
4072
- completion: {
4073
- kind: "streak";
4074
- days: number;
4075
- timeZone: string;
4076
- } | {
4077
- kind: "once";
4078
- } | {
4079
- kind: "keyed";
4080
- };
4081
- visibility: "visible" | "hidden";
4082
- budgets: {
4083
- id: string;
4084
- scope: "member" | "project";
4085
- period: "day" | "lifetime" | "week";
4086
- limit: number;
4087
- cost: number | {
4088
- balance: string;
4089
- };
4090
- }[];
4091
- code: string;
4092
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
4093
- id: string;
4094
- createdAt: number;
4095
- legacy: boolean;
4096
- lifecycle: "paused" | "active" | "archived";
4097
- performance?: {
4098
- metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
4099
- maxAgeMs: number;
4100
- } | undefined;
4101
- profile?: {
4102
- visible: boolean;
4103
- } | undefined;
4104
- key?: string | undefined;
4105
- origin?: {
4106
- typeVersion: string;
4107
- } | undefined;
4108
- configuration?: {
4109
- defaults: Record<string, string | number | boolean | {
4110
- id: string;
4111
- prompt: string;
4112
- choices: {
4113
- id: string;
4114
- label: string;
4115
- }[];
4116
- correct: string;
4117
- }[]>;
4118
- overrides: Record<string, string | number | boolean | {
4119
- id: string;
4120
- prompt: string;
4121
- choices: {
4122
- id: string;
4123
- label: string;
4124
- }[];
4125
- correct: string;
4126
- }[]>;
4127
- preserved: string[];
4128
- } | undefined;
4129
- }, {
4130
- quest: string;
4131
- title: string;
4132
- criteria: string;
4133
- humanReview: boolean;
4134
- rewards: ({
4135
- kind: "tier";
4136
- reward: {
4137
- id: string;
4138
- title: string;
4139
- tiers: {
4140
- id: string;
4141
- title: string;
4142
- }[];
4143
- inventory: {
4144
- kind: "untracked";
4145
- };
4146
- fulfillment: {
4147
- kind: "staff-handover";
4148
- };
4149
- };
4150
- tier: string;
4151
- } | {
4152
- kind: "points";
4153
- balance: string;
4154
- amount: number;
4155
- } | {
4156
- kind: "integration";
4157
- provider: "discord";
4158
- action: "grant-role";
4159
- roleId: string;
4160
- })[];
4161
- code: string;
4162
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
4163
- id: string;
4164
- createdAt: number;
4165
- }>>]>>;
4781
+ }, z.core.$strict>>;
4166
4782
  affectedCollections: z.ZodArray<z.ZodObject<{
4783
+ archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4167
4784
  id: z.ZodString;
4168
4785
  key: z.ZodOptional<z.ZodString>;
4169
4786
  title: z.ZodString;
@@ -4177,17 +4794,109 @@ declare const allocatedQuestSchema: z.ZodObject<{
4177
4794
  id: z.ZodString;
4178
4795
  }, z.core.$strip>;
4179
4796
 
4180
- /** A cursor as a client passes it back. */
4181
- declare const pageCursorSchema: z.ZodString;
4182
- /** A query that pages by cursor only. */
4183
- declare const pageQuerySchema: z.ZodObject<{
4184
- 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;
4185
4834
  }, z.core.$strict>;
4186
- type PageQuery = z.input<typeof pageQuerySchema>;
4187
- /** One page of a paged read. */
4188
- type Page<T> = {
4189
- items: T[];
4190
- 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";
4191
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>;
4192
4901
 
4193
- 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 };