@roarkanalytics/sdk 3.21.0 → 4.0.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 +16 -0
- package/client.d.mts +3 -3
- package/client.d.ts +3 -3
- package/client.js +3 -3
- package/client.mjs +3 -3
- package/package.json +1 -1
- package/resources/{autoimprove-fix.d.mts → autoimprove-job.d.mts} +105 -105
- package/resources/{autoimprove-fix.d.mts.map → autoimprove-job.d.mts.map} +1 -1
- package/resources/{autoimprove-fix.d.ts → autoimprove-job.d.ts} +105 -105
- package/resources/{autoimprove-fix.d.ts.map → autoimprove-job.d.ts.map} +1 -1
- package/resources/{autoimprove-fix.js → autoimprove-job.js} +40 -40
- package/resources/{autoimprove-fix.js.map → autoimprove-job.js.map} +1 -1
- package/resources/{autoimprove-fix.mjs → autoimprove-job.mjs} +38 -38
- package/resources/{autoimprove-fix.mjs.map → autoimprove-job.mjs.map} +1 -1
- package/resources/config.d.mts +9 -0
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +9 -0
- package/resources/config.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +104 -19
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +104 -19
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.js +3 -3
- package/resources/index.mjs +1 -1
- package/resources/simulation-job.d.mts +2 -2
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +2 -2
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +1 -1
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +1 -1
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/src/client.ts +27 -27
- package/src/resources/{autoimprove-fix.ts → autoimprove-job.ts} +127 -127
- package/src/resources/config.ts +13 -0
- package/src/resources/customer-flow.ts +135 -20
- package/src/resources/index.ts +13 -13
- package/src/resources/simulation-job.ts +2 -2
- package/src/resources/simulation-run-plan-job.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -211,15 +211,32 @@ export class CustomerFlow extends APIResource {
|
|
|
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
213
|
*
|
|
214
|
-
* Any step may set `
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
214
|
+
* Any step may set `stage`, the named phase of the flow it belongs to: the IVR,
|
|
215
|
+
* the login, the scenario itself. Steps in one stage are drawn as a group in the
|
|
216
|
+
* editor, and the name is yours: the reports say it back to you. The stage does
|
|
217
|
+
* not have to exist first, it is created the first time a step names it, and a
|
|
218
|
+
* name already in the project is matched ignoring case.
|
|
219
|
+
*
|
|
220
|
+
* A stage with `required: true` is a gate. A run that ends without getting PAST it
|
|
221
|
+
* never reached what was being measured, so it stays in the report, labelled with
|
|
222
|
+
* the stage it never completed and the one it stopped in, and is left out of the
|
|
223
|
+
* run score and the success-criteria verdict: an agent that never clears the IVR
|
|
224
|
+
* does not fail every check in a scenario it never started. `required` belongs to
|
|
225
|
+
* the stage rather than to the step, so a read returns it on every step in that
|
|
226
|
+
* stage, and a write that sets it on any one of them marks the whole stage. A flow
|
|
227
|
+
* that requires no stage is scored exactly as before.
|
|
228
|
+
*
|
|
229
|
+
* A stage with `analyze: false` is not measured. Its turns are kept out of the
|
|
230
|
+
* core call metrics (talk time, speech pace, turn and response timings), which is
|
|
231
|
+
* what an IVR usually wants alongside `required: true`: the run has to get through
|
|
232
|
+
* the menu, but how the agent sounded reading it is not what is being tested.
|
|
233
|
+
* Coverage is being extended package by package, so the judged metrics (quality,
|
|
234
|
+
* compliance, repetition, escalation, tone) still read the whole call for now.
|
|
235
|
+
* Nothing is cut and nothing is re-timed, so a turn at 4:10 is still at 4:10 with
|
|
236
|
+
* an earlier stage excluded, and rate metrics divide by the part of the call that
|
|
237
|
+
* was measured rather than by the whole of it. Defaults to true, belongs to the
|
|
238
|
+
* stage the same way `required` does, and turning it off on any one step turns it
|
|
239
|
+
* off for the stage.
|
|
223
240
|
*/
|
|
224
241
|
export type FlowStep =
|
|
225
242
|
| FlowStep.UnionMember0
|
|
@@ -247,7 +264,7 @@ export namespace FlowStep {
|
|
|
247
264
|
|
|
248
265
|
ref?: string;
|
|
249
266
|
|
|
250
|
-
|
|
267
|
+
stage?: UnionMember0.Stage | null;
|
|
251
268
|
|
|
252
269
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
253
270
|
}
|
|
@@ -264,6 +281,14 @@ export namespace FlowStep {
|
|
|
264
281
|
|
|
265
282
|
waitSeconds?: number | null;
|
|
266
283
|
}
|
|
284
|
+
|
|
285
|
+
export interface Stage {
|
|
286
|
+
name: string;
|
|
287
|
+
|
|
288
|
+
analyze?: boolean;
|
|
289
|
+
|
|
290
|
+
required?: boolean;
|
|
291
|
+
}
|
|
267
292
|
}
|
|
268
293
|
|
|
269
294
|
export interface UnionMember1 {
|
|
@@ -277,11 +302,21 @@ export namespace FlowStep {
|
|
|
277
302
|
|
|
278
303
|
ref?: string;
|
|
279
304
|
|
|
280
|
-
|
|
305
|
+
stage?: UnionMember1.Stage | null;
|
|
281
306
|
|
|
282
307
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
283
308
|
}
|
|
284
309
|
|
|
310
|
+
export namespace UnionMember1 {
|
|
311
|
+
export interface Stage {
|
|
312
|
+
name: string;
|
|
313
|
+
|
|
314
|
+
analyze?: boolean;
|
|
315
|
+
|
|
316
|
+
required?: boolean;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
285
320
|
export interface UnionMember2 {
|
|
286
321
|
type: 'CUSTOMER_FIRST_MESSAGE';
|
|
287
322
|
|
|
@@ -293,11 +328,21 @@ export namespace FlowStep {
|
|
|
293
328
|
|
|
294
329
|
ref?: string;
|
|
295
330
|
|
|
296
|
-
|
|
331
|
+
stage?: UnionMember2.Stage | null;
|
|
297
332
|
|
|
298
333
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
299
334
|
}
|
|
300
335
|
|
|
336
|
+
export namespace UnionMember2 {
|
|
337
|
+
export interface Stage {
|
|
338
|
+
name: string;
|
|
339
|
+
|
|
340
|
+
analyze?: boolean;
|
|
341
|
+
|
|
342
|
+
required?: boolean;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
301
346
|
export interface UnionMember3 {
|
|
302
347
|
type: 'CUSTOMER_VERBATIM_TURN';
|
|
303
348
|
|
|
@@ -309,11 +354,21 @@ export namespace FlowStep {
|
|
|
309
354
|
|
|
310
355
|
ref?: string;
|
|
311
356
|
|
|
312
|
-
|
|
357
|
+
stage?: UnionMember3.Stage | null;
|
|
313
358
|
|
|
314
359
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
315
360
|
}
|
|
316
361
|
|
|
362
|
+
export namespace UnionMember3 {
|
|
363
|
+
export interface Stage {
|
|
364
|
+
name: string;
|
|
365
|
+
|
|
366
|
+
analyze?: boolean;
|
|
367
|
+
|
|
368
|
+
required?: boolean;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
317
372
|
export interface UnionMember4 {
|
|
318
373
|
type: 'CUSTOMER_SILENCE';
|
|
319
374
|
|
|
@@ -323,13 +378,23 @@ export namespace FlowStep {
|
|
|
323
378
|
|
|
324
379
|
ref?: string;
|
|
325
380
|
|
|
326
|
-
requiredForValidRun?: boolean;
|
|
327
|
-
|
|
328
381
|
silenceDurationSeconds?: number | null;
|
|
329
382
|
|
|
383
|
+
stage?: UnionMember4.Stage | null;
|
|
384
|
+
|
|
330
385
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
331
386
|
}
|
|
332
387
|
|
|
388
|
+
export namespace UnionMember4 {
|
|
389
|
+
export interface Stage {
|
|
390
|
+
name: string;
|
|
391
|
+
|
|
392
|
+
analyze?: boolean;
|
|
393
|
+
|
|
394
|
+
required?: boolean;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
333
398
|
export interface UnionMember5 {
|
|
334
399
|
type: 'CUSTOMER_DTMF';
|
|
335
400
|
|
|
@@ -341,11 +406,21 @@ export namespace FlowStep {
|
|
|
341
406
|
|
|
342
407
|
ref?: string;
|
|
343
408
|
|
|
344
|
-
|
|
409
|
+
stage?: UnionMember5.Stage | null;
|
|
345
410
|
|
|
346
411
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
347
412
|
}
|
|
348
413
|
|
|
414
|
+
export namespace UnionMember5 {
|
|
415
|
+
export interface Stage {
|
|
416
|
+
name: string;
|
|
417
|
+
|
|
418
|
+
analyze?: boolean;
|
|
419
|
+
|
|
420
|
+
required?: boolean;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
349
424
|
export interface UnionMember6 {
|
|
350
425
|
type: 'AGENT_DTMF';
|
|
351
426
|
|
|
@@ -357,11 +432,21 @@ export namespace FlowStep {
|
|
|
357
432
|
|
|
358
433
|
ref?: string;
|
|
359
434
|
|
|
360
|
-
|
|
435
|
+
stage?: UnionMember6.Stage | null;
|
|
361
436
|
|
|
362
437
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
363
438
|
}
|
|
364
439
|
|
|
440
|
+
export namespace UnionMember6 {
|
|
441
|
+
export interface Stage {
|
|
442
|
+
name: string;
|
|
443
|
+
|
|
444
|
+
analyze?: boolean;
|
|
445
|
+
|
|
446
|
+
required?: boolean;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
365
450
|
export interface UnionMember7 {
|
|
366
451
|
type: 'VOICEMAIL';
|
|
367
452
|
|
|
@@ -371,11 +456,21 @@ export namespace FlowStep {
|
|
|
371
456
|
|
|
372
457
|
ref?: string;
|
|
373
458
|
|
|
374
|
-
|
|
459
|
+
stage?: UnionMember7.Stage | null;
|
|
375
460
|
|
|
376
461
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
377
462
|
}
|
|
378
463
|
|
|
464
|
+
export namespace UnionMember7 {
|
|
465
|
+
export interface Stage {
|
|
466
|
+
name: string;
|
|
467
|
+
|
|
468
|
+
analyze?: boolean;
|
|
469
|
+
|
|
470
|
+
required?: boolean;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
379
474
|
export interface UnionMember8 {
|
|
380
475
|
type: 'CUSTOMER_HANDOFF';
|
|
381
476
|
|
|
@@ -387,11 +482,21 @@ export namespace FlowStep {
|
|
|
387
482
|
|
|
388
483
|
ref?: string;
|
|
389
484
|
|
|
390
|
-
|
|
485
|
+
stage?: UnionMember8.Stage | null;
|
|
391
486
|
|
|
392
487
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
393
488
|
}
|
|
394
489
|
|
|
490
|
+
export namespace UnionMember8 {
|
|
491
|
+
export interface Stage {
|
|
492
|
+
name: string;
|
|
493
|
+
|
|
494
|
+
analyze?: boolean;
|
|
495
|
+
|
|
496
|
+
required?: boolean;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
395
500
|
export interface UnionMember9 {
|
|
396
501
|
type: 'SCENARIO_LINK';
|
|
397
502
|
|
|
@@ -405,10 +510,20 @@ export namespace FlowStep {
|
|
|
405
510
|
|
|
406
511
|
ref?: string;
|
|
407
512
|
|
|
408
|
-
|
|
513
|
+
stage?: UnionMember9.Stage | null;
|
|
409
514
|
|
|
410
515
|
steps?: Array<CustomerFlowAPI.FlowStep>;
|
|
411
516
|
}
|
|
517
|
+
|
|
518
|
+
export namespace UnionMember9 {
|
|
519
|
+
export interface Stage {
|
|
520
|
+
name: string;
|
|
521
|
+
|
|
522
|
+
analyze?: boolean;
|
|
523
|
+
|
|
524
|
+
required?: boolean;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
412
527
|
}
|
|
413
528
|
|
|
414
529
|
export interface CustomerFlowCreateResponse {
|
package/src/resources/index.ts
CHANGED
|
@@ -29,20 +29,20 @@ export {
|
|
|
29
29
|
type AgentPromptListVersionsParams,
|
|
30
30
|
} from './agent-prompt';
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
AutoimproveJob,
|
|
33
33
|
type AutoimproveLogEntry,
|
|
34
|
-
type
|
|
35
|
-
type
|
|
36
|
-
type
|
|
37
|
-
type
|
|
38
|
-
type
|
|
39
|
-
type
|
|
40
|
-
type
|
|
41
|
-
type
|
|
42
|
-
type
|
|
43
|
-
type
|
|
44
|
-
type
|
|
45
|
-
} from './autoimprove-
|
|
34
|
+
type AutoimproveJobCreateResponse,
|
|
35
|
+
type AutoimproveJobListResponse,
|
|
36
|
+
type AutoimproveJobAnswerQuestionResponse,
|
|
37
|
+
type AutoimproveJobCancelResponse,
|
|
38
|
+
type AutoimproveJobDismissResponse,
|
|
39
|
+
type AutoimproveJobGetByIDResponse,
|
|
40
|
+
type AutoimproveJobPromoteResponse,
|
|
41
|
+
type AutoimproveJobSendGuidanceResponse,
|
|
42
|
+
type AutoimproveJobCreateParams,
|
|
43
|
+
type AutoimproveJobAnswerQuestionParams,
|
|
44
|
+
type AutoimproveJobSendGuidanceParams,
|
|
45
|
+
} from './autoimprove-job';
|
|
46
46
|
export {
|
|
47
47
|
Benchmark,
|
|
48
48
|
type BenchmarkGetLeaderboardResponse,
|
|
@@ -219,7 +219,7 @@ export namespace SimulationJobGetByIDResponse {
|
|
|
219
219
|
* Why the result does not count. `SCRIPT_DIVERGED`: a strict flow went off script
|
|
220
220
|
* at a step whose off-script policy is HANG_UP_INVALIDATE.
|
|
221
221
|
*/
|
|
222
|
-
reason: 'SCRIPT_DIVERGED' | 'REQUIRED_STEP_NOT_REACHED';
|
|
222
|
+
reason: 'SCRIPT_DIVERGED' | 'REQUIRED_STEP_NOT_REACHED' | 'REQUIRED_STAGE_INCOMPLETE';
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* One sentence: where the script was left and what your agent did instead.
|
|
@@ -682,7 +682,7 @@ export namespace SimulationJobLookupResponse {
|
|
|
682
682
|
* Why the result does not count. `SCRIPT_DIVERGED`: a strict flow went off script
|
|
683
683
|
* at a step whose off-script policy is HANG_UP_INVALIDATE.
|
|
684
684
|
*/
|
|
685
|
-
reason: 'SCRIPT_DIVERGED' | 'REQUIRED_STEP_NOT_REACHED';
|
|
685
|
+
reason: 'SCRIPT_DIVERGED' | 'REQUIRED_STEP_NOT_REACHED' | 'REQUIRED_STAGE_INCOMPLETE';
|
|
686
686
|
|
|
687
687
|
/**
|
|
688
688
|
* One sentence: where the script was left and what your agent did instead.
|
|
@@ -399,7 +399,7 @@ export namespace SimulationRunPlanJobGetByIDResponse {
|
|
|
399
399
|
* Why the result does not count. `SCRIPT_DIVERGED`: a strict flow went off script
|
|
400
400
|
* at a step whose off-script policy is HANG_UP_INVALIDATE.
|
|
401
401
|
*/
|
|
402
|
-
reason: 'SCRIPT_DIVERGED' | 'REQUIRED_STEP_NOT_REACHED';
|
|
402
|
+
reason: 'SCRIPT_DIVERGED' | 'REQUIRED_STEP_NOT_REACHED' | 'REQUIRED_STAGE_INCOMPLETE';
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
405
|
* One sentence: where the script was left and what your agent did instead.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '4.0.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "4.0.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "4.0.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '4.0.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|