@opencx/mcp 1.12.4 → 1.13.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/dist/schema.d.ts +169 -78
- package/dist/schema.d.ts.map +1 -1
- package/dist/tools/reports.d.ts.map +1 -1
- package/dist/tools/reports.js +30 -23
- package/dist/tools/reports.js.map +1 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -3771,6 +3771,26 @@ export interface paths {
|
|
|
3771
3771
|
patch?: never;
|
|
3772
3772
|
trace?: never;
|
|
3773
3773
|
};
|
|
3774
|
+
"/reports/analytics": {
|
|
3775
|
+
parameters: {
|
|
3776
|
+
query?: never;
|
|
3777
|
+
header?: never;
|
|
3778
|
+
path?: never;
|
|
3779
|
+
cookie?: never;
|
|
3780
|
+
};
|
|
3781
|
+
get?: never;
|
|
3782
|
+
put?: never;
|
|
3783
|
+
/**
|
|
3784
|
+
* Run a read-only analytics query
|
|
3785
|
+
* @description Run a read-only SQL query against the org-scoped `report_*` analytics views. Scoped to the calling organization and read-only, enforced server-side.
|
|
3786
|
+
*/
|
|
3787
|
+
post: operations["runAnalyticsQuery"];
|
|
3788
|
+
delete?: never;
|
|
3789
|
+
options?: never;
|
|
3790
|
+
head?: never;
|
|
3791
|
+
patch?: never;
|
|
3792
|
+
trace?: never;
|
|
3793
|
+
};
|
|
3774
3794
|
"/salesforce/miaw/webhook": {
|
|
3775
3795
|
parameters: {
|
|
3776
3796
|
query?: never;
|
|
@@ -4153,6 +4173,7 @@ export interface components {
|
|
|
4153
4173
|
/** @constant */
|
|
4154
4174
|
type: "contact_belongs_to_segment";
|
|
4155
4175
|
segment_id: string;
|
|
4176
|
+
belongs?: boolean;
|
|
4156
4177
|
} | {
|
|
4157
4178
|
/** @constant */
|
|
4158
4179
|
type: "last_contacted_at_between";
|
|
@@ -4167,6 +4188,49 @@ export interface components {
|
|
|
4167
4188
|
after?: string;
|
|
4168
4189
|
/** Format: date-time */
|
|
4169
4190
|
before?: string;
|
|
4191
|
+
} | {
|
|
4192
|
+
/** @constant */
|
|
4193
|
+
type: "contact_has_phone";
|
|
4194
|
+
has: boolean;
|
|
4195
|
+
} | {
|
|
4196
|
+
/** @constant */
|
|
4197
|
+
type: "contact_has_email";
|
|
4198
|
+
has: boolean;
|
|
4199
|
+
} | {
|
|
4200
|
+
/** @constant */
|
|
4201
|
+
type: "contact_is_blocked";
|
|
4202
|
+
blocked: boolean;
|
|
4203
|
+
} | {
|
|
4204
|
+
/** @constant */
|
|
4205
|
+
type: "contact_is_unsubscribed";
|
|
4206
|
+
unsubscribed: boolean;
|
|
4207
|
+
} | {
|
|
4208
|
+
/** @constant */
|
|
4209
|
+
type: "contacts_custom_data";
|
|
4210
|
+
conditions: {
|
|
4211
|
+
key: string;
|
|
4212
|
+
/** @enum {string} */
|
|
4213
|
+
op: "exists" | "not_exists" | "eq" | "neq" | "contains";
|
|
4214
|
+
value?: string;
|
|
4215
|
+
}[];
|
|
4216
|
+
};
|
|
4217
|
+
MakeOutboundCallDto: {
|
|
4218
|
+
phoneAgentId: string;
|
|
4219
|
+
contact: {
|
|
4220
|
+
id: string;
|
|
4221
|
+
} | {
|
|
4222
|
+
phoneNumber: string;
|
|
4223
|
+
};
|
|
4224
|
+
};
|
|
4225
|
+
UpdateKnowledgeSourcesDto: {
|
|
4226
|
+
/** @description IDs of individual instructions to select (outside of selected directories) */
|
|
4227
|
+
instructionIds: string[];
|
|
4228
|
+
/** @description IDs of directories to select (all instructions in these directories are included) */
|
|
4229
|
+
directoryIds: string[];
|
|
4230
|
+
};
|
|
4231
|
+
UpdateAgentWorkflowsDto: {
|
|
4232
|
+
/** @description Logical workflow UUIDs to enable for this agent */
|
|
4233
|
+
workflowIds: string[];
|
|
4170
4234
|
};
|
|
4171
4235
|
CreateGroupDto: {
|
|
4172
4236
|
name: string;
|
|
@@ -4229,24 +4293,6 @@ export interface components {
|
|
|
4229
4293
|
/** @description Reason for archiving */
|
|
4230
4294
|
reason?: string;
|
|
4231
4295
|
};
|
|
4232
|
-
MakeOutboundCallDto: {
|
|
4233
|
-
phoneAgentId: string;
|
|
4234
|
-
contact: {
|
|
4235
|
-
id: string;
|
|
4236
|
-
} | {
|
|
4237
|
-
phoneNumber: string;
|
|
4238
|
-
};
|
|
4239
|
-
};
|
|
4240
|
-
UpdateKnowledgeSourcesDto: {
|
|
4241
|
-
/** @description IDs of individual instructions to select (outside of selected directories) */
|
|
4242
|
-
instructionIds: string[];
|
|
4243
|
-
/** @description IDs of directories to select (all instructions in these directories are included) */
|
|
4244
|
-
directoryIds: string[];
|
|
4245
|
-
};
|
|
4246
|
-
UpdateAgentWorkflowsDto: {
|
|
4247
|
-
/** @description Logical workflow UUIDs to enable for this agent */
|
|
4248
|
-
workflowIds: string[];
|
|
4249
|
-
};
|
|
4250
4296
|
WhatsAppTemplateVariableDto: {
|
|
4251
4297
|
/** @constant */
|
|
4252
4298
|
type: "GLOBAL_DYNAMIC";
|
|
@@ -4322,7 +4368,7 @@ export interface components {
|
|
|
4322
4368
|
parameter_name?: string;
|
|
4323
4369
|
}[];
|
|
4324
4370
|
};
|
|
4325
|
-
buttons?: {
|
|
4371
|
+
buttons?: ({
|
|
4326
4372
|
/** @constant */
|
|
4327
4373
|
type: "button";
|
|
4328
4374
|
/** @enum {string} */
|
|
@@ -4334,7 +4380,19 @@ export interface components {
|
|
|
4334
4380
|
type: "text";
|
|
4335
4381
|
text: components["schemas"]["WhatsAppTemplateVariableDto"];
|
|
4336
4382
|
}[];
|
|
4337
|
-
}
|
|
4383
|
+
} | {
|
|
4384
|
+
/** @constant */
|
|
4385
|
+
type: "button";
|
|
4386
|
+
/** @enum {string} */
|
|
4387
|
+
index: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
4388
|
+
/** @constant */
|
|
4389
|
+
sub_type: "copy_code";
|
|
4390
|
+
parameters: {
|
|
4391
|
+
/** @constant */
|
|
4392
|
+
type: "coupon_code";
|
|
4393
|
+
coupon_code: components["schemas"]["WhatsAppTemplateVariableDto"];
|
|
4394
|
+
}[];
|
|
4395
|
+
})[];
|
|
4338
4396
|
};
|
|
4339
4397
|
FileUploadDto: {
|
|
4340
4398
|
/**
|
|
@@ -5891,7 +5949,7 @@ export interface components {
|
|
|
5891
5949
|
contact_id?: string | null;
|
|
5892
5950
|
contact_name?: string | null;
|
|
5893
5951
|
contact_avatar_url?: string | null;
|
|
5894
|
-
contact_source?: ("form" | "freshchat" | "hubspot" | "intercom" | "pipedream" | "salesforce" | "slack") | null;
|
|
5952
|
+
contact_source?: ("csv" | "form" | "freshchat" | "hubspot" | "intercom" | "pipedream" | "salesforce" | "slack") | null;
|
|
5895
5953
|
contact_slack_data?: string | null;
|
|
5896
5954
|
attachments?: components["schemas"]["ChatAttachmentDto"][] | null;
|
|
5897
5955
|
email_rfc_message_id?: string | null;
|
|
@@ -5922,50 +5980,6 @@ export interface components {
|
|
|
5922
5980
|
edited_at?: string | null;
|
|
5923
5981
|
deleted_at?: string | null;
|
|
5924
5982
|
};
|
|
5925
|
-
GroupUsersDto: {
|
|
5926
|
-
id: number;
|
|
5927
|
-
name: string;
|
|
5928
|
-
email: string;
|
|
5929
|
-
is_available: boolean;
|
|
5930
|
-
group_capacity: number | null;
|
|
5931
|
-
global_capacity: number;
|
|
5932
|
-
};
|
|
5933
|
-
GroupDto: {
|
|
5934
|
-
id: string;
|
|
5935
|
-
organization_id: string;
|
|
5936
|
-
name: string;
|
|
5937
|
-
description: string | null;
|
|
5938
|
-
is_support_enabled: boolean;
|
|
5939
|
-
support_office_hours_id: string | null;
|
|
5940
|
-
/** @enum {string} */
|
|
5941
|
-
support_assignment_strategy: "least-busy" | "round-robin" | "unassigned";
|
|
5942
|
-
created_at: string | null;
|
|
5943
|
-
updated_at: string | null;
|
|
5944
|
-
deleted_at: string | null;
|
|
5945
|
-
};
|
|
5946
|
-
VersionHistoryItemDto: {
|
|
5947
|
-
/** Format: uuid */
|
|
5948
|
-
id: string;
|
|
5949
|
-
instruction_id: string;
|
|
5950
|
-
version_number: number;
|
|
5951
|
-
question: string;
|
|
5952
|
-
answer: string;
|
|
5953
|
-
/** @enum {string} */
|
|
5954
|
-
type: "BEHAVIORAL" | "SCENARIO_SPECIFIC";
|
|
5955
|
-
/** Format: date-time */
|
|
5956
|
-
published_at: string;
|
|
5957
|
-
published_by: number | null;
|
|
5958
|
-
published_by_name: string | null;
|
|
5959
|
-
/** Format: date-time */
|
|
5960
|
-
created_at: string;
|
|
5961
|
-
start_time: string | null;
|
|
5962
|
-
end_time: string | null;
|
|
5963
|
-
};
|
|
5964
|
-
CustomTrainingDirectoriesDto: {
|
|
5965
|
-
id: string;
|
|
5966
|
-
name: string;
|
|
5967
|
-
org_id: string;
|
|
5968
|
-
};
|
|
5969
5983
|
PhoneAgentDto: {
|
|
5970
5984
|
id: string;
|
|
5971
5985
|
org_id: string;
|
|
@@ -6061,6 +6075,50 @@ export interface components {
|
|
|
6061
6075
|
UpdateAgentWorkflowsResponseDto: {
|
|
6062
6076
|
success: boolean;
|
|
6063
6077
|
};
|
|
6078
|
+
GroupUsersDto: {
|
|
6079
|
+
id: number;
|
|
6080
|
+
name: string;
|
|
6081
|
+
email: string;
|
|
6082
|
+
is_available: boolean;
|
|
6083
|
+
group_capacity: number | null;
|
|
6084
|
+
global_capacity: number;
|
|
6085
|
+
};
|
|
6086
|
+
GroupDto: {
|
|
6087
|
+
id: string;
|
|
6088
|
+
organization_id: string;
|
|
6089
|
+
name: string;
|
|
6090
|
+
description: string | null;
|
|
6091
|
+
is_support_enabled: boolean;
|
|
6092
|
+
support_office_hours_id: string | null;
|
|
6093
|
+
/** @enum {string} */
|
|
6094
|
+
support_assignment_strategy: "least-busy" | "round-robin" | "unassigned";
|
|
6095
|
+
created_at: string | null;
|
|
6096
|
+
updated_at: string | null;
|
|
6097
|
+
deleted_at: string | null;
|
|
6098
|
+
};
|
|
6099
|
+
VersionHistoryItemDto: {
|
|
6100
|
+
/** Format: uuid */
|
|
6101
|
+
id: string;
|
|
6102
|
+
instruction_id: string;
|
|
6103
|
+
version_number: number;
|
|
6104
|
+
question: string;
|
|
6105
|
+
answer: string;
|
|
6106
|
+
/** @enum {string} */
|
|
6107
|
+
type: "BEHAVIORAL" | "SCENARIO_SPECIFIC";
|
|
6108
|
+
/** Format: date-time */
|
|
6109
|
+
published_at: string;
|
|
6110
|
+
published_by: number | null;
|
|
6111
|
+
published_by_name: string | null;
|
|
6112
|
+
/** Format: date-time */
|
|
6113
|
+
created_at: string;
|
|
6114
|
+
start_time: string | null;
|
|
6115
|
+
end_time: string | null;
|
|
6116
|
+
};
|
|
6117
|
+
CustomTrainingDirectoriesDto: {
|
|
6118
|
+
id: string;
|
|
6119
|
+
name: string;
|
|
6120
|
+
org_id: string;
|
|
6121
|
+
};
|
|
6064
6122
|
SequenceStep: {
|
|
6065
6123
|
action: {
|
|
6066
6124
|
/** @constant */
|
|
@@ -6121,6 +6179,17 @@ export interface components {
|
|
|
6121
6179
|
ended_at: string | null;
|
|
6122
6180
|
status: components["schemas"]["SequenceStatus"] | null;
|
|
6123
6181
|
};
|
|
6182
|
+
StartOneOffSequenceOutputDto: {
|
|
6183
|
+
data?: {
|
|
6184
|
+
success: boolean;
|
|
6185
|
+
};
|
|
6186
|
+
error?: {
|
|
6187
|
+
/** @enum {string} */
|
|
6188
|
+
code: "sequence_not_found" | "one_off_sequence_is_canceled" | "sequence_already_started";
|
|
6189
|
+
status: 400 | 404;
|
|
6190
|
+
message: string;
|
|
6191
|
+
};
|
|
6192
|
+
};
|
|
6124
6193
|
SankeyReportResDto: {
|
|
6125
6194
|
nodes: {
|
|
6126
6195
|
id: string;
|
|
@@ -6414,17 +6483,6 @@ export interface components {
|
|
|
6414
6483
|
/** Format: date-time */
|
|
6415
6484
|
updated_at: string;
|
|
6416
6485
|
};
|
|
6417
|
-
StartOneOffSequenceOutputDto: {
|
|
6418
|
-
data?: {
|
|
6419
|
-
success: boolean;
|
|
6420
|
-
};
|
|
6421
|
-
error?: {
|
|
6422
|
-
/** @enum {string} */
|
|
6423
|
-
code: "sequence_not_found" | "one_off_sequence_is_canceled" | "sequence_already_started";
|
|
6424
|
-
status: 400 | 404;
|
|
6425
|
-
message: string;
|
|
6426
|
-
};
|
|
6427
|
-
};
|
|
6428
6486
|
AuditLogPublicDto: {
|
|
6429
6487
|
id: string;
|
|
6430
6488
|
org_id: string;
|
|
@@ -7868,7 +7926,7 @@ export interface components {
|
|
|
7868
7926
|
/** Format: email */
|
|
7869
7927
|
email: string;
|
|
7870
7928
|
avatar_url?: string | null;
|
|
7871
|
-
permissions?: ("*" | "sessions:read" | "sessions:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "contacts:read" | "contacts:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "workflows:read" | "workflows:write" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "settings:read" | "settings:write" | "settings-channels:read" | "settings-channels:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[] | null;
|
|
7929
|
+
permissions?: ("*" | "sessions:read" | "sessions:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "contacts:read" | "contacts:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "workflows:read" | "workflows:write" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "settings:read" | "settings:write" | "settings-billing:read" | "settings-billing:write" | "settings-api-keys:read" | "settings-api-keys:write" | "settings-channels:read" | "settings-channels:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[] | null;
|
|
7872
7930
|
};
|
|
7873
7931
|
OrgUserDetail: {
|
|
7874
7932
|
id: number;
|
|
@@ -7877,7 +7935,7 @@ export interface components {
|
|
|
7877
7935
|
/** Format: email */
|
|
7878
7936
|
email: string;
|
|
7879
7937
|
avatar_url?: string | null;
|
|
7880
|
-
permissions?: ("*" | "sessions:read" | "sessions:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "contacts:read" | "contacts:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "workflows:read" | "workflows:write" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "settings:read" | "settings:write" | "settings-channels:read" | "settings-channels:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[] | null;
|
|
7938
|
+
permissions?: ("*" | "sessions:read" | "sessions:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "contacts:read" | "contacts:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "workflows:read" | "workflows:write" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "settings:read" | "settings:write" | "settings-billing:read" | "settings-billing:write" | "settings-api-keys:read" | "settings-api-keys:write" | "settings-channels:read" | "settings-channels:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[] | null;
|
|
7881
7939
|
teams: {
|
|
7882
7940
|
group: components["schemas"]["GroupDto"];
|
|
7883
7941
|
is_user_available_on_group: boolean;
|
|
@@ -15713,6 +15771,39 @@ export interface operations {
|
|
|
15713
15771
|
};
|
|
15714
15772
|
};
|
|
15715
15773
|
};
|
|
15774
|
+
runAnalyticsQuery: {
|
|
15775
|
+
parameters: {
|
|
15776
|
+
query?: never;
|
|
15777
|
+
header?: never;
|
|
15778
|
+
path?: never;
|
|
15779
|
+
cookie?: never;
|
|
15780
|
+
};
|
|
15781
|
+
requestBody: {
|
|
15782
|
+
content: {
|
|
15783
|
+
"application/json": components["schemas"]["RunReportQueryBody"];
|
|
15784
|
+
};
|
|
15785
|
+
};
|
|
15786
|
+
responses: {
|
|
15787
|
+
/** @description Default Response */
|
|
15788
|
+
201: {
|
|
15789
|
+
headers: {
|
|
15790
|
+
[name: string]: unknown;
|
|
15791
|
+
};
|
|
15792
|
+
content: {
|
|
15793
|
+
"application/json": components["schemas"]["RunReportQueryResponseDto"];
|
|
15794
|
+
};
|
|
15795
|
+
};
|
|
15796
|
+
/** @description Internal Server Error */
|
|
15797
|
+
500: {
|
|
15798
|
+
headers: {
|
|
15799
|
+
[name: string]: unknown;
|
|
15800
|
+
};
|
|
15801
|
+
content: {
|
|
15802
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
15803
|
+
};
|
|
15804
|
+
};
|
|
15805
|
+
};
|
|
15806
|
+
};
|
|
15716
15807
|
coworkerNotifyTeam: {
|
|
15717
15808
|
parameters: {
|
|
15718
15809
|
query?: never;
|