@augustusbank/typescript-sdk 0.28.0 → 0.30.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 (56) hide show
  1. package/CHANGELOG.md +15 -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/package.json +1 -1
  7. package/resources/accounts.d.mts +11 -6
  8. package/resources/accounts.d.mts.map +1 -1
  9. package/resources/accounts.d.ts +11 -6
  10. package/resources/accounts.d.ts.map +1 -1
  11. package/resources/accounts.js +7 -2
  12. package/resources/accounts.js.map +1 -1
  13. package/resources/accounts.mjs +7 -2
  14. package/resources/accounts.mjs.map +1 -1
  15. package/resources/counterparties.d.mts +16 -0
  16. package/resources/counterparties.d.mts.map +1 -1
  17. package/resources/counterparties.d.ts +16 -0
  18. package/resources/counterparties.d.ts.map +1 -1
  19. package/resources/deposits.d.mts +38 -6
  20. package/resources/deposits.d.mts.map +1 -1
  21. package/resources/deposits.d.ts +38 -6
  22. package/resources/deposits.d.ts.map +1 -1
  23. package/resources/events.d.mts +3 -3
  24. package/resources/events.d.mts.map +1 -1
  25. package/resources/events.d.ts +3 -3
  26. package/resources/events.d.ts.map +1 -1
  27. package/resources/index.d.mts +1 -1
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +1 -1
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/payouts.d.mts +51 -9
  32. package/resources/payouts.d.mts.map +1 -1
  33. package/resources/payouts.d.ts +51 -9
  34. package/resources/payouts.d.ts.map +1 -1
  35. package/resources/webhook-subscriptions.d.mts +8 -8
  36. package/resources/webhook-subscriptions.d.mts.map +1 -1
  37. package/resources/webhook-subscriptions.d.ts +8 -8
  38. package/resources/webhook-subscriptions.d.ts.map +1 -1
  39. package/resources/webhooks.d.mts +138 -28
  40. package/resources/webhooks.d.mts.map +1 -1
  41. package/resources/webhooks.d.ts +138 -28
  42. package/resources/webhooks.d.ts.map +1 -1
  43. package/src/client.ts +4 -4
  44. package/src/resources/accounts.ts +12 -7
  45. package/src/resources/counterparties.ts +20 -0
  46. package/src/resources/deposits.ts +42 -6
  47. package/src/resources/events.ts +6 -6
  48. package/src/resources/index.ts +2 -2
  49. package/src/resources/payouts.ts +57 -9
  50. package/src/resources/webhook-subscriptions.ts +16 -16
  51. package/src/resources/webhooks.ts +158 -30
  52. package/src/version.ts +1 -1
  53. package/version.d.mts +1 -1
  54. package/version.d.ts +1 -1
  55. package/version.js +1 -1
  56. package/version.mjs +1 -1
@@ -125,10 +125,10 @@ export namespace PayoutInitiatedWebhookEvent {
125
125
  status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
126
126
 
127
127
  /**
128
- * Reference used to track the payment across the payment network, such as the UETR
129
- * for SWIFT payments.
128
+ * Rail network tracking identifier with its type: UETR for SWIFT, IMAD for
129
+ * Fedwire, or the 15-digit trace number for ACH. Null when unavailable.
130
130
  */
131
- tracking_reference: string | null;
131
+ tracking_reference: Payload.TrackingReference | null;
132
132
 
133
133
  /**
134
134
  * Transaction hash for crypto payouts, or null when not known. Only blockchain
@@ -183,6 +183,22 @@ export namespace PayoutInitiatedWebhookEvent {
183
183
  */
184
184
  retry: boolean;
185
185
  }
186
+
187
+ /**
188
+ * Rail network tracking identifier with its type: UETR for SWIFT, IMAD for
189
+ * Fedwire, or the 15-digit trace number for ACH. Null when unavailable.
190
+ */
191
+ export interface TrackingReference {
192
+ /**
193
+ * Tracking reference type: UETR, IMAD, or ACH trace number.
194
+ */
195
+ type: 'uetr' | 'imad' | 'trace_number';
196
+
197
+ /**
198
+ * Rail-provided tracking identifier.
199
+ */
200
+ value: string;
201
+ }
186
202
  }
187
203
  }
188
204
 
@@ -293,10 +309,10 @@ export namespace PayoutSubmittedWebhookEvent {
293
309
  status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
294
310
 
295
311
  /**
296
- * Reference used to track the payment across the payment network, such as the UETR
297
- * for SWIFT payments.
312
+ * Rail network tracking identifier with its type: UETR for SWIFT, IMAD for
313
+ * Fedwire, or the 15-digit trace number for ACH. Null when unavailable.
298
314
  */
299
- tracking_reference: string | null;
315
+ tracking_reference: Payload.TrackingReference | null;
300
316
 
301
317
  /**
302
318
  * Transaction hash for crypto payouts, or null when not known. Only blockchain
@@ -351,6 +367,22 @@ export namespace PayoutSubmittedWebhookEvent {
351
367
  */
352
368
  retry: boolean;
353
369
  }
370
+
371
+ /**
372
+ * Rail network tracking identifier with its type: UETR for SWIFT, IMAD for
373
+ * Fedwire, or the 15-digit trace number for ACH. Null when unavailable.
374
+ */
375
+ export interface TrackingReference {
376
+ /**
377
+ * Tracking reference type: UETR, IMAD, or ACH trace number.
378
+ */
379
+ type: 'uetr' | 'imad' | 'trace_number';
380
+
381
+ /**
382
+ * Rail-provided tracking identifier.
383
+ */
384
+ value: string;
385
+ }
354
386
  }
355
387
  }
356
388
 
@@ -461,10 +493,10 @@ export namespace PayoutSentWebhookEvent {
461
493
  status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
462
494
 
463
495
  /**
464
- * Reference used to track the payment across the payment network, such as the UETR
465
- * for SWIFT payments.
496
+ * Rail network tracking identifier with its type: UETR for SWIFT, IMAD for
497
+ * Fedwire, or the 15-digit trace number for ACH. Null when unavailable.
466
498
  */
467
- tracking_reference: string | null;
499
+ tracking_reference: Payload.TrackingReference | null;
468
500
 
469
501
  /**
470
502
  * Transaction hash for crypto payouts, or null when not known. Only blockchain
@@ -519,6 +551,22 @@ export namespace PayoutSentWebhookEvent {
519
551
  */
520
552
  retry: boolean;
521
553
  }
554
+
555
+ /**
556
+ * Rail network tracking identifier with its type: UETR for SWIFT, IMAD for
557
+ * Fedwire, or the 15-digit trace number for ACH. Null when unavailable.
558
+ */
559
+ export interface TrackingReference {
560
+ /**
561
+ * Tracking reference type: UETR, IMAD, or ACH trace number.
562
+ */
563
+ type: 'uetr' | 'imad' | 'trace_number';
564
+
565
+ /**
566
+ * Rail-provided tracking identifier.
567
+ */
568
+ value: string;
569
+ }
522
570
  }
523
571
  }
524
572
 
@@ -629,10 +677,10 @@ export namespace PayoutFailedWebhookEvent {
629
677
  status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
630
678
 
631
679
  /**
632
- * Reference used to track the payment across the payment network, such as the UETR
633
- * for SWIFT payments.
680
+ * Rail network tracking identifier with its type: UETR for SWIFT, IMAD for
681
+ * Fedwire, or the 15-digit trace number for ACH. Null when unavailable.
634
682
  */
635
- tracking_reference: string | null;
683
+ tracking_reference: Payload.TrackingReference | null;
636
684
 
637
685
  /**
638
686
  * Transaction hash for crypto payouts, or null when not known. Only blockchain
@@ -687,6 +735,22 @@ export namespace PayoutFailedWebhookEvent {
687
735
  */
688
736
  retry: boolean;
689
737
  }
738
+
739
+ /**
740
+ * Rail network tracking identifier with its type: UETR for SWIFT, IMAD for
741
+ * Fedwire, or the 15-digit trace number for ACH. Null when unavailable.
742
+ */
743
+ export interface TrackingReference {
744
+ /**
745
+ * Tracking reference type: UETR, IMAD, or ACH trace number.
746
+ */
747
+ type: 'uetr' | 'imad' | 'trace_number';
748
+
749
+ /**
750
+ * Rail-provided tracking identifier.
751
+ */
752
+ value: string;
753
+ }
690
754
  }
691
755
  }
692
756
 
@@ -797,10 +861,10 @@ export namespace PayoutReturnedWebhookEvent {
797
861
  status: 'initiated' | 'submitted' | 'sent' | 'failed' | 'returned';
798
862
 
799
863
  /**
800
- * Reference used to track the payment across the payment network, such as the UETR
801
- * for SWIFT payments.
864
+ * Rail network tracking identifier with its type: UETR for SWIFT, IMAD for
865
+ * Fedwire, or the 15-digit trace number for ACH. Null when unavailable.
802
866
  */
803
- tracking_reference: string | null;
867
+ tracking_reference: Payload.TrackingReference | null;
804
868
 
805
869
  /**
806
870
  * Transaction hash for crypto payouts, or null when not known. Only blockchain
@@ -855,6 +919,22 @@ export namespace PayoutReturnedWebhookEvent {
855
919
  */
856
920
  retry: boolean;
857
921
  }
922
+
923
+ /**
924
+ * Rail network tracking identifier with its type: UETR for SWIFT, IMAD for
925
+ * Fedwire, or the 15-digit trace number for ACH. Null when unavailable.
926
+ */
927
+ export interface TrackingReference {
928
+ /**
929
+ * Tracking reference type: UETR, IMAD, or ACH trace number.
930
+ */
931
+ type: 'uetr' | 'imad' | 'trace_number';
932
+
933
+ /**
934
+ * Rail-provided tracking identifier.
935
+ */
936
+ value: string;
937
+ }
858
938
  }
859
939
  }
860
940
 
@@ -1708,10 +1788,10 @@ export namespace DepositSettledWebhookEvent {
1708
1788
  status: 'settled';
1709
1789
 
1710
1790
  /**
1711
- * Reference used to track the payment across the payment network, such as the UETR
1712
- * for SWIFT payments.
1791
+ * Rail network tracking identifier with its type: UETR for SWIFT, IMAD for
1792
+ * Fedwire, or the 15-digit trace number for ACH. Null when unavailable.
1713
1793
  */
1714
- tracking_reference: string | null;
1794
+ tracking_reference: Payload.TrackingReference | null;
1715
1795
 
1716
1796
  /**
1717
1797
  * Transaction hash for crypto deposits, or null when not known. Only blockchain
@@ -1730,6 +1810,24 @@ export namespace DepositSettledWebhookEvent {
1730
1810
  */
1731
1811
  unstructured_remittance_information: string | null;
1732
1812
  }
1813
+
1814
+ export namespace Payload {
1815
+ /**
1816
+ * Rail network tracking identifier with its type: UETR for SWIFT, IMAD for
1817
+ * Fedwire, or the 15-digit trace number for ACH. Null when unavailable.
1818
+ */
1819
+ export interface TrackingReference {
1820
+ /**
1821
+ * Tracking reference type: UETR, IMAD, or ACH trace number.
1822
+ */
1823
+ type: 'uetr' | 'imad' | 'trace_number';
1824
+
1825
+ /**
1826
+ * Rail-provided tracking identifier.
1827
+ */
1828
+ value: string;
1829
+ }
1830
+ }
1733
1831
  }
1734
1832
 
1735
1833
  export interface ConversionCreatedWebhookEvent {
@@ -9885,7 +9983,7 @@ export namespace AccountHolderClosedWebhookEvent {
9885
9983
  }
9886
9984
  }
9887
9985
 
9888
- export interface CounterpartyCreatedWebhookEvent {
9986
+ export interface CounterpartyPendingWebhookEvent {
9889
9987
  /**
9890
9988
  * Unique identifier for the event. Stable across retries.
9891
9989
  */
@@ -9904,15 +10002,15 @@ export interface CounterpartyCreatedWebhookEvent {
9904
10002
  /**
9905
10003
  * Full resource snapshot at the time of the event.
9906
10004
  */
9907
- payload: CounterpartyCreatedWebhookEvent.Payload;
10005
+ payload: CounterpartyPendingWebhookEvent.Payload;
9908
10006
 
9909
10007
  /**
9910
10008
  * Event type in resource.action format.
9911
10009
  */
9912
- type: 'counterparty.created';
10010
+ type: 'counterparty.pending';
9913
10011
  }
9914
10012
 
9915
- export namespace CounterpartyCreatedWebhookEvent {
10013
+ export namespace CounterpartyPendingWebhookEvent {
9916
10014
  /**
9917
10015
  * Full resource snapshot at the time of the event.
9918
10016
  */
@@ -9985,6 +10083,11 @@ export namespace CounterpartyCreatedWebhookEvent {
9985
10083
  */
9986
10084
  physical_address: Payload.PhysicalAddress | null;
9987
10085
 
10086
+ /**
10087
+ * Counterparty lifecycle status. Blocking is separate.
10088
+ */
10089
+ status: 'pending' | 'active' | 'rejected';
10090
+
9988
10091
  /**
9989
10092
  * Resource type discriminator.
9990
10093
  */
@@ -10413,7 +10516,7 @@ export namespace CounterpartyCreatedWebhookEvent {
10413
10516
  }
10414
10517
  }
10415
10518
 
10416
- export interface CounterpartyVerifiedWebhookEvent {
10519
+ export interface CounterpartyActiveWebhookEvent {
10417
10520
  /**
10418
10521
  * Unique identifier for the event. Stable across retries.
10419
10522
  */
@@ -10432,15 +10535,15 @@ export interface CounterpartyVerifiedWebhookEvent {
10432
10535
  /**
10433
10536
  * Full resource snapshot at the time of the event.
10434
10537
  */
10435
- payload: CounterpartyVerifiedWebhookEvent.Payload;
10538
+ payload: CounterpartyActiveWebhookEvent.Payload;
10436
10539
 
10437
10540
  /**
10438
10541
  * Event type in resource.action format.
10439
10542
  */
10440
- type: 'counterparty.verified';
10543
+ type: 'counterparty.active';
10441
10544
  }
10442
10545
 
10443
- export namespace CounterpartyVerifiedWebhookEvent {
10546
+ export namespace CounterpartyActiveWebhookEvent {
10444
10547
  /**
10445
10548
  * Full resource snapshot at the time of the event.
10446
10549
  */
@@ -10513,6 +10616,11 @@ export namespace CounterpartyVerifiedWebhookEvent {
10513
10616
  */
10514
10617
  physical_address: Payload.PhysicalAddress | null;
10515
10618
 
10619
+ /**
10620
+ * Counterparty lifecycle status. Blocking is separate.
10621
+ */
10622
+ status: 'pending' | 'active' | 'rejected';
10623
+
10516
10624
  /**
10517
10625
  * Resource type discriminator.
10518
10626
  */
@@ -11041,6 +11149,11 @@ export namespace CounterpartyRejectedWebhookEvent {
11041
11149
  */
11042
11150
  physical_address: Payload.PhysicalAddress | null;
11043
11151
 
11152
+ /**
11153
+ * Counterparty lifecycle status. Blocking is separate.
11154
+ */
11155
+ status: 'pending' | 'active' | 'rejected';
11156
+
11044
11157
  /**
11045
11158
  * Resource type discriminator.
11046
11159
  */
@@ -11569,6 +11682,11 @@ export namespace CounterpartyBlockedWebhookEvent {
11569
11682
  */
11570
11683
  physical_address: Payload.PhysicalAddress | null;
11571
11684
 
11685
+ /**
11686
+ * Counterparty lifecycle status. Blocking is separate.
11687
+ */
11688
+ status: 'pending' | 'active' | 'rejected';
11689
+
11572
11690
  /**
11573
11691
  * Resource type discriminator.
11574
11692
  */
@@ -12097,6 +12215,11 @@ export namespace CounterpartyUnblockedWebhookEvent {
12097
12215
  */
12098
12216
  physical_address: Payload.PhysicalAddress | null;
12099
12217
 
12218
+ /**
12219
+ * Counterparty lifecycle status. Blocking is separate.
12220
+ */
12221
+ status: 'pending' | 'active' | 'rejected';
12222
+
12100
12223
  /**
12101
12224
  * Resource type discriminator.
12102
12225
  */
@@ -12625,6 +12748,11 @@ export namespace CounterpartyUpdatedWebhookEvent {
12625
12748
  */
12626
12749
  physical_address: Payload.PhysicalAddress | null;
12627
12750
 
12751
+ /**
12752
+ * Counterparty lifecycle status. Blocking is separate.
12753
+ */
12754
+ status: 'pending' | 'active' | 'rejected';
12755
+
12628
12756
  /**
12629
12757
  * Resource type discriminator.
12630
12758
  */
@@ -13130,8 +13258,8 @@ export type UnwrapWebhookEvent =
13130
13258
  | ConversionFailedWebhookEvent
13131
13259
  | AccountHolderActiveWebhookEvent
13132
13260
  | AccountHolderClosedWebhookEvent
13133
- | CounterpartyCreatedWebhookEvent
13134
- | CounterpartyVerifiedWebhookEvent
13261
+ | CounterpartyPendingWebhookEvent
13262
+ | CounterpartyActiveWebhookEvent
13135
13263
  | CounterpartyRejectedWebhookEvent
13136
13264
  | CounterpartyBlockedWebhookEvent
13137
13265
  | CounterpartyUnblockedWebhookEvent
@@ -13156,8 +13284,8 @@ export declare namespace Webhooks {
13156
13284
  type ConversionFailedWebhookEvent as ConversionFailedWebhookEvent,
13157
13285
  type AccountHolderActiveWebhookEvent as AccountHolderActiveWebhookEvent,
13158
13286
  type AccountHolderClosedWebhookEvent as AccountHolderClosedWebhookEvent,
13159
- type CounterpartyCreatedWebhookEvent as CounterpartyCreatedWebhookEvent,
13160
- type CounterpartyVerifiedWebhookEvent as CounterpartyVerifiedWebhookEvent,
13287
+ type CounterpartyPendingWebhookEvent as CounterpartyPendingWebhookEvent,
13288
+ type CounterpartyActiveWebhookEvent as CounterpartyActiveWebhookEvent,
13161
13289
  type CounterpartyRejectedWebhookEvent as CounterpartyRejectedWebhookEvent,
13162
13290
  type CounterpartyBlockedWebhookEvent as CounterpartyBlockedWebhookEvent,
13163
13291
  type CounterpartyUnblockedWebhookEvent as CounterpartyUnblockedWebhookEvent,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.28.0'; // x-release-please-version
1
+ export const VERSION = '0.30.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.28.0";
1
+ export declare const VERSION = "0.30.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.28.0";
1
+ export declare const VERSION = "0.30.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.28.0'; // x-release-please-version
4
+ exports.VERSION = '0.30.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.28.0'; // x-release-please-version
1
+ export const VERSION = '0.30.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map