@leonardo-ai/sdk 4.20.0 → 4.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +40 -24
- package/README.md +298 -79
- package/RUNTIMES.md +6 -6
- package/examples/blueprintsExecuteBlueprint.example.ts +59 -0
- package/funcs/blueprintsExecuteBlueprint.d.ts +17 -0
- package/funcs/blueprintsExecuteBlueprint.d.ts.map +1 -0
- package/funcs/blueprintsExecuteBlueprint.js +125 -0
- package/funcs/blueprintsExecuteBlueprint.js.map +1 -0
- package/funcs/blueprintsGetBlueprintById.d.ts +17 -0
- package/funcs/blueprintsGetBlueprintById.d.ts.map +1 -0
- package/funcs/blueprintsGetBlueprintById.js +131 -0
- package/funcs/blueprintsGetBlueprintById.js.map +1 -0
- package/funcs/blueprintsGetBlueprintExecution.d.ts +17 -0
- package/funcs/blueprintsGetBlueprintExecution.d.ts.map +1 -0
- package/funcs/blueprintsGetBlueprintExecution.js +131 -0
- package/funcs/blueprintsGetBlueprintExecution.js.map +1 -0
- package/funcs/blueprintsGetBlueprintExecutionGenerations.d.ts +17 -0
- package/funcs/blueprintsGetBlueprintExecutionGenerations.d.ts.map +1 -0
- package/funcs/blueprintsGetBlueprintExecutionGenerations.js +140 -0
- package/funcs/blueprintsGetBlueprintExecutionGenerations.js.map +1 -0
- package/funcs/blueprintsGetBlueprintVersionsByBlueprintId.d.ts +17 -0
- package/funcs/blueprintsGetBlueprintVersionsByBlueprintId.d.ts.map +1 -0
- package/funcs/blueprintsGetBlueprintVersionsByBlueprintId.js +129 -0
- package/funcs/blueprintsGetBlueprintVersionsByBlueprintId.js.map +1 -0
- package/funcs/datasetCreateDataset.d.ts +4 -2
- package/funcs/datasetCreateDataset.d.ts.map +1 -1
- package/funcs/datasetCreateDataset.js +33 -17
- package/funcs/datasetCreateDataset.js.map +1 -1
- package/funcs/datasetDeleteDatasetById.d.ts +4 -2
- package/funcs/datasetDeleteDatasetById.d.ts.map +1 -1
- package/funcs/datasetDeleteDatasetById.js +33 -17
- package/funcs/datasetDeleteDatasetById.js.map +1 -1
- package/funcs/datasetGetDatasetById.d.ts +4 -2
- package/funcs/datasetGetDatasetById.d.ts.map +1 -1
- package/funcs/datasetGetDatasetById.js +33 -17
- package/funcs/datasetGetDatasetById.js.map +1 -1
- package/funcs/datasetUploadDatasetImage.d.ts +4 -2
- package/funcs/datasetUploadDatasetImage.d.ts.map +1 -1
- package/funcs/datasetUploadDatasetImage.js +33 -17
- package/funcs/datasetUploadDatasetImage.js.map +1 -1
- package/funcs/datasetUploadDatasetImageFromGen.d.ts +4 -2
- package/funcs/datasetUploadDatasetImageFromGen.d.ts.map +1 -1
- package/funcs/datasetUploadDatasetImageFromGen.js +33 -17
- package/funcs/datasetUploadDatasetImageFromGen.js.map +1 -1
- package/funcs/elementsCreateElement.d.ts +4 -2
- package/funcs/elementsCreateElement.d.ts.map +1 -1
- package/funcs/elementsCreateElement.js +33 -17
- package/funcs/elementsCreateElement.js.map +1 -1
- package/funcs/elementsDeleteElementById.d.ts +4 -2
- package/funcs/elementsDeleteElementById.d.ts.map +1 -1
- package/funcs/elementsDeleteElementById.js +33 -17
- package/funcs/elementsDeleteElementById.js.map +1 -1
- package/funcs/elementsGetCustomElementsByUserId.d.ts +4 -2
- package/funcs/elementsGetCustomElementsByUserId.d.ts.map +1 -1
- package/funcs/elementsGetCustomElementsByUserId.js +33 -17
- package/funcs/elementsGetCustomElementsByUserId.js.map +1 -1
- package/funcs/elementsGetElementById.d.ts +4 -2
- package/funcs/elementsGetElementById.d.ts.map +1 -1
- package/funcs/elementsGetElementById.js +33 -17
- package/funcs/elementsGetElementById.js.map +1 -1
- package/funcs/elementsListElements.d.ts +4 -2
- package/funcs/elementsListElements.d.ts.map +1 -1
- package/funcs/elementsListElements.js +32 -16
- package/funcs/elementsListElements.js.map +1 -1
- package/funcs/imageCreateGeneration.d.ts +4 -2
- package/funcs/imageCreateGeneration.d.ts.map +1 -1
- package/funcs/imageCreateGeneration.js +33 -17
- package/funcs/imageCreateGeneration.js.map +1 -1
- package/funcs/imageDeleteGenerationById.d.ts +4 -2
- package/funcs/imageDeleteGenerationById.d.ts.map +1 -1
- package/funcs/imageDeleteGenerationById.js +33 -17
- package/funcs/imageDeleteGenerationById.js.map +1 -1
- package/funcs/imageGetGenerationById.d.ts +4 -2
- package/funcs/imageGetGenerationById.d.ts.map +1 -1
- package/funcs/imageGetGenerationById.js +33 -17
- package/funcs/imageGetGenerationById.js.map +1 -1
- package/funcs/imageGetGenerationsByUserId.d.ts +4 -2
- package/funcs/imageGetGenerationsByUserId.d.ts.map +1 -1
- package/funcs/imageGetGenerationsByUserId.js +33 -17
- package/funcs/imageGetGenerationsByUserId.js.map +1 -1
- package/funcs/initImagesDeleteInitImageById.d.ts +4 -2
- package/funcs/initImagesDeleteInitImageById.d.ts.map +1 -1
- package/funcs/initImagesDeleteInitImageById.js +33 -17
- package/funcs/initImagesDeleteInitImageById.js.map +1 -1
- package/funcs/initImagesGetInitImageById.d.ts +4 -2
- package/funcs/initImagesGetInitImageById.d.ts.map +1 -1
- package/funcs/initImagesGetInitImageById.js +33 -17
- package/funcs/initImagesGetInitImageById.js.map +1 -1
- package/funcs/initImagesUploadCanvasInitImage.d.ts +4 -2
- package/funcs/initImagesUploadCanvasInitImage.d.ts.map +1 -1
- package/funcs/initImagesUploadCanvasInitImage.js +33 -17
- package/funcs/initImagesUploadCanvasInitImage.js.map +1 -1
- package/funcs/initImagesUploadInitImage.d.ts +4 -2
- package/funcs/initImagesUploadInitImage.d.ts.map +1 -1
- package/funcs/initImagesUploadInitImage.js +33 -17
- package/funcs/initImagesUploadInitImage.js.map +1 -1
- package/funcs/mediaDeleteUploadedMediaById.d.ts +17 -0
- package/funcs/mediaDeleteUploadedMediaById.d.ts.map +1 -0
- package/funcs/mediaDeleteUploadedMediaById.js +131 -0
- package/funcs/mediaDeleteUploadedMediaById.js.map +1 -0
- package/funcs/mediaGetUploadedMediaById.d.ts +17 -0
- package/funcs/mediaGetUploadedMediaById.d.ts.map +1 -0
- package/funcs/mediaGetUploadedMediaById.js +131 -0
- package/funcs/mediaGetUploadedMediaById.js.map +1 -0
- package/funcs/mediaUploadMedia.d.ts +17 -0
- package/funcs/mediaUploadMedia.d.ts.map +1 -0
- package/funcs/mediaUploadMedia.js +123 -0
- package/funcs/mediaUploadMedia.js.map +1 -0
- package/funcs/modelsCreateModel.d.ts +4 -2
- package/funcs/modelsCreateModel.d.ts.map +1 -1
- package/funcs/modelsCreateModel.js +33 -17
- package/funcs/modelsCreateModel.js.map +1 -1
- package/funcs/modelsDeleteModelById.d.ts +4 -2
- package/funcs/modelsDeleteModelById.d.ts.map +1 -1
- package/funcs/modelsDeleteModelById.js +33 -17
- package/funcs/modelsDeleteModelById.js.map +1 -1
- package/funcs/modelsGetCustomModelsByUserId.d.ts +4 -2
- package/funcs/modelsGetCustomModelsByUserId.d.ts.map +1 -1
- package/funcs/modelsGetCustomModelsByUserId.js +33 -17
- package/funcs/modelsGetCustomModelsByUserId.js.map +1 -1
- package/funcs/modelsGetModelById.d.ts +4 -2
- package/funcs/modelsGetModelById.d.ts.map +1 -1
- package/funcs/modelsGetModelById.js +33 -17
- package/funcs/modelsGetModelById.js.map +1 -1
- package/funcs/modelsListPlatformModels.d.ts +4 -2
- package/funcs/modelsListPlatformModels.d.ts.map +1 -1
- package/funcs/modelsListPlatformModels.js +32 -16
- package/funcs/modelsListPlatformModels.js.map +1 -1
- package/funcs/motionCreateImageToVideoGeneration.d.ts +17 -0
- package/funcs/motionCreateImageToVideoGeneration.d.ts.map +1 -0
- package/funcs/motionCreateImageToVideoGeneration.js +126 -0
- package/funcs/motionCreateImageToVideoGeneration.js.map +1 -0
- package/funcs/motionCreateSVDMotionGeneration.d.ts +4 -2
- package/funcs/motionCreateSVDMotionGeneration.d.ts.map +1 -1
- package/funcs/motionCreateSVDMotionGeneration.js +33 -17
- package/funcs/motionCreateSVDMotionGeneration.js.map +1 -1
- package/funcs/motionCreateTextToVideoGeneration.d.ts +17 -0
- package/funcs/motionCreateTextToVideoGeneration.d.ts.map +1 -0
- package/funcs/motionCreateTextToVideoGeneration.js +126 -0
- package/funcs/motionCreateTextToVideoGeneration.js.map +1 -0
- package/funcs/motionCreateVideoUpscale.d.ts +17 -0
- package/funcs/motionCreateVideoUpscale.d.ts.map +1 -0
- package/funcs/motionCreateVideoUpscale.js +125 -0
- package/funcs/motionCreateVideoUpscale.js.map +1 -0
- package/funcs/pricingCalculatorPricingCalculator.d.ts +4 -2
- package/funcs/pricingCalculatorPricingCalculator.d.ts.map +1 -1
- package/funcs/pricingCalculatorPricingCalculator.js +33 -17
- package/funcs/pricingCalculatorPricingCalculator.js.map +1 -1
- package/funcs/promptPromptImprove.d.ts +4 -2
- package/funcs/promptPromptImprove.d.ts.map +1 -1
- package/funcs/promptPromptImprove.js +33 -17
- package/funcs/promptPromptImprove.js.map +1 -1
- package/funcs/promptPromptRandom.d.ts +4 -2
- package/funcs/promptPromptRandom.d.ts.map +1 -1
- package/funcs/promptPromptRandom.js +32 -16
- package/funcs/promptPromptRandom.js.map +1 -1
- package/funcs/realtimeCanvasCreateLCMGeneration.d.ts +4 -2
- package/funcs/realtimeCanvasCreateLCMGeneration.d.ts.map +1 -1
- package/funcs/realtimeCanvasCreateLCMGeneration.js +33 -17
- package/funcs/realtimeCanvasCreateLCMGeneration.js.map +1 -1
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.d.ts +4 -2
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.d.ts.map +1 -1
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.js +33 -17
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.js.map +1 -1
- package/funcs/realtimeCanvasPerformInpaintingLCM.d.ts +4 -2
- package/funcs/realtimeCanvasPerformInpaintingLCM.d.ts.map +1 -1
- package/funcs/realtimeCanvasPerformInpaintingLCM.js +33 -17
- package/funcs/realtimeCanvasPerformInpaintingLCM.js.map +1 -1
- package/funcs/realtimeCanvasPerformInstantRefine.d.ts +4 -2
- package/funcs/realtimeCanvasPerformInstantRefine.d.ts.map +1 -1
- package/funcs/realtimeCanvasPerformInstantRefine.js +33 -17
- package/funcs/realtimeCanvasPerformInstantRefine.js.map +1 -1
- package/funcs/textureCreateTextureGeneration.d.ts +4 -2
- package/funcs/textureCreateTextureGeneration.d.ts.map +1 -1
- package/funcs/textureCreateTextureGeneration.js +33 -17
- package/funcs/textureCreateTextureGeneration.js.map +1 -1
- package/funcs/textureDeleteTextureGenerationById.d.ts +4 -2
- package/funcs/textureDeleteTextureGenerationById.d.ts.map +1 -1
- package/funcs/textureDeleteTextureGenerationById.js +33 -17
- package/funcs/textureDeleteTextureGenerationById.js.map +1 -1
- package/funcs/threeDModelAssetsDelete3DModelById.d.ts +4 -2
- package/funcs/threeDModelAssetsDelete3DModelById.d.ts.map +1 -1
- package/funcs/threeDModelAssetsDelete3DModelById.js +33 -17
- package/funcs/threeDModelAssetsDelete3DModelById.js.map +1 -1
- package/funcs/threeDModelAssetsUploadModelAsset.d.ts +4 -2
- package/funcs/threeDModelAssetsUploadModelAsset.d.ts.map +1 -1
- package/funcs/threeDModelAssetsUploadModelAsset.js +33 -17
- package/funcs/threeDModelAssetsUploadModelAsset.js.map +1 -1
- package/funcs/userGetUserSelf.d.ts +4 -2
- package/funcs/userGetUserSelf.d.ts.map +1 -1
- package/funcs/userGetUserSelf.js +32 -16
- package/funcs/userGetUserSelf.js.map +1 -1
- package/funcs/variationCreateUniversalUpscalerJob.d.ts +4 -2
- package/funcs/variationCreateUniversalUpscalerJob.d.ts.map +1 -1
- package/funcs/variationCreateUniversalUpscalerJob.js +33 -17
- package/funcs/variationCreateUniversalUpscalerJob.js.map +1 -1
- package/funcs/variationCreateVariationNoBG.d.ts +4 -2
- package/funcs/variationCreateVariationNoBG.d.ts.map +1 -1
- package/funcs/variationCreateVariationNoBG.js +33 -17
- package/funcs/variationCreateVariationNoBG.js.map +1 -1
- package/funcs/variationCreateVariationUnzoom.d.ts +4 -2
- package/funcs/variationCreateVariationUnzoom.d.ts.map +1 -1
- package/funcs/variationCreateVariationUnzoom.js +33 -17
- package/funcs/variationCreateVariationUnzoom.js.map +1 -1
- package/funcs/variationCreateVariationUpscale.d.ts +4 -2
- package/funcs/variationCreateVariationUpscale.d.ts.map +1 -1
- package/funcs/variationCreateVariationUpscale.js +33 -17
- package/funcs/variationCreateVariationUpscale.js.map +1 -1
- package/funcs/variationGetMotionVariationById.d.ts +17 -0
- package/funcs/variationGetMotionVariationById.d.ts.map +1 -0
- package/funcs/variationGetMotionVariationById.js +131 -0
- package/funcs/variationGetMotionVariationById.js.map +1 -0
- package/funcs/variationGetVariationById.d.ts +4 -2
- package/funcs/variationGetVariationById.d.ts.map +1 -1
- package/funcs/variationGetVariationById.js +33 -17
- package/funcs/variationGetVariationById.js.map +1 -1
- package/hooks/registration.js +1 -2
- package/hooks/registration.js.map +1 -1
- package/hooks/types.d.ts +4 -1
- package/hooks/types.d.ts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +20 -8
- package/index.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/base64.d.ts +3 -3
- package/lib/base64.d.ts.map +1 -1
- package/lib/base64.js +25 -15
- package/lib/base64.js.map +1 -1
- package/lib/config.d.ts +10 -6
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +5 -5
- package/lib/config.js.map +1 -1
- package/lib/dlv.js +1 -2
- package/lib/dlv.js.map +1 -1
- package/lib/encodings.d.ts +2 -0
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +49 -16
- package/lib/encodings.js.map +1 -1
- package/lib/files.d.ts +18 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +61 -2
- package/lib/files.js.map +1 -1
- package/lib/http.js +7 -7
- package/lib/http.js.map +1 -1
- package/lib/is-plain-object.js +1 -2
- package/lib/is-plain-object.js.map +1 -1
- package/lib/matchers.d.ts +6 -11
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +60 -48
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +3 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +12 -6
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +2 -2
- package/lib/retries.js.map +1 -1
- package/lib/schemas.d.ts +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +5 -6
- package/lib/schemas.js.map +1 -1
- package/lib/sdks.d.ts +5 -2
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +25 -27
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +7 -6
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +30 -15
- package/lib/security.js.map +1 -1
- package/lib/url.d.ts.map +1 -1
- package/lib/url.js +6 -5
- package/lib/url.js.map +1 -1
- package/package.json +7 -8
- package/sdk/blueprints.d.ts +40 -0
- package/sdk/blueprints.d.ts.map +1 -0
- package/sdk/blueprints.js +62 -0
- package/sdk/blueprints.js.map +1 -0
- package/sdk/media.d.ts +26 -0
- package/sdk/media.d.ts.map +1 -0
- package/sdk/media.js +42 -0
- package/sdk/media.js.map +1 -0
- package/sdk/models/errors/index.d.ts +2 -0
- package/sdk/models/errors/index.d.ts.map +1 -1
- package/sdk/models/errors/index.js +2 -0
- package/sdk/models/errors/index.js.map +1 -1
- package/sdk/models/errors/leonardoerror.d.ts +19 -0
- package/sdk/models/errors/leonardoerror.d.ts.map +1 -0
- package/sdk/models/errors/leonardoerror.js +20 -0
- package/sdk/models/errors/leonardoerror.js.map +1 -0
- package/sdk/models/errors/responsevalidationerror.d.ts +26 -0
- package/sdk/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/sdk/models/errors/responsevalidationerror.js +66 -0
- package/sdk/models/errors/responsevalidationerror.js.map +1 -0
- package/sdk/models/errors/sdkerror.d.ts +8 -6
- package/sdk/models/errors/sdkerror.d.ts.map +1 -1
- package/sdk/models/errors/sdkerror.js +23 -10
- package/sdk/models/errors/sdkerror.js.map +1 -1
- package/sdk/models/errors/sdkvalidationerror.d.ts +2 -1
- package/sdk/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/sdk/models/errors/sdkvalidationerror.js +34 -10
- package/sdk/models/errors/sdkvalidationerror.js.map +1 -1
- package/sdk/models/operations/createdataset.d.ts +1 -76
- package/sdk/models/operations/createdataset.d.ts.map +1 -1
- package/sdk/models/operations/createdataset.js +23 -106
- package/sdk/models/operations/createdataset.js.map +1 -1
- package/sdk/models/operations/createelement.d.ts +22 -102
- package/sdk/models/operations/createelement.d.ts.map +1 -1
- package/sdk/models/operations/createelement.js +33 -140
- package/sdk/models/operations/createelement.js.map +1 -1
- package/sdk/models/operations/creategeneration.d.ts +15 -92
- package/sdk/models/operations/creategeneration.d.ts.map +1 -1
- package/sdk/models/operations/creategeneration.js +28 -179
- package/sdk/models/operations/creategeneration.js.map +1 -1
- package/sdk/models/operations/createimagetovideogeneration.d.ts +209 -0
- package/sdk/models/operations/createimagetovideogeneration.d.ts.map +1 -0
- package/sdk/models/operations/createimagetovideogeneration.js +161 -0
- package/sdk/models/operations/createimagetovideogeneration.js.map +1 -0
- package/sdk/models/operations/createlcmgeneration.d.ts +8 -79
- package/sdk/models/operations/createlcmgeneration.d.ts.map +1 -1
- package/sdk/models/operations/createlcmgeneration.js +24 -113
- package/sdk/models/operations/createlcmgeneration.js.map +1 -1
- package/sdk/models/operations/createmodel.d.ts +8 -90
- package/sdk/models/operations/createmodel.d.ts.map +1 -1
- package/sdk/models/operations/createmodel.js +25 -128
- package/sdk/models/operations/createmodel.js.map +1 -1
- package/sdk/models/operations/createsvdmotiongeneration.d.ts +9 -78
- package/sdk/models/operations/createsvdmotiongeneration.d.ts.map +1 -1
- package/sdk/models/operations/createsvdmotiongeneration.js +25 -106
- package/sdk/models/operations/createsvdmotiongeneration.js.map +1 -1
- package/sdk/models/operations/createtexttovideogeneration.d.ts +155 -0
- package/sdk/models/operations/createtexttovideogeneration.d.ts.map +1 -0
- package/sdk/models/operations/createtexttovideogeneration.js +129 -0
- package/sdk/models/operations/createtexttovideogeneration.js.map +1 -0
- package/sdk/models/operations/createtexturegeneration.d.ts +9 -78
- package/sdk/models/operations/createtexturegeneration.d.ts.map +1 -1
- package/sdk/models/operations/createtexturegeneration.js +25 -116
- package/sdk/models/operations/createtexturegeneration.js.map +1 -1
- package/sdk/models/operations/createuniversalupscalerjob.d.ts +8 -78
- package/sdk/models/operations/createuniversalupscalerjob.d.ts.map +1 -1
- package/sdk/models/operations/createuniversalupscalerjob.js +24 -112
- package/sdk/models/operations/createuniversalupscalerjob.js.map +1 -1
- package/sdk/models/operations/createvariationnobg.d.ts +9 -78
- package/sdk/models/operations/createvariationnobg.d.ts.map +1 -1
- package/sdk/models/operations/createvariationnobg.js +25 -103
- package/sdk/models/operations/createvariationnobg.js.map +1 -1
- package/sdk/models/operations/createvariationunzoom.d.ts +9 -78
- package/sdk/models/operations/createvariationunzoom.d.ts.map +1 -1
- package/sdk/models/operations/createvariationunzoom.js +25 -104
- package/sdk/models/operations/createvariationunzoom.js.map +1 -1
- package/sdk/models/operations/createvariationupscale.d.ts +9 -78
- package/sdk/models/operations/createvariationupscale.d.ts.map +1 -1
- package/sdk/models/operations/createvariationupscale.js +25 -102
- package/sdk/models/operations/createvariationupscale.js.map +1 -1
- package/sdk/models/operations/createvideoupscale.d.ts +84 -0
- package/sdk/models/operations/createvideoupscale.d.ts.map +1 -0
- package/sdk/models/operations/createvideoupscale.js +98 -0
- package/sdk/models/operations/createvideoupscale.js.map +1 -0
- package/sdk/models/operations/delete3dmodelbyid.d.ts +1 -91
- package/sdk/models/operations/delete3dmodelbyid.d.ts.map +1 -1
- package/sdk/models/operations/delete3dmodelbyid.js +24 -131
- package/sdk/models/operations/delete3dmodelbyid.js.map +1 -1
- package/sdk/models/operations/deletedatasetbyid.d.ts +1 -76
- package/sdk/models/operations/deletedatasetbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletedatasetbyid.js +23 -104
- package/sdk/models/operations/deletedatasetbyid.js.map +1 -1
- package/sdk/models/operations/deleteelementbyid.d.ts +1 -76
- package/sdk/models/operations/deleteelementbyid.d.ts.map +1 -1
- package/sdk/models/operations/deleteelementbyid.js +23 -105
- package/sdk/models/operations/deleteelementbyid.js.map +1 -1
- package/sdk/models/operations/deletegenerationbyid.d.ts +1 -76
- package/sdk/models/operations/deletegenerationbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletegenerationbyid.js +23 -106
- package/sdk/models/operations/deletegenerationbyid.js.map +1 -1
- package/sdk/models/operations/deleteinitimagebyid.d.ts +1 -76
- package/sdk/models/operations/deleteinitimagebyid.d.ts.map +1 -1
- package/sdk/models/operations/deleteinitimagebyid.js +23 -106
- package/sdk/models/operations/deleteinitimagebyid.js.map +1 -1
- package/sdk/models/operations/deletemodelbyid.d.ts +1 -76
- package/sdk/models/operations/deletemodelbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletemodelbyid.js +23 -105
- package/sdk/models/operations/deletemodelbyid.js.map +1 -1
- package/sdk/models/operations/deletetexturegenerationbyid.d.ts +1 -91
- package/sdk/models/operations/deletetexturegenerationbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletetexturegenerationbyid.js +24 -130
- package/sdk/models/operations/deletetexturegenerationbyid.js.map +1 -1
- package/sdk/models/operations/deleteuploadedmediabyid.d.ts +53 -0
- package/sdk/models/operations/deleteuploadedmediabyid.d.ts.map +1 -0
- package/sdk/models/operations/deleteuploadedmediabyid.js +89 -0
- package/sdk/models/operations/deleteuploadedmediabyid.js.map +1 -0
- package/sdk/models/operations/executeblueprint.d.ts +102 -0
- package/sdk/models/operations/executeblueprint.d.ts.map +1 -0
- package/sdk/models/operations/executeblueprint.js +118 -0
- package/sdk/models/operations/executeblueprint.js.map +1 -0
- package/sdk/models/operations/getblueprintbyid.d.ts +55 -0
- package/sdk/models/operations/getblueprintbyid.d.ts.map +1 -0
- package/sdk/models/operations/getblueprintbyid.js +89 -0
- package/sdk/models/operations/getblueprintbyid.js.map +1 -0
- package/sdk/models/operations/getblueprintexecution.d.ts +55 -0
- package/sdk/models/operations/getblueprintexecution.d.ts.map +1 -0
- package/sdk/models/operations/getblueprintexecution.js +89 -0
- package/sdk/models/operations/getblueprintexecution.js.map +1 -0
- package/sdk/models/operations/getblueprintexecutiongenerations.d.ts +71 -0
- package/sdk/models/operations/getblueprintexecutiongenerations.d.ts.map +1 -0
- package/sdk/models/operations/getblueprintexecutiongenerations.js +82 -0
- package/sdk/models/operations/getblueprintexecutiongenerations.js.map +1 -0
- package/sdk/models/operations/getblueprintversionsbyblueprintid.d.ts +55 -0
- package/sdk/models/operations/getblueprintversionsbyblueprintid.d.ts.map +1 -0
- package/sdk/models/operations/getblueprintversionsbyblueprintid.js +89 -0
- package/sdk/models/operations/getblueprintversionsbyblueprintid.js.map +1 -0
- package/sdk/models/operations/getcustomelementsbyuserid.d.ts +2 -89
- package/sdk/models/operations/getcustomelementsbyuserid.d.ts.map +1 -1
- package/sdk/models/operations/getcustomelementsbyuserid.js +24 -118
- package/sdk/models/operations/getcustomelementsbyuserid.js.map +1 -1
- package/sdk/models/operations/getcustommodelsbyuserid.d.ts +3 -89
- package/sdk/models/operations/getcustommodelsbyuserid.d.ts.map +1 -1
- package/sdk/models/operations/getcustommodelsbyuserid.js +24 -117
- package/sdk/models/operations/getcustommodelsbyuserid.js.map +1 -1
- package/sdk/models/operations/getdatasetbyid.d.ts +1 -102
- package/sdk/models/operations/getdatasetbyid.d.ts.map +1 -1
- package/sdk/models/operations/getdatasetbyid.js +24 -136
- package/sdk/models/operations/getdatasetbyid.js.map +1 -1
- package/sdk/models/operations/getelementbyid.d.ts +1 -88
- package/sdk/models/operations/getelementbyid.d.ts.map +1 -1
- package/sdk/models/operations/getelementbyid.js +23 -116
- package/sdk/models/operations/getelementbyid.js.map +1 -1
- package/sdk/models/operations/getgenerationbyid.d.ts +2 -198
- package/sdk/models/operations/getgenerationbyid.d.ts.map +1 -1
- package/sdk/models/operations/getgenerationbyid.js +27 -242
- package/sdk/models/operations/getgenerationbyid.js.map +1 -1
- package/sdk/models/operations/getgenerationsbyuserid.d.ts +2 -197
- package/sdk/models/operations/getgenerationsbyuserid.d.ts.map +1 -1
- package/sdk/models/operations/getgenerationsbyuserid.js +27 -237
- package/sdk/models/operations/getgenerationsbyuserid.js.map +1 -1
- package/sdk/models/operations/getinitimagebyid.d.ts +1 -78
- package/sdk/models/operations/getinitimagebyid.d.ts.map +1 -1
- package/sdk/models/operations/getinitimagebyid.js +23 -106
- package/sdk/models/operations/getinitimagebyid.js.map +1 -1
- package/sdk/models/operations/getmodelbyid.d.ts +2 -88
- package/sdk/models/operations/getmodelbyid.d.ts.map +1 -1
- package/sdk/models/operations/getmodelbyid.js +23 -115
- package/sdk/models/operations/getmodelbyid.js.map +1 -1
- package/sdk/models/operations/getmotionvariationbyid.d.ts +71 -0
- package/sdk/models/operations/getmotionvariationbyid.d.ts.map +1 -0
- package/sdk/models/operations/getmotionvariationbyid.js +95 -0
- package/sdk/models/operations/getmotionvariationbyid.js.map +1 -0
- package/sdk/models/operations/getuploadedmediabyid.d.ts +63 -0
- package/sdk/models/operations/getuploadedmediabyid.d.ts.map +1 -0
- package/sdk/models/operations/getuploadedmediabyid.js +103 -0
- package/sdk/models/operations/getuploadedmediabyid.js.map +1 -0
- package/sdk/models/operations/getuserself.d.ts +1 -90
- package/sdk/models/operations/getuserself.d.ts.map +1 -1
- package/sdk/models/operations/getuserself.js +23 -114
- package/sdk/models/operations/getuserself.js.map +1 -1
- package/sdk/models/operations/getvariationbyid.d.ts +1 -80
- package/sdk/models/operations/getvariationbyid.d.ts.map +1 -1
- package/sdk/models/operations/getvariationbyid.js +23 -108
- package/sdk/models/operations/getvariationbyid.js.map +1 -1
- package/sdk/models/operations/index.d.ts +12 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +12 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listelements.d.ts +1 -69
- package/sdk/models/operations/listelements.d.ts.map +1 -1
- package/sdk/models/operations/listelements.js +22 -88
- package/sdk/models/operations/listelements.js.map +1 -1
- package/sdk/models/operations/listplatformmodels.d.ts +1 -86
- package/sdk/models/operations/listplatformmodels.d.ts.map +1 -1
- package/sdk/models/operations/listplatformmodels.js +23 -115
- package/sdk/models/operations/listplatformmodels.js.map +1 -1
- package/sdk/models/operations/performalchemyupscalelcm.d.ts +8 -82
- package/sdk/models/operations/performalchemyupscalelcm.d.ts.map +1 -1
- package/sdk/models/operations/performalchemyupscalelcm.js +24 -117
- package/sdk/models/operations/performalchemyupscalelcm.js.map +1 -1
- package/sdk/models/operations/performinpaintinglcm.d.ts +8 -79
- package/sdk/models/operations/performinpaintinglcm.d.ts.map +1 -1
- package/sdk/models/operations/performinpaintinglcm.js +24 -113
- package/sdk/models/operations/performinpaintinglcm.js.map +1 -1
- package/sdk/models/operations/performinstantrefine.d.ts +8 -79
- package/sdk/models/operations/performinstantrefine.d.ts.map +1 -1
- package/sdk/models/operations/performinstantrefine.js +24 -112
- package/sdk/models/operations/performinstantrefine.js.map +1 -1
- package/sdk/models/operations/pricingcalculator.d.ts +121 -255
- package/sdk/models/operations/pricingcalculator.d.ts.map +1 -1
- package/sdk/models/operations/pricingcalculator.js +102 -350
- package/sdk/models/operations/pricingcalculator.js.map +1 -1
- package/sdk/models/operations/promptimprove.d.ts +16 -80
- package/sdk/models/operations/promptimprove.d.ts.map +1 -1
- package/sdk/models/operations/promptimprove.js +26 -103
- package/sdk/models/operations/promptimprove.js.map +1 -1
- package/sdk/models/operations/promptrandom.d.ts +11 -65
- package/sdk/models/operations/promptrandom.d.ts.map +1 -1
- package/sdk/models/operations/promptrandom.js +24 -81
- package/sdk/models/operations/promptrandom.js.map +1 -1
- package/sdk/models/operations/uploadcanvasinitimage.d.ts +1 -83
- package/sdk/models/operations/uploadcanvasinitimage.d.ts.map +1 -1
- package/sdk/models/operations/uploadcanvasinitimage.js +23 -109
- package/sdk/models/operations/uploadcanvasinitimage.js.map +1 -1
- package/sdk/models/operations/uploaddatasetimage.d.ts +1 -94
- package/sdk/models/operations/uploaddatasetimage.d.ts.map +1 -1
- package/sdk/models/operations/uploaddatasetimage.js +24 -129
- package/sdk/models/operations/uploaddatasetimage.js.map +1 -1
- package/sdk/models/operations/uploaddatasetimagefromgen.d.ts +1 -91
- package/sdk/models/operations/uploaddatasetimagefromgen.d.ts.map +1 -1
- package/sdk/models/operations/uploaddatasetimagefromgen.js +24 -126
- package/sdk/models/operations/uploaddatasetimagefromgen.js.map +1 -1
- package/sdk/models/operations/uploadinitimage.d.ts +1 -79
- package/sdk/models/operations/uploadinitimage.d.ts.map +1 -1
- package/sdk/models/operations/uploadinitimage.js +23 -103
- package/sdk/models/operations/uploadinitimage.js.map +1 -1
- package/sdk/models/operations/uploadmedia.d.ts +58 -0
- package/sdk/models/operations/uploadmedia.d.ts.map +1 -0
- package/sdk/models/operations/uploadmedia.js +87 -0
- package/sdk/models/operations/uploadmedia.js.map +1 -0
- package/sdk/models/operations/uploadmodelasset.d.ts +1 -79
- package/sdk/models/operations/uploadmodelasset.d.ts.map +1 -1
- package/sdk/models/operations/uploadmodelasset.js +23 -104
- package/sdk/models/operations/uploadmodelasset.js.map +1 -1
- package/sdk/models/shared/apierror.d.ts +42 -0
- package/sdk/models/shared/apierror.d.ts.map +1 -0
- package/sdk/models/shared/apierror.js +68 -0
- package/sdk/models/shared/apierror.js.map +1 -0
- package/sdk/models/shared/blueprint.d.ts +54 -0
- package/sdk/models/shared/blueprint.d.ts.map +1 -0
- package/sdk/models/shared/blueprint.js +68 -0
- package/sdk/models/shared/blueprint.js.map +1 -0
- package/sdk/models/shared/blueprintexecution.d.ts +25 -0
- package/sdk/models/shared/blueprintexecution.d.ts.map +1 -0
- package/sdk/models/shared/blueprintexecution.js +56 -0
- package/sdk/models/shared/blueprintexecution.js.map +1 -0
- package/sdk/models/shared/blueprintexecutiongeneration.d.ts +27 -0
- package/sdk/models/shared/blueprintexecutiongeneration.d.ts.map +1 -0
- package/sdk/models/shared/blueprintexecutiongeneration.js +56 -0
- package/sdk/models/shared/blueprintexecutiongeneration.js.map +1 -0
- package/sdk/models/shared/blueprintexecutiongenerationedge.d.ts +21 -0
- package/sdk/models/shared/blueprintexecutiongenerationedge.d.ts.map +1 -0
- package/sdk/models/shared/blueprintexecutiongenerationedge.js +52 -0
- package/sdk/models/shared/blueprintexecutiongenerationedge.js.map +1 -0
- package/sdk/models/shared/blueprintexecutiongenerationsconnection.d.ts +22 -0
- package/sdk/models/shared/blueprintexecutiongenerationsconnection.d.ts.map +1 -0
- package/sdk/models/shared/blueprintexecutiongenerationsconnection.js +53 -0
- package/sdk/models/shared/blueprintexecutiongenerationsconnection.js.map +1 -0
- package/sdk/models/shared/blueprintexecutiongenerationstatus.d.ts +12 -0
- package/sdk/models/shared/blueprintexecutiongenerationstatus.d.ts.map +1 -0
- package/sdk/models/shared/blueprintexecutiongenerationstatus.js +52 -0
- package/sdk/models/shared/blueprintexecutiongenerationstatus.js.map +1 -0
- package/sdk/models/shared/blueprintexecutionstatus.d.ts +13 -0
- package/sdk/models/shared/blueprintexecutionstatus.d.ts.map +1 -0
- package/sdk/models/shared/blueprintexecutionstatus.js +53 -0
- package/sdk/models/shared/blueprintexecutionstatus.js.map +1 -0
- package/sdk/models/shared/blueprintversion.d.ts +72 -0
- package/sdk/models/shared/blueprintversion.d.ts.map +1 -0
- package/sdk/models/shared/blueprintversion.js +130 -0
- package/sdk/models/shared/blueprintversion.js.map +1 -0
- package/sdk/models/shared/canvasrequesttype.d.ts +1 -13
- package/sdk/models/shared/canvasrequesttype.d.ts.map +1 -1
- package/sdk/models/shared/canvasrequesttype.js +20 -23
- package/sdk/models/shared/canvasrequesttype.js.map +1 -1
- package/sdk/models/shared/controlnetinput.d.ts +1 -42
- package/sdk/models/shared/controlnetinput.d.ts.map +1 -1
- package/sdk/models/shared/controlnetinput.js +22 -62
- package/sdk/models/shared/controlnetinput.js.map +1 -1
- package/sdk/models/shared/controlnettype.d.ts +1 -13
- package/sdk/models/shared/controlnettype.d.ts.map +1 -1
- package/sdk/models/shared/controlnettype.js +20 -23
- package/sdk/models/shared/controlnettype.js.map +1 -1
- package/sdk/models/shared/cost.d.ts +29 -0
- package/sdk/models/shared/cost.d.ts.map +1 -0
- package/sdk/models/shared/cost.js +62 -0
- package/sdk/models/shared/cost.js.map +1 -0
- package/sdk/models/shared/custommodeltype.d.ts +1 -11
- package/sdk/models/shared/custommodeltype.d.ts.map +1 -1
- package/sdk/models/shared/custommodeltype.js +19 -20
- package/sdk/models/shared/custommodeltype.js.map +1 -1
- package/sdk/models/shared/elementinput.d.ts +4 -21
- package/sdk/models/shared/elementinput.d.ts.map +1 -1
- package/sdk/models/shared/elementinput.js +22 -33
- package/sdk/models/shared/elementinput.js.map +1 -1
- package/sdk/models/shared/index.d.ts +16 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +16 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/jobstatus.d.ts +1 -13
- package/sdk/models/shared/jobstatus.d.ts.map +1 -1
- package/sdk/models/shared/jobstatus.js +19 -22
- package/sdk/models/shared/jobstatus.js.map +1 -1
- package/sdk/models/shared/lcmgenerationstyle.d.ts +1 -13
- package/sdk/models/shared/lcmgenerationstyle.d.ts.map +1 -1
- package/sdk/models/shared/lcmgenerationstyle.js +20 -23
- package/sdk/models/shared/lcmgenerationstyle.js.map +1 -1
- package/sdk/models/shared/motionresolution.d.ts +10 -0
- package/sdk/models/shared/motionresolution.d.ts.map +1 -0
- package/sdk/models/shared/motionresolution.js +50 -0
- package/sdk/models/shared/motionresolution.js.map +1 -0
- package/sdk/models/shared/motionvariationtype.d.ts +10 -0
- package/sdk/models/shared/motionvariationtype.d.ts.map +1 -0
- package/sdk/models/shared/motionvariationtype.js +50 -0
- package/sdk/models/shared/motionvariationtype.js.map +1 -0
- package/sdk/models/shared/nodeinput.d.ts +78 -0
- package/sdk/models/shared/nodeinput.d.ts.map +1 -0
- package/sdk/models/shared/nodeinput.js +95 -0
- package/sdk/models/shared/nodeinput.js.map +1 -0
- package/sdk/models/shared/pageinfo.d.ts +28 -0
- package/sdk/models/shared/pageinfo.d.ts.map +1 -0
- package/sdk/models/shared/pageinfo.js +53 -0
- package/sdk/models/shared/pageinfo.js.map +1 -0
- package/sdk/models/shared/pricingcalculatorservices.d.ts +4 -14
- package/sdk/models/shared/pricingcalculatorservices.d.ts.map +1 -1
- package/sdk/models/shared/pricingcalculatorservices.js +23 -24
- package/sdk/models/shared/pricingcalculatorservices.js.map +1 -1
- package/sdk/models/shared/promptmoderationfailurereason.d.ts +32 -0
- package/sdk/models/shared/promptmoderationfailurereason.d.ts.map +1 -0
- package/sdk/models/shared/promptmoderationfailurereason.js +61 -0
- package/sdk/models/shared/promptmoderationfailurereason.js.map +1 -0
- package/sdk/models/shared/sdgenerationschedulers.d.ts +1 -11
- package/sdk/models/shared/sdgenerationschedulers.d.ts.map +1 -1
- package/sdk/models/shared/sdgenerationschedulers.js +19 -20
- package/sdk/models/shared/sdgenerationschedulers.js.map +1 -1
- package/sdk/models/shared/sdgenerationstyle.d.ts +1 -11
- package/sdk/models/shared/sdgenerationstyle.d.ts.map +1 -1
- package/sdk/models/shared/sdgenerationstyle.js +19 -20
- package/sdk/models/shared/sdgenerationstyle.js.map +1 -1
- package/sdk/models/shared/sdversions.d.ts +3 -12
- package/sdk/models/shared/sdversions.d.ts.map +1 -1
- package/sdk/models/shared/sdversions.js +20 -20
- package/sdk/models/shared/sdversions.js.map +1 -1
- package/sdk/models/shared/security.d.ts +1 -18
- package/sdk/models/shared/security.d.ts.map +1 -1
- package/sdk/models/shared/security.js +20 -30
- package/sdk/models/shared/security.js.map +1 -1
- package/sdk/models/shared/strength.d.ts +1 -13
- package/sdk/models/shared/strength.d.ts.map +1 -1
- package/sdk/models/shared/strength.js +20 -23
- package/sdk/models/shared/strength.js.map +1 -1
- package/sdk/models/shared/textvariable.d.ts +28 -0
- package/sdk/models/shared/textvariable.d.ts.map +1 -0
- package/sdk/models/shared/textvariable.js +60 -0
- package/sdk/models/shared/textvariable.js.map +1 -0
- package/sdk/models/shared/universalupscalerstyle.d.ts +1 -13
- package/sdk/models/shared/universalupscalerstyle.d.ts.map +1 -1
- package/sdk/models/shared/universalupscalerstyle.js +20 -23
- package/sdk/models/shared/universalupscalerstyle.js.map +1 -1
- package/sdk/models/shared/universalupscalerultrastyle.d.ts +1 -13
- package/sdk/models/shared/universalupscalerultrastyle.d.ts.map +1 -1
- package/sdk/models/shared/universalupscalerultrastyle.js +20 -23
- package/sdk/models/shared/universalupscalerultrastyle.js.map +1 -1
- package/sdk/models/shared/userelementsinput.d.ts +1 -18
- package/sdk/models/shared/userelementsinput.d.ts.map +1 -1
- package/sdk/models/shared/userelementsinput.js +20 -31
- package/sdk/models/shared/userelementsinput.js.map +1 -1
- package/sdk/models/shared/variationtype.d.ts +1 -13
- package/sdk/models/shared/variationtype.d.ts.map +1 -1
- package/sdk/models/shared/variationtype.js +19 -22
- package/sdk/models/shared/variationtype.js.map +1 -1
- package/sdk/motion.d.ts +21 -0
- package/sdk/motion.d.ts.map +1 -1
- package/sdk/motion.js +30 -0
- package/sdk/motion.js.map +1 -1
- package/sdk/sdk.d.ts +10 -4
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +14 -6
- package/sdk/sdk.js.map +1 -1
- package/sdk/types/async.d.ts +23 -0
- package/sdk/types/async.d.ts.map +1 -0
- package/sdk/types/async.js +44 -0
- package/sdk/types/async.js.map +1 -0
- package/sdk/types/blobs.d.ts +1 -1
- package/sdk/types/blobs.d.ts.map +1 -1
- package/sdk/types/blobs.js +20 -10
- package/sdk/types/blobs.js.map +1 -1
- package/sdk/types/constdatetime.d.ts +1 -1
- package/sdk/types/constdatetime.d.ts.map +1 -1
- package/sdk/types/constdatetime.js +20 -11
- package/sdk/types/constdatetime.js.map +1 -1
- package/sdk/types/enums.d.ts +8 -11
- package/sdk/types/enums.d.ts.map +1 -1
- package/sdk/types/enums.js +59 -4
- package/sdk/types/enums.js.map +1 -1
- package/sdk/types/fp.js +4 -5
- package/sdk/types/fp.js.map +1 -1
- package/sdk/types/index.d.ts +2 -2
- package/sdk/types/index.d.ts.map +1 -1
- package/sdk/types/index.js +16 -3
- package/sdk/types/index.js.map +1 -1
- package/sdk/types/operations.js +4 -4
- package/sdk/types/operations.js.map +1 -1
- package/sdk/types/streams.js +1 -2
- package/sdk/types/streams.js.map +1 -1
- package/sdk/types/unrecognized.d.ts +16 -0
- package/sdk/types/unrecognized.d.ts.map +1 -0
- package/sdk/types/unrecognized.js +34 -0
- package/sdk/types/unrecognized.js.map +1 -0
- package/sdk/variation.d.ts +7 -0
- package/sdk/variation.d.ts.map +1 -1
- package/sdk/variation.js +10 -0
- package/sdk/variation.js.map +1 -1
- package/src/funcs/blueprintsExecuteBlueprint.ts +172 -0
- package/src/funcs/blueprintsGetBlueprintById.ts +177 -0
- package/src/funcs/blueprintsGetBlueprintExecution.ts +178 -0
- package/src/funcs/blueprintsGetBlueprintExecutionGenerations.ts +206 -0
- package/src/funcs/blueprintsGetBlueprintVersionsByBlueprintId.ts +182 -0
- package/src/funcs/datasetCreateDataset.ts +54 -20
- package/src/funcs/datasetDeleteDatasetById.ts +54 -21
- package/src/funcs/datasetGetDatasetById.ts +54 -21
- package/src/funcs/datasetUploadDatasetImage.ts +56 -21
- package/src/funcs/datasetUploadDatasetImageFromGen.ts +56 -21
- package/src/funcs/elementsCreateElement.ts +54 -20
- package/src/funcs/elementsDeleteElementById.ts +54 -21
- package/src/funcs/elementsGetCustomElementsByUserId.ts +54 -21
- package/src/funcs/elementsGetElementById.ts +54 -21
- package/src/funcs/elementsListElements.ts +51 -19
- package/src/funcs/imageCreateGeneration.ts +54 -20
- package/src/funcs/imageDeleteGenerationById.ts +54 -21
- package/src/funcs/imageGetGenerationById.ts +54 -21
- package/src/funcs/imageGetGenerationsByUserId.ts +58 -21
- package/src/funcs/initImagesDeleteInitImageById.ts +54 -21
- package/src/funcs/initImagesGetInitImageById.ts +54 -21
- package/src/funcs/initImagesUploadCanvasInitImage.ts +54 -20
- package/src/funcs/initImagesUploadInitImage.ts +54 -20
- package/src/funcs/mediaDeleteUploadedMediaById.ts +178 -0
- package/src/funcs/mediaGetUploadedMediaById.ts +178 -0
- package/src/funcs/mediaUploadMedia.ts +168 -0
- package/src/funcs/modelsCreateModel.ts +54 -20
- package/src/funcs/modelsDeleteModelById.ts +54 -21
- package/src/funcs/modelsGetCustomModelsByUserId.ts +54 -21
- package/src/funcs/modelsGetModelById.ts +54 -21
- package/src/funcs/modelsListPlatformModels.ts +51 -19
- package/src/funcs/motionCreateImageToVideoGeneration.ts +172 -0
- package/src/funcs/motionCreateSVDMotionGeneration.ts +54 -20
- package/src/funcs/motionCreateTextToVideoGeneration.ts +172 -0
- package/src/funcs/motionCreateVideoUpscale.ts +173 -0
- package/src/funcs/pricingCalculatorPricingCalculator.ts +54 -20
- package/src/funcs/promptPromptImprove.ts +54 -20
- package/src/funcs/promptPromptRandom.ts +51 -19
- package/src/funcs/realtimeCanvasCreateLCMGeneration.ts +54 -20
- package/src/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.ts +54 -20
- package/src/funcs/realtimeCanvasPerformInpaintingLCM.ts +54 -20
- package/src/funcs/realtimeCanvasPerformInstantRefine.ts +54 -20
- package/src/funcs/textureCreateTextureGeneration.ts +54 -20
- package/src/funcs/textureDeleteTextureGenerationById.ts +56 -21
- package/src/funcs/threeDModelAssetsDelete3DModelById.ts +56 -21
- package/src/funcs/threeDModelAssetsUploadModelAsset.ts +54 -20
- package/src/funcs/userGetUserSelf.ts +51 -19
- package/src/funcs/variationCreateUniversalUpscalerJob.ts +54 -20
- package/src/funcs/variationCreateVariationNoBG.ts +54 -20
- package/src/funcs/variationCreateVariationUnzoom.ts +54 -20
- package/src/funcs/variationCreateVariationUpscale.ts +54 -20
- package/src/funcs/variationGetMotionVariationById.ts +178 -0
- package/src/funcs/variationGetVariationById.ts +54 -21
- package/src/hooks/types.ts +4 -1
- package/src/index.ts +2 -0
- package/src/lib/base64.ts +1 -1
- package/src/lib/config.ts +10 -6
- package/src/lib/encodings.ts +49 -7
- package/src/lib/files.ts +65 -1
- package/src/lib/matchers.ts +67 -43
- package/src/lib/primitives.ts +14 -0
- package/src/lib/schemas.ts +1 -1
- package/src/lib/sdks.ts +38 -29
- package/src/lib/security.ts +31 -10
- package/src/lib/url.ts +17 -15
- package/src/sdk/blueprints.ts +107 -0
- package/src/sdk/media.ts +63 -0
- package/src/sdk/models/errors/index.ts +2 -0
- package/src/sdk/models/errors/leonardoerror.ts +35 -0
- package/src/sdk/models/errors/responsevalidationerror.ts +50 -0
- package/src/sdk/models/errors/sdkerror.ts +29 -16
- package/src/sdk/models/errors/sdkvalidationerror.ts +13 -1
- package/src/sdk/models/operations/createdataset.ts +1 -154
- package/src/sdk/models/operations/createelement.ts +28 -206
- package/src/sdk/models/operations/creategeneration.ts +20 -246
- package/src/sdk/models/operations/createimagetovideogeneration.ts +354 -0
- package/src/sdk/models/operations/createlcmgeneration.ts +9 -172
- package/src/sdk/models/operations/createmodel.ts +10 -191
- package/src/sdk/models/operations/createsvdmotiongeneration.ts +10 -175
- package/src/sdk/models/operations/createtexttovideogeneration.ts +288 -0
- package/src/sdk/models/operations/createtexturegeneration.ts +10 -180
- package/src/sdk/models/operations/createuniversalupscalerjob.ts +9 -183
- package/src/sdk/models/operations/createvariationnobg.ts +10 -161
- package/src/sdk/models/operations/createvariationunzoom.ts +10 -159
- package/src/sdk/models/operations/createvariationupscale.ts +10 -172
- package/src/sdk/models/operations/createvideoupscale.ts +187 -0
- package/src/sdk/models/operations/delete3dmodelbyid.ts +1 -193
- package/src/sdk/models/operations/deletedatasetbyid.ts +1 -160
- package/src/sdk/models/operations/deleteelementbyid.ts +1 -155
- package/src/sdk/models/operations/deletegenerationbyid.ts +1 -158
- package/src/sdk/models/operations/deleteinitimagebyid.ts +1 -158
- package/src/sdk/models/operations/deletemodelbyid.ts +1 -155
- package/src/sdk/models/operations/deletetexturegenerationbyid.ts +1 -218
- package/src/sdk/models/operations/deleteuploadedmediabyid.ts +144 -0
- package/src/sdk/models/operations/executeblueprint.ts +243 -0
- package/src/sdk/models/operations/getblueprintbyid.ts +142 -0
- package/src/sdk/models/operations/getblueprintexecution.ts +148 -0
- package/src/sdk/models/operations/getblueprintexecutiongenerations.ts +160 -0
- package/src/sdk/models/operations/getblueprintversionsbyblueprintid.ts +172 -0
- package/src/sdk/models/operations/getcustomelementsbyuserid.ts +8 -198
- package/src/sdk/models/operations/getcustommodelsbyuserid.ts +9 -199
- package/src/sdk/models/operations/getdatasetbyid.ts +1 -206
- package/src/sdk/models/operations/getelementbyid.ts +1 -182
- package/src/sdk/models/operations/getgenerationbyid.ts +2 -421
- package/src/sdk/models/operations/getgenerationsbyuserid.ts +2 -434
- package/src/sdk/models/operations/getinitimagebyid.ts +1 -164
- package/src/sdk/models/operations/getmodelbyid.ts +2 -183
- package/src/sdk/models/operations/getmotionvariationbyid.ts +169 -0
- package/src/sdk/models/operations/getuploadedmediabyid.ts +167 -0
- package/src/sdk/models/operations/getuserself.ts +1 -171
- package/src/sdk/models/operations/getvariationbyid.ts +1 -172
- package/src/sdk/models/operations/index.ts +12 -0
- package/src/sdk/models/operations/listelements.ts +1 -132
- package/src/sdk/models/operations/listplatformmodels.ts +1 -190
- package/src/sdk/models/operations/performalchemyupscalelcm.ts +9 -195
- package/src/sdk/models/operations/performinpaintinglcm.ts +9 -182
- package/src/sdk/models/operations/performinstantrefine.ts +9 -181
- package/src/sdk/models/operations/pricingcalculator.ts +277 -678
- package/src/sdk/models/operations/promptimprove.ts +18 -159
- package/src/sdk/models/operations/promptrandom.ts +12 -130
- package/src/sdk/models/operations/uploadcanvasinitimage.ts +1 -180
- package/src/sdk/models/operations/uploaddatasetimage.ts +1 -200
- package/src/sdk/models/operations/uploaddatasetimagefromgen.ts +1 -205
- package/src/sdk/models/operations/uploadinitimage.ts +1 -162
- package/src/sdk/models/operations/uploadmedia.ts +142 -0
- package/src/sdk/models/operations/uploadmodelasset.ts +1 -163
- package/src/sdk/models/shared/apierror.ts +99 -0
- package/src/sdk/models/shared/blueprint.ts +102 -0
- package/src/sdk/models/shared/blueprintexecution.ts +53 -0
- package/src/sdk/models/shared/blueprintexecutiongeneration.ts +58 -0
- package/src/sdk/models/shared/blueprintexecutiongenerationedge.ts +46 -0
- package/src/sdk/models/shared/blueprintexecutiongenerationsconnection.ts +53 -0
- package/src/sdk/models/shared/blueprintexecutiongenerationstatus.ts +19 -0
- package/src/sdk/models/shared/blueprintexecutionstatus.ts +20 -0
- package/src/sdk/models/shared/blueprintversion.ts +227 -0
- package/src/sdk/models/shared/canvasrequesttype.ts +2 -18
- package/src/sdk/models/shared/controlnetinput.ts +3 -73
- package/src/sdk/models/shared/controlnettype.ts +2 -18
- package/src/sdk/models/shared/cost.ts +52 -0
- package/src/sdk/models/shared/custommodeltype.ts +1 -13
- package/src/sdk/models/shared/elementinput.ts +6 -42
- package/src/sdk/models/shared/index.ts +16 -0
- package/src/sdk/models/shared/jobstatus.ts +1 -16
- package/src/sdk/models/shared/lcmgenerationstyle.ts +2 -18
- package/src/sdk/models/shared/motionresolution.ts +17 -0
- package/src/sdk/models/shared/motionvariationtype.ts +17 -0
- package/src/sdk/models/shared/nodeinput.ts +140 -0
- package/src/sdk/models/shared/pageinfo.ts +52 -0
- package/src/sdk/models/shared/pricingcalculatorservices.ts +5 -19
- package/src/sdk/models/shared/promptmoderationfailurereason.ts +59 -0
- package/src/sdk/models/shared/sdgenerationschedulers.ts +1 -13
- package/src/sdk/models/shared/sdgenerationstyle.ts +1 -13
- package/src/sdk/models/shared/sdversions.ts +2 -13
- package/src/sdk/models/shared/security.ts +1 -36
- package/src/sdk/models/shared/strength.ts +2 -17
- package/src/sdk/models/shared/textvariable.ts +60 -0
- package/src/sdk/models/shared/universalupscalerstyle.ts +2 -18
- package/src/sdk/models/shared/universalupscalerultrastyle.ts +2 -18
- package/src/sdk/models/shared/userelementsinput.ts +1 -37
- package/src/sdk/models/shared/variationtype.ts +1 -17
- package/src/sdk/motion.ts +54 -0
- package/src/sdk/sdk.ts +22 -10
- package/src/sdk/types/async.ts +68 -0
- package/src/sdk/types/blobs.ts +7 -6
- package/src/sdk/types/constdatetime.ts +2 -2
- package/src/sdk/types/enums.ts +38 -9
- package/src/sdk/types/index.ts +2 -2
- package/src/sdk/types/unrecognized.ts +35 -0
- package/src/sdk/variation.ts +18 -0
- package/.devcontainer/README.md +0 -35
- package/.devcontainer/devcontainer.json +0 -45
- package/docs/sdks/dataset/README.md +0 -386
- package/docs/sdks/elements/README.md +0 -371
- package/docs/sdks/image/README.md +0 -301
- package/docs/sdks/initimages/README.md +0 -309
- package/docs/sdks/leonardo/README.md +0 -7
- package/docs/sdks/models/README.md +0 -379
- package/docs/sdks/motion/README.md +0 -80
- package/docs/sdks/pricingcalculator/README.md +0 -80
- package/docs/sdks/prompt/README.md +0 -156
- package/docs/sdks/realtimecanvas/README.md +0 -299
- package/docs/sdks/texture/README.md +0 -154
- package/docs/sdks/threedmodelassets/README.md +0 -154
- package/docs/sdks/user/README.md +0 -79
- package/docs/sdks/variation/README.md +0 -376
- package/tsconfig.json +0 -41
package/sdk/types/fp.js
CHANGED
|
@@ -3,15 +3,16 @@
|
|
|
3
3
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.OK = OK;
|
|
7
|
+
exports.ERR = ERR;
|
|
8
|
+
exports.unwrap = unwrap;
|
|
9
|
+
exports.unwrapAsync = unwrapAsync;
|
|
7
10
|
function OK(value) {
|
|
8
11
|
return { ok: true, value };
|
|
9
12
|
}
|
|
10
|
-
exports.OK = OK;
|
|
11
13
|
function ERR(error) {
|
|
12
14
|
return { ok: false, error };
|
|
13
15
|
}
|
|
14
|
-
exports.ERR = ERR;
|
|
15
16
|
/**
|
|
16
17
|
* unwrap is a convenience function for extracting a value from a result or
|
|
17
18
|
* throwing if there was an error.
|
|
@@ -22,7 +23,6 @@ function unwrap(r) {
|
|
|
22
23
|
}
|
|
23
24
|
return r.value;
|
|
24
25
|
}
|
|
25
|
-
exports.unwrap = unwrap;
|
|
26
26
|
/**
|
|
27
27
|
* unwrapAsync is a convenience function for resolving a value from a Promise
|
|
28
28
|
* of a result or rejecting if an error occurred.
|
|
@@ -34,5 +34,4 @@ async function unwrapAsync(pr) {
|
|
|
34
34
|
}
|
|
35
35
|
return r.value;
|
|
36
36
|
}
|
|
37
|
-
exports.unwrapAsync = unwrapAsync;
|
|
38
37
|
//# sourceMappingURL=fp.js.map
|
package/sdk/types/fp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fp.js","sourceRoot":"","sources":["../../src/sdk/types/fp.ts"],"names":[],"mappings":";AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"fp.js","sourceRoot":"","sources":["../../src/sdk/types/fp.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAeH,gBAEC;AAED,kBAEC;AAMD,wBAKC;AAMD,kCASC;AAhCD,SAAgB,EAAE,CAAI,KAAQ;IAC5B,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAC7B,CAAC;AAED,SAAgB,GAAG,CAAI,KAAQ;IAC7B,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC9B,CAAC;AAED;;;GAGG;AACH,SAAgB,MAAM,CAAI,CAAqB;IAC7C,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACV,MAAM,CAAC,CAAC,KAAK,CAAC;IAChB,CAAC;IACD,OAAO,CAAC,CAAC,KAAK,CAAC;AACjB,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,WAAW,CAC/B,EAA+B;IAE/B,MAAM,CAAC,GAAG,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACV,MAAM,CAAC,CAAC,KAAK,CAAC;IAChB,CAAC;IAED,OAAO,CAAC,CAAC,KAAK,CAAC;AACjB,CAAC"}
|
package/sdk/types/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { blobLikeSchema, isBlobLike } from "./blobs.js";
|
|
2
|
-
export {
|
|
3
|
-
export type { ClosedEnum, OpenEnum, Unrecognized } from "./enums.js";
|
|
2
|
+
export type { ClosedEnum, OpenEnum } from "./enums.js";
|
|
4
3
|
export type { Result } from "./fp.js";
|
|
5
4
|
export type { PageIterator, Paginator } from "./operations.js";
|
|
6
5
|
export { createPageIterator } from "./operations.js";
|
|
7
6
|
export { RFCDate } from "./rfcdate.js";
|
|
7
|
+
export * from "./unrecognized.js";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/sdk/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
|
package/sdk/types/index.js
CHANGED
|
@@ -2,15 +2,28 @@
|
|
|
2
2
|
/*
|
|
3
3
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
4
|
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
5
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.RFCDate = exports.createPageIterator = exports.
|
|
20
|
+
exports.RFCDate = exports.createPageIterator = exports.isBlobLike = exports.blobLikeSchema = void 0;
|
|
7
21
|
var blobs_js_1 = require("./blobs.js");
|
|
8
22
|
Object.defineProperty(exports, "blobLikeSchema", { enumerable: true, get: function () { return blobs_js_1.blobLikeSchema; } });
|
|
9
23
|
Object.defineProperty(exports, "isBlobLike", { enumerable: true, get: function () { return blobs_js_1.isBlobLike; } });
|
|
10
|
-
var enums_js_1 = require("./enums.js");
|
|
11
|
-
Object.defineProperty(exports, "catchUnrecognizedEnum", { enumerable: true, get: function () { return enums_js_1.catchUnrecognizedEnum; } });
|
|
12
24
|
var operations_js_1 = require("./operations.js");
|
|
13
25
|
Object.defineProperty(exports, "createPageIterator", { enumerable: true, get: function () { return operations_js_1.createPageIterator; } });
|
|
14
26
|
var rfcdate_js_1 = require("./rfcdate.js");
|
|
15
27
|
Object.defineProperty(exports, "RFCDate", { enumerable: true, get: function () { return rfcdate_js_1.RFCDate; } });
|
|
28
|
+
__exportStar(require("./unrecognized.js"), exports);
|
|
16
29
|
//# sourceMappingURL=index.js.map
|
package/sdk/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sdk/types/index.ts"],"names":[],"mappings":";AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sdk/types/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;AAEH,uCAAwD;AAA/C,0GAAA,cAAc,OAAA;AAAE,sGAAA,UAAU,OAAA;AAInC,iDAAqD;AAA5C,mHAAA,kBAAkB,OAAA;AAC3B,2CAAuC;AAA9B,qGAAA,OAAO,OAAA;AAChB,oDAAkC"}
|
package/sdk/types/operations.js
CHANGED
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.URL_OVERRIDE =
|
|
6
|
+
exports.URL_OVERRIDE = void 0;
|
|
7
|
+
exports.createPageIterator = createPageIterator;
|
|
8
|
+
exports.haltIterator = haltIterator;
|
|
9
|
+
exports.unwrapResultIterator = unwrapResultIterator;
|
|
7
10
|
function createPageIterator(page, halt) {
|
|
8
11
|
return {
|
|
9
12
|
[Symbol.asyncIterator]: async function* paginator() {
|
|
@@ -21,7 +24,6 @@ function createPageIterator(page, halt) {
|
|
|
21
24
|
},
|
|
22
25
|
};
|
|
23
26
|
}
|
|
24
|
-
exports.createPageIterator = createPageIterator;
|
|
25
27
|
/**
|
|
26
28
|
* This utility create a special iterator that yields a single value and
|
|
27
29
|
* terminates. It is useful in paginated SDK functions that have early return
|
|
@@ -36,7 +38,6 @@ function haltIterator(v) {
|
|
|
36
38
|
},
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
|
-
exports.haltIterator = haltIterator;
|
|
40
41
|
/**
|
|
41
42
|
* Converts an async iterator of `Result<V, E>` into an async iterator of `V`.
|
|
42
43
|
* When error results occur, the underlying error value is thrown.
|
|
@@ -60,7 +61,6 @@ async function unwrapResultIterator(iteratorPromise) {
|
|
|
60
61
|
},
|
|
61
62
|
};
|
|
62
63
|
}
|
|
63
|
-
exports.unwrapResultIterator = unwrapResultIterator;
|
|
64
64
|
function unwrapPaginator(paginator) {
|
|
65
65
|
return () => {
|
|
66
66
|
const nextResult = paginator();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/sdk/types/operations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAYH,SAAgB,kBAAkB,CAChC,IAAgC,EAChC,IAAuB;IAIvB,OAAO;QACL,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,SAAS;YAC/C,MAAM,IAAI,CAAC;YACX,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACf,OAAO;YACT,CAAC;YAED,IAAI,CAAC,GAAuB,IAAI,CAAC;YACjC,KAAK,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;gBACvD,MAAM,CAAC,CAAC;gBACR,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;oBACZ,OAAO;gBACT,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/sdk/types/operations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAYH,gDAsBC;AAOD,oCAUC;AAMD,oDAsBC;AAnED,SAAgB,kBAAkB,CAChC,IAAgC,EAChC,IAAuB;IAIvB,OAAO;QACL,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,SAAS;YAC/C,MAAM,IAAI,CAAC;YACX,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACf,OAAO;YACT,CAAC;YAED,IAAI,CAAC,GAAuB,IAAI,CAAC;YACjC,KAAK,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;gBACvD,MAAM,CAAC,CAAC;gBACR,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;oBACZ,OAAO;gBACT,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,YAAY,CAC1B,CAAI;IAEJ,OAAO;QACL,GAAG,CAAC;QACJ,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI;QAChB,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,SAAS;YAC/C,MAAM,CAAC,CAAC;QACV,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,oBAAoB,CACxC,eAAqE;IAErE,MAAM,UAAU,GAAG,MAAM,eAAe,CAAC;IAEzC,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC;QACnB,MAAM,UAAU,CAAC,KAAK,CAAC;IACzB,CAAC;IAED,OAAO;QACL,GAAG,UAAU,CAAC,KAAK;QACnB,IAAI,EAAE,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC;QACtC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;QAC5B,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,SAAS;YAC/C,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,UAAU,EAAE,CAAC;gBACpC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;oBACb,MAAM,IAAI,CAAC,KAAK,CAAC;gBACnB,CAAC;gBACD,MAAM,IAAI,CAAC,KAAK,CAAC;YACnB,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CACtB,SAAwC;IAExC,OAAO,GAAG,EAAE;QACV,MAAM,UAAU,GAAG,SAAS,EAAE,CAAC;QAC/B,IAAI,UAAU,IAAI,IAAI,EAAE,CAAC;YACvB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YAC7B,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;gBACZ,MAAM,GAAG,CAAC,KAAK,CAAC;YAClB,CAAC;YACD,MAAM,GAAG,GAAG;gBACV,GAAG,GAAG,CAAC,KAAK;gBACZ,IAAI,EAAE,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC;aAChC,CAAC;YACF,OAAO,GAAG,CAAC;QACb,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAEY,QAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC"}
|
package/sdk/types/streams.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.isReadableStream =
|
|
6
|
+
exports.isReadableStream = isReadableStream;
|
|
7
7
|
function isReadableStream(val) {
|
|
8
8
|
if (typeof val !== "object" || val === null) {
|
|
9
9
|
return false;
|
|
@@ -15,5 +15,4 @@ function isReadableStream(val) {
|
|
|
15
15
|
typeof stream.cancel === "function" &&
|
|
16
16
|
typeof stream.tee === "function");
|
|
17
17
|
}
|
|
18
|
-
exports.isReadableStream = isReadableStream;
|
|
19
18
|
//# sourceMappingURL=streams.js.map
|
package/sdk/types/streams.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../../src/sdk/types/streams.ts"],"names":[],"mappings":";AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../../src/sdk/types/streams.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,4CAgBC;AAhBD,SAAgB,gBAAgB,CAC9B,GAAY;IAEZ,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAC5C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,+DAA+D;IAC/D,MAAM,MAAM,GAAG,GAAiC,CAAC;IAEjD,6DAA6D;IAC7D,OAAO,CACL,OAAO,MAAM,CAAC,SAAS,KAAK,UAAU;QACtC,OAAO,MAAM,CAAC,MAAM,KAAK,UAAU;QACnC,OAAO,MAAM,CAAC,GAAG,KAAK,UAAU,CACjC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const __brand: unique symbol;
|
|
2
|
+
export type Unrecognized<T> = T & {
|
|
3
|
+
[__brand]: "unrecognized";
|
|
4
|
+
};
|
|
5
|
+
declare function unrecognized<T>(value: T): Unrecognized<T>;
|
|
6
|
+
export declare function startCountingUnrecognized(): {
|
|
7
|
+
/**
|
|
8
|
+
* Ends counting and returns the delta.
|
|
9
|
+
* @param delta - If provided, only this amount is added to the parent counter
|
|
10
|
+
* (used for nested unions where we only want to record the winning option's count).
|
|
11
|
+
* If not provided, records all counts since start().
|
|
12
|
+
*/
|
|
13
|
+
end: (delta?: number) => number;
|
|
14
|
+
};
|
|
15
|
+
export { unrecognized };
|
|
16
|
+
//# sourceMappingURL=unrecognized.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unrecognized.d.ts","sourceRoot":"","sources":["../../src/sdk/types/unrecognized.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,CAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAEhE,iBAAS,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAGlD;AAID,wBAAgB,yBAAyB;IAIrC;;;;;OAKG;kBACW,MAAM;EAQvB;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.startCountingUnrecognized = startCountingUnrecognized;
|
|
7
|
+
exports.unrecognized = unrecognized;
|
|
8
|
+
function unrecognized(value) {
|
|
9
|
+
globalCount++;
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
let globalCount = 0;
|
|
13
|
+
let refCount = 0;
|
|
14
|
+
function startCountingUnrecognized() {
|
|
15
|
+
refCount++;
|
|
16
|
+
const start = globalCount;
|
|
17
|
+
return {
|
|
18
|
+
/**
|
|
19
|
+
* Ends counting and returns the delta.
|
|
20
|
+
* @param delta - If provided, only this amount is added to the parent counter
|
|
21
|
+
* (used for nested unions where we only want to record the winning option's count).
|
|
22
|
+
* If not provided, records all counts since start().
|
|
23
|
+
*/
|
|
24
|
+
end: (delta) => {
|
|
25
|
+
const count = globalCount - start;
|
|
26
|
+
// Reset globalCount back to start, then add only the specified delta
|
|
27
|
+
globalCount = start + (delta ?? count);
|
|
28
|
+
if (--refCount === 0)
|
|
29
|
+
globalCount = 0;
|
|
30
|
+
return count;
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=unrecognized.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unrecognized.js","sourceRoot":"","sources":["../../src/sdk/types/unrecognized.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAYH,8DAkBC;AAEQ,oCAAY;AA3BrB,SAAS,YAAY,CAAI,KAAQ;IAC/B,WAAW,EAAE,CAAC;IACd,OAAO,KAAwB,CAAC;AAClC,CAAC;AAED,IAAI,WAAW,GAAG,CAAC,CAAC;AACpB,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,SAAgB,yBAAyB;IACvC,QAAQ,EAAE,CAAC;IACX,MAAM,KAAK,GAAG,WAAW,CAAC;IAC1B,OAAO;QACL;;;;;WAKG;QACH,GAAG,EAAE,CAAC,KAAc,EAAE,EAAE;YACtB,MAAM,KAAK,GAAG,WAAW,GAAG,KAAK,CAAC;YAClC,qEAAqE;YACrE,WAAW,GAAG,KAAK,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC;YACvC,IAAI,EAAE,QAAQ,KAAK,CAAC;gBAAE,WAAW,GAAG,CAAC,CAAC;YACtC,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/sdk/variation.d.ts
CHANGED
|
@@ -29,6 +29,13 @@ export declare class Variation extends ClientSDK {
|
|
|
29
29
|
* This endpoint will create an upscale for the provided image ID
|
|
30
30
|
*/
|
|
31
31
|
createVariationUpscale(request?: operations.CreateVariationUpscaleRequestBody | undefined, options?: RequestOptions): Promise<operations.CreateVariationUpscaleResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Get motion variation by ID
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* This endpoint will get the motion variation by ID
|
|
37
|
+
*/
|
|
38
|
+
getMotionVariationById(id: string, options?: RequestOptions): Promise<operations.GetMotionVariationByIdResponse>;
|
|
32
39
|
/**
|
|
33
40
|
* Get variation by ID
|
|
34
41
|
*
|
package/sdk/variation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variation.d.ts","sourceRoot":"","sources":["../src/sdk/variation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"variation.d.ts","sourceRoot":"","sources":["../src/sdk/variation.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAC;AAG3D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;OAKG;IACG,0BAA0B,CAC9B,OAAO,EAAE,UAAU,CAAC,qCAAqC,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQzD;;;;;OAKG;IACG,mBAAmB,CACvB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAQlD;;;;;OAKG;IACG,qBAAqB,CACzB,OAAO,CAAC,EAAE,UAAU,CAAC,gCAAgC,GAAG,SAAS,EACjE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;OAKG;IACG,sBAAsB,CAC1B,OAAO,CAAC,EAAE,UAAU,CAAC,iCAAiC,GAAG,SAAS,EAClE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAQrD;;;;;OAKG;IACG,sBAAsB,CAC1B,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAQrD;;;;;OAKG;IACG,gBAAgB,CACpB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAOhD"}
|
package/sdk/variation.js
CHANGED
|
@@ -8,6 +8,7 @@ const variationCreateUniversalUpscalerJob_js_1 = require("../funcs/variationCrea
|
|
|
8
8
|
const variationCreateVariationNoBG_js_1 = require("../funcs/variationCreateVariationNoBG.js");
|
|
9
9
|
const variationCreateVariationUnzoom_js_1 = require("../funcs/variationCreateVariationUnzoom.js");
|
|
10
10
|
const variationCreateVariationUpscale_js_1 = require("../funcs/variationCreateVariationUpscale.js");
|
|
11
|
+
const variationGetMotionVariationById_js_1 = require("../funcs/variationGetMotionVariationById.js");
|
|
11
12
|
const variationGetVariationById_js_1 = require("../funcs/variationGetVariationById.js");
|
|
12
13
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
13
14
|
const fp_js_1 = require("./types/fp.js");
|
|
@@ -48,6 +49,15 @@ class Variation extends sdks_js_1.ClientSDK {
|
|
|
48
49
|
async createVariationUpscale(request, options) {
|
|
49
50
|
return (0, fp_js_1.unwrapAsync)((0, variationCreateVariationUpscale_js_1.variationCreateVariationUpscale)(this, request, options));
|
|
50
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Get motion variation by ID
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* This endpoint will get the motion variation by ID
|
|
57
|
+
*/
|
|
58
|
+
async getMotionVariationById(id, options) {
|
|
59
|
+
return (0, fp_js_1.unwrapAsync)((0, variationGetMotionVariationById_js_1.variationGetMotionVariationById)(this, id, options));
|
|
60
|
+
}
|
|
51
61
|
/**
|
|
52
62
|
* Get variation by ID
|
|
53
63
|
*
|
package/sdk/variation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variation.js","sourceRoot":"","sources":["../src/sdk/variation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4GAAsG;AACtG,8FAAwF;AACxF,kGAA4F;AAC5F,oGAA8F;AAC9F,wFAAkF;AAClF,4CAA2D;AAE3D,yCAA4C;AAE5C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;OAKG;IACH,KAAK,CAAC,0BAA0B,CAC9B,OAAyD,EACzD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4EAAmC,EACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,qBAAqB,CACzB,OAAiE,EACjE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kEAA8B,EAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAkE,EAClE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,EAAU,EACV,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,EAAE,EACF,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"variation.js","sourceRoot":"","sources":["../src/sdk/variation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4GAAsG;AACtG,8FAAwF;AACxF,kGAA4F;AAC5F,oGAA8F;AAC9F,oGAA8F;AAC9F,wFAAkF;AAClF,4CAA2D;AAE3D,yCAA4C;AAE5C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;OAKG;IACH,KAAK,CAAC,0BAA0B,CAC9B,OAAyD,EACzD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4EAAmC,EACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,qBAAqB,CACzB,OAAiE,EACjE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kEAA8B,EAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAkE,EAClE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,sBAAsB,CAC1B,EAAU,EACV,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,EAAE,EACF,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,EAAU,EACV,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,EAAE,EACF,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAtGD,8BAsGC"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { LeonardoCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../sdk/models/errors/httpclienterrors.js";
|
|
20
|
+
import { LeonardoError } from "../sdk/models/errors/leonardoerror.js";
|
|
21
|
+
import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../sdk/types/async.js";
|
|
25
|
+
import { Result } from "../sdk/types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Execute a Blueprint
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Execute a Blueprint Version with custom node inputs. This endpoint triggers the execution of the specified Blueprint Version and returns a Blueprint Execution ID to track the job.
|
|
32
|
+
*/
|
|
33
|
+
export function blueprintsExecuteBlueprint(
|
|
34
|
+
client: LeonardoCore,
|
|
35
|
+
request: operations.ExecuteBlueprintRequestBody,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
operations.ExecuteBlueprintResponse,
|
|
40
|
+
| LeonardoError
|
|
41
|
+
| ResponseValidationError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| SDKValidationError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client: LeonardoCore,
|
|
59
|
+
request: operations.ExecuteBlueprintRequestBody,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
operations.ExecuteBlueprintResponse,
|
|
65
|
+
| LeonardoError
|
|
66
|
+
| ResponseValidationError
|
|
67
|
+
| ConnectionError
|
|
68
|
+
| RequestAbortedError
|
|
69
|
+
| RequestTimeoutError
|
|
70
|
+
| InvalidRequestError
|
|
71
|
+
| UnexpectedClientError
|
|
72
|
+
| SDKValidationError
|
|
73
|
+
>,
|
|
74
|
+
APICall,
|
|
75
|
+
]
|
|
76
|
+
> {
|
|
77
|
+
const parsed = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value) =>
|
|
80
|
+
operations.ExecuteBlueprintRequestBody$outboundSchema.parse(value),
|
|
81
|
+
"Input validation failed",
|
|
82
|
+
);
|
|
83
|
+
if (!parsed.ok) {
|
|
84
|
+
return [parsed, { status: "invalid" }];
|
|
85
|
+
}
|
|
86
|
+
const payload = parsed.value;
|
|
87
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
88
|
+
|
|
89
|
+
const path = pathToFunc("/blueprint-executions")();
|
|
90
|
+
|
|
91
|
+
const headers = new Headers(compactMap({
|
|
92
|
+
"Content-Type": "application/json",
|
|
93
|
+
Accept: "application/json",
|
|
94
|
+
}));
|
|
95
|
+
|
|
96
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
97
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
98
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
99
|
+
|
|
100
|
+
const context = {
|
|
101
|
+
options: client._options,
|
|
102
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
103
|
+
operationID: "executeBlueprint",
|
|
104
|
+
oAuth2Scopes: null,
|
|
105
|
+
|
|
106
|
+
resolvedSecurity: requestSecurity,
|
|
107
|
+
|
|
108
|
+
securitySource: client._options.bearerAuth,
|
|
109
|
+
retryConfig: options?.retries
|
|
110
|
+
|| client._options.retryConfig
|
|
111
|
+
|| { strategy: "none" },
|
|
112
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const requestRes = client._createRequest(context, {
|
|
116
|
+
security: requestSecurity,
|
|
117
|
+
method: "POST",
|
|
118
|
+
baseURL: options?.serverURL,
|
|
119
|
+
path: path,
|
|
120
|
+
headers: headers,
|
|
121
|
+
body: body,
|
|
122
|
+
userAgent: client._options.userAgent,
|
|
123
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
124
|
+
}, options);
|
|
125
|
+
if (!requestRes.ok) {
|
|
126
|
+
return [requestRes, { status: "invalid" }];
|
|
127
|
+
}
|
|
128
|
+
const req = requestRes.value;
|
|
129
|
+
|
|
130
|
+
const doResult = await client._do(req, {
|
|
131
|
+
context,
|
|
132
|
+
errorCodes: [],
|
|
133
|
+
retryConfig: context.retryConfig,
|
|
134
|
+
retryCodes: context.retryCodes,
|
|
135
|
+
});
|
|
136
|
+
if (!doResult.ok) {
|
|
137
|
+
return [doResult, { status: "request-error", request: req }];
|
|
138
|
+
}
|
|
139
|
+
const response = doResult.value;
|
|
140
|
+
|
|
141
|
+
const responseFields = {
|
|
142
|
+
ContentType: response.headers.get("content-type")
|
|
143
|
+
?? "application/octet-stream",
|
|
144
|
+
StatusCode: response.status,
|
|
145
|
+
RawResponse: response,
|
|
146
|
+
Headers: {},
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
const [result] = await M.match<
|
|
150
|
+
operations.ExecuteBlueprintResponse,
|
|
151
|
+
| LeonardoError
|
|
152
|
+
| ResponseValidationError
|
|
153
|
+
| ConnectionError
|
|
154
|
+
| RequestAbortedError
|
|
155
|
+
| RequestTimeoutError
|
|
156
|
+
| InvalidRequestError
|
|
157
|
+
| UnexpectedClientError
|
|
158
|
+
| SDKValidationError
|
|
159
|
+
>(
|
|
160
|
+
M.json(200, operations.ExecuteBlueprintResponse$inboundSchema, {
|
|
161
|
+
key: "oneOf",
|
|
162
|
+
}),
|
|
163
|
+
M.json(400, operations.ExecuteBlueprintResponse$inboundSchema, {
|
|
164
|
+
key: "object",
|
|
165
|
+
}),
|
|
166
|
+
)(response, req, { extraFields: responseFields });
|
|
167
|
+
if (!result.ok) {
|
|
168
|
+
return [result, { status: "complete", request: req, response }];
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return [result, { status: "complete", request: req, response }];
|
|
172
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { LeonardoCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../sdk/models/errors/httpclienterrors.js";
|
|
20
|
+
import { LeonardoError } from "../sdk/models/errors/leonardoerror.js";
|
|
21
|
+
import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../sdk/types/async.js";
|
|
25
|
+
import { Result } from "../sdk/types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Get Blueprint by ID
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Returns a single Blueprint by its akUUID
|
|
32
|
+
*/
|
|
33
|
+
export function blueprintsGetBlueprintById(
|
|
34
|
+
client: LeonardoCore,
|
|
35
|
+
id: string,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
operations.GetBlueprintByIdResponse,
|
|
40
|
+
| LeonardoError
|
|
41
|
+
| ResponseValidationError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| SDKValidationError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
id,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client: LeonardoCore,
|
|
59
|
+
id: string,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
operations.GetBlueprintByIdResponse,
|
|
65
|
+
| LeonardoError
|
|
66
|
+
| ResponseValidationError
|
|
67
|
+
| ConnectionError
|
|
68
|
+
| RequestAbortedError
|
|
69
|
+
| RequestTimeoutError
|
|
70
|
+
| InvalidRequestError
|
|
71
|
+
| UnexpectedClientError
|
|
72
|
+
| SDKValidationError
|
|
73
|
+
>,
|
|
74
|
+
APICall,
|
|
75
|
+
]
|
|
76
|
+
> {
|
|
77
|
+
const input: operations.GetBlueprintByIdRequest = {
|
|
78
|
+
id: id,
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const parsed = safeParse(
|
|
82
|
+
input,
|
|
83
|
+
(value) => operations.GetBlueprintByIdRequest$outboundSchema.parse(value),
|
|
84
|
+
"Input validation failed",
|
|
85
|
+
);
|
|
86
|
+
if (!parsed.ok) {
|
|
87
|
+
return [parsed, { status: "invalid" }];
|
|
88
|
+
}
|
|
89
|
+
const payload = parsed.value;
|
|
90
|
+
const body = null;
|
|
91
|
+
|
|
92
|
+
const pathParams = {
|
|
93
|
+
id: encodeSimple("id", payload.id, {
|
|
94
|
+
explode: false,
|
|
95
|
+
charEncoding: "percent",
|
|
96
|
+
}),
|
|
97
|
+
};
|
|
98
|
+
const path = pathToFunc("/blueprints/{id}")(pathParams);
|
|
99
|
+
|
|
100
|
+
const headers = new Headers(compactMap({
|
|
101
|
+
Accept: "application/json",
|
|
102
|
+
}));
|
|
103
|
+
|
|
104
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
105
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
106
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
|
+
|
|
108
|
+
const context = {
|
|
109
|
+
options: client._options,
|
|
110
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
111
|
+
operationID: "getBlueprintById",
|
|
112
|
+
oAuth2Scopes: null,
|
|
113
|
+
|
|
114
|
+
resolvedSecurity: requestSecurity,
|
|
115
|
+
|
|
116
|
+
securitySource: client._options.bearerAuth,
|
|
117
|
+
retryConfig: options?.retries
|
|
118
|
+
|| client._options.retryConfig
|
|
119
|
+
|| { strategy: "none" },
|
|
120
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const requestRes = client._createRequest(context, {
|
|
124
|
+
security: requestSecurity,
|
|
125
|
+
method: "GET",
|
|
126
|
+
baseURL: options?.serverURL,
|
|
127
|
+
path: path,
|
|
128
|
+
headers: headers,
|
|
129
|
+
body: body,
|
|
130
|
+
userAgent: client._options.userAgent,
|
|
131
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
132
|
+
}, options);
|
|
133
|
+
if (!requestRes.ok) {
|
|
134
|
+
return [requestRes, { status: "invalid" }];
|
|
135
|
+
}
|
|
136
|
+
const req = requestRes.value;
|
|
137
|
+
|
|
138
|
+
const doResult = await client._do(req, {
|
|
139
|
+
context,
|
|
140
|
+
errorCodes: [],
|
|
141
|
+
retryConfig: context.retryConfig,
|
|
142
|
+
retryCodes: context.retryCodes,
|
|
143
|
+
});
|
|
144
|
+
if (!doResult.ok) {
|
|
145
|
+
return [doResult, { status: "request-error", request: req }];
|
|
146
|
+
}
|
|
147
|
+
const response = doResult.value;
|
|
148
|
+
|
|
149
|
+
const responseFields = {
|
|
150
|
+
ContentType: response.headers.get("content-type")
|
|
151
|
+
?? "application/octet-stream",
|
|
152
|
+
StatusCode: response.status,
|
|
153
|
+
RawResponse: response,
|
|
154
|
+
Headers: {},
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
const [result] = await M.match<
|
|
158
|
+
operations.GetBlueprintByIdResponse,
|
|
159
|
+
| LeonardoError
|
|
160
|
+
| ResponseValidationError
|
|
161
|
+
| ConnectionError
|
|
162
|
+
| RequestAbortedError
|
|
163
|
+
| RequestTimeoutError
|
|
164
|
+
| InvalidRequestError
|
|
165
|
+
| UnexpectedClientError
|
|
166
|
+
| SDKValidationError
|
|
167
|
+
>(
|
|
168
|
+
M.json(200, operations.GetBlueprintByIdResponse$inboundSchema, {
|
|
169
|
+
key: "oneOf",
|
|
170
|
+
}),
|
|
171
|
+
)(response, req, { extraFields: responseFields });
|
|
172
|
+
if (!result.ok) {
|
|
173
|
+
return [result, { status: "complete", request: req, response }];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return [result, { status: "complete", request: req, response }];
|
|
177
|
+
}
|