@privy-io/api-types 0.9.0 → 0.11.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 +46 -0
- package/client.d.mts +40 -43
- package/client.d.mts.map +1 -1
- package/client.d.ts +40 -43
- package/client.d.ts.map +1 -1
- package/client.js +28 -20
- package/client.js.map +1 -1
- package/client.mjs +29 -21
- 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/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 +169 -135
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +169 -135
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +931 -947
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +931 -947
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/embedded-wallets.d.mts +122 -122
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +122 -122
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/fiat.d.mts +110 -0
- package/resources/fiat.d.mts.map +1 -0
- package/resources/fiat.d.ts +110 -0
- package/resources/fiat.d.ts.map +1 -0
- package/resources/fiat.js +9 -0
- package/resources/fiat.js.map +1 -0
- package/resources/fiat.mjs +5 -0
- package/resources/fiat.mjs.map +1 -0
- package/resources/funding.d.mts +86 -86
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +86 -86
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +20 -18
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +20 -18
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +269 -265
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +269 -265
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +15 -146
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +15 -146
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +0 -92
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +0 -92
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +12 -20
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +12 -20
- 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 +261 -553
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +261 -553
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +0 -229
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +0 -229
- package/resources/policies.mjs.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 +6 -9
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +6 -9
- 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 +80 -96
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +80 -96
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +0 -17
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +0 -17
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +480 -815
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +480 -815
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +0 -272
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +0 -272
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +302 -145
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +302 -145
- package/resources/wallet-actions.d.ts.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 +7 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +7 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/wallets.d.mts +1592 -1580
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +1592 -1580
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +45 -103
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +45 -103
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +935 -877
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +935 -877
- 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 +650 -618
- package/src/internal/types.ts +6 -8
- package/src/resources/accounts.ts +157 -103
- package/src/resources/aggregations.ts +55 -55
- package/src/resources/apps.ts +221 -178
- package/src/resources/client-auth.ts +1271 -1315
- package/src/resources/embedded-wallets.ts +160 -160
- package/src/resources/fiat.ts +177 -0
- package/src/resources/funding.ts +130 -130
- package/src/resources/index.ts +551 -542
- package/src/resources/intents.ts +326 -322
- package/src/resources/key-quorums.ts +16 -218
- package/src/resources/kraken-embed.ts +14 -22
- package/src/resources/organizations.ts +82 -0
- package/src/resources/policies.ts +383 -848
- package/src/resources/shared.ts +34 -34
- package/src/resources/swaps.ts +5 -10
- package/src/resources/transactions.ts +116 -136
- package/src/resources/users.ts +693 -1160
- package/src/resources/wallet-actions.ts +392 -185
- package/src/resources/wallets/index.ts +160 -156
- package/src/resources/wallets/transactions.ts +18 -3
- package/src/resources/wallets/wallets.ts +2123 -2113
- package/src/resources/webhooks.ts +1172 -1100
- 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,11 +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
|
+
|
|
297
211
|
/**
|
|
298
212
|
* An email domain.
|
|
299
213
|
*/
|
|
300
214
|
export type EmailDomain = string;
|
|
301
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
|
+
|
|
302
228
|
/**
|
|
303
229
|
* Allowlist invite input for an email address.
|
|
304
230
|
*/
|
|
@@ -309,64 +235,177 @@ export interface EmailInviteInput {
|
|
|
309
235
|
}
|
|
310
236
|
|
|
311
237
|
/**
|
|
312
|
-
*
|
|
238
|
+
* Chain-specific configuration for embedded wallets.
|
|
313
239
|
*/
|
|
314
|
-
export interface
|
|
315
|
-
|
|
240
|
+
export interface EmbeddedWalletChainConfig {
|
|
241
|
+
/**
|
|
242
|
+
* Whether to create embedded wallets on login.
|
|
243
|
+
*/
|
|
244
|
+
create_on_login: EmbeddedWalletCreateOnLogin;
|
|
245
|
+
}
|
|
316
246
|
|
|
317
|
-
|
|
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;
|
|
318
255
|
}
|
|
319
256
|
|
|
320
257
|
/**
|
|
321
|
-
*
|
|
258
|
+
* Whether to create embedded wallets on login.
|
|
322
259
|
*/
|
|
323
|
-
export
|
|
324
|
-
type: 'phone';
|
|
260
|
+
export type EmbeddedWalletCreateOnLogin = 'users-without-wallets' | 'all-users' | 'off';
|
|
325
261
|
|
|
326
|
-
|
|
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;
|
|
327
286
|
}
|
|
328
287
|
|
|
329
288
|
/**
|
|
330
|
-
*
|
|
289
|
+
* The mode for embedded wallets.
|
|
331
290
|
*/
|
|
332
|
-
export
|
|
333
|
-
|
|
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;
|
|
334
300
|
|
|
335
301
|
/**
|
|
336
|
-
*
|
|
302
|
+
* A crypto currency identified by a CAIP-2 chain ID and optional asset.
|
|
337
303
|
*/
|
|
338
|
-
|
|
304
|
+
default_recommended_currency: Currency;
|
|
305
|
+
|
|
306
|
+
methods: Array<FundingMethodEnum>;
|
|
307
|
+
|
|
308
|
+
options: Array<FundingOption>;
|
|
309
|
+
|
|
310
|
+
prompt_funding_on_wallet_creation: boolean;
|
|
339
311
|
}
|
|
340
312
|
|
|
341
313
|
/**
|
|
342
|
-
*
|
|
314
|
+
* A funding method for on-ramp.
|
|
343
315
|
*/
|
|
344
|
-
export type
|
|
345
|
-
| EmailInviteInput
|
|
346
|
-
| EmailDomainInviteInput
|
|
347
|
-
| WalletInviteInput
|
|
348
|
-
| PhoneInviteInput;
|
|
316
|
+
export type FundingMethodEnum = 'moonpay' | 'coinbase-onramp' | 'external';
|
|
349
317
|
|
|
350
318
|
/**
|
|
351
|
-
*
|
|
319
|
+
* A funding option with method and provider.
|
|
352
320
|
*/
|
|
353
|
-
export interface
|
|
354
|
-
|
|
321
|
+
export interface FundingOption {
|
|
322
|
+
method: string;
|
|
355
323
|
|
|
356
|
-
|
|
324
|
+
provider: string;
|
|
325
|
+
}
|
|
357
326
|
|
|
358
|
-
|
|
327
|
+
/**
|
|
328
|
+
* Currency for gas spend values.
|
|
329
|
+
*/
|
|
330
|
+
export type GasSpendCurrency = 'usd';
|
|
359
331
|
|
|
360
|
-
|
|
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
|
+
}
|
|
361
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;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Total Privy credits charged as a decimal string.
|
|
363
|
+
*/
|
|
362
364
|
value: string;
|
|
363
365
|
}
|
|
364
366
|
|
|
365
367
|
/**
|
|
366
|
-
*
|
|
368
|
+
* Gas sponsorship configuration for an app.
|
|
367
369
|
*/
|
|
368
|
-
export interface
|
|
369
|
-
|
|
370
|
+
export interface GasSponsorshipConfiguration {
|
|
371
|
+
configured_networks: Array<Caip2>;
|
|
372
|
+
|
|
373
|
+
require_app_secret: boolean;
|
|
374
|
+
|
|
375
|
+
sponsorship_enabled: boolean;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Input for configuring gas sponsorship settings for an app.
|
|
380
|
+
*/
|
|
381
|
+
export interface GasSponsorshipConfigurationInput {
|
|
382
|
+
configured_networks?: Array<Caip2>;
|
|
383
|
+
|
|
384
|
+
require_app_secret?: boolean;
|
|
385
|
+
|
|
386
|
+
sponsorship_enabled?: boolean;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Allowlist invite input for a phone number.
|
|
391
|
+
*/
|
|
392
|
+
export interface PhoneInviteInput {
|
|
393
|
+
type: 'phone';
|
|
394
|
+
|
|
395
|
+
value: string;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Configuration for Telegram authentication.
|
|
400
|
+
*/
|
|
401
|
+
export interface TelegramAuthConfigSchema {
|
|
402
|
+
bot_id: string;
|
|
403
|
+
|
|
404
|
+
bot_name: string;
|
|
405
|
+
|
|
406
|
+
link_enabled: boolean;
|
|
407
|
+
|
|
408
|
+
seamless_auth_enabled: boolean;
|
|
370
409
|
}
|
|
371
410
|
|
|
372
411
|
/**
|
|
@@ -394,54 +433,58 @@ export interface TestAccountsResponse {
|
|
|
394
433
|
}
|
|
395
434
|
|
|
396
435
|
/**
|
|
397
|
-
* Input for
|
|
436
|
+
* Input for adding or removing an allowlist entry. Discriminated by type.
|
|
398
437
|
*/
|
|
399
|
-
export
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
sponsorship_enabled?: boolean;
|
|
405
|
-
}
|
|
438
|
+
export type UserInviteInput =
|
|
439
|
+
| EmailInviteInput
|
|
440
|
+
| EmailDomainInviteInput
|
|
441
|
+
| WalletInviteInput
|
|
442
|
+
| PhoneInviteInput;
|
|
406
443
|
|
|
407
444
|
/**
|
|
408
|
-
*
|
|
445
|
+
* A user-owned recovery option for embedded wallets.
|
|
409
446
|
*/
|
|
410
|
-
export
|
|
411
|
-
configured_networks: Array<Caip2>;
|
|
447
|
+
export type UserOwnedRecoveryOption = 'user-passcode' | 'google-drive' | 'icloud';
|
|
412
448
|
|
|
413
|
-
|
|
449
|
+
/**
|
|
450
|
+
* Allowlist invite input for a wallet address.
|
|
451
|
+
*/
|
|
452
|
+
export interface WalletInviteInput {
|
|
453
|
+
type: 'wallet';
|
|
414
454
|
|
|
415
|
-
|
|
455
|
+
value: string;
|
|
416
456
|
}
|
|
417
457
|
|
|
418
458
|
export declare namespace Apps {
|
|
419
459
|
export {
|
|
460
|
+
type AllowlistDeletionResponse as AllowlistDeletionResponse,
|
|
461
|
+
type AllowlistEntry as AllowlistEntry,
|
|
462
|
+
type AppResponse as AppResponse,
|
|
420
463
|
type Caip2 as Caip2,
|
|
421
|
-
type CurrencyAsset as CurrencyAsset,
|
|
422
464
|
type Currency as Currency,
|
|
423
|
-
type
|
|
465
|
+
type CurrencyAsset as CurrencyAsset,
|
|
466
|
+
type EmailDomain as EmailDomain,
|
|
467
|
+
type EmailDomainInviteInput as EmailDomainInviteInput,
|
|
468
|
+
type EmailInviteInput as EmailInviteInput,
|
|
424
469
|
type EmbeddedWalletChainConfig as EmbeddedWalletChainConfig,
|
|
425
|
-
type
|
|
470
|
+
type EmbeddedWalletConfigSchema as EmbeddedWalletConfigSchema,
|
|
471
|
+
type EmbeddedWalletCreateOnLogin as EmbeddedWalletCreateOnLogin,
|
|
426
472
|
type EmbeddedWalletInputSchema as EmbeddedWalletInputSchema,
|
|
427
473
|
type EmbeddedWalletMode as EmbeddedWalletMode,
|
|
428
|
-
type
|
|
429
|
-
type TelegramAuthConfigSchema as TelegramAuthConfigSchema,
|
|
474
|
+
type FundingConfigResponseSchema as FundingConfigResponseSchema,
|
|
430
475
|
type FundingMethodEnum as FundingMethodEnum,
|
|
431
476
|
type FundingOption as FundingOption,
|
|
432
|
-
type
|
|
433
|
-
type
|
|
434
|
-
type
|
|
435
|
-
type
|
|
436
|
-
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,
|
|
437
482
|
type PhoneInviteInput as PhoneInviteInput,
|
|
438
|
-
type
|
|
439
|
-
type UserInviteInput as UserInviteInput,
|
|
440
|
-
type AllowlistEntry as AllowlistEntry,
|
|
441
|
-
type AllowlistDeletionResponse as AllowlistDeletionResponse,
|
|
483
|
+
type TelegramAuthConfigSchema as TelegramAuthConfigSchema,
|
|
442
484
|
type TestAccount as TestAccount,
|
|
443
485
|
type TestAccountsResponse as TestAccountsResponse,
|
|
444
|
-
type
|
|
445
|
-
type
|
|
486
|
+
type UserInviteInput as UserInviteInput,
|
|
487
|
+
type UserOwnedRecoveryOption as UserOwnedRecoveryOption,
|
|
488
|
+
type WalletInviteInput as WalletInviteInput,
|
|
446
489
|
};
|
|
447
490
|
}
|