@elevenlabs/elevenlabs-js 2.9.0 → 2.10.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 (378) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +9 -4
  3. package/api/resources/conversationalAi/client/Client.d.ts +1 -1
  4. package/api/resources/conversationalAi/client/Client.js +1 -1
  5. package/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
  6. package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  7. package/api/resources/index.d.ts +3 -0
  8. package/api/resources/index.js +4 -1
  9. package/api/resources/music/client/Client.d.ts +48 -0
  10. package/api/resources/music/client/Client.js +212 -0
  11. package/api/resources/music/client/index.d.ts +2 -0
  12. package/api/resources/music/client/index.js +17 -0
  13. package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +20 -0
  14. package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +5 -0
  15. package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +20 -0
  16. package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +5 -0
  17. package/api/resources/music/client/requests/index.d.ts +2 -0
  18. package/api/resources/music/client/requests/index.js +2 -0
  19. package/api/resources/music/index.d.ts +3 -0
  20. package/api/resources/music/index.js +19 -0
  21. package/api/resources/music/resources/compositionPlan/client/Client.d.ts +48 -0
  22. package/api/resources/music/resources/compositionPlan/client/Client.js +137 -0
  23. package/api/resources/music/resources/compositionPlan/client/index.d.ts +2 -0
  24. package/api/resources/music/resources/compositionPlan/client/index.js +17 -0
  25. package/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +20 -0
  26. package/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.js +5 -0
  27. package/api/resources/music/resources/compositionPlan/client/requests/index.d.ts +1 -0
  28. package/api/resources/music/resources/compositionPlan/client/requests/index.js +2 -0
  29. package/api/resources/music/resources/compositionPlan/index.d.ts +1 -0
  30. package/api/resources/music/resources/compositionPlan/index.js +17 -0
  31. package/api/resources/music/resources/index.d.ts +2 -0
  32. package/api/resources/music/resources/index.js +41 -0
  33. package/api/resources/music/types/MusicComposeRequestOutputFormat.d.ts +28 -0
  34. package/api/resources/music/types/MusicComposeRequestOutputFormat.js +27 -0
  35. package/api/resources/music/types/MusicStreamRequestOutputFormat.d.ts +28 -0
  36. package/api/resources/music/types/MusicStreamRequestOutputFormat.js +27 -0
  37. package/api/resources/music/types/index.d.ts +2 -0
  38. package/api/resources/music/types/index.js +18 -0
  39. package/api/resources/speechToText/client/Client.d.ts +1 -1
  40. package/api/resources/speechToText/client/Client.js +7 -1
  41. package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
  42. package/api/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.d.ts +7 -0
  43. package/api/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.js +5 -0
  44. package/api/resources/speechToText/types/index.d.ts +1 -0
  45. package/api/resources/speechToText/types/index.js +1 -0
  46. package/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
  47. package/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
  48. package/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +1 -1
  49. package/api/resources/textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.d.ts +1 -1
  50. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.d.ts +1 -1
  51. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.d.ts +1 -1
  52. package/api/resources/textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.d.ts +1 -1
  53. package/api/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.d.ts +1 -1
  54. package/api/resources/usage/client/Client.js +4 -1
  55. package/api/resources/usage/client/requests/UsageGetRequest.d.ts +4 -0
  56. package/api/types/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +16 -0
  57. package/api/types/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +5 -0
  58. package/api/types/BreakdownTypes.d.ts +2 -1
  59. package/api/types/BreakdownTypes.js +1 -0
  60. package/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
  61. package/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
  62. package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +4 -1
  63. package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +15 -0
  64. package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +5 -0
  65. package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +15 -0
  66. package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +5 -0
  67. package/api/types/GetAgentResponseModel.d.ts +1 -0
  68. package/api/types/MetricType.d.ts +2 -1
  69. package/api/types/MetricType.js +1 -0
  70. package/api/types/MusicPrompt.d.ts +12 -0
  71. package/api/types/MusicPrompt.js +5 -0
  72. package/api/types/SongSection.d.ts +15 -0
  73. package/api/types/SongSection.js +5 -0
  74. package/api/types/ToolType.d.ts +2 -1
  75. package/api/types/ToolType.js +1 -0
  76. package/api/types/VoiceMailDetectionResultSuccessModel.d.ts +8 -0
  77. package/api/types/VoiceMailDetectionResultSuccessModel.js +5 -0
  78. package/api/types/WidgetConfigResponse.d.ts +2 -0
  79. package/api/types/WorkflowToolEdgeStepModel.d.ts +8 -0
  80. package/api/types/WorkflowToolEdgeStepModel.js +5 -0
  81. package/api/types/WorkflowToolMaxIterationsExceededStepModel.d.ts +7 -0
  82. package/api/types/WorkflowToolMaxIterationsExceededStepModel.js +5 -0
  83. package/api/types/WorkflowToolNestedToolsStepModelInput.d.ts +11 -0
  84. package/api/types/WorkflowToolNestedToolsStepModelInput.js +5 -0
  85. package/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +5 -0
  86. package/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +5 -0
  87. package/api/types/WorkflowToolNestedToolsStepModelOutput.d.ts +11 -0
  88. package/api/types/WorkflowToolNestedToolsStepModelOutput.js +5 -0
  89. package/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +5 -0
  90. package/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +5 -0
  91. package/api/types/WorkflowToolResponseModelInput.d.ts +11 -0
  92. package/api/types/WorkflowToolResponseModelInput.js +5 -0
  93. package/api/types/WorkflowToolResponseModelInputStepsItem.d.ts +16 -0
  94. package/api/types/WorkflowToolResponseModelInputStepsItem.js +5 -0
  95. package/api/types/WorkflowToolResponseModelOutput.d.ts +11 -0
  96. package/api/types/WorkflowToolResponseModelOutput.js +5 -0
  97. package/api/types/WorkflowToolResponseModelOutputStepsItem.d.ts +16 -0
  98. package/api/types/WorkflowToolResponseModelOutputStepsItem.js +5 -0
  99. package/api/types/index.d.ts +16 -0
  100. package/api/types/index.js +16 -0
  101. package/dist/Client.d.ts +3 -0
  102. package/dist/Client.js +9 -4
  103. package/dist/api/resources/conversationalAi/client/Client.d.ts +1 -1
  104. package/dist/api/resources/conversationalAi/client/Client.js +1 -1
  105. package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
  106. package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  107. package/dist/api/resources/index.d.ts +3 -0
  108. package/dist/api/resources/index.js +4 -1
  109. package/dist/api/resources/music/client/Client.d.ts +48 -0
  110. package/dist/api/resources/music/client/Client.js +212 -0
  111. package/dist/api/resources/music/client/index.d.ts +2 -0
  112. package/dist/api/resources/music/client/index.js +17 -0
  113. package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +20 -0
  114. package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +5 -0
  115. package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +20 -0
  116. package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +5 -0
  117. package/dist/api/resources/music/client/requests/index.d.ts +2 -0
  118. package/dist/api/resources/music/client/requests/index.js +2 -0
  119. package/dist/api/resources/music/index.d.ts +3 -0
  120. package/dist/api/resources/music/index.js +19 -0
  121. package/dist/api/resources/music/resources/compositionPlan/client/Client.d.ts +48 -0
  122. package/dist/api/resources/music/resources/compositionPlan/client/Client.js +137 -0
  123. package/dist/api/resources/music/resources/compositionPlan/client/index.d.ts +2 -0
  124. package/dist/api/resources/music/resources/compositionPlan/client/index.js +17 -0
  125. package/dist/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +20 -0
  126. package/dist/api/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.js +5 -0
  127. package/dist/api/resources/music/resources/compositionPlan/client/requests/index.d.ts +1 -0
  128. package/dist/api/resources/music/resources/compositionPlan/client/requests/index.js +2 -0
  129. package/dist/api/resources/music/resources/compositionPlan/index.d.ts +1 -0
  130. package/dist/api/resources/music/resources/compositionPlan/index.js +17 -0
  131. package/dist/api/resources/music/resources/index.d.ts +2 -0
  132. package/dist/api/resources/music/resources/index.js +41 -0
  133. package/dist/api/resources/music/types/MusicComposeRequestOutputFormat.d.ts +28 -0
  134. package/dist/api/resources/music/types/MusicComposeRequestOutputFormat.js +27 -0
  135. package/dist/api/resources/music/types/MusicStreamRequestOutputFormat.d.ts +28 -0
  136. package/dist/api/resources/music/types/MusicStreamRequestOutputFormat.js +27 -0
  137. package/dist/api/resources/music/types/index.d.ts +2 -0
  138. package/dist/api/resources/music/types/index.js +18 -0
  139. package/dist/api/resources/speechToText/client/Client.d.ts +1 -1
  140. package/dist/api/resources/speechToText/client/Client.js +7 -1
  141. package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
  142. package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.d.ts +7 -0
  143. package/dist/api/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.js +5 -0
  144. package/dist/api/resources/speechToText/types/index.d.ts +1 -0
  145. package/dist/api/resources/speechToText/types/index.js +1 -0
  146. package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
  147. package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
  148. package/dist/api/resources/textToSpeech/client/requests/TextToSpeechRequest.d.ts +1 -1
  149. package/dist/api/resources/textToSpeech/client/requests/TextToSpeechWithTimestampsRequest.d.ts +1 -1
  150. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.d.ts +1 -1
  151. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.d.ts +1 -1
  152. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.d.ts +1 -1
  153. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.d.ts +1 -1
  154. package/dist/api/resources/usage/client/Client.js +4 -1
  155. package/dist/api/resources/usage/client/requests/UsageGetRequest.d.ts +4 -0
  156. package/dist/api/types/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +16 -0
  157. package/dist/api/types/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +5 -0
  158. package/dist/api/types/BreakdownTypes.d.ts +2 -1
  159. package/dist/api/types/BreakdownTypes.js +1 -0
  160. package/dist/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
  161. package/dist/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
  162. package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +4 -1
  163. package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +15 -0
  164. package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +5 -0
  165. package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +15 -0
  166. package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +5 -0
  167. package/dist/api/types/GetAgentResponseModel.d.ts +1 -0
  168. package/dist/api/types/MetricType.d.ts +2 -1
  169. package/dist/api/types/MetricType.js +1 -0
  170. package/dist/api/types/MusicPrompt.d.ts +12 -0
  171. package/dist/api/types/MusicPrompt.js +5 -0
  172. package/dist/api/types/SongSection.d.ts +15 -0
  173. package/dist/api/types/SongSection.js +5 -0
  174. package/dist/api/types/ToolType.d.ts +2 -1
  175. package/dist/api/types/ToolType.js +1 -0
  176. package/dist/api/types/VoiceMailDetectionResultSuccessModel.d.ts +8 -0
  177. package/dist/api/types/VoiceMailDetectionResultSuccessModel.js +5 -0
  178. package/dist/api/types/WidgetConfigResponse.d.ts +2 -0
  179. package/dist/api/types/WorkflowToolEdgeStepModel.d.ts +8 -0
  180. package/dist/api/types/WorkflowToolEdgeStepModel.js +5 -0
  181. package/dist/api/types/WorkflowToolMaxIterationsExceededStepModel.d.ts +7 -0
  182. package/dist/api/types/WorkflowToolMaxIterationsExceededStepModel.js +5 -0
  183. package/dist/api/types/WorkflowToolNestedToolsStepModelInput.d.ts +11 -0
  184. package/dist/api/types/WorkflowToolNestedToolsStepModelInput.js +5 -0
  185. package/dist/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +5 -0
  186. package/dist/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +5 -0
  187. package/dist/api/types/WorkflowToolNestedToolsStepModelOutput.d.ts +11 -0
  188. package/dist/api/types/WorkflowToolNestedToolsStepModelOutput.js +5 -0
  189. package/dist/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +5 -0
  190. package/dist/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +5 -0
  191. package/dist/api/types/WorkflowToolResponseModelInput.d.ts +11 -0
  192. package/dist/api/types/WorkflowToolResponseModelInput.js +5 -0
  193. package/dist/api/types/WorkflowToolResponseModelInputStepsItem.d.ts +16 -0
  194. package/dist/api/types/WorkflowToolResponseModelInputStepsItem.js +5 -0
  195. package/dist/api/types/WorkflowToolResponseModelOutput.d.ts +11 -0
  196. package/dist/api/types/WorkflowToolResponseModelOutput.js +5 -0
  197. package/dist/api/types/WorkflowToolResponseModelOutputStepsItem.d.ts +16 -0
  198. package/dist/api/types/WorkflowToolResponseModelOutputStepsItem.js +5 -0
  199. package/dist/api/types/index.d.ts +16 -0
  200. package/dist/api/types/index.js +16 -0
  201. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
  202. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
  203. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  204. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
  205. package/dist/serialization/resources/index.d.ts +3 -0
  206. package/dist/serialization/resources/index.js +4 -1
  207. package/dist/serialization/resources/music/client/index.d.ts +1 -0
  208. package/dist/serialization/resources/music/client/index.js +17 -0
  209. package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +17 -0
  210. package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +48 -0
  211. package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +17 -0
  212. package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +48 -0
  213. package/dist/serialization/resources/music/client/requests/index.d.ts +2 -0
  214. package/dist/serialization/resources/music/client/requests/index.js +7 -0
  215. package/dist/serialization/resources/music/index.d.ts +3 -0
  216. package/dist/serialization/resources/music/index.js +19 -0
  217. package/dist/serialization/resources/music/resources/compositionPlan/client/index.d.ts +1 -0
  218. package/dist/serialization/resources/music/resources/compositionPlan/client/index.js +17 -0
  219. package/dist/serialization/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +16 -0
  220. package/dist/serialization/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.js +47 -0
  221. package/dist/serialization/resources/music/resources/compositionPlan/client/requests/index.d.ts +1 -0
  222. package/dist/serialization/resources/music/resources/compositionPlan/client/requests/index.js +5 -0
  223. package/dist/serialization/resources/music/resources/compositionPlan/index.d.ts +1 -0
  224. package/dist/serialization/resources/music/resources/compositionPlan/index.js +17 -0
  225. package/dist/serialization/resources/music/resources/index.d.ts +2 -0
  226. package/dist/serialization/resources/music/resources/index.js +41 -0
  227. package/dist/serialization/resources/music/types/MusicComposeRequestOutputFormat.d.ts +10 -0
  228. package/dist/serialization/resources/music/types/MusicComposeRequestOutputFormat.js +61 -0
  229. package/dist/serialization/resources/music/types/MusicStreamRequestOutputFormat.d.ts +10 -0
  230. package/dist/serialization/resources/music/types/MusicStreamRequestOutputFormat.js +61 -0
  231. package/dist/serialization/resources/music/types/index.d.ts +2 -0
  232. package/dist/serialization/resources/music/types/index.js +18 -0
  233. package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.d.ts +10 -0
  234. package/dist/serialization/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.js +44 -0
  235. package/dist/serialization/resources/speechToText/types/index.d.ts +1 -0
  236. package/dist/serialization/resources/speechToText/types/index.js +1 -0
  237. package/dist/serialization/types/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +17 -0
  238. package/dist/serialization/types/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +48 -0
  239. package/dist/serialization/types/BreakdownTypes.d.ts +1 -1
  240. package/dist/serialization/types/BreakdownTypes.js +1 -0
  241. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
  242. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.js +2 -0
  243. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
  244. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +2 -0
  245. package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +5 -1
  246. package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +2 -0
  247. package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +21 -0
  248. package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +53 -0
  249. package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +21 -0
  250. package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +53 -0
  251. package/dist/serialization/types/GetAgentResponseModel.d.ts +1 -0
  252. package/dist/serialization/types/GetAgentResponseModel.js +1 -0
  253. package/dist/serialization/types/MetricType.d.ts +1 -1
  254. package/dist/serialization/types/MetricType.js +1 -0
  255. package/dist/serialization/types/MusicPrompt.d.ts +15 -0
  256. package/dist/serialization/types/MusicPrompt.js +46 -0
  257. package/dist/serialization/types/SongSection.d.ts +16 -0
  258. package/dist/serialization/types/SongSection.js +47 -0
  259. package/dist/serialization/types/ToolType.d.ts +1 -1
  260. package/dist/serialization/types/ToolType.js +1 -1
  261. package/dist/serialization/types/VoiceMailDetectionResultSuccessModel.d.ts +14 -0
  262. package/dist/serialization/types/VoiceMailDetectionResultSuccessModel.js +45 -0
  263. package/dist/serialization/types/WidgetConfigResponse.d.ts +1 -0
  264. package/dist/serialization/types/WidgetConfigResponse.js +1 -0
  265. package/dist/serialization/types/WorkflowToolEdgeStepModel.d.ts +14 -0
  266. package/dist/serialization/types/WorkflowToolEdgeStepModel.js +45 -0
  267. package/dist/serialization/types/WorkflowToolMaxIterationsExceededStepModel.d.ts +13 -0
  268. package/dist/serialization/types/WorkflowToolMaxIterationsExceededStepModel.js +44 -0
  269. package/dist/serialization/types/WorkflowToolNestedToolsStepModelInput.d.ts +17 -0
  270. package/dist/serialization/types/WorkflowToolNestedToolsStepModelInput.js +49 -0
  271. package/dist/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +12 -0
  272. package/dist/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +48 -0
  273. package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutput.d.ts +17 -0
  274. package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutput.js +49 -0
  275. package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +12 -0
  276. package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +48 -0
  277. package/dist/serialization/types/WorkflowToolResponseModelInput.d.ts +14 -0
  278. package/dist/serialization/types/WorkflowToolResponseModelInput.js +48 -0
  279. package/dist/serialization/types/WorkflowToolResponseModelInputStepsItem.d.ts +21 -0
  280. package/dist/serialization/types/WorkflowToolResponseModelInputStepsItem.js +53 -0
  281. package/dist/serialization/types/WorkflowToolResponseModelOutput.d.ts +14 -0
  282. package/dist/serialization/types/WorkflowToolResponseModelOutput.js +48 -0
  283. package/dist/serialization/types/WorkflowToolResponseModelOutputStepsItem.d.ts +21 -0
  284. package/dist/serialization/types/WorkflowToolResponseModelOutputStepsItem.js +53 -0
  285. package/dist/serialization/types/index.d.ts +16 -0
  286. package/dist/serialization/types/index.js +16 -0
  287. package/dist/version.d.ts +1 -1
  288. package/dist/version.js +1 -1
  289. package/package.json +1 -1
  290. package/reference.md +71 -2
  291. package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
  292. package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
  293. package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  294. package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
  295. package/serialization/resources/index.d.ts +3 -0
  296. package/serialization/resources/index.js +4 -1
  297. package/serialization/resources/music/client/index.d.ts +1 -0
  298. package/serialization/resources/music/client/index.js +17 -0
  299. package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +17 -0
  300. package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +48 -0
  301. package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +17 -0
  302. package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +48 -0
  303. package/serialization/resources/music/client/requests/index.d.ts +2 -0
  304. package/serialization/resources/music/client/requests/index.js +7 -0
  305. package/serialization/resources/music/index.d.ts +3 -0
  306. package/serialization/resources/music/index.js +19 -0
  307. package/serialization/resources/music/resources/compositionPlan/client/index.d.ts +1 -0
  308. package/serialization/resources/music/resources/compositionPlan/client/index.js +17 -0
  309. package/serialization/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.d.ts +16 -0
  310. package/serialization/resources/music/resources/compositionPlan/client/requests/BodyGenerateCompositionPlanV1MusicPlanPost.js +47 -0
  311. package/serialization/resources/music/resources/compositionPlan/client/requests/index.d.ts +1 -0
  312. package/serialization/resources/music/resources/compositionPlan/client/requests/index.js +5 -0
  313. package/serialization/resources/music/resources/compositionPlan/index.d.ts +1 -0
  314. package/serialization/resources/music/resources/compositionPlan/index.js +17 -0
  315. package/serialization/resources/music/resources/index.d.ts +2 -0
  316. package/serialization/resources/music/resources/index.js +41 -0
  317. package/serialization/resources/music/types/MusicComposeRequestOutputFormat.d.ts +10 -0
  318. package/serialization/resources/music/types/MusicComposeRequestOutputFormat.js +61 -0
  319. package/serialization/resources/music/types/MusicStreamRequestOutputFormat.d.ts +10 -0
  320. package/serialization/resources/music/types/MusicStreamRequestOutputFormat.js +61 -0
  321. package/serialization/resources/music/types/index.d.ts +2 -0
  322. package/serialization/resources/music/types/index.js +18 -0
  323. package/serialization/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.d.ts +10 -0
  324. package/serialization/resources/speechToText/types/SpeechToTextConvertRequestWebhookMetadata.js +44 -0
  325. package/serialization/resources/speechToText/types/index.d.ts +1 -0
  326. package/serialization/resources/speechToText/types/index.js +1 -0
  327. package/serialization/types/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +17 -0
  328. package/serialization/types/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +48 -0
  329. package/serialization/types/BreakdownTypes.d.ts +1 -1
  330. package/serialization/types/BreakdownTypes.js +1 -0
  331. package/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
  332. package/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.js +2 -0
  333. package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
  334. package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +2 -0
  335. package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +5 -1
  336. package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +2 -0
  337. package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +21 -0
  338. package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +53 -0
  339. package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +21 -0
  340. package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +53 -0
  341. package/serialization/types/GetAgentResponseModel.d.ts +1 -0
  342. package/serialization/types/GetAgentResponseModel.js +1 -0
  343. package/serialization/types/MetricType.d.ts +1 -1
  344. package/serialization/types/MetricType.js +1 -0
  345. package/serialization/types/MusicPrompt.d.ts +15 -0
  346. package/serialization/types/MusicPrompt.js +46 -0
  347. package/serialization/types/SongSection.d.ts +16 -0
  348. package/serialization/types/SongSection.js +47 -0
  349. package/serialization/types/ToolType.d.ts +1 -1
  350. package/serialization/types/ToolType.js +1 -1
  351. package/serialization/types/VoiceMailDetectionResultSuccessModel.d.ts +14 -0
  352. package/serialization/types/VoiceMailDetectionResultSuccessModel.js +45 -0
  353. package/serialization/types/WidgetConfigResponse.d.ts +1 -0
  354. package/serialization/types/WidgetConfigResponse.js +1 -0
  355. package/serialization/types/WorkflowToolEdgeStepModel.d.ts +14 -0
  356. package/serialization/types/WorkflowToolEdgeStepModel.js +45 -0
  357. package/serialization/types/WorkflowToolMaxIterationsExceededStepModel.d.ts +13 -0
  358. package/serialization/types/WorkflowToolMaxIterationsExceededStepModel.js +44 -0
  359. package/serialization/types/WorkflowToolNestedToolsStepModelInput.d.ts +17 -0
  360. package/serialization/types/WorkflowToolNestedToolsStepModelInput.js +49 -0
  361. package/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +12 -0
  362. package/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +48 -0
  363. package/serialization/types/WorkflowToolNestedToolsStepModelOutput.d.ts +17 -0
  364. package/serialization/types/WorkflowToolNestedToolsStepModelOutput.js +49 -0
  365. package/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +12 -0
  366. package/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +48 -0
  367. package/serialization/types/WorkflowToolResponseModelInput.d.ts +14 -0
  368. package/serialization/types/WorkflowToolResponseModelInput.js +48 -0
  369. package/serialization/types/WorkflowToolResponseModelInputStepsItem.d.ts +21 -0
  370. package/serialization/types/WorkflowToolResponseModelInputStepsItem.js +53 -0
  371. package/serialization/types/WorkflowToolResponseModelOutput.d.ts +14 -0
  372. package/serialization/types/WorkflowToolResponseModelOutput.js +48 -0
  373. package/serialization/types/WorkflowToolResponseModelOutputStepsItem.d.ts +21 -0
  374. package/serialization/types/WorkflowToolResponseModelOutputStepsItem.js +53 -0
  375. package/serialization/types/index.d.ts +16 -0
  376. package/serialization/types/index.js +16 -0
  377. package/version.d.ts +1 -1
  378. package/version.js +1 -1
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * How to break down the information. Cannot be "user" or "api_key" if include_workspace_metrics is False.
6
6
  */
7
- export type BreakdownTypes = "none" | "voice" | "voice_multiplier" | "user" | "groups" | "api_keys" | "all_api_keys" | "product_type" | "model" | "resource" | "request_queue" | "region" | "subresource_id" | "reporting_workspace_id";
7
+ export type BreakdownTypes = "none" | "voice" | "voice_multiplier" | "user" | "groups" | "api_keys" | "all_api_keys" | "product_type" | "model" | "resource" | "request_queue" | "region" | "subresource_id" | "reporting_workspace_id" | "has_api_key";
8
8
  export declare const BreakdownTypes: {
9
9
  readonly None: "none";
10
10
  readonly Voice: "voice";
@@ -20,4 +20,5 @@ export declare const BreakdownTypes: {
20
20
  readonly Region: "region";
21
21
  readonly SubresourceId: "subresource_id";
22
22
  readonly ReportingWorkspaceId: "reporting_workspace_id";
23
+ readonly HasApiKey: "has_api_key";
23
24
  };
@@ -19,4 +19,5 @@ exports.BreakdownTypes = {
19
19
  Region: "region",
20
20
  SubresourceId: "subresource_id",
21
21
  ReportingWorkspaceId: "reporting_workspace_id",
22
+ HasApiKey: "has_api_key",
22
23
  };
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as ElevenLabs from "../index";
5
- export type ConversationHistoryTranscriptCommonModelInputToolResultsItem = ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel;
5
+ export type ConversationHistoryTranscriptCommonModelInputToolResultsItem = ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel | ElevenLabs.ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as ElevenLabs from "../index";
5
- export type ConversationHistoryTranscriptCommonModelOutputToolResultsItem = ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel;
5
+ export type ConversationHistoryTranscriptCommonModelOutputToolResultsItem = ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel | ElevenLabs.ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput;
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as ElevenLabs from "../index";
5
- export type ConversationHistoryTranscriptSystemToolResultCommonModelResult = ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.EndCallSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.LanguageDetectionSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.SkipTurnSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberSipSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberTwilioSuccess;
5
+ export type ConversationHistoryTranscriptSystemToolResultCommonModelResult = ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.EndCallSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.LanguageDetectionSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.PlayDtmfSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.SkipTurnSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToAgentSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberError | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberSipSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.TransferToNumberTwilioSuccess | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModelResult.VoicemailDetectionSuccess;
6
6
  export declare namespace ConversationHistoryTranscriptSystemToolResultCommonModelResult {
7
7
  interface EndCallSuccess extends ElevenLabs.EndCallToolResultModel {
8
8
  resultType: "end_call_success";
@@ -34,4 +34,7 @@ export declare namespace ConversationHistoryTranscriptSystemToolResultCommonMode
34
34
  interface TransferToNumberTwilioSuccess extends ElevenLabs.TransferToNumberResultTwilioSuccessModel {
35
35
  resultType: "transfer_to_number_twilio_success";
36
36
  }
37
+ interface VoicemailDetectionSuccess extends ElevenLabs.VoiceMailDetectionResultSuccessModel {
38
+ resultType: "voicemail_detection_success";
39
+ }
37
40
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput {
6
+ requestId: string;
7
+ toolName: string;
8
+ resultValue: string;
9
+ isError: boolean;
10
+ toolHasBeenCalled: boolean;
11
+ toolLatencySecs?: number;
12
+ dynamicVariableUpdates?: ElevenLabs.DynamicVariableUpdateCommonModel[];
13
+ type: "workflow";
14
+ result?: ElevenLabs.WorkflowToolResponseModelInput;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput {
6
+ requestId: string;
7
+ toolName: string;
8
+ resultValue: string;
9
+ isError: boolean;
10
+ toolHasBeenCalled: boolean;
11
+ toolLatencySecs?: number;
12
+ dynamicVariableUpdates?: ElevenLabs.DynamicVariableUpdateCommonModel[];
13
+ type: "workflow";
14
+ result?: ElevenLabs.WorkflowToolResponseModelOutput;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,6 +15,7 @@ export interface GetAgentResponseModel {
15
15
  platformSettings?: ElevenLabs.AgentPlatformSettingsResponseModel;
16
16
  /** The phone numbers of the agent */
17
17
  phoneNumbers?: ElevenLabs.GetAgentResponseModelPhoneNumbersItem[];
18
+ workflow?: unknown;
18
19
  /** The access information of the agent for the user */
19
20
  accessInfo?: ElevenLabs.ResourceAccessInfo;
20
21
  /** Agent tags used to categorize the agent */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type MetricType = "credits" | "minutes_used" | "request_count" | "ttfb_avg" | "ttfb_p95" | "fiat_units_spent" | "concurrency";
4
+ export type MetricType = "credits" | "minutes_used" | "request_count" | "ttfb_avg" | "ttfb_p95" | "fiat_units_spent" | "concurrency" | "concurrency_average";
5
5
  export declare const MetricType: {
6
6
  readonly Credits: "credits";
7
7
  readonly MinutesUsed: "minutes_used";
@@ -10,4 +10,5 @@ export declare const MetricType: {
10
10
  readonly TtfbP95: "ttfb_p95";
11
11
  readonly FiatUnitsSpent: "fiat_units_spent";
12
12
  readonly Concurrency: "concurrency";
13
+ readonly ConcurrencyAverage: "concurrency_average";
13
14
  };
@@ -12,4 +12,5 @@ exports.MetricType = {
12
12
  TtfbP95: "ttfb_p95",
13
13
  FiatUnitsSpent: "fiat_units_spent",
14
14
  Concurrency: "concurrency",
15
+ ConcurrencyAverage: "concurrency_average",
15
16
  };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface MusicPrompt {
6
+ /** The styles that should be present in the entire song. */
7
+ positiveGlobalStyles: string[];
8
+ /** The styles that should not be present in the entire song. */
9
+ negativeGlobalStyles: string[];
10
+ /** The sections of the song. */
11
+ sections: ElevenLabs.SongSection[];
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface SongSection {
5
+ /** The name of the section. Must be between 1 and 100 characters. */
6
+ sectionName: string;
7
+ /** The styles that should be present in this section. */
8
+ positiveLocalStyles: string[];
9
+ /** The styles that should not be present in this section. */
10
+ negativeLocalStyles: string[];
11
+ /** The duration of the section in milliseconds. Must be between 3000ms and 120000ms. */
12
+ durationMs: number;
13
+ /** The lyrics of the section. */
14
+ lines: string[];
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ToolType = "system" | "webhook" | "client" | "mcp";
4
+ export type ToolType = "system" | "webhook" | "client" | "mcp" | "workflow";
5
5
  export declare const ToolType: {
6
6
  readonly System: "system";
7
7
  readonly Webhook: "webhook";
8
8
  readonly Client: "client";
9
9
  readonly Mcp: "mcp";
10
+ readonly Workflow: "workflow";
10
11
  };
@@ -9,4 +9,5 @@ exports.ToolType = {
9
9
  Webhook: "webhook",
10
10
  Client: "client",
11
11
  Mcp: "mcp",
12
+ Workflow: "workflow",
12
13
  };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VoiceMailDetectionResultSuccessModel {
5
+ status?: "success";
6
+ voicemailMessage?: string;
7
+ reason?: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -80,4 +80,6 @@ export interface WidgetConfigResponse {
80
80
  /** Whether the agent can be switched to text-only mode */
81
81
  supportsTextOnly?: boolean;
82
82
  firstMessage?: string;
83
+ /** Whether to use WebRTC for conversation connections */
84
+ useRtc?: boolean;
83
85
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface WorkflowToolEdgeStepModel {
5
+ stepLatencySecs: number;
6
+ edgeId: string;
7
+ targetNodeId: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface WorkflowToolMaxIterationsExceededStepModel {
5
+ stepLatencySecs: number;
6
+ maxIterations: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface WorkflowToolNestedToolsStepModelInput {
6
+ stepLatencySecs: number;
7
+ nodeId: string;
8
+ requests: ElevenLabs.ConversationHistoryTranscriptToolCallCommonModel[];
9
+ results: ElevenLabs.WorkflowToolNestedToolsStepModelInputResultsItem[];
10
+ isSuccessful: boolean;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export type WorkflowToolNestedToolsStepModelInputResultsItem = ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel | ElevenLabs.ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface WorkflowToolNestedToolsStepModelOutput {
6
+ stepLatencySecs: number;
7
+ nodeId: string;
8
+ requests: ElevenLabs.ConversationHistoryTranscriptToolCallCommonModel[];
9
+ results: ElevenLabs.WorkflowToolNestedToolsStepModelOutputResultsItem[];
10
+ isSuccessful: boolean;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export type WorkflowToolNestedToolsStepModelOutputResultsItem = ElevenLabs.ConversationHistoryTranscriptOtherToolsResultCommonModel | ElevenLabs.ConversationHistoryTranscriptSystemToolResultCommonModel | ElevenLabs.ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ /**
6
+ * A common model for workflow tool responses.
7
+ */
8
+ export interface WorkflowToolResponseModelInput {
9
+ finalTransfer?: ElevenLabs.TransferToAgentToolResultSuccessModel;
10
+ steps?: ElevenLabs.WorkflowToolResponseModelInputStepsItem[];
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export type WorkflowToolResponseModelInputStepsItem = ElevenLabs.WorkflowToolResponseModelInputStepsItem.Edge | ElevenLabs.WorkflowToolResponseModelInputStepsItem.MaxIterationsExceeded | ElevenLabs.WorkflowToolResponseModelInputStepsItem.NestedTools;
6
+ export declare namespace WorkflowToolResponseModelInputStepsItem {
7
+ interface Edge extends ElevenLabs.WorkflowToolEdgeStepModel {
8
+ type: "edge";
9
+ }
10
+ interface MaxIterationsExceeded extends ElevenLabs.WorkflowToolMaxIterationsExceededStepModel {
11
+ type: "max_iterations_exceeded";
12
+ }
13
+ interface NestedTools extends ElevenLabs.WorkflowToolNestedToolsStepModelInput {
14
+ type: "nested_tools";
15
+ }
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ /**
6
+ * A common model for workflow tool responses.
7
+ */
8
+ export interface WorkflowToolResponseModelOutput {
9
+ finalTransfer?: ElevenLabs.TransferToAgentToolResultSuccessModel;
10
+ steps?: ElevenLabs.WorkflowToolResponseModelOutputStepsItem[];
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export type WorkflowToolResponseModelOutputStepsItem = ElevenLabs.WorkflowToolResponseModelOutputStepsItem.Edge | ElevenLabs.WorkflowToolResponseModelOutputStepsItem.MaxIterationsExceeded | ElevenLabs.WorkflowToolResponseModelOutputStepsItem.NestedTools;
6
+ export declare namespace WorkflowToolResponseModelOutputStepsItem {
7
+ interface Edge extends ElevenLabs.WorkflowToolEdgeStepModel {
8
+ type: "edge";
9
+ }
10
+ interface MaxIterationsExceeded extends ElevenLabs.WorkflowToolMaxIterationsExceededStepModel {
11
+ type: "max_iterations_exceeded";
12
+ }
13
+ interface NestedTools extends ElevenLabs.WorkflowToolNestedToolsStepModelOutput {
14
+ type: "nested_tools";
15
+ }
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -45,6 +45,7 @@ export * from "./BatchCallDetailedResponse";
45
45
  export * from "./BatchCallRecipientStatus";
46
46
  export * from "./BatchCallResponse";
47
47
  export * from "./BatchCallStatus";
48
+ export * from "./BodyComposeMusicWithADetailedResponseV1MusicDetailedPost";
48
49
  export * from "./CreatePreviouslyGeneratedVoiceRequest";
49
50
  export * from "./BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender";
50
51
  export * from "./BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge";
@@ -137,6 +138,8 @@ export * from "./ConversationHistoryTranscriptToolCallCommonModelToolDetails";
137
138
  export * from "./ConversationHistoryTranscriptToolCallCommonModel";
138
139
  export * from "./ConversationHistoryTranscriptToolCallMcpDetails";
139
140
  export * from "./ConversationHistoryTranscriptToolCallWebhookDetails";
141
+ export * from "./ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput";
142
+ export * from "./ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput";
140
143
  export * from "./ConversationHistoryTwilioPhoneCallModelDirection";
141
144
  export * from "./ConversationHistoryTwilioPhoneCallModel";
142
145
  export * from "./ConversationInitiationClientDataConfigInput";
@@ -333,6 +336,7 @@ export * from "./ModerationStatusResponseModelSafetyStatus";
333
336
  export * from "./ModerationStatusResponseModelWarningStatus";
334
337
  export * from "./ModerationStatusResponseModel";
335
338
  export * from "./MultichannelSpeechToTextResponseModel";
339
+ export * from "./MusicPrompt";
336
340
  export * from "./ObjectJsonSchemaPropertyInputPropertiesValue";
337
341
  export * from "./ObjectJsonSchemaPropertyInput";
338
342
  export * from "./ObjectJsonSchemaPropertyOutputPropertiesValue";
@@ -439,6 +443,7 @@ export * from "./SimilarVoice";
439
443
  export * from "./SimilarVoicesForSpeakerResponse";
440
444
  export * from "./SkipTurnToolConfig";
441
445
  export * from "./SkipTurnToolResponseModel";
446
+ export * from "./SongSection";
442
447
  export * from "./SpeakerAudioResponseModel";
443
448
  export * from "./SpeakerResponseModel";
444
449
  export * from "./SpeakerSegment";
@@ -518,6 +523,7 @@ export * from "./VerifiedVoiceLanguageResponseModel";
518
523
  export * from "./VerifyPvcVoiceCaptchaResponseModel";
519
524
  export * from "./VoiceGenerationParameterOptionResponse";
520
525
  export * from "./VoiceGenerationParameterResponse";
526
+ export * from "./VoiceMailDetectionResultSuccessModel";
521
527
  export * from "./VoicePreviewResponseModel";
522
528
  export * from "./VoiceDesignPreviewResponse";
523
529
  export * from "./VoiceResponseModelCategory";
@@ -555,6 +561,16 @@ export * from "./WidgetLanguagePresetResponse";
555
561
  export * from "./WidgetPlacement";
556
562
  export * from "./WidgetStyles";
557
563
  export * from "./WidgetTextContents";
564
+ export * from "./WorkflowToolEdgeStepModel";
565
+ export * from "./WorkflowToolMaxIterationsExceededStepModel";
566
+ export * from "./WorkflowToolNestedToolsStepModelInputResultsItem";
567
+ export * from "./WorkflowToolNestedToolsStepModelInput";
568
+ export * from "./WorkflowToolNestedToolsStepModelOutputResultsItem";
569
+ export * from "./WorkflowToolNestedToolsStepModelOutput";
570
+ export * from "./WorkflowToolResponseModelInputStepsItem";
571
+ export * from "./WorkflowToolResponseModelInput";
572
+ export * from "./WorkflowToolResponseModelOutputStepsItem";
573
+ export * from "./WorkflowToolResponseModelOutput";
558
574
  export * from "./WorkspaceApiKeyListResponseModel";
559
575
  export * from "./WorkspaceApiKeyResponseModelPermissionsItem";
560
576
  export * from "./WorkspaceApiKeyResponseModel";
@@ -61,6 +61,7 @@ __exportStar(require("./BatchCallDetailedResponse"), exports);
61
61
  __exportStar(require("./BatchCallRecipientStatus"), exports);
62
62
  __exportStar(require("./BatchCallResponse"), exports);
63
63
  __exportStar(require("./BatchCallStatus"), exports);
64
+ __exportStar(require("./BodyComposeMusicWithADetailedResponseV1MusicDetailedPost"), exports);
64
65
  __exportStar(require("./CreatePreviouslyGeneratedVoiceRequest"), exports);
65
66
  __exportStar(require("./BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender"), exports);
66
67
  __exportStar(require("./BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge"), exports);
@@ -153,6 +154,8 @@ __exportStar(require("./ConversationHistoryTranscriptToolCallCommonModelToolDeta
153
154
  __exportStar(require("./ConversationHistoryTranscriptToolCallCommonModel"), exports);
154
155
  __exportStar(require("./ConversationHistoryTranscriptToolCallMcpDetails"), exports);
155
156
  __exportStar(require("./ConversationHistoryTranscriptToolCallWebhookDetails"), exports);
157
+ __exportStar(require("./ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput"), exports);
158
+ __exportStar(require("./ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput"), exports);
156
159
  __exportStar(require("./ConversationHistoryTwilioPhoneCallModelDirection"), exports);
157
160
  __exportStar(require("./ConversationHistoryTwilioPhoneCallModel"), exports);
158
161
  __exportStar(require("./ConversationInitiationClientDataConfigInput"), exports);
@@ -349,6 +352,7 @@ __exportStar(require("./ModerationStatusResponseModelSafetyStatus"), exports);
349
352
  __exportStar(require("./ModerationStatusResponseModelWarningStatus"), exports);
350
353
  __exportStar(require("./ModerationStatusResponseModel"), exports);
351
354
  __exportStar(require("./MultichannelSpeechToTextResponseModel"), exports);
355
+ __exportStar(require("./MusicPrompt"), exports);
352
356
  __exportStar(require("./ObjectJsonSchemaPropertyInputPropertiesValue"), exports);
353
357
  __exportStar(require("./ObjectJsonSchemaPropertyInput"), exports);
354
358
  __exportStar(require("./ObjectJsonSchemaPropertyOutputPropertiesValue"), exports);
@@ -455,6 +459,7 @@ __exportStar(require("./SimilarVoice"), exports);
455
459
  __exportStar(require("./SimilarVoicesForSpeakerResponse"), exports);
456
460
  __exportStar(require("./SkipTurnToolConfig"), exports);
457
461
  __exportStar(require("./SkipTurnToolResponseModel"), exports);
462
+ __exportStar(require("./SongSection"), exports);
458
463
  __exportStar(require("./SpeakerAudioResponseModel"), exports);
459
464
  __exportStar(require("./SpeakerResponseModel"), exports);
460
465
  __exportStar(require("./SpeakerSegment"), exports);
@@ -534,6 +539,7 @@ __exportStar(require("./VerifiedVoiceLanguageResponseModel"), exports);
534
539
  __exportStar(require("./VerifyPvcVoiceCaptchaResponseModel"), exports);
535
540
  __exportStar(require("./VoiceGenerationParameterOptionResponse"), exports);
536
541
  __exportStar(require("./VoiceGenerationParameterResponse"), exports);
542
+ __exportStar(require("./VoiceMailDetectionResultSuccessModel"), exports);
537
543
  __exportStar(require("./VoicePreviewResponseModel"), exports);
538
544
  __exportStar(require("./VoiceDesignPreviewResponse"), exports);
539
545
  __exportStar(require("./VoiceResponseModelCategory"), exports);
@@ -571,6 +577,16 @@ __exportStar(require("./WidgetLanguagePresetResponse"), exports);
571
577
  __exportStar(require("./WidgetPlacement"), exports);
572
578
  __exportStar(require("./WidgetStyles"), exports);
573
579
  __exportStar(require("./WidgetTextContents"), exports);
580
+ __exportStar(require("./WorkflowToolEdgeStepModel"), exports);
581
+ __exportStar(require("./WorkflowToolMaxIterationsExceededStepModel"), exports);
582
+ __exportStar(require("./WorkflowToolNestedToolsStepModelInputResultsItem"), exports);
583
+ __exportStar(require("./WorkflowToolNestedToolsStepModelInput"), exports);
584
+ __exportStar(require("./WorkflowToolNestedToolsStepModelOutputResultsItem"), exports);
585
+ __exportStar(require("./WorkflowToolNestedToolsStepModelOutput"), exports);
586
+ __exportStar(require("./WorkflowToolResponseModelInputStepsItem"), exports);
587
+ __exportStar(require("./WorkflowToolResponseModelInput"), exports);
588
+ __exportStar(require("./WorkflowToolResponseModelOutputStepsItem"), exports);
589
+ __exportStar(require("./WorkflowToolResponseModelOutput"), exports);
574
590
  __exportStar(require("./WorkspaceApiKeyListResponseModel"), exports);
575
591
  __exportStar(require("./WorkspaceApiKeyResponseModelPermissionsItem"), exports);
576
592
  __exportStar(require("./WorkspaceApiKeyResponseModel"), exports);
package/dist/Client.d.ts CHANGED
@@ -24,6 +24,7 @@ import { Webhooks } from "./api/resources/webhooks/client/Client";
24
24
  import { SpeechToText } from "./api/resources/speechToText/client/Client";
25
25
  import { ForcedAlignment } from "./api/resources/forcedAlignment/client/Client";
26
26
  import { ConversationalAi } from "./api/resources/conversationalAi/client/Client";
27
+ import { Music } from "./api/resources/music/client/Client";
27
28
  import { Workspace } from "./api/resources/workspace/client/Client";
28
29
  export declare namespace ElevenLabsClient {
29
30
  interface Options {
@@ -71,6 +72,7 @@ export declare class ElevenLabsClient {
71
72
  protected _speechToText: SpeechToText | undefined;
72
73
  protected _forcedAlignment: ForcedAlignment | undefined;
73
74
  protected _conversationalAi: ConversationalAi | undefined;
75
+ protected _music: Music | undefined;
74
76
  protected _workspace: Workspace | undefined;
75
77
  constructor(_options?: ElevenLabsClient.Options);
76
78
  get history(): History;
@@ -94,6 +96,7 @@ export declare class ElevenLabsClient {
94
96
  get speechToText(): SpeechToText;
95
97
  get forcedAlignment(): ForcedAlignment;
96
98
  get conversationalAi(): ConversationalAi;
99
+ get music(): Music;
97
100
  get workspace(): Workspace;
98
101
  /**
99
102
  * Add a generated voice to the voice library.
package/dist/Client.js CHANGED
@@ -71,15 +71,16 @@ const Client_18 = require("./api/resources/webhooks/client/Client");
71
71
  const Client_19 = require("./api/resources/speechToText/client/Client");
72
72
  const Client_20 = require("./api/resources/forcedAlignment/client/Client");
73
73
  const Client_21 = require("./api/resources/conversationalAi/client/Client");
74
- const Client_22 = require("./api/resources/workspace/client/Client");
74
+ const Client_22 = require("./api/resources/music/client/Client");
75
+ const Client_23 = require("./api/resources/workspace/client/Client");
75
76
  class ElevenLabsClient {
76
77
  constructor(_options = {}) {
77
78
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
78
79
  "xi-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
79
80
  "X-Fern-Language": "JavaScript",
80
81
  "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
81
- "X-Fern-SDK-Version": "v2.9.0",
82
- "User-Agent": "@elevenlabs/elevenlabs-js/v2.9.0",
82
+ "X-Fern-SDK-Version": "v2.10.0",
83
+ "User-Agent": "@elevenlabs/elevenlabs-js/v2.10.0",
83
84
  "X-Fern-Runtime": core.RUNTIME.type,
84
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
85
86
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -168,9 +169,13 @@ class ElevenLabsClient {
168
169
  var _a;
169
170
  return ((_a = this._conversationalAi) !== null && _a !== void 0 ? _a : (this._conversationalAi = new Client_21.ConversationalAi(this._options)));
170
171
  }
172
+ get music() {
173
+ var _a;
174
+ return ((_a = this._music) !== null && _a !== void 0 ? _a : (this._music = new Client_22.Music(this._options)));
175
+ }
171
176
  get workspace() {
172
177
  var _a;
173
- return ((_a = this._workspace) !== null && _a !== void 0 ? _a : (this._workspace = new Client_22.Workspace(this._options)));
178
+ return ((_a = this._workspace) !== null && _a !== void 0 ? _a : (this._workspace = new Client_23.Workspace(this._options)));
174
179
  }
175
180
  /**
176
181
  * Add a generated voice to the voice library.
@@ -70,7 +70,7 @@ export declare class ConversationalAi {
70
70
  get mcpServers(): McpServers;
71
71
  get dashboard(): Dashboard;
72
72
  /**
73
- * Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/conversational-ai/api-reference/agents/update-agent). </Note>
73
+ * Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/api-reference/agents/update). </Note>
74
74
  *
75
75
  * @param {ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost} request
76
76
  * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
@@ -122,7 +122,7 @@ class ConversationalAi {
122
122
  return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_13.Dashboard(this._options)));
123
123
  }
124
124
  /**
125
- * Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/conversational-ai/api-reference/agents/update-agent). </Note>
125
+ * Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/api-reference/agents/update). </Note>
126
126
  *
127
127
  * @param {ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost} request
128
128
  * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.