@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.
- package/CHANGELOG.md +17 -0
- package/client.d.mts +7 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -16
- package/client.d.ts.map +1 -1
- package/client.js +3 -12
- package/client.js.map +1 -1
- package/client.mjs +3 -12
- package/client.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/query.d.mts +3 -0
- package/internal/utils/query.d.mts.map +1 -1
- package/internal/utils/query.d.ts +3 -0
- package/internal/utils/query.d.ts.map +1 -1
- package/internal/utils/query.js +16 -3
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs +16 -2
- package/internal/utils/query.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents.d.mts +435 -260
- package/resources/agents.d.mts.map +1 -1
- package/resources/agents.d.ts +435 -260
- package/resources/agents.d.ts.map +1 -1
- package/resources/agents.js +72 -20
- package/resources/agents.js.map +1 -1
- package/resources/agents.mjs +72 -20
- package/resources/agents.mjs.map +1 -1
- package/resources/customers.d.mts +243 -114
- package/resources/customers.d.mts.map +1 -1
- package/resources/customers.d.ts +243 -114
- package/resources/customers.d.ts.map +1 -1
- package/resources/customers.js +6 -7
- package/resources/customers.js.map +1 -1
- package/resources/customers.mjs +6 -7
- package/resources/customers.mjs.map +1 -1
- package/resources/index.d.mts +2 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -2
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +23 -60
- package/src/internal/utils/query.ts +18 -2
- package/src/resources/agents.ts +541 -294
- package/src/resources/customers.ts +273 -132
- package/src/resources/index.ts +10 -24
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/internal/qs/formats.d.mts +0 -7
- package/internal/qs/formats.d.mts.map +0 -1
- package/internal/qs/formats.d.ts +0 -7
- package/internal/qs/formats.d.ts.map +0 -1
- package/internal/qs/formats.js +0 -13
- package/internal/qs/formats.js.map +0 -1
- package/internal/qs/formats.mjs +0 -9
- package/internal/qs/formats.mjs.map +0 -1
- package/internal/qs/index.d.mts +0 -10
- package/internal/qs/index.d.mts.map +0 -1
- package/internal/qs/index.d.ts +0 -10
- package/internal/qs/index.d.ts.map +0 -1
- package/internal/qs/index.js +0 -14
- package/internal/qs/index.js.map +0 -1
- package/internal/qs/index.mjs +0 -10
- package/internal/qs/index.mjs.map +0 -1
- package/internal/qs/stringify.d.mts +0 -3
- package/internal/qs/stringify.d.mts.map +0 -1
- package/internal/qs/stringify.d.ts +0 -3
- package/internal/qs/stringify.d.ts.map +0 -1
- package/internal/qs/stringify.js +0 -277
- package/internal/qs/stringify.js.map +0 -1
- package/internal/qs/stringify.mjs +0 -274
- package/internal/qs/stringify.mjs.map +0 -1
- package/internal/qs/types.d.mts +0 -57
- package/internal/qs/types.d.mts.map +0 -1
- package/internal/qs/types.d.ts +0 -57
- package/internal/qs/types.d.ts.map +0 -1
- package/internal/qs/types.js +0 -3
- package/internal/qs/types.js.map +0 -1
- package/internal/qs/types.mjs +0 -2
- package/internal/qs/types.mjs.map +0 -1
- package/internal/qs/utils.d.mts +0 -15
- package/internal/qs/utils.d.mts.map +0 -1
- package/internal/qs/utils.d.ts +0 -15
- package/internal/qs/utils.d.ts.map +0 -1
- package/internal/qs/utils.js +0 -230
- package/internal/qs/utils.js.map +0 -1
- package/internal/qs/utils.mjs +0 -217
- package/internal/qs/utils.mjs.map +0 -1
- package/resources/delegations.d.mts +0 -458
- package/resources/delegations.d.mts.map +0 -1
- package/resources/delegations.d.ts +0 -458
- package/resources/delegations.d.ts.map +0 -1
- package/resources/delegations.js +0 -47
- package/resources/delegations.js.map +0 -1
- package/resources/delegations.mjs +0 -43
- package/resources/delegations.mjs.map +0 -1
- package/resources/escalations.d.mts +0 -1124
- package/resources/escalations.d.mts.map +0 -1
- package/resources/escalations.d.ts +0 -1124
- package/resources/escalations.d.ts.map +0 -1
- package/resources/escalations.js +0 -110
- package/resources/escalations.js.map +0 -1
- package/resources/escalations.mjs +0 -106
- package/resources/escalations.mjs.map +0 -1
- package/src/internal/qs/LICENSE.md +0 -13
- package/src/internal/qs/README.md +0 -3
- package/src/internal/qs/formats.ts +0 -10
- package/src/internal/qs/index.ts +0 -13
- package/src/internal/qs/stringify.ts +0 -385
- package/src/internal/qs/types.ts +0 -71
- package/src/internal/qs/utils.ts +0 -265
- package/src/resources/delegations.ts +0 -580
- package/src/resources/escalations.ts +0 -1422
|
@@ -4,13 +4,14 @@ import { APIResource } from '../core/resource';
|
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
5
|
import { buildHeaders } from '../internal/headers';
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Customer management
|
|
10
11
|
*/
|
|
11
12
|
export class Customers extends APIResource {
|
|
12
13
|
/**
|
|
13
|
-
* List
|
|
14
|
+
* List all customer relationships across the current developer party's agents.
|
|
14
15
|
*/
|
|
15
16
|
list(
|
|
16
17
|
params: CustomerListParams | null | undefined = {},
|
|
@@ -31,16 +32,15 @@ export class Customers extends APIResource {
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
/**
|
|
34
|
-
*
|
|
35
|
-
* recipient.
|
|
35
|
+
* Get a specific customer relationship visible to the current developer party.
|
|
36
36
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
get(
|
|
38
|
+
customerID: string,
|
|
39
|
+
params: CustomerGetParams | null | undefined = {},
|
|
39
40
|
options?: RequestOptions,
|
|
40
|
-
): APIPromise<
|
|
41
|
-
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID
|
|
42
|
-
return this._client.get(
|
|
43
|
-
query,
|
|
41
|
+
): APIPromise<CustomerGetResponse> {
|
|
42
|
+
const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID } = params ?? {};
|
|
43
|
+
return this._client.get(path`/customers/${customerID}`, {
|
|
44
44
|
...options,
|
|
45
45
|
headers: buildHeaders([
|
|
46
46
|
{
|
|
@@ -74,6 +74,11 @@ export namespace CustomerListResponse {
|
|
|
74
74
|
*/
|
|
75
75
|
attributes: Data.Attributes;
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* Resource relationships
|
|
79
|
+
*/
|
|
80
|
+
relationships: Data.Relationships;
|
|
81
|
+
|
|
77
82
|
/**
|
|
78
83
|
* Resource type
|
|
79
84
|
*/
|
|
@@ -86,62 +91,160 @@ export namespace CustomerListResponse {
|
|
|
86
91
|
*/
|
|
87
92
|
export interface Attributes {
|
|
88
93
|
/**
|
|
89
|
-
* When the
|
|
94
|
+
* When the customer party was created
|
|
90
95
|
*/
|
|
91
|
-
createdAt: string;
|
|
96
|
+
createdAt: string | null;
|
|
92
97
|
|
|
93
98
|
/**
|
|
94
|
-
*
|
|
99
|
+
* Primary email
|
|
95
100
|
*/
|
|
96
101
|
email: string | null;
|
|
97
102
|
|
|
98
103
|
/**
|
|
99
|
-
*
|
|
104
|
+
* Display name, falling back to legal name when display name is unset
|
|
100
105
|
*/
|
|
101
|
-
|
|
106
|
+
name: string;
|
|
107
|
+
}
|
|
102
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Resource relationships
|
|
111
|
+
*/
|
|
112
|
+
export interface Relationships {
|
|
103
113
|
/**
|
|
104
|
-
*
|
|
114
|
+
* Per-agent access for this customer relationship
|
|
105
115
|
*/
|
|
106
|
-
|
|
116
|
+
agents: Relationships.Agents;
|
|
107
117
|
|
|
108
118
|
/**
|
|
109
|
-
*
|
|
119
|
+
* Delegation state for this customer relationship
|
|
110
120
|
*/
|
|
111
|
-
|
|
121
|
+
delegation: Relationships.Delegation;
|
|
122
|
+
}
|
|
112
123
|
|
|
124
|
+
export namespace Relationships {
|
|
113
125
|
/**
|
|
114
|
-
*
|
|
115
|
-
* caller lacks wallets.read; "noWallet" party has not provisioned a wallet.
|
|
126
|
+
* Per-agent access for this customer relationship
|
|
116
127
|
*/
|
|
117
|
-
|
|
128
|
+
export interface Agents {
|
|
129
|
+
/**
|
|
130
|
+
* Agents attached to this customer relationship
|
|
131
|
+
*/
|
|
132
|
+
data: Array<Agents.Data>;
|
|
133
|
+
}
|
|
118
134
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
135
|
+
export namespace Agents {
|
|
136
|
+
/**
|
|
137
|
+
* Embedded agent access details
|
|
138
|
+
*/
|
|
139
|
+
export interface Data {
|
|
140
|
+
/**
|
|
141
|
+
* Agent handle (agt_xxx)
|
|
142
|
+
*/
|
|
143
|
+
id: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Agent access attributes
|
|
147
|
+
*/
|
|
148
|
+
attributes: Data.Attributes;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Resource type
|
|
152
|
+
*/
|
|
153
|
+
type: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export namespace Data {
|
|
157
|
+
/**
|
|
158
|
+
* Agent access attributes
|
|
159
|
+
*/
|
|
160
|
+
export interface Attributes {
|
|
161
|
+
/**
|
|
162
|
+
* Per-agent limits for this customer relationship
|
|
163
|
+
*/
|
|
164
|
+
limits: Attributes.Limits | null;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Agent display name
|
|
168
|
+
*/
|
|
169
|
+
name: string | null;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Permissions this agent has for the customer
|
|
173
|
+
*/
|
|
174
|
+
permissions: Array<string>;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Agent-customer relationship status
|
|
178
|
+
*/
|
|
179
|
+
status: string;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export namespace Attributes {
|
|
183
|
+
/**
|
|
184
|
+
* Per-agent limits for this customer relationship
|
|
185
|
+
*/
|
|
186
|
+
export interface Limits {
|
|
187
|
+
/**
|
|
188
|
+
* Positive per-transaction limit in cents. null means no per-payment limit.
|
|
189
|
+
*/
|
|
190
|
+
perTransaction?: number | null;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
125
195
|
|
|
126
|
-
export namespace Attributes {
|
|
127
196
|
/**
|
|
128
|
-
*
|
|
197
|
+
* Delegation state for this customer relationship
|
|
129
198
|
*/
|
|
130
|
-
export interface
|
|
199
|
+
export interface Delegation {
|
|
131
200
|
/**
|
|
132
|
-
*
|
|
201
|
+
* Embedded customer delegation details
|
|
133
202
|
*/
|
|
134
|
-
|
|
203
|
+
data: Delegation.Data;
|
|
204
|
+
}
|
|
135
205
|
|
|
206
|
+
export namespace Delegation {
|
|
136
207
|
/**
|
|
137
|
-
*
|
|
208
|
+
* Embedded customer delegation details
|
|
138
209
|
*/
|
|
139
|
-
|
|
210
|
+
export interface Data {
|
|
211
|
+
/**
|
|
212
|
+
* Delegation handle (dlg_xxx)
|
|
213
|
+
*/
|
|
214
|
+
id: string;
|
|
140
215
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
216
|
+
/**
|
|
217
|
+
* Delegation attributes
|
|
218
|
+
*/
|
|
219
|
+
attributes: Data.Attributes;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Resource type
|
|
223
|
+
*/
|
|
224
|
+
type: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export namespace Data {
|
|
228
|
+
/**
|
|
229
|
+
* Delegation attributes
|
|
230
|
+
*/
|
|
231
|
+
export interface Attributes {
|
|
232
|
+
/**
|
|
233
|
+
* When the customer relationship was created
|
|
234
|
+
*/
|
|
235
|
+
createdAt: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Permissions available across this customer
|
|
239
|
+
*/
|
|
240
|
+
permissions: Array<string>;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Customer relationship status
|
|
244
|
+
*/
|
|
245
|
+
status: string;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
145
248
|
}
|
|
146
249
|
}
|
|
147
250
|
}
|
|
@@ -159,21 +262,20 @@ export namespace CustomerListResponse {
|
|
|
159
262
|
}
|
|
160
263
|
}
|
|
161
264
|
|
|
162
|
-
export interface
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
265
|
+
export interface CustomerGetResponse {
|
|
266
|
+
/**
|
|
267
|
+
* Customer resource for an active customer (type='customer', id=pty_xxx).
|
|
268
|
+
*/
|
|
269
|
+
data: CustomerGetResponse.Data;
|
|
166
270
|
}
|
|
167
271
|
|
|
168
|
-
export namespace
|
|
272
|
+
export namespace CustomerGetResponse {
|
|
169
273
|
/**
|
|
170
|
-
*
|
|
171
|
-
* a grouping of agent invitations sent to one recipient.
|
|
274
|
+
* Customer resource for an active customer (type='customer', id=pty_xxx).
|
|
172
275
|
*/
|
|
173
276
|
export interface Data {
|
|
174
277
|
/**
|
|
175
|
-
*
|
|
176
|
-
* after the recipient creates an account.
|
|
278
|
+
* Customer party handle (pty_xxx)
|
|
177
279
|
*/
|
|
178
280
|
id: string;
|
|
179
281
|
|
|
@@ -182,6 +284,11 @@ export namespace CustomerListInvitationsResponse {
|
|
|
182
284
|
*/
|
|
183
285
|
attributes: Data.Attributes;
|
|
184
286
|
|
|
287
|
+
/**
|
|
288
|
+
* Resource relationships
|
|
289
|
+
*/
|
|
290
|
+
relationships: Data.Relationships;
|
|
291
|
+
|
|
185
292
|
/**
|
|
186
293
|
* Resource type
|
|
187
294
|
*/
|
|
@@ -194,117 +301,161 @@ export namespace CustomerListInvitationsResponse {
|
|
|
194
301
|
*/
|
|
195
302
|
export interface Attributes {
|
|
196
303
|
/**
|
|
197
|
-
*
|
|
304
|
+
* When the customer party was created
|
|
198
305
|
*/
|
|
199
|
-
|
|
306
|
+
createdAt: string | null;
|
|
200
307
|
|
|
201
308
|
/**
|
|
202
|
-
*
|
|
309
|
+
* Primary email
|
|
203
310
|
*/
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Recipient email — the grouping key
|
|
208
|
-
*/
|
|
209
|
-
email: string;
|
|
311
|
+
email: string | null;
|
|
210
312
|
|
|
211
313
|
/**
|
|
212
|
-
*
|
|
314
|
+
* Display name, falling back to legal name when display name is unset
|
|
213
315
|
*/
|
|
214
|
-
|
|
316
|
+
name: string;
|
|
317
|
+
}
|
|
215
318
|
|
|
319
|
+
/**
|
|
320
|
+
* Resource relationships
|
|
321
|
+
*/
|
|
322
|
+
export interface Relationships {
|
|
216
323
|
/**
|
|
217
|
-
*
|
|
324
|
+
* Per-agent access for this customer relationship
|
|
218
325
|
*/
|
|
219
|
-
|
|
326
|
+
agents: Relationships.Agents;
|
|
220
327
|
|
|
221
328
|
/**
|
|
222
|
-
*
|
|
329
|
+
* Delegation state for this customer relationship
|
|
223
330
|
*/
|
|
224
|
-
|
|
331
|
+
delegation: Relationships.Delegation;
|
|
332
|
+
}
|
|
225
333
|
|
|
334
|
+
export namespace Relationships {
|
|
226
335
|
/**
|
|
227
|
-
*
|
|
336
|
+
* Per-agent access for this customer relationship
|
|
228
337
|
*/
|
|
229
|
-
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export namespace Attributes {
|
|
233
|
-
export interface AgentInvitation {
|
|
234
|
-
/**
|
|
235
|
-
* Agent the invitation targets
|
|
236
|
-
*/
|
|
237
|
-
agent: AgentInvitation.Agent;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* When the agent invitation was created
|
|
241
|
-
*/
|
|
242
|
-
createdAt: string;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* When the agent invitation expires (null if it does not expire)
|
|
246
|
-
*/
|
|
247
|
-
expiresAt: string | null;
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Agent delegation invitation handle (adi_xxx)
|
|
251
|
-
*/
|
|
252
|
-
invitationId: string;
|
|
253
|
-
|
|
338
|
+
export interface Agents {
|
|
254
339
|
/**
|
|
255
|
-
*
|
|
340
|
+
* Agents attached to this customer relationship
|
|
256
341
|
*/
|
|
257
|
-
|
|
342
|
+
data: Array<Agents.Data>;
|
|
258
343
|
}
|
|
259
344
|
|
|
260
|
-
export namespace
|
|
345
|
+
export namespace Agents {
|
|
261
346
|
/**
|
|
262
|
-
*
|
|
347
|
+
* Embedded agent access details
|
|
263
348
|
*/
|
|
264
|
-
export interface
|
|
349
|
+
export interface Data {
|
|
265
350
|
/**
|
|
266
351
|
* Agent handle (agt_xxx)
|
|
267
352
|
*/
|
|
268
353
|
id: string;
|
|
269
354
|
|
|
270
355
|
/**
|
|
271
|
-
* Agent
|
|
356
|
+
* Agent access attributes
|
|
357
|
+
*/
|
|
358
|
+
attributes: Data.Attributes;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Resource type
|
|
362
|
+
*/
|
|
363
|
+
type: string;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export namespace Data {
|
|
367
|
+
/**
|
|
368
|
+
* Agent access attributes
|
|
272
369
|
*/
|
|
273
|
-
|
|
370
|
+
export interface Attributes {
|
|
371
|
+
/**
|
|
372
|
+
* Per-agent limits for this customer relationship
|
|
373
|
+
*/
|
|
374
|
+
limits: Attributes.Limits | null;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Agent display name
|
|
378
|
+
*/
|
|
379
|
+
name: string | null;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Permissions this agent has for the customer
|
|
383
|
+
*/
|
|
384
|
+
permissions: Array<string>;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Agent-customer relationship status
|
|
388
|
+
*/
|
|
389
|
+
status: string;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export namespace Attributes {
|
|
393
|
+
/**
|
|
394
|
+
* Per-agent limits for this customer relationship
|
|
395
|
+
*/
|
|
396
|
+
export interface Limits {
|
|
397
|
+
/**
|
|
398
|
+
* Positive per-transaction limit in cents. null means no per-payment limit.
|
|
399
|
+
*/
|
|
400
|
+
perTransaction?: number | null;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
274
403
|
}
|
|
275
404
|
}
|
|
276
405
|
|
|
277
406
|
/**
|
|
278
|
-
*
|
|
407
|
+
* Delegation state for this customer relationship
|
|
279
408
|
*/
|
|
280
|
-
export interface
|
|
409
|
+
export interface Delegation {
|
|
281
410
|
/**
|
|
282
|
-
*
|
|
411
|
+
* Embedded customer delegation details
|
|
283
412
|
*/
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Primary email
|
|
288
|
-
*/
|
|
289
|
-
email: string | null;
|
|
413
|
+
data: Delegation.Data;
|
|
414
|
+
}
|
|
290
415
|
|
|
416
|
+
export namespace Delegation {
|
|
291
417
|
/**
|
|
292
|
-
*
|
|
418
|
+
* Embedded customer delegation details
|
|
293
419
|
*/
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
420
|
+
export interface Data {
|
|
421
|
+
/**
|
|
422
|
+
* Delegation handle (dlg_xxx)
|
|
423
|
+
*/
|
|
424
|
+
id: string;
|
|
298
425
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
426
|
+
/**
|
|
427
|
+
* Delegation attributes
|
|
428
|
+
*/
|
|
429
|
+
attributes: Data.Attributes;
|
|
302
430
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
431
|
+
/**
|
|
432
|
+
* Resource type
|
|
433
|
+
*/
|
|
434
|
+
type: string;
|
|
435
|
+
}
|
|
306
436
|
|
|
307
|
-
|
|
437
|
+
export namespace Data {
|
|
438
|
+
/**
|
|
439
|
+
* Delegation attributes
|
|
440
|
+
*/
|
|
441
|
+
export interface Attributes {
|
|
442
|
+
/**
|
|
443
|
+
* When the customer relationship was created
|
|
444
|
+
*/
|
|
445
|
+
createdAt: string;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Permissions available across this customer
|
|
449
|
+
*/
|
|
450
|
+
permissions: Array<string>;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Customer relationship status
|
|
454
|
+
*/
|
|
455
|
+
status: string;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
308
459
|
}
|
|
309
460
|
}
|
|
310
461
|
}
|
|
@@ -332,25 +483,15 @@ export interface CustomerListParams {
|
|
|
332
483
|
'X-Instance-ID'?: string;
|
|
333
484
|
}
|
|
334
485
|
|
|
335
|
-
export interface
|
|
336
|
-
/**
|
|
337
|
-
* Query param: Cursor for pagination
|
|
338
|
-
*/
|
|
339
|
-
cursor?: string;
|
|
340
|
-
|
|
486
|
+
export interface CustomerGetParams {
|
|
341
487
|
/**
|
|
342
|
-
*
|
|
343
|
-
*/
|
|
344
|
-
limit?: number;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
488
|
+
* Agent ID (agt_xxx) identifying which agent is making the request.
|
|
348
489
|
*/
|
|
349
490
|
'X-Agent-ID'?: string;
|
|
350
491
|
|
|
351
492
|
/**
|
|
352
|
-
*
|
|
353
|
-
*
|
|
493
|
+
* Required when X-Agent-ID is present. Session or conversation ID for agent
|
|
494
|
+
* observability.
|
|
354
495
|
*/
|
|
355
496
|
'X-Instance-ID'?: string;
|
|
356
497
|
}
|
|
@@ -358,8 +499,8 @@ export interface CustomerListInvitationsParams {
|
|
|
358
499
|
export declare namespace Customers {
|
|
359
500
|
export {
|
|
360
501
|
type CustomerListResponse as CustomerListResponse,
|
|
361
|
-
type
|
|
502
|
+
type CustomerGetResponse as CustomerGetResponse,
|
|
362
503
|
type CustomerListParams as CustomerListParams,
|
|
363
|
-
type
|
|
504
|
+
type CustomerGetParams as CustomerGetParams,
|
|
364
505
|
};
|
|
365
506
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -16,44 +16,30 @@ export {
|
|
|
16
16
|
type AgentCreateResponse,
|
|
17
17
|
type AgentUpdateResponse,
|
|
18
18
|
type AgentListResponse,
|
|
19
|
-
type
|
|
19
|
+
type AgentCreateCustomerResponse,
|
|
20
20
|
type AgentGetResponse,
|
|
21
|
-
type
|
|
21
|
+
type AgentGetCustomerResponse,
|
|
22
|
+
type AgentListCustomersResponse,
|
|
22
23
|
type AgentRemoveResponse,
|
|
24
|
+
type AgentRemoveCustomerResponse,
|
|
23
25
|
type AgentCreateParams,
|
|
24
26
|
type AgentUpdateParams,
|
|
25
27
|
type AgentListParams,
|
|
26
|
-
type
|
|
28
|
+
type AgentCreateCustomerParams,
|
|
27
29
|
type AgentGetParams,
|
|
28
|
-
type
|
|
30
|
+
type AgentGetCustomerParams,
|
|
31
|
+
type AgentListCustomersParams,
|
|
29
32
|
type AgentRemoveParams,
|
|
33
|
+
type AgentRemoveCustomerParams,
|
|
30
34
|
} from './agents';
|
|
31
35
|
export { Counterparties, type CounterpartyListResponse, type CounterpartyListParams } from './counterparties';
|
|
32
36
|
export {
|
|
33
37
|
Customers,
|
|
34
38
|
type CustomerListResponse,
|
|
35
|
-
type
|
|
39
|
+
type CustomerGetResponse,
|
|
36
40
|
type CustomerListParams,
|
|
37
|
-
type
|
|
41
|
+
type CustomerGetParams,
|
|
38
42
|
} from './customers';
|
|
39
|
-
export {
|
|
40
|
-
Delegations,
|
|
41
|
-
type DelegationGetAgentDelegationResponse,
|
|
42
|
-
type DelegationListAgentDelegationsResponse,
|
|
43
|
-
type DelegationGetAgentDelegationParams,
|
|
44
|
-
type DelegationListAgentDelegationsParams,
|
|
45
|
-
} from './delegations';
|
|
46
|
-
export {
|
|
47
|
-
Escalations,
|
|
48
|
-
type EscalationListResponse,
|
|
49
|
-
type EscalationApproveResponse,
|
|
50
|
-
type EscalationDenyResponse,
|
|
51
|
-
type EscalationGetResponse,
|
|
52
|
-
type EscalationListParams,
|
|
53
|
-
type EscalationApproveParams,
|
|
54
|
-
type EscalationDenyParams,
|
|
55
|
-
type EscalationGetParams,
|
|
56
|
-
} from './escalations';
|
|
57
43
|
export {
|
|
58
44
|
ExternalAccounts,
|
|
59
45
|
type ExternalAccountListResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.7.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.7.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.7.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.7.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Format } from "./types.mjs";
|
|
2
|
-
export declare const default_format: Format;
|
|
3
|
-
export declare const default_formatter: (v: PropertyKey) => string;
|
|
4
|
-
export declare const formatters: Record<Format, (str: PropertyKey) => string>;
|
|
5
|
-
export declare const RFC1738 = "RFC1738";
|
|
6
|
-
export declare const RFC3986 = "RFC3986";
|
|
7
|
-
//# sourceMappingURL=formats.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formats.d.mts","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAgB;AAEtC,eAAO,MAAM,cAAc,EAAE,MAAkB,CAAC;AAChD,eAAO,MAAM,iBAAiB,GAAI,GAAG,WAAW,WAAc,CAAC;AAC/D,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,MAAM,CAGnE,CAAC;AACF,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC"}
|
package/internal/qs/formats.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Format } from "./types.js";
|
|
2
|
-
export declare const default_format: Format;
|
|
3
|
-
export declare const default_formatter: (v: PropertyKey) => string;
|
|
4
|
-
export declare const formatters: Record<Format, (str: PropertyKey) => string>;
|
|
5
|
-
export declare const RFC1738 = "RFC1738";
|
|
6
|
-
export declare const RFC3986 = "RFC3986";
|
|
7
|
-
//# sourceMappingURL=formats.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formats.d.ts","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAgB;AAEtC,eAAO,MAAM,cAAc,EAAE,MAAkB,CAAC;AAChD,eAAO,MAAM,iBAAiB,GAAI,GAAG,WAAW,WAAc,CAAC;AAC/D,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,MAAM,CAGnE,CAAC;AACF,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC"}
|
package/internal/qs/formats.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RFC3986 = exports.RFC1738 = exports.formatters = exports.default_formatter = exports.default_format = void 0;
|
|
4
|
-
exports.default_format = 'RFC3986';
|
|
5
|
-
const default_formatter = (v) => String(v);
|
|
6
|
-
exports.default_formatter = default_formatter;
|
|
7
|
-
exports.formatters = {
|
|
8
|
-
RFC1738: (v) => String(v).replace(/%20/g, '+'),
|
|
9
|
-
RFC3986: exports.default_formatter,
|
|
10
|
-
};
|
|
11
|
-
exports.RFC1738 = 'RFC1738';
|
|
12
|
-
exports.RFC3986 = 'RFC3986';
|
|
13
|
-
//# sourceMappingURL=formats.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formats.js","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAW,SAAS,CAAC;AACzC,MAAM,iBAAiB,GAAG,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAAlD,QAAA,iBAAiB,qBAAiC;AAClD,QAAA,UAAU,GAAiD;IACtE,OAAO,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;IAC3D,OAAO,EAAE,yBAAiB;CAC3B,CAAC;AACW,QAAA,OAAO,GAAG,SAAS,CAAC;AACpB,QAAA,OAAO,GAAG,SAAS,CAAC"}
|