@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.PhoneNumbers = void 0;
52
52
  const environments = __importStar(require("../../../../../../environments"));
53
53
  const core = __importStar(require("../../../../../../core"));
54
54
  const ElevenLabs = __importStar(require("../../../../../index"));
55
+ const headers_js_1 = require("../../../../../../core/headers.js");
55
56
  const serializers = __importStar(require("../../../../../../serialization/index"));
56
57
  const url_join_1 = __importDefault(require("url-join"));
57
58
  const errors = __importStar(require("../../../../../../errors/index"));
@@ -81,13 +82,11 @@ class PhoneNumbers {
81
82
  }
82
83
  __create(request, requestOptions) {
83
84
  return __awaiter(this, void 0, void 0, function* () {
84
- var _a, _b;
85
+ var _a, _b, _c;
85
86
  const _response = yield core.fetcher({
86
87
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/convai/phone-numbers/create"),
87
88
  method: "POST",
88
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
89
- ? yield core.Supplier.get(this._options.apiKey)
90
- : 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),
89
+ 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
90
  contentType: "application/json",
92
91
  requestType: "json",
93
92
  body: serializers.conversationalAi.PhoneNumbersCreateRequestBody.jsonOrThrow(request, {
@@ -158,15 +157,11 @@ class PhoneNumbers {
158
157
  }
159
158
  __get(phoneNumberId, requestOptions) {
160
159
  return __awaiter(this, void 0, void 0, function* () {
161
- var _a, _b;
160
+ var _a, _b, _c;
162
161
  const _response = yield core.fetcher({
163
162
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/convai/phone-numbers/${encodeURIComponent(phoneNumberId)}`),
164
163
  method: "GET",
165
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
166
- ? yield core.Supplier.get(this._options.apiKey)
167
- : 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),
168
- contentType: "application/json",
169
- requestType: "json",
164
+ 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),
170
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
171
166
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
172
167
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -232,15 +227,11 @@ class PhoneNumbers {
232
227
  }
233
228
  __delete(phoneNumberId, requestOptions) {
234
229
  return __awaiter(this, void 0, void 0, function* () {
235
- var _a, _b;
230
+ var _a, _b, _c;
236
231
  const _response = yield core.fetcher({
237
232
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/convai/phone-numbers/${encodeURIComponent(phoneNumberId)}`),
238
233
  method: "DELETE",
239
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
240
- ? yield core.Supplier.get(this._options.apiKey)
241
- : 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),
242
- contentType: "application/json",
243
- requestType: "json",
234
+ 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),
244
235
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
245
236
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
246
237
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -299,13 +290,11 @@ class PhoneNumbers {
299
290
  }
300
291
  __update(phoneNumberId_1) {
301
292
  return __awaiter(this, arguments, void 0, function* (phoneNumberId, request = {}, requestOptions) {
302
- var _a, _b;
293
+ var _a, _b, _c;
303
294
  const _response = yield core.fetcher({
304
295
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/convai/phone-numbers/${encodeURIComponent(phoneNumberId)}`),
305
296
  method: "PATCH",
306
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
307
- ? yield core.Supplier.get(this._options.apiKey)
308
- : 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),
297
+ 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),
309
298
  contentType: "application/json",
310
299
  requestType: "json",
311
300
  body: serializers.conversationalAi.UpdatePhoneNumberRequest.jsonOrThrow(request, {
@@ -375,15 +364,11 @@ class PhoneNumbers {
375
364
  }
376
365
  __list(requestOptions) {
377
366
  return __awaiter(this, void 0, void 0, function* () {
378
- var _a, _b;
367
+ var _a, _b, _c;
379
368
  const _response = yield core.fetcher({
380
369
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/convai/phone-numbers/"),
381
370
  method: "GET",
382
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
383
- ? yield core.Supplier.get(this._options.apiKey)
384
- : 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),
385
- contentType: "application/json",
386
- requestType: "json",
371
+ 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),
387
372
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
388
373
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
389
374
  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 Secrets {
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 Secrets {
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 Secrets {
@@ -52,6 +52,7 @@ exports.Secrets = 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"));
@@ -74,15 +75,11 @@ class Secrets {
74
75
  }
75
76
  __list(requestOptions) {
76
77
  return __awaiter(this, void 0, void 0, function* () {
77
- var _a, _b;
78
+ var _a, _b, _c;
78
79
  const _response = yield core.fetcher({
79
80
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/convai/secrets"),
80
81
  method: "GET",
81
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
82
- ? yield core.Supplier.get(this._options.apiKey)
83
- : 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),
84
- contentType: "application/json",
85
- requestType: "json",
82
+ 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),
86
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
87
84
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
88
85
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -151,13 +148,11 @@ class Secrets {
151
148
  }
152
149
  __create(request, requestOptions) {
153
150
  return __awaiter(this, void 0, void 0, function* () {
154
- var _a, _b;
151
+ var _a, _b, _c;
155
152
  const _response = yield core.fetcher({
156
153
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/convai/secrets"),
157
154
  method: "POST",
158
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
159
- ? yield core.Supplier.get(this._options.apiKey)
160
- : 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),
155
+ 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),
161
156
  contentType: "application/json",
162
157
  requestType: "json",
163
158
  body: Object.assign(Object.assign({}, serializers.conversationalAi.PostWorkspaceSecretRequest.jsonOrThrow(request, {
@@ -228,15 +223,11 @@ class Secrets {
228
223
  }
229
224
  __delete(secretId, requestOptions) {
230
225
  return __awaiter(this, void 0, void 0, function* () {
231
- var _a, _b;
226
+ var _a, _b, _c;
232
227
  const _response = yield core.fetcher({
233
228
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/convai/secrets/${encodeURIComponent(secretId)}`),
234
229
  method: "DELETE",
235
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
236
- ? yield core.Supplier.get(this._options.apiKey)
237
- : 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),
238
- contentType: "application/json",
239
- requestType: "json",
230
+ 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),
240
231
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
241
232
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
242
233
  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 Settings {
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 Settings {
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 Settings {
@@ -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"));
@@ -74,15 +75,11 @@ class Settings {
74
75
  }
75
76
  __get(requestOptions) {
76
77
  return __awaiter(this, void 0, void 0, function* () {
77
- var _a, _b;
78
+ var _a, _b, _c;
78
79
  const _response = yield core.fetcher({
79
80
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/convai/settings"),
80
81
  method: "GET",
81
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
82
- ? yield core.Supplier.get(this._options.apiKey)
83
- : 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),
84
- contentType: "application/json",
85
- requestType: "json",
82
+ 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),
86
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
87
84
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
88
85
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -148,13 +145,11 @@ class Settings {
148
145
  }
149
146
  __update() {
150
147
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
151
- var _a, _b;
148
+ var _a, _b, _c;
152
149
  const _response = yield core.fetcher({
153
150
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/convai/settings"),
154
151
  method: "PATCH",
155
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
156
- ? yield core.Supplier.get(this._options.apiKey)
157
- : 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),
152
+ 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),
158
153
  contentType: "application/json",
159
154
  requestType: "json",
160
155
  body: serializers.conversationalAi.PatchConvAiSettingsRequest.jsonOrThrow(request, {
@@ -1 +1,2 @@
1
+ export {};
1
2
  export * from "./requests";
@@ -11,6 +11,8 @@ export declare namespace SipTrunk {
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 SipTrunk {
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 SipTrunk {
@@ -52,6 +52,7 @@ exports.SipTrunk = void 0;
52
52
  const environments = __importStar(require("../../../../../../environments"));
53
53
  const core = __importStar(require("../../../../../../core"));
54
54
  const ElevenLabs = __importStar(require("../../../../../index"));
55
+ const headers_js_1 = require("../../../../../../core/headers.js");
55
56
  const serializers = __importStar(require("../../../../../../serialization/index"));
56
57
  const url_join_1 = __importDefault(require("url-join"));
57
58
  const errors = __importStar(require("../../../../../../errors/index"));
@@ -79,13 +80,11 @@ class SipTrunk {
79
80
  }
80
81
  __outboundCall(request, requestOptions) {
81
82
  return __awaiter(this, void 0, void 0, function* () {
82
- var _a, _b;
83
+ var _a, _b, _c;
83
84
  const _response = yield core.fetcher({
84
85
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/convai/sip-trunk/outbound-call"),
85
86
  method: "POST",
86
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
87
- ? yield core.Supplier.get(this._options.apiKey)
88
- : 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),
87
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
88
  contentType: "application/json",
90
89
  requestType: "json",
91
90
  body: serializers.conversationalAi.BodyHandleAnOutboundCallViaSipTrunkV1ConvaiSipTrunkOutboundCallPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1 +1,2 @@
1
+ export {};
1
2
  export * from "./requests";
@@ -11,6 +11,8 @@ export declare namespace Twilio {
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 Twilio {
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 Twilio {
@@ -52,6 +52,7 @@ exports.Twilio = void 0;
52
52
  const environments = __importStar(require("../../../../../../environments"));
53
53
  const core = __importStar(require("../../../../../../core"));
54
54
  const ElevenLabs = __importStar(require("../../../../../index"));
55
+ const headers_js_1 = require("../../../../../../core/headers.js");
55
56
  const serializers = __importStar(require("../../../../../../serialization/index"));
56
57
  const url_join_1 = __importDefault(require("url-join"));
57
58
  const errors = __importStar(require("../../../../../../errors/index"));
@@ -79,13 +80,11 @@ class Twilio {
79
80
  }
80
81
  __outboundCall(request, requestOptions) {
81
82
  return __awaiter(this, void 0, void 0, function* () {
82
- var _a, _b;
83
+ var _a, _b, _c;
83
84
  const _response = yield core.fetcher({
84
85
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/convai/twilio/outbound-call"),
85
86
  method: "POST",
86
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
87
- ? yield core.Supplier.get(this._options.apiKey)
88
- : 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),
87
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
88
  contentType: "application/json",
90
89
  requestType: "json",
91
90
  body: serializers.conversationalAi.BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1 +1,2 @@
1
+ export {};
1
2
  export * from "./requests";
@@ -14,6 +14,8 @@ export declare namespace Dubbing {
14
14
  baseUrl?: core.Supplier<string>;
15
15
  /** Override the xi-api-key header */
16
16
  apiKey?: core.Supplier<string | undefined>;
17
+ /** Additional headers to include in requests. */
18
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
17
19
  }
18
20
  interface RequestOptions {
19
21
  /** The maximum time to wait for a response in seconds. */
@@ -25,7 +27,7 @@ export declare namespace Dubbing {
25
27
  /** Override the xi-api-key header */
26
28
  apiKey?: string | undefined;
27
29
  /** Additional headers to include in the request. */
28
- headers?: Record<string, string>;
30
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
29
31
  }
30
32
  }
31
33
  export declare class Dubbing {
@@ -52,6 +52,7 @@ exports.Dubbing = 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"));
@@ -90,7 +91,7 @@ class Dubbing {
90
91
  }
91
92
  __create(request, requestOptions) {
92
93
  return __awaiter(this, void 0, void 0, function* () {
93
- var _a, _b;
94
+ var _a, _b, _c;
94
95
  const _request = yield core.newFormData();
95
96
  if (request.file != null) {
96
97
  yield _request.appendFile("file", request.file);
@@ -150,9 +151,7 @@ class Dubbing {
150
151
  const _response = yield core.fetcher({
151
152
  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/dubbing"),
152
153
  method: "POST",
153
- headers: Object.assign(Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
154
- ? yield core.Supplier.get(this._options.apiKey)
155
- : 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 }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
154
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
155
  requestType: "file",
157
156
  duplex: _maybeEncodedRequest.duplex,
158
157
  body: _maybeEncodedRequest.body,
@@ -221,15 +220,11 @@ class Dubbing {
221
220
  }
222
221
  __get(dubbingId, requestOptions) {
223
222
  return __awaiter(this, void 0, void 0, function* () {
224
- var _a, _b;
223
+ var _a, _b, _c;
225
224
  const _response = yield core.fetcher({
226
225
  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/dubbing/${encodeURIComponent(dubbingId)}`),
227
226
  method: "GET",
228
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
229
- ? yield core.Supplier.get(this._options.apiKey)
230
- : 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),
231
- contentType: "application/json",
232
- requestType: "json",
227
+ 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),
233
228
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
234
229
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
235
230
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -295,15 +290,11 @@ class Dubbing {
295
290
  }
296
291
  __delete(dubbingId, requestOptions) {
297
292
  return __awaiter(this, void 0, void 0, function* () {
298
- var _a, _b;
293
+ var _a, _b, _c;
299
294
  const _response = yield core.fetcher({
300
295
  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/dubbing/${encodeURIComponent(dubbingId)}`),
301
296
  method: "DELETE",
302
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
303
- ? yield core.Supplier.get(this._options.apiKey)
304
- : 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),
305
- contentType: "application/json",
306
- requestType: "json",
297
+ 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),
307
298
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
308
299
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
309
300
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1 +1,2 @@
1
+ export {};
1
2
  export * from "./requests";
@@ -3,7 +3,6 @@
3
3
  */
4
4
  import * as environments from "../../../../../../environments";
5
5
  import * as core from "../../../../../../core";
6
- import * as stream from "stream";
7
6
  export declare namespace Audio {
8
7
  interface Options {
9
8
  environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
@@ -11,6 +10,8 @@ export declare namespace Audio {
11
10
  baseUrl?: core.Supplier<string>;
12
11
  /** Override the xi-api-key header */
13
12
  apiKey?: core.Supplier<string | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
14
15
  }
15
16
  interface RequestOptions {
16
17
  /** The maximum time to wait for a response in seconds. */
@@ -22,7 +23,7 @@ export declare namespace Audio {
22
23
  /** Override the xi-api-key header */
23
24
  apiKey?: string | undefined;
24
25
  /** Additional headers to include in the request. */
25
- headers?: Record<string, string>;
26
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
27
  }
27
28
  }
28
29
  export declare class Audio {
@@ -35,6 +36,6 @@ export declare class Audio {
35
36
  * @throws {@link ElevenLabs.UnprocessableEntityError}
36
37
  * @throws {@link ElevenLabs.TooEarlyError}
37
38
  */
38
- get(dubbingId: string, languageCode: string, requestOptions?: Audio.RequestOptions): core.HttpResponsePromise<stream.Readable>;
39
+ get(dubbingId: string, languageCode: string, requestOptions?: Audio.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
39
40
  private __get;
40
41
  }
@@ -52,6 +52,7 @@ exports.Audio = 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 errors = __importStar(require("../../../../../../errors/index"));
57
58
  const serializers = __importStar(require("../../../../../../serialization/index"));
@@ -71,15 +72,11 @@ class Audio {
71
72
  }
72
73
  __get(dubbingId, languageCode, requestOptions) {
73
74
  return __awaiter(this, void 0, void 0, function* () {
74
- var _a, _b;
75
+ var _a, _b, _c;
75
76
  const _response = yield core.fetcher({
76
77
  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/dubbing/${encodeURIComponent(dubbingId)}/audio/${encodeURIComponent(languageCode)}`),
77
78
  method: "GET",
78
- headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
79
- ? yield core.Supplier.get(this._options.apiKey)
80
- : 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),
81
- contentType: "application/json",
82
- requestType: "json",
79
+ 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),
83
80
  responseType: "streaming",
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,
@@ -14,6 +14,8 @@ export declare namespace Resource {
14
14
  baseUrl?: core.Supplier<string>;
15
15
  /** Override the xi-api-key header */
16
16
  apiKey?: core.Supplier<string | undefined>;
17
+ /** Additional headers to include in requests. */
18
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
17
19
  }
18
20
  interface RequestOptions {
19
21
  /** The maximum time to wait for a response in seconds. */
@@ -25,7 +27,7 @@ export declare namespace Resource {
25
27
  /** Override the xi-api-key header */
26
28
  apiKey?: string | undefined;
27
29
  /** Additional headers to include in the request. */
28
- headers?: Record<string, string>;
30
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
29
31
  }
30
32
  }
31
33
  export declare class Resource {