@elevenlabs/elevenlabs-js 2.2.0 → 2.4.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 (1465) hide show
  1. package/Client.d.ts +9 -4
  2. package/Client.js +60 -12
  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 +9 -1
  11. package/api/resources/conversationalAi/client/Client.js +31 -36
  12. package/api/resources/conversationalAi/client/index.d.ts +1 -0
  13. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +17 -1
  14. package/api/resources/conversationalAi/resources/agents/client/Client.js +89 -34
  15. package/api/resources/conversationalAi/resources/agents/client/index.d.ts +1 -0
  16. package/api/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.d.ts +11 -0
  17. package/api/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  18. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +3 -1
  19. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -6
  20. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +3 -1
  21. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -6
  22. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +3 -1
  23. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -4
  24. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  25. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +3 -1
  26. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -6
  27. package/api/resources/conversationalAi/resources/agents/resources/widget/client/index.d.ts +1 -0
  28. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +3 -1
  29. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -4
  30. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/index.d.ts +1 -0
  31. package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +3 -1
  32. package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +11 -28
  33. package/api/resources/conversationalAi/resources/batchCalls/client/index.d.ts +1 -0
  34. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -1
  35. package/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -24
  36. package/api/resources/conversationalAi/resources/conversations/client/index.d.ts +1 -0
  37. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +4 -3
  38. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -6
  39. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +3 -1
  40. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -4
  41. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/index.d.ts +1 -0
  42. package/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +2 -0
  43. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +3 -1
  44. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -10
  45. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/index.d.ts +1 -0
  46. package/api/resources/conversationalAi/resources/index.d.ts +4 -0
  47. package/api/resources/conversationalAi/resources/index.js +5 -1
  48. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +3 -1
  49. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -6
  50. package/api/resources/conversationalAi/resources/knowledgeBase/client/index.d.ts +1 -0
  51. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +3 -1
  52. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +3 -4
  53. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/index.d.ts +1 -0
  54. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +3 -1
  55. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +17 -40
  56. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/index.d.ts +1 -0
  57. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +3 -1
  58. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +3 -6
  59. package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +3 -1
  60. package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -4
  61. package/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  62. package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +85 -0
  63. package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +298 -0
  64. package/api/resources/conversationalAi/resources/mcpServers/client/index.d.ts +2 -0
  65. package/api/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
  66. package/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +17 -0
  67. package/api/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  68. package/api/resources/conversationalAi/resources/mcpServers/client/requests/index.js +2 -0
  69. package/api/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
  70. package/api/resources/conversationalAi/resources/mcpServers/index.js +18 -0
  71. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +49 -0
  72. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +142 -0
  73. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +2 -0
  74. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
  75. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +14 -0
  76. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
  77. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +2 -0
  78. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
  79. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
  80. package/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +5 -0
  81. package/api/resources/conversationalAi/resources/mcpServers/resources/index.js +44 -0
  82. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +64 -0
  83. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +214 -0
  84. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +2 -0
  85. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
  86. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +21 -0
  87. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
  88. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +2 -0
  89. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
  90. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
  91. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +46 -0
  92. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +134 -0
  93. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.d.ts +1 -0
  94. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.js +2 -0
  95. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.d.ts +1 -0
  96. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.js +17 -0
  97. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +3 -1
  98. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +11 -26
  99. package/api/resources/conversationalAi/resources/phoneNumbers/client/index.d.ts +1 -0
  100. package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +3 -1
  101. package/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -16
  102. package/api/resources/conversationalAi/resources/secrets/client/index.d.ts +1 -0
  103. package/api/resources/conversationalAi/resources/settings/client/Client.d.ts +3 -1
  104. package/api/resources/conversationalAi/resources/settings/client/Client.js +5 -10
  105. package/api/resources/conversationalAi/resources/settings/client/index.d.ts +1 -0
  106. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +3 -1
  107. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -4
  108. package/api/resources/conversationalAi/resources/sipTrunk/client/index.d.ts +1 -0
  109. package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +126 -0
  110. package/api/resources/conversationalAi/resources/tools/client/Client.js +506 -0
  111. package/api/resources/conversationalAi/resources/tools/client/index.d.ts +2 -0
  112. package/api/resources/conversationalAi/resources/tools/client/index.js +17 -0
  113. package/api/resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.d.ts +17 -0
  114. package/api/resources/conversationalAi/resources/tools/client/requests/index.d.ts +1 -0
  115. package/api/resources/conversationalAi/resources/tools/client/requests/index.js +2 -0
  116. package/api/resources/conversationalAi/resources/tools/index.d.ts +1 -0
  117. package/api/resources/conversationalAi/resources/tools/index.js +17 -0
  118. package/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +3 -1
  119. package/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -4
  120. package/api/resources/conversationalAi/resources/twilio/client/index.d.ts +1 -0
  121. package/api/resources/dubbing/client/Client.d.ts +3 -1
  122. package/api/resources/dubbing/client/Client.js +10 -16
  123. package/api/resources/dubbing/client/index.d.ts +1 -0
  124. package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -0
  125. package/api/resources/dubbing/resources/audio/client/Client.d.ts +4 -3
  126. package/api/resources/dubbing/resources/audio/client/Client.js +3 -6
  127. package/api/resources/dubbing/resources/resource/client/Client.d.ts +3 -1
  128. package/api/resources/dubbing/resources/resource/client/Client.js +11 -22
  129. package/api/resources/dubbing/resources/resource/client/index.d.ts +1 -0
  130. package/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +3 -1
  131. package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -4
  132. package/api/resources/dubbing/resources/resource/resources/language/client/index.d.ts +1 -0
  133. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +3 -1
  134. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -10
  135. package/api/resources/dubbing/resources/resource/resources/segment/client/index.d.ts +1 -0
  136. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +3 -1
  137. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -10
  138. package/api/resources/dubbing/resources/resource/resources/speaker/client/index.d.ts +1 -0
  139. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +3 -1
  140. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -4
  141. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/index.d.ts +1 -0
  142. package/api/resources/dubbing/resources/transcript/client/Client.d.ts +3 -1
  143. package/api/resources/dubbing/resources/transcript/client/Client.js +3 -6
  144. package/api/resources/dubbing/resources/transcript/client/index.d.ts +1 -0
  145. package/api/resources/forcedAlignment/client/Client.d.ts +3 -1
  146. package/api/resources/forcedAlignment/client/Client.js +3 -4
  147. package/api/resources/forcedAlignment/client/index.d.ts +1 -0
  148. package/api/resources/history/client/Client.d.ts +5 -4
  149. package/api/resources/history/client/Client.js +11 -28
  150. package/api/resources/history/client/index.d.ts +1 -0
  151. package/api/resources/index.d.ts +3 -0
  152. package/api/resources/index.js +4 -1
  153. package/api/resources/models/client/Client.d.ts +3 -1
  154. package/api/resources/models/client/Client.js +3 -6
  155. package/api/resources/pronunciationDictionaries/client/Client.d.ts +4 -3
  156. package/api/resources/pronunciationDictionaries/client/Client.js +11 -26
  157. package/api/resources/pronunciationDictionaries/client/index.d.ts +1 -0
  158. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +3 -1
  159. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -8
  160. package/api/resources/pronunciationDictionaries/resources/rules/client/index.d.ts +1 -0
  161. package/api/resources/samples/client/Client.d.ts +3 -1
  162. package/api/resources/samples/client/Client.js +3 -6
  163. package/api/resources/speechToSpeech/client/Client.d.ts +5 -4
  164. package/api/resources/speechToSpeech/client/Client.js +5 -8
  165. package/api/resources/speechToSpeech/client/index.d.ts +1 -0
  166. package/api/resources/speechToText/client/Client.d.ts +4 -4
  167. package/api/resources/speechToText/client/Client.js +46 -10
  168. package/api/resources/speechToText/client/index.d.ts +1 -0
  169. package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +3 -1
  170. package/api/resources/studio/client/Client.d.ts +4 -2
  171. package/api/resources/studio/client/Client.js +4 -5
  172. package/api/resources/studio/client/index.d.ts +1 -0
  173. package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +58 -3
  174. package/api/resources/studio/resources/projects/client/Client.d.ts +3 -1
  175. package/api/resources/studio/resources/projects/client/Client.js +16 -32
  176. package/api/resources/studio/resources/projects/client/index.d.ts +1 -0
  177. package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +59 -2
  178. package/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +3 -1
  179. package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -32
  180. package/api/resources/studio/resources/projects/resources/chapters/client/index.d.ts +1 -0
  181. package/api/resources/studio/resources/projects/resources/chapters/client/requests/BodyCreateChapterV1StudioProjectsProjectIdChaptersPost.d.ts +1 -1
  182. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +4 -3
  183. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -16
  184. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/index.d.ts +1 -0
  185. package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +3 -1
  186. package/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -4
  187. package/api/resources/studio/resources/projects/resources/content/client/index.d.ts +1 -0
  188. package/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +1 -1
  189. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +3 -1
  190. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -4
  191. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/index.d.ts +1 -0
  192. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +5 -4
  193. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -22
  194. package/api/resources/studio/resources/projects/resources/snapshots/client/index.d.ts +1 -0
  195. package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostDurationScale.d.ts +1 -1
  196. package/api/resources/textToDialogue/client/Client.d.ts +5 -4
  197. package/api/resources/textToDialogue/client/Client.js +5 -8
  198. package/api/resources/textToDialogue/client/index.d.ts +1 -0
  199. package/api/resources/textToSoundEffects/client/Client.d.ts +4 -3
  200. package/api/resources/textToSoundEffects/client/Client.js +3 -4
  201. package/api/resources/textToSoundEffects/client/index.d.ts +1 -0
  202. package/api/resources/textToSpeech/client/Client.d.ts +5 -4
  203. package/api/resources/textToSpeech/client/Client.js +9 -16
  204. package/api/resources/textToSpeech/client/index.d.ts +1 -0
  205. package/api/resources/textToVoice/client/Client.d.ts +35 -1
  206. package/api/resources/textToVoice/client/Client.js +167 -8
  207. package/api/resources/textToVoice/client/index.d.ts +1 -0
  208. package/api/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.d.ts +23 -0
  209. package/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +36 -0
  210. package/api/resources/textToVoice/client/requests/index.d.ts +2 -0
  211. package/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +28 -0
  212. package/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +27 -0
  213. package/api/resources/textToVoice/types/VoiceDesignRequestModelModelId.d.ts +11 -0
  214. package/api/resources/textToVoice/types/VoiceDesignRequestModelModelId.js +10 -0
  215. package/api/resources/textToVoice/types/index.d.ts +2 -0
  216. package/api/resources/textToVoice/types/index.js +2 -0
  217. package/api/resources/usage/client/Client.d.ts +3 -1
  218. package/api/resources/usage/client/Client.js +3 -6
  219. package/api/resources/usage/client/index.d.ts +1 -0
  220. package/api/resources/user/client/Client.d.ts +3 -1
  221. package/api/resources/user/client/Client.js +3 -6
  222. package/api/resources/user/resources/subscription/client/Client.d.ts +3 -1
  223. package/api/resources/user/resources/subscription/client/Client.js +3 -6
  224. package/api/resources/voices/client/Client.d.ts +4 -2
  225. package/api/resources/voices/client/Client.js +18 -43
  226. package/api/resources/voices/client/index.d.ts +1 -0
  227. package/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +1 -1
  228. package/api/resources/voices/resources/ivc/client/Client.d.ts +3 -1
  229. package/api/resources/voices/resources/ivc/client/Client.js +3 -4
  230. package/api/resources/voices/resources/ivc/client/index.d.ts +1 -0
  231. package/api/resources/voices/resources/pvc/client/Client.d.ts +3 -1
  232. package/api/resources/voices/resources/pvc/client/Client.js +7 -12
  233. package/api/resources/voices/resources/pvc/client/index.d.ts +1 -0
  234. package/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +3 -1
  235. package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -14
  236. package/api/resources/voices/resources/pvc/resources/samples/client/index.d.ts +1 -0
  237. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +3 -1
  238. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +3 -6
  239. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +3 -1
  240. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -12
  241. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +3 -1
  242. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -6
  243. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +3 -1
  244. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -6
  245. package/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +3 -1
  246. package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -4
  247. package/api/resources/voices/resources/pvc/resources/verification/client/index.d.ts +1 -0
  248. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +3 -1
  249. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -10
  250. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/index.d.ts +1 -0
  251. package/api/resources/voices/resources/samples/client/Client.d.ts +2 -0
  252. package/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +4 -3
  253. package/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -6
  254. package/api/resources/voices/resources/settings/client/Client.d.ts +3 -1
  255. package/api/resources/voices/resources/settings/client/Client.js +7 -16
  256. package/api/resources/webhooks/client/Client.d.ts +48 -0
  257. package/api/resources/webhooks/client/Client.js +142 -0
  258. package/api/resources/webhooks/client/index.d.ts +2 -0
  259. package/api/resources/webhooks/client/index.js +17 -0
  260. package/api/resources/webhooks/client/requests/WebhooksListRequest.d.ts +15 -0
  261. package/api/resources/webhooks/client/requests/index.d.ts +1 -0
  262. package/api/resources/webhooks/client/requests/index.js +2 -0
  263. package/api/resources/webhooks/index.d.ts +1 -0
  264. package/api/resources/webhooks/index.js +17 -0
  265. package/api/resources/workspace/client/Client.d.ts +69 -0
  266. package/api/resources/workspace/client/Client.js +326 -0
  267. package/api/resources/workspace/client/index.d.ts +1 -0
  268. package/api/resources/workspace/client/index.js +15 -0
  269. package/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +13 -0
  270. package/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
  271. package/api/resources/workspace/client/requests/index.d.ts +2 -0
  272. package/api/resources/workspace/client/requests/index.js +2 -0
  273. package/api/resources/workspace/resources/groups/client/Client.d.ts +3 -1
  274. package/api/resources/workspace/resources/groups/client/Client.js +3 -6
  275. package/api/resources/workspace/resources/groups/client/index.d.ts +1 -0
  276. package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +3 -1
  277. package/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -8
  278. package/api/resources/workspace/resources/groups/resources/members/client/index.d.ts +1 -0
  279. package/api/resources/workspace/resources/invites/client/Client.d.ts +3 -1
  280. package/api/resources/workspace/resources/invites/client/Client.js +7 -12
  281. package/api/resources/workspace/resources/invites/client/index.d.ts +1 -0
  282. package/api/resources/workspace/resources/members/client/Client.d.ts +3 -1
  283. package/api/resources/workspace/resources/members/client/Client.js +5 -8
  284. package/api/resources/workspace/resources/members/client/index.d.ts +1 -0
  285. package/api/resources/workspace/resources/resources/client/Client.d.ts +3 -1
  286. package/api/resources/workspace/resources/resources/client/Client.js +7 -14
  287. package/api/resources/workspace/resources/resources/client/index.d.ts +1 -0
  288. package/api/types/AddProjectRequest.d.ts +60 -3
  289. package/api/types/AgentCallLimits.d.ts +2 -0
  290. package/api/types/AgentConfigOverride.d.ts +1 -1
  291. package/api/types/AgentConfigOverrideConfig.d.ts +1 -1
  292. package/api/types/AsrProvider.d.ts +5 -1
  293. package/api/types/AsrProvider.js +5 -0
  294. package/api/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.d.ts +1 -1
  295. package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +57 -2
  296. package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.d.ts +1 -1
  297. package/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +2 -2
  298. package/api/types/BuiltInToolsInput.d.ts +16 -0
  299. package/api/types/BuiltInToolsOutput.d.ts +16 -0
  300. package/api/types/ChapterContentBlockInputModel.d.ts +1 -1
  301. package/api/types/ClientEvent.d.ts +4 -2
  302. package/api/types/ClientEvent.js +3 -1
  303. package/api/types/ClientToolConfigInput.d.ts +0 -1
  304. package/api/types/ClientToolConfigOutput.d.ts +0 -1
  305. package/api/types/ConvAiStoredSecretDependencies.d.ts +1 -1
  306. package/api/types/ConvAiStoredSecretDependenciesAgentsItem.d.ts +13 -0
  307. package/api/types/ConvAiUserSecretDbModel.d.ts +12 -0
  308. package/api/types/ConversationChargingCommonModel.d.ts +3 -0
  309. package/api/types/ConversationSimulationSpecification.d.ts +1 -0
  310. package/api/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +4 -0
  311. package/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
  312. package/api/types/DefaultSharingPreferencesResponseModel.d.ts +8 -0
  313. package/api/types/GetToolDependentAgentsResponseModel.d.ts +9 -0
  314. package/api/types/GetToolDependentAgentsResponseModelAgentsItem.d.ts +13 -0
  315. package/api/types/IntegrationType.d.ts +8 -0
  316. package/api/types/IntegrationType.js +10 -0
  317. package/api/types/InvoiceResponse.d.ts +2 -0
  318. package/api/types/ListMcpToolsResponseModel.d.ts +15 -0
  319. package/api/types/McpApprovalPolicy.d.ts +12 -0
  320. package/api/types/McpApprovalPolicy.js +11 -0
  321. package/api/types/McpServerConfigInput.d.ts +19 -0
  322. package/api/types/McpServerConfigInputRequestHeadersValue.d.ts +5 -0
  323. package/api/types/McpServerConfigInputSecretToken.d.ts +8 -0
  324. package/api/types/McpServerConfigInputUrl.d.ts +8 -0
  325. package/api/types/McpServerConfigOutput.d.ts +19 -0
  326. package/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +5 -0
  327. package/api/types/McpServerConfigOutputRequestHeadersValue.js +5 -0
  328. package/api/types/McpServerConfigOutputSecretToken.d.ts +8 -0
  329. package/api/types/McpServerConfigOutputSecretToken.js +5 -0
  330. package/api/types/McpServerConfigOutputUrl.d.ts +8 -0
  331. package/api/types/McpServerConfigOutputUrl.js +5 -0
  332. package/api/types/McpServerMetadataResponseModel.d.ts +7 -0
  333. package/api/types/McpServerMetadataResponseModel.js +5 -0
  334. package/api/types/McpServerResponseModel.d.ts +17 -0
  335. package/api/types/McpServerResponseModel.js +5 -0
  336. package/api/types/McpServerResponseModelDependentAgentsItem.d.ts +13 -0
  337. package/api/types/McpServerResponseModelDependentAgentsItem.js +5 -0
  338. package/api/types/McpServerTransport.d.ts +11 -0
  339. package/api/types/McpServerTransport.js +10 -0
  340. package/api/types/McpServersResponseModel.d.ts +10 -0
  341. package/api/types/McpServersResponseModel.js +5 -0
  342. package/api/types/McpToolApprovalHash.d.ts +15 -0
  343. package/api/types/McpToolApprovalHash.js +5 -0
  344. package/api/types/McpToolApprovalPolicy.d.ts +11 -0
  345. package/api/types/McpToolApprovalPolicy.js +10 -0
  346. package/api/types/McpToolConfigInput.d.ts +11 -4
  347. package/api/types/McpToolConfigOutput.d.ts +11 -4
  348. package/api/types/PromptAgent.d.ts +1 -27
  349. package/api/types/PromptAgentApiModelInput.d.ts +32 -0
  350. package/api/types/PromptAgentApiModelInput.js +5 -0
  351. package/{dist/api/types/PromptAgentInputToolsItem.d.ts → api/types/PromptAgentApiModelInputToolsItem.d.ts} +2 -5
  352. package/api/types/PromptAgentApiModelInputToolsItem.js +5 -0
  353. package/api/types/PromptAgentApiModelOutput.d.ts +32 -0
  354. package/api/types/PromptAgentApiModelOutput.js +5 -0
  355. package/api/types/{PromptAgentOutputToolsItem.d.ts → PromptAgentApiModelOutputToolsItem.d.ts} +2 -5
  356. package/api/types/PromptAgentApiModelOutputToolsItem.js +5 -0
  357. package/api/types/{PromptAgentOverride.d.ts → PromptAgentApiModelOverride.d.ts} +1 -1
  358. package/api/types/PromptAgentApiModelOverride.js +5 -0
  359. package/api/types/{PromptAgentOverrideConfig.d.ts → PromptAgentApiModelOverrideConfig.d.ts} +1 -1
  360. package/api/types/PromptAgentApiModelOverrideConfig.js +5 -0
  361. package/api/types/PromptAgentDbModel.d.ts +3 -2
  362. package/api/types/SubscriptionStatusType.d.ts +2 -3
  363. package/api/types/SubscriptionStatusType.js +1 -2
  364. package/api/types/SupportedVoice.d.ts +4 -0
  365. package/api/types/SystemToolConfigInput.d.ts +0 -1
  366. package/api/types/SystemToolConfigOutput.d.ts +0 -1
  367. package/api/types/Tool.d.ts +15 -0
  368. package/api/types/Tool.js +5 -0
  369. package/api/types/ToolAnnotations.d.ts +22 -0
  370. package/api/types/ToolAnnotations.js +5 -0
  371. package/api/types/ToolRequestModel.d.ts +8 -0
  372. package/api/types/ToolRequestModel.js +5 -0
  373. package/api/types/{PromptAgentDbModelToolsItem.d.ts → ToolRequestModelToolConfig.d.ts} +3 -6
  374. package/api/types/ToolRequestModelToolConfig.js +5 -0
  375. package/api/types/ToolResponseModel.d.ts +10 -0
  376. package/api/types/ToolResponseModel.js +5 -0
  377. package/{dist/api/types/PromptAgentOutputToolsItem.d.ts → api/types/ToolResponseModelToolConfig.d.ts} +2 -5
  378. package/api/types/ToolResponseModelToolConfig.js +5 -0
  379. package/api/types/ToolsResponseModel.d.ts +7 -0
  380. package/api/types/ToolsResponseModel.js +5 -0
  381. package/api/types/TransferToNumberToolConfig.d.ts +2 -0
  382. package/api/types/User.d.ts +1 -1
  383. package/api/types/VoiceDesignPreviewResponse.d.ts +2 -0
  384. package/api/types/VoicePreviewResponseModel.d.ts +4 -0
  385. package/api/types/WebhookAuthMethodType.d.ts +8 -0
  386. package/api/types/WebhookAuthMethodType.js +10 -0
  387. package/api/types/WebhookToolConfigInput.d.ts +0 -1
  388. package/api/types/WebhookToolConfigOutput.d.ts +0 -1
  389. package/api/types/WebhookUsageType.d.ts +10 -0
  390. package/api/types/WebhookUsageType.js +12 -0
  391. package/api/types/WidgetConfig.d.ts +2 -0
  392. package/api/types/WidgetConfigResponse.d.ts +2 -0
  393. package/api/types/WidgetStyles.d.ts +45 -0
  394. package/api/types/WidgetStyles.js +5 -0
  395. package/api/types/WorkspaceGroupPermission.d.ts +22 -0
  396. package/api/types/WorkspaceGroupPermission.js +24 -0
  397. package/api/types/WorkspaceGroupResponseModel.d.ts +10 -0
  398. package/api/types/WorkspaceGroupResponseModel.js +5 -0
  399. package/api/types/WorkspaceResourceType.d.ts +2 -2
  400. package/api/types/WorkspaceResourceType.js +1 -1
  401. package/api/types/WorkspaceWebhookListResponseModel.d.ts +8 -0
  402. package/api/types/WorkspaceWebhookListResponseModel.js +5 -0
  403. package/api/types/WorkspaceWebhookResponseModel.d.ts +26 -0
  404. package/api/types/WorkspaceWebhookResponseModel.js +5 -0
  405. package/api/types/WorkspaceWebhookUsageResponseModel.d.ts +7 -0
  406. package/api/types/WorkspaceWebhookUsageResponseModel.js +5 -0
  407. package/api/types/index.d.ts +48 -15
  408. package/api/types/index.js +48 -15
  409. package/core/fetcher/Fetcher.d.ts +2 -1
  410. package/core/fetcher/Fetcher.js +22 -9
  411. package/core/form-data-utils/FormDataWrapper.js +5 -4
  412. package/core/form-data-utils/toReadableStream.d.ts +1 -0
  413. package/core/form-data-utils/toReadableStream.js +28 -0
  414. package/core/headers.d.ts +3 -0
  415. package/core/headers.js +29 -0
  416. package/core/index.d.ts +1 -1
  417. package/core/index.js +1 -1
  418. package/core/runtime/runtime.js +0 -1
  419. package/{dist/core/streaming-fetcher → core/stream}/Stream.d.ts +1 -2
  420. package/dist/Client.d.ts +9 -4
  421. package/dist/Client.js +60 -12
  422. package/dist/api/resources/audioIsolation/client/Client.d.ts +5 -4
  423. package/dist/api/resources/audioIsolation/client/Client.js +5 -8
  424. package/dist/api/resources/audioIsolation/client/index.d.ts +1 -0
  425. package/dist/api/resources/audioNative/client/Client.d.ts +3 -1
  426. package/dist/api/resources/audioNative/client/Client.js +7 -14
  427. package/dist/api/resources/audioNative/client/index.d.ts +1 -0
  428. package/dist/api/resources/conversationalAi/client/Client.d.ts +9 -1
  429. package/dist/api/resources/conversationalAi/client/Client.js +31 -36
  430. package/dist/api/resources/conversationalAi/client/index.d.ts +1 -0
  431. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +17 -1
  432. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +89 -34
  433. package/dist/api/resources/conversationalAi/resources/agents/client/index.d.ts +1 -0
  434. package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.d.ts +11 -0
  435. package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.js +5 -0
  436. package/dist/api/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  437. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +3 -1
  438. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -6
  439. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +3 -1
  440. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -6
  441. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +3 -1
  442. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -4
  443. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  444. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +3 -1
  445. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -6
  446. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/index.d.ts +1 -0
  447. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +3 -1
  448. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -4
  449. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/index.d.ts +1 -0
  450. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +3 -1
  451. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +11 -28
  452. package/dist/api/resources/conversationalAi/resources/batchCalls/client/index.d.ts +1 -0
  453. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -1
  454. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -24
  455. package/dist/api/resources/conversationalAi/resources/conversations/client/index.d.ts +1 -0
  456. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +4 -3
  457. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -6
  458. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +3 -1
  459. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -4
  460. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/index.d.ts +1 -0
  461. package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +2 -0
  462. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +3 -1
  463. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -10
  464. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/index.d.ts +1 -0
  465. package/dist/api/resources/conversationalAi/resources/index.d.ts +4 -0
  466. package/dist/api/resources/conversationalAi/resources/index.js +5 -1
  467. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +3 -1
  468. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -6
  469. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/index.d.ts +1 -0
  470. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +3 -1
  471. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +3 -4
  472. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/index.d.ts +1 -0
  473. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +3 -1
  474. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +17 -40
  475. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/index.d.ts +1 -0
  476. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +3 -1
  477. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +3 -6
  478. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +3 -1
  479. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -4
  480. package/dist/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  481. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +85 -0
  482. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +298 -0
  483. package/dist/api/resources/conversationalAi/resources/mcpServers/client/index.d.ts +2 -0
  484. package/dist/api/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
  485. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +17 -0
  486. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js +5 -0
  487. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  488. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/index.js +2 -0
  489. package/dist/api/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
  490. package/dist/api/resources/conversationalAi/resources/mcpServers/index.js +18 -0
  491. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +49 -0
  492. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +142 -0
  493. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +2 -0
  494. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
  495. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +14 -0
  496. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js +5 -0
  497. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
  498. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +2 -0
  499. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
  500. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
  501. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +5 -0
  502. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.js +44 -0
  503. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +64 -0
  504. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +214 -0
  505. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +2 -0
  506. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
  507. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +21 -0
  508. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js +5 -0
  509. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
  510. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +2 -0
  511. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
  512. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
  513. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +46 -0
  514. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +134 -0
  515. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.d.ts +1 -0
  516. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.js +2 -0
  517. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.d.ts +1 -0
  518. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.js +17 -0
  519. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +3 -1
  520. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +11 -26
  521. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/index.d.ts +1 -0
  522. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +3 -1
  523. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -16
  524. package/dist/api/resources/conversationalAi/resources/secrets/client/index.d.ts +1 -0
  525. package/dist/api/resources/conversationalAi/resources/settings/client/Client.d.ts +3 -1
  526. package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +5 -10
  527. package/dist/api/resources/conversationalAi/resources/settings/client/index.d.ts +1 -0
  528. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +3 -1
  529. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -4
  530. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/index.d.ts +1 -0
  531. package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +126 -0
  532. package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +506 -0
  533. package/dist/api/resources/conversationalAi/resources/tools/client/index.d.ts +2 -0
  534. package/dist/api/resources/conversationalAi/resources/tools/client/index.js +17 -0
  535. package/dist/api/resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.d.ts +17 -0
  536. package/dist/api/resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.js +5 -0
  537. package/dist/api/resources/conversationalAi/resources/tools/client/requests/index.d.ts +1 -0
  538. package/dist/api/resources/conversationalAi/resources/tools/client/requests/index.js +2 -0
  539. package/dist/api/resources/conversationalAi/resources/tools/index.d.ts +1 -0
  540. package/dist/api/resources/conversationalAi/resources/tools/index.js +17 -0
  541. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +3 -1
  542. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -4
  543. package/dist/api/resources/conversationalAi/resources/twilio/client/index.d.ts +1 -0
  544. package/dist/api/resources/dubbing/client/Client.d.ts +3 -1
  545. package/dist/api/resources/dubbing/client/Client.js +10 -16
  546. package/dist/api/resources/dubbing/client/index.d.ts +1 -0
  547. package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -0
  548. package/dist/api/resources/dubbing/resources/audio/client/Client.d.ts +4 -3
  549. package/dist/api/resources/dubbing/resources/audio/client/Client.js +3 -6
  550. package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +3 -1
  551. package/dist/api/resources/dubbing/resources/resource/client/Client.js +11 -22
  552. package/dist/api/resources/dubbing/resources/resource/client/index.d.ts +1 -0
  553. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +3 -1
  554. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -4
  555. package/dist/api/resources/dubbing/resources/resource/resources/language/client/index.d.ts +1 -0
  556. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +3 -1
  557. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -10
  558. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/index.d.ts +1 -0
  559. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +3 -1
  560. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -10
  561. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/index.d.ts +1 -0
  562. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +3 -1
  563. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -4
  564. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/index.d.ts +1 -0
  565. package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +3 -1
  566. package/dist/api/resources/dubbing/resources/transcript/client/Client.js +3 -6
  567. package/dist/api/resources/dubbing/resources/transcript/client/index.d.ts +1 -0
  568. package/dist/api/resources/forcedAlignment/client/Client.d.ts +3 -1
  569. package/dist/api/resources/forcedAlignment/client/Client.js +3 -4
  570. package/dist/api/resources/forcedAlignment/client/index.d.ts +1 -0
  571. package/dist/api/resources/history/client/Client.d.ts +5 -4
  572. package/dist/api/resources/history/client/Client.js +11 -28
  573. package/dist/api/resources/history/client/index.d.ts +1 -0
  574. package/dist/api/resources/index.d.ts +3 -0
  575. package/dist/api/resources/index.js +4 -1
  576. package/dist/api/resources/models/client/Client.d.ts +3 -1
  577. package/dist/api/resources/models/client/Client.js +3 -6
  578. package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +4 -3
  579. package/dist/api/resources/pronunciationDictionaries/client/Client.js +11 -26
  580. package/dist/api/resources/pronunciationDictionaries/client/index.d.ts +1 -0
  581. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +3 -1
  582. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -8
  583. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/index.d.ts +1 -0
  584. package/dist/api/resources/samples/client/Client.d.ts +3 -1
  585. package/dist/api/resources/samples/client/Client.js +3 -6
  586. package/dist/api/resources/speechToSpeech/client/Client.d.ts +5 -4
  587. package/dist/api/resources/speechToSpeech/client/Client.js +5 -8
  588. package/dist/api/resources/speechToSpeech/client/index.d.ts +1 -0
  589. package/dist/api/resources/speechToText/client/Client.d.ts +4 -4
  590. package/dist/api/resources/speechToText/client/Client.js +46 -10
  591. package/dist/api/resources/speechToText/client/index.d.ts +1 -0
  592. package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +3 -1
  593. package/dist/api/resources/studio/client/Client.d.ts +4 -2
  594. package/dist/api/resources/studio/client/Client.js +4 -5
  595. package/dist/api/resources/studio/client/index.d.ts +1 -0
  596. package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +58 -3
  597. package/dist/api/resources/studio/resources/projects/client/Client.d.ts +3 -1
  598. package/dist/api/resources/studio/resources/projects/client/Client.js +16 -32
  599. package/dist/api/resources/studio/resources/projects/client/index.d.ts +1 -0
  600. package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +59 -2
  601. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +3 -1
  602. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -32
  603. package/dist/api/resources/studio/resources/projects/resources/chapters/client/index.d.ts +1 -0
  604. package/dist/api/resources/studio/resources/projects/resources/chapters/client/requests/BodyCreateChapterV1StudioProjectsProjectIdChaptersPost.d.ts +1 -1
  605. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +4 -3
  606. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -16
  607. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/index.d.ts +1 -0
  608. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +3 -1
  609. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -4
  610. package/dist/api/resources/studio/resources/projects/resources/content/client/index.d.ts +1 -0
  611. package/dist/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +1 -1
  612. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +3 -1
  613. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -4
  614. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/index.d.ts +1 -0
  615. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +5 -4
  616. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -22
  617. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/index.d.ts +1 -0
  618. package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostDurationScale.d.ts +1 -1
  619. package/dist/api/resources/textToDialogue/client/Client.d.ts +5 -4
  620. package/dist/api/resources/textToDialogue/client/Client.js +5 -8
  621. package/dist/api/resources/textToDialogue/client/index.d.ts +1 -0
  622. package/dist/api/resources/textToSoundEffects/client/Client.d.ts +4 -3
  623. package/dist/api/resources/textToSoundEffects/client/Client.js +3 -4
  624. package/dist/api/resources/textToSoundEffects/client/index.d.ts +1 -0
  625. package/dist/api/resources/textToSpeech/client/Client.d.ts +5 -4
  626. package/dist/api/resources/textToSpeech/client/Client.js +9 -16
  627. package/dist/api/resources/textToSpeech/client/index.d.ts +1 -0
  628. package/dist/api/resources/textToVoice/client/Client.d.ts +35 -1
  629. package/dist/api/resources/textToVoice/client/Client.js +167 -8
  630. package/dist/api/resources/textToVoice/client/index.d.ts +1 -0
  631. package/dist/api/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.d.ts +23 -0
  632. package/dist/api/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.js +5 -0
  633. package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +36 -0
  634. package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.js +5 -0
  635. package/dist/api/resources/textToVoice/client/requests/index.d.ts +2 -0
  636. package/dist/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +28 -0
  637. package/dist/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +27 -0
  638. package/dist/api/resources/textToVoice/types/VoiceDesignRequestModelModelId.d.ts +11 -0
  639. package/dist/api/resources/textToVoice/types/VoiceDesignRequestModelModelId.js +10 -0
  640. package/dist/api/resources/textToVoice/types/index.d.ts +2 -0
  641. package/dist/api/resources/textToVoice/types/index.js +2 -0
  642. package/dist/api/resources/usage/client/Client.d.ts +3 -1
  643. package/dist/api/resources/usage/client/Client.js +3 -6
  644. package/dist/api/resources/usage/client/index.d.ts +1 -0
  645. package/dist/api/resources/user/client/Client.d.ts +3 -1
  646. package/dist/api/resources/user/client/Client.js +3 -6
  647. package/dist/api/resources/user/resources/subscription/client/Client.d.ts +3 -1
  648. package/dist/api/resources/user/resources/subscription/client/Client.js +3 -6
  649. package/dist/api/resources/voices/client/Client.d.ts +4 -2
  650. package/dist/api/resources/voices/client/Client.js +18 -43
  651. package/dist/api/resources/voices/client/index.d.ts +1 -0
  652. package/dist/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +1 -1
  653. package/dist/api/resources/voices/resources/ivc/client/Client.d.ts +3 -1
  654. package/dist/api/resources/voices/resources/ivc/client/Client.js +3 -4
  655. package/dist/api/resources/voices/resources/ivc/client/index.d.ts +1 -0
  656. package/dist/api/resources/voices/resources/pvc/client/Client.d.ts +3 -1
  657. package/dist/api/resources/voices/resources/pvc/client/Client.js +7 -12
  658. package/dist/api/resources/voices/resources/pvc/client/index.d.ts +1 -0
  659. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +3 -1
  660. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -14
  661. package/dist/api/resources/voices/resources/pvc/resources/samples/client/index.d.ts +1 -0
  662. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +3 -1
  663. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +3 -6
  664. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +3 -1
  665. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -12
  666. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +3 -1
  667. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -6
  668. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +3 -1
  669. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -6
  670. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +3 -1
  671. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -4
  672. package/dist/api/resources/voices/resources/pvc/resources/verification/client/index.d.ts +1 -0
  673. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +3 -1
  674. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -10
  675. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/index.d.ts +1 -0
  676. package/dist/api/resources/voices/resources/samples/client/Client.d.ts +2 -0
  677. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +4 -3
  678. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -6
  679. package/dist/api/resources/voices/resources/settings/client/Client.d.ts +3 -1
  680. package/dist/api/resources/voices/resources/settings/client/Client.js +7 -16
  681. package/dist/api/resources/webhooks/client/Client.d.ts +48 -0
  682. package/dist/api/resources/webhooks/client/Client.js +142 -0
  683. package/dist/api/resources/webhooks/client/index.d.ts +2 -0
  684. package/dist/api/resources/webhooks/client/index.js +17 -0
  685. package/dist/api/resources/webhooks/client/requests/WebhooksListRequest.d.ts +15 -0
  686. package/dist/api/resources/webhooks/client/requests/WebhooksListRequest.js +5 -0
  687. package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -0
  688. package/dist/api/resources/webhooks/client/requests/index.js +2 -0
  689. package/dist/api/resources/webhooks/index.d.ts +1 -0
  690. package/dist/api/resources/webhooks/index.js +17 -0
  691. package/dist/api/resources/workspace/client/Client.d.ts +69 -0
  692. package/dist/api/resources/workspace/client/Client.js +326 -0
  693. package/dist/api/resources/workspace/client/index.d.ts +1 -0
  694. package/dist/api/resources/workspace/client/index.js +15 -0
  695. package/dist/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +13 -0
  696. package/dist/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js +5 -0
  697. package/dist/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
  698. package/dist/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +5 -0
  699. package/dist/api/resources/workspace/client/requests/index.d.ts +2 -0
  700. package/dist/api/resources/workspace/client/requests/index.js +2 -0
  701. package/dist/api/resources/workspace/resources/groups/client/Client.d.ts +3 -1
  702. package/dist/api/resources/workspace/resources/groups/client/Client.js +3 -6
  703. package/dist/api/resources/workspace/resources/groups/client/index.d.ts +1 -0
  704. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +3 -1
  705. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -8
  706. package/dist/api/resources/workspace/resources/groups/resources/members/client/index.d.ts +1 -0
  707. package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +3 -1
  708. package/dist/api/resources/workspace/resources/invites/client/Client.js +7 -12
  709. package/dist/api/resources/workspace/resources/invites/client/index.d.ts +1 -0
  710. package/dist/api/resources/workspace/resources/members/client/Client.d.ts +3 -1
  711. package/dist/api/resources/workspace/resources/members/client/Client.js +5 -8
  712. package/dist/api/resources/workspace/resources/members/client/index.d.ts +1 -0
  713. package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +3 -1
  714. package/dist/api/resources/workspace/resources/resources/client/Client.js +7 -14
  715. package/dist/api/resources/workspace/resources/resources/client/index.d.ts +1 -0
  716. package/dist/api/types/AddProjectRequest.d.ts +60 -3
  717. package/dist/api/types/AgentCallLimits.d.ts +2 -0
  718. package/dist/api/types/AgentConfigOverride.d.ts +1 -1
  719. package/dist/api/types/AgentConfigOverrideConfig.d.ts +1 -1
  720. package/dist/api/types/AsrProvider.d.ts +5 -1
  721. package/dist/api/types/AsrProvider.js +5 -0
  722. package/dist/api/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.d.ts +1 -1
  723. package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +57 -2
  724. package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.d.ts +1 -1
  725. package/dist/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +2 -2
  726. package/dist/api/types/BuiltInToolsInput.d.ts +16 -0
  727. package/dist/api/types/BuiltInToolsInput.js +5 -0
  728. package/dist/api/types/BuiltInToolsOutput.d.ts +16 -0
  729. package/dist/api/types/BuiltInToolsOutput.js +5 -0
  730. package/dist/api/types/ChapterContentBlockInputModel.d.ts +1 -1
  731. package/dist/api/types/ClientEvent.d.ts +4 -2
  732. package/dist/api/types/ClientEvent.js +3 -1
  733. package/dist/api/types/ClientToolConfigInput.d.ts +0 -1
  734. package/dist/api/types/ClientToolConfigOutput.d.ts +0 -1
  735. package/dist/api/types/ConvAiStoredSecretDependencies.d.ts +1 -1
  736. package/dist/api/types/ConvAiStoredSecretDependenciesAgentsItem.d.ts +13 -0
  737. package/dist/api/types/ConvAiStoredSecretDependenciesAgentsItem.js +5 -0
  738. package/dist/api/types/ConvAiUserSecretDbModel.d.ts +12 -0
  739. package/dist/api/types/ConvAiUserSecretDbModel.js +5 -0
  740. package/dist/api/types/ConversationChargingCommonModel.d.ts +3 -0
  741. package/dist/api/types/ConversationSimulationSpecification.d.ts +1 -0
  742. package/dist/api/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +4 -0
  743. package/dist/api/types/ConversationSimulationSpecificationDynamicVariablesValue.js +5 -0
  744. package/dist/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
  745. package/dist/api/types/DefaultSharingPreferencesResponseModel.d.ts +8 -0
  746. package/dist/api/types/DefaultSharingPreferencesResponseModel.js +5 -0
  747. package/dist/api/types/GetToolDependentAgentsResponseModel.d.ts +9 -0
  748. package/dist/api/types/GetToolDependentAgentsResponseModel.js +5 -0
  749. package/dist/api/types/GetToolDependentAgentsResponseModelAgentsItem.d.ts +13 -0
  750. package/dist/api/types/GetToolDependentAgentsResponseModelAgentsItem.js +5 -0
  751. package/dist/api/types/IntegrationType.d.ts +8 -0
  752. package/dist/api/types/IntegrationType.js +10 -0
  753. package/dist/api/types/InvoiceResponse.d.ts +2 -0
  754. package/dist/api/types/ListMcpToolsResponseModel.d.ts +15 -0
  755. package/dist/api/types/ListMcpToolsResponseModel.js +5 -0
  756. package/dist/api/types/McpApprovalPolicy.d.ts +12 -0
  757. package/dist/api/types/McpApprovalPolicy.js +11 -0
  758. package/dist/api/types/McpServerConfigInput.d.ts +19 -0
  759. package/dist/api/types/McpServerConfigInput.js +5 -0
  760. package/dist/api/types/McpServerConfigInputRequestHeadersValue.d.ts +5 -0
  761. package/dist/api/types/McpServerConfigInputRequestHeadersValue.js +5 -0
  762. package/dist/api/types/McpServerConfigInputSecretToken.d.ts +8 -0
  763. package/dist/api/types/McpServerConfigInputSecretToken.js +5 -0
  764. package/dist/api/types/McpServerConfigInputUrl.d.ts +8 -0
  765. package/dist/api/types/McpServerConfigInputUrl.js +5 -0
  766. package/dist/api/types/McpServerConfigOutput.d.ts +19 -0
  767. package/dist/api/types/McpServerConfigOutput.js +5 -0
  768. package/dist/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +5 -0
  769. package/dist/api/types/McpServerConfigOutputRequestHeadersValue.js +5 -0
  770. package/dist/api/types/McpServerConfigOutputSecretToken.d.ts +8 -0
  771. package/dist/api/types/McpServerConfigOutputSecretToken.js +5 -0
  772. package/dist/api/types/McpServerConfigOutputUrl.d.ts +8 -0
  773. package/dist/api/types/McpServerConfigOutputUrl.js +5 -0
  774. package/dist/api/types/McpServerMetadataResponseModel.d.ts +7 -0
  775. package/dist/api/types/McpServerMetadataResponseModel.js +5 -0
  776. package/dist/api/types/McpServerResponseModel.d.ts +17 -0
  777. package/dist/api/types/McpServerResponseModel.js +5 -0
  778. package/dist/api/types/McpServerResponseModelDependentAgentsItem.d.ts +13 -0
  779. package/dist/api/types/McpServerResponseModelDependentAgentsItem.js +5 -0
  780. package/dist/api/types/McpServerTransport.d.ts +11 -0
  781. package/dist/api/types/McpServerTransport.js +10 -0
  782. package/dist/api/types/McpServersResponseModel.d.ts +10 -0
  783. package/dist/api/types/McpServersResponseModel.js +5 -0
  784. package/dist/api/types/McpToolApprovalHash.d.ts +15 -0
  785. package/dist/api/types/McpToolApprovalHash.js +5 -0
  786. package/dist/api/types/McpToolApprovalPolicy.d.ts +11 -0
  787. package/dist/api/types/McpToolApprovalPolicy.js +10 -0
  788. package/dist/api/types/McpToolConfigInput.d.ts +11 -4
  789. package/dist/api/types/McpToolConfigOutput.d.ts +11 -4
  790. package/dist/api/types/PromptAgent.d.ts +1 -27
  791. package/dist/api/types/PromptAgentApiModelInput.d.ts +32 -0
  792. package/dist/api/types/PromptAgentApiModelInput.js +5 -0
  793. package/{api/types/PromptAgentInputToolsItem.d.ts → dist/api/types/PromptAgentApiModelInputToolsItem.d.ts} +2 -5
  794. package/dist/api/types/PromptAgentApiModelInputToolsItem.js +5 -0
  795. package/dist/api/types/PromptAgentApiModelOutput.d.ts +32 -0
  796. package/dist/api/types/PromptAgentApiModelOutput.js +5 -0
  797. package/dist/api/types/PromptAgentApiModelOutputToolsItem.d.ts +22 -0
  798. package/dist/api/types/PromptAgentApiModelOutputToolsItem.js +5 -0
  799. package/dist/api/types/{PromptAgentOverride.d.ts → PromptAgentApiModelOverride.d.ts} +1 -1
  800. package/dist/api/types/PromptAgentApiModelOverride.js +5 -0
  801. package/dist/api/types/{PromptAgentOverrideConfig.d.ts → PromptAgentApiModelOverrideConfig.d.ts} +1 -1
  802. package/dist/api/types/PromptAgentApiModelOverrideConfig.js +5 -0
  803. package/dist/api/types/PromptAgentDbModel.d.ts +3 -2
  804. package/dist/api/types/SubscriptionStatusType.d.ts +2 -3
  805. package/dist/api/types/SubscriptionStatusType.js +1 -2
  806. package/dist/api/types/SupportedVoice.d.ts +4 -0
  807. package/dist/api/types/SystemToolConfigInput.d.ts +0 -1
  808. package/dist/api/types/SystemToolConfigOutput.d.ts +0 -1
  809. package/dist/api/types/Tool.d.ts +15 -0
  810. package/dist/api/types/Tool.js +5 -0
  811. package/dist/api/types/ToolAnnotations.d.ts +22 -0
  812. package/dist/api/types/ToolAnnotations.js +5 -0
  813. package/dist/api/types/ToolRequestModel.d.ts +8 -0
  814. package/dist/api/types/ToolRequestModel.js +5 -0
  815. package/dist/api/types/{PromptAgentDbModelToolsItem.d.ts → ToolRequestModelToolConfig.d.ts} +3 -6
  816. package/dist/api/types/ToolRequestModelToolConfig.js +5 -0
  817. package/dist/api/types/ToolResponseModel.d.ts +10 -0
  818. package/dist/api/types/ToolResponseModel.js +5 -0
  819. package/dist/api/types/ToolResponseModelToolConfig.d.ts +22 -0
  820. package/dist/api/types/ToolResponseModelToolConfig.js +5 -0
  821. package/dist/api/types/ToolsResponseModel.d.ts +7 -0
  822. package/dist/api/types/ToolsResponseModel.js +5 -0
  823. package/dist/api/types/TransferToNumberToolConfig.d.ts +2 -0
  824. package/dist/api/types/User.d.ts +1 -1
  825. package/dist/api/types/VoiceDesignPreviewResponse.d.ts +2 -0
  826. package/dist/api/types/VoicePreviewResponseModel.d.ts +4 -0
  827. package/dist/api/types/WebhookAuthMethodType.d.ts +8 -0
  828. package/dist/api/types/WebhookAuthMethodType.js +10 -0
  829. package/dist/api/types/WebhookToolConfigInput.d.ts +0 -1
  830. package/dist/api/types/WebhookToolConfigOutput.d.ts +0 -1
  831. package/dist/api/types/WebhookUsageType.d.ts +10 -0
  832. package/dist/api/types/WebhookUsageType.js +12 -0
  833. package/dist/api/types/WidgetConfig.d.ts +2 -0
  834. package/dist/api/types/WidgetConfigResponse.d.ts +2 -0
  835. package/dist/api/types/WidgetStyles.d.ts +45 -0
  836. package/dist/api/types/WidgetStyles.js +5 -0
  837. package/dist/api/types/WorkspaceGroupPermission.d.ts +22 -0
  838. package/dist/api/types/WorkspaceGroupPermission.js +24 -0
  839. package/dist/api/types/WorkspaceGroupResponseModel.d.ts +10 -0
  840. package/dist/api/types/WorkspaceGroupResponseModel.js +5 -0
  841. package/dist/api/types/WorkspaceResourceType.d.ts +2 -2
  842. package/dist/api/types/WorkspaceResourceType.js +1 -1
  843. package/dist/api/types/WorkspaceWebhookListResponseModel.d.ts +8 -0
  844. package/dist/api/types/WorkspaceWebhookListResponseModel.js +5 -0
  845. package/dist/api/types/WorkspaceWebhookResponseModel.d.ts +26 -0
  846. package/dist/api/types/WorkspaceWebhookResponseModel.js +5 -0
  847. package/dist/api/types/WorkspaceWebhookUsageResponseModel.d.ts +7 -0
  848. package/dist/api/types/WorkspaceWebhookUsageResponseModel.js +5 -0
  849. package/dist/api/types/index.d.ts +48 -15
  850. package/dist/api/types/index.js +48 -15
  851. package/dist/core/fetcher/Fetcher.d.ts +2 -1
  852. package/dist/core/fetcher/Fetcher.js +22 -9
  853. package/dist/core/form-data-utils/FormDataWrapper.js +5 -4
  854. package/dist/core/form-data-utils/toReadableStream.d.ts +1 -0
  855. package/dist/core/form-data-utils/toReadableStream.js +28 -0
  856. package/dist/core/headers.d.ts +3 -0
  857. package/dist/core/headers.js +29 -0
  858. package/dist/core/index.d.ts +1 -1
  859. package/dist/core/index.js +1 -1
  860. package/dist/core/runtime/runtime.js +0 -1
  861. package/{core/streaming-fetcher → dist/core/stream}/Stream.d.ts +1 -2
  862. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.d.ts +12 -0
  863. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.js +43 -0
  864. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  865. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/index.js +3 -1
  866. package/dist/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
  867. package/dist/serialization/resources/conversationalAi/resources/index.js +3 -1
  868. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/index.d.ts +1 -0
  869. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
  870. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +13 -0
  871. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js +44 -0
  872. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  873. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.js +5 -0
  874. package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
  875. package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.js +18 -0
  876. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +1 -0
  877. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
  878. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +13 -0
  879. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js +44 -0
  880. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
  881. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +5 -0
  882. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
  883. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
  884. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +4 -0
  885. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +43 -0
  886. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +1 -0
  887. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
  888. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +16 -0
  889. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js +47 -0
  890. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
  891. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +5 -0
  892. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
  893. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
  894. package/dist/serialization/resources/index.d.ts +1 -0
  895. package/dist/serialization/resources/index.js +1 -0
  896. package/dist/serialization/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.d.ts +16 -0
  897. package/dist/serialization/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.js +47 -0
  898. package/dist/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +22 -0
  899. package/dist/serialization/{types/NativeMcpToolConfigInput.js → resources/textToVoice/client/requests/VoiceDesignRequestModel.js} +14 -13
  900. package/dist/serialization/resources/textToVoice/client/requests/index.d.ts +2 -0
  901. package/dist/serialization/resources/textToVoice/client/requests/index.js +5 -1
  902. package/dist/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +10 -0
  903. package/dist/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +61 -0
  904. package/dist/serialization/resources/textToVoice/types/VoiceDesignRequestModelModelId.d.ts +10 -0
  905. package/dist/serialization/resources/textToVoice/types/VoiceDesignRequestModelModelId.js +41 -0
  906. package/dist/serialization/resources/textToVoice/types/index.d.ts +2 -0
  907. package/dist/serialization/resources/textToVoice/types/index.js +2 -0
  908. package/dist/serialization/resources/workspace/client/getShareOptions.d.ts +11 -0
  909. package/dist/serialization/resources/workspace/client/getShareOptions.js +42 -0
  910. package/dist/serialization/resources/workspace/client/index.d.ts +2 -0
  911. package/dist/serialization/resources/workspace/client/index.js +41 -0
  912. package/dist/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +12 -0
  913. package/dist/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js +43 -0
  914. package/dist/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
  915. package/dist/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +43 -0
  916. package/dist/serialization/resources/workspace/client/requests/index.d.ts +2 -0
  917. package/dist/serialization/resources/workspace/client/requests/index.js +7 -0
  918. package/dist/serialization/resources/workspace/index.d.ts +1 -0
  919. package/dist/serialization/resources/workspace/index.js +1 -0
  920. package/dist/serialization/types/AddProjectRequest.d.ts +1 -0
  921. package/dist/serialization/types/AddProjectRequest.js +1 -0
  922. package/dist/serialization/types/AgentCallLimits.d.ts +1 -0
  923. package/dist/serialization/types/AgentCallLimits.js +1 -0
  924. package/dist/serialization/types/AgentConfigOverride.d.ts +2 -2
  925. package/dist/serialization/types/AgentConfigOverride.js +2 -2
  926. package/dist/serialization/types/AgentConfigOverrideConfig.d.ts +2 -2
  927. package/dist/serialization/types/AgentConfigOverrideConfig.js +2 -2
  928. package/dist/serialization/types/AsrProvider.d.ts +1 -1
  929. package/dist/serialization/types/AsrProvider.js +1 -1
  930. package/dist/serialization/types/BuiltInToolsInput.d.ts +17 -0
  931. package/dist/serialization/types/BuiltInToolsInput.js +48 -0
  932. package/dist/serialization/types/BuiltInToolsOutput.d.ts +17 -0
  933. package/dist/serialization/types/BuiltInToolsOutput.js +48 -0
  934. package/dist/serialization/types/ChapterContentBlockInputModel.d.ts +1 -1
  935. package/dist/serialization/types/ChapterContentBlockInputModel.js +1 -1
  936. package/dist/serialization/types/ClientEvent.d.ts +1 -1
  937. package/dist/serialization/types/ClientEvent.js +3 -1
  938. package/dist/serialization/types/ClientToolConfigInput.d.ts +0 -1
  939. package/dist/serialization/types/ClientToolConfigInput.js +0 -1
  940. package/dist/serialization/types/ClientToolConfigOutput.d.ts +0 -1
  941. package/dist/serialization/types/ClientToolConfigOutput.js +0 -1
  942. package/dist/serialization/types/ConvAiStoredSecretDependencies.d.ts +2 -2
  943. package/dist/serialization/types/ConvAiStoredSecretDependencies.js +2 -2
  944. package/dist/serialization/types/ConvAiStoredSecretDependenciesAgentsItem.d.ts +18 -0
  945. package/dist/serialization/types/{ConvAiStoredSecretDependenciesAgentToolsItem.js → ConvAiStoredSecretDependenciesAgentsItem.js} +6 -6
  946. package/dist/serialization/types/ConvAiUserSecretDbModel.d.ts +15 -0
  947. package/dist/serialization/types/ConvAiUserSecretDbModel.js +46 -0
  948. package/dist/serialization/types/ConversationChargingCommonModel.d.ts +3 -0
  949. package/dist/serialization/types/ConversationChargingCommonModel.js +3 -0
  950. package/dist/serialization/types/ConversationSimulationSpecification.d.ts +2 -0
  951. package/dist/serialization/types/ConversationSimulationSpecification.js +4 -0
  952. package/dist/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +10 -0
  953. package/{serialization/types/McpApprovalRequiredModel.js → dist/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.js} +6 -5
  954. package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +1 -0
  955. package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.js +1 -0
  956. package/dist/serialization/types/DefaultSharingPreferencesResponseModel.d.ts +13 -0
  957. package/dist/serialization/types/DefaultSharingPreferencesResponseModel.js +44 -0
  958. package/dist/serialization/types/GetToolDependentAgentsResponseModel.d.ts +15 -0
  959. package/dist/serialization/types/{GetSharedSoundGenerationsResponseModel.js → GetToolDependentAgentsResponseModel.js} +5 -5
  960. package/dist/serialization/types/GetToolDependentAgentsResponseModelAgentsItem.d.ts +18 -0
  961. package/{serialization/types/ConvAiStoredSecretDependenciesAgentToolsItem.js → dist/serialization/types/GetToolDependentAgentsResponseModelAgentsItem.js} +6 -6
  962. package/dist/serialization/types/IntegrationType.d.ts +10 -0
  963. package/{serialization/types/DependentUnknownAgentToolIdentifier.js → dist/serialization/types/IntegrationType.js} +2 -2
  964. package/dist/serialization/types/InvoiceResponse.d.ts +1 -0
  965. package/dist/serialization/types/InvoiceResponse.js +1 -0
  966. package/dist/serialization/types/ListMcpToolsResponseModel.d.ts +15 -0
  967. package/dist/serialization/types/ListMcpToolsResponseModel.js +46 -0
  968. package/dist/serialization/types/McpApprovalPolicy.d.ts +10 -0
  969. package/dist/serialization/types/McpApprovalPolicy.js +41 -0
  970. package/dist/serialization/types/McpServerConfigInput.d.ts +25 -0
  971. package/{serialization/types/NativeMcpToolConfigInput.js → dist/serialization/types/McpServerConfigInput.js} +15 -11
  972. package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +11 -0
  973. package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.js +42 -0
  974. package/dist/serialization/types/McpServerConfigInputSecretToken.d.ts +12 -0
  975. package/dist/serialization/types/McpServerConfigInputSecretToken.js +43 -0
  976. package/dist/serialization/types/McpServerConfigInputUrl.d.ts +11 -0
  977. package/dist/serialization/types/{McpApprovalRequiredModel.js → McpServerConfigInputUrl.js} +3 -6
  978. package/dist/serialization/types/McpServerConfigOutput.d.ts +25 -0
  979. package/dist/serialization/types/McpServerConfigOutput.js +56 -0
  980. package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +11 -0
  981. package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.js +42 -0
  982. package/dist/serialization/types/McpServerConfigOutputSecretToken.d.ts +12 -0
  983. package/dist/serialization/types/McpServerConfigOutputSecretToken.js +43 -0
  984. package/dist/serialization/types/McpServerConfigOutputUrl.d.ts +11 -0
  985. package/dist/serialization/types/McpServerConfigOutputUrl.js +42 -0
  986. package/dist/serialization/types/McpServerMetadataResponseModel.d.ts +13 -0
  987. package/dist/serialization/types/McpServerMetadataResponseModel.js +44 -0
  988. package/dist/serialization/types/McpServerResponseModel.d.ts +20 -0
  989. package/dist/serialization/types/McpServerResponseModel.js +51 -0
  990. package/dist/serialization/types/McpServerResponseModelDependentAgentsItem.d.ts +18 -0
  991. package/dist/serialization/types/McpServerResponseModelDependentAgentsItem.js +51 -0
  992. package/dist/serialization/types/McpServerTransport.d.ts +10 -0
  993. package/dist/serialization/types/{DependentUnknownAgentToolIdentifier.js → McpServerTransport.js} +2 -2
  994. package/dist/serialization/types/McpServersResponseModel.d.ts +13 -0
  995. package/dist/serialization/types/McpServersResponseModel.js +44 -0
  996. package/dist/serialization/types/McpToolApprovalHash.d.ts +15 -0
  997. package/dist/serialization/types/McpToolApprovalHash.js +46 -0
  998. package/dist/serialization/types/McpToolApprovalPolicy.d.ts +10 -0
  999. package/dist/serialization/types/McpToolApprovalPolicy.js +41 -0
  1000. package/dist/serialization/types/McpToolConfigInput.d.ts +7 -3
  1001. package/dist/serialization/types/McpToolConfigInput.js +7 -3
  1002. package/dist/serialization/types/McpToolConfigOutput.d.ts +7 -3
  1003. package/dist/serialization/types/McpToolConfigOutput.js +7 -3
  1004. package/dist/serialization/types/PromptAgent.d.ts +2 -20
  1005. package/dist/serialization/types/PromptAgent.js +1 -19
  1006. package/dist/serialization/types/PromptAgentApiModelInput.d.ts +30 -0
  1007. package/dist/serialization/types/PromptAgentApiModelInput.js +61 -0
  1008. package/dist/serialization/types/{PromptAgentInputToolsItem.d.ts → PromptAgentApiModelInputToolsItem.d.ts} +3 -7
  1009. package/{serialization/types/PromptAgentInputToolsItem.js → dist/serialization/types/PromptAgentApiModelInputToolsItem.js} +2 -4
  1010. package/dist/serialization/types/PromptAgentApiModelOutput.d.ts +30 -0
  1011. package/dist/serialization/types/PromptAgentApiModelOutput.js +61 -0
  1012. package/{serialization/types/PromptAgentOutputToolsItem.d.ts → dist/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts} +3 -7
  1013. package/dist/serialization/types/{PromptAgentOutputToolsItem.js → PromptAgentApiModelOutputToolsItem.js} +2 -4
  1014. package/{serialization/types/PromptAgentOverride.d.ts → dist/serialization/types/PromptAgentApiModelOverride.d.ts} +2 -2
  1015. package/{serialization/types/PromptAgentOverride.js → dist/serialization/types/PromptAgentApiModelOverride.js} +2 -2
  1016. package/{serialization/types/PromptAgentOverrideConfig.d.ts → dist/serialization/types/PromptAgentApiModelOverrideConfig.d.ts} +2 -2
  1017. package/dist/serialization/types/{PromptAgentOverrideConfig.js → PromptAgentApiModelOverrideConfig.js} +2 -2
  1018. package/dist/serialization/types/PromptAgentDbModel.d.ts +3 -2
  1019. package/dist/serialization/types/PromptAgentDbModel.js +3 -2
  1020. package/dist/serialization/types/SubscriptionStatusType.d.ts +1 -1
  1021. package/dist/serialization/types/SubscriptionStatusType.js +1 -2
  1022. package/dist/serialization/types/SupportedVoice.d.ts +5 -0
  1023. package/dist/serialization/types/SupportedVoice.js +5 -0
  1024. package/dist/serialization/types/SystemToolConfigInput.d.ts +0 -1
  1025. package/dist/serialization/types/SystemToolConfigInput.js +0 -1
  1026. package/dist/serialization/types/SystemToolConfigOutput.d.ts +0 -1
  1027. package/dist/serialization/types/SystemToolConfigOutput.js +0 -1
  1028. package/dist/serialization/types/Tool.d.ts +17 -0
  1029. package/dist/serialization/types/Tool.js +49 -0
  1030. package/dist/serialization/types/ToolAnnotations.d.ts +17 -0
  1031. package/dist/serialization/types/ToolAnnotations.js +49 -0
  1032. package/dist/serialization/types/ToolRequestModel.d.ts +13 -0
  1033. package/dist/serialization/types/ToolRequestModel.js +44 -0
  1034. package/{serialization/types/PromptAgentInputToolsItem.d.ts → dist/serialization/types/ToolRequestModelToolConfig.d.ts} +3 -7
  1035. package/dist/serialization/types/{PromptAgentInputToolsItem.js → ToolRequestModelToolConfig.js} +2 -4
  1036. package/dist/serialization/types/ToolResponseModel.d.ts +16 -0
  1037. package/dist/serialization/types/ToolResponseModel.js +47 -0
  1038. package/dist/serialization/types/{PromptAgentOutputToolsItem.d.ts → ToolResponseModelToolConfig.d.ts} +3 -7
  1039. package/{serialization/types/PromptAgentOutputToolsItem.js → dist/serialization/types/ToolResponseModelToolConfig.js} +2 -4
  1040. package/dist/serialization/types/ToolsResponseModel.d.ts +13 -0
  1041. package/dist/serialization/types/ToolsResponseModel.js +44 -0
  1042. package/dist/serialization/types/TransferToNumberToolConfig.d.ts +1 -0
  1043. package/dist/serialization/types/TransferToNumberToolConfig.js +1 -0
  1044. package/dist/serialization/types/WebhookAuthMethodType.d.ts +10 -0
  1045. package/dist/serialization/types/WebhookAuthMethodType.js +41 -0
  1046. package/dist/serialization/types/WebhookToolConfigInput.d.ts +0 -1
  1047. package/dist/serialization/types/WebhookToolConfigInput.js +0 -1
  1048. package/dist/serialization/types/WebhookToolConfigOutput.d.ts +0 -1
  1049. package/dist/serialization/types/WebhookToolConfigOutput.js +0 -1
  1050. package/dist/serialization/types/WebhookUsageType.d.ts +10 -0
  1051. package/dist/serialization/types/{DependentAvailableAgentToolIdentifierAccessLevel.js → WebhookUsageType.js} +7 -2
  1052. package/dist/serialization/types/WidgetConfig.d.ts +2 -0
  1053. package/dist/serialization/types/WidgetConfig.js +2 -0
  1054. package/dist/serialization/types/WidgetConfigResponse.d.ts +2 -0
  1055. package/dist/serialization/types/WidgetConfigResponse.js +2 -0
  1056. package/dist/serialization/types/WidgetStyles.d.ts +31 -0
  1057. package/dist/serialization/types/WidgetStyles.js +62 -0
  1058. package/dist/serialization/types/WorkspaceGroupPermission.d.ts +10 -0
  1059. package/dist/serialization/types/WorkspaceGroupPermission.js +58 -0
  1060. package/dist/serialization/types/WorkspaceGroupResponseModel.d.ts +16 -0
  1061. package/dist/serialization/types/WorkspaceGroupResponseModel.js +47 -0
  1062. package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
  1063. package/dist/serialization/types/WorkspaceResourceType.js +1 -1
  1064. package/dist/serialization/types/WorkspaceWebhookListResponseModel.d.ts +13 -0
  1065. package/dist/serialization/types/WorkspaceWebhookListResponseModel.js +44 -0
  1066. package/dist/serialization/types/WorkspaceWebhookResponseModel.d.ts +23 -0
  1067. package/dist/serialization/types/{NativeMcpToolConfigOutput.js → WorkspaceWebhookResponseModel.js} +13 -11
  1068. package/dist/serialization/types/WorkspaceWebhookUsageResponseModel.d.ts +13 -0
  1069. package/dist/serialization/types/WorkspaceWebhookUsageResponseModel.js +44 -0
  1070. package/dist/serialization/types/index.d.ts +48 -15
  1071. package/dist/serialization/types/index.js +48 -15
  1072. package/dist/version.d.ts +1 -1
  1073. package/dist/version.js +1 -1
  1074. package/dist/wrapper/ElevenLabsClient.d.ts +4 -3
  1075. package/dist/wrapper/ElevenLabsClient.js +6 -1
  1076. package/dist/wrapper/webhooks.d.ts +4 -3
  1077. package/dist/wrapper/webhooks.js +68 -46
  1078. package/jest.config.mjs +1 -0
  1079. package/package.json +6 -4
  1080. package/reference.md +1868 -479
  1081. package/scripts/rename-to-esm-files.js +10 -2
  1082. package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.d.ts +12 -0
  1083. package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.js +43 -0
  1084. package/serialization/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  1085. package/serialization/resources/conversationalAi/resources/agents/client/requests/index.js +3 -1
  1086. package/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
  1087. package/serialization/resources/conversationalAi/resources/index.js +3 -1
  1088. package/serialization/resources/conversationalAi/resources/mcpServers/client/index.d.ts +1 -0
  1089. package/serialization/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
  1090. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +13 -0
  1091. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js +44 -0
  1092. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  1093. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.js +5 -0
  1094. package/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
  1095. package/serialization/resources/conversationalAi/resources/mcpServers/index.js +18 -0
  1096. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +1 -0
  1097. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
  1098. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +13 -0
  1099. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js +44 -0
  1100. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
  1101. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +5 -0
  1102. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
  1103. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
  1104. package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +4 -0
  1105. package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +43 -0
  1106. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +1 -0
  1107. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
  1108. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +16 -0
  1109. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js +47 -0
  1110. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
  1111. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +5 -0
  1112. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
  1113. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
  1114. package/serialization/resources/index.d.ts +1 -0
  1115. package/serialization/resources/index.js +1 -0
  1116. package/serialization/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.d.ts +16 -0
  1117. package/serialization/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.js +47 -0
  1118. package/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +22 -0
  1119. package/{dist/serialization/types/DependentAvailableAgentToolIdentifier.js → serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.js} +14 -9
  1120. package/serialization/resources/textToVoice/client/requests/index.d.ts +2 -0
  1121. package/serialization/resources/textToVoice/client/requests/index.js +5 -1
  1122. package/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +10 -0
  1123. package/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +61 -0
  1124. package/serialization/resources/textToVoice/types/VoiceDesignRequestModelModelId.d.ts +10 -0
  1125. package/serialization/resources/textToVoice/types/VoiceDesignRequestModelModelId.js +41 -0
  1126. package/serialization/resources/textToVoice/types/index.d.ts +2 -0
  1127. package/serialization/resources/textToVoice/types/index.js +2 -0
  1128. package/serialization/resources/workspace/client/getShareOptions.d.ts +11 -0
  1129. package/serialization/resources/workspace/client/getShareOptions.js +42 -0
  1130. package/serialization/resources/workspace/client/index.d.ts +2 -0
  1131. package/serialization/resources/workspace/client/index.js +41 -0
  1132. package/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +12 -0
  1133. package/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js +43 -0
  1134. package/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
  1135. package/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +43 -0
  1136. package/serialization/resources/workspace/client/requests/index.d.ts +2 -0
  1137. package/serialization/resources/workspace/client/requests/index.js +7 -0
  1138. package/serialization/resources/workspace/index.d.ts +1 -0
  1139. package/serialization/resources/workspace/index.js +1 -0
  1140. package/serialization/types/AddProjectRequest.d.ts +1 -0
  1141. package/serialization/types/AddProjectRequest.js +1 -0
  1142. package/serialization/types/AgentCallLimits.d.ts +1 -0
  1143. package/serialization/types/AgentCallLimits.js +1 -0
  1144. package/serialization/types/AgentConfigOverride.d.ts +2 -2
  1145. package/serialization/types/AgentConfigOverride.js +2 -2
  1146. package/serialization/types/AgentConfigOverrideConfig.d.ts +2 -2
  1147. package/serialization/types/AgentConfigOverrideConfig.js +2 -2
  1148. package/serialization/types/AsrProvider.d.ts +1 -1
  1149. package/serialization/types/AsrProvider.js +1 -1
  1150. package/serialization/types/BuiltInToolsInput.d.ts +17 -0
  1151. package/serialization/types/BuiltInToolsInput.js +48 -0
  1152. package/serialization/types/BuiltInToolsOutput.d.ts +17 -0
  1153. package/serialization/types/BuiltInToolsOutput.js +48 -0
  1154. package/serialization/types/ChapterContentBlockInputModel.d.ts +1 -1
  1155. package/serialization/types/ChapterContentBlockInputModel.js +1 -1
  1156. package/serialization/types/ClientEvent.d.ts +1 -1
  1157. package/serialization/types/ClientEvent.js +3 -1
  1158. package/serialization/types/ClientToolConfigInput.d.ts +0 -1
  1159. package/serialization/types/ClientToolConfigInput.js +0 -1
  1160. package/serialization/types/ClientToolConfigOutput.d.ts +0 -1
  1161. package/serialization/types/ClientToolConfigOutput.js +0 -1
  1162. package/serialization/types/ConvAiStoredSecretDependencies.d.ts +2 -2
  1163. package/serialization/types/ConvAiStoredSecretDependencies.js +2 -2
  1164. package/serialization/types/ConvAiStoredSecretDependenciesAgentsItem.d.ts +18 -0
  1165. package/serialization/types/ConvAiStoredSecretDependenciesAgentsItem.js +51 -0
  1166. package/serialization/types/ConvAiUserSecretDbModel.d.ts +15 -0
  1167. package/serialization/types/ConvAiUserSecretDbModel.js +46 -0
  1168. package/serialization/types/ConversationChargingCommonModel.d.ts +3 -0
  1169. package/serialization/types/ConversationChargingCommonModel.js +3 -0
  1170. package/serialization/types/ConversationSimulationSpecification.d.ts +2 -0
  1171. package/serialization/types/ConversationSimulationSpecification.js +4 -0
  1172. package/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +10 -0
  1173. package/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.js +46 -0
  1174. package/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +1 -0
  1175. package/serialization/types/CreateSipTrunkPhoneNumberRequest.js +1 -0
  1176. package/serialization/types/DefaultSharingPreferencesResponseModel.d.ts +13 -0
  1177. package/serialization/types/DefaultSharingPreferencesResponseModel.js +44 -0
  1178. package/serialization/types/GetToolDependentAgentsResponseModel.d.ts +15 -0
  1179. package/serialization/types/{GetSharedSoundGenerationsResponseModel.js → GetToolDependentAgentsResponseModel.js} +5 -5
  1180. package/serialization/types/GetToolDependentAgentsResponseModelAgentsItem.d.ts +18 -0
  1181. package/serialization/types/GetToolDependentAgentsResponseModelAgentsItem.js +51 -0
  1182. package/serialization/types/IntegrationType.d.ts +10 -0
  1183. package/serialization/types/IntegrationType.js +41 -0
  1184. package/serialization/types/InvoiceResponse.d.ts +1 -0
  1185. package/serialization/types/InvoiceResponse.js +1 -0
  1186. package/serialization/types/ListMcpToolsResponseModel.d.ts +15 -0
  1187. package/serialization/types/ListMcpToolsResponseModel.js +46 -0
  1188. package/serialization/types/McpApprovalPolicy.d.ts +10 -0
  1189. package/serialization/types/McpApprovalPolicy.js +41 -0
  1190. package/serialization/types/McpServerConfigInput.d.ts +25 -0
  1191. package/serialization/types/McpServerConfigInput.js +56 -0
  1192. package/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +11 -0
  1193. package/serialization/types/McpServerConfigInputRequestHeadersValue.js +42 -0
  1194. package/serialization/types/McpServerConfigInputSecretToken.d.ts +12 -0
  1195. package/serialization/types/McpServerConfigInputSecretToken.js +43 -0
  1196. package/serialization/types/McpServerConfigInputUrl.d.ts +11 -0
  1197. package/serialization/types/McpServerConfigInputUrl.js +42 -0
  1198. package/serialization/types/McpServerConfigOutput.d.ts +25 -0
  1199. package/serialization/types/McpServerConfigOutput.js +56 -0
  1200. package/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +11 -0
  1201. package/serialization/types/McpServerConfigOutputRequestHeadersValue.js +42 -0
  1202. package/serialization/types/McpServerConfigOutputSecretToken.d.ts +12 -0
  1203. package/serialization/types/McpServerConfigOutputSecretToken.js +43 -0
  1204. package/serialization/types/McpServerConfigOutputUrl.d.ts +11 -0
  1205. package/serialization/types/McpServerConfigOutputUrl.js +42 -0
  1206. package/serialization/types/McpServerMetadataResponseModel.d.ts +13 -0
  1207. package/serialization/types/McpServerMetadataResponseModel.js +44 -0
  1208. package/serialization/types/McpServerResponseModel.d.ts +20 -0
  1209. package/serialization/types/McpServerResponseModel.js +51 -0
  1210. package/serialization/types/McpServerResponseModelDependentAgentsItem.d.ts +18 -0
  1211. package/serialization/types/McpServerResponseModelDependentAgentsItem.js +51 -0
  1212. package/serialization/types/McpServerTransport.d.ts +10 -0
  1213. package/serialization/types/McpServerTransport.js +41 -0
  1214. package/serialization/types/McpServersResponseModel.d.ts +13 -0
  1215. package/serialization/types/McpServersResponseModel.js +44 -0
  1216. package/serialization/types/McpToolApprovalHash.d.ts +15 -0
  1217. package/serialization/types/McpToolApprovalHash.js +46 -0
  1218. package/serialization/types/McpToolApprovalPolicy.d.ts +10 -0
  1219. package/serialization/types/McpToolApprovalPolicy.js +41 -0
  1220. package/serialization/types/McpToolConfigInput.d.ts +7 -3
  1221. package/serialization/types/McpToolConfigInput.js +7 -3
  1222. package/serialization/types/McpToolConfigOutput.d.ts +7 -3
  1223. package/serialization/types/McpToolConfigOutput.js +7 -3
  1224. package/serialization/types/PromptAgent.d.ts +2 -20
  1225. package/serialization/types/PromptAgent.js +1 -19
  1226. package/serialization/types/PromptAgentApiModelInput.d.ts +30 -0
  1227. package/serialization/types/PromptAgentApiModelInput.js +61 -0
  1228. package/{dist/serialization/types/PromptAgentDbModelToolsItem.d.ts → serialization/types/PromptAgentApiModelInputToolsItem.d.ts} +3 -7
  1229. package/{dist/serialization/types/PromptAgentDbModelToolsItem.js → serialization/types/PromptAgentApiModelInputToolsItem.js} +2 -4
  1230. package/serialization/types/PromptAgentApiModelOutput.d.ts +30 -0
  1231. package/serialization/types/PromptAgentApiModelOutput.js +61 -0
  1232. package/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +26 -0
  1233. package/serialization/types/PromptAgentApiModelOutputToolsItem.js +55 -0
  1234. package/{dist/serialization/types/PromptAgentOverride.d.ts → serialization/types/PromptAgentApiModelOverride.d.ts} +2 -2
  1235. package/{dist/serialization/types/PromptAgentOverride.js → serialization/types/PromptAgentApiModelOverride.js} +2 -2
  1236. package/{dist/serialization/types/PromptAgentOverrideConfig.d.ts → serialization/types/PromptAgentApiModelOverrideConfig.d.ts} +2 -2
  1237. package/serialization/types/{PromptAgentOverrideConfig.js → PromptAgentApiModelOverrideConfig.js} +2 -2
  1238. package/serialization/types/PromptAgentDbModel.d.ts +3 -2
  1239. package/serialization/types/PromptAgentDbModel.js +3 -2
  1240. package/serialization/types/SubscriptionStatusType.d.ts +1 -1
  1241. package/serialization/types/SubscriptionStatusType.js +1 -2
  1242. package/serialization/types/SupportedVoice.d.ts +5 -0
  1243. package/serialization/types/SupportedVoice.js +5 -0
  1244. package/serialization/types/SystemToolConfigInput.d.ts +0 -1
  1245. package/serialization/types/SystemToolConfigInput.js +0 -1
  1246. package/serialization/types/SystemToolConfigOutput.d.ts +0 -1
  1247. package/serialization/types/SystemToolConfigOutput.js +0 -1
  1248. package/serialization/types/Tool.d.ts +17 -0
  1249. package/serialization/types/Tool.js +49 -0
  1250. package/serialization/types/ToolAnnotations.d.ts +17 -0
  1251. package/serialization/types/ToolAnnotations.js +49 -0
  1252. package/serialization/types/ToolRequestModel.d.ts +13 -0
  1253. package/serialization/types/ToolRequestModel.js +44 -0
  1254. package/serialization/types/{PromptAgentDbModelToolsItem.d.ts → ToolRequestModelToolConfig.d.ts} +3 -7
  1255. package/serialization/types/{PromptAgentDbModelToolsItem.js → ToolRequestModelToolConfig.js} +2 -4
  1256. package/serialization/types/ToolResponseModel.d.ts +16 -0
  1257. package/serialization/types/ToolResponseModel.js +47 -0
  1258. package/serialization/types/ToolResponseModelToolConfig.d.ts +26 -0
  1259. package/serialization/types/ToolResponseModelToolConfig.js +55 -0
  1260. package/serialization/types/ToolsResponseModel.d.ts +13 -0
  1261. package/serialization/types/ToolsResponseModel.js +44 -0
  1262. package/serialization/types/TransferToNumberToolConfig.d.ts +1 -0
  1263. package/serialization/types/TransferToNumberToolConfig.js +1 -0
  1264. package/serialization/types/WebhookAuthMethodType.d.ts +10 -0
  1265. package/serialization/types/WebhookAuthMethodType.js +41 -0
  1266. package/serialization/types/WebhookToolConfigInput.d.ts +0 -1
  1267. package/serialization/types/WebhookToolConfigInput.js +0 -1
  1268. package/serialization/types/WebhookToolConfigOutput.d.ts +0 -1
  1269. package/serialization/types/WebhookToolConfigOutput.js +0 -1
  1270. package/serialization/types/WebhookUsageType.d.ts +10 -0
  1271. package/serialization/types/WebhookUsageType.js +46 -0
  1272. package/serialization/types/WidgetConfig.d.ts +2 -0
  1273. package/serialization/types/WidgetConfig.js +2 -0
  1274. package/serialization/types/WidgetConfigResponse.d.ts +2 -0
  1275. package/serialization/types/WidgetConfigResponse.js +2 -0
  1276. package/serialization/types/WidgetStyles.d.ts +31 -0
  1277. package/serialization/types/WidgetStyles.js +62 -0
  1278. package/serialization/types/WorkspaceGroupPermission.d.ts +10 -0
  1279. package/serialization/types/WorkspaceGroupPermission.js +58 -0
  1280. package/serialization/types/WorkspaceGroupResponseModel.d.ts +16 -0
  1281. package/serialization/types/WorkspaceGroupResponseModel.js +47 -0
  1282. package/serialization/types/WorkspaceResourceType.d.ts +1 -1
  1283. package/serialization/types/WorkspaceResourceType.js +1 -1
  1284. package/serialization/types/WorkspaceWebhookListResponseModel.d.ts +13 -0
  1285. package/serialization/types/WorkspaceWebhookListResponseModel.js +44 -0
  1286. package/serialization/types/WorkspaceWebhookResponseModel.d.ts +23 -0
  1287. package/serialization/types/{NativeMcpToolConfigOutput.js → WorkspaceWebhookResponseModel.js} +13 -11
  1288. package/serialization/types/WorkspaceWebhookUsageResponseModel.d.ts +13 -0
  1289. package/serialization/types/WorkspaceWebhookUsageResponseModel.js +44 -0
  1290. package/serialization/types/index.d.ts +48 -15
  1291. package/serialization/types/index.js +48 -15
  1292. package/version.d.ts +1 -1
  1293. package/version.js +1 -1
  1294. package/wrapper/ElevenLabsClient.d.ts +4 -3
  1295. package/wrapper/ElevenLabsClient.js +6 -1
  1296. package/wrapper/webhooks.d.ts +4 -3
  1297. package/wrapper/webhooks.js +68 -46
  1298. package/.mock/asyncapi.yml +0 -856
  1299. package/.mock/definition/__package__.yml +0 -8340
  1300. package/.mock/definition/api.yml +0 -24
  1301. package/.mock/definition/audioIsolation.yml +0 -83
  1302. package/.mock/definition/audioNative.yml +0 -198
  1303. package/.mock/definition/conversationalAi/agents/knowledgeBase.yml +0 -32
  1304. package/.mock/definition/conversationalAi/agents/link.yml +0 -40
  1305. package/.mock/definition/conversationalAi/agents/llmUsage.yml +0 -51
  1306. package/.mock/definition/conversationalAi/agents/widget/avatar.yml +0 -44
  1307. package/.mock/definition/conversationalAi/agents/widget.yml +0 -107
  1308. package/.mock/definition/conversationalAi/agents.yml +0 -671
  1309. package/.mock/definition/conversationalAi/batchCalls.yml +0 -222
  1310. package/.mock/definition/conversationalAi/conversations/audio.yml +0 -28
  1311. package/.mock/definition/conversationalAi/conversations/feedback.yml +0 -47
  1312. package/.mock/definition/conversationalAi/conversations.yml +0 -165
  1313. package/.mock/definition/conversationalAi/dashboard/settings.yml +0 -73
  1314. package/.mock/definition/conversationalAi/knowledgeBase/document.yml +0 -52
  1315. package/.mock/definition/conversationalAi/knowledgeBase/documents/chunk.yml +0 -42
  1316. package/.mock/definition/conversationalAi/knowledgeBase/documents.yml +0 -355
  1317. package/.mock/definition/conversationalAi/knowledgeBase.yml +0 -88
  1318. package/.mock/definition/conversationalAi/llmUsage.yml +0 -52
  1319. package/.mock/definition/conversationalAi/phoneNumbers.yml +0 -206
  1320. package/.mock/definition/conversationalAi/secrets.yml +0 -100
  1321. package/.mock/definition/conversationalAi/settings.yml +0 -81
  1322. package/.mock/definition/conversationalAi/sipTrunk.yml +0 -45
  1323. package/.mock/definition/conversationalAi/twilio.yml +0 -45
  1324. package/.mock/definition/conversationalAi.yml +0 -192
  1325. package/.mock/definition/dubbing/audio.yml +0 -35
  1326. package/.mock/definition/dubbing/resource/language.yml +0 -43
  1327. package/.mock/definition/dubbing/resource/segment.yml +0 -83
  1328. package/.mock/definition/dubbing/resource/speaker/segment.yml +0 -54
  1329. package/.mock/definition/dubbing/resource/speaker.yml +0 -91
  1330. package/.mock/definition/dubbing/resource.yml +0 -271
  1331. package/.mock/definition/dubbing/transcript.yml +0 -48
  1332. package/.mock/definition/dubbing.yml +0 -170
  1333. package/.mock/definition/forcedAlignment.yml +0 -60
  1334. package/.mock/definition/history.yml +0 -270
  1335. package/.mock/definition/models.yml +0 -49
  1336. package/.mock/definition/pronunciationDictionaries/rules.yml +0 -99
  1337. package/.mock/definition/pronunciationDictionaries.yml +0 -262
  1338. package/.mock/definition/samples.yml +0 -46
  1339. package/.mock/definition/speechToSpeech.yml +0 -324
  1340. package/.mock/definition/speechToText.yml +0 -189
  1341. package/.mock/definition/studio/projects/chapters/snapshots.yml +0 -141
  1342. package/.mock/definition/studio/projects/chapters.yml +0 -289
  1343. package/.mock/definition/studio/projects/content.yml +0 -94
  1344. package/.mock/definition/studio/projects/pronunciationDictionaries.yml +0 -70
  1345. package/.mock/definition/studio/projects/snapshots.yml +0 -140
  1346. package/.mock/definition/studio/projects.yml +0 -579
  1347. package/.mock/definition/studio.yml +0 -216
  1348. package/.mock/definition/textToDialogue.yml +0 -213
  1349. package/.mock/definition/textToSoundEffects.yml +0 -92
  1350. package/.mock/definition/textToSpeech.yml +0 -959
  1351. package/.mock/definition/textToVoice.yml +0 -355
  1352. package/.mock/definition/usage.yml +0 -73
  1353. package/.mock/definition/user/subscription.yml +0 -50
  1354. package/.mock/definition/user.yml +0 -86
  1355. package/.mock/definition/v1TextToSpeechVoiceIdMultiStreamInput.yml +0 -252
  1356. package/.mock/definition/v1TextToSpeechVoiceIdStreamInput.yml +0 -207
  1357. package/.mock/definition/voices/ivc.yml +0 -57
  1358. package/.mock/definition/voices/pvc/samples/audio.yml +0 -44
  1359. package/.mock/definition/voices/pvc/samples/speakers/audio.yml +0 -48
  1360. package/.mock/definition/voices/pvc/samples/speakers.yml +0 -81
  1361. package/.mock/definition/voices/pvc/samples/waveform.yml +0 -44
  1362. package/.mock/definition/voices/pvc/samples.yml +0 -159
  1363. package/.mock/definition/voices/pvc/verification/captcha.yml +0 -62
  1364. package/.mock/definition/voices/pvc/verification.yml +0 -47
  1365. package/.mock/definition/voices/pvc.yml +0 -137
  1366. package/.mock/definition/voices/samples/audio.yml +0 -35
  1367. package/.mock/definition/voices/settings.yml +0 -105
  1368. package/.mock/definition/voices.yml +0 -907
  1369. package/.mock/definition/workspace/groups/members.yml +0 -80
  1370. package/.mock/definition/workspace/groups.yml +0 -40
  1371. package/.mock/definition/workspace/invites.yml +0 -141
  1372. package/.mock/definition/workspace/members.yml +0 -83
  1373. package/.mock/definition/workspace/resources.yml +0 -184
  1374. package/.mock/fern.config.json +0 -4
  1375. package/.mock/openapi.json +0 -39184
  1376. package/api/types/ConvAiStoredSecretDependenciesAgentToolsItem.d.ts +0 -13
  1377. package/api/types/DependentAvailableAgentToolIdentifier.d.ts +0 -11
  1378. package/api/types/DependentAvailableAgentToolIdentifierAccessLevel.d.ts +0 -9
  1379. package/api/types/DependentAvailableAgentToolIdentifierAccessLevel.js +0 -11
  1380. package/api/types/DependentUnknownAgentToolIdentifier.d.ts +0 -9
  1381. package/api/types/GetSharedSoundGenerationsResponseModel.d.ts +0 -9
  1382. package/api/types/McpApprovalRequiredModel.d.ts +0 -12
  1383. package/api/types/McpApprovalRequiredModel.js +0 -11
  1384. package/api/types/NativeMcpToolConfigInput.d.ts +0 -22
  1385. package/api/types/NativeMcpToolConfigOutput.d.ts +0 -22
  1386. package/api/types/SharedSoundGenerationResponseModel.d.ts +0 -17
  1387. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  1388. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  1389. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  1390. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  1391. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  1392. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  1393. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  1394. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  1395. package/dist/api/types/ConvAiStoredSecretDependenciesAgentToolsItem.d.ts +0 -13
  1396. package/dist/api/types/DependentAvailableAgentToolIdentifier.d.ts +0 -11
  1397. package/dist/api/types/DependentAvailableAgentToolIdentifierAccessLevel.d.ts +0 -9
  1398. package/dist/api/types/DependentAvailableAgentToolIdentifierAccessLevel.js +0 -11
  1399. package/dist/api/types/DependentUnknownAgentToolIdentifier.d.ts +0 -9
  1400. package/dist/api/types/GetSharedSoundGenerationsResponseModel.d.ts +0 -9
  1401. package/dist/api/types/McpApprovalRequiredModel.d.ts +0 -12
  1402. package/dist/api/types/McpApprovalRequiredModel.js +0 -11
  1403. package/dist/api/types/NativeMcpToolConfigInput.d.ts +0 -22
  1404. package/dist/api/types/NativeMcpToolConfigOutput.d.ts +0 -22
  1405. package/dist/api/types/SharedSoundGenerationResponseModel.d.ts +0 -17
  1406. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  1407. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  1408. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  1409. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  1410. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  1411. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  1412. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  1413. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  1414. package/dist/serialization/types/ConvAiStoredSecretDependenciesAgentToolsItem.d.ts +0 -18
  1415. package/dist/serialization/types/DependentAvailableAgentToolIdentifier.d.ts +0 -17
  1416. package/dist/serialization/types/DependentAvailableAgentToolIdentifierAccessLevel.d.ts +0 -10
  1417. package/dist/serialization/types/DependentUnknownAgentToolIdentifier.d.ts +0 -11
  1418. package/dist/serialization/types/GetSharedSoundGenerationsResponseModel.d.ts +0 -15
  1419. package/dist/serialization/types/McpApprovalRequiredModel.d.ts +0 -10
  1420. package/dist/serialization/types/NativeMcpToolConfigInput.d.ts +0 -20
  1421. package/dist/serialization/types/NativeMcpToolConfigOutput.d.ts +0 -20
  1422. package/dist/serialization/types/SharedSoundGenerationResponseModel.d.ts +0 -23
  1423. package/dist/serialization/types/SharedSoundGenerationResponseModel.js +0 -54
  1424. package/serialization/types/ConvAiStoredSecretDependenciesAgentToolsItem.d.ts +0 -18
  1425. package/serialization/types/DependentAvailableAgentToolIdentifier.d.ts +0 -17
  1426. package/serialization/types/DependentAvailableAgentToolIdentifier.js +0 -48
  1427. package/serialization/types/DependentAvailableAgentToolIdentifierAccessLevel.d.ts +0 -10
  1428. package/serialization/types/DependentAvailableAgentToolIdentifierAccessLevel.js +0 -41
  1429. package/serialization/types/DependentUnknownAgentToolIdentifier.d.ts +0 -11
  1430. package/serialization/types/GetSharedSoundGenerationsResponseModel.d.ts +0 -15
  1431. package/serialization/types/McpApprovalRequiredModel.d.ts +0 -10
  1432. package/serialization/types/NativeMcpToolConfigInput.d.ts +0 -20
  1433. package/serialization/types/NativeMcpToolConfigOutput.d.ts +0 -20
  1434. package/serialization/types/SharedSoundGenerationResponseModel.d.ts +0 -23
  1435. package/serialization/types/SharedSoundGenerationResponseModel.js +0 -54
  1436. /package/api/{types/ConvAiStoredSecretDependenciesAgentToolsItem.js → resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.js} +0 -0
  1437. /package/api/{types/DependentAvailableAgentToolIdentifier.js → resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js} +0 -0
  1438. /package/api/{types/DependentUnknownAgentToolIdentifier.js → resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js} +0 -0
  1439. /package/api/{types/GetSharedSoundGenerationsResponseModel.js → resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js} +0 -0
  1440. /package/api/{types/NativeMcpToolConfigInput.js → resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.js} +0 -0
  1441. /package/api/{types/NativeMcpToolConfigOutput.js → resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.js} +0 -0
  1442. /package/api/{types/PromptAgentDbModelToolsItem.js → resources/textToVoice/client/requests/VoiceDesignRequestModel.js} +0 -0
  1443. /package/api/{types/PromptAgentInputToolsItem.js → resources/webhooks/client/requests/WebhooksListRequest.js} +0 -0
  1444. /package/api/{types/PromptAgentOutputToolsItem.js → resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js} +0 -0
  1445. /package/api/{types/PromptAgentOverride.js → resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js} +0 -0
  1446. /package/api/types/{PromptAgentOverrideConfig.js → BuiltInToolsInput.js} +0 -0
  1447. /package/api/types/{SharedSoundGenerationResponseModel.js → BuiltInToolsOutput.js} +0 -0
  1448. /package/{dist/api/types/ConvAiStoredSecretDependenciesAgentToolsItem.js → api/types/ConvAiStoredSecretDependenciesAgentsItem.js} +0 -0
  1449. /package/{dist/api/types/DependentAvailableAgentToolIdentifier.js → api/types/ConvAiUserSecretDbModel.js} +0 -0
  1450. /package/{dist/api/types/DependentUnknownAgentToolIdentifier.js → api/types/ConversationSimulationSpecificationDynamicVariablesValue.js} +0 -0
  1451. /package/{dist/api/types/GetSharedSoundGenerationsResponseModel.js → api/types/DefaultSharingPreferencesResponseModel.js} +0 -0
  1452. /package/{dist/api/types/NativeMcpToolConfigInput.js → api/types/GetToolDependentAgentsResponseModel.js} +0 -0
  1453. /package/{dist/api/types/NativeMcpToolConfigOutput.js → api/types/GetToolDependentAgentsResponseModelAgentsItem.js} +0 -0
  1454. /package/{dist/api/types/PromptAgentDbModelToolsItem.js → api/types/ListMcpToolsResponseModel.js} +0 -0
  1455. /package/{dist/api/types/PromptAgentInputToolsItem.js → api/types/McpServerConfigInput.js} +0 -0
  1456. /package/{dist/api/types/PromptAgentOutputToolsItem.js → api/types/McpServerConfigInputRequestHeadersValue.js} +0 -0
  1457. /package/{dist/api/types/PromptAgentOverride.js → api/types/McpServerConfigInputSecretToken.js} +0 -0
  1458. /package/{dist/api/types/PromptAgentOverrideConfig.js → api/types/McpServerConfigInputUrl.js} +0 -0
  1459. /package/{dist/api/types/SharedSoundGenerationResponseModel.js → api/types/McpServerConfigOutput.js} +0 -0
  1460. /package/core/{streaming-fetcher → stream}/Stream.js +0 -0
  1461. /package/core/{streaming-fetcher → stream}/index.d.ts +0 -0
  1462. /package/core/{streaming-fetcher → stream}/index.js +0 -0
  1463. /package/dist/core/{streaming-fetcher → stream}/Stream.js +0 -0
  1464. /package/dist/core/{streaming-fetcher → stream}/index.d.ts +0 -0
  1465. /package/dist/core/{streaming-fetcher → stream}/index.js +0 -0
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.toolApprovals = exports.approvalPolicy = exports.tools = void 0;
40
+ exports.tools = __importStar(require("./tools"));
41
+ exports.approvalPolicy = __importStar(require("./approvalPolicy"));
42
+ exports.toolApprovals = __importStar(require("./toolApprovals"));
43
+ __exportStar(require("./approvalPolicy/client/requests"), exports);
44
+ __exportStar(require("./toolApprovals/client/requests"), exports);
@@ -0,0 +1,64 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments";
5
+ import * as core from "../../../../../../../../core";
6
+ import * as ElevenLabs from "../../../../../../../index";
7
+ export declare namespace ToolApprovals {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ /** Override the xi-api-key header */
13
+ apiKey?: core.Supplier<string | undefined>;
14
+ /** Additional headers to include in requests. */
15
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Override the xi-api-key header */
25
+ apiKey?: string | undefined;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
28
+ }
29
+ }
30
+ export declare class ToolApprovals {
31
+ protected readonly _options: ToolApprovals.Options;
32
+ constructor(_options?: ToolApprovals.Options);
33
+ /**
34
+ * Add approval for a specific MCP tool when using per-tool approval mode.
35
+ *
36
+ * @param {string} mcpServerId - ID of the MCP Server.
37
+ * @param {ElevenLabs.conversationalAi.mcpServers.McpToolAddApprovalRequestModel} request
38
+ * @param {ToolApprovals.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
41
+ *
42
+ * @example
43
+ * await client.conversationalAi.mcpServers.toolApprovals.create("mcp_server_id", {
44
+ * toolName: "tool_name",
45
+ * toolDescription: "tool_description"
46
+ * })
47
+ */
48
+ create(mcpServerId: string, request: ElevenLabs.conversationalAi.mcpServers.McpToolAddApprovalRequestModel, requestOptions?: ToolApprovals.RequestOptions): core.HttpResponsePromise<ElevenLabs.McpServerResponseModel>;
49
+ private __create;
50
+ /**
51
+ * Remove approval for a specific MCP tool when using per-tool approval mode.
52
+ *
53
+ * @param {string} mcpServerId - ID of the MCP Server.
54
+ * @param {string} toolName - Name of the MCP tool to remove approval for.
55
+ * @param {ToolApprovals.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
58
+ *
59
+ * @example
60
+ * await client.conversationalAi.mcpServers.toolApprovals.delete("mcp_server_id", "tool_name")
61
+ */
62
+ delete(mcpServerId: string, toolName: string, requestOptions?: ToolApprovals.RequestOptions): core.HttpResponsePromise<ElevenLabs.McpServerResponseModel>;
63
+ private __delete;
64
+ }
@@ -0,0 +1,214 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.ToolApprovals = void 0;
52
+ const environments = __importStar(require("../../../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../../../core"));
54
+ const ElevenLabs = __importStar(require("../../../../../../../index"));
55
+ const headers_js_1 = require("../../../../../../../../core/headers.js");
56
+ const serializers = __importStar(require("../../../../../../../../serialization/index"));
57
+ const url_join_1 = __importDefault(require("url-join"));
58
+ const errors = __importStar(require("../../../../../../../../errors/index"));
59
+ class ToolApprovals {
60
+ constructor(_options = {}) {
61
+ this._options = _options;
62
+ }
63
+ /**
64
+ * Add approval for a specific MCP tool when using per-tool approval mode.
65
+ *
66
+ * @param {string} mcpServerId - ID of the MCP Server.
67
+ * @param {ElevenLabs.conversationalAi.mcpServers.McpToolAddApprovalRequestModel} request
68
+ * @param {ToolApprovals.RequestOptions} requestOptions - Request-specific configuration.
69
+ *
70
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
71
+ *
72
+ * @example
73
+ * await client.conversationalAi.mcpServers.toolApprovals.create("mcp_server_id", {
74
+ * toolName: "tool_name",
75
+ * toolDescription: "tool_description"
76
+ * })
77
+ */
78
+ create(mcpServerId, request, requestOptions) {
79
+ return core.HttpResponsePromise.fromPromise(this.__create(mcpServerId, request, requestOptions));
80
+ }
81
+ __create(mcpServerId, request, requestOptions) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ var _a, _b, _c;
84
+ const _response = yield core.fetcher({
85
+ 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/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-approvals`),
86
+ method: "POST",
87
+ 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),
88
+ contentType: "application/json",
89
+ requestType: "json",
90
+ body: serializers.conversationalAi.mcpServers.McpToolAddApprovalRequestModel.jsonOrThrow(request, {
91
+ unrecognizedObjectKeys: "strip",
92
+ }),
93
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
94
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
95
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
96
+ });
97
+ if (_response.ok) {
98
+ return {
99
+ data: serializers.McpServerResponseModel.parseOrThrow(_response.body, {
100
+ unrecognizedObjectKeys: "passthrough",
101
+ allowUnrecognizedUnionMembers: true,
102
+ allowUnrecognizedEnumValues: true,
103
+ breadcrumbsPrefix: ["response"],
104
+ }),
105
+ rawResponse: _response.rawResponse,
106
+ };
107
+ }
108
+ if (_response.error.reason === "status-code") {
109
+ switch (_response.error.statusCode) {
110
+ case 422:
111
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
112
+ unrecognizedObjectKeys: "passthrough",
113
+ allowUnrecognizedUnionMembers: true,
114
+ allowUnrecognizedEnumValues: true,
115
+ breadcrumbsPrefix: ["response"],
116
+ }), _response.rawResponse);
117
+ default:
118
+ throw new errors.ElevenLabsError({
119
+ statusCode: _response.error.statusCode,
120
+ body: _response.error.body,
121
+ rawResponse: _response.rawResponse,
122
+ });
123
+ }
124
+ }
125
+ switch (_response.error.reason) {
126
+ case "non-json":
127
+ throw new errors.ElevenLabsError({
128
+ statusCode: _response.error.statusCode,
129
+ body: _response.error.rawBody,
130
+ rawResponse: _response.rawResponse,
131
+ });
132
+ case "timeout":
133
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/convai/mcp-servers/{mcp_server_id}/tool-approvals.");
134
+ case "unknown":
135
+ throw new errors.ElevenLabsError({
136
+ message: _response.error.errorMessage,
137
+ rawResponse: _response.rawResponse,
138
+ });
139
+ }
140
+ });
141
+ }
142
+ /**
143
+ * Remove approval for a specific MCP tool when using per-tool approval mode.
144
+ *
145
+ * @param {string} mcpServerId - ID of the MCP Server.
146
+ * @param {string} toolName - Name of the MCP tool to remove approval for.
147
+ * @param {ToolApprovals.RequestOptions} requestOptions - Request-specific configuration.
148
+ *
149
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
150
+ *
151
+ * @example
152
+ * await client.conversationalAi.mcpServers.toolApprovals.delete("mcp_server_id", "tool_name")
153
+ */
154
+ delete(mcpServerId, toolName, requestOptions) {
155
+ return core.HttpResponsePromise.fromPromise(this.__delete(mcpServerId, toolName, requestOptions));
156
+ }
157
+ __delete(mcpServerId, toolName, requestOptions) {
158
+ return __awaiter(this, void 0, void 0, function* () {
159
+ var _a, _b, _c;
160
+ const _response = yield core.fetcher({
161
+ 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/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-approvals/${encodeURIComponent(toolName)}`),
162
+ method: "DELETE",
163
+ 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),
164
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
165
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
166
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
167
+ });
168
+ if (_response.ok) {
169
+ return {
170
+ data: serializers.McpServerResponseModel.parseOrThrow(_response.body, {
171
+ unrecognizedObjectKeys: "passthrough",
172
+ allowUnrecognizedUnionMembers: true,
173
+ allowUnrecognizedEnumValues: true,
174
+ breadcrumbsPrefix: ["response"],
175
+ }),
176
+ rawResponse: _response.rawResponse,
177
+ };
178
+ }
179
+ if (_response.error.reason === "status-code") {
180
+ switch (_response.error.statusCode) {
181
+ case 422:
182
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
183
+ unrecognizedObjectKeys: "passthrough",
184
+ allowUnrecognizedUnionMembers: true,
185
+ allowUnrecognizedEnumValues: true,
186
+ breadcrumbsPrefix: ["response"],
187
+ }), _response.rawResponse);
188
+ default:
189
+ throw new errors.ElevenLabsError({
190
+ statusCode: _response.error.statusCode,
191
+ body: _response.error.body,
192
+ rawResponse: _response.rawResponse,
193
+ });
194
+ }
195
+ }
196
+ switch (_response.error.reason) {
197
+ case "non-json":
198
+ throw new errors.ElevenLabsError({
199
+ statusCode: _response.error.statusCode,
200
+ body: _response.error.rawBody,
201
+ rawResponse: _response.rawResponse,
202
+ });
203
+ case "timeout":
204
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling DELETE /v1/convai/mcp-servers/{mcp_server_id}/tool-approvals/{tool_name}.");
205
+ case "unknown":
206
+ throw new errors.ElevenLabsError({
207
+ message: _response.error.errorMessage,
208
+ rawResponse: _response.rawResponse,
209
+ });
210
+ }
211
+ });
212
+ }
213
+ }
214
+ exports.ToolApprovals = ToolApprovals;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../../../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * toolName: "tool_name",
9
+ * toolDescription: "tool_description"
10
+ * }
11
+ */
12
+ export interface McpToolAddApprovalRequestModel {
13
+ /** The name of the MCP tool */
14
+ toolName: string;
15
+ /** The description of the MCP tool */
16
+ toolDescription: string;
17
+ /** The input schema of the MCP tool (the schema defined on the MCP server before ElevenLabs does any extra processing) */
18
+ inputSchema?: Record<string, unknown>;
19
+ /** The tool-level approval policy */
20
+ approvalPolicy?: ElevenLabs.McpToolApprovalPolicy;
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type McpToolAddApprovalRequestModel } from "./McpToolAddApprovalRequestModel";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,46 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments";
5
+ import * as core from "../../../../../../../../core";
6
+ import * as ElevenLabs from "../../../../../../../index";
7
+ export declare namespace Tools {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ /** Override the xi-api-key header */
13
+ apiKey?: core.Supplier<string | undefined>;
14
+ /** Additional headers to include in requests. */
15
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Override the xi-api-key header */
25
+ apiKey?: string | undefined;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
28
+ }
29
+ }
30
+ export declare class Tools {
31
+ protected readonly _options: Tools.Options;
32
+ constructor(_options?: Tools.Options);
33
+ /**
34
+ * Retrieve all tools available for a specific MCP server configuration.
35
+ *
36
+ * @param {string} mcpServerId - ID of the MCP Server.
37
+ * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.conversationalAi.mcpServers.tools.list("mcp_server_id")
43
+ */
44
+ list(mcpServerId: string, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<ElevenLabs.ListMcpToolsResponseModel>;
45
+ private __list;
46
+ }
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Tools = void 0;
52
+ const environments = __importStar(require("../../../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../../../core"));
54
+ const ElevenLabs = __importStar(require("../../../../../../../index"));
55
+ const headers_js_1 = require("../../../../../../../../core/headers.js");
56
+ const url_join_1 = __importDefault(require("url-join"));
57
+ const serializers = __importStar(require("../../../../../../../../serialization/index"));
58
+ const errors = __importStar(require("../../../../../../../../errors/index"));
59
+ class Tools {
60
+ constructor(_options = {}) {
61
+ this._options = _options;
62
+ }
63
+ /**
64
+ * Retrieve all tools available for a specific MCP server configuration.
65
+ *
66
+ * @param {string} mcpServerId - ID of the MCP Server.
67
+ * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
70
+ *
71
+ * @example
72
+ * await client.conversationalAi.mcpServers.tools.list("mcp_server_id")
73
+ */
74
+ list(mcpServerId, requestOptions) {
75
+ return core.HttpResponsePromise.fromPromise(this.__list(mcpServerId, requestOptions));
76
+ }
77
+ __list(mcpServerId, requestOptions) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ var _a, _b, _c;
80
+ const _response = yield core.fetcher({
81
+ 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/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tools`),
82
+ method: "GET",
83
+ 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),
84
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
85
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
86
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
87
+ });
88
+ if (_response.ok) {
89
+ return {
90
+ data: serializers.ListMcpToolsResponseModel.parseOrThrow(_response.body, {
91
+ unrecognizedObjectKeys: "passthrough",
92
+ allowUnrecognizedUnionMembers: true,
93
+ allowUnrecognizedEnumValues: true,
94
+ breadcrumbsPrefix: ["response"],
95
+ }),
96
+ rawResponse: _response.rawResponse,
97
+ };
98
+ }
99
+ if (_response.error.reason === "status-code") {
100
+ switch (_response.error.statusCode) {
101
+ case 422:
102
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
103
+ unrecognizedObjectKeys: "passthrough",
104
+ allowUnrecognizedUnionMembers: true,
105
+ allowUnrecognizedEnumValues: true,
106
+ breadcrumbsPrefix: ["response"],
107
+ }), _response.rawResponse);
108
+ default:
109
+ throw new errors.ElevenLabsError({
110
+ statusCode: _response.error.statusCode,
111
+ body: _response.error.body,
112
+ rawResponse: _response.rawResponse,
113
+ });
114
+ }
115
+ }
116
+ switch (_response.error.reason) {
117
+ case "non-json":
118
+ throw new errors.ElevenLabsError({
119
+ statusCode: _response.error.statusCode,
120
+ body: _response.error.rawBody,
121
+ rawResponse: _response.rawResponse,
122
+ });
123
+ case "timeout":
124
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/mcp-servers/{mcp_server_id}/tools.");
125
+ case "unknown":
126
+ throw new errors.ElevenLabsError({
127
+ message: _response.error.errorMessage,
128
+ rawResponse: _response.rawResponse,
129
+ });
130
+ }
131
+ });
132
+ }
133
+ }
134
+ exports.Tools = Tools;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -11,6 +11,8 @@ export declare namespace PhoneNumbers {
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Override the xi-api-key header */
13
13
  apiKey?: core.Supplier<string | undefined>;
14
+ /** Additional headers to include in requests. */
15
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
16
  }
15
17
  interface RequestOptions {
16
18
  /** The maximum time to wait for a response in seconds. */
@@ -22,7 +24,7 @@ export declare namespace PhoneNumbers {
22
24
  /** Override the xi-api-key header */
23
25
  apiKey?: string | undefined;
24
26
  /** Additional headers to include in the request. */
25
- headers?: Record<string, string>;
27
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
28
  }
27
29
  }
28
30
  export declare class PhoneNumbers {