@leonardo-ai/sdk 4.21.2 → 4.21.3
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 +0 -7
- package/funcs/blueprintsExecuteBlueprint.d.ts.map +1 -1
- package/funcs/blueprintsExecuteBlueprint.js +2 -1
- package/funcs/blueprintsExecuteBlueprint.js.map +1 -1
- package/funcs/blueprintsGetBlueprintById.d.ts.map +1 -1
- package/funcs/blueprintsGetBlueprintById.js +2 -1
- package/funcs/blueprintsGetBlueprintById.js.map +1 -1
- package/funcs/blueprintsGetBlueprintExecution.d.ts.map +1 -1
- package/funcs/blueprintsGetBlueprintExecution.js +2 -1
- package/funcs/blueprintsGetBlueprintExecution.js.map +1 -1
- package/funcs/blueprintsGetBlueprintExecutionGenerations.d.ts.map +1 -1
- package/funcs/blueprintsGetBlueprintExecutionGenerations.js +2 -1
- package/funcs/blueprintsGetBlueprintExecutionGenerations.js.map +1 -1
- package/funcs/blueprintsGetBlueprintVersionsByBlueprintId.d.ts.map +1 -1
- package/funcs/blueprintsGetBlueprintVersionsByBlueprintId.js +2 -1
- package/funcs/blueprintsGetBlueprintVersionsByBlueprintId.js.map +1 -1
- package/funcs/datasetCreateDataset.d.ts.map +1 -1
- package/funcs/datasetCreateDataset.js +2 -1
- package/funcs/datasetCreateDataset.js.map +1 -1
- package/funcs/datasetDeleteDatasetById.d.ts.map +1 -1
- package/funcs/datasetDeleteDatasetById.js +2 -1
- package/funcs/datasetDeleteDatasetById.js.map +1 -1
- package/funcs/datasetGetDatasetById.d.ts.map +1 -1
- package/funcs/datasetGetDatasetById.js +2 -1
- package/funcs/datasetGetDatasetById.js.map +1 -1
- package/funcs/datasetUploadDatasetImage.d.ts.map +1 -1
- package/funcs/datasetUploadDatasetImage.js +2 -1
- package/funcs/datasetUploadDatasetImage.js.map +1 -1
- package/funcs/datasetUploadDatasetImageFromGen.d.ts.map +1 -1
- package/funcs/datasetUploadDatasetImageFromGen.js +2 -1
- package/funcs/datasetUploadDatasetImageFromGen.js.map +1 -1
- package/funcs/elementsCreateElement.d.ts.map +1 -1
- package/funcs/elementsCreateElement.js +2 -1
- package/funcs/elementsCreateElement.js.map +1 -1
- package/funcs/elementsDeleteElementById.d.ts.map +1 -1
- package/funcs/elementsDeleteElementById.js +2 -1
- package/funcs/elementsDeleteElementById.js.map +1 -1
- package/funcs/elementsGetCustomElementsByUserId.d.ts.map +1 -1
- package/funcs/elementsGetCustomElementsByUserId.js +2 -1
- package/funcs/elementsGetCustomElementsByUserId.js.map +1 -1
- package/funcs/elementsGetElementById.d.ts.map +1 -1
- package/funcs/elementsGetElementById.js +2 -1
- package/funcs/elementsGetElementById.js.map +1 -1
- package/funcs/elementsListElements.d.ts.map +1 -1
- package/funcs/elementsListElements.js +2 -1
- package/funcs/elementsListElements.js.map +1 -1
- package/funcs/imageCreateGeneration.d.ts.map +1 -1
- package/funcs/imageCreateGeneration.js +2 -1
- package/funcs/imageCreateGeneration.js.map +1 -1
- package/funcs/imageDeleteGenerationById.d.ts.map +1 -1
- package/funcs/imageDeleteGenerationById.js +2 -1
- package/funcs/imageDeleteGenerationById.js.map +1 -1
- package/funcs/imageGetGenerationById.d.ts.map +1 -1
- package/funcs/imageGetGenerationById.js +2 -1
- package/funcs/imageGetGenerationById.js.map +1 -1
- package/funcs/imageGetGenerationsByUserId.d.ts.map +1 -1
- package/funcs/imageGetGenerationsByUserId.js +2 -1
- package/funcs/imageGetGenerationsByUserId.js.map +1 -1
- package/funcs/initImagesDeleteInitImageById.d.ts.map +1 -1
- package/funcs/initImagesDeleteInitImageById.js +2 -1
- package/funcs/initImagesDeleteInitImageById.js.map +1 -1
- package/funcs/initImagesGetInitImageById.d.ts.map +1 -1
- package/funcs/initImagesGetInitImageById.js +2 -1
- package/funcs/initImagesGetInitImageById.js.map +1 -1
- package/funcs/initImagesUploadCanvasInitImage.d.ts.map +1 -1
- package/funcs/initImagesUploadCanvasInitImage.js +2 -1
- package/funcs/initImagesUploadCanvasInitImage.js.map +1 -1
- package/funcs/initImagesUploadInitImage.d.ts.map +1 -1
- package/funcs/initImagesUploadInitImage.js +2 -1
- package/funcs/initImagesUploadInitImage.js.map +1 -1
- package/funcs/mediaDeleteUploadedMediaById.d.ts.map +1 -1
- package/funcs/mediaDeleteUploadedMediaById.js +2 -1
- package/funcs/mediaDeleteUploadedMediaById.js.map +1 -1
- package/funcs/mediaGetUploadedMediaById.d.ts.map +1 -1
- package/funcs/mediaGetUploadedMediaById.js +2 -1
- package/funcs/mediaGetUploadedMediaById.js.map +1 -1
- package/funcs/mediaUploadMedia.d.ts.map +1 -1
- package/funcs/mediaUploadMedia.js +2 -1
- package/funcs/mediaUploadMedia.js.map +1 -1
- package/funcs/modelsCreateModel.d.ts.map +1 -1
- package/funcs/modelsCreateModel.js +2 -1
- package/funcs/modelsCreateModel.js.map +1 -1
- package/funcs/modelsDeleteModelById.d.ts.map +1 -1
- package/funcs/modelsDeleteModelById.js +2 -1
- package/funcs/modelsDeleteModelById.js.map +1 -1
- package/funcs/modelsGetCustomModelsByUserId.d.ts.map +1 -1
- package/funcs/modelsGetCustomModelsByUserId.js +2 -1
- package/funcs/modelsGetCustomModelsByUserId.js.map +1 -1
- package/funcs/modelsGetModelById.d.ts.map +1 -1
- package/funcs/modelsGetModelById.js +2 -1
- package/funcs/modelsGetModelById.js.map +1 -1
- package/funcs/modelsListPlatformModels.d.ts.map +1 -1
- package/funcs/modelsListPlatformModels.js +2 -1
- package/funcs/modelsListPlatformModels.js.map +1 -1
- package/funcs/motionCreateImageToVideoGeneration.d.ts.map +1 -1
- package/funcs/motionCreateImageToVideoGeneration.js +2 -1
- package/funcs/motionCreateImageToVideoGeneration.js.map +1 -1
- package/funcs/motionCreateSVDMotionGeneration.d.ts.map +1 -1
- package/funcs/motionCreateSVDMotionGeneration.js +2 -1
- package/funcs/motionCreateSVDMotionGeneration.js.map +1 -1
- package/funcs/motionCreateTextToVideoGeneration.d.ts.map +1 -1
- package/funcs/motionCreateTextToVideoGeneration.js +2 -1
- package/funcs/motionCreateTextToVideoGeneration.js.map +1 -1
- package/funcs/motionCreateVideoUpscale.d.ts.map +1 -1
- package/funcs/motionCreateVideoUpscale.js +2 -1
- package/funcs/motionCreateVideoUpscale.js.map +1 -1
- package/funcs/pricingCalculatorPricingCalculator.d.ts.map +1 -1
- package/funcs/pricingCalculatorPricingCalculator.js +2 -1
- package/funcs/pricingCalculatorPricingCalculator.js.map +1 -1
- package/funcs/promptPromptImprove.d.ts.map +1 -1
- package/funcs/promptPromptImprove.js +2 -1
- package/funcs/promptPromptImprove.js.map +1 -1
- package/funcs/promptPromptRandom.d.ts.map +1 -1
- package/funcs/promptPromptRandom.js +2 -1
- package/funcs/promptPromptRandom.js.map +1 -1
- package/funcs/realtimeCanvasCreateLCMGeneration.d.ts.map +1 -1
- package/funcs/realtimeCanvasCreateLCMGeneration.js +2 -1
- package/funcs/realtimeCanvasCreateLCMGeneration.js.map +1 -1
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.d.ts.map +1 -1
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.js +2 -1
- package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.js.map +1 -1
- package/funcs/realtimeCanvasPerformInpaintingLCM.d.ts.map +1 -1
- package/funcs/realtimeCanvasPerformInpaintingLCM.js +2 -1
- package/funcs/realtimeCanvasPerformInpaintingLCM.js.map +1 -1
- package/funcs/realtimeCanvasPerformInstantRefine.d.ts.map +1 -1
- package/funcs/realtimeCanvasPerformInstantRefine.js +2 -1
- package/funcs/realtimeCanvasPerformInstantRefine.js.map +1 -1
- package/funcs/threeDModelAssetsDelete3DModelById.d.ts.map +1 -1
- package/funcs/threeDModelAssetsDelete3DModelById.js +2 -1
- package/funcs/threeDModelAssetsDelete3DModelById.js.map +1 -1
- package/funcs/threeDModelAssetsUploadModelAsset.d.ts.map +1 -1
- package/funcs/threeDModelAssetsUploadModelAsset.js +2 -1
- package/funcs/threeDModelAssetsUploadModelAsset.js.map +1 -1
- package/funcs/userGetUserSelf.d.ts.map +1 -1
- package/funcs/userGetUserSelf.js +2 -1
- package/funcs/userGetUserSelf.js.map +1 -1
- package/funcs/variationCreateUniversalUpscalerJob.d.ts.map +1 -1
- package/funcs/variationCreateUniversalUpscalerJob.js +2 -1
- package/funcs/variationCreateUniversalUpscalerJob.js.map +1 -1
- package/funcs/variationCreateVariationNoBG.d.ts.map +1 -1
- package/funcs/variationCreateVariationNoBG.js +2 -1
- package/funcs/variationCreateVariationNoBG.js.map +1 -1
- package/funcs/variationCreateVariationUnzoom.d.ts.map +1 -1
- package/funcs/variationCreateVariationUnzoom.js +2 -1
- package/funcs/variationCreateVariationUnzoom.js.map +1 -1
- package/funcs/variationCreateVariationUpscale.d.ts.map +1 -1
- package/funcs/variationCreateVariationUpscale.js +2 -1
- package/funcs/variationCreateVariationUpscale.js.map +1 -1
- package/funcs/variationGetMotionVariationById.d.ts.map +1 -1
- package/funcs/variationGetMotionVariationById.js +2 -1
- package/funcs/variationGetMotionVariationById.js.map +1 -1
- package/funcs/variationGetVariationById.d.ts.map +1 -1
- package/funcs/variationGetVariationById.js +2 -1
- package/funcs/variationGetVariationById.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/sdks.d.ts +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -4
- package/lib/sdks.js.map +1 -1
- package/package.json +1 -1
- package/sdk/models/operations/index.d.ts +0 -2
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +0 -2
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/blueprintsExecuteBlueprint.ts +3 -1
- package/src/funcs/blueprintsGetBlueprintById.ts +3 -1
- package/src/funcs/blueprintsGetBlueprintExecution.ts +3 -1
- package/src/funcs/blueprintsGetBlueprintExecutionGenerations.ts +3 -1
- package/src/funcs/blueprintsGetBlueprintVersionsByBlueprintId.ts +3 -1
- package/src/funcs/datasetCreateDataset.ts +3 -1
- package/src/funcs/datasetDeleteDatasetById.ts +3 -1
- package/src/funcs/datasetGetDatasetById.ts +3 -1
- package/src/funcs/datasetUploadDatasetImage.ts +3 -1
- package/src/funcs/datasetUploadDatasetImageFromGen.ts +3 -1
- package/src/funcs/elementsCreateElement.ts +3 -1
- package/src/funcs/elementsDeleteElementById.ts +3 -1
- package/src/funcs/elementsGetCustomElementsByUserId.ts +3 -1
- package/src/funcs/elementsGetElementById.ts +3 -1
- package/src/funcs/elementsListElements.ts +3 -1
- package/src/funcs/imageCreateGeneration.ts +3 -1
- package/src/funcs/imageDeleteGenerationById.ts +3 -1
- package/src/funcs/imageGetGenerationById.ts +3 -1
- package/src/funcs/imageGetGenerationsByUserId.ts +3 -1
- package/src/funcs/initImagesDeleteInitImageById.ts +3 -1
- package/src/funcs/initImagesGetInitImageById.ts +3 -1
- package/src/funcs/initImagesUploadCanvasInitImage.ts +3 -1
- package/src/funcs/initImagesUploadInitImage.ts +3 -1
- package/src/funcs/mediaDeleteUploadedMediaById.ts +3 -1
- package/src/funcs/mediaGetUploadedMediaById.ts +3 -1
- package/src/funcs/mediaUploadMedia.ts +3 -1
- package/src/funcs/modelsCreateModel.ts +3 -1
- package/src/funcs/modelsDeleteModelById.ts +3 -1
- package/src/funcs/modelsGetCustomModelsByUserId.ts +3 -1
- package/src/funcs/modelsGetModelById.ts +3 -1
- package/src/funcs/modelsListPlatformModels.ts +3 -1
- package/src/funcs/motionCreateImageToVideoGeneration.ts +3 -1
- package/src/funcs/motionCreateSVDMotionGeneration.ts +3 -1
- package/src/funcs/motionCreateTextToVideoGeneration.ts +3 -1
- package/src/funcs/motionCreateVideoUpscale.ts +3 -1
- package/src/funcs/pricingCalculatorPricingCalculator.ts +3 -1
- package/src/funcs/promptPromptImprove.ts +3 -1
- package/src/funcs/promptPromptRandom.ts +3 -1
- package/src/funcs/realtimeCanvasCreateLCMGeneration.ts +3 -1
- package/src/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.ts +3 -1
- package/src/funcs/realtimeCanvasPerformInpaintingLCM.ts +3 -1
- package/src/funcs/realtimeCanvasPerformInstantRefine.ts +3 -1
- package/src/funcs/threeDModelAssetsDelete3DModelById.ts +3 -1
- package/src/funcs/threeDModelAssetsUploadModelAsset.ts +3 -1
- package/src/funcs/userGetUserSelf.ts +3 -1
- package/src/funcs/variationCreateUniversalUpscalerJob.ts +3 -1
- package/src/funcs/variationCreateVariationNoBG.ts +3 -1
- package/src/funcs/variationCreateVariationUnzoom.ts +3 -1
- package/src/funcs/variationCreateVariationUpscale.ts +3 -1
- package/src/funcs/variationGetMotionVariationById.ts +3 -1
- package/src/funcs/variationGetVariationById.ts +3 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +3 -6
- package/src/sdk/models/operations/index.ts +0 -2
- package/src/sdk/sdk.ts +0 -6
- package/funcs/textureCreateTextureGeneration.d.ts +0 -17
- package/funcs/textureCreateTextureGeneration.d.ts.map +0 -1
- package/funcs/textureCreateTextureGeneration.js +0 -126
- package/funcs/textureCreateTextureGeneration.js.map +0 -1
- package/funcs/textureDeleteTextureGenerationById.d.ts +0 -17
- package/funcs/textureDeleteTextureGenerationById.d.ts.map +0 -1
- package/funcs/textureDeleteTextureGenerationById.js +0 -133
- package/funcs/textureDeleteTextureGenerationById.js.map +0 -1
- package/sdk/models/operations/createtexturegeneration.d.ts +0 -81
- package/sdk/models/operations/createtexturegeneration.d.ts.map +0 -1
- package/sdk/models/operations/createtexturegeneration.js +0 -102
- package/sdk/models/operations/createtexturegeneration.js.map +0 -1
- package/sdk/models/operations/deletetexturegenerationbyid.d.ts +0 -77
- package/sdk/models/operations/deletetexturegenerationbyid.d.ts.map +0 -1
- package/sdk/models/operations/deletetexturegenerationbyid.js +0 -102
- package/sdk/models/operations/deletetexturegenerationbyid.js.map +0 -1
- package/sdk/texture.d.ts +0 -19
- package/sdk/texture.d.ts.map +0 -1
- package/sdk/texture.js +0 -32
- package/sdk/texture.js.map +0 -1
- package/src/funcs/textureCreateTextureGeneration.ts +0 -172
- package/src/funcs/textureDeleteTextureGenerationById.ts +0 -183
- package/src/sdk/models/operations/createtexturegeneration.ts +0 -184
- package/src/sdk/models/operations/deletetexturegenerationbyid.ts +0 -204
- package/src/sdk/texture.ts +0 -47
|
@@ -1,102 +0,0 @@
|
|
|
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 () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.DeleteTextureGenerationByIdResponse$inboundSchema = exports.DeleteTextureGenerationByIdResponseBody$inboundSchema = exports.ModelAssetTextureGenerations$inboundSchema = exports.DeleteTextureGenerationByIdRequest$outboundSchema = exports.DeleteTextureGenerationByIdRequestBody$outboundSchema = void 0;
|
|
40
|
-
exports.deleteTextureGenerationByIdRequestBodyToJSON = deleteTextureGenerationByIdRequestBodyToJSON;
|
|
41
|
-
exports.deleteTextureGenerationByIdRequestToJSON = deleteTextureGenerationByIdRequestToJSON;
|
|
42
|
-
exports.modelAssetTextureGenerationsFromJSON = modelAssetTextureGenerationsFromJSON;
|
|
43
|
-
exports.deleteTextureGenerationByIdResponseBodyFromJSON = deleteTextureGenerationByIdResponseBodyFromJSON;
|
|
44
|
-
exports.deleteTextureGenerationByIdResponseFromJSON = deleteTextureGenerationByIdResponseFromJSON;
|
|
45
|
-
const z = __importStar(require("zod/v3"));
|
|
46
|
-
const primitives_js_1 = require("../../../lib/primitives.js");
|
|
47
|
-
const schemas_js_1 = require("../../../lib/schemas.js");
|
|
48
|
-
/** @internal */
|
|
49
|
-
exports.DeleteTextureGenerationByIdRequestBody$outboundSchema = z.object({
|
|
50
|
-
id: z.nullable(z.string()).optional(),
|
|
51
|
-
});
|
|
52
|
-
function deleteTextureGenerationByIdRequestBodyToJSON(deleteTextureGenerationByIdRequestBody) {
|
|
53
|
-
return JSON.stringify(exports.DeleteTextureGenerationByIdRequestBody$outboundSchema.parse(deleteTextureGenerationByIdRequestBody));
|
|
54
|
-
}
|
|
55
|
-
/** @internal */
|
|
56
|
-
exports.DeleteTextureGenerationByIdRequest$outboundSchema = z.object({
|
|
57
|
-
requestBody: z.lazy(() => exports.DeleteTextureGenerationByIdRequestBody$outboundSchema).optional(),
|
|
58
|
-
id: z.string(),
|
|
59
|
-
}).transform((v) => {
|
|
60
|
-
return (0, primitives_js_1.remap)(v, {
|
|
61
|
-
requestBody: "RequestBody",
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
function deleteTextureGenerationByIdRequestToJSON(deleteTextureGenerationByIdRequest) {
|
|
65
|
-
return JSON.stringify(exports.DeleteTextureGenerationByIdRequest$outboundSchema.parse(deleteTextureGenerationByIdRequest));
|
|
66
|
-
}
|
|
67
|
-
/** @internal */
|
|
68
|
-
exports.ModelAssetTextureGenerations$inboundSchema = z.object({
|
|
69
|
-
id: z.nullable(z.string()).optional(),
|
|
70
|
-
});
|
|
71
|
-
function modelAssetTextureGenerationsFromJSON(jsonString) {
|
|
72
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelAssetTextureGenerations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelAssetTextureGenerations' from JSON`);
|
|
73
|
-
}
|
|
74
|
-
/** @internal */
|
|
75
|
-
exports.DeleteTextureGenerationByIdResponseBody$inboundSchema = z.object({
|
|
76
|
-
delete_model_asset_texture_generations_by_pk: z.nullable(z.lazy(() => exports.ModelAssetTextureGenerations$inboundSchema)).optional(),
|
|
77
|
-
}).transform((v) => {
|
|
78
|
-
return (0, primitives_js_1.remap)(v, {
|
|
79
|
-
"delete_model_asset_texture_generations_by_pk": "deleteModelAssetTextureGenerationsByPk",
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
function deleteTextureGenerationByIdResponseBodyFromJSON(jsonString) {
|
|
83
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteTextureGenerationByIdResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteTextureGenerationByIdResponseBody' from JSON`);
|
|
84
|
-
}
|
|
85
|
-
/** @internal */
|
|
86
|
-
exports.DeleteTextureGenerationByIdResponse$inboundSchema = z.object({
|
|
87
|
-
ContentType: z.string(),
|
|
88
|
-
StatusCode: z.number().int(),
|
|
89
|
-
RawResponse: z.instanceof(Response),
|
|
90
|
-
object: z.lazy(() => exports.DeleteTextureGenerationByIdResponseBody$inboundSchema)
|
|
91
|
-
.optional(),
|
|
92
|
-
}).transform((v) => {
|
|
93
|
-
return (0, primitives_js_1.remap)(v, {
|
|
94
|
-
"ContentType": "contentType",
|
|
95
|
-
"StatusCode": "statusCode",
|
|
96
|
-
"RawResponse": "rawResponse",
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
function deleteTextureGenerationByIdResponseFromJSON(jsonString) {
|
|
100
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteTextureGenerationByIdResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteTextureGenerationByIdResponse' from JSON`);
|
|
101
|
-
}
|
|
102
|
-
//# sourceMappingURL=deletetexturegenerationbyid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deletetexturegenerationbyid.js","sourceRoot":"","sources":["../../../src/sdk/models/operations/deletetexturegenerationbyid.ts"],"names":[],"mappings":"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"}
|
package/sdk/texture.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "./models/operations/index.js";
|
|
3
|
-
export declare class Texture extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Create Texture Generation
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* This endpoint will generate a texture generation.
|
|
9
|
-
*/
|
|
10
|
-
createTextureGeneration(request?: operations.CreateTextureGenerationRequestBody | undefined, options?: RequestOptions): Promise<operations.CreateTextureGenerationResponse>;
|
|
11
|
-
/**
|
|
12
|
-
* Delete Texture Generation by ID
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* This endpoint deletes the specific texture generation.
|
|
16
|
-
*/
|
|
17
|
-
deleteTextureGenerationById(id: string, requestBody?: operations.DeleteTextureGenerationByIdRequestBody | undefined, options?: RequestOptions): Promise<operations.DeleteTextureGenerationByIdResponse>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=texture.d.ts.map
|
package/sdk/texture.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"texture.d.ts","sourceRoot":"","sources":["../src/sdk/texture.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAC;AAG3D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,uBAAuB,CAC3B,OAAO,CAAC,EAAE,UAAU,CAAC,kCAAkC,GAAG,SAAS,EACnE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;IAQtD;;;;;OAKG;IACG,2BAA2B,CAC/B,EAAE,EAAE,MAAM,EACV,WAAW,CAAC,EAAE,UAAU,CAAC,sCAAsC,GAAG,SAAS,EAC3E,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mCAAmC,CAAC;CAQ3D"}
|
package/sdk/texture.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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.Texture = void 0;
|
|
7
|
-
const textureCreateTextureGeneration_js_1 = require("../funcs/textureCreateTextureGeneration.js");
|
|
8
|
-
const textureDeleteTextureGenerationById_js_1 = require("../funcs/textureDeleteTextureGenerationById.js");
|
|
9
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
10
|
-
const fp_js_1 = require("./types/fp.js");
|
|
11
|
-
class Texture extends sdks_js_1.ClientSDK {
|
|
12
|
-
/**
|
|
13
|
-
* Create Texture Generation
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* This endpoint will generate a texture generation.
|
|
17
|
-
*/
|
|
18
|
-
async createTextureGeneration(request, options) {
|
|
19
|
-
return (0, fp_js_1.unwrapAsync)((0, textureCreateTextureGeneration_js_1.textureCreateTextureGeneration)(this, request, options));
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Delete Texture Generation by ID
|
|
23
|
-
*
|
|
24
|
-
* @remarks
|
|
25
|
-
* This endpoint deletes the specific texture generation.
|
|
26
|
-
*/
|
|
27
|
-
async deleteTextureGenerationById(id, requestBody, options) {
|
|
28
|
-
return (0, fp_js_1.unwrapAsync)((0, textureDeleteTextureGenerationById_js_1.textureDeleteTextureGenerationById)(this, id, requestBody, options));
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.Texture = Texture;
|
|
32
|
-
//# sourceMappingURL=texture.js.map
|
package/sdk/texture.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;IACpC;;;;;OAKG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAAmE,EACnE,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,2BAA2B,CAC/B,EAAU,EACV,WAA2E,EAC3E,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0EAAkC,EACnD,IAAI,EACJ,EAAE,EACF,WAAW,EACX,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AApCD,0BAoCC"}
|
|
@@ -1,172 +0,0 @@
|
|
|
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
|
-
* Create Texture Generation
|
|
29
|
-
*
|
|
30
|
-
* @remarks
|
|
31
|
-
* This endpoint will generate a texture generation.
|
|
32
|
-
*/
|
|
33
|
-
export function textureCreateTextureGeneration(
|
|
34
|
-
client: LeonardoCore,
|
|
35
|
-
request?: operations.CreateTextureGenerationRequestBody | undefined,
|
|
36
|
-
options?: RequestOptions,
|
|
37
|
-
): APIPromise<
|
|
38
|
-
Result<
|
|
39
|
-
operations.CreateTextureGenerationResponse,
|
|
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.CreateTextureGenerationRequestBody | undefined,
|
|
60
|
-
options?: RequestOptions,
|
|
61
|
-
): Promise<
|
|
62
|
-
[
|
|
63
|
-
Result<
|
|
64
|
-
operations.CreateTextureGenerationResponse,
|
|
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.CreateTextureGenerationRequestBody$outboundSchema.optional()
|
|
81
|
-
.parse(value),
|
|
82
|
-
"Input validation failed",
|
|
83
|
-
);
|
|
84
|
-
if (!parsed.ok) {
|
|
85
|
-
return [parsed, { status: "invalid" }];
|
|
86
|
-
}
|
|
87
|
-
const payload = parsed.value;
|
|
88
|
-
const body = payload === undefined
|
|
89
|
-
? null
|
|
90
|
-
: encodeJSON("body", payload, { explode: true });
|
|
91
|
-
|
|
92
|
-
const path = pathToFunc("/generations-texture")();
|
|
93
|
-
|
|
94
|
-
const headers = new Headers(compactMap({
|
|
95
|
-
"Content-Type": "application/json",
|
|
96
|
-
Accept: "application/json",
|
|
97
|
-
}));
|
|
98
|
-
|
|
99
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
100
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
101
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
102
|
-
|
|
103
|
-
const context = {
|
|
104
|
-
options: client._options,
|
|
105
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
106
|
-
operationID: "createTextureGeneration",
|
|
107
|
-
oAuth2Scopes: null,
|
|
108
|
-
|
|
109
|
-
resolvedSecurity: requestSecurity,
|
|
110
|
-
|
|
111
|
-
securitySource: client._options.bearerAuth,
|
|
112
|
-
retryConfig: options?.retries
|
|
113
|
-
|| client._options.retryConfig
|
|
114
|
-
|| { strategy: "none" },
|
|
115
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
const requestRes = client._createRequest(context, {
|
|
119
|
-
security: requestSecurity,
|
|
120
|
-
method: "POST",
|
|
121
|
-
baseURL: options?.serverURL,
|
|
122
|
-
path: path,
|
|
123
|
-
headers: headers,
|
|
124
|
-
body: body,
|
|
125
|
-
userAgent: client._options.userAgent,
|
|
126
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
127
|
-
}, options);
|
|
128
|
-
if (!requestRes.ok) {
|
|
129
|
-
return [requestRes, { status: "invalid" }];
|
|
130
|
-
}
|
|
131
|
-
const req = requestRes.value;
|
|
132
|
-
|
|
133
|
-
const doResult = await client._do(req, {
|
|
134
|
-
context,
|
|
135
|
-
errorCodes: [],
|
|
136
|
-
retryConfig: context.retryConfig,
|
|
137
|
-
retryCodes: context.retryCodes,
|
|
138
|
-
});
|
|
139
|
-
if (!doResult.ok) {
|
|
140
|
-
return [doResult, { status: "request-error", request: req }];
|
|
141
|
-
}
|
|
142
|
-
const response = doResult.value;
|
|
143
|
-
|
|
144
|
-
const responseFields = {
|
|
145
|
-
ContentType: response.headers.get("content-type")
|
|
146
|
-
?? "application/octet-stream",
|
|
147
|
-
StatusCode: response.status,
|
|
148
|
-
RawResponse: response,
|
|
149
|
-
Headers: {},
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
const [result] = await M.match<
|
|
153
|
-
operations.CreateTextureGenerationResponse,
|
|
154
|
-
| LeonardoError
|
|
155
|
-
| ResponseValidationError
|
|
156
|
-
| ConnectionError
|
|
157
|
-
| RequestAbortedError
|
|
158
|
-
| RequestTimeoutError
|
|
159
|
-
| InvalidRequestError
|
|
160
|
-
| UnexpectedClientError
|
|
161
|
-
| SDKValidationError
|
|
162
|
-
>(
|
|
163
|
-
M.json(200, operations.CreateTextureGenerationResponse$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
|
-
}
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { LeonardoCore } from "../core.js";
|
|
6
|
-
import { encodeJSON, 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
|
-
* Delete Texture Generation by ID
|
|
29
|
-
*
|
|
30
|
-
* @remarks
|
|
31
|
-
* This endpoint deletes the specific texture generation.
|
|
32
|
-
*/
|
|
33
|
-
export function textureDeleteTextureGenerationById(
|
|
34
|
-
client: LeonardoCore,
|
|
35
|
-
id: string,
|
|
36
|
-
requestBody?: operations.DeleteTextureGenerationByIdRequestBody | undefined,
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): APIPromise<
|
|
39
|
-
Result<
|
|
40
|
-
operations.DeleteTextureGenerationByIdResponse,
|
|
41
|
-
| LeonardoError
|
|
42
|
-
| ResponseValidationError
|
|
43
|
-
| ConnectionError
|
|
44
|
-
| RequestAbortedError
|
|
45
|
-
| RequestTimeoutError
|
|
46
|
-
| InvalidRequestError
|
|
47
|
-
| UnexpectedClientError
|
|
48
|
-
| SDKValidationError
|
|
49
|
-
>
|
|
50
|
-
> {
|
|
51
|
-
return new APIPromise($do(
|
|
52
|
-
client,
|
|
53
|
-
id,
|
|
54
|
-
requestBody,
|
|
55
|
-
options,
|
|
56
|
-
));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
async function $do(
|
|
60
|
-
client: LeonardoCore,
|
|
61
|
-
id: string,
|
|
62
|
-
requestBody?: operations.DeleteTextureGenerationByIdRequestBody | undefined,
|
|
63
|
-
options?: RequestOptions,
|
|
64
|
-
): Promise<
|
|
65
|
-
[
|
|
66
|
-
Result<
|
|
67
|
-
operations.DeleteTextureGenerationByIdResponse,
|
|
68
|
-
| LeonardoError
|
|
69
|
-
| ResponseValidationError
|
|
70
|
-
| ConnectionError
|
|
71
|
-
| RequestAbortedError
|
|
72
|
-
| RequestTimeoutError
|
|
73
|
-
| InvalidRequestError
|
|
74
|
-
| UnexpectedClientError
|
|
75
|
-
| SDKValidationError
|
|
76
|
-
>,
|
|
77
|
-
APICall,
|
|
78
|
-
]
|
|
79
|
-
> {
|
|
80
|
-
const input: operations.DeleteTextureGenerationByIdRequest = {
|
|
81
|
-
id: id,
|
|
82
|
-
requestBody: requestBody,
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
const parsed = safeParse(
|
|
86
|
-
input,
|
|
87
|
-
(value) =>
|
|
88
|
-
operations.DeleteTextureGenerationByIdRequest$outboundSchema.parse(value),
|
|
89
|
-
"Input validation failed",
|
|
90
|
-
);
|
|
91
|
-
if (!parsed.ok) {
|
|
92
|
-
return [parsed, { status: "invalid" }];
|
|
93
|
-
}
|
|
94
|
-
const payload = parsed.value;
|
|
95
|
-
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
96
|
-
|
|
97
|
-
const pathParams = {
|
|
98
|
-
id: encodeSimple("id", payload.id, {
|
|
99
|
-
explode: false,
|
|
100
|
-
charEncoding: "percent",
|
|
101
|
-
}),
|
|
102
|
-
};
|
|
103
|
-
const path = pathToFunc("/generations-texture/{id}")(pathParams);
|
|
104
|
-
|
|
105
|
-
const headers = new Headers(compactMap({
|
|
106
|
-
"Content-Type": "application/json",
|
|
107
|
-
Accept: "application/json",
|
|
108
|
-
}));
|
|
109
|
-
|
|
110
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
111
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
112
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
113
|
-
|
|
114
|
-
const context = {
|
|
115
|
-
options: client._options,
|
|
116
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
117
|
-
operationID: "deleteTextureGenerationById",
|
|
118
|
-
oAuth2Scopes: null,
|
|
119
|
-
|
|
120
|
-
resolvedSecurity: requestSecurity,
|
|
121
|
-
|
|
122
|
-
securitySource: client._options.bearerAuth,
|
|
123
|
-
retryConfig: options?.retries
|
|
124
|
-
|| client._options.retryConfig
|
|
125
|
-
|| { strategy: "none" },
|
|
126
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
const requestRes = client._createRequest(context, {
|
|
130
|
-
security: requestSecurity,
|
|
131
|
-
method: "DELETE",
|
|
132
|
-
baseURL: options?.serverURL,
|
|
133
|
-
path: path,
|
|
134
|
-
headers: headers,
|
|
135
|
-
body: body,
|
|
136
|
-
userAgent: client._options.userAgent,
|
|
137
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
138
|
-
}, options);
|
|
139
|
-
if (!requestRes.ok) {
|
|
140
|
-
return [requestRes, { status: "invalid" }];
|
|
141
|
-
}
|
|
142
|
-
const req = requestRes.value;
|
|
143
|
-
|
|
144
|
-
const doResult = await client._do(req, {
|
|
145
|
-
context,
|
|
146
|
-
errorCodes: [],
|
|
147
|
-
retryConfig: context.retryConfig,
|
|
148
|
-
retryCodes: context.retryCodes,
|
|
149
|
-
});
|
|
150
|
-
if (!doResult.ok) {
|
|
151
|
-
return [doResult, { status: "request-error", request: req }];
|
|
152
|
-
}
|
|
153
|
-
const response = doResult.value;
|
|
154
|
-
|
|
155
|
-
const responseFields = {
|
|
156
|
-
ContentType: response.headers.get("content-type")
|
|
157
|
-
?? "application/octet-stream",
|
|
158
|
-
StatusCode: response.status,
|
|
159
|
-
RawResponse: response,
|
|
160
|
-
Headers: {},
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
const [result] = await M.match<
|
|
164
|
-
operations.DeleteTextureGenerationByIdResponse,
|
|
165
|
-
| LeonardoError
|
|
166
|
-
| ResponseValidationError
|
|
167
|
-
| ConnectionError
|
|
168
|
-
| RequestAbortedError
|
|
169
|
-
| RequestTimeoutError
|
|
170
|
-
| InvalidRequestError
|
|
171
|
-
| UnexpectedClientError
|
|
172
|
-
| SDKValidationError
|
|
173
|
-
>(
|
|
174
|
-
M.json(200, operations.DeleteTextureGenerationByIdResponse$inboundSchema, {
|
|
175
|
-
key: "object",
|
|
176
|
-
}),
|
|
177
|
-
)(response, req, { extraFields: responseFields });
|
|
178
|
-
if (!result.ok) {
|
|
179
|
-
return [result, { status: "complete", request: req, response }];
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
return [result, { status: "complete", request: req, response }];
|
|
183
|
-
}
|