@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.
Files changed (167) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/client.d.mts +35 -32
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +35 -32
  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 +22 -8
  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/internal/utils/env.js +2 -2
  15. package/internal/utils/env.js.map +1 -1
  16. package/internal/utils/env.mjs +2 -2
  17. package/internal/utils/env.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/accounts.d.mts +128 -86
  20. package/resources/accounts.d.mts.map +1 -1
  21. package/resources/accounts.d.ts +128 -86
  22. package/resources/accounts.d.ts.map +1 -1
  23. package/resources/aggregations.d.mts +43 -43
  24. package/resources/aggregations.d.mts.map +1 -1
  25. package/resources/aggregations.d.ts +43 -43
  26. package/resources/aggregations.d.ts.map +1 -1
  27. package/resources/apps.d.mts +177 -129
  28. package/resources/apps.d.mts.map +1 -1
  29. package/resources/apps.d.ts +177 -129
  30. package/resources/apps.d.ts.map +1 -1
  31. package/resources/client-auth.d.mts +650 -648
  32. package/resources/client-auth.d.mts.map +1 -1
  33. package/resources/client-auth.d.ts +650 -648
  34. package/resources/client-auth.d.ts.map +1 -1
  35. package/resources/embedded-wallets.d.mts +84 -84
  36. package/resources/embedded-wallets.d.mts.map +1 -1
  37. package/resources/embedded-wallets.d.ts +84 -84
  38. package/resources/embedded-wallets.d.ts.map +1 -1
  39. package/resources/funding.d.mts +42 -42
  40. package/resources/funding.d.mts.map +1 -1
  41. package/resources/funding.d.ts +42 -42
  42. package/resources/funding.d.ts.map +1 -1
  43. package/resources/index.d.mts +19 -18
  44. package/resources/index.d.mts.map +1 -1
  45. package/resources/index.d.ts +19 -18
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/index.js +3 -1
  48. package/resources/index.js.map +1 -1
  49. package/resources/index.mjs +2 -1
  50. package/resources/index.mjs.map +1 -1
  51. package/resources/intents.d.mts +270 -266
  52. package/resources/intents.d.mts.map +1 -1
  53. package/resources/intents.d.ts +270 -266
  54. package/resources/intents.d.ts.map +1 -1
  55. package/resources/key-quorums.d.mts +20 -20
  56. package/resources/key-quorums.d.mts.map +1 -1
  57. package/resources/key-quorums.d.ts +20 -20
  58. package/resources/key-quorums.d.ts.map +1 -1
  59. package/resources/kraken-embed.d.mts +62 -19
  60. package/resources/kraken-embed.d.mts.map +1 -1
  61. package/resources/kraken-embed.d.ts +62 -19
  62. package/resources/kraken-embed.d.ts.map +1 -1
  63. package/resources/organizations.d.mts +65 -0
  64. package/resources/organizations.d.mts.map +1 -0
  65. package/resources/organizations.d.ts +65 -0
  66. package/resources/organizations.d.ts.map +1 -0
  67. package/resources/organizations.js +9 -0
  68. package/resources/organizations.js.map +1 -0
  69. package/resources/organizations.mjs +5 -0
  70. package/resources/organizations.mjs.map +1 -0
  71. package/resources/policies.d.mts +360 -231
  72. package/resources/policies.d.mts.map +1 -1
  73. package/resources/policies.d.ts +360 -231
  74. package/resources/policies.d.ts.map +1 -1
  75. package/resources/shared.d.mts +28 -28
  76. package/resources/shared.d.mts.map +1 -1
  77. package/resources/shared.d.ts +28 -28
  78. package/resources/shared.d.ts.map +1 -1
  79. package/resources/swaps.d.mts +8 -11
  80. package/resources/swaps.d.mts.map +1 -1
  81. package/resources/swaps.d.ts +8 -11
  82. package/resources/swaps.d.ts.map +1 -1
  83. package/resources/swaps.js.map +1 -1
  84. package/resources/swaps.mjs.map +1 -1
  85. package/resources/transactions.d.mts +56 -66
  86. package/resources/transactions.d.mts.map +1 -1
  87. package/resources/transactions.d.ts +56 -66
  88. package/resources/transactions.d.ts.map +1 -1
  89. package/resources/users.d.mts +457 -448
  90. package/resources/users.d.mts.map +1 -1
  91. package/resources/users.d.ts +457 -448
  92. package/resources/users.d.ts.map +1 -1
  93. package/resources/wallet-actions.d.mts +450 -41
  94. package/resources/wallet-actions.d.mts.map +1 -1
  95. package/resources/wallet-actions.d.ts +450 -41
  96. package/resources/wallet-actions.d.ts.map +1 -1
  97. package/resources/wallets/balance.d.mts +2 -1
  98. package/resources/wallets/balance.d.mts.map +1 -1
  99. package/resources/wallets/balance.d.ts +2 -1
  100. package/resources/wallets/balance.d.ts.map +1 -1
  101. package/resources/wallets/balance.js.map +1 -1
  102. package/resources/wallets/balance.mjs.map +1 -1
  103. package/resources/wallets/index.d.mts +1 -1
  104. package/resources/wallets/index.d.mts.map +1 -1
  105. package/resources/wallets/index.d.ts +1 -1
  106. package/resources/wallets/index.d.ts.map +1 -1
  107. package/resources/wallets/index.js.map +1 -1
  108. package/resources/wallets/index.mjs.map +1 -1
  109. package/resources/wallets/transactions.d.mts +16 -31
  110. package/resources/wallets/transactions.d.mts.map +1 -1
  111. package/resources/wallets/transactions.d.ts +16 -31
  112. package/resources/wallets/transactions.d.ts.map +1 -1
  113. package/resources/wallets/transactions.js +1 -1
  114. package/resources/wallets/transactions.js.map +1 -1
  115. package/resources/wallets/transactions.mjs +1 -1
  116. package/resources/wallets/transactions.mjs.map +1 -1
  117. package/resources/wallets/wallets.d.mts +1475 -1172
  118. package/resources/wallets/wallets.d.mts.map +1 -1
  119. package/resources/wallets/wallets.d.ts +1475 -1172
  120. package/resources/wallets/wallets.d.ts.map +1 -1
  121. package/resources/wallets/wallets.js +10 -6
  122. package/resources/wallets/wallets.js.map +1 -1
  123. package/resources/wallets/wallets.mjs +10 -6
  124. package/resources/wallets/wallets.mjs.map +1 -1
  125. package/resources/webhooks.d.mts +1345 -582
  126. package/resources/webhooks.d.mts.map +1 -1
  127. package/resources/webhooks.d.ts +1345 -582
  128. package/resources/webhooks.d.ts.map +1 -1
  129. package/resources/yield.d.mts +157 -157
  130. package/resources/yield.d.mts.map +1 -1
  131. package/resources/yield.d.ts +157 -157
  132. package/resources/yield.d.ts.map +1 -1
  133. package/src/client.ts +661 -455
  134. package/src/internal/types.ts +6 -8
  135. package/src/internal/utils/env.ts +2 -2
  136. package/src/resources/accounts.ts +157 -103
  137. package/src/resources/aggregations.ts +55 -55
  138. package/src/resources/apps.ts +232 -166
  139. package/src/resources/client-auth.ts +890 -890
  140. package/src/resources/embedded-wallets.ts +123 -123
  141. package/src/resources/funding.ts +66 -66
  142. package/src/resources/index.ts +521 -431
  143. package/src/resources/intents.ts +326 -322
  144. package/src/resources/key-quorums.ts +23 -23
  145. package/src/resources/kraken-embed.ts +116 -19
  146. package/src/resources/organizations.ts +82 -0
  147. package/src/resources/policies.ts +495 -339
  148. package/src/resources/shared.ts +34 -34
  149. package/src/resources/swaps.ts +9 -14
  150. package/src/resources/transactions.ts +88 -115
  151. package/src/resources/users.ts +664 -653
  152. package/src/resources/wallet-actions.ts +585 -56
  153. package/src/resources/wallets/balance.ts +2 -1
  154. package/src/resources/wallets/index.ts +158 -138
  155. package/src/resources/wallets/transactions.ts +20 -83
  156. package/src/resources/wallets/wallets.ts +1997 -1563
  157. package/src/resources/webhooks.ts +1652 -700
  158. package/src/resources/yield.ts +188 -188
  159. package/src/version.ts +1 -1
  160. package/version.d.mts +1 -1
  161. package/version.d.mts.map +1 -1
  162. package/version.d.ts +1 -1
  163. package/version.d.ts.map +1 -1
  164. package/version.js +1 -1
  165. package/version.js.map +1 -1
  166. package/version.mjs +1 -1
  167. 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
- * Network configuration for a smart wallet.
29
+ * The fields describing embedded wallet creation, used for user import and
30
+ * embedded wallet generation.
41
31
  */
42
- export interface SmartWalletNetworkConfiguration {
43
- bundler_url: string;
44
-
45
- chain_id: string;
46
-
47
- chain_name?: string;
48
-
32
+ export interface EmbeddedWalletCreationInput {
49
33
  /**
50
- * The Alchemy paymaster context for a smart wallet network configuration.
34
+ * Wallets to create.
51
35
  */
52
- paymaster_context?: AlchemyPaymasterContext;
53
-
54
- paymaster_url?: string;
55
-
56
- rpc_url?: string;
36
+ wallets?: Array<WalletCreationInput>;
57
37
  }
58
38
 
59
39
  /**
60
- * Input for network configuration for a smart wallet.
40
+ * The client type for iCloud recovery operations.
61
41
  */
62
- export interface SmartWalletNetworkConfigurationInput {
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
- rpc_url?: string;
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
- * A disabled smart wallet configuration.
52
+ * The input for the iCloud Expo OAuth callback.
81
53
  */
82
- export interface SmartWalletConfigurationDisabled {
83
- enabled: false;
54
+ export interface OAuthCallbackICloudExpoInput {
55
+ ckWebAuthToken: string;
84
56
  }
85
57
 
86
58
  /**
87
- * An enabled smart wallet configuration.
59
+ * The input for initiating an iCloud OAuth recovery flow.
88
60
  */
89
- export interface SmartWalletConfigurationEnabled {
90
- configured_networks: Array<SmartWalletNetworkConfiguration>;
91
-
92
- enabled: true;
93
-
61
+ export interface OAuthInitICloudRecoveryInput {
94
62
  /**
95
- * The supported smart wallet providers.
63
+ * The client type for iCloud recovery operations.
96
64
  */
97
- smart_wallet_type: SmartWalletType;
98
-
99
- smart_wallet_version?: string;
65
+ client_type: ICloudClientType;
100
66
  }
101
67
 
102
68
  /**
103
- * An enabled smart wallet configuration input.
69
+ * The input for initiating an OAuth recovery flow.
104
70
  */
105
- export interface SmartWalletConfigurationInputEnabled {
106
- configured_networks: Array<SmartWalletNetworkConfigurationInput>;
71
+ export interface OAuthInitRecoveryInput {
72
+ redirect_to: string;
107
73
 
108
- enabled: true;
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
- smart_wallet_version?: string | null;
78
+ state_code?: string;
116
79
  }
117
80
 
118
81
  /**
119
- * The type of recovery mechanism used for wallet recovery.
82
+ * The input for getting the iCloud recovery configuration.
120
83
  */
121
- export type RecoveryType =
122
- | 'user_passcode_derived_recovery_key'
123
- | 'privy_passcode_derived_recovery_key'
124
- | 'privy_generated_recovery_key'
125
- | 'google_drive_recovery_secret'
126
- | 'icloud_recovery_secret';
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 client type for iCloud recovery operations.
92
+ * The response containing the iCloud recovery configuration.
130
93
  */
131
- export type ICloudClientType = 'web' | 'expo-ios';
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 input for initiating an OAuth recovery flow.
130
+ * The type of recovery mechanism used for wallet recovery.
162
131
  */
163
- export interface OAuthInitRecoveryInput {
164
- redirect_to: string;
165
-
166
- token?: string;
167
-
168
- code_challenge?: string;
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
- * The response from authenticating with OAuth for recovery.
140
+ * A disabled smart wallet configuration.
175
141
  */
176
- export interface OAuthAuthenticateRecoveryResponse {
177
- access_token: string;
142
+ export interface SmartWalletConfigurationDisabled {
143
+ enabled: false;
178
144
  }
179
145
 
180
146
  /**
181
- * The input for initiating an iCloud OAuth recovery flow.
147
+ * An enabled smart wallet configuration.
182
148
  */
183
- export interface OAuthInitICloudRecoveryInput {
149
+ export interface SmartWalletConfigurationEnabled {
150
+ configured_networks: Array<SmartWalletNetworkConfiguration>;
151
+
152
+ enabled: true;
153
+
184
154
  /**
185
- * The client type for iCloud recovery operations.
155
+ * The supported smart wallet providers.
186
156
  */
187
- client_type: ICloudClientType;
157
+ smart_wallet_type: SmartWalletType;
158
+
159
+ smart_wallet_version?: string;
188
160
  }
189
161
 
190
162
  /**
191
- * The input for the iCloud Expo OAuth callback.
163
+ * An enabled smart wallet configuration input.
192
164
  */
193
- export interface OAuthCallbackICloudExpoInput {
194
- ckWebAuthToken: string;
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
- * The input for getting the iCloud recovery configuration.
179
+ * Network configuration for a smart wallet.
199
180
  */
200
- export interface RecoveryConfigurationICloudInput {
181
+ export interface SmartWalletNetworkConfiguration {
182
+ bundler_url: string;
183
+
184
+ chain_id: string;
185
+
186
+ chain_name?: string;
187
+
201
188
  /**
202
- * The client type for iCloud recovery operations.
189
+ * The Alchemy paymaster context for a smart wallet network configuration.
203
190
  */
204
- client_type: ICloudClientType;
191
+ paymaster_context?: AlchemyPaymasterContext;
192
+
193
+ paymaster_url?: string;
194
+
195
+ rpc_url?: string;
205
196
  }
206
197
 
207
198
  /**
208
- * The response containing the iCloud recovery configuration.
199
+ * Input for network configuration for a smart wallet.
209
200
  */
210
- export interface RecoveryConfigurationICloudResponse {
211
- api_token: string;
201
+ export interface SmartWalletNetworkConfigurationInput {
202
+ chain_id: string;
212
203
 
213
- container_identifier: string;
204
+ bundler_url?: string;
214
205
 
215
- environment: string;
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 SmartWalletNetworkConfiguration as SmartWalletNetworkConfiguration,
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
  }
@@ -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
  }