conduyt-mcp 4.105.13 → 4.105.14

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.
@@ -18,12 +18,20 @@ import { formatResult, formatToolError } from "../client.js";
18
18
  const flowGraphSchema = z
19
19
  .object({ entryId: z.string(), nodes: z.array(z.unknown()) })
20
20
  .passthrough();
21
+ /** (#345) A flow's own recording and recording notice for calls coming into it. Strict like the API's 400s. */
22
+ const recordingChoice = z.enum(["inherit", "on", "off"]);
23
+ // Non-empty is expressed in the schema itself (an anyOf: record present, or disclosure present), so the JSON Schema clients
24
+ // read rejects {} like the API's 400 does; a zod refine would not reach the published schema.
25
+ const recordingOverrideSchema = z.union([
26
+ z.object({ record: recordingChoice, disclosure: recordingChoice.optional() }).strict(),
27
+ z.object({ record: recordingChoice.optional(), disclosure: recordingChoice }).strict(),
28
+ ]);
21
29
  export function registerCallFlowTools(server, client) {
22
30
  server.tool("conduyt_list_call_flows", "List call flows (IVR routing graphs) with their status (draft/published) and attached phone numbers.", {}, async () => {
23
31
  const result = await client.get("/api/v1/call-flows");
24
32
  return formatResult(result);
25
33
  });
26
- server.tool("conduyt_get_call_flow", "Get one call flow including its draft and published graphs.", {
34
+ server.tool("conduyt_get_call_flow", "Get one call flow including its draft and published graphs and recordingOverride ({ record, disclosure } for calls coming into this flow; null = follows the workspace setting).", {
27
35
  id: z.string().describe("Call flow UUID"),
28
36
  }, async ({ id }) => {
29
37
  const result = await client.get(`/api/v1/call-flows/${id}`);
@@ -37,12 +45,13 @@ export function registerCallFlowTools(server, client) {
37
45
  const result = await client.post("/api/v1/call-flows", params);
38
46
  return formatResult(result);
39
47
  });
40
- server.tool("conduyt_update_call_flow", "Update a call flow's DRAFT (name, number, graph). Published behavior does not change until the next publish. Replacing draftGraph REQUIRES expectedDraftRevision (the API 428s without it; a concurrent graph edit then 409s instead of being overwritten — the token is graph-specific, so live calls and publish never invalidate it).", {
48
+ server.tool("conduyt_update_call_flow", "Update a call flow (name, number, graph, recordingOverride). Name, number and graph change the DRAFT: published behavior does not change until the next publish. recordingOverride sets this flow's own recording and recording notice for calls coming into it (admin only: 403 for anyone else). Replacing draftGraph REQUIRES expectedDraftRevision (the API 428s without it; a concurrent graph edit then 409s instead of being overwritten; the token is graph-specific, so live calls and publish never invalidate it).", {
41
49
  id: z.string().describe("Call flow UUID"),
42
50
  name: z.string().optional().describe("New name"),
43
51
  phoneNumber: z.string().optional().describe("New E.164 number"),
44
52
  draftGraph: flowGraphSchema.optional().describe("Replacement draft graph — MUST have a string entryId and a nodes array; REQUIRES expectedDraftRevision. Kinds: entry, greeting, agent, group (queue.repeatRing = queue mode), menu (options[{digit,label,next}]), timing (hours, timezone, next/closedNext), voicemail, forward, hangup; every branch must reach an ending."),
45
53
  expectedDraftRevision: z.number().int().min(0).optional().describe("draftRevision from your last conduyt_get_call_flow read (REQUIRED when replacing draftGraph)"),
54
+ recordingOverride: recordingOverrideSchema.nullable().optional().describe("This flow's own recording choice for calls coming into this flow, over the workspace setting: { record?: inherit | on | off, disclosure?: inherit | on | off }. inherit = Follow workspace setting; record is the recording itself, disclosure is the recording notice (the wording stays the workspace's). A key left out keeps its stored value; null, or both inherit, clears the override so the flow follows the workspace. Any other key or value is a 400."),
46
55
  }, async ({ id, ...updates }) => {
47
56
  if (updates.draftGraph !== undefined && updates.expectedDraftRevision === undefined) {
48
57
  return formatToolError("Replacing draftGraph requires expectedDraftRevision — call conduyt_get_call_flow first and pass its draftRevision.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conduyt-mcp",
3
- "version": "4.105.13",
3
+ "version": "4.105.14",
4
4
  "mcpName": "com.conduyt/mcp",
5
5
  "description": "MCP server for Conduyt CRM — expose CRM operations as AI-accessible tools",
6
6
  "type": "module",
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-11-10T02:51:13.093Z",
2
+ "generatedAt": "2026-11-10T06:52:52.055Z",
3
3
  "toolCount": 399,
4
4
  "totalEndpoints": 1177,
5
5
  "counts": {