@hedra/sdk 1.0.0 → 2.0.2
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.js +81 -81
- 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.js +6 -6
- 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/InputElevenlabsFlashMultilingualV2.d.ts +3 -3
- package/dist/cjs/api/types/InputElevenlabsFlashV2.d.ts +3 -3
- package/dist/cjs/api/types/InputElevenlabsMultilingualV2.d.ts +3 -3
- package/dist/cjs/api/types/InputElevenlabsV3.d.ts +3 -3
- package/dist/cjs/api/types/InputFlux2Flex.d.ts +3 -3
- package/dist/cjs/api/types/InputFlux2Klein9B.d.ts +3 -3
- package/dist/cjs/api/types/InputFlux2Max.d.ts +1 -1
- package/dist/cjs/api/types/InputFlux2Pro.d.ts +1 -1
- package/dist/cjs/api/types/InputFlux3.d.ts +2 -2
- package/dist/cjs/api/types/InputFlux3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputFlux3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputFluxDev.d.ts +2 -2
- package/dist/cjs/api/types/InputFluxKontextMax.d.ts +1 -1
- package/dist/cjs/api/types/InputFluxKontextPro.d.ts +1 -1
- package/dist/cjs/api/types/InputGeminiOmniFlash.d.ts +4 -4
- package/dist/cjs/api/types/InputGeminiOmniFlashSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputGeminiOmniFlashStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputGptImage15.d.ts +2 -2
- package/dist/cjs/api/types/InputGptImage2.d.ts +2 -2
- package/dist/cjs/api/types/InputGrokImagine.d.ts +2 -2
- package/dist/cjs/api/types/InputGrokVideo.d.ts +2 -2
- package/dist/cjs/api/types/InputGrokVideoStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHappyHorse.d.ts +4 -4
- package/dist/cjs/api/types/InputHappyHorseStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraAvatar.d.ts +4 -4
- package/dist/cjs/api/types/InputHedraAvatarStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraCharacter3.d.ts +4 -4
- package/dist/cjs/api/types/InputHedraCharacter3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHidreamO1Image.d.ts +4 -4
- package/dist/cjs/api/types/InputImagen4.d.ts +1 -1
- package/dist/cjs/api/types/InputKling16.d.ts +4 -4
- package/dist/cjs/api/types/InputKling16StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling21Master.d.ts +4 -4
- package/dist/cjs/api/types/InputKling21MasterStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling25Turbo.d.ts +4 -4
- package/dist/cjs/api/types/InputKling25TurboStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling26MotionControl.d.ts +3 -3
- package/dist/cjs/api/types/InputKling26MotionControlSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputKling26MotionControlStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling26Pro.d.ts +4 -4
- package/dist/cjs/api/types/InputKling26ProStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingAiAvatarV2.d.ts +3 -3
- package/dist/cjs/api/types/InputKlingAiAvatarV2Audio.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingAiAvatarV2StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO1.d.ts +4 -4
- package/dist/cjs/api/types/InputKlingO1EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO1StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3.d.ts +4 -4
- package/dist/cjs/api/types/InputKlingO3Edit.d.ts +3 -3
- package/dist/cjs/api/types/InputKlingO3EditSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3Reference.d.ts +3 -3
- package/dist/cjs/api/types/InputKlingO3ReferenceSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3.d.ts +5 -5
- package/dist/cjs/api/types/InputKlingV3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3MotionControl.d.ts +3 -3
- package/dist/cjs/api/types/InputKlingV3MotionControlSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3MotionControlStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputLtx23.d.ts +3 -3
- package/dist/cjs/api/types/InputLtx23EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputLtx23StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputLumaRay32.d.ts +1 -1
- package/dist/cjs/api/types/InputMaiImage25.d.ts +2 -2
- package/dist/cjs/api/types/InputMinimaxH3.d.ts +6 -6
- 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/InputMinimaxHailuo02.d.ts +3 -3
- package/dist/cjs/api/types/InputMinimaxHailuo02EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxHailuo02StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxHailuo23.d.ts +2 -2
- package/dist/cjs/api/types/InputMinimaxHailuo23StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxSpeech25HdPreview.d.ts +3 -3
- package/dist/cjs/api/types/InputMinimaxSpeech25TurboPreview.d.ts +3 -3
- package/dist/cjs/api/types/InputNanoBanana.d.ts +1 -1
- package/dist/cjs/api/types/InputNanoBanana2.d.ts +1 -1
- package/dist/cjs/api/types/InputNanoBananaPro.d.ts +1 -1
- package/dist/cjs/api/types/InputOmnihuman15.d.ts +2 -2
- package/dist/cjs/api/types/InputOmnihuman15Audio.d.ts +1 -1
- package/dist/cjs/api/types/InputOmnihuman15StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputPixverseV6.d.ts +3 -3
- package/dist/cjs/api/types/InputPixverseV6StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputQwenImage2.d.ts +4 -4
- package/dist/cjs/api/types/InputRecraftV3.d.ts +1 -1
- package/dist/cjs/api/types/InputReve21.d.ts +1 -1
- package/dist/cjs/api/types/InputReve21Edit.d.ts +2 -2
- package/dist/cjs/api/types/InputReve21Remix.d.ts +2 -2
- package/dist/cjs/api/types/InputSana.d.ts +2 -2
- package/dist/cjs/api/types/InputSeedance15Pro.d.ts +3 -3
- 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 +5 -5
- package/dist/cjs/api/types/InputSeedance20EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20Mini.d.ts +5 -5
- 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 +5 -5
- 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/InputSeedream40.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedream45.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedream50Lite.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedream50Pro.d.ts +1 -1
- package/dist/cjs/api/types/InputSora2Pro.d.ts +2 -2
- package/dist/cjs/api/types/InputSora2ProStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeedFabric10.d.ts +2 -2
- package/dist/cjs/api/types/InputVeedFabric10Audio.d.ts +1 -1
- package/dist/cjs/api/types/InputVeedFabric10StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo2.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo2StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo3.d.ts +2 -2
- package/dist/cjs/api/types/InputVeo31.d.ts +5 -5
- package/dist/cjs/api/types/InputVeo31EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo31SourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo31StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputViduQ3.d.ts +3 -3
- package/dist/cjs/api/types/InputViduQ3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputViduQ3Reference.d.ts +2 -2
- package/dist/cjs/api/types/InputViduQ3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputWan27.d.ts +6 -6
- package/dist/cjs/api/types/InputWan27EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputWan27StartImage.d.ts +1 -1
- 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.mjs +81 -81
- 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.mjs +6 -6
- 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/InputElevenlabsFlashMultilingualV2.d.mts +3 -3
- package/dist/esm/api/types/InputElevenlabsFlashV2.d.mts +3 -3
- package/dist/esm/api/types/InputElevenlabsMultilingualV2.d.mts +3 -3
- package/dist/esm/api/types/InputElevenlabsV3.d.mts +3 -3
- package/dist/esm/api/types/InputFlux2Flex.d.mts +3 -3
- package/dist/esm/api/types/InputFlux2Klein9B.d.mts +3 -3
- package/dist/esm/api/types/InputFlux2Max.d.mts +1 -1
- package/dist/esm/api/types/InputFlux2Pro.d.mts +1 -1
- package/dist/esm/api/types/InputFlux3.d.mts +2 -2
- package/dist/esm/api/types/InputFlux3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputFlux3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputFluxDev.d.mts +2 -2
- package/dist/esm/api/types/InputFluxKontextMax.d.mts +1 -1
- package/dist/esm/api/types/InputFluxKontextPro.d.mts +1 -1
- package/dist/esm/api/types/InputGeminiOmniFlash.d.mts +4 -4
- package/dist/esm/api/types/InputGeminiOmniFlashSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputGeminiOmniFlashStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputGptImage15.d.mts +2 -2
- package/dist/esm/api/types/InputGptImage2.d.mts +2 -2
- package/dist/esm/api/types/InputGrokImagine.d.mts +2 -2
- package/dist/esm/api/types/InputGrokVideo.d.mts +2 -2
- package/dist/esm/api/types/InputGrokVideoStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHappyHorse.d.mts +4 -4
- package/dist/esm/api/types/InputHappyHorseStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHedraAvatar.d.mts +4 -4
- package/dist/esm/api/types/InputHedraAvatarStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHedraCharacter3.d.mts +4 -4
- package/dist/esm/api/types/InputHedraCharacter3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHidreamO1Image.d.mts +4 -4
- package/dist/esm/api/types/InputImagen4.d.mts +1 -1
- package/dist/esm/api/types/InputKling16.d.mts +4 -4
- package/dist/esm/api/types/InputKling16StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling21Master.d.mts +4 -4
- package/dist/esm/api/types/InputKling21MasterStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling25Turbo.d.mts +4 -4
- package/dist/esm/api/types/InputKling25TurboStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling26MotionControl.d.mts +3 -3
- package/dist/esm/api/types/InputKling26MotionControlSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputKling26MotionControlStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling26Pro.d.mts +4 -4
- package/dist/esm/api/types/InputKling26ProStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingAiAvatarV2.d.mts +3 -3
- package/dist/esm/api/types/InputKlingAiAvatarV2Audio.d.mts +1 -1
- package/dist/esm/api/types/InputKlingAiAvatarV2StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO1.d.mts +4 -4
- package/dist/esm/api/types/InputKlingO1EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO1StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3.d.mts +4 -4
- package/dist/esm/api/types/InputKlingO3Edit.d.mts +3 -3
- package/dist/esm/api/types/InputKlingO3EditSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3Reference.d.mts +3 -3
- package/dist/esm/api/types/InputKlingO3ReferenceSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3.d.mts +5 -5
- package/dist/esm/api/types/InputKlingV3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3MotionControl.d.mts +3 -3
- package/dist/esm/api/types/InputKlingV3MotionControlSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3MotionControlStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputLtx23.d.mts +3 -3
- package/dist/esm/api/types/InputLtx23EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputLtx23StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputLumaRay32.d.mts +1 -1
- package/dist/esm/api/types/InputMaiImage25.d.mts +2 -2
- package/dist/esm/api/types/InputMinimaxH3.d.mts +6 -6
- 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/InputMinimaxHailuo02.d.mts +3 -3
- package/dist/esm/api/types/InputMinimaxHailuo02EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxHailuo02StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxHailuo23.d.mts +2 -2
- package/dist/esm/api/types/InputMinimaxHailuo23StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxSpeech25HdPreview.d.mts +3 -3
- package/dist/esm/api/types/InputMinimaxSpeech25TurboPreview.d.mts +3 -3
- package/dist/esm/api/types/InputNanoBanana.d.mts +1 -1
- package/dist/esm/api/types/InputNanoBanana2.d.mts +1 -1
- package/dist/esm/api/types/InputNanoBananaPro.d.mts +1 -1
- package/dist/esm/api/types/InputOmnihuman15.d.mts +2 -2
- package/dist/esm/api/types/InputOmnihuman15Audio.d.mts +1 -1
- package/dist/esm/api/types/InputOmnihuman15StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputPixverseV6.d.mts +3 -3
- package/dist/esm/api/types/InputPixverseV6StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputQwenImage2.d.mts +4 -4
- package/dist/esm/api/types/InputRecraftV3.d.mts +1 -1
- package/dist/esm/api/types/InputReve21.d.mts +1 -1
- package/dist/esm/api/types/InputReve21Edit.d.mts +2 -2
- package/dist/esm/api/types/InputReve21Remix.d.mts +2 -2
- package/dist/esm/api/types/InputSana.d.mts +2 -2
- package/dist/esm/api/types/InputSeedance15Pro.d.mts +3 -3
- 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 +5 -5
- package/dist/esm/api/types/InputSeedance20EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20Mini.d.mts +5 -5
- 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 +5 -5
- 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/InputSeedream40.d.mts +1 -1
- package/dist/esm/api/types/InputSeedream45.d.mts +1 -1
- package/dist/esm/api/types/InputSeedream50Lite.d.mts +1 -1
- package/dist/esm/api/types/InputSeedream50Pro.d.mts +1 -1
- package/dist/esm/api/types/InputSora2Pro.d.mts +2 -2
- package/dist/esm/api/types/InputSora2ProStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeedFabric10.d.mts +2 -2
- package/dist/esm/api/types/InputVeedFabric10Audio.d.mts +1 -1
- package/dist/esm/api/types/InputVeedFabric10StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeo2.d.mts +1 -1
- package/dist/esm/api/types/InputVeo2StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeo3.d.mts +2 -2
- package/dist/esm/api/types/InputVeo31.d.mts +5 -5
- package/dist/esm/api/types/InputVeo31EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeo31SourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputVeo31StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeo3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputViduQ3.d.mts +3 -3
- package/dist/esm/api/types/InputViduQ3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputViduQ3Reference.d.mts +2 -2
- package/dist/esm/api/types/InputViduQ3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputWan27.d.mts +6 -6
- package/dist/esm/api/types/InputWan27EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputWan27StartImage.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ import type * as Hedra from "../index.js";
|
|
|
9
9
|
export interface InputVeo3 {
|
|
10
10
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
11
11
|
num_outputs?: number | undefined;
|
|
12
|
-
/** Generation prompt. */
|
|
12
|
+
/** Generation prompt. At most 20000 characters. */
|
|
13
13
|
prompt: string;
|
|
14
14
|
/** Output aspect ratio. */
|
|
15
15
|
aspect_ratio: InputVeo3.AspectRatio;
|
|
@@ -19,7 +19,7 @@ export interface InputVeo3 {
|
|
|
19
19
|
duration_ms: number;
|
|
20
20
|
/** Whether to generate native audio for the video. */
|
|
21
21
|
generate_audio?: boolean | undefined;
|
|
22
|
-
/** Start frame (image-to-video). */
|
|
22
|
+
/** Start frame (image-to-video). At most 8 MB. */
|
|
23
23
|
start_image?: Hedra.InputVeo3StartImage | undefined;
|
|
24
24
|
/** What to avoid in the generated video. */
|
|
25
25
|
negative_prompt?: string | undefined;
|
|
@@ -17,15 +17,15 @@ export interface InputVeo31 {
|
|
|
17
17
|
generate_audio?: boolean | undefined;
|
|
18
18
|
/** What to avoid in the generated video. */
|
|
19
19
|
negative_prompt?: string | undefined;
|
|
20
|
-
/** Start frame (image-to-video). */
|
|
20
|
+
/** Start frame (image-to-video). At most 20 MB. */
|
|
21
21
|
start_image?: Hedra.InputVeo31StartImage | undefined;
|
|
22
|
-
/** End frame (first-last-frame-to-video). */
|
|
22
|
+
/** End frame (first-last-frame-to-video). At most 20 MB. */
|
|
23
23
|
end_image?: Hedra.InputVeo31EndImage | undefined;
|
|
24
|
-
/** Source video (video-to-video). */
|
|
24
|
+
/** Source video (video-to-video). From 1s to 30s and at most 524.2 MB. */
|
|
25
25
|
source_video?: Hedra.InputVeo31SourceVideo | undefined;
|
|
26
|
-
/** Reference images. */
|
|
26
|
+
/** Reference images. 1 to 3 images, each at most 20 MB. */
|
|
27
27
|
images?: Hedra.InputVeo31ImagesItem[] | undefined;
|
|
28
|
-
/** Seed for reproducible output; omit for a random seed. */
|
|
28
|
+
/** Seed for reproducible output; omit for a random seed. From 0 to 4294967295. */
|
|
29
29
|
seed?: number | undefined;
|
|
30
30
|
/** Quality level to generate at. */
|
|
31
31
|
quality: InputVeo31.Quality;
|
|
@@ -10,7 +10,7 @@ import type * as Hedra from "../index.js";
|
|
|
10
10
|
export interface InputViduQ3 {
|
|
11
11
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
12
12
|
num_outputs?: number | undefined;
|
|
13
|
-
/** Generation prompt. */
|
|
13
|
+
/** Generation prompt. At most 2000 characters. */
|
|
14
14
|
prompt: string;
|
|
15
15
|
/** Seed for reproducible output; omit for a random seed. */
|
|
16
16
|
seed?: number | undefined;
|
|
@@ -18,9 +18,9 @@ export interface InputViduQ3 {
|
|
|
18
18
|
resolution: InputViduQ3.Resolution;
|
|
19
19
|
/** Duration in ms. */
|
|
20
20
|
duration_ms: number;
|
|
21
|
-
/** Start frame (image-to-video). */
|
|
21
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
22
22
|
start_image?: Hedra.InputViduQ3StartImage | undefined;
|
|
23
|
-
/** End frame (first-last-frame-to-video). */
|
|
23
|
+
/** End frame (first-last-frame-to-video). At most 10.4 MB. */
|
|
24
24
|
end_image?: Hedra.InputViduQ3EndImage | undefined;
|
|
25
25
|
/** Output aspect ratio. */
|
|
26
26
|
aspect_ratio?: InputViduQ3.AspectRatio | undefined;
|
|
@@ -5,7 +5,7 @@ import type * as Hedra from "../index.js";
|
|
|
5
5
|
export interface InputViduQ3Reference {
|
|
6
6
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
7
7
|
num_outputs?: number | undefined;
|
|
8
|
-
/** Generation prompt. */
|
|
8
|
+
/** Generation prompt. At most 2000 characters. */
|
|
9
9
|
prompt: string;
|
|
10
10
|
/** Seed for reproducible output; omit for a random seed. */
|
|
11
11
|
seed?: number | undefined;
|
|
@@ -15,7 +15,7 @@ export interface InputViduQ3Reference {
|
|
|
15
15
|
resolution: InputViduQ3Reference.Resolution;
|
|
16
16
|
/** Duration in ms. */
|
|
17
17
|
duration_ms: number;
|
|
18
|
-
/** Reference images. */
|
|
18
|
+
/** Reference images. 1 to 4 images, each at most 10.4 MB. */
|
|
19
19
|
images: Hedra.InputViduQ3ReferenceImagesItem[];
|
|
20
20
|
}
|
|
21
21
|
export declare namespace InputViduQ3Reference {
|
|
@@ -10,23 +10,23 @@ import type * as Hedra from "../index.js";
|
|
|
10
10
|
export interface InputWan27 {
|
|
11
11
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
12
12
|
num_outputs?: number | undefined;
|
|
13
|
-
/** Generation prompt. */
|
|
13
|
+
/** Generation prompt. At most 5000 characters. */
|
|
14
14
|
prompt: string;
|
|
15
|
-
/** What to avoid in the generated video. */
|
|
15
|
+
/** What to avoid in the generated video. At most 500 characters. */
|
|
16
16
|
negative_prompt?: string | undefined;
|
|
17
|
-
/** Seed for reproducible output; omit for a random seed. */
|
|
17
|
+
/** Seed for reproducible output; omit for a random seed. From 0 to 2147483647. */
|
|
18
18
|
seed?: number | undefined;
|
|
19
19
|
/** Output resolution. */
|
|
20
20
|
resolution: InputWan27.Resolution;
|
|
21
21
|
/** Duration in ms. */
|
|
22
22
|
duration_ms: number;
|
|
23
|
-
/** Start frame (image-to-video). */
|
|
23
|
+
/** Start frame (image-to-video). At most 20 MB. */
|
|
24
24
|
start_image?: Hedra.InputWan27StartImage | undefined;
|
|
25
|
-
/** End frame (first-last-frame-to-video). */
|
|
25
|
+
/** End frame (first-last-frame-to-video). At most 20 MB. */
|
|
26
26
|
end_image?: Hedra.InputWan27EndImage | undefined;
|
|
27
27
|
/** Output aspect ratio. */
|
|
28
28
|
aspect_ratio?: InputWan27.AspectRatio | undefined;
|
|
29
|
-
/** Reference images. */
|
|
29
|
+
/** Reference images. 1 to 4 images, each at most 20 MB. */
|
|
30
30
|
images?: Hedra.InputWan27ImagesItem[] | undefined;
|
|
31
31
|
}
|
|
32
32
|
export declare namespace InputWan27 {
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "2.0.2";
|
package/dist/cjs/version.js
CHANGED
|
@@ -7,7 +7,7 @@ export type BaseClientOptions = {
|
|
|
7
7
|
/** Specify a custom URL to connect the client to. */
|
|
8
8
|
baseUrl?: core.Supplier<string>;
|
|
9
9
|
/** Override the X-Hedra-Spec-Version header */
|
|
10
|
-
specVersion?: "3.
|
|
10
|
+
specVersion?: "3.3.0";
|
|
11
11
|
/** Additional headers to include in requests. */
|
|
12
12
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
13
13
|
/** The default maximum time to wait for a response in seconds. */
|
|
@@ -34,7 +34,7 @@ export interface BaseRequestOptions {
|
|
|
34
34
|
/** A hook to abort the request. */
|
|
35
35
|
abortSignal?: AbortSignal;
|
|
36
36
|
/** Override the X-Hedra-Spec-Version header */
|
|
37
|
-
specVersion?: "3.
|
|
37
|
+
specVersion?: "3.3.0";
|
|
38
38
|
/** Additional query string parameters to include in the request. */
|
|
39
39
|
queryParams?: Record<string, unknown>;
|
|
40
40
|
/** A dictionary containing additional parameters to spread into the request's body. */
|
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -7,11 +7,11 @@ export function normalizeClientOptions(options) {
|
|
|
7
7
|
const headers = mergeHeaders({
|
|
8
8
|
"X-Fern-Language": "JavaScript",
|
|
9
9
|
"X-Fern-SDK-Name": "@hedra/sdk",
|
|
10
|
-
"X-Fern-SDK-Version": "
|
|
11
|
-
"User-Agent": "@hedra/sdk/
|
|
10
|
+
"X-Fern-SDK-Version": "2.0.2",
|
|
11
|
+
"User-Agent": "@hedra/sdk/2.0.2",
|
|
12
12
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
13
13
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
14
|
-
"X-Hedra-Spec-Version": (_a = options === null || options === void 0 ? void 0 : options.specVersion) !== null && _a !== void 0 ? _a : "3.
|
|
14
|
+
"X-Hedra-Spec-Version": (_a = options === null || options === void 0 ? void 0 : options.specVersion) !== null && _a !== void 0 ? _a : "3.3.0",
|
|
15
15
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
16
16
|
return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
|
|
17
17
|
}
|
|
@@ -44,7 +44,7 @@ export class BillingClient {
|
|
|
44
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
45
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
46
46
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
47
|
-
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.
|
|
47
|
+
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.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
48
48
|
const _response = yield core.fetcher({
|
|
49
49
|
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, "balance"),
|
|
50
50
|
method: "GET",
|
|
@@ -113,7 +113,7 @@ export class BillingClient {
|
|
|
113
113
|
group_by: groupBy != null ? groupBy : undefined,
|
|
114
114
|
};
|
|
115
115
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
116
|
-
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.
|
|
116
|
+
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.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
117
117
|
const _response = yield core.fetcher({
|
|
118
118
|
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, "usage"),
|
|
119
119
|
method: "GET",
|
|
@@ -54,7 +54,7 @@ export class FilesClient {
|
|
|
54
54
|
yield _body.appendFile("file", request.file);
|
|
55
55
|
const _maybeEncodedRequest = yield _body.getRequest();
|
|
56
56
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
57
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
57
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
58
58
|
const _response = yield core.fetcher({
|
|
59
59
|
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, "files"),
|
|
60
60
|
method: "POST",
|