@leonardo-ai/sdk 4.14.2 → 4.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -7
- package/core.d.ts +10 -0
- package/core.d.ts.map +1 -0
- package/core.js +17 -0
- package/core.js.map +1 -0
- package/docs/sdks/dataset/README.md +169 -7
- package/docs/sdks/elements/README.md +33 -1
- package/docs/sdks/image/README.md +132 -7
- package/docs/sdks/initimages/README.md +136 -6
- package/docs/sdks/leonardo/README.md +1 -5
- package/docs/sdks/models/README.md +135 -6
- package/docs/sdks/motion/README.md +34 -4
- package/docs/sdks/pricingcalculator/README.md +34 -2
- package/docs/sdks/prompt/README.md +67 -2
- package/docs/sdks/realtimecanvas/README.md +133 -21
- package/docs/sdks/texture/README.md +67 -4
- package/docs/sdks/threedmodelassets/README.md +67 -4
- package/docs/sdks/user/README.md +33 -1
- package/docs/sdks/variation/README.md +166 -10
- package/funcs/datasetCreateDataset.d.ts +15 -0
- package/funcs/datasetCreateDataset.d.ts.map +1 -0
- package/funcs/datasetCreateDataset.js +101 -0
- package/funcs/datasetCreateDataset.js.map +1 -0
- package/funcs/datasetDeleteDatasetById.d.ts +15 -0
- package/funcs/datasetDeleteDatasetById.d.ts.map +1 -0
- package/funcs/datasetDeleteDatasetById.js +103 -0
- package/funcs/datasetDeleteDatasetById.js.map +1 -0
- package/funcs/datasetGetDatasetById.d.ts +15 -0
- package/funcs/datasetGetDatasetById.d.ts.map +1 -0
- package/funcs/datasetGetDatasetById.js +105 -0
- package/funcs/datasetGetDatasetById.js.map +1 -0
- package/funcs/datasetUploadDatasetImage.d.ts +15 -0
- package/funcs/datasetUploadDatasetImage.d.ts.map +1 -0
- package/funcs/datasetUploadDatasetImage.js +108 -0
- package/funcs/datasetUploadDatasetImage.js.map +1 -0
- package/funcs/datasetUploadDatasetImageFromGen.d.ts +15 -0
- package/funcs/datasetUploadDatasetImageFromGen.d.ts.map +1 -0
- package/funcs/datasetUploadDatasetImageFromGen.js +108 -0
- package/funcs/datasetUploadDatasetImageFromGen.js.map +1 -0
- package/funcs/elementsListElements.d.ts +15 -0
- package/funcs/elementsListElements.d.ts.map +1 -0
- package/funcs/elementsListElements.js +90 -0
- package/funcs/elementsListElements.js.map +1 -0
- package/funcs/imageCreateGeneration.d.ts +15 -0
- package/funcs/imageCreateGeneration.d.ts.map +1 -0
- package/funcs/imageCreateGeneration.js +99 -0
- package/funcs/imageCreateGeneration.js.map +1 -0
- package/funcs/imageDeleteGenerationById.d.ts +15 -0
- package/funcs/imageDeleteGenerationById.d.ts.map +1 -0
- package/funcs/imageDeleteGenerationById.js +103 -0
- package/funcs/imageDeleteGenerationById.js.map +1 -0
- package/funcs/imageGetGenerationById.d.ts +15 -0
- package/funcs/imageGetGenerationById.d.ts.map +1 -0
- package/funcs/imageGetGenerationById.js +103 -0
- package/funcs/imageGetGenerationById.js.map +1 -0
- package/funcs/imageGetGenerationsByUserId.d.ts +15 -0
- package/funcs/imageGetGenerationsByUserId.d.ts.map +1 -0
- package/funcs/imageGetGenerationsByUserId.js +113 -0
- package/funcs/imageGetGenerationsByUserId.js.map +1 -0
- package/funcs/initImagesDeleteInitImageById.d.ts +15 -0
- package/funcs/initImagesDeleteInitImageById.d.ts.map +1 -0
- package/funcs/initImagesDeleteInitImageById.js +103 -0
- package/funcs/initImagesDeleteInitImageById.js.map +1 -0
- package/funcs/initImagesGetInitImageById.d.ts +15 -0
- package/funcs/initImagesGetInitImageById.d.ts.map +1 -0
- package/funcs/initImagesGetInitImageById.js +103 -0
- package/funcs/initImagesGetInitImageById.js.map +1 -0
- package/funcs/initImagesUploadCanvasInitImage.d.ts +15 -0
- package/funcs/initImagesUploadCanvasInitImage.d.ts.map +1 -0
- package/funcs/initImagesUploadCanvasInitImage.js +99 -0
- package/funcs/initImagesUploadCanvasInitImage.js.map +1 -0
- package/funcs/initImagesUploadInitImage.d.ts +15 -0
- package/funcs/initImagesUploadInitImage.d.ts.map +1 -0
- package/funcs/initImagesUploadInitImage.js +101 -0
- package/funcs/initImagesUploadInitImage.js.map +1 -0
- package/funcs/modelsCreateModel.d.ts +15 -0
- package/funcs/modelsCreateModel.d.ts.map +1 -0
- package/funcs/modelsCreateModel.js +101 -0
- package/funcs/modelsCreateModel.js.map +1 -0
- package/funcs/modelsDeleteModelById.d.ts +15 -0
- package/funcs/modelsDeleteModelById.d.ts.map +1 -0
- package/funcs/modelsDeleteModelById.js +105 -0
- package/funcs/modelsDeleteModelById.js.map +1 -0
- package/funcs/modelsGetModelById.d.ts +15 -0
- package/funcs/modelsGetModelById.d.ts.map +1 -0
- package/funcs/modelsGetModelById.js +105 -0
- package/funcs/modelsGetModelById.js.map +1 -0
- package/funcs/modelsListPlatformModels.d.ts +15 -0
- package/funcs/modelsListPlatformModels.d.ts.map +1 -0
- package/funcs/modelsListPlatformModels.js +88 -0
- package/funcs/modelsListPlatformModels.js.map +1 -0
- package/funcs/motionCreateSVDMotionGeneration.d.ts +15 -0
- package/funcs/motionCreateSVDMotionGeneration.d.ts.map +1 -0
- package/funcs/motionCreateSVDMotionGeneration.js +99 -0
- package/funcs/motionCreateSVDMotionGeneration.js.map +1 -0
- package/funcs/pricingCalculatorPricingCalculator.d.ts +15 -0
- package/funcs/pricingCalculatorPricingCalculator.d.ts.map +1 -0
- package/funcs/pricingCalculatorPricingCalculator.js +99 -0
- package/funcs/pricingCalculatorPricingCalculator.js.map +1 -0
- package/funcs/promptPromptImprove.d.ts +15 -0
- package/funcs/promptPromptImprove.d.ts.map +1 -0
- package/funcs/promptPromptImprove.js +101 -0
- package/funcs/promptPromptImprove.js.map +1 -0
- package/funcs/promptPromptRandom.d.ts +15 -0
- package/funcs/promptPromptRandom.d.ts.map +1 -0
- package/funcs/promptPromptRandom.js +90 -0
- package/funcs/promptPromptRandom.js.map +1 -0
- package/funcs/realtimeCanvasCreateLCMGeneration.d.ts +15 -0
- package/funcs/realtimeCanvasCreateLCMGeneration.d.ts.map +1 -0
- package/funcs/realtimeCanvasCreateLCMGeneration.js +99 -0
- package/funcs/realtimeCanvasCreateLCMGeneration.js.map +1 -0
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.d.ts +15 -0
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.d.ts.map +1 -0
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.js +99 -0
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.js.map +1 -0
- package/funcs/realtimeCanvasPerformInpaintingLCM.d.ts +15 -0
- package/funcs/realtimeCanvasPerformInpaintingLCM.d.ts.map +1 -0
- package/funcs/realtimeCanvasPerformInpaintingLCM.js +99 -0
- package/funcs/realtimeCanvasPerformInpaintingLCM.js.map +1 -0
- package/funcs/realtimeCanvasPerformInstantRefine.d.ts +15 -0
- package/funcs/realtimeCanvasPerformInstantRefine.d.ts.map +1 -0
- package/funcs/realtimeCanvasPerformInstantRefine.js +99 -0
- package/funcs/realtimeCanvasPerformInstantRefine.js.map +1 -0
- package/funcs/textureCreateTextureGeneration.d.ts +15 -0
- package/funcs/textureCreateTextureGeneration.d.ts.map +1 -0
- package/funcs/textureCreateTextureGeneration.js +99 -0
- package/funcs/textureCreateTextureGeneration.js.map +1 -0
- package/funcs/textureDeleteTextureGenerationById.d.ts +15 -0
- package/funcs/textureDeleteTextureGenerationById.d.ts.map +1 -0
- package/funcs/textureDeleteTextureGenerationById.js +107 -0
- package/funcs/textureDeleteTextureGenerationById.js.map +1 -0
- package/funcs/threeDModelAssetsDelete3DModelById.d.ts +15 -0
- package/funcs/threeDModelAssetsDelete3DModelById.d.ts.map +1 -0
- package/funcs/threeDModelAssetsDelete3DModelById.js +105 -0
- package/funcs/threeDModelAssetsDelete3DModelById.js.map +1 -0
- package/funcs/threeDModelAssetsUploadModelAsset.d.ts +15 -0
- package/funcs/threeDModelAssetsUploadModelAsset.d.ts.map +1 -0
- package/funcs/threeDModelAssetsUploadModelAsset.js +99 -0
- package/funcs/threeDModelAssetsUploadModelAsset.js.map +1 -0
- package/funcs/userGetUserSelf.d.ts +15 -0
- package/funcs/userGetUserSelf.d.ts.map +1 -0
- package/funcs/userGetUserSelf.js +90 -0
- package/funcs/userGetUserSelf.js.map +1 -0
- package/funcs/variationCreateUniversalUpscalerJob.d.ts +15 -0
- package/funcs/variationCreateUniversalUpscalerJob.d.ts.map +1 -0
- package/funcs/variationCreateUniversalUpscalerJob.js +99 -0
- package/funcs/variationCreateUniversalUpscalerJob.js.map +1 -0
- package/funcs/variationCreateVariationNoBG.d.ts +15 -0
- package/funcs/variationCreateVariationNoBG.d.ts.map +1 -0
- package/funcs/variationCreateVariationNoBG.js +99 -0
- package/funcs/variationCreateVariationNoBG.js.map +1 -0
- package/funcs/variationCreateVariationUnzoom.d.ts +15 -0
- package/funcs/variationCreateVariationUnzoom.d.ts.map +1 -0
- package/funcs/variationCreateVariationUnzoom.js +99 -0
- package/funcs/variationCreateVariationUnzoom.js.map +1 -0
- package/funcs/variationCreateVariationUpscale.d.ts +15 -0
- package/funcs/variationCreateVariationUpscale.d.ts.map +1 -0
- package/funcs/variationCreateVariationUpscale.js +99 -0
- package/funcs/variationCreateVariationUpscale.js.map +1 -0
- package/funcs/variationGetVariationById.d.ts +15 -0
- package/funcs/variationGetVariationById.d.ts.map +1 -0
- package/funcs/variationGetVariationById.js +103 -0
- package/funcs/variationGetVariationById.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +14 -0
- package/index.js.map +1 -1
- package/lib/config.d.ts +5 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/dlv.d.ts +14 -0
- package/lib/dlv.d.ts.map +1 -0
- package/lib/dlv.js +50 -0
- package/lib/dlv.js.map +1 -0
- package/lib/files.d.ts +12 -0
- package/lib/files.d.ts.map +1 -0
- package/lib/files.js +52 -0
- package/lib/files.js.map +1 -0
- package/lib/http.d.ts +11 -52
- package/lib/http.d.ts.map +1 -1
- package/lib/http.js +49 -173
- package/lib/http.js.map +1 -1
- package/lib/logger.d.ts +6 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +6 -0
- package/lib/logger.js.map +1 -0
- package/lib/matchers.d.ts +64 -0
- package/lib/matchers.d.ts.map +1 -0
- package/lib/matchers.js +206 -0
- package/lib/matchers.js.map +1 -0
- package/lib/retries.d.ts.map +1 -1
- package/lib/retries.js +2 -28
- package/lib/retries.js.map +1 -1
- package/lib/schemas.d.ts +8 -0
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +16 -1
- package/lib/schemas.js.map +1 -1
- package/lib/sdks.d.ts +14 -16
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +144 -27
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +7 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +13 -1
- package/lib/security.js.map +1 -1
- package/package.json +2 -1
- package/sdk/dataset.d.ts +0 -3
- package/sdk/dataset.d.ts.map +1 -1
- package/sdk/dataset.js +11 -332
- package/sdk/dataset.js.map +1 -1
- package/sdk/elements.d.ts +0 -3
- package/sdk/elements.d.ts.map +1 -1
- package/sdk/elements.js +3 -93
- package/sdk/elements.js.map +1 -1
- package/sdk/image.d.ts +0 -3
- package/sdk/image.d.ts.map +1 -1
- package/sdk/image.js +9 -273
- package/sdk/image.js.map +1 -1
- package/sdk/initimages.d.ts +0 -3
- package/sdk/initimages.d.ts.map +1 -1
- package/sdk/initimages.js +9 -261
- package/sdk/initimages.js.map +1 -1
- package/sdk/models/errors/httpclienterrors.d.ts +44 -0
- package/sdk/models/errors/httpclienterrors.d.ts.map +1 -0
- package/sdk/models/errors/httpclienterrors.js +78 -0
- package/sdk/models/errors/httpclienterrors.js.map +1 -0
- package/sdk/models/errors/index.d.ts +1 -0
- package/sdk/models/errors/index.d.ts.map +1 -1
- package/sdk/models/errors/index.js +1 -0
- package/sdk/models/errors/index.js.map +1 -1
- package/sdk/models/errors/sdkvalidationerror.d.ts +4 -1
- package/sdk/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/sdk/models/errors/sdkvalidationerror.js +3 -5
- package/sdk/models/errors/sdkvalidationerror.js.map +1 -1
- package/sdk/models/operations/pricingcalculator.d.ts +5 -0
- package/sdk/models/operations/pricingcalculator.d.ts.map +1 -1
- package/sdk/models/operations/pricingcalculator.js +2 -0
- package/sdk/models/operations/pricingcalculator.js.map +1 -1
- package/sdk/models.d.ts +0 -3
- package/sdk/models.d.ts.map +1 -1
- package/sdk/models.js +9 -256
- package/sdk/models.js.map +1 -1
- package/sdk/motion.d.ts +0 -3
- package/sdk/motion.d.ts.map +1 -1
- package/sdk/motion.js +3 -102
- package/sdk/motion.js.map +1 -1
- package/sdk/pricingcalculator.d.ts +0 -3
- package/sdk/pricingcalculator.d.ts.map +1 -1
- package/sdk/pricingcalculator.js +3 -100
- package/sdk/pricingcalculator.js.map +1 -1
- package/sdk/prompt.d.ts +0 -3
- package/sdk/prompt.d.ts.map +1 -1
- package/sdk/prompt.js +5 -146
- package/sdk/prompt.js.map +1 -1
- package/sdk/realtimecanvas.d.ts +0 -3
- package/sdk/realtimecanvas.d.ts.map +1 -1
- package/sdk/realtimecanvas.js +9 -253
- package/sdk/realtimecanvas.js.map +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -23
- package/sdk/sdk.js.map +1 -1
- package/sdk/texture.d.ts +0 -3
- package/sdk/texture.d.ts.map +1 -1
- package/sdk/texture.js +5 -159
- package/sdk/texture.js.map +1 -1
- package/sdk/threedmodelassets.d.ts +0 -3
- package/sdk/threedmodelassets.d.ts.map +1 -1
- package/sdk/threedmodelassets.js +5 -157
- package/sdk/threedmodelassets.js.map +1 -1
- package/sdk/types/constdatetime.d.ts +3 -0
- package/sdk/types/constdatetime.d.ts.map +1 -0
- package/sdk/types/constdatetime.js +37 -0
- package/sdk/types/constdatetime.js.map +1 -0
- package/sdk/types/fp.d.ts +31 -0
- package/sdk/types/fp.d.ts.map +1 -0
- package/sdk/types/fp.js +38 -0
- package/sdk/types/fp.js.map +1 -0
- package/sdk/types/index.d.ts +1 -0
- package/sdk/types/index.d.ts.map +1 -1
- package/sdk/types/operations.d.ts +22 -8
- package/sdk/types/operations.d.ts.map +1 -1
- package/sdk/types/operations.js +64 -2
- package/sdk/types/operations.js.map +1 -1
- package/sdk/types/streams.d.ts +2 -0
- package/sdk/types/streams.d.ts.map +1 -0
- package/sdk/types/streams.js +19 -0
- package/sdk/types/streams.js.map +1 -0
- package/sdk/user.d.ts +0 -3
- package/sdk/user.d.ts.map +1 -1
- package/sdk/user.js +3 -93
- package/sdk/user.js.map +1 -1
- package/sdk/variation.d.ts +0 -3
- package/sdk/variation.d.ts.map +1 -1
- package/sdk/variation.js +11 -310
- package/sdk/variation.js.map +1 -1
- package/src/core.ts +13 -0
- package/src/funcs/datasetCreateDataset.ts +127 -0
- package/src/funcs/datasetDeleteDatasetById.ts +133 -0
- package/src/funcs/datasetGetDatasetById.ts +132 -0
- package/src/funcs/datasetUploadDatasetImage.ts +139 -0
- package/src/funcs/datasetUploadDatasetImageFromGen.ts +139 -0
- package/src/funcs/elementsListElements.ts +109 -0
- package/src/funcs/imageCreateGeneration.ts +128 -0
- package/src/funcs/imageDeleteGenerationById.ts +133 -0
- package/src/funcs/imageGetGenerationById.ts +133 -0
- package/src/funcs/imageGetGenerationsByUserId.ts +149 -0
- package/src/funcs/initImagesDeleteInitImageById.ts +133 -0
- package/src/funcs/initImagesGetInitImageById.ts +133 -0
- package/src/funcs/initImagesUploadCanvasInitImage.ts +128 -0
- package/src/funcs/initImagesUploadInitImage.ts +127 -0
- package/src/funcs/modelsCreateModel.ts +127 -0
- package/src/funcs/modelsDeleteModelById.ts +132 -0
- package/src/funcs/modelsGetModelById.ts +132 -0
- package/src/funcs/modelsListPlatformModels.ts +110 -0
- package/src/funcs/motionCreateSVDMotionGeneration.ts +129 -0
- package/src/funcs/pricingCalculatorPricingCalculator.ts +128 -0
- package/src/funcs/promptPromptImprove.ts +127 -0
- package/src/funcs/promptPromptRandom.ts +109 -0
- package/src/funcs/realtimeCanvasCreateLCMGeneration.ts +129 -0
- package/src/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.ts +129 -0
- package/src/funcs/realtimeCanvasPerformInpaintingLCM.ts +129 -0
- package/src/funcs/realtimeCanvasPerformInstantRefine.ts +129 -0
- package/src/funcs/textureCreateTextureGeneration.ts +129 -0
- package/src/funcs/textureDeleteTextureGenerationById.ts +137 -0
- package/src/funcs/threeDModelAssetsDelete3DModelById.ts +136 -0
- package/src/funcs/threeDModelAssetsUploadModelAsset.ts +128 -0
- package/src/funcs/userGetUserSelf.ts +109 -0
- package/src/funcs/variationCreateUniversalUpscalerJob.ts +128 -0
- package/src/funcs/variationCreateVariationNoBG.ts +128 -0
- package/src/funcs/variationCreateVariationUnzoom.ts +129 -0
- package/src/funcs/variationCreateVariationUpscale.ts +129 -0
- package/src/funcs/variationGetVariationById.ts +133 -0
- package/src/index.ts +1 -0
- package/src/lib/config.ts +5 -3
- package/src/lib/dlv.ts +53 -0
- package/src/lib/files.ts +58 -0
- package/src/lib/http.ts +255 -438
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +305 -0
- package/src/lib/retries.ts +2 -41
- package/src/lib/schemas.ts +18 -0
- package/src/lib/sdks.ts +194 -35
- package/src/lib/security.ts +22 -1
- package/src/sdk/dataset.ts +11 -389
- package/src/sdk/elements.ts +3 -84
- package/src/sdk/image.ts +9 -319
- package/src/sdk/initimages.ts +9 -303
- package/src/sdk/models/errors/httpclienterrors.ts +62 -0
- package/src/sdk/models/errors/index.ts +1 -0
- package/src/sdk/models/errors/sdkvalidationerror.ts +8 -6
- package/src/sdk/models/operations/pricingcalculator.ts +7 -0
- package/src/sdk/models.ts +9 -292
- package/src/sdk/motion.ts +3 -103
- package/src/sdk/pricingcalculator.ts +3 -99
- package/src/sdk/prompt.ts +5 -152
- package/src/sdk/realtimecanvas.ts +9 -305
- package/src/sdk/sdk.ts +0 -29
- package/src/sdk/texture.ts +5 -175
- package/src/sdk/threedmodelassets.ts +5 -171
- package/src/sdk/types/constdatetime.ts +15 -0
- package/src/sdk/types/fp.ts +50 -0
- package/src/sdk/types/index.ts +1 -0
- package/src/sdk/types/operations.ts +81 -7
- package/src/sdk/types/streams.ts +21 -0
- package/src/sdk/user.ts +3 -84
- package/src/sdk/variation.ts +11 -374
package/sdk/texture.js
CHANGED
|
@@ -2,59 +2,13 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.Texture = void 0;
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
33
|
-
const http_js_1 = require("../lib/http.js");
|
|
34
|
-
const schemas$ = __importStar(require("../lib/schemas.js"));
|
|
7
|
+
const textureCreateTextureGeneration_js_1 = require("../funcs/textureCreateTextureGeneration.js");
|
|
8
|
+
const textureDeleteTextureGenerationById_js_1 = require("../funcs/textureDeleteTextureGenerationById.js");
|
|
35
9
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
36
|
-
const
|
|
10
|
+
const fp_js_1 = require("./types/fp.js");
|
|
37
11
|
class Texture extends sdks_js_1.ClientSDK {
|
|
38
|
-
constructor(options = {}) {
|
|
39
|
-
const opt = options;
|
|
40
|
-
let hooks;
|
|
41
|
-
if (typeof opt === "object" &&
|
|
42
|
-
opt != null &&
|
|
43
|
-
"hooks" in opt &&
|
|
44
|
-
opt.hooks instanceof hooks_js_1.SDKHooks) {
|
|
45
|
-
hooks = opt.hooks;
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
hooks = new hooks_js_1.SDKHooks();
|
|
49
|
-
}
|
|
50
|
-
super({
|
|
51
|
-
client: options.httpClient || new http_js_1.HTTPClient(),
|
|
52
|
-
baseURL: (0, config_js_1.serverURLFromOptions)(options),
|
|
53
|
-
hooks,
|
|
54
|
-
});
|
|
55
|
-
this.options$ = { ...options, hooks };
|
|
56
|
-
void this.options$;
|
|
57
|
-
}
|
|
58
12
|
/**
|
|
59
13
|
* Create Texture Generation
|
|
60
14
|
*
|
|
@@ -62,57 +16,7 @@ class Texture extends sdks_js_1.ClientSDK {
|
|
|
62
16
|
* This endpoint will generate a texture generation.
|
|
63
17
|
*/
|
|
64
18
|
async createTextureGeneration(request, options) {
|
|
65
|
-
|
|
66
|
-
const input$ = request;
|
|
67
|
-
const payload$ = schemas$.parse(input$, (value$) => operations.CreateTextureGenerationRequestBody$outboundSchema.optional().parse(value$), "Input validation failed");
|
|
68
|
-
const body$ = payload$ === undefined ? null : (0, encodings_js_1.encodeJSON)("body", payload$, { explode: true });
|
|
69
|
-
const path$ = this.templateURLComponent("/generations-texture")();
|
|
70
|
-
const query$ = "";
|
|
71
|
-
const headers$ = new Headers({
|
|
72
|
-
"Content-Type": "application/json",
|
|
73
|
-
Accept: "application/json",
|
|
74
|
-
});
|
|
75
|
-
let security$;
|
|
76
|
-
if (typeof this.options$.bearerAuth === "function") {
|
|
77
|
-
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
78
|
-
}
|
|
79
|
-
else if (this.options$.bearerAuth) {
|
|
80
|
-
security$ = { bearerAuth: this.options$.bearerAuth };
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
security$ = {};
|
|
84
|
-
}
|
|
85
|
-
const context = {
|
|
86
|
-
operationID: "createTextureGeneration",
|
|
87
|
-
oAuth2Scopes: [],
|
|
88
|
-
securitySource: this.options$.bearerAuth,
|
|
89
|
-
};
|
|
90
|
-
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
91
|
-
const request$ = this.createRequest$(context, {
|
|
92
|
-
security: securitySettings$,
|
|
93
|
-
method: "POST",
|
|
94
|
-
path: path$,
|
|
95
|
-
headers: headers$,
|
|
96
|
-
query: query$,
|
|
97
|
-
body: body$,
|
|
98
|
-
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || this.options$.timeoutMs || -1,
|
|
99
|
-
}, options);
|
|
100
|
-
const response = await this.do$(request$, {
|
|
101
|
-
context,
|
|
102
|
-
errorCodes: [],
|
|
103
|
-
retryConfig: (options === null || options === void 0 ? void 0 : options.retries) || this.options$.retryConfig,
|
|
104
|
-
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
105
|
-
});
|
|
106
|
-
const responseFields$ = {
|
|
107
|
-
ContentType: (_a = response.headers.get("content-type")) !== null && _a !== void 0 ? _a : "application/octet-stream",
|
|
108
|
-
StatusCode: response.status,
|
|
109
|
-
RawResponse: response,
|
|
110
|
-
Headers: {},
|
|
111
|
-
};
|
|
112
|
-
const [result$] = await this.matcher()
|
|
113
|
-
.json(200, operations.CreateTextureGenerationResponse$inboundSchema, { key: "object" })
|
|
114
|
-
.match(response, { extraFields: responseFields$ });
|
|
115
|
-
return result$;
|
|
19
|
+
return (0, fp_js_1.unwrapAsync)((0, textureCreateTextureGeneration_js_1.textureCreateTextureGeneration)(this, request, options));
|
|
116
20
|
}
|
|
117
21
|
/**
|
|
118
22
|
* Delete Texture Generation by ID
|
|
@@ -121,65 +25,7 @@ class Texture extends sdks_js_1.ClientSDK {
|
|
|
121
25
|
* This endpoint deletes the specific texture generation.
|
|
122
26
|
*/
|
|
123
27
|
async deleteTextureGenerationById(id, requestBody, options) {
|
|
124
|
-
|
|
125
|
-
const input$ = {
|
|
126
|
-
requestBody: requestBody,
|
|
127
|
-
id: id,
|
|
128
|
-
};
|
|
129
|
-
const payload$ = schemas$.parse(input$, (value$) => operations.DeleteTextureGenerationByIdRequest$outboundSchema.parse(value$), "Input validation failed");
|
|
130
|
-
const body$ = (0, encodings_js_1.encodeJSON)("body", payload$.RequestBody, { explode: true });
|
|
131
|
-
const pathParams$ = {
|
|
132
|
-
id: (0, encodings_js_1.encodeSimple)("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
133
|
-
};
|
|
134
|
-
const path$ = this.templateURLComponent("/generations-texture/{id}")(pathParams$);
|
|
135
|
-
const query$ = "";
|
|
136
|
-
const headers$ = new Headers({
|
|
137
|
-
"Content-Type": "application/json",
|
|
138
|
-
Accept: "application/json",
|
|
139
|
-
});
|
|
140
|
-
let security$;
|
|
141
|
-
if (typeof this.options$.bearerAuth === "function") {
|
|
142
|
-
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
143
|
-
}
|
|
144
|
-
else if (this.options$.bearerAuth) {
|
|
145
|
-
security$ = { bearerAuth: this.options$.bearerAuth };
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
security$ = {};
|
|
149
|
-
}
|
|
150
|
-
const context = {
|
|
151
|
-
operationID: "deleteTextureGenerationById",
|
|
152
|
-
oAuth2Scopes: [],
|
|
153
|
-
securitySource: this.options$.bearerAuth,
|
|
154
|
-
};
|
|
155
|
-
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
156
|
-
const request$ = this.createRequest$(context, {
|
|
157
|
-
security: securitySettings$,
|
|
158
|
-
method: "DELETE",
|
|
159
|
-
path: path$,
|
|
160
|
-
headers: headers$,
|
|
161
|
-
query: query$,
|
|
162
|
-
body: body$,
|
|
163
|
-
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || this.options$.timeoutMs || -1,
|
|
164
|
-
}, options);
|
|
165
|
-
const response = await this.do$(request$, {
|
|
166
|
-
context,
|
|
167
|
-
errorCodes: [],
|
|
168
|
-
retryConfig: (options === null || options === void 0 ? void 0 : options.retries) || this.options$.retryConfig,
|
|
169
|
-
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
170
|
-
});
|
|
171
|
-
const responseFields$ = {
|
|
172
|
-
ContentType: (_a = response.headers.get("content-type")) !== null && _a !== void 0 ? _a : "application/octet-stream",
|
|
173
|
-
StatusCode: response.status,
|
|
174
|
-
RawResponse: response,
|
|
175
|
-
Headers: {},
|
|
176
|
-
};
|
|
177
|
-
const [result$] = await this.matcher()
|
|
178
|
-
.json(200, operations.DeleteTextureGenerationByIdResponse$inboundSchema, {
|
|
179
|
-
key: "object",
|
|
180
|
-
})
|
|
181
|
-
.match(response, { extraFields: responseFields$ });
|
|
182
|
-
return result$;
|
|
28
|
+
return (0, fp_js_1.unwrapAsync)((0, textureDeleteTextureGenerationById_js_1.textureDeleteTextureGenerationById)(this, id, requestBody, options));
|
|
183
29
|
}
|
|
184
30
|
}
|
|
185
31
|
exports.Texture = Texture;
|
package/sdk/texture.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"texture.js","sourceRoot":"","sources":["../src/sdk/texture.ts"],"names":[],"mappings":";AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"texture.js","sourceRoot":"","sources":["../src/sdk/texture.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kGAA4F;AAC5F,0GAAoG;AACpG,4CAA2D;AAE3D,yCAA4C;AAE5C,MAAa,OAAQ,SAAQ,mBAAS;IAClC;;;;;OAKG;IACH,KAAK,CAAC,uBAAuB,CACzB,OAAmE,EACnE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kEAA8B,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,2BAA2B,CAC7B,EAAU,EACV,WAA2E,EAC3E,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0EAAkC,EAAC,IAAI,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3F,CAAC;CACJ;AA3BD,0BA2BC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { SDKOptions } from "../lib/config.js";
|
|
2
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
3
2
|
import * as operations from "./models/operations/index.js";
|
|
4
3
|
export declare class ThreeDModelAssets extends ClientSDK {
|
|
5
|
-
private readonly options$;
|
|
6
|
-
constructor(options?: SDKOptions);
|
|
7
4
|
/**
|
|
8
5
|
* Delete 3D Model by ID
|
|
9
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threedmodelassets.d.ts","sourceRoot":"","sources":["../src/sdk/threedmodelassets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"threedmodelassets.d.ts","sourceRoot":"","sources":["../src/sdk/threedmodelassets.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAC;AAG3D,qBAAa,iBAAkB,SAAQ,SAAS;IAC5C;;;;;OAKG;IACG,iBAAiB,CACnB,EAAE,EAAE,MAAM,EACV,WAAW,CAAC,EAAE,UAAU,CAAC,4BAA4B,GAAG,SAAS,EACjE,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAIhD;;;;;OAKG;IACG,gBAAgB,CAClB,OAAO,CAAC,EAAE,UAAU,CAAC,2BAA2B,GAAG,SAAS,EAC5D,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAGlD"}
|
package/sdk/threedmodelassets.js
CHANGED
|
@@ -2,59 +2,13 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.ThreeDModelAssets = void 0;
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
33
|
-
const http_js_1 = require("../lib/http.js");
|
|
34
|
-
const schemas$ = __importStar(require("../lib/schemas.js"));
|
|
7
|
+
const threeDModelAssetsDelete3DModelById_js_1 = require("../funcs/threeDModelAssetsDelete3DModelById.js");
|
|
8
|
+
const threeDModelAssetsUploadModelAsset_js_1 = require("../funcs/threeDModelAssetsUploadModelAsset.js");
|
|
35
9
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
36
|
-
const
|
|
10
|
+
const fp_js_1 = require("./types/fp.js");
|
|
37
11
|
class ThreeDModelAssets extends sdks_js_1.ClientSDK {
|
|
38
|
-
constructor(options = {}) {
|
|
39
|
-
const opt = options;
|
|
40
|
-
let hooks;
|
|
41
|
-
if (typeof opt === "object" &&
|
|
42
|
-
opt != null &&
|
|
43
|
-
"hooks" in opt &&
|
|
44
|
-
opt.hooks instanceof hooks_js_1.SDKHooks) {
|
|
45
|
-
hooks = opt.hooks;
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
hooks = new hooks_js_1.SDKHooks();
|
|
49
|
-
}
|
|
50
|
-
super({
|
|
51
|
-
client: options.httpClient || new http_js_1.HTTPClient(),
|
|
52
|
-
baseURL: (0, config_js_1.serverURLFromOptions)(options),
|
|
53
|
-
hooks,
|
|
54
|
-
});
|
|
55
|
-
this.options$ = { ...options, hooks };
|
|
56
|
-
void this.options$;
|
|
57
|
-
}
|
|
58
12
|
/**
|
|
59
13
|
* Delete 3D Model by ID
|
|
60
14
|
*
|
|
@@ -62,63 +16,7 @@ class ThreeDModelAssets extends sdks_js_1.ClientSDK {
|
|
|
62
16
|
* This endpoint deletes the specific 3D Model
|
|
63
17
|
*/
|
|
64
18
|
async delete3DModelById(id, requestBody, options) {
|
|
65
|
-
|
|
66
|
-
const input$ = {
|
|
67
|
-
requestBody: requestBody,
|
|
68
|
-
id: id,
|
|
69
|
-
};
|
|
70
|
-
const payload$ = schemas$.parse(input$, (value$) => operations.Delete3DModelByIdRequest$outboundSchema.parse(value$), "Input validation failed");
|
|
71
|
-
const body$ = (0, encodings_js_1.encodeJSON)("body", payload$.RequestBody, { explode: true });
|
|
72
|
-
const pathParams$ = {
|
|
73
|
-
id: (0, encodings_js_1.encodeSimple)("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
74
|
-
};
|
|
75
|
-
const path$ = this.templateURLComponent("/models-3d/{id}")(pathParams$);
|
|
76
|
-
const query$ = "";
|
|
77
|
-
const headers$ = new Headers({
|
|
78
|
-
"Content-Type": "application/json",
|
|
79
|
-
Accept: "application/json",
|
|
80
|
-
});
|
|
81
|
-
let security$;
|
|
82
|
-
if (typeof this.options$.bearerAuth === "function") {
|
|
83
|
-
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
84
|
-
}
|
|
85
|
-
else if (this.options$.bearerAuth) {
|
|
86
|
-
security$ = { bearerAuth: this.options$.bearerAuth };
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
security$ = {};
|
|
90
|
-
}
|
|
91
|
-
const context = {
|
|
92
|
-
operationID: "delete3DModelById",
|
|
93
|
-
oAuth2Scopes: [],
|
|
94
|
-
securitySource: this.options$.bearerAuth,
|
|
95
|
-
};
|
|
96
|
-
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
97
|
-
const request$ = this.createRequest$(context, {
|
|
98
|
-
security: securitySettings$,
|
|
99
|
-
method: "DELETE",
|
|
100
|
-
path: path$,
|
|
101
|
-
headers: headers$,
|
|
102
|
-
query: query$,
|
|
103
|
-
body: body$,
|
|
104
|
-
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || this.options$.timeoutMs || -1,
|
|
105
|
-
}, options);
|
|
106
|
-
const response = await this.do$(request$, {
|
|
107
|
-
context,
|
|
108
|
-
errorCodes: [],
|
|
109
|
-
retryConfig: (options === null || options === void 0 ? void 0 : options.retries) || this.options$.retryConfig,
|
|
110
|
-
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
111
|
-
});
|
|
112
|
-
const responseFields$ = {
|
|
113
|
-
ContentType: (_a = response.headers.get("content-type")) !== null && _a !== void 0 ? _a : "application/octet-stream",
|
|
114
|
-
StatusCode: response.status,
|
|
115
|
-
RawResponse: response,
|
|
116
|
-
Headers: {},
|
|
117
|
-
};
|
|
118
|
-
const [result$] = await this.matcher()
|
|
119
|
-
.json(200, operations.Delete3DModelByIdResponse$inboundSchema, { key: "object" })
|
|
120
|
-
.match(response, { extraFields: responseFields$ });
|
|
121
|
-
return result$;
|
|
19
|
+
return (0, fp_js_1.unwrapAsync)((0, threeDModelAssetsDelete3DModelById_js_1.threeDModelAssetsDelete3DModelById)(this, id, requestBody, options));
|
|
122
20
|
}
|
|
123
21
|
/**
|
|
124
22
|
* Upload 3D Model
|
|
@@ -127,57 +25,7 @@ class ThreeDModelAssets extends sdks_js_1.ClientSDK {
|
|
|
127
25
|
* This endpoint returns presigned details to upload a 3D model to S3
|
|
128
26
|
*/
|
|
129
27
|
async uploadModelAsset(request, options) {
|
|
130
|
-
|
|
131
|
-
const input$ = request;
|
|
132
|
-
const payload$ = schemas$.parse(input$, (value$) => operations.UploadModelAssetRequestBody$outboundSchema.optional().parse(value$), "Input validation failed");
|
|
133
|
-
const body$ = payload$ === undefined ? null : (0, encodings_js_1.encodeJSON)("body", payload$, { explode: true });
|
|
134
|
-
const path$ = this.templateURLComponent("/models-3d/upload")();
|
|
135
|
-
const query$ = "";
|
|
136
|
-
const headers$ = new Headers({
|
|
137
|
-
"Content-Type": "application/json",
|
|
138
|
-
Accept: "application/json",
|
|
139
|
-
});
|
|
140
|
-
let security$;
|
|
141
|
-
if (typeof this.options$.bearerAuth === "function") {
|
|
142
|
-
security$ = { bearerAuth: await this.options$.bearerAuth() };
|
|
143
|
-
}
|
|
144
|
-
else if (this.options$.bearerAuth) {
|
|
145
|
-
security$ = { bearerAuth: this.options$.bearerAuth };
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
security$ = {};
|
|
149
|
-
}
|
|
150
|
-
const context = {
|
|
151
|
-
operationID: "uploadModelAsset",
|
|
152
|
-
oAuth2Scopes: [],
|
|
153
|
-
securitySource: this.options$.bearerAuth,
|
|
154
|
-
};
|
|
155
|
-
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
156
|
-
const request$ = this.createRequest$(context, {
|
|
157
|
-
security: securitySettings$,
|
|
158
|
-
method: "POST",
|
|
159
|
-
path: path$,
|
|
160
|
-
headers: headers$,
|
|
161
|
-
query: query$,
|
|
162
|
-
body: body$,
|
|
163
|
-
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || this.options$.timeoutMs || -1,
|
|
164
|
-
}, options);
|
|
165
|
-
const response = await this.do$(request$, {
|
|
166
|
-
context,
|
|
167
|
-
errorCodes: [],
|
|
168
|
-
retryConfig: (options === null || options === void 0 ? void 0 : options.retries) || this.options$.retryConfig,
|
|
169
|
-
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
170
|
-
});
|
|
171
|
-
const responseFields$ = {
|
|
172
|
-
ContentType: (_a = response.headers.get("content-type")) !== null && _a !== void 0 ? _a : "application/octet-stream",
|
|
173
|
-
StatusCode: response.status,
|
|
174
|
-
RawResponse: response,
|
|
175
|
-
Headers: {},
|
|
176
|
-
};
|
|
177
|
-
const [result$] = await this.matcher()
|
|
178
|
-
.json(200, operations.UploadModelAssetResponse$inboundSchema, { key: "object" })
|
|
179
|
-
.match(response, { extraFields: responseFields$ });
|
|
180
|
-
return result$;
|
|
28
|
+
return (0, fp_js_1.unwrapAsync)((0, threeDModelAssetsUploadModelAsset_js_1.threeDModelAssetsUploadModelAsset)(this, request, options));
|
|
181
29
|
}
|
|
182
30
|
}
|
|
183
31
|
exports.ThreeDModelAssets = ThreeDModelAssets;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threedmodelassets.js","sourceRoot":"","sources":["../src/sdk/threedmodelassets.ts"],"names":[],"mappings":";AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"threedmodelassets.js","sourceRoot":"","sources":["../src/sdk/threedmodelassets.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0GAAoG;AACpG,wGAAkG;AAClG,4CAA2D;AAE3D,yCAA4C;AAE5C,MAAa,iBAAkB,SAAQ,mBAAS;IAC5C;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CACnB,EAAU,EACV,WAAiE,EACjE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0EAAkC,EAAC,IAAI,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CAClB,OAA4D,EAC5D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wEAAiC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAClF,CAAC;CACJ;AA3BD,8CA2BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constdatetime.d.ts","sourceRoot":"","sources":["../../src/sdk/types/constdatetime.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,wBAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,GACV,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAM1C"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.constDateTime = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
function constDateTime(val) {
|
|
32
|
+
return z.custom((v) => {
|
|
33
|
+
return (typeof v === "string" && new Date(v).getTime() === new Date(val).getTime());
|
|
34
|
+
}, `Value must be equivelant to ${val}`);
|
|
35
|
+
}
|
|
36
|
+
exports.constDateTime = constDateTime;
|
|
37
|
+
//# sourceMappingURL=constdatetime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constdatetime.js","sourceRoot":"","sources":["../../src/sdk/types/constdatetime.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAEzB,SAAgB,aAAa,CAC3B,GAAW;IAEX,OAAO,CAAC,CAAC,MAAM,CAAS,CAAC,CAAC,EAAE,EAAE;QAC5B,OAAO,CACL,OAAO,CAAC,KAAK,QAAQ,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAC3E,CAAC;IACJ,CAAC,EAAE,+BAA+B,GAAG,EAAE,CAAC,CAAC;AAC3C,CAAC;AARD,sCAQC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A monad that captures the result of a function call or an error if it was not
|
|
3
|
+
* successful. Railway programming, enabled by this type, can be a nicer
|
|
4
|
+
* alternative to traditional exception throwing because it allows functions to
|
|
5
|
+
* declare all _known_ errors with static types and then check for them
|
|
6
|
+
* exhaustively in application code. Thrown exception have a type of `unknown`
|
|
7
|
+
* and break out of regular control flow of programs making them harder to
|
|
8
|
+
* inspect and more verbose work with due to try-catch blocks.
|
|
9
|
+
*/
|
|
10
|
+
export type Result<T, E = unknown> = {
|
|
11
|
+
ok: true;
|
|
12
|
+
value: T;
|
|
13
|
+
error?: never;
|
|
14
|
+
} | {
|
|
15
|
+
ok: false;
|
|
16
|
+
value?: never;
|
|
17
|
+
error: E;
|
|
18
|
+
};
|
|
19
|
+
export declare function OK<V>(value: V): Result<V, never>;
|
|
20
|
+
export declare function ERR<E>(error: E): Result<never, E>;
|
|
21
|
+
/**
|
|
22
|
+
* unwrap is a convenience function for extracting a value from a result or
|
|
23
|
+
* throwing if there was an error.
|
|
24
|
+
*/
|
|
25
|
+
export declare function unwrap<T>(r: Result<T, unknown>): T;
|
|
26
|
+
/**
|
|
27
|
+
* unwrapAsync is a convenience function for resolving a value from a Promise
|
|
28
|
+
* of a result or rejecting if an error occurred.
|
|
29
|
+
*/
|
|
30
|
+
export declare function unwrapAsync<T>(pr: Promise<Result<T, unknown>>): Promise<T>;
|
|
31
|
+
//# sourceMappingURL=fp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fp.d.ts","sourceRoot":"","sources":["../../src/sdk/types/fp.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,IAC7B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GACrC;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC;AAE3C,wBAAgB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAEhD;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAEjD;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAKlD;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,CAAC,EACjC,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GAC9B,OAAO,CAAC,CAAC,CAAC,CAOZ"}
|
package/sdk/types/fp.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
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.unwrapAsync = exports.unwrap = exports.ERR = exports.OK = void 0;
|
|
7
|
+
function OK(value) {
|
|
8
|
+
return { ok: true, value };
|
|
9
|
+
}
|
|
10
|
+
exports.OK = OK;
|
|
11
|
+
function ERR(error) {
|
|
12
|
+
return { ok: false, error };
|
|
13
|
+
}
|
|
14
|
+
exports.ERR = ERR;
|
|
15
|
+
/**
|
|
16
|
+
* unwrap is a convenience function for extracting a value from a result or
|
|
17
|
+
* throwing if there was an error.
|
|
18
|
+
*/
|
|
19
|
+
function unwrap(r) {
|
|
20
|
+
if (!r.ok) {
|
|
21
|
+
throw r.error;
|
|
22
|
+
}
|
|
23
|
+
return r.value;
|
|
24
|
+
}
|
|
25
|
+
exports.unwrap = unwrap;
|
|
26
|
+
/**
|
|
27
|
+
* unwrapAsync is a convenience function for resolving a value from a Promise
|
|
28
|
+
* of a result or rejecting if an error occurred.
|
|
29
|
+
*/
|
|
30
|
+
async function unwrapAsync(pr) {
|
|
31
|
+
const r = await pr;
|
|
32
|
+
if (!r.ok) {
|
|
33
|
+
throw r.error;
|
|
34
|
+
}
|
|
35
|
+
return r.value;
|
|
36
|
+
}
|
|
37
|
+
exports.unwrapAsync = unwrapAsync;
|
|
38
|
+
//# sourceMappingURL=fp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fp.js","sourceRoot":"","sources":["../../src/sdk/types/fp.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAeH,SAAgB,EAAE,CAAI,KAAQ;IAC5B,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAC7B,CAAC;AAFD,gBAEC;AAED,SAAgB,GAAG,CAAI,KAAQ;IAC7B,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC9B,CAAC;AAFD,kBAEC;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;AALD,wBAKC;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;AATD,kCASC"}
|
package/sdk/types/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export type { Paginator, PageIterator } from "./operations.js";
|
|
|
4
4
|
export { createPageIterator } from "./operations.js";
|
|
5
5
|
export { catchUnrecognizedEnum } from "./enums.js";
|
|
6
6
|
export type { OpenEnum, ClosedEnum, Unrecognized } from "./enums.js";
|
|
7
|
+
export type { Result } from "./fp.js";
|
|
7
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,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACrE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
export type
|
|
3
|
-
next: Paginator<
|
|
4
|
-
|
|
1
|
+
import { Result } from "./fp.js";
|
|
2
|
+
export type Paginator<V> = () => Promise<V & {
|
|
3
|
+
next: Paginator<V>;
|
|
4
|
+
}> | null;
|
|
5
|
+
export type PageIterator<V> = V & {
|
|
6
|
+
next: Paginator<V>;
|
|
7
|
+
[Symbol.asyncIterator]: () => AsyncIterableIterator<V>;
|
|
5
8
|
};
|
|
6
|
-
export declare function createPageIterator<
|
|
7
|
-
next: Paginator<
|
|
8
|
-
}): {
|
|
9
|
-
[Symbol.asyncIterator]: () => AsyncIterableIterator<
|
|
9
|
+
export declare function createPageIterator<V>(page: V & {
|
|
10
|
+
next: Paginator<V>;
|
|
11
|
+
}, halt: (v: V) => boolean): {
|
|
12
|
+
[Symbol.asyncIterator]: () => AsyncIterableIterator<V>;
|
|
10
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* This utility create a special iterator that yields a single value and
|
|
16
|
+
* terminates. It is useful in paginated SDK functions that have early return
|
|
17
|
+
* paths when things go wrong.
|
|
18
|
+
*/
|
|
19
|
+
export declare function haltIterator<V extends object>(v: V): PageIterator<V>;
|
|
20
|
+
/**
|
|
21
|
+
* Converts an async iterator of `Result<V, E>` into an async iterator of `V`.
|
|
22
|
+
* When error results occur, the underlying error value is thrown.
|
|
23
|
+
*/
|
|
24
|
+
export declare function unwrapResultIterator<V>(iteratorPromise: Promise<PageIterator<Result<V, unknown>>>): Promise<PageIterator<V>>;
|
|
11
25
|
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/sdk/types/operations.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,SAAS,CAAC,MAAM,IAAI,MAAM,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/sdk/types/operations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,MAAM,OAAO,CAAC,CAAC,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC,GAAG,IAAI,CAAC;AAE5E,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAChC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAAC;CACxD,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,IAAI,EAAE,CAAC,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;CAAE,EAChC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,OAAO,GACtB;IACD,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAAC;CACxD,CAiBA;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAQpE;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,CAAC,EAC1C,eAAe,EAAE,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,GACzD,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAmB1B"}
|