@roarkanalytics/sdk 2.23.1 → 2.25.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 (107) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +18 -23
  3. package/client.d.mts +14 -8
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +14 -8
  6. package/client.d.ts.map +1 -1
  7. package/client.js +6 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +9 -3
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/call.d.mts +0 -20
  13. package/resources/call.d.mts.map +1 -1
  14. package/resources/call.d.ts +0 -20
  15. package/resources/call.d.ts.map +1 -1
  16. package/resources/evaluation.d.mts +0 -2783
  17. package/resources/evaluation.d.mts.map +1 -1
  18. package/resources/evaluation.d.ts +0 -2783
  19. package/resources/evaluation.d.ts.map +1 -1
  20. package/resources/evaluation.js +0 -46
  21. package/resources/evaluation.js.map +1 -1
  22. package/resources/evaluation.mjs +0 -46
  23. package/resources/evaluation.mjs.map +1 -1
  24. package/resources/index.d.mts +6 -4
  25. package/resources/index.d.mts.map +1 -1
  26. package/resources/index.d.ts +6 -4
  27. package/resources/index.d.ts.map +1 -1
  28. package/resources/index.js +5 -1
  29. package/resources/index.js.map +1 -1
  30. package/resources/index.mjs +5 -3
  31. package/resources/index.mjs.map +1 -1
  32. package/resources/integrations.d.mts +0 -110
  33. package/resources/integrations.d.mts.map +1 -1
  34. package/resources/integrations.d.ts +0 -110
  35. package/resources/integrations.d.ts.map +1 -1
  36. package/resources/integrations.js +0 -37
  37. package/resources/integrations.js.map +1 -1
  38. package/resources/integrations.mjs +0 -37
  39. package/resources/integrations.mjs.map +1 -1
  40. package/resources/metric-collection-job.d.mts +237 -0
  41. package/resources/metric-collection-job.d.mts.map +1 -0
  42. package/resources/metric-collection-job.d.ts +237 -0
  43. package/resources/metric-collection-job.d.ts.map +1 -0
  44. package/resources/metric-collection-job.js +29 -0
  45. package/resources/metric-collection-job.js.map +1 -0
  46. package/resources/metric-collection-job.mjs +25 -0
  47. package/resources/metric-collection-job.mjs.map +1 -0
  48. package/resources/metric-policy.d.mts +502 -0
  49. package/resources/metric-policy.d.mts.map +1 -0
  50. package/resources/metric-policy.d.ts +502 -0
  51. package/resources/metric-policy.d.ts.map +1 -0
  52. package/resources/metric-policy.js +76 -0
  53. package/resources/metric-policy.js.map +1 -0
  54. package/resources/metric-policy.mjs +72 -0
  55. package/resources/metric-policy.mjs.map +1 -0
  56. package/resources/metric.d.mts +188 -2
  57. package/resources/metric.d.mts.map +1 -1
  58. package/resources/metric.d.ts +188 -2
  59. package/resources/metric.d.ts.map +1 -1
  60. package/resources/metric.js +21 -0
  61. package/resources/metric.js.map +1 -1
  62. package/resources/metric.mjs +21 -0
  63. package/resources/metric.mjs.map +1 -1
  64. package/resources/simulation-job.d.mts +12 -2
  65. package/resources/simulation-job.d.mts.map +1 -1
  66. package/resources/simulation-job.d.ts +12 -2
  67. package/resources/simulation-job.d.ts.map +1 -1
  68. package/resources/simulation-persona.d.mts +36 -6
  69. package/resources/simulation-persona.d.mts.map +1 -1
  70. package/resources/simulation-persona.d.ts +36 -6
  71. package/resources/simulation-persona.d.ts.map +1 -1
  72. package/resources/simulation-run-plan-job.d.mts +41 -5
  73. package/resources/simulation-run-plan-job.d.mts.map +1 -1
  74. package/resources/simulation-run-plan-job.d.ts +41 -5
  75. package/resources/simulation-run-plan-job.d.ts.map +1 -1
  76. package/resources/simulation-run-plan-job.js +4 -3
  77. package/resources/simulation-run-plan-job.js.map +1 -1
  78. package/resources/simulation-run-plan-job.mjs +4 -3
  79. package/resources/simulation-run-plan-job.mjs.map +1 -1
  80. package/resources/simulation-run-plan.d.mts +90 -16
  81. package/resources/simulation-run-plan.d.mts.map +1 -1
  82. package/resources/simulation-run-plan.d.ts +90 -16
  83. package/resources/simulation-run-plan.d.ts.map +1 -1
  84. package/resources/simulation-run-plan.js +2 -2
  85. package/resources/simulation-run-plan.mjs +2 -2
  86. package/resources/simulation-scenario.d.mts +27 -7
  87. package/resources/simulation-scenario.d.mts.map +1 -1
  88. package/resources/simulation-scenario.d.ts +27 -7
  89. package/resources/simulation-scenario.d.ts.map +1 -1
  90. package/src/client.ts +59 -43
  91. package/src/resources/call.ts +0 -20
  92. package/src/resources/evaluation.ts +1 -3570
  93. package/src/resources/index.ts +27 -22
  94. package/src/resources/integrations.ts +1 -131
  95. package/src/resources/metric-collection-job.ts +307 -0
  96. package/src/resources/metric-policy.ts +679 -0
  97. package/src/resources/metric.ts +233 -2
  98. package/src/resources/simulation-job.ts +14 -2
  99. package/src/resources/simulation-persona.ts +42 -6
  100. package/src/resources/simulation-run-plan-job.ts +46 -4
  101. package/src/resources/simulation-run-plan.ts +102 -16
  102. package/src/resources/simulation-scenario.ts +49 -3
  103. package/src/version.ts +1 -1
  104. package/version.d.mts +1 -1
  105. package/version.d.ts +1 -1
  106. package/version.js +1 -1
  107. package/version.mjs +1 -1
@@ -5,16 +5,112 @@ import { APIPromise } from '../core/api-promise';
5
5
  import { RequestOptions } from '../internal/request-options';
6
6
 
7
7
  export class Metric extends APIResource {
8
+ /**
9
+ * Create a new custom metric definition. The metric will be added to the specified
10
+ * analysis package and can be used for evaluating calls.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const response = await client.metric.createDefinition({
15
+ * analysisPackageId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
16
+ * name: 'Customer Satisfaction',
17
+ * outputType: 'BOOLEAN',
18
+ * });
19
+ * ```
20
+ */
21
+ createDefinition(
22
+ body: MetricCreateDefinitionParams,
23
+ options?: RequestOptions,
24
+ ): APIPromise<MetricCreateDefinitionResponse> {
25
+ return this._client.post('/v1/metric/definitions', { body, ...options });
26
+ }
27
+
8
28
  /**
9
29
  * Fetch all metric definitions available in the project, including both
10
30
  * system-generated and custom metrics. Only returns metrics from enabled analysis
11
31
  * packages.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const response = await client.metric.listDefinitions();
36
+ * ```
12
37
  */
13
38
  listDefinitions(options?: RequestOptions): APIPromise<MetricListDefinitionsResponse> {
14
39
  return this._client.get('/v1/metric/definitions', options);
15
40
  }
16
41
  }
17
42
 
43
+ export interface MetricCreateDefinitionResponse {
44
+ /**
45
+ * Metric definition data
46
+ */
47
+ data: MetricCreateDefinitionResponse.Data;
48
+ }
49
+
50
+ export namespace MetricCreateDefinitionResponse {
51
+ /**
52
+ * Metric definition data
53
+ */
54
+ export interface Data {
55
+ /**
56
+ * Unique identifier for the metric definition
57
+ */
58
+ id: string;
59
+
60
+ /**
61
+ * Description of what the metric measures
62
+ */
63
+ description: string;
64
+
65
+ /**
66
+ * Stable metric identifier (e.g. "call_reason", "customer_satisfaction")
67
+ */
68
+ metricId: string;
69
+
70
+ /**
71
+ * Name of the metric
72
+ */
73
+ name: string;
74
+
75
+ /**
76
+ * Whether metric is global or per-participant
77
+ */
78
+ scope: 'GLOBAL' | 'PER_PARTICIPANT';
79
+
80
+ /**
81
+ * Which levels this metric can produce values at
82
+ */
83
+ supportedContexts: Array<'CALL' | 'SEGMENT' | 'TURN'>;
84
+
85
+ /**
86
+ * Type of value this metric produces
87
+ */
88
+ type: 'COUNT' | 'NUMERIC' | 'BOOLEAN' | 'SCALE' | 'TEXT' | 'CLASSIFICATION' | 'OFFSET';
89
+
90
+ /**
91
+ * Unit information if applicable
92
+ */
93
+ unit?: Data.Unit;
94
+ }
95
+
96
+ export namespace Data {
97
+ /**
98
+ * Unit information if applicable
99
+ */
100
+ export interface Unit {
101
+ /**
102
+ * Name of the unit
103
+ */
104
+ name: string;
105
+
106
+ /**
107
+ * Symbol for the unit
108
+ */
109
+ symbol: string | null;
110
+ }
111
+ }
112
+ }
113
+
18
114
  export interface MetricListDefinitionsResponse {
19
115
  /**
20
116
  * Metrics response payload
@@ -38,7 +134,7 @@ export namespace MetricListDefinitionsResponse {
38
134
  description: string;
39
135
 
40
136
  /**
41
- * Stable metric identifier
137
+ * Stable metric identifier (e.g. "call_reason", "customer_satisfaction")
42
138
  */
43
139
  metricId: string;
44
140
 
@@ -86,6 +182,141 @@ export namespace MetricListDefinitionsResponse {
86
182
  }
87
183
  }
88
184
 
185
+ export interface MetricCreateDefinitionParams {
186
+ /**
187
+ * ID of the analysis package to add this metric to
188
+ */
189
+ analysisPackageId: string;
190
+
191
+ /**
192
+ * Name of the metric
193
+ */
194
+ name: string;
195
+
196
+ /**
197
+ * Type of value this metric produces
198
+ */
199
+ outputType: 'COUNT' | 'NUMERIC' | 'BOOLEAN' | 'SCALE' | 'TEXT' | 'CLASSIFICATION' | 'OFFSET';
200
+
201
+ /**
202
+ * Label for the false/negative case (only for BOOLEAN type)
203
+ */
204
+ booleanFalseLabel?: string;
205
+
206
+ /**
207
+ * Label for the true/positive case (only for BOOLEAN type)
208
+ */
209
+ booleanTrueLabel?: string;
210
+
211
+ /**
212
+ * Options for classification. Required for CLASSIFICATION type.
213
+ */
214
+ classificationOptions?: Array<MetricCreateDefinitionParams.ClassificationOption>;
215
+
216
+ /**
217
+ * LLM prompt/criteria for evaluating this metric. Used to instruct the model on
218
+ * how to score. Required for BOOLEAN, NUMERIC, TEXT, and SCALE types.
219
+ */
220
+ llmPrompt?: string;
221
+
222
+ /**
223
+ * Maximum number of classifications that can be selected (only for CLASSIFICATION
224
+ * type)
225
+ */
226
+ maxClassifications?: number;
227
+
228
+ /**
229
+ * Unique identifier for the metric (e.g. "customer_satisfaction"). Auto-generated
230
+ * from name if not provided.
231
+ */
232
+ metricId?: string;
233
+
234
+ /**
235
+ * Participant role to evaluate. Required when scope is PER_PARTICIPANT.
236
+ */
237
+ participantRole?: 'AGENT' | 'CUSTOMER' | 'SIMULATED_CUSTOMER' | 'BACKGROUND_SPEAKER';
238
+
239
+ /**
240
+ * Labels for scale ranges (only for SCALE type)
241
+ */
242
+ scaleLabels?: Array<MetricCreateDefinitionParams.ScaleLabel>;
243
+
244
+ /**
245
+ * Maximum value for scale. Required for SCALE type.
246
+ */
247
+ scaleMax?: number;
248
+
249
+ /**
250
+ * Minimum value for scale. Required for SCALE type.
251
+ */
252
+ scaleMin?: number;
253
+
254
+ /**
255
+ * Whether metric is global or per-participant (default: GLOBAL)
256
+ */
257
+ scope?: 'GLOBAL' | 'PER_PARTICIPANT';
258
+
259
+ /**
260
+ * Which levels this metric can produce values at (default: ["CALL"])
261
+ */
262
+ supportedContexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
263
+ }
264
+
265
+ export namespace MetricCreateDefinitionParams {
266
+ export interface ClassificationOption {
267
+ /**
268
+ * Description of what this option means
269
+ */
270
+ description: string;
271
+
272
+ /**
273
+ * Display order of this option
274
+ */
275
+ displayOrder: number;
276
+
277
+ /**
278
+ * Label for this classification option
279
+ */
280
+ label: string;
281
+ }
282
+
283
+ export interface ScaleLabel {
284
+ /**
285
+ * Display order of this label
286
+ */
287
+ displayOrder: number;
288
+
289
+ /**
290
+ * Label for this range
291
+ */
292
+ label: string;
293
+
294
+ /**
295
+ * Maximum value for this label range
296
+ */
297
+ rangeMax: number;
298
+
299
+ /**
300
+ * Minimum value for this label range
301
+ */
302
+ rangeMin: number;
303
+
304
+ /**
305
+ * Hex color code for this label (e.g. "#FF0000")
306
+ */
307
+ colorHex?: string;
308
+
309
+ /**
310
+ * Description of what this range means
311
+ */
312
+ description?: string;
313
+ }
314
+ }
315
+
89
316
  export declare namespace Metric {
90
- export { type MetricListDefinitionsResponse as MetricListDefinitionsResponse };
317
+ export {
318
+ type MetricCreateDefinitionResponse as MetricCreateDefinitionResponse,
319
+ type MetricListDefinitionsResponse as MetricListDefinitionsResponse,
320
+ type MetricCreateDefinitionParams as MetricCreateDefinitionParams,
321
+ };
91
322
  }
@@ -191,7 +191,7 @@ export namespace SimulationJobGetByIDResponse {
191
191
  /**
192
192
  * Gender of the persona
193
193
  */
194
- gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
194
+ gender: 'MALE' | 'FEMALE';
195
195
 
196
196
  /**
197
197
  * Whether the persona uses filler words like "um" and "uh"
@@ -223,6 +223,12 @@ export namespace SimulationJobGetByIDResponse {
223
223
  */
224
224
  properties: { [key: string]: unknown };
225
225
 
226
+ /**
227
+ * Controls how quickly the persona responds to pauses in conversation (QUICK,
228
+ * NORMAL, RELAXED)
229
+ */
230
+ responseTiming: 'RELAXED' | 'NORMAL' | 'QUICK';
231
+
226
232
  /**
227
233
  * Speech clarity of the persona
228
234
  */
@@ -422,7 +428,7 @@ export namespace SimulationJobLookupResponse {
422
428
  /**
423
429
  * Gender of the persona
424
430
  */
425
- gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
431
+ gender: 'MALE' | 'FEMALE';
426
432
 
427
433
  /**
428
434
  * Whether the persona uses filler words like "um" and "uh"
@@ -454,6 +460,12 @@ export namespace SimulationJobLookupResponse {
454
460
  */
455
461
  properties: { [key: string]: unknown };
456
462
 
463
+ /**
464
+ * Controls how quickly the persona responds to pauses in conversation (QUICK,
465
+ * NORMAL, RELAXED)
466
+ */
467
+ responseTiming: 'RELAXED' | 'NORMAL' | 'QUICK';
468
+
457
469
  /**
458
470
  * Speech clarity of the persona
459
471
  */
@@ -138,7 +138,7 @@ export namespace SimulationPersonaCreateResponse {
138
138
  /**
139
139
  * Gender of the persona
140
140
  */
141
- gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
141
+ gender: 'MALE' | 'FEMALE';
142
142
 
143
143
  /**
144
144
  * Whether the persona uses filler words like "um" and "uh"
@@ -170,6 +170,12 @@ export namespace SimulationPersonaCreateResponse {
170
170
  */
171
171
  properties: { [key: string]: unknown };
172
172
 
173
+ /**
174
+ * Controls how quickly the persona responds to pauses in conversation (QUICK,
175
+ * NORMAL, RELAXED)
176
+ */
177
+ responseTiming: 'RELAXED' | 'NORMAL' | 'QUICK';
178
+
173
179
  /**
174
180
  * Speech clarity of the persona
175
181
  */
@@ -265,7 +271,7 @@ export namespace SimulationPersonaUpdateResponse {
265
271
  /**
266
272
  * Gender of the persona
267
273
  */
268
- gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
274
+ gender: 'MALE' | 'FEMALE';
269
275
 
270
276
  /**
271
277
  * Whether the persona uses filler words like "um" and "uh"
@@ -297,6 +303,12 @@ export namespace SimulationPersonaUpdateResponse {
297
303
  */
298
304
  properties: { [key: string]: unknown };
299
305
 
306
+ /**
307
+ * Controls how quickly the persona responds to pauses in conversation (QUICK,
308
+ * NORMAL, RELAXED)
309
+ */
310
+ responseTiming: 'RELAXED' | 'NORMAL' | 'QUICK';
311
+
300
312
  /**
301
313
  * Speech clarity of the persona
302
314
  */
@@ -394,7 +406,7 @@ export namespace SimulationPersonaListResponse {
394
406
  /**
395
407
  * Gender of the persona
396
408
  */
397
- gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
409
+ gender: 'MALE' | 'FEMALE';
398
410
 
399
411
  /**
400
412
  * Whether the persona uses filler words like "um" and "uh"
@@ -426,6 +438,12 @@ export namespace SimulationPersonaListResponse {
426
438
  */
427
439
  properties: { [key: string]: unknown };
428
440
 
441
+ /**
442
+ * Controls how quickly the persona responds to pauses in conversation (QUICK,
443
+ * NORMAL, RELAXED)
444
+ */
445
+ responseTiming: 'RELAXED' | 'NORMAL' | 'QUICK';
446
+
429
447
  /**
430
448
  * Speech clarity of the persona
431
449
  */
@@ -538,7 +556,7 @@ export namespace SimulationPersonaGetByIDResponse {
538
556
  /**
539
557
  * Gender of the persona
540
558
  */
541
- gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
559
+ gender: 'MALE' | 'FEMALE';
542
560
 
543
561
  /**
544
562
  * Whether the persona uses filler words like "um" and "uh"
@@ -570,6 +588,12 @@ export namespace SimulationPersonaGetByIDResponse {
570
588
  */
571
589
  properties: { [key: string]: unknown };
572
590
 
591
+ /**
592
+ * Controls how quickly the persona responds to pauses in conversation (QUICK,
593
+ * NORMAL, RELAXED)
594
+ */
595
+ responseTiming: 'RELAXED' | 'NORMAL' | 'QUICK';
596
+
573
597
  /**
574
598
  * Speech clarity of the persona
575
599
  */
@@ -627,7 +651,7 @@ export interface SimulationPersonaCreateParams {
627
651
  /**
628
652
  * Gender of the persona
629
653
  */
630
- gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
654
+ gender: 'MALE' | 'FEMALE';
631
655
 
632
656
  /**
633
657
  * Primary language ISO 639-1 code for the persona
@@ -692,6 +716,12 @@ export interface SimulationPersonaCreateParams {
692
716
  */
693
717
  properties?: { [key: string]: unknown };
694
718
 
719
+ /**
720
+ * Controls how quickly the persona responds to pauses in conversation (QUICK,
721
+ * NORMAL, RELAXED)
722
+ */
723
+ responseTiming?: 'RELAXED' | 'NORMAL' | 'QUICK';
724
+
695
725
  /**
696
726
  * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
697
727
  */
@@ -766,7 +796,7 @@ export interface SimulationPersonaUpdateParams {
766
796
  /**
767
797
  * Gender of the persona
768
798
  */
769
- gender?: 'MALE' | 'FEMALE' | 'NEUTRAL';
799
+ gender?: 'MALE' | 'FEMALE';
770
800
 
771
801
  /**
772
802
  * Whether the persona uses filler words like "um" and "uh"
@@ -798,6 +828,12 @@ export interface SimulationPersonaUpdateParams {
798
828
  */
799
829
  properties?: { [key: string]: unknown };
800
830
 
831
+ /**
832
+ * Controls how quickly the persona responds to pauses in conversation (QUICK,
833
+ * NORMAL, RELAXED)
834
+ */
835
+ responseTiming?: 'RELAXED' | 'NORMAL' | 'QUICK';
836
+
801
837
  /**
802
838
  * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
803
839
  */
@@ -39,7 +39,8 @@ export class SimulationRunPlanJob extends APIResource {
39
39
  }
40
40
 
41
41
  /**
42
- * Create and execute a job for an existing simulation run plan
42
+ * Create and execute a job for an existing simulation run plan. Optionally provide
43
+ * runtime variables to override plan-defined variables.
43
44
  *
44
45
  * @example
45
46
  * ```ts
@@ -48,8 +49,12 @@ export class SimulationRunPlanJob extends APIResource {
48
49
  * );
49
50
  * ```
50
51
  */
51
- start(planID: unknown, options?: RequestOptions): APIPromise<SimulationRunPlanJobStartResponse> {
52
- return this._client.post(path`/v1/simulation/plan/${planID}/job`, options);
52
+ start(
53
+ planID: unknown,
54
+ body: SimulationRunPlanJobStartParams | null | undefined = {},
55
+ options?: RequestOptions,
56
+ ): APIPromise<SimulationRunPlanJobStartResponse> {
57
+ return this._client.post(path`/v1/simulation/plan/${planID}/job`, { body, ...options });
53
58
  }
54
59
  }
55
60
 
@@ -210,6 +215,7 @@ export namespace SimulationRunPlanJobGetByIDResponse {
210
215
  | 'SIMULATING'
211
216
  | 'ANALYZING'
212
217
  | 'EVALUATING'
218
+ | 'COLLECTING_METRICS'
213
219
  | 'COMPLETED';
214
220
 
215
221
  /**
@@ -342,7 +348,7 @@ export namespace SimulationRunPlanJobGetByIDResponse {
342
348
  /**
343
349
  * Gender of the persona
344
350
  */
345
- gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
351
+ gender: 'MALE' | 'FEMALE';
346
352
 
347
353
  /**
348
354
  * Whether the persona uses filler words like "um" and "uh"
@@ -374,6 +380,12 @@ export namespace SimulationRunPlanJobGetByIDResponse {
374
380
  */
375
381
  properties: { [key: string]: unknown };
376
382
 
383
+ /**
384
+ * Controls how quickly the persona responds to pauses in conversation (QUICK,
385
+ * NORMAL, RELAXED)
386
+ */
387
+ responseTiming: 'RELAXED' | 'NORMAL' | 'QUICK';
388
+
377
389
  /**
378
390
  * Speech clarity of the persona
379
391
  */
@@ -511,11 +523,41 @@ export interface SimulationRunPlanJobListParams {
511
523
  | 'CANCELLING';
512
524
  }
513
525
 
526
+ export interface SimulationRunPlanJobStartParams {
527
+ /**
528
+ * Runtime variables that override plan-defined scenario variables. Accepts one of
529
+ * two formats:
530
+ *
531
+ * Option 1 — Global (flat key-value object, applies to ALL scenarios): {
532
+ * "orderNumber": "12345", "environment": "staging" }
533
+ *
534
+ * Option 2 — Per-scenario (array of objects with scenarioId + variables): [ {
535
+ * "scenarioId": "550e8400-...", "variables": { "orderNumber": "12345" } }, {
536
+ * "scenarioId": "7a3d2e1f-...", "variables": { "orderNumber": "67890" } } ]
537
+ */
538
+ variables?: { [key: string]: string } | Array<SimulationRunPlanJobStartParams.UnionMember1>;
539
+ }
540
+
541
+ export namespace SimulationRunPlanJobStartParams {
542
+ export interface UnionMember1 {
543
+ /**
544
+ * ID of the scenario to apply variables to
545
+ */
546
+ scenarioId: string;
547
+
548
+ /**
549
+ * Key-value pairs for this scenario
550
+ */
551
+ variables: { [key: string]: string };
552
+ }
553
+ }
554
+
514
555
  export declare namespace SimulationRunPlanJob {
515
556
  export {
516
557
  type SimulationRunPlanJobListResponse as SimulationRunPlanJobListResponse,
517
558
  type SimulationRunPlanJobGetByIDResponse as SimulationRunPlanJobGetByIDResponse,
518
559
  type SimulationRunPlanJobStartResponse as SimulationRunPlanJobStartResponse,
519
560
  type SimulationRunPlanJobListParams as SimulationRunPlanJobListParams,
561
+ type SimulationRunPlanJobStartParams as SimulationRunPlanJobStartParams,
520
562
  };
521
563
  }