@roarkanalytics/sdk 2.34.0 → 3.1.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 +40 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-endpoint.d.mts +26 -0
- package/resources/agent-endpoint.d.mts.map +1 -1
- package/resources/agent-endpoint.d.ts +26 -0
- package/resources/agent-endpoint.d.ts.map +1 -1
- package/resources/agent-endpoint.js +26 -0
- package/resources/agent-endpoint.js.map +1 -1
- package/resources/agent-endpoint.mjs +26 -0
- package/resources/agent-endpoint.mjs.map +1 -1
- package/resources/agent.d.mts +20 -0
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +20 -0
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +20 -0
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +20 -0
- package/resources/agent.mjs.map +1 -1
- package/resources/call.d.mts +39 -170
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +39 -170
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +39 -0
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +39 -0
- package/resources/call.mjs.map +1 -1
- package/resources/config.d.mts +90 -99
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +90 -99
- package/resources/config.d.ts.map +1 -1
- package/resources/config.js +18 -5
- package/resources/config.js.map +1 -1
- package/resources/config.mjs +18 -5
- package/resources/config.mjs.map +1 -1
- package/resources/customer-flow-edge-case.d.mts +79 -0
- package/resources/customer-flow-edge-case.d.mts.map +1 -1
- package/resources/customer-flow-edge-case.d.ts +79 -0
- package/resources/customer-flow-edge-case.d.ts.map +1 -1
- package/resources/customer-flow-edge-case.js +34 -0
- package/resources/customer-flow-edge-case.js.map +1 -1
- package/resources/customer-flow-edge-case.mjs +34 -0
- package/resources/customer-flow-edge-case.mjs.map +1 -1
- package/resources/customer-flow.d.mts +271 -615
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +271 -615
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/customer-flow.js +42 -1
- package/resources/customer-flow.js.map +1 -1
- package/resources/customer-flow.mjs +42 -1
- package/resources/customer-flow.mjs.map +1 -1
- package/resources/health.d.mts +5 -0
- package/resources/health.d.mts.map +1 -1
- package/resources/health.d.ts +5 -0
- package/resources/health.d.ts.map +1 -1
- package/resources/health.js +5 -0
- package/resources/health.js.map +1 -1
- package/resources/health.mjs +5 -0
- package/resources/health.mjs.map +1 -1
- package/resources/http-request-definition.d.mts +29 -0
- package/resources/http-request-definition.d.mts.map +1 -1
- package/resources/http-request-definition.d.ts +29 -0
- package/resources/http-request-definition.d.ts.map +1 -1
- package/resources/http-request-definition.js +29 -0
- package/resources/http-request-definition.js.map +1 -1
- package/resources/http-request-definition.mjs +29 -0
- package/resources/http-request-definition.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/metric-collection-job.d.mts +23 -0
- package/resources/metric-collection-job.d.mts.map +1 -1
- package/resources/metric-collection-job.d.ts +23 -0
- package/resources/metric-collection-job.d.ts.map +1 -1
- package/resources/metric-collection-job.js +23 -0
- package/resources/metric-collection-job.js.map +1 -1
- package/resources/metric-collection-job.mjs +23 -0
- package/resources/metric-collection-job.mjs.map +1 -1
- package/resources/metric.d.mts +5 -7
- package/resources/metric.d.mts.map +1 -1
- package/resources/metric.d.ts +5 -7
- package/resources/metric.d.ts.map +1 -1
- package/resources/metric.js +5 -0
- package/resources/metric.js.map +1 -1
- package/resources/metric.mjs +5 -0
- package/resources/metric.mjs.map +1 -1
- package/resources/simulation-environment.d.mts +13 -0
- package/resources/simulation-environment.d.mts.map +1 -1
- package/resources/simulation-environment.d.ts +13 -0
- package/resources/simulation-environment.d.ts.map +1 -1
- package/resources/simulation-environment.js +13 -0
- package/resources/simulation-environment.js.map +1 -1
- package/resources/simulation-environment.mjs +13 -0
- package/resources/simulation-environment.mjs.map +1 -1
- package/resources/simulation-job.d.mts +14 -4
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +14 -4
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-job.js +1 -1
- package/resources/simulation-job.js.map +1 -1
- package/resources/simulation-job.mjs +1 -1
- package/resources/simulation-job.mjs.map +1 -1
- package/resources/simulation-persona.d.mts +32 -3
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +32 -3
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-persona.js +2 -3
- package/resources/simulation-persona.js.map +1 -1
- package/resources/simulation-persona.mjs +2 -3
- package/resources/simulation-persona.mjs.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +14 -2
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +14 -2
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.js +7 -0
- package/resources/simulation-run-plan-job.js.map +1 -1
- package/resources/simulation-run-plan-job.mjs +7 -0
- package/resources/simulation-run-plan-job.mjs.map +1 -1
- package/resources/simulation.d.mts +2 -2
- package/resources/simulation.d.ts +2 -2
- package/resources/simulation.js +2 -2
- package/resources/simulation.mjs +2 -2
- package/resources/webhook.d.mts +23 -0
- package/resources/webhook.d.mts.map +1 -1
- package/resources/webhook.d.ts +23 -0
- package/resources/webhook.d.ts.map +1 -1
- package/resources/webhook.js +23 -0
- package/resources/webhook.js.map +1 -1
- package/resources/webhook.mjs +23 -0
- package/resources/webhook.mjs.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/agent-endpoint.ts +26 -0
- package/src/resources/agent.ts +20 -0
- package/src/resources/call.ts +39 -202
- package/src/resources/config.ts +123 -158
- package/src/resources/customer-flow-edge-case.ts +88 -0
- package/src/resources/customer-flow.ts +318 -1009
- package/src/resources/health.ts +5 -0
- package/src/resources/http-request-definition.ts +29 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/metric-collection-job.ts +23 -0
- package/src/resources/metric.ts +5 -18
- package/src/resources/simulation-environment.ts +13 -0
- package/src/resources/simulation-job.ts +16 -4
- package/src/resources/simulation-persona.ts +38 -3
- package/src/resources/simulation-run-plan-job.ts +15 -2
- package/src/resources/simulation.ts +2 -2
- package/src/resources/webhook.ts +23 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/src/resources/config.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as ConfigAPI from './config';
|
|
4
5
|
import { APIPromise } from '../core/api-promise';
|
|
5
6
|
import { RequestOptions } from '../internal/request-options';
|
|
6
7
|
|
|
@@ -10,17 +11,30 @@ export class Config extends APIResource {
|
|
|
10
11
|
* of resources; resources already managed by config are updated, new ones created,
|
|
11
12
|
* and (unless prune is false) config-managed resources absent from the bundle are
|
|
12
13
|
* deleted. Identity is by name — no ids in the bundle.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const response = await client.config.apply({
|
|
18
|
+
* resources: [{ kind: 'agent', name: 'x' }],
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
13
21
|
*/
|
|
14
22
|
apply(body: ConfigApplyParams, options?: RequestOptions): APIPromise<ConfigApplyResponse> {
|
|
15
23
|
return this._client.post('/v1/config/apply', { body, ...options });
|
|
16
24
|
}
|
|
17
25
|
|
|
18
26
|
/**
|
|
19
|
-
* Dry run
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
27
|
+
* Dry run for a config-as-code apply: returns the projected changes (create /
|
|
28
|
+
* update / delete) for the submitted bundle without writing anything. Submit the
|
|
29
|
+
* full desired set of resources; identity is by name — no ids in the bundle. Run
|
|
30
|
+
* this before apply to preview what would change.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const response = await client.config.diff({
|
|
35
|
+
* resources: [{ kind: 'agent', name: 'x' }],
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
24
38
|
*/
|
|
25
39
|
diff(body: ConfigDiffParams, options?: RequestOptions): APIPromise<ConfigDiffResponse> {
|
|
26
40
|
return this._client.post('/v1/config/diff', { body, ...options });
|
|
@@ -29,19 +43,19 @@ export class Config extends APIResource {
|
|
|
29
43
|
|
|
30
44
|
export interface Bundle {
|
|
31
45
|
resources: Array<
|
|
32
|
-
| Bundle.
|
|
33
|
-
| Bundle.
|
|
34
|
-
| Bundle.
|
|
35
|
-
| Bundle.
|
|
36
|
-
| Bundle.
|
|
37
|
-
| Bundle.
|
|
46
|
+
| Bundle.AgentConfig
|
|
47
|
+
| Bundle.PersonaConfig
|
|
48
|
+
| Bundle.ImprovFlowConfig
|
|
49
|
+
| Bundle.ScriptedFlowConfig
|
|
50
|
+
| Bundle.CollectorConfig
|
|
51
|
+
| Bundle.MetricConfig
|
|
38
52
|
>;
|
|
39
53
|
|
|
40
54
|
prune?: boolean;
|
|
41
55
|
}
|
|
42
56
|
|
|
43
57
|
export namespace Bundle {
|
|
44
|
-
export interface
|
|
58
|
+
export interface AgentConfig {
|
|
45
59
|
kind: 'agent';
|
|
46
60
|
|
|
47
61
|
name: string;
|
|
@@ -50,10 +64,10 @@ export namespace Bundle {
|
|
|
50
64
|
|
|
51
65
|
description?: string | null;
|
|
52
66
|
|
|
53
|
-
endpoints?: Array<
|
|
67
|
+
endpoints?: Array<AgentConfig.Endpoint>;
|
|
54
68
|
}
|
|
55
69
|
|
|
56
|
-
export namespace
|
|
70
|
+
export namespace AgentConfig {
|
|
57
71
|
export interface Endpoint {
|
|
58
72
|
direction: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
|
|
59
73
|
|
|
@@ -65,7 +79,7 @@ export namespace Bundle {
|
|
|
65
79
|
}
|
|
66
80
|
}
|
|
67
81
|
|
|
68
|
-
export interface
|
|
82
|
+
export interface PersonaConfig {
|
|
69
83
|
accent:
|
|
70
84
|
| 'US'
|
|
71
85
|
| 'US_X_SOUTH'
|
|
@@ -117,6 +131,8 @@ export namespace Bundle {
|
|
|
117
131
|
|
|
118
132
|
name: string;
|
|
119
133
|
|
|
134
|
+
age?: 'CHILD' | 'TEENAGER' | 'ADULT' | 'ELDERLY';
|
|
135
|
+
|
|
120
136
|
backgroundNoise?:
|
|
121
137
|
| 'NONE'
|
|
122
138
|
| 'AIRPORT'
|
|
@@ -155,7 +171,7 @@ export namespace Bundle {
|
|
|
155
171
|
|
|
156
172
|
responseTiming?: 'RELAXED' | 'NORMAL' | 'QUICK';
|
|
157
173
|
|
|
158
|
-
secondaryLanguage?: 'EN'
|
|
174
|
+
secondaryLanguage?: 'EN';
|
|
159
175
|
|
|
160
176
|
speechClarity?: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
161
177
|
|
|
@@ -183,10 +199,10 @@ export namespace Bundle {
|
|
|
183
199
|
>;
|
|
184
200
|
}
|
|
185
201
|
|
|
186
|
-
export interface
|
|
202
|
+
export interface ImprovFlowConfig {
|
|
187
203
|
agents: Array<string>;
|
|
188
204
|
|
|
189
|
-
happyPath:
|
|
205
|
+
happyPath: ImprovFlowConfig.HappyPath;
|
|
190
206
|
|
|
191
207
|
kind: 'flow';
|
|
192
208
|
|
|
@@ -196,14 +212,14 @@ export namespace Bundle {
|
|
|
196
212
|
|
|
197
213
|
description?: string | null;
|
|
198
214
|
|
|
199
|
-
edgeCases?: Array<
|
|
215
|
+
edgeCases?: Array<ImprovFlowConfig.EdgeCase>;
|
|
200
216
|
|
|
201
217
|
expectations?: Array<string>;
|
|
202
218
|
|
|
203
219
|
title?: string;
|
|
204
220
|
}
|
|
205
221
|
|
|
206
|
-
export namespace
|
|
222
|
+
export namespace ImprovFlowConfig {
|
|
207
223
|
export interface HappyPath {
|
|
208
224
|
environment: string;
|
|
209
225
|
|
|
@@ -231,8 +247,8 @@ export namespace Bundle {
|
|
|
231
247
|
}
|
|
232
248
|
}
|
|
233
249
|
|
|
234
|
-
export interface
|
|
235
|
-
graph: Array<
|
|
250
|
+
export interface ScriptedFlowConfig {
|
|
251
|
+
graph: Array<ConfigAPI.ConfigFlowStep>;
|
|
236
252
|
|
|
237
253
|
kind: 'flow';
|
|
238
254
|
|
|
@@ -251,34 +267,7 @@ export namespace Bundle {
|
|
|
251
267
|
title?: string;
|
|
252
268
|
}
|
|
253
269
|
|
|
254
|
-
export
|
|
255
|
-
export interface Graph {
|
|
256
|
-
type:
|
|
257
|
-
| 'AGENT_TURN'
|
|
258
|
-
| 'CUSTOMER_TURN'
|
|
259
|
-
| 'CUSTOMER_FIRST_MESSAGE'
|
|
260
|
-
| 'CUSTOMER_SILENCE'
|
|
261
|
-
| 'CUSTOMER_DTMF'
|
|
262
|
-
| 'VOICEMAIL'
|
|
263
|
-
| 'SCENARIO_LINK';
|
|
264
|
-
|
|
265
|
-
content?: string;
|
|
266
|
-
|
|
267
|
-
dtmfDigits?: string;
|
|
268
|
-
|
|
269
|
-
flow?: string;
|
|
270
|
-
|
|
271
|
-
mergeInto?: Array<string>;
|
|
272
|
-
|
|
273
|
-
ref?: string;
|
|
274
|
-
|
|
275
|
-
silenceDurationSeconds?: number;
|
|
276
|
-
|
|
277
|
-
steps?: Array<unknown>;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
export interface UnionMember4 {
|
|
270
|
+
export interface CollectorConfig {
|
|
282
271
|
kind: 'collector';
|
|
283
272
|
|
|
284
273
|
metrics: Array<string>;
|
|
@@ -287,12 +276,12 @@ export namespace Bundle {
|
|
|
287
276
|
|
|
288
277
|
name: string;
|
|
289
278
|
|
|
290
|
-
filters?: Array<
|
|
279
|
+
filters?: Array<CollectorConfig.Filter>;
|
|
291
280
|
|
|
292
281
|
status?: 'ACTIVE' | 'INACTIVE';
|
|
293
282
|
}
|
|
294
283
|
|
|
295
|
-
export namespace
|
|
284
|
+
export namespace CollectorConfig {
|
|
296
285
|
export interface Filter {
|
|
297
286
|
conditions: Array<Filter.Condition>;
|
|
298
287
|
}
|
|
@@ -318,7 +307,7 @@ export namespace Bundle {
|
|
|
318
307
|
}
|
|
319
308
|
}
|
|
320
309
|
|
|
321
|
-
export interface
|
|
310
|
+
export interface MetricConfig {
|
|
322
311
|
kind: 'metric';
|
|
323
312
|
|
|
324
313
|
name: string;
|
|
@@ -335,11 +324,11 @@ export namespace Bundle {
|
|
|
335
324
|
|
|
336
325
|
maxSelections?: number;
|
|
337
326
|
|
|
338
|
-
options?: Array<
|
|
327
|
+
options?: Array<MetricConfig.Option>;
|
|
339
328
|
|
|
340
329
|
participantRole?: 'AGENT' | 'CUSTOMER';
|
|
341
330
|
|
|
342
|
-
scaleLabels?: Array<
|
|
331
|
+
scaleLabels?: Array<MetricConfig.ScaleLabel>;
|
|
343
332
|
|
|
344
333
|
scaleMax?: number;
|
|
345
334
|
|
|
@@ -350,7 +339,7 @@ export namespace Bundle {
|
|
|
350
339
|
trueLabel?: string;
|
|
351
340
|
}
|
|
352
341
|
|
|
353
|
-
export namespace
|
|
342
|
+
export namespace MetricConfig {
|
|
354
343
|
export interface Option {
|
|
355
344
|
displayOrder: number;
|
|
356
345
|
|
|
@@ -375,6 +364,31 @@ export namespace Bundle {
|
|
|
375
364
|
}
|
|
376
365
|
}
|
|
377
366
|
|
|
367
|
+
export interface ConfigFlowStep {
|
|
368
|
+
type:
|
|
369
|
+
| 'AGENT_TURN'
|
|
370
|
+
| 'CUSTOMER_TURN'
|
|
371
|
+
| 'CUSTOMER_FIRST_MESSAGE'
|
|
372
|
+
| 'CUSTOMER_SILENCE'
|
|
373
|
+
| 'CUSTOMER_DTMF'
|
|
374
|
+
| 'VOICEMAIL'
|
|
375
|
+
| 'SCENARIO_LINK';
|
|
376
|
+
|
|
377
|
+
content?: string;
|
|
378
|
+
|
|
379
|
+
dtmfDigits?: string;
|
|
380
|
+
|
|
381
|
+
flow?: string;
|
|
382
|
+
|
|
383
|
+
mergeInto?: Array<string>;
|
|
384
|
+
|
|
385
|
+
ref?: string;
|
|
386
|
+
|
|
387
|
+
silenceDurationSeconds?: number;
|
|
388
|
+
|
|
389
|
+
steps?: Array<ConfigAPI.ConfigFlowStep>;
|
|
390
|
+
}
|
|
391
|
+
|
|
378
392
|
export interface ConfigApplyResponse {
|
|
379
393
|
data: ConfigApplyResponse.Data;
|
|
380
394
|
}
|
|
@@ -457,19 +471,19 @@ export namespace ConfigDiffResponse {
|
|
|
457
471
|
|
|
458
472
|
export interface ConfigApplyParams {
|
|
459
473
|
resources: Array<
|
|
460
|
-
| ConfigApplyParams.
|
|
461
|
-
| ConfigApplyParams.
|
|
462
|
-
| ConfigApplyParams.
|
|
463
|
-
| ConfigApplyParams.
|
|
464
|
-
| ConfigApplyParams.
|
|
465
|
-
| ConfigApplyParams.
|
|
474
|
+
| ConfigApplyParams.AgentConfig
|
|
475
|
+
| ConfigApplyParams.PersonaConfig
|
|
476
|
+
| ConfigApplyParams.ImprovFlowConfig
|
|
477
|
+
| ConfigApplyParams.ScriptedFlowConfig
|
|
478
|
+
| ConfigApplyParams.CollectorConfig
|
|
479
|
+
| ConfigApplyParams.MetricConfig
|
|
466
480
|
>;
|
|
467
481
|
|
|
468
482
|
prune?: boolean;
|
|
469
483
|
}
|
|
470
484
|
|
|
471
485
|
export namespace ConfigApplyParams {
|
|
472
|
-
export interface
|
|
486
|
+
export interface AgentConfig {
|
|
473
487
|
kind: 'agent';
|
|
474
488
|
|
|
475
489
|
name: string;
|
|
@@ -478,10 +492,10 @@ export namespace ConfigApplyParams {
|
|
|
478
492
|
|
|
479
493
|
description?: string | null;
|
|
480
494
|
|
|
481
|
-
endpoints?: Array<
|
|
495
|
+
endpoints?: Array<AgentConfig.Endpoint>;
|
|
482
496
|
}
|
|
483
497
|
|
|
484
|
-
export namespace
|
|
498
|
+
export namespace AgentConfig {
|
|
485
499
|
export interface Endpoint {
|
|
486
500
|
direction: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
|
|
487
501
|
|
|
@@ -493,7 +507,7 @@ export namespace ConfigApplyParams {
|
|
|
493
507
|
}
|
|
494
508
|
}
|
|
495
509
|
|
|
496
|
-
export interface
|
|
510
|
+
export interface PersonaConfig {
|
|
497
511
|
accent:
|
|
498
512
|
| 'US'
|
|
499
513
|
| 'US_X_SOUTH'
|
|
@@ -545,6 +559,8 @@ export namespace ConfigApplyParams {
|
|
|
545
559
|
|
|
546
560
|
name: string;
|
|
547
561
|
|
|
562
|
+
age?: 'CHILD' | 'TEENAGER' | 'ADULT' | 'ELDERLY';
|
|
563
|
+
|
|
548
564
|
backgroundNoise?:
|
|
549
565
|
| 'NONE'
|
|
550
566
|
| 'AIRPORT'
|
|
@@ -583,7 +599,7 @@ export namespace ConfigApplyParams {
|
|
|
583
599
|
|
|
584
600
|
responseTiming?: 'RELAXED' | 'NORMAL' | 'QUICK';
|
|
585
601
|
|
|
586
|
-
secondaryLanguage?: 'EN'
|
|
602
|
+
secondaryLanguage?: 'EN';
|
|
587
603
|
|
|
588
604
|
speechClarity?: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
589
605
|
|
|
@@ -611,10 +627,10 @@ export namespace ConfigApplyParams {
|
|
|
611
627
|
>;
|
|
612
628
|
}
|
|
613
629
|
|
|
614
|
-
export interface
|
|
630
|
+
export interface ImprovFlowConfig {
|
|
615
631
|
agents: Array<string>;
|
|
616
632
|
|
|
617
|
-
happyPath:
|
|
633
|
+
happyPath: ImprovFlowConfig.HappyPath;
|
|
618
634
|
|
|
619
635
|
kind: 'flow';
|
|
620
636
|
|
|
@@ -624,14 +640,14 @@ export namespace ConfigApplyParams {
|
|
|
624
640
|
|
|
625
641
|
description?: string | null;
|
|
626
642
|
|
|
627
|
-
edgeCases?: Array<
|
|
643
|
+
edgeCases?: Array<ImprovFlowConfig.EdgeCase>;
|
|
628
644
|
|
|
629
645
|
expectations?: Array<string>;
|
|
630
646
|
|
|
631
647
|
title?: string;
|
|
632
648
|
}
|
|
633
649
|
|
|
634
|
-
export namespace
|
|
650
|
+
export namespace ImprovFlowConfig {
|
|
635
651
|
export interface HappyPath {
|
|
636
652
|
environment: string;
|
|
637
653
|
|
|
@@ -659,8 +675,8 @@ export namespace ConfigApplyParams {
|
|
|
659
675
|
}
|
|
660
676
|
}
|
|
661
677
|
|
|
662
|
-
export interface
|
|
663
|
-
graph: Array<
|
|
678
|
+
export interface ScriptedFlowConfig {
|
|
679
|
+
graph: Array<ConfigFlowStep>;
|
|
664
680
|
|
|
665
681
|
kind: 'flow';
|
|
666
682
|
|
|
@@ -679,34 +695,7 @@ export namespace ConfigApplyParams {
|
|
|
679
695
|
title?: string;
|
|
680
696
|
}
|
|
681
697
|
|
|
682
|
-
export
|
|
683
|
-
export interface Graph {
|
|
684
|
-
type:
|
|
685
|
-
| 'AGENT_TURN'
|
|
686
|
-
| 'CUSTOMER_TURN'
|
|
687
|
-
| 'CUSTOMER_FIRST_MESSAGE'
|
|
688
|
-
| 'CUSTOMER_SILENCE'
|
|
689
|
-
| 'CUSTOMER_DTMF'
|
|
690
|
-
| 'VOICEMAIL'
|
|
691
|
-
| 'SCENARIO_LINK';
|
|
692
|
-
|
|
693
|
-
content?: string;
|
|
694
|
-
|
|
695
|
-
dtmfDigits?: string;
|
|
696
|
-
|
|
697
|
-
flow?: string;
|
|
698
|
-
|
|
699
|
-
mergeInto?: Array<string>;
|
|
700
|
-
|
|
701
|
-
ref?: string;
|
|
702
|
-
|
|
703
|
-
silenceDurationSeconds?: number;
|
|
704
|
-
|
|
705
|
-
steps?: Array<unknown>;
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
export interface UnionMember4 {
|
|
698
|
+
export interface CollectorConfig {
|
|
710
699
|
kind: 'collector';
|
|
711
700
|
|
|
712
701
|
metrics: Array<string>;
|
|
@@ -715,12 +704,12 @@ export namespace ConfigApplyParams {
|
|
|
715
704
|
|
|
716
705
|
name: string;
|
|
717
706
|
|
|
718
|
-
filters?: Array<
|
|
707
|
+
filters?: Array<CollectorConfig.Filter>;
|
|
719
708
|
|
|
720
709
|
status?: 'ACTIVE' | 'INACTIVE';
|
|
721
710
|
}
|
|
722
711
|
|
|
723
|
-
export namespace
|
|
712
|
+
export namespace CollectorConfig {
|
|
724
713
|
export interface Filter {
|
|
725
714
|
conditions: Array<Filter.Condition>;
|
|
726
715
|
}
|
|
@@ -746,7 +735,7 @@ export namespace ConfigApplyParams {
|
|
|
746
735
|
}
|
|
747
736
|
}
|
|
748
737
|
|
|
749
|
-
export interface
|
|
738
|
+
export interface MetricConfig {
|
|
750
739
|
kind: 'metric';
|
|
751
740
|
|
|
752
741
|
name: string;
|
|
@@ -763,11 +752,11 @@ export namespace ConfigApplyParams {
|
|
|
763
752
|
|
|
764
753
|
maxSelections?: number;
|
|
765
754
|
|
|
766
|
-
options?: Array<
|
|
755
|
+
options?: Array<MetricConfig.Option>;
|
|
767
756
|
|
|
768
757
|
participantRole?: 'AGENT' | 'CUSTOMER';
|
|
769
758
|
|
|
770
|
-
scaleLabels?: Array<
|
|
759
|
+
scaleLabels?: Array<MetricConfig.ScaleLabel>;
|
|
771
760
|
|
|
772
761
|
scaleMax?: number;
|
|
773
762
|
|
|
@@ -778,7 +767,7 @@ export namespace ConfigApplyParams {
|
|
|
778
767
|
trueLabel?: string;
|
|
779
768
|
}
|
|
780
769
|
|
|
781
|
-
export namespace
|
|
770
|
+
export namespace MetricConfig {
|
|
782
771
|
export interface Option {
|
|
783
772
|
displayOrder: number;
|
|
784
773
|
|
|
@@ -805,19 +794,19 @@ export namespace ConfigApplyParams {
|
|
|
805
794
|
|
|
806
795
|
export interface ConfigDiffParams {
|
|
807
796
|
resources: Array<
|
|
808
|
-
| ConfigDiffParams.
|
|
809
|
-
| ConfigDiffParams.
|
|
810
|
-
| ConfigDiffParams.
|
|
811
|
-
| ConfigDiffParams.
|
|
812
|
-
| ConfigDiffParams.
|
|
813
|
-
| ConfigDiffParams.
|
|
797
|
+
| ConfigDiffParams.AgentConfig
|
|
798
|
+
| ConfigDiffParams.PersonaConfig
|
|
799
|
+
| ConfigDiffParams.ImprovFlowConfig
|
|
800
|
+
| ConfigDiffParams.ScriptedFlowConfig
|
|
801
|
+
| ConfigDiffParams.CollectorConfig
|
|
802
|
+
| ConfigDiffParams.MetricConfig
|
|
814
803
|
>;
|
|
815
804
|
|
|
816
805
|
prune?: boolean;
|
|
817
806
|
}
|
|
818
807
|
|
|
819
808
|
export namespace ConfigDiffParams {
|
|
820
|
-
export interface
|
|
809
|
+
export interface AgentConfig {
|
|
821
810
|
kind: 'agent';
|
|
822
811
|
|
|
823
812
|
name: string;
|
|
@@ -826,10 +815,10 @@ export namespace ConfigDiffParams {
|
|
|
826
815
|
|
|
827
816
|
description?: string | null;
|
|
828
817
|
|
|
829
|
-
endpoints?: Array<
|
|
818
|
+
endpoints?: Array<AgentConfig.Endpoint>;
|
|
830
819
|
}
|
|
831
820
|
|
|
832
|
-
export namespace
|
|
821
|
+
export namespace AgentConfig {
|
|
833
822
|
export interface Endpoint {
|
|
834
823
|
direction: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
|
|
835
824
|
|
|
@@ -841,7 +830,7 @@ export namespace ConfigDiffParams {
|
|
|
841
830
|
}
|
|
842
831
|
}
|
|
843
832
|
|
|
844
|
-
export interface
|
|
833
|
+
export interface PersonaConfig {
|
|
845
834
|
accent:
|
|
846
835
|
| 'US'
|
|
847
836
|
| 'US_X_SOUTH'
|
|
@@ -893,6 +882,8 @@ export namespace ConfigDiffParams {
|
|
|
893
882
|
|
|
894
883
|
name: string;
|
|
895
884
|
|
|
885
|
+
age?: 'CHILD' | 'TEENAGER' | 'ADULT' | 'ELDERLY';
|
|
886
|
+
|
|
896
887
|
backgroundNoise?:
|
|
897
888
|
| 'NONE'
|
|
898
889
|
| 'AIRPORT'
|
|
@@ -931,7 +922,7 @@ export namespace ConfigDiffParams {
|
|
|
931
922
|
|
|
932
923
|
responseTiming?: 'RELAXED' | 'NORMAL' | 'QUICK';
|
|
933
924
|
|
|
934
|
-
secondaryLanguage?: 'EN'
|
|
925
|
+
secondaryLanguage?: 'EN';
|
|
935
926
|
|
|
936
927
|
speechClarity?: 'CLEAR' | 'VAGUE' | 'RAMBLING';
|
|
937
928
|
|
|
@@ -959,10 +950,10 @@ export namespace ConfigDiffParams {
|
|
|
959
950
|
>;
|
|
960
951
|
}
|
|
961
952
|
|
|
962
|
-
export interface
|
|
953
|
+
export interface ImprovFlowConfig {
|
|
963
954
|
agents: Array<string>;
|
|
964
955
|
|
|
965
|
-
happyPath:
|
|
956
|
+
happyPath: ImprovFlowConfig.HappyPath;
|
|
966
957
|
|
|
967
958
|
kind: 'flow';
|
|
968
959
|
|
|
@@ -972,14 +963,14 @@ export namespace ConfigDiffParams {
|
|
|
972
963
|
|
|
973
964
|
description?: string | null;
|
|
974
965
|
|
|
975
|
-
edgeCases?: Array<
|
|
966
|
+
edgeCases?: Array<ImprovFlowConfig.EdgeCase>;
|
|
976
967
|
|
|
977
968
|
expectations?: Array<string>;
|
|
978
969
|
|
|
979
970
|
title?: string;
|
|
980
971
|
}
|
|
981
972
|
|
|
982
|
-
export namespace
|
|
973
|
+
export namespace ImprovFlowConfig {
|
|
983
974
|
export interface HappyPath {
|
|
984
975
|
environment: string;
|
|
985
976
|
|
|
@@ -1007,8 +998,8 @@ export namespace ConfigDiffParams {
|
|
|
1007
998
|
}
|
|
1008
999
|
}
|
|
1009
1000
|
|
|
1010
|
-
export interface
|
|
1011
|
-
graph: Array<
|
|
1001
|
+
export interface ScriptedFlowConfig {
|
|
1002
|
+
graph: Array<ConfigFlowStep>;
|
|
1012
1003
|
|
|
1013
1004
|
kind: 'flow';
|
|
1014
1005
|
|
|
@@ -1027,34 +1018,7 @@ export namespace ConfigDiffParams {
|
|
|
1027
1018
|
title?: string;
|
|
1028
1019
|
}
|
|
1029
1020
|
|
|
1030
|
-
export
|
|
1031
|
-
export interface Graph {
|
|
1032
|
-
type:
|
|
1033
|
-
| 'AGENT_TURN'
|
|
1034
|
-
| 'CUSTOMER_TURN'
|
|
1035
|
-
| 'CUSTOMER_FIRST_MESSAGE'
|
|
1036
|
-
| 'CUSTOMER_SILENCE'
|
|
1037
|
-
| 'CUSTOMER_DTMF'
|
|
1038
|
-
| 'VOICEMAIL'
|
|
1039
|
-
| 'SCENARIO_LINK';
|
|
1040
|
-
|
|
1041
|
-
content?: string;
|
|
1042
|
-
|
|
1043
|
-
dtmfDigits?: string;
|
|
1044
|
-
|
|
1045
|
-
flow?: string;
|
|
1046
|
-
|
|
1047
|
-
mergeInto?: Array<string>;
|
|
1048
|
-
|
|
1049
|
-
ref?: string;
|
|
1050
|
-
|
|
1051
|
-
silenceDurationSeconds?: number;
|
|
1052
|
-
|
|
1053
|
-
steps?: Array<unknown>;
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
export interface UnionMember4 {
|
|
1021
|
+
export interface CollectorConfig {
|
|
1058
1022
|
kind: 'collector';
|
|
1059
1023
|
|
|
1060
1024
|
metrics: Array<string>;
|
|
@@ -1063,12 +1027,12 @@ export namespace ConfigDiffParams {
|
|
|
1063
1027
|
|
|
1064
1028
|
name: string;
|
|
1065
1029
|
|
|
1066
|
-
filters?: Array<
|
|
1030
|
+
filters?: Array<CollectorConfig.Filter>;
|
|
1067
1031
|
|
|
1068
1032
|
status?: 'ACTIVE' | 'INACTIVE';
|
|
1069
1033
|
}
|
|
1070
1034
|
|
|
1071
|
-
export namespace
|
|
1035
|
+
export namespace CollectorConfig {
|
|
1072
1036
|
export interface Filter {
|
|
1073
1037
|
conditions: Array<Filter.Condition>;
|
|
1074
1038
|
}
|
|
@@ -1094,7 +1058,7 @@ export namespace ConfigDiffParams {
|
|
|
1094
1058
|
}
|
|
1095
1059
|
}
|
|
1096
1060
|
|
|
1097
|
-
export interface
|
|
1061
|
+
export interface MetricConfig {
|
|
1098
1062
|
kind: 'metric';
|
|
1099
1063
|
|
|
1100
1064
|
name: string;
|
|
@@ -1111,11 +1075,11 @@ export namespace ConfigDiffParams {
|
|
|
1111
1075
|
|
|
1112
1076
|
maxSelections?: number;
|
|
1113
1077
|
|
|
1114
|
-
options?: Array<
|
|
1078
|
+
options?: Array<MetricConfig.Option>;
|
|
1115
1079
|
|
|
1116
1080
|
participantRole?: 'AGENT' | 'CUSTOMER';
|
|
1117
1081
|
|
|
1118
|
-
scaleLabels?: Array<
|
|
1082
|
+
scaleLabels?: Array<MetricConfig.ScaleLabel>;
|
|
1119
1083
|
|
|
1120
1084
|
scaleMax?: number;
|
|
1121
1085
|
|
|
@@ -1126,7 +1090,7 @@ export namespace ConfigDiffParams {
|
|
|
1126
1090
|
trueLabel?: string;
|
|
1127
1091
|
}
|
|
1128
1092
|
|
|
1129
|
-
export namespace
|
|
1093
|
+
export namespace MetricConfig {
|
|
1130
1094
|
export interface Option {
|
|
1131
1095
|
displayOrder: number;
|
|
1132
1096
|
|
|
@@ -1154,6 +1118,7 @@ export namespace ConfigDiffParams {
|
|
|
1154
1118
|
export declare namespace Config {
|
|
1155
1119
|
export {
|
|
1156
1120
|
type Bundle as Bundle,
|
|
1121
|
+
type ConfigFlowStep as ConfigFlowStep,
|
|
1157
1122
|
type ConfigApplyResponse as ConfigApplyResponse,
|
|
1158
1123
|
type ConfigDiffResponse as ConfigDiffResponse,
|
|
1159
1124
|
type ConfigApplyParams as ConfigApplyParams,
|