@naturalpay/sdk 0.4.0 → 0.7.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 (118) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/client.d.mts +7 -16
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -16
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -12
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -12
  9. package/client.mjs.map +1 -1
  10. package/internal/tslib.js +17 -17
  11. package/internal/utils/query.d.mts +3 -0
  12. package/internal/utils/query.d.mts.map +1 -1
  13. package/internal/utils/query.d.ts +3 -0
  14. package/internal/utils/query.d.ts.map +1 -1
  15. package/internal/utils/query.js +16 -3
  16. package/internal/utils/query.js.map +1 -1
  17. package/internal/utils/query.mjs +16 -2
  18. package/internal/utils/query.mjs.map +1 -1
  19. package/package.json +1 -1
  20. package/resources/agents.d.mts +435 -260
  21. package/resources/agents.d.mts.map +1 -1
  22. package/resources/agents.d.ts +435 -260
  23. package/resources/agents.d.ts.map +1 -1
  24. package/resources/agents.js +72 -20
  25. package/resources/agents.js.map +1 -1
  26. package/resources/agents.mjs +72 -20
  27. package/resources/agents.mjs.map +1 -1
  28. package/resources/customers.d.mts +243 -114
  29. package/resources/customers.d.mts.map +1 -1
  30. package/resources/customers.d.ts +243 -114
  31. package/resources/customers.d.ts.map +1 -1
  32. package/resources/customers.js +6 -7
  33. package/resources/customers.js.map +1 -1
  34. package/resources/customers.mjs +6 -7
  35. package/resources/customers.mjs.map +1 -1
  36. package/resources/index.d.mts +2 -4
  37. package/resources/index.d.mts.map +1 -1
  38. package/resources/index.d.ts +2 -4
  39. package/resources/index.d.ts.map +1 -1
  40. package/resources/index.js +1 -5
  41. package/resources/index.js.map +1 -1
  42. package/resources/index.mjs +0 -2
  43. package/resources/index.mjs.map +1 -1
  44. package/src/client.ts +23 -60
  45. package/src/internal/utils/query.ts +18 -2
  46. package/src/resources/agents.ts +541 -294
  47. package/src/resources/customers.ts +273 -132
  48. package/src/resources/index.ts +10 -24
  49. package/src/version.ts +1 -1
  50. package/version.d.mts +1 -1
  51. package/version.d.ts +1 -1
  52. package/version.js +1 -1
  53. package/version.mjs +1 -1
  54. package/internal/qs/formats.d.mts +0 -7
  55. package/internal/qs/formats.d.mts.map +0 -1
  56. package/internal/qs/formats.d.ts +0 -7
  57. package/internal/qs/formats.d.ts.map +0 -1
  58. package/internal/qs/formats.js +0 -13
  59. package/internal/qs/formats.js.map +0 -1
  60. package/internal/qs/formats.mjs +0 -9
  61. package/internal/qs/formats.mjs.map +0 -1
  62. package/internal/qs/index.d.mts +0 -10
  63. package/internal/qs/index.d.mts.map +0 -1
  64. package/internal/qs/index.d.ts +0 -10
  65. package/internal/qs/index.d.ts.map +0 -1
  66. package/internal/qs/index.js +0 -14
  67. package/internal/qs/index.js.map +0 -1
  68. package/internal/qs/index.mjs +0 -10
  69. package/internal/qs/index.mjs.map +0 -1
  70. package/internal/qs/stringify.d.mts +0 -3
  71. package/internal/qs/stringify.d.mts.map +0 -1
  72. package/internal/qs/stringify.d.ts +0 -3
  73. package/internal/qs/stringify.d.ts.map +0 -1
  74. package/internal/qs/stringify.js +0 -277
  75. package/internal/qs/stringify.js.map +0 -1
  76. package/internal/qs/stringify.mjs +0 -274
  77. package/internal/qs/stringify.mjs.map +0 -1
  78. package/internal/qs/types.d.mts +0 -57
  79. package/internal/qs/types.d.mts.map +0 -1
  80. package/internal/qs/types.d.ts +0 -57
  81. package/internal/qs/types.d.ts.map +0 -1
  82. package/internal/qs/types.js +0 -3
  83. package/internal/qs/types.js.map +0 -1
  84. package/internal/qs/types.mjs +0 -2
  85. package/internal/qs/types.mjs.map +0 -1
  86. package/internal/qs/utils.d.mts +0 -15
  87. package/internal/qs/utils.d.mts.map +0 -1
  88. package/internal/qs/utils.d.ts +0 -15
  89. package/internal/qs/utils.d.ts.map +0 -1
  90. package/internal/qs/utils.js +0 -230
  91. package/internal/qs/utils.js.map +0 -1
  92. package/internal/qs/utils.mjs +0 -217
  93. package/internal/qs/utils.mjs.map +0 -1
  94. package/resources/delegations.d.mts +0 -458
  95. package/resources/delegations.d.mts.map +0 -1
  96. package/resources/delegations.d.ts +0 -458
  97. package/resources/delegations.d.ts.map +0 -1
  98. package/resources/delegations.js +0 -47
  99. package/resources/delegations.js.map +0 -1
  100. package/resources/delegations.mjs +0 -43
  101. package/resources/delegations.mjs.map +0 -1
  102. package/resources/escalations.d.mts +0 -1124
  103. package/resources/escalations.d.mts.map +0 -1
  104. package/resources/escalations.d.ts +0 -1124
  105. package/resources/escalations.d.ts.map +0 -1
  106. package/resources/escalations.js +0 -110
  107. package/resources/escalations.js.map +0 -1
  108. package/resources/escalations.mjs +0 -106
  109. package/resources/escalations.mjs.map +0 -1
  110. package/src/internal/qs/LICENSE.md +0 -13
  111. package/src/internal/qs/README.md +0 -3
  112. package/src/internal/qs/formats.ts +0 -10
  113. package/src/internal/qs/index.ts +0 -13
  114. package/src/internal/qs/stringify.ts +0 -385
  115. package/src/internal/qs/types.ts +0 -71
  116. package/src/internal/qs/utils.ts +0 -265
  117. package/src/resources/delegations.ts +0 -580
  118. package/src/resources/escalations.ts +0 -1422
@@ -6,14 +6,13 @@ import { RequestOptions } from "../internal/request-options.mjs";
6
6
  */
7
7
  export declare class Customers extends APIResource {
8
8
  /**
9
- * List active customers you can operate on behalf of.
9
+ * List all customer relationships across the current developer party's agents.
10
10
  */
11
11
  list(params?: CustomerListParams | null | undefined, options?: RequestOptions): APIPromise<CustomerListResponse>;
12
12
  /**
13
- * List the pending customer invitations you've sent agent invitations grouped by
14
- * recipient.
13
+ * Get a specific customer relationship visible to the current developer party.
15
14
  */
16
- listInvitations(params?: CustomerListInvitationsParams | null | undefined, options?: RequestOptions): APIPromise<CustomerListInvitationsResponse>;
15
+ get(customerID: string, params?: CustomerGetParams | null | undefined, options?: RequestOptions): APIPromise<CustomerGetResponse>;
17
16
  }
18
17
  export interface CustomerListResponse {
19
18
  data: Array<CustomerListResponse.Data>;
@@ -32,6 +31,10 @@ export declare namespace CustomerListResponse {
32
31
  * Resource attributes
33
32
  */
34
33
  attributes: Data.Attributes;
34
+ /**
35
+ * Resource relationships
36
+ */
37
+ relationships: Data.Relationships;
35
38
  /**
36
39
  * Resource type
37
40
  */
@@ -43,53 +46,140 @@ export declare namespace CustomerListResponse {
43
46
  */
44
47
  interface Attributes {
45
48
  /**
46
- * When the delegation was created
49
+ * When the customer party was created
47
50
  */
48
- createdAt: string;
51
+ createdAt: string | null;
49
52
  /**
50
- * Customer email, if known
53
+ * Primary email
51
54
  */
52
55
  email: string | null;
53
56
  /**
54
- * Party info
55
- */
56
- party: Attributes.Party;
57
- /**
58
- * Granted permissions
57
+ * Display name, falling back to legal name when display name is unset
59
58
  */
60
- permissions: Array<string>;
61
- /**
62
- * Status (ACTIVE, etc.)
63
- */
64
- status: string;
59
+ name: string;
60
+ }
61
+ /**
62
+ * Resource relationships
63
+ */
64
+ interface Relationships {
65
65
  /**
66
- * Why walletAvailableMinor may be null: "granted" balance is fresh; "denied"
67
- * caller lacks wallets.read; "noWallet" party has not provisioned a wallet.
66
+ * Per-agent access for this customer relationship
68
67
  */
69
- walletAccess: 'granted' | 'denied' | 'noWallet';
68
+ agents: Relationships.Agents;
70
69
  /**
71
- * Available wallet balance in cents. Null when access is denied or no wallet
72
- * exists — see walletAccess.
70
+ * Delegation state for this customer relationship
73
71
  */
74
- walletAvailableMinor: number | null;
72
+ delegation: Relationships.Delegation;
75
73
  }
76
- namespace Attributes {
74
+ namespace Relationships {
77
75
  /**
78
- * Party info
76
+ * Per-agent access for this customer relationship
79
77
  */
80
- interface Party {
78
+ interface Agents {
81
79
  /**
82
- * Party handle (pty_xxx)
80
+ * Agents attached to this customer relationship
83
81
  */
84
- id: string;
82
+ data: Array<Agents.Data>;
83
+ }
84
+ namespace Agents {
85
85
  /**
86
- * Primary email
86
+ * Embedded agent access details
87
87
  */
88
- email: string | null;
88
+ interface Data {
89
+ /**
90
+ * Agent handle (agt_xxx)
91
+ */
92
+ id: string;
93
+ /**
94
+ * Agent access attributes
95
+ */
96
+ attributes: Data.Attributes;
97
+ /**
98
+ * Resource type
99
+ */
100
+ type: string;
101
+ }
102
+ namespace Data {
103
+ /**
104
+ * Agent access attributes
105
+ */
106
+ interface Attributes {
107
+ /**
108
+ * Per-agent limits for this customer relationship
109
+ */
110
+ limits: Attributes.Limits | null;
111
+ /**
112
+ * Agent display name
113
+ */
114
+ name: string | null;
115
+ /**
116
+ * Permissions this agent has for the customer
117
+ */
118
+ permissions: Array<string>;
119
+ /**
120
+ * Agent-customer relationship status
121
+ */
122
+ status: string;
123
+ }
124
+ namespace Attributes {
125
+ /**
126
+ * Per-agent limits for this customer relationship
127
+ */
128
+ interface Limits {
129
+ /**
130
+ * Positive per-transaction limit in cents. null means no per-payment limit.
131
+ */
132
+ perTransaction?: number | null;
133
+ }
134
+ }
135
+ }
136
+ }
137
+ /**
138
+ * Delegation state for this customer relationship
139
+ */
140
+ interface Delegation {
89
141
  /**
90
- * Display name, falling back to legal name when display name is unset
142
+ * Embedded customer delegation details
91
143
  */
92
- name: string;
144
+ data: Delegation.Data;
145
+ }
146
+ namespace Delegation {
147
+ /**
148
+ * Embedded customer delegation details
149
+ */
150
+ interface Data {
151
+ /**
152
+ * Delegation handle (dlg_xxx)
153
+ */
154
+ id: string;
155
+ /**
156
+ * Delegation attributes
157
+ */
158
+ attributes: Data.Attributes;
159
+ /**
160
+ * Resource type
161
+ */
162
+ type: string;
163
+ }
164
+ namespace Data {
165
+ /**
166
+ * Delegation attributes
167
+ */
168
+ interface Attributes {
169
+ /**
170
+ * When the customer relationship was created
171
+ */
172
+ createdAt: string;
173
+ /**
174
+ * Permissions available across this customer
175
+ */
176
+ permissions: Array<string>;
177
+ /**
178
+ * Customer relationship status
179
+ */
180
+ status: string;
181
+ }
182
+ }
93
183
  }
94
184
  }
95
185
  }
@@ -103,25 +193,29 @@ export declare namespace CustomerListResponse {
103
193
  }
104
194
  }
105
195
  }
106
- export interface CustomerListInvitationsResponse {
107
- data: Array<CustomerListInvitationsResponse.Data>;
108
- meta: CustomerListInvitationsResponse.Meta;
196
+ export interface CustomerGetResponse {
197
+ /**
198
+ * Customer resource for an active customer (type='customer', id=pty_xxx).
199
+ */
200
+ data: CustomerGetResponse.Data;
109
201
  }
110
- export declare namespace CustomerListInvitationsResponse {
202
+ export declare namespace CustomerGetResponse {
111
203
  /**
112
- * A pending customer invitation (type='customerInvitation', id=recipient email)
113
- * a grouping of agent invitations sent to one recipient.
204
+ * Customer resource for an active customer (type='customer', id=pty_xxx).
114
205
  */
115
206
  interface Data {
116
207
  /**
117
- * Recipient email the grouping key for the pending invitation. Stays the id even
118
- * after the recipient creates an account.
208
+ * Customer party handle (pty_xxx)
119
209
  */
120
210
  id: string;
121
211
  /**
122
212
  * Resource attributes
123
213
  */
124
214
  attributes: Data.Attributes;
215
+ /**
216
+ * Resource relationships
217
+ */
218
+ relationships: Data.Relationships;
125
219
  /**
126
220
  * Resource type
127
221
  */
@@ -133,100 +227,143 @@ export declare namespace CustomerListInvitationsResponse {
133
227
  */
134
228
  interface Attributes {
135
229
  /**
136
- * Pending agent delegation invitations sent to this recipient
137
- */
138
- agentInvitations: Array<Attributes.AgentInvitation>;
139
- /**
140
- * When the earliest agent invitation was created
230
+ * When the customer party was created
141
231
  */
142
- createdAt: string;
232
+ createdAt: string | null;
143
233
  /**
144
- * Recipient email — the grouping key
234
+ * Primary email
145
235
  */
146
- email: string;
236
+ email: string | null;
147
237
  /**
148
- * Party info (null until the recipient creates an account)
238
+ * Display name, falling back to legal name when display name is unset
149
239
  */
150
- party: Attributes.Party | null;
240
+ name: string;
241
+ }
242
+ /**
243
+ * Resource relationships
244
+ */
245
+ interface Relationships {
151
246
  /**
152
- * Status (always PENDING)
247
+ * Per-agent access for this customer relationship
153
248
  */
154
- status: string;
249
+ agents: Relationships.Agents;
155
250
  /**
156
- * Always 'denied' for pending customers
251
+ * Delegation state for this customer relationship
157
252
  */
158
- walletAccess: 'granted' | 'denied' | 'noWallet';
253
+ delegation: Relationships.Delegation;
254
+ }
255
+ namespace Relationships {
159
256
  /**
160
- * Always null for pending customers
257
+ * Per-agent access for this customer relationship
161
258
  */
162
- walletAvailableMinor: number | null;
163
- }
164
- namespace Attributes {
165
- interface AgentInvitation {
166
- /**
167
- * Agent the invitation targets
168
- */
169
- agent: AgentInvitation.Agent;
170
- /**
171
- * When the agent invitation was created
172
- */
173
- createdAt: string;
259
+ interface Agents {
174
260
  /**
175
- * When the agent invitation expires (null if it does not expire)
261
+ * Agents attached to this customer relationship
176
262
  */
177
- expiresAt: string | null;
178
- /**
179
- * Agent delegation invitation handle (adi_xxx)
180
- */
181
- invitationId: string;
182
- /**
183
- * Permissions the invitation requests
184
- */
185
- permissions: Array<string>;
263
+ data: Array<Agents.Data>;
186
264
  }
187
- namespace AgentInvitation {
265
+ namespace Agents {
188
266
  /**
189
- * Agent the invitation targets
267
+ * Embedded agent access details
190
268
  */
191
- interface Agent {
269
+ interface Data {
192
270
  /**
193
271
  * Agent handle (agt_xxx)
194
272
  */
195
273
  id: string;
196
274
  /**
197
- * Agent display name
275
+ * Agent access attributes
276
+ */
277
+ attributes: Data.Attributes;
278
+ /**
279
+ * Resource type
198
280
  */
199
- name: string | null;
281
+ type: string;
282
+ }
283
+ namespace Data {
284
+ /**
285
+ * Agent access attributes
286
+ */
287
+ interface Attributes {
288
+ /**
289
+ * Per-agent limits for this customer relationship
290
+ */
291
+ limits: Attributes.Limits | null;
292
+ /**
293
+ * Agent display name
294
+ */
295
+ name: string | null;
296
+ /**
297
+ * Permissions this agent has for the customer
298
+ */
299
+ permissions: Array<string>;
300
+ /**
301
+ * Agent-customer relationship status
302
+ */
303
+ status: string;
304
+ }
305
+ namespace Attributes {
306
+ /**
307
+ * Per-agent limits for this customer relationship
308
+ */
309
+ interface Limits {
310
+ /**
311
+ * Positive per-transaction limit in cents. null means no per-payment limit.
312
+ */
313
+ perTransaction?: number | null;
314
+ }
315
+ }
200
316
  }
201
317
  }
202
318
  /**
203
- * Party info (null until the recipient creates an account)
319
+ * Delegation state for this customer relationship
204
320
  */
205
- interface Party {
321
+ interface Delegation {
206
322
  /**
207
- * Party handle (pty_xxx)
323
+ * Embedded customer delegation details
208
324
  */
209
- id: string;
210
- /**
211
- * Primary email
212
- */
213
- email: string | null;
325
+ data: Delegation.Data;
326
+ }
327
+ namespace Delegation {
214
328
  /**
215
- * Display name, falling back to legal name when display name is unset
329
+ * Embedded customer delegation details
216
330
  */
217
- name: string;
331
+ interface Data {
332
+ /**
333
+ * Delegation handle (dlg_xxx)
334
+ */
335
+ id: string;
336
+ /**
337
+ * Delegation attributes
338
+ */
339
+ attributes: Data.Attributes;
340
+ /**
341
+ * Resource type
342
+ */
343
+ type: string;
344
+ }
345
+ namespace Data {
346
+ /**
347
+ * Delegation attributes
348
+ */
349
+ interface Attributes {
350
+ /**
351
+ * When the customer relationship was created
352
+ */
353
+ createdAt: string;
354
+ /**
355
+ * Permissions available across this customer
356
+ */
357
+ permissions: Array<string>;
358
+ /**
359
+ * Customer relationship status
360
+ */
361
+ status: string;
362
+ }
363
+ }
218
364
  }
219
365
  }
220
366
  }
221
- interface Meta {
222
- pagination: Meta.Pagination;
223
- }
224
- namespace Meta {
225
- interface Pagination {
226
- hasMore: boolean;
227
- nextCursor: string | null;
228
- }
229
- }
230
367
  }
231
368
  export interface CustomerListParams {
232
369
  /**
@@ -247,26 +384,18 @@ export interface CustomerListParams {
247
384
  */
248
385
  'X-Instance-ID'?: string;
249
386
  }
250
- export interface CustomerListInvitationsParams {
251
- /**
252
- * Query param: Cursor for pagination
253
- */
254
- cursor?: string;
255
- /**
256
- * Query param: Maximum number of results
257
- */
258
- limit?: number;
387
+ export interface CustomerGetParams {
259
388
  /**
260
- * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
389
+ * Agent ID (agt_xxx) identifying which agent is making the request.
261
390
  */
262
391
  'X-Agent-ID'?: string;
263
392
  /**
264
- * Header param: Required when X-Agent-ID is present. Session or conversation ID
265
- * for agent observability.
393
+ * Required when X-Agent-ID is present. Session or conversation ID for agent
394
+ * observability.
266
395
  */
267
396
  'X-Instance-ID'?: string;
268
397
  }
269
398
  export declare namespace Customers {
270
- export { type CustomerListResponse as CustomerListResponse, type CustomerListInvitationsResponse as CustomerListInvitationsResponse, type CustomerListParams as CustomerListParams, type CustomerListInvitationsParams as CustomerListInvitationsParams, };
399
+ export { type CustomerListResponse as CustomerListResponse, type CustomerGetResponse as CustomerGetResponse, type CustomerListParams as CustomerListParams, type CustomerGetParams as CustomerGetParams, };
271
400
  }
272
401
  //# sourceMappingURL=customers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"customers.d.mts","sourceRoot":"","sources":["../src/resources/customers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;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;;;OAGG;IACH,eAAe,CACb,MAAM,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAc/C;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAEvC,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC;CACjC;AAED,yBAAiB,oBAAoB,CAAC;IACpC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,UAAU,EAAE,IAAI,CAAC,UAAU,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