@hedra/sdk 3.0.0 → 4.0.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 (256) hide show
  1. package/dist/cjs/BaseClient.d.ts +2 -2
  2. package/dist/cjs/BaseClient.js +3 -3
  3. package/dist/cjs/api/resources/billing/client/Client.js +2 -2
  4. package/dist/cjs/api/resources/files/client/Client.js +1 -1
  5. package/dist/cjs/api/resources/jobs/client/Client.d.ts +407 -0
  6. package/dist/cjs/api/resources/jobs/client/Client.js +1882 -799
  7. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsAudioIsolation.d.ts +19 -0
  8. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsAudioIsolation.js +3 -0
  9. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsEnglishStsV2.d.ts +20 -0
  10. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsEnglishStsV2.js +3 -0
  11. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsMultilingualStsV2.d.ts +20 -0
  12. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsMultilingualStsV2.js +3 -0
  13. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsSoundEffects.d.ts +17 -0
  14. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsSoundEffects.js +3 -0
  15. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsVoiceClone.d.ts +20 -0
  16. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsVoiceClone.js +3 -0
  17. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscaler.d.ts +20 -0
  18. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscaler.js +3 -0
  19. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscalerWonder.d.ts +20 -0
  20. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscalerWonder.js +3 -0
  21. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscaler.d.ts +20 -0
  22. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscaler.js +3 -0
  23. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerHyperion25.d.ts +19 -0
  24. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerHyperion25.js +3 -0
  25. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightFast.d.ts +20 -0
  26. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightFast.js +3 -0
  27. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightHq.d.ts +20 -0
  28. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightHq.js +3 -0
  29. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightPrecise.d.ts +20 -0
  30. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightPrecise.js +3 -0
  31. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyWan30.d.ts +20 -0
  32. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyWan30.js +3 -0
  33. package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +13 -0
  34. package/dist/cjs/api/resources/keys/client/Client.js +4 -4
  35. package/dist/cjs/api/resources/logDrains/client/Client.js +6 -6
  36. package/dist/cjs/api/resources/models/client/Client.d.ts +2 -1
  37. package/dist/cjs/api/resources/models/client/Client.js +11 -7
  38. package/dist/cjs/api/resources/tokens/client/Client.js +1 -1
  39. package/dist/cjs/api/resources/webhooks/client/Client.js +7 -7
  40. package/dist/cjs/api/types/ApiKeyScope.d.ts +1 -0
  41. package/dist/cjs/api/types/ApiKeyScope.js +1 -0
  42. package/dist/cjs/api/types/ErrorCode.d.ts +1 -0
  43. package/dist/cjs/api/types/ErrorCode.js +1 -0
  44. package/dist/cjs/api/types/InputElevenlabsAudioIsolation.d.ts +8 -0
  45. package/dist/cjs/api/types/InputElevenlabsAudioIsolation.js +3 -0
  46. package/dist/cjs/api/types/InputElevenlabsAudioIsolationAudio.d.ts +23 -0
  47. package/dist/cjs/api/types/InputElevenlabsAudioIsolationAudio.js +3 -0
  48. package/dist/cjs/api/types/InputElevenlabsEnglishStsV2.d.ts +10 -0
  49. package/dist/cjs/api/types/InputElevenlabsEnglishStsV2.js +3 -0
  50. package/dist/cjs/api/types/InputElevenlabsEnglishStsV2Audio.d.ts +23 -0
  51. package/dist/cjs/api/types/InputElevenlabsEnglishStsV2Audio.js +3 -0
  52. package/dist/cjs/api/types/InputElevenlabsFlashMultilingualV2.d.ts +1 -1
  53. package/dist/cjs/api/types/InputElevenlabsFlashV2.d.ts +1 -1
  54. package/dist/cjs/api/types/InputElevenlabsMultilingualStsV2.d.ts +10 -0
  55. package/dist/cjs/api/types/InputElevenlabsMultilingualStsV2.js +3 -0
  56. package/dist/cjs/api/types/InputElevenlabsMultilingualStsV2Audio.d.ts +23 -0
  57. package/dist/cjs/api/types/InputElevenlabsMultilingualStsV2Audio.js +3 -0
  58. package/dist/cjs/api/types/InputElevenlabsMultilingualV2.d.ts +1 -1
  59. package/dist/cjs/api/types/InputElevenlabsSoundEffects.d.ts +13 -0
  60. package/dist/cjs/api/types/InputElevenlabsSoundEffects.js +3 -0
  61. package/dist/cjs/api/types/InputElevenlabsV3.d.ts +1 -1
  62. package/dist/cjs/api/types/InputElevenlabsVoiceClone.d.ts +10 -0
  63. package/dist/cjs/api/types/InputElevenlabsVoiceClone.js +3 -0
  64. package/dist/cjs/api/types/InputElevenlabsVoiceCloneAudio.d.ts +23 -0
  65. package/dist/cjs/api/types/InputElevenlabsVoiceCloneAudio.js +3 -0
  66. package/dist/cjs/api/types/InputGptImage2.d.ts +1 -1
  67. package/dist/cjs/api/types/InputMinimaxSpeech25HdPreview.d.ts +1 -1
  68. package/dist/cjs/api/types/InputMinimaxSpeech25TurboPreview.d.ts +1 -1
  69. package/dist/cjs/api/types/InputSeedance15Pro.d.ts +2 -2
  70. package/dist/cjs/api/types/InputSeedance15ProEndImage.d.ts +1 -1
  71. package/dist/cjs/api/types/InputSeedance15ProStartImage.d.ts +1 -1
  72. package/dist/cjs/api/types/InputSeedance20.d.ts +3 -3
  73. package/dist/cjs/api/types/InputSeedance20EndImage.d.ts +1 -1
  74. package/dist/cjs/api/types/InputSeedance20Mini.d.ts +3 -3
  75. package/dist/cjs/api/types/InputSeedance20MiniEndImage.d.ts +1 -1
  76. package/dist/cjs/api/types/InputSeedance20MiniStartImage.d.ts +1 -1
  77. package/dist/cjs/api/types/InputSeedance20StartImage.d.ts +1 -1
  78. package/dist/cjs/api/types/InputSeedance25.d.ts +3 -3
  79. package/dist/cjs/api/types/InputSeedance25EndImage.d.ts +1 -1
  80. package/dist/cjs/api/types/InputSeedance25StartImage.d.ts +1 -1
  81. package/dist/cjs/api/types/InputTopazImageUpscaler.d.ts +41 -0
  82. package/dist/cjs/api/types/InputTopazImageUpscaler.js +27 -0
  83. package/dist/cjs/api/types/InputTopazImageUpscalerSourceImage.d.ts +23 -0
  84. package/dist/cjs/api/types/InputTopazImageUpscalerSourceImage.js +3 -0
  85. package/dist/cjs/api/types/InputTopazImageUpscalerWonder.d.ts +32 -0
  86. package/dist/cjs/api/types/InputTopazImageUpscalerWonder.js +19 -0
  87. package/dist/cjs/api/types/InputTopazImageUpscalerWonderSourceImage.d.ts +23 -0
  88. package/dist/cjs/api/types/InputTopazImageUpscalerWonderSourceImage.js +3 -0
  89. package/dist/cjs/api/types/InputTopazVideoUpscaler.d.ts +37 -0
  90. package/dist/cjs/api/types/InputTopazVideoUpscaler.js +23 -0
  91. package/dist/cjs/api/types/InputTopazVideoUpscalerHyperion25.d.ts +10 -0
  92. package/dist/cjs/api/types/InputTopazVideoUpscalerHyperion25.js +3 -0
  93. package/dist/cjs/api/types/InputTopazVideoUpscalerHyperion25SourceVideo.d.ts +23 -0
  94. package/dist/cjs/api/types/InputTopazVideoUpscalerHyperion25SourceVideo.js +3 -0
  95. package/dist/cjs/api/types/InputTopazVideoUpscalerSourceVideo.d.ts +23 -0
  96. package/dist/cjs/api/types/InputTopazVideoUpscalerSourceVideo.js +3 -0
  97. package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightFast.d.ts +23 -0
  98. package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightFast.js +13 -0
  99. package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightFastSourceVideo.d.ts +23 -0
  100. package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightFastSourceVideo.js +3 -0
  101. package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightHq.d.ts +23 -0
  102. package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightHq.js +13 -0
  103. package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightHqSourceVideo.d.ts +23 -0
  104. package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightHqSourceVideo.js +3 -0
  105. package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightPrecise.d.ts +31 -0
  106. package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightPrecise.js +20 -0
  107. package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightPreciseSourceVideo.d.ts +23 -0
  108. package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightPreciseSourceVideo.js +3 -0
  109. package/dist/cjs/api/types/InputWan30.d.ts +62 -0
  110. package/dist/cjs/api/types/InputWan30.js +27 -0
  111. package/dist/cjs/api/types/InputWan30AudiosItem.d.ts +20 -0
  112. package/dist/cjs/api/types/InputWan30AudiosItem.js +3 -0
  113. package/dist/cjs/api/types/InputWan30EndImage.d.ts +23 -0
  114. package/dist/cjs/api/types/InputWan30EndImage.js +3 -0
  115. package/dist/cjs/api/types/InputWan30ImagesItem.d.ts +20 -0
  116. package/dist/cjs/api/types/InputWan30ImagesItem.js +3 -0
  117. package/dist/cjs/api/types/InputWan30StartImage.d.ts +23 -0
  118. package/dist/cjs/api/types/InputWan30StartImage.js +3 -0
  119. package/dist/cjs/api/types/InputWan30VideosItem.d.ts +20 -0
  120. package/dist/cjs/api/types/InputWan30VideosItem.js +3 -0
  121. package/dist/cjs/api/types/OutputItem.d.ts +6 -0
  122. package/dist/cjs/api/types/UsageBucket.d.ts +2 -0
  123. package/dist/cjs/api/types/UsageResponse.d.ts +2 -0
  124. package/dist/cjs/api/types/index.d.ts +29 -0
  125. package/dist/cjs/api/types/index.js +29 -0
  126. package/dist/cjs/version.d.ts +1 -1
  127. package/dist/cjs/version.js +1 -1
  128. package/dist/esm/BaseClient.d.mts +2 -2
  129. package/dist/esm/BaseClient.mjs +3 -3
  130. package/dist/esm/api/resources/billing/client/Client.mjs +2 -2
  131. package/dist/esm/api/resources/files/client/Client.mjs +1 -1
  132. package/dist/esm/api/resources/jobs/client/Client.d.mts +407 -0
  133. package/dist/esm/api/resources/jobs/client/Client.mjs +1882 -799
  134. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsAudioIsolation.d.mts +19 -0
  135. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsAudioIsolation.mjs +2 -0
  136. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsEnglishStsV2.d.mts +20 -0
  137. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsEnglishStsV2.mjs +2 -0
  138. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsMultilingualStsV2.d.mts +20 -0
  139. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsMultilingualStsV2.mjs +2 -0
  140. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsSoundEffects.d.mts +17 -0
  141. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsSoundEffects.mjs +2 -0
  142. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsVoiceClone.d.mts +20 -0
  143. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsVoiceClone.mjs +2 -0
  144. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscaler.d.mts +20 -0
  145. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscaler.mjs +2 -0
  146. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscalerWonder.d.mts +20 -0
  147. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscalerWonder.mjs +2 -0
  148. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscaler.d.mts +20 -0
  149. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscaler.mjs +2 -0
  150. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerHyperion25.d.mts +19 -0
  151. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerHyperion25.mjs +2 -0
  152. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightFast.d.mts +20 -0
  153. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightFast.mjs +2 -0
  154. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightHq.d.mts +20 -0
  155. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightHq.mjs +2 -0
  156. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightPrecise.d.mts +20 -0
  157. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightPrecise.mjs +2 -0
  158. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyWan30.d.mts +20 -0
  159. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyWan30.mjs +2 -0
  160. package/dist/esm/api/resources/jobs/client/requests/index.d.mts +13 -0
  161. package/dist/esm/api/resources/keys/client/Client.mjs +4 -4
  162. package/dist/esm/api/resources/logDrains/client/Client.mjs +6 -6
  163. package/dist/esm/api/resources/models/client/Client.d.mts +2 -1
  164. package/dist/esm/api/resources/models/client/Client.mjs +11 -7
  165. package/dist/esm/api/resources/tokens/client/Client.mjs +1 -1
  166. package/dist/esm/api/resources/webhooks/client/Client.mjs +7 -7
  167. package/dist/esm/api/types/ApiKeyScope.d.mts +1 -0
  168. package/dist/esm/api/types/ApiKeyScope.mjs +1 -0
  169. package/dist/esm/api/types/ErrorCode.d.mts +1 -0
  170. package/dist/esm/api/types/ErrorCode.mjs +1 -0
  171. package/dist/esm/api/types/InputElevenlabsAudioIsolation.d.mts +8 -0
  172. package/dist/esm/api/types/InputElevenlabsAudioIsolation.mjs +2 -0
  173. package/dist/esm/api/types/InputElevenlabsAudioIsolationAudio.d.mts +23 -0
  174. package/dist/esm/api/types/InputElevenlabsAudioIsolationAudio.mjs +2 -0
  175. package/dist/esm/api/types/InputElevenlabsEnglishStsV2.d.mts +10 -0
  176. package/dist/esm/api/types/InputElevenlabsEnglishStsV2.mjs +2 -0
  177. package/dist/esm/api/types/InputElevenlabsEnglishStsV2Audio.d.mts +23 -0
  178. package/dist/esm/api/types/InputElevenlabsEnglishStsV2Audio.mjs +2 -0
  179. package/dist/esm/api/types/InputElevenlabsFlashMultilingualV2.d.mts +1 -1
  180. package/dist/esm/api/types/InputElevenlabsFlashV2.d.mts +1 -1
  181. package/dist/esm/api/types/InputElevenlabsMultilingualStsV2.d.mts +10 -0
  182. package/dist/esm/api/types/InputElevenlabsMultilingualStsV2.mjs +2 -0
  183. package/dist/esm/api/types/InputElevenlabsMultilingualStsV2Audio.d.mts +23 -0
  184. package/dist/esm/api/types/InputElevenlabsMultilingualStsV2Audio.mjs +2 -0
  185. package/dist/esm/api/types/InputElevenlabsMultilingualV2.d.mts +1 -1
  186. package/dist/esm/api/types/InputElevenlabsSoundEffects.d.mts +13 -0
  187. package/dist/esm/api/types/InputElevenlabsSoundEffects.mjs +2 -0
  188. package/dist/esm/api/types/InputElevenlabsV3.d.mts +1 -1
  189. package/dist/esm/api/types/InputElevenlabsVoiceClone.d.mts +10 -0
  190. package/dist/esm/api/types/InputElevenlabsVoiceClone.mjs +2 -0
  191. package/dist/esm/api/types/InputElevenlabsVoiceCloneAudio.d.mts +23 -0
  192. package/dist/esm/api/types/InputElevenlabsVoiceCloneAudio.mjs +2 -0
  193. package/dist/esm/api/types/InputGptImage2.d.mts +1 -1
  194. package/dist/esm/api/types/InputMinimaxSpeech25HdPreview.d.mts +1 -1
  195. package/dist/esm/api/types/InputMinimaxSpeech25TurboPreview.d.mts +1 -1
  196. package/dist/esm/api/types/InputSeedance15Pro.d.mts +2 -2
  197. package/dist/esm/api/types/InputSeedance15ProEndImage.d.mts +1 -1
  198. package/dist/esm/api/types/InputSeedance15ProStartImage.d.mts +1 -1
  199. package/dist/esm/api/types/InputSeedance20.d.mts +3 -3
  200. package/dist/esm/api/types/InputSeedance20EndImage.d.mts +1 -1
  201. package/dist/esm/api/types/InputSeedance20Mini.d.mts +3 -3
  202. package/dist/esm/api/types/InputSeedance20MiniEndImage.d.mts +1 -1
  203. package/dist/esm/api/types/InputSeedance20MiniStartImage.d.mts +1 -1
  204. package/dist/esm/api/types/InputSeedance20StartImage.d.mts +1 -1
  205. package/dist/esm/api/types/InputSeedance25.d.mts +3 -3
  206. package/dist/esm/api/types/InputSeedance25EndImage.d.mts +1 -1
  207. package/dist/esm/api/types/InputSeedance25StartImage.d.mts +1 -1
  208. package/dist/esm/api/types/InputTopazImageUpscaler.d.mts +41 -0
  209. package/dist/esm/api/types/InputTopazImageUpscaler.mjs +24 -0
  210. package/dist/esm/api/types/InputTopazImageUpscalerSourceImage.d.mts +23 -0
  211. package/dist/esm/api/types/InputTopazImageUpscalerSourceImage.mjs +2 -0
  212. package/dist/esm/api/types/InputTopazImageUpscalerWonder.d.mts +32 -0
  213. package/dist/esm/api/types/InputTopazImageUpscalerWonder.mjs +16 -0
  214. package/dist/esm/api/types/InputTopazImageUpscalerWonderSourceImage.d.mts +23 -0
  215. package/dist/esm/api/types/InputTopazImageUpscalerWonderSourceImage.mjs +2 -0
  216. package/dist/esm/api/types/InputTopazVideoUpscaler.d.mts +37 -0
  217. package/dist/esm/api/types/InputTopazVideoUpscaler.mjs +20 -0
  218. package/dist/esm/api/types/InputTopazVideoUpscalerHyperion25.d.mts +10 -0
  219. package/dist/esm/api/types/InputTopazVideoUpscalerHyperion25.mjs +2 -0
  220. package/dist/esm/api/types/InputTopazVideoUpscalerHyperion25SourceVideo.d.mts +23 -0
  221. package/dist/esm/api/types/InputTopazVideoUpscalerHyperion25SourceVideo.mjs +2 -0
  222. package/dist/esm/api/types/InputTopazVideoUpscalerSourceVideo.d.mts +23 -0
  223. package/dist/esm/api/types/InputTopazVideoUpscalerSourceVideo.mjs +2 -0
  224. package/dist/esm/api/types/InputTopazVideoUpscalerStarlightFast.d.mts +23 -0
  225. package/dist/esm/api/types/InputTopazVideoUpscalerStarlightFast.mjs +10 -0
  226. package/dist/esm/api/types/InputTopazVideoUpscalerStarlightFastSourceVideo.d.mts +23 -0
  227. package/dist/esm/api/types/InputTopazVideoUpscalerStarlightFastSourceVideo.mjs +2 -0
  228. package/dist/esm/api/types/InputTopazVideoUpscalerStarlightHq.d.mts +23 -0
  229. package/dist/esm/api/types/InputTopazVideoUpscalerStarlightHq.mjs +10 -0
  230. package/dist/esm/api/types/InputTopazVideoUpscalerStarlightHqSourceVideo.d.mts +23 -0
  231. package/dist/esm/api/types/InputTopazVideoUpscalerStarlightHqSourceVideo.mjs +2 -0
  232. package/dist/esm/api/types/InputTopazVideoUpscalerStarlightPrecise.d.mts +31 -0
  233. package/dist/esm/api/types/InputTopazVideoUpscalerStarlightPrecise.mjs +17 -0
  234. package/dist/esm/api/types/InputTopazVideoUpscalerStarlightPreciseSourceVideo.d.mts +23 -0
  235. package/dist/esm/api/types/InputTopazVideoUpscalerStarlightPreciseSourceVideo.mjs +2 -0
  236. package/dist/esm/api/types/InputWan30.d.mts +62 -0
  237. package/dist/esm/api/types/InputWan30.mjs +24 -0
  238. package/dist/esm/api/types/InputWan30AudiosItem.d.mts +20 -0
  239. package/dist/esm/api/types/InputWan30AudiosItem.mjs +2 -0
  240. package/dist/esm/api/types/InputWan30EndImage.d.mts +23 -0
  241. package/dist/esm/api/types/InputWan30EndImage.mjs +2 -0
  242. package/dist/esm/api/types/InputWan30ImagesItem.d.mts +20 -0
  243. package/dist/esm/api/types/InputWan30ImagesItem.mjs +2 -0
  244. package/dist/esm/api/types/InputWan30StartImage.d.mts +23 -0
  245. package/dist/esm/api/types/InputWan30StartImage.mjs +2 -0
  246. package/dist/esm/api/types/InputWan30VideosItem.d.mts +20 -0
  247. package/dist/esm/api/types/InputWan30VideosItem.mjs +2 -0
  248. package/dist/esm/api/types/OutputItem.d.mts +6 -0
  249. package/dist/esm/api/types/UsageBucket.d.mts +2 -0
  250. package/dist/esm/api/types/UsageResponse.d.mts +2 -0
  251. package/dist/esm/api/types/index.d.mts +29 -0
  252. package/dist/esm/api/types/index.mjs +29 -0
  253. package/dist/esm/version.d.mts +1 -1
  254. package/dist/esm/version.mjs +1 -1
  255. package/package.json +2 -2
  256. package/reference.md +1388 -448
@@ -0,0 +1,19 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * audio: {
7
+ * source: "url",
8
+ * url: "url"
9
+ * }
10
+ * }
11
+ * }
12
+ */
13
+ export interface SubmitBodyElevenlabsAudioIsolation {
14
+ input: Hedra.InputElevenlabsAudioIsolation;
15
+ /** URL to receive a signed completion webhook. */
16
+ webhook?: string | null;
17
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
18
+ idempotency_key?: string | null;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * audio: {
7
+ * source: "url",
8
+ * url: "url"
9
+ * },
10
+ * voice_id: "voice_id"
11
+ * }
12
+ * }
13
+ */
14
+ export interface SubmitBodyElevenlabsEnglishStsV2 {
15
+ input: Hedra.InputElevenlabsEnglishStsV2;
16
+ /** URL to receive a signed completion webhook. */
17
+ webhook?: string | null;
18
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
19
+ idempotency_key?: string | null;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * audio: {
7
+ * source: "url",
8
+ * url: "url"
9
+ * },
10
+ * voice_id: "voice_id"
11
+ * }
12
+ * }
13
+ */
14
+ export interface SubmitBodyElevenlabsMultilingualStsV2 {
15
+ input: Hedra.InputElevenlabsMultilingualStsV2;
16
+ /** URL to receive a signed completion webhook. */
17
+ webhook?: string | null;
18
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
19
+ idempotency_key?: string | null;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * text: "text",
7
+ * duration_ms: 1
8
+ * }
9
+ * }
10
+ */
11
+ export interface SubmitBodyElevenlabsSoundEffects {
12
+ input: Hedra.InputElevenlabsSoundEffects;
13
+ /** URL to receive a signed completion webhook. */
14
+ webhook?: string | null;
15
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
16
+ idempotency_key?: string | null;
17
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * audio: {
7
+ * source: "url",
8
+ * url: "url"
9
+ * },
10
+ * name: "name"
11
+ * }
12
+ * }
13
+ */
14
+ export interface SubmitBodyElevenlabsVoiceClone {
15
+ input: Hedra.InputElevenlabsVoiceClone;
16
+ /** URL to receive a signed completion webhook. */
17
+ webhook?: string | null;
18
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
19
+ idempotency_key?: string | null;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * source_image: {
7
+ * source: "url",
8
+ * url: "url"
9
+ * },
10
+ * target_resolution: "1080p"
11
+ * }
12
+ * }
13
+ */
14
+ export interface SubmitBodyTopazImageUpscaler {
15
+ input: Hedra.InputTopazImageUpscaler;
16
+ /** URL to receive a signed completion webhook. */
17
+ webhook?: string | null;
18
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
19
+ idempotency_key?: string | null;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * source_image: {
7
+ * source: "url",
8
+ * url: "url"
9
+ * },
10
+ * target_resolution: "1080p"
11
+ * }
12
+ * }
13
+ */
14
+ export interface SubmitBodyTopazImageUpscalerWonder {
15
+ input: Hedra.InputTopazImageUpscalerWonder;
16
+ /** URL to receive a signed completion webhook. */
17
+ webhook?: string | null;
18
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
19
+ idempotency_key?: string | null;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * source_video: {
7
+ * source: "url",
8
+ * url: "url"
9
+ * },
10
+ * resolution: "1080p"
11
+ * }
12
+ * }
13
+ */
14
+ export interface SubmitBodyTopazVideoUpscaler {
15
+ input: Hedra.InputTopazVideoUpscaler;
16
+ /** URL to receive a signed completion webhook. */
17
+ webhook?: string | null;
18
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
19
+ idempotency_key?: string | null;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * source_video: {
7
+ * source: "url",
8
+ * url: "url"
9
+ * }
10
+ * }
11
+ * }
12
+ */
13
+ export interface SubmitBodyTopazVideoUpscalerHyperion25 {
14
+ input: Hedra.InputTopazVideoUpscalerHyperion25;
15
+ /** URL to receive a signed completion webhook. */
16
+ webhook?: string | null;
17
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
18
+ idempotency_key?: string | null;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * source_video: {
7
+ * source: "url",
8
+ * url: "url"
9
+ * },
10
+ * resolution: "1080p"
11
+ * }
12
+ * }
13
+ */
14
+ export interface SubmitBodyTopazVideoUpscalerStarlightFast {
15
+ input: Hedra.InputTopazVideoUpscalerStarlightFast;
16
+ /** URL to receive a signed completion webhook. */
17
+ webhook?: string | null;
18
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
19
+ idempotency_key?: string | null;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * source_video: {
7
+ * source: "url",
8
+ * url: "url"
9
+ * },
10
+ * resolution: "1080p"
11
+ * }
12
+ * }
13
+ */
14
+ export interface SubmitBodyTopazVideoUpscalerStarlightHq {
15
+ input: Hedra.InputTopazVideoUpscalerStarlightHq;
16
+ /** URL to receive a signed completion webhook. */
17
+ webhook?: string | null;
18
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
19
+ idempotency_key?: string | null;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * source_video: {
7
+ * source: "url",
8
+ * url: "url"
9
+ * },
10
+ * resolution: "1080p"
11
+ * }
12
+ * }
13
+ */
14
+ export interface SubmitBodyTopazVideoUpscalerStarlightPrecise {
15
+ input: Hedra.InputTopazVideoUpscalerStarlightPrecise;
16
+ /** URL to receive a signed completion webhook. */
17
+ webhook?: string | null;
18
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
19
+ idempotency_key?: string | null;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import type * as Hedra from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {
5
+ * input: {
6
+ * prompt: "prompt",
7
+ * aspect_ratio: "adaptive",
8
+ * resolution: "480p",
9
+ * duration_ms: 1,
10
+ * quality: "standard"
11
+ * }
12
+ * }
13
+ */
14
+ export interface SubmitBodyWan30 {
15
+ input: Hedra.InputWan30;
16
+ /** URL to receive a signed completion webhook. */
17
+ webhook?: string | null;
18
+ /** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
19
+ idempotency_key?: string | null;
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,10 +5,15 @@ export type { JobsListRequest } from "./JobsListRequest.js";
5
5
  export type { JobsStreamRequest } from "./JobsStreamRequest.js";
6
6
  export type { SubmitBody } from "./SubmitBody.js";
7
7
  export type { SubmitBodyDreamina31 } from "./SubmitBodyDreamina31.js";
8
+ export type { SubmitBodyElevenlabsAudioIsolation } from "./SubmitBodyElevenlabsAudioIsolation.js";
9
+ export type { SubmitBodyElevenlabsEnglishStsV2 } from "./SubmitBodyElevenlabsEnglishStsV2.js";
8
10
  export type { SubmitBodyElevenlabsFlashMultilingualV2 } from "./SubmitBodyElevenlabsFlashMultilingualV2.js";
9
11
  export type { SubmitBodyElevenlabsFlashV2 } from "./SubmitBodyElevenlabsFlashV2.js";
12
+ export type { SubmitBodyElevenlabsMultilingualStsV2 } from "./SubmitBodyElevenlabsMultilingualStsV2.js";
10
13
  export type { SubmitBodyElevenlabsMultilingualV2 } from "./SubmitBodyElevenlabsMultilingualV2.js";
14
+ export type { SubmitBodyElevenlabsSoundEffects } from "./SubmitBodyElevenlabsSoundEffects.js";
11
15
  export type { SubmitBodyElevenlabsV3 } from "./SubmitBodyElevenlabsV3.js";
16
+ export type { SubmitBodyElevenlabsVoiceClone } from "./SubmitBodyElevenlabsVoiceClone.js";
12
17
  export type { SubmitBodyFlux2Flex } from "./SubmitBodyFlux2Flex.js";
13
18
  export type { SubmitBodyFlux2Klein9B } from "./SubmitBodyFlux2Klein9B.js";
14
19
  export type { SubmitBodyFlux2Max } from "./SubmitBodyFlux2Max.js";
@@ -72,6 +77,13 @@ export type { SubmitBodySeedream45 } from "./SubmitBodySeedream45.js";
72
77
  export type { SubmitBodySeedream50Lite } from "./SubmitBodySeedream50Lite.js";
73
78
  export type { SubmitBodySeedream50Pro } from "./SubmitBodySeedream50Pro.js";
74
79
  export type { SubmitBodySora2Pro } from "./SubmitBodySora2Pro.js";
80
+ export type { SubmitBodyTopazImageUpscaler } from "./SubmitBodyTopazImageUpscaler.js";
81
+ export type { SubmitBodyTopazImageUpscalerWonder } from "./SubmitBodyTopazImageUpscalerWonder.js";
82
+ export type { SubmitBodyTopazVideoUpscaler } from "./SubmitBodyTopazVideoUpscaler.js";
83
+ export type { SubmitBodyTopazVideoUpscalerHyperion25 } from "./SubmitBodyTopazVideoUpscalerHyperion25.js";
84
+ export type { SubmitBodyTopazVideoUpscalerStarlightFast } from "./SubmitBodyTopazVideoUpscalerStarlightFast.js";
85
+ export type { SubmitBodyTopazVideoUpscalerStarlightHq } from "./SubmitBodyTopazVideoUpscalerStarlightHq.js";
86
+ export type { SubmitBodyTopazVideoUpscalerStarlightPrecise } from "./SubmitBodyTopazVideoUpscalerStarlightPrecise.js";
75
87
  export type { SubmitBodyVeedFabric10 } from "./SubmitBodyVeedFabric10.js";
76
88
  export type { SubmitBodyVeedVideoBackgroundRemoval } from "./SubmitBodyVeedVideoBackgroundRemoval.js";
77
89
  export type { SubmitBodyVeo2 } from "./SubmitBodyVeo2.js";
@@ -80,3 +92,4 @@ export type { SubmitBodyVeo31 } from "./SubmitBodyVeo31.js";
80
92
  export type { SubmitBodyViduQ3 } from "./SubmitBodyViduQ3.js";
81
93
  export type { SubmitBodyViduQ3Reference } from "./SubmitBodyViduQ3Reference.js";
82
94
  export type { SubmitBodyWan27 } from "./SubmitBodyWan27.js";
95
+ export type { SubmitBodyWan30 } from "./SubmitBodyWan30.js";
@@ -83,7 +83,7 @@ class KeysClient {
83
83
  workspace_id: workspaceId,
84
84
  };
85
85
  const _authRequest = yield this._options.authProvider.getAuthRequest();
86
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
86
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
87
87
  const _response = yield core.fetcher({
88
88
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "keys"),
89
89
  method: "GET",
@@ -150,7 +150,7 @@ class KeysClient {
150
150
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
151
151
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
152
152
  const _authRequest = yield this._options.authProvider.getAuthRequest();
153
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
153
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
154
154
  const _response = yield core.fetcher({
155
155
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "keys"),
156
156
  method: "POST",
@@ -217,7 +217,7 @@ class KeysClient {
217
217
  return __awaiter(this, arguments, void 0, function* (key_id, request = {}, requestOptions) {
218
218
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
219
219
  const _authRequest = yield this._options.authProvider.getAuthRequest();
220
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
220
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
221
221
  const _response = yield core.fetcher({
222
222
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `keys/${core.url.encodePathParam(key_id)}/rotate`),
223
223
  method: "POST",
@@ -284,7 +284,7 @@ class KeysClient {
284
284
  return __awaiter(this, arguments, void 0, function* (key_id, _request = {}, requestOptions) {
285
285
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
286
286
  const _authRequest = yield this._options.authProvider.getAuthRequest();
287
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
287
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
288
288
  const _response = yield core.fetcher({
289
289
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `keys/${core.url.encodePathParam(key_id)}`),
290
290
  method: "DELETE",
@@ -100,7 +100,7 @@ class LogDrainsClient {
100
100
  return __awaiter(this, void 0, void 0, function* () {
101
101
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
102
102
  const _authRequest = yield this._options.authProvider.getAuthRequest();
103
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
103
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
104
104
  const _response = yield core.fetcher({
105
105
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "log-drains"),
106
106
  method: "GET",
@@ -166,7 +166,7 @@ class LogDrainsClient {
166
166
  return __awaiter(this, void 0, void 0, function* () {
167
167
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
168
168
  const _authRequest = yield this._options.authProvider.getAuthRequest();
169
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
169
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
170
170
  const _response = yield core.fetcher({
171
171
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "log-drains"),
172
172
  method: "POST",
@@ -233,7 +233,7 @@ class LogDrainsClient {
233
233
  return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
234
234
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
235
235
  const _authRequest = yield this._options.authProvider.getAuthRequest();
236
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
236
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
237
237
  const _response = yield core.fetcher({
238
238
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}`),
239
239
  method: "GET",
@@ -297,7 +297,7 @@ class LogDrainsClient {
297
297
  return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
298
298
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
299
299
  const _authRequest = yield this._options.authProvider.getAuthRequest();
300
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
300
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
301
301
  const _response = yield core.fetcher({
302
302
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}`),
303
303
  method: "DELETE",
@@ -361,7 +361,7 @@ class LogDrainsClient {
361
361
  return __awaiter(this, arguments, void 0, function* (drain_id, request = {}, requestOptions) {
362
362
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
363
363
  const _authRequest = yield this._options.authProvider.getAuthRequest();
364
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
364
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
365
365
  const _response = yield core.fetcher({
366
366
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}`),
367
367
  method: "PATCH",
@@ -428,7 +428,7 @@ class LogDrainsClient {
428
428
  return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
429
429
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
430
430
  const _authRequest = yield this._options.authProvider.getAuthRequest();
431
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
431
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
432
432
  const _response = yield core.fetcher({
433
433
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}/test`),
434
434
  method: "POST",
@@ -67,13 +67,14 @@ export declare class ModelsClient {
67
67
  */
68
68
  listModelJobs(model: string, request?: Hedra.ModelsListModelJobsRequest, requestOptions?: ModelsClient.RequestOptions): Promise<core.Page<Hedra.JobSummary, Hedra.JobListResponse>>;
69
69
  /**
70
- * Voices this model accepts — scoped to the model's voice provider.
70
+ * Voices this model accepts — the shared library, plus the caller's own cloned voices when the request carries credentials.
71
71
  *
72
72
  * @param {string} model - The model's public id (`GET /v3/models`).
73
73
  * @param {Hedra.ModelsListVoicesRequest} request
74
74
  * @param {ModelsClient.RequestOptions} requestOptions - Request-specific configuration.
75
75
  *
76
76
  * @throws {@link Hedra.BadRequestError}
77
+ * @throws {@link Hedra.UnauthorizedError}
77
78
  * @throws {@link Hedra.ForbiddenError}
78
79
  * @throws {@link Hedra.NotFoundError}
79
80
  * @throws {@link Hedra.TooManyRequestsError}
@@ -84,7 +84,7 @@ class ModelsClient {
84
84
  const _queryParams = {
85
85
  modality: modality !== undefined ? modality : undefined,
86
86
  };
87
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
87
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
88
88
  const _response = yield core.fetcher({
89
89
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "models"),
90
90
  method: "GET",
@@ -148,7 +148,7 @@ class ModelsClient {
148
148
  __get(model_1) {
149
149
  return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
150
150
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
151
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
151
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
152
152
  const _response = yield core.fetcher({
153
153
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}`),
154
154
  method: "GET",
@@ -213,7 +213,7 @@ class ModelsClient {
213
213
  cursor,
214
214
  };
215
215
  const _authRequest = yield this._options.authProvider.getAuthRequest();
216
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
216
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
217
217
  const _response = yield core.fetcher({
218
218
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/jobs`),
219
219
  method: "GET",
@@ -270,13 +270,14 @@ class ModelsClient {
270
270
  });
271
271
  }
272
272
  /**
273
- * Voices this model accepts — scoped to the model's voice provider.
273
+ * Voices this model accepts — the shared library, plus the caller's own cloned voices when the request carries credentials.
274
274
  *
275
275
  * @param {string} model - The model's public id (`GET /v3/models`).
276
276
  * @param {Hedra.ModelsListVoicesRequest} request
277
277
  * @param {ModelsClient.RequestOptions} requestOptions - Request-specific configuration.
278
278
  *
279
279
  * @throws {@link Hedra.BadRequestError}
280
+ * @throws {@link Hedra.UnauthorizedError}
280
281
  * @throws {@link Hedra.ForbiddenError}
281
282
  * @throws {@link Hedra.NotFoundError}
282
283
  * @throws {@link Hedra.TooManyRequestsError}
@@ -293,7 +294,8 @@ class ModelsClient {
293
294
  __listVoices(model_1) {
294
295
  return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
295
296
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
296
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
297
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
298
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
297
299
  const _response = yield core.fetcher({
298
300
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/voices`),
299
301
  method: "GET",
@@ -312,6 +314,8 @@ class ModelsClient {
312
314
  switch (_response.error.statusCode) {
313
315
  case 400:
314
316
  throw new Hedra.BadRequestError(_response.error.body, _response.rawResponse);
317
+ case 401:
318
+ throw new Hedra.UnauthorizedError(_response.error.body, _response.rawResponse);
315
319
  case 403:
316
320
  throw new Hedra.ForbiddenError(_response.error.body, _response.rawResponse);
317
321
  case 404:
@@ -355,7 +359,7 @@ class ModelsClient {
355
359
  __getOpenapi(model_1) {
356
360
  return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
357
361
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
358
- const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
362
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
359
363
  const _response = yield core.fetcher({
360
364
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/openapi.json`),
361
365
  method: "GET",
@@ -417,7 +421,7 @@ class ModelsClient {
417
421
  return __awaiter(this, arguments, void 0, function* (model, request = {}, requestOptions) {
418
422
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
419
423
  const _authRequest = yield this._options.authProvider.getAuthRequest();
420
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
424
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
421
425
  const _response = yield core.fetcher({
422
426
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/estimate`),
423
427
  method: "POST",
@@ -79,7 +79,7 @@ class TokensClient {
79
79
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
80
80
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
81
81
  const _authRequest = yield this._options.authProvider.getAuthRequest();
82
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.9.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
82
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
83
83
  const _response = yield core.fetcher({
84
84
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "tokens"),
85
85
  method: "POST",