@hedra/sdk 4.0.1 → 5.1.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/README.md +196 -49
- package/dist/cjs/BaseClient.d.ts +2 -2
- package/dist/cjs/BaseClient.js +3 -3
- package/dist/cjs/api/resources/billing/client/Client.d.ts +22 -0
- package/dist/cjs/api/resources/billing/client/Client.js +78 -2
- package/dist/cjs/api/resources/billing/client/requests/BillingListTransactionsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/billing/client/requests/BillingListTransactionsRequest.js +3 -0
- package/dist/cjs/api/resources/billing/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/files/client/Client.js +1 -1
- package/dist/cjs/api/resources/jobs/client/Client.d.ts +194 -72
- package/dist/cjs/api/resources/jobs/client/Client.js +497 -167
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyCreatifyAurora.d.ts +24 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyCreatifyAurora.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsMusic.d.ts +17 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsMusic.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage2.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGrokImagine20.d.ts +18 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGrokImagine20.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyHeygenPhotoAvatar4.d.ts +25 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyHeygenPhotoAvatar4.js +3 -0
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyHidreamO1Image.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyIdeogramV4.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingAiAvatarV2.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingO3.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyLtx23.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyLumaRay32.d.ts +1 -1
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyMaiImage25.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyMinimaxH3.d.ts +1 -1
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyMinimaxHailuo02.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyMinimaxHailuo23.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyNanoBanana2.d.ts +2 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyNanoBananaPro.d.ts +1 -1
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyQwenImage2.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodySeedance20.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyVeo3.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyVeo31.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyViduQ3.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyWan30.d.ts +1 -2
- package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +4 -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 +23 -0
- package/dist/cjs/api/resources/models/client/Client.js +85 -6
- package/dist/cjs/api/resources/models/client/requests/ModelsSearchVoicesRequest.d.ts +17 -0
- package/dist/cjs/api/resources/models/client/requests/ModelsSearchVoicesRequest.js +3 -0
- package/dist/cjs/api/resources/models/client/requests/index.d.ts +1 -0
- 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/InputCreatifyAurora.d.ts +24 -0
- package/dist/cjs/api/types/InputCreatifyAurora.js +12 -0
- package/dist/cjs/api/types/InputCreatifyAuroraAudio.d.ts +23 -0
- package/dist/cjs/api/types/InputCreatifyAuroraAudio.js +3 -0
- package/dist/cjs/api/types/InputCreatifyAuroraStartImage.d.ts +23 -0
- package/dist/cjs/api/types/InputCreatifyAuroraStartImage.js +3 -0
- package/dist/cjs/api/types/InputElevenlabsMusic.d.ts +13 -0
- package/dist/cjs/api/types/InputElevenlabsMusic.js +3 -0
- 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/InputGeminiOmniFlash.d.ts +2 -2
- 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/InputGptImage2.d.ts +3 -3
- package/dist/cjs/api/types/InputGptImage2.js +1 -1
- package/dist/cjs/api/types/InputGrokImagine.d.ts +32 -3
- package/dist/cjs/api/types/InputGrokImagine.js +22 -1
- package/dist/cjs/api/types/InputGrokImagine20.d.ts +52 -0
- package/dist/cjs/api/types/InputGrokImagine20.js +34 -0
- package/dist/cjs/api/types/InputGrokImagine20ImagesItem.d.ts +20 -0
- package/dist/cjs/api/types/InputGrokImagine20ImagesItem.js +3 -0
- package/dist/cjs/api/types/InputGrokVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputGrokVideoStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHappyHorse.d.ts +1 -1
- package/dist/cjs/api/types/InputHappyHorseStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraAvatar.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraAvatarStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraCharacter3.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraCharacter3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHeygenPhotoAvatar4.d.ts +39 -0
- package/dist/cjs/api/types/InputHeygenPhotoAvatar4.js +24 -0
- package/dist/cjs/api/types/InputHeygenPhotoAvatar4Audio.d.ts +23 -0
- package/dist/cjs/api/types/InputHeygenPhotoAvatar4Audio.js +3 -0
- package/dist/cjs/api/types/InputHeygenPhotoAvatar4StartImage.d.ts +23 -0
- package/dist/cjs/api/types/InputHeygenPhotoAvatar4StartImage.js +3 -0
- package/dist/cjs/api/types/InputHidreamO1Image.d.ts +3 -3
- package/dist/cjs/api/types/InputHidreamO1Image.js +1 -1
- package/dist/cjs/api/types/InputIdeogramV4.d.ts +3 -3
- package/dist/cjs/api/types/InputIdeogramV4.js +1 -1
- package/dist/cjs/api/types/InputKling16.d.ts +1 -1
- package/dist/cjs/api/types/InputKling16StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling21Master.d.ts +1 -1
- package/dist/cjs/api/types/InputKling21MasterStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling25Turbo.d.ts +1 -1
- package/dist/cjs/api/types/InputKling25TurboStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling26MotionControl.d.ts +2 -2
- 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 +1 -1
- package/dist/cjs/api/types/InputKling26ProStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingAiAvatarV2.d.ts +4 -4
- package/dist/cjs/api/types/InputKlingAiAvatarV2.js +1 -1
- package/dist/cjs/api/types/InputKlingAiAvatarV2StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO1.d.ts +2 -2
- 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 +5 -5
- package/dist/cjs/api/types/InputKlingO3.js +1 -1
- package/dist/cjs/api/types/InputKlingO3Edit.d.ts +1 -1
- 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 +1 -1
- 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/InputKlingV3.js +1 -1
- package/dist/cjs/api/types/InputKlingV3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3MotionControl.d.ts +2 -2
- 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 +5 -5
- package/dist/cjs/api/types/InputLtx23.js +1 -1
- 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 +2 -2
- package/dist/cjs/api/types/InputLumaRay32.js +2 -2
- package/dist/cjs/api/types/InputMaiImage25.d.ts +3 -3
- package/dist/cjs/api/types/InputMaiImage25.js +1 -1
- package/dist/cjs/api/types/InputMinimaxH3.d.ts +3 -2
- package/dist/cjs/api/types/InputMinimaxH3.js +1 -0
- 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 +5 -5
- package/dist/cjs/api/types/InputMinimaxHailuo02.js +1 -1
- 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 +4 -4
- package/dist/cjs/api/types/InputMinimaxHailuo23.js +1 -1
- package/dist/cjs/api/types/InputMinimaxHailuo23StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputNanoBanana.d.ts +2 -2
- package/dist/cjs/api/types/InputNanoBanana.js +1 -1
- package/dist/cjs/api/types/InputNanoBanana2.d.ts +20 -2
- package/dist/cjs/api/types/InputNanoBanana2.js +12 -1
- package/dist/cjs/api/types/InputNanoBananaPro.d.ts +5 -2
- package/dist/cjs/api/types/InputNanoBananaPro.js +2 -1
- package/dist/cjs/api/types/InputOmnihuman15.d.ts +1 -1
- package/dist/cjs/api/types/InputOmnihuman15StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputPixverseV6.d.ts +1 -1
- package/dist/cjs/api/types/InputPixverseV6StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputQwenImage2.d.ts +3 -3
- package/dist/cjs/api/types/InputQwenImage2.js +1 -1
- package/dist/cjs/api/types/InputSeedance15Pro.d.ts +3 -2
- package/dist/cjs/api/types/InputSeedance15Pro.js +1 -0
- 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 +6 -5
- package/dist/cjs/api/types/InputSeedance20.js +2 -1
- package/dist/cjs/api/types/InputSeedance20EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20Mini.d.ts +3 -2
- package/dist/cjs/api/types/InputSeedance20Mini.js +1 -0
- 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 +2 -2
- 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/InputSeedream50Lite.d.ts +8 -0
- package/dist/cjs/api/types/InputSeedream50Lite.js +5 -0
- package/dist/cjs/api/types/InputSeedream50Pro.d.ts +8 -0
- package/dist/cjs/api/types/InputSeedream50Pro.js +5 -0
- package/dist/cjs/api/types/InputSora2Pro.d.ts +1 -1
- package/dist/cjs/api/types/InputSora2ProStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeedFabric10.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 +4 -4
- package/dist/cjs/api/types/InputVeo3.js +1 -1
- package/dist/cjs/api/types/InputVeo31.d.ts +6 -6
- package/dist/cjs/api/types/InputVeo31.js +1 -1
- 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 +5 -5
- package/dist/cjs/api/types/InputViduQ3.js +1 -1
- package/dist/cjs/api/types/InputViduQ3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputViduQ3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputWan27.d.ts +2 -2
- package/dist/cjs/api/types/InputWan27EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputWan27StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputWan30.d.ts +5 -5
- package/dist/cjs/api/types/InputWan30.js +1 -1
- package/dist/cjs/api/types/InputWan30EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputWan30StartImage.d.ts +1 -1
- package/dist/cjs/api/types/TransactionListResponse.d.ts +7 -0
- package/dist/cjs/api/types/TransactionListResponse.js +3 -0
- package/dist/cjs/api/types/TransactionRecord.d.ts +15 -0
- package/dist/cjs/api/types/TransactionRecord.js +3 -0
- package/dist/cjs/api/types/VoiceGender.d.ts +12 -0
- package/dist/cjs/api/types/VoiceGender.js +15 -0
- package/dist/cjs/api/types/index.d.ts +12 -0
- package/dist/cjs/api/types/index.js +12 -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.d.mts +22 -0
- package/dist/esm/api/resources/billing/client/Client.mjs +78 -2
- package/dist/esm/api/resources/billing/client/requests/BillingListTransactionsRequest.d.mts +10 -0
- package/dist/esm/api/resources/billing/client/requests/BillingListTransactionsRequest.mjs +2 -0
- package/dist/esm/api/resources/billing/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/files/client/Client.mjs +1 -1
- package/dist/esm/api/resources/jobs/client/Client.d.mts +194 -72
- package/dist/esm/api/resources/jobs/client/Client.mjs +497 -167
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyCreatifyAurora.d.mts +24 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyCreatifyAurora.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsMusic.d.mts +17 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsMusic.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage2.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGrokImagine20.d.mts +18 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGrokImagine20.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyHeygenPhotoAvatar4.d.mts +25 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyHeygenPhotoAvatar4.mjs +2 -0
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyHidreamO1Image.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyIdeogramV4.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingAiAvatarV2.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingO3.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyLtx23.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyLumaRay32.d.mts +1 -1
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyMaiImage25.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyMinimaxH3.d.mts +1 -1
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyMinimaxHailuo02.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyMinimaxHailuo23.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyNanoBanana2.d.mts +2 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyNanoBananaPro.d.mts +1 -1
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyQwenImage2.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodySeedance20.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyVeo3.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyVeo31.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyViduQ3.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/SubmitBodyWan30.d.mts +1 -2
- package/dist/esm/api/resources/jobs/client/requests/index.d.mts +4 -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 +23 -0
- package/dist/esm/api/resources/models/client/Client.mjs +85 -6
- package/dist/esm/api/resources/models/client/requests/ModelsSearchVoicesRequest.d.mts +17 -0
- package/dist/esm/api/resources/models/client/requests/ModelsSearchVoicesRequest.mjs +2 -0
- package/dist/esm/api/resources/models/client/requests/index.d.mts +1 -0
- 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/InputCreatifyAurora.d.mts +24 -0
- package/dist/esm/api/types/InputCreatifyAurora.mjs +9 -0
- package/dist/esm/api/types/InputCreatifyAuroraAudio.d.mts +23 -0
- package/dist/esm/api/types/InputCreatifyAuroraAudio.mjs +2 -0
- package/dist/esm/api/types/InputCreatifyAuroraStartImage.d.mts +23 -0
- package/dist/esm/api/types/InputCreatifyAuroraStartImage.mjs +2 -0
- package/dist/esm/api/types/InputElevenlabsMusic.d.mts +13 -0
- package/dist/esm/api/types/InputElevenlabsMusic.mjs +2 -0
- 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/InputGeminiOmniFlash.d.mts +2 -2
- 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/InputGptImage2.d.mts +3 -3
- package/dist/esm/api/types/InputGptImage2.mjs +1 -1
- package/dist/esm/api/types/InputGrokImagine.d.mts +32 -3
- package/dist/esm/api/types/InputGrokImagine.mjs +22 -1
- package/dist/esm/api/types/InputGrokImagine20.d.mts +52 -0
- package/dist/esm/api/types/InputGrokImagine20.mjs +31 -0
- package/dist/esm/api/types/InputGrokImagine20ImagesItem.d.mts +20 -0
- package/dist/esm/api/types/InputGrokImagine20ImagesItem.mjs +2 -0
- package/dist/esm/api/types/InputGrokVideo.d.mts +1 -1
- package/dist/esm/api/types/InputGrokVideoStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHappyHorse.d.mts +1 -1
- package/dist/esm/api/types/InputHappyHorseStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHedraAvatar.d.mts +1 -1
- package/dist/esm/api/types/InputHedraAvatarStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHedraCharacter3.d.mts +1 -1
- package/dist/esm/api/types/InputHedraCharacter3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHeygenPhotoAvatar4.d.mts +39 -0
- package/dist/esm/api/types/InputHeygenPhotoAvatar4.mjs +21 -0
- package/dist/esm/api/types/InputHeygenPhotoAvatar4Audio.d.mts +23 -0
- package/dist/esm/api/types/InputHeygenPhotoAvatar4Audio.mjs +2 -0
- package/dist/esm/api/types/InputHeygenPhotoAvatar4StartImage.d.mts +23 -0
- package/dist/esm/api/types/InputHeygenPhotoAvatar4StartImage.mjs +2 -0
- package/dist/esm/api/types/InputHidreamO1Image.d.mts +3 -3
- package/dist/esm/api/types/InputHidreamO1Image.mjs +1 -1
- package/dist/esm/api/types/InputIdeogramV4.d.mts +3 -3
- package/dist/esm/api/types/InputIdeogramV4.mjs +1 -1
- package/dist/esm/api/types/InputKling16.d.mts +1 -1
- package/dist/esm/api/types/InputKling16StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling21Master.d.mts +1 -1
- package/dist/esm/api/types/InputKling21MasterStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling25Turbo.d.mts +1 -1
- package/dist/esm/api/types/InputKling25TurboStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling26MotionControl.d.mts +2 -2
- 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 +1 -1
- package/dist/esm/api/types/InputKling26ProStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingAiAvatarV2.d.mts +4 -4
- package/dist/esm/api/types/InputKlingAiAvatarV2.mjs +1 -1
- package/dist/esm/api/types/InputKlingAiAvatarV2StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO1.d.mts +2 -2
- 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 +5 -5
- package/dist/esm/api/types/InputKlingO3.mjs +1 -1
- package/dist/esm/api/types/InputKlingO3Edit.d.mts +1 -1
- 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 +1 -1
- 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/InputKlingV3.mjs +1 -1
- package/dist/esm/api/types/InputKlingV3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3MotionControl.d.mts +2 -2
- 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 +5 -5
- package/dist/esm/api/types/InputLtx23.mjs +1 -1
- 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 +2 -2
- package/dist/esm/api/types/InputLumaRay32.mjs +2 -2
- package/dist/esm/api/types/InputMaiImage25.d.mts +3 -3
- package/dist/esm/api/types/InputMaiImage25.mjs +1 -1
- package/dist/esm/api/types/InputMinimaxH3.d.mts +3 -2
- package/dist/esm/api/types/InputMinimaxH3.mjs +1 -0
- 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 +5 -5
- package/dist/esm/api/types/InputMinimaxHailuo02.mjs +1 -1
- 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 +4 -4
- package/dist/esm/api/types/InputMinimaxHailuo23.mjs +1 -1
- package/dist/esm/api/types/InputMinimaxHailuo23StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputNanoBanana.d.mts +2 -2
- package/dist/esm/api/types/InputNanoBanana.mjs +1 -1
- package/dist/esm/api/types/InputNanoBanana2.d.mts +20 -2
- package/dist/esm/api/types/InputNanoBanana2.mjs +12 -1
- package/dist/esm/api/types/InputNanoBananaPro.d.mts +5 -2
- package/dist/esm/api/types/InputNanoBananaPro.mjs +2 -1
- package/dist/esm/api/types/InputOmnihuman15.d.mts +1 -1
- package/dist/esm/api/types/InputOmnihuman15StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputPixverseV6.d.mts +1 -1
- package/dist/esm/api/types/InputPixverseV6StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputQwenImage2.d.mts +3 -3
- package/dist/esm/api/types/InputQwenImage2.mjs +1 -1
- package/dist/esm/api/types/InputSeedance15Pro.d.mts +3 -2
- package/dist/esm/api/types/InputSeedance15Pro.mjs +1 -0
- 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 +6 -5
- package/dist/esm/api/types/InputSeedance20.mjs +2 -1
- package/dist/esm/api/types/InputSeedance20EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20Mini.d.mts +3 -2
- package/dist/esm/api/types/InputSeedance20Mini.mjs +1 -0
- 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 +2 -2
- 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/InputSeedream50Lite.d.mts +8 -0
- package/dist/esm/api/types/InputSeedream50Lite.mjs +5 -0
- package/dist/esm/api/types/InputSeedream50Pro.d.mts +8 -0
- package/dist/esm/api/types/InputSeedream50Pro.mjs +5 -0
- package/dist/esm/api/types/InputSora2Pro.d.mts +1 -1
- package/dist/esm/api/types/InputSora2ProStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeedFabric10.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 +4 -4
- package/dist/esm/api/types/InputVeo3.mjs +1 -1
- package/dist/esm/api/types/InputVeo31.d.mts +6 -6
- package/dist/esm/api/types/InputVeo31.mjs +1 -1
- 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 +5 -5
- package/dist/esm/api/types/InputViduQ3.mjs +1 -1
- package/dist/esm/api/types/InputViduQ3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputViduQ3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputWan27.d.mts +2 -2
- package/dist/esm/api/types/InputWan27EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputWan27StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputWan30.d.mts +5 -5
- package/dist/esm/api/types/InputWan30.mjs +1 -1
- package/dist/esm/api/types/InputWan30EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputWan30StartImage.d.mts +1 -1
- package/dist/esm/api/types/TransactionListResponse.d.mts +7 -0
- package/dist/esm/api/types/TransactionListResponse.mjs +2 -0
- package/dist/esm/api/types/TransactionRecord.d.mts +15 -0
- package/dist/esm/api/types/TransactionRecord.mjs +2 -0
- package/dist/esm/api/types/VoiceGender.d.mts +12 -0
- package/dist/esm/api/types/VoiceGender.mjs +12 -0
- package/dist/esm/api/types/index.d.mts +12 -0
- package/dist/esm/api/types/index.mjs +12 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +496 -72
|
@@ -85,7 +85,7 @@ class JobsClient {
|
|
|
85
85
|
cursor,
|
|
86
86
|
};
|
|
87
87
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
88
|
-
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.
|
|
88
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
89
89
|
const _response = yield core.fetcher({
|
|
90
90
|
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, "jobs"),
|
|
91
91
|
method: "GET",
|
|
@@ -165,7 +165,7 @@ class JobsClient {
|
|
|
165
165
|
return __awaiter(this, arguments, void 0, function* (job_id, _request = {}, requestOptions) {
|
|
166
166
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
167
167
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
168
|
-
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.
|
|
168
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
169
169
|
const _response = yield core.fetcher({
|
|
170
170
|
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, `jobs/${core.url.encodePathParam(job_id)}`),
|
|
171
171
|
method: "GET",
|
|
@@ -233,7 +233,7 @@ class JobsClient {
|
|
|
233
233
|
logs_after: logsAfter,
|
|
234
234
|
};
|
|
235
235
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
236
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
236
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
237
237
|
const _response = yield core.fetcher({
|
|
238
238
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `jobs/${core.url.encodePathParam(job_id)}/status`),
|
|
239
239
|
method: "GET",
|
|
@@ -304,7 +304,7 @@ class JobsClient {
|
|
|
304
304
|
cursor,
|
|
305
305
|
};
|
|
306
306
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
307
|
-
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.
|
|
307
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
308
308
|
const _response = yield core.fetcher({
|
|
309
309
|
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, `jobs/${core.url.encodePathParam(job_id)}/logs`),
|
|
310
310
|
method: "GET",
|
|
@@ -370,7 +370,7 @@ class JobsClient {
|
|
|
370
370
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
371
371
|
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)({
|
|
372
372
|
"Last-Event-Id": lastEventId !== null && lastEventId !== void 0 ? lastEventId : undefined,
|
|
373
|
-
"X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
373
|
+
"X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.1",
|
|
374
374
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
375
375
|
const _response = yield core.fetcher({
|
|
376
376
|
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, `jobs/${core.url.encodePathParam(job_id)}/stream`),
|
|
@@ -450,7 +450,95 @@ class JobsClient {
|
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
/**
|
|
453
|
-
*
|
|
453
|
+
* Create high-fidelity speaking or singing avatar videos.
|
|
454
|
+
*
|
|
455
|
+
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
456
|
+
*
|
|
457
|
+
* @param {Hedra.SubmitBodyCreatifyAurora} request
|
|
458
|
+
* @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
459
|
+
*
|
|
460
|
+
* @throws {@link Hedra.BadRequestError}
|
|
461
|
+
* @throws {@link Hedra.UnauthorizedError}
|
|
462
|
+
* @throws {@link Hedra.PaymentRequiredError}
|
|
463
|
+
* @throws {@link Hedra.ForbiddenError}
|
|
464
|
+
* @throws {@link Hedra.NotFoundError}
|
|
465
|
+
* @throws {@link Hedra.UnprocessableEntityError}
|
|
466
|
+
* @throws {@link Hedra.TooManyRequestsError}
|
|
467
|
+
* @throws {@link Hedra.InternalServerError}
|
|
468
|
+
* @throws {@link errors.HedraError}
|
|
469
|
+
* @throws {@link errors.HedraTimeoutError}
|
|
470
|
+
*
|
|
471
|
+
* @example
|
|
472
|
+
* await client.jobs.submitCreatifyAurora({
|
|
473
|
+
* input: {
|
|
474
|
+
* resolution: "480p",
|
|
475
|
+
* start_image: {
|
|
476
|
+
* source: "url",
|
|
477
|
+
* url: "url"
|
|
478
|
+
* },
|
|
479
|
+
* audio: {
|
|
480
|
+
* source: "url",
|
|
481
|
+
* url: "url"
|
|
482
|
+
* }
|
|
483
|
+
* }
|
|
484
|
+
* })
|
|
485
|
+
*/
|
|
486
|
+
submitCreatifyAurora(request, requestOptions) {
|
|
487
|
+
return core.HttpResponsePromise.fromPromise(this.__submitCreatifyAurora(request, requestOptions));
|
|
488
|
+
}
|
|
489
|
+
__submitCreatifyAurora(request, requestOptions) {
|
|
490
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
491
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
492
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
493
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
494
|
+
const _response = yield core.fetcher({
|
|
495
|
+
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/creatify-aurora"),
|
|
496
|
+
method: "POST",
|
|
497
|
+
headers: _headers,
|
|
498
|
+
contentType: "application/json",
|
|
499
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
500
|
+
requestType: "json",
|
|
501
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
502
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
503
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
504
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
505
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
506
|
+
logging: this._options.logging,
|
|
507
|
+
});
|
|
508
|
+
if (_response.ok) {
|
|
509
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
510
|
+
}
|
|
511
|
+
if (_response.error.reason === "status-code") {
|
|
512
|
+
switch (_response.error.statusCode) {
|
|
513
|
+
case 400:
|
|
514
|
+
throw new Hedra.BadRequestError(_response.error.body, _response.rawResponse);
|
|
515
|
+
case 401:
|
|
516
|
+
throw new Hedra.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
517
|
+
case 402:
|
|
518
|
+
throw new Hedra.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
519
|
+
case 403:
|
|
520
|
+
throw new Hedra.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
521
|
+
case 404:
|
|
522
|
+
throw new Hedra.NotFoundError(_response.error.body, _response.rawResponse);
|
|
523
|
+
case 422:
|
|
524
|
+
throw new Hedra.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
525
|
+
case 429:
|
|
526
|
+
throw new Hedra.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
527
|
+
case 500:
|
|
528
|
+
throw new Hedra.InternalServerError(_response.error.body, _response.rawResponse);
|
|
529
|
+
default:
|
|
530
|
+
throw new errors.HedraError({
|
|
531
|
+
statusCode: _response.error.statusCode,
|
|
532
|
+
body: _response.error.body,
|
|
533
|
+
rawResponse: _response.rawResponse,
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/models/creatify-aurora");
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Polished, print-ready stills when the brief is a finished image rather than a sketch.
|
|
454
542
|
*
|
|
455
543
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
456
544
|
*
|
|
@@ -484,7 +572,7 @@ class JobsClient {
|
|
|
484
572
|
return __awaiter(this, void 0, void 0, function* () {
|
|
485
573
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
486
574
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
487
|
-
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.
|
|
575
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
488
576
|
const _response = yield core.fetcher({
|
|
489
577
|
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/dreamina-31"),
|
|
490
578
|
method: "POST",
|
|
@@ -567,7 +655,7 @@ class JobsClient {
|
|
|
567
655
|
return __awaiter(this, void 0, void 0, function* () {
|
|
568
656
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
569
657
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
570
|
-
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.
|
|
658
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
571
659
|
const _response = yield core.fetcher({
|
|
572
660
|
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/elevenlabs-audio-isolation"),
|
|
573
661
|
method: "POST",
|
|
@@ -649,7 +737,7 @@ class JobsClient {
|
|
|
649
737
|
return __awaiter(this, void 0, void 0, function* () {
|
|
650
738
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
651
739
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
652
|
-
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.
|
|
740
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
653
741
|
const _response = yield core.fetcher({
|
|
654
742
|
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/elevenlabs-english-sts-v2"),
|
|
655
743
|
method: "POST",
|
|
@@ -697,6 +785,8 @@ class JobsClient {
|
|
|
697
785
|
});
|
|
698
786
|
}
|
|
699
787
|
/**
|
|
788
|
+
* The low-latency voice across 30+ languages, for interactive and high-volume speech.
|
|
789
|
+
*
|
|
700
790
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
701
791
|
*
|
|
702
792
|
* @param {Hedra.SubmitBodyElevenlabsFlashMultilingualV2} request
|
|
@@ -728,7 +818,7 @@ class JobsClient {
|
|
|
728
818
|
return __awaiter(this, void 0, void 0, function* () {
|
|
729
819
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
730
820
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
731
|
-
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.
|
|
821
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
732
822
|
const _response = yield core.fetcher({
|
|
733
823
|
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/elevenlabs-flash-multilingual-v2"),
|
|
734
824
|
method: "POST",
|
|
@@ -776,6 +866,8 @@ class JobsClient {
|
|
|
776
866
|
});
|
|
777
867
|
}
|
|
778
868
|
/**
|
|
869
|
+
* The low-latency English voice, for interactive speech.
|
|
870
|
+
*
|
|
779
871
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
780
872
|
*
|
|
781
873
|
* @param {Hedra.SubmitBodyElevenlabsFlashV2} request
|
|
@@ -807,7 +899,7 @@ class JobsClient {
|
|
|
807
899
|
return __awaiter(this, void 0, void 0, function* () {
|
|
808
900
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
809
901
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
810
|
-
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.
|
|
902
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
811
903
|
const _response = yield core.fetcher({
|
|
812
904
|
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/elevenlabs-flash-v2"),
|
|
813
905
|
method: "POST",
|
|
@@ -889,7 +981,7 @@ class JobsClient {
|
|
|
889
981
|
return __awaiter(this, void 0, void 0, function* () {
|
|
890
982
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
891
983
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
892
|
-
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.
|
|
984
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
893
985
|
const _response = yield core.fetcher({
|
|
894
986
|
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/elevenlabs-multilingual-sts-v2"),
|
|
895
987
|
method: "POST",
|
|
@@ -937,6 +1029,8 @@ class JobsClient {
|
|
|
937
1029
|
});
|
|
938
1030
|
}
|
|
939
1031
|
/**
|
|
1032
|
+
* Steady, natural narration across 30+ languages, for finished voiceover.
|
|
1033
|
+
*
|
|
940
1034
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
941
1035
|
*
|
|
942
1036
|
* @param {Hedra.SubmitBodyElevenlabsMultilingualV2} request
|
|
@@ -968,7 +1062,7 @@ class JobsClient {
|
|
|
968
1062
|
return __awaiter(this, void 0, void 0, function* () {
|
|
969
1063
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
970
1064
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
971
|
-
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.
|
|
1065
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
972
1066
|
const _response = yield core.fetcher({
|
|
973
1067
|
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/elevenlabs-multilingual-v2"),
|
|
974
1068
|
method: "POST",
|
|
@@ -1016,7 +1110,88 @@ class JobsClient {
|
|
|
1016
1110
|
});
|
|
1017
1111
|
}
|
|
1018
1112
|
/**
|
|
1019
|
-
*
|
|
1113
|
+
* Full tracks from a written brief, with optional lyrics placed across the length you ask for.
|
|
1114
|
+
*
|
|
1115
|
+
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
1116
|
+
*
|
|
1117
|
+
* @param {Hedra.SubmitBodyElevenlabsMusic} request
|
|
1118
|
+
* @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1119
|
+
*
|
|
1120
|
+
* @throws {@link Hedra.BadRequestError}
|
|
1121
|
+
* @throws {@link Hedra.UnauthorizedError}
|
|
1122
|
+
* @throws {@link Hedra.PaymentRequiredError}
|
|
1123
|
+
* @throws {@link Hedra.ForbiddenError}
|
|
1124
|
+
* @throws {@link Hedra.NotFoundError}
|
|
1125
|
+
* @throws {@link Hedra.UnprocessableEntityError}
|
|
1126
|
+
* @throws {@link Hedra.TooManyRequestsError}
|
|
1127
|
+
* @throws {@link Hedra.InternalServerError}
|
|
1128
|
+
* @throws {@link errors.HedraError}
|
|
1129
|
+
* @throws {@link errors.HedraTimeoutError}
|
|
1130
|
+
*
|
|
1131
|
+
* @example
|
|
1132
|
+
* await client.jobs.submitElevenlabsMusic({
|
|
1133
|
+
* input: {
|
|
1134
|
+
* prompt: "prompt",
|
|
1135
|
+
* duration_ms: 1
|
|
1136
|
+
* }
|
|
1137
|
+
* })
|
|
1138
|
+
*/
|
|
1139
|
+
submitElevenlabsMusic(request, requestOptions) {
|
|
1140
|
+
return core.HttpResponsePromise.fromPromise(this.__submitElevenlabsMusic(request, requestOptions));
|
|
1141
|
+
}
|
|
1142
|
+
__submitElevenlabsMusic(request, requestOptions) {
|
|
1143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1144
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1145
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1146
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1147
|
+
const _response = yield core.fetcher({
|
|
1148
|
+
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/elevenlabs-music"),
|
|
1149
|
+
method: "POST",
|
|
1150
|
+
headers: _headers,
|
|
1151
|
+
contentType: "application/json",
|
|
1152
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1153
|
+
requestType: "json",
|
|
1154
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
1155
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
1156
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
1157
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1158
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
1159
|
+
logging: this._options.logging,
|
|
1160
|
+
});
|
|
1161
|
+
if (_response.ok) {
|
|
1162
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1163
|
+
}
|
|
1164
|
+
if (_response.error.reason === "status-code") {
|
|
1165
|
+
switch (_response.error.statusCode) {
|
|
1166
|
+
case 400:
|
|
1167
|
+
throw new Hedra.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1168
|
+
case 401:
|
|
1169
|
+
throw new Hedra.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1170
|
+
case 402:
|
|
1171
|
+
throw new Hedra.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
1172
|
+
case 403:
|
|
1173
|
+
throw new Hedra.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1174
|
+
case 404:
|
|
1175
|
+
throw new Hedra.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1176
|
+
case 422:
|
|
1177
|
+
throw new Hedra.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1178
|
+
case 429:
|
|
1179
|
+
throw new Hedra.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1180
|
+
case 500:
|
|
1181
|
+
throw new Hedra.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1182
|
+
default:
|
|
1183
|
+
throw new errors.HedraError({
|
|
1184
|
+
statusCode: _response.error.statusCode,
|
|
1185
|
+
body: _response.error.body,
|
|
1186
|
+
rawResponse: _response.rawResponse,
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/models/elevenlabs-music");
|
|
1191
|
+
});
|
|
1192
|
+
}
|
|
1193
|
+
/**
|
|
1194
|
+
* One-off sound effects from a written description, loopable on request.
|
|
1020
1195
|
*
|
|
1021
1196
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
1022
1197
|
*
|
|
@@ -1049,7 +1224,7 @@ class JobsClient {
|
|
|
1049
1224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1050
1225
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1051
1226
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1052
|
-
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.
|
|
1227
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1053
1228
|
const _response = yield core.fetcher({
|
|
1054
1229
|
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/elevenlabs-sound-effects"),
|
|
1055
1230
|
method: "POST",
|
|
@@ -1097,7 +1272,7 @@ class JobsClient {
|
|
|
1097
1272
|
});
|
|
1098
1273
|
}
|
|
1099
1274
|
/**
|
|
1100
|
-
* ElevenLabs
|
|
1275
|
+
* The most expressive ElevenLabs voice — emotional range and delivery cues for performance, not just narration.
|
|
1101
1276
|
*
|
|
1102
1277
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
1103
1278
|
*
|
|
@@ -1130,7 +1305,7 @@ class JobsClient {
|
|
|
1130
1305
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1131
1306
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1132
1307
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1133
|
-
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.
|
|
1308
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1134
1309
|
const _response = yield core.fetcher({
|
|
1135
1310
|
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/elevenlabs-v3"),
|
|
1136
1311
|
method: "POST",
|
|
@@ -1214,7 +1389,7 @@ class JobsClient {
|
|
|
1214
1389
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1215
1390
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1216
1391
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1217
|
-
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.
|
|
1392
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1218
1393
|
const _response = yield core.fetcher({
|
|
1219
1394
|
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/elevenlabs-voice-clone"),
|
|
1220
1395
|
method: "POST",
|
|
@@ -1296,7 +1471,7 @@ class JobsClient {
|
|
|
1296
1471
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1297
1472
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1298
1473
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1299
|
-
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.
|
|
1474
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1300
1475
|
const _response = yield core.fetcher({
|
|
1301
1476
|
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/flux-11-pro"),
|
|
1302
1477
|
method: "POST",
|
|
@@ -1377,7 +1552,7 @@ class JobsClient {
|
|
|
1377
1552
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1378
1553
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1379
1554
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1380
|
-
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.
|
|
1555
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1381
1556
|
const _response = yield core.fetcher({
|
|
1382
1557
|
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/flux-11-ultra"),
|
|
1383
1558
|
method: "POST",
|
|
@@ -1425,7 +1600,7 @@ class JobsClient {
|
|
|
1425
1600
|
});
|
|
1426
1601
|
}
|
|
1427
1602
|
/**
|
|
1428
|
-
*
|
|
1603
|
+
* Video with native audio, straight from a prompt.
|
|
1429
1604
|
*
|
|
1430
1605
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
1431
1606
|
*
|
|
@@ -1460,7 +1635,7 @@ class JobsClient {
|
|
|
1460
1635
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1461
1636
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1462
1637
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1463
|
-
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.
|
|
1638
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1464
1639
|
const _response = yield core.fetcher({
|
|
1465
1640
|
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/flux-3"),
|
|
1466
1641
|
method: "POST",
|
|
@@ -1542,7 +1717,7 @@ class JobsClient {
|
|
|
1542
1717
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1543
1718
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1544
1719
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1545
|
-
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.
|
|
1720
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1546
1721
|
const _response = yield core.fetcher({
|
|
1547
1722
|
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/flux-dev"),
|
|
1548
1723
|
method: "POST",
|
|
@@ -1622,7 +1797,7 @@ class JobsClient {
|
|
|
1622
1797
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1623
1798
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1624
1799
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1625
|
-
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.
|
|
1800
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1626
1801
|
const _response = yield core.fetcher({
|
|
1627
1802
|
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/flux-kontext-max"),
|
|
1628
1803
|
method: "POST",
|
|
@@ -1702,7 +1877,7 @@ class JobsClient {
|
|
|
1702
1877
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1703
1878
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1704
1879
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1705
|
-
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.
|
|
1880
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1706
1881
|
const _response = yield core.fetcher({
|
|
1707
1882
|
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/flux-kontext-pro"),
|
|
1708
1883
|
method: "POST",
|
|
@@ -1750,7 +1925,7 @@ class JobsClient {
|
|
|
1750
1925
|
});
|
|
1751
1926
|
}
|
|
1752
1927
|
/**
|
|
1753
|
-
*
|
|
1928
|
+
* The tunable Flux.2 tier — trade denoising steps against speed per generation.
|
|
1754
1929
|
*
|
|
1755
1930
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
1756
1931
|
*
|
|
@@ -1783,7 +1958,7 @@ class JobsClient {
|
|
|
1783
1958
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1784
1959
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1785
1960
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1786
|
-
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.
|
|
1961
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1787
1962
|
const _response = yield core.fetcher({
|
|
1788
1963
|
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/flux2-flex"),
|
|
1789
1964
|
method: "POST",
|
|
@@ -1831,7 +2006,7 @@ class JobsClient {
|
|
|
1831
2006
|
});
|
|
1832
2007
|
}
|
|
1833
2008
|
/**
|
|
1834
|
-
* Flux.2
|
|
2009
|
+
* The lean Flux.2 tier — quick, inexpensive stills for concepting and high-volume work.
|
|
1835
2010
|
*
|
|
1836
2011
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
1837
2012
|
*
|
|
@@ -1864,7 +2039,7 @@ class JobsClient {
|
|
|
1864
2039
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1865
2040
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1866
2041
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1867
|
-
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.
|
|
2042
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1868
2043
|
const _response = yield core.fetcher({
|
|
1869
2044
|
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/flux2-klein-9b"),
|
|
1870
2045
|
method: "POST",
|
|
@@ -1912,7 +2087,7 @@ class JobsClient {
|
|
|
1912
2087
|
});
|
|
1913
2088
|
}
|
|
1914
2089
|
/**
|
|
1915
|
-
*
|
|
2090
|
+
* The top Flux.2 tier, for realism and precision in final deliverables.
|
|
1916
2091
|
*
|
|
1917
2092
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
1918
2093
|
*
|
|
@@ -1945,7 +2120,7 @@ class JobsClient {
|
|
|
1945
2120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1946
2121
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1947
2122
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1948
|
-
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.
|
|
2123
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1949
2124
|
const _response = yield core.fetcher({
|
|
1950
2125
|
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/flux2-max"),
|
|
1951
2126
|
method: "POST",
|
|
@@ -1993,7 +2168,7 @@ class JobsClient {
|
|
|
1993
2168
|
});
|
|
1994
2169
|
}
|
|
1995
2170
|
/**
|
|
1996
|
-
*
|
|
2171
|
+
* The everyday Flux.2 tier — style transfer and sequential edits that hold together across passes.
|
|
1997
2172
|
*
|
|
1998
2173
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
1999
2174
|
*
|
|
@@ -2026,7 +2201,7 @@ class JobsClient {
|
|
|
2026
2201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2027
2202
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2028
2203
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2029
|
-
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.
|
|
2204
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2030
2205
|
const _response = yield core.fetcher({
|
|
2031
2206
|
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/flux2-pro"),
|
|
2032
2207
|
method: "POST",
|
|
@@ -2107,7 +2282,7 @@ class JobsClient {
|
|
|
2107
2282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2108
2283
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2109
2284
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2110
|
-
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.
|
|
2285
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2111
2286
|
const _response = yield core.fetcher({
|
|
2112
2287
|
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/gemini-omni-flash"),
|
|
2113
2288
|
method: "POST",
|
|
@@ -2155,7 +2330,7 @@ class JobsClient {
|
|
|
2155
2330
|
});
|
|
2156
2331
|
}
|
|
2157
2332
|
/**
|
|
2158
|
-
*
|
|
2333
|
+
* Reads a long, specific brief closely — the choice when the prompt carries the detail.
|
|
2159
2334
|
*
|
|
2160
2335
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
2161
2336
|
*
|
|
@@ -2188,7 +2363,7 @@ class JobsClient {
|
|
|
2188
2363
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2189
2364
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2190
2365
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2191
|
-
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.
|
|
2366
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2192
2367
|
const _response = yield core.fetcher({
|
|
2193
2368
|
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/gpt-image-15"),
|
|
2194
2369
|
method: "POST",
|
|
@@ -2259,8 +2434,7 @@ class JobsClient {
|
|
|
2259
2434
|
* input: {
|
|
2260
2435
|
* prompt: "prompt",
|
|
2261
2436
|
* aspect_ratio: "16:9",
|
|
2262
|
-
* resolution: "1K"
|
|
2263
|
-
* quality: "low"
|
|
2437
|
+
* resolution: "1K"
|
|
2264
2438
|
* }
|
|
2265
2439
|
* })
|
|
2266
2440
|
*/
|
|
@@ -2271,7 +2445,7 @@ class JobsClient {
|
|
|
2271
2445
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2272
2446
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2273
2447
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2274
|
-
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.
|
|
2448
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2275
2449
|
const _response = yield core.fetcher({
|
|
2276
2450
|
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/gpt-image-2"),
|
|
2277
2451
|
method: "POST",
|
|
@@ -2319,7 +2493,7 @@ class JobsClient {
|
|
|
2319
2493
|
});
|
|
2320
2494
|
}
|
|
2321
2495
|
/**
|
|
2322
|
-
*
|
|
2496
|
+
* Grok's take on a prompt — punchy, irreverent stills, in everything from ultrawide to tall.
|
|
2323
2497
|
*
|
|
2324
2498
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
2325
2499
|
*
|
|
@@ -2351,7 +2525,7 @@ class JobsClient {
|
|
|
2351
2525
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2352
2526
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2353
2527
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2354
|
-
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.
|
|
2528
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2355
2529
|
const _response = yield core.fetcher({
|
|
2356
2530
|
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/grok-imagine"),
|
|
2357
2531
|
method: "POST",
|
|
@@ -2399,7 +2573,89 @@ class JobsClient {
|
|
|
2399
2573
|
});
|
|
2400
2574
|
}
|
|
2401
2575
|
/**
|
|
2402
|
-
* xAI's
|
|
2576
|
+
* xAI's current Grok Imagine — the same irreverence at higher fidelity, from a prompt or from up to three source images.
|
|
2577
|
+
*
|
|
2578
|
+
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
2579
|
+
*
|
|
2580
|
+
* @param {Hedra.SubmitBodyGrokImagine20} request
|
|
2581
|
+
* @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2582
|
+
*
|
|
2583
|
+
* @throws {@link Hedra.BadRequestError}
|
|
2584
|
+
* @throws {@link Hedra.UnauthorizedError}
|
|
2585
|
+
* @throws {@link Hedra.PaymentRequiredError}
|
|
2586
|
+
* @throws {@link Hedra.ForbiddenError}
|
|
2587
|
+
* @throws {@link Hedra.NotFoundError}
|
|
2588
|
+
* @throws {@link Hedra.UnprocessableEntityError}
|
|
2589
|
+
* @throws {@link Hedra.TooManyRequestsError}
|
|
2590
|
+
* @throws {@link Hedra.InternalServerError}
|
|
2591
|
+
* @throws {@link errors.HedraError}
|
|
2592
|
+
* @throws {@link errors.HedraTimeoutError}
|
|
2593
|
+
*
|
|
2594
|
+
* @example
|
|
2595
|
+
* await client.jobs.submitGrokImagine20({
|
|
2596
|
+
* input: {
|
|
2597
|
+
* prompt: "prompt",
|
|
2598
|
+
* aspect_ratio: "2:1",
|
|
2599
|
+
* resolution: "1k"
|
|
2600
|
+
* }
|
|
2601
|
+
* })
|
|
2602
|
+
*/
|
|
2603
|
+
submitGrokImagine20(request, requestOptions) {
|
|
2604
|
+
return core.HttpResponsePromise.fromPromise(this.__submitGrokImagine20(request, requestOptions));
|
|
2605
|
+
}
|
|
2606
|
+
__submitGrokImagine20(request, requestOptions) {
|
|
2607
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2608
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2609
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2610
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2611
|
+
const _response = yield core.fetcher({
|
|
2612
|
+
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/grok-imagine-20"),
|
|
2613
|
+
method: "POST",
|
|
2614
|
+
headers: _headers,
|
|
2615
|
+
contentType: "application/json",
|
|
2616
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
2617
|
+
requestType: "json",
|
|
2618
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
2619
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
2620
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
2621
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
2622
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
2623
|
+
logging: this._options.logging,
|
|
2624
|
+
});
|
|
2625
|
+
if (_response.ok) {
|
|
2626
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
2627
|
+
}
|
|
2628
|
+
if (_response.error.reason === "status-code") {
|
|
2629
|
+
switch (_response.error.statusCode) {
|
|
2630
|
+
case 400:
|
|
2631
|
+
throw new Hedra.BadRequestError(_response.error.body, _response.rawResponse);
|
|
2632
|
+
case 401:
|
|
2633
|
+
throw new Hedra.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
2634
|
+
case 402:
|
|
2635
|
+
throw new Hedra.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
2636
|
+
case 403:
|
|
2637
|
+
throw new Hedra.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
2638
|
+
case 404:
|
|
2639
|
+
throw new Hedra.NotFoundError(_response.error.body, _response.rawResponse);
|
|
2640
|
+
case 422:
|
|
2641
|
+
throw new Hedra.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
2642
|
+
case 429:
|
|
2643
|
+
throw new Hedra.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
2644
|
+
case 500:
|
|
2645
|
+
throw new Hedra.InternalServerError(_response.error.body, _response.rawResponse);
|
|
2646
|
+
default:
|
|
2647
|
+
throw new errors.HedraError({
|
|
2648
|
+
statusCode: _response.error.statusCode,
|
|
2649
|
+
body: _response.error.body,
|
|
2650
|
+
rawResponse: _response.rawResponse,
|
|
2651
|
+
});
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/models/grok-imagine-20");
|
|
2655
|
+
});
|
|
2656
|
+
}
|
|
2657
|
+
/**
|
|
2658
|
+
* Short, punchy clips from a prompt at 480p or 720p.
|
|
2403
2659
|
*
|
|
2404
2660
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
2405
2661
|
*
|
|
@@ -2434,7 +2690,7 @@ class JobsClient {
|
|
|
2434
2690
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2435
2691
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2436
2692
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2437
|
-
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.
|
|
2693
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2438
2694
|
const _response = yield core.fetcher({
|
|
2439
2695
|
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/grok-video"),
|
|
2440
2696
|
method: "POST",
|
|
@@ -2482,7 +2738,7 @@ class JobsClient {
|
|
|
2482
2738
|
});
|
|
2483
2739
|
}
|
|
2484
2740
|
/**
|
|
2485
|
-
*
|
|
2741
|
+
* Open-weight video generation from a prompt.
|
|
2486
2742
|
*
|
|
2487
2743
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
2488
2744
|
*
|
|
@@ -2517,7 +2773,7 @@ class JobsClient {
|
|
|
2517
2773
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2518
2774
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2519
2775
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2520
|
-
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.
|
|
2776
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2521
2777
|
const _response = yield core.fetcher({
|
|
2522
2778
|
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/happy-horse"),
|
|
2523
2779
|
method: "POST",
|
|
@@ -2607,7 +2863,7 @@ class JobsClient {
|
|
|
2607
2863
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2608
2864
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2609
2865
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2610
|
-
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.
|
|
2866
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2611
2867
|
const _response = yield core.fetcher({
|
|
2612
2868
|
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/hedra-avatar"),
|
|
2613
2869
|
method: "POST",
|
|
@@ -2697,7 +2953,7 @@ class JobsClient {
|
|
|
2697
2953
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2698
2954
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2699
2955
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2700
|
-
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.
|
|
2956
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2701
2957
|
const _response = yield core.fetcher({
|
|
2702
2958
|
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/hedra-character-3"),
|
|
2703
2959
|
method: "POST",
|
|
@@ -2744,6 +3000,95 @@ class JobsClient {
|
|
|
2744
3000
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/models/hedra-character-3");
|
|
2745
3001
|
});
|
|
2746
3002
|
}
|
|
3003
|
+
/**
|
|
3004
|
+
* Turn a clear portrait and driving audio into a talking avatar.
|
|
3005
|
+
*
|
|
3006
|
+
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
3007
|
+
*
|
|
3008
|
+
* @param {Hedra.SubmitBodyHeygenPhotoAvatar4} request
|
|
3009
|
+
* @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3010
|
+
*
|
|
3011
|
+
* @throws {@link Hedra.BadRequestError}
|
|
3012
|
+
* @throws {@link Hedra.UnauthorizedError}
|
|
3013
|
+
* @throws {@link Hedra.PaymentRequiredError}
|
|
3014
|
+
* @throws {@link Hedra.ForbiddenError}
|
|
3015
|
+
* @throws {@link Hedra.NotFoundError}
|
|
3016
|
+
* @throws {@link Hedra.UnprocessableEntityError}
|
|
3017
|
+
* @throws {@link Hedra.TooManyRequestsError}
|
|
3018
|
+
* @throws {@link Hedra.InternalServerError}
|
|
3019
|
+
* @throws {@link errors.HedraError}
|
|
3020
|
+
* @throws {@link errors.HedraTimeoutError}
|
|
3021
|
+
*
|
|
3022
|
+
* @example
|
|
3023
|
+
* await client.jobs.submitHeygenPhotoAvatar4({
|
|
3024
|
+
* input: {
|
|
3025
|
+
* aspect_ratio: "16:9",
|
|
3026
|
+
* resolution: "360p",
|
|
3027
|
+
* start_image: {
|
|
3028
|
+
* source: "url",
|
|
3029
|
+
* url: "url"
|
|
3030
|
+
* },
|
|
3031
|
+
* audio: {
|
|
3032
|
+
* source: "url",
|
|
3033
|
+
* url: "url"
|
|
3034
|
+
* }
|
|
3035
|
+
* }
|
|
3036
|
+
* })
|
|
3037
|
+
*/
|
|
3038
|
+
submitHeygenPhotoAvatar4(request, requestOptions) {
|
|
3039
|
+
return core.HttpResponsePromise.fromPromise(this.__submitHeygenPhotoAvatar4(request, requestOptions));
|
|
3040
|
+
}
|
|
3041
|
+
__submitHeygenPhotoAvatar4(request, requestOptions) {
|
|
3042
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3043
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3044
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3045
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
3046
|
+
const _response = yield core.fetcher({
|
|
3047
|
+
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/heygen-photo-avatar-4"),
|
|
3048
|
+
method: "POST",
|
|
3049
|
+
headers: _headers,
|
|
3050
|
+
contentType: "application/json",
|
|
3051
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
3052
|
+
requestType: "json",
|
|
3053
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
3054
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
3055
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
3056
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
3057
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
3058
|
+
logging: this._options.logging,
|
|
3059
|
+
});
|
|
3060
|
+
if (_response.ok) {
|
|
3061
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
3062
|
+
}
|
|
3063
|
+
if (_response.error.reason === "status-code") {
|
|
3064
|
+
switch (_response.error.statusCode) {
|
|
3065
|
+
case 400:
|
|
3066
|
+
throw new Hedra.BadRequestError(_response.error.body, _response.rawResponse);
|
|
3067
|
+
case 401:
|
|
3068
|
+
throw new Hedra.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
3069
|
+
case 402:
|
|
3070
|
+
throw new Hedra.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
3071
|
+
case 403:
|
|
3072
|
+
throw new Hedra.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
3073
|
+
case 404:
|
|
3074
|
+
throw new Hedra.NotFoundError(_response.error.body, _response.rawResponse);
|
|
3075
|
+
case 422:
|
|
3076
|
+
throw new Hedra.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
3077
|
+
case 429:
|
|
3078
|
+
throw new Hedra.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
3079
|
+
case 500:
|
|
3080
|
+
throw new Hedra.InternalServerError(_response.error.body, _response.rawResponse);
|
|
3081
|
+
default:
|
|
3082
|
+
throw new errors.HedraError({
|
|
3083
|
+
statusCode: _response.error.statusCode,
|
|
3084
|
+
body: _response.error.body,
|
|
3085
|
+
rawResponse: _response.rawResponse,
|
|
3086
|
+
});
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/models/heygen-photo-avatar-4");
|
|
3090
|
+
});
|
|
3091
|
+
}
|
|
2747
3092
|
/**
|
|
2748
3093
|
* HiDream.ai's open-weights HiDream-O1-Image (8B): one pixel-native model that generates, edits, and personalizes without a VAE or a separate text encoder.
|
|
2749
3094
|
*
|
|
@@ -2767,8 +3112,7 @@ class JobsClient {
|
|
|
2767
3112
|
* await client.jobs.submitHidreamO1Image({
|
|
2768
3113
|
* input: {
|
|
2769
3114
|
* prompt: "prompt",
|
|
2770
|
-
* aspect_ratio: "16:9"
|
|
2771
|
-
* quality: "standard"
|
|
3115
|
+
* aspect_ratio: "16:9"
|
|
2772
3116
|
* }
|
|
2773
3117
|
* })
|
|
2774
3118
|
*/
|
|
@@ -2779,7 +3123,7 @@ class JobsClient {
|
|
|
2779
3123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2780
3124
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2781
3125
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2782
|
-
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.
|
|
3126
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2783
3127
|
const _response = yield core.fetcher({
|
|
2784
3128
|
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/hidream-o1-image"),
|
|
2785
3129
|
method: "POST",
|
|
@@ -2860,7 +3204,7 @@ class JobsClient {
|
|
|
2860
3204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2861
3205
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2862
3206
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2863
|
-
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.
|
|
3207
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2864
3208
|
const _response = yield core.fetcher({
|
|
2865
3209
|
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/ideogram-v2"),
|
|
2866
3210
|
method: "POST",
|
|
@@ -2931,8 +3275,7 @@ class JobsClient {
|
|
|
2931
3275
|
* input: {
|
|
2932
3276
|
* prompt: "prompt",
|
|
2933
3277
|
* aspect_ratio: "16:9",
|
|
2934
|
-
* resolution: "720p"
|
|
2935
|
-
* quality: "turbo"
|
|
3278
|
+
* resolution: "720p"
|
|
2936
3279
|
* }
|
|
2937
3280
|
* })
|
|
2938
3281
|
*/
|
|
@@ -2943,7 +3286,7 @@ class JobsClient {
|
|
|
2943
3286
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2944
3287
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2945
3288
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
2946
|
-
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.
|
|
3289
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
2947
3290
|
const _response = yield core.fetcher({
|
|
2948
3291
|
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/ideogram-v4"),
|
|
2949
3292
|
method: "POST",
|
|
@@ -2991,7 +3334,7 @@ class JobsClient {
|
|
|
2991
3334
|
});
|
|
2992
3335
|
}
|
|
2993
3336
|
/**
|
|
2994
|
-
*
|
|
3337
|
+
* Google's earlier photoreal generator, kept for parity.
|
|
2995
3338
|
*
|
|
2996
3339
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
2997
3340
|
*
|
|
@@ -3024,7 +3367,7 @@ class JobsClient {
|
|
|
3024
3367
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3025
3368
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3026
3369
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3027
|
-
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.
|
|
3370
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
3028
3371
|
const _response = yield core.fetcher({
|
|
3029
3372
|
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/imagen3"),
|
|
3030
3373
|
method: "POST",
|
|
@@ -3106,7 +3449,7 @@ class JobsClient {
|
|
|
3106
3449
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3107
3450
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3108
3451
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3109
|
-
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.
|
|
3452
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
3110
3453
|
const _response = yield core.fetcher({
|
|
3111
3454
|
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/imagen4"),
|
|
3112
3455
|
method: "POST",
|
|
@@ -3184,7 +3527,7 @@ class JobsClient {
|
|
|
3184
3527
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3185
3528
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3186
3529
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3187
|
-
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.
|
|
3530
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
3188
3531
|
const _response = yield core.fetcher({
|
|
3189
3532
|
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/kling-16"),
|
|
3190
3533
|
method: "POST",
|
|
@@ -3266,7 +3609,7 @@ class JobsClient {
|
|
|
3266
3609
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3267
3610
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3268
3611
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3269
|
-
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.
|
|
3612
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
3270
3613
|
const _response = yield core.fetcher({
|
|
3271
3614
|
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/kling-21-master"),
|
|
3272
3615
|
method: "POST",
|
|
@@ -3348,7 +3691,7 @@ class JobsClient {
|
|
|
3348
3691
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3349
3692
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3350
3693
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3351
|
-
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.
|
|
3694
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
3352
3695
|
const _response = yield core.fetcher({
|
|
3353
3696
|
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/kling-25-turbo"),
|
|
3354
3697
|
method: "POST",
|
|
@@ -3436,7 +3779,7 @@ class JobsClient {
|
|
|
3436
3779
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3437
3780
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3438
3781
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3439
|
-
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.
|
|
3782
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
3440
3783
|
const _response = yield core.fetcher({
|
|
3441
3784
|
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/kling-26-motion-control"),
|
|
3442
3785
|
method: "POST",
|
|
@@ -3518,7 +3861,7 @@ class JobsClient {
|
|
|
3518
3861
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3519
3862
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3520
3863
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3521
|
-
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.
|
|
3864
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
3522
3865
|
const _response = yield core.fetcher({
|
|
3523
3866
|
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/kling-26-pro"),
|
|
3524
3867
|
method: "POST",
|
|
@@ -3595,8 +3938,7 @@ class JobsClient {
|
|
|
3595
3938
|
* audio: {
|
|
3596
3939
|
* source: "url",
|
|
3597
3940
|
* url: "url"
|
|
3598
|
-
* }
|
|
3599
|
-
* quality: "standard"
|
|
3941
|
+
* }
|
|
3600
3942
|
* }
|
|
3601
3943
|
* })
|
|
3602
3944
|
*/
|
|
@@ -3607,7 +3949,7 @@ class JobsClient {
|
|
|
3607
3949
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3608
3950
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3609
3951
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3610
|
-
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.
|
|
3952
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
3611
3953
|
const _response = yield core.fetcher({
|
|
3612
3954
|
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/kling-ai-avatar-v2"),
|
|
3613
3955
|
method: "POST",
|
|
@@ -3689,7 +4031,7 @@ class JobsClient {
|
|
|
3689
4031
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3690
4032
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3691
4033
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3692
|
-
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.
|
|
4034
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
3693
4035
|
const _response = yield core.fetcher({
|
|
3694
4036
|
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/kling-o1"),
|
|
3695
4037
|
method: "POST",
|
|
@@ -3737,7 +4079,7 @@ class JobsClient {
|
|
|
3737
4079
|
});
|
|
3738
4080
|
}
|
|
3739
4081
|
/**
|
|
3740
|
-
*
|
|
4082
|
+
* Clips up to 15 seconds with native audio.
|
|
3741
4083
|
*
|
|
3742
4084
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
3743
4085
|
*
|
|
@@ -3759,8 +4101,7 @@ class JobsClient {
|
|
|
3759
4101
|
* await client.jobs.submitKlingO3({
|
|
3760
4102
|
* input: {
|
|
3761
4103
|
* aspect_ratio: "16:9",
|
|
3762
|
-
* duration_ms: 1
|
|
3763
|
-
* quality: "standard"
|
|
4104
|
+
* duration_ms: 1
|
|
3764
4105
|
* }
|
|
3765
4106
|
* })
|
|
3766
4107
|
*/
|
|
@@ -3771,7 +4112,7 @@ class JobsClient {
|
|
|
3771
4112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3772
4113
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3773
4114
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3774
|
-
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.
|
|
4115
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
3775
4116
|
const _response = yield core.fetcher({
|
|
3776
4117
|
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/kling-o3"),
|
|
3777
4118
|
method: "POST",
|
|
@@ -3856,7 +4197,7 @@ class JobsClient {
|
|
|
3856
4197
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3857
4198
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3858
4199
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3859
|
-
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.
|
|
4200
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
3860
4201
|
const _response = yield core.fetcher({
|
|
3861
4202
|
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/kling-o3-edit"),
|
|
3862
4203
|
method: "POST",
|
|
@@ -3941,7 +4282,7 @@ class JobsClient {
|
|
|
3941
4282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3942
4283
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3943
4284
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
3944
|
-
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.
|
|
4285
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
3945
4286
|
const _response = yield core.fetcher({
|
|
3946
4287
|
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/kling-o3-reference"),
|
|
3947
4288
|
method: "POST",
|
|
@@ -3989,7 +4330,7 @@ class JobsClient {
|
|
|
3989
4330
|
});
|
|
3990
4331
|
}
|
|
3991
4332
|
/**
|
|
3992
|
-
*
|
|
4333
|
+
* Ultra-high-definition storyboards with native audio.
|
|
3993
4334
|
*
|
|
3994
4335
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
3995
4336
|
*
|
|
@@ -4011,8 +4352,7 @@ class JobsClient {
|
|
|
4011
4352
|
* await client.jobs.submitKlingV3({
|
|
4012
4353
|
* input: {
|
|
4013
4354
|
* aspect_ratio: "16:9",
|
|
4014
|
-
* duration_ms: 1
|
|
4015
|
-
* quality: "standard"
|
|
4355
|
+
* duration_ms: 1
|
|
4016
4356
|
* }
|
|
4017
4357
|
* })
|
|
4018
4358
|
*/
|
|
@@ -4023,7 +4363,7 @@ class JobsClient {
|
|
|
4023
4363
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4024
4364
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4025
4365
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4026
|
-
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.
|
|
4366
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
4027
4367
|
const _response = yield core.fetcher({
|
|
4028
4368
|
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/kling-v3"),
|
|
4029
4369
|
method: "POST",
|
|
@@ -4111,7 +4451,7 @@ class JobsClient {
|
|
|
4111
4451
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4112
4452
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4113
4453
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4114
|
-
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.
|
|
4454
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
4115
4455
|
const _response = yield core.fetcher({
|
|
4116
4456
|
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/kling-v3-motion-control"),
|
|
4117
4457
|
method: "POST",
|
|
@@ -4159,7 +4499,7 @@ class JobsClient {
|
|
|
4159
4499
|
});
|
|
4160
4500
|
}
|
|
4161
4501
|
/**
|
|
4162
|
-
*
|
|
4502
|
+
* Clips up to 4K with synchronized native audio, for final output.
|
|
4163
4503
|
*
|
|
4164
4504
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
4165
4505
|
*
|
|
@@ -4183,8 +4523,7 @@ class JobsClient {
|
|
|
4183
4523
|
* prompt: "prompt",
|
|
4184
4524
|
* resolution: "1080p",
|
|
4185
4525
|
* duration_ms: 1,
|
|
4186
|
-
* aspect_ratio: "auto"
|
|
4187
|
-
* quality: "fast"
|
|
4526
|
+
* aspect_ratio: "auto"
|
|
4188
4527
|
* }
|
|
4189
4528
|
* })
|
|
4190
4529
|
*/
|
|
@@ -4195,7 +4534,7 @@ class JobsClient {
|
|
|
4195
4534
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4196
4535
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4197
4536
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4198
|
-
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.
|
|
4537
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
4199
4538
|
const _response = yield core.fetcher({
|
|
4200
4539
|
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/ltx-2-3"),
|
|
4201
4540
|
method: "POST",
|
|
@@ -4243,7 +4582,7 @@ class JobsClient {
|
|
|
4243
4582
|
});
|
|
4244
4583
|
}
|
|
4245
4584
|
/**
|
|
4246
|
-
*
|
|
4585
|
+
* Cinematic motion with deliberate camera control, from a prompt.
|
|
4247
4586
|
*
|
|
4248
4587
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
4249
4588
|
*
|
|
@@ -4265,7 +4604,7 @@ class JobsClient {
|
|
|
4265
4604
|
* await client.jobs.submitLumaRay32({
|
|
4266
4605
|
* input: {
|
|
4267
4606
|
* prompt: "prompt",
|
|
4268
|
-
* aspect_ratio: "
|
|
4607
|
+
* aspect_ratio: "3:4",
|
|
4269
4608
|
* resolution: "540p",
|
|
4270
4609
|
* duration_ms: 1
|
|
4271
4610
|
* }
|
|
@@ -4278,7 +4617,7 @@ class JobsClient {
|
|
|
4278
4617
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4279
4618
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4280
4619
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4281
|
-
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.
|
|
4620
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
4282
4621
|
const _response = yield core.fetcher({
|
|
4283
4622
|
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/luma-ray-32"),
|
|
4284
4623
|
method: "POST",
|
|
@@ -4348,8 +4687,7 @@ class JobsClient {
|
|
|
4348
4687
|
* await client.jobs.submitMaiImage25({
|
|
4349
4688
|
* input: {
|
|
4350
4689
|
* prompt: "prompt",
|
|
4351
|
-
* aspect_ratio: "1:1"
|
|
4352
|
-
* quality: "standard"
|
|
4690
|
+
* aspect_ratio: "1:1"
|
|
4353
4691
|
* }
|
|
4354
4692
|
* })
|
|
4355
4693
|
*/
|
|
@@ -4360,7 +4698,7 @@ class JobsClient {
|
|
|
4360
4698
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4361
4699
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4362
4700
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4363
|
-
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.
|
|
4701
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
4364
4702
|
const _response = yield core.fetcher({
|
|
4365
4703
|
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/mai-image-2-5"),
|
|
4366
4704
|
method: "POST",
|
|
@@ -4408,7 +4746,7 @@ class JobsClient {
|
|
|
4408
4746
|
});
|
|
4409
4747
|
}
|
|
4410
4748
|
/**
|
|
4411
|
-
*
|
|
4749
|
+
* One model for every starting point — a prompt, a keyframe pair, or reference images that keep a subject consistent.
|
|
4412
4750
|
*
|
|
4413
4751
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
4414
4752
|
*
|
|
@@ -4430,7 +4768,7 @@ class JobsClient {
|
|
|
4430
4768
|
* await client.jobs.submitMinimaxH3({
|
|
4431
4769
|
* input: {
|
|
4432
4770
|
* prompt: "prompt",
|
|
4433
|
-
* resolution: "
|
|
4771
|
+
* resolution: "480p",
|
|
4434
4772
|
* duration_ms: 1
|
|
4435
4773
|
* }
|
|
4436
4774
|
* })
|
|
@@ -4442,7 +4780,7 @@ class JobsClient {
|
|
|
4442
4780
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4443
4781
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4444
4782
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4445
|
-
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.
|
|
4783
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
4446
4784
|
const _response = yield core.fetcher({
|
|
4447
4785
|
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/minimax-h3"),
|
|
4448
4786
|
method: "POST",
|
|
@@ -4512,8 +4850,7 @@ class JobsClient {
|
|
|
4512
4850
|
* await client.jobs.submitMinimaxHailuo02({
|
|
4513
4851
|
* input: {
|
|
4514
4852
|
* prompt: "prompt",
|
|
4515
|
-
* duration_ms: 1
|
|
4516
|
-
* quality: "standard"
|
|
4853
|
+
* duration_ms: 1
|
|
4517
4854
|
* }
|
|
4518
4855
|
* })
|
|
4519
4856
|
*/
|
|
@@ -4524,7 +4861,7 @@ class JobsClient {
|
|
|
4524
4861
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4525
4862
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4526
4863
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4527
|
-
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.
|
|
4864
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
4528
4865
|
const _response = yield core.fetcher({
|
|
4529
4866
|
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/minimax-hailuo-02"),
|
|
4530
4867
|
method: "POST",
|
|
@@ -4594,8 +4931,7 @@ class JobsClient {
|
|
|
4594
4931
|
* await client.jobs.submitMinimaxHailuo23({
|
|
4595
4932
|
* input: {
|
|
4596
4933
|
* prompt: "prompt",
|
|
4597
|
-
* duration_ms: 1
|
|
4598
|
-
* quality: "standard"
|
|
4934
|
+
* duration_ms: 1
|
|
4599
4935
|
* }
|
|
4600
4936
|
* })
|
|
4601
4937
|
*/
|
|
@@ -4606,7 +4942,7 @@ class JobsClient {
|
|
|
4606
4942
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4607
4943
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4608
4944
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4609
|
-
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.
|
|
4945
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
4610
4946
|
const _response = yield core.fetcher({
|
|
4611
4947
|
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/minimax-hailuo-23"),
|
|
4612
4948
|
method: "POST",
|
|
@@ -4654,7 +4990,7 @@ class JobsClient {
|
|
|
4654
4990
|
});
|
|
4655
4991
|
}
|
|
4656
4992
|
/**
|
|
4657
|
-
* The
|
|
4993
|
+
* The high-fidelity tier — closest voice likeness, across 40+ languages.
|
|
4658
4994
|
*
|
|
4659
4995
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
4660
4996
|
*
|
|
@@ -4687,7 +5023,7 @@ class JobsClient {
|
|
|
4687
5023
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4688
5024
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4689
5025
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4690
|
-
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.
|
|
5026
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
4691
5027
|
const _response = yield core.fetcher({
|
|
4692
5028
|
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/minimax-speech-25-hd-preview"),
|
|
4693
5029
|
method: "POST",
|
|
@@ -4735,7 +5071,7 @@ class JobsClient {
|
|
|
4735
5071
|
});
|
|
4736
5072
|
}
|
|
4737
5073
|
/**
|
|
4738
|
-
* The
|
|
5074
|
+
* The value tier — natural English delivery across 40+ languages, at a lower rate.
|
|
4739
5075
|
*
|
|
4740
5076
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
4741
5077
|
*
|
|
@@ -4768,7 +5104,7 @@ class JobsClient {
|
|
|
4768
5104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4769
5105
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4770
5106
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4771
|
-
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.
|
|
5107
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
4772
5108
|
const _response = yield core.fetcher({
|
|
4773
5109
|
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/minimax-speech-25-turbo-preview"),
|
|
4774
5110
|
method: "POST",
|
|
@@ -4816,7 +5152,7 @@ class JobsClient {
|
|
|
4816
5152
|
});
|
|
4817
5153
|
}
|
|
4818
5154
|
/**
|
|
4819
|
-
*
|
|
5155
|
+
* Reference-guided stills that hold a character or product across a set.
|
|
4820
5156
|
*
|
|
4821
5157
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
4822
5158
|
*
|
|
@@ -4850,7 +5186,7 @@ class JobsClient {
|
|
|
4850
5186
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4851
5187
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4852
5188
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4853
|
-
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.
|
|
5189
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
4854
5190
|
const _response = yield core.fetcher({
|
|
4855
5191
|
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/nano-banana"),
|
|
4856
5192
|
method: "POST",
|
|
@@ -4898,7 +5234,7 @@ class JobsClient {
|
|
|
4898
5234
|
});
|
|
4899
5235
|
}
|
|
4900
5236
|
/**
|
|
4901
|
-
*
|
|
5237
|
+
* Multi-subject stills up to 4K — hand it several references and it keeps each one recognizable.
|
|
4902
5238
|
*
|
|
4903
5239
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
4904
5240
|
*
|
|
@@ -4920,8 +5256,8 @@ class JobsClient {
|
|
|
4920
5256
|
* await client.jobs.submitNanoBanana2({
|
|
4921
5257
|
* input: {
|
|
4922
5258
|
* prompt: "prompt",
|
|
4923
|
-
* aspect_ratio: "
|
|
4924
|
-
* resolution: "
|
|
5259
|
+
* aspect_ratio: "adaptive",
|
|
5260
|
+
* resolution: "512px"
|
|
4925
5261
|
* }
|
|
4926
5262
|
* })
|
|
4927
5263
|
*/
|
|
@@ -4932,7 +5268,7 @@ class JobsClient {
|
|
|
4932
5268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4933
5269
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
4934
5270
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
4935
|
-
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.
|
|
5271
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
4936
5272
|
const _response = yield core.fetcher({
|
|
4937
5273
|
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/nano-banana-2"),
|
|
4938
5274
|
method: "POST",
|
|
@@ -4980,7 +5316,7 @@ class JobsClient {
|
|
|
4980
5316
|
});
|
|
4981
5317
|
}
|
|
4982
5318
|
/**
|
|
4983
|
-
*
|
|
5319
|
+
* The reasoning-heavy tier — dense prompts, mixed references, and style transfer up to 4K.
|
|
4984
5320
|
*
|
|
4985
5321
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
4986
5322
|
*
|
|
@@ -5002,7 +5338,7 @@ class JobsClient {
|
|
|
5002
5338
|
* await client.jobs.submitNanoBananaPro({
|
|
5003
5339
|
* input: {
|
|
5004
5340
|
* prompt: "prompt",
|
|
5005
|
-
* aspect_ratio: "
|
|
5341
|
+
* aspect_ratio: "adaptive",
|
|
5006
5342
|
* resolution: "1K"
|
|
5007
5343
|
* }
|
|
5008
5344
|
* })
|
|
@@ -5014,7 +5350,7 @@ class JobsClient {
|
|
|
5014
5350
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5015
5351
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5016
5352
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5017
|
-
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.
|
|
5353
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
5018
5354
|
const _response = yield core.fetcher({
|
|
5019
5355
|
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/nano-banana-pro"),
|
|
5020
5356
|
method: "POST",
|
|
@@ -5102,7 +5438,7 @@ class JobsClient {
|
|
|
5102
5438
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5103
5439
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5104
5440
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5105
|
-
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.
|
|
5441
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
5106
5442
|
const _response = yield core.fetcher({
|
|
5107
5443
|
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/omnihuman-15"),
|
|
5108
5444
|
method: "POST",
|
|
@@ -5150,7 +5486,7 @@ class JobsClient {
|
|
|
5150
5486
|
});
|
|
5151
5487
|
}
|
|
5152
5488
|
/**
|
|
5153
|
-
*
|
|
5489
|
+
* Stylized 1080p clips up to 15 seconds, with native audio.
|
|
5154
5490
|
*
|
|
5155
5491
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
5156
5492
|
*
|
|
@@ -5184,7 +5520,7 @@ class JobsClient {
|
|
|
5184
5520
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5185
5521
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5186
5522
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5187
|
-
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.
|
|
5523
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
5188
5524
|
const _response = yield core.fetcher({
|
|
5189
5525
|
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/pixverse-v6"),
|
|
5190
5526
|
method: "POST",
|
|
@@ -5255,8 +5591,7 @@ class JobsClient {
|
|
|
5255
5591
|
* input: {
|
|
5256
5592
|
* prompt: "prompt",
|
|
5257
5593
|
* aspect_ratio: "16:9",
|
|
5258
|
-
* resolution: "540p"
|
|
5259
|
-
* quality: "standard"
|
|
5594
|
+
* resolution: "540p"
|
|
5260
5595
|
* }
|
|
5261
5596
|
* })
|
|
5262
5597
|
*/
|
|
@@ -5267,7 +5602,7 @@ class JobsClient {
|
|
|
5267
5602
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5268
5603
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5269
5604
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5270
|
-
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.
|
|
5605
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
5271
5606
|
const _response = yield core.fetcher({
|
|
5272
5607
|
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/qwen-image-2"),
|
|
5273
5608
|
method: "POST",
|
|
@@ -5349,7 +5684,7 @@ class JobsClient {
|
|
|
5349
5684
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5350
5685
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5351
5686
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5352
|
-
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.
|
|
5687
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
5353
5688
|
const _response = yield core.fetcher({
|
|
5354
5689
|
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/recraft-v3"),
|
|
5355
5690
|
method: "POST",
|
|
@@ -5430,7 +5765,7 @@ class JobsClient {
|
|
|
5430
5765
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5431
5766
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5432
5767
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5433
|
-
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.
|
|
5768
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
5434
5769
|
const _response = yield core.fetcher({
|
|
5435
5770
|
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/reve-21"),
|
|
5436
5771
|
method: "POST",
|
|
@@ -5515,7 +5850,7 @@ class JobsClient {
|
|
|
5515
5850
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5516
5851
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5517
5852
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5518
|
-
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.
|
|
5853
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
5519
5854
|
const _response = yield core.fetcher({
|
|
5520
5855
|
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/reve-21-edit"),
|
|
5521
5856
|
method: "POST",
|
|
@@ -5600,7 +5935,7 @@ class JobsClient {
|
|
|
5600
5935
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5601
5936
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5602
5937
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5603
|
-
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.
|
|
5938
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
5604
5939
|
const _response = yield core.fetcher({
|
|
5605
5940
|
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/reve-21-remix"),
|
|
5606
5941
|
method: "POST",
|
|
@@ -5682,7 +6017,7 @@ class JobsClient {
|
|
|
5682
6017
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5683
6018
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5684
6019
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5685
|
-
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.
|
|
6020
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
5686
6021
|
const _response = yield core.fetcher({
|
|
5687
6022
|
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/sana"),
|
|
5688
6023
|
method: "POST",
|
|
@@ -5730,7 +6065,7 @@ class JobsClient {
|
|
|
5730
6065
|
});
|
|
5731
6066
|
}
|
|
5732
6067
|
/**
|
|
5733
|
-
*
|
|
6068
|
+
* Keyframe-driven video with native audio, from a start frame, an end frame, or both.
|
|
5734
6069
|
*
|
|
5735
6070
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
5736
6071
|
*
|
|
@@ -5765,7 +6100,7 @@ class JobsClient {
|
|
|
5765
6100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5766
6101
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5767
6102
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5768
|
-
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.
|
|
6103
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
5769
6104
|
const _response = yield core.fetcher({
|
|
5770
6105
|
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/seedance-15-pro"),
|
|
5771
6106
|
method: "POST",
|
|
@@ -5813,7 +6148,7 @@ class JobsClient {
|
|
|
5813
6148
|
});
|
|
5814
6149
|
}
|
|
5815
6150
|
/**
|
|
5816
|
-
*
|
|
6151
|
+
* Reference-driven video up to 4K with native audio — hold a look across shots with reference images, clips, or audio.
|
|
5817
6152
|
*
|
|
5818
6153
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
5819
6154
|
*
|
|
@@ -5837,8 +6172,7 @@ class JobsClient {
|
|
|
5837
6172
|
* prompt: "prompt",
|
|
5838
6173
|
* aspect_ratio: "1:1",
|
|
5839
6174
|
* resolution: "4K",
|
|
5840
|
-
* duration_ms: 1
|
|
5841
|
-
* quality: "standard"
|
|
6175
|
+
* duration_ms: 1
|
|
5842
6176
|
* }
|
|
5843
6177
|
* })
|
|
5844
6178
|
*/
|
|
@@ -5849,7 +6183,7 @@ class JobsClient {
|
|
|
5849
6183
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5850
6184
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5851
6185
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5852
|
-
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.
|
|
6186
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
5853
6187
|
const _response = yield core.fetcher({
|
|
5854
6188
|
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/seedance-20"),
|
|
5855
6189
|
method: "POST",
|
|
@@ -5897,7 +6231,7 @@ class JobsClient {
|
|
|
5897
6231
|
});
|
|
5898
6232
|
}
|
|
5899
6233
|
/**
|
|
5900
|
-
*
|
|
6234
|
+
* The lightest Seedance tier — short reference-driven clips at 480p and 720p.
|
|
5901
6235
|
*
|
|
5902
6236
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
5903
6237
|
*
|
|
@@ -5932,7 +6266,7 @@ class JobsClient {
|
|
|
5932
6266
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5933
6267
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5934
6268
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
5935
|
-
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.
|
|
6269
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
5936
6270
|
const _response = yield core.fetcher({
|
|
5937
6271
|
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/seedance-20-mini"),
|
|
5938
6272
|
method: "POST",
|
|
@@ -5980,7 +6314,7 @@ class JobsClient {
|
|
|
5980
6314
|
});
|
|
5981
6315
|
}
|
|
5982
6316
|
/**
|
|
5983
|
-
*
|
|
6317
|
+
* Reference-driven video up to 30 seconds at 1080p, with native audio.
|
|
5984
6318
|
*
|
|
5985
6319
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
5986
6320
|
*
|
|
@@ -6015,7 +6349,7 @@ class JobsClient {
|
|
|
6015
6349
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6016
6350
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6017
6351
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6018
|
-
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.
|
|
6352
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
6019
6353
|
const _response = yield core.fetcher({
|
|
6020
6354
|
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/seedance-25"),
|
|
6021
6355
|
method: "POST",
|
|
@@ -6063,7 +6397,7 @@ class JobsClient {
|
|
|
6063
6397
|
});
|
|
6064
6398
|
}
|
|
6065
6399
|
/**
|
|
6066
|
-
*
|
|
6400
|
+
* Quick, reference-aware stills for professional work on a tight turnaround.
|
|
6067
6401
|
*
|
|
6068
6402
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
6069
6403
|
*
|
|
@@ -6097,7 +6431,7 @@ class JobsClient {
|
|
|
6097
6431
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6098
6432
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6099
6433
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6100
|
-
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.
|
|
6434
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
6101
6435
|
const _response = yield core.fetcher({
|
|
6102
6436
|
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/seedream-40"),
|
|
6103
6437
|
method: "POST",
|
|
@@ -6145,7 +6479,7 @@ class JobsClient {
|
|
|
6145
6479
|
});
|
|
6146
6480
|
}
|
|
6147
6481
|
/**
|
|
6148
|
-
*
|
|
6482
|
+
* Finer detail and steadier composition than 4.0, with support for several references at once.
|
|
6149
6483
|
*
|
|
6150
6484
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
6151
6485
|
*
|
|
@@ -6179,7 +6513,7 @@ class JobsClient {
|
|
|
6179
6513
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6180
6514
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6181
6515
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6182
|
-
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.
|
|
6516
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
6183
6517
|
const _response = yield core.fetcher({
|
|
6184
6518
|
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/seedream-45"),
|
|
6185
6519
|
method: "POST",
|
|
@@ -6227,7 +6561,7 @@ class JobsClient {
|
|
|
6227
6561
|
});
|
|
6228
6562
|
}
|
|
6229
6563
|
/**
|
|
6230
|
-
*
|
|
6564
|
+
* Sharp 2K and 4K stills from a prompt, at the light tier's price.
|
|
6231
6565
|
*
|
|
6232
6566
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
6233
6567
|
*
|
|
@@ -6261,7 +6595,7 @@ class JobsClient {
|
|
|
6261
6595
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6262
6596
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6263
6597
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6264
|
-
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.
|
|
6598
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
6265
6599
|
const _response = yield core.fetcher({
|
|
6266
6600
|
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/seedream-50-lite"),
|
|
6267
6601
|
method: "POST",
|
|
@@ -6309,7 +6643,7 @@ class JobsClient {
|
|
|
6309
6643
|
});
|
|
6310
6644
|
}
|
|
6311
6645
|
/**
|
|
6312
|
-
*
|
|
6646
|
+
* The top Seedream tier — layer-separable output and strong multilingual in-image text, up to 2K.
|
|
6313
6647
|
*
|
|
6314
6648
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
6315
6649
|
*
|
|
@@ -6343,7 +6677,7 @@ class JobsClient {
|
|
|
6343
6677
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6344
6678
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6345
6679
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6346
|
-
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.
|
|
6680
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
6347
6681
|
const _response = yield core.fetcher({
|
|
6348
6682
|
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/seedream-50-pro"),
|
|
6349
6683
|
method: "POST",
|
|
@@ -6426,7 +6760,7 @@ class JobsClient {
|
|
|
6426
6760
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6427
6761
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6428
6762
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6429
|
-
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.
|
|
6763
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
6430
6764
|
const _response = yield core.fetcher({
|
|
6431
6765
|
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/sora-2-pro"),
|
|
6432
6766
|
method: "POST",
|
|
@@ -6510,7 +6844,7 @@ class JobsClient {
|
|
|
6510
6844
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6511
6845
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6512
6846
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6513
|
-
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.
|
|
6847
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
6514
6848
|
const _response = yield core.fetcher({
|
|
6515
6849
|
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/topaz-image-upscaler"),
|
|
6516
6850
|
method: "POST",
|
|
@@ -6594,7 +6928,7 @@ class JobsClient {
|
|
|
6594
6928
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6595
6929
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6596
6930
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6597
|
-
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.
|
|
6931
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
6598
6932
|
const _response = yield core.fetcher({
|
|
6599
6933
|
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/topaz-image-upscaler-wonder"),
|
|
6600
6934
|
method: "POST",
|
|
@@ -6678,7 +7012,7 @@ class JobsClient {
|
|
|
6678
7012
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6679
7013
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6680
7014
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6681
|
-
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.
|
|
7015
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
6682
7016
|
const _response = yield core.fetcher({
|
|
6683
7017
|
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/topaz-video-upscaler"),
|
|
6684
7018
|
method: "POST",
|
|
@@ -6761,7 +7095,7 @@ class JobsClient {
|
|
|
6761
7095
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6762
7096
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6763
7097
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6764
|
-
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.
|
|
7098
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
6765
7099
|
const _response = yield core.fetcher({
|
|
6766
7100
|
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/topaz-video-upscaler-hyperion-2-5"),
|
|
6767
7101
|
method: "POST",
|
|
@@ -6845,7 +7179,7 @@ class JobsClient {
|
|
|
6845
7179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6846
7180
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6847
7181
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6848
|
-
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.
|
|
7182
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
6849
7183
|
const _response = yield core.fetcher({
|
|
6850
7184
|
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/topaz-video-upscaler-starlight-fast"),
|
|
6851
7185
|
method: "POST",
|
|
@@ -6929,7 +7263,7 @@ class JobsClient {
|
|
|
6929
7263
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6930
7264
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6931
7265
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
6932
|
-
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.
|
|
7266
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
6933
7267
|
const _response = yield core.fetcher({
|
|
6934
7268
|
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/topaz-video-upscaler-starlight-hq"),
|
|
6935
7269
|
method: "POST",
|
|
@@ -7013,7 +7347,7 @@ class JobsClient {
|
|
|
7013
7347
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7014
7348
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7015
7349
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7016
|
-
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.
|
|
7350
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
7017
7351
|
const _response = yield core.fetcher({
|
|
7018
7352
|
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/topaz-video-upscaler-starlight-precise"),
|
|
7019
7353
|
method: "POST",
|
|
@@ -7103,7 +7437,7 @@ class JobsClient {
|
|
|
7103
7437
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7104
7438
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7105
7439
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7106
|
-
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.
|
|
7440
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
7107
7441
|
const _response = yield core.fetcher({
|
|
7108
7442
|
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/veed-fabric-10"),
|
|
7109
7443
|
method: "POST",
|
|
@@ -7186,7 +7520,7 @@ class JobsClient {
|
|
|
7186
7520
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7187
7521
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7188
7522
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7189
|
-
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.
|
|
7523
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
7190
7524
|
const _response = yield core.fetcher({
|
|
7191
7525
|
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/veed-video-background-removal"),
|
|
7192
7526
|
method: "POST",
|
|
@@ -7234,7 +7568,7 @@ class JobsClient {
|
|
|
7234
7568
|
});
|
|
7235
7569
|
}
|
|
7236
7570
|
/**
|
|
7237
|
-
*
|
|
7571
|
+
* Google's earlier cinematic generator, kept for existing workflows.
|
|
7238
7572
|
*
|
|
7239
7573
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
7240
7574
|
*
|
|
@@ -7266,7 +7600,7 @@ class JobsClient {
|
|
|
7266
7600
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7267
7601
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7268
7602
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7269
|
-
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.
|
|
7603
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
7270
7604
|
const _response = yield core.fetcher({
|
|
7271
7605
|
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/veo-2"),
|
|
7272
7606
|
method: "POST",
|
|
@@ -7338,8 +7672,7 @@ class JobsClient {
|
|
|
7338
7672
|
* prompt: "prompt",
|
|
7339
7673
|
* aspect_ratio: "16:9",
|
|
7340
7674
|
* resolution: "720p",
|
|
7341
|
-
* duration_ms: 1
|
|
7342
|
-
* quality: "standard"
|
|
7675
|
+
* duration_ms: 1
|
|
7343
7676
|
* }
|
|
7344
7677
|
* })
|
|
7345
7678
|
*/
|
|
@@ -7350,7 +7683,7 @@ class JobsClient {
|
|
|
7350
7683
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7351
7684
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7352
7685
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7353
|
-
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.
|
|
7686
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
7354
7687
|
const _response = yield core.fetcher({
|
|
7355
7688
|
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/veo-3"),
|
|
7356
7689
|
method: "POST",
|
|
@@ -7421,8 +7754,7 @@ class JobsClient {
|
|
|
7421
7754
|
* input: {
|
|
7422
7755
|
* prompt: "prompt",
|
|
7423
7756
|
* aspect_ratio: "16:9",
|
|
7424
|
-
* resolution: "720p"
|
|
7425
|
-
* quality: "standard"
|
|
7757
|
+
* resolution: "720p"
|
|
7426
7758
|
* }
|
|
7427
7759
|
* })
|
|
7428
7760
|
*/
|
|
@@ -7433,7 +7765,7 @@ class JobsClient {
|
|
|
7433
7765
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7434
7766
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7435
7767
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7436
|
-
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.
|
|
7768
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
7437
7769
|
const _response = yield core.fetcher({
|
|
7438
7770
|
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/veo-31"),
|
|
7439
7771
|
method: "POST",
|
|
@@ -7481,7 +7813,7 @@ class JobsClient {
|
|
|
7481
7813
|
});
|
|
7482
7814
|
}
|
|
7483
7815
|
/**
|
|
7484
|
-
*
|
|
7816
|
+
* The longest clips in the catalog — up to 16 seconds with native dialogue and sound, from a text prompt, from a start frame, or between a start and end frame
|
|
7485
7817
|
*
|
|
7486
7818
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
7487
7819
|
*
|
|
@@ -7504,8 +7836,7 @@ class JobsClient {
|
|
|
7504
7836
|
* input: {
|
|
7505
7837
|
* prompt: "prompt",
|
|
7506
7838
|
* resolution: "540p",
|
|
7507
|
-
* duration_ms: 1
|
|
7508
|
-
* quality: "standard"
|
|
7839
|
+
* duration_ms: 1
|
|
7509
7840
|
* }
|
|
7510
7841
|
* })
|
|
7511
7842
|
*/
|
|
@@ -7516,7 +7847,7 @@ class JobsClient {
|
|
|
7516
7847
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7517
7848
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7518
7849
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7519
|
-
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.
|
|
7850
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
7520
7851
|
const _response = yield core.fetcher({
|
|
7521
7852
|
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/vidu-q3"),
|
|
7522
7853
|
method: "POST",
|
|
@@ -7564,7 +7895,7 @@ class JobsClient {
|
|
|
7564
7895
|
});
|
|
7565
7896
|
}
|
|
7566
7897
|
/**
|
|
7567
|
-
*
|
|
7898
|
+
* Keep up to four subjects consistent across a clip from reference images.
|
|
7568
7899
|
*
|
|
7569
7900
|
* Submits an asynchronous job and returns `202` with a job id. Fetch the result at `GET /v3/jobs/{job_id}` — each item in its `outputs[]` follows the `OutputItem` schema — or track progress via `GET /v3/jobs/{job_id}/status` / the SSE stream at `GET /v3/jobs/{job_id}/stream`.
|
|
7570
7901
|
*
|
|
@@ -7603,7 +7934,7 @@ class JobsClient {
|
|
|
7603
7934
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7604
7935
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7605
7936
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7606
|
-
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.
|
|
7937
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
7607
7938
|
const _response = yield core.fetcher({
|
|
7608
7939
|
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/vidu-q3-reference"),
|
|
7609
7940
|
method: "POST",
|
|
@@ -7685,7 +8016,7 @@ class JobsClient {
|
|
|
7685
8016
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7686
8017
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7687
8018
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7688
|
-
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.
|
|
8019
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
7689
8020
|
const _response = yield core.fetcher({
|
|
7690
8021
|
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/wan-2-7"),
|
|
7691
8022
|
method: "POST",
|
|
@@ -7757,8 +8088,7 @@ class JobsClient {
|
|
|
7757
8088
|
* prompt: "prompt",
|
|
7758
8089
|
* aspect_ratio: "adaptive",
|
|
7759
8090
|
* resolution: "480p",
|
|
7760
|
-
* duration_ms: 1
|
|
7761
|
-
* quality: "standard"
|
|
8091
|
+
* duration_ms: 1
|
|
7762
8092
|
* }
|
|
7763
8093
|
* })
|
|
7764
8094
|
*/
|
|
@@ -7769,7 +8099,7 @@ class JobsClient {
|
|
|
7769
8099
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7770
8100
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7771
8101
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7772
|
-
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.
|
|
8102
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
7773
8103
|
const _response = yield core.fetcher({
|
|
7774
8104
|
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/wan-3-0"),
|
|
7775
8105
|
method: "POST",
|
|
@@ -7852,7 +8182,7 @@ class JobsClient {
|
|
|
7852
8182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7853
8183
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7854
8184
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
7855
|
-
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.
|
|
8185
|
+
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.16.1" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
7856
8186
|
const _response = yield core.fetcher({
|
|
7857
8187
|
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)}`),
|
|
7858
8188
|
method: "POST",
|