@elevenlabs/elevenlabs-js 2.0.1 → 2.1.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 (365) hide show
  1. package/.mock/asyncapi.yml +6 -6
  2. package/.mock/definition/__package__.yml +109 -5
  3. package/.mock/definition/conversationalAi/agents/knowledgeBase.yml +32 -0
  4. package/.mock/definition/conversationalAi/agents/link.yml +2 -1
  5. package/.mock/definition/conversationalAi/agents/llmUsage.yml +51 -0
  6. package/.mock/definition/conversationalAi/llmUsage.yml +52 -0
  7. package/.mock/definition/v1TextToSpeechVoiceIdMultiStreamInput.yml +5 -3
  8. package/.mock/openapi.json +501 -1
  9. package/README.md +2 -2
  10. package/api/resources/audioIsolation/client/Client.js +4 -4
  11. package/api/resources/audioNative/client/Client.js +6 -6
  12. package/api/resources/conversationalAi/client/Client.d.ts +3 -0
  13. package/api/resources/conversationalAi/client/Client.js +21 -16
  14. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +6 -0
  15. package/api/resources/conversationalAi/resources/agents/client/Client.js +24 -14
  16. package/api/resources/conversationalAi/resources/agents/resources/index.d.ts +3 -0
  17. package/api/resources/conversationalAi/resources/agents/resources/index.js +4 -1
  18. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +44 -0
  19. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +137 -0
  20. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/index.d.ts +1 -0
  21. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/index.js +2 -0
  22. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/index.d.ts +1 -0
  23. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/index.js +17 -0
  24. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +2 -2
  25. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +45 -0
  26. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +141 -0
  27. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  28. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.js +17 -0
  29. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.d.ts +15 -0
  30. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.js +5 -0
  31. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.d.ts +1 -0
  32. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.js +2 -0
  33. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/index.d.ts +1 -0
  34. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/index.js +17 -0
  35. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +2 -2
  36. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +2 -2
  37. package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +6 -6
  38. package/api/resources/conversationalAi/resources/conversations/client/Client.js +8 -8
  39. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +2 -2
  40. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +2 -2
  41. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +4 -4
  42. package/api/resources/conversationalAi/resources/index.d.ts +2 -0
  43. package/api/resources/conversationalAi/resources/index.js +3 -1
  44. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +2 -2
  45. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +2 -2
  46. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +16 -16
  47. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +2 -2
  48. package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +48 -0
  49. package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +144 -0
  50. package/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  51. package/api/resources/conversationalAi/resources/llmUsage/client/index.js +17 -0
  52. package/api/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.d.ts +19 -0
  53. package/api/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.js +5 -0
  54. package/api/resources/conversationalAi/resources/llmUsage/client/requests/index.d.ts +1 -0
  55. package/api/resources/conversationalAi/resources/llmUsage/client/requests/index.js +2 -0
  56. package/api/resources/conversationalAi/resources/llmUsage/index.d.ts +1 -0
  57. package/api/resources/conversationalAi/resources/llmUsage/index.js +17 -0
  58. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +10 -10
  59. package/api/resources/conversationalAi/resources/secrets/client/Client.js +6 -6
  60. package/api/resources/conversationalAi/resources/settings/client/Client.js +4 -4
  61. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +2 -2
  62. package/api/resources/conversationalAi/resources/twilio/client/Client.js +2 -2
  63. package/api/resources/dubbing/client/Client.js +6 -6
  64. package/api/resources/dubbing/resources/audio/client/Client.js +2 -2
  65. package/api/resources/dubbing/resources/resource/client/Client.js +10 -10
  66. package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +2 -2
  67. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +4 -4
  68. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +4 -4
  69. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +2 -2
  70. package/api/resources/dubbing/resources/transcript/client/Client.js +2 -2
  71. package/api/resources/forcedAlignment/client/Client.js +2 -2
  72. package/api/resources/history/client/Client.js +10 -10
  73. package/api/resources/models/client/Client.js +2 -2
  74. package/api/resources/pronunciationDictionaries/client/Client.js +10 -10
  75. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +4 -4
  76. package/api/resources/samples/client/Client.js +2 -2
  77. package/api/resources/speechToSpeech/client/Client.js +4 -4
  78. package/api/resources/studio/client/Client.js +2 -2
  79. package/api/resources/studio/resources/projects/client/Client.js +12 -12
  80. package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +12 -12
  81. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +6 -6
  82. package/api/resources/studio/resources/projects/resources/content/client/Client.js +2 -2
  83. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +2 -2
  84. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +8 -8
  85. package/api/resources/textToSoundEffects/client/Client.js +2 -2
  86. package/api/resources/textToSpeech/client/Client.js +8 -8
  87. package/api/resources/textToVoice/client/Client.js +4 -4
  88. package/api/resources/usage/client/Client.js +2 -2
  89. package/api/resources/user/client/Client.js +2 -2
  90. package/api/resources/user/resources/subscription/client/Client.js +2 -2
  91. package/api/resources/voices/client/Client.js +16 -16
  92. package/api/resources/voices/resources/ivc/client/Client.js +2 -2
  93. package/api/resources/voices/resources/pvc/client/Client.js +6 -6
  94. package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +6 -6
  95. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +2 -2
  96. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +4 -4
  97. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +2 -2
  98. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +2 -2
  99. package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +2 -2
  100. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +4 -4
  101. package/api/resources/voices/resources/samples/resources/audio/client/Client.js +2 -2
  102. package/api/resources/voices/resources/settings/client/Client.js +6 -6
  103. package/api/resources/workspace/resources/groups/client/Client.js +2 -2
  104. package/api/resources/workspace/resources/groups/resources/members/client/Client.js +4 -4
  105. package/api/resources/workspace/resources/invites/client/Client.js +6 -6
  106. package/api/resources/workspace/resources/members/client/Client.js +4 -4
  107. package/api/resources/workspace/resources/resources/client/Client.js +6 -6
  108. package/api/types/AudioOutputMulti.d.ts +1 -1
  109. package/api/types/ChapterContentBlockInputModel.d.ts +1 -0
  110. package/api/types/ChapterContentBlockInputModelSubType.d.ts +10 -0
  111. package/api/types/ChapterContentBlockInputModelSubType.js +12 -0
  112. package/api/types/ConversationTokenDbModel.d.ts +2 -0
  113. package/api/types/GetAgentKnowledgebaseSizeResponseModel.d.ts +6 -0
  114. package/api/types/GetAgentKnowledgebaseSizeResponseModel.js +5 -0
  115. package/api/types/LlmUsageCalculatorLlmResponseModel.d.ts +8 -0
  116. package/api/types/LlmUsageCalculatorLlmResponseModel.js +5 -0
  117. package/api/types/LlmUsageCalculatorResponseModel.d.ts +7 -0
  118. package/api/types/LlmUsageCalculatorResponseModel.js +5 -0
  119. package/api/types/NativeMcpToolConfigInput.d.ts +20 -0
  120. package/api/types/NativeMcpToolConfigInput.js +5 -0
  121. package/api/types/NativeMcpToolConfigOutput.d.ts +20 -0
  122. package/api/types/NativeMcpToolConfigOutput.js +5 -0
  123. package/api/types/PromptAgent.d.ts +2 -0
  124. package/api/types/PromptAgentDbModel.d.ts +2 -0
  125. package/api/types/PromptAgentDbModelToolsItem.d.ts +4 -1
  126. package/api/types/PromptAgentInputToolsItem.d.ts +4 -1
  127. package/api/types/PromptAgentOutputToolsItem.d.ts +4 -1
  128. package/api/types/WebsocketTtsClientMessageMulti.d.ts +2 -2
  129. package/api/types/index.d.ts +6 -0
  130. package/api/types/index.js +6 -0
  131. package/dist/api/resources/audioIsolation/client/Client.js +4 -4
  132. package/dist/api/resources/audioNative/client/Client.js +6 -6
  133. package/dist/api/resources/conversationalAi/client/Client.d.ts +3 -0
  134. package/dist/api/resources/conversationalAi/client/Client.js +21 -16
  135. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +6 -0
  136. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +24 -14
  137. package/dist/api/resources/conversationalAi/resources/agents/resources/index.d.ts +3 -0
  138. package/dist/api/resources/conversationalAi/resources/agents/resources/index.js +4 -1
  139. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +44 -0
  140. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +137 -0
  141. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/index.d.ts +1 -0
  142. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/index.js +2 -0
  143. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/index.d.ts +1 -0
  144. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/index.js +17 -0
  145. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +2 -2
  146. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +45 -0
  147. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +141 -0
  148. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  149. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.js +17 -0
  150. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.d.ts +15 -0
  151. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.js +5 -0
  152. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.d.ts +1 -0
  153. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.js +2 -0
  154. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/index.d.ts +1 -0
  155. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/index.js +17 -0
  156. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +2 -2
  157. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +2 -2
  158. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +6 -6
  159. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +8 -8
  160. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +2 -2
  161. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +2 -2
  162. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +4 -4
  163. package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -0
  164. package/dist/api/resources/conversationalAi/resources/index.js +3 -1
  165. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +2 -2
  166. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +2 -2
  167. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +16 -16
  168. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +2 -2
  169. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +48 -0
  170. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +144 -0
  171. package/dist/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  172. package/dist/api/resources/conversationalAi/resources/llmUsage/client/index.js +17 -0
  173. package/dist/api/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.d.ts +19 -0
  174. package/dist/api/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.js +5 -0
  175. package/dist/api/resources/conversationalAi/resources/llmUsage/client/requests/index.d.ts +1 -0
  176. package/dist/api/resources/conversationalAi/resources/llmUsage/client/requests/index.js +2 -0
  177. package/dist/api/resources/conversationalAi/resources/llmUsage/index.d.ts +1 -0
  178. package/dist/api/resources/conversationalAi/resources/llmUsage/index.js +17 -0
  179. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +10 -10
  180. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +6 -6
  181. package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +4 -4
  182. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +2 -2
  183. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +2 -2
  184. package/dist/api/resources/dubbing/client/Client.js +6 -6
  185. package/dist/api/resources/dubbing/resources/audio/client/Client.js +2 -2
  186. package/dist/api/resources/dubbing/resources/resource/client/Client.js +10 -10
  187. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +2 -2
  188. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +4 -4
  189. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +4 -4
  190. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +2 -2
  191. package/dist/api/resources/dubbing/resources/transcript/client/Client.js +2 -2
  192. package/dist/api/resources/forcedAlignment/client/Client.js +2 -2
  193. package/dist/api/resources/history/client/Client.js +10 -10
  194. package/dist/api/resources/models/client/Client.js +2 -2
  195. package/dist/api/resources/pronunciationDictionaries/client/Client.js +10 -10
  196. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +4 -4
  197. package/dist/api/resources/samples/client/Client.js +2 -2
  198. package/dist/api/resources/speechToSpeech/client/Client.js +4 -4
  199. package/dist/api/resources/studio/client/Client.js +2 -2
  200. package/dist/api/resources/studio/resources/projects/client/Client.js +12 -12
  201. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +12 -12
  202. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +6 -6
  203. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +2 -2
  204. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +2 -2
  205. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +8 -8
  206. package/dist/api/resources/textToSoundEffects/client/Client.js +2 -2
  207. package/dist/api/resources/textToSpeech/client/Client.js +8 -8
  208. package/dist/api/resources/textToVoice/client/Client.js +4 -4
  209. package/dist/api/resources/usage/client/Client.js +2 -2
  210. package/dist/api/resources/user/client/Client.js +2 -2
  211. package/dist/api/resources/user/resources/subscription/client/Client.js +2 -2
  212. package/dist/api/resources/voices/client/Client.js +16 -16
  213. package/dist/api/resources/voices/resources/ivc/client/Client.js +2 -2
  214. package/dist/api/resources/voices/resources/pvc/client/Client.js +6 -6
  215. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +6 -6
  216. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +2 -2
  217. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +4 -4
  218. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +2 -2
  219. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +2 -2
  220. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +2 -2
  221. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +4 -4
  222. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +2 -2
  223. package/dist/api/resources/voices/resources/settings/client/Client.js +6 -6
  224. package/dist/api/resources/workspace/resources/groups/client/Client.js +2 -2
  225. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +4 -4
  226. package/dist/api/resources/workspace/resources/invites/client/Client.js +6 -6
  227. package/dist/api/resources/workspace/resources/members/client/Client.js +4 -4
  228. package/dist/api/resources/workspace/resources/resources/client/Client.js +6 -6
  229. package/dist/api/types/AudioOutputMulti.d.ts +1 -1
  230. package/dist/api/types/ChapterContentBlockInputModel.d.ts +1 -0
  231. package/dist/api/types/ChapterContentBlockInputModelSubType.d.ts +10 -0
  232. package/dist/api/types/ChapterContentBlockInputModelSubType.js +12 -0
  233. package/dist/api/types/ConversationTokenDbModel.d.ts +2 -0
  234. package/dist/api/types/GetAgentKnowledgebaseSizeResponseModel.d.ts +6 -0
  235. package/dist/api/types/GetAgentKnowledgebaseSizeResponseModel.js +5 -0
  236. package/dist/api/types/LlmUsageCalculatorLlmResponseModel.d.ts +8 -0
  237. package/dist/api/types/LlmUsageCalculatorLlmResponseModel.js +5 -0
  238. package/dist/api/types/LlmUsageCalculatorResponseModel.d.ts +7 -0
  239. package/dist/api/types/LlmUsageCalculatorResponseModel.js +5 -0
  240. package/dist/api/types/NativeMcpToolConfigInput.d.ts +20 -0
  241. package/dist/api/types/NativeMcpToolConfigInput.js +5 -0
  242. package/dist/api/types/NativeMcpToolConfigOutput.d.ts +20 -0
  243. package/dist/api/types/NativeMcpToolConfigOutput.js +5 -0
  244. package/dist/api/types/PromptAgent.d.ts +2 -0
  245. package/dist/api/types/PromptAgentDbModel.d.ts +2 -0
  246. package/dist/api/types/PromptAgentDbModelToolsItem.d.ts +4 -1
  247. package/dist/api/types/PromptAgentInputToolsItem.d.ts +4 -1
  248. package/dist/api/types/PromptAgentOutputToolsItem.d.ts +4 -1
  249. package/dist/api/types/WebsocketTtsClientMessageMulti.d.ts +2 -2
  250. package/dist/api/types/index.d.ts +6 -0
  251. package/dist/api/types/index.js +6 -0
  252. package/dist/serialization/resources/conversationalAi/resources/agents/index.d.ts +1 -0
  253. package/dist/serialization/resources/conversationalAi/resources/agents/index.js +1 -0
  254. package/dist/serialization/resources/conversationalAi/resources/agents/resources/index.d.ts +2 -0
  255. package/dist/serialization/resources/conversationalAi/resources/agents/resources/index.js +41 -0
  256. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  257. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.js +17 -0
  258. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.d.ts +14 -0
  259. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.js +45 -0
  260. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.d.ts +1 -0
  261. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.js +5 -0
  262. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/index.d.ts +1 -0
  263. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/index.js +17 -0
  264. package/dist/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
  265. package/dist/serialization/resources/conversationalAi/resources/index.js +3 -1
  266. package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  267. package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/index.js +17 -0
  268. package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.d.ts +14 -0
  269. package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.js +45 -0
  270. package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/requests/index.d.ts +1 -0
  271. package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/requests/index.js +5 -0
  272. package/dist/serialization/resources/conversationalAi/resources/llmUsage/index.d.ts +1 -0
  273. package/dist/serialization/resources/conversationalAi/resources/llmUsage/index.js +17 -0
  274. package/dist/serialization/types/AudioOutputMulti.d.ts +1 -1
  275. package/dist/serialization/types/AudioOutputMulti.js +1 -1
  276. package/dist/serialization/types/ChapterContentBlockInputModel.d.ts +2 -0
  277. package/dist/serialization/types/ChapterContentBlockInputModel.js +2 -0
  278. package/dist/serialization/types/ChapterContentBlockInputModelSubType.d.ts +10 -0
  279. package/dist/serialization/types/ChapterContentBlockInputModelSubType.js +41 -0
  280. package/dist/serialization/types/ConversationTokenDbModel.d.ts +1 -0
  281. package/dist/serialization/types/ConversationTokenDbModel.js +1 -0
  282. package/dist/serialization/types/GetAgentKnowledgebaseSizeResponseModel.d.ts +12 -0
  283. package/dist/serialization/types/GetAgentKnowledgebaseSizeResponseModel.js +43 -0
  284. package/dist/serialization/types/LlmUsageCalculatorLlmResponseModel.d.ts +14 -0
  285. package/dist/serialization/types/LlmUsageCalculatorLlmResponseModel.js +45 -0
  286. package/dist/serialization/types/LlmUsageCalculatorResponseModel.d.ts +13 -0
  287. package/dist/serialization/types/LlmUsageCalculatorResponseModel.js +44 -0
  288. package/dist/serialization/types/NativeMcpToolConfigInput.d.ts +18 -0
  289. package/dist/serialization/types/NativeMcpToolConfigInput.js +50 -0
  290. package/dist/serialization/types/NativeMcpToolConfigOutput.d.ts +18 -0
  291. package/dist/serialization/types/NativeMcpToolConfigOutput.js +50 -0
  292. package/dist/serialization/types/PromptAgent.d.ts +1 -0
  293. package/dist/serialization/types/PromptAgent.js +1 -0
  294. package/dist/serialization/types/PromptAgentDbModel.d.ts +1 -0
  295. package/dist/serialization/types/PromptAgentDbModel.js +1 -0
  296. package/dist/serialization/types/PromptAgentDbModelToolsItem.d.ts +5 -1
  297. package/dist/serialization/types/PromptAgentDbModelToolsItem.js +2 -0
  298. package/dist/serialization/types/PromptAgentInputToolsItem.d.ts +5 -1
  299. package/dist/serialization/types/PromptAgentInputToolsItem.js +2 -0
  300. package/dist/serialization/types/PromptAgentOutputToolsItem.d.ts +5 -1
  301. package/dist/serialization/types/PromptAgentOutputToolsItem.js +2 -0
  302. package/dist/serialization/types/WebsocketTtsClientMessageMulti.d.ts +1 -1
  303. package/dist/serialization/types/WebsocketTtsClientMessageMulti.js +1 -1
  304. package/dist/serialization/types/index.d.ts +6 -0
  305. package/dist/serialization/types/index.js +6 -0
  306. package/dist/version.d.ts +1 -1
  307. package/dist/version.js +1 -1
  308. package/package.json +1 -1
  309. package/reference.md +207 -0
  310. package/serialization/resources/conversationalAi/resources/agents/index.d.ts +1 -0
  311. package/serialization/resources/conversationalAi/resources/agents/index.js +1 -0
  312. package/serialization/resources/conversationalAi/resources/agents/resources/index.d.ts +2 -0
  313. package/serialization/resources/conversationalAi/resources/agents/resources/index.js +41 -0
  314. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  315. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.js +17 -0
  316. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.d.ts +14 -0
  317. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.js +45 -0
  318. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.d.ts +1 -0
  319. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.js +5 -0
  320. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/index.d.ts +1 -0
  321. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/index.js +17 -0
  322. package/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
  323. package/serialization/resources/conversationalAi/resources/index.js +3 -1
  324. package/serialization/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  325. package/serialization/resources/conversationalAi/resources/llmUsage/client/index.js +17 -0
  326. package/serialization/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.d.ts +14 -0
  327. package/serialization/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.js +45 -0
  328. package/serialization/resources/conversationalAi/resources/llmUsage/client/requests/index.d.ts +1 -0
  329. package/serialization/resources/conversationalAi/resources/llmUsage/client/requests/index.js +5 -0
  330. package/serialization/resources/conversationalAi/resources/llmUsage/index.d.ts +1 -0
  331. package/serialization/resources/conversationalAi/resources/llmUsage/index.js +17 -0
  332. package/serialization/types/AudioOutputMulti.d.ts +1 -1
  333. package/serialization/types/AudioOutputMulti.js +1 -1
  334. package/serialization/types/ChapterContentBlockInputModel.d.ts +2 -0
  335. package/serialization/types/ChapterContentBlockInputModel.js +2 -0
  336. package/serialization/types/ChapterContentBlockInputModelSubType.d.ts +10 -0
  337. package/serialization/types/ChapterContentBlockInputModelSubType.js +41 -0
  338. package/serialization/types/ConversationTokenDbModel.d.ts +1 -0
  339. package/serialization/types/ConversationTokenDbModel.js +1 -0
  340. package/serialization/types/GetAgentKnowledgebaseSizeResponseModel.d.ts +12 -0
  341. package/serialization/types/GetAgentKnowledgebaseSizeResponseModel.js +43 -0
  342. package/serialization/types/LlmUsageCalculatorLlmResponseModel.d.ts +14 -0
  343. package/serialization/types/LlmUsageCalculatorLlmResponseModel.js +45 -0
  344. package/serialization/types/LlmUsageCalculatorResponseModel.d.ts +13 -0
  345. package/serialization/types/LlmUsageCalculatorResponseModel.js +44 -0
  346. package/serialization/types/NativeMcpToolConfigInput.d.ts +18 -0
  347. package/serialization/types/NativeMcpToolConfigInput.js +50 -0
  348. package/serialization/types/NativeMcpToolConfigOutput.d.ts +18 -0
  349. package/serialization/types/NativeMcpToolConfigOutput.js +50 -0
  350. package/serialization/types/PromptAgent.d.ts +1 -0
  351. package/serialization/types/PromptAgent.js +1 -0
  352. package/serialization/types/PromptAgentDbModel.d.ts +1 -0
  353. package/serialization/types/PromptAgentDbModel.js +1 -0
  354. package/serialization/types/PromptAgentDbModelToolsItem.d.ts +5 -1
  355. package/serialization/types/PromptAgentDbModelToolsItem.js +2 -0
  356. package/serialization/types/PromptAgentInputToolsItem.d.ts +5 -1
  357. package/serialization/types/PromptAgentInputToolsItem.js +2 -0
  358. package/serialization/types/PromptAgentOutputToolsItem.d.ts +5 -1
  359. package/serialization/types/PromptAgentOutputToolsItem.js +2 -0
  360. package/serialization/types/WebsocketTtsClientMessageMulti.d.ts +1 -1
  361. package/serialization/types/WebsocketTtsClientMessageMulti.js +1 -1
  362. package/serialization/types/index.d.ts +6 -0
  363. package/serialization/types/index.js +6 -0
  364. package/version.d.ts +1 -1
  365. package/version.js +1 -1
@@ -89,11 +89,11 @@ class Resources {
89
89
  method: "GET",
90
90
  headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
91
91
  ? yield core.Supplier.get(this._options.apiKey)
92
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
96
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
96
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
97
97
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
98
98
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
99
  });
@@ -168,11 +168,11 @@ class Resources {
168
168
  method: "POST",
169
169
  headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
170
170
  ? yield core.Supplier.get(this._options.apiKey)
171
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
172
  contentType: "application/json",
173
173
  requestType: "json",
174
174
  body: serializers.workspace.BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
175
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
175
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
176
176
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
177
177
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
178
178
  });
@@ -238,11 +238,11 @@ class Resources {
238
238
  method: "POST",
239
239
  headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
240
240
  ? yield core.Supplier.get(this._options.apiKey)
241
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
242
242
  contentType: "application/json",
243
243
  requestType: "json",
244
244
  body: serializers.workspace.BodyUnshareWorkspaceResourceV1WorkspaceResourcesResourceIdUnsharePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
245
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
245
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
246
246
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
247
247
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
248
248
  });
@@ -10,6 +10,6 @@ export interface AudioOutputMulti {
10
10
  audio: string;
11
11
  normalizedAlignment?: ElevenLabs.NormalizedAlignment;
12
12
  alignment?: ElevenLabs.Alignment;
13
- /** The context_id for which this audio is. */
13
+ /** The contextId for which this audio is. */
14
14
  contextId?: string;
15
15
  }
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as ElevenLabs from "../index";
5
5
  export interface ChapterContentBlockInputModel {
6
+ subType?: ElevenLabs.ChapterContentBlockInputModelSubType;
6
7
  blockId?: string;
7
8
  nodes: ElevenLabs.ChapterContentParagraphTtsNodeInputModel[];
8
9
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ChapterContentBlockInputModelSubType = "p" | "h1" | "h2" | "h3";
5
+ export declare const ChapterContentBlockInputModelSubType: {
6
+ readonly P: "p";
7
+ readonly H1: "h1";
8
+ readonly H2: "h2";
9
+ readonly H3: "h3";
10
+ };
@@ -0,0 +1,12 @@
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.ChapterContentBlockInputModelSubType = void 0;
7
+ exports.ChapterContentBlockInputModelSubType = {
8
+ P: "p",
9
+ H1: "h1",
10
+ H2: "h2",
11
+ H3: "h3",
12
+ };
@@ -9,6 +9,8 @@ export interface ConversationTokenDbModel {
9
9
  conversationToken: string;
10
10
  /** The expiration time of the token in unix seconds */
11
11
  expirationTimeUnixSecs?: number;
12
+ /** The ID of the conversation */
13
+ conversationId?: string;
12
14
  /** The purpose of the token */
13
15
  purpose?: ElevenLabs.ConversationTokenPurpose;
14
16
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface GetAgentKnowledgebaseSizeResponseModel {
5
+ numberOfPages: number;
6
+ }
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface LlmUsageCalculatorLlmResponseModel {
6
+ llm: ElevenLabs.Llm;
7
+ pricePerMinute: number;
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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ export interface LlmUsageCalculatorResponseModel {
6
+ llmPrices: ElevenLabs.LlmUsageCalculatorLlmResponseModel[];
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 });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ /**
6
+ * A Native MCP tool is a tool that is used to call a Native MCP server
7
+ */
8
+ export interface NativeMcpToolConfigInput {
9
+ id?: string;
10
+ name: string;
11
+ description: string;
12
+ /** The maximum time in seconds to wait for the tool call to complete. */
13
+ responseTimeoutSecs?: number;
14
+ /** Schema for any parameters the LLM needs to provide to the MCP tool. */
15
+ parameters?: ElevenLabs.ObjectJsonSchemaPropertyInput;
16
+ /** The name of the MCP tool to call */
17
+ mcpToolName: string;
18
+ /** The id of the MCP server to call */
19
+ mcpServerId: string;
20
+ }
@@ -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,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ElevenLabs from "../index";
5
+ /**
6
+ * A Native MCP tool is a tool that is used to call a Native MCP server
7
+ */
8
+ export interface NativeMcpToolConfigOutput {
9
+ id?: string;
10
+ name: string;
11
+ description: string;
12
+ /** The maximum time in seconds to wait for the tool call to complete. */
13
+ responseTimeoutSecs?: number;
14
+ /** Schema for any parameters the LLM needs to provide to the MCP tool. */
15
+ parameters?: ElevenLabs.ObjectJsonSchemaPropertyOutput;
16
+ /** The name of the MCP tool to call */
17
+ mcpToolName: string;
18
+ /** The id of the MCP server to call */
19
+ mcpServerId: string;
20
+ }
@@ -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 });
@@ -17,6 +17,8 @@ export interface PromptAgent {
17
17
  toolIds?: string[];
18
18
  /** A list of MCP server ids to be used by the agent */
19
19
  mcpServerIds?: string[];
20
+ /** A list of Native MCP server ids to be used by the agent */
21
+ nativeMcpServerIds?: string[];
20
22
  /** A list of knowledge bases to be used by the agent */
21
23
  knowledgeBase?: ElevenLabs.KnowledgeBaseLocator[];
22
24
  /** Definition for a custom LLM if LLM field is set to 'CUSTOM_LLM' */
@@ -17,6 +17,8 @@ export interface PromptAgentDbModel {
17
17
  toolIds?: string[];
18
18
  /** A list of MCP server ids to be used by the agent */
19
19
  mcpServerIds?: string[];
20
+ /** A list of Native MCP server ids to be used by the agent */
21
+ nativeMcpServerIds?: string[];
20
22
  /** A list of knowledge bases to be used by the agent */
21
23
  knowledgeBase?: ElevenLabs.KnowledgeBaseLocator[];
22
24
  /** Definition for a custom LLM if LLM field is set to 'CUSTOM_LLM' */
@@ -5,7 +5,7 @@ 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;
8
+ export type PromptAgentDbModelToolsItem = ElevenLabs.PromptAgentDbModelToolsItem.Client | ElevenLabs.PromptAgentDbModelToolsItem.Mcp | ElevenLabs.PromptAgentDbModelToolsItem.NativeMcp | ElevenLabs.PromptAgentDbModelToolsItem.System | ElevenLabs.PromptAgentDbModelToolsItem.Webhook;
9
9
  export declare namespace PromptAgentDbModelToolsItem {
10
10
  interface Client extends ElevenLabs.ClientToolConfigInput {
11
11
  type: "client";
@@ -13,6 +13,9 @@ export declare namespace PromptAgentDbModelToolsItem {
13
13
  interface Mcp extends ElevenLabs.McpToolConfigInput {
14
14
  type: "mcp";
15
15
  }
16
+ interface NativeMcp extends ElevenLabs.NativeMcpToolConfigInput {
17
+ type: "native_mcp";
18
+ }
16
19
  interface System extends ElevenLabs.SystemToolConfigInput {
17
20
  type: "system";
18
21
  }
@@ -5,7 +5,7 @@ import * as ElevenLabs from "../index";
5
5
  /**
6
6
  * The type of tool
7
7
  */
8
- export type PromptAgentInputToolsItem = ElevenLabs.PromptAgentInputToolsItem.Client | ElevenLabs.PromptAgentInputToolsItem.Mcp | ElevenLabs.PromptAgentInputToolsItem.System | ElevenLabs.PromptAgentInputToolsItem.Webhook;
8
+ export type PromptAgentInputToolsItem = ElevenLabs.PromptAgentInputToolsItem.Client | ElevenLabs.PromptAgentInputToolsItem.Mcp | ElevenLabs.PromptAgentInputToolsItem.NativeMcp | ElevenLabs.PromptAgentInputToolsItem.System | ElevenLabs.PromptAgentInputToolsItem.Webhook;
9
9
  export declare namespace PromptAgentInputToolsItem {
10
10
  interface Client extends ElevenLabs.ClientToolConfigInput {
11
11
  type: "client";
@@ -13,6 +13,9 @@ export declare namespace PromptAgentInputToolsItem {
13
13
  interface Mcp extends ElevenLabs.McpToolConfigInput {
14
14
  type: "mcp";
15
15
  }
16
+ interface NativeMcp extends ElevenLabs.NativeMcpToolConfigInput {
17
+ type: "native_mcp";
18
+ }
16
19
  interface System extends ElevenLabs.SystemToolConfigInput {
17
20
  type: "system";
18
21
  }
@@ -5,7 +5,7 @@ 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;
8
+ export type PromptAgentOutputToolsItem = ElevenLabs.PromptAgentOutputToolsItem.Client | ElevenLabs.PromptAgentOutputToolsItem.Mcp | ElevenLabs.PromptAgentOutputToolsItem.NativeMcp | ElevenLabs.PromptAgentOutputToolsItem.System | ElevenLabs.PromptAgentOutputToolsItem.Webhook;
9
9
  export declare namespace PromptAgentOutputToolsItem {
10
10
  interface Client extends ElevenLabs.ClientToolConfigOutput {
11
11
  type: "client";
@@ -13,6 +13,9 @@ export declare namespace PromptAgentOutputToolsItem {
13
13
  interface Mcp extends ElevenLabs.McpToolConfigOutput {
14
14
  type: "mcp";
15
15
  }
16
+ interface NativeMcp extends ElevenLabs.NativeMcpToolConfigOutput {
17
+ type: "native_mcp";
18
+ }
16
19
  interface System extends ElevenLabs.SystemToolConfigOutput {
17
20
  type: "system";
18
21
  }
@@ -27,8 +27,8 @@ export interface WebsocketTtsClientMessageMulti {
27
27
  pronunciationDictionaryLocators?: ElevenLabs.PronunciationDictionaryLocator[];
28
28
  /** An identifier for the text-to-speech context. Allows managing multiple independent audio generation streams over a single WebSocket connection. If omitted, a default context is used. */
29
29
  contextId?: string;
30
- /** If true, closes the specified `context_id`. No further audio will be generated for this context. The `text` field is ignored. */
30
+ /** If true, closes the specified `contextId`. No further audio will be generated for this context. The `text` field is ignored. */
31
31
  closeContext?: boolean;
32
- /** If true, flushes all contexts and closes the entire WebSocket connection. The `text` and `context_id` fields are ignored. */
32
+ /** If true, flushes all contexts and closes the entire WebSocket connection. The `text` and `contextId` fields are ignored. */
33
33
  closeSocket?: boolean;
34
34
  }
@@ -70,6 +70,7 @@ export * from "./BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapsh
70
70
  export * from "./UpdatePronunciationDictionariesRequest";
71
71
  export * from "./BreakdownTypes";
72
72
  export * from "./ChapterContentBlockExtendableNodeResponseModel";
73
+ export * from "./ChapterContentBlockInputModelSubType";
73
74
  export * from "./ChapterContentBlockInputModel";
74
75
  export * from "./ChapterContentBlockResponseModelNodesItem";
75
76
  export * from "./ChapterContentBlockResponseModel";
@@ -212,6 +213,7 @@ export * from "./ForcedAlignmentCharacterResponseModel";
212
213
  export * from "./ForcedAlignmentResponseModel";
213
214
  export * from "./ForcedAlignmentWordResponseModel";
214
215
  export * from "./GetAgentEmbedResponseModel";
216
+ export * from "./GetAgentKnowledgebaseSizeResponseModel";
215
217
  export * from "./GetAgentLinkResponseModel";
216
218
  export * from "./GetAgentResponseModelPhoneNumbersItem";
217
219
  export * from "./GetAgentResponseModel";
@@ -264,6 +266,8 @@ export * from "./LlmInputOutputTokensUsage";
264
266
  export * from "./LlmTokensCategoryUsage";
265
267
  export * from "./LlmUsageInput";
266
268
  export * from "./LlmUsageOutput";
269
+ export * from "./LlmUsageCalculatorLlmResponseModel";
270
+ export * from "./LlmUsageCalculatorResponseModel";
267
271
  export * from "./LanguageAddedResponse";
268
272
  export * from "./LanguageDetectionToolConfig";
269
273
  export * from "./LanguagePresetInput";
@@ -287,6 +291,8 @@ export * from "./Model";
287
291
  export * from "./ModerationStatusResponseModelSafetyStatus";
288
292
  export * from "./ModerationStatusResponseModelWarningStatus";
289
293
  export * from "./ModerationStatusResponseModel";
294
+ export * from "./NativeMcpToolConfigInput";
295
+ export * from "./NativeMcpToolConfigOutput";
290
296
  export * from "./ObjectJsonSchemaPropertyInputPropertiesValue";
291
297
  export * from "./ObjectJsonSchemaPropertyInput";
292
298
  export * from "./ObjectJsonSchemaPropertyOutputPropertiesValue";
@@ -86,6 +86,7 @@ __exportStar(require("./BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjec
86
86
  __exportStar(require("./UpdatePronunciationDictionariesRequest"), exports);
87
87
  __exportStar(require("./BreakdownTypes"), exports);
88
88
  __exportStar(require("./ChapterContentBlockExtendableNodeResponseModel"), exports);
89
+ __exportStar(require("./ChapterContentBlockInputModelSubType"), exports);
89
90
  __exportStar(require("./ChapterContentBlockInputModel"), exports);
90
91
  __exportStar(require("./ChapterContentBlockResponseModelNodesItem"), exports);
91
92
  __exportStar(require("./ChapterContentBlockResponseModel"), exports);
@@ -228,6 +229,7 @@ __exportStar(require("./ForcedAlignmentCharacterResponseModel"), exports);
228
229
  __exportStar(require("./ForcedAlignmentResponseModel"), exports);
229
230
  __exportStar(require("./ForcedAlignmentWordResponseModel"), exports);
230
231
  __exportStar(require("./GetAgentEmbedResponseModel"), exports);
232
+ __exportStar(require("./GetAgentKnowledgebaseSizeResponseModel"), exports);
231
233
  __exportStar(require("./GetAgentLinkResponseModel"), exports);
232
234
  __exportStar(require("./GetAgentResponseModelPhoneNumbersItem"), exports);
233
235
  __exportStar(require("./GetAgentResponseModel"), exports);
@@ -280,6 +282,8 @@ __exportStar(require("./LlmInputOutputTokensUsage"), exports);
280
282
  __exportStar(require("./LlmTokensCategoryUsage"), exports);
281
283
  __exportStar(require("./LlmUsageInput"), exports);
282
284
  __exportStar(require("./LlmUsageOutput"), exports);
285
+ __exportStar(require("./LlmUsageCalculatorLlmResponseModel"), exports);
286
+ __exportStar(require("./LlmUsageCalculatorResponseModel"), exports);
283
287
  __exportStar(require("./LanguageAddedResponse"), exports);
284
288
  __exportStar(require("./LanguageDetectionToolConfig"), exports);
285
289
  __exportStar(require("./LanguagePresetInput"), exports);
@@ -303,6 +307,8 @@ __exportStar(require("./Model"), exports);
303
307
  __exportStar(require("./ModerationStatusResponseModelSafetyStatus"), exports);
304
308
  __exportStar(require("./ModerationStatusResponseModelWarningStatus"), exports);
305
309
  __exportStar(require("./ModerationStatusResponseModel"), exports);
310
+ __exportStar(require("./NativeMcpToolConfigInput"), exports);
311
+ __exportStar(require("./NativeMcpToolConfigOutput"), exports);
306
312
  __exportStar(require("./ObjectJsonSchemaPropertyInputPropertiesValue"), exports);
307
313
  __exportStar(require("./ObjectJsonSchemaPropertyInput"), exports);
308
314
  __exportStar(require("./ObjectJsonSchemaPropertyOutputPropertiesValue"), exports);
@@ -82,12 +82,12 @@ class AudioIsolation {
82
82
  method: "POST",
83
83
  headers: Object.assign(Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
84
84
  ? yield core.Supplier.get(this._options.apiKey)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  requestType: "file",
87
87
  duplex: _maybeEncodedRequest.duplex,
88
88
  body: _maybeEncodedRequest.body,
89
89
  responseType: "streaming",
90
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
90
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
91
91
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
92
92
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
93
93
  });
@@ -151,12 +151,12 @@ class AudioIsolation {
151
151
  method: "POST",
152
152
  headers: Object.assign(Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
153
153
  ? yield core.Supplier.get(this._options.apiKey)
154
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
154
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
155
155
  requestType: "file",
156
156
  duplex: _maybeEncodedRequest.duplex,
157
157
  body: _maybeEncodedRequest.body,
158
158
  responseType: "streaming",
159
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
159
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
160
160
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
161
161
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
162
162
  });
@@ -119,11 +119,11 @@ class AudioNative {
119
119
  method: "POST",
120
120
  headers: Object.assign(Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
121
121
  ? yield core.Supplier.get(this._options.apiKey)
122
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
122
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
123
123
  requestType: "file",
124
124
  duplex: _maybeEncodedRequest.duplex,
125
125
  body: _maybeEncodedRequest.body,
126
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
126
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
127
127
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
128
128
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
129
129
  });
@@ -194,10 +194,10 @@ class AudioNative {
194
194
  method: "GET",
195
195
  headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
196
196
  ? yield core.Supplier.get(this._options.apiKey)
197
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
197
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
198
198
  contentType: "application/json",
199
199
  requestType: "json",
200
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
200
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
201
201
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
202
202
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
203
203
  });
@@ -280,11 +280,11 @@ class AudioNative {
280
280
  method: "POST",
281
281
  headers: Object.assign(Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
282
282
  ? yield core.Supplier.get(this._options.apiKey)
283
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
283
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
284
284
  requestType: "file",
285
285
  duplex: _maybeEncodedRequest.duplex,
286
286
  body: _maybeEncodedRequest.body,
287
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
287
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
288
288
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
289
289
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
290
290
  });
@@ -8,6 +8,7 @@ import { Conversations } from "../resources/conversations/client/Client";
8
8
  import { Twilio } from "../resources/twilio/client/Client";
9
9
  import { Agents } from "../resources/agents/client/Client";
10
10
  import { PhoneNumbers } from "../resources/phoneNumbers/client/Client";
11
+ import { LlmUsage } from "../resources/llmUsage/client/Client";
11
12
  import { KnowledgeBase } from "../resources/knowledgeBase/client/Client";
12
13
  import { Settings } from "../resources/settings/client/Client";
13
14
  import { Secrets } from "../resources/secrets/client/Client";
@@ -41,6 +42,7 @@ export declare class ConversationalAi {
41
42
  protected _twilio: Twilio | undefined;
42
43
  protected _agents: Agents | undefined;
43
44
  protected _phoneNumbers: PhoneNumbers | undefined;
45
+ protected _llmUsage: LlmUsage | undefined;
44
46
  protected _knowledgeBase: KnowledgeBase | undefined;
45
47
  protected _settings: Settings | undefined;
46
48
  protected _secrets: Secrets | undefined;
@@ -52,6 +54,7 @@ export declare class ConversationalAi {
52
54
  get twilio(): Twilio;
53
55
  get agents(): Agents;
54
56
  get phoneNumbers(): PhoneNumbers;
57
+ get llmUsage(): LlmUsage;
55
58
  get knowledgeBase(): KnowledgeBase;
56
59
  get settings(): Settings;
57
60
  get secrets(): Secrets;
@@ -59,12 +59,13 @@ const Client_1 = require("../resources/conversations/client/Client");
59
59
  const Client_2 = require("../resources/twilio/client/Client");
60
60
  const Client_3 = require("../resources/agents/client/Client");
61
61
  const Client_4 = require("../resources/phoneNumbers/client/Client");
62
- const Client_5 = require("../resources/knowledgeBase/client/Client");
63
- const Client_6 = require("../resources/settings/client/Client");
64
- const Client_7 = require("../resources/secrets/client/Client");
65
- const Client_8 = require("../resources/batchCalls/client/Client");
66
- const Client_9 = require("../resources/sipTrunk/client/Client");
67
- const Client_10 = require("../resources/dashboard/client/Client");
62
+ const Client_5 = require("../resources/llmUsage/client/Client");
63
+ const Client_6 = require("../resources/knowledgeBase/client/Client");
64
+ const Client_7 = require("../resources/settings/client/Client");
65
+ const Client_8 = require("../resources/secrets/client/Client");
66
+ const Client_9 = require("../resources/batchCalls/client/Client");
67
+ const Client_10 = require("../resources/sipTrunk/client/Client");
68
+ const Client_11 = require("../resources/dashboard/client/Client");
68
69
  class ConversationalAi {
69
70
  constructor(_options = {}) {
70
71
  this._options = _options;
@@ -85,29 +86,33 @@ class ConversationalAi {
85
86
  var _a;
86
87
  return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_4.PhoneNumbers(this._options)));
87
88
  }
89
+ get llmUsage() {
90
+ var _a;
91
+ return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_5.LlmUsage(this._options)));
92
+ }
88
93
  get knowledgeBase() {
89
94
  var _a;
90
- return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_5.KnowledgeBase(this._options)));
95
+ return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_6.KnowledgeBase(this._options)));
91
96
  }
92
97
  get settings() {
93
98
  var _a;
94
- return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_6.Settings(this._options)));
99
+ return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_7.Settings(this._options)));
95
100
  }
96
101
  get secrets() {
97
102
  var _a;
98
- return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_7.Secrets(this._options)));
103
+ return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_8.Secrets(this._options)));
99
104
  }
100
105
  get batchCalls() {
101
106
  var _a;
102
- return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_8.BatchCalls(this._options)));
107
+ return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_9.BatchCalls(this._options)));
103
108
  }
104
109
  get sipTrunk() {
105
110
  var _a;
106
- return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_9.SipTrunk(this._options)));
111
+ return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_10.SipTrunk(this._options)));
107
112
  }
108
113
  get dashboard() {
109
114
  var _a;
110
- return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_10.Dashboard(this._options)));
115
+ return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_11.Dashboard(this._options)));
111
116
  }
112
117
  /**
113
118
  * Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/conversational-ai/api-reference/agents/update-agent). </Note>
@@ -142,11 +147,11 @@ class ConversationalAi {
142
147
  method: "POST",
143
148
  headers: Object.assign(Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
144
149
  ? yield core.Supplier.get(this._options.apiKey)
145
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
150
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
151
  requestType: "file",
147
152
  duplex: _maybeEncodedRequest.duplex,
148
153
  body: _maybeEncodedRequest.body,
149
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
154
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
150
155
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
151
156
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
152
157
  });
@@ -221,11 +226,11 @@ class ConversationalAi {
221
226
  method: "PATCH",
222
227
  headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
223
228
  ? yield core.Supplier.get(this._options.apiKey)
224
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.1.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
225
230
  contentType: "application/json",
226
231
  requestType: "json",
227
232
  body: Object.assign(Object.assign({}, serializers.PatchWorkspaceSecretRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { type: "update" }),
228
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
233
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
229
234
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
230
235
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
231
236
  });
@@ -6,6 +6,8 @@ import * as core from "../../../../../../core";
6
6
  import * as ElevenLabs from "../../../../../index";
7
7
  import { Widget } from "../resources/widget/client/Client";
8
8
  import { Link } from "../resources/link/client/Client";
9
+ import { KnowledgeBase } from "../resources/knowledgeBase/client/Client";
10
+ import { LlmUsage } from "../resources/llmUsage/client/Client";
9
11
  export declare namespace Agents {
10
12
  interface Options {
11
13
  environment?: core.Supplier<environments.ElevenLabsEnvironment | environments.ElevenLabsEnvironmentUrls>;
@@ -31,9 +33,13 @@ export declare class Agents {
31
33
  protected readonly _options: Agents.Options;
32
34
  protected _widget: Widget | undefined;
33
35
  protected _link: Link | undefined;
36
+ protected _knowledgeBase: KnowledgeBase | undefined;
37
+ protected _llmUsage: LlmUsage | undefined;
34
38
  constructor(_options?: Agents.Options);
35
39
  get widget(): Widget;
36
40
  get link(): Link;
41
+ get knowledgeBase(): KnowledgeBase;
42
+ get llmUsage(): LlmUsage;
37
43
  /**
38
44
  * Create an agent from a config object
39
45
  *