@augustusbank/typescript-sdk 0.21.0 → 0.22.1

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 (216) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/client.d.mts +12 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +12 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/account-holders.d.mts +1555 -1184
  12. package/resources/account-holders.d.mts.map +1 -1
  13. package/resources/account-holders.d.ts +1555 -1184
  14. package/resources/account-holders.d.ts.map +1 -1
  15. package/resources/account-holders.js +59 -0
  16. package/resources/account-holders.js.map +1 -1
  17. package/resources/account-holders.mjs +59 -0
  18. package/resources/account-holders.mjs.map +1 -1
  19. package/resources/account-programs.d.mts +22 -17
  20. package/resources/account-programs.d.mts.map +1 -1
  21. package/resources/account-programs.d.ts +22 -17
  22. package/resources/account-programs.d.ts.map +1 -1
  23. package/resources/account-programs.js +2 -2
  24. package/resources/account-programs.js.map +1 -1
  25. package/resources/account-programs.mjs +2 -2
  26. package/resources/account-programs.mjs.map +1 -1
  27. package/resources/accounts.d.mts +226 -48
  28. package/resources/accounts.d.mts.map +1 -1
  29. package/resources/accounts.d.ts +226 -48
  30. package/resources/accounts.d.ts.map +1 -1
  31. package/resources/accounts.js +55 -2
  32. package/resources/accounts.js.map +1 -1
  33. package/resources/accounts.mjs +55 -2
  34. package/resources/accounts.mjs.map +1 -1
  35. package/resources/api-keys.d.mts +1 -1
  36. package/resources/api-keys.d.mts.map +1 -1
  37. package/resources/api-keys.d.ts +1 -1
  38. package/resources/api-keys.d.ts.map +1 -1
  39. package/resources/api-versions.d.mts +3 -0
  40. package/resources/api-versions.d.mts.map +1 -1
  41. package/resources/api-versions.d.ts +3 -0
  42. package/resources/api-versions.d.ts.map +1 -1
  43. package/resources/conversions.d.mts +36 -81
  44. package/resources/conversions.d.mts.map +1 -1
  45. package/resources/conversions.d.ts +36 -81
  46. package/resources/conversions.d.ts.map +1 -1
  47. package/resources/conversions.js +25 -1
  48. package/resources/conversions.js.map +1 -1
  49. package/resources/conversions.mjs +25 -1
  50. package/resources/conversions.mjs.map +1 -1
  51. package/resources/counterparties.d.mts +1042 -0
  52. package/resources/counterparties.d.mts.map +1 -0
  53. package/resources/counterparties.d.ts +1042 -0
  54. package/resources/counterparties.d.ts.map +1 -0
  55. package/resources/counterparties.js +45 -0
  56. package/resources/counterparties.js.map +1 -0
  57. package/resources/counterparties.mjs +41 -0
  58. package/resources/counterparties.mjs.map +1 -0
  59. package/resources/deposits.d.mts +48 -186
  60. package/resources/deposits.d.mts.map +1 -1
  61. package/resources/deposits.d.ts +48 -186
  62. package/resources/deposits.d.ts.map +1 -1
  63. package/resources/events.d.mts +3 -3
  64. package/resources/events.d.mts.map +1 -1
  65. package/resources/events.d.ts +3 -3
  66. package/resources/events.d.ts.map +1 -1
  67. package/resources/index.d.mts +5 -3
  68. package/resources/index.d.mts.map +1 -1
  69. package/resources/index.d.ts +5 -3
  70. package/resources/index.d.ts.map +1 -1
  71. package/resources/index.js +5 -1
  72. package/resources/index.js.map +1 -1
  73. package/resources/index.mjs +2 -0
  74. package/resources/index.mjs.map +1 -1
  75. package/resources/payouts.d.mts +133 -335
  76. package/resources/payouts.d.mts.map +1 -1
  77. package/resources/payouts.d.ts +133 -335
  78. package/resources/payouts.d.ts.map +1 -1
  79. package/resources/payouts.js +25 -0
  80. package/resources/payouts.js.map +1 -1
  81. package/resources/payouts.mjs +25 -0
  82. package/resources/payouts.mjs.map +1 -1
  83. package/resources/quotes/indicative.d.mts +7 -11
  84. package/resources/quotes/indicative.d.mts.map +1 -1
  85. package/resources/quotes/indicative.d.ts +7 -11
  86. package/resources/quotes/indicative.d.ts.map +1 -1
  87. package/resources/quotes/quotes.d.mts +4 -8
  88. package/resources/quotes/quotes.d.mts.map +1 -1
  89. package/resources/quotes/quotes.d.ts +4 -8
  90. package/resources/quotes/quotes.d.ts.map +1 -1
  91. package/resources/quotes/quotes.js.map +1 -1
  92. package/resources/quotes/quotes.mjs.map +1 -1
  93. package/resources/returns.d.mts +84 -39
  94. package/resources/returns.d.mts.map +1 -1
  95. package/resources/returns.d.ts +84 -39
  96. package/resources/returns.d.ts.map +1 -1
  97. package/resources/returns.js +22 -0
  98. package/resources/returns.js.map +1 -1
  99. package/resources/returns.mjs +22 -0
  100. package/resources/returns.mjs.map +1 -1
  101. package/resources/scopes.d.mts +4 -1
  102. package/resources/scopes.d.mts.map +1 -1
  103. package/resources/scopes.d.ts +4 -1
  104. package/resources/scopes.d.ts.map +1 -1
  105. package/resources/simulations/account-programs.d.mts +215 -0
  106. package/resources/simulations/account-programs.d.mts.map +1 -0
  107. package/resources/simulations/account-programs.d.ts +215 -0
  108. package/resources/simulations/account-programs.d.ts.map +1 -0
  109. package/resources/simulations/account-programs.js +96 -0
  110. package/resources/simulations/account-programs.js.map +1 -0
  111. package/resources/simulations/account-programs.mjs +92 -0
  112. package/resources/simulations/account-programs.mjs.map +1 -0
  113. package/resources/simulations/accounts.d.mts +209 -0
  114. package/resources/simulations/accounts.d.mts.map +1 -0
  115. package/resources/simulations/accounts.d.ts +209 -0
  116. package/resources/simulations/accounts.d.ts.map +1 -0
  117. package/resources/simulations/accounts.js +90 -0
  118. package/resources/simulations/accounts.js.map +1 -0
  119. package/resources/simulations/accounts.mjs +86 -0
  120. package/resources/simulations/accounts.mjs.map +1 -0
  121. package/resources/simulations/conversions.d.mts +54 -0
  122. package/resources/simulations/conversions.d.mts.map +1 -0
  123. package/resources/simulations/conversions.d.ts +54 -0
  124. package/resources/simulations/conversions.d.ts.map +1 -0
  125. package/resources/simulations/conversions.js +39 -0
  126. package/resources/simulations/conversions.js.map +1 -0
  127. package/resources/simulations/conversions.mjs +35 -0
  128. package/resources/simulations/conversions.mjs.map +1 -0
  129. package/resources/simulations/deposits.d.mts +202 -0
  130. package/resources/simulations/deposits.d.mts.map +1 -0
  131. package/resources/simulations/deposits.d.ts +202 -0
  132. package/resources/simulations/deposits.d.ts.map +1 -0
  133. package/resources/simulations/deposits.js +25 -0
  134. package/resources/simulations/deposits.js.map +1 -0
  135. package/resources/simulations/deposits.mjs +21 -0
  136. package/resources/simulations/deposits.mjs.map +1 -0
  137. package/resources/simulations/index.d.mts +7 -0
  138. package/resources/simulations/index.d.mts.map +1 -0
  139. package/resources/simulations/index.d.ts +7 -0
  140. package/resources/simulations/index.d.ts.map +1 -0
  141. package/resources/simulations/index.js +17 -0
  142. package/resources/simulations/index.js.map +1 -0
  143. package/resources/simulations/index.mjs +8 -0
  144. package/resources/simulations/index.mjs.map +1 -0
  145. package/resources/simulations/payouts.d.mts +62 -0
  146. package/resources/simulations/payouts.d.mts.map +1 -0
  147. package/resources/simulations/payouts.d.ts +62 -0
  148. package/resources/simulations/payouts.d.ts.map +1 -0
  149. package/resources/simulations/payouts.js +39 -0
  150. package/resources/simulations/payouts.js.map +1 -0
  151. package/resources/simulations/payouts.mjs +35 -0
  152. package/resources/simulations/payouts.mjs.map +1 -0
  153. package/resources/simulations/simulations.d.mts +26 -0
  154. package/resources/simulations/simulations.d.mts.map +1 -0
  155. package/resources/simulations/simulations.d.ts +26 -0
  156. package/resources/simulations/simulations.d.ts.map +1 -0
  157. package/resources/simulations/simulations.js +33 -0
  158. package/resources/simulations/simulations.js.map +1 -0
  159. package/resources/simulations/simulations.mjs +28 -0
  160. package/resources/simulations/simulations.mjs.map +1 -0
  161. package/resources/simulations.d.mts +2 -0
  162. package/resources/simulations.d.mts.map +1 -0
  163. package/resources/simulations.d.ts +2 -0
  164. package/resources/simulations.d.ts.map +1 -0
  165. package/resources/simulations.js +6 -0
  166. package/resources/simulations.js.map +1 -0
  167. package/resources/simulations.mjs +3 -0
  168. package/resources/simulations.mjs.map +1 -0
  169. package/resources/transactions.d.mts +342 -162
  170. package/resources/transactions.d.mts.map +1 -1
  171. package/resources/transactions.d.ts +342 -162
  172. package/resources/transactions.d.ts.map +1 -1
  173. package/resources/webhook-subscriptions.d.mts +61 -11
  174. package/resources/webhook-subscriptions.d.mts.map +1 -1
  175. package/resources/webhook-subscriptions.d.ts +61 -11
  176. package/resources/webhook-subscriptions.d.ts.map +1 -1
  177. package/resources/webhook-subscriptions.js +49 -0
  178. package/resources/webhook-subscriptions.js.map +1 -1
  179. package/resources/webhook-subscriptions.mjs +49 -0
  180. package/resources/webhook-subscriptions.mjs.map +1 -1
  181. package/resources/webhooks.d.mts +976 -978
  182. package/resources/webhooks.d.mts.map +1 -1
  183. package/resources/webhooks.d.ts +976 -978
  184. package/resources/webhooks.d.ts.map +1 -1
  185. package/src/client.ts +48 -8
  186. package/src/resources/account-holders.ts +1701 -1282
  187. package/src/resources/account-programs.ts +30 -19
  188. package/src/resources/accounts.ts +265 -50
  189. package/src/resources/api-keys.ts +3 -0
  190. package/src/resources/api-versions.ts +3 -0
  191. package/src/resources/conversions.ts +36 -93
  192. package/src/resources/counterparties.ts +3127 -0
  193. package/src/resources/deposits.ts +66 -269
  194. package/src/resources/events.ts +18 -12
  195. package/src/resources/index.ts +21 -4
  196. package/src/resources/payouts.ts +204 -439
  197. package/src/resources/quotes/indicative.ts +7 -12
  198. package/src/resources/quotes/quotes.ts +4 -9
  199. package/src/resources/returns.ts +144 -40
  200. package/src/resources/scopes.ts +7 -1
  201. package/src/resources/simulations/account-programs.ts +282 -0
  202. package/src/resources/simulations/accounts.ts +265 -0
  203. package/src/resources/simulations/conversions.ts +70 -0
  204. package/src/resources/simulations/deposits.ts +522 -0
  205. package/src/resources/simulations/index.ts +33 -0
  206. package/src/resources/simulations/payouts.ts +80 -0
  207. package/src/resources/simulations/simulations.ts +92 -0
  208. package/src/resources/simulations.ts +3 -0
  209. package/src/resources/transactions.ts +954 -206
  210. package/src/resources/webhook-subscriptions.ts +102 -36
  211. package/src/resources/webhooks.ts +1283 -1153
  212. package/src/version.ts +1 -1
  213. package/version.d.mts +1 -1
  214. package/version.d.ts +1 -1
  215. package/version.js +1 -1
  216. package/version.mjs +1 -1
@@ -34,55 +34,45 @@ export interface DepositRetrieveResponse {
34
34
  id: string;
35
35
 
36
36
  /**
37
- * Amount as a string decimal (e.g. "100.50").
37
+ * ID of the account that was credited with the deposit.
38
38
  */
39
- amount: string;
39
+ account_id: string;
40
40
 
41
41
  /**
42
- * Reference visible on the bank statement, or null when not applicable.
42
+ * Amount as a string decimal (e.g. "100.50").
43
43
  */
44
- bank_statement_reference: string | null;
44
+ amount: string;
45
45
 
46
46
  /**
47
- * ISO 8601 UTC timestamp when the deposit was created.
47
+ * ID of the counterparty that sent the money, or null when not known.
48
48
  */
49
- created_at: string;
49
+ counterparty_id: string | null;
50
50
 
51
51
  /**
52
- * Supported fiat or crypto currency code for the deposit amount.
52
+ * Currency code (ISO 4217 or crypto).
53
53
  */
54
54
  currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
55
55
 
56
56
  /**
57
- * ID of the merchant account that received the deposit.
58
- */
59
- destination_account_id: string;
60
-
61
- /**
62
- * Payment rail or blockchain used for the deposit, or null when unknown.
57
+ * Payment scheme or blockchain used for the deposit, or null when unknown.
63
58
  */
64
59
  rail:
60
+ | 'sepa'
65
61
  | 'sepa_instant'
66
62
  | 'faster_payments'
67
- | 'sepa'
68
- | 'elixir'
69
- | 'express_elixir'
70
- | 'sek_account_to_account'
71
- | 'sumclearing'
72
- | 'straksclearing'
73
63
  | 'swift'
74
64
  | 'internal'
75
65
  | 'target'
76
66
  | 'ach'
77
67
  | 'fedwire'
78
- | 'btc'
79
- | 'btc_testnet4'
80
- | 'eth'
81
- | 'eth_sepolia'
82
- | 'sol'
83
- | 'sol_devnet'
84
- | 'matic'
85
- | 'matic_amoy'
68
+ | 'bitcoin'
69
+ | 'bitcoin_testnet4'
70
+ | 'ethereum'
71
+ | 'ethereum_sepolia'
72
+ | 'solana'
73
+ | 'solana_devnet'
74
+ | 'polygon'
75
+ | 'polygon_amoy'
86
76
  | null;
87
77
 
88
78
  /**
@@ -91,21 +81,24 @@ export interface DepositRetrieveResponse {
91
81
  returns: Array<string>;
92
82
 
93
83
  /**
94
- * Counterparty bank account or crypto wallet that sent the funds.
84
+ * ISO 8601 UTC timestamp when the deposit was settled.
95
85
  */
96
- source:
97
- | DepositRetrieveResponse.Iban
98
- | DepositRetrieveResponse.UkSortCode
99
- | DepositRetrieveResponse.Aba
100
- | DepositRetrieveResponse.Wallet;
86
+ settled_at: string;
101
87
 
102
88
  /**
103
89
  * Current status of the deposit.
104
90
  */
105
- status: 'received' | 'in_return' | 'returned' | 'return_failed' | 'return_returned';
91
+ status: 'settled';
92
+
93
+ /**
94
+ * Reference used to track the payment across the payment network, such as the UETR
95
+ * for SWIFT payments.
96
+ */
97
+ tracking_reference: string | null;
106
98
 
107
99
  /**
108
- * Transaction hash for crypto deposits, or null when not known.
100
+ * Transaction hash for crypto deposits, or null when not known. Only blockchain
101
+ * rails support this field.
109
102
  */
110
103
  tx_hash: string | null;
111
104
 
@@ -115,102 +108,10 @@ export interface DepositRetrieveResponse {
115
108
  type: 'deposit';
116
109
 
117
110
  /**
118
- * ISO 8601 UTC timestamp when the deposit was last updated.
111
+ * Unstructured remittance information attached to the transfer. Not all rails
112
+ * support this field.
119
113
  */
120
- updated_at: string;
121
- }
122
-
123
- export namespace DepositRetrieveResponse {
124
- export interface Iban {
125
- /**
126
- * Name of the account holder.
127
- */
128
- account_holder_name: string;
129
-
130
- /**
131
- * Bank Identifier Code, or null if not provided.
132
- */
133
- bic: string | null;
134
-
135
- /**
136
- * International Bank Account Number.
137
- */
138
- iban: string;
139
-
140
- /**
141
- * Discriminator for IBAN source.
142
- */
143
- type: 'iban';
144
- }
145
-
146
- export interface UkSortCode {
147
- /**
148
- * Name of the account holder.
149
- */
150
- account_holder_name: string;
151
-
152
- /**
153
- * UK account number (8 digits).
154
- */
155
- account_number: string;
156
-
157
- /**
158
- * UK sort code (6 digits).
159
- */
160
- sort_code: string;
161
-
162
- /**
163
- * Discriminator for UK sort code source.
164
- */
165
- type: 'sort_code';
166
- }
167
-
168
- export interface Aba {
169
- /**
170
- * Name of the account holder.
171
- */
172
- account_holder_name: string;
173
-
174
- /**
175
- * Bank account number.
176
- */
177
- account_number: string;
178
-
179
- /**
180
- * ABA routing number (9 digits).
181
- */
182
- routing_number: string;
183
-
184
- /**
185
- * Discriminator for ABA wire source.
186
- */
187
- type: 'aba';
188
- }
189
-
190
- export interface Wallet {
191
- /**
192
- * Wallet address on the specified blockchain.
193
- */
194
- address: string;
195
-
196
- /**
197
- * Blockchain network for the crypto wallet.
198
- */
199
- blockchain:
200
- | 'bitcoin'
201
- | 'ethereum'
202
- | 'solana'
203
- | 'polygon'
204
- | 'bitcoin_testnet4'
205
- | 'ethereum_sepolia'
206
- | 'solana_devnet'
207
- | 'polygon_amoy';
208
-
209
- /**
210
- * Discriminator for crypto wallet source.
211
- */
212
- type: 'crypto_wallet';
213
- }
114
+ unstructured_remittance_information: string | null;
214
115
  }
215
116
 
216
117
  export interface DepositListResponse {
@@ -220,55 +121,45 @@ export interface DepositListResponse {
220
121
  id: string;
221
122
 
222
123
  /**
223
- * Amount as a string decimal (e.g. "100.50").
124
+ * ID of the account that was credited with the deposit.
224
125
  */
225
- amount: string;
126
+ account_id: string;
226
127
 
227
128
  /**
228
- * Reference visible on the bank statement, or null when not applicable.
129
+ * Amount as a string decimal (e.g. "100.50").
229
130
  */
230
- bank_statement_reference: string | null;
131
+ amount: string;
231
132
 
232
133
  /**
233
- * ISO 8601 UTC timestamp when the deposit was created.
134
+ * ID of the counterparty that sent the money, or null when not known.
234
135
  */
235
- created_at: string;
136
+ counterparty_id: string | null;
236
137
 
237
138
  /**
238
- * Supported fiat or crypto currency code for the deposit amount.
139
+ * Currency code (ISO 4217 or crypto).
239
140
  */
240
141
  currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
241
142
 
242
143
  /**
243
- * ID of the merchant account that received the deposit.
244
- */
245
- destination_account_id: string;
246
-
247
- /**
248
- * Payment rail or blockchain used for the deposit, or null when unknown.
144
+ * Payment scheme or blockchain used for the deposit, or null when unknown.
249
145
  */
250
146
  rail:
147
+ | 'sepa'
251
148
  | 'sepa_instant'
252
149
  | 'faster_payments'
253
- | 'sepa'
254
- | 'elixir'
255
- | 'express_elixir'
256
- | 'sek_account_to_account'
257
- | 'sumclearing'
258
- | 'straksclearing'
259
150
  | 'swift'
260
151
  | 'internal'
261
152
  | 'target'
262
153
  | 'ach'
263
154
  | 'fedwire'
264
- | 'btc'
265
- | 'btc_testnet4'
266
- | 'eth'
267
- | 'eth_sepolia'
268
- | 'sol'
269
- | 'sol_devnet'
270
- | 'matic'
271
- | 'matic_amoy'
155
+ | 'bitcoin'
156
+ | 'bitcoin_testnet4'
157
+ | 'ethereum'
158
+ | 'ethereum_sepolia'
159
+ | 'solana'
160
+ | 'solana_devnet'
161
+ | 'polygon'
162
+ | 'polygon_amoy'
272
163
  | null;
273
164
 
274
165
  /**
@@ -277,21 +168,24 @@ export interface DepositListResponse {
277
168
  returns: Array<string>;
278
169
 
279
170
  /**
280
- * Counterparty bank account or crypto wallet that sent the funds.
171
+ * ISO 8601 UTC timestamp when the deposit was settled.
281
172
  */
282
- source:
283
- | DepositListResponse.Iban
284
- | DepositListResponse.UkSortCode
285
- | DepositListResponse.Aba
286
- | DepositListResponse.Wallet;
173
+ settled_at: string;
287
174
 
288
175
  /**
289
176
  * Current status of the deposit.
290
177
  */
291
- status: 'received' | 'in_return' | 'returned' | 'return_failed' | 'return_returned';
178
+ status: 'settled';
179
+
180
+ /**
181
+ * Reference used to track the payment across the payment network, such as the UETR
182
+ * for SWIFT payments.
183
+ */
184
+ tracking_reference: string | null;
292
185
 
293
186
  /**
294
- * Transaction hash for crypto deposits, or null when not known.
187
+ * Transaction hash for crypto deposits, or null when not known. Only blockchain
188
+ * rails support this field.
295
189
  */
296
190
  tx_hash: string | null;
297
191
 
@@ -301,123 +195,26 @@ export interface DepositListResponse {
301
195
  type: 'deposit';
302
196
 
303
197
  /**
304
- * ISO 8601 UTC timestamp when the deposit was last updated.
198
+ * Unstructured remittance information attached to the transfer. Not all rails
199
+ * support this field.
305
200
  */
306
- updated_at: string;
307
- }
308
-
309
- export namespace DepositListResponse {
310
- export interface Iban {
311
- /**
312
- * Name of the account holder.
313
- */
314
- account_holder_name: string;
315
-
316
- /**
317
- * Bank Identifier Code, or null if not provided.
318
- */
319
- bic: string | null;
320
-
321
- /**
322
- * International Bank Account Number.
323
- */
324
- iban: string;
325
-
326
- /**
327
- * Discriminator for IBAN source.
328
- */
329
- type: 'iban';
330
- }
331
-
332
- export interface UkSortCode {
333
- /**
334
- * Name of the account holder.
335
- */
336
- account_holder_name: string;
337
-
338
- /**
339
- * UK account number (8 digits).
340
- */
341
- account_number: string;
342
-
343
- /**
344
- * UK sort code (6 digits).
345
- */
346
- sort_code: string;
347
-
348
- /**
349
- * Discriminator for UK sort code source.
350
- */
351
- type: 'sort_code';
352
- }
353
-
354
- export interface Aba {
355
- /**
356
- * Name of the account holder.
357
- */
358
- account_holder_name: string;
359
-
360
- /**
361
- * Bank account number.
362
- */
363
- account_number: string;
364
-
365
- /**
366
- * ABA routing number (9 digits).
367
- */
368
- routing_number: string;
369
-
370
- /**
371
- * Discriminator for ABA wire source.
372
- */
373
- type: 'aba';
374
- }
375
-
376
- export interface Wallet {
377
- /**
378
- * Wallet address on the specified blockchain.
379
- */
380
- address: string;
381
-
382
- /**
383
- * Blockchain network for the crypto wallet.
384
- */
385
- blockchain:
386
- | 'bitcoin'
387
- | 'ethereum'
388
- | 'solana'
389
- | 'polygon'
390
- | 'bitcoin_testnet4'
391
- | 'ethereum_sepolia'
392
- | 'solana_devnet'
393
- | 'polygon_amoy';
394
-
395
- /**
396
- * Discriminator for crypto wallet source.
397
- */
398
- type: 'crypto_wallet';
399
- }
201
+ unstructured_remittance_information: string | null;
400
202
  }
401
203
 
402
204
  export interface DepositListParams extends CursorPageParams {
403
- created_at?: DepositListParams.CreatedAt;
404
-
405
- /**
406
- * Filter by deposit status.
407
- */
408
- status?: 'received' | 'in_return' | 'returned' | 'return_failed' | 'return_returned';
205
+ settled_at?: DepositListParams.SettledAt;
409
206
  }
410
207
 
411
208
  export namespace DepositListParams {
412
- export interface CreatedAt {
209
+ export interface SettledAt {
413
210
  /**
414
- * Include deposits whose created_at is greater than or equal to this ISO 8601
211
+ * Include deposits whose settled_at is greater than or equal to this ISO 8601
415
212
  * timestamp.
416
213
  */
417
214
  gte?: string;
418
215
 
419
216
  /**
420
- * Include deposits whose created_at is less than or equal to this ISO 8601
217
+ * Include deposits whose settled_at is less than or equal to this ISO 8601
421
218
  * timestamp.
422
219
  */
423
220
  lte?: string;
@@ -55,15 +55,17 @@ export interface EventRetrieveResponse {
55
55
  * Event type.
56
56
  */
57
57
  event_type:
58
- | 'payout.created'
59
58
  | 'payout.initiated'
60
- | 'payout.paid'
59
+ | 'payout.submitted'
60
+ | 'payout.sent'
61
61
  | 'payout.failed'
62
+ | 'payout.returned'
62
63
  | 'return.initiated'
63
- | 'return.paid'
64
+ | 'return.submitted'
65
+ | 'return.sent'
64
66
  | 'return.failed'
65
67
  | 'return.returned'
66
- | 'deposit.received'
68
+ | 'deposit.settled'
67
69
  | 'conversion.created'
68
70
  | 'conversion.completed'
69
71
  | 'conversion.failed'
@@ -104,15 +106,17 @@ export interface EventListResponse {
104
106
  * Event type.
105
107
  */
106
108
  event_type:
107
- | 'payout.created'
108
109
  | 'payout.initiated'
109
- | 'payout.paid'
110
+ | 'payout.submitted'
111
+ | 'payout.sent'
110
112
  | 'payout.failed'
113
+ | 'payout.returned'
111
114
  | 'return.initiated'
112
- | 'return.paid'
115
+ | 'return.submitted'
116
+ | 'return.sent'
113
117
  | 'return.failed'
114
118
  | 'return.returned'
115
- | 'deposit.received'
119
+ | 'deposit.settled'
116
120
  | 'conversion.created'
117
121
  | 'conversion.completed'
118
122
  | 'conversion.failed'
@@ -133,15 +137,17 @@ export interface EventListParams extends CursorPageParams {
133
137
  * Filter by event type.
134
138
  */
135
139
  event_type?:
136
- | 'payout.created'
137
140
  | 'payout.initiated'
138
- | 'payout.paid'
141
+ | 'payout.submitted'
142
+ | 'payout.sent'
139
143
  | 'payout.failed'
144
+ | 'payout.returned'
140
145
  | 'return.initiated'
141
- | 'return.paid'
146
+ | 'return.submitted'
147
+ | 'return.sent'
142
148
  | 'return.failed'
143
149
  | 'return.returned'
144
- | 'deposit.received'
150
+ | 'deposit.settled'
145
151
  | 'conversion.created'
146
152
  | 'conversion.completed'
147
153
  | 'conversion.failed'
@@ -19,6 +19,7 @@ export {
19
19
  type AccountProgramListResponse,
20
20
  type AccountProgramRetrieveBalanceResponse,
21
21
  type AccountProgramListParams,
22
+ type AccountProgramRetrieveBalanceParams,
22
23
  type AccountProgramListResponsesCursorPage,
23
24
  } from './account-programs';
24
25
  export {
@@ -33,6 +34,7 @@ export {
33
34
  type AccountCreateParams,
34
35
  type AccountListParams,
35
36
  type AccountCloseParams,
37
+ type AccountRetrieveBalanceParams,
36
38
  type AccountListResponsesCursorPage,
37
39
  } from './accounts';
38
40
  export {
@@ -44,6 +46,18 @@ export {
44
46
  type ConversionListParams,
45
47
  type ConversionListResponsesCursorPage,
46
48
  } from './conversions';
49
+ export {
50
+ Counterparties,
51
+ type CounterpartyCreateResponse,
52
+ type CounterpartyRetrieveResponse,
53
+ type CounterpartyUpdateResponse,
54
+ type CounterpartyListResponse,
55
+ type CounterpartyBlockResponse,
56
+ type CounterpartyCreateParams,
57
+ type CounterpartyUpdateParams,
58
+ type CounterpartyListParams,
59
+ type CounterpartyListResponsesCursorPage,
60
+ } from './counterparties';
47
61
  export {
48
62
  Deposits,
49
63
  type DepositRetrieveResponse,
@@ -78,6 +92,7 @@ export {
78
92
  type ReturnListResponsesCursorPage,
79
93
  } from './returns';
80
94
  export { Scopes, type ScopeListResponse } from './scopes';
95
+ export { Simulations } from './simulations/simulations';
81
96
  export {
82
97
  Transactions,
83
98
  type TransactionRetrieveResponse,
@@ -108,15 +123,17 @@ export {
108
123
  } from './webhook-subscriptions';
109
124
  export {
110
125
  Webhooks,
111
- type PayoutCreatedWebhookEvent,
112
126
  type PayoutInitiatedWebhookEvent,
113
- type PayoutPaidWebhookEvent,
127
+ type PayoutSubmittedWebhookEvent,
128
+ type PayoutSentWebhookEvent,
114
129
  type PayoutFailedWebhookEvent,
130
+ type PayoutReturnedWebhookEvent,
115
131
  type ReturnInitiatedWebhookEvent,
116
- type ReturnPaidWebhookEvent,
132
+ type ReturnSubmittedWebhookEvent,
133
+ type ReturnSentWebhookEvent,
117
134
  type ReturnFailedWebhookEvent,
118
135
  type ReturnReturnedWebhookEvent,
119
- type DepositReceivedWebhookEvent,
136
+ type DepositSettledWebhookEvent,
120
137
  type ConversionCreatedWebhookEvent,
121
138
  type ConversionCompletedWebhookEvent,
122
139
  type ConversionFailedWebhookEvent,