@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,184 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import * as shared from "../shared/index.js";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Query parameters can also be provided in the request body as a JSON object
|
|
14
|
-
*/
|
|
15
|
-
export type CreateTextureGenerationRequestBody = {
|
|
16
|
-
frontRotationOffset?: number | null | undefined;
|
|
17
|
-
modelAssetId?: string | undefined;
|
|
18
|
-
negativePrompt?: string | null | undefined;
|
|
19
|
-
preview?: boolean | null | undefined;
|
|
20
|
-
previewDirection?: string | null | undefined;
|
|
21
|
-
prompt?: string | undefined;
|
|
22
|
-
sdVersion?: string | null | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Apply a fixed seed to maintain consistency across generation sets. The maximum seed value is 2147483637 for Flux and 9999999998 for other models
|
|
25
|
-
*/
|
|
26
|
-
seed?: number | null | undefined;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export type TextureGenerationJobOutput = {
|
|
30
|
-
/**
|
|
31
|
-
* API Credits Cost for Texture Generation. Available for Production API Users. Note: it will be deprecated. Please use the cost instead.
|
|
32
|
-
*
|
|
33
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
34
|
-
*/
|
|
35
|
-
apiCreditCost?: number | null | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* The cost of the operation.
|
|
38
|
-
*/
|
|
39
|
-
cost?: shared.Cost | null | undefined;
|
|
40
|
-
id?: string | undefined;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Responses for POST /api/rest/v1/generations-texture
|
|
45
|
-
*/
|
|
46
|
-
export type CreateTextureGenerationResponseBody = {
|
|
47
|
-
textureGenerationJob?: TextureGenerationJobOutput | null | undefined;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export type CreateTextureGenerationResponse = {
|
|
51
|
-
/**
|
|
52
|
-
* HTTP response content type for this operation
|
|
53
|
-
*/
|
|
54
|
-
contentType: string;
|
|
55
|
-
/**
|
|
56
|
-
* HTTP response status code for this operation
|
|
57
|
-
*/
|
|
58
|
-
statusCode: number;
|
|
59
|
-
/**
|
|
60
|
-
* Raw HTTP response; suitable for custom response parsing
|
|
61
|
-
*/
|
|
62
|
-
rawResponse: Response;
|
|
63
|
-
/**
|
|
64
|
-
* Responses for POST /api/rest/v1/generations-texture
|
|
65
|
-
*/
|
|
66
|
-
object?: CreateTextureGenerationResponseBody | undefined;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
/** @internal */
|
|
70
|
-
export type CreateTextureGenerationRequestBody$Outbound = {
|
|
71
|
-
front_rotation_offset?: number | null | undefined;
|
|
72
|
-
modelAssetId?: string | undefined;
|
|
73
|
-
negative_prompt?: string | null | undefined;
|
|
74
|
-
preview?: boolean | null | undefined;
|
|
75
|
-
preview_direction?: string | null | undefined;
|
|
76
|
-
prompt?: string | undefined;
|
|
77
|
-
sd_version?: string | null | undefined;
|
|
78
|
-
seed?: number | null | undefined;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
/** @internal */
|
|
82
|
-
export const CreateTextureGenerationRequestBody$outboundSchema: z.ZodType<
|
|
83
|
-
CreateTextureGenerationRequestBody$Outbound,
|
|
84
|
-
z.ZodTypeDef,
|
|
85
|
-
CreateTextureGenerationRequestBody
|
|
86
|
-
> = z.object({
|
|
87
|
-
frontRotationOffset: z.nullable(z.number().int()).optional(),
|
|
88
|
-
modelAssetId: z.string().optional(),
|
|
89
|
-
negativePrompt: z.nullable(z.string()).optional(),
|
|
90
|
-
preview: z.nullable(z.boolean()).optional(),
|
|
91
|
-
previewDirection: z.nullable(z.string()).optional(),
|
|
92
|
-
prompt: z.string().optional(),
|
|
93
|
-
sdVersion: z.nullable(z.string()).optional(),
|
|
94
|
-
seed: z.nullable(z.number().int()).optional(),
|
|
95
|
-
}).transform((v) => {
|
|
96
|
-
return remap$(v, {
|
|
97
|
-
frontRotationOffset: "front_rotation_offset",
|
|
98
|
-
negativePrompt: "negative_prompt",
|
|
99
|
-
previewDirection: "preview_direction",
|
|
100
|
-
sdVersion: "sd_version",
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
export function createTextureGenerationRequestBodyToJSON(
|
|
105
|
-
createTextureGenerationRequestBody: CreateTextureGenerationRequestBody,
|
|
106
|
-
): string {
|
|
107
|
-
return JSON.stringify(
|
|
108
|
-
CreateTextureGenerationRequestBody$outboundSchema.parse(
|
|
109
|
-
createTextureGenerationRequestBody,
|
|
110
|
-
),
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/** @internal */
|
|
115
|
-
export const TextureGenerationJobOutput$inboundSchema: z.ZodType<
|
|
116
|
-
TextureGenerationJobOutput,
|
|
117
|
-
z.ZodTypeDef,
|
|
118
|
-
unknown
|
|
119
|
-
> = z.object({
|
|
120
|
-
apiCreditCost: z.nullable(z.number().int()).optional(),
|
|
121
|
-
cost: z.nullable(shared.Cost$inboundSchema).optional(),
|
|
122
|
-
id: z.string().optional(),
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
export function textureGenerationJobOutputFromJSON(
|
|
126
|
-
jsonString: string,
|
|
127
|
-
): SafeParseResult<TextureGenerationJobOutput, SDKValidationError> {
|
|
128
|
-
return safeParse(
|
|
129
|
-
jsonString,
|
|
130
|
-
(x) => TextureGenerationJobOutput$inboundSchema.parse(JSON.parse(x)),
|
|
131
|
-
`Failed to parse 'TextureGenerationJobOutput' from JSON`,
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/** @internal */
|
|
136
|
-
export const CreateTextureGenerationResponseBody$inboundSchema: z.ZodType<
|
|
137
|
-
CreateTextureGenerationResponseBody,
|
|
138
|
-
z.ZodTypeDef,
|
|
139
|
-
unknown
|
|
140
|
-
> = z.object({
|
|
141
|
-
textureGenerationJob: z.nullable(
|
|
142
|
-
z.lazy(() => TextureGenerationJobOutput$inboundSchema),
|
|
143
|
-
).optional(),
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
export function createTextureGenerationResponseBodyFromJSON(
|
|
147
|
-
jsonString: string,
|
|
148
|
-
): SafeParseResult<CreateTextureGenerationResponseBody, SDKValidationError> {
|
|
149
|
-
return safeParse(
|
|
150
|
-
jsonString,
|
|
151
|
-
(x) =>
|
|
152
|
-
CreateTextureGenerationResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
153
|
-
`Failed to parse 'CreateTextureGenerationResponseBody' from JSON`,
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/** @internal */
|
|
158
|
-
export const CreateTextureGenerationResponse$inboundSchema: z.ZodType<
|
|
159
|
-
CreateTextureGenerationResponse,
|
|
160
|
-
z.ZodTypeDef,
|
|
161
|
-
unknown
|
|
162
|
-
> = z.object({
|
|
163
|
-
ContentType: z.string(),
|
|
164
|
-
StatusCode: z.number().int(),
|
|
165
|
-
RawResponse: z.instanceof(Response),
|
|
166
|
-
object: z.lazy(() => CreateTextureGenerationResponseBody$inboundSchema)
|
|
167
|
-
.optional(),
|
|
168
|
-
}).transform((v) => {
|
|
169
|
-
return remap$(v, {
|
|
170
|
-
"ContentType": "contentType",
|
|
171
|
-
"StatusCode": "statusCode",
|
|
172
|
-
"RawResponse": "rawResponse",
|
|
173
|
-
});
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
export function createTextureGenerationResponseFromJSON(
|
|
177
|
-
jsonString: string,
|
|
178
|
-
): SafeParseResult<CreateTextureGenerationResponse, SDKValidationError> {
|
|
179
|
-
return safeParse(
|
|
180
|
-
jsonString,
|
|
181
|
-
(x) => CreateTextureGenerationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
182
|
-
`Failed to parse 'CreateTextureGenerationResponse' from JSON`,
|
|
183
|
-
);
|
|
184
|
-
}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Query parameters can also be provided in the request body as a JSON object
|
|
13
|
-
*/
|
|
14
|
-
export type DeleteTextureGenerationByIdRequestBody = {
|
|
15
|
-
id?: string | null | undefined;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export type DeleteTextureGenerationByIdRequest = {
|
|
19
|
-
/**
|
|
20
|
-
* Query parameters can also be provided in the request body as a JSON object
|
|
21
|
-
*/
|
|
22
|
-
requestBody?: DeleteTextureGenerationByIdRequestBody | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* _"id" is required (enter it either in parameters or request body)_
|
|
25
|
-
*/
|
|
26
|
-
id: string;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* columns and relationships of "model_asset_texture_generations"
|
|
31
|
-
*/
|
|
32
|
-
export type ModelAssetTextureGenerations = {
|
|
33
|
-
id?: string | null | undefined;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Responses for DELETE /api/rest/v1/generations-texture/{id}
|
|
38
|
-
*/
|
|
39
|
-
export type DeleteTextureGenerationByIdResponseBody = {
|
|
40
|
-
/**
|
|
41
|
-
* columns and relationships of "model_asset_texture_generations"
|
|
42
|
-
*/
|
|
43
|
-
deleteModelAssetTextureGenerationsByPk?:
|
|
44
|
-
| ModelAssetTextureGenerations
|
|
45
|
-
| null
|
|
46
|
-
| undefined;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export type DeleteTextureGenerationByIdResponse = {
|
|
50
|
-
/**
|
|
51
|
-
* HTTP response content type for this operation
|
|
52
|
-
*/
|
|
53
|
-
contentType: string;
|
|
54
|
-
/**
|
|
55
|
-
* HTTP response status code for this operation
|
|
56
|
-
*/
|
|
57
|
-
statusCode: number;
|
|
58
|
-
/**
|
|
59
|
-
* Raw HTTP response; suitable for custom response parsing
|
|
60
|
-
*/
|
|
61
|
-
rawResponse: Response;
|
|
62
|
-
/**
|
|
63
|
-
* Responses for DELETE /api/rest/v1/generations-texture/{id}
|
|
64
|
-
*/
|
|
65
|
-
object?: DeleteTextureGenerationByIdResponseBody | undefined;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/** @internal */
|
|
69
|
-
export type DeleteTextureGenerationByIdRequestBody$Outbound = {
|
|
70
|
-
id?: string | null | undefined;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
/** @internal */
|
|
74
|
-
export const DeleteTextureGenerationByIdRequestBody$outboundSchema: z.ZodType<
|
|
75
|
-
DeleteTextureGenerationByIdRequestBody$Outbound,
|
|
76
|
-
z.ZodTypeDef,
|
|
77
|
-
DeleteTextureGenerationByIdRequestBody
|
|
78
|
-
> = z.object({
|
|
79
|
-
id: z.nullable(z.string()).optional(),
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
export function deleteTextureGenerationByIdRequestBodyToJSON(
|
|
83
|
-
deleteTextureGenerationByIdRequestBody:
|
|
84
|
-
DeleteTextureGenerationByIdRequestBody,
|
|
85
|
-
): string {
|
|
86
|
-
return JSON.stringify(
|
|
87
|
-
DeleteTextureGenerationByIdRequestBody$outboundSchema.parse(
|
|
88
|
-
deleteTextureGenerationByIdRequestBody,
|
|
89
|
-
),
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/** @internal */
|
|
94
|
-
export type DeleteTextureGenerationByIdRequest$Outbound = {
|
|
95
|
-
RequestBody?: DeleteTextureGenerationByIdRequestBody$Outbound | undefined;
|
|
96
|
-
id: string;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
/** @internal */
|
|
100
|
-
export const DeleteTextureGenerationByIdRequest$outboundSchema: z.ZodType<
|
|
101
|
-
DeleteTextureGenerationByIdRequest$Outbound,
|
|
102
|
-
z.ZodTypeDef,
|
|
103
|
-
DeleteTextureGenerationByIdRequest
|
|
104
|
-
> = z.object({
|
|
105
|
-
requestBody: z.lazy(() =>
|
|
106
|
-
DeleteTextureGenerationByIdRequestBody$outboundSchema
|
|
107
|
-
).optional(),
|
|
108
|
-
id: z.string(),
|
|
109
|
-
}).transform((v) => {
|
|
110
|
-
return remap$(v, {
|
|
111
|
-
requestBody: "RequestBody",
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
export function deleteTextureGenerationByIdRequestToJSON(
|
|
116
|
-
deleteTextureGenerationByIdRequest: DeleteTextureGenerationByIdRequest,
|
|
117
|
-
): string {
|
|
118
|
-
return JSON.stringify(
|
|
119
|
-
DeleteTextureGenerationByIdRequest$outboundSchema.parse(
|
|
120
|
-
deleteTextureGenerationByIdRequest,
|
|
121
|
-
),
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/** @internal */
|
|
126
|
-
export const ModelAssetTextureGenerations$inboundSchema: z.ZodType<
|
|
127
|
-
ModelAssetTextureGenerations,
|
|
128
|
-
z.ZodTypeDef,
|
|
129
|
-
unknown
|
|
130
|
-
> = z.object({
|
|
131
|
-
id: z.nullable(z.string()).optional(),
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
export function modelAssetTextureGenerationsFromJSON(
|
|
135
|
-
jsonString: string,
|
|
136
|
-
): SafeParseResult<ModelAssetTextureGenerations, SDKValidationError> {
|
|
137
|
-
return safeParse(
|
|
138
|
-
jsonString,
|
|
139
|
-
(x) => ModelAssetTextureGenerations$inboundSchema.parse(JSON.parse(x)),
|
|
140
|
-
`Failed to parse 'ModelAssetTextureGenerations' from JSON`,
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/** @internal */
|
|
145
|
-
export const DeleteTextureGenerationByIdResponseBody$inboundSchema: z.ZodType<
|
|
146
|
-
DeleteTextureGenerationByIdResponseBody,
|
|
147
|
-
z.ZodTypeDef,
|
|
148
|
-
unknown
|
|
149
|
-
> = z.object({
|
|
150
|
-
delete_model_asset_texture_generations_by_pk: z.nullable(
|
|
151
|
-
z.lazy(() => ModelAssetTextureGenerations$inboundSchema),
|
|
152
|
-
).optional(),
|
|
153
|
-
}).transform((v) => {
|
|
154
|
-
return remap$(v, {
|
|
155
|
-
"delete_model_asset_texture_generations_by_pk":
|
|
156
|
-
"deleteModelAssetTextureGenerationsByPk",
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
export function deleteTextureGenerationByIdResponseBodyFromJSON(
|
|
161
|
-
jsonString: string,
|
|
162
|
-
): SafeParseResult<
|
|
163
|
-
DeleteTextureGenerationByIdResponseBody,
|
|
164
|
-
SDKValidationError
|
|
165
|
-
> {
|
|
166
|
-
return safeParse(
|
|
167
|
-
jsonString,
|
|
168
|
-
(x) =>
|
|
169
|
-
DeleteTextureGenerationByIdResponseBody$inboundSchema.parse(
|
|
170
|
-
JSON.parse(x),
|
|
171
|
-
),
|
|
172
|
-
`Failed to parse 'DeleteTextureGenerationByIdResponseBody' from JSON`,
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/** @internal */
|
|
177
|
-
export const DeleteTextureGenerationByIdResponse$inboundSchema: z.ZodType<
|
|
178
|
-
DeleteTextureGenerationByIdResponse,
|
|
179
|
-
z.ZodTypeDef,
|
|
180
|
-
unknown
|
|
181
|
-
> = z.object({
|
|
182
|
-
ContentType: z.string(),
|
|
183
|
-
StatusCode: z.number().int(),
|
|
184
|
-
RawResponse: z.instanceof(Response),
|
|
185
|
-
object: z.lazy(() => DeleteTextureGenerationByIdResponseBody$inboundSchema)
|
|
186
|
-
.optional(),
|
|
187
|
-
}).transform((v) => {
|
|
188
|
-
return remap$(v, {
|
|
189
|
-
"ContentType": "contentType",
|
|
190
|
-
"StatusCode": "statusCode",
|
|
191
|
-
"RawResponse": "rawResponse",
|
|
192
|
-
});
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
export function deleteTextureGenerationByIdResponseFromJSON(
|
|
196
|
-
jsonString: string,
|
|
197
|
-
): SafeParseResult<DeleteTextureGenerationByIdResponse, SDKValidationError> {
|
|
198
|
-
return safeParse(
|
|
199
|
-
jsonString,
|
|
200
|
-
(x) =>
|
|
201
|
-
DeleteTextureGenerationByIdResponse$inboundSchema.parse(JSON.parse(x)),
|
|
202
|
-
`Failed to parse 'DeleteTextureGenerationByIdResponse' from JSON`,
|
|
203
|
-
);
|
|
204
|
-
}
|
package/src/sdk/texture.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { textureCreateTextureGeneration } from "../funcs/textureCreateTextureGeneration.js";
|
|
6
|
-
import { textureDeleteTextureGenerationById } from "../funcs/textureDeleteTextureGenerationById.js";
|
|
7
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import * as operations from "./models/operations/index.js";
|
|
9
|
-
import { unwrapAsync } from "./types/fp.js";
|
|
10
|
-
|
|
11
|
-
export class Texture extends ClientSDK {
|
|
12
|
-
/**
|
|
13
|
-
* Create Texture Generation
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* This endpoint will generate a texture generation.
|
|
17
|
-
*/
|
|
18
|
-
async createTextureGeneration(
|
|
19
|
-
request?: operations.CreateTextureGenerationRequestBody | undefined,
|
|
20
|
-
options?: RequestOptions,
|
|
21
|
-
): Promise<operations.CreateTextureGenerationResponse> {
|
|
22
|
-
return unwrapAsync(textureCreateTextureGeneration(
|
|
23
|
-
this,
|
|
24
|
-
request,
|
|
25
|
-
options,
|
|
26
|
-
));
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Delete Texture Generation by ID
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* This endpoint deletes the specific texture generation.
|
|
34
|
-
*/
|
|
35
|
-
async deleteTextureGenerationById(
|
|
36
|
-
id: string,
|
|
37
|
-
requestBody?: operations.DeleteTextureGenerationByIdRequestBody | undefined,
|
|
38
|
-
options?: RequestOptions,
|
|
39
|
-
): Promise<operations.DeleteTextureGenerationByIdResponse> {
|
|
40
|
-
return unwrapAsync(textureDeleteTextureGenerationById(
|
|
41
|
-
this,
|
|
42
|
-
id,
|
|
43
|
-
requestBody,
|
|
44
|
-
options,
|
|
45
|
-
));
|
|
46
|
-
}
|
|
47
|
-
}
|