@roarkanalytics/sdk 3.10.0 → 3.12.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 +36 -0
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-prompt.d.mts +129 -0
- package/resources/agent-prompt.d.mts.map +1 -0
- package/resources/agent-prompt.d.ts +129 -0
- package/resources/agent-prompt.d.ts.map +1 -0
- package/resources/agent-prompt.js +58 -0
- package/resources/agent-prompt.js.map +1 -0
- package/resources/agent-prompt.mjs +54 -0
- package/resources/agent-prompt.mjs.map +1 -0
- package/resources/call.d.mts +1 -1
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +1 -1
- package/resources/call.d.ts.map +1 -1
- package/resources/config.d.mts +166 -18
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +166 -18
- package/resources/config.d.ts.map +1 -1
- package/resources/customer-flow-edge-case.d.mts +72 -9
- package/resources/customer-flow-edge-case.d.mts.map +1 -1
- package/resources/customer-flow-edge-case.d.ts +72 -9
- package/resources/customer-flow-edge-case.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +2005 -78
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +2005 -78
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/customer-flow.js +18 -0
- package/resources/customer-flow.js.map +1 -1
- package/resources/customer-flow.mjs +18 -0
- package/resources/customer-flow.mjs.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/simulation-environment.d.mts +163 -1
- package/resources/simulation-environment.d.mts.map +1 -1
- package/resources/simulation-environment.d.ts +163 -1
- package/resources/simulation-environment.d.ts.map +1 -1
- package/resources/simulation-environment.js +51 -0
- package/resources/simulation-environment.js.map +1 -1
- package/resources/simulation-environment.mjs +51 -0
- package/resources/simulation-environment.mjs.map +1 -1
- package/resources/simulation-job.d.mts +62 -2
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +62 -2
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-persona.d.mts +42 -6
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +42 -6
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +31 -1
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +31 -1
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan.d.mts +154 -12
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +154 -12
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation-template.d.mts +10 -0
- package/resources/simulation-template.d.mts.map +1 -1
- package/resources/simulation-template.d.ts +10 -0
- package/resources/simulation-template.d.ts.map +1 -1
- package/resources/simulation.d.mts +221 -6
- package/resources/simulation.d.mts.map +1 -1
- package/resources/simulation.d.ts +221 -6
- package/resources/simulation.d.ts.map +1 -1
- package/resources/simulation.js +10 -3
- package/resources/simulation.js.map +1 -1
- package/resources/simulation.mjs +10 -3
- package/resources/simulation.mjs.map +1 -1
- package/src/client.ts +33 -0
- package/src/resources/agent-prompt.ts +183 -0
- package/src/resources/call.ts +1 -1
- package/src/resources/config.ts +310 -20
- package/src/resources/customer-flow-edge-case.ts +180 -9
- package/src/resources/customer-flow.ts +3091 -63
- package/src/resources/index.ts +15 -0
- package/src/resources/simulation-environment.ts +244 -0
- package/src/resources/simulation-job.ts +92 -2
- package/src/resources/simulation-persona.ts +108 -6
- package/src/resources/simulation-run-plan-job.ts +39 -1
- package/src/resources/simulation-run-plan.ts +176 -12
- package/src/resources/simulation-template.ts +11 -0
- package/src/resources/simulation.ts +247 -6
- 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/src/resources/config.ts
CHANGED
|
@@ -49,6 +49,7 @@ export interface Bundle {
|
|
|
49
49
|
| Bundle.ScriptedFlowConfig
|
|
50
50
|
| Bundle.CollectorConfig
|
|
51
51
|
| Bundle.MetricConfig
|
|
52
|
+
| Bundle.SimulationPlanConfig
|
|
52
53
|
| Bundle.AlertConfig
|
|
53
54
|
>;
|
|
54
55
|
|
|
@@ -65,18 +66,22 @@ export namespace Bundle {
|
|
|
65
66
|
|
|
66
67
|
description?: string | null;
|
|
67
68
|
|
|
69
|
+
displayName?: string;
|
|
70
|
+
|
|
68
71
|
endpoints?: Array<AgentConfig.Endpoint>;
|
|
72
|
+
|
|
73
|
+
prompt?: string | null;
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
export namespace AgentConfig {
|
|
72
77
|
export interface Endpoint {
|
|
73
|
-
direction: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
|
|
74
|
-
|
|
75
|
-
name: string;
|
|
76
|
-
|
|
77
78
|
value: string;
|
|
78
79
|
|
|
80
|
+
direction?: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
|
|
81
|
+
|
|
79
82
|
environment?: string;
|
|
83
|
+
|
|
84
|
+
type?: 'PHONE' | 'WEBSOCKET';
|
|
80
85
|
}
|
|
81
86
|
}
|
|
82
87
|
|
|
@@ -146,7 +151,17 @@ export namespace Bundle {
|
|
|
146
151
|
|
|
147
152
|
backstoryPrompt?: string | null;
|
|
148
153
|
|
|
149
|
-
baseEmotion?:
|
|
154
|
+
baseEmotion?:
|
|
155
|
+
| 'NEUTRAL'
|
|
156
|
+
| 'CHEERFUL'
|
|
157
|
+
| 'CONFUSED'
|
|
158
|
+
| 'FRUSTRATED'
|
|
159
|
+
| 'SKEPTICAL'
|
|
160
|
+
| 'RUSHED'
|
|
161
|
+
| 'DISTRACTED'
|
|
162
|
+
| 'ANGRY'
|
|
163
|
+
| 'ANXIOUS'
|
|
164
|
+
| 'SAD';
|
|
150
165
|
|
|
151
166
|
confirmationStyle?: 'EXPLICIT' | 'VAGUE';
|
|
152
167
|
|
|
@@ -257,6 +272,8 @@ export namespace Bundle {
|
|
|
257
272
|
|
|
258
273
|
type: 'scripted';
|
|
259
274
|
|
|
275
|
+
adherence?: 'LOOSE' | 'STRICT';
|
|
276
|
+
|
|
260
277
|
agents?: Array<string>;
|
|
261
278
|
|
|
262
279
|
branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
@@ -265,9 +282,25 @@ export namespace Bundle {
|
|
|
265
282
|
|
|
266
283
|
expectations?: Array<string>;
|
|
267
284
|
|
|
285
|
+
offScript?: ScriptedFlowConfig.OffScript;
|
|
286
|
+
|
|
268
287
|
title?: string;
|
|
269
288
|
}
|
|
270
289
|
|
|
290
|
+
export namespace ScriptedFlowConfig {
|
|
291
|
+
export interface OffScript {
|
|
292
|
+
maxAttempts?: number;
|
|
293
|
+
|
|
294
|
+
reaction?: 'STAY_SILENT' | 'REPEAT' | 'RESPOND' | 'SAY';
|
|
295
|
+
|
|
296
|
+
sayLine?: string;
|
|
297
|
+
|
|
298
|
+
then?: 'HANG_UP' | 'MOVE_ON' | 'ADAPT' | 'HANG_UP_INVALIDATE';
|
|
299
|
+
|
|
300
|
+
waitSeconds?: number;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
271
304
|
export interface CollectorConfig {
|
|
272
305
|
kind: 'collector';
|
|
273
306
|
|
|
@@ -364,6 +397,64 @@ export namespace Bundle {
|
|
|
364
397
|
}
|
|
365
398
|
}
|
|
366
399
|
|
|
400
|
+
export interface SimulationPlanConfig {
|
|
401
|
+
agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
|
|
402
|
+
|
|
403
|
+
direction: 'INBOUND' | 'OUTBOUND';
|
|
404
|
+
|
|
405
|
+
flows: Array<SimulationPlanConfig.Flow>;
|
|
406
|
+
|
|
407
|
+
kind: 'simulationPlan';
|
|
408
|
+
|
|
409
|
+
maxDurationSeconds: number;
|
|
410
|
+
|
|
411
|
+
metrics: Array<string>;
|
|
412
|
+
|
|
413
|
+
name: string;
|
|
414
|
+
|
|
415
|
+
description?: string | null;
|
|
416
|
+
|
|
417
|
+
endCallPhrases?: Array<string>;
|
|
418
|
+
|
|
419
|
+
endCallReasons?: Array<string>;
|
|
420
|
+
|
|
421
|
+
enrichWithLiveConversation?: boolean;
|
|
422
|
+
|
|
423
|
+
executionMode?: 'PARALLEL' | 'SEQUENTIAL_SAME_RUN_PLAN' | 'SEQUENTIAL_PROJECT';
|
|
424
|
+
|
|
425
|
+
includeAutomaticMetrics?: boolean;
|
|
426
|
+
|
|
427
|
+
includeFlowMetrics?: boolean;
|
|
428
|
+
|
|
429
|
+
iterations?: number;
|
|
430
|
+
|
|
431
|
+
maxConcurrentJobs?: number;
|
|
432
|
+
|
|
433
|
+
silenceTimeoutSeconds?: number;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export namespace SimulationPlanConfig {
|
|
437
|
+
export interface AgentEndpoint {
|
|
438
|
+
agent: string;
|
|
439
|
+
|
|
440
|
+
direction?: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
|
|
441
|
+
|
|
442
|
+
value?: string;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export interface Flow {
|
|
446
|
+
edgeCases?: Array<string>;
|
|
447
|
+
|
|
448
|
+
flow?: string;
|
|
449
|
+
|
|
450
|
+
happyPath?: boolean;
|
|
451
|
+
|
|
452
|
+
personaOverride?: string;
|
|
453
|
+
|
|
454
|
+
system?: string;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
367
458
|
export interface AlertConfig {
|
|
368
459
|
kind: 'alert';
|
|
369
460
|
|
|
@@ -435,7 +526,7 @@ export namespace Bundle {
|
|
|
435
526
|
|
|
436
527
|
deliveryFormat?: 'MESSAGE' | 'PDF';
|
|
437
528
|
|
|
438
|
-
|
|
529
|
+
plan?: string;
|
|
439
530
|
}
|
|
440
531
|
|
|
441
532
|
export interface Actions {
|
|
@@ -459,6 +550,7 @@ export interface ConfigFlowStep {
|
|
|
459
550
|
| 'AGENT_TURN'
|
|
460
551
|
| 'CUSTOMER_TURN'
|
|
461
552
|
| 'CUSTOMER_FIRST_MESSAGE'
|
|
553
|
+
| 'CUSTOMER_VERBATIM_TURN'
|
|
462
554
|
| 'CUSTOMER_SILENCE'
|
|
463
555
|
| 'CUSTOMER_DTMF'
|
|
464
556
|
| 'AGENT_DTMF'
|
|
@@ -473,6 +565,8 @@ export interface ConfigFlowStep {
|
|
|
473
565
|
|
|
474
566
|
mergeInto?: Array<string>;
|
|
475
567
|
|
|
568
|
+
offScript?: ConfigFlowStep.OffScript;
|
|
569
|
+
|
|
476
570
|
ref?: string;
|
|
477
571
|
|
|
478
572
|
silenceDurationSeconds?: number;
|
|
@@ -480,6 +574,20 @@ export interface ConfigFlowStep {
|
|
|
480
574
|
steps?: Array<ConfigAPI.ConfigFlowStep>;
|
|
481
575
|
}
|
|
482
576
|
|
|
577
|
+
export namespace ConfigFlowStep {
|
|
578
|
+
export interface OffScript {
|
|
579
|
+
maxAttempts?: number;
|
|
580
|
+
|
|
581
|
+
reaction?: 'STAY_SILENT' | 'REPEAT' | 'RESPOND' | 'SAY';
|
|
582
|
+
|
|
583
|
+
sayLine?: string;
|
|
584
|
+
|
|
585
|
+
then?: 'HANG_UP' | 'MOVE_ON' | 'ADAPT' | 'HANG_UP_INVALIDATE';
|
|
586
|
+
|
|
587
|
+
waitSeconds?: number;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
483
591
|
export interface ConfigApplyResponse {
|
|
484
592
|
data: ConfigApplyResponse.Data;
|
|
485
593
|
}
|
|
@@ -495,7 +603,7 @@ export namespace ConfigApplyResponse {
|
|
|
495
603
|
export interface Change {
|
|
496
604
|
configKey: string;
|
|
497
605
|
|
|
498
|
-
kind: 'agent' | 'persona' | 'flow' | 'collector' | 'metric' | 'alert';
|
|
606
|
+
kind: 'agent' | 'persona' | 'flow' | 'collector' | 'metric' | 'simulationPlan' | 'alert';
|
|
499
607
|
|
|
500
608
|
name: string;
|
|
501
609
|
|
|
@@ -539,7 +647,7 @@ export namespace ConfigDiffResponse {
|
|
|
539
647
|
export interface Change {
|
|
540
648
|
configKey: string;
|
|
541
649
|
|
|
542
|
-
kind: 'agent' | 'persona' | 'flow' | 'collector' | 'metric' | 'alert';
|
|
650
|
+
kind: 'agent' | 'persona' | 'flow' | 'collector' | 'metric' | 'simulationPlan' | 'alert';
|
|
543
651
|
|
|
544
652
|
name: string;
|
|
545
653
|
|
|
@@ -568,6 +676,7 @@ export interface ConfigApplyParams {
|
|
|
568
676
|
| ConfigApplyParams.ScriptedFlowConfig
|
|
569
677
|
| ConfigApplyParams.CollectorConfig
|
|
570
678
|
| ConfigApplyParams.MetricConfig
|
|
679
|
+
| ConfigApplyParams.SimulationPlanConfig
|
|
571
680
|
| ConfigApplyParams.AlertConfig
|
|
572
681
|
>;
|
|
573
682
|
|
|
@@ -584,18 +693,22 @@ export namespace ConfigApplyParams {
|
|
|
584
693
|
|
|
585
694
|
description?: string | null;
|
|
586
695
|
|
|
696
|
+
displayName?: string;
|
|
697
|
+
|
|
587
698
|
endpoints?: Array<AgentConfig.Endpoint>;
|
|
699
|
+
|
|
700
|
+
prompt?: string | null;
|
|
588
701
|
}
|
|
589
702
|
|
|
590
703
|
export namespace AgentConfig {
|
|
591
704
|
export interface Endpoint {
|
|
592
|
-
direction: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
|
|
593
|
-
|
|
594
|
-
name: string;
|
|
595
|
-
|
|
596
705
|
value: string;
|
|
597
706
|
|
|
707
|
+
direction?: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
|
|
708
|
+
|
|
598
709
|
environment?: string;
|
|
710
|
+
|
|
711
|
+
type?: 'PHONE' | 'WEBSOCKET';
|
|
599
712
|
}
|
|
600
713
|
}
|
|
601
714
|
|
|
@@ -665,7 +778,17 @@ export namespace ConfigApplyParams {
|
|
|
665
778
|
|
|
666
779
|
backstoryPrompt?: string | null;
|
|
667
780
|
|
|
668
|
-
baseEmotion?:
|
|
781
|
+
baseEmotion?:
|
|
782
|
+
| 'NEUTRAL'
|
|
783
|
+
| 'CHEERFUL'
|
|
784
|
+
| 'CONFUSED'
|
|
785
|
+
| 'FRUSTRATED'
|
|
786
|
+
| 'SKEPTICAL'
|
|
787
|
+
| 'RUSHED'
|
|
788
|
+
| 'DISTRACTED'
|
|
789
|
+
| 'ANGRY'
|
|
790
|
+
| 'ANXIOUS'
|
|
791
|
+
| 'SAD';
|
|
669
792
|
|
|
670
793
|
confirmationStyle?: 'EXPLICIT' | 'VAGUE';
|
|
671
794
|
|
|
@@ -776,6 +899,8 @@ export namespace ConfigApplyParams {
|
|
|
776
899
|
|
|
777
900
|
type: 'scripted';
|
|
778
901
|
|
|
902
|
+
adherence?: 'LOOSE' | 'STRICT';
|
|
903
|
+
|
|
779
904
|
agents?: Array<string>;
|
|
780
905
|
|
|
781
906
|
branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
@@ -784,9 +909,25 @@ export namespace ConfigApplyParams {
|
|
|
784
909
|
|
|
785
910
|
expectations?: Array<string>;
|
|
786
911
|
|
|
912
|
+
offScript?: ScriptedFlowConfig.OffScript;
|
|
913
|
+
|
|
787
914
|
title?: string;
|
|
788
915
|
}
|
|
789
916
|
|
|
917
|
+
export namespace ScriptedFlowConfig {
|
|
918
|
+
export interface OffScript {
|
|
919
|
+
maxAttempts?: number;
|
|
920
|
+
|
|
921
|
+
reaction?: 'STAY_SILENT' | 'REPEAT' | 'RESPOND' | 'SAY';
|
|
922
|
+
|
|
923
|
+
sayLine?: string;
|
|
924
|
+
|
|
925
|
+
then?: 'HANG_UP' | 'MOVE_ON' | 'ADAPT' | 'HANG_UP_INVALIDATE';
|
|
926
|
+
|
|
927
|
+
waitSeconds?: number;
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
|
|
790
931
|
export interface CollectorConfig {
|
|
791
932
|
kind: 'collector';
|
|
792
933
|
|
|
@@ -883,6 +1024,64 @@ export namespace ConfigApplyParams {
|
|
|
883
1024
|
}
|
|
884
1025
|
}
|
|
885
1026
|
|
|
1027
|
+
export interface SimulationPlanConfig {
|
|
1028
|
+
agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
|
|
1029
|
+
|
|
1030
|
+
direction: 'INBOUND' | 'OUTBOUND';
|
|
1031
|
+
|
|
1032
|
+
flows: Array<SimulationPlanConfig.Flow>;
|
|
1033
|
+
|
|
1034
|
+
kind: 'simulationPlan';
|
|
1035
|
+
|
|
1036
|
+
maxDurationSeconds: number;
|
|
1037
|
+
|
|
1038
|
+
metrics: Array<string>;
|
|
1039
|
+
|
|
1040
|
+
name: string;
|
|
1041
|
+
|
|
1042
|
+
description?: string | null;
|
|
1043
|
+
|
|
1044
|
+
endCallPhrases?: Array<string>;
|
|
1045
|
+
|
|
1046
|
+
endCallReasons?: Array<string>;
|
|
1047
|
+
|
|
1048
|
+
enrichWithLiveConversation?: boolean;
|
|
1049
|
+
|
|
1050
|
+
executionMode?: 'PARALLEL' | 'SEQUENTIAL_SAME_RUN_PLAN' | 'SEQUENTIAL_PROJECT';
|
|
1051
|
+
|
|
1052
|
+
includeAutomaticMetrics?: boolean;
|
|
1053
|
+
|
|
1054
|
+
includeFlowMetrics?: boolean;
|
|
1055
|
+
|
|
1056
|
+
iterations?: number;
|
|
1057
|
+
|
|
1058
|
+
maxConcurrentJobs?: number;
|
|
1059
|
+
|
|
1060
|
+
silenceTimeoutSeconds?: number;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
export namespace SimulationPlanConfig {
|
|
1064
|
+
export interface AgentEndpoint {
|
|
1065
|
+
agent: string;
|
|
1066
|
+
|
|
1067
|
+
direction?: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
|
|
1068
|
+
|
|
1069
|
+
value?: string;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
export interface Flow {
|
|
1073
|
+
edgeCases?: Array<string>;
|
|
1074
|
+
|
|
1075
|
+
flow?: string;
|
|
1076
|
+
|
|
1077
|
+
happyPath?: boolean;
|
|
1078
|
+
|
|
1079
|
+
personaOverride?: string;
|
|
1080
|
+
|
|
1081
|
+
system?: string;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
|
|
886
1085
|
export interface AlertConfig {
|
|
887
1086
|
kind: 'alert';
|
|
888
1087
|
|
|
@@ -954,7 +1153,7 @@ export namespace ConfigApplyParams {
|
|
|
954
1153
|
|
|
955
1154
|
deliveryFormat?: 'MESSAGE' | 'PDF';
|
|
956
1155
|
|
|
957
|
-
|
|
1156
|
+
plan?: string;
|
|
958
1157
|
}
|
|
959
1158
|
|
|
960
1159
|
export interface Actions {
|
|
@@ -981,6 +1180,7 @@ export interface ConfigDiffParams {
|
|
|
981
1180
|
| ConfigDiffParams.ScriptedFlowConfig
|
|
982
1181
|
| ConfigDiffParams.CollectorConfig
|
|
983
1182
|
| ConfigDiffParams.MetricConfig
|
|
1183
|
+
| ConfigDiffParams.SimulationPlanConfig
|
|
984
1184
|
| ConfigDiffParams.AlertConfig
|
|
985
1185
|
>;
|
|
986
1186
|
|
|
@@ -997,18 +1197,22 @@ export namespace ConfigDiffParams {
|
|
|
997
1197
|
|
|
998
1198
|
description?: string | null;
|
|
999
1199
|
|
|
1200
|
+
displayName?: string;
|
|
1201
|
+
|
|
1000
1202
|
endpoints?: Array<AgentConfig.Endpoint>;
|
|
1203
|
+
|
|
1204
|
+
prompt?: string | null;
|
|
1001
1205
|
}
|
|
1002
1206
|
|
|
1003
1207
|
export namespace AgentConfig {
|
|
1004
1208
|
export interface Endpoint {
|
|
1005
|
-
direction: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
|
|
1006
|
-
|
|
1007
|
-
name: string;
|
|
1008
|
-
|
|
1009
1209
|
value: string;
|
|
1010
1210
|
|
|
1211
|
+
direction?: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
|
|
1212
|
+
|
|
1011
1213
|
environment?: string;
|
|
1214
|
+
|
|
1215
|
+
type?: 'PHONE' | 'WEBSOCKET';
|
|
1012
1216
|
}
|
|
1013
1217
|
}
|
|
1014
1218
|
|
|
@@ -1078,7 +1282,17 @@ export namespace ConfigDiffParams {
|
|
|
1078
1282
|
|
|
1079
1283
|
backstoryPrompt?: string | null;
|
|
1080
1284
|
|
|
1081
|
-
baseEmotion?:
|
|
1285
|
+
baseEmotion?:
|
|
1286
|
+
| 'NEUTRAL'
|
|
1287
|
+
| 'CHEERFUL'
|
|
1288
|
+
| 'CONFUSED'
|
|
1289
|
+
| 'FRUSTRATED'
|
|
1290
|
+
| 'SKEPTICAL'
|
|
1291
|
+
| 'RUSHED'
|
|
1292
|
+
| 'DISTRACTED'
|
|
1293
|
+
| 'ANGRY'
|
|
1294
|
+
| 'ANXIOUS'
|
|
1295
|
+
| 'SAD';
|
|
1082
1296
|
|
|
1083
1297
|
confirmationStyle?: 'EXPLICIT' | 'VAGUE';
|
|
1084
1298
|
|
|
@@ -1189,6 +1403,8 @@ export namespace ConfigDiffParams {
|
|
|
1189
1403
|
|
|
1190
1404
|
type: 'scripted';
|
|
1191
1405
|
|
|
1406
|
+
adherence?: 'LOOSE' | 'STRICT';
|
|
1407
|
+
|
|
1192
1408
|
agents?: Array<string>;
|
|
1193
1409
|
|
|
1194
1410
|
branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
@@ -1197,9 +1413,25 @@ export namespace ConfigDiffParams {
|
|
|
1197
1413
|
|
|
1198
1414
|
expectations?: Array<string>;
|
|
1199
1415
|
|
|
1416
|
+
offScript?: ScriptedFlowConfig.OffScript;
|
|
1417
|
+
|
|
1200
1418
|
title?: string;
|
|
1201
1419
|
}
|
|
1202
1420
|
|
|
1421
|
+
export namespace ScriptedFlowConfig {
|
|
1422
|
+
export interface OffScript {
|
|
1423
|
+
maxAttempts?: number;
|
|
1424
|
+
|
|
1425
|
+
reaction?: 'STAY_SILENT' | 'REPEAT' | 'RESPOND' | 'SAY';
|
|
1426
|
+
|
|
1427
|
+
sayLine?: string;
|
|
1428
|
+
|
|
1429
|
+
then?: 'HANG_UP' | 'MOVE_ON' | 'ADAPT' | 'HANG_UP_INVALIDATE';
|
|
1430
|
+
|
|
1431
|
+
waitSeconds?: number;
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1203
1435
|
export interface CollectorConfig {
|
|
1204
1436
|
kind: 'collector';
|
|
1205
1437
|
|
|
@@ -1296,6 +1528,64 @@ export namespace ConfigDiffParams {
|
|
|
1296
1528
|
}
|
|
1297
1529
|
}
|
|
1298
1530
|
|
|
1531
|
+
export interface SimulationPlanConfig {
|
|
1532
|
+
agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
|
|
1533
|
+
|
|
1534
|
+
direction: 'INBOUND' | 'OUTBOUND';
|
|
1535
|
+
|
|
1536
|
+
flows: Array<SimulationPlanConfig.Flow>;
|
|
1537
|
+
|
|
1538
|
+
kind: 'simulationPlan';
|
|
1539
|
+
|
|
1540
|
+
maxDurationSeconds: number;
|
|
1541
|
+
|
|
1542
|
+
metrics: Array<string>;
|
|
1543
|
+
|
|
1544
|
+
name: string;
|
|
1545
|
+
|
|
1546
|
+
description?: string | null;
|
|
1547
|
+
|
|
1548
|
+
endCallPhrases?: Array<string>;
|
|
1549
|
+
|
|
1550
|
+
endCallReasons?: Array<string>;
|
|
1551
|
+
|
|
1552
|
+
enrichWithLiveConversation?: boolean;
|
|
1553
|
+
|
|
1554
|
+
executionMode?: 'PARALLEL' | 'SEQUENTIAL_SAME_RUN_PLAN' | 'SEQUENTIAL_PROJECT';
|
|
1555
|
+
|
|
1556
|
+
includeAutomaticMetrics?: boolean;
|
|
1557
|
+
|
|
1558
|
+
includeFlowMetrics?: boolean;
|
|
1559
|
+
|
|
1560
|
+
iterations?: number;
|
|
1561
|
+
|
|
1562
|
+
maxConcurrentJobs?: number;
|
|
1563
|
+
|
|
1564
|
+
silenceTimeoutSeconds?: number;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
export namespace SimulationPlanConfig {
|
|
1568
|
+
export interface AgentEndpoint {
|
|
1569
|
+
agent: string;
|
|
1570
|
+
|
|
1571
|
+
direction?: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
|
|
1572
|
+
|
|
1573
|
+
value?: string;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
export interface Flow {
|
|
1577
|
+
edgeCases?: Array<string>;
|
|
1578
|
+
|
|
1579
|
+
flow?: string;
|
|
1580
|
+
|
|
1581
|
+
happyPath?: boolean;
|
|
1582
|
+
|
|
1583
|
+
personaOverride?: string;
|
|
1584
|
+
|
|
1585
|
+
system?: string;
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1299
1589
|
export interface AlertConfig {
|
|
1300
1590
|
kind: 'alert';
|
|
1301
1591
|
|
|
@@ -1367,7 +1657,7 @@ export namespace ConfigDiffParams {
|
|
|
1367
1657
|
|
|
1368
1658
|
deliveryFormat?: 'MESSAGE' | 'PDF';
|
|
1369
1659
|
|
|
1370
|
-
|
|
1660
|
+
plan?: string;
|
|
1371
1661
|
}
|
|
1372
1662
|
|
|
1373
1663
|
export interface Actions {
|