@roarkanalytics/sdk 3.16.0 → 3.18.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.
- package/CHANGELOG.md +24 -0
- package/package.json +1 -1
- package/resources/config.d.mts +1 -0
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +1 -0
- package/resources/config.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +20 -0
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +20 -0
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/simulation-job.d.mts +18 -10
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +18 -10
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +24 -6
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +24 -6
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan.d.mts +117 -44
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +117 -44
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation-template.d.mts +41 -0
- package/resources/simulation-template.d.mts.map +1 -1
- package/resources/simulation-template.d.ts +41 -0
- package/resources/simulation-template.d.ts.map +1 -1
- package/resources/simulation.d.mts +37 -14
- package/resources/simulation.d.mts.map +1 -1
- package/resources/simulation.d.ts +37 -14
- package/resources/simulation.d.ts.map +1 -1
- package/src/resources/config.ts +2 -0
- package/src/resources/customer-flow.ts +30 -0
- package/src/resources/simulation-job.ts +18 -10
- package/src/resources/simulation-run-plan-job.ts +24 -6
- package/src/resources/simulation-run-plan.ts +215 -50
- package/src/resources/simulation-template.ts +58 -0
- package/src/resources/simulation.ts +54 -15
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -79,6 +79,19 @@ export declare namespace SimulationTemplateListResponse {
|
|
|
79
79
|
* Stable identifier. Name this in a run request.
|
|
80
80
|
*/
|
|
81
81
|
slug: string;
|
|
82
|
+
/**
|
|
83
|
+
* Set when this template is a property sweep: it runs ONE flow once per value of a
|
|
84
|
+
* single caller or environment property, and the report compares the values
|
|
85
|
+
* against `baseline`.
|
|
86
|
+
*
|
|
87
|
+
* This is what decides the size of the run. A sweep attaches the flow once per
|
|
88
|
+
* entry in `values`, so a plan built from it costs `values.length` times the calls
|
|
89
|
+
* a normal template would, before iterations. Read it before creating a plan you
|
|
90
|
+
* have to pay for.
|
|
91
|
+
*
|
|
92
|
+
* `null` for every other template.
|
|
93
|
+
*/
|
|
94
|
+
sweep: Data.Sweep | null;
|
|
82
95
|
/**
|
|
83
96
|
* The Pass/Fail checks this template attaches alongside its metrics.
|
|
84
97
|
*/
|
|
@@ -154,6 +167,34 @@ export declare namespace SimulationTemplateListResponse {
|
|
|
154
167
|
*/
|
|
155
168
|
slug: string;
|
|
156
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* Set when this template is a property sweep: it runs ONE flow once per value of a
|
|
172
|
+
* single caller or environment property, and the report compares the values
|
|
173
|
+
* against `baseline`.
|
|
174
|
+
*
|
|
175
|
+
* This is what decides the size of the run. A sweep attaches the flow once per
|
|
176
|
+
* entry in `values`, so a plan built from it costs `values.length` times the calls
|
|
177
|
+
* a normal template would, before iterations. Read it before creating a plan you
|
|
178
|
+
* have to pay for.
|
|
179
|
+
*
|
|
180
|
+
* `null` for every other template.
|
|
181
|
+
*/
|
|
182
|
+
interface Sweep {
|
|
183
|
+
/**
|
|
184
|
+
* The value the others are measured against, resolved to what a plan built from
|
|
185
|
+
* this template will actually record. `null` when the property has no obvious
|
|
186
|
+
* norm, and the report then compares against the best-performing value instead.
|
|
187
|
+
*/
|
|
188
|
+
baseline: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* The property this template varies across the flow it runs.
|
|
191
|
+
*/
|
|
192
|
+
property: 'ACCENT' | 'AGE' | 'BACKGROUND_NOISE' | 'BACKGROUND_NOISE_VOLUME' | 'BASE_EMOTION' | 'CONFIRMATION_STYLE' | 'GENDER' | 'INTENT_CLARITY' | 'LANGUAGE' | 'MEMORY_RELIABILITY' | 'RESPONSE_TIMING' | 'SPEECH_CLARITY' | 'SPEECH_PACE';
|
|
193
|
+
/**
|
|
194
|
+
* Every value the template sweeps, in the order the plan attaches them.
|
|
195
|
+
*/
|
|
196
|
+
values: Array<string>;
|
|
197
|
+
}
|
|
157
198
|
interface Threshold {
|
|
158
199
|
/**
|
|
159
200
|
* Metric definition ID
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulation-template.d.mts","sourceRoot":"","sources":["../src/resources/simulation-template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;CAG3E;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,KAAK,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;CAClD;AAED,yBAAiB,8BAA8B,CAAC;IAC9C;;;OAGG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;;;;;;WAQG;QACH,qBAAqB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAErC;;;WAGG;QACH,mCAAmC,EAAE,MAAM,CAAC;QAE5C;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;;;;;WAMG;QACH,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAExB;;;WAGG;QACH,kBAAkB,EAAE,O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 export declare namespace SimulationTemplateListResponse {
|
|
|
79
79
|
* Stable identifier. Name this in a run request.
|
|
80
80
|
*/
|
|
81
81
|
slug: string;
|
|
82
|
+
/**
|
|
83
|
+
* Set when this template is a property sweep: it runs ONE flow once per value of a
|
|
84
|
+
* single caller or environment property, and the report compares the values
|
|
85
|
+
* against `baseline`.
|
|
86
|
+
*
|
|
87
|
+
* This is what decides the size of the run. A sweep attaches the flow once per
|
|
88
|
+
* entry in `values`, so a plan built from it costs `values.length` times the calls
|
|
89
|
+
* a normal template would, before iterations. Read it before creating a plan you
|
|
90
|
+
* have to pay for.
|
|
91
|
+
*
|
|
92
|
+
* `null` for every other template.
|
|
93
|
+
*/
|
|
94
|
+
sweep: Data.Sweep | null;
|
|
82
95
|
/**
|
|
83
96
|
* The Pass/Fail checks this template attaches alongside its metrics.
|
|
84
97
|
*/
|
|
@@ -154,6 +167,34 @@ export declare namespace SimulationTemplateListResponse {
|
|
|
154
167
|
*/
|
|
155
168
|
slug: string;
|
|
156
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* Set when this template is a property sweep: it runs ONE flow once per value of a
|
|
172
|
+
* single caller or environment property, and the report compares the values
|
|
173
|
+
* against `baseline`.
|
|
174
|
+
*
|
|
175
|
+
* This is what decides the size of the run. A sweep attaches the flow once per
|
|
176
|
+
* entry in `values`, so a plan built from it costs `values.length` times the calls
|
|
177
|
+
* a normal template would, before iterations. Read it before creating a plan you
|
|
178
|
+
* have to pay for.
|
|
179
|
+
*
|
|
180
|
+
* `null` for every other template.
|
|
181
|
+
*/
|
|
182
|
+
interface Sweep {
|
|
183
|
+
/**
|
|
184
|
+
* The value the others are measured against, resolved to what a plan built from
|
|
185
|
+
* this template will actually record. `null` when the property has no obvious
|
|
186
|
+
* norm, and the report then compares against the best-performing value instead.
|
|
187
|
+
*/
|
|
188
|
+
baseline: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* The property this template varies across the flow it runs.
|
|
191
|
+
*/
|
|
192
|
+
property: 'ACCENT' | 'AGE' | 'BACKGROUND_NOISE' | 'BACKGROUND_NOISE_VOLUME' | 'BASE_EMOTION' | 'CONFIRMATION_STYLE' | 'GENDER' | 'INTENT_CLARITY' | 'LANGUAGE' | 'MEMORY_RELIABILITY' | 'RESPONSE_TIMING' | 'SPEECH_CLARITY' | 'SPEECH_PACE';
|
|
193
|
+
/**
|
|
194
|
+
* Every value the template sweeps, in the order the plan attaches them.
|
|
195
|
+
*/
|
|
196
|
+
values: Array<string>;
|
|
197
|
+
}
|
|
157
198
|
interface Threshold {
|
|
158
199
|
/**
|
|
159
200
|
* Metric definition ID
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulation-template.d.ts","sourceRoot":"","sources":["../src/resources/simulation-template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;CAG3E;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,KAAK,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;CAClD;AAED,yBAAiB,8BAA8B,CAAC;IAC9C;;;OAGG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;;;;;;WAQG;QACH,qBAAqB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAErC;;;WAGG;QACH,mCAAmC,EAAE,MAAM,CAAC;QAE5C;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;;;;;WAMG;QACH,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAExB;;;WAGG;QACH,kBAAkB,EAAE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@@ export declare namespace SimulationRunParams {
|
|
|
139
139
|
* `slug`.
|
|
140
140
|
*/
|
|
141
141
|
metrics: Array<Plan.Metric>;
|
|
142
|
+
/**
|
|
143
|
+
* The value of `comparisonProperty` every other value is measured against, for
|
|
144
|
+
* example `NONE` for `BACKGROUND_NOISE` or `NORMAL` for `SPEECH_PACE`. Must be a
|
|
145
|
+
* value that property can take.
|
|
146
|
+
*
|
|
147
|
+
* Stored rather than assumed, so the report can say "compared against US accent"
|
|
148
|
+
* instead of implying Roark decided which value is normal. Most properties have an
|
|
149
|
+
* obvious baseline and the dashboard prefills it; `GENDER` has none, so choose the
|
|
150
|
+
* one you are testing against.
|
|
151
|
+
*/
|
|
152
|
+
comparisonBaseline?: string | null;
|
|
153
|
+
/**
|
|
154
|
+
* The property this run plan investigates: the one thing its arms differ by.
|
|
155
|
+
*
|
|
156
|
+
* Set it and the run report compares the arms on that property, so a run answers
|
|
157
|
+
* "what did background noise cost" rather than just "what did each arm score".
|
|
158
|
+
* Every value is a field already recorded on each call, so the report can label an
|
|
159
|
+
* arm `CRYING_BABY` rather than repeating a flow variant's title.
|
|
160
|
+
*
|
|
161
|
+
* Omit it and the report still compares when it can: it detects which property
|
|
162
|
+
* varies across the arms. Setting it is what tells the written summary what you
|
|
163
|
+
* were trying to find out, which detection cannot infer.
|
|
164
|
+
*/
|
|
165
|
+
comparisonProperty?: 'ACCENT' | 'AGE' | 'BACKGROUND_NOISE' | 'BACKGROUND_NOISE_VOLUME' | 'BASE_EMOTION' | 'CONFIRMATION_STYLE' | 'GENDER' | 'INTENT_CLARITY' | 'LANGUAGE' | 'MEMORY_RELIABILITY' | 'RESPONSE_TIMING' | 'SPEECH_CLARITY' | 'SPEECH_PACE' | null;
|
|
166
|
+
/**
|
|
167
|
+
* Which values of `comparisonProperty` to run. This is what the plan costs: the
|
|
168
|
+
* flow is attached once per value, so ten values is ten times the calls of one.
|
|
169
|
+
*
|
|
170
|
+
* Omit it to run every value the property has, which for `ACCENT` is more than
|
|
171
|
+
* twenty. Send a subset to narrow the sweep, for example three accents you
|
|
172
|
+
* actually serve. A `comparisonBaseline` outside this set is rejected, because it
|
|
173
|
+
* would anchor every difference to an arm the run never made.
|
|
174
|
+
*
|
|
175
|
+
* Not stored as a field: the arms are the values. Reading the plan back returns
|
|
176
|
+
* them as its flow attachments.
|
|
177
|
+
*/
|
|
178
|
+
comparisonValues?: Array<string>;
|
|
142
179
|
/**
|
|
143
180
|
* Description of the run plan
|
|
144
181
|
*/
|
|
@@ -222,20 +259,6 @@ export declare namespace SimulationRunParams {
|
|
|
222
259
|
* `flows`, where each variant carries its own persona.
|
|
223
260
|
*/
|
|
224
261
|
personas?: Array<Plan.Persona>;
|
|
225
|
-
/**
|
|
226
|
-
* Name one flow variant as this run plan's REFERENCE arm.
|
|
227
|
-
*
|
|
228
|
-
* Every other flow variant the plan runs is then reported as a difference from
|
|
229
|
-
* this one, which is how a run answers "what did the change cost" rather than just
|
|
230
|
-
* "what did it score". The usual shape is one flow whose default variant is the
|
|
231
|
-
* control (say, a silent environment) plus one edge-case variant per condition
|
|
232
|
-
* under test.
|
|
233
|
-
*
|
|
234
|
-
* The variant must be one this plan actually runs: it has to belong to a flow in
|
|
235
|
-
* `flows`, and that flow's variant selection has to resolve to it. Omit or set
|
|
236
|
-
* null for a plan that is a general health check rather than an experiment.
|
|
237
|
-
*/
|
|
238
|
-
referenceCustomerFlowVariantId?: string | null;
|
|
239
262
|
/**
|
|
240
263
|
* @deprecated Deprecated: use `flows` instead. Scenarios to include in this run
|
|
241
264
|
* plan. The same scenario ID can appear multiple times with different variables.
|
|
@@ -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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F;QAED,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;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -139,6 +139,43 @@ export declare namespace SimulationRunParams {
|
|
|
139
139
|
* `slug`.
|
|
140
140
|
*/
|
|
141
141
|
metrics: Array<Plan.Metric>;
|
|
142
|
+
/**
|
|
143
|
+
* The value of `comparisonProperty` every other value is measured against, for
|
|
144
|
+
* example `NONE` for `BACKGROUND_NOISE` or `NORMAL` for `SPEECH_PACE`. Must be a
|
|
145
|
+
* value that property can take.
|
|
146
|
+
*
|
|
147
|
+
* Stored rather than assumed, so the report can say "compared against US accent"
|
|
148
|
+
* instead of implying Roark decided which value is normal. Most properties have an
|
|
149
|
+
* obvious baseline and the dashboard prefills it; `GENDER` has none, so choose the
|
|
150
|
+
* one you are testing against.
|
|
151
|
+
*/
|
|
152
|
+
comparisonBaseline?: string | null;
|
|
153
|
+
/**
|
|
154
|
+
* The property this run plan investigates: the one thing its arms differ by.
|
|
155
|
+
*
|
|
156
|
+
* Set it and the run report compares the arms on that property, so a run answers
|
|
157
|
+
* "what did background noise cost" rather than just "what did each arm score".
|
|
158
|
+
* Every value is a field already recorded on each call, so the report can label an
|
|
159
|
+
* arm `CRYING_BABY` rather than repeating a flow variant's title.
|
|
160
|
+
*
|
|
161
|
+
* Omit it and the report still compares when it can: it detects which property
|
|
162
|
+
* varies across the arms. Setting it is what tells the written summary what you
|
|
163
|
+
* were trying to find out, which detection cannot infer.
|
|
164
|
+
*/
|
|
165
|
+
comparisonProperty?: 'ACCENT' | 'AGE' | 'BACKGROUND_NOISE' | 'BACKGROUND_NOISE_VOLUME' | 'BASE_EMOTION' | 'CONFIRMATION_STYLE' | 'GENDER' | 'INTENT_CLARITY' | 'LANGUAGE' | 'MEMORY_RELIABILITY' | 'RESPONSE_TIMING' | 'SPEECH_CLARITY' | 'SPEECH_PACE' | null;
|
|
166
|
+
/**
|
|
167
|
+
* Which values of `comparisonProperty` to run. This is what the plan costs: the
|
|
168
|
+
* flow is attached once per value, so ten values is ten times the calls of one.
|
|
169
|
+
*
|
|
170
|
+
* Omit it to run every value the property has, which for `ACCENT` is more than
|
|
171
|
+
* twenty. Send a subset to narrow the sweep, for example three accents you
|
|
172
|
+
* actually serve. A `comparisonBaseline` outside this set is rejected, because it
|
|
173
|
+
* would anchor every difference to an arm the run never made.
|
|
174
|
+
*
|
|
175
|
+
* Not stored as a field: the arms are the values. Reading the plan back returns
|
|
176
|
+
* them as its flow attachments.
|
|
177
|
+
*/
|
|
178
|
+
comparisonValues?: Array<string>;
|
|
142
179
|
/**
|
|
143
180
|
* Description of the run plan
|
|
144
181
|
*/
|
|
@@ -222,20 +259,6 @@ export declare namespace SimulationRunParams {
|
|
|
222
259
|
* `flows`, where each variant carries its own persona.
|
|
223
260
|
*/
|
|
224
261
|
personas?: Array<Plan.Persona>;
|
|
225
|
-
/**
|
|
226
|
-
* Name one flow variant as this run plan's REFERENCE arm.
|
|
227
|
-
*
|
|
228
|
-
* Every other flow variant the plan runs is then reported as a difference from
|
|
229
|
-
* this one, which is how a run answers "what did the change cost" rather than just
|
|
230
|
-
* "what did it score". The usual shape is one flow whose default variant is the
|
|
231
|
-
* control (say, a silent environment) plus one edge-case variant per condition
|
|
232
|
-
* under test.
|
|
233
|
-
*
|
|
234
|
-
* The variant must be one this plan actually runs: it has to belong to a flow in
|
|
235
|
-
* `flows`, and that flow's variant selection has to resolve to it. Omit or set
|
|
236
|
-
* null for a plan that is a general health check rather than an experiment.
|
|
237
|
-
*/
|
|
238
|
-
referenceCustomerFlowVariantId?: string | null;
|
|
239
262
|
/**
|
|
240
263
|
* @deprecated Deprecated: use `flows` instead. Scenarios to include in this run
|
|
241
264
|
* plan. The same scenario ID can appear multiple times with different variables.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulation.d.ts","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;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,QAAQ,GACR,WAAW,GACX,WAAW,GACX,YAAY,GACZ,oBAAoB,CAAC;KAC1B;CACF;AAED,MAAM,MAAM,mBAAmB,GAC3B,mBAAmB,CAAC,uBAAuB,GAC3C,mBAAmB,CAAC,uB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d;;eAEG;YACH,SAAS,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE,CAAC;SACvC;QAED,UAAiB,IAAI,CAAC;YACpB,UAAiB,YAAY;gBAC3B;;mBAEG;gBACH,EAAE,CAAC,EAAE,MAAM,CAAC;gBAEZ;;mBAEG;gBACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBAElC;;;;;mBAKG;gBACH,IAAI,CAAC,EAAE,MAAM,CAAC;gBAEd;;mBAEG;gBACH,SAAS,CAAC,EAAE;oBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;iBAAE,CAAC;aACvC;SACF;QAED,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;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/resources/config.ts
CHANGED
|
@@ -210,6 +210,16 @@ export class CustomerFlow extends APIResource {
|
|
|
210
210
|
* replaces the flow-level one at that step. Omit it (or send null) to follow the
|
|
211
211
|
* flow's policy. Use it where one missed step makes the rest of the call
|
|
212
212
|
* meaningless: an authentication menu, say, with `then: HANG_UP_INVALIDATE`.
|
|
213
|
+
*
|
|
214
|
+
* Any step may set `requiredForValidRun`, which marks a step the flow requires a
|
|
215
|
+
* run to reach for its result to count. A run that ends without ever reaching it
|
|
216
|
+
* is invalidated: it stays in the report, labelled with the step it never reached
|
|
217
|
+
* and where it stopped, and is left out of the run score and the success-criteria
|
|
218
|
+
* verdict. Put it on the step where the test itself begins, typically the first
|
|
219
|
+
* one after an IVR or a login, so an agent that never gets past the menu does not
|
|
220
|
+
* fail every check in a scenario it never started. A path may have one; a
|
|
221
|
+
* branching flow may mark one step per branch, and reaching any of them makes the
|
|
222
|
+
* call valid. A path that marks none behaves exactly as before.
|
|
213
223
|
*/
|
|
214
224
|
export type FlowStep =
|
|
215
225
|
| FlowStep.UnionMember0
|
|
@@ -237,6 +247,8 @@ export namespace FlowStep {
|
|
|
237
247
|
|
|
238
248
|
ref?: string;
|
|
239
249
|
|
|
250
|
+
requiredForValidRun?: boolean;
|
|
251
|
+
|
|
240
252
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
241
253
|
}
|
|
242
254
|
|
|
@@ -265,6 +277,8 @@ export namespace FlowStep {
|
|
|
265
277
|
|
|
266
278
|
ref?: string;
|
|
267
279
|
|
|
280
|
+
requiredForValidRun?: boolean;
|
|
281
|
+
|
|
268
282
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
269
283
|
}
|
|
270
284
|
|
|
@@ -279,6 +293,8 @@ export namespace FlowStep {
|
|
|
279
293
|
|
|
280
294
|
ref?: string;
|
|
281
295
|
|
|
296
|
+
requiredForValidRun?: boolean;
|
|
297
|
+
|
|
282
298
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
283
299
|
}
|
|
284
300
|
|
|
@@ -293,6 +309,8 @@ export namespace FlowStep {
|
|
|
293
309
|
|
|
294
310
|
ref?: string;
|
|
295
311
|
|
|
312
|
+
requiredForValidRun?: boolean;
|
|
313
|
+
|
|
296
314
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
297
315
|
}
|
|
298
316
|
|
|
@@ -305,6 +323,8 @@ export namespace FlowStep {
|
|
|
305
323
|
|
|
306
324
|
ref?: string;
|
|
307
325
|
|
|
326
|
+
requiredForValidRun?: boolean;
|
|
327
|
+
|
|
308
328
|
silenceDurationSeconds?: number | null;
|
|
309
329
|
|
|
310
330
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
@@ -321,6 +341,8 @@ export namespace FlowStep {
|
|
|
321
341
|
|
|
322
342
|
ref?: string;
|
|
323
343
|
|
|
344
|
+
requiredForValidRun?: boolean;
|
|
345
|
+
|
|
324
346
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
325
347
|
}
|
|
326
348
|
|
|
@@ -335,6 +357,8 @@ export namespace FlowStep {
|
|
|
335
357
|
|
|
336
358
|
ref?: string;
|
|
337
359
|
|
|
360
|
+
requiredForValidRun?: boolean;
|
|
361
|
+
|
|
338
362
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
339
363
|
}
|
|
340
364
|
|
|
@@ -347,6 +371,8 @@ export namespace FlowStep {
|
|
|
347
371
|
|
|
348
372
|
ref?: string;
|
|
349
373
|
|
|
374
|
+
requiredForValidRun?: boolean;
|
|
375
|
+
|
|
350
376
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
351
377
|
}
|
|
352
378
|
|
|
@@ -361,6 +387,8 @@ export namespace FlowStep {
|
|
|
361
387
|
|
|
362
388
|
ref?: string;
|
|
363
389
|
|
|
390
|
+
requiredForValidRun?: boolean;
|
|
391
|
+
|
|
364
392
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
365
393
|
}
|
|
366
394
|
|
|
@@ -377,6 +405,8 @@ export namespace FlowStep {
|
|
|
377
405
|
|
|
378
406
|
ref?: string;
|
|
379
407
|
|
|
408
|
+
requiredForValidRun?: boolean;
|
|
409
|
+
|
|
380
410
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
381
411
|
}
|
|
382
412
|
}
|
|
@@ -69,8 +69,10 @@ export namespace SimulationJobGetByIDResponse {
|
|
|
69
69
|
enrichment: Data.Enrichment;
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
* Present when the run was invalidated:
|
|
73
|
-
*
|
|
72
|
+
* Present when the run was invalidated: the call ended before a step its flow
|
|
73
|
+
* requires for a valid run, or a strict flow went off script at a step whose
|
|
74
|
+
* policy invalidates the run. It keeps its transcript and recording, but nothing
|
|
75
|
+
* scored it and it is excluded from every run total.
|
|
74
76
|
*/
|
|
75
77
|
invalidation: Data.Invalidation | null;
|
|
76
78
|
|
|
@@ -202,8 +204,10 @@ export namespace SimulationJobGetByIDResponse {
|
|
|
202
204
|
}
|
|
203
205
|
|
|
204
206
|
/**
|
|
205
|
-
* Present when the run was invalidated:
|
|
206
|
-
*
|
|
207
|
+
* Present when the run was invalidated: the call ended before a step its flow
|
|
208
|
+
* requires for a valid run, or a strict flow went off script at a step whose
|
|
209
|
+
* policy invalidates the run. It keeps its transcript and recording, but nothing
|
|
210
|
+
* scored it and it is excluded from every run total.
|
|
207
211
|
*/
|
|
208
212
|
export interface Invalidation {
|
|
209
213
|
/**
|
|
@@ -215,7 +219,7 @@ export namespace SimulationJobGetByIDResponse {
|
|
|
215
219
|
* Why the result does not count. `SCRIPT_DIVERGED`: a strict flow went off script
|
|
216
220
|
* at a step whose off-script policy is HANG_UP_INVALIDATE.
|
|
217
221
|
*/
|
|
218
|
-
reason: 'SCRIPT_DIVERGED';
|
|
222
|
+
reason: 'SCRIPT_DIVERGED' | 'REQUIRED_STEP_NOT_REACHED';
|
|
219
223
|
|
|
220
224
|
/**
|
|
221
225
|
* One sentence: where the script was left and what your agent did instead.
|
|
@@ -514,8 +518,10 @@ export namespace SimulationJobLookupResponse {
|
|
|
514
518
|
enrichment: Data.Enrichment;
|
|
515
519
|
|
|
516
520
|
/**
|
|
517
|
-
* Present when the run was invalidated:
|
|
518
|
-
*
|
|
521
|
+
* Present when the run was invalidated: the call ended before a step its flow
|
|
522
|
+
* requires for a valid run, or a strict flow went off script at a step whose
|
|
523
|
+
* policy invalidates the run. It keeps its transcript and recording, but nothing
|
|
524
|
+
* scored it and it is excluded from every run total.
|
|
519
525
|
*/
|
|
520
526
|
invalidation: Data.Invalidation | null;
|
|
521
527
|
|
|
@@ -647,8 +653,10 @@ export namespace SimulationJobLookupResponse {
|
|
|
647
653
|
}
|
|
648
654
|
|
|
649
655
|
/**
|
|
650
|
-
* Present when the run was invalidated:
|
|
651
|
-
*
|
|
656
|
+
* Present when the run was invalidated: the call ended before a step its flow
|
|
657
|
+
* requires for a valid run, or a strict flow went off script at a step whose
|
|
658
|
+
* policy invalidates the run. It keeps its transcript and recording, but nothing
|
|
659
|
+
* scored it and it is excluded from every run total.
|
|
652
660
|
*/
|
|
653
661
|
export interface Invalidation {
|
|
654
662
|
/**
|
|
@@ -660,7 +668,7 @@ export namespace SimulationJobLookupResponse {
|
|
|
660
668
|
* Why the result does not count. `SCRIPT_DIVERGED`: a strict flow went off script
|
|
661
669
|
* at a step whose off-script policy is HANG_UP_INVALIDATE.
|
|
662
670
|
*/
|
|
663
|
-
reason: 'SCRIPT_DIVERGED';
|
|
671
|
+
reason: 'SCRIPT_DIVERGED' | 'REQUIRED_STEP_NOT_REACHED';
|
|
664
672
|
|
|
665
673
|
/**
|
|
666
674
|
* One sentence: where the script was left and what your agent did instead.
|
|
@@ -279,8 +279,10 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
279
279
|
createdAt: string;
|
|
280
280
|
|
|
281
281
|
/**
|
|
282
|
-
* Present when the run was invalidated:
|
|
283
|
-
*
|
|
282
|
+
* Present when the run was invalidated: the call ended before a step its flow
|
|
283
|
+
* requires for a valid run, or a strict flow went off script at a step whose
|
|
284
|
+
* policy invalidates the run. It keeps its transcript and recording, but nothing
|
|
285
|
+
* scored it and it is excluded from every run total.
|
|
284
286
|
*/
|
|
285
287
|
invalidation: SimulationJob.Invalidation | null;
|
|
286
288
|
|
|
@@ -382,8 +384,10 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
382
384
|
}
|
|
383
385
|
|
|
384
386
|
/**
|
|
385
|
-
* Present when the run was invalidated:
|
|
386
|
-
*
|
|
387
|
+
* Present when the run was invalidated: the call ended before a step its flow
|
|
388
|
+
* requires for a valid run, or a strict flow went off script at a step whose
|
|
389
|
+
* policy invalidates the run. It keeps its transcript and recording, but nothing
|
|
390
|
+
* scored it and it is excluded from every run total.
|
|
387
391
|
*/
|
|
388
392
|
export interface Invalidation {
|
|
389
393
|
/**
|
|
@@ -395,7 +399,7 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
395
399
|
* Why the result does not count. `SCRIPT_DIVERGED`: a strict flow went off script
|
|
396
400
|
* at a step whose off-script policy is HANG_UP_INVALIDATE.
|
|
397
401
|
*/
|
|
398
|
-
reason: 'SCRIPT_DIVERGED';
|
|
402
|
+
reason: 'SCRIPT_DIVERGED' | 'REQUIRED_STEP_NOT_REACHED';
|
|
399
403
|
|
|
400
404
|
/**
|
|
401
405
|
* One sentence: where the script was left and what your agent did instead.
|
|
@@ -654,6 +658,9 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
654
658
|
/**
|
|
655
659
|
* Every check the run was judged on, with its rate and the minimum it had to
|
|
656
660
|
* reach.
|
|
661
|
+
*
|
|
662
|
+
* Thresholds and authored yes/no metrics only. See `SimulationRunPlanJobCheck` for
|
|
663
|
+
* why a provider reading is not one.
|
|
657
664
|
*/
|
|
658
665
|
checks: Array<Verdict.Check>;
|
|
659
666
|
|
|
@@ -677,6 +684,10 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
677
684
|
* The run's headline quality number, 0-100: the mean of each check's own pass
|
|
678
685
|
* rate.
|
|
679
686
|
*
|
|
687
|
+
* Every check weighs the same, however many simulations it evaluated, which is the
|
|
688
|
+
* same way `passed` treats them. It is the number the Roark dashboard shows for
|
|
689
|
+
* this run.
|
|
690
|
+
*
|
|
680
691
|
* REPORTING ONLY, for dashboards and trend lines. Nothing is judged against it.
|
|
681
692
|
* Null when nothing was evaluated.
|
|
682
693
|
*/
|
|
@@ -685,7 +696,14 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
685
696
|
|
|
686
697
|
export namespace Verdict {
|
|
687
698
|
/**
|
|
688
|
-
* How one
|
|
699
|
+
* How one check did. Present for every check the run was judged on, passing or
|
|
700
|
+
* not.
|
|
701
|
+
*
|
|
702
|
+
* A check is a metric that yields a pass/fail: a threshold
|
|
703
|
+
* (`Silence Duration <= 2s`) or a yes/no metric you authored. Provider readings
|
|
704
|
+
* such as `Comprehension Failure` are observations, not checks: their `true` is
|
|
705
|
+
* whatever the underlying field happens to mean, so they carry no passing side and
|
|
706
|
+
* never appear here. Put a threshold on one to judge it.
|
|
689
707
|
*/
|
|
690
708
|
export interface Check {
|
|
691
709
|
evaluatedSims: number;
|