@opencx/mcp 1.11.46 → 1.11.61

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
@@ -1082,10 +1082,12 @@ export interface paths {
1082
1082
  put?: never;
1083
1083
  /**
1084
1084
  * Send emails
1085
- * @description Send emails to multiple contacts, possibly with a time delay.
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 List all custom domains for your organization, including their verification status and DNS records.
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 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.
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 Start the verification process for a custom domain. Make sure you've added the DNS records before starting verification.
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 Delete a custom domain from your organization. This will prevent you from sending emails from this domain.
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 Add contacts to a continuous sequence (`is_continuous` property of the sequence must be `true`).
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;
@@ -4050,11 +4062,9 @@ export interface components {
4050
4062
  CreateChatSessionInput: {
4051
4063
  /** Format: uuid */
4052
4064
  contact_id?: string;
4053
- /**
4054
- * @default {
4065
+ /** @default {
4055
4066
  * "type": "api"
4056
- * }
4057
- */
4067
+ * } */
4058
4068
  channel: {
4059
4069
  type: components["schemas"]["SessionChannel"];
4060
4070
  };
@@ -4380,6 +4390,10 @@ export interface components {
4380
4390
  metadata?: {
4381
4391
  [key: string]: unknown;
4382
4392
  };
4393
+ /** @description ISO 8601 instant (UTC) when the AI may start using this instruction. Null clears the start bound. */
4394
+ start_time?: string | null;
4395
+ /** @description ISO 8601 instant (UTC) when the AI stops using this instruction. Null clears the end bound. */
4396
+ end_time?: string | null;
4383
4397
  };
4384
4398
  ApplyTrainingDiffDto: {
4385
4399
  /** @description Pre-rendered TipTap diff HTML */
@@ -4750,7 +4764,182 @@ export interface components {
4750
4764
  translated_language?: string | null;
4751
4765
  created_at?: string | null;
4752
4766
  updated_at?: string | null;
4753
- debug_json?: string | null;
4767
+ debug_json?: ({
4768
+ v2: {
4769
+ response: ({
4770
+ /** @constant */
4771
+ type: "prohibited_topic";
4772
+ topic: string;
4773
+ } | {
4774
+ /** @constant */
4775
+ type: "response_skipped";
4776
+ } | {
4777
+ /** @constant */
4778
+ type: "response";
4779
+ responseText: string;
4780
+ responseTextWithReferences: string;
4781
+ context: {
4782
+ knowledgeBaseItems: {
4783
+ itemId: string;
4784
+ chunkIndex: number;
4785
+ title: string;
4786
+ url?: string;
4787
+ }[];
4788
+ instructions: {
4789
+ id: string;
4790
+ title: string;
4791
+ }[];
4792
+ tools: {
4793
+ name: string;
4794
+ }[];
4795
+ };
4796
+ reasoning: ({
4797
+ /** @constant */
4798
+ type: "reasoning";
4799
+ content: string;
4800
+ } | {
4801
+ /** @constant */
4802
+ type: "tool_call";
4803
+ call_id: string;
4804
+ tool_name: string;
4805
+ action?: {
4806
+ name: string;
4807
+ id: string;
4808
+ openapi?: {
4809
+ openapi_spec_id?: string;
4810
+ operation_spec: unknown;
4811
+ operation_id?: string;
4812
+ operation_method?: string;
4813
+ };
4814
+ metadata: unknown;
4815
+ required_form_submission?: boolean;
4816
+ is_handoff_like?: boolean;
4817
+ };
4818
+ call_arguments: string;
4819
+ call_result: string;
4820
+ })[];
4821
+ /** @description Quick reply suggestions for the user */
4822
+ quickReplySuggestions: {
4823
+ toolName?: string | null;
4824
+ suggestions: string[];
4825
+ }[];
4826
+ /** @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 */
4827
+ mightSolveUserIssue: boolean;
4828
+ /** @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. */
4829
+ completelyAndFullyCoveredUserIssue?: boolean;
4830
+ }) & {
4831
+ /** @enum {string} */
4832
+ 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";
4833
+ };
4834
+ };
4835
+ /** @default null */
4836
+ assignment_choice_summary: {
4837
+ /** @constant */
4838
+ strategy: "least-busy";
4839
+ selected: {
4840
+ agent_id: number;
4841
+ agent_name: string;
4842
+ active_sessions: number;
4843
+ active_sessions_in_group: number;
4844
+ pending_sessions: number;
4845
+ remaining_capacity: number;
4846
+ max_capacity: number;
4847
+ max_capacity_in_group: number | null;
4848
+ is_available_globally: boolean;
4849
+ is_available_in_group: boolean;
4850
+ } | null;
4851
+ peers: {
4852
+ agent_id: number;
4853
+ agent_name: string;
4854
+ active_sessions: number;
4855
+ active_sessions_in_group: number;
4856
+ pending_sessions: number;
4857
+ remaining_capacity: number;
4858
+ max_capacity: number;
4859
+ max_capacity_in_group: number | null;
4860
+ is_available_globally: boolean;
4861
+ is_available_in_group: boolean;
4862
+ }[];
4863
+ } | null;
4864
+ } | {
4865
+ actionCalls?: {
4866
+ action: {
4867
+ name: string;
4868
+ id: string;
4869
+ openapi?: {
4870
+ openapi_spec_id?: string;
4871
+ operation_spec: unknown;
4872
+ operation_id?: string;
4873
+ operation_method?: string;
4874
+ };
4875
+ metadata: unknown;
4876
+ required_form_submission?: boolean;
4877
+ is_handoff_like?: boolean;
4878
+ };
4879
+ arguments: unknown;
4880
+ result: unknown;
4881
+ }[];
4882
+ actionSearchQuery?: string;
4883
+ knowledge?: {
4884
+ source: string;
4885
+ source_type: string;
4886
+ url: string;
4887
+ }[];
4888
+ knowledge_used?: {
4889
+ content: string;
4890
+ source: string;
4891
+ }[];
4892
+ work_instructions_scanned?: {
4893
+ content: string;
4894
+ }[];
4895
+ /** @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. */
4896
+ client_context?: {
4897
+ [key: string]: unknown;
4898
+ } | null;
4899
+ /** @description Org-specific or message-type-specific debug data. */
4900
+ additional_debug_data?: {
4901
+ [key: string]: unknown;
4902
+ } | null;
4903
+ whatsapp_template_request?: unknown | null;
4904
+ rule_violation_reflections?: {
4905
+ rule_name: string;
4906
+ /** @description How the rule was violated */
4907
+ violation_description: string;
4908
+ }[];
4909
+ tool_call_results_quick_reply_suggestions?: {
4910
+ tool_name: string;
4911
+ suggestions: string[];
4912
+ }[];
4913
+ /** @default null */
4914
+ assignment_choice_summary: {
4915
+ /** @constant */
4916
+ strategy: "least-busy";
4917
+ selected: {
4918
+ agent_id: number;
4919
+ agent_name: string;
4920
+ active_sessions: number;
4921
+ active_sessions_in_group: number;
4922
+ pending_sessions: number;
4923
+ remaining_capacity: number;
4924
+ max_capacity: number;
4925
+ max_capacity_in_group: number | null;
4926
+ is_available_globally: boolean;
4927
+ is_available_in_group: boolean;
4928
+ } | null;
4929
+ peers: {
4930
+ agent_id: number;
4931
+ agent_name: string;
4932
+ active_sessions: number;
4933
+ active_sessions_in_group: number;
4934
+ pending_sessions: number;
4935
+ remaining_capacity: number;
4936
+ max_capacity: number;
4937
+ max_capacity_in_group: number | null;
4938
+ is_available_globally: boolean;
4939
+ is_available_in_group: boolean;
4940
+ }[];
4941
+ } | null;
4942
+ }) | null;
4754
4943
  knowledgebase_called?: boolean | null;
4755
4944
  /** @enum {string} */
4756
4945
  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 +5035,7 @@ export interface components {
4846
5035
  use_org_knowledgebase: boolean;
4847
5036
  background_noise_preset: ("office" | "bar" | "city-street") | null;
4848
5037
  recording_enabled: boolean;
5038
+ stt_keyterms: string[];
4849
5039
  };
4850
5040
  PhoneAgentVoiceDto: {
4851
5041
  voice_id: string;
@@ -4982,6 +5172,8 @@ export interface components {
4982
5172
  published_by_name: string | null;
4983
5173
  /** Format: date-time */
4984
5174
  created_at: string;
5175
+ start_time: string | null;
5176
+ end_time: string | null;
4985
5177
  };
4986
5178
  CustomTrainingDirectoriesDto: {
4987
5179
  id: string;
@@ -5359,7 +5551,6 @@ export interface components {
5359
5551
  ended_at: string | null;
5360
5552
  workflow_id: string;
5361
5553
  duration_in_milliseconds: number | null;
5362
- context: unknown | null;
5363
5554
  wrapper_block_id: string | null;
5364
5555
  wrapper_block_run_id: number | null;
5365
5556
  };
@@ -5788,6 +5979,35 @@ export interface components {
5788
5979
  tool_name: string;
5789
5980
  suggestions: string[];
5790
5981
  }[];
5982
+ /** @default null */
5983
+ assignment_choice_summary: {
5984
+ /** @constant */
5985
+ strategy: "least-busy";
5986
+ selected: {
5987
+ agent_id: number;
5988
+ agent_name: string;
5989
+ active_sessions: number;
5990
+ active_sessions_in_group: number;
5991
+ pending_sessions: number;
5992
+ remaining_capacity: number;
5993
+ max_capacity: number;
5994
+ max_capacity_in_group: number | null;
5995
+ is_available_globally: boolean;
5996
+ is_available_in_group: boolean;
5997
+ } | null;
5998
+ peers: {
5999
+ agent_id: number;
6000
+ agent_name: string;
6001
+ active_sessions: number;
6002
+ active_sessions_in_group: number;
6003
+ pending_sessions: number;
6004
+ remaining_capacity: number;
6005
+ max_capacity: number;
6006
+ max_capacity_in_group: number | null;
6007
+ is_available_globally: boolean;
6008
+ is_available_in_group: boolean;
6009
+ }[];
6010
+ } | null;
5791
6011
  };
5792
6012
  mode?: {
5793
6013
  id: string;
@@ -6376,6 +6596,10 @@ export interface components {
6376
6596
  } | null;
6377
6597
  /** @description When the current version was published */
6378
6598
  published_at: string | null;
6599
+ /** @description Active window start (UTC). Null = no start bound. */
6600
+ start_time: string | null;
6601
+ /** @description Active window end (UTC). Null = no end bound. */
6602
+ end_time: string | null;
6379
6603
  /** Format: date-time */
6380
6604
  created_at: string;
6381
6605
  /** Format: date-time */