@opencx/mcp 1.11.61 → 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 +312 -0
- 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/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -2580,6 +2580,50 @@ export interface paths {
|
|
|
2580
2580
|
*/
|
|
2581
2581
|
get: operations["getCategories"];
|
|
2582
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"];
|
|
2583
2627
|
post?: never;
|
|
2584
2628
|
delete?: never;
|
|
2585
2629
|
options?: never;
|
|
@@ -2587,6 +2631,46 @@ export interface paths {
|
|
|
2587
2631
|
patch?: never;
|
|
2588
2632
|
trace?: never;
|
|
2589
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
|
+
};
|
|
2590
2674
|
"/insights/{id}": {
|
|
2591
2675
|
parameters: {
|
|
2592
2676
|
query?: never;
|
|
@@ -3664,6 +3748,28 @@ export interface components {
|
|
|
3664
3748
|
}[];
|
|
3665
3749
|
}[];
|
|
3666
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
|
+
};
|
|
3667
3773
|
GetVocQueryDto: {
|
|
3668
3774
|
/** @description Filter by category name */
|
|
3669
3775
|
category?: string | null;
|
|
@@ -4939,6 +5045,20 @@ export interface components {
|
|
|
4939
5045
|
is_available_in_group: boolean;
|
|
4940
5046
|
}[];
|
|
4941
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";
|
|
4942
5062
|
}) | null;
|
|
4943
5063
|
knowledgebase_called?: boolean | null;
|
|
4944
5064
|
/** @enum {string} */
|
|
@@ -5036,6 +5156,7 @@ export interface components {
|
|
|
5036
5156
|
background_noise_preset: ("office" | "bar" | "city-street") | null;
|
|
5037
5157
|
recording_enabled: boolean;
|
|
5038
5158
|
stt_keyterms: string[];
|
|
5159
|
+
failover_transfer_destination_id: string | null;
|
|
5039
5160
|
};
|
|
5040
5161
|
PhoneAgentVoiceDto: {
|
|
5041
5162
|
voice_id: string;
|
|
@@ -6008,6 +6129,20 @@ export interface components {
|
|
|
6008
6129
|
is_available_in_group: boolean;
|
|
6009
6130
|
}[];
|
|
6010
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";
|
|
6011
6146
|
};
|
|
6012
6147
|
mode?: {
|
|
6013
6148
|
id: string;
|
|
@@ -6684,6 +6819,18 @@ export interface components {
|
|
|
6684
6819
|
total: number;
|
|
6685
6820
|
totalPages: number;
|
|
6686
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
|
+
};
|
|
6687
6834
|
SendTemplateOutputDto: {
|
|
6688
6835
|
whatsapp_message_id: string;
|
|
6689
6836
|
opencx_message_id: string;
|
|
@@ -12573,6 +12720,8 @@ export interface operations {
|
|
|
12573
12720
|
parameters: {
|
|
12574
12721
|
query?: {
|
|
12575
12722
|
type?: "base" | "suggested" | "user_defined";
|
|
12723
|
+
/** @description Case-insensitive keyword match on category name or description. */
|
|
12724
|
+
search?: string;
|
|
12576
12725
|
};
|
|
12577
12726
|
header?: never;
|
|
12578
12727
|
path?: never;
|
|
@@ -12600,6 +12749,169 @@ export interface operations {
|
|
|
12600
12749
|
};
|
|
12601
12750
|
};
|
|
12602
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
|
+
};
|
|
12603
12915
|
getVocInsight: {
|
|
12604
12916
|
parameters: {
|
|
12605
12917
|
query?: never;
|