@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
package/Client.js CHANGED
@@ -78,8 +78,8 @@ class ElevenLabsClient {
78
78
  "xi-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
79
79
  "X-Fern-Language": "JavaScript",
80
80
  "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
81
- "X-Fern-SDK-Version": "v2.8.0",
82
- "User-Agent": "@elevenlabs/elevenlabs-js/v2.8.0",
81
+ "X-Fern-SDK-Version": "v2.9.0",
82
+ "User-Agent": "@elevenlabs/elevenlabs-js/v2.9.0",
83
83
  "X-Fern-Runtime": core.RUNTIME.type,
84
84
  "X-Fern-Runtime-Version": core.RUNTIME.version,
85
85
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -161,20 +161,12 @@ class Conversations {
161
161
  __getWebrtcToken(request, requestOptions) {
162
162
  return __awaiter(this, void 0, void 0, function* () {
163
163
  var _a, _b, _c;
164
- const { agentId, participantName, source, version } = request;
164
+ const { agentId, participantName } = request;
165
165
  const _queryParams = {};
166
166
  _queryParams["agent_id"] = agentId;
167
167
  if (participantName != null) {
168
168
  _queryParams["participant_name"] = participantName;
169
169
  }
170
- if (source != null) {
171
- _queryParams["source"] = serializers.ConversationInitiationSource.jsonOrThrow(source, {
172
- unrecognizedObjectKeys: "strip",
173
- });
174
- }
175
- if (version != null) {
176
- _queryParams["version"] = version;
177
- }
178
170
  const _response = yield core.fetcher({
179
171
  url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/conversation/token"),
180
172
  method: "GET",
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as ElevenLabs from "../../../../../../index";
5
4
  /**
6
5
  * @example
7
6
  * {
@@ -17,12 +16,4 @@ export interface ConversationsGetWebrtcTokenRequest {
17
16
  * Optional custom participant name. If not provided, user ID will be used
18
17
  */
19
18
  participantName?: string;
20
- /**
21
- * The source of the conversation initiation.
22
- */
23
- source?: ElevenLabs.ConversationInitiationSource;
24
- /**
25
- * The SDK version number
26
- */
27
- version?: string;
28
19
  }
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as ElevenLabs from "../../../index";
5
- export type SpeechToTextConvertResponse = ElevenLabs.SpeechToTextChunkResponseModel | ElevenLabs.MultichannelSpeechToTextResponseModel;
5
+ export type SpeechToTextConvertResponse = ElevenLabs.SpeechToTextChunkResponseModel | ElevenLabs.MultichannelSpeechToTextResponseModel | ElevenLabs.SpeechToTextWebhookResponseModel;
@@ -52,7 +52,7 @@ export interface StreamTextToSpeechRequest {
52
52
  nextRequestIds?: string[];
53
53
  /** If true, we won't use PVC version of the voice for the generation but the IVC version. This is a temporary workaround for higher latency in PVC versions. */
54
54
  usePvcAsIvc?: boolean;
55
- /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
55
+ /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models. */
56
56
  applyTextNormalization?: ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization;
57
57
  /** This parameter controls language text normalization. This helps with proper pronunciation of text in some supported languages. WARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese. */
58
58
  applyLanguageTextNormalization?: boolean;
@@ -52,7 +52,7 @@ export interface StreamTextToSpeechWithTimestampsRequest {
52
52
  nextRequestIds?: string[];
53
53
  /** If true, we won't use PVC version of the voice for the generation but the IVC version. This is a temporary workaround for higher latency in PVC versions. */
54
54
  usePvcAsIvc?: boolean;
55
- /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
55
+ /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models. */
56
56
  applyTextNormalization?: ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization;
57
57
  /** This parameter controls language text normalization. This helps with proper pronunciation of text in some supported languages. WARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese. */
58
58
  applyLanguageTextNormalization?: boolean;
@@ -52,7 +52,7 @@ export interface TextToSpeechRequest {
52
52
  nextRequestIds?: string[];
53
53
  /** If true, we won't use PVC version of the voice for the generation but the IVC version. This is a temporary workaround for higher latency in PVC versions. */
54
54
  usePvcAsIvc?: boolean;
55
- /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
55
+ /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models. */
56
56
  applyTextNormalization?: ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization;
57
57
  /** This parameter controls language text normalization. This helps with proper pronunciation of text in some supported languages. WARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese. */
58
58
  applyLanguageTextNormalization?: boolean;
@@ -50,7 +50,7 @@ export interface TextToSpeechWithTimestampsRequest {
50
50
  nextRequestIds?: string[];
51
51
  /** If true, we won't use PVC version of the voice for the generation but the IVC version. This is a temporary workaround for higher latency in PVC versions. */
52
52
  usePvcAsIvc?: boolean;
53
- /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
53
+ /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models. */
54
54
  applyTextNormalization?: ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization;
55
55
  /** This parameter controls language text normalization. This helps with proper pronunciation of text in some supported languages. WARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese. */
56
56
  applyLanguageTextNormalization?: boolean;
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
5
+ * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models.
6
6
  */
7
7
  export type BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization = "auto" | "on" | "off";
8
8
  export declare const BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization: {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
5
+ * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models.
6
6
  */
7
7
  export type BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization = "auto" | "on" | "off";
8
8
  export declare const BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization: {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
5
+ * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models.
6
6
  */
7
7
  export type BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization = "auto" | "on" | "off";
8
8
  export declare const BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization: {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
5
+ * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models.
6
6
  */
7
7
  export type BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization = "auto" | "on" | "off";
8
8
  export declare const BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization: {
@@ -13,4 +13,5 @@ export interface ConversationSummaryResponseModel {
13
13
  callSuccessful: ElevenLabs.EvaluationSuccessResult;
14
14
  transcriptSummary?: string;
15
15
  callSummaryTitle?: string;
16
+ direction?: ElevenLabs.ConversationSummaryResponseModelDirection;
16
17
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ConversationSummaryResponseModelDirection = "inbound" | "outbound";
5
+ export declare const ConversationSummaryResponseModelDirection: {
6
+ readonly Inbound: "inbound";
7
+ readonly Outbound: "outbound";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ConversationSummaryResponseModelDirection = void 0;
7
+ exports.ConversationSummaryResponseModelDirection = {
8
+ Inbound: "inbound",
9
+ Outbound: "outbound",
10
+ };
@@ -13,4 +13,5 @@ export interface FeaturesUsageCommonModel {
13
13
  piiZrmAgent?: boolean;
14
14
  toolDynamicVariableUpdates?: ElevenLabs.FeatureStatusCommonModel;
15
15
  isLivekit?: boolean;
16
+ voicemailDetection?: ElevenLabs.FeatureStatusCommonModel;
16
17
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type Llm = "gpt-4o-mini" | "gpt-4o" | "gpt-4" | "gpt-4-turbo" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-3.5-turbo" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-flash-lite" | "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "claude-sonnet-4" | "claude-3-7-sonnet" | "claude-3-5-sonnet" | "claude-3-5-sonnet-v1" | "claude-3-haiku" | "grok-beta" | "custom-llm" | "qwen3-4b" | "watt-tool-8b" | "gemini-2.5-flash-preview-05-20" | "gemini-2.5-flash-preview-04-17" | "gemini-2.5-flash-lite-preview-06-17" | "gemini-2.0-flash-lite-001" | "gemini-2.0-flash-001" | "gemini-1.5-flash-002" | "gemini-1.5-flash-001" | "gemini-1.5-pro-002" | "gemini-1.5-pro-001" | "claude-sonnet-4@20250514" | "claude-3-7-sonnet@20250219" | "claude-3-5-sonnet@20240620" | "claude-3-5-sonnet-v2@20241022" | "claude-3-haiku@20240307" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "gpt-4o-mini-2024-07-18" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4-0613" | "gpt-4-0314" | "gpt-4-turbo-2024-04-09" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-1106";
4
+ export type Llm = "gpt-4o-mini" | "gpt-4o" | "gpt-4" | "gpt-4-turbo" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-3.5-turbo" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-2.0-flash" | "gemini-2.0-flash-lite" | "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "claude-sonnet-4" | "claude-3-7-sonnet" | "claude-3-5-sonnet" | "claude-3-5-sonnet-v1" | "claude-3-haiku" | "grok-beta" | "custom-llm" | "qwen3-4b" | "qwen3-30b-a3b" | "watt-tool-8b" | "watt-tool-70b" | "gemini-2.5-flash-preview-05-20" | "gemini-2.5-flash-preview-04-17" | "gemini-2.5-flash-lite-preview-06-17" | "gemini-2.0-flash-lite-001" | "gemini-2.0-flash-001" | "gemini-1.5-flash-002" | "gemini-1.5-flash-001" | "gemini-1.5-pro-002" | "gemini-1.5-pro-001" | "claude-sonnet-4@20250514" | "claude-3-7-sonnet@20250219" | "claude-3-5-sonnet@20240620" | "claude-3-5-sonnet-v2@20241022" | "claude-3-haiku@20240307" | "gpt-5-2025-08-07" | "gpt-5-mini-2025-08-07" | "gpt-5-nano-2025-08-07" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "gpt-4o-mini-2024-07-18" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4-0613" | "gpt-4-0314" | "gpt-4-turbo-2024-04-09" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-1106";
5
5
  export declare const Llm: {
6
6
  readonly Gpt4OMini: "gpt-4o-mini";
7
7
  readonly Gpt4O: "gpt-4o";
@@ -10,6 +10,9 @@ export declare const Llm: {
10
10
  readonly Gpt41: "gpt-4.1";
11
11
  readonly Gpt41Mini: "gpt-4.1-mini";
12
12
  readonly Gpt41Nano: "gpt-4.1-nano";
13
+ readonly Gpt5: "gpt-5";
14
+ readonly Gpt5Mini: "gpt-5-mini";
15
+ readonly Gpt5Nano: "gpt-5-nano";
13
16
  readonly Gpt35Turbo: "gpt-3.5-turbo";
14
17
  readonly Gemini15Pro: "gemini-1.5-pro";
15
18
  readonly Gemini15Flash: "gemini-1.5-flash";
@@ -25,7 +28,9 @@ export declare const Llm: {
25
28
  readonly GrokBeta: "grok-beta";
26
29
  readonly CustomLlm: "custom-llm";
27
30
  readonly Qwen34B: "qwen3-4b";
31
+ readonly Qwen330Ba3B: "qwen3-30b-a3b";
28
32
  readonly WattTool8B: "watt-tool-8b";
33
+ readonly WattTool70B: "watt-tool-70b";
29
34
  readonly Gemini25FlashPreview0520: "gemini-2.5-flash-preview-05-20";
30
35
  readonly Gemini25FlashPreview0417: "gemini-2.5-flash-preview-04-17";
31
36
  readonly Gemini25FlashLitePreview0617: "gemini-2.5-flash-lite-preview-06-17";
@@ -40,6 +45,9 @@ export declare const Llm: {
40
45
  readonly Claude35Sonnet20240620: "claude-3-5-sonnet@20240620";
41
46
  readonly Claude35SonnetV220241022: "claude-3-5-sonnet-v2@20241022";
42
47
  readonly Claude3Haiku20240307: "claude-3-haiku@20240307";
48
+ readonly Gpt520250807: "gpt-5-2025-08-07";
49
+ readonly Gpt5Mini20250807: "gpt-5-mini-2025-08-07";
50
+ readonly Gpt5Nano20250807: "gpt-5-nano-2025-08-07";
43
51
  readonly Gpt4120250414: "gpt-4.1-2025-04-14";
44
52
  readonly Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14";
45
53
  readonly Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14";
package/api/types/Llm.js CHANGED
@@ -12,6 +12,9 @@ exports.Llm = {
12
12
  Gpt41: "gpt-4.1",
13
13
  Gpt41Mini: "gpt-4.1-mini",
14
14
  Gpt41Nano: "gpt-4.1-nano",
15
+ Gpt5: "gpt-5",
16
+ Gpt5Mini: "gpt-5-mini",
17
+ Gpt5Nano: "gpt-5-nano",
15
18
  Gpt35Turbo: "gpt-3.5-turbo",
16
19
  Gemini15Pro: "gemini-1.5-pro",
17
20
  Gemini15Flash: "gemini-1.5-flash",
@@ -27,7 +30,9 @@ exports.Llm = {
27
30
  GrokBeta: "grok-beta",
28
31
  CustomLlm: "custom-llm",
29
32
  Qwen34B: "qwen3-4b",
33
+ Qwen330Ba3B: "qwen3-30b-a3b",
30
34
  WattTool8B: "watt-tool-8b",
35
+ WattTool70B: "watt-tool-70b",
31
36
  Gemini25FlashPreview0520: "gemini-2.5-flash-preview-05-20",
32
37
  Gemini25FlashPreview0417: "gemini-2.5-flash-preview-04-17",
33
38
  Gemini25FlashLitePreview0617: "gemini-2.5-flash-lite-preview-06-17",
@@ -42,6 +47,9 @@ exports.Llm = {
42
47
  Claude35Sonnet20240620: "claude-3-5-sonnet@20240620",
43
48
  Claude35SonnetV220241022: "claude-3-5-sonnet-v2@20241022",
44
49
  Claude3Haiku20240307: "claude-3-haiku@20240307",
50
+ Gpt520250807: "gpt-5-2025-08-07",
51
+ Gpt5Mini20250807: "gpt-5-mini-2025-08-07",
52
+ Gpt5Nano20250807: "gpt-5-nano-2025-08-07",
45
53
  Gpt4120250414: "gpt-4.1-2025-04-14",
46
54
  Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14",
47
55
  Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14",
@@ -10,8 +10,9 @@ export declare namespace PromptAgentApiModelInputToolsItem {
10
10
  interface Client extends ElevenLabs.ClientToolConfigInput {
11
11
  type: "client";
12
12
  }
13
- interface Mcp extends ElevenLabs.McpToolConfigInput {
13
+ interface Mcp {
14
14
  type: "mcp";
15
+ value?: unknown;
15
16
  }
16
17
  interface System extends ElevenLabs.SystemToolConfigInput {
17
18
  type: "system";
@@ -10,8 +10,9 @@ export declare namespace PromptAgentApiModelOutputToolsItem {
10
10
  interface Client extends ElevenLabs.ClientToolConfigOutput {
11
11
  type: "client";
12
12
  }
13
- interface Mcp extends ElevenLabs.McpToolConfigOutput {
13
+ interface Mcp {
14
14
  type: "mcp";
15
+ value?: unknown;
15
16
  }
16
17
  interface System extends ElevenLabs.SystemToolConfigOutput {
17
18
  type: "system";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface SpeechToTextWebhookResponseModel {
5
+ /** The message of the webhook response. */
6
+ message: string;
7
+ /** The request ID of the webhook response. */
8
+ requestId: string;
9
+ }
@@ -7,9 +7,9 @@ export interface SubscriptionExtrasResponseModel {
7
7
  concurrency: number;
8
8
  /** The Convai concurrency of the user. */
9
9
  convaiConcurrency: number;
10
- /** The Convai characters per minute of the user. */
10
+ /** The Convai characters per minute of the user. This field is deprecated and will always return None. */
11
11
  convaiCharsPerMinute?: number;
12
- /** The Convai ASR characters per minute of the user. */
12
+ /** The Convai ASR characters per minute of the user. This field is deprecated and will always return None. */
13
13
  convaiAsrCharsPerMinute?: number;
14
14
  /** Whether the user's logging is disabled. */
15
15
  forceLoggingDisabled: boolean;
@@ -10,8 +10,9 @@ export declare namespace ToolRequestModelToolConfig {
10
10
  interface Client extends ElevenLabs.ClientToolConfigInput {
11
11
  type: "client";
12
12
  }
13
- interface Mcp extends ElevenLabs.McpToolConfigInput {
13
+ interface Mcp {
14
14
  type: "mcp";
15
+ value?: unknown;
15
16
  }
16
17
  interface System extends ElevenLabs.SystemToolConfigInput {
17
18
  type: "system";
@@ -10,8 +10,9 @@ export declare namespace ToolResponseModelToolConfig {
10
10
  interface Client extends ElevenLabs.ClientToolConfigOutput {
11
11
  type: "client";
12
12
  }
13
- interface Mcp extends ElevenLabs.McpToolConfigOutput {
13
+ interface Mcp {
14
14
  type: "mcp";
15
+ value?: unknown;
15
16
  }
16
17
  interface System extends ElevenLabs.SystemToolConfigOutput {
17
18
  type: "system";
@@ -14,7 +14,6 @@ export * from "./AddWorkspaceGroupMemberResponseModel";
14
14
  export * from "./AddWorkspaceInviteResponseModel";
15
15
  export * from "./AdditionalFormatResponseModel";
16
16
  export * from "./AdditionalFormats";
17
- export * from "./AgentBan";
18
17
  export * from "./AgentCallLimits";
19
18
  export * from "./AgentConfig";
20
19
  export * from "./AgentConfigOverride";
@@ -156,6 +155,7 @@ export * from "./ConversationSignedUrlResponseModel";
156
155
  export * from "./ConversationSimulationSpecificationDynamicVariablesValue";
157
156
  export * from "./ConversationSimulationSpecification";
158
157
  export * from "./ConversationSummaryResponseModelStatus";
158
+ export * from "./ConversationSummaryResponseModelDirection";
159
159
  export * from "./ConversationSummaryResponseModel";
160
160
  export * from "./ConversationTokenDbModel";
161
161
  export * from "./ConversationTokenPurpose";
@@ -321,8 +321,6 @@ export * from "./McpServerTransport";
321
321
  export * from "./McpServersResponseModel";
322
322
  export * from "./McpToolApprovalHash";
323
323
  export * from "./McpToolApprovalPolicy";
324
- export * from "./McpToolConfigInput";
325
- export * from "./McpToolConfigOutput";
326
324
  export * from "./ManualVerificationFileResponse";
327
325
  export * from "./ManualVerificationResponse";
328
326
  export * from "./MetricRecord";
@@ -453,6 +451,7 @@ export * from "./SpeechHistoryItemResponseModelSource";
453
451
  export * from "./SpeechHistoryItemResponse";
454
452
  export * from "./SpeechToTextCharacterResponseModel";
455
453
  export * from "./SpeechToTextChunkResponseModel";
454
+ export * from "./SpeechToTextWebhookResponseModel";
456
455
  export * from "./SpeechToTextWordResponseModelType";
457
456
  export * from "./SpeechToTextWordResponseModel";
458
457
  export * from "./SrtExportOptions";
@@ -30,7 +30,6 @@ __exportStar(require("./AddWorkspaceGroupMemberResponseModel"), exports);
30
30
  __exportStar(require("./AddWorkspaceInviteResponseModel"), exports);
31
31
  __exportStar(require("./AdditionalFormatResponseModel"), exports);
32
32
  __exportStar(require("./AdditionalFormats"), exports);
33
- __exportStar(require("./AgentBan"), exports);
34
33
  __exportStar(require("./AgentCallLimits"), exports);
35
34
  __exportStar(require("./AgentConfig"), exports);
36
35
  __exportStar(require("./AgentConfigOverride"), exports);
@@ -172,6 +171,7 @@ __exportStar(require("./ConversationSignedUrlResponseModel"), exports);
172
171
  __exportStar(require("./ConversationSimulationSpecificationDynamicVariablesValue"), exports);
173
172
  __exportStar(require("./ConversationSimulationSpecification"), exports);
174
173
  __exportStar(require("./ConversationSummaryResponseModelStatus"), exports);
174
+ __exportStar(require("./ConversationSummaryResponseModelDirection"), exports);
175
175
  __exportStar(require("./ConversationSummaryResponseModel"), exports);
176
176
  __exportStar(require("./ConversationTokenDbModel"), exports);
177
177
  __exportStar(require("./ConversationTokenPurpose"), exports);
@@ -337,8 +337,6 @@ __exportStar(require("./McpServerTransport"), exports);
337
337
  __exportStar(require("./McpServersResponseModel"), exports);
338
338
  __exportStar(require("./McpToolApprovalHash"), exports);
339
339
  __exportStar(require("./McpToolApprovalPolicy"), exports);
340
- __exportStar(require("./McpToolConfigInput"), exports);
341
- __exportStar(require("./McpToolConfigOutput"), exports);
342
340
  __exportStar(require("./ManualVerificationFileResponse"), exports);
343
341
  __exportStar(require("./ManualVerificationResponse"), exports);
344
342
  __exportStar(require("./MetricRecord"), exports);
@@ -469,6 +467,7 @@ __exportStar(require("./SpeechHistoryItemResponseModelSource"), exports);
469
467
  __exportStar(require("./SpeechHistoryItemResponse"), exports);
470
468
  __exportStar(require("./SpeechToTextCharacterResponseModel"), exports);
471
469
  __exportStar(require("./SpeechToTextChunkResponseModel"), exports);
470
+ __exportStar(require("./SpeechToTextWebhookResponseModel"), exports);
472
471
  __exportStar(require("./SpeechToTextWordResponseModelType"), exports);
473
472
  __exportStar(require("./SpeechToTextWordResponseModel"), exports);
474
473
  __exportStar(require("./SrtExportOptions"), exports);
package/dist/Client.js CHANGED
@@ -78,8 +78,8 @@ class ElevenLabsClient {
78
78
  "xi-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
79
79
  "X-Fern-Language": "JavaScript",
80
80
  "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
81
- "X-Fern-SDK-Version": "v2.8.0",
82
- "User-Agent": "@elevenlabs/elevenlabs-js/v2.8.0",
81
+ "X-Fern-SDK-Version": "v2.9.0",
82
+ "User-Agent": "@elevenlabs/elevenlabs-js/v2.9.0",
83
83
  "X-Fern-Runtime": core.RUNTIME.type,
84
84
  "X-Fern-Runtime-Version": core.RUNTIME.version,
85
85
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -161,20 +161,12 @@ class Conversations {
161
161
  __getWebrtcToken(request, requestOptions) {
162
162
  return __awaiter(this, void 0, void 0, function* () {
163
163
  var _a, _b, _c;
164
- const { agentId, participantName, source, version } = request;
164
+ const { agentId, participantName } = request;
165
165
  const _queryParams = {};
166
166
  _queryParams["agent_id"] = agentId;
167
167
  if (participantName != null) {
168
168
  _queryParams["participant_name"] = participantName;
169
169
  }
170
- if (source != null) {
171
- _queryParams["source"] = serializers.ConversationInitiationSource.jsonOrThrow(source, {
172
- unrecognizedObjectKeys: "strip",
173
- });
174
- }
175
- if (version != null) {
176
- _queryParams["version"] = version;
177
- }
178
170
  const _response = yield core.fetcher({
179
171
  url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/conversation/token"),
180
172
  method: "GET",
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as ElevenLabs from "../../../../../../index";
5
4
  /**
6
5
  * @example
7
6
  * {
@@ -17,12 +16,4 @@ export interface ConversationsGetWebrtcTokenRequest {
17
16
  * Optional custom participant name. If not provided, user ID will be used
18
17
  */
19
18
  participantName?: string;
20
- /**
21
- * The source of the conversation initiation.
22
- */
23
- source?: ElevenLabs.ConversationInitiationSource;
24
- /**
25
- * The SDK version number
26
- */
27
- version?: string;
28
19
  }
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as ElevenLabs from "../../../index";
5
- export type SpeechToTextConvertResponse = ElevenLabs.SpeechToTextChunkResponseModel | ElevenLabs.MultichannelSpeechToTextResponseModel;
5
+ export type SpeechToTextConvertResponse = ElevenLabs.SpeechToTextChunkResponseModel | ElevenLabs.MultichannelSpeechToTextResponseModel | ElevenLabs.SpeechToTextWebhookResponseModel;
@@ -52,7 +52,7 @@ export interface StreamTextToSpeechRequest {
52
52
  nextRequestIds?: string[];
53
53
  /** If true, we won't use PVC version of the voice for the generation but the IVC version. This is a temporary workaround for higher latency in PVC versions. */
54
54
  usePvcAsIvc?: boolean;
55
- /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
55
+ /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models. */
56
56
  applyTextNormalization?: ElevenLabs.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization;
57
57
  /** This parameter controls language text normalization. This helps with proper pronunciation of text in some supported languages. WARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese. */
58
58
  applyLanguageTextNormalization?: boolean;
@@ -52,7 +52,7 @@ export interface StreamTextToSpeechWithTimestampsRequest {
52
52
  nextRequestIds?: string[];
53
53
  /** If true, we won't use PVC version of the voice for the generation but the IVC version. This is a temporary workaround for higher latency in PVC versions. */
54
54
  usePvcAsIvc?: boolean;
55
- /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
55
+ /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models. */
56
56
  applyTextNormalization?: ElevenLabs.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization;
57
57
  /** This parameter controls language text normalization. This helps with proper pronunciation of text in some supported languages. WARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese. */
58
58
  applyLanguageTextNormalization?: boolean;
@@ -52,7 +52,7 @@ export interface TextToSpeechRequest {
52
52
  nextRequestIds?: string[];
53
53
  /** If true, we won't use PVC version of the voice for the generation but the IVC version. This is a temporary workaround for higher latency in PVC versions. */
54
54
  usePvcAsIvc?: boolean;
55
- /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
55
+ /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models. */
56
56
  applyTextNormalization?: ElevenLabs.BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization;
57
57
  /** This parameter controls language text normalization. This helps with proper pronunciation of text in some supported languages. WARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese. */
58
58
  applyLanguageTextNormalization?: boolean;
@@ -50,7 +50,7 @@ export interface TextToSpeechWithTimestampsRequest {
50
50
  nextRequestIds?: string[];
51
51
  /** If true, we won't use PVC version of the voice for the generation but the IVC version. This is a temporary workaround for higher latency in PVC versions. */
52
52
  usePvcAsIvc?: boolean;
53
- /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans. */
53
+ /** This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models. */
54
54
  applyTextNormalization?: ElevenLabs.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization;
55
55
  /** This parameter controls language text normalization. This helps with proper pronunciation of text in some supported languages. WARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese. */
56
56
  applyLanguageTextNormalization?: boolean;
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
5
+ * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models.
6
6
  */
7
7
  export type BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization = "auto" | "on" | "off";
8
8
  export declare const BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization: {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
5
+ * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models.
6
6
  */
7
7
  export type BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization = "auto" | "on" | "off";
8
8
  export declare const BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization: {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
5
+ * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models.
6
6
  */
7
7
  export type BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization = "auto" | "on" | "off";
8
8
  export declare const BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization: {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. For 'eleven_turbo_v2_5' and 'eleven_flash_v2_5' models, text normalization can only be enabled with Enterprise plans.
5
+ * This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped. Cannot be turned on for 'eleven_turbo_v2_5' or 'eleven_flash_v2_5' models.
6
6
  */
7
7
  export type BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization = "auto" | "on" | "off";
8
8
  export declare const BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization: {
@@ -13,4 +13,5 @@ export interface ConversationSummaryResponseModel {
13
13
  callSuccessful: ElevenLabs.EvaluationSuccessResult;
14
14
  transcriptSummary?: string;
15
15
  callSummaryTitle?: string;
16
+ direction?: ElevenLabs.ConversationSummaryResponseModelDirection;
16
17
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ConversationSummaryResponseModelDirection = "inbound" | "outbound";
5
+ export declare const ConversationSummaryResponseModelDirection: {
6
+ readonly Inbound: "inbound";
7
+ readonly Outbound: "outbound";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ConversationSummaryResponseModelDirection = void 0;
7
+ exports.ConversationSummaryResponseModelDirection = {
8
+ Inbound: "inbound",
9
+ Outbound: "outbound",
10
+ };
@@ -13,4 +13,5 @@ export interface FeaturesUsageCommonModel {
13
13
  piiZrmAgent?: boolean;
14
14
  toolDynamicVariableUpdates?: ElevenLabs.FeatureStatusCommonModel;
15
15
  isLivekit?: boolean;
16
+ voicemailDetection?: ElevenLabs.FeatureStatusCommonModel;
16
17
  }