@roarkanalytics/sdk 3.19.0 → 3.20.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.
@@ -269,7 +269,9 @@ export declare namespace SimulationRunParams {
269
269
 
270
270
  /**
271
271
  * Customer flows to include in this run plan. The same flow can appear more than
272
- * once with a different persona override or different variables.
272
+ * once with a different persona override, different variables, or different
273
+ * `overrides`: attaching it once per value of one property is how you compare that
274
+ * property without a template.
273
275
  */
274
276
  flows?: Array<Plan.Flow>;
275
277
 
@@ -408,6 +410,18 @@ export declare namespace SimulationRunParams {
408
410
  */
409
411
  happyPath?: boolean;
410
412
 
413
+ /**
414
+ * Persona and environment properties to change for this attachment only, without
415
+ * editing the persona or the environment themselves. Each entry patches the
416
+ * per-run snapshot this attachment records, so the flow runs as a caller with that
417
+ * accent, or over that background noise, and everything else stays as authored.
418
+ *
419
+ * This is how you attach the same flow twice and vary one thing between them,
420
+ * which is what a sweep template builds for you. One value per property; a
421
+ * property named twice is rejected.
422
+ */
423
+ overrides?: Array<Flow.Override>;
424
+
411
425
  /**
412
426
  * Runs everything this attachment resolves as that persona instead of its own.
413
427
  */
@@ -451,6 +465,28 @@ export declare namespace SimulationRunParams {
451
465
  */
452
466
  variables?: { [key: string]: string };
453
467
  }
468
+
469
+ /**
470
+ * One persona or environment property, changed for this flow attachment only.
471
+ */
472
+ export interface Override {
473
+ property:
474
+ | 'ACCENT'
475
+ | 'AGE'
476
+ | 'BACKGROUND_NOISE'
477
+ | 'BACKGROUND_NOISE_VOLUME'
478
+ | 'BASE_EMOTION'
479
+ | 'CONFIRMATION_STYLE'
480
+ | 'GENDER'
481
+ | 'INTENT_CLARITY'
482
+ | 'LANGUAGE'
483
+ | 'MEMORY_RELIABILITY'
484
+ | 'RESPONSE_TIMING'
485
+ | 'SPEECH_CLARITY'
486
+ | 'SPEECH_PACE';
487
+
488
+ value: string;
489
+ }
454
490
  }
455
491
 
456
492
  export interface Persona {
@@ -596,6 +632,30 @@ export declare namespace SimulationRunParams {
596
632
  */
597
633
  template: string;
598
634
 
635
+ /**
636
+ * The value of the sweep every other value is measured against. Defaults to the
637
+ * template's own baseline, as returned by GET /v1/simulation/template.
638
+ *
639
+ * Send it with `comparisonValues` and it must be one of them, or the request is
640
+ * rejected: anchoring every difference to an arm the run never made would measure
641
+ * it against nothing. Leave it out and the template's own baseline is used, and
642
+ * quietly dropped if your narrowing excluded it, since that one you did not
643
+ * choose.
644
+ */
645
+ comparisonBaseline?: string | null;
646
+
647
+ /**
648
+ * Which values of the sweep to run, for a template that sweeps one (GET
649
+ * /v1/simulation/template returns `sweep.property` for those that do). This is
650
+ * what the run costs: the flow is called once per value, so ten values is ten
651
+ * times the calls of one.
652
+ *
653
+ * Omit it to run every value the property has, which for `accent-handling` is more
654
+ * than twenty. Send a subset to narrow it, for example the three accents you
655
+ * actually serve.
656
+ */
657
+ comparisonValues?: Array<string>;
658
+
599
659
  /**
600
660
  * Phrases that trigger end of call. Empty array disables the feature.
601
661
  */
@@ -714,6 +774,18 @@ export declare namespace SimulationRunParams {
714
774
  */
715
775
  happyPath?: boolean;
716
776
 
777
+ /**
778
+ * Persona and environment properties to change for this attachment only, without
779
+ * editing the persona or the environment themselves. Each entry patches the
780
+ * per-run snapshot this attachment records, so the flow runs as a caller with that
781
+ * accent, or over that background noise, and everything else stays as authored.
782
+ *
783
+ * This is how you attach the same flow twice and vary one thing between them,
784
+ * which is what a sweep template builds for you. One value per property; a
785
+ * property named twice is rejected.
786
+ */
787
+ overrides?: Array<Flow.Override>;
788
+
717
789
  /**
718
790
  * Runs everything this attachment resolves as that persona instead of its own.
719
791
  */
@@ -757,6 +829,28 @@ export declare namespace SimulationRunParams {
757
829
  */
758
830
  variables?: { [key: string]: string };
759
831
  }
832
+
833
+ /**
834
+ * One persona or environment property, changed for this flow attachment only.
835
+ */
836
+ export interface Override {
837
+ property:
838
+ | 'ACCENT'
839
+ | 'AGE'
840
+ | 'BACKGROUND_NOISE'
841
+ | 'BACKGROUND_NOISE_VOLUME'
842
+ | 'BASE_EMOTION'
843
+ | 'CONFIRMATION_STYLE'
844
+ | 'GENDER'
845
+ | 'INTENT_CLARITY'
846
+ | 'LANGUAGE'
847
+ | 'MEMORY_RELIABILITY'
848
+ | 'RESPONSE_TIMING'
849
+ | 'SPEECH_CLARITY'
850
+ | 'SPEECH_PACE';
851
+
852
+ value: string;
853
+ }
760
854
  }
761
855
 
762
856
  export interface UnionMember1 {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.19.0'; // x-release-please-version
1
+ export const VERSION = '3.20.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.19.0";
1
+ export declare const VERSION = "3.20.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.19.0";
1
+ export declare const VERSION = "3.20.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 = '3.19.0'; // x-release-please-version
4
+ exports.VERSION = '3.20.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.19.0'; // x-release-please-version
1
+ export const VERSION = '3.20.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map