@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
package/reference.md CHANGED
@@ -3790,6 +3790,75 @@ await client.conversationalAi.phoneNumbers.list();
3790
3790
  </dl>
3791
3791
  </details>
3792
3792
 
3793
+ ## ConversationalAi LlmUsage
3794
+
3795
+ <details><summary><code>client.conversationalAi.llmUsage.<a href="/src/api/resources/conversationalAi/resources/llmUsage/client/Client.ts">calculate</a>({ ...params }) -> ElevenLabs.LlmUsageCalculatorResponseModel</code></summary>
3796
+ <dl>
3797
+ <dd>
3798
+
3799
+ #### 📝 Description
3800
+
3801
+ <dl>
3802
+ <dd>
3803
+
3804
+ <dl>
3805
+ <dd>
3806
+
3807
+ Returns a list of LLM models and the expected cost for using them based on the provided values.
3808
+
3809
+ </dd>
3810
+ </dl>
3811
+ </dd>
3812
+ </dl>
3813
+
3814
+ #### 🔌 Usage
3815
+
3816
+ <dl>
3817
+ <dd>
3818
+
3819
+ <dl>
3820
+ <dd>
3821
+
3822
+ ```typescript
3823
+ await client.conversationalAi.llmUsage.calculate({
3824
+ promptLength: 1,
3825
+ numberOfPages: 1,
3826
+ ragEnabled: true,
3827
+ });
3828
+ ```
3829
+
3830
+ </dd>
3831
+ </dl>
3832
+ </dd>
3833
+ </dl>
3834
+
3835
+ #### ⚙️ Parameters
3836
+
3837
+ <dl>
3838
+ <dd>
3839
+
3840
+ <dl>
3841
+ <dd>
3842
+
3843
+ **request:** `ElevenLabs.conversationalAi.LlmUsageCalculatorPublicRequestModel`
3844
+
3845
+ </dd>
3846
+ </dl>
3847
+
3848
+ <dl>
3849
+ <dd>
3850
+
3851
+ **requestOptions:** `LlmUsage.RequestOptions`
3852
+
3853
+ </dd>
3854
+ </dl>
3855
+ </dd>
3856
+ </dl>
3857
+
3858
+ </dd>
3859
+ </dl>
3860
+ </details>
3861
+
3793
3862
  ## ConversationalAi KnowledgeBase
3794
3863
 
3795
3864
  <details><summary><code>client.conversationalAi.knowledgeBase.<a href="/src/api/resources/conversationalAi/resources/knowledgeBase/client/Client.ts">list</a>({ ...params }) -> ElevenLabs.GetKnowledgeBaseListResponseModel</code></summary>
@@ -4568,6 +4637,144 @@ await client.conversationalAi.agents.link.get("21m00Tcm4TlvDq8ikWAM");
4568
4637
  </dl>
4569
4638
  </details>
4570
4639
 
4640
+ ## ConversationalAi Agents KnowledgeBase
4641
+
4642
+ <details><summary><code>client.conversationalAi.agents.knowledgeBase.<a href="/src/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.ts">size</a>(agentId) -> ElevenLabs.GetAgentKnowledgebaseSizeResponseModel</code></summary>
4643
+ <dl>
4644
+ <dd>
4645
+
4646
+ #### 📝 Description
4647
+
4648
+ <dl>
4649
+ <dd>
4650
+
4651
+ <dl>
4652
+ <dd>
4653
+
4654
+ Returns the number of pages in the agent's knowledge base.
4655
+
4656
+ </dd>
4657
+ </dl>
4658
+ </dd>
4659
+ </dl>
4660
+
4661
+ #### 🔌 Usage
4662
+
4663
+ <dl>
4664
+ <dd>
4665
+
4666
+ <dl>
4667
+ <dd>
4668
+
4669
+ ```typescript
4670
+ await client.conversationalAi.agents.knowledgeBase.size("agent_id");
4671
+ ```
4672
+
4673
+ </dd>
4674
+ </dl>
4675
+ </dd>
4676
+ </dl>
4677
+
4678
+ #### ⚙️ Parameters
4679
+
4680
+ <dl>
4681
+ <dd>
4682
+
4683
+ <dl>
4684
+ <dd>
4685
+
4686
+ **agentId:** `string`
4687
+
4688
+ </dd>
4689
+ </dl>
4690
+
4691
+ <dl>
4692
+ <dd>
4693
+
4694
+ **requestOptions:** `KnowledgeBase.RequestOptions`
4695
+
4696
+ </dd>
4697
+ </dl>
4698
+ </dd>
4699
+ </dl>
4700
+
4701
+ </dd>
4702
+ </dl>
4703
+ </details>
4704
+
4705
+ ## ConversationalAi Agents LlmUsage
4706
+
4707
+ <details><summary><code>client.conversationalAi.agents.llmUsage.<a href="/src/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.ts">calculate</a>(agentId, { ...params }) -> ElevenLabs.LlmUsageCalculatorResponseModel</code></summary>
4708
+ <dl>
4709
+ <dd>
4710
+
4711
+ #### 📝 Description
4712
+
4713
+ <dl>
4714
+ <dd>
4715
+
4716
+ <dl>
4717
+ <dd>
4718
+
4719
+ Calculates expected number of LLM tokens needed for the specified agent.
4720
+
4721
+ </dd>
4722
+ </dl>
4723
+ </dd>
4724
+ </dl>
4725
+
4726
+ #### 🔌 Usage
4727
+
4728
+ <dl>
4729
+ <dd>
4730
+
4731
+ <dl>
4732
+ <dd>
4733
+
4734
+ ```typescript
4735
+ await client.conversationalAi.agents.llmUsage.calculate("agent_id");
4736
+ ```
4737
+
4738
+ </dd>
4739
+ </dl>
4740
+ </dd>
4741
+ </dl>
4742
+
4743
+ #### ⚙️ Parameters
4744
+
4745
+ <dl>
4746
+ <dd>
4747
+
4748
+ <dl>
4749
+ <dd>
4750
+
4751
+ **agentId:** `string`
4752
+
4753
+ </dd>
4754
+ </dl>
4755
+
4756
+ <dl>
4757
+ <dd>
4758
+
4759
+ **request:** `ElevenLabs.conversationalAi.agents.LlmUsageCalculatorRequestModel`
4760
+
4761
+ </dd>
4762
+ </dl>
4763
+
4764
+ <dl>
4765
+ <dd>
4766
+
4767
+ **requestOptions:** `LlmUsage.RequestOptions`
4768
+
4769
+ </dd>
4770
+ </dl>
4771
+ </dd>
4772
+ </dl>
4773
+
4774
+ </dd>
4775
+ </dl>
4776
+ </details>
4777
+
4571
4778
  ## ConversationalAi Agents Widget Avatar
4572
4779
 
4573
4780
  <details><summary><code>client.conversationalAi.agents.widget.avatar.<a href="/src/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.ts">create</a>(agentId, { ...params }) -> ElevenLabs.PostAgentAvatarResponseModel</code></summary>
@@ -1 +1,2 @@
1
1
  export * from "./client";
2
+ export * from "./resources";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client"), exports);
18
+ __exportStar(require("./resources"), exports);
@@ -0,0 +1,2 @@
1
+ export * as llmUsage from "./llmUsage";
2
+ export * from "./llmUsage/client/requests";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.llmUsage = void 0;
40
+ exports.llmUsage = __importStar(require("./llmUsage"));
41
+ __exportStar(require("./llmUsage/client/requests"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../../index";
5
+ import * as ElevenLabs from "../../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../../core";
7
+ export declare const LlmUsageCalculatorRequestModel: core.serialization.Schema<serializers.conversationalAi.agents.LlmUsageCalculatorRequestModel.Raw, ElevenLabs.conversationalAi.agents.LlmUsageCalculatorRequestModel>;
8
+ export declare namespace LlmUsageCalculatorRequestModel {
9
+ interface Raw {
10
+ prompt_length?: number | null;
11
+ number_of_pages?: number | null;
12
+ rag_enabled?: boolean | null;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LlmUsageCalculatorRequestModel = void 0;
40
+ const core = __importStar(require("../../../../../../../../../core"));
41
+ exports.LlmUsageCalculatorRequestModel = core.serialization.object({
42
+ promptLength: core.serialization.property("prompt_length", core.serialization.number().optional()),
43
+ numberOfPages: core.serialization.property("number_of_pages", core.serialization.number().optional()),
44
+ ragEnabled: core.serialization.property("rag_enabled", core.serialization.boolean().optional()),
45
+ });
@@ -0,0 +1 @@
1
+ export { LlmUsageCalculatorRequestModel } from "./LlmUsageCalculatorRequestModel";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LlmUsageCalculatorRequestModel = void 0;
4
+ var LlmUsageCalculatorRequestModel_1 = require("./LlmUsageCalculatorRequestModel");
5
+ Object.defineProperty(exports, "LlmUsageCalculatorRequestModel", { enumerable: true, get: function () { return LlmUsageCalculatorRequestModel_1.LlmUsageCalculatorRequestModel; } });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -7,6 +7,8 @@ export * from "./twilio/client/requests";
7
7
  export * as agents from "./agents";
8
8
  export * from "./agents/client/requests";
9
9
  export * from "./phoneNumbers/client/requests";
10
+ export * as llmUsage from "./llmUsage";
11
+ export * from "./llmUsage/client/requests";
10
12
  export * as settings from "./settings";
11
13
  export * from "./settings/client/requests";
12
14
  export * as secrets from "./secrets";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.conversations = exports.sipTrunk = exports.batchCalls = exports.secrets = exports.settings = exports.agents = exports.twilio = exports.knowledgeBase = exports.dashboard = exports.phoneNumbers = void 0;
39
+ exports.conversations = exports.sipTrunk = exports.batchCalls = exports.secrets = exports.settings = exports.llmUsage = exports.agents = exports.twilio = exports.knowledgeBase = exports.dashboard = exports.phoneNumbers = void 0;
40
40
  exports.phoneNumbers = __importStar(require("./phoneNumbers"));
41
41
  __exportStar(require("./phoneNumbers/types"), exports);
42
42
  exports.dashboard = __importStar(require("./dashboard"));
@@ -46,6 +46,8 @@ __exportStar(require("./twilio/client/requests"), exports);
46
46
  exports.agents = __importStar(require("./agents"));
47
47
  __exportStar(require("./agents/client/requests"), exports);
48
48
  __exportStar(require("./phoneNumbers/client/requests"), exports);
49
+ exports.llmUsage = __importStar(require("./llmUsage"));
50
+ __exportStar(require("./llmUsage/client/requests"), exports);
49
51
  exports.settings = __importStar(require("./settings"));
50
52
  __exportStar(require("./settings/client/requests"), exports);
51
53
  exports.secrets = __importStar(require("./secrets"));
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../index";
5
+ import * as ElevenLabs from "../../../../../../../api/index";
6
+ import * as core from "../../../../../../../core";
7
+ export declare const LlmUsageCalculatorPublicRequestModel: core.serialization.Schema<serializers.conversationalAi.LlmUsageCalculatorPublicRequestModel.Raw, ElevenLabs.conversationalAi.LlmUsageCalculatorPublicRequestModel>;
8
+ export declare namespace LlmUsageCalculatorPublicRequestModel {
9
+ interface Raw {
10
+ prompt_length: number;
11
+ number_of_pages: number;
12
+ rag_enabled: boolean;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LlmUsageCalculatorPublicRequestModel = void 0;
40
+ const core = __importStar(require("../../../../../../../core"));
41
+ exports.LlmUsageCalculatorPublicRequestModel = core.serialization.object({
42
+ promptLength: core.serialization.property("prompt_length", core.serialization.number()),
43
+ numberOfPages: core.serialization.property("number_of_pages", core.serialization.number()),
44
+ ragEnabled: core.serialization.property("rag_enabled", core.serialization.boolean()),
45
+ });
@@ -0,0 +1 @@
1
+ export { LlmUsageCalculatorPublicRequestModel } from "./LlmUsageCalculatorPublicRequestModel";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LlmUsageCalculatorPublicRequestModel = void 0;
4
+ var LlmUsageCalculatorPublicRequestModel_1 = require("./LlmUsageCalculatorPublicRequestModel");
5
+ Object.defineProperty(exports, "LlmUsageCalculatorPublicRequestModel", { enumerable: true, get: function () { return LlmUsageCalculatorPublicRequestModel_1.LlmUsageCalculatorPublicRequestModel; } });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -12,6 +12,6 @@ export declare namespace AudioOutputMulti {
12
12
  audio: string;
13
13
  normalizedAlignment?: NormalizedAlignment.Raw | null;
14
14
  alignment?: Alignment.Raw | null;
15
- context_id?: string | null;
15
+ contextId?: string | null;
16
16
  }
17
17
  }
@@ -44,5 +44,5 @@ exports.AudioOutputMulti = core.serialization.object({
44
44
  audio: core.serialization.string(),
45
45
  normalizedAlignment: NormalizedAlignment_1.NormalizedAlignment.optional(),
46
46
  alignment: Alignment_1.Alignment.optional(),
47
- contextId: core.serialization.property("context_id", core.serialization.string().optional()),
47
+ contextId: core.serialization.string().optional(),
48
48
  });
@@ -4,10 +4,12 @@
4
4
  import * as serializers from "../index";
5
5
  import * as ElevenLabs from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { ChapterContentBlockInputModelSubType } from "./ChapterContentBlockInputModelSubType";
7
8
  import { ChapterContentParagraphTtsNodeInputModel } from "./ChapterContentParagraphTtsNodeInputModel";
8
9
  export declare const ChapterContentBlockInputModel: core.serialization.ObjectSchema<serializers.ChapterContentBlockInputModel.Raw, ElevenLabs.ChapterContentBlockInputModel>;
9
10
  export declare namespace ChapterContentBlockInputModel {
10
11
  interface Raw {
12
+ sub_type?: ChapterContentBlockInputModelSubType.Raw | null;
11
13
  block_id?: string | null;
12
14
  nodes: ChapterContentParagraphTtsNodeInputModel.Raw[];
13
15
  }
@@ -38,8 +38,10 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ChapterContentBlockInputModel = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const ChapterContentBlockInputModelSubType_1 = require("./ChapterContentBlockInputModelSubType");
41
42
  const ChapterContentParagraphTtsNodeInputModel_1 = require("./ChapterContentParagraphTtsNodeInputModel");
42
43
  exports.ChapterContentBlockInputModel = core.serialization.object({
44
+ subType: core.serialization.property("sub_type", ChapterContentBlockInputModelSubType_1.ChapterContentBlockInputModelSubType.optional()),
43
45
  blockId: core.serialization.property("block_id", core.serialization.string().optional()),
44
46
  nodes: core.serialization.list(ChapterContentParagraphTtsNodeInputModel_1.ChapterContentParagraphTtsNodeInputModel),
45
47
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as ElevenLabs from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ChapterContentBlockInputModelSubType: core.serialization.Schema<serializers.ChapterContentBlockInputModelSubType.Raw, ElevenLabs.ChapterContentBlockInputModelSubType>;
8
+ export declare namespace ChapterContentBlockInputModelSubType {
9
+ type Raw = "p" | "h1" | "h2" | "h3";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ChapterContentBlockInputModelSubType = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ChapterContentBlockInputModelSubType = core.serialization.enum_(["p", "h1", "h2", "h3"]);
@@ -11,6 +11,7 @@ export declare namespace ConversationTokenDbModel {
11
11
  agent_id: string;
12
12
  conversation_token: string;
13
13
  expiration_time_unix_secs?: number | null;
14
+ conversation_id?: string | null;
14
15
  purpose?: ConversationTokenPurpose.Raw | null;
15
16
  }
16
17
  }
@@ -43,5 +43,6 @@ exports.ConversationTokenDbModel = core.serialization.object({
43
43
  agentId: core.serialization.property("agent_id", core.serialization.string()),
44
44
  conversationToken: core.serialization.property("conversation_token", core.serialization.string()),
45
45
  expirationTimeUnixSecs: core.serialization.property("expiration_time_unix_secs", core.serialization.number().optional()),
46
+ conversationId: core.serialization.property("conversation_id", core.serialization.string().optional()),
46
47
  purpose: ConversationTokenPurpose_1.ConversationTokenPurpose.optional(),
47
48
  });