@hedra/sdk 1.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.d.ts +2 -2
- package/dist/cjs/BaseClient.js +3 -3
- package/dist/cjs/api/resources/billing/client/Client.js +2 -2
- package/dist/cjs/api/resources/files/client/Client.js +1 -1
- package/dist/cjs/api/resources/jobs/client/Client.js +81 -81
- package/dist/cjs/api/resources/keys/client/Client.js +4 -4
- package/dist/cjs/api/resources/logDrains/client/Client.js +6 -6
- package/dist/cjs/api/resources/models/client/Client.js +6 -6
- package/dist/cjs/api/resources/tokens/client/Client.js +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.js +7 -7
- package/dist/cjs/api/types/InputElevenlabsFlashMultilingualV2.d.ts +3 -3
- package/dist/cjs/api/types/InputElevenlabsFlashV2.d.ts +3 -3
- package/dist/cjs/api/types/InputElevenlabsMultilingualV2.d.ts +3 -3
- package/dist/cjs/api/types/InputElevenlabsV3.d.ts +3 -3
- package/dist/cjs/api/types/InputFlux2Flex.d.ts +3 -3
- package/dist/cjs/api/types/InputFlux2Klein9B.d.ts +3 -3
- package/dist/cjs/api/types/InputFlux2Max.d.ts +1 -1
- package/dist/cjs/api/types/InputFlux2Pro.d.ts +1 -1
- package/dist/cjs/api/types/InputFlux3.d.ts +2 -2
- package/dist/cjs/api/types/InputFlux3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputFlux3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputFluxDev.d.ts +2 -2
- package/dist/cjs/api/types/InputFluxKontextMax.d.ts +1 -1
- package/dist/cjs/api/types/InputFluxKontextPro.d.ts +1 -1
- package/dist/cjs/api/types/InputGeminiOmniFlash.d.ts +4 -4
- package/dist/cjs/api/types/InputGeminiOmniFlashSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputGeminiOmniFlashStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputGptImage15.d.ts +2 -2
- package/dist/cjs/api/types/InputGptImage2.d.ts +2 -2
- package/dist/cjs/api/types/InputGrokImagine.d.ts +2 -2
- package/dist/cjs/api/types/InputGrokVideo.d.ts +2 -2
- package/dist/cjs/api/types/InputGrokVideoStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHappyHorse.d.ts +4 -4
- package/dist/cjs/api/types/InputHappyHorseStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraAvatar.d.ts +4 -4
- package/dist/cjs/api/types/InputHedraAvatarStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHedraCharacter3.d.ts +4 -4
- package/dist/cjs/api/types/InputHedraCharacter3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputHidreamO1Image.d.ts +4 -4
- package/dist/cjs/api/types/InputImagen4.d.ts +1 -1
- package/dist/cjs/api/types/InputKling16.d.ts +4 -4
- package/dist/cjs/api/types/InputKling16StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling21Master.d.ts +4 -4
- package/dist/cjs/api/types/InputKling21MasterStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling25Turbo.d.ts +4 -4
- package/dist/cjs/api/types/InputKling25TurboStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling26MotionControl.d.ts +3 -3
- package/dist/cjs/api/types/InputKling26MotionControlSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputKling26MotionControlStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKling26Pro.d.ts +4 -4
- package/dist/cjs/api/types/InputKling26ProStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingAiAvatarV2.d.ts +3 -3
- package/dist/cjs/api/types/InputKlingAiAvatarV2Audio.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingAiAvatarV2StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO1.d.ts +4 -4
- package/dist/cjs/api/types/InputKlingO1EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO1StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3.d.ts +4 -4
- package/dist/cjs/api/types/InputKlingO3Edit.d.ts +3 -3
- package/dist/cjs/api/types/InputKlingO3EditSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3Reference.d.ts +3 -3
- package/dist/cjs/api/types/InputKlingO3ReferenceSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingO3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3.d.ts +5 -5
- package/dist/cjs/api/types/InputKlingV3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3MotionControl.d.ts +3 -3
- package/dist/cjs/api/types/InputKlingV3MotionControlSourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3MotionControlStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputKlingV3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputLtx23.d.ts +3 -3
- package/dist/cjs/api/types/InputLtx23EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputLtx23StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputLumaRay32.d.ts +1 -1
- package/dist/cjs/api/types/InputMaiImage25.d.ts +2 -2
- package/dist/cjs/api/types/InputMinimaxH3.d.ts +6 -6
- package/dist/cjs/api/types/InputMinimaxH3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxH3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxHailuo02.d.ts +3 -3
- package/dist/cjs/api/types/InputMinimaxHailuo02EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxHailuo02StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxHailuo23.d.ts +2 -2
- package/dist/cjs/api/types/InputMinimaxHailuo23StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputMinimaxSpeech25HdPreview.d.ts +3 -3
- package/dist/cjs/api/types/InputMinimaxSpeech25TurboPreview.d.ts +3 -3
- package/dist/cjs/api/types/InputNanoBanana.d.ts +1 -1
- package/dist/cjs/api/types/InputNanoBanana2.d.ts +1 -1
- package/dist/cjs/api/types/InputNanoBananaPro.d.ts +1 -1
- package/dist/cjs/api/types/InputOmnihuman15.d.ts +2 -2
- package/dist/cjs/api/types/InputOmnihuman15Audio.d.ts +1 -1
- package/dist/cjs/api/types/InputOmnihuman15StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputPixverseV6.d.ts +3 -3
- package/dist/cjs/api/types/InputPixverseV6StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputQwenImage2.d.ts +4 -4
- package/dist/cjs/api/types/InputRecraftV3.d.ts +1 -1
- package/dist/cjs/api/types/InputReve21.d.ts +1 -1
- package/dist/cjs/api/types/InputReve21Edit.d.ts +2 -2
- package/dist/cjs/api/types/InputReve21Remix.d.ts +2 -2
- package/dist/cjs/api/types/InputSana.d.ts +2 -2
- package/dist/cjs/api/types/InputSeedance15Pro.d.ts +3 -3
- package/dist/cjs/api/types/InputSeedance15ProEndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance15ProStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20.d.ts +5 -5
- package/dist/cjs/api/types/InputSeedance20EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20Mini.d.ts +5 -5
- package/dist/cjs/api/types/InputSeedance20MiniEndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20MiniStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance20StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance25.d.ts +5 -5
- package/dist/cjs/api/types/InputSeedance25EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedance25StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedream40.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedream45.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedream50Lite.d.ts +1 -1
- package/dist/cjs/api/types/InputSeedream50Pro.d.ts +1 -1
- package/dist/cjs/api/types/InputSora2Pro.d.ts +2 -2
- package/dist/cjs/api/types/InputSora2ProStartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeedFabric10.d.ts +2 -2
- package/dist/cjs/api/types/InputVeedFabric10Audio.d.ts +1 -1
- package/dist/cjs/api/types/InputVeedFabric10StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo2.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo2StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo3.d.ts +2 -2
- package/dist/cjs/api/types/InputVeo31.d.ts +5 -5
- package/dist/cjs/api/types/InputVeo31EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo31SourceVideo.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo31StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputVeo3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputViduQ3.d.ts +3 -3
- package/dist/cjs/api/types/InputViduQ3EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputViduQ3Reference.d.ts +2 -2
- package/dist/cjs/api/types/InputViduQ3StartImage.d.ts +1 -1
- package/dist/cjs/api/types/InputWan27.d.ts +6 -6
- package/dist/cjs/api/types/InputWan27EndImage.d.ts +1 -1
- package/dist/cjs/api/types/InputWan27StartImage.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +2 -2
- package/dist/esm/BaseClient.mjs +3 -3
- package/dist/esm/api/resources/billing/client/Client.mjs +2 -2
- package/dist/esm/api/resources/files/client/Client.mjs +1 -1
- package/dist/esm/api/resources/jobs/client/Client.mjs +81 -81
- package/dist/esm/api/resources/keys/client/Client.mjs +4 -4
- package/dist/esm/api/resources/logDrains/client/Client.mjs +6 -6
- package/dist/esm/api/resources/models/client/Client.mjs +6 -6
- package/dist/esm/api/resources/tokens/client/Client.mjs +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.mjs +7 -7
- package/dist/esm/api/types/InputElevenlabsFlashMultilingualV2.d.mts +3 -3
- package/dist/esm/api/types/InputElevenlabsFlashV2.d.mts +3 -3
- package/dist/esm/api/types/InputElevenlabsMultilingualV2.d.mts +3 -3
- package/dist/esm/api/types/InputElevenlabsV3.d.mts +3 -3
- package/dist/esm/api/types/InputFlux2Flex.d.mts +3 -3
- package/dist/esm/api/types/InputFlux2Klein9B.d.mts +3 -3
- package/dist/esm/api/types/InputFlux2Max.d.mts +1 -1
- package/dist/esm/api/types/InputFlux2Pro.d.mts +1 -1
- package/dist/esm/api/types/InputFlux3.d.mts +2 -2
- package/dist/esm/api/types/InputFlux3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputFlux3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputFluxDev.d.mts +2 -2
- package/dist/esm/api/types/InputFluxKontextMax.d.mts +1 -1
- package/dist/esm/api/types/InputFluxKontextPro.d.mts +1 -1
- package/dist/esm/api/types/InputGeminiOmniFlash.d.mts +4 -4
- package/dist/esm/api/types/InputGeminiOmniFlashSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputGeminiOmniFlashStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputGptImage15.d.mts +2 -2
- package/dist/esm/api/types/InputGptImage2.d.mts +2 -2
- package/dist/esm/api/types/InputGrokImagine.d.mts +2 -2
- package/dist/esm/api/types/InputGrokVideo.d.mts +2 -2
- package/dist/esm/api/types/InputGrokVideoStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHappyHorse.d.mts +4 -4
- package/dist/esm/api/types/InputHappyHorseStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHedraAvatar.d.mts +4 -4
- package/dist/esm/api/types/InputHedraAvatarStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHedraCharacter3.d.mts +4 -4
- package/dist/esm/api/types/InputHedraCharacter3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputHidreamO1Image.d.mts +4 -4
- package/dist/esm/api/types/InputImagen4.d.mts +1 -1
- package/dist/esm/api/types/InputKling16.d.mts +4 -4
- package/dist/esm/api/types/InputKling16StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling21Master.d.mts +4 -4
- package/dist/esm/api/types/InputKling21MasterStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling25Turbo.d.mts +4 -4
- package/dist/esm/api/types/InputKling25TurboStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling26MotionControl.d.mts +3 -3
- package/dist/esm/api/types/InputKling26MotionControlSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputKling26MotionControlStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKling26Pro.d.mts +4 -4
- package/dist/esm/api/types/InputKling26ProStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingAiAvatarV2.d.mts +3 -3
- package/dist/esm/api/types/InputKlingAiAvatarV2Audio.d.mts +1 -1
- package/dist/esm/api/types/InputKlingAiAvatarV2StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO1.d.mts +4 -4
- package/dist/esm/api/types/InputKlingO1EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO1StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3.d.mts +4 -4
- package/dist/esm/api/types/InputKlingO3Edit.d.mts +3 -3
- package/dist/esm/api/types/InputKlingO3EditSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3Reference.d.mts +3 -3
- package/dist/esm/api/types/InputKlingO3ReferenceSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputKlingO3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3.d.mts +5 -5
- package/dist/esm/api/types/InputKlingV3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3MotionControl.d.mts +3 -3
- package/dist/esm/api/types/InputKlingV3MotionControlSourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3MotionControlStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputKlingV3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputLtx23.d.mts +3 -3
- package/dist/esm/api/types/InputLtx23EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputLtx23StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputLumaRay32.d.mts +1 -1
- package/dist/esm/api/types/InputMaiImage25.d.mts +2 -2
- package/dist/esm/api/types/InputMinimaxH3.d.mts +6 -6
- package/dist/esm/api/types/InputMinimaxH3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxH3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxHailuo02.d.mts +3 -3
- package/dist/esm/api/types/InputMinimaxHailuo02EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxHailuo02StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxHailuo23.d.mts +2 -2
- package/dist/esm/api/types/InputMinimaxHailuo23StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputMinimaxSpeech25HdPreview.d.mts +3 -3
- package/dist/esm/api/types/InputMinimaxSpeech25TurboPreview.d.mts +3 -3
- package/dist/esm/api/types/InputNanoBanana.d.mts +1 -1
- package/dist/esm/api/types/InputNanoBanana2.d.mts +1 -1
- package/dist/esm/api/types/InputNanoBananaPro.d.mts +1 -1
- package/dist/esm/api/types/InputOmnihuman15.d.mts +2 -2
- package/dist/esm/api/types/InputOmnihuman15Audio.d.mts +1 -1
- package/dist/esm/api/types/InputOmnihuman15StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputPixverseV6.d.mts +3 -3
- package/dist/esm/api/types/InputPixverseV6StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputQwenImage2.d.mts +4 -4
- package/dist/esm/api/types/InputRecraftV3.d.mts +1 -1
- package/dist/esm/api/types/InputReve21.d.mts +1 -1
- package/dist/esm/api/types/InputReve21Edit.d.mts +2 -2
- package/dist/esm/api/types/InputReve21Remix.d.mts +2 -2
- package/dist/esm/api/types/InputSana.d.mts +2 -2
- package/dist/esm/api/types/InputSeedance15Pro.d.mts +3 -3
- package/dist/esm/api/types/InputSeedance15ProEndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance15ProStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20.d.mts +5 -5
- package/dist/esm/api/types/InputSeedance20EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20Mini.d.mts +5 -5
- package/dist/esm/api/types/InputSeedance20MiniEndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20MiniStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance20StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance25.d.mts +5 -5
- package/dist/esm/api/types/InputSeedance25EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedance25StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputSeedream40.d.mts +1 -1
- package/dist/esm/api/types/InputSeedream45.d.mts +1 -1
- package/dist/esm/api/types/InputSeedream50Lite.d.mts +1 -1
- package/dist/esm/api/types/InputSeedream50Pro.d.mts +1 -1
- package/dist/esm/api/types/InputSora2Pro.d.mts +2 -2
- package/dist/esm/api/types/InputSora2ProStartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeedFabric10.d.mts +2 -2
- package/dist/esm/api/types/InputVeedFabric10Audio.d.mts +1 -1
- package/dist/esm/api/types/InputVeedFabric10StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeo2.d.mts +1 -1
- package/dist/esm/api/types/InputVeo2StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeo3.d.mts +2 -2
- package/dist/esm/api/types/InputVeo31.d.mts +5 -5
- package/dist/esm/api/types/InputVeo31EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeo31SourceVideo.d.mts +1 -1
- package/dist/esm/api/types/InputVeo31StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputVeo3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputViduQ3.d.mts +3 -3
- package/dist/esm/api/types/InputViduQ3EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputViduQ3Reference.d.mts +2 -2
- package/dist/esm/api/types/InputViduQ3StartImage.d.mts +1 -1
- package/dist/esm/api/types/InputWan27.d.mts +6 -6
- package/dist/esm/api/types/InputWan27EndImage.d.mts +1 -1
- package/dist/esm/api/types/InputWan27StartImage.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
|
@@ -83,7 +83,7 @@ class KeysClient {
|
|
|
83
83
|
workspace_id: workspaceId,
|
|
84
84
|
};
|
|
85
85
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
86
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
86
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
87
87
|
const _response = yield core.fetcher({
|
|
88
88
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "keys"),
|
|
89
89
|
method: "GET",
|
|
@@ -150,7 +150,7 @@ class KeysClient {
|
|
|
150
150
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
151
151
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
152
152
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
153
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
153
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
154
154
|
const _response = yield core.fetcher({
|
|
155
155
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "keys"),
|
|
156
156
|
method: "POST",
|
|
@@ -217,7 +217,7 @@ class KeysClient {
|
|
|
217
217
|
return __awaiter(this, arguments, void 0, function* (key_id, request = {}, requestOptions) {
|
|
218
218
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
219
219
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
220
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
220
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
221
221
|
const _response = yield core.fetcher({
|
|
222
222
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `keys/${core.url.encodePathParam(key_id)}/rotate`),
|
|
223
223
|
method: "POST",
|
|
@@ -284,7 +284,7 @@ class KeysClient {
|
|
|
284
284
|
return __awaiter(this, arguments, void 0, function* (key_id, _request = {}, requestOptions) {
|
|
285
285
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
286
286
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
287
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
287
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
288
288
|
const _response = yield core.fetcher({
|
|
289
289
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `keys/${core.url.encodePathParam(key_id)}`),
|
|
290
290
|
method: "DELETE",
|
|
@@ -100,7 +100,7 @@ class LogDrainsClient {
|
|
|
100
100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
101
101
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
102
102
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
103
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
103
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
104
104
|
const _response = yield core.fetcher({
|
|
105
105
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "log-drains"),
|
|
106
106
|
method: "GET",
|
|
@@ -166,7 +166,7 @@ class LogDrainsClient {
|
|
|
166
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
167
167
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
168
168
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
169
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
169
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
170
170
|
const _response = yield core.fetcher({
|
|
171
171
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "log-drains"),
|
|
172
172
|
method: "POST",
|
|
@@ -233,7 +233,7 @@ class LogDrainsClient {
|
|
|
233
233
|
return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
|
|
234
234
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
235
235
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
236
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
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.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
237
237
|
const _response = yield core.fetcher({
|
|
238
238
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}`),
|
|
239
239
|
method: "GET",
|
|
@@ -297,7 +297,7 @@ class LogDrainsClient {
|
|
|
297
297
|
return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
|
|
298
298
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
299
299
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
300
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
300
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
301
301
|
const _response = yield core.fetcher({
|
|
302
302
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}`),
|
|
303
303
|
method: "DELETE",
|
|
@@ -361,7 +361,7 @@ class LogDrainsClient {
|
|
|
361
361
|
return __awaiter(this, arguments, void 0, function* (drain_id, request = {}, requestOptions) {
|
|
362
362
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
363
363
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
364
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
364
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
365
365
|
const _response = yield core.fetcher({
|
|
366
366
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}`),
|
|
367
367
|
method: "PATCH",
|
|
@@ -428,7 +428,7 @@ class LogDrainsClient {
|
|
|
428
428
|
return __awaiter(this, arguments, void 0, function* (drain_id, _request = {}, requestOptions) {
|
|
429
429
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
430
430
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
431
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
431
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
432
432
|
const _response = yield core.fetcher({
|
|
433
433
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `log-drains/${core.url.encodePathParam(drain_id)}/test`),
|
|
434
434
|
method: "POST",
|
|
@@ -84,7 +84,7 @@ class ModelsClient {
|
|
|
84
84
|
const _queryParams = {
|
|
85
85
|
modality: modality !== undefined ? modality : undefined,
|
|
86
86
|
};
|
|
87
|
-
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
87
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
88
88
|
const _response = yield core.fetcher({
|
|
89
89
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "models"),
|
|
90
90
|
method: "GET",
|
|
@@ -148,7 +148,7 @@ class ModelsClient {
|
|
|
148
148
|
__get(model_1) {
|
|
149
149
|
return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
|
|
150
150
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
151
|
-
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
151
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
152
152
|
const _response = yield core.fetcher({
|
|
153
153
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}`),
|
|
154
154
|
method: "GET",
|
|
@@ -213,7 +213,7 @@ class ModelsClient {
|
|
|
213
213
|
cursor,
|
|
214
214
|
};
|
|
215
215
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
216
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
216
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
217
217
|
const _response = yield core.fetcher({
|
|
218
218
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/jobs`),
|
|
219
219
|
method: "GET",
|
|
@@ -293,7 +293,7 @@ class ModelsClient {
|
|
|
293
293
|
__listVoices(model_1) {
|
|
294
294
|
return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
|
|
295
295
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
296
|
-
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
296
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
297
297
|
const _response = yield core.fetcher({
|
|
298
298
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/voices`),
|
|
299
299
|
method: "GET",
|
|
@@ -355,7 +355,7 @@ class ModelsClient {
|
|
|
355
355
|
__getOpenapi(model_1) {
|
|
356
356
|
return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
|
|
357
357
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
358
|
-
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
358
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
359
359
|
const _response = yield core.fetcher({
|
|
360
360
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/openapi.json`),
|
|
361
361
|
method: "GET",
|
|
@@ -417,7 +417,7 @@ class ModelsClient {
|
|
|
417
417
|
return __awaiter(this, arguments, void 0, function* (model, request = {}, requestOptions) {
|
|
418
418
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
419
419
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
420
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
420
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
421
421
|
const _response = yield core.fetcher({
|
|
422
422
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/estimate`),
|
|
423
423
|
method: "POST",
|
|
@@ -79,7 +79,7 @@ class TokensClient {
|
|
|
79
79
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
80
80
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
81
81
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
82
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
82
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
83
83
|
const _response = yield core.fetcher({
|
|
84
84
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "tokens"),
|
|
85
85
|
method: "POST",
|
|
@@ -120,7 +120,7 @@ class WebhooksClient {
|
|
|
120
120
|
__getPublicKey(requestOptions) {
|
|
121
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
122
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
123
|
-
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
123
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
124
124
|
const _response = yield core.fetcher({
|
|
125
125
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/public-key"),
|
|
126
126
|
method: "GET",
|
|
@@ -180,7 +180,7 @@ class WebhooksClient {
|
|
|
180
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
181
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
182
182
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
183
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
183
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
184
184
|
const _response = yield core.fetcher({
|
|
185
185
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default"),
|
|
186
186
|
method: "GET",
|
|
@@ -245,7 +245,7 @@ class WebhooksClient {
|
|
|
245
245
|
return __awaiter(this, void 0, void 0, function* () {
|
|
246
246
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
247
247
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
248
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
248
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
249
249
|
const _response = yield core.fetcher({
|
|
250
250
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default"),
|
|
251
251
|
method: "PUT",
|
|
@@ -310,7 +310,7 @@ class WebhooksClient {
|
|
|
310
310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
311
311
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
312
312
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
313
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
313
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
314
314
|
const _response = yield core.fetcher({
|
|
315
315
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default"),
|
|
316
316
|
method: "DELETE",
|
|
@@ -372,7 +372,7 @@ class WebhooksClient {
|
|
|
372
372
|
return __awaiter(this, void 0, void 0, function* () {
|
|
373
373
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
374
374
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
375
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
375
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
376
376
|
const _response = yield core.fetcher({
|
|
377
377
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/default/test"),
|
|
378
378
|
method: "POST",
|
|
@@ -438,7 +438,7 @@ class WebhooksClient {
|
|
|
438
438
|
cursor,
|
|
439
439
|
};
|
|
440
440
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
441
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
441
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
442
442
|
const _response = yield core.fetcher({
|
|
443
443
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "webhooks/deliveries"),
|
|
444
444
|
method: "GET",
|
|
@@ -534,7 +534,7 @@ class WebhooksClient {
|
|
|
534
534
|
return __awaiter(this, arguments, void 0, function* (job_id, _request = {}, requestOptions) {
|
|
535
535
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
536
536
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
537
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
537
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.3.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
538
538
|
const _response = yield core.fetcher({
|
|
539
539
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `webhooks/deliveries/${core.url.encodePathParam(job_id)}/redeliver`),
|
|
540
540
|
method: "POST",
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Model-specific inputs for `elevenlabs-flash-multilingual-v2`.
|
|
3
3
|
*/
|
|
4
4
|
export interface InputElevenlabsFlashMultilingualV2 {
|
|
5
|
-
/** Generation prompt. */
|
|
5
|
+
/** Generation prompt. At most 40000 characters. */
|
|
6
6
|
text: string;
|
|
7
|
-
/** Voice stability
|
|
7
|
+
/** Voice stability. Higher values give a steadier, more consistent delivery; lower values allow more expressive variation between generations. From 0 to 1. */
|
|
8
8
|
stability?: number | undefined;
|
|
9
|
-
/** Speech rate multiplier; 1.0 is the voice's natural pace. */
|
|
9
|
+
/** Speech rate multiplier; 1.0 is the voice's natural pace. From 0.7 to 1.2. */
|
|
10
10
|
speed?: number | undefined;
|
|
11
11
|
/** Language code; 'auto' by default. */
|
|
12
12
|
language?: string | undefined;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Model-specific inputs for `elevenlabs-flash-v2`.
|
|
3
3
|
*/
|
|
4
4
|
export interface InputElevenlabsFlashV2 {
|
|
5
|
-
/** Generation prompt. */
|
|
5
|
+
/** Generation prompt. At most 30000 characters. */
|
|
6
6
|
text: string;
|
|
7
|
-
/** Voice stability
|
|
7
|
+
/** Voice stability. Higher values give a steadier, more consistent delivery; lower values allow more expressive variation between generations. From 0 to 1. */
|
|
8
8
|
stability?: number | undefined;
|
|
9
|
-
/** Speech rate multiplier; 1.0 is the voice's natural pace. */
|
|
9
|
+
/** Speech rate multiplier; 1.0 is the voice's natural pace. From 0.7 to 1.2. */
|
|
10
10
|
speed?: number | undefined;
|
|
11
11
|
/** Language code; 'auto' by default. */
|
|
12
12
|
language?: string | undefined;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Model-specific inputs for `elevenlabs-multilingual-v2`.
|
|
3
3
|
*/
|
|
4
4
|
export interface InputElevenlabsMultilingualV2 {
|
|
5
|
-
/** Generation prompt. */
|
|
5
|
+
/** Generation prompt. At most 10000 characters. */
|
|
6
6
|
text: string;
|
|
7
|
-
/** Voice stability
|
|
7
|
+
/** Voice stability. Higher values give a steadier, more consistent delivery; lower values allow more expressive variation between generations. From 0 to 1. */
|
|
8
8
|
stability?: number | undefined;
|
|
9
|
-
/** Speech rate multiplier; 1.0 is the voice's natural pace. */
|
|
9
|
+
/** Speech rate multiplier; 1.0 is the voice's natural pace. From 0.7 to 1.2. */
|
|
10
10
|
speed?: number | undefined;
|
|
11
11
|
/** Language code; 'auto' by default. */
|
|
12
12
|
language?: string | undefined;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Model-specific inputs for `elevenlabs-v3`.
|
|
3
3
|
*/
|
|
4
4
|
export interface InputElevenlabsV3 {
|
|
5
|
-
/** Generation prompt. */
|
|
5
|
+
/** Generation prompt. At most 5000 characters. */
|
|
6
6
|
text: string;
|
|
7
|
-
/** Voice stability
|
|
7
|
+
/** Voice stability. Higher values give a steadier, more consistent delivery; lower values allow more expressive variation between generations. From 0 to 1. */
|
|
8
8
|
stability?: number | undefined;
|
|
9
|
-
/** Speech rate multiplier; 1.0 is the voice's natural pace. */
|
|
9
|
+
/** Speech rate multiplier; 1.0 is the voice's natural pace. From 0.7 to 1.2. */
|
|
10
10
|
speed?: number | undefined;
|
|
11
11
|
/** Language code; 'auto' by default. */
|
|
12
12
|
language?: string | undefined;
|
|
@@ -15,15 +15,15 @@ export interface InputFlux2Flex {
|
|
|
15
15
|
enhance_prompt?: boolean | undefined;
|
|
16
16
|
/** Output aspect ratio. */
|
|
17
17
|
aspect_ratio: InputFlux2Flex.AspectRatio;
|
|
18
|
-
/** Images to edit or blend. */
|
|
18
|
+
/** Images to edit or blend. 1 to 8 images, each at most 30 MB. */
|
|
19
19
|
images?: Hedra.InputFlux2FlexImagesItem[] | undefined;
|
|
20
20
|
/** Output image format. */
|
|
21
21
|
output_format?: InputFlux2Flex.OutputFormat | undefined;
|
|
22
22
|
/** Seed for reproducible output; omit for a random seed. */
|
|
23
23
|
seed?: number | undefined;
|
|
24
|
-
/** How closely the model follows the prompt. */
|
|
24
|
+
/** How closely the model follows the prompt. From 1.5 to 10. */
|
|
25
25
|
guidance?: number | undefined;
|
|
26
|
-
/** Denoising steps to run. */
|
|
26
|
+
/** Denoising steps to run. From 2 to 50. */
|
|
27
27
|
steps?: number | undefined;
|
|
28
28
|
}
|
|
29
29
|
export declare namespace InputFlux2Flex {
|
|
@@ -15,7 +15,7 @@ export interface InputFlux2Klein9B {
|
|
|
15
15
|
enhance_prompt?: boolean | undefined;
|
|
16
16
|
/** Output aspect ratio. */
|
|
17
17
|
aspect_ratio: InputFlux2Klein9B.AspectRatio;
|
|
18
|
-
/** Images to edit or blend. */
|
|
18
|
+
/** Images to edit or blend. 1 to 4 images, each at most 30 MB. */
|
|
19
19
|
images?: Hedra.InputFlux2Klein9BImagesItem[] | undefined;
|
|
20
20
|
/** Output image format. */
|
|
21
21
|
output_format?: InputFlux2Klein9B.OutputFormat | undefined;
|
|
@@ -23,9 +23,9 @@ export interface InputFlux2Klein9B {
|
|
|
23
23
|
negative_prompt?: string | undefined;
|
|
24
24
|
/** Seed for reproducible output; omit for a random seed. */
|
|
25
25
|
seed?: number | undefined;
|
|
26
|
-
/** How closely the model follows the prompt. */
|
|
26
|
+
/** How closely the model follows the prompt. From 0 to 20. */
|
|
27
27
|
guidance_scale?: number | undefined;
|
|
28
|
-
/** Denoising steps to run. */
|
|
28
|
+
/** Denoising steps to run. From 4 to 50. */
|
|
29
29
|
num_inference_steps?: number | undefined;
|
|
30
30
|
}
|
|
31
31
|
export declare namespace InputFlux2Klein9B {
|
|
@@ -15,7 +15,7 @@ export interface InputFlux2Max {
|
|
|
15
15
|
enhance_prompt?: boolean | undefined;
|
|
16
16
|
/** Output aspect ratio. */
|
|
17
17
|
aspect_ratio: InputFlux2Max.AspectRatio;
|
|
18
|
-
/** Images to edit or blend. */
|
|
18
|
+
/** Images to edit or blend. 1 to 8 images, each at most 30 MB. */
|
|
19
19
|
images?: Hedra.InputFlux2MaxImagesItem[] | undefined;
|
|
20
20
|
/** Output image format. */
|
|
21
21
|
output_format?: InputFlux2Max.OutputFormat | undefined;
|
|
@@ -15,7 +15,7 @@ export interface InputFlux2Pro {
|
|
|
15
15
|
enhance_prompt?: boolean | undefined;
|
|
16
16
|
/** Output aspect ratio. */
|
|
17
17
|
aspect_ratio: InputFlux2Pro.AspectRatio;
|
|
18
|
-
/** Images to edit or blend. */
|
|
18
|
+
/** Images to edit or blend. 1 to 8 images, each at most 30 MB. */
|
|
19
19
|
images?: Hedra.InputFlux2ProImagesItem[] | undefined;
|
|
20
20
|
/** Output image format. */
|
|
21
21
|
output_format?: InputFlux2Pro.OutputFormat | undefined;
|
|
@@ -20,9 +20,9 @@ export interface InputFlux3 {
|
|
|
20
20
|
duration_ms: number;
|
|
21
21
|
/** Whether to generate native audio for the video. */
|
|
22
22
|
generate_audio?: boolean | undefined;
|
|
23
|
-
/** Start frame (image-to-video). */
|
|
23
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
24
24
|
start_image?: Hedra.InputFlux3StartImage | undefined;
|
|
25
|
-
/** End frame (first-last-frame-to-video). */
|
|
25
|
+
/** End frame (first-last-frame-to-video). At most 10.4 MB. */
|
|
26
26
|
end_image?: Hedra.InputFlux3EndImage | undefined;
|
|
27
27
|
}
|
|
28
28
|
export declare namespace InputFlux3 {
|
|
@@ -16,9 +16,9 @@ export interface InputFluxDev {
|
|
|
16
16
|
output_format?: InputFluxDev.OutputFormat | undefined;
|
|
17
17
|
/** Seed for reproducible output; omit for a random seed. */
|
|
18
18
|
seed?: number | undefined;
|
|
19
|
-
/** How closely the model follows the prompt. */
|
|
19
|
+
/** How closely the model follows the prompt. From 1 to 20. */
|
|
20
20
|
guidance_scale?: number | undefined;
|
|
21
|
-
/** Denoising steps to run. */
|
|
21
|
+
/** Denoising steps to run. From 1 to 50. */
|
|
22
22
|
num_inference_steps?: number | undefined;
|
|
23
23
|
}
|
|
24
24
|
export declare namespace InputFluxDev {
|
|
@@ -13,7 +13,7 @@ export interface InputFluxKontextMax {
|
|
|
13
13
|
num_outputs?: number | undefined;
|
|
14
14
|
/** Rewrite the prompt before generation. An LLM expands it into a fuller description and the model receives that text instead of the submitted one; the result's `prompt` reports what ran. */
|
|
15
15
|
enhance_prompt?: boolean | undefined;
|
|
16
|
-
/** The single source image to edit. */
|
|
16
|
+
/** The single source image to edit. Exactly 1 image, at most 30 MB. */
|
|
17
17
|
images?: Hedra.InputFluxKontextMaxImagesItem[] | undefined;
|
|
18
18
|
/** Output image format. */
|
|
19
19
|
output_format?: InputFluxKontextMax.OutputFormat | undefined;
|
|
@@ -13,7 +13,7 @@ export interface InputFluxKontextPro {
|
|
|
13
13
|
num_outputs?: number | undefined;
|
|
14
14
|
/** Rewrite the prompt before generation. An LLM expands it into a fuller description and the model receives that text instead of the submitted one; the result's `prompt` reports what ran. */
|
|
15
15
|
enhance_prompt?: boolean | undefined;
|
|
16
|
-
/** The single source image to edit. */
|
|
16
|
+
/** The single source image to edit. Exactly 1 image, at most 30 MB. */
|
|
17
17
|
images?: Hedra.InputFluxKontextProImagesItem[] | undefined;
|
|
18
18
|
/** Output image format. */
|
|
19
19
|
output_format?: InputFluxKontextPro.OutputFormat | undefined;
|
|
@@ -13,13 +13,13 @@ export interface InputGeminiOmniFlash {
|
|
|
13
13
|
resolution?: InputGeminiOmniFlash.Resolution | undefined;
|
|
14
14
|
/** Duration in ms. */
|
|
15
15
|
duration_ms?: number | undefined;
|
|
16
|
-
/** Start frame (image-to-video). */
|
|
16
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
17
17
|
start_image?: Hedra.InputGeminiOmniFlashStartImage | undefined;
|
|
18
|
-
/** Source video (video-to-video). */
|
|
18
|
+
/** Source video (video-to-video). From 1s to 10s and at most 524.2 MB. */
|
|
19
19
|
source_video?: Hedra.InputGeminiOmniFlashSourceVideo | undefined;
|
|
20
|
-
/** Reference images. */
|
|
20
|
+
/** Reference images. 1 to 10 images, each at most 10.4 MB. */
|
|
21
21
|
images?: Hedra.InputGeminiOmniFlashImagesItem[] | undefined;
|
|
22
|
-
/** Reference videos. */
|
|
22
|
+
/** Reference videos. 1 to 3 videos, each at most 10s and at most 524.2 MB. */
|
|
23
23
|
videos?: Hedra.InputGeminiOmniFlashVideosItem[] | undefined;
|
|
24
24
|
}
|
|
25
25
|
export declare namespace InputGeminiOmniFlash {
|
|
@@ -7,7 +7,7 @@ import type * as Hedra from "../index.js";
|
|
|
7
7
|
* (2) requires: aspect_ratio, prompt; must omit: images
|
|
8
8
|
*/
|
|
9
9
|
export interface InputGptImage15 {
|
|
10
|
-
/** Generation prompt. */
|
|
10
|
+
/** Generation prompt. At most 32000 characters. */
|
|
11
11
|
prompt: string;
|
|
12
12
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
13
13
|
num_outputs?: number | undefined;
|
|
@@ -17,7 +17,7 @@ export interface InputGptImage15 {
|
|
|
17
17
|
aspect_ratio: InputGptImage15.AspectRatio;
|
|
18
18
|
/** Output resolution. */
|
|
19
19
|
resolution?: InputGptImage15.Resolution | undefined;
|
|
20
|
-
/** Images to edit or blend. */
|
|
20
|
+
/** Images to edit or blend. 1 to 16 images, each at most 30 MB. */
|
|
21
21
|
images?: Hedra.InputGptImage15ImagesItem[] | undefined;
|
|
22
22
|
/** Output image format. */
|
|
23
23
|
output_format?: InputGptImage15.OutputFormat | undefined;
|
|
@@ -7,7 +7,7 @@ import type * as Hedra from "../index.js";
|
|
|
7
7
|
* (2) requires: aspect_ratio, prompt, resolution; must omit: images
|
|
8
8
|
*/
|
|
9
9
|
export interface InputGptImage2 {
|
|
10
|
-
/** Generation prompt. */
|
|
10
|
+
/** Generation prompt. At most 32000 characters. */
|
|
11
11
|
prompt: string;
|
|
12
12
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
13
13
|
num_outputs?: number | undefined;
|
|
@@ -17,7 +17,7 @@ export interface InputGptImage2 {
|
|
|
17
17
|
aspect_ratio: InputGptImage2.AspectRatio;
|
|
18
18
|
/** Output resolution. */
|
|
19
19
|
resolution: InputGptImage2.Resolution;
|
|
20
|
-
/** Images to edit or blend. */
|
|
20
|
+
/** Images to edit or blend. 1 to 16 images, each at most 30 MB. */
|
|
21
21
|
images?: Hedra.InputGptImage2ImagesItem[] | undefined;
|
|
22
22
|
/** Output image format. */
|
|
23
23
|
output_format?: InputGptImage2.OutputFormat | undefined;
|
|
@@ -7,13 +7,13 @@ import type * as Hedra from "../index.js";
|
|
|
7
7
|
* (2) requires: aspect_ratio, prompt; must omit: images
|
|
8
8
|
*/
|
|
9
9
|
export interface InputGrokImagine {
|
|
10
|
-
/** Generation prompt. */
|
|
10
|
+
/** Generation prompt. At most 8000 characters. */
|
|
11
11
|
prompt: string;
|
|
12
12
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
13
13
|
num_outputs?: number | undefined;
|
|
14
14
|
/** Rewrite the prompt before generation. An LLM expands it into a fuller description and the model receives that text instead of the submitted one; the result's `prompt` reports what ran. */
|
|
15
15
|
enhance_prompt?: boolean | undefined;
|
|
16
|
-
/** Images to edit or blend. */
|
|
16
|
+
/** Images to edit or blend. 1 to 3 images, each at most 30 MB. */
|
|
17
17
|
images?: Hedra.InputGrokImagineImagesItem[] | undefined;
|
|
18
18
|
/** Output image format. */
|
|
19
19
|
output_format?: InputGrokImagine.OutputFormat | undefined;
|
|
@@ -9,7 +9,7 @@ import type * as Hedra from "../index.js";
|
|
|
9
9
|
export interface InputGrokVideo {
|
|
10
10
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
11
11
|
num_outputs?: number | undefined;
|
|
12
|
-
/** Generation prompt. */
|
|
12
|
+
/** Generation prompt. At most 4096 characters. */
|
|
13
13
|
prompt: string;
|
|
14
14
|
/** Output aspect ratio. */
|
|
15
15
|
aspect_ratio: InputGrokVideo.AspectRatio;
|
|
@@ -17,7 +17,7 @@ export interface InputGrokVideo {
|
|
|
17
17
|
resolution: InputGrokVideo.Resolution;
|
|
18
18
|
/** Duration in ms. */
|
|
19
19
|
duration_ms: number;
|
|
20
|
-
/** Start frame (image-to-video). */
|
|
20
|
+
/** Start frame (image-to-video). At most 10.4 MB. */
|
|
21
21
|
start_image?: Hedra.InputGrokVideoStartImage | undefined;
|
|
22
22
|
}
|
|
23
23
|
export declare namespace InputGrokVideo {
|
|
@@ -9,7 +9,7 @@ import type * as Hedra from "../index.js";
|
|
|
9
9
|
export interface InputHappyHorse {
|
|
10
10
|
/** Number of outputs generated per job. Only 1 is supported. */
|
|
11
11
|
num_outputs?: number | undefined;
|
|
12
|
-
/** Generation prompt. */
|
|
12
|
+
/** Generation prompt. At most 2500 characters. */
|
|
13
13
|
prompt: string;
|
|
14
14
|
/** Output aspect ratio. */
|
|
15
15
|
aspect_ratio: InputHappyHorse.AspectRatio;
|
|
@@ -17,11 +17,11 @@ export interface InputHappyHorse {
|
|
|
17
17
|
resolution: InputHappyHorse.Resolution;
|
|
18
18
|
/** Duration in ms. */
|
|
19
19
|
duration_ms: number;
|
|
20
|
-
/** Start frame (image-to-video). */
|
|
20
|
+
/** Start frame (image-to-video). At least 300px on each side and at most 10 MB. */
|
|
21
21
|
start_image?: Hedra.InputHappyHorseStartImage | undefined;
|
|
22
|
-
/** Reference images. */
|
|
22
|
+
/** Reference images. 1 to 9 images, each at least 400px on each side and at most 10 MB. */
|
|
23
23
|
images?: Hedra.InputHappyHorseImagesItem[] | undefined;
|
|
24
|
-
/** Seed for reproducible output; omit for a random seed. */
|
|
24
|
+
/** Seed for reproducible output; omit for a random seed. From 0 to 2147483647. */
|
|
25
25
|
seed?: number | undefined;
|
|
26
26
|
}
|
|
27
27
|
export declare namespace InputHappyHorse {
|