@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
@@ -78,32 +78,33 @@ class VoicesClient {
78
78
  return ((_a = this._samples) !== null && _a !== void 0 ? _a : (this._samples = new Client_3.SamplesClient(this._options)));
79
79
  }
80
80
  /**
81
- * Returns a list of all available voices for a user. Stops working once the user's workspace exceeds 500 voices.
81
+ * Returns metadata about a specific voice.
82
82
  *
83
- * @param {ElevenLabs.VoicesGetAllRequest} request
83
+ * @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.
84
+ * @param {ElevenLabs.VoicesGetRequest} request
84
85
  * @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
85
86
  *
86
87
  * @throws {@link ElevenLabs.UnprocessableEntityError}
87
88
  *
88
89
  * @example
89
- * await client.voices.getAll({
90
- * showLegacy: true
90
+ * await client.voices.get("21m00Tcm4TlvDq8ikWAM", {
91
+ * withSettings: true
91
92
  * })
92
93
  */
93
- getAll(request = {}, requestOptions) {
94
- return core.HttpResponsePromise.fromPromise(this.__getAll(request, requestOptions));
94
+ get(voice_id, request = {}, requestOptions) {
95
+ return core.HttpResponsePromise.fromPromise(this.__get(voice_id, request, requestOptions));
95
96
  }
96
- __getAll() {
97
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
97
+ __get(voice_id_1) {
98
+ return __awaiter(this, arguments, void 0, function* (voice_id, request = {}, requestOptions) {
98
99
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
99
- const { showLegacy } = request;
100
+ const { withSettings } = request;
100
101
  const _queryParams = {};
101
- if (showLegacy != null) {
102
- _queryParams.show_legacy = showLegacy.toString();
102
+ if (withSettings != null) {
103
+ _queryParams.with_settings = withSettings.toString();
103
104
  }
104
105
  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);
105
106
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
106
- 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/voices"),
107
+ 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/voices/${core.url.encodePathParam(voice_id)}`),
107
108
  method: "GET",
108
109
  headers: _headers,
109
110
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -115,7 +116,7 @@ class VoicesClient {
115
116
  });
116
117
  if (_response.ok) {
117
118
  return {
118
- data: serializers.GetVoicesResponse.parseOrThrow(_response.body, {
119
+ data: serializers.Voice.parseOrThrow(_response.body, {
119
120
  unrecognizedObjectKeys: "passthrough",
120
121
  allowUnrecognizedUnionMembers: true,
121
122
  allowUnrecognizedEnumValues: true,
@@ -136,84 +137,32 @@ class VoicesClient {
136
137
  });
137
138
  }
138
139
  }
139
- return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/voices");
140
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/voices/{voice_id}");
140
141
  });
141
142
  }
142
143
  /**
143
- * Gets a list of all available voices for a user with search, filtering and pagination.
144
+ * Deletes a voice by its ID.
144
145
  *
145
- * @param {ElevenLabs.VoicesSearchRequest} request
146
+ * @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.
146
147
  * @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
147
148
  *
148
149
  * @throws {@link ElevenLabs.UnprocessableEntityError}
149
150
  *
150
151
  * @example
151
- * await client.voices.search({
152
- * nextPageToken: "next_page_token",
153
- * pageSize: 1,
154
- * search: "search",
155
- * sort: "sort",
156
- * sortDirection: "sort_direction",
157
- * voiceType: "voice_type",
158
- * category: "category",
159
- * fineTuningState: "fine_tuning_state",
160
- * collectionId: "collection_id",
161
- * includeTotalCount: true,
162
- * voiceIds: ["voice_ids"]
163
- * })
152
+ * await client.voices.delete("21m00Tcm4TlvDq8ikWAM")
164
153
  */
165
- search(request = {}, requestOptions) {
166
- return core.HttpResponsePromise.fromPromise(this.__search(request, requestOptions));
154
+ delete(voice_id, requestOptions) {
155
+ return core.HttpResponsePromise.fromPromise(this.__delete(voice_id, requestOptions));
167
156
  }
168
- __search() {
169
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
157
+ __delete(voice_id, requestOptions) {
158
+ return __awaiter(this, void 0, void 0, function* () {
170
159
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
171
- const { nextPageToken, pageSize, search, sort, sortDirection, voiceType, category, fineTuningState, collectionId, includeTotalCount, voiceIds, } = request;
172
- const _queryParams = {};
173
- if (nextPageToken != null) {
174
- _queryParams.next_page_token = nextPageToken;
175
- }
176
- if (pageSize != null) {
177
- _queryParams.page_size = pageSize.toString();
178
- }
179
- if (search != null) {
180
- _queryParams.search = search;
181
- }
182
- if (sort != null) {
183
- _queryParams.sort = sort;
184
- }
185
- if (sortDirection != null) {
186
- _queryParams.sort_direction = sortDirection;
187
- }
188
- if (voiceType != null) {
189
- _queryParams.voice_type = voiceType;
190
- }
191
- if (category != null) {
192
- _queryParams.category = category;
193
- }
194
- if (fineTuningState != null) {
195
- _queryParams.fine_tuning_state = fineTuningState;
196
- }
197
- if (collectionId != null) {
198
- _queryParams.collection_id = collectionId;
199
- }
200
- if (includeTotalCount != null) {
201
- _queryParams.include_total_count = includeTotalCount.toString();
202
- }
203
- if (voiceIds != null) {
204
- if (Array.isArray(voiceIds)) {
205
- _queryParams.voice_ids = voiceIds.map((item) => item);
206
- }
207
- else {
208
- _queryParams.voice_ids = voiceIds;
209
- }
210
- }
211
160
  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);
212
161
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
213
- 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, "v2/voices"),
214
- method: "GET",
162
+ 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/voices/${core.url.encodePathParam(voice_id)}`),
163
+ method: "DELETE",
215
164
  headers: _headers,
216
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
165
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
217
166
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
218
167
  maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
219
168
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -222,7 +171,7 @@ class VoicesClient {
222
171
  });
223
172
  if (_response.ok) {
224
173
  return {
225
- data: serializers.GetVoicesV2Response.parseOrThrow(_response.body, {
174
+ data: serializers.DeleteVoiceResponseModel.parseOrThrow(_response.body, {
226
175
  unrecognizedObjectKeys: "passthrough",
227
176
  allowUnrecognizedUnionMembers: true,
228
177
  allowUnrecognizedEnumValues: true,
@@ -243,37 +192,36 @@ class VoicesClient {
243
192
  });
244
193
  }
245
194
  }
246
- return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v2/voices");
195
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/voices/{voice_id}");
247
196
  });
248
197
  }
249
198
  /**
250
- * Returns metadata about a specific voice.
199
+ * Returns a list of all available voices for a user. Stops working once the user's workspace exceeds 500 voices.
251
200
  *
252
- * @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.
253
- * @param {ElevenLabs.VoicesGetRequest} request
201
+ * @param {ElevenLabs.VoicesGetAllRequest} request
254
202
  * @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
255
203
  *
256
204
  * @throws {@link ElevenLabs.UnprocessableEntityError}
257
205
  *
258
206
  * @example
259
- * await client.voices.get("21m00Tcm4TlvDq8ikWAM", {
260
- * withSettings: true
207
+ * await client.voices.getAll({
208
+ * showLegacy: true
261
209
  * })
262
210
  */
263
- get(voice_id, request = {}, requestOptions) {
264
- return core.HttpResponsePromise.fromPromise(this.__get(voice_id, request, requestOptions));
211
+ getAll(request = {}, requestOptions) {
212
+ return core.HttpResponsePromise.fromPromise(this.__getAll(request, requestOptions));
265
213
  }
266
- __get(voice_id_1) {
267
- return __awaiter(this, arguments, void 0, function* (voice_id, request = {}, requestOptions) {
214
+ __getAll() {
215
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
268
216
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
269
- const { withSettings } = request;
217
+ const { showLegacy } = request;
270
218
  const _queryParams = {};
271
- if (withSettings != null) {
272
- _queryParams.with_settings = withSettings.toString();
219
+ if (showLegacy != null) {
220
+ _queryParams.show_legacy = showLegacy.toString();
273
221
  }
274
222
  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);
275
223
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
276
- 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/voices/${core.url.encodePathParam(voice_id)}`),
224
+ 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/voices"),
277
225
  method: "GET",
278
226
  headers: _headers,
279
227
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -285,7 +233,7 @@ class VoicesClient {
285
233
  });
286
234
  if (_response.ok) {
287
235
  return {
288
- data: serializers.Voice.parseOrThrow(_response.body, {
236
+ data: serializers.GetVoicesResponse.parseOrThrow(_response.body, {
289
237
  unrecognizedObjectKeys: "passthrough",
290
238
  allowUnrecognizedUnionMembers: true,
291
239
  allowUnrecognizedEnumValues: true,
@@ -306,32 +254,84 @@ class VoicesClient {
306
254
  });
307
255
  }
308
256
  }
309
- return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/voices/{voice_id}");
257
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/voices");
310
258
  });
311
259
  }
312
260
  /**
313
- * Deletes a voice by its ID.
261
+ * Gets a list of all available voices for a user with search, filtering and pagination.
314
262
  *
315
- * @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.
263
+ * @param {ElevenLabs.VoicesSearchRequest} request
316
264
  * @param {VoicesClient.RequestOptions} requestOptions - Request-specific configuration.
317
265
  *
318
266
  * @throws {@link ElevenLabs.UnprocessableEntityError}
319
267
  *
320
268
  * @example
321
- * await client.voices.delete("21m00Tcm4TlvDq8ikWAM")
269
+ * await client.voices.search({
270
+ * nextPageToken: "next_page_token",
271
+ * pageSize: 1,
272
+ * search: "search",
273
+ * sort: "sort",
274
+ * sortDirection: "sort_direction",
275
+ * voiceType: "voice_type",
276
+ * category: "category",
277
+ * fineTuningState: "fine_tuning_state",
278
+ * collectionId: "collection_id",
279
+ * includeTotalCount: true,
280
+ * voiceIds: ["voice_ids"]
281
+ * })
322
282
  */
323
- delete(voice_id, requestOptions) {
324
- return core.HttpResponsePromise.fromPromise(this.__delete(voice_id, requestOptions));
283
+ search(request = {}, requestOptions) {
284
+ return core.HttpResponsePromise.fromPromise(this.__search(request, requestOptions));
325
285
  }
326
- __delete(voice_id, requestOptions) {
327
- return __awaiter(this, void 0, void 0, function* () {
286
+ __search() {
287
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
328
288
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
289
+ const { nextPageToken, pageSize, search, sort, sortDirection, voiceType, category, fineTuningState, collectionId, includeTotalCount, voiceIds, } = request;
290
+ const _queryParams = {};
291
+ if (nextPageToken != null) {
292
+ _queryParams.next_page_token = nextPageToken;
293
+ }
294
+ if (pageSize != null) {
295
+ _queryParams.page_size = pageSize.toString();
296
+ }
297
+ if (search != null) {
298
+ _queryParams.search = search;
299
+ }
300
+ if (sort != null) {
301
+ _queryParams.sort = sort;
302
+ }
303
+ if (sortDirection != null) {
304
+ _queryParams.sort_direction = sortDirection;
305
+ }
306
+ if (voiceType != null) {
307
+ _queryParams.voice_type = voiceType;
308
+ }
309
+ if (category != null) {
310
+ _queryParams.category = category;
311
+ }
312
+ if (fineTuningState != null) {
313
+ _queryParams.fine_tuning_state = fineTuningState;
314
+ }
315
+ if (collectionId != null) {
316
+ _queryParams.collection_id = collectionId;
317
+ }
318
+ if (includeTotalCount != null) {
319
+ _queryParams.include_total_count = includeTotalCount.toString();
320
+ }
321
+ if (voiceIds != null) {
322
+ if (Array.isArray(voiceIds)) {
323
+ _queryParams.voice_ids = voiceIds.map((item) => item);
324
+ }
325
+ else {
326
+ _queryParams.voice_ids = voiceIds;
327
+ }
328
+ }
329
329
  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);
330
330
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
331
- 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/voices/${core.url.encodePathParam(voice_id)}`),
332
- method: "DELETE",
331
+ 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, "v2/voices"),
332
+ method: "GET",
333
333
  headers: _headers,
334
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
334
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
335
335
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
336
336
  maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
337
337
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -340,7 +340,7 @@ class VoicesClient {
340
340
  });
341
341
  if (_response.ok) {
342
342
  return {
343
- data: serializers.DeleteVoiceResponseModel.parseOrThrow(_response.body, {
343
+ data: serializers.GetVoicesV2Response.parseOrThrow(_response.body, {
344
344
  unrecognizedObjectKeys: "passthrough",
345
345
  allowUnrecognizedUnionMembers: true,
346
346
  allowUnrecognizedEnumValues: true,
@@ -361,7 +361,7 @@ class VoicesClient {
361
361
  });
362
362
  }
363
363
  }
364
- return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/voices/{voice_id}");
364
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v2/voices");
365
365
  });
366
366
  }
367
367
  /**
@@ -2,7 +2,7 @@ import type * as ElevenLabs from "../../../../../index";
2
2
  /**
3
3
  * The type of auth connection config
4
4
  */
5
- export type AuthConnectionsCreateResponse = ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsCreateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsCreateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsCreateResponse.WhatsappAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.SlackBotAuth;
5
+ export type AuthConnectionsCreateResponse = ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsCreateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsCreateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsCreateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsCreateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsCreateResponse.WhatsappAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.SlackBotAuth | ElevenLabs.workspace.AuthConnectionsCreateResponse.UrlSecret;
6
6
  export declare namespace AuthConnectionsCreateResponse {
7
7
  interface Oauth2ClientCredentials extends ElevenLabs.OAuth2ClientCredsResponse {
8
8
  authType: "oauth2_client_credentials";
@@ -37,4 +37,7 @@ export declare namespace AuthConnectionsCreateResponse {
37
37
  interface SlackBotAuth extends ElevenLabs.SlackBotAuthResponse {
38
38
  authType: "slack_bot_auth";
39
39
  }
40
+ interface UrlSecret extends ElevenLabs.UrlSecretAuthResponse {
41
+ authType: "url_secret";
42
+ }
40
43
  }
@@ -2,7 +2,7 @@ import type * as ElevenLabs from "../../../../../index";
2
2
  /**
3
3
  * The type of auth connection config
4
4
  */
5
- export type AuthConnectionsUpdateResponse = ElevenLabs.workspace.AuthConnectionsUpdateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsUpdateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsUpdateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsUpdateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsUpdateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsUpdateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsUpdateResponse.WhatsappAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.SlackBotAuth;
5
+ export type AuthConnectionsUpdateResponse = ElevenLabs.workspace.AuthConnectionsUpdateResponse.Oauth2ClientCredentials | ElevenLabs.workspace.AuthConnectionsUpdateResponse.BasicAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.BearerAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.Oauth2Jwt | ElevenLabs.workspace.AuthConnectionsUpdateResponse.PrivateKeyJwt | ElevenLabs.workspace.AuthConnectionsUpdateResponse.Mtls | ElevenLabs.workspace.AuthConnectionsUpdateResponse.CustomHeaderAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.ApiIntegrationOauth2AuthCode | ElevenLabs.workspace.AuthConnectionsUpdateResponse.ApiIntegrationOauth2CustomApp | ElevenLabs.workspace.AuthConnectionsUpdateResponse.WhatsappAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.SlackBotAuth | ElevenLabs.workspace.AuthConnectionsUpdateResponse.UrlSecret;
6
6
  export declare namespace AuthConnectionsUpdateResponse {
7
7
  interface Oauth2ClientCredentials extends ElevenLabs.OAuth2ClientCredsResponse {
8
8
  authType: "oauth2_client_credentials";
@@ -37,4 +37,7 @@ export declare namespace AuthConnectionsUpdateResponse {
37
37
  interface SlackBotAuth extends ElevenLabs.SlackBotAuthResponse {
38
38
  authType: "slack_bot_auth";
39
39
  }
40
+ interface UrlSecret extends ElevenLabs.UrlSecretAuthResponse {
41
+ authType: "url_secret";
42
+ }
40
43
  }
@@ -11,7 +11,7 @@ export declare class ApiKeysClient {
11
11
  protected readonly _options: NormalizedClientOptions<ApiKeysClient.Options>;
12
12
  constructor(options?: ApiKeysClient.Options);
13
13
  /**
14
- * Revoke the API key used to authenticate this request. Requires the query parameter `api_key_name=self` as an explicit confirmation.
14
+ * Revoke the API key used to authenticate this request. Requires the query parameter `api_key_name=self` as an explicit confirmation. This endpoint requires additional permissions and is not enabled by default. Reach out to your ElevenLabs contact to request access.
15
15
  *
16
16
  * @param {ElevenLabs.workspaces.ApiKeysRevokeRequest} request
17
17
  * @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class ApiKeysClient {
56
56
  this._options = (0, BaseClient_1.normalizeClientOptions)(options);
57
57
  }
58
58
  /**
59
- * Revoke the API key used to authenticate this request. Requires the query parameter `api_key_name=self` as an explicit confirmation.
59
+ * Revoke the API key used to authenticate this request. Requires the query parameter `api_key_name=self` as an explicit confirmation. This endpoint requires additional permissions and is not enabled by default. Reach out to your ElevenLabs contact to request access.
60
60
  *
61
61
  * @param {ElevenLabs.workspaces.ApiKeysRevokeRequest} request
62
62
  * @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Text chunk sent from your server to ElevenLabs for speech synthesis.
3
+ * Stream LLM output by sending multiple messages with `is_final: false`, then
4
+ * terminate the response with a message where `is_final: true` and `content` is
5
+ * an empty string.
6
+ */
7
+ export interface AgentResponsePayload {
8
+ /** The message type identifier. */
9
+ type: "agent_response";
10
+ /**
11
+ * The text to synthesize. For streaming responses, send incremental chunks here.
12
+ * The final message in a response must have an empty string (`""`).
13
+ */
14
+ content: string;
15
+ /**
16
+ * The `event_id` from the `user_transcript` this response addresses. ElevenLabs
17
+ * uses this to discard responses that belong to an interrupted turn.
18
+ */
19
+ eventId?: number;
20
+ /**
21
+ * Set to `true` on the last message of a response (with an empty `content`).
22
+ * Set to `false` on all preceding chunks.
23
+ */
24
+ isFinal: boolean;
25
+ }
@@ -7,16 +7,18 @@ import type * as ElevenLabs from "../index";
7
7
  */
8
8
  export interface AnalysisProperty {
9
9
  type: ElevenLabs.AnalysisPropertyType;
10
- /** The description of the property. When set, the LLM will provide the value based on this description. Mutually exclusive with dynamic_variable, is_system_provided, and constant_value. */
10
+ /** The description of the property. When set, the LLM will provide the value based on this description. Mutually exclusive with dynamic_variable, is_system_provided, constant_value, and is_omitted. */
11
11
  description?: string;
12
12
  /** List of allowed string values for string type parameters */
13
13
  enum?: string[];
14
- /** If true, the value will be populated by the system at runtime. Used by API Integration Webhook tools for templating. Mutually exclusive with description, dynamic_variable, and constant_value. */
14
+ /** If true, the value will be populated by the system at runtime. Used by API Integration Webhook tools for templating. Mutually exclusive with description, dynamic_variable, constant_value, and is_omitted. */
15
15
  isSystemProvided?: boolean;
16
- /** The name of the dynamic variable to use for this property's value. Mutually exclusive with description, is_system_provided, and constant_value. */
16
+ /** The name of the dynamic variable to use for this property's value. Mutually exclusive with description, is_system_provided, constant_value, and is_omitted. */
17
17
  dynamicVariable?: string;
18
- /** A constant value to use for this property. Mutually exclusive with description, dynamic_variable, and is_system_provided. */
18
+ /** A constant value to use for this property. Mutually exclusive with description, dynamic_variable, is_system_provided, and is_omitted. */
19
19
  constantValue?: ElevenLabs.AnalysisPropertyConstantValue;
20
+ /** If true, this parameter will be completely omitted from the request. Only valid for optional parameters. Mutually exclusive with description, dynamic_variable, is_system_provided, and constant_value. */
21
+ isOmitted?: boolean;
20
22
  /** LLM model to use for this analysis item. If not set, uses agent's analysis_llm default. */
21
23
  llm?: ElevenLabs.Llm;
22
24
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
- * A constant value to use for this property. Mutually exclusive with description, dynamic_variable, and is_system_provided.
2
+ * A constant value to use for this property. Mutually exclusive with description, dynamic_variable, is_system_provided, and is_omitted.
3
3
  */
4
4
  export type AnalysisPropertyConstantValue = string | number | number | boolean;
@@ -1,5 +1,5 @@
1
1
  import type * as ElevenLabs from "../index";
2
- export type ApiIntegrationWebhookOverridesSchemaOverridesValue = ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.Constant | ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.DynamicVariable | ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.Llm;
2
+ export type ApiIntegrationWebhookOverridesSchemaOverridesValue = ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.Constant | ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.DynamicVariable | ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.Llm | ElevenLabs.ApiIntegrationWebhookOverridesSchemaOverridesValue.Omit;
3
3
  export declare namespace ApiIntegrationWebhookOverridesSchemaOverridesValue {
4
4
  interface Constant extends ElevenLabs.ConstantSchemaOverride {
5
5
  source: "constant";
@@ -10,4 +10,7 @@ export declare namespace ApiIntegrationWebhookOverridesSchemaOverridesValue {
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,4 +1,6 @@
1
1
  export declare const AsrProvider: {
2
+ /**
3
+ * Deprecated: Use scribe_realtime instead. */
2
4
  readonly Elevenlabs: "elevenlabs";
3
5
  readonly ScribeRealtime: "scribe_realtime";
4
6
  };
@@ -3,6 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.AsrProvider = void 0;
5
5
  exports.AsrProvider = {
6
+ /**
7
+ * Deprecated: Use scribe_realtime instead. */
6
8
  Elevenlabs: "elevenlabs",
7
9
  ScribeRealtime: "scribe_realtime",
8
10
  };
@@ -14,4 +14,5 @@ export interface BaseTurnConfig {
14
14
  speculativeTurn?: boolean;
15
15
  /** When enabled, if VAD detects no speech, attempts to re-transcribe accumulated audio at turn timeout. Disables silence discount billing for affected turns. */
16
16
  retranscribeOnTurnTimeout?: boolean;
17
+ turnModel?: ElevenLabs.TurnModel;
17
18
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Payload indicating a clean end-of-conversation signal from ElevenLabs.
3
+ */
4
+ export interface ClosePayload {
5
+ /** The message type identifier. */
6
+ type: "close";
7
+ }
@@ -19,6 +19,7 @@ export interface DirectPublishingReadResponseModel {
19
19
  originalFileType?: string;
20
20
  targetAudience?: ElevenLabs.DirectPublishingReadResponseModelTargetAudience;
21
21
  matureContent?: boolean;
22
+ safesearchAdult?: boolean;
22
23
  origin?: string;
23
24
  publicationDate?: string;
24
25
  isbn?: string;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Payload for protocol-level errors sent by ElevenLabs before closing the connection.
3
+ */
4
+ export interface ErrorPayload {
5
+ /** The message type identifier. */
6
+ type: "error";
7
+ /** Human-readable description of the error. */
8
+ message: string;
9
+ }
@@ -0,0 +1,20 @@
1
+ import type * as ElevenLabs from "../index";
2
+ /**
3
+ * Tracks the link back to the original file in an external source.
4
+ */
5
+ export interface ExternalFileSyncInfo {
6
+ /** Provider identifier */
7
+ type: ElevenLabs.ExternalSyncType;
8
+ /** Entity ID in the external system */
9
+ sourceEntityId: string;
10
+ /** Integration connection instance ID */
11
+ integrationConnectionId: string;
12
+ /** Folder ID in the external system this file was synced from */
13
+ sourceParentEntityId: string;
14
+ /** Original MIME type in the external system */
15
+ sourceMimeType: string;
16
+ /** Last modified time from the external system */
17
+ sourceModifiedTime: Date;
18
+ /** KB folder ID of the sync root, used to query all entities under a sync tree */
19
+ rootFolderId?: string;
20
+ }
@@ -0,0 +1,18 @@
1
+ import type * as ElevenLabs from "../index";
2
+ /**
3
+ * Metadata for a KB folder that mirrors an external source folder.
4
+ */
5
+ export interface ExternalFolderSyncInfo {
6
+ /** Provider identifier */
7
+ type: ElevenLabs.ExternalSyncType;
8
+ /** Entity ID in the external system */
9
+ sourceEntityId: string;
10
+ /** Integration connection instance ID */
11
+ integrationConnectionId: string;
12
+ /** KB folder ID of the sync root. None means this folder is the root. */
13
+ rootFolderId?: string;
14
+ /** Opaque cursor for incremental sync, interpreted by the provider */
15
+ syncCursor?: string;
16
+ /** Unix timestamp of last completed sync */
17
+ lastSyncAt?: number;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type ExternalSyncType = "google_drive";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,6 +2,7 @@ import type * as ElevenLabs from "../index";
2
2
  export interface GetConversationResponseModel {
3
3
  agentId: string;
4
4
  agentName?: string;
5
+ conversationProduct?: string;
5
6
  status: ElevenLabs.GetConversationResponseModelStatus;
6
7
  userId?: string;
7
8
  branchId?: string;
@@ -11,4 +11,6 @@ export interface GetKnowledgeBaseFileResponseModel {
11
11
  folderPath?: ElevenLabs.KnowledgeBaseFolderPathSegmentResponseModel[];
12
12
  extractedInnerHtml: string;
13
13
  filename: string;
14
+ externalSyncInfo?: ElevenLabs.ExternalFileSyncInfo;
15
+ isFrozen?: boolean;
14
16
  }
@@ -11,4 +11,6 @@ export interface GetKnowledgeBaseFolderResponseModel {
11
11
  folderPath?: ElevenLabs.KnowledgeBaseFolderPathSegmentResponseModel[];
12
12
  childrenCount: number;
13
13
  autoSyncInfo?: ElevenLabs.AutoSyncInfo;
14
+ externalSyncInfo?: ElevenLabs.ExternalFolderSyncInfo;
15
+ isFrozen?: boolean;
14
16
  }
@@ -11,4 +11,6 @@ export interface GetKnowledgeBaseSummaryFileResponseModel {
11
11
  folderPath?: ElevenLabs.KnowledgeBaseFolderPathSegmentSummaryResponseModel[];
12
12
  /** This field is deprecated and will be removed in the future, use the separate endpoint to get dependent agents instead. */
13
13
  dependentAgents: ElevenLabs.GetKnowledgeBaseSummaryFileResponseModelDependentAgentsItem[];
14
+ externalSyncInfo?: ElevenLabs.ExternalFileSyncInfo;
15
+ isFrozen?: boolean;
14
16
  }
@@ -13,4 +13,6 @@ export interface GetKnowledgeBaseSummaryFolderResponseModel {
13
13
  dependentAgents: ElevenLabs.GetKnowledgeBaseSummaryFolderResponseModelDependentAgentsItem[];
14
14
  childrenCount: number;
15
15
  autoSyncInfo?: ElevenLabs.AutoSyncInfo;
16
+ externalSyncInfo?: ElevenLabs.ExternalFolderSyncInfo;
17
+ isFrozen?: boolean;
16
18
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Payload for the session initialisation message sent by ElevenLabs.
3
+ */
4
+ export interface InitPayload {
5
+ /** The message type identifier. */
6
+ type: "init";
7
+ /** Unique identifier for this conversation session. */
8
+ conversationId: string;
9
+ }