@opencx/mcp 1.12.3 → 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 CHANGED
@@ -1003,6 +1003,30 @@ export interface paths {
1003
1003
  patch?: never;
1004
1004
  trace?: never;
1005
1005
  };
1006
+ "/autopilot/prohibited-topics": {
1007
+ parameters: {
1008
+ query?: never;
1009
+ header?: never;
1010
+ path?: never;
1011
+ cookie?: never;
1012
+ };
1013
+ /**
1014
+ * List prohibited topics
1015
+ * @description List the org-wide prohibited topics (also called unapproved themes). When the AI detects that a conversation is about one of these topics, it hands off to a human agent (subject to per-channel handoff behavior settings).
1016
+ */
1017
+ get: operations["listProhibitedTopics"];
1018
+ /**
1019
+ * Replace prohibited topics
1020
+ * @description Replace the full list of prohibited topics. Pass an empty array to clear all topics. Blank entries and case-insensitive duplicates are removed. When the AI detects a conversation about any of these topics, it hands off to a human.
1021
+ */
1022
+ put: operations["updateProhibitedTopics"];
1023
+ post?: never;
1024
+ delete?: never;
1025
+ options?: never;
1026
+ head?: never;
1027
+ patch?: never;
1028
+ trace?: never;
1029
+ };
1006
1030
  "/blocklist/contacts": {
1007
1031
  parameters: {
1008
1032
  query?: never;
@@ -3747,6 +3771,26 @@ export interface paths {
3747
3771
  patch?: never;
3748
3772
  trace?: never;
3749
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
+ };
3750
3794
  "/salesforce/miaw/webhook": {
3751
3795
  parameters: {
3752
3796
  query?: never;
@@ -4129,6 +4173,7 @@ export interface components {
4129
4173
  /** @constant */
4130
4174
  type: "contact_belongs_to_segment";
4131
4175
  segment_id: string;
4176
+ belongs?: boolean;
4132
4177
  } | {
4133
4178
  /** @constant */
4134
4179
  type: "last_contacted_at_between";
@@ -4143,6 +4188,49 @@ export interface components {
4143
4188
  after?: string;
4144
4189
  /** Format: date-time */
4145
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[];
4146
4234
  };
4147
4235
  CreateGroupDto: {
4148
4236
  name: string;
@@ -4205,24 +4293,6 @@ export interface components {
4205
4293
  /** @description Reason for archiving */
4206
4294
  reason?: string;
4207
4295
  };
4208
- MakeOutboundCallDto: {
4209
- phoneAgentId: string;
4210
- contact: {
4211
- id: string;
4212
- } | {
4213
- phoneNumber: string;
4214
- };
4215
- };
4216
- UpdateKnowledgeSourcesDto: {
4217
- /** @description IDs of individual instructions to select (outside of selected directories) */
4218
- instructionIds: string[];
4219
- /** @description IDs of directories to select (all instructions in these directories are included) */
4220
- directoryIds: string[];
4221
- };
4222
- UpdateAgentWorkflowsDto: {
4223
- /** @description Logical workflow UUIDs to enable for this agent */
4224
- workflowIds: string[];
4225
- };
4226
4296
  WhatsAppTemplateVariableDto: {
4227
4297
  /** @constant */
4228
4298
  type: "GLOBAL_DYNAMIC";
@@ -4298,7 +4368,7 @@ export interface components {
4298
4368
  parameter_name?: string;
4299
4369
  }[];
4300
4370
  };
4301
- buttons?: {
4371
+ buttons?: ({
4302
4372
  /** @constant */
4303
4373
  type: "button";
4304
4374
  /** @enum {string} */
@@ -4310,7 +4380,19 @@ export interface components {
4310
4380
  type: "text";
4311
4381
  text: components["schemas"]["WhatsAppTemplateVariableDto"];
4312
4382
  }[];
4313
- }[];
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
+ })[];
4314
4396
  };
4315
4397
  FileUploadDto: {
4316
4398
  /**
@@ -4611,6 +4693,10 @@ export interface components {
4611
4693
  */
4612
4694
  ai_agent_version?: "v1" | "v2";
4613
4695
  };
4696
+ UpdateProhibitedTopicsInputDto: {
4697
+ /** @description Full replacement list of prohibited topics. Empty array clears all topics. Duplicates and blank entries are removed. */
4698
+ topics: string[];
4699
+ };
4614
4700
  ChatAttachmentInput: {
4615
4701
  /** @description The name of the file */
4616
4702
  name: string;
@@ -5339,6 +5425,8 @@ export interface components {
5339
5425
  contact_email?: string;
5340
5426
  /** @description Search keyword to match against message text */
5341
5427
  keyword?: string;
5428
+ /** @description Max chat-history messages to return (default 30, min 10, max 30). Oldest-first. */
5429
+ history_limit?: number;
5342
5430
  };
5343
5431
  BlockContactInputDto: {
5344
5432
  /**
@@ -5861,7 +5949,7 @@ export interface components {
5861
5949
  contact_id?: string | null;
5862
5950
  contact_name?: string | null;
5863
5951
  contact_avatar_url?: string | null;
5864
- contact_source?: ("form" | "freshchat" | "hubspot" | "intercom" | "pipedream" | "salesforce" | "slack") | null;
5952
+ contact_source?: ("csv" | "form" | "freshchat" | "hubspot" | "intercom" | "pipedream" | "salesforce" | "slack") | null;
5865
5953
  contact_slack_data?: string | null;
5866
5954
  attachments?: components["schemas"]["ChatAttachmentDto"][] | null;
5867
5955
  email_rfc_message_id?: string | null;
@@ -5892,50 +5980,6 @@ export interface components {
5892
5980
  edited_at?: string | null;
5893
5981
  deleted_at?: string | null;
5894
5982
  };
5895
- GroupUsersDto: {
5896
- id: number;
5897
- name: string;
5898
- email: string;
5899
- is_available: boolean;
5900
- group_capacity: number | null;
5901
- global_capacity: number;
5902
- };
5903
- GroupDto: {
5904
- id: string;
5905
- organization_id: string;
5906
- name: string;
5907
- description: string | null;
5908
- is_support_enabled: boolean;
5909
- support_office_hours_id: string | null;
5910
- /** @enum {string} */
5911
- support_assignment_strategy: "least-busy" | "round-robin" | "unassigned";
5912
- created_at: string | null;
5913
- updated_at: string | null;
5914
- deleted_at: string | null;
5915
- };
5916
- VersionHistoryItemDto: {
5917
- /** Format: uuid */
5918
- id: string;
5919
- instruction_id: string;
5920
- version_number: number;
5921
- question: string;
5922
- answer: string;
5923
- /** @enum {string} */
5924
- type: "BEHAVIORAL" | "SCENARIO_SPECIFIC";
5925
- /** Format: date-time */
5926
- published_at: string;
5927
- published_by: number | null;
5928
- published_by_name: string | null;
5929
- /** Format: date-time */
5930
- created_at: string;
5931
- start_time: string | null;
5932
- end_time: string | null;
5933
- };
5934
- CustomTrainingDirectoriesDto: {
5935
- id: string;
5936
- name: string;
5937
- org_id: string;
5938
- };
5939
5983
  PhoneAgentDto: {
5940
5984
  id: string;
5941
5985
  org_id: string;
@@ -6031,6 +6075,50 @@ export interface components {
6031
6075
  UpdateAgentWorkflowsResponseDto: {
6032
6076
  success: boolean;
6033
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
+ };
6034
6122
  SequenceStep: {
6035
6123
  action: {
6036
6124
  /** @constant */
@@ -6091,6 +6179,17 @@ export interface components {
6091
6179
  ended_at: string | null;
6092
6180
  status: components["schemas"]["SequenceStatus"] | null;
6093
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
+ };
6094
6193
  SankeyReportResDto: {
6095
6194
  nodes: {
6096
6195
  id: string;
@@ -6384,17 +6483,6 @@ export interface components {
6384
6483
  /** Format: date-time */
6385
6484
  updated_at: string;
6386
6485
  };
6387
- StartOneOffSequenceOutputDto: {
6388
- data?: {
6389
- success: boolean;
6390
- };
6391
- error?: {
6392
- /** @enum {string} */
6393
- code: "sequence_not_found" | "one_off_sequence_is_canceled" | "sequence_already_started";
6394
- status: 400 | 404;
6395
- message: string;
6396
- };
6397
- };
6398
6486
  AuditLogPublicDto: {
6399
6487
  id: string;
6400
6488
  org_id: string;
@@ -6663,6 +6751,10 @@ export interface components {
6663
6751
  ai_agent_version: "v1" | "v2";
6664
6752
  }[];
6665
6753
  };
6754
+ ProhibitedTopicsResponseDto: {
6755
+ /** @description Topics the AI must not handle. When a conversation matches any of these, the AI hands off to a human (subject to per-channel handoff behavior). */
6756
+ topics: string[];
6757
+ };
6666
6758
  SaveContactOutput: {
6667
6759
  /** Format: uuid */
6668
6760
  id?: string;
@@ -7834,7 +7926,7 @@ export interface components {
7834
7926
  /** Format: email */
7835
7927
  email: string;
7836
7928
  avatar_url?: string | null;
7837
- 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;
7838
7930
  };
7839
7931
  OrgUserDetail: {
7840
7932
  id: number;
@@ -7843,7 +7935,7 @@ export interface components {
7843
7935
  /** Format: email */
7844
7936
  email: string;
7845
7937
  avatar_url?: string | null;
7846
- 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;
7847
7939
  teams: {
7848
7940
  group: components["schemas"]["GroupDto"];
7849
7941
  is_user_available_on_group: boolean;
@@ -10507,6 +10599,68 @@ export interface operations {
10507
10599
  };
10508
10600
  };
10509
10601
  };
10602
+ listProhibitedTopics: {
10603
+ parameters: {
10604
+ query?: never;
10605
+ header?: never;
10606
+ path?: never;
10607
+ cookie?: never;
10608
+ };
10609
+ requestBody?: never;
10610
+ responses: {
10611
+ /** @description Default Response */
10612
+ 200: {
10613
+ headers: {
10614
+ [name: string]: unknown;
10615
+ };
10616
+ content: {
10617
+ "application/json": components["schemas"]["ProhibitedTopicsResponseDto"];
10618
+ };
10619
+ };
10620
+ /** @description Internal Server Error */
10621
+ 500: {
10622
+ headers: {
10623
+ [name: string]: unknown;
10624
+ };
10625
+ content: {
10626
+ "application/json": components["schemas"]["ErrorDto"];
10627
+ };
10628
+ };
10629
+ };
10630
+ };
10631
+ updateProhibitedTopics: {
10632
+ parameters: {
10633
+ query?: never;
10634
+ header?: never;
10635
+ path?: never;
10636
+ cookie?: never;
10637
+ };
10638
+ requestBody: {
10639
+ content: {
10640
+ "application/json": components["schemas"]["UpdateProhibitedTopicsInputDto"];
10641
+ };
10642
+ };
10643
+ responses: {
10644
+ /** @description Default Response */
10645
+ 200: {
10646
+ headers: {
10647
+ [name: string]: unknown;
10648
+ };
10649
+ content: {
10650
+ "application/json": components["schemas"]["ProhibitedTopicsResponseDto"];
10651
+ };
10652
+ };
10653
+ /** @description Internal Server Error */
10654
+ 500: {
10655
+ headers: {
10656
+ [name: string]: unknown;
10657
+ };
10658
+ content: {
10659
+ "application/json": components["schemas"]["ErrorDto"];
10660
+ };
10661
+ };
10662
+ };
10663
+ };
10510
10664
  listBlockedContacts: {
10511
10665
  parameters: {
10512
10666
  query?: {
@@ -15617,6 +15771,39 @@ export interface operations {
15617
15771
  };
15618
15772
  };
15619
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
+ };
15620
15807
  coworkerNotifyTeam: {
15621
15808
  parameters: {
15622
15809
  query?: never;