@naturalpay/sdk 0.10.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/payment-requests.d.mts +60 -49
  4. package/resources/payment-requests.d.mts.map +1 -1
  5. package/resources/payment-requests.d.ts +60 -49
  6. package/resources/payment-requests.d.ts.map +1 -1
  7. package/resources/payment-requests.js +33 -46
  8. package/resources/payment-requests.js.map +1 -1
  9. package/resources/payment-requests.mjs +33 -46
  10. package/resources/payment-requests.mjs.map +1 -1
  11. package/resources/payments.d.mts +43 -34
  12. package/resources/payments.d.mts.map +1 -1
  13. package/resources/payments.d.ts +43 -34
  14. package/resources/payments.d.ts.map +1 -1
  15. package/resources/payments.js +23 -30
  16. package/resources/payments.js.map +1 -1
  17. package/resources/payments.mjs +23 -30
  18. package/resources/payments.mjs.map +1 -1
  19. package/resources/transactions.d.mts +16 -18
  20. package/resources/transactions.d.mts.map +1 -1
  21. package/resources/transactions.d.ts +16 -18
  22. package/resources/transactions.d.ts.map +1 -1
  23. package/resources/transactions.js +6 -18
  24. package/resources/transactions.js.map +1 -1
  25. package/resources/transactions.mjs +6 -18
  26. package/resources/transactions.mjs.map +1 -1
  27. package/resources/transfers.d.mts +44 -37
  28. package/resources/transfers.d.mts.map +1 -1
  29. package/resources/transfers.d.ts +44 -37
  30. package/resources/transfers.d.ts.map +1 -1
  31. package/resources/transfers.js +20 -29
  32. package/resources/transfers.js.map +1 -1
  33. package/resources/transfers.mjs +20 -29
  34. package/resources/transfers.mjs.map +1 -1
  35. package/src/resources/payment-requests.ts +71 -93
  36. package/src/resources/payments.ts +53 -71
  37. package/src/resources/transactions.ts +22 -39
  38. package/src/resources/transfers.ts +52 -68
  39. package/src/version.ts +1 -1
  40. package/version.d.mts +1 -1
  41. package/version.d.ts +1 -1
  42. package/version.js +1 -1
  43. package/version.mjs +1 -1
@@ -22,6 +22,8 @@ export class Payments extends APIResource {
22
22
  * value: 'dev@stainless.com',
23
23
  * },
24
24
  * 'Idempotency-Key': 'Idempotency-Key',
25
+ * 'X-Agent-ID': 'X-Agent-ID',
26
+ * 'X-Instance-ID': 'X-Instance-ID',
25
27
  * });
26
28
  * ```
27
29
  */
@@ -36,11 +38,7 @@ export class Payments extends APIResource {
36
38
  body,
37
39
  ...options,
38
40
  headers: buildHeaders([
39
- {
40
- 'Idempotency-Key': idempotencyKey,
41
- ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
42
- ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
43
- },
41
+ { 'Idempotency-Key': idempotencyKey, 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID },
44
42
  options?.headers,
45
43
  ]),
46
44
  });
@@ -51,24 +49,18 @@ export class Payments extends APIResource {
51
49
  *
52
50
  * @example
53
51
  * ```ts
54
- * const payments = await client.payments.list();
52
+ * const payments = await client.payments.list({
53
+ * 'X-Agent-ID': 'X-Agent-ID',
54
+ * 'X-Instance-ID': 'X-Instance-ID',
55
+ * });
55
56
  * ```
56
57
  */
57
- list(
58
- params: PaymentListParams | null | undefined = {},
59
- options?: RequestOptions,
60
- ): APIPromise<PaymentListResponse> {
61
- const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
58
+ list(params: PaymentListParams, options?: RequestOptions): APIPromise<PaymentListResponse> {
59
+ const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params;
62
60
  return this._client.get('/payments', {
63
61
  query,
64
62
  ...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
- ]),
63
+ headers: buildHeaders([{ 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID }, options?.headers]),
72
64
  });
73
65
  }
74
66
 
@@ -79,7 +71,11 @@ export class Payments extends APIResource {
79
71
  * ```ts
80
72
  * const response = await client.payments.cancel(
81
73
  * 'pay_ecc2efdd09bd231a9ad9bd2aada37aa7',
82
- * { 'Idempotency-Key': 'Idempotency-Key' },
74
+ * {
75
+ * 'Idempotency-Key': 'Idempotency-Key',
76
+ * 'X-Agent-ID': 'X-Agent-ID',
77
+ * 'X-Instance-ID': 'X-Instance-ID',
78
+ * },
83
79
  * );
84
80
  * ```
85
81
  */
@@ -96,11 +92,7 @@ export class Payments extends APIResource {
96
92
  return this._client.post(path`/payments/${paymentID}/cancel`, {
97
93
  ...options,
98
94
  headers: buildHeaders([
99
- {
100
- 'Idempotency-Key': idempotencyKey,
101
- ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
102
- ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
103
- },
95
+ { 'Idempotency-Key': idempotencyKey, 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID },
104
96
  options?.headers,
105
97
  ]),
106
98
  });
@@ -113,25 +105,19 @@ export class Payments extends APIResource {
113
105
  * ```ts
114
106
  * const payment = await client.payments.get(
115
107
  * 'pay_ecc2efdd09bd231a9ad9bd2aada37aa7',
108
+ * {
109
+ * 'X-Agent-ID': 'X-Agent-ID',
110
+ * 'X-Instance-ID': 'X-Instance-ID',
111
+ * },
116
112
  * );
117
113
  * ```
118
114
  */
119
- get(
120
- paymentID: string,
121
- params: PaymentGetParams | null | undefined = {},
122
- options?: RequestOptions,
123
- ): APIPromise<PaymentGetResponse> {
124
- const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
115
+ get(paymentID: string, params: PaymentGetParams, options?: RequestOptions): APIPromise<PaymentGetResponse> {
116
+ const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params;
125
117
  return this._client.get(path`/payments/${paymentID}`, {
126
118
  query,
127
119
  ...options,
128
- headers: buildHeaders([
129
- {
130
- ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
131
- ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
132
- },
133
- options?.headers,
134
- ]),
120
+ headers: buildHeaders([{ 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID }, options?.headers]),
135
121
  });
136
122
  }
137
123
  }
@@ -1060,6 +1046,16 @@ export interface PaymentCreateParams {
1060
1046
  */
1061
1047
  'Idempotency-Key': string;
1062
1048
 
1049
+ /**
1050
+ * Header param: Agent ID (agt_xxx) used for attribution and audit.
1051
+ */
1052
+ 'X-Agent-ID': string;
1053
+
1054
+ /**
1055
+ * Header param: Stable run, session, or conversation ID for agent observability.
1056
+ */
1057
+ 'X-Instance-ID': string;
1058
+
1063
1059
  /**
1064
1060
  * Body param: Currency code
1065
1061
  */
@@ -1075,17 +1071,6 @@ export interface PaymentCreateParams {
1075
1071
  * Body param: Payment description. Maximum 500 characters.
1076
1072
  */
1077
1073
  description?: string;
1078
-
1079
- /**
1080
- * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1081
- */
1082
- 'X-Agent-ID'?: string;
1083
-
1084
- /**
1085
- * Header param: Required when X-Agent-ID is present. Session or conversation ID
1086
- * for agent observability.
1087
- */
1088
- 'X-Instance-ID'?: string;
1089
1074
  }
1090
1075
 
1091
1076
  export namespace PaymentCreateParams {
@@ -1128,30 +1113,29 @@ export namespace PaymentCreateParams {
1128
1113
 
1129
1114
  export interface PaymentListParams {
1130
1115
  /**
1131
- * Query param: Pagination cursor from previous response
1116
+ * Header param: Agent ID (agt_xxx) used for attribution and audit.
1132
1117
  */
1133
- cursor?: string;
1118
+ 'X-Agent-ID': string;
1134
1119
 
1135
1120
  /**
1136
- * Query param: Results per page
1121
+ * Header param: Stable run, session, or conversation ID for agent observability.
1137
1122
  */
1138
- limit?: number;
1123
+ 'X-Instance-ID': string;
1139
1124
 
1140
1125
  /**
1141
- * Query param: Party ID for delegated payment lookup
1126
+ * Query param: Pagination cursor from previous response
1142
1127
  */
1143
- partyId?: string;
1128
+ cursor?: string;
1144
1129
 
1145
1130
  /**
1146
- * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1131
+ * Query param: Results per page
1147
1132
  */
1148
- 'X-Agent-ID'?: string;
1133
+ limit?: number;
1149
1134
 
1150
1135
  /**
1151
- * Header param: Required when X-Agent-ID is present. Session or conversation ID
1152
- * for agent observability.
1136
+ * Query param: Party ID for delegated payment lookup
1153
1137
  */
1154
- 'X-Instance-ID'?: string;
1138
+ partyId?: string;
1155
1139
  }
1156
1140
 
1157
1141
  export interface PaymentCancelParams {
@@ -1162,33 +1146,31 @@ export interface PaymentCancelParams {
1162
1146
  'Idempotency-Key': string;
1163
1147
 
1164
1148
  /**
1165
- * Agent ID (agt_xxx) identifying which agent is making the request.
1149
+ * Agent ID (agt_xxx) used for attribution and audit.
1166
1150
  */
1167
- 'X-Agent-ID'?: string;
1151
+ 'X-Agent-ID': string;
1168
1152
 
1169
1153
  /**
1170
- * Required when X-Agent-ID is present. Session or conversation ID for agent
1171
- * observability.
1154
+ * Stable run, session, or conversation ID for agent observability.
1172
1155
  */
1173
- 'X-Instance-ID'?: string;
1156
+ 'X-Instance-ID': string;
1174
1157
  }
1175
1158
 
1176
1159
  export interface PaymentGetParams {
1177
1160
  /**
1178
- * Query param: Party ID for delegated payment lookup
1161
+ * Header param: Agent ID (agt_xxx) used for attribution and audit.
1179
1162
  */
1180
- partyId?: string;
1163
+ 'X-Agent-ID': string;
1181
1164
 
1182
1165
  /**
1183
- * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1166
+ * Header param: Stable run, session, or conversation ID for agent observability.
1184
1167
  */
1185
- 'X-Agent-ID'?: string;
1168
+ 'X-Instance-ID': string;
1186
1169
 
1187
1170
  /**
1188
- * Header param: Required when X-Agent-ID is present. Session or conversation ID
1189
- * for agent observability.
1171
+ * Query param: Party ID for delegated payment lookup
1190
1172
  */
1191
- 'X-Instance-ID'?: string;
1173
+ partyId?: string;
1192
1174
  }
1193
1175
 
1194
1176
  export declare namespace Payments {
@@ -13,21 +13,12 @@ export class Transactions extends APIResource {
13
13
  /**
14
14
  * List transactions visible to your party.
15
15
  */
16
- list(
17
- params: TransactionListParams | null | undefined = {},
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 | null | undefined = {},
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
  }
@@ -480,48 +465,46 @@ export namespace TransactionGetResponse {
480
465
 
481
466
  export interface TransactionListParams {
482
467
  /**
483
- * Query param: Pagination cursor from previous response
468
+ * Header param: Agent ID (agt_xxx) used for attribution and audit.
484
469
  */
485
- cursor?: string;
470
+ 'X-Agent-ID': string;
486
471
 
487
472
  /**
488
- * Query param: Results per page
473
+ * Header param: Stable run, session, or conversation ID for agent observability.
489
474
  */
490
- limit?: number;
475
+ 'X-Instance-ID': string;
491
476
 
492
477
  /**
493
- * Query param
478
+ * Query param: Pagination cursor from previous response
494
479
  */
495
- type?: 'payment' | 'transfer' | 'all';
480
+ cursor?: string;
496
481
 
497
482
  /**
498
- * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
483
+ * Query param: Results per page
499
484
  */
500
- 'X-Agent-ID'?: string;
485
+ limit?: number;
501
486
 
502
487
  /**
503
- * Header param: Required when X-Agent-ID is present. Session or conversation ID
504
- * for agent observability.
488
+ * Query param
505
489
  */
506
- 'X-Instance-ID'?: string;
490
+ type?: 'payment' | 'transfer' | 'all';
507
491
  }
508
492
 
509
493
  export interface TransactionGetParams {
510
494
  /**
511
- * Query param: Party ID for delegated transaction lookup
495
+ * Header param: Agent ID (agt_xxx) used for attribution and audit.
512
496
  */
513
- partyId?: string;
497
+ 'X-Agent-ID': string;
514
498
 
515
499
  /**
516
- * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
500
+ * Header param: Stable run, session, or conversation ID for agent observability.
517
501
  */
518
- 'X-Agent-ID'?: string;
502
+ 'X-Instance-ID': string;
519
503
 
520
504
  /**
521
- * Header param: Required when X-Agent-ID is present. Session or conversation ID
522
- * for agent observability.
505
+ * Query param: Party ID for delegated transaction lookup
523
506
  */
524
- 'X-Instance-ID'?: string;
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
- params: TransferListParams | null | undefined = {},
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 | null | undefined = {},
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
  });
@@ -1202,48 +1190,46 @@ export namespace TransferInitiateWithdrawalResponse {
1202
1190
 
1203
1191
  export interface TransferListParams {
1204
1192
  /**
1205
- * Query param: Pagination cursor from previous response
1193
+ * Header param: Agent ID (agt_xxx) used for attribution and audit.
1206
1194
  */
1207
- cursor?: string;
1195
+ 'X-Agent-ID': string;
1208
1196
 
1209
1197
  /**
1210
- * Query param: Results per page
1198
+ * Header param: Stable run, session, or conversation ID for agent observability.
1211
1199
  */
1212
- limit?: number;
1200
+ 'X-Instance-ID': string;
1213
1201
 
1214
1202
  /**
1215
- * Query param: Party ID for delegated transfer lookup
1203
+ * Query param: Pagination cursor from previous response
1216
1204
  */
1217
- partyId?: string;
1205
+ cursor?: string;
1218
1206
 
1219
1207
  /**
1220
- * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1208
+ * Query param: Results per page
1221
1209
  */
1222
- 'X-Agent-ID'?: string;
1210
+ limit?: number;
1223
1211
 
1224
1212
  /**
1225
- * Header param: Required when X-Agent-ID is present. Session or conversation ID
1226
- * for agent observability.
1213
+ * Query param: Party ID for delegated transfer lookup
1227
1214
  */
1228
- 'X-Instance-ID'?: string;
1215
+ partyId?: string;
1229
1216
  }
1230
1217
 
1231
1218
  export interface TransferGetParams {
1232
1219
  /**
1233
- * Query param: Party ID for delegated transfer lookup
1220
+ * Header param: Agent ID (agt_xxx) used for attribution and audit.
1234
1221
  */
1235
- partyId?: string;
1222
+ 'X-Agent-ID': string;
1236
1223
 
1237
1224
  /**
1238
- * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1225
+ * Header param: Stable run, session, or conversation ID for agent observability.
1239
1226
  */
1240
- 'X-Agent-ID'?: string;
1227
+ 'X-Instance-ID': string;
1241
1228
 
1242
1229
  /**
1243
- * Header param: Required when X-Agent-ID is present. Session or conversation ID
1244
- * for agent observability.
1230
+ * Query param: Party ID for delegated transfer lookup
1245
1231
  */
1246
- 'X-Instance-ID'?: string;
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
- * Body param: Currency code
1253
+ * Header param: Agent ID (agt_xxx) used for attribution and audit.
1268
1254
  */
1269
- currency?: string;
1255
+ 'X-Agent-ID': string;
1270
1256
 
1271
1257
  /**
1272
- * Body param: Deposit description
1258
+ * Header param: Stable run, session, or conversation ID for agent observability.
1273
1259
  */
1274
- description?: string;
1260
+ 'X-Instance-ID': string;
1275
1261
 
1276
1262
  /**
1277
- * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1263
+ * Body param: Currency code
1278
1264
  */
1279
- 'X-Agent-ID'?: string;
1265
+ currency?: string;
1280
1266
 
1281
1267
  /**
1282
- * Header param: Required when X-Agent-ID is present. Session or conversation ID
1283
- * for agent observability.
1268
+ * Body param: Deposit description
1284
1269
  */
1285
- 'X-Instance-ID'?: string;
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
- * Body param: Currency code
1291
+ * Header param: Agent ID (agt_xxx) used for attribution and audit.
1307
1292
  */
1308
- currency?: string;
1293
+ 'X-Agent-ID': string;
1309
1294
 
1310
1295
  /**
1311
- * Body param: Withdrawal description
1296
+ * Header param: Stable run, session, or conversation ID for agent observability.
1312
1297
  */
1313
- description?: string;
1298
+ 'X-Instance-ID': string;
1314
1299
 
1315
1300
  /**
1316
- * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1301
+ * Body param: Currency code
1317
1302
  */
1318
- 'X-Agent-ID'?: string;
1303
+ currency?: string;
1319
1304
 
1320
1305
  /**
1321
- * Header param: Required when X-Agent-ID is present. Session or conversation ID
1322
- * for agent observability.
1306
+ * Body param: Withdrawal description
1323
1307
  */
1324
- 'X-Instance-ID'?: string;
1308
+ description?: string;
1325
1309
  }
1326
1310
 
1327
1311
  export declare namespace Transfers {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.10.0'; // x-release-please-version
1
+ export const VERSION = '0.11.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.10.0";
1
+ export declare const VERSION = "0.11.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.10.0";
1
+ export declare const VERSION = "0.11.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.10.0'; // x-release-please-version
4
+ exports.VERSION = '0.11.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.10.0'; // x-release-please-version
1
+ export const VERSION = '0.11.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map