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