@domino-sdk/relay 1.62.0 → 1.63.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 (74) hide show
  1. package/CHANGELOG.md +120 -0
  2. package/dist/{accounts-CCqCKCVx.d.ts → accounts-nz3mzfRQ.d.ts} +21 -3
  3. package/dist/{attempt-captures-Cm-5G0PC.d.ts → attempt-captures-DMi8oR9T.d.ts} +1 -1
  4. package/dist/authoring.d.ts +54 -20
  5. package/dist/authoring.js +58 -24
  6. package/dist/{automatic-outcomes-pAsOyIVp.d.ts → automatic-outcomes-C_LLQU1p.d.ts} +11 -1
  7. package/dist/avatar.d.ts +1 -1
  8. package/dist/browser.d.ts +9 -9
  9. package/dist/browser.js +15 -13
  10. package/dist/capability-error-CuI_F7yM.d.ts +296 -0
  11. package/dist/{catalog--ZIlskAo.d.ts → catalog-BaTOKpNw.d.ts} +21 -10
  12. package/dist/{chunk-3PYYGFSB.js → chunk-3RFP6GT5.js} +3 -3
  13. package/dist/{chunk-HTZHBTIL.js → chunk-4GQW43UU.js} +193 -357
  14. package/dist/{chunk-D26YNACF.js → chunk-4NOFSGAL.js} +56 -56
  15. package/dist/{chunk-UW5232GG.js → chunk-5XLZ34PV.js} +5 -5
  16. package/dist/{chunk-QYPMPWVX.js → chunk-7X67QLPB.js} +43 -43
  17. package/dist/{chunk-5TEYFX6X.js → chunk-7Z4SZ6YM.js} +2 -2
  18. package/dist/{chunk-Y322OTCH.js → chunk-AQOL3SK5.js} +1 -1
  19. package/dist/{chunk-CICDIBOF.js → chunk-EHUSD3O2.js} +76 -72
  20. package/dist/chunk-FO2LCZTL.js +19 -0
  21. package/dist/{chunk-3KLC4AMA.js → chunk-FU5CGNTR.js} +135 -173
  22. package/dist/{chunk-K2KS3JLY.js → chunk-GLH6MEI2.js} +7 -2
  23. package/dist/chunk-ICXZZNPS.js +199 -0
  24. package/dist/{chunk-MK425RXJ.js → chunk-ID3BZXFZ.js} +709 -640
  25. package/dist/{chunk-UAKYDVT3.js → chunk-KP2MCX3R.js} +111 -89
  26. package/dist/{chunk-GKIFABGN.js → chunk-LZWXCBUB.js} +74 -247
  27. package/dist/{chunk-6WCIWXUV.js → chunk-MTKRIQEU.js} +2 -2
  28. package/dist/{chunk-4OC7REYX.js → chunk-MWMCQLCG.js} +3 -3
  29. package/dist/{chunk-XJFYAXET.js → chunk-N4BDKS6Y.js} +19 -19
  30. package/dist/{chunk-E6IKQHTX.js → chunk-N4LNEGQX.js} +2 -2
  31. package/dist/chunk-NQDEWJWE.js +554 -0
  32. package/dist/{chunk-GTDW453U.js → chunk-QR6HH4DI.js} +100 -114
  33. package/dist/chunk-TLSQETTY.js +41 -0
  34. package/dist/{chunk-CZFXGGEK.js → chunk-U66GUVSG.js} +2 -2
  35. package/dist/{chunk-KDR2VAJP.js → chunk-UYVJZR33.js} +2 -2
  36. package/dist/chunk-UZ765UGH.js +18 -0
  37. package/dist/{chunk-XNKSSE32.js → chunk-VWQGWGCH.js} +7 -7
  38. package/dist/{chunk-WSBYWVTZ.js → chunk-W7YSMSGC.js} +166 -158
  39. package/dist/{client-B-hbHX30.d.ts → client-DHmG7rn6.d.ts} +25 -61
  40. package/dist/{capability-error-DFMwSuSf.d.ts → dashboards-CLemT6kj.d.ts} +14 -294
  41. package/dist/{deployments-M4OHn7G3.d.ts → deployments-DTULi7dF.d.ts} +46 -3
  42. package/dist/{identity-integration-3mX6b5iH.d.ts → identity-integration-DOeNZaxF.d.ts} +32 -2
  43. package/dist/index.d.ts +10 -10
  44. package/dist/index.js +13 -11
  45. package/dist/internal.d.ts +27 -13
  46. package/dist/internal.js +41 -13
  47. package/dist/{analytics-BwAKLi7O.d.ts → limits-kNzYdZ00.d.ts} +124 -3
  48. package/dist/{offers-DhAtss4_.d.ts → offers-CYeN_I0Y.d.ts} +3 -2
  49. package/dist/portal-proxy.d.ts +19 -3
  50. package/dist/portal-proxy.js +64 -22
  51. package/dist/react/index.d.ts +21 -14
  52. package/dist/react/index.js +55 -29
  53. package/dist/{pages-B8q8Y_dQ.d.ts → reward-deliveries-drp-x1G-.d.ts} +300 -233
  54. package/dist/runtime/authoring.js +1 -1
  55. package/dist/runtime/chunks/UGDV5W4N.js +1 -0
  56. package/dist/runtime/manifest.json +3 -3
  57. package/dist/runtime/schema.js +1 -1
  58. package/dist/schema.d.ts +193 -18
  59. package/dist/schema.js +31 -26
  60. package/dist/server/index.d.ts +13 -13
  61. package/dist/server/index.js +5885 -6224
  62. package/dist/{sign-in-providers-BkjcDsFF.d.ts → sign-in-providers-B1Q9eDRm.d.ts} +7 -2
  63. package/dist/{submission-input-DHGKhXfp.d.ts → submission-input-DZCbjQUH.d.ts} +3 -2
  64. package/dist/{telegram-browser-BCE7zdOb.d.ts → telegram-browser-NL0Asmsi.d.ts} +4 -4
  65. package/dist/telegram.d.ts +8 -8
  66. package/dist/telegram.js +2 -2
  67. package/dist/testing.d.ts +228 -26
  68. package/dist/testing.js +137 -92
  69. package/dist/{tracker-data-Hb1uQnk5.d.ts → tracker-data-esm3WG8R.d.ts} +34 -8
  70. package/dist/{transport-DkhX2Cbs.d.ts → transport-Czht_irp.d.ts} +41259 -39835
  71. package/dist/{wallet-DTO7SXj7.d.ts → wallet-B7e06v4m.d.ts} +14 -4
  72. package/package.json +1 -1
  73. package/dist/chunk-UPQPUJOU.js +0 -457
  74. package/dist/runtime/chunks/Y4OAVXFR.js +0 -1
@@ -1,235 +1,5 @@
1
1
  import * as z from 'zod';
2
- import { T as TrackerSkipCode } from './tracker-data-Hb1uQnk5.js';
3
-
4
- /**
5
- * The delivery actions this SDK knows. `RewardDelivery.action` is an open string: Relay can add
6
- * actions, and a delivery keeps one this SDK does not list. Show such a delivery by its status.
7
- */
8
- declare const RewardDeliveryAction: {
9
- /** Delivers a quest's Discord role reward. */
10
- readonly GrantRole: "grant-role";
11
- /**
12
- * Posts a quest's announcement in a Telegram chat or Discord channel. Its `provider` is
13
- * `telegram` or `discord`, and its `roleId` is empty.
14
- */
15
- readonly PostMessage: "post-message";
16
- };
17
- /** A known action, or one a newer Relay sends. */
18
- type RewardDeliveryAction = (typeof RewardDeliveryAction)[keyof typeof RewardDeliveryAction] | (string & {});
19
- declare const roleReconciliationSchema: z.ZodObject<{
20
- status: z.ZodEnum<{
21
- pending: "pending";
22
- removed: "removed";
23
- failed: "failed";
24
- preserved: "preserved";
25
- granted: "granted";
26
- }>;
27
- ownership: z.ZodEnum<{
28
- external: "external";
29
- relay: "relay";
30
- unclaimed: "unclaimed";
31
- }>;
32
- at: z.ZodNumber;
33
- reason: z.ZodNullable<z.ZodString>;
34
- }, z.core.$strip>;
35
- declare const knownRewardDeliverySchema: z.ZodObject<{
36
- id: z.ZodString;
37
- quest: z.ZodString;
38
- completion: z.ZodString;
39
- member: z.ZodString;
40
- provider: z.ZodLiteral<"discord">;
41
- action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
42
- roleId: z.ZodString;
43
- status: z.ZodEnum<{
44
- pending: "pending";
45
- failed: "failed";
46
- delivered: "delivered";
47
- }>;
48
- attempts: z.ZodNumber;
49
- nextAt: z.ZodNumber;
50
- lastError: z.ZodNullable<z.ZodString>;
51
- createdAt: z.ZodNumber;
52
- deliveredAt: z.ZodNullable<z.ZodNumber>;
53
- dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
54
- revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
- reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
56
- status: z.ZodEnum<{
57
- pending: "pending";
58
- removed: "removed";
59
- failed: "failed";
60
- preserved: "preserved";
61
- granted: "granted";
62
- }>;
63
- ownership: z.ZodEnum<{
64
- external: "external";
65
- relay: "relay";
66
- unclaimed: "unclaimed";
67
- }>;
68
- at: z.ZodNumber;
69
- reason: z.ZodNullable<z.ZodString>;
70
- }, z.core.$strip>>>;
71
- }, z.core.$strip>;
72
- declare const rewardDeliverySchema: z.ZodUnion<readonly [z.ZodObject<{
73
- id: z.ZodString;
74
- quest: z.ZodString;
75
- completion: z.ZodString;
76
- member: z.ZodString;
77
- provider: z.ZodLiteral<"discord">;
78
- action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
79
- roleId: z.ZodString;
80
- status: z.ZodEnum<{
81
- pending: "pending";
82
- failed: "failed";
83
- delivered: "delivered";
84
- }>;
85
- attempts: z.ZodNumber;
86
- nextAt: z.ZodNumber;
87
- lastError: z.ZodNullable<z.ZodString>;
88
- createdAt: z.ZodNumber;
89
- deliveredAt: z.ZodNullable<z.ZodNumber>;
90
- dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
91
- revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
92
- reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
93
- status: z.ZodEnum<{
94
- pending: "pending";
95
- removed: "removed";
96
- failed: "failed";
97
- preserved: "preserved";
98
- granted: "granted";
99
- }>;
100
- ownership: z.ZodEnum<{
101
- external: "external";
102
- relay: "relay";
103
- unclaimed: "unclaimed";
104
- }>;
105
- at: z.ZodNumber;
106
- reason: z.ZodNullable<z.ZodString>;
107
- }, z.core.$strip>>>;
108
- }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>, z.ZodObject<{
109
- id: z.ZodString;
110
- quest: z.ZodString;
111
- completion: z.ZodString;
112
- member: z.ZodString;
113
- action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
114
- attempts: z.ZodNumber;
115
- nextAt: z.ZodNumber;
116
- lastError: z.ZodNullable<z.ZodString>;
117
- createdAt: z.ZodNumber;
118
- deliveredAt: z.ZodNullable<z.ZodNumber>;
119
- dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
120
- revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
121
- provider: z.ZodString;
122
- status: z.ZodString;
123
- roleId: z.ZodOptional<z.ZodString>;
124
- reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
125
- status: z.ZodString;
126
- ownership: z.ZodString;
127
- at: z.ZodNumber;
128
- reason: z.ZodNullable<z.ZodString>;
129
- }, z.core.$catchall<z.ZodJSONSchema>>>>;
130
- }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>]>;
131
- /**
132
- * One page of reward deliveries, newest first. Pass `nextCursor` back as `cursor` for older ones;
133
- * it is null on the last page.
134
- */
135
- declare const rewardDeliveriesSchema: z.ZodObject<{
136
- deliveries: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
137
- id: z.ZodString;
138
- quest: z.ZodString;
139
- completion: z.ZodString;
140
- member: z.ZodString;
141
- provider: z.ZodLiteral<"discord">;
142
- action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
143
- roleId: z.ZodString;
144
- status: z.ZodEnum<{
145
- pending: "pending";
146
- failed: "failed";
147
- delivered: "delivered";
148
- }>;
149
- attempts: z.ZodNumber;
150
- nextAt: z.ZodNumber;
151
- lastError: z.ZodNullable<z.ZodString>;
152
- createdAt: z.ZodNumber;
153
- deliveredAt: z.ZodNullable<z.ZodNumber>;
154
- dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
155
- revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
156
- reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
157
- status: z.ZodEnum<{
158
- pending: "pending";
159
- removed: "removed";
160
- failed: "failed";
161
- preserved: "preserved";
162
- granted: "granted";
163
- }>;
164
- ownership: z.ZodEnum<{
165
- external: "external";
166
- relay: "relay";
167
- unclaimed: "unclaimed";
168
- }>;
169
- at: z.ZodNumber;
170
- reason: z.ZodNullable<z.ZodString>;
171
- }, z.core.$strip>>>;
172
- }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>, z.ZodObject<{
173
- id: z.ZodString;
174
- quest: z.ZodString;
175
- completion: z.ZodString;
176
- member: z.ZodString;
177
- action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
178
- attempts: z.ZodNumber;
179
- nextAt: z.ZodNumber;
180
- lastError: z.ZodNullable<z.ZodString>;
181
- createdAt: z.ZodNumber;
182
- deliveredAt: z.ZodNullable<z.ZodNumber>;
183
- dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
184
- revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
185
- provider: z.ZodString;
186
- status: z.ZodString;
187
- roleId: z.ZodOptional<z.ZodString>;
188
- reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
189
- status: z.ZodString;
190
- ownership: z.ZodString;
191
- at: z.ZodNumber;
192
- reason: z.ZodNullable<z.ZodString>;
193
- }, z.core.$catchall<z.ZodJSONSchema>>>>;
194
- }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>]>>;
195
- nextCursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
196
- }, z.core.$strip>;
197
- /**
198
- * Which page of reward deliveries to read: a page's `nextCursor` as `cursor`, and `limit`, 1 to
199
- * 500 deliveries a page, 500 by default.
200
- */
201
- declare const rewardDeliveryQuerySchema: z.ZodObject<{
202
- cursor: z.ZodOptional<z.ZodString>;
203
- limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
204
- }, z.core.$strict>;
205
- type RewardDeliveryQuery = z.input<typeof rewardDeliveryQuerySchema>;
206
- type RewardDelivery = z.infer<typeof rewardDeliverySchema>;
207
- /**
208
- * A Discord role the project's reward deliveries grant, with every delivery of it counted, however
209
- * old. `quests` names the quests whose completions requested it.
210
- */
211
- declare const discordRoleRewardSchema: z.ZodObject<{
212
- roleId: z.ZodString;
213
- quests: z.ZodArray<z.ZodString>;
214
- deliveries: z.ZodObject<{
215
- pending: z.ZodNumber;
216
- delivered: z.ZodNumber;
217
- failed: z.ZodNumber;
218
- }, z.core.$strip>;
219
- }, z.core.$strip>;
220
- /** Every Discord role the project's reward deliveries grant, in this environment, by role ID. */
221
- declare const discordRoleRewardsSchema: z.ZodObject<{
222
- roles: z.ZodArray<z.ZodObject<{
223
- roleId: z.ZodString;
224
- quests: z.ZodArray<z.ZodString>;
225
- deliveries: z.ZodObject<{
226
- pending: z.ZodNumber;
227
- delivered: z.ZodNumber;
228
- failed: z.ZodNumber;
229
- }, z.core.$strip>;
230
- }, z.core.$strip>>;
231
- }, z.core.$strip>;
232
- type DiscordRoleReward = z.infer<typeof discordRoleRewardSchema>;
2
+ import { T as TrackerSkipCode, S as SkipEnrollment } from './tracker-data-esm3WG8R.js';
233
3
 
234
4
  /**
235
5
  * The longest wording Relay stores: a checkbox label with a link to the policy fits.
@@ -475,10 +245,10 @@ type CreatorAccounts = z.infer<typeof creatorAccountsSchema>;
475
245
 
476
246
  declare const contentQualificationDecisionSchema: z.ZodObject<{
477
247
  kind: z.ZodEnum<{
248
+ defer: "defer";
478
249
  accept: "accept";
479
250
  reject: "reject";
480
251
  review: "review";
481
- defer: "defer";
482
252
  progress: "progress";
483
253
  superseded: "superseded";
484
254
  }>;
@@ -632,6 +402,7 @@ declare const questOutcomeSchema: z.ZodObject<{
632
402
  quest: "quest";
633
403
  tracker: "tracker";
634
404
  }>>;
405
+ enrollment: z.ZodOptional<z.ZodType<SkipEnrollment, unknown, z.core.$ZodTypeInternals<SkipEnrollment, unknown>>>;
635
406
  attempt: z.ZodNullable<z.ZodString>;
636
407
  claimable: z.ZodBoolean;
637
408
  createdAt: z.ZodNumber;
@@ -666,6 +437,7 @@ declare const questOutcomePageSchema: z.ZodObject<{
666
437
  quest: "quest";
667
438
  tracker: "tracker";
668
439
  }>>;
440
+ enrollment: z.ZodOptional<z.ZodType<SkipEnrollment, unknown, z.core.$ZodTypeInternals<SkipEnrollment, unknown>>>;
669
441
  attempt: z.ZodNullable<z.ZodString>;
670
442
  claimable: z.ZodBoolean;
671
443
  createdAt: z.ZodNumber;
@@ -712,4 +484,299 @@ declare const managementStateQuerySchema: z.ZodObject<{
712
484
  }, z.core.$strict>;
713
485
  type ManagementStateQuery = z.input<typeof managementStateQuerySchema>;
714
486
 
715
- export { memberConsentInputSchema as $, consentInputSchema as A, consentWordingMaxLength as B, type ConsentChannel as C, type DiscordRoleReward as D, contentMetricSchema as E, contentMetricsSchema as F, contentPerformancePolicySchema as G, contentQualificationDecisionSchema as H, contentQualificationPageSchema as I, contentQualificationSchema as J, type KnownConsentChannel as K, creatorAccountProviderSchema as L, type MemberConsent as M, creatorAccountSchema as N, creatorAccountsSchema as O, type Page as P, type QuestClaimInput as Q, type ResponseResult as R, discordRoleRewardSchema as S, discordRoleRewardsSchema as T, type UnsupportedResponse as U, knownConsentChannels as V, knownCreatorAccountProviders as W, knownRewardDeliverySchema as X, managementStateQuerySchema as Y, memberConsentHistoryQuerySchema as Z, memberConsentHistorySchema as _, type ConsentInput as a, memberConsentListSchema as a0, memberConsentSchema as a1, memberEnrollmentInputSchema as a2, pageCursorSchema as a3, pageQuerySchema as a4, questClaimInputSchema as a5, questEnrollmentInputSchema as a6, questEnrollmentSchema as a7, questOutcomePageSchema as a8, questOutcomeQuerySchema as a9, questOutcomeSchema as aa, responseListSchema as ab, responseSchema as ac, responseShape as ad, rewardDeliveriesSchema as ae, rewardDeliveryQuerySchema as af, rewardDeliverySchema as ag, roleReconciliationSchema as ah, type ConsentSource as b, type ConsentState as c, type CreatorAccount as d, type CreatorAccountProvider as e, type CreatorAccounts as f, type KnownConsentSource as g, type KnownConsentState as h, type PageQuery as i, type QuestEnrollment as j, type QuestEnrollmentInput as k, type QuestOutcome as l, type QuestOutcomePage as m, type QuestOutcomeQuery as n, QuestOutcomeState as o, paginate as p, type ResponseSchema as q, type RewardDeliveryQuery as r, RewardDeliveryAction as s, contentQualificationQuerySchema as t, type ContentMetric as u, type ContentPerformancePolicy as v, type ManagementStateQuery as w, type MemberConsentHistory as x, type MemberEnrollmentInput as y, type RewardDelivery as z };
487
+ /**
488
+ * The delivery actions this SDK knows. `RewardDelivery.action` is an open string: Relay can add
489
+ * actions, and a delivery keeps one this SDK does not list. Show such a delivery by its status.
490
+ */
491
+ declare const RewardDeliveryAction: {
492
+ /** Delivers a quest's Discord role reward. */
493
+ readonly GrantRole: "grant-role";
494
+ /**
495
+ * Posts a quest's announcement in a Telegram chat or Discord channel. Its `provider` is
496
+ * `telegram` or `discord`, and its `roleId` is empty.
497
+ */
498
+ readonly PostMessage: "post-message";
499
+ };
500
+ /** A known action, or one a newer Relay sends. */
501
+ type RewardDeliveryAction = (typeof RewardDeliveryAction)[keyof typeof RewardDeliveryAction] | (string & {});
502
+ declare const roleReconciliationSchema: z.ZodObject<{
503
+ status: z.ZodEnum<{
504
+ pending: "pending";
505
+ removed: "removed";
506
+ failed: "failed";
507
+ preserved: "preserved";
508
+ granted: "granted";
509
+ }>;
510
+ ownership: z.ZodEnum<{
511
+ external: "external";
512
+ relay: "relay";
513
+ unclaimed: "unclaimed";
514
+ }>;
515
+ at: z.ZodNumber;
516
+ reason: z.ZodNullable<z.ZodString>;
517
+ }, z.core.$strip>;
518
+ declare const knownRewardDeliverySchema: z.ZodObject<{
519
+ id: z.ZodString;
520
+ quest: z.ZodString;
521
+ completion: z.ZodString;
522
+ member: z.ZodString;
523
+ provider: z.ZodLiteral<"discord">;
524
+ action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
525
+ roleId: z.ZodString;
526
+ status: z.ZodEnum<{
527
+ pending: "pending";
528
+ failed: "failed";
529
+ delivered: "delivered";
530
+ }>;
531
+ attempts: z.ZodNumber;
532
+ nextAt: z.ZodNumber;
533
+ lastError: z.ZodNullable<z.ZodString>;
534
+ createdAt: z.ZodNumber;
535
+ deliveredAt: z.ZodNullable<z.ZodNumber>;
536
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
537
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
538
+ reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
539
+ status: z.ZodEnum<{
540
+ pending: "pending";
541
+ removed: "removed";
542
+ failed: "failed";
543
+ preserved: "preserved";
544
+ granted: "granted";
545
+ }>;
546
+ ownership: z.ZodEnum<{
547
+ external: "external";
548
+ relay: "relay";
549
+ unclaimed: "unclaimed";
550
+ }>;
551
+ at: z.ZodNumber;
552
+ reason: z.ZodNullable<z.ZodString>;
553
+ }, z.core.$strip>>>;
554
+ }, z.core.$strip>;
555
+ declare const rewardDeliverySchema: z.ZodUnion<readonly [z.ZodObject<{
556
+ id: z.ZodString;
557
+ quest: z.ZodString;
558
+ completion: z.ZodString;
559
+ member: z.ZodString;
560
+ provider: z.ZodLiteral<"discord">;
561
+ action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
562
+ roleId: z.ZodString;
563
+ status: z.ZodEnum<{
564
+ pending: "pending";
565
+ failed: "failed";
566
+ delivered: "delivered";
567
+ }>;
568
+ attempts: z.ZodNumber;
569
+ nextAt: z.ZodNumber;
570
+ lastError: z.ZodNullable<z.ZodString>;
571
+ createdAt: z.ZodNumber;
572
+ deliveredAt: z.ZodNullable<z.ZodNumber>;
573
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
574
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
575
+ reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
576
+ status: z.ZodEnum<{
577
+ pending: "pending";
578
+ removed: "removed";
579
+ failed: "failed";
580
+ preserved: "preserved";
581
+ granted: "granted";
582
+ }>;
583
+ ownership: z.ZodEnum<{
584
+ external: "external";
585
+ relay: "relay";
586
+ unclaimed: "unclaimed";
587
+ }>;
588
+ at: z.ZodNumber;
589
+ reason: z.ZodNullable<z.ZodString>;
590
+ }, z.core.$strip>>>;
591
+ }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>, z.ZodObject<{
592
+ id: z.ZodString;
593
+ quest: z.ZodString;
594
+ completion: z.ZodString;
595
+ member: z.ZodString;
596
+ action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
597
+ attempts: z.ZodNumber;
598
+ nextAt: z.ZodNumber;
599
+ lastError: z.ZodNullable<z.ZodString>;
600
+ createdAt: z.ZodNumber;
601
+ deliveredAt: z.ZodNullable<z.ZodNumber>;
602
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
603
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
604
+ provider: z.ZodString;
605
+ status: z.ZodString;
606
+ roleId: z.ZodOptional<z.ZodString>;
607
+ reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
608
+ status: z.ZodString;
609
+ ownership: z.ZodString;
610
+ at: z.ZodNumber;
611
+ reason: z.ZodNullable<z.ZodString>;
612
+ }, z.core.$catchall<z.ZodJSONSchema>>>>;
613
+ }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>]>;
614
+ /**
615
+ * One page of reward deliveries, newest first. Pass `nextCursor` back as `cursor` for older ones;
616
+ * it is null on the last page. `items` holds the same deliveries as `deliveries`, so the page
617
+ * fits `paginate()`; a Relay older than `items` answers `deliveries` alone, and the clients fill
618
+ * `items` from it.
619
+ */
620
+ declare const rewardDeliveriesSchema: z.ZodObject<{
621
+ deliveries: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
622
+ id: z.ZodString;
623
+ quest: z.ZodString;
624
+ completion: z.ZodString;
625
+ member: z.ZodString;
626
+ provider: z.ZodLiteral<"discord">;
627
+ action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
628
+ roleId: z.ZodString;
629
+ status: z.ZodEnum<{
630
+ pending: "pending";
631
+ failed: "failed";
632
+ delivered: "delivered";
633
+ }>;
634
+ attempts: z.ZodNumber;
635
+ nextAt: z.ZodNumber;
636
+ lastError: z.ZodNullable<z.ZodString>;
637
+ createdAt: z.ZodNumber;
638
+ deliveredAt: z.ZodNullable<z.ZodNumber>;
639
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
640
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
641
+ reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
642
+ status: z.ZodEnum<{
643
+ pending: "pending";
644
+ removed: "removed";
645
+ failed: "failed";
646
+ preserved: "preserved";
647
+ granted: "granted";
648
+ }>;
649
+ ownership: z.ZodEnum<{
650
+ external: "external";
651
+ relay: "relay";
652
+ unclaimed: "unclaimed";
653
+ }>;
654
+ at: z.ZodNumber;
655
+ reason: z.ZodNullable<z.ZodString>;
656
+ }, z.core.$strip>>>;
657
+ }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>, z.ZodObject<{
658
+ id: z.ZodString;
659
+ quest: z.ZodString;
660
+ completion: z.ZodString;
661
+ member: z.ZodString;
662
+ action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
663
+ attempts: z.ZodNumber;
664
+ nextAt: z.ZodNumber;
665
+ lastError: z.ZodNullable<z.ZodString>;
666
+ createdAt: z.ZodNumber;
667
+ deliveredAt: z.ZodNullable<z.ZodNumber>;
668
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
669
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
670
+ provider: z.ZodString;
671
+ status: z.ZodString;
672
+ roleId: z.ZodOptional<z.ZodString>;
673
+ reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
674
+ status: z.ZodString;
675
+ ownership: z.ZodString;
676
+ at: z.ZodNumber;
677
+ reason: z.ZodNullable<z.ZodString>;
678
+ }, z.core.$catchall<z.ZodJSONSchema>>>>;
679
+ }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>]>>;
680
+ items: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
681
+ id: z.ZodString;
682
+ quest: z.ZodString;
683
+ completion: z.ZodString;
684
+ member: z.ZodString;
685
+ provider: z.ZodLiteral<"discord">;
686
+ action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
687
+ roleId: z.ZodString;
688
+ status: z.ZodEnum<{
689
+ pending: "pending";
690
+ failed: "failed";
691
+ delivered: "delivered";
692
+ }>;
693
+ attempts: z.ZodNumber;
694
+ nextAt: z.ZodNumber;
695
+ lastError: z.ZodNullable<z.ZodString>;
696
+ createdAt: z.ZodNumber;
697
+ deliveredAt: z.ZodNullable<z.ZodNumber>;
698
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
699
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
700
+ reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
701
+ status: z.ZodEnum<{
702
+ pending: "pending";
703
+ removed: "removed";
704
+ failed: "failed";
705
+ preserved: "preserved";
706
+ granted: "granted";
707
+ }>;
708
+ ownership: z.ZodEnum<{
709
+ external: "external";
710
+ relay: "relay";
711
+ unclaimed: "unclaimed";
712
+ }>;
713
+ at: z.ZodNumber;
714
+ reason: z.ZodNullable<z.ZodString>;
715
+ }, z.core.$strip>>>;
716
+ }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>, z.ZodObject<{
717
+ id: z.ZodString;
718
+ quest: z.ZodString;
719
+ completion: z.ZodString;
720
+ member: z.ZodString;
721
+ action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
722
+ attempts: z.ZodNumber;
723
+ nextAt: z.ZodNumber;
724
+ lastError: z.ZodNullable<z.ZodString>;
725
+ createdAt: z.ZodNumber;
726
+ deliveredAt: z.ZodNullable<z.ZodNumber>;
727
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
728
+ revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
729
+ provider: z.ZodString;
730
+ status: z.ZodString;
731
+ roleId: z.ZodOptional<z.ZodString>;
732
+ reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
733
+ status: z.ZodString;
734
+ ownership: z.ZodString;
735
+ at: z.ZodNumber;
736
+ reason: z.ZodNullable<z.ZodString>;
737
+ }, z.core.$catchall<z.ZodJSONSchema>>>>;
738
+ }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>]>>>;
739
+ nextCursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
740
+ }, z.core.$strip>;
741
+ /**
742
+ * Which page of reward deliveries to read: a page's `nextCursor` as `cursor`, and `limit`, 1 to
743
+ * 500 deliveries a page, 500 by default.
744
+ */
745
+ declare const rewardDeliveryQuerySchema: z.ZodObject<{
746
+ cursor: z.ZodOptional<z.ZodString>;
747
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
748
+ }, z.core.$strict>;
749
+ type RewardDeliveryQuery = z.input<typeof rewardDeliveryQuerySchema>;
750
+ type RewardDelivery = z.infer<typeof rewardDeliverySchema>;
751
+ /** A page of reward deliveries as the clients answer it: a `Page` that `paginate()` takes. */
752
+ type RewardDeliveryPage = z.infer<typeof rewardDeliveriesSchema> & {
753
+ items: RewardDelivery[];
754
+ };
755
+ /**
756
+ * A Discord role the project's reward deliveries grant, with every delivery of it counted, however
757
+ * old. `quests` names the quests whose completions requested it.
758
+ */
759
+ declare const discordRoleRewardSchema: z.ZodObject<{
760
+ roleId: z.ZodString;
761
+ quests: z.ZodArray<z.ZodString>;
762
+ deliveries: z.ZodObject<{
763
+ pending: z.ZodNumber;
764
+ delivered: z.ZodNumber;
765
+ failed: z.ZodNumber;
766
+ }, z.core.$strip>;
767
+ }, z.core.$strip>;
768
+ /** Every Discord role the project's reward deliveries grant, in this environment, by role ID. */
769
+ declare const discordRoleRewardsSchema: z.ZodObject<{
770
+ roles: z.ZodArray<z.ZodObject<{
771
+ roleId: z.ZodString;
772
+ quests: z.ZodArray<z.ZodString>;
773
+ deliveries: z.ZodObject<{
774
+ pending: z.ZodNumber;
775
+ delivered: z.ZodNumber;
776
+ failed: z.ZodNumber;
777
+ }, z.core.$strip>;
778
+ }, z.core.$strip>>;
779
+ }, z.core.$strip>;
780
+ type DiscordRoleReward = z.infer<typeof discordRoleRewardSchema>;
781
+
782
+ export { memberConsentHistorySchema as $, type RewardDelivery as A, consentInputSchema as B, type ConsentChannel as C, type DiscordRoleReward as D, consentWordingMaxLength as E, contentMetricSchema as F, contentMetricsSchema as G, contentPerformancePolicySchema as H, contentQualificationDecisionSchema as I, contentQualificationPageSchema as J, type KnownConsentChannel as K, contentQualificationSchema as L, type MemberConsent as M, creatorAccountProviderSchema as N, creatorAccountSchema as O, type Page as P, type QuestClaimInput as Q, type ResponseResult as R, creatorAccountsSchema as S, discordRoleRewardSchema as T, type UnsupportedResponse as U, discordRoleRewardsSchema as V, knownConsentChannels as W, knownCreatorAccountProviders as X, knownRewardDeliverySchema as Y, managementStateQuerySchema as Z, memberConsentHistoryQuerySchema as _, type ConsentInput as a, memberConsentInputSchema as a0, memberConsentListSchema as a1, memberConsentSchema as a2, memberEnrollmentInputSchema as a3, pageCursorSchema as a4, pageQuerySchema as a5, questClaimInputSchema as a6, questEnrollmentInputSchema as a7, questEnrollmentSchema as a8, questOutcomePageSchema as a9, questOutcomeQuerySchema as aa, questOutcomeSchema as ab, responseListSchema as ac, responseSchema as ad, responseShape as ae, rewardDeliveriesSchema as af, rewardDeliveryQuerySchema as ag, rewardDeliverySchema as ah, roleReconciliationSchema as ai, type ConsentSource as b, type ConsentState as c, type CreatorAccount as d, type CreatorAccountProvider as e, type CreatorAccounts as f, type KnownConsentSource as g, type KnownConsentState as h, type PageQuery as i, type QuestEnrollment as j, type QuestEnrollmentInput as k, type QuestOutcome as l, type QuestOutcomePage as m, type QuestOutcomeQuery as n, QuestOutcomeState as o, paginate as p, type ResponseSchema as q, type RewardDeliveryQuery as r, type RewardDeliveryPage as s, contentQualificationQuerySchema as t, RewardDeliveryAction as u, type ContentMetric as v, type ContentPerformancePolicy as w, type ManagementStateQuery as x, type MemberConsentHistory as y, type MemberEnrollmentInput as z };