@elevenlabs/elevenlabs-js 2.51.0 → 2.52.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 (436) hide show
  1. package/.fern/metadata.json +2 -2
  2. package/.fern/replay.lock +8 -2
  3. package/BaseClient.js +2 -2
  4. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.d.ts +4 -1
  5. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.d.ts +4 -1
  6. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +4 -4
  7. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +4 -4
  8. package/api/resources/dubbing/client/Client.js +0 -3
  9. package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +0 -2
  10. package/api/resources/index.d.ts +2 -0
  11. package/api/resources/index.js +3 -1
  12. package/api/resources/speechEngineUpstream/index.d.ts +1 -0
  13. package/api/resources/speechEngineUpstream/index.js +17 -0
  14. package/api/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.d.ts +5 -0
  15. package/api/resources/speechEngineUpstream/types/SendUpstreamMessage.d.ts +5 -0
  16. package/api/resources/speechEngineUpstream/types/index.d.ts +2 -0
  17. package/api/resources/speechEngineUpstream/types/index.js +18 -0
  18. package/api/resources/textToDialogue/client/Client.d.ts +1 -0
  19. package/api/resources/textToDialogue/client/Client.js +17 -4
  20. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +3 -0
  21. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +2 -0
  22. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +2 -0
  23. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +3 -0
  24. package/api/resources/v1TextToDialogueStreamInput/types/ReceiveTextToDialogueWebsocketMessage.d.ts +1 -1
  25. package/api/resources/voices/client/Client.d.ts +29 -29
  26. package/api/resources/voices/client/Client.js +105 -105
  27. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +4 -1
  28. package/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +4 -1
  29. package/api/resources/workspaces/resources/apiKeys/client/Client.d.ts +1 -1
  30. package/api/resources/workspaces/resources/apiKeys/client/Client.js +1 -1
  31. package/api/types/AgentResponsePayload.d.ts +25 -0
  32. package/api/types/AnalysisProperty.d.ts +6 -4
  33. package/api/types/AnalysisPropertyConstantValue.d.ts +1 -1
  34. package/api/types/ApiIntegrationWebhookOverridesSchemaOverridesValue.d.ts +4 -1
  35. package/api/types/AsrProvider.d.ts +2 -0
  36. package/api/types/AsrProvider.js +2 -0
  37. package/api/types/BaseTurnConfig.d.ts +1 -0
  38. package/api/types/ClosePayload.d.ts +7 -0
  39. package/api/types/DirectPublishingReadResponseModel.d.ts +1 -0
  40. package/api/types/ErrorPayload.d.ts +9 -0
  41. package/api/types/ExternalFileSyncInfo.d.ts +20 -0
  42. package/api/types/ExternalFolderSyncInfo.d.ts +18 -0
  43. package/api/types/ExternalFolderSyncInfo.js +3 -0
  44. package/api/types/ExternalSyncType.d.ts +1 -0
  45. package/api/types/ExternalSyncType.js +3 -0
  46. package/api/types/GetConversationResponseModel.d.ts +1 -0
  47. package/api/types/GetKnowledgeBaseFileResponseModel.d.ts +2 -0
  48. package/api/types/GetKnowledgeBaseFolderResponseModel.d.ts +2 -0
  49. package/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -0
  50. package/api/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +2 -0
  51. package/api/types/InitPayload.d.ts +9 -0
  52. package/api/types/InitPayload.js +3 -0
  53. package/api/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +4 -1
  54. package/api/types/LiteralJsonSchemaProperty.d.ts +7 -5
  55. package/api/types/LiteralJsonSchemaPropertyConstantValue.d.ts +1 -1
  56. package/api/types/McpToolConfigOverrideInputInputOverridesValue.d.ts +4 -1
  57. package/api/types/McpToolConfigOverrideOutputInputOverridesValue.d.ts +4 -1
  58. package/api/types/OmitSchemaOverride.d.ts +1 -0
  59. package/api/types/OmitSchemaOverride.js +3 -0
  60. package/api/types/PingPayload.d.ts +7 -0
  61. package/api/types/PingPayload.js +3 -0
  62. package/api/types/PongPayload.d.ts +7 -0
  63. package/api/types/PongPayload.js +3 -0
  64. package/api/types/{ProcedureAtVersion.d.ts → ProcedureAtVersionInput.d.ts} +2 -1
  65. package/api/types/ProcedureAtVersionInput.js +3 -0
  66. package/api/types/ProcedureAtVersionOutput.d.ts +15 -0
  67. package/api/types/ProcedureAtVersionOutput.js +3 -0
  68. package/api/types/SoftTimeoutConfig.d.ts +5 -1
  69. package/api/types/SoftTimeoutConfigOverride.d.ts +1 -1
  70. package/api/types/SoftTimeoutConfigWorkflowOverride.d.ts +5 -1
  71. package/api/types/StartProcedureToolConfigInput.d.ts +4 -0
  72. package/api/types/StartProcedureToolConfigInput.js +3 -0
  73. package/api/types/StartProcedureToolConfigOutput.d.ts +4 -0
  74. package/api/types/StartProcedureToolConfigOutput.js +3 -0
  75. package/api/types/StartProcedureToolErrorStatus.d.ts +5 -0
  76. package/api/types/{LoadProcedureToolErrorStatus.js → StartProcedureToolErrorStatus.js} +2 -2
  77. package/api/types/SystemToolConfigInputParams.d.ts +4 -4
  78. package/api/types/SystemToolConfigOutputParams.d.ts +4 -4
  79. package/api/types/TextToDialogueWebsocketFinalAudioForTurn.d.ts +4 -0
  80. package/api/types/TextToDialogueWebsocketFinalAudioForTurn.js +3 -0
  81. package/api/types/TranscriptMessage.d.ts +10 -0
  82. package/api/types/TranscriptMessage.js +3 -0
  83. package/api/types/TranscriptMessageRole.d.ts +6 -0
  84. package/api/types/TranscriptMessageRole.js +9 -0
  85. package/api/types/TurnConfig.d.ts +1 -0
  86. package/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
  87. package/api/types/UpdateBookingPageAppearanceParams.d.ts +3 -0
  88. package/api/types/UpdateBookingPageAppearanceParams.js +3 -0
  89. package/api/types/UrlSecretAuthResponse.d.ts +7 -0
  90. package/api/types/UrlSecretAuthResponse.js +3 -0
  91. package/api/types/UserTranscriptPayload.d.ts +20 -0
  92. package/api/types/UserTranscriptPayload.js +3 -0
  93. package/api/types/WebhookUsageType.d.ts +1 -0
  94. package/api/types/WebhookUsageType.js +1 -0
  95. package/api/types/index.d.ts +21 -4
  96. package/api/types/index.js +21 -4
  97. package/dist/BaseClient.js +2 -2
  98. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.d.ts +4 -1
  99. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.d.ts +4 -1
  100. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +4 -4
  101. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +4 -4
  102. package/dist/api/resources/dubbing/client/Client.js +0 -3
  103. package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +0 -2
  104. package/dist/api/resources/index.d.ts +2 -0
  105. package/dist/api/resources/index.js +3 -1
  106. package/dist/api/resources/speechEngineUpstream/index.d.ts +1 -0
  107. package/dist/api/resources/speechEngineUpstream/index.js +17 -0
  108. package/dist/api/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.d.ts +5 -0
  109. package/dist/api/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.js +3 -0
  110. package/dist/api/resources/speechEngineUpstream/types/SendUpstreamMessage.d.ts +5 -0
  111. package/dist/api/resources/speechEngineUpstream/types/SendUpstreamMessage.js +3 -0
  112. package/dist/api/resources/speechEngineUpstream/types/index.d.ts +2 -0
  113. package/dist/api/resources/speechEngineUpstream/types/index.js +18 -0
  114. package/dist/api/resources/textToDialogue/client/Client.d.ts +1 -0
  115. package/dist/api/resources/textToDialogue/client/Client.js +17 -4
  116. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +3 -0
  117. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +2 -0
  118. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +2 -0
  119. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +3 -0
  120. package/dist/api/resources/v1TextToDialogueStreamInput/types/ReceiveTextToDialogueWebsocketMessage.d.ts +1 -1
  121. package/dist/api/resources/voices/client/Client.d.ts +29 -29
  122. package/dist/api/resources/voices/client/Client.js +105 -105
  123. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +4 -1
  124. package/dist/api/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +4 -1
  125. package/dist/api/resources/workspaces/resources/apiKeys/client/Client.d.ts +1 -1
  126. package/dist/api/resources/workspaces/resources/apiKeys/client/Client.js +1 -1
  127. package/dist/api/types/AgentResponsePayload.d.ts +25 -0
  128. package/dist/api/types/AgentResponsePayload.js +3 -0
  129. package/dist/api/types/AnalysisProperty.d.ts +6 -4
  130. package/dist/api/types/AnalysisPropertyConstantValue.d.ts +1 -1
  131. package/dist/api/types/ApiIntegrationWebhookOverridesSchemaOverridesValue.d.ts +4 -1
  132. package/dist/api/types/AsrProvider.d.ts +2 -0
  133. package/dist/api/types/AsrProvider.js +2 -0
  134. package/dist/api/types/BaseTurnConfig.d.ts +1 -0
  135. package/dist/api/types/ClosePayload.d.ts +7 -0
  136. package/dist/api/types/ClosePayload.js +3 -0
  137. package/dist/api/types/DirectPublishingReadResponseModel.d.ts +1 -0
  138. package/dist/api/types/ErrorPayload.d.ts +9 -0
  139. package/dist/api/types/ErrorPayload.js +3 -0
  140. package/dist/api/types/ExternalFileSyncInfo.d.ts +20 -0
  141. package/dist/api/types/ExternalFileSyncInfo.js +3 -0
  142. package/dist/api/types/ExternalFolderSyncInfo.d.ts +18 -0
  143. package/dist/api/types/ExternalFolderSyncInfo.js +3 -0
  144. package/dist/api/types/ExternalSyncType.d.ts +1 -0
  145. package/dist/api/types/ExternalSyncType.js +3 -0
  146. package/dist/api/types/GetConversationResponseModel.d.ts +1 -0
  147. package/dist/api/types/GetKnowledgeBaseFileResponseModel.d.ts +2 -0
  148. package/dist/api/types/GetKnowledgeBaseFolderResponseModel.d.ts +2 -0
  149. package/dist/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -0
  150. package/dist/api/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +2 -0
  151. package/dist/api/types/InitPayload.d.ts +9 -0
  152. package/dist/api/types/InitPayload.js +3 -0
  153. package/dist/api/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +4 -1
  154. package/dist/api/types/LiteralJsonSchemaProperty.d.ts +7 -5
  155. package/dist/api/types/LiteralJsonSchemaPropertyConstantValue.d.ts +1 -1
  156. package/dist/api/types/McpToolConfigOverrideInputInputOverridesValue.d.ts +4 -1
  157. package/dist/api/types/McpToolConfigOverrideOutputInputOverridesValue.d.ts +4 -1
  158. package/dist/api/types/OmitSchemaOverride.d.ts +1 -0
  159. package/dist/api/types/OmitSchemaOverride.js +3 -0
  160. package/dist/api/types/PingPayload.d.ts +7 -0
  161. package/dist/api/types/PingPayload.js +3 -0
  162. package/dist/api/types/PongPayload.d.ts +7 -0
  163. package/dist/api/types/PongPayload.js +3 -0
  164. package/dist/api/types/{ProcedureAtVersion.d.ts → ProcedureAtVersionInput.d.ts} +2 -1
  165. package/dist/api/types/ProcedureAtVersionInput.js +3 -0
  166. package/dist/api/types/ProcedureAtVersionOutput.d.ts +15 -0
  167. package/dist/api/types/ProcedureAtVersionOutput.js +3 -0
  168. package/dist/api/types/SoftTimeoutConfig.d.ts +5 -1
  169. package/dist/api/types/SoftTimeoutConfigOverride.d.ts +1 -1
  170. package/dist/api/types/SoftTimeoutConfigWorkflowOverride.d.ts +5 -1
  171. package/dist/api/types/StartProcedureToolConfigInput.d.ts +4 -0
  172. package/dist/api/types/StartProcedureToolConfigInput.js +3 -0
  173. package/dist/api/types/StartProcedureToolConfigOutput.d.ts +4 -0
  174. package/dist/api/types/StartProcedureToolConfigOutput.js +3 -0
  175. package/dist/api/types/StartProcedureToolErrorStatus.d.ts +5 -0
  176. package/dist/api/types/{LoadProcedureToolErrorStatus.js → StartProcedureToolErrorStatus.js} +2 -2
  177. package/dist/api/types/SystemToolConfigInputParams.d.ts +4 -4
  178. package/dist/api/types/SystemToolConfigOutputParams.d.ts +4 -4
  179. package/dist/api/types/TextToDialogueWebsocketFinalAudioForTurn.d.ts +4 -0
  180. package/dist/api/types/TextToDialogueWebsocketFinalAudioForTurn.js +3 -0
  181. package/dist/api/types/TranscriptMessage.d.ts +10 -0
  182. package/dist/api/types/TranscriptMessage.js +3 -0
  183. package/dist/api/types/TranscriptMessageRole.d.ts +6 -0
  184. package/dist/api/types/TranscriptMessageRole.js +9 -0
  185. package/dist/api/types/TurnConfig.d.ts +1 -0
  186. package/dist/api/types/TurnConfigWorkflowOverride.d.ts +2 -0
  187. package/dist/api/types/UpdateBookingPageAppearanceParams.d.ts +3 -0
  188. package/dist/api/types/UpdateBookingPageAppearanceParams.js +3 -0
  189. package/dist/api/types/UrlSecretAuthResponse.d.ts +7 -0
  190. package/dist/api/types/UrlSecretAuthResponse.js +3 -0
  191. package/dist/api/types/UserTranscriptPayload.d.ts +20 -0
  192. package/dist/api/types/UserTranscriptPayload.js +3 -0
  193. package/dist/api/types/WebhookUsageType.d.ts +1 -0
  194. package/dist/api/types/WebhookUsageType.js +1 -0
  195. package/dist/api/types/index.d.ts +21 -4
  196. package/dist/api/types/index.js +21 -4
  197. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.d.ts +5 -1
  198. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.js +2 -0
  199. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.d.ts +5 -1
  200. package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.js +2 -0
  201. package/dist/serialization/resources/index.d.ts +2 -0
  202. package/dist/serialization/resources/index.js +3 -1
  203. package/dist/serialization/resources/speechEngineUpstream/index.d.ts +1 -0
  204. package/dist/serialization/resources/speechEngineUpstream/index.js +17 -0
  205. package/dist/serialization/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.d.ts +12 -0
  206. package/dist/serialization/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.js +50 -0
  207. package/dist/serialization/resources/speechEngineUpstream/types/SendUpstreamMessage.d.ts +9 -0
  208. package/dist/serialization/resources/speechEngineUpstream/types/SendUpstreamMessage.js +41 -0
  209. package/dist/serialization/resources/speechEngineUpstream/types/index.d.ts +2 -0
  210. package/dist/serialization/resources/speechEngineUpstream/types/index.js +18 -0
  211. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
  212. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
  213. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
  214. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
  215. package/dist/serialization/resources/v1TextToDialogueStreamInput/types/ReceiveTextToDialogueWebsocketMessage.d.ts +2 -1
  216. package/dist/serialization/resources/v1TextToDialogueStreamInput/types/ReceiveTextToDialogueWebsocketMessage.js +2 -0
  217. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +5 -1
  218. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.js +2 -0
  219. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +5 -1
  220. package/dist/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +2 -0
  221. package/dist/serialization/types/AgentResponsePayload.d.ts +12 -0
  222. package/dist/serialization/types/AgentResponsePayload.js +44 -0
  223. package/dist/serialization/types/AnalysisProperty.d.ts +1 -0
  224. package/dist/serialization/types/AnalysisProperty.js +1 -0
  225. package/dist/serialization/types/ApiIntegrationWebhookOverridesSchemaOverridesValue.d.ts +5 -1
  226. package/dist/serialization/types/ApiIntegrationWebhookOverridesSchemaOverridesValue.js +2 -0
  227. package/dist/serialization/types/BaseTurnConfig.d.ts +2 -0
  228. package/dist/serialization/types/BaseTurnConfig.js +2 -0
  229. package/dist/serialization/types/ClosePayload.d.ts +9 -0
  230. package/{serialization/types/LoadProcedureToolErrorStatus.js → dist/serialization/types/ClosePayload.js} +4 -2
  231. package/dist/serialization/types/DirectPublishingReadResponseModel.d.ts +1 -0
  232. package/dist/serialization/types/DirectPublishingReadResponseModel.js +1 -0
  233. package/dist/serialization/types/ErrorPayload.d.ts +10 -0
  234. package/dist/serialization/types/ErrorPayload.js +42 -0
  235. package/dist/serialization/types/ExternalFileSyncInfo.d.ts +16 -0
  236. package/dist/serialization/types/ExternalFileSyncInfo.js +48 -0
  237. package/dist/serialization/types/ExternalFolderSyncInfo.d.ts +15 -0
  238. package/dist/serialization/types/ExternalFolderSyncInfo.js +47 -0
  239. package/dist/serialization/types/ExternalSyncType.d.ts +7 -0
  240. package/dist/serialization/types/{LoadProcedureToolErrorStatus.js → ExternalSyncType.js} +2 -2
  241. package/dist/serialization/types/GetConversationResponseModel.d.ts +1 -0
  242. package/dist/serialization/types/GetConversationResponseModel.js +1 -0
  243. package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +3 -0
  244. package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.js +3 -0
  245. package/dist/serialization/types/GetKnowledgeBaseFolderResponseModel.d.ts +3 -0
  246. package/dist/serialization/types/GetKnowledgeBaseFolderResponseModel.js +3 -0
  247. package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +3 -0
  248. package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +3 -0
  249. package/dist/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +3 -0
  250. package/dist/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.js +3 -0
  251. package/dist/serialization/types/InitPayload.d.ts +10 -0
  252. package/dist/serialization/types/InitPayload.js +42 -0
  253. package/dist/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +5 -1
  254. package/dist/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.js +2 -0
  255. package/dist/serialization/types/LiteralJsonSchemaProperty.d.ts +1 -0
  256. package/dist/serialization/types/LiteralJsonSchemaProperty.js +1 -0
  257. package/dist/serialization/types/McpToolConfigOverrideInputInputOverridesValue.d.ts +5 -1
  258. package/dist/serialization/types/McpToolConfigOverrideInputInputOverridesValue.js +2 -0
  259. package/dist/serialization/types/McpToolConfigOverrideOutputInputOverridesValue.d.ts +5 -1
  260. package/dist/serialization/types/McpToolConfigOverrideOutputInputOverridesValue.js +2 -0
  261. package/dist/serialization/types/OmitSchemaOverride.d.ts +7 -0
  262. package/dist/serialization/types/OmitSchemaOverride.js +39 -0
  263. package/dist/serialization/types/PingPayload.d.ts +9 -0
  264. package/dist/serialization/types/PingPayload.js +41 -0
  265. package/dist/serialization/types/PongPayload.d.ts +9 -0
  266. package/dist/serialization/types/PongPayload.js +41 -0
  267. package/{serialization/types/ProcedureAtVersion.d.ts → dist/serialization/types/ProcedureAtVersionInput.d.ts} +4 -2
  268. package/{serialization/types/ProcedureAtVersion.js → dist/serialization/types/ProcedureAtVersionInput.js} +4 -2
  269. package/dist/serialization/types/ProcedureAtVersionOutput.d.ts +17 -0
  270. package/dist/serialization/types/ProcedureAtVersionOutput.js +49 -0
  271. package/dist/serialization/types/SoftTimeoutConfig.d.ts +2 -0
  272. package/dist/serialization/types/SoftTimeoutConfig.js +2 -0
  273. package/dist/serialization/types/SoftTimeoutConfigWorkflowOverride.d.ts +2 -0
  274. package/dist/serialization/types/SoftTimeoutConfigWorkflowOverride.js +2 -0
  275. package/dist/serialization/types/StartProcedureToolConfigInput.d.ts +10 -0
  276. package/dist/serialization/types/{LoadProcedureToolConfigOutput.js → StartProcedureToolConfigInput.js} +4 -4
  277. package/dist/serialization/types/StartProcedureToolConfigOutput.d.ts +10 -0
  278. package/dist/serialization/types/{LoadProcedureToolConfigInput.js → StartProcedureToolConfigOutput.js} +4 -4
  279. package/dist/serialization/types/StartProcedureToolErrorStatus.d.ts +7 -0
  280. package/dist/serialization/types/StartProcedureToolErrorStatus.js +39 -0
  281. package/dist/serialization/types/SystemToolConfigInputParams.d.ts +5 -5
  282. package/dist/serialization/types/SystemToolConfigInputParams.js +2 -2
  283. package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +5 -5
  284. package/dist/serialization/types/SystemToolConfigOutputParams.js +2 -2
  285. package/dist/serialization/types/TextToDialogueWebsocketFinalAudioForTurn.d.ts +9 -0
  286. package/dist/serialization/types/TextToDialogueWebsocketFinalAudioForTurn.js +41 -0
  287. package/dist/serialization/types/TranscriptMessage.d.ts +11 -0
  288. package/dist/serialization/types/TranscriptMessage.js +43 -0
  289. package/dist/serialization/types/TranscriptMessageRole.d.ts +7 -0
  290. package/dist/serialization/types/TranscriptMessageRole.js +39 -0
  291. package/dist/serialization/types/TurnConfig.d.ts +2 -0
  292. package/dist/serialization/types/TurnConfig.js +2 -0
  293. package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -0
  294. package/dist/serialization/types/TurnConfigWorkflowOverride.js +2 -0
  295. package/dist/serialization/types/UpdateBookingPageAppearanceParams.d.ts +9 -0
  296. package/dist/serialization/types/UpdateBookingPageAppearanceParams.js +41 -0
  297. package/dist/serialization/types/UrlSecretAuthResponse.d.ts +13 -0
  298. package/dist/serialization/types/UrlSecretAuthResponse.js +45 -0
  299. package/dist/serialization/types/UserTranscriptPayload.d.ts +12 -0
  300. package/dist/serialization/types/UserTranscriptPayload.js +44 -0
  301. package/dist/serialization/types/WebhookUsageType.d.ts +1 -1
  302. package/dist/serialization/types/WebhookUsageType.js +1 -0
  303. package/dist/serialization/types/index.d.ts +21 -4
  304. package/dist/serialization/types/index.js +21 -4
  305. package/dist/version.d.ts +1 -1
  306. package/dist/version.js +1 -1
  307. package/package.json +1 -1
  308. package/reference.md +45 -43
  309. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.d.ts +5 -1
  310. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.js +2 -0
  311. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.d.ts +5 -1
  312. package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.js +2 -0
  313. package/serialization/resources/index.d.ts +2 -0
  314. package/serialization/resources/index.js +3 -1
  315. package/serialization/resources/speechEngineUpstream/index.d.ts +1 -0
  316. package/serialization/resources/speechEngineUpstream/index.js +17 -0
  317. package/serialization/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.d.ts +12 -0
  318. package/serialization/resources/speechEngineUpstream/types/ReceiveUpstreamMessage.js +50 -0
  319. package/serialization/resources/speechEngineUpstream/types/SendUpstreamMessage.d.ts +9 -0
  320. package/serialization/resources/speechEngineUpstream/types/SendUpstreamMessage.js +41 -0
  321. package/serialization/resources/speechEngineUpstream/types/index.d.ts +2 -0
  322. package/serialization/resources/speechEngineUpstream/types/index.js +18 -0
  323. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
  324. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
  325. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
  326. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
  327. package/serialization/resources/v1TextToDialogueStreamInput/types/ReceiveTextToDialogueWebsocketMessage.d.ts +2 -1
  328. package/serialization/resources/v1TextToDialogueStreamInput/types/ReceiveTextToDialogueWebsocketMessage.js +2 -0
  329. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.d.ts +5 -1
  330. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsCreateResponse.js +2 -0
  331. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.d.ts +5 -1
  332. package/serialization/resources/workspace/resources/authConnections/types/AuthConnectionsUpdateResponse.js +2 -0
  333. package/serialization/types/AgentResponsePayload.d.ts +12 -0
  334. package/serialization/types/AgentResponsePayload.js +44 -0
  335. package/serialization/types/AnalysisProperty.d.ts +1 -0
  336. package/serialization/types/AnalysisProperty.js +1 -0
  337. package/serialization/types/ApiIntegrationWebhookOverridesSchemaOverridesValue.d.ts +5 -1
  338. package/serialization/types/ApiIntegrationWebhookOverridesSchemaOverridesValue.js +2 -0
  339. package/serialization/types/BaseTurnConfig.d.ts +2 -0
  340. package/serialization/types/BaseTurnConfig.js +2 -0
  341. package/serialization/types/ClosePayload.d.ts +9 -0
  342. package/serialization/types/ClosePayload.js +41 -0
  343. package/serialization/types/DirectPublishingReadResponseModel.d.ts +1 -0
  344. package/serialization/types/DirectPublishingReadResponseModel.js +1 -0
  345. package/serialization/types/ErrorPayload.d.ts +10 -0
  346. package/serialization/types/ErrorPayload.js +42 -0
  347. package/serialization/types/ExternalFileSyncInfo.d.ts +16 -0
  348. package/serialization/types/ExternalFileSyncInfo.js +48 -0
  349. package/serialization/types/ExternalFolderSyncInfo.d.ts +15 -0
  350. package/serialization/types/ExternalFolderSyncInfo.js +47 -0
  351. package/serialization/types/ExternalSyncType.d.ts +7 -0
  352. package/serialization/types/ExternalSyncType.js +39 -0
  353. package/serialization/types/GetConversationResponseModel.d.ts +1 -0
  354. package/serialization/types/GetConversationResponseModel.js +1 -0
  355. package/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +3 -0
  356. package/serialization/types/GetKnowledgeBaseFileResponseModel.js +3 -0
  357. package/serialization/types/GetKnowledgeBaseFolderResponseModel.d.ts +3 -0
  358. package/serialization/types/GetKnowledgeBaseFolderResponseModel.js +3 -0
  359. package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +3 -0
  360. package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +3 -0
  361. package/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.d.ts +3 -0
  362. package/serialization/types/GetKnowledgeBaseSummaryFolderResponseModel.js +3 -0
  363. package/serialization/types/InitPayload.d.ts +10 -0
  364. package/serialization/types/InitPayload.js +42 -0
  365. package/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.d.ts +5 -1
  366. package/serialization/types/ListAuthConnectionsResponseAuthConnectionsItem.js +2 -0
  367. package/serialization/types/LiteralJsonSchemaProperty.d.ts +1 -0
  368. package/serialization/types/LiteralJsonSchemaProperty.js +1 -0
  369. package/serialization/types/McpToolConfigOverrideInputInputOverridesValue.d.ts +5 -1
  370. package/serialization/types/McpToolConfigOverrideInputInputOverridesValue.js +2 -0
  371. package/serialization/types/McpToolConfigOverrideOutputInputOverridesValue.d.ts +5 -1
  372. package/serialization/types/McpToolConfigOverrideOutputInputOverridesValue.js +2 -0
  373. package/serialization/types/OmitSchemaOverride.d.ts +7 -0
  374. package/serialization/types/OmitSchemaOverride.js +39 -0
  375. package/serialization/types/PingPayload.d.ts +9 -0
  376. package/serialization/types/PingPayload.js +41 -0
  377. package/serialization/types/PongPayload.d.ts +9 -0
  378. package/serialization/types/PongPayload.js +41 -0
  379. package/{dist/serialization/types/ProcedureAtVersion.d.ts → serialization/types/ProcedureAtVersionInput.d.ts} +4 -2
  380. package/{dist/serialization/types/ProcedureAtVersion.js → serialization/types/ProcedureAtVersionInput.js} +4 -2
  381. package/serialization/types/ProcedureAtVersionOutput.d.ts +17 -0
  382. package/serialization/types/ProcedureAtVersionOutput.js +49 -0
  383. package/serialization/types/SoftTimeoutConfig.d.ts +2 -0
  384. package/serialization/types/SoftTimeoutConfig.js +2 -0
  385. package/serialization/types/SoftTimeoutConfigWorkflowOverride.d.ts +2 -0
  386. package/serialization/types/SoftTimeoutConfigWorkflowOverride.js +2 -0
  387. package/serialization/types/StartProcedureToolConfigInput.d.ts +10 -0
  388. package/serialization/types/{LoadProcedureToolConfigOutput.js → StartProcedureToolConfigInput.js} +4 -4
  389. package/serialization/types/StartProcedureToolConfigOutput.d.ts +10 -0
  390. package/serialization/types/{LoadProcedureToolConfigInput.js → StartProcedureToolConfigOutput.js} +4 -4
  391. package/serialization/types/StartProcedureToolErrorStatus.d.ts +7 -0
  392. package/serialization/types/StartProcedureToolErrorStatus.js +39 -0
  393. package/serialization/types/SystemToolConfigInputParams.d.ts +5 -5
  394. package/serialization/types/SystemToolConfigInputParams.js +2 -2
  395. package/serialization/types/SystemToolConfigOutputParams.d.ts +5 -5
  396. package/serialization/types/SystemToolConfigOutputParams.js +2 -2
  397. package/serialization/types/TextToDialogueWebsocketFinalAudioForTurn.d.ts +9 -0
  398. package/serialization/types/TextToDialogueWebsocketFinalAudioForTurn.js +41 -0
  399. package/serialization/types/TranscriptMessage.d.ts +11 -0
  400. package/serialization/types/TranscriptMessage.js +43 -0
  401. package/serialization/types/TranscriptMessageRole.d.ts +7 -0
  402. package/serialization/types/TranscriptMessageRole.js +39 -0
  403. package/serialization/types/TurnConfig.d.ts +2 -0
  404. package/serialization/types/TurnConfig.js +2 -0
  405. package/serialization/types/TurnConfigWorkflowOverride.d.ts +2 -0
  406. package/serialization/types/TurnConfigWorkflowOverride.js +2 -0
  407. package/serialization/types/UpdateBookingPageAppearanceParams.d.ts +9 -0
  408. package/serialization/types/UpdateBookingPageAppearanceParams.js +41 -0
  409. package/serialization/types/UrlSecretAuthResponse.d.ts +13 -0
  410. package/serialization/types/UrlSecretAuthResponse.js +45 -0
  411. package/serialization/types/UserTranscriptPayload.d.ts +12 -0
  412. package/serialization/types/UserTranscriptPayload.js +44 -0
  413. package/serialization/types/WebhookUsageType.d.ts +1 -1
  414. package/serialization/types/WebhookUsageType.js +1 -0
  415. package/serialization/types/index.d.ts +21 -4
  416. package/serialization/types/index.js +21 -4
  417. package/version.d.ts +1 -1
  418. package/version.js +1 -1
  419. package/api/types/LoadProcedureToolConfigInput.d.ts +0 -4
  420. package/api/types/LoadProcedureToolConfigOutput.d.ts +0 -4
  421. package/api/types/LoadProcedureToolErrorStatus.d.ts +0 -5
  422. package/dist/api/types/LoadProcedureToolConfigInput.d.ts +0 -4
  423. package/dist/api/types/LoadProcedureToolConfigOutput.d.ts +0 -4
  424. package/dist/api/types/LoadProcedureToolErrorStatus.d.ts +0 -5
  425. package/dist/serialization/types/LoadProcedureToolConfigInput.d.ts +0 -10
  426. package/dist/serialization/types/LoadProcedureToolConfigOutput.d.ts +0 -10
  427. package/dist/serialization/types/LoadProcedureToolErrorStatus.d.ts +0 -7
  428. package/serialization/types/LoadProcedureToolConfigInput.d.ts +0 -10
  429. package/serialization/types/LoadProcedureToolConfigOutput.d.ts +0 -10
  430. package/serialization/types/LoadProcedureToolErrorStatus.d.ts +0 -7
  431. /package/api/{types/LoadProcedureToolConfigInput.js → resources/speechEngineUpstream/types/ReceiveUpstreamMessage.js} +0 -0
  432. /package/api/{types/LoadProcedureToolConfigOutput.js → resources/speechEngineUpstream/types/SendUpstreamMessage.js} +0 -0
  433. /package/api/types/{ProcedureAtVersion.js → AgentResponsePayload.js} +0 -0
  434. /package/{dist/api/types/LoadProcedureToolConfigInput.js → api/types/ClosePayload.js} +0 -0
  435. /package/{dist/api/types/LoadProcedureToolConfigOutput.js → api/types/ErrorPayload.js} +0 -0
  436. /package/{dist/api/types/ProcedureAtVersion.js → api/types/ExternalFileSyncInfo.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "cliVersion": "4.107.0",
2
+ "cliVersion": "5.44.13",
3
3
  "generatorName": "fernapi/fern-typescript-sdk",
4
4
  "generatorVersion": "3.36.0",
5
5
  "generatorConfig": {
@@ -36,5 +36,5 @@
36
36
  }
37
37
  }
38
38
  },
39
- "originGitCommit": "51be31bd935ae6baf559f650d291410a98e23a03"
39
+ "originGitCommit": "4afc44870a88a33f7162941603c2a1877b524643"
40
40
  }
package/.fern/replay.lock CHANGED
@@ -18,7 +18,13 @@ generations:
18
18
  cli_version: unknown
19
19
  generator_versions:
20
20
  fernapi/fern-typescript-sdk: 3.36.0
21
- current_generation: d93a154a0453a9207a0a9f62d22b67f914897d4f
21
+ - commit_sha: 88f9d53b433a2abb81defb87be32d83286aa8b2b
22
+ tree_hash: cbe7e351aad61e09afbf9ebab7d239a34331894d
23
+ timestamp: 2026-06-08T11:45:36.549Z
24
+ cli_version: unknown
25
+ generator_versions:
26
+ fernapi/fern-typescript-sdk: 3.36.0
27
+ current_generation: 88f9d53b433a2abb81defb87be32d83286aa8b2b
22
28
  patches:
23
29
  - id: patch-de61f83d
24
30
  content_hash: sha256:68befbb918546e173f9cace2b64df407a8af413e8c49f6e8d2ffca07f350cc85
@@ -195,7 +201,7 @@ patches:
195
201
  original_commit: f50f1558f741e331dd3949ded57771c012ef27ab
196
202
  original_message: Add missing methods and test (#399)
197
203
  original_author: Paul Asjes <paul.asjes@elevenlabs.io>
198
- base_generation: d93a154a0453a9207a0a9f62d22b67f914897d4f
204
+ base_generation: 88f9d53b433a2abb81defb87be32d83286aa8b2b
199
205
  files:
200
206
  - tests/unit/wrapper/music.test.ts
201
207
  patch_content: |
package/BaseClient.js CHANGED
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
41
41
  const headers = (0, headers_1.mergeHeaders)({
42
42
  "X-Fern-Language": "JavaScript",
43
43
  "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
44
- "X-Fern-SDK-Version": "2.51.0",
45
- "User-Agent": "@elevenlabs/elevenlabs-js/2.51.0",
44
+ "X-Fern-SDK-Version": "2.52.0",
45
+ "User-Agent": "@elevenlabs/elevenlabs-js/2.52.0",
46
46
  "X-Fern-Runtime": core.RUNTIME.type,
47
47
  "X-Fern-Runtime-Version": core.RUNTIME.version,
48
48
  "xi-api-key": options === null || options === void 0 ? void 0 : options.apiKey,
@@ -1,5 +1,5 @@
1
1
  import type * as ElevenLabs from "../../../../../../../index";
2
- export type McpToolConfigOverrideCreateRequestModelInputOverridesValue = ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.Constant | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.DynamicVariable | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.Llm;
2
+ export type McpToolConfigOverrideCreateRequestModelInputOverridesValue = ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.Constant | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.DynamicVariable | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.Llm | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideCreateRequestModelInputOverridesValue.Omit;
3
3
  export declare namespace McpToolConfigOverrideCreateRequestModelInputOverridesValue {
4
4
  interface Constant extends ElevenLabs.ConstantSchemaOverride {
5
5
  source: "constant";
@@ -10,4 +10,7 @@ export declare namespace McpToolConfigOverrideCreateRequestModelInputOverridesVa
10
10
  interface Llm extends ElevenLabs.LlmSchemaOverride {
11
11
  source: "llm";
12
12
  }
13
+ interface Omit extends ElevenLabs.OmitSchemaOverride {
14
+ source: "omit";
15
+ }
13
16
  }
@@ -1,5 +1,5 @@
1
1
  import type * as ElevenLabs from "../../../../../../../index";
2
- export type McpToolConfigOverrideUpdateRequestModelInputOverridesValue = ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.Constant | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.DynamicVariable | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.Llm;
2
+ export type McpToolConfigOverrideUpdateRequestModelInputOverridesValue = ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.Constant | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.DynamicVariable | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.Llm | ElevenLabs.conversationalAi.mcpServers.McpToolConfigOverrideUpdateRequestModelInputOverridesValue.Omit;
3
3
  export declare namespace McpToolConfigOverrideUpdateRequestModelInputOverridesValue {
4
4
  interface Constant extends ElevenLabs.ConstantSchemaOverride {
5
5
  source: "constant";
@@ -10,4 +10,7 @@ export declare namespace McpToolConfigOverrideUpdateRequestModelInputOverridesVa
10
10
  interface Llm extends ElevenLabs.LlmSchemaOverride {
11
11
  source: "llm";
12
12
  }
13
+ interface Omit extends ElevenLabs.OmitSchemaOverride {
14
+ source: "omit";
15
+ }
13
16
  }
@@ -44,7 +44,7 @@ export declare class PhoneNumbersClient {
44
44
  /**
45
45
  * Retrieve Phone Number details by ID
46
46
  *
47
- * @param {string} phone_number_id - The id of an agent. This is returned on agent creation.
47
+ * @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
48
48
  * @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
49
49
  *
50
50
  * @throws {@link ElevenLabs.UnprocessableEntityError}
@@ -57,7 +57,7 @@ export declare class PhoneNumbersClient {
57
57
  /**
58
58
  * Delete Phone Number by ID
59
59
  *
60
- * @param {string} phone_number_id - The id of an agent. This is returned on agent creation.
60
+ * @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
61
61
  * @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
62
62
  *
63
63
  * @throws {@link ElevenLabs.UnprocessableEntityError}
@@ -70,7 +70,7 @@ export declare class PhoneNumbersClient {
70
70
  /**
71
71
  * Update assigned agent of a phone number
72
72
  *
73
- * @param {string} phone_number_id - The id of an agent. This is returned on agent creation.
73
+ * @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
74
74
  * @param {ElevenLabs.conversationalAi.UpdatePhoneNumberRequest} request
75
75
  * @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
76
76
  *
@@ -84,7 +84,7 @@ export declare class PhoneNumbersClient {
84
84
  /**
85
85
  * Get SIP messages for a phone number
86
86
  *
87
- * @param {string} phone_number_id - The id of an agent. This is returned on agent creation.
87
+ * @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
88
88
  * @param {ElevenLabs.conversationalAi.PhoneNumbersGetSipMessagesRequest} request
89
89
  * @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
90
90
  *
@@ -179,7 +179,7 @@ class PhoneNumbersClient {
179
179
  /**
180
180
  * Retrieve Phone Number details by ID
181
181
  *
182
- * @param {string} phone_number_id - The id of an agent. This is returned on agent creation.
182
+ * @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
183
183
  * @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
184
184
  *
185
185
  * @throws {@link ElevenLabs.UnprocessableEntityError}
@@ -234,7 +234,7 @@ class PhoneNumbersClient {
234
234
  /**
235
235
  * Delete Phone Number by ID
236
236
  *
237
- * @param {string} phone_number_id - The id of an agent. This is returned on agent creation.
237
+ * @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
238
238
  * @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
239
239
  *
240
240
  * @throws {@link ElevenLabs.UnprocessableEntityError}
@@ -281,7 +281,7 @@ class PhoneNumbersClient {
281
281
  /**
282
282
  * Update assigned agent of a phone number
283
283
  *
284
- * @param {string} phone_number_id - The id of an agent. This is returned on agent creation.
284
+ * @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
285
285
  * @param {ElevenLabs.conversationalAi.UpdatePhoneNumberRequest} request
286
286
  * @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
287
287
  *
@@ -342,7 +342,7 @@ class PhoneNumbersClient {
342
342
  /**
343
343
  * Get SIP messages for a phone number
344
344
  *
345
- * @param {string} phone_number_id - The id of an agent. This is returned on agent creation.
345
+ * @param {string} phone_number_id - The phone number ID. This is returned when a phone number is imported.
346
346
  * @param {ElevenLabs.conversationalAi.PhoneNumbersGetSipMessagesRequest} request
347
347
  * @param {PhoneNumbersClient.RequestOptions} requestOptions - Request-specific configuration.
348
348
  *
@@ -241,9 +241,6 @@ class DubbingClient {
241
241
  if (request.csvFps != null) {
242
242
  _request.append("csv_fps", request.csvFps.toString());
243
243
  }
244
- if (request.hcaptchaToken != null) {
245
- _request.append("hcaptcha_token", request.hcaptchaToken);
246
- }
247
244
  const _maybeEncodedRequest = yield _request.getRequest();
248
245
  const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)(Object.assign({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
249
246
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
@@ -45,6 +45,4 @@ export interface BodyDubAVideoOrAnAudioFileV1DubbingPost {
45
45
  mode?: ElevenLabs.DubbingCreateRequestMode;
46
46
  /** Frames per second to use when parsing a CSV file for dubbing. If not provided, FPS will be inferred from timecodes. */
47
47
  csvFps?: number;
48
- /** HCaptcha token used to prevent spam, generated on the frontend either automatically or when the client solves the hCaptcha challenge. */
49
- hcaptchaToken?: string;
50
48
  }
@@ -29,6 +29,8 @@ export * as samples from "./samples";
29
29
  export * as serviceAccounts from "./serviceAccounts";
30
30
  export * as speechEngine from "./speechEngine";
31
31
  export * from "./speechEngine/client/requests";
32
+ export * as speechEngineUpstream from "./speechEngineUpstream";
33
+ export * from "./speechEngineUpstream/types";
32
34
  export * as speechToSpeech from "./speechToSpeech";
33
35
  export * from "./speechToSpeech/client/requests";
34
36
  export * from "./speechToSpeech/types";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.workspaces = exports.workspace = exports.webhooks = exports.voices = exports.v1TextToSpeechVoiceIdStreamInput = exports.v1TextToSpeechVoiceIdMultiStreamInput = exports.v1TextToDialogueStreamInput = exports.v1SpeechToTextRealtime = exports.v1RealtimeTranslation = exports.user = exports.usage = exports.tokens = exports.textToVoice = exports.textToSpeech = exports.textToSoundEffects = exports.textToDialogue = exports.studio = exports.speechToText = exports.speechToSpeech = exports.speechEngine = exports.serviceAccounts = exports.samples = exports.pronunciationDictionaries = exports.productions = exports.music = exports.models = exports.history = exports.forcedAlignment = exports.environmentVariables = exports.dubbing = exports.conversationalAi = exports.audioNative = exports.audioIsolation = void 0;
39
+ exports.workspaces = exports.workspace = exports.webhooks = exports.voices = exports.v1TextToSpeechVoiceIdStreamInput = exports.v1TextToSpeechVoiceIdMultiStreamInput = exports.v1TextToDialogueStreamInput = exports.v1SpeechToTextRealtime = exports.v1RealtimeTranslation = exports.user = exports.usage = exports.tokens = exports.textToVoice = exports.textToSpeech = exports.textToSoundEffects = exports.textToDialogue = exports.studio = exports.speechToText = exports.speechToSpeech = exports.speechEngineUpstream = exports.speechEngine = exports.serviceAccounts = exports.samples = exports.pronunciationDictionaries = exports.productions = exports.music = exports.models = exports.history = exports.forcedAlignment = exports.environmentVariables = exports.dubbing = exports.conversationalAi = exports.audioNative = exports.audioIsolation = void 0;
40
40
  exports.audioIsolation = __importStar(require("./audioIsolation"));
41
41
  __exportStar(require("./audioIsolation/client/requests"), exports);
42
42
  __exportStar(require("./audioIsolation/types"), exports);
@@ -68,6 +68,8 @@ exports.samples = __importStar(require("./samples"));
68
68
  exports.serviceAccounts = __importStar(require("./serviceAccounts"));
69
69
  exports.speechEngine = __importStar(require("./speechEngine"));
70
70
  __exportStar(require("./speechEngine/client/requests"), exports);
71
+ exports.speechEngineUpstream = __importStar(require("./speechEngineUpstream"));
72
+ __exportStar(require("./speechEngineUpstream/types"), exports);
71
73
  exports.speechToSpeech = __importStar(require("./speechToSpeech"));
72
74
  __exportStar(require("./speechToSpeech/client/requests"), exports);
73
75
  __exportStar(require("./speechToSpeech/types"), exports);
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,5 @@
1
+ import type * as ElevenLabs from "../../../index";
2
+ /**
3
+ * Receive messages sent by ElevenLabs to your server
4
+ */
5
+ export type ReceiveUpstreamMessage = ElevenLabs.InitPayload | ElevenLabs.UserTranscriptPayload | ElevenLabs.PingPayload | ElevenLabs.ClosePayload | ElevenLabs.ErrorPayload;
@@ -0,0 +1,5 @@
1
+ import type * as ElevenLabs from "../../../index";
2
+ /**
3
+ * Send messages from your server to the Speech Engine API
4
+ */
5
+ export type SendUpstreamMessage = ElevenLabs.AgentResponsePayload | ElevenLabs.PongPayload;
@@ -0,0 +1,2 @@
1
+ export * from "./ReceiveUpstreamMessage";
2
+ export * from "./SendUpstreamMessage";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ReceiveUpstreamMessage"), exports);
18
+ __exportStar(require("./SendUpstreamMessage"), exports);
@@ -38,6 +38,7 @@ export declare class TextToDialogueClient {
38
38
  * @example
39
39
  * await client.textToDialogue.convertWithTimestamps({
40
40
  * outputFormat: "alaw_8000",
41
+ * enableLogging: true,
41
42
  * inputs: [{
42
43
  * text: "Hello, how are you?",
43
44
  * voiceId: "bYTqZQo3Jz7LQtmGTgwi"
@@ -77,11 +77,14 @@ class TextToDialogueClient {
77
77
  __convert(request, requestOptions) {
78
78
  return __awaiter(this, void 0, void 0, function* () {
79
79
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
80
- const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
80
+ const { outputFormat, enableLogging } = request, _body = __rest(request, ["outputFormat", "enableLogging"]);
81
81
  const _queryParams = {};
82
82
  if (outputFormat != null) {
83
83
  _queryParams.output_format = serializers.TextToDialogueConvertRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
84
84
  }
85
+ if (enableLogging != null) {
86
+ _queryParams.enable_logging = enableLogging.toString();
87
+ }
85
88
  const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
86
89
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
87
90
  url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/text-to-dialogue"),
@@ -128,13 +131,16 @@ class TextToDialogueClient {
128
131
  __stream(request, requestOptions) {
129
132
  return __awaiter(this, void 0, void 0, function* () {
130
133
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
131
- const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
134
+ const { outputFormat, enableLogging } = request, _body = __rest(request, ["outputFormat", "enableLogging"]);
132
135
  const _queryParams = {};
133
136
  if (outputFormat != null) {
134
137
  _queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
135
138
  unrecognizedObjectKeys: "strip",
136
139
  });
137
140
  }
141
+ if (enableLogging != null) {
142
+ _queryParams.enable_logging = enableLogging.toString();
143
+ }
138
144
  const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
139
145
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
140
146
  url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/text-to-dialogue/stream"),
@@ -180,13 +186,16 @@ class TextToDialogueClient {
180
186
  __streamWithTimestamps(request, requestOptions) {
181
187
  return __awaiter(this, void 0, void 0, function* () {
182
188
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
183
- const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
189
+ const { outputFormat, enableLogging } = request, _body = __rest(request, ["outputFormat", "enableLogging"]);
184
190
  const _queryParams = {};
185
191
  if (outputFormat != null) {
186
192
  _queryParams.output_format = serializers.AllowedOutputFormats.jsonOrThrow(outputFormat, {
187
193
  unrecognizedObjectKeys: "strip",
188
194
  });
189
195
  }
196
+ if (enableLogging != null) {
197
+ _queryParams.enable_logging = enableLogging.toString();
198
+ }
190
199
  const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
191
200
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
192
201
  url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/text-to-dialogue/stream/with-timestamps"),
@@ -252,6 +261,7 @@ class TextToDialogueClient {
252
261
  * @example
253
262
  * await client.textToDialogue.convertWithTimestamps({
254
263
  * outputFormat: "alaw_8000",
264
+ * enableLogging: true,
255
265
  * inputs: [{
256
266
  * text: "Hello, how are you?",
257
267
  * voiceId: "bYTqZQo3Jz7LQtmGTgwi"
@@ -267,11 +277,14 @@ class TextToDialogueClient {
267
277
  __convertWithTimestamps(request, requestOptions) {
268
278
  return __awaiter(this, void 0, void 0, function* () {
269
279
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
270
- const { outputFormat } = request, _body = __rest(request, ["outputFormat"]);
280
+ const { outputFormat, enableLogging } = request, _body = __rest(request, ["outputFormat", "enableLogging"]);
271
281
  const _queryParams = {};
272
282
  if (outputFormat != null) {
273
283
  _queryParams.output_format = serializers.TextToDialogueConvertWithTimestampsRequestOutputFormat.jsonOrThrow(outputFormat, { unrecognizedObjectKeys: "strip" });
274
284
  }
285
+ if (enableLogging != null) {
286
+ _queryParams.enable_logging = enableLogging.toString();
287
+ }
275
288
  const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
276
289
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
277
290
  url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/text-to-dialogue/with-timestamps"),
@@ -3,6 +3,7 @@ import type * as ElevenLabs from "../../../../index";
3
3
  * @example
4
4
  * {
5
5
  * outputFormat: "alaw_8000",
6
+ * enableLogging: true,
6
7
  * inputs: [{
7
8
  * text: "Hello, how are you?",
8
9
  * voiceId: "bYTqZQo3Jz7LQtmGTgwi"
@@ -15,6 +16,8 @@ import type * as ElevenLabs from "../../../../index";
15
16
  export interface BodyTextToDialogueFullWithTimestamps {
16
17
  /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM and WAV formats with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
17
18
  outputFormat?: ElevenLabs.TextToDialogueConvertWithTimestampsRequestOutputFormat;
19
+ /** When enable_logging is set to false zero retention mode will be used for the request. This will mean history features are unavailable for this request, including request stitching. Zero retention mode may only be used by enterprise customers. */
20
+ enableLogging?: boolean;
18
21
  /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. The maximum number of unique voice IDs is 10. For reliable generation, keep the total character count across all `inputs[].text` values at or below 2,000 characters per request. Longer requests can terminate early in streaming responses or return a validation error. */
19
22
  inputs: ElevenLabs.DialogueInput[];
20
23
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
@@ -14,6 +14,8 @@ import type * as ElevenLabs from "../../../../index";
14
14
  export interface BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost {
15
15
  /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
16
16
  outputFormat?: ElevenLabs.AllowedOutputFormats;
17
+ /** When enable_logging is set to false zero retention mode will be used for the request. This will mean history features are unavailable for this request, including request stitching. Zero retention mode may only be used by enterprise customers. */
18
+ enableLogging?: boolean;
17
19
  /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. The maximum number of unique voice IDs is 10. For reliable generation, keep the total character count across all `inputs[].text` values at or below 2,000 characters per request. Longer requests can terminate early in streaming responses or return a validation error. */
18
20
  inputs: ElevenLabs.DialogueInput[];
19
21
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
@@ -14,6 +14,8 @@ import type * as ElevenLabs from "../../../../index";
14
14
  export interface BodyTextToDialogueMultiVoiceV1TextToDialoguePost {
15
15
  /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM and WAV formats with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
16
16
  outputFormat?: ElevenLabs.TextToDialogueConvertRequestOutputFormat;
17
+ /** When enable_logging is set to false zero retention mode will be used for the request. This will mean history features are unavailable for this request, including request stitching. Zero retention mode may only be used by enterprise customers. */
18
+ enableLogging?: boolean;
17
19
  /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. The maximum number of unique voice IDs is 10. For reliable generation, keep the total character count across all `inputs[].text` values at or below 2,000 characters per request. Longer requests can terminate early in streaming responses or return a validation error. */
18
20
  inputs: ElevenLabs.DialogueInput[];
19
21
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
@@ -3,6 +3,7 @@ import type * as ElevenLabs from "../../../../index";
3
3
  * @example
4
4
  * {
5
5
  * outputFormat: "mp3_22050_32",
6
+ * enableLogging: true,
6
7
  * inputs: [{
7
8
  * text: "Hello, how are you?",
8
9
  * voiceId: "bYTqZQo3Jz7LQtmGTgwi"
@@ -15,6 +16,8 @@ import type * as ElevenLabs from "../../../../index";
15
16
  export interface BodyTextToDialogueStreamWithTimestamps {
16
17
  /** Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs. */
17
18
  outputFormat?: ElevenLabs.AllowedOutputFormats;
19
+ /** When enable_logging is set to false zero retention mode will be used for the request. This will mean history features are unavailable for this request, including request stitching. Zero retention mode may only be used by enterprise customers. */
20
+ enableLogging?: boolean;
18
21
  /** A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. The maximum number of unique voice IDs is 10. For reliable generation, keep the total character count across all `inputs[].text` values at or below 2,000 characters per request. Longer requests can terminate early in streaming responses or return a validation error. */
19
22
  inputs: ElevenLabs.DialogueInput[];
20
23
  /** Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property. */
@@ -2,4 +2,4 @@ import type * as ElevenLabs from "../../../index";
2
2
  /**
3
3
  * Receive JSON audio chunks, a final marker, or an error payload from the Text to Dialogue WebSocket.
4
4
  */
5
- export type ReceiveTextToDialogueWebsocketMessage = ElevenLabs.TextToDialogueWebsocketAudioChunk | ElevenLabs.TextToDialogueWebsocketFinal | ElevenLabs.TextToDialogueWebsocketError;
5
+ export type ReceiveTextToDialogueWebsocketMessage = ElevenLabs.TextToDialogueWebsocketAudioChunk | ElevenLabs.TextToDialogueWebsocketFinalAudioForTurn | ElevenLabs.TextToDialogueWebsocketFinal | ElevenLabs.TextToDialogueWebsocketError;
@@ -22,6 +22,35 @@ export declare class VoicesClient {
22
22
  get ivc(): IvcClient;
23
23
  get pvc(): PvcClient;
24
24
  get samples(): SamplesClient;
25
+ /**
26
+ * Returns metadata about a specific voice.
27
+ *
28
+ * @param {string} voice_id - ID of the voice to be used. You can use the [Get voices](/docs/api-reference/voices/search) endpoint list all the available voices.
29
+ * @param {ElevenLabs.VoicesGetRequest} request
30
+ * @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
31
+ *
32
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
33
+ *
34
+ * @example
35
+ * await client.voices.get("21m00Tcm4TlvDq8ikWAM", {
36
+ * withSettings: true
37
+ * })
38
+ */
39
+ get(voice_id: string, request?: ElevenLabs.VoicesGetRequest, requestOptions?: VoicesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.Voice>;
40
+ private __get;
41
+ /**
42
+ * Deletes a voice by its ID.
43
+ *
44
+ * @param {string} voice_id - ID of the voice to be used. You can use the [Get voices](/docs/api-reference/voices/search) endpoint list all the available voices.
45
+ * @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
46
+ *
47
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
48
+ *
49
+ * @example
50
+ * await client.voices.delete("21m00Tcm4TlvDq8ikWAM")
51
+ */
52
+ delete(voice_id: string, requestOptions?: VoicesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.DeleteVoiceResponseModel>;
53
+ private __delete;
25
54
  /**
26
55
  * Returns a list of all available voices for a user. Stops working once the user's workspace exceeds 500 voices.
27
56
  *
@@ -62,35 +91,6 @@ export declare class VoicesClient {
62
91
  */
63
92
  search(request?: ElevenLabs.VoicesSearchRequest, requestOptions?: VoicesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetVoicesV2Response>;
64
93
  private __search;
65
- /**
66
- * Returns metadata about a specific voice.
67
- *
68
- * @param {string} voice_id - ID of the voice to be used. You can use the [Get voices](/docs/api-reference/voices/search) endpoint list all the available voices.
69
- * @param {ElevenLabs.VoicesGetRequest} request
70
- * @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
71
- *
72
- * @throws {@link ElevenLabs.UnprocessableEntityError}
73
- *
74
- * @example
75
- * await client.voices.get("21m00Tcm4TlvDq8ikWAM", {
76
- * withSettings: true
77
- * })
78
- */
79
- get(voice_id: string, request?: ElevenLabs.VoicesGetRequest, requestOptions?: VoicesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.Voice>;
80
- private __get;
81
- /**
82
- * Deletes a voice by its ID.
83
- *
84
- * @param {string} voice_id - ID of the voice to be used. You can use the [Get voices](/docs/api-reference/voices/search) endpoint list all the available voices.
85
- * @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
86
- *
87
- * @throws {@link ElevenLabs.UnprocessableEntityError}
88
- *
89
- * @example
90
- * await client.voices.delete("21m00Tcm4TlvDq8ikWAM")
91
- */
92
- delete(voice_id: string, requestOptions?: VoicesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.DeleteVoiceResponseModel>;
93
- private __delete;
94
94
  /**
95
95
  * Edit a voice created by you.
96
96
  *