@elevenlabs/elevenlabs-js 2.30.0 → 2.31.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 (344) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
  3. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -1
  4. package/api/resources/conversationalAi/resources/conversations/client/Client.js +6 -2
  5. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +3 -1
  6. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +13 -0
  7. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +60 -0
  8. package/api/resources/dubbing/client/Client.d.ts +3 -0
  9. package/api/resources/dubbing/client/Client.js +5 -0
  10. package/api/resources/dubbing/resources/index.d.ts +2 -0
  11. package/api/resources/dubbing/resources/index.js +3 -1
  12. package/api/resources/dubbing/resources/transcript/client/Client.d.ts +2 -2
  13. package/api/resources/dubbing/resources/transcript/client/Client.js +2 -2
  14. package/api/resources/dubbing/resources/transcripts/client/Client.d.ts +28 -0
  15. package/api/resources/dubbing/resources/transcripts/client/Client.js +122 -0
  16. package/api/resources/dubbing/resources/transcripts/client/index.d.ts +1 -0
  17. package/api/resources/dubbing/resources/transcripts/client/index.js +2 -0
  18. package/api/resources/dubbing/resources/transcripts/index.d.ts +2 -0
  19. package/api/resources/dubbing/resources/transcripts/index.js +18 -0
  20. package/api/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.d.ts +7 -0
  21. package/api/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.js +10 -0
  22. package/api/resources/dubbing/resources/transcripts/types/index.d.ts +1 -0
  23. package/{dist/serialization/resources/textToSoundEffects → api/resources/dubbing/resources/transcripts}/types/index.js +1 -1
  24. package/api/resources/index.d.ts +0 -1
  25. package/api/resources/index.js +0 -1
  26. package/api/resources/music/client/Client.js +6 -4
  27. package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -1
  28. package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -1
  29. package/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +1 -1
  30. package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -1
  31. package/api/resources/music/types/index.d.ts +0 -4
  32. package/api/resources/music/types/index.js +0 -4
  33. package/api/resources/textToDialogue/client/Client.js +10 -4
  34. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
  35. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
  36. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
  37. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
  38. package/api/resources/textToDialogue/types/index.d.ts +0 -4
  39. package/api/resources/textToDialogue/types/index.js +0 -4
  40. package/api/resources/textToSoundEffects/client/Client.js +3 -1
  41. package/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -1
  42. package/api/resources/textToSoundEffects/index.d.ts +0 -1
  43. package/api/resources/textToSoundEffects/index.js +0 -1
  44. package/api/resources/textToVoice/client/Client.js +5 -3
  45. package/api/resources/textToVoice/client/requests/VoiceDesignRequest.d.ts +1 -1
  46. package/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -1
  47. package/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +1 -1
  48. package/api/resources/textToVoice/types/index.d.ts +0 -3
  49. package/api/resources/textToVoice/types/index.js +0 -3
  50. package/{dist/api/resources/music/types/MusicStreamRequestOutputFormat.d.ts → api/types/AllowedOutputFormats.d.ts} +2 -3
  51. package/{dist/api/resources/music/types/MusicStreamRequestOutputFormat.js → api/types/AllowedOutputFormats.js} +2 -3
  52. package/api/types/BatchCallDetailedResponse.d.ts +1 -0
  53. package/api/types/BatchCallResponse.d.ts +1 -0
  54. package/api/types/ConversationHistoryMetadataCommonModel.d.ts +0 -1
  55. package/api/types/ConversationInitiationSource.d.ts +1 -0
  56. package/api/types/ConversationInitiationSource.js +1 -0
  57. package/api/types/DubbingTranscript.d.ts +5 -0
  58. package/api/types/DubbingTranscriptsResponseModel.d.ts +7 -0
  59. package/api/types/DubbingTranscriptsResponseModelTranscriptFormat.d.ts +6 -0
  60. package/api/types/DubbingTranscriptsResponseModelTranscriptFormat.js +9 -0
  61. package/api/types/GetAgentResponseModel.d.ts +2 -0
  62. package/api/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -0
  63. package/api/types/KnowledgeBaseSourceFileUrlResponseModel.d.ts +4 -0
  64. package/api/types/ProjectVideoResponseModel.d.ts +1 -0
  65. package/api/types/index.d.ts +5 -3
  66. package/api/types/index.js +5 -3
  67. package/dist/BaseClient.js +2 -2
  68. package/dist/api/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
  69. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -1
  70. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +6 -2
  71. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +3 -1
  72. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +13 -0
  73. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +60 -0
  74. package/dist/api/resources/dubbing/client/Client.d.ts +3 -0
  75. package/dist/api/resources/dubbing/client/Client.js +5 -0
  76. package/dist/api/resources/dubbing/resources/index.d.ts +2 -0
  77. package/dist/api/resources/dubbing/resources/index.js +3 -1
  78. package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +2 -2
  79. package/dist/api/resources/dubbing/resources/transcript/client/Client.js +2 -2
  80. package/dist/api/resources/dubbing/resources/transcripts/client/Client.d.ts +28 -0
  81. package/dist/api/resources/dubbing/resources/transcripts/client/Client.js +122 -0
  82. package/dist/api/resources/dubbing/resources/transcripts/client/index.d.ts +1 -0
  83. package/dist/api/resources/dubbing/resources/transcripts/client/index.js +2 -0
  84. package/dist/api/resources/dubbing/resources/transcripts/index.d.ts +2 -0
  85. package/dist/api/resources/dubbing/resources/transcripts/index.js +18 -0
  86. package/dist/api/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.d.ts +7 -0
  87. package/dist/api/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.js +10 -0
  88. package/dist/api/resources/dubbing/resources/transcripts/types/index.d.ts +1 -0
  89. package/{api/resources/textToSoundEffects → dist/api/resources/dubbing/resources/transcripts}/types/index.js +1 -1
  90. package/dist/api/resources/index.d.ts +0 -1
  91. package/dist/api/resources/index.js +0 -1
  92. package/dist/api/resources/music/client/Client.js +6 -4
  93. package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -1
  94. package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -1
  95. package/dist/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +1 -1
  96. package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -1
  97. package/dist/api/resources/music/types/index.d.ts +0 -4
  98. package/dist/api/resources/music/types/index.js +0 -4
  99. package/dist/api/resources/textToDialogue/client/Client.js +10 -4
  100. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
  101. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
  102. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
  103. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
  104. package/dist/api/resources/textToDialogue/types/index.d.ts +0 -4
  105. package/dist/api/resources/textToDialogue/types/index.js +0 -4
  106. package/dist/api/resources/textToSoundEffects/client/Client.js +3 -1
  107. package/dist/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -1
  108. package/dist/api/resources/textToSoundEffects/index.d.ts +0 -1
  109. package/dist/api/resources/textToSoundEffects/index.js +0 -1
  110. package/dist/api/resources/textToVoice/client/Client.js +5 -3
  111. package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequest.d.ts +1 -1
  112. package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -1
  113. package/dist/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +1 -1
  114. package/dist/api/resources/textToVoice/types/index.d.ts +0 -3
  115. package/dist/api/resources/textToVoice/types/index.js +0 -3
  116. package/{api/resources/music/types/MusicStreamRequestOutputFormat.d.ts → dist/api/types/AllowedOutputFormats.d.ts} +2 -3
  117. package/{api/resources/music/types/MusicStreamRequestOutputFormat.js → dist/api/types/AllowedOutputFormats.js} +2 -3
  118. package/dist/api/types/BatchCallDetailedResponse.d.ts +1 -0
  119. package/dist/api/types/BatchCallResponse.d.ts +1 -0
  120. package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +0 -1
  121. package/dist/api/types/ConversationInitiationSource.d.ts +1 -0
  122. package/dist/api/types/ConversationInitiationSource.js +1 -0
  123. package/dist/api/types/DubbingTranscript.d.ts +5 -0
  124. package/dist/api/types/DubbingTranscriptsResponseModel.d.ts +7 -0
  125. package/dist/api/types/DubbingTranscriptsResponseModelTranscriptFormat.d.ts +6 -0
  126. package/dist/api/types/DubbingTranscriptsResponseModelTranscriptFormat.js +9 -0
  127. package/dist/api/types/GetAgentResponseModel.d.ts +2 -0
  128. package/dist/api/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -0
  129. package/dist/api/types/KnowledgeBaseSourceFileUrlResponseModel.d.ts +4 -0
  130. package/dist/api/types/ProjectVideoResponseModel.d.ts +1 -0
  131. package/dist/api/types/index.d.ts +5 -3
  132. package/dist/api/types/index.js +5 -3
  133. package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
  134. package/dist/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +1 -0
  135. package/dist/serialization/resources/dubbing/resources/index.d.ts +2 -0
  136. package/dist/serialization/resources/dubbing/resources/index.js +3 -1
  137. package/dist/serialization/resources/dubbing/resources/transcripts/index.d.ts +1 -0
  138. package/{serialization/resources/textToSoundEffects/types → dist/serialization/resources/dubbing/resources/transcripts}/index.js +1 -1
  139. package/dist/serialization/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.d.ts +7 -0
  140. package/dist/serialization/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.js +39 -0
  141. package/dist/serialization/resources/dubbing/resources/transcripts/types/index.d.ts +1 -0
  142. package/dist/{api/resources/textToSoundEffects → serialization/resources/dubbing/resources/transcripts}/types/index.js +1 -1
  143. package/dist/serialization/resources/index.d.ts +0 -1
  144. package/dist/serialization/resources/index.js +0 -1
  145. package/dist/serialization/resources/music/types/index.d.ts +0 -4
  146. package/dist/serialization/resources/music/types/index.js +0 -4
  147. package/dist/serialization/resources/textToDialogue/types/index.d.ts +0 -4
  148. package/dist/serialization/resources/textToDialogue/types/index.js +0 -4
  149. package/dist/serialization/resources/textToSoundEffects/index.d.ts +0 -1
  150. package/dist/serialization/resources/textToSoundEffects/index.js +0 -1
  151. package/dist/serialization/resources/textToVoice/types/index.d.ts +0 -3
  152. package/dist/serialization/resources/textToVoice/types/index.js +0 -3
  153. package/dist/serialization/types/AllowedOutputFormats.d.ts +7 -0
  154. package/{serialization/resources/music/types/MusicStreamRequestOutputFormat.js → dist/serialization/types/AllowedOutputFormats.js} +3 -3
  155. package/dist/serialization/types/BatchCallDetailedResponse.d.ts +1 -0
  156. package/dist/serialization/types/BatchCallDetailedResponse.js +1 -0
  157. package/dist/serialization/types/BatchCallResponse.d.ts +1 -0
  158. package/dist/serialization/types/BatchCallResponse.js +1 -0
  159. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +0 -2
  160. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +0 -2
  161. package/dist/serialization/types/ConversationInitiationSource.d.ts +1 -1
  162. package/dist/serialization/types/ConversationInitiationSource.js +1 -0
  163. package/dist/serialization/types/DubbingTranscript.d.ts +11 -0
  164. package/dist/serialization/types/DubbingTranscript.js +43 -0
  165. package/dist/serialization/types/DubbingTranscriptsResponseModel.d.ts +14 -0
  166. package/dist/serialization/types/DubbingTranscriptsResponseModel.js +46 -0
  167. package/dist/serialization/types/DubbingTranscriptsResponseModelTranscriptFormat.d.ts +7 -0
  168. package/dist/serialization/types/{DefaultConversationInitiationTrigger.js → DubbingTranscriptsResponseModelTranscriptFormat.js} +2 -2
  169. package/dist/serialization/types/GetAgentResponseModel.d.ts +2 -0
  170. package/dist/serialization/types/GetAgentResponseModel.js +2 -0
  171. package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -0
  172. package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.js +1 -0
  173. package/dist/serialization/types/KnowledgeBaseSourceFileUrlResponseModel.d.ts +9 -0
  174. package/dist/serialization/types/{ZendeskConversationInitiationTrigger.js → KnowledgeBaseSourceFileUrlResponseModel.js} +3 -3
  175. package/dist/serialization/types/ProjectVideoResponseModel.d.ts +1 -0
  176. package/dist/serialization/types/ProjectVideoResponseModel.js +1 -0
  177. package/dist/serialization/types/index.d.ts +5 -3
  178. package/dist/serialization/types/index.js +5 -3
  179. package/dist/version.d.ts +1 -1
  180. package/dist/version.js +1 -1
  181. package/package.json +1 -1
  182. package/reference.md +147 -3
  183. package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.d.ts +1 -0
  184. package/serialization/resources/conversationalAi/resources/batchCalls/client/requests/BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost.js +1 -0
  185. package/serialization/resources/dubbing/resources/index.d.ts +2 -0
  186. package/serialization/resources/dubbing/resources/index.js +3 -1
  187. package/serialization/resources/dubbing/resources/transcripts/index.d.ts +1 -0
  188. package/serialization/resources/dubbing/resources/transcripts/index.js +17 -0
  189. package/serialization/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.d.ts +7 -0
  190. package/serialization/resources/dubbing/resources/transcripts/types/TranscriptsGetRequestFormatType.js +39 -0
  191. package/serialization/resources/dubbing/resources/transcripts/types/index.d.ts +1 -0
  192. package/serialization/resources/dubbing/resources/transcripts/types/index.js +17 -0
  193. package/serialization/resources/index.d.ts +0 -1
  194. package/serialization/resources/index.js +0 -1
  195. package/serialization/resources/music/types/index.d.ts +0 -4
  196. package/serialization/resources/music/types/index.js +0 -4
  197. package/serialization/resources/textToDialogue/types/index.d.ts +0 -4
  198. package/serialization/resources/textToDialogue/types/index.js +0 -4
  199. package/serialization/resources/textToSoundEffects/index.d.ts +0 -1
  200. package/serialization/resources/textToSoundEffects/index.js +0 -1
  201. package/serialization/resources/textToVoice/types/index.d.ts +0 -3
  202. package/serialization/resources/textToVoice/types/index.js +0 -3
  203. package/serialization/types/AllowedOutputFormats.d.ts +7 -0
  204. package/{dist/serialization/resources/music/types/MusicStreamRequestOutputFormat.js → serialization/types/AllowedOutputFormats.js} +3 -3
  205. package/serialization/types/BatchCallDetailedResponse.d.ts +1 -0
  206. package/serialization/types/BatchCallDetailedResponse.js +1 -0
  207. package/serialization/types/BatchCallResponse.d.ts +1 -0
  208. package/serialization/types/BatchCallResponse.js +1 -0
  209. package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +0 -2
  210. package/serialization/types/ConversationHistoryMetadataCommonModel.js +0 -2
  211. package/serialization/types/ConversationInitiationSource.d.ts +1 -1
  212. package/serialization/types/ConversationInitiationSource.js +1 -0
  213. package/serialization/types/DubbingTranscript.d.ts +11 -0
  214. package/serialization/types/DubbingTranscript.js +43 -0
  215. package/serialization/types/DubbingTranscriptsResponseModel.d.ts +14 -0
  216. package/serialization/types/DubbingTranscriptsResponseModel.js +46 -0
  217. package/serialization/types/DubbingTranscriptsResponseModelTranscriptFormat.d.ts +7 -0
  218. package/serialization/types/{DefaultConversationInitiationTrigger.js → DubbingTranscriptsResponseModelTranscriptFormat.js} +2 -2
  219. package/serialization/types/GetAgentResponseModel.d.ts +2 -0
  220. package/serialization/types/GetAgentResponseModel.js +2 -0
  221. package/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -0
  222. package/serialization/types/GetKnowledgeBaseFileResponseModel.js +1 -0
  223. package/serialization/types/KnowledgeBaseSourceFileUrlResponseModel.d.ts +9 -0
  224. package/serialization/types/{ZendeskConversationInitiationTrigger.js → KnowledgeBaseSourceFileUrlResponseModel.js} +3 -3
  225. package/serialization/types/ProjectVideoResponseModel.d.ts +1 -0
  226. package/serialization/types/ProjectVideoResponseModel.js +1 -0
  227. package/serialization/types/index.d.ts +5 -3
  228. package/serialization/types/index.js +5 -3
  229. package/version.d.ts +1 -1
  230. package/version.js +1 -1
  231. package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +0 -25
  232. package/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +0 -28
  233. package/api/resources/music/types/MusicComposeRequestOutputFormat.d.ts +0 -25
  234. package/api/resources/music/types/MusicComposeRequestOutputFormat.js +0 -28
  235. package/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +0 -25
  236. package/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +0 -28
  237. package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +0 -25
  238. package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +0 -28
  239. package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +0 -25
  240. package/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +0 -28
  241. package/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +0 -25
  242. package/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +0 -28
  243. package/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +0 -25
  244. package/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +0 -28
  245. package/api/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.d.ts +0 -25
  246. package/api/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.js +0 -28
  247. package/api/resources/textToSoundEffects/types/index.d.ts +0 -1
  248. package/api/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.d.ts +0 -25
  249. package/api/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.js +0 -28
  250. package/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +0 -25
  251. package/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +0 -28
  252. package/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +0 -25
  253. package/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +0 -28
  254. package/api/types/ConversationHistoryMetadataCommonModelInitiationTrigger.d.ts +0 -10
  255. package/api/types/DefaultConversationInitiationTrigger.d.ts +0 -4
  256. package/api/types/ZendeskConversationInitiationTrigger.d.ts +0 -6
  257. package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +0 -25
  258. package/dist/api/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +0 -28
  259. package/dist/api/resources/music/types/MusicComposeRequestOutputFormat.d.ts +0 -25
  260. package/dist/api/resources/music/types/MusicComposeRequestOutputFormat.js +0 -28
  261. package/dist/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +0 -25
  262. package/dist/api/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +0 -28
  263. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +0 -25
  264. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +0 -28
  265. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +0 -25
  266. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +0 -28
  267. package/dist/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +0 -25
  268. package/dist/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +0 -28
  269. package/dist/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +0 -25
  270. package/dist/api/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +0 -28
  271. package/dist/api/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.d.ts +0 -25
  272. package/dist/api/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.js +0 -28
  273. package/dist/api/resources/textToSoundEffects/types/index.d.ts +0 -1
  274. package/dist/api/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.d.ts +0 -25
  275. package/dist/api/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.js +0 -28
  276. package/dist/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +0 -25
  277. package/dist/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +0 -28
  278. package/dist/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +0 -25
  279. package/dist/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +0 -28
  280. package/dist/api/types/ConversationHistoryMetadataCommonModelInitiationTrigger.d.ts +0 -10
  281. package/dist/api/types/DefaultConversationInitiationTrigger.d.ts +0 -4
  282. package/dist/api/types/ZendeskConversationInitiationTrigger.d.ts +0 -6
  283. package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +0 -7
  284. package/dist/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +0 -61
  285. package/dist/serialization/resources/music/types/MusicComposeRequestOutputFormat.d.ts +0 -7
  286. package/dist/serialization/resources/music/types/MusicComposeRequestOutputFormat.js +0 -61
  287. package/dist/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +0 -7
  288. package/dist/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +0 -61
  289. package/dist/serialization/resources/music/types/MusicStreamRequestOutputFormat.d.ts +0 -7
  290. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +0 -7
  291. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +0 -61
  292. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +0 -7
  293. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +0 -61
  294. package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +0 -7
  295. package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +0 -61
  296. package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +0 -7
  297. package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +0 -61
  298. package/dist/serialization/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.d.ts +0 -7
  299. package/dist/serialization/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.js +0 -61
  300. package/dist/serialization/resources/textToSoundEffects/types/index.d.ts +0 -1
  301. package/dist/serialization/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.d.ts +0 -7
  302. package/dist/serialization/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.js +0 -61
  303. package/dist/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +0 -7
  304. package/dist/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +0 -61
  305. package/dist/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +0 -7
  306. package/dist/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +0 -61
  307. package/dist/serialization/types/ConversationHistoryMetadataCommonModelInitiationTrigger.d.ts +0 -15
  308. package/dist/serialization/types/ConversationHistoryMetadataCommonModelInitiationTrigger.js +0 -49
  309. package/dist/serialization/types/DefaultConversationInitiationTrigger.d.ts +0 -7
  310. package/dist/serialization/types/ZendeskConversationInitiationTrigger.d.ts +0 -9
  311. package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.d.ts +0 -7
  312. package/serialization/resources/music/types/MusicComposeDetailedRequestOutputFormat.js +0 -61
  313. package/serialization/resources/music/types/MusicComposeRequestOutputFormat.d.ts +0 -7
  314. package/serialization/resources/music/types/MusicComposeRequestOutputFormat.js +0 -61
  315. package/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.d.ts +0 -7
  316. package/serialization/resources/music/types/MusicSeparateStemsRequestOutputFormat.js +0 -61
  317. package/serialization/resources/music/types/MusicStreamRequestOutputFormat.d.ts +0 -7
  318. package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +0 -7
  319. package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +0 -61
  320. package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.d.ts +0 -7
  321. package/serialization/resources/textToDialogue/types/TextToDialogueConvertWithTimestampsRequestOutputFormat.js +0 -61
  322. package/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +0 -7
  323. package/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +0 -61
  324. package/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.d.ts +0 -7
  325. package/serialization/resources/textToDialogue/types/TextToDialogueStreamWithTimestampsRequestOutputFormat.js +0 -61
  326. package/serialization/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.d.ts +0 -7
  327. package/serialization/resources/textToSoundEffects/types/TextToSoundEffectsConvertRequestOutputFormat.js +0 -61
  328. package/serialization/resources/textToSoundEffects/types/index.d.ts +0 -1
  329. package/serialization/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.d.ts +0 -7
  330. package/serialization/resources/textToVoice/types/TextToVoiceCreatePreviewsRequestOutputFormat.js +0 -61
  331. package/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +0 -7
  332. package/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +0 -61
  333. package/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +0 -7
  334. package/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +0 -61
  335. package/serialization/types/ConversationHistoryMetadataCommonModelInitiationTrigger.d.ts +0 -15
  336. package/serialization/types/ConversationHistoryMetadataCommonModelInitiationTrigger.js +0 -49
  337. package/serialization/types/DefaultConversationInitiationTrigger.d.ts +0 -7
  338. package/serialization/types/ZendeskConversationInitiationTrigger.d.ts +0 -9
  339. /package/api/types/{ConversationHistoryMetadataCommonModelInitiationTrigger.js → DubbingTranscript.js} +0 -0
  340. /package/api/types/{DefaultConversationInitiationTrigger.js → DubbingTranscriptsResponseModel.js} +0 -0
  341. /package/api/types/{ZendeskConversationInitiationTrigger.js → KnowledgeBaseSourceFileUrlResponseModel.js} +0 -0
  342. /package/dist/api/types/{ConversationHistoryMetadataCommonModelInitiationTrigger.js → DubbingTranscript.js} +0 -0
  343. /package/dist/api/types/{DefaultConversationInitiationTrigger.js → DubbingTranscriptsResponseModel.js} +0 -0
  344. /package/dist/api/types/{ZendeskConversationInitiationTrigger.js → KnowledgeBaseSourceFileUrlResponseModel.js} +0 -0
@@ -80,7 +80,9 @@ class TextToDialogueClient {
80
80
  const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
81
81
  const _queryParams = {};
82
82
  if (outputFormat != null) {
83
- _queryParams.output_format = serializers.TextToDialogueConvertRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
83
+ _queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
84
+ unrecognizedObjectKeys: "strip",
85
+ });
84
86
  }
85
87
  const _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);
86
88
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
@@ -136,7 +138,7 @@ class TextToDialogueClient {
136
138
  const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
137
139
  const _queryParams = {};
138
140
  if (outputFormat != null) {
139
- _queryParams.output_format = serializers.TextToDialogueStreamRequestOutputFormat.jsonOrThrow(outputFormat, {
141
+ _queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
140
142
  unrecognizedObjectKeys: "strip",
141
143
  });
142
144
  }
@@ -193,7 +195,9 @@ class TextToDialogueClient {
193
195
  const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
194
196
  const _queryParams = {};
195
197
  if (outputFormat != null) {
196
- _queryParams.output_format = serializers.TextToDialogueStreamWithTimestampsRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
198
+ _queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
199
+ unrecognizedObjectKeys: "strip",
200
+ });
197
201
  }
198
202
  const _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);
199
203
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
@@ -283,7 +287,9 @@ class TextToDialogueClient {
283
287
  const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
284
288
  const _queryParams = {};
285
289
  if (outputFormat != null) {
286
- _queryParams.output_format = serializers.TextToDialogueConvertWithTimestampsRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
290
+ _queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
291
+ unrecognizedObjectKeys: "strip",
292
+ });
287
293
  }
288
294
  const _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);
289
295
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
@@ -14,7 +14,7 @@ import type * as ElevenLabs from "../../../../index";
14
14
  */
15
15
  export interface BodyTextToDialogueFullWithTimestamps {
16
16
  /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
17
- outputFormat?: ElevenLabs.TextToDialogueConvertWithTimestampsRequestOutputFormat;
17
+ outputFormat?: ElevenLabs.AllowedOutputFormats;
18
18
  /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. */
19
19
  inputs: ElevenLabs.DialogueInput[];
20
20
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
@@ -13,7 +13,7 @@ import type * as ElevenLabs from "../../../../index";
13
13
  */
14
14
  export interface BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost {
15
15
  /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
16
- outputFormat?: ElevenLabs.TextToDialogueStreamRequestOutputFormat;
16
+ outputFormat?: ElevenLabs.AllowedOutputFormats;
17
17
  /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. */
18
18
  inputs: ElevenLabs.DialogueInput[];
19
19
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
@@ -13,7 +13,7 @@ import type * as ElevenLabs from "../../../../index";
13
13
  */
14
14
  export interface BodyTextToDialogueMultiVoiceV1TextToDialoguePost {
15
15
  /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
16
- outputFormat?: ElevenLabs.TextToDialogueConvertRequestOutputFormat;
16
+ outputFormat?: ElevenLabs.AllowedOutputFormats;
17
17
  /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. */
18
18
  inputs: ElevenLabs.DialogueInput[];
19
19
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
@@ -14,7 +14,7 @@ import type * as ElevenLabs from "../../../../index";
14
14
  */
15
15
  export interface BodyTextToDialogueStreamWithTimestamps {
16
16
  /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
17
- outputFormat?: ElevenLabs.TextToDialogueStreamWithTimestampsRequestOutputFormat;
17
+ outputFormat?: ElevenLabs.AllowedOutputFormats;
18
18
  /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. */
19
19
  inputs: ElevenLabs.DialogueInput[];
20
20
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
@@ -2,7 +2,3 @@ export * from "./BodyTextToDialogueFullWithTimestampsApplyTextNormalization";
2
2
  export * from "./BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization";
3
3
  export * from "./BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization";
4
4
  export * from "./BodyTextToDialogueStreamWithTimestampsApplyTextNormalization";
5
- export * from "./TextToDialogueConvertRequestOutputFormat";
6
- export * from "./TextToDialogueConvertWithTimestampsRequestOutputFormat";
7
- export * from "./TextToDialogueStreamRequestOutputFormat";
8
- export * from "./TextToDialogueStreamWithTimestampsRequestOutputFormat";
@@ -18,7 +18,3 @@ __exportStar(require("./BodyTextToDialogueFullWithTimestampsApplyTextNormalizati
18
18
  __exportStar(require("./BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization"), exports);
19
19
  __exportStar(require("./BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization"), exports);
20
20
  __exportStar(require("./BodyTextToDialogueStreamWithTimestampsApplyTextNormalization"), exports);
21
- __exportStar(require("./TextToDialogueConvertRequestOutputFormat"), exports);
22
- __exportStar(require("./TextToDialogueConvertWithTimestampsRequestOutputFormat"), exports);
23
- __exportStar(require("./TextToDialogueStreamRequestOutputFormat"), exports);
24
- __exportStar(require("./TextToDialogueStreamWithTimestampsRequestOutputFormat"), exports);
@@ -80,7 +80,9 @@ class TextToSoundEffectsClient {
80
80
  const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
81
81
  const _queryParams = {};
82
82
  if (outputFormat != null) {
83
- _queryParams.output_format = serializers.TextToSoundEffectsConvertRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
83
+ _queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
84
+ unrecognizedObjectKeys: "strip",
85
+ });
84
86
  }
85
87
  const _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);
86
88
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
@@ -7,7 +7,7 @@ import type * as ElevenLabs from "../../../../index";
7
7
  */
8
8
  export interface CreateSoundEffectRequest {
9
9
  /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
10
- outputFormat?: ElevenLabs.TextToSoundEffectsConvertRequestOutputFormat;
10
+ outputFormat?: ElevenLabs.AllowedOutputFormats;
11
11
  /** The text that will get converted into a sound effect. */
12
12
  text: string;
13
13
  /** Whether to create a sound effect that loops smoothly. Only available for the 'eleven_text_to_sound_v2 model'. */
@@ -1,2 +1 @@
1
1
  export * from "./client";
2
- export * from "./types";
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client"), exports);
18
- __exportStar(require("./types"), exports);
@@ -95,7 +95,9 @@ class TextToVoiceClient {
95
95
  const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
96
96
  const _queryParams = {};
97
97
  if (outputFormat != null) {
98
- _queryParams.output_format = serializers.TextToVoiceCreatePreviewsRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
98
+ _queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
99
+ unrecognizedObjectKeys: "strip",
100
+ });
99
101
  }
100
102
  const _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);
101
103
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
@@ -235,7 +237,7 @@ class TextToVoiceClient {
235
237
  const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
236
238
  const _queryParams = {};
237
239
  if (outputFormat != null) {
238
- _queryParams.output_format = serializers.TextToVoiceDesignRequestOutputFormat.jsonOrThrow(outputFormat, {
240
+ _queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
239
241
  unrecognizedObjectKeys: "strip",
240
242
  });
241
243
  }
@@ -309,7 +311,7 @@ class TextToVoiceClient {
309
311
  const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
310
312
  const _queryParams = {};
311
313
  if (outputFormat != null) {
312
- _queryParams.output_format = serializers.TextToVoiceRemixRequestOutputFormat.jsonOrThrow(outputFormat, {
314
+ _queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
313
315
  unrecognizedObjectKeys: "strip",
314
316
  });
315
317
  }
@@ -8,7 +8,7 @@ import type * as ElevenLabs from "../../../../index";
8
8
  */
9
9
  export interface VoiceDesignRequest {
10
10
  /** The output format of the generated audio. */
11
- outputFormat?: ElevenLabs.TextToVoiceCreatePreviewsRequestOutputFormat;
11
+ outputFormat?: ElevenLabs.AllowedOutputFormats;
12
12
  /** Description to use for the created voice. */
13
13
  voiceDescription: string;
14
14
  /** Text to generate, text length has to be between 100 and 1000. */
@@ -8,7 +8,7 @@ import type * as ElevenLabs from "../../../../index";
8
8
  */
9
9
  export interface VoiceDesignRequestModel {
10
10
  /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
11
- outputFormat?: ElevenLabs.TextToVoiceDesignRequestOutputFormat;
11
+ outputFormat?: ElevenLabs.AllowedOutputFormats;
12
12
  /** Description to use for the created voice. */
13
13
  voiceDescription: string;
14
14
  /** Model to use for the voice generation. Possible values: eleven_multilingual_ttv_v2, eleven_ttv_v3. */
@@ -8,7 +8,7 @@ import type * as ElevenLabs from "../../../../index";
8
8
  */
9
9
  export interface VoiceRemixRequestModel {
10
10
  /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
11
- outputFormat?: ElevenLabs.TextToVoiceRemixRequestOutputFormat;
11
+ outputFormat?: ElevenLabs.AllowedOutputFormats;
12
12
  /** Description of the changes to make to the voice. */
13
13
  voiceDescription: string;
14
14
  /** Text to generate, text length has to be between 100 and 1000. */
@@ -1,4 +1 @@
1
- export * from "./TextToVoiceCreatePreviewsRequestOutputFormat";
2
- export * from "./TextToVoiceDesignRequestOutputFormat";
3
- export * from "./TextToVoiceRemixRequestOutputFormat";
4
1
  export * from "./VoiceDesignRequestModelModelId";
@@ -14,7 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./TextToVoiceCreatePreviewsRequestOutputFormat"), exports);
18
- __exportStar(require("./TextToVoiceDesignRequestOutputFormat"), exports);
19
- __exportStar(require("./TextToVoiceRemixRequestOutputFormat"), exports);
20
17
  __exportStar(require("./VoiceDesignRequestModelModelId"), exports);
@@ -1,5 +1,4 @@
1
- /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
2
- export declare const MusicStreamRequestOutputFormat: {
1
+ export declare const AllowedOutputFormats: {
3
2
  readonly Mp32205032: "mp3_22050_32";
4
3
  readonly Mp32400048: "mp3_24000_48";
5
4
  readonly Mp34410032: "mp3_44100_32";
@@ -22,4 +21,4 @@ export declare const MusicStreamRequestOutputFormat: {
22
21
  readonly Opus48000128: "opus_48000_128";
23
22
  readonly Opus48000192: "opus_48000_192";
24
23
  };
25
- export type MusicStreamRequestOutputFormat = (typeof MusicStreamRequestOutputFormat)[keyof typeof MusicStreamRequestOutputFormat];
24
+ export type AllowedOutputFormats = (typeof AllowedOutputFormats)[keyof typeof AllowedOutputFormats];
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.MusicStreamRequestOutputFormat = void 0;
5
- /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
6
- exports.MusicStreamRequestOutputFormat = {
4
+ exports.AllowedOutputFormats = void 0;
5
+ exports.AllowedOutputFormats = {
7
6
  Mp32205032: "mp3_22050_32",
8
7
  Mp32400048: "mp3_24000_48",
9
8
  Mp34410032: "mp3_44100_32",
@@ -11,6 +11,7 @@ export interface BatchCallDetailedResponse {
11
11
  agentId: string;
12
12
  createdAtUnix: number;
13
13
  scheduledTimeUnix: number;
14
+ timezone?: string;
14
15
  totalCallsDispatched: number;
15
16
  totalCallsScheduled: number;
16
17
  totalCallsFinished: number;
@@ -8,6 +8,7 @@ export interface BatchCallResponse {
8
8
  agentId: string;
9
9
  createdAtUnix: number;
10
10
  scheduledTimeUnix: number;
11
+ timezone?: string;
11
12
  totalCallsDispatched: number;
12
13
  totalCallsScheduled: number;
13
14
  totalCallsFinished: number;
@@ -22,7 +22,6 @@ export interface ConversationHistoryMetadataCommonModel {
22
22
  conversationInitiationSource?: ElevenLabs.ConversationInitiationSource;
23
23
  conversationInitiationSourceVersion?: string;
24
24
  timezone?: string;
25
- initiationTrigger?: ElevenLabs.ConversationHistoryMetadataCommonModelInitiationTrigger;
26
25
  asyncMetadata?: ElevenLabs.AsyncConversationMetadata;
27
26
  whatsapp?: ElevenLabs.WhatsAppConversationInfo;
28
27
  agentCreatedFrom?: ElevenLabs.AgentDefinitionSource;
@@ -14,5 +14,6 @@ export declare const ConversationInitiationSource: {
14
14
  readonly SwiftSdk: "swift_sdk";
15
15
  readonly Whatsapp: "whatsapp";
16
16
  readonly FlutterSdk: "flutter_sdk";
17
+ readonly ZendeskIntegration: "zendesk_integration";
17
18
  };
18
19
  export type ConversationInitiationSource = (typeof ConversationInitiationSource)[keyof typeof ConversationInitiationSource];
@@ -18,4 +18,5 @@ exports.ConversationInitiationSource = {
18
18
  SwiftSdk: "swift_sdk",
19
19
  Whatsapp: "whatsapp",
20
20
  FlutterSdk: "flutter_sdk",
21
+ ZendeskIntegration: "zendesk_integration",
21
22
  };
@@ -0,0 +1,5 @@
1
+ import type * as ElevenLabs from "../index";
2
+ export interface DubbingTranscript {
3
+ language: string;
4
+ utterances: ElevenLabs.DubbingTranscriptUtterance[];
5
+ }
@@ -0,0 +1,7 @@
1
+ import type * as ElevenLabs from "../index";
2
+ export interface DubbingTranscriptsResponseModel {
3
+ transcriptFormat: ElevenLabs.DubbingTranscriptsResponseModelTranscriptFormat;
4
+ srt?: string;
5
+ webvtt?: string;
6
+ json?: ElevenLabs.DubbingTranscript;
7
+ }
@@ -0,0 +1,6 @@
1
+ export declare const DubbingTranscriptsResponseModelTranscriptFormat: {
2
+ readonly Srt: "srt";
3
+ readonly Webvtt: "webvtt";
4
+ readonly Json: "json";
5
+ };
6
+ export type DubbingTranscriptsResponseModelTranscriptFormat = (typeof DubbingTranscriptsResponseModelTranscriptFormat)[keyof typeof DubbingTranscriptsResponseModelTranscriptFormat];
@@ -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.DubbingTranscriptsResponseModelTranscriptFormat = void 0;
5
+ exports.DubbingTranscriptsResponseModelTranscriptFormat = {
6
+ Srt: "srt",
7
+ Webvtt: "webvtt",
8
+ Json: "json",
9
+ };
@@ -12,6 +12,8 @@ export interface GetAgentResponseModel {
12
12
  platformSettings?: ElevenLabs.AgentPlatformSettingsResponseModel;
13
13
  /** The phone numbers of the agent */
14
14
  phoneNumbers?: ElevenLabs.GetAgentResponseModelPhoneNumbersItem[];
15
+ /** WhatsApp accounts assigned to the agent */
16
+ whatsappAccounts?: ElevenLabs.GetWhatsAppAccountResponse[];
15
17
  /** The workflow of the agent */
16
18
  workflow?: ElevenLabs.AgentWorkflowResponseModel;
17
19
  /** The access information of the agent for the user */
@@ -10,4 +10,5 @@ export interface GetKnowledgeBaseFileResponseModel {
10
10
  /** The folder path segments leading to this entity, from root to parent folder. */
11
11
  folderPath?: ElevenLabs.KnowledgeBaseFolderPathSegmentResponseModel[];
12
12
  extractedInnerHtml: string;
13
+ filename: string;
13
14
  }
@@ -0,0 +1,4 @@
1
+ export interface KnowledgeBaseSourceFileUrlResponseModel {
2
+ /** Signed URL to download the source file directly */
3
+ signedUrl: string;
4
+ }
@@ -27,6 +27,7 @@ export interface ProjectVideoResponseModel {
27
27
  pendingBlockIds: string[];
28
28
  importSpeechProgress?: number;
29
29
  speechImported?: boolean;
30
+ audioTrackReady?: boolean;
30
31
  currentSnapshotId?: string;
31
32
  canvasPlacement?: ElevenLabs.CanvasPlacement;
32
33
  trackId?: string;
@@ -38,6 +38,7 @@ export * from "./AgentWorkflowResponseModel";
38
38
  export * from "./AgentWorkflowResponseModelNodesValue";
39
39
  export * from "./AgentWorkspaceOverridesInput";
40
40
  export * from "./AgentWorkspaceOverridesOutput";
41
+ export * from "./AllowedOutputFormats";
41
42
  export * from "./AllowlistItem";
42
43
  export * from "./ApiIntegrationWebhookOverridesInput";
43
44
  export * from "./ApiIntegrationWebhookOverridesInputRequestHeadersValue";
@@ -211,7 +212,6 @@ export * from "./ConversationHistoryErrorCommonModel";
211
212
  export * from "./ConversationHistoryEvaluationCriteriaResultCommonModel";
212
213
  export * from "./ConversationHistoryFeedbackCommonModel";
213
214
  export * from "./ConversationHistoryMetadataCommonModel";
214
- export * from "./ConversationHistoryMetadataCommonModelInitiationTrigger";
215
215
  export * from "./ConversationHistoryMetadataCommonModelPhoneCall";
216
216
  export * from "./ConversationHistoryMultivoiceMessageModel";
217
217
  export * from "./ConversationHistoryMultivoiceMessagePartModel";
@@ -282,7 +282,6 @@ export * from "./DashboardCallSuccessChartModel";
282
282
  export * from "./DashboardCriteriaChartModel";
283
283
  export * from "./DashboardDataCollectionChartModel";
284
284
  export * from "./DataCollectionResultCommonModel";
285
- export * from "./DefaultConversationInitiationTrigger";
286
285
  export * from "./DeleteChapterRequest";
287
286
  export * from "./DeleteChapterResponseModel";
288
287
  export * from "./DeleteDubbingResponseModel";
@@ -319,8 +318,11 @@ export * from "./DubbingModel";
319
318
  export * from "./DubbingReleaseChannel";
320
319
  export * from "./DubbingRenderResponseModel";
321
320
  export * from "./DubbingResource";
321
+ export * from "./DubbingTranscript";
322
322
  export * from "./DubbingTranscriptCharacter";
323
323
  export * from "./DubbingTranscriptResponseModel";
324
+ export * from "./DubbingTranscriptsResponseModel";
325
+ export * from "./DubbingTranscriptsResponseModelTranscriptFormat";
324
326
  export * from "./DubbingTranscriptUtterance";
325
327
  export * from "./DubbingTranscriptWord";
326
328
  export * from "./DynamicVariableAssignment";
@@ -437,6 +439,7 @@ export * from "./KnowledgeBaseFolderPathSegmentResponseModel";
437
439
  export * from "./KnowledgeBaseFolderPathSegmentSummaryResponseModel";
438
440
  export * from "./KnowledgeBaseLocator";
439
441
  export * from "./KnowledgeBaseSortBy";
442
+ export * from "./KnowledgeBaseSourceFileUrlResponseModel";
440
443
  export * from "./KnowledgeBaseSummaryBatchSuccessfulResponseModel";
441
444
  export * from "./KnowledgeBaseSummaryBatchSuccessfulResponseModelData";
442
445
  export * from "./LanguageAddedResponse";
@@ -884,4 +887,3 @@ export * from "./WorkspaceServiceAccountResponseModel";
884
887
  export * from "./WorkspaceWebhookListResponseModel";
885
888
  export * from "./WorkspaceWebhookResponseModel";
886
889
  export * from "./WorkspaceWebhookUsageResponseModel";
887
- export * from "./ZendeskConversationInitiationTrigger";
@@ -54,6 +54,7 @@ __exportStar(require("./AgentWorkflowResponseModel"), exports);
54
54
  __exportStar(require("./AgentWorkflowResponseModelNodesValue"), exports);
55
55
  __exportStar(require("./AgentWorkspaceOverridesInput"), exports);
56
56
  __exportStar(require("./AgentWorkspaceOverridesOutput"), exports);
57
+ __exportStar(require("./AllowedOutputFormats"), exports);
57
58
  __exportStar(require("./AllowlistItem"), exports);
58
59
  __exportStar(require("./ApiIntegrationWebhookOverridesInput"), exports);
59
60
  __exportStar(require("./ApiIntegrationWebhookOverridesInputRequestHeadersValue"), exports);
@@ -227,7 +228,6 @@ __exportStar(require("./ConversationHistoryErrorCommonModel"), exports);
227
228
  __exportStar(require("./ConversationHistoryEvaluationCriteriaResultCommonModel"), exports);
228
229
  __exportStar(require("./ConversationHistoryFeedbackCommonModel"), exports);
229
230
  __exportStar(require("./ConversationHistoryMetadataCommonModel"), exports);
230
- __exportStar(require("./ConversationHistoryMetadataCommonModelInitiationTrigger"), exports);
231
231
  __exportStar(require("./ConversationHistoryMetadataCommonModelPhoneCall"), exports);
232
232
  __exportStar(require("./ConversationHistoryMultivoiceMessageModel"), exports);
233
233
  __exportStar(require("./ConversationHistoryMultivoiceMessagePartModel"), exports);
@@ -298,7 +298,6 @@ __exportStar(require("./DashboardCallSuccessChartModel"), exports);
298
298
  __exportStar(require("./DashboardCriteriaChartModel"), exports);
299
299
  __exportStar(require("./DashboardDataCollectionChartModel"), exports);
300
300
  __exportStar(require("./DataCollectionResultCommonModel"), exports);
301
- __exportStar(require("./DefaultConversationInitiationTrigger"), exports);
302
301
  __exportStar(require("./DeleteChapterRequest"), exports);
303
302
  __exportStar(require("./DeleteChapterResponseModel"), exports);
304
303
  __exportStar(require("./DeleteDubbingResponseModel"), exports);
@@ -335,8 +334,11 @@ __exportStar(require("./DubbingModel"), exports);
335
334
  __exportStar(require("./DubbingReleaseChannel"), exports);
336
335
  __exportStar(require("./DubbingRenderResponseModel"), exports);
337
336
  __exportStar(require("./DubbingResource"), exports);
337
+ __exportStar(require("./DubbingTranscript"), exports);
338
338
  __exportStar(require("./DubbingTranscriptCharacter"), exports);
339
339
  __exportStar(require("./DubbingTranscriptResponseModel"), exports);
340
+ __exportStar(require("./DubbingTranscriptsResponseModel"), exports);
341
+ __exportStar(require("./DubbingTranscriptsResponseModelTranscriptFormat"), exports);
340
342
  __exportStar(require("./DubbingTranscriptUtterance"), exports);
341
343
  __exportStar(require("./DubbingTranscriptWord"), exports);
342
344
  __exportStar(require("./DynamicVariableAssignment"), exports);
@@ -453,6 +455,7 @@ __exportStar(require("./KnowledgeBaseFolderPathSegmentResponseModel"), exports);
453
455
  __exportStar(require("./KnowledgeBaseFolderPathSegmentSummaryResponseModel"), exports);
454
456
  __exportStar(require("./KnowledgeBaseLocator"), exports);
455
457
  __exportStar(require("./KnowledgeBaseSortBy"), exports);
458
+ __exportStar(require("./KnowledgeBaseSourceFileUrlResponseModel"), exports);
456
459
  __exportStar(require("./KnowledgeBaseSummaryBatchSuccessfulResponseModel"), exports);
457
460
  __exportStar(require("./KnowledgeBaseSummaryBatchSuccessfulResponseModelData"), exports);
458
461
  __exportStar(require("./LanguageAddedResponse"), exports);
@@ -900,4 +903,3 @@ __exportStar(require("./WorkspaceServiceAccountResponseModel"), exports);
900
903
  __exportStar(require("./WorkspaceWebhookListResponseModel"), exports);
901
904
  __exportStar(require("./WorkspaceWebhookResponseModel"), exports);
902
905
  __exportStar(require("./WorkspaceWebhookUsageResponseModel"), exports);
903
- __exportStar(require("./ZendeskConversationInitiationTrigger"), exports);
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
41
41
  const headers = (0, headers_1.mergeHeaders)({
42
42
  "X-Fern-Language": "JavaScript",
43
43
  "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
44
- "X-Fern-SDK-Version": "v2.30.0",
45
- "User-Agent": "@elevenlabs/elevenlabs-js/v2.30.0",
44
+ "X-Fern-SDK-Version": "v2.31.0",
45
+ "User-Agent": "@elevenlabs/elevenlabs-js/v2.31.0",
46
46
  "X-Fern-Runtime": core.RUNTIME.type,
47
47
  "X-Fern-Runtime-Version": core.RUNTIME.version,
48
48
  "xi-api-key": options === null || options === void 0 ? void 0 : options.apiKey,
@@ -14,4 +14,5 @@ export interface BodySubmitABatchCallRequestV1ConvaiBatchCallingSubmitPost {
14
14
  scheduledTimeUnix?: number;
15
15
  agentPhoneNumberId?: string;
16
16
  whatsappParams?: ElevenLabs.BatchCallWhatsAppParams;
17
+ timezone?: string;
17
18
  }
@@ -71,7 +71,8 @@ export declare class ConversationsClient {
71
71
  * userId: "user_id",
72
72
  * pageSize: 1,
73
73
  * summaryMode: "exclude",
74
- * search: "search"
74
+ * search: "search",
75
+ * conversationInitiationSource: "unknown"
75
76
  * })
76
77
  */
77
78
  list(request?: ElevenLabs.conversationalAi.ConversationsListRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetConversationsPageResponseModel>;
@@ -227,7 +227,8 @@ class ConversationsClient {
227
227
  * userId: "user_id",
228
228
  * pageSize: 1,
229
229
  * summaryMode: "exclude",
230
- * search: "search"
230
+ * search: "search",
231
+ * conversationInitiationSource: "unknown"
231
232
  * })
232
233
  */
233
234
  list(request = {}, requestOptions) {
@@ -236,7 +237,7 @@ class ConversationsClient {
236
237
  __list() {
237
238
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
238
239
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
239
- const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, mainLanguages, pageSize, summaryMode, search, } = request;
240
+ const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, mainLanguages, pageSize, summaryMode, search, conversationInitiationSource, } = request;
240
241
  const _queryParams = {};
241
242
  if (cursor != null) {
242
243
  _queryParams.cursor = cursor;
@@ -314,6 +315,9 @@ class ConversationsClient {
314
315
  if (search != null) {
315
316
  _queryParams.search = search;
316
317
  }
318
+ if (conversationInitiationSource != null) {
319
+ _queryParams.conversation_initiation_source = serializers.ConversationInitiationSource.jsonOrThrow(conversationInitiationSource, { unrecognizedObjectKeys: "strip" });
320
+ }
317
321
  const _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);
318
322
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
319
323
  url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/convai/conversations"),
@@ -15,7 +15,8 @@ import type * as ElevenLabs from "../../../../../../index";
15
15
  * userId: "user_id",
16
16
  * pageSize: 1,
17
17
  * summaryMode: "exclude",
18
- * search: "search"
18
+ * search: "search",
19
+ * conversationInitiationSource: "unknown"
19
20
  * }
20
21
  */
21
22
  export interface ConversationsListRequest {
@@ -55,4 +56,5 @@ export interface ConversationsListRequest {
55
56
  summaryMode?: ElevenLabs.conversationalAi.ConversationsListRequestSummaryMode;
56
57
  /** Full-text or fuzzy search over transcript messages */
57
58
  search?: string;
59
+ conversationInitiationSource?: ElevenLabs.ConversationInitiationSource;
58
60
  }
@@ -141,4 +141,17 @@ export declare class DocumentsClient {
141
141
  */
142
142
  getContent(documentation_id: string, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<void>;
143
143
  private __getContent;
144
+ /**
145
+ * Get a signed URL to download the original source file of a file-type document from the knowledge base
146
+ *
147
+ * @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
148
+ * @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
149
+ *
150
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
151
+ *
152
+ * @example
153
+ * await client.conversationalAi.knowledgeBase.documents.getSourceFileUrl("21m00Tcm4TlvDq8ikWAM")
154
+ */
155
+ getSourceFileUrl(documentation_id: string, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.KnowledgeBaseSourceFileUrlResponseModel>;
156
+ private __getSourceFileUrl;
144
157
  }