@roarkanalytics/sdk 7.5.0 → 7.7.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.
@@ -90,6 +90,7 @@ export namespace Bundle {
90
90
 
91
91
  provider?:
92
92
  | 'roark'
93
+ | 'custom'
93
94
  | 'vapi'
94
95
  | 'retell'
95
96
  | 'elevenlabs'
@@ -1641,6 +1642,7 @@ export namespace Bundle {
1641
1642
 
1642
1643
  provider?:
1643
1644
  | 'roark'
1645
+ | 'custom'
1644
1646
  | 'vapi'
1645
1647
  | 'retell'
1646
1648
  | 'elevenlabs'
@@ -3155,6 +3157,8 @@ export interface ConfigFlowStep {
3155
3157
 
3156
3158
  dtmfDigits?: string;
3157
3159
 
3160
+ endsCall?: boolean;
3161
+
3158
3162
  flow?: string;
3159
3163
 
3160
3164
  handoffPersona?: string;
@@ -3361,6 +3365,7 @@ export namespace ConfigApplyParams {
3361
3365
 
3362
3366
  provider?:
3363
3367
  | 'roark'
3368
+ | 'custom'
3364
3369
  | 'vapi'
3365
3370
  | 'retell'
3366
3371
  | 'elevenlabs'
@@ -4912,6 +4917,7 @@ export namespace ConfigApplyParams {
4912
4917
 
4913
4918
  provider?:
4914
4919
  | 'roark'
4920
+ | 'custom'
4915
4921
  | 'vapi'
4916
4922
  | 'retell'
4917
4923
  | 'elevenlabs'
@@ -6445,6 +6451,7 @@ export namespace ConfigDiffParams {
6445
6451
 
6446
6452
  provider?:
6447
6453
  | 'roark'
6454
+ | 'custom'
6448
6455
  | 'vapi'
6449
6456
  | 'retell'
6450
6457
  | 'elevenlabs'
@@ -7996,6 +8003,7 @@ export namespace ConfigDiffParams {
7996
8003
 
7997
8004
  provider?:
7998
8005
  | 'roark'
8006
+ | 'custom'
7999
8007
  | 'vapi'
8000
8008
  | 'retell'
8001
8009
  | 'elevenlabs'
@@ -212,6 +212,12 @@ export class CustomerFlow extends APIResource {
212
212
  * music. It plays in a STRICT voice flow only: anywhere else it is a pause of the
213
213
  * same length. It sits between turns like a silence.
214
214
  *
215
+ * When an improv flow opens with a STRICT scripted flow, every path through the
216
+ * script hands over to the improv. Set `endsCall: true` on the last step of a path
217
+ * to end the call there instead, as an IVR does after saying goodbye. Sharing the
218
+ * script between improvs shares this too. A step with steps after it, or a
219
+ * `SCENARIO_LINK`, is rejected.
220
+ *
215
221
  * In a STRICT flow an `AGENT_TURN` may carry its own `offScriptPolicy`, which
216
222
  * replaces the flow-level one at that step. Omit it (or send null) to follow the
217
223
  * flow's policy. Use it where one missed step makes the rest of the call
@@ -272,6 +278,8 @@ export namespace FlowStep {
272
278
 
273
279
  content?: string | null;
274
280
 
281
+ endsCall?: boolean;
282
+
275
283
  mergeIntoNodeIds?: Array<string>;
276
284
 
277
285
  nodeId?: string;
@@ -312,6 +320,8 @@ export namespace FlowStep {
312
320
 
313
321
  content?: string | null;
314
322
 
323
+ endsCall?: boolean;
324
+
315
325
  mergeIntoNodeIds?: Array<string>;
316
326
 
317
327
  nodeId?: string;
@@ -338,6 +348,8 @@ export namespace FlowStep {
338
348
 
339
349
  content?: string | null;
340
350
 
351
+ endsCall?: boolean;
352
+
341
353
  mergeIntoNodeIds?: Array<string>;
342
354
 
343
355
  nodeId?: string;
@@ -364,6 +376,8 @@ export namespace FlowStep {
364
376
 
365
377
  content?: string | null;
366
378
 
379
+ endsCall?: boolean;
380
+
367
381
  mergeIntoNodeIds?: Array<string>;
368
382
 
369
383
  nodeId?: string;
@@ -388,6 +402,8 @@ export namespace FlowStep {
388
402
  export interface UnionMember4 {
389
403
  type: 'CUSTOMER_SILENCE';
390
404
 
405
+ endsCall?: boolean;
406
+
391
407
  mergeIntoNodeIds?: Array<string>;
392
408
 
393
409
  nodeId?: string;
@@ -426,6 +442,8 @@ export namespace FlowStep {
426
442
  | 'RINGBACK_UK'
427
443
  | null;
428
444
 
445
+ endsCall?: boolean;
446
+
429
447
  mergeIntoNodeIds?: Array<string>;
430
448
 
431
449
  nodeId?: string;
@@ -454,6 +472,8 @@ export namespace FlowStep {
454
472
 
455
473
  dtmfDigits?: string | null;
456
474
 
475
+ endsCall?: boolean;
476
+
457
477
  mergeIntoNodeIds?: Array<string>;
458
478
 
459
479
  nodeId?: string;
@@ -480,6 +500,8 @@ export namespace FlowStep {
480
500
 
481
501
  dtmfDigits?: string | null;
482
502
 
503
+ endsCall?: boolean;
504
+
483
505
  mergeIntoNodeIds?: Array<string>;
484
506
 
485
507
  nodeId?: string;
@@ -518,6 +540,8 @@ export namespace FlowStep {
518
540
  export interface UnionMember8 {
519
541
  type: 'VOICEMAIL';
520
542
 
543
+ endsCall?: boolean;
544
+
521
545
  mergeIntoNodeIds?: Array<string>;
522
546
 
523
547
  nodeId?: string;
@@ -542,6 +566,8 @@ export namespace FlowStep {
542
566
  export interface UnionMember9 {
543
567
  type: 'CUSTOMER_HANDOFF';
544
568
 
569
+ endsCall?: boolean;
570
+
545
571
  handoffPersonaId?: string | null;
546
572
 
547
573
  mergeIntoNodeIds?: Array<string>;
@@ -568,6 +594,8 @@ export namespace FlowStep {
568
594
  export interface UnionMember10 {
569
595
  type: 'SCENARIO_LINK';
570
596
 
597
+ endsCall?: boolean;
598
+
571
599
  linkedCustomerFlowId?: string | null;
572
600
 
573
601
  linkedCustomerFlowVariantId?: string | null;
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '7.5.0'; // x-release-please-version
1
+ export const VERSION = '7.7.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "7.5.0";
1
+ export declare const VERSION = "7.7.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "7.5.0";
1
+ export declare const VERSION = "7.7.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '7.5.0'; // x-release-please-version
4
+ exports.VERSION = '7.7.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '7.5.0'; // x-release-please-version
1
+ export const VERSION = '7.7.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map