@elevenlabs/elevenlabs-js 2.1.0 → 2.3.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 (1602) hide show
  1. package/Client.d.ts +12 -4
  2. package/Client.js +85 -32
  3. package/README.md +4 -11
  4. package/api/resources/audioIsolation/client/Client.d.ts +5 -4
  5. package/api/resources/audioIsolation/client/Client.js +5 -8
  6. package/api/resources/audioIsolation/client/index.d.ts +1 -0
  7. package/api/resources/audioNative/client/Client.d.ts +3 -1
  8. package/api/resources/audioNative/client/Client.js +7 -14
  9. package/api/resources/audioNative/client/index.d.ts +1 -0
  10. package/api/resources/conversationalAi/client/Client.d.ts +45 -1
  11. package/api/resources/conversationalAi/client/Client.js +222 -10
  12. package/api/resources/conversationalAi/client/index.d.ts +1 -0
  13. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -1
  14. package/api/resources/conversationalAi/resources/agents/client/Client.js +15 -34
  15. package/api/resources/conversationalAi/resources/agents/client/index.d.ts +1 -0
  16. package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +5 -2
  17. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +3 -1
  18. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -6
  19. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +3 -1
  20. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -6
  21. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +3 -1
  22. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -4
  23. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  24. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +3 -1
  25. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -6
  26. package/api/resources/conversationalAi/resources/agents/resources/widget/client/index.d.ts +1 -0
  27. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +3 -1
  28. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -4
  29. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/index.d.ts +1 -0
  30. package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +29 -1
  31. package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +147 -16
  32. package/api/resources/conversationalAi/resources/batchCalls/client/index.d.ts +1 -0
  33. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -1
  34. package/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -24
  35. package/api/resources/conversationalAi/resources/conversations/client/index.d.ts +1 -0
  36. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +4 -3
  37. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -6
  38. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +3 -1
  39. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -4
  40. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/index.d.ts +1 -0
  41. package/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +2 -0
  42. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +3 -1
  43. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -10
  44. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/index.d.ts +1 -0
  45. package/api/resources/conversationalAi/resources/index.d.ts +2 -0
  46. package/api/resources/conversationalAi/resources/index.js +3 -1
  47. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +3 -1
  48. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -6
  49. package/api/resources/conversationalAi/resources/knowledgeBase/client/index.d.ts +1 -0
  50. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +4 -2
  51. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +4 -5
  52. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/index.d.ts +1 -0
  53. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +5 -2
  54. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +28 -44
  55. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/index.d.ts +1 -0
  56. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.d.ts +13 -0
  57. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +1 -0
  58. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +3 -1
  59. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +3 -6
  60. package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +3 -1
  61. package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -4
  62. package/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  63. package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +85 -0
  64. package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +298 -0
  65. package/api/resources/conversationalAi/resources/mcpServers/client/index.d.ts +2 -0
  66. package/api/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
  67. package/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +17 -0
  68. package/api/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  69. package/api/resources/conversationalAi/resources/mcpServers/client/requests/index.js +2 -0
  70. package/api/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
  71. package/api/resources/conversationalAi/resources/mcpServers/index.js +18 -0
  72. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +49 -0
  73. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +142 -0
  74. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +2 -0
  75. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
  76. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +14 -0
  77. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
  78. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +2 -0
  79. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
  80. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
  81. package/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +5 -0
  82. package/api/resources/conversationalAi/resources/mcpServers/resources/index.js +44 -0
  83. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +64 -0
  84. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +214 -0
  85. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +2 -0
  86. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
  87. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +21 -0
  88. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
  89. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +2 -0
  90. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
  91. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
  92. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +46 -0
  93. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +134 -0
  94. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.d.ts +1 -0
  95. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.js +2 -0
  96. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.d.ts +1 -0
  97. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.js +17 -0
  98. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +3 -1
  99. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +11 -26
  100. package/api/resources/conversationalAi/resources/phoneNumbers/client/index.d.ts +1 -0
  101. package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +3 -1
  102. package/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -16
  103. package/api/resources/conversationalAi/resources/secrets/client/index.d.ts +1 -0
  104. package/api/resources/conversationalAi/resources/settings/client/Client.d.ts +3 -1
  105. package/api/resources/conversationalAi/resources/settings/client/Client.js +5 -10
  106. package/api/resources/conversationalAi/resources/settings/client/index.d.ts +1 -0
  107. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +3 -1
  108. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -4
  109. package/api/resources/conversationalAi/resources/sipTrunk/client/index.d.ts +1 -0
  110. package/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +3 -1
  111. package/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -4
  112. package/api/resources/conversationalAi/resources/twilio/client/index.d.ts +1 -0
  113. package/api/resources/dubbing/client/Client.d.ts +3 -1
  114. package/api/resources/dubbing/client/Client.js +7 -16
  115. package/api/resources/dubbing/client/index.d.ts +1 -0
  116. package/api/resources/dubbing/resources/audio/client/Client.d.ts +4 -3
  117. package/api/resources/dubbing/resources/audio/client/Client.js +3 -6
  118. package/api/resources/dubbing/resources/resource/client/Client.d.ts +3 -1
  119. package/api/resources/dubbing/resources/resource/client/Client.js +11 -22
  120. package/api/resources/dubbing/resources/resource/client/index.d.ts +1 -0
  121. package/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +3 -1
  122. package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -4
  123. package/api/resources/dubbing/resources/resource/resources/language/client/index.d.ts +1 -0
  124. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +3 -1
  125. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -10
  126. package/api/resources/dubbing/resources/resource/resources/segment/client/index.d.ts +1 -0
  127. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +3 -1
  128. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -10
  129. package/api/resources/dubbing/resources/resource/resources/speaker/client/index.d.ts +1 -0
  130. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +3 -1
  131. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -4
  132. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/index.d.ts +1 -0
  133. package/api/resources/dubbing/resources/transcript/client/Client.d.ts +3 -1
  134. package/api/resources/dubbing/resources/transcript/client/Client.js +3 -6
  135. package/api/resources/dubbing/resources/transcript/client/index.d.ts +1 -0
  136. package/api/resources/forcedAlignment/client/Client.d.ts +3 -1
  137. package/api/resources/forcedAlignment/client/Client.js +3 -4
  138. package/api/resources/forcedAlignment/client/index.d.ts +1 -0
  139. package/api/resources/history/client/Client.d.ts +5 -4
  140. package/api/resources/history/client/Client.js +11 -28
  141. package/api/resources/history/client/index.d.ts +1 -0
  142. package/api/resources/index.d.ts +6 -0
  143. package/api/resources/index.js +7 -1
  144. package/api/resources/models/client/Client.d.ts +3 -1
  145. package/api/resources/models/client/Client.js +3 -6
  146. package/api/resources/pronunciationDictionaries/client/Client.d.ts +4 -3
  147. package/api/resources/pronunciationDictionaries/client/Client.js +11 -26
  148. package/api/resources/pronunciationDictionaries/client/index.d.ts +1 -0
  149. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +3 -1
  150. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -8
  151. package/api/resources/pronunciationDictionaries/resources/rules/client/index.d.ts +1 -0
  152. package/api/resources/samples/client/Client.d.ts +3 -1
  153. package/api/resources/samples/client/Client.js +3 -6
  154. package/api/resources/speechToSpeech/client/Client.d.ts +5 -4
  155. package/api/resources/speechToSpeech/client/Client.js +5 -8
  156. package/api/resources/speechToSpeech/client/index.d.ts +1 -0
  157. package/api/resources/speechToText/client/Client.d.ts +4 -4
  158. package/api/resources/speechToText/client/Client.js +46 -10
  159. package/api/resources/speechToText/client/index.d.ts +1 -0
  160. package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -0
  161. package/api/resources/studio/client/Client.d.ts +4 -2
  162. package/api/resources/studio/client/Client.js +4 -5
  163. package/api/resources/studio/client/index.d.ts +1 -0
  164. package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +58 -3
  165. package/api/resources/studio/resources/projects/client/Client.d.ts +3 -1
  166. package/api/resources/studio/resources/projects/client/Client.js +16 -32
  167. package/api/resources/studio/resources/projects/client/index.d.ts +1 -0
  168. package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +59 -2
  169. package/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +3 -1
  170. package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -32
  171. package/api/resources/studio/resources/projects/resources/chapters/client/index.d.ts +1 -0
  172. package/api/resources/studio/resources/projects/resources/chapters/client/requests/BodyCreateChapterV1StudioProjectsProjectIdChaptersPost.d.ts +1 -1
  173. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +4 -3
  174. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -16
  175. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/index.d.ts +1 -0
  176. package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +3 -1
  177. package/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -4
  178. package/api/resources/studio/resources/projects/resources/content/client/index.d.ts +1 -0
  179. package/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +1 -1
  180. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +3 -1
  181. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -4
  182. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/index.d.ts +1 -0
  183. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +5 -4
  184. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -22
  185. package/api/resources/studio/resources/projects/resources/snapshots/client/index.d.ts +1 -0
  186. package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostDurationScale.d.ts +1 -1
  187. package/api/resources/textToDialogue/client/Client.d.ts +45 -0
  188. package/api/resources/textToDialogue/client/Client.js +209 -0
  189. package/api/resources/textToDialogue/client/index.d.ts +2 -0
  190. package/api/resources/textToDialogue/client/index.js +17 -0
  191. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +32 -0
  192. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +32 -0
  193. package/api/resources/textToDialogue/client/requests/index.d.ts +2 -0
  194. package/api/resources/textToDialogue/client/requests/index.js +2 -0
  195. package/api/resources/textToDialogue/index.d.ts +2 -0
  196. package/api/resources/textToDialogue/index.js +18 -0
  197. package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +28 -0
  198. package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +27 -0
  199. package/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +28 -0
  200. package/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +27 -0
  201. package/api/resources/textToDialogue/types/index.d.ts +2 -0
  202. package/api/resources/textToDialogue/types/index.js +18 -0
  203. package/api/resources/textToSoundEffects/client/Client.d.ts +4 -3
  204. package/api/resources/textToSoundEffects/client/Client.js +3 -4
  205. package/api/resources/textToSoundEffects/client/index.d.ts +1 -0
  206. package/api/resources/textToSpeech/client/Client.d.ts +5 -4
  207. package/api/resources/textToSpeech/client/Client.js +9 -16
  208. package/api/resources/textToSpeech/client/index.d.ts +1 -0
  209. package/api/resources/textToVoice/client/Client.d.ts +3 -1
  210. package/api/resources/textToVoice/client/Client.js +5 -8
  211. package/api/resources/textToVoice/client/index.d.ts +1 -0
  212. package/api/resources/usage/client/Client.d.ts +3 -1
  213. package/api/resources/usage/client/Client.js +3 -6
  214. package/api/resources/usage/client/index.d.ts +1 -0
  215. package/api/resources/user/client/Client.d.ts +3 -1
  216. package/api/resources/user/client/Client.js +3 -6
  217. package/api/resources/user/resources/subscription/client/Client.d.ts +3 -1
  218. package/api/resources/user/resources/subscription/client/Client.js +3 -6
  219. package/api/resources/voices/client/Client.d.ts +4 -2
  220. package/api/resources/voices/client/Client.js +22 -44
  221. package/api/resources/voices/client/index.d.ts +1 -0
  222. package/api/resources/voices/client/requests/VoicesGetSharedRequest.d.ts +4 -0
  223. package/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +1 -1
  224. package/api/resources/voices/resources/ivc/client/Client.d.ts +3 -1
  225. package/api/resources/voices/resources/ivc/client/Client.js +3 -4
  226. package/api/resources/voices/resources/ivc/client/index.d.ts +1 -0
  227. package/api/resources/voices/resources/pvc/client/Client.d.ts +3 -1
  228. package/api/resources/voices/resources/pvc/client/Client.js +7 -12
  229. package/api/resources/voices/resources/pvc/client/index.d.ts +1 -0
  230. package/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +3 -1
  231. package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -14
  232. package/api/resources/voices/resources/pvc/resources/samples/client/index.d.ts +1 -0
  233. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +3 -1
  234. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +3 -6
  235. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +3 -1
  236. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -12
  237. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +3 -1
  238. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -6
  239. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +3 -1
  240. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -6
  241. package/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +3 -1
  242. package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -4
  243. package/api/resources/voices/resources/pvc/resources/verification/client/index.d.ts +1 -0
  244. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +3 -1
  245. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -10
  246. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/index.d.ts +1 -0
  247. package/api/resources/voices/resources/samples/client/Client.d.ts +2 -0
  248. package/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +4 -3
  249. package/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -6
  250. package/api/resources/voices/resources/settings/client/Client.d.ts +4 -2
  251. package/api/resources/voices/resources/settings/client/Client.js +8 -17
  252. package/api/resources/webhooks/client/Client.d.ts +48 -0
  253. package/api/resources/webhooks/client/Client.js +142 -0
  254. package/api/resources/webhooks/client/index.d.ts +2 -0
  255. package/api/resources/webhooks/client/index.js +17 -0
  256. package/api/resources/webhooks/client/requests/WebhooksListRequest.d.ts +15 -0
  257. package/api/resources/webhooks/client/requests/index.d.ts +1 -0
  258. package/api/resources/webhooks/client/requests/index.js +2 -0
  259. package/api/resources/webhooks/index.d.ts +1 -0
  260. package/api/resources/webhooks/index.js +17 -0
  261. package/api/resources/workspace/client/Client.d.ts +30 -0
  262. package/api/resources/workspace/client/Client.js +121 -0
  263. package/api/resources/workspace/client/index.d.ts +1 -0
  264. package/api/resources/workspace/client/index.js +15 -0
  265. package/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
  266. package/api/resources/workspace/client/requests/index.d.ts +1 -0
  267. package/api/resources/workspace/client/requests/index.js +2 -0
  268. package/api/resources/workspace/resources/groups/client/Client.d.ts +3 -1
  269. package/api/resources/workspace/resources/groups/client/Client.js +3 -6
  270. package/api/resources/workspace/resources/groups/client/index.d.ts +1 -0
  271. package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +3 -1
  272. package/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -8
  273. package/api/resources/workspace/resources/groups/resources/members/client/index.d.ts +1 -0
  274. package/api/resources/workspace/resources/invites/client/Client.d.ts +3 -1
  275. package/api/resources/workspace/resources/invites/client/Client.js +7 -12
  276. package/api/resources/workspace/resources/invites/client/index.d.ts +1 -0
  277. package/api/resources/workspace/resources/members/client/Client.d.ts +3 -1
  278. package/api/resources/workspace/resources/members/client/Client.js +5 -8
  279. package/api/resources/workspace/resources/members/client/index.d.ts +1 -0
  280. package/api/resources/workspace/resources/resources/client/Client.d.ts +3 -1
  281. package/api/resources/workspace/resources/resources/client/Client.js +7 -14
  282. package/api/resources/workspace/resources/resources/client/index.d.ts +1 -0
  283. package/api/types/AddKnowledgeBaseResponseModel.d.ts +0 -1
  284. package/api/types/AddProjectRequest.d.ts +60 -3
  285. package/api/types/AgentCallLimits.d.ts +2 -0
  286. package/api/types/AgentConfigOverride.d.ts +4 -4
  287. package/api/types/AgentConfigOverrideConfig.d.ts +4 -4
  288. package/api/types/AuthorizationMethod.d.ts +2 -1
  289. package/api/types/AuthorizationMethod.js +1 -0
  290. package/api/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.d.ts +1 -1
  291. package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +57 -2
  292. package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.d.ts +1 -1
  293. package/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +2 -2
  294. package/api/types/BuiltInTools.d.ts +16 -0
  295. package/api/types/ChapterContentBlockInputModel.d.ts +1 -1
  296. package/api/types/ClientEvent.d.ts +4 -1
  297. package/api/types/ClientEvent.js +3 -0
  298. package/api/types/ConvAiUserSecretDbModel.d.ts +12 -0
  299. package/api/types/ConversationChargingCommonModel.d.ts +1 -0
  300. package/api/types/ConversationConfigClientOverrideConfigInput.d.ts +4 -4
  301. package/api/types/ConversationConfigClientOverrideConfigOutput.d.ts +4 -4
  302. package/api/types/ConversationConfigClientOverrideInput.d.ts +4 -4
  303. package/api/types/ConversationConfigClientOverrideOutput.d.ts +4 -4
  304. package/api/types/ConversationConfigOverride.d.ts +1 -0
  305. package/api/types/ConversationConfigOverrideConfig.d.ts +1 -1
  306. package/api/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
  307. package/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
  308. package/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
  309. package/api/types/ConversationSimulationSpecification.d.ts +1 -0
  310. package/api/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +4 -0
  311. package/api/types/ConversationalConfig.d.ts +1 -1
  312. package/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
  313. package/api/types/CustomLlm.d.ts +2 -0
  314. package/api/types/CustomLlmRequestHeadersValue.d.ts +5 -0
  315. package/api/types/DialogueInput.d.ts +9 -0
  316. package/api/types/DialogueInput.js +5 -0
  317. package/api/types/DialogueInputResponseModel.d.ts +11 -0
  318. package/api/types/DialogueInputResponseModel.js +5 -0
  319. package/api/types/EmbedVariant.d.ts +2 -1
  320. package/api/types/EmbedVariant.js +1 -0
  321. package/api/types/FeatureStatusCommonModel.d.ts +7 -0
  322. package/api/types/FeatureStatusCommonModel.js +5 -0
  323. package/api/types/FeaturesUsageCommonModel.d.ts +12 -0
  324. package/api/types/FeaturesUsageCommonModel.js +5 -0
  325. package/api/types/GetAgentEmbedResponseModel.d.ts +1 -1
  326. package/api/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -1
  327. package/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +1 -1
  328. package/api/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +1 -1
  329. package/api/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +1 -1
  330. package/api/types/GetKnowledgeBaseTextResponseModel.d.ts +1 -1
  331. package/api/types/GetKnowledgeBaseUrlResponseModel.d.ts +1 -1
  332. package/api/types/IntegrationType.d.ts +8 -0
  333. package/api/types/IntegrationType.js +10 -0
  334. package/api/types/InvoiceResponse.d.ts +2 -0
  335. package/api/types/ListMcpToolsResponseModel.d.ts +15 -0
  336. package/api/types/ListMcpToolsResponseModel.js +5 -0
  337. package/api/types/Llm.d.ts +28 -3
  338. package/api/types/Llm.js +27 -2
  339. package/api/types/McpApprovalPolicy.d.ts +12 -0
  340. package/api/types/McpApprovalPolicy.js +11 -0
  341. package/api/types/McpServerConfigInput.d.ts +19 -0
  342. package/api/types/McpServerConfigInput.js +5 -0
  343. package/api/types/McpServerConfigInputRequestHeadersValue.d.ts +5 -0
  344. package/api/types/McpServerConfigInputRequestHeadersValue.js +5 -0
  345. package/api/types/McpServerConfigInputSecretToken.d.ts +8 -0
  346. package/api/types/McpServerConfigInputSecretToken.js +5 -0
  347. package/api/types/McpServerConfigInputUrl.d.ts +8 -0
  348. package/api/types/McpServerConfigInputUrl.js +5 -0
  349. package/api/types/McpServerConfigOutput.d.ts +19 -0
  350. package/api/types/McpServerConfigOutput.js +5 -0
  351. package/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +5 -0
  352. package/api/types/McpServerConfigOutputRequestHeadersValue.js +5 -0
  353. package/api/types/McpServerConfigOutputSecretToken.d.ts +8 -0
  354. package/api/types/McpServerConfigOutputSecretToken.js +5 -0
  355. package/api/types/McpServerConfigOutputUrl.d.ts +8 -0
  356. package/api/types/McpServerConfigOutputUrl.js +5 -0
  357. package/api/types/McpServerMetadataResponseModel.d.ts +7 -0
  358. package/api/types/McpServerMetadataResponseModel.js +5 -0
  359. package/api/types/McpServerResponseModel.d.ts +17 -0
  360. package/api/types/McpServerResponseModel.js +5 -0
  361. package/api/types/McpServerResponseModelDependentAgentsItem.d.ts +13 -0
  362. package/api/types/McpServerResponseModelDependentAgentsItem.js +5 -0
  363. package/api/types/McpServerTransport.d.ts +11 -0
  364. package/api/types/McpServerTransport.js +10 -0
  365. package/api/types/McpServersResponseModel.d.ts +10 -0
  366. package/api/types/McpServersResponseModel.js +5 -0
  367. package/api/types/McpToolApprovalHash.d.ts +15 -0
  368. package/api/types/McpToolApprovalHash.js +5 -0
  369. package/api/types/McpToolApprovalPolicy.d.ts +11 -0
  370. package/api/types/McpToolApprovalPolicy.js +10 -0
  371. package/api/types/McpToolConfigInput.d.ts +11 -1
  372. package/api/types/McpToolConfigOutput.d.ts +11 -1
  373. package/api/types/ModelSettingsResponseModel.d.ts +9 -0
  374. package/api/types/ModelSettingsResponseModel.js +5 -0
  375. package/api/types/PromptAgentDbModel.d.ts +1 -0
  376. package/api/types/PromptAgentDbModelToolsItem.d.ts +1 -4
  377. package/api/types/PromptAgentInputToolsItem.d.ts +1 -4
  378. package/api/types/PromptAgentOutputToolsItem.d.ts +1 -4
  379. package/api/types/PromptAgentOverride.d.ts +1 -1
  380. package/api/types/PromptAgentOverrideConfig.d.ts +1 -1
  381. package/api/types/PronunciationDictionaryLocator.d.ts +1 -1
  382. package/api/types/RagConfig.d.ts +2 -0
  383. package/api/types/{RagIndexResponseModel.d.ts → RagDocumentIndexResponseModel.d.ts} +4 -1
  384. package/api/types/RagDocumentIndexResponseModel.js +5 -0
  385. package/api/types/RagDocumentIndexUsage.d.ts +6 -0
  386. package/api/types/RagDocumentIndexUsage.js +5 -0
  387. package/api/types/RagDocumentIndexesResponseModel.d.ts +7 -0
  388. package/api/types/RagDocumentIndexesResponseModel.js +5 -0
  389. package/api/types/RagIndexOverviewEmbeddingModelResponseModel.d.ts +8 -0
  390. package/api/types/RagIndexOverviewEmbeddingModelResponseModel.js +5 -0
  391. package/api/types/RagIndexOverviewResponseModel.d.ts +9 -0
  392. package/api/types/RagIndexOverviewResponseModel.js +5 -0
  393. package/api/types/RagIndexStatus.d.ts +3 -1
  394. package/api/types/RagIndexStatus.js +2 -0
  395. package/api/types/SkipTurnToolConfig.d.ts +16 -0
  396. package/api/types/SkipTurnToolConfig.js +5 -0
  397. package/api/types/SpeechHistoryItemResponse.d.ts +5 -3
  398. package/api/types/Subscription.d.ts +1 -1
  399. package/api/types/SubscriptionResponse.d.ts +1 -1
  400. package/api/types/{SubscriptionStatus.d.ts → SubscriptionStatusType.d.ts} +4 -7
  401. package/{dist/api/types/SubscriptionStatus.js → api/types/SubscriptionStatusType.js} +4 -4
  402. package/api/types/SupportedVoice.d.ts +15 -0
  403. package/api/types/SupportedVoice.js +5 -0
  404. package/api/types/SystemToolConfigInputParams.d.ts +4 -1
  405. package/api/types/SystemToolConfigOutputParams.d.ts +4 -1
  406. package/api/types/Tool.d.ts +15 -0
  407. package/api/types/Tool.js +5 -0
  408. package/api/types/ToolAnnotations.d.ts +22 -0
  409. package/api/types/ToolAnnotations.js +5 -0
  410. package/api/types/TransferToNumberToolConfig.d.ts +2 -0
  411. package/{dist/api/types/TtsConversationalConfig.d.ts → api/types/TtsConversationalConfigInput.d.ts} +3 -1
  412. package/api/types/TtsConversationalConfigInput.js +5 -0
  413. package/api/types/TtsConversationalConfigOutput.d.ts +24 -0
  414. package/api/types/TtsConversationalConfigOutput.js +5 -0
  415. package/api/types/TtsConversationalConfigOverride.d.ts +1 -0
  416. package/api/types/TtsConversationalConfigOverrideConfig.d.ts +1 -1
  417. package/api/types/TtsModelFamily.d.ts +9 -0
  418. package/api/types/TtsModelFamily.js +11 -0
  419. package/api/types/User.d.ts +1 -1
  420. package/api/types/VoiceDesignPreviewResponse.d.ts +2 -0
  421. package/api/types/VoicePreviewResponseModel.d.ts +4 -0
  422. package/api/types/VoiceSettings.d.ts +2 -2
  423. package/api/types/WebhookAuthMethodType.d.ts +8 -0
  424. package/api/types/WebhookAuthMethodType.js +10 -0
  425. package/api/types/WebhookUsageType.d.ts +10 -0
  426. package/api/types/WebhookUsageType.js +12 -0
  427. package/api/types/WidgetConfig.d.ts +15 -1
  428. package/{dist/api/types/WidgetConfigAvatar.d.ts → api/types/WidgetConfigInputAvatar.d.ts} +2 -2
  429. package/api/types/WidgetConfigInputAvatar.js +5 -0
  430. package/api/types/WidgetConfigOutputAvatar.d.ts +19 -0
  431. package/api/types/WidgetConfigOutputAvatar.js +5 -0
  432. package/api/types/{WidgetConfigResponseModel.d.ts → WidgetConfigResponse.d.ts} +18 -1
  433. package/api/types/WidgetConfigResponse.js +5 -0
  434. package/api/types/WidgetLanguagePreset.d.ts +8 -0
  435. package/api/types/WidgetLanguagePreset.js +5 -0
  436. package/api/types/WidgetLanguagePresetResponse.d.ts +9 -0
  437. package/api/types/WidgetLanguagePresetResponse.js +5 -0
  438. package/api/types/WidgetPlacement.d.ts +12 -0
  439. package/api/types/WidgetPlacement.js +14 -0
  440. package/api/types/WidgetStyles.d.ts +45 -0
  441. package/api/types/WidgetStyles.js +5 -0
  442. package/api/types/WidgetTextContents.d.ts +47 -0
  443. package/api/types/WidgetTextContents.js +5 -0
  444. package/api/types/WorkspaceResourceType.d.ts +2 -2
  445. package/api/types/WorkspaceResourceType.js +1 -1
  446. package/api/types/WorkspaceWebhookListResponseModel.d.ts +8 -0
  447. package/api/types/WorkspaceWebhookListResponseModel.js +5 -0
  448. package/api/types/WorkspaceWebhookResponseModel.d.ts +26 -0
  449. package/api/types/WorkspaceWebhookResponseModel.js +5 -0
  450. package/api/types/WorkspaceWebhookUsageResponseModel.d.ts +7 -0
  451. package/api/types/WorkspaceWebhookUsageResponseModel.js +5 -0
  452. package/api/types/index.d.ts +53 -8
  453. package/api/types/index.js +53 -8
  454. package/core/fetcher/Fetcher.d.ts +2 -1
  455. package/core/fetcher/Fetcher.js +22 -9
  456. package/core/form-data-utils/FormDataWrapper.js +5 -4
  457. package/core/form-data-utils/toReadableStream.d.ts +1 -0
  458. package/core/form-data-utils/toReadableStream.js +28 -0
  459. package/core/headers.d.ts +3 -0
  460. package/core/headers.js +29 -0
  461. package/core/index.d.ts +1 -1
  462. package/core/index.js +1 -1
  463. package/core/runtime/runtime.js +0 -1
  464. package/core/{streaming-fetcher → stream}/Stream.d.ts +1 -2
  465. package/dist/Client.d.ts +12 -4
  466. package/dist/Client.js +85 -32
  467. package/dist/api/resources/audioIsolation/client/Client.d.ts +5 -4
  468. package/dist/api/resources/audioIsolation/client/Client.js +5 -8
  469. package/dist/api/resources/audioIsolation/client/index.d.ts +1 -0
  470. package/dist/api/resources/audioNative/client/Client.d.ts +3 -1
  471. package/dist/api/resources/audioNative/client/Client.js +7 -14
  472. package/dist/api/resources/audioNative/client/index.d.ts +1 -0
  473. package/dist/api/resources/conversationalAi/client/Client.d.ts +45 -1
  474. package/dist/api/resources/conversationalAi/client/Client.js +222 -10
  475. package/dist/api/resources/conversationalAi/client/index.d.ts +1 -0
  476. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -1
  477. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +15 -34
  478. package/dist/api/resources/conversationalAi/resources/agents/client/index.d.ts +1 -0
  479. package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +5 -2
  480. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +3 -1
  481. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -6
  482. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +3 -1
  483. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -6
  484. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +3 -1
  485. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -4
  486. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  487. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +3 -1
  488. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -6
  489. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/index.d.ts +1 -0
  490. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +3 -1
  491. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -4
  492. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/index.d.ts +1 -0
  493. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +29 -1
  494. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +147 -16
  495. package/dist/api/resources/conversationalAi/resources/batchCalls/client/index.d.ts +1 -0
  496. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -1
  497. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -24
  498. package/dist/api/resources/conversationalAi/resources/conversations/client/index.d.ts +1 -0
  499. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +4 -3
  500. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -6
  501. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +3 -1
  502. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -4
  503. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/index.d.ts +1 -0
  504. package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +2 -0
  505. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +3 -1
  506. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -10
  507. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/index.d.ts +1 -0
  508. package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -0
  509. package/dist/api/resources/conversationalAi/resources/index.js +3 -1
  510. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +3 -1
  511. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -6
  512. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/index.d.ts +1 -0
  513. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +4 -2
  514. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +4 -5
  515. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/index.d.ts +1 -0
  516. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +5 -2
  517. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +28 -44
  518. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/index.d.ts +1 -0
  519. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.d.ts +13 -0
  520. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.js +5 -0
  521. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +1 -0
  522. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +3 -1
  523. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +3 -6
  524. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +3 -1
  525. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -4
  526. package/dist/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  527. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +85 -0
  528. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +298 -0
  529. package/dist/api/resources/conversationalAi/resources/mcpServers/client/index.d.ts +2 -0
  530. package/dist/api/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
  531. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +17 -0
  532. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js +5 -0
  533. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  534. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/index.js +2 -0
  535. package/dist/api/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
  536. package/dist/api/resources/conversationalAi/resources/mcpServers/index.js +18 -0
  537. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +49 -0
  538. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +142 -0
  539. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +2 -0
  540. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
  541. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +14 -0
  542. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js +5 -0
  543. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
  544. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +2 -0
  545. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
  546. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
  547. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +5 -0
  548. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.js +44 -0
  549. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +64 -0
  550. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +214 -0
  551. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +2 -0
  552. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
  553. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +21 -0
  554. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js +5 -0
  555. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
  556. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +2 -0
  557. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
  558. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
  559. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +46 -0
  560. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +134 -0
  561. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.d.ts +1 -0
  562. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.js +2 -0
  563. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.d.ts +1 -0
  564. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.js +17 -0
  565. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +3 -1
  566. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +11 -26
  567. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/index.d.ts +1 -0
  568. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +3 -1
  569. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -16
  570. package/dist/api/resources/conversationalAi/resources/secrets/client/index.d.ts +1 -0
  571. package/dist/api/resources/conversationalAi/resources/settings/client/Client.d.ts +3 -1
  572. package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +5 -10
  573. package/dist/api/resources/conversationalAi/resources/settings/client/index.d.ts +1 -0
  574. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +3 -1
  575. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -4
  576. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/index.d.ts +1 -0
  577. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +3 -1
  578. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -4
  579. package/dist/api/resources/conversationalAi/resources/twilio/client/index.d.ts +1 -0
  580. package/dist/api/resources/dubbing/client/Client.d.ts +3 -1
  581. package/dist/api/resources/dubbing/client/Client.js +7 -16
  582. package/dist/api/resources/dubbing/client/index.d.ts +1 -0
  583. package/dist/api/resources/dubbing/resources/audio/client/Client.d.ts +4 -3
  584. package/dist/api/resources/dubbing/resources/audio/client/Client.js +3 -6
  585. package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +3 -1
  586. package/dist/api/resources/dubbing/resources/resource/client/Client.js +11 -22
  587. package/dist/api/resources/dubbing/resources/resource/client/index.d.ts +1 -0
  588. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +3 -1
  589. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -4
  590. package/dist/api/resources/dubbing/resources/resource/resources/language/client/index.d.ts +1 -0
  591. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +3 -1
  592. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -10
  593. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/index.d.ts +1 -0
  594. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +3 -1
  595. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -10
  596. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/index.d.ts +1 -0
  597. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +3 -1
  598. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -4
  599. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/index.d.ts +1 -0
  600. package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +3 -1
  601. package/dist/api/resources/dubbing/resources/transcript/client/Client.js +3 -6
  602. package/dist/api/resources/dubbing/resources/transcript/client/index.d.ts +1 -0
  603. package/dist/api/resources/forcedAlignment/client/Client.d.ts +3 -1
  604. package/dist/api/resources/forcedAlignment/client/Client.js +3 -4
  605. package/dist/api/resources/forcedAlignment/client/index.d.ts +1 -0
  606. package/dist/api/resources/history/client/Client.d.ts +5 -4
  607. package/dist/api/resources/history/client/Client.js +11 -28
  608. package/dist/api/resources/history/client/index.d.ts +1 -0
  609. package/dist/api/resources/index.d.ts +6 -0
  610. package/dist/api/resources/index.js +7 -1
  611. package/dist/api/resources/models/client/Client.d.ts +3 -1
  612. package/dist/api/resources/models/client/Client.js +3 -6
  613. package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +4 -3
  614. package/dist/api/resources/pronunciationDictionaries/client/Client.js +11 -26
  615. package/dist/api/resources/pronunciationDictionaries/client/index.d.ts +1 -0
  616. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +3 -1
  617. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -8
  618. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/index.d.ts +1 -0
  619. package/dist/api/resources/samples/client/Client.d.ts +3 -1
  620. package/dist/api/resources/samples/client/Client.js +3 -6
  621. package/dist/api/resources/speechToSpeech/client/Client.d.ts +5 -4
  622. package/dist/api/resources/speechToSpeech/client/Client.js +5 -8
  623. package/dist/api/resources/speechToSpeech/client/index.d.ts +1 -0
  624. package/dist/api/resources/speechToText/client/Client.d.ts +4 -4
  625. package/dist/api/resources/speechToText/client/Client.js +46 -10
  626. package/dist/api/resources/speechToText/client/index.d.ts +1 -0
  627. package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -0
  628. package/dist/api/resources/studio/client/Client.d.ts +4 -2
  629. package/dist/api/resources/studio/client/Client.js +4 -5
  630. package/dist/api/resources/studio/client/index.d.ts +1 -0
  631. package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +58 -3
  632. package/dist/api/resources/studio/resources/projects/client/Client.d.ts +3 -1
  633. package/dist/api/resources/studio/resources/projects/client/Client.js +16 -32
  634. package/dist/api/resources/studio/resources/projects/client/index.d.ts +1 -0
  635. package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +59 -2
  636. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +3 -1
  637. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -32
  638. package/dist/api/resources/studio/resources/projects/resources/chapters/client/index.d.ts +1 -0
  639. package/dist/api/resources/studio/resources/projects/resources/chapters/client/requests/BodyCreateChapterV1StudioProjectsProjectIdChaptersPost.d.ts +1 -1
  640. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +4 -3
  641. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -16
  642. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/index.d.ts +1 -0
  643. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +3 -1
  644. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -4
  645. package/dist/api/resources/studio/resources/projects/resources/content/client/index.d.ts +1 -0
  646. package/dist/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +1 -1
  647. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +3 -1
  648. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -4
  649. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/index.d.ts +1 -0
  650. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +5 -4
  651. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -22
  652. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/index.d.ts +1 -0
  653. package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostDurationScale.d.ts +1 -1
  654. package/dist/api/resources/textToDialogue/client/Client.d.ts +45 -0
  655. package/dist/api/resources/textToDialogue/client/Client.js +209 -0
  656. package/dist/api/resources/textToDialogue/client/index.d.ts +2 -0
  657. package/dist/api/resources/textToDialogue/client/index.js +17 -0
  658. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +32 -0
  659. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js +5 -0
  660. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +32 -0
  661. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js +5 -0
  662. package/dist/api/resources/textToDialogue/client/requests/index.d.ts +2 -0
  663. package/dist/api/resources/textToDialogue/client/requests/index.js +2 -0
  664. package/dist/api/resources/textToDialogue/index.d.ts +2 -0
  665. package/dist/api/resources/textToDialogue/index.js +18 -0
  666. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +28 -0
  667. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +27 -0
  668. package/dist/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +28 -0
  669. package/dist/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +27 -0
  670. package/dist/api/resources/textToDialogue/types/index.d.ts +2 -0
  671. package/dist/api/resources/textToDialogue/types/index.js +18 -0
  672. package/dist/api/resources/textToSoundEffects/client/Client.d.ts +4 -3
  673. package/dist/api/resources/textToSoundEffects/client/Client.js +3 -4
  674. package/dist/api/resources/textToSoundEffects/client/index.d.ts +1 -0
  675. package/dist/api/resources/textToSpeech/client/Client.d.ts +5 -4
  676. package/dist/api/resources/textToSpeech/client/Client.js +9 -16
  677. package/dist/api/resources/textToSpeech/client/index.d.ts +1 -0
  678. package/dist/api/resources/textToVoice/client/Client.d.ts +3 -1
  679. package/dist/api/resources/textToVoice/client/Client.js +5 -8
  680. package/dist/api/resources/textToVoice/client/index.d.ts +1 -0
  681. package/dist/api/resources/usage/client/Client.d.ts +3 -1
  682. package/dist/api/resources/usage/client/Client.js +3 -6
  683. package/dist/api/resources/usage/client/index.d.ts +1 -0
  684. package/dist/api/resources/user/client/Client.d.ts +3 -1
  685. package/dist/api/resources/user/client/Client.js +3 -6
  686. package/dist/api/resources/user/resources/subscription/client/Client.d.ts +3 -1
  687. package/dist/api/resources/user/resources/subscription/client/Client.js +3 -6
  688. package/dist/api/resources/voices/client/Client.d.ts +4 -2
  689. package/dist/api/resources/voices/client/Client.js +22 -44
  690. package/dist/api/resources/voices/client/index.d.ts +1 -0
  691. package/dist/api/resources/voices/client/requests/VoicesGetSharedRequest.d.ts +4 -0
  692. package/dist/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +1 -1
  693. package/dist/api/resources/voices/resources/ivc/client/Client.d.ts +3 -1
  694. package/dist/api/resources/voices/resources/ivc/client/Client.js +3 -4
  695. package/dist/api/resources/voices/resources/ivc/client/index.d.ts +1 -0
  696. package/dist/api/resources/voices/resources/pvc/client/Client.d.ts +3 -1
  697. package/dist/api/resources/voices/resources/pvc/client/Client.js +7 -12
  698. package/dist/api/resources/voices/resources/pvc/client/index.d.ts +1 -0
  699. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +3 -1
  700. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -14
  701. package/dist/api/resources/voices/resources/pvc/resources/samples/client/index.d.ts +1 -0
  702. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +3 -1
  703. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +3 -6
  704. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +3 -1
  705. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -12
  706. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +3 -1
  707. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -6
  708. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +3 -1
  709. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -6
  710. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +3 -1
  711. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -4
  712. package/dist/api/resources/voices/resources/pvc/resources/verification/client/index.d.ts +1 -0
  713. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +3 -1
  714. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -10
  715. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/index.d.ts +1 -0
  716. package/dist/api/resources/voices/resources/samples/client/Client.d.ts +2 -0
  717. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +4 -3
  718. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -6
  719. package/dist/api/resources/voices/resources/settings/client/Client.d.ts +4 -2
  720. package/dist/api/resources/voices/resources/settings/client/Client.js +8 -17
  721. package/dist/api/resources/webhooks/client/Client.d.ts +48 -0
  722. package/dist/api/resources/webhooks/client/Client.js +142 -0
  723. package/dist/api/resources/webhooks/client/index.d.ts +2 -0
  724. package/dist/api/resources/webhooks/client/index.js +17 -0
  725. package/dist/api/resources/webhooks/client/requests/WebhooksListRequest.d.ts +15 -0
  726. package/dist/api/resources/webhooks/client/requests/WebhooksListRequest.js +5 -0
  727. package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -0
  728. package/dist/api/resources/webhooks/client/requests/index.js +2 -0
  729. package/dist/api/resources/webhooks/index.d.ts +1 -0
  730. package/dist/api/resources/webhooks/index.js +17 -0
  731. package/dist/api/resources/workspace/client/Client.d.ts +30 -0
  732. package/dist/api/resources/workspace/client/Client.js +121 -0
  733. package/dist/api/resources/workspace/client/index.d.ts +1 -0
  734. package/dist/api/resources/workspace/client/index.js +15 -0
  735. package/dist/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
  736. package/dist/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +5 -0
  737. package/dist/api/resources/workspace/client/requests/index.d.ts +1 -0
  738. package/dist/api/resources/workspace/client/requests/index.js +2 -0
  739. package/dist/api/resources/workspace/resources/groups/client/Client.d.ts +3 -1
  740. package/dist/api/resources/workspace/resources/groups/client/Client.js +3 -6
  741. package/dist/api/resources/workspace/resources/groups/client/index.d.ts +1 -0
  742. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +3 -1
  743. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -8
  744. package/dist/api/resources/workspace/resources/groups/resources/members/client/index.d.ts +1 -0
  745. package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +3 -1
  746. package/dist/api/resources/workspace/resources/invites/client/Client.js +7 -12
  747. package/dist/api/resources/workspace/resources/invites/client/index.d.ts +1 -0
  748. package/dist/api/resources/workspace/resources/members/client/Client.d.ts +3 -1
  749. package/dist/api/resources/workspace/resources/members/client/Client.js +5 -8
  750. package/dist/api/resources/workspace/resources/members/client/index.d.ts +1 -0
  751. package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +3 -1
  752. package/dist/api/resources/workspace/resources/resources/client/Client.js +7 -14
  753. package/dist/api/resources/workspace/resources/resources/client/index.d.ts +1 -0
  754. package/dist/api/types/AddKnowledgeBaseResponseModel.d.ts +0 -1
  755. package/dist/api/types/AddProjectRequest.d.ts +60 -3
  756. package/dist/api/types/AgentCallLimits.d.ts +2 -0
  757. package/dist/api/types/AgentConfigOverride.d.ts +4 -4
  758. package/dist/api/types/AgentConfigOverrideConfig.d.ts +4 -4
  759. package/dist/api/types/AuthorizationMethod.d.ts +2 -1
  760. package/dist/api/types/AuthorizationMethod.js +1 -0
  761. package/dist/api/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.d.ts +1 -1
  762. package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +57 -2
  763. package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.d.ts +1 -1
  764. package/dist/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +2 -2
  765. package/dist/api/types/BuiltInTools.d.ts +16 -0
  766. package/dist/api/types/BuiltInTools.js +5 -0
  767. package/dist/api/types/ChapterContentBlockInputModel.d.ts +1 -1
  768. package/dist/api/types/ClientEvent.d.ts +4 -1
  769. package/dist/api/types/ClientEvent.js +3 -0
  770. package/dist/api/types/ConvAiUserSecretDbModel.d.ts +12 -0
  771. package/dist/api/types/ConvAiUserSecretDbModel.js +5 -0
  772. package/dist/api/types/ConversationChargingCommonModel.d.ts +1 -0
  773. package/dist/api/types/ConversationConfigClientOverrideConfigInput.d.ts +4 -4
  774. package/dist/api/types/ConversationConfigClientOverrideConfigOutput.d.ts +4 -4
  775. package/dist/api/types/ConversationConfigClientOverrideInput.d.ts +4 -4
  776. package/dist/api/types/ConversationConfigClientOverrideOutput.d.ts +4 -4
  777. package/dist/api/types/ConversationConfigOverride.d.ts +1 -0
  778. package/dist/api/types/ConversationConfigOverrideConfig.d.ts +1 -1
  779. package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
  780. package/dist/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
  781. package/dist/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
  782. package/dist/api/types/ConversationSimulationSpecification.d.ts +1 -0
  783. package/dist/api/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +4 -0
  784. package/dist/api/types/ConversationSimulationSpecificationDynamicVariablesValue.js +5 -0
  785. package/dist/api/types/ConversationalConfig.d.ts +1 -1
  786. package/dist/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
  787. package/dist/api/types/CustomLlm.d.ts +2 -0
  788. package/dist/api/types/CustomLlmRequestHeadersValue.d.ts +5 -0
  789. package/dist/api/types/CustomLlmRequestHeadersValue.js +5 -0
  790. package/dist/api/types/DialogueInput.d.ts +9 -0
  791. package/dist/api/types/DialogueInput.js +5 -0
  792. package/dist/api/types/DialogueInputResponseModel.d.ts +11 -0
  793. package/dist/api/types/DialogueInputResponseModel.js +5 -0
  794. package/dist/api/types/EmbedVariant.d.ts +2 -1
  795. package/dist/api/types/EmbedVariant.js +1 -0
  796. package/dist/api/types/FeatureStatusCommonModel.d.ts +7 -0
  797. package/dist/api/types/FeatureStatusCommonModel.js +5 -0
  798. package/dist/api/types/FeaturesUsageCommonModel.d.ts +12 -0
  799. package/dist/api/types/FeaturesUsageCommonModel.js +5 -0
  800. package/dist/api/types/GetAgentEmbedResponseModel.d.ts +1 -1
  801. package/dist/api/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -1
  802. package/dist/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +1 -1
  803. package/dist/api/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +1 -1
  804. package/dist/api/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +1 -1
  805. package/dist/api/types/GetKnowledgeBaseTextResponseModel.d.ts +1 -1
  806. package/dist/api/types/GetKnowledgeBaseUrlResponseModel.d.ts +1 -1
  807. package/dist/api/types/IntegrationType.d.ts +8 -0
  808. package/dist/api/types/IntegrationType.js +10 -0
  809. package/dist/api/types/InvoiceResponse.d.ts +2 -0
  810. package/dist/api/types/ListMcpToolsResponseModel.d.ts +15 -0
  811. package/dist/api/types/ListMcpToolsResponseModel.js +5 -0
  812. package/dist/api/types/Llm.d.ts +28 -3
  813. package/dist/api/types/Llm.js +27 -2
  814. package/dist/api/types/McpApprovalPolicy.d.ts +12 -0
  815. package/dist/api/types/McpApprovalPolicy.js +11 -0
  816. package/dist/api/types/McpServerConfigInput.d.ts +19 -0
  817. package/dist/api/types/McpServerConfigInput.js +5 -0
  818. package/dist/api/types/McpServerConfigInputRequestHeadersValue.d.ts +5 -0
  819. package/dist/api/types/McpServerConfigInputRequestHeadersValue.js +5 -0
  820. package/dist/api/types/McpServerConfigInputSecretToken.d.ts +8 -0
  821. package/dist/api/types/McpServerConfigInputSecretToken.js +5 -0
  822. package/dist/api/types/McpServerConfigInputUrl.d.ts +8 -0
  823. package/dist/api/types/McpServerConfigInputUrl.js +5 -0
  824. package/dist/api/types/McpServerConfigOutput.d.ts +19 -0
  825. package/dist/api/types/McpServerConfigOutput.js +5 -0
  826. package/dist/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +5 -0
  827. package/dist/api/types/McpServerConfigOutputRequestHeadersValue.js +5 -0
  828. package/dist/api/types/McpServerConfigOutputSecretToken.d.ts +8 -0
  829. package/dist/api/types/McpServerConfigOutputSecretToken.js +5 -0
  830. package/dist/api/types/McpServerConfigOutputUrl.d.ts +8 -0
  831. package/dist/api/types/McpServerConfigOutputUrl.js +5 -0
  832. package/dist/api/types/McpServerMetadataResponseModel.d.ts +7 -0
  833. package/dist/api/types/McpServerMetadataResponseModel.js +5 -0
  834. package/dist/api/types/McpServerResponseModel.d.ts +17 -0
  835. package/dist/api/types/McpServerResponseModel.js +5 -0
  836. package/dist/api/types/McpServerResponseModelDependentAgentsItem.d.ts +13 -0
  837. package/dist/api/types/McpServerResponseModelDependentAgentsItem.js +5 -0
  838. package/dist/api/types/McpServerTransport.d.ts +11 -0
  839. package/dist/api/types/McpServerTransport.js +10 -0
  840. package/dist/api/types/McpServersResponseModel.d.ts +10 -0
  841. package/dist/api/types/McpServersResponseModel.js +5 -0
  842. package/dist/api/types/McpToolApprovalHash.d.ts +15 -0
  843. package/dist/api/types/McpToolApprovalHash.js +5 -0
  844. package/dist/api/types/McpToolApprovalPolicy.d.ts +11 -0
  845. package/dist/api/types/McpToolApprovalPolicy.js +10 -0
  846. package/dist/api/types/McpToolConfigInput.d.ts +11 -1
  847. package/dist/api/types/McpToolConfigOutput.d.ts +11 -1
  848. package/dist/api/types/ModelSettingsResponseModel.d.ts +9 -0
  849. package/dist/api/types/ModelSettingsResponseModel.js +5 -0
  850. package/dist/api/types/PromptAgentDbModel.d.ts +1 -0
  851. package/dist/api/types/PromptAgentDbModelToolsItem.d.ts +1 -4
  852. package/dist/api/types/PromptAgentInputToolsItem.d.ts +1 -4
  853. package/dist/api/types/PromptAgentOutputToolsItem.d.ts +1 -4
  854. package/dist/api/types/PromptAgentOverride.d.ts +1 -1
  855. package/dist/api/types/PromptAgentOverrideConfig.d.ts +1 -1
  856. package/dist/api/types/PronunciationDictionaryLocator.d.ts +1 -1
  857. package/dist/api/types/RagConfig.d.ts +2 -0
  858. package/dist/api/types/{RagIndexResponseModel.d.ts → RagDocumentIndexResponseModel.d.ts} +4 -1
  859. package/dist/api/types/RagDocumentIndexResponseModel.js +5 -0
  860. package/dist/api/types/RagDocumentIndexUsage.d.ts +6 -0
  861. package/dist/api/types/RagDocumentIndexUsage.js +5 -0
  862. package/dist/api/types/RagDocumentIndexesResponseModel.d.ts +7 -0
  863. package/dist/api/types/RagDocumentIndexesResponseModel.js +5 -0
  864. package/dist/api/types/RagIndexOverviewEmbeddingModelResponseModel.d.ts +8 -0
  865. package/dist/api/types/RagIndexOverviewEmbeddingModelResponseModel.js +5 -0
  866. package/dist/api/types/RagIndexOverviewResponseModel.d.ts +9 -0
  867. package/dist/api/types/RagIndexOverviewResponseModel.js +5 -0
  868. package/dist/api/types/RagIndexStatus.d.ts +3 -1
  869. package/dist/api/types/RagIndexStatus.js +2 -0
  870. package/dist/api/types/SkipTurnToolConfig.d.ts +16 -0
  871. package/dist/api/types/SkipTurnToolConfig.js +5 -0
  872. package/dist/api/types/SpeechHistoryItemResponse.d.ts +5 -3
  873. package/dist/api/types/Subscription.d.ts +1 -1
  874. package/dist/api/types/SubscriptionResponse.d.ts +1 -1
  875. package/dist/api/types/{SubscriptionStatus.d.ts → SubscriptionStatusType.d.ts} +4 -7
  876. package/{api/types/SubscriptionStatus.js → dist/api/types/SubscriptionStatusType.js} +4 -4
  877. package/dist/api/types/SupportedVoice.d.ts +15 -0
  878. package/dist/api/types/SupportedVoice.js +5 -0
  879. package/dist/api/types/SystemToolConfigInputParams.d.ts +4 -1
  880. package/dist/api/types/SystemToolConfigOutputParams.d.ts +4 -1
  881. package/dist/api/types/Tool.d.ts +15 -0
  882. package/dist/api/types/Tool.js +5 -0
  883. package/dist/api/types/ToolAnnotations.d.ts +22 -0
  884. package/dist/api/types/ToolAnnotations.js +5 -0
  885. package/dist/api/types/TransferToNumberToolConfig.d.ts +2 -0
  886. package/{api/types/TtsConversationalConfig.d.ts → dist/api/types/TtsConversationalConfigInput.d.ts} +3 -1
  887. package/dist/api/types/TtsConversationalConfigInput.js +5 -0
  888. package/dist/api/types/TtsConversationalConfigOutput.d.ts +24 -0
  889. package/dist/api/types/TtsConversationalConfigOutput.js +5 -0
  890. package/dist/api/types/TtsConversationalConfigOverride.d.ts +1 -0
  891. package/dist/api/types/TtsConversationalConfigOverrideConfig.d.ts +1 -1
  892. package/dist/api/types/TtsModelFamily.d.ts +9 -0
  893. package/dist/api/types/TtsModelFamily.js +11 -0
  894. package/dist/api/types/User.d.ts +1 -1
  895. package/dist/api/types/VoiceDesignPreviewResponse.d.ts +2 -0
  896. package/dist/api/types/VoicePreviewResponseModel.d.ts +4 -0
  897. package/dist/api/types/VoiceSettings.d.ts +2 -2
  898. package/dist/api/types/WebhookAuthMethodType.d.ts +8 -0
  899. package/dist/api/types/WebhookAuthMethodType.js +10 -0
  900. package/dist/api/types/WebhookUsageType.d.ts +10 -0
  901. package/dist/api/types/WebhookUsageType.js +12 -0
  902. package/dist/api/types/WidgetConfig.d.ts +15 -1
  903. package/{api/types/WidgetConfigAvatar.d.ts → dist/api/types/WidgetConfigInputAvatar.d.ts} +2 -2
  904. package/dist/api/types/WidgetConfigInputAvatar.js +5 -0
  905. package/dist/api/types/WidgetConfigOutputAvatar.d.ts +19 -0
  906. package/dist/api/types/WidgetConfigOutputAvatar.js +5 -0
  907. package/dist/api/types/{WidgetConfigResponseModel.d.ts → WidgetConfigResponse.d.ts} +18 -1
  908. package/dist/api/types/WidgetConfigResponse.js +5 -0
  909. package/dist/api/types/WidgetLanguagePreset.d.ts +8 -0
  910. package/dist/api/types/WidgetLanguagePreset.js +5 -0
  911. package/dist/api/types/WidgetLanguagePresetResponse.d.ts +9 -0
  912. package/dist/api/types/WidgetLanguagePresetResponse.js +5 -0
  913. package/dist/api/types/WidgetPlacement.d.ts +12 -0
  914. package/dist/api/types/WidgetPlacement.js +14 -0
  915. package/dist/api/types/WidgetStyles.d.ts +45 -0
  916. package/dist/api/types/WidgetStyles.js +5 -0
  917. package/dist/api/types/WidgetTextContents.d.ts +47 -0
  918. package/dist/api/types/WidgetTextContents.js +5 -0
  919. package/dist/api/types/WorkspaceResourceType.d.ts +2 -2
  920. package/dist/api/types/WorkspaceResourceType.js +1 -1
  921. package/dist/api/types/WorkspaceWebhookListResponseModel.d.ts +8 -0
  922. package/dist/api/types/WorkspaceWebhookListResponseModel.js +5 -0
  923. package/dist/api/types/WorkspaceWebhookResponseModel.d.ts +26 -0
  924. package/dist/api/types/WorkspaceWebhookResponseModel.js +5 -0
  925. package/dist/api/types/WorkspaceWebhookUsageResponseModel.d.ts +7 -0
  926. package/dist/api/types/WorkspaceWebhookUsageResponseModel.js +5 -0
  927. package/dist/api/types/index.d.ts +53 -8
  928. package/dist/api/types/index.js +53 -8
  929. package/dist/core/fetcher/Fetcher.d.ts +2 -1
  930. package/dist/core/fetcher/Fetcher.js +22 -9
  931. package/dist/core/form-data-utils/FormDataWrapper.js +5 -4
  932. package/dist/core/form-data-utils/toReadableStream.d.ts +1 -0
  933. package/dist/core/form-data-utils/toReadableStream.js +28 -0
  934. package/dist/core/headers.d.ts +3 -0
  935. package/dist/core/headers.js +29 -0
  936. package/dist/core/index.d.ts +1 -1
  937. package/dist/core/index.js +1 -1
  938. package/dist/core/runtime/runtime.js +0 -1
  939. package/dist/core/{streaming-fetcher → stream}/Stream.d.ts +1 -2
  940. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +4 -2
  941. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +4 -2
  942. package/dist/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
  943. package/dist/serialization/resources/conversationalAi/resources/index.js +3 -1
  944. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/index.d.ts +1 -0
  945. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
  946. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +13 -0
  947. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js +44 -0
  948. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  949. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.js +5 -0
  950. package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
  951. package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.js +18 -0
  952. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +1 -0
  953. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
  954. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +13 -0
  955. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js +44 -0
  956. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
  957. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +5 -0
  958. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
  959. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
  960. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +4 -0
  961. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +43 -0
  962. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +1 -0
  963. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
  964. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +16 -0
  965. package/{serialization/types/NativeMcpToolConfigInput.js → dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js} +8 -11
  966. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
  967. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +5 -0
  968. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
  969. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
  970. package/dist/serialization/resources/index.d.ts +4 -0
  971. package/dist/serialization/resources/index.js +5 -1
  972. package/dist/serialization/resources/textToDialogue/client/index.d.ts +1 -0
  973. package/dist/serialization/resources/textToDialogue/client/index.js +17 -0
  974. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +19 -0
  975. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js +50 -0
  976. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +19 -0
  977. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js +50 -0
  978. package/dist/serialization/resources/textToDialogue/client/requests/index.d.ts +2 -0
  979. package/dist/serialization/resources/textToDialogue/client/requests/index.js +7 -0
  980. package/dist/serialization/resources/textToDialogue/index.d.ts +2 -0
  981. package/dist/serialization/resources/textToDialogue/index.js +18 -0
  982. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +10 -0
  983. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +61 -0
  984. package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +10 -0
  985. package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +61 -0
  986. package/dist/serialization/resources/textToDialogue/types/index.d.ts +2 -0
  987. package/dist/serialization/resources/textToDialogue/types/index.js +18 -0
  988. package/dist/serialization/resources/workspace/client/index.d.ts +1 -0
  989. package/dist/serialization/resources/workspace/client/index.js +17 -0
  990. package/dist/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
  991. package/dist/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +43 -0
  992. package/dist/serialization/resources/workspace/client/requests/index.d.ts +1 -0
  993. package/dist/serialization/resources/workspace/client/requests/index.js +5 -0
  994. package/dist/serialization/resources/workspace/index.d.ts +1 -0
  995. package/dist/serialization/resources/workspace/index.js +1 -0
  996. package/dist/serialization/types/AddKnowledgeBaseResponseModel.d.ts +0 -1
  997. package/dist/serialization/types/AddKnowledgeBaseResponseModel.js +0 -1
  998. package/dist/serialization/types/AddProjectRequest.d.ts +1 -0
  999. package/dist/serialization/types/AddProjectRequest.js +1 -0
  1000. package/dist/serialization/types/AgentCallLimits.d.ts +1 -0
  1001. package/dist/serialization/types/AgentCallLimits.js +1 -0
  1002. package/dist/serialization/types/AgentConfigOverride.d.ts +1 -1
  1003. package/dist/serialization/types/AgentConfigOverride.js +1 -1
  1004. package/dist/serialization/types/AgentConfigOverrideConfig.d.ts +1 -1
  1005. package/dist/serialization/types/AgentConfigOverrideConfig.js +1 -1
  1006. package/dist/serialization/types/AuthorizationMethod.d.ts +1 -1
  1007. package/dist/serialization/types/AuthorizationMethod.js +1 -0
  1008. package/dist/serialization/types/BuiltInTools.d.ts +17 -0
  1009. package/dist/serialization/types/{NativeMcpToolConfigOutput.js → BuiltInTools.js} +8 -10
  1010. package/dist/serialization/types/ChapterContentBlockInputModel.d.ts +1 -1
  1011. package/dist/serialization/types/ChapterContentBlockInputModel.js +1 -1
  1012. package/dist/serialization/types/ClientEvent.d.ts +1 -1
  1013. package/dist/serialization/types/ClientEvent.js +3 -0
  1014. package/dist/serialization/types/ConvAiUserSecretDbModel.d.ts +15 -0
  1015. package/dist/serialization/types/ConvAiUserSecretDbModel.js +46 -0
  1016. package/dist/serialization/types/ConversationChargingCommonModel.d.ts +1 -0
  1017. package/dist/serialization/types/ConversationChargingCommonModel.js +1 -0
  1018. package/dist/serialization/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -2
  1019. package/dist/serialization/types/ConversationConfigClientOverrideConfigInput.js +2 -2
  1020. package/dist/serialization/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -2
  1021. package/dist/serialization/types/ConversationConfigClientOverrideConfigOutput.js +2 -2
  1022. package/dist/serialization/types/ConversationConfigClientOverrideInput.d.ts +2 -2
  1023. package/dist/serialization/types/ConversationConfigClientOverrideInput.js +2 -2
  1024. package/dist/serialization/types/ConversationConfigClientOverrideOutput.d.ts +2 -2
  1025. package/dist/serialization/types/ConversationConfigClientOverrideOutput.js +2 -2
  1026. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +3 -0
  1027. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +3 -0
  1028. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
  1029. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
  1030. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
  1031. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
  1032. package/dist/serialization/types/ConversationSimulationSpecification.d.ts +2 -0
  1033. package/dist/serialization/types/ConversationSimulationSpecification.js +4 -0
  1034. package/dist/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +10 -0
  1035. package/dist/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.js +46 -0
  1036. package/dist/serialization/types/ConversationalConfig.d.ts +2 -2
  1037. package/dist/serialization/types/ConversationalConfig.js +2 -2
  1038. package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +1 -0
  1039. package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.js +1 -0
  1040. package/dist/serialization/types/CustomLlm.d.ts +2 -0
  1041. package/dist/serialization/types/CustomLlm.js +2 -0
  1042. package/dist/serialization/types/CustomLlmRequestHeadersValue.d.ts +12 -0
  1043. package/dist/serialization/types/CustomLlmRequestHeadersValue.js +43 -0
  1044. package/dist/serialization/types/DialogueInput.d.ts +13 -0
  1045. package/dist/serialization/types/DialogueInput.js +44 -0
  1046. package/dist/serialization/types/DialogueInputResponseModel.d.ts +14 -0
  1047. package/dist/serialization/types/DialogueInputResponseModel.js +45 -0
  1048. package/dist/serialization/types/EmbedVariant.d.ts +1 -1
  1049. package/dist/serialization/types/EmbedVariant.js +1 -1
  1050. package/dist/serialization/types/FeatureStatusCommonModel.d.ts +13 -0
  1051. package/dist/serialization/types/FeatureStatusCommonModel.js +44 -0
  1052. package/dist/serialization/types/FeaturesUsageCommonModel.d.ts +18 -0
  1053. package/dist/serialization/types/FeaturesUsageCommonModel.js +49 -0
  1054. package/dist/serialization/types/GetAgentEmbedResponseModel.d.ts +2 -2
  1055. package/dist/serialization/types/GetAgentEmbedResponseModel.js +2 -2
  1056. package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +2 -1
  1057. package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.js +2 -1
  1058. package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -1
  1059. package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +2 -1
  1060. package/dist/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +2 -1
  1061. package/dist/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.js +2 -1
  1062. package/dist/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +2 -1
  1063. package/dist/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.js +2 -1
  1064. package/dist/serialization/types/GetKnowledgeBaseTextResponseModel.d.ts +2 -1
  1065. package/dist/serialization/types/GetKnowledgeBaseTextResponseModel.js +2 -1
  1066. package/dist/serialization/types/GetKnowledgeBaseUrlResponseModel.d.ts +2 -1
  1067. package/dist/serialization/types/GetKnowledgeBaseUrlResponseModel.js +2 -1
  1068. package/dist/serialization/types/IntegrationType.d.ts +10 -0
  1069. package/dist/serialization/types/IntegrationType.js +41 -0
  1070. package/dist/serialization/types/InvoiceResponse.d.ts +1 -0
  1071. package/dist/serialization/types/InvoiceResponse.js +1 -0
  1072. package/dist/serialization/types/ListMcpToolsResponseModel.d.ts +15 -0
  1073. package/dist/serialization/types/ListMcpToolsResponseModel.js +46 -0
  1074. package/dist/serialization/types/Llm.d.ts +1 -1
  1075. package/dist/serialization/types/Llm.js +27 -2
  1076. package/dist/serialization/types/McpApprovalPolicy.d.ts +10 -0
  1077. package/dist/serialization/types/McpApprovalPolicy.js +41 -0
  1078. package/dist/serialization/types/McpServerConfigInput.d.ts +25 -0
  1079. package/dist/serialization/types/McpServerConfigInput.js +56 -0
  1080. package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +11 -0
  1081. package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.js +42 -0
  1082. package/dist/serialization/types/McpServerConfigInputSecretToken.d.ts +12 -0
  1083. package/dist/serialization/types/McpServerConfigInputSecretToken.js +43 -0
  1084. package/dist/serialization/types/McpServerConfigInputUrl.d.ts +11 -0
  1085. package/dist/serialization/types/McpServerConfigInputUrl.js +42 -0
  1086. package/dist/serialization/types/McpServerConfigOutput.d.ts +25 -0
  1087. package/dist/serialization/types/McpServerConfigOutput.js +56 -0
  1088. package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +11 -0
  1089. package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.js +42 -0
  1090. package/dist/serialization/types/McpServerConfigOutputSecretToken.d.ts +12 -0
  1091. package/dist/serialization/types/McpServerConfigOutputSecretToken.js +43 -0
  1092. package/dist/serialization/types/McpServerConfigOutputUrl.d.ts +11 -0
  1093. package/dist/serialization/types/McpServerConfigOutputUrl.js +42 -0
  1094. package/dist/serialization/types/McpServerMetadataResponseModel.d.ts +13 -0
  1095. package/dist/serialization/types/McpServerMetadataResponseModel.js +44 -0
  1096. package/dist/serialization/types/McpServerResponseModel.d.ts +20 -0
  1097. package/dist/serialization/types/McpServerResponseModel.js +51 -0
  1098. package/dist/serialization/types/McpServerResponseModelDependentAgentsItem.d.ts +18 -0
  1099. package/dist/serialization/types/McpServerResponseModelDependentAgentsItem.js +51 -0
  1100. package/dist/serialization/types/McpServerTransport.d.ts +10 -0
  1101. package/dist/serialization/types/McpServerTransport.js +41 -0
  1102. package/dist/serialization/types/McpServersResponseModel.d.ts +13 -0
  1103. package/dist/serialization/types/McpServersResponseModel.js +44 -0
  1104. package/dist/serialization/types/McpToolApprovalHash.d.ts +15 -0
  1105. package/dist/serialization/types/McpToolApprovalHash.js +46 -0
  1106. package/dist/serialization/types/McpToolApprovalPolicy.d.ts +10 -0
  1107. package/dist/serialization/types/McpToolApprovalPolicy.js +41 -0
  1108. package/dist/serialization/types/McpToolConfigInput.d.ts +7 -0
  1109. package/dist/serialization/types/McpToolConfigInput.js +7 -0
  1110. package/dist/serialization/types/McpToolConfigOutput.d.ts +7 -0
  1111. package/dist/serialization/types/McpToolConfigOutput.js +7 -0
  1112. package/dist/serialization/types/ModelSettingsResponseModel.d.ts +13 -0
  1113. package/dist/serialization/types/ModelSettingsResponseModel.js +44 -0
  1114. package/dist/serialization/types/PromptAgentDbModel.d.ts +2 -0
  1115. package/dist/serialization/types/PromptAgentDbModel.js +2 -0
  1116. package/dist/serialization/types/PromptAgentDbModelToolsItem.d.ts +1 -5
  1117. package/dist/serialization/types/PromptAgentDbModelToolsItem.js +0 -2
  1118. package/dist/serialization/types/PromptAgentInputToolsItem.d.ts +1 -5
  1119. package/dist/serialization/types/PromptAgentInputToolsItem.js +0 -2
  1120. package/dist/serialization/types/PromptAgentOutputToolsItem.d.ts +1 -5
  1121. package/dist/serialization/types/PromptAgentOutputToolsItem.js +0 -2
  1122. package/dist/serialization/types/PronunciationDictionaryLocator.d.ts +1 -1
  1123. package/dist/serialization/types/PronunciationDictionaryLocator.js +1 -1
  1124. package/dist/serialization/types/RagConfig.d.ts +1 -0
  1125. package/dist/serialization/types/RagConfig.js +1 -0
  1126. package/dist/serialization/types/RagDocumentIndexResponseModel.d.ts +19 -0
  1127. package/dist/serialization/types/RagDocumentIndexResponseModel.js +50 -0
  1128. package/dist/serialization/types/RagDocumentIndexUsage.d.ts +12 -0
  1129. package/dist/serialization/types/RagDocumentIndexUsage.js +43 -0
  1130. package/dist/serialization/types/RagDocumentIndexesResponseModel.d.ts +13 -0
  1131. package/{serialization/types/RagIndexResponseModel.js → dist/serialization/types/RagDocumentIndexesResponseModel.js} +4 -5
  1132. package/dist/serialization/types/RagIndexOverviewEmbeddingModelResponseModel.d.ts +14 -0
  1133. package/dist/serialization/types/RagIndexOverviewEmbeddingModelResponseModel.js +45 -0
  1134. package/dist/serialization/types/RagIndexOverviewResponseModel.d.ts +15 -0
  1135. package/dist/serialization/types/RagIndexOverviewResponseModel.js +46 -0
  1136. package/dist/serialization/types/RagIndexStatus.d.ts +1 -1
  1137. package/dist/serialization/types/RagIndexStatus.js +8 -1
  1138. package/dist/serialization/types/SkipTurnToolConfig.d.ts +11 -0
  1139. package/dist/serialization/types/SkipTurnToolConfig.js +41 -0
  1140. package/dist/serialization/types/SpeechHistoryItemResponse.d.ts +5 -3
  1141. package/dist/serialization/types/SpeechHistoryItemResponse.js +5 -3
  1142. package/dist/serialization/types/Subscription.d.ts +2 -2
  1143. package/dist/serialization/types/Subscription.js +2 -2
  1144. package/dist/serialization/types/SubscriptionResponse.d.ts +2 -2
  1145. package/dist/serialization/types/SubscriptionResponse.js +2 -2
  1146. package/dist/serialization/types/{SubscriptionStatus.d.ts → SubscriptionStatusType.d.ts} +3 -3
  1147. package/dist/serialization/types/{SubscriptionStatus.js → SubscriptionStatusType.js} +4 -4
  1148. package/dist/serialization/types/SupportedVoice.d.ts +22 -0
  1149. package/dist/serialization/types/SupportedVoice.js +53 -0
  1150. package/dist/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
  1151. package/dist/serialization/types/SystemToolConfigInputParams.js +2 -0
  1152. package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
  1153. package/dist/serialization/types/SystemToolConfigOutputParams.js +2 -0
  1154. package/dist/serialization/types/Tool.d.ts +17 -0
  1155. package/dist/serialization/types/Tool.js +49 -0
  1156. package/dist/serialization/types/ToolAnnotations.d.ts +17 -0
  1157. package/dist/serialization/types/ToolAnnotations.js +49 -0
  1158. package/dist/serialization/types/TransferToNumberToolConfig.d.ts +1 -0
  1159. package/dist/serialization/types/TransferToNumberToolConfig.js +1 -0
  1160. package/{serialization/types/TtsConversationalConfig.d.ts → dist/serialization/types/TtsConversationalConfigInput.d.ts} +4 -2
  1161. package/{serialization/types/TtsConversationalConfig.js → dist/serialization/types/TtsConversationalConfigInput.js} +4 -2
  1162. package/dist/serialization/types/TtsConversationalConfigOutput.d.ts +25 -0
  1163. package/dist/serialization/types/TtsConversationalConfigOutput.js +56 -0
  1164. package/dist/serialization/types/TtsModelFamily.d.ts +10 -0
  1165. package/dist/serialization/types/TtsModelFamily.js +41 -0
  1166. package/dist/serialization/types/VoiceSettings.d.ts +1 -1
  1167. package/dist/serialization/types/VoiceSettings.js +1 -1
  1168. package/dist/serialization/types/WebhookAuthMethodType.d.ts +10 -0
  1169. package/dist/serialization/types/WebhookAuthMethodType.js +41 -0
  1170. package/dist/serialization/types/WebhookUsageType.d.ts +10 -0
  1171. package/dist/serialization/types/{ExtendedSubscriptionResponseModelStatus.js → WebhookUsageType.js} +6 -10
  1172. package/dist/serialization/types/WidgetConfig.d.ts +13 -2
  1173. package/dist/serialization/types/WidgetConfig.js +13 -2
  1174. package/{serialization/types/WidgetConfigAvatar.d.ts → dist/serialization/types/WidgetConfigInputAvatar.d.ts} +3 -3
  1175. package/{serialization/types/WidgetConfigAvatar.js → dist/serialization/types/WidgetConfigInputAvatar.js} +2 -2
  1176. package/dist/serialization/types/WidgetConfigOutputAvatar.d.ts +22 -0
  1177. package/dist/serialization/types/WidgetConfigOutputAvatar.js +53 -0
  1178. package/dist/serialization/types/{WidgetConfigResponseModel.d.ts → WidgetConfigResponse.d.ts} +15 -2
  1179. package/dist/serialization/types/{WidgetConfigResponseModel.js → WidgetConfigResponse.js} +15 -2
  1180. package/dist/serialization/types/WidgetLanguagePreset.d.ts +13 -0
  1181. package/dist/serialization/types/WidgetLanguagePreset.js +44 -0
  1182. package/dist/serialization/types/WidgetLanguagePresetResponse.d.ts +14 -0
  1183. package/dist/serialization/types/WidgetLanguagePresetResponse.js +45 -0
  1184. package/dist/serialization/types/WidgetPlacement.d.ts +10 -0
  1185. package/dist/serialization/types/WidgetPlacement.js +41 -0
  1186. package/dist/serialization/types/WidgetStyles.d.ts +31 -0
  1187. package/dist/serialization/types/WidgetStyles.js +62 -0
  1188. package/dist/serialization/types/WidgetTextContents.d.ts +32 -0
  1189. package/dist/serialization/types/WidgetTextContents.js +63 -0
  1190. package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
  1191. package/dist/serialization/types/WorkspaceResourceType.js +1 -1
  1192. package/dist/serialization/types/WorkspaceWebhookListResponseModel.d.ts +13 -0
  1193. package/dist/serialization/types/WorkspaceWebhookListResponseModel.js +44 -0
  1194. package/dist/serialization/types/WorkspaceWebhookResponseModel.d.ts +23 -0
  1195. package/{serialization/types/NativeMcpToolConfigOutput.js → dist/serialization/types/WorkspaceWebhookResponseModel.js} +13 -9
  1196. package/dist/serialization/types/WorkspaceWebhookUsageResponseModel.d.ts +13 -0
  1197. package/dist/serialization/types/WorkspaceWebhookUsageResponseModel.js +44 -0
  1198. package/dist/serialization/types/index.d.ts +53 -8
  1199. package/dist/serialization/types/index.js +53 -8
  1200. package/dist/version.d.ts +1 -1
  1201. package/dist/version.js +1 -1
  1202. package/dist/wrapper/ElevenLabsClient.d.ts +4 -3
  1203. package/dist/wrapper/ElevenLabsClient.js +6 -1
  1204. package/dist/wrapper/webhooks.d.ts +4 -3
  1205. package/dist/wrapper/webhooks.js +68 -46
  1206. package/jest.config.mjs +1 -0
  1207. package/package.json +6 -4
  1208. package/reference.md +1487 -405
  1209. package/scripts/rename-to-esm-files.js +10 -2
  1210. package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +4 -2
  1211. package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +4 -2
  1212. package/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
  1213. package/serialization/resources/conversationalAi/resources/index.js +3 -1
  1214. package/serialization/resources/conversationalAi/resources/mcpServers/client/index.d.ts +1 -0
  1215. package/serialization/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
  1216. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +13 -0
  1217. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js +44 -0
  1218. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  1219. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.js +5 -0
  1220. package/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
  1221. package/serialization/resources/conversationalAi/resources/mcpServers/index.js +18 -0
  1222. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +1 -0
  1223. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
  1224. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +13 -0
  1225. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js +44 -0
  1226. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
  1227. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +5 -0
  1228. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
  1229. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
  1230. package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +4 -0
  1231. package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +43 -0
  1232. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +1 -0
  1233. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
  1234. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +16 -0
  1235. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js +47 -0
  1236. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
  1237. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +5 -0
  1238. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
  1239. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
  1240. package/serialization/resources/index.d.ts +4 -0
  1241. package/serialization/resources/index.js +5 -1
  1242. package/serialization/resources/textToDialogue/client/index.d.ts +1 -0
  1243. package/serialization/resources/textToDialogue/client/index.js +17 -0
  1244. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +19 -0
  1245. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js +50 -0
  1246. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +19 -0
  1247. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js +50 -0
  1248. package/serialization/resources/textToDialogue/client/requests/index.d.ts +2 -0
  1249. package/serialization/resources/textToDialogue/client/requests/index.js +7 -0
  1250. package/serialization/resources/textToDialogue/index.d.ts +2 -0
  1251. package/serialization/resources/textToDialogue/index.js +18 -0
  1252. package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +10 -0
  1253. package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +61 -0
  1254. package/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +10 -0
  1255. package/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +61 -0
  1256. package/serialization/resources/textToDialogue/types/index.d.ts +2 -0
  1257. package/serialization/resources/textToDialogue/types/index.js +18 -0
  1258. package/serialization/resources/workspace/client/index.d.ts +1 -0
  1259. package/serialization/resources/workspace/client/index.js +17 -0
  1260. package/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
  1261. package/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +43 -0
  1262. package/serialization/resources/workspace/client/requests/index.d.ts +1 -0
  1263. package/serialization/resources/workspace/client/requests/index.js +5 -0
  1264. package/serialization/resources/workspace/index.d.ts +1 -0
  1265. package/serialization/resources/workspace/index.js +1 -0
  1266. package/serialization/types/AddKnowledgeBaseResponseModel.d.ts +0 -1
  1267. package/serialization/types/AddKnowledgeBaseResponseModel.js +0 -1
  1268. package/serialization/types/AddProjectRequest.d.ts +1 -0
  1269. package/serialization/types/AddProjectRequest.js +1 -0
  1270. package/serialization/types/AgentCallLimits.d.ts +1 -0
  1271. package/serialization/types/AgentCallLimits.js +1 -0
  1272. package/serialization/types/AgentConfigOverride.d.ts +1 -1
  1273. package/serialization/types/AgentConfigOverride.js +1 -1
  1274. package/serialization/types/AgentConfigOverrideConfig.d.ts +1 -1
  1275. package/serialization/types/AgentConfigOverrideConfig.js +1 -1
  1276. package/serialization/types/AuthorizationMethod.d.ts +1 -1
  1277. package/serialization/types/AuthorizationMethod.js +1 -0
  1278. package/serialization/types/BuiltInTools.d.ts +17 -0
  1279. package/{dist/serialization/types/NativeMcpToolConfigInput.js → serialization/types/BuiltInTools.js} +8 -10
  1280. package/serialization/types/ChapterContentBlockInputModel.d.ts +1 -1
  1281. package/serialization/types/ChapterContentBlockInputModel.js +1 -1
  1282. package/serialization/types/ClientEvent.d.ts +1 -1
  1283. package/serialization/types/ClientEvent.js +3 -0
  1284. package/serialization/types/ConvAiUserSecretDbModel.d.ts +15 -0
  1285. package/serialization/types/ConvAiUserSecretDbModel.js +46 -0
  1286. package/serialization/types/ConversationChargingCommonModel.d.ts +1 -0
  1287. package/serialization/types/ConversationChargingCommonModel.js +1 -0
  1288. package/serialization/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -2
  1289. package/serialization/types/ConversationConfigClientOverrideConfigInput.js +2 -2
  1290. package/serialization/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -2
  1291. package/serialization/types/ConversationConfigClientOverrideConfigOutput.js +2 -2
  1292. package/serialization/types/ConversationConfigClientOverrideInput.d.ts +2 -2
  1293. package/serialization/types/ConversationConfigClientOverrideInput.js +2 -2
  1294. package/serialization/types/ConversationConfigClientOverrideOutput.d.ts +2 -2
  1295. package/serialization/types/ConversationConfigClientOverrideOutput.js +2 -2
  1296. package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +3 -0
  1297. package/serialization/types/ConversationHistoryMetadataCommonModel.js +3 -0
  1298. package/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
  1299. package/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
  1300. package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
  1301. package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
  1302. package/serialization/types/ConversationSimulationSpecification.d.ts +2 -0
  1303. package/serialization/types/ConversationSimulationSpecification.js +4 -0
  1304. package/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +10 -0
  1305. package/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.js +46 -0
  1306. package/serialization/types/ConversationalConfig.d.ts +2 -2
  1307. package/serialization/types/ConversationalConfig.js +2 -2
  1308. package/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +1 -0
  1309. package/serialization/types/CreateSipTrunkPhoneNumberRequest.js +1 -0
  1310. package/serialization/types/CustomLlm.d.ts +2 -0
  1311. package/serialization/types/CustomLlm.js +2 -0
  1312. package/serialization/types/CustomLlmRequestHeadersValue.d.ts +12 -0
  1313. package/serialization/types/CustomLlmRequestHeadersValue.js +43 -0
  1314. package/serialization/types/DialogueInput.d.ts +13 -0
  1315. package/serialization/types/DialogueInput.js +44 -0
  1316. package/serialization/types/DialogueInputResponseModel.d.ts +14 -0
  1317. package/serialization/types/DialogueInputResponseModel.js +45 -0
  1318. package/serialization/types/EmbedVariant.d.ts +1 -1
  1319. package/serialization/types/EmbedVariant.js +1 -1
  1320. package/serialization/types/FeatureStatusCommonModel.d.ts +13 -0
  1321. package/serialization/types/FeatureStatusCommonModel.js +44 -0
  1322. package/serialization/types/FeaturesUsageCommonModel.d.ts +18 -0
  1323. package/serialization/types/FeaturesUsageCommonModel.js +49 -0
  1324. package/serialization/types/GetAgentEmbedResponseModel.d.ts +2 -2
  1325. package/serialization/types/GetAgentEmbedResponseModel.js +2 -2
  1326. package/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +2 -1
  1327. package/serialization/types/GetKnowledgeBaseFileResponseModel.js +2 -1
  1328. package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -1
  1329. package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +2 -1
  1330. package/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +2 -1
  1331. package/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.js +2 -1
  1332. package/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +2 -1
  1333. package/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.js +2 -1
  1334. package/serialization/types/GetKnowledgeBaseTextResponseModel.d.ts +2 -1
  1335. package/serialization/types/GetKnowledgeBaseTextResponseModel.js +2 -1
  1336. package/serialization/types/GetKnowledgeBaseUrlResponseModel.d.ts +2 -1
  1337. package/serialization/types/GetKnowledgeBaseUrlResponseModel.js +2 -1
  1338. package/serialization/types/IntegrationType.d.ts +10 -0
  1339. package/serialization/types/IntegrationType.js +41 -0
  1340. package/serialization/types/InvoiceResponse.d.ts +1 -0
  1341. package/serialization/types/InvoiceResponse.js +1 -0
  1342. package/serialization/types/ListMcpToolsResponseModel.d.ts +15 -0
  1343. package/serialization/types/ListMcpToolsResponseModel.js +46 -0
  1344. package/serialization/types/Llm.d.ts +1 -1
  1345. package/serialization/types/Llm.js +27 -2
  1346. package/serialization/types/McpApprovalPolicy.d.ts +10 -0
  1347. package/serialization/types/McpApprovalPolicy.js +41 -0
  1348. package/serialization/types/McpServerConfigInput.d.ts +25 -0
  1349. package/serialization/types/McpServerConfigInput.js +56 -0
  1350. package/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +11 -0
  1351. package/serialization/types/McpServerConfigInputRequestHeadersValue.js +42 -0
  1352. package/serialization/types/McpServerConfigInputSecretToken.d.ts +12 -0
  1353. package/serialization/types/McpServerConfigInputSecretToken.js +43 -0
  1354. package/serialization/types/McpServerConfigInputUrl.d.ts +11 -0
  1355. package/serialization/types/McpServerConfigInputUrl.js +42 -0
  1356. package/serialization/types/McpServerConfigOutput.d.ts +25 -0
  1357. package/serialization/types/McpServerConfigOutput.js +56 -0
  1358. package/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +11 -0
  1359. package/serialization/types/McpServerConfigOutputRequestHeadersValue.js +42 -0
  1360. package/serialization/types/McpServerConfigOutputSecretToken.d.ts +12 -0
  1361. package/serialization/types/McpServerConfigOutputSecretToken.js +43 -0
  1362. package/serialization/types/McpServerConfigOutputUrl.d.ts +11 -0
  1363. package/serialization/types/McpServerConfigOutputUrl.js +42 -0
  1364. package/serialization/types/McpServerMetadataResponseModel.d.ts +13 -0
  1365. package/serialization/types/McpServerMetadataResponseModel.js +44 -0
  1366. package/serialization/types/McpServerResponseModel.d.ts +20 -0
  1367. package/serialization/types/McpServerResponseModel.js +51 -0
  1368. package/serialization/types/McpServerResponseModelDependentAgentsItem.d.ts +18 -0
  1369. package/serialization/types/McpServerResponseModelDependentAgentsItem.js +51 -0
  1370. package/serialization/types/McpServerTransport.d.ts +10 -0
  1371. package/serialization/types/McpServerTransport.js +41 -0
  1372. package/serialization/types/McpServersResponseModel.d.ts +13 -0
  1373. package/serialization/types/McpServersResponseModel.js +44 -0
  1374. package/serialization/types/McpToolApprovalHash.d.ts +15 -0
  1375. package/serialization/types/McpToolApprovalHash.js +46 -0
  1376. package/serialization/types/McpToolApprovalPolicy.d.ts +10 -0
  1377. package/serialization/types/McpToolApprovalPolicy.js +41 -0
  1378. package/serialization/types/McpToolConfigInput.d.ts +7 -0
  1379. package/serialization/types/McpToolConfigInput.js +7 -0
  1380. package/serialization/types/McpToolConfigOutput.d.ts +7 -0
  1381. package/serialization/types/McpToolConfigOutput.js +7 -0
  1382. package/serialization/types/ModelSettingsResponseModel.d.ts +13 -0
  1383. package/serialization/types/ModelSettingsResponseModel.js +44 -0
  1384. package/serialization/types/PromptAgentDbModel.d.ts +2 -0
  1385. package/serialization/types/PromptAgentDbModel.js +2 -0
  1386. package/serialization/types/PromptAgentDbModelToolsItem.d.ts +1 -5
  1387. package/serialization/types/PromptAgentDbModelToolsItem.js +0 -2
  1388. package/serialization/types/PromptAgentInputToolsItem.d.ts +1 -5
  1389. package/serialization/types/PromptAgentInputToolsItem.js +0 -2
  1390. package/serialization/types/PromptAgentOutputToolsItem.d.ts +1 -5
  1391. package/serialization/types/PromptAgentOutputToolsItem.js +0 -2
  1392. package/serialization/types/PronunciationDictionaryLocator.d.ts +1 -1
  1393. package/serialization/types/PronunciationDictionaryLocator.js +1 -1
  1394. package/serialization/types/RagConfig.d.ts +1 -0
  1395. package/serialization/types/RagConfig.js +1 -0
  1396. package/serialization/types/RagDocumentIndexResponseModel.d.ts +19 -0
  1397. package/serialization/types/RagDocumentIndexResponseModel.js +50 -0
  1398. package/serialization/types/RagDocumentIndexUsage.d.ts +12 -0
  1399. package/serialization/types/RagDocumentIndexUsage.js +43 -0
  1400. package/serialization/types/RagDocumentIndexesResponseModel.d.ts +13 -0
  1401. package/{dist/serialization/types/RagIndexResponseModel.js → serialization/types/RagDocumentIndexesResponseModel.js} +4 -5
  1402. package/serialization/types/RagIndexOverviewEmbeddingModelResponseModel.d.ts +14 -0
  1403. package/serialization/types/RagIndexOverviewEmbeddingModelResponseModel.js +45 -0
  1404. package/serialization/types/RagIndexOverviewResponseModel.d.ts +15 -0
  1405. package/serialization/types/RagIndexOverviewResponseModel.js +46 -0
  1406. package/serialization/types/RagIndexStatus.d.ts +1 -1
  1407. package/serialization/types/RagIndexStatus.js +8 -1
  1408. package/serialization/types/SkipTurnToolConfig.d.ts +11 -0
  1409. package/serialization/types/SkipTurnToolConfig.js +41 -0
  1410. package/serialization/types/SpeechHistoryItemResponse.d.ts +5 -3
  1411. package/serialization/types/SpeechHistoryItemResponse.js +5 -3
  1412. package/serialization/types/Subscription.d.ts +2 -2
  1413. package/serialization/types/Subscription.js +2 -2
  1414. package/serialization/types/SubscriptionResponse.d.ts +2 -2
  1415. package/serialization/types/SubscriptionResponse.js +2 -2
  1416. package/serialization/types/{SubscriptionStatus.d.ts → SubscriptionStatusType.d.ts} +3 -3
  1417. package/serialization/types/{SubscriptionStatus.js → SubscriptionStatusType.js} +4 -4
  1418. package/serialization/types/SupportedVoice.d.ts +22 -0
  1419. package/serialization/types/SupportedVoice.js +53 -0
  1420. package/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
  1421. package/serialization/types/SystemToolConfigInputParams.js +2 -0
  1422. package/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
  1423. package/serialization/types/SystemToolConfigOutputParams.js +2 -0
  1424. package/serialization/types/Tool.d.ts +17 -0
  1425. package/serialization/types/Tool.js +49 -0
  1426. package/serialization/types/ToolAnnotations.d.ts +17 -0
  1427. package/serialization/types/ToolAnnotations.js +49 -0
  1428. package/serialization/types/TransferToNumberToolConfig.d.ts +1 -0
  1429. package/serialization/types/TransferToNumberToolConfig.js +1 -0
  1430. package/{dist/serialization/types/TtsConversationalConfig.d.ts → serialization/types/TtsConversationalConfigInput.d.ts} +4 -2
  1431. package/{dist/serialization/types/TtsConversationalConfig.js → serialization/types/TtsConversationalConfigInput.js} +4 -2
  1432. package/serialization/types/TtsConversationalConfigOutput.d.ts +25 -0
  1433. package/serialization/types/TtsConversationalConfigOutput.js +56 -0
  1434. package/serialization/types/TtsModelFamily.d.ts +10 -0
  1435. package/serialization/types/TtsModelFamily.js +41 -0
  1436. package/serialization/types/VoiceSettings.d.ts +1 -1
  1437. package/serialization/types/VoiceSettings.js +1 -1
  1438. package/serialization/types/WebhookAuthMethodType.d.ts +10 -0
  1439. package/serialization/types/WebhookAuthMethodType.js +41 -0
  1440. package/serialization/types/WebhookUsageType.d.ts +10 -0
  1441. package/serialization/types/{ExtendedSubscriptionResponseModelStatus.js → WebhookUsageType.js} +6 -10
  1442. package/serialization/types/WidgetConfig.d.ts +13 -2
  1443. package/serialization/types/WidgetConfig.js +13 -2
  1444. package/{dist/serialization/types/WidgetConfigAvatar.d.ts → serialization/types/WidgetConfigInputAvatar.d.ts} +3 -3
  1445. package/{dist/serialization/types/WidgetConfigAvatar.js → serialization/types/WidgetConfigInputAvatar.js} +2 -2
  1446. package/serialization/types/WidgetConfigOutputAvatar.d.ts +22 -0
  1447. package/serialization/types/WidgetConfigOutputAvatar.js +53 -0
  1448. package/serialization/types/{WidgetConfigResponseModel.d.ts → WidgetConfigResponse.d.ts} +15 -2
  1449. package/serialization/types/{WidgetConfigResponseModel.js → WidgetConfigResponse.js} +15 -2
  1450. package/serialization/types/WidgetLanguagePreset.d.ts +13 -0
  1451. package/serialization/types/WidgetLanguagePreset.js +44 -0
  1452. package/serialization/types/WidgetLanguagePresetResponse.d.ts +14 -0
  1453. package/serialization/types/WidgetLanguagePresetResponse.js +45 -0
  1454. package/serialization/types/WidgetPlacement.d.ts +10 -0
  1455. package/serialization/types/WidgetPlacement.js +41 -0
  1456. package/serialization/types/WidgetStyles.d.ts +31 -0
  1457. package/serialization/types/WidgetStyles.js +62 -0
  1458. package/serialization/types/WidgetTextContents.d.ts +32 -0
  1459. package/serialization/types/WidgetTextContents.js +63 -0
  1460. package/serialization/types/WorkspaceResourceType.d.ts +1 -1
  1461. package/serialization/types/WorkspaceResourceType.js +1 -1
  1462. package/serialization/types/WorkspaceWebhookListResponseModel.d.ts +13 -0
  1463. package/serialization/types/WorkspaceWebhookListResponseModel.js +44 -0
  1464. package/serialization/types/WorkspaceWebhookResponseModel.d.ts +23 -0
  1465. package/serialization/types/WorkspaceWebhookResponseModel.js +54 -0
  1466. package/serialization/types/WorkspaceWebhookUsageResponseModel.d.ts +13 -0
  1467. package/serialization/types/WorkspaceWebhookUsageResponseModel.js +44 -0
  1468. package/serialization/types/index.d.ts +53 -8
  1469. package/serialization/types/index.js +53 -8
  1470. package/version.d.ts +1 -1
  1471. package/version.js +1 -1
  1472. package/wrapper/ElevenLabsClient.d.ts +4 -3
  1473. package/wrapper/ElevenLabsClient.js +6 -1
  1474. package/wrapper/webhooks.d.ts +4 -3
  1475. package/wrapper/webhooks.js +68 -46
  1476. package/.mock/asyncapi.yml +0 -856
  1477. package/.mock/definition/__package__.yml +0 -7842
  1478. package/.mock/definition/api.yml +0 -24
  1479. package/.mock/definition/audioIsolation.yml +0 -83
  1480. package/.mock/definition/audioNative.yml +0 -198
  1481. package/.mock/definition/conversationalAi/agents/knowledgeBase.yml +0 -32
  1482. package/.mock/definition/conversationalAi/agents/link.yml +0 -40
  1483. package/.mock/definition/conversationalAi/agents/llmUsage.yml +0 -51
  1484. package/.mock/definition/conversationalAi/agents/widget/avatar.yml +0 -44
  1485. package/.mock/definition/conversationalAi/agents/widget.yml +0 -77
  1486. package/.mock/definition/conversationalAi/agents.yml +0 -651
  1487. package/.mock/definition/conversationalAi/batchCalls.yml +0 -139
  1488. package/.mock/definition/conversationalAi/conversations/audio.yml +0 -28
  1489. package/.mock/definition/conversationalAi/conversations/feedback.yml +0 -47
  1490. package/.mock/definition/conversationalAi/conversations.yml +0 -165
  1491. package/.mock/definition/conversationalAi/dashboard/settings.yml +0 -73
  1492. package/.mock/definition/conversationalAi/knowledgeBase/document.yml +0 -48
  1493. package/.mock/definition/conversationalAi/knowledgeBase/documents/chunk.yml +0 -42
  1494. package/.mock/definition/conversationalAi/knowledgeBase/documents.yml +0 -346
  1495. package/.mock/definition/conversationalAi/knowledgeBase.yml +0 -87
  1496. package/.mock/definition/conversationalAi/llmUsage.yml +0 -52
  1497. package/.mock/definition/conversationalAi/phoneNumbers.yml +0 -206
  1498. package/.mock/definition/conversationalAi/secrets.yml +0 -100
  1499. package/.mock/definition/conversationalAi/settings.yml +0 -81
  1500. package/.mock/definition/conversationalAi/sipTrunk.yml +0 -45
  1501. package/.mock/definition/conversationalAi/twilio.yml +0 -45
  1502. package/.mock/definition/conversationalAi.yml +0 -94
  1503. package/.mock/definition/dubbing/audio.yml +0 -35
  1504. package/.mock/definition/dubbing/resource/language.yml +0 -43
  1505. package/.mock/definition/dubbing/resource/segment.yml +0 -83
  1506. package/.mock/definition/dubbing/resource/speaker/segment.yml +0 -54
  1507. package/.mock/definition/dubbing/resource/speaker.yml +0 -91
  1508. package/.mock/definition/dubbing/resource.yml +0 -271
  1509. package/.mock/definition/dubbing/transcript.yml +0 -48
  1510. package/.mock/definition/dubbing.yml +0 -170
  1511. package/.mock/definition/forcedAlignment.yml +0 -60
  1512. package/.mock/definition/history.yml +0 -262
  1513. package/.mock/definition/models.yml +0 -49
  1514. package/.mock/definition/pronunciationDictionaries/rules.yml +0 -99
  1515. package/.mock/definition/pronunciationDictionaries.yml +0 -262
  1516. package/.mock/definition/samples.yml +0 -46
  1517. package/.mock/definition/speechToSpeech.yml +0 -324
  1518. package/.mock/definition/speechToText.yml +0 -177
  1519. package/.mock/definition/studio/projects/chapters/snapshots.yml +0 -141
  1520. package/.mock/definition/studio/projects/chapters.yml +0 -289
  1521. package/.mock/definition/studio/projects/content.yml +0 -94
  1522. package/.mock/definition/studio/projects/pronunciationDictionaries.yml +0 -70
  1523. package/.mock/definition/studio/projects/snapshots.yml +0 -140
  1524. package/.mock/definition/studio/projects.yml +0 -579
  1525. package/.mock/definition/studio.yml +0 -216
  1526. package/.mock/definition/textToSoundEffects.yml +0 -92
  1527. package/.mock/definition/textToSpeech.yml +0 -959
  1528. package/.mock/definition/textToVoice.yml +0 -355
  1529. package/.mock/definition/usage.yml +0 -73
  1530. package/.mock/definition/user/subscription.yml +0 -50
  1531. package/.mock/definition/user.yml +0 -86
  1532. package/.mock/definition/v1TextToSpeechVoiceIdMultiStreamInput.yml +0 -252
  1533. package/.mock/definition/v1TextToSpeechVoiceIdStreamInput.yml +0 -207
  1534. package/.mock/definition/voices/ivc.yml +0 -57
  1535. package/.mock/definition/voices/pvc/samples/audio.yml +0 -44
  1536. package/.mock/definition/voices/pvc/samples/speakers/audio.yml +0 -48
  1537. package/.mock/definition/voices/pvc/samples/speakers.yml +0 -81
  1538. package/.mock/definition/voices/pvc/samples/waveform.yml +0 -44
  1539. package/.mock/definition/voices/pvc/samples.yml +0 -159
  1540. package/.mock/definition/voices/pvc/verification/captcha.yml +0 -62
  1541. package/.mock/definition/voices/pvc/verification.yml +0 -47
  1542. package/.mock/definition/voices/pvc.yml +0 -137
  1543. package/.mock/definition/voices/samples/audio.yml +0 -35
  1544. package/.mock/definition/voices/settings.yml +0 -105
  1545. package/.mock/definition/voices.yml +0 -904
  1546. package/.mock/definition/workspace/groups/members.yml +0 -82
  1547. package/.mock/definition/workspace/groups.yml +0 -41
  1548. package/.mock/definition/workspace/invites.yml +0 -141
  1549. package/.mock/definition/workspace/members.yml +0 -83
  1550. package/.mock/definition/workspace/resources.yml +0 -184
  1551. package/.mock/fern.config.json +0 -4
  1552. package/.mock/openapi.json +0 -36753
  1553. package/api/types/ExtendedSubscriptionResponseModelStatus.d.ts +0 -17
  1554. package/api/types/ExtendedSubscriptionResponseModelStatus.js +0 -16
  1555. package/api/types/NativeMcpToolConfigInput.d.ts +0 -20
  1556. package/api/types/NativeMcpToolConfigOutput.d.ts +0 -20
  1557. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  1558. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  1559. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  1560. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  1561. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  1562. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  1563. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  1564. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  1565. package/dist/api/types/ExtendedSubscriptionResponseModelStatus.d.ts +0 -17
  1566. package/dist/api/types/ExtendedSubscriptionResponseModelStatus.js +0 -16
  1567. package/dist/api/types/NativeMcpToolConfigInput.d.ts +0 -20
  1568. package/dist/api/types/NativeMcpToolConfigOutput.d.ts +0 -20
  1569. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  1570. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  1571. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  1572. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  1573. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  1574. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  1575. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  1576. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  1577. package/dist/serialization/types/ExtendedSubscriptionResponseModelStatus.d.ts +0 -10
  1578. package/dist/serialization/types/NativeMcpToolConfigInput.d.ts +0 -18
  1579. package/dist/serialization/types/NativeMcpToolConfigOutput.d.ts +0 -18
  1580. package/dist/serialization/types/RagIndexResponseModel.d.ts +0 -14
  1581. package/serialization/types/ExtendedSubscriptionResponseModelStatus.d.ts +0 -10
  1582. package/serialization/types/NativeMcpToolConfigInput.d.ts +0 -18
  1583. package/serialization/types/NativeMcpToolConfigOutput.d.ts +0 -18
  1584. package/serialization/types/RagIndexResponseModel.d.ts +0 -14
  1585. /package/api/{types/NativeMcpToolConfigInput.js → resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.js} +0 -0
  1586. /package/api/{types/NativeMcpToolConfigOutput.js → resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js} +0 -0
  1587. /package/api/{types/RagIndexResponseModel.js → resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js} +0 -0
  1588. /package/api/{types/TtsConversationalConfig.js → resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js} +0 -0
  1589. /package/api/{types/WidgetConfigAvatar.js → resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js} +0 -0
  1590. /package/api/{types/WidgetConfigResponseModel.js → resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js} +0 -0
  1591. /package/{dist/api/types/NativeMcpToolConfigInput.js → api/resources/webhooks/client/requests/WebhooksListRequest.js} +0 -0
  1592. /package/{dist/api/types/NativeMcpToolConfigOutput.js → api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js} +0 -0
  1593. /package/{dist/api/types/RagIndexResponseModel.js → api/types/BuiltInTools.js} +0 -0
  1594. /package/{dist/api/types/TtsConversationalConfig.js → api/types/ConvAiUserSecretDbModel.js} +0 -0
  1595. /package/{dist/api/types/WidgetConfigAvatar.js → api/types/ConversationSimulationSpecificationDynamicVariablesValue.js} +0 -0
  1596. /package/{dist/api/types/WidgetConfigResponseModel.js → api/types/CustomLlmRequestHeadersValue.js} +0 -0
  1597. /package/core/{streaming-fetcher → stream}/Stream.js +0 -0
  1598. /package/core/{streaming-fetcher → stream}/index.d.ts +0 -0
  1599. /package/core/{streaming-fetcher → stream}/index.js +0 -0
  1600. /package/dist/core/{streaming-fetcher → stream}/Stream.js +0 -0
  1601. /package/dist/core/{streaming-fetcher → stream}/index.d.ts +0 -0
  1602. /package/dist/core/{streaming-fetcher → stream}/index.js +0 -0
@@ -52,6 +52,7 @@ exports.SpeechToText = void 0;
52
52
  const environments = __importStar(require("../../../../environments"));
53
53
  const core = __importStar(require("../../../../core"));
54
54
  const ElevenLabs = __importStar(require("../../../index"));
55
+ const serializers = __importStar(require("../../../../serialization/index"));
55
56
  const json_1 = require("../../../../core/json");
56
57
  const url_join_1 = __importDefault(require("url-join"));
57
58
  const errors = __importStar(require("../../../../errors/index"));
@@ -60,7 +61,7 @@ class SpeechToText {
60
61
  this._options = _options;
61
62
  }
62
63
  /**
63
- * Transcribe an audio or video file.
64
+ * Transcribe an audio or video file. If webhook is set to true, the request will be processed asynchronously and results sent to configured webhooks.
64
65
  *
65
66
  * @param {ElevenLabs.BodySpeechToTextV1SpeechToTextPost} request
66
67
  * @param {SpeechToText.RequestOptions} requestOptions - Request-specific configuration.
@@ -69,11 +70,13 @@ class SpeechToText {
69
70
  *
70
71
  * @example
71
72
  * await client.speechToText.convert({
72
- * file: fs.createReadStream("/path/to/your/file"),
73
- * model_id: "model_id"
73
+ * modelId: "model_id"
74
74
  * })
75
75
  */
76
76
  convert(request, requestOptions) {
77
+ return core.HttpResponsePromise.fromPromise(this.__convert(request, requestOptions));
78
+ }
79
+ __convert(request, requestOptions) {
77
80
  return __awaiter(this, void 0, void 0, function* () {
78
81
  var _a, _b;
79
82
  const _queryParams = {};
@@ -82,7 +85,9 @@ class SpeechToText {
82
85
  }
83
86
  const _request = yield core.newFormData();
84
87
  _request.append("model_id", request.modelId);
85
- yield _request.appendFile("file", request.file);
88
+ if (request.file != null) {
89
+ yield _request.appendFile("file", request.file);
90
+ }
86
91
  if (request.languageCode != null) {
87
92
  _request.append("language_code", request.languageCode);
88
93
  }
@@ -93,13 +98,28 @@ class SpeechToText {
93
98
  _request.append("num_speakers", request.numSpeakers.toString());
94
99
  }
95
100
  if (request.timestampsGranularity != null) {
96
- _request.append("timestamps_granularity", request.timestampsGranularity);
101
+ _request.append("timestamps_granularity", serializers.SpeechToTextConvertRequestTimestampsGranularity.jsonOrThrow(request.timestampsGranularity, {
102
+ unrecognizedObjectKeys: "strip",
103
+ }));
97
104
  }
98
105
  if (request.diarize != null) {
99
106
  _request.append("diarize", request.diarize.toString());
100
107
  }
108
+ // Customized by hand
101
109
  if (request.additionalFormats != null) {
102
- _request.append("additional_formats", (0, json_1.toJson)(request.additionalFormats));
110
+ _request.append("additional_formats", (0, json_1.toJson)(serializers.AdditionalFormats.jsonOrThrow(request.additionalFormats, { unrecognizedObjectKeys: "strip" })));
111
+ }
112
+ // end of customization
113
+ if (request.fileFormat != null) {
114
+ _request.append("file_format", serializers.SpeechToTextConvertRequestFileFormat.jsonOrThrow(request.fileFormat, {
115
+ unrecognizedObjectKeys: "strip",
116
+ }));
117
+ }
118
+ if (request.cloudStorageUrl != null) {
119
+ _request.append("cloud_storage_url", request.cloudStorageUrl);
120
+ }
121
+ if (request.webhook != null) {
122
+ _request.append("webhook", request.webhook.toString());
103
123
  }
104
124
  const _maybeEncodedRequest = yield _request.getRequest();
105
125
  const _response = yield core.fetcher({
@@ -107,26 +127,40 @@ class SpeechToText {
107
127
  method: "POST",
108
128
  headers: Object.assign(Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
109
129
  ? yield core.Supplier.get(this._options.apiKey)
110
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "elevenlabs", "X-Fern-SDK-Version": "1.56.0", "User-Agent": "elevenlabs/1.56.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
130
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "2.2.1", "User-Agent": "@elevenlabs/elevenlabs-js/2.2.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
131
  queryParameters: _queryParams,
112
132
  requestType: "file",
113
133
  duplex: _maybeEncodedRequest.duplex,
114
134
  body: _maybeEncodedRequest.body,
115
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
135
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
116
136
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
117
137
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
118
138
  });
119
139
  if (_response.ok) {
120
- return _response.body;
140
+ return {
141
+ data: serializers.SpeechToTextChunkResponseModel.parseOrThrow(_response.body, {
142
+ unrecognizedObjectKeys: "passthrough",
143
+ allowUnrecognizedUnionMembers: true,
144
+ allowUnrecognizedEnumValues: true,
145
+ breadcrumbsPrefix: ["response"],
146
+ }),
147
+ rawResponse: _response.rawResponse,
148
+ };
121
149
  }
122
150
  if (_response.error.reason === "status-code") {
123
151
  switch (_response.error.statusCode) {
124
152
  case 422:
125
- throw new ElevenLabs.UnprocessableEntityError(_response.error.body);
153
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
154
+ unrecognizedObjectKeys: "passthrough",
155
+ allowUnrecognizedUnionMembers: true,
156
+ allowUnrecognizedEnumValues: true,
157
+ breadcrumbsPrefix: ["response"],
158
+ }), _response.rawResponse);
126
159
  default:
127
160
  throw new errors.ElevenLabsError({
128
161
  statusCode: _response.error.statusCode,
129
162
  body: _response.error.body,
163
+ rawResponse: _response.rawResponse,
130
164
  });
131
165
  }
132
166
  }
@@ -135,12 +169,14 @@ class SpeechToText {
135
169
  throw new errors.ElevenLabsError({
136
170
  statusCode: _response.error.statusCode,
137
171
  body: _response.error.rawBody,
172
+ rawResponse: _response.rawResponse,
138
173
  });
139
174
  case "timeout":
140
175
  throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/speech-to-text.");
141
176
  case "unknown":
142
177
  throw new errors.ElevenLabsError({
143
178
  message: _response.error.errorMessage,
179
+ rawResponse: _response.rawResponse,
144
180
  });
145
181
  }
146
182
  });
@@ -1 +1,2 @@
1
+ export {};
1
2
  export * from "./requests";
@@ -33,4 +33,8 @@ export interface BodySpeechToTextV1SpeechToTextPost {
33
33
  fileFormat?: ElevenLabs.SpeechToTextConvertRequestFileFormat;
34
34
  /** The valid AWS S3, Cloudflare R2 or Google Cloud Storage URL of the file to transcribe. Exactly one of the file or cloud_storage_url parameters must be provided. The file must be a valid publicly accessible cloud storage URL. The file size must be less than 2GB. URL can be pre-signed. */
35
35
  cloudStorageUrl?: string;
36
+ /** Whether to send the transcription result to configured speech-to-text webhooks. If set the request will return early without the transcription, which will be delivered later via webhook. */
37
+ webhook?: boolean;
38
+ /** Controls the randomness of the transcription output. Accepts values between 0.0 and 2.0, where higher values result in more diverse and less deterministic results. If omitted, we will use a temperature based on the model you selected which is usually 0. */
39
+ temperature?: number;
36
40
  }
@@ -12,6 +12,8 @@ export declare namespace Studio {
12
12
  baseUrl?: core.Supplier<string>;
13
13
  /** Override the xi-api-key header */
14
14
  apiKey?: core.Supplier<string | undefined>;
15
+ /** Additional headers to include in requests. */
16
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
17
  }
16
18
  interface RequestOptions {
17
19
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +25,7 @@ export declare namespace Studio {
23
25
  /** Override the xi-api-key header */
24
26
  apiKey?: string | undefined;
25
27
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string>;
28
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
27
29
  }
28
30
  }
29
31
  export declare class Studio {
@@ -41,7 +43,7 @@ export declare class Studio {
41
43
  *
42
44
  * @example
43
45
  * await client.studio.createPodcast({
44
- * modelId: "21m00Tcm4TlvDq8ikWAM",
46
+ * modelId: "eleven_multilingual_v2",
45
47
  * mode: {
46
48
  * type: "conversation",
47
49
  * conversation: {
@@ -52,6 +52,7 @@ exports.Studio = void 0;
52
52
  const environments = __importStar(require("../../../../environments"));
53
53
  const core = __importStar(require("../../../../core"));
54
54
  const ElevenLabs = __importStar(require("../../../index"));
55
+ const headers_js_1 = require("../../../../core/headers.js");
55
56
  const serializers = __importStar(require("../../../../serialization/index"));
56
57
  const url_join_1 = __importDefault(require("url-join"));
57
58
  const errors = __importStar(require("../../../../errors/index"));
@@ -74,7 +75,7 @@ class Studio {
74
75
  *
75
76
  * @example
76
77
  * await client.studio.createPodcast({
77
- * modelId: "21m00Tcm4TlvDq8ikWAM",
78
+ * modelId: "eleven_multilingual_v2",
78
79
  * mode: {
79
80
  * type: "conversation",
80
81
  * conversation: {
@@ -92,13 +93,11 @@ class Studio {
92
93
  }
93
94
  __createPodcast(request, requestOptions) {
94
95
  return __awaiter(this, void 0, void 0, function* () {
95
- var _a, _b;
96
+ var _a, _b, _c;
96
97
  const _response = yield core.fetcher({
97
98
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/studio/podcasts"),
98
99
  method: "POST",
99
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
100
- ? yield core.Supplier.get(this._options.apiKey)
101
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
102
101
  contentType: "application/json",
103
102
  requestType: "json",
104
103
  body: serializers.BodyCreatePodcastV1StudioPodcastsPost.jsonOrThrow(request, {
@@ -1 +1,2 @@
1
+ export {};
1
2
  export * from "./requests";
@@ -5,7 +5,7 @@ import * as ElevenLabs from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * modelId: "21m00Tcm4TlvDq8ikWAM",
8
+ * modelId: "eleven_multilingual_v2",
9
9
  * mode: {
10
10
  * type: "conversation",
11
11
  * conversation: {
@@ -37,13 +37,68 @@ export interface BodyCreatePodcastV1StudioPodcastsPost {
37
37
  * Duration of the generated podcast. Must be one of:
38
38
  * short - produces podcasts shorter than 3 minutes.
39
39
  * default - produces podcasts roughly between 3-7 minutes.
40
- * long - prodces podcasts longer than 7 minutes.
40
+ * long - produces podcasts longer than 7 minutes.
41
41
  */
42
42
  durationScale?: ElevenLabs.BodyCreatePodcastV1StudioPodcastsPostDurationScale;
43
43
  /** An optional language of the Studio project. Two-letter language code (ISO 639-1). */
44
44
  language?: string;
45
45
  /** A brief summary or highlights of the Studio project's content, providing key points or themes. This should be between 10 and 70 characters. */
46
46
  highlights?: string[];
47
- /** A url that will be called by our service when the Studio project is converted. Request will contain a json blob containing the status of the conversion */
47
+ /**
48
+ * A url that will be called by our service when the Studio project is converted. Request will contain a json blob containing the status of the conversion
49
+ * Messages:
50
+ * 1. When project was converted successfully:
51
+ * {
52
+ * type: "project_conversion_status",
53
+ * event_timestamp: 1234567890,
54
+ * data: {
55
+ * request_id: "1234567890",
56
+ * project_id: "21m00Tcm4TlvDq8ikWAM",
57
+ * conversion_status: "success",
58
+ * project_snapshot_id: "22m00Tcm4TlvDq8ikMAT",
59
+ * error_details: None,
60
+ * }
61
+ * }
62
+ * 2. When project conversion failed:
63
+ * {
64
+ * type: "project_conversion_status",
65
+ * event_timestamp: 1234567890,
66
+ * data: {
67
+ * request_id: "1234567890",
68
+ * project_id: "21m00Tcm4TlvDq8ikWAM",
69
+ * conversion_status: "error",
70
+ * project_snapshot_id: None,
71
+ * error_details: "Error details if conversion failed"
72
+ * }
73
+ * }
74
+ *
75
+ * 3. When chapter was converted successfully:
76
+ * {
77
+ * type: "chapter_conversion_status",
78
+ * event_timestamp: 1234567890,
79
+ * data: {
80
+ * request_id: "1234567890",
81
+ * project_id: "21m00Tcm4TlvDq8ikWAM",
82
+ * chapter_id: "22m00Tcm4TlvDq8ikMAT",
83
+ * conversion_status: "success",
84
+ * chapter_snapshot_id: "23m00Tcm4TlvDq8ikMAV",
85
+ * error_details: None,
86
+ * }
87
+ * }
88
+ * 4. When chapter conversion failed:
89
+ * {
90
+ * type: "chapter_conversion_status",
91
+ * event_timestamp: 1234567890,
92
+ * data: {
93
+ * request_id: "1234567890",
94
+ * project_id: "21m00Tcm4TlvDq8ikWAM",
95
+ * chapter_id: "22m00Tcm4TlvDq8ikMAT",
96
+ * conversion_status: "error",
97
+ * chapter_snapshot_id: None,
98
+ * error_details: "Error details if conversion failed"
99
+ * }
100
+ * }
101
+ *
102
+ */
48
103
  callbackUrl?: string;
49
104
  }
@@ -15,6 +15,8 @@ export declare namespace Projects {
15
15
  baseUrl?: core.Supplier<string>;
16
16
  /** Override the xi-api-key header */
17
17
  apiKey?: core.Supplier<string | undefined>;
18
+ /** Additional headers to include in requests. */
19
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
18
20
  }
19
21
  interface RequestOptions {
20
22
  /** The maximum time to wait for a response in seconds. */
@@ -26,7 +28,7 @@ export declare namespace Projects {
26
28
  /** Override the xi-api-key header */
27
29
  apiKey?: string | undefined;
28
30
  /** Additional headers to include in the request. */
29
- headers?: Record<string, string>;
31
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
30
32
  }
31
33
  }
32
34
  export declare class Projects {
@@ -52,6 +52,7 @@ exports.Projects = void 0;
52
52
  const environments = __importStar(require("../../../../../../environments"));
53
53
  const core = __importStar(require("../../../../../../core"));
54
54
  const ElevenLabs = __importStar(require("../../../../../index"));
55
+ const headers_js_1 = require("../../../../../../core/headers.js");
55
56
  const url_join_1 = __importDefault(require("url-join"));
56
57
  const serializers = __importStar(require("../../../../../../serialization/index"));
57
58
  const errors = __importStar(require("../../../../../../errors/index"));
@@ -94,15 +95,11 @@ class Projects {
94
95
  }
95
96
  __list(requestOptions) {
96
97
  return __awaiter(this, void 0, void 0, function* () {
97
- var _a, _b;
98
+ var _a, _b, _c;
98
99
  const _response = yield core.fetcher({
99
100
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/studio/projects"),
100
101
  method: "GET",
101
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
102
- ? yield core.Supplier.get(this._options.apiKey)
103
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
- contentType: "application/json",
105
- requestType: "json",
102
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
103
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
107
104
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
108
105
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -173,7 +170,7 @@ class Projects {
173
170
  }
174
171
  __create(request, requestOptions) {
175
172
  return __awaiter(this, void 0, void 0, function* () {
176
- var _a, _b;
173
+ var _a, _b, _c;
177
174
  const _request = yield core.newFormData();
178
175
  _request.append("name", request.name);
179
176
  _request.append("default_title_voice_id", request.defaultTitleVoiceId);
@@ -185,6 +182,9 @@ class Projects {
185
182
  if (request.fromDocument != null) {
186
183
  yield _request.appendFile("from_document", request.fromDocument);
187
184
  }
185
+ if (request.fromContentJson != null) {
186
+ _request.append("from_content_json", request.fromContentJson);
187
+ }
188
188
  if (request.qualityPreset != null) {
189
189
  _request.append("quality_preset", request.qualityPreset);
190
190
  }
@@ -259,9 +259,7 @@ class Projects {
259
259
  const _response = yield core.fetcher({
260
260
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/studio/projects"),
261
261
  method: "POST",
262
- headers: Object.assign(Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
263
- ? yield core.Supplier.get(this._options.apiKey)
264
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
262
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
263
  requestType: "file",
266
264
  duplex: _maybeEncodedRequest.duplex,
267
265
  body: _maybeEncodedRequest.body,
@@ -330,15 +328,11 @@ class Projects {
330
328
  }
331
329
  __get(projectId, requestOptions) {
332
330
  return __awaiter(this, void 0, void 0, function* () {
333
- var _a, _b;
331
+ var _a, _b, _c;
334
332
  const _response = yield core.fetcher({
335
333
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}`),
336
334
  method: "GET",
337
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
338
- ? yield core.Supplier.get(this._options.apiKey)
339
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
340
- contentType: "application/json",
341
- requestType: "json",
335
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
342
336
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
343
337
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
344
338
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -409,13 +403,11 @@ class Projects {
409
403
  }
410
404
  __update(projectId, request, requestOptions) {
411
405
  return __awaiter(this, void 0, void 0, function* () {
412
- var _a, _b;
406
+ var _a, _b, _c;
413
407
  const _response = yield core.fetcher({
414
408
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}`),
415
409
  method: "POST",
416
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
417
- ? yield core.Supplier.get(this._options.apiKey)
418
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
410
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
419
411
  contentType: "application/json",
420
412
  requestType: "json",
421
413
  body: serializers.studio.BodyUpdateStudioProjectV1StudioProjectsProjectIdPost.jsonOrThrow(request, {
@@ -486,15 +478,11 @@ class Projects {
486
478
  }
487
479
  __delete(projectId, requestOptions) {
488
480
  return __awaiter(this, void 0, void 0, function* () {
489
- var _a, _b;
481
+ var _a, _b, _c;
490
482
  const _response = yield core.fetcher({
491
483
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}`),
492
484
  method: "DELETE",
493
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
494
- ? yield core.Supplier.get(this._options.apiKey)
495
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
496
- contentType: "application/json",
497
- requestType: "json",
485
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
498
486
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
499
487
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
500
488
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -560,15 +548,11 @@ class Projects {
560
548
  }
561
549
  __convert(projectId, requestOptions) {
562
550
  return __awaiter(this, void 0, void 0, function* () {
563
- var _a, _b;
551
+ var _a, _b, _c;
564
552
  const _response = yield core.fetcher({
565
553
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/convert`),
566
554
  method: "POST",
567
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
568
- ? yield core.Supplier.get(this._options.apiKey)
569
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
570
- contentType: "application/json",
571
- requestType: "json",
555
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
572
556
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
573
557
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
574
558
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1 +1,2 @@
1
+ export {};
1
2
  export * from "./requests";
@@ -21,9 +21,11 @@ export interface BodyCreateStudioProjectV1StudioProjectsPost {
21
21
  defaultParagraphVoiceId: string;
22
22
  /** The ID of the model to be used for this Studio project, you can query GET /v1/models to list all available models. */
23
23
  defaultModelId: string;
24
- /** An optional URL from which we will extract content to initialize the Studio project. If this is set, 'from_url' must be null. If neither 'from_url' or 'from_document' are provided we will initialize the Studio project as blank. */
24
+ /** An optional URL from which we will extract content to initialize the Studio project. If this is set, 'from_url' and 'from_content' must be null. If neither 'from_url', 'from_document', 'from_content' are provided we will initialize the Studio project as blank. */
25
25
  fromUrl?: string;
26
26
  fromDocument?: File | fs.ReadStream | Blob | undefined;
27
+ /** An optional content to initialize the Studio project with. If this is set, 'from_url' and 'from_document' must be null. If neither 'from_url', 'from_document', 'from_content' are provided we will initialize the Studio project as blank. */
28
+ fromContentJson?: string;
27
29
  /**
28
30
  * Output quality of the generated audio. Must be one of:
29
31
  * standard - standard output format, 128kbps with 44.1kHz sample rate.
@@ -58,7 +60,62 @@ export interface BodyCreateStudioProjectV1StudioProjectsPost {
58
60
  volumeNormalization?: boolean;
59
61
  /** A list of pronunciation dictionary locators (pronunciation_dictionary_id, version_id) encoded as a list of JSON strings for pronunciation dictionaries to be applied to the text. A list of json encoded strings is required as adding projects may occur through formData as opposed to jsonBody. To specify multiple dictionaries use multiple --form lines in your curl, such as --form 'pronunciation_dictionary_locators="{\"pronunciation_dictionary_id\":\"Vmd4Zor6fplcA7WrINey\",\"version_id\":\"hRPaxjlTdR7wFMhV4w0b\"}"' --form 'pronunciation_dictionary_locators="{\"pronunciation_dictionary_id\":\"JzWtcGQMJ6bnlWwyMo7e\",\"version_id\":\"lbmwxiLu4q6txYxgdZqn\"}"'. Note that multiple dictionaries are not currently supported by our UI which will only show the first. */
60
62
  pronunciationDictionaryLocators?: string[];
61
- /** A url that will be called by our service when the Studio project is converted. Request will contain a json blob containing the status of the conversion */
63
+ /**
64
+ * A url that will be called by our service when the Studio project is converted. Request will contain a json blob containing the status of the conversion
65
+ * Messages:
66
+ * 1. When project was converted successfully:
67
+ * {
68
+ * type: "project_conversion_status",
69
+ * event_timestamp: 1234567890,
70
+ * data: {
71
+ * request_id: "1234567890",
72
+ * project_id: "21m00Tcm4TlvDq8ikWAM",
73
+ * conversion_status: "success",
74
+ * project_snapshot_id: "22m00Tcm4TlvDq8ikMAT",
75
+ * error_details: None,
76
+ * }
77
+ * }
78
+ * 2. When project conversion failed:
79
+ * {
80
+ * type: "project_conversion_status",
81
+ * event_timestamp: 1234567890,
82
+ * data: {
83
+ * request_id: "1234567890",
84
+ * project_id: "21m00Tcm4TlvDq8ikWAM",
85
+ * conversion_status: "error",
86
+ * project_snapshot_id: None,
87
+ * error_details: "Error details if conversion failed"
88
+ * }
89
+ * }
90
+ *
91
+ * 3. When chapter was converted successfully:
92
+ * {
93
+ * type: "chapter_conversion_status",
94
+ * event_timestamp: 1234567890,
95
+ * data: {
96
+ * request_id: "1234567890",
97
+ * project_id: "21m00Tcm4TlvDq8ikWAM",
98
+ * chapter_id: "22m00Tcm4TlvDq8ikMAT",
99
+ * conversion_status: "success",
100
+ * chapter_snapshot_id: "23m00Tcm4TlvDq8ikMAV",
101
+ * error_details: None,
102
+ * }
103
+ * }
104
+ * 4. When chapter conversion failed:
105
+ * {
106
+ * type: "chapter_conversion_status",
107
+ * event_timestamp: 1234567890,
108
+ * data: {
109
+ * request_id: "1234567890",
110
+ * project_id: "21m00Tcm4TlvDq8ikWAM",
111
+ * chapter_id: "22m00Tcm4TlvDq8ikMAT",
112
+ * conversion_status: "error",
113
+ * chapter_snapshot_id: None,
114
+ * error_details: "Error details if conversion failed"
115
+ * }
116
+ * }
117
+ *
118
+ */
62
119
  callbackUrl?: string;
63
120
  /** An optional specification of whether the content of this Studio project is fiction. */
64
121
  fiction?: ElevenLabs.studio.ProjectsCreateRequestFiction;
@@ -12,6 +12,8 @@ export declare namespace Chapters {
12
12
  baseUrl?: core.Supplier<string>;
13
13
  /** Override the xi-api-key header */
14
14
  apiKey?: core.Supplier<string | undefined>;
15
+ /** Additional headers to include in requests. */
16
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
17
  }
16
18
  interface RequestOptions {
17
19
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +25,7 @@ export declare namespace Chapters {
23
25
  /** Override the xi-api-key header */
24
26
  apiKey?: string | undefined;
25
27
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string>;
28
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
27
29
  }
28
30
  }
29
31
  export declare class Chapters {