@elevenlabs/elevenlabs-js 2.0.1 → 2.2.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 (944) hide show
  1. package/.mock/asyncapi.yml +11 -11
  2. package/.mock/definition/__package__.yml +709 -107
  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/agents/widget.yml +30 -0
  7. package/.mock/definition/conversationalAi/agents.yml +47 -27
  8. package/.mock/definition/conversationalAi/batchCalls.yml +83 -0
  9. package/.mock/definition/conversationalAi/knowledgeBase/document.yml +5 -1
  10. package/.mock/definition/conversationalAi/knowledgeBase/documents.yml +14 -5
  11. package/.mock/definition/conversationalAi/knowledgeBase.yml +2 -1
  12. package/.mock/definition/conversationalAi/llmUsage.yml +52 -0
  13. package/.mock/definition/conversationalAi.yml +99 -1
  14. package/.mock/definition/history.yml +8 -0
  15. package/.mock/definition/pronunciationDictionaries.yml +2 -2
  16. package/.mock/definition/speechToText.yml +14 -2
  17. package/.mock/definition/textToDialogue.yml +213 -0
  18. package/.mock/definition/textToVoice.yml +1 -1
  19. package/.mock/definition/v1TextToSpeechVoiceIdMultiStreamInput.yml +5 -3
  20. package/.mock/definition/voices/settings.yml +3 -3
  21. package/.mock/definition/voices.yml +6 -3
  22. package/.mock/definition/workspace/groups/members.yml +0 -2
  23. package/.mock/definition/workspace/groups.yml +0 -1
  24. package/.mock/fern.config.json +1 -1
  25. package/.mock/openapi.json +3163 -232
  26. package/Client.d.ts +3 -0
  27. package/Client.js +33 -28
  28. package/README.md +2 -2
  29. package/api/resources/audioIsolation/client/Client.js +4 -4
  30. package/api/resources/audioNative/client/Client.js +6 -6
  31. package/api/resources/conversationalAi/client/Client.d.ts +42 -0
  32. package/api/resources/conversationalAi/client/Client.js +243 -16
  33. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +6 -0
  34. package/api/resources/conversationalAi/resources/agents/client/Client.js +24 -14
  35. package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +5 -2
  36. package/api/resources/conversationalAi/resources/agents/resources/index.d.ts +3 -0
  37. package/api/resources/conversationalAi/resources/agents/resources/index.js +4 -1
  38. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +44 -0
  39. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +137 -0
  40. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/index.d.ts +1 -0
  41. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/index.js +2 -0
  42. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/index.d.ts +1 -0
  43. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/index.js +17 -0
  44. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +2 -2
  45. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +45 -0
  46. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +141 -0
  47. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  48. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.js +17 -0
  49. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.d.ts +15 -0
  50. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.d.ts +1 -0
  51. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.js +2 -0
  52. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/index.d.ts +1 -0
  53. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/index.js +17 -0
  54. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +2 -2
  55. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +2 -2
  56. package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +26 -0
  57. package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +154 -6
  58. package/api/resources/conversationalAi/resources/conversations/client/Client.js +8 -8
  59. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +2 -2
  60. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +2 -2
  61. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +4 -4
  62. package/api/resources/conversationalAi/resources/index.d.ts +2 -0
  63. package/api/resources/conversationalAi/resources/index.js +3 -1
  64. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +2 -2
  65. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +1 -1
  66. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +3 -3
  67. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +2 -1
  68. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +27 -20
  69. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.d.ts +13 -0
  70. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +1 -0
  71. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +2 -2
  72. package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +48 -0
  73. package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +144 -0
  74. package/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  75. package/api/resources/conversationalAi/resources/llmUsage/client/index.js +17 -0
  76. package/api/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.d.ts +19 -0
  77. package/api/resources/conversationalAi/resources/llmUsage/client/requests/index.d.ts +1 -0
  78. package/api/resources/conversationalAi/resources/llmUsage/client/requests/index.js +2 -0
  79. package/api/resources/conversationalAi/resources/llmUsage/index.d.ts +1 -0
  80. package/api/resources/conversationalAi/resources/llmUsage/index.js +17 -0
  81. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +10 -10
  82. package/api/resources/conversationalAi/resources/secrets/client/Client.js +6 -6
  83. package/api/resources/conversationalAi/resources/settings/client/Client.js +4 -4
  84. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +2 -2
  85. package/api/resources/conversationalAi/resources/twilio/client/Client.js +2 -2
  86. package/api/resources/dubbing/client/Client.js +6 -6
  87. package/api/resources/dubbing/resources/audio/client/Client.js +2 -2
  88. package/api/resources/dubbing/resources/resource/client/Client.js +10 -10
  89. package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +2 -2
  90. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +4 -4
  91. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +4 -4
  92. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +2 -2
  93. package/api/resources/dubbing/resources/transcript/client/Client.js +2 -2
  94. package/api/resources/forcedAlignment/client/Client.js +2 -2
  95. package/api/resources/history/client/Client.js +10 -10
  96. package/api/resources/index.d.ts +3 -0
  97. package/api/resources/index.js +4 -1
  98. package/api/resources/models/client/Client.js +2 -2
  99. package/api/resources/pronunciationDictionaries/client/Client.js +10 -10
  100. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +4 -4
  101. package/api/resources/samples/client/Client.js +2 -2
  102. package/api/resources/speechToSpeech/client/Client.js +4 -4
  103. package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
  104. package/api/resources/studio/client/Client.js +2 -2
  105. package/api/resources/studio/resources/projects/client/Client.js +12 -12
  106. package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +12 -12
  107. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +6 -6
  108. package/api/resources/studio/resources/projects/resources/content/client/Client.js +2 -2
  109. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +2 -2
  110. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +8 -8
  111. package/api/resources/textToDialogue/client/Client.d.ts +44 -0
  112. package/api/resources/textToDialogue/client/Client.js +212 -0
  113. package/api/resources/textToDialogue/client/index.d.ts +1 -0
  114. package/api/resources/textToDialogue/client/index.js +17 -0
  115. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +32 -0
  116. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +32 -0
  117. package/api/resources/textToDialogue/client/requests/index.d.ts +2 -0
  118. package/api/resources/textToDialogue/client/requests/index.js +2 -0
  119. package/api/resources/textToDialogue/index.d.ts +2 -0
  120. package/api/resources/textToDialogue/index.js +18 -0
  121. package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +28 -0
  122. package/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +27 -0
  123. package/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +28 -0
  124. package/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +27 -0
  125. package/api/resources/textToDialogue/types/index.d.ts +2 -0
  126. package/api/resources/textToDialogue/types/index.js +18 -0
  127. package/api/resources/textToSoundEffects/client/Client.js +2 -2
  128. package/api/resources/textToSpeech/client/Client.js +8 -8
  129. package/api/resources/textToVoice/client/Client.js +4 -4
  130. package/api/resources/usage/client/Client.js +2 -2
  131. package/api/resources/user/client/Client.js +2 -2
  132. package/api/resources/user/resources/subscription/client/Client.js +2 -2
  133. package/api/resources/voices/client/Client.js +20 -17
  134. package/api/resources/voices/client/requests/VoicesGetSharedRequest.d.ts +4 -0
  135. package/api/resources/voices/resources/ivc/client/Client.js +2 -2
  136. package/api/resources/voices/resources/pvc/client/Client.js +6 -6
  137. package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +6 -6
  138. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +2 -2
  139. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +4 -4
  140. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +2 -2
  141. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +2 -2
  142. package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +2 -2
  143. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +4 -4
  144. package/api/resources/voices/resources/samples/resources/audio/client/Client.js +2 -2
  145. package/api/resources/voices/resources/settings/client/Client.d.ts +1 -1
  146. package/api/resources/voices/resources/settings/client/Client.js +7 -7
  147. package/api/resources/workspace/resources/groups/client/Client.js +2 -2
  148. package/api/resources/workspace/resources/groups/resources/members/client/Client.js +4 -4
  149. package/api/resources/workspace/resources/invites/client/Client.js +6 -6
  150. package/api/resources/workspace/resources/members/client/Client.js +4 -4
  151. package/api/resources/workspace/resources/resources/client/Client.js +6 -6
  152. package/api/types/AddKnowledgeBaseResponseModel.d.ts +0 -1
  153. package/api/types/AgentConfigOverride.d.ts +4 -4
  154. package/api/types/AgentConfigOverrideConfig.d.ts +4 -4
  155. package/api/types/AudioOutputMulti.d.ts +1 -1
  156. package/api/types/AuthorizationMethod.d.ts +2 -1
  157. package/api/types/AuthorizationMethod.js +1 -0
  158. package/api/types/ChapterContentBlockInputModel.d.ts +1 -0
  159. package/api/types/ChapterContentBlockInputModelSubType.d.ts +10 -0
  160. package/api/types/ChapterContentBlockInputModelSubType.js +12 -0
  161. package/api/types/ClientEvent.d.ts +2 -1
  162. package/api/types/ClientEvent.js +1 -0
  163. package/api/types/ConversationConfigClientOverrideConfigInput.d.ts +4 -4
  164. package/api/types/ConversationConfigClientOverrideConfigOutput.d.ts +4 -4
  165. package/api/types/ConversationConfigClientOverrideInput.d.ts +4 -4
  166. package/api/types/ConversationConfigClientOverrideOutput.d.ts +4 -4
  167. package/api/types/ConversationConfigOverride.d.ts +1 -0
  168. package/api/types/ConversationConfigOverrideConfig.d.ts +1 -1
  169. package/api/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
  170. package/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
  171. package/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
  172. package/api/types/ConversationTokenDbModel.d.ts +2 -0
  173. package/api/types/ConversationalConfig.d.ts +1 -1
  174. package/api/types/CustomLlm.d.ts +2 -0
  175. package/api/types/CustomLlmRequestHeadersValue.d.ts +5 -0
  176. package/api/types/DialogueInput.d.ts +9 -0
  177. package/api/types/DialogueInputResponseModel.d.ts +11 -0
  178. package/api/types/EmbedVariant.d.ts +2 -1
  179. package/api/types/EmbedVariant.js +1 -0
  180. package/api/types/FeatureStatusCommonModel.d.ts +7 -0
  181. package/api/types/FeatureStatusCommonModel.js +5 -0
  182. package/api/types/FeaturesUsageCommonModel.d.ts +12 -0
  183. package/api/types/FeaturesUsageCommonModel.js +5 -0
  184. package/api/types/GetAgentEmbedResponseModel.d.ts +1 -1
  185. package/api/types/GetAgentKnowledgebaseSizeResponseModel.d.ts +6 -0
  186. package/api/types/GetAgentKnowledgebaseSizeResponseModel.js +5 -0
  187. package/api/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -1
  188. package/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +1 -1
  189. package/api/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +1 -1
  190. package/api/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +1 -1
  191. package/api/types/GetKnowledgeBaseTextResponseModel.d.ts +1 -1
  192. package/api/types/GetKnowledgeBaseUrlResponseModel.d.ts +1 -1
  193. package/api/types/GetSharedSoundGenerationsResponseModel.d.ts +9 -0
  194. package/api/types/GetSharedSoundGenerationsResponseModel.js +5 -0
  195. package/api/types/Llm.d.ts +28 -3
  196. package/api/types/Llm.js +27 -2
  197. package/api/types/LlmUsageCalculatorLlmResponseModel.d.ts +8 -0
  198. package/api/types/LlmUsageCalculatorLlmResponseModel.js +5 -0
  199. package/api/types/LlmUsageCalculatorResponseModel.d.ts +7 -0
  200. package/api/types/LlmUsageCalculatorResponseModel.js +5 -0
  201. package/api/types/McpApprovalRequiredModel.d.ts +12 -0
  202. package/api/types/McpApprovalRequiredModel.js +11 -0
  203. package/api/types/McpToolConfigInput.d.ts +2 -0
  204. package/api/types/McpToolConfigOutput.d.ts +2 -0
  205. package/api/types/ModelSettingsResponseModel.d.ts +9 -0
  206. package/api/types/ModelSettingsResponseModel.js +5 -0
  207. package/api/types/NativeMcpToolConfigInput.d.ts +22 -0
  208. package/api/types/NativeMcpToolConfigInput.js +5 -0
  209. package/api/types/NativeMcpToolConfigOutput.d.ts +22 -0
  210. package/api/types/NativeMcpToolConfigOutput.js +5 -0
  211. package/api/types/PromptAgent.d.ts +2 -0
  212. package/api/types/PromptAgentDbModel.d.ts +2 -0
  213. package/api/types/PromptAgentDbModelToolsItem.d.ts +4 -1
  214. package/api/types/PromptAgentInputToolsItem.d.ts +4 -1
  215. package/api/types/PromptAgentOutputToolsItem.d.ts +4 -1
  216. package/api/types/PromptAgentOverride.d.ts +1 -1
  217. package/api/types/PromptAgentOverrideConfig.d.ts +1 -1
  218. package/api/types/PronunciationDictionaryLocator.d.ts +1 -1
  219. package/api/types/RagConfig.d.ts +2 -0
  220. package/{dist/api/types/RagIndexResponseModel.d.ts → api/types/RagDocumentIndexResponseModel.d.ts} +4 -1
  221. package/api/types/RagDocumentIndexResponseModel.js +5 -0
  222. package/api/types/RagDocumentIndexUsage.d.ts +6 -0
  223. package/api/types/RagDocumentIndexUsage.js +5 -0
  224. package/api/types/RagDocumentIndexesResponseModel.d.ts +7 -0
  225. package/api/types/RagDocumentIndexesResponseModel.js +5 -0
  226. package/api/types/RagIndexOverviewEmbeddingModelResponseModel.d.ts +8 -0
  227. package/api/types/RagIndexOverviewEmbeddingModelResponseModel.js +5 -0
  228. package/api/types/RagIndexOverviewResponseModel.d.ts +9 -0
  229. package/api/types/RagIndexOverviewResponseModel.js +5 -0
  230. package/api/types/RagIndexStatus.d.ts +3 -1
  231. package/api/types/RagIndexStatus.js +2 -0
  232. package/api/types/SharedSoundGenerationResponseModel.d.ts +17 -0
  233. package/api/types/SharedSoundGenerationResponseModel.js +5 -0
  234. package/api/types/SkipTurnToolConfig.d.ts +16 -0
  235. package/api/types/SkipTurnToolConfig.js +5 -0
  236. package/api/types/SpeechHistoryItemResponse.d.ts +5 -3
  237. package/api/types/Subscription.d.ts +1 -1
  238. package/api/types/SubscriptionResponse.d.ts +1 -1
  239. package/api/types/{SubscriptionStatus.d.ts → SubscriptionStatusType.d.ts} +3 -5
  240. package/{dist/api/types/ExtendedSubscriptionResponseModelStatus.js → api/types/SubscriptionStatusType.js} +3 -2
  241. package/api/types/SupportedVoice.d.ts +11 -0
  242. package/api/types/SupportedVoice.js +5 -0
  243. package/api/types/SystemToolConfigInputParams.d.ts +4 -1
  244. package/api/types/SystemToolConfigOutputParams.d.ts +4 -1
  245. package/{dist/api/types/TtsConversationalConfig.d.ts → api/types/TtsConversationalConfigInput.d.ts} +3 -1
  246. package/api/types/TtsConversationalConfigInput.js +5 -0
  247. package/api/types/TtsConversationalConfigOutput.d.ts +24 -0
  248. package/api/types/TtsConversationalConfigOutput.js +5 -0
  249. package/api/types/TtsConversationalConfigOverride.d.ts +1 -0
  250. package/api/types/TtsConversationalConfigOverrideConfig.d.ts +1 -1
  251. package/api/types/TtsModelFamily.d.ts +9 -0
  252. package/api/types/TtsModelFamily.js +11 -0
  253. package/api/types/VoiceSettings.d.ts +2 -2
  254. package/api/types/WebsocketTtsClientMessageMulti.d.ts +2 -2
  255. package/api/types/WidgetConfig.d.ts +13 -1
  256. package/{dist/api/types/WidgetConfigAvatar.d.ts → api/types/WidgetConfigInputAvatar.d.ts} +2 -2
  257. package/api/types/WidgetConfigInputAvatar.js +5 -0
  258. package/api/types/WidgetConfigOutputAvatar.d.ts +19 -0
  259. package/api/types/WidgetConfigOutputAvatar.js +5 -0
  260. package/api/types/{WidgetConfigResponseModel.d.ts → WidgetConfigResponse.d.ts} +16 -1
  261. package/api/types/WidgetConfigResponse.js +5 -0
  262. package/api/types/WidgetLanguagePreset.d.ts +8 -0
  263. package/api/types/WidgetLanguagePreset.js +5 -0
  264. package/api/types/WidgetLanguagePresetResponse.d.ts +9 -0
  265. package/api/types/WidgetLanguagePresetResponse.js +5 -0
  266. package/api/types/WidgetPlacement.d.ts +12 -0
  267. package/api/types/WidgetPlacement.js +14 -0
  268. package/api/types/WidgetTextContents.d.ts +47 -0
  269. package/api/types/WidgetTextContents.js +5 -0
  270. package/api/types/index.d.ts +33 -6
  271. package/api/types/index.js +33 -6
  272. package/dist/Client.d.ts +3 -0
  273. package/dist/Client.js +33 -28
  274. package/dist/api/resources/audioIsolation/client/Client.js +4 -4
  275. package/dist/api/resources/audioNative/client/Client.js +6 -6
  276. package/dist/api/resources/conversationalAi/client/Client.d.ts +42 -0
  277. package/dist/api/resources/conversationalAi/client/Client.js +243 -16
  278. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +6 -0
  279. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +24 -14
  280. package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +5 -2
  281. package/dist/api/resources/conversationalAi/resources/agents/resources/index.d.ts +3 -0
  282. package/dist/api/resources/conversationalAi/resources/agents/resources/index.js +4 -1
  283. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +44 -0
  284. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +137 -0
  285. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/index.d.ts +1 -0
  286. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/index.js +2 -0
  287. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/index.d.ts +1 -0
  288. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/index.js +17 -0
  289. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +2 -2
  290. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +45 -0
  291. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +141 -0
  292. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  293. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.js +17 -0
  294. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.d.ts +15 -0
  295. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.js +5 -0
  296. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.d.ts +1 -0
  297. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.js +2 -0
  298. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/index.d.ts +1 -0
  299. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/index.js +17 -0
  300. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +2 -2
  301. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +2 -2
  302. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +26 -0
  303. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +154 -6
  304. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +8 -8
  305. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +2 -2
  306. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +2 -2
  307. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +4 -4
  308. package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -0
  309. package/dist/api/resources/conversationalAi/resources/index.js +3 -1
  310. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +2 -2
  311. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +1 -1
  312. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +3 -3
  313. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +2 -1
  314. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +27 -20
  315. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.d.ts +13 -0
  316. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.js +5 -0
  317. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +1 -0
  318. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +2 -2
  319. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +48 -0
  320. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +144 -0
  321. package/dist/api/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  322. package/dist/api/resources/conversationalAi/resources/llmUsage/client/index.js +17 -0
  323. package/dist/api/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.d.ts +19 -0
  324. package/dist/api/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.js +5 -0
  325. package/dist/api/resources/conversationalAi/resources/llmUsage/client/requests/index.d.ts +1 -0
  326. package/dist/api/resources/conversationalAi/resources/llmUsage/client/requests/index.js +2 -0
  327. package/dist/api/resources/conversationalAi/resources/llmUsage/index.d.ts +1 -0
  328. package/dist/api/resources/conversationalAi/resources/llmUsage/index.js +17 -0
  329. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +10 -10
  330. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +6 -6
  331. package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +4 -4
  332. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +2 -2
  333. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +2 -2
  334. package/dist/api/resources/dubbing/client/Client.js +6 -6
  335. package/dist/api/resources/dubbing/resources/audio/client/Client.js +2 -2
  336. package/dist/api/resources/dubbing/resources/resource/client/Client.js +10 -10
  337. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +2 -2
  338. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +4 -4
  339. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +4 -4
  340. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +2 -2
  341. package/dist/api/resources/dubbing/resources/transcript/client/Client.js +2 -2
  342. package/dist/api/resources/forcedAlignment/client/Client.js +2 -2
  343. package/dist/api/resources/history/client/Client.js +10 -10
  344. package/dist/api/resources/index.d.ts +3 -0
  345. package/dist/api/resources/index.js +4 -1
  346. package/dist/api/resources/models/client/Client.js +2 -2
  347. package/dist/api/resources/pronunciationDictionaries/client/Client.js +10 -10
  348. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +4 -4
  349. package/dist/api/resources/samples/client/Client.js +2 -2
  350. package/dist/api/resources/speechToSpeech/client/Client.js +4 -4
  351. package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -0
  352. package/dist/api/resources/studio/client/Client.js +2 -2
  353. package/dist/api/resources/studio/resources/projects/client/Client.js +12 -12
  354. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +12 -12
  355. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +6 -6
  356. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +2 -2
  357. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +2 -2
  358. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +8 -8
  359. package/dist/api/resources/textToDialogue/client/Client.d.ts +44 -0
  360. package/dist/api/resources/textToDialogue/client/Client.js +212 -0
  361. package/dist/api/resources/textToDialogue/client/index.d.ts +1 -0
  362. package/dist/api/resources/textToDialogue/client/index.js +17 -0
  363. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +32 -0
  364. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js +5 -0
  365. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +32 -0
  366. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js +5 -0
  367. package/dist/api/resources/textToDialogue/client/requests/index.d.ts +2 -0
  368. package/dist/api/resources/textToDialogue/client/requests/index.js +2 -0
  369. package/dist/api/resources/textToDialogue/index.d.ts +2 -0
  370. package/dist/api/resources/textToDialogue/index.js +18 -0
  371. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +28 -0
  372. package/dist/api/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +27 -0
  373. package/dist/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +28 -0
  374. package/dist/api/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +27 -0
  375. package/dist/api/resources/textToDialogue/types/index.d.ts +2 -0
  376. package/dist/api/resources/textToDialogue/types/index.js +18 -0
  377. package/dist/api/resources/textToSoundEffects/client/Client.js +2 -2
  378. package/dist/api/resources/textToSpeech/client/Client.js +8 -8
  379. package/dist/api/resources/textToVoice/client/Client.js +4 -4
  380. package/dist/api/resources/usage/client/Client.js +2 -2
  381. package/dist/api/resources/user/client/Client.js +2 -2
  382. package/dist/api/resources/user/resources/subscription/client/Client.js +2 -2
  383. package/dist/api/resources/voices/client/Client.js +20 -17
  384. package/dist/api/resources/voices/client/requests/VoicesGetSharedRequest.d.ts +4 -0
  385. package/dist/api/resources/voices/resources/ivc/client/Client.js +2 -2
  386. package/dist/api/resources/voices/resources/pvc/client/Client.js +6 -6
  387. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +6 -6
  388. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +2 -2
  389. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +4 -4
  390. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +2 -2
  391. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +2 -2
  392. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +2 -2
  393. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +4 -4
  394. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +2 -2
  395. package/dist/api/resources/voices/resources/settings/client/Client.d.ts +1 -1
  396. package/dist/api/resources/voices/resources/settings/client/Client.js +7 -7
  397. package/dist/api/resources/workspace/resources/groups/client/Client.js +2 -2
  398. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +4 -4
  399. package/dist/api/resources/workspace/resources/invites/client/Client.js +6 -6
  400. package/dist/api/resources/workspace/resources/members/client/Client.js +4 -4
  401. package/dist/api/resources/workspace/resources/resources/client/Client.js +6 -6
  402. package/dist/api/types/AddKnowledgeBaseResponseModel.d.ts +0 -1
  403. package/dist/api/types/AgentConfigOverride.d.ts +4 -4
  404. package/dist/api/types/AgentConfigOverrideConfig.d.ts +4 -4
  405. package/dist/api/types/AudioOutputMulti.d.ts +1 -1
  406. package/dist/api/types/AuthorizationMethod.d.ts +2 -1
  407. package/dist/api/types/AuthorizationMethod.js +1 -0
  408. package/dist/api/types/ChapterContentBlockInputModel.d.ts +1 -0
  409. package/dist/api/types/ChapterContentBlockInputModelSubType.d.ts +10 -0
  410. package/dist/api/types/ChapterContentBlockInputModelSubType.js +12 -0
  411. package/dist/api/types/ClientEvent.d.ts +2 -1
  412. package/dist/api/types/ClientEvent.js +1 -0
  413. package/dist/api/types/ConversationConfigClientOverrideConfigInput.d.ts +4 -4
  414. package/dist/api/types/ConversationConfigClientOverrideConfigOutput.d.ts +4 -4
  415. package/dist/api/types/ConversationConfigClientOverrideInput.d.ts +4 -4
  416. package/dist/api/types/ConversationConfigClientOverrideOutput.d.ts +4 -4
  417. package/dist/api/types/ConversationConfigOverride.d.ts +1 -0
  418. package/dist/api/types/ConversationConfigOverrideConfig.d.ts +1 -1
  419. package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +2 -0
  420. package/dist/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
  421. package/dist/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
  422. package/dist/api/types/ConversationTokenDbModel.d.ts +2 -0
  423. package/dist/api/types/ConversationalConfig.d.ts +1 -1
  424. package/dist/api/types/CustomLlm.d.ts +2 -0
  425. package/dist/api/types/CustomLlmRequestHeadersValue.d.ts +5 -0
  426. package/dist/api/types/CustomLlmRequestHeadersValue.js +5 -0
  427. package/dist/api/types/DialogueInput.d.ts +9 -0
  428. package/dist/api/types/DialogueInput.js +5 -0
  429. package/dist/api/types/DialogueInputResponseModel.d.ts +11 -0
  430. package/dist/api/types/DialogueInputResponseModel.js +5 -0
  431. package/dist/api/types/EmbedVariant.d.ts +2 -1
  432. package/dist/api/types/EmbedVariant.js +1 -0
  433. package/dist/api/types/FeatureStatusCommonModel.d.ts +7 -0
  434. package/dist/api/types/FeatureStatusCommonModel.js +5 -0
  435. package/dist/api/types/FeaturesUsageCommonModel.d.ts +12 -0
  436. package/dist/api/types/FeaturesUsageCommonModel.js +5 -0
  437. package/dist/api/types/GetAgentEmbedResponseModel.d.ts +1 -1
  438. package/dist/api/types/GetAgentKnowledgebaseSizeResponseModel.d.ts +6 -0
  439. package/dist/api/types/GetAgentKnowledgebaseSizeResponseModel.js +5 -0
  440. package/dist/api/types/GetKnowledgeBaseFileResponseModel.d.ts +1 -1
  441. package/dist/api/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +1 -1
  442. package/dist/api/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +1 -1
  443. package/dist/api/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +1 -1
  444. package/dist/api/types/GetKnowledgeBaseTextResponseModel.d.ts +1 -1
  445. package/dist/api/types/GetKnowledgeBaseUrlResponseModel.d.ts +1 -1
  446. package/dist/api/types/GetSharedSoundGenerationsResponseModel.d.ts +9 -0
  447. package/dist/api/types/GetSharedSoundGenerationsResponseModel.js +5 -0
  448. package/dist/api/types/Llm.d.ts +28 -3
  449. package/dist/api/types/Llm.js +27 -2
  450. package/dist/api/types/LlmUsageCalculatorLlmResponseModel.d.ts +8 -0
  451. package/dist/api/types/LlmUsageCalculatorLlmResponseModel.js +5 -0
  452. package/dist/api/types/LlmUsageCalculatorResponseModel.d.ts +7 -0
  453. package/dist/api/types/LlmUsageCalculatorResponseModel.js +5 -0
  454. package/dist/api/types/McpApprovalRequiredModel.d.ts +12 -0
  455. package/dist/api/types/McpApprovalRequiredModel.js +11 -0
  456. package/dist/api/types/McpToolConfigInput.d.ts +2 -0
  457. package/dist/api/types/McpToolConfigOutput.d.ts +2 -0
  458. package/dist/api/types/ModelSettingsResponseModel.d.ts +9 -0
  459. package/dist/api/types/ModelSettingsResponseModel.js +5 -0
  460. package/dist/api/types/NativeMcpToolConfigInput.d.ts +22 -0
  461. package/dist/api/types/NativeMcpToolConfigInput.js +5 -0
  462. package/dist/api/types/NativeMcpToolConfigOutput.d.ts +22 -0
  463. package/dist/api/types/NativeMcpToolConfigOutput.js +5 -0
  464. package/dist/api/types/PromptAgent.d.ts +2 -0
  465. package/dist/api/types/PromptAgentDbModel.d.ts +2 -0
  466. package/dist/api/types/PromptAgentDbModelToolsItem.d.ts +4 -1
  467. package/dist/api/types/PromptAgentInputToolsItem.d.ts +4 -1
  468. package/dist/api/types/PromptAgentOutputToolsItem.d.ts +4 -1
  469. package/dist/api/types/PromptAgentOverride.d.ts +1 -1
  470. package/dist/api/types/PromptAgentOverrideConfig.d.ts +1 -1
  471. package/dist/api/types/PronunciationDictionaryLocator.d.ts +1 -1
  472. package/dist/api/types/RagConfig.d.ts +2 -0
  473. package/{api/types/RagIndexResponseModel.d.ts → dist/api/types/RagDocumentIndexResponseModel.d.ts} +4 -1
  474. package/dist/api/types/RagDocumentIndexResponseModel.js +5 -0
  475. package/dist/api/types/RagDocumentIndexUsage.d.ts +6 -0
  476. package/dist/api/types/RagDocumentIndexUsage.js +5 -0
  477. package/dist/api/types/RagDocumentIndexesResponseModel.d.ts +7 -0
  478. package/dist/api/types/RagDocumentIndexesResponseModel.js +5 -0
  479. package/dist/api/types/RagIndexOverviewEmbeddingModelResponseModel.d.ts +8 -0
  480. package/dist/api/types/RagIndexOverviewEmbeddingModelResponseModel.js +5 -0
  481. package/dist/api/types/RagIndexOverviewResponseModel.d.ts +9 -0
  482. package/dist/api/types/RagIndexOverviewResponseModel.js +5 -0
  483. package/dist/api/types/RagIndexStatus.d.ts +3 -1
  484. package/dist/api/types/RagIndexStatus.js +2 -0
  485. package/dist/api/types/SharedSoundGenerationResponseModel.d.ts +17 -0
  486. package/dist/api/types/SharedSoundGenerationResponseModel.js +5 -0
  487. package/dist/api/types/SkipTurnToolConfig.d.ts +16 -0
  488. package/dist/api/types/SkipTurnToolConfig.js +5 -0
  489. package/dist/api/types/SpeechHistoryItemResponse.d.ts +5 -3
  490. package/dist/api/types/Subscription.d.ts +1 -1
  491. package/dist/api/types/SubscriptionResponse.d.ts +1 -1
  492. package/dist/api/types/{SubscriptionStatus.d.ts → SubscriptionStatusType.d.ts} +3 -5
  493. package/{api/types/ExtendedSubscriptionResponseModelStatus.js → dist/api/types/SubscriptionStatusType.js} +3 -2
  494. package/dist/api/types/SupportedVoice.d.ts +11 -0
  495. package/dist/api/types/SupportedVoice.js +5 -0
  496. package/dist/api/types/SystemToolConfigInputParams.d.ts +4 -1
  497. package/dist/api/types/SystemToolConfigOutputParams.d.ts +4 -1
  498. package/{api/types/TtsConversationalConfig.d.ts → dist/api/types/TtsConversationalConfigInput.d.ts} +3 -1
  499. package/dist/api/types/TtsConversationalConfigInput.js +5 -0
  500. package/dist/api/types/TtsConversationalConfigOutput.d.ts +24 -0
  501. package/dist/api/types/TtsConversationalConfigOutput.js +5 -0
  502. package/dist/api/types/TtsConversationalConfigOverride.d.ts +1 -0
  503. package/dist/api/types/TtsConversationalConfigOverrideConfig.d.ts +1 -1
  504. package/dist/api/types/TtsModelFamily.d.ts +9 -0
  505. package/dist/api/types/TtsModelFamily.js +11 -0
  506. package/dist/api/types/VoiceSettings.d.ts +2 -2
  507. package/dist/api/types/WebsocketTtsClientMessageMulti.d.ts +2 -2
  508. package/dist/api/types/WidgetConfig.d.ts +13 -1
  509. package/{api/types/WidgetConfigAvatar.d.ts → dist/api/types/WidgetConfigInputAvatar.d.ts} +2 -2
  510. package/dist/api/types/WidgetConfigInputAvatar.js +5 -0
  511. package/dist/api/types/WidgetConfigOutputAvatar.d.ts +19 -0
  512. package/dist/api/types/WidgetConfigOutputAvatar.js +5 -0
  513. package/dist/api/types/{WidgetConfigResponseModel.d.ts → WidgetConfigResponse.d.ts} +16 -1
  514. package/dist/api/types/WidgetConfigResponse.js +5 -0
  515. package/dist/api/types/WidgetLanguagePreset.d.ts +8 -0
  516. package/dist/api/types/WidgetLanguagePreset.js +5 -0
  517. package/dist/api/types/WidgetLanguagePresetResponse.d.ts +9 -0
  518. package/dist/api/types/WidgetLanguagePresetResponse.js +5 -0
  519. package/dist/api/types/WidgetPlacement.d.ts +12 -0
  520. package/dist/api/types/WidgetPlacement.js +14 -0
  521. package/dist/api/types/WidgetTextContents.d.ts +47 -0
  522. package/dist/api/types/WidgetTextContents.js +5 -0
  523. package/dist/api/types/index.d.ts +33 -6
  524. package/dist/api/types/index.js +33 -6
  525. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +4 -2
  526. package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +4 -2
  527. package/dist/serialization/resources/conversationalAi/resources/agents/index.d.ts +1 -0
  528. package/dist/serialization/resources/conversationalAi/resources/agents/index.js +1 -0
  529. package/dist/serialization/resources/conversationalAi/resources/agents/resources/index.d.ts +2 -0
  530. package/dist/serialization/resources/conversationalAi/resources/agents/resources/index.js +41 -0
  531. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  532. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.js +17 -0
  533. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.d.ts +14 -0
  534. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.js +45 -0
  535. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.d.ts +1 -0
  536. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.js +5 -0
  537. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/index.d.ts +1 -0
  538. package/dist/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/index.js +17 -0
  539. package/dist/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
  540. package/dist/serialization/resources/conversationalAi/resources/index.js +3 -1
  541. package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  542. package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/index.js +17 -0
  543. package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.d.ts +14 -0
  544. package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.js +45 -0
  545. package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/requests/index.d.ts +1 -0
  546. package/dist/serialization/resources/conversationalAi/resources/llmUsage/client/requests/index.js +5 -0
  547. package/dist/serialization/resources/conversationalAi/resources/llmUsage/index.d.ts +1 -0
  548. package/dist/serialization/resources/conversationalAi/resources/llmUsage/index.js +17 -0
  549. package/dist/serialization/resources/index.d.ts +3 -0
  550. package/dist/serialization/resources/index.js +4 -1
  551. package/dist/serialization/resources/textToDialogue/client/index.d.ts +1 -0
  552. package/dist/serialization/resources/textToDialogue/client/index.js +17 -0
  553. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +19 -0
  554. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js +50 -0
  555. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +19 -0
  556. package/dist/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js +50 -0
  557. package/dist/serialization/resources/textToDialogue/client/requests/index.d.ts +2 -0
  558. package/dist/serialization/resources/textToDialogue/client/requests/index.js +7 -0
  559. package/dist/serialization/resources/textToDialogue/index.d.ts +2 -0
  560. package/dist/serialization/resources/textToDialogue/index.js +18 -0
  561. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +10 -0
  562. package/dist/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +61 -0
  563. package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +10 -0
  564. package/dist/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +61 -0
  565. package/dist/serialization/resources/textToDialogue/types/index.d.ts +2 -0
  566. package/dist/serialization/resources/textToDialogue/types/index.js +18 -0
  567. package/dist/serialization/types/AddKnowledgeBaseResponseModel.d.ts +0 -1
  568. package/dist/serialization/types/AddKnowledgeBaseResponseModel.js +0 -1
  569. package/dist/serialization/types/AgentConfigOverride.d.ts +1 -1
  570. package/dist/serialization/types/AgentConfigOverride.js +1 -1
  571. package/dist/serialization/types/AgentConfigOverrideConfig.d.ts +1 -1
  572. package/dist/serialization/types/AgentConfigOverrideConfig.js +1 -1
  573. package/dist/serialization/types/AudioOutputMulti.d.ts +1 -1
  574. package/dist/serialization/types/AudioOutputMulti.js +1 -1
  575. package/dist/serialization/types/AuthorizationMethod.d.ts +1 -1
  576. package/dist/serialization/types/AuthorizationMethod.js +1 -0
  577. package/dist/serialization/types/ChapterContentBlockInputModel.d.ts +2 -0
  578. package/dist/serialization/types/ChapterContentBlockInputModel.js +2 -0
  579. package/dist/serialization/types/ChapterContentBlockInputModelSubType.d.ts +10 -0
  580. package/dist/serialization/types/ChapterContentBlockInputModelSubType.js +41 -0
  581. package/dist/serialization/types/ClientEvent.d.ts +1 -1
  582. package/dist/serialization/types/ClientEvent.js +1 -0
  583. package/dist/serialization/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -2
  584. package/dist/serialization/types/ConversationConfigClientOverrideConfigInput.js +2 -2
  585. package/dist/serialization/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -2
  586. package/dist/serialization/types/ConversationConfigClientOverrideConfigOutput.js +2 -2
  587. package/dist/serialization/types/ConversationConfigClientOverrideInput.d.ts +2 -2
  588. package/dist/serialization/types/ConversationConfigClientOverrideInput.js +2 -2
  589. package/dist/serialization/types/ConversationConfigClientOverrideOutput.d.ts +2 -2
  590. package/dist/serialization/types/ConversationConfigClientOverrideOutput.js +2 -2
  591. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +3 -0
  592. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +3 -0
  593. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
  594. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
  595. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
  596. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
  597. package/dist/serialization/types/ConversationTokenDbModel.d.ts +1 -0
  598. package/dist/serialization/types/ConversationTokenDbModel.js +1 -0
  599. package/dist/serialization/types/ConversationalConfig.d.ts +2 -2
  600. package/dist/serialization/types/ConversationalConfig.js +2 -2
  601. package/dist/serialization/types/CustomLlm.d.ts +2 -0
  602. package/dist/serialization/types/CustomLlm.js +2 -0
  603. package/dist/serialization/types/CustomLlmRequestHeadersValue.d.ts +12 -0
  604. package/dist/serialization/types/CustomLlmRequestHeadersValue.js +43 -0
  605. package/dist/serialization/types/DialogueInput.d.ts +13 -0
  606. package/dist/serialization/types/DialogueInput.js +44 -0
  607. package/dist/serialization/types/DialogueInputResponseModel.d.ts +14 -0
  608. package/dist/serialization/types/DialogueInputResponseModel.js +45 -0
  609. package/dist/serialization/types/EmbedVariant.d.ts +1 -1
  610. package/dist/serialization/types/EmbedVariant.js +1 -1
  611. package/dist/serialization/types/FeatureStatusCommonModel.d.ts +13 -0
  612. package/dist/serialization/types/FeatureStatusCommonModel.js +44 -0
  613. package/dist/serialization/types/FeaturesUsageCommonModel.d.ts +18 -0
  614. package/dist/serialization/types/FeaturesUsageCommonModel.js +49 -0
  615. package/dist/serialization/types/GetAgentEmbedResponseModel.d.ts +2 -2
  616. package/dist/serialization/types/GetAgentEmbedResponseModel.js +2 -2
  617. package/dist/serialization/types/GetAgentKnowledgebaseSizeResponseModel.d.ts +12 -0
  618. package/dist/serialization/types/GetAgentKnowledgebaseSizeResponseModel.js +43 -0
  619. package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +2 -1
  620. package/dist/serialization/types/GetKnowledgeBaseFileResponseModel.js +2 -1
  621. package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -1
  622. package/dist/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +2 -1
  623. package/dist/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +2 -1
  624. package/dist/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.js +2 -1
  625. package/dist/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +2 -1
  626. package/dist/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.js +2 -1
  627. package/dist/serialization/types/GetKnowledgeBaseTextResponseModel.d.ts +2 -1
  628. package/dist/serialization/types/GetKnowledgeBaseTextResponseModel.js +2 -1
  629. package/dist/serialization/types/GetKnowledgeBaseUrlResponseModel.d.ts +2 -1
  630. package/dist/serialization/types/GetKnowledgeBaseUrlResponseModel.js +2 -1
  631. package/dist/serialization/types/GetSharedSoundGenerationsResponseModel.d.ts +15 -0
  632. package/dist/serialization/types/GetSharedSoundGenerationsResponseModel.js +46 -0
  633. package/dist/serialization/types/Llm.d.ts +1 -1
  634. package/dist/serialization/types/Llm.js +27 -2
  635. package/dist/serialization/types/LlmUsageCalculatorLlmResponseModel.d.ts +14 -0
  636. package/dist/serialization/types/LlmUsageCalculatorLlmResponseModel.js +45 -0
  637. package/dist/serialization/types/LlmUsageCalculatorResponseModel.d.ts +13 -0
  638. package/dist/serialization/types/LlmUsageCalculatorResponseModel.js +44 -0
  639. package/dist/serialization/types/McpApprovalRequiredModel.d.ts +10 -0
  640. package/{serialization/types/ExtendedSubscriptionResponseModelStatus.js → dist/serialization/types/McpApprovalRequiredModel.js} +5 -10
  641. package/dist/serialization/types/McpToolConfigInput.d.ts +2 -0
  642. package/dist/serialization/types/McpToolConfigInput.js +2 -0
  643. package/dist/serialization/types/McpToolConfigOutput.d.ts +2 -0
  644. package/dist/serialization/types/McpToolConfigOutput.js +2 -0
  645. package/dist/serialization/types/ModelSettingsResponseModel.d.ts +13 -0
  646. package/dist/serialization/types/ModelSettingsResponseModel.js +44 -0
  647. package/dist/serialization/types/NativeMcpToolConfigInput.d.ts +20 -0
  648. package/dist/serialization/types/NativeMcpToolConfigInput.js +52 -0
  649. package/dist/serialization/types/NativeMcpToolConfigOutput.d.ts +20 -0
  650. package/dist/serialization/types/NativeMcpToolConfigOutput.js +52 -0
  651. package/dist/serialization/types/PromptAgent.d.ts +1 -0
  652. package/dist/serialization/types/PromptAgent.js +1 -0
  653. package/dist/serialization/types/PromptAgentDbModel.d.ts +1 -0
  654. package/dist/serialization/types/PromptAgentDbModel.js +1 -0
  655. package/dist/serialization/types/PromptAgentDbModelToolsItem.d.ts +5 -1
  656. package/dist/serialization/types/PromptAgentDbModelToolsItem.js +2 -0
  657. package/dist/serialization/types/PromptAgentInputToolsItem.d.ts +5 -1
  658. package/dist/serialization/types/PromptAgentInputToolsItem.js +2 -0
  659. package/dist/serialization/types/PromptAgentOutputToolsItem.d.ts +5 -1
  660. package/dist/serialization/types/PromptAgentOutputToolsItem.js +2 -0
  661. package/dist/serialization/types/PronunciationDictionaryLocator.d.ts +1 -1
  662. package/dist/serialization/types/PronunciationDictionaryLocator.js +1 -1
  663. package/dist/serialization/types/RagConfig.d.ts +1 -0
  664. package/dist/serialization/types/RagConfig.js +1 -0
  665. package/dist/serialization/types/RagDocumentIndexResponseModel.d.ts +19 -0
  666. package/dist/serialization/types/RagDocumentIndexResponseModel.js +50 -0
  667. package/dist/serialization/types/RagDocumentIndexUsage.d.ts +12 -0
  668. package/dist/serialization/types/RagDocumentIndexUsage.js +43 -0
  669. package/dist/serialization/types/RagDocumentIndexesResponseModel.d.ts +13 -0
  670. package/{serialization/types/RagIndexResponseModel.js → dist/serialization/types/RagDocumentIndexesResponseModel.js} +4 -5
  671. package/dist/serialization/types/RagIndexOverviewEmbeddingModelResponseModel.d.ts +14 -0
  672. package/dist/serialization/types/RagIndexOverviewEmbeddingModelResponseModel.js +45 -0
  673. package/dist/serialization/types/RagIndexOverviewResponseModel.d.ts +15 -0
  674. package/dist/serialization/types/RagIndexOverviewResponseModel.js +46 -0
  675. package/dist/serialization/types/RagIndexStatus.d.ts +1 -1
  676. package/dist/serialization/types/RagIndexStatus.js +8 -1
  677. package/dist/serialization/types/SharedSoundGenerationResponseModel.d.ts +23 -0
  678. package/dist/serialization/types/SharedSoundGenerationResponseModel.js +54 -0
  679. package/dist/serialization/types/SkipTurnToolConfig.d.ts +11 -0
  680. package/dist/serialization/types/SkipTurnToolConfig.js +41 -0
  681. package/dist/serialization/types/SpeechHistoryItemResponse.d.ts +5 -3
  682. package/dist/serialization/types/SpeechHistoryItemResponse.js +5 -3
  683. package/dist/serialization/types/Subscription.d.ts +2 -2
  684. package/dist/serialization/types/Subscription.js +2 -2
  685. package/dist/serialization/types/SubscriptionResponse.d.ts +2 -2
  686. package/dist/serialization/types/SubscriptionResponse.js +2 -2
  687. package/dist/serialization/types/SubscriptionStatusType.d.ts +10 -0
  688. package/dist/serialization/types/{SubscriptionStatus.js → SubscriptionStatusType.js} +3 -2
  689. package/dist/serialization/types/SupportedVoice.d.ts +17 -0
  690. package/dist/serialization/types/SupportedVoice.js +48 -0
  691. package/dist/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
  692. package/dist/serialization/types/SystemToolConfigInputParams.js +2 -0
  693. package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
  694. package/dist/serialization/types/SystemToolConfigOutputParams.js +2 -0
  695. package/dist/serialization/types/{TtsConversationalConfig.d.ts → TtsConversationalConfigInput.d.ts} +4 -2
  696. package/{serialization/types/TtsConversationalConfig.js → dist/serialization/types/TtsConversationalConfigInput.js} +4 -2
  697. package/dist/serialization/types/TtsConversationalConfigOutput.d.ts +25 -0
  698. package/dist/serialization/types/TtsConversationalConfigOutput.js +56 -0
  699. package/dist/serialization/types/TtsModelFamily.d.ts +10 -0
  700. package/dist/serialization/types/TtsModelFamily.js +41 -0
  701. package/dist/serialization/types/VoiceSettings.d.ts +1 -1
  702. package/dist/serialization/types/VoiceSettings.js +1 -1
  703. package/dist/serialization/types/WebsocketTtsClientMessageMulti.d.ts +1 -1
  704. package/dist/serialization/types/WebsocketTtsClientMessageMulti.js +1 -1
  705. package/dist/serialization/types/WidgetConfig.d.ts +11 -2
  706. package/dist/serialization/types/WidgetConfig.js +11 -2
  707. package/dist/serialization/types/{WidgetConfigAvatar.d.ts → WidgetConfigInputAvatar.d.ts} +3 -3
  708. package/dist/serialization/types/{WidgetConfigAvatar.js → WidgetConfigInputAvatar.js} +2 -2
  709. package/dist/serialization/types/WidgetConfigOutputAvatar.d.ts +22 -0
  710. package/dist/serialization/types/WidgetConfigOutputAvatar.js +53 -0
  711. package/dist/serialization/types/{WidgetConfigResponseModel.d.ts → WidgetConfigResponse.d.ts} +13 -2
  712. package/dist/serialization/types/{WidgetConfigResponseModel.js → WidgetConfigResponse.js} +13 -2
  713. package/dist/serialization/types/WidgetLanguagePreset.d.ts +13 -0
  714. package/dist/serialization/types/WidgetLanguagePreset.js +44 -0
  715. package/dist/serialization/types/WidgetLanguagePresetResponse.d.ts +14 -0
  716. package/dist/serialization/types/WidgetLanguagePresetResponse.js +45 -0
  717. package/dist/serialization/types/WidgetPlacement.d.ts +10 -0
  718. package/dist/serialization/types/WidgetPlacement.js +41 -0
  719. package/dist/serialization/types/WidgetTextContents.d.ts +32 -0
  720. package/dist/serialization/types/WidgetTextContents.js +63 -0
  721. package/dist/serialization/types/index.d.ts +33 -6
  722. package/dist/serialization/types/index.js +33 -6
  723. package/dist/version.d.ts +1 -1
  724. package/dist/version.js +1 -1
  725. package/package.json +1 -1
  726. package/reference.md +883 -203
  727. package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +4 -2
  728. package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +4 -2
  729. package/serialization/resources/conversationalAi/resources/agents/index.d.ts +1 -0
  730. package/serialization/resources/conversationalAi/resources/agents/index.js +1 -0
  731. package/serialization/resources/conversationalAi/resources/agents/resources/index.d.ts +2 -0
  732. package/serialization/resources/conversationalAi/resources/agents/resources/index.js +41 -0
  733. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.d.ts +1 -0
  734. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/index.js +17 -0
  735. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.d.ts +14 -0
  736. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.js +45 -0
  737. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.d.ts +1 -0
  738. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/index.js +5 -0
  739. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/index.d.ts +1 -0
  740. package/serialization/resources/conversationalAi/resources/agents/resources/llmUsage/index.js +17 -0
  741. package/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
  742. package/serialization/resources/conversationalAi/resources/index.js +3 -1
  743. package/serialization/resources/conversationalAi/resources/llmUsage/client/index.d.ts +1 -0
  744. package/serialization/resources/conversationalAi/resources/llmUsage/client/index.js +17 -0
  745. package/serialization/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.d.ts +14 -0
  746. package/serialization/resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.js +45 -0
  747. package/serialization/resources/conversationalAi/resources/llmUsage/client/requests/index.d.ts +1 -0
  748. package/serialization/resources/conversationalAi/resources/llmUsage/client/requests/index.js +5 -0
  749. package/serialization/resources/conversationalAi/resources/llmUsage/index.d.ts +1 -0
  750. package/serialization/resources/conversationalAi/resources/llmUsage/index.js +17 -0
  751. package/serialization/resources/index.d.ts +3 -0
  752. package/serialization/resources/index.js +4 -1
  753. package/serialization/resources/textToDialogue/client/index.d.ts +1 -0
  754. package/serialization/resources/textToDialogue/client/index.js +17 -0
  755. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +19 -0
  756. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js +50 -0
  757. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +19 -0
  758. package/serialization/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js +50 -0
  759. package/serialization/resources/textToDialogue/client/requests/index.d.ts +2 -0
  760. package/serialization/resources/textToDialogue/client/requests/index.js +7 -0
  761. package/serialization/resources/textToDialogue/index.d.ts +2 -0
  762. package/serialization/resources/textToDialogue/index.js +18 -0
  763. package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.d.ts +10 -0
  764. package/serialization/resources/textToDialogue/types/TextToDialogueConvertRequestOutputFormat.js +61 -0
  765. package/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.d.ts +10 -0
  766. package/serialization/resources/textToDialogue/types/TextToDialogueStreamRequestOutputFormat.js +61 -0
  767. package/serialization/resources/textToDialogue/types/index.d.ts +2 -0
  768. package/serialization/resources/textToDialogue/types/index.js +18 -0
  769. package/serialization/types/AddKnowledgeBaseResponseModel.d.ts +0 -1
  770. package/serialization/types/AddKnowledgeBaseResponseModel.js +0 -1
  771. package/serialization/types/AgentConfigOverride.d.ts +1 -1
  772. package/serialization/types/AgentConfigOverride.js +1 -1
  773. package/serialization/types/AgentConfigOverrideConfig.d.ts +1 -1
  774. package/serialization/types/AgentConfigOverrideConfig.js +1 -1
  775. package/serialization/types/AudioOutputMulti.d.ts +1 -1
  776. package/serialization/types/AudioOutputMulti.js +1 -1
  777. package/serialization/types/AuthorizationMethod.d.ts +1 -1
  778. package/serialization/types/AuthorizationMethod.js +1 -0
  779. package/serialization/types/ChapterContentBlockInputModel.d.ts +2 -0
  780. package/serialization/types/ChapterContentBlockInputModel.js +2 -0
  781. package/serialization/types/ChapterContentBlockInputModelSubType.d.ts +10 -0
  782. package/serialization/types/ChapterContentBlockInputModelSubType.js +41 -0
  783. package/serialization/types/ClientEvent.d.ts +1 -1
  784. package/serialization/types/ClientEvent.js +1 -0
  785. package/serialization/types/ConversationConfigClientOverrideConfigInput.d.ts +2 -2
  786. package/serialization/types/ConversationConfigClientOverrideConfigInput.js +2 -2
  787. package/serialization/types/ConversationConfigClientOverrideConfigOutput.d.ts +2 -2
  788. package/serialization/types/ConversationConfigClientOverrideConfigOutput.js +2 -2
  789. package/serialization/types/ConversationConfigClientOverrideInput.d.ts +2 -2
  790. package/serialization/types/ConversationConfigClientOverrideInput.js +2 -2
  791. package/serialization/types/ConversationConfigClientOverrideOutput.d.ts +2 -2
  792. package/serialization/types/ConversationConfigClientOverrideOutput.js +2 -2
  793. package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +3 -0
  794. package/serialization/types/ConversationHistoryMetadataCommonModel.js +3 -0
  795. package/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
  796. package/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
  797. package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
  798. package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
  799. package/serialization/types/ConversationTokenDbModel.d.ts +1 -0
  800. package/serialization/types/ConversationTokenDbModel.js +1 -0
  801. package/serialization/types/ConversationalConfig.d.ts +2 -2
  802. package/serialization/types/ConversationalConfig.js +2 -2
  803. package/serialization/types/CustomLlm.d.ts +2 -0
  804. package/serialization/types/CustomLlm.js +2 -0
  805. package/serialization/types/CustomLlmRequestHeadersValue.d.ts +12 -0
  806. package/serialization/types/CustomLlmRequestHeadersValue.js +43 -0
  807. package/serialization/types/DialogueInput.d.ts +13 -0
  808. package/serialization/types/DialogueInput.js +44 -0
  809. package/serialization/types/DialogueInputResponseModel.d.ts +14 -0
  810. package/serialization/types/DialogueInputResponseModel.js +45 -0
  811. package/serialization/types/EmbedVariant.d.ts +1 -1
  812. package/serialization/types/EmbedVariant.js +1 -1
  813. package/serialization/types/FeatureStatusCommonModel.d.ts +13 -0
  814. package/serialization/types/FeatureStatusCommonModel.js +44 -0
  815. package/serialization/types/FeaturesUsageCommonModel.d.ts +18 -0
  816. package/serialization/types/FeaturesUsageCommonModel.js +49 -0
  817. package/serialization/types/GetAgentEmbedResponseModel.d.ts +2 -2
  818. package/serialization/types/GetAgentEmbedResponseModel.js +2 -2
  819. package/serialization/types/GetAgentKnowledgebaseSizeResponseModel.d.ts +12 -0
  820. package/serialization/types/GetAgentKnowledgebaseSizeResponseModel.js +43 -0
  821. package/serialization/types/GetKnowledgeBaseFileResponseModel.d.ts +2 -1
  822. package/serialization/types/GetKnowledgeBaseFileResponseModel.js +2 -1
  823. package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.d.ts +2 -1
  824. package/serialization/types/GetKnowledgeBaseSummaryFileResponseModel.js +2 -1
  825. package/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.d.ts +2 -1
  826. package/serialization/types/GetKnowledgeBaseSummaryTextResponseModel.js +2 -1
  827. package/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.d.ts +2 -1
  828. package/serialization/types/GetKnowledgeBaseSummaryUrlResponseModel.js +2 -1
  829. package/serialization/types/GetKnowledgeBaseTextResponseModel.d.ts +2 -1
  830. package/serialization/types/GetKnowledgeBaseTextResponseModel.js +2 -1
  831. package/serialization/types/GetKnowledgeBaseUrlResponseModel.d.ts +2 -1
  832. package/serialization/types/GetKnowledgeBaseUrlResponseModel.js +2 -1
  833. package/serialization/types/GetSharedSoundGenerationsResponseModel.d.ts +15 -0
  834. package/serialization/types/GetSharedSoundGenerationsResponseModel.js +46 -0
  835. package/serialization/types/Llm.d.ts +1 -1
  836. package/serialization/types/Llm.js +27 -2
  837. package/serialization/types/LlmUsageCalculatorLlmResponseModel.d.ts +14 -0
  838. package/serialization/types/LlmUsageCalculatorLlmResponseModel.js +45 -0
  839. package/serialization/types/LlmUsageCalculatorResponseModel.d.ts +13 -0
  840. package/serialization/types/LlmUsageCalculatorResponseModel.js +44 -0
  841. package/serialization/types/McpApprovalRequiredModel.d.ts +10 -0
  842. package/{dist/serialization/types/ExtendedSubscriptionResponseModelStatus.js → serialization/types/McpApprovalRequiredModel.js} +5 -10
  843. package/serialization/types/McpToolConfigInput.d.ts +2 -0
  844. package/serialization/types/McpToolConfigInput.js +2 -0
  845. package/serialization/types/McpToolConfigOutput.d.ts +2 -0
  846. package/serialization/types/McpToolConfigOutput.js +2 -0
  847. package/serialization/types/ModelSettingsResponseModel.d.ts +13 -0
  848. package/serialization/types/ModelSettingsResponseModel.js +44 -0
  849. package/serialization/types/NativeMcpToolConfigInput.d.ts +20 -0
  850. package/serialization/types/NativeMcpToolConfigInput.js +52 -0
  851. package/serialization/types/NativeMcpToolConfigOutput.d.ts +20 -0
  852. package/serialization/types/NativeMcpToolConfigOutput.js +52 -0
  853. package/serialization/types/PromptAgent.d.ts +1 -0
  854. package/serialization/types/PromptAgent.js +1 -0
  855. package/serialization/types/PromptAgentDbModel.d.ts +1 -0
  856. package/serialization/types/PromptAgentDbModel.js +1 -0
  857. package/serialization/types/PromptAgentDbModelToolsItem.d.ts +5 -1
  858. package/serialization/types/PromptAgentDbModelToolsItem.js +2 -0
  859. package/serialization/types/PromptAgentInputToolsItem.d.ts +5 -1
  860. package/serialization/types/PromptAgentInputToolsItem.js +2 -0
  861. package/serialization/types/PromptAgentOutputToolsItem.d.ts +5 -1
  862. package/serialization/types/PromptAgentOutputToolsItem.js +2 -0
  863. package/serialization/types/PronunciationDictionaryLocator.d.ts +1 -1
  864. package/serialization/types/PronunciationDictionaryLocator.js +1 -1
  865. package/serialization/types/RagConfig.d.ts +1 -0
  866. package/serialization/types/RagConfig.js +1 -0
  867. package/serialization/types/RagDocumentIndexResponseModel.d.ts +19 -0
  868. package/serialization/types/RagDocumentIndexResponseModel.js +50 -0
  869. package/serialization/types/RagDocumentIndexUsage.d.ts +12 -0
  870. package/serialization/types/RagDocumentIndexUsage.js +43 -0
  871. package/serialization/types/RagDocumentIndexesResponseModel.d.ts +13 -0
  872. package/{dist/serialization/types/RagIndexResponseModel.js → serialization/types/RagDocumentIndexesResponseModel.js} +4 -5
  873. package/serialization/types/RagIndexOverviewEmbeddingModelResponseModel.d.ts +14 -0
  874. package/serialization/types/RagIndexOverviewEmbeddingModelResponseModel.js +45 -0
  875. package/serialization/types/RagIndexOverviewResponseModel.d.ts +15 -0
  876. package/serialization/types/RagIndexOverviewResponseModel.js +46 -0
  877. package/serialization/types/RagIndexStatus.d.ts +1 -1
  878. package/serialization/types/RagIndexStatus.js +8 -1
  879. package/serialization/types/SharedSoundGenerationResponseModel.d.ts +23 -0
  880. package/serialization/types/SharedSoundGenerationResponseModel.js +54 -0
  881. package/serialization/types/SkipTurnToolConfig.d.ts +11 -0
  882. package/serialization/types/SkipTurnToolConfig.js +41 -0
  883. package/serialization/types/SpeechHistoryItemResponse.d.ts +5 -3
  884. package/serialization/types/SpeechHistoryItemResponse.js +5 -3
  885. package/serialization/types/Subscription.d.ts +2 -2
  886. package/serialization/types/Subscription.js +2 -2
  887. package/serialization/types/SubscriptionResponse.d.ts +2 -2
  888. package/serialization/types/SubscriptionResponse.js +2 -2
  889. package/serialization/types/SubscriptionStatusType.d.ts +10 -0
  890. package/serialization/types/{SubscriptionStatus.js → SubscriptionStatusType.js} +3 -2
  891. package/serialization/types/SupportedVoice.d.ts +17 -0
  892. package/serialization/types/SupportedVoice.js +48 -0
  893. package/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
  894. package/serialization/types/SystemToolConfigInputParams.js +2 -0
  895. package/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
  896. package/serialization/types/SystemToolConfigOutputParams.js +2 -0
  897. package/serialization/types/{TtsConversationalConfig.d.ts → TtsConversationalConfigInput.d.ts} +4 -2
  898. package/{dist/serialization/types/TtsConversationalConfig.js → serialization/types/TtsConversationalConfigInput.js} +4 -2
  899. package/serialization/types/TtsConversationalConfigOutput.d.ts +25 -0
  900. package/serialization/types/TtsConversationalConfigOutput.js +56 -0
  901. package/serialization/types/TtsModelFamily.d.ts +10 -0
  902. package/serialization/types/TtsModelFamily.js +41 -0
  903. package/serialization/types/VoiceSettings.d.ts +1 -1
  904. package/serialization/types/VoiceSettings.js +1 -1
  905. package/serialization/types/WebsocketTtsClientMessageMulti.d.ts +1 -1
  906. package/serialization/types/WebsocketTtsClientMessageMulti.js +1 -1
  907. package/serialization/types/WidgetConfig.d.ts +11 -2
  908. package/serialization/types/WidgetConfig.js +11 -2
  909. package/serialization/types/{WidgetConfigAvatar.d.ts → WidgetConfigInputAvatar.d.ts} +3 -3
  910. package/serialization/types/{WidgetConfigAvatar.js → WidgetConfigInputAvatar.js} +2 -2
  911. package/serialization/types/WidgetConfigOutputAvatar.d.ts +22 -0
  912. package/serialization/types/WidgetConfigOutputAvatar.js +53 -0
  913. package/serialization/types/{WidgetConfigResponseModel.d.ts → WidgetConfigResponse.d.ts} +13 -2
  914. package/serialization/types/{WidgetConfigResponseModel.js → WidgetConfigResponse.js} +13 -2
  915. package/serialization/types/WidgetLanguagePreset.d.ts +13 -0
  916. package/serialization/types/WidgetLanguagePreset.js +44 -0
  917. package/serialization/types/WidgetLanguagePresetResponse.d.ts +14 -0
  918. package/serialization/types/WidgetLanguagePresetResponse.js +45 -0
  919. package/serialization/types/WidgetPlacement.d.ts +10 -0
  920. package/serialization/types/WidgetPlacement.js +41 -0
  921. package/serialization/types/WidgetTextContents.d.ts +32 -0
  922. package/serialization/types/WidgetTextContents.js +63 -0
  923. package/serialization/types/index.d.ts +33 -6
  924. package/serialization/types/index.js +33 -6
  925. package/version.d.ts +1 -1
  926. package/version.js +1 -1
  927. package/api/types/ExtendedSubscriptionResponseModelStatus.d.ts +0 -17
  928. package/api/types/SubscriptionStatus.js +0 -16
  929. package/dist/api/types/ExtendedSubscriptionResponseModelStatus.d.ts +0 -17
  930. package/dist/api/types/SubscriptionStatus.js +0 -16
  931. package/dist/serialization/types/ExtendedSubscriptionResponseModelStatus.d.ts +0 -10
  932. package/dist/serialization/types/RagIndexResponseModel.d.ts +0 -14
  933. package/dist/serialization/types/SubscriptionStatus.d.ts +0 -10
  934. package/serialization/types/ExtendedSubscriptionResponseModelStatus.d.ts +0 -10
  935. package/serialization/types/RagIndexResponseModel.d.ts +0 -14
  936. package/serialization/types/SubscriptionStatus.d.ts +0 -10
  937. /package/api/{types/RagIndexResponseModel.js → resources/conversationalAi/resources/agents/resources/llmUsage/client/requests/LlmUsageCalculatorRequestModel.js} +0 -0
  938. /package/api/{types/TtsConversationalConfig.js → resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsDeleteRequest.js} +0 -0
  939. /package/api/{types/WidgetConfigAvatar.js → resources/conversationalAi/resources/llmUsage/client/requests/LlmUsageCalculatorPublicRequestModel.js} +0 -0
  940. /package/api/{types/WidgetConfigResponseModel.js → resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.js} +0 -0
  941. /package/{dist/api/types/RagIndexResponseModel.js → api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.js} +0 -0
  942. /package/{dist/api/types/TtsConversationalConfig.js → api/types/CustomLlmRequestHeadersValue.js} +0 -0
  943. /package/{dist/api/types/WidgetConfigAvatar.js → api/types/DialogueInput.js} +0 -0
  944. /package/{dist/api/types/WidgetConfigResponseModel.js → api/types/DialogueInputResponseModel.js} +0 -0
package/Client.d.ts CHANGED
@@ -8,6 +8,7 @@ import { TextToSoundEffects } from "./api/resources/textToSoundEffects/client/Cl
8
8
  import { AudioIsolation } from "./api/resources/audioIsolation/client/Client";
9
9
  import { Samples } from "./api/resources/samples/client/Client";
10
10
  import { TextToSpeech } from "./api/resources/textToSpeech/client/Client";
11
+ import { TextToDialogue } from "./api/resources/textToDialogue/client/Client";
11
12
  import { SpeechToSpeech } from "./api/resources/speechToSpeech/client/Client";
12
13
  import { TextToVoice } from "./api/resources/textToVoice/client/Client";
13
14
  import { User } from "./api/resources/user/client/Client";
@@ -50,6 +51,7 @@ export declare class ElevenLabsClient {
50
51
  protected _audioIsolation: AudioIsolation | undefined;
51
52
  protected _samples: Samples | undefined;
52
53
  protected _textToSpeech: TextToSpeech | undefined;
54
+ protected _textToDialogue: TextToDialogue | undefined;
53
55
  protected _speechToSpeech: SpeechToSpeech | undefined;
54
56
  protected _textToVoice: TextToVoice | undefined;
55
57
  protected _user: User | undefined;
@@ -70,6 +72,7 @@ export declare class ElevenLabsClient {
70
72
  get audioIsolation(): AudioIsolation;
71
73
  get samples(): Samples;
72
74
  get textToSpeech(): TextToSpeech;
75
+ get textToDialogue(): TextToDialogue;
73
76
  get speechToSpeech(): SpeechToSpeech;
74
77
  get textToVoice(): TextToVoice;
75
78
  get user(): User;
package/Client.js CHANGED
@@ -9,20 +9,21 @@ const Client_2 = require("./api/resources/textToSoundEffects/client/Client");
9
9
  const Client_3 = require("./api/resources/audioIsolation/client/Client");
10
10
  const Client_4 = require("./api/resources/samples/client/Client");
11
11
  const Client_5 = require("./api/resources/textToSpeech/client/Client");
12
- const Client_6 = require("./api/resources/speechToSpeech/client/Client");
13
- const Client_7 = require("./api/resources/textToVoice/client/Client");
14
- const Client_8 = require("./api/resources/user/client/Client");
15
- const Client_9 = require("./api/resources/voices/client/Client");
16
- const Client_10 = require("./api/resources/studio/client/Client");
17
- const Client_11 = require("./api/resources/dubbing/client/Client");
18
- const Client_12 = require("./api/resources/models/client/Client");
19
- const Client_13 = require("./api/resources/audioNative/client/Client");
20
- const Client_14 = require("./api/resources/usage/client/Client");
21
- const Client_15 = require("./api/resources/pronunciationDictionaries/client/Client");
22
- const Client_16 = require("./api/resources/speechToText/client/Client");
23
- const Client_17 = require("./api/resources/forcedAlignment/client/Client");
24
- const Client_18 = require("./api/resources/conversationalAi/client/Client");
25
- const Client_19 = require("./api/resources/workspace/client/Client");
12
+ const Client_6 = require("./api/resources/textToDialogue/client/Client");
13
+ const Client_7 = require("./api/resources/speechToSpeech/client/Client");
14
+ const Client_8 = require("./api/resources/textToVoice/client/Client");
15
+ const Client_9 = require("./api/resources/user/client/Client");
16
+ const Client_10 = require("./api/resources/voices/client/Client");
17
+ const Client_11 = require("./api/resources/studio/client/Client");
18
+ const Client_12 = require("./api/resources/dubbing/client/Client");
19
+ const Client_13 = require("./api/resources/models/client/Client");
20
+ const Client_14 = require("./api/resources/audioNative/client/Client");
21
+ const Client_15 = require("./api/resources/usage/client/Client");
22
+ const Client_16 = require("./api/resources/pronunciationDictionaries/client/Client");
23
+ const Client_17 = require("./api/resources/speechToText/client/Client");
24
+ const Client_18 = require("./api/resources/forcedAlignment/client/Client");
25
+ const Client_19 = require("./api/resources/conversationalAi/client/Client");
26
+ const Client_20 = require("./api/resources/workspace/client/Client");
26
27
  class ElevenLabsClient {
27
28
  constructor(_options = {}) {
28
29
  this._options = _options;
@@ -47,61 +48,65 @@ class ElevenLabsClient {
47
48
  var _a;
48
49
  return ((_a = this._textToSpeech) !== null && _a !== void 0 ? _a : (this._textToSpeech = new Client_5.TextToSpeech(this._options)));
49
50
  }
51
+ get textToDialogue() {
52
+ var _a;
53
+ return ((_a = this._textToDialogue) !== null && _a !== void 0 ? _a : (this._textToDialogue = new Client_6.TextToDialogue(this._options)));
54
+ }
50
55
  get speechToSpeech() {
51
56
  var _a;
52
- return ((_a = this._speechToSpeech) !== null && _a !== void 0 ? _a : (this._speechToSpeech = new Client_6.SpeechToSpeech(this._options)));
57
+ return ((_a = this._speechToSpeech) !== null && _a !== void 0 ? _a : (this._speechToSpeech = new Client_7.SpeechToSpeech(this._options)));
53
58
  }
54
59
  get textToVoice() {
55
60
  var _a;
56
- return ((_a = this._textToVoice) !== null && _a !== void 0 ? _a : (this._textToVoice = new Client_7.TextToVoice(this._options)));
61
+ return ((_a = this._textToVoice) !== null && _a !== void 0 ? _a : (this._textToVoice = new Client_8.TextToVoice(this._options)));
57
62
  }
58
63
  get user() {
59
64
  var _a;
60
- return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_8.User(this._options)));
65
+ return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_9.User(this._options)));
61
66
  }
62
67
  get voices() {
63
68
  var _a;
64
- return ((_a = this._voices) !== null && _a !== void 0 ? _a : (this._voices = new Client_9.Voices(this._options)));
69
+ return ((_a = this._voices) !== null && _a !== void 0 ? _a : (this._voices = new Client_10.Voices(this._options)));
65
70
  }
66
71
  get studio() {
67
72
  var _a;
68
- return ((_a = this._studio) !== null && _a !== void 0 ? _a : (this._studio = new Client_10.Studio(this._options)));
73
+ return ((_a = this._studio) !== null && _a !== void 0 ? _a : (this._studio = new Client_11.Studio(this._options)));
69
74
  }
70
75
  get dubbing() {
71
76
  var _a;
72
- return ((_a = this._dubbing) !== null && _a !== void 0 ? _a : (this._dubbing = new Client_11.Dubbing(this._options)));
77
+ return ((_a = this._dubbing) !== null && _a !== void 0 ? _a : (this._dubbing = new Client_12.Dubbing(this._options)));
73
78
  }
74
79
  get models() {
75
80
  var _a;
76
- return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_12.Models(this._options)));
81
+ return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_13.Models(this._options)));
77
82
  }
78
83
  get audioNative() {
79
84
  var _a;
80
- return ((_a = this._audioNative) !== null && _a !== void 0 ? _a : (this._audioNative = new Client_13.AudioNative(this._options)));
85
+ return ((_a = this._audioNative) !== null && _a !== void 0 ? _a : (this._audioNative = new Client_14.AudioNative(this._options)));
81
86
  }
82
87
  get usage() {
83
88
  var _a;
84
- return ((_a = this._usage) !== null && _a !== void 0 ? _a : (this._usage = new Client_14.Usage(this._options)));
89
+ return ((_a = this._usage) !== null && _a !== void 0 ? _a : (this._usage = new Client_15.Usage(this._options)));
85
90
  }
86
91
  get pronunciationDictionaries() {
87
92
  var _a;
88
- return ((_a = this._pronunciationDictionaries) !== null && _a !== void 0 ? _a : (this._pronunciationDictionaries = new Client_15.PronunciationDictionaries(this._options)));
93
+ return ((_a = this._pronunciationDictionaries) !== null && _a !== void 0 ? _a : (this._pronunciationDictionaries = new Client_16.PronunciationDictionaries(this._options)));
89
94
  }
90
95
  get speechToText() {
91
96
  var _a;
92
- return ((_a = this._speechToText) !== null && _a !== void 0 ? _a : (this._speechToText = new Client_16.SpeechToText(this._options)));
97
+ return ((_a = this._speechToText) !== null && _a !== void 0 ? _a : (this._speechToText = new Client_17.SpeechToText(this._options)));
93
98
  }
94
99
  get forcedAlignment() {
95
100
  var _a;
96
- return ((_a = this._forcedAlignment) !== null && _a !== void 0 ? _a : (this._forcedAlignment = new Client_17.ForcedAlignment(this._options)));
101
+ return ((_a = this._forcedAlignment) !== null && _a !== void 0 ? _a : (this._forcedAlignment = new Client_18.ForcedAlignment(this._options)));
97
102
  }
98
103
  get conversationalAi() {
99
104
  var _a;
100
- return ((_a = this._conversationalAi) !== null && _a !== void 0 ? _a : (this._conversationalAi = new Client_18.ConversationalAi(this._options)));
105
+ return ((_a = this._conversationalAi) !== null && _a !== void 0 ? _a : (this._conversationalAi = new Client_19.ConversationalAi(this._options)));
101
106
  }
102
107
  get workspace() {
103
108
  var _a;
104
- return ((_a = this._workspace) !== null && _a !== void 0 ? _a : (this._workspace = new Client_19.Workspace(this._options)));
109
+ return ((_a = this._workspace) !== null && _a !== void 0 ? _a : (this._workspace = new Client_20.Workspace(this._options)));
105
110
  }
106
111
  }
107
112
  exports.ElevenLabsClient = ElevenLabsClient;
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.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.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.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
155
155
  requestType: "file",
156
156
  duplex: _maybeEncodedRequest.duplex,
157
157
  body: _maybeEncodedRequest.body,
158
158
  responseType: "streaming",
159
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
159
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
160
160
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
161
161
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
162
162
  });
@@ -119,11 +119,11 @@ class AudioNative {
119
119
  method: "POST",
120
120
  headers: Object.assign(Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
121
121
  ? yield core.Supplier.get(this._options.apiKey)
122
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
122
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
123
123
  requestType: "file",
124
124
  duplex: _maybeEncodedRequest.duplex,
125
125
  body: _maybeEncodedRequest.body,
126
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
126
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
127
127
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
128
128
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
129
129
  });
@@ -194,10 +194,10 @@ class AudioNative {
194
194
  method: "GET",
195
195
  headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
196
196
  ? yield core.Supplier.get(this._options.apiKey)
197
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
197
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
198
198
  contentType: "application/json",
199
199
  requestType: "json",
200
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
200
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
201
201
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
202
202
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
203
203
  });
@@ -280,11 +280,11 @@ class AudioNative {
280
280
  method: "POST",
281
281
  headers: Object.assign(Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
282
282
  ? yield core.Supplier.get(this._options.apiKey)
283
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
283
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
284
284
  requestType: "file",
285
285
  duplex: _maybeEncodedRequest.duplex,
286
286
  body: _maybeEncodedRequest.body,
287
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
287
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
288
288
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
289
289
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
290
290
  });
@@ -8,6 +8,7 @@ import { Conversations } from "../resources/conversations/client/Client";
8
8
  import { Twilio } from "../resources/twilio/client/Client";
9
9
  import { Agents } from "../resources/agents/client/Client";
10
10
  import { PhoneNumbers } from "../resources/phoneNumbers/client/Client";
11
+ import { LlmUsage } from "../resources/llmUsage/client/Client";
11
12
  import { KnowledgeBase } from "../resources/knowledgeBase/client/Client";
12
13
  import { Settings } from "../resources/settings/client/Client";
13
14
  import { Secrets } from "../resources/secrets/client/Client";
@@ -41,6 +42,7 @@ export declare class ConversationalAi {
41
42
  protected _twilio: Twilio | undefined;
42
43
  protected _agents: Agents | undefined;
43
44
  protected _phoneNumbers: PhoneNumbers | undefined;
45
+ protected _llmUsage: LlmUsage | undefined;
44
46
  protected _knowledgeBase: KnowledgeBase | undefined;
45
47
  protected _settings: Settings | undefined;
46
48
  protected _secrets: Secrets | undefined;
@@ -52,6 +54,7 @@ export declare class ConversationalAi {
52
54
  get twilio(): Twilio;
53
55
  get agents(): Agents;
54
56
  get phoneNumbers(): PhoneNumbers;
57
+ get llmUsage(): LlmUsage;
55
58
  get knowledgeBase(): KnowledgeBase;
56
59
  get settings(): Settings;
57
60
  get secrets(): Secrets;
@@ -71,6 +74,45 @@ export declare class ConversationalAi {
71
74
  */
72
75
  addToKnowledgeBase(request: ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost, requestOptions?: ConversationalAi.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddKnowledgeBaseResponseModel>;
73
76
  private __addToKnowledgeBase;
77
+ /**
78
+ * Provides information about all RAG indexes of the specified knowledgebase document.
79
+ *
80
+ * @param {string} documentationId - The id of a document from the knowledge base. This is returned on document addition.
81
+ * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
82
+ *
83
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
84
+ *
85
+ * @example
86
+ * await client.conversationalAi.getDocumentRagIndexes("21m00Tcm4TlvDq8ikWAM")
87
+ */
88
+ getDocumentRagIndexes(documentationId: string, requestOptions?: ConversationalAi.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagDocumentIndexesResponseModel>;
89
+ private __getDocumentRagIndexes;
90
+ /**
91
+ * Delete RAG index for the knowledgebase document.
92
+ *
93
+ * @param {string} documentationId - The id of a document from the knowledge base. This is returned on document addition.
94
+ * @param {string} ragIndexId - The id of RAG index of document from the knowledge base.
95
+ * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
96
+ *
97
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
98
+ *
99
+ * @example
100
+ * await client.conversationalAi.deleteDocumentRagIndex("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM")
101
+ */
102
+ deleteDocumentRagIndex(documentationId: string, ragIndexId: string, requestOptions?: ConversationalAi.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagDocumentIndexResponseModel>;
103
+ private __deleteDocumentRagIndex;
104
+ /**
105
+ * Provides total size and other information of RAG indexes used by knowledgebase documents
106
+ *
107
+ * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
108
+ *
109
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
110
+ *
111
+ * @example
112
+ * await client.conversationalAi.ragIndexOverview()
113
+ */
114
+ ragIndexOverview(requestOptions?: ConversationalAi.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagIndexOverviewResponseModel>;
115
+ private __ragIndexOverview;
74
116
  /**
75
117
  * Update an existing secret for the workspace
76
118
  *
@@ -59,12 +59,13 @@ const Client_1 = require("../resources/conversations/client/Client");
59
59
  const Client_2 = require("../resources/twilio/client/Client");
60
60
  const Client_3 = require("../resources/agents/client/Client");
61
61
  const Client_4 = require("../resources/phoneNumbers/client/Client");
62
- const Client_5 = require("../resources/knowledgeBase/client/Client");
63
- const Client_6 = require("../resources/settings/client/Client");
64
- const Client_7 = require("../resources/secrets/client/Client");
65
- const Client_8 = require("../resources/batchCalls/client/Client");
66
- const Client_9 = require("../resources/sipTrunk/client/Client");
67
- const Client_10 = require("../resources/dashboard/client/Client");
62
+ const Client_5 = require("../resources/llmUsage/client/Client");
63
+ const Client_6 = require("../resources/knowledgeBase/client/Client");
64
+ const Client_7 = require("../resources/settings/client/Client");
65
+ const Client_8 = require("../resources/secrets/client/Client");
66
+ const Client_9 = require("../resources/batchCalls/client/Client");
67
+ const Client_10 = require("../resources/sipTrunk/client/Client");
68
+ const Client_11 = require("../resources/dashboard/client/Client");
68
69
  class ConversationalAi {
69
70
  constructor(_options = {}) {
70
71
  this._options = _options;
@@ -85,29 +86,33 @@ class ConversationalAi {
85
86
  var _a;
86
87
  return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_4.PhoneNumbers(this._options)));
87
88
  }
89
+ get llmUsage() {
90
+ var _a;
91
+ return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_5.LlmUsage(this._options)));
92
+ }
88
93
  get knowledgeBase() {
89
94
  var _a;
90
- return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_5.KnowledgeBase(this._options)));
95
+ return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_6.KnowledgeBase(this._options)));
91
96
  }
92
97
  get settings() {
93
98
  var _a;
94
- return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_6.Settings(this._options)));
99
+ return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_7.Settings(this._options)));
95
100
  }
96
101
  get secrets() {
97
102
  var _a;
98
- return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_7.Secrets(this._options)));
103
+ return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_8.Secrets(this._options)));
99
104
  }
100
105
  get batchCalls() {
101
106
  var _a;
102
- return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_8.BatchCalls(this._options)));
107
+ return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_9.BatchCalls(this._options)));
103
108
  }
104
109
  get sipTrunk() {
105
110
  var _a;
106
- return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_9.SipTrunk(this._options)));
111
+ return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_10.SipTrunk(this._options)));
107
112
  }
108
113
  get dashboard() {
109
114
  var _a;
110
- return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_10.Dashboard(this._options)));
115
+ return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_11.Dashboard(this._options)));
111
116
  }
112
117
  /**
113
118
  * Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/conversational-ai/api-reference/agents/update-agent). </Note>
@@ -142,11 +147,11 @@ class ConversationalAi {
142
147
  method: "POST",
143
148
  headers: Object.assign(Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
144
149
  ? yield core.Supplier.get(this._options.apiKey)
145
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
150
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
151
  requestType: "file",
147
152
  duplex: _maybeEncodedRequest.duplex,
148
153
  body: _maybeEncodedRequest.body,
149
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
154
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
150
155
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
151
156
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
152
157
  });
@@ -195,6 +200,228 @@ class ConversationalAi {
195
200
  }
196
201
  });
197
202
  }
203
+ /**
204
+ * Provides information about all RAG indexes of the specified knowledgebase document.
205
+ *
206
+ * @param {string} documentationId - The id of a document from the knowledge base. This is returned on document addition.
207
+ * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
208
+ *
209
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
210
+ *
211
+ * @example
212
+ * await client.conversationalAi.getDocumentRagIndexes("21m00Tcm4TlvDq8ikWAM")
213
+ */
214
+ getDocumentRagIndexes(documentationId, requestOptions) {
215
+ return core.HttpResponsePromise.fromPromise(this.__getDocumentRagIndexes(documentationId, requestOptions));
216
+ }
217
+ __getDocumentRagIndexes(documentationId, requestOptions) {
218
+ return __awaiter(this, void 0, void 0, function* () {
219
+ var _a, _b;
220
+ const _response = yield core.fetcher({
221
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}/rag-index`),
222
+ method: "GET",
223
+ headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
224
+ ? yield core.Supplier.get(this._options.apiKey)
225
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
226
+ contentType: "application/json",
227
+ requestType: "json",
228
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
229
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
230
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
231
+ });
232
+ if (_response.ok) {
233
+ return {
234
+ data: serializers.RagDocumentIndexesResponseModel.parseOrThrow(_response.body, {
235
+ unrecognizedObjectKeys: "passthrough",
236
+ allowUnrecognizedUnionMembers: true,
237
+ allowUnrecognizedEnumValues: true,
238
+ breadcrumbsPrefix: ["response"],
239
+ }),
240
+ rawResponse: _response.rawResponse,
241
+ };
242
+ }
243
+ if (_response.error.reason === "status-code") {
244
+ switch (_response.error.statusCode) {
245
+ case 422:
246
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
247
+ unrecognizedObjectKeys: "passthrough",
248
+ allowUnrecognizedUnionMembers: true,
249
+ allowUnrecognizedEnumValues: true,
250
+ breadcrumbsPrefix: ["response"],
251
+ }), _response.rawResponse);
252
+ default:
253
+ throw new errors.ElevenLabsError({
254
+ statusCode: _response.error.statusCode,
255
+ body: _response.error.body,
256
+ rawResponse: _response.rawResponse,
257
+ });
258
+ }
259
+ }
260
+ switch (_response.error.reason) {
261
+ case "non-json":
262
+ throw new errors.ElevenLabsError({
263
+ statusCode: _response.error.statusCode,
264
+ body: _response.error.rawBody,
265
+ rawResponse: _response.rawResponse,
266
+ });
267
+ case "timeout":
268
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/knowledge-base/{documentation_id}/rag-index.");
269
+ case "unknown":
270
+ throw new errors.ElevenLabsError({
271
+ message: _response.error.errorMessage,
272
+ rawResponse: _response.rawResponse,
273
+ });
274
+ }
275
+ });
276
+ }
277
+ /**
278
+ * Delete RAG index for the knowledgebase document.
279
+ *
280
+ * @param {string} documentationId - The id of a document from the knowledge base. This is returned on document addition.
281
+ * @param {string} ragIndexId - The id of RAG index of document from the knowledge base.
282
+ * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
283
+ *
284
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
285
+ *
286
+ * @example
287
+ * await client.conversationalAi.deleteDocumentRagIndex("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM")
288
+ */
289
+ deleteDocumentRagIndex(documentationId, ragIndexId, requestOptions) {
290
+ return core.HttpResponsePromise.fromPromise(this.__deleteDocumentRagIndex(documentationId, ragIndexId, requestOptions));
291
+ }
292
+ __deleteDocumentRagIndex(documentationId, ragIndexId, requestOptions) {
293
+ return __awaiter(this, void 0, void 0, function* () {
294
+ var _a, _b;
295
+ const _response = yield core.fetcher({
296
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, `v1/convai/knowledge-base/${encodeURIComponent(documentationId)}/rag-index/${encodeURIComponent(ragIndexId)}`),
297
+ method: "DELETE",
298
+ headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
299
+ ? yield core.Supplier.get(this._options.apiKey)
300
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
301
+ contentType: "application/json",
302
+ requestType: "json",
303
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
304
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
305
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
306
+ });
307
+ if (_response.ok) {
308
+ return {
309
+ data: serializers.RagDocumentIndexResponseModel.parseOrThrow(_response.body, {
310
+ unrecognizedObjectKeys: "passthrough",
311
+ allowUnrecognizedUnionMembers: true,
312
+ allowUnrecognizedEnumValues: true,
313
+ breadcrumbsPrefix: ["response"],
314
+ }),
315
+ rawResponse: _response.rawResponse,
316
+ };
317
+ }
318
+ if (_response.error.reason === "status-code") {
319
+ switch (_response.error.statusCode) {
320
+ case 422:
321
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
322
+ unrecognizedObjectKeys: "passthrough",
323
+ allowUnrecognizedUnionMembers: true,
324
+ allowUnrecognizedEnumValues: true,
325
+ breadcrumbsPrefix: ["response"],
326
+ }), _response.rawResponse);
327
+ default:
328
+ throw new errors.ElevenLabsError({
329
+ statusCode: _response.error.statusCode,
330
+ body: _response.error.body,
331
+ rawResponse: _response.rawResponse,
332
+ });
333
+ }
334
+ }
335
+ switch (_response.error.reason) {
336
+ case "non-json":
337
+ throw new errors.ElevenLabsError({
338
+ statusCode: _response.error.statusCode,
339
+ body: _response.error.rawBody,
340
+ rawResponse: _response.rawResponse,
341
+ });
342
+ case "timeout":
343
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling DELETE /v1/convai/knowledge-base/{documentation_id}/rag-index/{rag_index_id}.");
344
+ case "unknown":
345
+ throw new errors.ElevenLabsError({
346
+ message: _response.error.errorMessage,
347
+ rawResponse: _response.rawResponse,
348
+ });
349
+ }
350
+ });
351
+ }
352
+ /**
353
+ * Provides total size and other information of RAG indexes used by knowledgebase documents
354
+ *
355
+ * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
356
+ *
357
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
358
+ *
359
+ * @example
360
+ * await client.conversationalAi.ragIndexOverview()
361
+ */
362
+ ragIndexOverview(requestOptions) {
363
+ return core.HttpResponsePromise.fromPromise(this.__ragIndexOverview(requestOptions));
364
+ }
365
+ __ragIndexOverview(requestOptions) {
366
+ return __awaiter(this, void 0, void 0, function* () {
367
+ var _a, _b;
368
+ const _response = yield core.fetcher({
369
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/convai/knowledge-base/rag-index"),
370
+ method: "GET",
371
+ headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
372
+ ? yield core.Supplier.get(this._options.apiKey)
373
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
374
+ contentType: "application/json",
375
+ requestType: "json",
376
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
377
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
378
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
379
+ });
380
+ if (_response.ok) {
381
+ return {
382
+ data: serializers.RagIndexOverviewResponseModel.parseOrThrow(_response.body, {
383
+ unrecognizedObjectKeys: "passthrough",
384
+ allowUnrecognizedUnionMembers: true,
385
+ allowUnrecognizedEnumValues: true,
386
+ breadcrumbsPrefix: ["response"],
387
+ }),
388
+ rawResponse: _response.rawResponse,
389
+ };
390
+ }
391
+ if (_response.error.reason === "status-code") {
392
+ switch (_response.error.statusCode) {
393
+ case 422:
394
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
395
+ unrecognizedObjectKeys: "passthrough",
396
+ allowUnrecognizedUnionMembers: true,
397
+ allowUnrecognizedEnumValues: true,
398
+ breadcrumbsPrefix: ["response"],
399
+ }), _response.rawResponse);
400
+ default:
401
+ throw new errors.ElevenLabsError({
402
+ statusCode: _response.error.statusCode,
403
+ body: _response.error.body,
404
+ rawResponse: _response.rawResponse,
405
+ });
406
+ }
407
+ }
408
+ switch (_response.error.reason) {
409
+ case "non-json":
410
+ throw new errors.ElevenLabsError({
411
+ statusCode: _response.error.statusCode,
412
+ body: _response.error.rawBody,
413
+ rawResponse: _response.rawResponse,
414
+ });
415
+ case "timeout":
416
+ throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/knowledge-base/rag-index.");
417
+ case "unknown":
418
+ throw new errors.ElevenLabsError({
419
+ message: _response.error.errorMessage,
420
+ rawResponse: _response.rawResponse,
421
+ });
422
+ }
423
+ });
424
+ }
198
425
  /**
199
426
  * Update an existing secret for the workspace
200
427
  *
@@ -221,11 +448,11 @@ class ConversationalAi {
221
448
  method: "PATCH",
222
449
  headers: Object.assign({ "xi-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
223
450
  ? yield core.Supplier.get(this._options.apiKey)
224
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.0.1", "User-Agent": "@elevenlabs/elevenlabs-js/v2.0.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
451
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js", "X-Fern-SDK-Version": "v2.2.0", "User-Agent": "@elevenlabs/elevenlabs-js/v2.2.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
225
452
  contentType: "application/json",
226
453
  requestType: "json",
227
454
  body: Object.assign(Object.assign({}, serializers.PatchWorkspaceSecretRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { type: "update" }),
228
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
455
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
229
456
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
230
457
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
231
458
  });