@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
|
@@ -18,17 +18,6 @@ export type SmartWalletConfigurationInput =
|
|
|
18
18
|
| SmartWalletConfigurationDisabled
|
|
19
19
|
| SmartWalletConfigurationInputEnabled;
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* The supported smart wallet providers.
|
|
23
|
-
*/
|
|
24
|
-
export type SmartWalletType =
|
|
25
|
-
| 'safe'
|
|
26
|
-
| 'kernel'
|
|
27
|
-
| 'light_account'
|
|
28
|
-
| 'biconomy'
|
|
29
|
-
| 'coinbase_smart_wallet'
|
|
30
|
-
| 'thirdweb';
|
|
31
|
-
|
|
32
21
|
/**
|
|
33
22
|
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
34
23
|
*/
|
|
@@ -37,98 +26,78 @@ export interface AlchemyPaymasterContext {
|
|
|
37
26
|
}
|
|
38
27
|
|
|
39
28
|
/**
|
|
40
|
-
*
|
|
29
|
+
* The fields describing embedded wallet creation, used for user import and
|
|
30
|
+
* embedded wallet generation.
|
|
41
31
|
*/
|
|
42
|
-
export interface
|
|
43
|
-
bundler_url: string;
|
|
44
|
-
|
|
45
|
-
chain_id: string;
|
|
46
|
-
|
|
47
|
-
chain_name?: string;
|
|
48
|
-
|
|
32
|
+
export interface EmbeddedWalletCreationInput {
|
|
49
33
|
/**
|
|
50
|
-
*
|
|
34
|
+
* Wallets to create.
|
|
51
35
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
paymaster_url?: string;
|
|
55
|
-
|
|
56
|
-
rpc_url?: string;
|
|
36
|
+
wallets?: Array<WalletCreationInput>;
|
|
57
37
|
}
|
|
58
38
|
|
|
59
39
|
/**
|
|
60
|
-
*
|
|
40
|
+
* The client type for iCloud recovery operations.
|
|
61
41
|
*/
|
|
62
|
-
export
|
|
63
|
-
chain_id: string;
|
|
64
|
-
|
|
65
|
-
bundler_url?: string;
|
|
66
|
-
|
|
67
|
-
chain_name?: string;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
71
|
-
*/
|
|
72
|
-
paymaster_context?: AlchemyPaymasterContext;
|
|
73
|
-
|
|
74
|
-
paymaster_url?: string;
|
|
42
|
+
export type ICloudClientType = 'web' | 'expo-ios';
|
|
75
43
|
|
|
76
|
-
|
|
44
|
+
/**
|
|
45
|
+
* The response from authenticating with OAuth for recovery.
|
|
46
|
+
*/
|
|
47
|
+
export interface OAuthAuthenticateRecoveryResponse {
|
|
48
|
+
access_token: string;
|
|
77
49
|
}
|
|
78
50
|
|
|
79
51
|
/**
|
|
80
|
-
*
|
|
52
|
+
* The input for the iCloud Expo OAuth callback.
|
|
81
53
|
*/
|
|
82
|
-
export interface
|
|
83
|
-
|
|
54
|
+
export interface OAuthCallbackICloudExpoInput {
|
|
55
|
+
ckWebAuthToken: string;
|
|
84
56
|
}
|
|
85
57
|
|
|
86
58
|
/**
|
|
87
|
-
*
|
|
59
|
+
* The input for initiating an iCloud OAuth recovery flow.
|
|
88
60
|
*/
|
|
89
|
-
export interface
|
|
90
|
-
configured_networks: Array<SmartWalletNetworkConfiguration>;
|
|
91
|
-
|
|
92
|
-
enabled: true;
|
|
93
|
-
|
|
61
|
+
export interface OAuthInitICloudRecoveryInput {
|
|
94
62
|
/**
|
|
95
|
-
* The
|
|
63
|
+
* The client type for iCloud recovery operations.
|
|
96
64
|
*/
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
smart_wallet_version?: string;
|
|
65
|
+
client_type: ICloudClientType;
|
|
100
66
|
}
|
|
101
67
|
|
|
102
68
|
/**
|
|
103
|
-
*
|
|
69
|
+
* The input for initiating an OAuth recovery flow.
|
|
104
70
|
*/
|
|
105
|
-
export interface
|
|
106
|
-
|
|
71
|
+
export interface OAuthInitRecoveryInput {
|
|
72
|
+
redirect_to: string;
|
|
107
73
|
|
|
108
|
-
|
|
74
|
+
token?: string;
|
|
109
75
|
|
|
110
|
-
|
|
111
|
-
* The supported smart wallet providers.
|
|
112
|
-
*/
|
|
113
|
-
smart_wallet_type: SmartWalletType;
|
|
76
|
+
code_challenge?: string;
|
|
114
77
|
|
|
115
|
-
|
|
78
|
+
state_code?: string;
|
|
116
79
|
}
|
|
117
80
|
|
|
118
81
|
/**
|
|
119
|
-
* The
|
|
82
|
+
* The input for getting the iCloud recovery configuration.
|
|
120
83
|
*/
|
|
121
|
-
export
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
84
|
+
export interface RecoveryConfigurationICloudInput {
|
|
85
|
+
/**
|
|
86
|
+
* The client type for iCloud recovery operations.
|
|
87
|
+
*/
|
|
88
|
+
client_type: ICloudClientType;
|
|
89
|
+
}
|
|
127
90
|
|
|
128
91
|
/**
|
|
129
|
-
* The
|
|
92
|
+
* The response containing the iCloud recovery configuration.
|
|
130
93
|
*/
|
|
131
|
-
export
|
|
94
|
+
export interface RecoveryConfigurationICloudResponse {
|
|
95
|
+
api_token: string;
|
|
96
|
+
|
|
97
|
+
container_identifier: string;
|
|
98
|
+
|
|
99
|
+
environment: string;
|
|
100
|
+
}
|
|
132
101
|
|
|
133
102
|
/**
|
|
134
103
|
* The input for getting the recovery key material.
|
|
@@ -158,63 +127,105 @@ export interface RecoveryKeyMaterialResponse {
|
|
|
158
127
|
}
|
|
159
128
|
|
|
160
129
|
/**
|
|
161
|
-
* The
|
|
130
|
+
* The type of recovery mechanism used for wallet recovery.
|
|
162
131
|
*/
|
|
163
|
-
export
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
state_code?: string;
|
|
171
|
-
}
|
|
132
|
+
export type RecoveryType =
|
|
133
|
+
| 'user_passcode_derived_recovery_key'
|
|
134
|
+
| 'privy_passcode_derived_recovery_key'
|
|
135
|
+
| 'privy_generated_recovery_key'
|
|
136
|
+
| 'google_drive_recovery_secret'
|
|
137
|
+
| 'icloud_recovery_secret';
|
|
172
138
|
|
|
173
139
|
/**
|
|
174
|
-
*
|
|
140
|
+
* A disabled smart wallet configuration.
|
|
175
141
|
*/
|
|
176
|
-
export interface
|
|
177
|
-
|
|
142
|
+
export interface SmartWalletConfigurationDisabled {
|
|
143
|
+
enabled: false;
|
|
178
144
|
}
|
|
179
145
|
|
|
180
146
|
/**
|
|
181
|
-
*
|
|
147
|
+
* An enabled smart wallet configuration.
|
|
182
148
|
*/
|
|
183
|
-
export interface
|
|
149
|
+
export interface SmartWalletConfigurationEnabled {
|
|
150
|
+
configured_networks: Array<SmartWalletNetworkConfiguration>;
|
|
151
|
+
|
|
152
|
+
enabled: true;
|
|
153
|
+
|
|
184
154
|
/**
|
|
185
|
-
* The
|
|
155
|
+
* The supported smart wallet providers.
|
|
186
156
|
*/
|
|
187
|
-
|
|
157
|
+
smart_wallet_type: SmartWalletType;
|
|
158
|
+
|
|
159
|
+
smart_wallet_version?: string;
|
|
188
160
|
}
|
|
189
161
|
|
|
190
162
|
/**
|
|
191
|
-
*
|
|
163
|
+
* An enabled smart wallet configuration input.
|
|
192
164
|
*/
|
|
193
|
-
export interface
|
|
194
|
-
|
|
165
|
+
export interface SmartWalletConfigurationInputEnabled {
|
|
166
|
+
configured_networks: Array<SmartWalletNetworkConfigurationInput>;
|
|
167
|
+
|
|
168
|
+
enabled: true;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The supported smart wallet providers.
|
|
172
|
+
*/
|
|
173
|
+
smart_wallet_type: SmartWalletType;
|
|
174
|
+
|
|
175
|
+
smart_wallet_version?: string | null;
|
|
195
176
|
}
|
|
196
177
|
|
|
197
178
|
/**
|
|
198
|
-
*
|
|
179
|
+
* Network configuration for a smart wallet.
|
|
199
180
|
*/
|
|
200
|
-
export interface
|
|
181
|
+
export interface SmartWalletNetworkConfiguration {
|
|
182
|
+
bundler_url: string;
|
|
183
|
+
|
|
184
|
+
chain_id: string;
|
|
185
|
+
|
|
186
|
+
chain_name?: string;
|
|
187
|
+
|
|
201
188
|
/**
|
|
202
|
-
* The
|
|
189
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
203
190
|
*/
|
|
204
|
-
|
|
191
|
+
paymaster_context?: AlchemyPaymasterContext;
|
|
192
|
+
|
|
193
|
+
paymaster_url?: string;
|
|
194
|
+
|
|
195
|
+
rpc_url?: string;
|
|
205
196
|
}
|
|
206
197
|
|
|
207
198
|
/**
|
|
208
|
-
*
|
|
199
|
+
* Input for network configuration for a smart wallet.
|
|
209
200
|
*/
|
|
210
|
-
export interface
|
|
211
|
-
|
|
201
|
+
export interface SmartWalletNetworkConfigurationInput {
|
|
202
|
+
chain_id: string;
|
|
212
203
|
|
|
213
|
-
|
|
204
|
+
bundler_url?: string;
|
|
214
205
|
|
|
215
|
-
|
|
206
|
+
chain_name?: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
210
|
+
*/
|
|
211
|
+
paymaster_context?: AlchemyPaymasterContext;
|
|
212
|
+
|
|
213
|
+
paymaster_url?: string;
|
|
214
|
+
|
|
215
|
+
rpc_url?: string;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
/**
|
|
219
|
+
* The supported smart wallet providers.
|
|
220
|
+
*/
|
|
221
|
+
export type SmartWalletType =
|
|
222
|
+
| 'safe'
|
|
223
|
+
| 'kernel'
|
|
224
|
+
| 'light_account'
|
|
225
|
+
| 'biconomy'
|
|
226
|
+
| 'coinbase_smart_wallet'
|
|
227
|
+
| 'thirdweb';
|
|
228
|
+
|
|
218
229
|
/**
|
|
219
230
|
* An additional signer configuration for a wallet.
|
|
220
231
|
*/
|
|
@@ -260,40 +271,29 @@ export interface WalletCreationInput {
|
|
|
260
271
|
policy_ids?: Array<string>;
|
|
261
272
|
}
|
|
262
273
|
|
|
263
|
-
/**
|
|
264
|
-
* The fields describing embedded wallet creation, used for user import and
|
|
265
|
-
* embedded wallet generation.
|
|
266
|
-
*/
|
|
267
|
-
export interface EmbeddedWalletCreationInput {
|
|
268
|
-
/**
|
|
269
|
-
* Wallets to create.
|
|
270
|
-
*/
|
|
271
|
-
wallets?: Array<WalletCreationInput>;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
274
|
export declare namespace EmbeddedWallets {
|
|
275
275
|
export {
|
|
276
276
|
type SmartWalletConfiguration as SmartWalletConfiguration,
|
|
277
277
|
type SmartWalletConfigurationInput as SmartWalletConfigurationInput,
|
|
278
|
-
type SmartWalletType as SmartWalletType,
|
|
279
278
|
type AlchemyPaymasterContext as AlchemyPaymasterContext,
|
|
280
|
-
type
|
|
281
|
-
type SmartWalletNetworkConfigurationInput as SmartWalletNetworkConfigurationInput,
|
|
282
|
-
type SmartWalletConfigurationDisabled as SmartWalletConfigurationDisabled,
|
|
283
|
-
type SmartWalletConfigurationEnabled as SmartWalletConfigurationEnabled,
|
|
284
|
-
type SmartWalletConfigurationInputEnabled as SmartWalletConfigurationInputEnabled,
|
|
285
|
-
type RecoveryType as RecoveryType,
|
|
279
|
+
type EmbeddedWalletCreationInput as EmbeddedWalletCreationInput,
|
|
286
280
|
type ICloudClientType as ICloudClientType,
|
|
287
|
-
type RecoveryKeyMaterialInput as RecoveryKeyMaterialInput,
|
|
288
|
-
type RecoveryKeyMaterialResponse as RecoveryKeyMaterialResponse,
|
|
289
|
-
type OAuthInitRecoveryInput as OAuthInitRecoveryInput,
|
|
290
281
|
type OAuthAuthenticateRecoveryResponse as OAuthAuthenticateRecoveryResponse,
|
|
291
|
-
type OAuthInitICloudRecoveryInput as OAuthInitICloudRecoveryInput,
|
|
292
282
|
type OAuthCallbackICloudExpoInput as OAuthCallbackICloudExpoInput,
|
|
283
|
+
type OAuthInitICloudRecoveryInput as OAuthInitICloudRecoveryInput,
|
|
284
|
+
type OAuthInitRecoveryInput as OAuthInitRecoveryInput,
|
|
293
285
|
type RecoveryConfigurationICloudInput as RecoveryConfigurationICloudInput,
|
|
294
286
|
type RecoveryConfigurationICloudResponse as RecoveryConfigurationICloudResponse,
|
|
287
|
+
type RecoveryKeyMaterialInput as RecoveryKeyMaterialInput,
|
|
288
|
+
type RecoveryKeyMaterialResponse as RecoveryKeyMaterialResponse,
|
|
289
|
+
type RecoveryType as RecoveryType,
|
|
290
|
+
type SmartWalletConfigurationDisabled as SmartWalletConfigurationDisabled,
|
|
291
|
+
type SmartWalletConfigurationEnabled as SmartWalletConfigurationEnabled,
|
|
292
|
+
type SmartWalletConfigurationInputEnabled as SmartWalletConfigurationInputEnabled,
|
|
293
|
+
type SmartWalletNetworkConfiguration as SmartWalletNetworkConfiguration,
|
|
294
|
+
type SmartWalletNetworkConfigurationInput as SmartWalletNetworkConfigurationInput,
|
|
295
|
+
type SmartWalletType as SmartWalletType,
|
|
295
296
|
type WalletCreationAdditionalSignerItem as WalletCreationAdditionalSignerItem,
|
|
296
297
|
type WalletCreationInput as WalletCreationInput,
|
|
297
|
-
type EmbeddedWalletCreationInput as EmbeddedWalletCreationInput,
|
|
298
298
|
};
|
|
299
299
|
}
|
package/src/resources/funding.ts
CHANGED
|
@@ -85,11 +85,6 @@ export type CoinbaseBlockchain =
|
|
|
85
85
|
*/
|
|
86
86
|
export type CoinbaseEthereumAsset = 'eth' | 'ETH' | 'USDC' | 'POL' | 'MON';
|
|
87
87
|
|
|
88
|
-
/**
|
|
89
|
-
* A Solana asset supported by Coinbase on-ramp.
|
|
90
|
-
*/
|
|
91
|
-
export type CoinbaseSolanaAsset = 'SOL' | 'USDC';
|
|
92
|
-
|
|
93
88
|
/**
|
|
94
89
|
* An Ethereum address with supported blockchains for Coinbase on-ramp.
|
|
95
90
|
*/
|
|
@@ -99,15 +94,6 @@ export interface CoinbaseOnRampEthereumAddress {
|
|
|
99
94
|
blockchains: Array<CoinbaseBlockchain>;
|
|
100
95
|
}
|
|
101
96
|
|
|
102
|
-
/**
|
|
103
|
-
* A Solana address with supported blockchains for Coinbase on-ramp.
|
|
104
|
-
*/
|
|
105
|
-
export interface CoinbaseOnRampSolanaAddress {
|
|
106
|
-
address: string;
|
|
107
|
-
|
|
108
|
-
blockchains: Array<CoinbaseBlockchain>;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
97
|
/**
|
|
112
98
|
* Input for initializing a Coinbase on-ramp session for Ethereum.
|
|
113
99
|
*/
|
|
@@ -126,24 +112,24 @@ export interface CoinbaseOnRampInitSolanaInput {
|
|
|
126
112
|
assets?: Array<CoinbaseSolanaAsset>;
|
|
127
113
|
}
|
|
128
114
|
|
|
115
|
+
/**
|
|
116
|
+
* A Solana address with supported blockchains for Coinbase on-ramp.
|
|
117
|
+
*/
|
|
118
|
+
export interface CoinbaseOnRampSolanaAddress {
|
|
119
|
+
address: string;
|
|
120
|
+
|
|
121
|
+
blockchains: Array<CoinbaseBlockchain>;
|
|
122
|
+
}
|
|
123
|
+
|
|
129
124
|
/**
|
|
130
125
|
* Status of a Coinbase on-ramp session.
|
|
131
126
|
*/
|
|
132
127
|
export type CoinbaseOnRampStatus = 'pending' | 'success' | 'failure';
|
|
133
128
|
|
|
134
129
|
/**
|
|
135
|
-
* A
|
|
130
|
+
* A Solana asset supported by Coinbase on-ramp.
|
|
136
131
|
*/
|
|
137
|
-
export type
|
|
138
|
-
| 'ach_bank_transfer'
|
|
139
|
-
| 'credit_debit_card'
|
|
140
|
-
| 'gbp_bank_transfer'
|
|
141
|
-
| 'gbp_open_banking_payment'
|
|
142
|
-
| 'mobile_wallet'
|
|
143
|
-
| 'sepa_bank_transfer'
|
|
144
|
-
| 'sepa_open_banking_payment'
|
|
145
|
-
| 'pix_instant_payment'
|
|
146
|
-
| 'yellow_card_bank_transfer';
|
|
132
|
+
export type CoinbaseSolanaAsset = 'SOL' | 'USDC';
|
|
147
133
|
|
|
148
134
|
/**
|
|
149
135
|
* A Moonpay currency code for an Ethereum-compatible chain asset.
|
|
@@ -188,28 +174,6 @@ export type MoonpayCurrencyCode =
|
|
|
188
174
|
| 'WETH'
|
|
189
175
|
| 'WBTC';
|
|
190
176
|
|
|
191
|
-
/**
|
|
192
|
-
* The theme for the Moonpay on-ramp widget.
|
|
193
|
-
*/
|
|
194
|
-
export type MoonpayUiTheme = 'light' | 'dark';
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* UI configuration for the Moonpay on-ramp widget.
|
|
198
|
-
*/
|
|
199
|
-
export interface MoonpayUiConfig {
|
|
200
|
-
accentColor?: string;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* The theme for the Moonpay on-ramp widget.
|
|
204
|
-
*/
|
|
205
|
-
theme?: MoonpayUiTheme;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* A Moonpay currency code for a Solana asset.
|
|
210
|
-
*/
|
|
211
|
-
export type MoonpaySolanaCurrencyCode = 'SOL' | 'USDC_SOL';
|
|
212
|
-
|
|
213
177
|
/**
|
|
214
178
|
* Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
215
179
|
*/
|
|
@@ -234,6 +198,18 @@ export interface MoonpayFiatOnRampEthereumConfig {
|
|
|
234
198
|
uiConfig?: MoonpayUiConfig;
|
|
235
199
|
}
|
|
236
200
|
|
|
201
|
+
/**
|
|
202
|
+
* Input for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
203
|
+
*/
|
|
204
|
+
export interface MoonpayFiatOnRampEthereumInput {
|
|
205
|
+
address: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
209
|
+
*/
|
|
210
|
+
config: MoonpayFiatOnRampEthereumConfig;
|
|
211
|
+
}
|
|
212
|
+
|
|
237
213
|
/**
|
|
238
214
|
* Configuration for a Moonpay fiat on-ramp for Solana.
|
|
239
215
|
*/
|
|
@@ -258,18 +234,6 @@ export interface MoonpayFiatOnRampSolanaConfig {
|
|
|
258
234
|
uiConfig?: MoonpayUiConfig;
|
|
259
235
|
}
|
|
260
236
|
|
|
261
|
-
/**
|
|
262
|
-
* Input for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
263
|
-
*/
|
|
264
|
-
export interface MoonpayFiatOnRampEthereumInput {
|
|
265
|
-
address: string;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
269
|
-
*/
|
|
270
|
-
config: MoonpayFiatOnRampEthereumConfig;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
237
|
/**
|
|
274
238
|
* Input for a Moonpay fiat on-ramp for Solana.
|
|
275
239
|
*/
|
|
@@ -289,6 +253,42 @@ export interface MoonpayOnRampSandboxConfig {
|
|
|
289
253
|
useSandbox?: boolean;
|
|
290
254
|
}
|
|
291
255
|
|
|
256
|
+
/**
|
|
257
|
+
* A payment method supported by Moonpay on-ramp.
|
|
258
|
+
*/
|
|
259
|
+
export type MoonpayPaymentMethod =
|
|
260
|
+
| 'ach_bank_transfer'
|
|
261
|
+
| 'credit_debit_card'
|
|
262
|
+
| 'gbp_bank_transfer'
|
|
263
|
+
| 'gbp_open_banking_payment'
|
|
264
|
+
| 'mobile_wallet'
|
|
265
|
+
| 'sepa_bank_transfer'
|
|
266
|
+
| 'sepa_open_banking_payment'
|
|
267
|
+
| 'pix_instant_payment'
|
|
268
|
+
| 'yellow_card_bank_transfer';
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* A Moonpay currency code for a Solana asset.
|
|
272
|
+
*/
|
|
273
|
+
export type MoonpaySolanaCurrencyCode = 'SOL' | 'USDC_SOL';
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* UI configuration for the Moonpay on-ramp widget.
|
|
277
|
+
*/
|
|
278
|
+
export interface MoonpayUiConfig {
|
|
279
|
+
accentColor?: string;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* The theme for the Moonpay on-ramp widget.
|
|
283
|
+
*/
|
|
284
|
+
theme?: MoonpayUiTheme;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* The theme for the Moonpay on-ramp widget.
|
|
289
|
+
*/
|
|
290
|
+
export type MoonpayUiTheme = 'light' | 'dark';
|
|
291
|
+
|
|
292
292
|
export declare namespace Funding {
|
|
293
293
|
export {
|
|
294
294
|
type CoinbaseOnRampInitInput as CoinbaseOnRampInitInput,
|
|
@@ -298,21 +298,21 @@ export declare namespace Funding {
|
|
|
298
298
|
type MoonpayOnRampSignResponse as MoonpayOnRampSignResponse,
|
|
299
299
|
type CoinbaseBlockchain as CoinbaseBlockchain,
|
|
300
300
|
type CoinbaseEthereumAsset as CoinbaseEthereumAsset,
|
|
301
|
-
type CoinbaseSolanaAsset as CoinbaseSolanaAsset,
|
|
302
301
|
type CoinbaseOnRampEthereumAddress as CoinbaseOnRampEthereumAddress,
|
|
303
|
-
type CoinbaseOnRampSolanaAddress as CoinbaseOnRampSolanaAddress,
|
|
304
302
|
type CoinbaseOnRampInitEthereumInput as CoinbaseOnRampInitEthereumInput,
|
|
305
303
|
type CoinbaseOnRampInitSolanaInput as CoinbaseOnRampInitSolanaInput,
|
|
304
|
+
type CoinbaseOnRampSolanaAddress as CoinbaseOnRampSolanaAddress,
|
|
306
305
|
type CoinbaseOnRampStatus as CoinbaseOnRampStatus,
|
|
307
|
-
type
|
|
306
|
+
type CoinbaseSolanaAsset as CoinbaseSolanaAsset,
|
|
308
307
|
type MoonpayCurrencyCode as MoonpayCurrencyCode,
|
|
309
|
-
type MoonpayUiTheme as MoonpayUiTheme,
|
|
310
|
-
type MoonpayUiConfig as MoonpayUiConfig,
|
|
311
|
-
type MoonpaySolanaCurrencyCode as MoonpaySolanaCurrencyCode,
|
|
312
308
|
type MoonpayFiatOnRampEthereumConfig as MoonpayFiatOnRampEthereumConfig,
|
|
313
|
-
type MoonpayFiatOnRampSolanaConfig as MoonpayFiatOnRampSolanaConfig,
|
|
314
309
|
type MoonpayFiatOnRampEthereumInput as MoonpayFiatOnRampEthereumInput,
|
|
310
|
+
type MoonpayFiatOnRampSolanaConfig as MoonpayFiatOnRampSolanaConfig,
|
|
315
311
|
type MoonpayFiatOnRampSolanaInput as MoonpayFiatOnRampSolanaInput,
|
|
316
312
|
type MoonpayOnRampSandboxConfig as MoonpayOnRampSandboxConfig,
|
|
313
|
+
type MoonpayPaymentMethod as MoonpayPaymentMethod,
|
|
314
|
+
type MoonpaySolanaCurrencyCode as MoonpaySolanaCurrencyCode,
|
|
315
|
+
type MoonpayUiConfig as MoonpayUiConfig,
|
|
316
|
+
type MoonpayUiTheme as MoonpayUiTheme,
|
|
317
317
|
};
|
|
318
318
|
}
|