@roarkanalytics/sdk 6.2.0 → 7.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 +28 -0
- package/client.d.mts +9 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -0
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/lib/config.d.mts +12 -0
- package/lib/config.d.mts.map +1 -1
- package/lib/config.d.ts +12 -0
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +11 -1
- package/lib/config.js.map +1 -1
- package/lib/config.mjs +9 -0
- package/lib/config.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/calendar-connection.d.mts +897 -0
- package/resources/calendar-connection.d.mts.map +1 -0
- package/resources/calendar-connection.d.ts +897 -0
- package/resources/calendar-connection.d.ts.map +1 -0
- package/resources/calendar-connection.js +143 -0
- package/resources/calendar-connection.js.map +1 -0
- package/resources/calendar-connection.mjs +139 -0
- package/resources/calendar-connection.mjs.map +1 -0
- package/resources/call.d.mts +2 -0
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +2 -0
- package/resources/call.d.ts.map +1 -1
- package/resources/config.d.mts +508 -27
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +508 -27
- package/resources/config.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +49 -9
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +49 -9
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/http-request-definition.d.mts +4 -4
- package/resources/http-request-definition.d.mts.map +1 -1
- package/resources/http-request-definition.d.ts +4 -4
- package/resources/http-request-definition.d.ts.map +1 -1
- package/resources/index.d.mts +3 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/metric-variant.d.mts +6 -0
- package/resources/metric-variant.d.mts.map +1 -1
- package/resources/metric-variant.d.ts +6 -0
- package/resources/metric-variant.d.ts.map +1 -1
- package/resources/metric.d.mts +93 -0
- package/resources/metric.d.mts.map +1 -1
- package/resources/metric.d.ts +93 -0
- package/resources/metric.d.ts.map +1 -1
- package/resources/simulation-audio-clip.d.mts +44 -0
- package/resources/simulation-audio-clip.d.mts.map +1 -0
- package/resources/simulation-audio-clip.d.ts +44 -0
- package/resources/simulation-audio-clip.d.ts.map +1 -0
- package/resources/simulation-audio-clip.js +23 -0
- package/resources/simulation-audio-clip.js.map +1 -0
- package/resources/simulation-audio-clip.mjs +19 -0
- package/resources/simulation-audio-clip.mjs.map +1 -0
- package/resources/tool.d.mts +671 -0
- package/resources/tool.d.mts.map +1 -0
- package/resources/tool.d.ts +671 -0
- package/resources/tool.d.ts.map +1 -0
- package/resources/tool.js +83 -0
- package/resources/tool.js.map +1 -0
- package/resources/tool.mjs +79 -0
- package/resources/tool.mjs.map +1 -0
- package/src/client.ts +66 -0
- package/src/lib/config.ts +22 -0
- package/src/resources/calendar-connection.ts +1103 -0
- package/src/resources/call.ts +4 -0
- package/src/resources/config.ts +948 -22
- package/src/resources/customer-flow.ts +79 -11
- package/src/resources/http-request-definition.ts +4 -4
- package/src/resources/index.ts +27 -0
- package/src/resources/metric-variant.ts +7 -0
- package/src/resources/metric.ts +111 -0
- package/src/resources/simulation-audio-clip.ts +63 -0
- package/src/resources/tool.ts +884 -0
- 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/resources/config.d.mts
CHANGED
|
@@ -34,7 +34,7 @@ export declare class Config extends APIResource {
|
|
|
34
34
|
diff(body: ConfigDiffParams, options?: RequestOptions): APIPromise<ConfigDiffResponse>;
|
|
35
35
|
}
|
|
36
36
|
export interface Bundle {
|
|
37
|
-
resources: Array<Bundle.AgentConfig | Bundle.HTTPRequestDefinitionConfig | Bundle.PersonaConfig | Bundle.ImprovFlowConfig | Bundle.ScriptedFlowConfig | Bundle.CollectorConfig | Bundle.MetricConfig | Bundle.APICheckMetricConfig | Bundle.ThresholdMetricConfig | Bundle.SimulationPlanConfig | Bundle.QaSimulationPlanConfig | Bundle.SimulationGroupConfig | Bundle.AlertConfig | Bundle.ToolConfig | Bundle.DashboardConfig | Bundle.ProjectConfig>;
|
|
37
|
+
resources: Array<Bundle.AgentConfig | Bundle.HTTPRequestDefinitionConfig | Bundle.PersonaConfig | Bundle.ImprovFlowConfig | Bundle.ScriptedFlowConfig | Bundle.CollectorConfig | Bundle.MetricConfig | Bundle.APICheckMetricConfig | Bundle.ThresholdMetricConfig | Bundle.SimulationPlanConfig | Bundle.QaSimulationPlanConfig | Bundle.SimulationGroupConfig | Bundle.AlertConfig | Bundle.ToolConfig | Bundle.DashboardConfig | Bundle.LiveReportConfig | Bundle.ProjectConfig>;
|
|
38
38
|
prune?: boolean;
|
|
39
39
|
}
|
|
40
40
|
export declare namespace Bundle {
|
|
@@ -136,8 +136,10 @@ export declare namespace Bundle {
|
|
|
136
136
|
agents?: Array<string>;
|
|
137
137
|
branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
138
138
|
description?: string | null;
|
|
139
|
+
environment?: string;
|
|
139
140
|
expectations?: Array<string>;
|
|
140
141
|
offScript?: ScriptedFlowConfig.OffScript;
|
|
142
|
+
persona?: string;
|
|
141
143
|
title?: string;
|
|
142
144
|
}
|
|
143
145
|
namespace ScriptedFlowConfig {
|
|
@@ -187,6 +189,7 @@ export declare namespace Bundle {
|
|
|
187
189
|
contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
|
|
188
190
|
displayName?: string;
|
|
189
191
|
falseLabel?: string;
|
|
192
|
+
gradesShortCalls?: boolean;
|
|
190
193
|
maxSelections?: number;
|
|
191
194
|
options?: Array<MetricConfig.Option>;
|
|
192
195
|
participantRole?: 'AGENT' | 'CUSTOMER';
|
|
@@ -218,6 +221,7 @@ export declare namespace Bundle {
|
|
|
218
221
|
name: string;
|
|
219
222
|
displayName?: string;
|
|
220
223
|
falseLabel?: string;
|
|
224
|
+
gradesShortCalls?: boolean;
|
|
221
225
|
trueLabel?: string;
|
|
222
226
|
}
|
|
223
227
|
namespace APICheckMetricConfig {
|
|
@@ -250,7 +254,7 @@ export declare namespace Bundle {
|
|
|
250
254
|
flows: Array<SimulationPlanConfig.Flow>;
|
|
251
255
|
kind: 'simulationPlan';
|
|
252
256
|
maxDurationSeconds: number;
|
|
253
|
-
metrics: Array<string>;
|
|
257
|
+
metrics: Array<string | SimulationPlanConfig.SimulationPlanMetricConfig>;
|
|
254
258
|
name: string;
|
|
255
259
|
description?: string | null;
|
|
256
260
|
endCallPhrases?: Array<string>;
|
|
@@ -281,6 +285,10 @@ export declare namespace Bundle {
|
|
|
281
285
|
personaOverride?: string;
|
|
282
286
|
system?: string;
|
|
283
287
|
}
|
|
288
|
+
interface SimulationPlanMetricConfig {
|
|
289
|
+
metric: string;
|
|
290
|
+
minPassRate?: number;
|
|
291
|
+
}
|
|
284
292
|
interface Notify {
|
|
285
293
|
email?: boolean | Array<string>;
|
|
286
294
|
slack?: Array<Notify.Slack>;
|
|
@@ -552,19 +560,47 @@ export declare namespace Bundle {
|
|
|
552
560
|
kind: 'tool';
|
|
553
561
|
name: string;
|
|
554
562
|
agent?: string;
|
|
563
|
+
changesData?: boolean;
|
|
555
564
|
description?: string | null;
|
|
556
565
|
expectedResult?: string | null;
|
|
557
|
-
handler?: ToolConfig.
|
|
566
|
+
handler?: ToolConfig.UnionMember0 | ToolConfig.UnionMember1;
|
|
558
567
|
invocationCriteria?: string | null;
|
|
568
|
+
messages?: ToolConfig.Messages;
|
|
559
569
|
parameters?: {
|
|
560
570
|
[key: string]: 'string' | 'number' | 'boolean';
|
|
561
571
|
};
|
|
572
|
+
responseFields?: Array<string>;
|
|
562
573
|
}
|
|
563
574
|
namespace ToolConfig {
|
|
564
|
-
interface
|
|
575
|
+
interface UnionMember0 {
|
|
565
576
|
type: 'http';
|
|
566
577
|
url: string;
|
|
578
|
+
body?: string;
|
|
579
|
+
headers?: {
|
|
580
|
+
[key: string]: string;
|
|
581
|
+
};
|
|
567
582
|
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
583
|
+
timeoutMs?: number;
|
|
584
|
+
}
|
|
585
|
+
interface UnionMember1 {
|
|
586
|
+
appointmentTypes: Array<UnionMember1.AppointmentType>;
|
|
587
|
+
calendarConnection: string;
|
|
588
|
+
operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
|
|
589
|
+
type: 'calendar';
|
|
590
|
+
simulate?: boolean | null;
|
|
591
|
+
}
|
|
592
|
+
namespace UnionMember1 {
|
|
593
|
+
interface AppointmentType {
|
|
594
|
+
eventTypeId: number;
|
|
595
|
+
name: string;
|
|
596
|
+
durationMinutes?: number | null;
|
|
597
|
+
whenToUse?: string | null;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
interface Messages {
|
|
601
|
+
before?: string;
|
|
602
|
+
failure?: string;
|
|
603
|
+
slow?: string;
|
|
568
604
|
}
|
|
569
605
|
}
|
|
570
606
|
interface DashboardConfig {
|
|
@@ -662,6 +698,50 @@ export declare namespace Bundle {
|
|
|
662
698
|
}
|
|
663
699
|
}
|
|
664
700
|
}
|
|
701
|
+
interface LiveReportConfig {
|
|
702
|
+
kind: 'liveReport';
|
|
703
|
+
name: string;
|
|
704
|
+
agent?: string;
|
|
705
|
+
cadence?: 'DAILY' | 'WEEKLY' | 'MONTHLY';
|
|
706
|
+
dashboard?: string;
|
|
707
|
+
deliveryHour?: number;
|
|
708
|
+
description?: string;
|
|
709
|
+
displayName?: string;
|
|
710
|
+
enabled?: boolean;
|
|
711
|
+
filters?: Array<LiveReportConfig.Filter>;
|
|
712
|
+
includeTranscriptExcerpts?: boolean;
|
|
713
|
+
notify?: LiveReportConfig.Notify;
|
|
714
|
+
targets?: Array<LiveReportConfig.Target>;
|
|
715
|
+
timezone?: string;
|
|
716
|
+
}
|
|
717
|
+
namespace LiveReportConfig {
|
|
718
|
+
interface Filter {
|
|
719
|
+
type: 'CALL_PROPERTY' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
|
|
720
|
+
operator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'CONTAINS' | 'STARTS_WITH' | 'IS_SET' | 'IS_NOT_SET';
|
|
721
|
+
property?: string;
|
|
722
|
+
value?: string | number | boolean;
|
|
723
|
+
}
|
|
724
|
+
interface Notify {
|
|
725
|
+
email?: boolean | Array<string>;
|
|
726
|
+
slack?: Array<Notify.Slack>;
|
|
727
|
+
}
|
|
728
|
+
namespace Notify {
|
|
729
|
+
interface Slack {
|
|
730
|
+
channelId: string;
|
|
731
|
+
channelName: string;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
interface Target {
|
|
735
|
+
metric: string;
|
|
736
|
+
value: number;
|
|
737
|
+
aggregation?: 'PASS_RATE' | 'AVG' | 'MEDIAN' | 'PERCENTILE' | 'MIN' | 'MAX';
|
|
738
|
+
comparator?: 'AT_LEAST' | 'AT_MOST';
|
|
739
|
+
label?: string;
|
|
740
|
+
passOperator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO';
|
|
741
|
+
passValue?: string | number | boolean;
|
|
742
|
+
percentile?: number;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
665
745
|
interface ProjectConfig {
|
|
666
746
|
kind: 'project';
|
|
667
747
|
name: string;
|
|
@@ -670,7 +750,7 @@ export declare namespace Bundle {
|
|
|
670
750
|
description?: string;
|
|
671
751
|
displayName?: string;
|
|
672
752
|
members?: Array<ProjectConfig.Member>;
|
|
673
|
-
resources?: Array<ProjectConfig.AgentConfig | ProjectConfig.HTTPRequestDefinitionConfig | ProjectConfig.PersonaConfig | ProjectConfig.ImprovFlowConfig | ProjectConfig.ScriptedFlowConfig | ProjectConfig.CollectorConfig | ProjectConfig.MetricConfig | ProjectConfig.APICheckMetricConfig | ProjectConfig.ThresholdMetricConfig | ProjectConfig.SimulationPlanConfig | ProjectConfig.QaSimulationPlanConfig | ProjectConfig.SimulationGroupConfig | ProjectConfig.AlertConfig | ProjectConfig.ToolConfig | ProjectConfig.DashboardConfig>;
|
|
753
|
+
resources?: Array<ProjectConfig.AgentConfig | ProjectConfig.HTTPRequestDefinitionConfig | ProjectConfig.PersonaConfig | ProjectConfig.ImprovFlowConfig | ProjectConfig.ScriptedFlowConfig | ProjectConfig.CollectorConfig | ProjectConfig.MetricConfig | ProjectConfig.APICheckMetricConfig | ProjectConfig.ThresholdMetricConfig | ProjectConfig.SimulationPlanConfig | ProjectConfig.QaSimulationPlanConfig | ProjectConfig.SimulationGroupConfig | ProjectConfig.AlertConfig | ProjectConfig.ToolConfig | ProjectConfig.DashboardConfig | ProjectConfig.LiveReportConfig>;
|
|
674
754
|
}
|
|
675
755
|
namespace ProjectConfig {
|
|
676
756
|
interface Member {
|
|
@@ -775,8 +855,10 @@ export declare namespace Bundle {
|
|
|
775
855
|
agents?: Array<string>;
|
|
776
856
|
branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
777
857
|
description?: string | null;
|
|
858
|
+
environment?: string;
|
|
778
859
|
expectations?: Array<string>;
|
|
779
860
|
offScript?: ScriptedFlowConfig.OffScript;
|
|
861
|
+
persona?: string;
|
|
780
862
|
title?: string;
|
|
781
863
|
}
|
|
782
864
|
namespace ScriptedFlowConfig {
|
|
@@ -826,6 +908,7 @@ export declare namespace Bundle {
|
|
|
826
908
|
contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
|
|
827
909
|
displayName?: string;
|
|
828
910
|
falseLabel?: string;
|
|
911
|
+
gradesShortCalls?: boolean;
|
|
829
912
|
maxSelections?: number;
|
|
830
913
|
options?: Array<MetricConfig.Option>;
|
|
831
914
|
participantRole?: 'AGENT' | 'CUSTOMER';
|
|
@@ -857,6 +940,7 @@ export declare namespace Bundle {
|
|
|
857
940
|
name: string;
|
|
858
941
|
displayName?: string;
|
|
859
942
|
falseLabel?: string;
|
|
943
|
+
gradesShortCalls?: boolean;
|
|
860
944
|
trueLabel?: string;
|
|
861
945
|
}
|
|
862
946
|
namespace APICheckMetricConfig {
|
|
@@ -889,7 +973,7 @@ export declare namespace Bundle {
|
|
|
889
973
|
flows: Array<SimulationPlanConfig.Flow>;
|
|
890
974
|
kind: 'simulationPlan';
|
|
891
975
|
maxDurationSeconds: number;
|
|
892
|
-
metrics: Array<string>;
|
|
976
|
+
metrics: Array<string | SimulationPlanConfig.SimulationPlanMetricConfig>;
|
|
893
977
|
name: string;
|
|
894
978
|
description?: string | null;
|
|
895
979
|
endCallPhrases?: Array<string>;
|
|
@@ -920,6 +1004,10 @@ export declare namespace Bundle {
|
|
|
920
1004
|
personaOverride?: string;
|
|
921
1005
|
system?: string;
|
|
922
1006
|
}
|
|
1007
|
+
interface SimulationPlanMetricConfig {
|
|
1008
|
+
metric: string;
|
|
1009
|
+
minPassRate?: number;
|
|
1010
|
+
}
|
|
923
1011
|
interface Notify {
|
|
924
1012
|
email?: boolean | Array<string>;
|
|
925
1013
|
slack?: Array<Notify.Slack>;
|
|
@@ -1191,19 +1279,47 @@ export declare namespace Bundle {
|
|
|
1191
1279
|
kind: 'tool';
|
|
1192
1280
|
name: string;
|
|
1193
1281
|
agent?: string;
|
|
1282
|
+
changesData?: boolean;
|
|
1194
1283
|
description?: string | null;
|
|
1195
1284
|
expectedResult?: string | null;
|
|
1196
|
-
handler?: ToolConfig.
|
|
1285
|
+
handler?: ToolConfig.UnionMember0 | ToolConfig.UnionMember1;
|
|
1197
1286
|
invocationCriteria?: string | null;
|
|
1287
|
+
messages?: ToolConfig.Messages;
|
|
1198
1288
|
parameters?: {
|
|
1199
1289
|
[key: string]: 'string' | 'number' | 'boolean';
|
|
1200
1290
|
};
|
|
1291
|
+
responseFields?: Array<string>;
|
|
1201
1292
|
}
|
|
1202
1293
|
namespace ToolConfig {
|
|
1203
|
-
interface
|
|
1294
|
+
interface UnionMember0 {
|
|
1204
1295
|
type: 'http';
|
|
1205
1296
|
url: string;
|
|
1297
|
+
body?: string;
|
|
1298
|
+
headers?: {
|
|
1299
|
+
[key: string]: string;
|
|
1300
|
+
};
|
|
1206
1301
|
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
1302
|
+
timeoutMs?: number;
|
|
1303
|
+
}
|
|
1304
|
+
interface UnionMember1 {
|
|
1305
|
+
appointmentTypes: Array<UnionMember1.AppointmentType>;
|
|
1306
|
+
calendarConnection: string;
|
|
1307
|
+
operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
|
|
1308
|
+
type: 'calendar';
|
|
1309
|
+
simulate?: boolean | null;
|
|
1310
|
+
}
|
|
1311
|
+
namespace UnionMember1 {
|
|
1312
|
+
interface AppointmentType {
|
|
1313
|
+
eventTypeId: number;
|
|
1314
|
+
name: string;
|
|
1315
|
+
durationMinutes?: number | null;
|
|
1316
|
+
whenToUse?: string | null;
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
interface Messages {
|
|
1320
|
+
before?: string;
|
|
1321
|
+
failure?: string;
|
|
1322
|
+
slow?: string;
|
|
1207
1323
|
}
|
|
1208
1324
|
}
|
|
1209
1325
|
interface DashboardConfig {
|
|
@@ -1301,10 +1417,55 @@ export declare namespace Bundle {
|
|
|
1301
1417
|
}
|
|
1302
1418
|
}
|
|
1303
1419
|
}
|
|
1420
|
+
interface LiveReportConfig {
|
|
1421
|
+
kind: 'liveReport';
|
|
1422
|
+
name: string;
|
|
1423
|
+
agent?: string;
|
|
1424
|
+
cadence?: 'DAILY' | 'WEEKLY' | 'MONTHLY';
|
|
1425
|
+
dashboard?: string;
|
|
1426
|
+
deliveryHour?: number;
|
|
1427
|
+
description?: string;
|
|
1428
|
+
displayName?: string;
|
|
1429
|
+
enabled?: boolean;
|
|
1430
|
+
filters?: Array<LiveReportConfig.Filter>;
|
|
1431
|
+
includeTranscriptExcerpts?: boolean;
|
|
1432
|
+
notify?: LiveReportConfig.Notify;
|
|
1433
|
+
targets?: Array<LiveReportConfig.Target>;
|
|
1434
|
+
timezone?: string;
|
|
1435
|
+
}
|
|
1436
|
+
namespace LiveReportConfig {
|
|
1437
|
+
interface Filter {
|
|
1438
|
+
type: 'CALL_PROPERTY' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
|
|
1439
|
+
operator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'CONTAINS' | 'STARTS_WITH' | 'IS_SET' | 'IS_NOT_SET';
|
|
1440
|
+
property?: string;
|
|
1441
|
+
value?: string | number | boolean;
|
|
1442
|
+
}
|
|
1443
|
+
interface Notify {
|
|
1444
|
+
email?: boolean | Array<string>;
|
|
1445
|
+
slack?: Array<Notify.Slack>;
|
|
1446
|
+
}
|
|
1447
|
+
namespace Notify {
|
|
1448
|
+
interface Slack {
|
|
1449
|
+
channelId: string;
|
|
1450
|
+
channelName: string;
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
interface Target {
|
|
1454
|
+
metric: string;
|
|
1455
|
+
value: number;
|
|
1456
|
+
aggregation?: 'PASS_RATE' | 'AVG' | 'MEDIAN' | 'PERCENTILE' | 'MIN' | 'MAX';
|
|
1457
|
+
comparator?: 'AT_LEAST' | 'AT_MOST';
|
|
1458
|
+
label?: string;
|
|
1459
|
+
passOperator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO';
|
|
1460
|
+
passValue?: string | number | boolean;
|
|
1461
|
+
percentile?: number;
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1304
1464
|
}
|
|
1305
1465
|
}
|
|
1306
1466
|
export interface ConfigFlowStep {
|
|
1307
|
-
type: 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_VERBATIM_TURN' | 'CUSTOMER_SILENCE' | 'CUSTOMER_DTMF' | 'AGENT_DTMF' | 'VOICEMAIL' | 'SCENARIO_LINK' | 'CUSTOMER_HANDOFF';
|
|
1467
|
+
type: 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_VERBATIM_TURN' | 'CUSTOMER_SILENCE' | 'CUSTOMER_AUDIO' | 'CUSTOMER_DTMF' | 'AGENT_DTMF' | 'VOICEMAIL' | 'SCENARIO_LINK' | 'CUSTOMER_HANDOFF';
|
|
1468
|
+
audioClip?: 'HOLD_MUSIC_CLASSICAL_PIANO' | 'HOLD_MUSIC_CLASSICAL_ORCHESTRA' | 'HOLD_MUSIC_STRING_QUARTET' | 'HOLD_MUSIC_AMBIENT' | 'HOLD_MUSIC_SMOOTH_JAZZ' | 'HOLD_MUSIC_SOFT_SYNTH' | 'HOLD_BEEP' | 'RINGBACK_US' | 'RINGBACK_UK';
|
|
1308
1469
|
content?: string;
|
|
1309
1470
|
dtmfDigits?: string;
|
|
1310
1471
|
flow?: string;
|
|
@@ -1345,7 +1506,7 @@ export declare namespace ConfigApplyResponse {
|
|
|
1345
1506
|
namespace Data {
|
|
1346
1507
|
interface Change {
|
|
1347
1508
|
configKey: string;
|
|
1348
|
-
kind: 'agent' | 'persona' | 'httpRequestDefinition' | 'flow' | 'collector' | 'metric' | 'simulationPlan' | 'simulationGroup' | 'alert' | 'tool' | 'dashboard' | 'project' | 'member';
|
|
1509
|
+
kind: 'agent' | 'persona' | 'httpRequestDefinition' | 'flow' | 'collector' | 'metric' | 'simulationPlan' | 'simulationGroup' | 'alert' | 'tool' | 'dashboard' | 'liveReport' | 'project' | 'member';
|
|
1349
1510
|
name: string;
|
|
1350
1511
|
op: 'create' | 'update' | 'delete' | 'noop';
|
|
1351
1512
|
status: 'applied' | 'skipped' | 'failed';
|
|
@@ -1375,7 +1536,7 @@ export declare namespace ConfigDiffResponse {
|
|
|
1375
1536
|
namespace Data {
|
|
1376
1537
|
interface Change {
|
|
1377
1538
|
configKey: string;
|
|
1378
|
-
kind: 'agent' | 'persona' | 'httpRequestDefinition' | 'flow' | 'collector' | 'metric' | 'simulationPlan' | 'simulationGroup' | 'alert' | 'tool' | 'dashboard' | 'project' | 'member';
|
|
1539
|
+
kind: 'agent' | 'persona' | 'httpRequestDefinition' | 'flow' | 'collector' | 'metric' | 'simulationPlan' | 'simulationGroup' | 'alert' | 'tool' | 'dashboard' | 'liveReport' | 'project' | 'member';
|
|
1379
1540
|
name: string;
|
|
1380
1541
|
op: 'create' | 'update' | 'delete' | 'noop';
|
|
1381
1542
|
detail?: string;
|
|
@@ -1390,7 +1551,7 @@ export declare namespace ConfigDiffResponse {
|
|
|
1390
1551
|
}
|
|
1391
1552
|
}
|
|
1392
1553
|
export interface ConfigApplyParams {
|
|
1393
|
-
resources: Array<ConfigApplyParams.AgentConfig | ConfigApplyParams.HTTPRequestDefinitionConfig | ConfigApplyParams.PersonaConfig | ConfigApplyParams.ImprovFlowConfig | ConfigApplyParams.ScriptedFlowConfig | ConfigApplyParams.CollectorConfig | ConfigApplyParams.MetricConfig | ConfigApplyParams.APICheckMetricConfig | ConfigApplyParams.ThresholdMetricConfig | ConfigApplyParams.SimulationPlanConfig | ConfigApplyParams.QaSimulationPlanConfig | ConfigApplyParams.SimulationGroupConfig | ConfigApplyParams.AlertConfig | ConfigApplyParams.ToolConfig | ConfigApplyParams.DashboardConfig | ConfigApplyParams.ProjectConfig>;
|
|
1554
|
+
resources: Array<ConfigApplyParams.AgentConfig | ConfigApplyParams.HTTPRequestDefinitionConfig | ConfigApplyParams.PersonaConfig | ConfigApplyParams.ImprovFlowConfig | ConfigApplyParams.ScriptedFlowConfig | ConfigApplyParams.CollectorConfig | ConfigApplyParams.MetricConfig | ConfigApplyParams.APICheckMetricConfig | ConfigApplyParams.ThresholdMetricConfig | ConfigApplyParams.SimulationPlanConfig | ConfigApplyParams.QaSimulationPlanConfig | ConfigApplyParams.SimulationGroupConfig | ConfigApplyParams.AlertConfig | ConfigApplyParams.ToolConfig | ConfigApplyParams.DashboardConfig | ConfigApplyParams.LiveReportConfig | ConfigApplyParams.ProjectConfig>;
|
|
1394
1555
|
prune?: boolean;
|
|
1395
1556
|
}
|
|
1396
1557
|
export declare namespace ConfigApplyParams {
|
|
@@ -1492,8 +1653,10 @@ export declare namespace ConfigApplyParams {
|
|
|
1492
1653
|
agents?: Array<string>;
|
|
1493
1654
|
branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
1494
1655
|
description?: string | null;
|
|
1656
|
+
environment?: string;
|
|
1495
1657
|
expectations?: Array<string>;
|
|
1496
1658
|
offScript?: ScriptedFlowConfig.OffScript;
|
|
1659
|
+
persona?: string;
|
|
1497
1660
|
title?: string;
|
|
1498
1661
|
}
|
|
1499
1662
|
namespace ScriptedFlowConfig {
|
|
@@ -1543,6 +1706,7 @@ export declare namespace ConfigApplyParams {
|
|
|
1543
1706
|
contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
|
|
1544
1707
|
displayName?: string;
|
|
1545
1708
|
falseLabel?: string;
|
|
1709
|
+
gradesShortCalls?: boolean;
|
|
1546
1710
|
maxSelections?: number;
|
|
1547
1711
|
options?: Array<MetricConfig.Option>;
|
|
1548
1712
|
participantRole?: 'AGENT' | 'CUSTOMER';
|
|
@@ -1574,6 +1738,7 @@ export declare namespace ConfigApplyParams {
|
|
|
1574
1738
|
name: string;
|
|
1575
1739
|
displayName?: string;
|
|
1576
1740
|
falseLabel?: string;
|
|
1741
|
+
gradesShortCalls?: boolean;
|
|
1577
1742
|
trueLabel?: string;
|
|
1578
1743
|
}
|
|
1579
1744
|
namespace APICheckMetricConfig {
|
|
@@ -1606,7 +1771,7 @@ export declare namespace ConfigApplyParams {
|
|
|
1606
1771
|
flows: Array<SimulationPlanConfig.Flow>;
|
|
1607
1772
|
kind: 'simulationPlan';
|
|
1608
1773
|
maxDurationSeconds: number;
|
|
1609
|
-
metrics: Array<string>;
|
|
1774
|
+
metrics: Array<string | SimulationPlanConfig.SimulationPlanMetricConfig>;
|
|
1610
1775
|
name: string;
|
|
1611
1776
|
description?: string | null;
|
|
1612
1777
|
endCallPhrases?: Array<string>;
|
|
@@ -1637,6 +1802,10 @@ export declare namespace ConfigApplyParams {
|
|
|
1637
1802
|
personaOverride?: string;
|
|
1638
1803
|
system?: string;
|
|
1639
1804
|
}
|
|
1805
|
+
interface SimulationPlanMetricConfig {
|
|
1806
|
+
metric: string;
|
|
1807
|
+
minPassRate?: number;
|
|
1808
|
+
}
|
|
1640
1809
|
interface Notify {
|
|
1641
1810
|
email?: boolean | Array<string>;
|
|
1642
1811
|
slack?: Array<Notify.Slack>;
|
|
@@ -1908,19 +2077,47 @@ export declare namespace ConfigApplyParams {
|
|
|
1908
2077
|
kind: 'tool';
|
|
1909
2078
|
name: string;
|
|
1910
2079
|
agent?: string;
|
|
2080
|
+
changesData?: boolean;
|
|
1911
2081
|
description?: string | null;
|
|
1912
2082
|
expectedResult?: string | null;
|
|
1913
|
-
handler?: ToolConfig.
|
|
2083
|
+
handler?: ToolConfig.UnionMember0 | ToolConfig.UnionMember1;
|
|
1914
2084
|
invocationCriteria?: string | null;
|
|
2085
|
+
messages?: ToolConfig.Messages;
|
|
1915
2086
|
parameters?: {
|
|
1916
2087
|
[key: string]: 'string' | 'number' | 'boolean';
|
|
1917
2088
|
};
|
|
2089
|
+
responseFields?: Array<string>;
|
|
1918
2090
|
}
|
|
1919
2091
|
namespace ToolConfig {
|
|
1920
|
-
interface
|
|
2092
|
+
interface UnionMember0 {
|
|
1921
2093
|
type: 'http';
|
|
1922
2094
|
url: string;
|
|
2095
|
+
body?: string;
|
|
2096
|
+
headers?: {
|
|
2097
|
+
[key: string]: string;
|
|
2098
|
+
};
|
|
1923
2099
|
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
2100
|
+
timeoutMs?: number;
|
|
2101
|
+
}
|
|
2102
|
+
interface UnionMember1 {
|
|
2103
|
+
appointmentTypes: Array<UnionMember1.AppointmentType>;
|
|
2104
|
+
calendarConnection: string;
|
|
2105
|
+
operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
|
|
2106
|
+
type: 'calendar';
|
|
2107
|
+
simulate?: boolean | null;
|
|
2108
|
+
}
|
|
2109
|
+
namespace UnionMember1 {
|
|
2110
|
+
interface AppointmentType {
|
|
2111
|
+
eventTypeId: number;
|
|
2112
|
+
name: string;
|
|
2113
|
+
durationMinutes?: number | null;
|
|
2114
|
+
whenToUse?: string | null;
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
interface Messages {
|
|
2118
|
+
before?: string;
|
|
2119
|
+
failure?: string;
|
|
2120
|
+
slow?: string;
|
|
1924
2121
|
}
|
|
1925
2122
|
}
|
|
1926
2123
|
interface DashboardConfig {
|
|
@@ -2018,6 +2215,50 @@ export declare namespace ConfigApplyParams {
|
|
|
2018
2215
|
}
|
|
2019
2216
|
}
|
|
2020
2217
|
}
|
|
2218
|
+
interface LiveReportConfig {
|
|
2219
|
+
kind: 'liveReport';
|
|
2220
|
+
name: string;
|
|
2221
|
+
agent?: string;
|
|
2222
|
+
cadence?: 'DAILY' | 'WEEKLY' | 'MONTHLY';
|
|
2223
|
+
dashboard?: string;
|
|
2224
|
+
deliveryHour?: number;
|
|
2225
|
+
description?: string;
|
|
2226
|
+
displayName?: string;
|
|
2227
|
+
enabled?: boolean;
|
|
2228
|
+
filters?: Array<LiveReportConfig.Filter>;
|
|
2229
|
+
includeTranscriptExcerpts?: boolean;
|
|
2230
|
+
notify?: LiveReportConfig.Notify;
|
|
2231
|
+
targets?: Array<LiveReportConfig.Target>;
|
|
2232
|
+
timezone?: string;
|
|
2233
|
+
}
|
|
2234
|
+
namespace LiveReportConfig {
|
|
2235
|
+
interface Filter {
|
|
2236
|
+
type: 'CALL_PROPERTY' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
|
|
2237
|
+
operator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'CONTAINS' | 'STARTS_WITH' | 'IS_SET' | 'IS_NOT_SET';
|
|
2238
|
+
property?: string;
|
|
2239
|
+
value?: string | number | boolean;
|
|
2240
|
+
}
|
|
2241
|
+
interface Notify {
|
|
2242
|
+
email?: boolean | Array<string>;
|
|
2243
|
+
slack?: Array<Notify.Slack>;
|
|
2244
|
+
}
|
|
2245
|
+
namespace Notify {
|
|
2246
|
+
interface Slack {
|
|
2247
|
+
channelId: string;
|
|
2248
|
+
channelName: string;
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2251
|
+
interface Target {
|
|
2252
|
+
metric: string;
|
|
2253
|
+
value: number;
|
|
2254
|
+
aggregation?: 'PASS_RATE' | 'AVG' | 'MEDIAN' | 'PERCENTILE' | 'MIN' | 'MAX';
|
|
2255
|
+
comparator?: 'AT_LEAST' | 'AT_MOST';
|
|
2256
|
+
label?: string;
|
|
2257
|
+
passOperator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO';
|
|
2258
|
+
passValue?: string | number | boolean;
|
|
2259
|
+
percentile?: number;
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2021
2262
|
interface ProjectConfig {
|
|
2022
2263
|
kind: 'project';
|
|
2023
2264
|
name: string;
|
|
@@ -2026,7 +2267,7 @@ export declare namespace ConfigApplyParams {
|
|
|
2026
2267
|
description?: string;
|
|
2027
2268
|
displayName?: string;
|
|
2028
2269
|
members?: Array<ProjectConfig.Member>;
|
|
2029
|
-
resources?: Array<ProjectConfig.AgentConfig | ProjectConfig.HTTPRequestDefinitionConfig | ProjectConfig.PersonaConfig | ProjectConfig.ImprovFlowConfig | ProjectConfig.ScriptedFlowConfig | ProjectConfig.CollectorConfig | ProjectConfig.MetricConfig | ProjectConfig.APICheckMetricConfig | ProjectConfig.ThresholdMetricConfig | ProjectConfig.SimulationPlanConfig | ProjectConfig.QaSimulationPlanConfig | ProjectConfig.SimulationGroupConfig | ProjectConfig.AlertConfig | ProjectConfig.ToolConfig | ProjectConfig.DashboardConfig>;
|
|
2270
|
+
resources?: Array<ProjectConfig.AgentConfig | ProjectConfig.HTTPRequestDefinitionConfig | ProjectConfig.PersonaConfig | ProjectConfig.ImprovFlowConfig | ProjectConfig.ScriptedFlowConfig | ProjectConfig.CollectorConfig | ProjectConfig.MetricConfig | ProjectConfig.APICheckMetricConfig | ProjectConfig.ThresholdMetricConfig | ProjectConfig.SimulationPlanConfig | ProjectConfig.QaSimulationPlanConfig | ProjectConfig.SimulationGroupConfig | ProjectConfig.AlertConfig | ProjectConfig.ToolConfig | ProjectConfig.DashboardConfig | ProjectConfig.LiveReportConfig>;
|
|
2030
2271
|
}
|
|
2031
2272
|
namespace ProjectConfig {
|
|
2032
2273
|
interface Member {
|
|
@@ -2131,8 +2372,10 @@ export declare namespace ConfigApplyParams {
|
|
|
2131
2372
|
agents?: Array<string>;
|
|
2132
2373
|
branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
2133
2374
|
description?: string | null;
|
|
2375
|
+
environment?: string;
|
|
2134
2376
|
expectations?: Array<string>;
|
|
2135
2377
|
offScript?: ScriptedFlowConfig.OffScript;
|
|
2378
|
+
persona?: string;
|
|
2136
2379
|
title?: string;
|
|
2137
2380
|
}
|
|
2138
2381
|
namespace ScriptedFlowConfig {
|
|
@@ -2182,6 +2425,7 @@ export declare namespace ConfigApplyParams {
|
|
|
2182
2425
|
contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
|
|
2183
2426
|
displayName?: string;
|
|
2184
2427
|
falseLabel?: string;
|
|
2428
|
+
gradesShortCalls?: boolean;
|
|
2185
2429
|
maxSelections?: number;
|
|
2186
2430
|
options?: Array<MetricConfig.Option>;
|
|
2187
2431
|
participantRole?: 'AGENT' | 'CUSTOMER';
|
|
@@ -2213,6 +2457,7 @@ export declare namespace ConfigApplyParams {
|
|
|
2213
2457
|
name: string;
|
|
2214
2458
|
displayName?: string;
|
|
2215
2459
|
falseLabel?: string;
|
|
2460
|
+
gradesShortCalls?: boolean;
|
|
2216
2461
|
trueLabel?: string;
|
|
2217
2462
|
}
|
|
2218
2463
|
namespace APICheckMetricConfig {
|
|
@@ -2245,7 +2490,7 @@ export declare namespace ConfigApplyParams {
|
|
|
2245
2490
|
flows: Array<SimulationPlanConfig.Flow>;
|
|
2246
2491
|
kind: 'simulationPlan';
|
|
2247
2492
|
maxDurationSeconds: number;
|
|
2248
|
-
metrics: Array<string>;
|
|
2493
|
+
metrics: Array<string | SimulationPlanConfig.SimulationPlanMetricConfig>;
|
|
2249
2494
|
name: string;
|
|
2250
2495
|
description?: string | null;
|
|
2251
2496
|
endCallPhrases?: Array<string>;
|
|
@@ -2276,6 +2521,10 @@ export declare namespace ConfigApplyParams {
|
|
|
2276
2521
|
personaOverride?: string;
|
|
2277
2522
|
system?: string;
|
|
2278
2523
|
}
|
|
2524
|
+
interface SimulationPlanMetricConfig {
|
|
2525
|
+
metric: string;
|
|
2526
|
+
minPassRate?: number;
|
|
2527
|
+
}
|
|
2279
2528
|
interface Notify {
|
|
2280
2529
|
email?: boolean | Array<string>;
|
|
2281
2530
|
slack?: Array<Notify.Slack>;
|
|
@@ -2547,19 +2796,47 @@ export declare namespace ConfigApplyParams {
|
|
|
2547
2796
|
kind: 'tool';
|
|
2548
2797
|
name: string;
|
|
2549
2798
|
agent?: string;
|
|
2799
|
+
changesData?: boolean;
|
|
2550
2800
|
description?: string | null;
|
|
2551
2801
|
expectedResult?: string | null;
|
|
2552
|
-
handler?: ToolConfig.
|
|
2802
|
+
handler?: ToolConfig.UnionMember0 | ToolConfig.UnionMember1;
|
|
2553
2803
|
invocationCriteria?: string | null;
|
|
2804
|
+
messages?: ToolConfig.Messages;
|
|
2554
2805
|
parameters?: {
|
|
2555
2806
|
[key: string]: 'string' | 'number' | 'boolean';
|
|
2556
2807
|
};
|
|
2808
|
+
responseFields?: Array<string>;
|
|
2557
2809
|
}
|
|
2558
2810
|
namespace ToolConfig {
|
|
2559
|
-
interface
|
|
2811
|
+
interface UnionMember0 {
|
|
2560
2812
|
type: 'http';
|
|
2561
2813
|
url: string;
|
|
2814
|
+
body?: string;
|
|
2815
|
+
headers?: {
|
|
2816
|
+
[key: string]: string;
|
|
2817
|
+
};
|
|
2562
2818
|
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
2819
|
+
timeoutMs?: number;
|
|
2820
|
+
}
|
|
2821
|
+
interface UnionMember1 {
|
|
2822
|
+
appointmentTypes: Array<UnionMember1.AppointmentType>;
|
|
2823
|
+
calendarConnection: string;
|
|
2824
|
+
operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
|
|
2825
|
+
type: 'calendar';
|
|
2826
|
+
simulate?: boolean | null;
|
|
2827
|
+
}
|
|
2828
|
+
namespace UnionMember1 {
|
|
2829
|
+
interface AppointmentType {
|
|
2830
|
+
eventTypeId: number;
|
|
2831
|
+
name: string;
|
|
2832
|
+
durationMinutes?: number | null;
|
|
2833
|
+
whenToUse?: string | null;
|
|
2834
|
+
}
|
|
2835
|
+
}
|
|
2836
|
+
interface Messages {
|
|
2837
|
+
before?: string;
|
|
2838
|
+
failure?: string;
|
|
2839
|
+
slow?: string;
|
|
2563
2840
|
}
|
|
2564
2841
|
}
|
|
2565
2842
|
interface DashboardConfig {
|
|
@@ -2657,10 +2934,54 @@ export declare namespace ConfigApplyParams {
|
|
|
2657
2934
|
}
|
|
2658
2935
|
}
|
|
2659
2936
|
}
|
|
2937
|
+
interface LiveReportConfig {
|
|
2938
|
+
kind: 'liveReport';
|
|
2939
|
+
name: string;
|
|
2940
|
+
agent?: string;
|
|
2941
|
+
cadence?: 'DAILY' | 'WEEKLY' | 'MONTHLY';
|
|
2942
|
+
dashboard?: string;
|
|
2943
|
+
deliveryHour?: number;
|
|
2944
|
+
description?: string;
|
|
2945
|
+
displayName?: string;
|
|
2946
|
+
enabled?: boolean;
|
|
2947
|
+
filters?: Array<LiveReportConfig.Filter>;
|
|
2948
|
+
includeTranscriptExcerpts?: boolean;
|
|
2949
|
+
notify?: LiveReportConfig.Notify;
|
|
2950
|
+
targets?: Array<LiveReportConfig.Target>;
|
|
2951
|
+
timezone?: string;
|
|
2952
|
+
}
|
|
2953
|
+
namespace LiveReportConfig {
|
|
2954
|
+
interface Filter {
|
|
2955
|
+
type: 'CALL_PROPERTY' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
|
|
2956
|
+
operator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'CONTAINS' | 'STARTS_WITH' | 'IS_SET' | 'IS_NOT_SET';
|
|
2957
|
+
property?: string;
|
|
2958
|
+
value?: string | number | boolean;
|
|
2959
|
+
}
|
|
2960
|
+
interface Notify {
|
|
2961
|
+
email?: boolean | Array<string>;
|
|
2962
|
+
slack?: Array<Notify.Slack>;
|
|
2963
|
+
}
|
|
2964
|
+
namespace Notify {
|
|
2965
|
+
interface Slack {
|
|
2966
|
+
channelId: string;
|
|
2967
|
+
channelName: string;
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
interface Target {
|
|
2971
|
+
metric: string;
|
|
2972
|
+
value: number;
|
|
2973
|
+
aggregation?: 'PASS_RATE' | 'AVG' | 'MEDIAN' | 'PERCENTILE' | 'MIN' | 'MAX';
|
|
2974
|
+
comparator?: 'AT_LEAST' | 'AT_MOST';
|
|
2975
|
+
label?: string;
|
|
2976
|
+
passOperator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO';
|
|
2977
|
+
passValue?: string | number | boolean;
|
|
2978
|
+
percentile?: number;
|
|
2979
|
+
}
|
|
2980
|
+
}
|
|
2660
2981
|
}
|
|
2661
2982
|
}
|
|
2662
2983
|
export interface ConfigDiffParams {
|
|
2663
|
-
resources: Array<ConfigDiffParams.AgentConfig | ConfigDiffParams.HTTPRequestDefinitionConfig | ConfigDiffParams.PersonaConfig | ConfigDiffParams.ImprovFlowConfig | ConfigDiffParams.ScriptedFlowConfig | ConfigDiffParams.CollectorConfig | ConfigDiffParams.MetricConfig | ConfigDiffParams.APICheckMetricConfig | ConfigDiffParams.ThresholdMetricConfig | ConfigDiffParams.SimulationPlanConfig | ConfigDiffParams.QaSimulationPlanConfig | ConfigDiffParams.SimulationGroupConfig | ConfigDiffParams.AlertConfig | ConfigDiffParams.ToolConfig | ConfigDiffParams.DashboardConfig | ConfigDiffParams.ProjectConfig>;
|
|
2984
|
+
resources: Array<ConfigDiffParams.AgentConfig | ConfigDiffParams.HTTPRequestDefinitionConfig | ConfigDiffParams.PersonaConfig | ConfigDiffParams.ImprovFlowConfig | ConfigDiffParams.ScriptedFlowConfig | ConfigDiffParams.CollectorConfig | ConfigDiffParams.MetricConfig | ConfigDiffParams.APICheckMetricConfig | ConfigDiffParams.ThresholdMetricConfig | ConfigDiffParams.SimulationPlanConfig | ConfigDiffParams.QaSimulationPlanConfig | ConfigDiffParams.SimulationGroupConfig | ConfigDiffParams.AlertConfig | ConfigDiffParams.ToolConfig | ConfigDiffParams.DashboardConfig | ConfigDiffParams.LiveReportConfig | ConfigDiffParams.ProjectConfig>;
|
|
2664
2985
|
prune?: boolean;
|
|
2665
2986
|
}
|
|
2666
2987
|
export declare namespace ConfigDiffParams {
|
|
@@ -2762,8 +3083,10 @@ export declare namespace ConfigDiffParams {
|
|
|
2762
3083
|
agents?: Array<string>;
|
|
2763
3084
|
branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
2764
3085
|
description?: string | null;
|
|
3086
|
+
environment?: string;
|
|
2765
3087
|
expectations?: Array<string>;
|
|
2766
3088
|
offScript?: ScriptedFlowConfig.OffScript;
|
|
3089
|
+
persona?: string;
|
|
2767
3090
|
title?: string;
|
|
2768
3091
|
}
|
|
2769
3092
|
namespace ScriptedFlowConfig {
|
|
@@ -2813,6 +3136,7 @@ export declare namespace ConfigDiffParams {
|
|
|
2813
3136
|
contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
|
|
2814
3137
|
displayName?: string;
|
|
2815
3138
|
falseLabel?: string;
|
|
3139
|
+
gradesShortCalls?: boolean;
|
|
2816
3140
|
maxSelections?: number;
|
|
2817
3141
|
options?: Array<MetricConfig.Option>;
|
|
2818
3142
|
participantRole?: 'AGENT' | 'CUSTOMER';
|
|
@@ -2844,6 +3168,7 @@ export declare namespace ConfigDiffParams {
|
|
|
2844
3168
|
name: string;
|
|
2845
3169
|
displayName?: string;
|
|
2846
3170
|
falseLabel?: string;
|
|
3171
|
+
gradesShortCalls?: boolean;
|
|
2847
3172
|
trueLabel?: string;
|
|
2848
3173
|
}
|
|
2849
3174
|
namespace APICheckMetricConfig {
|
|
@@ -2876,7 +3201,7 @@ export declare namespace ConfigDiffParams {
|
|
|
2876
3201
|
flows: Array<SimulationPlanConfig.Flow>;
|
|
2877
3202
|
kind: 'simulationPlan';
|
|
2878
3203
|
maxDurationSeconds: number;
|
|
2879
|
-
metrics: Array<string>;
|
|
3204
|
+
metrics: Array<string | SimulationPlanConfig.SimulationPlanMetricConfig>;
|
|
2880
3205
|
name: string;
|
|
2881
3206
|
description?: string | null;
|
|
2882
3207
|
endCallPhrases?: Array<string>;
|
|
@@ -2907,6 +3232,10 @@ export declare namespace ConfigDiffParams {
|
|
|
2907
3232
|
personaOverride?: string;
|
|
2908
3233
|
system?: string;
|
|
2909
3234
|
}
|
|
3235
|
+
interface SimulationPlanMetricConfig {
|
|
3236
|
+
metric: string;
|
|
3237
|
+
minPassRate?: number;
|
|
3238
|
+
}
|
|
2910
3239
|
interface Notify {
|
|
2911
3240
|
email?: boolean | Array<string>;
|
|
2912
3241
|
slack?: Array<Notify.Slack>;
|
|
@@ -3178,19 +3507,47 @@ export declare namespace ConfigDiffParams {
|
|
|
3178
3507
|
kind: 'tool';
|
|
3179
3508
|
name: string;
|
|
3180
3509
|
agent?: string;
|
|
3510
|
+
changesData?: boolean;
|
|
3181
3511
|
description?: string | null;
|
|
3182
3512
|
expectedResult?: string | null;
|
|
3183
|
-
handler?: ToolConfig.
|
|
3513
|
+
handler?: ToolConfig.UnionMember0 | ToolConfig.UnionMember1;
|
|
3184
3514
|
invocationCriteria?: string | null;
|
|
3515
|
+
messages?: ToolConfig.Messages;
|
|
3185
3516
|
parameters?: {
|
|
3186
3517
|
[key: string]: 'string' | 'number' | 'boolean';
|
|
3187
3518
|
};
|
|
3519
|
+
responseFields?: Array<string>;
|
|
3188
3520
|
}
|
|
3189
3521
|
namespace ToolConfig {
|
|
3190
|
-
interface
|
|
3522
|
+
interface UnionMember0 {
|
|
3191
3523
|
type: 'http';
|
|
3192
3524
|
url: string;
|
|
3525
|
+
body?: string;
|
|
3526
|
+
headers?: {
|
|
3527
|
+
[key: string]: string;
|
|
3528
|
+
};
|
|
3193
3529
|
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
3530
|
+
timeoutMs?: number;
|
|
3531
|
+
}
|
|
3532
|
+
interface UnionMember1 {
|
|
3533
|
+
appointmentTypes: Array<UnionMember1.AppointmentType>;
|
|
3534
|
+
calendarConnection: string;
|
|
3535
|
+
operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
|
|
3536
|
+
type: 'calendar';
|
|
3537
|
+
simulate?: boolean | null;
|
|
3538
|
+
}
|
|
3539
|
+
namespace UnionMember1 {
|
|
3540
|
+
interface AppointmentType {
|
|
3541
|
+
eventTypeId: number;
|
|
3542
|
+
name: string;
|
|
3543
|
+
durationMinutes?: number | null;
|
|
3544
|
+
whenToUse?: string | null;
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
interface Messages {
|
|
3548
|
+
before?: string;
|
|
3549
|
+
failure?: string;
|
|
3550
|
+
slow?: string;
|
|
3194
3551
|
}
|
|
3195
3552
|
}
|
|
3196
3553
|
interface DashboardConfig {
|
|
@@ -3288,6 +3645,50 @@ export declare namespace ConfigDiffParams {
|
|
|
3288
3645
|
}
|
|
3289
3646
|
}
|
|
3290
3647
|
}
|
|
3648
|
+
interface LiveReportConfig {
|
|
3649
|
+
kind: 'liveReport';
|
|
3650
|
+
name: string;
|
|
3651
|
+
agent?: string;
|
|
3652
|
+
cadence?: 'DAILY' | 'WEEKLY' | 'MONTHLY';
|
|
3653
|
+
dashboard?: string;
|
|
3654
|
+
deliveryHour?: number;
|
|
3655
|
+
description?: string;
|
|
3656
|
+
displayName?: string;
|
|
3657
|
+
enabled?: boolean;
|
|
3658
|
+
filters?: Array<LiveReportConfig.Filter>;
|
|
3659
|
+
includeTranscriptExcerpts?: boolean;
|
|
3660
|
+
notify?: LiveReportConfig.Notify;
|
|
3661
|
+
targets?: Array<LiveReportConfig.Target>;
|
|
3662
|
+
timezone?: string;
|
|
3663
|
+
}
|
|
3664
|
+
namespace LiveReportConfig {
|
|
3665
|
+
interface Filter {
|
|
3666
|
+
type: 'CALL_PROPERTY' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
|
|
3667
|
+
operator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'CONTAINS' | 'STARTS_WITH' | 'IS_SET' | 'IS_NOT_SET';
|
|
3668
|
+
property?: string;
|
|
3669
|
+
value?: string | number | boolean;
|
|
3670
|
+
}
|
|
3671
|
+
interface Notify {
|
|
3672
|
+
email?: boolean | Array<string>;
|
|
3673
|
+
slack?: Array<Notify.Slack>;
|
|
3674
|
+
}
|
|
3675
|
+
namespace Notify {
|
|
3676
|
+
interface Slack {
|
|
3677
|
+
channelId: string;
|
|
3678
|
+
channelName: string;
|
|
3679
|
+
}
|
|
3680
|
+
}
|
|
3681
|
+
interface Target {
|
|
3682
|
+
metric: string;
|
|
3683
|
+
value: number;
|
|
3684
|
+
aggregation?: 'PASS_RATE' | 'AVG' | 'MEDIAN' | 'PERCENTILE' | 'MIN' | 'MAX';
|
|
3685
|
+
comparator?: 'AT_LEAST' | 'AT_MOST';
|
|
3686
|
+
label?: string;
|
|
3687
|
+
passOperator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO';
|
|
3688
|
+
passValue?: string | number | boolean;
|
|
3689
|
+
percentile?: number;
|
|
3690
|
+
}
|
|
3691
|
+
}
|
|
3291
3692
|
interface ProjectConfig {
|
|
3292
3693
|
kind: 'project';
|
|
3293
3694
|
name: string;
|
|
@@ -3296,7 +3697,7 @@ export declare namespace ConfigDiffParams {
|
|
|
3296
3697
|
description?: string;
|
|
3297
3698
|
displayName?: string;
|
|
3298
3699
|
members?: Array<ProjectConfig.Member>;
|
|
3299
|
-
resources?: Array<ProjectConfig.AgentConfig | ProjectConfig.HTTPRequestDefinitionConfig | ProjectConfig.PersonaConfig | ProjectConfig.ImprovFlowConfig | ProjectConfig.ScriptedFlowConfig | ProjectConfig.CollectorConfig | ProjectConfig.MetricConfig | ProjectConfig.APICheckMetricConfig | ProjectConfig.ThresholdMetricConfig | ProjectConfig.SimulationPlanConfig | ProjectConfig.QaSimulationPlanConfig | ProjectConfig.SimulationGroupConfig | ProjectConfig.AlertConfig | ProjectConfig.ToolConfig | ProjectConfig.DashboardConfig>;
|
|
3700
|
+
resources?: Array<ProjectConfig.AgentConfig | ProjectConfig.HTTPRequestDefinitionConfig | ProjectConfig.PersonaConfig | ProjectConfig.ImprovFlowConfig | ProjectConfig.ScriptedFlowConfig | ProjectConfig.CollectorConfig | ProjectConfig.MetricConfig | ProjectConfig.APICheckMetricConfig | ProjectConfig.ThresholdMetricConfig | ProjectConfig.SimulationPlanConfig | ProjectConfig.QaSimulationPlanConfig | ProjectConfig.SimulationGroupConfig | ProjectConfig.AlertConfig | ProjectConfig.ToolConfig | ProjectConfig.DashboardConfig | ProjectConfig.LiveReportConfig>;
|
|
3300
3701
|
}
|
|
3301
3702
|
namespace ProjectConfig {
|
|
3302
3703
|
interface Member {
|
|
@@ -3401,8 +3802,10 @@ export declare namespace ConfigDiffParams {
|
|
|
3401
3802
|
agents?: Array<string>;
|
|
3402
3803
|
branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
3403
3804
|
description?: string | null;
|
|
3805
|
+
environment?: string;
|
|
3404
3806
|
expectations?: Array<string>;
|
|
3405
3807
|
offScript?: ScriptedFlowConfig.OffScript;
|
|
3808
|
+
persona?: string;
|
|
3406
3809
|
title?: string;
|
|
3407
3810
|
}
|
|
3408
3811
|
namespace ScriptedFlowConfig {
|
|
@@ -3452,6 +3855,7 @@ export declare namespace ConfigDiffParams {
|
|
|
3452
3855
|
contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
|
|
3453
3856
|
displayName?: string;
|
|
3454
3857
|
falseLabel?: string;
|
|
3858
|
+
gradesShortCalls?: boolean;
|
|
3455
3859
|
maxSelections?: number;
|
|
3456
3860
|
options?: Array<MetricConfig.Option>;
|
|
3457
3861
|
participantRole?: 'AGENT' | 'CUSTOMER';
|
|
@@ -3483,6 +3887,7 @@ export declare namespace ConfigDiffParams {
|
|
|
3483
3887
|
name: string;
|
|
3484
3888
|
displayName?: string;
|
|
3485
3889
|
falseLabel?: string;
|
|
3890
|
+
gradesShortCalls?: boolean;
|
|
3486
3891
|
trueLabel?: string;
|
|
3487
3892
|
}
|
|
3488
3893
|
namespace APICheckMetricConfig {
|
|
@@ -3515,7 +3920,7 @@ export declare namespace ConfigDiffParams {
|
|
|
3515
3920
|
flows: Array<SimulationPlanConfig.Flow>;
|
|
3516
3921
|
kind: 'simulationPlan';
|
|
3517
3922
|
maxDurationSeconds: number;
|
|
3518
|
-
metrics: Array<string>;
|
|
3923
|
+
metrics: Array<string | SimulationPlanConfig.SimulationPlanMetricConfig>;
|
|
3519
3924
|
name: string;
|
|
3520
3925
|
description?: string | null;
|
|
3521
3926
|
endCallPhrases?: Array<string>;
|
|
@@ -3546,6 +3951,10 @@ export declare namespace ConfigDiffParams {
|
|
|
3546
3951
|
personaOverride?: string;
|
|
3547
3952
|
system?: string;
|
|
3548
3953
|
}
|
|
3954
|
+
interface SimulationPlanMetricConfig {
|
|
3955
|
+
metric: string;
|
|
3956
|
+
minPassRate?: number;
|
|
3957
|
+
}
|
|
3549
3958
|
interface Notify {
|
|
3550
3959
|
email?: boolean | Array<string>;
|
|
3551
3960
|
slack?: Array<Notify.Slack>;
|
|
@@ -3817,19 +4226,47 @@ export declare namespace ConfigDiffParams {
|
|
|
3817
4226
|
kind: 'tool';
|
|
3818
4227
|
name: string;
|
|
3819
4228
|
agent?: string;
|
|
4229
|
+
changesData?: boolean;
|
|
3820
4230
|
description?: string | null;
|
|
3821
4231
|
expectedResult?: string | null;
|
|
3822
|
-
handler?: ToolConfig.
|
|
4232
|
+
handler?: ToolConfig.UnionMember0 | ToolConfig.UnionMember1;
|
|
3823
4233
|
invocationCriteria?: string | null;
|
|
4234
|
+
messages?: ToolConfig.Messages;
|
|
3824
4235
|
parameters?: {
|
|
3825
4236
|
[key: string]: 'string' | 'number' | 'boolean';
|
|
3826
4237
|
};
|
|
4238
|
+
responseFields?: Array<string>;
|
|
3827
4239
|
}
|
|
3828
4240
|
namespace ToolConfig {
|
|
3829
|
-
interface
|
|
4241
|
+
interface UnionMember0 {
|
|
3830
4242
|
type: 'http';
|
|
3831
4243
|
url: string;
|
|
4244
|
+
body?: string;
|
|
4245
|
+
headers?: {
|
|
4246
|
+
[key: string]: string;
|
|
4247
|
+
};
|
|
3832
4248
|
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
4249
|
+
timeoutMs?: number;
|
|
4250
|
+
}
|
|
4251
|
+
interface UnionMember1 {
|
|
4252
|
+
appointmentTypes: Array<UnionMember1.AppointmentType>;
|
|
4253
|
+
calendarConnection: string;
|
|
4254
|
+
operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
|
|
4255
|
+
type: 'calendar';
|
|
4256
|
+
simulate?: boolean | null;
|
|
4257
|
+
}
|
|
4258
|
+
namespace UnionMember1 {
|
|
4259
|
+
interface AppointmentType {
|
|
4260
|
+
eventTypeId: number;
|
|
4261
|
+
name: string;
|
|
4262
|
+
durationMinutes?: number | null;
|
|
4263
|
+
whenToUse?: string | null;
|
|
4264
|
+
}
|
|
4265
|
+
}
|
|
4266
|
+
interface Messages {
|
|
4267
|
+
before?: string;
|
|
4268
|
+
failure?: string;
|
|
4269
|
+
slow?: string;
|
|
3833
4270
|
}
|
|
3834
4271
|
}
|
|
3835
4272
|
interface DashboardConfig {
|
|
@@ -3927,6 +4364,50 @@ export declare namespace ConfigDiffParams {
|
|
|
3927
4364
|
}
|
|
3928
4365
|
}
|
|
3929
4366
|
}
|
|
4367
|
+
interface LiveReportConfig {
|
|
4368
|
+
kind: 'liveReport';
|
|
4369
|
+
name: string;
|
|
4370
|
+
agent?: string;
|
|
4371
|
+
cadence?: 'DAILY' | 'WEEKLY' | 'MONTHLY';
|
|
4372
|
+
dashboard?: string;
|
|
4373
|
+
deliveryHour?: number;
|
|
4374
|
+
description?: string;
|
|
4375
|
+
displayName?: string;
|
|
4376
|
+
enabled?: boolean;
|
|
4377
|
+
filters?: Array<LiveReportConfig.Filter>;
|
|
4378
|
+
includeTranscriptExcerpts?: boolean;
|
|
4379
|
+
notify?: LiveReportConfig.Notify;
|
|
4380
|
+
targets?: Array<LiveReportConfig.Target>;
|
|
4381
|
+
timezone?: string;
|
|
4382
|
+
}
|
|
4383
|
+
namespace LiveReportConfig {
|
|
4384
|
+
interface Filter {
|
|
4385
|
+
type: 'CALL_PROPERTY' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
|
|
4386
|
+
operator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO' | 'CONTAINS' | 'STARTS_WITH' | 'IS_SET' | 'IS_NOT_SET';
|
|
4387
|
+
property?: string;
|
|
4388
|
+
value?: string | number | boolean;
|
|
4389
|
+
}
|
|
4390
|
+
interface Notify {
|
|
4391
|
+
email?: boolean | Array<string>;
|
|
4392
|
+
slack?: Array<Notify.Slack>;
|
|
4393
|
+
}
|
|
4394
|
+
namespace Notify {
|
|
4395
|
+
interface Slack {
|
|
4396
|
+
channelId: string;
|
|
4397
|
+
channelName: string;
|
|
4398
|
+
}
|
|
4399
|
+
}
|
|
4400
|
+
interface Target {
|
|
4401
|
+
metric: string;
|
|
4402
|
+
value: number;
|
|
4403
|
+
aggregation?: 'PASS_RATE' | 'AVG' | 'MEDIAN' | 'PERCENTILE' | 'MIN' | 'MAX';
|
|
4404
|
+
comparator?: 'AT_LEAST' | 'AT_MOST';
|
|
4405
|
+
label?: string;
|
|
4406
|
+
passOperator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO';
|
|
4407
|
+
passValue?: string | number | boolean;
|
|
4408
|
+
percentile?: number;
|
|
4409
|
+
}
|
|
4410
|
+
}
|
|
3930
4411
|
}
|
|
3931
4412
|
}
|
|
3932
4413
|
export declare namespace Config {
|