@hedra/sdk 2.0.2 → 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 +438 -2
- package/dist/cjs/api/resources/jobs/client/Client.js +1984 -820
- 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/SubmitBodyKlingO3.d.ts +0 -1
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.ts +0 -1
- 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/SubmitBodyVeedVideoBackgroundRemoval.d.ts +19 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.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 +14 -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/InputKlingAiAvatarV2.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingAiAvatarV2Audio.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3.d.ts +29 -7
- package/dist/cjs/api/types/InputKlingO3.js +5 -0
- package/dist/cjs/api/types/InputKlingV3.d.ts +29 -7
- package/dist/cjs/api/types/InputKlingV3.js +5 -0
- package/dist/cjs/api/types/InputMinimaxH3.d.ts +3 -3
- package/dist/cjs/api/types/InputMinimaxH3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxH3StartImage.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 +4 -3
- package/dist/cjs/api/types/InputSeedance25.js +1 -0
- 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/InputVeedVideoBackgroundRemoval.d.ts +12 -0
- package/dist/cjs/api/types/InputVeedVideoBackgroundRemoval.js +3 -0
- package/dist/cjs/api/types/InputVeedVideoBackgroundRemovalSourceVideo.d.ts +23 -0
- package/dist/cjs/api/types/InputVeedVideoBackgroundRemovalSourceVideo.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/ModelDetail.d.ts +2 -0
- package/dist/cjs/api/types/ModelSummary.d.ts +2 -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 +31 -0
- package/dist/cjs/api/types/index.js +31 -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 +438 -2
- package/dist/esm/api/resources/jobs/client/Client.mjs +1984 -820
- 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/SubmitBodyKlingO3.d.mts +0 -1
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.mts +0 -1
- 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/SubmitBodyVeedVideoBackgroundRemoval.d.mts +19 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyVeedVideoBackgroundRemoval.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 +14 -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/InputKlingAiAvatarV2.d.mts +1 -1
- package/dist/esm/api/types/InputKlingAiAvatarV2Audio.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3.d.mts +29 -7
- package/dist/esm/api/types/InputKlingO3.mjs +5 -0
- package/dist/esm/api/types/InputKlingV3.d.mts +29 -7
- package/dist/esm/api/types/InputKlingV3.mjs +5 -0
- package/dist/esm/api/types/InputMinimaxH3.d.mts +3 -3
- package/dist/esm/api/types/InputMinimaxH3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxH3StartImage.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 +4 -3
- package/dist/esm/api/types/InputSeedance25.mjs +1 -0
- 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/InputVeedVideoBackgroundRemoval.d.mts +12 -0
- package/dist/esm/api/types/InputVeedVideoBackgroundRemoval.mjs +2 -0
- package/dist/esm/api/types/InputVeedVideoBackgroundRemovalSourceVideo.d.mts +23 -0
- package/dist/esm/api/types/InputVeedVideoBackgroundRemovalSourceVideo.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/ModelDetail.d.mts +2 -0
- package/dist/esm/api/types/ModelSummary.d.mts +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 +31 -0
- package/dist/esm/api/types/index.mjs +31 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +1473 -463
|
@@ -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.3
|
|
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.3
|
|
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.3
|
|
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 —
|
|
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
|
|
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.3
|
|
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.3
|
|
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.3
|
|
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",
|
|
@@ -120,7 +120,7 @@ class WebhooksClient {
|
|
|
120
120
|
__getPublicKey(requestOptions) {
|
|
121
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
122
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
123
|
-
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.3
|
|
123
|
+
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);
|
|
124
124
|
const _response = yield core.fetcher({
|
|
125
125
|
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, "webhooks/public-key"),
|
|
126
126
|
method: "GET",
|
|
@@ -180,7 +180,7 @@ class WebhooksClient {
|
|
|
180
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
181
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
182
182
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
183
|
-
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.3
|
|
183
|
+
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);
|
|
184
184
|
const _response = yield core.fetcher({
|
|
185
185
|
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, "webhooks/default"),
|
|
186
186
|
method: "GET",
|
|
@@ -245,7 +245,7 @@ class WebhooksClient {
|
|
|
245
245
|
return __awaiter(this, void 0, void 0, function* () {
|
|
246
246
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
247
247
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
248
|
-
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.3
|
|
248
|
+
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);
|
|
249
249
|
const _response = yield core.fetcher({
|
|
250
250
|
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, "webhooks/default"),
|
|
251
251
|
method: "PUT",
|
|
@@ -310,7 +310,7 @@ class WebhooksClient {
|
|
|
310
310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
311
311
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
312
312
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
313
|
-
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.3
|
|
313
|
+
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);
|
|
314
314
|
const _response = yield core.fetcher({
|
|
315
315
|
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, "webhooks/default"),
|
|
316
316
|
method: "DELETE",
|
|
@@ -372,7 +372,7 @@ class WebhooksClient {
|
|
|
372
372
|
return __awaiter(this, void 0, void 0, function* () {
|
|
373
373
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
374
374
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
375
|
-
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.3
|
|
375
|
+
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);
|
|
376
376
|
const _response = yield core.fetcher({
|
|
377
377
|
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, "webhooks/default/test"),
|
|
378
378
|
method: "POST",
|
|
@@ -438,7 +438,7 @@ class WebhooksClient {
|
|
|
438
438
|
cursor,
|
|
439
439
|
};
|
|
440
440
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
441
|
-
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.3
|
|
441
|
+
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);
|
|
442
442
|
const _response = yield core.fetcher({
|
|
443
443
|
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, "webhooks/deliveries"),
|
|
444
444
|
method: "GET",
|
|
@@ -534,7 +534,7 @@ class WebhooksClient {
|
|
|
534
534
|
return __awaiter(this, arguments, void 0, function* (job_id, _request = {}, requestOptions) {
|
|
535
535
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
536
536
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
537
|
-
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.3
|
|
537
|
+
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);
|
|
538
538
|
const _response = yield core.fetcher({
|
|
539
539
|
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, `webhooks/deliveries/${core.url.encodePathParam(job_id)}/redeliver`),
|
|
540
540
|
method: "POST",
|
|
@@ -14,5 +14,6 @@ export declare const ApiKeyScope: {
|
|
|
14
14
|
readonly LogDrainsManage: "log_drains:manage";
|
|
15
15
|
readonly UsageRead: "usage:read";
|
|
16
16
|
readonly KeysManage: "keys:manage";
|
|
17
|
+
readonly ChatWrite: "chat:write";
|
|
17
18
|
};
|
|
18
19
|
export type ApiKeyScope = (typeof ApiKeyScope)[keyof typeof ApiKeyScope];
|
|
@@ -21,6 +21,7 @@ export declare const ErrorCode: {
|
|
|
21
21
|
readonly InsufficientBalance: "INSUFFICIENT_BALANCE";
|
|
22
22
|
readonly ModerationFailed: "MODERATION_FAILED";
|
|
23
23
|
readonly FailedPrecondition: "FAILED_PRECONDITION";
|
|
24
|
+
readonly Cancelled: "CANCELLED";
|
|
24
25
|
readonly DeadlineExceeded: "DEADLINE_EXCEEDED";
|
|
25
26
|
readonly ResourceExhausted: "RESOURCE_EXHAUSTED";
|
|
26
27
|
readonly Unavailable: "UNAVAILABLE";
|
|
@@ -25,6 +25,7 @@ exports.ErrorCode = {
|
|
|
25
25
|
InsufficientBalance: "INSUFFICIENT_BALANCE",
|
|
26
26
|
ModerationFailed: "MODERATION_FAILED",
|
|
27
27
|
FailedPrecondition: "FAILED_PRECONDITION",
|
|
28
|
+
Cancelled: "CANCELLED",
|
|
28
29
|
DeadlineExceeded: "DEADLINE_EXCEEDED",
|
|
29
30
|
ResourceExhausted: "RESOURCE_EXHAUSTED",
|
|
30
31
|
Unavailable: "UNAVAILABLE",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Hedra from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Model-specific inputs for `elevenlabs-audio-isolation`.
|
|
4
|
+
*/
|
|
5
|
+
export interface InputElevenlabsAudioIsolation {
|
|
6
|
+
/** Audio to strip background noise from. At most 104.8 MB. */
|
|
7
|
+
audio: Hedra.InputElevenlabsAudioIsolationAudio;
|
|
8
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Hedra from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Audio to strip background noise from. At most 104.8 MB.
|
|
4
|
+
*/
|
|
5
|
+
export type InputElevenlabsAudioIsolationAudio =
|
|
6
|
+
/**
|
|
7
|
+
* A file uploaded via POST /v3/files, referenced by the returned url. */
|
|
8
|
+
Hedra.InputElevenlabsAudioIsolationAudio.Url
|
|
9
|
+
/**
|
|
10
|
+
* An existing asset you own, referenced by its id. */
|
|
11
|
+
| Hedra.InputElevenlabsAudioIsolationAudio.Asset;
|
|
12
|
+
export declare namespace InputElevenlabsAudioIsolationAudio {
|
|
13
|
+
interface Url {
|
|
14
|
+
source: "url";
|
|
15
|
+
/** A URL returned by POST /v3/files. */
|
|
16
|
+
url: string;
|
|
17
|
+
}
|
|
18
|
+
interface Asset {
|
|
19
|
+
source: "asset";
|
|
20
|
+
/** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
|
|
21
|
+
asset_id: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Hedra from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Model-specific inputs for `elevenlabs-english-sts-v2`.
|
|
4
|
+
*/
|
|
5
|
+
export interface InputElevenlabsEnglishStsV2 {
|
|
6
|
+
/** Speech to re-voice. The delivery, pacing, and timing of this recording are preserved; only the voice changes. At most 104.8 MB. */
|
|
7
|
+
audio: Hedra.InputElevenlabsEnglishStsV2Audio;
|
|
8
|
+
/** Voice to speak with (`voice_<uuid>`). List the voices you can use at GET /v3/models/elevenlabs-english-sts-v2/voices; sent with your credentials, the list includes the voices you cloned. */
|
|
9
|
+
voice_id: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Hedra from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Speech to re-voice. The delivery, pacing, and timing of this recording are preserved; only the voice changes. At most 104.8 MB.
|
|
4
|
+
*/
|
|
5
|
+
export type InputElevenlabsEnglishStsV2Audio =
|
|
6
|
+
/**
|
|
7
|
+
* A file uploaded via POST /v3/files, referenced by the returned url. */
|
|
8
|
+
Hedra.InputElevenlabsEnglishStsV2Audio.Url
|
|
9
|
+
/**
|
|
10
|
+
* An existing asset you own, referenced by its id. */
|
|
11
|
+
| Hedra.InputElevenlabsEnglishStsV2Audio.Asset;
|
|
12
|
+
export declare namespace InputElevenlabsEnglishStsV2Audio {
|
|
13
|
+
interface Url {
|
|
14
|
+
source: "url";
|
|
15
|
+
/** A URL returned by POST /v3/files. */
|
|
16
|
+
url: string;
|
|
17
|
+
}
|
|
18
|
+
interface Asset {
|
|
19
|
+
source: "asset";
|
|
20
|
+
/** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
|
|
21
|
+
asset_id: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -10,6 +10,6 @@ export interface InputElevenlabsFlashMultilingualV2 {
|
|
|
10
10
|
speed?: number | undefined;
|
|
11
11
|
/** Language code; 'auto' by default. */
|
|
12
12
|
language?: string | undefined;
|
|
13
|
-
/** Voice to speak with (`voice_<uuid>`). List
|
|
13
|
+
/** Voice to speak with (`voice_<uuid>`). List the voices you can use at GET /v3/models/elevenlabs-flash-multilingual-v2/voices; sent with your credentials, the list includes the voices you cloned. */
|
|
14
14
|
voice_id: string;
|
|
15
15
|
}
|
|
@@ -10,6 +10,6 @@ export interface InputElevenlabsFlashV2 {
|
|
|
10
10
|
speed?: number | undefined;
|
|
11
11
|
/** Language code; 'auto' by default. */
|
|
12
12
|
language?: string | undefined;
|
|
13
|
-
/** Voice to speak with (`voice_<uuid>`). List
|
|
13
|
+
/** Voice to speak with (`voice_<uuid>`). List the voices you can use at GET /v3/models/elevenlabs-flash-v2/voices; sent with your credentials, the list includes the voices you cloned. */
|
|
14
14
|
voice_id: string;
|
|
15
15
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Hedra from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Model-specific inputs for `elevenlabs-multilingual-sts-v2`.
|
|
4
|
+
*/
|
|
5
|
+
export interface InputElevenlabsMultilingualStsV2 {
|
|
6
|
+
/** Speech to re-voice. The delivery, pacing, and timing of this recording are preserved; only the voice changes. At most 104.8 MB. */
|
|
7
|
+
audio: Hedra.InputElevenlabsMultilingualStsV2Audio;
|
|
8
|
+
/** Voice to speak with (`voice_<uuid>`). List the voices you can use at GET /v3/models/elevenlabs-multilingual-sts-v2/voices; sent with your credentials, the list includes the voices you cloned. */
|
|
9
|
+
voice_id: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Hedra from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Speech to re-voice. The delivery, pacing, and timing of this recording are preserved; only the voice changes. At most 104.8 MB.
|
|
4
|
+
*/
|
|
5
|
+
export type InputElevenlabsMultilingualStsV2Audio =
|
|
6
|
+
/**
|
|
7
|
+
* A file uploaded via POST /v3/files, referenced by the returned url. */
|
|
8
|
+
Hedra.InputElevenlabsMultilingualStsV2Audio.Url
|
|
9
|
+
/**
|
|
10
|
+
* An existing asset you own, referenced by its id. */
|
|
11
|
+
| Hedra.InputElevenlabsMultilingualStsV2Audio.Asset;
|
|
12
|
+
export declare namespace InputElevenlabsMultilingualStsV2Audio {
|
|
13
|
+
interface Url {
|
|
14
|
+
source: "url";
|
|
15
|
+
/** A URL returned by POST /v3/files. */
|
|
16
|
+
url: string;
|
|
17
|
+
}
|
|
18
|
+
interface Asset {
|
|
19
|
+
source: "asset";
|
|
20
|
+
/** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
|
|
21
|
+
asset_id: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -10,6 +10,6 @@ export interface InputElevenlabsMultilingualV2 {
|
|
|
10
10
|
speed?: number | undefined;
|
|
11
11
|
/** Language code; 'auto' by default. */
|
|
12
12
|
language?: string | undefined;
|
|
13
|
-
/** Voice to speak with (`voice_<uuid>`). List
|
|
13
|
+
/** Voice to speak with (`voice_<uuid>`). List the voices you can use at GET /v3/models/elevenlabs-multilingual-v2/voices; sent with your credentials, the list includes the voices you cloned. */
|
|
14
14
|
voice_id: string;
|
|
15
15
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model-specific inputs for `elevenlabs-sound-effects`.
|
|
3
|
+
*/
|
|
4
|
+
export interface InputElevenlabsSoundEffects {
|
|
5
|
+
/** Generation prompt. */
|
|
6
|
+
text: string;
|
|
7
|
+
/** Length of the generated sound, in milliseconds. Billed as whole seconds, rounded up. From 500 to 30000. */
|
|
8
|
+
duration_ms: number;
|
|
9
|
+
/** How literally the model reads the description; higher values track it more closely and lower values leave the model more latitude. From 0 to 1. */
|
|
10
|
+
prompt_influence?: number | undefined;
|
|
11
|
+
/** Generate a sound that loops seamlessly end to end. */
|
|
12
|
+
loop?: boolean | undefined;
|
|
13
|
+
}
|
|
@@ -10,6 +10,6 @@ export interface InputElevenlabsV3 {
|
|
|
10
10
|
speed?: number | undefined;
|
|
11
11
|
/** Language code; 'auto' by default. */
|
|
12
12
|
language?: string | undefined;
|
|
13
|
-
/** Voice to speak with (`voice_<uuid>`). List
|
|
13
|
+
/** Voice to speak with (`voice_<uuid>`). List the voices you can use at GET /v3/models/elevenlabs-v3/voices; sent with your credentials, the list includes the voices you cloned. */
|
|
14
14
|
voice_id: string;
|
|
15
15
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Hedra from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Model-specific inputs for `elevenlabs-voice-clone`.
|
|
4
|
+
*/
|
|
5
|
+
export interface InputElevenlabsVoiceClone {
|
|
6
|
+
/** Speech sample of the voice to clone. Longer, cleaner samples of a single speaker clone better. At most 104.8 MB. */
|
|
7
|
+
audio: Hedra.InputElevenlabsVoiceCloneAudio;
|
|
8
|
+
/** Name for the created voice. Shown wherever the voice is listed; it does not affect how the voice sounds. At least 1 character. */
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Hedra from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Speech sample of the voice to clone. Longer, cleaner samples of a single speaker clone better. At most 104.8 MB.
|
|
4
|
+
*/
|
|
5
|
+
export type InputElevenlabsVoiceCloneAudio =
|
|
6
|
+
/**
|
|
7
|
+
* A file uploaded via POST /v3/files, referenced by the returned url. */
|
|
8
|
+
Hedra.InputElevenlabsVoiceCloneAudio.Url
|
|
9
|
+
/**
|
|
10
|
+
* An existing asset you own, referenced by its id. */
|
|
11
|
+
| Hedra.InputElevenlabsVoiceCloneAudio.Asset;
|
|
12
|
+
export declare namespace InputElevenlabsVoiceCloneAudio {
|
|
13
|
+
interface Url {
|
|
14
|
+
source: "url";
|
|
15
|
+
/** A URL returned by POST /v3/files. */
|
|
16
|
+
url: string;
|
|
17
|
+
}
|
|
18
|
+
interface Asset {
|
|
19
|
+
source: "asset";
|
|
20
|
+
/** The asset's id (`asset_<uuid>`), as issued by the server — a completed generation publishes one per output as `outputs[].asset_id`. Do not construct one or derive it from any other id. */
|
|
21
|
+
asset_id: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -11,7 +11,7 @@ export interface InputGptImage2 {
|
|
|
11
11
|
prompt: string;
|
|
12
12
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
13
13
|
num_outputs?: number | undefined;
|
|
14
|
-
/**
|
|
14
|
+
/** Not available on this model. Its price is computed from the exact prompt submitted, which a rewrite would invalidate. */
|
|
15
15
|
enhance_prompt?: boolean | undefined;
|
|
16
16
|
/** Output aspect ratio. */
|
|
17
17
|
aspect_ratio: InputGptImage2.AspectRatio;
|
|
@@ -13,7 +13,7 @@ export interface InputKlingAiAvatarV2 {
|
|
|
13
13
|
resolution?: InputKlingAiAvatarV2.Resolution | undefined;
|
|
14
14
|
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
15
15
|
start_image: Hedra.InputKlingAiAvatarV2StartImage;
|
|
16
|
-
/** Driving audio.
|
|
16
|
+
/** Driving audio. From 2s to 60s and at most 5 MB. */
|
|
17
17
|
audio: Hedra.InputKlingAiAvatarV2Audio;
|
|
18
18
|
/** Quality level to generate at. */
|
|
19
19
|
quality: InputKlingAiAvatarV2.Quality;
|
|
@@ -3,18 +3,22 @@ import type * as Hedra from "../index.js";
|
|
|
3
3
|
* Model-specific inputs for `kling-o3`.
|
|
4
4
|
*
|
|
5
5
|
* Accepted field combinations (one per input mode):
|
|
6
|
-
* (1) requires: aspect_ratio, duration_ms,
|
|
7
|
-
* (2) requires: aspect_ratio, duration_ms, images,
|
|
8
|
-
* (3) requires: aspect_ratio, duration_ms,
|
|
9
|
-
* (4) requires: aspect_ratio, duration_ms,
|
|
10
|
-
* (5) requires: aspect_ratio, duration_ms, images
|
|
11
|
-
* (6) requires: aspect_ratio, duration_ms
|
|
6
|
+
* (1) requires: aspect_ratio, duration_ms, resolution, start_image; accepts quality: pro; resolution: 1080p | 4K
|
|
7
|
+
* (2) requires: aspect_ratio, duration_ms, images, resolution; accepts quality: pro; resolution: 1080p | 4K
|
|
8
|
+
* (3) requires: aspect_ratio, duration_ms, resolution; must omit: end_image, images, start_image; accepts quality: pro; resolution: 1080p | 4K
|
|
9
|
+
* (4) requires: aspect_ratio, duration_ms, start_image; accepts quality: standard; resolution: 720p
|
|
10
|
+
* (5) requires: aspect_ratio, duration_ms, images; accepts quality: standard; resolution: 720p
|
|
11
|
+
* (6) requires: aspect_ratio, duration_ms; must omit: end_image, images, start_image; accepts quality: standard; resolution: 720p
|
|
12
12
|
*/
|
|
13
13
|
export interface InputKlingO3 {
|
|
14
14
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
15
15
|
num_outputs?: number | undefined;
|
|
16
16
|
/** Generation prompt. At most 2500 characters. */
|
|
17
|
-
prompt
|
|
17
|
+
prompt?: string | undefined;
|
|
18
|
+
/** Multi-shot storyboard; each shot carries its own prompt and duration. Shot durations must sum to at most 15000 ms, and the storyboard replaces `prompt` — supply one or the other, never both. A shot's prompt has no length limit, unlike the single `prompt` field. 1 to 6 items. */
|
|
19
|
+
multi_prompt?: InputKlingO3.MultiPrompt.Item[] | undefined;
|
|
20
|
+
/** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
|
|
21
|
+
shot_type?: InputKlingO3.ShotType | undefined;
|
|
18
22
|
/** Whether to generate native audio for the video. */
|
|
19
23
|
generate_audio?: boolean | undefined;
|
|
20
24
|
/** Output aspect ratio. */
|
|
@@ -33,6 +37,24 @@ export interface InputKlingO3 {
|
|
|
33
37
|
quality: InputKlingO3.Quality;
|
|
34
38
|
}
|
|
35
39
|
export declare namespace InputKlingO3 {
|
|
40
|
+
type MultiPrompt = MultiPrompt.Item[];
|
|
41
|
+
namespace MultiPrompt {
|
|
42
|
+
/**
|
|
43
|
+
* One shot of a published multi-shot storyboard.
|
|
44
|
+
*/
|
|
45
|
+
interface Item {
|
|
46
|
+
/** The prompt for this shot. */
|
|
47
|
+
prompt: string;
|
|
48
|
+
/** Duration of this shot in milliseconds. */
|
|
49
|
+
duration_ms?: number | undefined;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
|
|
53
|
+
const ShotType: {
|
|
54
|
+
readonly Customize: "customize";
|
|
55
|
+
readonly Intelligent: "intelligent";
|
|
56
|
+
};
|
|
57
|
+
type ShotType = (typeof ShotType)[keyof typeof ShotType];
|
|
36
58
|
/** Output aspect ratio. */
|
|
37
59
|
const AspectRatio: {
|
|
38
60
|
readonly Sixteen9: "16:9";
|
|
@@ -4,6 +4,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.InputKlingO3 = void 0;
|
|
5
5
|
var InputKlingO3;
|
|
6
6
|
(function (InputKlingO3) {
|
|
7
|
+
/** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
|
|
8
|
+
InputKlingO3.ShotType = {
|
|
9
|
+
Customize: "customize",
|
|
10
|
+
Intelligent: "intelligent",
|
|
11
|
+
};
|
|
7
12
|
/** Output aspect ratio. */
|
|
8
13
|
InputKlingO3.AspectRatio = {
|
|
9
14
|
Sixteen9: "16:9",
|
|
@@ -3,18 +3,22 @@ import type * as Hedra from "../index.js";
|
|
|
3
3
|
* Model-specific inputs for `kling-v3`.
|
|
4
4
|
*
|
|
5
5
|
* Accepted field combinations (one per input mode):
|
|
6
|
-
* (1) requires: aspect_ratio, duration_ms,
|
|
7
|
-
* (2) requires: aspect_ratio, duration_ms, end_image,
|
|
8
|
-
* (3) requires: aspect_ratio, duration_ms,
|
|
9
|
-
* (4) requires: aspect_ratio, duration_ms,
|
|
10
|
-
* (5) requires: aspect_ratio, duration_ms, end_image,
|
|
11
|
-
* (6) requires: aspect_ratio, duration_ms
|
|
6
|
+
* (1) requires: aspect_ratio, duration_ms, resolution, start_image; must omit: end_image; accepts quality: pro; resolution: 1080p | 4K
|
|
7
|
+
* (2) requires: aspect_ratio, duration_ms, end_image, resolution, start_image; accepts quality: pro; resolution: 1080p | 4K
|
|
8
|
+
* (3) requires: aspect_ratio, duration_ms, resolution; must omit: end_image, start_image; accepts quality: pro; resolution: 1080p | 4K
|
|
9
|
+
* (4) requires: aspect_ratio, duration_ms, start_image; must omit: end_image; accepts quality: standard; resolution: 720p
|
|
10
|
+
* (5) requires: aspect_ratio, duration_ms, end_image, start_image; accepts quality: standard; resolution: 720p
|
|
11
|
+
* (6) requires: aspect_ratio, duration_ms; must omit: end_image, start_image; accepts quality: standard; resolution: 720p
|
|
12
12
|
*/
|
|
13
13
|
export interface InputKlingV3 {
|
|
14
14
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
15
15
|
num_outputs?: number | undefined;
|
|
16
16
|
/** Generation prompt. At most 2500 characters. */
|
|
17
|
-
prompt
|
|
17
|
+
prompt?: string | undefined;
|
|
18
|
+
/** Multi-shot storyboard; each shot carries its own prompt and duration. Shot durations must sum to at most 15000 ms, and the storyboard replaces `prompt` — supply one or the other, never both. A shot's prompt has no length limit, unlike the single `prompt` field. 1 to 6 items. */
|
|
19
|
+
multi_prompt?: InputKlingV3.MultiPrompt.Item[] | undefined;
|
|
20
|
+
/** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
|
|
21
|
+
shot_type?: InputKlingV3.ShotType | undefined;
|
|
18
22
|
/** Whether to generate native audio for the video. */
|
|
19
23
|
generate_audio?: boolean | undefined;
|
|
20
24
|
/** What to avoid in the generated video. At most 2500 characters. */
|
|
@@ -35,6 +39,24 @@ export interface InputKlingV3 {
|
|
|
35
39
|
quality: InputKlingV3.Quality;
|
|
36
40
|
}
|
|
37
41
|
export declare namespace InputKlingV3 {
|
|
42
|
+
type MultiPrompt = MultiPrompt.Item[];
|
|
43
|
+
namespace MultiPrompt {
|
|
44
|
+
/**
|
|
45
|
+
* One shot of a published multi-shot storyboard.
|
|
46
|
+
*/
|
|
47
|
+
interface Item {
|
|
48
|
+
/** The prompt for this shot. */
|
|
49
|
+
prompt: string;
|
|
50
|
+
/** Duration of this shot in milliseconds. */
|
|
51
|
+
duration_ms?: number | undefined;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
|
|
55
|
+
const ShotType: {
|
|
56
|
+
readonly Customize: "customize";
|
|
57
|
+
readonly Intelligent: "intelligent";
|
|
58
|
+
};
|
|
59
|
+
type ShotType = (typeof ShotType)[keyof typeof ShotType];
|
|
38
60
|
/** Output aspect ratio. */
|
|
39
61
|
const AspectRatio: {
|
|
40
62
|
readonly Sixteen9: "16:9";
|
|
@@ -4,6 +4,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.InputKlingV3 = void 0;
|
|
5
5
|
var InputKlingV3;
|
|
6
6
|
(function (InputKlingV3) {
|
|
7
|
+
/** How a multi-shot storyboard is cut. 'customize' honours each shot's declared duration; 'intelligent' lets the model determine the shot structure. Ignored unless `multi_prompt` is supplied. */
|
|
8
|
+
InputKlingV3.ShotType = {
|
|
9
|
+
Customize: "customize",
|
|
10
|
+
Intelligent: "intelligent",
|
|
11
|
+
};
|
|
7
12
|
/** Output aspect ratio. */
|
|
8
13
|
InputKlingV3.AspectRatio = {
|
|
9
14
|
Sixteen9: "16:9",
|