@roarkanalytics/sdk 6.1.0 → 7.0.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.
Files changed (86) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/client.d.mts +9 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +9 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/lib/config.d.mts +12 -0
  11. package/lib/config.d.mts.map +1 -1
  12. package/lib/config.d.ts +12 -0
  13. package/lib/config.d.ts.map +1 -1
  14. package/lib/config.js +11 -1
  15. package/lib/config.js.map +1 -1
  16. package/lib/config.mjs +9 -0
  17. package/lib/config.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/calendar-connection.d.mts +897 -0
  20. package/resources/calendar-connection.d.mts.map +1 -0
  21. package/resources/calendar-connection.d.ts +897 -0
  22. package/resources/calendar-connection.d.ts.map +1 -0
  23. package/resources/calendar-connection.js +143 -0
  24. package/resources/calendar-connection.js.map +1 -0
  25. package/resources/calendar-connection.mjs +139 -0
  26. package/resources/calendar-connection.mjs.map +1 -0
  27. package/resources/call.d.mts +2 -0
  28. package/resources/call.d.mts.map +1 -1
  29. package/resources/call.d.ts +2 -0
  30. package/resources/call.d.ts.map +1 -1
  31. package/resources/config.d.mts +506 -26
  32. package/resources/config.d.mts.map +1 -1
  33. package/resources/config.d.ts +506 -26
  34. package/resources/config.d.ts.map +1 -1
  35. package/resources/http-request-definition.d.mts +4 -4
  36. package/resources/http-request-definition.d.mts.map +1 -1
  37. package/resources/http-request-definition.d.ts +4 -4
  38. package/resources/http-request-definition.d.ts.map +1 -1
  39. package/resources/index.d.mts +3 -0
  40. package/resources/index.d.mts.map +1 -1
  41. package/resources/index.d.ts +3 -0
  42. package/resources/index.d.ts.map +1 -1
  43. package/resources/index.js +7 -1
  44. package/resources/index.js.map +1 -1
  45. package/resources/index.mjs +3 -0
  46. package/resources/index.mjs.map +1 -1
  47. package/resources/live-report.d.mts +1830 -0
  48. package/resources/live-report.d.mts.map +1 -0
  49. package/resources/live-report.d.ts +1830 -0
  50. package/resources/live-report.d.ts.map +1 -0
  51. package/resources/live-report.js +131 -0
  52. package/resources/live-report.js.map +1 -0
  53. package/resources/live-report.mjs +127 -0
  54. package/resources/live-report.mjs.map +1 -0
  55. package/resources/metric-variant.d.mts +5 -0
  56. package/resources/metric-variant.d.mts.map +1 -1
  57. package/resources/metric-variant.d.ts +5 -0
  58. package/resources/metric-variant.d.ts.map +1 -1
  59. package/resources/metric.d.mts +90 -0
  60. package/resources/metric.d.mts.map +1 -1
  61. package/resources/metric.d.ts +90 -0
  62. package/resources/metric.d.ts.map +1 -1
  63. package/resources/tool.d.mts +671 -0
  64. package/resources/tool.d.mts.map +1 -0
  65. package/resources/tool.d.ts +671 -0
  66. package/resources/tool.d.ts.map +1 -0
  67. package/resources/tool.js +83 -0
  68. package/resources/tool.js.map +1 -0
  69. package/resources/tool.mjs +79 -0
  70. package/resources/tool.mjs.map +1 -0
  71. package/src/client.ts +95 -0
  72. package/src/lib/config.ts +22 -0
  73. package/src/resources/calendar-connection.ts +1103 -0
  74. package/src/resources/call.ts +4 -0
  75. package/src/resources/config.ts +937 -23
  76. package/src/resources/http-request-definition.ts +4 -4
  77. package/src/resources/index.ts +43 -0
  78. package/src/resources/live-report.ts +3036 -0
  79. package/src/resources/metric-variant.ts +6 -0
  80. package/src/resources/metric.ts +108 -0
  81. package/src/resources/tool.ts +884 -0
  82. package/src/version.ts +1 -1
  83. package/version.d.mts +1 -1
  84. package/version.d.ts +1 -1
  85. package/version.js +1 -1
  86. package/version.mjs +1 -1
@@ -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.Handler;
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 Handler {
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.Handler;
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 Handler {
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,6 +1417,50 @@ 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 {
@@ -1345,7 +1505,7 @@ export declare namespace ConfigApplyResponse {
1345
1505
  namespace Data {
1346
1506
  interface Change {
1347
1507
  configKey: string;
1348
- kind: 'agent' | 'persona' | 'httpRequestDefinition' | 'flow' | 'collector' | 'metric' | 'simulationPlan' | 'simulationGroup' | 'alert' | 'tool' | 'dashboard' | 'project' | 'member';
1508
+ kind: 'agent' | 'persona' | 'httpRequestDefinition' | 'flow' | 'collector' | 'metric' | 'simulationPlan' | 'simulationGroup' | 'alert' | 'tool' | 'dashboard' | 'liveReport' | 'project' | 'member';
1349
1509
  name: string;
1350
1510
  op: 'create' | 'update' | 'delete' | 'noop';
1351
1511
  status: 'applied' | 'skipped' | 'failed';
@@ -1375,7 +1535,7 @@ export declare namespace ConfigDiffResponse {
1375
1535
  namespace Data {
1376
1536
  interface Change {
1377
1537
  configKey: string;
1378
- kind: 'agent' | 'persona' | 'httpRequestDefinition' | 'flow' | 'collector' | 'metric' | 'simulationPlan' | 'simulationGroup' | 'alert' | 'tool' | 'dashboard' | 'project' | 'member';
1538
+ kind: 'agent' | 'persona' | 'httpRequestDefinition' | 'flow' | 'collector' | 'metric' | 'simulationPlan' | 'simulationGroup' | 'alert' | 'tool' | 'dashboard' | 'liveReport' | 'project' | 'member';
1379
1539
  name: string;
1380
1540
  op: 'create' | 'update' | 'delete' | 'noop';
1381
1541
  detail?: string;
@@ -1390,7 +1550,7 @@ export declare namespace ConfigDiffResponse {
1390
1550
  }
1391
1551
  }
1392
1552
  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>;
1553
+ 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
1554
  prune?: boolean;
1395
1555
  }
1396
1556
  export declare namespace ConfigApplyParams {
@@ -1492,8 +1652,10 @@ export declare namespace ConfigApplyParams {
1492
1652
  agents?: Array<string>;
1493
1653
  branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
1494
1654
  description?: string | null;
1655
+ environment?: string;
1495
1656
  expectations?: Array<string>;
1496
1657
  offScript?: ScriptedFlowConfig.OffScript;
1658
+ persona?: string;
1497
1659
  title?: string;
1498
1660
  }
1499
1661
  namespace ScriptedFlowConfig {
@@ -1543,6 +1705,7 @@ export declare namespace ConfigApplyParams {
1543
1705
  contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
1544
1706
  displayName?: string;
1545
1707
  falseLabel?: string;
1708
+ gradesShortCalls?: boolean;
1546
1709
  maxSelections?: number;
1547
1710
  options?: Array<MetricConfig.Option>;
1548
1711
  participantRole?: 'AGENT' | 'CUSTOMER';
@@ -1574,6 +1737,7 @@ export declare namespace ConfigApplyParams {
1574
1737
  name: string;
1575
1738
  displayName?: string;
1576
1739
  falseLabel?: string;
1740
+ gradesShortCalls?: boolean;
1577
1741
  trueLabel?: string;
1578
1742
  }
1579
1743
  namespace APICheckMetricConfig {
@@ -1606,7 +1770,7 @@ export declare namespace ConfigApplyParams {
1606
1770
  flows: Array<SimulationPlanConfig.Flow>;
1607
1771
  kind: 'simulationPlan';
1608
1772
  maxDurationSeconds: number;
1609
- metrics: Array<string>;
1773
+ metrics: Array<string | SimulationPlanConfig.SimulationPlanMetricConfig>;
1610
1774
  name: string;
1611
1775
  description?: string | null;
1612
1776
  endCallPhrases?: Array<string>;
@@ -1637,6 +1801,10 @@ export declare namespace ConfigApplyParams {
1637
1801
  personaOverride?: string;
1638
1802
  system?: string;
1639
1803
  }
1804
+ interface SimulationPlanMetricConfig {
1805
+ metric: string;
1806
+ minPassRate?: number;
1807
+ }
1640
1808
  interface Notify {
1641
1809
  email?: boolean | Array<string>;
1642
1810
  slack?: Array<Notify.Slack>;
@@ -1908,19 +2076,47 @@ export declare namespace ConfigApplyParams {
1908
2076
  kind: 'tool';
1909
2077
  name: string;
1910
2078
  agent?: string;
2079
+ changesData?: boolean;
1911
2080
  description?: string | null;
1912
2081
  expectedResult?: string | null;
1913
- handler?: ToolConfig.Handler;
2082
+ handler?: ToolConfig.UnionMember0 | ToolConfig.UnionMember1;
1914
2083
  invocationCriteria?: string | null;
2084
+ messages?: ToolConfig.Messages;
1915
2085
  parameters?: {
1916
2086
  [key: string]: 'string' | 'number' | 'boolean';
1917
2087
  };
2088
+ responseFields?: Array<string>;
1918
2089
  }
1919
2090
  namespace ToolConfig {
1920
- interface Handler {
2091
+ interface UnionMember0 {
1921
2092
  type: 'http';
1922
2093
  url: string;
2094
+ body?: string;
2095
+ headers?: {
2096
+ [key: string]: string;
2097
+ };
1923
2098
  method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
2099
+ timeoutMs?: number;
2100
+ }
2101
+ interface UnionMember1 {
2102
+ appointmentTypes: Array<UnionMember1.AppointmentType>;
2103
+ calendarConnection: string;
2104
+ operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
2105
+ type: 'calendar';
2106
+ simulate?: boolean | null;
2107
+ }
2108
+ namespace UnionMember1 {
2109
+ interface AppointmentType {
2110
+ eventTypeId: number;
2111
+ name: string;
2112
+ durationMinutes?: number | null;
2113
+ whenToUse?: string | null;
2114
+ }
2115
+ }
2116
+ interface Messages {
2117
+ before?: string;
2118
+ failure?: string;
2119
+ slow?: string;
1924
2120
  }
1925
2121
  }
1926
2122
  interface DashboardConfig {
@@ -2018,6 +2214,50 @@ export declare namespace ConfigApplyParams {
2018
2214
  }
2019
2215
  }
2020
2216
  }
2217
+ interface LiveReportConfig {
2218
+ kind: 'liveReport';
2219
+ name: string;
2220
+ agent?: string;
2221
+ cadence?: 'DAILY' | 'WEEKLY' | 'MONTHLY';
2222
+ dashboard?: string;
2223
+ deliveryHour?: number;
2224
+ description?: string;
2225
+ displayName?: string;
2226
+ enabled?: boolean;
2227
+ filters?: Array<LiveReportConfig.Filter>;
2228
+ includeTranscriptExcerpts?: boolean;
2229
+ notify?: LiveReportConfig.Notify;
2230
+ targets?: Array<LiveReportConfig.Target>;
2231
+ timezone?: string;
2232
+ }
2233
+ namespace LiveReportConfig {
2234
+ interface Filter {
2235
+ type: 'CALL_PROPERTY' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
2236
+ 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';
2237
+ property?: string;
2238
+ value?: string | number | boolean;
2239
+ }
2240
+ interface Notify {
2241
+ email?: boolean | Array<string>;
2242
+ slack?: Array<Notify.Slack>;
2243
+ }
2244
+ namespace Notify {
2245
+ interface Slack {
2246
+ channelId: string;
2247
+ channelName: string;
2248
+ }
2249
+ }
2250
+ interface Target {
2251
+ metric: string;
2252
+ value: number;
2253
+ aggregation?: 'PASS_RATE' | 'AVG' | 'MEDIAN' | 'PERCENTILE' | 'MIN' | 'MAX';
2254
+ comparator?: 'AT_LEAST' | 'AT_MOST';
2255
+ label?: string;
2256
+ passOperator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO';
2257
+ passValue?: string | number | boolean;
2258
+ percentile?: number;
2259
+ }
2260
+ }
2021
2261
  interface ProjectConfig {
2022
2262
  kind: 'project';
2023
2263
  name: string;
@@ -2026,7 +2266,7 @@ export declare namespace ConfigApplyParams {
2026
2266
  description?: string;
2027
2267
  displayName?: string;
2028
2268
  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>;
2269
+ 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
2270
  }
2031
2271
  namespace ProjectConfig {
2032
2272
  interface Member {
@@ -2131,8 +2371,10 @@ export declare namespace ConfigApplyParams {
2131
2371
  agents?: Array<string>;
2132
2372
  branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
2133
2373
  description?: string | null;
2374
+ environment?: string;
2134
2375
  expectations?: Array<string>;
2135
2376
  offScript?: ScriptedFlowConfig.OffScript;
2377
+ persona?: string;
2136
2378
  title?: string;
2137
2379
  }
2138
2380
  namespace ScriptedFlowConfig {
@@ -2182,6 +2424,7 @@ export declare namespace ConfigApplyParams {
2182
2424
  contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
2183
2425
  displayName?: string;
2184
2426
  falseLabel?: string;
2427
+ gradesShortCalls?: boolean;
2185
2428
  maxSelections?: number;
2186
2429
  options?: Array<MetricConfig.Option>;
2187
2430
  participantRole?: 'AGENT' | 'CUSTOMER';
@@ -2213,6 +2456,7 @@ export declare namespace ConfigApplyParams {
2213
2456
  name: string;
2214
2457
  displayName?: string;
2215
2458
  falseLabel?: string;
2459
+ gradesShortCalls?: boolean;
2216
2460
  trueLabel?: string;
2217
2461
  }
2218
2462
  namespace APICheckMetricConfig {
@@ -2245,7 +2489,7 @@ export declare namespace ConfigApplyParams {
2245
2489
  flows: Array<SimulationPlanConfig.Flow>;
2246
2490
  kind: 'simulationPlan';
2247
2491
  maxDurationSeconds: number;
2248
- metrics: Array<string>;
2492
+ metrics: Array<string | SimulationPlanConfig.SimulationPlanMetricConfig>;
2249
2493
  name: string;
2250
2494
  description?: string | null;
2251
2495
  endCallPhrases?: Array<string>;
@@ -2276,6 +2520,10 @@ export declare namespace ConfigApplyParams {
2276
2520
  personaOverride?: string;
2277
2521
  system?: string;
2278
2522
  }
2523
+ interface SimulationPlanMetricConfig {
2524
+ metric: string;
2525
+ minPassRate?: number;
2526
+ }
2279
2527
  interface Notify {
2280
2528
  email?: boolean | Array<string>;
2281
2529
  slack?: Array<Notify.Slack>;
@@ -2547,19 +2795,47 @@ export declare namespace ConfigApplyParams {
2547
2795
  kind: 'tool';
2548
2796
  name: string;
2549
2797
  agent?: string;
2798
+ changesData?: boolean;
2550
2799
  description?: string | null;
2551
2800
  expectedResult?: string | null;
2552
- handler?: ToolConfig.Handler;
2801
+ handler?: ToolConfig.UnionMember0 | ToolConfig.UnionMember1;
2553
2802
  invocationCriteria?: string | null;
2803
+ messages?: ToolConfig.Messages;
2554
2804
  parameters?: {
2555
2805
  [key: string]: 'string' | 'number' | 'boolean';
2556
2806
  };
2807
+ responseFields?: Array<string>;
2557
2808
  }
2558
2809
  namespace ToolConfig {
2559
- interface Handler {
2810
+ interface UnionMember0 {
2560
2811
  type: 'http';
2561
2812
  url: string;
2813
+ body?: string;
2814
+ headers?: {
2815
+ [key: string]: string;
2816
+ };
2562
2817
  method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
2818
+ timeoutMs?: number;
2819
+ }
2820
+ interface UnionMember1 {
2821
+ appointmentTypes: Array<UnionMember1.AppointmentType>;
2822
+ calendarConnection: string;
2823
+ operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
2824
+ type: 'calendar';
2825
+ simulate?: boolean | null;
2826
+ }
2827
+ namespace UnionMember1 {
2828
+ interface AppointmentType {
2829
+ eventTypeId: number;
2830
+ name: string;
2831
+ durationMinutes?: number | null;
2832
+ whenToUse?: string | null;
2833
+ }
2834
+ }
2835
+ interface Messages {
2836
+ before?: string;
2837
+ failure?: string;
2838
+ slow?: string;
2563
2839
  }
2564
2840
  }
2565
2841
  interface DashboardConfig {
@@ -2657,10 +2933,54 @@ export declare namespace ConfigApplyParams {
2657
2933
  }
2658
2934
  }
2659
2935
  }
2936
+ interface LiveReportConfig {
2937
+ kind: 'liveReport';
2938
+ name: string;
2939
+ agent?: string;
2940
+ cadence?: 'DAILY' | 'WEEKLY' | 'MONTHLY';
2941
+ dashboard?: string;
2942
+ deliveryHour?: number;
2943
+ description?: string;
2944
+ displayName?: string;
2945
+ enabled?: boolean;
2946
+ filters?: Array<LiveReportConfig.Filter>;
2947
+ includeTranscriptExcerpts?: boolean;
2948
+ notify?: LiveReportConfig.Notify;
2949
+ targets?: Array<LiveReportConfig.Target>;
2950
+ timezone?: string;
2951
+ }
2952
+ namespace LiveReportConfig {
2953
+ interface Filter {
2954
+ type: 'CALL_PROPERTY' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
2955
+ 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';
2956
+ property?: string;
2957
+ value?: string | number | boolean;
2958
+ }
2959
+ interface Notify {
2960
+ email?: boolean | Array<string>;
2961
+ slack?: Array<Notify.Slack>;
2962
+ }
2963
+ namespace Notify {
2964
+ interface Slack {
2965
+ channelId: string;
2966
+ channelName: string;
2967
+ }
2968
+ }
2969
+ interface Target {
2970
+ metric: string;
2971
+ value: number;
2972
+ aggregation?: 'PASS_RATE' | 'AVG' | 'MEDIAN' | 'PERCENTILE' | 'MIN' | 'MAX';
2973
+ comparator?: 'AT_LEAST' | 'AT_MOST';
2974
+ label?: string;
2975
+ passOperator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO';
2976
+ passValue?: string | number | boolean;
2977
+ percentile?: number;
2978
+ }
2979
+ }
2660
2980
  }
2661
2981
  }
2662
2982
  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>;
2983
+ 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
2984
  prune?: boolean;
2665
2985
  }
2666
2986
  export declare namespace ConfigDiffParams {
@@ -2762,8 +3082,10 @@ export declare namespace ConfigDiffParams {
2762
3082
  agents?: Array<string>;
2763
3083
  branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
2764
3084
  description?: string | null;
3085
+ environment?: string;
2765
3086
  expectations?: Array<string>;
2766
3087
  offScript?: ScriptedFlowConfig.OffScript;
3088
+ persona?: string;
2767
3089
  title?: string;
2768
3090
  }
2769
3091
  namespace ScriptedFlowConfig {
@@ -2813,6 +3135,7 @@ export declare namespace ConfigDiffParams {
2813
3135
  contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
2814
3136
  displayName?: string;
2815
3137
  falseLabel?: string;
3138
+ gradesShortCalls?: boolean;
2816
3139
  maxSelections?: number;
2817
3140
  options?: Array<MetricConfig.Option>;
2818
3141
  participantRole?: 'AGENT' | 'CUSTOMER';
@@ -2844,6 +3167,7 @@ export declare namespace ConfigDiffParams {
2844
3167
  name: string;
2845
3168
  displayName?: string;
2846
3169
  falseLabel?: string;
3170
+ gradesShortCalls?: boolean;
2847
3171
  trueLabel?: string;
2848
3172
  }
2849
3173
  namespace APICheckMetricConfig {
@@ -2876,7 +3200,7 @@ export declare namespace ConfigDiffParams {
2876
3200
  flows: Array<SimulationPlanConfig.Flow>;
2877
3201
  kind: 'simulationPlan';
2878
3202
  maxDurationSeconds: number;
2879
- metrics: Array<string>;
3203
+ metrics: Array<string | SimulationPlanConfig.SimulationPlanMetricConfig>;
2880
3204
  name: string;
2881
3205
  description?: string | null;
2882
3206
  endCallPhrases?: Array<string>;
@@ -2907,6 +3231,10 @@ export declare namespace ConfigDiffParams {
2907
3231
  personaOverride?: string;
2908
3232
  system?: string;
2909
3233
  }
3234
+ interface SimulationPlanMetricConfig {
3235
+ metric: string;
3236
+ minPassRate?: number;
3237
+ }
2910
3238
  interface Notify {
2911
3239
  email?: boolean | Array<string>;
2912
3240
  slack?: Array<Notify.Slack>;
@@ -3178,19 +3506,47 @@ export declare namespace ConfigDiffParams {
3178
3506
  kind: 'tool';
3179
3507
  name: string;
3180
3508
  agent?: string;
3509
+ changesData?: boolean;
3181
3510
  description?: string | null;
3182
3511
  expectedResult?: string | null;
3183
- handler?: ToolConfig.Handler;
3512
+ handler?: ToolConfig.UnionMember0 | ToolConfig.UnionMember1;
3184
3513
  invocationCriteria?: string | null;
3514
+ messages?: ToolConfig.Messages;
3185
3515
  parameters?: {
3186
3516
  [key: string]: 'string' | 'number' | 'boolean';
3187
3517
  };
3518
+ responseFields?: Array<string>;
3188
3519
  }
3189
3520
  namespace ToolConfig {
3190
- interface Handler {
3521
+ interface UnionMember0 {
3191
3522
  type: 'http';
3192
3523
  url: string;
3524
+ body?: string;
3525
+ headers?: {
3526
+ [key: string]: string;
3527
+ };
3193
3528
  method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
3529
+ timeoutMs?: number;
3530
+ }
3531
+ interface UnionMember1 {
3532
+ appointmentTypes: Array<UnionMember1.AppointmentType>;
3533
+ calendarConnection: string;
3534
+ operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
3535
+ type: 'calendar';
3536
+ simulate?: boolean | null;
3537
+ }
3538
+ namespace UnionMember1 {
3539
+ interface AppointmentType {
3540
+ eventTypeId: number;
3541
+ name: string;
3542
+ durationMinutes?: number | null;
3543
+ whenToUse?: string | null;
3544
+ }
3545
+ }
3546
+ interface Messages {
3547
+ before?: string;
3548
+ failure?: string;
3549
+ slow?: string;
3194
3550
  }
3195
3551
  }
3196
3552
  interface DashboardConfig {
@@ -3288,6 +3644,50 @@ export declare namespace ConfigDiffParams {
3288
3644
  }
3289
3645
  }
3290
3646
  }
3647
+ interface LiveReportConfig {
3648
+ kind: 'liveReport';
3649
+ name: string;
3650
+ agent?: string;
3651
+ cadence?: 'DAILY' | 'WEEKLY' | 'MONTHLY';
3652
+ dashboard?: string;
3653
+ deliveryHour?: number;
3654
+ description?: string;
3655
+ displayName?: string;
3656
+ enabled?: boolean;
3657
+ filters?: Array<LiveReportConfig.Filter>;
3658
+ includeTranscriptExcerpts?: boolean;
3659
+ notify?: LiveReportConfig.Notify;
3660
+ targets?: Array<LiveReportConfig.Target>;
3661
+ timezone?: string;
3662
+ }
3663
+ namespace LiveReportConfig {
3664
+ interface Filter {
3665
+ type: 'CALL_PROPERTY' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
3666
+ 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';
3667
+ property?: string;
3668
+ value?: string | number | boolean;
3669
+ }
3670
+ interface Notify {
3671
+ email?: boolean | Array<string>;
3672
+ slack?: Array<Notify.Slack>;
3673
+ }
3674
+ namespace Notify {
3675
+ interface Slack {
3676
+ channelId: string;
3677
+ channelName: string;
3678
+ }
3679
+ }
3680
+ interface Target {
3681
+ metric: string;
3682
+ value: number;
3683
+ aggregation?: 'PASS_RATE' | 'AVG' | 'MEDIAN' | 'PERCENTILE' | 'MIN' | 'MAX';
3684
+ comparator?: 'AT_LEAST' | 'AT_MOST';
3685
+ label?: string;
3686
+ passOperator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO';
3687
+ passValue?: string | number | boolean;
3688
+ percentile?: number;
3689
+ }
3690
+ }
3291
3691
  interface ProjectConfig {
3292
3692
  kind: 'project';
3293
3693
  name: string;
@@ -3296,7 +3696,7 @@ export declare namespace ConfigDiffParams {
3296
3696
  description?: string;
3297
3697
  displayName?: string;
3298
3698
  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>;
3699
+ 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
3700
  }
3301
3701
  namespace ProjectConfig {
3302
3702
  interface Member {
@@ -3401,8 +3801,10 @@ export declare namespace ConfigDiffParams {
3401
3801
  agents?: Array<string>;
3402
3802
  branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
3403
3803
  description?: string | null;
3804
+ environment?: string;
3404
3805
  expectations?: Array<string>;
3405
3806
  offScript?: ScriptedFlowConfig.OffScript;
3807
+ persona?: string;
3406
3808
  title?: string;
3407
3809
  }
3408
3810
  namespace ScriptedFlowConfig {
@@ -3452,6 +3854,7 @@ export declare namespace ConfigDiffParams {
3452
3854
  contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
3453
3855
  displayName?: string;
3454
3856
  falseLabel?: string;
3857
+ gradesShortCalls?: boolean;
3455
3858
  maxSelections?: number;
3456
3859
  options?: Array<MetricConfig.Option>;
3457
3860
  participantRole?: 'AGENT' | 'CUSTOMER';
@@ -3483,6 +3886,7 @@ export declare namespace ConfigDiffParams {
3483
3886
  name: string;
3484
3887
  displayName?: string;
3485
3888
  falseLabel?: string;
3889
+ gradesShortCalls?: boolean;
3486
3890
  trueLabel?: string;
3487
3891
  }
3488
3892
  namespace APICheckMetricConfig {
@@ -3515,7 +3919,7 @@ export declare namespace ConfigDiffParams {
3515
3919
  flows: Array<SimulationPlanConfig.Flow>;
3516
3920
  kind: 'simulationPlan';
3517
3921
  maxDurationSeconds: number;
3518
- metrics: Array<string>;
3922
+ metrics: Array<string | SimulationPlanConfig.SimulationPlanMetricConfig>;
3519
3923
  name: string;
3520
3924
  description?: string | null;
3521
3925
  endCallPhrases?: Array<string>;
@@ -3546,6 +3950,10 @@ export declare namespace ConfigDiffParams {
3546
3950
  personaOverride?: string;
3547
3951
  system?: string;
3548
3952
  }
3953
+ interface SimulationPlanMetricConfig {
3954
+ metric: string;
3955
+ minPassRate?: number;
3956
+ }
3549
3957
  interface Notify {
3550
3958
  email?: boolean | Array<string>;
3551
3959
  slack?: Array<Notify.Slack>;
@@ -3817,19 +4225,47 @@ export declare namespace ConfigDiffParams {
3817
4225
  kind: 'tool';
3818
4226
  name: string;
3819
4227
  agent?: string;
4228
+ changesData?: boolean;
3820
4229
  description?: string | null;
3821
4230
  expectedResult?: string | null;
3822
- handler?: ToolConfig.Handler;
4231
+ handler?: ToolConfig.UnionMember0 | ToolConfig.UnionMember1;
3823
4232
  invocationCriteria?: string | null;
4233
+ messages?: ToolConfig.Messages;
3824
4234
  parameters?: {
3825
4235
  [key: string]: 'string' | 'number' | 'boolean';
3826
4236
  };
4237
+ responseFields?: Array<string>;
3827
4238
  }
3828
4239
  namespace ToolConfig {
3829
- interface Handler {
4240
+ interface UnionMember0 {
3830
4241
  type: 'http';
3831
4242
  url: string;
4243
+ body?: string;
4244
+ headers?: {
4245
+ [key: string]: string;
4246
+ };
3832
4247
  method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
4248
+ timeoutMs?: number;
4249
+ }
4250
+ interface UnionMember1 {
4251
+ appointmentTypes: Array<UnionMember1.AppointmentType>;
4252
+ calendarConnection: string;
4253
+ operation: 'CHECK_AVAILABILITY' | 'BOOK' | 'LOOKUP_BOOKING' | 'RESCHEDULE' | 'CANCEL' | 'LIST_BOOKINGS';
4254
+ type: 'calendar';
4255
+ simulate?: boolean | null;
4256
+ }
4257
+ namespace UnionMember1 {
4258
+ interface AppointmentType {
4259
+ eventTypeId: number;
4260
+ name: string;
4261
+ durationMinutes?: number | null;
4262
+ whenToUse?: string | null;
4263
+ }
4264
+ }
4265
+ interface Messages {
4266
+ before?: string;
4267
+ failure?: string;
4268
+ slow?: string;
3833
4269
  }
3834
4270
  }
3835
4271
  interface DashboardConfig {
@@ -3927,6 +4363,50 @@ export declare namespace ConfigDiffParams {
3927
4363
  }
3928
4364
  }
3929
4365
  }
4366
+ interface LiveReportConfig {
4367
+ kind: 'liveReport';
4368
+ name: string;
4369
+ agent?: string;
4370
+ cadence?: 'DAILY' | 'WEEKLY' | 'MONTHLY';
4371
+ dashboard?: string;
4372
+ deliveryHour?: number;
4373
+ description?: string;
4374
+ displayName?: string;
4375
+ enabled?: boolean;
4376
+ filters?: Array<LiveReportConfig.Filter>;
4377
+ includeTranscriptExcerpts?: boolean;
4378
+ notify?: LiveReportConfig.Notify;
4379
+ targets?: Array<LiveReportConfig.Target>;
4380
+ timezone?: string;
4381
+ }
4382
+ namespace LiveReportConfig {
4383
+ interface Filter {
4384
+ type: 'CALL_PROPERTY' | 'MODALITY' | 'DATASET' | 'METRIC_VALUE';
4385
+ 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';
4386
+ property?: string;
4387
+ value?: string | number | boolean;
4388
+ }
4389
+ interface Notify {
4390
+ email?: boolean | Array<string>;
4391
+ slack?: Array<Notify.Slack>;
4392
+ }
4393
+ namespace Notify {
4394
+ interface Slack {
4395
+ channelId: string;
4396
+ channelName: string;
4397
+ }
4398
+ }
4399
+ interface Target {
4400
+ metric: string;
4401
+ value: number;
4402
+ aggregation?: 'PASS_RATE' | 'AVG' | 'MEDIAN' | 'PERCENTILE' | 'MIN' | 'MAX';
4403
+ comparator?: 'AT_LEAST' | 'AT_MOST';
4404
+ label?: string;
4405
+ passOperator?: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL_TO' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL_TO';
4406
+ passValue?: string | number | boolean;
4407
+ percentile?: number;
4408
+ }
4409
+ }
3930
4410
  }
3931
4411
  }
3932
4412
  export declare namespace Config {