@opencx/mcp 1.15.66 → 1.15.69
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/dist/partner-analytics.spec.js +1 -0
- package/dist/partner-analytics.spec.js.map +1 -1
- package/dist/schema.d.ts +375 -18
- package/dist/schema.d.ts.map +1 -1
- package/dist/tools/reports.d.ts.map +1 -1
- package/dist/tools/reports.js +1 -0
- package/dist/tools/reports.js.map +1 -1
- package/dist/tools/sessions.js +1 -1
- package/dist/tools/sessions.js.map +1 -1
- package/dist/tools/sla-analytics.d.ts.map +1 -1
- package/dist/tools/sla-analytics.js +56 -0
- package/dist/tools/sla-analytics.js.map +1 -1
- package/dist/tools/team-settings.d.ts +1 -0
- package/dist/tools/team-settings.d.ts.map +1 -1
- package/dist/tools/team-settings.js +6 -0
- package/dist/tools/team-settings.js.map +1 -1
- package/dist/tools/training.d.ts.map +1 -1
- package/dist/tools/training.js +34 -18
- package/dist/tools/training.js.map +1 -1
- package/package.json +1 -1
|
@@ -60,6 +60,7 @@ describe('partner analytics tools', () => {
|
|
|
60
60
|
expect(byName.get('run_partner_analytics_query')?.description).toContain('report_partner_sessions');
|
|
61
61
|
expect(byName.get('run_partner_analytics_query')?.description).toContain('org_id');
|
|
62
62
|
expect(byName.get('run_analytics_query')?.description).not.toContain('report_partner_');
|
|
63
|
+
expect(byName.get('run_analytics_query')?.description).toContain('report_sequence_pool_calls');
|
|
63
64
|
});
|
|
64
65
|
it('list_partner_orgs GETs /partner-analytics/orgs with the API key and returns the roster', async () => {
|
|
65
66
|
const roster = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partner-analytics.spec.js","sourceRoot":"","sources":["../src/partner-analytics.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAEzE,OAAO,EACL,eAAe,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,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC;QACnC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;YACjD,EAAE,EAAE,KAAK;YACT,MAAM,EAAE,GAAG;YACX,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;SAC3B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/schema.d.ts
CHANGED
|
@@ -290,7 +290,7 @@ export interface paths {
|
|
|
290
290
|
put?: never;
|
|
291
291
|
/**
|
|
292
292
|
* Merge sessions
|
|
293
|
-
* @description Permanently close source sessions and attach them to this primary. Sources cannot be reopened or replied to. All replies use the primary channel and recipients. Requires merge-sessions:write and OpenCX ticketing. Reuse idempotencyKey with the identical request when retrying.
|
|
293
|
+
* @description Permanently close source sessions and attach them to this primary. Sources cannot be reopened or replied to. All replies use the primary channel and recipients. Requires merge-sessions:write and OpenCX or Zendesk ticketing. Reuse idempotencyKey with the identical request when retrying.
|
|
294
294
|
*/
|
|
295
295
|
post: operations["mergeSessions"];
|
|
296
296
|
delete?: never;
|
|
@@ -6155,6 +6155,11 @@ export interface paths {
|
|
|
6155
6155
|
first_reply_target_seconds: number | null;
|
|
6156
6156
|
next_reply_target_seconds: number | null;
|
|
6157
6157
|
resolution_target_seconds: number | null;
|
|
6158
|
+
answer_target_seconds: number | null;
|
|
6159
|
+
answer_target_percent: number | null;
|
|
6160
|
+
/** @enum {string} */
|
|
6161
|
+
answer_count_mode: "all_offered" | "answered_only";
|
|
6162
|
+
answer_short_abandon_seconds: number | null;
|
|
6158
6163
|
created_at: string;
|
|
6159
6164
|
updated_at: string;
|
|
6160
6165
|
}[];
|
|
@@ -6202,6 +6207,11 @@ export interface paths {
|
|
|
6202
6207
|
first_reply_target_seconds: number | null;
|
|
6203
6208
|
next_reply_target_seconds: number | null;
|
|
6204
6209
|
resolution_target_seconds: number | null;
|
|
6210
|
+
answer_target_seconds: number | null;
|
|
6211
|
+
answer_target_percent: number | null;
|
|
6212
|
+
/** @enum {string} */
|
|
6213
|
+
answer_count_mode: "all_offered" | "answered_only";
|
|
6214
|
+
answer_short_abandon_seconds: number | null;
|
|
6205
6215
|
created_at: string;
|
|
6206
6216
|
updated_at: string;
|
|
6207
6217
|
};
|
|
@@ -6259,6 +6269,11 @@ export interface paths {
|
|
|
6259
6269
|
first_reply_target_seconds: number | null;
|
|
6260
6270
|
next_reply_target_seconds: number | null;
|
|
6261
6271
|
resolution_target_seconds: number | null;
|
|
6272
|
+
answer_target_seconds: number | null;
|
|
6273
|
+
answer_target_percent: number | null;
|
|
6274
|
+
/** @enum {string} */
|
|
6275
|
+
answer_count_mode: "all_offered" | "answered_only";
|
|
6276
|
+
answer_short_abandon_seconds: number | null;
|
|
6262
6277
|
created_at: string;
|
|
6263
6278
|
updated_at: string;
|
|
6264
6279
|
};
|
|
@@ -6307,6 +6322,11 @@ export interface paths {
|
|
|
6307
6322
|
first_reply_target_seconds: number | null;
|
|
6308
6323
|
next_reply_target_seconds: number | null;
|
|
6309
6324
|
resolution_target_seconds: number | null;
|
|
6325
|
+
answer_target_seconds: number | null;
|
|
6326
|
+
answer_target_percent: number | null;
|
|
6327
|
+
/** @enum {string} */
|
|
6328
|
+
answer_count_mode: "all_offered" | "answered_only";
|
|
6329
|
+
answer_short_abandon_seconds: number | null;
|
|
6310
6330
|
created_at: string;
|
|
6311
6331
|
updated_at: string;
|
|
6312
6332
|
};
|
|
@@ -6368,7 +6388,7 @@ export interface paths {
|
|
|
6368
6388
|
};
|
|
6369
6389
|
/**
|
|
6370
6390
|
* Get SLA analytics overview
|
|
6371
|
-
* @description Get SLA compliance rates, coverage rate, and response/resolution time percentiles for a date range.
|
|
6391
|
+
* @description Get SLA compliance rates, coverage rate, and response/resolution time percentiles for a date range. Reports may briefly lag recent changes; historical ranges have no fixed maximum span. Oversized, busy, or unavailable reports return explicit errors.
|
|
6372
6392
|
*/
|
|
6373
6393
|
get: operations["getSlaAnalyticsOverview"];
|
|
6374
6394
|
put?: never;
|
|
@@ -6439,6 +6459,66 @@ export interface paths {
|
|
|
6439
6459
|
patch?: never;
|
|
6440
6460
|
trace?: never;
|
|
6441
6461
|
};
|
|
6462
|
+
"/sla/analytics/phone": {
|
|
6463
|
+
parameters: {
|
|
6464
|
+
query?: never;
|
|
6465
|
+
header?: never;
|
|
6466
|
+
path?: never;
|
|
6467
|
+
cookie?: never;
|
|
6468
|
+
};
|
|
6469
|
+
/**
|
|
6470
|
+
* Get phone answer-time analytics
|
|
6471
|
+
* @description Get how quickly callers waiting for an agent were answered: answer-time compliance, outcomes (answered, hung up, timed out, no agents, voicemail) and answer-time percentiles for a date range.
|
|
6472
|
+
*/
|
|
6473
|
+
get: operations["getPhoneAnswerAnalyticsOverview"];
|
|
6474
|
+
put?: never;
|
|
6475
|
+
post?: never;
|
|
6476
|
+
delete?: never;
|
|
6477
|
+
options?: never;
|
|
6478
|
+
head?: never;
|
|
6479
|
+
patch?: never;
|
|
6480
|
+
trace?: never;
|
|
6481
|
+
};
|
|
6482
|
+
"/sla/analytics/phone/breakdown": {
|
|
6483
|
+
parameters: {
|
|
6484
|
+
query?: never;
|
|
6485
|
+
header?: never;
|
|
6486
|
+
path?: never;
|
|
6487
|
+
cookie?: never;
|
|
6488
|
+
};
|
|
6489
|
+
/**
|
|
6490
|
+
* Get phone answer-time analytics breakdown
|
|
6491
|
+
* @description Get phone answer-time compliance and outcomes grouped by team, policy, day, or hour of day.
|
|
6492
|
+
*/
|
|
6493
|
+
get: operations["getPhoneAnswerAnalyticsBreakdown"];
|
|
6494
|
+
put?: never;
|
|
6495
|
+
post?: never;
|
|
6496
|
+
delete?: never;
|
|
6497
|
+
options?: never;
|
|
6498
|
+
head?: never;
|
|
6499
|
+
patch?: never;
|
|
6500
|
+
trace?: never;
|
|
6501
|
+
};
|
|
6502
|
+
"/sla/analytics/phone/agents": {
|
|
6503
|
+
parameters: {
|
|
6504
|
+
query?: never;
|
|
6505
|
+
header?: never;
|
|
6506
|
+
path?: never;
|
|
6507
|
+
cookie?: never;
|
|
6508
|
+
};
|
|
6509
|
+
/**
|
|
6510
|
+
* Get phone answer analytics per agent
|
|
6511
|
+
* @description Get each agent's rings: how many they were offered, answered, declined and missed, their answer rate and how quickly they answered once rung.
|
|
6512
|
+
*/
|
|
6513
|
+
get: operations["getPhoneAnswerAnalyticsAgents"];
|
|
6514
|
+
put?: never;
|
|
6515
|
+
post?: never;
|
|
6516
|
+
delete?: never;
|
|
6517
|
+
options?: never;
|
|
6518
|
+
head?: never;
|
|
6519
|
+
patch?: never;
|
|
6520
|
+
trace?: never;
|
|
6521
|
+
};
|
|
6442
6522
|
"/reports/query": {
|
|
6443
6523
|
parameters: {
|
|
6444
6524
|
query?: never;
|
|
@@ -7007,8 +7087,6 @@ export interface components {
|
|
|
7007
7087
|
schemas: {
|
|
7008
7088
|
/** @enum {string} */
|
|
7009
7089
|
SessionChannel: "web" | "email" | "phone_voice" | "slack" | "sms" | "whatsapp" | "instagram" | "messenger" | "api" | "web_voice" | "twitter" | "twitter_mentions" | "app_review" | "internal";
|
|
7010
|
-
/** @enum {string} */
|
|
7011
|
-
MessageOptionType: "text" | "workflow";
|
|
7012
7090
|
MergeSessionsInput: {
|
|
7013
7091
|
/** Format: uuid */
|
|
7014
7092
|
idempotencyKey?: string;
|
|
@@ -7111,6 +7189,8 @@ export interface components {
|
|
|
7111
7189
|
value?: string;
|
|
7112
7190
|
}[];
|
|
7113
7191
|
};
|
|
7192
|
+
/** @enum {string} */
|
|
7193
|
+
MessageOptionType: "text" | "workflow";
|
|
7114
7194
|
SalesforceReplyTemplateRules: {
|
|
7115
7195
|
conditions: ({
|
|
7116
7196
|
/** @constant */
|
|
@@ -7184,6 +7264,17 @@ export interface components {
|
|
|
7184
7264
|
first_reply_target_seconds?: number | null;
|
|
7185
7265
|
next_reply_target_seconds?: number | null;
|
|
7186
7266
|
resolution_target_seconds?: number | null;
|
|
7267
|
+
/** @description Phone: callers waiting for a human must be answered within this many seconds (office hours only, when the policy has them). */
|
|
7268
|
+
answer_target_seconds?: number | null;
|
|
7269
|
+
/** @description Phone: goal for the share of calls answered within the target. */
|
|
7270
|
+
answer_target_percent?: number | null;
|
|
7271
|
+
/**
|
|
7272
|
+
* @description Phone: all_offered counts callers who were never answered as missed; answered_only grades answered calls only.
|
|
7273
|
+
* @enum {string}
|
|
7274
|
+
*/
|
|
7275
|
+
answer_count_mode?: "all_offered" | "answered_only";
|
|
7276
|
+
/** @description Phone: leave out callers who hang up within this many seconds of waiting. */
|
|
7277
|
+
answer_short_abandon_seconds?: number | null;
|
|
7187
7278
|
};
|
|
7188
7279
|
UpdateSlaPolicyDto: {
|
|
7189
7280
|
name?: string;
|
|
@@ -7191,6 +7282,17 @@ export interface components {
|
|
|
7191
7282
|
first_reply_target_seconds?: number | null;
|
|
7192
7283
|
next_reply_target_seconds?: number | null;
|
|
7193
7284
|
resolution_target_seconds?: number | null;
|
|
7285
|
+
/** @description Phone: callers waiting for a human must be answered within this many seconds (office hours only, when the policy has them). */
|
|
7286
|
+
answer_target_seconds?: number | null;
|
|
7287
|
+
/** @description Phone: goal for the share of calls answered within the target. */
|
|
7288
|
+
answer_target_percent?: number | null;
|
|
7289
|
+
/**
|
|
7290
|
+
* @description Phone: all_offered counts callers who were never answered as missed; answered_only grades answered calls only.
|
|
7291
|
+
* @enum {string}
|
|
7292
|
+
*/
|
|
7293
|
+
answer_count_mode?: "all_offered" | "answered_only";
|
|
7294
|
+
/** @description Phone: leave out callers who hang up within this many seconds of waiting. */
|
|
7295
|
+
answer_short_abandon_seconds?: number | null;
|
|
7194
7296
|
};
|
|
7195
7297
|
CreateVocCategoryDto: {
|
|
7196
7298
|
name: string;
|
|
@@ -7432,6 +7534,8 @@ export interface components {
|
|
|
7432
7534
|
telephony_queue_wait_seconds?: number;
|
|
7433
7535
|
/** @enum {string} */
|
|
7434
7536
|
telephony_distribution?: "fewest_answered_today" | "longest_available";
|
|
7537
|
+
/** @description SLA policy whose phone answer-time target grades calls waiting in this team. Null uses the organization default. */
|
|
7538
|
+
phone_sla_policy_id?: string | null;
|
|
7435
7539
|
/** @description Seconds between automatic assignments to the same agent under the least-busy strategy: 0 turns pacing off, otherwise 15 to 3600. */
|
|
7436
7540
|
auto_assign_interval_seconds?: number;
|
|
7437
7541
|
};
|
|
@@ -7539,6 +7643,11 @@ export interface components {
|
|
|
7539
7643
|
};
|
|
7540
7644
|
/** @description Extra instructions for the AI agent, scoped to this call only. Appended to the agent instructions in a clearly-scoped block — they complement, never replace, the agent prompt. */
|
|
7541
7645
|
extraInstructions?: string;
|
|
7646
|
+
/**
|
|
7647
|
+
* Format: uuid
|
|
7648
|
+
* @description Open the call as a sub-session of this session. The call session then shows under it in the inbox and carries it as the parent in Call Finished workflows. The session must belong to the same organization; otherwise the request fails with `parent_session_not_found`.
|
|
7649
|
+
*/
|
|
7650
|
+
parentSessionId?: string;
|
|
7542
7651
|
};
|
|
7543
7652
|
RedactMessageDto: {
|
|
7544
7653
|
/** @description The message UUID to be redacted */
|
|
@@ -9373,7 +9482,7 @@ export interface components {
|
|
|
9373
9482
|
recording_enabled?: boolean;
|
|
9374
9483
|
};
|
|
9375
9484
|
SetPhoneAgentCallerNumberInput: {
|
|
9376
|
-
/** @description A phone number verified
|
|
9485
|
+
/** @description A phone number verified in your workspace (E.164), or null to clear the caller ID. Clears the agent’s pool selection and keeps its assigned SIP trunk. */
|
|
9377
9486
|
caller_number: string | null;
|
|
9378
9487
|
};
|
|
9379
9488
|
WriteSecretInputDto: {
|
|
@@ -9434,6 +9543,8 @@ export interface components {
|
|
|
9434
9543
|
telephony_queue_wait_seconds?: number;
|
|
9435
9544
|
/** @enum {string} */
|
|
9436
9545
|
telephony_distribution?: "fewest_answered_today" | "longest_available";
|
|
9546
|
+
/** @description SLA policy whose phone answer-time target grades calls waiting in this team. Null uses the organization default. */
|
|
9547
|
+
phone_sla_policy_id?: string | null;
|
|
9437
9548
|
/** @description Seconds between automatic assignments to the same agent under the least-busy strategy: 0 turns pacing off, otherwise 15 to 3600. */
|
|
9438
9549
|
auto_assign_interval_seconds?: number;
|
|
9439
9550
|
};
|
|
@@ -9777,6 +9888,18 @@ export interface components {
|
|
|
9777
9888
|
created_by_name: string | null;
|
|
9778
9889
|
created_by_email: string | null;
|
|
9779
9890
|
};
|
|
9891
|
+
MergeSessionsResult: {
|
|
9892
|
+
/** Format: uuid */
|
|
9893
|
+
mergeId: string;
|
|
9894
|
+
/** Format: uuid */
|
|
9895
|
+
primarySessionId: string;
|
|
9896
|
+
sources: {
|
|
9897
|
+
id: string;
|
|
9898
|
+
ticket_number: number;
|
|
9899
|
+
/** @enum {string} */
|
|
9900
|
+
main_status: "closed_resolved" | "closed_unresolved" | "open";
|
|
9901
|
+
}[];
|
|
9902
|
+
};
|
|
9780
9903
|
ChatAttachmentDto: {
|
|
9781
9904
|
id: string;
|
|
9782
9905
|
name: string;
|
|
@@ -10493,18 +10616,6 @@ export interface components {
|
|
|
10493
10616
|
phone_call_id?: string | null;
|
|
10494
10617
|
phone_call?: components["schemas"]["PhoneCallDto"] | null;
|
|
10495
10618
|
};
|
|
10496
|
-
MergeSessionsResult: {
|
|
10497
|
-
/** Format: uuid */
|
|
10498
|
-
mergeId: string;
|
|
10499
|
-
/** Format: uuid */
|
|
10500
|
-
primarySessionId: string;
|
|
10501
|
-
sources: {
|
|
10502
|
-
id: string;
|
|
10503
|
-
ticket_number: number;
|
|
10504
|
-
/** @enum {string} */
|
|
10505
|
-
main_status: "closed_resolved" | "closed_unresolved" | "open";
|
|
10506
|
-
}[];
|
|
10507
|
-
};
|
|
10508
10619
|
SalesforceAiReplyTemplateDto: {
|
|
10509
10620
|
/** Format: uuid */
|
|
10510
10621
|
id: string;
|
|
@@ -11093,6 +11204,7 @@ export interface components {
|
|
|
11093
11204
|
telephony_queue_wait_seconds: number;
|
|
11094
11205
|
/** @enum {string} */
|
|
11095
11206
|
telephony_distribution: "fewest_answered_today" | "longest_available";
|
|
11207
|
+
phone_sla_policy_id: string | null;
|
|
11096
11208
|
auto_assign_interval_seconds: number;
|
|
11097
11209
|
zendesk_group_id: string | null;
|
|
11098
11210
|
zendesk_group_channels: components["schemas"]["SessionChannel"][] | null;
|
|
@@ -11746,6 +11858,18 @@ export interface components {
|
|
|
11746
11858
|
session_id: string | null;
|
|
11747
11859
|
session_ticket_number: number | null;
|
|
11748
11860
|
reason?: string;
|
|
11861
|
+
/** @description Progress within a phone step using a number pool. Absent for other steps; state remains the compatible overall step status. */
|
|
11862
|
+
number_pool?: {
|
|
11863
|
+
/** @enum {string} */
|
|
11864
|
+
status: "calling" | "retry_scheduled" | "answered" | "exhausted" | "paused" | "stopped";
|
|
11865
|
+
/** @description Number of call attempts started for this step. */
|
|
11866
|
+
attempts: number;
|
|
11867
|
+
max_attempts: number;
|
|
11868
|
+
/** @description Caller number selected for the latest pool attempt. While waiting to retry, this remains the previous attempt’s number until the next attempt starts. */
|
|
11869
|
+
caller_number?: string;
|
|
11870
|
+
/** @description Earliest time the next attempt can start; null when no retry is scheduled. */
|
|
11871
|
+
next_retry_at: string | null;
|
|
11872
|
+
};
|
|
11749
11873
|
};
|
|
11750
11874
|
render: {
|
|
11751
11875
|
/** @constant */
|
|
@@ -11862,6 +11986,18 @@ export interface components {
|
|
|
11862
11986
|
session_id: string | null;
|
|
11863
11987
|
session_ticket_number: number | null;
|
|
11864
11988
|
reason?: string;
|
|
11989
|
+
/** @description Progress within a phone step using a number pool. Absent for other steps; state remains the compatible overall step status. */
|
|
11990
|
+
number_pool?: {
|
|
11991
|
+
/** @enum {string} */
|
|
11992
|
+
status: "calling" | "retry_scheduled" | "answered" | "exhausted" | "paused" | "stopped";
|
|
11993
|
+
/** @description Number of call attempts started for this step. */
|
|
11994
|
+
attempts: number;
|
|
11995
|
+
max_attempts: number;
|
|
11996
|
+
/** @description Caller number selected for the latest pool attempt. While waiting to retry, this remains the previous attempt’s number until the next attempt starts. */
|
|
11997
|
+
caller_number?: string;
|
|
11998
|
+
/** @description Earliest time the next attempt can start; null when no retry is scheduled. */
|
|
11999
|
+
next_retry_at: string | null;
|
|
12000
|
+
};
|
|
11865
12001
|
}[];
|
|
11866
12002
|
personalized_steps: number;
|
|
11867
12003
|
/** Format: date-time */
|
|
@@ -11914,6 +12050,18 @@ export interface components {
|
|
|
11914
12050
|
session_id: string | null;
|
|
11915
12051
|
session_ticket_number: number | null;
|
|
11916
12052
|
reason?: string;
|
|
12053
|
+
/** @description Progress within a phone step using a number pool. Absent for other steps; state remains the compatible overall step status. */
|
|
12054
|
+
number_pool?: {
|
|
12055
|
+
/** @enum {string} */
|
|
12056
|
+
status: "calling" | "retry_scheduled" | "answered" | "exhausted" | "paused" | "stopped";
|
|
12057
|
+
/** @description Number of call attempts started for this step. */
|
|
12058
|
+
attempts: number;
|
|
12059
|
+
max_attempts: number;
|
|
12060
|
+
/** @description Caller number selected for the latest pool attempt. While waiting to retry, this remains the previous attempt’s number until the next attempt starts. */
|
|
12061
|
+
caller_number?: string;
|
|
12062
|
+
/** @description Earliest time the next attempt can start; null when no retry is scheduled. */
|
|
12063
|
+
next_retry_at: string | null;
|
|
12064
|
+
};
|
|
11917
12065
|
}[];
|
|
11918
12066
|
personalized_steps: number;
|
|
11919
12067
|
/** Format: date-time */
|
|
@@ -12714,11 +12862,24 @@ export interface components {
|
|
|
12714
12862
|
*/
|
|
12715
12863
|
agent_id: string;
|
|
12716
12864
|
name: string | null;
|
|
12865
|
+
/** @description The calling pool configured on this agent, including its sequence retry policy. */
|
|
12866
|
+
number_pool?: {
|
|
12867
|
+
/**
|
|
12868
|
+
* Format: uuid
|
|
12869
|
+
* @description The number pool this agent uses for outbound calls. Must belong to the same workspace.
|
|
12870
|
+
*/
|
|
12871
|
+
pool_id: string;
|
|
12872
|
+
/** @description Maximum calls per sequence phone step, each using a different available number. Defaults to 3. Calls stop sooner if no unused numbers remain in the pool. */
|
|
12873
|
+
max_attempts?: number;
|
|
12874
|
+
/** @description Minutes after an unsuccessful call finishes before the next attempt. Defaults to 2 and respects the sequence calling window. */
|
|
12875
|
+
retry_delay_minutes?: number;
|
|
12876
|
+
name: string;
|
|
12877
|
+
} | null;
|
|
12717
12878
|
/** @description The caller ID people see, when the agent presents one. */
|
|
12718
12879
|
caller_number: string | null;
|
|
12719
12880
|
eligible: boolean;
|
|
12720
12881
|
/** @enum {string} */
|
|
12721
|
-
ineligible_reason?: "not_livekit" | "foreign_trunk" | "no_caller_number" | "no_hosted_trunk";
|
|
12882
|
+
ineligible_reason?: "not_livekit" | "foreign_trunk" | "no_caller_number" | "no_hosted_trunk" | "number_pool_unavailable";
|
|
12722
12883
|
first_message: string | null;
|
|
12723
12884
|
persona: string[];
|
|
12724
12885
|
}[];
|
|
@@ -16186,6 +16347,86 @@ export interface components {
|
|
|
16186
16347
|
message: string;
|
|
16187
16348
|
error?: string;
|
|
16188
16349
|
};
|
|
16350
|
+
PhoneAnswerOverviewResponseDto: {
|
|
16351
|
+
/** @description Times a caller waited for an agent (finished waits only). */
|
|
16352
|
+
waits: number;
|
|
16353
|
+
answered: number;
|
|
16354
|
+
caller_hung_up: number;
|
|
16355
|
+
timed_out: number;
|
|
16356
|
+
no_agents: number;
|
|
16357
|
+
voicemail: number;
|
|
16358
|
+
/** @description Waits ended by a call failure on our side. Never graded, not an abandon. */
|
|
16359
|
+
failed: number;
|
|
16360
|
+
/** @description Answered within the target. */
|
|
16361
|
+
met: number;
|
|
16362
|
+
missed: number;
|
|
16363
|
+
/** @description Left out of the SLA: short abandons, and unanswered waits under answered_only. */
|
|
16364
|
+
excluded: number;
|
|
16365
|
+
/** @description Waits not graded: no phone answer-time policy applied, or the call failed. */
|
|
16366
|
+
ungraded: number;
|
|
16367
|
+
/** @description met / (met + missed), 0–1. */
|
|
16368
|
+
compliance_rate: number;
|
|
16369
|
+
/** @description caller_hung_up / waits, 0–1. */
|
|
16370
|
+
abandon_rate: number;
|
|
16371
|
+
/** @description Average wait of answered callers. */
|
|
16372
|
+
avg_answer_seconds: number | null;
|
|
16373
|
+
answer_seconds_p50: number | null;
|
|
16374
|
+
answer_seconds_p90: number | null;
|
|
16375
|
+
answer_seconds_p95: number | null;
|
|
16376
|
+
/** @description The answer-time goal (%) when every graded wait in range used the same policy. */
|
|
16377
|
+
target_percent: number | null;
|
|
16378
|
+
};
|
|
16379
|
+
PhoneAnswerBreakdownResponseDto: {
|
|
16380
|
+
/** @description Times a caller waited for an agent (finished waits only). */
|
|
16381
|
+
waits: number;
|
|
16382
|
+
answered: number;
|
|
16383
|
+
caller_hung_up: number;
|
|
16384
|
+
timed_out: number;
|
|
16385
|
+
no_agents: number;
|
|
16386
|
+
voicemail: number;
|
|
16387
|
+
/** @description Waits ended by a call failure on our side. Never graded, not an abandon. */
|
|
16388
|
+
failed: number;
|
|
16389
|
+
/** @description Answered within the target. */
|
|
16390
|
+
met: number;
|
|
16391
|
+
missed: number;
|
|
16392
|
+
/** @description Left out of the SLA: short abandons, and unanswered waits under answered_only. */
|
|
16393
|
+
excluded: number;
|
|
16394
|
+
/** @description Waits not graded: no phone answer-time policy applied, or the call failed. */
|
|
16395
|
+
ungraded: number;
|
|
16396
|
+
/** @description met / (met + missed), 0–1. */
|
|
16397
|
+
compliance_rate: number;
|
|
16398
|
+
/** @description caller_hung_up / waits, 0–1. */
|
|
16399
|
+
abandon_rate: number;
|
|
16400
|
+
/** @description Average wait of answered callers. */
|
|
16401
|
+
avg_answer_seconds: number | null;
|
|
16402
|
+
answer_seconds_p50: number | null;
|
|
16403
|
+
answer_seconds_p90: number | null;
|
|
16404
|
+
answer_seconds_p95: number | null;
|
|
16405
|
+
grouping: {
|
|
16406
|
+
/** @enum {string} */
|
|
16407
|
+
type: "team" | "policy" | "day" | "hour";
|
|
16408
|
+
id: string | number | null;
|
|
16409
|
+
name: string;
|
|
16410
|
+
};
|
|
16411
|
+
}[];
|
|
16412
|
+
PhoneAnswerAgentsResponseDto: {
|
|
16413
|
+
user_id: number;
|
|
16414
|
+
name: string;
|
|
16415
|
+
/** @description Rings this agent received. */
|
|
16416
|
+
offered: number;
|
|
16417
|
+
answered: number;
|
|
16418
|
+
declined: number;
|
|
16419
|
+
/** @description Rings that ran out on this agent. */
|
|
16420
|
+
missed: number;
|
|
16421
|
+
/** @description Rings ended by someone else answering or the caller leaving. */
|
|
16422
|
+
canceled: number;
|
|
16423
|
+
/** @description answered / (answered + declined + missed), 0–1. */
|
|
16424
|
+
answer_rate: number;
|
|
16425
|
+
/** @description From this agent’s ring to their accept. */
|
|
16426
|
+
avg_seconds_to_answer: number | null;
|
|
16427
|
+
/** @description Answers given within the target, timed from this agent’s own ring. */
|
|
16428
|
+
answered_within_target: number;
|
|
16429
|
+
}[];
|
|
16189
16430
|
RunReportQueryResponseDto: {
|
|
16190
16431
|
rows: {
|
|
16191
16432
|
[key: string]: unknown;
|
|
@@ -30138,6 +30379,122 @@ export interface operations {
|
|
|
30138
30379
|
};
|
|
30139
30380
|
};
|
|
30140
30381
|
};
|
|
30382
|
+
getPhoneAnswerAnalyticsOverview: {
|
|
30383
|
+
parameters: {
|
|
30384
|
+
query: {
|
|
30385
|
+
/** @description Start of the range, on when callers started waiting. */
|
|
30386
|
+
from: unknown;
|
|
30387
|
+
/** @description End of the range, on when callers started waiting. */
|
|
30388
|
+
to: unknown;
|
|
30389
|
+
/** @description IANA timezone for day and hour buckets. */
|
|
30390
|
+
timezone?: string;
|
|
30391
|
+
team_id?: string;
|
|
30392
|
+
policy_id?: string;
|
|
30393
|
+
};
|
|
30394
|
+
header?: never;
|
|
30395
|
+
path?: never;
|
|
30396
|
+
cookie?: never;
|
|
30397
|
+
};
|
|
30398
|
+
requestBody?: never;
|
|
30399
|
+
responses: {
|
|
30400
|
+
/** @description Default Response */
|
|
30401
|
+
200: {
|
|
30402
|
+
headers: {
|
|
30403
|
+
[name: string]: unknown;
|
|
30404
|
+
};
|
|
30405
|
+
content: {
|
|
30406
|
+
"application/json": components["schemas"]["PhoneAnswerOverviewResponseDto"];
|
|
30407
|
+
};
|
|
30408
|
+
};
|
|
30409
|
+
/** @description Internal Server Error */
|
|
30410
|
+
500: {
|
|
30411
|
+
headers: {
|
|
30412
|
+
[name: string]: unknown;
|
|
30413
|
+
};
|
|
30414
|
+
content: {
|
|
30415
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
30416
|
+
};
|
|
30417
|
+
};
|
|
30418
|
+
};
|
|
30419
|
+
};
|
|
30420
|
+
getPhoneAnswerAnalyticsBreakdown: {
|
|
30421
|
+
parameters: {
|
|
30422
|
+
query: {
|
|
30423
|
+
/** @description Start of the range, on when callers started waiting. */
|
|
30424
|
+
from: unknown;
|
|
30425
|
+
/** @description End of the range, on when callers started waiting. */
|
|
30426
|
+
to: unknown;
|
|
30427
|
+
/** @description IANA timezone for day and hour buckets. */
|
|
30428
|
+
timezone?: string;
|
|
30429
|
+
team_id?: string;
|
|
30430
|
+
policy_id?: string;
|
|
30431
|
+
/** @description day = calendar day, hour = hour of day (0–23) across the whole range, both in `timezone`. */
|
|
30432
|
+
group_by: "team" | "policy" | "day" | "hour";
|
|
30433
|
+
};
|
|
30434
|
+
header?: never;
|
|
30435
|
+
path?: never;
|
|
30436
|
+
cookie?: never;
|
|
30437
|
+
};
|
|
30438
|
+
requestBody?: never;
|
|
30439
|
+
responses: {
|
|
30440
|
+
/** @description Default Response */
|
|
30441
|
+
200: {
|
|
30442
|
+
headers: {
|
|
30443
|
+
[name: string]: unknown;
|
|
30444
|
+
};
|
|
30445
|
+
content: {
|
|
30446
|
+
"application/json": components["schemas"]["PhoneAnswerBreakdownResponseDto"];
|
|
30447
|
+
};
|
|
30448
|
+
};
|
|
30449
|
+
/** @description Internal Server Error */
|
|
30450
|
+
500: {
|
|
30451
|
+
headers: {
|
|
30452
|
+
[name: string]: unknown;
|
|
30453
|
+
};
|
|
30454
|
+
content: {
|
|
30455
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
30456
|
+
};
|
|
30457
|
+
};
|
|
30458
|
+
};
|
|
30459
|
+
};
|
|
30460
|
+
getPhoneAnswerAnalyticsAgents: {
|
|
30461
|
+
parameters: {
|
|
30462
|
+
query: {
|
|
30463
|
+
/** @description Start of the range, on when callers started waiting. */
|
|
30464
|
+
from: unknown;
|
|
30465
|
+
/** @description End of the range, on when callers started waiting. */
|
|
30466
|
+
to: unknown;
|
|
30467
|
+
/** @description IANA timezone for day and hour buckets. */
|
|
30468
|
+
timezone?: string;
|
|
30469
|
+
team_id?: string;
|
|
30470
|
+
policy_id?: string;
|
|
30471
|
+
};
|
|
30472
|
+
header?: never;
|
|
30473
|
+
path?: never;
|
|
30474
|
+
cookie?: never;
|
|
30475
|
+
};
|
|
30476
|
+
requestBody?: never;
|
|
30477
|
+
responses: {
|
|
30478
|
+
/** @description Default Response */
|
|
30479
|
+
200: {
|
|
30480
|
+
headers: {
|
|
30481
|
+
[name: string]: unknown;
|
|
30482
|
+
};
|
|
30483
|
+
content: {
|
|
30484
|
+
"application/json": components["schemas"]["PhoneAnswerAgentsResponseDto"];
|
|
30485
|
+
};
|
|
30486
|
+
};
|
|
30487
|
+
/** @description Internal Server Error */
|
|
30488
|
+
500: {
|
|
30489
|
+
headers: {
|
|
30490
|
+
[name: string]: unknown;
|
|
30491
|
+
};
|
|
30492
|
+
content: {
|
|
30493
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
30494
|
+
};
|
|
30495
|
+
};
|
|
30496
|
+
};
|
|
30497
|
+
};
|
|
30141
30498
|
runReportQuery: {
|
|
30142
30499
|
parameters: {
|
|
30143
30500
|
query?: never;
|