@augustusbank/typescript-sdk 0.27.0 → 0.29.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 (65) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +1 -1
  3. package/resources/accounts.d.mts +197 -120
  4. package/resources/accounts.d.mts.map +1 -1
  5. package/resources/accounts.d.ts +197 -120
  6. package/resources/accounts.d.ts.map +1 -1
  7. package/resources/accounts.js +7 -2
  8. package/resources/accounts.js.map +1 -1
  9. package/resources/accounts.mjs +7 -2
  10. package/resources/accounts.mjs.map +1 -1
  11. package/resources/counterparties.d.mts +243 -97
  12. package/resources/counterparties.d.mts.map +1 -1
  13. package/resources/counterparties.d.ts +243 -97
  14. package/resources/counterparties.d.ts.map +1 -1
  15. package/resources/counterparties.js +3 -2
  16. package/resources/counterparties.js.map +1 -1
  17. package/resources/counterparties.mjs +3 -2
  18. package/resources/counterparties.mjs.map +1 -1
  19. package/resources/payouts.d.mts +1 -1
  20. package/resources/payouts.d.ts +1 -1
  21. package/resources/payouts.js +1 -1
  22. package/resources/payouts.mjs +1 -1
  23. package/resources/simulations/account-programs.d.mts +37 -22
  24. package/resources/simulations/account-programs.d.mts.map +1 -1
  25. package/resources/simulations/account-programs.d.ts +37 -22
  26. package/resources/simulations/account-programs.d.ts.map +1 -1
  27. package/resources/simulations/account-programs.js +3 -2
  28. package/resources/simulations/account-programs.js.map +1 -1
  29. package/resources/simulations/account-programs.mjs +3 -2
  30. package/resources/simulations/account-programs.mjs.map +1 -1
  31. package/resources/simulations/accounts.d.mts +37 -22
  32. package/resources/simulations/accounts.d.mts.map +1 -1
  33. package/resources/simulations/accounts.d.ts +37 -22
  34. package/resources/simulations/accounts.d.ts.map +1 -1
  35. package/resources/simulations/accounts.js +4 -3
  36. package/resources/simulations/accounts.js.map +1 -1
  37. package/resources/simulations/accounts.mjs +4 -3
  38. package/resources/simulations/accounts.mjs.map +1 -1
  39. package/resources/simulations/deposits.d.mts +41 -20
  40. package/resources/simulations/deposits.d.mts.map +1 -1
  41. package/resources/simulations/deposits.d.ts +41 -20
  42. package/resources/simulations/deposits.d.ts.map +1 -1
  43. package/resources/simulations/deposits.js +1 -1
  44. package/resources/simulations/deposits.mjs +1 -1
  45. package/resources/transactions.d.mts +62 -38
  46. package/resources/transactions.d.mts.map +1 -1
  47. package/resources/transactions.d.ts +62 -38
  48. package/resources/transactions.d.ts.map +1 -1
  49. package/resources/webhooks.d.mts +258 -114
  50. package/resources/webhooks.d.mts.map +1 -1
  51. package/resources/webhooks.d.ts +258 -114
  52. package/resources/webhooks.d.ts.map +1 -1
  53. package/src/resources/accounts.ts +228 -133
  54. package/src/resources/counterparties.ts +286 -107
  55. package/src/resources/payouts.ts +1 -1
  56. package/src/resources/simulations/account-programs.ts +42 -25
  57. package/src/resources/simulations/accounts.ts +42 -25
  58. package/src/resources/simulations/deposits.ts +46 -22
  59. package/src/resources/transactions.ts +72 -42
  60. package/src/resources/webhooks.ts +306 -126
  61. package/src/version.ts +1 -1
  62. package/version.d.mts +1 -1
  63. package/version.d.ts +1 -1
  64. package/version.js +1 -1
  65. package/version.mjs +1 -1
@@ -43,13 +43,18 @@ export class Accounts extends APIResource {
43
43
  * @example
44
44
  * ```ts
45
45
  * // Automatically fetches more pages as needed.
46
- * for await (const accountListResponse of client.accounts.list()) {
46
+ * for await (const accountListResponse of client.accounts.list(
47
+ * {
48
+ * account_program_id:
49
+ * '550e8400-e29b-41d4-a716-446655440002',
50
+ * },
51
+ * )) {
47
52
  * // ...
48
53
  * }
49
54
  * ```
50
55
  */
51
56
  list(
52
- query: AccountListParams | null | undefined = {},
57
+ query: AccountListParams,
53
58
  options?: RequestOptions,
54
59
  ): PagePromise<AccountListResponsesCursorPage, AccountListResponse> {
55
60
  return this._client.getAPIList('/v1/accounts', CursorPage<AccountListResponse>, { query, ...options });
@@ -145,9 +150,9 @@ export interface AccountCreateResponse {
145
150
  * this account can send or receive funds.
146
151
  */
147
152
  financial_addresses: Array<
153
+ | AccountCreateResponse.AbaFinancialAddress
148
154
  | AccountCreateResponse.IbanFinancialAddress
149
155
  | AccountCreateResponse.SortCodeFinancialAddress
150
- | AccountCreateResponse.AbaFinancialAddress
151
156
  | AccountCreateResponse.BicFinancialAddress
152
157
  | AccountCreateResponse.CryptoWalletFinancialAddress
153
158
  >;
@@ -181,70 +186,80 @@ export interface AccountCreateResponse {
181
186
  }
182
187
 
183
188
  export namespace AccountCreateResponse {
184
- export interface IbanFinancialAddress {
189
+ export interface AbaFinancialAddress {
185
190
  /**
186
191
  * Name of the account holder.
187
192
  */
188
193
  account_holder_name: string;
189
194
 
190
195
  /**
191
- * Bank Identifier Code, or null if not provided.
196
+ * Bank account number.
192
197
  */
193
- bic: string | null;
198
+ account_number: string;
194
199
 
195
200
  /**
196
- * International Bank Account Number.
201
+ * Whether the account is a checking or a savings account, or null if not provided.
197
202
  */
198
- iban: string;
203
+ account_type: 'checking' | 'savings' | null;
199
204
 
200
205
  /**
201
- * Discriminator for IBAN financial address.
206
+ * ABA routing number (9 digits).
202
207
  */
203
- type: 'iban';
208
+ routing_number: string;
209
+
210
+ /**
211
+ * Discriminator for ABA wire financial address.
212
+ */
213
+ type: 'aba';
204
214
  }
205
215
 
206
- export interface SortCodeFinancialAddress {
216
+ export interface IbanFinancialAddress {
207
217
  /**
208
218
  * Name of the account holder.
209
219
  */
210
220
  account_holder_name: string;
211
221
 
212
222
  /**
213
- * UK account number (8 digits).
223
+ * Whether the account is a checking or a savings account, or null if not provided.
214
224
  */
215
- account_number: string;
225
+ account_type: 'checking' | 'savings' | null;
216
226
 
217
227
  /**
218
- * UK sort code (6 digits).
228
+ * Bank Identifier Code, or null if not provided.
219
229
  */
220
- sort_code: string;
230
+ bic: string | null;
221
231
 
222
232
  /**
223
- * Discriminator for UK sort code financial address.
233
+ * International Bank Account Number.
224
234
  */
225
- type: 'sort_code';
235
+ iban: string;
236
+
237
+ /**
238
+ * Discriminator for IBAN financial address.
239
+ */
240
+ type: 'iban';
226
241
  }
227
242
 
228
- export interface AbaFinancialAddress {
243
+ export interface SortCodeFinancialAddress {
229
244
  /**
230
245
  * Name of the account holder.
231
246
  */
232
247
  account_holder_name: string;
233
248
 
234
249
  /**
235
- * Bank account number.
250
+ * UK account number (8 digits).
236
251
  */
237
252
  account_number: string;
238
253
 
239
254
  /**
240
- * ABA routing number (9 digits).
255
+ * UK sort code (6 digits).
241
256
  */
242
- routing_number: string;
257
+ sort_code: string;
243
258
 
244
259
  /**
245
- * Discriminator for ABA wire financial address.
260
+ * Discriminator for UK sort code financial address.
246
261
  */
247
- type: 'aba';
262
+ type: 'sort_code';
248
263
  }
249
264
 
250
265
  export interface BicFinancialAddress {
@@ -258,6 +273,11 @@ export namespace AccountCreateResponse {
258
273
  */
259
274
  account_number: string;
260
275
 
276
+ /**
277
+ * Whether the account is a checking or a savings account, or null if not provided.
278
+ */
279
+ account_type: 'checking' | 'savings' | null;
280
+
261
281
  /**
262
282
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
263
283
  */
@@ -327,9 +347,9 @@ export interface AccountRetrieveResponse {
327
347
  * this account can send or receive funds.
328
348
  */
329
349
  financial_addresses: Array<
350
+ | AccountRetrieveResponse.AbaFinancialAddress
330
351
  | AccountRetrieveResponse.IbanFinancialAddress
331
352
  | AccountRetrieveResponse.SortCodeFinancialAddress
332
- | AccountRetrieveResponse.AbaFinancialAddress
333
353
  | AccountRetrieveResponse.BicFinancialAddress
334
354
  | AccountRetrieveResponse.CryptoWalletFinancialAddress
335
355
  >;
@@ -363,70 +383,80 @@ export interface AccountRetrieveResponse {
363
383
  }
364
384
 
365
385
  export namespace AccountRetrieveResponse {
366
- export interface IbanFinancialAddress {
386
+ export interface AbaFinancialAddress {
367
387
  /**
368
388
  * Name of the account holder.
369
389
  */
370
390
  account_holder_name: string;
371
391
 
372
392
  /**
373
- * Bank Identifier Code, or null if not provided.
393
+ * Bank account number.
374
394
  */
375
- bic: string | null;
395
+ account_number: string;
376
396
 
377
397
  /**
378
- * International Bank Account Number.
398
+ * Whether the account is a checking or a savings account, or null if not provided.
379
399
  */
380
- iban: string;
400
+ account_type: 'checking' | 'savings' | null;
381
401
 
382
402
  /**
383
- * Discriminator for IBAN financial address.
403
+ * ABA routing number (9 digits).
384
404
  */
385
- type: 'iban';
405
+ routing_number: string;
406
+
407
+ /**
408
+ * Discriminator for ABA wire financial address.
409
+ */
410
+ type: 'aba';
386
411
  }
387
412
 
388
- export interface SortCodeFinancialAddress {
413
+ export interface IbanFinancialAddress {
389
414
  /**
390
415
  * Name of the account holder.
391
416
  */
392
417
  account_holder_name: string;
393
418
 
394
419
  /**
395
- * UK account number (8 digits).
420
+ * Whether the account is a checking or a savings account, or null if not provided.
396
421
  */
397
- account_number: string;
422
+ account_type: 'checking' | 'savings' | null;
398
423
 
399
424
  /**
400
- * UK sort code (6 digits).
425
+ * Bank Identifier Code, or null if not provided.
401
426
  */
402
- sort_code: string;
427
+ bic: string | null;
403
428
 
404
429
  /**
405
- * Discriminator for UK sort code financial address.
430
+ * International Bank Account Number.
406
431
  */
407
- type: 'sort_code';
432
+ iban: string;
433
+
434
+ /**
435
+ * Discriminator for IBAN financial address.
436
+ */
437
+ type: 'iban';
408
438
  }
409
439
 
410
- export interface AbaFinancialAddress {
440
+ export interface SortCodeFinancialAddress {
411
441
  /**
412
442
  * Name of the account holder.
413
443
  */
414
444
  account_holder_name: string;
415
445
 
416
446
  /**
417
- * Bank account number.
447
+ * UK account number (8 digits).
418
448
  */
419
449
  account_number: string;
420
450
 
421
451
  /**
422
- * ABA routing number (9 digits).
452
+ * UK sort code (6 digits).
423
453
  */
424
- routing_number: string;
454
+ sort_code: string;
425
455
 
426
456
  /**
427
- * Discriminator for ABA wire financial address.
457
+ * Discriminator for UK sort code financial address.
428
458
  */
429
- type: 'aba';
459
+ type: 'sort_code';
430
460
  }
431
461
 
432
462
  export interface BicFinancialAddress {
@@ -440,6 +470,11 @@ export namespace AccountRetrieveResponse {
440
470
  */
441
471
  account_number: string;
442
472
 
473
+ /**
474
+ * Whether the account is a checking or a savings account, or null if not provided.
475
+ */
476
+ account_type: 'checking' | 'savings' | null;
477
+
443
478
  /**
444
479
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
445
480
  */
@@ -509,9 +544,9 @@ export interface AccountListResponse {
509
544
  * this account can send or receive funds.
510
545
  */
511
546
  financial_addresses: Array<
547
+ | AccountListResponse.AbaFinancialAddress
512
548
  | AccountListResponse.IbanFinancialAddress
513
549
  | AccountListResponse.SortCodeFinancialAddress
514
- | AccountListResponse.AbaFinancialAddress
515
550
  | AccountListResponse.BicFinancialAddress
516
551
  | AccountListResponse.CryptoWalletFinancialAddress
517
552
  >;
@@ -545,70 +580,80 @@ export interface AccountListResponse {
545
580
  }
546
581
 
547
582
  export namespace AccountListResponse {
548
- export interface IbanFinancialAddress {
583
+ export interface AbaFinancialAddress {
549
584
  /**
550
585
  * Name of the account holder.
551
586
  */
552
587
  account_holder_name: string;
553
588
 
554
589
  /**
555
- * Bank Identifier Code, or null if not provided.
590
+ * Bank account number.
556
591
  */
557
- bic: string | null;
592
+ account_number: string;
558
593
 
559
594
  /**
560
- * International Bank Account Number.
595
+ * Whether the account is a checking or a savings account, or null if not provided.
561
596
  */
562
- iban: string;
597
+ account_type: 'checking' | 'savings' | null;
563
598
 
564
599
  /**
565
- * Discriminator for IBAN financial address.
600
+ * ABA routing number (9 digits).
566
601
  */
567
- type: 'iban';
602
+ routing_number: string;
603
+
604
+ /**
605
+ * Discriminator for ABA wire financial address.
606
+ */
607
+ type: 'aba';
568
608
  }
569
609
 
570
- export interface SortCodeFinancialAddress {
610
+ export interface IbanFinancialAddress {
571
611
  /**
572
612
  * Name of the account holder.
573
613
  */
574
614
  account_holder_name: string;
575
615
 
576
616
  /**
577
- * UK account number (8 digits).
617
+ * Whether the account is a checking or a savings account, or null if not provided.
578
618
  */
579
- account_number: string;
619
+ account_type: 'checking' | 'savings' | null;
580
620
 
581
621
  /**
582
- * UK sort code (6 digits).
622
+ * Bank Identifier Code, or null if not provided.
583
623
  */
584
- sort_code: string;
624
+ bic: string | null;
585
625
 
586
626
  /**
587
- * Discriminator for UK sort code financial address.
627
+ * International Bank Account Number.
588
628
  */
589
- type: 'sort_code';
629
+ iban: string;
630
+
631
+ /**
632
+ * Discriminator for IBAN financial address.
633
+ */
634
+ type: 'iban';
590
635
  }
591
636
 
592
- export interface AbaFinancialAddress {
637
+ export interface SortCodeFinancialAddress {
593
638
  /**
594
639
  * Name of the account holder.
595
640
  */
596
641
  account_holder_name: string;
597
642
 
598
643
  /**
599
- * Bank account number.
644
+ * UK account number (8 digits).
600
645
  */
601
646
  account_number: string;
602
647
 
603
648
  /**
604
- * ABA routing number (9 digits).
649
+ * UK sort code (6 digits).
605
650
  */
606
- routing_number: string;
651
+ sort_code: string;
607
652
 
608
653
  /**
609
- * Discriminator for ABA wire financial address.
654
+ * Discriminator for UK sort code financial address.
610
655
  */
611
- type: 'aba';
656
+ type: 'sort_code';
612
657
  }
613
658
 
614
659
  export interface BicFinancialAddress {
@@ -622,6 +667,11 @@ export namespace AccountListResponse {
622
667
  */
623
668
  account_number: string;
624
669
 
670
+ /**
671
+ * Whether the account is a checking or a savings account, or null if not provided.
672
+ */
673
+ account_type: 'checking' | 'savings' | null;
674
+
625
675
  /**
626
676
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
627
677
  */
@@ -691,9 +741,9 @@ export interface AccountCloseResponse {
691
741
  * this account can send or receive funds.
692
742
  */
693
743
  financial_addresses: Array<
744
+ | AccountCloseResponse.AbaFinancialAddress
694
745
  | AccountCloseResponse.IbanFinancialAddress
695
746
  | AccountCloseResponse.SortCodeFinancialAddress
696
- | AccountCloseResponse.AbaFinancialAddress
697
747
  | AccountCloseResponse.BicFinancialAddress
698
748
  | AccountCloseResponse.CryptoWalletFinancialAddress
699
749
  >;
@@ -727,70 +777,80 @@ export interface AccountCloseResponse {
727
777
  }
728
778
 
729
779
  export namespace AccountCloseResponse {
730
- export interface IbanFinancialAddress {
780
+ export interface AbaFinancialAddress {
731
781
  /**
732
782
  * Name of the account holder.
733
783
  */
734
784
  account_holder_name: string;
735
785
 
736
786
  /**
737
- * Bank Identifier Code, or null if not provided.
787
+ * Bank account number.
738
788
  */
739
- bic: string | null;
789
+ account_number: string;
740
790
 
741
791
  /**
742
- * International Bank Account Number.
792
+ * Whether the account is a checking or a savings account, or null if not provided.
743
793
  */
744
- iban: string;
794
+ account_type: 'checking' | 'savings' | null;
745
795
 
746
796
  /**
747
- * Discriminator for IBAN financial address.
797
+ * ABA routing number (9 digits).
748
798
  */
749
- type: 'iban';
799
+ routing_number: string;
800
+
801
+ /**
802
+ * Discriminator for ABA wire financial address.
803
+ */
804
+ type: 'aba';
750
805
  }
751
806
 
752
- export interface SortCodeFinancialAddress {
807
+ export interface IbanFinancialAddress {
753
808
  /**
754
809
  * Name of the account holder.
755
810
  */
756
811
  account_holder_name: string;
757
812
 
758
813
  /**
759
- * UK account number (8 digits).
814
+ * Whether the account is a checking or a savings account, or null if not provided.
760
815
  */
761
- account_number: string;
816
+ account_type: 'checking' | 'savings' | null;
762
817
 
763
818
  /**
764
- * UK sort code (6 digits).
819
+ * Bank Identifier Code, or null if not provided.
765
820
  */
766
- sort_code: string;
821
+ bic: string | null;
767
822
 
768
823
  /**
769
- * Discriminator for UK sort code financial address.
824
+ * International Bank Account Number.
770
825
  */
771
- type: 'sort_code';
826
+ iban: string;
827
+
828
+ /**
829
+ * Discriminator for IBAN financial address.
830
+ */
831
+ type: 'iban';
772
832
  }
773
833
 
774
- export interface AbaFinancialAddress {
834
+ export interface SortCodeFinancialAddress {
775
835
  /**
776
836
  * Name of the account holder.
777
837
  */
778
838
  account_holder_name: string;
779
839
 
780
840
  /**
781
- * Bank account number.
841
+ * UK account number (8 digits).
782
842
  */
783
843
  account_number: string;
784
844
 
785
845
  /**
786
- * ABA routing number (9 digits).
846
+ * UK sort code (6 digits).
787
847
  */
788
- routing_number: string;
848
+ sort_code: string;
789
849
 
790
850
  /**
791
- * Discriminator for ABA wire financial address.
851
+ * Discriminator for UK sort code financial address.
792
852
  */
793
- type: 'aba';
853
+ type: 'sort_code';
794
854
  }
795
855
 
796
856
  export interface BicFinancialAddress {
@@ -804,6 +864,11 @@ export namespace AccountCloseResponse {
804
864
  */
805
865
  account_number: string;
806
866
 
867
+ /**
868
+ * Whether the account is a checking or a savings account, or null if not provided.
869
+ */
870
+ account_type: 'checking' | 'savings' | null;
871
+
807
872
  /**
808
873
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
809
874
  */
@@ -873,9 +938,9 @@ export interface AccountFreezeResponse {
873
938
  * this account can send or receive funds.
874
939
  */
875
940
  financial_addresses: Array<
941
+ | AccountFreezeResponse.AbaFinancialAddress
876
942
  | AccountFreezeResponse.IbanFinancialAddress
877
943
  | AccountFreezeResponse.SortCodeFinancialAddress
878
- | AccountFreezeResponse.AbaFinancialAddress
879
944
  | AccountFreezeResponse.BicFinancialAddress
880
945
  | AccountFreezeResponse.CryptoWalletFinancialAddress
881
946
  >;
@@ -909,70 +974,80 @@ export interface AccountFreezeResponse {
909
974
  }
910
975
 
911
976
  export namespace AccountFreezeResponse {
912
- export interface IbanFinancialAddress {
977
+ export interface AbaFinancialAddress {
913
978
  /**
914
979
  * Name of the account holder.
915
980
  */
916
981
  account_holder_name: string;
917
982
 
918
983
  /**
919
- * Bank Identifier Code, or null if not provided.
984
+ * Bank account number.
920
985
  */
921
- bic: string | null;
986
+ account_number: string;
922
987
 
923
988
  /**
924
- * International Bank Account Number.
989
+ * Whether the account is a checking or a savings account, or null if not provided.
925
990
  */
926
- iban: string;
991
+ account_type: 'checking' | 'savings' | null;
927
992
 
928
993
  /**
929
- * Discriminator for IBAN financial address.
994
+ * ABA routing number (9 digits).
930
995
  */
931
- type: 'iban';
996
+ routing_number: string;
997
+
998
+ /**
999
+ * Discriminator for ABA wire financial address.
1000
+ */
1001
+ type: 'aba';
932
1002
  }
933
1003
 
934
- export interface SortCodeFinancialAddress {
1004
+ export interface IbanFinancialAddress {
935
1005
  /**
936
1006
  * Name of the account holder.
937
1007
  */
938
1008
  account_holder_name: string;
939
1009
 
940
1010
  /**
941
- * UK account number (8 digits).
1011
+ * Whether the account is a checking or a savings account, or null if not provided.
942
1012
  */
943
- account_number: string;
1013
+ account_type: 'checking' | 'savings' | null;
944
1014
 
945
1015
  /**
946
- * UK sort code (6 digits).
1016
+ * Bank Identifier Code, or null if not provided.
947
1017
  */
948
- sort_code: string;
1018
+ bic: string | null;
949
1019
 
950
1020
  /**
951
- * Discriminator for UK sort code financial address.
1021
+ * International Bank Account Number.
952
1022
  */
953
- type: 'sort_code';
1023
+ iban: string;
1024
+
1025
+ /**
1026
+ * Discriminator for IBAN financial address.
1027
+ */
1028
+ type: 'iban';
954
1029
  }
955
1030
 
956
- export interface AbaFinancialAddress {
1031
+ export interface SortCodeFinancialAddress {
957
1032
  /**
958
1033
  * Name of the account holder.
959
1034
  */
960
1035
  account_holder_name: string;
961
1036
 
962
1037
  /**
963
- * Bank account number.
1038
+ * UK account number (8 digits).
964
1039
  */
965
1040
  account_number: string;
966
1041
 
967
1042
  /**
968
- * ABA routing number (9 digits).
1043
+ * UK sort code (6 digits).
969
1044
  */
970
- routing_number: string;
1045
+ sort_code: string;
971
1046
 
972
1047
  /**
973
- * Discriminator for ABA wire financial address.
1048
+ * Discriminator for UK sort code financial address.
974
1049
  */
975
- type: 'aba';
1050
+ type: 'sort_code';
976
1051
  }
977
1052
 
978
1053
  export interface BicFinancialAddress {
@@ -986,6 +1061,11 @@ export namespace AccountFreezeResponse {
986
1061
  */
987
1062
  account_number: string;
988
1063
 
1064
+ /**
1065
+ * Whether the account is a checking or a savings account, or null if not provided.
1066
+ */
1067
+ account_type: 'checking' | 'savings' | null;
1068
+
989
1069
  /**
990
1070
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
991
1071
  */
@@ -1093,9 +1173,9 @@ export interface AccountUnfreezeResponse {
1093
1173
  * this account can send or receive funds.
1094
1174
  */
1095
1175
  financial_addresses: Array<
1176
+ | AccountUnfreezeResponse.AbaFinancialAddress
1096
1177
  | AccountUnfreezeResponse.IbanFinancialAddress
1097
1178
  | AccountUnfreezeResponse.SortCodeFinancialAddress
1098
- | AccountUnfreezeResponse.AbaFinancialAddress
1099
1179
  | AccountUnfreezeResponse.BicFinancialAddress
1100
1180
  | AccountUnfreezeResponse.CryptoWalletFinancialAddress
1101
1181
  >;
@@ -1129,70 +1209,80 @@ export interface AccountUnfreezeResponse {
1129
1209
  }
1130
1210
 
1131
1211
  export namespace AccountUnfreezeResponse {
1132
- export interface IbanFinancialAddress {
1212
+ export interface AbaFinancialAddress {
1133
1213
  /**
1134
1214
  * Name of the account holder.
1135
1215
  */
1136
1216
  account_holder_name: string;
1137
1217
 
1138
1218
  /**
1139
- * Bank Identifier Code, or null if not provided.
1219
+ * Bank account number.
1140
1220
  */
1141
- bic: string | null;
1221
+ account_number: string;
1142
1222
 
1143
1223
  /**
1144
- * International Bank Account Number.
1224
+ * Whether the account is a checking or a savings account, or null if not provided.
1145
1225
  */
1146
- iban: string;
1226
+ account_type: 'checking' | 'savings' | null;
1147
1227
 
1148
1228
  /**
1149
- * Discriminator for IBAN financial address.
1229
+ * ABA routing number (9 digits).
1150
1230
  */
1151
- type: 'iban';
1231
+ routing_number: string;
1232
+
1233
+ /**
1234
+ * Discriminator for ABA wire financial address.
1235
+ */
1236
+ type: 'aba';
1152
1237
  }
1153
1238
 
1154
- export interface SortCodeFinancialAddress {
1239
+ export interface IbanFinancialAddress {
1155
1240
  /**
1156
1241
  * Name of the account holder.
1157
1242
  */
1158
1243
  account_holder_name: string;
1159
1244
 
1160
1245
  /**
1161
- * UK account number (8 digits).
1246
+ * Whether the account is a checking or a savings account, or null if not provided.
1162
1247
  */
1163
- account_number: string;
1248
+ account_type: 'checking' | 'savings' | null;
1164
1249
 
1165
1250
  /**
1166
- * UK sort code (6 digits).
1251
+ * Bank Identifier Code, or null if not provided.
1167
1252
  */
1168
- sort_code: string;
1253
+ bic: string | null;
1169
1254
 
1170
1255
  /**
1171
- * Discriminator for UK sort code financial address.
1256
+ * International Bank Account Number.
1172
1257
  */
1173
- type: 'sort_code';
1258
+ iban: string;
1259
+
1260
+ /**
1261
+ * Discriminator for IBAN financial address.
1262
+ */
1263
+ type: 'iban';
1174
1264
  }
1175
1265
 
1176
- export interface AbaFinancialAddress {
1266
+ export interface SortCodeFinancialAddress {
1177
1267
  /**
1178
1268
  * Name of the account holder.
1179
1269
  */
1180
1270
  account_holder_name: string;
1181
1271
 
1182
1272
  /**
1183
- * Bank account number.
1273
+ * UK account number (8 digits).
1184
1274
  */
1185
1275
  account_number: string;
1186
1276
 
1187
1277
  /**
1188
- * ABA routing number (9 digits).
1278
+ * UK sort code (6 digits).
1189
1279
  */
1190
- routing_number: string;
1280
+ sort_code: string;
1191
1281
 
1192
1282
  /**
1193
- * Discriminator for ABA wire financial address.
1283
+ * Discriminator for UK sort code financial address.
1194
1284
  */
1195
- type: 'aba';
1285
+ type: 'sort_code';
1196
1286
  }
1197
1287
 
1198
1288
  export interface BicFinancialAddress {
@@ -1206,6 +1296,11 @@ export namespace AccountUnfreezeResponse {
1206
1296
  */
1207
1297
  account_number: string;
1208
1298
 
1299
+ /**
1300
+ * Whether the account is a checking or a savings account, or null if not provided.
1301
+ */
1302
+ account_type: 'checking' | 'savings' | null;
1303
+
1209
1304
  /**
1210
1305
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
1211
1306
  */
@@ -1269,6 +1364,11 @@ export interface AccountCreateParams {
1269
1364
  }
1270
1365
 
1271
1366
  export interface AccountListParams extends CursorPageParams {
1367
+ /**
1368
+ * ID of the account program to list accounts for.
1369
+ */
1370
+ account_program_id: string;
1371
+
1272
1372
  /**
1273
1373
  * Filter by account holder name (case-insensitive phrase match).
1274
1374
  */
@@ -1279,11 +1379,6 @@ export interface AccountListParams extends CursorPageParams {
1279
1379
  */
1280
1380
  account_number?: string;
1281
1381
 
1282
- /**
1283
- * ID of the account program to list accounts for.
1284
- */
1285
- account_program_id?: string;
1286
-
1287
1382
  /**
1288
1383
  * Filter by account status.
1289
1384
  */