@roarkanalytics/sdk 3.2.1 → 3.4.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/customer-flow.d.mts +36 -11
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +36 -11
- package/resources/customer-flow.d.ts.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/resources/customer-flow.ts +36 -11
- 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
|
@@ -299,8 +299,12 @@ export namespace CustomerFlowCreateResponse {
|
|
|
299
299
|
agents: Array<ScriptedCustomerFlow.Agent>;
|
|
300
300
|
|
|
301
301
|
/**
|
|
302
|
-
*
|
|
303
|
-
*
|
|
302
|
+
* How a run walks the graph. DETERMINISTIC ("Simulate every path" in the app)
|
|
303
|
+
* places one call per variant, each following its path exactly whatever the agent
|
|
304
|
+
* says. ADAPTIVE ("Adapt to your agent") collapses the paths into one call PER
|
|
305
|
+
* PERSONA, on which the simulated customer picks a branch from what the agent
|
|
306
|
+
* actually said. Both modes speak the exact authored lines, and neither changes
|
|
307
|
+
* how metrics or expectations grade.
|
|
304
308
|
*/
|
|
305
309
|
branchingMode: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
306
310
|
|
|
@@ -2450,8 +2454,12 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
2450
2454
|
agents: Array<ScriptedCustomerFlow.Agent>;
|
|
2451
2455
|
|
|
2452
2456
|
/**
|
|
2453
|
-
*
|
|
2454
|
-
*
|
|
2457
|
+
* How a run walks the graph. DETERMINISTIC ("Simulate every path" in the app)
|
|
2458
|
+
* places one call per variant, each following its path exactly whatever the agent
|
|
2459
|
+
* says. ADAPTIVE ("Adapt to your agent") collapses the paths into one call PER
|
|
2460
|
+
* PERSONA, on which the simulated customer picks a branch from what the agent
|
|
2461
|
+
* actually said. Both modes speak the exact authored lines, and neither changes
|
|
2462
|
+
* how metrics or expectations grade.
|
|
2455
2463
|
*/
|
|
2456
2464
|
branchingMode: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
2457
2465
|
|
|
@@ -4604,8 +4612,12 @@ export namespace CustomerFlowListResponse {
|
|
|
4604
4612
|
agents: Array<ScriptedCustomerFlow.Agent>;
|
|
4605
4613
|
|
|
4606
4614
|
/**
|
|
4607
|
-
*
|
|
4608
|
-
*
|
|
4615
|
+
* How a run walks the graph. DETERMINISTIC ("Simulate every path" in the app)
|
|
4616
|
+
* places one call per variant, each following its path exactly whatever the agent
|
|
4617
|
+
* says. ADAPTIVE ("Adapt to your agent") collapses the paths into one call PER
|
|
4618
|
+
* PERSONA, on which the simulated customer picks a branch from what the agent
|
|
4619
|
+
* actually said. Both modes speak the exact authored lines, and neither changes
|
|
4620
|
+
* how metrics or expectations grade.
|
|
4609
4621
|
*/
|
|
4610
4622
|
branchingMode: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
4611
4623
|
|
|
@@ -6785,8 +6797,12 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
6785
6797
|
agents: Array<ScriptedCustomerFlow.Agent>;
|
|
6786
6798
|
|
|
6787
6799
|
/**
|
|
6788
|
-
*
|
|
6789
|
-
*
|
|
6800
|
+
* How a run walks the graph. DETERMINISTIC ("Simulate every path" in the app)
|
|
6801
|
+
* places one call per variant, each following its path exactly whatever the agent
|
|
6802
|
+
* says. ADAPTIVE ("Adapt to your agent") collapses the paths into one call PER
|
|
6803
|
+
* PERSONA, on which the simulated customer picks a branch from what the agent
|
|
6804
|
+
* actually said. Both modes speak the exact authored lines, and neither changes
|
|
6805
|
+
* how metrics or expectations grade.
|
|
6790
6806
|
*/
|
|
6791
6807
|
branchingMode: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
6792
6808
|
|
|
@@ -10817,8 +10833,12 @@ export declare namespace CustomerFlowCreateParams {
|
|
|
10817
10833
|
agentIds?: Array<string>;
|
|
10818
10834
|
|
|
10819
10835
|
/**
|
|
10820
|
-
*
|
|
10821
|
-
*
|
|
10836
|
+
* How a run walks the graph. DETERMINISTIC ("Simulate every path" in the app)
|
|
10837
|
+
* places one call per variant, each following its path exactly whatever the agent
|
|
10838
|
+
* says. ADAPTIVE ("Adapt to your agent") collapses the paths into one call PER
|
|
10839
|
+
* PERSONA, on which the simulated customer picks a branch from what the agent
|
|
10840
|
+
* actually said. Both modes speak the exact authored lines, and neither changes
|
|
10841
|
+
* how metrics or expectations grade. (DETERMINISTIC is the default.)
|
|
10822
10842
|
*/
|
|
10823
10843
|
branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
10824
10844
|
|
|
@@ -10924,7 +10944,12 @@ export interface CustomerFlowUpdateParams {
|
|
|
10924
10944
|
agentIds?: Array<string>;
|
|
10925
10945
|
|
|
10926
10946
|
/**
|
|
10927
|
-
* Scripted flows only.
|
|
10947
|
+
* Scripted flows only. How a run walks the graph. DETERMINISTIC ("Simulate every
|
|
10948
|
+
* path" in the app) places one call per variant, each following its path exactly
|
|
10949
|
+
* whatever the agent says. ADAPTIVE ("Adapt to your agent") collapses the paths
|
|
10950
|
+
* into one call PER PERSONA, on which the simulated customer picks a branch from
|
|
10951
|
+
* what the agent actually said. Both modes speak the exact authored lines, and
|
|
10952
|
+
* neither changes how metrics or expectations grade.
|
|
10928
10953
|
*/
|
|
10929
10954
|
branchingMode?: 'DETERMINISTIC' | 'ADAPTIVE';
|
|
10930
10955
|
|
|
@@ -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.4.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.4.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.4.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.4.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|