@getivy/node-sdk 1.0.0 → 1.2.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 (119) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/index.d.mts +6 -6
  3. package/index.d.ts +6 -6
  4. package/index.d.ts.map +1 -1
  5. package/index.js +6 -6
  6. package/index.js.map +1 -1
  7. package/index.mjs +6 -6
  8. package/index.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/data/accounts.d.ts +83 -0
  11. package/resources/data/accounts.d.ts.map +1 -0
  12. package/resources/data/accounts.js +15 -0
  13. package/resources/data/accounts.js.map +1 -0
  14. package/resources/data/accounts.mjs +11 -0
  15. package/resources/data/accounts.mjs.map +1 -0
  16. package/resources/data/balances.d.ts +48 -0
  17. package/resources/data/balances.d.ts.map +1 -0
  18. package/resources/data/balances.js +15 -0
  19. package/resources/data/balances.js.map +1 -0
  20. package/resources/data/balances.mjs +11 -0
  21. package/resources/data/balances.mjs.map +1 -0
  22. package/resources/data/consent.d.ts +80 -0
  23. package/resources/data/consent.d.ts.map +1 -0
  24. package/resources/data/consent.js +21 -0
  25. package/resources/data/consent.js.map +1 -0
  26. package/resources/data/consent.mjs +17 -0
  27. package/resources/data/consent.mjs.map +1 -0
  28. package/resources/data/data.d.ts +26 -0
  29. package/resources/data/data.d.ts.map +1 -0
  30. package/resources/data/data.js +55 -0
  31. package/resources/data/data.js.map +1 -0
  32. package/resources/data/data.mjs +28 -0
  33. package/resources/data/data.mjs.map +1 -0
  34. package/resources/data/index.d.ts +7 -0
  35. package/resources/data/index.d.ts.map +1 -0
  36. package/resources/data/index.js +17 -0
  37. package/resources/data/index.js.map +1 -0
  38. package/resources/data/index.mjs +8 -0
  39. package/resources/data/index.mjs.map +1 -0
  40. package/resources/data/session.d.ts +258 -0
  41. package/resources/data/session.d.ts.map +1 -0
  42. package/resources/data/session.js +21 -0
  43. package/resources/data/session.js.map +1 -0
  44. package/resources/data/session.mjs +17 -0
  45. package/resources/data/session.mjs.map +1 -0
  46. package/resources/data/transactions.d.ts +175 -0
  47. package/resources/data/transactions.d.ts.map +1 -0
  48. package/resources/data/transactions.js +16 -0
  49. package/resources/data/transactions.js.map +1 -0
  50. package/resources/data/transactions.mjs +12 -0
  51. package/resources/data/transactions.mjs.map +1 -0
  52. package/resources/data.d.ts +2 -0
  53. package/resources/data.d.ts.map +1 -0
  54. package/resources/data.js +19 -0
  55. package/resources/data.js.map +1 -0
  56. package/resources/data.mjs +3 -0
  57. package/resources/data.mjs.map +1 -0
  58. package/resources/index.d.ts +2 -2
  59. package/resources/index.d.ts.map +1 -1
  60. package/resources/index.js +5 -5
  61. package/resources/index.js.map +1 -1
  62. package/resources/index.mjs +2 -2
  63. package/resources/index.mjs.map +1 -1
  64. package/resources/webhook/index.d.ts +3 -0
  65. package/resources/webhook/index.d.ts.map +1 -0
  66. package/resources/webhook/index.js +9 -0
  67. package/resources/webhook/index.js.map +1 -0
  68. package/resources/webhook/index.mjs +4 -0
  69. package/resources/webhook/index.mjs.map +1 -0
  70. package/resources/webhook/subscription.d.ts +152 -0
  71. package/resources/webhook/subscription.d.ts.map +1 -0
  72. package/resources/webhook/subscription.js +42 -0
  73. package/resources/webhook/subscription.js.map +1 -0
  74. package/resources/webhook/subscription.mjs +38 -0
  75. package/resources/webhook/subscription.mjs.map +1 -0
  76. package/resources/webhook/webhook.d.ts +28 -0
  77. package/resources/webhook/webhook.d.ts.map +1 -0
  78. package/resources/webhook/webhook.js +45 -0
  79. package/resources/webhook/webhook.js.map +1 -0
  80. package/resources/webhook/webhook.mjs +18 -0
  81. package/resources/webhook/webhook.mjs.map +1 -0
  82. package/resources/webhook.d.ts +2 -0
  83. package/resources/webhook.d.ts.map +1 -0
  84. package/resources/webhook.js +19 -0
  85. package/resources/webhook.js.map +1 -0
  86. package/resources/webhook.mjs +3 -0
  87. package/resources/webhook.mjs.map +1 -0
  88. package/src/index.ts +14 -26
  89. package/src/resources/data/accounts.ts +113 -0
  90. package/src/resources/data/balances.ts +60 -0
  91. package/src/resources/data/consent.ts +110 -0
  92. package/src/resources/data/data.ts +75 -0
  93. package/src/resources/data/index.ts +20 -0
  94. package/src/resources/data/session.ts +1317 -0
  95. package/src/resources/data/transactions.ts +235 -0
  96. package/src/resources/data.ts +3 -0
  97. package/src/resources/index.ts +2 -10
  98. package/src/resources/webhook/index.ts +16 -0
  99. package/src/resources/webhook/subscription.ts +405 -0
  100. package/src/resources/webhook/webhook.ts +69 -0
  101. package/src/resources/webhook.ts +3 -0
  102. package/src/version.ts +1 -1
  103. package/version.d.ts +1 -1
  104. package/version.js +1 -1
  105. package/version.mjs +1 -1
  106. package/resources/charges.d.ts +0 -82
  107. package/resources/charges.d.ts.map +0 -1
  108. package/resources/charges.js +0 -15
  109. package/resources/charges.js.map +0 -1
  110. package/resources/charges.mjs +0 -11
  111. package/resources/charges.mjs.map +0 -1
  112. package/resources/mandates.d.ts +0 -129
  113. package/resources/mandates.d.ts.map +0 -1
  114. package/resources/mandates.js +0 -27
  115. package/resources/mandates.js.map +0 -1
  116. package/resources/mandates.mjs +0 -23
  117. package/resources/mandates.mjs.map +0 -1
  118. package/src/resources/charges.ts +0 -104
  119. package/src/resources/mandates.ts +0 -197
@@ -0,0 +1,21 @@
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.Session = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class Session extends resource_1.APIResource {
7
+ /**
8
+ * Creates a data session for the merchant corresponding to the API key.
9
+ */
10
+ create(body, options) {
11
+ return this._client.post('/api/service/data/session/create', { body, ...options });
12
+ }
13
+ /**
14
+ * Retrieves the details of a data session by its ID.
15
+ */
16
+ retrieve(body, options) {
17
+ return this._client.post('/api/service/data/session/details', { body, ...options });
18
+ }
19
+ }
20
+ exports.Session = Session;
21
+ //# sourceMappingURL=session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/resources/data/session.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;CACF;AAjBD,0BAiBC"}
@@ -0,0 +1,17 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class Session extends APIResource {
4
+ /**
5
+ * Creates a data session for the merchant corresponding to the API key.
6
+ */
7
+ create(body, options) {
8
+ return this._client.post('/api/service/data/session/create', { body, ...options });
9
+ }
10
+ /**
11
+ * Retrieves the details of a data session by its ID.
12
+ */
13
+ retrieve(body, options) {
14
+ return this._client.post('/api/service/data/session/details', { body, ...options });
15
+ }
16
+ }
17
+ //# sourceMappingURL=session.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.mjs","sourceRoot":"","sources":["../../src/resources/data/session.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;CACF"}
@@ -0,0 +1,175 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ export declare class Transactions extends APIResource {
4
+ /**
5
+ * Retrieves the list of transactions for a given data session. Returns
6
+ * transactions from the last 3 months.
7
+ */
8
+ list(body: TransactionListParams, options?: Core.RequestOptions): Core.APIPromise<TransactionListResponse>;
9
+ }
10
+ export interface TransactionListResponse {
11
+ /**
12
+ * Array of transactions
13
+ */
14
+ data: Array<TransactionListResponse.Data>;
15
+ /**
16
+ * Pagination information
17
+ */
18
+ paging: TransactionListResponse.Paging;
19
+ }
20
+ export declare namespace TransactionListResponse {
21
+ interface Data {
22
+ /**
23
+ * Transaction identifier
24
+ */
25
+ id: string;
26
+ /**
27
+ * Amount of the transaction
28
+ */
29
+ amount: string;
30
+ /**
31
+ * Balance information
32
+ */
33
+ balance: Data.Balance;
34
+ /**
35
+ * Bank statement reference
36
+ */
37
+ bankStatementReference: string;
38
+ /**
39
+ * Creditor account details
40
+ */
41
+ creditor: Data.Creditor;
42
+ /**
43
+ * ISO 4217 currency code
44
+ */
45
+ currency: string;
46
+ /**
47
+ * Debtor account details
48
+ */
49
+ debtor: Data.Debtor;
50
+ /**
51
+ * Side of the transaction
52
+ */
53
+ side: 'credit' | 'debit';
54
+ /**
55
+ * Transaction date as unix timestamp
56
+ */
57
+ transactionDate: number;
58
+ }
59
+ namespace Data {
60
+ /**
61
+ * Balance information
62
+ */
63
+ interface Balance {
64
+ /**
65
+ * Balance after the transaction
66
+ */
67
+ after: string;
68
+ /**
69
+ * Balance before the transaction
70
+ */
71
+ before: string;
72
+ }
73
+ /**
74
+ * Creditor account details
75
+ */
76
+ interface Creditor {
77
+ /**
78
+ * Type of financial address
79
+ */
80
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
81
+ bankCode?: Creditor.BankCode;
82
+ bban?: Creditor.Bban;
83
+ iban?: Creditor.Iban;
84
+ sortCode?: Creditor.SortCode;
85
+ }
86
+ namespace Creditor {
87
+ interface BankCode {
88
+ accountHolderName: string;
89
+ accountNumber: string;
90
+ code: string;
91
+ }
92
+ interface Bban {
93
+ accountHolderName: string;
94
+ bban: string;
95
+ bic?: string;
96
+ }
97
+ interface Iban {
98
+ accountHolderName: string;
99
+ iban: string;
100
+ bic?: string;
101
+ }
102
+ interface SortCode {
103
+ accountHolderName: string;
104
+ accountNumber: string;
105
+ sortCode: string;
106
+ }
107
+ }
108
+ /**
109
+ * Debtor account details
110
+ */
111
+ interface Debtor {
112
+ /**
113
+ * Type of financial address
114
+ */
115
+ type: 'iban' | 'sort_code' | 'bank_code' | 'bban';
116
+ bankCode?: Debtor.BankCode;
117
+ bban?: Debtor.Bban;
118
+ iban?: Debtor.Iban;
119
+ sortCode?: Debtor.SortCode;
120
+ }
121
+ namespace Debtor {
122
+ interface BankCode {
123
+ accountHolderName: string;
124
+ accountNumber: string;
125
+ code: string;
126
+ }
127
+ interface Bban {
128
+ accountHolderName: string;
129
+ bban: string;
130
+ bic?: string;
131
+ }
132
+ interface Iban {
133
+ accountHolderName: string;
134
+ iban: string;
135
+ bic?: string;
136
+ }
137
+ interface SortCode {
138
+ accountHolderName: string;
139
+ accountNumber: string;
140
+ sortCode: string;
141
+ }
142
+ }
143
+ }
144
+ /**
145
+ * Pagination information
146
+ */
147
+ interface Paging {
148
+ /**
149
+ * Whether there are more transactions available
150
+ */
151
+ hasNext: boolean;
152
+ /**
153
+ * Cursor for the next page of results
154
+ */
155
+ nextCursor?: string;
156
+ }
157
+ }
158
+ export interface TransactionListParams {
159
+ /**
160
+ * Start timestamp (inclusive) - unix timestamp
161
+ */
162
+ from: number;
163
+ /**
164
+ * End timestamp (exclusive) - unix timestamp
165
+ */
166
+ to: number;
167
+ /**
168
+ * Cursor for pagination
169
+ */
170
+ afterCursor?: string;
171
+ }
172
+ export declare namespace Transactions {
173
+ export { type TransactionListResponse as TransactionListResponse, type TransactionListParams as TransactionListParams, };
174
+ }
175
+ //# sourceMappingURL=transactions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../../src/resources/data/transactions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,IAAI,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;CAG3G;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAE1C;;OAEG;IACH,MAAM,EAAE,uBAAuB,CAAC,MAAM,CAAC;CACxC;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QAEtB;;WAEG;QACH,sBAAsB,EAAE,MAAM,CAAC;QAE/B;;WAEG;QACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QAExB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QAEpB;;WAEG;QACH,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;QAEzB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;KACzB;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,OAAO;YACtB;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QAAQ,CAAC;SAC5B;QAED,UAAiB,MAAM,CAAC;YACtB,UAAiB,QAAQ;gBACvB,iBAAiB,EAAE,MAAM,CAAC;gBAE1B,aAAa,EAAE,MAAM,CAAC;gBAEtB,IAAI,EAAE,MAAM,CAAC;aACd;YAED,UAAiB,IAAI;gBACnB,iBAAiB,EAAE,MAAM,CAAC;gBAE1B,IAAI,EAAE,MAAM,CAAC;gBAEb,GAAG,CAAC,EAAE,MAAM,CAAC;aACd;YAED,UAAiB,IAAI;gBACnB,iBAAiB,EAAE,MAAM,CAAC;gBAE1B,IAAI,EAAE,MAAM,CAAC;gBAEb,GAAG,CAAC,EAAE,MAAM,CAAC;aACd;YAED,UAAiB,QAAQ;gBACvB,iBAAiB,EAAE,MAAM,CAAC;gBAE1B,aAAa,EAAE,MAAM,CAAC;gBAEtB,QAAQ,EAAE,MAAM,CAAC;aAClB;SACF;KACF;IAED;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,OAAO,EAAE,OAAO,CAAC;QAEjB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -0,0 +1,16 @@
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.Transactions = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class Transactions extends resource_1.APIResource {
7
+ /**
8
+ * Retrieves the list of transactions for a given data session. Returns
9
+ * transactions from the last 3 months.
10
+ */
11
+ list(body, options) {
12
+ return this._client.post('/api/service/data/transactions/list', { body, ...options });
13
+ }
14
+ }
15
+ exports.Transactions = Transactions;
16
+ //# sourceMappingURL=transactions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../src/resources/data/transactions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;OAGG;IACH,IAAI,CAAC,IAA2B,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF;AARD,oCAQC"}
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class Transactions extends APIResource {
4
+ /**
5
+ * Retrieves the list of transactions for a given data session. Returns
6
+ * transactions from the last 3 months.
7
+ */
8
+ list(body, options) {
9
+ return this._client.post('/api/service/data/transactions/list', { body, ...options });
10
+ }
11
+ }
12
+ //# sourceMappingURL=transactions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactions.mjs","sourceRoot":"","sources":["../../src/resources/data/transactions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,IAAI,CAAC,IAA2B,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./data/index.js";
2
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../src/resources/data.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./data/index.js"), exports);
19
+ //# sourceMappingURL=data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.js","sourceRoot":"","sources":["../src/resources/data.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,kDAA6B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./data/index.mjs";
3
+ //# sourceMappingURL=data.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.mjs","sourceRoot":"","sources":["../src/resources/data.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -2,16 +2,16 @@ export { Balance, type BalanceRetrieveResponse, type BalanceRetrieveParams } fro
2
2
  export { Banks, type BankRetrieveResponse, type BankListResponse, type BankSearchResponse, type BankRetrieveParams, type BankListParams, type BankSearchParams, } from "./banks.js";
3
3
  export { BeneficiaryPayouts, type BeneficiaryPayoutCreateResponse } from "./beneficiary-payouts.js";
4
4
  export { Capabilities, type CapabilityRetrieveResponse, type CapabilityRetrieveParams } from "./capabilities.js";
5
- export { Charges, type Charge, type ChargeCreateParams } from "./charges.js";
6
5
  export { Checkoutsession, type CheckoutsessionCreateResponse, type CheckoutsessionRetrieveResponse, type CheckoutsessionExpireResponse, type CheckoutsessionCreateParams, type CheckoutsessionRetrieveParams, type CheckoutsessionExpireParams, } from "./checkoutsession.js";
7
6
  export { Customers, type CustomerCreateResponse, type CustomerRetrieveResponse, type CustomerSearchResponse, type CustomerCreateParams, type CustomerRetrieveParams, type CustomerSearchParams, } from "./customers.js";
7
+ export { Data } from "./data/data.js";
8
8
  export { Deposits, type DepositRetrieveResponse, type DepositRetrieveParams } from "./deposits.js";
9
9
  export { Fx, type FxRetrieveResponse, type FxRetrieveRateResponse, type FxRetrieveParams, type FxRetrieveRateParams, } from "./fx.js";
10
- export { Mandates, type Mandate, type MandateLookupResponse, type MandateRevokeResponse, type MandateRetrieveParams, type MandateLookupParams, type MandateRevokeParams, } from "./mandates.js";
11
10
  export { Orders, type OrderCreateResponse, type OrderRetrieveResponse, type OrderExpireResponse, type OrderCreateParams, type OrderRetrieveParams, type OrderExpireParams, } from "./orders.js";
12
11
  export { Payouts, type Payout, type PayoutRetrieveResponse, type PayoutListResponse, type PayoutCreateParams, type PayoutRetrieveParams, type PayoutListParams, } from "./payouts.js";
13
12
  export { Refunds, type Refund, type RefundCreateResponse, type RefundRetrieveResponse, type RefundCreateParams, type RefundRetrieveParams, } from "./refunds.js";
14
13
  export { Returns, type ReturnCreateResponse, type ReturnRetrieveResponse, type ReturnCreateParams, type ReturnRetrieveParams, } from "./returns.js";
15
14
  export { Subaccounts, type Subaccount, type SubaccountCreateResponse, type SubaccountCreateParams, type SubaccountRetrieveParams, } from "./subaccounts.js";
16
15
  export { Transactions, type TransactionListResponse, type TransactionListParams } from "./transactions.js";
16
+ export { Webhook, type WebhookTriggerResponse, type WebhookTriggerParams } from "./webhook/webhook.js";
17
17
  //# sourceMappingUR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AC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,KAAK,uBAAuB,EAAE,KAAK,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACxG,OAAO,EAAE,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Transactions = exports.Subaccounts = exports.Returns = exports.Refunds = exports.Payouts = exports.Orders = exports.Mandates = exports.Fx = exports.Deposits = exports.Customers = exports.Checkoutsession = exports.Charges = exports.Capabilities = exports.BeneficiaryPayouts = exports.Banks = exports.Balance = void 0;
4
+ exports.Webhook = exports.Transactions = exports.Subaccounts = exports.Returns = exports.Refunds = exports.Payouts = exports.Orders = exports.Fx = exports.Deposits = exports.Data = exports.Customers = exports.Checkoutsession = exports.Capabilities = exports.BeneficiaryPayouts = exports.Banks = exports.Balance = void 0;
5
5
  var balance_1 = require("./balance.js");
6
6
  Object.defineProperty(exports, "Balance", { enumerable: true, get: function () { return balance_1.Balance; } });
7
7
  var banks_1 = require("./banks.js");
@@ -10,18 +10,16 @@ var beneficiary_payouts_1 = require("./beneficiary-payouts.js");
10
10
  Object.defineProperty(exports, "BeneficiaryPayouts", { enumerable: true, get: function () { return beneficiary_payouts_1.BeneficiaryPayouts; } });
11
11
  var capabilities_1 = require("./capabilities.js");
12
12
  Object.defineProperty(exports, "Capabilities", { enumerable: true, get: function () { return capabilities_1.Capabilities; } });
13
- var charges_1 = require("./charges.js");
14
- Object.defineProperty(exports, "Charges", { enumerable: true, get: function () { return charges_1.Charges; } });
15
13
  var checkoutsession_1 = require("./checkoutsession.js");
16
14
  Object.defineProperty(exports, "Checkoutsession", { enumerable: true, get: function () { return checkoutsession_1.Checkoutsession; } });
17
15
  var customers_1 = require("./customers.js");
18
16
  Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return customers_1.Customers; } });
17
+ var data_1 = require("./data/data.js");
18
+ Object.defineProperty(exports, "Data", { enumerable: true, get: function () { return data_1.Data; } });
19
19
  var deposits_1 = require("./deposits.js");
20
20
  Object.defineProperty(exports, "Deposits", { enumerable: true, get: function () { return deposits_1.Deposits; } });
21
21
  var fx_1 = require("./fx.js");
22
22
  Object.defineProperty(exports, "Fx", { enumerable: true, get: function () { return fx_1.Fx; } });
23
- var mandates_1 = require("./mandates.js");
24
- Object.defineProperty(exports, "Mandates", { enumerable: true, get: function () { return mandates_1.Mandates; } });
25
23
  var orders_1 = require("./orders.js");
26
24
  Object.defineProperty(exports, "Orders", { enumerable: true, get: function () { return orders_1.Orders; } });
27
25
  var payouts_1 = require("./payouts.js");
@@ -34,4 +32,6 @@ var subaccounts_1 = require("./subaccounts.js");
34
32
  Object.defineProperty(exports, "Subaccounts", { enumerable: true, get: function () { return subaccounts_1.Subaccounts; } });
35
33
  var transactions_1 = require("./transactions.js");
36
34
  Object.defineProperty(exports, "Transactions", { enumerable: true, get: function () { return transactions_1.Transactions; } });
35
+ var webhook_1 = require("./webhook/webhook.js");
36
+ Object.defineProperty(exports, "Webhook", { enumerable: true, get: function () { return webhook_1.Webhook; } });
37
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAA8F;AAArF,kG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AA,OAAO,OAAA;AAMT,gDAMuB;AALrB,0GAAA,WAAW,OAAA;AAMb,kDAAwG;AAA/F,4GAAA,YAAY,OAAA;AACrB,gDAAoG;AAA3F,kGAAA,OAAO,OAAA"}
@@ -3,16 +3,16 @@ export { Balance } from "./balance.mjs";
3
3
  export { Banks, } from "./banks.mjs";
4
4
  export { BeneficiaryPayouts } from "./beneficiary-payouts.mjs";
5
5
  export { Capabilities } from "./capabilities.mjs";
6
- export { Charges } from "./charges.mjs";
7
6
  export { Checkoutsession, } from "./checkoutsession.mjs";
8
7
  export { Customers, } from "./customers.mjs";
8
+ export { Data } from "./data/data.mjs";
9
9
  export { Deposits } from "./deposits.mjs";
10
10
  export { Fx, } from "./fx.mjs";
11
- export { Mandates, } from "./mandates.mjs";
12
11
  export { Orders, } from "./orders.mjs";
13
12
  export { Payouts, } from "./payouts.mjs";
14
13
  export { Refunds, } from "./refunds.mjs";
15
14
  export { Returns, } from "./returns.mjs";
16
15
  export { Subaccounts, } from "./subaccounts.mjs";
17
16
  export { Transactions } from "./transactions.mjs";
17
+ export { Webhook } from "./webhook/webhook.mjs";
18
18
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAA4D;OACrE,EACL,KAAK,GAON;OACM,EAAE,kBAAkB,EAAwC;OAC5D,EAAE,YAAY,EAAkE;OAChF,EAAE,OAAO,EAAwC;OACjD,EACL,eAAe,GAOhB;OACM,EACL,SAAS,GAOV;OACM,EAAE,QAAQ,EAA4D;OACtE,EACL,EAAE,GAKH;OACM,EACL,QAAQ,GAOT;OACM,EACL,MAAM,GAOP;OACM,EACL,OAAO,GAOR;OACM,EACL,OAAO,GAMR;OACM,EACL,OAAO,GAKR;OACM,EACL,WAAW,GAKZ;OACM,EAAE,YAAY,EAA4D"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAA4D;OACrE,EACL,KAAK,GAON;OACM,EAAE,kBAAkB,EAAwC;OAC5D,EAAE,YAAY,EAAkE;OAChF,EACL,eAAe,GAOhB;OACM,EACL,SAAS,GAOV;OACM,EAAE,IAAI,EAAE;OACR,EAAE,QAAQ,EAA4D;OACtE,EACL,EAAE,GAKH;OACM,EACL,MAAM,GAOP;OACM,EACL,OAAO,GAOR;OACM,EACL,OAAO,GAMR;OACM,EACL,OAAO,GAKR;OACM,EACL,WAAW,GAKZ;OACM,EAAE,YAAY,EAA4D;OAC1E,EAAE,OAAO,EAA0D"}
@@ -0,0 +1,3 @@
1
+ export { Subscription, type SubscriptionCreateResponse, type SubscriptionUpdateResponse, type SubscriptionListResponse, type SubscriptionDeleteResponse, type SubscriptionPingResponse, type SubscriptionCreateParams, type SubscriptionUpdateParams, type SubscriptionListParams, type SubscriptionDeleteParams, type SubscriptionPingParams, } from "./subscription.js";
2
+ export { Webhook, type WebhookTriggerResponse, type WebhookTriggerParams } from "./webhook.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/webhook/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,9 @@
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.Webhook = exports.Subscription = void 0;
5
+ var subscription_1 = require("./subscription.js");
6
+ Object.defineProperty(exports, "Subscription", { enumerable: true, get: function () { return subscription_1.Subscription; } });
7
+ var webhook_1 = require("./webhook.js");
8
+ Object.defineProperty(exports, "Webhook", { enumerable: true, get: function () { return webhook_1.Webhook; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/webhook/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAYwB;AAXtB,4GAAA,YAAY,OAAA;AAYd,wCAA4F;AAAnF,kGAAA,OAAO,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Subscription, } from "./subscription.mjs";
3
+ export { Webhook } from "./webhook.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/webhook/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAWb;OACM,EAAE,OAAO,EAA0D"}
@@ -0,0 +1,152 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ export declare class Subscription extends APIResource {
4
+ /**
5
+ * Creates a webhook subscription that sends various events from Ivy to a specified
6
+ * url. There can be multiple subscriptions per app.
7
+ */
8
+ create(body: SubscriptionCreateParams, options?: Core.RequestOptions): Core.APIPromise<SubscriptionCreateResponse>;
9
+ /**
10
+ * Updates the url or subcribed to events for a webhook subscription. This can be
11
+ * used via the app or via the API by providing an API key.
12
+ */
13
+ update(body: SubscriptionUpdateParams, options?: Core.RequestOptions): Core.APIPromise<SubscriptionUpdateResponse>;
14
+ /**
15
+ * Lists all webhook subscriptions that are registered for the merchant. The
16
+ * results are paginated and provided in chronological order.
17
+ */
18
+ list(body: SubscriptionListParams, options?: Core.RequestOptions): Core.APIPromise<SubscriptionListResponse>;
19
+ /**
20
+ * Deletes a webhook subscription.
21
+ */
22
+ delete(body: SubscriptionDeleteParams, options?: Core.RequestOptions): Core.APIPromise<SubscriptionDeleteResponse>;
23
+ /**
24
+ * Sends a test ping to verify webhook subscription endpoint connectivity.
25
+ */
26
+ ping(body: SubscriptionPingParams, options?: Core.RequestOptions): Core.APIPromise<SubscriptionPingResponse>;
27
+ }
28
+ export interface SubscriptionCreateResponse {
29
+ id: unknown;
30
+ createdAt: unknown;
31
+ events: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'refund.initiated' | 'refund.succeeded' | 'refund.failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'mandate_setup_started' | 'mandate_setup_succeeded' | 'mandate_setup_failed' | 'mandate_revoked' | 'user_payout.initiated' | 'user_payout.failed' | 'user_payout.paid' | 'payout.initiated' | 'payout.failed' | 'payout.paid' | 'deposit.received' | 'return.initiated' | 'return.succeeded' | 'return.failed' | 'return.returned'>;
32
+ merchant: unknown;
33
+ merchantApp: unknown;
34
+ updatedAt: unknown;
35
+ url: string;
36
+ }
37
+ export interface SubscriptionUpdateResponse {
38
+ id: unknown;
39
+ createdAt: unknown;
40
+ events: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'refund.initiated' | 'refund.succeeded' | 'refund.failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'mandate_setup_started' | 'mandate_setup_succeeded' | 'mandate_setup_failed' | 'mandate_revoked' | 'user_payout.initiated' | 'user_payout.failed' | 'user_payout.paid' | 'payout.initiated' | 'payout.failed' | 'payout.paid' | 'deposit.received' | 'return.initiated' | 'return.succeeded' | 'return.failed' | 'return.returned'>;
41
+ merchant: unknown;
42
+ merchantApp: unknown;
43
+ updatedAt: unknown;
44
+ url: string;
45
+ }
46
+ export interface SubscriptionListResponse {
47
+ /**
48
+ * The total number of webhook subscriptions
49
+ */
50
+ count: number;
51
+ /**
52
+ * Whether there are more webhook subscriptions to retrieve
53
+ */
54
+ hasNext: boolean;
55
+ /**
56
+ * Array of webhook subscription objects
57
+ */
58
+ items: Array<SubscriptionListResponse.Item>;
59
+ /**
60
+ * The number of webhook subscriptions skipped
61
+ */
62
+ skip: number;
63
+ }
64
+ export declare namespace SubscriptionListResponse {
65
+ interface Item {
66
+ id: unknown;
67
+ createdAt: unknown;
68
+ events: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'refund.initiated' | 'refund.succeeded' | 'refund.failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'mandate_setup_started' | 'mandate_setup_succeeded' | 'mandate_setup_failed' | 'mandate_revoked' | 'user_payout.initiated' | 'user_payout.failed' | 'user_payout.paid' | 'payout.initiated' | 'payout.failed' | 'payout.paid' | 'deposit.received' | 'return.initiated' | 'return.succeeded' | 'return.failed' | 'return.returned'>;
69
+ merchant: unknown;
70
+ merchantApp: unknown;
71
+ updatedAt: unknown;
72
+ url: string;
73
+ }
74
+ }
75
+ export interface SubscriptionDeleteResponse {
76
+ /**
77
+ * Whether the webhook subscription was successfully deleted
78
+ */
79
+ success: boolean;
80
+ }
81
+ export interface SubscriptionPingResponse {
82
+ /**
83
+ * The unique identifier of the webhook subscription
84
+ */
85
+ id: unknown;
86
+ /**
87
+ * The timestamp when the ping was executed
88
+ */
89
+ date: unknown;
90
+ /**
91
+ * The response from the webhook endpoint
92
+ */
93
+ response: unknown;
94
+ /**
95
+ * The HTTP status code returned by the webhook endpoint
96
+ */
97
+ statusCode: number;
98
+ /**
99
+ * Whether the ping was successful
100
+ */
101
+ success: boolean;
102
+ }
103
+ export interface SubscriptionCreateParams {
104
+ /**
105
+ * The endpoint where webhook events are sent.
106
+ */
107
+ url: string;
108
+ /**
109
+ * The events to subscribe the url to.
110
+ */
111
+ events?: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'refund.initiated' | 'refund.succeeded' | 'refund.failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'mandate_setup_started' | 'mandate_setup_succeeded' | 'mandate_setup_failed' | 'mandate_revoked' | 'user_payout.initiated' | 'user_payout.failed' | 'user_payout.paid' | 'payout.initiated' | 'payout.failed' | 'payout.paid' | 'deposit.received' | 'return.initiated' | 'return.succeeded' | 'return.failed' | 'return.returned'>;
112
+ }
113
+ export interface SubscriptionUpdateParams {
114
+ /**
115
+ * The unique identifier of the webhook subscription to update
116
+ */
117
+ id: unknown;
118
+ /**
119
+ * The new events to subscribe the url to
120
+ */
121
+ events?: Array<'test' | 'merchant_updated' | 'merchant_app_updated' | 'order_created' | 'order_updated' | 'refund_succeeded' | 'refund_failed' | 'refund.initiated' | 'refund.succeeded' | 'refund.failed' | 'payout_report_requested' | 'data_session_completed' | 'checkout_session_created' | 'checkout_session_updated' | 'checkout_session_expired' | 'checkout_session_completed' | 'payout_created' | 'payout_updated' | 'mandate_setup_started' | 'mandate_setup_succeeded' | 'mandate_setup_failed' | 'mandate_revoked' | 'user_payout.initiated' | 'user_payout.failed' | 'user_payout.paid' | 'payout.initiated' | 'payout.failed' | 'payout.paid' | 'deposit.received' | 'return.initiated' | 'return.succeeded' | 'return.failed' | 'return.returned'>;
122
+ /**
123
+ * The new endpoint where webhook events are sent
124
+ */
125
+ url?: string;
126
+ }
127
+ export interface SubscriptionListParams {
128
+ /**
129
+ * The maximum number of webhook subscriptions to return
130
+ */
131
+ limit?: number;
132
+ /**
133
+ * The number of webhook subscriptions to skip
134
+ */
135
+ skip?: number;
136
+ }
137
+ export interface SubscriptionDeleteParams {
138
+ /**
139
+ * The unique identifier of the webhook subscription to delete
140
+ */
141
+ id: unknown;
142
+ }
143
+ export interface SubscriptionPingParams {
144
+ /**
145
+ * The unique identifier of the webhook subscription to ping
146
+ */
147
+ id: unknown;
148
+ }
149
+ export declare namespace Subscription {
150
+ export { type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionUpdateResponse as SubscriptionUpdateResponse, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionDeleteResponse as SubscriptionDeleteResponse, type SubscriptionPingResponse as SubscriptionPingResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionDeleteParams as SubscriptionDeleteParams, type SubscriptionPingParams as SubscriptionPingParams, };
151
+ }
152
+ //# sourceMappingURL=subscription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/resources/webhook/subscription.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAI9C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAI9C;;;OAGG;IACH,IAAI,CACF,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