@privy-io/api-types 0.7.0 → 0.9.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 +62 -0
- package/client.d.mts +39 -30
- package/client.d.mts.map +1 -1
- package/client.d.ts +39 -30
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.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 +79 -106
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +79 -106
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +18 -392
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +18 -392
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.js.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/apps.d.mts +154 -71
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +154 -71
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +796 -427
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +796 -427
- 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/cross-app.d.mts +14 -13
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts +14 -13
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +167 -83
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +167 -83
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.js.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/funding.d.mts +150 -64
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +150 -64
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.js.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +18 -15
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +18 -15
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +224 -1757
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +224 -1757
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +74 -26
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +74 -26
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +8 -8
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +8 -8
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +52 -1
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +52 -1
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/policies.d.mts +512 -992
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +512 -992
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +48 -41
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +48 -41
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +59 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +59 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +9 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +5 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/swaps.d.mts +108 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +108 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +9 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +5 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transactions.d.mts +150 -98
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +150 -98
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +207 -240
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +207 -240
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +439 -0
- package/resources/wallet-actions.d.mts.map +1 -0
- package/resources/wallet-actions.d.ts +439 -0
- package/resources/wallet-actions.d.ts.map +1 -0
- package/resources/wallet-actions.js +9 -0
- package/resources/wallet-actions.js.map +1 -0
- package/resources/wallet-actions.mjs +5 -0
- package/resources/wallet-actions.mjs.map +1 -0
- 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 +11 -30
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +11 -30
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +2435 -923
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +2435 -923
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +24 -11
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +24 -11
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +1296 -186
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +1296 -186
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +25 -1
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +25 -1
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +869 -92
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/accounts.ts +93 -120
- package/src/resources/aggregations.ts +18 -702
- package/src/resources/apps.ts +211 -111
- package/src/resources/client-auth.ts +1361 -896
- package/src/resources/cross-app.ts +19 -15
- package/src/resources/embedded-wallets.ts +219 -123
- package/src/resources/funding.ts +263 -173
- package/src/resources/index.ts +447 -65
- package/src/resources/intents.ts +370 -3100
- package/src/resources/key-quorums.ts +100 -32
- package/src/resources/kraken-embed.ts +105 -0
- package/src/resources/policies.ts +648 -1494
- package/src/resources/shared.ts +79 -0
- package/src/resources/swaps.ts +136 -0
- package/src/resources/transactions.ts +169 -102
- package/src/resources/users.ts +676 -729
- package/src/resources/wallet-actions.ts +573 -0
- package/src/resources/wallets/balance.ts +2 -1
- package/src/resources/wallets/index.ts +156 -17
- package/src/resources/wallets/transactions.ts +12 -88
- package/src/resources/wallets/wallets.ts +3162 -1109
- package/src/resources/webhooks.ts +1609 -229
- package/src/resources/yield.ts +29 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/apps.ts
CHANGED
|
@@ -2,9 +2,143 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import * as ClientAuthAPI from './client-auth';
|
|
5
|
+
import * as EmbeddedWalletsAPI from './embedded-wallets';
|
|
5
6
|
|
|
6
7
|
export class Apps extends APIResource {}
|
|
7
8
|
|
|
9
|
+
/**
|
|
10
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
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.
|
|
115
|
+
*/
|
|
116
|
+
export interface FundingOption {
|
|
117
|
+
method: string;
|
|
118
|
+
|
|
119
|
+
provider: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Configuration for funding and on-ramp options.
|
|
124
|
+
*/
|
|
125
|
+
export interface FundingConfigResponseSchema {
|
|
126
|
+
cross_chain_bridging_enabled: boolean;
|
|
127
|
+
|
|
128
|
+
default_recommended_amount: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* A crypto currency identified by a CAIP-2 chain ID and optional asset.
|
|
132
|
+
*/
|
|
133
|
+
default_recommended_currency: Currency;
|
|
134
|
+
|
|
135
|
+
methods: Array<FundingMethodEnum>;
|
|
136
|
+
|
|
137
|
+
options: Array<FundingOption>;
|
|
138
|
+
|
|
139
|
+
prompt_funding_on_wallet_creation: boolean;
|
|
140
|
+
}
|
|
141
|
+
|
|
8
142
|
/**
|
|
9
143
|
* The response for getting an app.
|
|
10
144
|
*/
|
|
@@ -39,7 +173,10 @@ export interface AppResponse {
|
|
|
39
173
|
|
|
40
174
|
email_auth: boolean;
|
|
41
175
|
|
|
42
|
-
|
|
176
|
+
/**
|
|
177
|
+
* Configuration for embedded wallets including the mode.
|
|
178
|
+
*/
|
|
179
|
+
embedded_wallet_config: EmbeddedWalletConfigSchema;
|
|
43
180
|
|
|
44
181
|
enabled_captcha_provider: 'turnstile' | 'hcaptcha' | null;
|
|
45
182
|
|
|
@@ -85,7 +222,10 @@ export interface AppResponse {
|
|
|
85
222
|
|
|
86
223
|
show_wallet_login_first: boolean;
|
|
87
224
|
|
|
88
|
-
|
|
225
|
+
/**
|
|
226
|
+
* The configuration object for smart wallets.
|
|
227
|
+
*/
|
|
228
|
+
smart_wallet_config: EmbeddedWalletsAPI.SmartWalletConfiguration;
|
|
89
229
|
|
|
90
230
|
sms_auth: boolean;
|
|
91
231
|
|
|
@@ -117,9 +257,15 @@ export interface AppResponse {
|
|
|
117
257
|
|
|
118
258
|
captcha_site_key?: string;
|
|
119
259
|
|
|
120
|
-
|
|
260
|
+
/**
|
|
261
|
+
* Configuration for funding and on-ramp options.
|
|
262
|
+
*/
|
|
263
|
+
funding_config?: FundingConfigResponseSchema;
|
|
121
264
|
|
|
122
|
-
|
|
265
|
+
/**
|
|
266
|
+
* Configuration for Telegram authentication.
|
|
267
|
+
*/
|
|
268
|
+
telegram_auth_config?: TelegramAuthConfigSchema;
|
|
123
269
|
}
|
|
124
270
|
|
|
125
271
|
export namespace AppResponse {
|
|
@@ -146,114 +292,13 @@ export namespace AppResponse {
|
|
|
146
292
|
|
|
147
293
|
provider_icon_url: string;
|
|
148
294
|
}
|
|
149
|
-
|
|
150
|
-
export interface EmbeddedWalletConfig {
|
|
151
|
-
create_on_login: 'users-without-wallets' | 'all-users' | 'off';
|
|
152
|
-
|
|
153
|
-
ethereum: EmbeddedWalletConfig.Ethereum;
|
|
154
|
-
|
|
155
|
-
mode: 'legacy-embedded-wallets-only' | 'user-controlled-server-wallets-only';
|
|
156
|
-
|
|
157
|
-
solana: EmbeddedWalletConfig.Solana;
|
|
158
|
-
|
|
159
|
-
user_owned_recovery_options: Array<'user-passcode' | 'google-drive' | 'icloud'>;
|
|
160
|
-
|
|
161
|
-
require_user_owned_recovery_on_create?: boolean;
|
|
162
|
-
|
|
163
|
-
require_user_password_on_create?: boolean;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export namespace EmbeddedWalletConfig {
|
|
167
|
-
export interface Ethereum {
|
|
168
|
-
create_on_login: 'users-without-wallets' | 'all-users' | 'off';
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export interface Solana {
|
|
172
|
-
create_on_login: 'users-without-wallets' | 'all-users' | 'off';
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export interface Enabled {
|
|
177
|
-
enabled: false;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export interface UnionMember1 {
|
|
181
|
-
configured_networks: Array<UnionMember1.ConfiguredNetwork>;
|
|
182
|
-
|
|
183
|
-
enabled: true;
|
|
184
|
-
|
|
185
|
-
smart_wallet_type:
|
|
186
|
-
| 'safe'
|
|
187
|
-
| 'kernel'
|
|
188
|
-
| 'light_account'
|
|
189
|
-
| 'biconomy'
|
|
190
|
-
| 'coinbase_smart_wallet'
|
|
191
|
-
| 'thirdweb';
|
|
192
|
-
|
|
193
|
-
smart_wallet_version?: string;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export namespace UnionMember1 {
|
|
197
|
-
export interface ConfiguredNetwork {
|
|
198
|
-
bundler_url: string;
|
|
199
|
-
|
|
200
|
-
chain_id: string;
|
|
201
|
-
|
|
202
|
-
chain_name?: string;
|
|
203
|
-
|
|
204
|
-
paymaster_context?: ConfiguredNetwork.PaymasterContext;
|
|
205
|
-
|
|
206
|
-
paymaster_url?: string;
|
|
207
|
-
|
|
208
|
-
rpc_url?: string;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export namespace ConfiguredNetwork {
|
|
212
|
-
export interface PaymasterContext {
|
|
213
|
-
policy_id: string;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export interface FundingConfig {
|
|
219
|
-
cross_chain_bridging_enabled: boolean;
|
|
220
|
-
|
|
221
|
-
default_recommended_amount: string;
|
|
222
|
-
|
|
223
|
-
default_recommended_currency: FundingConfig.DefaultRecommendedCurrency;
|
|
224
|
-
|
|
225
|
-
methods: Array<'moonpay' | 'coinbase-onramp' | 'external'>;
|
|
226
|
-
|
|
227
|
-
options: Array<FundingConfig.Option>;
|
|
228
|
-
|
|
229
|
-
prompt_funding_on_wallet_creation: boolean;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export namespace FundingConfig {
|
|
233
|
-
export interface DefaultRecommendedCurrency {
|
|
234
|
-
chain: string;
|
|
235
|
-
|
|
236
|
-
asset?: 'native-currency' | 'USDC';
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export interface Option {
|
|
240
|
-
method: string;
|
|
241
|
-
|
|
242
|
-
provider: string;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
export interface TelegramAuthConfig {
|
|
247
|
-
bot_id: string;
|
|
248
|
-
|
|
249
|
-
bot_name: string;
|
|
250
|
-
|
|
251
|
-
link_enabled: boolean;
|
|
252
|
-
|
|
253
|
-
seamless_auth_enabled: boolean;
|
|
254
|
-
}
|
|
255
295
|
}
|
|
256
296
|
|
|
297
|
+
/**
|
|
298
|
+
* An email domain.
|
|
299
|
+
*/
|
|
300
|
+
export type EmailDomain = string;
|
|
301
|
+
|
|
257
302
|
/**
|
|
258
303
|
* Allowlist invite input for an email address.
|
|
259
304
|
*/
|
|
@@ -281,10 +326,26 @@ export interface PhoneInviteInput {
|
|
|
281
326
|
value: string;
|
|
282
327
|
}
|
|
283
328
|
|
|
329
|
+
/**
|
|
330
|
+
* Allowlist invite input for an email domain.
|
|
331
|
+
*/
|
|
332
|
+
export interface EmailDomainInviteInput {
|
|
333
|
+
type: 'emailDomain';
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* An email domain.
|
|
337
|
+
*/
|
|
338
|
+
value: EmailDomain;
|
|
339
|
+
}
|
|
340
|
+
|
|
284
341
|
/**
|
|
285
342
|
* Input for adding or removing an allowlist entry. Discriminated by type.
|
|
286
343
|
*/
|
|
287
|
-
export type UserInviteInput =
|
|
344
|
+
export type UserInviteInput =
|
|
345
|
+
| EmailInviteInput
|
|
346
|
+
| EmailDomainInviteInput
|
|
347
|
+
| WalletInviteInput
|
|
348
|
+
| PhoneInviteInput;
|
|
288
349
|
|
|
289
350
|
/**
|
|
290
351
|
* An allowlist entry for an app.
|
|
@@ -332,16 +393,55 @@ export interface TestAccountsResponse {
|
|
|
332
393
|
data: Array<TestAccount>;
|
|
333
394
|
}
|
|
334
395
|
|
|
396
|
+
/**
|
|
397
|
+
* Input for configuring gas sponsorship settings for an app.
|
|
398
|
+
*/
|
|
399
|
+
export interface GasSponsorshipConfigurationInput {
|
|
400
|
+
configured_networks?: Array<Caip2>;
|
|
401
|
+
|
|
402
|
+
require_app_secret?: boolean;
|
|
403
|
+
|
|
404
|
+
sponsorship_enabled?: boolean;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Gas sponsorship configuration for an app.
|
|
409
|
+
*/
|
|
410
|
+
export interface GasSponsorshipConfiguration {
|
|
411
|
+
configured_networks: Array<Caip2>;
|
|
412
|
+
|
|
413
|
+
require_app_secret: boolean;
|
|
414
|
+
|
|
415
|
+
sponsorship_enabled: boolean;
|
|
416
|
+
}
|
|
417
|
+
|
|
335
418
|
export declare namespace Apps {
|
|
336
419
|
export {
|
|
420
|
+
type Caip2 as Caip2,
|
|
421
|
+
type CurrencyAsset as CurrencyAsset,
|
|
422
|
+
type Currency as Currency,
|
|
423
|
+
type EmbeddedWalletCreateOnLogin as EmbeddedWalletCreateOnLogin,
|
|
424
|
+
type EmbeddedWalletChainConfig as EmbeddedWalletChainConfig,
|
|
425
|
+
type UserOwnedRecoveryOption as UserOwnedRecoveryOption,
|
|
426
|
+
type EmbeddedWalletInputSchema as EmbeddedWalletInputSchema,
|
|
427
|
+
type EmbeddedWalletMode as EmbeddedWalletMode,
|
|
428
|
+
type EmbeddedWalletConfigSchema as EmbeddedWalletConfigSchema,
|
|
429
|
+
type TelegramAuthConfigSchema as TelegramAuthConfigSchema,
|
|
430
|
+
type FundingMethodEnum as FundingMethodEnum,
|
|
431
|
+
type FundingOption as FundingOption,
|
|
432
|
+
type FundingConfigResponseSchema as FundingConfigResponseSchema,
|
|
337
433
|
type AppResponse as AppResponse,
|
|
434
|
+
type EmailDomain as EmailDomain,
|
|
338
435
|
type EmailInviteInput as EmailInviteInput,
|
|
339
436
|
type WalletInviteInput as WalletInviteInput,
|
|
340
437
|
type PhoneInviteInput as PhoneInviteInput,
|
|
438
|
+
type EmailDomainInviteInput as EmailDomainInviteInput,
|
|
341
439
|
type UserInviteInput as UserInviteInput,
|
|
342
440
|
type AllowlistEntry as AllowlistEntry,
|
|
343
441
|
type AllowlistDeletionResponse as AllowlistDeletionResponse,
|
|
344
442
|
type TestAccount as TestAccount,
|
|
345
443
|
type TestAccountsResponse as TestAccountsResponse,
|
|
444
|
+
type GasSponsorshipConfigurationInput as GasSponsorshipConfigurationInput,
|
|
445
|
+
type GasSponsorshipConfiguration as GasSponsorshipConfiguration,
|
|
346
446
|
};
|
|
347
447
|
}
|