@augustusbank/typescript-sdk 0.32.0 → 0.34.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 +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +36 -12
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +36 -12
- package/resources/accounts.d.ts.map +1 -1
- package/resources/api-keys.d.mts +1 -1
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +1 -1
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/counterparties.d.mts +227 -12
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +227 -12
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/counterparties.js +16 -0
- package/resources/counterparties.js.map +1 -1
- package/resources/counterparties.mjs +16 -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 +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/payout-tracking-events.d.mts +454 -0
- package/resources/payout-tracking-events.d.mts.map +1 -0
- package/resources/payout-tracking-events.d.ts +454 -0
- package/resources/payout-tracking-events.d.ts.map +1 -0
- package/resources/payout-tracking-events.js +23 -0
- package/resources/payout-tracking-events.js.map +1 -0
- package/resources/payout-tracking-events.mjs +19 -0
- package/resources/payout-tracking-events.mjs.map +1 -0
- package/resources/payouts.d.mts +8 -16
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +8 -16
- package/resources/payouts.d.ts.map +1 -1
- package/resources/scopes.d.mts +1 -1
- package/resources/scopes.d.mts.map +1 -1
- package/resources/scopes.d.ts +1 -1
- package/resources/scopes.d.ts.map +1 -1
- package/resources/transactions.d.mts +0 -10
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +0 -10
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +8 -8
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +8 -8
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhooks.d.mts +254 -34
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +254 -34
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +21 -0
- package/src/resources/accounts.ts +36 -12
- package/src/resources/api-keys.ts +1 -0
- package/src/resources/counterparties.ts +536 -12
- package/src/resources/events.ts +3 -0
- package/src/resources/index.ts +9 -0
- package/src/resources/payout-tracking-events.ts +587 -0
- package/src/resources/payouts.ts +4 -36
- package/src/resources/scopes.ts +2 -1
- package/src/resources/transactions.ts +0 -12
- package/src/resources/webhook-subscriptions.ts +8 -0
- package/src/resources/webhooks.ts +300 -57
- 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
package/src/client.ts
CHANGED
|
@@ -67,6 +67,7 @@ import {
|
|
|
67
67
|
} from './resources/conversions';
|
|
68
68
|
import {
|
|
69
69
|
Counterparties,
|
|
70
|
+
CounterpartyActivateResponse,
|
|
70
71
|
CounterpartyCreateParams,
|
|
71
72
|
CounterpartyCreateResponse,
|
|
72
73
|
CounterpartyListParams,
|
|
@@ -90,6 +91,13 @@ import {
|
|
|
90
91
|
EventRetrieveResponse,
|
|
91
92
|
Events,
|
|
92
93
|
} from './resources/events';
|
|
94
|
+
import {
|
|
95
|
+
PayoutTrackingEventListParams,
|
|
96
|
+
PayoutTrackingEventListResponse,
|
|
97
|
+
PayoutTrackingEventListResponsesCursorPage,
|
|
98
|
+
PayoutTrackingEventRetrieveResponse,
|
|
99
|
+
PayoutTrackingEvents,
|
|
100
|
+
} from './resources/payout-tracking-events';
|
|
93
101
|
import {
|
|
94
102
|
PayoutCreateParams,
|
|
95
103
|
PayoutCreateResponse,
|
|
@@ -155,6 +163,7 @@ import {
|
|
|
155
163
|
PayoutReturnedWebhookEvent,
|
|
156
164
|
PayoutSentWebhookEvent,
|
|
157
165
|
PayoutSubmittedWebhookEvent,
|
|
166
|
+
PayoutTrackingEventCreatedWebhookEvent,
|
|
158
167
|
PingTestWebhookEvent,
|
|
159
168
|
ReturnFailedWebhookEvent,
|
|
160
169
|
ReturnInitiatedWebhookEvent,
|
|
@@ -957,6 +966,7 @@ export class Augustus {
|
|
|
957
966
|
|
|
958
967
|
webhooks: API.Webhooks = new API.Webhooks(this);
|
|
959
968
|
payouts: API.Payouts = new API.Payouts(this);
|
|
969
|
+
payoutTrackingEvents: API.PayoutTrackingEvents = new API.PayoutTrackingEvents(this);
|
|
960
970
|
deposits: API.Deposits = new API.Deposits(this);
|
|
961
971
|
simulations: API.Simulations = new API.Simulations(this);
|
|
962
972
|
transactions: API.Transactions = new API.Transactions(this);
|
|
@@ -977,6 +987,7 @@ export class Augustus {
|
|
|
977
987
|
|
|
978
988
|
Augustus.Webhooks = Webhooks;
|
|
979
989
|
Augustus.Payouts = Payouts;
|
|
990
|
+
Augustus.PayoutTrackingEvents = PayoutTrackingEvents;
|
|
980
991
|
Augustus.Deposits = Deposits;
|
|
981
992
|
Augustus.Simulations = Simulations;
|
|
982
993
|
Augustus.Transactions = Transactions;
|
|
@@ -1024,6 +1035,7 @@ export declare namespace Augustus {
|
|
|
1024
1035
|
type CounterpartyBlockedWebhookEvent as CounterpartyBlockedWebhookEvent,
|
|
1025
1036
|
type CounterpartyUnblockedWebhookEvent as CounterpartyUnblockedWebhookEvent,
|
|
1026
1037
|
type CounterpartyUpdatedWebhookEvent as CounterpartyUpdatedWebhookEvent,
|
|
1038
|
+
type PayoutTrackingEventCreatedWebhookEvent as PayoutTrackingEventCreatedWebhookEvent,
|
|
1027
1039
|
type PingTestWebhookEvent as PingTestWebhookEvent,
|
|
1028
1040
|
type UnwrapWebhookEvent as UnwrapWebhookEvent,
|
|
1029
1041
|
};
|
|
@@ -1038,6 +1050,14 @@ export declare namespace Augustus {
|
|
|
1038
1050
|
type PayoutListParams as PayoutListParams,
|
|
1039
1051
|
};
|
|
1040
1052
|
|
|
1053
|
+
export {
|
|
1054
|
+
PayoutTrackingEvents as PayoutTrackingEvents,
|
|
1055
|
+
type PayoutTrackingEventRetrieveResponse as PayoutTrackingEventRetrieveResponse,
|
|
1056
|
+
type PayoutTrackingEventListResponse as PayoutTrackingEventListResponse,
|
|
1057
|
+
type PayoutTrackingEventListResponsesCursorPage as PayoutTrackingEventListResponsesCursorPage,
|
|
1058
|
+
type PayoutTrackingEventListParams as PayoutTrackingEventListParams,
|
|
1059
|
+
};
|
|
1060
|
+
|
|
1041
1061
|
export {
|
|
1042
1062
|
Deposits as Deposits,
|
|
1043
1063
|
type DepositRetrieveResponse as DepositRetrieveResponse,
|
|
@@ -1112,6 +1132,7 @@ export declare namespace Augustus {
|
|
|
1112
1132
|
type CounterpartyRetrieveResponse as CounterpartyRetrieveResponse,
|
|
1113
1133
|
type CounterpartyUpdateResponse as CounterpartyUpdateResponse,
|
|
1114
1134
|
type CounterpartyListResponse as CounterpartyListResponse,
|
|
1135
|
+
type CounterpartyActivateResponse as CounterpartyActivateResponse,
|
|
1115
1136
|
type CounterpartyListResponsesCursorPage as CounterpartyListResponsesCursorPage,
|
|
1116
1137
|
type CounterpartyCreateParams as CounterpartyCreateParams,
|
|
1117
1138
|
type CounterpartyUpdateParams as CounterpartyUpdateParams,
|
|
@@ -147,7 +147,10 @@ export interface AccountCreateResponse {
|
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
150
|
-
* this account can send or receive funds.
|
|
150
|
+
* this account can send or receive funds. US dollar accounts that use an ABA
|
|
151
|
+
* routing number also include a companion `bic` entry for inbound wires: it
|
|
152
|
+
* carries the bank’s SWIFT code, reuses the same `account_number` as the `aba`
|
|
153
|
+
* entry, and leaves `local_bank_code` null.
|
|
151
154
|
*/
|
|
152
155
|
financial_addresses: Array<
|
|
153
156
|
| AccountCreateResponse.AbaFinancialAddress
|
|
@@ -158,7 +161,8 @@ export interface AccountCreateResponse {
|
|
|
158
161
|
>;
|
|
159
162
|
|
|
160
163
|
/**
|
|
161
|
-
* Human-readable label for the account.
|
|
164
|
+
* Human-readable label for the account. For FBO accounts the label is set to the
|
|
165
|
+
* account holder’s name.
|
|
162
166
|
*/
|
|
163
167
|
label: string;
|
|
164
168
|
|
|
@@ -344,7 +348,10 @@ export interface AccountRetrieveResponse {
|
|
|
344
348
|
|
|
345
349
|
/**
|
|
346
350
|
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
347
|
-
* this account can send or receive funds.
|
|
351
|
+
* this account can send or receive funds. US dollar accounts that use an ABA
|
|
352
|
+
* routing number also include a companion `bic` entry for inbound wires: it
|
|
353
|
+
* carries the bank’s SWIFT code, reuses the same `account_number` as the `aba`
|
|
354
|
+
* entry, and leaves `local_bank_code` null.
|
|
348
355
|
*/
|
|
349
356
|
financial_addresses: Array<
|
|
350
357
|
| AccountRetrieveResponse.AbaFinancialAddress
|
|
@@ -355,7 +362,8 @@ export interface AccountRetrieveResponse {
|
|
|
355
362
|
>;
|
|
356
363
|
|
|
357
364
|
/**
|
|
358
|
-
* Human-readable label for the account.
|
|
365
|
+
* Human-readable label for the account. For FBO accounts the label is set to the
|
|
366
|
+
* account holder’s name.
|
|
359
367
|
*/
|
|
360
368
|
label: string;
|
|
361
369
|
|
|
@@ -541,7 +549,10 @@ export interface AccountListResponse {
|
|
|
541
549
|
|
|
542
550
|
/**
|
|
543
551
|
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
544
|
-
* this account can send or receive funds.
|
|
552
|
+
* this account can send or receive funds. US dollar accounts that use an ABA
|
|
553
|
+
* routing number also include a companion `bic` entry for inbound wires: it
|
|
554
|
+
* carries the bank’s SWIFT code, reuses the same `account_number` as the `aba`
|
|
555
|
+
* entry, and leaves `local_bank_code` null.
|
|
545
556
|
*/
|
|
546
557
|
financial_addresses: Array<
|
|
547
558
|
| AccountListResponse.AbaFinancialAddress
|
|
@@ -552,7 +563,8 @@ export interface AccountListResponse {
|
|
|
552
563
|
>;
|
|
553
564
|
|
|
554
565
|
/**
|
|
555
|
-
* Human-readable label for the account.
|
|
566
|
+
* Human-readable label for the account. For FBO accounts the label is set to the
|
|
567
|
+
* account holder’s name.
|
|
556
568
|
*/
|
|
557
569
|
label: string;
|
|
558
570
|
|
|
@@ -738,7 +750,10 @@ export interface AccountCloseResponse {
|
|
|
738
750
|
|
|
739
751
|
/**
|
|
740
752
|
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
741
|
-
* this account can send or receive funds.
|
|
753
|
+
* this account can send or receive funds. US dollar accounts that use an ABA
|
|
754
|
+
* routing number also include a companion `bic` entry for inbound wires: it
|
|
755
|
+
* carries the bank’s SWIFT code, reuses the same `account_number` as the `aba`
|
|
756
|
+
* entry, and leaves `local_bank_code` null.
|
|
742
757
|
*/
|
|
743
758
|
financial_addresses: Array<
|
|
744
759
|
| AccountCloseResponse.AbaFinancialAddress
|
|
@@ -749,7 +764,8 @@ export interface AccountCloseResponse {
|
|
|
749
764
|
>;
|
|
750
765
|
|
|
751
766
|
/**
|
|
752
|
-
* Human-readable label for the account.
|
|
767
|
+
* Human-readable label for the account. For FBO accounts the label is set to the
|
|
768
|
+
* account holder’s name.
|
|
753
769
|
*/
|
|
754
770
|
label: string;
|
|
755
771
|
|
|
@@ -935,7 +951,10 @@ export interface AccountFreezeResponse {
|
|
|
935
951
|
|
|
936
952
|
/**
|
|
937
953
|
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
938
|
-
* this account can send or receive funds.
|
|
954
|
+
* this account can send or receive funds. US dollar accounts that use an ABA
|
|
955
|
+
* routing number also include a companion `bic` entry for inbound wires: it
|
|
956
|
+
* carries the bank’s SWIFT code, reuses the same `account_number` as the `aba`
|
|
957
|
+
* entry, and leaves `local_bank_code` null.
|
|
939
958
|
*/
|
|
940
959
|
financial_addresses: Array<
|
|
941
960
|
| AccountFreezeResponse.AbaFinancialAddress
|
|
@@ -946,7 +965,8 @@ export interface AccountFreezeResponse {
|
|
|
946
965
|
>;
|
|
947
966
|
|
|
948
967
|
/**
|
|
949
|
-
* Human-readable label for the account.
|
|
968
|
+
* Human-readable label for the account. For FBO accounts the label is set to the
|
|
969
|
+
* account holder’s name.
|
|
950
970
|
*/
|
|
951
971
|
label: string;
|
|
952
972
|
|
|
@@ -1170,7 +1190,10 @@ export interface AccountUnfreezeResponse {
|
|
|
1170
1190
|
|
|
1171
1191
|
/**
|
|
1172
1192
|
* Payment identifiers (e.g. IBAN, account number, wallet address) through which
|
|
1173
|
-
* this account can send or receive funds.
|
|
1193
|
+
* this account can send or receive funds. US dollar accounts that use an ABA
|
|
1194
|
+
* routing number also include a companion `bic` entry for inbound wires: it
|
|
1195
|
+
* carries the bank’s SWIFT code, reuses the same `account_number` as the `aba`
|
|
1196
|
+
* entry, and leaves `local_bank_code` null.
|
|
1174
1197
|
*/
|
|
1175
1198
|
financial_addresses: Array<
|
|
1176
1199
|
| AccountUnfreezeResponse.AbaFinancialAddress
|
|
@@ -1181,7 +1204,8 @@ export interface AccountUnfreezeResponse {
|
|
|
1181
1204
|
>;
|
|
1182
1205
|
|
|
1183
1206
|
/**
|
|
1184
|
-
* Human-readable label for the account.
|
|
1207
|
+
* Human-readable label for the account. For FBO accounts the label is set to the
|
|
1208
|
+
* account holder’s name.
|
|
1185
1209
|
*/
|
|
1186
1210
|
label: string;
|
|
1187
1211
|
|