@roarkanalytics/sdk 7.6.0 → 7.8.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 +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/call.d.mts +8 -0
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +8 -0
- package/resources/call.d.ts.map +1 -1
- package/resources/config.d.mts +1 -0
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +1 -0
- package/resources/config.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +17 -0
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +17 -0
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/customer-profile.d.mts +806 -0
- package/resources/customer-profile.d.mts.map +1 -0
- package/resources/customer-profile.d.ts +806 -0
- package/resources/customer-profile.d.ts.map +1 -0
- package/resources/customer-profile.js +141 -0
- package/resources/customer-profile.js.map +1 -0
- package/resources/customer-profile.mjs +137 -0
- package/resources/customer-profile.mjs.map +1 -0
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +37 -0
- package/src/resources/call.ts +12 -0
- package/src/resources/config.ts +2 -0
- package/src/resources/customer-flow.ts +28 -0
- package/src/resources/customer-profile.ts +1311 -0
- package/src/resources/index.ts +17 -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
|
@@ -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;
|