@roarkanalytics/sdk 7.9.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 +16 -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 -92
- package/resources/customer.d.mts.map +1 -0
- package/resources/{customer-profile.d.ts → customer.d.ts} +287 -92
- 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 -294
- 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
|
@@ -217,6 +217,22 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
217
217
|
*/
|
|
218
218
|
createdAt: string;
|
|
219
219
|
|
|
220
|
+
/**
|
|
221
|
+
* The per-direction loss of a CUSTOM line.
|
|
222
|
+
*/
|
|
223
|
+
lineCustom: Environment.LineCustom | null;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
227
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
228
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
229
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
230
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
231
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
232
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
233
|
+
*/
|
|
234
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
235
|
+
|
|
220
236
|
name: string;
|
|
221
237
|
|
|
222
238
|
/**
|
|
@@ -227,6 +243,59 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
227
243
|
description?: string | null;
|
|
228
244
|
}
|
|
229
245
|
|
|
246
|
+
export namespace Environment {
|
|
247
|
+
/**
|
|
248
|
+
* The per-direction loss of a CUSTOM line.
|
|
249
|
+
*/
|
|
250
|
+
export interface LineCustom {
|
|
251
|
+
/**
|
|
252
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
253
|
+
* loss.
|
|
254
|
+
*/
|
|
255
|
+
fromAgent?: LineCustom.FromAgent;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
259
|
+
* loss.
|
|
260
|
+
*/
|
|
261
|
+
toAgent?: LineCustom.ToAgent;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export namespace LineCustom {
|
|
265
|
+
/**
|
|
266
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
267
|
+
* loss.
|
|
268
|
+
*/
|
|
269
|
+
export interface FromAgent {
|
|
270
|
+
/**
|
|
271
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
272
|
+
*/
|
|
273
|
+
packetLossPercent: number;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
277
|
+
*/
|
|
278
|
+
meanBurstPackets?: number;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
283
|
+
* loss.
|
|
284
|
+
*/
|
|
285
|
+
export interface ToAgent {
|
|
286
|
+
/**
|
|
287
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
288
|
+
*/
|
|
289
|
+
packetLossPercent: number;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
293
|
+
*/
|
|
294
|
+
meanBurstPackets?: number;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
230
299
|
/**
|
|
231
300
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
232
301
|
*/
|
|
@@ -353,9 +422,11 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
353
422
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
354
423
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
355
424
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
356
|
-
* OCCASIONAL
|
|
357
|
-
*
|
|
358
|
-
*
|
|
425
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
426
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
427
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
428
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
429
|
+
* applies at any level.
|
|
359
430
|
*/
|
|
360
431
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
361
432
|
|
|
@@ -545,7 +616,11 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
545
616
|
/**
|
|
546
617
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
547
618
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
548
|
-
* when.
|
|
619
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
620
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
621
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
622
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
623
|
+
* concept.
|
|
549
624
|
*/
|
|
550
625
|
prompt?: string | null;
|
|
551
626
|
|
|
@@ -594,6 +669,22 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
594
669
|
*/
|
|
595
670
|
createdAt: string;
|
|
596
671
|
|
|
672
|
+
/**
|
|
673
|
+
* The per-direction loss of a CUSTOM line.
|
|
674
|
+
*/
|
|
675
|
+
lineCustom: Environment.LineCustom | null;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
679
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
680
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
681
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
682
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
683
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
684
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
685
|
+
*/
|
|
686
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
687
|
+
|
|
597
688
|
name: string;
|
|
598
689
|
|
|
599
690
|
/**
|
|
@@ -604,6 +695,59 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
604
695
|
description?: string | null;
|
|
605
696
|
}
|
|
606
697
|
|
|
698
|
+
export namespace Environment {
|
|
699
|
+
/**
|
|
700
|
+
* The per-direction loss of a CUSTOM line.
|
|
701
|
+
*/
|
|
702
|
+
export interface LineCustom {
|
|
703
|
+
/**
|
|
704
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
705
|
+
* loss.
|
|
706
|
+
*/
|
|
707
|
+
fromAgent?: LineCustom.FromAgent;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
711
|
+
* loss.
|
|
712
|
+
*/
|
|
713
|
+
toAgent?: LineCustom.ToAgent;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
export namespace LineCustom {
|
|
717
|
+
/**
|
|
718
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
719
|
+
* loss.
|
|
720
|
+
*/
|
|
721
|
+
export interface FromAgent {
|
|
722
|
+
/**
|
|
723
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
724
|
+
*/
|
|
725
|
+
packetLossPercent: number;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
729
|
+
*/
|
|
730
|
+
meanBurstPackets?: number;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
735
|
+
* loss.
|
|
736
|
+
*/
|
|
737
|
+
export interface ToAgent {
|
|
738
|
+
/**
|
|
739
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
740
|
+
*/
|
|
741
|
+
packetLossPercent: number;
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
745
|
+
*/
|
|
746
|
+
meanBurstPackets?: number;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
|
|
607
751
|
export interface HandoffPersona {
|
|
608
752
|
/**
|
|
609
753
|
* Unique identifier of the persona
|
|
@@ -727,9 +871,11 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
727
871
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
728
872
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
729
873
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
730
|
-
* OCCASIONAL
|
|
731
|
-
*
|
|
732
|
-
*
|
|
874
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
875
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
876
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
877
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
878
|
+
* applies at any level.
|
|
733
879
|
*/
|
|
734
880
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
735
881
|
|
|
@@ -977,9 +1123,11 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
977
1123
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
978
1124
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
979
1125
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
980
|
-
* OCCASIONAL
|
|
981
|
-
*
|
|
982
|
-
*
|
|
1126
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
1127
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
1128
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
1129
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
1130
|
+
* applies at any level.
|
|
983
1131
|
*/
|
|
984
1132
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
985
1133
|
|
|
@@ -1199,6 +1347,22 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
1199
1347
|
*/
|
|
1200
1348
|
createdAt: string;
|
|
1201
1349
|
|
|
1350
|
+
/**
|
|
1351
|
+
* The per-direction loss of a CUSTOM line.
|
|
1352
|
+
*/
|
|
1353
|
+
lineCustom: Environment.LineCustom | null;
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
1357
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
1358
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
1359
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
1360
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
1361
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
1362
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
1363
|
+
*/
|
|
1364
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
1365
|
+
|
|
1202
1366
|
name: string;
|
|
1203
1367
|
|
|
1204
1368
|
/**
|
|
@@ -1209,6 +1373,59 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
1209
1373
|
description?: string | null;
|
|
1210
1374
|
}
|
|
1211
1375
|
|
|
1376
|
+
export namespace Environment {
|
|
1377
|
+
/**
|
|
1378
|
+
* The per-direction loss of a CUSTOM line.
|
|
1379
|
+
*/
|
|
1380
|
+
export interface LineCustom {
|
|
1381
|
+
/**
|
|
1382
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
1383
|
+
* loss.
|
|
1384
|
+
*/
|
|
1385
|
+
fromAgent?: LineCustom.FromAgent;
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
1389
|
+
* loss.
|
|
1390
|
+
*/
|
|
1391
|
+
toAgent?: LineCustom.ToAgent;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
export namespace LineCustom {
|
|
1395
|
+
/**
|
|
1396
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
1397
|
+
* loss.
|
|
1398
|
+
*/
|
|
1399
|
+
export interface FromAgent {
|
|
1400
|
+
/**
|
|
1401
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
1402
|
+
*/
|
|
1403
|
+
packetLossPercent: number;
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
1407
|
+
*/
|
|
1408
|
+
meanBurstPackets?: number;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
1413
|
+
* loss.
|
|
1414
|
+
*/
|
|
1415
|
+
export interface ToAgent {
|
|
1416
|
+
/**
|
|
1417
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
1418
|
+
*/
|
|
1419
|
+
packetLossPercent: number;
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
1423
|
+
*/
|
|
1424
|
+
meanBurstPackets?: number;
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1212
1429
|
/**
|
|
1213
1430
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
1214
1431
|
*/
|
|
@@ -1335,9 +1552,11 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
|
|
|
1335
1552
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
1336
1553
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
1337
1554
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
1338
|
-
* OCCASIONAL
|
|
1339
|
-
*
|
|
1340
|
-
*
|
|
1555
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
1556
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
1557
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
1558
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
1559
|
+
* applies at any level.
|
|
1341
1560
|
*/
|
|
1342
1561
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
1343
1562
|
|
|
@@ -1576,6 +1795,22 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
1576
1795
|
*/
|
|
1577
1796
|
createdAt: string;
|
|
1578
1797
|
|
|
1798
|
+
/**
|
|
1799
|
+
* The per-direction loss of a CUSTOM line.
|
|
1800
|
+
*/
|
|
1801
|
+
lineCustom: Environment.LineCustom | null;
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
1805
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
1806
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
1807
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
1808
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
1809
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
1810
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
1811
|
+
*/
|
|
1812
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
1813
|
+
|
|
1579
1814
|
name: string;
|
|
1580
1815
|
|
|
1581
1816
|
/**
|
|
@@ -1586,6 +1821,59 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
1586
1821
|
description?: string | null;
|
|
1587
1822
|
}
|
|
1588
1823
|
|
|
1824
|
+
export namespace Environment {
|
|
1825
|
+
/**
|
|
1826
|
+
* The per-direction loss of a CUSTOM line.
|
|
1827
|
+
*/
|
|
1828
|
+
export interface LineCustom {
|
|
1829
|
+
/**
|
|
1830
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
1831
|
+
* loss.
|
|
1832
|
+
*/
|
|
1833
|
+
fromAgent?: LineCustom.FromAgent;
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
1837
|
+
* loss.
|
|
1838
|
+
*/
|
|
1839
|
+
toAgent?: LineCustom.ToAgent;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
export namespace LineCustom {
|
|
1843
|
+
/**
|
|
1844
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
1845
|
+
* loss.
|
|
1846
|
+
*/
|
|
1847
|
+
export interface FromAgent {
|
|
1848
|
+
/**
|
|
1849
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
1850
|
+
*/
|
|
1851
|
+
packetLossPercent: number;
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
1855
|
+
*/
|
|
1856
|
+
meanBurstPackets?: number;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
1861
|
+
* loss.
|
|
1862
|
+
*/
|
|
1863
|
+
export interface ToAgent {
|
|
1864
|
+
/**
|
|
1865
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
1866
|
+
*/
|
|
1867
|
+
packetLossPercent: number;
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
1871
|
+
*/
|
|
1872
|
+
meanBurstPackets?: number;
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1589
1877
|
/**
|
|
1590
1878
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
1591
1879
|
*/
|
|
@@ -1712,9 +2000,11 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
1712
2000
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
1713
2001
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
1714
2002
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
1715
|
-
* OCCASIONAL
|
|
1716
|
-
*
|
|
1717
|
-
*
|
|
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.
|
|
1718
2008
|
*/
|
|
1719
2009
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
1720
2010
|
|
|
@@ -1904,7 +2194,11 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
1904
2194
|
/**
|
|
1905
2195
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
1906
2196
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
1907
|
-
* when.
|
|
2197
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
2198
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
2199
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
2200
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
2201
|
+
* concept.
|
|
1908
2202
|
*/
|
|
1909
2203
|
prompt?: string | null;
|
|
1910
2204
|
|
|
@@ -1953,6 +2247,22 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
1953
2247
|
*/
|
|
1954
2248
|
createdAt: string;
|
|
1955
2249
|
|
|
2250
|
+
/**
|
|
2251
|
+
* The per-direction loss of a CUSTOM line.
|
|
2252
|
+
*/
|
|
2253
|
+
lineCustom: Environment.LineCustom | null;
|
|
2254
|
+
|
|
2255
|
+
/**
|
|
2256
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
2257
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
2258
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
2259
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
2260
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
2261
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
2262
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
2263
|
+
*/
|
|
2264
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
2265
|
+
|
|
1956
2266
|
name: string;
|
|
1957
2267
|
|
|
1958
2268
|
/**
|
|
@@ -1963,6 +2273,59 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
1963
2273
|
description?: string | null;
|
|
1964
2274
|
}
|
|
1965
2275
|
|
|
2276
|
+
export namespace Environment {
|
|
2277
|
+
/**
|
|
2278
|
+
* The per-direction loss of a CUSTOM line.
|
|
2279
|
+
*/
|
|
2280
|
+
export interface LineCustom {
|
|
2281
|
+
/**
|
|
2282
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
2283
|
+
* loss.
|
|
2284
|
+
*/
|
|
2285
|
+
fromAgent?: LineCustom.FromAgent;
|
|
2286
|
+
|
|
2287
|
+
/**
|
|
2288
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
2289
|
+
* loss.
|
|
2290
|
+
*/
|
|
2291
|
+
toAgent?: LineCustom.ToAgent;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
export namespace LineCustom {
|
|
2295
|
+
/**
|
|
2296
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
2297
|
+
* loss.
|
|
2298
|
+
*/
|
|
2299
|
+
export interface FromAgent {
|
|
2300
|
+
/**
|
|
2301
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
2302
|
+
*/
|
|
2303
|
+
packetLossPercent: number;
|
|
2304
|
+
|
|
2305
|
+
/**
|
|
2306
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
2307
|
+
*/
|
|
2308
|
+
meanBurstPackets?: number;
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2311
|
+
/**
|
|
2312
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
2313
|
+
* loss.
|
|
2314
|
+
*/
|
|
2315
|
+
export interface ToAgent {
|
|
2316
|
+
/**
|
|
2317
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
2318
|
+
*/
|
|
2319
|
+
packetLossPercent: number;
|
|
2320
|
+
|
|
2321
|
+
/**
|
|
2322
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
2323
|
+
*/
|
|
2324
|
+
meanBurstPackets?: number;
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
|
|
1966
2329
|
export interface HandoffPersona {
|
|
1967
2330
|
/**
|
|
1968
2331
|
* Unique identifier of the persona
|
|
@@ -2086,9 +2449,11 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
2086
2449
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
2087
2450
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
2088
2451
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
2089
|
-
* OCCASIONAL
|
|
2090
|
-
*
|
|
2091
|
-
*
|
|
2452
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
2453
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
2454
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
2455
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
2456
|
+
* applies at any level.
|
|
2092
2457
|
*/
|
|
2093
2458
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
2094
2459
|
|
|
@@ -2336,9 +2701,11 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
2336
2701
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
2337
2702
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
2338
2703
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
2339
|
-
* OCCASIONAL
|
|
2340
|
-
*
|
|
2341
|
-
*
|
|
2704
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
2705
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
2706
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
2707
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
2708
|
+
* applies at any level.
|
|
2342
2709
|
*/
|
|
2343
2710
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
2344
2711
|
|
|
@@ -2558,6 +2925,22 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
2558
2925
|
*/
|
|
2559
2926
|
createdAt: string;
|
|
2560
2927
|
|
|
2928
|
+
/**
|
|
2929
|
+
* The per-direction loss of a CUSTOM line.
|
|
2930
|
+
*/
|
|
2931
|
+
lineCustom: Environment.LineCustom | null;
|
|
2932
|
+
|
|
2933
|
+
/**
|
|
2934
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
2935
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
2936
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
2937
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
2938
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
2939
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
2940
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
2941
|
+
*/
|
|
2942
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
2943
|
+
|
|
2561
2944
|
name: string;
|
|
2562
2945
|
|
|
2563
2946
|
/**
|
|
@@ -2568,6 +2951,59 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
2568
2951
|
description?: string | null;
|
|
2569
2952
|
}
|
|
2570
2953
|
|
|
2954
|
+
export namespace Environment {
|
|
2955
|
+
/**
|
|
2956
|
+
* The per-direction loss of a CUSTOM line.
|
|
2957
|
+
*/
|
|
2958
|
+
export interface LineCustom {
|
|
2959
|
+
/**
|
|
2960
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
2961
|
+
* loss.
|
|
2962
|
+
*/
|
|
2963
|
+
fromAgent?: LineCustom.FromAgent;
|
|
2964
|
+
|
|
2965
|
+
/**
|
|
2966
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
2967
|
+
* loss.
|
|
2968
|
+
*/
|
|
2969
|
+
toAgent?: LineCustom.ToAgent;
|
|
2970
|
+
}
|
|
2971
|
+
|
|
2972
|
+
export namespace LineCustom {
|
|
2973
|
+
/**
|
|
2974
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
2975
|
+
* loss.
|
|
2976
|
+
*/
|
|
2977
|
+
export interface FromAgent {
|
|
2978
|
+
/**
|
|
2979
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
2980
|
+
*/
|
|
2981
|
+
packetLossPercent: number;
|
|
2982
|
+
|
|
2983
|
+
/**
|
|
2984
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
2985
|
+
*/
|
|
2986
|
+
meanBurstPackets?: number;
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
/**
|
|
2990
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
2991
|
+
* loss.
|
|
2992
|
+
*/
|
|
2993
|
+
export interface ToAgent {
|
|
2994
|
+
/**
|
|
2995
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
2996
|
+
*/
|
|
2997
|
+
packetLossPercent: number;
|
|
2998
|
+
|
|
2999
|
+
/**
|
|
3000
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
3001
|
+
*/
|
|
3002
|
+
meanBurstPackets?: number;
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
}
|
|
3006
|
+
|
|
2571
3007
|
/**
|
|
2572
3008
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
2573
3009
|
*/
|
|
@@ -2694,9 +3130,11 @@ export namespace CustomerFlowEdgeCaseAddResponse {
|
|
|
2694
3130
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
2695
3131
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
2696
3132
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
2697
|
-
* OCCASIONAL
|
|
2698
|
-
*
|
|
2699
|
-
*
|
|
3133
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
3134
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
3135
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
3136
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
3137
|
+
* applies at any level.
|
|
2700
3138
|
*/
|
|
2701
3139
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
2702
3140
|
|
|
@@ -2935,6 +3373,22 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
2935
3373
|
*/
|
|
2936
3374
|
createdAt: string;
|
|
2937
3375
|
|
|
3376
|
+
/**
|
|
3377
|
+
* The per-direction loss of a CUSTOM line.
|
|
3378
|
+
*/
|
|
3379
|
+
lineCustom: Environment.LineCustom | null;
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
3383
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
3384
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
3385
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
3386
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
3387
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
3388
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
3389
|
+
*/
|
|
3390
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
3391
|
+
|
|
2938
3392
|
name: string;
|
|
2939
3393
|
|
|
2940
3394
|
/**
|
|
@@ -2945,6 +3399,59 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
2945
3399
|
description?: string | null;
|
|
2946
3400
|
}
|
|
2947
3401
|
|
|
3402
|
+
export namespace Environment {
|
|
3403
|
+
/**
|
|
3404
|
+
* The per-direction loss of a CUSTOM line.
|
|
3405
|
+
*/
|
|
3406
|
+
export interface LineCustom {
|
|
3407
|
+
/**
|
|
3408
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
3409
|
+
* loss.
|
|
3410
|
+
*/
|
|
3411
|
+
fromAgent?: LineCustom.FromAgent;
|
|
3412
|
+
|
|
3413
|
+
/**
|
|
3414
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
3415
|
+
* loss.
|
|
3416
|
+
*/
|
|
3417
|
+
toAgent?: LineCustom.ToAgent;
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
export namespace LineCustom {
|
|
3421
|
+
/**
|
|
3422
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
3423
|
+
* loss.
|
|
3424
|
+
*/
|
|
3425
|
+
export interface FromAgent {
|
|
3426
|
+
/**
|
|
3427
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
3428
|
+
*/
|
|
3429
|
+
packetLossPercent: number;
|
|
3430
|
+
|
|
3431
|
+
/**
|
|
3432
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
3433
|
+
*/
|
|
3434
|
+
meanBurstPackets?: number;
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
/**
|
|
3438
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
3439
|
+
* loss.
|
|
3440
|
+
*/
|
|
3441
|
+
export interface ToAgent {
|
|
3442
|
+
/**
|
|
3443
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
3444
|
+
*/
|
|
3445
|
+
packetLossPercent: number;
|
|
3446
|
+
|
|
3447
|
+
/**
|
|
3448
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
3449
|
+
*/
|
|
3450
|
+
meanBurstPackets?: number;
|
|
3451
|
+
}
|
|
3452
|
+
}
|
|
3453
|
+
}
|
|
3454
|
+
|
|
2948
3455
|
/**
|
|
2949
3456
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
2950
3457
|
*/
|
|
@@ -3071,9 +3578,11 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
3071
3578
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
3072
3579
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
3073
3580
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
3074
|
-
* OCCASIONAL
|
|
3075
|
-
*
|
|
3076
|
-
*
|
|
3581
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
3582
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
3583
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
3584
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
3585
|
+
* applies at any level.
|
|
3077
3586
|
*/
|
|
3078
3587
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
3079
3588
|
|
|
@@ -3263,7 +3772,11 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
3263
3772
|
/**
|
|
3264
3773
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
3265
3774
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
3266
|
-
* when.
|
|
3775
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
3776
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
3777
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
3778
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
3779
|
+
* concept.
|
|
3267
3780
|
*/
|
|
3268
3781
|
prompt?: string | null;
|
|
3269
3782
|
|
|
@@ -3312,6 +3825,22 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
3312
3825
|
*/
|
|
3313
3826
|
createdAt: string;
|
|
3314
3827
|
|
|
3828
|
+
/**
|
|
3829
|
+
* The per-direction loss of a CUSTOM line.
|
|
3830
|
+
*/
|
|
3831
|
+
lineCustom: Environment.LineCustom | null;
|
|
3832
|
+
|
|
3833
|
+
/**
|
|
3834
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
3835
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
3836
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
3837
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
3838
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
3839
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
3840
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
3841
|
+
*/
|
|
3842
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
3843
|
+
|
|
3315
3844
|
name: string;
|
|
3316
3845
|
|
|
3317
3846
|
/**
|
|
@@ -3322,6 +3851,59 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
3322
3851
|
description?: string | null;
|
|
3323
3852
|
}
|
|
3324
3853
|
|
|
3854
|
+
export namespace Environment {
|
|
3855
|
+
/**
|
|
3856
|
+
* The per-direction loss of a CUSTOM line.
|
|
3857
|
+
*/
|
|
3858
|
+
export interface LineCustom {
|
|
3859
|
+
/**
|
|
3860
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
3861
|
+
* loss.
|
|
3862
|
+
*/
|
|
3863
|
+
fromAgent?: LineCustom.FromAgent;
|
|
3864
|
+
|
|
3865
|
+
/**
|
|
3866
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
3867
|
+
* loss.
|
|
3868
|
+
*/
|
|
3869
|
+
toAgent?: LineCustom.ToAgent;
|
|
3870
|
+
}
|
|
3871
|
+
|
|
3872
|
+
export namespace LineCustom {
|
|
3873
|
+
/**
|
|
3874
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
3875
|
+
* loss.
|
|
3876
|
+
*/
|
|
3877
|
+
export interface FromAgent {
|
|
3878
|
+
/**
|
|
3879
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
3880
|
+
*/
|
|
3881
|
+
packetLossPercent: number;
|
|
3882
|
+
|
|
3883
|
+
/**
|
|
3884
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
3885
|
+
*/
|
|
3886
|
+
meanBurstPackets?: number;
|
|
3887
|
+
}
|
|
3888
|
+
|
|
3889
|
+
/**
|
|
3890
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
3891
|
+
* loss.
|
|
3892
|
+
*/
|
|
3893
|
+
export interface ToAgent {
|
|
3894
|
+
/**
|
|
3895
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
3896
|
+
*/
|
|
3897
|
+
packetLossPercent: number;
|
|
3898
|
+
|
|
3899
|
+
/**
|
|
3900
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
3901
|
+
*/
|
|
3902
|
+
meanBurstPackets?: number;
|
|
3903
|
+
}
|
|
3904
|
+
}
|
|
3905
|
+
}
|
|
3906
|
+
|
|
3325
3907
|
export interface HandoffPersona {
|
|
3326
3908
|
/**
|
|
3327
3909
|
* Unique identifier of the persona
|
|
@@ -3445,9 +4027,11 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
3445
4027
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
3446
4028
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
3447
4029
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
3448
|
-
* OCCASIONAL
|
|
3449
|
-
*
|
|
3450
|
-
*
|
|
4030
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
4031
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
4032
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
4033
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
4034
|
+
* applies at any level.
|
|
3451
4035
|
*/
|
|
3452
4036
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
3453
4037
|
|
|
@@ -3695,9 +4279,11 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
3695
4279
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
3696
4280
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
3697
4281
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
3698
|
-
* OCCASIONAL
|
|
3699
|
-
*
|
|
3700
|
-
*
|
|
4282
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
4283
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
4284
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
4285
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
4286
|
+
* applies at any level.
|
|
3701
4287
|
*/
|
|
3702
4288
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
3703
4289
|
|
|
@@ -3917,6 +4503,22 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
3917
4503
|
*/
|
|
3918
4504
|
createdAt: string;
|
|
3919
4505
|
|
|
4506
|
+
/**
|
|
4507
|
+
* The per-direction loss of a CUSTOM line.
|
|
4508
|
+
*/
|
|
4509
|
+
lineCustom: Environment.LineCustom | null;
|
|
4510
|
+
|
|
4511
|
+
/**
|
|
4512
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
4513
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
4514
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
4515
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
4516
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
4517
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
4518
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
4519
|
+
*/
|
|
4520
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
4521
|
+
|
|
3920
4522
|
name: string;
|
|
3921
4523
|
|
|
3922
4524
|
/**
|
|
@@ -3927,6 +4529,59 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
3927
4529
|
description?: string | null;
|
|
3928
4530
|
}
|
|
3929
4531
|
|
|
4532
|
+
export namespace Environment {
|
|
4533
|
+
/**
|
|
4534
|
+
* The per-direction loss of a CUSTOM line.
|
|
4535
|
+
*/
|
|
4536
|
+
export interface LineCustom {
|
|
4537
|
+
/**
|
|
4538
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
4539
|
+
* loss.
|
|
4540
|
+
*/
|
|
4541
|
+
fromAgent?: LineCustom.FromAgent;
|
|
4542
|
+
|
|
4543
|
+
/**
|
|
4544
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
4545
|
+
* loss.
|
|
4546
|
+
*/
|
|
4547
|
+
toAgent?: LineCustom.ToAgent;
|
|
4548
|
+
}
|
|
4549
|
+
|
|
4550
|
+
export namespace LineCustom {
|
|
4551
|
+
/**
|
|
4552
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
4553
|
+
* loss.
|
|
4554
|
+
*/
|
|
4555
|
+
export interface FromAgent {
|
|
4556
|
+
/**
|
|
4557
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
4558
|
+
*/
|
|
4559
|
+
packetLossPercent: number;
|
|
4560
|
+
|
|
4561
|
+
/**
|
|
4562
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
4563
|
+
*/
|
|
4564
|
+
meanBurstPackets?: number;
|
|
4565
|
+
}
|
|
4566
|
+
|
|
4567
|
+
/**
|
|
4568
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
4569
|
+
* loss.
|
|
4570
|
+
*/
|
|
4571
|
+
export interface ToAgent {
|
|
4572
|
+
/**
|
|
4573
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
4574
|
+
*/
|
|
4575
|
+
packetLossPercent: number;
|
|
4576
|
+
|
|
4577
|
+
/**
|
|
4578
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
4579
|
+
*/
|
|
4580
|
+
meanBurstPackets?: number;
|
|
4581
|
+
}
|
|
4582
|
+
}
|
|
4583
|
+
}
|
|
4584
|
+
|
|
3930
4585
|
/**
|
|
3931
4586
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
3932
4587
|
*/
|
|
@@ -4053,9 +4708,11 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
|
|
|
4053
4708
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
4054
4709
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
4055
4710
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
4056
|
-
* OCCASIONAL
|
|
4057
|
-
*
|
|
4058
|
-
*
|
|
4711
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
4712
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
4713
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
4714
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
4715
|
+
* applies at any level.
|
|
4059
4716
|
*/
|
|
4060
4717
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
4061
4718
|
|
|
@@ -4241,7 +4898,12 @@ export interface CustomerFlowEdgeCaseUpdateParams {
|
|
|
4241
4898
|
precededByCustomerFlowVariantId?: string | null;
|
|
4242
4899
|
|
|
4243
4900
|
/**
|
|
4244
|
-
* Body param
|
|
4901
|
+
* Body param: Improv flows only. The brief the simulated customer improvises from.
|
|
4902
|
+
* Caller cues steer the caller from that point in the brief:
|
|
4903
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
4904
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
4905
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
4906
|
+
* concept.
|
|
4245
4907
|
*/
|
|
4246
4908
|
prompt?: string | null;
|
|
4247
4909
|
|
|
@@ -4292,6 +4954,13 @@ export interface CustomerFlowEdgeCaseAddParams {
|
|
|
4292
4954
|
|
|
4293
4955
|
precededByCustomerFlowVariantId?: string | null;
|
|
4294
4956
|
|
|
4957
|
+
/**
|
|
4958
|
+
* The brief the simulated customer improvises from. Caller cues steer the caller
|
|
4959
|
+
* from that point in the brief: `#{emotion:<emotion>}`,
|
|
4960
|
+
* `#{language:<ISO 639-1 code>}`, `#{noise:<environmentId>}`, and `#{interrupt}`,
|
|
4961
|
+
* whose sentence says when to cut in on your agent. Cues are voice only. See
|
|
4962
|
+
* "Caller cues" in the customer flows concept.
|
|
4963
|
+
*/
|
|
4295
4964
|
prompt?: string | null;
|
|
4296
4965
|
}
|
|
4297
4966
|
|