@privy-io/api-types 0.9.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.
Files changed (153) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/client.d.mts +33 -30
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +33 -30
  5. package/client.d.ts.map +1 -1
  6. package/client.js +22 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +23 -9
  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 +646 -644
  28. package/resources/client-auth.d.mts.map +1 -1
  29. package/resources/client-auth.d.ts +646 -644
  30. package/resources/client-auth.d.ts.map +1 -1
  31. package/resources/embedded-wallets.d.mts +114 -114
  32. package/resources/embedded-wallets.d.mts.map +1 -1
  33. package/resources/embedded-wallets.d.ts +114 -114
  34. package/resources/embedded-wallets.d.ts.map +1 -1
  35. package/resources/funding.d.mts +42 -42
  36. package/resources/funding.d.mts.map +1 -1
  37. package/resources/funding.d.ts +42 -42
  38. package/resources/funding.d.ts.map +1 -1
  39. package/resources/index.d.mts +19 -18
  40. package/resources/index.d.mts.map +1 -1
  41. package/resources/index.d.ts +19 -18
  42. package/resources/index.d.ts.map +1 -1
  43. package/resources/index.js +3 -1
  44. package/resources/index.js.map +1 -1
  45. package/resources/index.mjs +2 -1
  46. package/resources/index.mjs.map +1 -1
  47. package/resources/intents.d.mts +269 -265
  48. package/resources/intents.d.mts.map +1 -1
  49. package/resources/intents.d.ts +269 -265
  50. package/resources/intents.d.ts.map +1 -1
  51. package/resources/key-quorums.d.mts +20 -20
  52. package/resources/key-quorums.d.mts.map +1 -1
  53. package/resources/key-quorums.d.ts +20 -20
  54. package/resources/key-quorums.d.ts.map +1 -1
  55. package/resources/kraken-embed.d.mts +12 -20
  56. package/resources/kraken-embed.d.mts.map +1 -1
  57. package/resources/kraken-embed.d.ts +12 -20
  58. package/resources/kraken-embed.d.ts.map +1 -1
  59. package/resources/organizations.d.mts +65 -0
  60. package/resources/organizations.d.mts.map +1 -0
  61. package/resources/organizations.d.ts +65 -0
  62. package/resources/organizations.d.ts.map +1 -0
  63. package/resources/organizations.js +9 -0
  64. package/resources/organizations.js.map +1 -0
  65. package/resources/organizations.mjs +5 -0
  66. package/resources/organizations.mjs.map +1 -0
  67. package/resources/policies.d.mts +258 -240
  68. package/resources/policies.d.mts.map +1 -1
  69. package/resources/policies.d.ts +258 -240
  70. package/resources/policies.d.ts.map +1 -1
  71. package/resources/shared.d.mts +28 -28
  72. package/resources/shared.d.mts.map +1 -1
  73. package/resources/shared.d.ts +28 -28
  74. package/resources/shared.d.ts.map +1 -1
  75. package/resources/swaps.d.mts +6 -9
  76. package/resources/swaps.d.mts.map +1 -1
  77. package/resources/swaps.d.ts +6 -9
  78. package/resources/swaps.d.ts.map +1 -1
  79. package/resources/swaps.js.map +1 -1
  80. package/resources/swaps.mjs.map +1 -1
  81. package/resources/transactions.d.mts +53 -53
  82. package/resources/transactions.d.mts.map +1 -1
  83. package/resources/transactions.d.ts +53 -53
  84. package/resources/transactions.d.ts.map +1 -1
  85. package/resources/users.d.mts +468 -459
  86. package/resources/users.d.mts.map +1 -1
  87. package/resources/users.d.ts +468 -459
  88. package/resources/users.d.ts.map +1 -1
  89. package/resources/wallet-actions.d.mts +302 -145
  90. package/resources/wallet-actions.d.mts.map +1 -1
  91. package/resources/wallet-actions.d.ts +302 -145
  92. package/resources/wallet-actions.d.ts.map +1 -1
  93. package/resources/wallets/index.d.mts +1 -1
  94. package/resources/wallets/index.d.mts.map +1 -1
  95. package/resources/wallets/index.d.ts +1 -1
  96. package/resources/wallets/index.d.ts.map +1 -1
  97. package/resources/wallets/index.js.map +1 -1
  98. package/resources/wallets/index.mjs.map +1 -1
  99. package/resources/wallets/transactions.d.mts +7 -2
  100. package/resources/wallets/transactions.d.mts.map +1 -1
  101. package/resources/wallets/transactions.d.ts +7 -2
  102. package/resources/wallets/transactions.d.ts.map +1 -1
  103. package/resources/wallets/transactions.js +1 -1
  104. package/resources/wallets/transactions.mjs +1 -1
  105. package/resources/wallets/wallets.d.mts +1424 -1227
  106. package/resources/wallets/wallets.d.mts.map +1 -1
  107. package/resources/wallets/wallets.d.ts +1424 -1227
  108. package/resources/wallets/wallets.d.ts.map +1 -1
  109. package/resources/wallets/wallets.js +4 -1
  110. package/resources/wallets/wallets.js.map +1 -1
  111. package/resources/wallets/wallets.mjs +4 -1
  112. package/resources/wallets/wallets.mjs.map +1 -1
  113. package/resources/webhooks.d.mts +935 -877
  114. package/resources/webhooks.d.mts.map +1 -1
  115. package/resources/webhooks.d.ts +935 -877
  116. package/resources/webhooks.d.ts.map +1 -1
  117. package/resources/yield.d.mts +157 -157
  118. package/resources/yield.d.mts.map +1 -1
  119. package/resources/yield.d.ts +157 -157
  120. package/resources/yield.d.ts.map +1 -1
  121. package/src/client.ts +594 -516
  122. package/src/internal/types.ts +6 -8
  123. package/src/resources/accounts.ts +157 -103
  124. package/src/resources/aggregations.ts +55 -55
  125. package/src/resources/apps.ts +221 -178
  126. package/src/resources/client-auth.ts +887 -887
  127. package/src/resources/embedded-wallets.ts +150 -150
  128. package/src/resources/funding.ts +66 -66
  129. package/src/resources/index.ts +504 -475
  130. package/src/resources/intents.ts +326 -322
  131. package/src/resources/key-quorums.ts +23 -23
  132. package/src/resources/kraken-embed.ts +14 -22
  133. package/src/resources/organizations.ts +82 -0
  134. package/src/resources/policies.ts +379 -352
  135. package/src/resources/shared.ts +34 -34
  136. package/src/resources/swaps.ts +5 -10
  137. package/src/resources/transactions.ts +86 -86
  138. package/src/resources/users.ts +707 -696
  139. package/src/resources/wallet-actions.ts +392 -185
  140. package/src/resources/wallets/index.ts +157 -148
  141. package/src/resources/wallets/transactions.ts +18 -3
  142. package/src/resources/wallets/wallets.ts +1937 -1686
  143. package/src/resources/webhooks.ts +1172 -1100
  144. package/src/resources/yield.ts +188 -188
  145. package/src/version.ts +1 -1
  146. package/version.d.mts +1 -1
  147. package/version.d.mts.map +1 -1
  148. package/version.d.ts +1 -1
  149. package/version.d.ts.map +1 -1
  150. package/version.js +1 -1
  151. package/version.js.map +1 -1
  152. package/version.mjs +1 -1
  153. package/version.mjs.map +1 -1
@@ -19,48 +19,10 @@ export type SmartWalletConfigurationInput =
19
19
  | SmartWalletConfigurationInputEnabled;
20
20
 
21
21
  /**
22
- * An additional signer configuration for a wallet.
23
- */
24
- export interface WalletCreationAdditionalSignerItem {
25
- /**
26
- * A unique identifier for a key quorum.
27
- */
28
- signer_id: SharedAPI.KeyQuorumID;
29
-
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>;
36
- }
37
-
38
- /**
39
- * The fields on wallet creation that can be specified when creating a
40
- * user-controlled embedded server wallet.
22
+ * The Alchemy paymaster context for a smart wallet network configuration.
41
23
  */
42
- export interface WalletCreationInput {
43
- /**
44
- * The wallet chain types.
45
- */
46
- chain_type: WalletsAPI.WalletChainType;
47
-
48
- /**
49
- * Additional signers for the wallet.
50
- */
51
- additional_signers?: Array<WalletCreationAdditionalSignerItem>;
52
-
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;
58
-
59
- /**
60
- * Policy IDs to enforce on the wallet. Currently, only one policy is supported per
61
- * wallet.
62
- */
63
- policy_ids?: Array<string>;
24
+ export interface AlchemyPaymasterContext {
25
+ policy_id: string;
64
26
  }
65
27
 
66
28
  /**
@@ -75,63 +37,105 @@ export interface EmbeddedWalletCreationInput {
75
37
  }
76
38
 
77
39
  /**
78
- * The supported smart wallet providers.
40
+ * The client type for iCloud recovery operations.
79
41
  */
80
- export type SmartWalletType =
81
- | 'safe'
82
- | 'kernel'
83
- | 'light_account'
84
- | 'biconomy'
85
- | 'coinbase_smart_wallet'
86
- | 'thirdweb';
42
+ export type ICloudClientType = 'web' | 'expo-ios';
87
43
 
88
44
  /**
89
- * The Alchemy paymaster context for a smart wallet network configuration.
45
+ * The response from authenticating with OAuth for recovery.
90
46
  */
91
- export interface AlchemyPaymasterContext {
92
- policy_id: string;
47
+ export interface OAuthAuthenticateRecoveryResponse {
48
+ access_token: string;
93
49
  }
94
50
 
95
51
  /**
96
- * Network configuration for a smart wallet.
52
+ * The input for the iCloud Expo OAuth callback.
97
53
  */
98
- export interface SmartWalletNetworkConfiguration {
99
- bundler_url: string;
54
+ export interface OAuthCallbackICloudExpoInput {
55
+ ckWebAuthToken: string;
56
+ }
100
57
 
101
- chain_id: string;
58
+ /**
59
+ * The input for initiating an iCloud OAuth recovery flow.
60
+ */
61
+ export interface OAuthInitICloudRecoveryInput {
62
+ /**
63
+ * The client type for iCloud recovery operations.
64
+ */
65
+ client_type: ICloudClientType;
66
+ }
102
67
 
103
- chain_name?: string;
68
+ /**
69
+ * The input for initiating an OAuth recovery flow.
70
+ */
71
+ export interface OAuthInitRecoveryInput {
72
+ redirect_to: string;
73
+
74
+ token?: string;
104
75
 
76
+ code_challenge?: string;
77
+
78
+ state_code?: string;
79
+ }
80
+
81
+ /**
82
+ * The input for getting the iCloud recovery configuration.
83
+ */
84
+ export interface RecoveryConfigurationICloudInput {
105
85
  /**
106
- * The Alchemy paymaster context for a smart wallet network configuration.
86
+ * The client type for iCloud recovery operations.
107
87
  */
108
- paymaster_context?: AlchemyPaymasterContext;
88
+ client_type: ICloudClientType;
89
+ }
109
90
 
110
- paymaster_url?: string;
91
+ /**
92
+ * The response containing the iCloud recovery configuration.
93
+ */
94
+ export interface RecoveryConfigurationICloudResponse {
95
+ api_token: string;
111
96
 
112
- rpc_url?: string;
97
+ container_identifier: string;
98
+
99
+ environment: string;
113
100
  }
114
101
 
115
102
  /**
116
- * Input for network configuration for a smart wallet.
103
+ * The input for getting the recovery key material.
117
104
  */
118
- export interface SmartWalletNetworkConfigurationInput {
119
- chain_id: string;
105
+ export interface RecoveryKeyMaterialInput {
106
+ chain_type?: string;
107
+ }
120
108
 
121
- bundler_url?: string;
109
+ /**
110
+ * The response containing the recovery key material.
111
+ */
112
+ export interface RecoveryKeyMaterialResponse {
113
+ file_id: string;
122
114
 
123
- chain_name?: string;
115
+ icloud_record_name: string;
124
116
 
125
- /**
126
- * The Alchemy paymaster context for a smart wallet network configuration.
127
- */
128
- paymaster_context?: AlchemyPaymasterContext;
117
+ recovery_code: string;
129
118
 
130
- paymaster_url?: string;
119
+ recovery_key: string;
131
120
 
132
- rpc_url?: string;
121
+ recovery_key_derivation_salt: string;
122
+
123
+ /**
124
+ * The type of recovery mechanism used for wallet recovery.
125
+ */
126
+ recovery_type: RecoveryType;
133
127
  }
134
128
 
129
+ /**
130
+ * The type of recovery mechanism used for wallet recovery.
131
+ */
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';
138
+
135
139
  /**
136
140
  * A disabled smart wallet configuration.
137
141
  */
@@ -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
276
  type SmartWalletConfiguration as SmartWalletConfiguration,
277
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
278
  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,
279
+ type EmbeddedWalletCreationInput as EmbeddedWalletCreationInput,
289
280
  type ICloudClientType as ICloudClientType,
290
- type RecoveryKeyMaterialInput as RecoveryKeyMaterialInput,
291
- type RecoveryKeyMaterialResponse as RecoveryKeyMaterialResponse,
292
- type OAuthInitRecoveryInput as OAuthInitRecoveryInput,
293
281
  type OAuthAuthenticateRecoveryResponse as OAuthAuthenticateRecoveryResponse,
294
- type OAuthInitICloudRecoveryInput as OAuthInitICloudRecoveryInput,
295
282
  type OAuthCallbackICloudExpoInput as OAuthCallbackICloudExpoInput,
283
+ type OAuthInitICloudRecoveryInput as OAuthInitICloudRecoveryInput,
284
+ type OAuthInitRecoveryInput as OAuthInitRecoveryInput,
296
285
  type RecoveryConfigurationICloudInput as RecoveryConfigurationICloudInput,
297
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,
296
+ type WalletCreationAdditionalSignerItem as WalletCreationAdditionalSignerItem,
297
+ type WalletCreationInput as WalletCreationInput,
298
298
  };
299
299
  }
@@ -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 payment method supported by Moonpay on-ramp.
130
+ * A Solana asset supported by Coinbase on-ramp.
136
131
  */
137
- export type MoonpayPaymentMethod =
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 MoonpayPaymentMethod as MoonpayPaymentMethod,
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
  }