@elevenlabs/elevenlabs-js 2.22.0 → 2.23.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 (392) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +2 -0
  3. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -0
  4. package/api/resources/conversationalAi/resources/conversations/client/Client.js +17 -1
  5. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +8 -0
  6. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +2 -2
  7. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +7 -5
  8. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/{BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost.d.ts → ConversationFeedbackRequestModel.d.ts} +2 -2
  9. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/index.d.ts +1 -1
  10. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.d.ts +2 -0
  11. package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +50 -2
  12. package/api/resources/conversationalAi/resources/tools/client/Client.js +50 -2
  13. package/api/resources/music/client/Client.d.ts +1 -1
  14. package/api/resources/music/client/Client.js +1 -1
  15. package/api/types/AgentMetadata.d.ts +1 -0
  16. package/api/types/ApiIntegrationWebhookToolConfigExternalInput.d.ts +34 -0
  17. package/api/types/ApiIntegrationWebhookToolConfigExternalOutput.d.ts +34 -0
  18. package/api/types/ApiIntegrationWebhookToolConfigExternalOutput.js +3 -0
  19. package/api/types/ApiIntegrationWebhookToolConfigOutput.d.ts +8 -8
  20. package/api/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -0
  21. package/api/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -0
  22. package/api/types/ConversationConfigClientOverrideInput.d.ts +2 -0
  23. package/api/types/ConversationConfigClientOverrideOutput.d.ts +2 -0
  24. package/api/types/ConversationFeedbackType.d.ts +5 -0
  25. package/api/types/ConversationFeedbackType.js +8 -0
  26. package/api/types/ConversationHistoryFeedbackCommonModel.d.ts +3 -0
  27. package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -0
  28. package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -0
  29. package/api/types/ConversationInitiationSource.d.ts +1 -0
  30. package/api/types/ConversationInitiationSource.js +1 -0
  31. package/api/types/ConversationSummaryResponseModel.d.ts +1 -0
  32. package/api/types/DiscountResposneModel.d.ts +6 -0
  33. package/api/types/DiscountResposneModel.js +3 -0
  34. package/api/types/GetAgentResponseModel.d.ts +4 -0
  35. package/api/types/GetConversationResponseModel.d.ts +1 -0
  36. package/api/types/GetTestSuiteInvocationResponseModel.d.ts +1 -0
  37. package/api/types/InvoiceResponse.d.ts +4 -2
  38. package/api/types/LanguagePresetInput.d.ts +2 -0
  39. package/api/types/LanguagePresetOutput.d.ts +2 -0
  40. package/api/types/ProjectExtendedResponse.d.ts +2 -0
  41. package/api/types/ProjectExtendedResponseModelAssetsItem.d.ts +10 -0
  42. package/api/types/ProjectExtendedResponseModelAssetsItem.js +3 -0
  43. package/api/types/ProjectExternalAudioResponseModel.d.ts +23 -0
  44. package/api/types/ProjectExternalAudioResponseModel.js +3 -0
  45. package/api/types/ProjectSnapshotExtendedResponseModel.d.ts +2 -0
  46. package/api/types/ProjectVideoResponseModel.d.ts +31 -0
  47. package/api/types/ProjectVideoResponseModel.js +3 -0
  48. package/api/types/ProjectVideoThumbnailSheetResponseModel.d.ts +5 -0
  49. package/api/types/ProjectVideoThumbnailSheetResponseModel.js +3 -0
  50. package/api/types/SoftTimeoutConfig.d.ts +9 -0
  51. package/api/types/SoftTimeoutConfig.js +3 -0
  52. package/api/types/SoftTimeoutConfigOverride.d.ts +4 -0
  53. package/api/types/SoftTimeoutConfigOverride.js +3 -0
  54. package/api/types/SoftTimeoutConfigOverrideConfig.d.ts +4 -0
  55. package/api/types/SoftTimeoutConfigOverrideConfig.js +3 -0
  56. package/api/types/SoftTimeoutConfigWorkflowOverride.d.ts +6 -0
  57. package/api/types/SoftTimeoutConfigWorkflowOverride.js +3 -0
  58. package/api/types/TestInvocationSummaryResponseModel.d.ts +4 -0
  59. package/api/types/ToolRequestModelToolConfig.d.ts +1 -1
  60. package/api/types/ToolResponseModelToolConfig.d.ts +2 -6
  61. package/api/types/TtsConversationalModel.d.ts +1 -0
  62. package/api/types/TtsConversationalModel.js +1 -0
  63. package/api/types/TtsModelFamily.d.ts +1 -0
  64. package/api/types/TtsModelFamily.js +1 -0
  65. package/api/types/TurnConfig.d.ts +4 -0
  66. package/api/types/TurnConfigOverride.d.ts +5 -0
  67. package/api/types/TurnConfigOverride.js +3 -0
  68. package/api/types/TurnConfigOverrideConfig.d.ts +5 -0
  69. package/api/types/TurnConfigOverrideConfig.js +3 -0
  70. package/api/types/TurnConfigWorkflowOverride.d.ts +4 -0
  71. package/api/types/UnitTestRunResponseModel.d.ts +1 -0
  72. package/api/types/WidgetConfig.d.ts +2 -0
  73. package/api/types/WidgetConfigResponse.d.ts +2 -0
  74. package/api/types/WidgetEndFeedbackConfig.d.ts +5 -0
  75. package/api/types/WidgetEndFeedbackConfig.js +3 -0
  76. package/api/types/WidgetEndFeedbackType.d.ts +1 -0
  77. package/api/types/WidgetEndFeedbackType.js +3 -0
  78. package/api/types/WorkspaceResourceType.d.ts +4 -0
  79. package/api/types/WorkspaceResourceType.js +4 -0
  80. package/api/types/index.d.ts +16 -0
  81. package/api/types/index.js +16 -0
  82. package/dist/Client.js +2 -2
  83. package/dist/api/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +2 -0
  84. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -0
  85. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +17 -1
  86. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +8 -0
  87. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +2 -2
  88. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +7 -5
  89. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/{BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost.d.ts → ConversationFeedbackRequestModel.d.ts} +2 -2
  90. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/ConversationFeedbackRequestModel.js +3 -0
  91. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/index.d.ts +1 -1
  92. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.d.ts +2 -0
  93. package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +50 -2
  94. package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +50 -2
  95. package/dist/api/resources/music/client/Client.d.ts +1 -1
  96. package/dist/api/resources/music/client/Client.js +1 -1
  97. package/dist/api/types/AgentMetadata.d.ts +1 -0
  98. package/dist/api/types/ApiIntegrationWebhookToolConfigExternalInput.d.ts +34 -0
  99. package/dist/api/types/ApiIntegrationWebhookToolConfigExternalInput.js +3 -0
  100. package/dist/api/types/ApiIntegrationWebhookToolConfigExternalOutput.d.ts +34 -0
  101. package/dist/api/types/ApiIntegrationWebhookToolConfigExternalOutput.js +3 -0
  102. package/dist/api/types/ApiIntegrationWebhookToolConfigOutput.d.ts +8 -8
  103. package/dist/api/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -0
  104. package/dist/api/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -0
  105. package/dist/api/types/ConversationConfigClientOverrideInput.d.ts +2 -0
  106. package/dist/api/types/ConversationConfigClientOverrideOutput.d.ts +2 -0
  107. package/dist/api/types/ConversationFeedbackType.d.ts +5 -0
  108. package/dist/api/types/ConversationFeedbackType.js +8 -0
  109. package/dist/api/types/ConversationHistoryFeedbackCommonModel.d.ts +3 -0
  110. package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -0
  111. package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -0
  112. package/dist/api/types/ConversationInitiationSource.d.ts +1 -0
  113. package/dist/api/types/ConversationInitiationSource.js +1 -0
  114. package/dist/api/types/ConversationSummaryResponseModel.d.ts +1 -0
  115. package/dist/api/types/DiscountResposneModel.d.ts +6 -0
  116. package/dist/api/types/DiscountResposneModel.js +3 -0
  117. package/dist/api/types/GetAgentResponseModel.d.ts +4 -0
  118. package/dist/api/types/GetConversationResponseModel.d.ts +1 -0
  119. package/dist/api/types/GetTestSuiteInvocationResponseModel.d.ts +1 -0
  120. package/dist/api/types/InvoiceResponse.d.ts +4 -2
  121. package/dist/api/types/LanguagePresetInput.d.ts +2 -0
  122. package/dist/api/types/LanguagePresetOutput.d.ts +2 -0
  123. package/dist/api/types/ProjectExtendedResponse.d.ts +2 -0
  124. package/dist/api/types/ProjectExtendedResponseModelAssetsItem.d.ts +10 -0
  125. package/dist/api/types/ProjectExtendedResponseModelAssetsItem.js +3 -0
  126. package/dist/api/types/ProjectExternalAudioResponseModel.d.ts +23 -0
  127. package/dist/api/types/ProjectExternalAudioResponseModel.js +3 -0
  128. package/dist/api/types/ProjectSnapshotExtendedResponseModel.d.ts +2 -0
  129. package/dist/api/types/ProjectVideoResponseModel.d.ts +31 -0
  130. package/dist/api/types/ProjectVideoResponseModel.js +3 -0
  131. package/dist/api/types/ProjectVideoThumbnailSheetResponseModel.d.ts +5 -0
  132. package/dist/api/types/ProjectVideoThumbnailSheetResponseModel.js +3 -0
  133. package/dist/api/types/SoftTimeoutConfig.d.ts +9 -0
  134. package/dist/api/types/SoftTimeoutConfig.js +3 -0
  135. package/dist/api/types/SoftTimeoutConfigOverride.d.ts +4 -0
  136. package/dist/api/types/SoftTimeoutConfigOverride.js +3 -0
  137. package/dist/api/types/SoftTimeoutConfigOverrideConfig.d.ts +4 -0
  138. package/dist/api/types/SoftTimeoutConfigOverrideConfig.js +3 -0
  139. package/dist/api/types/SoftTimeoutConfigWorkflowOverride.d.ts +6 -0
  140. package/dist/api/types/SoftTimeoutConfigWorkflowOverride.js +3 -0
  141. package/dist/api/types/TestInvocationSummaryResponseModel.d.ts +4 -0
  142. package/dist/api/types/ToolRequestModelToolConfig.d.ts +1 -1
  143. package/dist/api/types/ToolResponseModelToolConfig.d.ts +2 -6
  144. package/dist/api/types/TtsConversationalModel.d.ts +1 -0
  145. package/dist/api/types/TtsConversationalModel.js +1 -0
  146. package/dist/api/types/TtsModelFamily.d.ts +1 -0
  147. package/dist/api/types/TtsModelFamily.js +1 -0
  148. package/dist/api/types/TurnConfig.d.ts +4 -0
  149. package/dist/api/types/TurnConfigOverride.d.ts +5 -0
  150. package/dist/api/types/TurnConfigOverride.js +3 -0
  151. package/dist/api/types/TurnConfigOverrideConfig.d.ts +5 -0
  152. package/dist/api/types/TurnConfigOverrideConfig.js +3 -0
  153. package/dist/api/types/TurnConfigWorkflowOverride.d.ts +4 -0
  154. package/dist/api/types/UnitTestRunResponseModel.d.ts +1 -0
  155. package/dist/api/types/WidgetConfig.d.ts +2 -0
  156. package/dist/api/types/WidgetConfigResponse.d.ts +2 -0
  157. package/dist/api/types/WidgetEndFeedbackConfig.d.ts +5 -0
  158. package/dist/api/types/WidgetEndFeedbackConfig.js +3 -0
  159. package/dist/api/types/WidgetEndFeedbackType.d.ts +1 -0
  160. package/dist/api/types/WidgetEndFeedbackType.js +3 -0
  161. package/dist/api/types/WorkspaceResourceType.d.ts +4 -0
  162. package/dist/api/types/WorkspaceResourceType.js +4 -0
  163. package/dist/api/types/index.d.ts +16 -0
  164. package/dist/api/types/index.js +16 -0
  165. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +1 -0
  166. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.js +1 -0
  167. package/dist/serialization/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/ConversationFeedbackRequestModel.d.ts +10 -0
  168. package/dist/serialization/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/{BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost.js → ConversationFeedbackRequestModel.js} +3 -3
  169. package/dist/serialization/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/index.d.ts +1 -1
  170. package/dist/serialization/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/index.js +3 -3
  171. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.d.ts +1 -0
  172. package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.js +1 -0
  173. package/dist/serialization/types/AgentMetadata.d.ts +1 -0
  174. package/dist/serialization/types/AgentMetadata.js +1 -0
  175. package/dist/serialization/types/ApiIntegrationWebhookToolConfigExternalInput.d.ts +30 -0
  176. package/dist/serialization/types/ApiIntegrationWebhookToolConfigExternalInput.js +62 -0
  177. package/dist/serialization/types/ApiIntegrationWebhookToolConfigExternalOutput.d.ts +30 -0
  178. package/dist/serialization/types/ApiIntegrationWebhookToolConfigExternalOutput.js +62 -0
  179. package/dist/serialization/types/ApiIntegrationWebhookToolConfigOutput.d.ts +8 -8
  180. package/dist/serialization/types/ApiIntegrationWebhookToolConfigOutput.js +8 -8
  181. package/dist/serialization/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -0
  182. package/dist/serialization/types/ConversationConfigClientOverrideConfigInput.js +2 -0
  183. package/dist/serialization/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -0
  184. package/dist/serialization/types/ConversationConfigClientOverrideConfigOutput.js +2 -0
  185. package/dist/serialization/types/ConversationConfigClientOverrideInput.d.ts +2 -0
  186. package/dist/serialization/types/ConversationConfigClientOverrideInput.js +2 -0
  187. package/dist/serialization/types/ConversationConfigClientOverrideOutput.d.ts +2 -0
  188. package/dist/serialization/types/ConversationConfigClientOverrideOutput.js +2 -0
  189. package/dist/serialization/types/ConversationFeedbackType.d.ts +7 -0
  190. package/dist/serialization/types/ConversationFeedbackType.js +39 -0
  191. package/dist/serialization/types/ConversationHistoryFeedbackCommonModel.d.ts +4 -0
  192. package/dist/serialization/types/ConversationHistoryFeedbackCommonModel.js +4 -0
  193. package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -1
  194. package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -1
  195. package/dist/serialization/types/ConversationInitiationSource.d.ts +1 -1
  196. package/dist/serialization/types/ConversationInitiationSource.js +1 -0
  197. package/dist/serialization/types/ConversationSummaryResponseModel.d.ts +1 -0
  198. package/dist/serialization/types/ConversationSummaryResponseModel.js +1 -0
  199. package/dist/serialization/types/DiscountResposneModel.d.ts +10 -0
  200. package/dist/serialization/types/DiscountResposneModel.js +42 -0
  201. package/dist/serialization/types/GetAgentResponseModel.d.ts +2 -0
  202. package/dist/serialization/types/GetAgentResponseModel.js +2 -0
  203. package/dist/serialization/types/GetConversationResponseModel.d.ts +1 -0
  204. package/dist/serialization/types/GetConversationResponseModel.js +1 -0
  205. package/dist/serialization/types/GetTestSuiteInvocationResponseModel.d.ts +1 -0
  206. package/dist/serialization/types/GetTestSuiteInvocationResponseModel.js +1 -0
  207. package/dist/serialization/types/InvoiceResponse.d.ts +2 -0
  208. package/dist/serialization/types/InvoiceResponse.js +2 -0
  209. package/dist/serialization/types/LanguagePresetInput.d.ts +1 -0
  210. package/dist/serialization/types/LanguagePresetInput.js +1 -0
  211. package/dist/serialization/types/LanguagePresetOutput.d.ts +1 -0
  212. package/dist/serialization/types/LanguagePresetOutput.js +1 -0
  213. package/dist/serialization/types/ProjectExtendedResponse.d.ts +2 -0
  214. package/dist/serialization/types/ProjectExtendedResponse.js +2 -0
  215. package/dist/serialization/types/ProjectExtendedResponseModelAssetsItem.d.ts +15 -0
  216. package/dist/serialization/types/ProjectExtendedResponseModelAssetsItem.js +49 -0
  217. package/dist/serialization/types/ProjectExternalAudioResponseModel.d.ts +29 -0
  218. package/dist/serialization/types/ProjectExternalAudioResponseModel.js +61 -0
  219. package/dist/serialization/types/ProjectSnapshotExtendedResponseModel.d.ts +1 -0
  220. package/dist/serialization/types/ProjectSnapshotExtendedResponseModel.js +1 -0
  221. package/dist/serialization/types/ProjectVideoResponseModel.d.ts +37 -0
  222. package/dist/serialization/types/ProjectVideoResponseModel.js +69 -0
  223. package/dist/serialization/types/ProjectVideoThumbnailSheetResponseModel.d.ts +11 -0
  224. package/dist/serialization/types/ProjectVideoThumbnailSheetResponseModel.js +43 -0
  225. package/dist/serialization/types/SoftTimeoutConfig.d.ts +10 -0
  226. package/dist/serialization/types/SoftTimeoutConfig.js +42 -0
  227. package/dist/serialization/types/SoftTimeoutConfigOverride.d.ts +9 -0
  228. package/dist/serialization/types/SoftTimeoutConfigOverride.js +41 -0
  229. package/dist/serialization/types/SoftTimeoutConfigOverrideConfig.d.ts +9 -0
  230. package/dist/serialization/types/SoftTimeoutConfigOverrideConfig.js +41 -0
  231. package/dist/serialization/types/SoftTimeoutConfigWorkflowOverride.d.ts +10 -0
  232. package/dist/serialization/types/SoftTimeoutConfigWorkflowOverride.js +42 -0
  233. package/dist/serialization/types/TestInvocationSummaryResponseModel.d.ts +2 -0
  234. package/dist/serialization/types/TestInvocationSummaryResponseModel.js +2 -0
  235. package/dist/serialization/types/ToolRequestModelToolConfig.d.ts +2 -2
  236. package/dist/serialization/types/ToolRequestModelToolConfig.js +2 -2
  237. package/dist/serialization/types/ToolResponseModelToolConfig.d.ts +3 -7
  238. package/dist/serialization/types/ToolResponseModelToolConfig.js +2 -5
  239. package/dist/serialization/types/TtsConversationalModel.d.ts +1 -1
  240. package/dist/serialization/types/TtsConversationalModel.js +1 -0
  241. package/dist/serialization/types/TtsModelFamily.d.ts +1 -1
  242. package/dist/serialization/types/TtsModelFamily.js +1 -1
  243. package/dist/serialization/types/TurnConfig.d.ts +3 -0
  244. package/dist/serialization/types/TurnConfig.js +3 -0
  245. package/dist/serialization/types/TurnConfigOverride.d.ts +10 -0
  246. package/dist/serialization/types/TurnConfigOverride.js +42 -0
  247. package/dist/serialization/types/TurnConfigOverrideConfig.d.ts +10 -0
  248. package/dist/serialization/types/TurnConfigOverrideConfig.js +42 -0
  249. package/dist/serialization/types/TurnConfigWorkflowOverride.d.ts +3 -0
  250. package/dist/serialization/types/TurnConfigWorkflowOverride.js +3 -0
  251. package/dist/serialization/types/UnitTestRunResponseModel.d.ts +1 -0
  252. package/dist/serialization/types/UnitTestRunResponseModel.js +1 -0
  253. package/dist/serialization/types/WidgetConfig.d.ts +2 -0
  254. package/dist/serialization/types/WidgetConfig.js +2 -0
  255. package/dist/serialization/types/WidgetConfigResponse.d.ts +2 -0
  256. package/dist/serialization/types/WidgetConfigResponse.js +2 -0
  257. package/dist/serialization/types/WidgetEndFeedbackConfig.d.ts +10 -0
  258. package/dist/serialization/types/WidgetEndFeedbackConfig.js +42 -0
  259. package/dist/serialization/types/WidgetEndFeedbackType.d.ts +7 -0
  260. package/dist/serialization/types/WidgetEndFeedbackType.js +39 -0
  261. package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
  262. package/dist/serialization/types/WorkspaceResourceType.js +4 -0
  263. package/dist/serialization/types/index.d.ts +16 -0
  264. package/dist/serialization/types/index.js +16 -0
  265. package/dist/version.d.ts +1 -1
  266. package/dist/version.js +1 -1
  267. package/dist/wrapper/ElevenLabsClient.d.ts +2 -2
  268. package/dist/wrapper/ElevenLabsClient.js +2 -1
  269. package/dist/wrapper/music.d.ts +11 -0
  270. package/dist/wrapper/music.js +32 -0
  271. package/dist/wrapper/realtime/connection.d.ts +59 -10
  272. package/dist/wrapper/realtime/connection.js +14 -14
  273. package/dist/wrapper/realtime/index.d.ts +1 -1
  274. package/dist/wrapper/realtime/scribe.d.ts +2 -2
  275. package/dist/wrapper/realtime/scribe.js +5 -5
  276. package/package.json +1 -1
  277. package/reference.md +51 -1
  278. package/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +1 -0
  279. package/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.js +1 -0
  280. package/serialization/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/ConversationFeedbackRequestModel.d.ts +10 -0
  281. package/serialization/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/{BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost.js → ConversationFeedbackRequestModel.js} +3 -3
  282. package/serialization/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/index.d.ts +1 -1
  283. package/serialization/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/index.js +3 -3
  284. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.d.ts +1 -0
  285. package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.js +1 -0
  286. package/serialization/types/AgentMetadata.d.ts +1 -0
  287. package/serialization/types/AgentMetadata.js +1 -0
  288. package/serialization/types/ApiIntegrationWebhookToolConfigExternalInput.d.ts +30 -0
  289. package/serialization/types/ApiIntegrationWebhookToolConfigExternalInput.js +62 -0
  290. package/serialization/types/ApiIntegrationWebhookToolConfigExternalOutput.d.ts +30 -0
  291. package/serialization/types/ApiIntegrationWebhookToolConfigExternalOutput.js +62 -0
  292. package/serialization/types/ApiIntegrationWebhookToolConfigOutput.d.ts +8 -8
  293. package/serialization/types/ApiIntegrationWebhookToolConfigOutput.js +8 -8
  294. package/serialization/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -0
  295. package/serialization/types/ConversationConfigClientOverrideConfigInput.js +2 -0
  296. package/serialization/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -0
  297. package/serialization/types/ConversationConfigClientOverrideConfigOutput.js +2 -0
  298. package/serialization/types/ConversationConfigClientOverrideInput.d.ts +2 -0
  299. package/serialization/types/ConversationConfigClientOverrideInput.js +2 -0
  300. package/serialization/types/ConversationConfigClientOverrideOutput.d.ts +2 -0
  301. package/serialization/types/ConversationConfigClientOverrideOutput.js +2 -0
  302. package/serialization/types/ConversationFeedbackType.d.ts +7 -0
  303. package/serialization/types/ConversationFeedbackType.js +39 -0
  304. package/serialization/types/ConversationHistoryFeedbackCommonModel.d.ts +4 -0
  305. package/serialization/types/ConversationHistoryFeedbackCommonModel.js +4 -0
  306. package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -1
  307. package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -1
  308. package/serialization/types/ConversationInitiationSource.d.ts +1 -1
  309. package/serialization/types/ConversationInitiationSource.js +1 -0
  310. package/serialization/types/ConversationSummaryResponseModel.d.ts +1 -0
  311. package/serialization/types/ConversationSummaryResponseModel.js +1 -0
  312. package/serialization/types/DiscountResposneModel.d.ts +10 -0
  313. package/serialization/types/DiscountResposneModel.js +42 -0
  314. package/serialization/types/GetAgentResponseModel.d.ts +2 -0
  315. package/serialization/types/GetAgentResponseModel.js +2 -0
  316. package/serialization/types/GetConversationResponseModel.d.ts +1 -0
  317. package/serialization/types/GetConversationResponseModel.js +1 -0
  318. package/serialization/types/GetTestSuiteInvocationResponseModel.d.ts +1 -0
  319. package/serialization/types/GetTestSuiteInvocationResponseModel.js +1 -0
  320. package/serialization/types/InvoiceResponse.d.ts +2 -0
  321. package/serialization/types/InvoiceResponse.js +2 -0
  322. package/serialization/types/LanguagePresetInput.d.ts +1 -0
  323. package/serialization/types/LanguagePresetInput.js +1 -0
  324. package/serialization/types/LanguagePresetOutput.d.ts +1 -0
  325. package/serialization/types/LanguagePresetOutput.js +1 -0
  326. package/serialization/types/ProjectExtendedResponse.d.ts +2 -0
  327. package/serialization/types/ProjectExtendedResponse.js +2 -0
  328. package/serialization/types/ProjectExtendedResponseModelAssetsItem.d.ts +15 -0
  329. package/serialization/types/ProjectExtendedResponseModelAssetsItem.js +49 -0
  330. package/serialization/types/ProjectExternalAudioResponseModel.d.ts +29 -0
  331. package/serialization/types/ProjectExternalAudioResponseModel.js +61 -0
  332. package/serialization/types/ProjectSnapshotExtendedResponseModel.d.ts +1 -0
  333. package/serialization/types/ProjectSnapshotExtendedResponseModel.js +1 -0
  334. package/serialization/types/ProjectVideoResponseModel.d.ts +37 -0
  335. package/serialization/types/ProjectVideoResponseModel.js +69 -0
  336. package/serialization/types/ProjectVideoThumbnailSheetResponseModel.d.ts +11 -0
  337. package/serialization/types/ProjectVideoThumbnailSheetResponseModel.js +43 -0
  338. package/serialization/types/SoftTimeoutConfig.d.ts +10 -0
  339. package/serialization/types/SoftTimeoutConfig.js +42 -0
  340. package/serialization/types/SoftTimeoutConfigOverride.d.ts +9 -0
  341. package/serialization/types/SoftTimeoutConfigOverride.js +41 -0
  342. package/serialization/types/SoftTimeoutConfigOverrideConfig.d.ts +9 -0
  343. package/serialization/types/SoftTimeoutConfigOverrideConfig.js +41 -0
  344. package/serialization/types/SoftTimeoutConfigWorkflowOverride.d.ts +10 -0
  345. package/serialization/types/SoftTimeoutConfigWorkflowOverride.js +42 -0
  346. package/serialization/types/TestInvocationSummaryResponseModel.d.ts +2 -0
  347. package/serialization/types/TestInvocationSummaryResponseModel.js +2 -0
  348. package/serialization/types/ToolRequestModelToolConfig.d.ts +2 -2
  349. package/serialization/types/ToolRequestModelToolConfig.js +2 -2
  350. package/serialization/types/ToolResponseModelToolConfig.d.ts +3 -7
  351. package/serialization/types/ToolResponseModelToolConfig.js +2 -5
  352. package/serialization/types/TtsConversationalModel.d.ts +1 -1
  353. package/serialization/types/TtsConversationalModel.js +1 -0
  354. package/serialization/types/TtsModelFamily.d.ts +1 -1
  355. package/serialization/types/TtsModelFamily.js +1 -1
  356. package/serialization/types/TurnConfig.d.ts +3 -0
  357. package/serialization/types/TurnConfig.js +3 -0
  358. package/serialization/types/TurnConfigOverride.d.ts +10 -0
  359. package/serialization/types/TurnConfigOverride.js +42 -0
  360. package/serialization/types/TurnConfigOverrideConfig.d.ts +10 -0
  361. package/serialization/types/TurnConfigOverrideConfig.js +42 -0
  362. package/serialization/types/TurnConfigWorkflowOverride.d.ts +3 -0
  363. package/serialization/types/TurnConfigWorkflowOverride.js +3 -0
  364. package/serialization/types/UnitTestRunResponseModel.d.ts +1 -0
  365. package/serialization/types/UnitTestRunResponseModel.js +1 -0
  366. package/serialization/types/WidgetConfig.d.ts +2 -0
  367. package/serialization/types/WidgetConfig.js +2 -0
  368. package/serialization/types/WidgetConfigResponse.d.ts +2 -0
  369. package/serialization/types/WidgetConfigResponse.js +2 -0
  370. package/serialization/types/WidgetEndFeedbackConfig.d.ts +10 -0
  371. package/serialization/types/WidgetEndFeedbackConfig.js +42 -0
  372. package/serialization/types/WidgetEndFeedbackType.d.ts +7 -0
  373. package/serialization/types/WidgetEndFeedbackType.js +39 -0
  374. package/serialization/types/WorkspaceResourceType.d.ts +1 -1
  375. package/serialization/types/WorkspaceResourceType.js +4 -0
  376. package/serialization/types/index.d.ts +16 -0
  377. package/serialization/types/index.js +16 -0
  378. package/version.d.ts +1 -1
  379. package/version.js +1 -1
  380. package/wrapper/ElevenLabsClient.d.ts +2 -2
  381. package/wrapper/ElevenLabsClient.js +2 -1
  382. package/wrapper/music.d.ts +11 -0
  383. package/wrapper/music.js +32 -0
  384. package/wrapper/realtime/connection.d.ts +59 -10
  385. package/wrapper/realtime/connection.js +14 -14
  386. package/wrapper/realtime/index.d.ts +1 -1
  387. package/wrapper/realtime/scribe.d.ts +2 -2
  388. package/wrapper/realtime/scribe.js +5 -5
  389. package/dist/serialization/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost.d.ts +0 -10
  390. package/serialization/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost.d.ts +0 -10
  391. /package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/{BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost.js → ConversationFeedbackRequestModel.js} +0 -0
  392. /package/{dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/requests/BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost.js → api/types/ApiIntegrationWebhookToolConfigExternalInput.js} +0 -0
package/Client.js CHANGED
@@ -78,8 +78,8 @@ class ElevenLabsClient {
78
78
  "xi-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
79
79
  "X-Fern-Language": "JavaScript",
80
80
  "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
81
- "X-Fern-SDK-Version": "v2.22.0",
82
- "User-Agent": "@elevenlabs/elevenlabs-js/v2.22.0",
81
+ "X-Fern-SDK-Version": "v2.23.0",
82
+ "User-Agent": "@elevenlabs/elevenlabs-js/v2.23.0",
83
83
  "X-Fern-Runtime": core.RUNTIME.type,
84
84
  "X-Fern-Runtime-Version": core.RUNTIME.version,
85
85
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -12,4 +12,6 @@ export interface RunAgentTestsRequestModel {
12
12
  tests: ElevenLabs.SingleTestRunRequestModel[];
13
13
  /** Configuration overrides to use for testing. If not provided, the agent's default configuration will be used. */
14
14
  agentConfigOverride?: ElevenLabs.AdhocAgentConfigOverrideForTestRequestModel;
15
+ /** ID of the branch to run the tests on. If not provided, the tests will be run on the agent default configuration. */
16
+ branchId?: string;
15
17
  }
@@ -82,6 +82,8 @@ export declare class Conversations {
82
82
  * callSuccessful: "success",
83
83
  * callStartBeforeUnix: 1,
84
84
  * callStartAfterUnix: 1,
85
+ * callDurationMinSecs: 1,
86
+ * callDurationMaxSecs: 1,
85
87
  * userId: "user_id",
86
88
  * pageSize: 1,
87
89
  * summaryMode: "exclude",
@@ -241,6 +241,8 @@ class Conversations {
241
241
  * callSuccessful: "success",
242
242
  * callStartBeforeUnix: 1,
243
243
  * callStartAfterUnix: 1,
244
+ * callDurationMinSecs: 1,
245
+ * callDurationMaxSecs: 1,
244
246
  * userId: "user_id",
245
247
  * pageSize: 1,
246
248
  * summaryMode: "exclude",
@@ -253,7 +255,7 @@ class Conversations {
253
255
  __list() {
254
256
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
255
257
  var _a, _b, _c, _d, _e;
256
- const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, userId, pageSize, summaryMode, search, } = request;
258
+ const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, userId, toolNames, pageSize, summaryMode, search, } = request;
257
259
  const _queryParams = {};
258
260
  if (cursor != null) {
259
261
  _queryParams["cursor"] = cursor;
@@ -272,9 +274,23 @@ class Conversations {
272
274
  if (callStartAfterUnix != null) {
273
275
  _queryParams["call_start_after_unix"] = callStartAfterUnix.toString();
274
276
  }
277
+ if (callDurationMinSecs != null) {
278
+ _queryParams["call_duration_min_secs"] = callDurationMinSecs.toString();
279
+ }
280
+ if (callDurationMaxSecs != null) {
281
+ _queryParams["call_duration_max_secs"] = callDurationMaxSecs.toString();
282
+ }
275
283
  if (userId != null) {
276
284
  _queryParams["user_id"] = userId;
277
285
  }
286
+ if (toolNames != null) {
287
+ if (Array.isArray(toolNames)) {
288
+ _queryParams["tool_names"] = toolNames.map((item) => item);
289
+ }
290
+ else {
291
+ _queryParams["tool_names"] = toolNames;
292
+ }
293
+ }
278
294
  if (pageSize != null) {
279
295
  _queryParams["page_size"] = pageSize.toString();
280
296
  }
@@ -7,6 +7,8 @@ import * as ElevenLabs from "../../../../../../index";
7
7
  * callSuccessful: "success",
8
8
  * callStartBeforeUnix: 1,
9
9
  * callStartAfterUnix: 1,
10
+ * callDurationMinSecs: 1,
11
+ * callDurationMaxSecs: 1,
10
12
  * userId: "user_id",
11
13
  * pageSize: 1,
12
14
  * summaryMode: "exclude",
@@ -24,8 +26,14 @@ export interface ConversationsListRequest {
24
26
  callStartBeforeUnix?: number;
25
27
  /** Unix timestamp (in seconds) to filter conversations after to this start date. */
26
28
  callStartAfterUnix?: number;
29
+ /** Minimum call duration in seconds. */
30
+ callDurationMinSecs?: number;
31
+ /** Maximum call duration in seconds. */
32
+ callDurationMaxSecs?: number;
27
33
  /** Filter conversations by the user ID who initiated them. */
28
34
  userId?: string;
35
+ /** Filter conversations by tool names used during the call. */
36
+ toolNames?: string | string[];
29
37
  /** How many conversations to return at maximum. Can not exceed 100, defaults to 30. */
30
38
  pageSize?: number;
31
39
  /** Whether to include transcript summaries in the response. */
@@ -33,7 +33,7 @@ export declare class Feedback {
33
33
  * Send the feedback for the given conversation
34
34
  *
35
35
  * @param {string} conversationId - The id of the conversation you're taking the action on.
36
- * @param {ElevenLabs.conversationalAi.conversations.BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost} request
36
+ * @param {ElevenLabs.conversationalAi.conversations.ConversationFeedbackRequestModel} request
37
37
  * @param {Feedback.RequestOptions} requestOptions - Request-specific configuration.
38
38
  *
39
39
  * @throws {@link ElevenLabs.UnprocessableEntityError}
@@ -43,6 +43,6 @@ export declare class Feedback {
43
43
  * feedback: "like"
44
44
  * })
45
45
  */
46
- create(conversationId: string, request: ElevenLabs.conversationalAi.conversations.BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost, requestOptions?: Feedback.RequestOptions): core.HttpResponsePromise<unknown>;
46
+ create(conversationId: string, request?: ElevenLabs.conversationalAi.conversations.ConversationFeedbackRequestModel, requestOptions?: Feedback.RequestOptions): core.HttpResponsePromise<unknown>;
47
47
  private __create;
48
48
  }
@@ -58,7 +58,7 @@ class Feedback {
58
58
  * Send the feedback for the given conversation
59
59
  *
60
60
  * @param {string} conversationId - The id of the conversation you're taking the action on.
61
- * @param {ElevenLabs.conversationalAi.conversations.BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost} request
61
+ * @param {ElevenLabs.conversationalAi.conversations.ConversationFeedbackRequestModel} request
62
62
  * @param {Feedback.RequestOptions} requestOptions - Request-specific configuration.
63
63
  *
64
64
  * @throws {@link ElevenLabs.UnprocessableEntityError}
@@ -68,11 +68,11 @@ class Feedback {
68
68
  * feedback: "like"
69
69
  * })
70
70
  */
71
- create(conversationId, request, requestOptions) {
71
+ create(conversationId, request = {}, requestOptions) {
72
72
  return core.HttpResponsePromise.fromPromise(this.__create(conversationId, request, requestOptions));
73
73
  }
74
- __create(conversationId, request, requestOptions) {
75
- return __awaiter(this, void 0, void 0, function* () {
74
+ __create(conversationId_1) {
75
+ return __awaiter(this, arguments, void 0, function* (conversationId, request = {}, requestOptions) {
76
76
  var _a, _b, _c, _d, _e;
77
77
  let _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);
78
78
  const _response = yield core.fetcher({
@@ -82,7 +82,9 @@ class Feedback {
82
82
  contentType: "application/json",
83
83
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
84
84
  requestType: "json",
85
- body: serializers.conversationalAi.conversations.BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
85
+ body: serializers.conversationalAi.conversations.ConversationFeedbackRequestModel.jsonOrThrow(request, {
86
+ unrecognizedObjectKeys: "strip",
87
+ }),
86
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
87
89
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
88
90
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -5,7 +5,7 @@ import * as ElevenLabs from "../../../../../../../../index";
5
5
  * feedback: "like"
6
6
  * }
7
7
  */
8
- export interface BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost {
8
+ export interface ConversationFeedbackRequestModel {
9
9
  /** Either 'like' or 'dislike' to indicate the feedback for the conversation. */
10
- feedback: ElevenLabs.UserFeedbackScore;
10
+ feedback?: ElevenLabs.UserFeedbackScore;
11
11
  }
@@ -1 +1 @@
1
- export { type BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost } from "./BodySendConversationFeedbackV1ConvaiConversationsConversationIdFeedbackPost";
1
+ export { type ConversationFeedbackRequestModel } from "./ConversationFeedbackRequestModel";
@@ -13,4 +13,6 @@ export interface ResubmitTestsRequestModel {
13
13
  agentConfigOverride?: ElevenLabs.AdhocAgentConfigOverrideForTestRequestModel;
14
14
  /** Agent ID to resubmit tests for */
15
15
  agentId: string;
16
+ /** ID of the branch to run the tests on. If not provided, the tests will be run on the agent default configuration. */
17
+ branchId?: string;
16
18
  }
@@ -56,7 +56,31 @@ export declare class Tools {
56
56
  * name: "name",
57
57
  * description: "description",
58
58
  * apiIntegrationId: "api_integration_id",
59
- * apiIntegrationConnectionId: "api_integration_connection_id"
59
+ * apiIntegrationConnectionId: "api_integration_connection_id",
60
+ * baseApiSchema: {
61
+ * url: "https://example.com/agents/{agent_id}",
62
+ * method: "GET",
63
+ * pathParamsSchema: {
64
+ * "agent_id": {
65
+ * type: "string"
66
+ * }
67
+ * },
68
+ * queryParamsSchema: {
69
+ * properties: {
70
+ * "key": {
71
+ * type: "string",
72
+ * description: "My property",
73
+ * isSystemProvided: false,
74
+ * dynamicVariable: "",
75
+ * constantValue: ""
76
+ * }
77
+ * }
78
+ * },
79
+ * requestBodySchema: {},
80
+ * requestHeaders: {
81
+ * "Authorization": "Bearer {api_key}"
82
+ * }
83
+ * }
60
84
  * }
61
85
  * })
62
86
  */
@@ -104,7 +128,31 @@ export declare class Tools {
104
128
  * name: "name",
105
129
  * description: "description",
106
130
  * apiIntegrationId: "api_integration_id",
107
- * apiIntegrationConnectionId: "api_integration_connection_id"
131
+ * apiIntegrationConnectionId: "api_integration_connection_id",
132
+ * baseApiSchema: {
133
+ * url: "https://example.com/agents/{agent_id}",
134
+ * method: "GET",
135
+ * pathParamsSchema: {
136
+ * "agent_id": {
137
+ * type: "string"
138
+ * }
139
+ * },
140
+ * queryParamsSchema: {
141
+ * properties: {
142
+ * "key": {
143
+ * type: "string",
144
+ * description: "My property",
145
+ * isSystemProvided: false,
146
+ * dynamicVariable: "",
147
+ * constantValue: ""
148
+ * }
149
+ * }
150
+ * },
151
+ * requestBodySchema: {},
152
+ * requestHeaders: {
153
+ * "Authorization": "Bearer {api_key}"
154
+ * }
155
+ * }
108
156
  * }
109
157
  * })
110
158
  */
@@ -140,7 +140,31 @@ class Tools {
140
140
  * name: "name",
141
141
  * description: "description",
142
142
  * apiIntegrationId: "api_integration_id",
143
- * apiIntegrationConnectionId: "api_integration_connection_id"
143
+ * apiIntegrationConnectionId: "api_integration_connection_id",
144
+ * baseApiSchema: {
145
+ * url: "https://example.com/agents/{agent_id}",
146
+ * method: "GET",
147
+ * pathParamsSchema: {
148
+ * "agent_id": {
149
+ * type: "string"
150
+ * }
151
+ * },
152
+ * queryParamsSchema: {
153
+ * properties: {
154
+ * "key": {
155
+ * type: "string",
156
+ * description: "My property",
157
+ * isSystemProvided: false,
158
+ * dynamicVariable: "",
159
+ * constantValue: ""
160
+ * }
161
+ * }
162
+ * },
163
+ * requestBodySchema: {},
164
+ * requestHeaders: {
165
+ * "Authorization": "Bearer {api_key}"
166
+ * }
167
+ * }
144
168
  * }
145
169
  * })
146
170
  */
@@ -360,7 +384,31 @@ class Tools {
360
384
  * name: "name",
361
385
  * description: "description",
362
386
  * apiIntegrationId: "api_integration_id",
363
- * apiIntegrationConnectionId: "api_integration_connection_id"
387
+ * apiIntegrationConnectionId: "api_integration_connection_id",
388
+ * baseApiSchema: {
389
+ * url: "https://example.com/agents/{agent_id}",
390
+ * method: "GET",
391
+ * pathParamsSchema: {
392
+ * "agent_id": {
393
+ * type: "string"
394
+ * }
395
+ * },
396
+ * queryParamsSchema: {
397
+ * properties: {
398
+ * "key": {
399
+ * type: "string",
400
+ * description: "My property",
401
+ * isSystemProvided: false,
402
+ * dynamicVariable: "",
403
+ * constantValue: ""
404
+ * }
405
+ * }
406
+ * },
407
+ * requestBodySchema: {},
408
+ * requestHeaders: {
409
+ * "Authorization": "Bearer {api_key}"
410
+ * }
411
+ * }
364
412
  * }
365
413
  * })
366
414
  */
@@ -51,7 +51,7 @@ export declare class Music {
51
51
  stream(request?: ElevenLabs.BodyStreamComposedMusicV1MusicStreamPost, requestOptions?: Music.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
52
52
  private __stream;
53
53
  /**
54
- * Separate a music file into individual stems
54
+ * Separate an audio file into individual stems. This endpoint might have high latency, depending on the length of the audio file.
55
55
  * @throws {@link ElevenLabs.UnprocessableEntityError}
56
56
  */
57
57
  separateStems(request: ElevenLabs.BodyStemSeparationV1MusicStemSeparationPost, requestOptions?: Music.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
@@ -277,7 +277,7 @@ class Music {
277
277
  });
278
278
  }
279
279
  /**
280
- * Separate a music file into individual stems
280
+ * Separate an audio file into individual stems. This endpoint might have high latency, depending on the length of the audio file.
281
281
  * @throws {@link ElevenLabs.UnprocessableEntityError}
282
282
  */
283
283
  separateStems(request, requestOptions) {
@@ -1,4 +1,5 @@
1
1
  export interface AgentMetadata {
2
2
  agentId: string;
3
+ branchId?: string;
3
4
  workflowNodeId?: string;
4
5
  }
@@ -0,0 +1,34 @@
1
+ import * as ElevenLabs from "../index";
2
+ /**
3
+ * When consumed by clients it convenient to include the base API schema even though
4
+ * the stored tool config does not include it.
5
+ */
6
+ export interface ApiIntegrationWebhookToolConfigExternalInput {
7
+ name: string;
8
+ /** Description of when the tool should be used and what it does. */
9
+ description: string;
10
+ /** The maximum time in seconds to wait for the tool call to complete. Must be between 5 and 120 seconds (inclusive). */
11
+ responseTimeoutSecs?: number;
12
+ /** If true, the user will not be able to interrupt the agent while this tool is running. */
13
+ disableInterruptions?: boolean;
14
+ /** If true, the agent will speak before the tool call. */
15
+ forcePreToolSpeech?: boolean;
16
+ /** Configuration for extracting values from tool responses and assigning them to dynamic variables */
17
+ assignments?: ElevenLabs.DynamicVariableAssignment[];
18
+ /** Predefined tool call sound type to play during tool execution. If not specified, no tool call sound will be played. */
19
+ toolCallSound?: ElevenLabs.ToolCallSoundType;
20
+ /** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
21
+ toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
22
+ /** Configuration for dynamic variables */
23
+ dynamicVariables?: ElevenLabs.DynamicVariablesConfig;
24
+ /** Determines when and how the tool executes: 'immediate' executes the tool right away when requested by the LLM, 'post_tool_speech' waits for the agent to finish speaking before executing, 'async' runs the tool in the background without blocking - best for long-running operations. */
25
+ executionMode?: ElevenLabs.ToolExecutionMode;
26
+ /** The version of the API integration tool */
27
+ toolVersion?: string;
28
+ apiIntegrationId: string;
29
+ apiIntegrationConnectionId: string;
30
+ /** User overrides applied on top of the base api_schema */
31
+ apiSchemaOverrides?: ElevenLabs.ApiIntegrationWebhookOverridesInput;
32
+ /** The base API schema from the integration definition */
33
+ baseApiSchema: ElevenLabs.WebhookToolApiSchemaConfigInput;
34
+ }
@@ -0,0 +1,34 @@
1
+ import * as ElevenLabs from "../index";
2
+ /**
3
+ * When consumed by clients it convenient to include the base API schema even though
4
+ * the stored tool config does not include it.
5
+ */
6
+ export interface ApiIntegrationWebhookToolConfigExternalOutput {
7
+ name: string;
8
+ /** Description of when the tool should be used and what it does. */
9
+ description: string;
10
+ /** The maximum time in seconds to wait for the tool call to complete. Must be between 5 and 120 seconds (inclusive). */
11
+ responseTimeoutSecs: number;
12
+ /** If true, the user will not be able to interrupt the agent while this tool is running. */
13
+ disableInterruptions: boolean;
14
+ /** If true, the agent will speak before the tool call. */
15
+ forcePreToolSpeech: boolean;
16
+ /** Configuration for extracting values from tool responses and assigning them to dynamic variables */
17
+ assignments: ElevenLabs.DynamicVariableAssignment[];
18
+ /** Predefined tool call sound type to play during tool execution. If not specified, no tool call sound will be played. */
19
+ toolCallSound?: ElevenLabs.ToolCallSoundType;
20
+ /** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
21
+ toolCallSoundBehavior: ElevenLabs.ToolCallSoundBehavior;
22
+ /** Configuration for dynamic variables */
23
+ dynamicVariables: ElevenLabs.DynamicVariablesConfig;
24
+ /** Determines when and how the tool executes: 'immediate' executes the tool right away when requested by the LLM, 'post_tool_speech' waits for the agent to finish speaking before executing, 'async' runs the tool in the background without blocking - best for long-running operations. */
25
+ executionMode: ElevenLabs.ToolExecutionMode;
26
+ /** The version of the API integration tool */
27
+ toolVersion: string;
28
+ apiIntegrationId: string;
29
+ apiIntegrationConnectionId: string;
30
+ /** User overrides applied on top of the base api_schema */
31
+ apiSchemaOverrides?: ElevenLabs.ApiIntegrationWebhookOverridesOutput;
32
+ /** The base API schema from the integration definition */
33
+ baseApiSchema: ElevenLabs.WebhookToolApiSchemaConfigOutput;
34
+ }
@@ -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 });
@@ -4,23 +4,23 @@ export interface ApiIntegrationWebhookToolConfigOutput {
4
4
  /** Description of when the tool should be used and what it does. */
5
5
  description: string;
6
6
  /** The maximum time in seconds to wait for the tool call to complete. Must be between 5 and 120 seconds (inclusive). */
7
- responseTimeoutSecs?: number;
7
+ responseTimeoutSecs: number;
8
8
  /** If true, the user will not be able to interrupt the agent while this tool is running. */
9
- disableInterruptions?: boolean;
9
+ disableInterruptions: boolean;
10
10
  /** If true, the agent will speak before the tool call. */
11
- forcePreToolSpeech?: boolean;
11
+ forcePreToolSpeech: boolean;
12
12
  /** Configuration for extracting values from tool responses and assigning them to dynamic variables */
13
- assignments?: ElevenLabs.DynamicVariableAssignment[];
13
+ assignments: ElevenLabs.DynamicVariableAssignment[];
14
14
  /** Predefined tool call sound type to play during tool execution. If not specified, no tool call sound will be played. */
15
15
  toolCallSound?: ElevenLabs.ToolCallSoundType;
16
16
  /** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */
17
- toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior;
17
+ toolCallSoundBehavior: ElevenLabs.ToolCallSoundBehavior;
18
18
  /** Configuration for dynamic variables */
19
- dynamicVariables?: ElevenLabs.DynamicVariablesConfig;
19
+ dynamicVariables: ElevenLabs.DynamicVariablesConfig;
20
20
  /** Determines when and how the tool executes: 'immediate' executes the tool right away when requested by the LLM, 'post_tool_speech' waits for the agent to finish speaking before executing, 'async' runs the tool in the background without blocking - best for long-running operations. */
21
- executionMode?: ElevenLabs.ToolExecutionMode;
21
+ executionMode: ElevenLabs.ToolExecutionMode;
22
22
  /** The version of the API integration tool */
23
- toolVersion?: string;
23
+ toolVersion: string;
24
24
  apiIntegrationId: string;
25
25
  apiIntegrationConnectionId: string;
26
26
  /** User overrides applied on top of the base api_schema */
@@ -1,5 +1,7 @@
1
1
  import * as ElevenLabs from "../index";
2
2
  export interface ConversationConfigClientOverrideConfigInput {
3
+ /** Configures overrides for nested fields. */
4
+ turn?: ElevenLabs.TurnConfigOverrideConfig;
3
5
  /** Configures overrides for nested fields. */
4
6
  tts?: ElevenLabs.TtsConversationalConfigOverrideConfig;
5
7
  /** Configures overrides for nested fields. */
@@ -1,5 +1,7 @@
1
1
  import * as ElevenLabs from "../index";
2
2
  export interface ConversationConfigClientOverrideConfigOutput {
3
+ /** Configures overrides for nested fields. */
4
+ turn?: ElevenLabs.TurnConfigOverrideConfig;
3
5
  /** Configures overrides for nested fields. */
4
6
  tts?: ElevenLabs.TtsConversationalConfigOverrideConfig;
5
7
  /** Configures overrides for nested fields. */
@@ -1,5 +1,7 @@
1
1
  import * as ElevenLabs from "../index";
2
2
  export interface ConversationConfigClientOverrideInput {
3
+ /** Configuration for turn detection */
4
+ turn?: ElevenLabs.TurnConfigOverride;
3
5
  /** Configuration for conversational text to speech */
4
6
  tts?: ElevenLabs.TtsConversationalConfigOverride;
5
7
  /** Configuration for conversational events */
@@ -1,5 +1,7 @@
1
1
  import * as ElevenLabs from "../index";
2
2
  export interface ConversationConfigClientOverrideOutput {
3
+ /** Configuration for turn detection */
4
+ turn?: ElevenLabs.TurnConfigOverride;
3
5
  /** Configuration for conversational text to speech */
4
6
  tts?: ElevenLabs.TtsConversationalConfigOverride;
5
7
  /** Configuration for conversational events */
@@ -0,0 +1,5 @@
1
+ export declare const ConversationFeedbackType: {
2
+ readonly Thumbs: "thumbs";
3
+ readonly Rating: "rating";
4
+ };
5
+ export type ConversationFeedbackType = (typeof ConversationFeedbackType)[keyof typeof ConversationFeedbackType];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ConversationFeedbackType = void 0;
5
+ exports.ConversationFeedbackType = {
6
+ Thumbs: "thumbs",
7
+ Rating: "rating",
8
+ };
@@ -1,6 +1,9 @@
1
1
  import * as ElevenLabs from "../index";
2
2
  export interface ConversationHistoryFeedbackCommonModel {
3
+ type?: ElevenLabs.ConversationFeedbackType;
3
4
  overallScore?: ElevenLabs.UserFeedbackScore;
4
5
  likes?: number;
5
6
  dislikes?: number;
7
+ rating?: number;
8
+ comment?: string;
6
9
  }
@@ -2,5 +2,6 @@ export declare const ConversationHistoryTranscriptOtherToolsResultCommonModelTyp
2
2
  readonly Client: "client";
3
3
  readonly Webhook: "webhook";
4
4
  readonly Mcp: "mcp";
5
+ readonly ApiIntegrationWebhook: "api_integration_webhook";
5
6
  };
6
7
  export type ConversationHistoryTranscriptOtherToolsResultCommonModelType = (typeof ConversationHistoryTranscriptOtherToolsResultCommonModelType)[keyof typeof ConversationHistoryTranscriptOtherToolsResultCommonModelType];
@@ -6,4 +6,5 @@ exports.ConversationHistoryTranscriptOtherToolsResultCommonModelType = {
6
6
  Client: "client",
7
7
  Webhook: "webhook",
8
8
  Mcp: "mcp",
9
+ ApiIntegrationWebhook: "api_integration_webhook",
9
10
  };
@@ -13,5 +13,6 @@ export declare const ConversationInitiationSource: {
13
13
  readonly Genesys: "genesys";
14
14
  readonly SwiftSdk: "swift_sdk";
15
15
  readonly Whatsapp: "whatsapp";
16
+ readonly FlutterSdk: "flutter_sdk";
16
17
  };
17
18
  export type ConversationInitiationSource = (typeof ConversationInitiationSource)[keyof typeof ConversationInitiationSource];
@@ -17,4 +17,5 @@ exports.ConversationInitiationSource = {
17
17
  Genesys: "genesys",
18
18
  SwiftSdk: "swift_sdk",
19
19
  Whatsapp: "whatsapp",
20
+ FlutterSdk: "flutter_sdk",
20
21
  };
@@ -1,6 +1,7 @@
1
1
  import * as ElevenLabs from "../index";
2
2
  export interface ConversationSummaryResponseModel {
3
3
  agentId: string;
4
+ branchId?: string;
4
5
  agentName?: string;
5
6
  conversationId: string;
6
7
  startTimeUnixSecs: number;
@@ -0,0 +1,6 @@
1
+ export interface DiscountResposneModel {
2
+ /** The discount applied to the invoice. E.g. [20.0f] for 20% off. */
3
+ discountPercentOff?: number;
4
+ /** The discount applied to the invoice. E.g. [20.0f] for 20 cents off. */
5
+ discountAmountOff?: number;
6
+ }
@@ -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 });
@@ -18,4 +18,8 @@ export interface GetAgentResponseModel {
18
18
  accessInfo?: ElevenLabs.ResourceAccessInfo;
19
19
  /** Agent tags used to categorize the agent */
20
20
  tags?: string[];
21
+ /** The ID of the version the agent is on */
22
+ versionId?: string;
23
+ /** The ID of the branch the agent is on */
24
+ branchId?: string;
21
25
  }
@@ -4,6 +4,7 @@ export interface GetConversationResponseModel {
4
4
  conversationId: string;
5
5
  status: ElevenLabs.GetConversationResponseModelStatus;
6
6
  userId?: string;
7
+ branchId?: string;
7
8
  transcript: ElevenLabs.ConversationHistoryTranscriptCommonModelOutput[];
8
9
  metadata: ElevenLabs.ConversationHistoryMetadataCommonModel;
9
10
  analysis?: ElevenLabs.ConversationHistoryAnalysisCommonModel;
@@ -2,6 +2,7 @@ import * as ElevenLabs from "../index";
2
2
  export interface GetTestSuiteInvocationResponseModel {
3
3
  id: string;
4
4
  agentId?: string;
5
+ branchId?: string;
5
6
  createdAt?: number;
6
7
  testRuns: ElevenLabs.UnitTestRunResponseModel[];
7
8
  }
@@ -6,10 +6,12 @@ export interface InvoiceResponse {
6
6
  subtotalCents?: number;
7
7
  /** The tax amount in cents. */
8
8
  taxCents?: number;
9
- /** The discount applied to the invoice. E.g. [20.0f] for 20% off. */
9
+ /** Deprecated. Use [discounts] instead. The discount applied to the invoice. E.g. [20.0f] for 20% off. */
10
10
  discountPercentOff?: number;
11
- /** The discount applied to the invoice. E.g. [20.0f] for 20% off. */
11
+ /** Deprecated. Use [discounts] instead. The discount applied to the invoice. E.g. [20.0f] for 20 cents off. */
12
12
  discountAmountOff?: number;
13
+ /** The discounts applied to the invoice. */
14
+ discounts: ElevenLabs.DiscountResposneModel[];
13
15
  /** The Unix timestamp of the next payment attempt. */
14
16
  nextPaymentAttemptUnix: number;
15
17
  /** The status of this invoice's payment intent. None when there is no payment intent. */
@@ -4,4 +4,6 @@ export interface LanguagePresetInput {
4
4
  overrides: ElevenLabs.ConversationConfigClientOverrideInput;
5
5
  /** The translation of the first message */
6
6
  firstMessageTranslation?: ElevenLabs.LanguagePresetTranslation;
7
+ /** The translation of the soft timeout message */
8
+ softTimeoutTranslation?: ElevenLabs.LanguagePresetTranslation;
7
9
  }
@@ -4,4 +4,6 @@ export interface LanguagePresetOutput {
4
4
  overrides: ElevenLabs.ConversationConfigClientOverrideOutput;
5
5
  /** The translation of the first message */
6
6
  firstMessageTranslation?: ElevenLabs.LanguagePresetTranslation;
7
+ /** The translation of the soft timeout message */
8
+ softTimeoutTranslation?: ElevenLabs.LanguagePresetTranslation;
7
9
  }
@@ -78,4 +78,6 @@ export interface ProjectExtendedResponse {
78
78
  applyTextNormalization: ElevenLabs.ProjectExtendedResponseModelApplyTextNormalization;
79
79
  /** Experimental features for the project. */
80
80
  experimental?: Record<string, unknown>;
81
+ /** List of uploaded assets e.g. videos, audios. */
82
+ assets: ElevenLabs.ProjectExtendedResponseModelAssetsItem[];
81
83
  }