@naturalpay/sdk 0.14.0 → 0.15.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 +49 -60
  4. package/resources/payment-requests.d.mts.map +1 -1
  5. package/resources/payment-requests.d.ts +49 -60
  6. package/resources/payment-requests.d.ts.map +1 -1
  7. package/resources/payment-requests.js +46 -33
  8. package/resources/payment-requests.js.map +1 -1
  9. package/resources/payment-requests.mjs +46 -33
  10. package/resources/payment-requests.mjs.map +1 -1
  11. package/resources/payments.d.mts +34 -43
  12. package/resources/payments.d.mts.map +1 -1
  13. package/resources/payments.d.ts +34 -43
  14. package/resources/payments.d.ts.map +1 -1
  15. package/resources/payments.js +30 -23
  16. package/resources/payments.js.map +1 -1
  17. package/resources/payments.mjs +30 -23
  18. package/resources/payments.mjs.map +1 -1
  19. package/resources/transactions.d.mts +18 -16
  20. package/resources/transactions.d.mts.map +1 -1
  21. package/resources/transactions.d.ts +18 -16
  22. package/resources/transactions.d.ts.map +1 -1
  23. package/resources/transactions.js +18 -6
  24. package/resources/transactions.js.map +1 -1
  25. package/resources/transactions.mjs +18 -6
  26. package/resources/transactions.mjs.map +1 -1
  27. package/resources/transfers.d.mts +37 -44
  28. package/resources/transfers.d.mts.map +1 -1
  29. package/resources/transfers.d.ts +37 -44
  30. package/resources/transfers.d.ts.map +1 -1
  31. package/resources/transfers.js +29 -20
  32. package/resources/transfers.js.map +1 -1
  33. package/resources/transfers.mjs +29 -20
  34. package/resources/transfers.mjs.map +1 -1
  35. package/src/resources/payment-requests.ts +93 -71
  36. package/src/resources/payments.ts +71 -53
  37. package/src/resources/transactions.ts +39 -22
  38. package/src/resources/transfers.ts +68 -52
  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
@@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CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,iBAAiB,EAAE,cAAc;oBACjC,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;;;;;;;;;;;OAWG;IACH,kBAAkB,CAChB,MAAwC,EACxC,OAAwB;QAExB,MAAM,EACJ,iBAAiB,EAAE,cAAc,EACjC,YAAY,EAAE,QAAQ,EACtB,eAAe,EAAE,WAAW,EAC5B,GAAG,IAAI,EACR,GAAG,MAAM,CAAC;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC9C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,iBAAiB,EAAE,cAAc;oBACjC,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;AA/HD,8BA+HC"}
@@ -11,18 +11,21 @@ export class Transfers extends APIResource {
11
11
  *
12
12
  * @example
13
13
  * ```ts
14
- * const transfers = await client.transfers.list({
15
- * 'X-Agent-ID': 'X-Agent-ID',
16
- * 'X-Instance-ID': 'X-Instance-ID',
17
- * });
14
+ * const transfers = await client.transfers.list();
18
15
  * ```
19
16
  */
20
- list(params, options) {
21
- const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params;
17
+ list(params = {}, options) {
18
+ const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
22
19
  return this._client.get('/transfers', {
23
20
  query,
24
21
  ...options,
25
- headers: buildHeaders([{ 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID }, options?.headers]),
22
+ headers: buildHeaders([
23
+ {
24
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
25
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
26
+ },
27
+ options?.headers,
28
+ ]),
26
29
  });
27
30
  }
28
31
  /**
@@ -32,19 +35,21 @@ export class Transfers extends APIResource {
32
35
  * ```ts
33
36
  * const transfer = await client.transfers.get(
34
37
  * 'trf_ecc2efdd09bd231a9ad9bd2aada37aa7',
35
- * {
36
- * 'X-Agent-ID': 'X-Agent-ID',
37
- * 'X-Instance-ID': 'X-Instance-ID',
38
- * },
39
38
  * );
40
39
  * ```
41
40
  */
42
- get(transferID, params, options) {
43
- const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params;
41
+ get(transferID, params = {}, options) {
42
+ const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
44
43
  return this._client.get(path `/transfers/${transferID}`, {
45
44
  query,
46
45
  ...options,
47
- headers: buildHeaders([{ 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID }, options?.headers]),
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
+ ]),
48
53
  });
49
54
  }
50
55
  /**
@@ -56,8 +61,6 @@ export class Transfers extends APIResource {
56
61
  * amount: 100,
57
62
  * externalAccountId: 'eac_ecc2efdd09bd231a9ad9bd2aada37aa7',
58
63
  * 'Idempotency-Key': 'Idempotency-Key',
59
- * 'X-Agent-ID': 'X-Agent-ID',
60
- * 'X-Instance-ID': 'X-Instance-ID',
61
64
  * });
62
65
  * ```
63
66
  */
@@ -67,7 +70,11 @@ export class Transfers extends APIResource {
67
70
  body,
68
71
  ...options,
69
72
  headers: buildHeaders([
70
- { 'Idempotency-Key': idempotencyKey, 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID },
73
+ {
74
+ 'Idempotency-Key': idempotencyKey,
75
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
76
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
77
+ },
71
78
  options?.headers,
72
79
  ]),
73
80
  });
@@ -81,8 +88,6 @@ export class Transfers extends APIResource {
81
88
  * amount: 1,
82
89
  * externalAccountId: 'eac_ecc2efdd09bd231a9ad9bd2aada37aa7',
83
90
  * 'Idempotency-Key': 'Idempotency-Key',
84
- * 'X-Agent-ID': 'X-Agent-ID',
85
- * 'X-Instance-ID': 'X-Instance-ID',
86
91
  * });
87
92
  * ```
88
93
  */
@@ -92,7 +97,11 @@ export class Transfers extends APIResource {
92
97
  body,
93
98
  ...options,
94
99
  headers: buildHeaders([
95
- { 'Idempotency-Key': idempotencyKey, 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID },
100
+ {
101
+ 'Idempotency-Key': idempotencyKey,
102
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
103
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
104
+ },
96
105
  options?.headers,
97
106
  ]),
98
107
  });
@@ -1 +1 @@
1
- {"version":3,"file":"transfers.mjs","sourceRoot":"","sources":["../src/resources/transfers.ts"],"names":[],"mappings":"AAAA,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,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,iBAAiB,EAAE,cAAc;oBACjC,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;;;;;;;;;;;OAWG;IACH,kBAAkB,CAChB,MAAwC,EACxC,OAAwB;QAExB,MAAM,EACJ,iBAAiB,EAAE,cAAc,EACjC,YAAY,EAAE,QAAQ,EACtB,eAAe,EAAE,WAAW,EAC5B,GAAG,IAAI,EACR,GAAG,MAAM,CAAC;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC9C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,iBAAiB,EAAE,cAAc;oBACjC,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"}
@@ -21,8 +21,6 @@ export class PaymentRequests extends APIResource {
21
21
  * amount: 1,
22
22
  * payer: { type: 'email', value: 'dev@stainless.com' },
23
23
  * 'Idempotency-Key': 'Idempotency-Key',
24
- * 'X-Agent-ID': 'X-Agent-ID',
25
- * 'X-Instance-ID': 'X-Instance-ID',
26
24
  * });
27
25
  * ```
28
26
  */
@@ -40,7 +38,11 @@ export class PaymentRequests extends APIResource {
40
38
  body,
41
39
  ...options,
42
40
  headers: buildHeaders([
43
- { 'Idempotency-Key': idempotencyKey, 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID },
41
+ {
42
+ 'Idempotency-Key': idempotencyKey,
43
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
44
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
45
+ },
44
46
  options?.headers,
45
47
  ]),
46
48
  });
@@ -51,18 +53,24 @@ export class PaymentRequests extends APIResource {
51
53
  *
52
54
  * @example
53
55
  * ```ts
54
- * const paymentRequests = await client.paymentRequests.list({
55
- * 'X-Agent-ID': 'X-Agent-ID',
56
- * 'X-Instance-ID': 'X-Instance-ID',
57
- * });
56
+ * const paymentRequests = await client.paymentRequests.list();
58
57
  * ```
59
58
  */
60
- list(params: PaymentRequestListParams, options?: RequestOptions): APIPromise<PaymentRequestListResponse> {
61
- const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params;
59
+ list(
60
+ params: PaymentRequestListParams | null | undefined = {},
61
+ options?: RequestOptions,
62
+ ): APIPromise<PaymentRequestListResponse> {
63
+ const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
62
64
  return this._client.get('/payment-requests', {
63
65
  query,
64
66
  ...options,
65
- headers: buildHeaders([{ 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID }, options?.headers]),
67
+ headers: buildHeaders([
68
+ {
69
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
70
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
71
+ },
72
+ options?.headers,
73
+ ]),
66
74
  });
67
75
  }
68
76
 
@@ -74,11 +82,7 @@ export class PaymentRequests extends APIResource {
74
82
  * ```ts
75
83
  * const response = await client.paymentRequests.decline(
76
84
  * 'prq_ecc2efdd09bd231a9ad9bd2aada37aa7',
77
- * {
78
- * 'Idempotency-Key': 'Idempotency-Key',
79
- * 'X-Agent-ID': 'X-Agent-ID',
80
- * 'X-Instance-ID': 'X-Instance-ID',
81
- * },
85
+ * { 'Idempotency-Key': 'Idempotency-Key' },
82
86
  * );
83
87
  * ```
84
88
  */
@@ -95,7 +99,11 @@ export class PaymentRequests extends APIResource {
95
99
  return this._client.post(path`/payment-requests/${paymentRequestID}/decline`, {
96
100
  ...options,
97
101
  headers: buildHeaders([
98
- { 'Idempotency-Key': idempotencyKey, 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID },
102
+ {
103
+ 'Idempotency-Key': idempotencyKey,
104
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
105
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
106
+ },
99
107
  options?.headers,
100
108
  ]),
101
109
  });
@@ -114,8 +122,6 @@ export class PaymentRequests extends APIResource {
114
122
  * walletId: 'wal_ecc2efdd09bd231a9ad9bd2aada37aa7',
115
123
  * },
116
124
  * 'Idempotency-Key': 'Idempotency-Key',
117
- * 'X-Agent-ID': 'X-Agent-ID',
118
- * 'X-Instance-ID': 'X-Instance-ID',
119
125
  * },
120
126
  * );
121
127
  * ```
@@ -135,7 +141,11 @@ export class PaymentRequests extends APIResource {
135
141
  body,
136
142
  ...options,
137
143
  headers: buildHeaders([
138
- { 'Idempotency-Key': idempotencyKey, 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID },
144
+ {
145
+ 'Idempotency-Key': idempotencyKey,
146
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
147
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
148
+ },
139
149
  options?.headers,
140
150
  ]),
141
151
  });
@@ -148,22 +158,24 @@ export class PaymentRequests extends APIResource {
148
158
  * ```ts
149
159
  * const paymentRequest = await client.paymentRequests.get(
150
160
  * 'prq_ecc2efdd09bd231a9ad9bd2aada37aa7',
151
- * {
152
- * 'X-Agent-ID': 'X-Agent-ID',
153
- * 'X-Instance-ID': 'X-Instance-ID',
154
- * },
155
161
  * );
156
162
  * ```
157
163
  */
158
164
  get(
159
165
  paymentRequestID: string,
160
- params: PaymentRequestGetParams,
166
+ params: PaymentRequestGetParams | null | undefined = {},
161
167
  options?: RequestOptions,
162
168
  ): APIPromise<PaymentRequestGetResponse> {
163
- const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID } = params;
169
+ const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID } = params ?? {};
164
170
  return this._client.get(path`/payment-requests/${paymentRequestID}`, {
165
171
  ...options,
166
- headers: buildHeaders([{ 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID }, options?.headers]),
172
+ headers: buildHeaders([
173
+ {
174
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
175
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
176
+ },
177
+ options?.headers,
178
+ ]),
167
179
  });
168
180
  }
169
181
 
@@ -172,21 +184,25 @@ export class PaymentRequests extends APIResource {
172
184
  *
173
185
  * @example
174
186
  * ```ts
175
- * const response = await client.paymentRequests.listIncoming({
176
- * 'X-Agent-ID': 'X-Agent-ID',
177
- * 'X-Instance-ID': 'X-Instance-ID',
178
- * });
187
+ * const response =
188
+ * await client.paymentRequests.listIncoming();
179
189
  * ```
180
190
  */
181
191
  listIncoming(
182
- params: PaymentRequestListIncomingParams,
192
+ params: PaymentRequestListIncomingParams | null | undefined = {},
183
193
  options?: RequestOptions,
184
194
  ): APIPromise<PaymentRequestListIncomingResponse> {
185
- const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params;
195
+ const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
186
196
  return this._client.get('/payment-requests/incoming', {
187
197
  query,
188
198
  ...options,
189
- headers: buildHeaders([{ 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID }, options?.headers]),
199
+ headers: buildHeaders([
200
+ {
201
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
202
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
203
+ },
204
+ options?.headers,
205
+ ]),
190
206
  });
191
207
  }
192
208
  }
@@ -1640,16 +1656,6 @@ export interface PaymentRequestCreateParams {
1640
1656
  */
1641
1657
  'Idempotency-Key': string;
1642
1658
 
1643
- /**
1644
- * Header param: Agent ID (agt_xxx) used for attribution and audit.
1645
- */
1646
- 'X-Agent-ID': string;
1647
-
1648
- /**
1649
- * Header param: Stable run, session, or conversation ID for agent observability.
1650
- */
1651
- 'X-Instance-ID': string;
1652
-
1653
1659
  /**
1654
1660
  * Body param: Currency code (currently only USD)
1655
1661
  */
@@ -1676,6 +1682,17 @@ export interface PaymentRequestCreateParams {
1676
1682
  * party's default wallet.
1677
1683
  */
1678
1684
  walletId?: string;
1685
+
1686
+ /**
1687
+ * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1688
+ */
1689
+ 'X-Agent-ID'?: string;
1690
+
1691
+ /**
1692
+ * Header param: Required when X-Agent-ID is present. Session or conversation ID
1693
+ * for agent observability.
1694
+ */
1695
+ 'X-Instance-ID'?: string;
1679
1696
  }
1680
1697
 
1681
1698
  export namespace PaymentRequestCreateParams {
@@ -1718,24 +1735,25 @@ export namespace PaymentRequestCreateParams {
1718
1735
 
1719
1736
  export interface PaymentRequestListParams {
1720
1737
  /**
1721
- * Header param: Agent ID (agt_xxx) used for attribution and audit.
1738
+ * Query param: Pagination cursor returned by the previous response
1722
1739
  */
1723
- 'X-Agent-ID': string;
1740
+ cursor?: string;
1724
1741
 
1725
1742
  /**
1726
- * Header param: Stable run, session, or conversation ID for agent observability.
1743
+ * Query param: Results per page (1-100)
1727
1744
  */
1728
- 'X-Instance-ID': string;
1745
+ limit?: number;
1729
1746
 
1730
1747
  /**
1731
- * Query param: Pagination cursor returned by the previous response
1748
+ * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1732
1749
  */
1733
- cursor?: string;
1750
+ 'X-Agent-ID'?: string;
1734
1751
 
1735
1752
  /**
1736
- * Query param: Results per page (1-100)
1753
+ * Header param: Required when X-Agent-ID is present. Session or conversation ID
1754
+ * for agent observability.
1737
1755
  */
1738
- limit?: number;
1756
+ 'X-Instance-ID'?: string;
1739
1757
  }
1740
1758
 
1741
1759
  export interface PaymentRequestDeclineParams {
@@ -1746,14 +1764,15 @@ export interface PaymentRequestDeclineParams {
1746
1764
  'Idempotency-Key': string;
1747
1765
 
1748
1766
  /**
1749
- * Agent ID (agt_xxx) used for attribution and audit.
1767
+ * Agent ID (agt_xxx) identifying which agent is making the request.
1750
1768
  */
1751
- 'X-Agent-ID': string;
1769
+ 'X-Agent-ID'?: string;
1752
1770
 
1753
1771
  /**
1754
- * Stable run, session, or conversation ID for agent observability.
1772
+ * Required when X-Agent-ID is present. Session or conversation ID for agent
1773
+ * observability.
1755
1774
  */
1756
- 'X-Instance-ID': string;
1775
+ 'X-Instance-ID'?: string;
1757
1776
  }
1758
1777
 
1759
1778
  export interface PaymentRequestFulfillParams {
@@ -1769,14 +1788,15 @@ export interface PaymentRequestFulfillParams {
1769
1788
  'Idempotency-Key': string;
1770
1789
 
1771
1790
  /**
1772
- * Header param: Agent ID (agt_xxx) used for attribution and audit.
1791
+ * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1773
1792
  */
1774
- 'X-Agent-ID': string;
1793
+ 'X-Agent-ID'?: string;
1775
1794
 
1776
1795
  /**
1777
- * Header param: Stable run, session, or conversation ID for agent observability.
1796
+ * Header param: Required when X-Agent-ID is present. Session or conversation ID
1797
+ * for agent observability.
1778
1798
  */
1779
- 'X-Instance-ID': string;
1799
+ 'X-Instance-ID'?: string;
1780
1800
  }
1781
1801
 
1782
1802
  export namespace PaymentRequestFulfillParams {
@@ -1795,36 +1815,38 @@ export namespace PaymentRequestFulfillParams {
1795
1815
 
1796
1816
  export interface PaymentRequestGetParams {
1797
1817
  /**
1798
- * Agent ID (agt_xxx) used for attribution and audit.
1818
+ * Agent ID (agt_xxx) identifying which agent is making the request.
1799
1819
  */
1800
- 'X-Agent-ID': string;
1820
+ 'X-Agent-ID'?: string;
1801
1821
 
1802
1822
  /**
1803
- * Stable run, session, or conversation ID for agent observability.
1823
+ * Required when X-Agent-ID is present. Session or conversation ID for agent
1824
+ * observability.
1804
1825
  */
1805
- 'X-Instance-ID': string;
1826
+ 'X-Instance-ID'?: string;
1806
1827
  }
1807
1828
 
1808
1829
  export interface PaymentRequestListIncomingParams {
1809
1830
  /**
1810
- * Header param: Agent ID (agt_xxx) used for attribution and audit.
1831
+ * Query param: Pagination cursor returned by the previous response
1811
1832
  */
1812
- 'X-Agent-ID': string;
1833
+ cursor?: string;
1813
1834
 
1814
1835
  /**
1815
- * Header param: Stable run, session, or conversation ID for agent observability.
1836
+ * Query param: Results per page (1-100)
1816
1837
  */
1817
- 'X-Instance-ID': string;
1838
+ limit?: number;
1818
1839
 
1819
1840
  /**
1820
- * Query param: Pagination cursor returned by the previous response
1841
+ * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1821
1842
  */
1822
- cursor?: string;
1843
+ 'X-Agent-ID'?: string;
1823
1844
 
1824
1845
  /**
1825
- * Query param: Results per page (1-100)
1846
+ * Header param: Required when X-Agent-ID is present. Session or conversation ID
1847
+ * for agent observability.
1826
1848
  */
1827
- limit?: number;
1849
+ 'X-Instance-ID'?: string;
1828
1850
  }
1829
1851
 
1830
1852
  export declare namespace PaymentRequests {
@@ -22,8 +22,6 @@ 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',
27
25
  * });
28
26
  * ```
29
27
  */
@@ -38,7 +36,11 @@ export class Payments extends APIResource {
38
36
  body,
39
37
  ...options,
40
38
  headers: buildHeaders([
41
- { 'Idempotency-Key': idempotencyKey, 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID },
39
+ {
40
+ 'Idempotency-Key': idempotencyKey,
41
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
42
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
43
+ },
42
44
  options?.headers,
43
45
  ]),
44
46
  });
@@ -49,18 +51,24 @@ export class Payments extends APIResource {
49
51
  *
50
52
  * @example
51
53
  * ```ts
52
- * const payments = await client.payments.list({
53
- * 'X-Agent-ID': 'X-Agent-ID',
54
- * 'X-Instance-ID': 'X-Instance-ID',
55
- * });
54
+ * const payments = await client.payments.list();
56
55
  * ```
57
56
  */
58
- list(params: PaymentListParams, options?: RequestOptions): APIPromise<PaymentListResponse> {
59
- const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params;
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 ?? {};
60
62
  return this._client.get('/payments', {
61
63
  query,
62
64
  ...options,
63
- headers: buildHeaders([{ 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID }, options?.headers]),
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
+ ]),
64
72
  });
65
73
  }
66
74
 
@@ -71,11 +79,7 @@ export class Payments extends APIResource {
71
79
  * ```ts
72
80
  * const response = await client.payments.cancel(
73
81
  * 'pay_ecc2efdd09bd231a9ad9bd2aada37aa7',
74
- * {
75
- * 'Idempotency-Key': 'Idempotency-Key',
76
- * 'X-Agent-ID': 'X-Agent-ID',
77
- * 'X-Instance-ID': 'X-Instance-ID',
78
- * },
82
+ * { 'Idempotency-Key': 'Idempotency-Key' },
79
83
  * );
80
84
  * ```
81
85
  */
@@ -92,7 +96,11 @@ export class Payments extends APIResource {
92
96
  return this._client.post(path`/payments/${paymentID}/cancel`, {
93
97
  ...options,
94
98
  headers: buildHeaders([
95
- { 'Idempotency-Key': idempotencyKey, 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID },
99
+ {
100
+ 'Idempotency-Key': idempotencyKey,
101
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
102
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
103
+ },
96
104
  options?.headers,
97
105
  ]),
98
106
  });
@@ -105,19 +113,25 @@ export class Payments extends APIResource {
105
113
  * ```ts
106
114
  * const payment = await client.payments.get(
107
115
  * 'pay_ecc2efdd09bd231a9ad9bd2aada37aa7',
108
- * {
109
- * 'X-Agent-ID': 'X-Agent-ID',
110
- * 'X-Instance-ID': 'X-Instance-ID',
111
- * },
112
116
  * );
113
117
  * ```
114
118
  */
115
- get(paymentID: string, params: PaymentGetParams, options?: RequestOptions): APIPromise<PaymentGetResponse> {
116
- const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params;
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 ?? {};
117
125
  return this._client.get(path`/payments/${paymentID}`, {
118
126
  query,
119
127
  ...options,
120
- headers: buildHeaders([{ 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID }, options?.headers]),
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
+ ]),
121
135
  });
122
136
  }
123
137
  }
@@ -1046,16 +1060,6 @@ export interface PaymentCreateParams {
1046
1060
  */
1047
1061
  'Idempotency-Key': string;
1048
1062
 
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
-
1059
1063
  /**
1060
1064
  * Body param: Currency code
1061
1065
  */
@@ -1071,6 +1075,17 @@ export interface PaymentCreateParams {
1071
1075
  * Body param: Payment description. Maximum 500 characters.
1072
1076
  */
1073
1077
  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;
1074
1089
  }
1075
1090
 
1076
1091
  export namespace PaymentCreateParams {
@@ -1112,16 +1127,6 @@ export namespace PaymentCreateParams {
1112
1127
  }
1113
1128
 
1114
1129
  export interface PaymentListParams {
1115
- /**
1116
- * Header param: Agent ID (agt_xxx) used for attribution and audit.
1117
- */
1118
- 'X-Agent-ID': string;
1119
-
1120
- /**
1121
- * Header param: Stable run, session, or conversation ID for agent observability.
1122
- */
1123
- 'X-Instance-ID': string;
1124
-
1125
1130
  /**
1126
1131
  * Query param: Pagination cursor from previous response
1127
1132
  */
@@ -1136,6 +1141,17 @@ export interface PaymentListParams {
1136
1141
  * Query param: Party ID for delegated payment lookup
1137
1142
  */
1138
1143
  partyId?: string;
1144
+
1145
+ /**
1146
+ * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1147
+ */
1148
+ 'X-Agent-ID'?: string;
1149
+
1150
+ /**
1151
+ * Header param: Required when X-Agent-ID is present. Session or conversation ID
1152
+ * for agent observability.
1153
+ */
1154
+ 'X-Instance-ID'?: string;
1139
1155
  }
1140
1156
 
1141
1157
  export interface PaymentCancelParams {
@@ -1146,31 +1162,33 @@ export interface PaymentCancelParams {
1146
1162
  'Idempotency-Key': string;
1147
1163
 
1148
1164
  /**
1149
- * Agent ID (agt_xxx) used for attribution and audit.
1165
+ * Agent ID (agt_xxx) identifying which agent is making the request.
1150
1166
  */
1151
- 'X-Agent-ID': string;
1167
+ 'X-Agent-ID'?: string;
1152
1168
 
1153
1169
  /**
1154
- * Stable run, session, or conversation ID for agent observability.
1170
+ * Required when X-Agent-ID is present. Session or conversation ID for agent
1171
+ * observability.
1155
1172
  */
1156
- 'X-Instance-ID': string;
1173
+ 'X-Instance-ID'?: string;
1157
1174
  }
1158
1175
 
1159
1176
  export interface PaymentGetParams {
1160
1177
  /**
1161
- * Header param: Agent ID (agt_xxx) used for attribution and audit.
1178
+ * Query param: Party ID for delegated payment lookup
1162
1179
  */
1163
- 'X-Agent-ID': string;
1180
+ partyId?: string;
1164
1181
 
1165
1182
  /**
1166
- * Header param: Stable run, session, or conversation ID for agent observability.
1183
+ * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1167
1184
  */
1168
- 'X-Instance-ID': string;
1185
+ 'X-Agent-ID'?: string;
1169
1186
 
1170
1187
  /**
1171
- * Query param: Party ID for delegated payment lookup
1188
+ * Header param: Required when X-Agent-ID is present. Session or conversation ID
1189
+ * for agent observability.
1172
1190
  */
1173
- partyId?: string;
1191
+ 'X-Instance-ID'?: string;
1174
1192
  }
1175
1193
 
1176
1194
  export declare namespace Payments {