@elevenlabs/elevenlabs-js 2.14.0 → 2.16.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 (694) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/audioNative/client/Client.js +6 -1
  3. package/api/resources/audioNative/client/requests/BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.d.ts +9 -0
  4. package/api/resources/audioNative/index.d.ts +1 -0
  5. package/api/resources/audioNative/index.js +1 -0
  6. package/api/resources/audioNative/types/AudioNativeCreateRequestApplyTextNormalization.d.ts +10 -0
  7. package/api/resources/audioNative/types/AudioNativeCreateRequestApplyTextNormalization.js +12 -0
  8. package/api/resources/audioNative/types/index.d.ts +1 -0
  9. package/api/resources/audioNative/types/index.js +17 -0
  10. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +4 -2
  11. package/api/resources/conversationalAi/resources/agents/client/Client.js +16 -6
  12. package/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.d.ts +13 -4
  13. package/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.d.ts +2 -1
  14. package/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.d.ts +2 -1
  15. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +14 -4
  16. package/api/resources/conversationalAi/resources/knowledgeBase/client/requests/KnowledgeBaseListRequest.d.ts +12 -4
  17. package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +14 -0
  18. package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +76 -0
  19. package/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +14 -0
  20. package/api/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  21. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +1 -1
  22. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +1 -1
  23. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +1 -1
  24. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +1 -1
  25. package/api/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.d.ts +4 -0
  26. package/api/resources/conversationalAi/resources/settings/client/requests/PatchConvAiSettingsRequest.d.ts +1 -0
  27. package/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +1 -0
  28. package/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +1 -0
  29. package/api/resources/dubbing/client/Client.js +9 -1
  30. package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +1 -1
  31. package/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +8 -0
  32. package/api/resources/dubbing/resources/resource/client/Client.js +1 -18
  33. package/api/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +2 -4
  34. package/api/resources/dubbing/types/DubbingListRequestOrderDirection.d.ts +11 -0
  35. package/api/resources/dubbing/types/DubbingListRequestOrderDirection.js +10 -0
  36. package/api/resources/dubbing/types/index.d.ts +1 -0
  37. package/api/resources/dubbing/types/index.js +1 -0
  38. package/api/resources/history/client/Client.js +15 -1
  39. package/api/resources/history/client/requests/DownloadHistoryRequest.d.ts +7 -0
  40. package/api/resources/history/client/requests/HistoryListRequest.d.ts +16 -0
  41. package/api/resources/history/types/HistoryListRequestSortDirection.d.ts +8 -0
  42. package/api/resources/history/types/HistoryListRequestSortDirection.js +10 -0
  43. package/api/resources/history/types/index.d.ts +1 -0
  44. package/api/resources/history/types/index.js +1 -0
  45. package/api/resources/index.d.ts +2 -1
  46. package/api/resources/index.js +3 -2
  47. package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +16 -0
  48. package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +13 -0
  49. package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +13 -0
  50. package/api/resources/pronunciationDictionaries/types/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPostWorkspaceAccess.d.ts +2 -1
  51. package/api/resources/pronunciationDictionaries/types/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPostWorkspaceAccess.js +1 -0
  52. package/api/resources/pronunciationDictionaries/types/PronunciationDictionariesCreateFromFileRequestWorkspaceAccess.d.ts +2 -1
  53. package/api/resources/pronunciationDictionaries/types/PronunciationDictionariesCreateFromFileRequestWorkspaceAccess.js +1 -0
  54. package/api/resources/speechToText/resources/transcripts/client/Client.d.ts +14 -0
  55. package/api/resources/speechToText/resources/transcripts/client/Client.js +65 -0
  56. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/requests/BodyStreamChapterAudioV1StudioProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.d.ts +6 -0
  57. package/api/resources/studio/resources/projects/resources/snapshots/client/requests/BodyStreamStudioProjectAudioV1StudioProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.d.ts +6 -0
  58. package/api/resources/textToSpeech/client/Client.d.ts +2 -2
  59. package/api/resources/textToSpeech/client/Client.js +4 -2
  60. package/api/resources/textToSpeech/client/requests/{TextToSpeechWithTimestampsRequest.d.ts → BodyTextToSpeechFullWithTimestamps.d.ts} +2 -2
  61. package/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
  62. package/api/resources/textToSpeech/client/requests/index.d.ts +1 -1
  63. package/api/resources/textToSpeech/types/{BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.d.ts → BodyTextToSpeechFullWithTimestampsApplyTextNormalization.d.ts} +2 -2
  64. package/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.js +11 -0
  65. package/{dist/api/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.d.ts → api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.d.ts} +2 -2
  66. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.js +11 -0
  67. package/api/resources/textToSpeech/types/index.d.ts +2 -2
  68. package/api/resources/textToSpeech/types/index.js +2 -2
  69. package/api/resources/textToVoice/client/Client.d.ts +16 -0
  70. package/api/resources/textToVoice/client/Client.js +84 -0
  71. package/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +36 -0
  72. package/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.js +5 -0
  73. package/api/resources/textToVoice/client/requests/index.d.ts +1 -0
  74. package/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +28 -0
  75. package/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +27 -0
  76. package/api/resources/textToVoice/types/index.d.ts +1 -0
  77. package/api/resources/textToVoice/types/index.js +1 -0
  78. package/api/resources/workspace/resources/resources/types/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole.d.ts +2 -1
  79. package/api/resources/workspace/resources/resources/types/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole.js +1 -0
  80. package/api/types/AddPronunciationDictionaryResponseModelPermissionOnResource.d.ts +2 -1
  81. package/api/types/AddPronunciationDictionaryResponseModelPermissionOnResource.js +1 -0
  82. package/api/types/AgentConfig.d.ts +2 -0
  83. package/api/types/AgentConfigApiModelWorkflowOverride.d.ts +2 -0
  84. package/api/types/AgentMetadata.d.ts +7 -0
  85. package/api/types/AgentMetadata.js +5 -0
  86. package/api/types/AgentSortBy.d.ts +8 -0
  87. package/api/types/AgentSortBy.js +10 -0
  88. package/api/types/AttachedTestModel.d.ts +1 -0
  89. package/api/types/BreakdownTypes.d.ts +2 -1
  90. package/api/types/BreakdownTypes.js +1 -0
  91. package/api/types/ClientToolConfigInput.d.ts +1 -0
  92. package/api/types/ClientToolConfigOutput.d.ts +1 -0
  93. package/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -0
  94. package/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -0
  95. package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -1
  96. package/api/types/ConversationalConfig.d.ts +2 -0
  97. package/api/types/ConversationalConfigApiModelWorkflowOverride.d.ts +2 -0
  98. package/api/types/DependentAvailableAgentIdentifierAccessLevel.d.ts +2 -1
  99. package/api/types/DependentAvailableAgentIdentifierAccessLevel.js +1 -0
  100. package/api/types/DependentAvailableToolIdentifierAccessLevel.d.ts +2 -1
  101. package/api/types/DependentAvailableToolIdentifierAccessLevel.js +1 -0
  102. package/api/types/DubbingMetadataResponse.d.ts +1 -1
  103. package/api/types/GetConvAiSettingsResponseModel.d.ts +1 -0
  104. package/api/types/GetPhoneNumberSipTrunkResponseModel.d.ts +2 -0
  105. package/api/types/GetPronunciationDictionaryMetadataResponseModelPermissionOnResource.d.ts +2 -1
  106. package/api/types/GetPronunciationDictionaryMetadataResponseModelPermissionOnResource.js +1 -0
  107. package/api/types/GetSpeechHistoryResponse.d.ts +2 -0
  108. package/api/types/GetUnitTestResponseModel.d.ts +1 -0
  109. package/api/types/KnowledgeBaseSortBy.d.ts +10 -0
  110. package/api/types/KnowledgeBaseSortBy.js +12 -0
  111. package/api/types/LiteralJsonSchemaProperty.d.ts +2 -0
  112. package/api/types/LivekitStackType.d.ts +8 -0
  113. package/{dist/api/types/ModelResponseModelConcurrencyGroup.js → api/types/LivekitStackType.js} +3 -3
  114. package/api/types/Llm.d.ts +4 -1
  115. package/api/types/Llm.js +3 -0
  116. package/api/types/LlmReasoningEffort.d.ts +10 -0
  117. package/api/types/LlmReasoningEffort.js +12 -0
  118. package/api/types/MatchAnythingParameterEvaluationStrategy.d.ts +5 -0
  119. package/api/types/MatchAnythingParameterEvaluationStrategy.js +5 -0
  120. package/api/types/McpServerConfigInput.d.ts +2 -0
  121. package/api/types/McpServerConfigOutput.d.ts +2 -0
  122. package/api/types/Model.d.ts +1 -1
  123. package/api/types/ModelSettingsResponseModel.d.ts +0 -2
  124. package/api/types/ProjectExtendedResponseModelAccessLevel.d.ts +2 -1
  125. package/api/types/ProjectExtendedResponseModelAccessLevel.js +1 -0
  126. package/api/types/ProjectResponseModelAccessLevel.d.ts +2 -1
  127. package/api/types/ProjectResponseModelAccessLevel.js +1 -0
  128. package/api/types/PromptAgentApiModelInput.d.ts +2 -0
  129. package/api/types/PromptAgentApiModelOutput.d.ts +2 -0
  130. package/api/types/PromptAgentApiModelWorkflowOverride.d.ts +2 -0
  131. package/api/types/PronunciationDictionaryVersionResponseModelPermissionOnResource.d.ts +2 -1
  132. package/api/types/PronunciationDictionaryVersionResponseModelPermissionOnResource.js +1 -0
  133. package/api/types/ResourceAccessInfoRole.d.ts +2 -1
  134. package/api/types/ResourceAccessInfoRole.js +1 -0
  135. package/api/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.d.ts +2 -1
  136. package/api/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.js +1 -0
  137. package/api/types/SipTrunkCredentialsRequestModel.d.ts +2 -2
  138. package/api/types/SortDirection.d.ts +8 -0
  139. package/api/types/SortDirection.js +10 -0
  140. package/api/types/SystemToolConfigInput.d.ts +2 -1
  141. package/api/types/SystemToolConfigOutput.d.ts +2 -1
  142. package/api/types/TextToSpeechStreamWithTimestampsRequest.d.ts +4 -0
  143. package/api/types/TextToSpeechStreamWithTimestampsRequest.js +5 -0
  144. package/api/types/TextToSpeechWithTimestampsRequest.d.ts +4 -0
  145. package/api/types/TextToSpeechWithTimestampsRequest.js +5 -0
  146. package/api/types/TtsConversationalModel.d.ts +2 -1
  147. package/api/types/TtsConversationalModel.js +1 -0
  148. package/api/types/UnitTestCommonModelType.d.ts +8 -0
  149. package/api/types/UnitTestCommonModelType.js +10 -0
  150. package/api/types/UnitTestRunResponseModel.d.ts +1 -0
  151. package/api/types/UnitTestSummaryResponseModel.d.ts +2 -0
  152. package/api/types/UnitTestToolCallEvaluationModelInput.d.ts +3 -1
  153. package/api/types/UnitTestToolCallEvaluationModelOutput.d.ts +3 -1
  154. package/api/types/UnitTestToolCallParameterEval.d.ts +4 -1
  155. package/api/types/VadConfig.d.ts +7 -0
  156. package/api/types/VadConfig.js +5 -0
  157. package/api/types/VadConfigWorkflowOverride.d.ts +7 -0
  158. package/api/types/VadConfigWorkflowOverride.js +5 -0
  159. package/api/types/WebhookToolConfigInput.d.ts +1 -0
  160. package/api/types/WebhookToolConfigOutput.d.ts +1 -0
  161. package/api/types/WorkflowToolResponseModelInput.d.ts +0 -1
  162. package/api/types/WorkflowToolResponseModelOutput.d.ts +0 -1
  163. package/api/types/index.d.ts +12 -1
  164. package/api/types/index.js +12 -1
  165. package/dist/Client.js +2 -2
  166. package/dist/api/resources/audioNative/client/Client.js +6 -1
  167. package/dist/api/resources/audioNative/client/requests/BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.d.ts +9 -0
  168. package/dist/api/resources/audioNative/index.d.ts +1 -0
  169. package/dist/api/resources/audioNative/index.js +1 -0
  170. package/dist/api/resources/audioNative/types/AudioNativeCreateRequestApplyTextNormalization.d.ts +10 -0
  171. package/dist/api/resources/audioNative/types/AudioNativeCreateRequestApplyTextNormalization.js +12 -0
  172. package/dist/api/resources/audioNative/types/index.d.ts +1 -0
  173. package/dist/api/resources/audioNative/types/index.js +17 -0
  174. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +4 -2
  175. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +16 -6
  176. package/dist/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.d.ts +13 -4
  177. package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.d.ts +2 -1
  178. package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.d.ts +2 -1
  179. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +14 -4
  180. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/requests/KnowledgeBaseListRequest.d.ts +12 -4
  181. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +14 -0
  182. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +76 -0
  183. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +14 -0
  184. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +5 -0
  185. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  186. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +1 -1
  187. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +1 -1
  188. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +1 -1
  189. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +1 -1
  190. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.d.ts +4 -0
  191. package/dist/api/resources/conversationalAi/resources/settings/client/requests/PatchConvAiSettingsRequest.d.ts +1 -0
  192. package/dist/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +1 -0
  193. package/dist/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +1 -0
  194. package/dist/api/resources/dubbing/client/Client.js +9 -1
  195. package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +1 -1
  196. package/dist/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +8 -0
  197. package/dist/api/resources/dubbing/resources/resource/client/Client.js +1 -18
  198. package/dist/api/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +2 -4
  199. package/dist/api/resources/dubbing/types/DubbingListRequestOrderDirection.d.ts +11 -0
  200. package/dist/api/resources/dubbing/types/DubbingListRequestOrderDirection.js +10 -0
  201. package/dist/api/resources/dubbing/types/index.d.ts +1 -0
  202. package/dist/api/resources/dubbing/types/index.js +1 -0
  203. package/dist/api/resources/history/client/Client.js +15 -1
  204. package/dist/api/resources/history/client/requests/DownloadHistoryRequest.d.ts +7 -0
  205. package/dist/api/resources/history/client/requests/HistoryListRequest.d.ts +16 -0
  206. package/dist/api/resources/history/types/HistoryListRequestSortDirection.d.ts +8 -0
  207. package/dist/api/resources/history/types/HistoryListRequestSortDirection.js +10 -0
  208. package/dist/api/resources/history/types/index.d.ts +1 -0
  209. package/dist/api/resources/history/types/index.js +1 -0
  210. package/dist/api/resources/index.d.ts +2 -1
  211. package/dist/api/resources/index.js +3 -2
  212. package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +16 -0
  213. package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +13 -0
  214. package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +13 -0
  215. package/dist/api/resources/pronunciationDictionaries/types/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPostWorkspaceAccess.d.ts +2 -1
  216. package/dist/api/resources/pronunciationDictionaries/types/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPostWorkspaceAccess.js +1 -0
  217. package/dist/api/resources/pronunciationDictionaries/types/PronunciationDictionariesCreateFromFileRequestWorkspaceAccess.d.ts +2 -1
  218. package/dist/api/resources/pronunciationDictionaries/types/PronunciationDictionariesCreateFromFileRequestWorkspaceAccess.js +1 -0
  219. package/dist/api/resources/speechToText/resources/transcripts/client/Client.d.ts +14 -0
  220. package/dist/api/resources/speechToText/resources/transcripts/client/Client.js +65 -0
  221. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/requests/BodyStreamChapterAudioV1StudioProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.d.ts +6 -0
  222. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/requests/BodyStreamStudioProjectAudioV1StudioProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.d.ts +6 -0
  223. package/dist/api/resources/textToSpeech/client/Client.d.ts +2 -2
  224. package/dist/api/resources/textToSpeech/client/Client.js +4 -2
  225. package/dist/api/resources/textToSpeech/client/requests/{TextToSpeechWithTimestampsRequest.d.ts → BodyTextToSpeechFullWithTimestamps.d.ts} +2 -2
  226. package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.js +5 -0
  227. package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
  228. package/dist/api/resources/textToSpeech/client/requests/index.d.ts +1 -1
  229. package/dist/api/resources/textToSpeech/types/{BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.d.ts → BodyTextToSpeechFullWithTimestampsApplyTextNormalization.d.ts} +2 -2
  230. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.js +11 -0
  231. package/{api/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.d.ts → dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.d.ts} +2 -2
  232. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.js +11 -0
  233. package/dist/api/resources/textToSpeech/types/index.d.ts +2 -2
  234. package/dist/api/resources/textToSpeech/types/index.js +2 -2
  235. package/dist/api/resources/textToVoice/client/Client.d.ts +16 -0
  236. package/dist/api/resources/textToVoice/client/Client.js +84 -0
  237. package/dist/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +36 -0
  238. package/dist/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.js +5 -0
  239. package/dist/api/resources/textToVoice/client/requests/index.d.ts +1 -0
  240. package/dist/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +28 -0
  241. package/dist/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +27 -0
  242. package/dist/api/resources/textToVoice/types/index.d.ts +1 -0
  243. package/dist/api/resources/textToVoice/types/index.js +1 -0
  244. package/dist/api/resources/workspace/resources/resources/types/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole.d.ts +2 -1
  245. package/dist/api/resources/workspace/resources/resources/types/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole.js +1 -0
  246. package/dist/api/types/AddPronunciationDictionaryResponseModelPermissionOnResource.d.ts +2 -1
  247. package/dist/api/types/AddPronunciationDictionaryResponseModelPermissionOnResource.js +1 -0
  248. package/dist/api/types/AgentConfig.d.ts +2 -0
  249. package/dist/api/types/AgentConfigApiModelWorkflowOverride.d.ts +2 -0
  250. package/dist/api/types/AgentMetadata.d.ts +7 -0
  251. package/dist/api/types/AgentMetadata.js +5 -0
  252. package/dist/api/types/AgentSortBy.d.ts +8 -0
  253. package/dist/api/types/AgentSortBy.js +10 -0
  254. package/dist/api/types/AttachedTestModel.d.ts +1 -0
  255. package/dist/api/types/BreakdownTypes.d.ts +2 -1
  256. package/dist/api/types/BreakdownTypes.js +1 -0
  257. package/dist/api/types/ClientToolConfigInput.d.ts +1 -0
  258. package/dist/api/types/ClientToolConfigOutput.d.ts +1 -0
  259. package/dist/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -0
  260. package/dist/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -0
  261. package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -1
  262. package/dist/api/types/ConversationalConfig.d.ts +2 -0
  263. package/dist/api/types/ConversationalConfigApiModelWorkflowOverride.d.ts +2 -0
  264. package/dist/api/types/DependentAvailableAgentIdentifierAccessLevel.d.ts +2 -1
  265. package/dist/api/types/DependentAvailableAgentIdentifierAccessLevel.js +1 -0
  266. package/dist/api/types/DependentAvailableToolIdentifierAccessLevel.d.ts +2 -1
  267. package/dist/api/types/DependentAvailableToolIdentifierAccessLevel.js +1 -0
  268. package/dist/api/types/DubbingMetadataResponse.d.ts +1 -1
  269. package/dist/api/types/GetConvAiSettingsResponseModel.d.ts +1 -0
  270. package/dist/api/types/GetPhoneNumberSipTrunkResponseModel.d.ts +2 -0
  271. package/dist/api/types/GetPronunciationDictionaryMetadataResponseModelPermissionOnResource.d.ts +2 -1
  272. package/dist/api/types/GetPronunciationDictionaryMetadataResponseModelPermissionOnResource.js +1 -0
  273. package/dist/api/types/GetSpeechHistoryResponse.d.ts +2 -0
  274. package/dist/api/types/GetUnitTestResponseModel.d.ts +1 -0
  275. package/dist/api/types/KnowledgeBaseSortBy.d.ts +10 -0
  276. package/dist/api/types/KnowledgeBaseSortBy.js +12 -0
  277. package/dist/api/types/LiteralJsonSchemaProperty.d.ts +2 -0
  278. package/dist/api/types/LivekitStackType.d.ts +8 -0
  279. package/{api/types/ModelResponseModelConcurrencyGroup.js → dist/api/types/LivekitStackType.js} +3 -3
  280. package/dist/api/types/Llm.d.ts +4 -1
  281. package/dist/api/types/Llm.js +3 -0
  282. package/dist/api/types/LlmReasoningEffort.d.ts +10 -0
  283. package/dist/api/types/LlmReasoningEffort.js +12 -0
  284. package/dist/api/types/MatchAnythingParameterEvaluationStrategy.d.ts +5 -0
  285. package/dist/api/types/MatchAnythingParameterEvaluationStrategy.js +5 -0
  286. package/dist/api/types/McpServerConfigInput.d.ts +2 -0
  287. package/dist/api/types/McpServerConfigOutput.d.ts +2 -0
  288. package/dist/api/types/Model.d.ts +1 -1
  289. package/dist/api/types/ModelSettingsResponseModel.d.ts +0 -2
  290. package/dist/api/types/ProjectExtendedResponseModelAccessLevel.d.ts +2 -1
  291. package/dist/api/types/ProjectExtendedResponseModelAccessLevel.js +1 -0
  292. package/dist/api/types/ProjectResponseModelAccessLevel.d.ts +2 -1
  293. package/dist/api/types/ProjectResponseModelAccessLevel.js +1 -0
  294. package/dist/api/types/PromptAgentApiModelInput.d.ts +2 -0
  295. package/dist/api/types/PromptAgentApiModelOutput.d.ts +2 -0
  296. package/dist/api/types/PromptAgentApiModelWorkflowOverride.d.ts +2 -0
  297. package/dist/api/types/PronunciationDictionaryVersionResponseModelPermissionOnResource.d.ts +2 -1
  298. package/dist/api/types/PronunciationDictionaryVersionResponseModelPermissionOnResource.js +1 -0
  299. package/dist/api/types/ResourceAccessInfoRole.d.ts +2 -1
  300. package/dist/api/types/ResourceAccessInfoRole.js +1 -0
  301. package/dist/api/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.d.ts +2 -1
  302. package/dist/api/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.js +1 -0
  303. package/dist/api/types/SipTrunkCredentialsRequestModel.d.ts +2 -2
  304. package/dist/api/types/SortDirection.d.ts +8 -0
  305. package/dist/api/types/SortDirection.js +10 -0
  306. package/dist/api/types/SystemToolConfigInput.d.ts +2 -1
  307. package/dist/api/types/SystemToolConfigOutput.d.ts +2 -1
  308. package/dist/api/types/TextToSpeechStreamWithTimestampsRequest.d.ts +4 -0
  309. package/dist/api/types/TextToSpeechStreamWithTimestampsRequest.js +5 -0
  310. package/dist/api/types/TextToSpeechWithTimestampsRequest.d.ts +4 -0
  311. package/dist/api/types/TextToSpeechWithTimestampsRequest.js +5 -0
  312. package/dist/api/types/TtsConversationalModel.d.ts +2 -1
  313. package/dist/api/types/TtsConversationalModel.js +1 -0
  314. package/dist/api/types/UnitTestCommonModelType.d.ts +8 -0
  315. package/dist/api/types/UnitTestCommonModelType.js +10 -0
  316. package/dist/api/types/UnitTestRunResponseModel.d.ts +1 -0
  317. package/dist/api/types/UnitTestSummaryResponseModel.d.ts +2 -0
  318. package/dist/api/types/UnitTestToolCallEvaluationModelInput.d.ts +3 -1
  319. package/dist/api/types/UnitTestToolCallEvaluationModelOutput.d.ts +3 -1
  320. package/dist/api/types/UnitTestToolCallParameterEval.d.ts +4 -1
  321. package/dist/api/types/VadConfig.d.ts +7 -0
  322. package/dist/api/types/VadConfig.js +5 -0
  323. package/dist/api/types/VadConfigWorkflowOverride.d.ts +7 -0
  324. package/dist/api/types/VadConfigWorkflowOverride.js +5 -0
  325. package/dist/api/types/WebhookToolConfigInput.d.ts +1 -0
  326. package/dist/api/types/WebhookToolConfigOutput.d.ts +1 -0
  327. package/dist/api/types/WorkflowToolResponseModelInput.d.ts +0 -1
  328. package/dist/api/types/WorkflowToolResponseModelOutput.d.ts +0 -1
  329. package/dist/api/types/index.d.ts +12 -1
  330. package/dist/api/types/index.js +12 -1
  331. package/dist/serialization/resources/audioNative/index.d.ts +1 -0
  332. package/dist/serialization/resources/audioNative/index.js +17 -0
  333. package/dist/serialization/resources/audioNative/types/AudioNativeCreateRequestApplyTextNormalization.d.ts +10 -0
  334. package/{serialization/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.js → dist/serialization/resources/audioNative/types/AudioNativeCreateRequestApplyTextNormalization.js} +2 -2
  335. package/dist/serialization/resources/audioNative/types/index.d.ts +1 -0
  336. package/dist/serialization/resources/audioNative/types/index.js +17 -0
  337. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +14 -0
  338. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +45 -0
  339. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  340. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.js +3 -1
  341. package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.d.ts +6 -0
  342. package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.js +6 -0
  343. package/dist/serialization/resources/conversationalAi/resources/settings/client/requests/PatchConvAiSettingsRequest.d.ts +2 -0
  344. package/dist/serialization/resources/conversationalAi/resources/settings/client/requests/PatchConvAiSettingsRequest.js +2 -0
  345. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +2 -0
  346. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +2 -0
  347. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +2 -0
  348. package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +2 -0
  349. package/dist/serialization/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +2 -1
  350. package/dist/serialization/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.js +1 -0
  351. package/dist/serialization/resources/dubbing/types/DubbingListRequestOrderDirection.d.ts +10 -0
  352. package/dist/serialization/resources/{textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.js → dubbing/types/DubbingListRequestOrderDirection.js} +2 -2
  353. package/dist/serialization/resources/dubbing/types/index.d.ts +1 -0
  354. package/dist/serialization/resources/dubbing/types/index.js +1 -0
  355. package/dist/serialization/resources/history/types/HistoryListRequestSortDirection.d.ts +10 -0
  356. package/dist/serialization/resources/history/types/HistoryListRequestSortDirection.js +41 -0
  357. package/dist/serialization/resources/history/types/index.d.ts +1 -0
  358. package/dist/serialization/resources/history/types/index.js +1 -0
  359. package/dist/serialization/resources/index.d.ts +2 -0
  360. package/dist/serialization/resources/index.js +3 -1
  361. package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +2 -0
  362. package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +2 -0
  363. package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -0
  364. package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +1 -0
  365. package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -0
  366. package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +1 -0
  367. package/dist/serialization/resources/pronunciationDictionaries/types/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPostWorkspaceAccess.d.ts +1 -1
  368. package/dist/serialization/resources/pronunciationDictionaries/types/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPostWorkspaceAccess.js +1 -1
  369. package/dist/serialization/resources/pronunciationDictionaries/types/PronunciationDictionariesCreateFromFileRequestWorkspaceAccess.d.ts +1 -1
  370. package/dist/serialization/resources/pronunciationDictionaries/types/PronunciationDictionariesCreateFromFileRequestWorkspaceAccess.js +1 -1
  371. package/{serialization/resources/textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.d.ts → dist/serialization/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts} +4 -4
  372. package/{serialization/resources/textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.js → dist/serialization/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.js} +4 -4
  373. package/dist/serialization/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +2 -2
  374. package/dist/serialization/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.js +2 -2
  375. package/dist/serialization/resources/textToSpeech/client/requests/index.d.ts +1 -1
  376. package/dist/serialization/resources/textToSpeech/client/requests/index.js +3 -3
  377. package/dist/serialization/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.d.ts +10 -0
  378. package/dist/serialization/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.js +41 -0
  379. package/dist/serialization/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.d.ts +10 -0
  380. package/dist/serialization/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.js +41 -0
  381. package/dist/serialization/resources/textToSpeech/types/index.d.ts +2 -2
  382. package/dist/serialization/resources/textToSpeech/types/index.js +2 -2
  383. package/dist/serialization/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +21 -0
  384. package/dist/serialization/resources/textToVoice/client/requests/VoiceRemixRequestModel.js +52 -0
  385. package/dist/serialization/resources/textToVoice/client/requests/index.d.ts +1 -0
  386. package/dist/serialization/resources/textToVoice/client/requests/index.js +3 -1
  387. package/dist/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +10 -0
  388. package/{serialization/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.js → dist/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js} +22 -2
  389. package/dist/serialization/resources/textToVoice/types/index.d.ts +1 -0
  390. package/dist/serialization/resources/textToVoice/types/index.js +1 -0
  391. package/dist/serialization/resources/workspace/resources/resources/types/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole.d.ts +1 -1
  392. package/dist/serialization/resources/workspace/resources/resources/types/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole.js +1 -1
  393. package/dist/serialization/types/AddPronunciationDictionaryResponseModelPermissionOnResource.d.ts +1 -1
  394. package/dist/serialization/types/AddPronunciationDictionaryResponseModelPermissionOnResource.js +1 -1
  395. package/dist/serialization/types/AgentConfig.d.ts +1 -0
  396. package/dist/serialization/types/AgentConfig.js +1 -0
  397. package/dist/serialization/types/AgentConfigApiModelWorkflowOverride.d.ts +1 -0
  398. package/dist/serialization/types/AgentConfigApiModelWorkflowOverride.js +1 -0
  399. package/dist/serialization/types/AgentMetadata.d.ts +13 -0
  400. package/dist/serialization/types/AgentMetadata.js +44 -0
  401. package/dist/serialization/types/AgentSortBy.d.ts +10 -0
  402. package/dist/serialization/types/{ModelResponseModelConcurrencyGroup.js → AgentSortBy.js} +2 -2
  403. package/dist/serialization/types/AttachedTestModel.d.ts +1 -0
  404. package/dist/serialization/types/AttachedTestModel.js +1 -0
  405. package/dist/serialization/types/BreakdownTypes.d.ts +1 -1
  406. package/dist/serialization/types/BreakdownTypes.js +1 -0
  407. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -0
  408. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -0
  409. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -0
  410. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -0
  411. package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -1
  412. package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +1 -1
  413. package/dist/serialization/types/ConversationalConfig.d.ts +2 -0
  414. package/dist/serialization/types/ConversationalConfig.js +2 -0
  415. package/dist/serialization/types/ConversationalConfigApiModelWorkflowOverride.d.ts +2 -0
  416. package/dist/serialization/types/ConversationalConfigApiModelWorkflowOverride.js +2 -0
  417. package/dist/serialization/types/DependentAvailableAgentIdentifierAccessLevel.d.ts +1 -1
  418. package/dist/serialization/types/DependentAvailableAgentIdentifierAccessLevel.js +1 -1
  419. package/dist/serialization/types/DependentAvailableToolIdentifierAccessLevel.d.ts +1 -1
  420. package/dist/serialization/types/DependentAvailableToolIdentifierAccessLevel.js +1 -1
  421. package/dist/serialization/types/GetConvAiSettingsResponseModel.d.ts +2 -0
  422. package/dist/serialization/types/GetConvAiSettingsResponseModel.js +2 -0
  423. package/dist/serialization/types/GetPhoneNumberSipTrunkResponseModel.d.ts +2 -0
  424. package/dist/serialization/types/GetPhoneNumberSipTrunkResponseModel.js +2 -0
  425. package/dist/serialization/types/GetPronunciationDictionaryMetadataResponseModelPermissionOnResource.d.ts +1 -1
  426. package/dist/serialization/types/GetPronunciationDictionaryMetadataResponseModelPermissionOnResource.js +1 -1
  427. package/dist/serialization/types/GetSpeechHistoryResponse.d.ts +1 -0
  428. package/dist/serialization/types/GetSpeechHistoryResponse.js +1 -0
  429. package/dist/serialization/types/GetUnitTestResponseModel.d.ts +2 -0
  430. package/dist/serialization/types/GetUnitTestResponseModel.js +2 -0
  431. package/dist/serialization/types/KnowledgeBaseSortBy.d.ts +10 -0
  432. package/{serialization/types/ModelResponseModelConcurrencyGroup.js → dist/serialization/types/KnowledgeBaseSortBy.js} +2 -2
  433. package/dist/serialization/types/LiteralJsonSchemaProperty.d.ts +1 -0
  434. package/dist/serialization/types/LiteralJsonSchemaProperty.js +1 -0
  435. package/dist/serialization/types/LivekitStackType.d.ts +10 -0
  436. package/dist/serialization/types/LivekitStackType.js +41 -0
  437. package/dist/serialization/types/Llm.d.ts +1 -1
  438. package/dist/serialization/types/Llm.js +3 -0
  439. package/dist/serialization/types/LlmReasoningEffort.d.ts +10 -0
  440. package/dist/serialization/types/LlmReasoningEffort.js +41 -0
  441. package/dist/serialization/types/MatchAnythingParameterEvaluationStrategy.d.ts +11 -0
  442. package/dist/serialization/types/MatchAnythingParameterEvaluationStrategy.js +41 -0
  443. package/dist/serialization/types/McpServerConfigInput.d.ts +1 -0
  444. package/dist/serialization/types/McpServerConfigInput.js +1 -0
  445. package/dist/serialization/types/McpServerConfigOutput.d.ts +1 -0
  446. package/dist/serialization/types/McpServerConfigOutput.js +1 -0
  447. package/dist/serialization/types/Model.d.ts +1 -2
  448. package/dist/serialization/types/Model.js +1 -2
  449. package/dist/serialization/types/ModelSettingsResponseModel.d.ts +0 -1
  450. package/dist/serialization/types/ModelSettingsResponseModel.js +0 -1
  451. package/dist/serialization/types/ProjectExtendedResponseModelAccessLevel.d.ts +1 -1
  452. package/dist/serialization/types/ProjectExtendedResponseModelAccessLevel.js +1 -1
  453. package/dist/serialization/types/ProjectResponseModelAccessLevel.d.ts +1 -1
  454. package/dist/serialization/types/ProjectResponseModelAccessLevel.js +1 -1
  455. package/dist/serialization/types/PromptAgentApiModelInput.d.ts +2 -0
  456. package/dist/serialization/types/PromptAgentApiModelInput.js +2 -0
  457. package/dist/serialization/types/PromptAgentApiModelOutput.d.ts +2 -0
  458. package/dist/serialization/types/PromptAgentApiModelOutput.js +2 -0
  459. package/dist/serialization/types/PromptAgentApiModelWorkflowOverride.d.ts +2 -0
  460. package/dist/serialization/types/PromptAgentApiModelWorkflowOverride.js +2 -0
  461. package/dist/serialization/types/PronunciationDictionaryVersionResponseModelPermissionOnResource.d.ts +1 -1
  462. package/dist/serialization/types/PronunciationDictionaryVersionResponseModelPermissionOnResource.js +1 -1
  463. package/dist/serialization/types/ResourceAccessInfoRole.d.ts +1 -1
  464. package/dist/serialization/types/ResourceAccessInfoRole.js +1 -1
  465. package/dist/serialization/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.d.ts +1 -1
  466. package/dist/serialization/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.js +1 -1
  467. package/dist/serialization/types/SipTrunkCredentialsRequestModel.d.ts +1 -1
  468. package/dist/serialization/types/SipTrunkCredentialsRequestModel.js +1 -1
  469. package/dist/serialization/types/SortDirection.d.ts +10 -0
  470. package/dist/serialization/types/SortDirection.js +41 -0
  471. package/dist/serialization/types/SystemToolConfigInput.d.ts +1 -1
  472. package/dist/serialization/types/SystemToolConfigInput.js +1 -1
  473. package/dist/serialization/types/SystemToolConfigOutput.d.ts +1 -1
  474. package/dist/serialization/types/SystemToolConfigOutput.js +1 -1
  475. package/dist/serialization/types/TextToSpeechStreamWithTimestampsRequest.d.ts +10 -0
  476. package/dist/serialization/types/TextToSpeechStreamWithTimestampsRequest.js +41 -0
  477. package/dist/serialization/types/TextToSpeechWithTimestampsRequest.d.ts +10 -0
  478. package/dist/serialization/types/TextToSpeechWithTimestampsRequest.js +41 -0
  479. package/dist/serialization/types/TtsConversationalModel.d.ts +1 -1
  480. package/dist/serialization/types/TtsConversationalModel.js +7 -1
  481. package/dist/serialization/types/UnitTestCommonModelType.d.ts +10 -0
  482. package/dist/serialization/types/UnitTestCommonModelType.js +41 -0
  483. package/dist/serialization/types/UnitTestRunResponseModel.d.ts +1 -0
  484. package/dist/serialization/types/UnitTestRunResponseModel.js +1 -0
  485. package/dist/serialization/types/UnitTestSummaryResponseModel.d.ts +2 -0
  486. package/dist/serialization/types/UnitTestSummaryResponseModel.js +2 -0
  487. package/dist/serialization/types/UnitTestToolCallEvaluationModelInput.d.ts +2 -1
  488. package/dist/serialization/types/UnitTestToolCallEvaluationModelInput.js +2 -1
  489. package/dist/serialization/types/UnitTestToolCallEvaluationModelOutput.d.ts +2 -1
  490. package/dist/serialization/types/UnitTestToolCallEvaluationModelOutput.js +2 -1
  491. package/dist/serialization/types/UnitTestToolCallParameterEval.d.ts +5 -1
  492. package/dist/serialization/types/UnitTestToolCallParameterEval.js +2 -0
  493. package/dist/serialization/types/VadConfig.d.ts +12 -0
  494. package/dist/serialization/types/VadConfig.js +43 -0
  495. package/dist/serialization/types/VadConfigWorkflowOverride.d.ts +12 -0
  496. package/dist/serialization/types/VadConfigWorkflowOverride.js +43 -0
  497. package/dist/serialization/types/WorkflowToolResponseModelInput.d.ts +0 -2
  498. package/dist/serialization/types/WorkflowToolResponseModelInput.js +0 -2
  499. package/dist/serialization/types/WorkflowToolResponseModelOutput.d.ts +0 -2
  500. package/dist/serialization/types/WorkflowToolResponseModelOutput.js +0 -2
  501. package/dist/serialization/types/index.d.ts +12 -1
  502. package/dist/serialization/types/index.js +12 -1
  503. package/dist/version.d.ts +1 -1
  504. package/dist/version.js +1 -1
  505. package/package.json +1 -1
  506. package/reference.md +1175 -46
  507. package/serialization/resources/audioNative/index.d.ts +1 -0
  508. package/serialization/resources/audioNative/index.js +17 -0
  509. package/serialization/resources/audioNative/types/AudioNativeCreateRequestApplyTextNormalization.d.ts +10 -0
  510. package/serialization/resources/audioNative/types/AudioNativeCreateRequestApplyTextNormalization.js +41 -0
  511. package/serialization/resources/audioNative/types/index.d.ts +1 -0
  512. package/serialization/resources/audioNative/types/index.js +17 -0
  513. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +14 -0
  514. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +45 -0
  515. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  516. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.js +3 -1
  517. package/serialization/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.d.ts +6 -0
  518. package/serialization/resources/conversationalAi/resources/phoneNumbers/client/requests/UpdatePhoneNumberRequest.js +6 -0
  519. package/serialization/resources/conversationalAi/resources/settings/client/requests/PatchConvAiSettingsRequest.d.ts +2 -0
  520. package/serialization/resources/conversationalAi/resources/settings/client/requests/PatchConvAiSettingsRequest.js +2 -0
  521. package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +2 -0
  522. package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +2 -0
  523. package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +2 -0
  524. package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +2 -0
  525. package/serialization/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +2 -1
  526. package/serialization/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.js +1 -0
  527. package/serialization/resources/dubbing/types/DubbingListRequestOrderDirection.d.ts +10 -0
  528. package/serialization/resources/dubbing/types/DubbingListRequestOrderDirection.js +41 -0
  529. package/serialization/resources/dubbing/types/index.d.ts +1 -0
  530. package/serialization/resources/dubbing/types/index.js +1 -0
  531. package/serialization/resources/history/types/HistoryListRequestSortDirection.d.ts +10 -0
  532. package/serialization/resources/history/types/HistoryListRequestSortDirection.js +41 -0
  533. package/serialization/resources/history/types/index.d.ts +1 -0
  534. package/serialization/resources/history/types/index.js +1 -0
  535. package/serialization/resources/index.d.ts +2 -0
  536. package/serialization/resources/index.js +3 -1
  537. package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +2 -0
  538. package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +2 -0
  539. package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -0
  540. package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +1 -0
  541. package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -0
  542. package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +1 -0
  543. package/serialization/resources/pronunciationDictionaries/types/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPostWorkspaceAccess.d.ts +1 -1
  544. package/serialization/resources/pronunciationDictionaries/types/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPostWorkspaceAccess.js +1 -1
  545. package/serialization/resources/pronunciationDictionaries/types/PronunciationDictionariesCreateFromFileRequestWorkspaceAccess.d.ts +1 -1
  546. package/serialization/resources/pronunciationDictionaries/types/PronunciationDictionariesCreateFromFileRequestWorkspaceAccess.js +1 -1
  547. package/{dist/serialization/resources/textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.d.ts → serialization/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts} +4 -4
  548. package/{dist/serialization/resources/textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.js → serialization/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.js} +4 -4
  549. package/serialization/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +2 -2
  550. package/serialization/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.js +2 -2
  551. package/serialization/resources/textToSpeech/client/requests/index.d.ts +1 -1
  552. package/serialization/resources/textToSpeech/client/requests/index.js +3 -3
  553. package/serialization/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.d.ts +10 -0
  554. package/serialization/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.js +41 -0
  555. package/serialization/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.d.ts +10 -0
  556. package/serialization/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.js +41 -0
  557. package/serialization/resources/textToSpeech/types/index.d.ts +2 -2
  558. package/serialization/resources/textToSpeech/types/index.js +2 -2
  559. package/serialization/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +21 -0
  560. package/serialization/resources/textToVoice/client/requests/VoiceRemixRequestModel.js +52 -0
  561. package/serialization/resources/textToVoice/client/requests/index.d.ts +1 -0
  562. package/serialization/resources/textToVoice/client/requests/index.js +3 -1
  563. package/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +10 -0
  564. package/{dist/serialization/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.js → serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js} +22 -2
  565. package/serialization/resources/textToVoice/types/index.d.ts +1 -0
  566. package/serialization/resources/textToVoice/types/index.js +1 -0
  567. package/serialization/resources/workspace/resources/resources/types/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole.d.ts +1 -1
  568. package/serialization/resources/workspace/resources/resources/types/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole.js +1 -1
  569. package/serialization/types/AddPronunciationDictionaryResponseModelPermissionOnResource.d.ts +1 -1
  570. package/serialization/types/AddPronunciationDictionaryResponseModelPermissionOnResource.js +1 -1
  571. package/serialization/types/AgentConfig.d.ts +1 -0
  572. package/serialization/types/AgentConfig.js +1 -0
  573. package/serialization/types/AgentConfigApiModelWorkflowOverride.d.ts +1 -0
  574. package/serialization/types/AgentConfigApiModelWorkflowOverride.js +1 -0
  575. package/serialization/types/AgentMetadata.d.ts +13 -0
  576. package/serialization/types/AgentMetadata.js +44 -0
  577. package/serialization/types/AgentSortBy.d.ts +10 -0
  578. package/serialization/types/AgentSortBy.js +41 -0
  579. package/serialization/types/AttachedTestModel.d.ts +1 -0
  580. package/serialization/types/AttachedTestModel.js +1 -0
  581. package/serialization/types/BreakdownTypes.d.ts +1 -1
  582. package/serialization/types/BreakdownTypes.js +1 -0
  583. package/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -0
  584. package/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -0
  585. package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -0
  586. package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -0
  587. package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -1
  588. package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +1 -1
  589. package/serialization/types/ConversationalConfig.d.ts +2 -0
  590. package/serialization/types/ConversationalConfig.js +2 -0
  591. package/serialization/types/ConversationalConfigApiModelWorkflowOverride.d.ts +2 -0
  592. package/serialization/types/ConversationalConfigApiModelWorkflowOverride.js +2 -0
  593. package/serialization/types/DependentAvailableAgentIdentifierAccessLevel.d.ts +1 -1
  594. package/serialization/types/DependentAvailableAgentIdentifierAccessLevel.js +1 -1
  595. package/serialization/types/DependentAvailableToolIdentifierAccessLevel.d.ts +1 -1
  596. package/serialization/types/DependentAvailableToolIdentifierAccessLevel.js +1 -1
  597. package/serialization/types/GetConvAiSettingsResponseModel.d.ts +2 -0
  598. package/serialization/types/GetConvAiSettingsResponseModel.js +2 -0
  599. package/serialization/types/GetPhoneNumberSipTrunkResponseModel.d.ts +2 -0
  600. package/serialization/types/GetPhoneNumberSipTrunkResponseModel.js +2 -0
  601. package/serialization/types/GetPronunciationDictionaryMetadataResponseModelPermissionOnResource.d.ts +1 -1
  602. package/serialization/types/GetPronunciationDictionaryMetadataResponseModelPermissionOnResource.js +1 -1
  603. package/serialization/types/GetSpeechHistoryResponse.d.ts +1 -0
  604. package/serialization/types/GetSpeechHistoryResponse.js +1 -0
  605. package/serialization/types/GetUnitTestResponseModel.d.ts +2 -0
  606. package/serialization/types/GetUnitTestResponseModel.js +2 -0
  607. package/serialization/types/KnowledgeBaseSortBy.d.ts +10 -0
  608. package/serialization/types/KnowledgeBaseSortBy.js +41 -0
  609. package/serialization/types/LiteralJsonSchemaProperty.d.ts +1 -0
  610. package/serialization/types/LiteralJsonSchemaProperty.js +1 -0
  611. package/serialization/types/LivekitStackType.d.ts +10 -0
  612. package/serialization/types/LivekitStackType.js +41 -0
  613. package/serialization/types/Llm.d.ts +1 -1
  614. package/serialization/types/Llm.js +3 -0
  615. package/serialization/types/LlmReasoningEffort.d.ts +10 -0
  616. package/serialization/types/LlmReasoningEffort.js +41 -0
  617. package/serialization/types/MatchAnythingParameterEvaluationStrategy.d.ts +11 -0
  618. package/serialization/types/MatchAnythingParameterEvaluationStrategy.js +41 -0
  619. package/serialization/types/McpServerConfigInput.d.ts +1 -0
  620. package/serialization/types/McpServerConfigInput.js +1 -0
  621. package/serialization/types/McpServerConfigOutput.d.ts +1 -0
  622. package/serialization/types/McpServerConfigOutput.js +1 -0
  623. package/serialization/types/Model.d.ts +1 -2
  624. package/serialization/types/Model.js +1 -2
  625. package/serialization/types/ModelSettingsResponseModel.d.ts +0 -1
  626. package/serialization/types/ModelSettingsResponseModel.js +0 -1
  627. package/serialization/types/ProjectExtendedResponseModelAccessLevel.d.ts +1 -1
  628. package/serialization/types/ProjectExtendedResponseModelAccessLevel.js +1 -1
  629. package/serialization/types/ProjectResponseModelAccessLevel.d.ts +1 -1
  630. package/serialization/types/ProjectResponseModelAccessLevel.js +1 -1
  631. package/serialization/types/PromptAgentApiModelInput.d.ts +2 -0
  632. package/serialization/types/PromptAgentApiModelInput.js +2 -0
  633. package/serialization/types/PromptAgentApiModelOutput.d.ts +2 -0
  634. package/serialization/types/PromptAgentApiModelOutput.js +2 -0
  635. package/serialization/types/PromptAgentApiModelWorkflowOverride.d.ts +2 -0
  636. package/serialization/types/PromptAgentApiModelWorkflowOverride.js +2 -0
  637. package/serialization/types/PronunciationDictionaryVersionResponseModelPermissionOnResource.d.ts +1 -1
  638. package/serialization/types/PronunciationDictionaryVersionResponseModelPermissionOnResource.js +1 -1
  639. package/serialization/types/ResourceAccessInfoRole.d.ts +1 -1
  640. package/serialization/types/ResourceAccessInfoRole.js +1 -1
  641. package/serialization/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.d.ts +1 -1
  642. package/serialization/types/ResourceMetadataResponseModelAnonymousAccessLevelOverride.js +1 -1
  643. package/serialization/types/SipTrunkCredentialsRequestModel.d.ts +1 -1
  644. package/serialization/types/SipTrunkCredentialsRequestModel.js +1 -1
  645. package/serialization/types/SortDirection.d.ts +10 -0
  646. package/serialization/types/SortDirection.js +41 -0
  647. package/serialization/types/SystemToolConfigInput.d.ts +1 -1
  648. package/serialization/types/SystemToolConfigInput.js +1 -1
  649. package/serialization/types/SystemToolConfigOutput.d.ts +1 -1
  650. package/serialization/types/SystemToolConfigOutput.js +1 -1
  651. package/serialization/types/TextToSpeechStreamWithTimestampsRequest.d.ts +10 -0
  652. package/serialization/types/TextToSpeechStreamWithTimestampsRequest.js +41 -0
  653. package/serialization/types/TextToSpeechWithTimestampsRequest.d.ts +10 -0
  654. package/serialization/types/TextToSpeechWithTimestampsRequest.js +41 -0
  655. package/serialization/types/TtsConversationalModel.d.ts +1 -1
  656. package/serialization/types/TtsConversationalModel.js +7 -1
  657. package/serialization/types/UnitTestCommonModelType.d.ts +10 -0
  658. package/serialization/types/UnitTestCommonModelType.js +41 -0
  659. package/serialization/types/UnitTestRunResponseModel.d.ts +1 -0
  660. package/serialization/types/UnitTestRunResponseModel.js +1 -0
  661. package/serialization/types/UnitTestSummaryResponseModel.d.ts +2 -0
  662. package/serialization/types/UnitTestSummaryResponseModel.js +2 -0
  663. package/serialization/types/UnitTestToolCallEvaluationModelInput.d.ts +2 -1
  664. package/serialization/types/UnitTestToolCallEvaluationModelInput.js +2 -1
  665. package/serialization/types/UnitTestToolCallEvaluationModelOutput.d.ts +2 -1
  666. package/serialization/types/UnitTestToolCallEvaluationModelOutput.js +2 -1
  667. package/serialization/types/UnitTestToolCallParameterEval.d.ts +5 -1
  668. package/serialization/types/UnitTestToolCallParameterEval.js +2 -0
  669. package/serialization/types/VadConfig.d.ts +12 -0
  670. package/serialization/types/VadConfig.js +43 -0
  671. package/serialization/types/VadConfigWorkflowOverride.d.ts +12 -0
  672. package/serialization/types/VadConfigWorkflowOverride.js +43 -0
  673. package/serialization/types/WorkflowToolResponseModelInput.d.ts +0 -2
  674. package/serialization/types/WorkflowToolResponseModelInput.js +0 -2
  675. package/serialization/types/WorkflowToolResponseModelOutput.d.ts +0 -2
  676. package/serialization/types/WorkflowToolResponseModelOutput.js +0 -2
  677. package/serialization/types/index.d.ts +12 -1
  678. package/serialization/types/index.js +12 -1
  679. package/version.d.ts +1 -1
  680. package/version.js +1 -1
  681. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.js +0 -11
  682. package/api/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.js +0 -11
  683. package/api/types/ModelResponseModelConcurrencyGroup.d.ts +0 -11
  684. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.js +0 -11
  685. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.js +0 -11
  686. package/dist/api/types/ModelResponseModelConcurrencyGroup.d.ts +0 -11
  687. package/dist/serialization/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.d.ts +0 -10
  688. package/dist/serialization/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.d.ts +0 -10
  689. package/dist/serialization/types/ModelResponseModelConcurrencyGroup.d.ts +0 -10
  690. package/serialization/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.d.ts +0 -10
  691. package/serialization/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.d.ts +0 -10
  692. package/serialization/types/ModelResponseModelConcurrencyGroup.d.ts +0 -10
  693. /package/api/resources/{textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.js → conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js} +0 -0
  694. /package/{dist/api/resources/textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.js → api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.js} +0 -0
package/Client.js CHANGED
@@ -79,8 +79,8 @@ class ElevenLabsClient {
79
79
  "xi-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
80
80
  "X-Fern-Language": "JavaScript",
81
81
  "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
82
- "X-Fern-SDK-Version": "v2.14.0",
83
- "User-Agent": "@elevenlabs/elevenlabs-js/v2.14.0",
82
+ "X-Fern-SDK-Version": "v2.16.0",
83
+ "User-Agent": "@elevenlabs/elevenlabs-js/v2.16.0",
84
84
  "X-Fern-Runtime": core.RUNTIME.type,
85
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
86
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -49,8 +49,8 @@ exports.AudioNative = void 0;
49
49
  const environments = __importStar(require("../../../../environments"));
50
50
  const core = __importStar(require("../../../../core"));
51
51
  const ElevenLabs = __importStar(require("../../../index"));
52
- const headers_1 = require("../../../../core/headers");
53
52
  const serializers = __importStar(require("../../../../serialization/index"));
53
+ const headers_1 = require("../../../../core/headers");
54
54
  const errors = __importStar(require("../../../../errors/index"));
55
55
  class AudioNative {
56
56
  constructor(_options = {}) {
@@ -110,6 +110,11 @@ class AudioNative {
110
110
  if (request.autoConvert != null) {
111
111
  _request.append("auto_convert", request.autoConvert.toString());
112
112
  }
113
+ if (request.applyTextNormalization != null) {
114
+ _request.append("apply_text_normalization", serializers.AudioNativeCreateRequestApplyTextNormalization.jsonOrThrow(request.applyTextNormalization, {
115
+ unrecognizedObjectKeys: "strip",
116
+ }));
117
+ }
113
118
  const _maybeEncodedRequest = yield _request.getRequest();
114
119
  const _response = yield core.fetcher({
115
120
  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/audio-native"),
@@ -2,6 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as core from "../../../../../core";
5
+ import * as ElevenLabs from "../../../../index";
5
6
  /**
6
7
  * @example
7
8
  * {
@@ -32,4 +33,12 @@ export interface BodyCreatesAudioNativeEnabledProjectV1AudioNativePost {
32
33
  file?: core.FileLike | undefined;
33
34
  /** Whether to auto convert the project to audio or not. */
34
35
  autoConvert?: boolean;
36
+ /**
37
+ * This parameter controls text normalization with four modes: 'auto', 'on', 'apply_english' and 'off'.
38
+ * When set to 'auto', the system will automatically decide whether to apply text normalization
39
+ * (e.g., spelling out numbers). With 'on', text normalization will always be applied, while
40
+ * with 'off', it will be skipped. 'apply_english' is the same as 'on' but will assume that text is in English.
41
+ *
42
+ */
43
+ applyTextNormalization?: ElevenLabs.AudioNativeCreateRequestApplyTextNormalization;
35
44
  }
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type AudioNativeCreateRequestApplyTextNormalization = "auto" | "on" | "off" | "apply_english";
5
+ export declare const AudioNativeCreateRequestApplyTextNormalization: {
6
+ readonly Auto: "auto";
7
+ readonly On: "on";
8
+ readonly Off: "off";
9
+ readonly ApplyEnglish: "apply_english";
10
+ };
@@ -0,0 +1,12 @@
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.AudioNativeCreateRequestApplyTextNormalization = void 0;
7
+ exports.AudioNativeCreateRequestApplyTextNormalization = {
8
+ Auto: "auto",
9
+ On: "on",
10
+ Off: "off",
11
+ ApplyEnglish: "apply_english",
12
+ };
@@ -0,0 +1 @@
1
+ export * from "./AudioNativeCreateRequestApplyTextNormalization";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AudioNativeCreateRequestApplyTextNormalization"), exports);
@@ -138,7 +138,8 @@ export declare class Agents {
138
138
  * simulationSpecification: {
139
139
  * simulatedUserConfig: {
140
140
  * firstMessage: "Hello, how can I help you today?",
141
- * language: "en"
141
+ * language: "en",
142
+ * disableFirstMessageInterruptions: false
142
143
  * }
143
144
  * }
144
145
  * })
@@ -159,7 +160,8 @@ export declare class Agents {
159
160
  * simulationSpecification: {
160
161
  * simulatedUserConfig: {
161
162
  * firstMessage: "Hello, how can I help you today?",
162
- * language: "en"
163
+ * language: "en",
164
+ * disableFirstMessageInterruptions: false
163
165
  * }
164
166
  * }
165
167
  * })
@@ -378,17 +378,25 @@ class Agents {
378
378
  __list() {
379
379
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
380
380
  var _a, _b, _c;
381
- const { cursor, pageSize, search } = request;
381
+ const { pageSize, search, sortDirection, sortBy, cursor } = request;
382
382
  const _queryParams = {};
383
- if (cursor != null) {
384
- _queryParams["cursor"] = cursor;
385
- }
386
383
  if (pageSize != null) {
387
384
  _queryParams["page_size"] = pageSize.toString();
388
385
  }
389
386
  if (search != null) {
390
387
  _queryParams["search"] = search;
391
388
  }
389
+ if (sortDirection != null) {
390
+ _queryParams["sort_direction"] = serializers.SortDirection.jsonOrThrow(sortDirection, {
391
+ unrecognizedObjectKeys: "strip",
392
+ });
393
+ }
394
+ if (sortBy != null) {
395
+ _queryParams["sort_by"] = serializers.AgentSortBy.jsonOrThrow(sortBy, { unrecognizedObjectKeys: "strip" });
396
+ }
397
+ if (cursor != null) {
398
+ _queryParams["cursor"] = cursor;
399
+ }
392
400
  const _response = yield core.fetcher({
393
401
  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/agents"),
394
402
  method: "GET",
@@ -531,7 +539,8 @@ class Agents {
531
539
  * simulationSpecification: {
532
540
  * simulatedUserConfig: {
533
541
  * firstMessage: "Hello, how can I help you today?",
534
- * language: "en"
542
+ * language: "en",
543
+ * disableFirstMessageInterruptions: false
535
544
  * }
536
545
  * }
537
546
  * })
@@ -612,7 +621,8 @@ class Agents {
612
621
  * simulationSpecification: {
613
622
  * simulatedUserConfig: {
614
623
  * firstMessage: "Hello, how can I help you today?",
615
- * language: "en"
624
+ * language: "en",
625
+ * disableFirstMessageInterruptions: false
616
626
  * }
617
627
  * }
618
628
  * })
@@ -1,15 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as ElevenLabs from "../../../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {}
7
8
  */
8
9
  export interface AgentsListRequest {
9
- /**
10
- * Used for fetching next page. Cursor is returned in the response.
11
- */
12
- cursor?: string;
13
10
  /**
14
11
  * How many Agents to return at maximum. Can not exceed 100, defaults to 30.
15
12
  */
@@ -18,4 +15,16 @@ export interface AgentsListRequest {
18
15
  * Search by agents name.
19
16
  */
20
17
  search?: string;
18
+ /**
19
+ * The direction to sort the results
20
+ */
21
+ sortDirection?: ElevenLabs.SortDirection;
22
+ /**
23
+ * The field to sort the results by
24
+ */
25
+ sortBy?: ElevenLabs.AgentSortBy;
26
+ /**
27
+ * Used for fetching next page. Cursor is returned in the response.
28
+ */
29
+ cursor?: string;
21
30
  }
@@ -8,7 +8,8 @@ import * as ElevenLabs from "../../../../../../index";
8
8
  * simulationSpecification: {
9
9
  * simulatedUserConfig: {
10
10
  * firstMessage: "Hello, how can I help you today?",
11
- * language: "en"
11
+ * language: "en",
12
+ * disableFirstMessageInterruptions: false
12
13
  * }
13
14
  * }
14
15
  * }
@@ -8,7 +8,8 @@ import * as ElevenLabs from "../../../../../../index";
8
8
  * simulationSpecification: {
9
9
  * simulatedUserConfig: {
10
10
  * firstMessage: "Hello, how can I help you today?",
11
- * language: "en"
11
+ * language: "en",
12
+ * disableFirstMessageInterruptions: false
12
13
  * }
13
14
  * }
14
15
  * }
@@ -83,11 +83,8 @@ class KnowledgeBase {
83
83
  __list() {
84
84
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
85
85
  var _a, _b, _c;
86
- const { cursor, pageSize, search, showOnlyOwnedDocuments, types, useTypesense } = request;
86
+ const { pageSize, search, showOnlyOwnedDocuments, types, sortDirection, sortBy, useTypesense, cursor } = request;
87
87
  const _queryParams = {};
88
- if (cursor != null) {
89
- _queryParams["cursor"] = cursor;
90
- }
91
88
  if (pageSize != null) {
92
89
  _queryParams["page_size"] = pageSize.toString();
93
90
  }
@@ -107,9 +104,22 @@ class KnowledgeBase {
107
104
  });
108
105
  }
109
106
  }
107
+ if (sortDirection != null) {
108
+ _queryParams["sort_direction"] = serializers.SortDirection.jsonOrThrow(sortDirection, {
109
+ unrecognizedObjectKeys: "strip",
110
+ });
111
+ }
112
+ if (sortBy != null) {
113
+ _queryParams["sort_by"] = serializers.KnowledgeBaseSortBy.jsonOrThrow(sortBy, {
114
+ unrecognizedObjectKeys: "strip",
115
+ });
116
+ }
110
117
  if (useTypesense != null) {
111
118
  _queryParams["use_typesense"] = useTypesense.toString();
112
119
  }
120
+ if (cursor != null) {
121
+ _queryParams["cursor"] = cursor;
122
+ }
113
123
  const _response = yield core.fetcher({
114
124
  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/knowledge-base"),
115
125
  method: "GET",
@@ -7,10 +7,6 @@ import * as ElevenLabs from "../../../../../../index";
7
7
  * {}
8
8
  */
9
9
  export interface KnowledgeBaseListRequest {
10
- /**
11
- * Used for fetching next page. Cursor is returned in the response.
12
- */
13
- cursor?: string;
14
10
  /**
15
11
  * How many documents to return at maximum. Can not exceed 100, defaults to 30.
16
12
  */
@@ -27,8 +23,20 @@ export interface KnowledgeBaseListRequest {
27
23
  * If present, the endpoint will return only documents of the given types.
28
24
  */
29
25
  types?: ElevenLabs.KnowledgeBaseDocumentType | ElevenLabs.KnowledgeBaseDocumentType[];
26
+ /**
27
+ * The direction to sort the results
28
+ */
29
+ sortDirection?: ElevenLabs.SortDirection;
30
+ /**
31
+ * The field to sort the results by
32
+ */
33
+ sortBy?: ElevenLabs.KnowledgeBaseSortBy;
30
34
  /**
31
35
  * If set to true, the endpoint will use typesense DB to search for the documents).
32
36
  */
33
37
  useTypesense?: boolean;
38
+ /**
39
+ * Used for fetching next page. Cursor is returned in the response.
40
+ */
41
+ cursor?: string;
34
42
  }
@@ -82,4 +82,18 @@ export declare class McpServers {
82
82
  */
83
83
  get(mcpServerId: string, requestOptions?: McpServers.RequestOptions): core.HttpResponsePromise<ElevenLabs.McpServerResponseModel>;
84
84
  private __get;
85
+ /**
86
+ * Update the configuration settings for an MCP server.
87
+ *
88
+ * @param {string} mcpServerId - ID of the MCP Server.
89
+ * @param {ElevenLabs.conversationalAi.McpServerConfigUpdateRequestModel} request
90
+ * @param {McpServers.RequestOptions} requestOptions - Request-specific configuration.
91
+ *
92
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
93
+ *
94
+ * @example
95
+ * await client.conversationalAi.mcpServers.update("mcp_server_id")
96
+ */
97
+ update(mcpServerId: string, request?: ElevenLabs.conversationalAi.McpServerConfigUpdateRequestModel, requestOptions?: McpServers.RequestOptions): core.HttpResponsePromise<ElevenLabs.McpServerResponseModel>;
98
+ private __update;
85
99
  }
@@ -290,5 +290,81 @@ class McpServers {
290
290
  }
291
291
  });
292
292
  }
293
+ /**
294
+ * Update the configuration settings for an MCP server.
295
+ *
296
+ * @param {string} mcpServerId - ID of the MCP Server.
297
+ * @param {ElevenLabs.conversationalAi.McpServerConfigUpdateRequestModel} request
298
+ * @param {McpServers.RequestOptions} requestOptions - Request-specific configuration.
299
+ *
300
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
301
+ *
302
+ * @example
303
+ * await client.conversationalAi.mcpServers.update("mcp_server_id")
304
+ */
305
+ update(mcpServerId, request = {}, requestOptions) {
306
+ return core.HttpResponsePromise.fromPromise(this.__update(mcpServerId, request, requestOptions));
307
+ }
308
+ __update(mcpServerId_1) {
309
+ return __awaiter(this, arguments, void 0, function* (mcpServerId, request = {}, requestOptions) {
310
+ var _a, _b, _c;
311
+ const _response = yield core.fetcher({
312
+ 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/mcp-servers/${encodeURIComponent(mcpServerId)}`),
313
+ method: "PATCH",
314
+ headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
315
+ contentType: "application/json",
316
+ requestType: "json",
317
+ body: serializers.conversationalAi.McpServerConfigUpdateRequestModel.jsonOrThrow(request, {
318
+ unrecognizedObjectKeys: "strip",
319
+ }),
320
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
321
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
322
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
323
+ });
324
+ if (_response.ok) {
325
+ return {
326
+ data: serializers.McpServerResponseModel.parseOrThrow(_response.body, {
327
+ unrecognizedObjectKeys: "passthrough",
328
+ allowUnrecognizedUnionMembers: true,
329
+ allowUnrecognizedEnumValues: true,
330
+ breadcrumbsPrefix: ["response"],
331
+ }),
332
+ rawResponse: _response.rawResponse,
333
+ };
334
+ }
335
+ if (_response.error.reason === "status-code") {
336
+ switch (_response.error.statusCode) {
337
+ case 422:
338
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
339
+ unrecognizedObjectKeys: "passthrough",
340
+ allowUnrecognizedUnionMembers: true,
341
+ allowUnrecognizedEnumValues: true,
342
+ breadcrumbsPrefix: ["response"],
343
+ }), _response.rawResponse);
344
+ default:
345
+ throw new errors.ElevenLabsError({
346
+ statusCode: _response.error.statusCode,
347
+ body: _response.error.body,
348
+ rawResponse: _response.rawResponse,
349
+ });
350
+ }
351
+ }
352
+ switch (_response.error.reason) {
353
+ case "non-json":
354
+ throw new errors.ElevenLabsError({
355
+ statusCode: _response.error.statusCode,
356
+ body: _response.error.rawBody,
357
+ rawResponse: _response.rawResponse,
358
+ });
359
+ case "timeout":
360
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling PATCH /v1/convai/mcp-servers/{mcp_server_id}.");
361
+ case "unknown":
362
+ throw new errors.ElevenLabsError({
363
+ message: _response.error.errorMessage,
364
+ rawResponse: _response.rawResponse,
365
+ });
366
+ }
367
+ });
368
+ }
293
369
  }
294
370
  exports.McpServers = McpServers;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface McpServerConfigUpdateRequestModel {
10
+ /** The approval mode to set for the MCP server */
11
+ approvalPolicy?: ElevenLabs.McpApprovalPolicy;
12
+ /** Whether to force pre-tool speech for all tools from this MCP server */
13
+ forcePreToolSpeech?: boolean;
14
+ }
@@ -1 +1,2 @@
1
1
  export { type McpServerRequestModel } from "./McpServerRequestModel";
2
+ export { type McpServerConfigUpdateRequestModel } from "./McpServerConfigUpdateRequestModel";
@@ -31,7 +31,7 @@ export declare class ApprovalPolicy {
31
31
  protected readonly _options: ApprovalPolicy.Options;
32
32
  constructor(_options?: ApprovalPolicy.Options);
33
33
  /**
34
- * Update the approval policy configuration for an MCP server.
34
+ * Update the approval policy configuration for an MCP server. DEPRECATED: Use PATCH /mcp-servers/{id} endpoint instead.
35
35
  *
36
36
  * @param {string} mcpServerId - ID of the MCP Server.
37
37
  * @param {ElevenLabs.conversationalAi.mcpServers.McpApprovalPolicyUpdateRequestModel} request
@@ -57,7 +57,7 @@ class ApprovalPolicy {
57
57
  this._options = _options;
58
58
  }
59
59
  /**
60
- * Update the approval policy configuration for an MCP server.
60
+ * Update the approval policy configuration for an MCP server. DEPRECATED: Use PATCH /mcp-servers/{id} endpoint instead.
61
61
  *
62
62
  * @param {string} mcpServerId - ID of the MCP Server.
63
63
  * @param {ElevenLabs.conversationalAi.mcpServers.McpApprovalPolicyUpdateRequestModel} request
@@ -88,7 +88,7 @@ export declare class PhoneNumbers {
88
88
  delete(phoneNumberId: string, requestOptions?: PhoneNumbers.RequestOptions): core.HttpResponsePromise<unknown>;
89
89
  private __delete;
90
90
  /**
91
- * Update Phone Number details by ID
91
+ * Update assigned agent of a phone number
92
92
  *
93
93
  * @param {string} phoneNumberId - The id of an agent. This is returned on agent creation.
94
94
  * @param {ElevenLabs.conversationalAi.UpdatePhoneNumberRequest} request
@@ -339,7 +339,7 @@ class PhoneNumbers {
339
339
  });
340
340
  }
341
341
  /**
342
- * Update Phone Number details by ID
342
+ * Update assigned agent of a phone number
343
343
  *
344
344
  * @param {string} phoneNumberId - The id of an agent. This is returned on agent creation.
345
345
  * @param {ElevenLabs.conversationalAi.UpdatePhoneNumberRequest} request
@@ -1,10 +1,14 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as ElevenLabs from "../../../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {}
7
8
  */
8
9
  export interface UpdatePhoneNumberRequest {
9
10
  agentId?: string;
11
+ inboundTrunkConfig?: ElevenLabs.InboundSipTrunkConfigRequestModel;
12
+ outboundTrunkConfig?: ElevenLabs.OutboundSipTrunkConfigRequestModel;
13
+ livekitStack?: ElevenLabs.LivekitStackType;
10
14
  }
@@ -12,4 +12,5 @@ export interface PatchConvAiSettingsRequest {
12
12
  /** Whether the workspace can use MCP servers */
13
13
  canUseMcpServers?: boolean;
14
14
  ragRetentionPeriodDays?: number;
15
+ defaultLivekitStack?: ElevenLabs.LivekitStackType;
15
16
  }
@@ -33,5 +33,6 @@ export interface CreateUnitTestRequest {
33
33
  toolCallParameters?: ElevenLabs.UnitTestToolCallEvaluationModelInput;
34
34
  /** Dynamic variables to replace in the agent config during testing */
35
35
  dynamicVariables?: Record<string, ElevenLabs.conversationalAi.CreateUnitTestRequestDynamicVariablesValue | undefined>;
36
+ type?: ElevenLabs.UnitTestCommonModelType;
36
37
  name: string;
37
38
  }
@@ -33,5 +33,6 @@ export interface UpdateUnitTestRequest {
33
33
  toolCallParameters?: ElevenLabs.UnitTestToolCallEvaluationModelInput;
34
34
  /** Dynamic variables to replace in the agent config during testing */
35
35
  dynamicVariables?: Record<string, ElevenLabs.conversationalAi.UpdateUnitTestRequestDynamicVariablesValue | undefined>;
36
+ type?: ElevenLabs.UnitTestCommonModelType;
36
37
  name: string;
37
38
  }
@@ -88,7 +88,7 @@ class Dubbing {
88
88
  __list() {
89
89
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
90
90
  var _a, _b, _c;
91
- const { cursor, pageSize, dubbingStatus, filterByCreator } = request;
91
+ const { cursor, pageSize, dubbingStatus, filterByCreator, orderBy, orderDirection } = request;
92
92
  const _queryParams = {};
93
93
  if (cursor != null) {
94
94
  _queryParams["cursor"] = cursor;
@@ -104,6 +104,14 @@ class Dubbing {
104
104
  if (filterByCreator != null) {
105
105
  _queryParams["filter_by_creator"] = serializers.DubbingListRequestFilterByCreator.jsonOrThrow(filterByCreator, { unrecognizedObjectKeys: "strip" });
106
106
  }
107
+ if (orderBy != null) {
108
+ _queryParams["order_by"] = orderBy;
109
+ }
110
+ if (orderDirection != null) {
111
+ _queryParams["order_direction"] = serializers.DubbingListRequestOrderDirection.jsonOrThrow(orderDirection, {
112
+ unrecognizedObjectKeys: "strip",
113
+ });
114
+ }
107
115
  const _response = yield core.fetcher({
108
116
  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/dubbing"),
109
117
  method: "GET",
@@ -37,7 +37,7 @@ export interface BodyDubAVideoOrAnAudioFileV1DubbingPost {
37
37
  useProfanityFilter?: boolean;
38
38
  /** Whether to prepare dub for edits in dubbing studio or edits as a dubbing resource. */
39
39
  dubbingStudio?: boolean;
40
- /** [BETA] Instead of using a voice clone in dubbing, use a similar voice from the ElevenLabs Voice Library. */
40
+ /** Instead of using a voice clone in dubbing, use a similar voice from the ElevenLabs Voice Library. Voices used from the library will contribute towards a workspace's custom voices limit, and if there aren't enough available slots the dub will fail. Using this feature requires the caller to have the 'add_voice_from_voice_library' permission on their workspace to access new voices. */
41
41
  disableVoiceCloning?: boolean;
42
42
  /** automatic or manual. Manual mode is only supported when creating a dubbing studio project */
43
43
  mode?: string;
@@ -23,4 +23,12 @@ export interface DubbingListRequest {
23
23
  * Filters who created the resources being listed, whether it was the user running the request or someone else that shared the resource with them.
24
24
  */
25
25
  filterByCreator?: ElevenLabs.DubbingListRequestFilterByCreator;
26
+ /**
27
+ * The field to use for ordering results from this query.
28
+ */
29
+ orderBy?: "created_at";
30
+ /**
31
+ * The order direction to use for results from this query.
32
+ */
33
+ orderDirection?: ElevenLabs.DubbingListRequestOrderDirection;
26
34
  }
@@ -44,17 +44,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
45
  });
46
46
  };
47
- var __rest = (this && this.__rest) || function (s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- };
58
47
  Object.defineProperty(exports, "__esModule", { value: true });
59
48
  exports.Resource = void 0;
60
49
  const environments = __importStar(require("../../../../../../environments"));
@@ -401,19 +390,13 @@ class Resource {
401
390
  __render(dubbingId, language, request, requestOptions) {
402
391
  return __awaiter(this, void 0, void 0, function* () {
403
392
  var _a, _b, _c;
404
- const { shouldNormalizeVolume } = request, _body = __rest(request, ["shouldNormalizeVolume"]);
405
- const _queryParams = {};
406
- if (shouldNormalizeVolume != null) {
407
- _queryParams["should_normalize_volume"] = shouldNormalizeVolume.toString();
408
- }
409
393
  const _response = yield core.fetcher({
410
394
  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/dubbing/resource/${encodeURIComponent(dubbingId)}/render/${encodeURIComponent(language)}`),
411
395
  method: "POST",
412
396
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
413
397
  contentType: "application/json",
414
- queryParameters: _queryParams,
415
398
  requestType: "json",
416
- body: serializers.dubbing.BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
399
+ body: serializers.dubbing.BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
417
400
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
418
401
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
419
402
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -9,10 +9,8 @@ import * as ElevenLabs from "../../../../../../index";
9
9
  * }
10
10
  */
11
11
  export interface BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost {
12
- /**
13
- * Whether to normalize the volume of the rendered audio.
14
- */
15
- shouldNormalizeVolume?: boolean;
16
12
  /** The type of the render. One of ['mp4', 'aac', 'mp3', 'wav', 'aaf', 'tracks_zip', 'clips_zip'] */
17
13
  renderType: ElevenLabs.RenderType;
14
+ /** Whether to normalize the volume of the rendered audio. */
15
+ normalizeVolume?: boolean;
18
16
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The order direction to use for results from this query.
6
+ */
7
+ export type DubbingListRequestOrderDirection = "DESCENDING" | "ASCENDING";
8
+ export declare const DubbingListRequestOrderDirection: {
9
+ readonly Descending: "DESCENDING";
10
+ readonly Ascending: "ASCENDING";
11
+ };