@roarkanalytics/sdk 5.6.0 → 5.8.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.
@@ -181,6 +181,63 @@ export namespace MetricPolicyCreateResponse {
181
181
 
182
182
  export interface Metric {
183
183
  id: string;
184
+
185
+ /**
186
+ * The metric's per-collector setting. A metric takes at most one field, and which
187
+ * one depends on the metric: verifiedProperties for Property Verification,
188
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
189
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
190
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
191
+ * take is rejected with a 400.
192
+ */
193
+ settings: Metric.Settings | null;
194
+ }
195
+
196
+ export namespace Metric {
197
+ /**
198
+ * The metric's per-collector setting. A metric takes at most one field, and which
199
+ * one depends on the metric: verifiedProperties for Property Verification,
200
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
201
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
202
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
203
+ * take is rejected with a 400.
204
+ */
205
+ export interface Settings {
206
+ /**
207
+ * Voice consistency metrics: phrases whose agent lines are not judged, such as a
208
+ * recorded prompt in a different voice.
209
+ */
210
+ excludedPhrases?: Array<string>;
211
+
212
+ /**
213
+ * Knowledge grounding metrics: the knowledge base documents to ground against, in
214
+ * priority order. Empty or omitted uses every knowledge base in the project.
215
+ */
216
+ knowledgeBaseDocumentIds?: Array<string>;
217
+
218
+ /**
219
+ * Call screening metrics: what the agent should say when a screener asks who is
220
+ * calling and why.
221
+ */
222
+ screeningBrief?: string;
223
+
224
+ /**
225
+ * Tool invocation metrics: the tool definitions to score. Empty or omitted scores
226
+ * every tool the agent has.
227
+ */
228
+ toolDefinitionIds?: Array<string>;
229
+
230
+ /**
231
+ * Property Verification metrics: the conversation properties to check against the
232
+ * transcript. Empty or omitted checks every custom property.
233
+ */
234
+ verifiedProperties?: Array<string>;
235
+
236
+ /**
237
+ * Voicemail metrics: the message the agent is expected to leave on voicemail.
238
+ */
239
+ voicemailScript?: string;
240
+ }
184
241
  }
185
242
  }
186
243
  }
@@ -280,6 +337,63 @@ export namespace MetricPolicyUpdateResponse {
280
337
 
281
338
  export interface Metric {
282
339
  id: string;
340
+
341
+ /**
342
+ * The metric's per-collector setting. A metric takes at most one field, and which
343
+ * one depends on the metric: verifiedProperties for Property Verification,
344
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
345
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
346
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
347
+ * take is rejected with a 400.
348
+ */
349
+ settings: Metric.Settings | null;
350
+ }
351
+
352
+ export namespace Metric {
353
+ /**
354
+ * The metric's per-collector setting. A metric takes at most one field, and which
355
+ * one depends on the metric: verifiedProperties for Property Verification,
356
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
357
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
358
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
359
+ * take is rejected with a 400.
360
+ */
361
+ export interface Settings {
362
+ /**
363
+ * Voice consistency metrics: phrases whose agent lines are not judged, such as a
364
+ * recorded prompt in a different voice.
365
+ */
366
+ excludedPhrases?: Array<string>;
367
+
368
+ /**
369
+ * Knowledge grounding metrics: the knowledge base documents to ground against, in
370
+ * priority order. Empty or omitted uses every knowledge base in the project.
371
+ */
372
+ knowledgeBaseDocumentIds?: Array<string>;
373
+
374
+ /**
375
+ * Call screening metrics: what the agent should say when a screener asks who is
376
+ * calling and why.
377
+ */
378
+ screeningBrief?: string;
379
+
380
+ /**
381
+ * Tool invocation metrics: the tool definitions to score. Empty or omitted scores
382
+ * every tool the agent has.
383
+ */
384
+ toolDefinitionIds?: Array<string>;
385
+
386
+ /**
387
+ * Property Verification metrics: the conversation properties to check against the
388
+ * transcript. Empty or omitted checks every custom property.
389
+ */
390
+ verifiedProperties?: Array<string>;
391
+
392
+ /**
393
+ * Voicemail metrics: the message the agent is expected to leave on voicemail.
394
+ */
395
+ voicemailScript?: string;
396
+ }
283
397
  }
284
398
  }
285
399
  }
@@ -381,6 +495,63 @@ export namespace MetricPolicyListResponse {
381
495
 
382
496
  export interface Metric {
383
497
  id: string;
498
+
499
+ /**
500
+ * The metric's per-collector setting. A metric takes at most one field, and which
501
+ * one depends on the metric: verifiedProperties for Property Verification,
502
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
503
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
504
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
505
+ * take is rejected with a 400.
506
+ */
507
+ settings: Metric.Settings | null;
508
+ }
509
+
510
+ export namespace Metric {
511
+ /**
512
+ * The metric's per-collector setting. A metric takes at most one field, and which
513
+ * one depends on the metric: verifiedProperties for Property Verification,
514
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
515
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
516
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
517
+ * take is rejected with a 400.
518
+ */
519
+ export interface Settings {
520
+ /**
521
+ * Voice consistency metrics: phrases whose agent lines are not judged, such as a
522
+ * recorded prompt in a different voice.
523
+ */
524
+ excludedPhrases?: Array<string>;
525
+
526
+ /**
527
+ * Knowledge grounding metrics: the knowledge base documents to ground against, in
528
+ * priority order. Empty or omitted uses every knowledge base in the project.
529
+ */
530
+ knowledgeBaseDocumentIds?: Array<string>;
531
+
532
+ /**
533
+ * Call screening metrics: what the agent should say when a screener asks who is
534
+ * calling and why.
535
+ */
536
+ screeningBrief?: string;
537
+
538
+ /**
539
+ * Tool invocation metrics: the tool definitions to score. Empty or omitted scores
540
+ * every tool the agent has.
541
+ */
542
+ toolDefinitionIds?: Array<string>;
543
+
544
+ /**
545
+ * Property Verification metrics: the conversation properties to check against the
546
+ * transcript. Empty or omitted checks every custom property.
547
+ */
548
+ verifiedProperties?: Array<string>;
549
+
550
+ /**
551
+ * Voicemail metrics: the message the agent is expected to leave on voicemail.
552
+ */
553
+ voicemailScript?: string;
554
+ }
384
555
  }
385
556
  }
386
557
 
@@ -510,13 +681,71 @@ export namespace MetricPolicyGetByIDResponse {
510
681
 
511
682
  export interface Metric {
512
683
  id: string;
684
+
685
+ /**
686
+ * The metric's per-collector setting. A metric takes at most one field, and which
687
+ * one depends on the metric: verifiedProperties for Property Verification,
688
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
689
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
690
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
691
+ * take is rejected with a 400.
692
+ */
693
+ settings: Metric.Settings | null;
694
+ }
695
+
696
+ export namespace Metric {
697
+ /**
698
+ * The metric's per-collector setting. A metric takes at most one field, and which
699
+ * one depends on the metric: verifiedProperties for Property Verification,
700
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
701
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
702
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
703
+ * take is rejected with a 400.
704
+ */
705
+ export interface Settings {
706
+ /**
707
+ * Voice consistency metrics: phrases whose agent lines are not judged, such as a
708
+ * recorded prompt in a different voice.
709
+ */
710
+ excludedPhrases?: Array<string>;
711
+
712
+ /**
713
+ * Knowledge grounding metrics: the knowledge base documents to ground against, in
714
+ * priority order. Empty or omitted uses every knowledge base in the project.
715
+ */
716
+ knowledgeBaseDocumentIds?: Array<string>;
717
+
718
+ /**
719
+ * Call screening metrics: what the agent should say when a screener asks who is
720
+ * calling and why.
721
+ */
722
+ screeningBrief?: string;
723
+
724
+ /**
725
+ * Tool invocation metrics: the tool definitions to score. Empty or omitted scores
726
+ * every tool the agent has.
727
+ */
728
+ toolDefinitionIds?: Array<string>;
729
+
730
+ /**
731
+ * Property Verification metrics: the conversation properties to check against the
732
+ * transcript. Empty or omitted checks every custom property.
733
+ */
734
+ verifiedProperties?: Array<string>;
735
+
736
+ /**
737
+ * Voicemail metrics: the message the agent is expected to leave on voicemail.
738
+ */
739
+ voicemailScript?: string;
740
+ }
513
741
  }
514
742
  }
515
743
  }
516
744
 
517
745
  export interface MetricPolicyCreateParams {
518
746
  /**
519
- * Metric definitions to collect when this policy matches
747
+ * Metric definitions to collect when this policy matches, each with an optional
748
+ * setting
520
749
  */
521
750
  metrics: Array<MetricPolicyCreateParams.Metric>;
522
751
 
@@ -544,7 +773,67 @@ export interface MetricPolicyCreateParams {
544
773
 
545
774
  export namespace MetricPolicyCreateParams {
546
775
  export interface Metric {
776
+ /**
777
+ * The metric definition to collect
778
+ */
547
779
  id: string;
780
+
781
+ /**
782
+ * The metric's per-collector setting. A metric takes at most one field, and which
783
+ * one depends on the metric: verifiedProperties for Property Verification,
784
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
785
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
786
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
787
+ * take is rejected with a 400.
788
+ */
789
+ settings?: Metric.Settings | null;
790
+ }
791
+
792
+ export namespace Metric {
793
+ /**
794
+ * The metric's per-collector setting. A metric takes at most one field, and which
795
+ * one depends on the metric: verifiedProperties for Property Verification,
796
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
797
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
798
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
799
+ * take is rejected with a 400.
800
+ */
801
+ export interface Settings {
802
+ /**
803
+ * Voice consistency metrics: phrases whose agent lines are not judged, such as a
804
+ * recorded prompt in a different voice.
805
+ */
806
+ excludedPhrases?: Array<string>;
807
+
808
+ /**
809
+ * Knowledge grounding metrics: the knowledge base documents to ground against, in
810
+ * priority order. Empty or omitted uses every knowledge base in the project.
811
+ */
812
+ knowledgeBaseDocumentIds?: Array<string>;
813
+
814
+ /**
815
+ * Call screening metrics: what the agent should say when a screener asks who is
816
+ * calling and why.
817
+ */
818
+ screeningBrief?: string;
819
+
820
+ /**
821
+ * Tool invocation metrics: the tool definitions to score. Empty or omitted scores
822
+ * every tool the agent has.
823
+ */
824
+ toolDefinitionIds?: Array<string>;
825
+
826
+ /**
827
+ * Property Verification metrics: the conversation properties to check against the
828
+ * transcript. Empty or omitted checks every custom property.
829
+ */
830
+ verifiedProperties?: Array<string>;
831
+
832
+ /**
833
+ * Voicemail metrics: the message the agent is expected to leave on voicemail.
834
+ */
835
+ voicemailScript?: string;
836
+ }
548
837
  }
549
838
 
550
839
  export interface Condition {
@@ -595,7 +884,9 @@ export interface MetricPolicyUpdateParams {
595
884
  conditions?: Array<MetricPolicyUpdateParams.Condition>;
596
885
 
597
886
  /**
598
- * Metric definitions to collect when this policy matches
887
+ * Metric definitions to collect when this policy matches. Replaces the policy's
888
+ * whole metric list: a metric sent without settings goes back to its default, so
889
+ * resend a metric's settings to keep them. Omit to keep the current metrics.
599
890
  */
600
891
  metrics?: Array<MetricPolicyUpdateParams.Metric>;
601
892
 
@@ -651,7 +942,67 @@ export namespace MetricPolicyUpdateParams {
651
942
  }
652
943
 
653
944
  export interface Metric {
945
+ /**
946
+ * The metric definition to collect
947
+ */
654
948
  id: string;
949
+
950
+ /**
951
+ * The metric's per-collector setting. A metric takes at most one field, and which
952
+ * one depends on the metric: verifiedProperties for Property Verification,
953
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
954
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
955
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
956
+ * take is rejected with a 400.
957
+ */
958
+ settings?: Metric.Settings | null;
959
+ }
960
+
961
+ export namespace Metric {
962
+ /**
963
+ * The metric's per-collector setting. A metric takes at most one field, and which
964
+ * one depends on the metric: verifiedProperties for Property Verification,
965
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
966
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
967
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
968
+ * take is rejected with a 400.
969
+ */
970
+ export interface Settings {
971
+ /**
972
+ * Voice consistency metrics: phrases whose agent lines are not judged, such as a
973
+ * recorded prompt in a different voice.
974
+ */
975
+ excludedPhrases?: Array<string>;
976
+
977
+ /**
978
+ * Knowledge grounding metrics: the knowledge base documents to ground against, in
979
+ * priority order. Empty or omitted uses every knowledge base in the project.
980
+ */
981
+ knowledgeBaseDocumentIds?: Array<string>;
982
+
983
+ /**
984
+ * Call screening metrics: what the agent should say when a screener asks who is
985
+ * calling and why.
986
+ */
987
+ screeningBrief?: string;
988
+
989
+ /**
990
+ * Tool invocation metrics: the tool definitions to score. Empty or omitted scores
991
+ * every tool the agent has.
992
+ */
993
+ toolDefinitionIds?: Array<string>;
994
+
995
+ /**
996
+ * Property Verification metrics: the conversation properties to check against the
997
+ * transcript. Empty or omitted checks every custom property.
998
+ */
999
+ verifiedProperties?: Array<string>;
1000
+
1001
+ /**
1002
+ * Voicemail metrics: the message the agent is expected to leave on voicemail.
1003
+ */
1004
+ voicemailScript?: string;
1005
+ }
655
1006
  }
656
1007
  }
657
1008
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.6.0'; // x-release-please-version
1
+ export const VERSION = '5.8.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.6.0";
1
+ export declare const VERSION = "5.8.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.6.0";
1
+ export declare const VERSION = "5.8.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '5.6.0'; // x-release-please-version
4
+ exports.VERSION = '5.8.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.6.0'; // x-release-please-version
1
+ export const VERSION = '5.8.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map