@elevenlabs/elevenlabs-js 2.25.1 → 2.27.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 (1201) hide show
  1. package/.fern/metadata.json +2 -2
  2. package/BaseClient.d.ts +5 -1
  3. package/BaseClient.js +48 -0
  4. package/Client.d.ts +76 -76
  5. package/Client.js +29 -49
  6. package/api/errors/BadRequestError.js +5 -1
  7. package/api/errors/ConflictError.js +5 -1
  8. package/api/errors/ForbiddenError.js +5 -1
  9. package/api/errors/NotFoundError.js +5 -1
  10. package/api/errors/TooEarlyError.js +5 -1
  11. package/api/errors/UnauthorizedError.js +5 -1
  12. package/api/errors/UnprocessableEntityError.js +5 -1
  13. package/api/resources/audioIsolation/client/Client.d.ts +8 -8
  14. package/api/resources/audioIsolation/client/Client.js +9 -35
  15. package/api/resources/audioNative/client/Client.d.ts +12 -12
  16. package/api/resources/audioNative/client/Client.js +13 -53
  17. package/api/resources/conversationalAi/client/Client.d.ts +59 -56
  18. package/api/resources/conversationalAi/client/Client.js +47 -96
  19. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +36 -36
  20. package/api/resources/conversationalAi/resources/agents/client/Client.js +29 -153
  21. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +8 -8
  22. package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +9 -21
  23. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +8 -8
  24. package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +9 -21
  25. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +8 -8
  26. package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +9 -21
  27. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +11 -11
  28. package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +10 -22
  29. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +8 -8
  30. package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +9 -21
  31. package/api/resources/conversationalAi/resources/analytics/client/Client.d.ts +12 -0
  32. package/api/resources/conversationalAi/resources/analytics/client/Client.js +16 -0
  33. package/api/resources/conversationalAi/resources/analytics/client/index.d.ts +1 -0
  34. package/api/resources/conversationalAi/resources/analytics/client/index.js +2 -0
  35. package/api/resources/conversationalAi/resources/analytics/index.d.ts +2 -0
  36. package/api/resources/conversationalAi/resources/analytics/index.js +18 -0
  37. package/api/resources/conversationalAi/resources/analytics/resources/index.d.ts +2 -0
  38. package/api/resources/conversationalAi/resources/analytics/resources/index.js +41 -0
  39. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.d.ts +28 -0
  40. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.js +127 -0
  41. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.d.ts +1 -0
  42. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.js +17 -0
  43. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/LiveCountGetRequest.d.ts +10 -0
  44. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/index.d.ts +1 -0
  45. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/index.js +2 -0
  46. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/index.d.ts +1 -0
  47. package/api/resources/conversationalAi/resources/analytics/resources/liveCount/index.js +17 -0
  48. package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +16 -16
  49. package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +17 -85
  50. package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +25 -22
  51. package/api/resources/conversationalAi/resources/conversations/client/Client.js +32 -88
  52. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +9 -0
  53. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +7 -7
  54. package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +8 -20
  55. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +8 -8
  56. package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +9 -21
  57. package/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +9 -9
  58. package/api/resources/conversationalAi/resources/dashboard/client/Client.js +7 -6
  59. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +10 -10
  60. package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +11 -37
  61. package/api/resources/conversationalAi/resources/index.d.ts +2 -0
  62. package/api/resources/conversationalAi/resources/index.js +3 -1
  63. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +14 -14
  64. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +11 -23
  65. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +8 -8
  66. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +9 -21
  67. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +25 -25
  68. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +24 -134
  69. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +8 -8
  70. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +9 -21
  71. package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +8 -8
  72. package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +9 -21
  73. package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +28 -28
  74. package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +21 -89
  75. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +8 -8
  76. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +9 -21
  77. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +10 -10
  78. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +11 -37
  79. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.d.ts +14 -14
  80. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.js +15 -69
  81. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +8 -8
  82. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +9 -21
  83. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +16 -16
  84. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +17 -85
  85. package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +14 -14
  86. package/api/resources/conversationalAi/resources/secrets/client/Client.js +15 -69
  87. package/api/resources/conversationalAi/resources/settings/client/Client.d.ts +10 -10
  88. package/api/resources/conversationalAi/resources/settings/client/Client.js +11 -37
  89. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +8 -8
  90. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +9 -21
  91. package/api/resources/conversationalAi/resources/tests/client/Client.d.ts +21 -21
  92. package/api/resources/conversationalAi/resources/tests/client/Client.js +20 -102
  93. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +12 -12
  94. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +13 -53
  95. package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +18 -18
  96. package/api/resources/conversationalAi/resources/tools/client/Client.js +19 -101
  97. package/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +25 -8
  98. package/api/resources/conversationalAi/resources/twilio/client/Client.js +67 -20
  99. package/api/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.d.ts +16 -0
  100. package/api/resources/conversationalAi/resources/twilio/client/requests/index.d.ts +1 -0
  101. package/api/resources/conversationalAi/resources/twilio/index.d.ts +1 -0
  102. package/api/resources/conversationalAi/resources/twilio/index.js +1 -0
  103. package/api/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.d.ts +5 -0
  104. package/api/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.js +8 -0
  105. package/api/resources/conversationalAi/resources/twilio/types/index.d.ts +1 -0
  106. package/api/resources/conversationalAi/resources/twilio/types/index.js +17 -0
  107. package/api/resources/dubbing/client/Client.d.ts +23 -23
  108. package/api/resources/dubbing/client/Client.js +18 -72
  109. package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -2
  110. package/api/resources/dubbing/resources/audio/client/Client.d.ts +7 -7
  111. package/api/resources/dubbing/resources/audio/client/Client.js +8 -20
  112. package/api/resources/dubbing/resources/resource/client/Client.d.ts +43 -26
  113. package/api/resources/dubbing/resources/resource/client/Client.js +87 -88
  114. package/api/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.d.ts +11 -0
  115. package/api/resources/dubbing/resources/resource/client/requests/index.d.ts +1 -0
  116. package/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +8 -8
  117. package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +9 -21
  118. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +10 -10
  119. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +11 -37
  120. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +25 -13
  121. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +73 -37
  122. package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +16 -0
  123. package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +8 -0
  124. package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/index.d.ts +1 -0
  125. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +8 -8
  126. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +9 -21
  127. package/api/resources/dubbing/resources/transcript/client/Client.d.ts +8 -8
  128. package/api/resources/dubbing/resources/transcript/client/Client.js +9 -21
  129. package/api/resources/forcedAlignment/client/Client.d.ts +8 -8
  130. package/api/resources/forcedAlignment/client/Client.js +9 -21
  131. package/api/resources/history/client/Client.d.ts +14 -14
  132. package/api/resources/history/client/Client.js +15 -83
  133. package/api/resources/models/client/Client.d.ts +8 -8
  134. package/api/resources/models/client/Client.js +9 -21
  135. package/api/resources/music/client/Client.d.ts +13 -13
  136. package/api/resources/music/client/Client.js +15 -66
  137. package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +2 -0
  138. package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +4 -0
  139. package/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +2 -0
  140. package/api/resources/music/resources/compositionPlan/client/Client.d.ts +8 -8
  141. package/api/resources/music/resources/compositionPlan/client/Client.js +9 -21
  142. package/api/resources/pronunciationDictionaries/client/Client.d.ts +20 -20
  143. package/api/resources/pronunciationDictionaries/client/Client.js +19 -101
  144. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +10 -10
  145. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +11 -37
  146. package/api/resources/samples/client/Client.d.ts +8 -8
  147. package/api/resources/samples/client/Client.js +9 -21
  148. package/api/resources/serviceAccounts/client/Client.d.ts +11 -11
  149. package/api/resources/serviceAccounts/client/Client.js +10 -22
  150. package/api/resources/serviceAccounts/resources/apiKeys/client/Client.d.ts +16 -16
  151. package/api/resources/serviceAccounts/resources/apiKeys/client/Client.js +17 -71
  152. package/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +1 -1
  153. package/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +1 -1
  154. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +1 -1
  155. package/api/resources/serviceAccounts/resources/apiKeys/types/{BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts → BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts} +2 -2
  156. package/{dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js → api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js} +2 -2
  157. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +1 -1
  158. package/api/resources/serviceAccounts/resources/apiKeys/types/{BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts → BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts} +2 -2
  159. package/{dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js → api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js} +2 -2
  160. package/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +2 -2
  161. package/api/resources/serviceAccounts/resources/apiKeys/types/index.js +2 -2
  162. package/api/resources/speechToSpeech/client/Client.d.ts +8 -8
  163. package/api/resources/speechToSpeech/client/Client.js +9 -35
  164. package/api/resources/speechToText/client/Client.d.ts +11 -11
  165. package/api/resources/speechToText/client/Client.js +10 -22
  166. package/api/resources/speechToText/resources/transcripts/client/Client.d.ts +10 -10
  167. package/api/resources/speechToText/resources/transcripts/client/Client.js +11 -37
  168. package/api/resources/studio/client/Client.d.ts +12 -11
  169. package/api/resources/studio/client/Client.js +11 -22
  170. package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +1 -0
  171. package/api/resources/studio/resources/projects/client/Client.d.ts +30 -30
  172. package/api/resources/studio/resources/projects/client/Client.js +28 -105
  173. package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +8 -0
  174. package/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +21 -21
  175. package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +20 -102
  176. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +11 -11
  177. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +12 -52
  178. package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +8 -8
  179. package/api/resources/studio/resources/projects/resources/content/client/Client.js +9 -21
  180. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +8 -8
  181. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +9 -21
  182. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +12 -12
  183. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +13 -67
  184. package/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -0
  185. package/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -0
  186. package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.d.ts +1 -1
  187. package/api/resources/studio/types/{BodyCreatePodcastV1StudioPodcastsPostSourceItem.d.ts → BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.d.ts} +2 -2
  188. package/api/resources/studio/types/index.d.ts +1 -1
  189. package/api/resources/studio/types/index.js +1 -1
  190. package/api/resources/textToDialogue/client/Client.d.ts +11 -11
  191. package/api/resources/textToDialogue/client/Client.js +12 -66
  192. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
  193. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
  194. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
  195. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
  196. package/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +1 -1
  197. package/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +1 -1
  198. package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.d.ts +1 -1
  199. package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.js +1 -1
  200. package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.d.ts +1 -1
  201. package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.js +1 -1
  202. package/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +1 -1
  203. package/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +1 -1
  204. package/api/resources/textToSoundEffects/client/Client.d.ts +7 -7
  205. package/api/resources/textToSoundEffects/client/Client.js +8 -20
  206. package/api/resources/textToSpeech/client/Client.d.ts +11 -11
  207. package/api/resources/textToSpeech/client/Client.js +12 -66
  208. package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
  209. package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +1 -1
  210. package/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
  211. package/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
  212. package/api/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.d.ts +1 -1
  213. package/api/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.js +1 -1
  214. package/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.d.ts +1 -1
  215. package/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.js +1 -1
  216. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.d.ts +1 -1
  217. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.js +1 -1
  218. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.d.ts +1 -1
  219. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.js +1 -1
  220. package/api/resources/textToVoice/client/Client.d.ts +17 -17
  221. package/api/resources/textToVoice/client/Client.js +16 -70
  222. package/api/resources/textToVoice/resources/preview/client/Client.d.ts +7 -7
  223. package/api/resources/textToVoice/resources/preview/client/Client.js +8 -20
  224. package/api/resources/tokens/client/Client.d.ts +9 -9
  225. package/api/resources/tokens/client/Client.js +7 -6
  226. package/api/resources/tokens/resources/singleUse/client/Client.d.ts +8 -8
  227. package/api/resources/tokens/resources/singleUse/client/Client.js +9 -21
  228. package/api/resources/usage/client/Client.d.ts +8 -8
  229. package/api/resources/usage/client/Client.js +9 -21
  230. package/api/resources/user/client/Client.d.ts +11 -11
  231. package/api/resources/user/client/Client.js +10 -22
  232. package/api/resources/user/resources/subscription/client/Client.d.ts +8 -8
  233. package/api/resources/user/resources/subscription/client/Client.js +9 -21
  234. package/api/resources/voices/client/Client.d.ts +34 -34
  235. package/api/resources/voices/client/Client.js +27 -137
  236. package/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +2 -2
  237. package/api/resources/voices/resources/ivc/client/Client.d.ts +8 -8
  238. package/api/resources/voices/resources/ivc/client/Client.js +9 -21
  239. package/api/resources/voices/resources/pvc/client/Client.d.ts +18 -18
  240. package/api/resources/voices/resources/pvc/client/Client.js +15 -55
  241. package/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +21 -21
  242. package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +16 -56
  243. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +8 -8
  244. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +9 -21
  245. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +13 -13
  246. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +12 -38
  247. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +8 -8
  248. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +9 -21
  249. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +8 -8
  250. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +9 -21
  251. package/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +11 -11
  252. package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +10 -22
  253. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +10 -10
  254. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +11 -37
  255. package/api/resources/voices/resources/samples/client/Client.d.ts +9 -9
  256. package/api/resources/voices/resources/samples/client/Client.js +7 -6
  257. package/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +7 -7
  258. package/api/resources/voices/resources/samples/resources/audio/client/Client.js +8 -20
  259. package/api/resources/voices/resources/settings/client/Client.d.ts +12 -12
  260. package/api/resources/voices/resources/settings/client/Client.js +13 -53
  261. package/api/resources/webhooks/client/Client.d.ts +57 -8
  262. package/api/resources/webhooks/client/Client.js +208 -20
  263. package/api/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.d.ts +15 -0
  264. package/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +13 -0
  265. package/api/resources/webhooks/client/requests/index.d.ts +2 -0
  266. package/api/resources/workspace/client/Client.d.ts +18 -18
  267. package/api/resources/workspace/client/Client.js +10 -9
  268. package/api/resources/workspace/resources/groups/client/Client.d.ts +11 -11
  269. package/api/resources/workspace/resources/groups/client/Client.js +10 -22
  270. package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +10 -10
  271. package/api/resources/workspace/resources/groups/resources/members/client/Client.js +11 -37
  272. package/api/resources/workspace/resources/invites/client/Client.d.ts +12 -12
  273. package/api/resources/workspace/resources/invites/client/Client.js +13 -53
  274. package/api/resources/workspace/resources/members/client/Client.d.ts +8 -8
  275. package/api/resources/workspace/resources/members/client/Client.js +9 -21
  276. package/api/resources/workspace/resources/resources/client/Client.d.ts +12 -12
  277. package/api/resources/workspace/resources/resources/client/Client.js +13 -53
  278. package/api/types/AgentDefinitionSource.d.ts +1 -0
  279. package/api/types/AgentDefinitionSource.js +1 -0
  280. package/api/types/AgentWorkflowRequestModel.d.ts +2 -0
  281. package/api/types/AgentWorkflowResponseModel.d.ts +2 -0
  282. package/api/types/BackupLlmDefault.d.ts +3 -1
  283. package/api/types/BackupLlmDisabled.d.ts +3 -1
  284. package/api/types/BackupLlmOverride.d.ts +1 -0
  285. package/api/types/BillingPeriod.d.ts +7 -0
  286. package/api/types/{SubscriptionResponseModelBillingPeriod.js → BillingPeriod.js} +4 -2
  287. package/api/types/CharacterRefreshPeriod.d.ts +7 -0
  288. package/api/types/{SubscriptionResponseModelCharacterRefreshPeriod.js → CharacterRefreshPeriod.js} +4 -2
  289. package/api/types/ClientEvent.d.ts +1 -0
  290. package/api/types/ClientEvent.js +1 -0
  291. package/api/types/ConversationHistoryMetadataCommonModel.d.ts +1 -0
  292. package/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +14 -0
  293. package/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
  294. package/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
  295. package/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
  296. package/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
  297. package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +0 -1
  298. package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +0 -1
  299. package/api/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.d.ts +7 -0
  300. package/api/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.js +3 -0
  301. package/{dist/api/types/ConversationHistoryTranscriptToolCallCommonModel.d.ts → api/types/ConversationHistoryTranscriptToolCallCommonModelInput.d.ts} +2 -2
  302. package/api/types/ConversationHistoryTranscriptToolCallCommonModelInput.js +3 -0
  303. package/api/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.d.ts +16 -0
  304. package/api/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.js +3 -0
  305. package/api/types/ConversationHistoryTranscriptToolCallCommonModelOutput.d.ts +9 -0
  306. package/api/types/ConversationHistoryTranscriptToolCallCommonModelOutput.js +3 -0
  307. package/api/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.d.ts +16 -0
  308. package/api/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.js +3 -0
  309. package/api/types/ConversationHistoryTranscriptToolCallWebhookDetails.d.ts +1 -0
  310. package/api/types/CustomLlm.d.ts +2 -0
  311. package/api/types/CustomLlmapiType.d.ts +5 -0
  312. package/api/types/CustomLlmapiType.js +8 -0
  313. package/api/types/DeleteWorkspaceWebhookResponseModel.d.ts +4 -0
  314. package/api/types/DeleteWorkspaceWebhookResponseModel.js +3 -0
  315. package/api/types/DetailedMusicResponse.d.ts +2 -0
  316. package/{dist/api/types/DiscountResposneModel.d.ts → api/types/DiscountResponseModel.d.ts} +1 -1
  317. package/api/types/DiscountResponseModel.js +3 -0
  318. package/api/types/DubbingResource.d.ts +2 -2
  319. package/api/types/DubbingTranscriptUtterance.d.ts +2 -1
  320. package/api/types/DubbingTranscriptWord.d.ts +2 -2
  321. package/api/types/GetLiveCountResponse.d.ts +4 -0
  322. package/api/types/GetLiveCountResponse.js +3 -0
  323. package/api/types/GetVoicesV2Response.d.ts +4 -0
  324. package/api/types/InvoiceResponse.d.ts +1 -1
  325. package/api/types/MultipartMusicResponse.d.ts +1 -1
  326. package/api/types/MusicPrompt.d.ts +2 -2
  327. package/api/types/PatchWorkspaceWebhookResponseModel.d.ts +4 -0
  328. package/api/types/PatchWorkspaceWebhookResponseModel.js +3 -0
  329. package/api/types/PendingSubscriptionSwitchResponseModel.d.ts +1 -1
  330. package/api/types/PodcastTextSource.d.ts +2 -0
  331. package/api/types/PodcastUrlSource.d.ts +2 -0
  332. package/api/types/ProjectExtendedResponseModelSourceType.d.ts +1 -0
  333. package/api/types/ProjectExtendedResponseModelSourceType.js +1 -0
  334. package/api/types/ProjectResponseModelSourceType.d.ts +1 -0
  335. package/api/types/ProjectResponseModelSourceType.js +1 -0
  336. package/api/types/RagConfig.d.ts +2 -0
  337. package/api/types/RagConfigWorkflowOverride.d.ts +2 -0
  338. package/api/types/SegmentMigrationResponse.d.ts +3 -0
  339. package/api/types/SegmentMigrationResponse.js +3 -0
  340. package/api/types/SongSection.d.ts +2 -2
  341. package/api/types/SpeakerCreatedResponse.d.ts +4 -0
  342. package/api/types/SpeakerCreatedResponse.js +3 -0
  343. package/api/types/Subscription.d.ts +2 -2
  344. package/api/types/SubscriptionResponse.d.ts +2 -2
  345. package/api/types/SystemToolConfigInput.d.ts +2 -0
  346. package/api/types/SystemToolConfigOutput.d.ts +2 -0
  347. package/api/types/TtsConversationalConfigInput.d.ts +0 -2
  348. package/api/types/TtsConversationalConfigOutput.d.ts +0 -2
  349. package/api/types/TtsConversationalConfigWorkflowOverrideInput.d.ts +0 -2
  350. package/api/types/TtsConversationalConfigWorkflowOverrideOutput.d.ts +0 -2
  351. package/api/types/WebhookHmacSettings.d.ts +11 -0
  352. package/api/types/WebhookHmacSettings.js +3 -0
  353. package/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -5
  354. package/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -5
  355. package/api/types/WhatsAppConversationInfo.d.ts +2 -0
  356. package/api/types/WhatsAppConversationInfoDirection.d.ts +6 -0
  357. package/api/types/WhatsAppConversationInfoDirection.js +9 -0
  358. package/api/types/WidgetTextContents.d.ts +14 -0
  359. package/api/types/WordTimestamp.d.ts +5 -0
  360. package/api/types/WordTimestamp.js +3 -0
  361. package/api/types/WorkflowToolNestedToolsStepModelInput.d.ts +1 -1
  362. package/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +1 -1
  363. package/api/types/WorkflowToolNestedToolsStepModelOutput.d.ts +1 -1
  364. package/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +1 -1
  365. package/api/types/WorkspaceCreateWebhookResponseModel.d.ts +4 -0
  366. package/api/types/WorkspaceCreateWebhookResponseModel.js +3 -0
  367. package/api/types/index.d.ts +19 -8
  368. package/api/types/index.js +19 -8
  369. package/core/fetcher/BinaryResponse.d.ts +6 -7
  370. package/core/fetcher/Fetcher.d.ts +5 -1
  371. package/core/fetcher/Fetcher.js +2 -1
  372. package/core/fetcher/getResponseBody.js +18 -4
  373. package/core/fetcher/signals.d.ts +1 -1
  374. package/core/runtime/runtime.js +11 -10
  375. package/core/schemas/builders/object/object.js +14 -1
  376. package/dist/BaseClient.d.ts +5 -1
  377. package/dist/BaseClient.js +48 -0
  378. package/dist/Client.d.ts +76 -76
  379. package/dist/Client.js +29 -49
  380. package/dist/api/errors/BadRequestError.js +5 -1
  381. package/dist/api/errors/ConflictError.js +5 -1
  382. package/dist/api/errors/ForbiddenError.js +5 -1
  383. package/dist/api/errors/NotFoundError.js +5 -1
  384. package/dist/api/errors/TooEarlyError.js +5 -1
  385. package/dist/api/errors/UnauthorizedError.js +5 -1
  386. package/dist/api/errors/UnprocessableEntityError.js +5 -1
  387. package/dist/api/resources/audioIsolation/client/Client.d.ts +8 -8
  388. package/dist/api/resources/audioIsolation/client/Client.js +9 -35
  389. package/dist/api/resources/audioNative/client/Client.d.ts +12 -12
  390. package/dist/api/resources/audioNative/client/Client.js +13 -53
  391. package/dist/api/resources/conversationalAi/client/Client.d.ts +59 -56
  392. package/dist/api/resources/conversationalAi/client/Client.js +47 -96
  393. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +36 -36
  394. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +29 -153
  395. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +8 -8
  396. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +9 -21
  397. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +8 -8
  398. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +9 -21
  399. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +8 -8
  400. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +9 -21
  401. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +11 -11
  402. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +10 -22
  403. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +8 -8
  404. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +9 -21
  405. package/dist/api/resources/conversationalAi/resources/analytics/client/Client.d.ts +12 -0
  406. package/dist/api/resources/conversationalAi/resources/analytics/client/Client.js +16 -0
  407. package/dist/api/resources/conversationalAi/resources/analytics/client/index.d.ts +1 -0
  408. package/dist/api/resources/conversationalAi/resources/analytics/client/index.js +2 -0
  409. package/dist/api/resources/conversationalAi/resources/analytics/index.d.ts +2 -0
  410. package/dist/api/resources/conversationalAi/resources/analytics/index.js +18 -0
  411. package/dist/api/resources/conversationalAi/resources/analytics/resources/index.d.ts +2 -0
  412. package/dist/api/resources/conversationalAi/resources/analytics/resources/index.js +41 -0
  413. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.d.ts +28 -0
  414. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.js +127 -0
  415. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.d.ts +1 -0
  416. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/index.js +17 -0
  417. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/LiveCountGetRequest.d.ts +10 -0
  418. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/LiveCountGetRequest.js +3 -0
  419. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/index.d.ts +1 -0
  420. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/requests/index.js +2 -0
  421. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/index.d.ts +1 -0
  422. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/index.js +17 -0
  423. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +16 -16
  424. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +17 -85
  425. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +25 -22
  426. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +32 -88
  427. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +9 -0
  428. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +7 -7
  429. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +8 -20
  430. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +8 -8
  431. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +9 -21
  432. package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +9 -9
  433. package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.js +7 -6
  434. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +10 -10
  435. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +11 -37
  436. package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -0
  437. package/dist/api/resources/conversationalAi/resources/index.js +3 -1
  438. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +14 -14
  439. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +11 -23
  440. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +8 -8
  441. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +9 -21
  442. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +25 -25
  443. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +24 -134
  444. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +8 -8
  445. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +9 -21
  446. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +8 -8
  447. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +9 -21
  448. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +28 -28
  449. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +21 -89
  450. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +8 -8
  451. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +9 -21
  452. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +10 -10
  453. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +11 -37
  454. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.d.ts +14 -14
  455. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.js +15 -69
  456. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +8 -8
  457. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +9 -21
  458. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +16 -16
  459. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +17 -85
  460. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +14 -14
  461. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +15 -69
  462. package/dist/api/resources/conversationalAi/resources/settings/client/Client.d.ts +10 -10
  463. package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +11 -37
  464. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +8 -8
  465. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +9 -21
  466. package/dist/api/resources/conversationalAi/resources/tests/client/Client.d.ts +21 -21
  467. package/dist/api/resources/conversationalAi/resources/tests/client/Client.js +20 -102
  468. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +12 -12
  469. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +13 -53
  470. package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +18 -18
  471. package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +19 -101
  472. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +25 -8
  473. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +67 -20
  474. package/dist/api/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.d.ts +16 -0
  475. package/dist/api/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.js +3 -0
  476. package/dist/api/resources/conversationalAi/resources/twilio/client/requests/index.d.ts +1 -0
  477. package/dist/api/resources/conversationalAi/resources/twilio/index.d.ts +1 -0
  478. package/dist/api/resources/conversationalAi/resources/twilio/index.js +1 -0
  479. package/dist/api/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.d.ts +5 -0
  480. package/dist/api/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.js +8 -0
  481. package/dist/api/resources/conversationalAi/resources/twilio/types/index.d.ts +1 -0
  482. package/dist/api/resources/conversationalAi/resources/twilio/types/index.js +17 -0
  483. package/dist/api/resources/dubbing/client/Client.d.ts +23 -23
  484. package/dist/api/resources/dubbing/client/Client.js +18 -72
  485. package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -2
  486. package/dist/api/resources/dubbing/resources/audio/client/Client.d.ts +7 -7
  487. package/dist/api/resources/dubbing/resources/audio/client/Client.js +8 -20
  488. package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +43 -26
  489. package/dist/api/resources/dubbing/resources/resource/client/Client.js +87 -88
  490. package/dist/api/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.d.ts +11 -0
  491. package/dist/api/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.js +3 -0
  492. package/dist/api/resources/dubbing/resources/resource/client/requests/index.d.ts +1 -0
  493. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +8 -8
  494. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +9 -21
  495. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +10 -10
  496. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +11 -37
  497. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +25 -13
  498. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +73 -37
  499. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +16 -0
  500. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +3 -0
  501. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +8 -0
  502. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/index.d.ts +1 -0
  503. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +8 -8
  504. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +9 -21
  505. package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +8 -8
  506. package/dist/api/resources/dubbing/resources/transcript/client/Client.js +9 -21
  507. package/dist/api/resources/forcedAlignment/client/Client.d.ts +8 -8
  508. package/dist/api/resources/forcedAlignment/client/Client.js +9 -21
  509. package/dist/api/resources/history/client/Client.d.ts +14 -14
  510. package/dist/api/resources/history/client/Client.js +15 -83
  511. package/dist/api/resources/models/client/Client.d.ts +8 -8
  512. package/dist/api/resources/models/client/Client.js +9 -21
  513. package/dist/api/resources/music/client/Client.d.ts +13 -13
  514. package/dist/api/resources/music/client/Client.js +15 -66
  515. package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +2 -0
  516. package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +4 -0
  517. package/dist/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +2 -0
  518. package/dist/api/resources/music/resources/compositionPlan/client/Client.d.ts +8 -8
  519. package/dist/api/resources/music/resources/compositionPlan/client/Client.js +9 -21
  520. package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +20 -20
  521. package/dist/api/resources/pronunciationDictionaries/client/Client.js +19 -101
  522. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +10 -10
  523. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +11 -37
  524. package/dist/api/resources/samples/client/Client.d.ts +8 -8
  525. package/dist/api/resources/samples/client/Client.js +9 -21
  526. package/dist/api/resources/serviceAccounts/client/Client.d.ts +11 -11
  527. package/dist/api/resources/serviceAccounts/client/Client.js +10 -22
  528. package/dist/api/resources/serviceAccounts/resources/apiKeys/client/Client.d.ts +16 -16
  529. package/dist/api/resources/serviceAccounts/resources/apiKeys/client/Client.js +17 -71
  530. package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +1 -1
  531. package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +1 -1
  532. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +1 -1
  533. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/{BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts → BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts} +2 -2
  534. package/{api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js → dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js} +2 -2
  535. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +1 -1
  536. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/{BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts → BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts} +2 -2
  537. package/{api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js → dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js} +2 -2
  538. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +2 -2
  539. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.js +2 -2
  540. package/dist/api/resources/speechToSpeech/client/Client.d.ts +8 -8
  541. package/dist/api/resources/speechToSpeech/client/Client.js +9 -35
  542. package/dist/api/resources/speechToText/client/Client.d.ts +11 -11
  543. package/dist/api/resources/speechToText/client/Client.js +10 -22
  544. package/dist/api/resources/speechToText/resources/transcripts/client/Client.d.ts +10 -10
  545. package/dist/api/resources/speechToText/resources/transcripts/client/Client.js +11 -37
  546. package/dist/api/resources/studio/client/Client.d.ts +12 -11
  547. package/dist/api/resources/studio/client/Client.js +11 -22
  548. package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +1 -0
  549. package/dist/api/resources/studio/resources/projects/client/Client.d.ts +30 -30
  550. package/dist/api/resources/studio/resources/projects/client/Client.js +28 -105
  551. package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +8 -0
  552. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +21 -21
  553. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +20 -102
  554. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +11 -11
  555. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +12 -52
  556. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +8 -8
  557. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +9 -21
  558. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +8 -8
  559. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +9 -21
  560. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +12 -12
  561. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +13 -67
  562. package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -0
  563. package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -0
  564. package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.d.ts +1 -1
  565. package/dist/api/resources/studio/types/{BodyCreatePodcastV1StudioPodcastsPostSourceItem.d.ts → BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.d.ts} +2 -2
  566. package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.js +3 -0
  567. package/dist/api/resources/studio/types/index.d.ts +1 -1
  568. package/dist/api/resources/studio/types/index.js +1 -1
  569. package/dist/api/resources/textToDialogue/client/Client.d.ts +11 -11
  570. package/dist/api/resources/textToDialogue/client/Client.js +12 -66
  571. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
  572. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
  573. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
  574. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
  575. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +1 -1
  576. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +1 -1
  577. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.d.ts +1 -1
  578. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.js +1 -1
  579. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.d.ts +1 -1
  580. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.js +1 -1
  581. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +1 -1
  582. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +1 -1
  583. package/dist/api/resources/textToSoundEffects/client/Client.d.ts +7 -7
  584. package/dist/api/resources/textToSoundEffects/client/Client.js +8 -20
  585. package/dist/api/resources/textToSpeech/client/Client.d.ts +11 -11
  586. package/dist/api/resources/textToSpeech/client/Client.js +12 -66
  587. package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
  588. package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +1 -1
  589. package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
  590. package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
  591. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.d.ts +1 -1
  592. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.js +1 -1
  593. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.d.ts +1 -1
  594. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.js +1 -1
  595. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.d.ts +1 -1
  596. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.js +1 -1
  597. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.d.ts +1 -1
  598. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.js +1 -1
  599. package/dist/api/resources/textToVoice/client/Client.d.ts +17 -17
  600. package/dist/api/resources/textToVoice/client/Client.js +16 -70
  601. package/dist/api/resources/textToVoice/resources/preview/client/Client.d.ts +7 -7
  602. package/dist/api/resources/textToVoice/resources/preview/client/Client.js +8 -20
  603. package/dist/api/resources/tokens/client/Client.d.ts +9 -9
  604. package/dist/api/resources/tokens/client/Client.js +7 -6
  605. package/dist/api/resources/tokens/resources/singleUse/client/Client.d.ts +8 -8
  606. package/dist/api/resources/tokens/resources/singleUse/client/Client.js +9 -21
  607. package/dist/api/resources/usage/client/Client.d.ts +8 -8
  608. package/dist/api/resources/usage/client/Client.js +9 -21
  609. package/dist/api/resources/user/client/Client.d.ts +11 -11
  610. package/dist/api/resources/user/client/Client.js +10 -22
  611. package/dist/api/resources/user/resources/subscription/client/Client.d.ts +8 -8
  612. package/dist/api/resources/user/resources/subscription/client/Client.js +9 -21
  613. package/dist/api/resources/voices/client/Client.d.ts +34 -34
  614. package/dist/api/resources/voices/client/Client.js +27 -137
  615. package/dist/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +2 -2
  616. package/dist/api/resources/voices/resources/ivc/client/Client.d.ts +8 -8
  617. package/dist/api/resources/voices/resources/ivc/client/Client.js +9 -21
  618. package/dist/api/resources/voices/resources/pvc/client/Client.d.ts +18 -18
  619. package/dist/api/resources/voices/resources/pvc/client/Client.js +15 -55
  620. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +21 -21
  621. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +16 -56
  622. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +8 -8
  623. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +9 -21
  624. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +13 -13
  625. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +12 -38
  626. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +8 -8
  627. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +9 -21
  628. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +8 -8
  629. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +9 -21
  630. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +11 -11
  631. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +10 -22
  632. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +10 -10
  633. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +11 -37
  634. package/dist/api/resources/voices/resources/samples/client/Client.d.ts +9 -9
  635. package/dist/api/resources/voices/resources/samples/client/Client.js +7 -6
  636. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +7 -7
  637. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +8 -20
  638. package/dist/api/resources/voices/resources/settings/client/Client.d.ts +12 -12
  639. package/dist/api/resources/voices/resources/settings/client/Client.js +13 -53
  640. package/dist/api/resources/webhooks/client/Client.d.ts +57 -8
  641. package/dist/api/resources/webhooks/client/Client.js +208 -20
  642. package/dist/api/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.d.ts +15 -0
  643. package/dist/api/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.js +3 -0
  644. package/dist/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +13 -0
  645. package/dist/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +3 -0
  646. package/dist/api/resources/webhooks/client/requests/index.d.ts +2 -0
  647. package/dist/api/resources/workspace/client/Client.d.ts +18 -18
  648. package/dist/api/resources/workspace/client/Client.js +10 -9
  649. package/dist/api/resources/workspace/resources/groups/client/Client.d.ts +11 -11
  650. package/dist/api/resources/workspace/resources/groups/client/Client.js +10 -22
  651. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +10 -10
  652. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +11 -37
  653. package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +12 -12
  654. package/dist/api/resources/workspace/resources/invites/client/Client.js +13 -53
  655. package/dist/api/resources/workspace/resources/members/client/Client.d.ts +8 -8
  656. package/dist/api/resources/workspace/resources/members/client/Client.js +9 -21
  657. package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +12 -12
  658. package/dist/api/resources/workspace/resources/resources/client/Client.js +13 -53
  659. package/dist/api/types/AgentDefinitionSource.d.ts +1 -0
  660. package/dist/api/types/AgentDefinitionSource.js +1 -0
  661. package/dist/api/types/AgentWorkflowRequestModel.d.ts +2 -0
  662. package/dist/api/types/AgentWorkflowResponseModel.d.ts +2 -0
  663. package/dist/api/types/BackupLlmDefault.d.ts +3 -1
  664. package/dist/api/types/BackupLlmDisabled.d.ts +3 -1
  665. package/dist/api/types/BackupLlmOverride.d.ts +1 -0
  666. package/dist/api/types/BillingPeriod.d.ts +7 -0
  667. package/{api/types/ExtendedSubscriptionResponseModelBillingPeriod.js → dist/api/types/BillingPeriod.js} +4 -2
  668. package/dist/api/types/CharacterRefreshPeriod.d.ts +7 -0
  669. package/{api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js → dist/api/types/CharacterRefreshPeriod.js} +4 -2
  670. package/dist/api/types/ClientEvent.d.ts +1 -0
  671. package/dist/api/types/ClientEvent.js +1 -0
  672. package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +1 -0
  673. package/dist/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +14 -0
  674. package/dist/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +3 -0
  675. package/dist/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
  676. package/dist/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
  677. package/dist/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
  678. package/dist/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
  679. package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +0 -1
  680. package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +0 -1
  681. package/dist/api/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.d.ts +7 -0
  682. package/dist/api/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.js +3 -0
  683. package/{api/types/ConversationHistoryTranscriptToolCallCommonModel.d.ts → dist/api/types/ConversationHistoryTranscriptToolCallCommonModelInput.d.ts} +2 -2
  684. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelInput.js +3 -0
  685. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.d.ts +16 -0
  686. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.js +3 -0
  687. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelOutput.d.ts +9 -0
  688. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelOutput.js +3 -0
  689. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.d.ts +16 -0
  690. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.js +3 -0
  691. package/dist/api/types/ConversationHistoryTranscriptToolCallWebhookDetails.d.ts +1 -0
  692. package/dist/api/types/CustomLlm.d.ts +2 -0
  693. package/dist/api/types/CustomLlmapiType.d.ts +5 -0
  694. package/dist/api/types/CustomLlmapiType.js +8 -0
  695. package/dist/api/types/DeleteWorkspaceWebhookResponseModel.d.ts +4 -0
  696. package/dist/api/types/DeleteWorkspaceWebhookResponseModel.js +3 -0
  697. package/dist/api/types/DetailedMusicResponse.d.ts +2 -0
  698. package/{api/types/DiscountResposneModel.d.ts → dist/api/types/DiscountResponseModel.d.ts} +1 -1
  699. package/dist/api/types/DiscountResponseModel.js +3 -0
  700. package/dist/api/types/DubbingResource.d.ts +2 -2
  701. package/dist/api/types/DubbingTranscriptUtterance.d.ts +2 -1
  702. package/dist/api/types/DubbingTranscriptWord.d.ts +2 -2
  703. package/dist/api/types/GetLiveCountResponse.d.ts +4 -0
  704. package/dist/api/types/GetLiveCountResponse.js +3 -0
  705. package/dist/api/types/GetVoicesV2Response.d.ts +4 -0
  706. package/dist/api/types/InvoiceResponse.d.ts +1 -1
  707. package/dist/api/types/MultipartMusicResponse.d.ts +1 -1
  708. package/dist/api/types/MusicPrompt.d.ts +2 -2
  709. package/dist/api/types/PatchWorkspaceWebhookResponseModel.d.ts +4 -0
  710. package/dist/api/types/PatchWorkspaceWebhookResponseModel.js +3 -0
  711. package/dist/api/types/PendingSubscriptionSwitchResponseModel.d.ts +1 -1
  712. package/dist/api/types/PodcastTextSource.d.ts +2 -0
  713. package/dist/api/types/PodcastUrlSource.d.ts +2 -0
  714. package/dist/api/types/ProjectExtendedResponseModelSourceType.d.ts +1 -0
  715. package/dist/api/types/ProjectExtendedResponseModelSourceType.js +1 -0
  716. package/dist/api/types/ProjectResponseModelSourceType.d.ts +1 -0
  717. package/dist/api/types/ProjectResponseModelSourceType.js +1 -0
  718. package/dist/api/types/RagConfig.d.ts +2 -0
  719. package/dist/api/types/RagConfigWorkflowOverride.d.ts +2 -0
  720. package/dist/api/types/SegmentMigrationResponse.d.ts +3 -0
  721. package/dist/api/types/SegmentMigrationResponse.js +3 -0
  722. package/dist/api/types/SongSection.d.ts +2 -2
  723. package/dist/api/types/SpeakerCreatedResponse.d.ts +4 -0
  724. package/dist/api/types/SpeakerCreatedResponse.js +3 -0
  725. package/dist/api/types/Subscription.d.ts +2 -2
  726. package/dist/api/types/SubscriptionResponse.d.ts +2 -2
  727. package/dist/api/types/SystemToolConfigInput.d.ts +2 -0
  728. package/dist/api/types/SystemToolConfigOutput.d.ts +2 -0
  729. package/dist/api/types/TtsConversationalConfigInput.d.ts +0 -2
  730. package/dist/api/types/TtsConversationalConfigOutput.d.ts +0 -2
  731. package/dist/api/types/TtsConversationalConfigWorkflowOverrideInput.d.ts +0 -2
  732. package/dist/api/types/TtsConversationalConfigWorkflowOverrideOutput.d.ts +0 -2
  733. package/dist/api/types/WebhookHmacSettings.d.ts +11 -0
  734. package/dist/api/types/WebhookHmacSettings.js +3 -0
  735. package/dist/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -5
  736. package/dist/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -5
  737. package/dist/api/types/WhatsAppConversationInfo.d.ts +2 -0
  738. package/dist/api/types/WhatsAppConversationInfoDirection.d.ts +6 -0
  739. package/dist/api/types/WhatsAppConversationInfoDirection.js +9 -0
  740. package/dist/api/types/WidgetTextContents.d.ts +14 -0
  741. package/dist/api/types/WordTimestamp.d.ts +5 -0
  742. package/dist/api/types/WordTimestamp.js +3 -0
  743. package/dist/api/types/WorkflowToolNestedToolsStepModelInput.d.ts +1 -1
  744. package/dist/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +1 -1
  745. package/dist/api/types/WorkflowToolNestedToolsStepModelOutput.d.ts +1 -1
  746. package/dist/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +1 -1
  747. package/dist/api/types/WorkspaceCreateWebhookResponseModel.d.ts +4 -0
  748. package/dist/api/types/WorkspaceCreateWebhookResponseModel.js +3 -0
  749. package/dist/api/types/index.d.ts +19 -8
  750. package/dist/api/types/index.js +19 -8
  751. package/dist/core/fetcher/BinaryResponse.d.ts +6 -7
  752. package/dist/core/fetcher/Fetcher.d.ts +5 -1
  753. package/dist/core/fetcher/Fetcher.js +2 -1
  754. package/dist/core/fetcher/getResponseBody.js +18 -4
  755. package/dist/core/fetcher/signals.d.ts +1 -1
  756. package/dist/core/runtime/runtime.js +11 -10
  757. package/dist/core/schemas/builders/object/object.js +14 -1
  758. package/dist/errors/ElevenLabsError.js +5 -1
  759. package/dist/errors/ElevenLabsTimeoutError.js +5 -1
  760. package/dist/errors/handleNonStatusCodeError.d.ts +2 -0
  761. package/dist/errors/handleNonStatusCodeError.js +65 -0
  762. package/dist/serialization/resources/conversationalAi/resources/index.d.ts +1 -0
  763. package/dist/serialization/resources/conversationalAi/resources/index.js +1 -0
  764. package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.d.ts +15 -0
  765. package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.js +47 -0
  766. package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/index.d.ts +1 -0
  767. package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/index.js +3 -1
  768. package/dist/serialization/resources/conversationalAi/resources/twilio/index.d.ts +1 -0
  769. package/dist/serialization/resources/conversationalAi/resources/twilio/index.js +1 -0
  770. package/dist/serialization/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.d.ts +7 -0
  771. package/dist/serialization/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.js +39 -0
  772. package/dist/serialization/resources/conversationalAi/resources/twilio/types/index.d.ts +1 -0
  773. package/dist/serialization/resources/conversationalAi/resources/twilio/types/index.js +17 -0
  774. package/dist/serialization/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.d.ts +10 -0
  775. package/dist/serialization/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.js +42 -0
  776. package/dist/serialization/resources/dubbing/resources/resource/client/requests/index.d.ts +1 -0
  777. package/dist/serialization/resources/dubbing/resources/resource/client/requests/index.js +3 -1
  778. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +13 -0
  779. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +45 -0
  780. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +4 -0
  781. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.js +4 -0
  782. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/index.d.ts +1 -0
  783. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/index.js +3 -1
  784. package/dist/serialization/resources/index.d.ts +2 -0
  785. package/dist/serialization/resources/index.js +3 -1
  786. package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -0
  787. package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +1 -0
  788. package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +2 -0
  789. package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +2 -0
  790. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +2 -2
  791. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js +2 -2
  792. package/{serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts → dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts} +2 -2
  793. package/{serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js → dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js} +2 -2
  794. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +2 -2
  795. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js +2 -2
  796. package/{serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts → dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts} +2 -2
  797. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/{BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js → BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js} +2 -2
  798. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +2 -2
  799. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +2 -2
  800. package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -1
  801. package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -1
  802. package/dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.d.ts +2 -2
  803. package/dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.js +2 -2
  804. package/dist/serialization/resources/studio/types/{BodyCreatePodcastV1StudioPodcastsPostSourceItem.d.ts → BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.d.ts} +3 -3
  805. package/{serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceItem.js → dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.js} +2 -2
  806. package/dist/serialization/resources/studio/types/index.d.ts +1 -1
  807. package/dist/serialization/resources/studio/types/index.js +1 -1
  808. package/dist/serialization/resources/webhooks/client/index.d.ts +1 -0
  809. package/dist/serialization/resources/webhooks/client/index.js +17 -0
  810. package/dist/serialization/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.d.ts +10 -0
  811. package/dist/serialization/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.js +42 -0
  812. package/dist/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +10 -0
  813. package/dist/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +42 -0
  814. package/dist/serialization/resources/webhooks/client/requests/index.d.ts +2 -0
  815. package/dist/serialization/resources/webhooks/client/requests/index.js +7 -0
  816. package/dist/serialization/resources/webhooks/index.d.ts +1 -0
  817. package/dist/serialization/resources/webhooks/index.js +17 -0
  818. package/dist/serialization/types/AgentDefinitionSource.d.ts +1 -1
  819. package/dist/serialization/types/AgentDefinitionSource.js +1 -1
  820. package/dist/serialization/types/AgentWorkflowRequestModel.d.ts +1 -0
  821. package/dist/serialization/types/AgentWorkflowRequestModel.js +1 -0
  822. package/dist/serialization/types/AgentWorkflowResponseModel.d.ts +1 -0
  823. package/dist/serialization/types/AgentWorkflowResponseModel.js +1 -0
  824. package/dist/serialization/types/BackupLlmDefault.d.ts +3 -1
  825. package/dist/serialization/types/BackupLlmDefault.js +3 -1
  826. package/dist/serialization/types/BackupLlmDisabled.d.ts +3 -1
  827. package/dist/serialization/types/BackupLlmDisabled.js +3 -1
  828. package/dist/serialization/types/BackupLlmOverride.d.ts +1 -0
  829. package/dist/serialization/types/BackupLlmOverride.js +1 -0
  830. package/dist/serialization/types/BillingPeriod.d.ts +7 -0
  831. package/dist/serialization/types/{SubscriptionResponseModelBillingPeriod.js → BillingPeriod.js} +2 -2
  832. package/dist/serialization/types/CharacterRefreshPeriod.d.ts +7 -0
  833. package/dist/serialization/types/{ExtendedSubscriptionResponseModelBillingPeriod.js → CharacterRefreshPeriod.js} +2 -2
  834. package/dist/serialization/types/ClientEvent.d.ts +1 -1
  835. package/dist/serialization/types/ClientEvent.js +1 -0
  836. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +1 -0
  837. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +1 -0
  838. package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +20 -0
  839. package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +52 -0
  840. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
  841. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
  842. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +2 -1
  843. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.js +2 -0
  844. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
  845. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
  846. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +2 -1
  847. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +2 -0
  848. package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -1
  849. package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -1
  850. package/dist/serialization/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.d.ts +13 -0
  851. package/dist/serialization/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.js +45 -0
  852. package/dist/serialization/types/{ConversationHistoryTranscriptToolCallCommonModel.d.ts → ConversationHistoryTranscriptToolCallCommonModelInput.d.ts} +4 -4
  853. package/{serialization/types/ConversationHistoryTranscriptToolCallCommonModel.js → dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelInput.js} +4 -4
  854. package/{serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts → dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.d.ts} +7 -3
  855. package/dist/serialization/types/{ConversationHistoryTranscriptToolCallCommonModelToolDetails.js → ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.js} +4 -2
  856. package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutput.d.ts +16 -0
  857. package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutput.js +48 -0
  858. package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.d.ts +23 -0
  859. package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.js +53 -0
  860. package/dist/serialization/types/ConversationHistoryTranscriptToolCallWebhookDetails.d.ts +1 -0
  861. package/dist/serialization/types/ConversationHistoryTranscriptToolCallWebhookDetails.js +1 -0
  862. package/dist/serialization/types/CustomLlm.d.ts +2 -0
  863. package/dist/serialization/types/CustomLlm.js +2 -0
  864. package/dist/serialization/types/CustomLlmapiType.d.ts +7 -0
  865. package/{serialization/types/SubscriptionResponseModelBillingPeriod.js → dist/serialization/types/CustomLlmapiType.js} +2 -2
  866. package/dist/serialization/types/DeleteWorkspaceWebhookResponseModel.d.ts +9 -0
  867. package/{serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.js → dist/serialization/types/DeleteWorkspaceWebhookResponseModel.js} +4 -2
  868. package/dist/serialization/types/DetailedMusicResponse.d.ts +2 -0
  869. package/dist/serialization/types/DetailedMusicResponse.js +2 -0
  870. package/{serialization/types/DiscountResposneModel.d.ts → dist/serialization/types/DiscountResponseModel.d.ts} +2 -2
  871. package/dist/serialization/types/{DiscountResposneModel.js → DiscountResponseModel.js} +2 -2
  872. package/dist/serialization/types/DubbingResource.d.ts +2 -2
  873. package/dist/serialization/types/DubbingResource.js +2 -2
  874. package/dist/serialization/types/DubbingTranscriptUtterance.d.ts +2 -1
  875. package/dist/serialization/types/DubbingTranscriptUtterance.js +2 -1
  876. package/dist/serialization/types/DubbingTranscriptWord.d.ts +2 -2
  877. package/dist/serialization/types/DubbingTranscriptWord.js +2 -2
  878. package/dist/serialization/types/GetLiveCountResponse.d.ts +9 -0
  879. package/dist/serialization/types/GetLiveCountResponse.js +41 -0
  880. package/dist/serialization/types/InvoiceResponse.d.ts +2 -2
  881. package/dist/serialization/types/InvoiceResponse.js +2 -2
  882. package/dist/serialization/types/PatchWorkspaceWebhookResponseModel.d.ts +9 -0
  883. package/dist/serialization/types/PatchWorkspaceWebhookResponseModel.js +41 -0
  884. package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -2
  885. package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.js +2 -2
  886. package/dist/serialization/types/PodcastTextSource.d.ts +1 -0
  887. package/dist/serialization/types/PodcastTextSource.js +1 -0
  888. package/dist/serialization/types/PodcastUrlSource.d.ts +1 -0
  889. package/dist/serialization/types/PodcastUrlSource.js +1 -0
  890. package/dist/serialization/types/ProjectExtendedResponseModelSourceType.d.ts +1 -1
  891. package/dist/serialization/types/ProjectExtendedResponseModelSourceType.js +1 -1
  892. package/dist/serialization/types/ProjectResponseModelSourceType.d.ts +1 -1
  893. package/dist/serialization/types/ProjectResponseModelSourceType.js +1 -1
  894. package/dist/serialization/types/RagConfig.d.ts +1 -0
  895. package/dist/serialization/types/RagConfig.js +1 -0
  896. package/dist/serialization/types/RagConfigWorkflowOverride.d.ts +1 -0
  897. package/dist/serialization/types/RagConfigWorkflowOverride.js +1 -0
  898. package/dist/serialization/types/SegmentMigrationResponse.d.ts +9 -0
  899. package/dist/serialization/types/SegmentMigrationResponse.js +41 -0
  900. package/dist/serialization/types/SpeakerCreatedResponse.d.ts +10 -0
  901. package/dist/serialization/types/{PendingSubscriptionSwitchResponseModelNextBillingPeriod.js → SpeakerCreatedResponse.js} +5 -2
  902. package/dist/serialization/types/Subscription.d.ts +4 -4
  903. package/dist/serialization/types/Subscription.js +4 -4
  904. package/dist/serialization/types/SubscriptionResponse.d.ts +4 -4
  905. package/dist/serialization/types/SubscriptionResponse.js +4 -4
  906. package/dist/serialization/types/SystemToolConfigInput.d.ts +1 -0
  907. package/dist/serialization/types/SystemToolConfigInput.js +1 -0
  908. package/dist/serialization/types/SystemToolConfigOutput.d.ts +1 -0
  909. package/dist/serialization/types/SystemToolConfigOutput.js +1 -0
  910. package/dist/serialization/types/TtsConversationalConfigInput.d.ts +0 -2
  911. package/dist/serialization/types/TtsConversationalConfigInput.js +0 -2
  912. package/dist/serialization/types/TtsConversationalConfigOutput.d.ts +0 -2
  913. package/dist/serialization/types/TtsConversationalConfigOutput.js +0 -2
  914. package/dist/serialization/types/TtsConversationalConfigWorkflowOverrideInput.d.ts +0 -2
  915. package/dist/serialization/types/TtsConversationalConfigWorkflowOverrideInput.js +0 -2
  916. package/dist/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.d.ts +0 -2
  917. package/dist/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.js +0 -2
  918. package/dist/serialization/types/WebhookHmacSettings.d.ts +11 -0
  919. package/dist/serialization/types/WebhookHmacSettings.js +43 -0
  920. package/dist/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +1 -1
  921. package/dist/serialization/types/WebhookToolApiSchemaConfigInput.js +3 -3
  922. package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +1 -1
  923. package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.js +3 -3
  924. package/dist/serialization/types/WhatsAppConversationInfo.d.ts +2 -0
  925. package/dist/serialization/types/WhatsAppConversationInfo.js +2 -0
  926. package/dist/serialization/types/WhatsAppConversationInfoDirection.d.ts +7 -0
  927. package/dist/serialization/types/WhatsAppConversationInfoDirection.js +39 -0
  928. package/dist/serialization/types/WidgetTextContents.d.ts +7 -0
  929. package/dist/serialization/types/WidgetTextContents.js +7 -0
  930. package/dist/serialization/types/WordTimestamp.d.ts +11 -0
  931. package/dist/serialization/types/WordTimestamp.js +43 -0
  932. package/dist/serialization/types/WorkflowToolNestedToolsStepModelInput.d.ts +2 -2
  933. package/dist/serialization/types/WorkflowToolNestedToolsStepModelInput.js +2 -2
  934. package/dist/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +2 -1
  935. package/dist/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +2 -0
  936. package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutput.d.ts +2 -2
  937. package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutput.js +2 -2
  938. package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +2 -1
  939. package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +2 -0
  940. package/dist/serialization/types/WorkspaceCreateWebhookResponseModel.d.ts +10 -0
  941. package/dist/serialization/types/WorkspaceCreateWebhookResponseModel.js +42 -0
  942. package/dist/serialization/types/index.d.ts +19 -8
  943. package/dist/serialization/types/index.js +19 -8
  944. package/dist/version.d.ts +1 -1
  945. package/dist/version.js +1 -1
  946. package/dist/wrapper/ElevenLabsClient.d.ts +1 -1
  947. package/dist/wrapper/music.d.ts +4 -4
  948. package/dist/wrapper/music.js +1 -1
  949. package/dist/wrapper/realtime/connection.d.ts +110 -6
  950. package/dist/wrapper/realtime/connection.js +74 -2
  951. package/dist/wrapper/realtime/index.d.ts +1 -1
  952. package/dist/wrapper/realtime/scribe.d.ts +2 -2
  953. package/dist/wrapper/speechToText.d.ts +1 -1
  954. package/dist/wrapper/speechToText.js +1 -1
  955. package/dist/wrapper/webhooks.d.ts +1 -1
  956. package/dist/wrapper/webhooks.js +1 -1
  957. package/errors/ElevenLabsError.js +5 -1
  958. package/errors/ElevenLabsTimeoutError.js +5 -1
  959. package/errors/handleNonStatusCodeError.d.ts +2 -0
  960. package/errors/handleNonStatusCodeError.js +65 -0
  961. package/package.json +1 -1
  962. package/reference.md +690 -216
  963. package/serialization/resources/conversationalAi/resources/index.d.ts +1 -0
  964. package/serialization/resources/conversationalAi/resources/index.js +1 -0
  965. package/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.d.ts +15 -0
  966. package/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.js +47 -0
  967. package/serialization/resources/conversationalAi/resources/twilio/client/requests/index.d.ts +1 -0
  968. package/serialization/resources/conversationalAi/resources/twilio/client/requests/index.js +3 -1
  969. package/serialization/resources/conversationalAi/resources/twilio/index.d.ts +1 -0
  970. package/serialization/resources/conversationalAi/resources/twilio/index.js +1 -0
  971. package/serialization/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.d.ts +7 -0
  972. package/serialization/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.js +39 -0
  973. package/serialization/resources/conversationalAi/resources/twilio/types/index.d.ts +1 -0
  974. package/serialization/resources/conversationalAi/resources/twilio/types/index.js +17 -0
  975. package/serialization/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.d.ts +10 -0
  976. package/serialization/resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.js +42 -0
  977. package/serialization/resources/dubbing/resources/resource/client/requests/index.d.ts +1 -0
  978. package/serialization/resources/dubbing/resources/resource/client/requests/index.js +3 -1
  979. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +13 -0
  980. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +45 -0
  981. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +4 -0
  982. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.js +4 -0
  983. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/index.d.ts +1 -0
  984. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/index.js +3 -1
  985. package/serialization/resources/index.d.ts +2 -0
  986. package/serialization/resources/index.js +3 -1
  987. package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -0
  988. package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +1 -0
  989. package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +2 -0
  990. package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +2 -0
  991. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +2 -2
  992. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js +2 -2
  993. package/{dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts → serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts} +2 -2
  994. package/{dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js → serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js} +2 -2
  995. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +2 -2
  996. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js +2 -2
  997. package/{dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts → serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts} +2 -2
  998. package/serialization/resources/serviceAccounts/resources/apiKeys/types/{BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js → BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js} +2 -2
  999. package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +2 -2
  1000. package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +2 -2
  1001. package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -1
  1002. package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -1
  1003. package/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.d.ts +2 -2
  1004. package/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.js +2 -2
  1005. package/serialization/resources/studio/types/{BodyCreatePodcastV1StudioPodcastsPostSourceItem.d.ts → BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.d.ts} +3 -3
  1006. package/{dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceItem.js → serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.js} +2 -2
  1007. package/serialization/resources/studio/types/index.d.ts +1 -1
  1008. package/serialization/resources/studio/types/index.js +1 -1
  1009. package/serialization/resources/webhooks/client/index.d.ts +1 -0
  1010. package/serialization/resources/webhooks/client/index.js +17 -0
  1011. package/serialization/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.d.ts +10 -0
  1012. package/serialization/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.js +42 -0
  1013. package/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +10 -0
  1014. package/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +42 -0
  1015. package/serialization/resources/webhooks/client/requests/index.d.ts +2 -0
  1016. package/serialization/resources/webhooks/client/requests/index.js +7 -0
  1017. package/serialization/resources/webhooks/index.d.ts +1 -0
  1018. package/serialization/resources/webhooks/index.js +17 -0
  1019. package/serialization/types/AgentDefinitionSource.d.ts +1 -1
  1020. package/serialization/types/AgentDefinitionSource.js +1 -1
  1021. package/serialization/types/AgentWorkflowRequestModel.d.ts +1 -0
  1022. package/serialization/types/AgentWorkflowRequestModel.js +1 -0
  1023. package/serialization/types/AgentWorkflowResponseModel.d.ts +1 -0
  1024. package/serialization/types/AgentWorkflowResponseModel.js +1 -0
  1025. package/serialization/types/BackupLlmDefault.d.ts +3 -1
  1026. package/serialization/types/BackupLlmDefault.js +3 -1
  1027. package/serialization/types/BackupLlmDisabled.d.ts +3 -1
  1028. package/serialization/types/BackupLlmDisabled.js +3 -1
  1029. package/serialization/types/BackupLlmOverride.d.ts +1 -0
  1030. package/serialization/types/BackupLlmOverride.js +1 -0
  1031. package/serialization/types/BillingPeriod.d.ts +7 -0
  1032. package/serialization/types/BillingPeriod.js +39 -0
  1033. package/serialization/types/CharacterRefreshPeriod.d.ts +7 -0
  1034. package/serialization/types/CharacterRefreshPeriod.js +39 -0
  1035. package/serialization/types/ClientEvent.d.ts +1 -1
  1036. package/serialization/types/ClientEvent.js +1 -0
  1037. package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +1 -0
  1038. package/serialization/types/ConversationHistoryMetadataCommonModel.js +1 -0
  1039. package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +20 -0
  1040. package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +52 -0
  1041. package/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
  1042. package/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
  1043. package/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +2 -1
  1044. package/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.js +2 -0
  1045. package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
  1046. package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
  1047. package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +2 -1
  1048. package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +2 -0
  1049. package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -1
  1050. package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -1
  1051. package/serialization/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.d.ts +13 -0
  1052. package/serialization/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.js +45 -0
  1053. package/serialization/types/{ConversationHistoryTranscriptToolCallCommonModel.d.ts → ConversationHistoryTranscriptToolCallCommonModelInput.d.ts} +4 -4
  1054. package/{dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModel.js → serialization/types/ConversationHistoryTranscriptToolCallCommonModelInput.js} +4 -4
  1055. package/{dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts → serialization/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.d.ts} +7 -3
  1056. package/serialization/types/{ConversationHistoryTranscriptToolCallCommonModelToolDetails.js → ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.js} +4 -2
  1057. package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutput.d.ts +16 -0
  1058. package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutput.js +48 -0
  1059. package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.d.ts +23 -0
  1060. package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.js +53 -0
  1061. package/serialization/types/ConversationHistoryTranscriptToolCallWebhookDetails.d.ts +1 -0
  1062. package/serialization/types/ConversationHistoryTranscriptToolCallWebhookDetails.js +1 -0
  1063. package/serialization/types/CustomLlm.d.ts +2 -0
  1064. package/serialization/types/CustomLlm.js +2 -0
  1065. package/serialization/types/CustomLlmapiType.d.ts +7 -0
  1066. package/serialization/types/CustomLlmapiType.js +39 -0
  1067. package/serialization/types/DeleteWorkspaceWebhookResponseModel.d.ts +9 -0
  1068. package/serialization/types/DeleteWorkspaceWebhookResponseModel.js +41 -0
  1069. package/serialization/types/DetailedMusicResponse.d.ts +2 -0
  1070. package/serialization/types/DetailedMusicResponse.js +2 -0
  1071. package/{dist/serialization/types/DiscountResposneModel.d.ts → serialization/types/DiscountResponseModel.d.ts} +2 -2
  1072. package/serialization/types/{DiscountResposneModel.js → DiscountResponseModel.js} +2 -2
  1073. package/serialization/types/DubbingResource.d.ts +2 -2
  1074. package/serialization/types/DubbingResource.js +2 -2
  1075. package/serialization/types/DubbingTranscriptUtterance.d.ts +2 -1
  1076. package/serialization/types/DubbingTranscriptUtterance.js +2 -1
  1077. package/serialization/types/DubbingTranscriptWord.d.ts +2 -2
  1078. package/serialization/types/DubbingTranscriptWord.js +2 -2
  1079. package/serialization/types/GetLiveCountResponse.d.ts +9 -0
  1080. package/serialization/types/GetLiveCountResponse.js +41 -0
  1081. package/serialization/types/InvoiceResponse.d.ts +2 -2
  1082. package/serialization/types/InvoiceResponse.js +2 -2
  1083. package/serialization/types/PatchWorkspaceWebhookResponseModel.d.ts +9 -0
  1084. package/serialization/types/PatchWorkspaceWebhookResponseModel.js +41 -0
  1085. package/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -2
  1086. package/serialization/types/PendingSubscriptionSwitchResponseModel.js +2 -2
  1087. package/serialization/types/PodcastTextSource.d.ts +1 -0
  1088. package/serialization/types/PodcastTextSource.js +1 -0
  1089. package/serialization/types/PodcastUrlSource.d.ts +1 -0
  1090. package/serialization/types/PodcastUrlSource.js +1 -0
  1091. package/serialization/types/ProjectExtendedResponseModelSourceType.d.ts +1 -1
  1092. package/serialization/types/ProjectExtendedResponseModelSourceType.js +1 -1
  1093. package/serialization/types/ProjectResponseModelSourceType.d.ts +1 -1
  1094. package/serialization/types/ProjectResponseModelSourceType.js +1 -1
  1095. package/serialization/types/RagConfig.d.ts +1 -0
  1096. package/serialization/types/RagConfig.js +1 -0
  1097. package/serialization/types/RagConfigWorkflowOverride.d.ts +1 -0
  1098. package/serialization/types/RagConfigWorkflowOverride.js +1 -0
  1099. package/serialization/types/SegmentMigrationResponse.d.ts +9 -0
  1100. package/serialization/types/SegmentMigrationResponse.js +41 -0
  1101. package/serialization/types/SpeakerCreatedResponse.d.ts +10 -0
  1102. package/{dist/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js → serialization/types/SpeakerCreatedResponse.js} +5 -2
  1103. package/serialization/types/Subscription.d.ts +4 -4
  1104. package/serialization/types/Subscription.js +4 -4
  1105. package/serialization/types/SubscriptionResponse.d.ts +4 -4
  1106. package/serialization/types/SubscriptionResponse.js +4 -4
  1107. package/serialization/types/SystemToolConfigInput.d.ts +1 -0
  1108. package/serialization/types/SystemToolConfigInput.js +1 -0
  1109. package/serialization/types/SystemToolConfigOutput.d.ts +1 -0
  1110. package/serialization/types/SystemToolConfigOutput.js +1 -0
  1111. package/serialization/types/TtsConversationalConfigInput.d.ts +0 -2
  1112. package/serialization/types/TtsConversationalConfigInput.js +0 -2
  1113. package/serialization/types/TtsConversationalConfigOutput.d.ts +0 -2
  1114. package/serialization/types/TtsConversationalConfigOutput.js +0 -2
  1115. package/serialization/types/TtsConversationalConfigWorkflowOverrideInput.d.ts +0 -2
  1116. package/serialization/types/TtsConversationalConfigWorkflowOverrideInput.js +0 -2
  1117. package/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.d.ts +0 -2
  1118. package/serialization/types/TtsConversationalConfigWorkflowOverrideOutput.js +0 -2
  1119. package/serialization/types/WebhookHmacSettings.d.ts +11 -0
  1120. package/serialization/types/WebhookHmacSettings.js +43 -0
  1121. package/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +1 -1
  1122. package/serialization/types/WebhookToolApiSchemaConfigInput.js +3 -3
  1123. package/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +1 -1
  1124. package/serialization/types/WebhookToolApiSchemaConfigOutput.js +3 -3
  1125. package/serialization/types/WhatsAppConversationInfo.d.ts +2 -0
  1126. package/serialization/types/WhatsAppConversationInfo.js +2 -0
  1127. package/serialization/types/WhatsAppConversationInfoDirection.d.ts +7 -0
  1128. package/serialization/types/WhatsAppConversationInfoDirection.js +39 -0
  1129. package/serialization/types/WidgetTextContents.d.ts +7 -0
  1130. package/serialization/types/WidgetTextContents.js +7 -0
  1131. package/serialization/types/WordTimestamp.d.ts +11 -0
  1132. package/serialization/types/WordTimestamp.js +43 -0
  1133. package/serialization/types/WorkflowToolNestedToolsStepModelInput.d.ts +2 -2
  1134. package/serialization/types/WorkflowToolNestedToolsStepModelInput.js +2 -2
  1135. package/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +2 -1
  1136. package/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +2 -0
  1137. package/serialization/types/WorkflowToolNestedToolsStepModelOutput.d.ts +2 -2
  1138. package/serialization/types/WorkflowToolNestedToolsStepModelOutput.js +2 -2
  1139. package/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +2 -1
  1140. package/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +2 -0
  1141. package/serialization/types/WorkspaceCreateWebhookResponseModel.d.ts +10 -0
  1142. package/serialization/types/WorkspaceCreateWebhookResponseModel.js +42 -0
  1143. package/serialization/types/index.d.ts +19 -8
  1144. package/serialization/types/index.js +19 -8
  1145. package/version.d.ts +1 -1
  1146. package/version.js +1 -1
  1147. package/wrapper/ElevenLabsClient.d.ts +1 -1
  1148. package/wrapper/music.d.ts +4 -4
  1149. package/wrapper/music.js +1 -1
  1150. package/wrapper/realtime/connection.d.ts +110 -6
  1151. package/wrapper/realtime/connection.js +74 -2
  1152. package/wrapper/realtime/index.d.ts +1 -1
  1153. package/wrapper/realtime/scribe.d.ts +2 -2
  1154. package/wrapper/speechToText.d.ts +1 -1
  1155. package/wrapper/speechToText.js +1 -1
  1156. package/wrapper/webhooks.d.ts +1 -1
  1157. package/wrapper/webhooks.js +1 -1
  1158. package/api/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +0 -13
  1159. package/api/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +0 -5
  1160. package/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -5
  1161. package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +0 -6
  1162. package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +0 -9
  1163. package/api/types/SubscriptionResponseModelBillingPeriod.d.ts +0 -5
  1164. package/api/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -5
  1165. package/core/fetcher/ResponseWithBody.d.ts +0 -4
  1166. package/core/fetcher/ResponseWithBody.js +0 -6
  1167. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +0 -13
  1168. package/dist/api/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +0 -5
  1169. package/dist/api/types/ExtendedSubscriptionResponseModelBillingPeriod.js +0 -8
  1170. package/dist/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -5
  1171. package/dist/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +0 -8
  1172. package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +0 -6
  1173. package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +0 -9
  1174. package/dist/api/types/SubscriptionResponseModelBillingPeriod.d.ts +0 -5
  1175. package/dist/api/types/SubscriptionResponseModelBillingPeriod.js +0 -8
  1176. package/dist/api/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -5
  1177. package/dist/api/types/SubscriptionResponseModelCharacterRefreshPeriod.js +0 -8
  1178. package/dist/core/fetcher/ResponseWithBody.d.ts +0 -4
  1179. package/dist/core/fetcher/ResponseWithBody.js +0 -6
  1180. package/dist/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +0 -7
  1181. package/dist/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
  1182. package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +0 -7
  1183. package/dist/serialization/types/SubscriptionResponseModelBillingPeriod.d.ts +0 -7
  1184. package/dist/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
  1185. package/dist/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.js +0 -39
  1186. package/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +0 -7
  1187. package/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
  1188. package/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +0 -39
  1189. package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +0 -7
  1190. package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +0 -39
  1191. package/serialization/types/SubscriptionResponseModelBillingPeriod.d.ts +0 -7
  1192. package/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
  1193. package/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.js +0 -39
  1194. /package/api/resources/{studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceItem.js → conversationalAi/resources/analytics/resources/liveCount/client/requests/LiveCountGetRequest.js} +0 -0
  1195. /package/api/{types/ConversationHistoryTranscriptToolCallCommonModel.js → resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.js} +0 -0
  1196. /package/api/{types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.js → resources/dubbing/resources/resource/client/requests/BodyMoveSegmentsBetweenSpeakersV1DubbingResourceDubbingIdMigrateSegmentsPost.js} +0 -0
  1197. /package/api/{types/DiscountResposneModel.js → resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js} +0 -0
  1198. /package/{dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceItem.js → api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.js} +0 -0
  1199. /package/{dist/api/types/ConversationHistoryTranscriptToolCallCommonModel.js → api/resources/webhooks/client/requests/BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost.js} +0 -0
  1200. /package/{dist/api/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.js → api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js} +0 -0
  1201. /package/{dist/api/types/DiscountResposneModel.js → api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js} +0 -0
@@ -1,20 +1,20 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
2
+ import { type NormalizedClientOptions } from "../../../../BaseClient";
2
3
  import * as core from "../../../../core";
3
4
  import * as ElevenLabs from "../../../index";
4
- export declare namespace AudioNative {
5
- interface Options extends BaseClientOptions {
6
- }
5
+ export declare namespace AudioNativeClient {
6
+ type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
8
8
  }
9
9
  }
10
- export declare class AudioNative {
11
- protected readonly _options: AudioNative.Options;
12
- constructor(_options?: AudioNative.Options);
10
+ export declare class AudioNativeClient {
11
+ protected readonly _options: NormalizedClientOptions<AudioNativeClient.Options>;
12
+ constructor(options?: AudioNativeClient.Options);
13
13
  /**
14
14
  * Creates Audio Native enabled project, optionally starts conversion and returns project ID and embeddable HTML snippet.
15
15
  *
16
16
  * @param {ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost} request
17
- * @param {AudioNative.RequestOptions} requestOptions - Request-specific configuration.
17
+ * @param {AudioNativeClient.RequestOptions} requestOptions - Request-specific configuration.
18
18
  *
19
19
  * @throws {@link ElevenLabs.UnprocessableEntityError}
20
20
  *
@@ -24,27 +24,27 @@ export declare class AudioNative {
24
24
  * name: "name"
25
25
  * })
26
26
  */
27
- create(request: ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost, requestOptions?: AudioNative.RequestOptions): core.HttpResponsePromise<ElevenLabs.AudioNativeCreateProjectResponseModel>;
27
+ create(request: ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost, requestOptions?: AudioNativeClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AudioNativeCreateProjectResponseModel>;
28
28
  private __create;
29
29
  /**
30
30
  * Get player settings for the specific project.
31
31
  *
32
32
  * @param {string} project_id - The ID of the Studio project.
33
- * @param {AudioNative.RequestOptions} requestOptions - Request-specific configuration.
33
+ * @param {AudioNativeClient.RequestOptions} requestOptions - Request-specific configuration.
34
34
  *
35
35
  * @throws {@link ElevenLabs.UnprocessableEntityError}
36
36
  *
37
37
  * @example
38
38
  * await client.audioNative.getSettings("21m00Tcm4TlvDq8ikWAM")
39
39
  */
40
- getSettings(project_id: string, requestOptions?: AudioNative.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetAudioNativeProjectSettingsResponseModel>;
40
+ getSettings(project_id: string, requestOptions?: AudioNativeClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetAudioNativeProjectSettingsResponseModel>;
41
41
  private __getSettings;
42
42
  /**
43
43
  * Updates content for the specific AudioNative Project.
44
44
  *
45
45
  * @param {string} project_id
46
46
  * @param {ElevenLabs.BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost} request
47
- * @param {AudioNative.RequestOptions} requestOptions - Request-specific configuration.
47
+ * @param {AudioNativeClient.RequestOptions} requestOptions - Request-specific configuration.
48
48
  *
49
49
  * @throws {@link ElevenLabs.UnprocessableEntityError}
50
50
  *
@@ -52,6 +52,6 @@ export declare class AudioNative {
52
52
  * import { createReadStream } from "fs";
53
53
  * await client.audioNative.update("21m00Tcm4TlvDq8ikWAM", {})
54
54
  */
55
- update(project_id: string, request: ElevenLabs.BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost, requestOptions?: AudioNative.RequestOptions): core.HttpResponsePromise<ElevenLabs.AudioNativeEditContentResponseModel>;
55
+ update(project_id: string, request: ElevenLabs.BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost, requestOptions?: AudioNativeClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AudioNativeEditContentResponseModel>;
56
56
  private __update;
57
57
  }
@@ -43,22 +43,24 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
43
  });
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.AudioNative = void 0;
46
+ exports.AudioNativeClient = void 0;
47
+ const BaseClient_1 = require("../../../../BaseClient");
47
48
  const core = __importStar(require("../../../../core"));
48
49
  const headers_1 = require("../../../../core/headers");
49
50
  const environments = __importStar(require("../../../../environments"));
51
+ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
50
52
  const errors = __importStar(require("../../../../errors/index"));
51
53
  const serializers = __importStar(require("../../../../serialization/index"));
52
54
  const ElevenLabs = __importStar(require("../../../index"));
53
- class AudioNative {
54
- constructor(_options = {}) {
55
- this._options = _options;
55
+ class AudioNativeClient {
56
+ constructor(options = {}) {
57
+ this._options = (0, BaseClient_1.normalizeClientOptions)(options);
56
58
  }
57
59
  /**
58
60
  * Creates Audio Native enabled project, optionally starts conversion and returns project ID and embeddable HTML snippet.
59
61
  *
60
62
  * @param {ElevenLabs.BodyCreatesAudioNativeEnabledProjectV1AudioNativePost} request
61
- * @param {AudioNative.RequestOptions} requestOptions - Request-specific configuration.
63
+ * @param {AudioNativeClient.RequestOptions} requestOptions - Request-specific configuration.
62
64
  *
63
65
  * @throws {@link ElevenLabs.UnprocessableEntityError}
64
66
  *
@@ -163,28 +165,14 @@ class AudioNative {
163
165
  });
164
166
  }
165
167
  }
166
- switch (_response.error.reason) {
167
- case "non-json":
168
- throw new errors.ElevenLabsError({
169
- statusCode: _response.error.statusCode,
170
- body: _response.error.rawBody,
171
- rawResponse: _response.rawResponse,
172
- });
173
- case "timeout":
174
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/audio-native.");
175
- case "unknown":
176
- throw new errors.ElevenLabsError({
177
- message: _response.error.errorMessage,
178
- rawResponse: _response.rawResponse,
179
- });
180
- }
168
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/audio-native");
181
169
  });
182
170
  }
183
171
  /**
184
172
  * Get player settings for the specific project.
185
173
  *
186
174
  * @param {string} project_id - The ID of the Studio project.
187
- * @param {AudioNative.RequestOptions} requestOptions - Request-specific configuration.
175
+ * @param {AudioNativeClient.RequestOptions} requestOptions - Request-specific configuration.
188
176
  *
189
177
  * @throws {@link ElevenLabs.UnprocessableEntityError}
190
178
  *
@@ -237,21 +225,7 @@ class AudioNative {
237
225
  });
238
226
  }
239
227
  }
240
- switch (_response.error.reason) {
241
- case "non-json":
242
- throw new errors.ElevenLabsError({
243
- statusCode: _response.error.statusCode,
244
- body: _response.error.rawBody,
245
- rawResponse: _response.rawResponse,
246
- });
247
- case "timeout":
248
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/audio-native/{project_id}/settings.");
249
- case "unknown":
250
- throw new errors.ElevenLabsError({
251
- message: _response.error.errorMessage,
252
- rawResponse: _response.rawResponse,
253
- });
254
- }
228
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/audio-native/{project_id}/settings");
255
229
  });
256
230
  }
257
231
  /**
@@ -259,7 +233,7 @@ class AudioNative {
259
233
  *
260
234
  * @param {string} project_id
261
235
  * @param {ElevenLabs.BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost} request
262
- * @param {AudioNative.RequestOptions} requestOptions - Request-specific configuration.
236
+ * @param {AudioNativeClient.RequestOptions} requestOptions - Request-specific configuration.
263
237
  *
264
238
  * @throws {@link ElevenLabs.UnprocessableEntityError}
265
239
  *
@@ -327,22 +301,8 @@ class AudioNative {
327
301
  });
328
302
  }
329
303
  }
330
- switch (_response.error.reason) {
331
- case "non-json":
332
- throw new errors.ElevenLabsError({
333
- statusCode: _response.error.statusCode,
334
- body: _response.error.rawBody,
335
- rawResponse: _response.rawResponse,
336
- });
337
- case "timeout":
338
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/audio-native/{project_id}/content.");
339
- case "unknown":
340
- throw new errors.ElevenLabsError({
341
- message: _response.error.errorMessage,
342
- rawResponse: _response.rawResponse,
343
- });
344
- }
304
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/audio-native/{project_id}/content");
345
305
  });
346
306
  }
347
307
  }
348
- exports.AudioNative = AudioNative;
308
+ exports.AudioNativeClient = AudioNativeClient;
@@ -1,62 +1,65 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
2
+ import { type NormalizedClientOptions } from "../../../../BaseClient";
2
3
  import * as core from "../../../../core";
3
4
  import * as ElevenLabs from "../../../index";
4
- import { Agents } from "../resources/agents/client/Client";
5
- import { BatchCalls } from "../resources/batchCalls/client/Client";
6
- import { Conversations } from "../resources/conversations/client/Client";
7
- import { Dashboard } from "../resources/dashboard/client/Client";
8
- import { KnowledgeBase } from "../resources/knowledgeBase/client/Client";
9
- import { LlmUsage } from "../resources/llmUsage/client/Client";
10
- import { McpServers } from "../resources/mcpServers/client/Client";
11
- import { PhoneNumbers } from "../resources/phoneNumbers/client/Client";
12
- import { Secrets } from "../resources/secrets/client/Client";
13
- import { Settings } from "../resources/settings/client/Client";
14
- import { SipTrunk } from "../resources/sipTrunk/client/Client";
15
- import { Tests } from "../resources/tests/client/Client";
16
- import { Tools } from "../resources/tools/client/Client";
17
- import { Twilio } from "../resources/twilio/client/Client";
18
- export declare namespace ConversationalAi {
19
- interface Options extends BaseClientOptions {
20
- }
5
+ import { AgentsClient } from "../resources/agents/client/Client";
6
+ import { AnalyticsClient } from "../resources/analytics/client/Client";
7
+ import { BatchCallsClient } from "../resources/batchCalls/client/Client";
8
+ import { ConversationsClient } from "../resources/conversations/client/Client";
9
+ import { DashboardClient } from "../resources/dashboard/client/Client";
10
+ import { KnowledgeBaseClient } from "../resources/knowledgeBase/client/Client";
11
+ import { LlmUsageClient } from "../resources/llmUsage/client/Client";
12
+ import { McpServersClient } from "../resources/mcpServers/client/Client";
13
+ import { PhoneNumbersClient } from "../resources/phoneNumbers/client/Client";
14
+ import { SecretsClient } from "../resources/secrets/client/Client";
15
+ import { SettingsClient } from "../resources/settings/client/Client";
16
+ import { SipTrunkClient } from "../resources/sipTrunk/client/Client";
17
+ import { TestsClient } from "../resources/tests/client/Client";
18
+ import { ToolsClient } from "../resources/tools/client/Client";
19
+ import { TwilioClient } from "../resources/twilio/client/Client";
20
+ export declare namespace ConversationalAiClient {
21
+ type Options = BaseClientOptions;
21
22
  interface RequestOptions extends BaseRequestOptions {
22
23
  }
23
24
  }
24
- export declare class ConversationalAi {
25
- protected readonly _options: ConversationalAi.Options;
26
- protected _conversations: Conversations | undefined;
27
- protected _twilio: Twilio | undefined;
28
- protected _agents: Agents | undefined;
29
- protected _tests: Tests | undefined;
30
- protected _phoneNumbers: PhoneNumbers | undefined;
31
- protected _llmUsage: LlmUsage | undefined;
32
- protected _knowledgeBase: KnowledgeBase | undefined;
33
- protected _tools: Tools | undefined;
34
- protected _settings: Settings | undefined;
35
- protected _secrets: Secrets | undefined;
36
- protected _batchCalls: BatchCalls | undefined;
37
- protected _sipTrunk: SipTrunk | undefined;
38
- protected _mcpServers: McpServers | undefined;
39
- protected _dashboard: Dashboard | undefined;
40
- constructor(_options?: ConversationalAi.Options);
41
- get conversations(): Conversations;
42
- get twilio(): Twilio;
43
- get agents(): Agents;
44
- get tests(): Tests;
45
- get phoneNumbers(): PhoneNumbers;
46
- get llmUsage(): LlmUsage;
47
- get knowledgeBase(): KnowledgeBase;
48
- get tools(): Tools;
49
- get settings(): Settings;
50
- get secrets(): Secrets;
51
- get batchCalls(): BatchCalls;
52
- get sipTrunk(): SipTrunk;
53
- get mcpServers(): McpServers;
54
- get dashboard(): Dashboard;
25
+ export declare class ConversationalAiClient {
26
+ protected readonly _options: NormalizedClientOptions<ConversationalAiClient.Options>;
27
+ protected _conversations: ConversationsClient | undefined;
28
+ protected _twilio: TwilioClient | undefined;
29
+ protected _agents: AgentsClient | undefined;
30
+ protected _tests: TestsClient | undefined;
31
+ protected _phoneNumbers: PhoneNumbersClient | undefined;
32
+ protected _llmUsage: LlmUsageClient | undefined;
33
+ protected _knowledgeBase: KnowledgeBaseClient | undefined;
34
+ protected _tools: ToolsClient | undefined;
35
+ protected _settings: SettingsClient | undefined;
36
+ protected _secrets: SecretsClient | undefined;
37
+ protected _batchCalls: BatchCallsClient | undefined;
38
+ protected _sipTrunk: SipTrunkClient | undefined;
39
+ protected _mcpServers: McpServersClient | undefined;
40
+ protected _analytics: AnalyticsClient | undefined;
41
+ protected _dashboard: DashboardClient | undefined;
42
+ constructor(options?: ConversationalAiClient.Options);
43
+ get conversations(): ConversationsClient;
44
+ get twilio(): TwilioClient;
45
+ get agents(): AgentsClient;
46
+ get tests(): TestsClient;
47
+ get phoneNumbers(): PhoneNumbersClient;
48
+ get llmUsage(): LlmUsageClient;
49
+ get knowledgeBase(): KnowledgeBaseClient;
50
+ get tools(): ToolsClient;
51
+ get settings(): SettingsClient;
52
+ get secrets(): SecretsClient;
53
+ get batchCalls(): BatchCallsClient;
54
+ get sipTrunk(): SipTrunkClient;
55
+ get mcpServers(): McpServersClient;
56
+ get analytics(): AnalyticsClient;
57
+ get dashboard(): DashboardClient;
55
58
  /**
56
59
  * 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/api-reference/agents/update). </Note>
57
60
  *
58
61
  * @param {ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost} request
59
- * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
62
+ * @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
60
63
  *
61
64
  * @throws {@link ElevenLabs.UnprocessableEntityError}
62
65
  *
@@ -66,45 +69,45 @@ export declare class ConversationalAi {
66
69
  * agentId: "agent_id"
67
70
  * })
68
71
  */
69
- addToKnowledgeBase(request: ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost, requestOptions?: ConversationalAi.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddKnowledgeBaseResponseModel>;
72
+ addToKnowledgeBase(request: ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost, requestOptions?: ConversationalAiClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddKnowledgeBaseResponseModel>;
70
73
  private __addToKnowledgeBase;
71
74
  /**
72
75
  * Provides information about all RAG indexes of the specified knowledgebase document.
73
76
  *
74
77
  * @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
75
- * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
78
+ * @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
76
79
  *
77
80
  * @throws {@link ElevenLabs.UnprocessableEntityError}
78
81
  *
79
82
  * @example
80
83
  * await client.conversationalAi.getDocumentRagIndexes("21m00Tcm4TlvDq8ikWAM")
81
84
  */
82
- getDocumentRagIndexes(documentation_id: string, requestOptions?: ConversationalAi.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagDocumentIndexesResponseModel>;
85
+ getDocumentRagIndexes(documentation_id: string, requestOptions?: ConversationalAiClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagDocumentIndexesResponseModel>;
83
86
  private __getDocumentRagIndexes;
84
87
  /**
85
88
  * Delete RAG index for the knowledgebase document.
86
89
  *
87
90
  * @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
88
91
  * @param {string} rag_index_id - The id of RAG index of document from the knowledge base.
89
- * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
92
+ * @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
90
93
  *
91
94
  * @throws {@link ElevenLabs.UnprocessableEntityError}
92
95
  *
93
96
  * @example
94
97
  * await client.conversationalAi.deleteDocumentRagIndex("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM")
95
98
  */
96
- deleteDocumentRagIndex(documentation_id: string, rag_index_id: string, requestOptions?: ConversationalAi.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagDocumentIndexResponseModel>;
99
+ deleteDocumentRagIndex(documentation_id: string, rag_index_id: string, requestOptions?: ConversationalAiClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagDocumentIndexResponseModel>;
97
100
  private __deleteDocumentRagIndex;
98
101
  /**
99
102
  * Provides total size and other information of RAG indexes used by knowledgebase documents
100
103
  *
101
- * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
104
+ * @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
102
105
  *
103
106
  * @throws {@link ElevenLabs.UnprocessableEntityError}
104
107
  *
105
108
  * @example
106
109
  * await client.conversationalAi.ragIndexOverview()
107
110
  */
108
- ragIndexOverview(requestOptions?: ConversationalAi.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagIndexOverviewResponseModel>;
111
+ ragIndexOverview(requestOptions?: ConversationalAiClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagIndexOverviewResponseModel>;
109
112
  private __ragIndexOverview;
110
113
  }
@@ -43,92 +43,99 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
43
  });
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.ConversationalAi = void 0;
46
+ exports.ConversationalAiClient = void 0;
47
+ const BaseClient_1 = require("../../../../BaseClient");
47
48
  const core = __importStar(require("../../../../core"));
48
49
  const headers_1 = require("../../../../core/headers");
49
50
  const environments = __importStar(require("../../../../environments"));
51
+ const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
50
52
  const errors = __importStar(require("../../../../errors/index"));
51
53
  const serializers = __importStar(require("../../../../serialization/index"));
52
54
  const ElevenLabs = __importStar(require("../../../index"));
53
55
  const Client_1 = require("../resources/agents/client/Client");
54
- const Client_2 = require("../resources/batchCalls/client/Client");
55
- const Client_3 = require("../resources/conversations/client/Client");
56
- const Client_4 = require("../resources/dashboard/client/Client");
57
- const Client_5 = require("../resources/knowledgeBase/client/Client");
58
- const Client_6 = require("../resources/llmUsage/client/Client");
59
- const Client_7 = require("../resources/mcpServers/client/Client");
60
- const Client_8 = require("../resources/phoneNumbers/client/Client");
61
- const Client_9 = require("../resources/secrets/client/Client");
62
- const Client_10 = require("../resources/settings/client/Client");
63
- const Client_11 = require("../resources/sipTrunk/client/Client");
64
- const Client_12 = require("../resources/tests/client/Client");
65
- const Client_13 = require("../resources/tools/client/Client");
66
- const Client_14 = require("../resources/twilio/client/Client");
67
- class ConversationalAi {
68
- constructor(_options = {}) {
69
- this._options = _options;
56
+ const Client_2 = require("../resources/analytics/client/Client");
57
+ const Client_3 = require("../resources/batchCalls/client/Client");
58
+ const Client_4 = require("../resources/conversations/client/Client");
59
+ const Client_5 = require("../resources/dashboard/client/Client");
60
+ const Client_6 = require("../resources/knowledgeBase/client/Client");
61
+ const Client_7 = require("../resources/llmUsage/client/Client");
62
+ const Client_8 = require("../resources/mcpServers/client/Client");
63
+ const Client_9 = require("../resources/phoneNumbers/client/Client");
64
+ const Client_10 = require("../resources/secrets/client/Client");
65
+ const Client_11 = require("../resources/settings/client/Client");
66
+ const Client_12 = require("../resources/sipTrunk/client/Client");
67
+ const Client_13 = require("../resources/tests/client/Client");
68
+ const Client_14 = require("../resources/tools/client/Client");
69
+ const Client_15 = require("../resources/twilio/client/Client");
70
+ class ConversationalAiClient {
71
+ constructor(options = {}) {
72
+ this._options = (0, BaseClient_1.normalizeClientOptions)(options);
70
73
  }
71
74
  get conversations() {
72
75
  var _a;
73
- return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_3.Conversations(this._options)));
76
+ return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_4.ConversationsClient(this._options)));
74
77
  }
75
78
  get twilio() {
76
79
  var _a;
77
- return ((_a = this._twilio) !== null && _a !== void 0 ? _a : (this._twilio = new Client_14.Twilio(this._options)));
80
+ return ((_a = this._twilio) !== null && _a !== void 0 ? _a : (this._twilio = new Client_15.TwilioClient(this._options)));
78
81
  }
79
82
  get agents() {
80
83
  var _a;
81
- return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_1.Agents(this._options)));
84
+ return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_1.AgentsClient(this._options)));
82
85
  }
83
86
  get tests() {
84
87
  var _a;
85
- return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_12.Tests(this._options)));
88
+ return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_13.TestsClient(this._options)));
86
89
  }
87
90
  get phoneNumbers() {
88
91
  var _a;
89
- return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_8.PhoneNumbers(this._options)));
92
+ return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_9.PhoneNumbersClient(this._options)));
90
93
  }
91
94
  get llmUsage() {
92
95
  var _a;
93
- return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_6.LlmUsage(this._options)));
96
+ return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_7.LlmUsageClient(this._options)));
94
97
  }
95
98
  get knowledgeBase() {
96
99
  var _a;
97
- return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_5.KnowledgeBase(this._options)));
100
+ return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_6.KnowledgeBaseClient(this._options)));
98
101
  }
99
102
  get tools() {
100
103
  var _a;
101
- return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_13.Tools(this._options)));
104
+ return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_14.ToolsClient(this._options)));
102
105
  }
103
106
  get settings() {
104
107
  var _a;
105
- return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_10.Settings(this._options)));
108
+ return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_11.SettingsClient(this._options)));
106
109
  }
107
110
  get secrets() {
108
111
  var _a;
109
- return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_9.Secrets(this._options)));
112
+ return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_10.SecretsClient(this._options)));
110
113
  }
111
114
  get batchCalls() {
112
115
  var _a;
113
- return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_2.BatchCalls(this._options)));
116
+ return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_3.BatchCallsClient(this._options)));
114
117
  }
115
118
  get sipTrunk() {
116
119
  var _a;
117
- return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_11.SipTrunk(this._options)));
120
+ return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_12.SipTrunkClient(this._options)));
118
121
  }
119
122
  get mcpServers() {
120
123
  var _a;
121
- return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_7.McpServers(this._options)));
124
+ return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_8.McpServersClient(this._options)));
125
+ }
126
+ get analytics() {
127
+ var _a;
128
+ return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_2.AnalyticsClient(this._options)));
122
129
  }
123
130
  get dashboard() {
124
131
  var _a;
125
- return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_4.Dashboard(this._options)));
132
+ return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_5.DashboardClient(this._options)));
126
133
  }
127
134
  /**
128
135
  * 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/api-reference/agents/update). </Note>
129
136
  *
130
137
  * @param {ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost} request
131
- * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
138
+ * @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
132
139
  *
133
140
  * @throws {@link ElevenLabs.UnprocessableEntityError}
134
141
  *
@@ -202,28 +209,14 @@ class ConversationalAi {
202
209
  });
203
210
  }
204
211
  }
205
- switch (_response.error.reason) {
206
- case "non-json":
207
- throw new errors.ElevenLabsError({
208
- statusCode: _response.error.statusCode,
209
- body: _response.error.rawBody,
210
- rawResponse: _response.rawResponse,
211
- });
212
- case "timeout":
213
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/convai/knowledge-base.");
214
- case "unknown":
215
- throw new errors.ElevenLabsError({
216
- message: _response.error.errorMessage,
217
- rawResponse: _response.rawResponse,
218
- });
219
- }
212
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/knowledge-base");
220
213
  });
221
214
  }
222
215
  /**
223
216
  * Provides information about all RAG indexes of the specified knowledgebase document.
224
217
  *
225
218
  * @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
226
- * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
219
+ * @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
227
220
  *
228
221
  * @throws {@link ElevenLabs.UnprocessableEntityError}
229
222
  *
@@ -276,21 +269,7 @@ class ConversationalAi {
276
269
  });
277
270
  }
278
271
  }
279
- switch (_response.error.reason) {
280
- case "non-json":
281
- throw new errors.ElevenLabsError({
282
- statusCode: _response.error.statusCode,
283
- body: _response.error.rawBody,
284
- rawResponse: _response.rawResponse,
285
- });
286
- case "timeout":
287
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/knowledge-base/{documentation_id}/rag-index.");
288
- case "unknown":
289
- throw new errors.ElevenLabsError({
290
- message: _response.error.errorMessage,
291
- rawResponse: _response.rawResponse,
292
- });
293
- }
272
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/{documentation_id}/rag-index");
294
273
  });
295
274
  }
296
275
  /**
@@ -298,7 +277,7 @@ class ConversationalAi {
298
277
  *
299
278
  * @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
300
279
  * @param {string} rag_index_id - The id of RAG index of document from the knowledge base.
301
- * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
280
+ * @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
302
281
  *
303
282
  * @throws {@link ElevenLabs.UnprocessableEntityError}
304
283
  *
@@ -351,27 +330,13 @@ class ConversationalAi {
351
330
  });
352
331
  }
353
332
  }
354
- switch (_response.error.reason) {
355
- case "non-json":
356
- throw new errors.ElevenLabsError({
357
- statusCode: _response.error.statusCode,
358
- body: _response.error.rawBody,
359
- rawResponse: _response.rawResponse,
360
- });
361
- case "timeout":
362
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling DELETE /v1/convai/knowledge-base/{documentation_id}/rag-index/{rag_index_id}.");
363
- case "unknown":
364
- throw new errors.ElevenLabsError({
365
- message: _response.error.errorMessage,
366
- rawResponse: _response.rawResponse,
367
- });
368
- }
333
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/convai/knowledge-base/{documentation_id}/rag-index/{rag_index_id}");
369
334
  });
370
335
  }
371
336
  /**
372
337
  * Provides total size and other information of RAG indexes used by knowledgebase documents
373
338
  *
374
- * @param {ConversationalAi.RequestOptions} requestOptions - Request-specific configuration.
339
+ * @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
375
340
  *
376
341
  * @throws {@link ElevenLabs.UnprocessableEntityError}
377
342
  *
@@ -424,22 +389,8 @@ class ConversationalAi {
424
389
  });
425
390
  }
426
391
  }
427
- switch (_response.error.reason) {
428
- case "non-json":
429
- throw new errors.ElevenLabsError({
430
- statusCode: _response.error.statusCode,
431
- body: _response.error.rawBody,
432
- rawResponse: _response.rawResponse,
433
- });
434
- case "timeout":
435
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/knowledge-base/rag-index.");
436
- case "unknown":
437
- throw new errors.ElevenLabsError({
438
- message: _response.error.errorMessage,
439
- rawResponse: _response.rawResponse,
440
- });
441
- }
392
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/rag-index");
442
393
  });
443
394
  }
444
395
  }
445
- exports.ConversationalAi = ConversationalAi;
396
+ exports.ConversationalAiClient = ConversationalAiClient;