@augustusbank/typescript-sdk 0.32.0 → 0.33.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 (76) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +7 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/accounts.d.mts +24 -6
  12. package/resources/accounts.d.mts.map +1 -1
  13. package/resources/accounts.d.ts +24 -6
  14. package/resources/accounts.d.ts.map +1 -1
  15. package/resources/api-keys.d.mts +1 -1
  16. package/resources/api-keys.d.mts.map +1 -1
  17. package/resources/api-keys.d.ts +1 -1
  18. package/resources/api-keys.d.ts.map +1 -1
  19. package/resources/counterparties.d.mts +227 -12
  20. package/resources/counterparties.d.mts.map +1 -1
  21. package/resources/counterparties.d.ts +227 -12
  22. package/resources/counterparties.d.ts.map +1 -1
  23. package/resources/counterparties.js +16 -0
  24. package/resources/counterparties.js.map +1 -1
  25. package/resources/counterparties.mjs +16 -0
  26. package/resources/counterparties.mjs.map +1 -1
  27. package/resources/events.d.mts +3 -3
  28. package/resources/events.d.mts.map +1 -1
  29. package/resources/events.d.ts +3 -3
  30. package/resources/events.d.ts.map +1 -1
  31. package/resources/index.d.mts +3 -2
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +3 -2
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js +3 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +1 -0
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/payout-tracking-events.d.mts +358 -0
  40. package/resources/payout-tracking-events.d.mts.map +1 -0
  41. package/resources/payout-tracking-events.d.ts +358 -0
  42. package/resources/payout-tracking-events.d.ts.map +1 -0
  43. package/resources/payout-tracking-events.js +23 -0
  44. package/resources/payout-tracking-events.js.map +1 -0
  45. package/resources/payout-tracking-events.mjs +19 -0
  46. package/resources/payout-tracking-events.mjs.map +1 -0
  47. package/resources/scopes.d.mts +1 -1
  48. package/resources/scopes.d.mts.map +1 -1
  49. package/resources/scopes.d.ts +1 -1
  50. package/resources/scopes.d.ts.map +1 -1
  51. package/resources/transactions.d.mts +4 -4
  52. package/resources/transactions.d.ts +4 -4
  53. package/resources/webhook-subscriptions.d.mts +8 -8
  54. package/resources/webhook-subscriptions.d.mts.map +1 -1
  55. package/resources/webhook-subscriptions.d.ts +8 -8
  56. package/resources/webhook-subscriptions.d.ts.map +1 -1
  57. package/resources/webhooks.d.mts +196 -14
  58. package/resources/webhooks.d.mts.map +1 -1
  59. package/resources/webhooks.d.ts +196 -14
  60. package/resources/webhooks.d.ts.map +1 -1
  61. package/src/client.ts +21 -0
  62. package/src/resources/accounts.ts +24 -6
  63. package/src/resources/api-keys.ts +1 -0
  64. package/src/resources/counterparties.ts +536 -12
  65. package/src/resources/events.ts +3 -0
  66. package/src/resources/index.ts +9 -0
  67. package/src/resources/payout-tracking-events.ts +479 -0
  68. package/src/resources/scopes.ts +2 -1
  69. package/src/resources/transactions.ts +4 -4
  70. package/src/resources/webhook-subscriptions.ts +8 -0
  71. package/src/resources/webhooks.ts +241 -12
  72. package/src/version.ts +1 -1
  73. package/version.d.mts +1 -1
  74. package/version.d.ts +1 -1
  75. package/version.js +1 -1
  76. package/version.mjs +1 -1
@@ -11746,9 +11746,9 @@ export namespace CounterpartyPendingWebhookEvent {
11746
11746
  email: string | null;
11747
11747
 
11748
11748
  /**
11749
- * Whether the counterparty is a business or an individual.
11749
+ * Classification of the counterparty.
11750
11750
  */
11751
- entity_type: 'business' | 'individual';
11751
+ entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
11752
11752
 
11753
11753
  /**
11754
11754
  * Financial address of the counterparty.
@@ -12279,9 +12279,9 @@ export namespace CounterpartyActiveWebhookEvent {
12279
12279
  email: string | null;
12280
12280
 
12281
12281
  /**
12282
- * Whether the counterparty is a business or an individual.
12282
+ * Classification of the counterparty.
12283
12283
  */
12284
- entity_type: 'business' | 'individual';
12284
+ entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
12285
12285
 
12286
12286
  /**
12287
12287
  * Financial address of the counterparty.
@@ -12812,9 +12812,9 @@ export namespace CounterpartyRejectedWebhookEvent {
12812
12812
  email: string | null;
12813
12813
 
12814
12814
  /**
12815
- * Whether the counterparty is a business or an individual.
12815
+ * Classification of the counterparty.
12816
12816
  */
12817
- entity_type: 'business' | 'individual';
12817
+ entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
12818
12818
 
12819
12819
  /**
12820
12820
  * Financial address of the counterparty.
@@ -13345,9 +13345,9 @@ export namespace CounterpartyBlockedWebhookEvent {
13345
13345
  email: string | null;
13346
13346
 
13347
13347
  /**
13348
- * Whether the counterparty is a business or an individual.
13348
+ * Classification of the counterparty.
13349
13349
  */
13350
- entity_type: 'business' | 'individual';
13350
+ entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
13351
13351
 
13352
13352
  /**
13353
13353
  * Financial address of the counterparty.
@@ -13878,9 +13878,9 @@ export namespace CounterpartyUnblockedWebhookEvent {
13878
13878
  email: string | null;
13879
13879
 
13880
13880
  /**
13881
- * Whether the counterparty is a business or an individual.
13881
+ * Classification of the counterparty.
13882
13882
  */
13883
- entity_type: 'business' | 'individual';
13883
+ entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
13884
13884
 
13885
13885
  /**
13886
13886
  * Financial address of the counterparty.
@@ -14411,9 +14411,9 @@ export namespace CounterpartyUpdatedWebhookEvent {
14411
14411
  email: string | null;
14412
14412
 
14413
14413
  /**
14414
- * Whether the counterparty is a business or an individual.
14414
+ * Classification of the counterparty.
14415
14415
  */
14416
- entity_type: 'business' | 'individual';
14416
+ entity_type: 'business' | 'individual' | 'non_profit' | 'sole_proprietor';
14417
14417
 
14418
14418
  /**
14419
14419
  * Financial address of the counterparty.
@@ -14891,6 +14891,233 @@ export namespace CounterpartyUpdatedWebhookEvent {
14891
14891
  }
14892
14892
  }
14893
14893
 
14894
+ export interface PayoutTrackingEventCreatedWebhookEvent {
14895
+ /**
14896
+ * Unique identifier for the event. Stable across retries.
14897
+ */
14898
+ id: string;
14899
+
14900
+ /**
14901
+ * API version the payload was rendered at. Stable across retries and redeliveries.
14902
+ */
14903
+ api_version: string;
14904
+
14905
+ /**
14906
+ * ISO 8601 UTC timestamp when the event was created.
14907
+ */
14908
+ date: string;
14909
+
14910
+ /**
14911
+ * Full resource snapshot at the time of the event.
14912
+ */
14913
+ payload: PayoutTrackingEventCreatedWebhookEvent.Payload;
14914
+
14915
+ /**
14916
+ * Event type in resource.action format.
14917
+ */
14918
+ type: 'payout_tracking_event.created';
14919
+ }
14920
+
14921
+ export namespace PayoutTrackingEventCreatedWebhookEvent {
14922
+ /**
14923
+ * Full resource snapshot at the time of the event.
14924
+ */
14925
+ export interface Payload {
14926
+ /**
14927
+ * Unique identifier of the tracking event.
14928
+ */
14929
+ id: string;
14930
+
14931
+ /**
14932
+ * Amount credited to the beneficiary. Set only on a credited event, otherwise
14933
+ * null.
14934
+ */
14935
+ beneficiary_amount: Payload.BeneficiaryAmount | null;
14936
+
14937
+ /**
14938
+ * ISO 8601 UTC timestamp when Augustus recorded the event.
14939
+ */
14940
+ created_at: string;
14941
+
14942
+ /**
14943
+ * Fee deducted at this step. Null when none was reported.
14944
+ */
14945
+ fee: Payload.Fee | null;
14946
+
14947
+ /**
14948
+ * Institution that acted on or reported this step. Null when unknown.
14949
+ */
14950
+ institution: Payload.Institution | null;
14951
+
14952
+ /**
14953
+ * Whether Augustus considers delivery finished. A later event, such as returned,
14954
+ * can still follow.
14955
+ */
14956
+ is_terminal: boolean;
14957
+
14958
+ /**
14959
+ * Normalized point in the payout journey. New values may be added.
14960
+ */
14961
+ milestone:
14962
+ | 'initiated'
14963
+ | 'submitted'
14964
+ | 'sent'
14965
+ | 'failed'
14966
+ | 'returned'
14967
+ | 'accepted'
14968
+ | 'settled'
14969
+ | 'forwarded'
14970
+ | 'credited'
14971
+ | 'rejected'
14972
+ | 'returning'
14973
+ | 'visibility_lost'
14974
+ | 'other';
14975
+
14976
+ /**
14977
+ * Raw network status. Null when the step has none.
14978
+ */
14979
+ network_status: Payload.NetworkStatus | null;
14980
+
14981
+ /**
14982
+ * ISO 8601 UTC timestamp when the step happened. Null when the source has no
14983
+ * timestamp. Can be out of order with sequence.
14984
+ */
14985
+ occurred_at: string | null;
14986
+
14987
+ /**
14988
+ * ID of the payout this event belongs to.
14989
+ */
14990
+ payout_id: string;
14991
+
14992
+ /**
14993
+ * How far Augustus can follow the payout: end_to_end when the rail confirms the
14994
+ * beneficiary credit, network when it only confirms settlement. New values may be
14995
+ * added.
14996
+ */
14997
+ scope: 'network' | 'end_to_end';
14998
+
14999
+ /**
15000
+ * Gap-free counter per payout, in the order Augustus recorded the events. A gap
15001
+ * means you missed a recorded event, such as a dropped webhook. A sequence without
15002
+ * gaps does not mean every network step was observed.
15003
+ */
15004
+ sequence: number;
15005
+
15006
+ /**
15007
+ * Where Augustus learned this step: augustus for steps Augustus records itself,
15008
+ * swift_gpi for SWIFT gpi statuses, other for any other source. New values may be
15009
+ * added.
15010
+ */
15011
+ source: 'augustus' | 'swift_gpi' | 'other';
15012
+
15013
+ /**
15014
+ * Reason for the current state. Null when none applies.
15015
+ */
15016
+ status_reason: Payload.StatusReason | null;
15017
+
15018
+ /**
15019
+ * Resource type discriminator.
15020
+ */
15021
+ type: 'payout_tracking_event';
15022
+ }
15023
+
15024
+ export namespace Payload {
15025
+ /**
15026
+ * Amount credited to the beneficiary. Set only on a credited event, otherwise
15027
+ * null.
15028
+ */
15029
+ export interface BeneficiaryAmount {
15030
+ /**
15031
+ * Credited amount as a string decimal (e.g. "100.50").
15032
+ */
15033
+ amount: string;
15034
+
15035
+ /**
15036
+ * ISO 4217 currency code of the credited amount.
15037
+ */
15038
+ currency: string;
15039
+ }
15040
+
15041
+ /**
15042
+ * Fee deducted at this step. Null when none was reported.
15043
+ */
15044
+ export interface Fee {
15045
+ /**
15046
+ * Fee amount as a string decimal (e.g. "10.00").
15047
+ */
15048
+ amount: string;
15049
+
15050
+ /**
15051
+ * Who bears the charges under the payment charge agreement: debtor (OUR), creditor
15052
+ * (BEN), shared (SHA), or other for any other agreement. New values may be added.
15053
+ */
15054
+ borne_by: 'debtor' | 'creditor' | 'shared' | 'other';
15055
+
15056
+ /**
15057
+ * ISO 4217 currency code of the fee.
15058
+ */
15059
+ currency: string;
15060
+ }
15061
+
15062
+ /**
15063
+ * Institution that acted on or reported this step. Null when unknown.
15064
+ */
15065
+ export interface Institution {
15066
+ /**
15067
+ * Identifier of the institution, typed by scheme.
15068
+ */
15069
+ identifier: Institution.Identifier;
15070
+ }
15071
+
15072
+ export namespace Institution {
15073
+ /**
15074
+ * Identifier of the institution, typed by scheme.
15075
+ */
15076
+ export interface Identifier {
15077
+ /**
15078
+ * Identifier scheme. Only bic today.
15079
+ */
15080
+ type: 'bic';
15081
+
15082
+ /**
15083
+ * ISO 9362 Bank Identifier Code (8 or 11 characters).
15084
+ */
15085
+ value: string;
15086
+ }
15087
+ }
15088
+
15089
+ /**
15090
+ * Raw network status. Null when the step has none.
15091
+ */
15092
+ export interface NetworkStatus {
15093
+ /**
15094
+ * Status code reported by the network, such as ACSP, ACSC, ACCC or RJCT.
15095
+ */
15096
+ code: string;
15097
+
15098
+ /**
15099
+ * Reason code for the status, such as G000. Null when the network reports none.
15100
+ */
15101
+ reason_code: string | null;
15102
+ }
15103
+
15104
+ /**
15105
+ * Reason for the current state. Null when none applies.
15106
+ */
15107
+ export interface StatusReason {
15108
+ /**
15109
+ * Normalized reason code assigned by Augustus. New codes may be added.
15110
+ */
15111
+ code: string;
15112
+
15113
+ /**
15114
+ * Explanation of the reason code, written by Augustus.
15115
+ */
15116
+ description: string;
15117
+ }
15118
+ }
15119
+ }
15120
+
14894
15121
  export interface PingTestWebhookEvent {
14895
15122
  /**
14896
15123
  * Unique identifier for the event. Stable across retries.
@@ -14974,6 +15201,7 @@ export type UnwrapWebhookEvent =
14974
15201
  | CounterpartyBlockedWebhookEvent
14975
15202
  | CounterpartyUnblockedWebhookEvent
14976
15203
  | CounterpartyUpdatedWebhookEvent
15204
+ | PayoutTrackingEventCreatedWebhookEvent
14977
15205
  | PingTestWebhookEvent;
14978
15206
 
14979
15207
  export declare namespace Webhooks {
@@ -15000,6 +15228,7 @@ export declare namespace Webhooks {
15000
15228
  type CounterpartyBlockedWebhookEvent as CounterpartyBlockedWebhookEvent,
15001
15229
  type CounterpartyUnblockedWebhookEvent as CounterpartyUnblockedWebhookEvent,
15002
15230
  type CounterpartyUpdatedWebhookEvent as CounterpartyUpdatedWebhookEvent,
15231
+ type PayoutTrackingEventCreatedWebhookEvent as PayoutTrackingEventCreatedWebhookEvent,
15003
15232
  type PingTestWebhookEvent as PingTestWebhookEvent,
15004
15233
  type UnwrapWebhookEvent as UnwrapWebhookEvent,
15005
15234
  };
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.32.0'; // x-release-please-version
1
+ export const VERSION = '0.33.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.32.0";
1
+ export declare const VERSION = "0.33.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.32.0";
1
+ export declare const VERSION = "0.33.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.32.0'; // x-release-please-version
4
+ exports.VERSION = '0.33.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.32.0'; // x-release-please-version
1
+ export const VERSION = '0.33.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map