@augustusbank/typescript-sdk 0.23.0 → 0.25.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.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-holders.d.mts +40 -0
- package/resources/account-holders.d.mts.map +1 -1
- package/resources/account-holders.d.ts +40 -0
- package/resources/account-holders.d.ts.map +1 -1
- package/resources/accounts.d.mts +58 -3
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +58 -3
- package/resources/accounts.d.ts.map +1 -1
- package/resources/api-versions.d.mts +2 -0
- package/resources/api-versions.d.mts.map +1 -1
- package/resources/api-versions.d.ts +2 -0
- package/resources/api-versions.d.ts.map +1 -1
- package/resources/conversions.d.mts +12 -4
- package/resources/conversions.d.mts.map +1 -1
- package/resources/conversions.d.ts +12 -4
- package/resources/conversions.d.ts.map +1 -1
- package/resources/counterparties.d.mts +88 -0
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +88 -0
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/counterparties.js +40 -0
- package/resources/counterparties.js.map +1 -1
- package/resources/counterparties.mjs +40 -0
- package/resources/counterparties.mjs.map +1 -1
- package/resources/events.d.mts +3 -3
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +3 -3
- package/resources/events.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/payouts.d.mts +12 -4
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +12 -4
- package/resources/payouts.d.ts.map +1 -1
- package/resources/returns.d.mts +32 -0
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +32 -0
- package/resources/returns.d.ts.map +1 -1
- package/resources/scopes.d.mts +2 -0
- package/resources/scopes.d.mts.map +1 -1
- package/resources/scopes.d.ts +2 -0
- package/resources/scopes.d.ts.map +1 -1
- package/resources/simulations/account-programs.d.mts +1 -1
- package/resources/simulations/account-programs.d.ts +1 -1
- package/resources/simulations/account-programs.js +1 -1
- package/resources/simulations/account-programs.mjs +1 -1
- package/resources/simulations/accounts.d.mts +1 -1
- package/resources/simulations/accounts.d.ts +1 -1
- package/resources/simulations/accounts.js +1 -1
- package/resources/simulations/accounts.mjs +1 -1
- package/resources/simulations/counterparties.d.mts +32 -0
- package/resources/simulations/counterparties.d.mts.map +1 -0
- package/resources/simulations/counterparties.d.ts +32 -0
- package/resources/simulations/counterparties.d.ts.map +1 -0
- package/resources/simulations/counterparties.js +25 -0
- package/resources/simulations/counterparties.js.map +1 -0
- package/resources/simulations/counterparties.mjs +21 -0
- package/resources/simulations/counterparties.mjs.map +1 -0
- package/resources/simulations/deposits.d.mts +1 -1
- package/resources/simulations/deposits.d.ts +1 -1
- package/resources/simulations/deposits.js +1 -1
- package/resources/simulations/deposits.mjs +1 -1
- package/resources/simulations/index.d.mts +1 -0
- package/resources/simulations/index.d.mts.map +1 -1
- package/resources/simulations/index.d.ts +1 -0
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +3 -1
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +1 -0
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/simulations.d.mts +4 -0
- package/resources/simulations/simulations.d.mts.map +1 -1
- package/resources/simulations/simulations.d.ts +4 -0
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +4 -0
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +4 -0
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/webhook-subscriptions.d.mts +56 -8
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +56 -8
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhooks.d.mts +1258 -10
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +1258 -10
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +12 -0
- package/src/resources/account-holders.ts +35 -0
- package/src/resources/accounts.ts +51 -3
- package/src/resources/api-versions.ts +4 -0
- package/src/resources/conversions.ts +12 -4
- package/src/resources/counterparties.ts +82 -0
- package/src/resources/events.ts +18 -0
- package/src/resources/index.ts +6 -0
- package/src/resources/payouts.ts +12 -4
- package/src/resources/returns.ts +28 -0
- package/src/resources/scopes.ts +4 -0
- package/src/resources/simulations/account-programs.ts +1 -1
- package/src/resources/simulations/accounts.ts +1 -1
- package/src/resources/simulations/counterparties.ts +40 -0
- package/src/resources/simulations/deposits.ts +1 -1
- package/src/resources/simulations/index.ts +1 -0
- package/src/resources/simulations/simulations.ts +6 -0
- package/src/resources/webhook-subscriptions.ts +90 -0
- package/src/resources/webhooks.ts +3073 -8
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -149,8 +149,21 @@ export interface WebhookSubscriptionCreateResponse {
|
|
|
149
149
|
| 'conversion.failed'
|
|
150
150
|
| 'account_holder.active'
|
|
151
151
|
| 'account_holder.closed'
|
|
152
|
+
| 'counterparty.created'
|
|
153
|
+
| 'counterparty.verified'
|
|
154
|
+
| 'counterparty.rejected'
|
|
155
|
+
| 'counterparty.blocked'
|
|
156
|
+
| 'counterparty.unblocked'
|
|
157
|
+
| 'counterparty.updated'
|
|
152
158
|
>;
|
|
153
159
|
|
|
160
|
+
/**
|
|
161
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
162
|
+
* information, such as correlating this resource with an object in your own
|
|
163
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
164
|
+
*/
|
|
165
|
+
metadata: { [key: string]: string };
|
|
166
|
+
|
|
154
167
|
/**
|
|
155
168
|
* Resource type discriminator.
|
|
156
169
|
*/
|
|
@@ -198,8 +211,21 @@ export interface WebhookSubscriptionRetrieveResponse {
|
|
|
198
211
|
| 'conversion.failed'
|
|
199
212
|
| 'account_holder.active'
|
|
200
213
|
| 'account_holder.closed'
|
|
214
|
+
| 'counterparty.created'
|
|
215
|
+
| 'counterparty.verified'
|
|
216
|
+
| 'counterparty.rejected'
|
|
217
|
+
| 'counterparty.blocked'
|
|
218
|
+
| 'counterparty.unblocked'
|
|
219
|
+
| 'counterparty.updated'
|
|
201
220
|
>;
|
|
202
221
|
|
|
222
|
+
/**
|
|
223
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
224
|
+
* information, such as correlating this resource with an object in your own
|
|
225
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
226
|
+
*/
|
|
227
|
+
metadata: { [key: string]: string };
|
|
228
|
+
|
|
203
229
|
/**
|
|
204
230
|
* Resource type discriminator.
|
|
205
231
|
*/
|
|
@@ -247,8 +273,21 @@ export interface WebhookSubscriptionUpdateResponse {
|
|
|
247
273
|
| 'conversion.failed'
|
|
248
274
|
| 'account_holder.active'
|
|
249
275
|
| 'account_holder.closed'
|
|
276
|
+
| 'counterparty.created'
|
|
277
|
+
| 'counterparty.verified'
|
|
278
|
+
| 'counterparty.rejected'
|
|
279
|
+
| 'counterparty.blocked'
|
|
280
|
+
| 'counterparty.unblocked'
|
|
281
|
+
| 'counterparty.updated'
|
|
250
282
|
>;
|
|
251
283
|
|
|
284
|
+
/**
|
|
285
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
286
|
+
* information, such as correlating this resource with an object in your own
|
|
287
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
288
|
+
*/
|
|
289
|
+
metadata: { [key: string]: string };
|
|
290
|
+
|
|
252
291
|
/**
|
|
253
292
|
* Resource type discriminator.
|
|
254
293
|
*/
|
|
@@ -296,8 +335,21 @@ export interface WebhookSubscriptionListResponse {
|
|
|
296
335
|
| 'conversion.failed'
|
|
297
336
|
| 'account_holder.active'
|
|
298
337
|
| 'account_holder.closed'
|
|
338
|
+
| 'counterparty.created'
|
|
339
|
+
| 'counterparty.verified'
|
|
340
|
+
| 'counterparty.rejected'
|
|
341
|
+
| 'counterparty.blocked'
|
|
342
|
+
| 'counterparty.unblocked'
|
|
343
|
+
| 'counterparty.updated'
|
|
299
344
|
>;
|
|
300
345
|
|
|
346
|
+
/**
|
|
347
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
348
|
+
* information, such as correlating this resource with an object in your own
|
|
349
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
350
|
+
*/
|
|
351
|
+
metadata: { [key: string]: string };
|
|
352
|
+
|
|
301
353
|
/**
|
|
302
354
|
* Resource type discriminator.
|
|
303
355
|
*/
|
|
@@ -345,8 +397,21 @@ export interface WebhookSubscriptionDeleteResponse {
|
|
|
345
397
|
| 'conversion.failed'
|
|
346
398
|
| 'account_holder.active'
|
|
347
399
|
| 'account_holder.closed'
|
|
400
|
+
| 'counterparty.created'
|
|
401
|
+
| 'counterparty.verified'
|
|
402
|
+
| 'counterparty.rejected'
|
|
403
|
+
| 'counterparty.blocked'
|
|
404
|
+
| 'counterparty.unblocked'
|
|
405
|
+
| 'counterparty.updated'
|
|
348
406
|
>;
|
|
349
407
|
|
|
408
|
+
/**
|
|
409
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
410
|
+
* information, such as correlating this resource with an object in your own
|
|
411
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
412
|
+
*/
|
|
413
|
+
metadata: { [key: string]: string };
|
|
414
|
+
|
|
350
415
|
/**
|
|
351
416
|
* Resource type discriminator.
|
|
352
417
|
*/
|
|
@@ -406,6 +471,12 @@ export interface WebhookSubscriptionSendTestEventResponse {
|
|
|
406
471
|
| 'conversion.failed'
|
|
407
472
|
| 'account_holder.active'
|
|
408
473
|
| 'account_holder.closed'
|
|
474
|
+
| 'counterparty.created'
|
|
475
|
+
| 'counterparty.verified'
|
|
476
|
+
| 'counterparty.rejected'
|
|
477
|
+
| 'counterparty.blocked'
|
|
478
|
+
| 'counterparty.unblocked'
|
|
479
|
+
| 'counterparty.updated'
|
|
409
480
|
| 'ping.test';
|
|
410
481
|
|
|
411
482
|
/**
|
|
@@ -435,6 +506,12 @@ export interface WebhookSubscriptionCreateParams {
|
|
|
435
506
|
| 'conversion.failed'
|
|
436
507
|
| 'account_holder.active'
|
|
437
508
|
| 'account_holder.closed'
|
|
509
|
+
| 'counterparty.created'
|
|
510
|
+
| 'counterparty.verified'
|
|
511
|
+
| 'counterparty.rejected'
|
|
512
|
+
| 'counterparty.blocked'
|
|
513
|
+
| 'counterparty.unblocked'
|
|
514
|
+
| 'counterparty.updated'
|
|
438
515
|
| '*'
|
|
439
516
|
>;
|
|
440
517
|
|
|
@@ -442,6 +519,13 @@ export interface WebhookSubscriptionCreateParams {
|
|
|
442
519
|
* The HTTPS URL where webhook events will be delivered.
|
|
443
520
|
*/
|
|
444
521
|
url: string;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Set of up to 50 key-value string pairs you can attach to store structured
|
|
525
|
+
* information, such as correlating this resource with an object in your own
|
|
526
|
+
* system. Keys may be up to 40 characters and values up to 500 characters.
|
|
527
|
+
*/
|
|
528
|
+
metadata?: { [key: string]: string } | null;
|
|
445
529
|
}
|
|
446
530
|
|
|
447
531
|
export interface WebhookSubscriptionUpdateParams {
|
|
@@ -466,6 +550,12 @@ export interface WebhookSubscriptionUpdateParams {
|
|
|
466
550
|
| 'conversion.failed'
|
|
467
551
|
| 'account_holder.active'
|
|
468
552
|
| 'account_holder.closed'
|
|
553
|
+
| 'counterparty.created'
|
|
554
|
+
| 'counterparty.verified'
|
|
555
|
+
| 'counterparty.rejected'
|
|
556
|
+
| 'counterparty.blocked'
|
|
557
|
+
| 'counterparty.unblocked'
|
|
558
|
+
| 'counterparty.updated'
|
|
469
559
|
| '*'
|
|
470
560
|
> | null;
|
|
471
561
|
|