@elevenlabs/elevenlabs-js 2.26.0 → 2.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (921) hide show
  1. package/.fern/metadata.json +2 -2
  2. package/BaseClient.d.ts +5 -1
  3. package/BaseClient.js +48 -0
  4. package/Client.d.ts +76 -76
  5. package/Client.js +29 -49
  6. package/api/errors/BadRequestError.js +5 -1
  7. package/api/errors/ConflictError.js +5 -1
  8. package/api/errors/ForbiddenError.js +5 -1
  9. package/api/errors/NotFoundError.js +5 -1
  10. package/api/errors/TooEarlyError.js +5 -1
  11. package/api/errors/UnauthorizedError.js +5 -1
  12. package/api/errors/UnprocessableEntityError.js +5 -1
  13. package/api/resources/audioIsolation/client/Client.d.ts +8 -8
  14. package/api/resources/audioIsolation/client/Client.js +9 -35
  15. package/api/resources/audioNative/client/Client.d.ts +12 -12
  16. package/api/resources/audioNative/client/Client.js +13 -53
  17. package/api/resources/conversationalAi/client/Client.d.ts +59 -59
  18. package/api/resources/conversationalAi/client/Client.js +30 -84
  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 +1 -0
  48. package/api/resources/conversationalAi/resources/index.js +1 -0
  49. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +14 -14
  50. package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +11 -23
  51. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +8 -8
  52. package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +9 -21
  53. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +25 -25
  54. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +24 -134
  55. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +8 -8
  56. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +9 -21
  57. package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +8 -8
  58. package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +9 -21
  59. package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +28 -28
  60. package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +21 -89
  61. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +8 -8
  62. package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +9 -21
  63. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +10 -10
  64. package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +11 -37
  65. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.d.ts +14 -14
  66. package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.js +15 -69
  67. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +8 -8
  68. package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +9 -21
  69. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +16 -16
  70. package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +17 -85
  71. package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +14 -14
  72. package/api/resources/conversationalAi/resources/secrets/client/Client.js +15 -69
  73. package/api/resources/conversationalAi/resources/settings/client/Client.d.ts +10 -10
  74. package/api/resources/conversationalAi/resources/settings/client/Client.js +11 -37
  75. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +8 -8
  76. package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +9 -21
  77. package/api/resources/conversationalAi/resources/tests/client/Client.d.ts +21 -21
  78. package/api/resources/conversationalAi/resources/tests/client/Client.js +20 -102
  79. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +12 -12
  80. package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +13 -53
  81. package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +18 -18
  82. package/api/resources/conversationalAi/resources/tools/client/Client.js +19 -101
  83. package/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +25 -8
  84. package/api/resources/conversationalAi/resources/twilio/client/Client.js +67 -20
  85. package/api/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.d.ts +16 -0
  86. package/api/resources/conversationalAi/resources/twilio/client/requests/index.d.ts +1 -0
  87. package/api/resources/conversationalAi/resources/twilio/index.d.ts +1 -0
  88. package/api/resources/conversationalAi/resources/twilio/index.js +1 -0
  89. package/api/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.d.ts +5 -0
  90. package/api/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.js +8 -0
  91. package/api/resources/conversationalAi/resources/twilio/types/index.d.ts +1 -0
  92. package/api/resources/conversationalAi/resources/twilio/types/index.js +17 -0
  93. package/api/resources/dubbing/client/Client.d.ts +23 -23
  94. package/api/resources/dubbing/client/Client.js +18 -72
  95. package/api/resources/dubbing/resources/audio/client/Client.d.ts +7 -7
  96. package/api/resources/dubbing/resources/audio/client/Client.js +8 -20
  97. package/api/resources/dubbing/resources/resource/client/Client.d.ts +28 -28
  98. package/api/resources/dubbing/resources/resource/client/Client.js +23 -105
  99. package/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +8 -8
  100. package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +9 -21
  101. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +10 -10
  102. package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +11 -37
  103. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +15 -15
  104. package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +14 -54
  105. package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +6 -0
  106. package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +6 -0
  107. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +8 -8
  108. package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +9 -21
  109. package/api/resources/dubbing/resources/transcript/client/Client.d.ts +8 -8
  110. package/api/resources/dubbing/resources/transcript/client/Client.js +9 -21
  111. package/api/resources/forcedAlignment/client/Client.d.ts +8 -8
  112. package/api/resources/forcedAlignment/client/Client.js +9 -21
  113. package/api/resources/history/client/Client.d.ts +14 -14
  114. package/api/resources/history/client/Client.js +15 -83
  115. package/api/resources/models/client/Client.d.ts +8 -8
  116. package/api/resources/models/client/Client.js +9 -21
  117. package/api/resources/music/client/Client.d.ts +13 -13
  118. package/api/resources/music/client/Client.js +15 -66
  119. package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +2 -0
  120. package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +4 -0
  121. package/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +2 -0
  122. package/api/resources/music/resources/compositionPlan/client/Client.d.ts +8 -8
  123. package/api/resources/music/resources/compositionPlan/client/Client.js +9 -21
  124. package/api/resources/pronunciationDictionaries/client/Client.d.ts +20 -20
  125. package/api/resources/pronunciationDictionaries/client/Client.js +19 -101
  126. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +10 -10
  127. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +11 -37
  128. package/api/resources/samples/client/Client.d.ts +8 -8
  129. package/api/resources/samples/client/Client.js +9 -21
  130. package/api/resources/serviceAccounts/client/Client.d.ts +11 -11
  131. package/api/resources/serviceAccounts/client/Client.js +10 -22
  132. package/api/resources/serviceAccounts/resources/apiKeys/client/Client.d.ts +16 -16
  133. package/api/resources/serviceAccounts/resources/apiKeys/client/Client.js +17 -71
  134. package/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +1 -1
  135. package/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +1 -1
  136. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +1 -1
  137. package/api/resources/serviceAccounts/resources/apiKeys/types/{BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts → BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts} +2 -2
  138. package/{dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js → api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js} +2 -2
  139. package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +1 -1
  140. package/api/resources/serviceAccounts/resources/apiKeys/types/{BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts → BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts} +2 -2
  141. package/{dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js → api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js} +2 -2
  142. package/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +2 -2
  143. package/api/resources/serviceAccounts/resources/apiKeys/types/index.js +2 -2
  144. package/api/resources/speechToSpeech/client/Client.d.ts +8 -8
  145. package/api/resources/speechToSpeech/client/Client.js +9 -35
  146. package/api/resources/speechToText/client/Client.d.ts +11 -11
  147. package/api/resources/speechToText/client/Client.js +10 -22
  148. package/api/resources/speechToText/resources/transcripts/client/Client.d.ts +10 -10
  149. package/api/resources/speechToText/resources/transcripts/client/Client.js +11 -37
  150. package/api/resources/studio/client/Client.d.ts +12 -11
  151. package/api/resources/studio/client/Client.js +11 -22
  152. package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +1 -0
  153. package/api/resources/studio/resources/projects/client/Client.d.ts +30 -30
  154. package/api/resources/studio/resources/projects/client/Client.js +23 -105
  155. package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +7 -1
  156. package/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +21 -21
  157. package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +20 -102
  158. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +11 -11
  159. package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +12 -52
  160. package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +8 -8
  161. package/api/resources/studio/resources/projects/resources/content/client/Client.js +9 -21
  162. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +8 -8
  163. package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +9 -21
  164. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +12 -12
  165. package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +13 -67
  166. package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.d.ts +1 -1
  167. package/api/resources/studio/types/{BodyCreatePodcastV1StudioPodcastsPostSourceItem.d.ts → BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.d.ts} +2 -2
  168. package/api/resources/studio/types/index.d.ts +1 -1
  169. package/api/resources/studio/types/index.js +1 -1
  170. package/api/resources/textToDialogue/client/Client.d.ts +11 -11
  171. package/api/resources/textToDialogue/client/Client.js +12 -66
  172. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
  173. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
  174. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
  175. package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
  176. package/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +1 -1
  177. package/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +1 -1
  178. package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.d.ts +1 -1
  179. package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.js +1 -1
  180. package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.d.ts +1 -1
  181. package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.js +1 -1
  182. package/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +1 -1
  183. package/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +1 -1
  184. package/api/resources/textToSoundEffects/client/Client.d.ts +7 -7
  185. package/api/resources/textToSoundEffects/client/Client.js +8 -20
  186. package/api/resources/textToSpeech/client/Client.d.ts +11 -11
  187. package/api/resources/textToSpeech/client/Client.js +12 -66
  188. package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
  189. package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +1 -1
  190. package/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
  191. package/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
  192. package/api/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.d.ts +1 -1
  193. package/api/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.js +1 -1
  194. package/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.d.ts +1 -1
  195. package/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.js +1 -1
  196. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.d.ts +1 -1
  197. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.js +1 -1
  198. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.d.ts +1 -1
  199. package/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.js +1 -1
  200. package/api/resources/textToVoice/client/Client.d.ts +17 -17
  201. package/api/resources/textToVoice/client/Client.js +16 -70
  202. package/api/resources/textToVoice/resources/preview/client/Client.d.ts +7 -7
  203. package/api/resources/textToVoice/resources/preview/client/Client.js +8 -20
  204. package/api/resources/tokens/client/Client.d.ts +9 -9
  205. package/api/resources/tokens/client/Client.js +7 -6
  206. package/api/resources/tokens/resources/singleUse/client/Client.d.ts +8 -8
  207. package/api/resources/tokens/resources/singleUse/client/Client.js +9 -21
  208. package/api/resources/usage/client/Client.d.ts +8 -8
  209. package/api/resources/usage/client/Client.js +9 -21
  210. package/api/resources/user/client/Client.d.ts +11 -11
  211. package/api/resources/user/client/Client.js +10 -22
  212. package/api/resources/user/resources/subscription/client/Client.d.ts +8 -8
  213. package/api/resources/user/resources/subscription/client/Client.js +9 -21
  214. package/api/resources/voices/client/Client.d.ts +34 -34
  215. package/api/resources/voices/client/Client.js +27 -137
  216. package/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +2 -2
  217. package/api/resources/voices/resources/ivc/client/Client.d.ts +8 -8
  218. package/api/resources/voices/resources/ivc/client/Client.js +9 -21
  219. package/api/resources/voices/resources/pvc/client/Client.d.ts +18 -18
  220. package/api/resources/voices/resources/pvc/client/Client.js +15 -55
  221. package/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +21 -21
  222. package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +16 -56
  223. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +8 -8
  224. package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +9 -21
  225. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +13 -13
  226. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +12 -38
  227. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +8 -8
  228. package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +9 -21
  229. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +8 -8
  230. package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +9 -21
  231. package/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +11 -11
  232. package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +10 -22
  233. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +10 -10
  234. package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +11 -37
  235. package/api/resources/voices/resources/samples/client/Client.d.ts +9 -9
  236. package/api/resources/voices/resources/samples/client/Client.js +7 -6
  237. package/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +7 -7
  238. package/api/resources/voices/resources/samples/resources/audio/client/Client.js +8 -20
  239. package/api/resources/voices/resources/settings/client/Client.d.ts +12 -12
  240. package/api/resources/voices/resources/settings/client/Client.js +13 -53
  241. package/api/resources/webhooks/client/Client.d.ts +14 -14
  242. package/api/resources/webhooks/client/Client.js +15 -69
  243. package/api/resources/workspace/client/Client.d.ts +18 -18
  244. package/api/resources/workspace/client/Client.js +10 -9
  245. package/api/resources/workspace/resources/groups/client/Client.d.ts +11 -11
  246. package/api/resources/workspace/resources/groups/client/Client.js +10 -22
  247. package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +10 -10
  248. package/api/resources/workspace/resources/groups/resources/members/client/Client.js +11 -37
  249. package/api/resources/workspace/resources/invites/client/Client.d.ts +12 -12
  250. package/api/resources/workspace/resources/invites/client/Client.js +13 -53
  251. package/api/resources/workspace/resources/members/client/Client.d.ts +8 -8
  252. package/api/resources/workspace/resources/members/client/Client.js +9 -21
  253. package/api/resources/workspace/resources/resources/client/Client.d.ts +12 -12
  254. package/api/resources/workspace/resources/resources/client/Client.js +13 -53
  255. package/api/types/BackupLlmDefault.d.ts +3 -1
  256. package/api/types/BackupLlmDisabled.d.ts +3 -1
  257. package/api/types/BackupLlmOverride.d.ts +1 -0
  258. package/api/types/BillingPeriod.d.ts +7 -0
  259. package/api/types/{SubscriptionResponseModelBillingPeriod.js → BillingPeriod.js} +2 -2
  260. package/api/types/CharacterRefreshPeriod.d.ts +7 -0
  261. package/{dist/api/types/SubscriptionResponseModelBillingPeriod.js → api/types/CharacterRefreshPeriod.js} +2 -2
  262. package/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +14 -0
  263. package/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
  264. package/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
  265. package/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
  266. package/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
  267. package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +0 -1
  268. package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +0 -1
  269. package/api/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.d.ts +7 -0
  270. package/{dist/api/types/ConversationHistoryTranscriptToolCallCommonModel.d.ts → api/types/ConversationHistoryTranscriptToolCallCommonModelInput.d.ts} +2 -2
  271. package/api/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.d.ts +16 -0
  272. package/api/types/ConversationHistoryTranscriptToolCallCommonModelOutput.d.ts +9 -0
  273. package/api/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.d.ts +16 -0
  274. package/api/types/ConversationHistoryTranscriptToolCallWebhookDetails.d.ts +1 -0
  275. package/api/types/DetailedMusicResponse.d.ts +2 -0
  276. package/{dist/api/types/DiscountResposneModel.d.ts → api/types/DiscountResponseModel.d.ts} +1 -1
  277. package/api/types/DiscountResponseModel.js +3 -0
  278. package/api/types/DubbingResource.d.ts +2 -2
  279. package/api/types/GetVoicesV2Response.d.ts +4 -0
  280. package/api/types/InvoiceResponse.d.ts +1 -1
  281. package/api/types/MultipartMusicResponse.d.ts +1 -1
  282. package/api/types/PendingSubscriptionSwitchResponseModel.d.ts +1 -1
  283. package/api/types/PodcastTextSource.d.ts +2 -0
  284. package/api/types/PodcastUrlSource.d.ts +2 -0
  285. package/api/types/RagConfig.d.ts +2 -0
  286. package/api/types/RagConfigWorkflowOverride.d.ts +2 -0
  287. package/api/types/Subscription.d.ts +2 -2
  288. package/api/types/SubscriptionResponse.d.ts +2 -2
  289. package/api/types/SystemToolConfigInput.d.ts +2 -0
  290. package/api/types/SystemToolConfigOutput.d.ts +2 -0
  291. package/api/types/WhatsAppConversationInfo.d.ts +2 -0
  292. package/api/types/WhatsAppConversationInfoDirection.d.ts +6 -0
  293. package/api/types/WhatsAppConversationInfoDirection.js +9 -0
  294. package/api/types/WordTimestamp.d.ts +5 -0
  295. package/api/types/WordTimestamp.js +3 -0
  296. package/api/types/WorkflowToolNestedToolsStepModelInput.d.ts +1 -1
  297. package/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +1 -1
  298. package/api/types/WorkflowToolNestedToolsStepModelOutput.d.ts +1 -1
  299. package/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +1 -1
  300. package/api/types/index.d.ts +11 -8
  301. package/api/types/index.js +11 -8
  302. package/core/fetcher/BinaryResponse.d.ts +6 -7
  303. package/core/fetcher/Fetcher.d.ts +5 -1
  304. package/core/fetcher/Fetcher.js +2 -1
  305. package/core/fetcher/getResponseBody.js +18 -4
  306. package/core/fetcher/signals.d.ts +1 -1
  307. package/core/runtime/runtime.js +11 -10
  308. package/core/schemas/builders/object/object.js +14 -1
  309. package/dist/BaseClient.d.ts +5 -1
  310. package/dist/BaseClient.js +48 -0
  311. package/dist/Client.d.ts +76 -76
  312. package/dist/Client.js +29 -49
  313. package/dist/api/errors/BadRequestError.js +5 -1
  314. package/dist/api/errors/ConflictError.js +5 -1
  315. package/dist/api/errors/ForbiddenError.js +5 -1
  316. package/dist/api/errors/NotFoundError.js +5 -1
  317. package/dist/api/errors/TooEarlyError.js +5 -1
  318. package/dist/api/errors/UnauthorizedError.js +5 -1
  319. package/dist/api/errors/UnprocessableEntityError.js +5 -1
  320. package/dist/api/resources/audioIsolation/client/Client.d.ts +8 -8
  321. package/dist/api/resources/audioIsolation/client/Client.js +9 -35
  322. package/dist/api/resources/audioNative/client/Client.d.ts +12 -12
  323. package/dist/api/resources/audioNative/client/Client.js +13 -53
  324. package/dist/api/resources/conversationalAi/client/Client.d.ts +59 -59
  325. package/dist/api/resources/conversationalAi/client/Client.js +30 -84
  326. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +36 -36
  327. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +29 -153
  328. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +8 -8
  329. package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +9 -21
  330. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +8 -8
  331. package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +9 -21
  332. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +8 -8
  333. package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +9 -21
  334. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +11 -11
  335. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +10 -22
  336. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +8 -8
  337. package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +9 -21
  338. package/dist/api/resources/conversationalAi/resources/analytics/client/Client.d.ts +9 -9
  339. package/dist/api/resources/conversationalAi/resources/analytics/client/Client.js +7 -6
  340. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.d.ts +8 -8
  341. package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.js +9 -21
  342. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +16 -16
  343. package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +17 -85
  344. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +22 -22
  345. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +19 -87
  346. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +7 -7
  347. package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +8 -20
  348. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +8 -8
  349. package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +9 -21
  350. package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +9 -9
  351. package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.js +7 -6
  352. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +10 -10
  353. package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +11 -37
  354. package/dist/api/resources/conversationalAi/resources/index.d.ts +1 -0
  355. package/dist/api/resources/conversationalAi/resources/index.js +1 -0
  356. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +14 -14
  357. package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +11 -23
  358. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +8 -8
  359. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +9 -21
  360. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +25 -25
  361. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +24 -134
  362. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +8 -8
  363. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +9 -21
  364. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +8 -8
  365. package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +9 -21
  366. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +28 -28
  367. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +21 -89
  368. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +8 -8
  369. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +9 -21
  370. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +10 -10
  371. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +11 -37
  372. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.d.ts +14 -14
  373. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.js +15 -69
  374. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +8 -8
  375. package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +9 -21
  376. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +16 -16
  377. package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +17 -85
  378. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +14 -14
  379. package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +15 -69
  380. package/dist/api/resources/conversationalAi/resources/settings/client/Client.d.ts +10 -10
  381. package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +11 -37
  382. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +8 -8
  383. package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +9 -21
  384. package/dist/api/resources/conversationalAi/resources/tests/client/Client.d.ts +21 -21
  385. package/dist/api/resources/conversationalAi/resources/tests/client/Client.js +20 -102
  386. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +12 -12
  387. package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +13 -53
  388. package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +18 -18
  389. package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +19 -101
  390. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +25 -8
  391. package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +67 -20
  392. package/dist/api/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.d.ts +16 -0
  393. package/dist/api/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.js +3 -0
  394. package/dist/api/resources/conversationalAi/resources/twilio/client/requests/index.d.ts +1 -0
  395. package/dist/api/resources/conversationalAi/resources/twilio/index.d.ts +1 -0
  396. package/dist/api/resources/conversationalAi/resources/twilio/index.js +1 -0
  397. package/dist/api/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.d.ts +5 -0
  398. package/dist/api/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.js +8 -0
  399. package/dist/api/resources/conversationalAi/resources/twilio/types/index.d.ts +1 -0
  400. package/dist/api/resources/conversationalAi/resources/twilio/types/index.js +17 -0
  401. package/dist/api/resources/dubbing/client/Client.d.ts +23 -23
  402. package/dist/api/resources/dubbing/client/Client.js +18 -72
  403. package/dist/api/resources/dubbing/resources/audio/client/Client.d.ts +7 -7
  404. package/dist/api/resources/dubbing/resources/audio/client/Client.js +8 -20
  405. package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +28 -28
  406. package/dist/api/resources/dubbing/resources/resource/client/Client.js +23 -105
  407. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +8 -8
  408. package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +9 -21
  409. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +10 -10
  410. package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +11 -37
  411. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +15 -15
  412. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +14 -54
  413. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +6 -0
  414. package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +6 -0
  415. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +8 -8
  416. package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +9 -21
  417. package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +8 -8
  418. package/dist/api/resources/dubbing/resources/transcript/client/Client.js +9 -21
  419. package/dist/api/resources/forcedAlignment/client/Client.d.ts +8 -8
  420. package/dist/api/resources/forcedAlignment/client/Client.js +9 -21
  421. package/dist/api/resources/history/client/Client.d.ts +14 -14
  422. package/dist/api/resources/history/client/Client.js +15 -83
  423. package/dist/api/resources/models/client/Client.d.ts +8 -8
  424. package/dist/api/resources/models/client/Client.js +9 -21
  425. package/dist/api/resources/music/client/Client.d.ts +13 -13
  426. package/dist/api/resources/music/client/Client.js +15 -66
  427. package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +2 -0
  428. package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +4 -0
  429. package/dist/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +2 -0
  430. package/dist/api/resources/music/resources/compositionPlan/client/Client.d.ts +8 -8
  431. package/dist/api/resources/music/resources/compositionPlan/client/Client.js +9 -21
  432. package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +20 -20
  433. package/dist/api/resources/pronunciationDictionaries/client/Client.js +19 -101
  434. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +10 -10
  435. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +11 -37
  436. package/dist/api/resources/samples/client/Client.d.ts +8 -8
  437. package/dist/api/resources/samples/client/Client.js +9 -21
  438. package/dist/api/resources/serviceAccounts/client/Client.d.ts +11 -11
  439. package/dist/api/resources/serviceAccounts/client/Client.js +10 -22
  440. package/dist/api/resources/serviceAccounts/resources/apiKeys/client/Client.d.ts +16 -16
  441. package/dist/api/resources/serviceAccounts/resources/apiKeys/client/Client.js +17 -71
  442. package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +1 -1
  443. package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +1 -1
  444. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +1 -1
  445. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/{BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts → BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts} +2 -2
  446. package/{api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js → dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js} +2 -2
  447. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +1 -1
  448. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/{BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts → BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts} +2 -2
  449. package/{api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js → dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js} +2 -2
  450. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +2 -2
  451. package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.js +2 -2
  452. package/dist/api/resources/speechToSpeech/client/Client.d.ts +8 -8
  453. package/dist/api/resources/speechToSpeech/client/Client.js +9 -35
  454. package/dist/api/resources/speechToText/client/Client.d.ts +11 -11
  455. package/dist/api/resources/speechToText/client/Client.js +10 -22
  456. package/dist/api/resources/speechToText/resources/transcripts/client/Client.d.ts +10 -10
  457. package/dist/api/resources/speechToText/resources/transcripts/client/Client.js +11 -37
  458. package/dist/api/resources/studio/client/Client.d.ts +12 -11
  459. package/dist/api/resources/studio/client/Client.js +11 -22
  460. package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +1 -0
  461. package/dist/api/resources/studio/resources/projects/client/Client.d.ts +30 -30
  462. package/dist/api/resources/studio/resources/projects/client/Client.js +23 -105
  463. package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +7 -1
  464. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +21 -21
  465. package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +20 -102
  466. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +11 -11
  467. package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +12 -52
  468. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +8 -8
  469. package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +9 -21
  470. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +8 -8
  471. package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +9 -21
  472. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +12 -12
  473. package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +13 -67
  474. package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.d.ts +1 -1
  475. package/dist/api/resources/studio/types/{BodyCreatePodcastV1StudioPodcastsPostSourceItem.d.ts → BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.d.ts} +2 -2
  476. package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.js +3 -0
  477. package/dist/api/resources/studio/types/index.d.ts +1 -1
  478. package/dist/api/resources/studio/types/index.js +1 -1
  479. package/dist/api/resources/textToDialogue/client/Client.d.ts +11 -11
  480. package/dist/api/resources/textToDialogue/client/Client.js +12 -66
  481. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
  482. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
  483. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
  484. package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
  485. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +1 -1
  486. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +1 -1
  487. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.d.ts +1 -1
  488. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.js +1 -1
  489. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.d.ts +1 -1
  490. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.js +1 -1
  491. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +1 -1
  492. package/dist/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +1 -1
  493. package/dist/api/resources/textToSoundEffects/client/Client.d.ts +7 -7
  494. package/dist/api/resources/textToSoundEffects/client/Client.js +8 -20
  495. package/dist/api/resources/textToSpeech/client/Client.d.ts +11 -11
  496. package/dist/api/resources/textToSpeech/client/Client.js +12 -66
  497. package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
  498. package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +1 -1
  499. package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
  500. package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
  501. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.d.ts +1 -1
  502. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.js +1 -1
  503. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.d.ts +1 -1
  504. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.js +1 -1
  505. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.d.ts +1 -1
  506. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.js +1 -1
  507. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.d.ts +1 -1
  508. package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.js +1 -1
  509. package/dist/api/resources/textToVoice/client/Client.d.ts +17 -17
  510. package/dist/api/resources/textToVoice/client/Client.js +16 -70
  511. package/dist/api/resources/textToVoice/resources/preview/client/Client.d.ts +7 -7
  512. package/dist/api/resources/textToVoice/resources/preview/client/Client.js +8 -20
  513. package/dist/api/resources/tokens/client/Client.d.ts +9 -9
  514. package/dist/api/resources/tokens/client/Client.js +7 -6
  515. package/dist/api/resources/tokens/resources/singleUse/client/Client.d.ts +8 -8
  516. package/dist/api/resources/tokens/resources/singleUse/client/Client.js +9 -21
  517. package/dist/api/resources/usage/client/Client.d.ts +8 -8
  518. package/dist/api/resources/usage/client/Client.js +9 -21
  519. package/dist/api/resources/user/client/Client.d.ts +11 -11
  520. package/dist/api/resources/user/client/Client.js +10 -22
  521. package/dist/api/resources/user/resources/subscription/client/Client.d.ts +8 -8
  522. package/dist/api/resources/user/resources/subscription/client/Client.js +9 -21
  523. package/dist/api/resources/voices/client/Client.d.ts +34 -34
  524. package/dist/api/resources/voices/client/Client.js +27 -137
  525. package/dist/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +2 -2
  526. package/dist/api/resources/voices/resources/ivc/client/Client.d.ts +8 -8
  527. package/dist/api/resources/voices/resources/ivc/client/Client.js +9 -21
  528. package/dist/api/resources/voices/resources/pvc/client/Client.d.ts +18 -18
  529. package/dist/api/resources/voices/resources/pvc/client/Client.js +15 -55
  530. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +21 -21
  531. package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +16 -56
  532. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +8 -8
  533. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +9 -21
  534. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +13 -13
  535. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +12 -38
  536. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +8 -8
  537. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +9 -21
  538. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +8 -8
  539. package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +9 -21
  540. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +11 -11
  541. package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +10 -22
  542. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +10 -10
  543. package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +11 -37
  544. package/dist/api/resources/voices/resources/samples/client/Client.d.ts +9 -9
  545. package/dist/api/resources/voices/resources/samples/client/Client.js +7 -6
  546. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +7 -7
  547. package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +8 -20
  548. package/dist/api/resources/voices/resources/settings/client/Client.d.ts +12 -12
  549. package/dist/api/resources/voices/resources/settings/client/Client.js +13 -53
  550. package/dist/api/resources/webhooks/client/Client.d.ts +14 -14
  551. package/dist/api/resources/webhooks/client/Client.js +15 -69
  552. package/dist/api/resources/workspace/client/Client.d.ts +18 -18
  553. package/dist/api/resources/workspace/client/Client.js +10 -9
  554. package/dist/api/resources/workspace/resources/groups/client/Client.d.ts +11 -11
  555. package/dist/api/resources/workspace/resources/groups/client/Client.js +10 -22
  556. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +10 -10
  557. package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +11 -37
  558. package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +12 -12
  559. package/dist/api/resources/workspace/resources/invites/client/Client.js +13 -53
  560. package/dist/api/resources/workspace/resources/members/client/Client.d.ts +8 -8
  561. package/dist/api/resources/workspace/resources/members/client/Client.js +9 -21
  562. package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +12 -12
  563. package/dist/api/resources/workspace/resources/resources/client/Client.js +13 -53
  564. package/dist/api/types/BackupLlmDefault.d.ts +3 -1
  565. package/dist/api/types/BackupLlmDisabled.d.ts +3 -1
  566. package/dist/api/types/BackupLlmOverride.d.ts +1 -0
  567. package/dist/api/types/BillingPeriod.d.ts +7 -0
  568. package/{api/types/ExtendedSubscriptionResponseModelBillingPeriod.js → dist/api/types/BillingPeriod.js} +2 -2
  569. package/dist/api/types/CharacterRefreshPeriod.d.ts +7 -0
  570. package/dist/api/types/{ExtendedSubscriptionResponseModelBillingPeriod.js → CharacterRefreshPeriod.js} +2 -2
  571. package/dist/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +14 -0
  572. package/dist/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +3 -0
  573. package/dist/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
  574. package/dist/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
  575. package/dist/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
  576. package/dist/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
  577. package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +0 -1
  578. package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +0 -1
  579. package/dist/api/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.d.ts +7 -0
  580. package/dist/api/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.js +3 -0
  581. package/{api/types/ConversationHistoryTranscriptToolCallCommonModel.d.ts → dist/api/types/ConversationHistoryTranscriptToolCallCommonModelInput.d.ts} +2 -2
  582. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelInput.js +3 -0
  583. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.d.ts +16 -0
  584. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.js +3 -0
  585. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelOutput.d.ts +9 -0
  586. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelOutput.js +3 -0
  587. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.d.ts +16 -0
  588. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.js +3 -0
  589. package/dist/api/types/ConversationHistoryTranscriptToolCallWebhookDetails.d.ts +1 -0
  590. package/dist/api/types/DetailedMusicResponse.d.ts +2 -0
  591. package/{api/types/DiscountResposneModel.d.ts → dist/api/types/DiscountResponseModel.d.ts} +1 -1
  592. package/dist/api/types/DiscountResponseModel.js +3 -0
  593. package/dist/api/types/DubbingResource.d.ts +2 -2
  594. package/dist/api/types/GetVoicesV2Response.d.ts +4 -0
  595. package/dist/api/types/InvoiceResponse.d.ts +1 -1
  596. package/dist/api/types/MultipartMusicResponse.d.ts +1 -1
  597. package/dist/api/types/PendingSubscriptionSwitchResponseModel.d.ts +1 -1
  598. package/dist/api/types/PodcastTextSource.d.ts +2 -0
  599. package/dist/api/types/PodcastUrlSource.d.ts +2 -0
  600. package/dist/api/types/RagConfig.d.ts +2 -0
  601. package/dist/api/types/RagConfigWorkflowOverride.d.ts +2 -0
  602. package/dist/api/types/Subscription.d.ts +2 -2
  603. package/dist/api/types/SubscriptionResponse.d.ts +2 -2
  604. package/dist/api/types/SystemToolConfigInput.d.ts +2 -0
  605. package/dist/api/types/SystemToolConfigOutput.d.ts +2 -0
  606. package/dist/api/types/WhatsAppConversationInfo.d.ts +2 -0
  607. package/dist/api/types/WhatsAppConversationInfoDirection.d.ts +6 -0
  608. package/dist/api/types/WhatsAppConversationInfoDirection.js +9 -0
  609. package/dist/api/types/WordTimestamp.d.ts +5 -0
  610. package/dist/api/types/WordTimestamp.js +3 -0
  611. package/dist/api/types/WorkflowToolNestedToolsStepModelInput.d.ts +1 -1
  612. package/dist/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +1 -1
  613. package/dist/api/types/WorkflowToolNestedToolsStepModelOutput.d.ts +1 -1
  614. package/dist/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +1 -1
  615. package/dist/api/types/index.d.ts +11 -8
  616. package/dist/api/types/index.js +11 -8
  617. package/dist/core/fetcher/BinaryResponse.d.ts +6 -7
  618. package/dist/core/fetcher/Fetcher.d.ts +5 -1
  619. package/dist/core/fetcher/Fetcher.js +2 -1
  620. package/dist/core/fetcher/getResponseBody.js +18 -4
  621. package/dist/core/fetcher/signals.d.ts +1 -1
  622. package/dist/core/runtime/runtime.js +11 -10
  623. package/dist/core/schemas/builders/object/object.js +14 -1
  624. package/dist/errors/ElevenLabsError.js +5 -1
  625. package/dist/errors/ElevenLabsTimeoutError.js +5 -1
  626. package/dist/errors/handleNonStatusCodeError.d.ts +2 -0
  627. package/dist/errors/handleNonStatusCodeError.js +65 -0
  628. package/dist/serialization/resources/conversationalAi/resources/index.d.ts +1 -0
  629. package/dist/serialization/resources/conversationalAi/resources/index.js +1 -0
  630. package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.d.ts +15 -0
  631. package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.js +47 -0
  632. package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/index.d.ts +1 -0
  633. package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/index.js +3 -1
  634. package/dist/serialization/resources/conversationalAi/resources/twilio/index.d.ts +1 -0
  635. package/dist/serialization/resources/conversationalAi/resources/twilio/index.js +1 -0
  636. package/dist/serialization/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.d.ts +7 -0
  637. package/dist/serialization/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.js +39 -0
  638. package/dist/serialization/resources/conversationalAi/resources/twilio/types/index.d.ts +1 -0
  639. package/dist/serialization/resources/conversationalAi/resources/twilio/types/index.js +17 -0
  640. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +3 -0
  641. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +3 -0
  642. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +3 -0
  643. package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.js +3 -0
  644. package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -0
  645. package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +1 -0
  646. package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +2 -0
  647. package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +2 -0
  648. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +2 -2
  649. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js +2 -2
  650. package/{serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts → dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts} +2 -2
  651. package/{serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js → dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js} +2 -2
  652. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +2 -2
  653. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js +2 -2
  654. package/{serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts → dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts} +2 -2
  655. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/{BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js → BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js} +2 -2
  656. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +2 -2
  657. package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +2 -2
  658. package/dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.d.ts +2 -2
  659. package/dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.js +2 -2
  660. package/dist/serialization/resources/studio/types/{BodyCreatePodcastV1StudioPodcastsPostSourceItem.d.ts → BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.d.ts} +3 -3
  661. package/{serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceItem.js → dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.js} +2 -2
  662. package/dist/serialization/resources/studio/types/index.d.ts +1 -1
  663. package/dist/serialization/resources/studio/types/index.js +1 -1
  664. package/dist/serialization/types/BackupLlmDefault.d.ts +3 -1
  665. package/dist/serialization/types/BackupLlmDefault.js +3 -1
  666. package/dist/serialization/types/BackupLlmDisabled.d.ts +3 -1
  667. package/dist/serialization/types/BackupLlmDisabled.js +3 -1
  668. package/dist/serialization/types/BackupLlmOverride.d.ts +1 -0
  669. package/dist/serialization/types/BackupLlmOverride.js +1 -0
  670. package/dist/serialization/types/BillingPeriod.d.ts +7 -0
  671. package/dist/serialization/types/{SubscriptionResponseModelBillingPeriod.js → BillingPeriod.js} +2 -2
  672. package/dist/serialization/types/CharacterRefreshPeriod.d.ts +7 -0
  673. package/{serialization/types/SubscriptionResponseModelBillingPeriod.js → dist/serialization/types/CharacterRefreshPeriod.js} +2 -2
  674. package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +20 -0
  675. package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +52 -0
  676. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
  677. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
  678. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +2 -1
  679. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.js +2 -0
  680. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
  681. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
  682. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +2 -1
  683. package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +2 -0
  684. package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -1
  685. package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -1
  686. package/dist/serialization/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.d.ts +13 -0
  687. package/dist/serialization/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.js +45 -0
  688. package/dist/serialization/types/{ConversationHistoryTranscriptToolCallCommonModel.d.ts → ConversationHistoryTranscriptToolCallCommonModelInput.d.ts} +4 -4
  689. package/{serialization/types/ConversationHistoryTranscriptToolCallCommonModel.js → dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelInput.js} +4 -4
  690. package/{serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts → dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.d.ts} +7 -3
  691. package/dist/serialization/types/{ConversationHistoryTranscriptToolCallCommonModelToolDetails.js → ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.js} +4 -2
  692. package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutput.d.ts +16 -0
  693. package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutput.js +48 -0
  694. package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.d.ts +23 -0
  695. package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.js +53 -0
  696. package/dist/serialization/types/ConversationHistoryTranscriptToolCallWebhookDetails.d.ts +1 -0
  697. package/dist/serialization/types/ConversationHistoryTranscriptToolCallWebhookDetails.js +1 -0
  698. package/dist/serialization/types/DetailedMusicResponse.d.ts +2 -0
  699. package/dist/serialization/types/DetailedMusicResponse.js +2 -0
  700. package/{serialization/types/DiscountResposneModel.d.ts → dist/serialization/types/DiscountResponseModel.d.ts} +2 -2
  701. package/dist/serialization/types/{DiscountResposneModel.js → DiscountResponseModel.js} +2 -2
  702. package/dist/serialization/types/DubbingResource.d.ts +2 -2
  703. package/dist/serialization/types/DubbingResource.js +2 -2
  704. package/dist/serialization/types/InvoiceResponse.d.ts +2 -2
  705. package/dist/serialization/types/InvoiceResponse.js +2 -2
  706. package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -2
  707. package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.js +2 -2
  708. package/dist/serialization/types/PodcastTextSource.d.ts +1 -0
  709. package/dist/serialization/types/PodcastTextSource.js +1 -0
  710. package/dist/serialization/types/PodcastUrlSource.d.ts +1 -0
  711. package/dist/serialization/types/PodcastUrlSource.js +1 -0
  712. package/dist/serialization/types/RagConfig.d.ts +1 -0
  713. package/dist/serialization/types/RagConfig.js +1 -0
  714. package/dist/serialization/types/RagConfigWorkflowOverride.d.ts +1 -0
  715. package/dist/serialization/types/RagConfigWorkflowOverride.js +1 -0
  716. package/dist/serialization/types/Subscription.d.ts +4 -4
  717. package/dist/serialization/types/Subscription.js +4 -4
  718. package/dist/serialization/types/SubscriptionResponse.d.ts +4 -4
  719. package/dist/serialization/types/SubscriptionResponse.js +4 -4
  720. package/dist/serialization/types/SystemToolConfigInput.d.ts +1 -0
  721. package/dist/serialization/types/SystemToolConfigInput.js +1 -0
  722. package/dist/serialization/types/SystemToolConfigOutput.d.ts +1 -0
  723. package/dist/serialization/types/SystemToolConfigOutput.js +1 -0
  724. package/dist/serialization/types/WhatsAppConversationInfo.d.ts +2 -0
  725. package/dist/serialization/types/WhatsAppConversationInfo.js +2 -0
  726. package/dist/serialization/types/WhatsAppConversationInfoDirection.d.ts +7 -0
  727. package/dist/serialization/types/{ExtendedSubscriptionResponseModelBillingPeriod.js → WhatsAppConversationInfoDirection.js} +2 -2
  728. package/dist/serialization/types/WordTimestamp.d.ts +11 -0
  729. package/dist/serialization/types/{PendingSubscriptionSwitchResponseModelNextBillingPeriod.js → WordTimestamp.js} +6 -2
  730. package/dist/serialization/types/WorkflowToolNestedToolsStepModelInput.d.ts +2 -2
  731. package/dist/serialization/types/WorkflowToolNestedToolsStepModelInput.js +2 -2
  732. package/dist/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +2 -1
  733. package/dist/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +2 -0
  734. package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutput.d.ts +2 -2
  735. package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutput.js +2 -2
  736. package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +2 -1
  737. package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +2 -0
  738. package/dist/serialization/types/index.d.ts +11 -8
  739. package/dist/serialization/types/index.js +11 -8
  740. package/dist/version.d.ts +1 -1
  741. package/dist/version.js +1 -1
  742. package/dist/wrapper/ElevenLabsClient.d.ts +1 -1
  743. package/dist/wrapper/music.d.ts +4 -4
  744. package/dist/wrapper/music.js +1 -1
  745. package/dist/wrapper/realtime/scribe.d.ts +2 -2
  746. package/dist/wrapper/speechToText.d.ts +1 -1
  747. package/dist/wrapper/speechToText.js +1 -1
  748. package/dist/wrapper/webhooks.d.ts +1 -1
  749. package/dist/wrapper/webhooks.js +1 -1
  750. package/errors/ElevenLabsError.js +5 -1
  751. package/errors/ElevenLabsTimeoutError.js +5 -1
  752. package/errors/handleNonStatusCodeError.d.ts +2 -0
  753. package/errors/handleNonStatusCodeError.js +65 -0
  754. package/package.json +1 -1
  755. package/reference.md +290 -222
  756. package/serialization/resources/conversationalAi/resources/index.d.ts +1 -0
  757. package/serialization/resources/conversationalAi/resources/index.js +1 -0
  758. package/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.d.ts +15 -0
  759. package/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.js +47 -0
  760. package/serialization/resources/conversationalAi/resources/twilio/client/requests/index.d.ts +1 -0
  761. package/serialization/resources/conversationalAi/resources/twilio/client/requests/index.js +3 -1
  762. package/serialization/resources/conversationalAi/resources/twilio/index.d.ts +1 -0
  763. package/serialization/resources/conversationalAi/resources/twilio/index.js +1 -0
  764. package/serialization/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.d.ts +7 -0
  765. package/serialization/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.js +39 -0
  766. package/serialization/resources/conversationalAi/resources/twilio/types/index.d.ts +1 -0
  767. package/serialization/resources/conversationalAi/resources/twilio/types/index.js +17 -0
  768. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +3 -0
  769. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +3 -0
  770. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +3 -0
  771. package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.js +3 -0
  772. package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -0
  773. package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +1 -0
  774. package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +2 -0
  775. package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +2 -0
  776. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +2 -2
  777. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js +2 -2
  778. package/{dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts → serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts} +2 -2
  779. package/{dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js → serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js} +2 -2
  780. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +2 -2
  781. package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js +2 -2
  782. package/{dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts → serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts} +2 -2
  783. package/serialization/resources/serviceAccounts/resources/apiKeys/types/{BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js → BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js} +2 -2
  784. package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +2 -2
  785. package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +2 -2
  786. package/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.d.ts +2 -2
  787. package/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.js +2 -2
  788. package/serialization/resources/studio/types/{BodyCreatePodcastV1StudioPodcastsPostSourceItem.d.ts → BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.d.ts} +3 -3
  789. package/{dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceItem.js → serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.js} +2 -2
  790. package/serialization/resources/studio/types/index.d.ts +1 -1
  791. package/serialization/resources/studio/types/index.js +1 -1
  792. package/serialization/types/BackupLlmDefault.d.ts +3 -1
  793. package/serialization/types/BackupLlmDefault.js +3 -1
  794. package/serialization/types/BackupLlmDisabled.d.ts +3 -1
  795. package/serialization/types/BackupLlmDisabled.js +3 -1
  796. package/serialization/types/BackupLlmOverride.d.ts +1 -0
  797. package/serialization/types/BackupLlmOverride.js +1 -0
  798. package/serialization/types/BillingPeriod.d.ts +7 -0
  799. package/serialization/types/{ExtendedSubscriptionResponseModelBillingPeriod.js → BillingPeriod.js} +2 -2
  800. package/serialization/types/CharacterRefreshPeriod.d.ts +7 -0
  801. package/serialization/types/CharacterRefreshPeriod.js +39 -0
  802. package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +20 -0
  803. package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +52 -0
  804. package/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
  805. package/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
  806. package/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +2 -1
  807. package/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.js +2 -0
  808. package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
  809. package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
  810. package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +2 -1
  811. package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +2 -0
  812. package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -1
  813. package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -1
  814. package/serialization/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.d.ts +13 -0
  815. package/serialization/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.js +45 -0
  816. package/serialization/types/{ConversationHistoryTranscriptToolCallCommonModel.d.ts → ConversationHistoryTranscriptToolCallCommonModelInput.d.ts} +4 -4
  817. package/{dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModel.js → serialization/types/ConversationHistoryTranscriptToolCallCommonModelInput.js} +4 -4
  818. package/{dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts → serialization/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.d.ts} +7 -3
  819. package/serialization/types/{ConversationHistoryTranscriptToolCallCommonModelToolDetails.js → ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.js} +4 -2
  820. package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutput.d.ts +16 -0
  821. package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutput.js +48 -0
  822. package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.d.ts +23 -0
  823. package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.js +53 -0
  824. package/serialization/types/ConversationHistoryTranscriptToolCallWebhookDetails.d.ts +1 -0
  825. package/serialization/types/ConversationHistoryTranscriptToolCallWebhookDetails.js +1 -0
  826. package/serialization/types/DetailedMusicResponse.d.ts +2 -0
  827. package/serialization/types/DetailedMusicResponse.js +2 -0
  828. package/{dist/serialization/types/DiscountResposneModel.d.ts → serialization/types/DiscountResponseModel.d.ts} +2 -2
  829. package/serialization/types/{DiscountResposneModel.js → DiscountResponseModel.js} +2 -2
  830. package/serialization/types/DubbingResource.d.ts +2 -2
  831. package/serialization/types/DubbingResource.js +2 -2
  832. package/serialization/types/InvoiceResponse.d.ts +2 -2
  833. package/serialization/types/InvoiceResponse.js +2 -2
  834. package/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -2
  835. package/serialization/types/PendingSubscriptionSwitchResponseModel.js +2 -2
  836. package/serialization/types/PodcastTextSource.d.ts +1 -0
  837. package/serialization/types/PodcastTextSource.js +1 -0
  838. package/serialization/types/PodcastUrlSource.d.ts +1 -0
  839. package/serialization/types/PodcastUrlSource.js +1 -0
  840. package/serialization/types/RagConfig.d.ts +1 -0
  841. package/serialization/types/RagConfig.js +1 -0
  842. package/serialization/types/RagConfigWorkflowOverride.d.ts +1 -0
  843. package/serialization/types/RagConfigWorkflowOverride.js +1 -0
  844. package/serialization/types/Subscription.d.ts +4 -4
  845. package/serialization/types/Subscription.js +4 -4
  846. package/serialization/types/SubscriptionResponse.d.ts +4 -4
  847. package/serialization/types/SubscriptionResponse.js +4 -4
  848. package/serialization/types/SystemToolConfigInput.d.ts +1 -0
  849. package/serialization/types/SystemToolConfigInput.js +1 -0
  850. package/serialization/types/SystemToolConfigOutput.d.ts +1 -0
  851. package/serialization/types/SystemToolConfigOutput.js +1 -0
  852. package/serialization/types/WhatsAppConversationInfo.d.ts +2 -0
  853. package/serialization/types/WhatsAppConversationInfo.js +2 -0
  854. package/serialization/types/WhatsAppConversationInfoDirection.d.ts +7 -0
  855. package/serialization/types/WhatsAppConversationInfoDirection.js +39 -0
  856. package/serialization/types/WordTimestamp.d.ts +11 -0
  857. package/{dist/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js → serialization/types/WordTimestamp.js} +6 -2
  858. package/serialization/types/WorkflowToolNestedToolsStepModelInput.d.ts +2 -2
  859. package/serialization/types/WorkflowToolNestedToolsStepModelInput.js +2 -2
  860. package/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +2 -1
  861. package/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +2 -0
  862. package/serialization/types/WorkflowToolNestedToolsStepModelOutput.d.ts +2 -2
  863. package/serialization/types/WorkflowToolNestedToolsStepModelOutput.js +2 -2
  864. package/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +2 -1
  865. package/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +2 -0
  866. package/serialization/types/index.d.ts +11 -8
  867. package/serialization/types/index.js +11 -8
  868. package/version.d.ts +1 -1
  869. package/version.js +1 -1
  870. package/wrapper/ElevenLabsClient.d.ts +1 -1
  871. package/wrapper/music.d.ts +4 -4
  872. package/wrapper/music.js +1 -1
  873. package/wrapper/realtime/scribe.d.ts +2 -2
  874. package/wrapper/speechToText.d.ts +1 -1
  875. package/wrapper/speechToText.js +1 -1
  876. package/wrapper/webhooks.d.ts +1 -1
  877. package/wrapper/webhooks.js +1 -1
  878. package/api/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +0 -13
  879. package/api/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +0 -7
  880. package/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
  881. package/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +0 -10
  882. package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +0 -8
  883. package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +0 -11
  884. package/api/types/SubscriptionResponseModelBillingPeriod.d.ts +0 -7
  885. package/api/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
  886. package/api/types/SubscriptionResponseModelCharacterRefreshPeriod.js +0 -10
  887. package/core/fetcher/ResponseWithBody.d.ts +0 -4
  888. package/core/fetcher/ResponseWithBody.js +0 -6
  889. package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +0 -13
  890. package/dist/api/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +0 -7
  891. package/dist/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
  892. package/dist/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +0 -10
  893. package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +0 -8
  894. package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +0 -11
  895. package/dist/api/types/SubscriptionResponseModelBillingPeriod.d.ts +0 -7
  896. package/dist/api/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
  897. package/dist/api/types/SubscriptionResponseModelCharacterRefreshPeriod.js +0 -10
  898. package/dist/core/fetcher/ResponseWithBody.d.ts +0 -4
  899. package/dist/core/fetcher/ResponseWithBody.js +0 -6
  900. package/dist/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +0 -7
  901. package/dist/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
  902. package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +0 -7
  903. package/dist/serialization/types/SubscriptionResponseModelBillingPeriod.d.ts +0 -7
  904. package/dist/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
  905. package/dist/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.js +0 -39
  906. package/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +0 -7
  907. package/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
  908. package/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +0 -39
  909. package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +0 -7
  910. package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +0 -39
  911. package/serialization/types/SubscriptionResponseModelBillingPeriod.d.ts +0 -7
  912. package/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
  913. package/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.js +0 -39
  914. /package/api/resources/{studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceItem.js → conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.js} +0 -0
  915. /package/api/{types/ConversationHistoryTranscriptToolCallCommonModel.js → resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.js} +0 -0
  916. /package/api/types/{ConversationHistoryTranscriptToolCallCommonModelToolDetails.js → ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js} +0 -0
  917. /package/api/types/{DiscountResposneModel.js → ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.js} +0 -0
  918. /package/{dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceItem.js → api/types/ConversationHistoryTranscriptToolCallCommonModelInput.js} +0 -0
  919. /package/{dist/api/types/ConversationHistoryTranscriptToolCallCommonModel.js → api/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.js} +0 -0
  920. /package/{dist/api/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.js → api/types/ConversationHistoryTranscriptToolCallCommonModelOutput.js} +0 -0
  921. /package/{dist/api/types/DiscountResposneModel.js → api/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.js} +0 -0
@@ -1,18 +1,18 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient";
2
+ import { type NormalizedClientOptions } from "../../../../../../../../BaseClient";
2
3
  import * as core from "../../../../../../../../core";
3
- export declare namespace Audio {
4
- interface Options extends BaseClientOptions {
5
- }
4
+ export declare namespace AudioClient {
5
+ type Options = BaseClientOptions;
6
6
  interface RequestOptions extends BaseRequestOptions {
7
7
  }
8
8
  }
9
- export declare class Audio {
10
- protected readonly _options: Audio.Options;
11
- constructor(_options?: Audio.Options);
9
+ export declare class AudioClient {
10
+ protected readonly _options: NormalizedClientOptions<AudioClient.Options>;
11
+ constructor(options?: AudioClient.Options);
12
12
  /**
13
13
  * Returns the audio corresponding to a sample attached to a voice.
14
14
  * @throws {@link ElevenLabs.UnprocessableEntityError}
15
15
  */
16
- get(voice_id: string, sample_id: string, requestOptions?: Audio.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
16
+ get(voice_id: string, sample_id: string, requestOptions?: AudioClient.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
17
17
  private __get;
18
18
  }
@@ -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
  * Returns the audio corresponding to a sample attached to a voice.
@@ -97,22 +99,8 @@ class Audio {
97
99
  });
98
100
  }
99
101
  }
100
- switch (_response.error.reason) {
101
- case "non-json":
102
- throw new errors.ElevenLabsError({
103
- statusCode: _response.error.statusCode,
104
- body: _response.error.rawBody,
105
- rawResponse: _response.rawResponse,
106
- });
107
- case "timeout":
108
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/voices/{voice_id}/samples/{sample_id}/audio.");
109
- case "unknown":
110
- throw new errors.ElevenLabsError({
111
- message: _response.error.errorMessage,
112
- rawResponse: _response.rawResponse,
113
- });
114
- }
102
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/voices/{voice_id}/samples/{sample_id}/audio");
115
103
  });
116
104
  }
117
105
  }
118
- exports.Audio = Audio;
106
+ exports.AudioClient = AudioClient;
@@ -1,44 +1,44 @@
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 Settings {
5
- interface Options extends BaseClientOptions {
6
- }
5
+ export declare namespace SettingsClient {
6
+ type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
8
8
  }
9
9
  }
10
- export declare class Settings {
11
- protected readonly _options: Settings.Options;
12
- constructor(_options?: Settings.Options);
10
+ export declare class SettingsClient {
11
+ protected readonly _options: NormalizedClientOptions<SettingsClient.Options>;
12
+ constructor(options?: SettingsClient.Options);
13
13
  /**
14
14
  * Gets the default settings for voices. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
15
15
  *
16
- * @param {Settings.RequestOptions} requestOptions - Request-specific configuration.
16
+ * @param {SettingsClient.RequestOptions} requestOptions - Request-specific configuration.
17
17
  *
18
18
  * @example
19
19
  * await client.voices.settings.getDefault()
20
20
  */
21
- getDefault(requestOptions?: Settings.RequestOptions): core.HttpResponsePromise<ElevenLabs.VoiceSettings>;
21
+ getDefault(requestOptions?: SettingsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.VoiceSettings>;
22
22
  private __getDefault;
23
23
  /**
24
24
  * Returns the settings for a specific voice. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
25
25
  *
26
26
  * @param {string} voice_id - Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
27
- * @param {Settings.RequestOptions} requestOptions - Request-specific configuration.
27
+ * @param {SettingsClient.RequestOptions} requestOptions - Request-specific configuration.
28
28
  *
29
29
  * @throws {@link ElevenLabs.UnprocessableEntityError}
30
30
  *
31
31
  * @example
32
32
  * await client.voices.settings.get("21m00Tcm4TlvDq8ikWAM")
33
33
  */
34
- get(voice_id: string, requestOptions?: Settings.RequestOptions): core.HttpResponsePromise<ElevenLabs.VoiceSettings>;
34
+ get(voice_id: string, requestOptions?: SettingsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.VoiceSettings>;
35
35
  private __get;
36
36
  /**
37
37
  * Edit your settings for a specific voice. "similarity_boost" corresponds to "Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
38
38
  *
39
39
  * @param {string} voice_id - ID of the voice to be used. You can use the [Get voices](/docs/api-reference/voices/search) endpoint list all the available voices.
40
40
  * @param {ElevenLabs.VoiceSettings} request
41
- * @param {Settings.RequestOptions} requestOptions - Request-specific configuration.
41
+ * @param {SettingsClient.RequestOptions} requestOptions - Request-specific configuration.
42
42
  *
43
43
  * @throws {@link ElevenLabs.UnprocessableEntityError}
44
44
  *
@@ -51,6 +51,6 @@ export declare class Settings {
51
51
  * speed: 1
52
52
  * })
53
53
  */
54
- update(voice_id: string, request: ElevenLabs.VoiceSettings, requestOptions?: Settings.RequestOptions): core.HttpResponsePromise<ElevenLabs.EditVoiceSettingsResponseModel>;
54
+ update(voice_id: string, request: ElevenLabs.VoiceSettings, requestOptions?: SettingsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.EditVoiceSettingsResponseModel>;
55
55
  private __update;
56
56
  }
@@ -43,21 +43,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
43
43
  });
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.Settings = void 0;
46
+ exports.SettingsClient = 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 Settings {
54
- constructor(_options = {}) {
55
- this._options = _options;
55
+ class SettingsClient {
56
+ constructor(options = {}) {
57
+ this._options = (0, BaseClient_1.normalizeClientOptions)(options);
56
58
  }
57
59
  /**
58
60
  * Gets the default settings for voices. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
59
61
  *
60
- * @param {Settings.RequestOptions} requestOptions - Request-specific configuration.
62
+ * @param {SettingsClient.RequestOptions} requestOptions - Request-specific configuration.
61
63
  *
62
64
  * @example
63
65
  * await client.voices.settings.getDefault()
@@ -98,28 +100,14 @@ class Settings {
98
100
  rawResponse: _response.rawResponse,
99
101
  });
100
102
  }
101
- switch (_response.error.reason) {
102
- case "non-json":
103
- throw new errors.ElevenLabsError({
104
- statusCode: _response.error.statusCode,
105
- body: _response.error.rawBody,
106
- rawResponse: _response.rawResponse,
107
- });
108
- case "timeout":
109
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/voices/settings/default.");
110
- case "unknown":
111
- throw new errors.ElevenLabsError({
112
- message: _response.error.errorMessage,
113
- rawResponse: _response.rawResponse,
114
- });
115
- }
103
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/voices/settings/default");
116
104
  });
117
105
  }
118
106
  /**
119
107
  * Returns the settings for a specific voice. "similarity_boost" corresponds to"Clarity + Similarity Enhancement" in the web app and "stability" corresponds to "Stability" slider in the web app.
120
108
  *
121
109
  * @param {string} voice_id - Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
122
- * @param {Settings.RequestOptions} requestOptions - Request-specific configuration.
110
+ * @param {SettingsClient.RequestOptions} requestOptions - Request-specific configuration.
123
111
  *
124
112
  * @throws {@link ElevenLabs.UnprocessableEntityError}
125
113
  *
@@ -172,21 +160,7 @@ class Settings {
172
160
  });
173
161
  }
174
162
  }
175
- switch (_response.error.reason) {
176
- case "non-json":
177
- throw new errors.ElevenLabsError({
178
- statusCode: _response.error.statusCode,
179
- body: _response.error.rawBody,
180
- rawResponse: _response.rawResponse,
181
- });
182
- case "timeout":
183
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/voices/{voice_id}/settings.");
184
- case "unknown":
185
- throw new errors.ElevenLabsError({
186
- message: _response.error.errorMessage,
187
- rawResponse: _response.rawResponse,
188
- });
189
- }
163
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/voices/{voice_id}/settings");
190
164
  });
191
165
  }
192
166
  /**
@@ -194,7 +168,7 @@ class Settings {
194
168
  *
195
169
  * @param {string} voice_id - ID of the voice to be used. You can use the [Get voices](/docs/api-reference/voices/search) endpoint list all the available voices.
196
170
  * @param {ElevenLabs.VoiceSettings} request
197
- * @param {Settings.RequestOptions} requestOptions - Request-specific configuration.
171
+ * @param {SettingsClient.RequestOptions} requestOptions - Request-specific configuration.
198
172
  *
199
173
  * @throws {@link ElevenLabs.UnprocessableEntityError}
200
174
  *
@@ -256,22 +230,8 @@ class Settings {
256
230
  });
257
231
  }
258
232
  }
259
- switch (_response.error.reason) {
260
- case "non-json":
261
- throw new errors.ElevenLabsError({
262
- statusCode: _response.error.statusCode,
263
- body: _response.error.rawBody,
264
- rawResponse: _response.rawResponse,
265
- });
266
- case "timeout":
267
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/voices/{voice_id}/settings/edit.");
268
- case "unknown":
269
- throw new errors.ElevenLabsError({
270
- message: _response.error.errorMessage,
271
- rawResponse: _response.rawResponse,
272
- });
273
- }
233
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/voices/{voice_id}/settings/edit");
274
234
  });
275
235
  }
276
236
  }
277
- exports.Settings = Settings;
237
+ exports.SettingsClient = SettingsClient;
@@ -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 Webhooks {
5
- interface Options extends BaseClientOptions {
6
- }
5
+ export declare namespace WebhooksClient {
6
+ type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
8
8
  }
9
9
  }
10
- export declare class Webhooks {
11
- protected readonly _options: Webhooks.Options;
12
- constructor(_options?: Webhooks.Options);
10
+ export declare class WebhooksClient {
11
+ protected readonly _options: NormalizedClientOptions<WebhooksClient.Options>;
12
+ constructor(options?: WebhooksClient.Options);
13
13
  /**
14
14
  * List all webhooks for a workspace
15
15
  *
16
16
  * @param {ElevenLabs.WebhooksListRequest} request
17
- * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
17
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
18
18
  *
19
19
  * @throws {@link ElevenLabs.UnprocessableEntityError}
20
20
  *
@@ -23,13 +23,13 @@ export declare class Webhooks {
23
23
  * includeUsages: false
24
24
  * })
25
25
  */
26
- list(request?: ElevenLabs.WebhooksListRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceWebhookListResponseModel>;
26
+ list(request?: ElevenLabs.WebhooksListRequest, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceWebhookListResponseModel>;
27
27
  private __list;
28
28
  /**
29
29
  * Create a new webhook for the workspace with the specified authentication type.
30
30
  *
31
31
  * @param {ElevenLabs.BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost} request
32
- * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
32
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
33
33
  *
34
34
  * @throws {@link ElevenLabs.UnprocessableEntityError}
35
35
  *
@@ -42,27 +42,27 @@ export declare class Webhooks {
42
42
  * }
43
43
  * })
44
44
  */
45
- create(request: ElevenLabs.BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceCreateWebhookResponseModel>;
45
+ create(request: ElevenLabs.BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceCreateWebhookResponseModel>;
46
46
  private __create;
47
47
  /**
48
48
  * Delete the specified workspace webhook
49
49
  *
50
50
  * @param {string} webhook_id - The unique ID for the webhook
51
- * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
51
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
52
52
  *
53
53
  * @throws {@link ElevenLabs.UnprocessableEntityError}
54
54
  *
55
55
  * @example
56
56
  * await client.webhooks.delete("G007vmtq9uWYl7SUW9zGS8GZZa1K")
57
57
  */
58
- delete(webhook_id: string, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<ElevenLabs.DeleteWorkspaceWebhookResponseModel>;
58
+ delete(webhook_id: string, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.DeleteWorkspaceWebhookResponseModel>;
59
59
  private __delete;
60
60
  /**
61
61
  * Update the specified workspace webhook
62
62
  *
63
63
  * @param {string} webhook_id - The unique ID for the webhook
64
64
  * @param {ElevenLabs.BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch} request
65
- * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
65
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
66
66
  *
67
67
  * @throws {@link ElevenLabs.UnprocessableEntityError}
68
68
  *
@@ -72,6 +72,6 @@ export declare class Webhooks {
72
72
  * name: "My Callback Webhook"
73
73
  * })
74
74
  */
75
- update(webhook_id: string, request: ElevenLabs.BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<ElevenLabs.PatchWorkspaceWebhookResponseModel>;
75
+ update(webhook_id: string, request: ElevenLabs.BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch, requestOptions?: WebhooksClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.PatchWorkspaceWebhookResponseModel>;
76
76
  private __update;
77
77
  }
@@ -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.Webhooks = void 0;
46
+ exports.WebhooksClient = 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 Webhooks {
54
- constructor(_options = {}) {
55
- this._options = _options;
55
+ class WebhooksClient {
56
+ constructor(options = {}) {
57
+ this._options = (0, BaseClient_1.normalizeClientOptions)(options);
56
58
  }
57
59
  /**
58
60
  * List all webhooks for a workspace
59
61
  *
60
62
  * @param {ElevenLabs.WebhooksListRequest} request
61
- * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
63
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
62
64
  *
63
65
  * @throws {@link ElevenLabs.UnprocessableEntityError}
64
66
  *
@@ -118,28 +120,14 @@ class Webhooks {
118
120
  });
119
121
  }
120
122
  }
121
- switch (_response.error.reason) {
122
- case "non-json":
123
- throw new errors.ElevenLabsError({
124
- statusCode: _response.error.statusCode,
125
- body: _response.error.rawBody,
126
- rawResponse: _response.rawResponse,
127
- });
128
- case "timeout":
129
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/workspace/webhooks.");
130
- case "unknown":
131
- throw new errors.ElevenLabsError({
132
- message: _response.error.errorMessage,
133
- rawResponse: _response.rawResponse,
134
- });
135
- }
123
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/workspace/webhooks");
136
124
  });
137
125
  }
138
126
  /**
139
127
  * Create a new webhook for the workspace with the specified authentication type.
140
128
  *
141
129
  * @param {ElevenLabs.BodyCreateWorkspaceWebhookV1WorkspaceWebhooksPost} request
142
- * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
130
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
143
131
  *
144
132
  * @throws {@link ElevenLabs.UnprocessableEntityError}
145
133
  *
@@ -203,28 +191,14 @@ class Webhooks {
203
191
  });
204
192
  }
205
193
  }
206
- switch (_response.error.reason) {
207
- case "non-json":
208
- throw new errors.ElevenLabsError({
209
- statusCode: _response.error.statusCode,
210
- body: _response.error.rawBody,
211
- rawResponse: _response.rawResponse,
212
- });
213
- case "timeout":
214
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/workspace/webhooks.");
215
- case "unknown":
216
- throw new errors.ElevenLabsError({
217
- message: _response.error.errorMessage,
218
- rawResponse: _response.rawResponse,
219
- });
220
- }
194
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/workspace/webhooks");
221
195
  });
222
196
  }
223
197
  /**
224
198
  * Delete the specified workspace webhook
225
199
  *
226
200
  * @param {string} webhook_id - The unique ID for the webhook
227
- * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
201
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
228
202
  *
229
203
  * @throws {@link ElevenLabs.UnprocessableEntityError}
230
204
  *
@@ -277,21 +251,7 @@ class Webhooks {
277
251
  });
278
252
  }
279
253
  }
280
- switch (_response.error.reason) {
281
- case "non-json":
282
- throw new errors.ElevenLabsError({
283
- statusCode: _response.error.statusCode,
284
- body: _response.error.rawBody,
285
- rawResponse: _response.rawResponse,
286
- });
287
- case "timeout":
288
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling DELETE /v1/workspace/webhooks/{webhook_id}.");
289
- case "unknown":
290
- throw new errors.ElevenLabsError({
291
- message: _response.error.errorMessage,
292
- rawResponse: _response.rawResponse,
293
- });
294
- }
254
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/workspace/webhooks/{webhook_id}");
295
255
  });
296
256
  }
297
257
  /**
@@ -299,7 +259,7 @@ class Webhooks {
299
259
  *
300
260
  * @param {string} webhook_id - The unique ID for the webhook
301
261
  * @param {ElevenLabs.BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch} request
302
- * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
262
+ * @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
303
263
  *
304
264
  * @throws {@link ElevenLabs.UnprocessableEntityError}
305
265
  *
@@ -360,22 +320,8 @@ class Webhooks {
360
320
  });
361
321
  }
362
322
  }
363
- switch (_response.error.reason) {
364
- case "non-json":
365
- throw new errors.ElevenLabsError({
366
- statusCode: _response.error.statusCode,
367
- body: _response.error.rawBody,
368
- rawResponse: _response.rawResponse,
369
- });
370
- case "timeout":
371
- throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling PATCH /v1/workspace/webhooks/{webhook_id}.");
372
- case "unknown":
373
- throw new errors.ElevenLabsError({
374
- message: _response.error.errorMessage,
375
- rawResponse: _response.rawResponse,
376
- });
377
- }
323
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v1/workspace/webhooks/{webhook_id}");
378
324
  });
379
325
  }
380
326
  }
381
- exports.Webhooks = Webhooks;
327
+ exports.WebhooksClient = WebhooksClient;
@@ -1,21 +1,21 @@
1
1
  import type { BaseClientOptions } from "../../../../BaseClient";
2
- import { Groups } from "../resources/groups/client/Client";
3
- import { Invites } from "../resources/invites/client/Client";
4
- import { Members } from "../resources/members/client/Client";
5
- import { Resources } from "../resources/resources/client/Client";
6
- export declare namespace Workspace {
7
- interface Options extends BaseClientOptions {
8
- }
2
+ import { type NormalizedClientOptions } from "../../../../BaseClient";
3
+ import { GroupsClient } from "../resources/groups/client/Client";
4
+ import { InvitesClient } from "../resources/invites/client/Client";
5
+ import { MembersClient } from "../resources/members/client/Client";
6
+ import { ResourcesClient } from "../resources/resources/client/Client";
7
+ export declare namespace WorkspaceClient {
8
+ type Options = BaseClientOptions;
9
9
  }
10
- export declare class Workspace {
11
- protected readonly _options: Workspace.Options;
12
- protected _groups: Groups | undefined;
13
- protected _invites: Invites | undefined;
14
- protected _members: Members | undefined;
15
- protected _resources: Resources | undefined;
16
- constructor(_options?: Workspace.Options);
17
- get groups(): Groups;
18
- get invites(): Invites;
19
- get members(): Members;
20
- get resources(): Resources;
10
+ export declare class WorkspaceClient {
11
+ protected readonly _options: NormalizedClientOptions<WorkspaceClient.Options>;
12
+ protected _groups: GroupsClient | undefined;
13
+ protected _invites: InvitesClient | undefined;
14
+ protected _members: MembersClient | undefined;
15
+ protected _resources: ResourcesClient | undefined;
16
+ constructor(options?: WorkspaceClient.Options);
17
+ get groups(): GroupsClient;
18
+ get invites(): InvitesClient;
19
+ get members(): MembersClient;
20
+ get resources(): ResourcesClient;
21
21
  }
@@ -1,30 +1,31 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Workspace = void 0;
4
+ exports.WorkspaceClient = void 0;
5
+ const BaseClient_1 = require("../../../../BaseClient");
5
6
  const Client_1 = require("../resources/groups/client/Client");
6
7
  const Client_2 = require("../resources/invites/client/Client");
7
8
  const Client_3 = require("../resources/members/client/Client");
8
9
  const Client_4 = require("../resources/resources/client/Client");
9
- class Workspace {
10
- constructor(_options = {}) {
11
- this._options = _options;
10
+ class WorkspaceClient {
11
+ constructor(options = {}) {
12
+ this._options = (0, BaseClient_1.normalizeClientOptions)(options);
12
13
  }
13
14
  get groups() {
14
15
  var _a;
15
- return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_1.Groups(this._options)));
16
+ return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_1.GroupsClient(this._options)));
16
17
  }
17
18
  get invites() {
18
19
  var _a;
19
- return ((_a = this._invites) !== null && _a !== void 0 ? _a : (this._invites = new Client_2.Invites(this._options)));
20
+ return ((_a = this._invites) !== null && _a !== void 0 ? _a : (this._invites = new Client_2.InvitesClient(this._options)));
20
21
  }
21
22
  get members() {
22
23
  var _a;
23
- return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new Client_3.Members(this._options)));
24
+ return ((_a = this._members) !== null && _a !== void 0 ? _a : (this._members = new Client_3.MembersClient(this._options)));
24
25
  }
25
26
  get resources() {
26
27
  var _a;
27
- return ((_a = this._resources) !== null && _a !== void 0 ? _a : (this._resources = new Client_4.Resources(this._options)));
28
+ return ((_a = this._resources) !== null && _a !== void 0 ? _a : (this._resources = new Client_4.ResourcesClient(this._options)));
28
29
  }
29
30
  }
30
- exports.Workspace = Workspace;
31
+ exports.WorkspaceClient = WorkspaceClient;
@@ -1,23 +1,23 @@
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 { Members } from "../resources/members/client/Client";
5
- export declare namespace Groups {
6
- interface Options extends BaseClientOptions {
7
- }
5
+ import { MembersClient } from "../resources/members/client/Client";
6
+ export declare namespace GroupsClient {
7
+ type Options = BaseClientOptions;
8
8
  interface RequestOptions extends BaseRequestOptions {
9
9
  }
10
10
  }
11
- export declare class Groups {
12
- protected readonly _options: Groups.Options;
13
- protected _members: Members | undefined;
14
- constructor(_options?: Groups.Options);
15
- get members(): Members;
11
+ export declare class GroupsClient {
12
+ protected readonly _options: NormalizedClientOptions<GroupsClient.Options>;
13
+ protected _members: MembersClient | undefined;
14
+ constructor(options?: GroupsClient.Options);
15
+ get members(): MembersClient;
16
16
  /**
17
17
  * Searches for user groups in the workspace. Multiple or no groups may be returned.
18
18
  *
19
19
  * @param {ElevenLabs.workspace.GroupsSearchRequest} request
20
- * @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
20
+ * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
21
21
  *
22
22
  * @throws {@link ElevenLabs.UnprocessableEntityError}
23
23
  *
@@ -26,6 +26,6 @@ export declare class Groups {
26
26
  * name: "name"
27
27
  * })
28
28
  */
29
- search(request: ElevenLabs.workspace.GroupsSearchRequest, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceGroupByNameResponseModel[]>;
29
+ search(request: ElevenLabs.workspace.GroupsSearchRequest, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceGroupByNameResponseModel[]>;
30
30
  private __search;
31
31
  }