@hedra/sdk 4.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.d.ts +2 -2
- package/dist/cjs/BaseClient.js +3 -3
- package/dist/cjs/api/resources/billing/client/Client.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 +121 -72
- package/dist/cjs/api/resources/jobs/client/Client.js +320 -167
- 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/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 +2 -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/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/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 +6 -0
- package/dist/cjs/api/types/index.js +6 -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 +121 -72
- package/dist/esm/api/resources/jobs/client/Client.mjs +320 -167
- 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/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 +2 -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/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/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 +6 -0
- package/dist/esm/api/types/index.mjs +6 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +341 -72
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* input: {
|
|
6
|
+
* prompt: "prompt",
|
|
7
|
+
* duration_ms: 1
|
|
8
|
+
* }
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface SubmitBodyElevenlabsMusic {
|
|
12
|
+
input: Hedra.InputElevenlabsMusic;
|
|
13
|
+
/** URL to receive a signed completion webhook. */
|
|
14
|
+
webhook?: string | null;
|
|
15
|
+
/** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
|
|
16
|
+
idempotency_key?: string | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* input: {
|
|
6
|
+
* prompt: "prompt",
|
|
7
|
+
* aspect_ratio: "2:1",
|
|
8
|
+
* resolution: "1k"
|
|
9
|
+
* }
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface SubmitBodyGrokImagine20 {
|
|
13
|
+
input: Hedra.InputGrokImagine20;
|
|
14
|
+
/** URL to receive a signed completion webhook. */
|
|
15
|
+
webhook?: string | null;
|
|
16
|
+
/** Replays the original ack for a retried submit instead of enqueueing a duplicate job. */
|
|
17
|
+
idempotency_key?: string | null;
|
|
18
|
+
}
|
|
@@ -11,6 +11,7 @@ export type { SubmitBodyElevenlabsFlashMultilingualV2 } from "./SubmitBodyEleven
|
|
|
11
11
|
export type { SubmitBodyElevenlabsFlashV2 } from "./SubmitBodyElevenlabsFlashV2.js";
|
|
12
12
|
export type { SubmitBodyElevenlabsMultilingualStsV2 } from "./SubmitBodyElevenlabsMultilingualStsV2.js";
|
|
13
13
|
export type { SubmitBodyElevenlabsMultilingualV2 } from "./SubmitBodyElevenlabsMultilingualV2.js";
|
|
14
|
+
export type { SubmitBodyElevenlabsMusic } from "./SubmitBodyElevenlabsMusic.js";
|
|
14
15
|
export type { SubmitBodyElevenlabsSoundEffects } from "./SubmitBodyElevenlabsSoundEffects.js";
|
|
15
16
|
export type { SubmitBodyElevenlabsV3 } from "./SubmitBodyElevenlabsV3.js";
|
|
16
17
|
export type { SubmitBodyElevenlabsVoiceClone } from "./SubmitBodyElevenlabsVoiceClone.js";
|
|
@@ -28,6 +29,7 @@ export type { SubmitBodyGeminiOmniFlash } from "./SubmitBodyGeminiOmniFlash.js";
|
|
|
28
29
|
export type { SubmitBodyGptImage2 } from "./SubmitBodyGptImage2.js";
|
|
29
30
|
export type { SubmitBodyGptImage15 } from "./SubmitBodyGptImage15.js";
|
|
30
31
|
export type { SubmitBodyGrokImagine } from "./SubmitBodyGrokImagine.js";
|
|
32
|
+
export type { SubmitBodyGrokImagine20 } from "./SubmitBodyGrokImagine20.js";
|
|
31
33
|
export type { SubmitBodyGrokVideo } from "./SubmitBodyGrokVideo.js";
|
|
32
34
|
export type { SubmitBodyHappyHorse } from "./SubmitBodyHappyHorse.js";
|
|
33
35
|
export type { SubmitBodyHedraAvatar } from "./SubmitBodyHedraAvatar.js";
|
|
@@ -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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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",
|
|
@@ -87,6 +87,29 @@ export declare class ModelsClient {
|
|
|
87
87
|
*/
|
|
88
88
|
listVoices(model: string, request?: Hedra.ModelsListVoicesRequest, requestOptions?: ModelsClient.RequestOptions): core.HttpResponsePromise<Hedra.VoiceListResponse>;
|
|
89
89
|
private __listVoices;
|
|
90
|
+
/**
|
|
91
|
+
* The voices this model accepts, ranked against a description — the whole shared library, including the voices the listing does not return.
|
|
92
|
+
*
|
|
93
|
+
* @param {string} model - The model's public id (`GET /v3/models`).
|
|
94
|
+
* @param {Hedra.ModelsSearchVoicesRequest} request
|
|
95
|
+
* @param {ModelsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link Hedra.BadRequestError}
|
|
98
|
+
* @throws {@link Hedra.UnauthorizedError}
|
|
99
|
+
* @throws {@link Hedra.ForbiddenError}
|
|
100
|
+
* @throws {@link Hedra.NotFoundError}
|
|
101
|
+
* @throws {@link Hedra.TooManyRequestsError}
|
|
102
|
+
* @throws {@link Hedra.InternalServerError}
|
|
103
|
+
* @throws {@link errors.HedraError}
|
|
104
|
+
* @throws {@link errors.HedraTimeoutError}
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* await client.models.searchVoices("model", {
|
|
108
|
+
* q: "q"
|
|
109
|
+
* })
|
|
110
|
+
*/
|
|
111
|
+
searchVoices(model: string, request: Hedra.ModelsSearchVoicesRequest, requestOptions?: ModelsClient.RequestOptions): core.HttpResponsePromise<Hedra.VoiceListResponse>;
|
|
112
|
+
private __searchVoices;
|
|
90
113
|
/**
|
|
91
114
|
* A standalone one-operation OpenAPI spec for this model's submit call.
|
|
92
115
|
*
|
|
@@ -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.16.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.16.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.16.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",
|
|
@@ -295,7 +295,7 @@ class ModelsClient {
|
|
|
295
295
|
return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
|
|
296
296
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
297
297
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
298
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
298
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
299
299
|
const _response = yield core.fetcher({
|
|
300
300
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, `models/${core.url.encodePathParam(model)}/voices`),
|
|
301
301
|
method: "GET",
|
|
@@ -335,6 +335,85 @@ class ModelsClient {
|
|
|
335
335
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/models/{model}/voices");
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
|
+
/**
|
|
339
|
+
* The voices this model accepts, ranked against a description — the whole shared library, including the voices the listing does not return.
|
|
340
|
+
*
|
|
341
|
+
* @param {string} model - The model's public id (`GET /v3/models`).
|
|
342
|
+
* @param {Hedra.ModelsSearchVoicesRequest} request
|
|
343
|
+
* @param {ModelsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
344
|
+
*
|
|
345
|
+
* @throws {@link Hedra.BadRequestError}
|
|
346
|
+
* @throws {@link Hedra.UnauthorizedError}
|
|
347
|
+
* @throws {@link Hedra.ForbiddenError}
|
|
348
|
+
* @throws {@link Hedra.NotFoundError}
|
|
349
|
+
* @throws {@link Hedra.TooManyRequestsError}
|
|
350
|
+
* @throws {@link Hedra.InternalServerError}
|
|
351
|
+
* @throws {@link errors.HedraError}
|
|
352
|
+
* @throws {@link errors.HedraTimeoutError}
|
|
353
|
+
*
|
|
354
|
+
* @example
|
|
355
|
+
* await client.models.searchVoices("model", {
|
|
356
|
+
* q: "q"
|
|
357
|
+
* })
|
|
358
|
+
*/
|
|
359
|
+
searchVoices(model, request, requestOptions) {
|
|
360
|
+
return core.HttpResponsePromise.fromPromise(this.__searchVoices(model, request, requestOptions));
|
|
361
|
+
}
|
|
362
|
+
__searchVoices(model, request, requestOptions) {
|
|
363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
364
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
365
|
+
const { q, limit, gender, language } = request;
|
|
366
|
+
const _queryParams = {
|
|
367
|
+
q,
|
|
368
|
+
limit,
|
|
369
|
+
gender: gender !== undefined ? gender : undefined,
|
|
370
|
+
language,
|
|
371
|
+
};
|
|
372
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
373
|
+
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.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
374
|
+
const _response = yield core.fetcher({
|
|
375
|
+
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/search`),
|
|
376
|
+
method: "GET",
|
|
377
|
+
headers: _headers,
|
|
378
|
+
queryString: core.url
|
|
379
|
+
.queryBuilder()
|
|
380
|
+
.addMany(_queryParams)
|
|
381
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
382
|
+
.build(),
|
|
383
|
+
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,
|
|
384
|
+
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,
|
|
385
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
386
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
387
|
+
logging: this._options.logging,
|
|
388
|
+
});
|
|
389
|
+
if (_response.ok) {
|
|
390
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
391
|
+
}
|
|
392
|
+
if (_response.error.reason === "status-code") {
|
|
393
|
+
switch (_response.error.statusCode) {
|
|
394
|
+
case 400:
|
|
395
|
+
throw new Hedra.BadRequestError(_response.error.body, _response.rawResponse);
|
|
396
|
+
case 401:
|
|
397
|
+
throw new Hedra.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
398
|
+
case 403:
|
|
399
|
+
throw new Hedra.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
400
|
+
case 404:
|
|
401
|
+
throw new Hedra.NotFoundError(_response.error.body, _response.rawResponse);
|
|
402
|
+
case 429:
|
|
403
|
+
throw new Hedra.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
404
|
+
case 500:
|
|
405
|
+
throw new Hedra.InternalServerError(_response.error.body, _response.rawResponse);
|
|
406
|
+
default:
|
|
407
|
+
throw new errors.HedraError({
|
|
408
|
+
statusCode: _response.error.statusCode,
|
|
409
|
+
body: _response.error.body,
|
|
410
|
+
rawResponse: _response.rawResponse,
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/models/{model}/voices/search");
|
|
415
|
+
});
|
|
416
|
+
}
|
|
338
417
|
/**
|
|
339
418
|
* A standalone one-operation OpenAPI spec for this model's submit call.
|
|
340
419
|
*
|
|
@@ -359,7 +438,7 @@ class ModelsClient {
|
|
|
359
438
|
__getOpenapi(model_1) {
|
|
360
439
|
return __awaiter(this, arguments, void 0, function* (model, _request = {}, requestOptions) {
|
|
361
440
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
362
|
-
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
441
|
+
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.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
363
442
|
const _response = yield core.fetcher({
|
|
364
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, `models/${core.url.encodePathParam(model)}/openapi.json`),
|
|
365
444
|
method: "GET",
|
|
@@ -421,7 +500,7 @@ class ModelsClient {
|
|
|
421
500
|
return __awaiter(this, arguments, void 0, function* (model, request = {}, requestOptions) {
|
|
422
501
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
423
502
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
424
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.
|
|
503
|
+
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.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
425
504
|
const _response = yield core.fetcher({
|
|
426
505
|
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`),
|
|
427
506
|
method: "POST",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Hedra from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* q: "q"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface ModelsSearchVoicesRequest {
|
|
9
|
+
/** What the voice should sound like, in plain words — "warm british narrator", "energetic young announcer". Matched against the whole library for this model's provider, not just the voices `GET /v3/models/{model}/voices` returns. */
|
|
10
|
+
q: string;
|
|
11
|
+
/** Maximum voices to return. Applies to the whole response. */
|
|
12
|
+
limit?: number;
|
|
13
|
+
/** Only voices curated with this gender. */
|
|
14
|
+
gender?: Hedra.VoiceGender | null;
|
|
15
|
+
/** Only voices curated for this language, as an ISO 639-1 two-letter code (`en`, `es`, `fr`). */
|
|
16
|
+
language?: string | null;
|
|
17
|
+
}
|
|
@@ -4,3 +4,4 @@ export type { ModelsGetRequest } from "./ModelsGetRequest.js";
|
|
|
4
4
|
export type { ModelsListModelJobsRequest } from "./ModelsListModelJobsRequest.js";
|
|
5
5
|
export type { ModelsListRequest } from "./ModelsListRequest.js";
|
|
6
6
|
export type { ModelsListVoicesRequest } from "./ModelsListVoicesRequest.js";
|
|
7
|
+
export type { ModelsSearchVoicesRequest } from "./ModelsSearchVoicesRequest.js";
|
|
@@ -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.16.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",
|