@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
|
@@ -7,130 +7,127 @@ import * as WalletsAPI from './wallets/wallets';
|
|
|
7
7
|
export class EmbeddedWallets extends APIResource {}
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* The
|
|
10
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export interface AlchemyPaymasterContext {
|
|
13
|
+
policy_id: string;
|
|
14
|
+
}
|
|
13
15
|
|
|
14
16
|
/**
|
|
15
|
-
* The
|
|
17
|
+
* The fields describing embedded wallet creation, used for user import and
|
|
18
|
+
* embedded wallet generation.
|
|
16
19
|
*/
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
export interface EmbeddedWalletCreationInput {
|
|
21
|
+
/**
|
|
22
|
+
* Wallets to create.
|
|
23
|
+
*/
|
|
24
|
+
wallets?: Array<WalletCreationInput>;
|
|
25
|
+
}
|
|
20
26
|
|
|
21
27
|
/**
|
|
22
|
-
*
|
|
28
|
+
* The client type for iCloud recovery operations.
|
|
23
29
|
*/
|
|
24
|
-
export
|
|
25
|
-
/**
|
|
26
|
-
* A unique identifier for a key quorum.
|
|
27
|
-
*/
|
|
28
|
-
signer_id: SharedAPI.KeyQuorumID;
|
|
30
|
+
export type ICloudClientType = 'web' | 'expo-ios';
|
|
29
31
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
override_policy_ids?: Array<string>;
|
|
32
|
+
/**
|
|
33
|
+
* The response from authenticating with OAuth for recovery.
|
|
34
|
+
*/
|
|
35
|
+
export interface OAuthAuthenticateRecoveryResponse {
|
|
36
|
+
access_token: string;
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
/**
|
|
39
|
-
* The
|
|
40
|
-
* user-controlled embedded server wallet.
|
|
40
|
+
* The input for the iCloud Expo OAuth callback.
|
|
41
41
|
*/
|
|
42
|
-
export interface
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
*/
|
|
46
|
-
chain_type: WalletsAPI.WalletChainType;
|
|
42
|
+
export interface OAuthCallbackICloudExpoInput {
|
|
43
|
+
ckWebAuthToken: string;
|
|
44
|
+
}
|
|
47
45
|
|
|
46
|
+
/**
|
|
47
|
+
* The input for initiating an iCloud OAuth recovery flow.
|
|
48
|
+
*/
|
|
49
|
+
export interface OAuthInitICloudRecoveryInput {
|
|
48
50
|
/**
|
|
49
|
-
*
|
|
51
|
+
* The client type for iCloud recovery operations.
|
|
50
52
|
*/
|
|
51
|
-
|
|
53
|
+
client_type: ICloudClientType;
|
|
54
|
+
}
|
|
52
55
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
/**
|
|
57
|
+
* The input for initiating an OAuth recovery flow.
|
|
58
|
+
*/
|
|
59
|
+
export interface OAuthInitRecoveryInput {
|
|
60
|
+
redirect_to: string;
|
|
58
61
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
token?: string;
|
|
63
|
+
|
|
64
|
+
code_challenge?: string;
|
|
65
|
+
|
|
66
|
+
state_code?: string;
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
/**
|
|
67
|
-
* The
|
|
68
|
-
* embedded wallet generation.
|
|
70
|
+
* The input for getting the iCloud recovery configuration.
|
|
69
71
|
*/
|
|
70
|
-
export interface
|
|
72
|
+
export interface RecoveryConfigurationICloudInput {
|
|
71
73
|
/**
|
|
72
|
-
*
|
|
74
|
+
* The client type for iCloud recovery operations.
|
|
73
75
|
*/
|
|
74
|
-
|
|
76
|
+
client_type: ICloudClientType;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
/**
|
|
78
|
-
* The
|
|
80
|
+
* The response containing the iCloud recovery configuration.
|
|
79
81
|
*/
|
|
80
|
-
export
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
export interface RecoveryConfigurationICloudResponse {
|
|
83
|
+
api_token: string;
|
|
84
|
+
|
|
85
|
+
container_identifier: string;
|
|
86
|
+
|
|
87
|
+
environment: string;
|
|
88
|
+
}
|
|
87
89
|
|
|
88
90
|
/**
|
|
89
|
-
* The
|
|
91
|
+
* The input for getting the recovery key material.
|
|
90
92
|
*/
|
|
91
|
-
export interface
|
|
92
|
-
|
|
93
|
+
export interface RecoveryKeyMaterialInput {
|
|
94
|
+
chain_type?: string;
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
/**
|
|
96
|
-
*
|
|
98
|
+
* The response containing the recovery key material.
|
|
97
99
|
*/
|
|
98
|
-
export interface
|
|
99
|
-
|
|
100
|
+
export interface RecoveryKeyMaterialResponse {
|
|
101
|
+
file_id: string;
|
|
100
102
|
|
|
101
|
-
|
|
103
|
+
icloud_record_name: string;
|
|
102
104
|
|
|
103
|
-
|
|
105
|
+
recovery_code: string;
|
|
104
106
|
|
|
105
|
-
|
|
106
|
-
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
107
|
-
*/
|
|
108
|
-
paymaster_context?: AlchemyPaymasterContext;
|
|
107
|
+
recovery_key: string;
|
|
109
108
|
|
|
110
|
-
|
|
109
|
+
recovery_key_derivation_salt: string;
|
|
111
110
|
|
|
112
|
-
|
|
111
|
+
/**
|
|
112
|
+
* The type of recovery mechanism used for wallet recovery.
|
|
113
|
+
*/
|
|
114
|
+
recovery_type: RecoveryType;
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
/**
|
|
116
|
-
*
|
|
118
|
+
* The type of recovery mechanism used for wallet recovery.
|
|
117
119
|
*/
|
|
118
|
-
export
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
127
|
-
*/
|
|
128
|
-
paymaster_context?: AlchemyPaymasterContext;
|
|
129
|
-
|
|
130
|
-
paymaster_url?: string;
|
|
120
|
+
export type RecoveryType =
|
|
121
|
+
| 'user_passcode_derived_recovery_key'
|
|
122
|
+
| 'privy_passcode_derived_recovery_key'
|
|
123
|
+
| 'privy_generated_recovery_key'
|
|
124
|
+
| 'google_drive_recovery_secret'
|
|
125
|
+
| 'icloud_recovery_secret';
|
|
131
126
|
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
/**
|
|
128
|
+
* The configuration object for smart wallets.
|
|
129
|
+
*/
|
|
130
|
+
export type SmartWalletConfiguration = SmartWalletConfigurationDisabled | SmartWalletConfigurationEnabled;
|
|
134
131
|
|
|
135
132
|
/**
|
|
136
133
|
* A disabled smart wallet configuration.
|
|
@@ -155,6 +152,13 @@ export interface SmartWalletConfigurationEnabled {
|
|
|
155
152
|
smart_wallet_version?: string;
|
|
156
153
|
}
|
|
157
154
|
|
|
155
|
+
/**
|
|
156
|
+
* The input configuration object for smart wallets.
|
|
157
|
+
*/
|
|
158
|
+
export type SmartWalletConfigurationInput =
|
|
159
|
+
| SmartWalletConfigurationDisabled
|
|
160
|
+
| SmartWalletConfigurationInputEnabled;
|
|
161
|
+
|
|
158
162
|
/**
|
|
159
163
|
* An enabled smart wallet configuration input.
|
|
160
164
|
*/
|
|
@@ -172,128 +176,124 @@ export interface SmartWalletConfigurationInputEnabled {
|
|
|
172
176
|
}
|
|
173
177
|
|
|
174
178
|
/**
|
|
175
|
-
*
|
|
179
|
+
* Network configuration for a smart wallet.
|
|
176
180
|
*/
|
|
177
|
-
export
|
|
178
|
-
|
|
179
|
-
| 'privy_passcode_derived_recovery_key'
|
|
180
|
-
| 'privy_generated_recovery_key'
|
|
181
|
-
| 'google_drive_recovery_secret'
|
|
182
|
-
| 'icloud_recovery_secret';
|
|
181
|
+
export interface SmartWalletNetworkConfiguration {
|
|
182
|
+
bundler_url: string;
|
|
183
183
|
|
|
184
|
-
|
|
185
|
-
* The client type for iCloud recovery operations.
|
|
186
|
-
*/
|
|
187
|
-
export type ICloudClientType = 'web' | 'expo-ios';
|
|
184
|
+
chain_id: string;
|
|
188
185
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
186
|
+
chain_name?: string;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
190
|
+
*/
|
|
191
|
+
paymaster_context?: AlchemyPaymasterContext;
|
|
192
|
+
|
|
193
|
+
paymaster_url?: string;
|
|
194
|
+
|
|
195
|
+
rpc_url?: string;
|
|
194
196
|
}
|
|
195
197
|
|
|
196
198
|
/**
|
|
197
|
-
*
|
|
199
|
+
* Input for network configuration for a smart wallet.
|
|
198
200
|
*/
|
|
199
|
-
export interface
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
icloud_record_name: string;
|
|
203
|
-
|
|
204
|
-
recovery_code: string;
|
|
201
|
+
export interface SmartWalletNetworkConfigurationInput {
|
|
202
|
+
chain_id: string;
|
|
205
203
|
|
|
206
|
-
|
|
204
|
+
bundler_url?: string;
|
|
207
205
|
|
|
208
|
-
|
|
206
|
+
chain_name?: string;
|
|
209
207
|
|
|
210
208
|
/**
|
|
211
|
-
* The
|
|
209
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
212
210
|
*/
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* The input for initiating an OAuth recovery flow.
|
|
218
|
-
*/
|
|
219
|
-
export interface OAuthInitRecoveryInput {
|
|
220
|
-
redirect_to: string;
|
|
221
|
-
|
|
222
|
-
token?: string;
|
|
211
|
+
paymaster_context?: AlchemyPaymasterContext;
|
|
223
212
|
|
|
224
|
-
|
|
213
|
+
paymaster_url?: string;
|
|
225
214
|
|
|
226
|
-
|
|
215
|
+
rpc_url?: string;
|
|
227
216
|
}
|
|
228
217
|
|
|
229
218
|
/**
|
|
230
|
-
* The
|
|
219
|
+
* The supported smart wallet providers.
|
|
231
220
|
*/
|
|
232
|
-
export
|
|
233
|
-
|
|
234
|
-
|
|
221
|
+
export type SmartWalletType =
|
|
222
|
+
| 'safe'
|
|
223
|
+
| 'kernel'
|
|
224
|
+
| 'light_account'
|
|
225
|
+
| 'biconomy'
|
|
226
|
+
| 'coinbase_smart_wallet'
|
|
227
|
+
| 'thirdweb';
|
|
235
228
|
|
|
236
229
|
/**
|
|
237
|
-
*
|
|
230
|
+
* An additional signer configuration for a wallet.
|
|
238
231
|
*/
|
|
239
|
-
export interface
|
|
232
|
+
export interface WalletCreationAdditionalSignerItem {
|
|
240
233
|
/**
|
|
241
|
-
*
|
|
234
|
+
* A unique identifier for a key quorum.
|
|
242
235
|
*/
|
|
243
|
-
|
|
244
|
-
}
|
|
236
|
+
signer_id: SharedAPI.KeyQuorumID;
|
|
245
237
|
|
|
246
|
-
/**
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
238
|
+
/**
|
|
239
|
+
* The array of policy IDs that will be applied to wallet requests. If specified,
|
|
240
|
+
* this will override the base policy IDs set on the wallet. Currently, only one
|
|
241
|
+
* policy is supported per signer.
|
|
242
|
+
*/
|
|
243
|
+
override_policy_ids?: Array<string>;
|
|
251
244
|
}
|
|
252
245
|
|
|
253
246
|
/**
|
|
254
|
-
* The
|
|
247
|
+
* The fields on wallet creation that can be specified when creating a
|
|
248
|
+
* user-controlled embedded server wallet.
|
|
255
249
|
*/
|
|
256
|
-
export interface
|
|
250
|
+
export interface WalletCreationInput {
|
|
257
251
|
/**
|
|
258
|
-
* The
|
|
252
|
+
* The wallet chain types.
|
|
259
253
|
*/
|
|
260
|
-
|
|
261
|
-
}
|
|
254
|
+
chain_type: WalletsAPI.WalletChainType;
|
|
262
255
|
|
|
263
|
-
/**
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
api_token: string;
|
|
256
|
+
/**
|
|
257
|
+
* Additional signers for the wallet.
|
|
258
|
+
*/
|
|
259
|
+
additional_signers?: Array<WalletCreationAdditionalSignerItem>;
|
|
268
260
|
|
|
269
|
-
|
|
261
|
+
/**
|
|
262
|
+
* Create a smart wallet with this wallet as the signer. Only supported for wallets
|
|
263
|
+
* with `chain_type: "ethereum"`.
|
|
264
|
+
*/
|
|
265
|
+
create_smart_wallet?: boolean;
|
|
270
266
|
|
|
271
|
-
|
|
267
|
+
/**
|
|
268
|
+
* Policy IDs to enforce on the wallet. Currently, only one policy is supported per
|
|
269
|
+
* wallet.
|
|
270
|
+
*/
|
|
271
|
+
policy_ids?: Array<string>;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
export declare namespace EmbeddedWallets {
|
|
275
275
|
export {
|
|
276
|
-
type SmartWalletConfiguration as SmartWalletConfiguration,
|
|
277
|
-
type SmartWalletConfigurationInput as SmartWalletConfigurationInput,
|
|
278
|
-
type WalletCreationAdditionalSignerItem as WalletCreationAdditionalSignerItem,
|
|
279
|
-
type WalletCreationInput as WalletCreationInput,
|
|
280
|
-
type EmbeddedWalletCreationInput as EmbeddedWalletCreationInput,
|
|
281
|
-
type SmartWalletType as SmartWalletType,
|
|
282
276
|
type AlchemyPaymasterContext as AlchemyPaymasterContext,
|
|
283
|
-
type
|
|
284
|
-
type SmartWalletNetworkConfigurationInput as SmartWalletNetworkConfigurationInput,
|
|
285
|
-
type SmartWalletConfigurationDisabled as SmartWalletConfigurationDisabled,
|
|
286
|
-
type SmartWalletConfigurationEnabled as SmartWalletConfigurationEnabled,
|
|
287
|
-
type SmartWalletConfigurationInputEnabled as SmartWalletConfigurationInputEnabled,
|
|
288
|
-
type RecoveryType as RecoveryType,
|
|
277
|
+
type EmbeddedWalletCreationInput as EmbeddedWalletCreationInput,
|
|
289
278
|
type ICloudClientType as ICloudClientType,
|
|
290
|
-
type RecoveryKeyMaterialInput as RecoveryKeyMaterialInput,
|
|
291
|
-
type RecoveryKeyMaterialResponse as RecoveryKeyMaterialResponse,
|
|
292
|
-
type OAuthInitRecoveryInput as OAuthInitRecoveryInput,
|
|
293
279
|
type OAuthAuthenticateRecoveryResponse as OAuthAuthenticateRecoveryResponse,
|
|
294
|
-
type OAuthInitICloudRecoveryInput as OAuthInitICloudRecoveryInput,
|
|
295
280
|
type OAuthCallbackICloudExpoInput as OAuthCallbackICloudExpoInput,
|
|
281
|
+
type OAuthInitICloudRecoveryInput as OAuthInitICloudRecoveryInput,
|
|
282
|
+
type OAuthInitRecoveryInput as OAuthInitRecoveryInput,
|
|
296
283
|
type RecoveryConfigurationICloudInput as RecoveryConfigurationICloudInput,
|
|
297
284
|
type RecoveryConfigurationICloudResponse as RecoveryConfigurationICloudResponse,
|
|
285
|
+
type RecoveryKeyMaterialInput as RecoveryKeyMaterialInput,
|
|
286
|
+
type RecoveryKeyMaterialResponse as RecoveryKeyMaterialResponse,
|
|
287
|
+
type RecoveryType as RecoveryType,
|
|
288
|
+
type SmartWalletConfiguration as SmartWalletConfiguration,
|
|
289
|
+
type SmartWalletConfigurationDisabled as SmartWalletConfigurationDisabled,
|
|
290
|
+
type SmartWalletConfigurationEnabled as SmartWalletConfigurationEnabled,
|
|
291
|
+
type SmartWalletConfigurationInput as SmartWalletConfigurationInput,
|
|
292
|
+
type SmartWalletConfigurationInputEnabled as SmartWalletConfigurationInputEnabled,
|
|
293
|
+
type SmartWalletNetworkConfiguration as SmartWalletNetworkConfiguration,
|
|
294
|
+
type SmartWalletNetworkConfigurationInput as SmartWalletNetworkConfigurationInput,
|
|
295
|
+
type SmartWalletType as SmartWalletType,
|
|
296
|
+
type WalletCreationAdditionalSignerItem as WalletCreationAdditionalSignerItem,
|
|
297
|
+
type WalletCreationInput as WalletCreationInput,
|
|
298
298
|
};
|
|
299
299
|
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
|
|
5
|
+
export class Fiat extends APIResource {}
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Supported fiat currencies.
|
|
9
|
+
*/
|
|
10
|
+
export type FiatCurrency = 'usd' | 'eur';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Supported fiat payment rails.
|
|
14
|
+
*/
|
|
15
|
+
export type FiatPaymentRail = 'sepa' | 'ach_push' | 'wire';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Deposit instructions for an offramp transfer.
|
|
19
|
+
*/
|
|
20
|
+
export interface OfframpDepositInstructions {
|
|
21
|
+
amount: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Supported blockchain chains for onramp and offramp.
|
|
25
|
+
*/
|
|
26
|
+
chain: OnrampChain;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Supported crypto assets for onramp and offramp.
|
|
30
|
+
*/
|
|
31
|
+
currency: OnrampAsset;
|
|
32
|
+
|
|
33
|
+
from_address: string;
|
|
34
|
+
|
|
35
|
+
to_address: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Response for an offramp transfer initiation.
|
|
40
|
+
*/
|
|
41
|
+
export interface OfframpResponse {
|
|
42
|
+
id: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Deposit instructions for an offramp transfer.
|
|
46
|
+
*/
|
|
47
|
+
deposit_instructions: OfframpDepositInstructions;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Status of an onramp or offramp transfer.
|
|
51
|
+
*/
|
|
52
|
+
status: OnrampTransferStatus;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Supported crypto assets for onramp and offramp.
|
|
57
|
+
*/
|
|
58
|
+
export type OnrampAsset = 'usdc';
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Supported blockchain chains for onramp and offramp.
|
|
62
|
+
*/
|
|
63
|
+
export type OnrampChain = 'ethereum' | 'base' | 'arbitrum' | 'polygon' | 'optimism';
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Bank deposit instructions for an onramp transfer.
|
|
67
|
+
*/
|
|
68
|
+
export interface OnrampDepositInstructions {
|
|
69
|
+
amount: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Supported fiat currencies.
|
|
73
|
+
*/
|
|
74
|
+
currency: FiatCurrency;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Supported fiat payment rails.
|
|
78
|
+
*/
|
|
79
|
+
payment_rail: FiatPaymentRail;
|
|
80
|
+
|
|
81
|
+
account_holder_name?: string;
|
|
82
|
+
|
|
83
|
+
bank_account_number?: string;
|
|
84
|
+
|
|
85
|
+
bank_address?: string;
|
|
86
|
+
|
|
87
|
+
bank_beneficiary_address?: string;
|
|
88
|
+
|
|
89
|
+
bank_beneficiary_name?: string;
|
|
90
|
+
|
|
91
|
+
bank_name?: string;
|
|
92
|
+
|
|
93
|
+
bank_routing_number?: string;
|
|
94
|
+
|
|
95
|
+
bic?: string;
|
|
96
|
+
|
|
97
|
+
deposit_message?: string;
|
|
98
|
+
|
|
99
|
+
iban?: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Response for an onramp KYC verification.
|
|
104
|
+
*/
|
|
105
|
+
export interface OnrampKYCResponse {
|
|
106
|
+
/**
|
|
107
|
+
* Status of the KYC verification process.
|
|
108
|
+
*/
|
|
109
|
+
status: OnrampKYCStatus;
|
|
110
|
+
|
|
111
|
+
user_id: string;
|
|
112
|
+
|
|
113
|
+
provider_user_id?: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Status of the KYC verification process.
|
|
118
|
+
*/
|
|
119
|
+
export type OnrampKYCStatus =
|
|
120
|
+
| 'not_found'
|
|
121
|
+
| 'active'
|
|
122
|
+
| 'awaiting_questionnaire'
|
|
123
|
+
| 'awaiting_ubo'
|
|
124
|
+
| 'incomplete'
|
|
125
|
+
| 'not_started'
|
|
126
|
+
| 'offboarded'
|
|
127
|
+
| 'paused'
|
|
128
|
+
| 'rejected'
|
|
129
|
+
| 'under_review';
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Response for an onramp transfer initiation.
|
|
133
|
+
*/
|
|
134
|
+
export interface OnrampResponse {
|
|
135
|
+
id: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Bank deposit instructions for an onramp transfer.
|
|
139
|
+
*/
|
|
140
|
+
deposit_instructions: OnrampDepositInstructions;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Status of an onramp or offramp transfer.
|
|
144
|
+
*/
|
|
145
|
+
status: OnrampTransferStatus;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Status of an onramp or offramp transfer.
|
|
150
|
+
*/
|
|
151
|
+
export type OnrampTransferStatus =
|
|
152
|
+
| 'awaiting_funds'
|
|
153
|
+
| 'in_review'
|
|
154
|
+
| 'funds_received'
|
|
155
|
+
| 'payment_submitted'
|
|
156
|
+
| 'payment_processed'
|
|
157
|
+
| 'canceled'
|
|
158
|
+
| 'error'
|
|
159
|
+
| 'undeliverable'
|
|
160
|
+
| 'returned'
|
|
161
|
+
| 'refunded';
|
|
162
|
+
|
|
163
|
+
export declare namespace Fiat {
|
|
164
|
+
export {
|
|
165
|
+
type FiatCurrency as FiatCurrency,
|
|
166
|
+
type FiatPaymentRail as FiatPaymentRail,
|
|
167
|
+
type OfframpDepositInstructions as OfframpDepositInstructions,
|
|
168
|
+
type OfframpResponse as OfframpResponse,
|
|
169
|
+
type OnrampAsset as OnrampAsset,
|
|
170
|
+
type OnrampChain as OnrampChain,
|
|
171
|
+
type OnrampDepositInstructions as OnrampDepositInstructions,
|
|
172
|
+
type OnrampKYCResponse as OnrampKYCResponse,
|
|
173
|
+
type OnrampKYCStatus as OnrampKYCStatus,
|
|
174
|
+
type OnrampResponse as OnrampResponse,
|
|
175
|
+
type OnrampTransferStatus as OnrampTransferStatus,
|
|
176
|
+
};
|
|
177
|
+
}
|