@privy-io/api-types 0.8.0 → 0.10.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.
- package/CHANGELOG.md +57 -0
- package/client.d.mts +35 -32
- package/client.d.mts.map +1 -1
- package/client.d.ts +35 -32
- package/client.d.ts.map +1 -1
- package/client.js +22 -8
- package/client.js.map +1 -1
- package/client.mjs +22 -8
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +128 -86
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +128 -86
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +43 -43
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +43 -43
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +177 -129
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +177 -129
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +650 -648
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +650 -648
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +84 -84
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +84 -84
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/funding.d.mts +42 -42
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +42 -42
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +19 -18
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +19 -18
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +270 -266
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +270 -266
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +20 -20
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +20 -20
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +62 -19
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +62 -19
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/organizations.d.mts +65 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +65 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +9 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +5 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/policies.d.mts +360 -231
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +360 -231
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +28 -28
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -28
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +8 -11
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +8 -11
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.js.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts +56 -66
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +56 -66
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +457 -448
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +457 -448
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +450 -41
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +450 -41
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +2 -1
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +2 -1
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +16 -31
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +16 -31
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +1475 -1172
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +1475 -1172
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +10 -6
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +10 -6
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +1345 -582
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +1345 -582
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +157 -157
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +157 -157
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +661 -455
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/accounts.ts +157 -103
- package/src/resources/aggregations.ts +55 -55
- package/src/resources/apps.ts +232 -166
- package/src/resources/client-auth.ts +890 -890
- package/src/resources/embedded-wallets.ts +123 -123
- package/src/resources/funding.ts +66 -66
- package/src/resources/index.ts +521 -431
- package/src/resources/intents.ts +326 -322
- package/src/resources/key-quorums.ts +23 -23
- package/src/resources/kraken-embed.ts +116 -19
- package/src/resources/organizations.ts +82 -0
- package/src/resources/policies.ts +495 -339
- package/src/resources/shared.ts +34 -34
- package/src/resources/swaps.ts +9 -14
- package/src/resources/transactions.ts +88 -115
- package/src/resources/users.ts +664 -653
- package/src/resources/wallet-actions.ts +585 -56
- package/src/resources/wallets/balance.ts +2 -1
- package/src/resources/wallets/index.ts +158 -138
- package/src/resources/wallets/transactions.ts +20 -83
- package/src/resources/wallets/wallets.ts +1997 -1563
- package/src/resources/webhooks.ts +1652 -700
- package/src/resources/yield.ts +188 -188
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/src/resources/apps.ts
CHANGED
|
@@ -7,136 +7,25 @@ import * as EmbeddedWalletsAPI from './embedded-wallets';
|
|
|
7
7
|
export class Apps extends APIResource {}
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
export type Caip2 = string;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* A currency asset type.
|
|
16
|
-
*/
|
|
17
|
-
export type CurrencyAsset = 'native-currency' | 'USDC';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* A crypto currency identified by a CAIP-2 chain ID and optional asset.
|
|
21
|
-
*/
|
|
22
|
-
export interface Currency {
|
|
23
|
-
/**
|
|
24
|
-
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
25
|
-
*/
|
|
26
|
-
chain: Caip2;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* A currency asset type.
|
|
30
|
-
*/
|
|
31
|
-
asset?: CurrencyAsset;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Whether to create embedded wallets on login.
|
|
36
|
-
*/
|
|
37
|
-
export type EmbeddedWalletCreateOnLogin = 'users-without-wallets' | 'all-users' | 'off';
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Chain-specific configuration for embedded wallets.
|
|
41
|
-
*/
|
|
42
|
-
export interface EmbeddedWalletChainConfig {
|
|
43
|
-
/**
|
|
44
|
-
* Whether to create embedded wallets on login.
|
|
45
|
-
*/
|
|
46
|
-
create_on_login: EmbeddedWalletCreateOnLogin;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* A user-owned recovery option for embedded wallets.
|
|
51
|
-
*/
|
|
52
|
-
export type UserOwnedRecoveryOption = 'user-passcode' | 'google-drive' | 'icloud';
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Input configuration for embedded wallets.
|
|
56
|
-
*/
|
|
57
|
-
export interface EmbeddedWalletInputSchema {
|
|
58
|
-
/**
|
|
59
|
-
* Whether to create embedded wallets on login.
|
|
60
|
-
*/
|
|
61
|
-
create_on_login: EmbeddedWalletCreateOnLogin;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Chain-specific configuration for embedded wallets.
|
|
65
|
-
*/
|
|
66
|
-
ethereum: EmbeddedWalletChainConfig;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Chain-specific configuration for embedded wallets.
|
|
70
|
-
*/
|
|
71
|
-
solana: EmbeddedWalletChainConfig;
|
|
72
|
-
|
|
73
|
-
user_owned_recovery_options: Array<UserOwnedRecoveryOption>;
|
|
74
|
-
|
|
75
|
-
require_user_owned_recovery_on_create?: boolean;
|
|
76
|
-
|
|
77
|
-
require_user_password_on_create?: boolean;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* The mode for embedded wallets.
|
|
82
|
-
*/
|
|
83
|
-
export type EmbeddedWalletMode = 'legacy-embedded-wallets-only' | 'user-controlled-server-wallets-only';
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Configuration for embedded wallets including the mode.
|
|
87
|
-
*/
|
|
88
|
-
export interface EmbeddedWalletConfigSchema extends EmbeddedWalletInputSchema {
|
|
89
|
-
/**
|
|
90
|
-
* The mode for embedded wallets.
|
|
91
|
-
*/
|
|
92
|
-
mode: EmbeddedWalletMode;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Configuration for Telegram authentication.
|
|
97
|
-
*/
|
|
98
|
-
export interface TelegramAuthConfigSchema {
|
|
99
|
-
bot_id: string;
|
|
100
|
-
|
|
101
|
-
bot_name: string;
|
|
102
|
-
|
|
103
|
-
link_enabled: boolean;
|
|
104
|
-
|
|
105
|
-
seamless_auth_enabled: boolean;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* A funding method for on-ramp.
|
|
110
|
-
*/
|
|
111
|
-
export type FundingMethodEnum = 'moonpay' | 'coinbase-onramp' | 'external';
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* A funding option with method and provider.
|
|
10
|
+
* Confirmation response for deleting an allowlist entry.
|
|
115
11
|
*/
|
|
116
|
-
export interface
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
provider: string;
|
|
12
|
+
export interface AllowlistDeletionResponse {
|
|
13
|
+
message: string;
|
|
120
14
|
}
|
|
121
15
|
|
|
122
16
|
/**
|
|
123
|
-
*
|
|
17
|
+
* An allowlist entry for an app.
|
|
124
18
|
*/
|
|
125
|
-
export interface
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
default_recommended_amount: string;
|
|
19
|
+
export interface AllowlistEntry {
|
|
20
|
+
id: string;
|
|
129
21
|
|
|
130
|
-
|
|
131
|
-
* A crypto currency identified by a CAIP-2 chain ID and optional asset.
|
|
132
|
-
*/
|
|
133
|
-
default_recommended_currency: Currency;
|
|
22
|
+
acceptedAt: number | null;
|
|
134
23
|
|
|
135
|
-
|
|
24
|
+
appId: string;
|
|
136
25
|
|
|
137
|
-
|
|
26
|
+
type: string;
|
|
138
27
|
|
|
139
|
-
|
|
28
|
+
value: string;
|
|
140
29
|
}
|
|
141
30
|
|
|
142
31
|
/**
|
|
@@ -294,6 +183,48 @@ export namespace AppResponse {
|
|
|
294
183
|
}
|
|
295
184
|
}
|
|
296
185
|
|
|
186
|
+
/**
|
|
187
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
188
|
+
*/
|
|
189
|
+
export type Caip2 = string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* A crypto currency identified by a CAIP-2 chain ID and optional asset.
|
|
193
|
+
*/
|
|
194
|
+
export interface Currency {
|
|
195
|
+
/**
|
|
196
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
197
|
+
*/
|
|
198
|
+
chain: Caip2;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* A currency asset type.
|
|
202
|
+
*/
|
|
203
|
+
asset?: CurrencyAsset;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* A currency asset type.
|
|
208
|
+
*/
|
|
209
|
+
export type CurrencyAsset = 'native-currency' | 'USDC';
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* An email domain.
|
|
213
|
+
*/
|
|
214
|
+
export type EmailDomain = string;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Allowlist invite input for an email domain.
|
|
218
|
+
*/
|
|
219
|
+
export interface EmailDomainInviteInput {
|
|
220
|
+
type: 'emailDomain';
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* An email domain.
|
|
224
|
+
*/
|
|
225
|
+
value: EmailDomain;
|
|
226
|
+
}
|
|
227
|
+
|
|
297
228
|
/**
|
|
298
229
|
* Allowlist invite input for an email address.
|
|
299
230
|
*/
|
|
@@ -304,48 +235,177 @@ export interface EmailInviteInput {
|
|
|
304
235
|
}
|
|
305
236
|
|
|
306
237
|
/**
|
|
307
|
-
*
|
|
238
|
+
* Chain-specific configuration for embedded wallets.
|
|
308
239
|
*/
|
|
309
|
-
export interface
|
|
310
|
-
|
|
240
|
+
export interface EmbeddedWalletChainConfig {
|
|
241
|
+
/**
|
|
242
|
+
* Whether to create embedded wallets on login.
|
|
243
|
+
*/
|
|
244
|
+
create_on_login: EmbeddedWalletCreateOnLogin;
|
|
245
|
+
}
|
|
311
246
|
|
|
312
|
-
|
|
247
|
+
/**
|
|
248
|
+
* Configuration for embedded wallets including the mode.
|
|
249
|
+
*/
|
|
250
|
+
export interface EmbeddedWalletConfigSchema extends EmbeddedWalletInputSchema {
|
|
251
|
+
/**
|
|
252
|
+
* The mode for embedded wallets.
|
|
253
|
+
*/
|
|
254
|
+
mode: EmbeddedWalletMode;
|
|
313
255
|
}
|
|
314
256
|
|
|
315
257
|
/**
|
|
316
|
-
*
|
|
258
|
+
* Whether to create embedded wallets on login.
|
|
317
259
|
*/
|
|
318
|
-
export
|
|
319
|
-
|
|
260
|
+
export type EmbeddedWalletCreateOnLogin = 'users-without-wallets' | 'all-users' | 'off';
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Input configuration for embedded wallets.
|
|
264
|
+
*/
|
|
265
|
+
export interface EmbeddedWalletInputSchema {
|
|
266
|
+
/**
|
|
267
|
+
* Whether to create embedded wallets on login.
|
|
268
|
+
*/
|
|
269
|
+
create_on_login: EmbeddedWalletCreateOnLogin;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Chain-specific configuration for embedded wallets.
|
|
273
|
+
*/
|
|
274
|
+
ethereum: EmbeddedWalletChainConfig;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Chain-specific configuration for embedded wallets.
|
|
278
|
+
*/
|
|
279
|
+
solana: EmbeddedWalletChainConfig;
|
|
280
|
+
|
|
281
|
+
user_owned_recovery_options: Array<UserOwnedRecoveryOption>;
|
|
282
|
+
|
|
283
|
+
require_user_owned_recovery_on_create?: boolean;
|
|
284
|
+
|
|
285
|
+
require_user_password_on_create?: boolean;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* The mode for embedded wallets.
|
|
290
|
+
*/
|
|
291
|
+
export type EmbeddedWalletMode = 'legacy-embedded-wallets-only' | 'user-controlled-server-wallets-only';
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Configuration for funding and on-ramp options.
|
|
295
|
+
*/
|
|
296
|
+
export interface FundingConfigResponseSchema {
|
|
297
|
+
cross_chain_bridging_enabled: boolean;
|
|
298
|
+
|
|
299
|
+
default_recommended_amount: string;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* A crypto currency identified by a CAIP-2 chain ID and optional asset.
|
|
303
|
+
*/
|
|
304
|
+
default_recommended_currency: Currency;
|
|
305
|
+
|
|
306
|
+
methods: Array<FundingMethodEnum>;
|
|
307
|
+
|
|
308
|
+
options: Array<FundingOption>;
|
|
309
|
+
|
|
310
|
+
prompt_funding_on_wallet_creation: boolean;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* A funding method for on-ramp.
|
|
315
|
+
*/
|
|
316
|
+
export type FundingMethodEnum = 'moonpay' | 'coinbase-onramp' | 'external';
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* A funding option with method and provider.
|
|
320
|
+
*/
|
|
321
|
+
export interface FundingOption {
|
|
322
|
+
method: string;
|
|
323
|
+
|
|
324
|
+
provider: string;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Currency for gas spend values.
|
|
329
|
+
*/
|
|
330
|
+
export type GasSpendCurrency = 'usd';
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Query parameters for getting gas spend for a set of wallets.
|
|
334
|
+
*/
|
|
335
|
+
export interface GasSpendRequestBody {
|
|
336
|
+
/**
|
|
337
|
+
* Unix timestamp in milliseconds, exclusive.
|
|
338
|
+
*/
|
|
339
|
+
end_timestamp: number;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Unix timestamp in milliseconds, inclusive.
|
|
343
|
+
*/
|
|
344
|
+
start_timestamp: number;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* List of wallet IDs to query gas spend for. Maximum 100.
|
|
348
|
+
*/
|
|
349
|
+
wallet_ids: Array<string>;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Aggregated Privy gas credits charged for a set of wallets over a time range.
|
|
354
|
+
*/
|
|
355
|
+
export interface GasSpendResponseBody {
|
|
356
|
+
/**
|
|
357
|
+
* Currency for gas spend values.
|
|
358
|
+
*/
|
|
359
|
+
currency: GasSpendCurrency;
|
|
320
360
|
|
|
361
|
+
/**
|
|
362
|
+
* Total Privy credits charged as a decimal string.
|
|
363
|
+
*/
|
|
321
364
|
value: string;
|
|
322
365
|
}
|
|
323
366
|
|
|
324
367
|
/**
|
|
325
|
-
*
|
|
368
|
+
* Gas sponsorship configuration for an app.
|
|
326
369
|
*/
|
|
327
|
-
export
|
|
370
|
+
export interface GasSponsorshipConfiguration {
|
|
371
|
+
configured_networks: Array<Caip2>;
|
|
372
|
+
|
|
373
|
+
require_app_secret: boolean;
|
|
374
|
+
|
|
375
|
+
sponsorship_enabled: boolean;
|
|
376
|
+
}
|
|
328
377
|
|
|
329
378
|
/**
|
|
330
|
-
*
|
|
379
|
+
* Input for configuring gas sponsorship settings for an app.
|
|
331
380
|
*/
|
|
332
|
-
export interface
|
|
333
|
-
|
|
381
|
+
export interface GasSponsorshipConfigurationInput {
|
|
382
|
+
configured_networks?: Array<Caip2>;
|
|
334
383
|
|
|
335
|
-
|
|
384
|
+
require_app_secret?: boolean;
|
|
336
385
|
|
|
337
|
-
|
|
386
|
+
sponsorship_enabled?: boolean;
|
|
387
|
+
}
|
|
338
388
|
|
|
339
|
-
|
|
389
|
+
/**
|
|
390
|
+
* Allowlist invite input for a phone number.
|
|
391
|
+
*/
|
|
392
|
+
export interface PhoneInviteInput {
|
|
393
|
+
type: 'phone';
|
|
340
394
|
|
|
341
395
|
value: string;
|
|
342
396
|
}
|
|
343
397
|
|
|
344
398
|
/**
|
|
345
|
-
*
|
|
399
|
+
* Configuration for Telegram authentication.
|
|
346
400
|
*/
|
|
347
|
-
export interface
|
|
348
|
-
|
|
401
|
+
export interface TelegramAuthConfigSchema {
|
|
402
|
+
bot_id: string;
|
|
403
|
+
|
|
404
|
+
bot_name: string;
|
|
405
|
+
|
|
406
|
+
link_enabled: boolean;
|
|
407
|
+
|
|
408
|
+
seamless_auth_enabled: boolean;
|
|
349
409
|
}
|
|
350
410
|
|
|
351
411
|
/**
|
|
@@ -373,52 +433,58 @@ export interface TestAccountsResponse {
|
|
|
373
433
|
}
|
|
374
434
|
|
|
375
435
|
/**
|
|
376
|
-
* Input for
|
|
436
|
+
* Input for adding or removing an allowlist entry. Discriminated by type.
|
|
377
437
|
*/
|
|
378
|
-
export
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
sponsorship_enabled?: boolean;
|
|
384
|
-
}
|
|
438
|
+
export type UserInviteInput =
|
|
439
|
+
| EmailInviteInput
|
|
440
|
+
| EmailDomainInviteInput
|
|
441
|
+
| WalletInviteInput
|
|
442
|
+
| PhoneInviteInput;
|
|
385
443
|
|
|
386
444
|
/**
|
|
387
|
-
*
|
|
445
|
+
* A user-owned recovery option for embedded wallets.
|
|
388
446
|
*/
|
|
389
|
-
export
|
|
390
|
-
configured_networks: Array<Caip2>;
|
|
447
|
+
export type UserOwnedRecoveryOption = 'user-passcode' | 'google-drive' | 'icloud';
|
|
391
448
|
|
|
392
|
-
|
|
449
|
+
/**
|
|
450
|
+
* Allowlist invite input for a wallet address.
|
|
451
|
+
*/
|
|
452
|
+
export interface WalletInviteInput {
|
|
453
|
+
type: 'wallet';
|
|
393
454
|
|
|
394
|
-
|
|
455
|
+
value: string;
|
|
395
456
|
}
|
|
396
457
|
|
|
397
458
|
export declare namespace Apps {
|
|
398
459
|
export {
|
|
460
|
+
type AllowlistDeletionResponse as AllowlistDeletionResponse,
|
|
461
|
+
type AllowlistEntry as AllowlistEntry,
|
|
462
|
+
type AppResponse as AppResponse,
|
|
399
463
|
type Caip2 as Caip2,
|
|
400
|
-
type CurrencyAsset as CurrencyAsset,
|
|
401
464
|
type Currency as Currency,
|
|
402
|
-
type
|
|
465
|
+
type CurrencyAsset as CurrencyAsset,
|
|
466
|
+
type EmailDomain as EmailDomain,
|
|
467
|
+
type EmailDomainInviteInput as EmailDomainInviteInput,
|
|
468
|
+
type EmailInviteInput as EmailInviteInput,
|
|
403
469
|
type EmbeddedWalletChainConfig as EmbeddedWalletChainConfig,
|
|
404
|
-
type
|
|
470
|
+
type EmbeddedWalletConfigSchema as EmbeddedWalletConfigSchema,
|
|
471
|
+
type EmbeddedWalletCreateOnLogin as EmbeddedWalletCreateOnLogin,
|
|
405
472
|
type EmbeddedWalletInputSchema as EmbeddedWalletInputSchema,
|
|
406
473
|
type EmbeddedWalletMode as EmbeddedWalletMode,
|
|
407
|
-
type
|
|
408
|
-
type TelegramAuthConfigSchema as TelegramAuthConfigSchema,
|
|
474
|
+
type FundingConfigResponseSchema as FundingConfigResponseSchema,
|
|
409
475
|
type FundingMethodEnum as FundingMethodEnum,
|
|
410
476
|
type FundingOption as FundingOption,
|
|
411
|
-
type
|
|
412
|
-
type
|
|
413
|
-
type
|
|
414
|
-
type
|
|
477
|
+
type GasSpendCurrency as GasSpendCurrency,
|
|
478
|
+
type GasSpendRequestBody as GasSpendRequestBody,
|
|
479
|
+
type GasSpendResponseBody as GasSpendResponseBody,
|
|
480
|
+
type GasSponsorshipConfiguration as GasSponsorshipConfiguration,
|
|
481
|
+
type GasSponsorshipConfigurationInput as GasSponsorshipConfigurationInput,
|
|
415
482
|
type PhoneInviteInput as PhoneInviteInput,
|
|
416
|
-
type
|
|
417
|
-
type AllowlistEntry as AllowlistEntry,
|
|
418
|
-
type AllowlistDeletionResponse as AllowlistDeletionResponse,
|
|
483
|
+
type TelegramAuthConfigSchema as TelegramAuthConfigSchema,
|
|
419
484
|
type TestAccount as TestAccount,
|
|
420
485
|
type TestAccountsResponse as TestAccountsResponse,
|
|
421
|
-
type
|
|
422
|
-
type
|
|
486
|
+
type UserInviteInput as UserInviteInput,
|
|
487
|
+
type UserOwnedRecoveryOption as UserOwnedRecoveryOption,
|
|
488
|
+
type WalletInviteInput as WalletInviteInput,
|
|
423
489
|
};
|
|
424
490
|
}
|