@domino-sdk/relay 1.60.0 → 1.62.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 (80) hide show
  1. package/CHANGELOG.md +175 -8
  2. package/README.md +3 -2
  3. package/dist/{schema-CwbRkmlr.d.ts → accounts-CCqCKCVx.d.ts} +3127 -1764
  4. package/dist/action-9Xl0StBg.d.ts +33 -0
  5. package/dist/{analytics-URV-mxjH.d.ts → analytics-BwAKLi7O.d.ts} +347 -3
  6. package/dist/{attempt-captures-W2dgzGqE.d.ts → attempt-captures-Cm-5G0PC.d.ts} +1 -1
  7. package/dist/authoring.d.ts +130 -42
  8. package/dist/authoring.js +105 -19
  9. package/dist/{automatic-outcomes-Cmou89IS.d.ts → automatic-outcomes-pAsOyIVp.d.ts} +5 -1
  10. package/dist/avatar.d.ts +1 -1
  11. package/dist/browser.d.ts +15 -11
  12. package/dist/browser.js +15 -11
  13. package/dist/{integrations-CmIkP1Gi.d.ts → capability-error-DFMwSuSf.d.ts} +160 -42
  14. package/dist/{pages-Bti7g5mX.d.ts → catalog--ZIlskAo.d.ts} +39 -561
  15. package/dist/{chunk-N3LJ6GFK.js → chunk-3KLC4AMA.js} +40 -11
  16. package/dist/{chunk-6ZG7WNYX.js → chunk-3PYYGFSB.js} +14 -2
  17. package/dist/{chunk-VWMIA2TT.js → chunk-5TEYFX6X.js} +2 -2
  18. package/dist/chunk-6WCIWXUV.js +31 -0
  19. package/dist/chunk-CICDIBOF.js +373 -0
  20. package/dist/{chunk-MHPKEVEW.js → chunk-CZFXGGEK.js} +5 -0
  21. package/dist/chunk-D26YNACF.js +320 -0
  22. package/dist/{chunk-KUPVQXUJ.js → chunk-E6IKQHTX.js} +2 -2
  23. package/dist/chunk-FWLQ5XCS.js +21 -0
  24. package/dist/{chunk-VVRQQRMQ.js → chunk-GKIFABGN.js} +150 -61
  25. package/dist/chunk-GTDW453U.js +522 -0
  26. package/dist/{chunk-Y2IGFLD2.js → chunk-HTZHBTIL.js} +69 -27
  27. package/dist/chunk-K2KS3JLY.js +188 -0
  28. package/dist/{chunk-GBSDAD3N.js → chunk-MK425RXJ.js} +3140 -3202
  29. package/dist/{chunk-YOAPPIWN.js → chunk-QYPMPWVX.js} +1 -1
  30. package/dist/chunk-UAKYDVT3.js +565 -0
  31. package/dist/{chunk-KWFY7L7X.js → chunk-UPQPUJOU.js} +36 -123
  32. package/dist/{chunk-2FHNY52R.js → chunk-UW5232GG.js} +65 -19
  33. package/dist/chunk-WSBYWVTZ.js +717 -0
  34. package/dist/{chunk-422J3QRW.js → chunk-XJFYAXET.js} +9 -8
  35. package/dist/{chunk-OTEUP2SG.js → chunk-XNKSSE32.js} +1 -1
  36. package/dist/{chunk-4OFH4BNX.js → chunk-Y322OTCH.js} +1 -1
  37. package/dist/{client-Cw1pB5sv.d.ts → client-B-hbHX30.d.ts} +109 -40
  38. package/dist/{deployments-DI-W7fBq.d.ts → deployments-M4OHn7G3.d.ts} +407 -18
  39. package/dist/identity-integration-3mX6b5iH.d.ts +1241 -0
  40. package/dist/index.d.ts +13 -11
  41. package/dist/index.js +14 -11
  42. package/dist/internal.d.ts +14 -12
  43. package/dist/internal.js +26 -14
  44. package/dist/{offers-CqXfMIxq.d.ts → offers-DhAtss4_.d.ts} +21 -4
  45. package/dist/pages-B8q8Y_dQ.d.ts +715 -0
  46. package/dist/{participant-activity-DHL8QYks.d.ts → participant-activity-D-Drp24G.d.ts} +16 -3
  47. package/dist/portal-proxy.d.ts +59 -2
  48. package/dist/portal-proxy.js +109 -23
  49. package/dist/react/index.d.ts +211 -27
  50. package/dist/react/index.js +286 -29
  51. package/dist/{action-DBzILFx9.d.ts → request-error-D_dUPLwo.d.ts} +1 -31
  52. package/dist/runtime/authoring.js +1 -1
  53. package/dist/runtime/chunks/Y4OAVXFR.js +1 -0
  54. package/dist/runtime/manifest.json +3 -3
  55. package/dist/runtime/schema.js +1 -1
  56. package/dist/schema.d.ts +154 -30
  57. package/dist/schema.js +128 -75
  58. package/dist/server/index.d.ts +14 -12
  59. package/dist/server/index.js +2189 -1631
  60. package/dist/sign-in-providers-BkjcDsFF.d.ts +39 -0
  61. package/dist/submission-input-DHGKhXfp.d.ts +342 -0
  62. package/dist/{telegram-browser-CTJh4Ro_.d.ts → telegram-browser-BCE7zdOb.d.ts} +49 -6
  63. package/dist/telegram.d.ts +64 -0
  64. package/dist/telegram.js +23 -0
  65. package/dist/testing.d.ts +112 -15
  66. package/dist/testing.js +321 -16
  67. package/dist/tracker-data-Hb1uQnk5.d.ts +1855 -0
  68. package/dist/{transport-B8Ss5lcz.d.ts → transport-DkhX2Cbs.d.ts} +5863 -2217
  69. package/dist/{wallet-DZWL7lJH.d.ts → wallet-DTO7SXj7.d.ts} +27 -7
  70. package/package.json +5 -1
  71. package/dist/accounts-DoabriBX.d.ts +0 -306
  72. package/dist/capability-error-DufwG3G0.d.ts +0 -159
  73. package/dist/chunk-MJEJQH5A.js +0 -962
  74. package/dist/chunk-N7YOS4ZU.js +0 -13
  75. package/dist/chunk-XQKUJL7H.js +0 -602
  76. package/dist/chunk-YNW2ZUUP.js +0 -247
  77. package/dist/groups-9Jm3peq3.d.ts +0 -2827
  78. package/dist/runtime/chunks/ADUMK6CR.js +0 -1
  79. package/dist/submission-input-D9EGH_yb.d.ts +0 -146
  80. package/dist/x-KFJD2x8y.d.ts +0 -331
@@ -1,236 +1,6 @@
1
+ import { S as SolanaIdlSource } from './wallet-DTO7SXj7.js';
2
+ import { b as AttemptStatus, V as AttemptCodeSource, W as IntegrationModuleProvider, X as RewardType, Y as questDescriptionSchema } from './accounts-CCqCKCVx.js';
1
3
  import * as z from 'zod';
2
- import { a as AttemptStatus, aq as questDescriptionSchema, o as TrackerSkipCode } from './schema-CwbRkmlr.js';
3
- import { af as SolanaIdlSource } from './wallet-DZWL7lJH.js';
4
-
5
- /**
6
- * The delivery actions this SDK knows. `RewardDelivery.action` is an open string: Relay can add
7
- * actions, and a delivery keeps one this SDK does not list. Show such a delivery by its status.
8
- */
9
- declare const RewardDeliveryAction: {
10
- /** Delivers a quest's Discord role reward. */
11
- readonly GrantRole: "grant-role";
12
- /**
13
- * Posts a quest's announcement in a Telegram chat or Discord channel. Its `provider` is
14
- * `telegram` or `discord`, and its `roleId` is empty.
15
- */
16
- readonly PostMessage: "post-message";
17
- };
18
- /** A known action, or one a newer Relay sends. */
19
- type RewardDeliveryAction = (typeof RewardDeliveryAction)[keyof typeof RewardDeliveryAction] | (string & {});
20
- declare const roleReconciliationSchema: z.ZodObject<{
21
- status: z.ZodEnum<{
22
- pending: "pending";
23
- removed: "removed";
24
- failed: "failed";
25
- preserved: "preserved";
26
- granted: "granted";
27
- }>;
28
- ownership: z.ZodEnum<{
29
- external: "external";
30
- unclaimed: "unclaimed";
31
- relay: "relay";
32
- }>;
33
- at: z.ZodNumber;
34
- reason: z.ZodNullable<z.ZodString>;
35
- }, z.core.$strip>;
36
- declare const knownRewardDeliverySchema: z.ZodObject<{
37
- id: z.ZodString;
38
- quest: z.ZodString;
39
- completion: z.ZodString;
40
- member: z.ZodString;
41
- provider: z.ZodLiteral<"discord">;
42
- action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
43
- roleId: z.ZodString;
44
- status: z.ZodEnum<{
45
- pending: "pending";
46
- failed: "failed";
47
- delivered: "delivered";
48
- }>;
49
- attempts: z.ZodNumber;
50
- nextAt: z.ZodNumber;
51
- lastError: z.ZodNullable<z.ZodString>;
52
- createdAt: z.ZodNumber;
53
- deliveredAt: z.ZodNullable<z.ZodNumber>;
54
- dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
- revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
- reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
- status: z.ZodEnum<{
58
- pending: "pending";
59
- removed: "removed";
60
- failed: "failed";
61
- preserved: "preserved";
62
- granted: "granted";
63
- }>;
64
- ownership: z.ZodEnum<{
65
- external: "external";
66
- unclaimed: "unclaimed";
67
- relay: "relay";
68
- }>;
69
- at: z.ZodNumber;
70
- reason: z.ZodNullable<z.ZodString>;
71
- }, z.core.$strip>>>;
72
- }, z.core.$strip>;
73
- declare const rewardDeliverySchema: z.ZodUnion<readonly [z.ZodObject<{
74
- id: z.ZodString;
75
- quest: z.ZodString;
76
- completion: z.ZodString;
77
- member: z.ZodString;
78
- provider: z.ZodLiteral<"discord">;
79
- action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
80
- roleId: z.ZodString;
81
- status: z.ZodEnum<{
82
- pending: "pending";
83
- failed: "failed";
84
- delivered: "delivered";
85
- }>;
86
- attempts: z.ZodNumber;
87
- nextAt: z.ZodNumber;
88
- lastError: z.ZodNullable<z.ZodString>;
89
- createdAt: z.ZodNumber;
90
- deliveredAt: z.ZodNullable<z.ZodNumber>;
91
- dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
92
- revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
93
- reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
94
- status: z.ZodEnum<{
95
- pending: "pending";
96
- removed: "removed";
97
- failed: "failed";
98
- preserved: "preserved";
99
- granted: "granted";
100
- }>;
101
- ownership: z.ZodEnum<{
102
- external: "external";
103
- unclaimed: "unclaimed";
104
- relay: "relay";
105
- }>;
106
- at: z.ZodNumber;
107
- reason: z.ZodNullable<z.ZodString>;
108
- }, z.core.$strip>>>;
109
- }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>, z.ZodObject<{
110
- id: z.ZodString;
111
- quest: z.ZodString;
112
- completion: z.ZodString;
113
- member: z.ZodString;
114
- action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
115
- attempts: z.ZodNumber;
116
- nextAt: z.ZodNumber;
117
- lastError: z.ZodNullable<z.ZodString>;
118
- createdAt: z.ZodNumber;
119
- deliveredAt: z.ZodNullable<z.ZodNumber>;
120
- dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
121
- revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
122
- provider: z.ZodString;
123
- status: z.ZodString;
124
- roleId: z.ZodOptional<z.ZodString>;
125
- reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
126
- status: z.ZodString;
127
- ownership: z.ZodString;
128
- at: z.ZodNumber;
129
- reason: z.ZodNullable<z.ZodString>;
130
- }, z.core.$catchall<z.ZodJSONSchema>>>>;
131
- }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>]>;
132
- /**
133
- * One page of reward deliveries, newest first. Pass `nextCursor` back as `cursor` for older ones;
134
- * it is null on the last page.
135
- */
136
- declare const rewardDeliveriesSchema: z.ZodObject<{
137
- deliveries: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
138
- id: z.ZodString;
139
- quest: z.ZodString;
140
- completion: z.ZodString;
141
- member: z.ZodString;
142
- provider: z.ZodLiteral<"discord">;
143
- action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
144
- roleId: z.ZodString;
145
- status: z.ZodEnum<{
146
- pending: "pending";
147
- failed: "failed";
148
- delivered: "delivered";
149
- }>;
150
- attempts: z.ZodNumber;
151
- nextAt: z.ZodNumber;
152
- lastError: z.ZodNullable<z.ZodString>;
153
- createdAt: z.ZodNumber;
154
- deliveredAt: z.ZodNullable<z.ZodNumber>;
155
- dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
156
- revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
157
- reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
158
- status: z.ZodEnum<{
159
- pending: "pending";
160
- removed: "removed";
161
- failed: "failed";
162
- preserved: "preserved";
163
- granted: "granted";
164
- }>;
165
- ownership: z.ZodEnum<{
166
- external: "external";
167
- unclaimed: "unclaimed";
168
- relay: "relay";
169
- }>;
170
- at: z.ZodNumber;
171
- reason: z.ZodNullable<z.ZodString>;
172
- }, z.core.$strip>>>;
173
- }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>, z.ZodObject<{
174
- id: z.ZodString;
175
- quest: z.ZodString;
176
- completion: z.ZodString;
177
- member: z.ZodString;
178
- action: z.ZodType<RewardDeliveryAction, unknown, z.core.$ZodTypeInternals<RewardDeliveryAction, unknown>>;
179
- attempts: z.ZodNumber;
180
- nextAt: z.ZodNumber;
181
- lastError: z.ZodNullable<z.ZodString>;
182
- createdAt: z.ZodNumber;
183
- deliveredAt: z.ZodNullable<z.ZodNumber>;
184
- dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
185
- revokedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
186
- provider: z.ZodString;
187
- status: z.ZodString;
188
- roleId: z.ZodOptional<z.ZodString>;
189
- reconciliation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
190
- status: z.ZodString;
191
- ownership: z.ZodString;
192
- at: z.ZodNumber;
193
- reason: z.ZodNullable<z.ZodString>;
194
- }, z.core.$catchall<z.ZodJSONSchema>>>>;
195
- }, z.core.$catchall<z.ZodOptional<z.ZodJSONSchema>>>]>>;
196
- nextCursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
197
- }, z.core.$strip>;
198
- /**
199
- * Which page of reward deliveries to read: a page's `nextCursor` as `cursor`, and `limit`, 1 to
200
- * 500 deliveries a page, 500 by default.
201
- */
202
- declare const rewardDeliveryQuerySchema: z.ZodObject<{
203
- cursor: z.ZodOptional<z.ZodString>;
204
- limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
205
- }, z.core.$strict>;
206
- type RewardDeliveryQuery = z.input<typeof rewardDeliveryQuerySchema>;
207
- type RewardDelivery = z.infer<typeof rewardDeliverySchema>;
208
- /**
209
- * A Discord role the project's reward deliveries grant, with every delivery of it counted, however
210
- * old. `quests` names the quests whose completions requested it.
211
- */
212
- declare const discordRoleRewardSchema: z.ZodObject<{
213
- roleId: z.ZodString;
214
- quests: z.ZodArray<z.ZodString>;
215
- deliveries: z.ZodObject<{
216
- pending: z.ZodNumber;
217
- delivered: z.ZodNumber;
218
- failed: z.ZodNumber;
219
- }, z.core.$strip>;
220
- }, z.core.$strip>;
221
- /** Every Discord role the project's reward deliveries grant, in this environment, by role ID. */
222
- declare const discordRoleRewardsSchema: z.ZodObject<{
223
- roles: z.ZodArray<z.ZodObject<{
224
- roleId: z.ZodString;
225
- quests: z.ZodArray<z.ZodString>;
226
- deliveries: z.ZodObject<{
227
- pending: z.ZodNumber;
228
- delivered: z.ZodNumber;
229
- failed: z.ZodNumber;
230
- }, z.core.$strip>;
231
- }, z.core.$strip>>;
232
- }, z.core.$strip>;
233
- type DiscordRoleReward = z.infer<typeof discordRoleRewardSchema>;
234
4
 
235
5
  declare const interactionSchema: z.ZodEnum<{
236
6
  url: "url";
@@ -313,6 +83,7 @@ declare const questTypeVersionSchema: z.ZodObject<{
313
83
  discord: "discord";
314
84
  x: "x";
315
85
  }>>>;
86
+ integrationModules: z.ZodOptional<z.ZodArray<z.ZodType<IntegrationModuleProvider, unknown, z.core.$ZodTypeInternals<IntegrationModuleProvider, unknown>>>>;
316
87
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
317
88
  kind: z.ZodLiteral<"point-ledger">;
318
89
  default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
@@ -650,6 +421,7 @@ declare const questTypeVersionSchema: z.ZodObject<{
650
421
  kind: z.ZodLiteral<"once">;
651
422
  }, z.core.$strict>, z.ZodObject<{
652
423
  kind: z.ZodLiteral<"keyed">;
424
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
653
425
  }, z.core.$strict>], "kind">;
654
426
  }, z.core.$strict>;
655
427
  provider: z.ZodEnum<{
@@ -661,6 +433,10 @@ declare const questTypeVersionSchema: z.ZodObject<{
661
433
  }>;
662
434
  createdAt: z.ZodNumber;
663
435
  }, z.core.$strip>;
436
+ /**
437
+ * A collection as a response carries it. Not strict, so a field a newer server adds is ignored
438
+ * (docs/releases.md#response-evolution); the authoring inputs below are strict.
439
+ */
664
440
  declare const collectionSlotSchema: z.ZodObject<{
665
441
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
666
442
  id: z.ZodString;
@@ -669,7 +445,7 @@ declare const collectionSlotSchema: z.ZodObject<{
669
445
  description: z.ZodOptional<z.ZodString>;
670
446
  image: z.ZodOptional<z.ZodString>;
671
447
  imageAlt: z.ZodOptional<z.ZodString>;
672
- }, z.core.$strict>;
448
+ }, z.core.$strip>;
673
449
  declare const collectionSlotDeclarationSchema: z.ZodObject<{
674
450
  description: z.ZodOptional<z.ZodString>;
675
451
  image: z.ZodOptional<z.ZodString>;
@@ -677,6 +453,7 @@ declare const collectionSlotDeclarationSchema: z.ZodObject<{
677
453
  imageAlt: z.ZodOptional<z.ZodString>;
678
454
  key: z.ZodString;
679
455
  }, z.core.$strict>;
456
+ /** A collection and its quests as a response carries it; not strict, like `collectionSlotSchema`. */
680
457
  declare const questCollectionSchema: z.ZodObject<{
681
458
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
682
459
  id: z.ZodString;
@@ -686,7 +463,7 @@ declare const questCollectionSchema: z.ZodObject<{
686
463
  image: z.ZodOptional<z.ZodString>;
687
464
  imageAlt: z.ZodOptional<z.ZodString>;
688
465
  quests: z.ZodArray<z.ZodString>;
689
- }, z.core.$strict>;
466
+ }, z.core.$strip>;
690
467
  declare const questInstanceSchema: z.ZodObject<{
691
468
  badges: z.ZodOptional<z.ZodArray<z.ZodString>>;
692
469
  id: z.ZodString;
@@ -1094,6 +871,7 @@ declare const questCatalogSchema: z.ZodObject<{
1094
871
  discord: "discord";
1095
872
  x: "x";
1096
873
  }>>>;
874
+ integrationModules: z.ZodOptional<z.ZodArray<z.ZodType<IntegrationModuleProvider, unknown, z.core.$ZodTypeInternals<IntegrationModuleProvider, unknown>>>>;
1097
875
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1098
876
  kind: z.ZodLiteral<"point-ledger">;
1099
877
  default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
@@ -1431,6 +1209,7 @@ declare const questCatalogSchema: z.ZodObject<{
1431
1209
  kind: z.ZodLiteral<"once">;
1432
1210
  }, z.core.$strict>, z.ZodObject<{
1433
1211
  kind: z.ZodLiteral<"keyed">;
1212
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
1434
1213
  }, z.core.$strict>], "kind">;
1435
1214
  }, z.core.$strict>;
1436
1215
  provider: z.ZodEnum<{
@@ -1451,7 +1230,7 @@ declare const questCatalogSchema: z.ZodObject<{
1451
1230
  image: z.ZodOptional<z.ZodString>;
1452
1231
  imageAlt: z.ZodOptional<z.ZodString>;
1453
1232
  quests: z.ZodArray<z.ZodString>;
1454
- }, z.core.$strict>>;
1233
+ }, z.core.$strip>>;
1455
1234
  quests: z.ZodArray<z.ZodObject<{
1456
1235
  badges: z.ZodOptional<z.ZodArray<z.ZodString>>;
1457
1236
  id: z.ZodString;
@@ -1762,6 +1541,7 @@ declare const questCatalogSchema: z.ZodObject<{
1762
1541
  discord: "discord";
1763
1542
  x: "x";
1764
1543
  }>>>;
1544
+ integrationModules: z.ZodOptional<z.ZodArray<z.ZodType<IntegrationModuleProvider, unknown, z.core.$ZodTypeInternals<IntegrationModuleProvider, unknown>>>>;
1765
1545
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1766
1546
  kind: z.ZodLiteral<"point-ledger">;
1767
1547
  default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
@@ -2099,7 +1879,12 @@ declare const questCatalogSchema: z.ZodObject<{
2099
1879
  kind: z.ZodLiteral<"once">;
2100
1880
  }, z.core.$strict>, z.ZodObject<{
2101
1881
  kind: z.ZodLiteral<"keyed">;
1882
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
2102
1883
  }, z.core.$strict>], "kind">;
1884
+ rewardEntries: z.ZodOptional<z.ZodArray<z.ZodObject<{
1885
+ type: z.ZodType<RewardType, unknown, z.core.$ZodTypeInternals<RewardType, unknown>>;
1886
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1887
+ }, z.core.$strip>>>;
2103
1888
  key: z.ZodOptional<z.ZodString>;
2104
1889
  code: z.ZodString;
2105
1890
  runtime: z.ZodOptional<z.ZodObject<{
@@ -2314,6 +2099,7 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
2314
2099
  discord: "discord";
2315
2100
  x: "x";
2316
2101
  }>>>;
2102
+ integrationModules: z.ZodOptional<z.ZodArray<z.ZodType<IntegrationModuleProvider, unknown, z.core.$ZodTypeInternals<IntegrationModuleProvider, unknown>>>>;
2317
2103
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2318
2104
  kind: z.ZodLiteral<"point-ledger">;
2319
2105
  default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
@@ -2651,6 +2437,7 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
2651
2437
  kind: z.ZodLiteral<"once">;
2652
2438
  }, z.core.$strict>, z.ZodObject<{
2653
2439
  kind: z.ZodLiteral<"keyed">;
2440
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
2654
2441
  }, z.core.$strict>], "kind">;
2655
2442
  }, z.core.$strict>;
2656
2443
  provider: z.ZodEnum<{
@@ -2670,7 +2457,7 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
2670
2457
  description: z.ZodOptional<z.ZodString>;
2671
2458
  image: z.ZodOptional<z.ZodString>;
2672
2459
  imageAlt: z.ZodOptional<z.ZodString>;
2673
- }, z.core.$strict>>;
2460
+ }, z.core.$strip>>;
2674
2461
  supportedInteractions: z.ZodArray<z.ZodEnum<{
2675
2462
  url: "url";
2676
2463
  text: "text";
@@ -3068,6 +2855,7 @@ declare const questViewSchema: z.ZodObject<{
3068
2855
  kind: z.ZodLiteral<"once">;
3069
2856
  }, z.core.$strict>, z.ZodObject<{
3070
2857
  kind: z.ZodLiteral<"keyed">;
2858
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
3071
2859
  }, z.core.$strict>], "kind">>;
3072
2860
  streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3073
2861
  goal: z.ZodNumber;
@@ -3269,6 +3057,7 @@ declare const questViewSchema: z.ZodObject<{
3269
3057
  deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3270
3058
  nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3271
3059
  code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3060
+ codeSource: z.ZodOptional<z.ZodNullable<z.ZodType<AttemptCodeSource, unknown, z.core.$ZodTypeInternals<AttemptCodeSource, unknown>>>>;
3272
3061
  progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3273
3062
  current: z.ZodNumber;
3274
3063
  target: z.ZodNumber;
@@ -3588,6 +3377,7 @@ declare const collectionViewSchema: z.ZodObject<{
3588
3377
  kind: z.ZodLiteral<"once">;
3589
3378
  }, z.core.$strict>, z.ZodObject<{
3590
3379
  kind: z.ZodLiteral<"keyed">;
3380
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
3591
3381
  }, z.core.$strict>], "kind">>;
3592
3382
  streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3593
3383
  goal: z.ZodNumber;
@@ -3789,6 +3579,7 @@ declare const collectionViewSchema: z.ZodObject<{
3789
3579
  deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3790
3580
  nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3791
3581
  code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3582
+ codeSource: z.ZodOptional<z.ZodNullable<z.ZodType<AttemptCodeSource, unknown, z.core.$ZodTypeInternals<AttemptCodeSource, unknown>>>>;
3792
3583
  progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3793
3584
  current: z.ZodNumber;
3794
3585
  target: z.ZodNumber;
@@ -4282,6 +4073,7 @@ declare const questExperienceSchema: z.ZodObject<{
4282
4073
  kind: z.ZodLiteral<"once">;
4283
4074
  }, z.core.$strict>, z.ZodObject<{
4284
4075
  kind: z.ZodLiteral<"keyed">;
4076
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
4285
4077
  }, z.core.$strict>], "kind">>;
4286
4078
  streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4287
4079
  goal: z.ZodNumber;
@@ -4483,6 +4275,7 @@ declare const questExperienceSchema: z.ZodObject<{
4483
4275
  deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4484
4276
  nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4485
4277
  code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4278
+ codeSource: z.ZodOptional<z.ZodNullable<z.ZodType<AttemptCodeSource, unknown, z.core.$ZodTypeInternals<AttemptCodeSource, unknown>>>>;
4486
4279
  progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4487
4280
  current: z.ZodNumber;
4488
4281
  target: z.ZodNumber;
@@ -4802,6 +4595,7 @@ declare const questExperienceSchema: z.ZodObject<{
4802
4595
  kind: z.ZodLiteral<"once">;
4803
4596
  }, z.core.$strict>, z.ZodObject<{
4804
4597
  kind: z.ZodLiteral<"keyed">;
4598
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
4805
4599
  }, z.core.$strict>], "kind">>;
4806
4600
  streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4807
4601
  goal: z.ZodNumber;
@@ -5003,6 +4797,7 @@ declare const questExperienceSchema: z.ZodObject<{
5003
4797
  deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5004
4798
  nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5005
4799
  code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4800
+ codeSource: z.ZodOptional<z.ZodNullable<z.ZodType<AttemptCodeSource, unknown, z.core.$ZodTypeInternals<AttemptCodeSource, unknown>>>>;
5006
4801
  progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
5007
4802
  current: z.ZodNumber;
5008
4803
  target: z.ZodNumber;
@@ -5306,6 +5101,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
5306
5101
  discord: "discord";
5307
5102
  x: "x";
5308
5103
  }>>>;
5104
+ integrationModules: z.ZodOptional<z.ZodArray<z.ZodType<IntegrationModuleProvider, unknown, z.core.$ZodTypeInternals<IntegrationModuleProvider, unknown>>>>;
5309
5105
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
5310
5106
  kind: z.ZodLiteral<"point-ledger">;
5311
5107
  default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
@@ -5643,7 +5439,12 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
5643
5439
  kind: z.ZodLiteral<"once">;
5644
5440
  }, z.core.$strict>, z.ZodObject<{
5645
5441
  kind: z.ZodLiteral<"keyed">;
5442
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
5646
5443
  }, z.core.$strict>], "kind">;
5444
+ rewardEntries: z.ZodOptional<z.ZodArray<z.ZodObject<{
5445
+ type: z.ZodType<RewardType, unknown, z.core.$ZodTypeInternals<RewardType, unknown>>;
5446
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
5447
+ }, z.core.$strip>>>;
5647
5448
  key: z.ZodOptional<z.ZodString>;
5648
5449
  code: z.ZodString;
5649
5450
  runtime: z.ZodOptional<z.ZodObject<{
@@ -5761,7 +5562,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
5761
5562
  image: z.ZodOptional<z.ZodString>;
5762
5563
  imageAlt: z.ZodOptional<z.ZodString>;
5763
5564
  quests: z.ZodArray<z.ZodString>;
5764
- }, z.core.$strict>>;
5565
+ }, z.core.$strip>>;
5765
5566
  }, z.core.$strip>;
5766
5567
  declare const allocateQuestSchema: z.ZodObject<{
5767
5568
  actionId: z.ZodString;
@@ -5770,327 +5571,4 @@ declare const allocatedQuestSchema: z.ZodObject<{
5770
5571
  id: z.ZodString;
5771
5572
  }, z.core.$strip>;
5772
5573
 
5773
- declare const responseFormat: unique symbol;
5774
- /** A schema whose output explicitly represents unsupported server variants. */
5775
- type ResponseSchema<T> = z.ZodType<T> & {
5776
- readonly [responseFormat]: true;
5777
- };
5778
- /**
5779
- * A separate reader for a known wire shape. Input schemas are never mutated. Object fields
5780
- * are stripped at every depth; collection quotas do not constrain a server response.
5781
- * Child shapes convert on first parse or schema introspection, sharing each converted node.
5782
- */
5783
- declare function responseShape<S extends z.core.$ZodType>(schema: S): S;
5784
- /** The original wire entity. No action is inferred from its unknown variant. */
5785
- type UnsupportedResponse = {
5786
- kind: "unsupported";
5787
- raw: z.infer<ReturnType<typeof z.json>>;
5788
- };
5789
- /** @compat output */
5790
- type ResponseResult<T> = {
5791
- kind: "supported";
5792
- value: T;
5793
- } | UnsupportedResponse;
5794
- /**
5795
- * Opt-in response contract for a complete entity or operation. A new variant keeps the whole
5796
- * raw entity; semantic arrays such as requirements and rewards remain atomic.
5797
- */
5798
- declare function responseSchema<T>(schema: z.ZodType<T>): ResponseSchema<ResponseResult<T>>;
5799
- /** An entity list is complete only when `unsupportedCount` is zero. Item order is retained. */
5800
- declare function responseListSchema<T>(schema: z.ZodType<T>): ResponseSchema<{
5801
- items: ResponseResult<T>[];
5802
- unsupportedCount: number;
5803
- }>;
5804
-
5805
- /** The creator-account providers this SDK knows. A later Relay may list others. */
5806
- declare const knownCreatorAccountProviders: readonly ["youtube", "tiktok"];
5807
- /** A creator-account provider: one of `knownCreatorAccountProviders`, or one a later Relay adds. */
5808
- type CreatorAccountProvider = (typeof knownCreatorAccountProviders)[number] | (string & {});
5809
- declare const creatorAccountProviderSchema: z.ZodCustom<CreatorAccountProvider, CreatorAccountProvider>;
5810
- /**
5811
- * A member's account on one creator platform, as `AccountConnection` describes sign-in accounts.
5812
- * `subject` is the platform's stable account ID (a YouTube channel ID, `UC…`, or a TikTok
5813
- * `open_id`); `profile` is the
5814
- * public name, handle and picture the platform reported when the member linked it. `reconnect`
5815
- * means Relay can no longer read the account and the member must link it again.
5816
- *
5817
- * @compat output
5818
- */
5819
- declare const creatorAccountSchema: z.ZodObject<{
5820
- provider: z.ZodCustom<CreatorAccountProvider, CreatorAccountProvider>;
5821
- configured: z.ZodBoolean;
5822
- status: z.ZodEnum<{
5823
- disconnected: "disconnected";
5824
- connected: "connected";
5825
- reconnect: "reconnect";
5826
- }>;
5827
- subject: z.ZodNullable<z.ZodString>;
5828
- revision: z.ZodNumber;
5829
- profile: z.ZodNullable<z.ZodObject<{
5830
- name: z.ZodOptional<z.ZodString>;
5831
- username: z.ZodOptional<z.ZodString>;
5832
- imageUrl: z.ZodOptional<z.ZodString>;
5833
- }, z.core.$strip>>;
5834
- }, z.core.$strip>;
5835
- type CreatorAccount = z.infer<typeof creatorAccountSchema>;
5836
- /**
5837
- * The member's creator accounts: one per provider the platform configured.
5838
- *
5839
- * @compat output
5840
- */
5841
- declare const creatorAccountsSchema: z.ZodObject<{
5842
- accounts: z.ZodArray<z.ZodObject<{
5843
- provider: z.ZodCustom<CreatorAccountProvider, CreatorAccountProvider>;
5844
- configured: z.ZodBoolean;
5845
- status: z.ZodEnum<{
5846
- disconnected: "disconnected";
5847
- connected: "connected";
5848
- reconnect: "reconnect";
5849
- }>;
5850
- subject: z.ZodNullable<z.ZodString>;
5851
- revision: z.ZodNumber;
5852
- profile: z.ZodNullable<z.ZodObject<{
5853
- name: z.ZodOptional<z.ZodString>;
5854
- username: z.ZodOptional<z.ZodString>;
5855
- imageUrl: z.ZodOptional<z.ZodString>;
5856
- }, z.core.$strip>>;
5857
- }, z.core.$strip>>;
5858
- }, z.core.$strip>;
5859
- type CreatorAccounts = z.infer<typeof creatorAccountsSchema>;
5860
-
5861
- declare const contentQualificationDecisionSchema: z.ZodObject<{
5862
- kind: z.ZodEnum<{
5863
- accept: "accept";
5864
- reject: "reject";
5865
- review: "review";
5866
- defer: "defer";
5867
- progress: "progress";
5868
- superseded: "superseded";
5869
- }>;
5870
- reason: z.ZodNullable<z.ZodString>;
5871
- }, z.core.$strict>;
5872
- declare const contentQualificationQuerySchema: z.ZodObject<{
5873
- quest: z.ZodString;
5874
- member: z.ZodOptional<z.ZodString>;
5875
- content: z.ZodOptional<z.ZodString>;
5876
- cursor: z.ZodOptional<z.ZodString>;
5877
- }, z.core.$strict>;
5878
- declare const contentQualificationSchema: z.ZodObject<{
5879
- quest: z.ZodString;
5880
- content: z.ZodString;
5881
- member: z.ZodString;
5882
- release: z.ZodString;
5883
- attempt: z.ZodString;
5884
- revision: z.ZodString;
5885
- observation: z.ZodString;
5886
- current: z.ZodBoolean;
5887
- state: z.ZodEnum<{
5888
- pending: "pending";
5889
- superseded: "superseded";
5890
- qualified: "qualified";
5891
- unqualified: "unqualified";
5892
- "needs-review": "needs-review";
5893
- failed: "failed";
5894
- stale: "stale";
5895
- blocked: "blocked";
5896
- unavailable: "unavailable";
5897
- }>;
5898
- reason: z.ZodNullable<z.ZodString>;
5899
- reward: z.ZodObject<{
5900
- attempt: z.ZodNullable<z.ZodString>;
5901
- completion: z.ZodNullable<z.ZodString>;
5902
- state: z.ZodEnum<{
5903
- awarded: "awarded";
5904
- excluded: "excluded";
5905
- unresolved: "unresolved";
5906
- }>;
5907
- }, z.core.$strict>;
5908
- }, z.core.$strict>;
5909
- declare const contentQualificationPageSchema: z.ZodObject<{
5910
- items: z.ZodArray<z.ZodObject<{
5911
- quest: z.ZodString;
5912
- content: z.ZodString;
5913
- member: z.ZodString;
5914
- release: z.ZodString;
5915
- attempt: z.ZodString;
5916
- revision: z.ZodString;
5917
- observation: z.ZodString;
5918
- current: z.ZodBoolean;
5919
- state: z.ZodEnum<{
5920
- pending: "pending";
5921
- superseded: "superseded";
5922
- qualified: "qualified";
5923
- unqualified: "unqualified";
5924
- "needs-review": "needs-review";
5925
- failed: "failed";
5926
- stale: "stale";
5927
- blocked: "blocked";
5928
- unavailable: "unavailable";
5929
- }>;
5930
- reason: z.ZodNullable<z.ZodString>;
5931
- reward: z.ZodObject<{
5932
- attempt: z.ZodNullable<z.ZodString>;
5933
- completion: z.ZodNullable<z.ZodString>;
5934
- state: z.ZodEnum<{
5935
- awarded: "awarded";
5936
- excluded: "excluded";
5937
- unresolved: "unresolved";
5938
- }>;
5939
- }, z.core.$strict>;
5940
- }, z.core.$strict>>;
5941
- nextCursor: z.ZodNullable<z.ZodString>;
5942
- }, z.core.$strict>;
5943
- /** A content metric's name, as its source declares it, such as `likes`. */
5944
- declare const contentMetricSchema: z.ZodString;
5945
- type ContentMetric = z.infer<typeof contentMetricSchema>;
5946
- /** Measured counters by metric name. A metric a sample leaves out is unknown, never zero. */
5947
- declare const contentMetricsSchema: z.ZodRecord<z.ZodString, z.ZodNumber>;
5948
- /** Which declared metrics a content quest's performance stage reads, and how fresh they must be. */
5949
- declare const contentPerformancePolicySchema: z.ZodObject<{
5950
- metrics: z.ZodArray<z.ZodString>;
5951
- maxAgeMs: z.ZodDefault<z.ZodNumber>;
5952
- }, z.core.$strict>;
5953
- type ContentPerformancePolicy = z.infer<typeof contentPerformancePolicySchema>;
5954
-
5955
- /** `relay.quests.enroll()`: the signed-in member enrolls in a quest that requires enrollment. */
5956
- declare const questEnrollmentInputSchema: z.ZodObject<{
5957
- actionId: z.ZodString;
5958
- quest: z.ZodString;
5959
- }, z.core.$strict>;
5960
- type QuestEnrollmentInput = z.input<typeof questEnrollmentInputSchema>;
5961
- /** `management.quests.enroll()`: a server enrolls a member, vouching for their consent. */
5962
- declare const memberEnrollmentInputSchema: z.ZodObject<{
5963
- actionId: z.ZodString;
5964
- quest: z.ZodString;
5965
- member: z.ZodString;
5966
- }, z.core.$strict>;
5967
- type MemberEnrollmentInput = z.input<typeof memberEnrollmentInputSchema>;
5968
- /**
5969
- * A member's active enrollment in a quest. Enrolling again changes nothing; an operator can
5970
- * withdraw it, after which enrollment starts a new consent period.
5971
- */
5972
- declare const questEnrollmentSchema: z.ZodObject<{
5973
- quest: z.ZodString;
5974
- member: z.ZodString;
5975
- enrolledAt: z.ZodNumber;
5976
- }, z.core.$strip>;
5977
- type QuestEnrollment = z.infer<typeof questEnrollmentSchema>;
5978
- /**
5979
- * `relay.quests.claim()`: the signed-in member claims one of their outcomes skipped as
5980
- * `historical`, on a quest whose historical policy is `"claim"`. Relay decides it again under the
5981
- * quest's current release with historical activity released; any other rule can still skip it.
5982
- */
5983
- declare const questClaimInputSchema: z.ZodObject<{
5984
- actionId: z.ZodString;
5985
- quest: z.ZodString;
5986
- tracker: z.ZodString;
5987
- record: z.ZodString;
5988
- observedAt: z.ZodNumber;
5989
- }, z.core.$strict>;
5990
- type QuestClaimInput = z.input<typeof questClaimInputSchema>;
5991
- /**
5992
- * The outcome states this SDK knows: an automatic decision `admitted` an attempt or was `skipped`.
5993
- */
5994
- declare const QuestOutcomeState: {
5995
- readonly Admitted: "admitted";
5996
- readonly Skipped: "skipped";
5997
- };
5998
- type QuestOutcomeState = (typeof QuestOutcomeState)[keyof typeof QuestOutcomeState];
5999
- /**
6000
- * One automatic decision about the signed-in member's activity: a quest admitted an attempt for a
6001
- * tracker record observation, or skipped it with a stable code. Only decisions Relay attributed to
6002
- * the member are theirs to read; a record no member has linked yet names nobody.
6003
- */
6004
- declare const questOutcomeSchema: z.ZodObject<{
6005
- automatic: z.ZodOptional<z.ZodString>;
6006
- quest: z.ZodString;
6007
- tracker: z.ZodNullable<z.ZodString>;
6008
- record: z.ZodNullable<z.ZodString>;
6009
- observedAt: z.ZodNullable<z.ZodNumber>;
6010
- state: z.ZodEnum<{
6011
- admitted: "admitted";
6012
- skipped: "skipped";
6013
- }>;
6014
- code: z.ZodType<TrackerSkipCode | null>;
6015
- reason: z.ZodNullable<z.ZodString>;
6016
- window: z.ZodOptional<z.ZodEnum<{
6017
- quest: "quest";
6018
- tracker: "tracker";
6019
- }>>;
6020
- attempt: z.ZodNullable<z.ZodString>;
6021
- claimable: z.ZodBoolean;
6022
- createdAt: z.ZodNumber;
6023
- updatedAt: z.ZodNumber;
6024
- }, z.core.$strip>;
6025
- type QuestOutcome = z.infer<typeof questOutcomeSchema>;
6026
- /** `relay.quests.outcomes()`: newest first, optionally one quest, state or code. */
6027
- declare const questOutcomeQuerySchema: z.ZodObject<{
6028
- quest: z.ZodOptional<z.ZodString>;
6029
- state: z.ZodOptional<z.ZodEnum<{
6030
- admitted: "admitted";
6031
- skipped: "skipped";
6032
- }>>;
6033
- code: z.ZodOptional<z.ZodString>;
6034
- cursor: z.ZodOptional<z.ZodString>;
6035
- }, z.core.$strict>;
6036
- type QuestOutcomeQuery = z.input<typeof questOutcomeQuerySchema>;
6037
- declare const questOutcomePageSchema: z.ZodObject<{
6038
- items: z.ZodArray<z.ZodObject<{
6039
- automatic: z.ZodOptional<z.ZodString>;
6040
- quest: z.ZodString;
6041
- tracker: z.ZodNullable<z.ZodString>;
6042
- record: z.ZodNullable<z.ZodString>;
6043
- observedAt: z.ZodNullable<z.ZodNumber>;
6044
- state: z.ZodEnum<{
6045
- admitted: "admitted";
6046
- skipped: "skipped";
6047
- }>;
6048
- code: z.ZodType<TrackerSkipCode | null>;
6049
- reason: z.ZodNullable<z.ZodString>;
6050
- window: z.ZodOptional<z.ZodEnum<{
6051
- quest: "quest";
6052
- tracker: "tracker";
6053
- }>>;
6054
- attempt: z.ZodNullable<z.ZodString>;
6055
- claimable: z.ZodBoolean;
6056
- createdAt: z.ZodNumber;
6057
- updatedAt: z.ZodNumber;
6058
- }, z.core.$strip>>;
6059
- nextCursor: z.ZodNullable<z.ZodString>;
6060
- }, z.core.$strip>;
6061
- type QuestOutcomePage = z.infer<typeof questOutcomePageSchema>;
6062
-
6063
- /** A cursor as a client passes it back. */
6064
- declare const pageCursorSchema: z.ZodString;
6065
- /** A query that pages by cursor only. */
6066
- declare const pageQuerySchema: z.ZodObject<{
6067
- cursor: z.ZodOptional<z.ZodString>;
6068
- }, z.core.$strict>;
6069
- type PageQuery = z.input<typeof pageQuerySchema>;
6070
- /** One page of a paged read. */
6071
- type Page<T> = {
6072
- items: T[];
6073
- nextCursor: string | null;
6074
- };
6075
- /**
6076
- * Every item of a paged read, page by page as the loop asks for them: `read` gets `undefined` for
6077
- * the first page, then each page's `nextCursor`, until one is `null`. Any paged participant or
6078
- * management read fits, with its own query and call options:
6079
- *
6080
- * ```ts
6081
- * for await (const entry of paginate((cursor) => relay.referrals.history({ cursor }))) {
6082
- * console.log(entry)
6083
- * }
6084
- * ```
6085
- *
6086
- * A rejected read rejects the loop; breaking out of the loop reads no further pages.
6087
- */
6088
- declare function paginate<T>(read: (cursor: string | undefined) => Promise<Page<T>>): AsyncGenerator<T, void, undefined>;
6089
- /** A management state page with an operator-selected size. */
6090
- declare const managementStateQuerySchema: z.ZodObject<{
6091
- cursor: z.ZodOptional<z.ZodString>;
6092
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
6093
- }, z.core.$strict>;
6094
- type ManagementStateQuery = z.input<typeof managementStateQuerySchema>;
6095
-
6096
- export { managementStateQuerySchema as $, allocatedQuestSchema as A, catalogDeploymentPreviewSchema as B, type CreatorAccount as C, type DiscordRoleReward as D, catalogDeploymentSchema as E, collectionSlotDeclarationSchema as F, collectionSlotSchema as G, collectionViewSchema as H, contentMetricSchema as I, contentMetricsSchema as J, contentPerformancePolicySchema as K, contentQualificationDecisionSchema as L, type ManagementStateQuery as M, contentQualificationPageSchema as N, contentQualificationSchema as O, type Page as P, type QuestClaimInput as Q, type ResponseResult as R, creatorAccountProviderSchema as S, creatorAccountSchema as T, type UnsupportedResponse as U, creatorAccountsSchema as V, discordRoleRewardSchema as W, discordRoleRewardsSchema as X, interactionSchema as Y, knownCreatorAccountProviders as Z, knownRewardDeliverySchema as _, type CreatorAccountProvider as a, memberEnrollmentInputSchema as a0, pageCursorSchema as a1, pageQuerySchema as a2, publishQuestDraftSchema as a3, questCatalogSchema as a4, questClaimInputSchema as a5, questCollectionSchema as a6, questDraftChangesSchema as a7, questDraftSchema as a8, questEnrollmentInputSchema as a9, questEnrollmentSchema as aa, questInstanceSchema as ab, questInteraction as ac, questOutcomePageSchema as ad, questOutcomeQuerySchema as ae, questOutcomeSchema as af, questPublicationPreviewSchema as ag, questRewardViewSchema as ah, questTypeVersionSchema as ai, questViewSchema as aj, responseListSchema as ak, responseSchema as al, responseShape as am, rewardDeliveriesSchema as an, rewardDeliveryQuerySchema as ao, rewardDeliverySchema as ap, roleReconciliationSchema as aq, saveQuestDraftSchema as ar, type CreatorAccounts as b, type PageQuery as c, type QuestEnrollment as d, type QuestEnrollmentInput as e, type QuestInteraction as f, type QuestOutcome as g, type QuestOutcomePage as h, type QuestOutcomeQuery as i, QuestOutcomeState as j, type QuestRewardView as k, type QuestView as l, type ResponseSchema as m, type RewardDeliveryQuery as n, RewardDeliveryAction as o, paginate as p, questExperienceSchema as q, contentQualificationQuerySchema as r, type ContentMetric as s, type ContentPerformancePolicy as t, type MemberEnrollmentInput as u, type QuestCatalog as v, type QuestDraft as w, type QuestInstance as x, type RewardDelivery as y, allocateQuestSchema as z };
5574
+ export { type QuestInteraction as Q, type QuestRewardView as a, type QuestView as b, type QuestCatalog as c, type QuestDraft as d, type QuestInstance as e, allocateQuestSchema as f, allocatedQuestSchema as g, catalogDeploymentPreviewSchema as h, catalogDeploymentSchema as i, collectionSlotDeclarationSchema as j, collectionSlotSchema as k, collectionViewSchema as l, interactionSchema as m, questCatalogSchema as n, questCollectionSchema as o, publishQuestDraftSchema as p, questExperienceSchema as q, questDraftChangesSchema as r, questDraftSchema as s, questInstanceSchema as t, questInteraction as u, questPublicationPreviewSchema as v, questRewardViewSchema as w, questTypeVersionSchema as x, questViewSchema as y, saveQuestDraftSchema as z };