@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
@@ -10790,6 +10790,150 @@
10790
10790
  "x-fern-sdk-method-name": "list"
10791
10791
  }
10792
10792
  },
10793
+ "/v1/convai/agent/{agent_id}/knowledge-base/size": {
10794
+ "get": {
10795
+ "operationId": "Returns_the_size_of_the_agent_s_knowledge_base_v1_convai_agent__agent_id__knowledge_base_size_get",
10796
+ "summary": "Returns The Size Of The Agent'S Knowledge Base",
10797
+ "description": "Returns the number of pages in the agent's knowledge base.",
10798
+ "parameters": [
10799
+ {
10800
+ "name": "agent_id",
10801
+ "in": "path",
10802
+ "required": true,
10803
+ "schema": {
10804
+ "type": "string",
10805
+ "title": "Agent Id"
10806
+ }
10807
+ },
10808
+ {
10809
+ "name": "xi-api-key",
10810
+ "in": "header",
10811
+ "description": "Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.",
10812
+ "required": false,
10813
+ "schema": {
10814
+ "description": "Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.",
10815
+ "anyOf": [
10816
+ {
10817
+ "type": "string"
10818
+ },
10819
+ {
10820
+ "type": "null"
10821
+ }
10822
+ ],
10823
+ "title": "Xi-Api-Key"
10824
+ }
10825
+ }
10826
+ ],
10827
+ "responses": {
10828
+ "200": {
10829
+ "description": "Successful Response",
10830
+ "content": {
10831
+ "application/json": {
10832
+ "schema": {
10833
+ "$ref": "#/components/schemas/GetAgentKnowledgebaseSizeResponseModel"
10834
+ }
10835
+ }
10836
+ }
10837
+ },
10838
+ "422": {
10839
+ "description": "Validation Error",
10840
+ "content": {
10841
+ "application/json": {
10842
+ "schema": {
10843
+ "$ref": "#/components/schemas/HTTPValidationError"
10844
+ }
10845
+ }
10846
+ }
10847
+ }
10848
+ },
10849
+ "tags": [
10850
+ "Conversational AI"
10851
+ ],
10852
+ "x-fern-sdk-group-name": [
10853
+ "conversational_ai",
10854
+ "agents",
10855
+ "knowledge_base"
10856
+ ],
10857
+ "x-fern-sdk-method-name": "size"
10858
+ }
10859
+ },
10860
+ "/v1/convai/agent/{agent_id}/llm-usage/calculate": {
10861
+ "post": {
10862
+ "operationId": "Calculate_expected_LLM_usage_for_an_agent_v1_convai_agent__agent_id__llm_usage_calculate_post",
10863
+ "summary": "Calculate Expected Llm Usage For An Agent",
10864
+ "description": "Calculates expected number of LLM tokens needed for the specified agent.",
10865
+ "parameters": [
10866
+ {
10867
+ "name": "agent_id",
10868
+ "in": "path",
10869
+ "required": true,
10870
+ "schema": {
10871
+ "type": "string",
10872
+ "title": "Agent Id"
10873
+ }
10874
+ },
10875
+ {
10876
+ "name": "xi-api-key",
10877
+ "in": "header",
10878
+ "description": "Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.",
10879
+ "required": false,
10880
+ "schema": {
10881
+ "description": "Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.",
10882
+ "anyOf": [
10883
+ {
10884
+ "type": "string"
10885
+ },
10886
+ {
10887
+ "type": "null"
10888
+ }
10889
+ ],
10890
+ "title": "Xi-Api-Key"
10891
+ }
10892
+ }
10893
+ ],
10894
+ "requestBody": {
10895
+ "required": true,
10896
+ "content": {
10897
+ "application/json": {
10898
+ "schema": {
10899
+ "$ref": "#/components/schemas/LLMUsageCalculatorRequestModel"
10900
+ }
10901
+ }
10902
+ }
10903
+ },
10904
+ "responses": {
10905
+ "200": {
10906
+ "description": "Successful Response",
10907
+ "content": {
10908
+ "application/json": {
10909
+ "schema": {
10910
+ "$ref": "#/components/schemas/LLMUsageCalculatorResponseModel"
10911
+ }
10912
+ }
10913
+ }
10914
+ },
10915
+ "422": {
10916
+ "description": "Validation Error",
10917
+ "content": {
10918
+ "application/json": {
10919
+ "schema": {
10920
+ "$ref": "#/components/schemas/HTTPValidationError"
10921
+ }
10922
+ }
10923
+ }
10924
+ }
10925
+ },
10926
+ "tags": [
10927
+ "Conversational AI"
10928
+ ],
10929
+ "x-fern-sdk-group-name": [
10930
+ "conversational_ai",
10931
+ "agents",
10932
+ "llm_usage"
10933
+ ],
10934
+ "x-fern-sdk-method-name": "calculate"
10935
+ }
10936
+ },
10793
10937
  "/v1/convai/agents/{agent_id}/simulate-conversation": {
10794
10938
  "post": {
10795
10939
  "operationId": "Simulates_a_conversation_v1_convai_agents__agent_id__simulate_conversation_post",
@@ -11789,6 +11933,53 @@
11789
11933
  "x-fern-sdk-method-name": "list"
11790
11934
  }
11791
11935
  },
11936
+ "/v1/convai/llm-usage/calculate": {
11937
+ "post": {
11938
+ "operationId": "Calculate_expected_LLM_usage_v1_convai_llm_usage_calculate_post",
11939
+ "summary": "Calculate Expected Llm Usage",
11940
+ "description": "Returns a list of LLM models and the expected cost for using them based on the provided values.",
11941
+ "requestBody": {
11942
+ "required": true,
11943
+ "content": {
11944
+ "application/json": {
11945
+ "schema": {
11946
+ "$ref": "#/components/schemas/LLMUsageCalculatorPublicRequestModel"
11947
+ }
11948
+ }
11949
+ }
11950
+ },
11951
+ "responses": {
11952
+ "200": {
11953
+ "description": "Successful Response",
11954
+ "content": {
11955
+ "application/json": {
11956
+ "schema": {
11957
+ "$ref": "#/components/schemas/LLMUsageCalculatorResponseModel"
11958
+ }
11959
+ }
11960
+ }
11961
+ },
11962
+ "422": {
11963
+ "description": "Validation Error",
11964
+ "content": {
11965
+ "application/json": {
11966
+ "schema": {
11967
+ "$ref": "#/components/schemas/HTTPValidationError"
11968
+ }
11969
+ }
11970
+ }
11971
+ }
11972
+ },
11973
+ "tags": [
11974
+ "Conversational AI"
11975
+ ],
11976
+ "x-fern-sdk-group-name": [
11977
+ "conversational_ai",
11978
+ "llm_usage"
11979
+ ],
11980
+ "x-fern-sdk-method-name": "calculate"
11981
+ }
11982
+ },
11792
11983
  "/v1/convai/knowledge-base": {
11793
11984
  "post": {
11794
11985
  "operationId": "Add_to_knowledge_base_v1_convai_knowledge_base_post",
@@ -21273,6 +21464,23 @@
21273
21464
  "ChapterContentBlockInputModel": {
21274
21465
  "type": "object",
21275
21466
  "properties": {
21467
+ "sub_type": {
21468
+ "anyOf": [
21469
+ {
21470
+ "type": "string",
21471
+ "enum": [
21472
+ "p",
21473
+ "h1",
21474
+ "h2",
21475
+ "h3"
21476
+ ]
21477
+ },
21478
+ {
21479
+ "type": "null"
21480
+ }
21481
+ ],
21482
+ "title": "Sub Type"
21483
+ },
21276
21484
  "block_id": {
21277
21485
  "anyOf": [
21278
21486
  {
@@ -23522,6 +23730,18 @@
23522
23730
  ],
23523
23731
  "title": "Expiration Time Unix Secs"
23524
23732
  },
23733
+ "conversation_id": {
23734
+ "description": "The ID of the conversation",
23735
+ "anyOf": [
23736
+ {
23737
+ "type": "string"
23738
+ },
23739
+ {
23740
+ "type": "null"
23741
+ }
23742
+ ],
23743
+ "title": "Conversation Id"
23744
+ },
23525
23745
  "purpose": {
23526
23746
  "description": "The purpose of the token",
23527
23747
  "default": "signed_url",
@@ -23529,7 +23749,8 @@
23529
23749
  }
23530
23750
  },
23531
23751
  "example": {
23532
- "agent_id": "J3Pbu5gP6NNKBscdCdwB",
23752
+ "agent_id": "agent_J3Pbu5gP6NNKBscdCdwB",
23753
+ "conversation_id": "conv_J3Pbu5gP6NNKBscdCdwB",
23533
23754
  "conversation_token": "1234567890",
23534
23755
  "expiration_time_unix_secs": 1716153600,
23535
23756
  "purpose": "signed_url"
@@ -25416,6 +25637,19 @@
25416
25637
  ],
25417
25638
  "title": "GetAgentEmbedResponseModel"
25418
25639
  },
25640
+ "GetAgentKnowledgebaseSizeResponseModel": {
25641
+ "type": "object",
25642
+ "properties": {
25643
+ "number_of_pages": {
25644
+ "type": "number",
25645
+ "title": "Number Of Pages"
25646
+ }
25647
+ },
25648
+ "required": [
25649
+ "number_of_pages"
25650
+ ],
25651
+ "title": "GetAgentKnowledgebaseSizeResponseModel"
25652
+ },
25419
25653
  "GetAgentLinkResponseModel": {
25420
25654
  "type": "object",
25421
25655
  "properties": {
@@ -27201,6 +27435,107 @@
27201
27435
  },
27202
27436
  "title": "LLMUsage"
27203
27437
  },
27438
+ "LLMUsageCalculatorLLMResponseModel": {
27439
+ "type": "object",
27440
+ "properties": {
27441
+ "llm": {
27442
+ "$ref": "#/components/schemas/LLM"
27443
+ },
27444
+ "price_per_minute": {
27445
+ "type": "number",
27446
+ "title": "Price Per Minute"
27447
+ }
27448
+ },
27449
+ "required": [
27450
+ "llm",
27451
+ "price_per_minute"
27452
+ ],
27453
+ "title": "LLMUsageCalculatorLLMResponseModel"
27454
+ },
27455
+ "LLMUsageCalculatorPublicRequestModel": {
27456
+ "type": "object",
27457
+ "properties": {
27458
+ "prompt_length": {
27459
+ "description": "Length of the prompt in characters.",
27460
+ "type": "integer",
27461
+ "title": "Prompt Length"
27462
+ },
27463
+ "number_of_pages": {
27464
+ "description": "Pages of content in PDF documents or URLs in the agent's knowledge base.",
27465
+ "type": "integer",
27466
+ "title": "Number Of Pages"
27467
+ },
27468
+ "rag_enabled": {
27469
+ "description": "Whether RAG is enabled.",
27470
+ "type": "boolean",
27471
+ "title": "Rag Enabled"
27472
+ }
27473
+ },
27474
+ "required": [
27475
+ "prompt_length",
27476
+ "number_of_pages",
27477
+ "rag_enabled"
27478
+ ],
27479
+ "title": "LLMUsageCalculatorPublicRequestModel"
27480
+ },
27481
+ "LLMUsageCalculatorRequestModel": {
27482
+ "type": "object",
27483
+ "properties": {
27484
+ "prompt_length": {
27485
+ "description": "Length of the prompt in characters.",
27486
+ "anyOf": [
27487
+ {
27488
+ "type": "integer"
27489
+ },
27490
+ {
27491
+ "type": "null"
27492
+ }
27493
+ ],
27494
+ "title": "Prompt Length"
27495
+ },
27496
+ "number_of_pages": {
27497
+ "description": "Pages of content in pdf documents OR urls in agent's Knowledge Base.",
27498
+ "anyOf": [
27499
+ {
27500
+ "type": "integer"
27501
+ },
27502
+ {
27503
+ "type": "null"
27504
+ }
27505
+ ],
27506
+ "title": "Number Of Pages"
27507
+ },
27508
+ "rag_enabled": {
27509
+ "description": "Whether RAG is enabled.",
27510
+ "anyOf": [
27511
+ {
27512
+ "type": "boolean"
27513
+ },
27514
+ {
27515
+ "type": "null"
27516
+ }
27517
+ ],
27518
+ "title": "Rag Enabled"
27519
+ }
27520
+ },
27521
+ "title": "LLMUsageCalculatorRequestModel"
27522
+ },
27523
+ "LLMUsageCalculatorResponseModel": {
27524
+ "type": "object",
27525
+ "properties": {
27526
+ "llm_prices": {
27527
+ "type": "array",
27528
+ "items": {
27529
+ "$ref": "#/components/schemas/LLMUsageCalculatorLLMResponseModel"
27530
+ },
27531
+ "title": "Llm Prices"
27532
+ }
27533
+ },
27534
+ "required": [
27535
+ "llm_prices"
27536
+ ],
27537
+ "title": "LLMUsageCalculatorResponseModel"
27538
+ },
27204
27539
  "LanguageAddedResponse": {
27205
27540
  "type": "object",
27206
27541
  "properties": {
@@ -28172,6 +28507,132 @@
28172
28507
  ],
28173
28508
  "title": "ModerationStatusResponseModel"
28174
28509
  },
28510
+ "NativeMCPToolConfig-Input": {
28511
+ "description": "A Native MCP tool is a tool that is used to call a Native MCP server",
28512
+ "type": "object",
28513
+ "properties": {
28514
+ "id": {
28515
+ "type": "string",
28516
+ "default": "",
28517
+ "title": "Id"
28518
+ },
28519
+ "name": {
28520
+ "type": "string",
28521
+ "minLength": 0,
28522
+ "pattern": "^[a-zA-Z0-9_-]{1,64}$",
28523
+ "title": "Name"
28524
+ },
28525
+ "description": {
28526
+ "type": "string",
28527
+ "minLength": 0,
28528
+ "title": "Description"
28529
+ },
28530
+ "response_timeout_secs": {
28531
+ "description": "The maximum time in seconds to wait for the tool call to complete.",
28532
+ "type": "integer",
28533
+ "default": 20,
28534
+ "title": "Response Timeout Secs"
28535
+ },
28536
+ "type": {
28537
+ "description": "The type of tool",
28538
+ "type": "string",
28539
+ "default": "native_mcp",
28540
+ "const": "native_mcp",
28541
+ "title": "Type"
28542
+ },
28543
+ "parameters": {
28544
+ "description": "Schema for any parameters the LLM needs to provide to the MCP tool.",
28545
+ "anyOf": [
28546
+ {
28547
+ "$ref": "#/components/schemas/ObjectJsonSchemaProperty-Input"
28548
+ },
28549
+ {
28550
+ "type": "null"
28551
+ }
28552
+ ]
28553
+ },
28554
+ "mcp_tool_name": {
28555
+ "description": "The name of the MCP tool to call",
28556
+ "type": "string",
28557
+ "title": "Mcp Tool Name"
28558
+ },
28559
+ "mcp_server_id": {
28560
+ "description": "The id of the MCP server to call",
28561
+ "type": "string",
28562
+ "title": "Mcp Server Id"
28563
+ }
28564
+ },
28565
+ "required": [
28566
+ "name",
28567
+ "description",
28568
+ "mcp_tool_name",
28569
+ "mcp_server_id"
28570
+ ],
28571
+ "title": "NativeMCPToolConfig"
28572
+ },
28573
+ "NativeMCPToolConfig-Output": {
28574
+ "description": "A Native MCP tool is a tool that is used to call a Native MCP server",
28575
+ "type": "object",
28576
+ "properties": {
28577
+ "id": {
28578
+ "type": "string",
28579
+ "default": "",
28580
+ "title": "Id"
28581
+ },
28582
+ "name": {
28583
+ "type": "string",
28584
+ "minLength": 0,
28585
+ "pattern": "^[a-zA-Z0-9_-]{1,64}$",
28586
+ "title": "Name"
28587
+ },
28588
+ "description": {
28589
+ "type": "string",
28590
+ "minLength": 0,
28591
+ "title": "Description"
28592
+ },
28593
+ "response_timeout_secs": {
28594
+ "description": "The maximum time in seconds to wait for the tool call to complete.",
28595
+ "type": "integer",
28596
+ "default": 20,
28597
+ "title": "Response Timeout Secs"
28598
+ },
28599
+ "type": {
28600
+ "description": "The type of tool",
28601
+ "type": "string",
28602
+ "default": "native_mcp",
28603
+ "const": "native_mcp",
28604
+ "title": "Type"
28605
+ },
28606
+ "parameters": {
28607
+ "description": "Schema for any parameters the LLM needs to provide to the MCP tool.",
28608
+ "anyOf": [
28609
+ {
28610
+ "$ref": "#/components/schemas/ObjectJsonSchemaProperty-Output"
28611
+ },
28612
+ {
28613
+ "type": "null"
28614
+ }
28615
+ ]
28616
+ },
28617
+ "mcp_tool_name": {
28618
+ "description": "The name of the MCP tool to call",
28619
+ "type": "string",
28620
+ "title": "Mcp Tool Name"
28621
+ },
28622
+ "mcp_server_id": {
28623
+ "description": "The id of the MCP server to call",
28624
+ "type": "string",
28625
+ "title": "Mcp Server Id"
28626
+ }
28627
+ },
28628
+ "required": [
28629
+ "name",
28630
+ "description",
28631
+ "mcp_tool_name",
28632
+ "mcp_server_id"
28633
+ ],
28634
+ "title": "NativeMCPToolConfig"
28635
+ },
28175
28636
  "ObjectJsonSchemaProperty-Input": {
28176
28637
  "type": "object",
28177
28638
  "properties": {
@@ -29819,6 +30280,9 @@
29819
30280
  },
29820
30281
  {
29821
30282
  "$ref": "#/components/schemas/MCPToolConfig-Input"
30283
+ },
30284
+ {
30285
+ "$ref": "#/components/schemas/NativeMCPToolConfig-Input"
29822
30286
  }
29823
30287
  ],
29824
30288
  "description": "The type of tool",
@@ -29827,6 +30291,7 @@
29827
30291
  "mapping": {
29828
30292
  "client": "#/components/schemas/ClientToolConfig-Input",
29829
30293
  "mcp": "#/components/schemas/MCPToolConfig-Input",
30294
+ "native_mcp": "#/components/schemas/NativeMCPToolConfig-Input",
29830
30295
  "system": "#/components/schemas/SystemToolConfig-Input",
29831
30296
  "webhook": "#/components/schemas/WebhookToolConfig-Input"
29832
30297
  }
@@ -29851,6 +30316,15 @@
29851
30316
  "maxItems": 10,
29852
30317
  "title": "Mcp Server Ids"
29853
30318
  },
30319
+ "native_mcp_server_ids": {
30320
+ "description": "A list of Native MCP server ids to be used by the agent",
30321
+ "type": "array",
30322
+ "items": {
30323
+ "type": "string"
30324
+ },
30325
+ "maxItems": 10,
30326
+ "title": "Native Mcp Server Ids"
30327
+ },
29854
30328
  "knowledge_base": {
29855
30329
  "description": "A list of knowledge bases to be used by the agent",
29856
30330
  "type": "array",
@@ -29941,6 +30415,9 @@
29941
30415
  },
29942
30416
  {
29943
30417
  "$ref": "#/components/schemas/MCPToolConfig-Output"
30418
+ },
30419
+ {
30420
+ "$ref": "#/components/schemas/NativeMCPToolConfig-Output"
29944
30421
  }
29945
30422
  ],
29946
30423
  "description": "The type of tool",
@@ -29949,6 +30426,7 @@
29949
30426
  "mapping": {
29950
30427
  "client": "#/components/schemas/ClientToolConfig-Output",
29951
30428
  "mcp": "#/components/schemas/MCPToolConfig-Output",
30429
+ "native_mcp": "#/components/schemas/NativeMCPToolConfig-Output",
29952
30430
  "system": "#/components/schemas/SystemToolConfig-Output",
29953
30431
  "webhook": "#/components/schemas/WebhookToolConfig-Output"
29954
30432
  }
@@ -29973,6 +30451,15 @@
29973
30451
  "maxItems": 10,
29974
30452
  "title": "Mcp Server Ids"
29975
30453
  },
30454
+ "native_mcp_server_ids": {
30455
+ "description": "A list of Native MCP server ids to be used by the agent",
30456
+ "type": "array",
30457
+ "items": {
30458
+ "type": "string"
30459
+ },
30460
+ "maxItems": 10,
30461
+ "title": "Native Mcp Server Ids"
30462
+ },
29976
30463
  "knowledge_base": {
29977
30464
  "description": "A list of knowledge bases to be used by the agent",
29978
30465
  "type": "array",
@@ -30063,6 +30550,9 @@
30063
30550
  },
30064
30551
  {
30065
30552
  "$ref": "#/components/schemas/MCPToolConfig-Input"
30553
+ },
30554
+ {
30555
+ "$ref": "#/components/schemas/NativeMCPToolConfig-Input"
30066
30556
  }
30067
30557
  ],
30068
30558
  "description": "The type of tool",
@@ -30071,6 +30561,7 @@
30071
30561
  "mapping": {
30072
30562
  "client": "#/components/schemas/ClientToolConfig-Input",
30073
30563
  "mcp": "#/components/schemas/MCPToolConfig-Input",
30564
+ "native_mcp": "#/components/schemas/NativeMCPToolConfig-Input",
30074
30565
  "system": "#/components/schemas/SystemToolConfig-Input",
30075
30566
  "webhook": "#/components/schemas/WebhookToolConfig-Input"
30076
30567
  }
@@ -30095,6 +30586,15 @@
30095
30586
  "maxItems": 10,
30096
30587
  "title": "Mcp Server Ids"
30097
30588
  },
30589
+ "native_mcp_server_ids": {
30590
+ "description": "A list of Native MCP server ids to be used by the agent",
30591
+ "type": "array",
30592
+ "items": {
30593
+ "type": "string"
30594
+ },
30595
+ "maxItems": 10,
30596
+ "title": "Native Mcp Server Ids"
30597
+ },
30098
30598
  "knowledge_base": {
30099
30599
  "description": "A list of knowledge bases to be used by the agent",
30100
30600
  "type": "array",
package/README.md CHANGED
@@ -51,7 +51,7 @@ yarn add @elevenlabs/elevenlabs-js
51
51
  For more detailed information about these models and others, visit the [ElevenLabs Models documentation](https://elevenlabs.io/docs/models).
52
52
 
53
53
  ```ts
54
- import { ElevenLabsClient, play } from "elevenlabs";
54
+ import { ElevenLabsClient, play } from "@elevenlabs/elevenlabs-js";
55
55
 
56
56
  const elevenlabs = new ElevenLabsClient({
57
57
  apiKey: "YOUR_API_KEY", // Defaults to process.env.ELEVENLABS_API_KEY
@@ -80,7 +80,7 @@ await play(audio);
80
80
  List all your available voices with `search()`.
81
81
 
82
82
  ```ts
83
- import { ElevenLabsClient } from "elevenlabs";
83
+ import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
84
84
 
85
85
  const elevenlabs = new ElevenLabsClient({
86
86
  apiKey: "YOUR_API_KEY", // Defaults to process.env.ELEVENLABS_API_KEY
@@ -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
  });