elevenlabs-voice-agent-mcp 1.0.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.
Files changed (91) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +533 -0
  3. package/dist/constants.d.ts +25 -0
  4. package/dist/constants.d.ts.map +1 -0
  5. package/dist/constants.js +51 -0
  6. package/dist/constants.js.map +1 -0
  7. package/dist/index.d.ts +8 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +93 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/schemas/agent-schemas.d.ts +147 -0
  12. package/dist/schemas/agent-schemas.d.ts.map +1 -0
  13. package/dist/schemas/agent-schemas.js +145 -0
  14. package/dist/schemas/agent-schemas.js.map +1 -0
  15. package/dist/schemas/batch-calling-schemas.d.ts +170 -0
  16. package/dist/schemas/batch-calling-schemas.d.ts.map +1 -0
  17. package/dist/schemas/batch-calling-schemas.js +77 -0
  18. package/dist/schemas/batch-calling-schemas.js.map +1 -0
  19. package/dist/schemas/common-schemas.d.ts +54 -0
  20. package/dist/schemas/common-schemas.d.ts.map +1 -0
  21. package/dist/schemas/common-schemas.js +72 -0
  22. package/dist/schemas/common-schemas.js.map +1 -0
  23. package/dist/schemas/conversation-schemas.d.ts +72 -0
  24. package/dist/schemas/conversation-schemas.d.ts.map +1 -0
  25. package/dist/schemas/conversation-schemas.js +30 -0
  26. package/dist/schemas/conversation-schemas.js.map +1 -0
  27. package/dist/schemas/outbound-schemas.d.ts +115 -0
  28. package/dist/schemas/outbound-schemas.d.ts.map +1 -0
  29. package/dist/schemas/outbound-schemas.js +61 -0
  30. package/dist/schemas/outbound-schemas.js.map +1 -0
  31. package/dist/schemas/phone-number-schemas.d.ts +168 -0
  32. package/dist/schemas/phone-number-schemas.d.ts.map +1 -0
  33. package/dist/schemas/phone-number-schemas.js +116 -0
  34. package/dist/schemas/phone-number-schemas.js.map +1 -0
  35. package/dist/schemas/tool-schemas.d.ts +208 -0
  36. package/dist/schemas/tool-schemas.d.ts.map +1 -0
  37. package/dist/schemas/tool-schemas.js +131 -0
  38. package/dist/schemas/tool-schemas.js.map +1 -0
  39. package/dist/services/elevenlabs-api.d.ts +37 -0
  40. package/dist/services/elevenlabs-api.d.ts.map +1 -0
  41. package/dist/services/elevenlabs-api.js +78 -0
  42. package/dist/services/elevenlabs-api.js.map +1 -0
  43. package/dist/services/formatters.d.ts +76 -0
  44. package/dist/services/formatters.d.ts.map +1 -0
  45. package/dist/services/formatters.js +475 -0
  46. package/dist/services/formatters.js.map +1 -0
  47. package/dist/tools/agent-tools.d.ts +228 -0
  48. package/dist/tools/agent-tools.d.ts.map +1 -0
  49. package/dist/tools/agent-tools.js +369 -0
  50. package/dist/tools/agent-tools.js.map +1 -0
  51. package/dist/tools/batch-calling-tools.d.ts +183 -0
  52. package/dist/tools/batch-calling-tools.d.ts.map +1 -0
  53. package/dist/tools/batch-calling-tools.js +203 -0
  54. package/dist/tools/batch-calling-tools.js.map +1 -0
  55. package/dist/tools/conversation-tools.d.ts +103 -0
  56. package/dist/tools/conversation-tools.d.ts.map +1 -0
  57. package/dist/tools/conversation-tools.js +140 -0
  58. package/dist/tools/conversation-tools.js.map +1 -0
  59. package/dist/tools/knowledge-tools.d.ts +75 -0
  60. package/dist/tools/knowledge-tools.d.ts.map +1 -0
  61. package/dist/tools/knowledge-tools.js +63 -0
  62. package/dist/tools/knowledge-tools.js.map +1 -0
  63. package/dist/tools/outbound-tools.d.ts +44 -0
  64. package/dist/tools/outbound-tools.d.ts.map +1 -0
  65. package/dist/tools/outbound-tools.js +84 -0
  66. package/dist/tools/outbound-tools.js.map +1 -0
  67. package/dist/tools/phone-number-tools.d.ts +215 -0
  68. package/dist/tools/phone-number-tools.d.ts.map +1 -0
  69. package/dist/tools/phone-number-tools.js +295 -0
  70. package/dist/tools/phone-number-tools.js.map +1 -0
  71. package/dist/tools/tool-tools.d.ts +165 -0
  72. package/dist/tools/tool-tools.d.ts.map +1 -0
  73. package/dist/tools/tool-tools.js +166 -0
  74. package/dist/tools/tool-tools.js.map +1 -0
  75. package/dist/tools/utility-tools.d.ts +76 -0
  76. package/dist/tools/utility-tools.d.ts.map +1 -0
  77. package/dist/tools/utility-tools.js +121 -0
  78. package/dist/tools/utility-tools.js.map +1 -0
  79. package/dist/types.d.ts +282 -0
  80. package/dist/types.d.ts.map +1 -0
  81. package/dist/types.js +12 -0
  82. package/dist/types.js.map +1 -0
  83. package/dist/utils/error-handlers.d.ts +29 -0
  84. package/dist/utils/error-handlers.d.ts.map +1 -0
  85. package/dist/utils/error-handlers.js +90 -0
  86. package/dist/utils/error-handlers.js.map +1 -0
  87. package/dist/utils/truncation.d.ts +41 -0
  88. package/dist/utils/truncation.d.ts.map +1 -0
  89. package/dist/utils/truncation.js +78 -0
  90. package/dist/utils/truncation.js.map +1 -0
  91. package/package.json +61 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch-calling-schemas.js","sourceRoot":"","sources":["../../src/schemas/batch-calling-schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE/E;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE;KACpC,GAAG,CAAC,CAAC,EAAE,sBAAsB,CAAC;KAC9B,KAAK,CAAC,kBAAkB,EAAE,8EAA8E,CAAC;KACzG,QAAQ,CAAC,0CAA0C,CAAC,CAAC;AAExD;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;SACX,QAAQ,EAAE;SACV,QAAQ,CAAC,4CAA4C,CAAC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EG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,WAAW;IAElB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;SACjB,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,0CAA0C,CAAC;IAEvD,eAAe,EAAE,oBAAoB;CACtC,CAAC,CAAC,WAAW,EAAE,CAAC;AAEjB;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,QAAQ,EAAE,aAAa;IAEvB,eAAe,EAAE,oBAAoB;CACtC,CAAC,CAAC,WAAW,EAAE,CAAC"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Common Zod validation schemas
3
+ *
4
+ * Shared schemas used across multiple tools for pagination,
5
+ * formatting, and common parameters.
6
+ */
7
+ import { z } from "zod";
8
+ import { ResponseFormat } from "../types.js";
9
+ /**
10
+ * Response format schema (JSON or Markdown)
11
+ */
12
+ export declare const ResponseFormatSchema: z.ZodDefault<z.ZodNativeEnum<typeof ResponseFormat>>;
13
+ /**
14
+ * Pagination limit schema
15
+ */
16
+ export declare const LimitSchema: z.ZodDefault<z.ZodNumber>;
17
+ /**
18
+ * Pagination offset schema
19
+ */
20
+ export declare const OffsetSchema: z.ZodDefault<z.ZodNumber>;
21
+ /**
22
+ * Agent ID schema
23
+ */
24
+ export declare const AgentIdSchema: z.ZodString;
25
+ /**
26
+ * Conversation ID schema
27
+ */
28
+ export declare const ConversationIdSchema: z.ZodString;
29
+ /**
30
+ * Voice ID schema
31
+ */
32
+ export declare const VoiceIdSchema: z.ZodString;
33
+ /**
34
+ * URL schema
35
+ */
36
+ export declare const URLSchema: z.ZodString;
37
+ /**
38
+ * Color hex schema
39
+ */
40
+ export declare const ColorSchema: z.ZodString;
41
+ /**
42
+ * Date range schema
43
+ */
44
+ export declare const DateRangeSchema: z.ZodOptional<z.ZodObject<{
45
+ start: z.ZodOptional<z.ZodString>;
46
+ end: z.ZodOptional<z.ZodString>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ start?: string | undefined;
49
+ end?: string | undefined;
50
+ }, {
51
+ start?: string | undefined;
52
+ end?: string | undefined;
53
+ }>>;
54
+ //# sourceMappingURL=common-schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common-schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/common-schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,oBAAoB,sDAIhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,2BAKoE,CAAC;AAE7F;;GAEG;AACH,eAAO,MAAM,YAAY,2BAIyC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,aAAa,aAGwC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,oBAAoB,aAG0C,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,aAAa,aAEkD,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,SAAS,aAEkB,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,WAAW,aAEuB,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;GAGwB,CAAC"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Common Zod validation schemas
3
+ *
4
+ * Shared schemas used across multiple tools for pagination,
5
+ * formatting, and common parameters.
6
+ */
7
+ import { z } from "zod";
8
+ import { DEFAULT_LIMIT, MAX_LIMIT } from "../constants.js";
9
+ import { ResponseFormat } from "../types.js";
10
+ /**
11
+ * Response format schema (JSON or Markdown)
12
+ */
13
+ export const ResponseFormatSchema = z.nativeEnum(ResponseFormat, {
14
+ errorMap: () => ({ message: "Format must be 'json' or 'markdown'" })
15
+ }).default(ResponseFormat.MARKDOWN).describe("Output format: 'markdown' for human-readable or 'json' for structured data");
16
+ /**
17
+ * Pagination limit schema
18
+ */
19
+ export const LimitSchema = z.number()
20
+ .int("Limit must be an integer")
21
+ .min(1, "Limit must be at least 1")
22
+ .max(MAX_LIMIT, `Limit must not exceed ${MAX_LIMIT}`)
23
+ .default(DEFAULT_LIMIT)
24
+ .describe(`Maximum number of items to return (1-${MAX_LIMIT}, default: ${DEFAULT_LIMIT})`);
25
+ /**
26
+ * Pagination offset schema
27
+ */
28
+ export const OffsetSchema = z.number()
29
+ .int("Offset must be an integer")
30
+ .min(0, "Offset must be 0 or greater")
31
+ .default(0)
32
+ .describe("Number of items to skip for pagination (default: 0)");
33
+ /**
34
+ * Agent ID schema
35
+ */
36
+ export const AgentIdSchema = z.string()
37
+ .min(1, "Agent ID is required")
38
+ .regex(/^[a-zA-Z0-9_-]+$/, "Agent ID must contain only alphanumeric characters, hyphens, and underscores")
39
+ .describe("Unique identifier for the agent (e.g., 'ag_abc123')");
40
+ /**
41
+ * Conversation ID schema
42
+ */
43
+ export const ConversationIdSchema = z.string()
44
+ .min(1, "Conversation ID is required")
45
+ .regex(/^[a-zA-Z0-9_-]+$/, "Conversation ID must contain only alphanumeric characters, hyphens, and underscores")
46
+ .describe("Unique identifier for the conversation (e.g., 'conv_xyz789')");
47
+ /**
48
+ * Voice ID schema
49
+ */
50
+ export const VoiceIdSchema = z.string()
51
+ .min(1, "Voice ID is required")
52
+ .describe("ElevenLabs voice ID (e.g., '21m00Tcm4TlvDq8ikWAM' for Rachel)");
53
+ /**
54
+ * URL schema
55
+ */
56
+ export const URLSchema = z.string()
57
+ .url("Must be a valid URL")
58
+ .describe("A valid HTTP or HTTPS URL");
59
+ /**
60
+ * Color hex schema
61
+ */
62
+ export const ColorSchema = z.string()
63
+ .regex(/^#[0-9A-Fa-f]{6}$/, "Must be a valid hex color (e.g., #FF5733)")
64
+ .describe("Hex color code (e.g., '#FF5733')");
65
+ /**
66
+ * Date range schema
67
+ */
68
+ export const DateRangeSchema = z.object({
69
+ start: z.string().datetime().optional().describe("Start date in ISO 8601 format"),
70
+ end: z.string().datetime().optional().describe("End date in ISO 8601 format")
71
+ }).optional().describe("Optional date range filter");
72
+ //# sourceMappingURL=common-schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common-schemas.js","sourceRoot":"","sources":["../../src/schemas/common-schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,UAAU,CAAC,cAAc,EAAE;IAC/D,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,qCAAqC,EAAE,CAAC;CACrE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAC1C,4EAA4E,CAC7E,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE;KAClC,GAAG,CAAC,0BAA0B,CAAC;KAC/B,GAAG,CAAC,CAAC,EAAE,0BAA0B,CAAC;KAClC,GAAG,CAAC,SAAS,EAAE,yBAAyB,SAAS,EAAE,CAAC;KACpD,OAAO,CAAC,aAAa,CAAC;KACtB,QAAQ,CAAC,wCAAwC,SAAS,cAAc,aAAa,GAAG,CAAC,CAAC;AAE7F;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EAAE;KACnC,GAAG,CAAC,2BAA2B,CAAC;KAChC,GAAG,CAAC,CAAC,EAAE,6BAA6B,CAAC;KACrC,OAAO,CAAC,CAAC,CAAC;KACV,QAAQ,CAAC,qDAAqD,CAAC,CAAC;AAEnE;;GAEG;AACH,MAAM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@@ -0,0 +1,72 @@
1
+ /**
2
+ * Zod validation schemas for conversation operations
3
+ *
4
+ * Provides strict input validation for retrieving and managing conversations.
5
+ */
6
+ import { z } from "zod";
7
+ /**
8
+ * Schema for getting a single conversation
9
+ */
10
+ export declare const GetConversationSchema: z.ZodObject<{
11
+ conversation_id: z.ZodString;
12
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
13
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
14
+ conversation_id: z.ZodString;
15
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
16
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
17
+ conversation_id: z.ZodString;
18
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
19
+ }, z.ZodTypeAny, "passthrough">>;
20
+ /**
21
+ * Schema for listing conversations
22
+ */
23
+ export declare const ListConversationsSchema: z.ZodObject<{
24
+ agent_id: z.ZodOptional<z.ZodString>;
25
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "failed"]>>;
26
+ date_range: z.ZodOptional<z.ZodObject<{
27
+ start: z.ZodOptional<z.ZodString>;
28
+ end: z.ZodOptional<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ start?: string | undefined;
31
+ end?: string | undefined;
32
+ }, {
33
+ start?: string | undefined;
34
+ end?: string | undefined;
35
+ }>>;
36
+ limit: z.ZodDefault<z.ZodNumber>;
37
+ offset: z.ZodDefault<z.ZodNumber>;
38
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
39
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
40
+ agent_id: z.ZodOptional<z.ZodString>;
41
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "failed"]>>;
42
+ date_range: z.ZodOptional<z.ZodObject<{
43
+ start: z.ZodOptional<z.ZodString>;
44
+ end: z.ZodOptional<z.ZodString>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ start?: string | undefined;
47
+ end?: string | undefined;
48
+ }, {
49
+ start?: string | undefined;
50
+ end?: string | undefined;
51
+ }>>;
52
+ limit: z.ZodDefault<z.ZodNumber>;
53
+ offset: z.ZodDefault<z.ZodNumber>;
54
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
55
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
56
+ agent_id: z.ZodOptional<z.ZodString>;
57
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "failed"]>>;
58
+ date_range: z.ZodOptional<z.ZodObject<{
59
+ start: z.ZodOptional<z.ZodString>;
60
+ end: z.ZodOptional<z.ZodString>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ start?: string | undefined;
63
+ end?: string | undefined;
64
+ }, {
65
+ start?: string | undefined;
66
+ end?: string | undefined;
67
+ }>>;
68
+ limit: z.ZodDefault<z.ZodNumber>;
69
+ offset: z.ZodDefault<z.ZodNumber>;
70
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
71
+ }, z.ZodTypeAny, "passthrough">>;
72
+ //# sourceMappingURL=conversation-schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/conversation-schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;gCAGlB,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAgBpB,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Zod validation schemas for conversation operations
3
+ *
4
+ * Provides strict input validation for retrieving and managing conversations.
5
+ */
6
+ import { z } from "zod";
7
+ import { AgentIdSchema, ConversationIdSchema, ResponseFormatSchema, LimitSchema, OffsetSchema, DateRangeSchema } from "./common-schemas.js";
8
+ /**
9
+ * Schema for getting a single conversation
10
+ */
11
+ export const GetConversationSchema = z.object({
12
+ conversation_id: ConversationIdSchema,
13
+ response_format: ResponseFormatSchema
14
+ }).passthrough();
15
+ /**
16
+ * Schema for listing conversations
17
+ */
18
+ export const ListConversationsSchema = z.object({
19
+ agent_id: AgentIdSchema
20
+ .optional()
21
+ .describe("Optional: filter by agent ID"),
22
+ status: z.enum(["in_progress", "completed", "failed"])
23
+ .optional()
24
+ .describe("Optional: filter by conversation status"),
25
+ date_range: DateRangeSchema,
26
+ limit: LimitSchema,
27
+ offset: OffsetSchema,
28
+ response_format: ResponseFormatSchema
29
+ }).passthrough();
30
+ //# sourceMappingURL=conversation-schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-schemas.js","sourceRoot":"","sources":["../../src/schemas/conversation-schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,eAAe,EAAE,oBAAoB;IACrC,eAAe,EAAE,oBAAoB;CACtC,CAAC,CAAC,WAAW,EAAE,CAAC;AAEjB;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,aAAa;SACpB,QAAQ,EAAE;SACV,QAAQ,CAAC,8BAA8B,CAAC;IAE3C,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;SACnD,QAAQ,EAAE;SACV,QAAQ,CAAC,yCAAyC,CAAC;IAEtD,UAAU,EAAE,eAAe;IAE3B,KAAK,EAAE,WAAW;IAElB,MAAM,EAAE,YAAY;IAEpB,eAAe,EAAE,oBAAoB;CACtC,CAAC,CAAC,WAAW,EAAE,CAAC"}
@@ -0,0 +1,115 @@
1
+ /**
2
+ * Zod validation schemas for outbound calling operations
3
+ *
4
+ * Provides strict input validation for making single outbound calls via Twilio.
5
+ */
6
+ import { z } from "zod";
7
+ /**
8
+ * Phone number schema with E.164 format validation
9
+ */
10
+ export declare const PhoneNumberSchema: z.ZodString;
11
+ /**
12
+ * Phone number ID schema
13
+ */
14
+ export declare const PhoneNumberIdSchema: z.ZodString;
15
+ /**
16
+ * Config overrides schema for conversation customization
17
+ */
18
+ export declare const ConfigOverridesSchema: z.ZodOptional<z.ZodObject<{
19
+ agent: z.ZodOptional<z.ZodObject<{
20
+ first_message: z.ZodOptional<z.ZodString>;
21
+ system_prompt: z.ZodOptional<z.ZodString>;
22
+ language: z.ZodOptional<z.ZodString>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ first_message?: string | undefined;
25
+ language?: string | undefined;
26
+ system_prompt?: string | undefined;
27
+ }, {
28
+ first_message?: string | undefined;
29
+ language?: string | undefined;
30
+ system_prompt?: string | undefined;
31
+ }>>;
32
+ tts: z.ZodOptional<z.ZodObject<{
33
+ voice_id: z.ZodOptional<z.ZodString>;
34
+ model_id: z.ZodOptional<z.ZodString>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ voice_id?: string | undefined;
37
+ model_id?: string | undefined;
38
+ }, {
39
+ voice_id?: string | undefined;
40
+ model_id?: string | undefined;
41
+ }>>;
42
+ turn: z.ZodOptional<z.ZodObject<{
43
+ mode: z.ZodOptional<z.ZodString>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ mode?: string | undefined;
46
+ }, {
47
+ mode?: string | undefined;
48
+ }>>;
49
+ conversation: z.ZodOptional<z.ZodObject<{
50
+ max_duration_seconds: z.ZodOptional<z.ZodNumber>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ max_duration_seconds?: number | undefined;
53
+ }, {
54
+ max_duration_seconds?: number | undefined;
55
+ }>>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ agent?: {
58
+ first_message?: string | undefined;
59
+ language?: string | undefined;
60
+ system_prompt?: string | undefined;
61
+ } | undefined;
62
+ conversation?: {
63
+ max_duration_seconds?: number | undefined;
64
+ } | undefined;
65
+ tts?: {
66
+ voice_id?: string | undefined;
67
+ model_id?: string | undefined;
68
+ } | undefined;
69
+ turn?: {
70
+ mode?: string | undefined;
71
+ } | undefined;
72
+ }, {
73
+ agent?: {
74
+ first_message?: string | undefined;
75
+ language?: string | undefined;
76
+ system_prompt?: string | undefined;
77
+ } | undefined;
78
+ conversation?: {
79
+ max_duration_seconds?: number | undefined;
80
+ } | undefined;
81
+ tts?: {
82
+ voice_id?: string | undefined;
83
+ model_id?: string | undefined;
84
+ } | undefined;
85
+ turn?: {
86
+ mode?: string | undefined;
87
+ } | undefined;
88
+ }>>;
89
+ /**
90
+ * Conversation initiation data schema
91
+ */
92
+ export declare const ConversationInitDataSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
93
+ /**
94
+ * Schema for starting an outbound call
95
+ */
96
+ export declare const StartOutboundCallSchema: z.ZodObject<{
97
+ agent_id: z.ZodString;
98
+ agent_phone_number_id: z.ZodString;
99
+ to_number: z.ZodString;
100
+ conversation_initiation_client_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
101
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
102
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
103
+ agent_id: z.ZodString;
104
+ agent_phone_number_id: z.ZodString;
105
+ to_number: z.ZodString;
106
+ conversation_initiation_client_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
107
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
108
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
109
+ agent_id: z.ZodString;
110
+ agent_phone_number_id: z.ZodString;
111
+ to_number: z.ZodString;
112
+ conversation_initiation_client_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
113
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
114
+ }, z.ZodTypeAny, "passthrough">>;
115
+ //# sourceMappingURL=outbound-schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outbound-schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/outbound-schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,iBAAiB,aAGmC,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,mBAAmB,aAGqB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBsC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,0BAA0B,mDAEyC,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;gCAapB,CAAC"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Zod validation schemas for outbound calling operations
3
+ *
4
+ * Provides strict input validation for making single outbound calls via Twilio.
5
+ */
6
+ import { z } from "zod";
7
+ import { ResponseFormatSchema, AgentIdSchema } from "./common-schemas.js";
8
+ /**
9
+ * Phone number schema with E.164 format validation
10
+ */
11
+ export const PhoneNumberSchema = z.string()
12
+ .min(1, "Phone number is required")
13
+ .regex(/^\+?[1-9]\d{1,14}$/, "Phone number must be in E.164 format (e.g., +1234567890)")
14
+ .describe("Phone number in E.164 format (e.g., '+1234567890')");
15
+ /**
16
+ * Phone number ID schema
17
+ */
18
+ export const PhoneNumberIdSchema = z.string()
19
+ .min(1, "Phone number ID is required")
20
+ .regex(/^[a-zA-Z0-9_-]+$/, "Phone number ID must contain only alphanumeric characters, hyphens, and underscores")
21
+ .describe("Unique identifier for the phone number");
22
+ /**
23
+ * Config overrides schema for conversation customization
24
+ */
25
+ export const ConfigOverridesSchema = z.object({
26
+ agent: z.object({
27
+ first_message: z.string().optional(),
28
+ system_prompt: z.string().optional(),
29
+ language: z.string().optional()
30
+ }).optional(),
31
+ tts: z.object({
32
+ voice_id: z.string().optional(),
33
+ model_id: z.string().optional()
34
+ }).optional(),
35
+ turn: z.object({
36
+ mode: z.string().optional()
37
+ }).optional(),
38
+ conversation: z.object({
39
+ max_duration_seconds: z.number().int().positive().optional()
40
+ }).optional()
41
+ }).optional().describe("Configuration overrides for this specific call");
42
+ /**
43
+ * Conversation initiation data schema
44
+ */
45
+ export const ConversationInitDataSchema = z.record(z.any())
46
+ .optional()
47
+ .describe("Dynamic variables and configuration overrides for personalization");
48
+ /**
49
+ * Schema for starting an outbound call
50
+ */
51
+ export const StartOutboundCallSchema = z.object({
52
+ agent_id: AgentIdSchema,
53
+ agent_phone_number_id: PhoneNumberIdSchema,
54
+ to_number: PhoneNumberSchema
55
+ .describe("Destination phone number to call"),
56
+ conversation_initiation_client_data: z.record(z.any())
57
+ .optional()
58
+ .describe("Personalization data including dynamic_variables object (e.g., {dynamic_variables: {name: 'John', user_id: '123'}})"),
59
+ response_format: ResponseFormatSchema
60
+ }).passthrough();
61
+ //# sourceMappingURL=outbound-schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outbound-schemas.js","sourceRoot":"","sources":["../../src/schemas/outbound-schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAE1E;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB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,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC,CAAC;AAEzE;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;KACxD,QAAQ,EAAE;KACV,QAAQ,CAAC,mEAAmE,CAAC,CAAC;AAEjF;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,aAAa;IAEvB,qBAAqB,EAAE,mBAAmB;IAE1C,SAAS,EAAE,iBAAiB;SACzB,QAAQ,CAAC,kCAAkC,CAAC;IAE/C,mCAAmC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;SACnD,QAAQ,EAAE;SACV,QAAQ,CAAC,qHAAqH,CAAC;IAElI,eAAe,EAAE,oBAAoB;CACtC,CAAC,CAAC,WAAW,EAAE,CAAC"}
@@ -0,0 +1,168 @@
1
+ /**
2
+ * Zod validation schemas for phone number management operations
3
+ *
4
+ * Provides strict input validation for listing, importing, updating,
5
+ * and deleting phone numbers connected to voice agents.
6
+ */
7
+ import { z } from "zod";
8
+ /**
9
+ * Phone provider enum
10
+ */
11
+ export declare const PhoneProviderSchema: z.ZodEnum<["twilio", "sip_trunk"]>;
12
+ /**
13
+ * Region ID schema
14
+ */
15
+ export declare const RegionIdSchema: z.ZodEnum<["us1", "ie1", "au1"]>;
16
+ /**
17
+ * Edge location schema
18
+ */
19
+ export declare const EdgeLocationSchema: z.ZodEnum<["ashburn", "dublin", "frankfurt", "sao-paulo", "singapore", "sydney", "tokyo", "umatilla", "roaming"]>;
20
+ /**
21
+ * LiveKit stack schema
22
+ */
23
+ export declare const LiveKitStackSchema: z.ZodEnum<["standard", "static"]>;
24
+ /**
25
+ * Region config schema for Twilio
26
+ */
27
+ export declare const RegionConfigSchema: z.ZodObject<{
28
+ region_id: z.ZodEnum<["us1", "ie1", "au1"]>;
29
+ token: z.ZodString;
30
+ edge_location: z.ZodEnum<["ashburn", "dublin", "frankfurt", "sao-paulo", "singapore", "sydney", "tokyo", "umatilla", "roaming"]>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ region_id: "us1" | "ie1" | "au1";
33
+ token: string;
34
+ edge_location: "ashburn" | "dublin" | "frankfurt" | "sao-paulo" | "singapore" | "sydney" | "tokyo" | "umatilla" | "roaming";
35
+ }, {
36
+ region_id: "us1" | "ie1" | "au1";
37
+ token: string;
38
+ edge_location: "ashburn" | "dublin" | "frankfurt" | "sao-paulo" | "singapore" | "sydney" | "tokyo" | "umatilla" | "roaming";
39
+ }>;
40
+ /**
41
+ * Schema for listing phone numbers
42
+ */
43
+ export declare const ListPhoneNumbersSchema: z.ZodObject<{
44
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
45
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
46
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
47
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
48
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
49
+ }, z.ZodTypeAny, "passthrough">>;
50
+ /**
51
+ * Schema for getting a phone number
52
+ */
53
+ export declare const GetPhoneNumberSchema: z.ZodObject<{
54
+ phone_number_id: z.ZodString;
55
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
56
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
57
+ phone_number_id: z.ZodString;
58
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
59
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
60
+ phone_number_id: z.ZodString;
61
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
62
+ }, z.ZodTypeAny, "passthrough">>;
63
+ /**
64
+ * Schema for importing a Twilio phone number
65
+ */
66
+ export declare const ImportPhoneNumberSchema: z.ZodObject<{
67
+ phone_number: z.ZodString;
68
+ label: z.ZodString;
69
+ sid: z.ZodString;
70
+ token: z.ZodString;
71
+ provider: z.ZodLiteral<"twilio">;
72
+ supports_inbound: z.ZodDefault<z.ZodBoolean>;
73
+ supports_outbound: z.ZodDefault<z.ZodBoolean>;
74
+ region_config: z.ZodOptional<z.ZodObject<{
75
+ region_id: z.ZodEnum<["us1", "ie1", "au1"]>;
76
+ token: z.ZodString;
77
+ edge_location: z.ZodEnum<["ashburn", "dublin", "frankfurt", "sao-paulo", "singapore", "sydney", "tokyo", "umatilla", "roaming"]>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ region_id: "us1" | "ie1" | "au1";
80
+ token: string;
81
+ edge_location: "ashburn" | "dublin" | "frankfurt" | "sao-paulo" | "singapore" | "sydney" | "tokyo" | "umatilla" | "roaming";
82
+ }, {
83
+ region_id: "us1" | "ie1" | "au1";
84
+ token: string;
85
+ edge_location: "ashburn" | "dublin" | "frankfurt" | "sao-paulo" | "singapore" | "sydney" | "tokyo" | "umatilla" | "roaming";
86
+ }>>;
87
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
88
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
89
+ phone_number: z.ZodString;
90
+ label: z.ZodString;
91
+ sid: z.ZodString;
92
+ token: z.ZodString;
93
+ provider: z.ZodLiteral<"twilio">;
94
+ supports_inbound: z.ZodDefault<z.ZodBoolean>;
95
+ supports_outbound: z.ZodDefault<z.ZodBoolean>;
96
+ region_config: z.ZodOptional<z.ZodObject<{
97
+ region_id: z.ZodEnum<["us1", "ie1", "au1"]>;
98
+ token: z.ZodString;
99
+ edge_location: z.ZodEnum<["ashburn", "dublin", "frankfurt", "sao-paulo", "singapore", "sydney", "tokyo", "umatilla", "roaming"]>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ region_id: "us1" | "ie1" | "au1";
102
+ token: string;
103
+ edge_location: "ashburn" | "dublin" | "frankfurt" | "sao-paulo" | "singapore" | "sydney" | "tokyo" | "umatilla" | "roaming";
104
+ }, {
105
+ region_id: "us1" | "ie1" | "au1";
106
+ token: string;
107
+ edge_location: "ashburn" | "dublin" | "frankfurt" | "sao-paulo" | "singapore" | "sydney" | "tokyo" | "umatilla" | "roaming";
108
+ }>>;
109
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
110
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
111
+ phone_number: z.ZodString;
112
+ label: z.ZodString;
113
+ sid: z.ZodString;
114
+ token: z.ZodString;
115
+ provider: z.ZodLiteral<"twilio">;
116
+ supports_inbound: z.ZodDefault<z.ZodBoolean>;
117
+ supports_outbound: z.ZodDefault<z.ZodBoolean>;
118
+ region_config: z.ZodOptional<z.ZodObject<{
119
+ region_id: z.ZodEnum<["us1", "ie1", "au1"]>;
120
+ token: z.ZodString;
121
+ edge_location: z.ZodEnum<["ashburn", "dublin", "frankfurt", "sao-paulo", "singapore", "sydney", "tokyo", "umatilla", "roaming"]>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ region_id: "us1" | "ie1" | "au1";
124
+ token: string;
125
+ edge_location: "ashburn" | "dublin" | "frankfurt" | "sao-paulo" | "singapore" | "sydney" | "tokyo" | "umatilla" | "roaming";
126
+ }, {
127
+ region_id: "us1" | "ie1" | "au1";
128
+ token: string;
129
+ edge_location: "ashburn" | "dublin" | "frankfurt" | "sao-paulo" | "singapore" | "sydney" | "tokyo" | "umatilla" | "roaming";
130
+ }>>;
131
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
132
+ }, z.ZodTypeAny, "passthrough">>;
133
+ /**
134
+ * Schema for updating a phone number
135
+ */
136
+ export declare const UpdatePhoneNumberSchema: z.ZodObject<{
137
+ phone_number_id: z.ZodString;
138
+ agent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
139
+ inbound_trunk_config: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
140
+ outbound_trunk_config: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
141
+ livekit_stack: z.ZodNullable<z.ZodOptional<z.ZodEnum<["standard", "static"]>>>;
142
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
143
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
144
+ phone_number_id: z.ZodString;
145
+ agent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
146
+ inbound_trunk_config: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
147
+ outbound_trunk_config: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
148
+ livekit_stack: z.ZodNullable<z.ZodOptional<z.ZodEnum<["standard", "static"]>>>;
149
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
150
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
151
+ phone_number_id: z.ZodString;
152
+ agent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
153
+ inbound_trunk_config: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
154
+ outbound_trunk_config: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
155
+ livekit_stack: z.ZodNullable<z.ZodOptional<z.ZodEnum<["standard", "static"]>>>;
156
+ response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../types.js").ResponseFormat>>;
157
+ }, z.ZodTypeAny, "passthrough">>;
158
+ /**
159
+ * Schema for deleting a phone number
160
+ */
161
+ export declare const DeletePhoneNumberSchema: z.ZodObject<{
162
+ phone_number_id: z.ZodString;
163
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
164
+ phone_number_id: z.ZodString;
165
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
166
+ phone_number_id: z.ZodString;
167
+ }, z.ZodTypeAny, "passthrough">>;
168
+ //# sourceMappingURL=phone-number-schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-number-schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/phone-number-schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AACH,eAAO,MAAM,mBAAmB,oCAEI,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,cAAc,kCAEgB,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,kBAAkB,mHAKI,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,kBAAkB,mCAEW,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI+B,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;gCAEnB,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;gCAIjB,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAiCpB,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;gCAwBpB,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;gCAEpB,CAAC"}