@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
@@ -0,0 +1,1241 @@
1
+ import { O as OpenIdentityKind } from './tracker-data-Hb1uQnk5.js';
2
+ import * as z from 'zod';
3
+
4
+ /**
5
+ * The identity an imported member signs in with, so the imported member and their later sign-in
6
+ * are one member: an `app:<name>` subject the app's identity integration exchanges, a wallet the
7
+ * member signs in with, or an X account the member signs in with.
8
+ */
9
+ declare const memberImportIdentitySchema: z.ZodUnion<readonly [z.ZodObject<{
10
+ kind: z.ZodTemplateLiteral<`app:${string}`>;
11
+ subject: z.ZodString;
12
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
13
+ kind: z.ZodLiteral<"wallet">;
14
+ chain: z.ZodLiteral<"solana">;
15
+ address: z.ZodString;
16
+ }, z.core.$strict>, z.ZodObject<{
17
+ kind: z.ZodLiteral<"wallet">;
18
+ chain: z.ZodLiteral<"eip155">;
19
+ address: z.ZodString;
20
+ }, z.core.$strict>, z.ZodObject<{
21
+ kind: z.ZodLiteral<"wallet">;
22
+ chain: z.ZodLiteral<"cosmos">;
23
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
24
+ address: z.ZodString;
25
+ }, z.core.$strict>], "chain">, z.ZodObject<{
26
+ kind: z.ZodLiteral<"x">;
27
+ subject: z.ZodString;
28
+ }, z.core.$strict>]>;
29
+ type MemberImportIdentity = z.infer<typeof memberImportIdentitySchema>;
30
+ /**
31
+ * An account the organization vouches belongs to the member: an X account or a wallet. Trackers,
32
+ * `ctx.x` and wallet checks trust it like a verified link. It does not sign in. When the member
33
+ * later links an account through Domino, that link replaces it. `memberImportVouchedAccountSchema`
34
+ * also takes Telegram and Discord accounts.
35
+ */
36
+ declare const memberImportAccountSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
37
+ kind: z.ZodLiteral<"wallet">;
38
+ chain: z.ZodLiteral<"solana">;
39
+ address: z.ZodString;
40
+ }, z.core.$strict>, z.ZodObject<{
41
+ kind: z.ZodLiteral<"wallet">;
42
+ chain: z.ZodLiteral<"eip155">;
43
+ address: z.ZodString;
44
+ }, z.core.$strict>, z.ZodObject<{
45
+ kind: z.ZodLiteral<"wallet">;
46
+ chain: z.ZodLiteral<"cosmos">;
47
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
48
+ address: z.ZodString;
49
+ }, z.core.$strict>], "chain">, z.ZodObject<{
50
+ kind: z.ZodLiteral<"x">;
51
+ subject: z.ZodString;
52
+ }, z.core.$strict>]>;
53
+ type MemberImportAccount = z.infer<typeof memberImportAccountSchema>;
54
+ /**
55
+ * Every account an import vouches for: a wallet, or an X, Telegram or Discord account by its
56
+ * numeric user ID, at most one of each per member. Trackers, quest checks and wallet checks trust
57
+ * it like a verified link. It does not sign in. When the member later links an account of that
58
+ * kind through Domino, that link replaces it.
59
+ */
60
+ declare const memberImportVouchedAccountSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
61
+ kind: z.ZodLiteral<"wallet">;
62
+ chain: z.ZodLiteral<"solana">;
63
+ address: z.ZodString;
64
+ }, z.core.$strict>, z.ZodObject<{
65
+ kind: z.ZodLiteral<"wallet">;
66
+ chain: z.ZodLiteral<"eip155">;
67
+ address: z.ZodString;
68
+ }, z.core.$strict>, z.ZodObject<{
69
+ kind: z.ZodLiteral<"wallet">;
70
+ chain: z.ZodLiteral<"cosmos">;
71
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
72
+ address: z.ZodString;
73
+ }, z.core.$strict>], "chain">, z.ZodObject<{
74
+ kind: z.ZodLiteral<"x">;
75
+ subject: z.ZodString;
76
+ }, z.core.$strict>, z.ZodObject<{
77
+ kind: z.ZodLiteral<"telegram">;
78
+ subject: z.ZodString;
79
+ }, z.core.$strict>, z.ZodObject<{
80
+ kind: z.ZodLiteral<"discord">;
81
+ subject: z.ZodString;
82
+ }, z.core.$strict>]>;
83
+ /** @compat input */
84
+ type MemberImportVouchedAccount = z.infer<typeof memberImportVouchedAccountSchema>;
85
+ /**
86
+ * One of a member's accounts or identities, named as a member import names it: `{ kind: "x" |
87
+ * "discord" | "telegram", subject }` with the numeric user ID, `{ kind: "app:<name>", subject }`,
88
+ * or a wallet `{ kind: "wallet", chain, address }` (and `network` for Cosmos, which the address
89
+ * alone already names). Identity-state commands, `members.lookup` and the test-member account
90
+ * commands accept it, as an app login's exchange and an import row do.
91
+ */
92
+ declare const identityReferenceSchema: z.ZodUnion<readonly [z.ZodObject<{
93
+ kind: z.ZodTemplateLiteral<`app:${string}`>;
94
+ subject: z.ZodString;
95
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
96
+ kind: z.ZodLiteral<"wallet">;
97
+ chain: z.ZodLiteral<"solana">;
98
+ address: z.ZodString;
99
+ }, z.core.$strict>, z.ZodObject<{
100
+ kind: z.ZodLiteral<"wallet">;
101
+ chain: z.ZodLiteral<"eip155">;
102
+ address: z.ZodString;
103
+ }, z.core.$strict>, z.ZodObject<{
104
+ kind: z.ZodLiteral<"wallet">;
105
+ chain: z.ZodLiteral<"cosmos">;
106
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
107
+ address: z.ZodString;
108
+ }, z.core.$strict>], "chain">, z.ZodObject<{
109
+ kind: z.ZodLiteral<"x">;
110
+ subject: z.ZodString;
111
+ }, z.core.$strict>, z.ZodObject<{
112
+ kind: z.ZodLiteral<"telegram">;
113
+ subject: z.ZodString;
114
+ }, z.core.$strict>, z.ZodObject<{
115
+ kind: z.ZodLiteral<"discord">;
116
+ subject: z.ZodString;
117
+ }, z.core.$strict>]>;
118
+ /** @compat input */
119
+ type IdentityReference = z.infer<typeof identityReferenceSchema>;
120
+ /**
121
+ * One accepted action on a quest, recorded through the quest's completion policy without paying
122
+ * rewards: a `once` quest completes on the first, a `keyed` quest once per `key`, a streak counts
123
+ * each action's project-calendar day, and a counter counts each distinct `key` (default: the
124
+ * action's position).
125
+ */
126
+ declare const memberImportActionSchema: z.ZodObject<{
127
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
128
+ key: z.ZodOptional<z.ZodString>;
129
+ }, z.core.$strict>;
130
+ /**
131
+ * Who invited the member, and the referral programs the member already qualified in. The import
132
+ * records the accepted referral and the qualifications without paying any referral reward; points
133
+ * the member earns afterwards pay each program's share as for any qualified friend.
134
+ */
135
+ declare const memberImportReferralSchema: z.ZodObject<{
136
+ inviter: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
137
+ kind: z.ZodTemplateLiteral<`app:${string}`>;
138
+ subject: z.ZodString;
139
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
140
+ kind: z.ZodLiteral<"wallet">;
141
+ chain: z.ZodLiteral<"solana">;
142
+ address: z.ZodString;
143
+ }, z.core.$strict>, z.ZodObject<{
144
+ kind: z.ZodLiteral<"wallet">;
145
+ chain: z.ZodLiteral<"eip155">;
146
+ address: z.ZodString;
147
+ }, z.core.$strict>, z.ZodObject<{
148
+ kind: z.ZodLiteral<"wallet">;
149
+ chain: z.ZodLiteral<"cosmos">;
150
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
151
+ address: z.ZodString;
152
+ }, z.core.$strict>], "chain">, z.ZodObject<{
153
+ kind: z.ZodLiteral<"x">;
154
+ subject: z.ZodString;
155
+ }, z.core.$strict>]>]>;
156
+ acceptedAt: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
157
+ qualified: z.ZodDefault<z.ZodArray<z.ZodObject<{
158
+ program: z.ZodString;
159
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
160
+ }, z.core.$strict>>>;
161
+ }, z.core.$strict>;
162
+ type MemberImportReferral = z.output<typeof memberImportReferralSchema>;
163
+ /**
164
+ * Marketing consent the member gave or withdrew on the platform they come from, one entry per
165
+ * channel. Relay records it with its original time and wording, marked `imported`, unless the
166
+ * member chose on that channel in Relay (their choice stays) or an earlier import's consent there
167
+ * is as recent or more recent. A check refuses the row
168
+ * for a channel Relay does not record consent for, a time in the future, or a grant without the
169
+ * wording the member saw.
170
+ *
171
+ * @experimental A minor release can change the consent API.
172
+ */
173
+ declare const memberImportConsentSchema: z.ZodObject<{
174
+ channel: z.ZodString;
175
+ state: z.ZodEnum<{
176
+ granted: "granted";
177
+ withdrawn: "withdrawn";
178
+ }>;
179
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
180
+ wording: z.ZodOptional<z.ZodString>;
181
+ }, z.core.$strict>;
182
+ /** @compat input */
183
+ type MemberImportConsent = z.input<typeof memberImportConsentSchema>;
184
+ /** One member to import: a line of an import file. */
185
+ declare const memberImportRowSchema: z.ZodObject<{
186
+ ref: z.ZodString;
187
+ identity: z.ZodUnion<readonly [z.ZodObject<{
188
+ kind: z.ZodTemplateLiteral<`app:${string}`>;
189
+ subject: z.ZodString;
190
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
191
+ kind: z.ZodLiteral<"wallet">;
192
+ chain: z.ZodLiteral<"solana">;
193
+ address: z.ZodString;
194
+ }, z.core.$strict>, z.ZodObject<{
195
+ kind: z.ZodLiteral<"wallet">;
196
+ chain: z.ZodLiteral<"eip155">;
197
+ address: z.ZodString;
198
+ }, z.core.$strict>, z.ZodObject<{
199
+ kind: z.ZodLiteral<"wallet">;
200
+ chain: z.ZodLiteral<"cosmos">;
201
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
202
+ address: z.ZodString;
203
+ }, z.core.$strict>], "chain">, z.ZodObject<{
204
+ kind: z.ZodLiteral<"x">;
205
+ subject: z.ZodString;
206
+ }, z.core.$strict>]>;
207
+ accounts: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
208
+ kind: z.ZodLiteral<"wallet">;
209
+ chain: z.ZodLiteral<"solana">;
210
+ address: z.ZodString;
211
+ }, z.core.$strict>, z.ZodObject<{
212
+ kind: z.ZodLiteral<"wallet">;
213
+ chain: z.ZodLiteral<"eip155">;
214
+ address: z.ZodString;
215
+ }, z.core.$strict>, z.ZodObject<{
216
+ kind: z.ZodLiteral<"wallet">;
217
+ chain: z.ZodLiteral<"cosmos">;
218
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
219
+ address: z.ZodString;
220
+ }, z.core.$strict>], "chain">, z.ZodObject<{
221
+ kind: z.ZodLiteral<"x">;
222
+ subject: z.ZodString;
223
+ }, z.core.$strict>]>>>;
224
+ points: z.ZodDefault<z.ZodArray<z.ZodObject<{
225
+ ledger: z.ZodString;
226
+ balance: z.ZodNumber;
227
+ }, z.core.$strict>>>;
228
+ quests: z.ZodDefault<z.ZodArray<z.ZodObject<{
229
+ quest: z.ZodString;
230
+ actions: z.ZodArray<z.ZodObject<{
231
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
232
+ key: z.ZodOptional<z.ZodString>;
233
+ }, z.core.$strict>>;
234
+ }, z.core.$strict>>>;
235
+ referral: z.ZodOptional<z.ZodObject<{
236
+ inviter: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
237
+ kind: z.ZodTemplateLiteral<`app:${string}`>;
238
+ subject: z.ZodString;
239
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
240
+ kind: z.ZodLiteral<"wallet">;
241
+ chain: z.ZodLiteral<"solana">;
242
+ address: z.ZodString;
243
+ }, z.core.$strict>, z.ZodObject<{
244
+ kind: z.ZodLiteral<"wallet">;
245
+ chain: z.ZodLiteral<"eip155">;
246
+ address: z.ZodString;
247
+ }, z.core.$strict>, z.ZodObject<{
248
+ kind: z.ZodLiteral<"wallet">;
249
+ chain: z.ZodLiteral<"cosmos">;
250
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
251
+ address: z.ZodString;
252
+ }, z.core.$strict>], "chain">, z.ZodObject<{
253
+ kind: z.ZodLiteral<"x">;
254
+ subject: z.ZodString;
255
+ }, z.core.$strict>]>]>;
256
+ acceptedAt: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
257
+ qualified: z.ZodDefault<z.ZodArray<z.ZodObject<{
258
+ program: z.ZodString;
259
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
260
+ }, z.core.$strict>>>;
261
+ }, z.core.$strict>>;
262
+ consent: z.ZodOptional<z.ZodArray<z.ZodObject<{
263
+ channel: z.ZodString;
264
+ state: z.ZodEnum<{
265
+ granted: "granted";
266
+ withdrawn: "withdrawn";
267
+ }>;
268
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
269
+ wording: z.ZodOptional<z.ZodString>;
270
+ }, z.core.$strict>>>;
271
+ }, z.core.$strict>;
272
+ type MemberImportRow = z.output<typeof memberImportRowSchema>;
273
+ type MemberImportRowInput = z.input<typeof memberImportRowSchema>;
274
+ /**
275
+ * One member to import, with every kind of vouched account. `memberImportRowSchema` stays the
276
+ * X-and-wallet form.
277
+ */
278
+ declare const memberImportFullRowSchema: z.ZodObject<{
279
+ ref: z.ZodString;
280
+ identity: z.ZodUnion<readonly [z.ZodObject<{
281
+ kind: z.ZodTemplateLiteral<`app:${string}`>;
282
+ subject: z.ZodString;
283
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
284
+ kind: z.ZodLiteral<"wallet">;
285
+ chain: z.ZodLiteral<"solana">;
286
+ address: z.ZodString;
287
+ }, z.core.$strict>, z.ZodObject<{
288
+ kind: z.ZodLiteral<"wallet">;
289
+ chain: z.ZodLiteral<"eip155">;
290
+ address: z.ZodString;
291
+ }, z.core.$strict>, z.ZodObject<{
292
+ kind: z.ZodLiteral<"wallet">;
293
+ chain: z.ZodLiteral<"cosmos">;
294
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
295
+ address: z.ZodString;
296
+ }, z.core.$strict>], "chain">, z.ZodObject<{
297
+ kind: z.ZodLiteral<"x">;
298
+ subject: z.ZodString;
299
+ }, z.core.$strict>]>;
300
+ points: z.ZodDefault<z.ZodArray<z.ZodObject<{
301
+ ledger: z.ZodString;
302
+ balance: z.ZodNumber;
303
+ }, z.core.$strict>>>;
304
+ quests: z.ZodDefault<z.ZodArray<z.ZodObject<{
305
+ quest: z.ZodString;
306
+ actions: z.ZodArray<z.ZodObject<{
307
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
308
+ key: z.ZodOptional<z.ZodString>;
309
+ }, z.core.$strict>>;
310
+ }, z.core.$strict>>>;
311
+ referral: z.ZodOptional<z.ZodObject<{
312
+ inviter: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
313
+ kind: z.ZodTemplateLiteral<`app:${string}`>;
314
+ subject: z.ZodString;
315
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
316
+ kind: z.ZodLiteral<"wallet">;
317
+ chain: z.ZodLiteral<"solana">;
318
+ address: z.ZodString;
319
+ }, z.core.$strict>, z.ZodObject<{
320
+ kind: z.ZodLiteral<"wallet">;
321
+ chain: z.ZodLiteral<"eip155">;
322
+ address: z.ZodString;
323
+ }, z.core.$strict>, z.ZodObject<{
324
+ kind: z.ZodLiteral<"wallet">;
325
+ chain: z.ZodLiteral<"cosmos">;
326
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
327
+ address: z.ZodString;
328
+ }, z.core.$strict>], "chain">, z.ZodObject<{
329
+ kind: z.ZodLiteral<"x">;
330
+ subject: z.ZodString;
331
+ }, z.core.$strict>]>]>;
332
+ acceptedAt: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
333
+ qualified: z.ZodDefault<z.ZodArray<z.ZodObject<{
334
+ program: z.ZodString;
335
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
336
+ }, z.core.$strict>>>;
337
+ }, z.core.$strict>>;
338
+ consent: z.ZodOptional<z.ZodArray<z.ZodObject<{
339
+ channel: z.ZodString;
340
+ state: z.ZodEnum<{
341
+ granted: "granted";
342
+ withdrawn: "withdrawn";
343
+ }>;
344
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
345
+ wording: z.ZodOptional<z.ZodString>;
346
+ }, z.core.$strict>>>;
347
+ accounts: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
348
+ kind: z.ZodLiteral<"wallet">;
349
+ chain: z.ZodLiteral<"solana">;
350
+ address: z.ZodString;
351
+ }, z.core.$strict>, z.ZodObject<{
352
+ kind: z.ZodLiteral<"wallet">;
353
+ chain: z.ZodLiteral<"eip155">;
354
+ address: z.ZodString;
355
+ }, z.core.$strict>, z.ZodObject<{
356
+ kind: z.ZodLiteral<"wallet">;
357
+ chain: z.ZodLiteral<"cosmos">;
358
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
359
+ address: z.ZodString;
360
+ }, z.core.$strict>], "chain">, z.ZodObject<{
361
+ kind: z.ZodLiteral<"x">;
362
+ subject: z.ZodString;
363
+ }, z.core.$strict>, z.ZodObject<{
364
+ kind: z.ZodLiteral<"telegram">;
365
+ subject: z.ZodString;
366
+ }, z.core.$strict>, z.ZodObject<{
367
+ kind: z.ZodLiteral<"discord">;
368
+ subject: z.ZodString;
369
+ }, z.core.$strict>]>>>;
370
+ }, z.core.$strict>;
371
+ type MemberImportFullRow = z.output<typeof memberImportFullRowSchema>;
372
+ /** @compat input */
373
+ type MemberImportFullRowInput = z.input<typeof memberImportFullRowSchema>;
374
+ declare const memberImportCreateSchema: z.ZodObject<{
375
+ actionId: z.ZodString;
376
+ source: z.ZodString;
377
+ }, z.core.$strict>;
378
+ type MemberImportCreateInput = z.input<typeof memberImportCreateSchema>;
379
+ /**
380
+ * A batch of rows. A row replaces the import's row with the same `ref`; a checked import goes back
381
+ * to `open` and needs another check.
382
+ */
383
+ declare const memberImportRowsInputSchema: z.ZodObject<{
384
+ rows: z.ZodArray<z.ZodObject<{
385
+ ref: z.ZodString;
386
+ identity: z.ZodUnion<readonly [z.ZodObject<{
387
+ kind: z.ZodTemplateLiteral<`app:${string}`>;
388
+ subject: z.ZodString;
389
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
390
+ kind: z.ZodLiteral<"wallet">;
391
+ chain: z.ZodLiteral<"solana">;
392
+ address: z.ZodString;
393
+ }, z.core.$strict>, z.ZodObject<{
394
+ kind: z.ZodLiteral<"wallet">;
395
+ chain: z.ZodLiteral<"eip155">;
396
+ address: z.ZodString;
397
+ }, z.core.$strict>, z.ZodObject<{
398
+ kind: z.ZodLiteral<"wallet">;
399
+ chain: z.ZodLiteral<"cosmos">;
400
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
401
+ address: z.ZodString;
402
+ }, z.core.$strict>], "chain">, z.ZodObject<{
403
+ kind: z.ZodLiteral<"x">;
404
+ subject: z.ZodString;
405
+ }, z.core.$strict>]>;
406
+ accounts: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
407
+ kind: z.ZodLiteral<"wallet">;
408
+ chain: z.ZodLiteral<"solana">;
409
+ address: z.ZodString;
410
+ }, z.core.$strict>, z.ZodObject<{
411
+ kind: z.ZodLiteral<"wallet">;
412
+ chain: z.ZodLiteral<"eip155">;
413
+ address: z.ZodString;
414
+ }, z.core.$strict>, z.ZodObject<{
415
+ kind: z.ZodLiteral<"wallet">;
416
+ chain: z.ZodLiteral<"cosmos">;
417
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
418
+ address: z.ZodString;
419
+ }, z.core.$strict>], "chain">, z.ZodObject<{
420
+ kind: z.ZodLiteral<"x">;
421
+ subject: z.ZodString;
422
+ }, z.core.$strict>]>>>;
423
+ points: z.ZodDefault<z.ZodArray<z.ZodObject<{
424
+ ledger: z.ZodString;
425
+ balance: z.ZodNumber;
426
+ }, z.core.$strict>>>;
427
+ quests: z.ZodDefault<z.ZodArray<z.ZodObject<{
428
+ quest: z.ZodString;
429
+ actions: z.ZodArray<z.ZodObject<{
430
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
431
+ key: z.ZodOptional<z.ZodString>;
432
+ }, z.core.$strict>>;
433
+ }, z.core.$strict>>>;
434
+ referral: z.ZodOptional<z.ZodObject<{
435
+ inviter: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
436
+ kind: z.ZodTemplateLiteral<`app:${string}`>;
437
+ subject: z.ZodString;
438
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
439
+ kind: z.ZodLiteral<"wallet">;
440
+ chain: z.ZodLiteral<"solana">;
441
+ address: z.ZodString;
442
+ }, z.core.$strict>, z.ZodObject<{
443
+ kind: z.ZodLiteral<"wallet">;
444
+ chain: z.ZodLiteral<"eip155">;
445
+ address: z.ZodString;
446
+ }, z.core.$strict>, z.ZodObject<{
447
+ kind: z.ZodLiteral<"wallet">;
448
+ chain: z.ZodLiteral<"cosmos">;
449
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
450
+ address: z.ZodString;
451
+ }, z.core.$strict>], "chain">, z.ZodObject<{
452
+ kind: z.ZodLiteral<"x">;
453
+ subject: z.ZodString;
454
+ }, z.core.$strict>]>]>;
455
+ acceptedAt: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
456
+ qualified: z.ZodDefault<z.ZodArray<z.ZodObject<{
457
+ program: z.ZodString;
458
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
459
+ }, z.core.$strict>>>;
460
+ }, z.core.$strict>>;
461
+ consent: z.ZodOptional<z.ZodArray<z.ZodObject<{
462
+ channel: z.ZodString;
463
+ state: z.ZodEnum<{
464
+ granted: "granted";
465
+ withdrawn: "withdrawn";
466
+ }>;
467
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
468
+ wording: z.ZodOptional<z.ZodString>;
469
+ }, z.core.$strict>>>;
470
+ }, z.core.$strict>>;
471
+ }, z.core.$strict>;
472
+ type MemberImportRowsInput = z.input<typeof memberImportRowsInputSchema>;
473
+ /** A batch of rows with every kind of vouched account, as `memberImportRowsInputSchema`. */
474
+ declare const memberImportFullRowsInputSchema: z.ZodObject<{
475
+ rows: z.ZodArray<z.ZodObject<{
476
+ ref: z.ZodString;
477
+ identity: z.ZodUnion<readonly [z.ZodObject<{
478
+ kind: z.ZodTemplateLiteral<`app:${string}`>;
479
+ subject: z.ZodString;
480
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
481
+ kind: z.ZodLiteral<"wallet">;
482
+ chain: z.ZodLiteral<"solana">;
483
+ address: z.ZodString;
484
+ }, z.core.$strict>, z.ZodObject<{
485
+ kind: z.ZodLiteral<"wallet">;
486
+ chain: z.ZodLiteral<"eip155">;
487
+ address: z.ZodString;
488
+ }, z.core.$strict>, z.ZodObject<{
489
+ kind: z.ZodLiteral<"wallet">;
490
+ chain: z.ZodLiteral<"cosmos">;
491
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
492
+ address: z.ZodString;
493
+ }, z.core.$strict>], "chain">, z.ZodObject<{
494
+ kind: z.ZodLiteral<"x">;
495
+ subject: z.ZodString;
496
+ }, z.core.$strict>]>;
497
+ points: z.ZodDefault<z.ZodArray<z.ZodObject<{
498
+ ledger: z.ZodString;
499
+ balance: z.ZodNumber;
500
+ }, z.core.$strict>>>;
501
+ quests: z.ZodDefault<z.ZodArray<z.ZodObject<{
502
+ quest: z.ZodString;
503
+ actions: z.ZodArray<z.ZodObject<{
504
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
505
+ key: z.ZodOptional<z.ZodString>;
506
+ }, z.core.$strict>>;
507
+ }, z.core.$strict>>>;
508
+ referral: z.ZodOptional<z.ZodObject<{
509
+ inviter: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
510
+ kind: z.ZodTemplateLiteral<`app:${string}`>;
511
+ subject: z.ZodString;
512
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
513
+ kind: z.ZodLiteral<"wallet">;
514
+ chain: z.ZodLiteral<"solana">;
515
+ address: z.ZodString;
516
+ }, z.core.$strict>, z.ZodObject<{
517
+ kind: z.ZodLiteral<"wallet">;
518
+ chain: z.ZodLiteral<"eip155">;
519
+ address: z.ZodString;
520
+ }, z.core.$strict>, z.ZodObject<{
521
+ kind: z.ZodLiteral<"wallet">;
522
+ chain: z.ZodLiteral<"cosmos">;
523
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
524
+ address: z.ZodString;
525
+ }, z.core.$strict>], "chain">, z.ZodObject<{
526
+ kind: z.ZodLiteral<"x">;
527
+ subject: z.ZodString;
528
+ }, z.core.$strict>]>]>;
529
+ acceptedAt: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
530
+ qualified: z.ZodDefault<z.ZodArray<z.ZodObject<{
531
+ program: z.ZodString;
532
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
533
+ }, z.core.$strict>>>;
534
+ }, z.core.$strict>>;
535
+ consent: z.ZodOptional<z.ZodArray<z.ZodObject<{
536
+ channel: z.ZodString;
537
+ state: z.ZodEnum<{
538
+ granted: "granted";
539
+ withdrawn: "withdrawn";
540
+ }>;
541
+ at: z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<number, string>>]>;
542
+ wording: z.ZodOptional<z.ZodString>;
543
+ }, z.core.$strict>>>;
544
+ accounts: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
545
+ kind: z.ZodLiteral<"wallet">;
546
+ chain: z.ZodLiteral<"solana">;
547
+ address: z.ZodString;
548
+ }, z.core.$strict>, z.ZodObject<{
549
+ kind: z.ZodLiteral<"wallet">;
550
+ chain: z.ZodLiteral<"eip155">;
551
+ address: z.ZodString;
552
+ }, z.core.$strict>, z.ZodObject<{
553
+ kind: z.ZodLiteral<"wallet">;
554
+ chain: z.ZodLiteral<"cosmos">;
555
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
556
+ address: z.ZodString;
557
+ }, z.core.$strict>], "chain">, z.ZodObject<{
558
+ kind: z.ZodLiteral<"x">;
559
+ subject: z.ZodString;
560
+ }, z.core.$strict>, z.ZodObject<{
561
+ kind: z.ZodLiteral<"telegram">;
562
+ subject: z.ZodString;
563
+ }, z.core.$strict>, z.ZodObject<{
564
+ kind: z.ZodLiteral<"discord">;
565
+ subject: z.ZodString;
566
+ }, z.core.$strict>]>>>;
567
+ }, z.core.$strict>>;
568
+ }, z.core.$strict>;
569
+ /** @compat input */
570
+ type MemberImportFullRowsInput = z.input<typeof memberImportFullRowsInputSchema>;
571
+ /** @compat open */
572
+ type KnownMemberImportRefusalCode = (typeof MemberImportRefusalCode)[keyof typeof MemberImportRefusalCode];
573
+ /** Why a row is refused. */
574
+ declare const MemberImportRefusalCode: {
575
+ /** An account or identity belongs to another member in the project. */
576
+ readonly AccountLinkedElsewhere: "account-linked-elsewhere";
577
+ /** An operator unlinked the row's app identity. */
578
+ readonly IdentityUnlinked: "identity-unlinked";
579
+ /** An earlier row of the import names the same account. */
580
+ readonly DuplicateAccount: "duplicate-account";
581
+ /** The row names two X accounts, or the member already has another X account selected. */
582
+ readonly XAccountSelected: "x-account-selected";
583
+ /** The row names two Telegram accounts, or the member already has another one selected. */
584
+ readonly TelegramAccountSelected: "telegram-account-selected";
585
+ /** The row names two Discord accounts, or the member already has another one selected. */
586
+ readonly DiscordAccountSelected: "discord-account-selected";
587
+ /** The member would hold more wallets of a chain family than a member can link. */
588
+ readonly LimitReached: "limit-reached";
589
+ readonly UnknownLedger: "unknown-ledger";
590
+ readonly UnknownQuest: "unknown-quest";
591
+ /** The quest has no active release in this environment. */
592
+ readonly QuestNotPublished: "quest-not-published";
593
+ /** The quest's completions are decided per content item, which an import cannot record. */
594
+ readonly QuestNotImportable: "quest-not-importable";
595
+ /** A keyed quest's action has no `key`. */
596
+ readonly KeyRequired: "key-required";
597
+ /**
598
+ * An action's key, on a quest whose keys are unique across members, is used by another member's
599
+ * completion or by an earlier row of the import.
600
+ */
601
+ readonly KeyUsed: "key-used";
602
+ /** An action, a referral or a consent is dated in the future. */
603
+ readonly FutureAction: "future-action";
604
+ /** A consent names a channel Relay does not record consent for. */
605
+ readonly UnsupportedConsentChannel: "unsupported-consent-channel";
606
+ /** A granted consent has no wording. */
607
+ readonly ConsentWordingRequired: "consent-wording-required";
608
+ /** A consent's wording is longer than `consentWordingMaxLength` characters. */
609
+ readonly ConsentWordingTooLong: "consent-wording-too-long";
610
+ /** A consent's wording is not plain text: it has a NUL or a lone surrogate. */
611
+ readonly ConsentWordingInvalid: "consent-wording-invalid";
612
+ /** The row's sign-in wallet or X account is linked to its member without sign-in. */
613
+ readonly SignInDisabled: "sign-in-disabled";
614
+ /**
615
+ * The row names one point ledger, quest or referral program twice, by any of its names, or one
616
+ * consent channel twice.
617
+ */
618
+ readonly DuplicateEntry: "duplicate-entry";
619
+ /** The inviter is no row of this import, and no member of the environment signs in with it. */
620
+ readonly UnknownInviter: "unknown-inviter";
621
+ /** The row names its own member as the inviter. */
622
+ readonly SelfReferral: "self-referral";
623
+ /** The member already has an inviter. An import never replaces one. */
624
+ readonly InviterAlreadyAccepted: "inviter-already-accepted";
625
+ /** The inviter was invited, directly or through others, by this row's member. */
626
+ readonly ReferralCycle: "referral-cycle";
627
+ /** The row that names the inviter was refused, so the inviter is never imported. */
628
+ readonly InviterRefused: "inviter-refused";
629
+ /** No referral program of that key or ID in this environment, or it is archived. */
630
+ readonly UnknownReferralProgram: "unknown-referral-program";
631
+ };
632
+ type MemberImportRefusalCode = KnownMemberImportRefusalCode | (string & {});
633
+ declare const memberImportRefusalSchema: z.ZodObject<{
634
+ code: z.ZodType<MemberImportRefusalCode, unknown, z.core.$ZodTypeInternals<MemberImportRefusalCode, unknown>>;
635
+ message: z.ZodString;
636
+ }, z.core.$strip>;
637
+ type MemberImportRefusal = z.infer<typeof memberImportRefusalSchema>;
638
+ /**
639
+ * What one row does, or did. A checked row is `ready` or `refused`; applying it makes it
640
+ * `applied` or `refused` (checked again against the project as it is then). A reverted row stays
641
+ * `applied`, with `reverted` true.
642
+ */
643
+ declare const memberImportRowResultSchema: z.ZodObject<{
644
+ line: z.ZodNumber;
645
+ ref: z.ZodString;
646
+ status: z.ZodEnum<{
647
+ pending: "pending";
648
+ ready: "ready";
649
+ applied: "applied";
650
+ refused: "refused";
651
+ }>;
652
+ member: z.ZodNullable<z.ZodString>;
653
+ existing: z.ZodNullable<z.ZodBoolean>;
654
+ refusals: z.ZodArray<z.ZodObject<{
655
+ code: z.ZodType<MemberImportRefusalCode, unknown, z.core.$ZodTypeInternals<MemberImportRefusalCode, unknown>>;
656
+ message: z.ZodString;
657
+ }, z.core.$strip>>;
658
+ reverted: z.ZodOptional<z.ZodBoolean>;
659
+ }, z.core.$strip>;
660
+ type MemberImportRowResult = z.infer<typeof memberImportRowResultSchema>;
661
+ declare const memberImportRowPageSchema: z.ZodObject<{
662
+ items: z.ZodArray<z.ZodObject<{
663
+ line: z.ZodNumber;
664
+ ref: z.ZodString;
665
+ status: z.ZodEnum<{
666
+ pending: "pending";
667
+ ready: "ready";
668
+ applied: "applied";
669
+ refused: "refused";
670
+ }>;
671
+ member: z.ZodNullable<z.ZodString>;
672
+ existing: z.ZodNullable<z.ZodBoolean>;
673
+ refusals: z.ZodArray<z.ZodObject<{
674
+ code: z.ZodType<MemberImportRefusalCode, unknown, z.core.$ZodTypeInternals<MemberImportRefusalCode, unknown>>;
675
+ message: z.ZodString;
676
+ }, z.core.$strip>>;
677
+ reverted: z.ZodOptional<z.ZodBoolean>;
678
+ }, z.core.$strip>>;
679
+ nextCursor: z.ZodNullable<z.ZodString>;
680
+ }, z.core.$strip>;
681
+ declare const memberImportRowQuerySchema: z.ZodObject<{
682
+ status: z.ZodOptional<z.ZodEnum<{
683
+ pending: "pending";
684
+ ready: "ready";
685
+ applied: "applied";
686
+ refused: "refused";
687
+ }>>;
688
+ cursor: z.ZodOptional<z.ZodString>;
689
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
690
+ }, z.core.$strict>;
691
+ type MemberImportRowQuery = z.input<typeof memberImportRowQuerySchema>;
692
+ /** What the rows that are ready would create, link, set and record, and how many were refused. */
693
+ declare const memberImportSummarySchema: z.ZodObject<{
694
+ rows: z.ZodNumber;
695
+ ready: z.ZodNumber;
696
+ refused: z.ZodNumber;
697
+ members: z.ZodObject<{
698
+ created: z.ZodNumber;
699
+ existing: z.ZodNumber;
700
+ }, z.core.$strip>;
701
+ accounts: z.ZodNumber;
702
+ points: z.ZodArray<z.ZodObject<{
703
+ ledger: z.ZodString;
704
+ total: z.ZodNumber;
705
+ }, z.core.$strip>>;
706
+ actions: z.ZodArray<z.ZodObject<{
707
+ quest: z.ZodString;
708
+ total: z.ZodNumber;
709
+ }, z.core.$strip>>;
710
+ referrals: z.ZodOptional<z.ZodObject<{
711
+ accepted: z.ZodNumber;
712
+ qualified: z.ZodArray<z.ZodObject<{
713
+ program: z.ZodString;
714
+ total: z.ZodNumber;
715
+ }, z.core.$strip>>;
716
+ }, z.core.$strip>>;
717
+ refusals: z.ZodArray<z.ZodObject<{
718
+ code: z.ZodType<MemberImportRefusalCode, unknown, z.core.$ZodTypeInternals<MemberImportRefusalCode, unknown>>;
719
+ rows: z.ZodNumber;
720
+ }, z.core.$strip>>;
721
+ }, z.core.$strip>;
722
+ type MemberImportSummary = z.infer<typeof memberImportSummarySchema>;
723
+ /**
724
+ * Checking, applying, cancelling or stopping an import: the action ID that makes a retry answer
725
+ * with the first result. Optional on the wire, since SDK 1.0 sent an empty body.
726
+ */
727
+ declare const memberImportCommandSchema: z.ZodObject<{
728
+ actionId: z.ZodOptional<z.ZodString>;
729
+ }, z.core.$strict>;
730
+ type MemberImportCommandInput = z.input<typeof memberImportCommandSchema>;
731
+ /** Reverting an import: why, for the audit log and the reversing point entries. */
732
+ declare const memberImportRevertInputSchema: z.ZodObject<{
733
+ actionId: z.ZodString;
734
+ reason: z.ZodString;
735
+ }, z.core.$strict>;
736
+ type MemberImportRevertInput = z.input<typeof memberImportRevertInputSchema>;
737
+ /**
738
+ * What reverting an import took back from its applied rows: the opening balances (reversed by
739
+ * point entries that name the import, as far as the members still have the points), the imported
740
+ * completions (revoked, freeing their occurrences) and the links the rows created that nobody
741
+ * relied on. The members it created stay members of the project.
742
+ */
743
+ declare const memberImportRevertOutcomeSchema: z.ZodObject<{
744
+ reversed: z.ZodObject<{
745
+ rows: z.ZodNumber;
746
+ entries: z.ZodNumber;
747
+ completions: z.ZodNumber;
748
+ links: z.ZodNumber;
749
+ }, z.core.$strip>;
750
+ unreversedPoints: z.ZodArray<z.ZodObject<{
751
+ member: z.ZodString;
752
+ ledger: z.ZodString;
753
+ amount: z.ZodNumber;
754
+ }, z.core.$strip>>;
755
+ keptLinks: z.ZodArray<z.ZodObject<{
756
+ member: z.ZodString;
757
+ kind: z.ZodString;
758
+ account: z.ZodString;
759
+ reason: z.ZodString;
760
+ }, z.core.$strip>>;
761
+ linksUntracked: z.ZodBoolean;
762
+ }, z.core.$strip>;
763
+ type MemberImportRevertOutcome = z.infer<typeof memberImportRevertOutcomeSchema>;
764
+ /**
765
+ * A revert of an applied or stopped import. It runs in the background, one applied row at a
766
+ * time: `revertedAt` and `outcome` are null until every applied row is reverted.
767
+ */
768
+ declare const memberImportRevertSchema: z.ZodObject<{
769
+ reason: z.ZodString;
770
+ requestedAt: z.ZodNumber;
771
+ requestedBy: z.ZodNullable<z.ZodString>;
772
+ rows: z.ZodNumber;
773
+ revertedAt: z.ZodNullable<z.ZodNumber>;
774
+ outcome: z.ZodNullable<z.ZodObject<{
775
+ reversed: z.ZodObject<{
776
+ rows: z.ZodNumber;
777
+ entries: z.ZodNumber;
778
+ completions: z.ZodNumber;
779
+ links: z.ZodNumber;
780
+ }, z.core.$strip>;
781
+ unreversedPoints: z.ZodArray<z.ZodObject<{
782
+ member: z.ZodString;
783
+ ledger: z.ZodString;
784
+ amount: z.ZodNumber;
785
+ }, z.core.$strip>>;
786
+ keptLinks: z.ZodArray<z.ZodObject<{
787
+ member: z.ZodString;
788
+ kind: z.ZodString;
789
+ account: z.ZodString;
790
+ reason: z.ZodString;
791
+ }, z.core.$strip>>;
792
+ linksUntracked: z.ZodBoolean;
793
+ }, z.core.$strip>>;
794
+ }, z.core.$strip>;
795
+ type MemberImportRevert = z.infer<typeof memberImportRevertSchema>;
796
+ /** @compat open */
797
+ type KnownMemberImportState = (typeof MemberImportState)[keyof typeof MemberImportState];
798
+ /** Where an import is. `MemberImport.state` is open: Relay may add states. */
799
+ declare const MemberImportState: {
800
+ /** Rows are being added. */
801
+ readonly Open: "open";
802
+ /** The check (the dry run) is running. */
803
+ readonly Checking: "checking";
804
+ /** Checked, with a summary; it can be applied. */
805
+ readonly Checked: "checked";
806
+ /** Applying its ready rows, in the background. */
807
+ readonly Applying: "applying";
808
+ /** Every ready row was applied or refused. */
809
+ readonly Applied: "applied";
810
+ /** Stopped while applying: the rows it did not reach stay `ready`, and it can't be applied again. */
811
+ readonly Stopped: "stopped";
812
+ /** Its revert is taking back what its applied rows granted, in the background. */
813
+ readonly Reverting: "reverting";
814
+ /** Its revert went through every applied row. */
815
+ readonly Reverted: "reverted";
816
+ /** Canceled before it was applied. */
817
+ readonly Canceled: "canceled";
818
+ };
819
+ type MemberImportState = KnownMemberImportState | (string & {});
820
+ /**
821
+ * An import of members, opening point balances, quest progress and referrals into one project and
822
+ * environment. Rows are added while it is `open`; a check (the dry run) makes it `checked` with a
823
+ * summary; applying it makes it `applied`. Stopping an `applying` import lets the row being applied
824
+ * finish and ends it: it is `stopped`, with `appliedAt` null, its remaining rows stay `ready`, and
825
+ * it can't be applied again. Reverting an applied or stopped import takes back what its applied
826
+ * rows granted, in the background: it is `reverting`, then `reverted`. A live import is applied
827
+ * only by a person signed in to Console with publish permission.
828
+ *
829
+ * Read `state`. `status` is its 1.x form, whose closed enum can't gain a value: a stopped,
830
+ * reverting or reverted import has `status: "applied"`.
831
+ */
832
+ declare const memberImportSchema: z.ZodObject<{
833
+ id: z.ZodString;
834
+ source: z.ZodString;
835
+ state: z.ZodOptional<z.ZodType<MemberImportState, unknown, z.core.$ZodTypeInternals<MemberImportState, unknown>>>;
836
+ status: z.ZodEnum<{
837
+ open: "open";
838
+ checking: "checking";
839
+ canceled: "canceled";
840
+ applied: "applied";
841
+ checked: "checked";
842
+ applying: "applying";
843
+ }>;
844
+ rows: z.ZodNumber;
845
+ summary: z.ZodNullable<z.ZodObject<{
846
+ rows: z.ZodNumber;
847
+ ready: z.ZodNumber;
848
+ refused: z.ZodNumber;
849
+ members: z.ZodObject<{
850
+ created: z.ZodNumber;
851
+ existing: z.ZodNumber;
852
+ }, z.core.$strip>;
853
+ accounts: z.ZodNumber;
854
+ points: z.ZodArray<z.ZodObject<{
855
+ ledger: z.ZodString;
856
+ total: z.ZodNumber;
857
+ }, z.core.$strip>>;
858
+ actions: z.ZodArray<z.ZodObject<{
859
+ quest: z.ZodString;
860
+ total: z.ZodNumber;
861
+ }, z.core.$strip>>;
862
+ referrals: z.ZodOptional<z.ZodObject<{
863
+ accepted: z.ZodNumber;
864
+ qualified: z.ZodArray<z.ZodObject<{
865
+ program: z.ZodString;
866
+ total: z.ZodNumber;
867
+ }, z.core.$strip>>;
868
+ }, z.core.$strip>>;
869
+ refusals: z.ZodArray<z.ZodObject<{
870
+ code: z.ZodType<MemberImportRefusalCode, unknown, z.core.$ZodTypeInternals<MemberImportRefusalCode, unknown>>;
871
+ rows: z.ZodNumber;
872
+ }, z.core.$strip>>;
873
+ }, z.core.$strip>>;
874
+ progress: z.ZodObject<{
875
+ applied: z.ZodNumber;
876
+ refused: z.ZodNumber;
877
+ }, z.core.$strip>;
878
+ createdAt: z.ZodNumber;
879
+ createdBy: z.ZodNullable<z.ZodString>;
880
+ checkedAt: z.ZodNullable<z.ZodNumber>;
881
+ appliedAt: z.ZodNullable<z.ZodNumber>;
882
+ appliedBy: z.ZodNullable<z.ZodString>;
883
+ canceledAt: z.ZodNullable<z.ZodNumber>;
884
+ canceledBy: z.ZodNullable<z.ZodString>;
885
+ stoppedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
886
+ stoppedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
887
+ revert: z.ZodOptional<z.ZodNullable<z.ZodObject<{
888
+ reason: z.ZodString;
889
+ requestedAt: z.ZodNumber;
890
+ requestedBy: z.ZodNullable<z.ZodString>;
891
+ rows: z.ZodNumber;
892
+ revertedAt: z.ZodNullable<z.ZodNumber>;
893
+ outcome: z.ZodNullable<z.ZodObject<{
894
+ reversed: z.ZodObject<{
895
+ rows: z.ZodNumber;
896
+ entries: z.ZodNumber;
897
+ completions: z.ZodNumber;
898
+ links: z.ZodNumber;
899
+ }, z.core.$strip>;
900
+ unreversedPoints: z.ZodArray<z.ZodObject<{
901
+ member: z.ZodString;
902
+ ledger: z.ZodString;
903
+ amount: z.ZodNumber;
904
+ }, z.core.$strip>>;
905
+ keptLinks: z.ZodArray<z.ZodObject<{
906
+ member: z.ZodString;
907
+ kind: z.ZodString;
908
+ account: z.ZodString;
909
+ reason: z.ZodString;
910
+ }, z.core.$strip>>;
911
+ linksUntracked: z.ZodBoolean;
912
+ }, z.core.$strip>>;
913
+ }, z.core.$strip>>>;
914
+ }, z.core.$strip>;
915
+ type MemberImport = z.infer<typeof memberImportSchema>;
916
+ declare const memberImportPageSchema: z.ZodObject<{
917
+ items: z.ZodArray<z.ZodObject<{
918
+ id: z.ZodString;
919
+ source: z.ZodString;
920
+ state: z.ZodOptional<z.ZodType<MemberImportState, unknown, z.core.$ZodTypeInternals<MemberImportState, unknown>>>;
921
+ status: z.ZodEnum<{
922
+ open: "open";
923
+ checking: "checking";
924
+ canceled: "canceled";
925
+ applied: "applied";
926
+ checked: "checked";
927
+ applying: "applying";
928
+ }>;
929
+ rows: z.ZodNumber;
930
+ summary: z.ZodNullable<z.ZodObject<{
931
+ rows: z.ZodNumber;
932
+ ready: z.ZodNumber;
933
+ refused: z.ZodNumber;
934
+ members: z.ZodObject<{
935
+ created: z.ZodNumber;
936
+ existing: z.ZodNumber;
937
+ }, z.core.$strip>;
938
+ accounts: z.ZodNumber;
939
+ points: z.ZodArray<z.ZodObject<{
940
+ ledger: z.ZodString;
941
+ total: z.ZodNumber;
942
+ }, z.core.$strip>>;
943
+ actions: z.ZodArray<z.ZodObject<{
944
+ quest: z.ZodString;
945
+ total: z.ZodNumber;
946
+ }, z.core.$strip>>;
947
+ referrals: z.ZodOptional<z.ZodObject<{
948
+ accepted: z.ZodNumber;
949
+ qualified: z.ZodArray<z.ZodObject<{
950
+ program: z.ZodString;
951
+ total: z.ZodNumber;
952
+ }, z.core.$strip>>;
953
+ }, z.core.$strip>>;
954
+ refusals: z.ZodArray<z.ZodObject<{
955
+ code: z.ZodType<MemberImportRefusalCode, unknown, z.core.$ZodTypeInternals<MemberImportRefusalCode, unknown>>;
956
+ rows: z.ZodNumber;
957
+ }, z.core.$strip>>;
958
+ }, z.core.$strip>>;
959
+ progress: z.ZodObject<{
960
+ applied: z.ZodNumber;
961
+ refused: z.ZodNumber;
962
+ }, z.core.$strip>;
963
+ createdAt: z.ZodNumber;
964
+ createdBy: z.ZodNullable<z.ZodString>;
965
+ checkedAt: z.ZodNullable<z.ZodNumber>;
966
+ appliedAt: z.ZodNullable<z.ZodNumber>;
967
+ appliedBy: z.ZodNullable<z.ZodString>;
968
+ canceledAt: z.ZodNullable<z.ZodNumber>;
969
+ canceledBy: z.ZodNullable<z.ZodString>;
970
+ stoppedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
971
+ stoppedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
972
+ revert: z.ZodOptional<z.ZodNullable<z.ZodObject<{
973
+ reason: z.ZodString;
974
+ requestedAt: z.ZodNumber;
975
+ requestedBy: z.ZodNullable<z.ZodString>;
976
+ rows: z.ZodNumber;
977
+ revertedAt: z.ZodNullable<z.ZodNumber>;
978
+ outcome: z.ZodNullable<z.ZodObject<{
979
+ reversed: z.ZodObject<{
980
+ rows: z.ZodNumber;
981
+ entries: z.ZodNumber;
982
+ completions: z.ZodNumber;
983
+ links: z.ZodNumber;
984
+ }, z.core.$strip>;
985
+ unreversedPoints: z.ZodArray<z.ZodObject<{
986
+ member: z.ZodString;
987
+ ledger: z.ZodString;
988
+ amount: z.ZodNumber;
989
+ }, z.core.$strip>>;
990
+ keptLinks: z.ZodArray<z.ZodObject<{
991
+ member: z.ZodString;
992
+ kind: z.ZodString;
993
+ account: z.ZodString;
994
+ reason: z.ZodString;
995
+ }, z.core.$strip>>;
996
+ linksUntracked: z.ZodBoolean;
997
+ }, z.core.$strip>>;
998
+ }, z.core.$strip>>>;
999
+ }, z.core.$strip>>;
1000
+ nextCursor: z.ZodNullable<z.ZodString>;
1001
+ }, z.core.$strip>;
1002
+ declare const memberImportListQuerySchema: z.ZodObject<{
1003
+ cursor: z.ZodOptional<z.ZodString>;
1004
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1005
+ }, z.core.$strict>;
1006
+ type MemberImportListQuery = z.input<typeof memberImportListQuerySchema>;
1007
+
1008
+ declare const identityIntegrationInputSchema: z.ZodObject<{
1009
+ name: z.ZodString;
1010
+ origin: z.ZodString;
1011
+ identityKind: z.ZodOptional<z.ZodTemplateLiteral<`app:${string}`>>;
1012
+ adoptIdentitiesFrom: z.ZodOptional<z.ZodString>;
1013
+ reason: z.ZodOptional<z.ZodString>;
1014
+ expiresInDays: z.ZodOptional<z.ZodNumber>;
1015
+ }, z.core.$strict>;
1016
+ /** An integration as responses return it: fields a newer Relay adds are ignored. */
1017
+ declare const identityIntegrationSchema: z.ZodObject<{
1018
+ id: z.ZodString;
1019
+ name: z.ZodString;
1020
+ origin: z.ZodString;
1021
+ expiresAt: z.ZodNumber;
1022
+ secrets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1023
+ id: z.ZodString;
1024
+ hint: z.ZodNullable<z.ZodString>;
1025
+ createdAt: z.ZodNumber;
1026
+ expiresAt: z.ZodNullable<z.ZodNumber>;
1027
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
1028
+ }, z.core.$strip>>>;
1029
+ lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1030
+ identityKind: z.ZodDefault<z.ZodNullable<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
1031
+ vouchesAccounts: z.ZodDefault<z.ZodBoolean>;
1032
+ organization: z.ZodString;
1033
+ project: z.ZodString;
1034
+ environment: z.ZodEnum<{
1035
+ test: "test";
1036
+ live: "live";
1037
+ }>;
1038
+ }, z.core.$strip>;
1039
+ type IdentityIntegration = z.infer<typeof identityIntegrationSchema>;
1040
+ declare const identityIntegrationSecretSchema: z.ZodObject<{
1041
+ id: z.ZodString;
1042
+ name: z.ZodString;
1043
+ origin: z.ZodString;
1044
+ expiresAt: z.ZodNumber;
1045
+ secrets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1046
+ id: z.ZodString;
1047
+ hint: z.ZodNullable<z.ZodString>;
1048
+ createdAt: z.ZodNumber;
1049
+ expiresAt: z.ZodNullable<z.ZodNumber>;
1050
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
1051
+ }, z.core.$strip>>>;
1052
+ lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1053
+ identityKind: z.ZodDefault<z.ZodNullable<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
1054
+ vouchesAccounts: z.ZodDefault<z.ZodBoolean>;
1055
+ organization: z.ZodString;
1056
+ project: z.ZodString;
1057
+ environment: z.ZodEnum<{
1058
+ test: "test";
1059
+ live: "live";
1060
+ }>;
1061
+ token: z.ZodString;
1062
+ }, z.core.$strip>;
1063
+ /**
1064
+ * An `app:<name>` kind claimed in the project and environment, and the integration that owns its
1065
+ * identities: the live one, or the disconnected one a new integration would adopt them from.
1066
+ */
1067
+ declare const identityKindClaimSchema: z.ZodObject<{
1068
+ kind: z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>;
1069
+ integration: z.ZodString;
1070
+ integrationName: z.ZodString;
1071
+ connected: z.ZodBoolean;
1072
+ linked: z.ZodNumber;
1073
+ unlinked: z.ZodNumber;
1074
+ claimedAt: z.ZodNumber;
1075
+ }, z.core.$strip>;
1076
+ type IdentityKindClaim = z.infer<typeof identityKindClaimSchema>;
1077
+ /**
1078
+ * Turns account vouching on or off for an integration. Needs publish permission and a reason, which
1079
+ * the audit log keeps. With an `actionId`, a retry answers with the first result.
1080
+ */
1081
+ declare const identityIntegrationAccountVouchingInputSchema: z.ZodObject<{
1082
+ enabled: z.ZodBoolean;
1083
+ reason: z.ZodString;
1084
+ actionId: z.ZodOptional<z.ZodString>;
1085
+ }, z.core.$strict>;
1086
+ type IdentityIntegrationAccountVouchingInput = z.input<typeof identityIntegrationAccountVouchingInputSchema>;
1087
+ /**
1088
+ * The accounts an app's server vouches for when it signs a member in, as a member import's row
1089
+ * names them: wallets, and at most one X, Telegram and Discord account each, by numeric user ID.
1090
+ */
1091
+ declare const participantExchangeAccountsSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1092
+ kind: z.ZodLiteral<"wallet">;
1093
+ chain: z.ZodLiteral<"solana">;
1094
+ address: z.ZodString;
1095
+ }, z.core.$strict>, z.ZodObject<{
1096
+ kind: z.ZodLiteral<"wallet">;
1097
+ chain: z.ZodLiteral<"eip155">;
1098
+ address: z.ZodString;
1099
+ }, z.core.$strict>, z.ZodObject<{
1100
+ kind: z.ZodLiteral<"wallet">;
1101
+ chain: z.ZodLiteral<"cosmos">;
1102
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
1103
+ address: z.ZodString;
1104
+ }, z.core.$strict>], "chain">, z.ZodObject<{
1105
+ kind: z.ZodLiteral<"x">;
1106
+ subject: z.ZodString;
1107
+ }, z.core.$strict>, z.ZodObject<{
1108
+ kind: z.ZodLiteral<"telegram">;
1109
+ subject: z.ZodString;
1110
+ }, z.core.$strict>, z.ZodObject<{
1111
+ kind: z.ZodLiteral<"discord">;
1112
+ subject: z.ZodString;
1113
+ }, z.core.$strict>]>>;
1114
+ declare const participantExchangeSchema: z.ZodObject<{
1115
+ subject: z.ZodString;
1116
+ previousToken: z.ZodOptional<z.ZodString>;
1117
+ accounts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1118
+ kind: z.ZodLiteral<"wallet">;
1119
+ chain: z.ZodLiteral<"solana">;
1120
+ address: z.ZodString;
1121
+ }, z.core.$strict>, z.ZodObject<{
1122
+ kind: z.ZodLiteral<"wallet">;
1123
+ chain: z.ZodLiteral<"eip155">;
1124
+ address: z.ZodString;
1125
+ }, z.core.$strict>, z.ZodObject<{
1126
+ kind: z.ZodLiteral<"wallet">;
1127
+ chain: z.ZodLiteral<"cosmos">;
1128
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
1129
+ address: z.ZodString;
1130
+ }, z.core.$strict>], "chain">, z.ZodObject<{
1131
+ kind: z.ZodLiteral<"x">;
1132
+ subject: z.ZodString;
1133
+ }, z.core.$strict>, z.ZodObject<{
1134
+ kind: z.ZodLiteral<"telegram">;
1135
+ subject: z.ZodString;
1136
+ }, z.core.$strict>, z.ZodObject<{
1137
+ kind: z.ZodLiteral<"discord">;
1138
+ subject: z.ZodString;
1139
+ }, z.core.$strict>]>>>;
1140
+ }, z.core.$strict>;
1141
+ type ParticipantExchangeInput = z.input<typeof participantExchangeSchema>;
1142
+ /**
1143
+ * What the exchange did with one vouched account: `attached` it, found it `already-linked` to the
1144
+ * member (nothing changed), or `refused` it with a member import's refusal `code`, such as
1145
+ * `account-linked-elsewhere` or `x-account-selected`. A refused account never refuses the sign-in.
1146
+ */
1147
+ declare const participantExchangeAccountResultSchema: z.ZodObject<{
1148
+ account: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1149
+ kind: z.ZodLiteral<"wallet">;
1150
+ chain: z.ZodLiteral<"solana">;
1151
+ address: z.ZodString;
1152
+ }, z.core.$strict>, z.ZodObject<{
1153
+ kind: z.ZodLiteral<"wallet">;
1154
+ chain: z.ZodLiteral<"eip155">;
1155
+ address: z.ZodString;
1156
+ }, z.core.$strict>, z.ZodObject<{
1157
+ kind: z.ZodLiteral<"wallet">;
1158
+ chain: z.ZodLiteral<"cosmos">;
1159
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
1160
+ address: z.ZodString;
1161
+ }, z.core.$strict>], "chain">, z.ZodObject<{
1162
+ kind: z.ZodLiteral<"x">;
1163
+ subject: z.ZodString;
1164
+ }, z.core.$strict>, z.ZodObject<{
1165
+ kind: z.ZodLiteral<"telegram">;
1166
+ subject: z.ZodString;
1167
+ }, z.core.$strict>, z.ZodObject<{
1168
+ kind: z.ZodLiteral<"discord">;
1169
+ subject: z.ZodString;
1170
+ }, z.core.$strict>]>;
1171
+ status: z.ZodType<"attached" | "already-linked" | "refused" | (string & {})>;
1172
+ code: z.ZodOptional<z.ZodType<MemberImportRefusalCode, unknown, z.core.$ZodTypeInternals<MemberImportRefusalCode, unknown>>>;
1173
+ message: z.ZodOptional<z.ZodString>;
1174
+ }, z.core.$strip>;
1175
+ type ParticipantExchangeAccountResult = z.infer<typeof participantExchangeAccountResultSchema>;
1176
+ /**
1177
+ * An exchange's answer: the member's session token and session, and, when the request vouched for
1178
+ * accounts, what happened to each, in the order they were sent.
1179
+ */
1180
+ declare const participantExchangeResultSchema: z.ZodObject<{
1181
+ token: z.ZodString;
1182
+ session: z.ZodObject<{
1183
+ id: z.ZodString;
1184
+ principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
1185
+ kind: z.ZodLiteral<"member">;
1186
+ member: z.ZodString;
1187
+ }, z.core.$strip>, z.ZodObject<{
1188
+ kind: z.ZodLiteral<"staff">;
1189
+ subject: z.ZodString;
1190
+ }, z.core.$strip>, z.ZodObject<{
1191
+ kind: z.ZodLiteral<"operator">;
1192
+ subject: z.ZodString;
1193
+ }, z.core.$strip>], "kind">;
1194
+ expiresAt: z.ZodNumber;
1195
+ organization: z.ZodString;
1196
+ project: z.ZodString;
1197
+ environment: z.ZodEnum<{
1198
+ test: "test";
1199
+ live: "live";
1200
+ }>;
1201
+ }, z.core.$strip>;
1202
+ accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1203
+ account: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1204
+ kind: z.ZodLiteral<"wallet">;
1205
+ chain: z.ZodLiteral<"solana">;
1206
+ address: z.ZodString;
1207
+ }, z.core.$strict>, z.ZodObject<{
1208
+ kind: z.ZodLiteral<"wallet">;
1209
+ chain: z.ZodLiteral<"eip155">;
1210
+ address: z.ZodString;
1211
+ }, z.core.$strict>, z.ZodObject<{
1212
+ kind: z.ZodLiteral<"wallet">;
1213
+ chain: z.ZodLiteral<"cosmos">;
1214
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
1215
+ address: z.ZodString;
1216
+ }, z.core.$strict>], "chain">, z.ZodObject<{
1217
+ kind: z.ZodLiteral<"x">;
1218
+ subject: z.ZodString;
1219
+ }, z.core.$strict>, z.ZodObject<{
1220
+ kind: z.ZodLiteral<"telegram">;
1221
+ subject: z.ZodString;
1222
+ }, z.core.$strict>, z.ZodObject<{
1223
+ kind: z.ZodLiteral<"discord">;
1224
+ subject: z.ZodString;
1225
+ }, z.core.$strict>]>;
1226
+ status: z.ZodType<"attached" | "already-linked" | "refused" | (string & {})>;
1227
+ code: z.ZodOptional<z.ZodType<MemberImportRefusalCode, unknown, z.core.$ZodTypeInternals<MemberImportRefusalCode, unknown>>>;
1228
+ message: z.ZodOptional<z.ZodString>;
1229
+ }, z.core.$strip>>>;
1230
+ }, z.core.$strip>;
1231
+ type ParticipantExchangeResult = z.infer<typeof participantExchangeResultSchema>;
1232
+ /**
1233
+ * The app login whose server vouched for an account when it signed the member in.
1234
+ */
1235
+ declare const accountVouchedBySchema: z.ZodObject<{
1236
+ integration: z.ZodString;
1237
+ integrationName: z.ZodString;
1238
+ }, z.core.$strip>;
1239
+ type AccountVouchedBy = z.infer<typeof accountVouchedBySchema>;
1240
+
1241
+ export { memberImportListQuerySchema as $, type AccountVouchedBy as A, type MemberImportConsent as B, type MemberImportFullRow as C, type MemberImportFullRowsInput as D, type MemberImportIdentity as E, type MemberImportReferral as F, type MemberImportRefusal as G, type MemberImportRevert as H, type IdentityIntegration as I, type MemberImportRevertOutcome as J, type KnownMemberImportRefusalCode as K, type MemberImportRow as L, type MemberImportVouchedAccount as M, type MemberImportRowInput as N, type MemberImportRowResult as O, type ParticipantExchangeAccountResult as P, type MemberImportRowsInput as Q, type MemberImportSummary as R, identityReferenceSchema as S, memberImportAccountSchema as T, memberImportActionSchema as U, memberImportCommandSchema as V, memberImportConsentSchema as W, memberImportCreateSchema as X, memberImportFullRowSchema as Y, memberImportFullRowsInputSchema as Z, memberImportIdentitySchema as _, type IdentityIntegrationAccountVouchingInput as a, memberImportPageSchema as a0, memberImportReferralSchema as a1, memberImportRefusalSchema as a2, memberImportRevertInputSchema as a3, memberImportRevertOutcomeSchema as a4, memberImportRevertSchema as a5, memberImportRowPageSchema as a6, memberImportRowQuerySchema as a7, memberImportRowResultSchema as a8, memberImportRowSchema as a9, memberImportRowsInputSchema as aa, memberImportSchema as ab, memberImportSummarySchema as ac, memberImportVouchedAccountSchema as ad, type IdentityKindClaim as b, type ParticipantExchangeInput as c, type ParticipantExchangeResult as d, accountVouchedBySchema as e, identityIntegrationInputSchema as f, identityIntegrationSchema as g, identityIntegrationSecretSchema as h, identityIntegrationAccountVouchingInputSchema as i, identityKindClaimSchema as j, participantExchangeAccountsSchema as k, participantExchangeResultSchema as l, participantExchangeSchema as m, type MemberImportCreateInput as n, MemberImportRefusalCode as o, participantExchangeAccountResultSchema as p, MemberImportState as q, type MemberImportListQuery as r, type MemberImportRowQuery as s, type MemberImportFullRowInput as t, type MemberImportRevertInput as u, type IdentityReference as v, type KnownMemberImportState as w, type MemberImport as x, type MemberImportAccount as y, type MemberImportCommandInput as z };