@elevenlabs/elevenlabs-js 2.6.0 → 2.7.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 (498) hide show
  1. package/Client.d.ts +1 -1
  2. package/Client.js +2 -2
  3. package/api/resources/audioIsolation/client/Client.d.ts +1 -1
  4. package/api/resources/audioIsolation/client/Client.js +2 -2
  5. package/api/resources/audioNative/client/Client.d.ts +1 -1
  6. package/api/resources/audioNative/client/Client.js +3 -3
  7. package/api/resources/conversationalAi/client/Client.d.ts +1 -1
  8. package/api/resources/conversationalAi/client/Client.js +5 -5
  9. package/api/resources/conversationalAi/conversation/Conversation.js +5 -2
  10. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +1 -1
  11. package/api/resources/conversationalAi/resources/agents/client/Client.js +8 -8
  12. package/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
  13. package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  14. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +1 -1
  15. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +1 -1
  16. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +1 -1
  17. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +1 -1
  18. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +1 -1
  19. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +1 -1
  20. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +1 -1
  21. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +1 -1
  22. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +1 -1
  23. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +1 -1
  24. package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +1 -1
  25. package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +5 -5
  26. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +1 -1
  27. package/api/resources/conversationalAi/resources/conversations/client/Client.js +4 -4
  28. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +1 -1
  29. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +1 -1
  30. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +1 -1
  31. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +1 -1
  32. package/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +1 -1
  33. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +1 -1
  34. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +2 -2
  35. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +1 -1
  36. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +1 -1
  37. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +1 -1
  38. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +1 -1
  39. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +1 -1
  40. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +8 -8
  41. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +1 -1
  42. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +1 -1
  43. package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +1 -1
  44. package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +1 -1
  45. package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +1 -1
  46. package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +3 -3
  47. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +1 -1
  48. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +1 -1
  49. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +1 -1
  50. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +2 -2
  51. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +1 -1
  52. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +1 -1
  53. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +1 -1
  54. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +5 -5
  55. package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +1 -1
  56. package/api/resources/conversationalAi/resources/secrets/client/Client.js +3 -3
  57. package/api/resources/conversationalAi/resources/settings/client/Client.d.ts +1 -1
  58. package/api/resources/conversationalAi/resources/settings/client/Client.js +2 -2
  59. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +1 -1
  60. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +1 -1
  61. package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
  62. package/api/resources/conversationalAi/resources/tools/client/Client.js +6 -6
  63. package/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +1 -1
  64. package/api/resources/conversationalAi/resources/twilio/client/Client.js +1 -1
  65. package/api/resources/dubbing/client/Client.d.ts +14 -1
  66. package/api/resources/dubbing/client/Client.js +91 -4
  67. package/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +26 -0
  68. package/api/resources/dubbing/client/requests/DubbingListRequest.js +5 -0
  69. package/api/resources/dubbing/client/requests/index.d.ts +1 -0
  70. package/api/resources/dubbing/index.d.ts +1 -0
  71. package/api/resources/dubbing/index.js +1 -0
  72. package/api/resources/dubbing/resources/audio/client/Client.d.ts +1 -1
  73. package/api/resources/dubbing/resources/audio/client/Client.js +1 -1
  74. package/api/resources/dubbing/resources/resource/client/Client.d.ts +1 -1
  75. package/api/resources/dubbing/resources/resource/client/Client.js +5 -5
  76. package/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +1 -1
  77. package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +1 -1
  78. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +1 -1
  79. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +2 -2
  80. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +1 -1
  81. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +2 -2
  82. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +1 -1
  83. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +1 -1
  84. package/api/resources/dubbing/resources/transcript/client/Client.d.ts +1 -1
  85. package/api/resources/dubbing/resources/transcript/client/Client.js +1 -1
  86. package/api/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +12 -0
  87. package/api/resources/dubbing/types/DubbingListRequestDubbingStatus.js +11 -0
  88. package/api/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +12 -0
  89. package/api/resources/dubbing/types/DubbingListRequestFilterByCreator.js +11 -0
  90. package/api/resources/dubbing/types/index.d.ts +2 -0
  91. package/api/resources/dubbing/types/index.js +18 -0
  92. package/api/resources/forcedAlignment/client/Client.d.ts +1 -1
  93. package/api/resources/forcedAlignment/client/Client.js +1 -1
  94. package/api/resources/history/client/Client.d.ts +1 -1
  95. package/api/resources/history/client/Client.js +5 -5
  96. package/api/resources/index.d.ts +2 -1
  97. package/api/resources/index.js +3 -2
  98. package/api/resources/models/client/Client.d.ts +1 -1
  99. package/api/resources/models/client/Client.js +1 -1
  100. package/api/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
  101. package/api/resources/pronunciationDictionaries/client/Client.js +5 -5
  102. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +1 -1
  103. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +2 -2
  104. package/api/resources/samples/client/Client.d.ts +1 -1
  105. package/api/resources/samples/client/Client.js +1 -1
  106. package/api/resources/speechToSpeech/client/Client.d.ts +1 -1
  107. package/api/resources/speechToSpeech/client/Client.js +2 -2
  108. package/api/resources/speechToText/client/Client.d.ts +1 -1
  109. package/api/resources/speechToText/client/Client.js +4 -1
  110. package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
  111. package/api/resources/studio/client/Client.d.ts +1 -1
  112. package/api/resources/studio/client/Client.js +1 -1
  113. package/api/resources/studio/resources/projects/client/Client.d.ts +1 -1
  114. package/api/resources/studio/resources/projects/client/Client.js +6 -6
  115. package/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +1 -1
  116. package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +6 -6
  117. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +1 -1
  118. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +3 -3
  119. package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -1
  120. package/api/resources/studio/resources/projects/resources/content/client/Client.js +1 -1
  121. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
  122. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +1 -1
  123. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +1 -1
  124. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +4 -4
  125. package/api/resources/textToDialogue/client/Client.d.ts +1 -1
  126. package/api/resources/textToDialogue/client/Client.js +2 -2
  127. package/api/resources/textToSoundEffects/client/Client.d.ts +1 -1
  128. package/api/resources/textToSoundEffects/client/Client.js +1 -1
  129. package/api/resources/textToSpeech/client/Client.d.ts +1 -1
  130. package/api/resources/textToSpeech/client/Client.js +4 -4
  131. package/api/resources/textToVoice/client/Client.d.ts +1 -1
  132. package/api/resources/textToVoice/client/Client.js +4 -4
  133. package/api/resources/textToVoice/resources/preview/client/Client.d.ts +1 -1
  134. package/api/resources/textToVoice/resources/preview/client/Client.js +1 -1
  135. package/api/resources/usage/client/Client.d.ts +1 -1
  136. package/api/resources/usage/client/Client.js +1 -1
  137. package/api/resources/user/client/Client.d.ts +1 -1
  138. package/api/resources/user/client/Client.js +1 -1
  139. package/api/resources/user/resources/subscription/client/Client.d.ts +1 -1
  140. package/api/resources/user/resources/subscription/client/Client.js +1 -1
  141. package/api/resources/voices/client/Client.d.ts +1 -1
  142. package/api/resources/voices/client/Client.js +8 -8
  143. package/api/resources/voices/resources/ivc/client/Client.d.ts +1 -1
  144. package/api/resources/voices/resources/ivc/client/Client.js +1 -1
  145. package/api/resources/voices/resources/pvc/client/Client.d.ts +1 -1
  146. package/api/resources/voices/resources/pvc/client/Client.js +3 -3
  147. package/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +1 -1
  148. package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +3 -3
  149. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +1 -1
  150. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +1 -1
  151. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +1 -1
  152. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +2 -2
  153. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +1 -1
  154. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +1 -1
  155. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +1 -1
  156. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +1 -1
  157. package/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +1 -1
  158. package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +1 -1
  159. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +1 -1
  160. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +2 -2
  161. package/api/resources/voices/resources/samples/client/Client.d.ts +1 -1
  162. package/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +1 -1
  163. package/api/resources/voices/resources/samples/resources/audio/client/Client.js +1 -1
  164. package/api/resources/voices/resources/settings/client/Client.d.ts +1 -1
  165. package/api/resources/voices/resources/settings/client/Client.js +3 -3
  166. package/api/resources/webhooks/client/Client.d.ts +1 -1
  167. package/api/resources/webhooks/client/Client.js +1 -1
  168. package/api/resources/workspace/client/Client.d.ts +1 -1
  169. package/api/resources/workspace/resources/groups/client/Client.d.ts +1 -1
  170. package/api/resources/workspace/resources/groups/client/Client.js +1 -1
  171. package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +1 -1
  172. package/api/resources/workspace/resources/groups/resources/members/client/Client.js +2 -2
  173. package/api/resources/workspace/resources/invites/client/Client.d.ts +1 -1
  174. package/api/resources/workspace/resources/invites/client/Client.js +3 -3
  175. package/api/resources/workspace/resources/members/client/Client.d.ts +1 -1
  176. package/api/resources/workspace/resources/members/client/Client.js +2 -2
  177. package/api/resources/workspace/resources/resources/client/Client.d.ts +1 -1
  178. package/api/resources/workspace/resources/resources/client/Client.js +3 -3
  179. package/api/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
  180. package/api/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
  181. package/api/types/AgentTestingSettings.d.ts +10 -0
  182. package/api/types/AgentTestingSettings.js +5 -0
  183. package/api/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
  184. package/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +4 -0
  185. package/api/types/CreateTwilioPhoneNumberRequest.d.ts +4 -0
  186. package/api/types/CustomLlm.d.ts +2 -0
  187. package/api/types/DubbingMetadataPageResponseModel.d.ts +9 -0
  188. package/api/types/DubbingMetadataPageResponseModel.js +5 -0
  189. package/api/types/DubbingMetadataResponse.d.ts +4 -0
  190. package/api/types/GetAgentResponseModel.d.ts +1 -0
  191. package/api/types/GetPhoneNumberSipTrunkResponseModel.d.ts +4 -0
  192. package/api/types/GetPhoneNumberTwilioResponseModel.d.ts +4 -0
  193. package/api/types/Llm.d.ts +1 -3
  194. package/api/types/Llm.js +0 -2
  195. package/api/types/PromptAgentApiModelInput.d.ts +2 -0
  196. package/api/types/PromptAgentApiModelOutput.d.ts +2 -0
  197. package/api/types/index.d.ts +2 -0
  198. package/api/types/index.js +2 -0
  199. package/dist/Client.d.ts +1 -1
  200. package/dist/Client.js +2 -2
  201. package/dist/api/resources/audioIsolation/client/Client.d.ts +1 -1
  202. package/dist/api/resources/audioIsolation/client/Client.js +2 -2
  203. package/dist/api/resources/audioNative/client/Client.d.ts +1 -1
  204. package/dist/api/resources/audioNative/client/Client.js +3 -3
  205. package/dist/api/resources/conversationalAi/client/Client.d.ts +1 -1
  206. package/dist/api/resources/conversationalAi/client/Client.js +5 -5
  207. package/dist/api/resources/conversationalAi/conversation/Conversation.js +5 -2
  208. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +1 -1
  209. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +8 -8
  210. package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
  211. package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  212. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +1 -1
  213. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +1 -1
  214. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +1 -1
  215. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +1 -1
  216. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +1 -1
  217. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +1 -1
  218. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +1 -1
  219. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +1 -1
  220. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +1 -1
  221. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +1 -1
  222. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +1 -1
  223. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +5 -5
  224. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +1 -1
  225. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +4 -4
  226. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +1 -1
  227. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +1 -1
  228. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +1 -1
  229. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +1 -1
  230. package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +1 -1
  231. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +1 -1
  232. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +2 -2
  233. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +1 -1
  234. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +1 -1
  235. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +1 -1
  236. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +1 -1
  237. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +1 -1
  238. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +8 -8
  239. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +1 -1
  240. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +1 -1
  241. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +1 -1
  242. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +1 -1
  243. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +1 -1
  244. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +3 -3
  245. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +1 -1
  246. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +1 -1
  247. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +1 -1
  248. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +2 -2
  249. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +1 -1
  250. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +1 -1
  251. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +1 -1
  252. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +5 -5
  253. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +1 -1
  254. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +3 -3
  255. package/dist/api/resources/conversationalAi/resources/settings/client/Client.d.ts +1 -1
  256. package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +2 -2
  257. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +1 -1
  258. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +1 -1
  259. package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
  260. package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +6 -6
  261. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +1 -1
  262. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +1 -1
  263. package/dist/api/resources/dubbing/client/Client.d.ts +14 -1
  264. package/dist/api/resources/dubbing/client/Client.js +91 -4
  265. package/dist/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +26 -0
  266. package/dist/api/resources/dubbing/client/requests/DubbingListRequest.js +5 -0
  267. package/dist/api/resources/dubbing/client/requests/index.d.ts +1 -0
  268. package/dist/api/resources/dubbing/index.d.ts +1 -0
  269. package/dist/api/resources/dubbing/index.js +1 -0
  270. package/dist/api/resources/dubbing/resources/audio/client/Client.d.ts +1 -1
  271. package/dist/api/resources/dubbing/resources/audio/client/Client.js +1 -1
  272. package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +1 -1
  273. package/dist/api/resources/dubbing/resources/resource/client/Client.js +5 -5
  274. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +1 -1
  275. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +1 -1
  276. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +1 -1
  277. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +2 -2
  278. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +1 -1
  279. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +2 -2
  280. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +1 -1
  281. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +1 -1
  282. package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +1 -1
  283. package/dist/api/resources/dubbing/resources/transcript/client/Client.js +1 -1
  284. package/dist/api/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +12 -0
  285. package/dist/api/resources/dubbing/types/DubbingListRequestDubbingStatus.js +11 -0
  286. package/dist/api/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +12 -0
  287. package/dist/api/resources/dubbing/types/DubbingListRequestFilterByCreator.js +11 -0
  288. package/dist/api/resources/dubbing/types/index.d.ts +2 -0
  289. package/dist/api/resources/dubbing/types/index.js +18 -0
  290. package/dist/api/resources/forcedAlignment/client/Client.d.ts +1 -1
  291. package/dist/api/resources/forcedAlignment/client/Client.js +1 -1
  292. package/dist/api/resources/history/client/Client.d.ts +1 -1
  293. package/dist/api/resources/history/client/Client.js +5 -5
  294. package/dist/api/resources/index.d.ts +2 -1
  295. package/dist/api/resources/index.js +3 -2
  296. package/dist/api/resources/models/client/Client.d.ts +1 -1
  297. package/dist/api/resources/models/client/Client.js +1 -1
  298. package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
  299. package/dist/api/resources/pronunciationDictionaries/client/Client.js +5 -5
  300. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +1 -1
  301. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +2 -2
  302. package/dist/api/resources/samples/client/Client.d.ts +1 -1
  303. package/dist/api/resources/samples/client/Client.js +1 -1
  304. package/dist/api/resources/speechToSpeech/client/Client.d.ts +1 -1
  305. package/dist/api/resources/speechToSpeech/client/Client.js +2 -2
  306. package/dist/api/resources/speechToText/client/Client.d.ts +1 -1
  307. package/dist/api/resources/speechToText/client/Client.js +4 -1
  308. package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
  309. package/dist/api/resources/studio/client/Client.d.ts +1 -1
  310. package/dist/api/resources/studio/client/Client.js +1 -1
  311. package/dist/api/resources/studio/resources/projects/client/Client.d.ts +1 -1
  312. package/dist/api/resources/studio/resources/projects/client/Client.js +6 -6
  313. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +1 -1
  314. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +6 -6
  315. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +1 -1
  316. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +3 -3
  317. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -1
  318. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +1 -1
  319. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
  320. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +1 -1
  321. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +1 -1
  322. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +4 -4
  323. package/dist/api/resources/textToDialogue/client/Client.d.ts +1 -1
  324. package/dist/api/resources/textToDialogue/client/Client.js +2 -2
  325. package/dist/api/resources/textToSoundEffects/client/Client.d.ts +1 -1
  326. package/dist/api/resources/textToSoundEffects/client/Client.js +1 -1
  327. package/dist/api/resources/textToSpeech/client/Client.d.ts +1 -1
  328. package/dist/api/resources/textToSpeech/client/Client.js +4 -4
  329. package/dist/api/resources/textToVoice/client/Client.d.ts +1 -1
  330. package/dist/api/resources/textToVoice/client/Client.js +4 -4
  331. package/dist/api/resources/textToVoice/resources/preview/client/Client.d.ts +1 -1
  332. package/dist/api/resources/textToVoice/resources/preview/client/Client.js +1 -1
  333. package/dist/api/resources/usage/client/Client.d.ts +1 -1
  334. package/dist/api/resources/usage/client/Client.js +1 -1
  335. package/dist/api/resources/user/client/Client.d.ts +1 -1
  336. package/dist/api/resources/user/client/Client.js +1 -1
  337. package/dist/api/resources/user/resources/subscription/client/Client.d.ts +1 -1
  338. package/dist/api/resources/user/resources/subscription/client/Client.js +1 -1
  339. package/dist/api/resources/voices/client/Client.d.ts +1 -1
  340. package/dist/api/resources/voices/client/Client.js +8 -8
  341. package/dist/api/resources/voices/resources/ivc/client/Client.d.ts +1 -1
  342. package/dist/api/resources/voices/resources/ivc/client/Client.js +1 -1
  343. package/dist/api/resources/voices/resources/pvc/client/Client.d.ts +1 -1
  344. package/dist/api/resources/voices/resources/pvc/client/Client.js +3 -3
  345. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +1 -1
  346. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +3 -3
  347. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +1 -1
  348. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +1 -1
  349. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +1 -1
  350. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +2 -2
  351. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +1 -1
  352. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +1 -1
  353. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +1 -1
  354. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +1 -1
  355. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +1 -1
  356. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +1 -1
  357. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +1 -1
  358. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +2 -2
  359. package/dist/api/resources/voices/resources/samples/client/Client.d.ts +1 -1
  360. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +1 -1
  361. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +1 -1
  362. package/dist/api/resources/voices/resources/settings/client/Client.d.ts +1 -1
  363. package/dist/api/resources/voices/resources/settings/client/Client.js +3 -3
  364. package/dist/api/resources/webhooks/client/Client.d.ts +1 -1
  365. package/dist/api/resources/webhooks/client/Client.js +1 -1
  366. package/dist/api/resources/workspace/client/Client.d.ts +1 -1
  367. package/dist/api/resources/workspace/resources/groups/client/Client.d.ts +1 -1
  368. package/dist/api/resources/workspace/resources/groups/client/Client.js +1 -1
  369. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +1 -1
  370. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +2 -2
  371. package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +1 -1
  372. package/dist/api/resources/workspace/resources/invites/client/Client.js +3 -3
  373. package/dist/api/resources/workspace/resources/members/client/Client.d.ts +1 -1
  374. package/dist/api/resources/workspace/resources/members/client/Client.js +2 -2
  375. package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +1 -1
  376. package/dist/api/resources/workspace/resources/resources/client/Client.js +3 -3
  377. package/dist/api/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
  378. package/dist/api/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
  379. package/dist/api/types/AgentTestingSettings.d.ts +10 -0
  380. package/dist/api/types/AgentTestingSettings.js +5 -0
  381. package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
  382. package/dist/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +4 -0
  383. package/dist/api/types/CreateTwilioPhoneNumberRequest.d.ts +4 -0
  384. package/dist/api/types/CustomLlm.d.ts +2 -0
  385. package/dist/api/types/DubbingMetadataPageResponseModel.d.ts +9 -0
  386. package/dist/api/types/DubbingMetadataPageResponseModel.js +5 -0
  387. package/dist/api/types/DubbingMetadataResponse.d.ts +4 -0
  388. package/dist/api/types/GetAgentResponseModel.d.ts +1 -0
  389. package/dist/api/types/GetPhoneNumberSipTrunkResponseModel.d.ts +4 -0
  390. package/dist/api/types/GetPhoneNumberTwilioResponseModel.d.ts +4 -0
  391. package/dist/api/types/Llm.d.ts +1 -3
  392. package/dist/api/types/Llm.js +0 -2
  393. package/dist/api/types/PromptAgentApiModelInput.d.ts +2 -0
  394. package/dist/api/types/PromptAgentApiModelOutput.d.ts +2 -0
  395. package/dist/api/types/index.d.ts +2 -0
  396. package/dist/api/types/index.js +2 -0
  397. package/dist/environments.d.ts +4 -20
  398. package/dist/environments.js +4 -16
  399. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
  400. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
  401. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  402. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
  403. package/dist/serialization/resources/dubbing/index.d.ts +1 -0
  404. package/dist/serialization/resources/dubbing/index.js +1 -0
  405. package/dist/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +10 -0
  406. package/dist/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.js +41 -0
  407. package/dist/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +10 -0
  408. package/dist/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.js +41 -0
  409. package/dist/serialization/resources/dubbing/types/index.d.ts +2 -0
  410. package/dist/serialization/resources/dubbing/types/index.js +18 -0
  411. package/dist/serialization/resources/index.d.ts +2 -1
  412. package/dist/serialization/resources/index.js +3 -2
  413. package/dist/serialization/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
  414. package/dist/serialization/types/AgentPlatformSettingsRequestModel.js +2 -0
  415. package/dist/serialization/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
  416. package/dist/serialization/types/AgentPlatformSettingsResponseModel.js +2 -0
  417. package/dist/serialization/types/AgentTestingSettings.d.ts +12 -0
  418. package/dist/serialization/types/AgentTestingSettings.js +43 -0
  419. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
  420. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +2 -0
  421. package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
  422. package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.js +2 -0
  423. package/dist/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
  424. package/dist/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
  425. package/dist/serialization/types/CustomLlm.d.ts +1 -0
  426. package/dist/serialization/types/CustomLlm.js +1 -0
  427. package/dist/serialization/types/DubbingMetadataPageResponseModel.d.ts +15 -0
  428. package/dist/serialization/types/DubbingMetadataPageResponseModel.js +46 -0
  429. package/dist/serialization/types/DubbingMetadataResponse.d.ts +2 -0
  430. package/dist/serialization/types/DubbingMetadataResponse.js +2 -0
  431. package/dist/serialization/types/GetAgentResponseModel.d.ts +1 -0
  432. package/dist/serialization/types/GetAgentResponseModel.js +1 -0
  433. package/dist/serialization/types/GetPhoneNumberSipTrunkResponseModel.d.ts +2 -0
  434. package/dist/serialization/types/GetPhoneNumberSipTrunkResponseModel.js +2 -0
  435. package/dist/serialization/types/GetPhoneNumberTwilioResponseModel.d.ts +2 -0
  436. package/dist/serialization/types/GetPhoneNumberTwilioResponseModel.js +2 -0
  437. package/dist/serialization/types/Llm.d.ts +1 -1
  438. package/dist/serialization/types/Llm.js +0 -2
  439. package/dist/serialization/types/PromptAgentApiModelInput.d.ts +1 -0
  440. package/dist/serialization/types/PromptAgentApiModelInput.js +1 -0
  441. package/dist/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
  442. package/dist/serialization/types/PromptAgentApiModelOutput.js +1 -0
  443. package/dist/serialization/types/index.d.ts +2 -0
  444. package/dist/serialization/types/index.js +2 -0
  445. package/dist/version.d.ts +1 -1
  446. package/dist/version.js +1 -1
  447. package/environments.d.ts +4 -20
  448. package/environments.js +4 -16
  449. package/package.json +1 -1
  450. package/reference.md +63 -0
  451. package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
  452. package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
  453. package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  454. package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
  455. package/serialization/resources/dubbing/index.d.ts +1 -0
  456. package/serialization/resources/dubbing/index.js +1 -0
  457. package/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +10 -0
  458. package/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.js +41 -0
  459. package/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +10 -0
  460. package/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.js +41 -0
  461. package/serialization/resources/dubbing/types/index.d.ts +2 -0
  462. package/serialization/resources/dubbing/types/index.js +18 -0
  463. package/serialization/resources/index.d.ts +2 -1
  464. package/serialization/resources/index.js +3 -2
  465. package/serialization/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
  466. package/serialization/types/AgentPlatformSettingsRequestModel.js +2 -0
  467. package/serialization/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
  468. package/serialization/types/AgentPlatformSettingsResponseModel.js +2 -0
  469. package/serialization/types/AgentTestingSettings.d.ts +12 -0
  470. package/serialization/types/AgentTestingSettings.js +43 -0
  471. package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
  472. package/serialization/types/ConversationHistoryMetadataCommonModel.js +2 -0
  473. package/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +2 -0
  474. package/serialization/types/CreateSipTrunkPhoneNumberRequest.js +2 -0
  475. package/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
  476. package/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
  477. package/serialization/types/CustomLlm.d.ts +1 -0
  478. package/serialization/types/CustomLlm.js +1 -0
  479. package/serialization/types/DubbingMetadataPageResponseModel.d.ts +15 -0
  480. package/serialization/types/DubbingMetadataPageResponseModel.js +46 -0
  481. package/serialization/types/DubbingMetadataResponse.d.ts +2 -0
  482. package/serialization/types/DubbingMetadataResponse.js +2 -0
  483. package/serialization/types/GetAgentResponseModel.d.ts +1 -0
  484. package/serialization/types/GetAgentResponseModel.js +1 -0
  485. package/serialization/types/GetPhoneNumberSipTrunkResponseModel.d.ts +2 -0
  486. package/serialization/types/GetPhoneNumberSipTrunkResponseModel.js +2 -0
  487. package/serialization/types/GetPhoneNumberTwilioResponseModel.d.ts +2 -0
  488. package/serialization/types/GetPhoneNumberTwilioResponseModel.js +2 -0
  489. package/serialization/types/Llm.d.ts +1 -1
  490. package/serialization/types/Llm.js +0 -2
  491. package/serialization/types/PromptAgentApiModelInput.d.ts +1 -0
  492. package/serialization/types/PromptAgentApiModelInput.js +1 -0
  493. package/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
  494. package/serialization/types/PromptAgentApiModelOutput.js +1 -0
  495. package/serialization/types/index.d.ts +2 -0
  496. package/serialization/types/index.js +2 -0
  497. package/version.d.ts +1 -1
  498. package/version.js +1 -1
@@ -73,7 +73,7 @@ class Settings {
73
73
  return __awaiter(this, void 0, void 0, function* () {
74
74
  var _a, _b, _c;
75
75
  const _response = yield core.fetcher({
76
- url: core.url.join((_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/dashboard"),
76
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/settings/dashboard"),
77
77
  method: "GET",
78
78
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -143,7 +143,7 @@ class Settings {
143
143
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
144
144
  var _a, _b, _c;
145
145
  const _response = yield core.fetcher({
146
- url: core.url.join((_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/dashboard"),
146
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/settings/dashboard"),
147
147
  method: "PATCH",
148
148
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
149
  contentType: "application/json",
@@ -8,7 +8,7 @@ import { Documents } from "../resources/documents/client/Client";
8
8
  import { Document } from "../resources/document/client/Client";
9
9
  export declare namespace KnowledgeBase {
10
10
  interface Options {
11
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
11
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
12
12
  /** Specify a custom URL to connect the client to. */
13
13
  baseUrl?: core.Supplier<string>;
14
14
  /** Override the xi-api-key header */
@@ -111,7 +111,7 @@ class KnowledgeBase {
111
111
  _queryParams["use_typesense"] = useTypesense.toString();
112
112
  }
113
113
  const _response = yield core.fetcher({
114
- url: core.url.join((_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/knowledge-base"),
114
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/knowledge-base"),
115
115
  method: "GET",
116
116
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  queryParameters: _queryParams,
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../../../index";
7
7
  export declare namespace Document {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Override the xi-api-key header */
@@ -77,7 +77,7 @@ class Document {
77
77
  return __awaiter(this, void 0, void 0, function* () {
78
78
  var _a, _b, _c;
79
79
  const _response = yield core.fetcher({
80
- url: core.url.join((_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/knowledge-base/${encodeURIComponent(documentationId)}/rag-index`),
80
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}/rag-index`),
81
81
  method: "POST",
82
82
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
83
  contentType: "application/json",
@@ -7,7 +7,7 @@ import * as ElevenLabs from "../../../../../../../index";
7
7
  import { Chunk } from "../resources/chunk/client/Client";
8
8
  export declare namespace Documents {
9
9
  interface Options {
10
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
10
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
11
11
  /** Specify a custom URL to connect the client to. */
12
12
  baseUrl?: core.Supplier<string>;
13
13
  /** Override the xi-api-key header */
@@ -81,7 +81,7 @@ class Documents {
81
81
  return __awaiter(this, void 0, void 0, function* () {
82
82
  var _a, _b, _c;
83
83
  const _response = yield core.fetcher({
84
- url: core.url.join((_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/knowledge-base/url"),
84
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/knowledge-base/url"),
85
85
  method: "POST",
86
86
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
@@ -162,7 +162,7 @@ class Documents {
162
162
  }
163
163
  const _maybeEncodedRequest = yield _request.getRequest();
164
164
  const _response = yield core.fetcher({
165
- url: core.url.join((_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/knowledge-base/file"),
165
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/knowledge-base/file"),
166
166
  method: "POST",
167
167
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_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),
168
168
  requestType: "file",
@@ -237,7 +237,7 @@ class Documents {
237
237
  return __awaiter(this, void 0, void 0, function* () {
238
238
  var _a, _b, _c;
239
239
  const _response = yield core.fetcher({
240
- url: core.url.join((_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/knowledge-base/text"),
240
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/knowledge-base/text"),
241
241
  method: "POST",
242
242
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
243
243
  contentType: "application/json",
@@ -316,7 +316,7 @@ class Documents {
316
316
  _queryParams["agent_id"] = agentId;
317
317
  }
318
318
  const _response = yield core.fetcher({
319
- url: core.url.join((_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/knowledge-base/${encodeURIComponent(documentationId)}`),
319
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}`),
320
320
  method: "GET",
321
321
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
322
322
  queryParameters: _queryParams,
@@ -393,7 +393,7 @@ class Documents {
393
393
  _queryParams["force"] = force.toString();
394
394
  }
395
395
  const _response = yield core.fetcher({
396
- url: core.url.join((_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/knowledge-base/${encodeURIComponent(documentationId)}`),
396
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}`),
397
397
  method: "DELETE",
398
398
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
399
399
  queryParameters: _queryParams,
@@ -459,7 +459,7 @@ class Documents {
459
459
  return __awaiter(this, void 0, void 0, function* () {
460
460
  var _a, _b, _c;
461
461
  const _response = yield core.fetcher({
462
- url: core.url.join((_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/knowledge-base/${encodeURIComponent(documentationId)}`),
462
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}`),
463
463
  method: "PATCH",
464
464
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
465
465
  contentType: "application/json",
@@ -541,7 +541,7 @@ class Documents {
541
541
  _queryParams["page_size"] = pageSize.toString();
542
542
  }
543
543
  const _response = yield core.fetcher({
544
- url: core.url.join((_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/knowledge-base/${encodeURIComponent(documentationId)}/dependent-agents`),
544
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}/dependent-agents`),
545
545
  method: "GET",
546
546
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
547
547
  queryParameters: _queryParams,
@@ -612,7 +612,7 @@ class Documents {
612
612
  return __awaiter(this, void 0, void 0, function* () {
613
613
  var _a, _b, _c;
614
614
  const _response = yield core.fetcher({
615
- url: core.url.join((_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/knowledge-base/${encodeURIComponent(documentationId)}/content`),
615
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}/content`),
616
616
  method: "GET",
617
617
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
618
618
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../../../../../index";
7
7
  export declare namespace Chunk {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Override the xi-api-key header */
@@ -75,7 +75,7 @@ class Chunk {
75
75
  return __awaiter(this, void 0, void 0, function* () {
76
76
  var _a, _b, _c;
77
77
  const _response = yield core.fetcher({
78
- url: core.url.join((_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/knowledge-base/${encodeURIComponent(documentationId)}/chunk/${encodeURIComponent(chunkId)}`),
78
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}/chunk/${encodeURIComponent(chunkId)}`),
79
79
  method: "GET",
80
80
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -6,7 +6,7 @@ import * as core from "../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../index";
7
7
  export declare namespace LlmUsage {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Override the xi-api-key header */
@@ -78,7 +78,7 @@ class LlmUsage {
78
78
  return __awaiter(this, void 0, void 0, function* () {
79
79
  var _a, _b, _c;
80
80
  const _response = yield core.fetcher({
81
- url: core.url.join((_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/llm-usage/calculate"),
81
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/llm-usage/calculate"),
82
82
  method: "POST",
83
83
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",
@@ -9,7 +9,7 @@ import { ApprovalPolicy } from "../resources/approvalPolicy/client/Client";
9
9
  import { ToolApprovals } from "../resources/toolApprovals/client/Client";
10
10
  export declare namespace McpServers {
11
11
  interface Options {
12
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
12
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
13
13
  /** Specify a custom URL to connect the client to. */
14
14
  baseUrl?: core.Supplier<string>;
15
15
  /** Override the xi-api-key header */
@@ -88,7 +88,7 @@ class McpServers {
88
88
  return __awaiter(this, void 0, void 0, function* () {
89
89
  var _a, _b, _c;
90
90
  const _response = yield core.fetcher({
91
- url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/convai/mcp-servers"),
91
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/mcp-servers"),
92
92
  method: "GET",
93
93
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -163,7 +163,7 @@ class McpServers {
163
163
  return __awaiter(this, void 0, void 0, function* () {
164
164
  var _a, _b, _c;
165
165
  const _response = yield core.fetcher({
166
- url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/convai/mcp-servers"),
166
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/mcp-servers"),
167
167
  method: "POST",
168
168
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
169
  contentType: "application/json",
@@ -238,7 +238,7 @@ class McpServers {
238
238
  return __awaiter(this, void 0, void 0, function* () {
239
239
  var _a, _b, _c;
240
240
  const _response = yield core.fetcher({
241
- url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}`),
241
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}`),
242
242
  method: "GET",
243
243
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
244
244
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../../../index";
7
7
  export declare namespace ApprovalPolicy {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Override the xi-api-key header */
@@ -77,7 +77,7 @@ class ApprovalPolicy {
77
77
  return __awaiter(this, void 0, void 0, function* () {
78
78
  var _a, _b, _c;
79
79
  const _response = yield core.fetcher({
80
- url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/approval-policy`),
80
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/approval-policy`),
81
81
  method: "PATCH",
82
82
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
83
  contentType: "application/json",
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../../../index";
7
7
  export declare namespace ToolApprovals {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Override the xi-api-key header */
@@ -78,7 +78,7 @@ class ToolApprovals {
78
78
  return __awaiter(this, void 0, void 0, function* () {
79
79
  var _a, _b, _c;
80
80
  const _response = yield core.fetcher({
81
- url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-approvals`),
81
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-approvals`),
82
82
  method: "POST",
83
83
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",
@@ -154,7 +154,7 @@ class ToolApprovals {
154
154
  return __awaiter(this, void 0, void 0, function* () {
155
155
  var _a, _b, _c;
156
156
  const _response = yield core.fetcher({
157
- url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-approvals/${encodeURIComponent(toolName)}`),
157
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tool-approvals/${encodeURIComponent(toolName)}`),
158
158
  method: "DELETE",
159
159
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
160
160
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../../../index";
7
7
  export declare namespace Tools {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Override the xi-api-key header */
@@ -74,7 +74,7 @@ class Tools {
74
74
  return __awaiter(this, void 0, void 0, function* () {
75
75
  var _a, _b, _c;
76
76
  const _response = yield core.fetcher({
77
- url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tools`),
77
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/mcp-servers/${encodeURIComponent(mcpServerId)}/tools`),
78
78
  method: "GET",
79
79
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -6,7 +6,7 @@ import * as core from "../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../index";
7
7
  export declare namespace PhoneNumbers {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Override the xi-api-key header */
@@ -73,7 +73,7 @@ class PhoneNumbers {
73
73
  return __awaiter(this, void 0, void 0, function* () {
74
74
  var _a, _b, _c;
75
75
  const _response = yield core.fetcher({
76
- url: core.url.join((_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"),
76
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/phone-numbers"),
77
77
  method: "GET",
78
78
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -149,7 +149,7 @@ class PhoneNumbers {
149
149
  return __awaiter(this, void 0, void 0, function* () {
150
150
  var _a, _b, _c;
151
151
  const _response = yield core.fetcher({
152
- url: core.url.join((_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"),
152
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/phone-numbers"),
153
153
  method: "POST",
154
154
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
155
155
  contentType: "application/json",
@@ -224,7 +224,7 @@ class PhoneNumbers {
224
224
  return __awaiter(this, void 0, void 0, function* () {
225
225
  var _a, _b, _c;
226
226
  const _response = yield core.fetcher({
227
- url: core.url.join((_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)}`),
227
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/phone-numbers/${encodeURIComponent(phoneNumberId)}`),
228
228
  method: "GET",
229
229
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
230
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -294,7 +294,7 @@ class PhoneNumbers {
294
294
  return __awaiter(this, void 0, void 0, function* () {
295
295
  var _a, _b, _c;
296
296
  const _response = yield core.fetcher({
297
- url: core.url.join((_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)}`),
297
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/phone-numbers/${encodeURIComponent(phoneNumberId)}`),
298
298
  method: "DELETE",
299
299
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
300
300
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -357,7 +357,7 @@ class PhoneNumbers {
357
357
  return __awaiter(this, arguments, void 0, function* (phoneNumberId, request = {}, requestOptions) {
358
358
  var _a, _b, _c;
359
359
  const _response = yield core.fetcher({
360
- url: core.url.join((_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)}`),
360
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/phone-numbers/${encodeURIComponent(phoneNumberId)}`),
361
361
  method: "PATCH",
362
362
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
363
363
  contentType: "application/json",
@@ -6,7 +6,7 @@ import * as core from "../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../index";
7
7
  export declare namespace Secrets {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Override the xi-api-key header */
@@ -73,7 +73,7 @@ class Secrets {
73
73
  return __awaiter(this, void 0, void 0, function* () {
74
74
  var _a, _b, _c;
75
75
  const _response = yield core.fetcher({
76
- url: core.url.join((_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"),
76
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/secrets"),
77
77
  method: "GET",
78
78
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -146,7 +146,7 @@ class Secrets {
146
146
  return __awaiter(this, void 0, void 0, function* () {
147
147
  var _a, _b, _c;
148
148
  const _response = yield core.fetcher({
149
- url: core.url.join((_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"),
149
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/secrets"),
150
150
  method: "POST",
151
151
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
152
152
  contentType: "application/json",
@@ -221,7 +221,7 @@ class Secrets {
221
221
  return __awaiter(this, void 0, void 0, function* () {
222
222
  var _a, _b, _c;
223
223
  const _response = yield core.fetcher({
224
- url: core.url.join((_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)}`),
224
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/secrets/${encodeURIComponent(secretId)}`),
225
225
  method: "DELETE",
226
226
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
227
227
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -6,7 +6,7 @@ import * as core from "../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../index";
7
7
  export declare namespace Settings {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Override the xi-api-key header */
@@ -73,7 +73,7 @@ class Settings {
73
73
  return __awaiter(this, void 0, void 0, function* () {
74
74
  var _a, _b, _c;
75
75
  const _response = yield core.fetcher({
76
- url: core.url.join((_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"),
76
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/settings"),
77
77
  method: "GET",
78
78
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -143,7 +143,7 @@ class Settings {
143
143
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
144
144
  var _a, _b, _c;
145
145
  const _response = yield core.fetcher({
146
- url: core.url.join((_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"),
146
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/settings"),
147
147
  method: "PATCH",
148
148
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
149
  contentType: "application/json",
@@ -6,7 +6,7 @@ import * as core from "../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../index";
7
7
  export declare namespace SipTrunk {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Override the xi-api-key header */
@@ -78,7 +78,7 @@ class SipTrunk {
78
78
  return __awaiter(this, void 0, void 0, function* () {
79
79
  var _a, _b, _c;
80
80
  const _response = yield core.fetcher({
81
- url: core.url.join((_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"),
81
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/sip-trunk/outbound-call"),
82
82
  method: "POST",
83
83
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",
@@ -6,7 +6,7 @@ import * as core from "../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../index";
7
7
  export declare namespace Tools {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Override the xi-api-key header */
@@ -73,7 +73,7 @@ class Tools {
73
73
  return __awaiter(this, void 0, void 0, function* () {
74
74
  var _a, _b, _c;
75
75
  const _response = yield core.fetcher({
76
- url: core.url.join((_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/tools"),
76
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/tools"),
77
77
  method: "GET",
78
78
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -150,7 +150,7 @@ class Tools {
150
150
  return __awaiter(this, void 0, void 0, function* () {
151
151
  var _a, _b, _c;
152
152
  const _response = yield core.fetcher({
153
- url: core.url.join((_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/tools"),
153
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/tools"),
154
154
  method: "POST",
155
155
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
156
  contentType: "application/json",
@@ -223,7 +223,7 @@ class Tools {
223
223
  return __awaiter(this, void 0, void 0, function* () {
224
224
  var _a, _b, _c;
225
225
  const _response = yield core.fetcher({
226
- url: core.url.join((_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/tools/${encodeURIComponent(toolId)}`),
226
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/tools/${encodeURIComponent(toolId)}`),
227
227
  method: "GET",
228
228
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
229
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -293,7 +293,7 @@ class Tools {
293
293
  return __awaiter(this, void 0, void 0, function* () {
294
294
  var _a, _b, _c;
295
295
  const _response = yield core.fetcher({
296
- url: core.url.join((_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/tools/${encodeURIComponent(toolId)}`),
296
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/tools/${encodeURIComponent(toolId)}`),
297
297
  method: "DELETE",
298
298
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
299
299
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
@@ -363,7 +363,7 @@ class Tools {
363
363
  return __awaiter(this, void 0, void 0, function* () {
364
364
  var _a, _b, _c;
365
365
  const _response = yield core.fetcher({
366
- url: core.url.join((_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/tools/${encodeURIComponent(toolId)}`),
366
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/tools/${encodeURIComponent(toolId)}`),
367
367
  method: "PATCH",
368
368
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
369
369
  contentType: "application/json",
@@ -445,7 +445,7 @@ class Tools {
445
445
  _queryParams["page_size"] = pageSize.toString();
446
446
  }
447
447
  const _response = yield core.fetcher({
448
- url: core.url.join((_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/tools/${encodeURIComponent(toolId)}/dependent-agents`),
448
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/tools/${encodeURIComponent(toolId)}/dependent-agents`),
449
449
  method: "GET",
450
450
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
451
451
  queryParameters: _queryParams,
@@ -6,7 +6,7 @@ import * as core from "../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../index";
7
7
  export declare namespace Twilio {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
9
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Override the xi-api-key header */
@@ -78,7 +78,7 @@ class Twilio {
78
78
  return __awaiter(this, void 0, void 0, function* () {
79
79
  var _a, _b, _c;
80
80
  const _response = yield core.fetcher({
81
- url: core.url.join((_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"),
81
+ url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/convai/twilio/outbound-call"),
82
82
  method: "POST",
83
83
  headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",