@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.
@@ -165,6 +165,12 @@ export declare class CustomerFlow extends APIResource {
165
165
  * music. It plays in a STRICT voice flow only: anywhere else it is a pause of the
166
166
  * same length. It sits between turns like a silence.
167
167
  *
168
+ * When an improv flow opens with a STRICT scripted flow, every path through the
169
+ * script hands over to the improv. Set `endsCall: true` on the last step of a path
170
+ * to end the call there instead, as an IVR does after saying goodbye. Sharing the
171
+ * script between improvs shares this too. A step with steps after it, or a
172
+ * `SCENARIO_LINK`, is rejected.
173
+ *
168
174
  * In a STRICT flow an `AGENT_TURN` may carry its own `offScriptPolicy`, which
169
175
  * replaces the flow-level one at that step. Omit it (or send null) to follow the
170
176
  * flow's policy. Use it where one missed step makes the rest of the call
@@ -211,6 +217,7 @@ export declare namespace FlowStep {
211
217
  interface UnionMember0 {
212
218
  type: 'AGENT_TURN';
213
219
  content?: string | null;
220
+ endsCall?: boolean;
214
221
  mergeIntoNodeIds?: Array<string>;
215
222
  nodeId?: string;
216
223
  offScriptPolicy?: UnionMember0.OffScriptPolicy | null;
@@ -235,6 +242,7 @@ export declare namespace FlowStep {
235
242
  interface UnionMember1 {
236
243
  type: 'CUSTOMER_TURN';
237
244
  content?: string | null;
245
+ endsCall?: boolean;
238
246
  mergeIntoNodeIds?: Array<string>;
239
247
  nodeId?: string;
240
248
  ref?: string;
@@ -251,6 +259,7 @@ export declare namespace FlowStep {
251
259
  interface UnionMember2 {
252
260
  type: 'CUSTOMER_FIRST_MESSAGE';
253
261
  content?: string | null;
262
+ endsCall?: boolean;
254
263
  mergeIntoNodeIds?: Array<string>;
255
264
  nodeId?: string;
256
265
  ref?: string;
@@ -267,6 +276,7 @@ export declare namespace FlowStep {
267
276
  interface UnionMember3 {
268
277
  type: 'CUSTOMER_VERBATIM_TURN';
269
278
  content?: string | null;
279
+ endsCall?: boolean;
270
280
  mergeIntoNodeIds?: Array<string>;
271
281
  nodeId?: string;
272
282
  ref?: string;
@@ -282,6 +292,7 @@ export declare namespace FlowStep {
282
292
  }
283
293
  interface UnionMember4 {
284
294
  type: 'CUSTOMER_SILENCE';
295
+ endsCall?: boolean;
285
296
  mergeIntoNodeIds?: Array<string>;
286
297
  nodeId?: string;
287
298
  ref?: string;
@@ -299,6 +310,7 @@ export declare namespace FlowStep {
299
310
  interface UnionMember5 {
300
311
  type: 'CUSTOMER_AUDIO';
301
312
  audioClip?: 'HOLD_MUSIC_CLASSICAL_PIANO' | 'HOLD_MUSIC_CLASSICAL_ORCHESTRA' | 'HOLD_MUSIC_STRING_QUARTET' | 'HOLD_MUSIC_AMBIENT' | 'HOLD_MUSIC_SMOOTH_JAZZ' | 'HOLD_MUSIC_SOFT_SYNTH' | 'HOLD_BEEP' | 'RINGBACK_US' | 'RINGBACK_UK' | null;
313
+ endsCall?: boolean;
302
314
  mergeIntoNodeIds?: Array<string>;
303
315
  nodeId?: string;
304
316
  ref?: string;
@@ -316,6 +328,7 @@ export declare namespace FlowStep {
316
328
  interface UnionMember6 {
317
329
  type: 'CUSTOMER_DTMF';
318
330
  dtmfDigits?: string | null;
331
+ endsCall?: boolean;
319
332
  mergeIntoNodeIds?: Array<string>;
320
333
  nodeId?: string;
321
334
  ref?: string;
@@ -332,6 +345,7 @@ export declare namespace FlowStep {
332
345
  interface UnionMember7 {
333
346
  type: 'AGENT_DTMF';
334
347
  dtmfDigits?: string | null;
348
+ endsCall?: boolean;
335
349
  mergeIntoNodeIds?: Array<string>;
336
350
  nodeId?: string;
337
351
  offScriptPolicy?: UnionMember7.OffScriptPolicy | null;
@@ -355,6 +369,7 @@ export declare namespace FlowStep {
355
369
  }
356
370
  interface UnionMember8 {
357
371
  type: 'VOICEMAIL';
372
+ endsCall?: boolean;
358
373
  mergeIntoNodeIds?: Array<string>;
359
374
  nodeId?: string;
360
375
  ref?: string;
@@ -370,6 +385,7 @@ export declare namespace FlowStep {
370
385
  }
371
386
  interface UnionMember9 {
372
387
  type: 'CUSTOMER_HANDOFF';
388
+ endsCall?: boolean;
373
389
  handoffPersonaId?: string | null;
374
390
  mergeIntoNodeIds?: Array<string>;
375
391
  nodeId?: string;
@@ -386,6 +402,7 @@ export declare namespace FlowStep {
386
402
  }
387
403
  interface UnionMember10 {
388
404
  type: 'SCENARIO_LINK';
405
+ endsCall?: boolean;
389
406
  linkedCustomerFlowId?: string | null;
390
407
  linkedCustomerFlowVariantId?: string | null;
391
408
  mergeIntoNodeIds?: Array<string>;