@leonardo-ai/sdk 4.14.2 → 4.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +193 -90
- package/core.d.ts +10 -0
- package/core.d.ts.map +1 -0
- package/core.js +17 -0
- package/core.js.map +1 -0
- package/docs/sdks/dataset/README.md +169 -7
- package/docs/sdks/elements/README.md +33 -1
- package/docs/sdks/image/README.md +132 -7
- package/docs/sdks/initimages/README.md +136 -6
- package/docs/sdks/leonardo/README.md +1 -5
- package/docs/sdks/models/README.md +135 -6
- package/docs/sdks/motion/README.md +34 -4
- package/docs/sdks/pricingcalculator/README.md +34 -2
- package/docs/sdks/prompt/README.md +67 -2
- package/docs/sdks/realtimecanvas/README.md +133 -21
- package/docs/sdks/texture/README.md +67 -4
- package/docs/sdks/threedmodelassets/README.md +67 -4
- package/docs/sdks/user/README.md +33 -1
- package/docs/sdks/variation/README.md +166 -10
- package/funcs/datasetCreateDataset.d.ts +15 -0
- package/funcs/datasetCreateDataset.d.ts.map +1 -0
- package/funcs/datasetCreateDataset.js +102 -0
- package/funcs/datasetCreateDataset.js.map +1 -0
- package/funcs/datasetDeleteDatasetById.d.ts +15 -0
- package/funcs/datasetDeleteDatasetById.d.ts.map +1 -0
- package/funcs/datasetDeleteDatasetById.js +109 -0
- package/funcs/datasetDeleteDatasetById.js.map +1 -0
- package/funcs/datasetGetDatasetById.d.ts +15 -0
- package/funcs/datasetGetDatasetById.d.ts.map +1 -0
- package/funcs/datasetGetDatasetById.js +109 -0
- package/funcs/datasetGetDatasetById.js.map +1 -0
- package/funcs/datasetUploadDatasetImage.d.ts +15 -0
- package/funcs/datasetUploadDatasetImage.d.ts.map +1 -0
- package/funcs/datasetUploadDatasetImage.js +111 -0
- package/funcs/datasetUploadDatasetImage.js.map +1 -0
- package/funcs/datasetUploadDatasetImageFromGen.d.ts +15 -0
- package/funcs/datasetUploadDatasetImageFromGen.d.ts.map +1 -0
- package/funcs/datasetUploadDatasetImageFromGen.js +111 -0
- package/funcs/datasetUploadDatasetImageFromGen.js.map +1 -0
- package/funcs/elementsListElements.d.ts +15 -0
- package/funcs/elementsListElements.d.ts.map +1 -0
- package/funcs/elementsListElements.js +91 -0
- package/funcs/elementsListElements.js.map +1 -0
- package/funcs/imageCreateGeneration.d.ts +15 -0
- package/funcs/imageCreateGeneration.d.ts.map +1 -0
- package/funcs/imageCreateGeneration.js +102 -0
- package/funcs/imageCreateGeneration.js.map +1 -0
- package/funcs/imageDeleteGenerationById.d.ts +15 -0
- package/funcs/imageDeleteGenerationById.d.ts.map +1 -0
- package/funcs/imageDeleteGenerationById.js +109 -0
- package/funcs/imageDeleteGenerationById.js.map +1 -0
- package/funcs/imageGetGenerationById.d.ts +15 -0
- package/funcs/imageGetGenerationById.d.ts.map +1 -0
- package/funcs/imageGetGenerationById.js +109 -0
- package/funcs/imageGetGenerationById.js.map +1 -0
- package/funcs/imageGetGenerationsByUserId.d.ts +15 -0
- package/funcs/imageGetGenerationsByUserId.d.ts.map +1 -0
- package/funcs/imageGetGenerationsByUserId.js +116 -0
- package/funcs/imageGetGenerationsByUserId.js.map +1 -0
- package/funcs/initImagesDeleteInitImageById.d.ts +15 -0
- package/funcs/initImagesDeleteInitImageById.d.ts.map +1 -0
- package/funcs/initImagesDeleteInitImageById.js +109 -0
- package/funcs/initImagesDeleteInitImageById.js.map +1 -0
- package/funcs/initImagesGetInitImageById.d.ts +15 -0
- package/funcs/initImagesGetInitImageById.d.ts.map +1 -0
- package/funcs/initImagesGetInitImageById.js +109 -0
- package/funcs/initImagesGetInitImageById.js.map +1 -0
- package/funcs/initImagesUploadCanvasInitImage.d.ts +15 -0
- package/funcs/initImagesUploadCanvasInitImage.d.ts.map +1 -0
- package/funcs/initImagesUploadCanvasInitImage.js +102 -0
- package/funcs/initImagesUploadCanvasInitImage.js.map +1 -0
- package/funcs/initImagesUploadInitImage.d.ts +15 -0
- package/funcs/initImagesUploadInitImage.d.ts.map +1 -0
- package/funcs/initImagesUploadInitImage.js +102 -0
- package/funcs/initImagesUploadInitImage.js.map +1 -0
- package/funcs/modelsCreateModel.d.ts +15 -0
- package/funcs/modelsCreateModel.d.ts.map +1 -0
- package/funcs/modelsCreateModel.js +102 -0
- package/funcs/modelsCreateModel.js.map +1 -0
- package/funcs/modelsDeleteModelById.d.ts +15 -0
- package/funcs/modelsDeleteModelById.d.ts.map +1 -0
- package/funcs/modelsDeleteModelById.js +109 -0
- package/funcs/modelsDeleteModelById.js.map +1 -0
- package/funcs/modelsGetModelById.d.ts +15 -0
- package/funcs/modelsGetModelById.d.ts.map +1 -0
- package/funcs/modelsGetModelById.js +109 -0
- package/funcs/modelsGetModelById.js.map +1 -0
- package/funcs/modelsListPlatformModels.d.ts +15 -0
- package/funcs/modelsListPlatformModels.d.ts.map +1 -0
- package/funcs/modelsListPlatformModels.js +91 -0
- package/funcs/modelsListPlatformModels.js.map +1 -0
- package/funcs/motionCreateSVDMotionGeneration.d.ts +15 -0
- package/funcs/motionCreateSVDMotionGeneration.d.ts.map +1 -0
- package/funcs/motionCreateSVDMotionGeneration.js +105 -0
- package/funcs/motionCreateSVDMotionGeneration.js.map +1 -0
- package/funcs/pricingCalculatorPricingCalculator.d.ts +15 -0
- package/funcs/pricingCalculatorPricingCalculator.d.ts.map +1 -0
- package/funcs/pricingCalculatorPricingCalculator.js +104 -0
- package/funcs/pricingCalculatorPricingCalculator.js.map +1 -0
- package/funcs/promptPromptImprove.d.ts +15 -0
- package/funcs/promptPromptImprove.d.ts.map +1 -0
- package/funcs/promptPromptImprove.js +102 -0
- package/funcs/promptPromptImprove.js.map +1 -0
- package/funcs/promptPromptRandom.d.ts +15 -0
- package/funcs/promptPromptRandom.d.ts.map +1 -0
- package/funcs/promptPromptRandom.js +91 -0
- package/funcs/promptPromptRandom.js.map +1 -0
- package/funcs/realtimeCanvasCreateLCMGeneration.d.ts +15 -0
- package/funcs/realtimeCanvasCreateLCMGeneration.d.ts.map +1 -0
- package/funcs/realtimeCanvasCreateLCMGeneration.js +104 -0
- package/funcs/realtimeCanvasCreateLCMGeneration.js.map +1 -0
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.d.ts +15 -0
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.d.ts.map +1 -0
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.js +105 -0
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.js.map +1 -0
- package/funcs/realtimeCanvasPerformInpaintingLCM.d.ts +15 -0
- package/funcs/realtimeCanvasPerformInpaintingLCM.d.ts.map +1 -0
- package/funcs/realtimeCanvasPerformInpaintingLCM.js +105 -0
- package/funcs/realtimeCanvasPerformInpaintingLCM.js.map +1 -0
- package/funcs/realtimeCanvasPerformInstantRefine.d.ts +15 -0
- package/funcs/realtimeCanvasPerformInstantRefine.d.ts.map +1 -0
- package/funcs/realtimeCanvasPerformInstantRefine.js +105 -0
- package/funcs/realtimeCanvasPerformInstantRefine.js.map +1 -0
- package/funcs/textureCreateTextureGeneration.d.ts +15 -0
- package/funcs/textureCreateTextureGeneration.d.ts.map +1 -0
- package/funcs/textureCreateTextureGeneration.js +105 -0
- package/funcs/textureCreateTextureGeneration.js.map +1 -0
- package/funcs/textureDeleteTextureGenerationById.d.ts +15 -0
- package/funcs/textureDeleteTextureGenerationById.d.ts.map +1 -0
- package/funcs/textureDeleteTextureGenerationById.js +111 -0
- package/funcs/textureDeleteTextureGenerationById.js.map +1 -0
- package/funcs/threeDModelAssetsDelete3DModelById.d.ts +15 -0
- package/funcs/threeDModelAssetsDelete3DModelById.d.ts.map +1 -0
- package/funcs/threeDModelAssetsDelete3DModelById.js +111 -0
- package/funcs/threeDModelAssetsDelete3DModelById.js.map +1 -0
- package/funcs/threeDModelAssetsUploadModelAsset.d.ts +15 -0
- package/funcs/threeDModelAssetsUploadModelAsset.d.ts.map +1 -0
- package/funcs/threeDModelAssetsUploadModelAsset.js +104 -0
- package/funcs/threeDModelAssetsUploadModelAsset.js.map +1 -0
- package/funcs/userGetUserSelf.d.ts +15 -0
- package/funcs/userGetUserSelf.d.ts.map +1 -0
- package/funcs/userGetUserSelf.js +91 -0
- package/funcs/userGetUserSelf.js.map +1 -0
- package/funcs/variationCreateUniversalUpscalerJob.d.ts +15 -0
- package/funcs/variationCreateUniversalUpscalerJob.d.ts.map +1 -0
- package/funcs/variationCreateUniversalUpscalerJob.js +102 -0
- package/funcs/variationCreateUniversalUpscalerJob.js.map +1 -0
- package/funcs/variationCreateVariationNoBG.d.ts +15 -0
- package/funcs/variationCreateVariationNoBG.d.ts.map +1 -0
- package/funcs/variationCreateVariationNoBG.js +102 -0
- package/funcs/variationCreateVariationNoBG.js.map +1 -0
- package/funcs/variationCreateVariationUnzoom.d.ts +15 -0
- package/funcs/variationCreateVariationUnzoom.d.ts.map +1 -0
- package/funcs/variationCreateVariationUnzoom.js +105 -0
- package/funcs/variationCreateVariationUnzoom.js.map +1 -0
- package/funcs/variationCreateVariationUpscale.d.ts +15 -0
- package/funcs/variationCreateVariationUpscale.d.ts.map +1 -0
- package/funcs/variationCreateVariationUpscale.js +105 -0
- package/funcs/variationCreateVariationUpscale.js.map +1 -0
- package/funcs/variationGetVariationById.d.ts +15 -0
- package/funcs/variationGetVariationById.d.ts.map +1 -0
- package/funcs/variationGetVariationById.js +109 -0
- package/funcs/variationGetVariationById.js.map +1 -0
- package/hooks/hooks.d.ts +1 -1
- package/hooks/hooks.d.ts.map +1 -1
- package/hooks/hooks.js.map +1 -1
- package/hooks/index.d.ts +1 -1
- package/hooks/index.js +1 -1
- package/hooks/types.d.ts.map +1 -1
- package/index.d.ts +2 -1
- package/index.d.ts.map +1 -1
- package/index.js +15 -1
- package/index.js.map +1 -1
- package/lib/config.d.ts +5 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/dlv.d.ts +14 -0
- package/lib/dlv.d.ts.map +1 -0
- package/lib/dlv.js +50 -0
- package/lib/dlv.js.map +1 -0
- package/lib/files.d.ts +8 -0
- package/lib/files.d.ts.map +1 -0
- package/lib/files.js +37 -0
- package/lib/files.js.map +1 -0
- package/lib/http.d.ts +11 -52
- package/lib/http.d.ts.map +1 -1
- package/lib/http.js +49 -173
- package/lib/http.js.map +1 -1
- package/lib/logger.d.ts +6 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +6 -0
- package/lib/logger.js.map +1 -0
- package/lib/matchers.d.ts +64 -0
- package/lib/matchers.d.ts.map +1 -0
- package/lib/matchers.js +202 -0
- package/lib/matchers.js.map +1 -0
- package/lib/retries.d.ts.map +1 -1
- package/lib/retries.js +2 -28
- package/lib/retries.js.map +1 -1
- package/lib/schemas.d.ts +8 -0
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +16 -1
- package/lib/schemas.js.map +1 -1
- package/lib/sdks.d.ts +15 -17
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +160 -37
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +7 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +15 -2
- package/lib/security.js.map +1 -1
- package/package.json +2 -2
- package/sdk/dataset.d.ts +0 -3
- package/sdk/dataset.d.ts.map +1 -1
- package/sdk/dataset.js +11 -332
- package/sdk/dataset.js.map +1 -1
- package/sdk/elements.d.ts +0 -3
- package/sdk/elements.d.ts.map +1 -1
- package/sdk/elements.js +3 -93
- package/sdk/elements.js.map +1 -1
- package/sdk/image.d.ts +0 -3
- package/sdk/image.d.ts.map +1 -1
- package/sdk/image.js +9 -273
- package/sdk/image.js.map +1 -1
- package/sdk/initimages.d.ts +0 -3
- package/sdk/initimages.d.ts.map +1 -1
- package/sdk/initimages.js +9 -261
- package/sdk/initimages.js.map +1 -1
- package/sdk/models/errors/httpclienterrors.d.ts +44 -0
- package/sdk/models/errors/httpclienterrors.d.ts.map +1 -0
- package/sdk/models/errors/httpclienterrors.js +78 -0
- package/sdk/models/errors/httpclienterrors.js.map +1 -0
- package/sdk/models/errors/index.d.ts +1 -0
- package/sdk/models/errors/index.d.ts.map +1 -1
- package/sdk/models/errors/index.js +1 -0
- package/sdk/models/errors/index.js.map +1 -1
- package/sdk/models/errors/sdkerror.d.ts.map +1 -1
- package/sdk/models/errors/sdkerror.js.map +1 -1
- package/sdk/models/errors/sdkvalidationerror.d.ts +4 -1
- package/sdk/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/sdk/models/errors/sdkvalidationerror.js +3 -5
- package/sdk/models/errors/sdkvalidationerror.js.map +1 -1
- package/sdk/models/operations/createdataset.d.ts.map +1 -1
- package/sdk/models/operations/createdataset.js +17 -23
- package/sdk/models/operations/createdataset.js.map +1 -1
- package/sdk/models/operations/creategeneration.d.ts +6 -1
- package/sdk/models/operations/creategeneration.d.ts.map +1 -1
- package/sdk/models/operations/creategeneration.js +34 -34
- package/sdk/models/operations/creategeneration.js.map +1 -1
- package/sdk/models/operations/createlcmgeneration.d.ts +1 -1
- package/sdk/models/operations/createlcmgeneration.d.ts.map +1 -1
- package/sdk/models/operations/createlcmgeneration.js +16 -16
- package/sdk/models/operations/createlcmgeneration.js.map +1 -1
- package/sdk/models/operations/createmodel.d.ts +1 -1
- package/sdk/models/operations/createmodel.d.ts.map +1 -1
- package/sdk/models/operations/createmodel.js +18 -24
- package/sdk/models/operations/createmodel.js.map +1 -1
- package/sdk/models/operations/createsvdmotiongeneration.d.ts.map +1 -1
- package/sdk/models/operations/createsvdmotiongeneration.js +12 -14
- package/sdk/models/operations/createsvdmotiongeneration.js.map +1 -1
- package/sdk/models/operations/createtexturegeneration.d.ts.map +1 -1
- package/sdk/models/operations/createtexturegeneration.js +22 -32
- package/sdk/models/operations/createtexturegeneration.js.map +1 -1
- package/sdk/models/operations/createuniversalupscalerjob.d.ts +23 -8
- package/sdk/models/operations/createuniversalupscalerjob.d.ts.map +1 -1
- package/sdk/models/operations/createuniversalupscalerjob.js +22 -16
- package/sdk/models/operations/createuniversalupscalerjob.js.map +1 -1
- package/sdk/models/operations/createvariationnobg.d.ts.map +1 -1
- package/sdk/models/operations/createvariationnobg.js +12 -14
- package/sdk/models/operations/createvariationnobg.js.map +1 -1
- package/sdk/models/operations/createvariationunzoom.d.ts.map +1 -1
- package/sdk/models/operations/createvariationunzoom.js +16 -16
- package/sdk/models/operations/createvariationunzoom.js.map +1 -1
- package/sdk/models/operations/createvariationupscale.d.ts.map +1 -1
- package/sdk/models/operations/createvariationupscale.js +14 -20
- package/sdk/models/operations/createvariationupscale.js.map +1 -1
- package/sdk/models/operations/delete3dmodelbyid.d.ts.map +1 -1
- package/sdk/models/operations/delete3dmodelbyid.js +26 -34
- package/sdk/models/operations/delete3dmodelbyid.js.map +1 -1
- package/sdk/models/operations/deletedatasetbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletedatasetbyid.js +15 -27
- package/sdk/models/operations/deletedatasetbyid.js.map +1 -1
- package/sdk/models/operations/deletegenerationbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletegenerationbyid.js +21 -25
- package/sdk/models/operations/deletegenerationbyid.js.map +1 -1
- package/sdk/models/operations/deleteinitimagebyid.d.ts.map +1 -1
- package/sdk/models/operations/deleteinitimagebyid.js +21 -25
- package/sdk/models/operations/deleteinitimagebyid.js.map +1 -1
- package/sdk/models/operations/deletemodelbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletemodelbyid.js +15 -22
- package/sdk/models/operations/deletemodelbyid.js.map +1 -1
- package/sdk/models/operations/deletetexturegenerationbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletetexturegenerationbyid.js +24 -38
- package/sdk/models/operations/deletetexturegenerationbyid.js.map +1 -1
- package/sdk/models/operations/getdatasetbyid.d.ts.map +1 -1
- package/sdk/models/operations/getdatasetbyid.js +22 -32
- package/sdk/models/operations/getdatasetbyid.js.map +1 -1
- package/sdk/models/operations/getgenerationbyid.d.ts +6 -1
- package/sdk/models/operations/getgenerationbyid.d.ts.map +1 -1
- package/sdk/models/operations/getgenerationbyid.js +43 -59
- package/sdk/models/operations/getgenerationbyid.js.map +1 -1
- package/sdk/models/operations/getgenerationsbyuserid.d.ts +6 -1
- package/sdk/models/operations/getgenerationsbyuserid.d.ts.map +1 -1
- package/sdk/models/operations/getgenerationsbyuserid.js +32 -52
- package/sdk/models/operations/getgenerationsbyuserid.js.map +1 -1
- package/sdk/models/operations/getinitimagebyid.d.ts.map +1 -1
- package/sdk/models/operations/getinitimagebyid.js +15 -27
- package/sdk/models/operations/getinitimagebyid.js.map +1 -1
- package/sdk/models/operations/getmodelbyid.d.ts +1 -1
- package/sdk/models/operations/getmodelbyid.d.ts.map +1 -1
- package/sdk/models/operations/getmodelbyid.js +15 -27
- package/sdk/models/operations/getmodelbyid.js.map +1 -1
- package/sdk/models/operations/getuserself.d.ts.map +1 -1
- package/sdk/models/operations/getuserself.js +15 -22
- package/sdk/models/operations/getuserself.js.map +1 -1
- package/sdk/models/operations/getvariationbyid.d.ts +1 -1
- package/sdk/models/operations/getvariationbyid.d.ts.map +1 -1
- package/sdk/models/operations/getvariationbyid.js +15 -27
- package/sdk/models/operations/getvariationbyid.js.map +1 -1
- package/sdk/models/operations/listelements.d.ts +1 -1
- package/sdk/models/operations/listelements.d.ts.map +1 -1
- package/sdk/models/operations/listelements.js +10 -13
- package/sdk/models/operations/listelements.js.map +1 -1
- package/sdk/models/operations/listplatformmodels.d.ts.map +1 -1
- package/sdk/models/operations/listplatformmodels.js +24 -43
- package/sdk/models/operations/listplatformmodels.js.map +1 -1
- package/sdk/models/operations/performalchemyupscalelcm.d.ts +1 -1
- package/sdk/models/operations/performalchemyupscalelcm.d.ts.map +1 -1
- package/sdk/models/operations/performalchemyupscalelcm.js +14 -20
- package/sdk/models/operations/performalchemyupscalelcm.js.map +1 -1
- package/sdk/models/operations/performinpaintinglcm.d.ts +1 -1
- package/sdk/models/operations/performinpaintinglcm.d.ts.map +1 -1
- package/sdk/models/operations/performinpaintinglcm.js +14 -20
- package/sdk/models/operations/performinpaintinglcm.js.map +1 -1
- package/sdk/models/operations/performinstantrefine.d.ts +1 -1
- package/sdk/models/operations/performinstantrefine.d.ts.map +1 -1
- package/sdk/models/operations/performinstantrefine.js +14 -20
- package/sdk/models/operations/performinstantrefine.js.map +1 -1
- package/sdk/models/operations/pricingcalculator.d.ts +55 -1
- package/sdk/models/operations/pricingcalculator.d.ts.map +1 -1
- package/sdk/models/operations/pricingcalculator.js +67 -76
- package/sdk/models/operations/pricingcalculator.js.map +1 -1
- package/sdk/models/operations/promptimprove.d.ts.map +1 -1
- package/sdk/models/operations/promptimprove.js +12 -14
- package/sdk/models/operations/promptimprove.js.map +1 -1
- package/sdk/models/operations/promptrandom.d.ts.map +1 -1
- package/sdk/models/operations/promptrandom.js +8 -12
- package/sdk/models/operations/promptrandom.js.map +1 -1
- package/sdk/models/operations/uploadcanvasinitimage.d.ts.map +1 -1
- package/sdk/models/operations/uploadcanvasinitimage.js +14 -20
- package/sdk/models/operations/uploadcanvasinitimage.js.map +1 -1
- package/sdk/models/operations/uploaddatasetimage.d.ts.map +1 -1
- package/sdk/models/operations/uploaddatasetimage.js +15 -22
- package/sdk/models/operations/uploaddatasetimage.js.map +1 -1
- package/sdk/models/operations/uploaddatasetimagefromgen.d.ts.map +1 -1
- package/sdk/models/operations/uploaddatasetimagefromgen.js +19 -29
- package/sdk/models/operations/uploaddatasetimagefromgen.js.map +1 -1
- package/sdk/models/operations/uploadinitimage.d.ts.map +1 -1
- package/sdk/models/operations/uploadinitimage.js +10 -13
- package/sdk/models/operations/uploadinitimage.js.map +1 -1
- package/sdk/models/operations/uploadmodelasset.d.ts.map +1 -1
- package/sdk/models/operations/uploadmodelasset.js +8 -12
- package/sdk/models/operations/uploadmodelasset.js.map +1 -1
- package/sdk/models/shared/canvasrequesttype.d.ts.map +1 -1
- package/sdk/models/shared/canvasrequesttype.js.map +1 -1
- package/sdk/models/shared/controlnetinput.d.ts.map +1 -1
- package/sdk/models/shared/controlnetinput.js.map +1 -1
- package/sdk/models/shared/controlnettype.d.ts.map +1 -1
- package/sdk/models/shared/controlnettype.js.map +1 -1
- package/sdk/models/shared/custommodeltype.d.ts.map +1 -1
- package/sdk/models/shared/custommodeltype.js.map +1 -1
- package/sdk/models/shared/elementinput.d.ts.map +1 -1
- package/sdk/models/shared/elementinput.js.map +1 -1
- package/sdk/models/shared/index.d.ts +1 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +1 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/jobstatus.d.ts.map +1 -1
- package/sdk/models/shared/jobstatus.js +2 -1
- package/sdk/models/shared/jobstatus.js.map +1 -1
- package/sdk/models/shared/lcmgenerationstyle.d.ts.map +1 -1
- package/sdk/models/shared/lcmgenerationstyle.js.map +1 -1
- package/sdk/models/shared/pricingcalculatorservices.d.ts +2 -1
- package/sdk/models/shared/pricingcalculatorservices.d.ts.map +1 -1
- package/sdk/models/shared/pricingcalculatorservices.js +1 -0
- package/sdk/models/shared/pricingcalculatorservices.js.map +1 -1
- package/sdk/models/shared/sdgenerationschedulers.d.ts.map +1 -1
- package/sdk/models/shared/sdgenerationschedulers.js.map +1 -1
- package/sdk/models/shared/sdgenerationstyle.d.ts.map +1 -1
- package/sdk/models/shared/sdgenerationstyle.js.map +1 -1
- package/sdk/models/shared/sdversions.d.ts.map +1 -1
- package/sdk/models/shared/sdversions.js +2 -1
- package/sdk/models/shared/sdversions.js.map +1 -1
- package/sdk/models/shared/security.d.ts.map +1 -1
- package/sdk/models/shared/security.js.map +1 -1
- package/sdk/models/shared/strength.d.ts.map +1 -1
- package/sdk/models/shared/strength.js +2 -1
- package/sdk/models/shared/strength.js.map +1 -1
- package/sdk/models/shared/universalupscalerstyle.d.ts +1 -1
- package/sdk/models/shared/universalupscalerstyle.d.ts.map +1 -1
- package/sdk/models/shared/universalupscalerstyle.js +1 -1
- package/sdk/models/shared/universalupscalerstyle.js.map +1 -1
- package/sdk/models/shared/universalupscalerultrastyle.d.ts +23 -0
- package/sdk/models/shared/universalupscalerultrastyle.d.ts.map +1 -0
- package/sdk/models/shared/universalupscalerultrastyle.js +54 -0
- package/sdk/models/shared/universalupscalerultrastyle.js.map +1 -0
- package/sdk/models/shared/variationtype.d.ts.map +1 -1
- package/sdk/models/shared/variationtype.js.map +1 -1
- package/sdk/models.d.ts +0 -3
- package/sdk/models.d.ts.map +1 -1
- package/sdk/models.js +9 -256
- package/sdk/models.js.map +1 -1
- package/sdk/motion.d.ts +0 -3
- package/sdk/motion.d.ts.map +1 -1
- package/sdk/motion.js +3 -102
- package/sdk/motion.js.map +1 -1
- package/sdk/pricingcalculator.d.ts +0 -3
- package/sdk/pricingcalculator.d.ts.map +1 -1
- package/sdk/pricingcalculator.js +3 -100
- package/sdk/pricingcalculator.js.map +1 -1
- package/sdk/prompt.d.ts +0 -3
- package/sdk/prompt.d.ts.map +1 -1
- package/sdk/prompt.js +5 -146
- package/sdk/prompt.js.map +1 -1
- package/sdk/realtimecanvas.d.ts +0 -3
- package/sdk/realtimecanvas.d.ts.map +1 -1
- package/sdk/realtimecanvas.js +9 -253
- package/sdk/realtimecanvas.js.map +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -23
- package/sdk/sdk.js.map +1 -1
- package/sdk/texture.d.ts +0 -3
- package/sdk/texture.d.ts.map +1 -1
- package/sdk/texture.js +5 -159
- package/sdk/texture.js.map +1 -1
- package/sdk/threedmodelassets.d.ts +0 -3
- package/sdk/threedmodelassets.d.ts.map +1 -1
- package/sdk/threedmodelassets.js +5 -157
- package/sdk/threedmodelassets.js.map +1 -1
- package/sdk/types/constdatetime.d.ts +3 -0
- package/sdk/types/constdatetime.d.ts.map +1 -0
- package/sdk/types/constdatetime.js +37 -0
- package/sdk/types/constdatetime.js.map +1 -0
- package/sdk/types/fp.d.ts +31 -0
- package/sdk/types/fp.d.ts.map +1 -0
- package/sdk/types/fp.js +38 -0
- package/sdk/types/fp.js.map +1 -0
- package/sdk/types/index.d.ts +5 -4
- package/sdk/types/index.d.ts.map +1 -1
- package/sdk/types/index.js +5 -5
- package/sdk/types/index.js.map +1 -1
- package/sdk/types/operations.d.ts +22 -8
- package/sdk/types/operations.d.ts.map +1 -1
- package/sdk/types/operations.js +64 -2
- package/sdk/types/operations.js.map +1 -1
- package/sdk/types/streams.d.ts +2 -0
- package/sdk/types/streams.d.ts.map +1 -0
- package/sdk/types/streams.js +19 -0
- package/sdk/types/streams.js.map +1 -0
- package/sdk/user.d.ts +0 -3
- package/sdk/user.d.ts.map +1 -1
- package/sdk/user.js +3 -93
- package/sdk/user.js.map +1 -1
- package/sdk/variation.d.ts +0 -3
- package/sdk/variation.d.ts.map +1 -1
- package/sdk/variation.js +11 -310
- package/sdk/variation.js.map +1 -1
- package/src/core.ts +13 -0
- package/src/funcs/datasetCreateDataset.ts +128 -0
- package/src/funcs/datasetDeleteDatasetById.ts +136 -0
- package/src/funcs/datasetGetDatasetById.ts +135 -0
- package/src/funcs/datasetUploadDatasetImage.ts +142 -0
- package/src/funcs/datasetUploadDatasetImageFromGen.ts +142 -0
- package/src/funcs/elementsListElements.ts +109 -0
- package/src/funcs/imageCreateGeneration.ts +128 -0
- package/src/funcs/imageDeleteGenerationById.ts +136 -0
- package/src/funcs/imageGetGenerationById.ts +136 -0
- package/src/funcs/imageGetGenerationsByUserId.ts +149 -0
- package/src/funcs/initImagesDeleteInitImageById.ts +136 -0
- package/src/funcs/initImagesGetInitImageById.ts +135 -0
- package/src/funcs/initImagesUploadCanvasInitImage.ts +128 -0
- package/src/funcs/initImagesUploadInitImage.ts +128 -0
- package/src/funcs/modelsCreateModel.ts +127 -0
- package/src/funcs/modelsDeleteModelById.ts +135 -0
- package/src/funcs/modelsGetModelById.ts +135 -0
- package/src/funcs/modelsListPlatformModels.ts +109 -0
- package/src/funcs/motionCreateSVDMotionGeneration.ts +131 -0
- package/src/funcs/pricingCalculatorPricingCalculator.ts +132 -0
- package/src/funcs/promptPromptImprove.ts +128 -0
- package/src/funcs/promptPromptRandom.ts +109 -0
- package/src/funcs/realtimeCanvasCreateLCMGeneration.ts +132 -0
- package/src/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.ts +131 -0
- package/src/funcs/realtimeCanvasPerformInpaintingLCM.ts +131 -0
- package/src/funcs/realtimeCanvasPerformInstantRefine.ts +131 -0
- package/src/funcs/textureCreateTextureGeneration.ts +131 -0
- package/src/funcs/textureDeleteTextureGenerationById.ts +144 -0
- package/src/funcs/threeDModelAssetsDelete3DModelById.ts +142 -0
- package/src/funcs/threeDModelAssetsUploadModelAsset.ts +132 -0
- package/src/funcs/userGetUserSelf.ts +109 -0
- package/src/funcs/variationCreateUniversalUpscalerJob.ts +130 -0
- package/src/funcs/variationCreateVariationNoBG.ts +128 -0
- package/src/funcs/variationCreateVariationUnzoom.ts +131 -0
- package/src/funcs/variationCreateVariationUpscale.ts +131 -0
- package/src/funcs/variationGetVariationById.ts +135 -0
- package/src/hooks/hooks.ts +87 -77
- package/src/hooks/index.ts +1 -1
- package/src/hooks/types.ts +58 -49
- package/src/index.ts +2 -1
- package/src/lib/config.ts +37 -35
- package/src/lib/dlv.ts +53 -0
- package/src/lib/files.ts +40 -0
- package/src/lib/http.ts +255 -438
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +319 -0
- package/src/lib/retries.ts +2 -41
- package/src/lib/schemas.ts +64 -34
- package/src/lib/sdks.ts +342 -168
- package/src/lib/security.ts +166 -131
- package/src/sdk/dataset.ts +94 -450
- package/src/sdk/elements.ts +16 -92
- package/src/sdk/image.ts +76 -368
- package/src/sdk/initimages.ts +72 -350
- package/src/sdk/models/errors/httpclienterrors.ts +62 -0
- package/src/sdk/models/errors/index.ts +1 -0
- package/src/sdk/models/errors/sdkerror.ts +17 -15
- package/src/sdk/models/errors/sdkvalidationerror.ts +8 -6
- package/src/sdk/models/operations/createdataset.ts +139 -138
- package/src/sdk/models/operations/creategeneration.ts +472 -457
- package/src/sdk/models/operations/createlcmgeneration.ts +182 -182
- package/src/sdk/models/operations/createmodel.ts +196 -195
- package/src/sdk/models/operations/createsvdmotiongeneration.ts +156 -149
- package/src/sdk/models/operations/createtexturegeneration.ts +169 -172
- package/src/sdk/models/operations/createuniversalupscalerjob.ts +199 -165
- package/src/sdk/models/operations/createvariationnobg.ts +120 -122
- package/src/sdk/models/operations/createvariationunzoom.ts +126 -122
- package/src/sdk/models/operations/createvariationupscale.ts +127 -122
- package/src/sdk/models/operations/delete3dmodelbyid.ts +166 -170
- package/src/sdk/models/operations/deletedatasetbyid.ts +129 -137
- package/src/sdk/models/operations/deletegenerationbyid.ts +131 -131
- package/src/sdk/models/operations/deleteinitimagebyid.ts +134 -131
- package/src/sdk/models/operations/deletemodelbyid.ts +130 -131
- package/src/sdk/models/operations/deletetexturegenerationbyid.ts +185 -179
- package/src/sdk/models/operations/getdatasetbyid.ts +186 -193
- package/src/sdk/models/operations/getgenerationbyid.ts +504 -492
- package/src/sdk/models/operations/getgenerationsbyuserid.ts +509 -479
- package/src/sdk/models/operations/getinitimagebyid.ts +137 -145
- package/src/sdk/models/operations/getmodelbyid.ts +186 -190
- package/src/sdk/models/operations/getuserself.ts +194 -193
- package/src/sdk/models/operations/getvariationbyid.ts +152 -156
- package/src/sdk/models/operations/listelements.ts +143 -142
- package/src/sdk/models/operations/listplatformmodels.ts +171 -178
- package/src/sdk/models/operations/performalchemyupscalelcm.ts +212 -200
- package/src/sdk/models/operations/performinpaintinglcm.ts +196 -193
- package/src/sdk/models/operations/performinstantrefine.ts +189 -186
- package/src/sdk/models/operations/pricingcalculator.ts +676 -555
- package/src/sdk/models/operations/promptimprove.ts +122 -124
- package/src/sdk/models/operations/promptrandom.ts +106 -105
- package/src/sdk/models/operations/uploadcanvasinitimage.ts +155 -153
- package/src/sdk/models/operations/uploaddatasetimage.ts +165 -168
- package/src/sdk/models/operations/uploaddatasetimagefromgen.ts +164 -160
- package/src/sdk/models/operations/uploadinitimage.ts +125 -126
- package/src/sdk/models/operations/uploadmodelasset.ts +127 -127
- package/src/sdk/models/shared/canvasrequesttype.ts +14 -12
- package/src/sdk/models/shared/controlnetinput.ts +73 -68
- package/src/sdk/models/shared/controlnettype.ts +13 -11
- package/src/sdk/models/shared/custommodeltype.ts +24 -22
- package/src/sdk/models/shared/elementinput.ts +28 -24
- package/src/sdk/models/shared/index.ts +1 -0
- package/src/sdk/models/shared/jobstatus.ts +11 -9
- package/src/sdk/models/shared/lcmgenerationstyle.ts +24 -22
- package/src/sdk/models/shared/pricingcalculatorservices.ts +14 -13
- package/src/sdk/models/shared/sdgenerationschedulers.ts +17 -15
- package/src/sdk/models/shared/sdgenerationstyle.ts +41 -39
- package/src/sdk/models/shared/sdversions.ts +14 -14
- package/src/sdk/models/shared/security.ts +21 -14
- package/src/sdk/models/shared/strength.ts +12 -10
- package/src/sdk/models/shared/universalupscalerstyle.ts +15 -13
- package/src/sdk/models/shared/universalupscalerultrastyle.ts +34 -0
- package/src/sdk/models/shared/variationtype.ts +15 -13
- package/src/sdk/models.ts +70 -338
- package/src/sdk/motion.ts +18 -114
- package/src/sdk/pricingcalculator.ts +18 -110
- package/src/sdk/prompt.ts +34 -172
- package/src/sdk/realtimecanvas.ts +72 -352
- package/src/sdk/sdk.ts +64 -93
- package/src/sdk/texture.ts +38 -199
- package/src/sdk/threedmodelassets.ts +38 -195
- package/src/sdk/types/constdatetime.ts +15 -0
- package/src/sdk/types/fp.ts +50 -0
- package/src/sdk/types/index.ts +5 -4
- package/src/sdk/types/operations.ts +81 -7
- package/src/sdk/types/streams.ts +21 -0
- package/src/sdk/user.ts +16 -92
- package/src/sdk/variation.ts +90 -433
|
@@ -2,265 +2,309 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import * as z from "zod";
|
|
5
6
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
6
7
|
import * as shared from "../shared/index.js";
|
|
7
|
-
import * as z from "zod";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Parameters for FANTASY_AVATAR_GENERATION service
|
|
11
11
|
*/
|
|
12
12
|
export type PricingCalculatorObject = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
/**
|
|
14
|
+
* The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features
|
|
15
|
+
*/
|
|
16
|
+
imageHeight?: number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features
|
|
19
|
+
*/
|
|
20
|
+
imageWidth?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The number of images to generate. Must be between 1 and 8. If either width or height is over 768, must be between 1 and 4.
|
|
23
|
+
*/
|
|
24
|
+
numImages?: number | undefined;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Parameters for IMAGE_GENERATION service
|
|
29
29
|
*/
|
|
30
30
|
export type PricingCalculatorPricingCalculatorObject = {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Enable to use Alchemy.
|
|
33
|
+
*/
|
|
34
|
+
alchemyMode?: boolean | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The total cost of controlnets input.
|
|
37
|
+
*/
|
|
38
|
+
controlnetsCost?: number | null | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Enable to use high resolution.
|
|
41
|
+
*/
|
|
42
|
+
highResolution?: boolean | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features
|
|
45
|
+
*/
|
|
46
|
+
imageHeight?: number | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features
|
|
49
|
+
*/
|
|
50
|
+
imageWidth?: number | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* The Step Count to use for the generation. Must be between 10 and 60.
|
|
53
|
+
*/
|
|
54
|
+
inferenceSteps?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Enable to use custom model.
|
|
57
|
+
*/
|
|
58
|
+
isModelCustom?: boolean | null | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Enable to use Phoenix model.
|
|
61
|
+
*/
|
|
62
|
+
isPhoenix?: boolean | null | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Enable to use SDXL model.
|
|
65
|
+
*/
|
|
66
|
+
isSDXL?: boolean | null | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Enable to use SDXL Lightning model.
|
|
69
|
+
*/
|
|
70
|
+
isSDXLLightning?: boolean | null | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* The number of elements used for the generation.
|
|
73
|
+
*/
|
|
74
|
+
loraCount?: number | null | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* The number of images to generate. Must be between 1 and 8. If either width or height is over 768, must be between 1 and 4.
|
|
77
|
+
*/
|
|
78
|
+
numImages?: number | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Enable to use Prompt Magic.
|
|
81
|
+
*/
|
|
82
|
+
promptMagic?: boolean | null | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Strength of prompt magic. Must be a float between 0.1 and 1.0
|
|
85
|
+
*/
|
|
86
|
+
promptMagicStrength?: number | null | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Prompt magic version v2 or v3, for use when promptMagic: true
|
|
89
|
+
*/
|
|
90
|
+
promptMagicVersion?: string | null | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Enable to use Ultra mode.
|
|
93
|
+
*/
|
|
94
|
+
ultra?: boolean | null | undefined;
|
|
87
95
|
};
|
|
88
96
|
|
|
89
97
|
/**
|
|
90
98
|
* Parameters for LCM_GENERATION service
|
|
91
99
|
*/
|
|
92
100
|
export type PricingCalculatorPricingCalculatorRequestObject = {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
/**
|
|
102
|
+
* The output height of the image. Must be 512, 640 or 1024.
|
|
103
|
+
*/
|
|
104
|
+
height?: number | null | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Enable for instant upscale
|
|
107
|
+
*/
|
|
108
|
+
instantRefine?: boolean | null | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Enable for normal alchemy upscale
|
|
111
|
+
*/
|
|
112
|
+
refine?: boolean | null | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* The output width of the image. Must be 512, 640 or 1024.
|
|
115
|
+
*/
|
|
116
|
+
width?: number | null | undefined;
|
|
109
117
|
};
|
|
110
118
|
|
|
111
119
|
/**
|
|
112
120
|
* Parameters for MODEL_TRAINING service
|
|
113
121
|
*/
|
|
114
122
|
export type PricingCalculatorPricingCalculatorRequestRequestBodyObject = {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
123
|
+
/**
|
|
124
|
+
* The resolution for training. Must be 512 or 768.
|
|
125
|
+
*/
|
|
126
|
+
resolution?: number | undefined;
|
|
119
127
|
};
|
|
120
128
|
|
|
121
129
|
/**
|
|
122
130
|
* Parameters for MOTION_GENERATION service
|
|
123
131
|
*/
|
|
124
|
-
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject =
|
|
132
|
+
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject =
|
|
133
|
+
{
|
|
125
134
|
/**
|
|
126
135
|
* The total duration of the motion generation in seconds.
|
|
127
136
|
*/
|
|
128
137
|
durationSeconds?: number | undefined;
|
|
129
|
-
};
|
|
138
|
+
};
|
|
130
139
|
|
|
131
140
|
/**
|
|
132
141
|
* Parameters for TEXTURE_GENERATION service
|
|
133
142
|
*/
|
|
134
143
|
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject =
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
144
|
+
{
|
|
145
|
+
preview?: boolean | undefined;
|
|
146
|
+
};
|
|
138
147
|
|
|
139
148
|
/**
|
|
140
149
|
* Parameters for UNIVERSAL_UPSCALER service
|
|
141
150
|
*/
|
|
142
151
|
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject =
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
152
|
+
{
|
|
153
|
+
/**
|
|
154
|
+
* The maximum upscaled image size is 20 megapixels.
|
|
155
|
+
*/
|
|
156
|
+
megapixel?: number | undefined;
|
|
157
|
+
};
|
|
149
158
|
|
|
150
159
|
/**
|
|
151
|
-
* Parameters for
|
|
160
|
+
* Parameters for UNIVERSAL_UPSCALER_ULTRA service
|
|
152
161
|
*/
|
|
153
|
-
export type
|
|
154
|
-
|
|
155
|
-
* Parameters for FANTASY_AVATAR_GENERATION service
|
|
156
|
-
*/
|
|
157
|
-
fantasyAvatarGeneration?: PricingCalculatorObject | null | undefined;
|
|
162
|
+
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject =
|
|
163
|
+
{
|
|
158
164
|
/**
|
|
159
|
-
*
|
|
165
|
+
* The input height of the image.
|
|
160
166
|
*/
|
|
161
|
-
|
|
167
|
+
inputHeight?: number | undefined;
|
|
162
168
|
/**
|
|
163
|
-
*
|
|
169
|
+
* The input width of the image.
|
|
164
170
|
*/
|
|
165
|
-
|
|
171
|
+
inputWidth?: number | undefined;
|
|
166
172
|
/**
|
|
167
|
-
*
|
|
173
|
+
* The upscale multiplier of the universal upscaler. Must be between 1.00 and 2.00.
|
|
168
174
|
*/
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
175
|
+
upscaleMultiplier?: number | undefined;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Parameters for the service
|
|
180
|
+
*/
|
|
181
|
+
export type ObjectT = {
|
|
182
|
+
/**
|
|
183
|
+
* Parameters for FANTASY_AVATAR_GENERATION service
|
|
184
|
+
*/
|
|
185
|
+
fantasyAvatarGeneration?: PricingCalculatorObject | null | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* Parameters for IMAGE_GENERATION service
|
|
188
|
+
*/
|
|
189
|
+
imageGeneration?: PricingCalculatorPricingCalculatorObject | null | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* Parameters for LCM_GENERATION service
|
|
192
|
+
*/
|
|
193
|
+
lcmGeneration?:
|
|
194
|
+
| PricingCalculatorPricingCalculatorRequestObject
|
|
195
|
+
| null
|
|
196
|
+
| undefined;
|
|
197
|
+
/**
|
|
198
|
+
* Parameters for MODEL_TRAINING service
|
|
199
|
+
*/
|
|
200
|
+
modelTraining?:
|
|
201
|
+
| PricingCalculatorPricingCalculatorRequestRequestBodyObject
|
|
202
|
+
| null
|
|
203
|
+
| undefined;
|
|
204
|
+
/**
|
|
205
|
+
* Parameters for MOTION_GENERATION service
|
|
206
|
+
*/
|
|
207
|
+
motionGeneration?:
|
|
208
|
+
| PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject
|
|
209
|
+
| null
|
|
210
|
+
| undefined;
|
|
211
|
+
/**
|
|
212
|
+
* Parameters for TEXTURE_GENERATION service
|
|
213
|
+
*/
|
|
214
|
+
textureGeneration?:
|
|
215
|
+
| PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject
|
|
216
|
+
| null
|
|
217
|
+
| undefined;
|
|
218
|
+
/**
|
|
219
|
+
* Parameters for UNIVERSAL_UPSCALER service
|
|
220
|
+
*/
|
|
221
|
+
universalUpscaler?:
|
|
222
|
+
| PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject
|
|
223
|
+
| null
|
|
224
|
+
| undefined;
|
|
225
|
+
/**
|
|
226
|
+
* Parameters for UNIVERSAL_UPSCALER_ULTRA service
|
|
227
|
+
*/
|
|
228
|
+
universalUpscalerUltra?:
|
|
229
|
+
| PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject
|
|
230
|
+
| null
|
|
231
|
+
| undefined;
|
|
191
232
|
};
|
|
192
233
|
|
|
193
234
|
export type PricingCalculatorRequestBody = {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
235
|
+
/**
|
|
236
|
+
* The services to be chosen for calculating the API credit cost.
|
|
237
|
+
*/
|
|
238
|
+
service?: shared.PricingCalculatorServices | undefined;
|
|
239
|
+
/**
|
|
240
|
+
* Parameters for the service
|
|
241
|
+
*/
|
|
242
|
+
serviceParams?: ObjectT | undefined;
|
|
202
243
|
};
|
|
203
244
|
|
|
204
245
|
export type CalculateProductionApiServiceCost = {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
246
|
+
/**
|
|
247
|
+
* API service cost to generate the image.
|
|
248
|
+
*/
|
|
249
|
+
cost?: number | undefined;
|
|
209
250
|
};
|
|
210
251
|
|
|
211
252
|
/**
|
|
212
253
|
* Responses for POST /pricing-calculator
|
|
213
254
|
*/
|
|
214
255
|
export type PricingCalculatorResponseBody = {
|
|
215
|
-
|
|
256
|
+
calculateProductionApiServiceCost?:
|
|
257
|
+
| CalculateProductionApiServiceCost
|
|
258
|
+
| null
|
|
259
|
+
| undefined;
|
|
216
260
|
};
|
|
217
261
|
|
|
218
262
|
export type PricingCalculatorResponse = {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
263
|
+
/**
|
|
264
|
+
* HTTP response content type for this operation
|
|
265
|
+
*/
|
|
266
|
+
contentType: string;
|
|
267
|
+
/**
|
|
268
|
+
* HTTP response status code for this operation
|
|
269
|
+
*/
|
|
270
|
+
statusCode: number;
|
|
271
|
+
/**
|
|
272
|
+
* Raw HTTP response; suitable for custom response parsing
|
|
273
|
+
*/
|
|
274
|
+
rawResponse: Response;
|
|
275
|
+
/**
|
|
276
|
+
* Responses for POST /pricing-calculator
|
|
277
|
+
*/
|
|
278
|
+
object?: PricingCalculatorResponseBody | undefined;
|
|
235
279
|
};
|
|
236
280
|
|
|
237
281
|
/** @internal */
|
|
238
282
|
export const PricingCalculatorObject$inboundSchema: z.ZodType<
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
283
|
+
PricingCalculatorObject,
|
|
284
|
+
z.ZodTypeDef,
|
|
285
|
+
unknown
|
|
242
286
|
> = z.object({
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
287
|
+
imageHeight: z.number().int().optional(),
|
|
288
|
+
imageWidth: z.number().int().optional(),
|
|
289
|
+
numImages: z.number().int().optional(),
|
|
246
290
|
});
|
|
247
291
|
|
|
248
292
|
/** @internal */
|
|
249
293
|
export type PricingCalculatorObject$Outbound = {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
294
|
+
imageHeight?: number | undefined;
|
|
295
|
+
imageWidth?: number | undefined;
|
|
296
|
+
numImages?: number | undefined;
|
|
253
297
|
};
|
|
254
298
|
|
|
255
299
|
/** @internal */
|
|
256
300
|
export const PricingCalculatorObject$outboundSchema: z.ZodType<
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
301
|
+
PricingCalculatorObject$Outbound,
|
|
302
|
+
z.ZodTypeDef,
|
|
303
|
+
PricingCalculatorObject
|
|
260
304
|
> = z.object({
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
305
|
+
imageHeight: z.number().int().optional(),
|
|
306
|
+
imageWidth: z.number().int().optional(),
|
|
307
|
+
numImages: z.number().int().optional(),
|
|
264
308
|
});
|
|
265
309
|
|
|
266
310
|
/**
|
|
@@ -268,74 +312,80 @@ export const PricingCalculatorObject$outboundSchema: z.ZodType<
|
|
|
268
312
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
269
313
|
*/
|
|
270
314
|
export namespace PricingCalculatorObject$ {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
315
|
+
/** @deprecated use `PricingCalculatorObject$inboundSchema` instead. */
|
|
316
|
+
export const inboundSchema = PricingCalculatorObject$inboundSchema;
|
|
317
|
+
/** @deprecated use `PricingCalculatorObject$outboundSchema` instead. */
|
|
318
|
+
export const outboundSchema = PricingCalculatorObject$outboundSchema;
|
|
319
|
+
/** @deprecated use `PricingCalculatorObject$Outbound` instead. */
|
|
320
|
+
export type Outbound = PricingCalculatorObject$Outbound;
|
|
277
321
|
}
|
|
278
322
|
|
|
279
323
|
/** @internal */
|
|
280
324
|
export const PricingCalculatorPricingCalculatorObject$inboundSchema: z.ZodType<
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
325
|
+
PricingCalculatorPricingCalculatorObject,
|
|
326
|
+
z.ZodTypeDef,
|
|
327
|
+
unknown
|
|
284
328
|
> = z.object({
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
329
|
+
alchemyMode: z.boolean().optional(),
|
|
330
|
+
controlnetsCost: z.nullable(z.number().int()).optional(),
|
|
331
|
+
highResolution: z.boolean().optional(),
|
|
332
|
+
imageHeight: z.number().int().optional(),
|
|
333
|
+
imageWidth: z.number().int().optional(),
|
|
334
|
+
inferenceSteps: z.number().int().optional(),
|
|
335
|
+
isModelCustom: z.nullable(z.boolean()).optional(),
|
|
336
|
+
isPhoenix: z.nullable(z.boolean()).optional(),
|
|
337
|
+
isSDXL: z.nullable(z.boolean()).optional(),
|
|
338
|
+
isSDXLLightning: z.nullable(z.boolean()).optional(),
|
|
339
|
+
loraCount: z.nullable(z.number().int()).optional(),
|
|
340
|
+
numImages: z.number().int().optional(),
|
|
341
|
+
promptMagic: z.nullable(z.boolean()).optional(),
|
|
342
|
+
promptMagicStrength: z.nullable(z.number()).optional(),
|
|
343
|
+
promptMagicVersion: z.nullable(z.string()).optional(),
|
|
344
|
+
ultra: z.nullable(z.boolean()).optional(),
|
|
299
345
|
});
|
|
300
346
|
|
|
301
347
|
/** @internal */
|
|
302
348
|
export type PricingCalculatorPricingCalculatorObject$Outbound = {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
349
|
+
alchemyMode?: boolean | undefined;
|
|
350
|
+
controlnetsCost?: number | null | undefined;
|
|
351
|
+
highResolution?: boolean | undefined;
|
|
352
|
+
imageHeight?: number | undefined;
|
|
353
|
+
imageWidth?: number | undefined;
|
|
354
|
+
inferenceSteps?: number | undefined;
|
|
355
|
+
isModelCustom?: boolean | null | undefined;
|
|
356
|
+
isPhoenix?: boolean | null | undefined;
|
|
357
|
+
isSDXL?: boolean | null | undefined;
|
|
358
|
+
isSDXLLightning?: boolean | null | undefined;
|
|
359
|
+
loraCount?: number | null | undefined;
|
|
360
|
+
numImages?: number | undefined;
|
|
361
|
+
promptMagic?: boolean | null | undefined;
|
|
362
|
+
promptMagicStrength?: number | null | undefined;
|
|
363
|
+
promptMagicVersion?: string | null | undefined;
|
|
364
|
+
ultra?: boolean | null | undefined;
|
|
317
365
|
};
|
|
318
366
|
|
|
319
367
|
/** @internal */
|
|
320
368
|
export const PricingCalculatorPricingCalculatorObject$outboundSchema: z.ZodType<
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
369
|
+
PricingCalculatorPricingCalculatorObject$Outbound,
|
|
370
|
+
z.ZodTypeDef,
|
|
371
|
+
PricingCalculatorPricingCalculatorObject
|
|
324
372
|
> = z.object({
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
373
|
+
alchemyMode: z.boolean().optional(),
|
|
374
|
+
controlnetsCost: z.nullable(z.number().int()).optional(),
|
|
375
|
+
highResolution: z.boolean().optional(),
|
|
376
|
+
imageHeight: z.number().int().optional(),
|
|
377
|
+
imageWidth: z.number().int().optional(),
|
|
378
|
+
inferenceSteps: z.number().int().optional(),
|
|
379
|
+
isModelCustom: z.nullable(z.boolean()).optional(),
|
|
380
|
+
isPhoenix: z.nullable(z.boolean()).optional(),
|
|
381
|
+
isSDXL: z.nullable(z.boolean()).optional(),
|
|
382
|
+
isSDXLLightning: z.nullable(z.boolean()).optional(),
|
|
383
|
+
loraCount: z.nullable(z.number().int()).optional(),
|
|
384
|
+
numImages: z.number().int().optional(),
|
|
385
|
+
promptMagic: z.nullable(z.boolean()).optional(),
|
|
386
|
+
promptMagicStrength: z.nullable(z.number()).optional(),
|
|
387
|
+
promptMagicVersion: z.nullable(z.string()).optional(),
|
|
388
|
+
ultra: z.nullable(z.boolean()).optional(),
|
|
339
389
|
});
|
|
340
390
|
|
|
341
391
|
/**
|
|
@@ -343,388 +393,462 @@ export const PricingCalculatorPricingCalculatorObject$outboundSchema: z.ZodType<
|
|
|
343
393
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
344
394
|
*/
|
|
345
395
|
export namespace PricingCalculatorPricingCalculatorObject$ {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
396
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorObject$inboundSchema` instead. */
|
|
397
|
+
export const inboundSchema =
|
|
398
|
+
PricingCalculatorPricingCalculatorObject$inboundSchema;
|
|
399
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorObject$outboundSchema` instead. */
|
|
400
|
+
export const outboundSchema =
|
|
401
|
+
PricingCalculatorPricingCalculatorObject$outboundSchema;
|
|
402
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorObject$Outbound` instead. */
|
|
403
|
+
export type Outbound = PricingCalculatorPricingCalculatorObject$Outbound;
|
|
352
404
|
}
|
|
353
405
|
|
|
354
406
|
/** @internal */
|
|
355
|
-
export const PricingCalculatorPricingCalculatorRequestObject$inboundSchema:
|
|
407
|
+
export const PricingCalculatorPricingCalculatorRequestObject$inboundSchema:
|
|
408
|
+
z.ZodType<
|
|
356
409
|
PricingCalculatorPricingCalculatorRequestObject,
|
|
357
410
|
z.ZodTypeDef,
|
|
358
411
|
unknown
|
|
359
|
-
> = z.object({
|
|
412
|
+
> = z.object({
|
|
360
413
|
height: z.nullable(z.number().int()).optional(),
|
|
361
414
|
instantRefine: z.nullable(z.boolean()).optional(),
|
|
362
415
|
refine: z.nullable(z.boolean()).optional(),
|
|
363
416
|
width: z.nullable(z.number().int()).optional(),
|
|
364
|
-
});
|
|
417
|
+
});
|
|
365
418
|
|
|
366
419
|
/** @internal */
|
|
367
420
|
export type PricingCalculatorPricingCalculatorRequestObject$Outbound = {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
421
|
+
height?: number | null | undefined;
|
|
422
|
+
instantRefine?: boolean | null | undefined;
|
|
423
|
+
refine?: boolean | null | undefined;
|
|
424
|
+
width?: number | null | undefined;
|
|
372
425
|
};
|
|
373
426
|
|
|
374
427
|
/** @internal */
|
|
375
|
-
export const PricingCalculatorPricingCalculatorRequestObject$outboundSchema:
|
|
428
|
+
export const PricingCalculatorPricingCalculatorRequestObject$outboundSchema:
|
|
429
|
+
z.ZodType<
|
|
376
430
|
PricingCalculatorPricingCalculatorRequestObject$Outbound,
|
|
377
431
|
z.ZodTypeDef,
|
|
378
432
|
PricingCalculatorPricingCalculatorRequestObject
|
|
379
|
-
> = z.object({
|
|
433
|
+
> = z.object({
|
|
380
434
|
height: z.nullable(z.number().int()).optional(),
|
|
381
435
|
instantRefine: z.nullable(z.boolean()).optional(),
|
|
382
436
|
refine: z.nullable(z.boolean()).optional(),
|
|
383
437
|
width: z.nullable(z.number().int()).optional(),
|
|
384
|
-
});
|
|
438
|
+
});
|
|
385
439
|
|
|
386
440
|
/**
|
|
387
441
|
* @internal
|
|
388
442
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
389
443
|
*/
|
|
390
444
|
export namespace PricingCalculatorPricingCalculatorRequestObject$ {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
445
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestObject$inboundSchema` instead. */
|
|
446
|
+
export const inboundSchema =
|
|
447
|
+
PricingCalculatorPricingCalculatorRequestObject$inboundSchema;
|
|
448
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestObject$outboundSchema` instead. */
|
|
449
|
+
export const outboundSchema =
|
|
450
|
+
PricingCalculatorPricingCalculatorRequestObject$outboundSchema;
|
|
451
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestObject$Outbound` instead. */
|
|
452
|
+
export type Outbound =
|
|
453
|
+
PricingCalculatorPricingCalculatorRequestObject$Outbound;
|
|
397
454
|
}
|
|
398
455
|
|
|
399
456
|
/** @internal */
|
|
400
|
-
export const PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema:
|
|
457
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema:
|
|
458
|
+
z.ZodType<
|
|
401
459
|
PricingCalculatorPricingCalculatorRequestRequestBodyObject,
|
|
402
460
|
z.ZodTypeDef,
|
|
403
461
|
unknown
|
|
404
|
-
> = z.object({
|
|
462
|
+
> = z.object({
|
|
405
463
|
resolution: z.number().int().optional(),
|
|
406
|
-
});
|
|
464
|
+
});
|
|
407
465
|
|
|
408
466
|
/** @internal */
|
|
409
|
-
export type PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound =
|
|
467
|
+
export type PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound =
|
|
468
|
+
{
|
|
410
469
|
resolution?: number | undefined;
|
|
411
|
-
};
|
|
470
|
+
};
|
|
412
471
|
|
|
413
472
|
/** @internal */
|
|
414
|
-
export const PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema:
|
|
473
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema:
|
|
474
|
+
z.ZodType<
|
|
415
475
|
PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound,
|
|
416
476
|
z.ZodTypeDef,
|
|
417
477
|
PricingCalculatorPricingCalculatorRequestRequestBodyObject
|
|
418
|
-
> = z.object({
|
|
478
|
+
> = z.object({
|
|
419
479
|
resolution: z.number().int().optional(),
|
|
420
|
-
});
|
|
480
|
+
});
|
|
421
481
|
|
|
422
482
|
/**
|
|
423
483
|
* @internal
|
|
424
484
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
425
485
|
*/
|
|
426
486
|
export namespace PricingCalculatorPricingCalculatorRequestRequestBodyObject$ {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
487
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema` instead. */
|
|
488
|
+
export const inboundSchema =
|
|
489
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema;
|
|
490
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema` instead. */
|
|
491
|
+
export const outboundSchema =
|
|
492
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema;
|
|
493
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound` instead. */
|
|
494
|
+
export type Outbound =
|
|
495
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound;
|
|
435
496
|
}
|
|
436
497
|
|
|
437
498
|
/** @internal */
|
|
438
|
-
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema:
|
|
499
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema:
|
|
500
|
+
z.ZodType<
|
|
439
501
|
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject,
|
|
440
502
|
z.ZodTypeDef,
|
|
441
503
|
unknown
|
|
442
|
-
> = z.object({
|
|
504
|
+
> = z.object({
|
|
443
505
|
durationSeconds: z.number().int().optional(),
|
|
444
|
-
});
|
|
506
|
+
});
|
|
445
507
|
|
|
446
508
|
/** @internal */
|
|
447
|
-
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound =
|
|
509
|
+
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound =
|
|
510
|
+
{
|
|
448
511
|
durationSeconds?: number | undefined;
|
|
449
|
-
};
|
|
512
|
+
};
|
|
450
513
|
|
|
451
514
|
/** @internal */
|
|
452
|
-
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema:
|
|
515
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema:
|
|
516
|
+
z.ZodType<
|
|
453
517
|
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound,
|
|
454
518
|
z.ZodTypeDef,
|
|
455
519
|
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject
|
|
456
|
-
> = z.object({
|
|
520
|
+
> = z.object({
|
|
457
521
|
durationSeconds: z.number().int().optional(),
|
|
458
|
-
});
|
|
522
|
+
});
|
|
459
523
|
|
|
460
524
|
/**
|
|
461
525
|
* @internal
|
|
462
526
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
463
527
|
*/
|
|
464
528
|
export namespace PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$ {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
529
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema` instead. */
|
|
530
|
+
export const inboundSchema =
|
|
531
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema;
|
|
532
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema` instead. */
|
|
533
|
+
export const outboundSchema =
|
|
534
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema;
|
|
535
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound` instead. */
|
|
536
|
+
export type Outbound =
|
|
537
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound;
|
|
474
538
|
}
|
|
475
539
|
|
|
476
540
|
/** @internal */
|
|
477
|
-
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema:
|
|
541
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema:
|
|
542
|
+
z.ZodType<
|
|
478
543
|
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject,
|
|
479
544
|
z.ZodTypeDef,
|
|
480
545
|
unknown
|
|
481
|
-
> = z.object({
|
|
546
|
+
> = z.object({
|
|
482
547
|
preview: z.boolean().optional(),
|
|
483
|
-
});
|
|
548
|
+
});
|
|
484
549
|
|
|
485
550
|
/** @internal */
|
|
486
551
|
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound =
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
552
|
+
{
|
|
553
|
+
preview?: boolean | undefined;
|
|
554
|
+
};
|
|
490
555
|
|
|
491
556
|
/** @internal */
|
|
492
|
-
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema:
|
|
557
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema:
|
|
558
|
+
z.ZodType<
|
|
493
559
|
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound,
|
|
494
560
|
z.ZodTypeDef,
|
|
495
561
|
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject
|
|
496
|
-
> = z.object({
|
|
562
|
+
> = z.object({
|
|
497
563
|
preview: z.boolean().optional(),
|
|
498
|
-
});
|
|
564
|
+
});
|
|
499
565
|
|
|
500
566
|
/**
|
|
501
567
|
* @internal
|
|
502
568
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
503
569
|
*/
|
|
504
570
|
export namespace PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$ {
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
571
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema` instead. */
|
|
572
|
+
export const inboundSchema =
|
|
573
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema;
|
|
574
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema` instead. */
|
|
575
|
+
export const outboundSchema =
|
|
576
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema;
|
|
577
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound` instead. */
|
|
578
|
+
export type Outbound =
|
|
579
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound;
|
|
514
580
|
}
|
|
515
581
|
|
|
516
582
|
/** @internal */
|
|
517
|
-
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema:
|
|
583
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema:
|
|
584
|
+
z.ZodType<
|
|
518
585
|
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject,
|
|
519
586
|
z.ZodTypeDef,
|
|
520
587
|
unknown
|
|
521
|
-
> = z.object({
|
|
588
|
+
> = z.object({
|
|
522
589
|
megapixel: z.number().int().optional(),
|
|
523
|
-
});
|
|
590
|
+
});
|
|
524
591
|
|
|
525
592
|
/** @internal */
|
|
526
593
|
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound =
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
594
|
+
{
|
|
595
|
+
megapixel?: number | undefined;
|
|
596
|
+
};
|
|
530
597
|
|
|
531
598
|
/** @internal */
|
|
532
|
-
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema:
|
|
599
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema:
|
|
600
|
+
z.ZodType<
|
|
533
601
|
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound,
|
|
534
602
|
z.ZodTypeDef,
|
|
535
603
|
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject
|
|
536
|
-
> = z.object({
|
|
604
|
+
> = z.object({
|
|
537
605
|
megapixel: z.number().int().optional(),
|
|
538
|
-
});
|
|
606
|
+
});
|
|
539
607
|
|
|
540
608
|
/**
|
|
541
609
|
* @internal
|
|
542
610
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
543
611
|
*/
|
|
544
612
|
export namespace PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$ {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
613
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema` instead. */
|
|
614
|
+
export const inboundSchema =
|
|
615
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema;
|
|
616
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema` instead. */
|
|
617
|
+
export const outboundSchema =
|
|
618
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema;
|
|
619
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound` instead. */
|
|
620
|
+
export type Outbound =
|
|
621
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound;
|
|
554
622
|
}
|
|
555
623
|
|
|
556
624
|
/** @internal */
|
|
557
|
-
export const
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
625
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$inboundSchema:
|
|
626
|
+
z.ZodType<
|
|
627
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject,
|
|
628
|
+
z.ZodTypeDef,
|
|
629
|
+
unknown
|
|
630
|
+
> = z.object({
|
|
631
|
+
inputHeight: z.number().int().optional(),
|
|
632
|
+
inputWidth: z.number().int().optional(),
|
|
633
|
+
upscaleMultiplier: z.number().default(1.5),
|
|
634
|
+
});
|
|
635
|
+
|
|
636
|
+
/** @internal */
|
|
637
|
+
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$Outbound =
|
|
638
|
+
{
|
|
639
|
+
inputHeight?: number | undefined;
|
|
640
|
+
inputWidth?: number | undefined;
|
|
641
|
+
upscaleMultiplier: number;
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
/** @internal */
|
|
645
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$outboundSchema:
|
|
646
|
+
z.ZodType<
|
|
647
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$Outbound,
|
|
648
|
+
z.ZodTypeDef,
|
|
649
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject
|
|
650
|
+
> = z.object({
|
|
651
|
+
inputHeight: z.number().int().optional(),
|
|
652
|
+
inputWidth: z.number().int().optional(),
|
|
653
|
+
upscaleMultiplier: z.number().default(1.5),
|
|
654
|
+
});
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* @internal
|
|
658
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
659
|
+
*/
|
|
660
|
+
export namespace PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$ {
|
|
661
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$inboundSchema` instead. */
|
|
662
|
+
export const inboundSchema =
|
|
663
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$inboundSchema;
|
|
664
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$outboundSchema` instead. */
|
|
665
|
+
export const outboundSchema =
|
|
666
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$outboundSchema;
|
|
667
|
+
/** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$Outbound` instead. */
|
|
668
|
+
export type Outbound =
|
|
669
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$Outbound;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/** @internal */
|
|
673
|
+
export const ObjectT$inboundSchema: z.ZodType<ObjectT, z.ZodTypeDef, unknown> =
|
|
674
|
+
z.object({
|
|
675
|
+
FANTASY_AVATAR_GENERATION: z.nullable(
|
|
676
|
+
z.lazy(() => PricingCalculatorObject$inboundSchema),
|
|
677
|
+
).optional(),
|
|
678
|
+
IMAGE_GENERATION: z.nullable(
|
|
679
|
+
z.lazy(() => PricingCalculatorPricingCalculatorObject$inboundSchema),
|
|
680
|
+
).optional(),
|
|
681
|
+
LCM_GENERATION: z.nullable(
|
|
682
|
+
z.lazy(() =>
|
|
683
|
+
PricingCalculatorPricingCalculatorRequestObject$inboundSchema
|
|
684
|
+
),
|
|
685
|
+
).optional(),
|
|
686
|
+
MODEL_TRAINING: z.nullable(
|
|
687
|
+
z.lazy(() =>
|
|
688
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema
|
|
689
|
+
),
|
|
690
|
+
).optional(),
|
|
691
|
+
MOTION_GENERATION: z.nullable(
|
|
692
|
+
z.lazy(() =>
|
|
693
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema
|
|
694
|
+
),
|
|
695
|
+
).optional(),
|
|
696
|
+
TEXTURE_GENERATION: z.nullable(
|
|
697
|
+
z.lazy(() =>
|
|
698
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema
|
|
699
|
+
),
|
|
700
|
+
).optional(),
|
|
701
|
+
UNIVERSAL_UPSCALER: z.nullable(
|
|
702
|
+
z.lazy(() =>
|
|
703
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema
|
|
704
|
+
),
|
|
705
|
+
).optional(),
|
|
706
|
+
UNIVERSAL_UPSCALER_ULTRA: z.nullable(
|
|
707
|
+
z.lazy(() =>
|
|
708
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$inboundSchema
|
|
709
|
+
),
|
|
710
|
+
).optional(),
|
|
711
|
+
}).transform((v) => {
|
|
712
|
+
return remap$(v, {
|
|
713
|
+
"FANTASY_AVATAR_GENERATION": "fantasyAvatarGeneration",
|
|
714
|
+
"IMAGE_GENERATION": "imageGeneration",
|
|
715
|
+
"LCM_GENERATION": "lcmGeneration",
|
|
716
|
+
"MODEL_TRAINING": "modelTraining",
|
|
717
|
+
"MOTION_GENERATION": "motionGeneration",
|
|
718
|
+
"TEXTURE_GENERATION": "textureGeneration",
|
|
719
|
+
"UNIVERSAL_UPSCALER": "universalUpscaler",
|
|
720
|
+
"UNIVERSAL_UPSCALER_ULTRA": "universalUpscalerUltra",
|
|
610
721
|
});
|
|
722
|
+
});
|
|
611
723
|
|
|
612
724
|
/** @internal */
|
|
613
725
|
export type ObjectT$Outbound = {
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
726
|
+
FANTASY_AVATAR_GENERATION?:
|
|
727
|
+
| PricingCalculatorObject$Outbound
|
|
728
|
+
| null
|
|
729
|
+
| undefined;
|
|
730
|
+
IMAGE_GENERATION?:
|
|
731
|
+
| PricingCalculatorPricingCalculatorObject$Outbound
|
|
732
|
+
| null
|
|
733
|
+
| undefined;
|
|
734
|
+
LCM_GENERATION?:
|
|
735
|
+
| PricingCalculatorPricingCalculatorRequestObject$Outbound
|
|
736
|
+
| null
|
|
737
|
+
| undefined;
|
|
738
|
+
MODEL_TRAINING?:
|
|
739
|
+
| PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound
|
|
740
|
+
| null
|
|
741
|
+
| undefined;
|
|
742
|
+
MOTION_GENERATION?:
|
|
743
|
+
| PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound
|
|
744
|
+
| null
|
|
745
|
+
| undefined;
|
|
746
|
+
TEXTURE_GENERATION?:
|
|
747
|
+
| PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound
|
|
748
|
+
| null
|
|
749
|
+
| undefined;
|
|
750
|
+
UNIVERSAL_UPSCALER?:
|
|
751
|
+
| PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound
|
|
752
|
+
| null
|
|
753
|
+
| undefined;
|
|
754
|
+
UNIVERSAL_UPSCALER_ULTRA?:
|
|
755
|
+
| PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$Outbound
|
|
756
|
+
| null
|
|
757
|
+
| undefined;
|
|
633
758
|
};
|
|
634
759
|
|
|
635
760
|
/** @internal */
|
|
636
|
-
export const ObjectT$outboundSchema: z.ZodType<
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
});
|
|
761
|
+
export const ObjectT$outboundSchema: z.ZodType<
|
|
762
|
+
ObjectT$Outbound,
|
|
763
|
+
z.ZodTypeDef,
|
|
764
|
+
ObjectT
|
|
765
|
+
> = z.object({
|
|
766
|
+
fantasyAvatarGeneration: z.nullable(
|
|
767
|
+
z.lazy(() => PricingCalculatorObject$outboundSchema),
|
|
768
|
+
).optional(),
|
|
769
|
+
imageGeneration: z.nullable(
|
|
770
|
+
z.lazy(() => PricingCalculatorPricingCalculatorObject$outboundSchema),
|
|
771
|
+
).optional(),
|
|
772
|
+
lcmGeneration: z.nullable(
|
|
773
|
+
z.lazy(() =>
|
|
774
|
+
PricingCalculatorPricingCalculatorRequestObject$outboundSchema
|
|
775
|
+
),
|
|
776
|
+
).optional(),
|
|
777
|
+
modelTraining: z.nullable(
|
|
778
|
+
z.lazy(() =>
|
|
779
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema
|
|
780
|
+
),
|
|
781
|
+
).optional(),
|
|
782
|
+
motionGeneration: z.nullable(
|
|
783
|
+
z.lazy(() =>
|
|
784
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema
|
|
785
|
+
),
|
|
786
|
+
).optional(),
|
|
787
|
+
textureGeneration: z.nullable(
|
|
788
|
+
z.lazy(() =>
|
|
789
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema
|
|
790
|
+
),
|
|
791
|
+
).optional(),
|
|
792
|
+
universalUpscaler: z.nullable(
|
|
793
|
+
z.lazy(() =>
|
|
794
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema
|
|
795
|
+
),
|
|
796
|
+
).optional(),
|
|
797
|
+
universalUpscalerUltra: z.nullable(
|
|
798
|
+
z.lazy(() =>
|
|
799
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$outboundSchema
|
|
800
|
+
),
|
|
801
|
+
).optional(),
|
|
802
|
+
}).transform((v) => {
|
|
803
|
+
return remap$(v, {
|
|
804
|
+
fantasyAvatarGeneration: "FANTASY_AVATAR_GENERATION",
|
|
805
|
+
imageGeneration: "IMAGE_GENERATION",
|
|
806
|
+
lcmGeneration: "LCM_GENERATION",
|
|
807
|
+
modelTraining: "MODEL_TRAINING",
|
|
808
|
+
motionGeneration: "MOTION_GENERATION",
|
|
809
|
+
textureGeneration: "TEXTURE_GENERATION",
|
|
810
|
+
universalUpscaler: "UNIVERSAL_UPSCALER",
|
|
811
|
+
universalUpscalerUltra: "UNIVERSAL_UPSCALER_ULTRA",
|
|
812
|
+
});
|
|
813
|
+
});
|
|
690
814
|
|
|
691
815
|
/**
|
|
692
816
|
* @internal
|
|
693
817
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
694
818
|
*/
|
|
695
819
|
export namespace ObjectT$ {
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
820
|
+
/** @deprecated use `ObjectT$inboundSchema` instead. */
|
|
821
|
+
export const inboundSchema = ObjectT$inboundSchema;
|
|
822
|
+
/** @deprecated use `ObjectT$outboundSchema` instead. */
|
|
823
|
+
export const outboundSchema = ObjectT$outboundSchema;
|
|
824
|
+
/** @deprecated use `ObjectT$Outbound` instead. */
|
|
825
|
+
export type Outbound = ObjectT$Outbound;
|
|
702
826
|
}
|
|
703
827
|
|
|
704
828
|
/** @internal */
|
|
705
829
|
export const PricingCalculatorRequestBody$inboundSchema: z.ZodType<
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
830
|
+
PricingCalculatorRequestBody,
|
|
831
|
+
z.ZodTypeDef,
|
|
832
|
+
unknown
|
|
709
833
|
> = z.object({
|
|
710
|
-
|
|
711
|
-
|
|
834
|
+
service: shared.PricingCalculatorServices$inboundSchema.optional(),
|
|
835
|
+
serviceParams: z.lazy(() => ObjectT$inboundSchema).optional(),
|
|
712
836
|
});
|
|
713
837
|
|
|
714
838
|
/** @internal */
|
|
715
839
|
export type PricingCalculatorRequestBody$Outbound = {
|
|
716
|
-
|
|
717
|
-
|
|
840
|
+
service?: string | undefined;
|
|
841
|
+
serviceParams?: ObjectT$Outbound | undefined;
|
|
718
842
|
};
|
|
719
843
|
|
|
720
844
|
/** @internal */
|
|
721
845
|
export const PricingCalculatorRequestBody$outboundSchema: z.ZodType<
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
846
|
+
PricingCalculatorRequestBody$Outbound,
|
|
847
|
+
z.ZodTypeDef,
|
|
848
|
+
PricingCalculatorRequestBody
|
|
725
849
|
> = z.object({
|
|
726
|
-
|
|
727
|
-
|
|
850
|
+
service: shared.PricingCalculatorServices$outboundSchema.optional(),
|
|
851
|
+
serviceParams: z.lazy(() => ObjectT$outboundSchema).optional(),
|
|
728
852
|
});
|
|
729
853
|
|
|
730
854
|
/**
|
|
@@ -732,35 +856,35 @@ export const PricingCalculatorRequestBody$outboundSchema: z.ZodType<
|
|
|
732
856
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
733
857
|
*/
|
|
734
858
|
export namespace PricingCalculatorRequestBody$ {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
859
|
+
/** @deprecated use `PricingCalculatorRequestBody$inboundSchema` instead. */
|
|
860
|
+
export const inboundSchema = PricingCalculatorRequestBody$inboundSchema;
|
|
861
|
+
/** @deprecated use `PricingCalculatorRequestBody$outboundSchema` instead. */
|
|
862
|
+
export const outboundSchema = PricingCalculatorRequestBody$outboundSchema;
|
|
863
|
+
/** @deprecated use `PricingCalculatorRequestBody$Outbound` instead. */
|
|
864
|
+
export type Outbound = PricingCalculatorRequestBody$Outbound;
|
|
741
865
|
}
|
|
742
866
|
|
|
743
867
|
/** @internal */
|
|
744
868
|
export const CalculateProductionApiServiceCost$inboundSchema: z.ZodType<
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
869
|
+
CalculateProductionApiServiceCost,
|
|
870
|
+
z.ZodTypeDef,
|
|
871
|
+
unknown
|
|
748
872
|
> = z.object({
|
|
749
|
-
|
|
873
|
+
cost: z.number().int().optional(),
|
|
750
874
|
});
|
|
751
875
|
|
|
752
876
|
/** @internal */
|
|
753
877
|
export type CalculateProductionApiServiceCost$Outbound = {
|
|
754
|
-
|
|
878
|
+
cost?: number | undefined;
|
|
755
879
|
};
|
|
756
880
|
|
|
757
881
|
/** @internal */
|
|
758
882
|
export const CalculateProductionApiServiceCost$outboundSchema: z.ZodType<
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
883
|
+
CalculateProductionApiServiceCost$Outbound,
|
|
884
|
+
z.ZodTypeDef,
|
|
885
|
+
CalculateProductionApiServiceCost
|
|
762
886
|
> = z.object({
|
|
763
|
-
|
|
887
|
+
cost: z.number().int().optional(),
|
|
764
888
|
});
|
|
765
889
|
|
|
766
890
|
/**
|
|
@@ -768,42 +892,43 @@ export const CalculateProductionApiServiceCost$outboundSchema: z.ZodType<
|
|
|
768
892
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
769
893
|
*/
|
|
770
894
|
export namespace CalculateProductionApiServiceCost$ {
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
895
|
+
/** @deprecated use `CalculateProductionApiServiceCost$inboundSchema` instead. */
|
|
896
|
+
export const inboundSchema = CalculateProductionApiServiceCost$inboundSchema;
|
|
897
|
+
/** @deprecated use `CalculateProductionApiServiceCost$outboundSchema` instead. */
|
|
898
|
+
export const outboundSchema =
|
|
899
|
+
CalculateProductionApiServiceCost$outboundSchema;
|
|
900
|
+
/** @deprecated use `CalculateProductionApiServiceCost$Outbound` instead. */
|
|
901
|
+
export type Outbound = CalculateProductionApiServiceCost$Outbound;
|
|
777
902
|
}
|
|
778
903
|
|
|
779
904
|
/** @internal */
|
|
780
905
|
export const PricingCalculatorResponseBody$inboundSchema: z.ZodType<
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
906
|
+
PricingCalculatorResponseBody,
|
|
907
|
+
z.ZodTypeDef,
|
|
908
|
+
unknown
|
|
784
909
|
> = z.object({
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
910
|
+
calculateProductionApiServiceCost: z.nullable(
|
|
911
|
+
z.lazy(() => CalculateProductionApiServiceCost$inboundSchema),
|
|
912
|
+
).optional(),
|
|
788
913
|
});
|
|
789
914
|
|
|
790
915
|
/** @internal */
|
|
791
916
|
export type PricingCalculatorResponseBody$Outbound = {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
917
|
+
calculateProductionApiServiceCost?:
|
|
918
|
+
| CalculateProductionApiServiceCost$Outbound
|
|
919
|
+
| null
|
|
920
|
+
| undefined;
|
|
796
921
|
};
|
|
797
922
|
|
|
798
923
|
/** @internal */
|
|
799
924
|
export const PricingCalculatorResponseBody$outboundSchema: z.ZodType<
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
925
|
+
PricingCalculatorResponseBody$Outbound,
|
|
926
|
+
z.ZodTypeDef,
|
|
927
|
+
PricingCalculatorResponseBody
|
|
803
928
|
> = z.object({
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
929
|
+
calculateProductionApiServiceCost: z.nullable(
|
|
930
|
+
z.lazy(() => CalculateProductionApiServiceCost$outboundSchema),
|
|
931
|
+
).optional(),
|
|
807
932
|
});
|
|
808
933
|
|
|
809
934
|
/**
|
|
@@ -811,73 +936,69 @@ export const PricingCalculatorResponseBody$outboundSchema: z.ZodType<
|
|
|
811
936
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
812
937
|
*/
|
|
813
938
|
export namespace PricingCalculatorResponseBody$ {
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
939
|
+
/** @deprecated use `PricingCalculatorResponseBody$inboundSchema` instead. */
|
|
940
|
+
export const inboundSchema = PricingCalculatorResponseBody$inboundSchema;
|
|
941
|
+
/** @deprecated use `PricingCalculatorResponseBody$outboundSchema` instead. */
|
|
942
|
+
export const outboundSchema = PricingCalculatorResponseBody$outboundSchema;
|
|
943
|
+
/** @deprecated use `PricingCalculatorResponseBody$Outbound` instead. */
|
|
944
|
+
export type Outbound = PricingCalculatorResponseBody$Outbound;
|
|
820
945
|
}
|
|
821
946
|
|
|
822
947
|
/** @internal */
|
|
823
948
|
export const PricingCalculatorResponse$inboundSchema: z.ZodType<
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
> = z
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
});
|
|
840
|
-
});
|
|
949
|
+
PricingCalculatorResponse,
|
|
950
|
+
z.ZodTypeDef,
|
|
951
|
+
unknown
|
|
952
|
+
> = z.object({
|
|
953
|
+
ContentType: z.string(),
|
|
954
|
+
StatusCode: z.number().int(),
|
|
955
|
+
RawResponse: z.instanceof(Response),
|
|
956
|
+
object: z.lazy(() => PricingCalculatorResponseBody$inboundSchema).optional(),
|
|
957
|
+
}).transform((v) => {
|
|
958
|
+
return remap$(v, {
|
|
959
|
+
"ContentType": "contentType",
|
|
960
|
+
"StatusCode": "statusCode",
|
|
961
|
+
"RawResponse": "rawResponse",
|
|
962
|
+
});
|
|
963
|
+
});
|
|
841
964
|
|
|
842
965
|
/** @internal */
|
|
843
966
|
export type PricingCalculatorResponse$Outbound = {
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
967
|
+
ContentType: string;
|
|
968
|
+
StatusCode: number;
|
|
969
|
+
RawResponse: never;
|
|
970
|
+
object?: PricingCalculatorResponseBody$Outbound | undefined;
|
|
848
971
|
};
|
|
849
972
|
|
|
850
973
|
/** @internal */
|
|
851
974
|
export const PricingCalculatorResponse$outboundSchema: z.ZodType<
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
> = z
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
});
|
|
870
|
-
});
|
|
975
|
+
PricingCalculatorResponse$Outbound,
|
|
976
|
+
z.ZodTypeDef,
|
|
977
|
+
PricingCalculatorResponse
|
|
978
|
+
> = z.object({
|
|
979
|
+
contentType: z.string(),
|
|
980
|
+
statusCode: z.number().int(),
|
|
981
|
+
rawResponse: z.instanceof(Response).transform(() => {
|
|
982
|
+
throw new Error("Response cannot be serialized");
|
|
983
|
+
}),
|
|
984
|
+
object: z.lazy(() => PricingCalculatorResponseBody$outboundSchema).optional(),
|
|
985
|
+
}).transform((v) => {
|
|
986
|
+
return remap$(v, {
|
|
987
|
+
contentType: "ContentType",
|
|
988
|
+
statusCode: "StatusCode",
|
|
989
|
+
rawResponse: "RawResponse",
|
|
990
|
+
});
|
|
991
|
+
});
|
|
871
992
|
|
|
872
993
|
/**
|
|
873
994
|
* @internal
|
|
874
995
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
875
996
|
*/
|
|
876
997
|
export namespace PricingCalculatorResponse$ {
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
998
|
+
/** @deprecated use `PricingCalculatorResponse$inboundSchema` instead. */
|
|
999
|
+
export const inboundSchema = PricingCalculatorResponse$inboundSchema;
|
|
1000
|
+
/** @deprecated use `PricingCalculatorResponse$outboundSchema` instead. */
|
|
1001
|
+
export const outboundSchema = PricingCalculatorResponse$outboundSchema;
|
|
1002
|
+
/** @deprecated use `PricingCalculatorResponse$Outbound` instead. */
|
|
1003
|
+
export type Outbound = PricingCalculatorResponse$Outbound;
|
|
883
1004
|
}
|