@naturalpay/sdk 0.9.0 → 0.11.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 +20 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents.d.mts +33 -26
- package/resources/agents.d.mts.map +1 -1
- package/resources/agents.d.ts +33 -26
- package/resources/agents.d.ts.map +1 -1
- package/resources/agents.js +1 -1
- package/resources/agents.mjs +1 -1
- package/resources/api-keys.d.mts +16 -16
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +16 -16
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/approvals.d.mts +16 -16
- package/resources/approvals.d.mts.map +1 -1
- package/resources/approvals.d.ts +16 -16
- package/resources/approvals.d.ts.map +1 -1
- package/resources/counterparties.d.mts +1 -1
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +1 -1
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/customers.d.mts +6 -6
- package/resources/customers.d.mts.map +1 -1
- package/resources/customers.d.ts +6 -6
- package/resources/customers.d.ts.map +1 -1
- package/resources/external-accounts.d.mts +4 -4
- package/resources/external-accounts.d.mts.map +1 -1
- package/resources/external-accounts.d.ts +4 -4
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invitations.d.mts +3 -3
- package/resources/invitations.d.mts.map +1 -1
- package/resources/invitations.d.ts +3 -3
- package/resources/invitations.d.ts.map +1 -1
- package/resources/parties.d.mts +4 -4
- package/resources/parties.d.mts.map +1 -1
- package/resources/parties.d.ts +4 -4
- package/resources/parties.d.ts.map +1 -1
- package/resources/payment-requests.d.mts +374 -82
- package/resources/payment-requests.d.mts.map +1 -1
- package/resources/payment-requests.d.ts +374 -82
- package/resources/payment-requests.d.ts.map +1 -1
- package/resources/payment-requests.js +35 -48
- package/resources/payment-requests.js.map +1 -1
- package/resources/payment-requests.mjs +35 -48
- package/resources/payment-requests.mjs.map +1 -1
- package/resources/payments.d.mts +433 -44
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +433 -44
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +40 -22
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +40 -22
- package/resources/payments.mjs.map +1 -1
- package/resources/transactions.d.mts +26 -28
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +26 -28
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +6 -18
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +6 -18
- package/resources/transactions.mjs.map +1 -1
- package/resources/transfers.d.mts +64 -57
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +64 -57
- package/resources/transfers.d.ts.map +1 -1
- package/resources/transfers.js +20 -29
- package/resources/transfers.js.map +1 -1
- package/resources/transfers.mjs +20 -29
- package/resources/transfers.mjs.map +1 -1
- package/resources/wallet.d.mts +4 -4
- package/resources/wallet.d.mts.map +1 -1
- package/resources/wallet.d.ts +4 -4
- package/resources/wallet.d.ts.map +1 -1
- package/resources/webhooks.d.mts +12 -12
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +12 -12
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/agents.ts +39 -26
- package/src/resources/api-keys.ts +16 -16
- package/src/resources/approvals.ts +16 -16
- package/src/resources/counterparties.ts +1 -1
- package/src/resources/customers.ts +6 -6
- package/src/resources/external-accounts.ts +4 -4
- package/src/resources/index.ts +2 -0
- package/src/resources/invitations.ts +3 -3
- package/src/resources/parties.ts +4 -4
- package/src/resources/payment-requests.ts +484 -126
- package/src/resources/payments.ts +531 -67
- package/src/resources/transactions.ts +32 -49
- package/src/resources/transfers.ts +72 -88
- package/src/resources/wallet.ts +4 -4
- package/src/resources/webhooks.ts +12 -12
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -13,21 +13,12 @@ export class Transactions extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* List transactions visible to your party.
|
|
15
15
|
*/
|
|
16
|
-
list(
|
|
17
|
-
|
|
18
|
-
options?: RequestOptions,
|
|
19
|
-
): APIPromise<TransactionListResponse> {
|
|
20
|
-
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
16
|
+
list(params: TransactionListParams, options?: RequestOptions): APIPromise<TransactionListResponse> {
|
|
17
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params;
|
|
21
18
|
return this._client.get('/transactions', {
|
|
22
19
|
query,
|
|
23
20
|
...options,
|
|
24
|
-
headers: buildHeaders([
|
|
25
|
-
{
|
|
26
|
-
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
27
|
-
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
28
|
-
},
|
|
29
|
-
options?.headers,
|
|
30
|
-
]),
|
|
21
|
+
headers: buildHeaders([{ 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID }, options?.headers]),
|
|
31
22
|
});
|
|
32
23
|
}
|
|
33
24
|
|
|
@@ -36,20 +27,14 @@ export class Transactions extends APIResource {
|
|
|
36
27
|
*/
|
|
37
28
|
get(
|
|
38
29
|
transactionID: string,
|
|
39
|
-
params: TransactionGetParams
|
|
30
|
+
params: TransactionGetParams,
|
|
40
31
|
options?: RequestOptions,
|
|
41
32
|
): APIPromise<TransactionGetResponse> {
|
|
42
|
-
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params
|
|
33
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params;
|
|
43
34
|
return this._client.get(path`/transactions/${transactionID}`, {
|
|
44
35
|
query,
|
|
45
36
|
...options,
|
|
46
|
-
headers: buildHeaders([
|
|
47
|
-
{
|
|
48
|
-
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
49
|
-
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
50
|
-
},
|
|
51
|
-
options?.headers,
|
|
52
|
-
]),
|
|
37
|
+
headers: buildHeaders([{ 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID }, options?.headers]),
|
|
53
38
|
});
|
|
54
39
|
}
|
|
55
40
|
}
|
|
@@ -77,7 +62,7 @@ export namespace TransactionListResponse {
|
|
|
77
62
|
*/
|
|
78
63
|
relationships: Data.Relationships;
|
|
79
64
|
|
|
80
|
-
type:
|
|
65
|
+
type: 'transaction';
|
|
81
66
|
}
|
|
82
67
|
|
|
83
68
|
export namespace Data {
|
|
@@ -180,7 +165,7 @@ export namespace TransactionListResponse {
|
|
|
180
165
|
/**
|
|
181
166
|
* Resource type
|
|
182
167
|
*/
|
|
183
|
-
type:
|
|
168
|
+
type: 'party';
|
|
184
169
|
}
|
|
185
170
|
}
|
|
186
171
|
|
|
@@ -204,7 +189,7 @@ export namespace TransactionListResponse {
|
|
|
204
189
|
/**
|
|
205
190
|
* Resource type
|
|
206
191
|
*/
|
|
207
|
-
type:
|
|
192
|
+
type: 'party';
|
|
208
193
|
}
|
|
209
194
|
}
|
|
210
195
|
|
|
@@ -229,7 +214,7 @@ export namespace TransactionListResponse {
|
|
|
229
214
|
/**
|
|
230
215
|
* Resource type
|
|
231
216
|
*/
|
|
232
|
-
type:
|
|
217
|
+
type: 'payment';
|
|
233
218
|
}
|
|
234
219
|
}
|
|
235
220
|
|
|
@@ -254,7 +239,7 @@ export namespace TransactionListResponse {
|
|
|
254
239
|
/**
|
|
255
240
|
* Resource type
|
|
256
241
|
*/
|
|
257
|
-
type:
|
|
242
|
+
type: 'transfer';
|
|
258
243
|
}
|
|
259
244
|
}
|
|
260
245
|
}
|
|
@@ -294,7 +279,7 @@ export namespace TransactionGetResponse {
|
|
|
294
279
|
*/
|
|
295
280
|
relationships: Data.Relationships;
|
|
296
281
|
|
|
297
|
-
type:
|
|
282
|
+
type: 'transaction';
|
|
298
283
|
}
|
|
299
284
|
|
|
300
285
|
export namespace Data {
|
|
@@ -397,7 +382,7 @@ export namespace TransactionGetResponse {
|
|
|
397
382
|
/**
|
|
398
383
|
* Resource type
|
|
399
384
|
*/
|
|
400
|
-
type:
|
|
385
|
+
type: 'party';
|
|
401
386
|
}
|
|
402
387
|
}
|
|
403
388
|
|
|
@@ -421,7 +406,7 @@ export namespace TransactionGetResponse {
|
|
|
421
406
|
/**
|
|
422
407
|
* Resource type
|
|
423
408
|
*/
|
|
424
|
-
type:
|
|
409
|
+
type: 'party';
|
|
425
410
|
}
|
|
426
411
|
}
|
|
427
412
|
|
|
@@ -446,7 +431,7 @@ export namespace TransactionGetResponse {
|
|
|
446
431
|
/**
|
|
447
432
|
* Resource type
|
|
448
433
|
*/
|
|
449
|
-
type:
|
|
434
|
+
type: 'payment';
|
|
450
435
|
}
|
|
451
436
|
}
|
|
452
437
|
|
|
@@ -471,7 +456,7 @@ export namespace TransactionGetResponse {
|
|
|
471
456
|
/**
|
|
472
457
|
* Resource type
|
|
473
458
|
*/
|
|
474
|
-
type:
|
|
459
|
+
type: 'transfer';
|
|
475
460
|
}
|
|
476
461
|
}
|
|
477
462
|
}
|
|
@@ -480,48 +465,46 @@ export namespace TransactionGetResponse {
|
|
|
480
465
|
|
|
481
466
|
export interface TransactionListParams {
|
|
482
467
|
/**
|
|
483
|
-
*
|
|
468
|
+
* Header param: Agent ID (agt_xxx) used for attribution and audit.
|
|
484
469
|
*/
|
|
485
|
-
|
|
470
|
+
'X-Agent-ID': string;
|
|
486
471
|
|
|
487
472
|
/**
|
|
488
|
-
*
|
|
473
|
+
* Header param: Stable run, session, or conversation ID for agent observability.
|
|
489
474
|
*/
|
|
490
|
-
|
|
475
|
+
'X-Instance-ID': string;
|
|
491
476
|
|
|
492
477
|
/**
|
|
493
|
-
* Query param
|
|
478
|
+
* Query param: Pagination cursor from previous response
|
|
494
479
|
*/
|
|
495
|
-
|
|
480
|
+
cursor?: string;
|
|
496
481
|
|
|
497
482
|
/**
|
|
498
|
-
*
|
|
483
|
+
* Query param: Results per page
|
|
499
484
|
*/
|
|
500
|
-
|
|
485
|
+
limit?: number;
|
|
501
486
|
|
|
502
487
|
/**
|
|
503
|
-
*
|
|
504
|
-
* for agent observability.
|
|
488
|
+
* Query param
|
|
505
489
|
*/
|
|
506
|
-
'
|
|
490
|
+
type?: 'payment' | 'transfer' | 'all';
|
|
507
491
|
}
|
|
508
492
|
|
|
509
493
|
export interface TransactionGetParams {
|
|
510
494
|
/**
|
|
511
|
-
*
|
|
495
|
+
* Header param: Agent ID (agt_xxx) used for attribution and audit.
|
|
512
496
|
*/
|
|
513
|
-
|
|
497
|
+
'X-Agent-ID': string;
|
|
514
498
|
|
|
515
499
|
/**
|
|
516
|
-
* Header param:
|
|
500
|
+
* Header param: Stable run, session, or conversation ID for agent observability.
|
|
517
501
|
*/
|
|
518
|
-
'X-
|
|
502
|
+
'X-Instance-ID': string;
|
|
519
503
|
|
|
520
504
|
/**
|
|
521
|
-
*
|
|
522
|
-
* for agent observability.
|
|
505
|
+
* Query param: Party ID for delegated transaction lookup
|
|
523
506
|
*/
|
|
524
|
-
|
|
507
|
+
partyId?: string;
|
|
525
508
|
}
|
|
526
509
|
|
|
527
510
|
export declare namespace Transactions {
|
|
@@ -15,24 +15,18 @@ export class Transfers extends APIResource {
|
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```ts
|
|
18
|
-
* const transfers = await client.transfers.list(
|
|
18
|
+
* const transfers = await client.transfers.list({
|
|
19
|
+
* 'X-Agent-ID': 'X-Agent-ID',
|
|
20
|
+
* 'X-Instance-ID': 'X-Instance-ID',
|
|
21
|
+
* });
|
|
19
22
|
* ```
|
|
20
23
|
*/
|
|
21
|
-
list(
|
|
22
|
-
|
|
23
|
-
options?: RequestOptions,
|
|
24
|
-
): APIPromise<TransferListResponse> {
|
|
25
|
-
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
|
|
24
|
+
list(params: TransferListParams, options?: RequestOptions): APIPromise<TransferListResponse> {
|
|
25
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params;
|
|
26
26
|
return this._client.get('/transfers', {
|
|
27
27
|
query,
|
|
28
28
|
...options,
|
|
29
|
-
headers: buildHeaders([
|
|
30
|
-
{
|
|
31
|
-
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
32
|
-
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
33
|
-
},
|
|
34
|
-
options?.headers,
|
|
35
|
-
]),
|
|
29
|
+
headers: buildHeaders([{ 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID }, options?.headers]),
|
|
36
30
|
});
|
|
37
31
|
}
|
|
38
32
|
|
|
@@ -43,25 +37,23 @@ export class Transfers extends APIResource {
|
|
|
43
37
|
* ```ts
|
|
44
38
|
* const transfer = await client.transfers.get(
|
|
45
39
|
* 'trf_ecc2efdd09bd231a9ad9bd2aada37aa7',
|
|
40
|
+
* {
|
|
41
|
+
* 'X-Agent-ID': 'X-Agent-ID',
|
|
42
|
+
* 'X-Instance-ID': 'X-Instance-ID',
|
|
43
|
+
* },
|
|
46
44
|
* );
|
|
47
45
|
* ```
|
|
48
46
|
*/
|
|
49
47
|
get(
|
|
50
48
|
transferID: string,
|
|
51
|
-
params: TransferGetParams
|
|
49
|
+
params: TransferGetParams,
|
|
52
50
|
options?: RequestOptions,
|
|
53
51
|
): APIPromise<TransferGetResponse> {
|
|
54
|
-
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params
|
|
52
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params;
|
|
55
53
|
return this._client.get(path`/transfers/${transferID}`, {
|
|
56
54
|
query,
|
|
57
55
|
...options,
|
|
58
|
-
headers: buildHeaders([
|
|
59
|
-
{
|
|
60
|
-
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
61
|
-
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
62
|
-
},
|
|
63
|
-
options?.headers,
|
|
64
|
-
]),
|
|
56
|
+
headers: buildHeaders([{ 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID }, options?.headers]),
|
|
65
57
|
});
|
|
66
58
|
}
|
|
67
59
|
|
|
@@ -74,6 +66,8 @@ export class Transfers extends APIResource {
|
|
|
74
66
|
* amount: 100,
|
|
75
67
|
* externalAccountId: 'eac_ecc2efdd09bd231a9ad9bd2aada37aa7',
|
|
76
68
|
* 'Idempotency-Key': 'Idempotency-Key',
|
|
69
|
+
* 'X-Agent-ID': 'X-Agent-ID',
|
|
70
|
+
* 'X-Instance-ID': 'X-Instance-ID',
|
|
77
71
|
* });
|
|
78
72
|
* ```
|
|
79
73
|
*/
|
|
@@ -91,11 +85,7 @@ export class Transfers extends APIResource {
|
|
|
91
85
|
body,
|
|
92
86
|
...options,
|
|
93
87
|
headers: buildHeaders([
|
|
94
|
-
{
|
|
95
|
-
'Idempotency-Key': idempotencyKey,
|
|
96
|
-
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
97
|
-
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
98
|
-
},
|
|
88
|
+
{ 'Idempotency-Key': idempotencyKey, 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID },
|
|
99
89
|
options?.headers,
|
|
100
90
|
]),
|
|
101
91
|
});
|
|
@@ -110,6 +100,8 @@ export class Transfers extends APIResource {
|
|
|
110
100
|
* amount: 1,
|
|
111
101
|
* externalAccountId: 'eac_ecc2efdd09bd231a9ad9bd2aada37aa7',
|
|
112
102
|
* 'Idempotency-Key': 'Idempotency-Key',
|
|
103
|
+
* 'X-Agent-ID': 'X-Agent-ID',
|
|
104
|
+
* 'X-Instance-ID': 'X-Instance-ID',
|
|
113
105
|
* });
|
|
114
106
|
* ```
|
|
115
107
|
*/
|
|
@@ -127,11 +119,7 @@ export class Transfers extends APIResource {
|
|
|
127
119
|
body,
|
|
128
120
|
...options,
|
|
129
121
|
headers: buildHeaders([
|
|
130
|
-
{
|
|
131
|
-
'Idempotency-Key': idempotencyKey,
|
|
132
|
-
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
133
|
-
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
134
|
-
},
|
|
122
|
+
{ 'Idempotency-Key': idempotencyKey, 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID },
|
|
135
123
|
options?.headers,
|
|
136
124
|
]),
|
|
137
125
|
});
|
|
@@ -158,7 +146,7 @@ export namespace TransferListResponse {
|
|
|
158
146
|
*/
|
|
159
147
|
relationships: Data.Relationships;
|
|
160
148
|
|
|
161
|
-
type:
|
|
149
|
+
type: 'transfer';
|
|
162
150
|
}
|
|
163
151
|
|
|
164
152
|
export namespace Data {
|
|
@@ -323,7 +311,7 @@ export namespace TransferListResponse {
|
|
|
323
311
|
/**
|
|
324
312
|
* Resource type
|
|
325
313
|
*/
|
|
326
|
-
type:
|
|
314
|
+
type: 'externalAccount';
|
|
327
315
|
}
|
|
328
316
|
}
|
|
329
317
|
|
|
@@ -347,7 +335,7 @@ export namespace TransferListResponse {
|
|
|
347
335
|
/**
|
|
348
336
|
* Resource type
|
|
349
337
|
*/
|
|
350
|
-
type:
|
|
338
|
+
type: 'party';
|
|
351
339
|
}
|
|
352
340
|
}
|
|
353
341
|
|
|
@@ -371,7 +359,7 @@ export namespace TransferListResponse {
|
|
|
371
359
|
/**
|
|
372
360
|
* Resource type
|
|
373
361
|
*/
|
|
374
|
-
type:
|
|
362
|
+
type: 'transaction';
|
|
375
363
|
}
|
|
376
364
|
}
|
|
377
365
|
|
|
@@ -395,7 +383,7 @@ export namespace TransferListResponse {
|
|
|
395
383
|
/**
|
|
396
384
|
* Resource type
|
|
397
385
|
*/
|
|
398
|
-
type:
|
|
386
|
+
type: 'wallet';
|
|
399
387
|
}
|
|
400
388
|
}
|
|
401
389
|
}
|
|
@@ -432,7 +420,7 @@ export namespace TransferGetResponse {
|
|
|
432
420
|
*/
|
|
433
421
|
relationships: Data.Relationships;
|
|
434
422
|
|
|
435
|
-
type:
|
|
423
|
+
type: 'transfer';
|
|
436
424
|
}
|
|
437
425
|
|
|
438
426
|
export namespace Data {
|
|
@@ -597,7 +585,7 @@ export namespace TransferGetResponse {
|
|
|
597
585
|
/**
|
|
598
586
|
* Resource type
|
|
599
587
|
*/
|
|
600
|
-
type:
|
|
588
|
+
type: 'externalAccount';
|
|
601
589
|
}
|
|
602
590
|
}
|
|
603
591
|
|
|
@@ -621,7 +609,7 @@ export namespace TransferGetResponse {
|
|
|
621
609
|
/**
|
|
622
610
|
* Resource type
|
|
623
611
|
*/
|
|
624
|
-
type:
|
|
612
|
+
type: 'party';
|
|
625
613
|
}
|
|
626
614
|
}
|
|
627
615
|
|
|
@@ -645,7 +633,7 @@ export namespace TransferGetResponse {
|
|
|
645
633
|
/**
|
|
646
634
|
* Resource type
|
|
647
635
|
*/
|
|
648
|
-
type:
|
|
636
|
+
type: 'transaction';
|
|
649
637
|
}
|
|
650
638
|
}
|
|
651
639
|
|
|
@@ -669,7 +657,7 @@ export namespace TransferGetResponse {
|
|
|
669
657
|
/**
|
|
670
658
|
* Resource type
|
|
671
659
|
*/
|
|
672
|
-
type:
|
|
660
|
+
type: 'wallet';
|
|
673
661
|
}
|
|
674
662
|
}
|
|
675
663
|
}
|
|
@@ -694,7 +682,7 @@ export namespace TransferInitiateDepositResponse {
|
|
|
694
682
|
*/
|
|
695
683
|
relationships: Data.Relationships;
|
|
696
684
|
|
|
697
|
-
type:
|
|
685
|
+
type: 'transfer';
|
|
698
686
|
}
|
|
699
687
|
|
|
700
688
|
export namespace Data {
|
|
@@ -859,7 +847,7 @@ export namespace TransferInitiateDepositResponse {
|
|
|
859
847
|
/**
|
|
860
848
|
* Resource type
|
|
861
849
|
*/
|
|
862
|
-
type:
|
|
850
|
+
type: 'externalAccount';
|
|
863
851
|
}
|
|
864
852
|
}
|
|
865
853
|
|
|
@@ -883,7 +871,7 @@ export namespace TransferInitiateDepositResponse {
|
|
|
883
871
|
/**
|
|
884
872
|
* Resource type
|
|
885
873
|
*/
|
|
886
|
-
type:
|
|
874
|
+
type: 'party';
|
|
887
875
|
}
|
|
888
876
|
}
|
|
889
877
|
|
|
@@ -907,7 +895,7 @@ export namespace TransferInitiateDepositResponse {
|
|
|
907
895
|
/**
|
|
908
896
|
* Resource type
|
|
909
897
|
*/
|
|
910
|
-
type:
|
|
898
|
+
type: 'transaction';
|
|
911
899
|
}
|
|
912
900
|
}
|
|
913
901
|
|
|
@@ -931,7 +919,7 @@ export namespace TransferInitiateDepositResponse {
|
|
|
931
919
|
/**
|
|
932
920
|
* Resource type
|
|
933
921
|
*/
|
|
934
|
-
type:
|
|
922
|
+
type: 'wallet';
|
|
935
923
|
}
|
|
936
924
|
}
|
|
937
925
|
}
|
|
@@ -956,7 +944,7 @@ export namespace TransferInitiateWithdrawalResponse {
|
|
|
956
944
|
*/
|
|
957
945
|
relationships: Data.Relationships;
|
|
958
946
|
|
|
959
|
-
type:
|
|
947
|
+
type: 'transfer';
|
|
960
948
|
}
|
|
961
949
|
|
|
962
950
|
export namespace Data {
|
|
@@ -1121,7 +1109,7 @@ export namespace TransferInitiateWithdrawalResponse {
|
|
|
1121
1109
|
/**
|
|
1122
1110
|
* Resource type
|
|
1123
1111
|
*/
|
|
1124
|
-
type:
|
|
1112
|
+
type: 'externalAccount';
|
|
1125
1113
|
}
|
|
1126
1114
|
}
|
|
1127
1115
|
|
|
@@ -1145,7 +1133,7 @@ export namespace TransferInitiateWithdrawalResponse {
|
|
|
1145
1133
|
/**
|
|
1146
1134
|
* Resource type
|
|
1147
1135
|
*/
|
|
1148
|
-
type:
|
|
1136
|
+
type: 'party';
|
|
1149
1137
|
}
|
|
1150
1138
|
}
|
|
1151
1139
|
|
|
@@ -1169,7 +1157,7 @@ export namespace TransferInitiateWithdrawalResponse {
|
|
|
1169
1157
|
/**
|
|
1170
1158
|
* Resource type
|
|
1171
1159
|
*/
|
|
1172
|
-
type:
|
|
1160
|
+
type: 'transaction';
|
|
1173
1161
|
}
|
|
1174
1162
|
}
|
|
1175
1163
|
|
|
@@ -1193,7 +1181,7 @@ export namespace TransferInitiateWithdrawalResponse {
|
|
|
1193
1181
|
/**
|
|
1194
1182
|
* Resource type
|
|
1195
1183
|
*/
|
|
1196
|
-
type:
|
|
1184
|
+
type: 'wallet';
|
|
1197
1185
|
}
|
|
1198
1186
|
}
|
|
1199
1187
|
}
|
|
@@ -1202,48 +1190,46 @@ export namespace TransferInitiateWithdrawalResponse {
|
|
|
1202
1190
|
|
|
1203
1191
|
export interface TransferListParams {
|
|
1204
1192
|
/**
|
|
1205
|
-
*
|
|
1193
|
+
* Header param: Agent ID (agt_xxx) used for attribution and audit.
|
|
1206
1194
|
*/
|
|
1207
|
-
|
|
1195
|
+
'X-Agent-ID': string;
|
|
1208
1196
|
|
|
1209
1197
|
/**
|
|
1210
|
-
*
|
|
1198
|
+
* Header param: Stable run, session, or conversation ID for agent observability.
|
|
1211
1199
|
*/
|
|
1212
|
-
|
|
1200
|
+
'X-Instance-ID': string;
|
|
1213
1201
|
|
|
1214
1202
|
/**
|
|
1215
|
-
* Query param:
|
|
1203
|
+
* Query param: Pagination cursor from previous response
|
|
1216
1204
|
*/
|
|
1217
|
-
|
|
1205
|
+
cursor?: string;
|
|
1218
1206
|
|
|
1219
1207
|
/**
|
|
1220
|
-
*
|
|
1208
|
+
* Query param: Results per page
|
|
1221
1209
|
*/
|
|
1222
|
-
|
|
1210
|
+
limit?: number;
|
|
1223
1211
|
|
|
1224
1212
|
/**
|
|
1225
|
-
*
|
|
1226
|
-
* for agent observability.
|
|
1213
|
+
* Query param: Party ID for delegated transfer lookup
|
|
1227
1214
|
*/
|
|
1228
|
-
|
|
1215
|
+
partyId?: string;
|
|
1229
1216
|
}
|
|
1230
1217
|
|
|
1231
1218
|
export interface TransferGetParams {
|
|
1232
1219
|
/**
|
|
1233
|
-
*
|
|
1220
|
+
* Header param: Agent ID (agt_xxx) used for attribution and audit.
|
|
1234
1221
|
*/
|
|
1235
|
-
|
|
1222
|
+
'X-Agent-ID': string;
|
|
1236
1223
|
|
|
1237
1224
|
/**
|
|
1238
|
-
* Header param:
|
|
1225
|
+
* Header param: Stable run, session, or conversation ID for agent observability.
|
|
1239
1226
|
*/
|
|
1240
|
-
'X-
|
|
1227
|
+
'X-Instance-ID': string;
|
|
1241
1228
|
|
|
1242
1229
|
/**
|
|
1243
|
-
*
|
|
1244
|
-
* for agent observability.
|
|
1230
|
+
* Query param: Party ID for delegated transfer lookup
|
|
1245
1231
|
*/
|
|
1246
|
-
|
|
1232
|
+
partyId?: string;
|
|
1247
1233
|
}
|
|
1248
1234
|
|
|
1249
1235
|
export interface TransferInitiateDepositParams {
|
|
@@ -1264,25 +1250,24 @@ export interface TransferInitiateDepositParams {
|
|
|
1264
1250
|
'Idempotency-Key': string;
|
|
1265
1251
|
|
|
1266
1252
|
/**
|
|
1267
|
-
*
|
|
1253
|
+
* Header param: Agent ID (agt_xxx) used for attribution and audit.
|
|
1268
1254
|
*/
|
|
1269
|
-
|
|
1255
|
+
'X-Agent-ID': string;
|
|
1270
1256
|
|
|
1271
1257
|
/**
|
|
1272
|
-
*
|
|
1258
|
+
* Header param: Stable run, session, or conversation ID for agent observability.
|
|
1273
1259
|
*/
|
|
1274
|
-
|
|
1260
|
+
'X-Instance-ID': string;
|
|
1275
1261
|
|
|
1276
1262
|
/**
|
|
1277
|
-
*
|
|
1263
|
+
* Body param: Currency code
|
|
1278
1264
|
*/
|
|
1279
|
-
|
|
1265
|
+
currency?: string;
|
|
1280
1266
|
|
|
1281
1267
|
/**
|
|
1282
|
-
*
|
|
1283
|
-
* for agent observability.
|
|
1268
|
+
* Body param: Deposit description
|
|
1284
1269
|
*/
|
|
1285
|
-
|
|
1270
|
+
description?: string;
|
|
1286
1271
|
}
|
|
1287
1272
|
|
|
1288
1273
|
export interface TransferInitiateWithdrawalParams {
|
|
@@ -1303,25 +1288,24 @@ export interface TransferInitiateWithdrawalParams {
|
|
|
1303
1288
|
'Idempotency-Key': string;
|
|
1304
1289
|
|
|
1305
1290
|
/**
|
|
1306
|
-
*
|
|
1291
|
+
* Header param: Agent ID (agt_xxx) used for attribution and audit.
|
|
1307
1292
|
*/
|
|
1308
|
-
|
|
1293
|
+
'X-Agent-ID': string;
|
|
1309
1294
|
|
|
1310
1295
|
/**
|
|
1311
|
-
*
|
|
1296
|
+
* Header param: Stable run, session, or conversation ID for agent observability.
|
|
1312
1297
|
*/
|
|
1313
|
-
|
|
1298
|
+
'X-Instance-ID': string;
|
|
1314
1299
|
|
|
1315
1300
|
/**
|
|
1316
|
-
*
|
|
1301
|
+
* Body param: Currency code
|
|
1317
1302
|
*/
|
|
1318
|
-
|
|
1303
|
+
currency?: string;
|
|
1319
1304
|
|
|
1320
1305
|
/**
|
|
1321
|
-
*
|
|
1322
|
-
* for agent observability.
|
|
1306
|
+
* Body param: Withdrawal description
|
|
1323
1307
|
*/
|
|
1324
|
-
|
|
1308
|
+
description?: string;
|
|
1325
1309
|
}
|
|
1326
1310
|
|
|
1327
1311
|
export declare namespace Transfers {
|
package/src/resources/wallet.ts
CHANGED
|
@@ -80,7 +80,7 @@ export namespace WalletListResponse {
|
|
|
80
80
|
/**
|
|
81
81
|
* Resource type
|
|
82
82
|
*/
|
|
83
|
-
type:
|
|
83
|
+
type: 'wallet';
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
export namespace Data {
|
|
@@ -197,7 +197,7 @@ export namespace WalletListResponse {
|
|
|
197
197
|
/**
|
|
198
198
|
* Resource type
|
|
199
199
|
*/
|
|
200
|
-
type:
|
|
200
|
+
type: 'party';
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
}
|
|
@@ -240,7 +240,7 @@ export namespace WalletGetResponse {
|
|
|
240
240
|
/**
|
|
241
241
|
* Resource type
|
|
242
242
|
*/
|
|
243
|
-
type:
|
|
243
|
+
type: 'wallet';
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
export namespace Data {
|
|
@@ -357,7 +357,7 @@ export namespace WalletGetResponse {
|
|
|
357
357
|
/**
|
|
358
358
|
* Resource type
|
|
359
359
|
*/
|
|
360
|
-
type:
|
|
360
|
+
type: 'party';
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
}
|