@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.
- package/dist/cjs/BaseClient.d.ts +2 -2
- package/dist/cjs/BaseClient.js +3 -3
- package/dist/cjs/api/resources/billing/client/Client.js +2 -2
- package/dist/cjs/api/resources/files/client/Client.js +1 -1
- package/dist/cjs/api/resources/jobs/client/Client.d.ts +407 -0
- package/dist/cjs/api/resources/jobs/client/Client.js +1882 -799
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsAudioIsolation.d.ts +19 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsAudioIsolation.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsEnglishStsV2.d.ts +20 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsEnglishStsV2.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsMultilingualStsV2.d.ts +20 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsMultilingualStsV2.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsSoundEffects.d.ts +17 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsSoundEffects.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsVoiceClone.d.ts +20 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsVoiceClone.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscaler.d.ts +20 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscaler.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscalerWonder.d.ts +20 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscalerWonder.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscaler.d.ts +20 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscaler.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerHyperion25.d.ts +19 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerHyperion25.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightFast.d.ts +20 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightFast.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightHq.d.ts +20 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightHq.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightPrecise.d.ts +20 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightPrecise.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyWan30.d.ts +20 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyWan30.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +13 -0
- package/dist/cjs/api/resources/keys/client/Client.js +4 -4
- package/dist/cjs/api/resources/logDrains/client/Client.js +6 -6
- package/dist/cjs/api/resources/models/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/models/client/Client.js +11 -7
- package/dist/cjs/api/resources/tokens/client/Client.js +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.js +7 -7
- package/dist/cjs/api/types/ApiKeyScope.d.ts +1 -0
- package/dist/cjs/api/types/ApiKeyScope.js +1 -0
- package/dist/cjs/api/types/ErrorCode.d.ts +1 -0
- package/dist/cjs/api/types/ErrorCode.js +1 -0
- package/dist/cjs/api/types/InputElevenlabsAudioIsolation.d.ts +8 -0
- package/dist/cjs/api/types/InputElevenlabsAudioIsolation.js +3 -0
- package/dist/cjs/api/types/InputElevenlabsAudioIsolationAudio.d.ts +23 -0
- package/dist/cjs/api/types/InputElevenlabsAudioIsolationAudio.js +3 -0
- package/dist/cjs/api/types/InputElevenlabsEnglishStsV2.d.ts +10 -0
- package/dist/cjs/api/types/InputElevenlabsEnglishStsV2.js +3 -0
- package/dist/cjs/api/types/InputElevenlabsEnglishStsV2Audio.d.ts +23 -0
- package/dist/cjs/api/types/InputElevenlabsEnglishStsV2Audio.js +3 -0
- package/dist/cjs/api/types/InputElevenlabsFlashMultilingualV2.d.ts +1 -1
- package/dist/cjs/api/types/InputElevenlabsFlashV2.d.ts +1 -1
- package/dist/cjs/api/types/InputElevenlabsMultilingualStsV2.d.ts +10 -0
- package/dist/cjs/api/types/InputElevenlabsMultilingualStsV2.js +3 -0
- package/dist/cjs/api/types/InputElevenlabsMultilingualStsV2Audio.d.ts +23 -0
- package/dist/cjs/api/types/InputElevenlabsMultilingualStsV2Audio.js +3 -0
- package/dist/cjs/api/types/InputElevenlabsMultilingualV2.d.ts +1 -1
- package/dist/cjs/api/types/InputElevenlabsSoundEffects.d.ts +13 -0
- package/dist/cjs/api/types/InputElevenlabsSoundEffects.js +3 -0
- package/dist/cjs/api/types/InputElevenlabsV3.d.ts +1 -1
- package/dist/cjs/api/types/InputElevenlabsVoiceClone.d.ts +10 -0
- package/dist/cjs/api/types/InputElevenlabsVoiceClone.js +3 -0
- package/dist/cjs/api/types/InputElevenlabsVoiceCloneAudio.d.ts +23 -0
- package/dist/cjs/api/types/InputElevenlabsVoiceCloneAudio.js +3 -0
- package/dist/cjs/api/types/InputGptImage2.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxSpeech25HdPreview.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxSpeech25TurboPreview.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance15Pro.d.ts +2 -2
- package/dist/cjs/api/types/InputSeedance15ProEndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance15ProStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20.d.ts +3 -3
- package/dist/cjs/api/types/InputSeedance20EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20Mini.d.ts +3 -3
- package/dist/cjs/api/types/InputSeedance20MiniEndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20MiniStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance25.d.ts +3 -3
- package/dist/cjs/api/types/InputSeedance25EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance25StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputTopazImageUpscaler.d.ts +41 -0
- package/dist/cjs/api/types/InputTopazImageUpscaler.js +27 -0
- package/dist/cjs/api/types/InputTopazImageUpscalerSourceImage.d.ts +23 -0
- package/dist/cjs/api/types/InputTopazImageUpscalerSourceImage.js +3 -0
- package/dist/cjs/api/types/InputTopazImageUpscalerWonder.d.ts +32 -0
- package/dist/cjs/api/types/InputTopazImageUpscalerWonder.js +19 -0
- package/dist/cjs/api/types/InputTopazImageUpscalerWonderSourceImage.d.ts +23 -0
- package/dist/cjs/api/types/InputTopazImageUpscalerWonderSourceImage.js +3 -0
- package/dist/cjs/api/types/InputTopazVideoUpscaler.d.ts +37 -0
- package/dist/cjs/api/types/InputTopazVideoUpscaler.js +23 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerHyperion25.d.ts +10 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerHyperion25.js +3 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerHyperion25SourceVideo.d.ts +23 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerHyperion25SourceVideo.js +3 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerSourceVideo.d.ts +23 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerSourceVideo.js +3 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightFast.d.ts +23 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightFast.js +13 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightFastSourceVideo.d.ts +23 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightFastSourceVideo.js +3 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightHq.d.ts +23 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightHq.js +13 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightHqSourceVideo.d.ts +23 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightHqSourceVideo.js +3 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightPrecise.d.ts +31 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightPrecise.js +20 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightPreciseSourceVideo.d.ts +23 -0
- package/dist/cjs/api/types/InputTopazVideoUpscalerStarlightPreciseSourceVideo.js +3 -0
- package/dist/cjs/api/types/InputWan30.d.ts +62 -0
- package/dist/cjs/api/types/InputWan30.js +27 -0
- package/dist/cjs/api/types/InputWan30AudiosItem.d.ts +20 -0
- package/dist/cjs/api/types/InputWan30AudiosItem.js +3 -0
- package/dist/cjs/api/types/InputWan30EndImage.d.ts +23 -0
- package/dist/cjs/api/types/InputWan30EndImage.js +3 -0
- package/dist/cjs/api/types/InputWan30ImagesItem.d.ts +20 -0
- package/dist/cjs/api/types/InputWan30ImagesItem.js +3 -0
- package/dist/cjs/api/types/InputWan30StartImage.d.ts +23 -0
- package/dist/cjs/api/types/InputWan30StartImage.js +3 -0
- package/dist/cjs/api/types/InputWan30VideosItem.d.ts +20 -0
- package/dist/cjs/api/types/InputWan30VideosItem.js +3 -0
- package/dist/cjs/api/types/OutputItem.d.ts +6 -0
- package/dist/cjs/api/types/UsageBucket.d.ts +2 -0
- package/dist/cjs/api/types/UsageResponse.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +29 -0
- package/dist/cjs/api/types/index.js +29 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +2 -2
- package/dist/esm/BaseClient.mjs +3 -3
- package/dist/esm/api/resources/billing/client/Client.mjs +2 -2
- package/dist/esm/api/resources/files/client/Client.mjs +1 -1
- package/dist/esm/api/resources/jobs/client/Client.d.mts +407 -0
- package/dist/esm/api/resources/jobs/client/Client.mjs +1882 -799
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsAudioIsolation.d.mts +19 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsAudioIsolation.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsEnglishStsV2.d.mts +20 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsEnglishStsV2.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsMultilingualStsV2.d.mts +20 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsMultilingualStsV2.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsSoundEffects.d.mts +17 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsSoundEffects.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsVoiceClone.d.mts +20 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsVoiceClone.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscaler.d.mts +20 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscaler.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscalerWonder.d.mts +20 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazImageUpscalerWonder.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscaler.d.mts +20 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscaler.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerHyperion25.d.mts +19 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerHyperion25.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightFast.d.mts +20 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightFast.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightHq.d.mts +20 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightHq.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightPrecise.d.mts +20 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightPrecise.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyWan30.d.mts +20 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyWan30.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/index.d.mts +13 -0
- package/dist/esm/api/resources/keys/client/Client.mjs +4 -4
- package/dist/esm/api/resources/logDrains/client/Client.mjs +6 -6
- package/dist/esm/api/resources/models/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/models/client/Client.mjs +11 -7
- package/dist/esm/api/resources/tokens/client/Client.mjs +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.mjs +7 -7
- package/dist/esm/api/types/ApiKeyScope.d.mts +1 -0
- package/dist/esm/api/types/ApiKeyScope.mjs +1 -0
- package/dist/esm/api/types/ErrorCode.d.mts +1 -0
- package/dist/esm/api/types/ErrorCode.mjs +1 -0
- package/dist/esm/api/types/InputElevenlabsAudioIsolation.d.mts +8 -0
- package/dist/esm/api/types/InputElevenlabsAudioIsolation.mjs +2 -0
- package/dist/esm/api/types/InputElevenlabsAudioIsolationAudio.d.mts +23 -0
- package/dist/esm/api/types/InputElevenlabsAudioIsolationAudio.mjs +2 -0
- package/dist/esm/api/types/InputElevenlabsEnglishStsV2.d.mts +10 -0
- package/dist/esm/api/types/InputElevenlabsEnglishStsV2.mjs +2 -0
- package/dist/esm/api/types/InputElevenlabsEnglishStsV2Audio.d.mts +23 -0
- package/dist/esm/api/types/InputElevenlabsEnglishStsV2Audio.mjs +2 -0
- package/dist/esm/api/types/InputElevenlabsFlashMultilingualV2.d.mts +1 -1
- package/dist/esm/api/types/InputElevenlabsFlashV2.d.mts +1 -1
- package/dist/esm/api/types/InputElevenlabsMultilingualStsV2.d.mts +10 -0
- package/dist/esm/api/types/InputElevenlabsMultilingualStsV2.mjs +2 -0
- package/dist/esm/api/types/InputElevenlabsMultilingualStsV2Audio.d.mts +23 -0
- package/dist/esm/api/types/InputElevenlabsMultilingualStsV2Audio.mjs +2 -0
- package/dist/esm/api/types/InputElevenlabsMultilingualV2.d.mts +1 -1
- package/dist/esm/api/types/InputElevenlabsSoundEffects.d.mts +13 -0
- package/dist/esm/api/types/InputElevenlabsSoundEffects.mjs +2 -0
- package/dist/esm/api/types/InputElevenlabsV3.d.mts +1 -1
- package/dist/esm/api/types/InputElevenlabsVoiceClone.d.mts +10 -0
- package/dist/esm/api/types/InputElevenlabsVoiceClone.mjs +2 -0
- package/dist/esm/api/types/InputElevenlabsVoiceCloneAudio.d.mts +23 -0
- package/dist/esm/api/types/InputElevenlabsVoiceCloneAudio.mjs +2 -0
- package/dist/esm/api/types/InputGptImage2.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxSpeech25HdPreview.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxSpeech25TurboPreview.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance15Pro.d.mts +2 -2
- package/dist/esm/api/types/InputSeedance15ProEndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance15ProStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20.d.mts +3 -3
- package/dist/esm/api/types/InputSeedance20EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20Mini.d.mts +3 -3
- package/dist/esm/api/types/InputSeedance20MiniEndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20MiniStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance25.d.mts +3 -3
- package/dist/esm/api/types/InputSeedance25EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance25StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputTopazImageUpscaler.d.mts +41 -0
- package/dist/esm/api/types/InputTopazImageUpscaler.mjs +24 -0
- package/dist/esm/api/types/InputTopazImageUpscalerSourceImage.d.mts +23 -0
- package/dist/esm/api/types/InputTopazImageUpscalerSourceImage.mjs +2 -0
- package/dist/esm/api/types/InputTopazImageUpscalerWonder.d.mts +32 -0
- package/dist/esm/api/types/InputTopazImageUpscalerWonder.mjs +16 -0
- package/dist/esm/api/types/InputTopazImageUpscalerWonderSourceImage.d.mts +23 -0
- package/dist/esm/api/types/InputTopazImageUpscalerWonderSourceImage.mjs +2 -0
- package/dist/esm/api/types/InputTopazVideoUpscaler.d.mts +37 -0
- package/dist/esm/api/types/InputTopazVideoUpscaler.mjs +20 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerHyperion25.d.mts +10 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerHyperion25.mjs +2 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerHyperion25SourceVideo.d.mts +23 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerHyperion25SourceVideo.mjs +2 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerSourceVideo.d.mts +23 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerSourceVideo.mjs +2 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerStarlightFast.d.mts +23 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerStarlightFast.mjs +10 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerStarlightFastSourceVideo.d.mts +23 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerStarlightFastSourceVideo.mjs +2 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerStarlightHq.d.mts +23 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerStarlightHq.mjs +10 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerStarlightHqSourceVideo.d.mts +23 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerStarlightHqSourceVideo.mjs +2 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerStarlightPrecise.d.mts +31 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerStarlightPrecise.mjs +17 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerStarlightPreciseSourceVideo.d.mts +23 -0
- package/dist/esm/api/types/InputTopazVideoUpscalerStarlightPreciseSourceVideo.mjs +2 -0
- package/dist/esm/api/types/InputWan30.d.mts +62 -0
- package/dist/esm/api/types/InputWan30.mjs +24 -0
- package/dist/esm/api/types/InputWan30AudiosItem.d.mts +20 -0
- package/dist/esm/api/types/InputWan30AudiosItem.mjs +2 -0
- package/dist/esm/api/types/InputWan30EndImage.d.mts +23 -0
- package/dist/esm/api/types/InputWan30EndImage.mjs +2 -0
- package/dist/esm/api/types/InputWan30ImagesItem.d.mts +20 -0
- package/dist/esm/api/types/InputWan30ImagesItem.mjs +2 -0
- package/dist/esm/api/types/InputWan30StartImage.d.mts +23 -0
- package/dist/esm/api/types/InputWan30StartImage.mjs +2 -0
- package/dist/esm/api/types/InputWan30VideosItem.d.mts +20 -0
- package/dist/esm/api/types/InputWan30VideosItem.mjs +2 -0
- package/dist/esm/api/types/OutputItem.d.mts +6 -0
- package/dist/esm/api/types/UsageBucket.d.mts +2 -0
- package/dist/esm/api/types/UsageResponse.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +29 -0
- package/dist/esm/api/types/index.mjs +29 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +1388 -448
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
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,20 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
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
|
+
}
|
package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsMultilingualStsV2.d.mts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
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,17 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
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,20 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
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,20 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
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,20 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
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,20 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
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
|
+
}
|
package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerHyperion25.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
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
|
+
}
|
package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightFast.d.mts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
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
|
+
}
|
package/dist/esm/api/resources/jobs/client/requests/SubmitBodyTopazVideoUpscalerStarlightHq.d.mts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
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,20 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
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,20 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.mjs";
|
|
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
|
+
}
|
|
@@ -5,10 +5,15 @@ export type { JobsListRequest } from "./JobsListRequest.mjs";
|
|
|
5
5
|
export type { JobsStreamRequest } from "./JobsStreamRequest.mjs";
|
|
6
6
|
export type { SubmitBody } from "./SubmitBody.mjs";
|
|
7
7
|
export type { SubmitBodyDreamina31 } from "./SubmitBodyDreamina31.mjs";
|
|
8
|
+
export type { SubmitBodyElevenlabsAudioIsolation } from "./SubmitBodyElevenlabsAudioIsolation.mjs";
|
|
9
|
+
export type { SubmitBodyElevenlabsEnglishStsV2 } from "./SubmitBodyElevenlabsEnglishStsV2.mjs";
|
|
8
10
|
export type { SubmitBodyElevenlabsFlashMultilingualV2 } from "./SubmitBodyElevenlabsFlashMultilingualV2.mjs";
|
|
9
11
|
export type { SubmitBodyElevenlabsFlashV2 } from "./SubmitBodyElevenlabsFlashV2.mjs";
|
|
12
|
+
export type { SubmitBodyElevenlabsMultilingualStsV2 } from "./SubmitBodyElevenlabsMultilingualStsV2.mjs";
|
|
10
13
|
export type { SubmitBodyElevenlabsMultilingualV2 } from "./SubmitBodyElevenlabsMultilingualV2.mjs";
|
|
14
|
+
export type { SubmitBodyElevenlabsSoundEffects } from "./SubmitBodyElevenlabsSoundEffects.mjs";
|
|
11
15
|
export type { SubmitBodyElevenlabsV3 } from "./SubmitBodyElevenlabsV3.mjs";
|
|
16
|
+
export type { SubmitBodyElevenlabsVoiceClone } from "./SubmitBodyElevenlabsVoiceClone.mjs";
|
|
12
17
|
export type { SubmitBodyFlux2Flex } from "./SubmitBodyFlux2Flex.mjs";
|
|
13
18
|
export type { SubmitBodyFlux2Klein9B } from "./SubmitBodyFlux2Klein9B.mjs";
|
|
14
19
|
export type { SubmitBodyFlux2Max } from "./SubmitBodyFlux2Max.mjs";
|
|
@@ -72,6 +77,13 @@ export type { SubmitBodySeedream45 } from "./SubmitBodySeedream45.mjs";
|
|
|
72
77
|
export type { SubmitBodySeedream50Lite } from "./SubmitBodySeedream50Lite.mjs";
|
|
73
78
|
export type { SubmitBodySeedream50Pro } from "./SubmitBodySeedream50Pro.mjs";
|
|
74
79
|
export type { SubmitBodySora2Pro } from "./SubmitBodySora2Pro.mjs";
|
|
80
|
+
export type { SubmitBodyTopazImageUpscaler } from "./SubmitBodyTopazImageUpscaler.mjs";
|
|
81
|
+
export type { SubmitBodyTopazImageUpscalerWonder } from "./SubmitBodyTopazImageUpscalerWonder.mjs";
|
|
82
|
+
export type { SubmitBodyTopazVideoUpscaler } from "./SubmitBodyTopazVideoUpscaler.mjs";
|
|
83
|
+
export type { SubmitBodyTopazVideoUpscalerHyperion25 } from "./SubmitBodyTopazVideoUpscalerHyperion25.mjs";
|
|
84
|
+
export type { SubmitBodyTopazVideoUpscalerStarlightFast } from "./SubmitBodyTopazVideoUpscalerStarlightFast.mjs";
|
|
85
|
+
export type { SubmitBodyTopazVideoUpscalerStarlightHq } from "./SubmitBodyTopazVideoUpscalerStarlightHq.mjs";
|
|
86
|
+
export type { SubmitBodyTopazVideoUpscalerStarlightPrecise } from "./SubmitBodyTopazVideoUpscalerStarlightPrecise.mjs";
|
|
75
87
|
export type { SubmitBodyVeedFabric10 } from "./SubmitBodyVeedFabric10.mjs";
|
|
76
88
|
export type { SubmitBodyVeedVideoBackgroundRemoval } from "./SubmitBodyVeedVideoBackgroundRemoval.mjs";
|
|
77
89
|
export type { SubmitBodyVeo2 } from "./SubmitBodyVeo2.mjs";
|
|
@@ -80,3 +92,4 @@ export type { SubmitBodyVeo31 } from "./SubmitBodyVeo31.mjs";
|
|
|
80
92
|
export type { SubmitBodyViduQ3 } from "./SubmitBodyViduQ3.mjs";
|
|
81
93
|
export type { SubmitBodyViduQ3Reference } from "./SubmitBodyViduQ3Reference.mjs";
|
|
82
94
|
export type { SubmitBodyWan27 } from "./SubmitBodyWan27.mjs";
|
|
95
|
+
export type { SubmitBodyWan30 } from "./SubmitBodyWan30.mjs";
|
|
@@ -47,7 +47,7 @@ export class KeysClient {
|
|
|
47
47
|
workspace_id: workspaceId,
|
|
48
48
|
};
|
|
49
49
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
50
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
50
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
51
51
|
const _response = yield core.fetcher({
|
|
52
52
|
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"),
|
|
53
53
|
method: "GET",
|
|
@@ -114,7 +114,7 @@ export class KeysClient {
|
|
|
114
114
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
115
115
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
116
116
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
117
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
117
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
118
118
|
const _response = yield core.fetcher({
|
|
119
119
|
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"),
|
|
120
120
|
method: "POST",
|
|
@@ -181,7 +181,7 @@ export class KeysClient {
|
|
|
181
181
|
return __awaiter(this, arguments, void 0, function* (key_id, request = {}, requestOptions) {
|
|
182
182
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
183
183
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
184
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
184
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
185
185
|
const _response = yield core.fetcher({
|
|
186
186
|
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`),
|
|
187
187
|
method: "POST",
|
|
@@ -248,7 +248,7 @@ export class KeysClient {
|
|
|
248
248
|
return __awaiter(this, arguments, void 0, function* (key_id, _request = {}, requestOptions) {
|
|
249
249
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
250
250
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
251
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
251
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
252
252
|
const _response = yield core.fetcher({
|
|
253
253
|
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)}`),
|
|
254
254
|
method: "DELETE",
|
|
@@ -64,7 +64,7 @@ export class LogDrainsClient {
|
|
|
64
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
65
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
66
66
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
67
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
67
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
68
68
|
const _response = yield core.fetcher({
|
|
69
69
|
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"),
|
|
70
70
|
method: "GET",
|
|
@@ -130,7 +130,7 @@ export class LogDrainsClient {
|
|
|
130
130
|
return __awaiter(this, void 0, void 0, function* () {
|
|
131
131
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
132
132
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
133
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
133
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
134
134
|
const _response = yield core.fetcher({
|
|
135
135
|
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"),
|
|
136
136
|
method: "POST",
|
|
@@ -197,7 +197,7 @@ export class LogDrainsClient {
|
|
|
197
197
|
return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
|
|
198
198
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
199
199
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
200
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
200
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
201
201
|
const _response = yield core.fetcher({
|
|
202
202
|
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)}`),
|
|
203
203
|
method: "GET",
|
|
@@ -261,7 +261,7 @@ export class LogDrainsClient {
|
|
|
261
261
|
return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
|
|
262
262
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
263
263
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
264
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
264
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
265
265
|
const _response = yield core.fetcher({
|
|
266
266
|
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)}`),
|
|
267
267
|
method: "DELETE",
|
|
@@ -325,7 +325,7 @@ export class LogDrainsClient {
|
|
|
325
325
|
return __awaiter(this, arguments, void 0, function* (drain_id, request = {}, requestOptions) {
|
|
326
326
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
327
327
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
328
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
328
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
329
329
|
const _response = yield core.fetcher({
|
|
330
330
|
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)}`),
|
|
331
331
|
method: "PATCH",
|
|
@@ -392,7 +392,7 @@ export class LogDrainsClient {
|
|
|
392
392
|
return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
|
|
393
393
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
394
394
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
395
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
395
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
396
396
|
const _response = yield core.fetcher({
|
|
397
397
|
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`),
|
|
398
398
|
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 —
|
|
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}
|
|
@@ -48,7 +48,7 @@ export class ModelsClient {
|
|
|
48
48
|
const _queryParams = {
|
|
49
49
|
modality: modality !== undefined ? modality : undefined,
|
|
50
50
|
};
|
|
51
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
51
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
52
52
|
const _response = yield core.fetcher({
|
|
53
53
|
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"),
|
|
54
54
|
method: "GET",
|
|
@@ -112,7 +112,7 @@ export class ModelsClient {
|
|
|
112
112
|
__get(model_1) {
|
|
113
113
|
return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
|
|
114
114
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
115
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
115
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
116
116
|
const _response = yield core.fetcher({
|
|
117
117
|
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)}`),
|
|
118
118
|
method: "GET",
|
|
@@ -177,7 +177,7 @@ export class ModelsClient {
|
|
|
177
177
|
cursor,
|
|
178
178
|
};
|
|
179
179
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
180
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
180
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
181
181
|
const _response = yield core.fetcher({
|
|
182
182
|
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`),
|
|
183
183
|
method: "GET",
|
|
@@ -234,13 +234,14 @@ export class ModelsClient {
|
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
|
-
* Voices this model accepts —
|
|
237
|
+
* Voices this model accepts — the shared library, plus the caller's own cloned voices when the request carries credentials.
|
|
238
238
|
*
|
|
239
239
|
* @param {string} model - The model's public id (`GET /v3/models`).
|
|
240
240
|
* @param {Hedra.ModelsListVoicesRequest} request
|
|
241
241
|
* @param {ModelsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
242
242
|
*
|
|
243
243
|
* @throws {@link Hedra.BadRequestError}
|
|
244
|
+
* @throws {@link Hedra.UnauthorizedError}
|
|
244
245
|
* @throws {@link Hedra.ForbiddenError}
|
|
245
246
|
* @throws {@link Hedra.NotFoundError}
|
|
246
247
|
* @throws {@link Hedra.TooManyRequestsError}
|
|
@@ -257,7 +258,8 @@ export class ModelsClient {
|
|
|
257
258
|
__listVoices(model_1) {
|
|
258
259
|
return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
|
|
259
260
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
260
|
-
const
|
|
261
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
262
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
261
263
|
const _response = yield core.fetcher({
|
|
262
264
|
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`),
|
|
263
265
|
method: "GET",
|
|
@@ -276,6 +278,8 @@ export class ModelsClient {
|
|
|
276
278
|
switch (_response.error.statusCode) {
|
|
277
279
|
case 400:
|
|
278
280
|
throw new Hedra.BadRequestError(_response.error.body, _response.rawResponse);
|
|
281
|
+
case 401:
|
|
282
|
+
throw new Hedra.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
279
283
|
case 403:
|
|
280
284
|
throw new Hedra.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
281
285
|
case 404:
|
|
@@ -319,7 +323,7 @@ export class ModelsClient {
|
|
|
319
323
|
__getOpenapi(model_1) {
|
|
320
324
|
return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
|
|
321
325
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
322
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
326
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
323
327
|
const _response = yield core.fetcher({
|
|
324
328
|
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`),
|
|
325
329
|
method: "GET",
|
|
@@ -381,7 +385,7 @@ export class ModelsClient {
|
|
|
381
385
|
return __awaiter(this, arguments, void 0, function* (model, request = {}, requestOptions) {
|
|
382
386
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
383
387
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
384
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
388
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
385
389
|
const _response = yield core.fetcher({
|
|
386
390
|
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`),
|
|
387
391
|
method: "POST",
|
|
@@ -43,7 +43,7 @@ export class TokensClient {
|
|
|
43
43
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
44
44
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
45
45
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
46
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
46
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
47
47
|
const _response = yield core.fetcher({
|
|
48
48
|
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"),
|
|
49
49
|
method: "POST",
|