@elevenlabs/elevenlabs-js 2.8.0 → 2.9.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 (123) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/conversationalAi/resources/conversations/client/Client.js +1 -9
  3. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.d.ts +0 -9
  4. package/api/resources/speechToText/types/SpeechToTextConvertResponse.d.ts +1 -1
  5. package/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
  6. package/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
  7. package/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +1 -1
  8. package/api/resources/textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.d.ts +1 -1
  9. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.d.ts +1 -1
  10. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.d.ts +1 -1
  11. package/api/resources/textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.d.ts +1 -1
  12. package/api/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.d.ts +1 -1
  13. package/api/types/ConversationSummaryResponseModel.d.ts +1 -0
  14. package/api/types/ConversationSummaryResponseModelDirection.d.ts +8 -0
  15. package/api/types/ConversationSummaryResponseModelDirection.js +10 -0
  16. package/api/types/FeaturesUsageCommonModel.d.ts +1 -0
  17. package/api/types/Llm.d.ts +9 -1
  18. package/api/types/Llm.js +8 -0
  19. package/api/types/PromptAgentApiModelInputToolsItem.d.ts +2 -1
  20. package/api/types/PromptAgentApiModelOutputToolsItem.d.ts +2 -1
  21. package/api/types/SpeechToTextWebhookResponseModel.d.ts +9 -0
  22. package/api/types/SubscriptionExtrasResponseModel.d.ts +2 -2
  23. package/api/types/ToolRequestModelToolConfig.d.ts +2 -1
  24. package/api/types/ToolResponseModelToolConfig.d.ts +2 -1
  25. package/api/types/index.d.ts +2 -3
  26. package/api/types/index.js +2 -3
  27. package/dist/Client.js +2 -2
  28. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +1 -9
  29. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.d.ts +0 -9
  30. package/dist/api/resources/speechToText/types/SpeechToTextConvertResponse.d.ts +1 -1
  31. package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
  32. package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
  33. package/dist/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +1 -1
  34. package/dist/api/resources/textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.d.ts +1 -1
  35. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.d.ts +1 -1
  36. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.d.ts +1 -1
  37. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.d.ts +1 -1
  38. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.d.ts +1 -1
  39. package/dist/api/types/ConversationSummaryResponseModel.d.ts +1 -0
  40. package/dist/api/types/ConversationSummaryResponseModelDirection.d.ts +8 -0
  41. package/dist/api/types/ConversationSummaryResponseModelDirection.js +10 -0
  42. package/dist/api/types/FeaturesUsageCommonModel.d.ts +1 -0
  43. package/dist/api/types/Llm.d.ts +9 -1
  44. package/dist/api/types/Llm.js +8 -0
  45. package/dist/api/types/PromptAgentApiModelInputToolsItem.d.ts +2 -1
  46. package/dist/api/types/PromptAgentApiModelOutputToolsItem.d.ts +2 -1
  47. package/dist/api/types/SpeechToTextWebhookResponseModel.d.ts +9 -0
  48. package/dist/api/types/SubscriptionExtrasResponseModel.d.ts +2 -2
  49. package/dist/api/types/ToolRequestModelToolConfig.d.ts +2 -1
  50. package/dist/api/types/ToolResponseModelToolConfig.d.ts +2 -1
  51. package/dist/api/types/index.d.ts +2 -3
  52. package/dist/api/types/index.js +2 -3
  53. package/dist/serialization/resources/speechToText/types/SpeechToTextConvertResponse.d.ts +2 -1
  54. package/dist/serialization/resources/speechToText/types/SpeechToTextConvertResponse.js +6 -1
  55. package/dist/serialization/types/ConversationSummaryResponseModel.d.ts +2 -0
  56. package/dist/serialization/types/ConversationSummaryResponseModel.js +2 -0
  57. package/dist/serialization/types/ConversationSummaryResponseModelDirection.d.ts +10 -0
  58. package/dist/serialization/types/ConversationSummaryResponseModelDirection.js +41 -0
  59. package/dist/serialization/types/FeaturesUsageCommonModel.d.ts +1 -0
  60. package/dist/serialization/types/FeaturesUsageCommonModel.js +1 -0
  61. package/dist/serialization/types/Llm.d.ts +1 -1
  62. package/dist/serialization/types/Llm.js +8 -0
  63. package/dist/serialization/types/PromptAgentApiModelInputToolsItem.d.ts +2 -2
  64. package/dist/serialization/types/PromptAgentApiModelInputToolsItem.js +3 -2
  65. package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +2 -2
  66. package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.js +3 -2
  67. package/dist/serialization/types/SpeechToTextWebhookResponseModel.d.ts +13 -0
  68. package/dist/serialization/types/{AgentBan.js → SpeechToTextWebhookResponseModel.js} +4 -6
  69. package/dist/serialization/types/ToolRequestModelToolConfig.d.ts +2 -2
  70. package/dist/serialization/types/ToolRequestModelToolConfig.js +3 -2
  71. package/dist/serialization/types/ToolResponseModelToolConfig.d.ts +2 -2
  72. package/dist/serialization/types/ToolResponseModelToolConfig.js +3 -2
  73. package/dist/serialization/types/index.d.ts +2 -3
  74. package/dist/serialization/types/index.js +2 -3
  75. package/dist/version.d.ts +1 -1
  76. package/dist/version.js +1 -1
  77. package/package.json +11 -11
  78. package/serialization/resources/speechToText/types/SpeechToTextConvertResponse.d.ts +2 -1
  79. package/serialization/resources/speechToText/types/SpeechToTextConvertResponse.js +6 -1
  80. package/serialization/types/ConversationSummaryResponseModel.d.ts +2 -0
  81. package/serialization/types/ConversationSummaryResponseModel.js +2 -0
  82. package/serialization/types/ConversationSummaryResponseModelDirection.d.ts +10 -0
  83. package/serialization/types/ConversationSummaryResponseModelDirection.js +41 -0
  84. package/serialization/types/FeaturesUsageCommonModel.d.ts +1 -0
  85. package/serialization/types/FeaturesUsageCommonModel.js +1 -0
  86. package/serialization/types/Llm.d.ts +1 -1
  87. package/serialization/types/Llm.js +8 -0
  88. package/serialization/types/PromptAgentApiModelInputToolsItem.d.ts +2 -2
  89. package/serialization/types/PromptAgentApiModelInputToolsItem.js +3 -2
  90. package/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +2 -2
  91. package/serialization/types/PromptAgentApiModelOutputToolsItem.js +3 -2
  92. package/serialization/types/SpeechToTextWebhookResponseModel.d.ts +13 -0
  93. package/serialization/types/{AgentBan.js → SpeechToTextWebhookResponseModel.js} +4 -6
  94. package/serialization/types/ToolRequestModelToolConfig.d.ts +2 -2
  95. package/serialization/types/ToolRequestModelToolConfig.js +3 -2
  96. package/serialization/types/ToolResponseModelToolConfig.d.ts +2 -2
  97. package/serialization/types/ToolResponseModelToolConfig.js +3 -2
  98. package/serialization/types/index.d.ts +2 -3
  99. package/serialization/types/index.js +2 -3
  100. package/version.d.ts +1 -1
  101. package/version.js +1 -1
  102. package/api/types/AgentBan.d.ts +0 -9
  103. package/api/types/McpToolConfigInput.d.ts +0 -35
  104. package/api/types/McpToolConfigOutput.d.ts +0 -35
  105. package/api/types/McpToolConfigOutput.js +0 -5
  106. package/dist/api/types/AgentBan.d.ts +0 -9
  107. package/dist/api/types/AgentBan.js +0 -5
  108. package/dist/api/types/McpToolConfigInput.d.ts +0 -35
  109. package/dist/api/types/McpToolConfigInput.js +0 -5
  110. package/dist/api/types/McpToolConfigOutput.d.ts +0 -35
  111. package/dist/api/types/McpToolConfigOutput.js +0 -5
  112. package/dist/serialization/types/AgentBan.d.ts +0 -15
  113. package/dist/serialization/types/McpToolConfigInput.d.ts +0 -28
  114. package/dist/serialization/types/McpToolConfigInput.js +0 -60
  115. package/dist/serialization/types/McpToolConfigOutput.d.ts +0 -28
  116. package/dist/serialization/types/McpToolConfigOutput.js +0 -60
  117. package/serialization/types/AgentBan.d.ts +0 -15
  118. package/serialization/types/McpToolConfigInput.d.ts +0 -28
  119. package/serialization/types/McpToolConfigInput.js +0 -60
  120. package/serialization/types/McpToolConfigOutput.d.ts +0 -28
  121. package/serialization/types/McpToolConfigOutput.js +0 -60
  122. /package/api/types/{AgentBan.js → SpeechToTextWebhookResponseModel.js} +0 -0
  123. /package/{api/types/McpToolConfigInput.js → dist/api/types/SpeechToTextWebhookResponseModel.js} +0 -0
@@ -1,35 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as ElevenLabs from "../index";
5
- /**
6
- * An MCP tool configuration that can be used to call MCP servers
7
- */
8
- export interface McpToolConfigInput {
9
- name: string;
10
- description: string;
11
- /** The maximum time in seconds to wait for the tool call to complete. */
12
- responseTimeoutSecs?: number;
13
- /** If true, the user will not be able to interrupt the agent while this tool is running. */
14
- disableInterruptions?: boolean;
15
- /** If true, the agent will speak before the tool call. */
16
- forcePreToolSpeech?: boolean;
17
- /** Configuration for extracting values from tool responses and assigning them to dynamic variables */
18
- assignments?: ElevenLabs.DynamicVariableAssignment[];
19
- /** The type of MCP tool */
20
- integrationType: ElevenLabs.IntegrationType;
21
- /** Schema for any parameters the LLM needs to provide to the MCP tool. */
22
- parameters?: ElevenLabs.ObjectJsonSchemaPropertyInput;
23
- /** The approval policy for the MCP tool */
24
- approvalPolicy?: ElevenLabs.McpApprovalPolicy;
25
- /** The name of the MCP tool to call */
26
- mcpToolName: string;
27
- /** The description of the MCP tool to call */
28
- mcpToolDescription: string;
29
- /** The id of the MCP server to call */
30
- mcpServerId: string;
31
- /** The name of the MCP server to call */
32
- mcpServerName: string;
33
- /** Original inputSchema dict for consistent hashing (pure MCP format) */
34
- mcpInputSchema?: Record<string, unknown>;
35
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,35 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as ElevenLabs from "../index";
5
- /**
6
- * An MCP tool configuration that can be used to call MCP servers
7
- */
8
- export interface McpToolConfigOutput {
9
- name: string;
10
- description: string;
11
- /** The maximum time in seconds to wait for the tool call to complete. */
12
- responseTimeoutSecs?: number;
13
- /** If true, the user will not be able to interrupt the agent while this tool is running. */
14
- disableInterruptions?: boolean;
15
- /** If true, the agent will speak before the tool call. */
16
- forcePreToolSpeech?: boolean;
17
- /** Configuration for extracting values from tool responses and assigning them to dynamic variables */
18
- assignments?: ElevenLabs.DynamicVariableAssignment[];
19
- /** The type of MCP tool */
20
- integrationType: ElevenLabs.IntegrationType;
21
- /** Schema for any parameters the LLM needs to provide to the MCP tool. */
22
- parameters?: ElevenLabs.ObjectJsonSchemaPropertyOutput;
23
- /** The approval policy for the MCP tool */
24
- approvalPolicy?: ElevenLabs.McpApprovalPolicy;
25
- /** The name of the MCP tool to call */
26
- mcpToolName: string;
27
- /** The description of the MCP tool to call */
28
- mcpToolDescription: string;
29
- /** The id of the MCP server to call */
30
- mcpServerId: string;
31
- /** The name of the MCP server to call */
32
- mcpServerName: string;
33
- /** Original inputSchema dict for consistent hashing (pure MCP format) */
34
- mcpInputSchema?: Record<string, unknown>;
35
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as ElevenLabs from "../../api/index";
6
- import * as core from "../../core";
7
- import { BanReasonType } from "./BanReasonType";
8
- export declare const AgentBan: core.serialization.ObjectSchema<serializers.AgentBan.Raw, ElevenLabs.AgentBan>;
9
- export declare namespace AgentBan {
10
- interface Raw {
11
- at_unix: number;
12
- reason?: string | null;
13
- reason_type: BanReasonType.Raw;
14
- }
15
- }
@@ -1,28 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as ElevenLabs from "../../api/index";
6
- import * as core from "../../core";
7
- import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
8
- import { IntegrationType } from "./IntegrationType";
9
- import { McpApprovalPolicy } from "./McpApprovalPolicy";
10
- export declare const McpToolConfigInput: core.serialization.ObjectSchema<serializers.McpToolConfigInput.Raw, ElevenLabs.McpToolConfigInput>;
11
- export declare namespace McpToolConfigInput {
12
- interface Raw {
13
- name: string;
14
- description: string;
15
- response_timeout_secs?: number | null;
16
- disable_interruptions?: boolean | null;
17
- force_pre_tool_speech?: boolean | null;
18
- assignments?: DynamicVariableAssignment.Raw[] | null;
19
- integration_type: IntegrationType.Raw;
20
- parameters?: serializers.ObjectJsonSchemaPropertyInput.Raw | null;
21
- approval_policy?: McpApprovalPolicy.Raw | null;
22
- mcp_tool_name: string;
23
- mcp_tool_description: string;
24
- mcp_server_id: string;
25
- mcp_server_name: string;
26
- mcp_input_schema?: Record<string, unknown> | null;
27
- }
28
- }
@@ -1,60 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.McpToolConfigInput = void 0;
40
- const serializers = __importStar(require("../index"));
41
- const core = __importStar(require("../../core"));
42
- const DynamicVariableAssignment_1 = require("./DynamicVariableAssignment");
43
- const IntegrationType_1 = require("./IntegrationType");
44
- const McpApprovalPolicy_1 = require("./McpApprovalPolicy");
45
- exports.McpToolConfigInput = core.serialization.object({
46
- name: core.serialization.string(),
47
- description: core.serialization.string(),
48
- responseTimeoutSecs: core.serialization.property("response_timeout_secs", core.serialization.number().optional()),
49
- disableInterruptions: core.serialization.property("disable_interruptions", core.serialization.boolean().optional()),
50
- forcePreToolSpeech: core.serialization.property("force_pre_tool_speech", core.serialization.boolean().optional()),
51
- assignments: core.serialization.list(DynamicVariableAssignment_1.DynamicVariableAssignment).optional(),
52
- integrationType: core.serialization.property("integration_type", IntegrationType_1.IntegrationType),
53
- parameters: core.serialization.lazyObject(() => serializers.ObjectJsonSchemaPropertyInput).optional(),
54
- approvalPolicy: core.serialization.property("approval_policy", McpApprovalPolicy_1.McpApprovalPolicy.optional()),
55
- mcpToolName: core.serialization.property("mcp_tool_name", core.serialization.string()),
56
- mcpToolDescription: core.serialization.property("mcp_tool_description", core.serialization.string()),
57
- mcpServerId: core.serialization.property("mcp_server_id", core.serialization.string()),
58
- mcpServerName: core.serialization.property("mcp_server_name", core.serialization.string()),
59
- mcpInputSchema: core.serialization.property("mcp_input_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
60
- });
@@ -1,28 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as ElevenLabs from "../../api/index";
6
- import * as core from "../../core";
7
- import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
8
- import { IntegrationType } from "./IntegrationType";
9
- import { McpApprovalPolicy } from "./McpApprovalPolicy";
10
- export declare const McpToolConfigOutput: core.serialization.ObjectSchema<serializers.McpToolConfigOutput.Raw, ElevenLabs.McpToolConfigOutput>;
11
- export declare namespace McpToolConfigOutput {
12
- interface Raw {
13
- name: string;
14
- description: string;
15
- response_timeout_secs?: number | null;
16
- disable_interruptions?: boolean | null;
17
- force_pre_tool_speech?: boolean | null;
18
- assignments?: DynamicVariableAssignment.Raw[] | null;
19
- integration_type: IntegrationType.Raw;
20
- parameters?: serializers.ObjectJsonSchemaPropertyOutput.Raw | null;
21
- approval_policy?: McpApprovalPolicy.Raw | null;
22
- mcp_tool_name: string;
23
- mcp_tool_description: string;
24
- mcp_server_id: string;
25
- mcp_server_name: string;
26
- mcp_input_schema?: Record<string, unknown> | null;
27
- }
28
- }
@@ -1,60 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.McpToolConfigOutput = void 0;
40
- const serializers = __importStar(require("../index"));
41
- const core = __importStar(require("../../core"));
42
- const DynamicVariableAssignment_1 = require("./DynamicVariableAssignment");
43
- const IntegrationType_1 = require("./IntegrationType");
44
- const McpApprovalPolicy_1 = require("./McpApprovalPolicy");
45
- exports.McpToolConfigOutput = core.serialization.object({
46
- name: core.serialization.string(),
47
- description: core.serialization.string(),
48
- responseTimeoutSecs: core.serialization.property("response_timeout_secs", core.serialization.number().optional()),
49
- disableInterruptions: core.serialization.property("disable_interruptions", core.serialization.boolean().optional()),
50
- forcePreToolSpeech: core.serialization.property("force_pre_tool_speech", core.serialization.boolean().optional()),
51
- assignments: core.serialization.list(DynamicVariableAssignment_1.DynamicVariableAssignment).optional(),
52
- integrationType: core.serialization.property("integration_type", IntegrationType_1.IntegrationType),
53
- parameters: core.serialization.lazyObject(() => serializers.ObjectJsonSchemaPropertyOutput).optional(),
54
- approvalPolicy: core.serialization.property("approval_policy", McpApprovalPolicy_1.McpApprovalPolicy.optional()),
55
- mcpToolName: core.serialization.property("mcp_tool_name", core.serialization.string()),
56
- mcpToolDescription: core.serialization.property("mcp_tool_description", core.serialization.string()),
57
- mcpServerId: core.serialization.property("mcp_server_id", core.serialization.string()),
58
- mcpServerName: core.serialization.property("mcp_server_name", core.serialization.string()),
59
- mcpInputSchema: core.serialization.property("mcp_input_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
60
- });
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as ElevenLabs from "../../api/index";
6
- import * as core from "../../core";
7
- import { BanReasonType } from "./BanReasonType";
8
- export declare const AgentBan: core.serialization.ObjectSchema<serializers.AgentBan.Raw, ElevenLabs.AgentBan>;
9
- export declare namespace AgentBan {
10
- interface Raw {
11
- at_unix: number;
12
- reason?: string | null;
13
- reason_type: BanReasonType.Raw;
14
- }
15
- }
@@ -1,28 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as ElevenLabs from "../../api/index";
6
- import * as core from "../../core";
7
- import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
8
- import { IntegrationType } from "./IntegrationType";
9
- import { McpApprovalPolicy } from "./McpApprovalPolicy";
10
- export declare const McpToolConfigInput: core.serialization.ObjectSchema<serializers.McpToolConfigInput.Raw, ElevenLabs.McpToolConfigInput>;
11
- export declare namespace McpToolConfigInput {
12
- interface Raw {
13
- name: string;
14
- description: string;
15
- response_timeout_secs?: number | null;
16
- disable_interruptions?: boolean | null;
17
- force_pre_tool_speech?: boolean | null;
18
- assignments?: DynamicVariableAssignment.Raw[] | null;
19
- integration_type: IntegrationType.Raw;
20
- parameters?: serializers.ObjectJsonSchemaPropertyInput.Raw | null;
21
- approval_policy?: McpApprovalPolicy.Raw | null;
22
- mcp_tool_name: string;
23
- mcp_tool_description: string;
24
- mcp_server_id: string;
25
- mcp_server_name: string;
26
- mcp_input_schema?: Record<string, unknown> | null;
27
- }
28
- }
@@ -1,60 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.McpToolConfigInput = void 0;
40
- const serializers = __importStar(require("../index"));
41
- const core = __importStar(require("../../core"));
42
- const DynamicVariableAssignment_1 = require("./DynamicVariableAssignment");
43
- const IntegrationType_1 = require("./IntegrationType");
44
- const McpApprovalPolicy_1 = require("./McpApprovalPolicy");
45
- exports.McpToolConfigInput = core.serialization.object({
46
- name: core.serialization.string(),
47
- description: core.serialization.string(),
48
- responseTimeoutSecs: core.serialization.property("response_timeout_secs", core.serialization.number().optional()),
49
- disableInterruptions: core.serialization.property("disable_interruptions", core.serialization.boolean().optional()),
50
- forcePreToolSpeech: core.serialization.property("force_pre_tool_speech", core.serialization.boolean().optional()),
51
- assignments: core.serialization.list(DynamicVariableAssignment_1.DynamicVariableAssignment).optional(),
52
- integrationType: core.serialization.property("integration_type", IntegrationType_1.IntegrationType),
53
- parameters: core.serialization.lazyObject(() => serializers.ObjectJsonSchemaPropertyInput).optional(),
54
- approvalPolicy: core.serialization.property("approval_policy", McpApprovalPolicy_1.McpApprovalPolicy.optional()),
55
- mcpToolName: core.serialization.property("mcp_tool_name", core.serialization.string()),
56
- mcpToolDescription: core.serialization.property("mcp_tool_description", core.serialization.string()),
57
- mcpServerId: core.serialization.property("mcp_server_id", core.serialization.string()),
58
- mcpServerName: core.serialization.property("mcp_server_name", core.serialization.string()),
59
- mcpInputSchema: core.serialization.property("mcp_input_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
60
- });
@@ -1,28 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as ElevenLabs from "../../api/index";
6
- import * as core from "../../core";
7
- import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
8
- import { IntegrationType } from "./IntegrationType";
9
- import { McpApprovalPolicy } from "./McpApprovalPolicy";
10
- export declare const McpToolConfigOutput: core.serialization.ObjectSchema<serializers.McpToolConfigOutput.Raw, ElevenLabs.McpToolConfigOutput>;
11
- export declare namespace McpToolConfigOutput {
12
- interface Raw {
13
- name: string;
14
- description: string;
15
- response_timeout_secs?: number | null;
16
- disable_interruptions?: boolean | null;
17
- force_pre_tool_speech?: boolean | null;
18
- assignments?: DynamicVariableAssignment.Raw[] | null;
19
- integration_type: IntegrationType.Raw;
20
- parameters?: serializers.ObjectJsonSchemaPropertyOutput.Raw | null;
21
- approval_policy?: McpApprovalPolicy.Raw | null;
22
- mcp_tool_name: string;
23
- mcp_tool_description: string;
24
- mcp_server_id: string;
25
- mcp_server_name: string;
26
- mcp_input_schema?: Record<string, unknown> | null;
27
- }
28
- }
@@ -1,60 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.McpToolConfigOutput = void 0;
40
- const serializers = __importStar(require("../index"));
41
- const core = __importStar(require("../../core"));
42
- const DynamicVariableAssignment_1 = require("./DynamicVariableAssignment");
43
- const IntegrationType_1 = require("./IntegrationType");
44
- const McpApprovalPolicy_1 = require("./McpApprovalPolicy");
45
- exports.McpToolConfigOutput = core.serialization.object({
46
- name: core.serialization.string(),
47
- description: core.serialization.string(),
48
- responseTimeoutSecs: core.serialization.property("response_timeout_secs", core.serialization.number().optional()),
49
- disableInterruptions: core.serialization.property("disable_interruptions", core.serialization.boolean().optional()),
50
- forcePreToolSpeech: core.serialization.property("force_pre_tool_speech", core.serialization.boolean().optional()),
51
- assignments: core.serialization.list(DynamicVariableAssignment_1.DynamicVariableAssignment).optional(),
52
- integrationType: core.serialization.property("integration_type", IntegrationType_1.IntegrationType),
53
- parameters: core.serialization.lazyObject(() => serializers.ObjectJsonSchemaPropertyOutput).optional(),
54
- approvalPolicy: core.serialization.property("approval_policy", McpApprovalPolicy_1.McpApprovalPolicy.optional()),
55
- mcpToolName: core.serialization.property("mcp_tool_name", core.serialization.string()),
56
- mcpToolDescription: core.serialization.property("mcp_tool_description", core.serialization.string()),
57
- mcpServerId: core.serialization.property("mcp_server_id", core.serialization.string()),
58
- mcpServerName: core.serialization.property("mcp_server_name", core.serialization.string()),
59
- mcpInputSchema: core.serialization.property("mcp_input_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
60
- });