@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
@@ -0,0 +1,1271 @@
1
+ import { O as OpenIdentityKind } from './tracker-data-esm3WG8R.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
+ /** Checking, applying, cancelling or stopping an import, with an optional `actionId` for retries. */
731
+ type MemberImportCommandInput = z.input<typeof memberImportCommandSchema>;
732
+ /** Reverting an import: why, for the audit log and the reversing point entries. */
733
+ declare const memberImportRevertInputSchema: z.ZodObject<{
734
+ actionId: z.ZodString;
735
+ reason: z.ZodString;
736
+ }, z.core.$strict>;
737
+ type MemberImportRevertInput = z.input<typeof memberImportRevertInputSchema>;
738
+ /**
739
+ * What reverting an import took back from its applied rows: the opening balances (reversed by
740
+ * point entries that name the import, as far as the members still have the points), the imported
741
+ * completions (revoked, freeing their occurrences) and the links the rows created that nobody
742
+ * relied on. The members it created stay members of the project.
743
+ */
744
+ declare const memberImportRevertOutcomeSchema: z.ZodObject<{
745
+ reversed: z.ZodObject<{
746
+ rows: z.ZodNumber;
747
+ entries: z.ZodNumber;
748
+ completions: z.ZodNumber;
749
+ links: z.ZodNumber;
750
+ }, z.core.$strip>;
751
+ unreversedPoints: z.ZodArray<z.ZodObject<{
752
+ member: z.ZodString;
753
+ ledger: z.ZodString;
754
+ amount: z.ZodNumber;
755
+ }, z.core.$strip>>;
756
+ keptLinks: z.ZodArray<z.ZodObject<{
757
+ member: z.ZodString;
758
+ kind: z.ZodString;
759
+ account: z.ZodString;
760
+ reason: z.ZodString;
761
+ }, z.core.$strip>>;
762
+ linksUntracked: z.ZodBoolean;
763
+ }, z.core.$strip>;
764
+ type MemberImportRevertOutcome = z.infer<typeof memberImportRevertOutcomeSchema>;
765
+ /**
766
+ * A revert of an applied or stopped import. It runs in the background, one applied row at a
767
+ * time: `revertedAt` and `outcome` are null until every applied row is reverted.
768
+ */
769
+ declare const memberImportRevertSchema: z.ZodObject<{
770
+ reason: z.ZodString;
771
+ requestedAt: z.ZodNumber;
772
+ requestedBy: z.ZodNullable<z.ZodString>;
773
+ rows: z.ZodNumber;
774
+ revertedAt: z.ZodNullable<z.ZodNumber>;
775
+ outcome: z.ZodNullable<z.ZodObject<{
776
+ reversed: z.ZodObject<{
777
+ rows: z.ZodNumber;
778
+ entries: z.ZodNumber;
779
+ completions: z.ZodNumber;
780
+ links: z.ZodNumber;
781
+ }, z.core.$strip>;
782
+ unreversedPoints: z.ZodArray<z.ZodObject<{
783
+ member: z.ZodString;
784
+ ledger: z.ZodString;
785
+ amount: z.ZodNumber;
786
+ }, z.core.$strip>>;
787
+ keptLinks: z.ZodArray<z.ZodObject<{
788
+ member: z.ZodString;
789
+ kind: z.ZodString;
790
+ account: z.ZodString;
791
+ reason: z.ZodString;
792
+ }, z.core.$strip>>;
793
+ linksUntracked: z.ZodBoolean;
794
+ }, z.core.$strip>>;
795
+ }, z.core.$strip>;
796
+ type MemberImportRevert = z.infer<typeof memberImportRevertSchema>;
797
+ /** @compat open */
798
+ type KnownMemberImportState = (typeof MemberImportState)[keyof typeof MemberImportState];
799
+ /** Where an import is. `MemberImport.state` is open: Relay may add states. */
800
+ declare const MemberImportState: {
801
+ /** Rows are being added. */
802
+ readonly Open: "open";
803
+ /** The check (the dry run) is running. */
804
+ readonly Checking: "checking";
805
+ /** Checked, with a summary; it can be applied. */
806
+ readonly Checked: "checked";
807
+ /** Applying its ready rows, in the background. */
808
+ readonly Applying: "applying";
809
+ /** Every ready row was applied or refused. */
810
+ readonly Applied: "applied";
811
+ /** Stopped while applying: the rows it did not reach stay `ready`, and it can't be applied again. */
812
+ readonly Stopped: "stopped";
813
+ /** Its revert is taking back what its applied rows granted, in the background. */
814
+ readonly Reverting: "reverting";
815
+ /** Its revert went through every applied row. */
816
+ readonly Reverted: "reverted";
817
+ /** Canceled before it was applied. */
818
+ readonly Canceled: "canceled";
819
+ };
820
+ type MemberImportState = KnownMemberImportState | (string & {});
821
+ /**
822
+ * An import of members, opening point balances, quest progress and referrals into one project and
823
+ * environment. Rows are added while it is `open`; a check (the dry run) makes it `checked` with a
824
+ * summary; applying it makes it `applied`. Stopping an `applying` import lets the row being applied
825
+ * finish and ends it: it is `stopped`, with `appliedAt` null, its remaining rows stay `ready`, and
826
+ * it can't be applied again. Reverting an applied or stopped import takes back what its applied
827
+ * rows granted, in the background: it is `reverting`, then `reverted`. A live import is applied
828
+ * only by a person signed in to Console with publish permission.
829
+ *
830
+ * Read `state`. `status` is its 1.x form, whose closed enum can't gain a value: a stopped,
831
+ * reverting or reverted import has `status: "applied"`.
832
+ */
833
+ declare const memberImportSchema: z.ZodObject<{
834
+ id: z.ZodString;
835
+ source: z.ZodString;
836
+ state: z.ZodOptional<z.ZodType<MemberImportState, unknown, z.core.$ZodTypeInternals<MemberImportState, unknown>>>;
837
+ status: z.ZodEnum<{
838
+ open: "open";
839
+ checking: "checking";
840
+ canceled: "canceled";
841
+ applied: "applied";
842
+ checked: "checked";
843
+ applying: "applying";
844
+ }>;
845
+ rows: z.ZodNumber;
846
+ summary: z.ZodNullable<z.ZodObject<{
847
+ rows: z.ZodNumber;
848
+ ready: z.ZodNumber;
849
+ refused: z.ZodNumber;
850
+ members: z.ZodObject<{
851
+ created: z.ZodNumber;
852
+ existing: z.ZodNumber;
853
+ }, z.core.$strip>;
854
+ accounts: z.ZodNumber;
855
+ points: z.ZodArray<z.ZodObject<{
856
+ ledger: z.ZodString;
857
+ total: z.ZodNumber;
858
+ }, z.core.$strip>>;
859
+ actions: z.ZodArray<z.ZodObject<{
860
+ quest: z.ZodString;
861
+ total: z.ZodNumber;
862
+ }, z.core.$strip>>;
863
+ referrals: z.ZodOptional<z.ZodObject<{
864
+ accepted: z.ZodNumber;
865
+ qualified: z.ZodArray<z.ZodObject<{
866
+ program: z.ZodString;
867
+ total: z.ZodNumber;
868
+ }, z.core.$strip>>;
869
+ }, z.core.$strip>>;
870
+ refusals: z.ZodArray<z.ZodObject<{
871
+ code: z.ZodType<MemberImportRefusalCode, unknown, z.core.$ZodTypeInternals<MemberImportRefusalCode, unknown>>;
872
+ rows: z.ZodNumber;
873
+ }, z.core.$strip>>;
874
+ }, z.core.$strip>>;
875
+ progress: z.ZodObject<{
876
+ applied: z.ZodNumber;
877
+ refused: z.ZodNumber;
878
+ }, z.core.$strip>;
879
+ createdAt: z.ZodNumber;
880
+ createdBy: z.ZodNullable<z.ZodString>;
881
+ checkedAt: z.ZodNullable<z.ZodNumber>;
882
+ appliedAt: z.ZodNullable<z.ZodNumber>;
883
+ appliedBy: z.ZodNullable<z.ZodString>;
884
+ canceledAt: z.ZodNullable<z.ZodNumber>;
885
+ canceledBy: z.ZodNullable<z.ZodString>;
886
+ stoppedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
887
+ stoppedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
888
+ revert: z.ZodOptional<z.ZodNullable<z.ZodObject<{
889
+ reason: z.ZodString;
890
+ requestedAt: z.ZodNumber;
891
+ requestedBy: z.ZodNullable<z.ZodString>;
892
+ rows: z.ZodNumber;
893
+ revertedAt: z.ZodNullable<z.ZodNumber>;
894
+ outcome: z.ZodNullable<z.ZodObject<{
895
+ reversed: z.ZodObject<{
896
+ rows: z.ZodNumber;
897
+ entries: z.ZodNumber;
898
+ completions: z.ZodNumber;
899
+ links: z.ZodNumber;
900
+ }, z.core.$strip>;
901
+ unreversedPoints: z.ZodArray<z.ZodObject<{
902
+ member: z.ZodString;
903
+ ledger: z.ZodString;
904
+ amount: z.ZodNumber;
905
+ }, z.core.$strip>>;
906
+ keptLinks: z.ZodArray<z.ZodObject<{
907
+ member: z.ZodString;
908
+ kind: z.ZodString;
909
+ account: z.ZodString;
910
+ reason: z.ZodString;
911
+ }, z.core.$strip>>;
912
+ linksUntracked: z.ZodBoolean;
913
+ }, z.core.$strip>>;
914
+ }, z.core.$strip>>>;
915
+ }, z.core.$strip>;
916
+ type MemberImport = z.infer<typeof memberImportSchema>;
917
+ declare const memberImportPageSchema: z.ZodObject<{
918
+ items: z.ZodArray<z.ZodObject<{
919
+ id: z.ZodString;
920
+ source: z.ZodString;
921
+ state: z.ZodOptional<z.ZodType<MemberImportState, unknown, z.core.$ZodTypeInternals<MemberImportState, unknown>>>;
922
+ status: z.ZodEnum<{
923
+ open: "open";
924
+ checking: "checking";
925
+ canceled: "canceled";
926
+ applied: "applied";
927
+ checked: "checked";
928
+ applying: "applying";
929
+ }>;
930
+ rows: z.ZodNumber;
931
+ summary: z.ZodNullable<z.ZodObject<{
932
+ rows: z.ZodNumber;
933
+ ready: z.ZodNumber;
934
+ refused: z.ZodNumber;
935
+ members: z.ZodObject<{
936
+ created: z.ZodNumber;
937
+ existing: z.ZodNumber;
938
+ }, z.core.$strip>;
939
+ accounts: z.ZodNumber;
940
+ points: z.ZodArray<z.ZodObject<{
941
+ ledger: z.ZodString;
942
+ total: z.ZodNumber;
943
+ }, z.core.$strip>>;
944
+ actions: z.ZodArray<z.ZodObject<{
945
+ quest: z.ZodString;
946
+ total: z.ZodNumber;
947
+ }, z.core.$strip>>;
948
+ referrals: z.ZodOptional<z.ZodObject<{
949
+ accepted: z.ZodNumber;
950
+ qualified: z.ZodArray<z.ZodObject<{
951
+ program: z.ZodString;
952
+ total: z.ZodNumber;
953
+ }, z.core.$strip>>;
954
+ }, z.core.$strip>>;
955
+ refusals: z.ZodArray<z.ZodObject<{
956
+ code: z.ZodType<MemberImportRefusalCode, unknown, z.core.$ZodTypeInternals<MemberImportRefusalCode, unknown>>;
957
+ rows: z.ZodNumber;
958
+ }, z.core.$strip>>;
959
+ }, z.core.$strip>>;
960
+ progress: z.ZodObject<{
961
+ applied: z.ZodNumber;
962
+ refused: z.ZodNumber;
963
+ }, z.core.$strip>;
964
+ createdAt: z.ZodNumber;
965
+ createdBy: z.ZodNullable<z.ZodString>;
966
+ checkedAt: z.ZodNullable<z.ZodNumber>;
967
+ appliedAt: z.ZodNullable<z.ZodNumber>;
968
+ appliedBy: z.ZodNullable<z.ZodString>;
969
+ canceledAt: z.ZodNullable<z.ZodNumber>;
970
+ canceledBy: z.ZodNullable<z.ZodString>;
971
+ stoppedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
972
+ stoppedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
973
+ revert: z.ZodOptional<z.ZodNullable<z.ZodObject<{
974
+ reason: z.ZodString;
975
+ requestedAt: z.ZodNumber;
976
+ requestedBy: z.ZodNullable<z.ZodString>;
977
+ rows: z.ZodNumber;
978
+ revertedAt: z.ZodNullable<z.ZodNumber>;
979
+ outcome: z.ZodNullable<z.ZodObject<{
980
+ reversed: z.ZodObject<{
981
+ rows: z.ZodNumber;
982
+ entries: z.ZodNumber;
983
+ completions: z.ZodNumber;
984
+ links: z.ZodNumber;
985
+ }, z.core.$strip>;
986
+ unreversedPoints: z.ZodArray<z.ZodObject<{
987
+ member: z.ZodString;
988
+ ledger: z.ZodString;
989
+ amount: z.ZodNumber;
990
+ }, z.core.$strip>>;
991
+ keptLinks: z.ZodArray<z.ZodObject<{
992
+ member: z.ZodString;
993
+ kind: z.ZodString;
994
+ account: z.ZodString;
995
+ reason: z.ZodString;
996
+ }, z.core.$strip>>;
997
+ linksUntracked: z.ZodBoolean;
998
+ }, z.core.$strip>>;
999
+ }, z.core.$strip>>>;
1000
+ }, z.core.$strip>>;
1001
+ nextCursor: z.ZodNullable<z.ZodString>;
1002
+ }, z.core.$strip>;
1003
+ declare const memberImportListQuerySchema: z.ZodObject<{
1004
+ cursor: z.ZodOptional<z.ZodString>;
1005
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1006
+ }, z.core.$strict>;
1007
+ type MemberImportListQuery = z.input<typeof memberImportListQuerySchema>;
1008
+
1009
+ declare const identityIntegrationInputSchema: z.ZodObject<{
1010
+ name: z.ZodString;
1011
+ origin: z.ZodString;
1012
+ identityKind: z.ZodOptional<z.ZodTemplateLiteral<`app:${string}`>>;
1013
+ adoptIdentitiesFrom: z.ZodOptional<z.ZodString>;
1014
+ reason: z.ZodOptional<z.ZodString>;
1015
+ expiresInDays: z.ZodOptional<z.ZodNumber>;
1016
+ }, z.core.$strict>;
1017
+ /** An integration as responses return it: fields a newer Relay adds are ignored. */
1018
+ declare const identityIntegrationSchema: z.ZodObject<{
1019
+ id: z.ZodString;
1020
+ name: z.ZodString;
1021
+ origin: z.ZodString;
1022
+ expiresAt: z.ZodNumber;
1023
+ secrets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1024
+ id: z.ZodString;
1025
+ hint: z.ZodNullable<z.ZodString>;
1026
+ createdAt: z.ZodNumber;
1027
+ expiresAt: z.ZodNullable<z.ZodNumber>;
1028
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
1029
+ }, z.core.$strip>>>;
1030
+ lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1031
+ identityKind: z.ZodDefault<z.ZodNullable<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
1032
+ vouchesAccounts: z.ZodDefault<z.ZodBoolean>;
1033
+ organization: z.ZodString;
1034
+ project: z.ZodString;
1035
+ environment: z.ZodEnum<{
1036
+ test: "test";
1037
+ live: "live";
1038
+ }>;
1039
+ }, z.core.$strip>;
1040
+ /** An identity integration as responses return it. */
1041
+ type IdentityIntegration = z.infer<typeof identityIntegrationSchema>;
1042
+ declare const identityIntegrationSecretSchema: z.ZodObject<{
1043
+ id: z.ZodString;
1044
+ name: z.ZodString;
1045
+ origin: z.ZodString;
1046
+ expiresAt: z.ZodNumber;
1047
+ secrets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1048
+ id: z.ZodString;
1049
+ hint: z.ZodNullable<z.ZodString>;
1050
+ createdAt: z.ZodNumber;
1051
+ expiresAt: z.ZodNullable<z.ZodNumber>;
1052
+ lastUsedAt: z.ZodNullable<z.ZodNumber>;
1053
+ }, z.core.$strip>>>;
1054
+ lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1055
+ identityKind: z.ZodDefault<z.ZodNullable<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
1056
+ vouchesAccounts: z.ZodDefault<z.ZodBoolean>;
1057
+ organization: z.ZodString;
1058
+ project: z.ZodString;
1059
+ environment: z.ZodEnum<{
1060
+ test: "test";
1061
+ live: "live";
1062
+ }>;
1063
+ token: z.ZodString;
1064
+ }, z.core.$strip>;
1065
+ /**
1066
+ * An `app:<name>` kind claimed in the project and environment, and the integration that owns its
1067
+ * identities: the live one, or the disconnected one a new integration would adopt them from.
1068
+ */
1069
+ declare const identityKindClaimSchema: z.ZodObject<{
1070
+ kind: z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>;
1071
+ integration: z.ZodString;
1072
+ integrationName: z.ZodString;
1073
+ connected: z.ZodBoolean;
1074
+ linked: z.ZodNumber;
1075
+ unlinked: z.ZodNumber;
1076
+ claimedAt: z.ZodNumber;
1077
+ }, z.core.$strip>;
1078
+ type IdentityKindClaim = z.infer<typeof identityKindClaimSchema>;
1079
+ /**
1080
+ * Turns account vouching on or off for an integration. Needs publish permission and a reason, which
1081
+ * the audit log keeps. With an `actionId`, a retry answers with the first result.
1082
+ */
1083
+ declare const identityIntegrationAccountVouchingInputSchema: z.ZodObject<{
1084
+ enabled: z.ZodBoolean;
1085
+ reason: z.ZodString;
1086
+ actionId: z.ZodOptional<z.ZodString>;
1087
+ }, z.core.$strict>;
1088
+ /** Turns account vouching on or off for an integration, with the reason the audit log keeps. */
1089
+ type IdentityIntegrationAccountVouchingInput = z.input<typeof identityIntegrationAccountVouchingInputSchema>;
1090
+ /**
1091
+ * The accounts an app's server vouches for when it signs a member in, as a member import's row
1092
+ * names them: wallets, and at most one X, Telegram and Discord account each, by numeric user ID.
1093
+ */
1094
+ declare const participantExchangeAccountsSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1095
+ kind: z.ZodLiteral<"wallet">;
1096
+ chain: z.ZodLiteral<"solana">;
1097
+ address: z.ZodString;
1098
+ }, z.core.$strict>, z.ZodObject<{
1099
+ kind: z.ZodLiteral<"wallet">;
1100
+ chain: z.ZodLiteral<"eip155">;
1101
+ address: z.ZodString;
1102
+ }, z.core.$strict>, z.ZodObject<{
1103
+ kind: z.ZodLiteral<"wallet">;
1104
+ chain: z.ZodLiteral<"cosmos">;
1105
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
1106
+ address: z.ZodString;
1107
+ }, z.core.$strict>], "chain">, z.ZodObject<{
1108
+ kind: z.ZodLiteral<"x">;
1109
+ subject: z.ZodString;
1110
+ }, z.core.$strict>, z.ZodObject<{
1111
+ kind: z.ZodLiteral<"telegram">;
1112
+ subject: z.ZodString;
1113
+ }, z.core.$strict>, z.ZodObject<{
1114
+ kind: z.ZodLiteral<"discord">;
1115
+ subject: z.ZodString;
1116
+ }, z.core.$strict>]>>;
1117
+ declare const participantExchangeSchema: z.ZodObject<{
1118
+ subject: z.ZodString;
1119
+ previousToken: z.ZodOptional<z.ZodString>;
1120
+ accounts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1121
+ kind: z.ZodLiteral<"wallet">;
1122
+ chain: z.ZodLiteral<"solana">;
1123
+ address: z.ZodString;
1124
+ }, z.core.$strict>, z.ZodObject<{
1125
+ kind: z.ZodLiteral<"wallet">;
1126
+ chain: z.ZodLiteral<"eip155">;
1127
+ address: z.ZodString;
1128
+ }, z.core.$strict>, z.ZodObject<{
1129
+ kind: z.ZodLiteral<"wallet">;
1130
+ chain: z.ZodLiteral<"cosmos">;
1131
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
1132
+ address: z.ZodString;
1133
+ }, z.core.$strict>], "chain">, z.ZodObject<{
1134
+ kind: z.ZodLiteral<"x">;
1135
+ subject: z.ZodString;
1136
+ }, z.core.$strict>, z.ZodObject<{
1137
+ kind: z.ZodLiteral<"telegram">;
1138
+ subject: z.ZodString;
1139
+ }, z.core.$strict>, z.ZodObject<{
1140
+ kind: z.ZodLiteral<"discord">;
1141
+ subject: z.ZodString;
1142
+ }, z.core.$strict>]>>>;
1143
+ }, z.core.$strict>;
1144
+ /** What an app's server sends to exchange its signed-in user for a Relay member session. */
1145
+ type ParticipantExchangeInput = z.input<typeof participantExchangeSchema>;
1146
+ /**
1147
+ * What the exchange did with one vouched account: `attached` it, found it `already-linked` to the
1148
+ * member (nothing changed), or `refused` it with a member import's refusal `code`, such as
1149
+ * `account-linked-elsewhere` or `x-account-selected`. A refused account never refuses the sign-in.
1150
+ */
1151
+ declare const participantExchangeAccountResultSchema: z.ZodObject<{
1152
+ account: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1153
+ kind: z.ZodLiteral<"wallet">;
1154
+ chain: z.ZodLiteral<"solana">;
1155
+ address: z.ZodString;
1156
+ }, z.core.$strict>, z.ZodObject<{
1157
+ kind: z.ZodLiteral<"wallet">;
1158
+ chain: z.ZodLiteral<"eip155">;
1159
+ address: z.ZodString;
1160
+ }, z.core.$strict>, z.ZodObject<{
1161
+ kind: z.ZodLiteral<"wallet">;
1162
+ chain: z.ZodLiteral<"cosmos">;
1163
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
1164
+ address: z.ZodString;
1165
+ }, z.core.$strict>], "chain">, z.ZodObject<{
1166
+ kind: z.ZodLiteral<"x">;
1167
+ subject: z.ZodString;
1168
+ }, z.core.$strict>, z.ZodObject<{
1169
+ kind: z.ZodLiteral<"telegram">;
1170
+ subject: z.ZodString;
1171
+ }, z.core.$strict>, z.ZodObject<{
1172
+ kind: z.ZodLiteral<"discord">;
1173
+ subject: z.ZodString;
1174
+ }, z.core.$strict>]>;
1175
+ status: z.ZodType<"attached" | "already-linked" | "refused" | (string & {})>;
1176
+ code: z.ZodOptional<z.ZodType<MemberImportRefusalCode, unknown, z.core.$ZodTypeInternals<MemberImportRefusalCode, unknown>>>;
1177
+ message: z.ZodOptional<z.ZodString>;
1178
+ }, z.core.$strip>;
1179
+ /** What the exchange did with one vouched account: `attached`, `already-linked` or `refused`. */
1180
+ type ParticipantExchangeAccountResult = z.infer<typeof participantExchangeAccountResultSchema>;
1181
+ /**
1182
+ * An exchange's answer: the member's session token and session, and, when the request vouched for
1183
+ * accounts, what happened to each, in the order they were sent.
1184
+ */
1185
+ declare const participantExchangeResultSchema: z.ZodObject<{
1186
+ token: z.ZodString;
1187
+ session: z.ZodObject<{
1188
+ id: z.ZodString;
1189
+ principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
1190
+ kind: z.ZodLiteral<"member">;
1191
+ member: z.ZodString;
1192
+ }, z.core.$strip>, z.ZodObject<{
1193
+ kind: z.ZodLiteral<"staff">;
1194
+ subject: z.ZodString;
1195
+ }, z.core.$strip>, z.ZodObject<{
1196
+ kind: z.ZodLiteral<"operator">;
1197
+ subject: z.ZodString;
1198
+ }, z.core.$strip>], "kind">;
1199
+ expiresAt: z.ZodNumber;
1200
+ organization: z.ZodString;
1201
+ project: z.ZodString;
1202
+ environment: z.ZodEnum<{
1203
+ test: "test";
1204
+ live: "live";
1205
+ }>;
1206
+ }, z.core.$strip>;
1207
+ accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1208
+ account: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1209
+ kind: z.ZodLiteral<"wallet">;
1210
+ chain: z.ZodLiteral<"solana">;
1211
+ address: z.ZodString;
1212
+ }, z.core.$strict>, z.ZodObject<{
1213
+ kind: z.ZodLiteral<"wallet">;
1214
+ chain: z.ZodLiteral<"eip155">;
1215
+ address: z.ZodString;
1216
+ }, z.core.$strict>, z.ZodObject<{
1217
+ kind: z.ZodLiteral<"wallet">;
1218
+ chain: z.ZodLiteral<"cosmos">;
1219
+ network: z.ZodCustom<`cosmos:${string}`, `cosmos:${string}`>;
1220
+ address: z.ZodString;
1221
+ }, z.core.$strict>], "chain">, z.ZodObject<{
1222
+ kind: z.ZodLiteral<"x">;
1223
+ subject: z.ZodString;
1224
+ }, z.core.$strict>, z.ZodObject<{
1225
+ kind: z.ZodLiteral<"telegram">;
1226
+ subject: z.ZodString;
1227
+ }, z.core.$strict>, z.ZodObject<{
1228
+ kind: z.ZodLiteral<"discord">;
1229
+ subject: z.ZodString;
1230
+ }, z.core.$strict>]>;
1231
+ status: z.ZodType<"attached" | "already-linked" | "refused" | (string & {})>;
1232
+ code: z.ZodOptional<z.ZodType<MemberImportRefusalCode, unknown, z.core.$ZodTypeInternals<MemberImportRefusalCode, unknown>>>;
1233
+ message: z.ZodOptional<z.ZodString>;
1234
+ }, z.core.$strip>>>;
1235
+ }, z.core.$strip>;
1236
+ /** An exchange's answer: the member's session, and what happened to each vouched account. */
1237
+ type ParticipantExchangeResult = z.infer<typeof participantExchangeResultSchema>;
1238
+ /** The environments an app login key can belong to. @compat open */
1239
+ type KnownIdentityIntegrationEnvironment = "test" | "live";
1240
+ /**
1241
+ * What `GET /v1/auth/integration` answers for a working app login key (`di_…`): the integration it
1242
+ * belongs to, never a secret. `secretExpiresAt` is when the key presented expires, null when it
1243
+ * never does. `appOrigins` are the origins Domino serves the project's app from in the key's
1244
+ * environment: the staging host in test, the live host and any active custom domain in live; empty
1245
+ * where this Relay hosts no apps. Fields a newer Relay adds are ignored.
1246
+ */
1247
+ declare const identityIntegrationKeySchema: z.ZodObject<{
1248
+ id: z.ZodString;
1249
+ name: z.ZodString;
1250
+ organization: z.ZodString;
1251
+ project: z.ZodString;
1252
+ environment: z.ZodType<KnownIdentityIntegrationEnvironment | (string & {})>;
1253
+ origin: z.ZodString;
1254
+ identityKind: z.ZodDefault<z.ZodNullable<z.ZodType<OpenIdentityKind, unknown, z.core.$ZodTypeInternals<OpenIdentityKind, unknown>>>>;
1255
+ vouchesAccounts: z.ZodDefault<z.ZodBoolean>;
1256
+ secretExpiresAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1257
+ appOrigins: z.ZodDefault<z.ZodArray<z.ZodString>>;
1258
+ }, z.core.$strip>;
1259
+ /** The integration an app login key belongs to, as `inspectIntegrationKey` returns it. */
1260
+ type IdentityIntegrationKey = z.infer<typeof identityIntegrationKeySchema>;
1261
+ /**
1262
+ * The app login whose server vouched for an account when it signed the member in.
1263
+ */
1264
+ declare const accountVouchedBySchema: z.ZodObject<{
1265
+ integration: z.ZodString;
1266
+ integrationName: z.ZodString;
1267
+ }, z.core.$strip>;
1268
+ /** The app login whose server vouched for an account when it signed the member in. */
1269
+ type AccountVouchedBy = z.infer<typeof accountVouchedBySchema>;
1270
+
1271
+ export { memberImportFullRowSchema as $, type AccountVouchedBy as A, type MemberImport as B, type MemberImportAccount as C, type MemberImportCommandInput as D, type MemberImportConsent as E, type MemberImportFullRow as F, type MemberImportFullRowsInput as G, type MemberImportIdentity as H, type IdentityIntegrationKey as I, type MemberImportReferral as J, type KnownIdentityIntegrationEnvironment as K, type MemberImportRefusal as L, type MemberImportVouchedAccount as M, type MemberImportRevert as N, type MemberImportRevertOutcome as O, type ParticipantExchangeAccountResult as P, type MemberImportRow as Q, type MemberImportRowInput as R, type MemberImportRowResult as S, type MemberImportRowsInput as T, type MemberImportSummary as U, identityReferenceSchema as V, memberImportAccountSchema as W, memberImportActionSchema as X, memberImportCommandSchema as Y, memberImportConsentSchema as Z, memberImportCreateSchema as _, type ParticipantExchangeResult as a, memberImportFullRowsInputSchema as a0, memberImportIdentitySchema as a1, memberImportListQuerySchema as a2, memberImportPageSchema as a3, memberImportReferralSchema as a4, memberImportRefusalSchema as a5, memberImportRevertInputSchema as a6, memberImportRevertOutcomeSchema as a7, memberImportRevertSchema as a8, memberImportRowPageSchema as a9, memberImportRowQuerySchema as aa, memberImportRowResultSchema as ab, memberImportRowSchema as ac, memberImportRowsInputSchema as ad, memberImportSchema as ae, memberImportSummarySchema as af, memberImportVouchedAccountSchema as ag, type IdentityIntegration as b, type IdentityIntegrationAccountVouchingInput as c, type IdentityKindClaim as d, type ParticipantExchangeInput as e, accountVouchedBySchema as f, identityIntegrationInputSchema as g, identityIntegrationKeySchema as h, identityIntegrationAccountVouchingInputSchema as i, identityIntegrationSchema as j, identityIntegrationSecretSchema as k, identityKindClaimSchema as l, participantExchangeAccountsSchema as m, participantExchangeResultSchema as n, participantExchangeSchema as o, participantExchangeAccountResultSchema as p, type MemberImportCreateInput as q, MemberImportRefusalCode as r, MemberImportState as s, type MemberImportListQuery as t, type MemberImportRowQuery as u, type MemberImportFullRowInput as v, type MemberImportRevertInput as w, type IdentityReference as x, type KnownMemberImportRefusalCode as y, type KnownMemberImportState as z };