@opencx/mcp 1.13.1 → 1.14.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 +65 -0
- 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/macros.d.ts +4 -0
- package/dist/tools/macros.d.ts.map +1 -0
- package/dist/tools/macros.js +63 -0
- package/dist/tools/macros.js.map +1 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -1368,6 +1368,26 @@ export interface paths {
|
|
|
1368
1368
|
patch?: never;
|
|
1369
1369
|
trace?: never;
|
|
1370
1370
|
};
|
|
1371
|
+
"/macros/variables": {
|
|
1372
|
+
parameters: {
|
|
1373
|
+
query?: never;
|
|
1374
|
+
header?: never;
|
|
1375
|
+
path?: never;
|
|
1376
|
+
cookie?: never;
|
|
1377
|
+
};
|
|
1378
|
+
/**
|
|
1379
|
+
* List macro variables
|
|
1380
|
+
* @description List the variables available for use in macro content: built-in `enums` (system variables like {{contact.full_name}}) and the organization's `custom` variables. Reference them in macro content with {{variable}} syntax. Custom variables are authored and managed in the OpenCX dashboard — this endpoint is read-only.
|
|
1381
|
+
*/
|
|
1382
|
+
get: operations["listMacroVariables"];
|
|
1383
|
+
put?: never;
|
|
1384
|
+
post?: never;
|
|
1385
|
+
delete?: never;
|
|
1386
|
+
options?: never;
|
|
1387
|
+
head?: never;
|
|
1388
|
+
patch?: never;
|
|
1389
|
+
trace?: never;
|
|
1390
|
+
};
|
|
1371
1391
|
"/macros/{id}": {
|
|
1372
1392
|
parameters: {
|
|
1373
1393
|
query?: never;
|
|
@@ -6518,6 +6538,22 @@ export interface components {
|
|
|
6518
6538
|
/** Format: date-time */
|
|
6519
6539
|
updated_at: string;
|
|
6520
6540
|
};
|
|
6541
|
+
SavedReplyVariableDto: {
|
|
6542
|
+
id: string;
|
|
6543
|
+
org_id: string;
|
|
6544
|
+
name: string;
|
|
6545
|
+
content: string;
|
|
6546
|
+
/** Format: date-time */
|
|
6547
|
+
created_at: string;
|
|
6548
|
+
/** Format: date-time */
|
|
6549
|
+
updated_at: string;
|
|
6550
|
+
};
|
|
6551
|
+
/** @enum {string} */
|
|
6552
|
+
SavedReplyVariableEnum: "agent.full_name" | "agent.email" | "contact.full_name" | "contact.email" | "contact.phone" | "session.number" | "session.status" | "session.language" | "org.name";
|
|
6553
|
+
SavedReplyVariablesResponseDto: {
|
|
6554
|
+
enums: components["schemas"]["SavedReplyVariableEnum"][];
|
|
6555
|
+
custom: components["schemas"]["SavedReplyVariableDto"][];
|
|
6556
|
+
};
|
|
6521
6557
|
AgentAvailability: {
|
|
6522
6558
|
id: string;
|
|
6523
6559
|
user_id: number;
|
|
@@ -11416,6 +11452,35 @@ export interface operations {
|
|
|
11416
11452
|
};
|
|
11417
11453
|
};
|
|
11418
11454
|
};
|
|
11455
|
+
listMacroVariables: {
|
|
11456
|
+
parameters: {
|
|
11457
|
+
query?: never;
|
|
11458
|
+
header?: never;
|
|
11459
|
+
path?: never;
|
|
11460
|
+
cookie?: never;
|
|
11461
|
+
};
|
|
11462
|
+
requestBody?: never;
|
|
11463
|
+
responses: {
|
|
11464
|
+
/** @description Default Response */
|
|
11465
|
+
200: {
|
|
11466
|
+
headers: {
|
|
11467
|
+
[name: string]: unknown;
|
|
11468
|
+
};
|
|
11469
|
+
content: {
|
|
11470
|
+
"application/json": components["schemas"]["SavedReplyVariablesResponseDto"];
|
|
11471
|
+
};
|
|
11472
|
+
};
|
|
11473
|
+
/** @description Internal Server Error */
|
|
11474
|
+
500: {
|
|
11475
|
+
headers: {
|
|
11476
|
+
[name: string]: unknown;
|
|
11477
|
+
};
|
|
11478
|
+
content: {
|
|
11479
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
11480
|
+
};
|
|
11481
|
+
};
|
|
11482
|
+
};
|
|
11483
|
+
};
|
|
11419
11484
|
getMacro: {
|
|
11420
11485
|
parameters: {
|
|
11421
11486
|
query?: never;
|