@roarkanalytics/sdk 3.3.0 → 3.5.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/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/metric.d.mts +18 -7
- package/resources/metric.d.mts.map +1 -1
- package/resources/metric.d.ts +18 -7
- package/resources/metric.d.ts.map +1 -1
- package/resources/metric.js +5 -4
- package/resources/metric.js.map +1 -1
- package/resources/metric.mjs +5 -4
- package/resources/metric.mjs.map +1 -1
- package/resources/simulation-run-plan.d.mts +78 -0
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +78 -0
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation.d.mts +26 -0
- package/resources/simulation.d.mts.map +1 -1
- package/resources/simulation.d.ts +26 -0
- package/resources/simulation.d.ts.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/metric.ts +28 -7
- package/src/resources/simulation-run-plan.ts +90 -0
- package/src/resources/simulation.ts +28 -0
- 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
|
@@ -145,6 +145,21 @@ export declare namespace SimulationRunParams {
|
|
|
145
145
|
* against these conditions. Empty array disables the feature.
|
|
146
146
|
*/
|
|
147
147
|
endCallReasons?: Array<string>;
|
|
148
|
+
/**
|
|
149
|
+
* Merge the customer's own recording of the real call into each simulation, so
|
|
150
|
+
* metrics can be scored against the live leg as well as the simulated one. This is
|
|
151
|
+
* the API equivalent of the dashboard's live-enrichment toggle.
|
|
152
|
+
*
|
|
153
|
+
* With this on, the run provisions a phone number and holds each call open for up
|
|
154
|
+
* to 15 minutes waiting for a matching call to be posted to POST /v1/call. A call
|
|
155
|
+
* matches on the provisioned number (`roarkPhoneNumber` on the job) with a start
|
|
156
|
+
* time inside the simulation window. If nothing arrives, the simulation still
|
|
157
|
+
* completes and any `LIVE`-sourced metric produces no value.
|
|
158
|
+
*
|
|
159
|
+
* Required by any metric whose `requiresLiveConversation` is true: without it that
|
|
160
|
+
* metric is silently skipped.
|
|
161
|
+
*/
|
|
162
|
+
enrichWithLiveConversation?: boolean;
|
|
148
163
|
/**
|
|
149
164
|
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
150
165
|
*/
|
|
@@ -191,6 +206,17 @@ export declare namespace SimulationRunParams {
|
|
|
191
206
|
* Metric definition UUID. Provide either this or `slug`, not both.
|
|
192
207
|
*/
|
|
193
208
|
id?: string;
|
|
209
|
+
/**
|
|
210
|
+
* Which side of an enriched run this metric is scored on. Only meaningful with
|
|
211
|
+
* `enrichWithLiveConversation: true`, where a run has both a simulated
|
|
212
|
+
* conversation and the customer's own live recording of it.
|
|
213
|
+
*
|
|
214
|
+
* Defaults to `SIMULATED`. Use `LIVE` for a metric that must be measured against
|
|
215
|
+
* the real recording (audio quality, provider latency) rather than the simulated
|
|
216
|
+
* leg. `null` means the same as omitting it, so a plan read back from GET can be
|
|
217
|
+
* sent straight to PUT.
|
|
218
|
+
*/
|
|
219
|
+
conversationSource?: 'SIMULATED' | 'LIVE' | null;
|
|
194
220
|
/**
|
|
195
221
|
* Alias of `slug` accepted for backwards compatibility. Use `slug` for new
|
|
196
222
|
* integrations.
|
|
@@ -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,E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145,6 +145,21 @@ export declare namespace SimulationRunParams {
|
|
|
145
145
|
* against these conditions. Empty array disables the feature.
|
|
146
146
|
*/
|
|
147
147
|
endCallReasons?: Array<string>;
|
|
148
|
+
/**
|
|
149
|
+
* Merge the customer's own recording of the real call into each simulation, so
|
|
150
|
+
* metrics can be scored against the live leg as well as the simulated one. This is
|
|
151
|
+
* the API equivalent of the dashboard's live-enrichment toggle.
|
|
152
|
+
*
|
|
153
|
+
* With this on, the run provisions a phone number and holds each call open for up
|
|
154
|
+
* to 15 minutes waiting for a matching call to be posted to POST /v1/call. A call
|
|
155
|
+
* matches on the provisioned number (`roarkPhoneNumber` on the job) with a start
|
|
156
|
+
* time inside the simulation window. If nothing arrives, the simulation still
|
|
157
|
+
* completes and any `LIVE`-sourced metric produces no value.
|
|
158
|
+
*
|
|
159
|
+
* Required by any metric whose `requiresLiveConversation` is true: without it that
|
|
160
|
+
* metric is silently skipped.
|
|
161
|
+
*/
|
|
162
|
+
enrichWithLiveConversation?: boolean;
|
|
148
163
|
/**
|
|
149
164
|
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
150
165
|
*/
|
|
@@ -191,6 +206,17 @@ export declare namespace SimulationRunParams {
|
|
|
191
206
|
* Metric definition UUID. Provide either this or `slug`, not both.
|
|
192
207
|
*/
|
|
193
208
|
id?: string;
|
|
209
|
+
/**
|
|
210
|
+
* Which side of an enriched run this metric is scored on. Only meaningful with
|
|
211
|
+
* `enrichWithLiveConversation: true`, where a run has both a simulated
|
|
212
|
+
* conversation and the customer's own live recording of it.
|
|
213
|
+
*
|
|
214
|
+
* Defaults to `SIMULATED`. Use `LIVE` for a metric that must be measured against
|
|
215
|
+
* the real recording (audio quality, provider latency) rather than the simulated
|
|
216
|
+
* leg. `null` means the same as omitting it, so a plan read back from GET can be
|
|
217
|
+
* sent straight to PUT.
|
|
218
|
+
*/
|
|
219
|
+
conversationSource?: 'SIMULATED' | 'LIVE' | null;
|
|
194
220
|
/**
|
|
195
221
|
* Alias of `slug` accepted for backwards compatibility. Use `slug` for new
|
|
196
222
|
* integrations.
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;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,QAAQ,GACR,WAAW,GACX,WAAW,GACX,YAAY,GACZ,oBAAoB,CAAC;KAC1B;CACF;AAED,MAAM,MAAM,mBAAmB,GAC3B,mBAAmB,CAAC,uBAAuB,GAC3C,mBAAmB,CAAC,uBAAuB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,UAAiB,uBAAuB;QACtC;;WAEG;QACH,IAAI,EAAE,uBAAuB,CAAC,IAAI,CAAC;QAEnC;;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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
|
@@ -101,6 +101,7 @@ import {
|
|
|
101
101
|
Metric,
|
|
102
102
|
MetricCreateDefinitionParams,
|
|
103
103
|
MetricCreateDefinitionResponse,
|
|
104
|
+
MetricListDefinitionsParams,
|
|
104
105
|
MetricListDefinitionsResponse,
|
|
105
106
|
} from './resources/metric';
|
|
106
107
|
import {
|
|
@@ -953,6 +954,7 @@ export declare namespace Roark {
|
|
|
953
954
|
type MetricCreateDefinitionResponse as MetricCreateDefinitionResponse,
|
|
954
955
|
type MetricListDefinitionsResponse as MetricListDefinitionsResponse,
|
|
955
956
|
type MetricCreateDefinitionParams as MetricCreateDefinitionParams,
|
|
957
|
+
type MetricListDefinitionsParams as MetricListDefinitionsParams,
|
|
956
958
|
};
|
|
957
959
|
|
|
958
960
|
export {
|
package/src/resources/index.ts
CHANGED
package/src/resources/metric.ts
CHANGED
|
@@ -29,16 +29,20 @@ export class Metric extends APIResource {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* Fetch
|
|
33
|
-
* system-generated and custom metrics.
|
|
32
|
+
* Fetch metric definitions available in the project, including both
|
|
33
|
+
* system-generated and custom metrics. Results are ordered by immutable definition
|
|
34
|
+
* ID; pass `nextCursor` to retrieve the following page.
|
|
34
35
|
*
|
|
35
36
|
* @example
|
|
36
37
|
* ```ts
|
|
37
38
|
* const response = await client.metric.listDefinitions();
|
|
38
39
|
* ```
|
|
39
40
|
*/
|
|
40
|
-
listDefinitions(
|
|
41
|
-
|
|
41
|
+
listDefinitions(
|
|
42
|
+
query: MetricListDefinitionsParams | null | undefined = {},
|
|
43
|
+
options?: RequestOptions,
|
|
44
|
+
): APIPromise<MetricListDefinitionsResponse> {
|
|
45
|
+
return this._client.get('/v1/metric/definitions', { query, ...options });
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
|
|
@@ -384,10 +388,10 @@ export namespace MetricCreateDefinitionResponse {
|
|
|
384
388
|
}
|
|
385
389
|
}
|
|
386
390
|
|
|
391
|
+
/**
|
|
392
|
+
* Cursor-paginated metric definitions available in the project
|
|
393
|
+
*/
|
|
387
394
|
export interface MetricListDefinitionsResponse {
|
|
388
|
-
/**
|
|
389
|
-
* Metrics response payload
|
|
390
|
-
*/
|
|
391
395
|
data: Array<
|
|
392
396
|
| MetricListDefinitionsResponse.LlmJudgeMetricResponse
|
|
393
397
|
| MetricListDefinitionsResponse.ProviderMetricResponse
|
|
@@ -395,6 +399,8 @@ export interface MetricListDefinitionsResponse {
|
|
|
395
399
|
| MetricListDefinitionsResponse.FormulaMetricResponse
|
|
396
400
|
| MetricListDefinitionsResponse.PatternMetricResponse
|
|
397
401
|
>;
|
|
402
|
+
|
|
403
|
+
pagination: MetricListDefinitionsResponse.Pagination;
|
|
398
404
|
}
|
|
399
405
|
|
|
400
406
|
export namespace MetricListDefinitionsResponse {
|
|
@@ -921,6 +927,14 @@ export namespace MetricListDefinitionsResponse {
|
|
|
921
927
|
symbol: string | null;
|
|
922
928
|
}
|
|
923
929
|
}
|
|
930
|
+
|
|
931
|
+
export interface Pagination {
|
|
932
|
+
hasMore: boolean;
|
|
933
|
+
|
|
934
|
+
limit: number;
|
|
935
|
+
|
|
936
|
+
nextCursor: string | null;
|
|
937
|
+
}
|
|
924
938
|
}
|
|
925
939
|
|
|
926
940
|
export type MetricCreateDefinitionParams =
|
|
@@ -1246,10 +1260,17 @@ export declare namespace MetricCreateDefinitionParams {
|
|
|
1246
1260
|
}
|
|
1247
1261
|
}
|
|
1248
1262
|
|
|
1263
|
+
export interface MetricListDefinitionsParams {
|
|
1264
|
+
after?: string;
|
|
1265
|
+
|
|
1266
|
+
limit?: number;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1249
1269
|
export declare namespace Metric {
|
|
1250
1270
|
export {
|
|
1251
1271
|
type MetricCreateDefinitionResponse as MetricCreateDefinitionResponse,
|
|
1252
1272
|
type MetricListDefinitionsResponse as MetricListDefinitionsResponse,
|
|
1253
1273
|
type MetricCreateDefinitionParams as MetricCreateDefinitionParams,
|
|
1274
|
+
type MetricListDefinitionsParams as MetricListDefinitionsParams,
|
|
1254
1275
|
};
|
|
1255
1276
|
}
|
|
@@ -159,6 +159,11 @@ export namespace SimulationRunPlanCreateResponse {
|
|
|
159
159
|
*/
|
|
160
160
|
endCallReasons: Array<string>;
|
|
161
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Whether this plan merges the customer's own live recording into each simulation.
|
|
164
|
+
*/
|
|
165
|
+
enrichWithLiveConversation: boolean;
|
|
166
|
+
|
|
162
167
|
/**
|
|
163
168
|
* Deprecated: Use metrics instead. Evaluators included in this run plan.
|
|
164
169
|
*/
|
|
@@ -297,6 +302,12 @@ export namespace SimulationRunPlanCreateResponse {
|
|
|
297
302
|
|
|
298
303
|
export interface Metric {
|
|
299
304
|
id: string;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Which side of an enriched run this metric is scored on. `null` means the
|
|
308
|
+
* default, SIMULATED.
|
|
309
|
+
*/
|
|
310
|
+
conversationSource: 'SIMULATED' | 'LIVE' | null;
|
|
300
311
|
}
|
|
301
312
|
|
|
302
313
|
export interface Persona {
|
|
@@ -396,6 +407,11 @@ export namespace SimulationRunPlanUpdateResponse {
|
|
|
396
407
|
*/
|
|
397
408
|
endCallReasons: Array<string>;
|
|
398
409
|
|
|
410
|
+
/**
|
|
411
|
+
* Whether this plan merges the customer's own live recording into each simulation.
|
|
412
|
+
*/
|
|
413
|
+
enrichWithLiveConversation: boolean;
|
|
414
|
+
|
|
399
415
|
/**
|
|
400
416
|
* Deprecated: Use metrics instead. Evaluators included in this run plan.
|
|
401
417
|
*/
|
|
@@ -534,6 +550,12 @@ export namespace SimulationRunPlanUpdateResponse {
|
|
|
534
550
|
|
|
535
551
|
export interface Metric {
|
|
536
552
|
id: string;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Which side of an enriched run this metric is scored on. `null` means the
|
|
556
|
+
* default, SIMULATED.
|
|
557
|
+
*/
|
|
558
|
+
conversationSource: 'SIMULATED' | 'LIVE' | null;
|
|
537
559
|
}
|
|
538
560
|
|
|
539
561
|
export interface Persona {
|
|
@@ -597,6 +619,11 @@ export namespace SimulationRunPlanListResponse {
|
|
|
597
619
|
*/
|
|
598
620
|
endCallReasons: Array<string>;
|
|
599
621
|
|
|
622
|
+
/**
|
|
623
|
+
* Whether this plan merges the customer's own live recording into each simulation.
|
|
624
|
+
*/
|
|
625
|
+
enrichWithLiveConversation: boolean;
|
|
626
|
+
|
|
600
627
|
/**
|
|
601
628
|
* Deprecated: Use metrics instead. Evaluators included in this run plan.
|
|
602
629
|
*/
|
|
@@ -735,6 +762,12 @@ export namespace SimulationRunPlanListResponse {
|
|
|
735
762
|
|
|
736
763
|
export interface Metric {
|
|
737
764
|
id: string;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Which side of an enriched run this metric is scored on. `null` means the
|
|
768
|
+
* default, SIMULATED.
|
|
769
|
+
*/
|
|
770
|
+
conversationSource: 'SIMULATED' | 'LIVE' | null;
|
|
738
771
|
}
|
|
739
772
|
|
|
740
773
|
export interface Persona {
|
|
@@ -826,6 +859,11 @@ export namespace SimulationRunPlanGetByIDResponse {
|
|
|
826
859
|
*/
|
|
827
860
|
endCallReasons: Array<string>;
|
|
828
861
|
|
|
862
|
+
/**
|
|
863
|
+
* Whether this plan merges the customer's own live recording into each simulation.
|
|
864
|
+
*/
|
|
865
|
+
enrichWithLiveConversation: boolean;
|
|
866
|
+
|
|
829
867
|
/**
|
|
830
868
|
* Deprecated: Use metrics instead. Evaluators included in this run plan.
|
|
831
869
|
*/
|
|
@@ -964,6 +1002,12 @@ export namespace SimulationRunPlanGetByIDResponse {
|
|
|
964
1002
|
|
|
965
1003
|
export interface Metric {
|
|
966
1004
|
id: string;
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* Which side of an enriched run this metric is scored on. `null` means the
|
|
1008
|
+
* default, SIMULATED.
|
|
1009
|
+
*/
|
|
1010
|
+
conversationSource: 'SIMULATED' | 'LIVE' | null;
|
|
967
1011
|
}
|
|
968
1012
|
|
|
969
1013
|
export interface Persona {
|
|
@@ -1032,6 +1076,22 @@ export interface SimulationRunPlanCreateParams {
|
|
|
1032
1076
|
*/
|
|
1033
1077
|
endCallReasons?: Array<string>;
|
|
1034
1078
|
|
|
1079
|
+
/**
|
|
1080
|
+
* Merge the customer's own recording of the real call into each simulation, so
|
|
1081
|
+
* metrics can be scored against the live leg as well as the simulated one. This is
|
|
1082
|
+
* the API equivalent of the dashboard's live-enrichment toggle.
|
|
1083
|
+
*
|
|
1084
|
+
* With this on, the run provisions a phone number and holds each call open for up
|
|
1085
|
+
* to 15 minutes waiting for a matching call to be posted to POST /v1/call. A call
|
|
1086
|
+
* matches on the provisioned number (`roarkPhoneNumber` on the job) with a start
|
|
1087
|
+
* time inside the simulation window. If nothing arrives, the simulation still
|
|
1088
|
+
* completes and any `LIVE`-sourced metric produces no value.
|
|
1089
|
+
*
|
|
1090
|
+
* Required by any metric whose `requiresLiveConversation` is true: without it that
|
|
1091
|
+
* metric is silently skipped.
|
|
1092
|
+
*/
|
|
1093
|
+
enrichWithLiveConversation?: boolean;
|
|
1094
|
+
|
|
1035
1095
|
/**
|
|
1036
1096
|
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
1037
1097
|
*/
|
|
@@ -1082,6 +1142,18 @@ export namespace SimulationRunPlanCreateParams {
|
|
|
1082
1142
|
*/
|
|
1083
1143
|
id?: string;
|
|
1084
1144
|
|
|
1145
|
+
/**
|
|
1146
|
+
* Which side of an enriched run this metric is scored on. Only meaningful with
|
|
1147
|
+
* `enrichWithLiveConversation: true`, where a run has both a simulated
|
|
1148
|
+
* conversation and the customer's own live recording of it.
|
|
1149
|
+
*
|
|
1150
|
+
* Defaults to `SIMULATED`. Use `LIVE` for a metric that must be measured against
|
|
1151
|
+
* the real recording (audio quality, provider latency) rather than the simulated
|
|
1152
|
+
* leg. `null` means the same as omitting it, so a plan read back from GET can be
|
|
1153
|
+
* sent straight to PUT.
|
|
1154
|
+
*/
|
|
1155
|
+
conversationSource?: 'SIMULATED' | 'LIVE' | null;
|
|
1156
|
+
|
|
1085
1157
|
/**
|
|
1086
1158
|
* Alias of `slug` accepted for backwards compatibility. Use `slug` for new
|
|
1087
1159
|
* integrations.
|
|
@@ -1195,6 +1267,12 @@ export interface SimulationRunPlanUpdateParams {
|
|
|
1195
1267
|
*/
|
|
1196
1268
|
endCallReasons?: Array<string>;
|
|
1197
1269
|
|
|
1270
|
+
/**
|
|
1271
|
+
* Whether to merge the customer's own live recording into each simulation of this
|
|
1272
|
+
* plan.
|
|
1273
|
+
*/
|
|
1274
|
+
enrichWithLiveConversation?: boolean;
|
|
1275
|
+
|
|
1198
1276
|
/**
|
|
1199
1277
|
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
1200
1278
|
*/
|
|
@@ -1325,6 +1403,18 @@ export namespace SimulationRunPlanUpdateParams {
|
|
|
1325
1403
|
*/
|
|
1326
1404
|
id?: string;
|
|
1327
1405
|
|
|
1406
|
+
/**
|
|
1407
|
+
* Which side of an enriched run this metric is scored on. Only meaningful with
|
|
1408
|
+
* `enrichWithLiveConversation: true`, where a run has both a simulated
|
|
1409
|
+
* conversation and the customer's own live recording of it.
|
|
1410
|
+
*
|
|
1411
|
+
* Defaults to `SIMULATED`. Use `LIVE` for a metric that must be measured against
|
|
1412
|
+
* the real recording (audio quality, provider latency) rather than the simulated
|
|
1413
|
+
* leg. `null` means the same as omitting it, so a plan read back from GET can be
|
|
1414
|
+
* sent straight to PUT.
|
|
1415
|
+
*/
|
|
1416
|
+
conversationSource?: 'SIMULATED' | 'LIVE' | null;
|
|
1417
|
+
|
|
1328
1418
|
/**
|
|
1329
1419
|
* Alias of `slug` accepted for backwards compatibility. Use `slug` for new
|
|
1330
1420
|
* integrations.
|
|
@@ -184,6 +184,22 @@ export declare namespace SimulationRunParams {
|
|
|
184
184
|
*/
|
|
185
185
|
endCallReasons?: Array<string>;
|
|
186
186
|
|
|
187
|
+
/**
|
|
188
|
+
* Merge the customer's own recording of the real call into each simulation, so
|
|
189
|
+
* metrics can be scored against the live leg as well as the simulated one. This is
|
|
190
|
+
* the API equivalent of the dashboard's live-enrichment toggle.
|
|
191
|
+
*
|
|
192
|
+
* With this on, the run provisions a phone number and holds each call open for up
|
|
193
|
+
* to 15 minutes waiting for a matching call to be posted to POST /v1/call. A call
|
|
194
|
+
* matches on the provisioned number (`roarkPhoneNumber` on the job) with a start
|
|
195
|
+
* time inside the simulation window. If nothing arrives, the simulation still
|
|
196
|
+
* completes and any `LIVE`-sourced metric produces no value.
|
|
197
|
+
*
|
|
198
|
+
* Required by any metric whose `requiresLiveConversation` is true: without it that
|
|
199
|
+
* metric is silently skipped.
|
|
200
|
+
*/
|
|
201
|
+
enrichWithLiveConversation?: boolean;
|
|
202
|
+
|
|
187
203
|
/**
|
|
188
204
|
* Execution mode (PARALLEL or SEQUENTIAL)
|
|
189
205
|
*/
|
|
@@ -240,6 +256,18 @@ export declare namespace SimulationRunParams {
|
|
|
240
256
|
*/
|
|
241
257
|
id?: string;
|
|
242
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Which side of an enriched run this metric is scored on. Only meaningful with
|
|
261
|
+
* `enrichWithLiveConversation: true`, where a run has both a simulated
|
|
262
|
+
* conversation and the customer's own live recording of it.
|
|
263
|
+
*
|
|
264
|
+
* Defaults to `SIMULATED`. Use `LIVE` for a metric that must be measured against
|
|
265
|
+
* the real recording (audio quality, provider latency) rather than the simulated
|
|
266
|
+
* leg. `null` means the same as omitting it, so a plan read back from GET can be
|
|
267
|
+
* sent straight to PUT.
|
|
268
|
+
*/
|
|
269
|
+
conversationSource?: 'SIMULATED' | 'LIVE' | null;
|
|
270
|
+
|
|
243
271
|
/**
|
|
244
272
|
* Alias of `slug` accepted for backwards compatibility. Use `slug` for new
|
|
245
273
|
* integrations.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.5.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.5.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|