@opencx/mcp 1.15.84 → 1.15.85
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 +63 -40
- package/dist/schema.d.ts.map +1 -1
- package/dist/tools/sessions.js +1 -1
- package/dist/tools/sessions.js.map +1 -1
- package/dist/tools/structured-fields.d.ts.map +1 -1
- package/dist/tools/structured-fields.js +4 -2
- package/dist/tools/structured-fields.js.map +1 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -268,7 +268,7 @@ export interface paths {
|
|
|
268
268
|
};
|
|
269
269
|
/**
|
|
270
270
|
* Export session events
|
|
271
|
-
* @description Pull existing session history across your organization, including system events and internal notes. Uses the same id, created_at and typed event structure as GET /chat/sessions/{session_id}/history, with session/contact IDs, the stored message_type and export metadata. Types without a history mapping are retained as unmapped_event; checkpoint payloads are omitted. created_after is inclusive; created_before is exclusive. Both date bounds are optional. include_message_types overrides exclude_message_types; neither filter returns all message types. Returns recorded actor identities, assignment targets, sub-status IDs and workflow details when available. Does not reconstruct missing historical identities or track session/contact attribute changes. Use a fixed date window when paging, retain the same filters, and deduplicate by event ID. Timestamps are event times: historical imports can arrive later and edits do not change original creation times; reconcile previously exported windows to pick up late or edited history. Requires chat-sessions:read.
|
|
271
|
+
* @description Pull existing session history across your organization, including system events and internal notes. Uses the same id, created_at and typed event structure as GET /chat/sessions/{session_id}/history, with session/contact IDs, the stored message_type and export metadata. Per-message email headers are excluded from exports; retrieve them from session history. Types without a history mapping are retained as unmapped_event; checkpoint payloads are omitted. created_after is inclusive; created_before is exclusive. Both date bounds are optional. include_message_types overrides exclude_message_types; neither filter returns all message types. Returns recorded actor identities, assignment targets, sub-status IDs and workflow details when available. Does not reconstruct missing historical identities or track session/contact attribute changes. Use a fixed date window when paging, retain the same filters, and deduplicate by event ID. Timestamps are event times: historical imports can arrive later and edits do not change original creation times; reconcile previously exported windows to pick up late or edited history. Requires chat-sessions:read.
|
|
272
272
|
*/
|
|
273
273
|
get: operations["listSessionEvents"];
|
|
274
274
|
put?: never;
|
|
@@ -3625,7 +3625,7 @@ export interface paths {
|
|
|
3625
3625
|
put?: never;
|
|
3626
3626
|
/**
|
|
3627
3627
|
* Redact all messages in a session
|
|
3628
|
-
* @description Redact
|
|
3628
|
+
* @description Redact a session by session ID, including its messages, attached images, and saved Session notes
|
|
3629
3629
|
*/
|
|
3630
3630
|
post: operations["redactSession"];
|
|
3631
3631
|
delete?: never;
|
|
@@ -15093,6 +15093,34 @@ export interface components {
|
|
|
15093
15093
|
id: string;
|
|
15094
15094
|
created_at: string;
|
|
15095
15095
|
event: {
|
|
15096
|
+
/** @constant */
|
|
15097
|
+
type: "message";
|
|
15098
|
+
sender: components["schemas"]["ChatMessageSender"];
|
|
15099
|
+
/** @description Per-message email headers. Omitted when no email metadata is stored. Does not include BCC recipients. */
|
|
15100
|
+
email?: {
|
|
15101
|
+
/** @description Original sender address, when stored; may differ from the session contact when Reply-To is used. */
|
|
15102
|
+
from?: string;
|
|
15103
|
+
/** @description Visible To recipients recorded for this message. */
|
|
15104
|
+
to: string[];
|
|
15105
|
+
/** @description Visible CC recipients recorded for this message. */
|
|
15106
|
+
cc: string[];
|
|
15107
|
+
};
|
|
15108
|
+
content: {
|
|
15109
|
+
/** @constant */
|
|
15110
|
+
type: "text";
|
|
15111
|
+
text: string;
|
|
15112
|
+
};
|
|
15113
|
+
context?: {
|
|
15114
|
+
[key: string]: unknown;
|
|
15115
|
+
};
|
|
15116
|
+
/** @description Custom data attached to this message by the sender (e.g. via the widget SDK) */
|
|
15117
|
+
custom_data?: {
|
|
15118
|
+
[key: string]: unknown;
|
|
15119
|
+
};
|
|
15120
|
+
attachments: components["schemas"]["PublicChatAttachment"][];
|
|
15121
|
+
/** @description Agent messages sent from a macro with options: the options the contact can tap. Report a tap with `message.option_reply` on Send a message. */
|
|
15122
|
+
options?: components["schemas"]["MessageOptionDto"][];
|
|
15123
|
+
} | {
|
|
15096
15124
|
/** @constant */
|
|
15097
15125
|
type: "session_merged";
|
|
15098
15126
|
/** @constant */
|
|
@@ -15113,6 +15141,13 @@ export interface components {
|
|
|
15113
15141
|
} | {
|
|
15114
15142
|
/** @constant */
|
|
15115
15143
|
type: "api";
|
|
15144
|
+
} | {
|
|
15145
|
+
/** @constant */
|
|
15146
|
+
type: "workflow";
|
|
15147
|
+
/** @description The workflow that performed the merge. */
|
|
15148
|
+
id: string;
|
|
15149
|
+
/** @description The workflow run that performed the merge. */
|
|
15150
|
+
workflow_run_id: string;
|
|
15116
15151
|
};
|
|
15117
15152
|
redacted?: boolean;
|
|
15118
15153
|
};
|
|
@@ -15156,25 +15191,6 @@ export interface components {
|
|
|
15156
15191
|
text: string;
|
|
15157
15192
|
};
|
|
15158
15193
|
comment_thread_id: string | null;
|
|
15159
|
-
} | {
|
|
15160
|
-
/** @constant */
|
|
15161
|
-
type: "message";
|
|
15162
|
-
sender: components["schemas"]["ChatMessageSender"];
|
|
15163
|
-
content: {
|
|
15164
|
-
/** @constant */
|
|
15165
|
-
type: "text";
|
|
15166
|
-
text: string;
|
|
15167
|
-
};
|
|
15168
|
-
context?: {
|
|
15169
|
-
[key: string]: unknown;
|
|
15170
|
-
};
|
|
15171
|
-
/** @description Custom data attached to this message by the sender (e.g. via the widget SDK) */
|
|
15172
|
-
custom_data?: {
|
|
15173
|
-
[key: string]: unknown;
|
|
15174
|
-
};
|
|
15175
|
-
attachments: components["schemas"]["PublicChatAttachment"][];
|
|
15176
|
-
/** @description Agent messages sent from a macro with options: the options the contact can tap. Report a tap with `message.option_reply` on Send a message. */
|
|
15177
|
-
options?: components["schemas"]["MessageOptionDto"][];
|
|
15178
15194
|
} | {
|
|
15179
15195
|
/**
|
|
15180
15196
|
* @description An AI draft reply produced in assist mode — suggested to the human support team, never delivered to the contact.
|
|
@@ -15423,6 +15439,25 @@ export interface components {
|
|
|
15423
15439
|
id: string;
|
|
15424
15440
|
created_at: string;
|
|
15425
15441
|
event: {
|
|
15442
|
+
/** @constant */
|
|
15443
|
+
type: "message";
|
|
15444
|
+
sender: components["schemas"]["ChatMessageSender"];
|
|
15445
|
+
content: {
|
|
15446
|
+
/** @constant */
|
|
15447
|
+
type: "text";
|
|
15448
|
+
text: string;
|
|
15449
|
+
};
|
|
15450
|
+
context?: {
|
|
15451
|
+
[key: string]: unknown;
|
|
15452
|
+
};
|
|
15453
|
+
/** @description Custom data attached to this message by the sender (e.g. via the widget SDK) */
|
|
15454
|
+
custom_data?: {
|
|
15455
|
+
[key: string]: unknown;
|
|
15456
|
+
};
|
|
15457
|
+
attachments: components["schemas"]["PublicChatAttachment"][];
|
|
15458
|
+
/** @description Agent messages sent from a macro with options: the options the contact can tap. Report a tap with `message.option_reply` on Send a message. */
|
|
15459
|
+
options?: components["schemas"]["MessageOptionDto"][];
|
|
15460
|
+
} | {
|
|
15426
15461
|
/** @constant */
|
|
15427
15462
|
type: "session_merged";
|
|
15428
15463
|
/** @constant */
|
|
@@ -15443,6 +15478,13 @@ export interface components {
|
|
|
15443
15478
|
} | {
|
|
15444
15479
|
/** @constant */
|
|
15445
15480
|
type: "api";
|
|
15481
|
+
} | {
|
|
15482
|
+
/** @constant */
|
|
15483
|
+
type: "workflow";
|
|
15484
|
+
/** @description The workflow that performed the merge. */
|
|
15485
|
+
id: string;
|
|
15486
|
+
/** @description The workflow run that performed the merge. */
|
|
15487
|
+
workflow_run_id: string;
|
|
15446
15488
|
};
|
|
15447
15489
|
redacted?: boolean;
|
|
15448
15490
|
};
|
|
@@ -15486,25 +15528,6 @@ export interface components {
|
|
|
15486
15528
|
text: string;
|
|
15487
15529
|
};
|
|
15488
15530
|
comment_thread_id: string | null;
|
|
15489
|
-
} | {
|
|
15490
|
-
/** @constant */
|
|
15491
|
-
type: "message";
|
|
15492
|
-
sender: components["schemas"]["ChatMessageSender"];
|
|
15493
|
-
content: {
|
|
15494
|
-
/** @constant */
|
|
15495
|
-
type: "text";
|
|
15496
|
-
text: string;
|
|
15497
|
-
};
|
|
15498
|
-
context?: {
|
|
15499
|
-
[key: string]: unknown;
|
|
15500
|
-
};
|
|
15501
|
-
/** @description Custom data attached to this message by the sender (e.g. via the widget SDK) */
|
|
15502
|
-
custom_data?: {
|
|
15503
|
-
[key: string]: unknown;
|
|
15504
|
-
};
|
|
15505
|
-
attachments: components["schemas"]["PublicChatAttachment"][];
|
|
15506
|
-
/** @description Agent messages sent from a macro with options: the options the contact can tap. Report a tap with `message.option_reply` on Send a message. */
|
|
15507
|
-
options?: components["schemas"]["MessageOptionDto"][];
|
|
15508
15531
|
} | {
|
|
15509
15532
|
/**
|
|
15510
15533
|
* @description An AI draft reply produced in assist mode — suggested to the human support team, never delivered to the contact.
|