@leonardo-ai/sdk 4.18.0 → 4.19.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/FUNCTIONS.md +104 -0
- package/README.md +26 -47
- package/RUNTIMES.md +22 -0
- package/docs/sdks/elements/README.md +227 -0
- package/docs/sdks/leonardo/README.md +3 -1
- package/funcs/datasetCreateDataset.d.ts.map +1 -1
- package/funcs/datasetCreateDataset.js +8 -4
- package/funcs/datasetCreateDataset.js.map +1 -1
- package/funcs/datasetDeleteDatasetById.d.ts.map +1 -1
- package/funcs/datasetDeleteDatasetById.js +8 -4
- package/funcs/datasetDeleteDatasetById.js.map +1 -1
- package/funcs/datasetGetDatasetById.d.ts.map +1 -1
- package/funcs/datasetGetDatasetById.js +8 -4
- package/funcs/datasetGetDatasetById.js.map +1 -1
- package/funcs/datasetUploadDatasetImage.d.ts.map +1 -1
- package/funcs/datasetUploadDatasetImage.js +8 -4
- package/funcs/datasetUploadDatasetImage.js.map +1 -1
- package/funcs/datasetUploadDatasetImageFromGen.d.ts.map +1 -1
- package/funcs/datasetUploadDatasetImageFromGen.js +8 -4
- package/funcs/datasetUploadDatasetImageFromGen.js.map +1 -1
- package/funcs/elementsCreateElement.d.ts +15 -0
- package/funcs/elementsCreateElement.d.ts.map +1 -0
- package/funcs/elementsCreateElement.js +105 -0
- package/funcs/elementsCreateElement.js.map +1 -0
- package/funcs/elementsDeleteElementById.d.ts +15 -0
- package/funcs/elementsDeleteElementById.d.ts.map +1 -0
- package/funcs/elementsDeleteElementById.js +113 -0
- package/funcs/elementsDeleteElementById.js.map +1 -0
- package/funcs/elementsGetElementById.d.ts +15 -0
- package/funcs/elementsGetElementById.d.ts.map +1 -0
- package/funcs/elementsGetElementById.js +113 -0
- package/funcs/elementsGetElementById.js.map +1 -0
- package/funcs/elementsListElements.d.ts.map +1 -1
- package/funcs/elementsListElements.js +8 -4
- package/funcs/elementsListElements.js.map +1 -1
- package/funcs/imageCreateGeneration.d.ts.map +1 -1
- package/funcs/imageCreateGeneration.js +8 -4
- package/funcs/imageCreateGeneration.js.map +1 -1
- package/funcs/imageDeleteGenerationById.d.ts.map +1 -1
- package/funcs/imageDeleteGenerationById.js +8 -4
- package/funcs/imageDeleteGenerationById.js.map +1 -1
- package/funcs/imageGetGenerationById.d.ts.map +1 -1
- package/funcs/imageGetGenerationById.js +8 -4
- package/funcs/imageGetGenerationById.js.map +1 -1
- package/funcs/imageGetGenerationsByUserId.d.ts.map +1 -1
- package/funcs/imageGetGenerationsByUserId.js +8 -4
- package/funcs/imageGetGenerationsByUserId.js.map +1 -1
- package/funcs/initImagesDeleteInitImageById.d.ts.map +1 -1
- package/funcs/initImagesDeleteInitImageById.js +8 -4
- package/funcs/initImagesDeleteInitImageById.js.map +1 -1
- package/funcs/initImagesGetInitImageById.d.ts.map +1 -1
- package/funcs/initImagesGetInitImageById.js +8 -4
- package/funcs/initImagesGetInitImageById.js.map +1 -1
- package/funcs/initImagesUploadCanvasInitImage.d.ts.map +1 -1
- package/funcs/initImagesUploadCanvasInitImage.js +8 -4
- package/funcs/initImagesUploadCanvasInitImage.js.map +1 -1
- package/funcs/initImagesUploadInitImage.d.ts.map +1 -1
- package/funcs/initImagesUploadInitImage.js +8 -4
- package/funcs/initImagesUploadInitImage.js.map +1 -1
- package/funcs/modelsCreateModel.d.ts.map +1 -1
- package/funcs/modelsCreateModel.js +8 -4
- package/funcs/modelsCreateModel.js.map +1 -1
- package/funcs/modelsDeleteModelById.d.ts.map +1 -1
- package/funcs/modelsDeleteModelById.js +8 -4
- package/funcs/modelsDeleteModelById.js.map +1 -1
- package/funcs/modelsGetModelById.d.ts.map +1 -1
- package/funcs/modelsGetModelById.js +8 -4
- package/funcs/modelsGetModelById.js.map +1 -1
- package/funcs/modelsListPlatformModels.d.ts.map +1 -1
- package/funcs/modelsListPlatformModels.js +8 -4
- package/funcs/modelsListPlatformModels.js.map +1 -1
- package/funcs/motionCreateSVDMotionGeneration.d.ts.map +1 -1
- package/funcs/motionCreateSVDMotionGeneration.js +8 -4
- package/funcs/motionCreateSVDMotionGeneration.js.map +1 -1
- package/funcs/pricingCalculatorPricingCalculator.d.ts.map +1 -1
- package/funcs/pricingCalculatorPricingCalculator.js +8 -4
- package/funcs/pricingCalculatorPricingCalculator.js.map +1 -1
- package/funcs/promptPromptImprove.d.ts.map +1 -1
- package/funcs/promptPromptImprove.js +8 -4
- package/funcs/promptPromptImprove.js.map +1 -1
- package/funcs/promptPromptRandom.d.ts.map +1 -1
- package/funcs/promptPromptRandom.js +8 -4
- package/funcs/promptPromptRandom.js.map +1 -1
- package/funcs/realtimeCanvasCreateLCMGeneration.d.ts.map +1 -1
- package/funcs/realtimeCanvasCreateLCMGeneration.js +8 -4
- package/funcs/realtimeCanvasCreateLCMGeneration.js.map +1 -1
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.d.ts.map +1 -1
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.js +8 -4
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.js.map +1 -1
- package/funcs/realtimeCanvasPerformInpaintingLCM.d.ts.map +1 -1
- package/funcs/realtimeCanvasPerformInpaintingLCM.js +8 -4
- package/funcs/realtimeCanvasPerformInpaintingLCM.js.map +1 -1
- package/funcs/realtimeCanvasPerformInstantRefine.d.ts.map +1 -1
- package/funcs/realtimeCanvasPerformInstantRefine.js +8 -4
- package/funcs/realtimeCanvasPerformInstantRefine.js.map +1 -1
- package/funcs/textureCreateTextureGeneration.d.ts.map +1 -1
- package/funcs/textureCreateTextureGeneration.js +8 -4
- package/funcs/textureCreateTextureGeneration.js.map +1 -1
- package/funcs/textureDeleteTextureGenerationById.d.ts.map +1 -1
- package/funcs/textureDeleteTextureGenerationById.js +8 -4
- package/funcs/textureDeleteTextureGenerationById.js.map +1 -1
- package/funcs/threeDModelAssetsDelete3DModelById.d.ts.map +1 -1
- package/funcs/threeDModelAssetsDelete3DModelById.js +8 -4
- package/funcs/threeDModelAssetsDelete3DModelById.js.map +1 -1
- package/funcs/threeDModelAssetsUploadModelAsset.d.ts.map +1 -1
- package/funcs/threeDModelAssetsUploadModelAsset.js +8 -4
- package/funcs/threeDModelAssetsUploadModelAsset.js.map +1 -1
- package/funcs/userGetUserSelf.d.ts.map +1 -1
- package/funcs/userGetUserSelf.js +8 -4
- package/funcs/userGetUserSelf.js.map +1 -1
- package/funcs/variationCreateUniversalUpscalerJob.d.ts.map +1 -1
- package/funcs/variationCreateUniversalUpscalerJob.js +8 -4
- package/funcs/variationCreateUniversalUpscalerJob.js.map +1 -1
- package/funcs/variationCreateVariationNoBG.d.ts.map +1 -1
- package/funcs/variationCreateVariationNoBG.js +8 -4
- package/funcs/variationCreateVariationNoBG.js.map +1 -1
- package/funcs/variationCreateVariationUnzoom.d.ts.map +1 -1
- package/funcs/variationCreateVariationUnzoom.js +8 -4
- package/funcs/variationCreateVariationUnzoom.js.map +1 -1
- package/funcs/variationCreateVariationUpscale.d.ts.map +1 -1
- package/funcs/variationCreateVariationUpscale.js +8 -4
- package/funcs/variationCreateVariationUpscale.js.map +1 -1
- package/funcs/variationGetVariationById.d.ts.map +1 -1
- package/funcs/variationGetVariationById.js +8 -4
- package/funcs/variationGetVariationById.js.map +1 -1
- package/hooks/types.d.ts +4 -0
- package/hooks/types.d.ts.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/matchers.js +1 -1
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +6 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +66 -1
- package/lib/primitives.js.map +1 -1
- package/lib/retries.d.ts +20 -0
- package/lib/retries.d.ts.map +1 -1
- package/lib/retries.js +51 -27
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts +2 -2
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +14 -12
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +20 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +11 -1
- package/lib/security.js.map +1 -1
- package/package.json +3 -1
- package/sdk/elements.d.ts +21 -0
- package/sdk/elements.d.ts.map +1 -1
- package/sdk/elements.js +30 -0
- package/sdk/elements.js.map +1 -1
- package/sdk/models/operations/createdataset.d.ts +10 -0
- package/sdk/models/operations/createdataset.d.ts.map +1 -1
- package/sdk/models/operations/createdataset.js +34 -1
- package/sdk/models/operations/createdataset.js.map +1 -1
- package/sdk/models/operations/createelement.d.ts +182 -0
- package/sdk/models/operations/createelement.d.ts.map +1 -0
- package/sdk/models/operations/createelement.js +200 -0
- package/sdk/models/operations/createelement.js.map +1 -0
- package/sdk/models/operations/creategeneration.d.ts +10 -0
- package/sdk/models/operations/creategeneration.d.ts.map +1 -1
- package/sdk/models/operations/creategeneration.js +34 -1
- package/sdk/models/operations/creategeneration.js.map +1 -1
- package/sdk/models/operations/createlcmgeneration.d.ts +10 -0
- package/sdk/models/operations/createlcmgeneration.d.ts.map +1 -1
- package/sdk/models/operations/createlcmgeneration.js +34 -1
- package/sdk/models/operations/createlcmgeneration.js.map +1 -1
- package/sdk/models/operations/createmodel.d.ts +23 -13
- package/sdk/models/operations/createmodel.d.ts.map +1 -1
- package/sdk/models/operations/createmodel.js +45 -14
- package/sdk/models/operations/createmodel.js.map +1 -1
- package/sdk/models/operations/createsvdmotiongeneration.d.ts +10 -0
- package/sdk/models/operations/createsvdmotiongeneration.d.ts.map +1 -1
- package/sdk/models/operations/createsvdmotiongeneration.js +34 -1
- package/sdk/models/operations/createsvdmotiongeneration.js.map +1 -1
- package/sdk/models/operations/createtexturegeneration.d.ts +10 -0
- package/sdk/models/operations/createtexturegeneration.d.ts.map +1 -1
- package/sdk/models/operations/createtexturegeneration.js +34 -1
- package/sdk/models/operations/createtexturegeneration.js.map +1 -1
- package/sdk/models/operations/createuniversalupscalerjob.d.ts +10 -0
- package/sdk/models/operations/createuniversalupscalerjob.d.ts.map +1 -1
- package/sdk/models/operations/createuniversalupscalerjob.js +34 -1
- package/sdk/models/operations/createuniversalupscalerjob.js.map +1 -1
- package/sdk/models/operations/createvariationnobg.d.ts +10 -0
- package/sdk/models/operations/createvariationnobg.d.ts.map +1 -1
- package/sdk/models/operations/createvariationnobg.js +34 -1
- package/sdk/models/operations/createvariationnobg.js.map +1 -1
- package/sdk/models/operations/createvariationunzoom.d.ts +10 -0
- package/sdk/models/operations/createvariationunzoom.d.ts.map +1 -1
- package/sdk/models/operations/createvariationunzoom.js +34 -1
- package/sdk/models/operations/createvariationunzoom.js.map +1 -1
- package/sdk/models/operations/createvariationupscale.d.ts +10 -0
- package/sdk/models/operations/createvariationupscale.d.ts.map +1 -1
- package/sdk/models/operations/createvariationupscale.js +34 -1
- package/sdk/models/operations/createvariationupscale.js.map +1 -1
- package/sdk/models/operations/delete3dmodelbyid.d.ts +12 -0
- package/sdk/models/operations/delete3dmodelbyid.d.ts.map +1 -1
- package/sdk/models/operations/delete3dmodelbyid.js +42 -1
- package/sdk/models/operations/delete3dmodelbyid.js.map +1 -1
- package/sdk/models/operations/deletedatasetbyid.d.ts +10 -0
- package/sdk/models/operations/deletedatasetbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletedatasetbyid.js +34 -1
- package/sdk/models/operations/deletedatasetbyid.js.map +1 -1
- package/sdk/models/operations/deleteelementbyid.d.ts +134 -0
- package/sdk/models/operations/deleteelementbyid.d.ts.map +1 -0
- package/sdk/models/operations/deleteelementbyid.js +171 -0
- package/sdk/models/operations/deleteelementbyid.js.map +1 -0
- package/sdk/models/operations/deletegenerationbyid.d.ts +10 -0
- package/sdk/models/operations/deletegenerationbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletegenerationbyid.js +34 -1
- package/sdk/models/operations/deletegenerationbyid.js.map +1 -1
- package/sdk/models/operations/deleteinitimagebyid.d.ts +10 -0
- package/sdk/models/operations/deleteinitimagebyid.d.ts.map +1 -1
- package/sdk/models/operations/deleteinitimagebyid.js +34 -1
- package/sdk/models/operations/deleteinitimagebyid.js.map +1 -1
- package/sdk/models/operations/deletemodelbyid.d.ts +10 -0
- package/sdk/models/operations/deletemodelbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletemodelbyid.js +34 -1
- package/sdk/models/operations/deletemodelbyid.js.map +1 -1
- package/sdk/models/operations/deletetexturegenerationbyid.d.ts +12 -0
- package/sdk/models/operations/deletetexturegenerationbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletetexturegenerationbyid.js +42 -1
- package/sdk/models/operations/deletetexturegenerationbyid.js.map +1 -1
- package/sdk/models/operations/getdatasetbyid.d.ts +12 -0
- package/sdk/models/operations/getdatasetbyid.d.ts.map +1 -1
- package/sdk/models/operations/getdatasetbyid.js +42 -1
- package/sdk/models/operations/getdatasetbyid.js.map +1 -1
- package/sdk/models/operations/getelementbyid.d.ts +162 -0
- package/sdk/models/operations/getelementbyid.d.ts.map +1 -0
- package/sdk/models/operations/getelementbyid.js +194 -0
- package/sdk/models/operations/getelementbyid.js.map +1 -0
- package/sdk/models/operations/getgenerationbyid.d.ts +18 -0
- package/sdk/models/operations/getgenerationbyid.d.ts.map +1 -1
- package/sdk/models/operations/getgenerationbyid.js +66 -1
- package/sdk/models/operations/getgenerationbyid.js.map +1 -1
- package/sdk/models/operations/getgenerationsbyuserid.d.ts +18 -0
- package/sdk/models/operations/getgenerationsbyuserid.d.ts.map +1 -1
- package/sdk/models/operations/getgenerationsbyuserid.js +66 -1
- package/sdk/models/operations/getgenerationsbyuserid.js.map +1 -1
- package/sdk/models/operations/getinitimagebyid.d.ts +10 -0
- package/sdk/models/operations/getinitimagebyid.d.ts.map +1 -1
- package/sdk/models/operations/getinitimagebyid.js +34 -1
- package/sdk/models/operations/getinitimagebyid.js.map +1 -1
- package/sdk/models/operations/getmodelbyid.d.ts +10 -0
- package/sdk/models/operations/getmodelbyid.d.ts.map +1 -1
- package/sdk/models/operations/getmodelbyid.js +34 -1
- package/sdk/models/operations/getmodelbyid.js.map +1 -1
- package/sdk/models/operations/getuserself.d.ts +10 -0
- package/sdk/models/operations/getuserself.d.ts.map +1 -1
- package/sdk/models/operations/getuserself.js +34 -1
- package/sdk/models/operations/getuserself.js.map +1 -1
- package/sdk/models/operations/getvariationbyid.d.ts +10 -0
- package/sdk/models/operations/getvariationbyid.d.ts.map +1 -1
- package/sdk/models/operations/getvariationbyid.js +34 -1
- package/sdk/models/operations/getvariationbyid.js.map +1 -1
- package/sdk/models/operations/index.d.ts +3 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +3 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listelements.d.ts +11 -3
- package/sdk/models/operations/listelements.d.ts.map +1 -1
- package/sdk/models/operations/listelements.js +26 -1
- package/sdk/models/operations/listelements.js.map +1 -1
- package/sdk/models/operations/listplatformmodels.d.ts +10 -0
- package/sdk/models/operations/listplatformmodels.d.ts.map +1 -1
- package/sdk/models/operations/listplatformmodels.js +34 -1
- package/sdk/models/operations/listplatformmodels.js.map +1 -1
- package/sdk/models/operations/performalchemyupscalelcm.d.ts +10 -0
- package/sdk/models/operations/performalchemyupscalelcm.d.ts.map +1 -1
- package/sdk/models/operations/performalchemyupscalelcm.js +34 -1
- package/sdk/models/operations/performalchemyupscalelcm.js.map +1 -1
- package/sdk/models/operations/performinpaintinglcm.d.ts +10 -0
- package/sdk/models/operations/performinpaintinglcm.d.ts.map +1 -1
- package/sdk/models/operations/performinpaintinglcm.js +34 -1
- package/sdk/models/operations/performinpaintinglcm.js.map +1 -1
- package/sdk/models/operations/performinstantrefine.d.ts +10 -0
- package/sdk/models/operations/performinstantrefine.d.ts.map +1 -1
- package/sdk/models/operations/performinstantrefine.js +34 -1
- package/sdk/models/operations/performinstantrefine.js.map +1 -1
- package/sdk/models/operations/pricingcalculator.d.ts +28 -0
- package/sdk/models/operations/pricingcalculator.d.ts.map +1 -1
- package/sdk/models/operations/pricingcalculator.js +117 -1
- package/sdk/models/operations/pricingcalculator.js.map +1 -1
- package/sdk/models/operations/promptimprove.d.ts +10 -0
- package/sdk/models/operations/promptimprove.d.ts.map +1 -1
- package/sdk/models/operations/promptimprove.js +34 -1
- package/sdk/models/operations/promptimprove.js.map +1 -1
- package/sdk/models/operations/promptrandom.d.ts +8 -0
- package/sdk/models/operations/promptrandom.d.ts.map +1 -1
- package/sdk/models/operations/promptrandom.js +26 -1
- package/sdk/models/operations/promptrandom.js.map +1 -1
- package/sdk/models/operations/uploadcanvasinitimage.d.ts +10 -0
- package/sdk/models/operations/uploadcanvasinitimage.d.ts.map +1 -1
- package/sdk/models/operations/uploadcanvasinitimage.js +34 -1
- package/sdk/models/operations/uploadcanvasinitimage.js.map +1 -1
- package/sdk/models/operations/uploaddatasetimage.d.ts +12 -0
- package/sdk/models/operations/uploaddatasetimage.d.ts.map +1 -1
- package/sdk/models/operations/uploaddatasetimage.js +42 -1
- package/sdk/models/operations/uploaddatasetimage.js.map +1 -1
- package/sdk/models/operations/uploaddatasetimagefromgen.d.ts +12 -0
- package/sdk/models/operations/uploaddatasetimagefromgen.d.ts.map +1 -1
- package/sdk/models/operations/uploaddatasetimagefromgen.js +42 -1
- package/sdk/models/operations/uploaddatasetimagefromgen.js.map +1 -1
- package/sdk/models/operations/uploadinitimage.d.ts +10 -0
- package/sdk/models/operations/uploadinitimage.d.ts.map +1 -1
- package/sdk/models/operations/uploadinitimage.js +34 -1
- package/sdk/models/operations/uploadinitimage.js.map +1 -1
- package/sdk/models/operations/uploadmodelasset.d.ts +10 -0
- package/sdk/models/operations/uploadmodelasset.d.ts.map +1 -1
- package/sdk/models/operations/uploadmodelasset.js +34 -1
- package/sdk/models/operations/uploadmodelasset.js.map +1 -1
- package/sdk/models/shared/controlnetinput.d.ts +4 -0
- package/sdk/models/shared/controlnetinput.d.ts.map +1 -1
- package/sdk/models/shared/controlnetinput.js +10 -1
- package/sdk/models/shared/controlnetinput.js.map +1 -1
- package/sdk/models/shared/elementinput.d.ts +4 -0
- package/sdk/models/shared/elementinput.d.ts.map +1 -1
- package/sdk/models/shared/elementinput.js +10 -1
- package/sdk/models/shared/elementinput.js.map +1 -1
- package/sdk/models/shared/sdversions.d.ts +2 -1
- package/sdk/models/shared/sdversions.d.ts.map +1 -1
- package/sdk/models/shared/sdversions.js +1 -0
- package/sdk/models/shared/sdversions.js.map +1 -1
- package/sdk/models/shared/security.d.ts +4 -0
- package/sdk/models/shared/security.d.ts.map +1 -1
- package/sdk/models/shared/security.js +10 -1
- package/sdk/models/shared/security.js.map +1 -1
- package/sdk/types/operations.d.ts +5 -3
- package/sdk/types/operations.d.ts.map +1 -1
- package/sdk/types/operations.js +3 -1
- package/sdk/types/operations.js.map +1 -1
- package/src/funcs/datasetCreateDataset.ts +11 -4
- package/src/funcs/datasetDeleteDatasetById.ts +11 -4
- package/src/funcs/datasetGetDatasetById.ts +11 -4
- package/src/funcs/datasetUploadDatasetImage.ts +11 -4
- package/src/funcs/datasetUploadDatasetImageFromGen.ts +11 -4
- package/src/funcs/elementsCreateElement.ts +132 -0
- package/src/funcs/elementsDeleteElementById.ts +142 -0
- package/src/funcs/elementsGetElementById.ts +142 -0
- package/src/funcs/elementsListElements.ts +11 -4
- package/src/funcs/imageCreateGeneration.ts +11 -4
- package/src/funcs/imageDeleteGenerationById.ts +11 -4
- package/src/funcs/imageGetGenerationById.ts +11 -4
- package/src/funcs/imageGetGenerationsByUserId.ts +11 -4
- package/src/funcs/initImagesDeleteInitImageById.ts +11 -4
- package/src/funcs/initImagesGetInitImageById.ts +11 -4
- package/src/funcs/initImagesUploadCanvasInitImage.ts +11 -4
- package/src/funcs/initImagesUploadInitImage.ts +11 -4
- package/src/funcs/modelsCreateModel.ts +11 -4
- package/src/funcs/modelsDeleteModelById.ts +11 -4
- package/src/funcs/modelsGetModelById.ts +11 -4
- package/src/funcs/modelsListPlatformModels.ts +11 -4
- package/src/funcs/motionCreateSVDMotionGeneration.ts +11 -4
- package/src/funcs/pricingCalculatorPricingCalculator.ts +11 -4
- package/src/funcs/promptPromptImprove.ts +11 -4
- package/src/funcs/promptPromptRandom.ts +11 -4
- package/src/funcs/realtimeCanvasCreateLCMGeneration.ts +11 -4
- package/src/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.ts +11 -4
- package/src/funcs/realtimeCanvasPerformInpaintingLCM.ts +11 -4
- package/src/funcs/realtimeCanvasPerformInstantRefine.ts +11 -4
- package/src/funcs/textureCreateTextureGeneration.ts +11 -4
- package/src/funcs/textureDeleteTextureGenerationById.ts +11 -4
- package/src/funcs/threeDModelAssetsDelete3DModelById.ts +11 -4
- package/src/funcs/threeDModelAssetsUploadModelAsset.ts +11 -4
- package/src/funcs/userGetUserSelf.ts +11 -4
- package/src/funcs/variationCreateUniversalUpscalerJob.ts +11 -4
- package/src/funcs/variationCreateVariationNoBG.ts +11 -4
- package/src/funcs/variationCreateVariationUnzoom.ts +11 -4
- package/src/funcs/variationCreateVariationUpscale.ts +11 -4
- package/src/funcs/variationGetVariationById.ts +11 -4
- package/src/hooks/types.ts +4 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +82 -0
- package/src/lib/retries.ts +63 -31
- package/src/lib/sdks.ts +19 -15
- package/src/lib/security.ts +39 -3
- package/src/sdk/elements.ts +54 -0
- package/src/sdk/models/operations/createdataset.ts +71 -0
- package/src/sdk/models/operations/createelement.ts +377 -0
- package/src/sdk/models/operations/creategeneration.ts +79 -0
- package/src/sdk/models/operations/createlcmgeneration.ts +81 -0
- package/src/sdk/models/operations/createmodel.ts +99 -20
- package/src/sdk/models/operations/createsvdmotiongeneration.ts +83 -0
- package/src/sdk/models/operations/createtexturegeneration.ts +83 -0
- package/src/sdk/models/operations/createuniversalupscalerjob.ts +85 -0
- package/src/sdk/models/operations/createvariationnobg.ts +81 -0
- package/src/sdk/models/operations/createvariationunzoom.ts +77 -0
- package/src/sdk/models/operations/createvariationupscale.ts +91 -0
- package/src/sdk/models/operations/delete3dmodelbyid.ts +93 -0
- package/src/sdk/models/operations/deletedatasetbyid.ts +77 -0
- package/src/sdk/models/operations/deleteelementbyid.ts +299 -0
- package/src/sdk/models/operations/deletegenerationbyid.ts +77 -0
- package/src/sdk/models/operations/deleteinitimagebyid.ts +75 -0
- package/src/sdk/models/operations/deletemodelbyid.ts +73 -0
- package/src/sdk/models/operations/deletetexturegenerationbyid.ts +114 -0
- package/src/sdk/models/operations/getdatasetbyid.ts +89 -0
- package/src/sdk/models/operations/getelementbyid.ts +355 -0
- package/src/sdk/models/operations/getgenerationbyid.ts +158 -0
- package/src/sdk/models/operations/getgenerationsbyuserid.ts +173 -0
- package/src/sdk/models/operations/getinitimagebyid.ts +77 -0
- package/src/sdk/models/operations/getmodelbyid.ts +75 -0
- package/src/sdk/models/operations/getuserself.ts +67 -0
- package/src/sdk/models/operations/getvariationbyid.ts +79 -0
- package/src/sdk/models/operations/index.ts +3 -0
- package/src/sdk/models/operations/listelements.ts +56 -3
- package/src/sdk/models/operations/listplatformmodels.ts +81 -0
- package/src/sdk/models/operations/performalchemyupscalelcm.ts +92 -0
- package/src/sdk/models/operations/performinpaintinglcm.ts +90 -0
- package/src/sdk/models/operations/performinstantrefine.ts +90 -0
- package/src/sdk/models/operations/pricingcalculator.ts +300 -0
- package/src/sdk/models/operations/promptimprove.ts +75 -0
- package/src/sdk/models/operations/promptrandom.ts +60 -0
- package/src/sdk/models/operations/uploadcanvasinitimage.ts +83 -0
- package/src/sdk/models/operations/uploaddatasetimage.ts +97 -0
- package/src/sdk/models/operations/uploaddatasetimagefromgen.ts +103 -0
- package/src/sdk/models/operations/uploadinitimage.ts +77 -0
- package/src/sdk/models/operations/uploadmodelasset.ts +79 -0
- package/src/sdk/models/shared/controlnetinput.ts +19 -0
- package/src/sdk/models/shared/elementinput.ts +17 -0
- package/src/sdk/models/shared/sdversions.ts +1 -0
- package/src/sdk/models/shared/security.ts +17 -0
- package/src/sdk/types/operations.ts +11 -5
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
7
10
|
|
|
8
11
|
/**
|
|
9
12
|
* columns and relationships of "users"
|
|
@@ -124,6 +127,20 @@ export namespace Users$ {
|
|
|
124
127
|
export type Outbound = Users$Outbound;
|
|
125
128
|
}
|
|
126
129
|
|
|
130
|
+
export function usersToJSON(users: Users): string {
|
|
131
|
+
return JSON.stringify(Users$outboundSchema.parse(users));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function usersFromJSON(
|
|
135
|
+
jsonString: string,
|
|
136
|
+
): SafeParseResult<Users, SDKValidationError> {
|
|
137
|
+
return safeParse(
|
|
138
|
+
jsonString,
|
|
139
|
+
(x) => Users$inboundSchema.parse(JSON.parse(x)),
|
|
140
|
+
`Failed to parse 'Users' from JSON`,
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
127
144
|
/** @internal */
|
|
128
145
|
export const UserDetails$inboundSchema: z.ZodType<
|
|
129
146
|
UserDetails,
|
|
@@ -187,6 +204,20 @@ export namespace UserDetails$ {
|
|
|
187
204
|
export type Outbound = UserDetails$Outbound;
|
|
188
205
|
}
|
|
189
206
|
|
|
207
|
+
export function userDetailsToJSON(userDetails: UserDetails): string {
|
|
208
|
+
return JSON.stringify(UserDetails$outboundSchema.parse(userDetails));
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export function userDetailsFromJSON(
|
|
212
|
+
jsonString: string,
|
|
213
|
+
): SafeParseResult<UserDetails, SDKValidationError> {
|
|
214
|
+
return safeParse(
|
|
215
|
+
jsonString,
|
|
216
|
+
(x) => UserDetails$inboundSchema.parse(JSON.parse(x)),
|
|
217
|
+
`Failed to parse 'UserDetails' from JSON`,
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
|
|
190
221
|
/** @internal */
|
|
191
222
|
export const GetUserSelfResponseBody$inboundSchema: z.ZodType<
|
|
192
223
|
GetUserSelfResponseBody,
|
|
@@ -231,6 +262,24 @@ export namespace GetUserSelfResponseBody$ {
|
|
|
231
262
|
export type Outbound = GetUserSelfResponseBody$Outbound;
|
|
232
263
|
}
|
|
233
264
|
|
|
265
|
+
export function getUserSelfResponseBodyToJSON(
|
|
266
|
+
getUserSelfResponseBody: GetUserSelfResponseBody,
|
|
267
|
+
): string {
|
|
268
|
+
return JSON.stringify(
|
|
269
|
+
GetUserSelfResponseBody$outboundSchema.parse(getUserSelfResponseBody),
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export function getUserSelfResponseBodyFromJSON(
|
|
274
|
+
jsonString: string,
|
|
275
|
+
): SafeParseResult<GetUserSelfResponseBody, SDKValidationError> {
|
|
276
|
+
return safeParse(
|
|
277
|
+
jsonString,
|
|
278
|
+
(x) => GetUserSelfResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
279
|
+
`Failed to parse 'GetUserSelfResponseBody' from JSON`,
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
|
|
234
283
|
/** @internal */
|
|
235
284
|
export const GetUserSelfResponse$inboundSchema: z.ZodType<
|
|
236
285
|
GetUserSelfResponse,
|
|
@@ -289,3 +338,21 @@ export namespace GetUserSelfResponse$ {
|
|
|
289
338
|
/** @deprecated use `GetUserSelfResponse$Outbound` instead. */
|
|
290
339
|
export type Outbound = GetUserSelfResponse$Outbound;
|
|
291
340
|
}
|
|
341
|
+
|
|
342
|
+
export function getUserSelfResponseToJSON(
|
|
343
|
+
getUserSelfResponse: GetUserSelfResponse,
|
|
344
|
+
): string {
|
|
345
|
+
return JSON.stringify(
|
|
346
|
+
GetUserSelfResponse$outboundSchema.parse(getUserSelfResponse),
|
|
347
|
+
);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export function getUserSelfResponseFromJSON(
|
|
351
|
+
jsonString: string,
|
|
352
|
+
): SafeParseResult<GetUserSelfResponse, SDKValidationError> {
|
|
353
|
+
return safeParse(
|
|
354
|
+
jsonString,
|
|
355
|
+
(x) => GetUserSelfResponse$inboundSchema.parse(JSON.parse(x)),
|
|
356
|
+
`Failed to parse 'GetUserSelfResponse' from JSON`,
|
|
357
|
+
);
|
|
358
|
+
}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
7
10
|
import * as shared from "../shared/index.js";
|
|
8
11
|
|
|
9
12
|
export type GetVariationByIdRequest = {
|
|
@@ -94,6 +97,24 @@ export namespace GetVariationByIdRequest$ {
|
|
|
94
97
|
export type Outbound = GetVariationByIdRequest$Outbound;
|
|
95
98
|
}
|
|
96
99
|
|
|
100
|
+
export function getVariationByIdRequestToJSON(
|
|
101
|
+
getVariationByIdRequest: GetVariationByIdRequest,
|
|
102
|
+
): string {
|
|
103
|
+
return JSON.stringify(
|
|
104
|
+
GetVariationByIdRequest$outboundSchema.parse(getVariationByIdRequest),
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function getVariationByIdRequestFromJSON(
|
|
109
|
+
jsonString: string,
|
|
110
|
+
): SafeParseResult<GetVariationByIdRequest, SDKValidationError> {
|
|
111
|
+
return safeParse(
|
|
112
|
+
jsonString,
|
|
113
|
+
(x) => GetVariationByIdRequest$inboundSchema.parse(JSON.parse(x)),
|
|
114
|
+
`Failed to parse 'GetVariationByIdRequest' from JSON`,
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
97
118
|
/** @internal */
|
|
98
119
|
export const GeneratedImageVariationGeneric$inboundSchema: z.ZodType<
|
|
99
120
|
GeneratedImageVariationGeneric,
|
|
@@ -142,6 +163,26 @@ export namespace GeneratedImageVariationGeneric$ {
|
|
|
142
163
|
export type Outbound = GeneratedImageVariationGeneric$Outbound;
|
|
143
164
|
}
|
|
144
165
|
|
|
166
|
+
export function generatedImageVariationGenericToJSON(
|
|
167
|
+
generatedImageVariationGeneric: GeneratedImageVariationGeneric,
|
|
168
|
+
): string {
|
|
169
|
+
return JSON.stringify(
|
|
170
|
+
GeneratedImageVariationGeneric$outboundSchema.parse(
|
|
171
|
+
generatedImageVariationGeneric,
|
|
172
|
+
),
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function generatedImageVariationGenericFromJSON(
|
|
177
|
+
jsonString: string,
|
|
178
|
+
): SafeParseResult<GeneratedImageVariationGeneric, SDKValidationError> {
|
|
179
|
+
return safeParse(
|
|
180
|
+
jsonString,
|
|
181
|
+
(x) => GeneratedImageVariationGeneric$inboundSchema.parse(JSON.parse(x)),
|
|
182
|
+
`Failed to parse 'GeneratedImageVariationGeneric' from JSON`,
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
|
|
145
186
|
/** @internal */
|
|
146
187
|
export const GetVariationByIdResponseBody$inboundSchema: z.ZodType<
|
|
147
188
|
GetVariationByIdResponseBody,
|
|
@@ -192,6 +233,26 @@ export namespace GetVariationByIdResponseBody$ {
|
|
|
192
233
|
export type Outbound = GetVariationByIdResponseBody$Outbound;
|
|
193
234
|
}
|
|
194
235
|
|
|
236
|
+
export function getVariationByIdResponseBodyToJSON(
|
|
237
|
+
getVariationByIdResponseBody: GetVariationByIdResponseBody,
|
|
238
|
+
): string {
|
|
239
|
+
return JSON.stringify(
|
|
240
|
+
GetVariationByIdResponseBody$outboundSchema.parse(
|
|
241
|
+
getVariationByIdResponseBody,
|
|
242
|
+
),
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export function getVariationByIdResponseBodyFromJSON(
|
|
247
|
+
jsonString: string,
|
|
248
|
+
): SafeParseResult<GetVariationByIdResponseBody, SDKValidationError> {
|
|
249
|
+
return safeParse(
|
|
250
|
+
jsonString,
|
|
251
|
+
(x) => GetVariationByIdResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
252
|
+
`Failed to parse 'GetVariationByIdResponseBody' from JSON`,
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
|
|
195
256
|
/** @internal */
|
|
196
257
|
export const GetVariationByIdResponse$inboundSchema: z.ZodType<
|
|
197
258
|
GetVariationByIdResponse,
|
|
@@ -250,3 +311,21 @@ export namespace GetVariationByIdResponse$ {
|
|
|
250
311
|
/** @deprecated use `GetVariationByIdResponse$Outbound` instead. */
|
|
251
312
|
export type Outbound = GetVariationByIdResponse$Outbound;
|
|
252
313
|
}
|
|
314
|
+
|
|
315
|
+
export function getVariationByIdResponseToJSON(
|
|
316
|
+
getVariationByIdResponse: GetVariationByIdResponse,
|
|
317
|
+
): string {
|
|
318
|
+
return JSON.stringify(
|
|
319
|
+
GetVariationByIdResponse$outboundSchema.parse(getVariationByIdResponse),
|
|
320
|
+
);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export function getVariationByIdResponseFromJSON(
|
|
324
|
+
jsonString: string,
|
|
325
|
+
): SafeParseResult<GetVariationByIdResponse, SDKValidationError> {
|
|
326
|
+
return safeParse(
|
|
327
|
+
jsonString,
|
|
328
|
+
(x) => GetVariationByIdResponse$inboundSchema.parse(JSON.parse(x)),
|
|
329
|
+
`Failed to parse 'GetVariationByIdResponse' from JSON`,
|
|
330
|
+
);
|
|
331
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export * from "./createdataset.js";
|
|
6
|
+
export * from "./createelement.js";
|
|
6
7
|
export * from "./creategeneration.js";
|
|
7
8
|
export * from "./createlcmgeneration.js";
|
|
8
9
|
export * from "./createmodel.js";
|
|
@@ -14,11 +15,13 @@ export * from "./createvariationunzoom.js";
|
|
|
14
15
|
export * from "./createvariationupscale.js";
|
|
15
16
|
export * from "./delete3dmodelbyid.js";
|
|
16
17
|
export * from "./deletedatasetbyid.js";
|
|
18
|
+
export * from "./deleteelementbyid.js";
|
|
17
19
|
export * from "./deletegenerationbyid.js";
|
|
18
20
|
export * from "./deleteinitimagebyid.js";
|
|
19
21
|
export * from "./deletemodelbyid.js";
|
|
20
22
|
export * from "./deletetexturegenerationbyid.js";
|
|
21
23
|
export * from "./getdatasetbyid.js";
|
|
24
|
+
export * from "./getelementbyid.js";
|
|
22
25
|
export * from "./getgenerationbyid.js";
|
|
23
26
|
export * from "./getgenerationsbyuserid.js";
|
|
24
27
|
export * from "./getinitimagebyid.js";
|
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
7
10
|
import * as shared from "../shared/index.js";
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
|
-
* columns and relationships of "elements"
|
|
13
|
+
* columns and relationships of "elements".
|
|
11
14
|
*/
|
|
12
15
|
export type Loras = {
|
|
13
16
|
/**
|
|
@@ -49,7 +52,7 @@ export type Loras = {
|
|
|
49
52
|
};
|
|
50
53
|
|
|
51
54
|
/**
|
|
52
|
-
* Responses for GET /api/rest/v1/elements
|
|
55
|
+
* Responses for GET /api/rest/v1/elements.
|
|
53
56
|
*/
|
|
54
57
|
export type ListElementsResponseBody = {
|
|
55
58
|
loras?: Array<Loras> | undefined;
|
|
@@ -69,7 +72,7 @@ export type ListElementsResponse = {
|
|
|
69
72
|
*/
|
|
70
73
|
rawResponse: Response;
|
|
71
74
|
/**
|
|
72
|
-
* Responses for GET /api/rest/v1/elements
|
|
75
|
+
* Responses for GET /api/rest/v1/elements.
|
|
73
76
|
*/
|
|
74
77
|
object?: ListElementsResponseBody | undefined;
|
|
75
78
|
};
|
|
@@ -131,6 +134,20 @@ export namespace Loras$ {
|
|
|
131
134
|
export type Outbound = Loras$Outbound;
|
|
132
135
|
}
|
|
133
136
|
|
|
137
|
+
export function lorasToJSON(loras: Loras): string {
|
|
138
|
+
return JSON.stringify(Loras$outboundSchema.parse(loras));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function lorasFromJSON(
|
|
142
|
+
jsonString: string,
|
|
143
|
+
): SafeParseResult<Loras, SDKValidationError> {
|
|
144
|
+
return safeParse(
|
|
145
|
+
jsonString,
|
|
146
|
+
(x) => Loras$inboundSchema.parse(JSON.parse(x)),
|
|
147
|
+
`Failed to parse 'Loras' from JSON`,
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
134
151
|
/** @internal */
|
|
135
152
|
export const ListElementsResponseBody$inboundSchema: z.ZodType<
|
|
136
153
|
ListElementsResponseBody,
|
|
@@ -167,6 +184,24 @@ export namespace ListElementsResponseBody$ {
|
|
|
167
184
|
export type Outbound = ListElementsResponseBody$Outbound;
|
|
168
185
|
}
|
|
169
186
|
|
|
187
|
+
export function listElementsResponseBodyToJSON(
|
|
188
|
+
listElementsResponseBody: ListElementsResponseBody,
|
|
189
|
+
): string {
|
|
190
|
+
return JSON.stringify(
|
|
191
|
+
ListElementsResponseBody$outboundSchema.parse(listElementsResponseBody),
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export function listElementsResponseBodyFromJSON(
|
|
196
|
+
jsonString: string,
|
|
197
|
+
): SafeParseResult<ListElementsResponseBody, SDKValidationError> {
|
|
198
|
+
return safeParse(
|
|
199
|
+
jsonString,
|
|
200
|
+
(x) => ListElementsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
201
|
+
`Failed to parse 'ListElementsResponseBody' from JSON`,
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
170
205
|
/** @internal */
|
|
171
206
|
export const ListElementsResponse$inboundSchema: z.ZodType<
|
|
172
207
|
ListElementsResponse,
|
|
@@ -225,3 +260,21 @@ export namespace ListElementsResponse$ {
|
|
|
225
260
|
/** @deprecated use `ListElementsResponse$Outbound` instead. */
|
|
226
261
|
export type Outbound = ListElementsResponse$Outbound;
|
|
227
262
|
}
|
|
263
|
+
|
|
264
|
+
export function listElementsResponseToJSON(
|
|
265
|
+
listElementsResponse: ListElementsResponse,
|
|
266
|
+
): string {
|
|
267
|
+
return JSON.stringify(
|
|
268
|
+
ListElementsResponse$outboundSchema.parse(listElementsResponse),
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export function listElementsResponseFromJSON(
|
|
273
|
+
jsonString: string,
|
|
274
|
+
): SafeParseResult<ListElementsResponse, SDKValidationError> {
|
|
275
|
+
return safeParse(
|
|
276
|
+
jsonString,
|
|
277
|
+
(x) => ListElementsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
278
|
+
`Failed to parse 'ListElementsResponse' from JSON`,
|
|
279
|
+
);
|
|
280
|
+
}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
7
10
|
|
|
8
11
|
/**
|
|
9
12
|
* columns and relationships of "generated_images"
|
|
@@ -94,6 +97,26 @@ export namespace ListPlatformModelsGeneratedImages$ {
|
|
|
94
97
|
export type Outbound = ListPlatformModelsGeneratedImages$Outbound;
|
|
95
98
|
}
|
|
96
99
|
|
|
100
|
+
export function listPlatformModelsGeneratedImagesToJSON(
|
|
101
|
+
listPlatformModelsGeneratedImages: ListPlatformModelsGeneratedImages,
|
|
102
|
+
): string {
|
|
103
|
+
return JSON.stringify(
|
|
104
|
+
ListPlatformModelsGeneratedImages$outboundSchema.parse(
|
|
105
|
+
listPlatformModelsGeneratedImages,
|
|
106
|
+
),
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function listPlatformModelsGeneratedImagesFromJSON(
|
|
111
|
+
jsonString: string,
|
|
112
|
+
): SafeParseResult<ListPlatformModelsGeneratedImages, SDKValidationError> {
|
|
113
|
+
return safeParse(
|
|
114
|
+
jsonString,
|
|
115
|
+
(x) => ListPlatformModelsGeneratedImages$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'ListPlatformModelsGeneratedImages' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
97
120
|
/** @internal */
|
|
98
121
|
export const ListPlatformModelsCustomModels$inboundSchema: z.ZodType<
|
|
99
122
|
ListPlatformModelsCustomModels,
|
|
@@ -160,6 +183,26 @@ export namespace ListPlatformModelsCustomModels$ {
|
|
|
160
183
|
export type Outbound = ListPlatformModelsCustomModels$Outbound;
|
|
161
184
|
}
|
|
162
185
|
|
|
186
|
+
export function listPlatformModelsCustomModelsToJSON(
|
|
187
|
+
listPlatformModelsCustomModels: ListPlatformModelsCustomModels,
|
|
188
|
+
): string {
|
|
189
|
+
return JSON.stringify(
|
|
190
|
+
ListPlatformModelsCustomModels$outboundSchema.parse(
|
|
191
|
+
listPlatformModelsCustomModels,
|
|
192
|
+
),
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export function listPlatformModelsCustomModelsFromJSON(
|
|
197
|
+
jsonString: string,
|
|
198
|
+
): SafeParseResult<ListPlatformModelsCustomModels, SDKValidationError> {
|
|
199
|
+
return safeParse(
|
|
200
|
+
jsonString,
|
|
201
|
+
(x) => ListPlatformModelsCustomModels$inboundSchema.parse(JSON.parse(x)),
|
|
202
|
+
`Failed to parse 'ListPlatformModelsCustomModels' from JSON`,
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
163
206
|
/** @internal */
|
|
164
207
|
export const ListPlatformModelsResponseBody$inboundSchema: z.ZodType<
|
|
165
208
|
ListPlatformModelsResponseBody,
|
|
@@ -208,6 +251,26 @@ export namespace ListPlatformModelsResponseBody$ {
|
|
|
208
251
|
export type Outbound = ListPlatformModelsResponseBody$Outbound;
|
|
209
252
|
}
|
|
210
253
|
|
|
254
|
+
export function listPlatformModelsResponseBodyToJSON(
|
|
255
|
+
listPlatformModelsResponseBody: ListPlatformModelsResponseBody,
|
|
256
|
+
): string {
|
|
257
|
+
return JSON.stringify(
|
|
258
|
+
ListPlatformModelsResponseBody$outboundSchema.parse(
|
|
259
|
+
listPlatformModelsResponseBody,
|
|
260
|
+
),
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export function listPlatformModelsResponseBodyFromJSON(
|
|
265
|
+
jsonString: string,
|
|
266
|
+
): SafeParseResult<ListPlatformModelsResponseBody, SDKValidationError> {
|
|
267
|
+
return safeParse(
|
|
268
|
+
jsonString,
|
|
269
|
+
(x) => ListPlatformModelsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
270
|
+
`Failed to parse 'ListPlatformModelsResponseBody' from JSON`,
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
|
|
211
274
|
/** @internal */
|
|
212
275
|
export const ListPlatformModelsResponse$inboundSchema: z.ZodType<
|
|
213
276
|
ListPlatformModelsResponse,
|
|
@@ -267,3 +330,21 @@ export namespace ListPlatformModelsResponse$ {
|
|
|
267
330
|
/** @deprecated use `ListPlatformModelsResponse$Outbound` instead. */
|
|
268
331
|
export type Outbound = ListPlatformModelsResponse$Outbound;
|
|
269
332
|
}
|
|
333
|
+
|
|
334
|
+
export function listPlatformModelsResponseToJSON(
|
|
335
|
+
listPlatformModelsResponse: ListPlatformModelsResponse,
|
|
336
|
+
): string {
|
|
337
|
+
return JSON.stringify(
|
|
338
|
+
ListPlatformModelsResponse$outboundSchema.parse(listPlatformModelsResponse),
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export function listPlatformModelsResponseFromJSON(
|
|
343
|
+
jsonString: string,
|
|
344
|
+
): SafeParseResult<ListPlatformModelsResponse, SDKValidationError> {
|
|
345
|
+
return safeParse(
|
|
346
|
+
jsonString,
|
|
347
|
+
(x) => ListPlatformModelsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
348
|
+
`Failed to parse 'ListPlatformModelsResponse' from JSON`,
|
|
349
|
+
);
|
|
350
|
+
}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
7
10
|
import * as shared from "../shared/index.js";
|
|
8
11
|
|
|
9
12
|
/**
|
|
@@ -166,6 +169,27 @@ export namespace PerformAlchemyUpscaleLCMRequestBody$ {
|
|
|
166
169
|
export type Outbound = PerformAlchemyUpscaleLCMRequestBody$Outbound;
|
|
167
170
|
}
|
|
168
171
|
|
|
172
|
+
export function performAlchemyUpscaleLCMRequestBodyToJSON(
|
|
173
|
+
performAlchemyUpscaleLCMRequestBody: PerformAlchemyUpscaleLCMRequestBody,
|
|
174
|
+
): string {
|
|
175
|
+
return JSON.stringify(
|
|
176
|
+
PerformAlchemyUpscaleLCMRequestBody$outboundSchema.parse(
|
|
177
|
+
performAlchemyUpscaleLCMRequestBody,
|
|
178
|
+
),
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export function performAlchemyUpscaleLCMRequestBodyFromJSON(
|
|
183
|
+
jsonString: string,
|
|
184
|
+
): SafeParseResult<PerformAlchemyUpscaleLCMRequestBody, SDKValidationError> {
|
|
185
|
+
return safeParse(
|
|
186
|
+
jsonString,
|
|
187
|
+
(x) =>
|
|
188
|
+
PerformAlchemyUpscaleLCMRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
189
|
+
`Failed to parse 'PerformAlchemyUpscaleLCMRequestBody' from JSON`,
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
169
193
|
/** @internal */
|
|
170
194
|
export const PerformAlchemyUpscaleLCMLCMGenerationOutput$inboundSchema:
|
|
171
195
|
z.ZodType<
|
|
@@ -221,6 +245,33 @@ export namespace PerformAlchemyUpscaleLCMLCMGenerationOutput$ {
|
|
|
221
245
|
export type Outbound = PerformAlchemyUpscaleLCMLCMGenerationOutput$Outbound;
|
|
222
246
|
}
|
|
223
247
|
|
|
248
|
+
export function performAlchemyUpscaleLCMLCMGenerationOutputToJSON(
|
|
249
|
+
performAlchemyUpscaleLCMLCMGenerationOutput:
|
|
250
|
+
PerformAlchemyUpscaleLCMLCMGenerationOutput,
|
|
251
|
+
): string {
|
|
252
|
+
return JSON.stringify(
|
|
253
|
+
PerformAlchemyUpscaleLCMLCMGenerationOutput$outboundSchema.parse(
|
|
254
|
+
performAlchemyUpscaleLCMLCMGenerationOutput,
|
|
255
|
+
),
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export function performAlchemyUpscaleLCMLCMGenerationOutputFromJSON(
|
|
260
|
+
jsonString: string,
|
|
261
|
+
): SafeParseResult<
|
|
262
|
+
PerformAlchemyUpscaleLCMLCMGenerationOutput,
|
|
263
|
+
SDKValidationError
|
|
264
|
+
> {
|
|
265
|
+
return safeParse(
|
|
266
|
+
jsonString,
|
|
267
|
+
(x) =>
|
|
268
|
+
PerformAlchemyUpscaleLCMLCMGenerationOutput$inboundSchema.parse(
|
|
269
|
+
JSON.parse(x),
|
|
270
|
+
),
|
|
271
|
+
`Failed to parse 'PerformAlchemyUpscaleLCMLCMGenerationOutput' from JSON`,
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
|
|
224
275
|
/** @internal */
|
|
225
276
|
export const PerformAlchemyUpscaleLCMResponseBody$inboundSchema: z.ZodType<
|
|
226
277
|
PerformAlchemyUpscaleLCMResponseBody,
|
|
@@ -266,6 +317,27 @@ export namespace PerformAlchemyUpscaleLCMResponseBody$ {
|
|
|
266
317
|
export type Outbound = PerformAlchemyUpscaleLCMResponseBody$Outbound;
|
|
267
318
|
}
|
|
268
319
|
|
|
320
|
+
export function performAlchemyUpscaleLCMResponseBodyToJSON(
|
|
321
|
+
performAlchemyUpscaleLCMResponseBody: PerformAlchemyUpscaleLCMResponseBody,
|
|
322
|
+
): string {
|
|
323
|
+
return JSON.stringify(
|
|
324
|
+
PerformAlchemyUpscaleLCMResponseBody$outboundSchema.parse(
|
|
325
|
+
performAlchemyUpscaleLCMResponseBody,
|
|
326
|
+
),
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export function performAlchemyUpscaleLCMResponseBodyFromJSON(
|
|
331
|
+
jsonString: string,
|
|
332
|
+
): SafeParseResult<PerformAlchemyUpscaleLCMResponseBody, SDKValidationError> {
|
|
333
|
+
return safeParse(
|
|
334
|
+
jsonString,
|
|
335
|
+
(x) =>
|
|
336
|
+
PerformAlchemyUpscaleLCMResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
337
|
+
`Failed to parse 'PerformAlchemyUpscaleLCMResponseBody' from JSON`,
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
|
|
269
341
|
/** @internal */
|
|
270
342
|
export const PerformAlchemyUpscaleLCMResponse$inboundSchema: z.ZodType<
|
|
271
343
|
PerformAlchemyUpscaleLCMResponse,
|
|
@@ -326,3 +398,23 @@ export namespace PerformAlchemyUpscaleLCMResponse$ {
|
|
|
326
398
|
/** @deprecated use `PerformAlchemyUpscaleLCMResponse$Outbound` instead. */
|
|
327
399
|
export type Outbound = PerformAlchemyUpscaleLCMResponse$Outbound;
|
|
328
400
|
}
|
|
401
|
+
|
|
402
|
+
export function performAlchemyUpscaleLCMResponseToJSON(
|
|
403
|
+
performAlchemyUpscaleLCMResponse: PerformAlchemyUpscaleLCMResponse,
|
|
404
|
+
): string {
|
|
405
|
+
return JSON.stringify(
|
|
406
|
+
PerformAlchemyUpscaleLCMResponse$outboundSchema.parse(
|
|
407
|
+
performAlchemyUpscaleLCMResponse,
|
|
408
|
+
),
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export function performAlchemyUpscaleLCMResponseFromJSON(
|
|
413
|
+
jsonString: string,
|
|
414
|
+
): SafeParseResult<PerformAlchemyUpscaleLCMResponse, SDKValidationError> {
|
|
415
|
+
return safeParse(
|
|
416
|
+
jsonString,
|
|
417
|
+
(x) => PerformAlchemyUpscaleLCMResponse$inboundSchema.parse(JSON.parse(x)),
|
|
418
|
+
`Failed to parse 'PerformAlchemyUpscaleLCMResponse' from JSON`,
|
|
419
|
+
);
|
|
420
|
+
}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
7
10
|
import * as shared from "../shared/index.js";
|
|
8
11
|
|
|
9
12
|
/**
|
|
@@ -151,6 +154,26 @@ export namespace PerformInpaintingLCMRequestBody$ {
|
|
|
151
154
|
export type Outbound = PerformInpaintingLCMRequestBody$Outbound;
|
|
152
155
|
}
|
|
153
156
|
|
|
157
|
+
export function performInpaintingLCMRequestBodyToJSON(
|
|
158
|
+
performInpaintingLCMRequestBody: PerformInpaintingLCMRequestBody,
|
|
159
|
+
): string {
|
|
160
|
+
return JSON.stringify(
|
|
161
|
+
PerformInpaintingLCMRequestBody$outboundSchema.parse(
|
|
162
|
+
performInpaintingLCMRequestBody,
|
|
163
|
+
),
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function performInpaintingLCMRequestBodyFromJSON(
|
|
168
|
+
jsonString: string,
|
|
169
|
+
): SafeParseResult<PerformInpaintingLCMRequestBody, SDKValidationError> {
|
|
170
|
+
return safeParse(
|
|
171
|
+
jsonString,
|
|
172
|
+
(x) => PerformInpaintingLCMRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
173
|
+
`Failed to parse 'PerformInpaintingLCMRequestBody' from JSON`,
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
154
177
|
/** @internal */
|
|
155
178
|
export const PerformInpaintingLCMLCMGenerationOutput$inboundSchema: z.ZodType<
|
|
156
179
|
PerformInpaintingLCMLCMGenerationOutput,
|
|
@@ -195,6 +218,33 @@ export namespace PerformInpaintingLCMLCMGenerationOutput$ {
|
|
|
195
218
|
export type Outbound = PerformInpaintingLCMLCMGenerationOutput$Outbound;
|
|
196
219
|
}
|
|
197
220
|
|
|
221
|
+
export function performInpaintingLCMLCMGenerationOutputToJSON(
|
|
222
|
+
performInpaintingLCMLCMGenerationOutput:
|
|
223
|
+
PerformInpaintingLCMLCMGenerationOutput,
|
|
224
|
+
): string {
|
|
225
|
+
return JSON.stringify(
|
|
226
|
+
PerformInpaintingLCMLCMGenerationOutput$outboundSchema.parse(
|
|
227
|
+
performInpaintingLCMLCMGenerationOutput,
|
|
228
|
+
),
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export function performInpaintingLCMLCMGenerationOutputFromJSON(
|
|
233
|
+
jsonString: string,
|
|
234
|
+
): SafeParseResult<
|
|
235
|
+
PerformInpaintingLCMLCMGenerationOutput,
|
|
236
|
+
SDKValidationError
|
|
237
|
+
> {
|
|
238
|
+
return safeParse(
|
|
239
|
+
jsonString,
|
|
240
|
+
(x) =>
|
|
241
|
+
PerformInpaintingLCMLCMGenerationOutput$inboundSchema.parse(
|
|
242
|
+
JSON.parse(x),
|
|
243
|
+
),
|
|
244
|
+
`Failed to parse 'PerformInpaintingLCMLCMGenerationOutput' from JSON`,
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
|
|
198
248
|
/** @internal */
|
|
199
249
|
export const PerformInpaintingLCMResponseBody$inboundSchema: z.ZodType<
|
|
200
250
|
PerformInpaintingLCMResponseBody,
|
|
@@ -238,6 +288,26 @@ export namespace PerformInpaintingLCMResponseBody$ {
|
|
|
238
288
|
export type Outbound = PerformInpaintingLCMResponseBody$Outbound;
|
|
239
289
|
}
|
|
240
290
|
|
|
291
|
+
export function performInpaintingLCMResponseBodyToJSON(
|
|
292
|
+
performInpaintingLCMResponseBody: PerformInpaintingLCMResponseBody,
|
|
293
|
+
): string {
|
|
294
|
+
return JSON.stringify(
|
|
295
|
+
PerformInpaintingLCMResponseBody$outboundSchema.parse(
|
|
296
|
+
performInpaintingLCMResponseBody,
|
|
297
|
+
),
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export function performInpaintingLCMResponseBodyFromJSON(
|
|
302
|
+
jsonString: string,
|
|
303
|
+
): SafeParseResult<PerformInpaintingLCMResponseBody, SDKValidationError> {
|
|
304
|
+
return safeParse(
|
|
305
|
+
jsonString,
|
|
306
|
+
(x) => PerformInpaintingLCMResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
307
|
+
`Failed to parse 'PerformInpaintingLCMResponseBody' from JSON`,
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
|
|
241
311
|
/** @internal */
|
|
242
312
|
export const PerformInpaintingLCMResponse$inboundSchema: z.ZodType<
|
|
243
313
|
PerformInpaintingLCMResponse,
|
|
@@ -298,3 +368,23 @@ export namespace PerformInpaintingLCMResponse$ {
|
|
|
298
368
|
/** @deprecated use `PerformInpaintingLCMResponse$Outbound` instead. */
|
|
299
369
|
export type Outbound = PerformInpaintingLCMResponse$Outbound;
|
|
300
370
|
}
|
|
371
|
+
|
|
372
|
+
export function performInpaintingLCMResponseToJSON(
|
|
373
|
+
performInpaintingLCMResponse: PerformInpaintingLCMResponse,
|
|
374
|
+
): string {
|
|
375
|
+
return JSON.stringify(
|
|
376
|
+
PerformInpaintingLCMResponse$outboundSchema.parse(
|
|
377
|
+
performInpaintingLCMResponse,
|
|
378
|
+
),
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export function performInpaintingLCMResponseFromJSON(
|
|
383
|
+
jsonString: string,
|
|
384
|
+
): SafeParseResult<PerformInpaintingLCMResponse, SDKValidationError> {
|
|
385
|
+
return safeParse(
|
|
386
|
+
jsonString,
|
|
387
|
+
(x) => PerformInpaintingLCMResponse$inboundSchema.parse(JSON.parse(x)),
|
|
388
|
+
`Failed to parse 'PerformInpaintingLCMResponse' from JSON`,
|
|
389
|
+
);
|
|
390
|
+
}
|