@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.
Files changed (180) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/client.d.mts +40 -43
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +40 -43
  5. package/client.d.ts.map +1 -1
  6. package/client.js +28 -20
  7. package/client.js.map +1 -1
  8. package/client.mjs +29 -21
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/accounts.d.mts +128 -86
  16. package/resources/accounts.d.mts.map +1 -1
  17. package/resources/accounts.d.ts +128 -86
  18. package/resources/accounts.d.ts.map +1 -1
  19. package/resources/aggregations.d.mts +43 -43
  20. package/resources/aggregations.d.mts.map +1 -1
  21. package/resources/aggregations.d.ts +43 -43
  22. package/resources/aggregations.d.ts.map +1 -1
  23. package/resources/apps.d.mts +169 -135
  24. package/resources/apps.d.mts.map +1 -1
  25. package/resources/apps.d.ts +169 -135
  26. package/resources/apps.d.ts.map +1 -1
  27. package/resources/client-auth.d.mts +931 -947
  28. package/resources/client-auth.d.mts.map +1 -1
  29. package/resources/client-auth.d.ts +931 -947
  30. package/resources/client-auth.d.ts.map +1 -1
  31. package/resources/client-auth.js.map +1 -1
  32. package/resources/client-auth.mjs.map +1 -1
  33. package/resources/embedded-wallets.d.mts +122 -122
  34. package/resources/embedded-wallets.d.mts.map +1 -1
  35. package/resources/embedded-wallets.d.ts +122 -122
  36. package/resources/embedded-wallets.d.ts.map +1 -1
  37. package/resources/fiat.d.mts +110 -0
  38. package/resources/fiat.d.mts.map +1 -0
  39. package/resources/fiat.d.ts +110 -0
  40. package/resources/fiat.d.ts.map +1 -0
  41. package/resources/fiat.js +9 -0
  42. package/resources/fiat.js.map +1 -0
  43. package/resources/fiat.mjs +5 -0
  44. package/resources/fiat.mjs.map +1 -0
  45. package/resources/funding.d.mts +86 -86
  46. package/resources/funding.d.mts.map +1 -1
  47. package/resources/funding.d.ts +86 -86
  48. package/resources/funding.d.ts.map +1 -1
  49. package/resources/index.d.mts +20 -18
  50. package/resources/index.d.mts.map +1 -1
  51. package/resources/index.d.ts +20 -18
  52. package/resources/index.d.ts.map +1 -1
  53. package/resources/index.js +5 -1
  54. package/resources/index.js.map +1 -1
  55. package/resources/index.mjs +3 -1
  56. package/resources/index.mjs.map +1 -1
  57. package/resources/intents.d.mts +269 -265
  58. package/resources/intents.d.mts.map +1 -1
  59. package/resources/intents.d.ts +269 -265
  60. package/resources/intents.d.ts.map +1 -1
  61. package/resources/key-quorums.d.mts +15 -146
  62. package/resources/key-quorums.d.mts.map +1 -1
  63. package/resources/key-quorums.d.ts +15 -146
  64. package/resources/key-quorums.d.ts.map +1 -1
  65. package/resources/key-quorums.js +0 -92
  66. package/resources/key-quorums.js.map +1 -1
  67. package/resources/key-quorums.mjs +0 -92
  68. package/resources/key-quorums.mjs.map +1 -1
  69. package/resources/kraken-embed.d.mts +12 -20
  70. package/resources/kraken-embed.d.mts.map +1 -1
  71. package/resources/kraken-embed.d.ts +12 -20
  72. package/resources/kraken-embed.d.ts.map +1 -1
  73. package/resources/organizations.d.mts +65 -0
  74. package/resources/organizations.d.mts.map +1 -0
  75. package/resources/organizations.d.ts +65 -0
  76. package/resources/organizations.d.ts.map +1 -0
  77. package/resources/organizations.js +9 -0
  78. package/resources/organizations.js.map +1 -0
  79. package/resources/organizations.mjs +5 -0
  80. package/resources/organizations.mjs.map +1 -0
  81. package/resources/policies.d.mts +261 -553
  82. package/resources/policies.d.mts.map +1 -1
  83. package/resources/policies.d.ts +261 -553
  84. package/resources/policies.d.ts.map +1 -1
  85. package/resources/policies.js +0 -229
  86. package/resources/policies.js.map +1 -1
  87. package/resources/policies.mjs +0 -229
  88. package/resources/policies.mjs.map +1 -1
  89. package/resources/shared.d.mts +28 -28
  90. package/resources/shared.d.mts.map +1 -1
  91. package/resources/shared.d.ts +28 -28
  92. package/resources/shared.d.ts.map +1 -1
  93. package/resources/swaps.d.mts +6 -9
  94. package/resources/swaps.d.mts.map +1 -1
  95. package/resources/swaps.d.ts +6 -9
  96. package/resources/swaps.d.ts.map +1 -1
  97. package/resources/swaps.js.map +1 -1
  98. package/resources/swaps.mjs.map +1 -1
  99. package/resources/transactions.d.mts +80 -96
  100. package/resources/transactions.d.mts.map +1 -1
  101. package/resources/transactions.d.ts +80 -96
  102. package/resources/transactions.d.ts.map +1 -1
  103. package/resources/transactions.js +0 -17
  104. package/resources/transactions.js.map +1 -1
  105. package/resources/transactions.mjs +0 -17
  106. package/resources/transactions.mjs.map +1 -1
  107. package/resources/users.d.mts +480 -815
  108. package/resources/users.d.mts.map +1 -1
  109. package/resources/users.d.ts +480 -815
  110. package/resources/users.d.ts.map +1 -1
  111. package/resources/users.js +0 -272
  112. package/resources/users.js.map +1 -1
  113. package/resources/users.mjs +0 -272
  114. package/resources/users.mjs.map +1 -1
  115. package/resources/wallet-actions.d.mts +302 -145
  116. package/resources/wallet-actions.d.mts.map +1 -1
  117. package/resources/wallet-actions.d.ts +302 -145
  118. package/resources/wallet-actions.d.ts.map +1 -1
  119. package/resources/wallets/index.d.mts +1 -1
  120. package/resources/wallets/index.d.mts.map +1 -1
  121. package/resources/wallets/index.d.ts +1 -1
  122. package/resources/wallets/index.d.ts.map +1 -1
  123. package/resources/wallets/index.js.map +1 -1
  124. package/resources/wallets/index.mjs.map +1 -1
  125. package/resources/wallets/transactions.d.mts +7 -2
  126. package/resources/wallets/transactions.d.mts.map +1 -1
  127. package/resources/wallets/transactions.d.ts +7 -2
  128. package/resources/wallets/transactions.d.ts.map +1 -1
  129. package/resources/wallets/transactions.js +1 -1
  130. package/resources/wallets/transactions.mjs +1 -1
  131. package/resources/wallets/wallets.d.mts +1592 -1580
  132. package/resources/wallets/wallets.d.mts.map +1 -1
  133. package/resources/wallets/wallets.d.ts +1592 -1580
  134. package/resources/wallets/wallets.d.ts.map +1 -1
  135. package/resources/wallets/wallets.js +45 -103
  136. package/resources/wallets/wallets.js.map +1 -1
  137. package/resources/wallets/wallets.mjs +45 -103
  138. package/resources/wallets/wallets.mjs.map +1 -1
  139. package/resources/webhooks.d.mts +935 -877
  140. package/resources/webhooks.d.mts.map +1 -1
  141. package/resources/webhooks.d.ts +935 -877
  142. package/resources/webhooks.d.ts.map +1 -1
  143. package/resources/yield.d.mts +157 -157
  144. package/resources/yield.d.mts.map +1 -1
  145. package/resources/yield.d.ts +157 -157
  146. package/resources/yield.d.ts.map +1 -1
  147. package/src/client.ts +650 -618
  148. package/src/internal/types.ts +6 -8
  149. package/src/resources/accounts.ts +157 -103
  150. package/src/resources/aggregations.ts +55 -55
  151. package/src/resources/apps.ts +221 -178
  152. package/src/resources/client-auth.ts +1271 -1315
  153. package/src/resources/embedded-wallets.ts +160 -160
  154. package/src/resources/fiat.ts +177 -0
  155. package/src/resources/funding.ts +130 -130
  156. package/src/resources/index.ts +551 -542
  157. package/src/resources/intents.ts +326 -322
  158. package/src/resources/key-quorums.ts +16 -218
  159. package/src/resources/kraken-embed.ts +14 -22
  160. package/src/resources/organizations.ts +82 -0
  161. package/src/resources/policies.ts +383 -848
  162. package/src/resources/shared.ts +34 -34
  163. package/src/resources/swaps.ts +5 -10
  164. package/src/resources/transactions.ts +116 -136
  165. package/src/resources/users.ts +693 -1160
  166. package/src/resources/wallet-actions.ts +392 -185
  167. package/src/resources/wallets/index.ts +160 -156
  168. package/src/resources/wallets/transactions.ts +18 -3
  169. package/src/resources/wallets/wallets.ts +2123 -2113
  170. package/src/resources/webhooks.ts +1172 -1100
  171. package/src/resources/yield.ts +188 -188
  172. package/src/version.ts +1 -1
  173. package/version.d.mts +1 -1
  174. package/version.d.mts.map +1 -1
  175. package/version.d.ts +1 -1
  176. package/version.d.ts.map +1 -1
  177. package/version.js +1 -1
  178. package/version.js.map +1 -1
  179. package/version.mjs +1 -1
  180. 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 configuration object for smart wallets.
10
+ * The Alchemy paymaster context for a smart wallet network configuration.
11
11
  */
12
- export type SmartWalletConfiguration = SmartWalletConfigurationDisabled | SmartWalletConfigurationEnabled;
12
+ export interface AlchemyPaymasterContext {
13
+ policy_id: string;
14
+ }
13
15
 
14
16
  /**
15
- * The input configuration object for smart wallets.
17
+ * The fields describing embedded wallet creation, used for user import and
18
+ * embedded wallet generation.
16
19
  */
17
- export type SmartWalletConfigurationInput =
18
- | SmartWalletConfigurationDisabled
19
- | SmartWalletConfigurationInputEnabled;
20
+ export interface EmbeddedWalletCreationInput {
21
+ /**
22
+ * Wallets to create.
23
+ */
24
+ wallets?: Array<WalletCreationInput>;
25
+ }
20
26
 
21
27
  /**
22
- * An additional signer configuration for a wallet.
28
+ * The client type for iCloud recovery operations.
23
29
  */
24
- export interface WalletCreationAdditionalSignerItem {
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
- * The array of policy IDs that will be applied to wallet requests. If specified,
32
- * this will override the base policy IDs set on the wallet. Currently, only one
33
- * policy is supported per signer.
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 fields on wallet creation that can be specified when creating a
40
- * user-controlled embedded server wallet.
40
+ * The input for the iCloud Expo OAuth callback.
41
41
  */
42
- export interface WalletCreationInput {
43
- /**
44
- * The wallet chain types.
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
- * Additional signers for the wallet.
51
+ * The client type for iCloud recovery operations.
50
52
  */
51
- additional_signers?: Array<WalletCreationAdditionalSignerItem>;
53
+ client_type: ICloudClientType;
54
+ }
52
55
 
53
- /**
54
- * Create a smart wallet with this wallet as the signer. Only supported for wallets
55
- * with `chain_type: "ethereum"`.
56
- */
57
- create_smart_wallet?: boolean;
56
+ /**
57
+ * The input for initiating an OAuth recovery flow.
58
+ */
59
+ export interface OAuthInitRecoveryInput {
60
+ redirect_to: string;
58
61
 
59
- /**
60
- * Policy IDs to enforce on the wallet. Currently, only one policy is supported per
61
- * wallet.
62
- */
63
- policy_ids?: Array<string>;
62
+ token?: string;
63
+
64
+ code_challenge?: string;
65
+
66
+ state_code?: string;
64
67
  }
65
68
 
66
69
  /**
67
- * The fields describing embedded wallet creation, used for user import and
68
- * embedded wallet generation.
70
+ * The input for getting the iCloud recovery configuration.
69
71
  */
70
- export interface EmbeddedWalletCreationInput {
72
+ export interface RecoveryConfigurationICloudInput {
71
73
  /**
72
- * Wallets to create.
74
+ * The client type for iCloud recovery operations.
73
75
  */
74
- wallets?: Array<WalletCreationInput>;
76
+ client_type: ICloudClientType;
75
77
  }
76
78
 
77
79
  /**
78
- * The supported smart wallet providers.
80
+ * The response containing the iCloud recovery configuration.
79
81
  */
80
- export type SmartWalletType =
81
- | 'safe'
82
- | 'kernel'
83
- | 'light_account'
84
- | 'biconomy'
85
- | 'coinbase_smart_wallet'
86
- | 'thirdweb';
82
+ export interface RecoveryConfigurationICloudResponse {
83
+ api_token: string;
84
+
85
+ container_identifier: string;
86
+
87
+ environment: string;
88
+ }
87
89
 
88
90
  /**
89
- * The Alchemy paymaster context for a smart wallet network configuration.
91
+ * The input for getting the recovery key material.
90
92
  */
91
- export interface AlchemyPaymasterContext {
92
- policy_id: string;
93
+ export interface RecoveryKeyMaterialInput {
94
+ chain_type?: string;
93
95
  }
94
96
 
95
97
  /**
96
- * Network configuration for a smart wallet.
98
+ * The response containing the recovery key material.
97
99
  */
98
- export interface SmartWalletNetworkConfiguration {
99
- bundler_url: string;
100
+ export interface RecoveryKeyMaterialResponse {
101
+ file_id: string;
100
102
 
101
- chain_id: string;
103
+ icloud_record_name: string;
102
104
 
103
- chain_name?: string;
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
- paymaster_url?: string;
109
+ recovery_key_derivation_salt: string;
111
110
 
112
- rpc_url?: string;
111
+ /**
112
+ * The type of recovery mechanism used for wallet recovery.
113
+ */
114
+ recovery_type: RecoveryType;
113
115
  }
114
116
 
115
117
  /**
116
- * Input for network configuration for a smart wallet.
118
+ * The type of recovery mechanism used for wallet recovery.
117
119
  */
118
- export interface SmartWalletNetworkConfigurationInput {
119
- chain_id: string;
120
-
121
- bundler_url?: string;
122
-
123
- chain_name?: string;
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
- rpc_url?: string;
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
- * The type of recovery mechanism used for wallet recovery.
179
+ * Network configuration for a smart wallet.
176
180
  */
177
- export type RecoveryType =
178
- | 'user_passcode_derived_recovery_key'
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
- * The input for getting the recovery key material.
191
- */
192
- export interface RecoveryKeyMaterialInput {
193
- chain_type?: string;
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
- * The response containing the recovery key material.
199
+ * Input for network configuration for a smart wallet.
198
200
  */
199
- export interface RecoveryKeyMaterialResponse {
200
- file_id: string;
201
-
202
- icloud_record_name: string;
203
-
204
- recovery_code: string;
201
+ export interface SmartWalletNetworkConfigurationInput {
202
+ chain_id: string;
205
203
 
206
- recovery_key: string;
204
+ bundler_url?: string;
207
205
 
208
- recovery_key_derivation_salt: string;
206
+ chain_name?: string;
209
207
 
210
208
  /**
211
- * The type of recovery mechanism used for wallet recovery.
209
+ * The Alchemy paymaster context for a smart wallet network configuration.
212
210
  */
213
- recovery_type: RecoveryType;
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
- code_challenge?: string;
213
+ paymaster_url?: string;
225
214
 
226
- state_code?: string;
215
+ rpc_url?: string;
227
216
  }
228
217
 
229
218
  /**
230
- * The response from authenticating with OAuth for recovery.
219
+ * The supported smart wallet providers.
231
220
  */
232
- export interface OAuthAuthenticateRecoveryResponse {
233
- access_token: string;
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
- * The input for initiating an iCloud OAuth recovery flow.
230
+ * An additional signer configuration for a wallet.
238
231
  */
239
- export interface OAuthInitICloudRecoveryInput {
232
+ export interface WalletCreationAdditionalSignerItem {
240
233
  /**
241
- * The client type for iCloud recovery operations.
234
+ * A unique identifier for a key quorum.
242
235
  */
243
- client_type: ICloudClientType;
244
- }
236
+ signer_id: SharedAPI.KeyQuorumID;
245
237
 
246
- /**
247
- * The input for the iCloud Expo OAuth callback.
248
- */
249
- export interface OAuthCallbackICloudExpoInput {
250
- ckWebAuthToken: string;
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 input for getting the iCloud recovery configuration.
247
+ * The fields on wallet creation that can be specified when creating a
248
+ * user-controlled embedded server wallet.
255
249
  */
256
- export interface RecoveryConfigurationICloudInput {
250
+ export interface WalletCreationInput {
257
251
  /**
258
- * The client type for iCloud recovery operations.
252
+ * The wallet chain types.
259
253
  */
260
- client_type: ICloudClientType;
261
- }
254
+ chain_type: WalletsAPI.WalletChainType;
262
255
 
263
- /**
264
- * The response containing the iCloud recovery configuration.
265
- */
266
- export interface RecoveryConfigurationICloudResponse {
267
- api_token: string;
256
+ /**
257
+ * Additional signers for the wallet.
258
+ */
259
+ additional_signers?: Array<WalletCreationAdditionalSignerItem>;
268
260
 
269
- container_identifier: string;
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
- environment: string;
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 SmartWalletNetworkConfiguration as SmartWalletNetworkConfiguration,
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
+ }