@elevenlabs/elevenlabs-js 2.20.0 → 2.21.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 (530) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +9 -4
  3. package/api/resources/conversationalAi/conversation/Conversation.d.ts +2 -0
  4. package/api/resources/conversationalAi/conversation/Conversation.js +4 -0
  5. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -1
  6. package/api/resources/conversationalAi/resources/conversations/client/Client.js +6 -2
  7. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +4 -1
  8. package/api/resources/conversationalAi/resources/index.d.ts +2 -1
  9. package/api/resources/conversationalAi/resources/index.js +3 -2
  10. package/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +4 -0
  11. package/api/resources/conversationalAi/resources/mcpServers/index.d.ts +1 -0
  12. package/api/resources/conversationalAi/resources/mcpServers/index.js +1 -0
  13. package/api/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.d.ts +2 -0
  14. package/api/resources/conversationalAi/resources/mcpServers/types/index.d.ts +1 -0
  15. package/api/resources/conversationalAi/resources/mcpServers/types/index.js +17 -0
  16. package/api/resources/dubbing/client/Client.d.ts +1 -6
  17. package/api/resources/dubbing/client/Client.js +13 -10
  18. package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +5 -10
  19. package/api/resources/index.d.ts +1 -0
  20. package/api/resources/index.js +2 -1
  21. package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +0 -6
  22. package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +0 -6
  23. package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -6
  24. package/api/resources/pronunciationDictionaries/client/Client.d.ts +0 -1
  25. package/api/resources/pronunciationDictionaries/client/Client.js +3 -2
  26. package/api/resources/pronunciationDictionaries/client/requests/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.d.ts +1 -2
  27. package/api/resources/speechToText/client/Client.d.ts +0 -1
  28. package/api/resources/speechToText/client/Client.js +3 -2
  29. package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -3
  30. package/api/resources/studio/resources/projects/client/Client.d.ts +0 -1
  31. package/api/resources/studio/resources/projects/client/Client.js +3 -2
  32. package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +1 -2
  33. package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -3
  34. package/api/resources/studio/resources/projects/resources/content/client/Client.js +4 -4
  35. package/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +2 -4
  36. package/api/resources/textToDialogue/client/Client.d.ts +27 -0
  37. package/api/resources/textToDialogue/client/Client.js +182 -0
  38. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +32 -0
  39. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +32 -0
  40. package/api/resources/textToDialogue/client/requests/index.d.ts +2 -0
  41. package/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +7 -0
  42. package/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +10 -0
  43. package/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +7 -0
  44. package/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +10 -0
  45. package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +25 -0
  46. package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +28 -0
  47. package/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +25 -0
  48. package/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +28 -0
  49. package/api/resources/textToDialogue/types/index.d.ts +4 -0
  50. package/api/resources/textToDialogue/types/index.js +4 -0
  51. package/api/resources/tokens/client/Client.d.ts +20 -0
  52. package/api/resources/tokens/client/Client.js +15 -0
  53. package/api/resources/tokens/client/index.d.ts +1 -0
  54. package/api/resources/tokens/client/index.js +2 -0
  55. package/api/resources/tokens/index.d.ts +2 -0
  56. package/api/resources/tokens/index.js +18 -0
  57. package/api/resources/tokens/resources/index.d.ts +1 -0
  58. package/api/resources/tokens/resources/index.js +37 -0
  59. package/api/resources/tokens/resources/singleUse/client/Client.d.ts +45 -0
  60. package/api/resources/tokens/resources/singleUse/client/Client.js +130 -0
  61. package/api/resources/tokens/resources/singleUse/client/index.d.ts +1 -0
  62. package/api/resources/tokens/resources/singleUse/client/index.js +2 -0
  63. package/api/resources/tokens/resources/singleUse/index.d.ts +1 -0
  64. package/api/resources/tokens/resources/singleUse/index.js +17 -0
  65. package/api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
  66. package/api/types/ClientToolConfigInput.d.ts +4 -0
  67. package/api/types/ClientToolConfigOutput.d.ts +4 -0
  68. package/api/types/CreateTwilioPhoneNumberRequest.d.ts +3 -0
  69. package/api/types/GuardrailsV1Input.d.ts +5 -0
  70. package/api/types/GuardrailsV1Output.d.ts +5 -0
  71. package/api/types/Llm.d.ts +2 -0
  72. package/api/types/Llm.js +2 -0
  73. package/api/types/McpServerConfigInput.d.ts +2 -0
  74. package/api/types/McpServerConfigInputRequestHeadersValue.d.ts +1 -1
  75. package/api/types/McpServerConfigOutput.d.ts +2 -0
  76. package/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +1 -1
  77. package/api/types/MetricType.d.ts +1 -0
  78. package/api/types/MetricType.js +1 -0
  79. package/api/types/ModerationConfig.d.ts +14 -0
  80. package/api/types/ModerationConfig.js +3 -0
  81. package/api/types/ModerationGuardrailInput.d.ts +4 -0
  82. package/api/types/ModerationGuardrailInput.js +3 -0
  83. package/api/types/ModerationGuardrailOutput.d.ts +4 -0
  84. package/api/types/ModerationGuardrailOutput.js +3 -0
  85. package/api/types/ReferencedToolCommonModel.d.ts +1 -1
  86. package/api/types/ReferencedToolCommonModelType.d.ts +8 -0
  87. package/api/types/ReferencedToolCommonModelType.js +11 -0
  88. package/api/types/RegionConfigRequest.d.ts +9 -0
  89. package/api/types/RegionConfigRequest.js +3 -0
  90. package/api/types/SingleUseTokenResponseModel.d.ts +4 -0
  91. package/api/types/SingleUseTokenResponseModel.js +3 -0
  92. package/api/types/SingleUseTokenType.d.ts +1 -0
  93. package/api/types/SingleUseTokenType.js +3 -0
  94. package/api/types/SongSection.d.ts +1 -1
  95. package/api/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
  96. package/api/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.js +3 -0
  97. package/api/types/SystemToolConfigInput.d.ts +4 -0
  98. package/api/types/SystemToolConfigOutput.d.ts +4 -0
  99. package/api/types/ThresholdGuardrail.d.ts +4 -0
  100. package/api/types/ThresholdGuardrail.js +3 -0
  101. package/api/types/ToolCallSoundBehavior.d.ts +6 -0
  102. package/api/types/ToolCallSoundBehavior.js +9 -0
  103. package/api/types/ToolCallSoundType.d.ts +9 -0
  104. package/api/types/ToolCallSoundType.js +12 -0
  105. package/api/types/ToolRequestModelToolConfig.d.ts +1 -5
  106. package/api/types/TurnConfig.d.ts +2 -2
  107. package/api/types/TurnConfigWorkflowOverride.d.ts +2 -2
  108. package/api/types/TurnEagerness.d.ts +7 -0
  109. package/api/types/TurnEagerness.js +10 -0
  110. package/api/types/TwilioEdgeLocation.d.ts +13 -0
  111. package/api/types/TwilioEdgeLocation.js +16 -0
  112. package/api/types/TwilioRegionId.d.ts +7 -0
  113. package/api/types/TwilioRegionId.js +10 -0
  114. package/api/types/User.d.ts +0 -2
  115. package/api/types/VadConfig.d.ts +0 -2
  116. package/api/types/VadConfigWorkflowOverride.d.ts +0 -2
  117. package/api/types/VoiceSegment.d.ts +12 -0
  118. package/api/types/VoiceSegment.js +3 -0
  119. package/api/types/WebhookToolConfigInput.d.ts +4 -0
  120. package/api/types/WebhookToolConfigOutput.d.ts +4 -0
  121. package/api/types/WorkspaceResourceType.d.ts +2 -0
  122. package/api/types/WorkspaceResourceType.js +2 -0
  123. package/api/types/index.d.ts +18 -5
  124. package/api/types/index.js +18 -5
  125. package/dist/Client.d.ts +3 -0
  126. package/dist/Client.js +9 -4
  127. package/dist/api/resources/conversationalAi/conversation/Conversation.d.ts +2 -0
  128. package/dist/api/resources/conversationalAi/conversation/Conversation.js +4 -0
  129. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -1
  130. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +6 -2
  131. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +4 -1
  132. package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -1
  133. package/dist/api/resources/conversationalAi/resources/index.js +3 -2
  134. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +4 -0
  135. package/dist/api/resources/conversationalAi/resources/mcpServers/index.d.ts +1 -0
  136. package/dist/api/resources/conversationalAi/resources/mcpServers/index.js +1 -0
  137. package/dist/api/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.d.ts +2 -0
  138. package/dist/api/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.js +3 -0
  139. package/dist/api/resources/conversationalAi/resources/mcpServers/types/index.d.ts +1 -0
  140. package/dist/api/resources/conversationalAi/resources/mcpServers/types/index.js +17 -0
  141. package/dist/api/resources/dubbing/client/Client.d.ts +1 -6
  142. package/dist/api/resources/dubbing/client/Client.js +13 -10
  143. package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +5 -10
  144. package/dist/api/resources/index.d.ts +1 -0
  145. package/dist/api/resources/index.js +2 -1
  146. package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +0 -6
  147. package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +0 -6
  148. package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -6
  149. package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +0 -1
  150. package/dist/api/resources/pronunciationDictionaries/client/Client.js +3 -2
  151. package/dist/api/resources/pronunciationDictionaries/client/requests/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.d.ts +1 -2
  152. package/dist/api/resources/speechToText/client/Client.d.ts +0 -1
  153. package/dist/api/resources/speechToText/client/Client.js +3 -2
  154. package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +1 -3
  155. package/dist/api/resources/studio/resources/projects/client/Client.d.ts +0 -1
  156. package/dist/api/resources/studio/resources/projects/client/Client.js +3 -2
  157. package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +1 -2
  158. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -3
  159. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +4 -4
  160. package/dist/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +2 -4
  161. package/dist/api/resources/textToDialogue/client/Client.d.ts +27 -0
  162. package/dist/api/resources/textToDialogue/client/Client.js +182 -0
  163. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +32 -0
  164. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.js +3 -0
  165. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +32 -0
  166. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.js +3 -0
  167. package/dist/api/resources/textToDialogue/client/requests/index.d.ts +2 -0
  168. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +7 -0
  169. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +10 -0
  170. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +7 -0
  171. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +10 -0
  172. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +25 -0
  173. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +28 -0
  174. package/dist/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +25 -0
  175. package/dist/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +28 -0
  176. package/dist/api/resources/textToDialogue/types/index.d.ts +4 -0
  177. package/dist/api/resources/textToDialogue/types/index.js +4 -0
  178. package/dist/api/resources/tokens/client/Client.d.ts +20 -0
  179. package/dist/api/resources/tokens/client/Client.js +15 -0
  180. package/dist/api/resources/tokens/client/index.d.ts +1 -0
  181. package/dist/api/resources/tokens/client/index.js +2 -0
  182. package/dist/api/resources/tokens/index.d.ts +2 -0
  183. package/dist/api/resources/tokens/index.js +18 -0
  184. package/dist/api/resources/tokens/resources/index.d.ts +1 -0
  185. package/dist/api/resources/tokens/resources/index.js +37 -0
  186. package/dist/api/resources/tokens/resources/singleUse/client/Client.d.ts +45 -0
  187. package/dist/api/resources/tokens/resources/singleUse/client/Client.js +130 -0
  188. package/dist/api/resources/tokens/resources/singleUse/client/index.d.ts +1 -0
  189. package/dist/api/resources/tokens/resources/singleUse/client/index.js +2 -0
  190. package/dist/api/resources/tokens/resources/singleUse/index.d.ts +1 -0
  191. package/dist/api/resources/tokens/resources/singleUse/index.js +17 -0
  192. package/dist/api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
  193. package/dist/api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +3 -0
  194. package/dist/api/types/ClientToolConfigInput.d.ts +4 -0
  195. package/dist/api/types/ClientToolConfigOutput.d.ts +4 -0
  196. package/dist/api/types/CreateTwilioPhoneNumberRequest.d.ts +3 -0
  197. package/dist/api/types/GuardrailsV1Input.d.ts +5 -0
  198. package/dist/api/types/GuardrailsV1Input.js +3 -0
  199. package/dist/api/types/GuardrailsV1Output.d.ts +5 -0
  200. package/dist/api/types/GuardrailsV1Output.js +3 -0
  201. package/dist/api/types/Llm.d.ts +2 -0
  202. package/dist/api/types/Llm.js +2 -0
  203. package/dist/api/types/McpServerConfigInput.d.ts +2 -0
  204. package/dist/api/types/McpServerConfigInputRequestHeadersValue.d.ts +1 -1
  205. package/dist/api/types/McpServerConfigOutput.d.ts +2 -0
  206. package/dist/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +1 -1
  207. package/dist/api/types/MetricType.d.ts +1 -0
  208. package/dist/api/types/MetricType.js +1 -0
  209. package/dist/api/types/ModerationConfig.d.ts +14 -0
  210. package/dist/api/types/ModerationConfig.js +3 -0
  211. package/dist/api/types/ModerationGuardrailInput.d.ts +4 -0
  212. package/dist/api/types/ModerationGuardrailInput.js +3 -0
  213. package/dist/api/types/ModerationGuardrailOutput.d.ts +4 -0
  214. package/dist/api/types/ModerationGuardrailOutput.js +3 -0
  215. package/dist/api/types/ReferencedToolCommonModel.d.ts +1 -1
  216. package/dist/api/types/ReferencedToolCommonModelType.d.ts +8 -0
  217. package/dist/api/types/ReferencedToolCommonModelType.js +11 -0
  218. package/dist/api/types/RegionConfigRequest.d.ts +9 -0
  219. package/dist/api/types/RegionConfigRequest.js +3 -0
  220. package/dist/api/types/SingleUseTokenResponseModel.d.ts +4 -0
  221. package/dist/api/types/SingleUseTokenResponseModel.js +3 -0
  222. package/dist/api/types/SingleUseTokenType.d.ts +1 -0
  223. package/dist/api/types/SingleUseTokenType.js +3 -0
  224. package/dist/api/types/SongSection.d.ts +1 -1
  225. package/dist/api/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.d.ts +11 -0
  226. package/dist/api/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.js +3 -0
  227. package/dist/api/types/SystemToolConfigInput.d.ts +4 -0
  228. package/dist/api/types/SystemToolConfigOutput.d.ts +4 -0
  229. package/dist/api/types/ThresholdGuardrail.d.ts +4 -0
  230. package/dist/api/types/ThresholdGuardrail.js +3 -0
  231. package/dist/api/types/ToolCallSoundBehavior.d.ts +6 -0
  232. package/dist/api/types/ToolCallSoundBehavior.js +9 -0
  233. package/dist/api/types/ToolCallSoundType.d.ts +9 -0
  234. package/dist/api/types/ToolCallSoundType.js +12 -0
  235. package/dist/api/types/ToolRequestModelToolConfig.d.ts +1 -5
  236. package/dist/api/types/TurnConfig.d.ts +2 -2
  237. package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -2
  238. package/dist/api/types/TurnEagerness.d.ts +7 -0
  239. package/dist/api/types/TurnEagerness.js +10 -0
  240. package/dist/api/types/TwilioEdgeLocation.d.ts +13 -0
  241. package/dist/api/types/TwilioEdgeLocation.js +16 -0
  242. package/dist/api/types/TwilioRegionId.d.ts +7 -0
  243. package/dist/api/types/TwilioRegionId.js +10 -0
  244. package/dist/api/types/User.d.ts +0 -2
  245. package/dist/api/types/VadConfig.d.ts +0 -2
  246. package/dist/api/types/VadConfigWorkflowOverride.d.ts +0 -2
  247. package/dist/api/types/VoiceSegment.d.ts +12 -0
  248. package/dist/api/types/VoiceSegment.js +3 -0
  249. package/dist/api/types/WebhookToolConfigInput.d.ts +4 -0
  250. package/dist/api/types/WebhookToolConfigOutput.d.ts +4 -0
  251. package/dist/api/types/WorkspaceResourceType.d.ts +2 -0
  252. package/dist/api/types/WorkspaceResourceType.js +2 -0
  253. package/dist/api/types/index.d.ts +18 -5
  254. package/dist/api/types/index.js +18 -5
  255. package/dist/serialization/resources/conversationalAi/resources/index.d.ts +2 -1
  256. package/dist/serialization/resources/conversationalAi/resources/index.js +3 -2
  257. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +4 -0
  258. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +6 -0
  259. package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +1 -0
  260. package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.js +1 -0
  261. package/dist/serialization/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.d.ts +9 -0
  262. package/dist/serialization/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.js +41 -0
  263. package/dist/serialization/resources/conversationalAi/resources/mcpServers/types/index.d.ts +1 -0
  264. package/dist/serialization/resources/conversationalAi/resources/mcpServers/types/index.js +17 -0
  265. package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +0 -2
  266. package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +0 -2
  267. package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +0 -2
  268. package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +0 -2
  269. package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -2
  270. package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +0 -2
  271. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +19 -0
  272. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.js +51 -0
  273. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +19 -0
  274. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.js +51 -0
  275. package/dist/serialization/resources/textToDialogue/client/requests/index.d.ts +2 -0
  276. package/dist/serialization/resources/textToDialogue/client/requests/index.js +5 -1
  277. package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +7 -0
  278. package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +39 -0
  279. package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +7 -0
  280. package/dist/serialization/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +39 -0
  281. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +7 -0
  282. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +61 -0
  283. package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +7 -0
  284. package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +61 -0
  285. package/dist/serialization/resources/textToDialogue/types/index.d.ts +4 -0
  286. package/dist/serialization/resources/textToDialogue/types/index.js +4 -0
  287. package/dist/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
  288. package/dist/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
  289. package/dist/serialization/types/ClientToolConfigInput.d.ts +4 -0
  290. package/dist/serialization/types/ClientToolConfigInput.js +4 -0
  291. package/dist/serialization/types/ClientToolConfigOutput.d.ts +4 -0
  292. package/dist/serialization/types/ClientToolConfigOutput.js +4 -0
  293. package/dist/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
  294. package/dist/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
  295. package/dist/serialization/types/GuardrailsV1Input.d.ts +11 -0
  296. package/dist/serialization/types/GuardrailsV1Input.js +43 -0
  297. package/dist/serialization/types/GuardrailsV1Output.d.ts +11 -0
  298. package/dist/serialization/types/GuardrailsV1Output.js +43 -0
  299. package/dist/serialization/types/Llm.d.ts +1 -1
  300. package/dist/serialization/types/Llm.js +2 -0
  301. package/dist/serialization/types/McpServerConfigInput.d.ts +2 -0
  302. package/dist/serialization/types/McpServerConfigInput.js +2 -0
  303. package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +2 -1
  304. package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.js +2 -1
  305. package/dist/serialization/types/McpServerConfigOutput.d.ts +2 -0
  306. package/dist/serialization/types/McpServerConfigOutput.js +2 -0
  307. package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +2 -1
  308. package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.js +2 -1
  309. package/dist/serialization/types/MetricType.d.ts +1 -1
  310. package/dist/serialization/types/MetricType.js +1 -0
  311. package/dist/serialization/types/ModerationConfig.d.ts +20 -0
  312. package/{serialization/types/SubscriptionUsageResponseModel.js → dist/serialization/types/ModerationConfig.js} +14 -10
  313. package/dist/serialization/types/ModerationGuardrailInput.d.ts +10 -0
  314. package/dist/serialization/types/ModerationGuardrailInput.js +42 -0
  315. package/dist/serialization/types/ModerationGuardrailOutput.d.ts +10 -0
  316. package/dist/serialization/types/ModerationGuardrailOutput.js +42 -0
  317. package/dist/serialization/types/ReferencedToolCommonModel.d.ts +2 -2
  318. package/dist/serialization/types/ReferencedToolCommonModel.js +2 -2
  319. package/dist/serialization/types/ReferencedToolCommonModelType.d.ts +7 -0
  320. package/dist/serialization/types/{ModerationStatusResponseModelWarningStatus.js → ReferencedToolCommonModelType.js} +2 -2
  321. package/dist/serialization/types/RegionConfigRequest.d.ts +13 -0
  322. package/dist/serialization/types/RegionConfigRequest.js +45 -0
  323. package/dist/serialization/types/SingleUseTokenResponseModel.d.ts +9 -0
  324. package/{serialization/types/ModerationStatusResponseModelWarningStatus.js → dist/serialization/types/SingleUseTokenResponseModel.js} +4 -2
  325. package/dist/serialization/types/SingleUseTokenType.d.ts +7 -0
  326. package/dist/serialization/types/{ModerationStatusResponseModelSafetyStatus.js → SingleUseTokenType.js} +2 -2
  327. package/dist/serialization/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
  328. package/dist/serialization/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
  329. package/dist/serialization/types/SystemToolConfigInput.d.ts +4 -0
  330. package/dist/serialization/types/SystemToolConfigInput.js +4 -0
  331. package/dist/serialization/types/SystemToolConfigOutput.d.ts +4 -0
  332. package/dist/serialization/types/SystemToolConfigOutput.js +4 -0
  333. package/dist/serialization/types/ThresholdGuardrail.d.ts +10 -0
  334. package/dist/serialization/types/ThresholdGuardrail.js +42 -0
  335. package/dist/serialization/types/ToolCallSoundBehavior.d.ts +7 -0
  336. package/{serialization/types/ModerationStatusResponseModelSafetyStatus.js → dist/serialization/types/ToolCallSoundBehavior.js} +2 -2
  337. package/dist/serialization/types/ToolCallSoundType.d.ts +7 -0
  338. package/dist/serialization/types/ToolCallSoundType.js +39 -0
  339. package/dist/serialization/types/ToolRequestModelToolConfig.d.ts +1 -5
  340. package/dist/serialization/types/ToolRequestModelToolConfig.js +0 -3
  341. package/dist/serialization/types/TurnConfig.d.ts +2 -2
  342. package/dist/serialization/types/TurnConfig.js +2 -2
  343. package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -2
  344. package/dist/serialization/types/TurnConfigWorkflowOverride.js +2 -2
  345. package/dist/serialization/types/TurnEagerness.d.ts +7 -0
  346. package/dist/serialization/types/TurnEagerness.js +39 -0
  347. package/dist/serialization/types/TwilioEdgeLocation.d.ts +7 -0
  348. package/dist/serialization/types/TwilioEdgeLocation.js +49 -0
  349. package/dist/serialization/types/TwilioRegionId.d.ts +7 -0
  350. package/dist/serialization/types/TwilioRegionId.js +39 -0
  351. package/dist/serialization/types/User.d.ts +0 -2
  352. package/dist/serialization/types/User.js +0 -2
  353. package/dist/serialization/types/VadConfig.d.ts +0 -1
  354. package/dist/serialization/types/VadConfig.js +1 -3
  355. package/dist/serialization/types/VadConfigWorkflowOverride.d.ts +0 -1
  356. package/dist/serialization/types/VadConfigWorkflowOverride.js +1 -3
  357. package/dist/serialization/types/VoiceSegment.d.ts +13 -0
  358. package/dist/serialization/types/VoiceSegment.js +45 -0
  359. package/dist/serialization/types/WebhookToolConfigInput.d.ts +4 -0
  360. package/dist/serialization/types/WebhookToolConfigInput.js +4 -0
  361. package/dist/serialization/types/WebhookToolConfigOutput.d.ts +4 -0
  362. package/dist/serialization/types/WebhookToolConfigOutput.js +4 -0
  363. package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
  364. package/dist/serialization/types/WorkspaceResourceType.js +2 -0
  365. package/dist/serialization/types/index.d.ts +18 -5
  366. package/dist/serialization/types/index.js +18 -5
  367. package/dist/version.d.ts +1 -1
  368. package/dist/version.js +1 -1
  369. package/dist/wrapper/ElevenLabsClient.js +1 -1
  370. package/dist/wrapper/music.d.ts +74 -3
  371. package/dist/wrapper/music.js +127 -14
  372. package/dist/wrapper/realtime/connection.js +0 -1
  373. package/dist/wrapper/realtime/scribe.d.ts +5 -0
  374. package/dist/wrapper/realtime/scribe.js +3 -0
  375. package/package.json +3 -2
  376. package/reference.md +221 -18
  377. package/serialization/resources/conversationalAi/resources/index.d.ts +2 -1
  378. package/serialization/resources/conversationalAi/resources/index.js +3 -2
  379. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +4 -0
  380. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +6 -0
  381. package/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +1 -0
  382. package/serialization/resources/conversationalAi/resources/mcpServers/index.js +1 -0
  383. package/serialization/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.d.ts +9 -0
  384. package/serialization/resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.js +41 -0
  385. package/serialization/resources/conversationalAi/resources/mcpServers/types/index.d.ts +1 -0
  386. package/serialization/resources/conversationalAi/resources/mcpServers/types/index.js +17 -0
  387. package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +0 -2
  388. package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +0 -2
  389. package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +0 -2
  390. package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +0 -2
  391. package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +0 -2
  392. package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +0 -2
  393. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +19 -0
  394. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.js +51 -0
  395. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +19 -0
  396. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.js +51 -0
  397. package/serialization/resources/textToDialogue/client/requests/index.d.ts +2 -0
  398. package/serialization/resources/textToDialogue/client/requests/index.js +5 -1
  399. package/serialization/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +7 -0
  400. package/serialization/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +39 -0
  401. package/serialization/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +7 -0
  402. package/serialization/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +39 -0
  403. package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +7 -0
  404. package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +61 -0
  405. package/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +7 -0
  406. package/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +61 -0
  407. package/serialization/resources/textToDialogue/types/index.d.ts +4 -0
  408. package/serialization/resources/textToDialogue/types/index.js +4 -0
  409. package/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
  410. package/serialization/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
  411. package/serialization/types/ClientToolConfigInput.d.ts +4 -0
  412. package/serialization/types/ClientToolConfigInput.js +4 -0
  413. package/serialization/types/ClientToolConfigOutput.d.ts +4 -0
  414. package/serialization/types/ClientToolConfigOutput.js +4 -0
  415. package/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
  416. package/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
  417. package/serialization/types/GuardrailsV1Input.d.ts +11 -0
  418. package/serialization/types/GuardrailsV1Input.js +43 -0
  419. package/serialization/types/GuardrailsV1Output.d.ts +11 -0
  420. package/serialization/types/GuardrailsV1Output.js +43 -0
  421. package/serialization/types/Llm.d.ts +1 -1
  422. package/serialization/types/Llm.js +2 -0
  423. package/serialization/types/McpServerConfigInput.d.ts +2 -0
  424. package/serialization/types/McpServerConfigInput.js +2 -0
  425. package/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +2 -1
  426. package/serialization/types/McpServerConfigInputRequestHeadersValue.js +2 -1
  427. package/serialization/types/McpServerConfigOutput.d.ts +2 -0
  428. package/serialization/types/McpServerConfigOutput.js +2 -0
  429. package/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +2 -1
  430. package/serialization/types/McpServerConfigOutputRequestHeadersValue.js +2 -1
  431. package/serialization/types/MetricType.d.ts +1 -1
  432. package/serialization/types/MetricType.js +1 -0
  433. package/serialization/types/ModerationConfig.d.ts +20 -0
  434. package/{dist/serialization/types/SubscriptionUsageResponseModel.js → serialization/types/ModerationConfig.js} +14 -10
  435. package/serialization/types/ModerationGuardrailInput.d.ts +10 -0
  436. package/serialization/types/ModerationGuardrailInput.js +42 -0
  437. package/serialization/types/ModerationGuardrailOutput.d.ts +10 -0
  438. package/serialization/types/ModerationGuardrailOutput.js +42 -0
  439. package/serialization/types/ReferencedToolCommonModel.d.ts +2 -2
  440. package/serialization/types/ReferencedToolCommonModel.js +2 -2
  441. package/serialization/types/ReferencedToolCommonModelType.d.ts +7 -0
  442. package/serialization/types/ReferencedToolCommonModelType.js +39 -0
  443. package/serialization/types/RegionConfigRequest.d.ts +13 -0
  444. package/serialization/types/RegionConfigRequest.js +45 -0
  445. package/serialization/types/SingleUseTokenResponseModel.d.ts +9 -0
  446. package/serialization/types/SingleUseTokenResponseModel.js +41 -0
  447. package/serialization/types/SingleUseTokenType.d.ts +7 -0
  448. package/serialization/types/SingleUseTokenType.js +39 -0
  449. package/serialization/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.d.ts +14 -0
  450. package/serialization/types/StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel.js +46 -0
  451. package/serialization/types/SystemToolConfigInput.d.ts +4 -0
  452. package/serialization/types/SystemToolConfigInput.js +4 -0
  453. package/serialization/types/SystemToolConfigOutput.d.ts +4 -0
  454. package/serialization/types/SystemToolConfigOutput.js +4 -0
  455. package/serialization/types/ThresholdGuardrail.d.ts +10 -0
  456. package/serialization/types/ThresholdGuardrail.js +42 -0
  457. package/serialization/types/ToolCallSoundBehavior.d.ts +7 -0
  458. package/serialization/types/ToolCallSoundBehavior.js +39 -0
  459. package/serialization/types/ToolCallSoundType.d.ts +7 -0
  460. package/serialization/types/ToolCallSoundType.js +39 -0
  461. package/serialization/types/ToolRequestModelToolConfig.d.ts +1 -5
  462. package/serialization/types/ToolRequestModelToolConfig.js +0 -3
  463. package/serialization/types/TurnConfig.d.ts +2 -2
  464. package/serialization/types/TurnConfig.js +2 -2
  465. package/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -2
  466. package/serialization/types/TurnConfigWorkflowOverride.js +2 -2
  467. package/serialization/types/TurnEagerness.d.ts +7 -0
  468. package/serialization/types/TurnEagerness.js +39 -0
  469. package/serialization/types/TwilioEdgeLocation.d.ts +7 -0
  470. package/serialization/types/TwilioEdgeLocation.js +49 -0
  471. package/serialization/types/TwilioRegionId.d.ts +7 -0
  472. package/serialization/types/TwilioRegionId.js +39 -0
  473. package/serialization/types/User.d.ts +0 -2
  474. package/serialization/types/User.js +0 -2
  475. package/serialization/types/VadConfig.d.ts +0 -1
  476. package/serialization/types/VadConfig.js +1 -3
  477. package/serialization/types/VadConfigWorkflowOverride.d.ts +0 -1
  478. package/serialization/types/VadConfigWorkflowOverride.js +1 -3
  479. package/serialization/types/VoiceSegment.d.ts +13 -0
  480. package/serialization/types/VoiceSegment.js +45 -0
  481. package/serialization/types/WebhookToolConfigInput.d.ts +4 -0
  482. package/serialization/types/WebhookToolConfigInput.js +4 -0
  483. package/serialization/types/WebhookToolConfigOutput.d.ts +4 -0
  484. package/serialization/types/WebhookToolConfigOutput.js +4 -0
  485. package/serialization/types/WorkspaceResourceType.d.ts +1 -1
  486. package/serialization/types/WorkspaceResourceType.js +2 -0
  487. package/serialization/types/index.d.ts +18 -5
  488. package/serialization/types/index.js +18 -5
  489. package/version.d.ts +1 -1
  490. package/version.js +1 -1
  491. package/wrapper/ElevenLabsClient.js +1 -1
  492. package/wrapper/music.d.ts +74 -3
  493. package/wrapper/music.js +127 -14
  494. package/wrapper/realtime/connection.js +0 -1
  495. package/wrapper/realtime/scribe.d.ts +5 -0
  496. package/wrapper/realtime/scribe.js +3 -0
  497. package/api/types/ModerationStatusResponseModel.d.ts +0 -21
  498. package/api/types/ModerationStatusResponseModelSafetyStatus.d.ts +0 -6
  499. package/api/types/ModerationStatusResponseModelSafetyStatus.js +0 -9
  500. package/api/types/ModerationStatusResponseModelWarningStatus.d.ts +0 -5
  501. package/api/types/ModerationStatusResponseModelWarningStatus.js +0 -8
  502. package/api/types/SubscriptionExtrasResponseModel.d.ts +0 -27
  503. package/api/types/SubscriptionUsageResponseModel.d.ts +0 -18
  504. package/dist/api/types/ModerationStatusResponseModel.d.ts +0 -21
  505. package/dist/api/types/ModerationStatusResponseModelSafetyStatus.d.ts +0 -6
  506. package/dist/api/types/ModerationStatusResponseModelSafetyStatus.js +0 -9
  507. package/dist/api/types/ModerationStatusResponseModelWarningStatus.d.ts +0 -5
  508. package/dist/api/types/ModerationStatusResponseModelWarningStatus.js +0 -8
  509. package/dist/api/types/SubscriptionExtrasResponseModel.d.ts +0 -27
  510. package/dist/api/types/SubscriptionUsageResponseModel.d.ts +0 -18
  511. package/dist/serialization/types/ModerationStatusResponseModel.d.ts +0 -19
  512. package/dist/serialization/types/ModerationStatusResponseModel.js +0 -51
  513. package/dist/serialization/types/ModerationStatusResponseModelSafetyStatus.d.ts +0 -7
  514. package/dist/serialization/types/ModerationStatusResponseModelWarningStatus.d.ts +0 -7
  515. package/dist/serialization/types/SubscriptionExtrasResponseModel.d.ts +0 -22
  516. package/dist/serialization/types/SubscriptionExtrasResponseModel.js +0 -54
  517. package/dist/serialization/types/SubscriptionUsageResponseModel.d.ts +0 -16
  518. package/serialization/types/ModerationStatusResponseModel.d.ts +0 -19
  519. package/serialization/types/ModerationStatusResponseModel.js +0 -51
  520. package/serialization/types/ModerationStatusResponseModelSafetyStatus.d.ts +0 -7
  521. package/serialization/types/ModerationStatusResponseModelWarningStatus.d.ts +0 -7
  522. package/serialization/types/SubscriptionExtrasResponseModel.d.ts +0 -22
  523. package/serialization/types/SubscriptionExtrasResponseModel.js +0 -54
  524. package/serialization/types/SubscriptionUsageResponseModel.d.ts +0 -16
  525. /package/api/{types/ModerationStatusResponseModel.js → resources/conversationalAi/resources/mcpServers/types/McpServerConfigUpdateRequestModelRequestHeadersValue.js} +0 -0
  526. /package/api/{types/SubscriptionExtrasResponseModel.js → resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.js} +0 -0
  527. /package/api/{types/SubscriptionUsageResponseModel.js → resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.js} +0 -0
  528. /package/{dist/api/types/ModerationStatusResponseModel.js → api/types/AudioWithTimestampsAndVoiceSegmentsResponseModel.js} +0 -0
  529. /package/{dist/api/types/SubscriptionExtrasResponseModel.js → api/types/GuardrailsV1Input.js} +0 -0
  530. /package/{dist/api/types/SubscriptionUsageResponseModel.js → api/types/GuardrailsV1Output.js} +0 -0
@@ -0,0 +1,45 @@
1
+ import * as environments from "../../../../../../environments";
2
+ import * as core from "../../../../../../core";
3
+ import * as ElevenLabs from "../../../../../index";
4
+ export declare namespace SingleUse {
5
+ interface Options {
6
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
7
+ /** Specify a custom URL to connect the client to. */
8
+ baseUrl?: core.Supplier<string>;
9
+ /** Override the xi-api-key header */
10
+ apiKey?: core.Supplier<string | undefined>;
11
+ /** Additional headers to include in requests. */
12
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
13
+ }
14
+ interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
16
+ timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
18
+ maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
21
+ /** Override the xi-api-key header */
22
+ apiKey?: string | undefined;
23
+ /** Additional query string parameters to include in the request. */
24
+ queryParams?: Record<string, unknown>;
25
+ /** Additional headers to include in the request. */
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
+ }
28
+ }
29
+ export declare class SingleUse {
30
+ protected readonly _options: SingleUse.Options;
31
+ constructor(_options?: SingleUse.Options);
32
+ /**
33
+ * Generate a time limited single-use token with embedded authentication for frontend clients.
34
+ *
35
+ * @param {ElevenLabs.SingleUseTokenType} tokenType
36
+ * @param {SingleUse.RequestOptions} requestOptions - Request-specific configuration.
37
+ *
38
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
39
+ *
40
+ * @example
41
+ * await client.tokens.singleUse.create("realtime_scribe")
42
+ */
43
+ create(tokenType: ElevenLabs.SingleUseTokenType, requestOptions?: SingleUse.RequestOptions): core.HttpResponsePromise<ElevenLabs.SingleUseTokenResponseModel>;
44
+ private __create;
45
+ }
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.SingleUse = void 0;
47
+ const environments = __importStar(require("../../../../../../environments"));
48
+ const core = __importStar(require("../../../../../../core"));
49
+ const ElevenLabs = __importStar(require("../../../../../index"));
50
+ const headers_1 = require("../../../../../../core/headers");
51
+ const serializers = __importStar(require("../../../../../../serialization/index"));
52
+ const errors = __importStar(require("../../../../../../errors/index"));
53
+ class SingleUse {
54
+ constructor(_options = {}) {
55
+ this._options = _options;
56
+ }
57
+ /**
58
+ * Generate a time limited single-use token with embedded authentication for frontend clients.
59
+ *
60
+ * @param {ElevenLabs.SingleUseTokenType} tokenType
61
+ * @param {SingleUse.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
64
+ *
65
+ * @example
66
+ * await client.tokens.singleUse.create("realtime_scribe")
67
+ */
68
+ create(tokenType, requestOptions) {
69
+ return core.HttpResponsePromise.fromPromise(this.__create(tokenType, requestOptions));
70
+ }
71
+ __create(tokenType, requestOptions) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ var _a, _b, _c, _d, _e;
74
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
75
+ const _response = yield core.fetcher({
76
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ElevenLabsEnvironment.Production, `v1/single-use-token/${encodeURIComponent(serializers.SingleUseTokenType.jsonOrThrow(tokenType))}`),
77
+ method: "POST",
78
+ headers: _headers,
79
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
80
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
81
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
82
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
83
+ });
84
+ if (_response.ok) {
85
+ return {
86
+ data: serializers.SingleUseTokenResponseModel.parseOrThrow(_response.body, {
87
+ unrecognizedObjectKeys: "passthrough",
88
+ allowUnrecognizedUnionMembers: true,
89
+ allowUnrecognizedEnumValues: true,
90
+ breadcrumbsPrefix: ["response"],
91
+ }),
92
+ rawResponse: _response.rawResponse,
93
+ };
94
+ }
95
+ if (_response.error.reason === "status-code") {
96
+ switch (_response.error.statusCode) {
97
+ case 422:
98
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
99
+ unrecognizedObjectKeys: "passthrough",
100
+ allowUnrecognizedUnionMembers: true,
101
+ allowUnrecognizedEnumValues: true,
102
+ breadcrumbsPrefix: ["response"],
103
+ }), _response.rawResponse);
104
+ default:
105
+ throw new errors.ElevenLabsError({
106
+ statusCode: _response.error.statusCode,
107
+ body: _response.error.body,
108
+ rawResponse: _response.rawResponse,
109
+ });
110
+ }
111
+ }
112
+ switch (_response.error.reason) {
113
+ case "non-json":
114
+ throw new errors.ElevenLabsError({
115
+ statusCode: _response.error.statusCode,
116
+ body: _response.error.rawBody,
117
+ rawResponse: _response.rawResponse,
118
+ });
119
+ case "timeout":
120
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/single-use-token/{token_type}.");
121
+ case "unknown":
122
+ throw new errors.ElevenLabsError({
123
+ message: _response.error.errorMessage,
124
+ rawResponse: _response.rawResponse,
125
+ });
126
+ }
127
+ });
128
+ }
129
+ }
130
+ exports.SingleUse = SingleUse;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -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("./client"), exports);
@@ -0,0 +1,11 @@
1
+ import * as ElevenLabs from "../index";
2
+ export interface AudioWithTimestampsAndVoiceSegmentsResponseModel {
3
+ /** Base64 encoded audio data */
4
+ audioBase64: string;
5
+ /** Timestamp information for each character in the original text */
6
+ alignment?: ElevenLabs.CharacterAlignmentResponseModel;
7
+ /** Timestamp information for each character in the normalized text */
8
+ normalizedAlignment?: ElevenLabs.CharacterAlignmentResponseModel;
9
+ /** Voice segments for the audio */
10
+ voiceSegments: ElevenLabs.VoiceSegment[];
11
+ }
@@ -14,6 +14,10 @@ export interface ClientToolConfigInput {
14
14
  forcePreToolSpeech?: boolean;
15
15
  /** Configuration for extracting values from tool responses and assigning them to dynamic variables */
16
16
  assignments?: ElevenLabs.DynamicVariableAssignment[];
17
+ /** Predefined tool call sound type to play during tool execution. If not specified, no tool call sound will be played. */
18
+ toolCallSound?: ElevenLabs.ToolCallSoundType;
19
+ /** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
20
+ toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
17
21
  /** Schema for any parameters to pass to the client */
18
22
  parameters?: ElevenLabs.ObjectJsonSchemaPropertyInput;
19
23
  /** If true, calling this tool should block the conversation until the client responds with some response which is passed to the llm. If false then we will continue the conversation without waiting for the client to respond, this is useful to show content to a user but not block the conversation */
@@ -14,6 +14,10 @@ export interface ClientToolConfigOutput {
14
14
  forcePreToolSpeech?: boolean;
15
15
  /** Configuration for extracting values from tool responses and assigning them to dynamic variables */
16
16
  assignments?: ElevenLabs.DynamicVariableAssignment[];
17
+ /** Predefined tool call sound type to play during tool execution. If not specified, no tool call sound will be played. */
18
+ toolCallSound?: ElevenLabs.ToolCallSoundType;
19
+ /** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
20
+ toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
17
21
  /** Schema for any parameters to pass to the client */
18
22
  parameters?: ElevenLabs.ObjectJsonSchemaPropertyOutput;
19
23
  /** If true, calling this tool should block the conversation until the client responds with some response which is passed to the llm. If false then we will continue the conversation without waiting for the client to respond, this is useful to show content to a user but not block the conversation */
@@ -1,3 +1,4 @@
1
+ import * as ElevenLabs from "../index";
1
2
  export interface CreateTwilioPhoneNumberRequest {
2
3
  /** Phone number */
3
4
  phoneNumber: string;
@@ -11,4 +12,6 @@ export interface CreateTwilioPhoneNumberRequest {
11
12
  sid: string;
12
13
  /** Twilio Auth Token */
13
14
  token: string;
15
+ /** Twilio Additional Region Configuration */
16
+ regionConfig?: ElevenLabs.RegionConfigRequest;
14
17
  }
@@ -0,0 +1,5 @@
1
+ import * as ElevenLabs from "../index";
2
+ export interface GuardrailsV1Input {
3
+ version?: "1";
4
+ moderation?: ElevenLabs.ModerationGuardrailInput;
5
+ }
@@ -0,0 +1,5 @@
1
+ import * as ElevenLabs from "../index";
2
+ export interface GuardrailsV1Output {
3
+ version?: "1";
4
+ moderation?: ElevenLabs.ModerationGuardrailOutput;
5
+ }
@@ -18,6 +18,7 @@ export declare const Llm: {
18
18
  readonly Gemini25Flash: "gemini-2.5-flash";
19
19
  readonly ClaudeSonnet45: "claude-sonnet-4-5";
20
20
  readonly ClaudeSonnet4: "claude-sonnet-4";
21
+ readonly ClaudeHaiku45: "claude-haiku-4-5";
21
22
  readonly Claude37Sonnet: "claude-3-7-sonnet";
22
23
  readonly Claude35Sonnet: "claude-3-5-sonnet";
23
24
  readonly Claude35SonnetV1: "claude-3-5-sonnet-v1";
@@ -42,6 +43,7 @@ export declare const Llm: {
42
43
  readonly Gemini15Pro001: "gemini-1.5-pro-001";
43
44
  readonly ClaudeSonnet420250514: "claude-sonnet-4@20250514";
44
45
  readonly ClaudeSonnet4520250929: "claude-sonnet-4-5@20250929";
46
+ readonly ClaudeHaiku4520251001: "claude-haiku-4-5@20251001";
45
47
  readonly Claude37Sonnet20250219: "claude-3-7-sonnet@20250219";
46
48
  readonly Claude35Sonnet20240620: "claude-3-5-sonnet@20240620";
47
49
  readonly Claude35SonnetV220241022: "claude-3-5-sonnet-v2@20241022";
package/api/types/Llm.js CHANGED
@@ -22,6 +22,7 @@ exports.Llm = {
22
22
  Gemini25Flash: "gemini-2.5-flash",
23
23
  ClaudeSonnet45: "claude-sonnet-4-5",
24
24
  ClaudeSonnet4: "claude-sonnet-4",
25
+ ClaudeHaiku45: "claude-haiku-4-5",
25
26
  Claude37Sonnet: "claude-3-7-sonnet",
26
27
  Claude35Sonnet: "claude-3-5-sonnet",
27
28
  Claude35SonnetV1: "claude-3-5-sonnet-v1",
@@ -46,6 +47,7 @@ exports.Llm = {
46
47
  Gemini15Pro001: "gemini-1.5-pro-001",
47
48
  ClaudeSonnet420250514: "claude-sonnet-4@20250514",
48
49
  ClaudeSonnet4520250929: "claude-sonnet-4-5@20250929",
50
+ ClaudeHaiku4520251001: "claude-haiku-4-5@20251001",
49
51
  Claude37Sonnet20250219: "claude-3-7-sonnet@20250219",
50
52
  Claude35Sonnet20240620: "claude-3-5-sonnet@20240620",
51
53
  Claude35SonnetV220241022: "claude-3-5-sonnet-v2@20241022",
@@ -17,4 +17,6 @@ export interface McpServerConfigInput {
17
17
  forcePreToolSpeech?: boolean;
18
18
  /** If true, the user will not be able to interrupt the agent while tools from this MCP server are running */
19
19
  disableInterruptions?: boolean;
20
+ /** Determines when and how tools from this MCP server execute: 'immediate' executes the tool right away when requested by the LLM, 'post_tool_speech' waits for the agent to finish speaking before executing, 'async' runs the tool in the background without blocking - best for long-running operations. */
21
+ executionMode?: ElevenLabs.ToolExecutionMode;
20
22
  }
@@ -1,2 +1,2 @@
1
1
  import * as ElevenLabs from "../index";
2
- export type McpServerConfigInputRequestHeadersValue = string | ElevenLabs.ConvAiSecretLocator;
2
+ export type McpServerConfigInputRequestHeadersValue = string | ElevenLabs.ConvAiSecretLocator | ElevenLabs.ConvAiDynamicVariable;
@@ -17,4 +17,6 @@ export interface McpServerConfigOutput {
17
17
  forcePreToolSpeech?: boolean;
18
18
  /** If true, the user will not be able to interrupt the agent while tools from this MCP server are running */
19
19
  disableInterruptions?: boolean;
20
+ /** Determines when and how tools from this MCP server execute: 'immediate' executes the tool right away when requested by the LLM, 'post_tool_speech' waits for the agent to finish speaking before executing, 'async' runs the tool in the background without blocking - best for long-running operations. */
21
+ executionMode?: ElevenLabs.ToolExecutionMode;
20
22
  }
@@ -1,2 +1,2 @@
1
1
  import * as ElevenLabs from "../index";
2
- export type McpServerConfigOutputRequestHeadersValue = string | ElevenLabs.ConvAiSecretLocator;
2
+ export type McpServerConfigOutputRequestHeadersValue = string | ElevenLabs.ConvAiSecretLocator | ElevenLabs.ConvAiDynamicVariable;
@@ -1,5 +1,6 @@
1
1
  export declare const MetricType: {
2
2
  readonly Credits: "credits";
3
+ readonly TtsCharacters: "tts_characters";
3
4
  readonly MinutesUsed: "minutes_used";
4
5
  readonly RequestCount: "request_count";
5
6
  readonly TtfbAvg: "ttfb_avg";
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.MetricType = void 0;
5
5
  exports.MetricType = {
6
6
  Credits: "credits",
7
+ TtsCharacters: "tts_characters",
7
8
  MinutesUsed: "minutes_used",
8
9
  RequestCount: "request_count",
9
10
  TtfbAvg: "ttfb_avg",
@@ -0,0 +1,14 @@
1
+ import * as ElevenLabs from "../index";
2
+ export interface ModerationConfig {
3
+ sexual?: ElevenLabs.ThresholdGuardrail;
4
+ violence?: ElevenLabs.ThresholdGuardrail;
5
+ violenceGraphic?: ElevenLabs.ThresholdGuardrail;
6
+ harassment?: ElevenLabs.ThresholdGuardrail;
7
+ harassmentThreatening?: ElevenLabs.ThresholdGuardrail;
8
+ hate?: ElevenLabs.ThresholdGuardrail;
9
+ hateThreatening?: ElevenLabs.ThresholdGuardrail;
10
+ selfHarmInstructions?: ElevenLabs.ThresholdGuardrail;
11
+ selfHarm?: ElevenLabs.ThresholdGuardrail;
12
+ selfHarmIntent?: ElevenLabs.ThresholdGuardrail;
13
+ sexualMinors?: ElevenLabs.ThresholdGuardrail;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import * as ElevenLabs from "../index";
2
+ export interface ModerationGuardrailInput {
3
+ config?: ElevenLabs.ModerationConfig;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import * as ElevenLabs from "../index";
2
+ export interface ModerationGuardrailOutput {
3
+ config?: ElevenLabs.ModerationConfig;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,5 +6,5 @@ export interface ReferencedToolCommonModel {
6
6
  /** The ID of the tool */
7
7
  id: string;
8
8
  /** The type of the tool */
9
- type: ElevenLabs.ToolType;
9
+ type: ElevenLabs.ReferencedToolCommonModelType;
10
10
  }
@@ -0,0 +1,8 @@
1
+ /** The type of the tool */
2
+ export declare const ReferencedToolCommonModelType: {
3
+ readonly System: "system";
4
+ readonly Webhook: "webhook";
5
+ readonly Client: "client";
6
+ readonly Workflow: "workflow";
7
+ };
8
+ export type ReferencedToolCommonModelType = (typeof ReferencedToolCommonModelType)[keyof typeof ReferencedToolCommonModelType];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ReferencedToolCommonModelType = void 0;
5
+ /** The type of the tool */
6
+ exports.ReferencedToolCommonModelType = {
7
+ System: "system",
8
+ Webhook: "webhook",
9
+ Client: "client",
10
+ Workflow: "workflow",
11
+ };
@@ -0,0 +1,9 @@
1
+ import * as ElevenLabs from "../index";
2
+ export interface RegionConfigRequest {
3
+ /** Region ID */
4
+ regionId: ElevenLabs.TwilioRegionId;
5
+ /** Auth Token for this region */
6
+ token: string;
7
+ /** Edge location for this region */
8
+ edgeLocation: ElevenLabs.TwilioEdgeLocation;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface SingleUseTokenResponseModel {
2
+ /** A time bound single use token that expires after 15 minutes. Will be consumed on use. */
3
+ token: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type SingleUseTokenType = "realtime_scribe";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,7 +8,7 @@ export interface SongSection {
8
8
  negativeLocalStyles: string[];
9
9
  /** The duration of the section in milliseconds. Must be between 3000ms and 120000ms. */
10
10
  durationMs: number;
11
- /** The lyrics of the section. */
11
+ /** The lyrics of the section. Max 200 characters per line. */
12
12
  lines: string[];
13
13
  /** Optional source to extract the section from. Used for inpainting. Only available to enterprise clients with access to the inpainting API. */
14
14
  sourceFrom?: ElevenLabs.SectionSource;
@@ -0,0 +1,11 @@
1
+ import * as ElevenLabs from "../index";
2
+ export interface StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel {
3
+ /** Base64 encoded audio data */
4
+ audioBase64: string;
5
+ /** Timestamp information for each character in the original text */
6
+ alignment?: ElevenLabs.CharacterAlignmentResponseModel;
7
+ /** Timestamp information for each character in the normalized text */
8
+ normalizedAlignment?: ElevenLabs.CharacterAlignmentResponseModel;
9
+ /** Voice segments for the audio */
10
+ voiceSegments: ElevenLabs.VoiceSegment[];
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -14,5 +14,9 @@ export interface SystemToolConfigInput {
14
14
  forcePreToolSpeech?: boolean;
15
15
  /** Configuration for extracting values from tool responses and assigning them to dynamic variables */
16
16
  assignments?: ElevenLabs.DynamicVariableAssignment[];
17
+ /** Predefined tool call sound type to play during tool execution. If not specified, no tool call sound will be played. */
18
+ toolCallSound?: ElevenLabs.ToolCallSoundType;
19
+ /** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
20
+ toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
17
21
  params: ElevenLabs.SystemToolConfigInputParams;
18
22
  }
@@ -14,5 +14,9 @@ export interface SystemToolConfigOutput {
14
14
  forcePreToolSpeech?: boolean;
15
15
  /** Configuration for extracting values from tool responses and assigning them to dynamic variables */
16
16
  assignments?: ElevenLabs.DynamicVariableAssignment[];
17
+ /** Predefined tool call sound type to play during tool execution. If not specified, no tool call sound will be played. */
18
+ toolCallSound?: ElevenLabs.ToolCallSoundType;
19
+ /** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
20
+ toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
17
21
  params: ElevenLabs.SystemToolConfigOutputParams;
18
22
  }
@@ -0,0 +1,4 @@
1
+ export interface ThresholdGuardrail {
2
+ isEnabled?: boolean;
3
+ threshold?: number;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /** Determines how the tool call sound should be played. */
2
+ export declare const ToolCallSoundBehavior: {
3
+ readonly Auto: "auto";
4
+ readonly Always: "always";
5
+ };
6
+ export type ToolCallSoundBehavior = (typeof ToolCallSoundBehavior)[keyof typeof ToolCallSoundBehavior];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ToolCallSoundBehavior = void 0;
5
+ /** Determines how the tool call sound should be played. */
6
+ exports.ToolCallSoundBehavior = {
7
+ Auto: "auto",
8
+ Always: "always",
9
+ };
@@ -0,0 +1,9 @@
1
+ /** Predefined tool call sound types. */
2
+ export declare const ToolCallSoundType: {
3
+ readonly Typing: "typing";
4
+ readonly Elevator1: "elevator1";
5
+ readonly Elevator2: "elevator2";
6
+ readonly Elevator3: "elevator3";
7
+ readonly Elevator4: "elevator4";
8
+ };
9
+ export type ToolCallSoundType = (typeof ToolCallSoundType)[keyof typeof ToolCallSoundType];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ToolCallSoundType = void 0;
5
+ /** Predefined tool call sound types. */
6
+ exports.ToolCallSoundType = {
7
+ Typing: "typing",
8
+ Elevator1: "elevator1",
9
+ Elevator2: "elevator2",
10
+ Elevator3: "elevator3",
11
+ Elevator4: "elevator4",
12
+ };
@@ -2,15 +2,11 @@ import * as ElevenLabs from "../index";
2
2
  /**
3
3
  * Configuration for the tool
4
4
  */
5
- export type ToolRequestModelToolConfig = ElevenLabs.ToolRequestModelToolConfig.Client | ElevenLabs.ToolRequestModelToolConfig.Mcp | ElevenLabs.ToolRequestModelToolConfig.System | ElevenLabs.ToolRequestModelToolConfig.Webhook;
5
+ export type ToolRequestModelToolConfig = ElevenLabs.ToolRequestModelToolConfig.Client | ElevenLabs.ToolRequestModelToolConfig.System | ElevenLabs.ToolRequestModelToolConfig.Webhook;
6
6
  export declare namespace ToolRequestModelToolConfig {
7
7
  interface Client extends ElevenLabs.ClientToolConfigInput {
8
8
  type: "client";
9
9
  }
10
- interface Mcp {
11
- type: "mcp";
12
- value?: unknown;
13
- }
14
10
  interface System extends ElevenLabs.SystemToolConfigInput {
15
11
  type: "system";
16
12
  }
@@ -4,6 +4,6 @@ export interface TurnConfig {
4
4
  turnTimeout?: number;
5
5
  /** Maximum wait time since the user last spoke before terminating the call */
6
6
  silenceEndCallTimeout?: number;
7
- /** The mode of turn detection */
8
- mode?: ElevenLabs.TurnMode;
7
+ /** Controls how eager the agent is to respond. Low = less eager (waits longer), Standard = default eagerness, High = more eager (responds sooner) */
8
+ turnEagerness?: ElevenLabs.TurnEagerness;
9
9
  }
@@ -4,6 +4,6 @@ export interface TurnConfigWorkflowOverride {
4
4
  turnTimeout?: number;
5
5
  /** Maximum wait time since the user last spoke before terminating the call */
6
6
  silenceEndCallTimeout?: number;
7
- /** The mode of turn detection */
8
- mode?: ElevenLabs.TurnMode;
7
+ /** Controls how eager the agent is to respond. Low = less eager (waits longer), Standard = default eagerness, High = more eager (responds sooner) */
8
+ turnEagerness?: ElevenLabs.TurnEagerness;
9
9
  }
@@ -0,0 +1,7 @@
1
+ /** Agent's eagerness to respond. Higher values make agent wait for higher turn probability. */
2
+ export declare const TurnEagerness: {
3
+ readonly Patient: "patient";
4
+ readonly Normal: "normal";
5
+ readonly Eager: "eager";
6
+ };
7
+ export type TurnEagerness = (typeof TurnEagerness)[keyof typeof TurnEagerness];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.TurnEagerness = void 0;
5
+ /** Agent's eagerness to respond. Higher values make agent wait for higher turn probability. */
6
+ exports.TurnEagerness = {
7
+ Patient: "patient",
8
+ Normal: "normal",
9
+ Eager: "eager",
10
+ };