@domino-sdk/relay 1.61.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 (88) hide show
  1. package/CHANGELOG.md +276 -8
  2. package/README.md +3 -2
  3. package/dist/{schema-CZ6Rj0ZF.d.ts → accounts-nz3mzfRQ.d.ts} +3146 -1765
  4. package/dist/action-9Xl0StBg.d.ts +33 -0
  5. package/dist/{attempt-captures-DYnJVkfg.d.ts → attempt-captures-DMi8oR9T.d.ts} +1 -1
  6. package/dist/authoring.d.ts +171 -49
  7. package/dist/authoring.js +158 -49
  8. package/dist/{automatic-outcomes-If88LR9f.d.ts → automatic-outcomes-C_LLQU1p.d.ts} +15 -1
  9. package/dist/avatar.d.ts +1 -1
  10. package/dist/browser.d.ts +15 -11
  11. package/dist/browser.js +18 -12
  12. package/dist/capability-error-CuI_F7yM.d.ts +296 -0
  13. package/dist/{pages-K7-KjSXw.d.ts → catalog-BaTOKpNw.d.ts} +56 -567
  14. package/dist/{chunk-XBV2CK2H.js → chunk-3RFP6GT5.js} +15 -3
  15. package/dist/{chunk-VURRFVNP.js → chunk-4GQW43UU.js} +239 -361
  16. package/dist/chunk-4NOFSGAL.js +320 -0
  17. package/dist/{chunk-24I4R732.js → chunk-5XLZ34PV.js} +34 -19
  18. package/dist/{chunk-L77O64I4.js → chunk-7X67QLPB.js} +43 -43
  19. package/dist/{chunk-RHBS5FJL.js → chunk-7Z4SZ6YM.js} +3 -3
  20. package/dist/{chunk-QEAS4ZGS.js → chunk-AQOL3SK5.js} +1 -1
  21. package/dist/chunk-EHUSD3O2.js +377 -0
  22. package/dist/chunk-FO2LCZTL.js +19 -0
  23. package/dist/{chunk-DYXDZFKA.js → chunk-FU5CGNTR.js} +166 -178
  24. package/dist/chunk-FWLQ5XCS.js +21 -0
  25. package/dist/chunk-GLH6MEI2.js +193 -0
  26. package/dist/chunk-ICXZZNPS.js +199 -0
  27. package/dist/{chunk-ZDJLPN4L.js → chunk-ID3BZXFZ.js} +2696 -2693
  28. package/dist/chunk-KP2MCX3R.js +587 -0
  29. package/dist/{chunk-SKGTNTLF.js → chunk-LZWXCBUB.js} +213 -297
  30. package/dist/chunk-MTKRIQEU.js +31 -0
  31. package/dist/{chunk-4OC7REYX.js → chunk-MWMCQLCG.js} +3 -3
  32. package/dist/{chunk-PPB7HALD.js → chunk-N4BDKS6Y.js} +27 -26
  33. package/dist/{chunk-5I54XBK2.js → chunk-N4LNEGQX.js} +2 -2
  34. package/dist/chunk-NQDEWJWE.js +554 -0
  35. package/dist/chunk-QR6HH4DI.js +508 -0
  36. package/dist/chunk-TLSQETTY.js +41 -0
  37. package/dist/{chunk-MHPKEVEW.js → chunk-U66GUVSG.js} +7 -2
  38. package/dist/{chunk-KDR2VAJP.js → chunk-UYVJZR33.js} +2 -2
  39. package/dist/chunk-UZ765UGH.js +18 -0
  40. package/dist/{chunk-7A4J67ZL.js → chunk-VWQGWGCH.js} +7 -7
  41. package/dist/chunk-W7YSMSGC.js +725 -0
  42. package/dist/{client-C51w7fMb.d.ts → client-DHmG7rn6.d.ts} +126 -93
  43. package/dist/{announcements-CHx3-HBw.d.ts → dashboards-CLemT6kj.d.ts} +14 -137
  44. package/dist/{deployments-kWoHFaqj.d.ts → deployments-DTULi7dF.d.ts} +450 -18
  45. package/dist/identity-integration-DOeNZaxF.d.ts +1271 -0
  46. package/dist/index.d.ts +13 -11
  47. package/dist/index.js +16 -11
  48. package/dist/internal.d.ts +29 -13
  49. package/dist/internal.js +57 -17
  50. package/dist/{integrations-B3y36OaB.d.ts → limits-kNzYdZ00.d.ts} +464 -53
  51. package/dist/{offers-BoV4ryUc.d.ts → offers-CYeN_I0Y.d.ts} +22 -4
  52. package/dist/{participant-activity-DHL8QYks.d.ts → participant-activity-D-Drp24G.d.ts} +16 -3
  53. package/dist/portal-proxy.d.ts +75 -2
  54. package/dist/portal-proxy.js +153 -25
  55. package/dist/react/index.d.ts +214 -27
  56. package/dist/react/index.js +196 -42
  57. package/dist/{action-DBzILFx9.d.ts → request-error-D_dUPLwo.d.ts} +1 -31
  58. package/dist/reward-deliveries-drp-x1G-.d.ts +782 -0
  59. package/dist/runtime/authoring.js +1 -1
  60. package/dist/runtime/chunks/UGDV5W4N.js +1 -0
  61. package/dist/runtime/manifest.json +3 -3
  62. package/dist/runtime/schema.js +1 -1
  63. package/dist/schema.d.ts +330 -31
  64. package/dist/schema.js +147 -91
  65. package/dist/server/index.d.ts +14 -12
  66. package/dist/server/index.js +6425 -6260
  67. package/dist/sign-in-providers-B1Q9eDRm.d.ts +44 -0
  68. package/dist/submission-input-DZCbjQUH.d.ts +343 -0
  69. package/dist/{telegram-browser-BUceZIGZ.d.ts → telegram-browser-NL0Asmsi.d.ts} +46 -6
  70. package/dist/telegram.d.ts +64 -0
  71. package/dist/telegram.js +23 -0
  72. package/dist/testing.d.ts +326 -27
  73. package/dist/testing.js +440 -90
  74. package/dist/tracker-data-esm3WG8R.d.ts +1881 -0
  75. package/dist/{transport-BrX9pIGN.d.ts → transport-Czht_irp.d.ts} +43483 -38512
  76. package/dist/{wallet-CIqFoxdm.d.ts → wallet-B7e06v4m.d.ts} +32 -9
  77. package/package.json +5 -1
  78. package/dist/accounts-DoabriBX.d.ts +0 -306
  79. package/dist/capability-error-DufwG3G0.d.ts +0 -159
  80. package/dist/chunk-3Y3L2F54.js +0 -982
  81. package/dist/chunk-DHXDBAJF.js +0 -544
  82. package/dist/chunk-EN3M5Z4J.js +0 -13
  83. package/dist/chunk-QNUHWK7R.js +0 -602
  84. package/dist/chunk-SE4PFJPT.js +0 -247
  85. package/dist/groups-CqcA2Ycs.d.ts +0 -2827
  86. package/dist/runtime/chunks/5QVFB4TU.js +0 -1
  87. package/dist/submission-input-C54Q8yAD.d.ts +0 -146
  88. package/dist/x-D1PGi8Sq.d.ts +0 -331
@@ -1,237 +1,11 @@
1
+ import { S as SolanaIdlSource } from './wallet-B7e06v4m.js';
2
+ import { b as AttemptStatus, V as AttemptCodeSource, W as IntegrationModuleProvider, X as RewardType, Y as questDescriptionSchema } from './accounts-nz3mzfRQ.js';
1
3
  import * as z from 'zod';
2
- import { a as AttemptStatus, aq as questDescriptionSchema, o as TrackerSkipCode } from './schema-CZ6Rj0ZF.js';
3
- import { af as SolanaIdlSource } from './wallet-CIqFoxdm.js';
4
4
 
5
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.
6
+ * The control a quest needs from a participant app. `"claim"` is a quest the member submits with
7
+ * no input, such as a button; it is unrelated to `quests.claim`, which claims a historical outcome.
8
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
-
235
9
  declare const interactionSchema: z.ZodEnum<{
236
10
  url: "url";
237
11
  text: "text";
@@ -313,6 +87,7 @@ declare const questTypeVersionSchema: z.ZodObject<{
313
87
  discord: "discord";
314
88
  x: "x";
315
89
  }>>>;
90
+ integrationModules: z.ZodOptional<z.ZodArray<z.ZodType<IntegrationModuleProvider, unknown, z.core.$ZodTypeInternals<IntegrationModuleProvider, unknown>>>>;
316
91
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
317
92
  kind: z.ZodLiteral<"point-ledger">;
318
93
  default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
@@ -365,6 +140,7 @@ declare const questTypeVersionSchema: z.ZodObject<{
365
140
  multiline: z.ZodBoolean;
366
141
  picker: z.ZodOptional<z.ZodString>;
367
142
  decimals: z.ZodOptional<z.ZodNumber>;
143
+ secret: z.ZodOptional<z.ZodLiteral<true>>;
368
144
  label: z.ZodString;
369
145
  description: z.ZodOptional<z.ZodString>;
370
146
  }, z.core.$strict>, z.ZodObject<{
@@ -650,6 +426,7 @@ declare const questTypeVersionSchema: z.ZodObject<{
650
426
  kind: z.ZodLiteral<"once">;
651
427
  }, z.core.$strict>, z.ZodObject<{
652
428
  kind: z.ZodLiteral<"keyed">;
429
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
653
430
  }, z.core.$strict>], "kind">;
654
431
  }, z.core.$strict>;
655
432
  provider: z.ZodEnum<{
@@ -661,6 +438,10 @@ declare const questTypeVersionSchema: z.ZodObject<{
661
438
  }>;
662
439
  createdAt: z.ZodNumber;
663
440
  }, z.core.$strip>;
441
+ /**
442
+ * A collection as a response carries it. Not strict, so a field a newer server adds is ignored
443
+ * (docs/releases.md#response-evolution); the authoring inputs below are strict.
444
+ */
664
445
  declare const collectionSlotSchema: z.ZodObject<{
665
446
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
666
447
  id: z.ZodString;
@@ -669,7 +450,7 @@ declare const collectionSlotSchema: z.ZodObject<{
669
450
  description: z.ZodOptional<z.ZodString>;
670
451
  image: z.ZodOptional<z.ZodString>;
671
452
  imageAlt: z.ZodOptional<z.ZodString>;
672
- }, z.core.$strict>;
453
+ }, z.core.$strip>;
673
454
  declare const collectionSlotDeclarationSchema: z.ZodObject<{
674
455
  description: z.ZodOptional<z.ZodString>;
675
456
  image: z.ZodOptional<z.ZodString>;
@@ -677,6 +458,7 @@ declare const collectionSlotDeclarationSchema: z.ZodObject<{
677
458
  imageAlt: z.ZodOptional<z.ZodString>;
678
459
  key: z.ZodString;
679
460
  }, z.core.$strict>;
461
+ /** A collection and its quests as a response carries it; not strict, like `collectionSlotSchema`. */
680
462
  declare const questCollectionSchema: z.ZodObject<{
681
463
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
682
464
  id: z.ZodString;
@@ -686,7 +468,7 @@ declare const questCollectionSchema: z.ZodObject<{
686
468
  image: z.ZodOptional<z.ZodString>;
687
469
  imageAlt: z.ZodOptional<z.ZodString>;
688
470
  quests: z.ZodArray<z.ZodString>;
689
- }, z.core.$strict>;
471
+ }, z.core.$strip>;
690
472
  declare const questInstanceSchema: z.ZodObject<{
691
473
  badges: z.ZodOptional<z.ZodArray<z.ZodString>>;
692
474
  id: z.ZodString;
@@ -841,8 +623,8 @@ declare const questDraftChangesSchema: z.ZodObject<{
841
623
  key: z.ZodOptional<z.ZodString>;
842
624
  id: z.ZodString;
843
625
  title: z.ZodString;
844
- imageAlt: z.ZodOptional<z.ZodString>;
845
626
  quests: z.ZodArray<z.ZodString>;
627
+ imageAlt: z.ZodOptional<z.ZodString>;
846
628
  }, z.core.$strict>>;
847
629
  }, z.core.$strict>;
848
630
  declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -930,8 +712,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
930
712
  key: z.ZodOptional<z.ZodString>;
931
713
  id: z.ZodString;
932
714
  title: z.ZodString;
933
- imageAlt: z.ZodOptional<z.ZodString>;
934
715
  quests: z.ZodArray<z.ZodString>;
716
+ imageAlt: z.ZodOptional<z.ZodString>;
935
717
  }, z.core.$strict>>;
936
718
  }, z.core.$strict>;
937
719
  status: z.ZodLiteral<"draft">;
@@ -1020,8 +802,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1020
802
  key: z.ZodOptional<z.ZodString>;
1021
803
  id: z.ZodString;
1022
804
  title: z.ZodString;
1023
- imageAlt: z.ZodOptional<z.ZodString>;
1024
805
  quests: z.ZodArray<z.ZodString>;
806
+ imageAlt: z.ZodOptional<z.ZodString>;
1025
807
  }, z.core.$strict>>;
1026
808
  }, z.core.$strict>;
1027
809
  status: z.ZodLiteral<"published">;
@@ -1094,6 +876,7 @@ declare const questCatalogSchema: z.ZodObject<{
1094
876
  discord: "discord";
1095
877
  x: "x";
1096
878
  }>>>;
879
+ integrationModules: z.ZodOptional<z.ZodArray<z.ZodType<IntegrationModuleProvider, unknown, z.core.$ZodTypeInternals<IntegrationModuleProvider, unknown>>>>;
1097
880
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1098
881
  kind: z.ZodLiteral<"point-ledger">;
1099
882
  default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
@@ -1146,6 +929,7 @@ declare const questCatalogSchema: z.ZodObject<{
1146
929
  multiline: z.ZodBoolean;
1147
930
  picker: z.ZodOptional<z.ZodString>;
1148
931
  decimals: z.ZodOptional<z.ZodNumber>;
932
+ secret: z.ZodOptional<z.ZodLiteral<true>>;
1149
933
  label: z.ZodString;
1150
934
  description: z.ZodOptional<z.ZodString>;
1151
935
  }, z.core.$strict>, z.ZodObject<{
@@ -1431,6 +1215,7 @@ declare const questCatalogSchema: z.ZodObject<{
1431
1215
  kind: z.ZodLiteral<"once">;
1432
1216
  }, z.core.$strict>, z.ZodObject<{
1433
1217
  kind: z.ZodLiteral<"keyed">;
1218
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
1434
1219
  }, z.core.$strict>], "kind">;
1435
1220
  }, z.core.$strict>;
1436
1221
  provider: z.ZodEnum<{
@@ -1451,7 +1236,7 @@ declare const questCatalogSchema: z.ZodObject<{
1451
1236
  image: z.ZodOptional<z.ZodString>;
1452
1237
  imageAlt: z.ZodOptional<z.ZodString>;
1453
1238
  quests: z.ZodArray<z.ZodString>;
1454
- }, z.core.$strict>>;
1239
+ }, z.core.$strip>>;
1455
1240
  quests: z.ZodArray<z.ZodObject<{
1456
1241
  badges: z.ZodOptional<z.ZodArray<z.ZodString>>;
1457
1242
  id: z.ZodString;
@@ -1610,8 +1395,8 @@ declare const questCatalogSchema: z.ZodObject<{
1610
1395
  key: z.ZodOptional<z.ZodString>;
1611
1396
  id: z.ZodString;
1612
1397
  title: z.ZodString;
1613
- imageAlt: z.ZodOptional<z.ZodString>;
1614
1398
  quests: z.ZodArray<z.ZodString>;
1399
+ imageAlt: z.ZodOptional<z.ZodString>;
1615
1400
  }, z.core.$strict>>;
1616
1401
  }, z.core.$strict>;
1617
1402
  status: z.ZodLiteral<"draft">;
@@ -1700,8 +1485,8 @@ declare const questCatalogSchema: z.ZodObject<{
1700
1485
  key: z.ZodOptional<z.ZodString>;
1701
1486
  id: z.ZodString;
1702
1487
  title: z.ZodString;
1703
- imageAlt: z.ZodOptional<z.ZodString>;
1704
1488
  quests: z.ZodArray<z.ZodString>;
1489
+ imageAlt: z.ZodOptional<z.ZodString>;
1705
1490
  }, z.core.$strict>>;
1706
1491
  }, z.core.$strict>;
1707
1492
  status: z.ZodLiteral<"published">;
@@ -1762,6 +1547,7 @@ declare const questCatalogSchema: z.ZodObject<{
1762
1547
  discord: "discord";
1763
1548
  x: "x";
1764
1549
  }>>>;
1550
+ integrationModules: z.ZodOptional<z.ZodArray<z.ZodType<IntegrationModuleProvider, unknown, z.core.$ZodTypeInternals<IntegrationModuleProvider, unknown>>>>;
1765
1551
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1766
1552
  kind: z.ZodLiteral<"point-ledger">;
1767
1553
  default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
@@ -1814,6 +1600,7 @@ declare const questCatalogSchema: z.ZodObject<{
1814
1600
  multiline: z.ZodBoolean;
1815
1601
  picker: z.ZodOptional<z.ZodString>;
1816
1602
  decimals: z.ZodOptional<z.ZodNumber>;
1603
+ secret: z.ZodOptional<z.ZodLiteral<true>>;
1817
1604
  label: z.ZodString;
1818
1605
  description: z.ZodOptional<z.ZodString>;
1819
1606
  }, z.core.$strict>, z.ZodObject<{
@@ -2099,7 +1886,12 @@ declare const questCatalogSchema: z.ZodObject<{
2099
1886
  kind: z.ZodLiteral<"once">;
2100
1887
  }, z.core.$strict>, z.ZodObject<{
2101
1888
  kind: z.ZodLiteral<"keyed">;
1889
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
2102
1890
  }, z.core.$strict>], "kind">;
1891
+ rewardEntries: z.ZodOptional<z.ZodArray<z.ZodObject<{
1892
+ type: z.ZodType<RewardType, unknown, z.core.$ZodTypeInternals<RewardType, unknown>>;
1893
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1894
+ }, z.core.$strip>>>;
2103
1895
  key: z.ZodOptional<z.ZodString>;
2104
1896
  code: z.ZodString;
2105
1897
  runtime: z.ZodOptional<z.ZodObject<{
@@ -2207,6 +1999,7 @@ declare const questCatalogSchema: z.ZodObject<{
2207
1999
  source: z.ZodType<SolanaIdlSource>;
2208
2000
  idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2209
2001
  }, z.core.$strict>>>;
2002
+ withheldSettings: z.ZodOptional<z.ZodArray<z.ZodString>>;
2210
2003
  }, z.core.$strict>>>;
2211
2004
  supportedInteractions: z.ZodArray<z.ZodEnum<{
2212
2005
  url: "url";
@@ -2314,6 +2107,7 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
2314
2107
  discord: "discord";
2315
2108
  x: "x";
2316
2109
  }>>>;
2110
+ integrationModules: z.ZodOptional<z.ZodArray<z.ZodType<IntegrationModuleProvider, unknown, z.core.$ZodTypeInternals<IntegrationModuleProvider, unknown>>>>;
2317
2111
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2318
2112
  kind: z.ZodLiteral<"point-ledger">;
2319
2113
  default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
@@ -2366,6 +2160,7 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
2366
2160
  multiline: z.ZodBoolean;
2367
2161
  picker: z.ZodOptional<z.ZodString>;
2368
2162
  decimals: z.ZodOptional<z.ZodNumber>;
2163
+ secret: z.ZodOptional<z.ZodLiteral<true>>;
2369
2164
  label: z.ZodString;
2370
2165
  description: z.ZodOptional<z.ZodString>;
2371
2166
  }, z.core.$strict>, z.ZodObject<{
@@ -2651,6 +2446,7 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
2651
2446
  kind: z.ZodLiteral<"once">;
2652
2447
  }, z.core.$strict>, z.ZodObject<{
2653
2448
  kind: z.ZodLiteral<"keyed">;
2449
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
2654
2450
  }, z.core.$strict>], "kind">;
2655
2451
  }, z.core.$strict>;
2656
2452
  provider: z.ZodEnum<{
@@ -2670,7 +2466,7 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
2670
2466
  description: z.ZodOptional<z.ZodString>;
2671
2467
  image: z.ZodOptional<z.ZodString>;
2672
2468
  imageAlt: z.ZodOptional<z.ZodString>;
2673
- }, z.core.$strict>>;
2469
+ }, z.core.$strip>>;
2674
2470
  supportedInteractions: z.ZodArray<z.ZodEnum<{
2675
2471
  url: "url";
2676
2472
  text: "text";
@@ -2767,8 +2563,8 @@ declare const saveQuestDraftSchema: z.ZodObject<{
2767
2563
  key: z.ZodOptional<z.ZodString>;
2768
2564
  id: z.ZodString;
2769
2565
  title: z.ZodString;
2770
- imageAlt: z.ZodOptional<z.ZodString>;
2771
2566
  quests: z.ZodArray<z.ZodString>;
2567
+ imageAlt: z.ZodOptional<z.ZodString>;
2772
2568
  }, z.core.$strict>>;
2773
2569
  }, z.core.$strict>;
2774
2570
  }, z.core.$strict>;
@@ -3068,6 +2864,7 @@ declare const questViewSchema: z.ZodObject<{
3068
2864
  kind: z.ZodLiteral<"once">;
3069
2865
  }, z.core.$strict>, z.ZodObject<{
3070
2866
  kind: z.ZodLiteral<"keyed">;
2867
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
3071
2868
  }, z.core.$strict>], "kind">>;
3072
2869
  streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3073
2870
  goal: z.ZodNumber;
@@ -3269,6 +3066,7 @@ declare const questViewSchema: z.ZodObject<{
3269
3066
  deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3270
3067
  nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3271
3068
  code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3069
+ codeSource: z.ZodOptional<z.ZodNullable<z.ZodType<AttemptCodeSource, unknown, z.core.$ZodTypeInternals<AttemptCodeSource, unknown>>>>;
3272
3070
  progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3273
3071
  current: z.ZodNumber;
3274
3072
  target: z.ZodNumber;
@@ -3588,6 +3386,7 @@ declare const collectionViewSchema: z.ZodObject<{
3588
3386
  kind: z.ZodLiteral<"once">;
3589
3387
  }, z.core.$strict>, z.ZodObject<{
3590
3388
  kind: z.ZodLiteral<"keyed">;
3389
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
3591
3390
  }, z.core.$strict>], "kind">>;
3592
3391
  streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3593
3392
  goal: z.ZodNumber;
@@ -3789,6 +3588,7 @@ declare const collectionViewSchema: z.ZodObject<{
3789
3588
  deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3790
3589
  nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3791
3590
  code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3591
+ codeSource: z.ZodOptional<z.ZodNullable<z.ZodType<AttemptCodeSource, unknown, z.core.$ZodTypeInternals<AttemptCodeSource, unknown>>>>;
3792
3592
  progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3793
3593
  current: z.ZodNumber;
3794
3594
  target: z.ZodNumber;
@@ -4282,6 +4082,7 @@ declare const questExperienceSchema: z.ZodObject<{
4282
4082
  kind: z.ZodLiteral<"once">;
4283
4083
  }, z.core.$strict>, z.ZodObject<{
4284
4084
  kind: z.ZodLiteral<"keyed">;
4085
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
4285
4086
  }, z.core.$strict>], "kind">>;
4286
4087
  streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4287
4088
  goal: z.ZodNumber;
@@ -4483,6 +4284,7 @@ declare const questExperienceSchema: z.ZodObject<{
4483
4284
  deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4484
4285
  nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4485
4286
  code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4287
+ codeSource: z.ZodOptional<z.ZodNullable<z.ZodType<AttemptCodeSource, unknown, z.core.$ZodTypeInternals<AttemptCodeSource, unknown>>>>;
4486
4288
  progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4487
4289
  current: z.ZodNumber;
4488
4290
  target: z.ZodNumber;
@@ -4802,6 +4604,7 @@ declare const questExperienceSchema: z.ZodObject<{
4802
4604
  kind: z.ZodLiteral<"once">;
4803
4605
  }, z.core.$strict>, z.ZodObject<{
4804
4606
  kind: z.ZodLiteral<"keyed">;
4607
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
4805
4608
  }, z.core.$strict>], "kind">>;
4806
4609
  streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4807
4610
  goal: z.ZodNumber;
@@ -5003,6 +4806,7 @@ declare const questExperienceSchema: z.ZodObject<{
5003
4806
  deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5004
4807
  nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5005
4808
  code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4809
+ codeSource: z.ZodOptional<z.ZodNullable<z.ZodType<AttemptCodeSource, unknown, z.core.$ZodTypeInternals<AttemptCodeSource, unknown>>>>;
5006
4810
  progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
5007
4811
  current: z.ZodNumber;
5008
4812
  target: z.ZodNumber;
@@ -5154,8 +4958,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
5154
4958
  key: z.ZodOptional<z.ZodString>;
5155
4959
  id: z.ZodString;
5156
4960
  title: z.ZodString;
5157
- imageAlt: z.ZodOptional<z.ZodString>;
5158
4961
  quests: z.ZodArray<z.ZodString>;
4962
+ imageAlt: z.ZodOptional<z.ZodString>;
5159
4963
  }, z.core.$strict>>;
5160
4964
  }, z.core.$strict>;
5161
4965
  status: z.ZodLiteral<"draft">;
@@ -5244,8 +5048,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
5244
5048
  key: z.ZodOptional<z.ZodString>;
5245
5049
  id: z.ZodString;
5246
5050
  title: z.ZodString;
5247
- imageAlt: z.ZodOptional<z.ZodString>;
5248
5051
  quests: z.ZodArray<z.ZodString>;
5052
+ imageAlt: z.ZodOptional<z.ZodString>;
5249
5053
  }, z.core.$strict>>;
5250
5054
  }, z.core.$strict>;
5251
5055
  status: z.ZodLiteral<"published">;
@@ -5306,6 +5110,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
5306
5110
  discord: "discord";
5307
5111
  x: "x";
5308
5112
  }>>>;
5113
+ integrationModules: z.ZodOptional<z.ZodArray<z.ZodType<IntegrationModuleProvider, unknown, z.core.$ZodTypeInternals<IntegrationModuleProvider, unknown>>>>;
5309
5114
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
5310
5115
  kind: z.ZodLiteral<"point-ledger">;
5311
5116
  default: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
@@ -5358,6 +5163,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
5358
5163
  multiline: z.ZodBoolean;
5359
5164
  picker: z.ZodOptional<z.ZodString>;
5360
5165
  decimals: z.ZodOptional<z.ZodNumber>;
5166
+ secret: z.ZodOptional<z.ZodLiteral<true>>;
5361
5167
  label: z.ZodString;
5362
5168
  description: z.ZodOptional<z.ZodString>;
5363
5169
  }, z.core.$strict>, z.ZodObject<{
@@ -5643,7 +5449,12 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
5643
5449
  kind: z.ZodLiteral<"once">;
5644
5450
  }, z.core.$strict>, z.ZodObject<{
5645
5451
  kind: z.ZodLiteral<"keyed">;
5452
+ across: z.ZodOptional<z.ZodLiteral<"members">>;
5646
5453
  }, z.core.$strict>], "kind">;
5454
+ rewardEntries: z.ZodOptional<z.ZodArray<z.ZodObject<{
5455
+ type: z.ZodType<RewardType, unknown, z.core.$ZodTypeInternals<RewardType, unknown>>;
5456
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
5457
+ }, z.core.$strip>>>;
5647
5458
  key: z.ZodOptional<z.ZodString>;
5648
5459
  code: z.ZodString;
5649
5460
  runtime: z.ZodOptional<z.ZodObject<{
@@ -5751,6 +5562,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
5751
5562
  source: z.ZodType<SolanaIdlSource>;
5752
5563
  idl: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
5753
5564
  }, z.core.$strict>>>;
5565
+ withheldSettings: z.ZodOptional<z.ZodArray<z.ZodString>>;
5754
5566
  }, z.core.$strict>>;
5755
5567
  affectedCollections: z.ZodArray<z.ZodObject<{
5756
5568
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -5761,7 +5573,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
5761
5573
  image: z.ZodOptional<z.ZodString>;
5762
5574
  imageAlt: z.ZodOptional<z.ZodString>;
5763
5575
  quests: z.ZodArray<z.ZodString>;
5764
- }, z.core.$strict>>;
5576
+ }, z.core.$strip>>;
5765
5577
  }, z.core.$strip>;
5766
5578
  declare const allocateQuestSchema: z.ZodObject<{
5767
5579
  actionId: z.ZodString;
@@ -5770,327 +5582,4 @@ declare const allocatedQuestSchema: z.ZodObject<{
5770
5582
  id: z.ZodString;
5771
5583
  }, z.core.$strip>;
5772
5584
 
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 };
5585
+ 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 };