@opencx/mcp 1.11.25 → 1.11.36
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/api-client.d.ts +3 -3
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +3 -18
- package/dist/api-client.js.map +1 -1
- package/dist/schema.d.ts +352 -4
- package/dist/schema.d.ts.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +2 -0
- package/dist/server.js.map +1 -1
- package/dist/tools/actions.d.ts.map +1 -1
- package/dist/tools/actions.js +10 -14
- package/dist/tools/actions.js.map +1 -1
- package/dist/tools/audit-logs.d.ts.map +1 -1
- package/dist/tools/audit-logs.js +36 -33
- package/dist/tools/audit-logs.js.map +1 -1
- package/dist/tools/contacts.d.ts.map +1 -1
- package/dist/tools/contacts.js +18 -16
- package/dist/tools/contacts.js.map +1 -1
- package/dist/tools/coworker.d.ts.map +1 -1
- package/dist/tools/coworker.js +46 -37
- package/dist/tools/coworker.js.map +1 -1
- package/dist/tools/email-templates.d.ts +4 -0
- package/dist/tools/email-templates.d.ts.map +1 -0
- package/dist/tools/email-templates.js +79 -0
- package/dist/tools/email-templates.js.map +1 -0
- package/dist/tools/firecrawl.d.ts.map +1 -1
- package/dist/tools/firecrawl.js +31 -24
- package/dist/tools/firecrawl.js.map +1 -1
- package/dist/tools/impact-report.d.ts.map +1 -1
- package/dist/tools/impact-report.js +12 -9
- package/dist/tools/impact-report.js.map +1 -1
- package/dist/tools/insights.d.ts.map +1 -1
- package/dist/tools/insights.js +87 -6
- package/dist/tools/insights.js.map +1 -1
- package/dist/tools/onboarding.d.ts.map +1 -1
- package/dist/tools/onboarding.js +7 -4
- package/dist/tools/onboarding.js.map +1 -1
- package/dist/tools/phone.d.ts.map +1 -1
- package/dist/tools/phone.js +7 -8
- package/dist/tools/phone.js.map +1 -1
- package/dist/tools/sequences.d.ts.map +1 -1
- package/dist/tools/sequences.js +2 -1
- package/dist/tools/sequences.js.map +1 -1
- package/dist/tools/sessions.d.ts.map +1 -1
- package/dist/tools/sessions.js +39 -50
- package/dist/tools/sessions.js.map +1 -1
- package/dist/tools/sla-analytics.d.ts.map +1 -1
- package/dist/tools/sla-analytics.js +7 -5
- package/dist/tools/sla-analytics.js.map +1 -1
- package/dist/tools/todos.d.ts.map +1 -1
- package/dist/tools/todos.js +19 -13
- package/dist/tools/todos.js.map +1 -1
- package/dist/tools/training.d.ts.map +1 -1
- package/dist/tools/training.js +22 -19
- package/dist/tools/training.js.map +1 -1
- package/dist/tools/users.d.ts.map +1 -1
- package/dist/tools/users.js +27 -15
- package/dist/tools/users.js.map +1 -1
- package/dist/tools/workflows.d.ts.map +1 -1
- package/dist/tools/workflows.js +73 -40
- package/dist/tools/workflows.js.map +1 -1
- package/dist/utils/json.d.ts +9 -0
- package/dist/utils/json.d.ts.map +1 -0
- package/dist/utils/json.js +10 -0
- package/dist/utils/json.js.map +1 -0
- package/dist/utils/session-channel.d.ts +4 -0
- package/dist/utils/session-channel.d.ts.map +1 -0
- package/dist/utils/session-channel.js +15 -0
- package/dist/utils/session-channel.js.map +1 -0
- package/dist/workflow-editor-state.d.ts +12 -2
- package/dist/workflow-editor-state.d.ts.map +1 -1
- package/dist/workflow-editor-state.js.map +1 -1
- package/dist/workflows.spec.d.ts +2 -0
- package/dist/workflows.spec.d.ts.map +1 -0
- package/dist/workflows.spec.js +109 -0
- package/dist/workflows.spec.js.map +1 -0
- package/package.json +1 -1
package/dist/api-client.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Client } from 'openapi-fetch';
|
|
2
2
|
import type { paths } from './schema.js';
|
|
3
|
+
import { type JsonValue } from './utils/json.js';
|
|
3
4
|
export declare class ApiError extends Error {
|
|
4
5
|
readonly status: number;
|
|
5
6
|
readonly statusText: string;
|
|
@@ -16,15 +17,14 @@ export declare class ApiError extends Error {
|
|
|
16
17
|
export declare function safePath(segment: string): string;
|
|
17
18
|
export type OpenCXClient = Client<paths> & {
|
|
18
19
|
readonly coworkerSessionId: string | undefined;
|
|
19
|
-
postMultipart(path: string, formData: FormData): Promise<
|
|
20
|
-
postJson(path: string, body: unknown): Promise<unknown>;
|
|
20
|
+
postMultipart(path: string, formData: FormData): Promise<JsonValue>;
|
|
21
21
|
};
|
|
22
22
|
export declare function createOpenCXClient(apiKey: string, baseUrl: string): OpenCXClient;
|
|
23
23
|
/**
|
|
24
24
|
* Wraps a value as an MCP text-content result. Handles `undefined` from 204
|
|
25
25
|
* responses by falling back to `{}` so `JSON.stringify` always produces a string.
|
|
26
26
|
*/
|
|
27
|
-
export declare function jsonContent(data:
|
|
27
|
+
export declare function jsonContent<T>(data: T | undefined): {
|
|
28
28
|
content: [{
|
|
29
29
|
type: 'text';
|
|
30
30
|
text: string;
|
package/dist/api-client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAAA,OAAqB,EAAE,KAAK,MAAM,EAAmB,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAAA,OAAqB,EAAE,KAAK,MAAM,EAAmB,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAElE,qBAAa,QAAS,SAAQ,KAAK;aAEf,MAAM,EAAE,MAAM;aACd,UAAU,EAAE,MAAM;aAClB,IAAI,EAAE,MAAM;gBAFZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM;CAK/B;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAchD;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG;IACzC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CACrE,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,YAAY,CA4ChF;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,SAAS,GAAG;IAAE,OAAO,EAAE,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAEjG"}
|
package/dist/api-client.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import createClient from 'openapi-fetch';
|
|
2
|
+
import { jsonValueSchema } from './utils/json.js';
|
|
2
3
|
export class ApiError extends Error {
|
|
3
4
|
status;
|
|
4
5
|
statusText;
|
|
@@ -70,23 +71,7 @@ export function createOpenCXClient(apiKey, baseUrl) {
|
|
|
70
71
|
}
|
|
71
72
|
return parseJsonOrEmpty(await res.text());
|
|
72
73
|
}
|
|
73
|
-
|
|
74
|
-
const url = `${normalizedBase}${path}`;
|
|
75
|
-
const res = await fetch(url, {
|
|
76
|
-
method: 'POST',
|
|
77
|
-
headers: {
|
|
78
|
-
...headers,
|
|
79
|
-
'Content-Type': 'application/json',
|
|
80
|
-
},
|
|
81
|
-
body: JSON.stringify(body),
|
|
82
|
-
});
|
|
83
|
-
if (!res.ok) {
|
|
84
|
-
const text = await res.text().catch(() => '');
|
|
85
|
-
throw new ApiError(res.status, res.statusText, text);
|
|
86
|
-
}
|
|
87
|
-
return parseJsonOrEmpty(await res.text());
|
|
88
|
-
}
|
|
89
|
-
return Object.assign(client, { coworkerSessionId, postMultipart, postJson });
|
|
74
|
+
return Object.assign(client, { coworkerSessionId, postMultipart });
|
|
90
75
|
}
|
|
91
76
|
/**
|
|
92
77
|
* Wraps a value as an MCP text-content result. Handles `undefined` from 204
|
|
@@ -105,6 +90,6 @@ export function jsonContent(data) {
|
|
|
105
90
|
function parseJsonOrEmpty(text) {
|
|
106
91
|
if (!text)
|
|
107
92
|
return {};
|
|
108
|
-
return JSON.parse(text);
|
|
93
|
+
return jsonValueSchema.parse(JSON.parse(text));
|
|
109
94
|
}
|
|
110
95
|
//# sourceMappingURL=api-client.js.map
|
package/dist/api-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-client.js","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAAA,OAAO,YAA8C,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"api-client.js","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAAA,OAAO,YAA8C,MAAM,eAAe,CAAC;AAE3E,OAAO,EAAE,eAAe,EAAkB,MAAM,iBAAiB,CAAC;AAElE,MAAM,OAAO,QAAS,SAAQ,KAAK;IAEf;IACA;IACA;IAHlB,YACkB,MAAc,EACd,UAAkB,EAClB,IAAY;QAE5B,KAAK,CAAC,oBAAoB,MAAM,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC,CAAC;QAJ3C,WAAM,GAAN,MAAM,CAAQ;QACd,eAAU,GAAV,UAAU,CAAQ;QAClB,SAAI,GAAJ,IAAI,CAAQ;QAG5B,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;IACzB,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAe;IACtC,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACpF,MAAM,IAAI,KAA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AC,IAAI,CAAC,CAAC,CAAC;AACjD,CAAC"}
|
package/dist/schema.d.ts
CHANGED
|
@@ -1168,6 +1168,78 @@ export interface paths {
|
|
|
1168
1168
|
patch?: never;
|
|
1169
1169
|
trace?: never;
|
|
1170
1170
|
};
|
|
1171
|
+
"/email-templates": {
|
|
1172
|
+
parameters: {
|
|
1173
|
+
query?: never;
|
|
1174
|
+
header?: never;
|
|
1175
|
+
path?: never;
|
|
1176
|
+
cookie?: never;
|
|
1177
|
+
};
|
|
1178
|
+
/**
|
|
1179
|
+
* List email templates
|
|
1180
|
+
* @description List all email templates for your organization. Templates support {{variable}} placeholders in subject and body.
|
|
1181
|
+
*/
|
|
1182
|
+
get: operations["listEmailTemplates"];
|
|
1183
|
+
put?: never;
|
|
1184
|
+
/**
|
|
1185
|
+
* Create an email template
|
|
1186
|
+
* @description Create a new email template. Use {{variable}} syntax in subject and body; variables are extracted into a JSON schema on save.
|
|
1187
|
+
*/
|
|
1188
|
+
post: operations["createEmailTemplate"];
|
|
1189
|
+
delete?: never;
|
|
1190
|
+
options?: never;
|
|
1191
|
+
head?: never;
|
|
1192
|
+
patch?: never;
|
|
1193
|
+
trace?: never;
|
|
1194
|
+
};
|
|
1195
|
+
"/email-templates/{id}": {
|
|
1196
|
+
parameters: {
|
|
1197
|
+
query?: never;
|
|
1198
|
+
header?: never;
|
|
1199
|
+
path?: never;
|
|
1200
|
+
cookie?: never;
|
|
1201
|
+
};
|
|
1202
|
+
/**
|
|
1203
|
+
* Get an email template
|
|
1204
|
+
* @description Get a single email template by ID.
|
|
1205
|
+
*/
|
|
1206
|
+
get: operations["getEmailTemplate"];
|
|
1207
|
+
/**
|
|
1208
|
+
* Update an email template
|
|
1209
|
+
* @description Update an existing email template. Re-extracts {{variable}} placeholders from subject and body.
|
|
1210
|
+
*/
|
|
1211
|
+
put: operations["updateEmailTemplate"];
|
|
1212
|
+
post?: never;
|
|
1213
|
+
/**
|
|
1214
|
+
* Delete an email template
|
|
1215
|
+
* @description Permanently delete an email template. Outbound emails already sent keep their stored content.
|
|
1216
|
+
*/
|
|
1217
|
+
delete: operations["deleteEmailTemplate"];
|
|
1218
|
+
options?: never;
|
|
1219
|
+
head?: never;
|
|
1220
|
+
patch?: never;
|
|
1221
|
+
trace?: never;
|
|
1222
|
+
};
|
|
1223
|
+
"/email-templates/{id}/activity": {
|
|
1224
|
+
parameters: {
|
|
1225
|
+
query?: never;
|
|
1226
|
+
header?: never;
|
|
1227
|
+
path?: never;
|
|
1228
|
+
cookie?: never;
|
|
1229
|
+
};
|
|
1230
|
+
/**
|
|
1231
|
+
* List sends for an email template
|
|
1232
|
+
* @description List outbound emails sent using this template, newest first. Useful for auditing template usage.
|
|
1233
|
+
*/
|
|
1234
|
+
get: operations["getEmailTemplateActivity"];
|
|
1235
|
+
put?: never;
|
|
1236
|
+
post?: never;
|
|
1237
|
+
delete?: never;
|
|
1238
|
+
options?: never;
|
|
1239
|
+
head?: never;
|
|
1240
|
+
patch?: never;
|
|
1241
|
+
trace?: never;
|
|
1242
|
+
};
|
|
1171
1243
|
"/handoff-analytics": {
|
|
1172
1244
|
parameters: {
|
|
1173
1245
|
query?: never;
|
|
@@ -3607,7 +3679,7 @@ export interface components {
|
|
|
3607
3679
|
/** @description Filter by insight number */
|
|
3608
3680
|
insightNumber?: number | null;
|
|
3609
3681
|
/** @description Filter by language */
|
|
3610
|
-
sessionLanguage?: ("az" | "el" | "de" | "fr" | "it" | "es" | "pt" | "nl" | "da" | "sv" | "no" | "fi" | "et" | "is" | "pl" | "cs" | "sk" | "hu" | "ro" | "bg" | "hr" | "sr" | "uk" | "ru" | "tr" | "en" | "zh" | "ja" | "ko" | "hi" | "bn" | "id" | "ms" | "th" | "vi" | "tl" | "ar" | "he" | "fa" | "ur" | "af" | "sw") | null;
|
|
3682
|
+
sessionLanguage?: ("az" | "el" | "de" | "fr" | "it" | "es" | "pt" | "nl" | "da" | "sv" | "no" | "fi" | "et" | "is" | "pl" | "cs" | "sk" | "hu" | "ro" | "bg" | "hr" | "sr" | "uk" | "ru" | "tr" | "en" | "zh" | "ja" | "ko" | "hi" | "bn" | "id" | "ms" | "th" | "vi" | "tl" | "ar" | "he" | "fa" | "ur" | "af" | "sw" | "ku" | "ckb" | "kmr") | null;
|
|
3611
3683
|
ticketSentiment?: ("angry" | "happy" | "neutral") | null;
|
|
3612
3684
|
/** @description Filter by session channel */
|
|
3613
3685
|
channel?: components["schemas"]["SessionChannel"] | null;
|
|
@@ -3634,6 +3706,14 @@ export interface components {
|
|
|
3634
3706
|
*/
|
|
3635
3707
|
file: string;
|
|
3636
3708
|
} | null;
|
|
3709
|
+
CreateEmailTemplateBodyDto: {
|
|
3710
|
+
body: string;
|
|
3711
|
+
name: string;
|
|
3712
|
+
subject: string;
|
|
3713
|
+
variable_defaults?: {
|
|
3714
|
+
[key: string]: string;
|
|
3715
|
+
} | null;
|
|
3716
|
+
};
|
|
3637
3717
|
AddUserToGroupDto: {
|
|
3638
3718
|
userId: number;
|
|
3639
3719
|
groupId?: string;
|
|
@@ -3887,7 +3967,7 @@ export interface components {
|
|
|
3887
3967
|
};
|
|
3888
3968
|
};
|
|
3889
3969
|
/** @enum {string} */
|
|
3890
|
-
LanguageIsoCodeValues: "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";
|
|
3970
|
+
LanguageIsoCodeValues: "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";
|
|
3891
3971
|
AuthenticateUserPayloadDto: {
|
|
3892
3972
|
/** Format: email */
|
|
3893
3973
|
email: string;
|
|
@@ -4542,6 +4622,8 @@ export interface components {
|
|
|
4542
4622
|
/** @description Why these domains are being blocked */
|
|
4543
4623
|
reason?: string;
|
|
4544
4624
|
};
|
|
4625
|
+
CreateEmailTemplatePublicInput: components["schemas"]["CreateEmailTemplateBodyDto"];
|
|
4626
|
+
UpdateEmailTemplatePublicInput: components["schemas"]["CreateEmailTemplateBodyDto"];
|
|
4545
4627
|
UpsertTagInputDto: {
|
|
4546
4628
|
/** @description Tag name (e.g. "billing", "refund", "feature-request") */
|
|
4547
4629
|
tag_name: string;
|
|
@@ -4925,6 +5007,76 @@ export interface components {
|
|
|
4925
5007
|
name: string;
|
|
4926
5008
|
org_id: string;
|
|
4927
5009
|
};
|
|
5010
|
+
EmailTemplateActivityItemDto: {
|
|
5011
|
+
id: string;
|
|
5012
|
+
from_email: string;
|
|
5013
|
+
email_subject: string;
|
|
5014
|
+
email_sender_name: string | null;
|
|
5015
|
+
email_body: string;
|
|
5016
|
+
/** Format: date-time */
|
|
5017
|
+
inserted_at: string;
|
|
5018
|
+
sent_at: string | null;
|
|
5019
|
+
resend_error: string | null;
|
|
5020
|
+
to_email: string | null;
|
|
5021
|
+
to_id: string;
|
|
5022
|
+
to_name: string | null;
|
|
5023
|
+
};
|
|
5024
|
+
EmailTemplateActivityResponseDto: {
|
|
5025
|
+
items: components["schemas"]["EmailTemplateActivityItemDto"][];
|
|
5026
|
+
total: number;
|
|
5027
|
+
};
|
|
5028
|
+
EmailTemplateDto: {
|
|
5029
|
+
id: string;
|
|
5030
|
+
actor_id: number;
|
|
5031
|
+
body: string;
|
|
5032
|
+
/** Format: date-time */
|
|
5033
|
+
created_at: string;
|
|
5034
|
+
name: string;
|
|
5035
|
+
org_id: string;
|
|
5036
|
+
subject: string;
|
|
5037
|
+
/** Format: date-time */
|
|
5038
|
+
updated_at: string;
|
|
5039
|
+
payload: {
|
|
5040
|
+
$schema?: string;
|
|
5041
|
+
$id?: string;
|
|
5042
|
+
title?: string;
|
|
5043
|
+
description?: string;
|
|
5044
|
+
type?: string;
|
|
5045
|
+
definitions: {
|
|
5046
|
+
[key: string]: {
|
|
5047
|
+
type: string;
|
|
5048
|
+
properties: {
|
|
5049
|
+
[key: string]: {
|
|
5050
|
+
type: string;
|
|
5051
|
+
description?: string;
|
|
5052
|
+
title?: string;
|
|
5053
|
+
additionalProperties?: boolean;
|
|
5054
|
+
};
|
|
5055
|
+
};
|
|
5056
|
+
required: string[];
|
|
5057
|
+
description?: string;
|
|
5058
|
+
title?: string;
|
|
5059
|
+
additionalProperties?: boolean;
|
|
5060
|
+
};
|
|
5061
|
+
};
|
|
5062
|
+
properties: {
|
|
5063
|
+
[key: string]: {
|
|
5064
|
+
type: string;
|
|
5065
|
+
description?: string;
|
|
5066
|
+
title?: string;
|
|
5067
|
+
additionalProperties?: boolean;
|
|
5068
|
+
};
|
|
5069
|
+
};
|
|
5070
|
+
required?: string[];
|
|
5071
|
+
additionalProperties?: boolean;
|
|
5072
|
+
} & {
|
|
5073
|
+
[key: string]: unknown;
|
|
5074
|
+
};
|
|
5075
|
+
language: string | null;
|
|
5076
|
+
variable_defaults: {
|
|
5077
|
+
[key: string]: string;
|
|
5078
|
+
} | null;
|
|
5079
|
+
};
|
|
4928
5080
|
SlaOverviewResponseDto: {
|
|
4929
5081
|
coverage_rate: number;
|
|
4930
5082
|
total_sessions: number;
|
|
@@ -5401,7 +5553,7 @@ export interface components {
|
|
|
5401
5553
|
};
|
|
5402
5554
|
InvestigationTicketingSystem: {
|
|
5403
5555
|
/** @enum {string} */
|
|
5404
|
-
name: "dynamics365" | "freshchat" | "freshdesk" | "front" | "gorgias" | "hubspot" | "intercom" | "open" | "salesforce" | "salesforce_v2" | "twilio_flex" | "zendesk" | "zendesk_v2";
|
|
5556
|
+
name: "dynamics365" | "freshchat" | "freshdesk" | "front" | "gorgias" | "hubspot" | "infobip" | "intercom" | "open" | "salesforce" | "salesforce_v2" | "twilio_flex" | "zendesk" | "zendesk_v2";
|
|
5405
5557
|
external_id: string;
|
|
5406
5558
|
/** @enum {string} */
|
|
5407
5559
|
id_type: "conversation_id" | "ticket_id" | "case_id" | "conversation_sid";
|
|
@@ -5556,7 +5708,7 @@ export interface components {
|
|
|
5556
5708
|
};
|
|
5557
5709
|
ticketing_system?: {
|
|
5558
5710
|
/** @enum {string} */
|
|
5559
|
-
name: "dynamics365" | "freshchat" | "freshdesk" | "front" | "gorgias" | "hubspot" | "intercom" | "open" | "salesforce" | "salesforce_v2" | "twilio_flex" | "zendesk" | "zendesk_v2";
|
|
5711
|
+
name: "dynamics365" | "freshchat" | "freshdesk" | "front" | "gorgias" | "hubspot" | "infobip" | "intercom" | "open" | "salesforce" | "salesforce_v2" | "twilio_flex" | "zendesk" | "zendesk_v2";
|
|
5560
5712
|
external_id: string;
|
|
5561
5713
|
/** @enum {string} */
|
|
5562
5714
|
id_type: "conversation_id" | "ticket_id" | "case_id" | "conversation_sid";
|
|
@@ -6661,6 +6813,7 @@ export interface components {
|
|
|
6661
6813
|
domainNameVerificationStatus: string | null;
|
|
6662
6814
|
records: unknown | null;
|
|
6663
6815
|
}[];
|
|
6816
|
+
ListEmailTemplatesOutput: components["schemas"]["EmailTemplateDto"][];
|
|
6664
6817
|
ListOfficeHoursOutput: {
|
|
6665
6818
|
data: components["schemas"]["OfficeHoursPublicResponseDto"][];
|
|
6666
6819
|
};
|
|
@@ -9136,6 +9289,201 @@ export interface operations {
|
|
|
9136
9289
|
};
|
|
9137
9290
|
};
|
|
9138
9291
|
};
|
|
9292
|
+
listEmailTemplates: {
|
|
9293
|
+
parameters: {
|
|
9294
|
+
query?: never;
|
|
9295
|
+
header?: never;
|
|
9296
|
+
path?: never;
|
|
9297
|
+
cookie?: never;
|
|
9298
|
+
};
|
|
9299
|
+
requestBody?: never;
|
|
9300
|
+
responses: {
|
|
9301
|
+
/** @description Default Response */
|
|
9302
|
+
200: {
|
|
9303
|
+
headers: {
|
|
9304
|
+
[name: string]: unknown;
|
|
9305
|
+
};
|
|
9306
|
+
content: {
|
|
9307
|
+
"application/json": components["schemas"]["ListEmailTemplatesOutput"];
|
|
9308
|
+
};
|
|
9309
|
+
};
|
|
9310
|
+
/** @description Internal Server Error */
|
|
9311
|
+
500: {
|
|
9312
|
+
headers: {
|
|
9313
|
+
[name: string]: unknown;
|
|
9314
|
+
};
|
|
9315
|
+
content: {
|
|
9316
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
9317
|
+
};
|
|
9318
|
+
};
|
|
9319
|
+
};
|
|
9320
|
+
};
|
|
9321
|
+
createEmailTemplate: {
|
|
9322
|
+
parameters: {
|
|
9323
|
+
query?: never;
|
|
9324
|
+
header?: never;
|
|
9325
|
+
path?: never;
|
|
9326
|
+
cookie?: never;
|
|
9327
|
+
};
|
|
9328
|
+
requestBody: {
|
|
9329
|
+
content: {
|
|
9330
|
+
"application/json": components["schemas"]["CreateEmailTemplatePublicInput"];
|
|
9331
|
+
};
|
|
9332
|
+
};
|
|
9333
|
+
responses: {
|
|
9334
|
+
/** @description Default Response */
|
|
9335
|
+
201: {
|
|
9336
|
+
headers: {
|
|
9337
|
+
[name: string]: unknown;
|
|
9338
|
+
};
|
|
9339
|
+
content: {
|
|
9340
|
+
"application/json": components["schemas"]["EmailTemplateDto"];
|
|
9341
|
+
};
|
|
9342
|
+
};
|
|
9343
|
+
/** @description Internal Server Error */
|
|
9344
|
+
500: {
|
|
9345
|
+
headers: {
|
|
9346
|
+
[name: string]: unknown;
|
|
9347
|
+
};
|
|
9348
|
+
content: {
|
|
9349
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
9350
|
+
};
|
|
9351
|
+
};
|
|
9352
|
+
};
|
|
9353
|
+
};
|
|
9354
|
+
getEmailTemplate: {
|
|
9355
|
+
parameters: {
|
|
9356
|
+
query?: never;
|
|
9357
|
+
header?: never;
|
|
9358
|
+
path: {
|
|
9359
|
+
/** @description Email template ID */
|
|
9360
|
+
id: string;
|
|
9361
|
+
};
|
|
9362
|
+
cookie?: never;
|
|
9363
|
+
};
|
|
9364
|
+
requestBody?: never;
|
|
9365
|
+
responses: {
|
|
9366
|
+
/** @description Default Response */
|
|
9367
|
+
200: {
|
|
9368
|
+
headers: {
|
|
9369
|
+
[name: string]: unknown;
|
|
9370
|
+
};
|
|
9371
|
+
content: {
|
|
9372
|
+
"application/json": components["schemas"]["EmailTemplateDto"];
|
|
9373
|
+
};
|
|
9374
|
+
};
|
|
9375
|
+
/** @description Internal Server Error */
|
|
9376
|
+
500: {
|
|
9377
|
+
headers: {
|
|
9378
|
+
[name: string]: unknown;
|
|
9379
|
+
};
|
|
9380
|
+
content: {
|
|
9381
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
9382
|
+
};
|
|
9383
|
+
};
|
|
9384
|
+
};
|
|
9385
|
+
};
|
|
9386
|
+
updateEmailTemplate: {
|
|
9387
|
+
parameters: {
|
|
9388
|
+
query?: never;
|
|
9389
|
+
header?: never;
|
|
9390
|
+
path: {
|
|
9391
|
+
/** @description Email template ID */
|
|
9392
|
+
id: string;
|
|
9393
|
+
};
|
|
9394
|
+
cookie?: never;
|
|
9395
|
+
};
|
|
9396
|
+
requestBody: {
|
|
9397
|
+
content: {
|
|
9398
|
+
"application/json": components["schemas"]["UpdateEmailTemplatePublicInput"];
|
|
9399
|
+
};
|
|
9400
|
+
};
|
|
9401
|
+
responses: {
|
|
9402
|
+
/** @description Default Response */
|
|
9403
|
+
200: {
|
|
9404
|
+
headers: {
|
|
9405
|
+
[name: string]: unknown;
|
|
9406
|
+
};
|
|
9407
|
+
content: {
|
|
9408
|
+
"application/json": components["schemas"]["EmailTemplateDto"];
|
|
9409
|
+
};
|
|
9410
|
+
};
|
|
9411
|
+
/** @description Internal Server Error */
|
|
9412
|
+
500: {
|
|
9413
|
+
headers: {
|
|
9414
|
+
[name: string]: unknown;
|
|
9415
|
+
};
|
|
9416
|
+
content: {
|
|
9417
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
9418
|
+
};
|
|
9419
|
+
};
|
|
9420
|
+
};
|
|
9421
|
+
};
|
|
9422
|
+
deleteEmailTemplate: {
|
|
9423
|
+
parameters: {
|
|
9424
|
+
query?: never;
|
|
9425
|
+
header?: never;
|
|
9426
|
+
path: {
|
|
9427
|
+
/** @description Email template ID */
|
|
9428
|
+
id: string;
|
|
9429
|
+
};
|
|
9430
|
+
cookie?: never;
|
|
9431
|
+
};
|
|
9432
|
+
requestBody?: never;
|
|
9433
|
+
responses: {
|
|
9434
|
+
/** @description Default Response */
|
|
9435
|
+
204: {
|
|
9436
|
+
headers: {
|
|
9437
|
+
[name: string]: unknown;
|
|
9438
|
+
};
|
|
9439
|
+
content?: never;
|
|
9440
|
+
};
|
|
9441
|
+
/** @description Internal Server Error */
|
|
9442
|
+
500: {
|
|
9443
|
+
headers: {
|
|
9444
|
+
[name: string]: unknown;
|
|
9445
|
+
};
|
|
9446
|
+
content: {
|
|
9447
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
9448
|
+
};
|
|
9449
|
+
};
|
|
9450
|
+
};
|
|
9451
|
+
};
|
|
9452
|
+
getEmailTemplateActivity: {
|
|
9453
|
+
parameters: {
|
|
9454
|
+
query?: {
|
|
9455
|
+
offset?: number;
|
|
9456
|
+
limit?: number;
|
|
9457
|
+
};
|
|
9458
|
+
header?: never;
|
|
9459
|
+
path: {
|
|
9460
|
+
/** @description Email template ID */
|
|
9461
|
+
id: string;
|
|
9462
|
+
};
|
|
9463
|
+
cookie?: never;
|
|
9464
|
+
};
|
|
9465
|
+
requestBody?: never;
|
|
9466
|
+
responses: {
|
|
9467
|
+
/** @description Default Response */
|
|
9468
|
+
200: {
|
|
9469
|
+
headers: {
|
|
9470
|
+
[name: string]: unknown;
|
|
9471
|
+
};
|
|
9472
|
+
content: {
|
|
9473
|
+
"application/json": components["schemas"]["EmailTemplateActivityResponseDto"];
|
|
9474
|
+
};
|
|
9475
|
+
};
|
|
9476
|
+
/** @description Internal Server Error */
|
|
9477
|
+
500: {
|
|
9478
|
+
headers: {
|
|
9479
|
+
[name: string]: unknown;
|
|
9480
|
+
};
|
|
9481
|
+
content: {
|
|
9482
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
9483
|
+
};
|
|
9484
|
+
};
|
|
9485
|
+
};
|
|
9486
|
+
};
|
|
9139
9487
|
getHandoffAnalytics: {
|
|
9140
9488
|
parameters: {
|
|
9141
9489
|
query?: {
|