@opencx/mcp 1.11.79 → 1.11.81
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 +333 -39
- package/dist/schema.d.ts.map +1 -1
- package/dist/tools/tags.d.ts.map +1 -1
- package/dist/tools/tags.js +48 -1
- package/dist/tools/tags.js.map +1 -1
- package/dist/tools/workflows.d.ts.map +1 -1
- package/dist/tools/workflows.js +32 -13
- package/dist/tools/workflows.js.map +1 -1
- package/dist/workflows.spec.js +75 -0
- package/dist/workflows.spec.js.map +1 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -730,7 +730,7 @@ export interface paths {
|
|
|
730
730
|
put?: never;
|
|
731
731
|
/**
|
|
732
732
|
* Exclude pages from sync
|
|
733
|
-
* @description Bulk exclude pages from future syncs.
|
|
733
|
+
* @description Bulk exclude pages from future syncs. Excluding a page deletes its knowledge base content so the AI no longer surfaces it, and skips it on future crawls. Re-including a page requeues it for the next crawl to rebuild its content.
|
|
734
734
|
*/
|
|
735
735
|
post: operations["excludeCrawlPages"];
|
|
736
736
|
delete?: never;
|
|
@@ -1420,6 +1420,54 @@ export interface paths {
|
|
|
1420
1420
|
patch?: never;
|
|
1421
1421
|
trace?: never;
|
|
1422
1422
|
};
|
|
1423
|
+
"/tags/categories": {
|
|
1424
|
+
parameters: {
|
|
1425
|
+
query?: never;
|
|
1426
|
+
header?: never;
|
|
1427
|
+
path?: never;
|
|
1428
|
+
cookie?: never;
|
|
1429
|
+
};
|
|
1430
|
+
/**
|
|
1431
|
+
* List tag categories
|
|
1432
|
+
* @description List all tag categories for your organization. Categories group related tags (e.g. "Billing", "Product Area") so the AI can tag scalably across large taxonomies.
|
|
1433
|
+
*/
|
|
1434
|
+
get: operations["listTagCategories"];
|
|
1435
|
+
put?: never;
|
|
1436
|
+
/**
|
|
1437
|
+
* Create a tag category
|
|
1438
|
+
* @description Create a new tag category. Tags can then be assigned to it via upsertTag using the returned category id.
|
|
1439
|
+
*/
|
|
1440
|
+
post: operations["createTagCategory"];
|
|
1441
|
+
delete?: never;
|
|
1442
|
+
options?: never;
|
|
1443
|
+
head?: never;
|
|
1444
|
+
patch?: never;
|
|
1445
|
+
trace?: never;
|
|
1446
|
+
};
|
|
1447
|
+
"/tags/categories/{id}": {
|
|
1448
|
+
parameters: {
|
|
1449
|
+
query?: never;
|
|
1450
|
+
header?: never;
|
|
1451
|
+
path?: never;
|
|
1452
|
+
cookie?: never;
|
|
1453
|
+
};
|
|
1454
|
+
get?: never;
|
|
1455
|
+
/**
|
|
1456
|
+
* Update a tag category
|
|
1457
|
+
* @description Update the name and/or description of an existing tag category.
|
|
1458
|
+
*/
|
|
1459
|
+
put: operations["updateTagCategory"];
|
|
1460
|
+
post?: never;
|
|
1461
|
+
/**
|
|
1462
|
+
* Delete a tag category
|
|
1463
|
+
* @description Delete a tag category. Tags previously assigned to it become uncategorized.
|
|
1464
|
+
*/
|
|
1465
|
+
delete: operations["deleteTagCategory"];
|
|
1466
|
+
options?: never;
|
|
1467
|
+
head?: never;
|
|
1468
|
+
patch?: never;
|
|
1469
|
+
trace?: never;
|
|
1470
|
+
};
|
|
1423
1471
|
"/workflows/definitions": {
|
|
1424
1472
|
parameters: {
|
|
1425
1473
|
query?: never;
|
|
@@ -3673,14 +3721,6 @@ export interface components {
|
|
|
3673
3721
|
/** Format: date-time */
|
|
3674
3722
|
before?: string;
|
|
3675
3723
|
};
|
|
3676
|
-
CreateGroupDto: {
|
|
3677
|
-
name: string;
|
|
3678
|
-
description?: string;
|
|
3679
|
-
is_support_enabled?: boolean;
|
|
3680
|
-
support_office_hours_id?: string | null;
|
|
3681
|
-
/** @enum {string} */
|
|
3682
|
-
support_assignment_strategy?: "least-busy" | "round-robin" | "unassigned";
|
|
3683
|
-
};
|
|
3684
3724
|
MakeOutboundCallDto: {
|
|
3685
3725
|
phoneAgentId: string;
|
|
3686
3726
|
contact: {
|
|
@@ -3788,6 +3828,14 @@ export interface components {
|
|
|
3788
3828
|
}[];
|
|
3789
3829
|
}[];
|
|
3790
3830
|
};
|
|
3831
|
+
CreateGroupDto: {
|
|
3832
|
+
name: string;
|
|
3833
|
+
description?: string;
|
|
3834
|
+
is_support_enabled?: boolean;
|
|
3835
|
+
support_office_hours_id?: string | null;
|
|
3836
|
+
/** @enum {string} */
|
|
3837
|
+
support_assignment_strategy?: "least-busy" | "round-robin" | "unassigned";
|
|
3838
|
+
};
|
|
3791
3839
|
CreateVocCategoryDto: {
|
|
3792
3840
|
name: string;
|
|
3793
3841
|
description?: string | null;
|
|
@@ -4211,6 +4259,21 @@ export interface components {
|
|
|
4211
4259
|
type: components["schemas"]["SessionChannel"];
|
|
4212
4260
|
};
|
|
4213
4261
|
verified?: boolean | null;
|
|
4262
|
+
/** @description Session-level custom data to store on the chat session. */
|
|
4263
|
+
custom_data?: {
|
|
4264
|
+
[key: string]: string | number | boolean;
|
|
4265
|
+
};
|
|
4266
|
+
/** @description Contact to associate with the session. When provided (and no contact_id is given) a contact is created/updated and linked to the session; its custom_data is persisted on the contact. Honors the top-level `verified` flag — verified contacts write to custom_data, otherwise to non_verified_custom_data. */
|
|
4267
|
+
contact?: {
|
|
4268
|
+
/** Format: email */
|
|
4269
|
+
email?: string;
|
|
4270
|
+
name?: string;
|
|
4271
|
+
phone_number?: string;
|
|
4272
|
+
/** @description Custom data to store on the contact for this session. */
|
|
4273
|
+
custom_data?: {
|
|
4274
|
+
[key: string]: string;
|
|
4275
|
+
};
|
|
4276
|
+
};
|
|
4214
4277
|
};
|
|
4215
4278
|
UpdateChatSessionInput: {
|
|
4216
4279
|
/** @enum {string} */
|
|
@@ -4249,6 +4312,10 @@ export interface components {
|
|
|
4249
4312
|
[key: string]: string;
|
|
4250
4313
|
};
|
|
4251
4314
|
};
|
|
4315
|
+
/** @description Session-level custom data to merge into the chat session. Use contact.custom_data for contact-level attributes. */
|
|
4316
|
+
custom_data?: {
|
|
4317
|
+
[key: string]: string | number | boolean;
|
|
4318
|
+
};
|
|
4252
4319
|
agent?: {
|
|
4253
4320
|
id?: number;
|
|
4254
4321
|
name?: string;
|
|
@@ -4596,7 +4663,7 @@ export interface components {
|
|
|
4596
4663
|
trigger_type: "manual-trigger" | "ai-trigger" | "cron-trigger" | "form-trigger" | "webhook" | "contact-created" | "phone-call-started" | "phone-call-finished" | "ticket-created" | "ticket-reassigned" | "ticket-resolved" | "ticket-handoff" | "pre-ticket-handoff" | "ticket-tag-added" | "ticket-inactive" | "agent-inactive" | "sequence-completed" | "csat-score-submit" | "prohibited-topic-detected" | "sla-first-reply-breached" | "sla-next-reply-breached" | "sla-resolution-breached" | "voice-call-transferred" | "pre-voice-call-transfer" | "pre-phone-call-finished" | "manual-ticket-trigger" | "contact-message-received" | "macro-called" | "agent-availability-changed" | "agent-avail-in-team-changed";
|
|
4597
4664
|
/** @description Trigger-specific configuration (e.g. cron expression for cron-trigger) */
|
|
4598
4665
|
trigger_configuration?: unknown | null;
|
|
4599
|
-
/** @description Array of workflow steps and control-flow blocks. Each step is an object with { "$kind": "Action", "id": "<unique-step-id>", "type": "<action-type>", "name": "<display-name>", "input": { ... } }. Control-flow blocks use { "$kind": "Block", "type": "if-else", "id": "<unique-id>", "inputs": { "condition": { "operatorName": "equals", "left": "{{step_id.
|
|
4666
|
+
/** @description Array of workflow steps and control-flow blocks. Each step is an object with { "$kind": "Action", "id": "<unique-step-id>", "type": "<action-type>", "name": "<display-name>", "input": { ... } }. Control-flow blocks use { "$kind": "Block", "type": "if-else", "id": "<unique-id>", "inputs": { "condition": { "operatorName": "equals", "left": "{{step_id.field}}", "right": "value" } }, "branches": { "then": [...steps], "else": [...steps] } }. Use {{step_id.field}} to reference outputs from previous steps (no `.output.` segment — the field sits directly under the step id). */
|
|
4600
4667
|
workflow_blocks: unknown[];
|
|
4601
4668
|
/** @description React Flow editor state (nodes, edges, viewport) for the dashboard visual editor */
|
|
4602
4669
|
workflow_editor_state?: unknown | null;
|
|
@@ -4792,11 +4859,25 @@ export interface components {
|
|
|
4792
4859
|
description?: string | null;
|
|
4793
4860
|
/** @description If true, the AI will never auto-apply this tag (default: false) */
|
|
4794
4861
|
exclude_from_auto_tagging?: boolean;
|
|
4862
|
+
/** @description Assign the tag to a category (uuid), null to clear, omit to leave unchanged */
|
|
4863
|
+
category_id?: string | null;
|
|
4795
4864
|
};
|
|
4796
4865
|
UpdateAutoTaggingInputDto: {
|
|
4797
4866
|
/** @description Set true to enable, false to disable */
|
|
4798
4867
|
enabled: boolean;
|
|
4799
4868
|
};
|
|
4869
|
+
CreateTagCategoryInputDto: {
|
|
4870
|
+
/** @description Category name (e.g. "Billing", "Product Area") */
|
|
4871
|
+
name: string;
|
|
4872
|
+
/** @description What this category groups together (used to guide AI tagging) */
|
|
4873
|
+
description: string;
|
|
4874
|
+
};
|
|
4875
|
+
UpdateTagCategoryInputDto: {
|
|
4876
|
+
/** @description New category name */
|
|
4877
|
+
name?: string;
|
|
4878
|
+
/** @description New description for the category */
|
|
4879
|
+
description?: string;
|
|
4880
|
+
};
|
|
4800
4881
|
SearchTrainingKnowledgeInputDto: {
|
|
4801
4882
|
query: string;
|
|
4802
4883
|
/** @default 10 */
|
|
@@ -4939,6 +5020,50 @@ export interface components {
|
|
|
4939
5020
|
} | {
|
|
4940
5021
|
/** @constant */
|
|
4941
5022
|
type: "response_skipped";
|
|
5023
|
+
/** @enum {string} */
|
|
5024
|
+
reason?: "empty_response" | "potential_answers_dead_end";
|
|
5025
|
+
reasoning?: ({
|
|
5026
|
+
/** @constant */
|
|
5027
|
+
type: "reasoning";
|
|
5028
|
+
content: string;
|
|
5029
|
+
} | {
|
|
5030
|
+
/** @constant */
|
|
5031
|
+
type: "tool_call";
|
|
5032
|
+
call_id: string;
|
|
5033
|
+
tool_name: string;
|
|
5034
|
+
action?: {
|
|
5035
|
+
name: string;
|
|
5036
|
+
id: string;
|
|
5037
|
+
openapi?: {
|
|
5038
|
+
openapi_spec_id?: string;
|
|
5039
|
+
operation_spec: unknown;
|
|
5040
|
+
operation_id?: string;
|
|
5041
|
+
operation_method?: string;
|
|
5042
|
+
};
|
|
5043
|
+
metadata: unknown;
|
|
5044
|
+
required_form_submission?: boolean;
|
|
5045
|
+
is_handoff_like?: boolean;
|
|
5046
|
+
};
|
|
5047
|
+
call_arguments: string;
|
|
5048
|
+
call_result: string;
|
|
5049
|
+
})[];
|
|
5050
|
+
context?: {
|
|
5051
|
+
knowledgeBaseItems: {
|
|
5052
|
+
itemId: string;
|
|
5053
|
+
chunkIndex: number;
|
|
5054
|
+
title: string;
|
|
5055
|
+
url?: string;
|
|
5056
|
+
}[];
|
|
5057
|
+
instructions: {
|
|
5058
|
+
id: string;
|
|
5059
|
+
title: string;
|
|
5060
|
+
}[];
|
|
5061
|
+
tools: {
|
|
5062
|
+
name: string;
|
|
5063
|
+
}[];
|
|
5064
|
+
};
|
|
5065
|
+
suppressedResponseText?: string;
|
|
5066
|
+
reasoningSummary?: string;
|
|
4942
5067
|
} | {
|
|
4943
5068
|
/** @constant */
|
|
4944
5069
|
type: "response";
|
|
@@ -4984,6 +5109,7 @@ export interface components {
|
|
|
4984
5109
|
call_arguments: string;
|
|
4985
5110
|
call_result: string;
|
|
4986
5111
|
})[];
|
|
5112
|
+
reasoningSummary?: string;
|
|
4987
5113
|
/** @description Quick reply suggestions for the user */
|
|
4988
5114
|
quickReplySuggestions: {
|
|
4989
5115
|
toolName?: string | null;
|
|
@@ -5122,7 +5248,7 @@ export interface components {
|
|
|
5122
5248
|
}) | null;
|
|
5123
5249
|
knowledgebase_called?: boolean | null;
|
|
5124
5250
|
/** @enum {string} */
|
|
5125
|
-
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";
|
|
5251
|
+
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_not_reply" | "ai_decided_to_resolve_the_issue" | "ai_reopened_session" | "ai_response_cancelled" | "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";
|
|
5126
5252
|
extra_params?: {
|
|
5127
5253
|
[key: string]: unknown;
|
|
5128
5254
|
} | null;
|
|
@@ -5138,6 +5264,7 @@ export interface components {
|
|
|
5138
5264
|
contact_source?: ("form" | "freshchat" | "hubspot" | "intercom" | "pipedream" | "salesforce" | "slack") | null;
|
|
5139
5265
|
contact_slack_data?: string | null;
|
|
5140
5266
|
attachments?: components["schemas"]["ChatAttachmentDto"][] | null;
|
|
5267
|
+
email_rfc_message_id?: string | null;
|
|
5141
5268
|
external_message_id?: string | null;
|
|
5142
5269
|
csat_score?: number | null;
|
|
5143
5270
|
csat_feedback?: string | null;
|
|
@@ -5163,27 +5290,6 @@ export interface components {
|
|
|
5163
5290
|
edited_at?: string | null;
|
|
5164
5291
|
deleted_at?: string | null;
|
|
5165
5292
|
};
|
|
5166
|
-
GroupUsersDto: {
|
|
5167
|
-
id: number;
|
|
5168
|
-
name: string;
|
|
5169
|
-
email: string;
|
|
5170
|
-
is_available: boolean;
|
|
5171
|
-
group_capacity: number | null;
|
|
5172
|
-
global_capacity: number;
|
|
5173
|
-
};
|
|
5174
|
-
GroupDto: {
|
|
5175
|
-
id: string;
|
|
5176
|
-
organization_id: string;
|
|
5177
|
-
name: string;
|
|
5178
|
-
description: string | null;
|
|
5179
|
-
is_support_enabled: boolean;
|
|
5180
|
-
support_office_hours_id: string | null;
|
|
5181
|
-
/** @enum {string} */
|
|
5182
|
-
support_assignment_strategy: "least-busy" | "round-robin" | "unassigned";
|
|
5183
|
-
created_at: string | null;
|
|
5184
|
-
updated_at: string | null;
|
|
5185
|
-
deleted_at: string | null;
|
|
5186
|
-
};
|
|
5187
5293
|
PhoneAgentDto: {
|
|
5188
5294
|
id: string;
|
|
5189
5295
|
org_id: string;
|
|
@@ -5216,6 +5322,7 @@ export interface components {
|
|
|
5216
5322
|
background_noise_preset: ("office" | "bar" | "city-street") | null;
|
|
5217
5323
|
recording_enabled: boolean;
|
|
5218
5324
|
stt_keyterms: string[];
|
|
5325
|
+
stt_model: ("deepgram/flux-general" | "deepgram/nova-3" | "deepgram/nova-3-medical" | "cartesia/ink-whisper" | "elevenlabs/scribe_v2_realtime" | "xai/stt-1") | null;
|
|
5219
5326
|
failover_transfer_destination_id: string | null;
|
|
5220
5327
|
};
|
|
5221
5328
|
PhoneAgentVoiceDto: {
|
|
@@ -5338,6 +5445,27 @@ export interface components {
|
|
|
5338
5445
|
ended_at: string | null;
|
|
5339
5446
|
status: components["schemas"]["SequenceStatus"] | null;
|
|
5340
5447
|
};
|
|
5448
|
+
GroupUsersDto: {
|
|
5449
|
+
id: number;
|
|
5450
|
+
name: string;
|
|
5451
|
+
email: string;
|
|
5452
|
+
is_available: boolean;
|
|
5453
|
+
group_capacity: number | null;
|
|
5454
|
+
global_capacity: number;
|
|
5455
|
+
};
|
|
5456
|
+
GroupDto: {
|
|
5457
|
+
id: string;
|
|
5458
|
+
organization_id: string;
|
|
5459
|
+
name: string;
|
|
5460
|
+
description: string | null;
|
|
5461
|
+
is_support_enabled: boolean;
|
|
5462
|
+
support_office_hours_id: string | null;
|
|
5463
|
+
/** @enum {string} */
|
|
5464
|
+
support_assignment_strategy: "least-busy" | "round-robin" | "unassigned";
|
|
5465
|
+
created_at: string | null;
|
|
5466
|
+
updated_at: string | null;
|
|
5467
|
+
deleted_at: string | null;
|
|
5468
|
+
};
|
|
5341
5469
|
VersionHistoryItemDto: {
|
|
5342
5470
|
/** Format: uuid */
|
|
5343
5471
|
id: string;
|
|
@@ -5906,7 +6034,7 @@ export interface components {
|
|
|
5906
6034
|
};
|
|
5907
6035
|
InvestigationTicketingSystem: {
|
|
5908
6036
|
/** @enum {string} */
|
|
5909
|
-
name: "dynamics365" | "freshchat" | "freshdesk" | "front" | "gorgias" | "hubspot" | "infobip" | "intercom" | "open" | "salesforce" | "salesforce_v2" | "twilio_flex" | "zendesk" | "zendesk_v2";
|
|
6037
|
+
name: "dynamics365" | "freshchat" | "freshdesk" | "freshdesk_ticketing" | "front" | "gorgias" | "hubspot" | "infobip" | "intercom" | "open" | "salesforce" | "salesforce_v2" | "twilio_flex" | "zendesk" | "zendesk_v2";
|
|
5910
6038
|
external_id: string;
|
|
5911
6039
|
/** @enum {string} */
|
|
5912
6040
|
id_type: "conversation_id" | "ticket_id" | "case_id" | "conversation_sid";
|
|
@@ -6045,6 +6173,7 @@ export interface components {
|
|
|
6045
6173
|
};
|
|
6046
6174
|
language?: string;
|
|
6047
6175
|
assignee_id?: string | null;
|
|
6176
|
+
/** @description Session-level custom data stored on the chat session. */
|
|
6048
6177
|
custom_data?: {
|
|
6049
6178
|
[key: string]: string | number | boolean;
|
|
6050
6179
|
};
|
|
@@ -6061,7 +6190,7 @@ export interface components {
|
|
|
6061
6190
|
};
|
|
6062
6191
|
ticketing_system?: {
|
|
6063
6192
|
/** @enum {string} */
|
|
6064
|
-
name: "dynamics365" | "freshchat" | "freshdesk" | "front" | "gorgias" | "hubspot" | "infobip" | "intercom" | "open" | "salesforce" | "salesforce_v2" | "twilio_flex" | "zendesk" | "zendesk_v2";
|
|
6193
|
+
name: "dynamics365" | "freshchat" | "freshdesk" | "freshdesk_ticketing" | "front" | "gorgias" | "hubspot" | "infobip" | "intercom" | "open" | "salesforce" | "salesforce_v2" | "twilio_flex" | "zendesk" | "zendesk_v2";
|
|
6065
6194
|
external_id: string;
|
|
6066
6195
|
/** @enum {string} */
|
|
6067
6196
|
id_type: "conversation_id" | "ticket_id" | "case_id" | "conversation_sid";
|
|
@@ -6100,7 +6229,7 @@ export interface components {
|
|
|
6100
6229
|
} | ({
|
|
6101
6230
|
/** @constant */
|
|
6102
6231
|
success: true;
|
|
6103
|
-
code?: string | "session_assigned_to_human_agent" | "response_cancelled" | "skipping_unuseful_response";
|
|
6232
|
+
code?: string | "session_assigned_to_human_agent" | "response_cancelled" | "skipping_unuseful_response" | "duplicate_message_ignored";
|
|
6104
6233
|
autopilotResponse?: {
|
|
6105
6234
|
/** @constant */
|
|
6106
6235
|
type: "text";
|
|
@@ -6754,6 +6883,25 @@ export interface components {
|
|
|
6754
6883
|
description: string | null;
|
|
6755
6884
|
/** @description If true, the AI will never auto-apply this tag */
|
|
6756
6885
|
exclude_from_auto_tagging: boolean;
|
|
6886
|
+
/** @description Category this tag belongs to, or null if uncategorized */
|
|
6887
|
+
category_id: string | null;
|
|
6888
|
+
/** Format: date-time */
|
|
6889
|
+
created_at: string;
|
|
6890
|
+
/** Format: date-time */
|
|
6891
|
+
updated_at: string;
|
|
6892
|
+
};
|
|
6893
|
+
TagCategoryPublicResponseDto: {
|
|
6894
|
+
/**
|
|
6895
|
+
* Format: uuid
|
|
6896
|
+
* @description The category id
|
|
6897
|
+
*/
|
|
6898
|
+
id: string;
|
|
6899
|
+
/** @description The organization this category belongs to */
|
|
6900
|
+
org_id: string;
|
|
6901
|
+
/** @description The category name (unique per org) */
|
|
6902
|
+
name: string;
|
|
6903
|
+
/** @description What this category groups together */
|
|
6904
|
+
description: string;
|
|
6757
6905
|
/** Format: date-time */
|
|
6758
6906
|
created_at: string;
|
|
6759
6907
|
/** Format: date-time */
|
|
@@ -6817,7 +6965,7 @@ export interface components {
|
|
|
6817
6965
|
/** Format: email */
|
|
6818
6966
|
email: string;
|
|
6819
6967
|
avatar_url?: string | null;
|
|
6820
|
-
permissions?: (
|
|
6968
|
+
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" | "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")[] | null;
|
|
6821
6969
|
};
|
|
6822
6970
|
OrgUserDetail: {
|
|
6823
6971
|
id: number;
|
|
@@ -6826,7 +6974,7 @@ export interface components {
|
|
|
6826
6974
|
/** Format: email */
|
|
6827
6975
|
email: string;
|
|
6828
6976
|
avatar_url?: string | null;
|
|
6829
|
-
permissions?: (
|
|
6977
|
+
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" | "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")[] | null;
|
|
6830
6978
|
teams: {
|
|
6831
6979
|
group: components["schemas"]["GroupDto"];
|
|
6832
6980
|
is_user_available_on_group: boolean;
|
|
@@ -7014,7 +7162,7 @@ export interface components {
|
|
|
7014
7162
|
icon: string;
|
|
7015
7163
|
/** @description Input fields this action accepts. Pass these in the "input" object of the workflow block. */
|
|
7016
7164
|
input_fields: components["schemas"]["FieldSchemaPublicDto"][] | null;
|
|
7017
|
-
/** @description Output fields this action produces. Reference via {{step_id.
|
|
7165
|
+
/** @description Output fields this action produces. Reference via {{step_id.field_name}}. */
|
|
7018
7166
|
output_fields: components["schemas"]["FieldSchemaPublicDto"][] | null;
|
|
7019
7167
|
/** @description Raw nested input schema for actions whose inputs include `Field.Object` or `Field.JsonSchema` properties (e.g. ask-ai's resultShape, make-http-call's responseSchema). When set, this is the source of truth — input_fields is a flattened summary. */
|
|
7020
7168
|
input_shape: unknown | null;
|
|
@@ -7039,17 +7187,34 @@ export interface components {
|
|
|
7039
7187
|
/** @description Field schema for the trigger configuration. When non-empty, the workflow author MUST set every required property in trigger_configuration. Examples: ai-trigger needs theGoalOfTheWorkflow + aiPayloadShape; cron-trigger needs cronExpression; webhook needs accessControl. */
|
|
7040
7188
|
configuration_def: unknown | null;
|
|
7041
7189
|
};
|
|
7190
|
+
OperatorPublicDto: {
|
|
7191
|
+
/** @description Operator identifier — use this exact value as "operatorName" in conditions (e.g. "equals", "notEquals", "stringContains"). */
|
|
7192
|
+
name: string;
|
|
7193
|
+
/** @description Human-readable name */
|
|
7194
|
+
display_name: string;
|
|
7195
|
+
/**
|
|
7196
|
+
* @description Operator arity. "Unary": condition takes "left" only. "Binary": condition takes "left" and "right". "Logical": "and"/"or" take a "conditions" array of nested conditions; "not" takes a single "condition".
|
|
7197
|
+
* @enum {string}
|
|
7198
|
+
*/
|
|
7199
|
+
type: "Unary" | "Binary" | "Logical";
|
|
7200
|
+
/** @description Field types this operator can be applied to */
|
|
7201
|
+
applies_to: ("String" | "Number" | "Boolean" | "Array" | "Object" | "DateTime" | "LongText" | "Url" | "Email" | "Select" | "LazySelect" | "Code" | "MultiSelect" | "JsonSchema" | "Any" | "AnyObject" | "RichText" | "File")[];
|
|
7202
|
+
};
|
|
7042
7203
|
WorkflowDefinitionsPublicDto: {
|
|
7043
7204
|
/** @description Available action types with their input/output schemas */
|
|
7044
7205
|
action_types: components["schemas"]["ActionTypePublicDto"][];
|
|
7045
7206
|
/** @description Available trigger types */
|
|
7046
7207
|
trigger_types: components["schemas"]["TriggerTypePublicDto"][];
|
|
7047
|
-
/** @description Available control-flow block types
|
|
7208
|
+
/** @description Available control-flow block types */
|
|
7048
7209
|
block_types: {
|
|
7049
7210
|
type: string;
|
|
7050
7211
|
name: string;
|
|
7051
7212
|
description: string;
|
|
7052
7213
|
}[];
|
|
7214
|
+
/** @description Condition operators for if-else blocks, from the engine registry. This is the complete set the runtime evaluates — always pick "operatorName" from this list. */
|
|
7215
|
+
operators: components["schemas"]["OperatorPublicDto"][];
|
|
7216
|
+
/** @description Field schemas for the extra reference scopes available in every run, beyond the trigger payload and step outputs. Each entry's "name" is the scope root and its "properties" are the referenceable fields: {{metadata.<field>}} (date/time of the run), {{run.<field>}}, {{workflow.<field>}}, {{organization.<field>}}, and {{variables.<key>}} for the organization's global variables. */
|
|
7217
|
+
extra_variables: unknown[];
|
|
7053
7218
|
};
|
|
7054
7219
|
TestWorkflowPublicOutput: {
|
|
7055
7220
|
/** @description UUID of the test run — feed into /workflows/:workflow_id/runs/:run_id */
|
|
@@ -7252,6 +7417,7 @@ export interface components {
|
|
|
7252
7417
|
UpdateAutoTaggingOutput: {
|
|
7253
7418
|
enabled: boolean;
|
|
7254
7419
|
};
|
|
7420
|
+
ListTagCategoriesOutput: components["schemas"]["TagCategoryPublicResponseDto"][];
|
|
7255
7421
|
ListWorkflowsOutput: components["schemas"]["WorkflowPublicResponseDto"][];
|
|
7256
7422
|
DeleteWorkflowOutput: {
|
|
7257
7423
|
success: boolean;
|
|
@@ -10306,6 +10472,134 @@ export interface operations {
|
|
|
10306
10472
|
};
|
|
10307
10473
|
};
|
|
10308
10474
|
};
|
|
10475
|
+
listTagCategories: {
|
|
10476
|
+
parameters: {
|
|
10477
|
+
query?: never;
|
|
10478
|
+
header?: never;
|
|
10479
|
+
path?: never;
|
|
10480
|
+
cookie?: never;
|
|
10481
|
+
};
|
|
10482
|
+
requestBody?: never;
|
|
10483
|
+
responses: {
|
|
10484
|
+
/** @description Default Response */
|
|
10485
|
+
200: {
|
|
10486
|
+
headers: {
|
|
10487
|
+
[name: string]: unknown;
|
|
10488
|
+
};
|
|
10489
|
+
content: {
|
|
10490
|
+
"application/json": components["schemas"]["ListTagCategoriesOutput"];
|
|
10491
|
+
};
|
|
10492
|
+
};
|
|
10493
|
+
/** @description Internal Server Error */
|
|
10494
|
+
500: {
|
|
10495
|
+
headers: {
|
|
10496
|
+
[name: string]: unknown;
|
|
10497
|
+
};
|
|
10498
|
+
content: {
|
|
10499
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
10500
|
+
};
|
|
10501
|
+
};
|
|
10502
|
+
};
|
|
10503
|
+
};
|
|
10504
|
+
createTagCategory: {
|
|
10505
|
+
parameters: {
|
|
10506
|
+
query?: never;
|
|
10507
|
+
header?: never;
|
|
10508
|
+
path?: never;
|
|
10509
|
+
cookie?: never;
|
|
10510
|
+
};
|
|
10511
|
+
requestBody: {
|
|
10512
|
+
content: {
|
|
10513
|
+
"application/json": components["schemas"]["CreateTagCategoryInputDto"];
|
|
10514
|
+
};
|
|
10515
|
+
};
|
|
10516
|
+
responses: {
|
|
10517
|
+
/** @description Default Response */
|
|
10518
|
+
201: {
|
|
10519
|
+
headers: {
|
|
10520
|
+
[name: string]: unknown;
|
|
10521
|
+
};
|
|
10522
|
+
content: {
|
|
10523
|
+
"application/json": components["schemas"]["TagCategoryPublicResponseDto"];
|
|
10524
|
+
};
|
|
10525
|
+
};
|
|
10526
|
+
/** @description Internal Server Error */
|
|
10527
|
+
500: {
|
|
10528
|
+
headers: {
|
|
10529
|
+
[name: string]: unknown;
|
|
10530
|
+
};
|
|
10531
|
+
content: {
|
|
10532
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
10533
|
+
};
|
|
10534
|
+
};
|
|
10535
|
+
};
|
|
10536
|
+
};
|
|
10537
|
+
updateTagCategory: {
|
|
10538
|
+
parameters: {
|
|
10539
|
+
query?: never;
|
|
10540
|
+
header?: never;
|
|
10541
|
+
path: {
|
|
10542
|
+
/** @description The category id to update */
|
|
10543
|
+
id: string;
|
|
10544
|
+
};
|
|
10545
|
+
cookie?: never;
|
|
10546
|
+
};
|
|
10547
|
+
requestBody: {
|
|
10548
|
+
content: {
|
|
10549
|
+
"application/json": components["schemas"]["UpdateTagCategoryInputDto"];
|
|
10550
|
+
};
|
|
10551
|
+
};
|
|
10552
|
+
responses: {
|
|
10553
|
+
/** @description Default Response */
|
|
10554
|
+
200: {
|
|
10555
|
+
headers: {
|
|
10556
|
+
[name: string]: unknown;
|
|
10557
|
+
};
|
|
10558
|
+
content: {
|
|
10559
|
+
"application/json": components["schemas"]["TagCategoryPublicResponseDto"];
|
|
10560
|
+
};
|
|
10561
|
+
};
|
|
10562
|
+
/** @description Internal Server Error */
|
|
10563
|
+
500: {
|
|
10564
|
+
headers: {
|
|
10565
|
+
[name: string]: unknown;
|
|
10566
|
+
};
|
|
10567
|
+
content: {
|
|
10568
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
10569
|
+
};
|
|
10570
|
+
};
|
|
10571
|
+
};
|
|
10572
|
+
};
|
|
10573
|
+
deleteTagCategory: {
|
|
10574
|
+
parameters: {
|
|
10575
|
+
query?: never;
|
|
10576
|
+
header?: never;
|
|
10577
|
+
path: {
|
|
10578
|
+
/** @description The category id to delete */
|
|
10579
|
+
id: string;
|
|
10580
|
+
};
|
|
10581
|
+
cookie?: never;
|
|
10582
|
+
};
|
|
10583
|
+
requestBody?: never;
|
|
10584
|
+
responses: {
|
|
10585
|
+
/** @description Default Response */
|
|
10586
|
+
200: {
|
|
10587
|
+
headers: {
|
|
10588
|
+
[name: string]: unknown;
|
|
10589
|
+
};
|
|
10590
|
+
content?: never;
|
|
10591
|
+
};
|
|
10592
|
+
/** @description Internal Server Error */
|
|
10593
|
+
500: {
|
|
10594
|
+
headers: {
|
|
10595
|
+
[name: string]: unknown;
|
|
10596
|
+
};
|
|
10597
|
+
content: {
|
|
10598
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
10599
|
+
};
|
|
10600
|
+
};
|
|
10601
|
+
};
|
|
10602
|
+
};
|
|
10309
10603
|
listWorkflowDefinitions: {
|
|
10310
10604
|
parameters: {
|
|
10311
10605
|
query?: never;
|