@roarkanalytics/sdk 5.14.0 → 5.16.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.
@@ -279,6 +279,12 @@ export namespace SimulationRunPlanCreateResponse {
279
279
  */
280
280
  noResponseRetryBackoffSeconds: number;
281
281
 
282
+ /**
283
+ * Where each run's report announces itself once it is ready. Email off and no
284
+ * Slack channels means the plan sends none.
285
+ */
286
+ notifications: RunPlan.Notifications;
287
+
282
288
  /**
283
289
  * Personas included in this run plan. Only meaningful alongside `scenarios`.
284
290
  */
@@ -448,6 +454,30 @@ export namespace SimulationRunPlanCreateResponse {
448
454
  minPassRate: number | null;
449
455
  }
450
456
 
457
+ /**
458
+ * Where each run's report announces itself once it is ready. Email off and no
459
+ * Slack channels means the plan sends none.
460
+ */
461
+ export interface Notifications {
462
+ email: Notifications.Email;
463
+
464
+ slack: Array<Notifications.Slack>;
465
+ }
466
+
467
+ export namespace Notifications {
468
+ export interface Email {
469
+ enabled: boolean;
470
+
471
+ recipients: Array<string>;
472
+ }
473
+
474
+ export interface Slack {
475
+ channelId: string;
476
+
477
+ channelName: string;
478
+ }
479
+ }
480
+
451
481
  export interface Persona {
452
482
  id: string;
453
483
  }
@@ -659,6 +689,12 @@ export namespace SimulationRunPlanUpdateResponse {
659
689
  */
660
690
  noResponseRetryBackoffSeconds: number;
661
691
 
692
+ /**
693
+ * Where each run's report announces itself once it is ready. Email off and no
694
+ * Slack channels means the plan sends none.
695
+ */
696
+ notifications: Data.Notifications;
697
+
662
698
  /**
663
699
  * Personas included in this run plan. Only meaningful alongside `scenarios`.
664
700
  */
@@ -828,6 +864,30 @@ export namespace SimulationRunPlanUpdateResponse {
828
864
  minPassRate: number | null;
829
865
  }
830
866
 
867
+ /**
868
+ * Where each run's report announces itself once it is ready. Email off and no
869
+ * Slack channels means the plan sends none.
870
+ */
871
+ export interface Notifications {
872
+ email: Notifications.Email;
873
+
874
+ slack: Array<Notifications.Slack>;
875
+ }
876
+
877
+ export namespace Notifications {
878
+ export interface Email {
879
+ enabled: boolean;
880
+
881
+ recipients: Array<string>;
882
+ }
883
+
884
+ export interface Slack {
885
+ channelId: string;
886
+
887
+ channelName: string;
888
+ }
889
+ }
890
+
831
891
  export interface Persona {
832
892
  id: string;
833
893
  }
@@ -1003,6 +1063,12 @@ export namespace SimulationRunPlanListResponse {
1003
1063
  */
1004
1064
  noResponseRetryBackoffSeconds: number;
1005
1065
 
1066
+ /**
1067
+ * Where each run's report announces itself once it is ready. Email off and no
1068
+ * Slack channels means the plan sends none.
1069
+ */
1070
+ notifications: Data.Notifications;
1071
+
1006
1072
  /**
1007
1073
  * Personas included in this run plan. Only meaningful alongside `scenarios`.
1008
1074
  */
@@ -1172,6 +1238,30 @@ export namespace SimulationRunPlanListResponse {
1172
1238
  minPassRate: number | null;
1173
1239
  }
1174
1240
 
1241
+ /**
1242
+ * Where each run's report announces itself once it is ready. Email off and no
1243
+ * Slack channels means the plan sends none.
1244
+ */
1245
+ export interface Notifications {
1246
+ email: Notifications.Email;
1247
+
1248
+ slack: Array<Notifications.Slack>;
1249
+ }
1250
+
1251
+ export namespace Notifications {
1252
+ export interface Email {
1253
+ enabled: boolean;
1254
+
1255
+ recipients: Array<string>;
1256
+ }
1257
+
1258
+ export interface Slack {
1259
+ channelId: string;
1260
+
1261
+ channelName: string;
1262
+ }
1263
+ }
1264
+
1175
1265
  export interface Persona {
1176
1266
  id: string;
1177
1267
  }
@@ -1375,6 +1465,12 @@ export namespace SimulationRunPlanGetByIDResponse {
1375
1465
  */
1376
1466
  noResponseRetryBackoffSeconds: number;
1377
1467
 
1468
+ /**
1469
+ * Where each run's report announces itself once it is ready. Email off and no
1470
+ * Slack channels means the plan sends none.
1471
+ */
1472
+ notifications: Data.Notifications;
1473
+
1378
1474
  /**
1379
1475
  * Personas included in this run plan. Only meaningful alongside `scenarios`.
1380
1476
  */
@@ -1544,6 +1640,30 @@ export namespace SimulationRunPlanGetByIDResponse {
1544
1640
  minPassRate: number | null;
1545
1641
  }
1546
1642
 
1643
+ /**
1644
+ * Where each run's report announces itself once it is ready. Email off and no
1645
+ * Slack channels means the plan sends none.
1646
+ */
1647
+ export interface Notifications {
1648
+ email: Notifications.Email;
1649
+
1650
+ slack: Array<Notifications.Slack>;
1651
+ }
1652
+
1653
+ export namespace Notifications {
1654
+ export interface Email {
1655
+ enabled: boolean;
1656
+
1657
+ recipients: Array<string>;
1658
+ }
1659
+
1660
+ export interface Slack {
1661
+ channelId: string;
1662
+
1663
+ channelName: string;
1664
+ }
1665
+ }
1666
+
1547
1667
  export interface Persona {
1548
1668
  id: string;
1549
1669
  }
@@ -1785,6 +1905,13 @@ export declare namespace SimulationRunPlanCreateParams {
1785
1905
  */
1786
1906
  noResponseRetryBackoffSeconds?: number;
1787
1907
 
1908
+ /**
1909
+ * Email and/or Slack delivery of each run's report once it is ready, with the
1910
+ * report PDF attached. Each run announces once, off its first report. Omitted: no
1911
+ * notifications.
1912
+ */
1913
+ notifications?: CreateRunPlanFromConfig.Notifications;
1914
+
1788
1915
  /**
1789
1916
  * Personas to include in this run plan. Required with `scenarios`; ignored with
1790
1917
  * `flows`, where each variant carries its own persona.
@@ -1976,6 +2103,48 @@ export declare namespace SimulationRunPlanCreateParams {
1976
2103
  slug?: string;
1977
2104
  }
1978
2105
 
2106
+ /**
2107
+ * Email and/or Slack delivery of each run's report once it is ready, with the
2108
+ * report PDF attached. Each run announces once, off its first report. Omitted: no
2109
+ * notifications.
2110
+ */
2111
+ export interface Notifications {
2112
+ email?: Notifications.Email;
2113
+
2114
+ /**
2115
+ * Channels in the project's connected Slack workspace to post the report to (at
2116
+ * most 10). Slack must be connected to the project first.
2117
+ */
2118
+ slack?: Array<Notifications.Slack>;
2119
+ }
2120
+
2121
+ export namespace Notifications {
2122
+ export interface Email {
2123
+ /**
2124
+ * Whether each run's report is emailed when it is ready.
2125
+ */
2126
+ enabled: boolean;
2127
+
2128
+ /**
2129
+ * Addresses to email (at most 50), Roark users or not: the email attaches the
2130
+ * report PDF. Empty emails every member of the project.
2131
+ */
2132
+ recipients?: Array<string>;
2133
+ }
2134
+
2135
+ export interface Slack {
2136
+ /**
2137
+ * The Slack channel id
2138
+ */
2139
+ channelId: string;
2140
+
2141
+ /**
2142
+ * The channel name, shown in Roark
2143
+ */
2144
+ channelName: string;
2145
+ }
2146
+ }
2147
+
1979
2148
  export interface Persona {
1980
2149
  id: string;
1981
2150
  }
@@ -2142,6 +2311,13 @@ export declare namespace SimulationRunPlanCreateParams {
2142
2311
  */
2143
2312
  noResponseRetryBackoffSeconds?: number;
2144
2313
 
2314
+ /**
2315
+ * Email and/or Slack delivery of each run's report once it is ready, with the
2316
+ * report PDF attached. Each run announces once, off its first report. Omitted: no
2317
+ * notifications.
2318
+ */
2319
+ notifications?: CreateRunPlanFromTemplate.Notifications;
2320
+
2145
2321
  /**
2146
2322
  * For `question-answer-check`: the persona that asks the questions.
2147
2323
  */
@@ -2332,6 +2508,48 @@ export declare namespace SimulationRunPlanCreateParams {
2332
2508
  }
2333
2509
  }
2334
2510
 
2511
+ /**
2512
+ * Email and/or Slack delivery of each run's report once it is ready, with the
2513
+ * report PDF attached. Each run announces once, off its first report. Omitted: no
2514
+ * notifications.
2515
+ */
2516
+ export interface Notifications {
2517
+ email?: Notifications.Email;
2518
+
2519
+ /**
2520
+ * Channels in the project's connected Slack workspace to post the report to (at
2521
+ * most 10). Slack must be connected to the project first.
2522
+ */
2523
+ slack?: Array<Notifications.Slack>;
2524
+ }
2525
+
2526
+ export namespace Notifications {
2527
+ export interface Email {
2528
+ /**
2529
+ * Whether each run's report is emailed when it is ready.
2530
+ */
2531
+ enabled: boolean;
2532
+
2533
+ /**
2534
+ * Addresses to email (at most 50), Roark users or not: the email attaches the
2535
+ * report PDF. Empty emails every member of the project.
2536
+ */
2537
+ recipients?: Array<string>;
2538
+ }
2539
+
2540
+ export interface Slack {
2541
+ /**
2542
+ * The Slack channel id
2543
+ */
2544
+ channelId: string;
2545
+
2546
+ /**
2547
+ * The channel name, shown in Roark
2548
+ */
2549
+ channelName: string;
2550
+ }
2551
+ }
2552
+
2335
2553
  export interface Question {
2336
2554
  /**
2337
2555
  * The question the caller asks the agent.
@@ -2508,6 +2726,11 @@ export interface SimulationRunPlanUpdateParams {
2508
2726
  */
2509
2727
  noResponseRetryBackoffSeconds?: number;
2510
2728
 
2729
+ /**
2730
+ * Where each run's report announces itself once it is ready.
2731
+ */
2732
+ notifications?: SimulationRunPlanUpdateParams.Notifications | null;
2733
+
2511
2734
  /**
2512
2735
  * Personas to include in this run plan
2513
2736
  */
@@ -2699,6 +2922,46 @@ export namespace SimulationRunPlanUpdateParams {
2699
2922
  slug?: string;
2700
2923
  }
2701
2924
 
2925
+ /**
2926
+ * Where each run's report announces itself once it is ready.
2927
+ */
2928
+ export interface Notifications {
2929
+ email?: Notifications.Email;
2930
+
2931
+ /**
2932
+ * Channels in the project's connected Slack workspace to post the report to (at
2933
+ * most 10). Slack must be connected to the project first.
2934
+ */
2935
+ slack?: Array<Notifications.Slack>;
2936
+ }
2937
+
2938
+ export namespace Notifications {
2939
+ export interface Email {
2940
+ /**
2941
+ * Whether each run's report is emailed when it is ready.
2942
+ */
2943
+ enabled: boolean;
2944
+
2945
+ /**
2946
+ * Addresses to email (at most 50), Roark users or not: the email attaches the
2947
+ * report PDF. Empty emails every member of the project.
2948
+ */
2949
+ recipients?: Array<string>;
2950
+ }
2951
+
2952
+ export interface Slack {
2953
+ /**
2954
+ * The Slack channel id
2955
+ */
2956
+ channelId: string;
2957
+
2958
+ /**
2959
+ * The channel name, shown in Roark
2960
+ */
2961
+ channelName: string;
2962
+ }
2963
+ }
2964
+
2702
2965
  export interface Persona {
2703
2966
  id: string;
2704
2967
  }
@@ -198,6 +198,7 @@ export interface SimulationMockToolParams {
198
198
  export type SimulationRunParams =
199
199
  | SimulationRunParams.RunSimulationFromConfig
200
200
  | SimulationRunParams.RunSimulationFromPlanID
201
+ | SimulationRunParams.RunSimulationFromConfigKey
201
202
  | SimulationRunParams.RunSimulationFromTemplate;
202
203
 
203
204
  export declare namespace SimulationRunParams {
@@ -784,6 +785,81 @@ export declare namespace SimulationRunParams {
784
785
  }
785
786
  }
786
787
 
788
+ export interface RunSimulationFromConfigKey {
789
+ /**
790
+ * The config key of a plan to run, as applied from config as code
791
+ * (`simulationPlan/<name>`). Runs a config-managed plan by name, with no id
792
+ * lookup. Unique per project.
793
+ */
794
+ planConfigKey: string;
795
+
796
+ /**
797
+ * Values for the {{variables}} the run resolves, overriding whatever the plan has
798
+ * pinned.
799
+ *
800
+ * An object applies them to the whole run:
801
+ *
802
+ * { "orderNumber": "12345", "tier": "gold" }
803
+ *
804
+ * An array applies them per flow, or to just its happy path or one of its edge
805
+ * cases, when a single set will not do. Each entry carries what it applies to:
806
+ *
807
+ * [ { "flowId": "550e8400-...", "variables": { "orderNumber": "12345" } }, {
808
+ * "flowId": "550e8400-...", "happyPath": true, "variables": { "orderNumber":
809
+ * "55555" } }, { "flowId": "550e8400-...", "edgeCaseId": "7a3d2e1f-...",
810
+ * "variables": { "orderNumber": "67890" } } ]
811
+ *
812
+ * An entry that narrows to neither covers everything that flow resolves. A flow
813
+ * this plan does not attach, or an edge case that does not belong to the flow, is
814
+ * rejected rather than ignored.
815
+ *
816
+ * A plan built on scenarios rather than customer flows targets them the same way,
817
+ * with `scenarioId` in place of `flowId`. That form is deprecated alongside
818
+ * scenarios themselves, and still accepted so runs against those plans keep
819
+ * working.
820
+ */
821
+ variables?:
822
+ | { [key: string]: string }
823
+ | Array<RunSimulationFromConfigKey.UnionMember1>
824
+ | Array<RunSimulationFromConfigKey.UnionMember2>;
825
+ }
826
+
827
+ export namespace RunSimulationFromConfigKey {
828
+ export interface UnionMember1 {
829
+ /**
830
+ * A customer flow this plan runs.
831
+ */
832
+ flowId: string;
833
+
834
+ /**
835
+ * The values to apply.
836
+ */
837
+ variables: { [key: string]: string };
838
+
839
+ /**
840
+ * Narrow to one edge case of that flow.
841
+ */
842
+ edgeCaseId?: string;
843
+
844
+ /**
845
+ * Narrow to the flow's happy path.
846
+ */
847
+ happyPath?: true;
848
+ }
849
+
850
+ export interface UnionMember2 {
851
+ /**
852
+ * ID of the scenario to apply variables to
853
+ */
854
+ scenarioId: string;
855
+
856
+ /**
857
+ * Key-value pairs for this scenario
858
+ */
859
+ variables: { [key: string]: string };
860
+ }
861
+ }
862
+
787
863
  export interface RunSimulationFromTemplate {
788
864
  /**
789
865
  * The agent endpoints to call. No template can know these.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.14.0'; // x-release-please-version
1
+ export const VERSION = '5.16.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.14.0";
1
+ export declare const VERSION = "5.16.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.14.0";
1
+ export declare const VERSION = "5.16.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.14.0'; // x-release-please-version
4
+ exports.VERSION = '5.16.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.14.0'; // x-release-please-version
1
+ export const VERSION = '5.16.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map