@elevenlabs/elevenlabs-js 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1157) 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 +6 -1
  11. package/api/resources/conversationalAi/client/Client.js +18 -28
  12. package/api/resources/conversationalAi/client/index.d.ts +1 -0
  13. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -1
  14. package/api/resources/conversationalAi/resources/agents/client/Client.js +15 -34
  15. package/api/resources/conversationalAi/resources/agents/client/index.d.ts +1 -0
  16. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +3 -1
  17. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -6
  18. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +3 -1
  19. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -6
  20. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +3 -1
  21. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -4
  22. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  23. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +3 -1
  24. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -6
  25. package/api/resources/conversationalAi/resources/agents/resources/widget/client/index.d.ts +1 -0
  26. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +3 -1
  27. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -4
  28. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/index.d.ts +1 -0
  29. package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +3 -1
  30. package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +11 -28
  31. package/api/resources/conversationalAi/resources/batchCalls/client/index.d.ts +1 -0
  32. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -1
  33. package/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -24
  34. package/api/resources/conversationalAi/resources/conversations/client/index.d.ts +1 -0
  35. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +4 -3
  36. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -6
  37. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +3 -1
  38. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -4
  39. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/index.d.ts +1 -0
  40. package/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +2 -0
  41. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +3 -1
  42. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -10
  43. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/index.d.ts +1 -0
  44. package/api/resources/conversationalAi/resources/index.d.ts +2 -0
  45. package/api/resources/conversationalAi/resources/index.js +3 -1
  46. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +3 -1
  47. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -6
  48. package/api/resources/conversationalAi/resources/knowledgeBase/client/index.d.ts +1 -0
  49. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +3 -1
  50. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +3 -4
  51. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/index.d.ts +1 -0
  52. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +3 -1
  53. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +17 -40
  54. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/index.d.ts +1 -0
  55. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +3 -1
  56. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +3 -6
  57. package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +3 -1
  58. package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -4
  59. package/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  60. package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +85 -0
  61. package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +298 -0
  62. package/api/resources/conversationalAi/resources/mcpServers/client/index.d.ts +2 -0
  63. package/api/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
  64. package/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +17 -0
  65. package/api/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  66. package/api/resources/conversationalAi/resources/mcpServers/client/requests/index.js +2 -0
  67. package/api/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
  68. package/api/resources/conversationalAi/resources/mcpServers/index.js +18 -0
  69. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +49 -0
  70. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +142 -0
  71. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +2 -0
  72. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
  73. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +14 -0
  74. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
  75. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +2 -0
  76. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
  77. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
  78. package/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +5 -0
  79. package/api/resources/conversationalAi/resources/mcpServers/resources/index.js +44 -0
  80. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +64 -0
  81. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +214 -0
  82. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +2 -0
  83. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
  84. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +21 -0
  85. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
  86. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +2 -0
  87. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
  88. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
  89. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +46 -0
  90. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +134 -0
  91. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.d.ts +1 -0
  92. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.js +2 -0
  93. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.d.ts +1 -0
  94. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.js +17 -0
  95. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +3 -1
  96. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +11 -26
  97. package/api/resources/conversationalAi/resources/phoneNumbers/client/index.d.ts +1 -0
  98. package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +3 -1
  99. package/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -16
  100. package/api/resources/conversationalAi/resources/secrets/client/index.d.ts +1 -0
  101. package/api/resources/conversationalAi/resources/settings/client/Client.d.ts +3 -1
  102. package/api/resources/conversationalAi/resources/settings/client/Client.js +5 -10
  103. package/api/resources/conversationalAi/resources/settings/client/index.d.ts +1 -0
  104. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +3 -1
  105. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -4
  106. package/api/resources/conversationalAi/resources/sipTrunk/client/index.d.ts +1 -0
  107. package/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +3 -1
  108. package/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -4
  109. package/api/resources/conversationalAi/resources/twilio/client/index.d.ts +1 -0
  110. package/api/resources/dubbing/client/Client.d.ts +3 -1
  111. package/api/resources/dubbing/client/Client.js +7 -16
  112. package/api/resources/dubbing/client/index.d.ts +1 -0
  113. package/api/resources/dubbing/resources/audio/client/Client.d.ts +4 -3
  114. package/api/resources/dubbing/resources/audio/client/Client.js +3 -6
  115. package/api/resources/dubbing/resources/resource/client/Client.d.ts +3 -1
  116. package/api/resources/dubbing/resources/resource/client/Client.js +11 -22
  117. package/api/resources/dubbing/resources/resource/client/index.d.ts +1 -0
  118. package/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +3 -1
  119. package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -4
  120. package/api/resources/dubbing/resources/resource/resources/language/client/index.d.ts +1 -0
  121. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +3 -1
  122. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -10
  123. package/api/resources/dubbing/resources/resource/resources/segment/client/index.d.ts +1 -0
  124. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +3 -1
  125. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -10
  126. package/api/resources/dubbing/resources/resource/resources/speaker/client/index.d.ts +1 -0
  127. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +3 -1
  128. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -4
  129. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/index.d.ts +1 -0
  130. package/api/resources/dubbing/resources/transcript/client/Client.d.ts +3 -1
  131. package/api/resources/dubbing/resources/transcript/client/Client.js +3 -6
  132. package/api/resources/dubbing/resources/transcript/client/index.d.ts +1 -0
  133. package/api/resources/forcedAlignment/client/Client.d.ts +3 -1
  134. package/api/resources/forcedAlignment/client/Client.js +3 -4
  135. package/api/resources/forcedAlignment/client/index.d.ts +1 -0
  136. package/api/resources/history/client/Client.d.ts +5 -4
  137. package/api/resources/history/client/Client.js +11 -28
  138. package/api/resources/history/client/index.d.ts +1 -0
  139. package/api/resources/index.d.ts +3 -0
  140. package/api/resources/index.js +4 -1
  141. package/api/resources/models/client/Client.d.ts +3 -1
  142. package/api/resources/models/client/Client.js +3 -6
  143. package/api/resources/pronunciationDictionaries/client/Client.d.ts +4 -3
  144. package/api/resources/pronunciationDictionaries/client/Client.js +11 -26
  145. package/api/resources/pronunciationDictionaries/client/index.d.ts +1 -0
  146. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +3 -1
  147. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -8
  148. package/api/resources/pronunciationDictionaries/resources/rules/client/index.d.ts +1 -0
  149. package/api/resources/samples/client/Client.d.ts +3 -1
  150. package/api/resources/samples/client/Client.js +3 -6
  151. package/api/resources/speechToSpeech/client/Client.d.ts +5 -4
  152. package/api/resources/speechToSpeech/client/Client.js +5 -8
  153. package/api/resources/speechToSpeech/client/index.d.ts +1 -0
  154. package/api/resources/speechToText/client/Client.d.ts +4 -4
  155. package/api/resources/speechToText/client/Client.js +46 -10
  156. package/api/resources/speechToText/client/index.d.ts +1 -0
  157. package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +3 -1
  158. package/api/resources/studio/client/Client.d.ts +4 -2
  159. package/api/resources/studio/client/Client.js +4 -5
  160. package/api/resources/studio/client/index.d.ts +1 -0
  161. package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +58 -3
  162. package/api/resources/studio/resources/projects/client/Client.d.ts +3 -1
  163. package/api/resources/studio/resources/projects/client/Client.js +16 -32
  164. package/api/resources/studio/resources/projects/client/index.d.ts +1 -0
  165. package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +59 -2
  166. package/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +3 -1
  167. package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -32
  168. package/api/resources/studio/resources/projects/resources/chapters/client/index.d.ts +1 -0
  169. package/api/resources/studio/resources/projects/resources/chapters/client/requests/BodyCreateChapterV1StudioProjectsProjectIdChaptersPost.d.ts +1 -1
  170. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +4 -3
  171. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -16
  172. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/index.d.ts +1 -0
  173. package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +3 -1
  174. package/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -4
  175. package/api/resources/studio/resources/projects/resources/content/client/index.d.ts +1 -0
  176. package/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +1 -1
  177. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +3 -1
  178. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -4
  179. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/index.d.ts +1 -0
  180. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +5 -4
  181. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -22
  182. package/api/resources/studio/resources/projects/resources/snapshots/client/index.d.ts +1 -0
  183. package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostDurationScale.d.ts +1 -1
  184. package/api/resources/textToDialogue/client/Client.d.ts +5 -4
  185. package/api/resources/textToDialogue/client/Client.js +5 -8
  186. package/api/resources/textToDialogue/client/index.d.ts +1 -0
  187. package/api/resources/textToSoundEffects/client/Client.d.ts +4 -3
  188. package/api/resources/textToSoundEffects/client/Client.js +3 -4
  189. package/api/resources/textToSoundEffects/client/index.d.ts +1 -0
  190. package/api/resources/textToSpeech/client/Client.d.ts +5 -4
  191. package/api/resources/textToSpeech/client/Client.js +9 -16
  192. package/api/resources/textToSpeech/client/index.d.ts +1 -0
  193. package/api/resources/textToVoice/client/Client.d.ts +3 -1
  194. package/api/resources/textToVoice/client/Client.js +5 -8
  195. package/api/resources/textToVoice/client/index.d.ts +1 -0
  196. package/api/resources/usage/client/Client.d.ts +3 -1
  197. package/api/resources/usage/client/Client.js +3 -6
  198. package/api/resources/usage/client/index.d.ts +1 -0
  199. package/api/resources/user/client/Client.d.ts +3 -1
  200. package/api/resources/user/client/Client.js +3 -6
  201. package/api/resources/user/resources/subscription/client/Client.d.ts +3 -1
  202. package/api/resources/user/resources/subscription/client/Client.js +3 -6
  203. package/api/resources/voices/client/Client.d.ts +4 -2
  204. package/api/resources/voices/client/Client.js +18 -43
  205. package/api/resources/voices/client/index.d.ts +1 -0
  206. package/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +1 -1
  207. package/api/resources/voices/resources/ivc/client/Client.d.ts +3 -1
  208. package/api/resources/voices/resources/ivc/client/Client.js +3 -4
  209. package/api/resources/voices/resources/ivc/client/index.d.ts +1 -0
  210. package/api/resources/voices/resources/pvc/client/Client.d.ts +3 -1
  211. package/api/resources/voices/resources/pvc/client/Client.js +7 -12
  212. package/api/resources/voices/resources/pvc/client/index.d.ts +1 -0
  213. package/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +3 -1
  214. package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -14
  215. package/api/resources/voices/resources/pvc/resources/samples/client/index.d.ts +1 -0
  216. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +3 -1
  217. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +3 -6
  218. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +3 -1
  219. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -12
  220. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +3 -1
  221. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -6
  222. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +3 -1
  223. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -6
  224. package/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +3 -1
  225. package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -4
  226. package/api/resources/voices/resources/pvc/resources/verification/client/index.d.ts +1 -0
  227. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +3 -1
  228. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -10
  229. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/index.d.ts +1 -0
  230. package/api/resources/voices/resources/samples/client/Client.d.ts +2 -0
  231. package/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +4 -3
  232. package/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -6
  233. package/api/resources/voices/resources/settings/client/Client.d.ts +3 -1
  234. package/api/resources/voices/resources/settings/client/Client.js +7 -16
  235. package/api/resources/webhooks/client/Client.d.ts +48 -0
  236. package/api/resources/webhooks/client/Client.js +142 -0
  237. package/api/resources/webhooks/client/index.d.ts +2 -0
  238. package/api/resources/webhooks/client/index.js +17 -0
  239. package/api/resources/webhooks/client/requests/WebhooksListRequest.d.ts +15 -0
  240. package/api/resources/webhooks/client/requests/index.d.ts +1 -0
  241. package/api/resources/webhooks/client/requests/index.js +2 -0
  242. package/api/resources/webhooks/index.d.ts +1 -0
  243. package/api/resources/webhooks/index.js +17 -0
  244. package/api/resources/workspace/client/Client.d.ts +30 -0
  245. package/api/resources/workspace/client/Client.js +121 -0
  246. package/api/resources/workspace/client/index.d.ts +1 -0
  247. package/api/resources/workspace/client/index.js +15 -0
  248. package/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
  249. package/api/resources/workspace/client/requests/index.d.ts +1 -0
  250. package/api/resources/workspace/client/requests/index.js +2 -0
  251. package/api/resources/workspace/resources/groups/client/Client.d.ts +3 -1
  252. package/api/resources/workspace/resources/groups/client/Client.js +3 -6
  253. package/api/resources/workspace/resources/groups/client/index.d.ts +1 -0
  254. package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +3 -1
  255. package/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -8
  256. package/api/resources/workspace/resources/groups/resources/members/client/index.d.ts +1 -0
  257. package/api/resources/workspace/resources/invites/client/Client.d.ts +3 -1
  258. package/api/resources/workspace/resources/invites/client/Client.js +7 -12
  259. package/api/resources/workspace/resources/invites/client/index.d.ts +1 -0
  260. package/api/resources/workspace/resources/members/client/Client.d.ts +3 -1
  261. package/api/resources/workspace/resources/members/client/Client.js +5 -8
  262. package/api/resources/workspace/resources/members/client/index.d.ts +1 -0
  263. package/api/resources/workspace/resources/resources/client/Client.d.ts +3 -1
  264. package/api/resources/workspace/resources/resources/client/Client.js +7 -14
  265. package/api/resources/workspace/resources/resources/client/index.d.ts +1 -0
  266. package/api/types/AddProjectRequest.d.ts +60 -3
  267. package/api/types/AgentCallLimits.d.ts +2 -0
  268. package/api/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.d.ts +1 -1
  269. package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +57 -2
  270. package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.d.ts +1 -1
  271. package/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +2 -2
  272. package/api/types/BuiltInTools.d.ts +16 -0
  273. package/api/types/ChapterContentBlockInputModel.d.ts +1 -1
  274. package/api/types/ClientEvent.d.ts +4 -2
  275. package/api/types/ClientEvent.js +3 -1
  276. package/api/types/ConvAiUserSecretDbModel.d.ts +12 -0
  277. package/api/types/ConversationChargingCommonModel.d.ts +1 -0
  278. package/api/types/ConversationSimulationSpecification.d.ts +1 -0
  279. package/api/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +4 -0
  280. package/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
  281. package/api/types/IntegrationType.d.ts +8 -0
  282. package/api/types/IntegrationType.js +10 -0
  283. package/api/types/InvoiceResponse.d.ts +2 -0
  284. package/api/types/ListMcpToolsResponseModel.d.ts +15 -0
  285. package/api/types/ListMcpToolsResponseModel.js +5 -0
  286. package/api/types/McpApprovalPolicy.d.ts +12 -0
  287. package/api/types/McpApprovalPolicy.js +11 -0
  288. package/api/types/McpServerConfigInput.d.ts +19 -0
  289. package/api/types/McpServerConfigInput.js +5 -0
  290. package/api/types/McpServerConfigInputRequestHeadersValue.d.ts +5 -0
  291. package/api/types/McpServerConfigInputRequestHeadersValue.js +5 -0
  292. package/api/types/McpServerConfigInputSecretToken.d.ts +8 -0
  293. package/api/types/McpServerConfigInputSecretToken.js +5 -0
  294. package/api/types/McpServerConfigInputUrl.d.ts +8 -0
  295. package/api/types/McpServerConfigInputUrl.js +5 -0
  296. package/api/types/McpServerConfigOutput.d.ts +19 -0
  297. package/api/types/McpServerConfigOutput.js +5 -0
  298. package/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +5 -0
  299. package/api/types/McpServerConfigOutputRequestHeadersValue.js +5 -0
  300. package/api/types/McpServerConfigOutputSecretToken.d.ts +8 -0
  301. package/api/types/McpServerConfigOutputSecretToken.js +5 -0
  302. package/api/types/McpServerConfigOutputUrl.d.ts +8 -0
  303. package/api/types/McpServerConfigOutputUrl.js +5 -0
  304. package/api/types/McpServerMetadataResponseModel.d.ts +7 -0
  305. package/api/types/McpServerMetadataResponseModel.js +5 -0
  306. package/api/types/McpServerResponseModel.d.ts +17 -0
  307. package/api/types/McpServerResponseModel.js +5 -0
  308. package/api/types/McpServerResponseModelDependentAgentsItem.d.ts +13 -0
  309. package/api/types/McpServerResponseModelDependentAgentsItem.js +5 -0
  310. package/api/types/McpServerTransport.d.ts +11 -0
  311. package/api/types/McpServerTransport.js +10 -0
  312. package/api/types/McpServersResponseModel.d.ts +10 -0
  313. package/api/types/McpServersResponseModel.js +5 -0
  314. package/api/types/McpToolApprovalHash.d.ts +15 -0
  315. package/api/types/McpToolApprovalHash.js +5 -0
  316. package/api/types/McpToolApprovalPolicy.d.ts +11 -0
  317. package/api/types/McpToolApprovalPolicy.js +10 -0
  318. package/api/types/McpToolConfigInput.d.ts +11 -3
  319. package/api/types/McpToolConfigOutput.d.ts +11 -3
  320. package/api/types/PromptAgentDbModel.d.ts +1 -0
  321. package/api/types/PromptAgentDbModelToolsItem.d.ts +1 -4
  322. package/api/types/PromptAgentInputToolsItem.d.ts +1 -4
  323. package/api/types/PromptAgentOutputToolsItem.d.ts +1 -4
  324. package/api/types/SubscriptionStatusType.d.ts +2 -3
  325. package/api/types/SubscriptionStatusType.js +1 -2
  326. package/api/types/SupportedVoice.d.ts +4 -0
  327. package/api/types/Tool.d.ts +15 -0
  328. package/api/types/Tool.js +5 -0
  329. package/api/types/ToolAnnotations.d.ts +22 -0
  330. package/api/types/ToolAnnotations.js +5 -0
  331. package/api/types/TransferToNumberToolConfig.d.ts +2 -0
  332. package/api/types/User.d.ts +1 -1
  333. package/api/types/VoiceDesignPreviewResponse.d.ts +2 -0
  334. package/api/types/VoicePreviewResponseModel.d.ts +4 -0
  335. package/api/types/WebhookAuthMethodType.d.ts +8 -0
  336. package/api/types/WebhookAuthMethodType.js +10 -0
  337. package/api/types/WebhookUsageType.d.ts +10 -0
  338. package/api/types/WebhookUsageType.js +12 -0
  339. package/api/types/WidgetConfig.d.ts +2 -0
  340. package/api/types/WidgetConfigResponse.d.ts +2 -0
  341. package/api/types/WidgetStyles.d.ts +45 -0
  342. package/api/types/WidgetStyles.js +5 -0
  343. package/api/types/WorkspaceResourceType.d.ts +2 -2
  344. package/api/types/WorkspaceResourceType.js +1 -1
  345. package/api/types/WorkspaceWebhookListResponseModel.d.ts +8 -0
  346. package/api/types/WorkspaceWebhookListResponseModel.js +5 -0
  347. package/api/types/WorkspaceWebhookResponseModel.d.ts +26 -0
  348. package/api/types/WorkspaceWebhookResponseModel.js +5 -0
  349. package/api/types/WorkspaceWebhookUsageResponseModel.d.ts +7 -0
  350. package/api/types/WorkspaceWebhookUsageResponseModel.js +5 -0
  351. package/api/types/index.d.ts +29 -5
  352. package/api/types/index.js +29 -5
  353. package/core/fetcher/Fetcher.d.ts +2 -1
  354. package/core/fetcher/Fetcher.js +22 -9
  355. package/core/form-data-utils/FormDataWrapper.js +5 -4
  356. package/core/form-data-utils/toReadableStream.d.ts +1 -0
  357. package/core/form-data-utils/toReadableStream.js +28 -0
  358. package/core/headers.d.ts +3 -0
  359. package/core/headers.js +29 -0
  360. package/core/index.d.ts +1 -1
  361. package/core/index.js +1 -1
  362. package/core/runtime/runtime.js +0 -1
  363. package/{dist/core/streaming-fetcher → core/stream}/Stream.d.ts +1 -2
  364. package/dist/Client.d.ts +9 -4
  365. package/dist/Client.js +60 -12
  366. package/dist/api/resources/audioIsolation/client/Client.d.ts +5 -4
  367. package/dist/api/resources/audioIsolation/client/Client.js +5 -8
  368. package/dist/api/resources/audioIsolation/client/index.d.ts +1 -0
  369. package/dist/api/resources/audioNative/client/Client.d.ts +3 -1
  370. package/dist/api/resources/audioNative/client/Client.js +7 -14
  371. package/dist/api/resources/audioNative/client/index.d.ts +1 -0
  372. package/dist/api/resources/conversationalAi/client/Client.d.ts +6 -1
  373. package/dist/api/resources/conversationalAi/client/Client.js +18 -28
  374. package/dist/api/resources/conversationalAi/client/index.d.ts +1 -0
  375. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -1
  376. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +15 -34
  377. package/dist/api/resources/conversationalAi/resources/agents/client/index.d.ts +1 -0
  378. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +3 -1
  379. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -6
  380. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +3 -1
  381. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -6
  382. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +3 -1
  383. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -4
  384. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  385. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +3 -1
  386. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -6
  387. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/index.d.ts +1 -0
  388. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +3 -1
  389. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -4
  390. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/index.d.ts +1 -0
  391. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +3 -1
  392. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +11 -28
  393. package/dist/api/resources/conversationalAi/resources/batchCalls/client/index.d.ts +1 -0
  394. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +3 -1
  395. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -24
  396. package/dist/api/resources/conversationalAi/resources/conversations/client/index.d.ts +1 -0
  397. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +4 -3
  398. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -6
  399. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +3 -1
  400. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -4
  401. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/index.d.ts +1 -0
  402. package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +2 -0
  403. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +3 -1
  404. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -10
  405. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/index.d.ts +1 -0
  406. package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -0
  407. package/dist/api/resources/conversationalAi/resources/index.js +3 -1
  408. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +3 -1
  409. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -6
  410. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/index.d.ts +1 -0
  411. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +3 -1
  412. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +3 -4
  413. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/index.d.ts +1 -0
  414. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +3 -1
  415. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +17 -40
  416. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/index.d.ts +1 -0
  417. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +3 -1
  418. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +3 -6
  419. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +3 -1
  420. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -4
  421. package/dist/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  422. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +85 -0
  423. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +298 -0
  424. package/dist/api/resources/conversationalAi/resources/mcpServers/client/index.d.ts +2 -0
  425. package/dist/api/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
  426. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +17 -0
  427. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js +5 -0
  428. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  429. package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/index.js +2 -0
  430. package/dist/api/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
  431. package/dist/api/resources/conversationalAi/resources/mcpServers/index.js +18 -0
  432. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +49 -0
  433. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +142 -0
  434. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +2 -0
  435. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
  436. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +14 -0
  437. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js +5 -0
  438. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
  439. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +2 -0
  440. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
  441. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
  442. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +5 -0
  443. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.js +44 -0
  444. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +64 -0
  445. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +214 -0
  446. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +2 -0
  447. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
  448. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +21 -0
  449. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js +5 -0
  450. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
  451. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +2 -0
  452. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
  453. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
  454. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +46 -0
  455. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +134 -0
  456. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.d.ts +1 -0
  457. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/index.js +2 -0
  458. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.d.ts +1 -0
  459. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/index.js +17 -0
  460. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +3 -1
  461. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +11 -26
  462. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/index.d.ts +1 -0
  463. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +3 -1
  464. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -16
  465. package/dist/api/resources/conversationalAi/resources/secrets/client/index.d.ts +1 -0
  466. package/dist/api/resources/conversationalAi/resources/settings/client/Client.d.ts +3 -1
  467. package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +5 -10
  468. package/dist/api/resources/conversationalAi/resources/settings/client/index.d.ts +1 -0
  469. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +3 -1
  470. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -4
  471. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/index.d.ts +1 -0
  472. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +3 -1
  473. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -4
  474. package/dist/api/resources/conversationalAi/resources/twilio/client/index.d.ts +1 -0
  475. package/dist/api/resources/dubbing/client/Client.d.ts +3 -1
  476. package/dist/api/resources/dubbing/client/Client.js +7 -16
  477. package/dist/api/resources/dubbing/client/index.d.ts +1 -0
  478. package/dist/api/resources/dubbing/resources/audio/client/Client.d.ts +4 -3
  479. package/dist/api/resources/dubbing/resources/audio/client/Client.js +3 -6
  480. package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +3 -1
  481. package/dist/api/resources/dubbing/resources/resource/client/Client.js +11 -22
  482. package/dist/api/resources/dubbing/resources/resource/client/index.d.ts +1 -0
  483. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +3 -1
  484. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -4
  485. package/dist/api/resources/dubbing/resources/resource/resources/language/client/index.d.ts +1 -0
  486. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +3 -1
  487. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -10
  488. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/index.d.ts +1 -0
  489. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +3 -1
  490. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -10
  491. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/index.d.ts +1 -0
  492. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +3 -1
  493. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -4
  494. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/index.d.ts +1 -0
  495. package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +3 -1
  496. package/dist/api/resources/dubbing/resources/transcript/client/Client.js +3 -6
  497. package/dist/api/resources/dubbing/resources/transcript/client/index.d.ts +1 -0
  498. package/dist/api/resources/forcedAlignment/client/Client.d.ts +3 -1
  499. package/dist/api/resources/forcedAlignment/client/Client.js +3 -4
  500. package/dist/api/resources/forcedAlignment/client/index.d.ts +1 -0
  501. package/dist/api/resources/history/client/Client.d.ts +5 -4
  502. package/dist/api/resources/history/client/Client.js +11 -28
  503. package/dist/api/resources/history/client/index.d.ts +1 -0
  504. package/dist/api/resources/index.d.ts +3 -0
  505. package/dist/api/resources/index.js +4 -1
  506. package/dist/api/resources/models/client/Client.d.ts +3 -1
  507. package/dist/api/resources/models/client/Client.js +3 -6
  508. package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +4 -3
  509. package/dist/api/resources/pronunciationDictionaries/client/Client.js +11 -26
  510. package/dist/api/resources/pronunciationDictionaries/client/index.d.ts +1 -0
  511. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +3 -1
  512. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -8
  513. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/index.d.ts +1 -0
  514. package/dist/api/resources/samples/client/Client.d.ts +3 -1
  515. package/dist/api/resources/samples/client/Client.js +3 -6
  516. package/dist/api/resources/speechToSpeech/client/Client.d.ts +5 -4
  517. package/dist/api/resources/speechToSpeech/client/Client.js +5 -8
  518. package/dist/api/resources/speechToSpeech/client/index.d.ts +1 -0
  519. package/dist/api/resources/speechToText/client/Client.d.ts +4 -4
  520. package/dist/api/resources/speechToText/client/Client.js +46 -10
  521. package/dist/api/resources/speechToText/client/index.d.ts +1 -0
  522. package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +3 -1
  523. package/dist/api/resources/studio/client/Client.d.ts +4 -2
  524. package/dist/api/resources/studio/client/Client.js +4 -5
  525. package/dist/api/resources/studio/client/index.d.ts +1 -0
  526. package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +58 -3
  527. package/dist/api/resources/studio/resources/projects/client/Client.d.ts +3 -1
  528. package/dist/api/resources/studio/resources/projects/client/Client.js +16 -32
  529. package/dist/api/resources/studio/resources/projects/client/index.d.ts +1 -0
  530. package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +59 -2
  531. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +3 -1
  532. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -32
  533. package/dist/api/resources/studio/resources/projects/resources/chapters/client/index.d.ts +1 -0
  534. package/dist/api/resources/studio/resources/projects/resources/chapters/client/requests/BodyCreateChapterV1StudioProjectsProjectIdChaptersPost.d.ts +1 -1
  535. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +4 -3
  536. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -16
  537. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/index.d.ts +1 -0
  538. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +3 -1
  539. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -4
  540. package/dist/api/resources/studio/resources/projects/resources/content/client/index.d.ts +1 -0
  541. package/dist/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +1 -1
  542. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +3 -1
  543. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -4
  544. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/index.d.ts +1 -0
  545. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +5 -4
  546. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -22
  547. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/index.d.ts +1 -0
  548. package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostDurationScale.d.ts +1 -1
  549. package/dist/api/resources/textToDialogue/client/Client.d.ts +5 -4
  550. package/dist/api/resources/textToDialogue/client/Client.js +5 -8
  551. package/dist/api/resources/textToDialogue/client/index.d.ts +1 -0
  552. package/dist/api/resources/textToSoundEffects/client/Client.d.ts +4 -3
  553. package/dist/api/resources/textToSoundEffects/client/Client.js +3 -4
  554. package/dist/api/resources/textToSoundEffects/client/index.d.ts +1 -0
  555. package/dist/api/resources/textToSpeech/client/Client.d.ts +5 -4
  556. package/dist/api/resources/textToSpeech/client/Client.js +9 -16
  557. package/dist/api/resources/textToSpeech/client/index.d.ts +1 -0
  558. package/dist/api/resources/textToVoice/client/Client.d.ts +3 -1
  559. package/dist/api/resources/textToVoice/client/Client.js +5 -8
  560. package/dist/api/resources/textToVoice/client/index.d.ts +1 -0
  561. package/dist/api/resources/usage/client/Client.d.ts +3 -1
  562. package/dist/api/resources/usage/client/Client.js +3 -6
  563. package/dist/api/resources/usage/client/index.d.ts +1 -0
  564. package/dist/api/resources/user/client/Client.d.ts +3 -1
  565. package/dist/api/resources/user/client/Client.js +3 -6
  566. package/dist/api/resources/user/resources/subscription/client/Client.d.ts +3 -1
  567. package/dist/api/resources/user/resources/subscription/client/Client.js +3 -6
  568. package/dist/api/resources/voices/client/Client.d.ts +4 -2
  569. package/dist/api/resources/voices/client/Client.js +18 -43
  570. package/dist/api/resources/voices/client/index.d.ts +1 -0
  571. package/dist/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +1 -1
  572. package/dist/api/resources/voices/resources/ivc/client/Client.d.ts +3 -1
  573. package/dist/api/resources/voices/resources/ivc/client/Client.js +3 -4
  574. package/dist/api/resources/voices/resources/ivc/client/index.d.ts +1 -0
  575. package/dist/api/resources/voices/resources/pvc/client/Client.d.ts +3 -1
  576. package/dist/api/resources/voices/resources/pvc/client/Client.js +7 -12
  577. package/dist/api/resources/voices/resources/pvc/client/index.d.ts +1 -0
  578. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +3 -1
  579. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -14
  580. package/dist/api/resources/voices/resources/pvc/resources/samples/client/index.d.ts +1 -0
  581. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +3 -1
  582. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +3 -6
  583. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +3 -1
  584. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -12
  585. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +3 -1
  586. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -6
  587. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +3 -1
  588. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -6
  589. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +3 -1
  590. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -4
  591. package/dist/api/resources/voices/resources/pvc/resources/verification/client/index.d.ts +1 -0
  592. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +3 -1
  593. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -10
  594. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/index.d.ts +1 -0
  595. package/dist/api/resources/voices/resources/samples/client/Client.d.ts +2 -0
  596. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +4 -3
  597. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -6
  598. package/dist/api/resources/voices/resources/settings/client/Client.d.ts +3 -1
  599. package/dist/api/resources/voices/resources/settings/client/Client.js +7 -16
  600. package/dist/api/resources/webhooks/client/Client.d.ts +48 -0
  601. package/dist/api/resources/webhooks/client/Client.js +142 -0
  602. package/dist/api/resources/webhooks/client/index.d.ts +2 -0
  603. package/dist/api/resources/webhooks/client/index.js +17 -0
  604. package/dist/api/resources/webhooks/client/requests/WebhooksListRequest.d.ts +15 -0
  605. package/dist/api/resources/webhooks/client/requests/WebhooksListRequest.js +5 -0
  606. package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -0
  607. package/dist/api/resources/webhooks/client/requests/index.js +2 -0
  608. package/dist/api/resources/webhooks/index.d.ts +1 -0
  609. package/dist/api/resources/webhooks/index.js +17 -0
  610. package/dist/api/resources/workspace/client/Client.d.ts +30 -0
  611. package/dist/api/resources/workspace/client/Client.js +121 -0
  612. package/dist/api/resources/workspace/client/index.d.ts +1 -0
  613. package/dist/api/resources/workspace/client/index.js +15 -0
  614. package/dist/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
  615. package/dist/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +5 -0
  616. package/dist/api/resources/workspace/client/requests/index.d.ts +1 -0
  617. package/dist/api/resources/workspace/client/requests/index.js +2 -0
  618. package/dist/api/resources/workspace/resources/groups/client/Client.d.ts +3 -1
  619. package/dist/api/resources/workspace/resources/groups/client/Client.js +3 -6
  620. package/dist/api/resources/workspace/resources/groups/client/index.d.ts +1 -0
  621. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +3 -1
  622. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -8
  623. package/dist/api/resources/workspace/resources/groups/resources/members/client/index.d.ts +1 -0
  624. package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +3 -1
  625. package/dist/api/resources/workspace/resources/invites/client/Client.js +7 -12
  626. package/dist/api/resources/workspace/resources/invites/client/index.d.ts +1 -0
  627. package/dist/api/resources/workspace/resources/members/client/Client.d.ts +3 -1
  628. package/dist/api/resources/workspace/resources/members/client/Client.js +5 -8
  629. package/dist/api/resources/workspace/resources/members/client/index.d.ts +1 -0
  630. package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +3 -1
  631. package/dist/api/resources/workspace/resources/resources/client/Client.js +7 -14
  632. package/dist/api/resources/workspace/resources/resources/client/index.d.ts +1 -0
  633. package/dist/api/types/AddProjectRequest.d.ts +60 -3
  634. package/dist/api/types/AgentCallLimits.d.ts +2 -0
  635. package/dist/api/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.d.ts +1 -1
  636. package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +57 -2
  637. package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.d.ts +1 -1
  638. package/dist/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +2 -2
  639. package/dist/api/types/BuiltInTools.d.ts +16 -0
  640. package/dist/api/types/BuiltInTools.js +5 -0
  641. package/dist/api/types/ChapterContentBlockInputModel.d.ts +1 -1
  642. package/dist/api/types/ClientEvent.d.ts +4 -2
  643. package/dist/api/types/ClientEvent.js +3 -1
  644. package/dist/api/types/ConvAiUserSecretDbModel.d.ts +12 -0
  645. package/dist/api/types/ConvAiUserSecretDbModel.js +5 -0
  646. package/dist/api/types/ConversationChargingCommonModel.d.ts +1 -0
  647. package/dist/api/types/ConversationSimulationSpecification.d.ts +1 -0
  648. package/dist/api/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +4 -0
  649. package/dist/api/types/ConversationSimulationSpecificationDynamicVariablesValue.js +5 -0
  650. package/dist/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
  651. package/dist/api/types/IntegrationType.d.ts +8 -0
  652. package/dist/api/types/IntegrationType.js +10 -0
  653. package/dist/api/types/InvoiceResponse.d.ts +2 -0
  654. package/dist/api/types/ListMcpToolsResponseModel.d.ts +15 -0
  655. package/dist/api/types/ListMcpToolsResponseModel.js +5 -0
  656. package/dist/api/types/McpApprovalPolicy.d.ts +12 -0
  657. package/dist/api/types/McpApprovalPolicy.js +11 -0
  658. package/dist/api/types/McpServerConfigInput.d.ts +19 -0
  659. package/dist/api/types/McpServerConfigInput.js +5 -0
  660. package/dist/api/types/McpServerConfigInputRequestHeadersValue.d.ts +5 -0
  661. package/dist/api/types/McpServerConfigInputRequestHeadersValue.js +5 -0
  662. package/dist/api/types/McpServerConfigInputSecretToken.d.ts +8 -0
  663. package/dist/api/types/McpServerConfigInputSecretToken.js +5 -0
  664. package/dist/api/types/McpServerConfigInputUrl.d.ts +8 -0
  665. package/dist/api/types/McpServerConfigInputUrl.js +5 -0
  666. package/dist/api/types/McpServerConfigOutput.d.ts +19 -0
  667. package/dist/api/types/McpServerConfigOutput.js +5 -0
  668. package/dist/api/types/McpServerConfigOutputRequestHeadersValue.d.ts +5 -0
  669. package/dist/api/types/McpServerConfigOutputRequestHeadersValue.js +5 -0
  670. package/dist/api/types/McpServerConfigOutputSecretToken.d.ts +8 -0
  671. package/dist/api/types/McpServerConfigOutputSecretToken.js +5 -0
  672. package/dist/api/types/McpServerConfigOutputUrl.d.ts +8 -0
  673. package/dist/api/types/McpServerConfigOutputUrl.js +5 -0
  674. package/dist/api/types/McpServerMetadataResponseModel.d.ts +7 -0
  675. package/dist/api/types/McpServerMetadataResponseModel.js +5 -0
  676. package/dist/api/types/McpServerResponseModel.d.ts +17 -0
  677. package/dist/api/types/McpServerResponseModel.js +5 -0
  678. package/dist/api/types/McpServerResponseModelDependentAgentsItem.d.ts +13 -0
  679. package/dist/api/types/McpServerResponseModelDependentAgentsItem.js +5 -0
  680. package/dist/api/types/McpServerTransport.d.ts +11 -0
  681. package/dist/api/types/McpServerTransport.js +10 -0
  682. package/dist/api/types/McpServersResponseModel.d.ts +10 -0
  683. package/dist/api/types/McpServersResponseModel.js +5 -0
  684. package/dist/api/types/McpToolApprovalHash.d.ts +15 -0
  685. package/dist/api/types/McpToolApprovalHash.js +5 -0
  686. package/dist/api/types/McpToolApprovalPolicy.d.ts +11 -0
  687. package/dist/api/types/McpToolApprovalPolicy.js +10 -0
  688. package/dist/api/types/McpToolConfigInput.d.ts +11 -3
  689. package/dist/api/types/McpToolConfigOutput.d.ts +11 -3
  690. package/dist/api/types/PromptAgentDbModel.d.ts +1 -0
  691. package/dist/api/types/PromptAgentDbModelToolsItem.d.ts +1 -4
  692. package/dist/api/types/PromptAgentInputToolsItem.d.ts +1 -4
  693. package/dist/api/types/PromptAgentOutputToolsItem.d.ts +1 -4
  694. package/dist/api/types/SubscriptionStatusType.d.ts +2 -3
  695. package/dist/api/types/SubscriptionStatusType.js +1 -2
  696. package/dist/api/types/SupportedVoice.d.ts +4 -0
  697. package/dist/api/types/Tool.d.ts +15 -0
  698. package/dist/api/types/Tool.js +5 -0
  699. package/dist/api/types/ToolAnnotations.d.ts +22 -0
  700. package/dist/api/types/ToolAnnotations.js +5 -0
  701. package/dist/api/types/TransferToNumberToolConfig.d.ts +2 -0
  702. package/dist/api/types/User.d.ts +1 -1
  703. package/dist/api/types/VoiceDesignPreviewResponse.d.ts +2 -0
  704. package/dist/api/types/VoicePreviewResponseModel.d.ts +4 -0
  705. package/dist/api/types/WebhookAuthMethodType.d.ts +8 -0
  706. package/dist/api/types/WebhookAuthMethodType.js +10 -0
  707. package/dist/api/types/WebhookUsageType.d.ts +10 -0
  708. package/dist/api/types/WebhookUsageType.js +12 -0
  709. package/dist/api/types/WidgetConfig.d.ts +2 -0
  710. package/dist/api/types/WidgetConfigResponse.d.ts +2 -0
  711. package/dist/api/types/WidgetStyles.d.ts +45 -0
  712. package/dist/api/types/WidgetStyles.js +5 -0
  713. package/dist/api/types/WorkspaceResourceType.d.ts +2 -2
  714. package/dist/api/types/WorkspaceResourceType.js +1 -1
  715. package/dist/api/types/WorkspaceWebhookListResponseModel.d.ts +8 -0
  716. package/dist/api/types/WorkspaceWebhookListResponseModel.js +5 -0
  717. package/dist/api/types/WorkspaceWebhookResponseModel.d.ts +26 -0
  718. package/dist/api/types/WorkspaceWebhookResponseModel.js +5 -0
  719. package/dist/api/types/WorkspaceWebhookUsageResponseModel.d.ts +7 -0
  720. package/dist/api/types/WorkspaceWebhookUsageResponseModel.js +5 -0
  721. package/dist/api/types/index.d.ts +29 -5
  722. package/dist/api/types/index.js +29 -5
  723. package/dist/core/fetcher/Fetcher.d.ts +2 -1
  724. package/dist/core/fetcher/Fetcher.js +22 -9
  725. package/dist/core/form-data-utils/FormDataWrapper.js +5 -4
  726. package/dist/core/form-data-utils/toReadableStream.d.ts +1 -0
  727. package/dist/core/form-data-utils/toReadableStream.js +28 -0
  728. package/dist/core/headers.d.ts +3 -0
  729. package/dist/core/headers.js +29 -0
  730. package/dist/core/index.d.ts +1 -1
  731. package/dist/core/index.js +1 -1
  732. package/dist/core/runtime/runtime.js +0 -1
  733. package/{core/streaming-fetcher → dist/core/stream}/Stream.d.ts +1 -2
  734. package/dist/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
  735. package/dist/serialization/resources/conversationalAi/resources/index.js +3 -1
  736. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/index.d.ts +1 -0
  737. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
  738. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +13 -0
  739. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js +44 -0
  740. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  741. package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.js +5 -0
  742. package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
  743. package/dist/serialization/resources/conversationalAi/resources/mcpServers/index.js +18 -0
  744. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +1 -0
  745. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
  746. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +13 -0
  747. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js +44 -0
  748. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
  749. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +5 -0
  750. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
  751. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
  752. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +4 -0
  753. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +43 -0
  754. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +1 -0
  755. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
  756. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +16 -0
  757. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js +47 -0
  758. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
  759. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +5 -0
  760. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
  761. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
  762. package/dist/serialization/resources/index.d.ts +1 -0
  763. package/dist/serialization/resources/index.js +1 -0
  764. package/dist/serialization/resources/workspace/client/index.d.ts +1 -0
  765. package/dist/serialization/resources/workspace/client/index.js +17 -0
  766. package/dist/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
  767. package/dist/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +43 -0
  768. package/dist/serialization/resources/workspace/client/requests/index.d.ts +1 -0
  769. package/dist/serialization/resources/workspace/client/requests/index.js +5 -0
  770. package/dist/serialization/resources/workspace/index.d.ts +1 -0
  771. package/dist/serialization/resources/workspace/index.js +1 -0
  772. package/dist/serialization/types/AddProjectRequest.d.ts +1 -0
  773. package/dist/serialization/types/AddProjectRequest.js +1 -0
  774. package/dist/serialization/types/AgentCallLimits.d.ts +1 -0
  775. package/dist/serialization/types/AgentCallLimits.js +1 -0
  776. package/dist/serialization/types/BuiltInTools.d.ts +17 -0
  777. package/dist/serialization/types/BuiltInTools.js +48 -0
  778. package/dist/serialization/types/ChapterContentBlockInputModel.d.ts +1 -1
  779. package/dist/serialization/types/ChapterContentBlockInputModel.js +1 -1
  780. package/dist/serialization/types/ClientEvent.d.ts +1 -1
  781. package/dist/serialization/types/ClientEvent.js +3 -1
  782. package/dist/serialization/types/ConvAiUserSecretDbModel.d.ts +15 -0
  783. package/dist/serialization/types/{GetSharedSoundGenerationsResponseModel.js → ConvAiUserSecretDbModel.js} +6 -6
  784. package/dist/serialization/types/ConversationChargingCommonModel.d.ts +1 -0
  785. package/dist/serialization/types/ConversationChargingCommonModel.js +1 -0
  786. package/dist/serialization/types/ConversationSimulationSpecification.d.ts +2 -0
  787. package/dist/serialization/types/ConversationSimulationSpecification.js +4 -0
  788. package/dist/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +10 -0
  789. package/dist/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.js +46 -0
  790. package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +1 -0
  791. package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.js +1 -0
  792. package/dist/serialization/types/IntegrationType.d.ts +10 -0
  793. package/dist/serialization/types/IntegrationType.js +41 -0
  794. package/dist/serialization/types/InvoiceResponse.d.ts +1 -0
  795. package/dist/serialization/types/InvoiceResponse.js +1 -0
  796. package/dist/serialization/types/ListMcpToolsResponseModel.d.ts +15 -0
  797. package/{serialization/types/GetSharedSoundGenerationsResponseModel.js → dist/serialization/types/ListMcpToolsResponseModel.js} +6 -6
  798. package/dist/serialization/types/McpApprovalPolicy.d.ts +10 -0
  799. package/dist/serialization/types/McpApprovalPolicy.js +41 -0
  800. package/dist/serialization/types/McpServerConfigInput.d.ts +25 -0
  801. package/dist/serialization/types/McpServerConfigInput.js +56 -0
  802. package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +11 -0
  803. package/dist/serialization/types/McpServerConfigInputRequestHeadersValue.js +42 -0
  804. package/dist/serialization/types/McpServerConfigInputSecretToken.d.ts +12 -0
  805. package/dist/serialization/types/McpServerConfigInputSecretToken.js +43 -0
  806. package/dist/serialization/types/McpServerConfigInputUrl.d.ts +11 -0
  807. package/dist/serialization/types/McpServerConfigInputUrl.js +42 -0
  808. package/dist/serialization/types/McpServerConfigOutput.d.ts +25 -0
  809. package/dist/serialization/types/McpServerConfigOutput.js +56 -0
  810. package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +11 -0
  811. package/dist/serialization/types/McpServerConfigOutputRequestHeadersValue.js +42 -0
  812. package/dist/serialization/types/McpServerConfigOutputSecretToken.d.ts +12 -0
  813. package/dist/serialization/types/McpServerConfigOutputSecretToken.js +43 -0
  814. package/dist/serialization/types/McpServerConfigOutputUrl.d.ts +11 -0
  815. package/dist/serialization/types/McpServerConfigOutputUrl.js +42 -0
  816. package/dist/serialization/types/McpServerMetadataResponseModel.d.ts +13 -0
  817. package/dist/serialization/types/McpServerMetadataResponseModel.js +44 -0
  818. package/dist/serialization/types/McpServerResponseModel.d.ts +20 -0
  819. package/dist/serialization/types/{NativeMcpToolConfigInput.js → McpServerResponseModel.js} +11 -12
  820. package/dist/serialization/types/McpServerResponseModelDependentAgentsItem.d.ts +18 -0
  821. package/dist/serialization/types/McpServerResponseModelDependentAgentsItem.js +51 -0
  822. package/dist/serialization/types/McpServerTransport.d.ts +10 -0
  823. package/dist/serialization/types/McpServerTransport.js +41 -0
  824. package/dist/serialization/types/McpServersResponseModel.d.ts +13 -0
  825. package/dist/serialization/types/McpServersResponseModel.js +44 -0
  826. package/dist/serialization/types/McpToolApprovalHash.d.ts +15 -0
  827. package/dist/serialization/types/McpToolApprovalHash.js +46 -0
  828. package/dist/serialization/types/McpToolApprovalPolicy.d.ts +10 -0
  829. package/dist/serialization/types/McpToolApprovalPolicy.js +41 -0
  830. package/dist/serialization/types/McpToolConfigInput.d.ts +7 -2
  831. package/dist/serialization/types/McpToolConfigInput.js +7 -2
  832. package/dist/serialization/types/McpToolConfigOutput.d.ts +7 -2
  833. package/dist/serialization/types/McpToolConfigOutput.js +7 -2
  834. package/dist/serialization/types/PromptAgentDbModel.d.ts +2 -0
  835. package/dist/serialization/types/PromptAgentDbModel.js +2 -0
  836. package/dist/serialization/types/PromptAgentDbModelToolsItem.d.ts +1 -5
  837. package/dist/serialization/types/PromptAgentDbModelToolsItem.js +0 -2
  838. package/dist/serialization/types/PromptAgentInputToolsItem.d.ts +1 -5
  839. package/dist/serialization/types/PromptAgentInputToolsItem.js +0 -2
  840. package/dist/serialization/types/PromptAgentOutputToolsItem.d.ts +1 -5
  841. package/dist/serialization/types/PromptAgentOutputToolsItem.js +0 -2
  842. package/dist/serialization/types/SubscriptionStatusType.d.ts +1 -1
  843. package/dist/serialization/types/SubscriptionStatusType.js +1 -2
  844. package/dist/serialization/types/SupportedVoice.d.ts +5 -0
  845. package/dist/serialization/types/SupportedVoice.js +5 -0
  846. package/dist/serialization/types/Tool.d.ts +17 -0
  847. package/dist/serialization/types/Tool.js +49 -0
  848. package/dist/serialization/types/ToolAnnotations.d.ts +17 -0
  849. package/dist/serialization/types/ToolAnnotations.js +49 -0
  850. package/dist/serialization/types/TransferToNumberToolConfig.d.ts +1 -0
  851. package/dist/serialization/types/TransferToNumberToolConfig.js +1 -0
  852. package/dist/serialization/types/WebhookAuthMethodType.d.ts +10 -0
  853. package/dist/serialization/types/WebhookAuthMethodType.js +41 -0
  854. package/dist/serialization/types/WebhookUsageType.d.ts +10 -0
  855. package/{serialization/types/McpApprovalRequiredModel.js → dist/serialization/types/WebhookUsageType.js} +6 -5
  856. package/dist/serialization/types/WidgetConfig.d.ts +2 -0
  857. package/dist/serialization/types/WidgetConfig.js +2 -0
  858. package/dist/serialization/types/WidgetConfigResponse.d.ts +2 -0
  859. package/dist/serialization/types/WidgetConfigResponse.js +2 -0
  860. package/dist/serialization/types/WidgetStyles.d.ts +31 -0
  861. package/dist/serialization/types/WidgetStyles.js +62 -0
  862. package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
  863. package/dist/serialization/types/WorkspaceResourceType.js +1 -1
  864. package/dist/serialization/types/WorkspaceWebhookListResponseModel.d.ts +13 -0
  865. package/dist/serialization/types/WorkspaceWebhookListResponseModel.js +44 -0
  866. package/dist/serialization/types/WorkspaceWebhookResponseModel.d.ts +23 -0
  867. package/{serialization/types/NativeMcpToolConfigOutput.js → dist/serialization/types/WorkspaceWebhookResponseModel.js} +13 -11
  868. package/dist/serialization/types/WorkspaceWebhookUsageResponseModel.d.ts +13 -0
  869. package/dist/serialization/types/WorkspaceWebhookUsageResponseModel.js +44 -0
  870. package/dist/serialization/types/index.d.ts +29 -5
  871. package/dist/serialization/types/index.js +29 -5
  872. package/dist/version.d.ts +1 -1
  873. package/dist/version.js +1 -1
  874. package/dist/wrapper/ElevenLabsClient.d.ts +4 -3
  875. package/dist/wrapper/ElevenLabsClient.js +6 -1
  876. package/dist/wrapper/webhooks.d.ts +4 -3
  877. package/dist/wrapper/webhooks.js +68 -46
  878. package/jest.config.mjs +1 -0
  879. package/package.json +6 -4
  880. package/reference.md +702 -93
  881. package/scripts/rename-to-esm-files.js +10 -2
  882. package/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
  883. package/serialization/resources/conversationalAi/resources/index.js +3 -1
  884. package/serialization/resources/conversationalAi/resources/mcpServers/client/index.d.ts +1 -0
  885. package/serialization/resources/conversationalAi/resources/mcpServers/client/index.js +17 -0
  886. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.d.ts +13 -0
  887. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js +44 -0
  888. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.d.ts +1 -0
  889. package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/index.js +5 -0
  890. package/serialization/resources/conversationalAi/resources/mcpServers/index.d.ts +2 -0
  891. package/serialization/resources/conversationalAi/resources/mcpServers/index.js +18 -0
  892. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.d.ts +1 -0
  893. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/index.js +17 -0
  894. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.d.ts +13 -0
  895. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js +44 -0
  896. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.d.ts +1 -0
  897. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/index.js +5 -0
  898. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.d.ts +1 -0
  899. package/serialization/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/index.js +17 -0
  900. package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +4 -0
  901. package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +43 -0
  902. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.d.ts +1 -0
  903. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/index.js +17 -0
  904. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.d.ts +16 -0
  905. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js +47 -0
  906. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.d.ts +1 -0
  907. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/index.js +5 -0
  908. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.d.ts +1 -0
  909. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/index.js +17 -0
  910. package/serialization/resources/index.d.ts +1 -0
  911. package/serialization/resources/index.js +1 -0
  912. package/serialization/resources/workspace/client/index.d.ts +1 -0
  913. package/serialization/resources/workspace/client/index.js +17 -0
  914. package/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +12 -0
  915. package/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js +43 -0
  916. package/serialization/resources/workspace/client/requests/index.d.ts +1 -0
  917. package/serialization/resources/workspace/client/requests/index.js +5 -0
  918. package/serialization/resources/workspace/index.d.ts +1 -0
  919. package/serialization/resources/workspace/index.js +1 -0
  920. package/serialization/types/AddProjectRequest.d.ts +1 -0
  921. package/serialization/types/AddProjectRequest.js +1 -0
  922. package/serialization/types/AgentCallLimits.d.ts +1 -0
  923. package/serialization/types/AgentCallLimits.js +1 -0
  924. package/serialization/types/BuiltInTools.d.ts +17 -0
  925. package/serialization/types/BuiltInTools.js +48 -0
  926. package/serialization/types/ChapterContentBlockInputModel.d.ts +1 -1
  927. package/serialization/types/ChapterContentBlockInputModel.js +1 -1
  928. package/serialization/types/ClientEvent.d.ts +1 -1
  929. package/serialization/types/ClientEvent.js +3 -1
  930. package/serialization/types/ConvAiUserSecretDbModel.d.ts +15 -0
  931. package/serialization/types/ConvAiUserSecretDbModel.js +46 -0
  932. package/serialization/types/ConversationChargingCommonModel.d.ts +1 -0
  933. package/serialization/types/ConversationChargingCommonModel.js +1 -0
  934. package/serialization/types/ConversationSimulationSpecification.d.ts +2 -0
  935. package/serialization/types/ConversationSimulationSpecification.js +4 -0
  936. package/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.d.ts +10 -0
  937. package/serialization/types/ConversationSimulationSpecificationDynamicVariablesValue.js +46 -0
  938. package/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +1 -0
  939. package/serialization/types/CreateSipTrunkPhoneNumberRequest.js +1 -0
  940. package/serialization/types/IntegrationType.d.ts +10 -0
  941. package/serialization/types/IntegrationType.js +41 -0
  942. package/serialization/types/InvoiceResponse.d.ts +1 -0
  943. package/serialization/types/InvoiceResponse.js +1 -0
  944. package/serialization/types/ListMcpToolsResponseModel.d.ts +15 -0
  945. package/serialization/types/ListMcpToolsResponseModel.js +46 -0
  946. package/serialization/types/McpApprovalPolicy.d.ts +10 -0
  947. package/serialization/types/McpApprovalPolicy.js +41 -0
  948. package/serialization/types/McpServerConfigInput.d.ts +25 -0
  949. package/serialization/types/McpServerConfigInput.js +56 -0
  950. package/serialization/types/McpServerConfigInputRequestHeadersValue.d.ts +11 -0
  951. package/serialization/types/McpServerConfigInputRequestHeadersValue.js +42 -0
  952. package/serialization/types/McpServerConfigInputSecretToken.d.ts +12 -0
  953. package/serialization/types/McpServerConfigInputSecretToken.js +43 -0
  954. package/serialization/types/McpServerConfigInputUrl.d.ts +11 -0
  955. package/serialization/types/McpServerConfigInputUrl.js +42 -0
  956. package/serialization/types/McpServerConfigOutput.d.ts +25 -0
  957. package/serialization/types/McpServerConfigOutput.js +56 -0
  958. package/serialization/types/McpServerConfigOutputRequestHeadersValue.d.ts +11 -0
  959. package/serialization/types/McpServerConfigOutputRequestHeadersValue.js +42 -0
  960. package/serialization/types/McpServerConfigOutputSecretToken.d.ts +12 -0
  961. package/serialization/types/McpServerConfigOutputSecretToken.js +43 -0
  962. package/serialization/types/McpServerConfigOutputUrl.d.ts +11 -0
  963. package/serialization/types/McpServerConfigOutputUrl.js +42 -0
  964. package/serialization/types/McpServerMetadataResponseModel.d.ts +13 -0
  965. package/serialization/types/McpServerMetadataResponseModel.js +44 -0
  966. package/serialization/types/McpServerResponseModel.d.ts +20 -0
  967. package/serialization/types/{NativeMcpToolConfigInput.js → McpServerResponseModel.js} +11 -12
  968. package/serialization/types/McpServerResponseModelDependentAgentsItem.d.ts +18 -0
  969. package/serialization/types/McpServerResponseModelDependentAgentsItem.js +51 -0
  970. package/serialization/types/McpServerTransport.d.ts +10 -0
  971. package/serialization/types/McpServerTransport.js +41 -0
  972. package/serialization/types/McpServersResponseModel.d.ts +13 -0
  973. package/serialization/types/McpServersResponseModel.js +44 -0
  974. package/serialization/types/McpToolApprovalHash.d.ts +15 -0
  975. package/serialization/types/McpToolApprovalHash.js +46 -0
  976. package/serialization/types/McpToolApprovalPolicy.d.ts +10 -0
  977. package/serialization/types/McpToolApprovalPolicy.js +41 -0
  978. package/serialization/types/McpToolConfigInput.d.ts +7 -2
  979. package/serialization/types/McpToolConfigInput.js +7 -2
  980. package/serialization/types/McpToolConfigOutput.d.ts +7 -2
  981. package/serialization/types/McpToolConfigOutput.js +7 -2
  982. package/serialization/types/PromptAgentDbModel.d.ts +2 -0
  983. package/serialization/types/PromptAgentDbModel.js +2 -0
  984. package/serialization/types/PromptAgentDbModelToolsItem.d.ts +1 -5
  985. package/serialization/types/PromptAgentDbModelToolsItem.js +0 -2
  986. package/serialization/types/PromptAgentInputToolsItem.d.ts +1 -5
  987. package/serialization/types/PromptAgentInputToolsItem.js +0 -2
  988. package/serialization/types/PromptAgentOutputToolsItem.d.ts +1 -5
  989. package/serialization/types/PromptAgentOutputToolsItem.js +0 -2
  990. package/serialization/types/SubscriptionStatusType.d.ts +1 -1
  991. package/serialization/types/SubscriptionStatusType.js +1 -2
  992. package/serialization/types/SupportedVoice.d.ts +5 -0
  993. package/serialization/types/SupportedVoice.js +5 -0
  994. package/serialization/types/Tool.d.ts +17 -0
  995. package/serialization/types/Tool.js +49 -0
  996. package/serialization/types/ToolAnnotations.d.ts +17 -0
  997. package/serialization/types/ToolAnnotations.js +49 -0
  998. package/serialization/types/TransferToNumberToolConfig.d.ts +1 -0
  999. package/serialization/types/TransferToNumberToolConfig.js +1 -0
  1000. package/serialization/types/WebhookAuthMethodType.d.ts +10 -0
  1001. package/serialization/types/WebhookAuthMethodType.js +41 -0
  1002. package/serialization/types/WebhookUsageType.d.ts +10 -0
  1003. package/{dist/serialization/types/McpApprovalRequiredModel.js → serialization/types/WebhookUsageType.js} +6 -5
  1004. package/serialization/types/WidgetConfig.d.ts +2 -0
  1005. package/serialization/types/WidgetConfig.js +2 -0
  1006. package/serialization/types/WidgetConfigResponse.d.ts +2 -0
  1007. package/serialization/types/WidgetConfigResponse.js +2 -0
  1008. package/serialization/types/WidgetStyles.d.ts +31 -0
  1009. package/serialization/types/WidgetStyles.js +62 -0
  1010. package/serialization/types/WorkspaceResourceType.d.ts +1 -1
  1011. package/serialization/types/WorkspaceResourceType.js +1 -1
  1012. package/serialization/types/WorkspaceWebhookListResponseModel.d.ts +13 -0
  1013. package/serialization/types/WorkspaceWebhookListResponseModel.js +44 -0
  1014. package/serialization/types/WorkspaceWebhookResponseModel.d.ts +23 -0
  1015. package/{dist/serialization/types/NativeMcpToolConfigOutput.js → serialization/types/WorkspaceWebhookResponseModel.js} +13 -11
  1016. package/serialization/types/WorkspaceWebhookUsageResponseModel.d.ts +13 -0
  1017. package/serialization/types/WorkspaceWebhookUsageResponseModel.js +44 -0
  1018. package/serialization/types/index.d.ts +29 -5
  1019. package/serialization/types/index.js +29 -5
  1020. package/version.d.ts +1 -1
  1021. package/version.js +1 -1
  1022. package/wrapper/ElevenLabsClient.d.ts +4 -3
  1023. package/wrapper/ElevenLabsClient.js +6 -1
  1024. package/wrapper/webhooks.d.ts +4 -3
  1025. package/wrapper/webhooks.js +68 -46
  1026. package/.mock/asyncapi.yml +0 -856
  1027. package/.mock/definition/__package__.yml +0 -8340
  1028. package/.mock/definition/api.yml +0 -24
  1029. package/.mock/definition/audioIsolation.yml +0 -83
  1030. package/.mock/definition/audioNative.yml +0 -198
  1031. package/.mock/definition/conversationalAi/agents/knowledgeBase.yml +0 -32
  1032. package/.mock/definition/conversationalAi/agents/link.yml +0 -40
  1033. package/.mock/definition/conversationalAi/agents/llmUsage.yml +0 -51
  1034. package/.mock/definition/conversationalAi/agents/widget/avatar.yml +0 -44
  1035. package/.mock/definition/conversationalAi/agents/widget.yml +0 -107
  1036. package/.mock/definition/conversationalAi/agents.yml +0 -671
  1037. package/.mock/definition/conversationalAi/batchCalls.yml +0 -222
  1038. package/.mock/definition/conversationalAi/conversations/audio.yml +0 -28
  1039. package/.mock/definition/conversationalAi/conversations/feedback.yml +0 -47
  1040. package/.mock/definition/conversationalAi/conversations.yml +0 -165
  1041. package/.mock/definition/conversationalAi/dashboard/settings.yml +0 -73
  1042. package/.mock/definition/conversationalAi/knowledgeBase/document.yml +0 -52
  1043. package/.mock/definition/conversationalAi/knowledgeBase/documents/chunk.yml +0 -42
  1044. package/.mock/definition/conversationalAi/knowledgeBase/documents.yml +0 -355
  1045. package/.mock/definition/conversationalAi/knowledgeBase.yml +0 -88
  1046. package/.mock/definition/conversationalAi/llmUsage.yml +0 -52
  1047. package/.mock/definition/conversationalAi/phoneNumbers.yml +0 -206
  1048. package/.mock/definition/conversationalAi/secrets.yml +0 -100
  1049. package/.mock/definition/conversationalAi/settings.yml +0 -81
  1050. package/.mock/definition/conversationalAi/sipTrunk.yml +0 -45
  1051. package/.mock/definition/conversationalAi/twilio.yml +0 -45
  1052. package/.mock/definition/conversationalAi.yml +0 -192
  1053. package/.mock/definition/dubbing/audio.yml +0 -35
  1054. package/.mock/definition/dubbing/resource/language.yml +0 -43
  1055. package/.mock/definition/dubbing/resource/segment.yml +0 -83
  1056. package/.mock/definition/dubbing/resource/speaker/segment.yml +0 -54
  1057. package/.mock/definition/dubbing/resource/speaker.yml +0 -91
  1058. package/.mock/definition/dubbing/resource.yml +0 -271
  1059. package/.mock/definition/dubbing/transcript.yml +0 -48
  1060. package/.mock/definition/dubbing.yml +0 -170
  1061. package/.mock/definition/forcedAlignment.yml +0 -60
  1062. package/.mock/definition/history.yml +0 -270
  1063. package/.mock/definition/models.yml +0 -49
  1064. package/.mock/definition/pronunciationDictionaries/rules.yml +0 -99
  1065. package/.mock/definition/pronunciationDictionaries.yml +0 -262
  1066. package/.mock/definition/samples.yml +0 -46
  1067. package/.mock/definition/speechToSpeech.yml +0 -324
  1068. package/.mock/definition/speechToText.yml +0 -189
  1069. package/.mock/definition/studio/projects/chapters/snapshots.yml +0 -141
  1070. package/.mock/definition/studio/projects/chapters.yml +0 -289
  1071. package/.mock/definition/studio/projects/content.yml +0 -94
  1072. package/.mock/definition/studio/projects/pronunciationDictionaries.yml +0 -70
  1073. package/.mock/definition/studio/projects/snapshots.yml +0 -140
  1074. package/.mock/definition/studio/projects.yml +0 -579
  1075. package/.mock/definition/studio.yml +0 -216
  1076. package/.mock/definition/textToDialogue.yml +0 -213
  1077. package/.mock/definition/textToSoundEffects.yml +0 -92
  1078. package/.mock/definition/textToSpeech.yml +0 -959
  1079. package/.mock/definition/textToVoice.yml +0 -355
  1080. package/.mock/definition/usage.yml +0 -73
  1081. package/.mock/definition/user/subscription.yml +0 -50
  1082. package/.mock/definition/user.yml +0 -86
  1083. package/.mock/definition/v1TextToSpeechVoiceIdMultiStreamInput.yml +0 -252
  1084. package/.mock/definition/v1TextToSpeechVoiceIdStreamInput.yml +0 -207
  1085. package/.mock/definition/voices/ivc.yml +0 -57
  1086. package/.mock/definition/voices/pvc/samples/audio.yml +0 -44
  1087. package/.mock/definition/voices/pvc/samples/speakers/audio.yml +0 -48
  1088. package/.mock/definition/voices/pvc/samples/speakers.yml +0 -81
  1089. package/.mock/definition/voices/pvc/samples/waveform.yml +0 -44
  1090. package/.mock/definition/voices/pvc/samples.yml +0 -159
  1091. package/.mock/definition/voices/pvc/verification/captcha.yml +0 -62
  1092. package/.mock/definition/voices/pvc/verification.yml +0 -47
  1093. package/.mock/definition/voices/pvc.yml +0 -137
  1094. package/.mock/definition/voices/samples/audio.yml +0 -35
  1095. package/.mock/definition/voices/settings.yml +0 -105
  1096. package/.mock/definition/voices.yml +0 -907
  1097. package/.mock/definition/workspace/groups/members.yml +0 -80
  1098. package/.mock/definition/workspace/groups.yml +0 -40
  1099. package/.mock/definition/workspace/invites.yml +0 -141
  1100. package/.mock/definition/workspace/members.yml +0 -83
  1101. package/.mock/definition/workspace/resources.yml +0 -184
  1102. package/.mock/fern.config.json +0 -4
  1103. package/.mock/openapi.json +0 -39184
  1104. package/api/types/GetSharedSoundGenerationsResponseModel.d.ts +0 -9
  1105. package/api/types/McpApprovalRequiredModel.d.ts +0 -12
  1106. package/api/types/McpApprovalRequiredModel.js +0 -11
  1107. package/api/types/NativeMcpToolConfigInput.d.ts +0 -22
  1108. package/api/types/NativeMcpToolConfigOutput.d.ts +0 -22
  1109. package/api/types/SharedSoundGenerationResponseModel.d.ts +0 -17
  1110. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  1111. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  1112. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  1113. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  1114. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  1115. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  1116. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  1117. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  1118. package/dist/api/types/GetSharedSoundGenerationsResponseModel.d.ts +0 -9
  1119. package/dist/api/types/McpApprovalRequiredModel.d.ts +0 -12
  1120. package/dist/api/types/McpApprovalRequiredModel.js +0 -11
  1121. package/dist/api/types/NativeMcpToolConfigInput.d.ts +0 -22
  1122. package/dist/api/types/NativeMcpToolConfigOutput.d.ts +0 -22
  1123. package/dist/api/types/SharedSoundGenerationResponseModel.d.ts +0 -17
  1124. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  1125. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  1126. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  1127. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  1128. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  1129. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  1130. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  1131. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  1132. package/dist/serialization/types/GetSharedSoundGenerationsResponseModel.d.ts +0 -15
  1133. package/dist/serialization/types/McpApprovalRequiredModel.d.ts +0 -10
  1134. package/dist/serialization/types/NativeMcpToolConfigInput.d.ts +0 -20
  1135. package/dist/serialization/types/NativeMcpToolConfigOutput.d.ts +0 -20
  1136. package/dist/serialization/types/SharedSoundGenerationResponseModel.d.ts +0 -23
  1137. package/dist/serialization/types/SharedSoundGenerationResponseModel.js +0 -54
  1138. package/serialization/types/GetSharedSoundGenerationsResponseModel.d.ts +0 -15
  1139. package/serialization/types/McpApprovalRequiredModel.d.ts +0 -10
  1140. package/serialization/types/NativeMcpToolConfigInput.d.ts +0 -20
  1141. package/serialization/types/NativeMcpToolConfigOutput.d.ts +0 -20
  1142. package/serialization/types/SharedSoundGenerationResponseModel.d.ts +0 -23
  1143. package/serialization/types/SharedSoundGenerationResponseModel.js +0 -54
  1144. /package/api/{types/GetSharedSoundGenerationsResponseModel.js → resources/conversationalAi/resources/mcpServers/client/requests/McpServerRequestModel.js} +0 -0
  1145. /package/api/{types/NativeMcpToolConfigInput.js → resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/requests/McpApprovalPolicyUpdateRequestModel.js} +0 -0
  1146. /package/api/{types/NativeMcpToolConfigOutput.js → resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/requests/McpToolAddApprovalRequestModel.js} +0 -0
  1147. /package/api/{types/SharedSoundGenerationResponseModel.js → resources/webhooks/client/requests/WebhooksListRequest.js} +0 -0
  1148. /package/{dist/api/types/GetSharedSoundGenerationsResponseModel.js → api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js} +0 -0
  1149. /package/{dist/api/types/NativeMcpToolConfigInput.js → api/types/BuiltInTools.js} +0 -0
  1150. /package/{dist/api/types/NativeMcpToolConfigOutput.js → api/types/ConvAiUserSecretDbModel.js} +0 -0
  1151. /package/{dist/api/types/SharedSoundGenerationResponseModel.js → api/types/ConversationSimulationSpecificationDynamicVariablesValue.js} +0 -0
  1152. /package/core/{streaming-fetcher → stream}/Stream.js +0 -0
  1153. /package/core/{streaming-fetcher → stream}/index.d.ts +0 -0
  1154. /package/core/{streaming-fetcher → stream}/index.js +0 -0
  1155. /package/dist/core/{streaming-fetcher → stream}/Stream.js +0 -0
  1156. /package/dist/core/{streaming-fetcher → stream}/index.d.ts +0 -0
  1157. /package/dist/core/{streaming-fetcher → stream}/index.js +0 -0
@@ -52,6 +52,7 @@ exports.Settings = void 0;
52
52
  const environments = __importStar(require("../../../../../../environments"));
53
53
  const core = __importStar(require("../../../../../../core"));
54
54
  const ElevenLabs = __importStar(require("../../../../../index"));
55
+ const headers_js_1 = require("../../../../../../core/headers.js");
55
56
  const url_join_1 = __importDefault(require("url-join"));
56
57
  const serializers = __importStar(require("../../../../../../serialization/index"));
57
58
  const errors = __importStar(require("../../../../../../errors/index"));
@@ -72,15 +73,11 @@ class Settings {
72
73
  }
73
74
  __getDefault(requestOptions) {
74
75
  return __awaiter(this, void 0, void 0, function* () {
75
- var _a, _b;
76
+ var _a, _b, _c;
76
77
  const _response = yield core.fetcher({
77
78
  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/voices/settings/default"),
78
79
  method: "GET",
79
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
80
- ? yield core.Supplier.get(this._options.apiKey)
81
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
- contentType: "application/json",
83
- requestType: "json",
80
+ 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
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
85
82
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
86
83
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -136,15 +133,11 @@ class Settings {
136
133
  }
137
134
  __get(voiceId, requestOptions) {
138
135
  return __awaiter(this, void 0, void 0, function* () {
139
- var _a, _b;
136
+ var _a, _b, _c;
140
137
  const _response = yield core.fetcher({
141
138
  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/voices/${encodeURIComponent(voiceId)}/settings`),
142
139
  method: "GET",
143
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
144
- ? yield core.Supplier.get(this._options.apiKey)
145
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
- contentType: "application/json",
147
- requestType: "json",
140
+ 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),
148
141
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
149
142
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
150
143
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -217,13 +210,11 @@ class Settings {
217
210
  }
218
211
  __update(voiceId, request, requestOptions) {
219
212
  return __awaiter(this, void 0, void 0, function* () {
220
- var _a, _b;
213
+ var _a, _b, _c;
221
214
  const _response = yield core.fetcher({
222
215
  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/voices/${encodeURIComponent(voiceId)}/settings/edit`),
223
216
  method: "POST",
224
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
225
- ? yield core.Supplier.get(this._options.apiKey)
226
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
217
+ 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),
227
218
  contentType: "application/json",
228
219
  requestType: "json",
229
220
  body: serializers.VoiceSettings.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -0,0 +1,48 @@
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 Webhooks {
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 Webhooks {
31
+ protected readonly _options: Webhooks.Options;
32
+ constructor(_options?: Webhooks.Options);
33
+ /**
34
+ * List all webhooks for a workspace
35
+ *
36
+ * @param {ElevenLabs.WebhooksListRequest} request
37
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.webhooks.list({
43
+ * includeUsages: false
44
+ * })
45
+ */
46
+ list(request?: ElevenLabs.WebhooksListRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceWebhookListResponseModel>;
47
+ private __list;
48
+ }
@@ -0,0 +1,142 @@
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.Webhooks = 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 Webhooks {
60
+ constructor(_options = {}) {
61
+ this._options = _options;
62
+ }
63
+ /**
64
+ * List all webhooks for a workspace
65
+ *
66
+ * @param {ElevenLabs.WebhooksListRequest} request
67
+ * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
70
+ *
71
+ * @example
72
+ * await client.webhooks.list({
73
+ * includeUsages: false
74
+ * })
75
+ */
76
+ list(request = {}, requestOptions) {
77
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
78
+ }
79
+ __list() {
80
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
81
+ var _a, _b, _c;
82
+ const { includeUsages } = request;
83
+ const _queryParams = {};
84
+ if (includeUsages != null) {
85
+ _queryParams["include_usages"] = includeUsages.toString();
86
+ }
87
+ const _response = yield core.fetcher({
88
+ 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/workspace/webhooks"),
89
+ method: "GET",
90
+ 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),
91
+ queryParameters: _queryParams,
92
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
93
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
94
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
95
+ });
96
+ if (_response.ok) {
97
+ return {
98
+ data: serializers.WorkspaceWebhookListResponseModel.parseOrThrow(_response.body, {
99
+ unrecognizedObjectKeys: "passthrough",
100
+ allowUnrecognizedUnionMembers: true,
101
+ allowUnrecognizedEnumValues: true,
102
+ breadcrumbsPrefix: ["response"],
103
+ }),
104
+ rawResponse: _response.rawResponse,
105
+ };
106
+ }
107
+ if (_response.error.reason === "status-code") {
108
+ switch (_response.error.statusCode) {
109
+ case 422:
110
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
111
+ unrecognizedObjectKeys: "passthrough",
112
+ allowUnrecognizedUnionMembers: true,
113
+ allowUnrecognizedEnumValues: true,
114
+ breadcrumbsPrefix: ["response"],
115
+ }), _response.rawResponse);
116
+ default:
117
+ throw new errors.ElevenLabsError({
118
+ statusCode: _response.error.statusCode,
119
+ body: _response.error.body,
120
+ rawResponse: _response.rawResponse,
121
+ });
122
+ }
123
+ }
124
+ switch (_response.error.reason) {
125
+ case "non-json":
126
+ throw new errors.ElevenLabsError({
127
+ statusCode: _response.error.statusCode,
128
+ body: _response.error.rawBody,
129
+ rawResponse: _response.rawResponse,
130
+ });
131
+ case "timeout":
132
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/workspace/webhooks.");
133
+ case "unknown":
134
+ throw new errors.ElevenLabsError({
135
+ message: _response.error.errorMessage,
136
+ rawResponse: _response.rawResponse,
137
+ });
138
+ }
139
+ });
140
+ }
141
+ }
142
+ exports.Webhooks = Webhooks;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests";
@@ -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,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * includeUsages: false
8
+ * }
9
+ */
10
+ export interface WebhooksListRequest {
11
+ /**
12
+ * Whether to include active usages of the webhook, only usable by admins
13
+ */
14
+ includeUsages?: boolean;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type WebhooksListRequest } from "./WebhooksListRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
+ import * as ElevenLabs from "../../../index";
6
7
  import { Groups } from "../resources/groups/client/Client";
7
8
  import { Invites } from "../resources/invites/client/Client";
8
9
  import { Members } from "../resources/members/client/Client";
@@ -14,6 +15,20 @@ export declare namespace Workspace {
14
15
  baseUrl?: core.Supplier<string>;
15
16
  /** Override the xi-api-key header */
16
17
  apiKey?: core.Supplier<string | undefined>;
18
+ /** Additional headers to include in requests. */
19
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
20
+ }
21
+ interface RequestOptions {
22
+ /** The maximum time to wait for a response in seconds. */
23
+ timeoutInSeconds?: number;
24
+ /** The number of times to retry the request. Defaults to 2. */
25
+ maxRetries?: number;
26
+ /** A hook to abort the request. */
27
+ abortSignal?: AbortSignal;
28
+ /** Override the xi-api-key header */
29
+ apiKey?: string | undefined;
30
+ /** Additional headers to include in the request. */
31
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
17
32
  }
18
33
  }
19
34
  export declare class Workspace {
@@ -27,4 +42,19 @@ export declare class Workspace {
27
42
  get invites(): Invites;
28
43
  get members(): Members;
29
44
  get resources(): Resources;
45
+ /**
46
+ * Update user auto provisioning settings for the workspace.
47
+ *
48
+ * @param {ElevenLabs.BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost} request
49
+ * @param {Workspace.RequestOptions} requestOptions - Request-specific configuration.
50
+ *
51
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
52
+ *
53
+ * @example
54
+ * await client.workspace.updateUserAutoProvisioning({
55
+ * enabled: true
56
+ * })
57
+ */
58
+ updateUserAutoProvisioning(request: ElevenLabs.BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost, requestOptions?: Workspace.RequestOptions): core.HttpResponsePromise<unknown>;
59
+ private __updateUserAutoProvisioning;
30
60
  }
@@ -2,8 +2,60 @@
2
2
  /**
3
3
  * This file was auto-generated by Fern from our API Definition.
4
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
+ };
5
50
  Object.defineProperty(exports, "__esModule", { value: true });
6
51
  exports.Workspace = 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"));
7
59
  const Client_1 = require("../resources/groups/client/Client");
8
60
  const Client_2 = require("../resources/invites/client/Client");
9
61
  const Client_3 = require("../resources/members/client/Client");
@@ -28,5 +80,74 @@ class Workspace {
28
80
  var _a;
29
81
  return ((_a = this._resources) !== null && _a !== void 0 ? _a : (this._resources = new Client_4.Resources(this._options)));
30
82
  }
83
+ /**
84
+ * Update user auto provisioning settings for the workspace.
85
+ *
86
+ * @param {ElevenLabs.BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost} request
87
+ * @param {Workspace.RequestOptions} requestOptions - Request-specific configuration.
88
+ *
89
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
90
+ *
91
+ * @example
92
+ * await client.workspace.updateUserAutoProvisioning({
93
+ * enabled: true
94
+ * })
95
+ */
96
+ updateUserAutoProvisioning(request, requestOptions) {
97
+ return core.HttpResponsePromise.fromPromise(this.__updateUserAutoProvisioning(request, requestOptions));
98
+ }
99
+ __updateUserAutoProvisioning(request, requestOptions) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ var _a, _b, _c;
102
+ const _response = yield core.fetcher({
103
+ 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/workspace/user-auto-provisioning"),
104
+ method: "POST",
105
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
+ contentType: "application/json",
107
+ requestType: "json",
108
+ body: serializers.BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.jsonOrThrow(request, {
109
+ unrecognizedObjectKeys: "strip",
110
+ }),
111
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
112
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
113
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
114
+ });
115
+ if (_response.ok) {
116
+ return { data: _response.body, rawResponse: _response.rawResponse };
117
+ }
118
+ if (_response.error.reason === "status-code") {
119
+ switch (_response.error.statusCode) {
120
+ case 422:
121
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
122
+ unrecognizedObjectKeys: "passthrough",
123
+ allowUnrecognizedUnionMembers: true,
124
+ allowUnrecognizedEnumValues: true,
125
+ breadcrumbsPrefix: ["response"],
126
+ }), _response.rawResponse);
127
+ default:
128
+ throw new errors.ElevenLabsError({
129
+ statusCode: _response.error.statusCode,
130
+ body: _response.error.body,
131
+ rawResponse: _response.rawResponse,
132
+ });
133
+ }
134
+ }
135
+ switch (_response.error.reason) {
136
+ case "non-json":
137
+ throw new errors.ElevenLabsError({
138
+ statusCode: _response.error.statusCode,
139
+ body: _response.error.rawBody,
140
+ rawResponse: _response.rawResponse,
141
+ });
142
+ case "timeout":
143
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/workspace/user-auto-provisioning.");
144
+ case "unknown":
145
+ throw new errors.ElevenLabsError({
146
+ message: _response.error.errorMessage,
147
+ rawResponse: _response.rawResponse,
148
+ });
149
+ }
150
+ });
151
+ }
31
152
  }
32
153
  exports.Workspace = Workspace;
@@ -1 +1,2 @@
1
1
  export {};
2
+ export * from "./requests";
@@ -1,2 +1,17 @@
1
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
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * enabled: true
8
+ * }
9
+ */
10
+ export interface BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost {
11
+ enabled: boolean;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost } from "./BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,6 +12,8 @@ export declare namespace Groups {
12
12
  baseUrl?: core.Supplier<string>;
13
13
  /** Override the xi-api-key header */
14
14
  apiKey?: core.Supplier<string | undefined>;
15
+ /** Additional headers to include in requests. */
16
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
17
  }
16
18
  interface RequestOptions {
17
19
  /** The maximum time to wait for a response in seconds. */
@@ -23,7 +25,7 @@ export declare namespace Groups {
23
25
  /** Override the xi-api-key header */
24
26
  apiKey?: string | undefined;
25
27
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string>;
28
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
27
29
  }
28
30
  }
29
31
  export declare class Groups {
@@ -52,6 +52,7 @@ exports.Groups = void 0;
52
52
  const environments = __importStar(require("../../../../../../environments"));
53
53
  const core = __importStar(require("../../../../../../core"));
54
54
  const ElevenLabs = __importStar(require("../../../../../index"));
55
+ const headers_js_1 = require("../../../../../../core/headers.js");
55
56
  const url_join_1 = __importDefault(require("url-join"));
56
57
  const serializers = __importStar(require("../../../../../../serialization/index"));
57
58
  const errors = __importStar(require("../../../../../../errors/index"));
@@ -82,19 +83,15 @@ class Groups {
82
83
  }
83
84
  __search(request, requestOptions) {
84
85
  return __awaiter(this, void 0, void 0, function* () {
85
- var _a, _b;
86
+ var _a, _b, _c;
86
87
  const { name } = request;
87
88
  const _queryParams = {};
88
89
  _queryParams["name"] = name;
89
90
  const _response = yield core.fetcher({
90
91
  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/workspace/groups/search"),
91
92
  method: "GET",
92
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
93
- ? yield core.Supplier.get(this._options.apiKey)
94
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
- contentType: "application/json",
93
+ 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),
96
94
  queryParameters: _queryParams,
97
- requestType: "json",
98
95
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
99
96
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
100
97
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1 +1,2 @@
1
+ export {};
1
2
  export * from "./requests";
@@ -11,6 +11,8 @@ export declare namespace Members {
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 Members {
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 Members {