@augustusbank/typescript-sdk 0.24.0 → 0.26.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 (69) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/account-programs.d.mts +2 -2
  10. package/resources/account-programs.d.ts +2 -2
  11. package/resources/account-programs.js +2 -2
  12. package/resources/account-programs.mjs +2 -2
  13. package/resources/accounts.d.mts +2 -2
  14. package/resources/accounts.d.ts +2 -2
  15. package/resources/api-versions.d.mts +2 -0
  16. package/resources/api-versions.d.mts.map +1 -1
  17. package/resources/api-versions.d.ts +2 -0
  18. package/resources/api-versions.d.ts.map +1 -1
  19. package/resources/events.d.mts +3 -3
  20. package/resources/events.d.mts.map +1 -1
  21. package/resources/events.d.ts +3 -3
  22. package/resources/events.d.ts.map +1 -1
  23. package/resources/index.d.mts +1 -1
  24. package/resources/index.d.mts.map +1 -1
  25. package/resources/index.d.ts +1 -1
  26. package/resources/index.d.ts.map +1 -1
  27. package/resources/index.js.map +1 -1
  28. package/resources/index.mjs.map +1 -1
  29. package/resources/scopes.d.mts +2 -0
  30. package/resources/scopes.d.mts.map +1 -1
  31. package/resources/scopes.d.ts +2 -0
  32. package/resources/scopes.d.ts.map +1 -1
  33. package/resources/simulations/account-programs.d.mts +4 -4
  34. package/resources/simulations/account-programs.d.ts +4 -4
  35. package/resources/simulations/account-programs.js +4 -4
  36. package/resources/simulations/account-programs.mjs +4 -4
  37. package/resources/simulations/accounts.d.mts +1 -1
  38. package/resources/simulations/accounts.d.ts +1 -1
  39. package/resources/simulations/accounts.js +1 -1
  40. package/resources/simulations/accounts.mjs +1 -1
  41. package/resources/simulations/deposits.d.mts +1 -1
  42. package/resources/simulations/deposits.d.ts +1 -1
  43. package/resources/simulations/deposits.js +1 -1
  44. package/resources/simulations/deposits.mjs +1 -1
  45. package/resources/webhook-subscriptions.d.mts +8 -8
  46. package/resources/webhook-subscriptions.d.mts.map +1 -1
  47. package/resources/webhook-subscriptions.d.ts +8 -8
  48. package/resources/webhook-subscriptions.d.ts.map +1 -1
  49. package/resources/webhooks.d.mts +1178 -2
  50. package/resources/webhooks.d.mts.map +1 -1
  51. package/resources/webhooks.d.ts +1178 -2
  52. package/resources/webhooks.d.ts.map +1 -1
  53. package/src/client.ts +12 -0
  54. package/src/resources/account-programs.ts +2 -2
  55. package/src/resources/accounts.ts +2 -2
  56. package/src/resources/api-versions.ts +4 -0
  57. package/src/resources/events.ts +18 -0
  58. package/src/resources/index.ts +6 -0
  59. package/src/resources/scopes.ts +4 -0
  60. package/src/resources/simulations/account-programs.ts +4 -4
  61. package/src/resources/simulations/accounts.ts +1 -1
  62. package/src/resources/simulations/deposits.ts +1 -1
  63. package/src/resources/webhook-subscriptions.ts +48 -0
  64. package/src/resources/webhooks.ts +3000 -0
  65. package/src/version.ts +1 -1
  66. package/version.d.mts +1 -1
  67. package/version.d.ts +1 -1
  68. package/version.js +1 -1
  69. package/version.mjs +1 -1
@@ -71,6 +71,12 @@ export interface EventRetrieveResponse {
71
71
  | 'conversion.failed'
72
72
  | 'account_holder.active'
73
73
  | 'account_holder.closed'
74
+ | 'counterparty.created'
75
+ | 'counterparty.verified'
76
+ | 'counterparty.rejected'
77
+ | 'counterparty.blocked'
78
+ | 'counterparty.unblocked'
79
+ | 'counterparty.updated'
74
80
  | 'ping.test';
75
81
 
76
82
  /**
@@ -122,6 +128,12 @@ export interface EventListResponse {
122
128
  | 'conversion.failed'
123
129
  | 'account_holder.active'
124
130
  | 'account_holder.closed'
131
+ | 'counterparty.created'
132
+ | 'counterparty.verified'
133
+ | 'counterparty.rejected'
134
+ | 'counterparty.blocked'
135
+ | 'counterparty.unblocked'
136
+ | 'counterparty.updated'
125
137
  | 'ping.test';
126
138
 
127
139
  /**
@@ -153,6 +165,12 @@ export interface EventListParams extends CursorPageParams {
153
165
  | 'conversion.failed'
154
166
  | 'account_holder.active'
155
167
  | 'account_holder.closed'
168
+ | 'counterparty.created'
169
+ | 'counterparty.verified'
170
+ | 'counterparty.rejected'
171
+ | 'counterparty.blocked'
172
+ | 'counterparty.unblocked'
173
+ | 'counterparty.updated'
156
174
  | 'ping.test';
157
175
  }
158
176
 
@@ -139,6 +139,12 @@ export {
139
139
  type ConversionFailedWebhookEvent,
140
140
  type AccountHolderActiveWebhookEvent,
141
141
  type AccountHolderClosedWebhookEvent,
142
+ type CounterpartyCreatedWebhookEvent,
143
+ type CounterpartyVerifiedWebhookEvent,
144
+ type CounterpartyRejectedWebhookEvent,
145
+ type CounterpartyBlockedWebhookEvent,
146
+ type CounterpartyUnblockedWebhookEvent,
147
+ type CounterpartyUpdatedWebhookEvent,
142
148
  type PingTestWebhookEvent,
143
149
  type UnwrapWebhookEvent,
144
150
  } from './webhooks';
@@ -20,7 +20,11 @@ export interface ScopeListResponse {
20
20
 
21
21
  has_more: boolean;
22
22
 
23
+ has_previous: boolean;
24
+
23
25
  next_cursor: string | null;
26
+
27
+ previous_cursor: string | null;
24
28
  }
25
29
 
26
30
  export namespace ScopeListResponse {
@@ -14,7 +14,7 @@ export class AccountPrograms extends APIResource {
14
14
  * ```ts
15
15
  * const accountProgram =
16
16
  * await client.simulations.accountPrograms.create({
17
- * label: 'x',
17
+ * label: 'Primary FBO program',
18
18
  * type: 'fbo_program',
19
19
  * });
20
20
  * ```
@@ -78,7 +78,7 @@ export class AccountPrograms extends APIResource {
78
78
  }
79
79
 
80
80
  /**
81
- * Freezes an existing account program and its virtual accounts. This endpoint is
81
+ * Freezes an existing account program and the accounts under it. This endpoint is
82
82
  * unavailable in live production.
83
83
  *
84
84
  * @example
@@ -94,8 +94,8 @@ export class AccountPrograms extends APIResource {
94
94
  }
95
95
 
96
96
  /**
97
- * Unfreezes an existing account program and its virtual accounts. This endpoint is
98
- * unavailable in live production.
97
+ * Unfreezes an existing account program and the accounts under it. This endpoint
98
+ * is unavailable in live production.
99
99
  *
100
100
  * @example
101
101
  * ```ts
@@ -13,7 +13,7 @@ export class Accounts extends APIResource {
13
13
  * @example
14
14
  * ```ts
15
15
  * const account = await client.simulations.accounts.create({
16
- * label: 'x',
16
+ * label: 'Operating EUR account',
17
17
  * type: 'operating',
18
18
  * });
19
19
  * ```
@@ -13,7 +13,7 @@ export class Deposits extends APIResource {
13
13
  * ```ts
14
14
  * const deposit = await client.simulations.deposits.create({
15
15
  * account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
16
- * amount: '869.225610155',
16
+ * amount: '100.50',
17
17
  * currency: 'EUR',
18
18
  * });
19
19
  * ```
@@ -149,6 +149,12 @@ 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
 
154
160
  /**
@@ -205,6 +211,12 @@ export interface WebhookSubscriptionRetrieveResponse {
205
211
  | 'conversion.failed'
206
212
  | 'account_holder.active'
207
213
  | 'account_holder.closed'
214
+ | 'counterparty.created'
215
+ | 'counterparty.verified'
216
+ | 'counterparty.rejected'
217
+ | 'counterparty.blocked'
218
+ | 'counterparty.unblocked'
219
+ | 'counterparty.updated'
208
220
  >;
209
221
 
210
222
  /**
@@ -261,6 +273,12 @@ export interface WebhookSubscriptionUpdateResponse {
261
273
  | 'conversion.failed'
262
274
  | 'account_holder.active'
263
275
  | 'account_holder.closed'
276
+ | 'counterparty.created'
277
+ | 'counterparty.verified'
278
+ | 'counterparty.rejected'
279
+ | 'counterparty.blocked'
280
+ | 'counterparty.unblocked'
281
+ | 'counterparty.updated'
264
282
  >;
265
283
 
266
284
  /**
@@ -317,6 +335,12 @@ export interface WebhookSubscriptionListResponse {
317
335
  | 'conversion.failed'
318
336
  | 'account_holder.active'
319
337
  | 'account_holder.closed'
338
+ | 'counterparty.created'
339
+ | 'counterparty.verified'
340
+ | 'counterparty.rejected'
341
+ | 'counterparty.blocked'
342
+ | 'counterparty.unblocked'
343
+ | 'counterparty.updated'
320
344
  >;
321
345
 
322
346
  /**
@@ -373,6 +397,12 @@ export interface WebhookSubscriptionDeleteResponse {
373
397
  | 'conversion.failed'
374
398
  | 'account_holder.active'
375
399
  | 'account_holder.closed'
400
+ | 'counterparty.created'
401
+ | 'counterparty.verified'
402
+ | 'counterparty.rejected'
403
+ | 'counterparty.blocked'
404
+ | 'counterparty.unblocked'
405
+ | 'counterparty.updated'
376
406
  >;
377
407
 
378
408
  /**
@@ -441,6 +471,12 @@ export interface WebhookSubscriptionSendTestEventResponse {
441
471
  | 'conversion.failed'
442
472
  | 'account_holder.active'
443
473
  | 'account_holder.closed'
474
+ | 'counterparty.created'
475
+ | 'counterparty.verified'
476
+ | 'counterparty.rejected'
477
+ | 'counterparty.blocked'
478
+ | 'counterparty.unblocked'
479
+ | 'counterparty.updated'
444
480
  | 'ping.test';
445
481
 
446
482
  /**
@@ -470,6 +506,12 @@ export interface WebhookSubscriptionCreateParams {
470
506
  | 'conversion.failed'
471
507
  | 'account_holder.active'
472
508
  | 'account_holder.closed'
509
+ | 'counterparty.created'
510
+ | 'counterparty.verified'
511
+ | 'counterparty.rejected'
512
+ | 'counterparty.blocked'
513
+ | 'counterparty.unblocked'
514
+ | 'counterparty.updated'
473
515
  | '*'
474
516
  >;
475
517
 
@@ -508,6 +550,12 @@ export interface WebhookSubscriptionUpdateParams {
508
550
  | 'conversion.failed'
509
551
  | 'account_holder.active'
510
552
  | 'account_holder.closed'
553
+ | 'counterparty.created'
554
+ | 'counterparty.verified'
555
+ | 'counterparty.rejected'
556
+ | 'counterparty.blocked'
557
+ | 'counterparty.unblocked'
558
+ | 'counterparty.updated'
511
559
  | '*'
512
560
  > | null;
513
561