@opencx/mcp 1.11.46 → 1.11.63
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/schema.d.ts +548 -12
- package/dist/schema.d.ts.map +1 -1
- package/dist/tools/insights.d.ts.map +1 -1
- package/dist/tools/insights.js +97 -8
- package/dist/tools/insights.js.map +1 -1
- package/dist/tools/training.d.ts.map +1 -1
- package/dist/tools/training.js +36 -4
- package/dist/tools/training.js.map +1 -1
- package/package.json +3 -2
package/dist/schema.d.ts
CHANGED
|
@@ -1082,10 +1082,12 @@ export interface paths {
|
|
|
1082
1082
|
put?: never;
|
|
1083
1083
|
/**
|
|
1084
1084
|
* Send emails
|
|
1085
|
-
* @description
|
|
1085
|
+
* @description
|
|
1086
|
+
* Send emails to multiple contacts, possibly with a time delay.
|
|
1086
1087
|
*
|
|
1087
1088
|
* To send emails using the API, you must first verify the domain you want to
|
|
1088
1089
|
* send emails from. You can add and verify custom domains in the settings.
|
|
1090
|
+
*
|
|
1089
1091
|
*/
|
|
1090
1092
|
post: operations["sendEmail"];
|
|
1091
1093
|
delete?: never;
|
|
@@ -1103,12 +1105,16 @@ export interface paths {
|
|
|
1103
1105
|
};
|
|
1104
1106
|
/**
|
|
1105
1107
|
* List all custom domains
|
|
1106
|
-
* @description
|
|
1108
|
+
* @description
|
|
1109
|
+
* List all custom domains for your organization, including their verification status and DNS records.
|
|
1110
|
+
*
|
|
1107
1111
|
*/
|
|
1108
1112
|
get: operations["listCustomDomains"];
|
|
1109
1113
|
/**
|
|
1110
1114
|
* Add or update a custom domain for email sending
|
|
1111
|
-
* @description
|
|
1115
|
+
* @description
|
|
1116
|
+
* Add or update a custom domain for sending emails. After adding a domain, you'll need to verify it by adding the provided DNS records.
|
|
1117
|
+
*
|
|
1112
1118
|
*/
|
|
1113
1119
|
put: operations["putCustomDomain"];
|
|
1114
1120
|
post?: never;
|
|
@@ -1133,7 +1139,9 @@ export interface paths {
|
|
|
1133
1139
|
head?: never;
|
|
1134
1140
|
/**
|
|
1135
1141
|
* Start verification process for a custom domain
|
|
1136
|
-
* @description
|
|
1142
|
+
* @description
|
|
1143
|
+
* Start the verification process for a custom domain. Make sure you've added the DNS records before starting verification.
|
|
1144
|
+
*
|
|
1137
1145
|
*/
|
|
1138
1146
|
patch: operations["startVerifyingCustomDomain"];
|
|
1139
1147
|
trace?: never;
|
|
@@ -1150,7 +1158,9 @@ export interface paths {
|
|
|
1150
1158
|
post?: never;
|
|
1151
1159
|
/**
|
|
1152
1160
|
* Delete a custom domain
|
|
1153
|
-
* @description
|
|
1161
|
+
* @description
|
|
1162
|
+
* Delete a custom domain from your organization. This will prevent you from sending emails from this domain.
|
|
1163
|
+
*
|
|
1154
1164
|
*/
|
|
1155
1165
|
delete: operations["deleteCustomDomain"];
|
|
1156
1166
|
options?: never;
|
|
@@ -2006,10 +2016,12 @@ export interface paths {
|
|
|
2006
2016
|
put?: never;
|
|
2007
2017
|
/**
|
|
2008
2018
|
* Add contacts to a continuous sequence
|
|
2009
|
-
* @description
|
|
2019
|
+
* @description
|
|
2020
|
+
* Add contacts to a continuous sequence (`is_continuous` property of the sequence must be `true`).
|
|
2010
2021
|
* Contacts will *not* be added to the sequence if the sequence's `filter` does not apply to the contact.
|
|
2011
2022
|
*
|
|
2012
2023
|
* Any contacts added will automatically be added to contacts if they don't already exist.
|
|
2024
|
+
*
|
|
2013
2025
|
*/
|
|
2014
2026
|
post: operations["addContactsToSequence"];
|
|
2015
2027
|
delete?: never;
|
|
@@ -2568,6 +2580,50 @@ export interface paths {
|
|
|
2568
2580
|
*/
|
|
2569
2581
|
get: operations["getCategories"];
|
|
2570
2582
|
put?: never;
|
|
2583
|
+
/**
|
|
2584
|
+
* Create a category
|
|
2585
|
+
* @description Create a new user-defined category.
|
|
2586
|
+
*/
|
|
2587
|
+
post: operations["createCategory"];
|
|
2588
|
+
delete?: never;
|
|
2589
|
+
options?: never;
|
|
2590
|
+
head?: never;
|
|
2591
|
+
patch?: never;
|
|
2592
|
+
trace?: never;
|
|
2593
|
+
};
|
|
2594
|
+
"/insights/categories/usage": {
|
|
2595
|
+
parameters: {
|
|
2596
|
+
query?: never;
|
|
2597
|
+
header?: never;
|
|
2598
|
+
path?: never;
|
|
2599
|
+
cookie?: never;
|
|
2600
|
+
};
|
|
2601
|
+
/**
|
|
2602
|
+
* Get category usage
|
|
2603
|
+
* @description Active category counts by type, the total, and the cap.
|
|
2604
|
+
*/
|
|
2605
|
+
get: operations["getCategoryUsage"];
|
|
2606
|
+
put?: never;
|
|
2607
|
+
post?: never;
|
|
2608
|
+
delete?: never;
|
|
2609
|
+
options?: never;
|
|
2610
|
+
head?: never;
|
|
2611
|
+
patch?: never;
|
|
2612
|
+
trace?: never;
|
|
2613
|
+
};
|
|
2614
|
+
"/insights/categories/{categoryId}": {
|
|
2615
|
+
parameters: {
|
|
2616
|
+
query?: never;
|
|
2617
|
+
header?: never;
|
|
2618
|
+
path?: never;
|
|
2619
|
+
cookie?: never;
|
|
2620
|
+
};
|
|
2621
|
+
get?: never;
|
|
2622
|
+
/**
|
|
2623
|
+
* Update a category
|
|
2624
|
+
* @description Rename or re-describe a category. Suggested categories must be approved first.
|
|
2625
|
+
*/
|
|
2626
|
+
put: operations["updateCategory"];
|
|
2571
2627
|
post?: never;
|
|
2572
2628
|
delete?: never;
|
|
2573
2629
|
options?: never;
|
|
@@ -2575,6 +2631,46 @@ export interface paths {
|
|
|
2575
2631
|
patch?: never;
|
|
2576
2632
|
trace?: never;
|
|
2577
2633
|
};
|
|
2634
|
+
"/insights/categories/approve": {
|
|
2635
|
+
parameters: {
|
|
2636
|
+
query?: never;
|
|
2637
|
+
header?: never;
|
|
2638
|
+
path?: never;
|
|
2639
|
+
cookie?: never;
|
|
2640
|
+
};
|
|
2641
|
+
get?: never;
|
|
2642
|
+
put?: never;
|
|
2643
|
+
/**
|
|
2644
|
+
* Approve a suggested category
|
|
2645
|
+
* @description Promote an AI-suggested category to a user-defined (permanent) one.
|
|
2646
|
+
*/
|
|
2647
|
+
post: operations["approveCategory"];
|
|
2648
|
+
delete?: never;
|
|
2649
|
+
options?: never;
|
|
2650
|
+
head?: never;
|
|
2651
|
+
patch?: never;
|
|
2652
|
+
trace?: never;
|
|
2653
|
+
};
|
|
2654
|
+
"/insights/categories/reject": {
|
|
2655
|
+
parameters: {
|
|
2656
|
+
query?: never;
|
|
2657
|
+
header?: never;
|
|
2658
|
+
path?: never;
|
|
2659
|
+
cookie?: never;
|
|
2660
|
+
};
|
|
2661
|
+
get?: never;
|
|
2662
|
+
put?: never;
|
|
2663
|
+
/**
|
|
2664
|
+
* Reject a suggested category
|
|
2665
|
+
* @description Reject an AI-suggested category and reassign its insights to a fallback category.
|
|
2666
|
+
*/
|
|
2667
|
+
post: operations["rejectCategory"];
|
|
2668
|
+
delete?: never;
|
|
2669
|
+
options?: never;
|
|
2670
|
+
head?: never;
|
|
2671
|
+
patch?: never;
|
|
2672
|
+
trace?: never;
|
|
2673
|
+
};
|
|
2578
2674
|
"/insights/{id}": {
|
|
2579
2675
|
parameters: {
|
|
2580
2676
|
query?: never;
|
|
@@ -3652,6 +3748,28 @@ export interface components {
|
|
|
3652
3748
|
}[];
|
|
3653
3749
|
}[];
|
|
3654
3750
|
};
|
|
3751
|
+
CreateVocCategoryDto: {
|
|
3752
|
+
name: string;
|
|
3753
|
+
description?: string | null;
|
|
3754
|
+
};
|
|
3755
|
+
UpdateCategoryDto: {
|
|
3756
|
+
name?: string;
|
|
3757
|
+
description?: string | null;
|
|
3758
|
+
};
|
|
3759
|
+
ApproveSuggestionDto: {
|
|
3760
|
+
/** Format: uuid */
|
|
3761
|
+
categoryId: string;
|
|
3762
|
+
};
|
|
3763
|
+
RejectSuggestionDto: {
|
|
3764
|
+
reason?: string | null;
|
|
3765
|
+
/** Format: uuid */
|
|
3766
|
+
categoryId: string;
|
|
3767
|
+
/**
|
|
3768
|
+
* Format: uuid
|
|
3769
|
+
* @description to assign the insights to another category
|
|
3770
|
+
*/
|
|
3771
|
+
fallbackCategoryId: string;
|
|
3772
|
+
};
|
|
3655
3773
|
GetVocQueryDto: {
|
|
3656
3774
|
/** @description Filter by category name */
|
|
3657
3775
|
category?: string | null;
|
|
@@ -4050,11 +4168,9 @@ export interface components {
|
|
|
4050
4168
|
CreateChatSessionInput: {
|
|
4051
4169
|
/** Format: uuid */
|
|
4052
4170
|
contact_id?: string;
|
|
4053
|
-
/**
|
|
4054
|
-
* @default {
|
|
4171
|
+
/** @default {
|
|
4055
4172
|
* "type": "api"
|
|
4056
|
-
* }
|
|
4057
|
-
*/
|
|
4173
|
+
* } */
|
|
4058
4174
|
channel: {
|
|
4059
4175
|
type: components["schemas"]["SessionChannel"];
|
|
4060
4176
|
};
|
|
@@ -4380,6 +4496,10 @@ export interface components {
|
|
|
4380
4496
|
metadata?: {
|
|
4381
4497
|
[key: string]: unknown;
|
|
4382
4498
|
};
|
|
4499
|
+
/** @description ISO 8601 instant (UTC) when the AI may start using this instruction. Null clears the start bound. */
|
|
4500
|
+
start_time?: string | null;
|
|
4501
|
+
/** @description ISO 8601 instant (UTC) when the AI stops using this instruction. Null clears the end bound. */
|
|
4502
|
+
end_time?: string | null;
|
|
4383
4503
|
};
|
|
4384
4504
|
ApplyTrainingDiffDto: {
|
|
4385
4505
|
/** @description Pre-rendered TipTap diff HTML */
|
|
@@ -4750,7 +4870,196 @@ export interface components {
|
|
|
4750
4870
|
translated_language?: string | null;
|
|
4751
4871
|
created_at?: string | null;
|
|
4752
4872
|
updated_at?: string | null;
|
|
4753
|
-
debug_json?:
|
|
4873
|
+
debug_json?: ({
|
|
4874
|
+
v2: {
|
|
4875
|
+
response: ({
|
|
4876
|
+
/** @constant */
|
|
4877
|
+
type: "prohibited_topic";
|
|
4878
|
+
topic: string;
|
|
4879
|
+
} | {
|
|
4880
|
+
/** @constant */
|
|
4881
|
+
type: "response_skipped";
|
|
4882
|
+
} | {
|
|
4883
|
+
/** @constant */
|
|
4884
|
+
type: "response";
|
|
4885
|
+
responseText: string;
|
|
4886
|
+
responseTextWithReferences: string;
|
|
4887
|
+
context: {
|
|
4888
|
+
knowledgeBaseItems: {
|
|
4889
|
+
itemId: string;
|
|
4890
|
+
chunkIndex: number;
|
|
4891
|
+
title: string;
|
|
4892
|
+
url?: string;
|
|
4893
|
+
}[];
|
|
4894
|
+
instructions: {
|
|
4895
|
+
id: string;
|
|
4896
|
+
title: string;
|
|
4897
|
+
}[];
|
|
4898
|
+
tools: {
|
|
4899
|
+
name: string;
|
|
4900
|
+
}[];
|
|
4901
|
+
};
|
|
4902
|
+
reasoning: ({
|
|
4903
|
+
/** @constant */
|
|
4904
|
+
type: "reasoning";
|
|
4905
|
+
content: string;
|
|
4906
|
+
} | {
|
|
4907
|
+
/** @constant */
|
|
4908
|
+
type: "tool_call";
|
|
4909
|
+
call_id: string;
|
|
4910
|
+
tool_name: string;
|
|
4911
|
+
action?: {
|
|
4912
|
+
name: string;
|
|
4913
|
+
id: string;
|
|
4914
|
+
openapi?: {
|
|
4915
|
+
openapi_spec_id?: string;
|
|
4916
|
+
operation_spec: unknown;
|
|
4917
|
+
operation_id?: string;
|
|
4918
|
+
operation_method?: string;
|
|
4919
|
+
};
|
|
4920
|
+
metadata: unknown;
|
|
4921
|
+
required_form_submission?: boolean;
|
|
4922
|
+
is_handoff_like?: boolean;
|
|
4923
|
+
};
|
|
4924
|
+
call_arguments: string;
|
|
4925
|
+
call_result: string;
|
|
4926
|
+
})[];
|
|
4927
|
+
/** @description Quick reply suggestions for the user */
|
|
4928
|
+
quickReplySuggestions: {
|
|
4929
|
+
toolName?: string | null;
|
|
4930
|
+
suggestions: string[];
|
|
4931
|
+
}[];
|
|
4932
|
+
/** @description If your answer might solve the user's issue, return true, otherwise false. Note: once the user confirms it is solved, stop returning true */
|
|
4933
|
+
mightSolveUserIssue: boolean;
|
|
4934
|
+
/** @description True if your answer to the user completely covers the issue from knowledge and tools, and no further user input is needed. False if your answer is generic or is not specific to the issue. */
|
|
4935
|
+
completelyAndFullyCoveredUserIssue?: boolean;
|
|
4936
|
+
}) & {
|
|
4937
|
+
/** @enum {string} */
|
|
4938
|
+
language: "en" | "fr" | "de" | "nl" | "pl" | "pt" | "es" | "it" | "ru" | "ja" | "ko" | "zh" | "ar" | "tr" | "sv" | "da" | "no" | "fi" | "el" | "cs" | "hu" | "th" | "vi" | "id" | "he" | "hi" | "uk" | "ro" | "bg" | "hr" | "sk" | "sl" | "sr" | "et" | "lv" | "lt" | "is" | "ga" | "ms" | "tl" | "fa" | "bn" | "ta" | "te" | "ur" | "sw" | "zu" | "af" | "sq" | "hy" | "az" | "eu" | "be" | "bs" | "ca" | "cy" | "ku" | "ckb" | "kmr";
|
|
4939
|
+
};
|
|
4940
|
+
};
|
|
4941
|
+
/** @default null */
|
|
4942
|
+
assignment_choice_summary: {
|
|
4943
|
+
/** @constant */
|
|
4944
|
+
strategy: "least-busy";
|
|
4945
|
+
selected: {
|
|
4946
|
+
agent_id: number;
|
|
4947
|
+
agent_name: string;
|
|
4948
|
+
active_sessions: number;
|
|
4949
|
+
active_sessions_in_group: number;
|
|
4950
|
+
pending_sessions: number;
|
|
4951
|
+
remaining_capacity: number;
|
|
4952
|
+
max_capacity: number;
|
|
4953
|
+
max_capacity_in_group: number | null;
|
|
4954
|
+
is_available_globally: boolean;
|
|
4955
|
+
is_available_in_group: boolean;
|
|
4956
|
+
} | null;
|
|
4957
|
+
peers: {
|
|
4958
|
+
agent_id: number;
|
|
4959
|
+
agent_name: string;
|
|
4960
|
+
active_sessions: number;
|
|
4961
|
+
active_sessions_in_group: number;
|
|
4962
|
+
pending_sessions: number;
|
|
4963
|
+
remaining_capacity: number;
|
|
4964
|
+
max_capacity: number;
|
|
4965
|
+
max_capacity_in_group: number | null;
|
|
4966
|
+
is_available_globally: boolean;
|
|
4967
|
+
is_available_in_group: boolean;
|
|
4968
|
+
}[];
|
|
4969
|
+
} | null;
|
|
4970
|
+
} | {
|
|
4971
|
+
actionCalls?: {
|
|
4972
|
+
action: {
|
|
4973
|
+
name: string;
|
|
4974
|
+
id: string;
|
|
4975
|
+
openapi?: {
|
|
4976
|
+
openapi_spec_id?: string;
|
|
4977
|
+
operation_spec: unknown;
|
|
4978
|
+
operation_id?: string;
|
|
4979
|
+
operation_method?: string;
|
|
4980
|
+
};
|
|
4981
|
+
metadata: unknown;
|
|
4982
|
+
required_form_submission?: boolean;
|
|
4983
|
+
is_handoff_like?: boolean;
|
|
4984
|
+
};
|
|
4985
|
+
arguments: unknown;
|
|
4986
|
+
result: unknown;
|
|
4987
|
+
}[];
|
|
4988
|
+
actionSearchQuery?: string;
|
|
4989
|
+
knowledge?: {
|
|
4990
|
+
source: string;
|
|
4991
|
+
source_type: string;
|
|
4992
|
+
url: string;
|
|
4993
|
+
}[];
|
|
4994
|
+
knowledge_used?: {
|
|
4995
|
+
content: string;
|
|
4996
|
+
source: string;
|
|
4997
|
+
}[];
|
|
4998
|
+
work_instructions_scanned?: {
|
|
4999
|
+
content: string;
|
|
5000
|
+
}[];
|
|
5001
|
+
/** @description Context provided from the client. For example, dynamic metadata sent from the widget such as: the current product name on the page, the current Shopify shop domain, etc etc. */
|
|
5002
|
+
client_context?: {
|
|
5003
|
+
[key: string]: unknown;
|
|
5004
|
+
} | null;
|
|
5005
|
+
/** @description Org-specific or message-type-specific debug data. */
|
|
5006
|
+
additional_debug_data?: {
|
|
5007
|
+
[key: string]: unknown;
|
|
5008
|
+
} | null;
|
|
5009
|
+
whatsapp_template_request?: unknown | null;
|
|
5010
|
+
rule_violation_reflections?: {
|
|
5011
|
+
rule_name: string;
|
|
5012
|
+
/** @description How the rule was violated */
|
|
5013
|
+
violation_description: string;
|
|
5014
|
+
}[];
|
|
5015
|
+
tool_call_results_quick_reply_suggestions?: {
|
|
5016
|
+
tool_name: string;
|
|
5017
|
+
suggestions: string[];
|
|
5018
|
+
}[];
|
|
5019
|
+
/** @default null */
|
|
5020
|
+
assignment_choice_summary: {
|
|
5021
|
+
/** @constant */
|
|
5022
|
+
strategy: "least-busy";
|
|
5023
|
+
selected: {
|
|
5024
|
+
agent_id: number;
|
|
5025
|
+
agent_name: string;
|
|
5026
|
+
active_sessions: number;
|
|
5027
|
+
active_sessions_in_group: number;
|
|
5028
|
+
pending_sessions: number;
|
|
5029
|
+
remaining_capacity: number;
|
|
5030
|
+
max_capacity: number;
|
|
5031
|
+
max_capacity_in_group: number | null;
|
|
5032
|
+
is_available_globally: boolean;
|
|
5033
|
+
is_available_in_group: boolean;
|
|
5034
|
+
} | null;
|
|
5035
|
+
peers: {
|
|
5036
|
+
agent_id: number;
|
|
5037
|
+
agent_name: string;
|
|
5038
|
+
active_sessions: number;
|
|
5039
|
+
active_sessions_in_group: number;
|
|
5040
|
+
pending_sessions: number;
|
|
5041
|
+
remaining_capacity: number;
|
|
5042
|
+
max_capacity: number;
|
|
5043
|
+
max_capacity_in_group: number | null;
|
|
5044
|
+
is_available_globally: boolean;
|
|
5045
|
+
is_available_in_group: boolean;
|
|
5046
|
+
}[];
|
|
5047
|
+
} | null;
|
|
5048
|
+
destination_id?: string;
|
|
5049
|
+
destination_name?: string;
|
|
5050
|
+
/** @enum {string} */
|
|
5051
|
+
destination_type?: "phone" | "sip" | "hangup";
|
|
5052
|
+
transfer_reason?: string | null;
|
|
5053
|
+
is_failover?: boolean;
|
|
5054
|
+
/** @enum {string} */
|
|
5055
|
+
failover_source?: "stt" | "llm" | "tts";
|
|
5056
|
+
/** @enum {string} */
|
|
5057
|
+
hangup_initiator?: "user" | "agent" | "system";
|
|
5058
|
+
hangup_reason?: string;
|
|
5059
|
+
duration_seconds?: number;
|
|
5060
|
+
/** @enum {string} */
|
|
5061
|
+
call_direction?: "inbound" | "outbound";
|
|
5062
|
+
}) | null;
|
|
4754
5063
|
knowledgebase_called?: boolean | null;
|
|
4755
5064
|
/** @enum {string} */
|
|
4756
5065
|
type: "agent_assigned_by_system" | "agent_assigned_by_user" | "agent_changed" | "agent_comment" | "agent_initiated_session" | "agent_joined" | "agent_message" | "agent_reopened_session" | "agent_took_session_from_ai" | "agent_unassigned_by_system" | "agent_unassigned_by_user" | "ai_assumed_the_session_resolved" | "ai_decided_to_resolve_the_issue" | "ai_reopened_session" | "call_history" | "call_transferred" | "closed_resolved_by_agent" | "closed_resolved_by_api" | "closed_resolved_by_contact" | "closed_resolved_by_integration" | "closed_resolved_by_system" | "closed_unresolved_by_agent" | "closed_unresolved_by_api" | "closed_unresolved_by_system" | "contact_data_updated" | "csat_requested" | "csat_submitted" | "email_draft_message" | "handoff" | "handoff_to_salesforce_miaw" | "handoff_to_zendesk" | "message" | "prohibited_topic_detected" | "sequence_message" | "sla_applied_by_agent" | "sla_applied_by_system" | "sla_first_reply_breached" | "sla_first_reply_completed_after_breach" | "sla_first_reply_fulfilled" | "sla_first_reply_metric_started" | "sla_freezed_office_hours_ended" | "sla_freezed_snoozed" | "sla_next_reply_breached" | "sla_next_reply_completed_after_breach" | "sla_next_reply_fulfilled" | "sla_next_reply_metric_started" | "sla_removed_by_agent" | "sla_removed_by_system" | "sla_resolution_breached" | "sla_resolution_completed_after_breach" | "sla_resolution_fulfilled" | "sla_resolution_metric_started" | "sla_resolution_paused_resolved" | "sla_resolution_paused_waiting_on_customer" | "sla_resolution_resumed_customer_replied" | "sla_resolution_resumed_reopened" | "sla_resumed_office_hours_started" | "sla_resumed_snooze_cancelled" | "sla_resumed_snooze_expired" | "state_checkpoint" | "sub_status_removed_by_agent" | "sub_status_removed_by_api" | "sub_status_removed_by_system" | "sub_status_set_by_agent" | "sub_status_set_by_api" | "sub_status_set_by_system" | "system_reopened_session" | "team_assigned_by_system" | "team_assigned_by_user" | "team_unassigned_by_system" | "team_unassigned_by_user" | "user_confirmed_the_session_resolved" | "workflow_message" | "workflow_note" | "workflow_triggered";
|
|
@@ -4846,6 +5155,8 @@ export interface components {
|
|
|
4846
5155
|
use_org_knowledgebase: boolean;
|
|
4847
5156
|
background_noise_preset: ("office" | "bar" | "city-street") | null;
|
|
4848
5157
|
recording_enabled: boolean;
|
|
5158
|
+
stt_keyterms: string[];
|
|
5159
|
+
failover_transfer_destination_id: string | null;
|
|
4849
5160
|
};
|
|
4850
5161
|
PhoneAgentVoiceDto: {
|
|
4851
5162
|
voice_id: string;
|
|
@@ -4982,6 +5293,8 @@ export interface components {
|
|
|
4982
5293
|
published_by_name: string | null;
|
|
4983
5294
|
/** Format: date-time */
|
|
4984
5295
|
created_at: string;
|
|
5296
|
+
start_time: string | null;
|
|
5297
|
+
end_time: string | null;
|
|
4985
5298
|
};
|
|
4986
5299
|
CustomTrainingDirectoriesDto: {
|
|
4987
5300
|
id: string;
|
|
@@ -5359,7 +5672,6 @@ export interface components {
|
|
|
5359
5672
|
ended_at: string | null;
|
|
5360
5673
|
workflow_id: string;
|
|
5361
5674
|
duration_in_milliseconds: number | null;
|
|
5362
|
-
context: unknown | null;
|
|
5363
5675
|
wrapper_block_id: string | null;
|
|
5364
5676
|
wrapper_block_run_id: number | null;
|
|
5365
5677
|
};
|
|
@@ -5788,6 +6100,49 @@ export interface components {
|
|
|
5788
6100
|
tool_name: string;
|
|
5789
6101
|
suggestions: string[];
|
|
5790
6102
|
}[];
|
|
6103
|
+
/** @default null */
|
|
6104
|
+
assignment_choice_summary: {
|
|
6105
|
+
/** @constant */
|
|
6106
|
+
strategy: "least-busy";
|
|
6107
|
+
selected: {
|
|
6108
|
+
agent_id: number;
|
|
6109
|
+
agent_name: string;
|
|
6110
|
+
active_sessions: number;
|
|
6111
|
+
active_sessions_in_group: number;
|
|
6112
|
+
pending_sessions: number;
|
|
6113
|
+
remaining_capacity: number;
|
|
6114
|
+
max_capacity: number;
|
|
6115
|
+
max_capacity_in_group: number | null;
|
|
6116
|
+
is_available_globally: boolean;
|
|
6117
|
+
is_available_in_group: boolean;
|
|
6118
|
+
} | null;
|
|
6119
|
+
peers: {
|
|
6120
|
+
agent_id: number;
|
|
6121
|
+
agent_name: string;
|
|
6122
|
+
active_sessions: number;
|
|
6123
|
+
active_sessions_in_group: number;
|
|
6124
|
+
pending_sessions: number;
|
|
6125
|
+
remaining_capacity: number;
|
|
6126
|
+
max_capacity: number;
|
|
6127
|
+
max_capacity_in_group: number | null;
|
|
6128
|
+
is_available_globally: boolean;
|
|
6129
|
+
is_available_in_group: boolean;
|
|
6130
|
+
}[];
|
|
6131
|
+
} | null;
|
|
6132
|
+
destination_id?: string;
|
|
6133
|
+
destination_name?: string;
|
|
6134
|
+
/** @enum {string} */
|
|
6135
|
+
destination_type?: "phone" | "sip" | "hangup";
|
|
6136
|
+
transfer_reason?: string | null;
|
|
6137
|
+
is_failover?: boolean;
|
|
6138
|
+
/** @enum {string} */
|
|
6139
|
+
failover_source?: "stt" | "llm" | "tts";
|
|
6140
|
+
/** @enum {string} */
|
|
6141
|
+
hangup_initiator?: "user" | "agent" | "system";
|
|
6142
|
+
hangup_reason?: string;
|
|
6143
|
+
duration_seconds?: number;
|
|
6144
|
+
/** @enum {string} */
|
|
6145
|
+
call_direction?: "inbound" | "outbound";
|
|
5791
6146
|
};
|
|
5792
6147
|
mode?: {
|
|
5793
6148
|
id: string;
|
|
@@ -6376,6 +6731,10 @@ export interface components {
|
|
|
6376
6731
|
} | null;
|
|
6377
6732
|
/** @description When the current version was published */
|
|
6378
6733
|
published_at: string | null;
|
|
6734
|
+
/** @description Active window start (UTC). Null = no start bound. */
|
|
6735
|
+
start_time: string | null;
|
|
6736
|
+
/** @description Active window end (UTC). Null = no end bound. */
|
|
6737
|
+
end_time: string | null;
|
|
6379
6738
|
/** Format: date-time */
|
|
6380
6739
|
created_at: string;
|
|
6381
6740
|
/** Format: date-time */
|
|
@@ -6460,6 +6819,18 @@ export interface components {
|
|
|
6460
6819
|
total: number;
|
|
6461
6820
|
totalPages: number;
|
|
6462
6821
|
};
|
|
6822
|
+
PublicCategoryUsageDto: {
|
|
6823
|
+
/** @description Active system (base) categories. */
|
|
6824
|
+
base: number;
|
|
6825
|
+
/** @description Active user-defined (custom) categories. */
|
|
6826
|
+
custom: number;
|
|
6827
|
+
/** @description Active AI-suggested categories. */
|
|
6828
|
+
suggested: number;
|
|
6829
|
+
/** @description Total active categories (base + custom + suggested). */
|
|
6830
|
+
total: number;
|
|
6831
|
+
/** @description Maximum total categories before the AI stops suggesting new ones. */
|
|
6832
|
+
limit: number;
|
|
6833
|
+
};
|
|
6463
6834
|
SendTemplateOutputDto: {
|
|
6464
6835
|
whatsapp_message_id: string;
|
|
6465
6836
|
opencx_message_id: string;
|
|
@@ -12349,6 +12720,8 @@ export interface operations {
|
|
|
12349
12720
|
parameters: {
|
|
12350
12721
|
query?: {
|
|
12351
12722
|
type?: "base" | "suggested" | "user_defined";
|
|
12723
|
+
/** @description Case-insensitive keyword match on category name or description. */
|
|
12724
|
+
search?: string;
|
|
12352
12725
|
};
|
|
12353
12726
|
header?: never;
|
|
12354
12727
|
path?: never;
|
|
@@ -12376,6 +12749,169 @@ export interface operations {
|
|
|
12376
12749
|
};
|
|
12377
12750
|
};
|
|
12378
12751
|
};
|
|
12752
|
+
createCategory: {
|
|
12753
|
+
parameters: {
|
|
12754
|
+
query?: never;
|
|
12755
|
+
header?: never;
|
|
12756
|
+
path?: never;
|
|
12757
|
+
cookie?: never;
|
|
12758
|
+
};
|
|
12759
|
+
requestBody: {
|
|
12760
|
+
content: {
|
|
12761
|
+
"application/json": components["schemas"]["CreateVocCategoryDto"];
|
|
12762
|
+
};
|
|
12763
|
+
};
|
|
12764
|
+
responses: {
|
|
12765
|
+
/** @description Default Response */
|
|
12766
|
+
201: {
|
|
12767
|
+
headers: {
|
|
12768
|
+
[name: string]: unknown;
|
|
12769
|
+
};
|
|
12770
|
+
content: {
|
|
12771
|
+
"application/json": components["schemas"]["PublicCategoryDto"];
|
|
12772
|
+
};
|
|
12773
|
+
};
|
|
12774
|
+
/** @description Internal Server Error */
|
|
12775
|
+
500: {
|
|
12776
|
+
headers: {
|
|
12777
|
+
[name: string]: unknown;
|
|
12778
|
+
};
|
|
12779
|
+
content: {
|
|
12780
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
12781
|
+
};
|
|
12782
|
+
};
|
|
12783
|
+
};
|
|
12784
|
+
};
|
|
12785
|
+
getCategoryUsage: {
|
|
12786
|
+
parameters: {
|
|
12787
|
+
query?: never;
|
|
12788
|
+
header?: never;
|
|
12789
|
+
path?: never;
|
|
12790
|
+
cookie?: never;
|
|
12791
|
+
};
|
|
12792
|
+
requestBody?: never;
|
|
12793
|
+
responses: {
|
|
12794
|
+
/** @description Default Response */
|
|
12795
|
+
200: {
|
|
12796
|
+
headers: {
|
|
12797
|
+
[name: string]: unknown;
|
|
12798
|
+
};
|
|
12799
|
+
content: {
|
|
12800
|
+
"application/json": components["schemas"]["PublicCategoryUsageDto"];
|
|
12801
|
+
};
|
|
12802
|
+
};
|
|
12803
|
+
/** @description Internal Server Error */
|
|
12804
|
+
500: {
|
|
12805
|
+
headers: {
|
|
12806
|
+
[name: string]: unknown;
|
|
12807
|
+
};
|
|
12808
|
+
content: {
|
|
12809
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
12810
|
+
};
|
|
12811
|
+
};
|
|
12812
|
+
};
|
|
12813
|
+
};
|
|
12814
|
+
updateCategory: {
|
|
12815
|
+
parameters: {
|
|
12816
|
+
query?: never;
|
|
12817
|
+
header?: never;
|
|
12818
|
+
path: {
|
|
12819
|
+
categoryId: string;
|
|
12820
|
+
};
|
|
12821
|
+
cookie?: never;
|
|
12822
|
+
};
|
|
12823
|
+
requestBody: {
|
|
12824
|
+
content: {
|
|
12825
|
+
"application/json": components["schemas"]["UpdateCategoryDto"];
|
|
12826
|
+
};
|
|
12827
|
+
};
|
|
12828
|
+
responses: {
|
|
12829
|
+
/** @description Default Response */
|
|
12830
|
+
200: {
|
|
12831
|
+
headers: {
|
|
12832
|
+
[name: string]: unknown;
|
|
12833
|
+
};
|
|
12834
|
+
content: {
|
|
12835
|
+
"application/json": components["schemas"]["PublicCategoryDto"];
|
|
12836
|
+
};
|
|
12837
|
+
};
|
|
12838
|
+
/** @description Internal Server Error */
|
|
12839
|
+
500: {
|
|
12840
|
+
headers: {
|
|
12841
|
+
[name: string]: unknown;
|
|
12842
|
+
};
|
|
12843
|
+
content: {
|
|
12844
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
12845
|
+
};
|
|
12846
|
+
};
|
|
12847
|
+
};
|
|
12848
|
+
};
|
|
12849
|
+
approveCategory: {
|
|
12850
|
+
parameters: {
|
|
12851
|
+
query?: never;
|
|
12852
|
+
header?: never;
|
|
12853
|
+
path?: never;
|
|
12854
|
+
cookie?: never;
|
|
12855
|
+
};
|
|
12856
|
+
requestBody: {
|
|
12857
|
+
content: {
|
|
12858
|
+
"application/json": components["schemas"]["ApproveSuggestionDto"];
|
|
12859
|
+
};
|
|
12860
|
+
};
|
|
12861
|
+
responses: {
|
|
12862
|
+
/** @description Default Response */
|
|
12863
|
+
201: {
|
|
12864
|
+
headers: {
|
|
12865
|
+
[name: string]: unknown;
|
|
12866
|
+
};
|
|
12867
|
+
content: {
|
|
12868
|
+
"application/json": components["schemas"]["PublicCategoryDto"];
|
|
12869
|
+
};
|
|
12870
|
+
};
|
|
12871
|
+
/** @description Internal Server Error */
|
|
12872
|
+
500: {
|
|
12873
|
+
headers: {
|
|
12874
|
+
[name: string]: unknown;
|
|
12875
|
+
};
|
|
12876
|
+
content: {
|
|
12877
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
12878
|
+
};
|
|
12879
|
+
};
|
|
12880
|
+
};
|
|
12881
|
+
};
|
|
12882
|
+
rejectCategory: {
|
|
12883
|
+
parameters: {
|
|
12884
|
+
query?: never;
|
|
12885
|
+
header?: never;
|
|
12886
|
+
path?: never;
|
|
12887
|
+
cookie?: never;
|
|
12888
|
+
};
|
|
12889
|
+
requestBody: {
|
|
12890
|
+
content: {
|
|
12891
|
+
"application/json": components["schemas"]["RejectSuggestionDto"];
|
|
12892
|
+
};
|
|
12893
|
+
};
|
|
12894
|
+
responses: {
|
|
12895
|
+
/** @description Default Response */
|
|
12896
|
+
201: {
|
|
12897
|
+
headers: {
|
|
12898
|
+
[name: string]: unknown;
|
|
12899
|
+
};
|
|
12900
|
+
content: {
|
|
12901
|
+
"application/json": components["schemas"]["PublicCategoryDto"];
|
|
12902
|
+
};
|
|
12903
|
+
};
|
|
12904
|
+
/** @description Internal Server Error */
|
|
12905
|
+
500: {
|
|
12906
|
+
headers: {
|
|
12907
|
+
[name: string]: unknown;
|
|
12908
|
+
};
|
|
12909
|
+
content: {
|
|
12910
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
12911
|
+
};
|
|
12912
|
+
};
|
|
12913
|
+
};
|
|
12914
|
+
};
|
|
12379
12915
|
getVocInsight: {
|
|
12380
12916
|
parameters: {
|
|
12381
12917
|
query?: never;
|