@naturalpay/sdk 0.7.0 → 0.9.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 +22 -0
- package/README.md +19 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents.d.mts +7 -7
- package/resources/agents.d.ts +7 -7
- package/resources/approvals.d.mts +414 -0
- package/resources/approvals.d.mts.map +1 -0
- package/resources/approvals.d.ts +414 -0
- package/resources/approvals.d.ts.map +1 -0
- package/resources/approvals.js +79 -0
- package/resources/approvals.js.map +1 -0
- package/resources/approvals.mjs +75 -0
- package/resources/approvals.mjs.map +1 -0
- package/resources/customers.d.mts +2 -2
- package/resources/customers.d.ts +2 -2
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- 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/payment-requests.d.mts +1 -1
- package/resources/payment-requests.d.ts +1 -1
- package/resources/payment-requests.js +1 -1
- package/resources/payment-requests.mjs +1 -1
- package/resources/transfers.d.mts +1 -1
- package/resources/transfers.d.ts +1 -1
- package/resources/transfers.js +1 -1
- package/resources/transfers.mjs +1 -1
- package/src/client.ts +28 -0
- package/src/resources/agents.ts +7 -7
- package/src/resources/approvals.ts +577 -0
- package/src/resources/customers.ts +2 -2
- package/src/resources/index.ts +11 -0
- package/src/resources/payment-requests.ts +1 -1
- package/src/resources/transfers.ts +1 -1
- 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
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Approval review operations
|
|
6
|
+
*/
|
|
7
|
+
export declare class Approvals extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List approvals for your party.
|
|
10
|
+
*/
|
|
11
|
+
list(params?: ApprovalListParams | null | undefined, options?: RequestOptions): APIPromise<ApprovalListResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Approve the product operation under review.
|
|
14
|
+
*/
|
|
15
|
+
approve(approvalID: string, params?: ApprovalApproveParams | null | undefined, options?: RequestOptions): APIPromise<ApprovalApproveResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Deny the product operation under review.
|
|
18
|
+
*/
|
|
19
|
+
deny(approvalID: string, params?: ApprovalDenyParams | null | undefined, options?: RequestOptions): APIPromise<ApprovalDenyResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Get details of a specific approval.
|
|
22
|
+
*/
|
|
23
|
+
get(approvalID: string, params?: ApprovalGetParams | null | undefined, options?: RequestOptions): APIPromise<ApprovalGetResponse>;
|
|
24
|
+
}
|
|
25
|
+
export interface ApprovalListResponse {
|
|
26
|
+
data: Array<ApprovalListResponse.Data>;
|
|
27
|
+
meta: ApprovalListResponse.Meta;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace ApprovalListResponse {
|
|
30
|
+
interface Data {
|
|
31
|
+
/**
|
|
32
|
+
* Approval ID
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* Resource attributes
|
|
37
|
+
*/
|
|
38
|
+
attributes: Data.Attributes;
|
|
39
|
+
/**
|
|
40
|
+
* Resource type
|
|
41
|
+
*/
|
|
42
|
+
type: string;
|
|
43
|
+
}
|
|
44
|
+
namespace Data {
|
|
45
|
+
/**
|
|
46
|
+
* Resource attributes
|
|
47
|
+
*/
|
|
48
|
+
interface Attributes {
|
|
49
|
+
/**
|
|
50
|
+
* When the approval was created
|
|
51
|
+
*/
|
|
52
|
+
createdAt: string;
|
|
53
|
+
/**
|
|
54
|
+
* Reasons this approval is under review
|
|
55
|
+
*/
|
|
56
|
+
reasons: Array<Attributes.Reason>;
|
|
57
|
+
/**
|
|
58
|
+
* When the approval was resolved
|
|
59
|
+
*/
|
|
60
|
+
resolvedAt: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Approval status
|
|
63
|
+
*/
|
|
64
|
+
status: 'pending' | 'approved' | 'denied' | 'canceled';
|
|
65
|
+
/**
|
|
66
|
+
* Product operation that needs approval
|
|
67
|
+
*/
|
|
68
|
+
target: Attributes.Target;
|
|
69
|
+
/**
|
|
70
|
+
* When the approval was last updated
|
|
71
|
+
*/
|
|
72
|
+
updatedAt: string;
|
|
73
|
+
}
|
|
74
|
+
namespace Attributes {
|
|
75
|
+
interface Reason {
|
|
76
|
+
/**
|
|
77
|
+
* Actual transaction amount in minor units
|
|
78
|
+
*/
|
|
79
|
+
actualAmount: number;
|
|
80
|
+
/**
|
|
81
|
+
* Currency code
|
|
82
|
+
*/
|
|
83
|
+
currency: string;
|
|
84
|
+
/**
|
|
85
|
+
* Configured limit amount in minor units
|
|
86
|
+
*/
|
|
87
|
+
limitAmount: number;
|
|
88
|
+
limitType: string;
|
|
89
|
+
type: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Product operation that needs approval
|
|
93
|
+
*/
|
|
94
|
+
interface Target {
|
|
95
|
+
/**
|
|
96
|
+
* Product execution ID
|
|
97
|
+
*/
|
|
98
|
+
id: string;
|
|
99
|
+
/**
|
|
100
|
+
* Product execution type under approval
|
|
101
|
+
*/
|
|
102
|
+
type: 'payment' | 'paymentRequestFulfillment' | 'deposit' | 'withdrawal';
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
interface Meta {
|
|
107
|
+
pagination: Meta.Pagination;
|
|
108
|
+
}
|
|
109
|
+
namespace Meta {
|
|
110
|
+
interface Pagination {
|
|
111
|
+
hasMore: boolean;
|
|
112
|
+
nextCursor: string | null;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
export interface ApprovalApproveResponse {
|
|
117
|
+
data: ApprovalApproveResponse.Data;
|
|
118
|
+
}
|
|
119
|
+
export declare namespace ApprovalApproveResponse {
|
|
120
|
+
interface Data {
|
|
121
|
+
/**
|
|
122
|
+
* Approval ID
|
|
123
|
+
*/
|
|
124
|
+
id: string;
|
|
125
|
+
/**
|
|
126
|
+
* Resource attributes
|
|
127
|
+
*/
|
|
128
|
+
attributes: Data.Attributes;
|
|
129
|
+
/**
|
|
130
|
+
* Resource type
|
|
131
|
+
*/
|
|
132
|
+
type: string;
|
|
133
|
+
}
|
|
134
|
+
namespace Data {
|
|
135
|
+
/**
|
|
136
|
+
* Resource attributes
|
|
137
|
+
*/
|
|
138
|
+
interface Attributes {
|
|
139
|
+
/**
|
|
140
|
+
* When the approval was created
|
|
141
|
+
*/
|
|
142
|
+
createdAt: string;
|
|
143
|
+
/**
|
|
144
|
+
* Reasons this approval is under review
|
|
145
|
+
*/
|
|
146
|
+
reasons: Array<Attributes.Reason>;
|
|
147
|
+
/**
|
|
148
|
+
* When the approval was resolved
|
|
149
|
+
*/
|
|
150
|
+
resolvedAt: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* Approval status
|
|
153
|
+
*/
|
|
154
|
+
status: 'pending' | 'approved' | 'denied' | 'canceled';
|
|
155
|
+
/**
|
|
156
|
+
* Product operation that needs approval
|
|
157
|
+
*/
|
|
158
|
+
target: Attributes.Target;
|
|
159
|
+
/**
|
|
160
|
+
* When the approval was last updated
|
|
161
|
+
*/
|
|
162
|
+
updatedAt: string;
|
|
163
|
+
}
|
|
164
|
+
namespace Attributes {
|
|
165
|
+
interface Reason {
|
|
166
|
+
/**
|
|
167
|
+
* Actual transaction amount in minor units
|
|
168
|
+
*/
|
|
169
|
+
actualAmount: number;
|
|
170
|
+
/**
|
|
171
|
+
* Currency code
|
|
172
|
+
*/
|
|
173
|
+
currency: string;
|
|
174
|
+
/**
|
|
175
|
+
* Configured limit amount in minor units
|
|
176
|
+
*/
|
|
177
|
+
limitAmount: number;
|
|
178
|
+
limitType: string;
|
|
179
|
+
type: string;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Product operation that needs approval
|
|
183
|
+
*/
|
|
184
|
+
interface Target {
|
|
185
|
+
/**
|
|
186
|
+
* Product execution ID
|
|
187
|
+
*/
|
|
188
|
+
id: string;
|
|
189
|
+
/**
|
|
190
|
+
* Product execution type under approval
|
|
191
|
+
*/
|
|
192
|
+
type: 'payment' | 'paymentRequestFulfillment' | 'deposit' | 'withdrawal';
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
export interface ApprovalDenyResponse {
|
|
198
|
+
data: ApprovalDenyResponse.Data;
|
|
199
|
+
}
|
|
200
|
+
export declare namespace ApprovalDenyResponse {
|
|
201
|
+
interface Data {
|
|
202
|
+
/**
|
|
203
|
+
* Approval ID
|
|
204
|
+
*/
|
|
205
|
+
id: string;
|
|
206
|
+
/**
|
|
207
|
+
* Resource attributes
|
|
208
|
+
*/
|
|
209
|
+
attributes: Data.Attributes;
|
|
210
|
+
/**
|
|
211
|
+
* Resource type
|
|
212
|
+
*/
|
|
213
|
+
type: string;
|
|
214
|
+
}
|
|
215
|
+
namespace Data {
|
|
216
|
+
/**
|
|
217
|
+
* Resource attributes
|
|
218
|
+
*/
|
|
219
|
+
interface Attributes {
|
|
220
|
+
/**
|
|
221
|
+
* When the approval was created
|
|
222
|
+
*/
|
|
223
|
+
createdAt: string;
|
|
224
|
+
/**
|
|
225
|
+
* Reasons this approval is under review
|
|
226
|
+
*/
|
|
227
|
+
reasons: Array<Attributes.Reason>;
|
|
228
|
+
/**
|
|
229
|
+
* When the approval was resolved
|
|
230
|
+
*/
|
|
231
|
+
resolvedAt: string | null;
|
|
232
|
+
/**
|
|
233
|
+
* Approval status
|
|
234
|
+
*/
|
|
235
|
+
status: 'pending' | 'approved' | 'denied' | 'canceled';
|
|
236
|
+
/**
|
|
237
|
+
* Product operation that needs approval
|
|
238
|
+
*/
|
|
239
|
+
target: Attributes.Target;
|
|
240
|
+
/**
|
|
241
|
+
* When the approval was last updated
|
|
242
|
+
*/
|
|
243
|
+
updatedAt: string;
|
|
244
|
+
}
|
|
245
|
+
namespace Attributes {
|
|
246
|
+
interface Reason {
|
|
247
|
+
/**
|
|
248
|
+
* Actual transaction amount in minor units
|
|
249
|
+
*/
|
|
250
|
+
actualAmount: number;
|
|
251
|
+
/**
|
|
252
|
+
* Currency code
|
|
253
|
+
*/
|
|
254
|
+
currency: string;
|
|
255
|
+
/**
|
|
256
|
+
* Configured limit amount in minor units
|
|
257
|
+
*/
|
|
258
|
+
limitAmount: number;
|
|
259
|
+
limitType: string;
|
|
260
|
+
type: string;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Product operation that needs approval
|
|
264
|
+
*/
|
|
265
|
+
interface Target {
|
|
266
|
+
/**
|
|
267
|
+
* Product execution ID
|
|
268
|
+
*/
|
|
269
|
+
id: string;
|
|
270
|
+
/**
|
|
271
|
+
* Product execution type under approval
|
|
272
|
+
*/
|
|
273
|
+
type: 'payment' | 'paymentRequestFulfillment' | 'deposit' | 'withdrawal';
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
export interface ApprovalGetResponse {
|
|
279
|
+
data: ApprovalGetResponse.Data;
|
|
280
|
+
}
|
|
281
|
+
export declare namespace ApprovalGetResponse {
|
|
282
|
+
interface Data {
|
|
283
|
+
/**
|
|
284
|
+
* Approval ID
|
|
285
|
+
*/
|
|
286
|
+
id: string;
|
|
287
|
+
/**
|
|
288
|
+
* Resource attributes
|
|
289
|
+
*/
|
|
290
|
+
attributes: Data.Attributes;
|
|
291
|
+
/**
|
|
292
|
+
* Resource type
|
|
293
|
+
*/
|
|
294
|
+
type: string;
|
|
295
|
+
}
|
|
296
|
+
namespace Data {
|
|
297
|
+
/**
|
|
298
|
+
* Resource attributes
|
|
299
|
+
*/
|
|
300
|
+
interface Attributes {
|
|
301
|
+
/**
|
|
302
|
+
* When the approval was created
|
|
303
|
+
*/
|
|
304
|
+
createdAt: string;
|
|
305
|
+
/**
|
|
306
|
+
* Reasons this approval is under review
|
|
307
|
+
*/
|
|
308
|
+
reasons: Array<Attributes.Reason>;
|
|
309
|
+
/**
|
|
310
|
+
* When the approval was resolved
|
|
311
|
+
*/
|
|
312
|
+
resolvedAt: string | null;
|
|
313
|
+
/**
|
|
314
|
+
* Approval status
|
|
315
|
+
*/
|
|
316
|
+
status: 'pending' | 'approved' | 'denied' | 'canceled';
|
|
317
|
+
/**
|
|
318
|
+
* Product operation that needs approval
|
|
319
|
+
*/
|
|
320
|
+
target: Attributes.Target;
|
|
321
|
+
/**
|
|
322
|
+
* When the approval was last updated
|
|
323
|
+
*/
|
|
324
|
+
updatedAt: string;
|
|
325
|
+
}
|
|
326
|
+
namespace Attributes {
|
|
327
|
+
interface Reason {
|
|
328
|
+
/**
|
|
329
|
+
* Actual transaction amount in minor units
|
|
330
|
+
*/
|
|
331
|
+
actualAmount: number;
|
|
332
|
+
/**
|
|
333
|
+
* Currency code
|
|
334
|
+
*/
|
|
335
|
+
currency: string;
|
|
336
|
+
/**
|
|
337
|
+
* Configured limit amount in minor units
|
|
338
|
+
*/
|
|
339
|
+
limitAmount: number;
|
|
340
|
+
limitType: string;
|
|
341
|
+
type: string;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Product operation that needs approval
|
|
345
|
+
*/
|
|
346
|
+
interface Target {
|
|
347
|
+
/**
|
|
348
|
+
* Product execution ID
|
|
349
|
+
*/
|
|
350
|
+
id: string;
|
|
351
|
+
/**
|
|
352
|
+
* Product execution type under approval
|
|
353
|
+
*/
|
|
354
|
+
type: 'payment' | 'paymentRequestFulfillment' | 'deposit' | 'withdrawal';
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
export interface ApprovalListParams {
|
|
360
|
+
/**
|
|
361
|
+
* Query param: Maximum number to return
|
|
362
|
+
*/
|
|
363
|
+
limit?: number;
|
|
364
|
+
/**
|
|
365
|
+
* Query param: Approval status to list. Defaults to pending approvals.
|
|
366
|
+
*/
|
|
367
|
+
status?: 'pending' | 'approved' | 'denied' | 'canceled';
|
|
368
|
+
/**
|
|
369
|
+
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
370
|
+
*/
|
|
371
|
+
'X-Agent-ID'?: string;
|
|
372
|
+
/**
|
|
373
|
+
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
374
|
+
* for agent observability.
|
|
375
|
+
*/
|
|
376
|
+
'X-Instance-ID'?: string;
|
|
377
|
+
}
|
|
378
|
+
export interface ApprovalApproveParams {
|
|
379
|
+
/**
|
|
380
|
+
* Agent ID (agt_xxx) identifying which agent is making the request.
|
|
381
|
+
*/
|
|
382
|
+
'X-Agent-ID'?: string;
|
|
383
|
+
/**
|
|
384
|
+
* Required when X-Agent-ID is present. Session or conversation ID for agent
|
|
385
|
+
* observability.
|
|
386
|
+
*/
|
|
387
|
+
'X-Instance-ID'?: string;
|
|
388
|
+
}
|
|
389
|
+
export interface ApprovalDenyParams {
|
|
390
|
+
/**
|
|
391
|
+
* Agent ID (agt_xxx) identifying which agent is making the request.
|
|
392
|
+
*/
|
|
393
|
+
'X-Agent-ID'?: string;
|
|
394
|
+
/**
|
|
395
|
+
* Required when X-Agent-ID is present. Session or conversation ID for agent
|
|
396
|
+
* observability.
|
|
397
|
+
*/
|
|
398
|
+
'X-Instance-ID'?: string;
|
|
399
|
+
}
|
|
400
|
+
export interface ApprovalGetParams {
|
|
401
|
+
/**
|
|
402
|
+
* Agent ID (agt_xxx) identifying which agent is making the request.
|
|
403
|
+
*/
|
|
404
|
+
'X-Agent-ID'?: string;
|
|
405
|
+
/**
|
|
406
|
+
* Required when X-Agent-ID is present. Session or conversation ID for agent
|
|
407
|
+
* observability.
|
|
408
|
+
*/
|
|
409
|
+
'X-Instance-ID'?: string;
|
|
410
|
+
}
|
|
411
|
+
export declare namespace Approvals {
|
|
412
|
+
export { type ApprovalListResponse as ApprovalListResponse, type ApprovalApproveResponse as ApprovalApproveResponse, type ApprovalDenyResponse as ApprovalDenyResponse, type ApprovalGetResponse as ApprovalGetResponse, type ApprovalListParams as ApprovalListParams, type ApprovalApproveParams as ApprovalApproveParams, type ApprovalDenyParams as ApprovalDenyParams, type ApprovalGetParams as ApprovalGetParams, };
|
|
413
|
+
}
|
|
414
|
+
//# sourceMappingURL=approvals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../src/resources/approvals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,IAAI,CACF,MAAM,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAenC;;OAEG;IACH,OAAO,CACL,UAAU,EAAE,MAAM,EAClB,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IActC;;OAEG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,MAAM,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAcnC;;OAEG;IACH,GAAG,CACD,UAAU,EAAE,MA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EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;IAExD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.Approvals = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Approval review operations
|
|
10
|
+
*/
|
|
11
|
+
class Approvals extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* List approvals for your party.
|
|
14
|
+
*/
|
|
15
|
+
list(params = {}, options) {
|
|
16
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
17
|
+
return this._client.get('/approvals', {
|
|
18
|
+
query,
|
|
19
|
+
...options,
|
|
20
|
+
headers: (0, headers_1.buildHeaders)([
|
|
21
|
+
{
|
|
22
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
23
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
24
|
+
},
|
|
25
|
+
options?.headers,
|
|
26
|
+
]),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Approve the product operation under review.
|
|
31
|
+
*/
|
|
32
|
+
approve(approvalID, params = {}, options) {
|
|
33
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID } = params ?? {};
|
|
34
|
+
return this._client.post((0, path_1.path) `/approvals/${approvalID}/approve`, {
|
|
35
|
+
...options,
|
|
36
|
+
headers: (0, headers_1.buildHeaders)([
|
|
37
|
+
{
|
|
38
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
39
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
40
|
+
},
|
|
41
|
+
options?.headers,
|
|
42
|
+
]),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Deny the product operation under review.
|
|
47
|
+
*/
|
|
48
|
+
deny(approvalID, params = {}, options) {
|
|
49
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID } = params ?? {};
|
|
50
|
+
return this._client.post((0, path_1.path) `/approvals/${approvalID}/deny`, {
|
|
51
|
+
...options,
|
|
52
|
+
headers: (0, headers_1.buildHeaders)([
|
|
53
|
+
{
|
|
54
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
55
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
56
|
+
},
|
|
57
|
+
options?.headers,
|
|
58
|
+
]),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Get details of a specific approval.
|
|
63
|
+
*/
|
|
64
|
+
get(approvalID, params = {}, options) {
|
|
65
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID } = params ?? {};
|
|
66
|
+
return this._client.get((0, path_1.path) `/approvals/${approvalID}`, {
|
|
67
|
+
...options,
|
|
68
|
+
headers: (0, headers_1.buildHeaders)([
|
|
69
|
+
{
|
|
70
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
71
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
72
|
+
},
|
|
73
|
+
options?.headers,
|
|
74
|
+
]),
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.Approvals = Approvals;
|
|
79
|
+
//# sourceMappingURL=approvals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approvals.js","sourceRoot":"","sources":["../src/resources/approvals.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;OAEG;IACH,IAAI,CACF,SAAgD,EAAE,EAClD,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE;YACpC,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAA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AE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC9D,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACxE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CACD,UAAkB,EAClB,SAA+C,EAAE,EACjD,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,UAAU,EAAE,EAAE;YACtD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC9D,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACxE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AApFD,8BAoFC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Approval review operations
|
|
7
|
+
*/
|
|
8
|
+
export class Approvals extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List approvals for your party.
|
|
11
|
+
*/
|
|
12
|
+
list(params = {}, options) {
|
|
13
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
14
|
+
return this._client.get('/approvals', {
|
|
15
|
+
query,
|
|
16
|
+
...options,
|
|
17
|
+
headers: buildHeaders([
|
|
18
|
+
{
|
|
19
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
20
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
21
|
+
},
|
|
22
|
+
options?.headers,
|
|
23
|
+
]),
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Approve the product operation under review.
|
|
28
|
+
*/
|
|
29
|
+
approve(approvalID, params = {}, options) {
|
|
30
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID } = params ?? {};
|
|
31
|
+
return this._client.post(path `/approvals/${approvalID}/approve`, {
|
|
32
|
+
...options,
|
|
33
|
+
headers: buildHeaders([
|
|
34
|
+
{
|
|
35
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
36
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
37
|
+
},
|
|
38
|
+
options?.headers,
|
|
39
|
+
]),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Deny the product operation under review.
|
|
44
|
+
*/
|
|
45
|
+
deny(approvalID, params = {}, options) {
|
|
46
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID } = params ?? {};
|
|
47
|
+
return this._client.post(path `/approvals/${approvalID}/deny`, {
|
|
48
|
+
...options,
|
|
49
|
+
headers: buildHeaders([
|
|
50
|
+
{
|
|
51
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
52
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
53
|
+
},
|
|
54
|
+
options?.headers,
|
|
55
|
+
]),
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Get details of a specific approval.
|
|
60
|
+
*/
|
|
61
|
+
get(approvalID, params = {}, options) {
|
|
62
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID } = params ?? {};
|
|
63
|
+
return this._client.get(path `/approvals/${approvalID}`, {
|
|
64
|
+
...options,
|
|
65
|
+
headers: buildHeaders([
|
|
66
|
+
{
|
|
67
|
+
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
68
|
+
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
69
|
+
},
|
|
70
|
+
options?.headers,
|
|
71
|
+
]),
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=approvals.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approvals.mjs","sourceRoot":"","sources":["../src/resources/approvals.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,IAAI,CACF,SAAgD,EAAE,EAClD,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE;YACpC,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,QAAQ,I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AAC,CAAC,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC9D,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACxE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CACD,UAAkB,EAClB,SAA+C,EAAE,EACjD,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,UAAU,EAAE,EAAE;YACtD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC9D,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACxE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -127,7 +127,7 @@ export declare namespace CustomerListResponse {
|
|
|
127
127
|
*/
|
|
128
128
|
interface Limits {
|
|
129
129
|
/**
|
|
130
|
-
* Positive per-transaction limit in cents. null means no per-
|
|
130
|
+
* Positive per-transaction limit in cents. null means no per-transaction limit.
|
|
131
131
|
*/
|
|
132
132
|
perTransaction?: number | null;
|
|
133
133
|
}
|
|
@@ -308,7 +308,7 @@ export declare namespace CustomerGetResponse {
|
|
|
308
308
|
*/
|
|
309
309
|
interface Limits {
|
|
310
310
|
/**
|
|
311
|
-
* Positive per-transaction limit in cents. null means no per-
|
|
311
|
+
* Positive per-transaction limit in cents. null means no per-transaction limit.
|
|
312
312
|
*/
|
|
313
313
|
perTransaction?: number | null;
|
|
314
314
|
}
|
package/resources/customers.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ export declare namespace CustomerListResponse {
|
|
|
127
127
|
*/
|
|
128
128
|
interface Limits {
|
|
129
129
|
/**
|
|
130
|
-
* Positive per-transaction limit in cents. null means no per-
|
|
130
|
+
* Positive per-transaction limit in cents. null means no per-transaction limit.
|
|
131
131
|
*/
|
|
132
132
|
perTransaction?: number | null;
|
|
133
133
|
}
|
|
@@ -308,7 +308,7 @@ export declare namespace CustomerGetResponse {
|
|
|
308
308
|
*/
|
|
309
309
|
interface Limits {
|
|
310
310
|
/**
|
|
311
|
-
* Positive per-transaction limit in cents. null means no per-
|
|
311
|
+
* Positive per-transaction limit in cents. null means no per-transaction limit.
|
|
312
312
|
*/
|
|
313
313
|
perTransaction?: number | null;
|
|
314
314
|
}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { APIKeys, type APIKeyCreateResponse, type APIKeyListResponse, type APIKeyGetResponse, type APIKeyRevokeResponse, type APIKeyCreateParams, type APIKeyListParams, type APIKeyGetParams, type APIKeyRevokeParams, } from "./api-keys.mjs";
|
|
2
2
|
export { Agents, type AgentCreateResponse, type AgentUpdateResponse, type AgentListResponse, type AgentCreateCustomerResponse, type AgentGetResponse, type AgentGetCustomerResponse, type AgentListCustomersResponse, type AgentRemoveResponse, type AgentRemoveCustomerResponse, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, type AgentCreateCustomerParams, type AgentGetParams, type AgentGetCustomerParams, type AgentListCustomersParams, type AgentRemoveParams, type AgentRemoveCustomerParams, } from "./agents.mjs";
|
|
3
|
+
export { Approvals, type ApprovalListResponse, type ApprovalApproveResponse, type ApprovalDenyResponse, type ApprovalGetResponse, type ApprovalListParams, type ApprovalApproveParams, type ApprovalDenyParams, type ApprovalGetParams, } from "./approvals.mjs";
|
|
3
4
|
export { Counterparties, type CounterpartyListResponse, type CounterpartyListParams } from "./counterparties.mjs";
|
|
4
5
|
export { Customers, type CustomerListResponse, type CustomerGetResponse, type CustomerListParams, type CustomerGetParams, } from "./customers.mjs";
|
|
5
6
|
export { ExternalAccounts, type ExternalAccountListResponse, type ExternalAccountRemoveResponse, type ExternalAccountListParams, type ExternalAccountRemoveParams, } from "./external-accounts.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,kBAAkB,GACxB,uBAAmB;AACpB,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,GAC/B,qBAAiB;AAClB,OAAO,EAAE,cAAc,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE,6BAAyB;AAC9G,OAAO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB,wBAAoB;AACrB,OAAO,EACL,gBAAgB,EAChB,KAAK,2BAA2B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EACL,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,eAAe,GACrB,qBAAiB;AAClB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,GAC/B,uBAAmB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,kBAAkB,GACxB,uBAAmB;AACpB,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,GAC/B,qBAAiB;AAClB,OAAO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,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,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B,2BAAuB;AACxB,OAAO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,GACtC,wBAAoB;AACrB,OAAO,EACL,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,eAAe,GACrB,qBAAiB;AAClB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,GAC/B,uBAAmB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { APIKeys, type APIKeyCreateResponse, type APIKeyListResponse, type APIKeyGetResponse, type APIKeyRevokeResponse, type APIKeyCreateParams, type APIKeyListParams, type APIKeyGetParams, type APIKeyRevokeParams, } from "./api-keys.js";
|
|
2
2
|
export { Agents, type AgentCreateResponse, type AgentUpdateResponse, type AgentListResponse, type AgentCreateCustomerResponse, type AgentGetResponse, type AgentGetCustomerResponse, type AgentListCustomersResponse, type AgentRemoveResponse, type AgentRemoveCustomerResponse, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, type AgentCreateCustomerParams, type AgentGetParams, type AgentGetCustomerParams, type AgentListCustomersParams, type AgentRemoveParams, type AgentRemoveCustomerParams, } from "./agents.js";
|
|
3
|
+
export { Approvals, type ApprovalListResponse, type ApprovalApproveResponse, type ApprovalDenyResponse, type ApprovalGetResponse, type ApprovalListParams, type ApprovalApproveParams, type ApprovalDenyParams, type ApprovalGetParams, } from "./approvals.js";
|
|
3
4
|
export { Counterparties, type CounterpartyListResponse, type CounterpartyListParams } from "./counterparties.js";
|
|
4
5
|
export { Customers, type CustomerListResponse, type CustomerGetResponse, type CustomerListParams, type CustomerGetParams, } from "./customers.js";
|
|
5
6
|
export { ExternalAccounts, type ExternalAccountListResponse, type ExternalAccountRemoveResponse, type ExternalAccountListParams, type ExternalAccountRemoveParams, } from "./external-accounts.js";
|