@roarkanalytics/sdk 3.9.0 → 3.10.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 (58) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/customer-flow-edge-case.d.mts +9 -0
  12. package/resources/customer-flow-edge-case.d.mts.map +1 -1
  13. package/resources/customer-flow-edge-case.d.ts +9 -0
  14. package/resources/customer-flow-edge-case.d.ts.map +1 -1
  15. package/resources/customer-flow.d.mts +30 -0
  16. package/resources/customer-flow.d.mts.map +1 -1
  17. package/resources/customer-flow.d.ts +30 -0
  18. package/resources/customer-flow.d.ts.map +1 -1
  19. package/resources/index.d.mts +1 -0
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +1 -0
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +3 -1
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +1 -0
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/simulation-run-plan.d.mts +38 -0
  28. package/resources/simulation-run-plan.d.mts.map +1 -1
  29. package/resources/simulation-run-plan.d.ts +38 -0
  30. package/resources/simulation-run-plan.d.ts.map +1 -1
  31. package/resources/simulation-template.d.mts +162 -0
  32. package/resources/simulation-template.d.mts.map +1 -0
  33. package/resources/simulation-template.d.ts +162 -0
  34. package/resources/simulation-template.d.ts.map +1 -0
  35. package/resources/simulation-template.js +31 -0
  36. package/resources/simulation-template.js.map +1 -0
  37. package/resources/simulation-template.mjs +27 -0
  38. package/resources/simulation-template.mjs.map +1 -0
  39. package/resources/simulation.d.mts +13 -0
  40. package/resources/simulation.d.mts.map +1 -1
  41. package/resources/simulation.d.ts +13 -0
  42. package/resources/simulation.d.ts.map +1 -1
  43. package/src/client.ts +8 -0
  44. package/src/resources/customer-flow-edge-case.ts +18 -0
  45. package/src/resources/customer-flow.ts +60 -0
  46. package/src/resources/index.ts +1 -0
  47. package/src/resources/simulation-run-plan.ts +44 -0
  48. package/src/resources/simulation-template.ts +190 -0
  49. package/src/resources/simulation.ts +14 -0
  50. package/src/version.ts +1 -1
  51. package/version.d.mts +1 -1
  52. package/version.d.mts.map +1 -1
  53. package/version.d.ts +1 -1
  54. package/version.d.ts.map +1 -1
  55. package/version.js +1 -1
  56. package/version.js.map +1 -1
  57. package/version.mjs +1 -1
  58. package/version.mjs.map +1 -1
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SimulationTemplate = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class SimulationTemplate extends resource_1.APIResource {
7
+ /**
8
+ * Returns the built-in simulation templates, each resolved against this project:
9
+ * the metric and check definitions it collects, and the flows it runs with the
10
+ * variants it covers.
11
+ *
12
+ * A template is a preset rather than a stored object, so building a run from one
13
+ * produces an ordinary run plan you own and can edit afterwards. Pass a `slug` as
14
+ * `template` to POST /v1/simulation/run.
15
+ *
16
+ * Every entry is complete, so there is no per-template endpoint to follow up with,
17
+ * and the list is a fixed catalogue rather than a paginated one. Only templates a
18
+ * request can actually run are listed.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const simulationTemplates =
23
+ * await client.simulationTemplate.list();
24
+ * ```
25
+ */
26
+ list(options) {
27
+ return this._client.get('/v1/simulation/template', options);
28
+ }
29
+ }
30
+ exports.SimulationTemplate = SimulationTemplate;
31
+ //# sourceMappingURL=simulation-template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simulation-template.js","sourceRoot":"","sources":["../src/resources/simulation-template.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF;AAvBD,gDAuBC"}
@@ -0,0 +1,27 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ export class SimulationTemplate extends APIResource {
4
+ /**
5
+ * Returns the built-in simulation templates, each resolved against this project:
6
+ * the metric and check definitions it collects, and the flows it runs with the
7
+ * variants it covers.
8
+ *
9
+ * A template is a preset rather than a stored object, so building a run from one
10
+ * produces an ordinary run plan you own and can edit afterwards. Pass a `slug` as
11
+ * `template` to POST /v1/simulation/run.
12
+ *
13
+ * Every entry is complete, so there is no per-template endpoint to follow up with,
14
+ * and the list is a fixed catalogue rather than a paginated one. Only templates a
15
+ * request can actually run are listed.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const simulationTemplates =
20
+ * await client.simulationTemplate.list();
21
+ * ```
22
+ */
23
+ list(options) {
24
+ return this._client.get('/v1/simulation/template', options);
25
+ }
26
+ }
27
+ //# sourceMappingURL=simulation-template.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simulation-template.mjs","sourceRoot":"","sources":["../src/resources/simulation-template.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF"}
@@ -169,6 +169,19 @@ export declare namespace SimulationRunParams {
169
169
  * once with a different persona override or different variables.
170
170
  */
171
171
  flows?: Array<Plan.Flow>;
172
+ /**
173
+ * Also collect each attached flow's own metrics, on top of the `metrics` named
174
+ * here.
175
+ *
176
+ * Default true, which is what you want when you brought your own flows and their
177
+ * graders. Set false for a run whose metric list is meant to be exhaustive: a
178
+ * template like Load Testing or Voicemail deliberately grades a narrow set, and
179
+ * inheriting every flow metric on top multiplies analysis cost across the volume
180
+ * without adding signal.
181
+ *
182
+ * GET /v1/simulation/template returns the value each template expects.
183
+ */
184
+ includeFlowMetrics?: boolean;
172
185
  /**
173
186
  * Number of iterations to run for each test case (1-10000)
174
187
  */
@@ -1 +1 @@
1
- {"version":3,"file":"simulation.d.mts","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,GAAG,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG5F;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,qBAAqB,CAAC,IAAI,CAAC;CAClC;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;WAGG;QACH,WAAW,EAAE,OAAO,CAAC;QAErB;;WAEG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAE3B;;;WAGG;QACH,mBAAmB,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,sBAAsB,EAAE,MAAM,CAAC;QAE/B;;;WAGG;QACH,MAAM,EACF,SAAS,GACT,QAAQ,GACR,oBAAoB,GACpB,sBAAsB,GACtB,oBAAoB,GACpB,qBAAqB,GACrB,WAAW,GACX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CAAA;SAAE,GACzB,KAAK,CAAC,uBAAuB,CAAC,YAAY,CAAC,GAC3C,KAAK,CAAC,uBAAuB,CAAC,YAAY,CAAC,CAAC;KACjD;IAED,UAAiB,uBAAuB,CAAC;QACvC,UAAiB,YAAY;YAC3B;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;YAEf;;eAEG;YACH,SAAS,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE,CAAC;YAErC;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,SAAS,CAAC,EAAE,IAAI,CAAC;SAClB;QAED,UAAiB,YAAY;YAC3B;;eAEG;YACH,UAAU,EAAE,MAAM,CAAC;YAEnB;;eAEG;YACH,SAAS,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE,CAAC;SACtC;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -169,6 +169,19 @@ export declare namespace SimulationRunParams {
169
169
  * once with a different persona override or different variables.
170
170
  */
171
171
  flows?: Array<Plan.Flow>;
172
+ /**
173
+ * Also collect each attached flow's own metrics, on top of the `metrics` named
174
+ * here.
175
+ *
176
+ * Default true, which is what you want when you brought your own flows and their
177
+ * graders. Set false for a run whose metric list is meant to be exhaustive: a
178
+ * template like Load Testing or Voicemail deliberately grades a narrow set, and
179
+ * inheriting every flow metric on top multiplies analysis cost across the volume
180
+ * without adding signal.
181
+ *
182
+ * GET /v1/simulation/template returns the value each template expects.
183
+ */
184
+ includeFlowMetrics?: boolean;
172
185
  /**
173
186
  * Number of iterations to run for each test case (1-10000)
174
187
  */
@@ -1 +1 @@
1
- {"version":3,"file":"simulation.d.ts","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AA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AM,CAAC;YAEnB;;eAEG;YACH,SAAS,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE,CAAC;SACtC;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
package/src/client.ts CHANGED
@@ -181,6 +181,7 @@ import {
181
181
  SimulationRunPlanJobStartParams,
182
182
  SimulationRunPlanJobStartResponse,
183
183
  } from './resources/simulation-run-plan-job';
184
+ import { SimulationTemplate, SimulationTemplateListResponse } from './resources/simulation-template';
184
185
  import {
185
186
  Webhook,
186
187
  WebhookCreateParams,
@@ -919,6 +920,7 @@ export class Roark {
919
920
  simulationRunPlanJob: API.SimulationRunPlanJob = new API.SimulationRunPlanJob(this);
920
921
  simulationPersona: API.SimulationPersona = new API.SimulationPersona(this);
921
922
  simulationEnvironment: API.SimulationEnvironment = new API.SimulationEnvironment(this);
923
+ simulationTemplate: API.SimulationTemplate = new API.SimulationTemplate(this);
922
924
  customerFlow: API.CustomerFlow = new API.CustomerFlow(this);
923
925
  customerFlowEdgeCase: API.CustomerFlowEdgeCase = new API.CustomerFlowEdgeCase(this);
924
926
  agent: API.Agent = new API.Agent(this);
@@ -940,6 +942,7 @@ Roark.SimulationRunPlan = SimulationRunPlan;
940
942
  Roark.SimulationRunPlanJob = SimulationRunPlanJob;
941
943
  Roark.SimulationPersona = SimulationPersona;
942
944
  Roark.SimulationEnvironment = SimulationEnvironment;
945
+ Roark.SimulationTemplate = SimulationTemplate;
943
946
  Roark.CustomerFlow = CustomerFlow;
944
947
  Roark.CustomerFlowEdgeCase = CustomerFlowEdgeCase;
945
948
  Roark.Agent = Agent;
@@ -1065,6 +1068,11 @@ export declare namespace Roark {
1065
1068
  type SimulationEnvironmentListParams as SimulationEnvironmentListParams,
1066
1069
  };
1067
1070
 
1071
+ export {
1072
+ SimulationTemplate as SimulationTemplate,
1073
+ type SimulationTemplateListResponse as SimulationTemplateListResponse,
1074
+ };
1075
+
1068
1076
  export {
1069
1077
  CustomerFlow as CustomerFlow,
1070
1078
  type FlowStep as FlowStep,
@@ -162,6 +162,8 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
162
162
  * Last update timestamp in ISO 8601 format
163
163
  */
164
164
  updatedAt: string;
165
+
166
+ systemKey?: string | null;
165
167
  }
166
168
 
167
169
  export namespace ScriptedFlowVariant {
@@ -466,6 +468,8 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
466
468
  * The brief the simulated customer improvises from.
467
469
  */
468
470
  prompt?: string | null;
471
+
472
+ systemKey?: string | null;
469
473
  }
470
474
 
471
475
  export namespace ImprovFlowVariant {
@@ -765,6 +769,8 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
765
769
  * Last update timestamp in ISO 8601 format
766
770
  */
767
771
  updatedAt: string;
772
+
773
+ systemKey?: string | null;
768
774
  }
769
775
 
770
776
  export namespace VoicemailFlowVariant {
@@ -1083,6 +1089,8 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1083
1089
  * Last update timestamp in ISO 8601 format
1084
1090
  */
1085
1091
  updatedAt: string;
1092
+
1093
+ systemKey?: string | null;
1086
1094
  }
1087
1095
 
1088
1096
  export namespace ScriptedFlowVariant {
@@ -1387,6 +1395,8 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1387
1395
  * The brief the simulated customer improvises from.
1388
1396
  */
1389
1397
  prompt?: string | null;
1398
+
1399
+ systemKey?: string | null;
1390
1400
  }
1391
1401
 
1392
1402
  export namespace ImprovFlowVariant {
@@ -1686,6 +1696,8 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1686
1696
  * Last update timestamp in ISO 8601 format
1687
1697
  */
1688
1698
  updatedAt: string;
1699
+
1700
+ systemKey?: string | null;
1689
1701
  }
1690
1702
 
1691
1703
  export namespace VoicemailFlowVariant {
@@ -2004,6 +2016,8 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2004
2016
  * Last update timestamp in ISO 8601 format
2005
2017
  */
2006
2018
  updatedAt: string;
2019
+
2020
+ systemKey?: string | null;
2007
2021
  }
2008
2022
 
2009
2023
  export namespace ScriptedFlowVariant {
@@ -2308,6 +2322,8 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2308
2322
  * The brief the simulated customer improvises from.
2309
2323
  */
2310
2324
  prompt?: string | null;
2325
+
2326
+ systemKey?: string | null;
2311
2327
  }
2312
2328
 
2313
2329
  export namespace ImprovFlowVariant {
@@ -2607,6 +2623,8 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2607
2623
  * Last update timestamp in ISO 8601 format
2608
2624
  */
2609
2625
  updatedAt: string;
2626
+
2627
+ systemKey?: string | null;
2610
2628
  }
2611
2629
 
2612
2630
  export namespace VoicemailFlowVariant {
@@ -461,6 +461,8 @@ export namespace CustomerFlowCreateResponse {
461
461
  * Last update timestamp in ISO 8601 format
462
462
  */
463
463
  updatedAt: string;
464
+
465
+ systemKey?: string | null;
464
466
  }
465
467
 
466
468
  export namespace EdgeCase {
@@ -774,6 +776,8 @@ export namespace CustomerFlowCreateResponse {
774
776
  * Last update timestamp in ISO 8601 format
775
777
  */
776
778
  updatedAt: string;
779
+
780
+ systemKey?: string | null;
777
781
  }
778
782
 
779
783
  export namespace HappyPath {
@@ -1174,6 +1178,8 @@ export namespace CustomerFlowCreateResponse {
1174
1178
  * The brief the simulated customer improvises from.
1175
1179
  */
1176
1180
  prompt?: string | null;
1181
+
1182
+ systemKey?: string | null;
1177
1183
  }
1178
1184
 
1179
1185
  export namespace EdgeCase {
@@ -1485,6 +1491,8 @@ export namespace CustomerFlowCreateResponse {
1485
1491
  * The brief the simulated customer improvises from.
1486
1492
  */
1487
1493
  prompt?: string | null;
1494
+
1495
+ systemKey?: string | null;
1488
1496
  }
1489
1497
 
1490
1498
  export namespace HappyPath {
@@ -1879,6 +1887,8 @@ export namespace CustomerFlowCreateResponse {
1879
1887
  * Last update timestamp in ISO 8601 format
1880
1888
  */
1881
1889
  updatedAt: string;
1890
+
1891
+ systemKey?: string | null;
1882
1892
  }
1883
1893
 
1884
1894
  export namespace EdgeCase {
@@ -2185,6 +2195,8 @@ export namespace CustomerFlowCreateResponse {
2185
2195
  * Last update timestamp in ISO 8601 format
2186
2196
  */
2187
2197
  updatedAt: string;
2198
+
2199
+ systemKey?: string | null;
2188
2200
  }
2189
2201
 
2190
2202
  export namespace HappyPath {
@@ -2616,6 +2628,8 @@ export namespace CustomerFlowUpdateResponse {
2616
2628
  * Last update timestamp in ISO 8601 format
2617
2629
  */
2618
2630
  updatedAt: string;
2631
+
2632
+ systemKey?: string | null;
2619
2633
  }
2620
2634
 
2621
2635
  export namespace EdgeCase {
@@ -2929,6 +2943,8 @@ export namespace CustomerFlowUpdateResponse {
2929
2943
  * Last update timestamp in ISO 8601 format
2930
2944
  */
2931
2945
  updatedAt: string;
2946
+
2947
+ systemKey?: string | null;
2932
2948
  }
2933
2949
 
2934
2950
  export namespace HappyPath {
@@ -3329,6 +3345,8 @@ export namespace CustomerFlowUpdateResponse {
3329
3345
  * The brief the simulated customer improvises from.
3330
3346
  */
3331
3347
  prompt?: string | null;
3348
+
3349
+ systemKey?: string | null;
3332
3350
  }
3333
3351
 
3334
3352
  export namespace EdgeCase {
@@ -3640,6 +3658,8 @@ export namespace CustomerFlowUpdateResponse {
3640
3658
  * The brief the simulated customer improvises from.
3641
3659
  */
3642
3660
  prompt?: string | null;
3661
+
3662
+ systemKey?: string | null;
3643
3663
  }
3644
3664
 
3645
3665
  export namespace HappyPath {
@@ -4034,6 +4054,8 @@ export namespace CustomerFlowUpdateResponse {
4034
4054
  * Last update timestamp in ISO 8601 format
4035
4055
  */
4036
4056
  updatedAt: string;
4057
+
4058
+ systemKey?: string | null;
4037
4059
  }
4038
4060
 
4039
4061
  export namespace EdgeCase {
@@ -4340,6 +4362,8 @@ export namespace CustomerFlowUpdateResponse {
4340
4362
  * Last update timestamp in ISO 8601 format
4341
4363
  */
4342
4364
  updatedAt: string;
4365
+
4366
+ systemKey?: string | null;
4343
4367
  }
4344
4368
 
4345
4369
  export namespace HappyPath {
@@ -4774,6 +4798,8 @@ export namespace CustomerFlowListResponse {
4774
4798
  * Last update timestamp in ISO 8601 format
4775
4799
  */
4776
4800
  updatedAt: string;
4801
+
4802
+ systemKey?: string | null;
4777
4803
  }
4778
4804
 
4779
4805
  export namespace EdgeCase {
@@ -5087,6 +5113,8 @@ export namespace CustomerFlowListResponse {
5087
5113
  * Last update timestamp in ISO 8601 format
5088
5114
  */
5089
5115
  updatedAt: string;
5116
+
5117
+ systemKey?: string | null;
5090
5118
  }
5091
5119
 
5092
5120
  export namespace HappyPath {
@@ -5487,6 +5515,8 @@ export namespace CustomerFlowListResponse {
5487
5515
  * The brief the simulated customer improvises from.
5488
5516
  */
5489
5517
  prompt?: string | null;
5518
+
5519
+ systemKey?: string | null;
5490
5520
  }
5491
5521
 
5492
5522
  export namespace EdgeCase {
@@ -5798,6 +5828,8 @@ export namespace CustomerFlowListResponse {
5798
5828
  * The brief the simulated customer improvises from.
5799
5829
  */
5800
5830
  prompt?: string | null;
5831
+
5832
+ systemKey?: string | null;
5801
5833
  }
5802
5834
 
5803
5835
  export namespace HappyPath {
@@ -6192,6 +6224,8 @@ export namespace CustomerFlowListResponse {
6192
6224
  * Last update timestamp in ISO 8601 format
6193
6225
  */
6194
6226
  updatedAt: string;
6227
+
6228
+ systemKey?: string | null;
6195
6229
  }
6196
6230
 
6197
6231
  export namespace EdgeCase {
@@ -6498,6 +6532,8 @@ export namespace CustomerFlowListResponse {
6498
6532
  * Last update timestamp in ISO 8601 format
6499
6533
  */
6500
6534
  updatedAt: string;
6535
+
6536
+ systemKey?: string | null;
6501
6537
  }
6502
6538
 
6503
6539
  export namespace HappyPath {
@@ -6959,6 +6995,8 @@ export namespace CustomerFlowGetByIDResponse {
6959
6995
  * Last update timestamp in ISO 8601 format
6960
6996
  */
6961
6997
  updatedAt: string;
6998
+
6999
+ systemKey?: string | null;
6962
7000
  }
6963
7001
 
6964
7002
  export namespace EdgeCase {
@@ -7272,6 +7310,8 @@ export namespace CustomerFlowGetByIDResponse {
7272
7310
  * Last update timestamp in ISO 8601 format
7273
7311
  */
7274
7312
  updatedAt: string;
7313
+
7314
+ systemKey?: string | null;
7275
7315
  }
7276
7316
 
7277
7317
  export namespace HappyPath {
@@ -7672,6 +7712,8 @@ export namespace CustomerFlowGetByIDResponse {
7672
7712
  * The brief the simulated customer improvises from.
7673
7713
  */
7674
7714
  prompt?: string | null;
7715
+
7716
+ systemKey?: string | null;
7675
7717
  }
7676
7718
 
7677
7719
  export namespace EdgeCase {
@@ -7983,6 +8025,8 @@ export namespace CustomerFlowGetByIDResponse {
7983
8025
  * The brief the simulated customer improvises from.
7984
8026
  */
7985
8027
  prompt?: string | null;
8028
+
8029
+ systemKey?: string | null;
7986
8030
  }
7987
8031
 
7988
8032
  export namespace HappyPath {
@@ -8377,6 +8421,8 @@ export namespace CustomerFlowGetByIDResponse {
8377
8421
  * Last update timestamp in ISO 8601 format
8378
8422
  */
8379
8423
  updatedAt: string;
8424
+
8425
+ systemKey?: string | null;
8380
8426
  }
8381
8427
 
8382
8428
  export namespace EdgeCase {
@@ -8683,6 +8729,8 @@ export namespace CustomerFlowGetByIDResponse {
8683
8729
  * Last update timestamp in ISO 8601 format
8684
8730
  */
8685
8731
  updatedAt: string;
8732
+
8733
+ systemKey?: string | null;
8686
8734
  }
8687
8735
 
8688
8736
  export namespace HappyPath {
@@ -9026,6 +9074,8 @@ export namespace CustomerFlowReplaceGraphResponse {
9026
9074
  * Last update timestamp in ISO 8601 format
9027
9075
  */
9028
9076
  updatedAt: string;
9077
+
9078
+ systemKey?: string | null;
9029
9079
  }
9030
9080
 
9031
9081
  export namespace ScriptedFlowVariant {
@@ -9337,6 +9387,8 @@ export namespace CustomerFlowReplaceGraphResponse {
9337
9387
  * The brief the simulated customer improvises from.
9338
9388
  */
9339
9389
  prompt?: string | null;
9390
+
9391
+ systemKey?: string | null;
9340
9392
  }
9341
9393
 
9342
9394
  export namespace ImprovFlowVariant {
@@ -9643,6 +9695,8 @@ export namespace CustomerFlowReplaceGraphResponse {
9643
9695
  * Last update timestamp in ISO 8601 format
9644
9696
  */
9645
9697
  updatedAt: string;
9698
+
9699
+ systemKey?: string | null;
9646
9700
  }
9647
9701
 
9648
9702
  export namespace VoicemailFlowVariant {
@@ -9969,6 +10023,8 @@ export namespace CustomerFlowUpdateHappyPathResponse {
9969
10023
  * Last update timestamp in ISO 8601 format
9970
10024
  */
9971
10025
  updatedAt: string;
10026
+
10027
+ systemKey?: string | null;
9972
10028
  }
9973
10029
 
9974
10030
  export namespace ScriptedFlowVariant {
@@ -10273,6 +10329,8 @@ export namespace CustomerFlowUpdateHappyPathResponse {
10273
10329
  * The brief the simulated customer improvises from.
10274
10330
  */
10275
10331
  prompt?: string | null;
10332
+
10333
+ systemKey?: string | null;
10276
10334
  }
10277
10335
 
10278
10336
  export namespace ImprovFlowVariant {
@@ -10572,6 +10630,8 @@ export namespace CustomerFlowUpdateHappyPathResponse {
10572
10630
  * Last update timestamp in ISO 8601 format
10573
10631
  */
10574
10632
  updatedAt: string;
10633
+
10634
+ systemKey?: string | null;
10575
10635
  }
10576
10636
 
10577
10637
  export namespace VoicemailFlowVariant {
@@ -164,6 +164,7 @@ export {
164
164
  type SimulationRunPlanJobListParams,
165
165
  type SimulationRunPlanJobStartParams,
166
166
  } from './simulation-run-plan-job';
167
+ export { SimulationTemplate, type SimulationTemplateListResponse } from './simulation-template';
167
168
  export {
168
169
  Webhook,
169
170
  type WebhookCreateResponse,
@@ -179,6 +179,12 @@ export namespace SimulationRunPlanCreateResponse {
179
179
  */
180
180
  flows: Array<RunPlan.Flow>;
181
181
 
182
+ /**
183
+ * Whether this plan also collects each attached flow's own metrics, on top of its
184
+ * own list.
185
+ */
186
+ includeFlowMetrics: boolean;
187
+
182
188
  /**
183
189
  * Number of iterations to run for each test case
184
190
  */
@@ -427,6 +433,12 @@ export namespace SimulationRunPlanUpdateResponse {
427
433
  */
428
434
  flows: Array<Data.Flow>;
429
435
 
436
+ /**
437
+ * Whether this plan also collects each attached flow's own metrics, on top of its
438
+ * own list.
439
+ */
440
+ includeFlowMetrics: boolean;
441
+
430
442
  /**
431
443
  * Number of iterations to run for each test case
432
444
  */
@@ -639,6 +651,12 @@ export namespace SimulationRunPlanListResponse {
639
651
  */
640
652
  flows: Array<Data.Flow>;
641
653
 
654
+ /**
655
+ * Whether this plan also collects each attached flow's own metrics, on top of its
656
+ * own list.
657
+ */
658
+ includeFlowMetrics: boolean;
659
+
642
660
  /**
643
661
  * Number of iterations to run for each test case
644
662
  */
@@ -879,6 +897,12 @@ export namespace SimulationRunPlanGetByIDResponse {
879
897
  */
880
898
  flows: Array<Data.Flow>;
881
899
 
900
+ /**
901
+ * Whether this plan also collects each attached flow's own metrics, on top of its
902
+ * own list.
903
+ */
904
+ includeFlowMetrics: boolean;
905
+
882
906
  /**
883
907
  * Number of iterations to run for each test case
884
908
  */
@@ -1103,6 +1127,20 @@ export interface SimulationRunPlanCreateParams {
1103
1127
  */
1104
1128
  flows?: Array<SimulationRunPlanCreateParams.Flow>;
1105
1129
 
1130
+ /**
1131
+ * Also collect each attached flow's own metrics, on top of the `metrics` named
1132
+ * here.
1133
+ *
1134
+ * Default true, which is what you want when you brought your own flows and their
1135
+ * graders. Set false for a run whose metric list is meant to be exhaustive: a
1136
+ * template like Load Testing or Voicemail deliberately grades a narrow set, and
1137
+ * inheriting every flow metric on top multiplies analysis cost across the volume
1138
+ * without adding signal.
1139
+ *
1140
+ * GET /v1/simulation/template returns the value each template expects.
1141
+ */
1142
+ includeFlowMetrics?: boolean;
1143
+
1106
1144
  /**
1107
1145
  * Number of iterations to run for each test case (1-10000)
1108
1146
  */
@@ -1284,6 +1322,12 @@ export interface SimulationRunPlanUpdateParams {
1284
1322
  */
1285
1323
  flows?: Array<SimulationRunPlanUpdateParams.Flow>;
1286
1324
 
1325
+ /**
1326
+ * Whether to also collect each attached flow's own metrics, on top of this plan's
1327
+ * list.
1328
+ */
1329
+ includeFlowMetrics?: boolean;
1330
+
1287
1331
  /**
1288
1332
  * Whether this plan is hidden from GET /v1/simulation/plan.
1289
1333
  *