@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
@@ -4,51 +4,10 @@ import * as WalletsAPI from "./wallets/wallets.js";
4
4
  export declare class EmbeddedWallets extends APIResource {
5
5
  }
6
6
  /**
7
- * The configuration object for smart wallets.
8
- */
9
- export type SmartWalletConfiguration = SmartWalletConfigurationDisabled | SmartWalletConfigurationEnabled;
10
- /**
11
- * The input configuration object for smart wallets.
12
- */
13
- export type SmartWalletConfigurationInput = SmartWalletConfigurationDisabled | SmartWalletConfigurationInputEnabled;
14
- /**
15
- * An additional signer configuration for a wallet.
16
- */
17
- export interface WalletCreationAdditionalSignerItem {
18
- /**
19
- * A unique identifier for a key quorum.
20
- */
21
- signer_id: SharedAPI.KeyQuorumID;
22
- /**
23
- * The array of policy IDs that will be applied to wallet requests. If specified,
24
- * this will override the base policy IDs set on the wallet. Currently, only one
25
- * policy is supported per signer.
26
- */
27
- override_policy_ids?: Array<string>;
28
- }
29
- /**
30
- * The fields on wallet creation that can be specified when creating a
31
- * user-controlled embedded server wallet.
7
+ * The Alchemy paymaster context for a smart wallet network configuration.
32
8
  */
33
- export interface WalletCreationInput {
34
- /**
35
- * The wallet chain types.
36
- */
37
- chain_type: WalletsAPI.WalletChainType;
38
- /**
39
- * Additional signers for the wallet.
40
- */
41
- additional_signers?: Array<WalletCreationAdditionalSignerItem>;
42
- /**
43
- * Create a smart wallet with this wallet as the signer. Only supported for wallets
44
- * with `chain_type: "ethereum"`.
45
- */
46
- create_smart_wallet?: boolean;
47
- /**
48
- * Policy IDs to enforce on the wallet. Currently, only one policy is supported per
49
- * wallet.
50
- */
51
- policy_ids?: Array<string>;
9
+ export interface AlchemyPaymasterContext {
10
+ policy_id: string;
52
11
  }
53
12
  /**
54
13
  * The fields describing embedded wallet creation, used for user import and
@@ -61,81 +20,56 @@ export interface EmbeddedWalletCreationInput {
61
20
  wallets?: Array<WalletCreationInput>;
62
21
  }
63
22
  /**
64
- * The supported smart wallet providers.
23
+ * The client type for iCloud recovery operations.
65
24
  */
66
- export type SmartWalletType = 'safe' | 'kernel' | 'light_account' | 'biconomy' | 'coinbase_smart_wallet' | 'thirdweb';
25
+ export type ICloudClientType = 'web' | 'expo-ios';
67
26
  /**
68
- * The Alchemy paymaster context for a smart wallet network configuration.
27
+ * The response from authenticating with OAuth for recovery.
69
28
  */
70
- export interface AlchemyPaymasterContext {
71
- policy_id: string;
29
+ export interface OAuthAuthenticateRecoveryResponse {
30
+ access_token: string;
72
31
  }
73
32
  /**
74
- * Network configuration for a smart wallet.
33
+ * The input for the iCloud Expo OAuth callback.
75
34
  */
76
- export interface SmartWalletNetworkConfiguration {
77
- bundler_url: string;
78
- chain_id: string;
79
- chain_name?: string;
80
- /**
81
- * The Alchemy paymaster context for a smart wallet network configuration.
82
- */
83
- paymaster_context?: AlchemyPaymasterContext;
84
- paymaster_url?: string;
85
- rpc_url?: string;
35
+ export interface OAuthCallbackICloudExpoInput {
36
+ ckWebAuthToken: string;
86
37
  }
87
38
  /**
88
- * Input for network configuration for a smart wallet.
39
+ * The input for initiating an iCloud OAuth recovery flow.
89
40
  */
90
- export interface SmartWalletNetworkConfigurationInput {
91
- chain_id: string;
92
- bundler_url?: string;
93
- chain_name?: string;
41
+ export interface OAuthInitICloudRecoveryInput {
94
42
  /**
95
- * The Alchemy paymaster context for a smart wallet network configuration.
43
+ * The client type for iCloud recovery operations.
96
44
  */
97
- paymaster_context?: AlchemyPaymasterContext;
98
- paymaster_url?: string;
99
- rpc_url?: string;
45
+ client_type: ICloudClientType;
100
46
  }
101
47
  /**
102
- * A disabled smart wallet configuration.
48
+ * The input for initiating an OAuth recovery flow.
103
49
  */
104
- export interface SmartWalletConfigurationDisabled {
105
- enabled: false;
50
+ export interface OAuthInitRecoveryInput {
51
+ redirect_to: string;
52
+ token?: string;
53
+ code_challenge?: string;
54
+ state_code?: string;
106
55
  }
107
56
  /**
108
- * An enabled smart wallet configuration.
57
+ * The input for getting the iCloud recovery configuration.
109
58
  */
110
- export interface SmartWalletConfigurationEnabled {
111
- configured_networks: Array<SmartWalletNetworkConfiguration>;
112
- enabled: true;
59
+ export interface RecoveryConfigurationICloudInput {
113
60
  /**
114
- * The supported smart wallet providers.
61
+ * The client type for iCloud recovery operations.
115
62
  */
116
- smart_wallet_type: SmartWalletType;
117
- smart_wallet_version?: string;
63
+ client_type: ICloudClientType;
118
64
  }
119
65
  /**
120
- * An enabled smart wallet configuration input.
66
+ * The response containing the iCloud recovery configuration.
121
67
  */
122
- export interface SmartWalletConfigurationInputEnabled {
123
- configured_networks: Array<SmartWalletNetworkConfigurationInput>;
124
- enabled: true;
125
- /**
126
- * The supported smart wallet providers.
127
- */
128
- smart_wallet_type: SmartWalletType;
129
- smart_wallet_version?: string | null;
68
+ export interface RecoveryConfigurationICloudResponse {
69
+ api_token: string;
70
+ container_identifier: string;
71
+ environment: string;
130
72
  }
131
- /**
132
- * The type of recovery mechanism used for wallet recovery.
133
- */
134
- export type RecoveryType = 'user_passcode_derived_recovery_key' | 'privy_passcode_derived_recovery_key' | 'privy_generated_recovery_key' | 'google_drive_recovery_secret' | 'icloud_recovery_secret';
135
- /**
136
- * The client type for iCloud recovery operations.
137
- */
138
- export type ICloudClientType = 'web' | 'expo-ios';
139
73
  /**
140
74
  * The input for getting the recovery key material.
141
75
  */
@@ -157,53 +91,119 @@ export interface RecoveryKeyMaterialResponse {
157
91
  recovery_type: RecoveryType;
158
92
  }
159
93
  /**
160
- * The input for initiating an OAuth recovery flow.
94
+ * The type of recovery mechanism used for wallet recovery.
161
95
  */
162
- export interface OAuthInitRecoveryInput {
163
- redirect_to: string;
164
- token?: string;
165
- code_challenge?: string;
166
- state_code?: string;
96
+ export type RecoveryType = 'user_passcode_derived_recovery_key' | 'privy_passcode_derived_recovery_key' | 'privy_generated_recovery_key' | 'google_drive_recovery_secret' | 'icloud_recovery_secret';
97
+ /**
98
+ * The configuration object for smart wallets.
99
+ */
100
+ export type SmartWalletConfiguration = SmartWalletConfigurationDisabled | SmartWalletConfigurationEnabled;
101
+ /**
102
+ * A disabled smart wallet configuration.
103
+ */
104
+ export interface SmartWalletConfigurationDisabled {
105
+ enabled: false;
167
106
  }
168
107
  /**
169
- * The response from authenticating with OAuth for recovery.
108
+ * An enabled smart wallet configuration.
170
109
  */
171
- export interface OAuthAuthenticateRecoveryResponse {
172
- access_token: string;
110
+ export interface SmartWalletConfigurationEnabled {
111
+ configured_networks: Array<SmartWalletNetworkConfiguration>;
112
+ enabled: true;
113
+ /**
114
+ * The supported smart wallet providers.
115
+ */
116
+ smart_wallet_type: SmartWalletType;
117
+ smart_wallet_version?: string;
173
118
  }
174
119
  /**
175
- * The input for initiating an iCloud OAuth recovery flow.
120
+ * The input configuration object for smart wallets.
176
121
  */
177
- export interface OAuthInitICloudRecoveryInput {
122
+ export type SmartWalletConfigurationInput = SmartWalletConfigurationDisabled | SmartWalletConfigurationInputEnabled;
123
+ /**
124
+ * An enabled smart wallet configuration input.
125
+ */
126
+ export interface SmartWalletConfigurationInputEnabled {
127
+ configured_networks: Array<SmartWalletNetworkConfigurationInput>;
128
+ enabled: true;
178
129
  /**
179
- * The client type for iCloud recovery operations.
130
+ * The supported smart wallet providers.
180
131
  */
181
- client_type: ICloudClientType;
132
+ smart_wallet_type: SmartWalletType;
133
+ smart_wallet_version?: string | null;
182
134
  }
183
135
  /**
184
- * The input for the iCloud Expo OAuth callback.
136
+ * Network configuration for a smart wallet.
185
137
  */
186
- export interface OAuthCallbackICloudExpoInput {
187
- ckWebAuthToken: string;
138
+ export interface SmartWalletNetworkConfiguration {
139
+ bundler_url: string;
140
+ chain_id: string;
141
+ chain_name?: string;
142
+ /**
143
+ * The Alchemy paymaster context for a smart wallet network configuration.
144
+ */
145
+ paymaster_context?: AlchemyPaymasterContext;
146
+ paymaster_url?: string;
147
+ rpc_url?: string;
188
148
  }
189
149
  /**
190
- * The input for getting the iCloud recovery configuration.
150
+ * Input for network configuration for a smart wallet.
191
151
  */
192
- export interface RecoveryConfigurationICloudInput {
152
+ export interface SmartWalletNetworkConfigurationInput {
153
+ chain_id: string;
154
+ bundler_url?: string;
155
+ chain_name?: string;
193
156
  /**
194
- * The client type for iCloud recovery operations.
157
+ * The Alchemy paymaster context for a smart wallet network configuration.
195
158
  */
196
- client_type: ICloudClientType;
159
+ paymaster_context?: AlchemyPaymasterContext;
160
+ paymaster_url?: string;
161
+ rpc_url?: string;
197
162
  }
198
163
  /**
199
- * The response containing the iCloud recovery configuration.
164
+ * The supported smart wallet providers.
200
165
  */
201
- export interface RecoveryConfigurationICloudResponse {
202
- api_token: string;
203
- container_identifier: string;
204
- environment: string;
166
+ export type SmartWalletType = 'safe' | 'kernel' | 'light_account' | 'biconomy' | 'coinbase_smart_wallet' | 'thirdweb';
167
+ /**
168
+ * An additional signer configuration for a wallet.
169
+ */
170
+ export interface WalletCreationAdditionalSignerItem {
171
+ /**
172
+ * A unique identifier for a key quorum.
173
+ */
174
+ signer_id: SharedAPI.KeyQuorumID;
175
+ /**
176
+ * The array of policy IDs that will be applied to wallet requests. If specified,
177
+ * this will override the base policy IDs set on the wallet. Currently, only one
178
+ * policy is supported per signer.
179
+ */
180
+ override_policy_ids?: Array<string>;
181
+ }
182
+ /**
183
+ * The fields on wallet creation that can be specified when creating a
184
+ * user-controlled embedded server wallet.
185
+ */
186
+ export interface WalletCreationInput {
187
+ /**
188
+ * The wallet chain types.
189
+ */
190
+ chain_type: WalletsAPI.WalletChainType;
191
+ /**
192
+ * Additional signers for the wallet.
193
+ */
194
+ additional_signers?: Array<WalletCreationAdditionalSignerItem>;
195
+ /**
196
+ * Create a smart wallet with this wallet as the signer. Only supported for wallets
197
+ * with `chain_type: "ethereum"`.
198
+ */
199
+ create_smart_wallet?: boolean;
200
+ /**
201
+ * Policy IDs to enforce on the wallet. Currently, only one policy is supported per
202
+ * wallet.
203
+ */
204
+ policy_ids?: Array<string>;
205
205
  }
206
206
  export declare namespace EmbeddedWallets {
207
- export { type SmartWalletConfiguration as SmartWalletConfiguration, type SmartWalletConfigurationInput as SmartWalletConfigurationInput, type WalletCreationAdditionalSignerItem as WalletCreationAdditionalSignerItem, type WalletCreationInput as WalletCreationInput, type EmbeddedWalletCreationInput as EmbeddedWalletCreationInput, type SmartWalletType as SmartWalletType, type AlchemyPaymasterContext as AlchemyPaymasterContext, type SmartWalletNetworkConfiguration as SmartWalletNetworkConfiguration, type SmartWalletNetworkConfigurationInput as SmartWalletNetworkConfigurationInput, type SmartWalletConfigurationDisabled as SmartWalletConfigurationDisabled, type SmartWalletConfigurationEnabled as SmartWalletConfigurationEnabled, type SmartWalletConfigurationInputEnabled as SmartWalletConfigurationInputEnabled, type RecoveryType as RecoveryType, type ICloudClientType as ICloudClientType, type RecoveryKeyMaterialInput as RecoveryKeyMaterialInput, type RecoveryKeyMaterialResponse as RecoveryKeyMaterialResponse, type OAuthInitRecoveryInput as OAuthInitRecoveryInput, type OAuthAuthenticateRecoveryResponse as OAuthAuthenticateRecoveryResponse, type OAuthInitICloudRecoveryInput as OAuthInitICloudRecoveryInput, type OAuthCallbackICloudExpoInput as OAuthCallbackICloudExpoInput, type RecoveryConfigurationICloudInput as RecoveryConfigurationICloudInput, type RecoveryConfigurationICloudResponse as RecoveryConfigurationICloudResponse, };
207
+ export { type AlchemyPaymasterContext as AlchemyPaymasterContext, type EmbeddedWalletCreationInput as EmbeddedWalletCreationInput, type ICloudClientType as ICloudClientType, type OAuthAuthenticateRecoveryResponse as OAuthAuthenticateRecoveryResponse, type OAuthCallbackICloudExpoInput as OAuthCallbackICloudExpoInput, type OAuthInitICloudRecoveryInput as OAuthInitICloudRecoveryInput, type OAuthInitRecoveryInput as OAuthInitRecoveryInput, type RecoveryConfigurationICloudInput as RecoveryConfigurationICloudInput, type RecoveryConfigurationICloudResponse as RecoveryConfigurationICloudResponse, type RecoveryKeyMaterialInput as RecoveryKeyMaterialInput, type RecoveryKeyMaterialResponse as RecoveryKeyMaterialResponse, type RecoveryType as RecoveryType, type SmartWalletConfiguration as SmartWalletConfiguration, type SmartWalletConfigurationDisabled as SmartWalletConfigurationDisabled, type SmartWalletConfigurationEnabled as SmartWalletConfigurationEnabled, type SmartWalletConfigurationInput as SmartWalletConfigurationInput, type SmartWalletConfigurationInputEnabled as SmartWalletConfigurationInputEnabled, type SmartWalletNetworkConfiguration as SmartWalletNetworkConfiguration, type SmartWalletNetworkConfigurationInput as SmartWalletNetworkConfigurationInput, type SmartWalletType as SmartWalletType, type WalletCreationAdditionalSignerItem as WalletCreationAdditionalSignerItem, type WalletCreationInput as WalletCreationInput, };
208
208
  }
209
209
  //# sourceMappingURL=embedded-wallets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"embedded-wallets.d.ts","sourceRoot":"","sources":["../src/resources/embedded-wallets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,UAAU;AAEtB,qBAAa,eAAgB,SAAQ,WAAW;CAAG;AAEnD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,gCAAgC,GAAG,+BAA+B,CAAC;AAE1G;;GAEG;AACH,MAAM,MAAM,6BAA6B,GACrC,gCAAgC,GAChC,oCAAoC,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC;IAEjC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrC;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC,eAAe,CAAC;IAEvC;;OAEG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAE/D;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,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,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,110 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ export declare class Fiat extends APIResource {
3
+ }
4
+ /**
5
+ * Supported fiat currencies.
6
+ */
7
+ export type FiatCurrency = 'usd' | 'eur';
8
+ /**
9
+ * Supported fiat payment rails.
10
+ */
11
+ export type FiatPaymentRail = 'sepa' | 'ach_push' | 'wire';
12
+ /**
13
+ * Deposit instructions for an offramp transfer.
14
+ */
15
+ export interface OfframpDepositInstructions {
16
+ amount: string;
17
+ /**
18
+ * Supported blockchain chains for onramp and offramp.
19
+ */
20
+ chain: OnrampChain;
21
+ /**
22
+ * Supported crypto assets for onramp and offramp.
23
+ */
24
+ currency: OnrampAsset;
25
+ from_address: string;
26
+ to_address: string;
27
+ }
28
+ /**
29
+ * Response for an offramp transfer initiation.
30
+ */
31
+ export interface OfframpResponse {
32
+ id: string;
33
+ /**
34
+ * Deposit instructions for an offramp transfer.
35
+ */
36
+ deposit_instructions: OfframpDepositInstructions;
37
+ /**
38
+ * Status of an onramp or offramp transfer.
39
+ */
40
+ status: OnrampTransferStatus;
41
+ }
42
+ /**
43
+ * Supported crypto assets for onramp and offramp.
44
+ */
45
+ export type OnrampAsset = 'usdc';
46
+ /**
47
+ * Supported blockchain chains for onramp and offramp.
48
+ */
49
+ export type OnrampChain = 'ethereum' | 'base' | 'arbitrum' | 'polygon' | 'optimism';
50
+ /**
51
+ * Bank deposit instructions for an onramp transfer.
52
+ */
53
+ export interface OnrampDepositInstructions {
54
+ amount: string;
55
+ /**
56
+ * Supported fiat currencies.
57
+ */
58
+ currency: FiatCurrency;
59
+ /**
60
+ * Supported fiat payment rails.
61
+ */
62
+ payment_rail: FiatPaymentRail;
63
+ account_holder_name?: string;
64
+ bank_account_number?: string;
65
+ bank_address?: string;
66
+ bank_beneficiary_address?: string;
67
+ bank_beneficiary_name?: string;
68
+ bank_name?: string;
69
+ bank_routing_number?: string;
70
+ bic?: string;
71
+ deposit_message?: string;
72
+ iban?: string;
73
+ }
74
+ /**
75
+ * Response for an onramp KYC verification.
76
+ */
77
+ export interface OnrampKYCResponse {
78
+ /**
79
+ * Status of the KYC verification process.
80
+ */
81
+ status: OnrampKYCStatus;
82
+ user_id: string;
83
+ provider_user_id?: string;
84
+ }
85
+ /**
86
+ * Status of the KYC verification process.
87
+ */
88
+ export type OnrampKYCStatus = 'not_found' | 'active' | 'awaiting_questionnaire' | 'awaiting_ubo' | 'incomplete' | 'not_started' | 'offboarded' | 'paused' | 'rejected' | 'under_review';
89
+ /**
90
+ * Response for an onramp transfer initiation.
91
+ */
92
+ export interface OnrampResponse {
93
+ id: string;
94
+ /**
95
+ * Bank deposit instructions for an onramp transfer.
96
+ */
97
+ deposit_instructions: OnrampDepositInstructions;
98
+ /**
99
+ * Status of an onramp or offramp transfer.
100
+ */
101
+ status: OnrampTransferStatus;
102
+ }
103
+ /**
104
+ * Status of an onramp or offramp transfer.
105
+ */
106
+ export type OnrampTransferStatus = 'awaiting_funds' | 'in_review' | 'funds_received' | 'payment_submitted' | 'payment_processed' | 'canceled' | 'error' | 'undeliverable' | 'returned' | 'refunded';
107
+ export declare namespace Fiat {
108
+ export { type FiatCurrency as FiatCurrency, type FiatPaymentRail as FiatPaymentRail, type OfframpDepositInstructions as OfframpDepositInstructions, type OfframpResponse as OfframpResponse, type OnrampAsset as OnrampAsset, type OnrampChain as OnrampChain, type OnrampDepositInstructions as OnrampDepositInstructions, type OnrampKYCResponse as OnrampKYCResponse, type OnrampKYCStatus as OnrampKYCStatus, type OnrampResponse as OnrampResponse, type OnrampTransferStatus as OnrampTransferStatus, };
109
+ }
110
+ //# sourceMappingURL=fiat.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fiat.d.mts","sourceRoot":"","sources":["../src/resources/fiat.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,IAAK,SAAQ,WAAW;CAAG;AAExC;;GAEG;AACH,MAAM,MAAM,Y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,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;IAExB,OAAO,EAAE,MAAM,CAAC;IAEhB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,WAAW,GACX,QAAQ,GACR,wBAAwB,GACxB,cAAc,GACd,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,oBAAoB,EAAE,yBAAyB,CAAC;IAEhD;;OAEG;IACH,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,gBAAgB,GAChB,WAAW,GACX,gBAAgB,GAChB,mBAAmB,GACnB,mBAAmB,GACnB,UAAU,GACV,OAAO,GACP,eAAe,GACf,UAAU,GACV,UAAU,CAAC;AAEf,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -0,0 +1,110 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ export declare class Fiat extends APIResource {
3
+ }
4
+ /**
5
+ * Supported fiat currencies.
6
+ */
7
+ export type FiatCurrency = 'usd' | 'eur';
8
+ /**
9
+ * Supported fiat payment rails.
10
+ */
11
+ export type FiatPaymentRail = 'sepa' | 'ach_push' | 'wire';
12
+ /**
13
+ * Deposit instructions for an offramp transfer.
14
+ */
15
+ export interface OfframpDepositInstructions {
16
+ amount: string;
17
+ /**
18
+ * Supported blockchain chains for onramp and offramp.
19
+ */
20
+ chain: OnrampChain;
21
+ /**
22
+ * Supported crypto assets for onramp and offramp.
23
+ */
24
+ currency: OnrampAsset;
25
+ from_address: string;
26
+ to_address: string;
27
+ }
28
+ /**
29
+ * Response for an offramp transfer initiation.
30
+ */
31
+ export interface OfframpResponse {
32
+ id: string;
33
+ /**
34
+ * Deposit instructions for an offramp transfer.
35
+ */
36
+ deposit_instructions: OfframpDepositInstructions;
37
+ /**
38
+ * Status of an onramp or offramp transfer.
39
+ */
40
+ status: OnrampTransferStatus;
41
+ }
42
+ /**
43
+ * Supported crypto assets for onramp and offramp.
44
+ */
45
+ export type OnrampAsset = 'usdc';
46
+ /**
47
+ * Supported blockchain chains for onramp and offramp.
48
+ */
49
+ export type OnrampChain = 'ethereum' | 'base' | 'arbitrum' | 'polygon' | 'optimism';
50
+ /**
51
+ * Bank deposit instructions for an onramp transfer.
52
+ */
53
+ export interface OnrampDepositInstructions {
54
+ amount: string;
55
+ /**
56
+ * Supported fiat currencies.
57
+ */
58
+ currency: FiatCurrency;
59
+ /**
60
+ * Supported fiat payment rails.
61
+ */
62
+ payment_rail: FiatPaymentRail;
63
+ account_holder_name?: string;
64
+ bank_account_number?: string;
65
+ bank_address?: string;
66
+ bank_beneficiary_address?: string;
67
+ bank_beneficiary_name?: string;
68
+ bank_name?: string;
69
+ bank_routing_number?: string;
70
+ bic?: string;
71
+ deposit_message?: string;
72
+ iban?: string;
73
+ }
74
+ /**
75
+ * Response for an onramp KYC verification.
76
+ */
77
+ export interface OnrampKYCResponse {
78
+ /**
79
+ * Status of the KYC verification process.
80
+ */
81
+ status: OnrampKYCStatus;
82
+ user_id: string;
83
+ provider_user_id?: string;
84
+ }
85
+ /**
86
+ * Status of the KYC verification process.
87
+ */
88
+ export type OnrampKYCStatus = 'not_found' | 'active' | 'awaiting_questionnaire' | 'awaiting_ubo' | 'incomplete' | 'not_started' | 'offboarded' | 'paused' | 'rejected' | 'under_review';
89
+ /**
90
+ * Response for an onramp transfer initiation.
91
+ */
92
+ export interface OnrampResponse {
93
+ id: string;
94
+ /**
95
+ * Bank deposit instructions for an onramp transfer.
96
+ */
97
+ deposit_instructions: OnrampDepositInstructions;
98
+ /**
99
+ * Status of an onramp or offramp transfer.
100
+ */
101
+ status: OnrampTransferStatus;
102
+ }
103
+ /**
104
+ * Status of an onramp or offramp transfer.
105
+ */
106
+ export type OnrampTransferStatus = 'awaiting_funds' | 'in_review' | 'funds_received' | 'payment_submitted' | 'payment_processed' | 'canceled' | 'error' | 'undeliverable' | 'returned' | 'refunded';
107
+ export declare namespace Fiat {
108
+ export { type FiatCurrency as FiatCurrency, type FiatPaymentRail as FiatPaymentRail, type OfframpDepositInstructions as OfframpDepositInstructions, type OfframpResponse as OfframpResponse, type OnrampAsset as OnrampAsset, type OnrampChain as OnrampChain, type OnrampDepositInstructions as OnrampDepositInstructions, type OnrampKYCResponse as OnrampKYCResponse, type OnrampKYCStatus as OnrampKYCStatus, type OnrampResponse as OnrampResponse, type OnrampTransferStatus as OnrampTransferStatus, };
109
+ }
110
+ //# sourceMappingURL=fiat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fiat.d.ts","sourceRoot":"","sources":["../src/resources/fiat.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,IAAK,SAAQ,WAAW;CAAG;AAExC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,KAAK,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,W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d,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,oBAAoB,EAAE,yBAAyB,CAAC;IAEhD;;OAEG;IACH,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,gBAAgB,GAChB,WAAW,GACX,gBAAgB,GAChB,mBAAmB,GACnB,mBAAmB,GACnB,UAAU,GACV,OAAO,GACP,eAAe,GACf,UAAU,GACV,UAAU,CAAC;AAEf,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Fiat = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class Fiat extends resource_1.APIResource {
7
+ }
8
+ exports.Fiat = Fiat;
9
+ //# sourceMappingURL=fiat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fiat.js","sourceRoot":"","sources":["../src/resources/fiat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,MAAa,IAAK,SAAQ,sBAAW;CAAG;AAAxC,oBAAwC"}
@@ -0,0 +1,5 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ export class Fiat extends APIResource {
4
+ }
5
+ //# sourceMappingURL=fiat.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fiat.mjs","sourceRoot":"","sources":["../src/resources/fiat.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,IAAK,SAAQ,WAAW;CAAG"}