@elevenlabs/elevenlabs-js 2.3.0 → 2.4.1

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 (420) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/conversationalAi/client/Client.d.ts +3 -0
  3. package/api/resources/conversationalAi/client/Client.js +17 -12
  4. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +14 -0
  5. package/api/resources/conversationalAi/resources/agents/client/Client.js +74 -0
  6. package/api/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.d.ts +11 -0
  7. package/api/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  8. package/api/resources/conversationalAi/resources/index.d.ts +2 -0
  9. package/api/resources/conversationalAi/resources/index.js +3 -1
  10. package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +126 -0
  11. package/api/resources/conversationalAi/resources/tools/client/Client.js +506 -0
  12. package/api/resources/conversationalAi/resources/tools/client/index.d.ts +2 -0
  13. package/api/resources/conversationalAi/resources/tools/client/index.js +17 -0
  14. package/api/resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.d.ts +17 -0
  15. package/api/resources/conversationalAi/resources/tools/client/requests/index.d.ts +1 -0
  16. package/api/resources/conversationalAi/resources/tools/client/requests/index.js +2 -0
  17. package/api/resources/conversationalAi/resources/tools/index.d.ts +1 -0
  18. package/api/resources/conversationalAi/resources/tools/index.js +17 -0
  19. package/api/resources/dubbing/client/Client.js +3 -0
  20. package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -0
  21. package/api/resources/textToVoice/client/Client.d.ts +32 -0
  22. package/api/resources/textToVoice/client/Client.js +162 -0
  23. package/api/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.d.ts +23 -0
  24. package/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +36 -0
  25. package/api/resources/textToVoice/client/requests/index.d.ts +2 -0
  26. package/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +28 -0
  27. package/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +27 -0
  28. package/api/resources/textToVoice/types/VoiceDesignRequestModelModelId.d.ts +11 -0
  29. package/api/resources/textToVoice/types/VoiceDesignRequestModelModelId.js +10 -0
  30. package/api/resources/textToVoice/types/index.d.ts +2 -0
  31. package/api/resources/textToVoice/types/index.js +2 -0
  32. package/api/resources/workspace/client/Client.d.ts +39 -0
  33. package/api/resources/workspace/client/Client.js +205 -0
  34. package/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +13 -0
  35. package/api/resources/workspace/client/requests/index.d.ts +1 -0
  36. package/api/types/AgentConfigOverride.d.ts +1 -1
  37. package/api/types/AgentConfigOverrideConfig.d.ts +1 -1
  38. package/api/types/AsrProvider.d.ts +5 -1
  39. package/api/types/AsrProvider.js +5 -0
  40. package/api/types/{BuiltInTools.d.ts → BuiltInToolsInput.d.ts} +1 -1
  41. package/api/types/BuiltInToolsOutput.d.ts +16 -0
  42. package/api/types/ClientToolConfigInput.d.ts +0 -1
  43. package/api/types/ClientToolConfigOutput.d.ts +0 -1
  44. package/api/types/ConvAiStoredSecretDependencies.d.ts +1 -1
  45. package/api/types/ConvAiStoredSecretDependenciesAgentsItem.d.ts +13 -0
  46. package/api/types/ConversationChargingCommonModel.d.ts +2 -0
  47. package/api/types/DefaultSharingPreferencesResponseModel.d.ts +8 -0
  48. package/api/types/GetToolDependentAgentsResponseModel.d.ts +9 -0
  49. package/api/types/GetToolDependentAgentsResponseModelAgentsItem.d.ts +13 -0
  50. package/api/types/McpToolConfigInput.d.ts +0 -1
  51. package/api/types/McpToolConfigOutput.d.ts +0 -1
  52. package/api/types/PromptAgent.d.ts +1 -27
  53. package/api/types/PromptAgentApiModelInput.d.ts +32 -0
  54. package/{dist/api/types/PromptAgentInputToolsItem.d.ts → api/types/PromptAgentApiModelInputToolsItem.d.ts} +2 -2
  55. package/api/types/PromptAgentApiModelOutput.d.ts +32 -0
  56. package/api/types/PromptAgentApiModelOutputToolsItem.d.ts +22 -0
  57. package/api/types/{PromptAgentOverride.d.ts → PromptAgentApiModelOverride.d.ts} +1 -1
  58. package/api/types/{PromptAgentOverrideConfig.d.ts → PromptAgentApiModelOverrideConfig.d.ts} +1 -1
  59. package/api/types/PromptAgentDbModel.d.ts +3 -3
  60. package/api/types/SystemToolConfigInput.d.ts +0 -1
  61. package/api/types/SystemToolConfigOutput.d.ts +0 -1
  62. package/api/types/ToolRequestModel.d.ts +8 -0
  63. package/{dist/api/types/PromptAgentDbModelToolsItem.d.ts → api/types/ToolRequestModelToolConfig.d.ts} +3 -3
  64. package/api/types/ToolRequestModelToolConfig.js +5 -0
  65. package/api/types/ToolResponseModel.d.ts +10 -0
  66. package/api/types/ToolResponseModel.js +5 -0
  67. package/api/types/{PromptAgentOutputToolsItem.d.ts → ToolResponseModelToolConfig.d.ts} +2 -2
  68. package/api/types/ToolResponseModelToolConfig.js +5 -0
  69. package/api/types/ToolsResponseModel.d.ts +7 -0
  70. package/api/types/ToolsResponseModel.js +5 -0
  71. package/api/types/WebhookToolConfigInput.d.ts +0 -1
  72. package/api/types/WebhookToolConfigOutput.d.ts +0 -1
  73. package/api/types/WorkspaceGroupPermission.d.ts +22 -0
  74. package/api/types/WorkspaceGroupPermission.js +24 -0
  75. package/api/types/WorkspaceGroupResponseModel.d.ts +10 -0
  76. package/api/types/WorkspaceGroupResponseModel.js +5 -0
  77. package/api/types/index.d.ts +20 -11
  78. package/api/types/index.js +20 -11
  79. package/dist/Client.js +2 -2
  80. package/dist/api/resources/conversationalAi/client/Client.d.ts +3 -0
  81. package/dist/api/resources/conversationalAi/client/Client.js +17 -12
  82. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +14 -0
  83. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +74 -0
  84. package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.d.ts +11 -0
  85. package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.js +5 -0
  86. package/dist/api/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  87. package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -0
  88. package/dist/api/resources/conversationalAi/resources/index.js +3 -1
  89. package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +126 -0
  90. package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +506 -0
  91. package/dist/api/resources/conversationalAi/resources/tools/client/index.d.ts +2 -0
  92. package/dist/api/resources/conversationalAi/resources/tools/client/index.js +17 -0
  93. package/dist/api/resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.d.ts +17 -0
  94. package/dist/api/resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.js +5 -0
  95. package/dist/api/resources/conversationalAi/resources/tools/client/requests/index.d.ts +1 -0
  96. package/dist/api/resources/conversationalAi/resources/tools/client/requests/index.js +2 -0
  97. package/dist/api/resources/conversationalAi/resources/tools/index.d.ts +1 -0
  98. package/dist/api/resources/conversationalAi/resources/tools/index.js +17 -0
  99. package/dist/api/resources/dubbing/client/Client.js +3 -0
  100. package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -0
  101. package/dist/api/resources/textToVoice/client/Client.d.ts +32 -0
  102. package/dist/api/resources/textToVoice/client/Client.js +162 -0
  103. package/dist/api/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.d.ts +23 -0
  104. package/dist/api/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.js +5 -0
  105. package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +36 -0
  106. package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.js +5 -0
  107. package/dist/api/resources/textToVoice/client/requests/index.d.ts +2 -0
  108. package/dist/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +28 -0
  109. package/dist/api/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +27 -0
  110. package/dist/api/resources/textToVoice/types/VoiceDesignRequestModelModelId.d.ts +11 -0
  111. package/dist/api/resources/textToVoice/types/VoiceDesignRequestModelModelId.js +10 -0
  112. package/dist/api/resources/textToVoice/types/index.d.ts +2 -0
  113. package/dist/api/resources/textToVoice/types/index.js +2 -0
  114. package/dist/api/resources/workspace/client/Client.d.ts +39 -0
  115. package/dist/api/resources/workspace/client/Client.js +205 -0
  116. package/dist/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +13 -0
  117. package/dist/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js +5 -0
  118. package/dist/api/resources/workspace/client/requests/index.d.ts +1 -0
  119. package/dist/api/types/AgentConfigOverride.d.ts +1 -1
  120. package/dist/api/types/AgentConfigOverrideConfig.d.ts +1 -1
  121. package/dist/api/types/AsrProvider.d.ts +5 -1
  122. package/dist/api/types/AsrProvider.js +5 -0
  123. package/dist/api/types/{BuiltInTools.d.ts → BuiltInToolsInput.d.ts} +1 -1
  124. package/dist/api/types/BuiltInToolsInput.js +5 -0
  125. package/dist/api/types/BuiltInToolsOutput.d.ts +16 -0
  126. package/dist/api/types/BuiltInToolsOutput.js +5 -0
  127. package/dist/api/types/ClientToolConfigInput.d.ts +0 -1
  128. package/dist/api/types/ClientToolConfigOutput.d.ts +0 -1
  129. package/dist/api/types/ConvAiStoredSecretDependencies.d.ts +1 -1
  130. package/dist/api/types/ConvAiStoredSecretDependenciesAgentsItem.d.ts +13 -0
  131. package/dist/api/types/ConvAiStoredSecretDependenciesAgentsItem.js +5 -0
  132. package/dist/api/types/ConversationChargingCommonModel.d.ts +2 -0
  133. package/dist/api/types/DefaultSharingPreferencesResponseModel.d.ts +8 -0
  134. package/dist/api/types/DefaultSharingPreferencesResponseModel.js +5 -0
  135. package/dist/api/types/GetToolDependentAgentsResponseModel.d.ts +9 -0
  136. package/dist/api/types/GetToolDependentAgentsResponseModel.js +5 -0
  137. package/dist/api/types/GetToolDependentAgentsResponseModelAgentsItem.d.ts +13 -0
  138. package/dist/api/types/GetToolDependentAgentsResponseModelAgentsItem.js +5 -0
  139. package/dist/api/types/McpToolConfigInput.d.ts +0 -1
  140. package/dist/api/types/McpToolConfigOutput.d.ts +0 -1
  141. package/dist/api/types/PromptAgent.d.ts +1 -27
  142. package/dist/api/types/PromptAgentApiModelInput.d.ts +32 -0
  143. package/dist/api/types/PromptAgentApiModelInput.js +5 -0
  144. package/{api/types/PromptAgentDbModelToolsItem.d.ts → dist/api/types/PromptAgentApiModelInputToolsItem.d.ts} +2 -2
  145. package/dist/api/types/PromptAgentApiModelInputToolsItem.js +5 -0
  146. package/dist/api/types/PromptAgentApiModelOutput.d.ts +32 -0
  147. package/dist/api/types/PromptAgentApiModelOutput.js +5 -0
  148. package/dist/api/types/PromptAgentApiModelOutputToolsItem.d.ts +22 -0
  149. package/dist/api/types/PromptAgentApiModelOutputToolsItem.js +5 -0
  150. package/dist/api/types/{PromptAgentOverride.d.ts → PromptAgentApiModelOverride.d.ts} +1 -1
  151. package/dist/api/types/PromptAgentApiModelOverride.js +5 -0
  152. package/dist/api/types/{PromptAgentOverrideConfig.d.ts → PromptAgentApiModelOverrideConfig.d.ts} +1 -1
  153. package/dist/api/types/PromptAgentApiModelOverrideConfig.js +5 -0
  154. package/dist/api/types/PromptAgentDbModel.d.ts +3 -3
  155. package/dist/api/types/SystemToolConfigInput.d.ts +0 -1
  156. package/dist/api/types/SystemToolConfigOutput.d.ts +0 -1
  157. package/dist/api/types/ToolRequestModel.d.ts +8 -0
  158. package/dist/api/types/ToolRequestModel.js +5 -0
  159. package/{api/types/PromptAgentInputToolsItem.d.ts → dist/api/types/ToolRequestModelToolConfig.d.ts} +3 -3
  160. package/dist/api/types/ToolRequestModelToolConfig.js +5 -0
  161. package/dist/api/types/ToolResponseModel.d.ts +10 -0
  162. package/dist/api/types/ToolResponseModel.js +5 -0
  163. package/dist/api/types/{PromptAgentOutputToolsItem.d.ts → ToolResponseModelToolConfig.d.ts} +2 -2
  164. package/dist/api/types/ToolResponseModelToolConfig.js +5 -0
  165. package/dist/api/types/ToolsResponseModel.d.ts +7 -0
  166. package/dist/api/types/ToolsResponseModel.js +5 -0
  167. package/dist/api/types/WebhookToolConfigInput.d.ts +0 -1
  168. package/dist/api/types/WebhookToolConfigOutput.d.ts +0 -1
  169. package/dist/api/types/WorkspaceGroupPermission.d.ts +22 -0
  170. package/dist/api/types/WorkspaceGroupPermission.js +24 -0
  171. package/dist/api/types/WorkspaceGroupResponseModel.d.ts +10 -0
  172. package/dist/api/types/WorkspaceGroupResponseModel.js +5 -0
  173. package/dist/api/types/index.d.ts +20 -11
  174. package/dist/api/types/index.js +20 -11
  175. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.d.ts +12 -0
  176. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.js +43 -0
  177. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  178. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/index.js +3 -1
  179. package/dist/serialization/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.d.ts +16 -0
  180. package/dist/serialization/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.js +47 -0
  181. package/dist/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +22 -0
  182. package/dist/serialization/{types/DependentAvailableAgentToolIdentifier.js → resources/textToVoice/client/requests/VoiceDesignRequestModel.js} +14 -9
  183. package/dist/serialization/resources/textToVoice/client/requests/index.d.ts +2 -0
  184. package/dist/serialization/resources/textToVoice/client/requests/index.js +5 -1
  185. package/dist/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +10 -0
  186. package/dist/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +61 -0
  187. package/dist/serialization/resources/textToVoice/types/VoiceDesignRequestModelModelId.d.ts +10 -0
  188. package/{serialization/types/DependentUnknownAgentToolIdentifier.js → dist/serialization/resources/textToVoice/types/VoiceDesignRequestModelModelId.js} +3 -3
  189. package/dist/serialization/resources/textToVoice/types/index.d.ts +2 -0
  190. package/dist/serialization/resources/textToVoice/types/index.js +2 -0
  191. package/dist/serialization/resources/workspace/client/getShareOptions.d.ts +11 -0
  192. package/dist/serialization/{types/DependentAvailableAgentToolIdentifierAccessLevel.js → resources/workspace/client/getShareOptions.js} +4 -3
  193. package/dist/serialization/resources/workspace/client/index.d.ts +1 -0
  194. package/dist/serialization/resources/workspace/client/index.js +24 -0
  195. package/dist/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +12 -0
  196. package/dist/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js +43 -0
  197. package/dist/serialization/resources/workspace/client/requests/index.d.ts +1 -0
  198. package/dist/serialization/resources/workspace/client/requests/index.js +3 -1
  199. package/dist/serialization/types/AgentConfigOverride.d.ts +2 -2
  200. package/dist/serialization/types/AgentConfigOverride.js +2 -2
  201. package/dist/serialization/types/AgentConfigOverrideConfig.d.ts +2 -2
  202. package/dist/serialization/types/AgentConfigOverrideConfig.js +2 -2
  203. package/dist/serialization/types/AsrProvider.d.ts +1 -1
  204. package/dist/serialization/types/AsrProvider.js +1 -1
  205. package/dist/serialization/types/{BuiltInTools.d.ts → BuiltInToolsInput.d.ts} +2 -2
  206. package/dist/serialization/types/{BuiltInTools.js → BuiltInToolsInput.js} +2 -2
  207. package/dist/serialization/types/BuiltInToolsOutput.d.ts +17 -0
  208. package/dist/serialization/types/BuiltInToolsOutput.js +48 -0
  209. package/dist/serialization/types/ClientToolConfigInput.d.ts +0 -1
  210. package/dist/serialization/types/ClientToolConfigInput.js +0 -1
  211. package/dist/serialization/types/ClientToolConfigOutput.d.ts +0 -1
  212. package/dist/serialization/types/ClientToolConfigOutput.js +0 -1
  213. package/dist/serialization/types/ConvAiStoredSecretDependencies.d.ts +2 -2
  214. package/dist/serialization/types/ConvAiStoredSecretDependencies.js +2 -2
  215. package/dist/serialization/types/ConvAiStoredSecretDependenciesAgentsItem.d.ts +18 -0
  216. package/dist/serialization/types/{ConvAiStoredSecretDependenciesAgentToolsItem.js → ConvAiStoredSecretDependenciesAgentsItem.js} +6 -6
  217. package/dist/serialization/types/ConversationChargingCommonModel.d.ts +2 -0
  218. package/dist/serialization/types/ConversationChargingCommonModel.js +2 -0
  219. package/dist/serialization/types/DefaultSharingPreferencesResponseModel.d.ts +13 -0
  220. package/dist/serialization/types/DefaultSharingPreferencesResponseModel.js +44 -0
  221. package/dist/serialization/types/GetToolDependentAgentsResponseModel.d.ts +15 -0
  222. package/dist/serialization/types/GetToolDependentAgentsResponseModel.js +46 -0
  223. package/dist/serialization/types/GetToolDependentAgentsResponseModelAgentsItem.d.ts +18 -0
  224. package/{serialization/types/ConvAiStoredSecretDependenciesAgentToolsItem.js → dist/serialization/types/GetToolDependentAgentsResponseModelAgentsItem.js} +6 -6
  225. package/dist/serialization/types/McpToolConfigInput.d.ts +0 -1
  226. package/dist/serialization/types/McpToolConfigInput.js +0 -1
  227. package/dist/serialization/types/McpToolConfigOutput.d.ts +0 -1
  228. package/dist/serialization/types/McpToolConfigOutput.js +0 -1
  229. package/dist/serialization/types/PromptAgent.d.ts +2 -20
  230. package/dist/serialization/types/PromptAgent.js +1 -19
  231. package/dist/serialization/types/PromptAgentApiModelInput.d.ts +30 -0
  232. package/dist/serialization/types/PromptAgentApiModelInput.js +61 -0
  233. package/{serialization/types/PromptAgentDbModelToolsItem.d.ts → dist/serialization/types/PromptAgentApiModelInputToolsItem.d.ts} +3 -3
  234. package/{serialization/types/PromptAgentDbModelToolsItem.js → dist/serialization/types/PromptAgentApiModelInputToolsItem.js} +2 -2
  235. package/dist/serialization/types/PromptAgentApiModelOutput.d.ts +30 -0
  236. package/dist/serialization/types/PromptAgentApiModelOutput.js +61 -0
  237. package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +26 -0
  238. package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.js +55 -0
  239. package/{serialization/types/PromptAgentOverride.d.ts → dist/serialization/types/PromptAgentApiModelOverride.d.ts} +2 -2
  240. package/dist/serialization/types/{PromptAgentOverride.js → PromptAgentApiModelOverride.js} +2 -2
  241. package/dist/serialization/types/{PromptAgentOverrideConfig.d.ts → PromptAgentApiModelOverrideConfig.d.ts} +2 -2
  242. package/dist/serialization/types/{PromptAgentOverrideConfig.js → PromptAgentApiModelOverrideConfig.js} +2 -2
  243. package/dist/serialization/types/PromptAgentDbModel.d.ts +3 -4
  244. package/dist/serialization/types/PromptAgentDbModel.js +3 -4
  245. package/dist/serialization/types/SystemToolConfigInput.d.ts +0 -1
  246. package/dist/serialization/types/SystemToolConfigInput.js +0 -1
  247. package/dist/serialization/types/SystemToolConfigOutput.d.ts +0 -1
  248. package/dist/serialization/types/SystemToolConfigOutput.js +0 -1
  249. package/dist/serialization/types/ToolRequestModel.d.ts +13 -0
  250. package/dist/serialization/types/ToolRequestModel.js +44 -0
  251. package/dist/serialization/types/{PromptAgentInputToolsItem.d.ts → ToolRequestModelToolConfig.d.ts} +3 -3
  252. package/{serialization/types/PromptAgentInputToolsItem.js → dist/serialization/types/ToolRequestModelToolConfig.js} +2 -2
  253. package/dist/serialization/types/ToolResponseModel.d.ts +16 -0
  254. package/dist/serialization/types/ToolResponseModel.js +47 -0
  255. package/{serialization/types/PromptAgentOutputToolsItem.d.ts → dist/serialization/types/ToolResponseModelToolConfig.d.ts} +3 -3
  256. package/{serialization/types/PromptAgentOutputToolsItem.js → dist/serialization/types/ToolResponseModelToolConfig.js} +2 -2
  257. package/dist/serialization/types/ToolsResponseModel.d.ts +13 -0
  258. package/dist/serialization/types/ToolsResponseModel.js +44 -0
  259. package/dist/serialization/types/WebhookToolConfigInput.d.ts +0 -1
  260. package/dist/serialization/types/WebhookToolConfigInput.js +0 -1
  261. package/dist/serialization/types/WebhookToolConfigOutput.d.ts +0 -1
  262. package/dist/serialization/types/WebhookToolConfigOutput.js +0 -1
  263. package/dist/serialization/types/WorkspaceGroupPermission.d.ts +10 -0
  264. package/dist/serialization/types/WorkspaceGroupPermission.js +58 -0
  265. package/dist/serialization/types/WorkspaceGroupResponseModel.d.ts +16 -0
  266. package/dist/serialization/types/WorkspaceGroupResponseModel.js +47 -0
  267. package/dist/serialization/types/index.d.ts +20 -11
  268. package/dist/serialization/types/index.js +20 -11
  269. package/dist/version.d.ts +1 -1
  270. package/dist/version.js +1 -1
  271. package/dist/wrapper/play.d.ts +1 -2
  272. package/dist/wrapper/play.js +69 -36
  273. package/dist/wrapper/stream.d.ts +1 -2
  274. package/dist/wrapper/stream.js +64 -37
  275. package/dist/wrapper/utils.d.ts +2 -0
  276. package/dist/wrapper/utils.js +41 -0
  277. package/package.json +2 -3
  278. package/reference.md +1019 -239
  279. package/runtime-tests/cf-worker/package.json +17 -0
  280. package/runtime-tests/cf-worker/wrangler.toml +4 -0
  281. package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.d.ts +12 -0
  282. package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.js +43 -0
  283. package/serialization/resources/conversationalAi/resources/agents/client/requests/index.d.ts +1 -0
  284. package/serialization/resources/conversationalAi/resources/agents/client/requests/index.js +3 -1
  285. package/serialization/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.d.ts +16 -0
  286. package/serialization/resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.js +47 -0
  287. package/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +22 -0
  288. package/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.js +53 -0
  289. package/serialization/resources/textToVoice/client/requests/index.d.ts +2 -0
  290. package/serialization/resources/textToVoice/client/requests/index.js +5 -1
  291. package/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.d.ts +10 -0
  292. package/serialization/resources/textToVoice/types/TextToVoiceDesignRequestOutputFormat.js +61 -0
  293. package/serialization/resources/textToVoice/types/VoiceDesignRequestModelModelId.d.ts +10 -0
  294. package/{dist/serialization/types/DependentUnknownAgentToolIdentifier.js → serialization/resources/textToVoice/types/VoiceDesignRequestModelModelId.js} +3 -3
  295. package/serialization/resources/textToVoice/types/index.d.ts +2 -0
  296. package/serialization/resources/textToVoice/types/index.js +2 -0
  297. package/serialization/resources/workspace/client/getShareOptions.d.ts +11 -0
  298. package/serialization/resources/workspace/client/getShareOptions.js +42 -0
  299. package/serialization/resources/workspace/client/index.d.ts +1 -0
  300. package/serialization/resources/workspace/client/index.js +24 -0
  301. package/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +12 -0
  302. package/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js +43 -0
  303. package/serialization/resources/workspace/client/requests/index.d.ts +1 -0
  304. package/serialization/resources/workspace/client/requests/index.js +3 -1
  305. package/serialization/types/AgentConfigOverride.d.ts +2 -2
  306. package/serialization/types/AgentConfigOverride.js +2 -2
  307. package/serialization/types/AgentConfigOverrideConfig.d.ts +2 -2
  308. package/serialization/types/AgentConfigOverrideConfig.js +2 -2
  309. package/serialization/types/AsrProvider.d.ts +1 -1
  310. package/serialization/types/AsrProvider.js +1 -1
  311. package/serialization/types/{BuiltInTools.d.ts → BuiltInToolsInput.d.ts} +2 -2
  312. package/serialization/types/{BuiltInTools.js → BuiltInToolsInput.js} +2 -2
  313. package/serialization/types/BuiltInToolsOutput.d.ts +17 -0
  314. package/serialization/types/BuiltInToolsOutput.js +48 -0
  315. package/serialization/types/ClientToolConfigInput.d.ts +0 -1
  316. package/serialization/types/ClientToolConfigInput.js +0 -1
  317. package/serialization/types/ClientToolConfigOutput.d.ts +0 -1
  318. package/serialization/types/ClientToolConfigOutput.js +0 -1
  319. package/serialization/types/ConvAiStoredSecretDependencies.d.ts +2 -2
  320. package/serialization/types/ConvAiStoredSecretDependencies.js +2 -2
  321. package/serialization/types/ConvAiStoredSecretDependenciesAgentsItem.d.ts +18 -0
  322. package/serialization/types/ConvAiStoredSecretDependenciesAgentsItem.js +51 -0
  323. package/serialization/types/ConversationChargingCommonModel.d.ts +2 -0
  324. package/serialization/types/ConversationChargingCommonModel.js +2 -0
  325. package/serialization/types/DefaultSharingPreferencesResponseModel.d.ts +13 -0
  326. package/serialization/types/DefaultSharingPreferencesResponseModel.js +44 -0
  327. package/serialization/types/GetToolDependentAgentsResponseModel.d.ts +15 -0
  328. package/serialization/types/GetToolDependentAgentsResponseModel.js +46 -0
  329. package/serialization/types/GetToolDependentAgentsResponseModelAgentsItem.d.ts +18 -0
  330. package/serialization/types/GetToolDependentAgentsResponseModelAgentsItem.js +51 -0
  331. package/serialization/types/McpToolConfigInput.d.ts +0 -1
  332. package/serialization/types/McpToolConfigInput.js +0 -1
  333. package/serialization/types/McpToolConfigOutput.d.ts +0 -1
  334. package/serialization/types/McpToolConfigOutput.js +0 -1
  335. package/serialization/types/PromptAgent.d.ts +2 -20
  336. package/serialization/types/PromptAgent.js +1 -19
  337. package/serialization/types/PromptAgentApiModelInput.d.ts +30 -0
  338. package/serialization/types/PromptAgentApiModelInput.js +61 -0
  339. package/{dist/serialization/types/PromptAgentDbModelToolsItem.d.ts → serialization/types/PromptAgentApiModelInputToolsItem.d.ts} +3 -3
  340. package/{dist/serialization/types/PromptAgentDbModelToolsItem.js → serialization/types/PromptAgentApiModelInputToolsItem.js} +2 -2
  341. package/serialization/types/PromptAgentApiModelOutput.d.ts +30 -0
  342. package/serialization/types/PromptAgentApiModelOutput.js +61 -0
  343. package/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +26 -0
  344. package/serialization/types/PromptAgentApiModelOutputToolsItem.js +55 -0
  345. package/{dist/serialization/types/PromptAgentOverride.d.ts → serialization/types/PromptAgentApiModelOverride.d.ts} +2 -2
  346. package/serialization/types/{PromptAgentOverride.js → PromptAgentApiModelOverride.js} +2 -2
  347. package/serialization/types/{PromptAgentOverrideConfig.d.ts → PromptAgentApiModelOverrideConfig.d.ts} +2 -2
  348. package/serialization/types/{PromptAgentOverrideConfig.js → PromptAgentApiModelOverrideConfig.js} +2 -2
  349. package/serialization/types/PromptAgentDbModel.d.ts +3 -4
  350. package/serialization/types/PromptAgentDbModel.js +3 -4
  351. package/serialization/types/SystemToolConfigInput.d.ts +0 -1
  352. package/serialization/types/SystemToolConfigInput.js +0 -1
  353. package/serialization/types/SystemToolConfigOutput.d.ts +0 -1
  354. package/serialization/types/SystemToolConfigOutput.js +0 -1
  355. package/serialization/types/ToolRequestModel.d.ts +13 -0
  356. package/serialization/types/ToolRequestModel.js +44 -0
  357. package/serialization/types/{PromptAgentInputToolsItem.d.ts → ToolRequestModelToolConfig.d.ts} +3 -3
  358. package/{dist/serialization/types/PromptAgentInputToolsItem.js → serialization/types/ToolRequestModelToolConfig.js} +2 -2
  359. package/serialization/types/ToolResponseModel.d.ts +16 -0
  360. package/serialization/types/ToolResponseModel.js +47 -0
  361. package/{dist/serialization/types/PromptAgentOutputToolsItem.d.ts → serialization/types/ToolResponseModelToolConfig.d.ts} +3 -3
  362. package/{dist/serialization/types/PromptAgentOutputToolsItem.js → serialization/types/ToolResponseModelToolConfig.js} +2 -2
  363. package/serialization/types/ToolsResponseModel.d.ts +13 -0
  364. package/serialization/types/ToolsResponseModel.js +44 -0
  365. package/serialization/types/WebhookToolConfigInput.d.ts +0 -1
  366. package/serialization/types/WebhookToolConfigInput.js +0 -1
  367. package/serialization/types/WebhookToolConfigOutput.d.ts +0 -1
  368. package/serialization/types/WebhookToolConfigOutput.js +0 -1
  369. package/serialization/types/WorkspaceGroupPermission.d.ts +10 -0
  370. package/serialization/types/WorkspaceGroupPermission.js +58 -0
  371. package/serialization/types/WorkspaceGroupResponseModel.d.ts +16 -0
  372. package/serialization/types/WorkspaceGroupResponseModel.js +47 -0
  373. package/serialization/types/index.d.ts +20 -11
  374. package/serialization/types/index.js +20 -11
  375. package/version.d.ts +1 -1
  376. package/version.js +1 -1
  377. package/wrapper/play.d.ts +1 -2
  378. package/wrapper/play.js +69 -36
  379. package/wrapper/stream.d.ts +1 -2
  380. package/wrapper/stream.js +64 -37
  381. package/wrapper/utils.d.ts +2 -0
  382. package/wrapper/utils.js +41 -0
  383. package/api/types/ConvAiStoredSecretDependenciesAgentToolsItem.d.ts +0 -13
  384. package/api/types/DependentAvailableAgentToolIdentifier.d.ts +0 -11
  385. package/api/types/DependentAvailableAgentToolIdentifierAccessLevel.d.ts +0 -9
  386. package/api/types/DependentAvailableAgentToolIdentifierAccessLevel.js +0 -11
  387. package/api/types/DependentUnknownAgentToolIdentifier.d.ts +0 -9
  388. package/dist/api/types/ConvAiStoredSecretDependenciesAgentToolsItem.d.ts +0 -13
  389. package/dist/api/types/DependentAvailableAgentToolIdentifier.d.ts +0 -11
  390. package/dist/api/types/DependentAvailableAgentToolIdentifierAccessLevel.d.ts +0 -9
  391. package/dist/api/types/DependentAvailableAgentToolIdentifierAccessLevel.js +0 -11
  392. package/dist/api/types/DependentUnknownAgentToolIdentifier.d.ts +0 -9
  393. package/dist/serialization/types/ConvAiStoredSecretDependenciesAgentToolsItem.d.ts +0 -18
  394. package/dist/serialization/types/DependentAvailableAgentToolIdentifier.d.ts +0 -17
  395. package/dist/serialization/types/DependentAvailableAgentToolIdentifierAccessLevel.d.ts +0 -10
  396. package/dist/serialization/types/DependentUnknownAgentToolIdentifier.d.ts +0 -11
  397. package/serialization/types/ConvAiStoredSecretDependenciesAgentToolsItem.d.ts +0 -18
  398. package/serialization/types/DependentAvailableAgentToolIdentifier.d.ts +0 -17
  399. package/serialization/types/DependentAvailableAgentToolIdentifier.js +0 -48
  400. package/serialization/types/DependentAvailableAgentToolIdentifierAccessLevel.d.ts +0 -10
  401. package/serialization/types/DependentAvailableAgentToolIdentifierAccessLevel.js +0 -41
  402. package/serialization/types/DependentUnknownAgentToolIdentifier.d.ts +0 -11
  403. /package/api/{types/BuiltInTools.js → resources/conversationalAi/resources/agents/client/requests/BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost.js} +0 -0
  404. /package/api/{types/ConvAiStoredSecretDependenciesAgentToolsItem.js → resources/conversationalAi/resources/tools/client/requests/ToolsGetDependentAgentsRequest.js} +0 -0
  405. /package/api/{types/DependentAvailableAgentToolIdentifier.js → resources/textToVoice/client/requests/BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost.js} +0 -0
  406. /package/api/{types/DependentUnknownAgentToolIdentifier.js → resources/textToVoice/client/requests/VoiceDesignRequestModel.js} +0 -0
  407. /package/api/{types/PromptAgentDbModelToolsItem.js → resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js} +0 -0
  408. /package/api/types/{PromptAgentInputToolsItem.js → BuiltInToolsInput.js} +0 -0
  409. /package/api/types/{PromptAgentOutputToolsItem.js → BuiltInToolsOutput.js} +0 -0
  410. /package/api/types/{PromptAgentOverride.js → ConvAiStoredSecretDependenciesAgentsItem.js} +0 -0
  411. /package/api/types/{PromptAgentOverrideConfig.js → DefaultSharingPreferencesResponseModel.js} +0 -0
  412. /package/{dist/api/types/BuiltInTools.js → api/types/GetToolDependentAgentsResponseModel.js} +0 -0
  413. /package/{dist/api/types/ConvAiStoredSecretDependenciesAgentToolsItem.js → api/types/GetToolDependentAgentsResponseModelAgentsItem.js} +0 -0
  414. /package/{dist/api/types/DependentAvailableAgentToolIdentifier.js → api/types/PromptAgentApiModelInput.js} +0 -0
  415. /package/{dist/api/types/DependentUnknownAgentToolIdentifier.js → api/types/PromptAgentApiModelInputToolsItem.js} +0 -0
  416. /package/{dist/api/types/PromptAgentDbModelToolsItem.js → api/types/PromptAgentApiModelOutput.js} +0 -0
  417. /package/{dist/api/types/PromptAgentInputToolsItem.js → api/types/PromptAgentApiModelOutputToolsItem.js} +0 -0
  418. /package/{dist/api/types/PromptAgentOutputToolsItem.js → api/types/PromptAgentApiModelOverride.js} +0 -0
  419. /package/{dist/api/types/PromptAgentOverride.js → api/types/PromptAgentApiModelOverrideConfig.js} +0 -0
  420. /package/{dist/api/types/PromptAgentOverrideConfig.js → api/types/ToolRequestModel.js} +0 -0
@@ -1,4 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type AsrProvider = "elevenlabs";
4
+ export type AsrProvider = "elevenlabs" | "realtime_scribe_v1";
5
+ export declare const AsrProvider: {
6
+ readonly Elevenlabs: "elevenlabs";
7
+ readonly RealtimeScribeV1: "realtime_scribe_v1";
8
+ };
@@ -3,3 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AsrProvider = void 0;
7
+ exports.AsrProvider = {
8
+ Elevenlabs: "elevenlabs",
9
+ RealtimeScribeV1: "realtime_scribe_v1",
10
+ };
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as ElevenLabs from "../index";
5
- export interface BuiltInTools {
5
+ export interface BuiltInToolsInput {
6
6
  /** The end call tool */
7
7
  endCall?: ElevenLabs.SystemToolConfigInput;
8
8
  /** The language detection tool */
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface BuiltInToolsOutput {
6
+ /** The end call tool */
7
+ endCall?: ElevenLabs.SystemToolConfigOutput;
8
+ /** The language detection tool */
9
+ languageDetection?: ElevenLabs.SystemToolConfigOutput;
10
+ /** The transfer to agent tool */
11
+ transferToAgent?: ElevenLabs.SystemToolConfigOutput;
12
+ /** The transfer to number tool */
13
+ transferToNumber?: ElevenLabs.SystemToolConfigOutput;
14
+ /** The skip turn tool */
15
+ skipTurn?: ElevenLabs.SystemToolConfigOutput;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,7 +6,6 @@ import * as ElevenLabs from "../index";
6
6
  * A client tool is one that sends an event to the user's client to trigger something client side
7
7
  */
8
8
  export interface ClientToolConfigInput {
9
- id?: string;
10
9
  name: string;
11
10
  description: string;
12
11
  /** The maximum time in seconds to wait for the tool call to complete. Must be between 1 and 30 seconds (inclusive). */
@@ -6,7 +6,6 @@ import * as ElevenLabs from "../index";
6
6
  * A client tool is one that sends an event to the user's client to trigger something client side
7
7
  */
8
8
  export interface ClientToolConfigOutput {
9
- id?: string;
10
9
  name: string;
11
10
  description: string;
12
11
  /** The maximum time in seconds to wait for the tool call to complete. Must be between 1 and 30 seconds (inclusive). */
@@ -4,7 +4,7 @@
4
4
  import * as ElevenLabs from "../index";
5
5
  export interface ConvAiStoredSecretDependencies {
6
6
  tools: ElevenLabs.ConvAiStoredSecretDependenciesToolsItem[];
7
- agentTools: ElevenLabs.ConvAiStoredSecretDependenciesAgentToolsItem[];
7
+ agents: ElevenLabs.ConvAiStoredSecretDependenciesAgentsItem[];
8
8
  others: ElevenLabs.SecretDependencyType[];
9
9
  phoneNumbers?: ElevenLabs.DependentPhoneNumberIdentifier[];
10
10
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export type ConvAiStoredSecretDependenciesAgentsItem = ElevenLabs.ConvAiStoredSecretDependenciesAgentsItem.Available | ElevenLabs.ConvAiStoredSecretDependenciesAgentsItem.Unknown;
6
+ export declare namespace ConvAiStoredSecretDependenciesAgentsItem {
7
+ interface Available extends ElevenLabs.DependentAvailableAgentIdentifier {
8
+ type: "available";
9
+ }
10
+ interface Unknown extends ElevenLabs.DependentUnknownAgentIdentifier {
11
+ type: "unknown";
12
+ }
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,4 +8,6 @@ export interface ConversationChargingCommonModel {
8
8
  tier?: string;
9
9
  llmUsage?: ElevenLabs.LlmCategoryUsage;
10
10
  llmPrice?: number;
11
+ llmCharge?: number;
12
+ callCharge?: number;
11
13
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface DefaultSharingPreferencesResponseModel {
6
+ /** List of groups that the user shares with by default */
7
+ defaultSharingGroups: ElevenLabs.WorkspaceGroupResponseModel[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface GetToolDependentAgentsResponseModel {
6
+ agents: ElevenLabs.GetToolDependentAgentsResponseModelAgentsItem[];
7
+ nextCursor?: string;
8
+ hasMore: boolean;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export type GetToolDependentAgentsResponseModelAgentsItem = ElevenLabs.GetToolDependentAgentsResponseModelAgentsItem.Available | ElevenLabs.GetToolDependentAgentsResponseModelAgentsItem.Unknown;
6
+ export declare namespace GetToolDependentAgentsResponseModelAgentsItem {
7
+ interface Available extends ElevenLabs.DependentAvailableAgentIdentifier {
8
+ type: "available";
9
+ }
10
+ interface Unknown extends ElevenLabs.DependentUnknownAgentIdentifier {
11
+ type: "unknown";
12
+ }
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,7 +6,6 @@ import * as ElevenLabs from "../index";
6
6
  * An MCP tool configuration that can be used to call MCP servers
7
7
  */
8
8
  export interface McpToolConfigInput {
9
- id?: string;
10
9
  name: string;
11
10
  description: string;
12
11
  /** The maximum time in seconds to wait for the tool call to complete. */
@@ -6,7 +6,6 @@ import * as ElevenLabs from "../index";
6
6
  * An MCP tool configuration that can be used to call MCP servers
7
7
  */
8
8
  export interface McpToolConfigOutput {
9
- id?: string;
10
9
  name: string;
11
10
  description: string;
12
11
  /** The maximum time in seconds to wait for the tool call to complete. */
@@ -1,30 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as ElevenLabs from "../index";
5
- export interface PromptAgent {
6
- /** The prompt for the agent */
7
- prompt?: string;
8
- /** The LLM to query with the prompt and the chat history */
9
- llm?: ElevenLabs.Llm;
10
- /** The temperature for the LLM */
11
- temperature?: number;
12
- /** If greater than 0, maximum number of tokens the LLM can predict */
13
- maxTokens?: number;
14
- /** A list of tools that the agent can use over the course of the conversation */
15
- tools?: ElevenLabs.PromptAgentOutputToolsItem[];
16
- /** A list of IDs of tools used by the agent */
17
- toolIds?: string[];
18
- /** A list of MCP server ids to be used by the agent */
19
- mcpServerIds?: string[];
20
- /** A list of Native MCP server ids to be used by the agent */
21
- nativeMcpServerIds?: string[];
22
- /** A list of knowledge bases to be used by the agent */
23
- knowledgeBase?: ElevenLabs.KnowledgeBaseLocator[];
24
- /** Definition for a custom LLM if LLM field is set to 'CUSTOM_LLM' */
25
- customLlm?: ElevenLabs.CustomLlm;
26
- /** Whether to ignore the default personality */
27
- ignoreDefaultPersonality?: boolean;
28
- /** Configuration for RAG */
29
- rag?: ElevenLabs.RagConfig;
30
- }
4
+ export type PromptAgent = unknown;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface PromptAgentApiModelInput {
6
+ /** The prompt for the agent */
7
+ prompt?: string;
8
+ /** The LLM to query with the prompt and the chat history */
9
+ llm?: ElevenLabs.Llm;
10
+ /** The temperature for the LLM */
11
+ temperature?: number;
12
+ /** If greater than 0, maximum number of tokens the LLM can predict */
13
+ maxTokens?: number;
14
+ /** A list of IDs of tools used by the agent */
15
+ toolIds?: string[];
16
+ /** Built-in system tools to be used by the agent */
17
+ builtInTools?: ElevenLabs.BuiltInToolsInput;
18
+ /** A list of MCP server ids to be used by the agent */
19
+ mcpServerIds?: string[];
20
+ /** A list of Native MCP server ids to be used by the agent */
21
+ nativeMcpServerIds?: string[];
22
+ /** A list of knowledge bases to be used by the agent */
23
+ knowledgeBase?: ElevenLabs.KnowledgeBaseLocator[];
24
+ /** Definition for a custom LLM if LLM field is set to 'CUSTOM_LLM' */
25
+ customLlm?: ElevenLabs.CustomLlm;
26
+ /** Whether to ignore the default personality */
27
+ ignoreDefaultPersonality?: boolean;
28
+ /** Configuration for RAG */
29
+ rag?: ElevenLabs.RagConfig;
30
+ /** A list of tools that the agent can use over the course of the conversation, use tool_ids instead */
31
+ tools?: ElevenLabs.PromptAgentApiModelInputToolsItem[];
32
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,8 +5,8 @@ import * as ElevenLabs from "../index";
5
5
  /**
6
6
  * The type of tool
7
7
  */
8
- export type PromptAgentDbModelToolsItem = ElevenLabs.PromptAgentDbModelToolsItem.Client | ElevenLabs.PromptAgentDbModelToolsItem.Mcp | ElevenLabs.PromptAgentDbModelToolsItem.System | ElevenLabs.PromptAgentDbModelToolsItem.Webhook;
9
- export declare namespace PromptAgentDbModelToolsItem {
8
+ export type PromptAgentApiModelInputToolsItem = ElevenLabs.PromptAgentApiModelInputToolsItem.Client | ElevenLabs.PromptAgentApiModelInputToolsItem.Mcp | ElevenLabs.PromptAgentApiModelInputToolsItem.System | ElevenLabs.PromptAgentApiModelInputToolsItem.Webhook;
9
+ export declare namespace PromptAgentApiModelInputToolsItem {
10
10
  interface Client extends ElevenLabs.ClientToolConfigInput {
11
11
  type: "client";
12
12
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface PromptAgentApiModelOutput {
6
+ /** The prompt for the agent */
7
+ prompt?: string;
8
+ /** The LLM to query with the prompt and the chat history */
9
+ llm?: ElevenLabs.Llm;
10
+ /** The temperature for the LLM */
11
+ temperature?: number;
12
+ /** If greater than 0, maximum number of tokens the LLM can predict */
13
+ maxTokens?: number;
14
+ /** A list of IDs of tools used by the agent */
15
+ toolIds?: string[];
16
+ /** Built-in system tools to be used by the agent */
17
+ builtInTools?: ElevenLabs.BuiltInToolsOutput;
18
+ /** A list of MCP server ids to be used by the agent */
19
+ mcpServerIds?: string[];
20
+ /** A list of Native MCP server ids to be used by the agent */
21
+ nativeMcpServerIds?: string[];
22
+ /** A list of knowledge bases to be used by the agent */
23
+ knowledgeBase?: ElevenLabs.KnowledgeBaseLocator[];
24
+ /** Definition for a custom LLM if LLM field is set to 'CUSTOM_LLM' */
25
+ customLlm?: ElevenLabs.CustomLlm;
26
+ /** Whether to ignore the default personality */
27
+ ignoreDefaultPersonality?: boolean;
28
+ /** Configuration for RAG */
29
+ rag?: ElevenLabs.RagConfig;
30
+ /** A list of tools that the agent can use over the course of the conversation, use tool_ids instead */
31
+ tools?: ElevenLabs.PromptAgentApiModelOutputToolsItem[];
32
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ /**
6
+ * The type of tool
7
+ */
8
+ export type PromptAgentApiModelOutputToolsItem = ElevenLabs.PromptAgentApiModelOutputToolsItem.Client | ElevenLabs.PromptAgentApiModelOutputToolsItem.Mcp | ElevenLabs.PromptAgentApiModelOutputToolsItem.System | ElevenLabs.PromptAgentApiModelOutputToolsItem.Webhook;
9
+ export declare namespace PromptAgentApiModelOutputToolsItem {
10
+ interface Client extends ElevenLabs.ClientToolConfigOutput {
11
+ type: "client";
12
+ }
13
+ interface Mcp extends ElevenLabs.McpToolConfigOutput {
14
+ type: "mcp";
15
+ }
16
+ interface System extends ElevenLabs.SystemToolConfigOutput {
17
+ type: "system";
18
+ }
19
+ interface Webhook extends ElevenLabs.WebhookToolConfigOutput {
20
+ type: "webhook";
21
+ }
22
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface PromptAgentOverride {
4
+ export interface PromptAgentApiModelOverride {
5
5
  /** The prompt for the agent */
6
6
  prompt?: string;
7
7
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface PromptAgentOverrideConfig {
4
+ export interface PromptAgentApiModelOverrideConfig {
5
5
  /** Whether to allow overriding the prompt field. */
6
6
  prompt?: boolean;
7
7
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,10 +11,10 @@ export interface PromptAgentDbModel {
11
11
  temperature?: number;
12
12
  /** If greater than 0, maximum number of tokens the LLM can predict */
13
13
  maxTokens?: number;
14
- /** A list of tools that the agent can use over the course of the conversation */
15
- tools?: ElevenLabs.PromptAgentDbModelToolsItem[];
16
14
  /** A list of IDs of tools used by the agent */
17
15
  toolIds?: string[];
16
+ /** Built-in system tools to be used by the agent */
17
+ builtInTools?: ElevenLabs.BuiltInToolsInput;
18
18
  /** A list of MCP server ids to be used by the agent */
19
19
  mcpServerIds?: string[];
20
20
  /** A list of Native MCP server ids to be used by the agent */
@@ -28,5 +28,5 @@ export interface PromptAgentDbModel {
28
28
  /** Configuration for RAG */
29
29
  rag?: ElevenLabs.RagConfig;
30
30
  knowledgeBaseDocumentIds?: string[];
31
- builtInTools?: ElevenLabs.BuiltInTools;
31
+ tools?: unknown;
32
32
  }
@@ -6,7 +6,6 @@ import * as ElevenLabs from "../index";
6
6
  * A system tool is a tool that is used to call a system method in the server
7
7
  */
8
8
  export interface SystemToolConfigInput {
9
- id?: string;
10
9
  name: string;
11
10
  description: string;
12
11
  /** The maximum time in seconds to wait for the tool call to complete. */
@@ -6,7 +6,6 @@ import * as ElevenLabs from "../index";
6
6
  * A system tool is a tool that is used to call a system method in the server
7
7
  */
8
8
  export interface SystemToolConfigOutput {
9
- id?: string;
10
9
  name: string;
11
10
  description: string;
12
11
  /** The maximum time in seconds to wait for the tool call to complete. */
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface ToolRequestModel {
6
+ /** Configuration for the tool */
7
+ toolConfig: ElevenLabs.ToolRequestModelToolConfig;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,10 +3,10 @@
3
3
  */
4
4
  import * as ElevenLabs from "../index";
5
5
  /**
6
- * The type of tool
6
+ * Configuration for the tool
7
7
  */
8
- export type PromptAgentInputToolsItem = ElevenLabs.PromptAgentInputToolsItem.Client | ElevenLabs.PromptAgentInputToolsItem.Mcp | ElevenLabs.PromptAgentInputToolsItem.System | ElevenLabs.PromptAgentInputToolsItem.Webhook;
9
- export declare namespace PromptAgentInputToolsItem {
8
+ export type ToolRequestModelToolConfig = ElevenLabs.ToolRequestModelToolConfig.Client | ElevenLabs.ToolRequestModelToolConfig.Mcp | ElevenLabs.ToolRequestModelToolConfig.System | ElevenLabs.ToolRequestModelToolConfig.Webhook;
9
+ export declare namespace ToolRequestModelToolConfig {
10
10
  interface Client extends ElevenLabs.ClientToolConfigInput {
11
11
  type: "client";
12
12
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface ToolResponseModel {
6
+ id: string;
7
+ /** The type of tool */
8
+ toolConfig: ElevenLabs.ToolResponseModelToolConfig;
9
+ accessInfo: ElevenLabs.ResourceAccessInfo;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,8 +5,8 @@ import * as ElevenLabs from "../index";
5
5
  /**
6
6
  * The type of tool
7
7
  */
8
- export type PromptAgentOutputToolsItem = ElevenLabs.PromptAgentOutputToolsItem.Client | ElevenLabs.PromptAgentOutputToolsItem.Mcp | ElevenLabs.PromptAgentOutputToolsItem.System | ElevenLabs.PromptAgentOutputToolsItem.Webhook;
9
- export declare namespace PromptAgentOutputToolsItem {
8
+ export type ToolResponseModelToolConfig = ElevenLabs.ToolResponseModelToolConfig.Client | ElevenLabs.ToolResponseModelToolConfig.Mcp | ElevenLabs.ToolResponseModelToolConfig.System | ElevenLabs.ToolResponseModelToolConfig.Webhook;
9
+ export declare namespace ToolResponseModelToolConfig {
10
10
  interface Client extends ElevenLabs.ClientToolConfigOutput {
11
11
  type: "client";
12
12
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface ToolsResponseModel {
6
+ tools: ElevenLabs.ToolResponseModel[];
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,7 +6,6 @@ import * as ElevenLabs from "../index";
6
6
  * A webhook tool is a tool that calls an external webhook from our server
7
7
  */
8
8
  export interface WebhookToolConfigInput {
9
- id?: string;
10
9
  name: string;
11
10
  description: string;
12
11
  /** The maximum time in seconds to wait for the tool call to complete. Must be between 5 and 120 seconds (inclusive). */
@@ -6,7 +6,6 @@ import * as ElevenLabs from "../index";
6
6
  * A webhook tool is a tool that calls an external webhook from our server
7
7
  */
8
8
  export interface WebhookToolConfigOutput {
9
- id?: string;
10
9
  name: string;
11
10
  description: string;
12
11
  /** The maximum time in seconds to wait for the tool call to complete. Must be between 5 and 120 seconds (inclusive). */
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type WorkspaceGroupPermission = "text_to_speech" | "speech_to_speech" | "voice_lab" | "sound_effects" | "projects" | "voiceover_studio" | "dubbing" | "audio_native" | "conversational_ai" | "voice_isolator" | "ai_speech_classifier" | "add_voice_from_voice_library" | "create_instant_voice_clone" | "create_professional_voice_clone" | "create_user_api_key" | "publish_studio_project";
5
+ export declare const WorkspaceGroupPermission: {
6
+ readonly TextToSpeech: "text_to_speech";
7
+ readonly SpeechToSpeech: "speech_to_speech";
8
+ readonly VoiceLab: "voice_lab";
9
+ readonly SoundEffects: "sound_effects";
10
+ readonly Projects: "projects";
11
+ readonly VoiceoverStudio: "voiceover_studio";
12
+ readonly Dubbing: "dubbing";
13
+ readonly AudioNative: "audio_native";
14
+ readonly ConversationalAi: "conversational_ai";
15
+ readonly VoiceIsolator: "voice_isolator";
16
+ readonly AiSpeechClassifier: "ai_speech_classifier";
17
+ readonly AddVoiceFromVoiceLibrary: "add_voice_from_voice_library";
18
+ readonly CreateInstantVoiceClone: "create_instant_voice_clone";
19
+ readonly CreateProfessionalVoiceClone: "create_professional_voice_clone";
20
+ readonly CreateUserApiKey: "create_user_api_key";
21
+ readonly PublishStudioProject: "publish_studio_project";
22
+ };
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.WorkspaceGroupPermission = void 0;
7
+ exports.WorkspaceGroupPermission = {
8
+ TextToSpeech: "text_to_speech",
9
+ SpeechToSpeech: "speech_to_speech",
10
+ VoiceLab: "voice_lab",
11
+ SoundEffects: "sound_effects",
12
+ Projects: "projects",
13
+ VoiceoverStudio: "voiceover_studio",
14
+ Dubbing: "dubbing",
15
+ AudioNative: "audio_native",
16
+ ConversationalAi: "conversational_ai",
17
+ VoiceIsolator: "voice_isolator",
18
+ AiSpeechClassifier: "ai_speech_classifier",
19
+ AddVoiceFromVoiceLibrary: "add_voice_from_voice_library",
20
+ CreateInstantVoiceClone: "create_instant_voice_clone",
21
+ CreateProfessionalVoiceClone: "create_professional_voice_clone",
22
+ CreateUserApiKey: "create_user_api_key",
23
+ PublishStudioProject: "publish_studio_project",
24
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface WorkspaceGroupResponseModel {
6
+ name: string;
7
+ id: string;
8
+ members: string[];
9
+ permissions?: ElevenLabs.WorkspaceGroupPermission[];
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });