@elevenlabs/elevenlabs-js 2.5.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 (870) hide show
  1. package/Client.d.ts +1 -1
  2. package/Client.js +4 -4
  3. package/api/resources/audioIsolation/client/Client.d.ts +1 -1
  4. package/api/resources/audioIsolation/client/Client.js +5 -9
  5. package/api/resources/audioNative/client/Client.d.ts +1 -1
  6. package/api/resources/audioNative/client/Client.js +7 -11
  7. package/api/resources/conversationalAi/client/Client.d.ts +1 -1
  8. package/api/resources/conversationalAi/client/Client.js +11 -15
  9. package/api/resources/conversationalAi/conversation/AudioInterface.d.ts +44 -0
  10. package/api/resources/conversationalAi/conversation/AudioInterface.js +12 -0
  11. package/api/resources/conversationalAi/conversation/ClientTools.d.ts +60 -0
  12. package/api/resources/conversationalAi/conversation/ClientTools.js +132 -0
  13. package/api/resources/conversationalAi/conversation/Conversation.d.ts +94 -0
  14. package/api/resources/conversationalAi/conversation/Conversation.js +283 -0
  15. package/api/resources/conversationalAi/conversation/ConversationConfig.d.ts +18 -0
  16. package/api/resources/conversationalAi/conversation/ConversationConfig.js +16 -0
  17. package/api/resources/conversationalAi/conversation/DefaultAudioInterface.d.ts +63 -0
  18. package/api/resources/conversationalAi/conversation/DefaultAudioInterface.js +126 -0
  19. package/api/resources/conversationalAi/conversation/__tests__/Conversation.test.d.ts +1 -0
  20. package/api/resources/conversationalAi/conversation/__tests__/Conversation.test.js +358 -0
  21. package/api/resources/conversationalAi/conversation/events.d.ts +84 -0
  22. package/api/resources/conversationalAi/conversation/events.js +19 -0
  23. package/api/resources/conversationalAi/conversation/index.d.ts +6 -0
  24. package/api/resources/conversationalAi/conversation/index.js +22 -0
  25. package/api/resources/conversationalAi/conversation/interfaces/ConversationClient.d.ts +11 -0
  26. package/api/resources/conversationalAi/conversation/interfaces/ConversationClient.js +2 -0
  27. package/api/resources/conversationalAi/conversation/interfaces/WebSocketInterface.d.ts +12 -0
  28. package/api/resources/conversationalAi/conversation/interfaces/WebSocketInterface.js +13 -0
  29. package/api/resources/conversationalAi/conversation/mocks/ConversationTestFactory.d.ts +15 -0
  30. package/api/resources/conversationalAi/conversation/mocks/ConversationTestFactory.js +28 -0
  31. package/api/resources/conversationalAi/conversation/mocks/MockConversation.d.ts +43 -0
  32. package/api/resources/conversationalAi/conversation/mocks/MockConversation.js +108 -0
  33. package/api/resources/conversationalAi/conversation/mocks/index.d.ts +2 -0
  34. package/api/resources/conversationalAi/conversation/mocks/index.js +18 -0
  35. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +5 -5
  36. package/api/resources/conversationalAi/resources/agents/client/Client.js +21 -25
  37. package/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
  38. package/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.d.ts +2 -2
  39. package/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.d.ts +2 -2
  40. package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  41. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +1 -1
  42. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -7
  43. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +1 -1
  44. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -7
  45. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +1 -1
  46. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -7
  47. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +1 -1
  48. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -7
  49. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +1 -1
  50. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -7
  51. package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +2 -2
  52. package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +12 -16
  53. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +1 -1
  54. package/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -13
  55. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +1 -1
  56. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -7
  57. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +1 -1
  58. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -7
  59. package/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +1 -1
  60. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +1 -1
  61. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -9
  62. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +1 -1
  63. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -7
  64. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +1 -1
  65. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +3 -7
  66. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +1 -1
  67. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +17 -21
  68. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +1 -1
  69. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +3 -7
  70. package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +1 -1
  71. package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -7
  72. package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +1 -1
  73. package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +7 -11
  74. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +1 -1
  75. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +3 -7
  76. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +1 -1
  77. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +5 -9
  78. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +1 -1
  79. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +3 -7
  80. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +13 -13
  81. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +79 -83
  82. package/api/resources/conversationalAi/resources/phoneNumbers/types/index.d.ts +1 -1
  83. package/api/resources/conversationalAi/resources/phoneNumbers/types/index.js +1 -1
  84. package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +1 -1
  85. package/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -11
  86. package/api/resources/conversationalAi/resources/settings/client/Client.d.ts +1 -1
  87. package/api/resources/conversationalAi/resources/settings/client/Client.js +5 -9
  88. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +1 -1
  89. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -7
  90. package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
  91. package/api/resources/conversationalAi/resources/tools/client/Client.js +13 -17
  92. package/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +1 -1
  93. package/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -7
  94. package/api/resources/dubbing/client/Client.d.ts +14 -1
  95. package/api/resources/dubbing/client/Client.js +94 -11
  96. package/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +26 -0
  97. package/api/resources/dubbing/client/requests/index.d.ts +1 -0
  98. package/api/resources/dubbing/index.d.ts +1 -0
  99. package/api/resources/dubbing/index.js +1 -0
  100. package/api/resources/dubbing/resources/audio/client/Client.d.ts +1 -1
  101. package/api/resources/dubbing/resources/audio/client/Client.js +3 -7
  102. package/api/resources/dubbing/resources/resource/client/Client.d.ts +1 -1
  103. package/api/resources/dubbing/resources/resource/client/Client.js +11 -15
  104. package/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +1 -1
  105. package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -7
  106. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +1 -1
  107. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -9
  108. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +1 -1
  109. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -9
  110. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +1 -1
  111. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -7
  112. package/api/resources/dubbing/resources/transcript/client/Client.d.ts +1 -1
  113. package/api/resources/dubbing/resources/transcript/client/Client.js +3 -7
  114. package/api/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +12 -0
  115. package/api/resources/dubbing/types/DubbingListRequestDubbingStatus.js +11 -0
  116. package/api/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +12 -0
  117. package/api/resources/dubbing/types/DubbingListRequestFilterByCreator.js +11 -0
  118. package/api/resources/dubbing/types/index.d.ts +2 -0
  119. package/api/resources/dubbing/types/index.js +18 -0
  120. package/api/resources/forcedAlignment/client/Client.d.ts +1 -1
  121. package/api/resources/forcedAlignment/client/Client.js +3 -7
  122. package/api/resources/history/client/Client.d.ts +1 -1
  123. package/api/resources/history/client/Client.js +11 -15
  124. package/api/resources/index.d.ts +2 -1
  125. package/api/resources/index.js +3 -2
  126. package/api/resources/models/client/Client.d.ts +1 -1
  127. package/api/resources/models/client/Client.js +3 -7
  128. package/api/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
  129. package/api/resources/pronunciationDictionaries/client/Client.js +11 -15
  130. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +1 -1
  131. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -9
  132. package/api/resources/samples/client/Client.d.ts +1 -1
  133. package/api/resources/samples/client/Client.js +3 -7
  134. package/api/resources/speechToSpeech/client/Client.d.ts +1 -1
  135. package/api/resources/speechToSpeech/client/Client.js +5 -9
  136. package/api/resources/speechToText/client/Client.d.ts +1 -1
  137. package/api/resources/speechToText/client/Client.js +9 -7
  138. package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -0
  139. package/api/resources/studio/client/Client.d.ts +1 -1
  140. package/api/resources/studio/client/Client.js +3 -7
  141. package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +6 -0
  142. package/api/resources/studio/resources/projects/client/Client.d.ts +1 -1
  143. package/api/resources/studio/resources/projects/client/Client.js +13 -17
  144. package/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +1 -1
  145. package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -17
  146. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +1 -1
  147. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -11
  148. package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -1
  149. package/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -7
  150. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
  151. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -7
  152. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +1 -1
  153. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -13
  154. package/api/resources/textToDialogue/client/Client.d.ts +1 -1
  155. package/api/resources/textToDialogue/client/Client.js +5 -9
  156. package/api/resources/textToSoundEffects/client/Client.d.ts +1 -1
  157. package/api/resources/textToSoundEffects/client/Client.js +3 -7
  158. package/api/resources/textToSpeech/client/Client.d.ts +1 -1
  159. package/api/resources/textToSpeech/client/Client.js +9 -13
  160. package/api/resources/textToVoice/client/Client.d.ts +4 -1
  161. package/api/resources/textToVoice/client/Client.js +14 -13
  162. package/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +2 -0
  163. package/api/resources/textToVoice/index.d.ts +1 -0
  164. package/api/resources/textToVoice/index.js +1 -0
  165. package/api/resources/textToVoice/resources/index.d.ts +1 -0
  166. package/api/resources/textToVoice/resources/index.js +37 -0
  167. package/api/resources/textToVoice/resources/preview/client/Client.d.ts +38 -0
  168. package/api/resources/textToVoice/resources/preview/client/Client.js +116 -0
  169. package/api/resources/textToVoice/resources/preview/client/index.d.ts +1 -0
  170. package/api/resources/textToVoice/resources/preview/client/index.js +2 -0
  171. package/api/resources/textToVoice/resources/preview/index.d.ts +1 -0
  172. package/api/resources/textToVoice/resources/preview/index.js +17 -0
  173. package/api/resources/usage/client/Client.d.ts +1 -1
  174. package/api/resources/usage/client/Client.js +3 -7
  175. package/api/resources/user/client/Client.d.ts +1 -1
  176. package/api/resources/user/client/Client.js +3 -7
  177. package/api/resources/user/resources/subscription/client/Client.d.ts +1 -1
  178. package/api/resources/user/resources/subscription/client/Client.js +3 -7
  179. package/api/resources/voices/client/Client.d.ts +1 -1
  180. package/api/resources/voices/client/Client.js +17 -21
  181. package/api/resources/voices/resources/ivc/client/Client.d.ts +1 -1
  182. package/api/resources/voices/resources/ivc/client/Client.js +3 -7
  183. package/api/resources/voices/resources/pvc/client/Client.d.ts +1 -1
  184. package/api/resources/voices/resources/pvc/client/Client.js +7 -11
  185. package/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +1 -1
  186. package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -11
  187. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +1 -1
  188. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +3 -7
  189. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +1 -1
  190. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -9
  191. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +1 -1
  192. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -7
  193. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +1 -1
  194. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -7
  195. package/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +1 -1
  196. package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -7
  197. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +1 -1
  198. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -9
  199. package/api/resources/voices/resources/samples/client/Client.d.ts +1 -1
  200. package/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +1 -1
  201. package/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -7
  202. package/api/resources/voices/resources/settings/client/Client.d.ts +1 -1
  203. package/api/resources/voices/resources/settings/client/Client.js +7 -11
  204. package/api/resources/webhooks/client/Client.d.ts +1 -1
  205. package/api/resources/webhooks/client/Client.js +3 -7
  206. package/api/resources/workspace/client/Client.d.ts +1 -1
  207. package/api/resources/workspace/resources/groups/client/Client.d.ts +1 -1
  208. package/api/resources/workspace/resources/groups/client/Client.js +3 -7
  209. package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +1 -1
  210. package/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -9
  211. package/api/resources/workspace/resources/invites/client/Client.d.ts +1 -1
  212. package/api/resources/workspace/resources/invites/client/Client.js +7 -11
  213. package/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +3 -1
  214. package/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js +2 -0
  215. package/api/resources/workspace/resources/members/client/Client.d.ts +1 -1
  216. package/api/resources/workspace/resources/members/client/Client.js +5 -9
  217. package/api/resources/workspace/resources/resources/client/Client.d.ts +1 -1
  218. package/api/resources/workspace/resources/resources/client/Client.js +7 -11
  219. package/api/types/AgentConfig.d.ts +1 -10
  220. package/api/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
  221. package/api/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
  222. package/api/types/AgentTestingSettings.d.ts +10 -0
  223. package/api/types/AgentTransfer.d.ts +3 -0
  224. package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +6 -0
  225. package/api/types/BreakdownTypes.d.ts +2 -1
  226. package/api/types/BreakdownTypes.js +1 -0
  227. package/api/types/ClientToolConfigInput.d.ts +1 -1
  228. package/api/types/ClientToolConfigOutput.d.ts +1 -1
  229. package/api/types/ConvAiWebhooks.d.ts +2 -0
  230. package/api/types/ConversationHistoryElevenAssistantCommonModel.d.ts +6 -0
  231. package/api/types/ConversationHistoryMetadataCommonModel.d.ts +5 -0
  232. package/api/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +4 -1
  233. package/api/types/ConversationHistoryTranscriptToolCallMcpDetails.d.ts +13 -0
  234. package/api/types/ConversationInitiationClientDataInternal.d.ts +2 -0
  235. package/api/types/ConversationInitiationClientDataRequestInput.d.ts +2 -0
  236. package/api/types/ConversationInitiationClientDataRequestOutput.d.ts +2 -0
  237. package/api/types/ConversationInitiationSource.d.ts +20 -0
  238. package/api/types/ConversationInitiationSource.js +19 -0
  239. package/api/types/ConversationSimulationSpecification.d.ts +1 -1
  240. package/api/types/ConversationalConfig.d.ts +1 -1
  241. package/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +6 -21
  242. package/api/types/CreateTwilioPhoneNumberRequest.d.ts +4 -0
  243. package/api/types/CustomLlm.d.ts +2 -0
  244. package/api/types/DubbingMetadataPageResponseModel.d.ts +9 -0
  245. package/api/types/DubbingMetadataResponse.d.ts +4 -0
  246. package/api/types/GetAgentResponseModel.d.ts +1 -0
  247. package/api/types/GetConversationResponseModel.d.ts +1 -0
  248. package/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +15 -0
  249. package/api/types/{SipTrunkConfigResponseModel.d.ts → GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts} +1 -1
  250. package/api/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.js +5 -0
  251. package/api/types/GetPhoneNumberSipTrunkResponseModel.d.ts +9 -1
  252. package/api/types/GetPhoneNumberTwilioResponseModel.d.ts +4 -0
  253. package/api/types/InboundSipTrunkConfigRequestModel.d.ts +14 -0
  254. package/api/types/InboundSipTrunkConfigRequestModel.js +5 -0
  255. package/api/types/Llm.d.ts +1 -3
  256. package/api/types/Llm.js +0 -2
  257. package/api/types/OutboundSipTrunkConfigRequestModel.d.ts +16 -0
  258. package/api/types/OutboundSipTrunkConfigRequestModel.js +5 -0
  259. package/api/types/PhoneNumberTransfer.d.ts +4 -1
  260. package/api/types/PhoneNumberTransferDestination.d.ts +6 -0
  261. package/api/types/PhoneNumberTransferDestination.js +5 -0
  262. package/api/types/PhoneNumberTransferTransferDestination.d.ts +13 -0
  263. package/api/types/PhoneNumberTransferTransferDestination.js +5 -0
  264. package/api/types/PromptAgentApiModelInput.d.ts +3 -1
  265. package/api/types/PromptAgentApiModelOutput.d.ts +3 -1
  266. package/api/types/PromptAgentDbModel.d.ts +0 -26
  267. package/{dist/api/types/SipTrunkCredentials.d.ts → api/types/SipTrunkCredentialsRequestModel.d.ts} +1 -1
  268. package/api/types/SipTrunkCredentialsRequestModel.js +5 -0
  269. package/api/types/SipUriTransferDestination.d.ts +6 -0
  270. package/api/types/SipUriTransferDestination.js +5 -0
  271. package/api/types/SubscriptionStatusType.d.ts +1 -3
  272. package/api/types/SubscriptionStatusType.js +0 -2
  273. package/api/types/SystemToolConfigInputParams.d.ts +1 -1
  274. package/api/types/SystemToolConfigOutputParams.d.ts +1 -1
  275. package/api/types/{TransferToNumberToolConfig.d.ts → TransferToNumberToolConfigInput.d.ts} +1 -1
  276. package/api/types/TransferToNumberToolConfigInput.js +5 -0
  277. package/api/types/TransferToNumberToolConfigOutput.d.ts +9 -0
  278. package/api/types/TransferToNumberToolConfigOutput.js +5 -0
  279. package/api/types/TransferTypeEnum.d.ts +8 -0
  280. package/api/types/TransferTypeEnum.js +10 -0
  281. package/api/types/WidgetTextContents.d.ts +8 -0
  282. package/api/types/WorkspaceResourceType.d.ts +2 -1
  283. package/api/types/WorkspaceResourceType.js +1 -0
  284. package/api/types/index.d.ts +17 -4
  285. package/api/types/index.js +17 -4
  286. package/core/fetcher/BinaryResponse.d.ts +7 -4
  287. package/core/fetcher/BinaryResponse.js +5 -2
  288. package/core/fetcher/Fetcher.js +3 -3
  289. package/core/fetcher/createRequestUrl.d.ts +1 -1
  290. package/core/fetcher/createRequestUrl.js +3 -7
  291. package/core/fetcher/getErrorResponseBody.d.ts +1 -0
  292. package/core/fetcher/getErrorResponseBody.js +44 -0
  293. package/core/fetcher/getResponseBody.js +2 -1
  294. package/core/form-data-utils/FormDataWrapper.js +4 -4
  295. package/core/form-data-utils/encodeAsFormParameter.d.ts +0 -3
  296. package/core/form-data-utils/encodeAsFormParameter.js +2 -8
  297. package/core/headers.d.ts +1 -1
  298. package/core/index.d.ts +1 -0
  299. package/core/index.js +2 -1
  300. package/core/url/index.d.ts +2 -0
  301. package/core/url/index.js +7 -0
  302. package/core/url/join.d.ts +1 -0
  303. package/core/url/join.js +49 -0
  304. package/core/url/qs.d.ts +6 -0
  305. package/core/url/qs.js +64 -0
  306. package/dist/Client.d.ts +1 -1
  307. package/dist/Client.js +4 -4
  308. package/dist/api/resources/audioIsolation/client/Client.d.ts +1 -1
  309. package/dist/api/resources/audioIsolation/client/Client.js +5 -9
  310. package/dist/api/resources/audioNative/client/Client.d.ts +1 -1
  311. package/dist/api/resources/audioNative/client/Client.js +7 -11
  312. package/dist/api/resources/conversationalAi/client/Client.d.ts +1 -1
  313. package/dist/api/resources/conversationalAi/client/Client.js +11 -15
  314. package/dist/api/resources/conversationalAi/conversation/AudioInterface.d.ts +44 -0
  315. package/dist/api/resources/conversationalAi/conversation/AudioInterface.js +12 -0
  316. package/dist/api/resources/conversationalAi/conversation/ClientTools.d.ts +60 -0
  317. package/dist/api/resources/conversationalAi/conversation/ClientTools.js +132 -0
  318. package/dist/api/resources/conversationalAi/conversation/Conversation.d.ts +94 -0
  319. package/dist/api/resources/conversationalAi/conversation/Conversation.js +283 -0
  320. package/dist/api/resources/conversationalAi/conversation/ConversationConfig.d.ts +18 -0
  321. package/dist/api/resources/conversationalAi/conversation/ConversationConfig.js +16 -0
  322. package/dist/api/resources/conversationalAi/conversation/DefaultAudioInterface.d.ts +63 -0
  323. package/dist/api/resources/conversationalAi/conversation/DefaultAudioInterface.js +126 -0
  324. package/dist/api/resources/conversationalAi/conversation/__tests__/Conversation.test.d.ts +1 -0
  325. package/dist/api/resources/conversationalAi/conversation/__tests__/Conversation.test.js +358 -0
  326. package/dist/api/resources/conversationalAi/conversation/events.d.ts +84 -0
  327. package/dist/api/resources/conversationalAi/conversation/events.js +19 -0
  328. package/dist/api/resources/conversationalAi/conversation/index.d.ts +6 -0
  329. package/dist/api/resources/conversationalAi/conversation/index.js +22 -0
  330. package/dist/api/resources/conversationalAi/conversation/interfaces/ConversationClient.d.ts +11 -0
  331. package/dist/api/resources/conversationalAi/conversation/interfaces/ConversationClient.js +2 -0
  332. package/dist/api/resources/conversationalAi/conversation/interfaces/WebSocketInterface.d.ts +12 -0
  333. package/dist/api/resources/conversationalAi/conversation/interfaces/WebSocketInterface.js +13 -0
  334. package/dist/api/resources/conversationalAi/conversation/mocks/ConversationTestFactory.d.ts +15 -0
  335. package/dist/api/resources/conversationalAi/conversation/mocks/ConversationTestFactory.js +28 -0
  336. package/dist/api/resources/conversationalAi/conversation/mocks/MockConversation.d.ts +43 -0
  337. package/dist/api/resources/conversationalAi/conversation/mocks/MockConversation.js +108 -0
  338. package/dist/api/resources/conversationalAi/conversation/mocks/index.d.ts +2 -0
  339. package/dist/api/resources/conversationalAi/conversation/mocks/index.js +18 -0
  340. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +5 -5
  341. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +21 -25
  342. package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
  343. package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.d.ts +2 -2
  344. package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.d.ts +2 -2
  345. package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  346. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +1 -1
  347. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +3 -7
  348. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +1 -1
  349. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +3 -7
  350. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +1 -1
  351. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +3 -7
  352. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +1 -1
  353. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +3 -7
  354. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +1 -1
  355. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +3 -7
  356. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +2 -2
  357. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +12 -16
  358. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +1 -1
  359. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +9 -13
  360. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +1 -1
  361. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +3 -7
  362. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +1 -1
  363. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +3 -7
  364. package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +1 -1
  365. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +1 -1
  366. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +5 -9
  367. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +1 -1
  368. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +3 -7
  369. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +1 -1
  370. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +3 -7
  371. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +1 -1
  372. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +17 -21
  373. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +1 -1
  374. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +3 -7
  375. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +1 -1
  376. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +3 -7
  377. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +1 -1
  378. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +7 -11
  379. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +1 -1
  380. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +3 -7
  381. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +1 -1
  382. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +5 -9
  383. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +1 -1
  384. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +3 -7
  385. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +13 -13
  386. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +79 -83
  387. package/dist/api/resources/conversationalAi/resources/phoneNumbers/types/index.d.ts +1 -1
  388. package/dist/api/resources/conversationalAi/resources/phoneNumbers/types/index.js +1 -1
  389. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +1 -1
  390. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +7 -11
  391. package/dist/api/resources/conversationalAi/resources/settings/client/Client.d.ts +1 -1
  392. package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +5 -9
  393. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +1 -1
  394. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +3 -7
  395. package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +1 -1
  396. package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +13 -17
  397. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +1 -1
  398. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +3 -7
  399. package/dist/api/resources/dubbing/client/Client.d.ts +14 -1
  400. package/dist/api/resources/dubbing/client/Client.js +94 -11
  401. package/dist/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +26 -0
  402. package/dist/api/resources/dubbing/client/requests/DubbingListRequest.js +5 -0
  403. package/dist/api/resources/dubbing/client/requests/index.d.ts +1 -0
  404. package/dist/api/resources/dubbing/index.d.ts +1 -0
  405. package/dist/api/resources/dubbing/index.js +1 -0
  406. package/dist/api/resources/dubbing/resources/audio/client/Client.d.ts +1 -1
  407. package/dist/api/resources/dubbing/resources/audio/client/Client.js +3 -7
  408. package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +1 -1
  409. package/dist/api/resources/dubbing/resources/resource/client/Client.js +11 -15
  410. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +1 -1
  411. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +3 -7
  412. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +1 -1
  413. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +5 -9
  414. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +1 -1
  415. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +5 -9
  416. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +1 -1
  417. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +3 -7
  418. package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +1 -1
  419. package/dist/api/resources/dubbing/resources/transcript/client/Client.js +3 -7
  420. package/dist/api/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +12 -0
  421. package/dist/api/resources/dubbing/types/DubbingListRequestDubbingStatus.js +11 -0
  422. package/dist/api/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +12 -0
  423. package/dist/api/resources/dubbing/types/DubbingListRequestFilterByCreator.js +11 -0
  424. package/dist/api/resources/dubbing/types/index.d.ts +2 -0
  425. package/dist/api/resources/dubbing/types/index.js +18 -0
  426. package/dist/api/resources/forcedAlignment/client/Client.d.ts +1 -1
  427. package/dist/api/resources/forcedAlignment/client/Client.js +3 -7
  428. package/dist/api/resources/history/client/Client.d.ts +1 -1
  429. package/dist/api/resources/history/client/Client.js +11 -15
  430. package/dist/api/resources/index.d.ts +2 -1
  431. package/dist/api/resources/index.js +3 -2
  432. package/dist/api/resources/models/client/Client.d.ts +1 -1
  433. package/dist/api/resources/models/client/Client.js +3 -7
  434. package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
  435. package/dist/api/resources/pronunciationDictionaries/client/Client.js +11 -15
  436. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +1 -1
  437. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +5 -9
  438. package/dist/api/resources/samples/client/Client.d.ts +1 -1
  439. package/dist/api/resources/samples/client/Client.js +3 -7
  440. package/dist/api/resources/speechToSpeech/client/Client.d.ts +1 -1
  441. package/dist/api/resources/speechToSpeech/client/Client.js +5 -9
  442. package/dist/api/resources/speechToText/client/Client.d.ts +1 -1
  443. package/dist/api/resources/speechToText/client/Client.js +9 -7
  444. package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -0
  445. package/dist/api/resources/studio/client/Client.d.ts +1 -1
  446. package/dist/api/resources/studio/client/Client.js +3 -7
  447. package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +6 -0
  448. package/dist/api/resources/studio/resources/projects/client/Client.d.ts +1 -1
  449. package/dist/api/resources/studio/resources/projects/client/Client.js +13 -17
  450. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +1 -1
  451. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +13 -17
  452. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +1 -1
  453. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +7 -11
  454. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +1 -1
  455. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -7
  456. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +1 -1
  457. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +3 -7
  458. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +1 -1
  459. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +9 -13
  460. package/dist/api/resources/textToDialogue/client/Client.d.ts +1 -1
  461. package/dist/api/resources/textToDialogue/client/Client.js +5 -9
  462. package/dist/api/resources/textToSoundEffects/client/Client.d.ts +1 -1
  463. package/dist/api/resources/textToSoundEffects/client/Client.js +3 -7
  464. package/dist/api/resources/textToSpeech/client/Client.d.ts +1 -1
  465. package/dist/api/resources/textToSpeech/client/Client.js +9 -13
  466. package/dist/api/resources/textToVoice/client/Client.d.ts +4 -1
  467. package/dist/api/resources/textToVoice/client/Client.js +14 -13
  468. package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +2 -0
  469. package/dist/api/resources/textToVoice/index.d.ts +1 -0
  470. package/dist/api/resources/textToVoice/index.js +1 -0
  471. package/dist/api/resources/textToVoice/resources/index.d.ts +1 -0
  472. package/dist/api/resources/textToVoice/resources/index.js +37 -0
  473. package/dist/api/resources/textToVoice/resources/preview/client/Client.d.ts +38 -0
  474. package/dist/api/resources/textToVoice/resources/preview/client/Client.js +116 -0
  475. package/dist/api/resources/textToVoice/resources/preview/client/index.d.ts +1 -0
  476. package/dist/api/resources/textToVoice/resources/preview/client/index.js +2 -0
  477. package/dist/api/resources/textToVoice/resources/preview/index.d.ts +1 -0
  478. package/dist/api/resources/textToVoice/resources/preview/index.js +17 -0
  479. package/dist/api/resources/usage/client/Client.d.ts +1 -1
  480. package/dist/api/resources/usage/client/Client.js +3 -7
  481. package/dist/api/resources/user/client/Client.d.ts +1 -1
  482. package/dist/api/resources/user/client/Client.js +3 -7
  483. package/dist/api/resources/user/resources/subscription/client/Client.d.ts +1 -1
  484. package/dist/api/resources/user/resources/subscription/client/Client.js +3 -7
  485. package/dist/api/resources/voices/client/Client.d.ts +1 -1
  486. package/dist/api/resources/voices/client/Client.js +17 -21
  487. package/dist/api/resources/voices/resources/ivc/client/Client.d.ts +1 -1
  488. package/dist/api/resources/voices/resources/ivc/client/Client.js +3 -7
  489. package/dist/api/resources/voices/resources/pvc/client/Client.d.ts +1 -1
  490. package/dist/api/resources/voices/resources/pvc/client/Client.js +7 -11
  491. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +1 -1
  492. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +7 -11
  493. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +1 -1
  494. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +3 -7
  495. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +1 -1
  496. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +5 -9
  497. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +1 -1
  498. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +3 -7
  499. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +1 -1
  500. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +3 -7
  501. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +1 -1
  502. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +3 -7
  503. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +1 -1
  504. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +5 -9
  505. package/dist/api/resources/voices/resources/samples/client/Client.d.ts +1 -1
  506. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +1 -1
  507. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +3 -7
  508. package/dist/api/resources/voices/resources/settings/client/Client.d.ts +1 -1
  509. package/dist/api/resources/voices/resources/settings/client/Client.js +7 -11
  510. package/dist/api/resources/webhooks/client/Client.d.ts +1 -1
  511. package/dist/api/resources/webhooks/client/Client.js +3 -7
  512. package/dist/api/resources/workspace/client/Client.d.ts +1 -1
  513. package/dist/api/resources/workspace/resources/groups/client/Client.d.ts +1 -1
  514. package/dist/api/resources/workspace/resources/groups/client/Client.js +3 -7
  515. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +1 -1
  516. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +5 -9
  517. package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +1 -1
  518. package/dist/api/resources/workspace/resources/invites/client/Client.js +7 -11
  519. package/dist/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +3 -1
  520. package/dist/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js +2 -0
  521. package/dist/api/resources/workspace/resources/members/client/Client.d.ts +1 -1
  522. package/dist/api/resources/workspace/resources/members/client/Client.js +5 -9
  523. package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +1 -1
  524. package/dist/api/resources/workspace/resources/resources/client/Client.js +7 -11
  525. package/dist/api/types/AgentConfig.d.ts +1 -10
  526. package/dist/api/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
  527. package/dist/api/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
  528. package/dist/api/types/AgentTestingSettings.d.ts +10 -0
  529. package/dist/api/types/AgentTestingSettings.js +5 -0
  530. package/dist/api/types/AgentTransfer.d.ts +3 -0
  531. package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +6 -0
  532. package/dist/api/types/BreakdownTypes.d.ts +2 -1
  533. package/dist/api/types/BreakdownTypes.js +1 -0
  534. package/dist/api/types/ClientToolConfigInput.d.ts +1 -1
  535. package/dist/api/types/ClientToolConfigOutput.d.ts +1 -1
  536. package/dist/api/types/ConvAiWebhooks.d.ts +2 -0
  537. package/dist/api/types/ConversationHistoryElevenAssistantCommonModel.d.ts +6 -0
  538. package/dist/api/types/ConversationHistoryElevenAssistantCommonModel.js +5 -0
  539. package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +5 -0
  540. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +4 -1
  541. package/dist/api/types/ConversationHistoryTranscriptToolCallMcpDetails.d.ts +13 -0
  542. package/dist/api/types/ConversationHistoryTranscriptToolCallMcpDetails.js +5 -0
  543. package/dist/api/types/ConversationInitiationClientDataInternal.d.ts +2 -0
  544. package/dist/api/types/ConversationInitiationClientDataRequestInput.d.ts +2 -0
  545. package/dist/api/types/ConversationInitiationClientDataRequestOutput.d.ts +2 -0
  546. package/dist/api/types/ConversationInitiationSource.d.ts +20 -0
  547. package/dist/api/types/ConversationInitiationSource.js +19 -0
  548. package/dist/api/types/ConversationSimulationSpecification.d.ts +1 -1
  549. package/dist/api/types/ConversationalConfig.d.ts +1 -1
  550. package/dist/api/types/CreateSipTrunkPhoneNumberRequest.d.ts +6 -21
  551. package/dist/api/types/CreateTwilioPhoneNumberRequest.d.ts +4 -0
  552. package/dist/api/types/CustomLlm.d.ts +2 -0
  553. package/dist/api/types/DubbingMetadataPageResponseModel.d.ts +9 -0
  554. package/dist/api/types/DubbingMetadataPageResponseModel.js +5 -0
  555. package/dist/api/types/DubbingMetadataResponse.d.ts +4 -0
  556. package/dist/api/types/GetAgentResponseModel.d.ts +1 -0
  557. package/dist/api/types/GetConversationResponseModel.d.ts +1 -0
  558. package/dist/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +15 -0
  559. package/dist/api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +5 -0
  560. package/dist/api/types/{SipTrunkConfigResponseModel.d.ts → GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts} +1 -1
  561. package/dist/api/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.js +5 -0
  562. package/dist/api/types/GetPhoneNumberSipTrunkResponseModel.d.ts +9 -1
  563. package/dist/api/types/GetPhoneNumberTwilioResponseModel.d.ts +4 -0
  564. package/dist/api/types/InboundSipTrunkConfigRequestModel.d.ts +14 -0
  565. package/dist/api/types/InboundSipTrunkConfigRequestModel.js +5 -0
  566. package/dist/api/types/Llm.d.ts +1 -3
  567. package/dist/api/types/Llm.js +0 -2
  568. package/dist/api/types/OutboundSipTrunkConfigRequestModel.d.ts +16 -0
  569. package/dist/api/types/OutboundSipTrunkConfigRequestModel.js +5 -0
  570. package/dist/api/types/PhoneNumberTransfer.d.ts +4 -1
  571. package/dist/api/types/PhoneNumberTransferDestination.d.ts +6 -0
  572. package/dist/api/types/PhoneNumberTransferDestination.js +5 -0
  573. package/dist/api/types/PhoneNumberTransferTransferDestination.d.ts +13 -0
  574. package/dist/api/types/PhoneNumberTransferTransferDestination.js +5 -0
  575. package/dist/api/types/PromptAgentApiModelInput.d.ts +3 -1
  576. package/dist/api/types/PromptAgentApiModelOutput.d.ts +3 -1
  577. package/dist/api/types/PromptAgentDbModel.d.ts +0 -26
  578. package/{api/types/SipTrunkCredentials.d.ts → dist/api/types/SipTrunkCredentialsRequestModel.d.ts} +1 -1
  579. package/dist/api/types/SipTrunkCredentialsRequestModel.js +5 -0
  580. package/dist/api/types/SipUriTransferDestination.d.ts +6 -0
  581. package/dist/api/types/SipUriTransferDestination.js +5 -0
  582. package/dist/api/types/SubscriptionStatusType.d.ts +1 -3
  583. package/dist/api/types/SubscriptionStatusType.js +0 -2
  584. package/dist/api/types/SystemToolConfigInputParams.d.ts +1 -1
  585. package/dist/api/types/SystemToolConfigOutputParams.d.ts +1 -1
  586. package/dist/api/types/{TransferToNumberToolConfig.d.ts → TransferToNumberToolConfigInput.d.ts} +1 -1
  587. package/dist/api/types/TransferToNumberToolConfigInput.js +5 -0
  588. package/dist/api/types/TransferToNumberToolConfigOutput.d.ts +9 -0
  589. package/dist/api/types/TransferToNumberToolConfigOutput.js +5 -0
  590. package/dist/api/types/TransferTypeEnum.d.ts +8 -0
  591. package/dist/api/types/TransferTypeEnum.js +10 -0
  592. package/dist/api/types/WidgetTextContents.d.ts +8 -0
  593. package/dist/api/types/WorkspaceResourceType.d.ts +2 -1
  594. package/dist/api/types/WorkspaceResourceType.js +1 -0
  595. package/dist/api/types/index.d.ts +17 -4
  596. package/dist/api/types/index.js +17 -4
  597. package/dist/core/fetcher/BinaryResponse.d.ts +7 -4
  598. package/dist/core/fetcher/BinaryResponse.js +5 -2
  599. package/dist/core/fetcher/Fetcher.js +3 -3
  600. package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
  601. package/dist/core/fetcher/createRequestUrl.js +3 -7
  602. package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
  603. package/dist/core/fetcher/getErrorResponseBody.js +44 -0
  604. package/dist/core/fetcher/getResponseBody.js +2 -1
  605. package/dist/core/form-data-utils/FormDataWrapper.js +4 -4
  606. package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +0 -3
  607. package/dist/core/form-data-utils/encodeAsFormParameter.js +2 -8
  608. package/dist/core/headers.d.ts +1 -1
  609. package/dist/core/index.d.ts +1 -0
  610. package/dist/core/index.js +2 -1
  611. package/dist/core/url/index.d.ts +2 -0
  612. package/dist/core/url/index.js +7 -0
  613. package/dist/core/url/join.d.ts +1 -0
  614. package/dist/core/url/join.js +49 -0
  615. package/dist/core/url/qs.d.ts +6 -0
  616. package/dist/core/url/qs.js +64 -0
  617. package/dist/environments.d.ts +4 -20
  618. package/dist/environments.js +4 -16
  619. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
  620. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
  621. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  622. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
  623. package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/types/index.d.ts +1 -1
  624. package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/types/index.js +1 -1
  625. package/dist/serialization/resources/dubbing/index.d.ts +1 -0
  626. package/dist/serialization/resources/dubbing/index.js +1 -0
  627. package/dist/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +10 -0
  628. package/dist/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.js +41 -0
  629. package/dist/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +10 -0
  630. package/dist/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.js +41 -0
  631. package/dist/serialization/resources/dubbing/types/index.d.ts +2 -0
  632. package/dist/serialization/resources/dubbing/types/index.js +18 -0
  633. package/dist/serialization/resources/index.d.ts +2 -1
  634. package/dist/serialization/resources/index.js +3 -2
  635. package/dist/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +3 -0
  636. package/dist/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.js +3 -0
  637. package/dist/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -0
  638. package/dist/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.js +1 -0
  639. package/dist/serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +1 -1
  640. package/dist/serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js +2 -0
  641. package/dist/serialization/types/AgentConfig.d.ts +2 -9
  642. package/dist/serialization/types/AgentConfig.js +1 -8
  643. package/dist/serialization/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
  644. package/dist/serialization/types/AgentPlatformSettingsRequestModel.js +2 -0
  645. package/dist/serialization/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
  646. package/dist/serialization/types/AgentPlatformSettingsResponseModel.js +2 -0
  647. package/dist/serialization/types/AgentTestingSettings.d.ts +12 -0
  648. package/dist/serialization/types/AgentTestingSettings.js +43 -0
  649. package/dist/serialization/types/AgentTransfer.d.ts +3 -0
  650. package/dist/serialization/types/AgentTransfer.js +3 -0
  651. package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +3 -0
  652. package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.js +3 -0
  653. package/dist/serialization/types/BreakdownTypes.d.ts +1 -1
  654. package/dist/serialization/types/BreakdownTypes.js +1 -0
  655. package/dist/serialization/types/ConvAiWebhooks.d.ts +1 -0
  656. package/dist/serialization/types/ConvAiWebhooks.js +1 -0
  657. package/dist/serialization/types/ConversationHistoryElevenAssistantCommonModel.d.ts +12 -0
  658. package/dist/serialization/types/ConversationHistoryElevenAssistantCommonModel.js +43 -0
  659. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +7 -0
  660. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +7 -0
  661. package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +5 -1
  662. package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.js +2 -0
  663. package/dist/serialization/types/ConversationHistoryTranscriptToolCallMcpDetails.d.ts +19 -0
  664. package/dist/serialization/types/ConversationHistoryTranscriptToolCallMcpDetails.js +50 -0
  665. package/dist/serialization/types/ConversationInitiationClientDataInternal.d.ts +1 -0
  666. package/dist/serialization/types/ConversationInitiationClientDataInternal.js +1 -0
  667. package/dist/serialization/types/ConversationInitiationClientDataRequestInput.d.ts +1 -0
  668. package/dist/serialization/types/ConversationInitiationClientDataRequestInput.js +1 -0
  669. package/dist/serialization/types/ConversationInitiationClientDataRequestOutput.d.ts +1 -0
  670. package/dist/serialization/types/ConversationInitiationClientDataRequestOutput.js +1 -0
  671. package/dist/serialization/types/ConversationInitiationSource.d.ts +10 -0
  672. package/dist/serialization/types/ConversationInitiationSource.js +53 -0
  673. package/dist/serialization/types/ConversationSimulationSpecification.d.ts +1 -1
  674. package/dist/serialization/types/ConversationalConfig.d.ts +1 -1
  675. package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +6 -10
  676. package/dist/serialization/types/CreateSipTrunkPhoneNumberRequest.js +6 -10
  677. package/dist/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
  678. package/dist/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
  679. package/dist/serialization/types/CustomLlm.d.ts +1 -0
  680. package/dist/serialization/types/CustomLlm.js +1 -0
  681. package/dist/serialization/types/DubbingMetadataPageResponseModel.d.ts +15 -0
  682. package/dist/serialization/types/DubbingMetadataPageResponseModel.js +46 -0
  683. package/dist/serialization/types/DubbingMetadataResponse.d.ts +2 -0
  684. package/dist/serialization/types/DubbingMetadataResponse.js +2 -0
  685. package/dist/serialization/types/GetAgentResponseModel.d.ts +1 -0
  686. package/dist/serialization/types/GetAgentResponseModel.js +1 -0
  687. package/dist/serialization/types/GetConversationResponseModel.d.ts +1 -0
  688. package/dist/serialization/types/GetConversationResponseModel.js +1 -0
  689. package/dist/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +17 -0
  690. package/dist/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +48 -0
  691. package/{serialization/types/SipTrunkConfigResponseModel.d.ts → dist/serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts} +2 -2
  692. package/dist/serialization/types/{SipTrunkConfigResponseModel.js → GetPhoneNumberOutboundSipTrunkConfigResponseModel.js} +2 -2
  693. package/dist/serialization/types/GetPhoneNumberSipTrunkResponseModel.d.ts +7 -2
  694. package/dist/serialization/types/GetPhoneNumberSipTrunkResponseModel.js +7 -2
  695. package/dist/serialization/types/GetPhoneNumberTwilioResponseModel.d.ts +2 -0
  696. package/dist/serialization/types/GetPhoneNumberTwilioResponseModel.js +2 -0
  697. package/dist/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +17 -0
  698. package/dist/serialization/types/InboundSipTrunkConfigRequestModel.js +48 -0
  699. package/dist/serialization/types/Llm.d.ts +1 -1
  700. package/dist/serialization/types/Llm.js +0 -2
  701. package/dist/serialization/types/OutboundSipTrunkConfigRequestModel.d.ts +19 -0
  702. package/dist/serialization/types/OutboundSipTrunkConfigRequestModel.js +50 -0
  703. package/dist/serialization/types/PhoneNumberTransfer.d.ts +5 -1
  704. package/dist/serialization/types/PhoneNumberTransfer.js +5 -1
  705. package/dist/serialization/types/PhoneNumberTransferDestination.d.ts +12 -0
  706. package/dist/serialization/types/PhoneNumberTransferDestination.js +43 -0
  707. package/dist/serialization/types/PhoneNumberTransferTransferDestination.d.ts +18 -0
  708. package/dist/serialization/types/PhoneNumberTransferTransferDestination.js +51 -0
  709. package/dist/serialization/types/PromptAgentApiModelInput.d.ts +1 -0
  710. package/dist/serialization/types/PromptAgentApiModelInput.js +1 -0
  711. package/dist/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
  712. package/dist/serialization/types/PromptAgentApiModelOutput.js +1 -0
  713. package/dist/serialization/types/PromptAgentDbModel.d.ts +0 -18
  714. package/dist/serialization/types/PromptAgentDbModel.js +0 -18
  715. package/{serialization/types/SipTrunkCredentials.d.ts → dist/serialization/types/SipTrunkCredentialsRequestModel.d.ts} +2 -2
  716. package/{serialization/types/SipTrunkCredentials.js → dist/serialization/types/SipTrunkCredentialsRequestModel.js} +2 -2
  717. package/dist/serialization/types/SipUriTransferDestination.d.ts +12 -0
  718. package/dist/serialization/types/SipUriTransferDestination.js +43 -0
  719. package/dist/serialization/types/SubscriptionStatusType.d.ts +1 -1
  720. package/dist/serialization/types/SubscriptionStatusType.js +1 -10
  721. package/dist/serialization/types/SystemToolConfigInputParams.d.ts +2 -2
  722. package/dist/serialization/types/SystemToolConfigInputParams.js +2 -2
  723. package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +2 -2
  724. package/dist/serialization/types/SystemToolConfigOutputParams.js +2 -2
  725. package/dist/serialization/types/{TransferToNumberToolConfig.d.ts → TransferToNumberToolConfigInput.d.ts} +2 -2
  726. package/dist/serialization/types/{TransferToNumberToolConfig.js → TransferToNumberToolConfigInput.js} +2 -2
  727. package/dist/serialization/types/TransferToNumberToolConfigOutput.d.ts +14 -0
  728. package/dist/serialization/types/TransferToNumberToolConfigOutput.js +45 -0
  729. package/dist/serialization/types/TransferTypeEnum.d.ts +10 -0
  730. package/dist/serialization/types/TransferTypeEnum.js +41 -0
  731. package/dist/serialization/types/WidgetTextContents.d.ts +4 -0
  732. package/dist/serialization/types/WidgetTextContents.js +4 -0
  733. package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
  734. package/dist/serialization/types/WorkspaceResourceType.js +1 -0
  735. package/dist/serialization/types/index.d.ts +17 -4
  736. package/dist/serialization/types/index.js +17 -4
  737. package/dist/version.d.ts +1 -1
  738. package/dist/version.js +1 -1
  739. package/environments.d.ts +4 -20
  740. package/environments.js +4 -16
  741. package/jest.config.mjs +36 -6
  742. package/package.json +21 -20
  743. package/reference.md +106 -41
  744. package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
  745. package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +1 -0
  746. package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -0
  747. package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +1 -0
  748. package/serialization/resources/conversationalAi/resources/phoneNumbers/types/index.d.ts +1 -1
  749. package/serialization/resources/conversationalAi/resources/phoneNumbers/types/index.js +1 -1
  750. package/serialization/resources/dubbing/index.d.ts +1 -0
  751. package/serialization/resources/dubbing/index.js +1 -0
  752. package/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +10 -0
  753. package/serialization/resources/dubbing/types/DubbingListRequestDubbingStatus.js +41 -0
  754. package/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.d.ts +10 -0
  755. package/serialization/resources/dubbing/types/DubbingListRequestFilterByCreator.js +41 -0
  756. package/serialization/resources/dubbing/types/index.d.ts +2 -0
  757. package/serialization/resources/dubbing/types/index.js +18 -0
  758. package/serialization/resources/index.d.ts +2 -1
  759. package/serialization/resources/index.js +3 -2
  760. package/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +3 -0
  761. package/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.js +3 -0
  762. package/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -0
  763. package/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.js +1 -0
  764. package/serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +1 -1
  765. package/serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js +2 -0
  766. package/serialization/types/AgentConfig.d.ts +2 -9
  767. package/serialization/types/AgentConfig.js +1 -8
  768. package/serialization/types/AgentPlatformSettingsRequestModel.d.ts +2 -0
  769. package/serialization/types/AgentPlatformSettingsRequestModel.js +2 -0
  770. package/serialization/types/AgentPlatformSettingsResponseModel.d.ts +2 -0
  771. package/serialization/types/AgentPlatformSettingsResponseModel.js +2 -0
  772. package/serialization/types/AgentTestingSettings.d.ts +12 -0
  773. package/serialization/types/AgentTestingSettings.js +43 -0
  774. package/serialization/types/AgentTransfer.d.ts +3 -0
  775. package/serialization/types/AgentTransfer.js +3 -0
  776. package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +3 -0
  777. package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.js +3 -0
  778. package/serialization/types/BreakdownTypes.d.ts +1 -1
  779. package/serialization/types/BreakdownTypes.js +1 -0
  780. package/serialization/types/ConvAiWebhooks.d.ts +1 -0
  781. package/serialization/types/ConvAiWebhooks.js +1 -0
  782. package/serialization/types/ConversationHistoryElevenAssistantCommonModel.d.ts +12 -0
  783. package/serialization/types/ConversationHistoryElevenAssistantCommonModel.js +43 -0
  784. package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +7 -0
  785. package/serialization/types/ConversationHistoryMetadataCommonModel.js +7 -0
  786. package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +5 -1
  787. package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.js +2 -0
  788. package/serialization/types/ConversationHistoryTranscriptToolCallMcpDetails.d.ts +19 -0
  789. package/serialization/types/ConversationHistoryTranscriptToolCallMcpDetails.js +50 -0
  790. package/serialization/types/ConversationInitiationClientDataInternal.d.ts +1 -0
  791. package/serialization/types/ConversationInitiationClientDataInternal.js +1 -0
  792. package/serialization/types/ConversationInitiationClientDataRequestInput.d.ts +1 -0
  793. package/serialization/types/ConversationInitiationClientDataRequestInput.js +1 -0
  794. package/serialization/types/ConversationInitiationClientDataRequestOutput.d.ts +1 -0
  795. package/serialization/types/ConversationInitiationClientDataRequestOutput.js +1 -0
  796. package/serialization/types/ConversationInitiationSource.d.ts +10 -0
  797. package/serialization/types/ConversationInitiationSource.js +53 -0
  798. package/serialization/types/ConversationSimulationSpecification.d.ts +1 -1
  799. package/serialization/types/ConversationalConfig.d.ts +1 -1
  800. package/serialization/types/CreateSipTrunkPhoneNumberRequest.d.ts +6 -10
  801. package/serialization/types/CreateSipTrunkPhoneNumberRequest.js +6 -10
  802. package/serialization/types/CreateTwilioPhoneNumberRequest.d.ts +2 -0
  803. package/serialization/types/CreateTwilioPhoneNumberRequest.js +2 -0
  804. package/serialization/types/CustomLlm.d.ts +1 -0
  805. package/serialization/types/CustomLlm.js +1 -0
  806. package/serialization/types/DubbingMetadataPageResponseModel.d.ts +15 -0
  807. package/serialization/types/DubbingMetadataPageResponseModel.js +46 -0
  808. package/serialization/types/DubbingMetadataResponse.d.ts +2 -0
  809. package/serialization/types/DubbingMetadataResponse.js +2 -0
  810. package/serialization/types/GetAgentResponseModel.d.ts +1 -0
  811. package/serialization/types/GetAgentResponseModel.js +1 -0
  812. package/serialization/types/GetConversationResponseModel.d.ts +1 -0
  813. package/serialization/types/GetConversationResponseModel.js +1 -0
  814. package/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.d.ts +17 -0
  815. package/serialization/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js +48 -0
  816. package/{dist/serialization/types/SipTrunkConfigResponseModel.d.ts → serialization/types/GetPhoneNumberOutboundSipTrunkConfigResponseModel.d.ts} +2 -2
  817. package/serialization/types/{SipTrunkConfigResponseModel.js → GetPhoneNumberOutboundSipTrunkConfigResponseModel.js} +2 -2
  818. package/serialization/types/GetPhoneNumberSipTrunkResponseModel.d.ts +7 -2
  819. package/serialization/types/GetPhoneNumberSipTrunkResponseModel.js +7 -2
  820. package/serialization/types/GetPhoneNumberTwilioResponseModel.d.ts +2 -0
  821. package/serialization/types/GetPhoneNumberTwilioResponseModel.js +2 -0
  822. package/serialization/types/InboundSipTrunkConfigRequestModel.d.ts +17 -0
  823. package/serialization/types/InboundSipTrunkConfigRequestModel.js +48 -0
  824. package/serialization/types/Llm.d.ts +1 -1
  825. package/serialization/types/Llm.js +0 -2
  826. package/serialization/types/OutboundSipTrunkConfigRequestModel.d.ts +19 -0
  827. package/serialization/types/OutboundSipTrunkConfigRequestModel.js +50 -0
  828. package/serialization/types/PhoneNumberTransfer.d.ts +5 -1
  829. package/serialization/types/PhoneNumberTransfer.js +5 -1
  830. package/serialization/types/PhoneNumberTransferDestination.d.ts +12 -0
  831. package/serialization/types/PhoneNumberTransferDestination.js +43 -0
  832. package/serialization/types/PhoneNumberTransferTransferDestination.d.ts +18 -0
  833. package/serialization/types/PhoneNumberTransferTransferDestination.js +51 -0
  834. package/serialization/types/PromptAgentApiModelInput.d.ts +1 -0
  835. package/serialization/types/PromptAgentApiModelInput.js +1 -0
  836. package/serialization/types/PromptAgentApiModelOutput.d.ts +1 -0
  837. package/serialization/types/PromptAgentApiModelOutput.js +1 -0
  838. package/serialization/types/PromptAgentDbModel.d.ts +0 -18
  839. package/serialization/types/PromptAgentDbModel.js +0 -18
  840. package/{dist/serialization/types/SipTrunkCredentials.d.ts → serialization/types/SipTrunkCredentialsRequestModel.d.ts} +2 -2
  841. package/{dist/serialization/types/SipTrunkCredentials.js → serialization/types/SipTrunkCredentialsRequestModel.js} +2 -2
  842. package/serialization/types/SipUriTransferDestination.d.ts +12 -0
  843. package/serialization/types/SipUriTransferDestination.js +43 -0
  844. package/serialization/types/SubscriptionStatusType.d.ts +1 -1
  845. package/serialization/types/SubscriptionStatusType.js +1 -10
  846. package/serialization/types/SystemToolConfigInputParams.d.ts +2 -2
  847. package/serialization/types/SystemToolConfigInputParams.js +2 -2
  848. package/serialization/types/SystemToolConfigOutputParams.d.ts +2 -2
  849. package/serialization/types/SystemToolConfigOutputParams.js +2 -2
  850. package/serialization/types/{TransferToNumberToolConfig.d.ts → TransferToNumberToolConfigInput.d.ts} +2 -2
  851. package/serialization/types/{TransferToNumberToolConfig.js → TransferToNumberToolConfigInput.js} +2 -2
  852. package/serialization/types/TransferToNumberToolConfigOutput.d.ts +14 -0
  853. package/serialization/types/TransferToNumberToolConfigOutput.js +45 -0
  854. package/serialization/types/TransferTypeEnum.d.ts +10 -0
  855. package/serialization/types/TransferTypeEnum.js +41 -0
  856. package/serialization/types/WidgetTextContents.d.ts +4 -0
  857. package/serialization/types/WidgetTextContents.js +4 -0
  858. package/serialization/types/WorkspaceResourceType.d.ts +1 -1
  859. package/serialization/types/WorkspaceResourceType.js +1 -0
  860. package/serialization/types/index.d.ts +17 -4
  861. package/serialization/types/index.js +17 -4
  862. package/version.d.ts +1 -1
  863. package/version.js +1 -1
  864. package/jest.browser.config.mjs +0 -10
  865. /package/api/{types/SipTrunkConfigResponseModel.js → resources/dubbing/client/requests/DubbingListRequest.js} +0 -0
  866. /package/api/types/{SipTrunkCredentials.js → AgentTestingSettings.js} +0 -0
  867. /package/api/types/{TransferToNumberToolConfig.js → ConversationHistoryElevenAssistantCommonModel.js} +0 -0
  868. /package/{dist/api/types/SipTrunkConfigResponseModel.js → api/types/ConversationHistoryTranscriptToolCallMcpDetails.js} +0 -0
  869. /package/{dist/api/types/SipTrunkCredentials.js → api/types/DubbingMetadataPageResponseModel.js} +0 -0
  870. /package/{dist/api/types/TransferToNumberToolConfig.js → api/types/GetPhoneNumberInboundSipTrunkConfigResponseModel.js} +0 -0
@@ -44,16 +44,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
45
  });
46
46
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
47
  Object.defineProperty(exports, "__esModule", { value: true });
51
48
  exports.Chapters = void 0;
52
49
  const environments = __importStar(require("../../../../../../../../environments"));
53
50
  const core = __importStar(require("../../../../../../../../core"));
54
51
  const ElevenLabs = __importStar(require("../../../../../../../index"));
55
- const headers_js_1 = require("../../../../../../../../core/headers.js");
56
- const url_join_1 = __importDefault(require("url-join"));
52
+ const headers_1 = require("../../../../../../../../core/headers");
57
53
  const serializers = __importStar(require("../../../../../../../../serialization/index"));
58
54
  const errors = __importStar(require("../../../../../../../../errors/index"));
59
55
  const Client_1 = require("../resources/snapshots/client/Client");
@@ -83,9 +79,9 @@ class Chapters {
83
79
  return __awaiter(this, void 0, void 0, function* () {
84
80
  var _a, _b, _c;
85
81
  const _response = yield core.fetcher({
86
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/chapters`),
82
+ 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/studio/projects/${encodeURIComponent(projectId)}/chapters`),
87
83
  method: "GET",
88
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ 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),
89
85
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
90
86
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
91
87
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -156,9 +152,9 @@ class Chapters {
156
152
  return __awaiter(this, void 0, void 0, function* () {
157
153
  var _a, _b, _c;
158
154
  const _response = yield core.fetcher({
159
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/chapters`),
155
+ 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/studio/projects/${encodeURIComponent(projectId)}/chapters`),
160
156
  method: "POST",
161
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
+ 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),
162
158
  contentType: "application/json",
163
159
  requestType: "json",
164
160
  body: serializers.studio.projects.BodyCreateChapterV1StudioProjectsProjectIdChaptersPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -230,9 +226,9 @@ class Chapters {
230
226
  return __awaiter(this, void 0, void 0, function* () {
231
227
  var _a, _b, _c;
232
228
  const _response = yield core.fetcher({
233
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}`),
229
+ 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/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}`),
234
230
  method: "GET",
235
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
231
+ 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),
236
232
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
237
233
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
238
234
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -302,9 +298,9 @@ class Chapters {
302
298
  return __awaiter(this, arguments, void 0, function* (projectId, chapterId, request = {}, requestOptions) {
303
299
  var _a, _b, _c;
304
300
  const _response = yield core.fetcher({
305
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}`),
301
+ 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/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}`),
306
302
  method: "POST",
307
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
303
+ 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),
308
304
  contentType: "application/json",
309
305
  requestType: "json",
310
306
  body: serializers.studio.projects.BodyUpdateChapterV1StudioProjectsProjectIdChaptersChapterIdPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -376,9 +372,9 @@ class Chapters {
376
372
  return __awaiter(this, void 0, void 0, function* () {
377
373
  var _a, _b, _c;
378
374
  const _response = yield core.fetcher({
379
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}`),
375
+ 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/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}`),
380
376
  method: "DELETE",
381
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
377
+ 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),
382
378
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
383
379
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
384
380
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -447,9 +443,9 @@ class Chapters {
447
443
  return __awaiter(this, void 0, void 0, function* () {
448
444
  var _a, _b, _c;
449
445
  const _response = yield core.fetcher({
450
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}/convert`),
446
+ 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/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}/convert`),
451
447
  method: "POST",
452
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
448
+ 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),
453
449
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
454
450
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
455
451
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../../../../../index";
7
7
  export declare namespace Snapshots {
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 */
@@ -44,16 +44,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
45
  });
46
46
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
47
  Object.defineProperty(exports, "__esModule", { value: true });
51
48
  exports.Snapshots = void 0;
52
49
  const environments = __importStar(require("../../../../../../../../../../environments"));
53
50
  const core = __importStar(require("../../../../../../../../../../core"));
54
51
  const ElevenLabs = __importStar(require("../../../../../../../../../index"));
55
- const headers_js_1 = require("../../../../../../../../../../core/headers.js");
56
- const url_join_1 = __importDefault(require("url-join"));
52
+ const headers_1 = require("../../../../../../../../../../core/headers");
57
53
  const serializers = __importStar(require("../../../../../../../../../../serialization/index"));
58
54
  const errors = __importStar(require("../../../../../../../../../../errors/index"));
59
55
  class Snapshots {
@@ -79,9 +75,9 @@ class Snapshots {
79
75
  return __awaiter(this, void 0, void 0, function* () {
80
76
  var _a, _b, _c;
81
77
  const _response = yield core.fetcher({
82
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}/snapshots`),
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/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}/snapshots`),
83
79
  method: "GET",
84
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
85
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
86
82
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
87
83
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -151,9 +147,9 @@ class Snapshots {
151
147
  return __awaiter(this, void 0, void 0, function* () {
152
148
  var _a, _b, _c;
153
149
  const _response = yield core.fetcher({
154
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}/snapshots/${encodeURIComponent(chapterSnapshotId)}`),
150
+ 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/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}/snapshots/${encodeURIComponent(chapterSnapshotId)}`),
155
151
  method: "GET",
156
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
152
+ 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),
157
153
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
158
154
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
159
155
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -214,9 +210,9 @@ class Snapshots {
214
210
  return __awaiter(this, arguments, void 0, function* (projectId, chapterId, chapterSnapshotId, request = {}, requestOptions) {
215
211
  var _a, _b, _c;
216
212
  const _response = yield core.fetcher({
217
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}/snapshots/${encodeURIComponent(chapterSnapshotId)}/stream`),
213
+ 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/studio/projects/${encodeURIComponent(projectId)}/chapters/${encodeURIComponent(chapterId)}/snapshots/${encodeURIComponent(chapterSnapshotId)}/stream`),
218
214
  method: "POST",
219
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
215
+ 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),
220
216
  contentType: "application/json",
221
217
  requestType: "json",
222
218
  body: serializers.studio.projects.chapters.BodyStreamChapterAudioV1StudioProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../../../index";
7
7
  export declare namespace Content {
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 */
@@ -44,16 +44,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
45
  });
46
46
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
47
  Object.defineProperty(exports, "__esModule", { value: true });
51
48
  exports.Content = void 0;
52
49
  const environments = __importStar(require("../../../../../../../../environments"));
53
50
  const core = __importStar(require("../../../../../../../../core"));
54
51
  const ElevenLabs = __importStar(require("../../../../../../../index"));
55
- const headers_js_1 = require("../../../../../../../../core/headers.js");
56
- const url_join_1 = __importDefault(require("url-join"));
52
+ const headers_1 = require("../../../../../../../../core/headers");
57
53
  const serializers = __importStar(require("../../../../../../../../serialization/index"));
58
54
  const errors = __importStar(require("../../../../../../../../errors/index"));
59
55
  class Content {
@@ -93,9 +89,9 @@ class Content {
93
89
  }
94
90
  const _maybeEncodedRequest = yield _request.getRequest();
95
91
  const _response = yield core.fetcher({
96
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/content`),
92
+ 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/studio/projects/${encodeURIComponent(projectId)}/content`),
97
93
  method: "POST",
98
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
+ 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),
99
95
  requestType: "file",
100
96
  duplex: _maybeEncodedRequest.duplex,
101
97
  body: _maybeEncodedRequest.body,
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../../../index";
7
7
  export declare namespace PronunciationDictionaries {
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 */
@@ -44,17 +44,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
45
  });
46
46
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
47
  Object.defineProperty(exports, "__esModule", { value: true });
51
48
  exports.PronunciationDictionaries = void 0;
52
49
  const environments = __importStar(require("../../../../../../../../environments"));
53
50
  const core = __importStar(require("../../../../../../../../core"));
54
51
  const ElevenLabs = __importStar(require("../../../../../../../index"));
55
- const headers_js_1 = require("../../../../../../../../core/headers.js");
52
+ const headers_1 = require("../../../../../../../../core/headers");
56
53
  const serializers = __importStar(require("../../../../../../../../serialization/index"));
57
- const url_join_1 = __importDefault(require("url-join"));
58
54
  const errors = __importStar(require("../../../../../../../../errors/index"));
59
55
  class PronunciationDictionaries {
60
56
  constructor(_options = {}) {
@@ -83,9 +79,9 @@ class PronunciationDictionaries {
83
79
  return __awaiter(this, void 0, void 0, function* () {
84
80
  var _a, _b, _c;
85
81
  const _response = yield core.fetcher({
86
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/pronunciation-dictionaries`),
82
+ 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/studio/projects/${encodeURIComponent(projectId)}/pronunciation-dictionaries`),
87
83
  method: "POST",
88
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ 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),
89
85
  contentType: "application/json",
90
86
  requestType: "json",
91
87
  body: serializers.studio.projects.BodyCreatePronunciationDictionariesV1StudioProjectsProjectIdPronunciationDictionariesPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -6,7 +6,7 @@ import * as core from "../../../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../../../index";
7
7
  export declare namespace Snapshots {
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 */
@@ -44,16 +44,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
45
  });
46
46
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
47
  Object.defineProperty(exports, "__esModule", { value: true });
51
48
  exports.Snapshots = void 0;
52
49
  const environments = __importStar(require("../../../../../../../../environments"));
53
50
  const core = __importStar(require("../../../../../../../../core"));
54
51
  const ElevenLabs = __importStar(require("../../../../../../../index"));
55
- const headers_js_1 = require("../../../../../../../../core/headers.js");
56
- const url_join_1 = __importDefault(require("url-join"));
52
+ const headers_1 = require("../../../../../../../../core/headers");
57
53
  const serializers = __importStar(require("../../../../../../../../serialization/index"));
58
54
  const errors = __importStar(require("../../../../../../../../errors/index"));
59
55
  class Snapshots {
@@ -78,9 +74,9 @@ class Snapshots {
78
74
  return __awaiter(this, void 0, void 0, function* () {
79
75
  var _a, _b, _c;
80
76
  const _response = yield core.fetcher({
81
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/snapshots`),
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/studio/projects/${encodeURIComponent(projectId)}/snapshots`),
82
78
  method: "GET",
83
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
84
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
85
81
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
86
82
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -149,9 +145,9 @@ class Snapshots {
149
145
  return __awaiter(this, void 0, void 0, function* () {
150
146
  var _a, _b, _c;
151
147
  const _response = yield core.fetcher({
152
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/snapshots/${encodeURIComponent(projectSnapshotId)}`),
148
+ 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/studio/projects/${encodeURIComponent(projectId)}/snapshots/${encodeURIComponent(projectSnapshotId)}`),
153
149
  method: "GET",
154
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
150
+ 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
151
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
156
152
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
157
153
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -212,9 +208,9 @@ class Snapshots {
212
208
  return __awaiter(this, arguments, void 0, function* (projectId, projectSnapshotId, request = {}, requestOptions) {
213
209
  var _a, _b, _c;
214
210
  const _response = yield core.fetcher({
215
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/snapshots/${encodeURIComponent(projectSnapshotId)}/stream`),
211
+ 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/studio/projects/${encodeURIComponent(projectId)}/snapshots/${encodeURIComponent(projectSnapshotId)}/stream`),
216
212
  method: "POST",
217
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
+ 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),
218
214
  contentType: "application/json",
219
215
  requestType: "json",
220
216
  body: serializers.studio.projects.BodyStreamStudioProjectAudioV1StudioProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -271,9 +267,9 @@ class Snapshots {
271
267
  return __awaiter(this, void 0, void 0, function* () {
272
268
  var _a, _b, _c;
273
269
  const _response = yield core.fetcher({
274
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/studio/projects/${encodeURIComponent(projectId)}/snapshots/${encodeURIComponent(projectSnapshotId)}/archive`),
270
+ 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/studio/projects/${encodeURIComponent(projectId)}/snapshots/${encodeURIComponent(projectSnapshotId)}/archive`),
275
271
  method: "POST",
276
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
272
+ 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),
277
273
  responseType: "streaming",
278
274
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
279
275
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -6,7 +6,7 @@ import * as core from "../../../../core";
6
6
  import * as ElevenLabs from "../../../index";
7
7
  export declare namespace TextToDialogue {
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 */
@@ -55,17 +55,13 @@ var __rest = (this && this.__rest) || function (s, e) {
55
55
  }
56
56
  return t;
57
57
  };
58
- var __importDefault = (this && this.__importDefault) || function (mod) {
59
- return (mod && mod.__esModule) ? mod : { "default": mod };
60
- };
61
58
  Object.defineProperty(exports, "__esModule", { value: true });
62
59
  exports.TextToDialogue = void 0;
63
60
  const environments = __importStar(require("../../../../environments"));
64
61
  const core = __importStar(require("../../../../core"));
65
62
  const ElevenLabs = __importStar(require("../../../index"));
66
63
  const serializers = __importStar(require("../../../../serialization/index"));
67
- const headers_js_1 = require("../../../../core/headers.js");
68
- const url_join_1 = __importDefault(require("url-join"));
64
+ const headers_1 = require("../../../../core/headers");
69
65
  const errors = __importStar(require("../../../../errors/index"));
70
66
  class TextToDialogue {
71
67
  constructor(_options = {}) {
@@ -87,9 +83,9 @@ class TextToDialogue {
87
83
  _queryParams["output_format"] = serializers.TextToDialogueConvertRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
88
84
  }
89
85
  const _response = yield core.fetcher({
90
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/text-to-dialogue"),
86
+ 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/text-to-dialogue"),
91
87
  method: "POST",
92
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ 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),
93
89
  contentType: "application/json",
94
90
  queryParameters: _queryParams,
95
91
  requestType: "json",
@@ -154,9 +150,9 @@ class TextToDialogue {
154
150
  _queryParams["output_format"] = serializers.TextToDialogueStreamRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
155
151
  }
156
152
  const _response = yield core.fetcher({
157
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/text-to-dialogue/stream"),
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/text-to-dialogue/stream"),
158
154
  method: "POST",
159
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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),
160
156
  contentType: "application/json",
161
157
  queryParameters: _queryParams,
162
158
  requestType: "json",
@@ -6,7 +6,7 @@ import * as core from "../../../../core";
6
6
  import * as ElevenLabs from "../../../index";
7
7
  export declare namespace TextToSoundEffects {
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 */
@@ -55,17 +55,13 @@ var __rest = (this && this.__rest) || function (s, e) {
55
55
  }
56
56
  return t;
57
57
  };
58
- var __importDefault = (this && this.__importDefault) || function (mod) {
59
- return (mod && mod.__esModule) ? mod : { "default": mod };
60
- };
61
58
  Object.defineProperty(exports, "__esModule", { value: true });
62
59
  exports.TextToSoundEffects = void 0;
63
60
  const environments = __importStar(require("../../../../environments"));
64
61
  const core = __importStar(require("../../../../core"));
65
62
  const ElevenLabs = __importStar(require("../../../index"));
66
63
  const serializers = __importStar(require("../../../../serialization/index"));
67
- const headers_js_1 = require("../../../../core/headers.js");
68
- const url_join_1 = __importDefault(require("url-join"));
64
+ const headers_1 = require("../../../../core/headers");
69
65
  const errors = __importStar(require("../../../../errors/index"));
70
66
  class TextToSoundEffects {
71
67
  constructor(_options = {}) {
@@ -87,9 +83,9 @@ class TextToSoundEffects {
87
83
  _queryParams["output_format"] = serializers.TextToSoundEffectsConvertRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
88
84
  }
89
85
  const _response = yield core.fetcher({
90
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/sound-generation"),
86
+ 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/sound-generation"),
91
87
  method: "POST",
92
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ 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),
93
89
  contentType: "application/json",
94
90
  queryParameters: _queryParams,
95
91
  requestType: "json",
@@ -6,7 +6,7 @@ import * as core from "../../../../core";
6
6
  import * as ElevenLabs from "../../../index";
7
7
  export declare namespace TextToSpeech {
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 */
@@ -55,17 +55,13 @@ var __rest = (this && this.__rest) || function (s, e) {
55
55
  }
56
56
  return t;
57
57
  };
58
- var __importDefault = (this && this.__importDefault) || function (mod) {
59
- return (mod && mod.__esModule) ? mod : { "default": mod };
60
- };
61
58
  Object.defineProperty(exports, "__esModule", { value: true });
62
59
  exports.TextToSpeech = void 0;
63
60
  const environments = __importStar(require("../../../../environments"));
64
61
  const core = __importStar(require("../../../../core"));
65
62
  const ElevenLabs = __importStar(require("../../../index"));
66
63
  const serializers = __importStar(require("../../../../serialization/index"));
67
- const headers_js_1 = require("../../../../core/headers.js");
68
- const url_join_1 = __importDefault(require("url-join"));
64
+ const headers_1 = require("../../../../core/headers");
69
65
  const errors = __importStar(require("../../../../errors/index"));
70
66
  class TextToSpeech {
71
67
  constructor(_options = {}) {
@@ -93,9 +89,9 @@ class TextToSpeech {
93
89
  _queryParams["output_format"] = serializers.TextToSpeechConvertRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
94
90
  }
95
91
  const _response = yield core.fetcher({
96
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/text-to-speech/${encodeURIComponent(voiceId)}`),
92
+ 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/text-to-speech/${encodeURIComponent(voiceId)}`),
97
93
  method: "POST",
98
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
+ 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),
99
95
  contentType: "application/json",
100
96
  queryParameters: _queryParams,
101
97
  requestType: "json",
@@ -177,9 +173,9 @@ class TextToSpeech {
177
173
  });
178
174
  }
179
175
  const _response = yield core.fetcher({
180
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/text-to-speech/${encodeURIComponent(voiceId)}/with-timestamps`),
176
+ 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/text-to-speech/${encodeURIComponent(voiceId)}/with-timestamps`),
181
177
  method: "POST",
182
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
+ 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),
183
179
  contentType: "application/json",
184
180
  queryParameters: _queryParams,
185
181
  requestType: "json",
@@ -255,9 +251,9 @@ class TextToSpeech {
255
251
  _queryParams["output_format"] = serializers.TextToSpeechStreamRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
256
252
  }
257
253
  const _response = yield core.fetcher({
258
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/text-to-speech/${encodeURIComponent(voiceId)}/stream`),
254
+ 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/text-to-speech/${encodeURIComponent(voiceId)}/stream`),
259
255
  method: "POST",
260
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
256
+ 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),
261
257
  contentType: "application/json",
262
258
  queryParameters: _queryParams,
263
259
  requestType: "json",
@@ -325,9 +321,9 @@ class TextToSpeech {
325
321
  _queryParams["output_format"] = serializers.TextToSpeechStreamWithTimestampsRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
326
322
  }
327
323
  const _response = yield core.fetcher({
328
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/text-to-speech/${encodeURIComponent(voiceId)}/stream/with-timestamps`),
324
+ 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/text-to-speech/${encodeURIComponent(voiceId)}/stream/with-timestamps`),
329
325
  method: "POST",
330
- headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
326
+ 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),
331
327
  contentType: "application/json",
332
328
  queryParameters: _queryParams,
333
329
  requestType: "json",
@@ -4,9 +4,10 @@
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
6
  import * as ElevenLabs from "../../../index";
7
+ import { Preview } from "../resources/preview/client/Client";
7
8
  export declare namespace TextToVoice {
8
9
  interface Options {
9
- environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
10
+ environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
10
11
  /** Specify a custom URL to connect the client to. */
11
12
  baseUrl?: core.Supplier<string>;
12
13
  /** Override the xi-api-key header */
@@ -29,7 +30,9 @@ export declare namespace TextToVoice {
29
30
  }
30
31
  export declare class TextToVoice {
31
32
  protected readonly _options: TextToVoice.Options;
33
+ protected _preview: Preview | undefined;
32
34
  constructor(_options?: TextToVoice.Options);
35
+ get preview(): Preview;
33
36
  /**
34
37
  * Create a voice from a text prompt.
35
38
  *