@getivy/node-sdk 2.0.0 → 2.1.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 (112) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +0 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +0 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +0 -1
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +0 -1
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +1 -3
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +0 -1
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/orders.d.mts +3 -3
  20. package/resources/orders.d.mts.map +1 -1
  21. package/resources/orders.d.ts +3 -3
  22. package/resources/orders.d.ts.map +1 -1
  23. package/resources/transactions.d.mts +5 -0
  24. package/resources/transactions.d.mts.map +1 -1
  25. package/resources/transactions.d.ts +5 -0
  26. package/resources/transactions.d.ts.map +1 -1
  27. package/resources/webhook/subscription.d.mts +3 -0
  28. package/resources/webhook/subscription.d.mts.map +1 -1
  29. package/resources/webhook/subscription.d.ts +3 -0
  30. package/resources/webhook/subscription.d.ts.map +1 -1
  31. package/src/client.ts +0 -5
  32. package/src/resources/index.ts +0 -1
  33. package/src/resources/orders.ts +3 -0
  34. package/src/resources/transactions.ts +6 -0
  35. package/src/resources/webhook/subscription.ts +6 -0
  36. package/src/version.ts +1 -1
  37. package/version.d.mts +1 -1
  38. package/version.d.ts +1 -1
  39. package/version.js +1 -1
  40. package/version.mjs +1 -1
  41. package/resources/data/accounts.d.mts +0 -95
  42. package/resources/data/accounts.d.mts.map +0 -1
  43. package/resources/data/accounts.d.ts +0 -95
  44. package/resources/data/accounts.d.ts.map +0 -1
  45. package/resources/data/accounts.js +0 -15
  46. package/resources/data/accounts.js.map +0 -1
  47. package/resources/data/accounts.mjs +0 -11
  48. package/resources/data/accounts.mjs.map +0 -1
  49. package/resources/data/balances.d.mts +0 -49
  50. package/resources/data/balances.d.mts.map +0 -1
  51. package/resources/data/balances.d.ts +0 -49
  52. package/resources/data/balances.d.ts.map +0 -1
  53. package/resources/data/balances.js +0 -15
  54. package/resources/data/balances.js.map +0 -1
  55. package/resources/data/balances.mjs +0 -11
  56. package/resources/data/balances.mjs.map +0 -1
  57. package/resources/data/consent.d.mts +0 -81
  58. package/resources/data/consent.d.mts.map +0 -1
  59. package/resources/data/consent.d.ts +0 -81
  60. package/resources/data/consent.d.ts.map +0 -1
  61. package/resources/data/consent.js +0 -21
  62. package/resources/data/consent.js.map +0 -1
  63. package/resources/data/consent.mjs +0 -17
  64. package/resources/data/consent.mjs.map +0 -1
  65. package/resources/data/data.d.mts +0 -26
  66. package/resources/data/data.d.mts.map +0 -1
  67. package/resources/data/data.d.ts +0 -26
  68. package/resources/data/data.d.ts.map +0 -1
  69. package/resources/data/data.js +0 -33
  70. package/resources/data/data.js.map +0 -1
  71. package/resources/data/data.mjs +0 -28
  72. package/resources/data/data.mjs.map +0 -1
  73. package/resources/data/index.d.mts +0 -7
  74. package/resources/data/index.d.mts.map +0 -1
  75. package/resources/data/index.d.ts +0 -7
  76. package/resources/data/index.d.ts.map +0 -1
  77. package/resources/data/index.js +0 -17
  78. package/resources/data/index.js.map +0 -1
  79. package/resources/data/index.mjs +0 -8
  80. package/resources/data/index.mjs.map +0 -1
  81. package/resources/data/session.d.mts +0 -259
  82. package/resources/data/session.d.mts.map +0 -1
  83. package/resources/data/session.d.ts +0 -259
  84. package/resources/data/session.d.ts.map +0 -1
  85. package/resources/data/session.js +0 -21
  86. package/resources/data/session.js.map +0 -1
  87. package/resources/data/session.mjs +0 -17
  88. package/resources/data/session.mjs.map +0 -1
  89. package/resources/data/transactions.d.mts +0 -62
  90. package/resources/data/transactions.d.mts.map +0 -1
  91. package/resources/data/transactions.d.ts +0 -62
  92. package/resources/data/transactions.d.ts.map +0 -1
  93. package/resources/data/transactions.js +0 -16
  94. package/resources/data/transactions.js.map +0 -1
  95. package/resources/data/transactions.mjs +0 -12
  96. package/resources/data/transactions.mjs.map +0 -1
  97. package/resources/data.d.mts +0 -2
  98. package/resources/data.d.mts.map +0 -1
  99. package/resources/data.d.ts +0 -2
  100. package/resources/data.d.ts.map +0 -1
  101. package/resources/data.js +0 -6
  102. package/resources/data.js.map +0 -1
  103. package/resources/data.mjs +0 -3
  104. package/resources/data.mjs.map +0 -1
  105. package/src/resources/data/accounts.ts +0 -128
  106. package/src/resources/data/balances.ts +0 -61
  107. package/src/resources/data/consent.ts +0 -108
  108. package/src/resources/data/data.ts +0 -75
  109. package/src/resources/data/index.ts +0 -20
  110. package/src/resources/data/session.ts +0 -1315
  111. package/src/resources/data/transactions.ts +0 -80
  112. package/src/resources/data.ts +0 -3
package/src/client.ts CHANGED
@@ -102,7 +102,6 @@ import {
102
102
  Subaccounts,
103
103
  } from './resources/subaccounts';
104
104
  import { TransactionListParams, TransactionListResponse, Transactions } from './resources/transactions';
105
- import { Data } from './resources/data/data';
106
105
  import { Webhook, WebhookTriggerParams, WebhookTriggerResponse } from './resources/webhook/webhook';
107
106
  import { type Fetch } from './internal/builtin-types';
108
107
  import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
@@ -831,7 +830,6 @@ export class Ivy {
831
830
 
832
831
  banks: API.Banks = new API.Banks(this);
833
832
  checkoutsession: API.Checkoutsession = new API.Checkoutsession(this);
834
- data: API.Data = new API.Data(this);
835
833
  customers: API.Customers = new API.Customers(this);
836
834
  orders: API.Orders = new API.Orders(this);
837
835
  deposits: API.Deposits = new API.Deposits(this);
@@ -850,7 +848,6 @@ export class Ivy {
850
848
 
851
849
  Ivy.Banks = Banks;
852
850
  Ivy.Checkoutsession = Checkoutsession;
853
- Ivy.Data = Data;
854
851
  Ivy.Customers = Customers;
855
852
  Ivy.Orders = Orders;
856
853
  Ivy.Deposits = Deposits;
@@ -889,8 +886,6 @@ export declare namespace Ivy {
889
886
  type CheckoutsessionExpireParams as CheckoutsessionExpireParams,
890
887
  };
891
888
 
892
- export { Data as Data };
893
-
894
889
  export {
895
890
  Customers as Customers,
896
891
  type CustomerCreateResponse as CustomerCreateResponse,
@@ -34,7 +34,6 @@ export {
34
34
  type CustomerDeleteParams,
35
35
  type CustomerSearchParams,
36
36
  } from './customers';
37
- export { Data } from './data/data';
38
37
  export { Deposits, type DepositRetrieveResponse, type DepositRetrieveParams } from './deposits';
39
38
  export {
40
39
  Fx,
@@ -1171,6 +1171,7 @@ export namespace OrderCreateResponse {
1171
1171
  | 'DISPUTE'
1172
1172
  | 'PENDING_PAYMENT_ATTEMPTS_FOUND'
1173
1173
  | 'AML_FREEZE'
1174
+ | 'AML_APPROVE'
1174
1175
  | 'MANUAL_FREEZE'
1175
1176
  | 'MANUAL_UNFREEZE'
1176
1177
  | 'ORDER_MANUALLY_REOPENED'
@@ -2335,6 +2336,7 @@ export namespace OrderRetrieveResponse {
2335
2336
  | 'DISPUTE'
2336
2337
  | 'PENDING_PAYMENT_ATTEMPTS_FOUND'
2337
2338
  | 'AML_FREEZE'
2339
+ | 'AML_APPROVE'
2338
2340
  | 'MANUAL_FREEZE'
2339
2341
  | 'MANUAL_UNFREEZE'
2340
2342
  | 'ORDER_MANUALLY_REOPENED'
@@ -3499,6 +3501,7 @@ export namespace OrderExpireResponse {
3499
3501
  | 'DISPUTE'
3500
3502
  | 'PENDING_PAYMENT_ATTEMPTS_FOUND'
3501
3503
  | 'AML_FREEZE'
3504
+ | 'AML_APPROVE'
3502
3505
  | 'MANUAL_FREEZE'
3503
3506
  | 'MANUAL_UNFREEZE'
3504
3507
  | 'ORDER_MANUALLY_REOPENED'
@@ -72,6 +72,12 @@ export namespace TransactionListResponse {
72
72
  */
73
73
  transactionDate: number;
74
74
 
75
+ /**
76
+ * Identifier of the associated payment process (e.g. deposit, payout, refund). Use
77
+ * together with paymentProcessType for reconciliation
78
+ */
79
+ paymentProcessId?: string;
80
+
75
81
  /**
76
82
  * Payment process type
77
83
  */
@@ -47,6 +47,8 @@ export class Subscription extends APIResource {
47
47
  export interface SubscriptionCreateResponse {
48
48
  id: unknown;
49
49
 
50
+ apiSurface: 'legacy' | 'v1';
51
+
50
52
  createdAt: unknown;
51
53
 
52
54
  events: Array<
@@ -96,6 +98,8 @@ export interface SubscriptionCreateResponse {
96
98
  export interface SubscriptionUpdateResponse {
97
99
  id: unknown;
98
100
 
101
+ apiSurface: 'legacy' | 'v1';
102
+
99
103
  createdAt: unknown;
100
104
 
101
105
  events: Array<
@@ -168,6 +172,8 @@ export namespace SubscriptionListResponse {
168
172
  export interface Item {
169
173
  id: unknown;
170
174
 
175
+ apiSurface: 'legacy' | 'v1';
176
+
171
177
  createdAt: unknown;
172
178
 
173
179
  events: Array<
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '2.0.0'; // x-release-please-version
1
+ export const VERSION = '2.1.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.0.0";
1
+ export declare const VERSION = "2.1.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.0.0";
1
+ export declare const VERSION = "2.1.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 = '2.0.0'; // x-release-please-version
4
+ exports.VERSION = '2.1.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.0.0'; // x-release-please-version
1
+ export const VERSION = '2.1.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,95 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import { APIPromise } from "../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../internal/request-options.mjs";
4
- export declare class Accounts extends APIResource {
5
- /**
6
- * Retrieves the list of accounts for a given data session.
7
- */
8
- list(body: AccountListParams, options?: RequestOptions): APIPromise<AccountListResponse>;
9
- }
10
- export interface AccountListResponse {
11
- /**
12
- * Array of bank accounts for the given data session
13
- */
14
- accounts: Array<AccountListResponse.Account>;
15
- }
16
- export declare namespace AccountListResponse {
17
- interface Account {
18
- /**
19
- * The ID of the account.
20
- */
21
- id: string;
22
- /**
23
- * The ID of the bank.
24
- */
25
- bankId: string;
26
- /**
27
- * The name of the bank.
28
- */
29
- bankName: string;
30
- /**
31
- * The currency of the account.
32
- */
33
- currency: string;
34
- /**
35
- * Financial address details of the account
36
- */
37
- financialAddress: Array<Account.FinancialAddress>;
38
- /**
39
- * The name of the account.
40
- */
41
- accountName?: string;
42
- }
43
- namespace Account {
44
- interface FinancialAddress {
45
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
46
- bankCode?: FinancialAddress.BankCode;
47
- bban?: FinancialAddress.Bban;
48
- iban?: FinancialAddress.Iban;
49
- sortCode?: FinancialAddress.SortCode;
50
- wallet?: FinancialAddress.Wallet;
51
- }
52
- namespace FinancialAddress {
53
- interface BankCode {
54
- accountNumber: string;
55
- code: string;
56
- accountHolderName?: string;
57
- }
58
- interface Bban {
59
- bban: string;
60
- accountHolderName?: string;
61
- bic?: string;
62
- }
63
- interface Iban {
64
- iban: string;
65
- accountHolderName?: string;
66
- bic?: string;
67
- }
68
- interface SortCode {
69
- accountNumber: string;
70
- sortCode: string;
71
- accountHolderName?: string;
72
- }
73
- interface Wallet {
74
- /**
75
- * The blockchain wallet address
76
- */
77
- address: string;
78
- /**
79
- * The blockchain network
80
- */
81
- blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
82
- }
83
- }
84
- }
85
- }
86
- export interface AccountListParams {
87
- /**
88
- * The ID of the data session to retrieve accounts for.
89
- */
90
- sessionId: string;
91
- }
92
- export declare namespace Accounts {
93
- export { type AccountListResponse as AccountListResponse, type AccountListParams as AccountListParams };
94
- }
95
- //# sourceMappingURL=accounts.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accounts.d.mts","sourceRoot":"","sources":["../../src/resources/data/accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGzF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;CAC9C;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAElD;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,UAAiB,OAAO,CAAC;QACvB,UAAiB,gBAAgB;YAC/B,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAC;YAE7D,QAAQ,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC;YAErC,IAAI,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC;YAE7B,IAAI,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC;YAE7B,QAAQ,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC;YAErC,MAAM,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC;SAClC;QAED,UAAiB,gBAAgB,CAAC;YAChC,UAAiB,QAAQ;gBACvB,aAAa,EAAE,MAAM,CAAC;gBAEtB,IAAI,EAAE,MAAM,CAAC;gBAEb,iBAAiB,CAAC,EAAE,MAAM,CAAC;aAC5B;YAED,UAAiB,IAAI;gBACnB,IAAI,EAAE,MAAM,CAAC;gBAEb,iBAAiB,CAAC,EAAE,MAAM,CAAC;gBAE3B,GAAG,CAAC,EAAE,MAAM,CAAC;aACd;YAED,UAAiB,IAAI;gBACnB,IAAI,EAAE,MAAM,CAAC;gBAEb,iBAAiB,CAAC,EAAE,MAAM,CAAC;gBAE3B,GAAG,CAAC,EAAE,MAAM,CAAC;aACd;YAED,UAAiB,QAAQ;gBACvB,aAAa,EAAE,MAAM,CAAC;gBAEtB,QAAQ,EAAE,MAAM,CAAC;gBAEjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;aAC5B;YAED,UAAiB,MAAM;gBACrB;;mBAEG;gBACH,OAAO,EAAE,MAAM,CAAC;gBAEhB;;mBAEG;gBACH,UAAU,EAAE,KAAK,GAAG,aAAa,GAAG,KAAK,GAAG,YAAY,GAAG,OAAO,GAAG,YAAY,CAAC;aACnF;SACF;KACF;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
@@ -1,95 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import { APIPromise } from "../../core/api-promise.js";
3
- import { RequestOptions } from "../../internal/request-options.js";
4
- export declare class Accounts extends APIResource {
5
- /**
6
- * Retrieves the list of accounts for a given data session.
7
- */
8
- list(body: AccountListParams, options?: RequestOptions): APIPromise<AccountListResponse>;
9
- }
10
- export interface AccountListResponse {
11
- /**
12
- * Array of bank accounts for the given data session
13
- */
14
- accounts: Array<AccountListResponse.Account>;
15
- }
16
- export declare namespace AccountListResponse {
17
- interface Account {
18
- /**
19
- * The ID of the account.
20
- */
21
- id: string;
22
- /**
23
- * The ID of the bank.
24
- */
25
- bankId: string;
26
- /**
27
- * The name of the bank.
28
- */
29
- bankName: string;
30
- /**
31
- * The currency of the account.
32
- */
33
- currency: string;
34
- /**
35
- * Financial address details of the account
36
- */
37
- financialAddress: Array<Account.FinancialAddress>;
38
- /**
39
- * The name of the account.
40
- */
41
- accountName?: string;
42
- }
43
- namespace Account {
44
- interface FinancialAddress {
45
- type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet';
46
- bankCode?: FinancialAddress.BankCode;
47
- bban?: FinancialAddress.Bban;
48
- iban?: FinancialAddress.Iban;
49
- sortCode?: FinancialAddress.SortCode;
50
- wallet?: FinancialAddress.Wallet;
51
- }
52
- namespace FinancialAddress {
53
- interface BankCode {
54
- accountNumber: string;
55
- code: string;
56
- accountHolderName?: string;
57
- }
58
- interface Bban {
59
- bban: string;
60
- accountHolderName?: string;
61
- bic?: string;
62
- }
63
- interface Iban {
64
- iban: string;
65
- accountHolderName?: string;
66
- bic?: string;
67
- }
68
- interface SortCode {
69
- accountNumber: string;
70
- sortCode: string;
71
- accountHolderName?: string;
72
- }
73
- interface Wallet {
74
- /**
75
- * The blockchain wallet address
76
- */
77
- address: string;
78
- /**
79
- * The blockchain network
80
- */
81
- blockchain: 'ETH' | 'ETH-SEPOLIA' | 'SOL' | 'SOL-DEVNET' | 'MATIC' | 'MATIC-AMOY';
82
- }
83
- }
84
- }
85
- }
86
- export interface AccountListParams {
87
- /**
88
- * The ID of the data session to retrieve accounts for.
89
- */
90
- sessionId: string;
91
- }
92
- export declare namespace Accounts {
93
- export { type AccountListResponse as AccountListResponse, type AccountListParams as AccountListParams };
94
- }
95
- //# sourceMappingURL=accounts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/resources/data/accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGzF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;CAC9C;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAElD;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,UAAiB,OAAO,CAAC;QACvB,UAAiB,gBAAgB;YAC/B,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAC;YAE7D,QAAQ,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC;YAErC,IAAI,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC;YAE7B,IAAI,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC;YAE7B,QAAQ,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC;YAErC,MAAM,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC;SAClC;QAED,UAAiB,gBAAgB,CAAC;YAChC,UAAiB,QAAQ;gBACvB,aAAa,EAAE,MAAM,CAAC;gBAEtB,IAAI,EAAE,MAAM,CAAC;gBAEb,iBAAiB,CAAC,EAAE,MAAM,CAAC;aAC5B;YAED,UAAiB,IAAI;gBACnB,IAAI,EAAE,MAAM,CAAC;gBAEb,iBAAiB,CAAC,EAAE,MAAM,CAAC;gBAE3B,GAAG,CAAC,EAAE,MAAM,CAAC;aACd;YAED,UAAiB,IAAI;gBACnB,IAAI,EAAE,MAAM,CAAC;gBAEb,iBAAiB,CAAC,EAAE,MAAM,CAAC;gBAE3B,GAAG,CAAC,EAAE,MAAM,CAAC;aACd;YAED,UAAiB,QAAQ;gBACvB,aAAa,EAAE,MAAM,CAAC;gBAEtB,QAAQ,EAAE,MAAM,CAAC;gBAEjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;aAC5B;YAED,UAAiB,MAAM;gBACrB;;mBAEG;gBACH,OAAO,EAAE,MAAM,CAAC;gBAEhB;;mBAEG;gBACH,UAAU,EAAE,KAAK,GAAG,aAAa,GAAG,KAAK,GAAG,YAAY,GAAG,OAAO,GAAG,YAAY,CAAC;aACnF;SACF;KACF;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Accounts = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- class Accounts extends resource_1.APIResource {
7
- /**
8
- * Retrieves the list of accounts for a given data session.
9
- */
10
- list(body, options) {
11
- return this._client.post('/api/service/data/accounts/list', { body, ...options });
12
- }
13
- }
14
- exports.Accounts = Accounts;
15
- //# sourceMappingURL=accounts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/resources/data/accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,IAAI,CAAC,IAAuB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAPD,4BAOC"}
@@ -1,11 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- export class Accounts extends APIResource {
4
- /**
5
- * Retrieves the list of accounts for a given data session.
6
- */
7
- list(body, options) {
8
- return this._client.post('/api/service/data/accounts/list', { body, ...options });
9
- }
10
- }
11
- //# sourceMappingURL=accounts.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../../src/resources/data/accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CAAC,IAAuB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
@@ -1,49 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import { APIPromise } from "../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../internal/request-options.mjs";
4
- export declare class Balances extends APIResource {
5
- /**
6
- * Retrieves the list of account balances for a given data session.
7
- */
8
- list(body: BalanceListParams, options?: RequestOptions): APIPromise<BalanceListResponse>;
9
- }
10
- export interface BalanceListResponse {
11
- /**
12
- * Array of account balances for the given data session
13
- */
14
- balances: Array<BalanceListResponse.Balance>;
15
- }
16
- export declare namespace BalanceListResponse {
17
- interface Balance {
18
- /**
19
- * The ID of the account.
20
- */
21
- accountId: string;
22
- /**
23
- * The available balance.
24
- */
25
- available: string;
26
- /**
27
- * The currency of the balance.
28
- */
29
- currency: string;
30
- /**
31
- * The current balance.
32
- */
33
- current: string;
34
- /**
35
- * The date and time when the balance was last updated.
36
- */
37
- timestamp: unknown;
38
- }
39
- }
40
- export interface BalanceListParams {
41
- /**
42
- * The ID of the data session to retrieve account balances for.
43
- */
44
- sessionId: string;
45
- }
46
- export declare namespace Balances {
47
- export { type BalanceListResponse as BalanceListResponse, type BalanceListParams as BalanceListParams };
48
- }
49
- //# sourceMappingURL=balances.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balances.d.mts","sourceRoot":"","sources":["../../src/resources/data/balances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGzF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;CAC9C;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,OAAO;QACtB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,EAAE,OAAO,CAAC;KACpB;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
@@ -1,49 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import { APIPromise } from "../../core/api-promise.js";
3
- import { RequestOptions } from "../../internal/request-options.js";
4
- export declare class Balances extends APIResource {
5
- /**
6
- * Retrieves the list of account balances for a given data session.
7
- */
8
- list(body: BalanceListParams, options?: RequestOptions): APIPromise<BalanceListResponse>;
9
- }
10
- export interface BalanceListResponse {
11
- /**
12
- * Array of account balances for the given data session
13
- */
14
- balances: Array<BalanceListResponse.Balance>;
15
- }
16
- export declare namespace BalanceListResponse {
17
- interface Balance {
18
- /**
19
- * The ID of the account.
20
- */
21
- accountId: string;
22
- /**
23
- * The available balance.
24
- */
25
- available: string;
26
- /**
27
- * The currency of the balance.
28
- */
29
- currency: string;
30
- /**
31
- * The current balance.
32
- */
33
- current: string;
34
- /**
35
- * The date and time when the balance was last updated.
36
- */
37
- timestamp: unknown;
38
- }
39
- }
40
- export interface BalanceListParams {
41
- /**
42
- * The ID of the data session to retrieve account balances for.
43
- */
44
- sessionId: string;
45
- }
46
- export declare namespace Balances {
47
- export { type BalanceListResponse as BalanceListResponse, type BalanceListParams as BalanceListParams };
48
- }
49
- //# sourceMappingURL=balances.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balances.d.ts","sourceRoot":"","sources":["../../src/resources/data/balances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGzF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;CAC9C;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,OAAO;QACtB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,EAAE,OAAO,CAAC;KACpB;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Balances = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- class Balances extends resource_1.APIResource {
7
- /**
8
- * Retrieves the list of account balances for a given data session.
9
- */
10
- list(body, options) {
11
- return this._client.post('/api/service/data/account-balances/list', { body, ...options });
12
- }
13
- }
14
- exports.Balances = Balances;
15
- //# sourceMappingURL=balances.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balances.js","sourceRoot":"","sources":["../../src/resources/data/balances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,IAAI,CAAC,IAAuB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;AAPD,4BAOC"}
@@ -1,11 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- export class Balances extends APIResource {
4
- /**
5
- * Retrieves the list of account balances for a given data session.
6
- */
7
- list(body, options) {
8
- return this._client.post('/api/service/data/account-balances/list', { body, ...options });
9
- }
10
- }
11
- //# sourceMappingURL=balances.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balances.mjs","sourceRoot":"","sources":["../../src/resources/data/balances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,IAAI,CAAC,IAAuB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF"}
@@ -1,81 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import { APIPromise } from "../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../internal/request-options.mjs";
4
- export declare class Consent extends APIResource {
5
- /**
6
- * Retrieves the details of a consent by session ID.
7
- */
8
- retrieve(body: ConsentRetrieveParams, options?: RequestOptions): APIPromise<ConsentRetrieveResponse>;
9
- /**
10
- * Revokes a consent by session ID.
11
- */
12
- revoke(body: ConsentRevokeParams, options?: RequestOptions): APIPromise<ConsentRevokeResponse>;
13
- }
14
- export interface ConsentRetrieveResponse {
15
- /**
16
- * The Epoch time in seconds when the consent was created.
17
- */
18
- createdAt: number;
19
- /**
20
- * The permissions granted in this consent.
21
- */
22
- permissions: Array<'accounts' | 'balances' | 'transactions'>;
23
- /**
24
- * The current status of the consent.
25
- */
26
- status: 'created' | 'authorised' | 'expired' | 'revoked' | 'failed';
27
- /**
28
- * The Epoch time in seconds when the consent was last updated.
29
- */
30
- updatedAt: number;
31
- /**
32
- * The Epoch time in seconds at which the consent expires.
33
- */
34
- expiresAt?: number;
35
- /**
36
- * The Epoch time in seconds at which the consent was revoked.
37
- */
38
- revokedAt?: number;
39
- }
40
- export interface ConsentRevokeResponse {
41
- /**
42
- * The Epoch time in seconds when the consent was created.
43
- */
44
- createdAt: number;
45
- /**
46
- * The permissions granted in this consent.
47
- */
48
- permissions: Array<'accounts' | 'balances' | 'transactions'>;
49
- /**
50
- * The Epoch time in seconds at which the consent was revoked.
51
- */
52
- revokedAt: number;
53
- /**
54
- * The current status of the consent.
55
- */
56
- status: 'revoked';
57
- /**
58
- * The Epoch time in seconds when the consent was last updated.
59
- */
60
- updatedAt: number;
61
- /**
62
- * The Epoch time in seconds at which the consent expires.
63
- */
64
- expiresAt?: number;
65
- }
66
- export interface ConsentRetrieveParams {
67
- /**
68
- * The ID of the data session to which the consent belongs.
69
- */
70
- sessionId: string;
71
- }
72
- export interface ConsentRevokeParams {
73
- /**
74
- * The ID of the data session to which the consent belongs.
75
- */
76
- sessionId: string;
77
- }
78
- export declare namespace Consent {
79
- export { type ConsentRetrieveResponse as ConsentRetrieveResponse, type ConsentRevokeResponse as ConsentRevokeResponse, type ConsentRetrieveParams as ConsentRetrieveParams, type ConsentRevokeParams as ConsentRevokeParams, };
80
- }
81
- //# sourceMappingURL=consent.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"consent.d.mts","sourceRoot":"","sources":["../../src/resources/data/consent.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIpG;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,UAAU,GAAG,UAAU,GAAG,cAAc,CAAC,CAAC;IAE7D;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAEpE;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,UAAU,GAAG,UAAU,GAAG,cAAc,CAAC,CAAC;IAE7D;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}