@roarkanalytics/sdk 7.8.0 → 8.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 +28 -0
- package/client.d.mts +20 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -5
- package/client.d.ts.map +1 -1
- package/client.js +18 -3
- package/client.js.map +1 -1
- package/client.mjs +18 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-connection.d.mts +1952 -0
- package/resources/agent-connection.d.mts.map +1 -0
- package/resources/agent-connection.d.ts +1952 -0
- package/resources/agent-connection.d.ts.map +1 -0
- package/resources/agent-connection.js +173 -0
- package/resources/agent-connection.js.map +1 -0
- package/resources/agent-connection.mjs +169 -0
- package/resources/agent-connection.mjs.map +1 -0
- package/resources/agent-conversation.d.mts +110 -0
- package/resources/agent-conversation.d.mts.map +1 -0
- package/resources/agent-conversation.d.ts +110 -0
- package/resources/agent-conversation.d.ts.map +1 -0
- package/resources/agent-conversation.js +41 -0
- package/resources/agent-conversation.js.map +1 -0
- package/resources/agent-conversation.mjs +37 -0
- package/resources/agent-conversation.mjs.map +1 -0
- package/resources/agent-draft.d.mts +101 -35
- package/resources/agent-draft.d.mts.map +1 -1
- package/resources/agent-draft.d.ts +101 -35
- package/resources/agent-draft.d.ts.map +1 -1
- package/resources/agent-endpoint.d.mts +4 -4
- package/resources/agent-endpoint.d.mts.map +1 -1
- package/resources/agent-endpoint.d.ts +4 -4
- package/resources/agent-endpoint.d.ts.map +1 -1
- package/resources/agent-setup.d.mts +1057 -0
- package/resources/agent-setup.d.mts.map +1 -0
- package/resources/agent-setup.d.ts +1057 -0
- package/resources/agent-setup.d.ts.map +1 -0
- package/resources/agent-setup.js +113 -0
- package/resources/agent-setup.js.map +1 -0
- package/resources/agent-setup.mjs +109 -0
- package/resources/agent-setup.mjs.map +1 -0
- package/resources/agent-version.d.mts +57 -18
- package/resources/agent-version.d.mts.map +1 -1
- package/resources/agent-version.d.ts +57 -18
- package/resources/agent-version.d.ts.map +1 -1
- package/resources/agent.d.mts +263 -4
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +263 -4
- package/resources/agent.d.ts.map +1 -1
- package/resources/calendar-connection.d.mts +834 -56
- package/resources/calendar-connection.d.mts.map +1 -1
- package/resources/calendar-connection.d.ts +834 -56
- package/resources/calendar-connection.d.ts.map +1 -1
- package/resources/calendar-connection.js +127 -8
- package/resources/calendar-connection.js.map +1 -1
- package/resources/calendar-connection.mjs +127 -8
- package/resources/calendar-connection.mjs.map +1 -1
- package/resources/call.d.mts +2 -2
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +2 -2
- package/resources/call.d.ts.map +1 -1
- package/resources/config.d.mts +78 -36
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +78 -36
- package/resources/config.d.ts.map +1 -1
- package/resources/conversation.d.mts +156 -0
- package/resources/conversation.d.mts.map +1 -0
- package/resources/conversation.d.ts +156 -0
- package/resources/conversation.d.ts.map +1 -0
- package/resources/conversation.js +40 -0
- package/resources/conversation.js.map +1 -0
- package/resources/conversation.mjs +36 -0
- package/resources/conversation.mjs.map +1 -0
- package/resources/customer-flow-edge-case.d.mts +637 -40
- package/resources/customer-flow-edge-case.d.mts.map +1 -1
- package/resources/customer-flow-edge-case.d.ts +637 -40
- package/resources/customer-flow-edge-case.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +2583 -156
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +2583 -156
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/{customer-profile.d.mts → customer.d.mts} +287 -98
- package/resources/customer.d.mts.map +1 -0
- package/resources/{customer-profile.d.ts → customer.d.ts} +287 -98
- package/resources/customer.d.ts.map +1 -0
- package/resources/customer.js +180 -0
- package/resources/customer.js.map +1 -0
- package/resources/customer.mjs +176 -0
- package/resources/customer.mjs.map +1 -0
- package/resources/index.d.mts +7 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-server.d.mts +588 -0
- package/resources/mcp-server.d.mts.map +1 -0
- package/resources/mcp-server.d.ts +588 -0
- package/resources/mcp-server.d.ts.map +1 -0
- package/resources/mcp-server.js +109 -0
- package/resources/mcp-server.js.map +1 -0
- package/resources/mcp-server.mjs +105 -0
- package/resources/mcp-server.mjs.map +1 -0
- package/resources/metric-policy.d.mts +5 -4
- package/resources/metric-policy.d.mts.map +1 -1
- package/resources/metric-policy.d.ts +5 -4
- package/resources/metric-policy.d.ts.map +1 -1
- package/resources/metric-policy.js +1 -1
- package/resources/metric-policy.mjs +1 -1
- package/resources/metric-variant.d.mts +4 -1
- package/resources/metric-variant.d.mts.map +1 -1
- package/resources/metric-variant.d.ts +4 -1
- package/resources/metric-variant.d.ts.map +1 -1
- package/resources/metric.d.mts +7 -2
- package/resources/metric.d.mts.map +1 -1
- package/resources/metric.d.ts +7 -2
- package/resources/metric.d.ts.map +1 -1
- package/resources/simulation-environment.d.mts +366 -0
- package/resources/simulation-environment.d.mts.map +1 -1
- package/resources/simulation-environment.d.ts +366 -0
- package/resources/simulation-environment.d.ts.map +1 -1
- package/resources/simulation-job.d.mts +12 -8
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +12 -8
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-persona.d.mts +25 -15
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +25 -15
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +32 -6
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +32 -6
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan.d.mts +126 -13
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +126 -13
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation-template.d.mts +1 -1
- package/resources/simulation-template.d.mts.map +1 -1
- package/resources/simulation-template.d.ts +1 -1
- package/resources/simulation-template.d.ts.map +1 -1
- package/resources/simulation.d.mts +35 -3
- package/resources/simulation.d.mts.map +1 -1
- package/resources/simulation.d.ts +35 -3
- package/resources/simulation.d.ts.map +1 -1
- package/resources/tool.d.mts +565 -6
- package/resources/tool.d.mts.map +1 -1
- package/resources/tool.d.ts +565 -6
- package/resources/tool.d.ts.map +1 -1
- package/resources/tool.js +9 -6
- package/resources/tool.js.map +1 -1
- package/resources/tool.mjs +9 -6
- package/resources/tool.mjs.map +1 -1
- package/resources/usage.d.mts +1 -1
- package/resources/usage.d.mts.map +1 -1
- package/resources/usage.d.ts +1 -1
- package/resources/usage.d.ts.map +1 -1
- package/resources/webhook.d.mts +4 -4
- package/resources/webhook.d.mts.map +1 -1
- package/resources/webhook.d.ts +4 -4
- package/resources/webhook.d.ts.map +1 -1
- package/src/client.ts +197 -34
- package/src/resources/agent-connection.ts +2523 -0
- package/src/resources/agent-conversation.ts +139 -0
- package/src/resources/agent-draft.ts +239 -35
- package/src/resources/agent-endpoint.ts +8 -4
- package/src/resources/agent-setup.ts +1685 -0
- package/src/resources/agent-version.ts +126 -18
- package/src/resources/agent.ts +506 -4
- package/src/resources/calendar-connection.ts +1035 -63
- package/src/resources/call.ts +12 -2
- package/src/resources/config.ts +198 -36
- package/src/resources/conversation.ts +205 -0
- package/src/resources/customer-flow-edge-case.ts +709 -40
- package/src/resources/customer-flow.ts +3141 -156
- package/src/resources/{customer-profile.ts → customer.ts} +406 -306
- package/src/resources/index.ts +91 -17
- package/src/resources/mcp-server.ts +786 -0
- package/src/resources/metric-policy.ts +5 -4
- package/src/resources/metric-variant.ts +4 -1
- package/src/resources/metric.ts +7 -2
- package/src/resources/simulation-environment.ts +414 -0
- package/src/resources/simulation-job.ts +14 -8
- package/src/resources/simulation-persona.ts +25 -15
- package/src/resources/simulation-run-plan-job.ts +47 -6
- package/src/resources/simulation-run-plan.ts +140 -0
- package/src/resources/simulation-template.ts +1 -0
- package/src/resources/simulation.ts +39 -0
- package/src/resources/tool.ts +697 -6
- package/src/resources/usage.ts +6 -1
- package/src/resources/webhook.ts +8 -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
- package/resources/customer-profile.d.mts.map +0 -1
- package/resources/customer-profile.d.ts.map +0 -1
- package/resources/customer-profile.js +0 -141
- package/resources/customer-profile.js.map +0 -1
- package/resources/customer-profile.mjs +0 -137
- package/resources/customer-profile.mjs.map +0 -1
|
@@ -147,6 +147,12 @@ export declare class CustomerFlow extends APIResource {
|
|
|
147
147
|
* `CUSTOMER_FIRST_MESSAGE` is the retired name for that opening case: still
|
|
148
148
|
* accepted, stored and returned as `CUSTOMER_VERBATIM_TURN`.
|
|
149
149
|
*
|
|
150
|
+
* A step's `content` may carry caller cues that steer the simulated caller from
|
|
151
|
+
* that point: `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
152
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
153
|
+
* in on your agent (on an `AGENT_TURN`, cut in while your agent says that line).
|
|
154
|
+
* Cues are voice only. See "Caller cues" in the scripted flows concept.
|
|
155
|
+
*
|
|
150
156
|
* The two DTMF types are mirror images and both require `dtmfDigits`.
|
|
151
157
|
* `CUSTOMER_DTMF` is keys the simulated caller presses while navigating your
|
|
152
158
|
* agent. `AGENT_DTMF` is keys your agent under test is expected to press while
|
|
@@ -523,6 +529,10 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
523
529
|
* Description of the agent
|
|
524
530
|
*/
|
|
525
531
|
description: string | null;
|
|
532
|
+
/**
|
|
533
|
+
* The industry the agent serves
|
|
534
|
+
*/
|
|
535
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
526
536
|
/**
|
|
527
537
|
* Name of the agent
|
|
528
538
|
*/
|
|
@@ -603,6 +613,20 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
603
613
|
* Creation timestamp in ISO 8601 format
|
|
604
614
|
*/
|
|
605
615
|
createdAt: string;
|
|
616
|
+
/**
|
|
617
|
+
* The per-direction loss of a CUSTOM line.
|
|
618
|
+
*/
|
|
619
|
+
lineCustom: Environment.LineCustom | null;
|
|
620
|
+
/**
|
|
621
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
622
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
623
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
624
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
625
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
626
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
627
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
628
|
+
*/
|
|
629
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
606
630
|
name: string;
|
|
607
631
|
/**
|
|
608
632
|
* Last update timestamp in ISO 8601 format
|
|
@@ -610,6 +634,53 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
610
634
|
updatedAt: string;
|
|
611
635
|
description?: string | null;
|
|
612
636
|
}
|
|
637
|
+
namespace Environment {
|
|
638
|
+
/**
|
|
639
|
+
* The per-direction loss of a CUSTOM line.
|
|
640
|
+
*/
|
|
641
|
+
interface LineCustom {
|
|
642
|
+
/**
|
|
643
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
644
|
+
* loss.
|
|
645
|
+
*/
|
|
646
|
+
fromAgent?: LineCustom.FromAgent;
|
|
647
|
+
/**
|
|
648
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
649
|
+
* loss.
|
|
650
|
+
*/
|
|
651
|
+
toAgent?: LineCustom.ToAgent;
|
|
652
|
+
}
|
|
653
|
+
namespace LineCustom {
|
|
654
|
+
/**
|
|
655
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
656
|
+
* loss.
|
|
657
|
+
*/
|
|
658
|
+
interface FromAgent {
|
|
659
|
+
/**
|
|
660
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
661
|
+
*/
|
|
662
|
+
packetLossPercent: number;
|
|
663
|
+
/**
|
|
664
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
665
|
+
*/
|
|
666
|
+
meanBurstPackets?: number;
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
670
|
+
* loss.
|
|
671
|
+
*/
|
|
672
|
+
interface ToAgent {
|
|
673
|
+
/**
|
|
674
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
675
|
+
*/
|
|
676
|
+
packetLossPercent: number;
|
|
677
|
+
/**
|
|
678
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
679
|
+
*/
|
|
680
|
+
meanBurstPackets?: number;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
613
684
|
/**
|
|
614
685
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
615
686
|
*/
|
|
@@ -677,9 +748,11 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
677
748
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
678
749
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
679
750
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
680
|
-
* OCCASIONAL
|
|
681
|
-
*
|
|
682
|
-
*
|
|
751
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
752
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
753
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
754
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
755
|
+
* applies at any level.
|
|
683
756
|
*/
|
|
684
757
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
685
758
|
/**
|
|
@@ -823,6 +896,20 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
823
896
|
* Creation timestamp in ISO 8601 format
|
|
824
897
|
*/
|
|
825
898
|
createdAt: string;
|
|
899
|
+
/**
|
|
900
|
+
* The per-direction loss of a CUSTOM line.
|
|
901
|
+
*/
|
|
902
|
+
lineCustom: Environment.LineCustom | null;
|
|
903
|
+
/**
|
|
904
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
905
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
906
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
907
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
908
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
909
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
910
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
911
|
+
*/
|
|
912
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
826
913
|
name: string;
|
|
827
914
|
/**
|
|
828
915
|
* Last update timestamp in ISO 8601 format
|
|
@@ -830,6 +917,53 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
830
917
|
updatedAt: string;
|
|
831
918
|
description?: string | null;
|
|
832
919
|
}
|
|
920
|
+
namespace Environment {
|
|
921
|
+
/**
|
|
922
|
+
* The per-direction loss of a CUSTOM line.
|
|
923
|
+
*/
|
|
924
|
+
interface LineCustom {
|
|
925
|
+
/**
|
|
926
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
927
|
+
* loss.
|
|
928
|
+
*/
|
|
929
|
+
fromAgent?: LineCustom.FromAgent;
|
|
930
|
+
/**
|
|
931
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
932
|
+
* loss.
|
|
933
|
+
*/
|
|
934
|
+
toAgent?: LineCustom.ToAgent;
|
|
935
|
+
}
|
|
936
|
+
namespace LineCustom {
|
|
937
|
+
/**
|
|
938
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
939
|
+
* loss.
|
|
940
|
+
*/
|
|
941
|
+
interface FromAgent {
|
|
942
|
+
/**
|
|
943
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
944
|
+
*/
|
|
945
|
+
packetLossPercent: number;
|
|
946
|
+
/**
|
|
947
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
948
|
+
*/
|
|
949
|
+
meanBurstPackets?: number;
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
953
|
+
* loss.
|
|
954
|
+
*/
|
|
955
|
+
interface ToAgent {
|
|
956
|
+
/**
|
|
957
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
958
|
+
*/
|
|
959
|
+
packetLossPercent: number;
|
|
960
|
+
/**
|
|
961
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
962
|
+
*/
|
|
963
|
+
meanBurstPackets?: number;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
833
967
|
/**
|
|
834
968
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
835
969
|
*/
|
|
@@ -897,9 +1031,11 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
897
1031
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
898
1032
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
899
1033
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
900
|
-
* OCCASIONAL
|
|
901
|
-
*
|
|
902
|
-
*
|
|
1034
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
1035
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
1036
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
1037
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
1038
|
+
* applies at any level.
|
|
903
1039
|
*/
|
|
904
1040
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
905
1041
|
/**
|
|
@@ -1052,6 +1188,10 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1052
1188
|
* Description of the agent
|
|
1053
1189
|
*/
|
|
1054
1190
|
description: string | null;
|
|
1191
|
+
/**
|
|
1192
|
+
* The industry the agent serves
|
|
1193
|
+
*/
|
|
1194
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
1055
1195
|
/**
|
|
1056
1196
|
* Name of the agent
|
|
1057
1197
|
*/
|
|
@@ -1114,7 +1254,11 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1114
1254
|
/**
|
|
1115
1255
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
1116
1256
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
1117
|
-
* when.
|
|
1257
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
1258
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
1259
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
1260
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
1261
|
+
* concept.
|
|
1118
1262
|
*/
|
|
1119
1263
|
prompt?: string | null;
|
|
1120
1264
|
systemKey?: string | null;
|
|
@@ -1143,6 +1287,20 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1143
1287
|
* Creation timestamp in ISO 8601 format
|
|
1144
1288
|
*/
|
|
1145
1289
|
createdAt: string;
|
|
1290
|
+
/**
|
|
1291
|
+
* The per-direction loss of a CUSTOM line.
|
|
1292
|
+
*/
|
|
1293
|
+
lineCustom: Environment.LineCustom | null;
|
|
1294
|
+
/**
|
|
1295
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
1296
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
1297
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
1298
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
1299
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
1300
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
1301
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
1302
|
+
*/
|
|
1303
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
1146
1304
|
name: string;
|
|
1147
1305
|
/**
|
|
1148
1306
|
* Last update timestamp in ISO 8601 format
|
|
@@ -1150,6 +1308,53 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1150
1308
|
updatedAt: string;
|
|
1151
1309
|
description?: string | null;
|
|
1152
1310
|
}
|
|
1311
|
+
namespace Environment {
|
|
1312
|
+
/**
|
|
1313
|
+
* The per-direction loss of a CUSTOM line.
|
|
1314
|
+
*/
|
|
1315
|
+
interface LineCustom {
|
|
1316
|
+
/**
|
|
1317
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
1318
|
+
* loss.
|
|
1319
|
+
*/
|
|
1320
|
+
fromAgent?: LineCustom.FromAgent;
|
|
1321
|
+
/**
|
|
1322
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
1323
|
+
* loss.
|
|
1324
|
+
*/
|
|
1325
|
+
toAgent?: LineCustom.ToAgent;
|
|
1326
|
+
}
|
|
1327
|
+
namespace LineCustom {
|
|
1328
|
+
/**
|
|
1329
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
1330
|
+
* loss.
|
|
1331
|
+
*/
|
|
1332
|
+
interface FromAgent {
|
|
1333
|
+
/**
|
|
1334
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
1335
|
+
*/
|
|
1336
|
+
packetLossPercent: number;
|
|
1337
|
+
/**
|
|
1338
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
1339
|
+
*/
|
|
1340
|
+
meanBurstPackets?: number;
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
1344
|
+
* loss.
|
|
1345
|
+
*/
|
|
1346
|
+
interface ToAgent {
|
|
1347
|
+
/**
|
|
1348
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
1349
|
+
*/
|
|
1350
|
+
packetLossPercent: number;
|
|
1351
|
+
/**
|
|
1352
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
1353
|
+
*/
|
|
1354
|
+
meanBurstPackets?: number;
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1153
1358
|
interface HandoffPersona {
|
|
1154
1359
|
/**
|
|
1155
1360
|
* Unique identifier of the persona
|
|
@@ -1214,9 +1419,11 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1214
1419
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
1215
1420
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
1216
1421
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
1217
|
-
* OCCASIONAL
|
|
1218
|
-
*
|
|
1219
|
-
*
|
|
1422
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
1423
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
1424
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
1425
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
1426
|
+
* applies at any level.
|
|
1220
1427
|
*/
|
|
1221
1428
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
1222
1429
|
/**
|
|
@@ -1355,9 +1562,11 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1355
1562
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
1356
1563
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
1357
1564
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
1358
|
-
* OCCASIONAL
|
|
1359
|
-
*
|
|
1360
|
-
*
|
|
1565
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
1566
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
1567
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
1568
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
1569
|
+
* applies at any level.
|
|
1361
1570
|
*/
|
|
1362
1571
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
1363
1572
|
/**
|
|
@@ -1483,7 +1692,11 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1483
1692
|
/**
|
|
1484
1693
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
1485
1694
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
1486
|
-
* when.
|
|
1695
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
1696
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
1697
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
1698
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
1699
|
+
* concept.
|
|
1487
1700
|
*/
|
|
1488
1701
|
prompt?: string | null;
|
|
1489
1702
|
systemKey?: string | null;
|
|
@@ -1512,6 +1725,20 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1512
1725
|
* Creation timestamp in ISO 8601 format
|
|
1513
1726
|
*/
|
|
1514
1727
|
createdAt: string;
|
|
1728
|
+
/**
|
|
1729
|
+
* The per-direction loss of a CUSTOM line.
|
|
1730
|
+
*/
|
|
1731
|
+
lineCustom: Environment.LineCustom | null;
|
|
1732
|
+
/**
|
|
1733
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
1734
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
1735
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
1736
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
1737
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
1738
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
1739
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
1740
|
+
*/
|
|
1741
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
1515
1742
|
name: string;
|
|
1516
1743
|
/**
|
|
1517
1744
|
* Last update timestamp in ISO 8601 format
|
|
@@ -1519,6 +1746,53 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1519
1746
|
updatedAt: string;
|
|
1520
1747
|
description?: string | null;
|
|
1521
1748
|
}
|
|
1749
|
+
namespace Environment {
|
|
1750
|
+
/**
|
|
1751
|
+
* The per-direction loss of a CUSTOM line.
|
|
1752
|
+
*/
|
|
1753
|
+
interface LineCustom {
|
|
1754
|
+
/**
|
|
1755
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
1756
|
+
* loss.
|
|
1757
|
+
*/
|
|
1758
|
+
fromAgent?: LineCustom.FromAgent;
|
|
1759
|
+
/**
|
|
1760
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
1761
|
+
* loss.
|
|
1762
|
+
*/
|
|
1763
|
+
toAgent?: LineCustom.ToAgent;
|
|
1764
|
+
}
|
|
1765
|
+
namespace LineCustom {
|
|
1766
|
+
/**
|
|
1767
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
1768
|
+
* loss.
|
|
1769
|
+
*/
|
|
1770
|
+
interface FromAgent {
|
|
1771
|
+
/**
|
|
1772
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
1773
|
+
*/
|
|
1774
|
+
packetLossPercent: number;
|
|
1775
|
+
/**
|
|
1776
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
1777
|
+
*/
|
|
1778
|
+
meanBurstPackets?: number;
|
|
1779
|
+
}
|
|
1780
|
+
/**
|
|
1781
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
1782
|
+
* loss.
|
|
1783
|
+
*/
|
|
1784
|
+
interface ToAgent {
|
|
1785
|
+
/**
|
|
1786
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
1787
|
+
*/
|
|
1788
|
+
packetLossPercent: number;
|
|
1789
|
+
/**
|
|
1790
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
1791
|
+
*/
|
|
1792
|
+
meanBurstPackets?: number;
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1522
1796
|
interface HandoffPersona {
|
|
1523
1797
|
/**
|
|
1524
1798
|
* Unique identifier of the persona
|
|
@@ -1583,9 +1857,11 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1583
1857
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
1584
1858
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
1585
1859
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
1586
|
-
* OCCASIONAL
|
|
1587
|
-
*
|
|
1588
|
-
*
|
|
1860
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
1861
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
1862
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
1863
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
1864
|
+
* applies at any level.
|
|
1589
1865
|
*/
|
|
1590
1866
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
1591
1867
|
/**
|
|
@@ -1724,9 +2000,11 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1724
2000
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
1725
2001
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
1726
2002
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
1727
|
-
* OCCASIONAL
|
|
1728
|
-
*
|
|
1729
|
-
*
|
|
2003
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
2004
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
2005
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
2006
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
2007
|
+
* applies at any level.
|
|
1730
2008
|
*/
|
|
1731
2009
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
1732
2010
|
/**
|
|
@@ -1859,6 +2137,10 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1859
2137
|
* Description of the agent
|
|
1860
2138
|
*/
|
|
1861
2139
|
description: string | null;
|
|
2140
|
+
/**
|
|
2141
|
+
* The industry the agent serves
|
|
2142
|
+
*/
|
|
2143
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
1862
2144
|
/**
|
|
1863
2145
|
* Name of the agent
|
|
1864
2146
|
*/
|
|
@@ -1933,6 +2215,20 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1933
2215
|
* Creation timestamp in ISO 8601 format
|
|
1934
2216
|
*/
|
|
1935
2217
|
createdAt: string;
|
|
2218
|
+
/**
|
|
2219
|
+
* The per-direction loss of a CUSTOM line.
|
|
2220
|
+
*/
|
|
2221
|
+
lineCustom: Environment.LineCustom | null;
|
|
2222
|
+
/**
|
|
2223
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
2224
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
2225
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
2226
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
2227
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
2228
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
2229
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
2230
|
+
*/
|
|
2231
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
1936
2232
|
name: string;
|
|
1937
2233
|
/**
|
|
1938
2234
|
* Last update timestamp in ISO 8601 format
|
|
@@ -1940,6 +2236,53 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
1940
2236
|
updatedAt: string;
|
|
1941
2237
|
description?: string | null;
|
|
1942
2238
|
}
|
|
2239
|
+
namespace Environment {
|
|
2240
|
+
/**
|
|
2241
|
+
* The per-direction loss of a CUSTOM line.
|
|
2242
|
+
*/
|
|
2243
|
+
interface LineCustom {
|
|
2244
|
+
/**
|
|
2245
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
2246
|
+
* loss.
|
|
2247
|
+
*/
|
|
2248
|
+
fromAgent?: LineCustom.FromAgent;
|
|
2249
|
+
/**
|
|
2250
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
2251
|
+
* loss.
|
|
2252
|
+
*/
|
|
2253
|
+
toAgent?: LineCustom.ToAgent;
|
|
2254
|
+
}
|
|
2255
|
+
namespace LineCustom {
|
|
2256
|
+
/**
|
|
2257
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
2258
|
+
* loss.
|
|
2259
|
+
*/
|
|
2260
|
+
interface FromAgent {
|
|
2261
|
+
/**
|
|
2262
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
2263
|
+
*/
|
|
2264
|
+
packetLossPercent: number;
|
|
2265
|
+
/**
|
|
2266
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
2267
|
+
*/
|
|
2268
|
+
meanBurstPackets?: number;
|
|
2269
|
+
}
|
|
2270
|
+
/**
|
|
2271
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
2272
|
+
* loss.
|
|
2273
|
+
*/
|
|
2274
|
+
interface ToAgent {
|
|
2275
|
+
/**
|
|
2276
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
2277
|
+
*/
|
|
2278
|
+
packetLossPercent: number;
|
|
2279
|
+
/**
|
|
2280
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
2281
|
+
*/
|
|
2282
|
+
meanBurstPackets?: number;
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
1943
2286
|
/**
|
|
1944
2287
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
1945
2288
|
*/
|
|
@@ -2007,9 +2350,11 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
2007
2350
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
2008
2351
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
2009
2352
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
2010
|
-
* OCCASIONAL
|
|
2011
|
-
*
|
|
2012
|
-
*
|
|
2353
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
2354
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
2355
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
2356
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
2357
|
+
* applies at any level.
|
|
2013
2358
|
*/
|
|
2014
2359
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
2015
2360
|
/**
|
|
@@ -2147,6 +2492,20 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
2147
2492
|
* Creation timestamp in ISO 8601 format
|
|
2148
2493
|
*/
|
|
2149
2494
|
createdAt: string;
|
|
2495
|
+
/**
|
|
2496
|
+
* The per-direction loss of a CUSTOM line.
|
|
2497
|
+
*/
|
|
2498
|
+
lineCustom: Environment.LineCustom | null;
|
|
2499
|
+
/**
|
|
2500
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
2501
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
2502
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
2503
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
2504
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
2505
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
2506
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
2507
|
+
*/
|
|
2508
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
2150
2509
|
name: string;
|
|
2151
2510
|
/**
|
|
2152
2511
|
* Last update timestamp in ISO 8601 format
|
|
@@ -2154,6 +2513,53 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
2154
2513
|
updatedAt: string;
|
|
2155
2514
|
description?: string | null;
|
|
2156
2515
|
}
|
|
2516
|
+
namespace Environment {
|
|
2517
|
+
/**
|
|
2518
|
+
* The per-direction loss of a CUSTOM line.
|
|
2519
|
+
*/
|
|
2520
|
+
interface LineCustom {
|
|
2521
|
+
/**
|
|
2522
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
2523
|
+
* loss.
|
|
2524
|
+
*/
|
|
2525
|
+
fromAgent?: LineCustom.FromAgent;
|
|
2526
|
+
/**
|
|
2527
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
2528
|
+
* loss.
|
|
2529
|
+
*/
|
|
2530
|
+
toAgent?: LineCustom.ToAgent;
|
|
2531
|
+
}
|
|
2532
|
+
namespace LineCustom {
|
|
2533
|
+
/**
|
|
2534
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
2535
|
+
* loss.
|
|
2536
|
+
*/
|
|
2537
|
+
interface FromAgent {
|
|
2538
|
+
/**
|
|
2539
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
2540
|
+
*/
|
|
2541
|
+
packetLossPercent: number;
|
|
2542
|
+
/**
|
|
2543
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
2544
|
+
*/
|
|
2545
|
+
meanBurstPackets?: number;
|
|
2546
|
+
}
|
|
2547
|
+
/**
|
|
2548
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
2549
|
+
* loss.
|
|
2550
|
+
*/
|
|
2551
|
+
interface ToAgent {
|
|
2552
|
+
/**
|
|
2553
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
2554
|
+
*/
|
|
2555
|
+
packetLossPercent: number;
|
|
2556
|
+
/**
|
|
2557
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
2558
|
+
*/
|
|
2559
|
+
meanBurstPackets?: number;
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2157
2563
|
/**
|
|
2158
2564
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
2159
2565
|
*/
|
|
@@ -2221,9 +2627,11 @@ export declare namespace CustomerFlowCreateResponse {
|
|
|
2221
2627
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
2222
2628
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
2223
2629
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
2224
|
-
* OCCASIONAL
|
|
2225
|
-
*
|
|
2226
|
-
*
|
|
2630
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
2631
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
2632
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
2633
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
2634
|
+
* applies at any level.
|
|
2227
2635
|
*/
|
|
2228
2636
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
2229
2637
|
/**
|
|
@@ -2402,6 +2810,10 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
2402
2810
|
* Description of the agent
|
|
2403
2811
|
*/
|
|
2404
2812
|
description: string | null;
|
|
2813
|
+
/**
|
|
2814
|
+
* The industry the agent serves
|
|
2815
|
+
*/
|
|
2816
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
2405
2817
|
/**
|
|
2406
2818
|
* Name of the agent
|
|
2407
2819
|
*/
|
|
@@ -2482,6 +2894,20 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
2482
2894
|
* Creation timestamp in ISO 8601 format
|
|
2483
2895
|
*/
|
|
2484
2896
|
createdAt: string;
|
|
2897
|
+
/**
|
|
2898
|
+
* The per-direction loss of a CUSTOM line.
|
|
2899
|
+
*/
|
|
2900
|
+
lineCustom: Environment.LineCustom | null;
|
|
2901
|
+
/**
|
|
2902
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
2903
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
2904
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
2905
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
2906
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
2907
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
2908
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
2909
|
+
*/
|
|
2910
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
2485
2911
|
name: string;
|
|
2486
2912
|
/**
|
|
2487
2913
|
* Last update timestamp in ISO 8601 format
|
|
@@ -2489,6 +2915,53 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
2489
2915
|
updatedAt: string;
|
|
2490
2916
|
description?: string | null;
|
|
2491
2917
|
}
|
|
2918
|
+
namespace Environment {
|
|
2919
|
+
/**
|
|
2920
|
+
* The per-direction loss of a CUSTOM line.
|
|
2921
|
+
*/
|
|
2922
|
+
interface LineCustom {
|
|
2923
|
+
/**
|
|
2924
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
2925
|
+
* loss.
|
|
2926
|
+
*/
|
|
2927
|
+
fromAgent?: LineCustom.FromAgent;
|
|
2928
|
+
/**
|
|
2929
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
2930
|
+
* loss.
|
|
2931
|
+
*/
|
|
2932
|
+
toAgent?: LineCustom.ToAgent;
|
|
2933
|
+
}
|
|
2934
|
+
namespace LineCustom {
|
|
2935
|
+
/**
|
|
2936
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
2937
|
+
* loss.
|
|
2938
|
+
*/
|
|
2939
|
+
interface FromAgent {
|
|
2940
|
+
/**
|
|
2941
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
2942
|
+
*/
|
|
2943
|
+
packetLossPercent: number;
|
|
2944
|
+
/**
|
|
2945
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
2946
|
+
*/
|
|
2947
|
+
meanBurstPackets?: number;
|
|
2948
|
+
}
|
|
2949
|
+
/**
|
|
2950
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
2951
|
+
* loss.
|
|
2952
|
+
*/
|
|
2953
|
+
interface ToAgent {
|
|
2954
|
+
/**
|
|
2955
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
2956
|
+
*/
|
|
2957
|
+
packetLossPercent: number;
|
|
2958
|
+
/**
|
|
2959
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
2960
|
+
*/
|
|
2961
|
+
meanBurstPackets?: number;
|
|
2962
|
+
}
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2492
2965
|
/**
|
|
2493
2966
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
2494
2967
|
*/
|
|
@@ -2556,9 +3029,11 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
2556
3029
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
2557
3030
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
2558
3031
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
2559
|
-
* OCCASIONAL
|
|
2560
|
-
*
|
|
2561
|
-
*
|
|
3032
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
3033
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
3034
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
3035
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
3036
|
+
* applies at any level.
|
|
2562
3037
|
*/
|
|
2563
3038
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
2564
3039
|
/**
|
|
@@ -2702,6 +3177,20 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
2702
3177
|
* Creation timestamp in ISO 8601 format
|
|
2703
3178
|
*/
|
|
2704
3179
|
createdAt: string;
|
|
3180
|
+
/**
|
|
3181
|
+
* The per-direction loss of a CUSTOM line.
|
|
3182
|
+
*/
|
|
3183
|
+
lineCustom: Environment.LineCustom | null;
|
|
3184
|
+
/**
|
|
3185
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
3186
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
3187
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
3188
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
3189
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
3190
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
3191
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
3192
|
+
*/
|
|
3193
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
2705
3194
|
name: string;
|
|
2706
3195
|
/**
|
|
2707
3196
|
* Last update timestamp in ISO 8601 format
|
|
@@ -2709,6 +3198,53 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
2709
3198
|
updatedAt: string;
|
|
2710
3199
|
description?: string | null;
|
|
2711
3200
|
}
|
|
3201
|
+
namespace Environment {
|
|
3202
|
+
/**
|
|
3203
|
+
* The per-direction loss of a CUSTOM line.
|
|
3204
|
+
*/
|
|
3205
|
+
interface LineCustom {
|
|
3206
|
+
/**
|
|
3207
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
3208
|
+
* loss.
|
|
3209
|
+
*/
|
|
3210
|
+
fromAgent?: LineCustom.FromAgent;
|
|
3211
|
+
/**
|
|
3212
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
3213
|
+
* loss.
|
|
3214
|
+
*/
|
|
3215
|
+
toAgent?: LineCustom.ToAgent;
|
|
3216
|
+
}
|
|
3217
|
+
namespace LineCustom {
|
|
3218
|
+
/**
|
|
3219
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
3220
|
+
* loss.
|
|
3221
|
+
*/
|
|
3222
|
+
interface FromAgent {
|
|
3223
|
+
/**
|
|
3224
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
3225
|
+
*/
|
|
3226
|
+
packetLossPercent: number;
|
|
3227
|
+
/**
|
|
3228
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
3229
|
+
*/
|
|
3230
|
+
meanBurstPackets?: number;
|
|
3231
|
+
}
|
|
3232
|
+
/**
|
|
3233
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
3234
|
+
* loss.
|
|
3235
|
+
*/
|
|
3236
|
+
interface ToAgent {
|
|
3237
|
+
/**
|
|
3238
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
3239
|
+
*/
|
|
3240
|
+
packetLossPercent: number;
|
|
3241
|
+
/**
|
|
3242
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
3243
|
+
*/
|
|
3244
|
+
meanBurstPackets?: number;
|
|
3245
|
+
}
|
|
3246
|
+
}
|
|
3247
|
+
}
|
|
2712
3248
|
/**
|
|
2713
3249
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
2714
3250
|
*/
|
|
@@ -2776,9 +3312,11 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
2776
3312
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
2777
3313
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
2778
3314
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
2779
|
-
* OCCASIONAL
|
|
2780
|
-
*
|
|
2781
|
-
*
|
|
3315
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
3316
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
3317
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
3318
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
3319
|
+
* applies at any level.
|
|
2782
3320
|
*/
|
|
2783
3321
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
2784
3322
|
/**
|
|
@@ -2931,6 +3469,10 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
2931
3469
|
* Description of the agent
|
|
2932
3470
|
*/
|
|
2933
3471
|
description: string | null;
|
|
3472
|
+
/**
|
|
3473
|
+
* The industry the agent serves
|
|
3474
|
+
*/
|
|
3475
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
2934
3476
|
/**
|
|
2935
3477
|
* Name of the agent
|
|
2936
3478
|
*/
|
|
@@ -2993,7 +3535,11 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
2993
3535
|
/**
|
|
2994
3536
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
2995
3537
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
2996
|
-
* when.
|
|
3538
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
3539
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
3540
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
3541
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
3542
|
+
* concept.
|
|
2997
3543
|
*/
|
|
2998
3544
|
prompt?: string | null;
|
|
2999
3545
|
systemKey?: string | null;
|
|
@@ -3022,6 +3568,20 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
3022
3568
|
* Creation timestamp in ISO 8601 format
|
|
3023
3569
|
*/
|
|
3024
3570
|
createdAt: string;
|
|
3571
|
+
/**
|
|
3572
|
+
* The per-direction loss of a CUSTOM line.
|
|
3573
|
+
*/
|
|
3574
|
+
lineCustom: Environment.LineCustom | null;
|
|
3575
|
+
/**
|
|
3576
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
3577
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
3578
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
3579
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
3580
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
3581
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
3582
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
3583
|
+
*/
|
|
3584
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
3025
3585
|
name: string;
|
|
3026
3586
|
/**
|
|
3027
3587
|
* Last update timestamp in ISO 8601 format
|
|
@@ -3029,6 +3589,53 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
3029
3589
|
updatedAt: string;
|
|
3030
3590
|
description?: string | null;
|
|
3031
3591
|
}
|
|
3592
|
+
namespace Environment {
|
|
3593
|
+
/**
|
|
3594
|
+
* The per-direction loss of a CUSTOM line.
|
|
3595
|
+
*/
|
|
3596
|
+
interface LineCustom {
|
|
3597
|
+
/**
|
|
3598
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
3599
|
+
* loss.
|
|
3600
|
+
*/
|
|
3601
|
+
fromAgent?: LineCustom.FromAgent;
|
|
3602
|
+
/**
|
|
3603
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
3604
|
+
* loss.
|
|
3605
|
+
*/
|
|
3606
|
+
toAgent?: LineCustom.ToAgent;
|
|
3607
|
+
}
|
|
3608
|
+
namespace LineCustom {
|
|
3609
|
+
/**
|
|
3610
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
3611
|
+
* loss.
|
|
3612
|
+
*/
|
|
3613
|
+
interface FromAgent {
|
|
3614
|
+
/**
|
|
3615
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
3616
|
+
*/
|
|
3617
|
+
packetLossPercent: number;
|
|
3618
|
+
/**
|
|
3619
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
3620
|
+
*/
|
|
3621
|
+
meanBurstPackets?: number;
|
|
3622
|
+
}
|
|
3623
|
+
/**
|
|
3624
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
3625
|
+
* loss.
|
|
3626
|
+
*/
|
|
3627
|
+
interface ToAgent {
|
|
3628
|
+
/**
|
|
3629
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
3630
|
+
*/
|
|
3631
|
+
packetLossPercent: number;
|
|
3632
|
+
/**
|
|
3633
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
3634
|
+
*/
|
|
3635
|
+
meanBurstPackets?: number;
|
|
3636
|
+
}
|
|
3637
|
+
}
|
|
3638
|
+
}
|
|
3032
3639
|
interface HandoffPersona {
|
|
3033
3640
|
/**
|
|
3034
3641
|
* Unique identifier of the persona
|
|
@@ -3093,9 +3700,11 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
3093
3700
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
3094
3701
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
3095
3702
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
3096
|
-
* OCCASIONAL
|
|
3097
|
-
*
|
|
3098
|
-
*
|
|
3703
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
3704
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
3705
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
3706
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
3707
|
+
* applies at any level.
|
|
3099
3708
|
*/
|
|
3100
3709
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
3101
3710
|
/**
|
|
@@ -3234,9 +3843,11 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
3234
3843
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
3235
3844
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
3236
3845
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
3237
|
-
* OCCASIONAL
|
|
3238
|
-
*
|
|
3239
|
-
*
|
|
3846
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
3847
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
3848
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
3849
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
3850
|
+
* applies at any level.
|
|
3240
3851
|
*/
|
|
3241
3852
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
3242
3853
|
/**
|
|
@@ -3362,7 +3973,11 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
3362
3973
|
/**
|
|
3363
3974
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
3364
3975
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
3365
|
-
* when.
|
|
3976
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
3977
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
3978
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
3979
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
3980
|
+
* concept.
|
|
3366
3981
|
*/
|
|
3367
3982
|
prompt?: string | null;
|
|
3368
3983
|
systemKey?: string | null;
|
|
@@ -3391,6 +4006,20 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
3391
4006
|
* Creation timestamp in ISO 8601 format
|
|
3392
4007
|
*/
|
|
3393
4008
|
createdAt: string;
|
|
4009
|
+
/**
|
|
4010
|
+
* The per-direction loss of a CUSTOM line.
|
|
4011
|
+
*/
|
|
4012
|
+
lineCustom: Environment.LineCustom | null;
|
|
4013
|
+
/**
|
|
4014
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
4015
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
4016
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
4017
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
4018
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
4019
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
4020
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
4021
|
+
*/
|
|
4022
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
3394
4023
|
name: string;
|
|
3395
4024
|
/**
|
|
3396
4025
|
* Last update timestamp in ISO 8601 format
|
|
@@ -3398,6 +4027,53 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
3398
4027
|
updatedAt: string;
|
|
3399
4028
|
description?: string | null;
|
|
3400
4029
|
}
|
|
4030
|
+
namespace Environment {
|
|
4031
|
+
/**
|
|
4032
|
+
* The per-direction loss of a CUSTOM line.
|
|
4033
|
+
*/
|
|
4034
|
+
interface LineCustom {
|
|
4035
|
+
/**
|
|
4036
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
4037
|
+
* loss.
|
|
4038
|
+
*/
|
|
4039
|
+
fromAgent?: LineCustom.FromAgent;
|
|
4040
|
+
/**
|
|
4041
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
4042
|
+
* loss.
|
|
4043
|
+
*/
|
|
4044
|
+
toAgent?: LineCustom.ToAgent;
|
|
4045
|
+
}
|
|
4046
|
+
namespace LineCustom {
|
|
4047
|
+
/**
|
|
4048
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
4049
|
+
* loss.
|
|
4050
|
+
*/
|
|
4051
|
+
interface FromAgent {
|
|
4052
|
+
/**
|
|
4053
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
4054
|
+
*/
|
|
4055
|
+
packetLossPercent: number;
|
|
4056
|
+
/**
|
|
4057
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
4058
|
+
*/
|
|
4059
|
+
meanBurstPackets?: number;
|
|
4060
|
+
}
|
|
4061
|
+
/**
|
|
4062
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
4063
|
+
* loss.
|
|
4064
|
+
*/
|
|
4065
|
+
interface ToAgent {
|
|
4066
|
+
/**
|
|
4067
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
4068
|
+
*/
|
|
4069
|
+
packetLossPercent: number;
|
|
4070
|
+
/**
|
|
4071
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
4072
|
+
*/
|
|
4073
|
+
meanBurstPackets?: number;
|
|
4074
|
+
}
|
|
4075
|
+
}
|
|
4076
|
+
}
|
|
3401
4077
|
interface HandoffPersona {
|
|
3402
4078
|
/**
|
|
3403
4079
|
* Unique identifier of the persona
|
|
@@ -3462,9 +4138,11 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
3462
4138
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
3463
4139
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
3464
4140
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
3465
|
-
* OCCASIONAL
|
|
3466
|
-
*
|
|
3467
|
-
*
|
|
4141
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
4142
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
4143
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
4144
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
4145
|
+
* applies at any level.
|
|
3468
4146
|
*/
|
|
3469
4147
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
3470
4148
|
/**
|
|
@@ -3603,9 +4281,11 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
3603
4281
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
3604
4282
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
3605
4283
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
3606
|
-
* OCCASIONAL
|
|
3607
|
-
*
|
|
3608
|
-
*
|
|
4284
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
4285
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
4286
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
4287
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
4288
|
+
* applies at any level.
|
|
3609
4289
|
*/
|
|
3610
4290
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
3611
4291
|
/**
|
|
@@ -3738,6 +4418,10 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
3738
4418
|
* Description of the agent
|
|
3739
4419
|
*/
|
|
3740
4420
|
description: string | null;
|
|
4421
|
+
/**
|
|
4422
|
+
* The industry the agent serves
|
|
4423
|
+
*/
|
|
4424
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
3741
4425
|
/**
|
|
3742
4426
|
* Name of the agent
|
|
3743
4427
|
*/
|
|
@@ -3812,6 +4496,20 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
3812
4496
|
* Creation timestamp in ISO 8601 format
|
|
3813
4497
|
*/
|
|
3814
4498
|
createdAt: string;
|
|
4499
|
+
/**
|
|
4500
|
+
* The per-direction loss of a CUSTOM line.
|
|
4501
|
+
*/
|
|
4502
|
+
lineCustom: Environment.LineCustom | null;
|
|
4503
|
+
/**
|
|
4504
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
4505
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
4506
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
4507
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
4508
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
4509
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
4510
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
4511
|
+
*/
|
|
4512
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
3815
4513
|
name: string;
|
|
3816
4514
|
/**
|
|
3817
4515
|
* Last update timestamp in ISO 8601 format
|
|
@@ -3819,6 +4517,53 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
3819
4517
|
updatedAt: string;
|
|
3820
4518
|
description?: string | null;
|
|
3821
4519
|
}
|
|
4520
|
+
namespace Environment {
|
|
4521
|
+
/**
|
|
4522
|
+
* The per-direction loss of a CUSTOM line.
|
|
4523
|
+
*/
|
|
4524
|
+
interface LineCustom {
|
|
4525
|
+
/**
|
|
4526
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
4527
|
+
* loss.
|
|
4528
|
+
*/
|
|
4529
|
+
fromAgent?: LineCustom.FromAgent;
|
|
4530
|
+
/**
|
|
4531
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
4532
|
+
* loss.
|
|
4533
|
+
*/
|
|
4534
|
+
toAgent?: LineCustom.ToAgent;
|
|
4535
|
+
}
|
|
4536
|
+
namespace LineCustom {
|
|
4537
|
+
/**
|
|
4538
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
4539
|
+
* loss.
|
|
4540
|
+
*/
|
|
4541
|
+
interface FromAgent {
|
|
4542
|
+
/**
|
|
4543
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
4544
|
+
*/
|
|
4545
|
+
packetLossPercent: number;
|
|
4546
|
+
/**
|
|
4547
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
4548
|
+
*/
|
|
4549
|
+
meanBurstPackets?: number;
|
|
4550
|
+
}
|
|
4551
|
+
/**
|
|
4552
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
4553
|
+
* loss.
|
|
4554
|
+
*/
|
|
4555
|
+
interface ToAgent {
|
|
4556
|
+
/**
|
|
4557
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
4558
|
+
*/
|
|
4559
|
+
packetLossPercent: number;
|
|
4560
|
+
/**
|
|
4561
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
4562
|
+
*/
|
|
4563
|
+
meanBurstPackets?: number;
|
|
4564
|
+
}
|
|
4565
|
+
}
|
|
4566
|
+
}
|
|
3822
4567
|
/**
|
|
3823
4568
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
3824
4569
|
*/
|
|
@@ -3886,9 +4631,11 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
3886
4631
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
3887
4632
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
3888
4633
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
3889
|
-
* OCCASIONAL
|
|
3890
|
-
*
|
|
3891
|
-
*
|
|
4634
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
4635
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
4636
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
4637
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
4638
|
+
* applies at any level.
|
|
3892
4639
|
*/
|
|
3893
4640
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
3894
4641
|
/**
|
|
@@ -4026,6 +4773,20 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
4026
4773
|
* Creation timestamp in ISO 8601 format
|
|
4027
4774
|
*/
|
|
4028
4775
|
createdAt: string;
|
|
4776
|
+
/**
|
|
4777
|
+
* The per-direction loss of a CUSTOM line.
|
|
4778
|
+
*/
|
|
4779
|
+
lineCustom: Environment.LineCustom | null;
|
|
4780
|
+
/**
|
|
4781
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
4782
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
4783
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
4784
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
4785
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
4786
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
4787
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
4788
|
+
*/
|
|
4789
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
4029
4790
|
name: string;
|
|
4030
4791
|
/**
|
|
4031
4792
|
* Last update timestamp in ISO 8601 format
|
|
@@ -4033,6 +4794,53 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
4033
4794
|
updatedAt: string;
|
|
4034
4795
|
description?: string | null;
|
|
4035
4796
|
}
|
|
4797
|
+
namespace Environment {
|
|
4798
|
+
/**
|
|
4799
|
+
* The per-direction loss of a CUSTOM line.
|
|
4800
|
+
*/
|
|
4801
|
+
interface LineCustom {
|
|
4802
|
+
/**
|
|
4803
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
4804
|
+
* loss.
|
|
4805
|
+
*/
|
|
4806
|
+
fromAgent?: LineCustom.FromAgent;
|
|
4807
|
+
/**
|
|
4808
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
4809
|
+
* loss.
|
|
4810
|
+
*/
|
|
4811
|
+
toAgent?: LineCustom.ToAgent;
|
|
4812
|
+
}
|
|
4813
|
+
namespace LineCustom {
|
|
4814
|
+
/**
|
|
4815
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
4816
|
+
* loss.
|
|
4817
|
+
*/
|
|
4818
|
+
interface FromAgent {
|
|
4819
|
+
/**
|
|
4820
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
4821
|
+
*/
|
|
4822
|
+
packetLossPercent: number;
|
|
4823
|
+
/**
|
|
4824
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
4825
|
+
*/
|
|
4826
|
+
meanBurstPackets?: number;
|
|
4827
|
+
}
|
|
4828
|
+
/**
|
|
4829
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
4830
|
+
* loss.
|
|
4831
|
+
*/
|
|
4832
|
+
interface ToAgent {
|
|
4833
|
+
/**
|
|
4834
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
4835
|
+
*/
|
|
4836
|
+
packetLossPercent: number;
|
|
4837
|
+
/**
|
|
4838
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
4839
|
+
*/
|
|
4840
|
+
meanBurstPackets?: number;
|
|
4841
|
+
}
|
|
4842
|
+
}
|
|
4843
|
+
}
|
|
4036
4844
|
/**
|
|
4037
4845
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
4038
4846
|
*/
|
|
@@ -4100,9 +4908,11 @@ export declare namespace CustomerFlowUpdateResponse {
|
|
|
4100
4908
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
4101
4909
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
4102
4910
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
4103
|
-
* OCCASIONAL
|
|
4104
|
-
*
|
|
4105
|
-
*
|
|
4911
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
4912
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
4913
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
4914
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
4915
|
+
* applies at any level.
|
|
4106
4916
|
*/
|
|
4107
4917
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
4108
4918
|
/**
|
|
@@ -4282,6 +5092,10 @@ export declare namespace CustomerFlowListResponse {
|
|
|
4282
5092
|
* Description of the agent
|
|
4283
5093
|
*/
|
|
4284
5094
|
description: string | null;
|
|
5095
|
+
/**
|
|
5096
|
+
* The industry the agent serves
|
|
5097
|
+
*/
|
|
5098
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
4285
5099
|
/**
|
|
4286
5100
|
* Name of the agent
|
|
4287
5101
|
*/
|
|
@@ -4362,6 +5176,20 @@ export declare namespace CustomerFlowListResponse {
|
|
|
4362
5176
|
* Creation timestamp in ISO 8601 format
|
|
4363
5177
|
*/
|
|
4364
5178
|
createdAt: string;
|
|
5179
|
+
/**
|
|
5180
|
+
* The per-direction loss of a CUSTOM line.
|
|
5181
|
+
*/
|
|
5182
|
+
lineCustom: Environment.LineCustom | null;
|
|
5183
|
+
/**
|
|
5184
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
5185
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
5186
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
5187
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
5188
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
5189
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
5190
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
5191
|
+
*/
|
|
5192
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
4365
5193
|
name: string;
|
|
4366
5194
|
/**
|
|
4367
5195
|
* Last update timestamp in ISO 8601 format
|
|
@@ -4369,6 +5197,53 @@ export declare namespace CustomerFlowListResponse {
|
|
|
4369
5197
|
updatedAt: string;
|
|
4370
5198
|
description?: string | null;
|
|
4371
5199
|
}
|
|
5200
|
+
namespace Environment {
|
|
5201
|
+
/**
|
|
5202
|
+
* The per-direction loss of a CUSTOM line.
|
|
5203
|
+
*/
|
|
5204
|
+
interface LineCustom {
|
|
5205
|
+
/**
|
|
5206
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
5207
|
+
* loss.
|
|
5208
|
+
*/
|
|
5209
|
+
fromAgent?: LineCustom.FromAgent;
|
|
5210
|
+
/**
|
|
5211
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
5212
|
+
* loss.
|
|
5213
|
+
*/
|
|
5214
|
+
toAgent?: LineCustom.ToAgent;
|
|
5215
|
+
}
|
|
5216
|
+
namespace LineCustom {
|
|
5217
|
+
/**
|
|
5218
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
5219
|
+
* loss.
|
|
5220
|
+
*/
|
|
5221
|
+
interface FromAgent {
|
|
5222
|
+
/**
|
|
5223
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
5224
|
+
*/
|
|
5225
|
+
packetLossPercent: number;
|
|
5226
|
+
/**
|
|
5227
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
5228
|
+
*/
|
|
5229
|
+
meanBurstPackets?: number;
|
|
5230
|
+
}
|
|
5231
|
+
/**
|
|
5232
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
5233
|
+
* loss.
|
|
5234
|
+
*/
|
|
5235
|
+
interface ToAgent {
|
|
5236
|
+
/**
|
|
5237
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
5238
|
+
*/
|
|
5239
|
+
packetLossPercent: number;
|
|
5240
|
+
/**
|
|
5241
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
5242
|
+
*/
|
|
5243
|
+
meanBurstPackets?: number;
|
|
5244
|
+
}
|
|
5245
|
+
}
|
|
5246
|
+
}
|
|
4372
5247
|
/**
|
|
4373
5248
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
4374
5249
|
*/
|
|
@@ -4436,9 +5311,11 @@ export declare namespace CustomerFlowListResponse {
|
|
|
4436
5311
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
4437
5312
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
4438
5313
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
4439
|
-
* OCCASIONAL
|
|
4440
|
-
*
|
|
4441
|
-
*
|
|
5314
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
5315
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
5316
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
5317
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
5318
|
+
* applies at any level.
|
|
4442
5319
|
*/
|
|
4443
5320
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
4444
5321
|
/**
|
|
@@ -4582,6 +5459,20 @@ export declare namespace CustomerFlowListResponse {
|
|
|
4582
5459
|
* Creation timestamp in ISO 8601 format
|
|
4583
5460
|
*/
|
|
4584
5461
|
createdAt: string;
|
|
5462
|
+
/**
|
|
5463
|
+
* The per-direction loss of a CUSTOM line.
|
|
5464
|
+
*/
|
|
5465
|
+
lineCustom: Environment.LineCustom | null;
|
|
5466
|
+
/**
|
|
5467
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
5468
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
5469
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
5470
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
5471
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
5472
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
5473
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
5474
|
+
*/
|
|
5475
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
4585
5476
|
name: string;
|
|
4586
5477
|
/**
|
|
4587
5478
|
* Last update timestamp in ISO 8601 format
|
|
@@ -4589,6 +5480,53 @@ export declare namespace CustomerFlowListResponse {
|
|
|
4589
5480
|
updatedAt: string;
|
|
4590
5481
|
description?: string | null;
|
|
4591
5482
|
}
|
|
5483
|
+
namespace Environment {
|
|
5484
|
+
/**
|
|
5485
|
+
* The per-direction loss of a CUSTOM line.
|
|
5486
|
+
*/
|
|
5487
|
+
interface LineCustom {
|
|
5488
|
+
/**
|
|
5489
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
5490
|
+
* loss.
|
|
5491
|
+
*/
|
|
5492
|
+
fromAgent?: LineCustom.FromAgent;
|
|
5493
|
+
/**
|
|
5494
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
5495
|
+
* loss.
|
|
5496
|
+
*/
|
|
5497
|
+
toAgent?: LineCustom.ToAgent;
|
|
5498
|
+
}
|
|
5499
|
+
namespace LineCustom {
|
|
5500
|
+
/**
|
|
5501
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
5502
|
+
* loss.
|
|
5503
|
+
*/
|
|
5504
|
+
interface FromAgent {
|
|
5505
|
+
/**
|
|
5506
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
5507
|
+
*/
|
|
5508
|
+
packetLossPercent: number;
|
|
5509
|
+
/**
|
|
5510
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
5511
|
+
*/
|
|
5512
|
+
meanBurstPackets?: number;
|
|
5513
|
+
}
|
|
5514
|
+
/**
|
|
5515
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
5516
|
+
* loss.
|
|
5517
|
+
*/
|
|
5518
|
+
interface ToAgent {
|
|
5519
|
+
/**
|
|
5520
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
5521
|
+
*/
|
|
5522
|
+
packetLossPercent: number;
|
|
5523
|
+
/**
|
|
5524
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
5525
|
+
*/
|
|
5526
|
+
meanBurstPackets?: number;
|
|
5527
|
+
}
|
|
5528
|
+
}
|
|
5529
|
+
}
|
|
4592
5530
|
/**
|
|
4593
5531
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
4594
5532
|
*/
|
|
@@ -4656,9 +5594,11 @@ export declare namespace CustomerFlowListResponse {
|
|
|
4656
5594
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
4657
5595
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
4658
5596
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
4659
|
-
* OCCASIONAL
|
|
4660
|
-
*
|
|
4661
|
-
*
|
|
5597
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
5598
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
5599
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
5600
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
5601
|
+
* applies at any level.
|
|
4662
5602
|
*/
|
|
4663
5603
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
4664
5604
|
/**
|
|
@@ -4811,6 +5751,10 @@ export declare namespace CustomerFlowListResponse {
|
|
|
4811
5751
|
* Description of the agent
|
|
4812
5752
|
*/
|
|
4813
5753
|
description: string | null;
|
|
5754
|
+
/**
|
|
5755
|
+
* The industry the agent serves
|
|
5756
|
+
*/
|
|
5757
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
4814
5758
|
/**
|
|
4815
5759
|
* Name of the agent
|
|
4816
5760
|
*/
|
|
@@ -4873,7 +5817,11 @@ export declare namespace CustomerFlowListResponse {
|
|
|
4873
5817
|
/**
|
|
4874
5818
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
4875
5819
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
4876
|
-
* when.
|
|
5820
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
5821
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
5822
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
5823
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
5824
|
+
* concept.
|
|
4877
5825
|
*/
|
|
4878
5826
|
prompt?: string | null;
|
|
4879
5827
|
systemKey?: string | null;
|
|
@@ -4902,6 +5850,20 @@ export declare namespace CustomerFlowListResponse {
|
|
|
4902
5850
|
* Creation timestamp in ISO 8601 format
|
|
4903
5851
|
*/
|
|
4904
5852
|
createdAt: string;
|
|
5853
|
+
/**
|
|
5854
|
+
* The per-direction loss of a CUSTOM line.
|
|
5855
|
+
*/
|
|
5856
|
+
lineCustom: Environment.LineCustom | null;
|
|
5857
|
+
/**
|
|
5858
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
5859
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
5860
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
5861
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
5862
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
5863
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
5864
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
5865
|
+
*/
|
|
5866
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
4905
5867
|
name: string;
|
|
4906
5868
|
/**
|
|
4907
5869
|
* Last update timestamp in ISO 8601 format
|
|
@@ -4909,6 +5871,53 @@ export declare namespace CustomerFlowListResponse {
|
|
|
4909
5871
|
updatedAt: string;
|
|
4910
5872
|
description?: string | null;
|
|
4911
5873
|
}
|
|
5874
|
+
namespace Environment {
|
|
5875
|
+
/**
|
|
5876
|
+
* The per-direction loss of a CUSTOM line.
|
|
5877
|
+
*/
|
|
5878
|
+
interface LineCustom {
|
|
5879
|
+
/**
|
|
5880
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
5881
|
+
* loss.
|
|
5882
|
+
*/
|
|
5883
|
+
fromAgent?: LineCustom.FromAgent;
|
|
5884
|
+
/**
|
|
5885
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
5886
|
+
* loss.
|
|
5887
|
+
*/
|
|
5888
|
+
toAgent?: LineCustom.ToAgent;
|
|
5889
|
+
}
|
|
5890
|
+
namespace LineCustom {
|
|
5891
|
+
/**
|
|
5892
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
5893
|
+
* loss.
|
|
5894
|
+
*/
|
|
5895
|
+
interface FromAgent {
|
|
5896
|
+
/**
|
|
5897
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
5898
|
+
*/
|
|
5899
|
+
packetLossPercent: number;
|
|
5900
|
+
/**
|
|
5901
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
5902
|
+
*/
|
|
5903
|
+
meanBurstPackets?: number;
|
|
5904
|
+
}
|
|
5905
|
+
/**
|
|
5906
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
5907
|
+
* loss.
|
|
5908
|
+
*/
|
|
5909
|
+
interface ToAgent {
|
|
5910
|
+
/**
|
|
5911
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
5912
|
+
*/
|
|
5913
|
+
packetLossPercent: number;
|
|
5914
|
+
/**
|
|
5915
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
5916
|
+
*/
|
|
5917
|
+
meanBurstPackets?: number;
|
|
5918
|
+
}
|
|
5919
|
+
}
|
|
5920
|
+
}
|
|
4912
5921
|
interface HandoffPersona {
|
|
4913
5922
|
/**
|
|
4914
5923
|
* Unique identifier of the persona
|
|
@@ -4973,9 +5982,11 @@ export declare namespace CustomerFlowListResponse {
|
|
|
4973
5982
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
4974
5983
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
4975
5984
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
4976
|
-
* OCCASIONAL
|
|
4977
|
-
*
|
|
4978
|
-
*
|
|
5985
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
5986
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
5987
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
5988
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
5989
|
+
* applies at any level.
|
|
4979
5990
|
*/
|
|
4980
5991
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
4981
5992
|
/**
|
|
@@ -5114,9 +6125,11 @@ export declare namespace CustomerFlowListResponse {
|
|
|
5114
6125
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
5115
6126
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
5116
6127
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
5117
|
-
* OCCASIONAL
|
|
5118
|
-
*
|
|
5119
|
-
*
|
|
6128
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
6129
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
6130
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
6131
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
6132
|
+
* applies at any level.
|
|
5120
6133
|
*/
|
|
5121
6134
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
5122
6135
|
/**
|
|
@@ -5242,7 +6255,11 @@ export declare namespace CustomerFlowListResponse {
|
|
|
5242
6255
|
/**
|
|
5243
6256
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
5244
6257
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
5245
|
-
* when.
|
|
6258
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
6259
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
6260
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
6261
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
6262
|
+
* concept.
|
|
5246
6263
|
*/
|
|
5247
6264
|
prompt?: string | null;
|
|
5248
6265
|
systemKey?: string | null;
|
|
@@ -5271,6 +6288,20 @@ export declare namespace CustomerFlowListResponse {
|
|
|
5271
6288
|
* Creation timestamp in ISO 8601 format
|
|
5272
6289
|
*/
|
|
5273
6290
|
createdAt: string;
|
|
6291
|
+
/**
|
|
6292
|
+
* The per-direction loss of a CUSTOM line.
|
|
6293
|
+
*/
|
|
6294
|
+
lineCustom: Environment.LineCustom | null;
|
|
6295
|
+
/**
|
|
6296
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
6297
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
6298
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
6299
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
6300
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
6301
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
6302
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
6303
|
+
*/
|
|
6304
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
5274
6305
|
name: string;
|
|
5275
6306
|
/**
|
|
5276
6307
|
* Last update timestamp in ISO 8601 format
|
|
@@ -5278,6 +6309,53 @@ export declare namespace CustomerFlowListResponse {
|
|
|
5278
6309
|
updatedAt: string;
|
|
5279
6310
|
description?: string | null;
|
|
5280
6311
|
}
|
|
6312
|
+
namespace Environment {
|
|
6313
|
+
/**
|
|
6314
|
+
* The per-direction loss of a CUSTOM line.
|
|
6315
|
+
*/
|
|
6316
|
+
interface LineCustom {
|
|
6317
|
+
/**
|
|
6318
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
6319
|
+
* loss.
|
|
6320
|
+
*/
|
|
6321
|
+
fromAgent?: LineCustom.FromAgent;
|
|
6322
|
+
/**
|
|
6323
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
6324
|
+
* loss.
|
|
6325
|
+
*/
|
|
6326
|
+
toAgent?: LineCustom.ToAgent;
|
|
6327
|
+
}
|
|
6328
|
+
namespace LineCustom {
|
|
6329
|
+
/**
|
|
6330
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
6331
|
+
* loss.
|
|
6332
|
+
*/
|
|
6333
|
+
interface FromAgent {
|
|
6334
|
+
/**
|
|
6335
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
6336
|
+
*/
|
|
6337
|
+
packetLossPercent: number;
|
|
6338
|
+
/**
|
|
6339
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
6340
|
+
*/
|
|
6341
|
+
meanBurstPackets?: number;
|
|
6342
|
+
}
|
|
6343
|
+
/**
|
|
6344
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
6345
|
+
* loss.
|
|
6346
|
+
*/
|
|
6347
|
+
interface ToAgent {
|
|
6348
|
+
/**
|
|
6349
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
6350
|
+
*/
|
|
6351
|
+
packetLossPercent: number;
|
|
6352
|
+
/**
|
|
6353
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
6354
|
+
*/
|
|
6355
|
+
meanBurstPackets?: number;
|
|
6356
|
+
}
|
|
6357
|
+
}
|
|
6358
|
+
}
|
|
5281
6359
|
interface HandoffPersona {
|
|
5282
6360
|
/**
|
|
5283
6361
|
* Unique identifier of the persona
|
|
@@ -5342,9 +6420,11 @@ export declare namespace CustomerFlowListResponse {
|
|
|
5342
6420
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
5343
6421
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
5344
6422
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
5345
|
-
* OCCASIONAL
|
|
5346
|
-
*
|
|
5347
|
-
*
|
|
6423
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
6424
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
6425
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
6426
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
6427
|
+
* applies at any level.
|
|
5348
6428
|
*/
|
|
5349
6429
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
5350
6430
|
/**
|
|
@@ -5483,9 +6563,11 @@ export declare namespace CustomerFlowListResponse {
|
|
|
5483
6563
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
5484
6564
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
5485
6565
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
5486
|
-
* OCCASIONAL
|
|
5487
|
-
*
|
|
5488
|
-
*
|
|
6566
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
6567
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
6568
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
6569
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
6570
|
+
* applies at any level.
|
|
5489
6571
|
*/
|
|
5490
6572
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
5491
6573
|
/**
|
|
@@ -5618,6 +6700,10 @@ export declare namespace CustomerFlowListResponse {
|
|
|
5618
6700
|
* Description of the agent
|
|
5619
6701
|
*/
|
|
5620
6702
|
description: string | null;
|
|
6703
|
+
/**
|
|
6704
|
+
* The industry the agent serves
|
|
6705
|
+
*/
|
|
6706
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
5621
6707
|
/**
|
|
5622
6708
|
* Name of the agent
|
|
5623
6709
|
*/
|
|
@@ -5692,6 +6778,20 @@ export declare namespace CustomerFlowListResponse {
|
|
|
5692
6778
|
* Creation timestamp in ISO 8601 format
|
|
5693
6779
|
*/
|
|
5694
6780
|
createdAt: string;
|
|
6781
|
+
/**
|
|
6782
|
+
* The per-direction loss of a CUSTOM line.
|
|
6783
|
+
*/
|
|
6784
|
+
lineCustom: Environment.LineCustom | null;
|
|
6785
|
+
/**
|
|
6786
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
6787
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
6788
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
6789
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
6790
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
6791
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
6792
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
6793
|
+
*/
|
|
6794
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
5695
6795
|
name: string;
|
|
5696
6796
|
/**
|
|
5697
6797
|
* Last update timestamp in ISO 8601 format
|
|
@@ -5699,6 +6799,53 @@ export declare namespace CustomerFlowListResponse {
|
|
|
5699
6799
|
updatedAt: string;
|
|
5700
6800
|
description?: string | null;
|
|
5701
6801
|
}
|
|
6802
|
+
namespace Environment {
|
|
6803
|
+
/**
|
|
6804
|
+
* The per-direction loss of a CUSTOM line.
|
|
6805
|
+
*/
|
|
6806
|
+
interface LineCustom {
|
|
6807
|
+
/**
|
|
6808
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
6809
|
+
* loss.
|
|
6810
|
+
*/
|
|
6811
|
+
fromAgent?: LineCustom.FromAgent;
|
|
6812
|
+
/**
|
|
6813
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
6814
|
+
* loss.
|
|
6815
|
+
*/
|
|
6816
|
+
toAgent?: LineCustom.ToAgent;
|
|
6817
|
+
}
|
|
6818
|
+
namespace LineCustom {
|
|
6819
|
+
/**
|
|
6820
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
6821
|
+
* loss.
|
|
6822
|
+
*/
|
|
6823
|
+
interface FromAgent {
|
|
6824
|
+
/**
|
|
6825
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
6826
|
+
*/
|
|
6827
|
+
packetLossPercent: number;
|
|
6828
|
+
/**
|
|
6829
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
6830
|
+
*/
|
|
6831
|
+
meanBurstPackets?: number;
|
|
6832
|
+
}
|
|
6833
|
+
/**
|
|
6834
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
6835
|
+
* loss.
|
|
6836
|
+
*/
|
|
6837
|
+
interface ToAgent {
|
|
6838
|
+
/**
|
|
6839
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
6840
|
+
*/
|
|
6841
|
+
packetLossPercent: number;
|
|
6842
|
+
/**
|
|
6843
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
6844
|
+
*/
|
|
6845
|
+
meanBurstPackets?: number;
|
|
6846
|
+
}
|
|
6847
|
+
}
|
|
6848
|
+
}
|
|
5702
6849
|
/**
|
|
5703
6850
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
5704
6851
|
*/
|
|
@@ -5766,9 +6913,11 @@ export declare namespace CustomerFlowListResponse {
|
|
|
5766
6913
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
5767
6914
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
5768
6915
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
5769
|
-
* OCCASIONAL
|
|
5770
|
-
*
|
|
5771
|
-
*
|
|
6916
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
6917
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
6918
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
6919
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
6920
|
+
* applies at any level.
|
|
5772
6921
|
*/
|
|
5773
6922
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
5774
6923
|
/**
|
|
@@ -5906,6 +7055,20 @@ export declare namespace CustomerFlowListResponse {
|
|
|
5906
7055
|
* Creation timestamp in ISO 8601 format
|
|
5907
7056
|
*/
|
|
5908
7057
|
createdAt: string;
|
|
7058
|
+
/**
|
|
7059
|
+
* The per-direction loss of a CUSTOM line.
|
|
7060
|
+
*/
|
|
7061
|
+
lineCustom: Environment.LineCustom | null;
|
|
7062
|
+
/**
|
|
7063
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
7064
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
7065
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
7066
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
7067
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
7068
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
7069
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
7070
|
+
*/
|
|
7071
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
5909
7072
|
name: string;
|
|
5910
7073
|
/**
|
|
5911
7074
|
* Last update timestamp in ISO 8601 format
|
|
@@ -5913,6 +7076,53 @@ export declare namespace CustomerFlowListResponse {
|
|
|
5913
7076
|
updatedAt: string;
|
|
5914
7077
|
description?: string | null;
|
|
5915
7078
|
}
|
|
7079
|
+
namespace Environment {
|
|
7080
|
+
/**
|
|
7081
|
+
* The per-direction loss of a CUSTOM line.
|
|
7082
|
+
*/
|
|
7083
|
+
interface LineCustom {
|
|
7084
|
+
/**
|
|
7085
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
7086
|
+
* loss.
|
|
7087
|
+
*/
|
|
7088
|
+
fromAgent?: LineCustom.FromAgent;
|
|
7089
|
+
/**
|
|
7090
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
7091
|
+
* loss.
|
|
7092
|
+
*/
|
|
7093
|
+
toAgent?: LineCustom.ToAgent;
|
|
7094
|
+
}
|
|
7095
|
+
namespace LineCustom {
|
|
7096
|
+
/**
|
|
7097
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
7098
|
+
* loss.
|
|
7099
|
+
*/
|
|
7100
|
+
interface FromAgent {
|
|
7101
|
+
/**
|
|
7102
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
7103
|
+
*/
|
|
7104
|
+
packetLossPercent: number;
|
|
7105
|
+
/**
|
|
7106
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
7107
|
+
*/
|
|
7108
|
+
meanBurstPackets?: number;
|
|
7109
|
+
}
|
|
7110
|
+
/**
|
|
7111
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
7112
|
+
* loss.
|
|
7113
|
+
*/
|
|
7114
|
+
interface ToAgent {
|
|
7115
|
+
/**
|
|
7116
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
7117
|
+
*/
|
|
7118
|
+
packetLossPercent: number;
|
|
7119
|
+
/**
|
|
7120
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
7121
|
+
*/
|
|
7122
|
+
meanBurstPackets?: number;
|
|
7123
|
+
}
|
|
7124
|
+
}
|
|
7125
|
+
}
|
|
5916
7126
|
/**
|
|
5917
7127
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
5918
7128
|
*/
|
|
@@ -5980,9 +7190,11 @@ export declare namespace CustomerFlowListResponse {
|
|
|
5980
7190
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
5981
7191
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
5982
7192
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
5983
|
-
* OCCASIONAL
|
|
5984
|
-
*
|
|
5985
|
-
*
|
|
7193
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
7194
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
7195
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
7196
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
7197
|
+
* applies at any level.
|
|
5986
7198
|
*/
|
|
5987
7199
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
5988
7200
|
/**
|
|
@@ -6186,6 +7398,10 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
6186
7398
|
* Description of the agent
|
|
6187
7399
|
*/
|
|
6188
7400
|
description: string | null;
|
|
7401
|
+
/**
|
|
7402
|
+
* The industry the agent serves
|
|
7403
|
+
*/
|
|
7404
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
6189
7405
|
/**
|
|
6190
7406
|
* Name of the agent
|
|
6191
7407
|
*/
|
|
@@ -6266,6 +7482,20 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
6266
7482
|
* Creation timestamp in ISO 8601 format
|
|
6267
7483
|
*/
|
|
6268
7484
|
createdAt: string;
|
|
7485
|
+
/**
|
|
7486
|
+
* The per-direction loss of a CUSTOM line.
|
|
7487
|
+
*/
|
|
7488
|
+
lineCustom: Environment.LineCustom | null;
|
|
7489
|
+
/**
|
|
7490
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
7491
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
7492
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
7493
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
7494
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
7495
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
7496
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
7497
|
+
*/
|
|
7498
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
6269
7499
|
name: string;
|
|
6270
7500
|
/**
|
|
6271
7501
|
* Last update timestamp in ISO 8601 format
|
|
@@ -6273,6 +7503,53 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
6273
7503
|
updatedAt: string;
|
|
6274
7504
|
description?: string | null;
|
|
6275
7505
|
}
|
|
7506
|
+
namespace Environment {
|
|
7507
|
+
/**
|
|
7508
|
+
* The per-direction loss of a CUSTOM line.
|
|
7509
|
+
*/
|
|
7510
|
+
interface LineCustom {
|
|
7511
|
+
/**
|
|
7512
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
7513
|
+
* loss.
|
|
7514
|
+
*/
|
|
7515
|
+
fromAgent?: LineCustom.FromAgent;
|
|
7516
|
+
/**
|
|
7517
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
7518
|
+
* loss.
|
|
7519
|
+
*/
|
|
7520
|
+
toAgent?: LineCustom.ToAgent;
|
|
7521
|
+
}
|
|
7522
|
+
namespace LineCustom {
|
|
7523
|
+
/**
|
|
7524
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
7525
|
+
* loss.
|
|
7526
|
+
*/
|
|
7527
|
+
interface FromAgent {
|
|
7528
|
+
/**
|
|
7529
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
7530
|
+
*/
|
|
7531
|
+
packetLossPercent: number;
|
|
7532
|
+
/**
|
|
7533
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
7534
|
+
*/
|
|
7535
|
+
meanBurstPackets?: number;
|
|
7536
|
+
}
|
|
7537
|
+
/**
|
|
7538
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
7539
|
+
* loss.
|
|
7540
|
+
*/
|
|
7541
|
+
interface ToAgent {
|
|
7542
|
+
/**
|
|
7543
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
7544
|
+
*/
|
|
7545
|
+
packetLossPercent: number;
|
|
7546
|
+
/**
|
|
7547
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
7548
|
+
*/
|
|
7549
|
+
meanBurstPackets?: number;
|
|
7550
|
+
}
|
|
7551
|
+
}
|
|
7552
|
+
}
|
|
6276
7553
|
/**
|
|
6277
7554
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
6278
7555
|
*/
|
|
@@ -6340,9 +7617,11 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
6340
7617
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
6341
7618
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
6342
7619
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
6343
|
-
* OCCASIONAL
|
|
6344
|
-
*
|
|
6345
|
-
*
|
|
7620
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
7621
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
7622
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
7623
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
7624
|
+
* applies at any level.
|
|
6346
7625
|
*/
|
|
6347
7626
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
6348
7627
|
/**
|
|
@@ -6486,6 +7765,20 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
6486
7765
|
* Creation timestamp in ISO 8601 format
|
|
6487
7766
|
*/
|
|
6488
7767
|
createdAt: string;
|
|
7768
|
+
/**
|
|
7769
|
+
* The per-direction loss of a CUSTOM line.
|
|
7770
|
+
*/
|
|
7771
|
+
lineCustom: Environment.LineCustom | null;
|
|
7772
|
+
/**
|
|
7773
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
7774
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
7775
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
7776
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
7777
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
7778
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
7779
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
7780
|
+
*/
|
|
7781
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
6489
7782
|
name: string;
|
|
6490
7783
|
/**
|
|
6491
7784
|
* Last update timestamp in ISO 8601 format
|
|
@@ -6493,6 +7786,53 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
6493
7786
|
updatedAt: string;
|
|
6494
7787
|
description?: string | null;
|
|
6495
7788
|
}
|
|
7789
|
+
namespace Environment {
|
|
7790
|
+
/**
|
|
7791
|
+
* The per-direction loss of a CUSTOM line.
|
|
7792
|
+
*/
|
|
7793
|
+
interface LineCustom {
|
|
7794
|
+
/**
|
|
7795
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
7796
|
+
* loss.
|
|
7797
|
+
*/
|
|
7798
|
+
fromAgent?: LineCustom.FromAgent;
|
|
7799
|
+
/**
|
|
7800
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
7801
|
+
* loss.
|
|
7802
|
+
*/
|
|
7803
|
+
toAgent?: LineCustom.ToAgent;
|
|
7804
|
+
}
|
|
7805
|
+
namespace LineCustom {
|
|
7806
|
+
/**
|
|
7807
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
7808
|
+
* loss.
|
|
7809
|
+
*/
|
|
7810
|
+
interface FromAgent {
|
|
7811
|
+
/**
|
|
7812
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
7813
|
+
*/
|
|
7814
|
+
packetLossPercent: number;
|
|
7815
|
+
/**
|
|
7816
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
7817
|
+
*/
|
|
7818
|
+
meanBurstPackets?: number;
|
|
7819
|
+
}
|
|
7820
|
+
/**
|
|
7821
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
7822
|
+
* loss.
|
|
7823
|
+
*/
|
|
7824
|
+
interface ToAgent {
|
|
7825
|
+
/**
|
|
7826
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
7827
|
+
*/
|
|
7828
|
+
packetLossPercent: number;
|
|
7829
|
+
/**
|
|
7830
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
7831
|
+
*/
|
|
7832
|
+
meanBurstPackets?: number;
|
|
7833
|
+
}
|
|
7834
|
+
}
|
|
7835
|
+
}
|
|
6496
7836
|
/**
|
|
6497
7837
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
6498
7838
|
*/
|
|
@@ -6560,9 +7900,11 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
6560
7900
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
6561
7901
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
6562
7902
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
6563
|
-
* OCCASIONAL
|
|
6564
|
-
*
|
|
6565
|
-
*
|
|
7903
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
7904
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
7905
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
7906
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
7907
|
+
* applies at any level.
|
|
6566
7908
|
*/
|
|
6567
7909
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
6568
7910
|
/**
|
|
@@ -6715,6 +8057,10 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
6715
8057
|
* Description of the agent
|
|
6716
8058
|
*/
|
|
6717
8059
|
description: string | null;
|
|
8060
|
+
/**
|
|
8061
|
+
* The industry the agent serves
|
|
8062
|
+
*/
|
|
8063
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
6718
8064
|
/**
|
|
6719
8065
|
* Name of the agent
|
|
6720
8066
|
*/
|
|
@@ -6777,7 +8123,11 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
6777
8123
|
/**
|
|
6778
8124
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
6779
8125
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
6780
|
-
* when.
|
|
8126
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
8127
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
8128
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
8129
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
8130
|
+
* concept.
|
|
6781
8131
|
*/
|
|
6782
8132
|
prompt?: string | null;
|
|
6783
8133
|
systemKey?: string | null;
|
|
@@ -6806,6 +8156,20 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
6806
8156
|
* Creation timestamp in ISO 8601 format
|
|
6807
8157
|
*/
|
|
6808
8158
|
createdAt: string;
|
|
8159
|
+
/**
|
|
8160
|
+
* The per-direction loss of a CUSTOM line.
|
|
8161
|
+
*/
|
|
8162
|
+
lineCustom: Environment.LineCustom | null;
|
|
8163
|
+
/**
|
|
8164
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
8165
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
8166
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
8167
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
8168
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
8169
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
8170
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
8171
|
+
*/
|
|
8172
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
6809
8173
|
name: string;
|
|
6810
8174
|
/**
|
|
6811
8175
|
* Last update timestamp in ISO 8601 format
|
|
@@ -6813,6 +8177,53 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
6813
8177
|
updatedAt: string;
|
|
6814
8178
|
description?: string | null;
|
|
6815
8179
|
}
|
|
8180
|
+
namespace Environment {
|
|
8181
|
+
/**
|
|
8182
|
+
* The per-direction loss of a CUSTOM line.
|
|
8183
|
+
*/
|
|
8184
|
+
interface LineCustom {
|
|
8185
|
+
/**
|
|
8186
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
8187
|
+
* loss.
|
|
8188
|
+
*/
|
|
8189
|
+
fromAgent?: LineCustom.FromAgent;
|
|
8190
|
+
/**
|
|
8191
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
8192
|
+
* loss.
|
|
8193
|
+
*/
|
|
8194
|
+
toAgent?: LineCustom.ToAgent;
|
|
8195
|
+
}
|
|
8196
|
+
namespace LineCustom {
|
|
8197
|
+
/**
|
|
8198
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
8199
|
+
* loss.
|
|
8200
|
+
*/
|
|
8201
|
+
interface FromAgent {
|
|
8202
|
+
/**
|
|
8203
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
8204
|
+
*/
|
|
8205
|
+
packetLossPercent: number;
|
|
8206
|
+
/**
|
|
8207
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
8208
|
+
*/
|
|
8209
|
+
meanBurstPackets?: number;
|
|
8210
|
+
}
|
|
8211
|
+
/**
|
|
8212
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
8213
|
+
* loss.
|
|
8214
|
+
*/
|
|
8215
|
+
interface ToAgent {
|
|
8216
|
+
/**
|
|
8217
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
8218
|
+
*/
|
|
8219
|
+
packetLossPercent: number;
|
|
8220
|
+
/**
|
|
8221
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
8222
|
+
*/
|
|
8223
|
+
meanBurstPackets?: number;
|
|
8224
|
+
}
|
|
8225
|
+
}
|
|
8226
|
+
}
|
|
6816
8227
|
interface HandoffPersona {
|
|
6817
8228
|
/**
|
|
6818
8229
|
* Unique identifier of the persona
|
|
@@ -6877,9 +8288,11 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
6877
8288
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
6878
8289
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
6879
8290
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
6880
|
-
* OCCASIONAL
|
|
6881
|
-
*
|
|
6882
|
-
*
|
|
8291
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
8292
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
8293
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
8294
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
8295
|
+
* applies at any level.
|
|
6883
8296
|
*/
|
|
6884
8297
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
6885
8298
|
/**
|
|
@@ -7018,9 +8431,11 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
7018
8431
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
7019
8432
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
7020
8433
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
7021
|
-
* OCCASIONAL
|
|
7022
|
-
*
|
|
7023
|
-
*
|
|
8434
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
8435
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
8436
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
8437
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
8438
|
+
* applies at any level.
|
|
7024
8439
|
*/
|
|
7025
8440
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
7026
8441
|
/**
|
|
@@ -7146,7 +8561,11 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
7146
8561
|
/**
|
|
7147
8562
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
7148
8563
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
7149
|
-
* when.
|
|
8564
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
8565
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
8566
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
8567
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
8568
|
+
* concept.
|
|
7150
8569
|
*/
|
|
7151
8570
|
prompt?: string | null;
|
|
7152
8571
|
systemKey?: string | null;
|
|
@@ -7175,6 +8594,20 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
7175
8594
|
* Creation timestamp in ISO 8601 format
|
|
7176
8595
|
*/
|
|
7177
8596
|
createdAt: string;
|
|
8597
|
+
/**
|
|
8598
|
+
* The per-direction loss of a CUSTOM line.
|
|
8599
|
+
*/
|
|
8600
|
+
lineCustom: Environment.LineCustom | null;
|
|
8601
|
+
/**
|
|
8602
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
8603
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
8604
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
8605
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
8606
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
8607
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
8608
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
8609
|
+
*/
|
|
8610
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
7178
8611
|
name: string;
|
|
7179
8612
|
/**
|
|
7180
8613
|
* Last update timestamp in ISO 8601 format
|
|
@@ -7182,6 +8615,53 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
7182
8615
|
updatedAt: string;
|
|
7183
8616
|
description?: string | null;
|
|
7184
8617
|
}
|
|
8618
|
+
namespace Environment {
|
|
8619
|
+
/**
|
|
8620
|
+
* The per-direction loss of a CUSTOM line.
|
|
8621
|
+
*/
|
|
8622
|
+
interface LineCustom {
|
|
8623
|
+
/**
|
|
8624
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
8625
|
+
* loss.
|
|
8626
|
+
*/
|
|
8627
|
+
fromAgent?: LineCustom.FromAgent;
|
|
8628
|
+
/**
|
|
8629
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
8630
|
+
* loss.
|
|
8631
|
+
*/
|
|
8632
|
+
toAgent?: LineCustom.ToAgent;
|
|
8633
|
+
}
|
|
8634
|
+
namespace LineCustom {
|
|
8635
|
+
/**
|
|
8636
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
8637
|
+
* loss.
|
|
8638
|
+
*/
|
|
8639
|
+
interface FromAgent {
|
|
8640
|
+
/**
|
|
8641
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
8642
|
+
*/
|
|
8643
|
+
packetLossPercent: number;
|
|
8644
|
+
/**
|
|
8645
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
8646
|
+
*/
|
|
8647
|
+
meanBurstPackets?: number;
|
|
8648
|
+
}
|
|
8649
|
+
/**
|
|
8650
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
8651
|
+
* loss.
|
|
8652
|
+
*/
|
|
8653
|
+
interface ToAgent {
|
|
8654
|
+
/**
|
|
8655
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
8656
|
+
*/
|
|
8657
|
+
packetLossPercent: number;
|
|
8658
|
+
/**
|
|
8659
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
8660
|
+
*/
|
|
8661
|
+
meanBurstPackets?: number;
|
|
8662
|
+
}
|
|
8663
|
+
}
|
|
8664
|
+
}
|
|
7185
8665
|
interface HandoffPersona {
|
|
7186
8666
|
/**
|
|
7187
8667
|
* Unique identifier of the persona
|
|
@@ -7246,9 +8726,11 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
7246
8726
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
7247
8727
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
7248
8728
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
7249
|
-
* OCCASIONAL
|
|
7250
|
-
*
|
|
7251
|
-
*
|
|
8729
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
8730
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
8731
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
8732
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
8733
|
+
* applies at any level.
|
|
7252
8734
|
*/
|
|
7253
8735
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
7254
8736
|
/**
|
|
@@ -7387,9 +8869,11 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
7387
8869
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
7388
8870
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
7389
8871
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
7390
|
-
* OCCASIONAL
|
|
7391
|
-
*
|
|
7392
|
-
*
|
|
8872
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
8873
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
8874
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
8875
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
8876
|
+
* applies at any level.
|
|
7393
8877
|
*/
|
|
7394
8878
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
7395
8879
|
/**
|
|
@@ -7522,6 +9006,10 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
7522
9006
|
* Description of the agent
|
|
7523
9007
|
*/
|
|
7524
9008
|
description: string | null;
|
|
9009
|
+
/**
|
|
9010
|
+
* The industry the agent serves
|
|
9011
|
+
*/
|
|
9012
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
7525
9013
|
/**
|
|
7526
9014
|
* Name of the agent
|
|
7527
9015
|
*/
|
|
@@ -7596,6 +9084,20 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
7596
9084
|
* Creation timestamp in ISO 8601 format
|
|
7597
9085
|
*/
|
|
7598
9086
|
createdAt: string;
|
|
9087
|
+
/**
|
|
9088
|
+
* The per-direction loss of a CUSTOM line.
|
|
9089
|
+
*/
|
|
9090
|
+
lineCustom: Environment.LineCustom | null;
|
|
9091
|
+
/**
|
|
9092
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
9093
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
9094
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
9095
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
9096
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
9097
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
9098
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
9099
|
+
*/
|
|
9100
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
7599
9101
|
name: string;
|
|
7600
9102
|
/**
|
|
7601
9103
|
* Last update timestamp in ISO 8601 format
|
|
@@ -7603,6 +9105,53 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
7603
9105
|
updatedAt: string;
|
|
7604
9106
|
description?: string | null;
|
|
7605
9107
|
}
|
|
9108
|
+
namespace Environment {
|
|
9109
|
+
/**
|
|
9110
|
+
* The per-direction loss of a CUSTOM line.
|
|
9111
|
+
*/
|
|
9112
|
+
interface LineCustom {
|
|
9113
|
+
/**
|
|
9114
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
9115
|
+
* loss.
|
|
9116
|
+
*/
|
|
9117
|
+
fromAgent?: LineCustom.FromAgent;
|
|
9118
|
+
/**
|
|
9119
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
9120
|
+
* loss.
|
|
9121
|
+
*/
|
|
9122
|
+
toAgent?: LineCustom.ToAgent;
|
|
9123
|
+
}
|
|
9124
|
+
namespace LineCustom {
|
|
9125
|
+
/**
|
|
9126
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
9127
|
+
* loss.
|
|
9128
|
+
*/
|
|
9129
|
+
interface FromAgent {
|
|
9130
|
+
/**
|
|
9131
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
9132
|
+
*/
|
|
9133
|
+
packetLossPercent: number;
|
|
9134
|
+
/**
|
|
9135
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
9136
|
+
*/
|
|
9137
|
+
meanBurstPackets?: number;
|
|
9138
|
+
}
|
|
9139
|
+
/**
|
|
9140
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
9141
|
+
* loss.
|
|
9142
|
+
*/
|
|
9143
|
+
interface ToAgent {
|
|
9144
|
+
/**
|
|
9145
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
9146
|
+
*/
|
|
9147
|
+
packetLossPercent: number;
|
|
9148
|
+
/**
|
|
9149
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
9150
|
+
*/
|
|
9151
|
+
meanBurstPackets?: number;
|
|
9152
|
+
}
|
|
9153
|
+
}
|
|
9154
|
+
}
|
|
7606
9155
|
/**
|
|
7607
9156
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
7608
9157
|
*/
|
|
@@ -7670,9 +9219,11 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
7670
9219
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
7671
9220
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
7672
9221
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
7673
|
-
* OCCASIONAL
|
|
7674
|
-
*
|
|
7675
|
-
*
|
|
9222
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
9223
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
9224
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
9225
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
9226
|
+
* applies at any level.
|
|
7676
9227
|
*/
|
|
7677
9228
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
7678
9229
|
/**
|
|
@@ -7810,6 +9361,20 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
7810
9361
|
* Creation timestamp in ISO 8601 format
|
|
7811
9362
|
*/
|
|
7812
9363
|
createdAt: string;
|
|
9364
|
+
/**
|
|
9365
|
+
* The per-direction loss of a CUSTOM line.
|
|
9366
|
+
*/
|
|
9367
|
+
lineCustom: Environment.LineCustom | null;
|
|
9368
|
+
/**
|
|
9369
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
9370
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
9371
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
9372
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
9373
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
9374
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
9375
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
9376
|
+
*/
|
|
9377
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
7813
9378
|
name: string;
|
|
7814
9379
|
/**
|
|
7815
9380
|
* Last update timestamp in ISO 8601 format
|
|
@@ -7817,6 +9382,53 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
7817
9382
|
updatedAt: string;
|
|
7818
9383
|
description?: string | null;
|
|
7819
9384
|
}
|
|
9385
|
+
namespace Environment {
|
|
9386
|
+
/**
|
|
9387
|
+
* The per-direction loss of a CUSTOM line.
|
|
9388
|
+
*/
|
|
9389
|
+
interface LineCustom {
|
|
9390
|
+
/**
|
|
9391
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
9392
|
+
* loss.
|
|
9393
|
+
*/
|
|
9394
|
+
fromAgent?: LineCustom.FromAgent;
|
|
9395
|
+
/**
|
|
9396
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
9397
|
+
* loss.
|
|
9398
|
+
*/
|
|
9399
|
+
toAgent?: LineCustom.ToAgent;
|
|
9400
|
+
}
|
|
9401
|
+
namespace LineCustom {
|
|
9402
|
+
/**
|
|
9403
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
9404
|
+
* loss.
|
|
9405
|
+
*/
|
|
9406
|
+
interface FromAgent {
|
|
9407
|
+
/**
|
|
9408
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
9409
|
+
*/
|
|
9410
|
+
packetLossPercent: number;
|
|
9411
|
+
/**
|
|
9412
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
9413
|
+
*/
|
|
9414
|
+
meanBurstPackets?: number;
|
|
9415
|
+
}
|
|
9416
|
+
/**
|
|
9417
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
9418
|
+
* loss.
|
|
9419
|
+
*/
|
|
9420
|
+
interface ToAgent {
|
|
9421
|
+
/**
|
|
9422
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
9423
|
+
*/
|
|
9424
|
+
packetLossPercent: number;
|
|
9425
|
+
/**
|
|
9426
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
9427
|
+
*/
|
|
9428
|
+
meanBurstPackets?: number;
|
|
9429
|
+
}
|
|
9430
|
+
}
|
|
9431
|
+
}
|
|
7820
9432
|
/**
|
|
7821
9433
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
7822
9434
|
*/
|
|
@@ -7884,9 +9496,11 @@ export declare namespace CustomerFlowDuplicateResponse {
|
|
|
7884
9496
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
7885
9497
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
7886
9498
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
7887
|
-
* OCCASIONAL
|
|
7888
|
-
*
|
|
7889
|
-
*
|
|
9499
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
9500
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
9501
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
9502
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
9503
|
+
* applies at any level.
|
|
7890
9504
|
*/
|
|
7891
9505
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
7892
9506
|
/**
|
|
@@ -8065,6 +9679,10 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
8065
9679
|
* Description of the agent
|
|
8066
9680
|
*/
|
|
8067
9681
|
description: string | null;
|
|
9682
|
+
/**
|
|
9683
|
+
* The industry the agent serves
|
|
9684
|
+
*/
|
|
9685
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
8068
9686
|
/**
|
|
8069
9687
|
* Name of the agent
|
|
8070
9688
|
*/
|
|
@@ -8145,6 +9763,20 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
8145
9763
|
* Creation timestamp in ISO 8601 format
|
|
8146
9764
|
*/
|
|
8147
9765
|
createdAt: string;
|
|
9766
|
+
/**
|
|
9767
|
+
* The per-direction loss of a CUSTOM line.
|
|
9768
|
+
*/
|
|
9769
|
+
lineCustom: Environment.LineCustom | null;
|
|
9770
|
+
/**
|
|
9771
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
9772
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
9773
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
9774
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
9775
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
9776
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
9777
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
9778
|
+
*/
|
|
9779
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
8148
9780
|
name: string;
|
|
8149
9781
|
/**
|
|
8150
9782
|
* Last update timestamp in ISO 8601 format
|
|
@@ -8152,6 +9784,53 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
8152
9784
|
updatedAt: string;
|
|
8153
9785
|
description?: string | null;
|
|
8154
9786
|
}
|
|
9787
|
+
namespace Environment {
|
|
9788
|
+
/**
|
|
9789
|
+
* The per-direction loss of a CUSTOM line.
|
|
9790
|
+
*/
|
|
9791
|
+
interface LineCustom {
|
|
9792
|
+
/**
|
|
9793
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
9794
|
+
* loss.
|
|
9795
|
+
*/
|
|
9796
|
+
fromAgent?: LineCustom.FromAgent;
|
|
9797
|
+
/**
|
|
9798
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
9799
|
+
* loss.
|
|
9800
|
+
*/
|
|
9801
|
+
toAgent?: LineCustom.ToAgent;
|
|
9802
|
+
}
|
|
9803
|
+
namespace LineCustom {
|
|
9804
|
+
/**
|
|
9805
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
9806
|
+
* loss.
|
|
9807
|
+
*/
|
|
9808
|
+
interface FromAgent {
|
|
9809
|
+
/**
|
|
9810
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
9811
|
+
*/
|
|
9812
|
+
packetLossPercent: number;
|
|
9813
|
+
/**
|
|
9814
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
9815
|
+
*/
|
|
9816
|
+
meanBurstPackets?: number;
|
|
9817
|
+
}
|
|
9818
|
+
/**
|
|
9819
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
9820
|
+
* loss.
|
|
9821
|
+
*/
|
|
9822
|
+
interface ToAgent {
|
|
9823
|
+
/**
|
|
9824
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
9825
|
+
*/
|
|
9826
|
+
packetLossPercent: number;
|
|
9827
|
+
/**
|
|
9828
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
9829
|
+
*/
|
|
9830
|
+
meanBurstPackets?: number;
|
|
9831
|
+
}
|
|
9832
|
+
}
|
|
9833
|
+
}
|
|
8155
9834
|
/**
|
|
8156
9835
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
8157
9836
|
*/
|
|
@@ -8219,9 +9898,11 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
8219
9898
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
8220
9899
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
8221
9900
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
8222
|
-
* OCCASIONAL
|
|
8223
|
-
*
|
|
8224
|
-
*
|
|
9901
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
9902
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
9903
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
9904
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
9905
|
+
* applies at any level.
|
|
8225
9906
|
*/
|
|
8226
9907
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
8227
9908
|
/**
|
|
@@ -8365,6 +10046,20 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
8365
10046
|
* Creation timestamp in ISO 8601 format
|
|
8366
10047
|
*/
|
|
8367
10048
|
createdAt: string;
|
|
10049
|
+
/**
|
|
10050
|
+
* The per-direction loss of a CUSTOM line.
|
|
10051
|
+
*/
|
|
10052
|
+
lineCustom: Environment.LineCustom | null;
|
|
10053
|
+
/**
|
|
10054
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
10055
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
10056
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
10057
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
10058
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
10059
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
10060
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
10061
|
+
*/
|
|
10062
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
8368
10063
|
name: string;
|
|
8369
10064
|
/**
|
|
8370
10065
|
* Last update timestamp in ISO 8601 format
|
|
@@ -8372,6 +10067,53 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
8372
10067
|
updatedAt: string;
|
|
8373
10068
|
description?: string | null;
|
|
8374
10069
|
}
|
|
10070
|
+
namespace Environment {
|
|
10071
|
+
/**
|
|
10072
|
+
* The per-direction loss of a CUSTOM line.
|
|
10073
|
+
*/
|
|
10074
|
+
interface LineCustom {
|
|
10075
|
+
/**
|
|
10076
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
10077
|
+
* loss.
|
|
10078
|
+
*/
|
|
10079
|
+
fromAgent?: LineCustom.FromAgent;
|
|
10080
|
+
/**
|
|
10081
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
10082
|
+
* loss.
|
|
10083
|
+
*/
|
|
10084
|
+
toAgent?: LineCustom.ToAgent;
|
|
10085
|
+
}
|
|
10086
|
+
namespace LineCustom {
|
|
10087
|
+
/**
|
|
10088
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
10089
|
+
* loss.
|
|
10090
|
+
*/
|
|
10091
|
+
interface FromAgent {
|
|
10092
|
+
/**
|
|
10093
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
10094
|
+
*/
|
|
10095
|
+
packetLossPercent: number;
|
|
10096
|
+
/**
|
|
10097
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
10098
|
+
*/
|
|
10099
|
+
meanBurstPackets?: number;
|
|
10100
|
+
}
|
|
10101
|
+
/**
|
|
10102
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
10103
|
+
* loss.
|
|
10104
|
+
*/
|
|
10105
|
+
interface ToAgent {
|
|
10106
|
+
/**
|
|
10107
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
10108
|
+
*/
|
|
10109
|
+
packetLossPercent: number;
|
|
10110
|
+
/**
|
|
10111
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
10112
|
+
*/
|
|
10113
|
+
meanBurstPackets?: number;
|
|
10114
|
+
}
|
|
10115
|
+
}
|
|
10116
|
+
}
|
|
8375
10117
|
/**
|
|
8376
10118
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
8377
10119
|
*/
|
|
@@ -8439,9 +10181,11 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
8439
10181
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
8440
10182
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
8441
10183
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
8442
|
-
* OCCASIONAL
|
|
8443
|
-
*
|
|
8444
|
-
*
|
|
10184
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
10185
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
10186
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
10187
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
10188
|
+
* applies at any level.
|
|
8445
10189
|
*/
|
|
8446
10190
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
8447
10191
|
/**
|
|
@@ -8594,6 +10338,10 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
8594
10338
|
* Description of the agent
|
|
8595
10339
|
*/
|
|
8596
10340
|
description: string | null;
|
|
10341
|
+
/**
|
|
10342
|
+
* The industry the agent serves
|
|
10343
|
+
*/
|
|
10344
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
8597
10345
|
/**
|
|
8598
10346
|
* Name of the agent
|
|
8599
10347
|
*/
|
|
@@ -8656,7 +10404,11 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
8656
10404
|
/**
|
|
8657
10405
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
8658
10406
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
8659
|
-
* when.
|
|
10407
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
10408
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
10409
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
10410
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
10411
|
+
* concept.
|
|
8660
10412
|
*/
|
|
8661
10413
|
prompt?: string | null;
|
|
8662
10414
|
systemKey?: string | null;
|
|
@@ -8685,6 +10437,20 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
8685
10437
|
* Creation timestamp in ISO 8601 format
|
|
8686
10438
|
*/
|
|
8687
10439
|
createdAt: string;
|
|
10440
|
+
/**
|
|
10441
|
+
* The per-direction loss of a CUSTOM line.
|
|
10442
|
+
*/
|
|
10443
|
+
lineCustom: Environment.LineCustom | null;
|
|
10444
|
+
/**
|
|
10445
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
10446
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
10447
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
10448
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
10449
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
10450
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
10451
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
10452
|
+
*/
|
|
10453
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
8688
10454
|
name: string;
|
|
8689
10455
|
/**
|
|
8690
10456
|
* Last update timestamp in ISO 8601 format
|
|
@@ -8692,6 +10458,53 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
8692
10458
|
updatedAt: string;
|
|
8693
10459
|
description?: string | null;
|
|
8694
10460
|
}
|
|
10461
|
+
namespace Environment {
|
|
10462
|
+
/**
|
|
10463
|
+
* The per-direction loss of a CUSTOM line.
|
|
10464
|
+
*/
|
|
10465
|
+
interface LineCustom {
|
|
10466
|
+
/**
|
|
10467
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
10468
|
+
* loss.
|
|
10469
|
+
*/
|
|
10470
|
+
fromAgent?: LineCustom.FromAgent;
|
|
10471
|
+
/**
|
|
10472
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
10473
|
+
* loss.
|
|
10474
|
+
*/
|
|
10475
|
+
toAgent?: LineCustom.ToAgent;
|
|
10476
|
+
}
|
|
10477
|
+
namespace LineCustom {
|
|
10478
|
+
/**
|
|
10479
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
10480
|
+
* loss.
|
|
10481
|
+
*/
|
|
10482
|
+
interface FromAgent {
|
|
10483
|
+
/**
|
|
10484
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
10485
|
+
*/
|
|
10486
|
+
packetLossPercent: number;
|
|
10487
|
+
/**
|
|
10488
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
10489
|
+
*/
|
|
10490
|
+
meanBurstPackets?: number;
|
|
10491
|
+
}
|
|
10492
|
+
/**
|
|
10493
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
10494
|
+
* loss.
|
|
10495
|
+
*/
|
|
10496
|
+
interface ToAgent {
|
|
10497
|
+
/**
|
|
10498
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
10499
|
+
*/
|
|
10500
|
+
packetLossPercent: number;
|
|
10501
|
+
/**
|
|
10502
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
10503
|
+
*/
|
|
10504
|
+
meanBurstPackets?: number;
|
|
10505
|
+
}
|
|
10506
|
+
}
|
|
10507
|
+
}
|
|
8695
10508
|
interface HandoffPersona {
|
|
8696
10509
|
/**
|
|
8697
10510
|
* Unique identifier of the persona
|
|
@@ -8756,9 +10569,11 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
8756
10569
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
8757
10570
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
8758
10571
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
8759
|
-
* OCCASIONAL
|
|
8760
|
-
*
|
|
8761
|
-
*
|
|
10572
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
10573
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
10574
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
10575
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
10576
|
+
* applies at any level.
|
|
8762
10577
|
*/
|
|
8763
10578
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
8764
10579
|
/**
|
|
@@ -8897,9 +10712,11 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
8897
10712
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
8898
10713
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
8899
10714
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
8900
|
-
* OCCASIONAL
|
|
8901
|
-
*
|
|
8902
|
-
*
|
|
10715
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
10716
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
10717
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
10718
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
10719
|
+
* applies at any level.
|
|
8903
10720
|
*/
|
|
8904
10721
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
8905
10722
|
/**
|
|
@@ -9025,7 +10842,11 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
9025
10842
|
/**
|
|
9026
10843
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
9027
10844
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
9028
|
-
* when.
|
|
10845
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
10846
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
10847
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
10848
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
10849
|
+
* concept.
|
|
9029
10850
|
*/
|
|
9030
10851
|
prompt?: string | null;
|
|
9031
10852
|
systemKey?: string | null;
|
|
@@ -9054,6 +10875,20 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
9054
10875
|
* Creation timestamp in ISO 8601 format
|
|
9055
10876
|
*/
|
|
9056
10877
|
createdAt: string;
|
|
10878
|
+
/**
|
|
10879
|
+
* The per-direction loss of a CUSTOM line.
|
|
10880
|
+
*/
|
|
10881
|
+
lineCustom: Environment.LineCustom | null;
|
|
10882
|
+
/**
|
|
10883
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
10884
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
10885
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
10886
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
10887
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
10888
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
10889
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
10890
|
+
*/
|
|
10891
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
9057
10892
|
name: string;
|
|
9058
10893
|
/**
|
|
9059
10894
|
* Last update timestamp in ISO 8601 format
|
|
@@ -9061,6 +10896,53 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
9061
10896
|
updatedAt: string;
|
|
9062
10897
|
description?: string | null;
|
|
9063
10898
|
}
|
|
10899
|
+
namespace Environment {
|
|
10900
|
+
/**
|
|
10901
|
+
* The per-direction loss of a CUSTOM line.
|
|
10902
|
+
*/
|
|
10903
|
+
interface LineCustom {
|
|
10904
|
+
/**
|
|
10905
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
10906
|
+
* loss.
|
|
10907
|
+
*/
|
|
10908
|
+
fromAgent?: LineCustom.FromAgent;
|
|
10909
|
+
/**
|
|
10910
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
10911
|
+
* loss.
|
|
10912
|
+
*/
|
|
10913
|
+
toAgent?: LineCustom.ToAgent;
|
|
10914
|
+
}
|
|
10915
|
+
namespace LineCustom {
|
|
10916
|
+
/**
|
|
10917
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
10918
|
+
* loss.
|
|
10919
|
+
*/
|
|
10920
|
+
interface FromAgent {
|
|
10921
|
+
/**
|
|
10922
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
10923
|
+
*/
|
|
10924
|
+
packetLossPercent: number;
|
|
10925
|
+
/**
|
|
10926
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
10927
|
+
*/
|
|
10928
|
+
meanBurstPackets?: number;
|
|
10929
|
+
}
|
|
10930
|
+
/**
|
|
10931
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
10932
|
+
* loss.
|
|
10933
|
+
*/
|
|
10934
|
+
interface ToAgent {
|
|
10935
|
+
/**
|
|
10936
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
10937
|
+
*/
|
|
10938
|
+
packetLossPercent: number;
|
|
10939
|
+
/**
|
|
10940
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
10941
|
+
*/
|
|
10942
|
+
meanBurstPackets?: number;
|
|
10943
|
+
}
|
|
10944
|
+
}
|
|
10945
|
+
}
|
|
9064
10946
|
interface HandoffPersona {
|
|
9065
10947
|
/**
|
|
9066
10948
|
* Unique identifier of the persona
|
|
@@ -9125,9 +11007,11 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
9125
11007
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
9126
11008
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
9127
11009
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
9128
|
-
* OCCASIONAL
|
|
9129
|
-
*
|
|
9130
|
-
*
|
|
11010
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
11011
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
11012
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
11013
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
11014
|
+
* applies at any level.
|
|
9131
11015
|
*/
|
|
9132
11016
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
9133
11017
|
/**
|
|
@@ -9266,9 +11150,11 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
9266
11150
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
9267
11151
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
9268
11152
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
9269
|
-
* OCCASIONAL
|
|
9270
|
-
*
|
|
9271
|
-
*
|
|
11153
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
11154
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
11155
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
11156
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
11157
|
+
* applies at any level.
|
|
9272
11158
|
*/
|
|
9273
11159
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
9274
11160
|
/**
|
|
@@ -9401,6 +11287,10 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
9401
11287
|
* Description of the agent
|
|
9402
11288
|
*/
|
|
9403
11289
|
description: string | null;
|
|
11290
|
+
/**
|
|
11291
|
+
* The industry the agent serves
|
|
11292
|
+
*/
|
|
11293
|
+
industry: 'HEALTHCARE' | 'FINANCIAL_SERVICES' | 'INSURANCE' | 'DEBT_COLLECTION' | 'RETAIL' | 'TRAVEL_AND_HOSPITALITY' | 'TELECOMMUNICATIONS' | 'TECHNOLOGY' | 'PUBLIC_SECTOR' | 'UTILITIES' | 'LOGISTICS' | 'AUTOMOTIVE' | 'HOME_SERVICES' | 'RESTAURANTS' | 'EDUCATION' | 'OTHER' | null;
|
|
9404
11294
|
/**
|
|
9405
11295
|
* Name of the agent
|
|
9406
11296
|
*/
|
|
@@ -9475,6 +11365,20 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
9475
11365
|
* Creation timestamp in ISO 8601 format
|
|
9476
11366
|
*/
|
|
9477
11367
|
createdAt: string;
|
|
11368
|
+
/**
|
|
11369
|
+
* The per-direction loss of a CUSTOM line.
|
|
11370
|
+
*/
|
|
11371
|
+
lineCustom: Environment.LineCustom | null;
|
|
11372
|
+
/**
|
|
11373
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
11374
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
11375
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
11376
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
11377
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
11378
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
11379
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
11380
|
+
*/
|
|
11381
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
9478
11382
|
name: string;
|
|
9479
11383
|
/**
|
|
9480
11384
|
* Last update timestamp in ISO 8601 format
|
|
@@ -9482,6 +11386,53 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
9482
11386
|
updatedAt: string;
|
|
9483
11387
|
description?: string | null;
|
|
9484
11388
|
}
|
|
11389
|
+
namespace Environment {
|
|
11390
|
+
/**
|
|
11391
|
+
* The per-direction loss of a CUSTOM line.
|
|
11392
|
+
*/
|
|
11393
|
+
interface LineCustom {
|
|
11394
|
+
/**
|
|
11395
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
11396
|
+
* loss.
|
|
11397
|
+
*/
|
|
11398
|
+
fromAgent?: LineCustom.FromAgent;
|
|
11399
|
+
/**
|
|
11400
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
11401
|
+
* loss.
|
|
11402
|
+
*/
|
|
11403
|
+
toAgent?: LineCustom.ToAgent;
|
|
11404
|
+
}
|
|
11405
|
+
namespace LineCustom {
|
|
11406
|
+
/**
|
|
11407
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
11408
|
+
* loss.
|
|
11409
|
+
*/
|
|
11410
|
+
interface FromAgent {
|
|
11411
|
+
/**
|
|
11412
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
11413
|
+
*/
|
|
11414
|
+
packetLossPercent: number;
|
|
11415
|
+
/**
|
|
11416
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
11417
|
+
*/
|
|
11418
|
+
meanBurstPackets?: number;
|
|
11419
|
+
}
|
|
11420
|
+
/**
|
|
11421
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
11422
|
+
* loss.
|
|
11423
|
+
*/
|
|
11424
|
+
interface ToAgent {
|
|
11425
|
+
/**
|
|
11426
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
11427
|
+
*/
|
|
11428
|
+
packetLossPercent: number;
|
|
11429
|
+
/**
|
|
11430
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
11431
|
+
*/
|
|
11432
|
+
meanBurstPackets?: number;
|
|
11433
|
+
}
|
|
11434
|
+
}
|
|
11435
|
+
}
|
|
9485
11436
|
/**
|
|
9486
11437
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
9487
11438
|
*/
|
|
@@ -9549,9 +11500,11 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
9549
11500
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
9550
11501
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
9551
11502
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
9552
|
-
* OCCASIONAL
|
|
9553
|
-
*
|
|
9554
|
-
*
|
|
11503
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
11504
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
11505
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
11506
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
11507
|
+
* applies at any level.
|
|
9555
11508
|
*/
|
|
9556
11509
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
9557
11510
|
/**
|
|
@@ -9689,6 +11642,20 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
9689
11642
|
* Creation timestamp in ISO 8601 format
|
|
9690
11643
|
*/
|
|
9691
11644
|
createdAt: string;
|
|
11645
|
+
/**
|
|
11646
|
+
* The per-direction loss of a CUSTOM line.
|
|
11647
|
+
*/
|
|
11648
|
+
lineCustom: Environment.LineCustom | null;
|
|
11649
|
+
/**
|
|
11650
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
11651
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
11652
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
11653
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
11654
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
11655
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
11656
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
11657
|
+
*/
|
|
11658
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
9692
11659
|
name: string;
|
|
9693
11660
|
/**
|
|
9694
11661
|
* Last update timestamp in ISO 8601 format
|
|
@@ -9696,6 +11663,53 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
9696
11663
|
updatedAt: string;
|
|
9697
11664
|
description?: string | null;
|
|
9698
11665
|
}
|
|
11666
|
+
namespace Environment {
|
|
11667
|
+
/**
|
|
11668
|
+
* The per-direction loss of a CUSTOM line.
|
|
11669
|
+
*/
|
|
11670
|
+
interface LineCustom {
|
|
11671
|
+
/**
|
|
11672
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
11673
|
+
* loss.
|
|
11674
|
+
*/
|
|
11675
|
+
fromAgent?: LineCustom.FromAgent;
|
|
11676
|
+
/**
|
|
11677
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
11678
|
+
* loss.
|
|
11679
|
+
*/
|
|
11680
|
+
toAgent?: LineCustom.ToAgent;
|
|
11681
|
+
}
|
|
11682
|
+
namespace LineCustom {
|
|
11683
|
+
/**
|
|
11684
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
11685
|
+
* loss.
|
|
11686
|
+
*/
|
|
11687
|
+
interface FromAgent {
|
|
11688
|
+
/**
|
|
11689
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
11690
|
+
*/
|
|
11691
|
+
packetLossPercent: number;
|
|
11692
|
+
/**
|
|
11693
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
11694
|
+
*/
|
|
11695
|
+
meanBurstPackets?: number;
|
|
11696
|
+
}
|
|
11697
|
+
/**
|
|
11698
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
11699
|
+
* loss.
|
|
11700
|
+
*/
|
|
11701
|
+
interface ToAgent {
|
|
11702
|
+
/**
|
|
11703
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
11704
|
+
*/
|
|
11705
|
+
packetLossPercent: number;
|
|
11706
|
+
/**
|
|
11707
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
11708
|
+
*/
|
|
11709
|
+
meanBurstPackets?: number;
|
|
11710
|
+
}
|
|
11711
|
+
}
|
|
11712
|
+
}
|
|
9699
11713
|
/**
|
|
9700
11714
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
9701
11715
|
*/
|
|
@@ -9763,9 +11777,11 @@ export declare namespace CustomerFlowGetByIDResponse {
|
|
|
9763
11777
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
9764
11778
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
9765
11779
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
9766
|
-
* OCCASIONAL
|
|
9767
|
-
*
|
|
9768
|
-
*
|
|
11780
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
11781
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
11782
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
11783
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
11784
|
+
* applies at any level.
|
|
9769
11785
|
*/
|
|
9770
11786
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
9771
11787
|
/**
|
|
@@ -9933,6 +11949,20 @@ export declare namespace CustomerFlowReplaceGraphResponse {
|
|
|
9933
11949
|
* Creation timestamp in ISO 8601 format
|
|
9934
11950
|
*/
|
|
9935
11951
|
createdAt: string;
|
|
11952
|
+
/**
|
|
11953
|
+
* The per-direction loss of a CUSTOM line.
|
|
11954
|
+
*/
|
|
11955
|
+
lineCustom: Environment.LineCustom | null;
|
|
11956
|
+
/**
|
|
11957
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
11958
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
11959
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
11960
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
11961
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
11962
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
11963
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
11964
|
+
*/
|
|
11965
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
9936
11966
|
name: string;
|
|
9937
11967
|
/**
|
|
9938
11968
|
* Last update timestamp in ISO 8601 format
|
|
@@ -9940,6 +11970,53 @@ export declare namespace CustomerFlowReplaceGraphResponse {
|
|
|
9940
11970
|
updatedAt: string;
|
|
9941
11971
|
description?: string | null;
|
|
9942
11972
|
}
|
|
11973
|
+
namespace Environment {
|
|
11974
|
+
/**
|
|
11975
|
+
* The per-direction loss of a CUSTOM line.
|
|
11976
|
+
*/
|
|
11977
|
+
interface LineCustom {
|
|
11978
|
+
/**
|
|
11979
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
11980
|
+
* loss.
|
|
11981
|
+
*/
|
|
11982
|
+
fromAgent?: LineCustom.FromAgent;
|
|
11983
|
+
/**
|
|
11984
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
11985
|
+
* loss.
|
|
11986
|
+
*/
|
|
11987
|
+
toAgent?: LineCustom.ToAgent;
|
|
11988
|
+
}
|
|
11989
|
+
namespace LineCustom {
|
|
11990
|
+
/**
|
|
11991
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
11992
|
+
* loss.
|
|
11993
|
+
*/
|
|
11994
|
+
interface FromAgent {
|
|
11995
|
+
/**
|
|
11996
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
11997
|
+
*/
|
|
11998
|
+
packetLossPercent: number;
|
|
11999
|
+
/**
|
|
12000
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
12001
|
+
*/
|
|
12002
|
+
meanBurstPackets?: number;
|
|
12003
|
+
}
|
|
12004
|
+
/**
|
|
12005
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
12006
|
+
* loss.
|
|
12007
|
+
*/
|
|
12008
|
+
interface ToAgent {
|
|
12009
|
+
/**
|
|
12010
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
12011
|
+
*/
|
|
12012
|
+
packetLossPercent: number;
|
|
12013
|
+
/**
|
|
12014
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
12015
|
+
*/
|
|
12016
|
+
meanBurstPackets?: number;
|
|
12017
|
+
}
|
|
12018
|
+
}
|
|
12019
|
+
}
|
|
9943
12020
|
/**
|
|
9944
12021
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
9945
12022
|
*/
|
|
@@ -10007,9 +12084,11 @@ export declare namespace CustomerFlowReplaceGraphResponse {
|
|
|
10007
12084
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
10008
12085
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
10009
12086
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
10010
|
-
* OCCASIONAL
|
|
10011
|
-
*
|
|
10012
|
-
*
|
|
12087
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
12088
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
12089
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
12090
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
12091
|
+
* applies at any level.
|
|
10013
12092
|
*/
|
|
10014
12093
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
10015
12094
|
/**
|
|
@@ -10135,7 +12214,11 @@ export declare namespace CustomerFlowReplaceGraphResponse {
|
|
|
10135
12214
|
/**
|
|
10136
12215
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
10137
12216
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
10138
|
-
* when.
|
|
12217
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
12218
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
12219
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
12220
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
12221
|
+
* concept.
|
|
10139
12222
|
*/
|
|
10140
12223
|
prompt?: string | null;
|
|
10141
12224
|
systemKey?: string | null;
|
|
@@ -10164,6 +12247,20 @@ export declare namespace CustomerFlowReplaceGraphResponse {
|
|
|
10164
12247
|
* Creation timestamp in ISO 8601 format
|
|
10165
12248
|
*/
|
|
10166
12249
|
createdAt: string;
|
|
12250
|
+
/**
|
|
12251
|
+
* The per-direction loss of a CUSTOM line.
|
|
12252
|
+
*/
|
|
12253
|
+
lineCustom: Environment.LineCustom | null;
|
|
12254
|
+
/**
|
|
12255
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
12256
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
12257
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
12258
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
12259
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
12260
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
12261
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
12262
|
+
*/
|
|
12263
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
10167
12264
|
name: string;
|
|
10168
12265
|
/**
|
|
10169
12266
|
* Last update timestamp in ISO 8601 format
|
|
@@ -10171,6 +12268,53 @@ export declare namespace CustomerFlowReplaceGraphResponse {
|
|
|
10171
12268
|
updatedAt: string;
|
|
10172
12269
|
description?: string | null;
|
|
10173
12270
|
}
|
|
12271
|
+
namespace Environment {
|
|
12272
|
+
/**
|
|
12273
|
+
* The per-direction loss of a CUSTOM line.
|
|
12274
|
+
*/
|
|
12275
|
+
interface LineCustom {
|
|
12276
|
+
/**
|
|
12277
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
12278
|
+
* loss.
|
|
12279
|
+
*/
|
|
12280
|
+
fromAgent?: LineCustom.FromAgent;
|
|
12281
|
+
/**
|
|
12282
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
12283
|
+
* loss.
|
|
12284
|
+
*/
|
|
12285
|
+
toAgent?: LineCustom.ToAgent;
|
|
12286
|
+
}
|
|
12287
|
+
namespace LineCustom {
|
|
12288
|
+
/**
|
|
12289
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
12290
|
+
* loss.
|
|
12291
|
+
*/
|
|
12292
|
+
interface FromAgent {
|
|
12293
|
+
/**
|
|
12294
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
12295
|
+
*/
|
|
12296
|
+
packetLossPercent: number;
|
|
12297
|
+
/**
|
|
12298
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
12299
|
+
*/
|
|
12300
|
+
meanBurstPackets?: number;
|
|
12301
|
+
}
|
|
12302
|
+
/**
|
|
12303
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
12304
|
+
* loss.
|
|
12305
|
+
*/
|
|
12306
|
+
interface ToAgent {
|
|
12307
|
+
/**
|
|
12308
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
12309
|
+
*/
|
|
12310
|
+
packetLossPercent: number;
|
|
12311
|
+
/**
|
|
12312
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
12313
|
+
*/
|
|
12314
|
+
meanBurstPackets?: number;
|
|
12315
|
+
}
|
|
12316
|
+
}
|
|
12317
|
+
}
|
|
10174
12318
|
interface HandoffPersona {
|
|
10175
12319
|
/**
|
|
10176
12320
|
* Unique identifier of the persona
|
|
@@ -10235,9 +12379,11 @@ export declare namespace CustomerFlowReplaceGraphResponse {
|
|
|
10235
12379
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
10236
12380
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
10237
12381
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
10238
|
-
* OCCASIONAL
|
|
10239
|
-
*
|
|
10240
|
-
*
|
|
12382
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
12383
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
12384
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
12385
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
12386
|
+
* applies at any level.
|
|
10241
12387
|
*/
|
|
10242
12388
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
10243
12389
|
/**
|
|
@@ -10376,9 +12522,11 @@ export declare namespace CustomerFlowReplaceGraphResponse {
|
|
|
10376
12522
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
10377
12523
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
10378
12524
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
10379
|
-
* OCCASIONAL
|
|
10380
|
-
*
|
|
10381
|
-
*
|
|
12525
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
12526
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
12527
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
12528
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
12529
|
+
* applies at any level.
|
|
10382
12530
|
*/
|
|
10383
12531
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
10384
12532
|
/**
|
|
@@ -10516,6 +12664,20 @@ export declare namespace CustomerFlowReplaceGraphResponse {
|
|
|
10516
12664
|
* Creation timestamp in ISO 8601 format
|
|
10517
12665
|
*/
|
|
10518
12666
|
createdAt: string;
|
|
12667
|
+
/**
|
|
12668
|
+
* The per-direction loss of a CUSTOM line.
|
|
12669
|
+
*/
|
|
12670
|
+
lineCustom: Environment.LineCustom | null;
|
|
12671
|
+
/**
|
|
12672
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
12673
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
12674
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
12675
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
12676
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
12677
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
12678
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
12679
|
+
*/
|
|
12680
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
10519
12681
|
name: string;
|
|
10520
12682
|
/**
|
|
10521
12683
|
* Last update timestamp in ISO 8601 format
|
|
@@ -10523,6 +12685,53 @@ export declare namespace CustomerFlowReplaceGraphResponse {
|
|
|
10523
12685
|
updatedAt: string;
|
|
10524
12686
|
description?: string | null;
|
|
10525
12687
|
}
|
|
12688
|
+
namespace Environment {
|
|
12689
|
+
/**
|
|
12690
|
+
* The per-direction loss of a CUSTOM line.
|
|
12691
|
+
*/
|
|
12692
|
+
interface LineCustom {
|
|
12693
|
+
/**
|
|
12694
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
12695
|
+
* loss.
|
|
12696
|
+
*/
|
|
12697
|
+
fromAgent?: LineCustom.FromAgent;
|
|
12698
|
+
/**
|
|
12699
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
12700
|
+
* loss.
|
|
12701
|
+
*/
|
|
12702
|
+
toAgent?: LineCustom.ToAgent;
|
|
12703
|
+
}
|
|
12704
|
+
namespace LineCustom {
|
|
12705
|
+
/**
|
|
12706
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
12707
|
+
* loss.
|
|
12708
|
+
*/
|
|
12709
|
+
interface FromAgent {
|
|
12710
|
+
/**
|
|
12711
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
12712
|
+
*/
|
|
12713
|
+
packetLossPercent: number;
|
|
12714
|
+
/**
|
|
12715
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
12716
|
+
*/
|
|
12717
|
+
meanBurstPackets?: number;
|
|
12718
|
+
}
|
|
12719
|
+
/**
|
|
12720
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
12721
|
+
* loss.
|
|
12722
|
+
*/
|
|
12723
|
+
interface ToAgent {
|
|
12724
|
+
/**
|
|
12725
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
12726
|
+
*/
|
|
12727
|
+
packetLossPercent: number;
|
|
12728
|
+
/**
|
|
12729
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
12730
|
+
*/
|
|
12731
|
+
meanBurstPackets?: number;
|
|
12732
|
+
}
|
|
12733
|
+
}
|
|
12734
|
+
}
|
|
10526
12735
|
/**
|
|
10527
12736
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
10528
12737
|
*/
|
|
@@ -10590,9 +12799,11 @@ export declare namespace CustomerFlowReplaceGraphResponse {
|
|
|
10590
12799
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
10591
12800
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
10592
12801
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
10593
|
-
* OCCASIONAL
|
|
10594
|
-
*
|
|
10595
|
-
*
|
|
12802
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
12803
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
12804
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
12805
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
12806
|
+
* applies at any level.
|
|
10596
12807
|
*/
|
|
10597
12808
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
10598
12809
|
/**
|
|
@@ -10745,6 +12956,20 @@ export declare namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
10745
12956
|
* Creation timestamp in ISO 8601 format
|
|
10746
12957
|
*/
|
|
10747
12958
|
createdAt: string;
|
|
12959
|
+
/**
|
|
12960
|
+
* The per-direction loss of a CUSTOM line.
|
|
12961
|
+
*/
|
|
12962
|
+
lineCustom: Environment.LineCustom | null;
|
|
12963
|
+
/**
|
|
12964
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
12965
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
12966
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
12967
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
12968
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
12969
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
12970
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
12971
|
+
*/
|
|
12972
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
10748
12973
|
name: string;
|
|
10749
12974
|
/**
|
|
10750
12975
|
* Last update timestamp in ISO 8601 format
|
|
@@ -10752,6 +12977,53 @@ export declare namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
10752
12977
|
updatedAt: string;
|
|
10753
12978
|
description?: string | null;
|
|
10754
12979
|
}
|
|
12980
|
+
namespace Environment {
|
|
12981
|
+
/**
|
|
12982
|
+
* The per-direction loss of a CUSTOM line.
|
|
12983
|
+
*/
|
|
12984
|
+
interface LineCustom {
|
|
12985
|
+
/**
|
|
12986
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
12987
|
+
* loss.
|
|
12988
|
+
*/
|
|
12989
|
+
fromAgent?: LineCustom.FromAgent;
|
|
12990
|
+
/**
|
|
12991
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
12992
|
+
* loss.
|
|
12993
|
+
*/
|
|
12994
|
+
toAgent?: LineCustom.ToAgent;
|
|
12995
|
+
}
|
|
12996
|
+
namespace LineCustom {
|
|
12997
|
+
/**
|
|
12998
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
12999
|
+
* loss.
|
|
13000
|
+
*/
|
|
13001
|
+
interface FromAgent {
|
|
13002
|
+
/**
|
|
13003
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
13004
|
+
*/
|
|
13005
|
+
packetLossPercent: number;
|
|
13006
|
+
/**
|
|
13007
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
13008
|
+
*/
|
|
13009
|
+
meanBurstPackets?: number;
|
|
13010
|
+
}
|
|
13011
|
+
/**
|
|
13012
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
13013
|
+
* loss.
|
|
13014
|
+
*/
|
|
13015
|
+
interface ToAgent {
|
|
13016
|
+
/**
|
|
13017
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
13018
|
+
*/
|
|
13019
|
+
packetLossPercent: number;
|
|
13020
|
+
/**
|
|
13021
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
13022
|
+
*/
|
|
13023
|
+
meanBurstPackets?: number;
|
|
13024
|
+
}
|
|
13025
|
+
}
|
|
13026
|
+
}
|
|
10755
13027
|
/**
|
|
10756
13028
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
10757
13029
|
*/
|
|
@@ -10819,9 +13091,11 @@ export declare namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
10819
13091
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
10820
13092
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
10821
13093
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
10822
|
-
* OCCASIONAL
|
|
10823
|
-
*
|
|
10824
|
-
*
|
|
13094
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
13095
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
13096
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
13097
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
13098
|
+
* applies at any level.
|
|
10825
13099
|
*/
|
|
10826
13100
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
10827
13101
|
/**
|
|
@@ -10947,7 +13221,11 @@ export declare namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
10947
13221
|
/**
|
|
10948
13222
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
10949
13223
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
10950
|
-
* when.
|
|
13224
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
13225
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
13226
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
13227
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
13228
|
+
* concept.
|
|
10951
13229
|
*/
|
|
10952
13230
|
prompt?: string | null;
|
|
10953
13231
|
systemKey?: string | null;
|
|
@@ -10976,6 +13254,20 @@ export declare namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
10976
13254
|
* Creation timestamp in ISO 8601 format
|
|
10977
13255
|
*/
|
|
10978
13256
|
createdAt: string;
|
|
13257
|
+
/**
|
|
13258
|
+
* The per-direction loss of a CUSTOM line.
|
|
13259
|
+
*/
|
|
13260
|
+
lineCustom: Environment.LineCustom | null;
|
|
13261
|
+
/**
|
|
13262
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
13263
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
13264
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
13265
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
13266
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
13267
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
13268
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
13269
|
+
*/
|
|
13270
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
10979
13271
|
name: string;
|
|
10980
13272
|
/**
|
|
10981
13273
|
* Last update timestamp in ISO 8601 format
|
|
@@ -10983,6 +13275,53 @@ export declare namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
10983
13275
|
updatedAt: string;
|
|
10984
13276
|
description?: string | null;
|
|
10985
13277
|
}
|
|
13278
|
+
namespace Environment {
|
|
13279
|
+
/**
|
|
13280
|
+
* The per-direction loss of a CUSTOM line.
|
|
13281
|
+
*/
|
|
13282
|
+
interface LineCustom {
|
|
13283
|
+
/**
|
|
13284
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
13285
|
+
* loss.
|
|
13286
|
+
*/
|
|
13287
|
+
fromAgent?: LineCustom.FromAgent;
|
|
13288
|
+
/**
|
|
13289
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
13290
|
+
* loss.
|
|
13291
|
+
*/
|
|
13292
|
+
toAgent?: LineCustom.ToAgent;
|
|
13293
|
+
}
|
|
13294
|
+
namespace LineCustom {
|
|
13295
|
+
/**
|
|
13296
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
13297
|
+
* loss.
|
|
13298
|
+
*/
|
|
13299
|
+
interface FromAgent {
|
|
13300
|
+
/**
|
|
13301
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
13302
|
+
*/
|
|
13303
|
+
packetLossPercent: number;
|
|
13304
|
+
/**
|
|
13305
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
13306
|
+
*/
|
|
13307
|
+
meanBurstPackets?: number;
|
|
13308
|
+
}
|
|
13309
|
+
/**
|
|
13310
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
13311
|
+
* loss.
|
|
13312
|
+
*/
|
|
13313
|
+
interface ToAgent {
|
|
13314
|
+
/**
|
|
13315
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
13316
|
+
*/
|
|
13317
|
+
packetLossPercent: number;
|
|
13318
|
+
/**
|
|
13319
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
13320
|
+
*/
|
|
13321
|
+
meanBurstPackets?: number;
|
|
13322
|
+
}
|
|
13323
|
+
}
|
|
13324
|
+
}
|
|
10986
13325
|
interface HandoffPersona {
|
|
10987
13326
|
/**
|
|
10988
13327
|
* Unique identifier of the persona
|
|
@@ -11047,9 +13386,11 @@ export declare namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
11047
13386
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
11048
13387
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
11049
13388
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
11050
|
-
* OCCASIONAL
|
|
11051
|
-
*
|
|
11052
|
-
*
|
|
13389
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
13390
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
13391
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
13392
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
13393
|
+
* applies at any level.
|
|
11053
13394
|
*/
|
|
11054
13395
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
11055
13396
|
/**
|
|
@@ -11188,9 +13529,11 @@ export declare namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
11188
13529
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
11189
13530
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
11190
13531
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
11191
|
-
* OCCASIONAL
|
|
11192
|
-
*
|
|
11193
|
-
*
|
|
13532
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
13533
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
13534
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
13535
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
13536
|
+
* applies at any level.
|
|
11194
13537
|
*/
|
|
11195
13538
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
11196
13539
|
/**
|
|
@@ -11328,6 +13671,20 @@ export declare namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
11328
13671
|
* Creation timestamp in ISO 8601 format
|
|
11329
13672
|
*/
|
|
11330
13673
|
createdAt: string;
|
|
13674
|
+
/**
|
|
13675
|
+
* The per-direction loss of a CUSTOM line.
|
|
13676
|
+
*/
|
|
13677
|
+
lineCustom: Environment.LineCustom | null;
|
|
13678
|
+
/**
|
|
13679
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
13680
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
13681
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
13682
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
13683
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
13684
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
13685
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
13686
|
+
*/
|
|
13687
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
11331
13688
|
name: string;
|
|
11332
13689
|
/**
|
|
11333
13690
|
* Last update timestamp in ISO 8601 format
|
|
@@ -11335,6 +13692,53 @@ export declare namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
11335
13692
|
updatedAt: string;
|
|
11336
13693
|
description?: string | null;
|
|
11337
13694
|
}
|
|
13695
|
+
namespace Environment {
|
|
13696
|
+
/**
|
|
13697
|
+
* The per-direction loss of a CUSTOM line.
|
|
13698
|
+
*/
|
|
13699
|
+
interface LineCustom {
|
|
13700
|
+
/**
|
|
13701
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
13702
|
+
* loss.
|
|
13703
|
+
*/
|
|
13704
|
+
fromAgent?: LineCustom.FromAgent;
|
|
13705
|
+
/**
|
|
13706
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
13707
|
+
* loss.
|
|
13708
|
+
*/
|
|
13709
|
+
toAgent?: LineCustom.ToAgent;
|
|
13710
|
+
}
|
|
13711
|
+
namespace LineCustom {
|
|
13712
|
+
/**
|
|
13713
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
13714
|
+
* loss.
|
|
13715
|
+
*/
|
|
13716
|
+
interface FromAgent {
|
|
13717
|
+
/**
|
|
13718
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
13719
|
+
*/
|
|
13720
|
+
packetLossPercent: number;
|
|
13721
|
+
/**
|
|
13722
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
13723
|
+
*/
|
|
13724
|
+
meanBurstPackets?: number;
|
|
13725
|
+
}
|
|
13726
|
+
/**
|
|
13727
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
13728
|
+
* loss.
|
|
13729
|
+
*/
|
|
13730
|
+
interface ToAgent {
|
|
13731
|
+
/**
|
|
13732
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
13733
|
+
*/
|
|
13734
|
+
packetLossPercent: number;
|
|
13735
|
+
/**
|
|
13736
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
13737
|
+
*/
|
|
13738
|
+
meanBurstPackets?: number;
|
|
13739
|
+
}
|
|
13740
|
+
}
|
|
13741
|
+
}
|
|
11338
13742
|
/**
|
|
11339
13743
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
11340
13744
|
*/
|
|
@@ -11402,9 +13806,11 @@ export declare namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
11402
13806
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
11403
13807
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
11404
13808
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
11405
|
-
* OCCASIONAL
|
|
11406
|
-
*
|
|
11407
|
-
*
|
|
13809
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
13810
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
13811
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
13812
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
13813
|
+
* applies at any level.
|
|
11408
13814
|
*/
|
|
11409
13815
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
11410
13816
|
/**
|
|
@@ -11601,6 +14007,13 @@ export declare namespace CustomerFlowCreateParams {
|
|
|
11601
14007
|
openingLine?: string | null;
|
|
11602
14008
|
precededByCustomerFlowId?: string | null;
|
|
11603
14009
|
precededByCustomerFlowVariantId?: string | null;
|
|
14010
|
+
/**
|
|
14011
|
+
* The brief the simulated customer improvises from. Caller cues steer the caller
|
|
14012
|
+
* from that point in the brief: `#{emotion:<emotion>}`,
|
|
14013
|
+
* `#{language:<ISO 639-1 code>}`, `#{noise:<environmentId>}`, and `#{interrupt}`,
|
|
14014
|
+
* whose sentence says when to cut in on your agent. Cues are voice only. See
|
|
14015
|
+
* "Caller cues" in the customer flows concept.
|
|
14016
|
+
*/
|
|
11604
14017
|
prompt?: string | null;
|
|
11605
14018
|
}
|
|
11606
14019
|
namespace HappyPath {
|
|
@@ -11641,6 +14054,13 @@ export declare namespace CustomerFlowCreateParams {
|
|
|
11641
14054
|
personaOverrideId?: string | null;
|
|
11642
14055
|
precededByCustomerFlowId?: string | null;
|
|
11643
14056
|
precededByCustomerFlowVariantId?: string | null;
|
|
14057
|
+
/**
|
|
14058
|
+
* The brief the simulated customer improvises from. Caller cues steer the caller
|
|
14059
|
+
* from that point in the brief: `#{emotion:<emotion>}`,
|
|
14060
|
+
* `#{language:<ISO 639-1 code>}`, `#{noise:<environmentId>}`, and `#{interrupt}`,
|
|
14061
|
+
* whose sentence says when to cut in on your agent. Cues are voice only. See
|
|
14062
|
+
* "Caller cues" in the customer flows concept.
|
|
14063
|
+
*/
|
|
11644
14064
|
prompt?: string | null;
|
|
11645
14065
|
}
|
|
11646
14066
|
namespace EdgeCase {
|
|
@@ -11779,6 +14199,13 @@ export interface CustomerFlowUpdateHappyPathParams {
|
|
|
11779
14199
|
personaOverrideId?: string | null;
|
|
11780
14200
|
precededByCustomerFlowId?: string | null;
|
|
11781
14201
|
precededByCustomerFlowVariantId?: string | null;
|
|
14202
|
+
/**
|
|
14203
|
+
* Improv flows only. The brief the simulated customer improvises from. Caller cues
|
|
14204
|
+
* steer the caller from that point in the brief: `#{emotion:<emotion>}`,
|
|
14205
|
+
* `#{language:<ISO 639-1 code>}`, `#{noise:<environmentId>}`, and `#{interrupt}`,
|
|
14206
|
+
* whose sentence says when to cut in on your agent. Cues are voice only. See
|
|
14207
|
+
* "Caller cues" in the customer flows concept.
|
|
14208
|
+
*/
|
|
11782
14209
|
prompt?: string | null;
|
|
11783
14210
|
title?: string;
|
|
11784
14211
|
}
|