@babelforce/manager-sdk 0.2.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/index.d.ts +1922 -11
- package/dist/index.js +1626 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -74,6 +74,1242 @@ var client = createClient(createConfig({
|
|
|
74
74
|
}));
|
|
75
75
|
|
|
76
76
|
// src/gen/manager/sdk.gen.ts
|
|
77
|
+
var listAgents = (options) => {
|
|
78
|
+
return (options?.client ?? client).get({
|
|
79
|
+
security: [
|
|
80
|
+
{
|
|
81
|
+
scheme: "bearer",
|
|
82
|
+
type: "http"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "X-Auth-Access-Id",
|
|
86
|
+
type: "apiKey"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "X-Auth-Access-Token",
|
|
90
|
+
type: "apiKey"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
url: "/api/v2/agents",
|
|
94
|
+
...options
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
var createAgent = (options) => {
|
|
98
|
+
return (options.client ?? client).post({
|
|
99
|
+
security: [
|
|
100
|
+
{
|
|
101
|
+
scheme: "bearer",
|
|
102
|
+
type: "http"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "X-Auth-Access-Id",
|
|
106
|
+
type: "apiKey"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "X-Auth-Access-Token",
|
|
110
|
+
type: "apiKey"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
url: "/api/v2/agents",
|
|
114
|
+
...options,
|
|
115
|
+
headers: {
|
|
116
|
+
"Content-Type": "application/json",
|
|
117
|
+
...options?.headers
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
var listAgentGroups = (options) => {
|
|
122
|
+
return (options?.client ?? client).get({
|
|
123
|
+
security: [
|
|
124
|
+
{
|
|
125
|
+
scheme: "bearer",
|
|
126
|
+
type: "http"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "X-Auth-Access-Id",
|
|
130
|
+
type: "apiKey"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: "X-Auth-Access-Token",
|
|
134
|
+
type: "apiKey"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
url: "/api/v2/agents/groups",
|
|
138
|
+
...options
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
var createAgentGroup = (options) => {
|
|
142
|
+
return (options.client ?? client).post({
|
|
143
|
+
security: [
|
|
144
|
+
{
|
|
145
|
+
scheme: "bearer",
|
|
146
|
+
type: "http"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: "X-Auth-Access-Id",
|
|
150
|
+
type: "apiKey"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: "X-Auth-Access-Token",
|
|
154
|
+
type: "apiKey"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
url: "/api/v2/agents/groups",
|
|
158
|
+
...options,
|
|
159
|
+
headers: {
|
|
160
|
+
"Content-Type": "application/json",
|
|
161
|
+
...options?.headers
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
var addAgentToGroup = (options) => {
|
|
166
|
+
return (options.client ?? client).post({
|
|
167
|
+
security: [
|
|
168
|
+
{
|
|
169
|
+
scheme: "bearer",
|
|
170
|
+
type: "http"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: "X-Auth-Access-Id",
|
|
174
|
+
type: "apiKey"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: "X-Auth-Access-Token",
|
|
178
|
+
type: "apiKey"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
url: "/api/v2/agents/groups/{groupId}/agents",
|
|
182
|
+
...options,
|
|
183
|
+
headers: {
|
|
184
|
+
"Content-Type": "application/json",
|
|
185
|
+
...options?.headers
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
var deleteAgentGroup = (options) => {
|
|
190
|
+
return (options.client ?? client).delete({
|
|
191
|
+
security: [
|
|
192
|
+
{
|
|
193
|
+
scheme: "bearer",
|
|
194
|
+
type: "http"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "X-Auth-Access-Id",
|
|
198
|
+
type: "apiKey"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: "X-Auth-Access-Token",
|
|
202
|
+
type: "apiKey"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
url: "/api/v2/agents/groups/{id}",
|
|
206
|
+
...options
|
|
207
|
+
});
|
|
208
|
+
};
|
|
209
|
+
var getAgentGroup = (options) => {
|
|
210
|
+
return (options.client ?? client).get({
|
|
211
|
+
security: [
|
|
212
|
+
{
|
|
213
|
+
scheme: "bearer",
|
|
214
|
+
type: "http"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: "X-Auth-Access-Id",
|
|
218
|
+
type: "apiKey"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: "X-Auth-Access-Token",
|
|
222
|
+
type: "apiKey"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
url: "/api/v2/agents/groups/{id}",
|
|
226
|
+
...options
|
|
227
|
+
});
|
|
228
|
+
};
|
|
229
|
+
var updateAgentGroup = (options) => {
|
|
230
|
+
return (options.client ?? client).put({
|
|
231
|
+
security: [
|
|
232
|
+
{
|
|
233
|
+
scheme: "bearer",
|
|
234
|
+
type: "http"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: "X-Auth-Access-Id",
|
|
238
|
+
type: "apiKey"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
name: "X-Auth-Access-Token",
|
|
242
|
+
type: "apiKey"
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
url: "/api/v2/agents/groups/{id}",
|
|
246
|
+
...options,
|
|
247
|
+
headers: {
|
|
248
|
+
"Content-Type": "application/json",
|
|
249
|
+
...options?.headers
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
var deleteAgent = (options) => {
|
|
254
|
+
return (options.client ?? client).delete({
|
|
255
|
+
security: [
|
|
256
|
+
{
|
|
257
|
+
scheme: "bearer",
|
|
258
|
+
type: "http"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: "X-Auth-Access-Id",
|
|
262
|
+
type: "apiKey"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: "X-Auth-Access-Token",
|
|
266
|
+
type: "apiKey"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
url: "/api/v2/agents/{id}",
|
|
270
|
+
...options
|
|
271
|
+
});
|
|
272
|
+
};
|
|
273
|
+
var getAgent = (options) => {
|
|
274
|
+
return (options.client ?? client).get({
|
|
275
|
+
security: [
|
|
276
|
+
{
|
|
277
|
+
scheme: "bearer",
|
|
278
|
+
type: "http"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: "X-Auth-Access-Id",
|
|
282
|
+
type: "apiKey"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: "X-Auth-Access-Token",
|
|
286
|
+
type: "apiKey"
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
url: "/api/v2/agents/{id}",
|
|
290
|
+
...options
|
|
291
|
+
});
|
|
292
|
+
};
|
|
293
|
+
var updateAgent = (options) => {
|
|
294
|
+
return (options.client ?? client).put({
|
|
295
|
+
security: [
|
|
296
|
+
{
|
|
297
|
+
scheme: "bearer",
|
|
298
|
+
type: "http"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: "X-Auth-Access-Id",
|
|
302
|
+
type: "apiKey"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
name: "X-Auth-Access-Token",
|
|
306
|
+
type: "apiKey"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
url: "/api/v2/agents/{id}",
|
|
310
|
+
...options,
|
|
311
|
+
headers: {
|
|
312
|
+
"Content-Type": "application/json",
|
|
313
|
+
...options?.headers
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
var updateAgentStatus = (options) => {
|
|
318
|
+
return (options.client ?? client).put({
|
|
319
|
+
security: [
|
|
320
|
+
{
|
|
321
|
+
scheme: "bearer",
|
|
322
|
+
type: "http"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
name: "X-Auth-Access-Id",
|
|
326
|
+
type: "apiKey"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
name: "X-Auth-Access-Token",
|
|
330
|
+
type: "apiKey"
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
url: "/api/v2/agents/{id}/status",
|
|
334
|
+
...options,
|
|
335
|
+
headers: {
|
|
336
|
+
"Content-Type": "application/json",
|
|
337
|
+
...options?.headers
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
};
|
|
341
|
+
var listApplications = (options) => {
|
|
342
|
+
return (options?.client ?? client).get({
|
|
343
|
+
security: [
|
|
344
|
+
{
|
|
345
|
+
scheme: "bearer",
|
|
346
|
+
type: "http"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
name: "X-Auth-Access-Id",
|
|
350
|
+
type: "apiKey"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
name: "X-Auth-Access-Token",
|
|
354
|
+
type: "apiKey"
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
url: "/api/v2/applications",
|
|
358
|
+
...options
|
|
359
|
+
});
|
|
360
|
+
};
|
|
361
|
+
var createApplication = (options) => {
|
|
362
|
+
return (options.client ?? client).post({
|
|
363
|
+
security: [
|
|
364
|
+
{
|
|
365
|
+
scheme: "bearer",
|
|
366
|
+
type: "http"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: "X-Auth-Access-Id",
|
|
370
|
+
type: "apiKey"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
name: "X-Auth-Access-Token",
|
|
374
|
+
type: "apiKey"
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
url: "/api/v2/applications",
|
|
378
|
+
...options,
|
|
379
|
+
headers: {
|
|
380
|
+
"Content-Type": "application/json",
|
|
381
|
+
...options?.headers
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
};
|
|
385
|
+
var deleteManyApplications = (options) => {
|
|
386
|
+
return (options.client ?? client).delete({
|
|
387
|
+
security: [
|
|
388
|
+
{
|
|
389
|
+
scheme: "bearer",
|
|
390
|
+
type: "http"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
name: "X-Auth-Access-Id",
|
|
394
|
+
type: "apiKey"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
name: "X-Auth-Access-Token",
|
|
398
|
+
type: "apiKey"
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
url: "/api/v2/applications/bulk",
|
|
402
|
+
...options,
|
|
403
|
+
headers: {
|
|
404
|
+
"Content-Type": "application/json",
|
|
405
|
+
...options?.headers
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
};
|
|
409
|
+
var listModules = (options) => {
|
|
410
|
+
return (options?.client ?? client).get({
|
|
411
|
+
security: [
|
|
412
|
+
{
|
|
413
|
+
scheme: "bearer",
|
|
414
|
+
type: "http"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
name: "X-Auth-Access-Id",
|
|
418
|
+
type: "apiKey"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
name: "X-Auth-Access-Token",
|
|
422
|
+
type: "apiKey"
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
url: "/api/v2/applications/modules",
|
|
426
|
+
...options
|
|
427
|
+
});
|
|
428
|
+
};
|
|
429
|
+
var listLocalAutomations = (options) => {
|
|
430
|
+
return (options.client ?? client).get({
|
|
431
|
+
security: [
|
|
432
|
+
{
|
|
433
|
+
scheme: "bearer",
|
|
434
|
+
type: "http"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
name: "X-Auth-Access-Id",
|
|
438
|
+
type: "apiKey"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
name: "X-Auth-Access-Token",
|
|
442
|
+
type: "apiKey"
|
|
443
|
+
}
|
|
444
|
+
],
|
|
445
|
+
url: "/api/v2/applications/{applicationId}/actions",
|
|
446
|
+
...options
|
|
447
|
+
});
|
|
448
|
+
};
|
|
449
|
+
var createLocalAutomation = (options) => {
|
|
450
|
+
return (options.client ?? client).post({
|
|
451
|
+
security: [
|
|
452
|
+
{
|
|
453
|
+
scheme: "bearer",
|
|
454
|
+
type: "http"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
name: "X-Auth-Access-Id",
|
|
458
|
+
type: "apiKey"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
name: "X-Auth-Access-Token",
|
|
462
|
+
type: "apiKey"
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
url: "/api/v2/applications/{applicationId}/actions",
|
|
466
|
+
...options,
|
|
467
|
+
headers: {
|
|
468
|
+
"Content-Type": "application/json",
|
|
469
|
+
...options?.headers
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
};
|
|
473
|
+
var deleteLocalAutomation = (options) => {
|
|
474
|
+
return (options.client ?? client).delete({
|
|
475
|
+
security: [
|
|
476
|
+
{
|
|
477
|
+
scheme: "bearer",
|
|
478
|
+
type: "http"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
name: "X-Auth-Access-Id",
|
|
482
|
+
type: "apiKey"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
name: "X-Auth-Access-Token",
|
|
486
|
+
type: "apiKey"
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
url: "/api/v2/applications/{applicationId}/actions/{id}",
|
|
490
|
+
...options
|
|
491
|
+
});
|
|
492
|
+
};
|
|
493
|
+
var getLocalAutomation = (options) => {
|
|
494
|
+
return (options.client ?? client).get({
|
|
495
|
+
security: [
|
|
496
|
+
{
|
|
497
|
+
scheme: "bearer",
|
|
498
|
+
type: "http"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
name: "X-Auth-Access-Id",
|
|
502
|
+
type: "apiKey"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
name: "X-Auth-Access-Token",
|
|
506
|
+
type: "apiKey"
|
|
507
|
+
}
|
|
508
|
+
],
|
|
509
|
+
url: "/api/v2/applications/{applicationId}/actions/{id}",
|
|
510
|
+
...options
|
|
511
|
+
});
|
|
512
|
+
};
|
|
513
|
+
var updateLocalAutomation = (options) => {
|
|
514
|
+
return (options.client ?? client).put({
|
|
515
|
+
security: [
|
|
516
|
+
{
|
|
517
|
+
scheme: "bearer",
|
|
518
|
+
type: "http"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
name: "X-Auth-Access-Id",
|
|
522
|
+
type: "apiKey"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
name: "X-Auth-Access-Token",
|
|
526
|
+
type: "apiKey"
|
|
527
|
+
}
|
|
528
|
+
],
|
|
529
|
+
url: "/api/v2/applications/{applicationId}/actions/{id}",
|
|
530
|
+
...options,
|
|
531
|
+
headers: {
|
|
532
|
+
"Content-Type": "application/json",
|
|
533
|
+
...options?.headers
|
|
534
|
+
}
|
|
535
|
+
});
|
|
536
|
+
};
|
|
537
|
+
var deleteApplication = (options) => {
|
|
538
|
+
return (options.client ?? client).delete({
|
|
539
|
+
security: [
|
|
540
|
+
{
|
|
541
|
+
scheme: "bearer",
|
|
542
|
+
type: "http"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
name: "X-Auth-Access-Id",
|
|
546
|
+
type: "apiKey"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
name: "X-Auth-Access-Token",
|
|
550
|
+
type: "apiKey"
|
|
551
|
+
}
|
|
552
|
+
],
|
|
553
|
+
url: "/api/v2/applications/{id}",
|
|
554
|
+
...options
|
|
555
|
+
});
|
|
556
|
+
};
|
|
557
|
+
var getApplication = (options) => {
|
|
558
|
+
return (options.client ?? client).get({
|
|
559
|
+
security: [
|
|
560
|
+
{
|
|
561
|
+
scheme: "bearer",
|
|
562
|
+
type: "http"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
name: "X-Auth-Access-Id",
|
|
566
|
+
type: "apiKey"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
name: "X-Auth-Access-Token",
|
|
570
|
+
type: "apiKey"
|
|
571
|
+
}
|
|
572
|
+
],
|
|
573
|
+
url: "/api/v2/applications/{id}",
|
|
574
|
+
...options
|
|
575
|
+
});
|
|
576
|
+
};
|
|
577
|
+
var updateApplication = (options) => {
|
|
578
|
+
return (options.client ?? client).put({
|
|
579
|
+
security: [
|
|
580
|
+
{
|
|
581
|
+
scheme: "bearer",
|
|
582
|
+
type: "http"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
name: "X-Auth-Access-Id",
|
|
586
|
+
type: "apiKey"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
name: "X-Auth-Access-Token",
|
|
590
|
+
type: "apiKey"
|
|
591
|
+
}
|
|
592
|
+
],
|
|
593
|
+
url: "/api/v2/applications/{id}",
|
|
594
|
+
...options,
|
|
595
|
+
headers: {
|
|
596
|
+
"Content-Type": "application/json",
|
|
597
|
+
...options?.headers
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
};
|
|
601
|
+
var dispatchLocalAutomations = (options) => {
|
|
602
|
+
return (options.client ?? client).post({
|
|
603
|
+
security: [
|
|
604
|
+
{
|
|
605
|
+
scheme: "bearer",
|
|
606
|
+
type: "http"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
name: "X-Auth-Access-Id",
|
|
610
|
+
type: "apiKey"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
name: "X-Auth-Access-Token",
|
|
614
|
+
type: "apiKey"
|
|
615
|
+
}
|
|
616
|
+
],
|
|
617
|
+
url: "/api/v2/applications/{id}/dispatch/{position}",
|
|
618
|
+
...options,
|
|
619
|
+
headers: {
|
|
620
|
+
"Content-Type": "application/json",
|
|
621
|
+
...options?.headers
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
};
|
|
625
|
+
var listReportingCalls = (options) => {
|
|
626
|
+
return (options?.client ?? client).get({
|
|
627
|
+
security: [
|
|
628
|
+
{
|
|
629
|
+
scheme: "bearer",
|
|
630
|
+
type: "http"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
name: "X-Auth-Access-Id",
|
|
634
|
+
type: "apiKey"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
name: "X-Auth-Access-Token",
|
|
638
|
+
type: "apiKey"
|
|
639
|
+
}
|
|
640
|
+
],
|
|
641
|
+
url: "/api/v2/calls/reporting",
|
|
642
|
+
...options
|
|
643
|
+
});
|
|
644
|
+
};
|
|
645
|
+
var listAllSimpleReportingCalls = (options) => {
|
|
646
|
+
return (options?.client ?? client).get({
|
|
647
|
+
security: [
|
|
648
|
+
{
|
|
649
|
+
scheme: "bearer",
|
|
650
|
+
type: "http"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
name: "X-Auth-Access-Id",
|
|
654
|
+
type: "apiKey"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
name: "X-Auth-Access-Token",
|
|
658
|
+
type: "apiKey"
|
|
659
|
+
}
|
|
660
|
+
],
|
|
661
|
+
url: "/api/v2/calls/reporting/simple",
|
|
662
|
+
...options
|
|
663
|
+
});
|
|
664
|
+
};
|
|
665
|
+
var listSimpleReportingCalls = (options) => {
|
|
666
|
+
return (options.client ?? client).get({
|
|
667
|
+
security: [
|
|
668
|
+
{
|
|
669
|
+
scheme: "bearer",
|
|
670
|
+
type: "http"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
name: "X-Auth-Access-Id",
|
|
674
|
+
type: "apiKey"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
name: "X-Auth-Access-Token",
|
|
678
|
+
type: "apiKey"
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
url: "/api/v2/calls/reporting/simple/{reportType}",
|
|
682
|
+
...options
|
|
683
|
+
});
|
|
684
|
+
};
|
|
685
|
+
var listMetricIds = (options) => {
|
|
686
|
+
return (options?.client ?? client).get({
|
|
687
|
+
security: [
|
|
688
|
+
{
|
|
689
|
+
scheme: "bearer",
|
|
690
|
+
type: "http"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
name: "X-Auth-Access-Id",
|
|
694
|
+
type: "apiKey"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
name: "X-Auth-Access-Token",
|
|
698
|
+
type: "apiKey"
|
|
699
|
+
}
|
|
700
|
+
],
|
|
701
|
+
url: "/api/v2/metrics/ids",
|
|
702
|
+
...options
|
|
703
|
+
});
|
|
704
|
+
};
|
|
705
|
+
var metricRequestPush = (options) => {
|
|
706
|
+
return (options?.client ?? client).post({
|
|
707
|
+
security: [
|
|
708
|
+
{
|
|
709
|
+
scheme: "bearer",
|
|
710
|
+
type: "http"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
name: "X-Auth-Access-Id",
|
|
714
|
+
type: "apiKey"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
name: "X-Auth-Access-Token",
|
|
718
|
+
type: "apiKey"
|
|
719
|
+
}
|
|
720
|
+
],
|
|
721
|
+
url: "/api/v2/metrics/push",
|
|
722
|
+
...options
|
|
723
|
+
});
|
|
724
|
+
};
|
|
725
|
+
var metricResetCounters = (options) => {
|
|
726
|
+
return (options?.client ?? client).post({
|
|
727
|
+
security: [
|
|
728
|
+
{
|
|
729
|
+
scheme: "bearer",
|
|
730
|
+
type: "http"
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
name: "X-Auth-Access-Id",
|
|
734
|
+
type: "apiKey"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
name: "X-Auth-Access-Token",
|
|
738
|
+
type: "apiKey"
|
|
739
|
+
}
|
|
740
|
+
],
|
|
741
|
+
url: "/api/v2/metrics/reset",
|
|
742
|
+
...options
|
|
743
|
+
});
|
|
744
|
+
};
|
|
745
|
+
var getMetric = (options) => {
|
|
746
|
+
return (options.client ?? client).get({
|
|
747
|
+
security: [
|
|
748
|
+
{
|
|
749
|
+
scheme: "bearer",
|
|
750
|
+
type: "http"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
name: "X-Auth-Access-Id",
|
|
754
|
+
type: "apiKey"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
name: "X-Auth-Access-Token",
|
|
758
|
+
type: "apiKey"
|
|
759
|
+
}
|
|
760
|
+
],
|
|
761
|
+
url: "/api/v2/metrics/{id}",
|
|
762
|
+
...options
|
|
763
|
+
});
|
|
764
|
+
};
|
|
765
|
+
var getMetricDefinition = (options) => {
|
|
766
|
+
return (options.client ?? client).get({
|
|
767
|
+
security: [
|
|
768
|
+
{
|
|
769
|
+
scheme: "bearer",
|
|
770
|
+
type: "http"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
name: "X-Auth-Access-Id",
|
|
774
|
+
type: "apiKey"
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
name: "X-Auth-Access-Token",
|
|
778
|
+
type: "apiKey"
|
|
779
|
+
}
|
|
780
|
+
],
|
|
781
|
+
url: "/api/v2/metrics/{id}/describe",
|
|
782
|
+
...options
|
|
783
|
+
});
|
|
784
|
+
};
|
|
785
|
+
var getSettingsForAppCustomerLogging = (options) => {
|
|
786
|
+
return (options?.client ?? client).get({
|
|
787
|
+
security: [
|
|
788
|
+
{
|
|
789
|
+
scheme: "bearer",
|
|
790
|
+
type: "http"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
name: "X-Auth-Access-Id",
|
|
794
|
+
type: "apiKey"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
name: "X-Auth-Access-Token",
|
|
798
|
+
type: "apiKey"
|
|
799
|
+
}
|
|
800
|
+
],
|
|
801
|
+
url: "/api/v2/settings/app/customer.logging",
|
|
802
|
+
...options
|
|
803
|
+
});
|
|
804
|
+
};
|
|
805
|
+
var updateSettingsForAppCustomerLogging = (options) => {
|
|
806
|
+
return (options?.client ?? client).put({
|
|
807
|
+
security: [
|
|
808
|
+
{
|
|
809
|
+
scheme: "bearer",
|
|
810
|
+
type: "http"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
name: "X-Auth-Access-Id",
|
|
814
|
+
type: "apiKey"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
name: "X-Auth-Access-Token",
|
|
818
|
+
type: "apiKey"
|
|
819
|
+
}
|
|
820
|
+
],
|
|
821
|
+
url: "/api/v2/settings/app/customer.logging",
|
|
822
|
+
...options,
|
|
823
|
+
headers: {
|
|
824
|
+
"Content-Type": "application/json",
|
|
825
|
+
...options?.headers
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
};
|
|
829
|
+
var getSettingsForAuditDefault = (options) => {
|
|
830
|
+
return (options?.client ?? client).get({
|
|
831
|
+
security: [
|
|
832
|
+
{
|
|
833
|
+
scheme: "bearer",
|
|
834
|
+
type: "http"
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
name: "X-Auth-Access-Id",
|
|
838
|
+
type: "apiKey"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
name: "X-Auth-Access-Token",
|
|
842
|
+
type: "apiKey"
|
|
843
|
+
}
|
|
844
|
+
],
|
|
845
|
+
url: "/api/v2/settings/audit/default",
|
|
846
|
+
...options
|
|
847
|
+
});
|
|
848
|
+
};
|
|
849
|
+
var updateSettingsForAuditDefault = (options) => {
|
|
850
|
+
return (options?.client ?? client).put({
|
|
851
|
+
security: [
|
|
852
|
+
{
|
|
853
|
+
scheme: "bearer",
|
|
854
|
+
type: "http"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
name: "X-Auth-Access-Id",
|
|
858
|
+
type: "apiKey"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
name: "X-Auth-Access-Token",
|
|
862
|
+
type: "apiKey"
|
|
863
|
+
}
|
|
864
|
+
],
|
|
865
|
+
url: "/api/v2/settings/audit/default",
|
|
866
|
+
...options,
|
|
867
|
+
headers: {
|
|
868
|
+
"Content-Type": "application/json",
|
|
869
|
+
...options?.headers
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
};
|
|
873
|
+
var getSettingsForTelephonyAgentOutbound = (options) => {
|
|
874
|
+
return (options?.client ?? client).get({
|
|
875
|
+
security: [
|
|
876
|
+
{
|
|
877
|
+
scheme: "bearer",
|
|
878
|
+
type: "http"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
name: "X-Auth-Access-Id",
|
|
882
|
+
type: "apiKey"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
name: "X-Auth-Access-Token",
|
|
886
|
+
type: "apiKey"
|
|
887
|
+
}
|
|
888
|
+
],
|
|
889
|
+
url: "/api/v2/settings/telephony/agent.outbound",
|
|
890
|
+
...options
|
|
891
|
+
});
|
|
892
|
+
};
|
|
893
|
+
var updateSettingsForTelephonyAgentOutbound = (options) => {
|
|
894
|
+
return (options?.client ?? client).put({
|
|
895
|
+
security: [
|
|
896
|
+
{
|
|
897
|
+
scheme: "bearer",
|
|
898
|
+
type: "http"
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
name: "X-Auth-Access-Id",
|
|
902
|
+
type: "apiKey"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
name: "X-Auth-Access-Token",
|
|
906
|
+
type: "apiKey"
|
|
907
|
+
}
|
|
908
|
+
],
|
|
909
|
+
url: "/api/v2/settings/telephony/agent.outbound",
|
|
910
|
+
...options,
|
|
911
|
+
headers: {
|
|
912
|
+
"Content-Type": "application/json",
|
|
913
|
+
...options?.headers
|
|
914
|
+
}
|
|
915
|
+
});
|
|
916
|
+
};
|
|
917
|
+
var getSettingsForTelephonyAgentRecording = (options) => {
|
|
918
|
+
return (options?.client ?? client).get({
|
|
919
|
+
security: [
|
|
920
|
+
{
|
|
921
|
+
scheme: "bearer",
|
|
922
|
+
type: "http"
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
name: "X-Auth-Access-Id",
|
|
926
|
+
type: "apiKey"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
name: "X-Auth-Access-Token",
|
|
930
|
+
type: "apiKey"
|
|
931
|
+
}
|
|
932
|
+
],
|
|
933
|
+
url: "/api/v2/settings/telephony/agent.recording",
|
|
934
|
+
...options
|
|
935
|
+
});
|
|
936
|
+
};
|
|
937
|
+
var updateSettingsForTelephonyAgentRecording = (options) => {
|
|
938
|
+
return (options?.client ?? client).put({
|
|
939
|
+
security: [
|
|
940
|
+
{
|
|
941
|
+
scheme: "bearer",
|
|
942
|
+
type: "http"
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
name: "X-Auth-Access-Id",
|
|
946
|
+
type: "apiKey"
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
name: "X-Auth-Access-Token",
|
|
950
|
+
type: "apiKey"
|
|
951
|
+
}
|
|
952
|
+
],
|
|
953
|
+
url: "/api/v2/settings/telephony/agent.recording",
|
|
954
|
+
...options,
|
|
955
|
+
headers: {
|
|
956
|
+
"Content-Type": "application/json",
|
|
957
|
+
...options?.headers
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
};
|
|
961
|
+
var getSettingsForTelephonyAgentWrapup = (options) => {
|
|
962
|
+
return (options?.client ?? client).get({
|
|
963
|
+
security: [
|
|
964
|
+
{
|
|
965
|
+
scheme: "bearer",
|
|
966
|
+
type: "http"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
name: "X-Auth-Access-Id",
|
|
970
|
+
type: "apiKey"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
name: "X-Auth-Access-Token",
|
|
974
|
+
type: "apiKey"
|
|
975
|
+
}
|
|
976
|
+
],
|
|
977
|
+
url: "/api/v2/settings/telephony/agent.wrapup",
|
|
978
|
+
...options
|
|
979
|
+
});
|
|
980
|
+
};
|
|
981
|
+
var updateSettingsForTelephonyAgentWrapup = (options) => {
|
|
982
|
+
return (options?.client ?? client).put({
|
|
983
|
+
security: [
|
|
984
|
+
{
|
|
985
|
+
scheme: "bearer",
|
|
986
|
+
type: "http"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
name: "X-Auth-Access-Id",
|
|
990
|
+
type: "apiKey"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
name: "X-Auth-Access-Token",
|
|
994
|
+
type: "apiKey"
|
|
995
|
+
}
|
|
996
|
+
],
|
|
997
|
+
url: "/api/v2/settings/telephony/agent.wrapup",
|
|
998
|
+
...options,
|
|
999
|
+
headers: {
|
|
1000
|
+
"Content-Type": "application/json",
|
|
1001
|
+
...options?.headers
|
|
1002
|
+
}
|
|
1003
|
+
});
|
|
1004
|
+
};
|
|
1005
|
+
var getSettingsForTelephonyPostCall = (options) => {
|
|
1006
|
+
return (options?.client ?? client).get({
|
|
1007
|
+
security: [
|
|
1008
|
+
{
|
|
1009
|
+
scheme: "bearer",
|
|
1010
|
+
type: "http"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
name: "X-Auth-Access-Id",
|
|
1014
|
+
type: "apiKey"
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
name: "X-Auth-Access-Token",
|
|
1018
|
+
type: "apiKey"
|
|
1019
|
+
}
|
|
1020
|
+
],
|
|
1021
|
+
url: "/api/v2/settings/telephony/post-call",
|
|
1022
|
+
...options
|
|
1023
|
+
});
|
|
1024
|
+
};
|
|
1025
|
+
var updateSettingsForTelephonyPostCall = (options) => {
|
|
1026
|
+
return (options?.client ?? client).put({
|
|
1027
|
+
security: [
|
|
1028
|
+
{
|
|
1029
|
+
scheme: "bearer",
|
|
1030
|
+
type: "http"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
name: "X-Auth-Access-Id",
|
|
1034
|
+
type: "apiKey"
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
name: "X-Auth-Access-Token",
|
|
1038
|
+
type: "apiKey"
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
1041
|
+
url: "/api/v2/settings/telephony/post-call",
|
|
1042
|
+
...options,
|
|
1043
|
+
headers: {
|
|
1044
|
+
"Content-Type": "application/json",
|
|
1045
|
+
...options?.headers
|
|
1046
|
+
}
|
|
1047
|
+
});
|
|
1048
|
+
};
|
|
1049
|
+
var getSettingsForTelephonyAgentInbound = (options) => {
|
|
1050
|
+
return (options?.client ?? client).get({
|
|
1051
|
+
security: [
|
|
1052
|
+
{
|
|
1053
|
+
scheme: "bearer",
|
|
1054
|
+
type: "http"
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
name: "X-Auth-Access-Id",
|
|
1058
|
+
type: "apiKey"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
name: "X-Auth-Access-Token",
|
|
1062
|
+
type: "apiKey"
|
|
1063
|
+
}
|
|
1064
|
+
],
|
|
1065
|
+
url: "/api/v2/settings/telephony/agent.inbound",
|
|
1066
|
+
...options
|
|
1067
|
+
});
|
|
1068
|
+
};
|
|
1069
|
+
var updateSettingsForTelephonyAgentInbound = (options) => {
|
|
1070
|
+
return (options?.client ?? client).put({
|
|
1071
|
+
security: [
|
|
1072
|
+
{
|
|
1073
|
+
scheme: "bearer",
|
|
1074
|
+
type: "http"
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
name: "X-Auth-Access-Id",
|
|
1078
|
+
type: "apiKey"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
name: "X-Auth-Access-Token",
|
|
1082
|
+
type: "apiKey"
|
|
1083
|
+
}
|
|
1084
|
+
],
|
|
1085
|
+
url: "/api/v2/settings/telephony/agent.inbound",
|
|
1086
|
+
...options,
|
|
1087
|
+
headers: {
|
|
1088
|
+
"Content-Type": "application/json",
|
|
1089
|
+
...options?.headers
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
};
|
|
1093
|
+
var getSettingsForUiI18N = (options) => {
|
|
1094
|
+
return (options?.client ?? client).get({
|
|
1095
|
+
security: [
|
|
1096
|
+
{
|
|
1097
|
+
scheme: "bearer",
|
|
1098
|
+
type: "http"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
name: "X-Auth-Access-Id",
|
|
1102
|
+
type: "apiKey"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
name: "X-Auth-Access-Token",
|
|
1106
|
+
type: "apiKey"
|
|
1107
|
+
}
|
|
1108
|
+
],
|
|
1109
|
+
url: "/api/v2/settings/ui/i18n",
|
|
1110
|
+
...options
|
|
1111
|
+
});
|
|
1112
|
+
};
|
|
1113
|
+
var updateSettingsForUiI18N = (options) => {
|
|
1114
|
+
return (options?.client ?? client).put({
|
|
1115
|
+
security: [
|
|
1116
|
+
{
|
|
1117
|
+
scheme: "bearer",
|
|
1118
|
+
type: "http"
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
name: "X-Auth-Access-Id",
|
|
1122
|
+
type: "apiKey"
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
name: "X-Auth-Access-Token",
|
|
1126
|
+
type: "apiKey"
|
|
1127
|
+
}
|
|
1128
|
+
],
|
|
1129
|
+
url: "/api/v2/settings/ui/i18n",
|
|
1130
|
+
...options,
|
|
1131
|
+
headers: {
|
|
1132
|
+
"Content-Type": "application/json",
|
|
1133
|
+
...options?.headers
|
|
1134
|
+
}
|
|
1135
|
+
});
|
|
1136
|
+
};
|
|
1137
|
+
var getSettingsForRetentionPeriods = (options) => {
|
|
1138
|
+
return (options?.client ?? client).get({
|
|
1139
|
+
security: [
|
|
1140
|
+
{
|
|
1141
|
+
scheme: "bearer",
|
|
1142
|
+
type: "http"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
name: "X-Auth-Access-Id",
|
|
1146
|
+
type: "apiKey"
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
name: "X-Auth-Access-Token",
|
|
1150
|
+
type: "apiKey"
|
|
1151
|
+
}
|
|
1152
|
+
],
|
|
1153
|
+
url: "/api/v2/settings/retention/periods",
|
|
1154
|
+
...options
|
|
1155
|
+
});
|
|
1156
|
+
};
|
|
1157
|
+
var updateSettingsForRetentionPeriods = (options) => {
|
|
1158
|
+
return (options?.client ?? client).put({
|
|
1159
|
+
security: [
|
|
1160
|
+
{
|
|
1161
|
+
scheme: "bearer",
|
|
1162
|
+
type: "http"
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
name: "X-Auth-Access-Id",
|
|
1166
|
+
type: "apiKey"
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
name: "X-Auth-Access-Token",
|
|
1170
|
+
type: "apiKey"
|
|
1171
|
+
}
|
|
1172
|
+
],
|
|
1173
|
+
url: "/api/v2/settings/retention/periods",
|
|
1174
|
+
...options,
|
|
1175
|
+
headers: {
|
|
1176
|
+
"Content-Type": "application/json",
|
|
1177
|
+
...options?.headers
|
|
1178
|
+
}
|
|
1179
|
+
});
|
|
1180
|
+
};
|
|
1181
|
+
var getSettingsForAppConversations = (options) => {
|
|
1182
|
+
return (options?.client ?? client).get({
|
|
1183
|
+
security: [
|
|
1184
|
+
{
|
|
1185
|
+
scheme: "bearer",
|
|
1186
|
+
type: "http"
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
name: "X-Auth-Access-Id",
|
|
1190
|
+
type: "apiKey"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
name: "X-Auth-Access-Token",
|
|
1194
|
+
type: "apiKey"
|
|
1195
|
+
}
|
|
1196
|
+
],
|
|
1197
|
+
url: "/api/v2/settings/app/conversations",
|
|
1198
|
+
...options
|
|
1199
|
+
});
|
|
1200
|
+
};
|
|
1201
|
+
var updateSettingsForAppConversations = (options) => {
|
|
1202
|
+
return (options?.client ?? client).put({
|
|
1203
|
+
security: [
|
|
1204
|
+
{
|
|
1205
|
+
scheme: "bearer",
|
|
1206
|
+
type: "http"
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
name: "X-Auth-Access-Id",
|
|
1210
|
+
type: "apiKey"
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
name: "X-Auth-Access-Token",
|
|
1214
|
+
type: "apiKey"
|
|
1215
|
+
}
|
|
1216
|
+
],
|
|
1217
|
+
url: "/api/v2/settings/app/conversations",
|
|
1218
|
+
...options,
|
|
1219
|
+
headers: {
|
|
1220
|
+
"Content-Type": "application/json",
|
|
1221
|
+
...options?.headers
|
|
1222
|
+
}
|
|
1223
|
+
});
|
|
1224
|
+
};
|
|
1225
|
+
var getSettingsForAppIntegrations = (options) => {
|
|
1226
|
+
return (options?.client ?? client).get({
|
|
1227
|
+
security: [
|
|
1228
|
+
{
|
|
1229
|
+
scheme: "bearer",
|
|
1230
|
+
type: "http"
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
name: "X-Auth-Access-Id",
|
|
1234
|
+
type: "apiKey"
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
name: "X-Auth-Access-Token",
|
|
1238
|
+
type: "apiKey"
|
|
1239
|
+
}
|
|
1240
|
+
],
|
|
1241
|
+
url: "/api/v2/settings/app/integrations",
|
|
1242
|
+
...options
|
|
1243
|
+
});
|
|
1244
|
+
};
|
|
1245
|
+
var updateSettingsForAppIntegrations = (options) => {
|
|
1246
|
+
return (options?.client ?? client).put({
|
|
1247
|
+
security: [
|
|
1248
|
+
{
|
|
1249
|
+
scheme: "bearer",
|
|
1250
|
+
type: "http"
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
name: "X-Auth-Access-Id",
|
|
1254
|
+
type: "apiKey"
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
name: "X-Auth-Access-Token",
|
|
1258
|
+
type: "apiKey"
|
|
1259
|
+
}
|
|
1260
|
+
],
|
|
1261
|
+
url: "/api/v2/settings/app/integrations",
|
|
1262
|
+
...options,
|
|
1263
|
+
headers: {
|
|
1264
|
+
"Content-Type": "application/json",
|
|
1265
|
+
...options?.headers
|
|
1266
|
+
}
|
|
1267
|
+
});
|
|
1268
|
+
};
|
|
1269
|
+
var getSettingsForAppAgentStatus = (options) => {
|
|
1270
|
+
return (options?.client ?? client).get({
|
|
1271
|
+
security: [
|
|
1272
|
+
{
|
|
1273
|
+
scheme: "bearer",
|
|
1274
|
+
type: "http"
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
name: "X-Auth-Access-Id",
|
|
1278
|
+
type: "apiKey"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
name: "X-Auth-Access-Token",
|
|
1282
|
+
type: "apiKey"
|
|
1283
|
+
}
|
|
1284
|
+
],
|
|
1285
|
+
url: "/api/v2/settings/app/agent.status",
|
|
1286
|
+
...options
|
|
1287
|
+
});
|
|
1288
|
+
};
|
|
1289
|
+
var updateSettingsForAppAgentStatus = (options) => {
|
|
1290
|
+
return (options?.client ?? client).put({
|
|
1291
|
+
security: [
|
|
1292
|
+
{
|
|
1293
|
+
scheme: "bearer",
|
|
1294
|
+
type: "http"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
name: "X-Auth-Access-Id",
|
|
1298
|
+
type: "apiKey"
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
name: "X-Auth-Access-Token",
|
|
1302
|
+
type: "apiKey"
|
|
1303
|
+
}
|
|
1304
|
+
],
|
|
1305
|
+
url: "/api/v2/settings/app/agent.status",
|
|
1306
|
+
...options,
|
|
1307
|
+
headers: {
|
|
1308
|
+
"Content-Type": "application/json",
|
|
1309
|
+
...options?.headers
|
|
1310
|
+
}
|
|
1311
|
+
});
|
|
1312
|
+
};
|
|
77
1313
|
var listUsers = (options) => {
|
|
78
1314
|
return (options?.client ?? client).get({
|
|
79
1315
|
security: [
|
|
@@ -284,6 +1520,380 @@ var UsersResource = class {
|
|
|
284
1520
|
function emailList(emails) {
|
|
285
1521
|
return { emails };
|
|
286
1522
|
}
|
|
1523
|
+
|
|
1524
|
+
// src/resources/agents.ts
|
|
1525
|
+
var AgentsResource = class {
|
|
1526
|
+
constructor(client4) {
|
|
1527
|
+
this.client = client4;
|
|
1528
|
+
this.groups = new AgentGroupsResource(client4);
|
|
1529
|
+
}
|
|
1530
|
+
client;
|
|
1531
|
+
/** Agent groups — `/api/v2/agents/groups`. */
|
|
1532
|
+
groups;
|
|
1533
|
+
/**
|
|
1534
|
+
* List agents, auto-paginating across pages.
|
|
1535
|
+
*
|
|
1536
|
+
* ```ts
|
|
1537
|
+
* for await (const agent of mgr.agents.list({ enabled: true })) console.log(agent.name);
|
|
1538
|
+
* ```
|
|
1539
|
+
*/
|
|
1540
|
+
list(query = {}) {
|
|
1541
|
+
const client4 = this.client;
|
|
1542
|
+
const { pageSize, ...filters } = query;
|
|
1543
|
+
return paginate(async (page) => {
|
|
1544
|
+
const data = await unwrap(
|
|
1545
|
+
listAgents({ client: client4, query: { ...filters, page, max: pageSize } })
|
|
1546
|
+
);
|
|
1547
|
+
return { items: data.items, pagination: data.pagination };
|
|
1548
|
+
});
|
|
1549
|
+
}
|
|
1550
|
+
/** Collect every agent into an array (convenience over {@link list}). */
|
|
1551
|
+
async listAll(query = {}) {
|
|
1552
|
+
const out = [];
|
|
1553
|
+
for await (const agent of this.list(query)) out.push(agent);
|
|
1554
|
+
return out;
|
|
1555
|
+
}
|
|
1556
|
+
/** Create an agent. */
|
|
1557
|
+
async create(body) {
|
|
1558
|
+
return unwrap(createAgent({ client: this.client, body }));
|
|
1559
|
+
}
|
|
1560
|
+
/** Get an agent by id. */
|
|
1561
|
+
async get(id) {
|
|
1562
|
+
return unwrap(getAgent({ client: this.client, path: { id } }));
|
|
1563
|
+
}
|
|
1564
|
+
/** Update an agent. */
|
|
1565
|
+
async update(id, body) {
|
|
1566
|
+
return unwrap(updateAgent({ client: this.client, path: { id }, body }));
|
|
1567
|
+
}
|
|
1568
|
+
/** Delete an agent by id. */
|
|
1569
|
+
async delete(id) {
|
|
1570
|
+
await unwrap(deleteAgent({ client: this.client, path: { id } }));
|
|
1571
|
+
}
|
|
1572
|
+
/** Update an agent's status (enabled flag and/or presence). */
|
|
1573
|
+
async updateStatus(id, status) {
|
|
1574
|
+
return unwrap(updateAgentStatus({ client: this.client, path: { id }, body: status }));
|
|
1575
|
+
}
|
|
1576
|
+
};
|
|
1577
|
+
var AgentGroupsResource = class {
|
|
1578
|
+
constructor(client4) {
|
|
1579
|
+
this.client = client4;
|
|
1580
|
+
}
|
|
1581
|
+
client;
|
|
1582
|
+
/** List agent groups, auto-paginating across pages. */
|
|
1583
|
+
list(pageSize) {
|
|
1584
|
+
const client4 = this.client;
|
|
1585
|
+
return paginate(async (page) => {
|
|
1586
|
+
const data = await unwrap(
|
|
1587
|
+
listAgentGroups({ client: client4, query: { page, max: pageSize } })
|
|
1588
|
+
);
|
|
1589
|
+
return { items: data.items, pagination: data.pagination };
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1592
|
+
/** Collect every agent group into an array. */
|
|
1593
|
+
async listAll(pageSize) {
|
|
1594
|
+
const out = [];
|
|
1595
|
+
for await (const group of this.list(pageSize)) out.push(group);
|
|
1596
|
+
return out;
|
|
1597
|
+
}
|
|
1598
|
+
/** Create an agent group. */
|
|
1599
|
+
async create(body) {
|
|
1600
|
+
return unwrap(createAgentGroup({ client: this.client, body }));
|
|
1601
|
+
}
|
|
1602
|
+
/** Get an agent group by id. */
|
|
1603
|
+
async get(id) {
|
|
1604
|
+
return unwrap(getAgentGroup({ client: this.client, path: { id } }));
|
|
1605
|
+
}
|
|
1606
|
+
/** Update an agent group. */
|
|
1607
|
+
async update(id, body) {
|
|
1608
|
+
return unwrap(updateAgentGroup({ client: this.client, path: { id }, body }));
|
|
1609
|
+
}
|
|
1610
|
+
/** Delete an agent group by id. */
|
|
1611
|
+
async delete(id) {
|
|
1612
|
+
await unwrap(deleteAgentGroup({ client: this.client, path: { id } }));
|
|
1613
|
+
}
|
|
1614
|
+
/** Add an agent (by id) to a group. */
|
|
1615
|
+
async addAgent(groupId, agentId) {
|
|
1616
|
+
return unwrap(
|
|
1617
|
+
addAgentToGroup({ client: this.client, path: { groupId }, body: { id: agentId } })
|
|
1618
|
+
);
|
|
1619
|
+
}
|
|
1620
|
+
};
|
|
1621
|
+
|
|
1622
|
+
// src/resources/calls.ts
|
|
1623
|
+
var CallsResource = class {
|
|
1624
|
+
/** Call reporting — `/api/v2/calls/reporting`. */
|
|
1625
|
+
reporting;
|
|
1626
|
+
constructor(client4) {
|
|
1627
|
+
this.reporting = new ReportingResource(client4);
|
|
1628
|
+
}
|
|
1629
|
+
};
|
|
1630
|
+
var ReportingResource = class {
|
|
1631
|
+
constructor(client4) {
|
|
1632
|
+
this.client = client4;
|
|
1633
|
+
}
|
|
1634
|
+
client;
|
|
1635
|
+
/**
|
|
1636
|
+
* The detailed call report, auto-paginating across pages.
|
|
1637
|
+
*
|
|
1638
|
+
* ```ts
|
|
1639
|
+
* for await (const call of mgr.calls.reporting.list({ "time.start": 1700000000 })) { … }
|
|
1640
|
+
* ```
|
|
1641
|
+
*/
|
|
1642
|
+
list(query = {}) {
|
|
1643
|
+
const client4 = this.client;
|
|
1644
|
+
const { pageSize, ...filters } = query;
|
|
1645
|
+
return paginate(async (page) => {
|
|
1646
|
+
const data = await unwrap(
|
|
1647
|
+
listReportingCalls({ client: client4, query: { ...filters, page, max: pageSize } })
|
|
1648
|
+
);
|
|
1649
|
+
return { items: data.items, pagination: data.pagination };
|
|
1650
|
+
});
|
|
1651
|
+
}
|
|
1652
|
+
/** Collect every call from the detailed report into an array. */
|
|
1653
|
+
async listAll(query = {}) {
|
|
1654
|
+
const out = [];
|
|
1655
|
+
for await (const call of this.list(query)) out.push(call);
|
|
1656
|
+
return out;
|
|
1657
|
+
}
|
|
1658
|
+
/**
|
|
1659
|
+
* The simple call report across all report types (`/api/v2/calls/reporting/simple`),
|
|
1660
|
+
* auto-paginating across pages.
|
|
1661
|
+
*/
|
|
1662
|
+
simple(query = {}) {
|
|
1663
|
+
const client4 = this.client;
|
|
1664
|
+
const { pageSize, ...filters } = query;
|
|
1665
|
+
return paginate(async (page) => {
|
|
1666
|
+
const data = await unwrap(
|
|
1667
|
+
listAllSimpleReportingCalls({ client: client4, query: { ...filters, page, max: pageSize } })
|
|
1668
|
+
);
|
|
1669
|
+
return { items: data.items, pagination: data.pagination };
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
/** Collect every call from the simple report into an array. */
|
|
1673
|
+
async simpleAll(query = {}) {
|
|
1674
|
+
const out = [];
|
|
1675
|
+
for await (const call of this.simple(query)) out.push(call);
|
|
1676
|
+
return out;
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* The simple call report for a single report type
|
|
1680
|
+
* (`/api/v2/calls/reporting/simple/{reportType}`), auto-paginating across pages.
|
|
1681
|
+
*/
|
|
1682
|
+
simpleByType(reportType, query = {}) {
|
|
1683
|
+
const client4 = this.client;
|
|
1684
|
+
const { pageSize, ...filters } = query;
|
|
1685
|
+
return paginate(async (page) => {
|
|
1686
|
+
const data = await unwrap(
|
|
1687
|
+
listSimpleReportingCalls({ client: client4, path: { reportType }, query: { ...filters, page, max: pageSize } })
|
|
1688
|
+
);
|
|
1689
|
+
return { items: data.items, pagination: data.pagination };
|
|
1690
|
+
});
|
|
1691
|
+
}
|
|
1692
|
+
/** Collect every call from a single report type into an array. */
|
|
1693
|
+
async simpleAllByType(reportType, query = {}) {
|
|
1694
|
+
const out = [];
|
|
1695
|
+
for await (const call of this.simpleByType(reportType, query)) out.push(call);
|
|
1696
|
+
return out;
|
|
1697
|
+
}
|
|
1698
|
+
};
|
|
1699
|
+
|
|
1700
|
+
// src/resources/metrics.ts
|
|
1701
|
+
var MetricsResource = class {
|
|
1702
|
+
constructor(client4) {
|
|
1703
|
+
this.client = client4;
|
|
1704
|
+
}
|
|
1705
|
+
client;
|
|
1706
|
+
/** List the available metric ids. */
|
|
1707
|
+
async listIds() {
|
|
1708
|
+
return unwrap(listMetricIds({ client: this.client }));
|
|
1709
|
+
}
|
|
1710
|
+
/** Get a metric's current value by id. */
|
|
1711
|
+
async get(id) {
|
|
1712
|
+
return unwrap(getMetric({ client: this.client, path: { id } }));
|
|
1713
|
+
}
|
|
1714
|
+
/** Describe a metric's definition by id. */
|
|
1715
|
+
async describe(id) {
|
|
1716
|
+
return unwrap(getMetricDefinition({ client: this.client, path: { id } }));
|
|
1717
|
+
}
|
|
1718
|
+
/** Trigger a metrics push. */
|
|
1719
|
+
async push() {
|
|
1720
|
+
return unwrap(metricRequestPush({ client: this.client }));
|
|
1721
|
+
}
|
|
1722
|
+
/** Reset the metric counters. */
|
|
1723
|
+
async reset() {
|
|
1724
|
+
return unwrap(metricResetCounters({ client: this.client }));
|
|
1725
|
+
}
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
// src/resources/applications.ts
|
|
1729
|
+
var ApplicationsResource = class {
|
|
1730
|
+
constructor(client4) {
|
|
1731
|
+
this.client = client4;
|
|
1732
|
+
this.actions = new AppActionsResource(client4);
|
|
1733
|
+
}
|
|
1734
|
+
client;
|
|
1735
|
+
/** Per-application actions (local automations) — `/api/v2/applications/{applicationId}/actions`. */
|
|
1736
|
+
actions;
|
|
1737
|
+
/**
|
|
1738
|
+
* List applications, auto-paginating across pages.
|
|
1739
|
+
*
|
|
1740
|
+
* ```ts
|
|
1741
|
+
* for await (const app of mgr.applications.list()) console.log(app.id, app.name);
|
|
1742
|
+
* ```
|
|
1743
|
+
*/
|
|
1744
|
+
list(query = {}) {
|
|
1745
|
+
const client4 = this.client;
|
|
1746
|
+
return paginate(async (page) => {
|
|
1747
|
+
const data = await unwrap(
|
|
1748
|
+
listApplications({ client: client4, query: { page, max: query.pageSize } })
|
|
1749
|
+
);
|
|
1750
|
+
return { items: data.items, pagination: data.pagination };
|
|
1751
|
+
});
|
|
1752
|
+
}
|
|
1753
|
+
/** Collect every application into an array (convenience over {@link list}). */
|
|
1754
|
+
async listAll(query = {}) {
|
|
1755
|
+
const out = [];
|
|
1756
|
+
for await (const app of this.list(query)) out.push(app);
|
|
1757
|
+
return out;
|
|
1758
|
+
}
|
|
1759
|
+
/** Create an application. */
|
|
1760
|
+
async create(body) {
|
|
1761
|
+
return unwrap(createApplication({ client: this.client, body }));
|
|
1762
|
+
}
|
|
1763
|
+
/** Get an application by id. */
|
|
1764
|
+
async get(id) {
|
|
1765
|
+
return unwrap(getApplication({ client: this.client, path: { id } }));
|
|
1766
|
+
}
|
|
1767
|
+
/** Update an application. */
|
|
1768
|
+
async update(id, body) {
|
|
1769
|
+
return unwrap(updateApplication({ client: this.client, path: { id }, body }));
|
|
1770
|
+
}
|
|
1771
|
+
/** Delete an application by id. */
|
|
1772
|
+
async delete(id) {
|
|
1773
|
+
await unwrap(deleteApplication({ client: this.client, path: { id } }));
|
|
1774
|
+
}
|
|
1775
|
+
/** Bulk-delete applications by id. */
|
|
1776
|
+
async deleteMany(ids) {
|
|
1777
|
+
return unwrap(deleteManyApplications({ client: this.client, body: { ids } }));
|
|
1778
|
+
}
|
|
1779
|
+
/** List the available IVR modules (the building blocks of applications). */
|
|
1780
|
+
async listModules() {
|
|
1781
|
+
return unwrap(listModules({ client: this.client }));
|
|
1782
|
+
}
|
|
1783
|
+
/** Dispatch the local automations configured at a position in an application. */
|
|
1784
|
+
async dispatch(id, position, async, body) {
|
|
1785
|
+
return unwrap(
|
|
1786
|
+
dispatchLocalAutomations({ client: this.client, path: { id, position }, query: { async }, body })
|
|
1787
|
+
);
|
|
1788
|
+
}
|
|
1789
|
+
};
|
|
1790
|
+
var AppActionsResource = class {
|
|
1791
|
+
constructor(client4) {
|
|
1792
|
+
this.client = client4;
|
|
1793
|
+
}
|
|
1794
|
+
client;
|
|
1795
|
+
/** List an application's actions, auto-paginating across pages. */
|
|
1796
|
+
list(applicationId, pageSize) {
|
|
1797
|
+
const client4 = this.client;
|
|
1798
|
+
return paginate(async (page) => {
|
|
1799
|
+
const data = await unwrap(
|
|
1800
|
+
listLocalAutomations({ client: client4, path: { applicationId }, query: { page, max: pageSize } })
|
|
1801
|
+
);
|
|
1802
|
+
return { items: data.items, pagination: data.pagination };
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1805
|
+
/** Collect every action of an application into an array. */
|
|
1806
|
+
async listAll(applicationId, pageSize) {
|
|
1807
|
+
const out = [];
|
|
1808
|
+
for await (const action of this.list(applicationId, pageSize)) out.push(action);
|
|
1809
|
+
return out;
|
|
1810
|
+
}
|
|
1811
|
+
/** Create an action in an application. */
|
|
1812
|
+
async create(applicationId, body) {
|
|
1813
|
+
return unwrap(
|
|
1814
|
+
createLocalAutomation({ client: this.client, path: { applicationId }, body })
|
|
1815
|
+
);
|
|
1816
|
+
}
|
|
1817
|
+
/** Get one of an application's actions by id. */
|
|
1818
|
+
async get(applicationId, id) {
|
|
1819
|
+
return unwrap(
|
|
1820
|
+
getLocalAutomation({ client: this.client, path: { applicationId, id } })
|
|
1821
|
+
);
|
|
1822
|
+
}
|
|
1823
|
+
/** Update one of an application's actions. */
|
|
1824
|
+
async update(applicationId, id, body) {
|
|
1825
|
+
return unwrap(
|
|
1826
|
+
updateLocalAutomation({ client: this.client, path: { applicationId, id }, body })
|
|
1827
|
+
);
|
|
1828
|
+
}
|
|
1829
|
+
/** Delete one of an application's actions. */
|
|
1830
|
+
async delete(applicationId, id) {
|
|
1831
|
+
await unwrap(deleteLocalAutomation({ client: this.client, path: { applicationId, id } }));
|
|
1832
|
+
}
|
|
1833
|
+
};
|
|
1834
|
+
|
|
1835
|
+
// src/resources/settings.ts
|
|
1836
|
+
var SettingAccessor = class {
|
|
1837
|
+
constructor(client4, scope, key, getOp, updateOp) {
|
|
1838
|
+
this.client = client4;
|
|
1839
|
+
this.scope = scope;
|
|
1840
|
+
this.key = key;
|
|
1841
|
+
this.getOp = getOp;
|
|
1842
|
+
this.updateOp = updateOp;
|
|
1843
|
+
}
|
|
1844
|
+
client;
|
|
1845
|
+
scope;
|
|
1846
|
+
key;
|
|
1847
|
+
getOp;
|
|
1848
|
+
updateOp;
|
|
1849
|
+
/** Read the current value of this settings group. */
|
|
1850
|
+
async get() {
|
|
1851
|
+
const res = await unwrap(this.getOp({ client: this.client }));
|
|
1852
|
+
return res.item.data;
|
|
1853
|
+
}
|
|
1854
|
+
/** Update this settings group; returns the new value. */
|
|
1855
|
+
async update(data) {
|
|
1856
|
+
const body = { scope: this.scope, key: this.key, data };
|
|
1857
|
+
const res = await unwrap(this.updateOp({ client: this.client, body }));
|
|
1858
|
+
return res.item.data;
|
|
1859
|
+
}
|
|
1860
|
+
};
|
|
1861
|
+
var SettingsResource = class {
|
|
1862
|
+
/** `app` settings. */
|
|
1863
|
+
app;
|
|
1864
|
+
/** `telephony` settings. */
|
|
1865
|
+
telephony;
|
|
1866
|
+
/** `audit` settings. */
|
|
1867
|
+
audit;
|
|
1868
|
+
/** `ui` settings. */
|
|
1869
|
+
ui;
|
|
1870
|
+
/** `retention` settings. */
|
|
1871
|
+
retention;
|
|
1872
|
+
constructor(client4) {
|
|
1873
|
+
this.app = {
|
|
1874
|
+
customerLogging: new SettingAccessor(client4, "app", "customer.logging", getSettingsForAppCustomerLogging, updateSettingsForAppCustomerLogging),
|
|
1875
|
+
conversations: new SettingAccessor(client4, "app", "conversations", getSettingsForAppConversations, updateSettingsForAppConversations),
|
|
1876
|
+
integrations: new SettingAccessor(client4, "app", "integrations", getSettingsForAppIntegrations, updateSettingsForAppIntegrations),
|
|
1877
|
+
agentStatus: new SettingAccessor(client4, "app", "agent.status", getSettingsForAppAgentStatus, updateSettingsForAppAgentStatus)
|
|
1878
|
+
};
|
|
1879
|
+
this.telephony = {
|
|
1880
|
+
agentInbound: new SettingAccessor(client4, "telephony", "agent.inbound", getSettingsForTelephonyAgentInbound, updateSettingsForTelephonyAgentInbound),
|
|
1881
|
+
agentOutbound: new SettingAccessor(client4, "telephony", "agent.outbound", getSettingsForTelephonyAgentOutbound, updateSettingsForTelephonyAgentOutbound),
|
|
1882
|
+
agentRecording: new SettingAccessor(client4, "telephony", "agent.recording", getSettingsForTelephonyAgentRecording, updateSettingsForTelephonyAgentRecording),
|
|
1883
|
+
agentWrapup: new SettingAccessor(client4, "telephony", "agent.wrapup", getSettingsForTelephonyAgentWrapup, updateSettingsForTelephonyAgentWrapup),
|
|
1884
|
+
postCall: new SettingAccessor(client4, "telephony", "post-call", getSettingsForTelephonyPostCall, updateSettingsForTelephonyPostCall)
|
|
1885
|
+
};
|
|
1886
|
+
this.audit = {
|
|
1887
|
+
default: new SettingAccessor(client4, "audit", "default", getSettingsForAuditDefault, updateSettingsForAuditDefault)
|
|
1888
|
+
};
|
|
1889
|
+
this.ui = {
|
|
1890
|
+
i18n: new SettingAccessor(client4, "ui", "i18n", getSettingsForUiI18N, updateSettingsForUiI18N)
|
|
1891
|
+
};
|
|
1892
|
+
this.retention = {
|
|
1893
|
+
periods: new SettingAccessor(client4, "retention", "periods", getSettingsForRetentionPeriods, updateSettingsForRetentionPeriods)
|
|
1894
|
+
};
|
|
1895
|
+
}
|
|
1896
|
+
};
|
|
287
1897
|
var client2 = createClient(createConfig({
|
|
288
1898
|
baseUrl: "https://services.babelforce.com"
|
|
289
1899
|
}));
|
|
@@ -566,11 +2176,26 @@ var ManagerClient = class _ManagerClient {
|
|
|
566
2176
|
client;
|
|
567
2177
|
/** User management — `/api/v2/users`. */
|
|
568
2178
|
users;
|
|
2179
|
+
/** Agent management — `/api/v2/agents`. */
|
|
2180
|
+
agents;
|
|
2181
|
+
/** Call reporting — `/api/v2/calls`. */
|
|
2182
|
+
calls;
|
|
2183
|
+
/** Metrics — `/api/v2/metrics`. */
|
|
2184
|
+
metrics;
|
|
2185
|
+
/** Application (IVR) management — `/api/v2/applications`. */
|
|
2186
|
+
applications;
|
|
2187
|
+
/** Global settings — `/api/v2/settings`. */
|
|
2188
|
+
settings;
|
|
569
2189
|
/** Task automations — `/api/v3/tasks`. */
|
|
570
2190
|
tasks;
|
|
571
2191
|
constructor(client4) {
|
|
572
2192
|
this.client = client4;
|
|
573
2193
|
this.users = new UsersResource(client4);
|
|
2194
|
+
this.agents = new AgentsResource(client4);
|
|
2195
|
+
this.calls = new CallsResource(client4);
|
|
2196
|
+
this.metrics = new MetricsResource(client4);
|
|
2197
|
+
this.applications = new ApplicationsResource(client4);
|
|
2198
|
+
this.settings = new SettingsResource(client4);
|
|
574
2199
|
this.tasks = new TasksResource(client4);
|
|
575
2200
|
}
|
|
576
2201
|
/** Create and configure a client. */
|
|
@@ -589,4 +2214,4 @@ var ManagerClient = class _ManagerClient {
|
|
|
589
2214
|
}
|
|
590
2215
|
};
|
|
591
2216
|
|
|
592
|
-
export { ManagerApiError, ManagerClient, TaskSchedulesResource, TasksResource, UsersResource, passwordGrant };
|
|
2217
|
+
export { AgentGroupsResource, AgentsResource, AppActionsResource, ApplicationsResource, CallsResource, ManagerApiError, ManagerClient, MetricsResource, ReportingResource, SettingAccessor, SettingsResource, TaskSchedulesResource, TasksResource, UsersResource, passwordGrant };
|