@leonardo-ai/sdk 4.4.7 → 4.5.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/.speakeasy/gen.lock +67 -67
- package/README.md +12 -12
- package/docs/sdks/element/README.md +4 -4
- package/docs/sdks/generation/README.md +76 -76
- package/docs/sdks/model/README.md +22 -22
- package/docs/sdks/variation/README.md +20 -20
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/http.d.ts +4 -3
- package/lib/http.d.ts.map +1 -1
- package/lib/http.js +13 -6
- package/lib/http.js.map +1 -1
- package/package.json +1 -1
- package/sdk/element.d.ts +1 -1
- package/sdk/element.d.ts.map +1 -1
- package/sdk/element.js +3 -3
- package/sdk/element.js.map +1 -1
- package/sdk/generation.d.ts +27 -27
- package/sdk/generation.d.ts.map +1 -1
- package/sdk/generation.js +124 -122
- package/sdk/generation.js.map +1 -1
- package/sdk/model.d.ts +8 -8
- package/sdk/model.d.ts.map +1 -1
- package/sdk/model.js +25 -25
- package/sdk/model.js.map +1 -1
- package/sdk/models/operations/{postgenerationslcm.d.ts → createlcmgeneration.d.ts} +16 -16
- package/sdk/models/operations/createlcmgeneration.d.ts.map +1 -0
- package/sdk/models/operations/{postgenerationslcm.js → createlcmgeneration.js} +19 -19
- package/sdk/models/operations/createlcmgeneration.js.map +1 -0
- package/sdk/models/operations/{postgenerationsmotionsvd.d.ts → createsvdmotiongeneration.d.ts} +16 -16
- package/sdk/models/operations/createsvdmotiongeneration.d.ts.map +1 -0
- package/sdk/models/operations/{postgenerationsmotionsvd.js → createsvdmotiongeneration.js} +19 -21
- package/sdk/models/operations/createsvdmotiongeneration.js.map +1 -0
- package/sdk/models/operations/{postgenerationstexture.d.ts → createtexturegeneration.d.ts} +16 -16
- package/sdk/models/operations/createtexturegeneration.d.ts.map +1 -0
- package/sdk/models/operations/{postgenerationstexture.js → createtexturegeneration.js} +19 -19
- package/sdk/models/operations/createtexturegeneration.js.map +1 -0
- package/sdk/models/operations/{postvariationsunzoom.d.ts → createvariationunzoom.d.ts} +16 -16
- package/sdk/models/operations/createvariationunzoom.d.ts.map +1 -0
- package/sdk/models/operations/{postvariationsunzoom.js → createvariationunzoom.js} +19 -19
- package/sdk/models/operations/createvariationunzoom.js.map +1 -0
- package/sdk/models/operations/{deletemodels3did.d.ts → delete3dmodelbyid.d.ts} +23 -23
- package/sdk/models/operations/delete3dmodelbyid.d.ts.map +1 -0
- package/sdk/models/operations/{deletemodels3did.js → delete3dmodelbyid.js} +29 -27
- package/sdk/models/operations/delete3dmodelbyid.js.map +1 -0
- package/sdk/models/operations/{deletegenerationstextureid.d.ts → deletetexturegenerationbyid.d.ts} +23 -23
- package/sdk/models/operations/deletetexturegenerationbyid.d.ts.map +1 -0
- package/sdk/models/operations/{deletegenerationstextureid.js → deletetexturegenerationbyid.js} +28 -26
- package/sdk/models/operations/deletetexturegenerationbyid.js.map +1 -0
- package/sdk/models/operations/index.d.ts +12 -12
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +12 -12
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/{getelements.d.ts → listelements.d.ts} +12 -12
- package/sdk/models/operations/listelements.d.ts.map +1 -0
- package/sdk/models/operations/{getelements.js → listelements.js} +14 -14
- package/sdk/models/operations/listelements.js.map +1 -0
- package/sdk/models/operations/{getplatformmodels.d.ts → listplatformmodels.d.ts} +26 -26
- package/sdk/models/operations/listplatformmodels.d.ts.map +1 -0
- package/sdk/models/operations/{getplatformmodels.js → listplatformmodels.js} +28 -28
- package/sdk/models/operations/listplatformmodels.js.map +1 -0
- package/sdk/models/operations/{postlcmupscale.d.ts → performalchemyupscalelcm.d.ts} +23 -23
- package/sdk/models/operations/performalchemyupscalelcm.d.ts.map +1 -0
- package/sdk/models/operations/{postlcmupscale.js → performalchemyupscalelcm.js} +28 -26
- package/sdk/models/operations/performalchemyupscalelcm.js.map +1 -0
- package/sdk/models/operations/{postlcminpainting.d.ts → performinpaintinglcm.d.ts} +23 -23
- package/sdk/models/operations/performinpaintinglcm.d.ts.map +1 -0
- package/sdk/models/operations/{postlcminpainting.js → performinpaintinglcm.js} +26 -26
- package/sdk/models/operations/performinpaintinglcm.js.map +1 -0
- package/sdk/models/operations/{postlcminstantrefine.d.ts → performinstantrefine.d.ts} +23 -23
- package/sdk/models/operations/{postlcminstantrefine.d.ts.map → performinstantrefine.d.ts.map} +1 -1
- package/sdk/models/operations/{postlcminstantrefine.js → performinstantrefine.js} +26 -26
- package/sdk/models/operations/{postlcminstantrefine.js.map → performinstantrefine.js.map} +1 -1
- package/sdk/models/operations/{postmodels3dupload.d.ts → uploadmodelasset.d.ts} +16 -16
- package/sdk/models/operations/uploadmodelasset.d.ts.map +1 -0
- package/sdk/models/operations/{postmodels3dupload.js → uploadmodelasset.js} +20 -22
- package/sdk/models/operations/uploadmodelasset.js.map +1 -0
- package/sdk/variation.d.ts +7 -7
- package/sdk/variation.d.ts.map +1 -1
- package/sdk/variation.js +34 -32
- package/sdk/variation.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/http.ts +21 -9
- package/src/sdk/element.ts +3 -3
- package/src/sdk/generation.ts +160 -158
- package/src/sdk/model.ts +33 -33
- package/src/sdk/models/operations/{postgenerationslcm.ts → createlcmgeneration.ts} +39 -35
- package/src/sdk/models/operations/{postgenerationsmotionsvd.ts → createsvdmotiongeneration.ts} +34 -33
- package/src/sdk/models/operations/{postgenerationstexture.ts → createtexturegeneration.ts} +49 -45
- package/src/sdk/models/operations/{postvariationsunzoom.ts → createvariationunzoom.ts} +45 -41
- package/src/sdk/models/operations/{deletemodels3did.ts → delete3dmodelbyid.ts} +39 -36
- package/src/sdk/models/operations/{deletegenerationstextureid.ts → deletetexturegenerationbyid.ts} +28 -26
- package/src/sdk/models/operations/index.ts +12 -12
- package/src/sdk/models/operations/{getelements.ts → listelements.ts} +13 -13
- package/src/sdk/models/operations/{getplatformmodels.ts → listplatformmodels.ts} +45 -42
- package/src/sdk/models/operations/{postlcmupscale.ts → performalchemyupscalelcm.ts} +62 -39
- package/src/sdk/models/operations/{postlcminpainting.ts → performinpaintinglcm.ts} +80 -71
- package/src/sdk/models/operations/{postlcminstantrefine.ts → performinstantrefine.ts} +26 -26
- package/src/sdk/models/operations/{postmodels3dupload.ts → uploadmodelasset.ts} +39 -43
- package/src/sdk/variation.ts +44 -42
- package/sdk/models/operations/deletegenerationstextureid.d.ts.map +0 -1
- package/sdk/models/operations/deletegenerationstextureid.js.map +0 -1
- package/sdk/models/operations/deletemodels3did.d.ts.map +0 -1
- package/sdk/models/operations/deletemodels3did.js.map +0 -1
- package/sdk/models/operations/getelements.d.ts.map +0 -1
- package/sdk/models/operations/getelements.js.map +0 -1
- package/sdk/models/operations/getplatformmodels.d.ts.map +0 -1
- package/sdk/models/operations/getplatformmodels.js.map +0 -1
- package/sdk/models/operations/postgenerationslcm.d.ts.map +0 -1
- package/sdk/models/operations/postgenerationslcm.js.map +0 -1
- package/sdk/models/operations/postgenerationsmotionsvd.d.ts.map +0 -1
- package/sdk/models/operations/postgenerationsmotionsvd.js.map +0 -1
- package/sdk/models/operations/postgenerationstexture.d.ts.map +0 -1
- package/sdk/models/operations/postgenerationstexture.js.map +0 -1
- package/sdk/models/operations/postlcminpainting.d.ts.map +0 -1
- package/sdk/models/operations/postlcminpainting.js.map +0 -1
- package/sdk/models/operations/postlcmupscale.d.ts.map +0 -1
- package/sdk/models/operations/postlcmupscale.js.map +0 -1
- package/sdk/models/operations/postmodels3dupload.d.ts.map +0 -1
- package/sdk/models/operations/postmodels3dupload.js.map +0 -1
- package/sdk/models/operations/postvariationsunzoom.d.ts.map +0 -1
- package/sdk/models/operations/postvariationsunzoom.js.map +0 -1
|
@@ -8,7 +8,7 @@ import * as z from "zod";
|
|
|
8
8
|
/**
|
|
9
9
|
* Query parameters can also be provided in the request body as a JSON object
|
|
10
10
|
*/
|
|
11
|
-
export type
|
|
11
|
+
export type PerformInpaintingLCMRequestBody = {
|
|
12
12
|
/**
|
|
13
13
|
* How strongly the generation should reflect the prompt. Must be a float between 0.5 and 20.
|
|
14
14
|
*/
|
|
@@ -49,7 +49,7 @@ export type PostLcmInpaintingRequestBody = {
|
|
|
49
49
|
width?: number | null | undefined;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
export type
|
|
52
|
+
export type PerformInpaintingLCMLCMGenerationOutput = {
|
|
53
53
|
/**
|
|
54
54
|
* API credits cost, available for Production API users.
|
|
55
55
|
*/
|
|
@@ -61,11 +61,11 @@ export type PostLcmInpaintingLcmGenerationOutput = {
|
|
|
61
61
|
/**
|
|
62
62
|
* Responses for POST /lcm-inpainting
|
|
63
63
|
*/
|
|
64
|
-
export type
|
|
65
|
-
lcmGenerationJob?:
|
|
64
|
+
export type PerformInpaintingLCMResponseBody = {
|
|
65
|
+
lcmGenerationJob?: PerformInpaintingLCMLCMGenerationOutput | null | undefined;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
export type
|
|
68
|
+
export type PerformInpaintingLCMResponse = {
|
|
69
69
|
/**
|
|
70
70
|
* HTTP response content type for this operation
|
|
71
71
|
*/
|
|
@@ -81,11 +81,11 @@ export type PostLcmInpaintingResponse = {
|
|
|
81
81
|
/**
|
|
82
82
|
* Responses for POST /lcm-inpainting
|
|
83
83
|
*/
|
|
84
|
-
object?:
|
|
84
|
+
object?: PerformInpaintingLCMResponseBody | undefined;
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
/** @internal */
|
|
88
|
-
export namespace
|
|
88
|
+
export namespace PerformInpaintingLCMRequestBody$ {
|
|
89
89
|
export type Inbound = {
|
|
90
90
|
guidance?: number | null | undefined;
|
|
91
91
|
height?: number | null | undefined;
|
|
@@ -100,37 +100,38 @@ export namespace PostLcmInpaintingRequestBody$ {
|
|
|
100
100
|
width?: number | null | undefined;
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
export const inboundSchema: z.ZodType<
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
103
|
+
export const inboundSchema: z.ZodType<PerformInpaintingLCMRequestBody, z.ZodTypeDef, Inbound> =
|
|
104
|
+
z
|
|
105
|
+
.object({
|
|
106
|
+
guidance: z.nullable(z.number()).optional(),
|
|
107
|
+
height: z.nullable(z.number().int().default(512)),
|
|
108
|
+
imageDataUrl: z.string(),
|
|
109
|
+
maskDataUrl: z.string(),
|
|
110
|
+
prompt: z.string(),
|
|
111
|
+
requestTimestamp: z.string().optional(),
|
|
112
|
+
seed: z.nullable(z.number().int()).optional(),
|
|
113
|
+
steps: z.nullable(z.number().int()).optional(),
|
|
114
|
+
strength: z.nullable(z.number()).optional(),
|
|
115
|
+
style: z.nullable(shared.LcmGenerationStyle$).optional(),
|
|
116
|
+
width: z.nullable(z.number().int().default(512)),
|
|
117
|
+
})
|
|
118
|
+
.transform((v) => {
|
|
119
|
+
return {
|
|
120
|
+
...(v.guidance === undefined ? null : { guidance: v.guidance }),
|
|
121
|
+
height: v.height,
|
|
122
|
+
imageDataUrl: v.imageDataUrl,
|
|
123
|
+
maskDataUrl: v.maskDataUrl,
|
|
124
|
+
prompt: v.prompt,
|
|
125
|
+
...(v.requestTimestamp === undefined
|
|
126
|
+
? null
|
|
127
|
+
: { requestTimestamp: v.requestTimestamp }),
|
|
128
|
+
...(v.seed === undefined ? null : { seed: v.seed }),
|
|
129
|
+
...(v.steps === undefined ? null : { steps: v.steps }),
|
|
130
|
+
...(v.strength === undefined ? null : { strength: v.strength }),
|
|
131
|
+
...(v.style === undefined ? null : { style: v.style }),
|
|
132
|
+
width: v.width,
|
|
133
|
+
};
|
|
134
|
+
});
|
|
134
135
|
|
|
135
136
|
export type Outbound = {
|
|
136
137
|
guidance?: number | null | undefined;
|
|
@@ -146,7 +147,11 @@ export namespace PostLcmInpaintingRequestBody$ {
|
|
|
146
147
|
width: number | null;
|
|
147
148
|
};
|
|
148
149
|
|
|
149
|
-
export const outboundSchema: z.ZodType<
|
|
150
|
+
export const outboundSchema: z.ZodType<
|
|
151
|
+
Outbound,
|
|
152
|
+
z.ZodTypeDef,
|
|
153
|
+
PerformInpaintingLCMRequestBody
|
|
154
|
+
> = z
|
|
150
155
|
.object({
|
|
151
156
|
guidance: z.nullable(z.number()).optional(),
|
|
152
157
|
height: z.nullable(z.number().int().default(512)),
|
|
@@ -180,7 +185,7 @@ export namespace PostLcmInpaintingRequestBody$ {
|
|
|
180
185
|
}
|
|
181
186
|
|
|
182
187
|
/** @internal */
|
|
183
|
-
export namespace
|
|
188
|
+
export namespace PerformInpaintingLCMLCMGenerationOutput$ {
|
|
184
189
|
export type Inbound = {
|
|
185
190
|
apiCreditCost?: number | null | undefined;
|
|
186
191
|
imageDataUrl?: Array<string> | undefined;
|
|
@@ -188,7 +193,7 @@ export namespace PostLcmInpaintingLcmGenerationOutput$ {
|
|
|
188
193
|
};
|
|
189
194
|
|
|
190
195
|
export const inboundSchema: z.ZodType<
|
|
191
|
-
|
|
196
|
+
PerformInpaintingLCMLCMGenerationOutput,
|
|
192
197
|
z.ZodTypeDef,
|
|
193
198
|
Inbound
|
|
194
199
|
> = z
|
|
@@ -216,7 +221,7 @@ export namespace PostLcmInpaintingLcmGenerationOutput$ {
|
|
|
216
221
|
export const outboundSchema: z.ZodType<
|
|
217
222
|
Outbound,
|
|
218
223
|
z.ZodTypeDef,
|
|
219
|
-
|
|
224
|
+
PerformInpaintingLCMLCMGenerationOutput
|
|
220
225
|
> = z
|
|
221
226
|
.object({
|
|
222
227
|
apiCreditCost: z.nullable(z.number().int()).optional(),
|
|
@@ -235,34 +240,16 @@ export namespace PostLcmInpaintingLcmGenerationOutput$ {
|
|
|
235
240
|
}
|
|
236
241
|
|
|
237
242
|
/** @internal */
|
|
238
|
-
export namespace
|
|
243
|
+
export namespace PerformInpaintingLCMResponseBody$ {
|
|
239
244
|
export type Inbound = {
|
|
240
|
-
lcmGenerationJob?:
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
export const inboundSchema: z.ZodType<PostLcmInpaintingResponseBody, z.ZodTypeDef, Inbound> = z
|
|
244
|
-
.object({
|
|
245
|
-
lcmGenerationJob: z
|
|
246
|
-
.nullable(z.lazy(() => PostLcmInpaintingLcmGenerationOutput$.inboundSchema))
|
|
247
|
-
.optional(),
|
|
248
|
-
})
|
|
249
|
-
.transform((v) => {
|
|
250
|
-
return {
|
|
251
|
-
...(v.lcmGenerationJob === undefined
|
|
252
|
-
? null
|
|
253
|
-
: { lcmGenerationJob: v.lcmGenerationJob }),
|
|
254
|
-
};
|
|
255
|
-
});
|
|
256
|
-
|
|
257
|
-
export type Outbound = {
|
|
258
|
-
lcmGenerationJob?: PostLcmInpaintingLcmGenerationOutput$.Outbound | null | undefined;
|
|
245
|
+
lcmGenerationJob?: PerformInpaintingLCMLCMGenerationOutput$.Inbound | null | undefined;
|
|
259
246
|
};
|
|
260
247
|
|
|
261
|
-
export const
|
|
248
|
+
export const inboundSchema: z.ZodType<PerformInpaintingLCMResponseBody, z.ZodTypeDef, Inbound> =
|
|
262
249
|
z
|
|
263
250
|
.object({
|
|
264
251
|
lcmGenerationJob: z
|
|
265
|
-
.nullable(z.lazy(() =>
|
|
252
|
+
.nullable(z.lazy(() => PerformInpaintingLCMLCMGenerationOutput$.inboundSchema))
|
|
266
253
|
.optional(),
|
|
267
254
|
})
|
|
268
255
|
.transform((v) => {
|
|
@@ -272,23 +259,45 @@ export namespace PostLcmInpaintingResponseBody$ {
|
|
|
272
259
|
: { lcmGenerationJob: v.lcmGenerationJob }),
|
|
273
260
|
};
|
|
274
261
|
});
|
|
262
|
+
|
|
263
|
+
export type Outbound = {
|
|
264
|
+
lcmGenerationJob?: PerformInpaintingLCMLCMGenerationOutput$.Outbound | null | undefined;
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
export const outboundSchema: z.ZodType<
|
|
268
|
+
Outbound,
|
|
269
|
+
z.ZodTypeDef,
|
|
270
|
+
PerformInpaintingLCMResponseBody
|
|
271
|
+
> = z
|
|
272
|
+
.object({
|
|
273
|
+
lcmGenerationJob: z
|
|
274
|
+
.nullable(z.lazy(() => PerformInpaintingLCMLCMGenerationOutput$.outboundSchema))
|
|
275
|
+
.optional(),
|
|
276
|
+
})
|
|
277
|
+
.transform((v) => {
|
|
278
|
+
return {
|
|
279
|
+
...(v.lcmGenerationJob === undefined
|
|
280
|
+
? null
|
|
281
|
+
: { lcmGenerationJob: v.lcmGenerationJob }),
|
|
282
|
+
};
|
|
283
|
+
});
|
|
275
284
|
}
|
|
276
285
|
|
|
277
286
|
/** @internal */
|
|
278
|
-
export namespace
|
|
287
|
+
export namespace PerformInpaintingLCMResponse$ {
|
|
279
288
|
export type Inbound = {
|
|
280
289
|
ContentType: string;
|
|
281
290
|
StatusCode: number;
|
|
282
291
|
RawResponse: Response;
|
|
283
|
-
object?:
|
|
292
|
+
object?: PerformInpaintingLCMResponseBody$.Inbound | undefined;
|
|
284
293
|
};
|
|
285
294
|
|
|
286
|
-
export const inboundSchema: z.ZodType<
|
|
295
|
+
export const inboundSchema: z.ZodType<PerformInpaintingLCMResponse, z.ZodTypeDef, Inbound> = z
|
|
287
296
|
.object({
|
|
288
297
|
ContentType: z.string(),
|
|
289
298
|
StatusCode: z.number().int(),
|
|
290
299
|
RawResponse: z.instanceof(Response),
|
|
291
|
-
object: z.lazy(() =>
|
|
300
|
+
object: z.lazy(() => PerformInpaintingLCMResponseBody$.inboundSchema).optional(),
|
|
292
301
|
})
|
|
293
302
|
.transform((v) => {
|
|
294
303
|
return {
|
|
@@ -303,17 +312,17 @@ export namespace PostLcmInpaintingResponse$ {
|
|
|
303
312
|
ContentType: string;
|
|
304
313
|
StatusCode: number;
|
|
305
314
|
RawResponse: never;
|
|
306
|
-
object?:
|
|
315
|
+
object?: PerformInpaintingLCMResponseBody$.Outbound | undefined;
|
|
307
316
|
};
|
|
308
317
|
|
|
309
|
-
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef,
|
|
318
|
+
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PerformInpaintingLCMResponse> = z
|
|
310
319
|
.object({
|
|
311
320
|
contentType: z.string(),
|
|
312
321
|
statusCode: z.number().int(),
|
|
313
322
|
rawResponse: z.instanceof(Response).transform(() => {
|
|
314
323
|
throw new Error("Response cannot be serialized");
|
|
315
324
|
}),
|
|
316
|
-
object: z.lazy(() =>
|
|
325
|
+
object: z.lazy(() => PerformInpaintingLCMResponseBody$.outboundSchema).optional(),
|
|
317
326
|
})
|
|
318
327
|
.transform((v) => {
|
|
319
328
|
return {
|
|
@@ -8,7 +8,7 @@ import * as z from "zod";
|
|
|
8
8
|
/**
|
|
9
9
|
* Query parameters can also be provided in the request body as a JSON object
|
|
10
10
|
*/
|
|
11
|
-
export type
|
|
11
|
+
export type PerformInstantRefineRequestBody = {
|
|
12
12
|
/**
|
|
13
13
|
* How strongly the generation should reflect the prompt. Must be a float between 0.5 and 20.
|
|
14
14
|
*/
|
|
@@ -45,7 +45,7 @@ export type PostLcmInstantRefineRequestBody = {
|
|
|
45
45
|
width?: number | null | undefined;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
export type
|
|
48
|
+
export type PerformInstantRefineLcmGenerationOutput = {
|
|
49
49
|
/**
|
|
50
50
|
* API credits cost, available for Production API users.
|
|
51
51
|
*/
|
|
@@ -57,11 +57,11 @@ export type PostLcmInstantRefineLcmGenerationOutput = {
|
|
|
57
57
|
/**
|
|
58
58
|
* Responses for POST /lcm-instant-refine
|
|
59
59
|
*/
|
|
60
|
-
export type
|
|
61
|
-
lcmGenerationJob?:
|
|
60
|
+
export type PerformInstantRefineResponseBody = {
|
|
61
|
+
lcmGenerationJob?: PerformInstantRefineLcmGenerationOutput | null | undefined;
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
export type
|
|
64
|
+
export type PerformInstantRefineResponse = {
|
|
65
65
|
/**
|
|
66
66
|
* HTTP response content type for this operation
|
|
67
67
|
*/
|
|
@@ -77,11 +77,11 @@ export type PostLcmInstantRefineResponse = {
|
|
|
77
77
|
/**
|
|
78
78
|
* Responses for POST /lcm-instant-refine
|
|
79
79
|
*/
|
|
80
|
-
object?:
|
|
80
|
+
object?: PerformInstantRefineResponseBody | undefined;
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
/** @internal */
|
|
84
|
-
export namespace
|
|
84
|
+
export namespace PerformInstantRefineRequestBody$ {
|
|
85
85
|
export type Inbound = {
|
|
86
86
|
guidance?: number | null | undefined;
|
|
87
87
|
height?: number | null | undefined;
|
|
@@ -95,7 +95,7 @@ export namespace PostLcmInstantRefineRequestBody$ {
|
|
|
95
95
|
width?: number | null | undefined;
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
export const inboundSchema: z.ZodType<
|
|
98
|
+
export const inboundSchema: z.ZodType<PerformInstantRefineRequestBody, z.ZodTypeDef, Inbound> =
|
|
99
99
|
z
|
|
100
100
|
.object({
|
|
101
101
|
guidance: z.nullable(z.number()).optional(),
|
|
@@ -142,7 +142,7 @@ export namespace PostLcmInstantRefineRequestBody$ {
|
|
|
142
142
|
export const outboundSchema: z.ZodType<
|
|
143
143
|
Outbound,
|
|
144
144
|
z.ZodTypeDef,
|
|
145
|
-
|
|
145
|
+
PerformInstantRefineRequestBody
|
|
146
146
|
> = z
|
|
147
147
|
.object({
|
|
148
148
|
guidance: z.nullable(z.number()).optional(),
|
|
@@ -175,7 +175,7 @@ export namespace PostLcmInstantRefineRequestBody$ {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
/** @internal */
|
|
178
|
-
export namespace
|
|
178
|
+
export namespace PerformInstantRefineLcmGenerationOutput$ {
|
|
179
179
|
export type Inbound = {
|
|
180
180
|
apiCreditCost?: number | null | undefined;
|
|
181
181
|
imageDataUrl?: Array<string> | undefined;
|
|
@@ -183,7 +183,7 @@ export namespace PostLcmInstantRefineLcmGenerationOutput$ {
|
|
|
183
183
|
};
|
|
184
184
|
|
|
185
185
|
export const inboundSchema: z.ZodType<
|
|
186
|
-
|
|
186
|
+
PerformInstantRefineLcmGenerationOutput,
|
|
187
187
|
z.ZodTypeDef,
|
|
188
188
|
Inbound
|
|
189
189
|
> = z
|
|
@@ -211,7 +211,7 @@ export namespace PostLcmInstantRefineLcmGenerationOutput$ {
|
|
|
211
211
|
export const outboundSchema: z.ZodType<
|
|
212
212
|
Outbound,
|
|
213
213
|
z.ZodTypeDef,
|
|
214
|
-
|
|
214
|
+
PerformInstantRefineLcmGenerationOutput
|
|
215
215
|
> = z
|
|
216
216
|
.object({
|
|
217
217
|
apiCreditCost: z.nullable(z.number().int()).optional(),
|
|
@@ -230,16 +230,16 @@ export namespace PostLcmInstantRefineLcmGenerationOutput$ {
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
/** @internal */
|
|
233
|
-
export namespace
|
|
233
|
+
export namespace PerformInstantRefineResponseBody$ {
|
|
234
234
|
export type Inbound = {
|
|
235
|
-
lcmGenerationJob?:
|
|
235
|
+
lcmGenerationJob?: PerformInstantRefineLcmGenerationOutput$.Inbound | null | undefined;
|
|
236
236
|
};
|
|
237
237
|
|
|
238
|
-
export const inboundSchema: z.ZodType<
|
|
238
|
+
export const inboundSchema: z.ZodType<PerformInstantRefineResponseBody, z.ZodTypeDef, Inbound> =
|
|
239
239
|
z
|
|
240
240
|
.object({
|
|
241
241
|
lcmGenerationJob: z
|
|
242
|
-
.nullable(z.lazy(() =>
|
|
242
|
+
.nullable(z.lazy(() => PerformInstantRefineLcmGenerationOutput$.inboundSchema))
|
|
243
243
|
.optional(),
|
|
244
244
|
})
|
|
245
245
|
.transform((v) => {
|
|
@@ -251,17 +251,17 @@ export namespace PostLcmInstantRefineResponseBody$ {
|
|
|
251
251
|
});
|
|
252
252
|
|
|
253
253
|
export type Outbound = {
|
|
254
|
-
lcmGenerationJob?:
|
|
254
|
+
lcmGenerationJob?: PerformInstantRefineLcmGenerationOutput$.Outbound | null | undefined;
|
|
255
255
|
};
|
|
256
256
|
|
|
257
257
|
export const outboundSchema: z.ZodType<
|
|
258
258
|
Outbound,
|
|
259
259
|
z.ZodTypeDef,
|
|
260
|
-
|
|
260
|
+
PerformInstantRefineResponseBody
|
|
261
261
|
> = z
|
|
262
262
|
.object({
|
|
263
263
|
lcmGenerationJob: z
|
|
264
|
-
.nullable(z.lazy(() =>
|
|
264
|
+
.nullable(z.lazy(() => PerformInstantRefineLcmGenerationOutput$.outboundSchema))
|
|
265
265
|
.optional(),
|
|
266
266
|
})
|
|
267
267
|
.transform((v) => {
|
|
@@ -274,20 +274,20 @@ export namespace PostLcmInstantRefineResponseBody$ {
|
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
/** @internal */
|
|
277
|
-
export namespace
|
|
277
|
+
export namespace PerformInstantRefineResponse$ {
|
|
278
278
|
export type Inbound = {
|
|
279
279
|
ContentType: string;
|
|
280
280
|
StatusCode: number;
|
|
281
281
|
RawResponse: Response;
|
|
282
|
-
object?:
|
|
282
|
+
object?: PerformInstantRefineResponseBody$.Inbound | undefined;
|
|
283
283
|
};
|
|
284
284
|
|
|
285
|
-
export const inboundSchema: z.ZodType<
|
|
285
|
+
export const inboundSchema: z.ZodType<PerformInstantRefineResponse, z.ZodTypeDef, Inbound> = z
|
|
286
286
|
.object({
|
|
287
287
|
ContentType: z.string(),
|
|
288
288
|
StatusCode: z.number().int(),
|
|
289
289
|
RawResponse: z.instanceof(Response),
|
|
290
|
-
object: z.lazy(() =>
|
|
290
|
+
object: z.lazy(() => PerformInstantRefineResponseBody$.inboundSchema).optional(),
|
|
291
291
|
})
|
|
292
292
|
.transform((v) => {
|
|
293
293
|
return {
|
|
@@ -302,17 +302,17 @@ export namespace PostLcmInstantRefineResponse$ {
|
|
|
302
302
|
ContentType: string;
|
|
303
303
|
StatusCode: number;
|
|
304
304
|
RawResponse: never;
|
|
305
|
-
object?:
|
|
305
|
+
object?: PerformInstantRefineResponseBody$.Outbound | undefined;
|
|
306
306
|
};
|
|
307
307
|
|
|
308
|
-
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef,
|
|
308
|
+
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PerformInstantRefineResponse> = z
|
|
309
309
|
.object({
|
|
310
310
|
contentType: z.string(),
|
|
311
311
|
statusCode: z.number().int(),
|
|
312
312
|
rawResponse: z.instanceof(Response).transform(() => {
|
|
313
313
|
throw new Error("Response cannot be serialized");
|
|
314
314
|
}),
|
|
315
|
-
object: z.lazy(() =>
|
|
315
|
+
object: z.lazy(() => PerformInstantRefineResponseBody$.outboundSchema).optional(),
|
|
316
316
|
})
|
|
317
317
|
.transform((v) => {
|
|
318
318
|
return {
|
|
@@ -7,7 +7,7 @@ import * as z from "zod";
|
|
|
7
7
|
/**
|
|
8
8
|
* Query parameters can also be provided in the request body as a JSON object
|
|
9
9
|
*/
|
|
10
|
-
export type
|
|
10
|
+
export type UploadModelAssetRequestBody = {
|
|
11
11
|
modelExtension?: string | undefined;
|
|
12
12
|
name?: string | null | undefined;
|
|
13
13
|
};
|
|
@@ -22,11 +22,11 @@ export type ModelAssetUploadOutput = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Responses for POST /api/rest/v1/models-3d/upload
|
|
24
24
|
*/
|
|
25
|
-
export type
|
|
25
|
+
export type UploadModelAssetResponseBody = {
|
|
26
26
|
uploadModelAsset?: ModelAssetUploadOutput | null | undefined;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
export type
|
|
29
|
+
export type UploadModelAssetResponse = {
|
|
30
30
|
/**
|
|
31
31
|
* HTTP response content type for this operation
|
|
32
32
|
*/
|
|
@@ -42,17 +42,17 @@ export type PostModels3dUploadResponse = {
|
|
|
42
42
|
/**
|
|
43
43
|
* Responses for POST /api/rest/v1/models-3d/upload
|
|
44
44
|
*/
|
|
45
|
-
object?:
|
|
45
|
+
object?: UploadModelAssetResponseBody | undefined;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
/** @internal */
|
|
49
|
-
export namespace
|
|
49
|
+
export namespace UploadModelAssetRequestBody$ {
|
|
50
50
|
export type Inbound = {
|
|
51
51
|
modelExtension?: string | undefined;
|
|
52
52
|
name?: string | null | undefined;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
export const inboundSchema: z.ZodType<
|
|
55
|
+
export const inboundSchema: z.ZodType<UploadModelAssetRequestBody, z.ZodTypeDef, Inbound> = z
|
|
56
56
|
.object({
|
|
57
57
|
modelExtension: z.string().optional(),
|
|
58
58
|
name: z.nullable(z.string()).optional(),
|
|
@@ -69,20 +69,17 @@ export namespace PostModels3dUploadRequestBody$ {
|
|
|
69
69
|
name?: string | null | undefined;
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef,
|
|
73
|
-
|
|
74
|
-
.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
...(v.name === undefined ? null : { name: v.name }),
|
|
84
|
-
};
|
|
85
|
-
});
|
|
72
|
+
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UploadModelAssetRequestBody> = z
|
|
73
|
+
.object({
|
|
74
|
+
modelExtension: z.string().optional(),
|
|
75
|
+
name: z.nullable(z.string()).optional(),
|
|
76
|
+
})
|
|
77
|
+
.transform((v) => {
|
|
78
|
+
return {
|
|
79
|
+
...(v.modelExtension === undefined ? null : { modelExtension: v.modelExtension }),
|
|
80
|
+
...(v.name === undefined ? null : { name: v.name }),
|
|
81
|
+
};
|
|
82
|
+
});
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
/** @internal */
|
|
@@ -135,12 +132,12 @@ export namespace ModelAssetUploadOutput$ {
|
|
|
135
132
|
}
|
|
136
133
|
|
|
137
134
|
/** @internal */
|
|
138
|
-
export namespace
|
|
135
|
+
export namespace UploadModelAssetResponseBody$ {
|
|
139
136
|
export type Inbound = {
|
|
140
137
|
uploadModelAsset?: ModelAssetUploadOutput$.Inbound | null | undefined;
|
|
141
138
|
};
|
|
142
139
|
|
|
143
|
-
export const inboundSchema: z.ZodType<
|
|
140
|
+
export const inboundSchema: z.ZodType<UploadModelAssetResponseBody, z.ZodTypeDef, Inbound> = z
|
|
144
141
|
.object({
|
|
145
142
|
uploadModelAsset: z
|
|
146
143
|
.nullable(z.lazy(() => ModelAssetUploadOutput$.inboundSchema))
|
|
@@ -158,37 +155,36 @@ export namespace PostModels3dUploadResponseBody$ {
|
|
|
158
155
|
uploadModelAsset?: ModelAssetUploadOutput$.Outbound | null | undefined;
|
|
159
156
|
};
|
|
160
157
|
|
|
161
|
-
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
});
|
|
158
|
+
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UploadModelAssetResponseBody> = z
|
|
159
|
+
.object({
|
|
160
|
+
uploadModelAsset: z
|
|
161
|
+
.nullable(z.lazy(() => ModelAssetUploadOutput$.outboundSchema))
|
|
162
|
+
.optional(),
|
|
163
|
+
})
|
|
164
|
+
.transform((v) => {
|
|
165
|
+
return {
|
|
166
|
+
...(v.uploadModelAsset === undefined
|
|
167
|
+
? null
|
|
168
|
+
: { uploadModelAsset: v.uploadModelAsset }),
|
|
169
|
+
};
|
|
170
|
+
});
|
|
175
171
|
}
|
|
176
172
|
|
|
177
173
|
/** @internal */
|
|
178
|
-
export namespace
|
|
174
|
+
export namespace UploadModelAssetResponse$ {
|
|
179
175
|
export type Inbound = {
|
|
180
176
|
ContentType: string;
|
|
181
177
|
StatusCode: number;
|
|
182
178
|
RawResponse: Response;
|
|
183
|
-
object?:
|
|
179
|
+
object?: UploadModelAssetResponseBody$.Inbound | undefined;
|
|
184
180
|
};
|
|
185
181
|
|
|
186
|
-
export const inboundSchema: z.ZodType<
|
|
182
|
+
export const inboundSchema: z.ZodType<UploadModelAssetResponse, z.ZodTypeDef, Inbound> = z
|
|
187
183
|
.object({
|
|
188
184
|
ContentType: z.string(),
|
|
189
185
|
StatusCode: z.number().int(),
|
|
190
186
|
RawResponse: z.instanceof(Response),
|
|
191
|
-
object: z.lazy(() =>
|
|
187
|
+
object: z.lazy(() => UploadModelAssetResponseBody$.inboundSchema).optional(),
|
|
192
188
|
})
|
|
193
189
|
.transform((v) => {
|
|
194
190
|
return {
|
|
@@ -203,17 +199,17 @@ export namespace PostModels3dUploadResponse$ {
|
|
|
203
199
|
ContentType: string;
|
|
204
200
|
StatusCode: number;
|
|
205
201
|
RawResponse: never;
|
|
206
|
-
object?:
|
|
202
|
+
object?: UploadModelAssetResponseBody$.Outbound | undefined;
|
|
207
203
|
};
|
|
208
204
|
|
|
209
|
-
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef,
|
|
205
|
+
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UploadModelAssetResponse> = z
|
|
210
206
|
.object({
|
|
211
207
|
contentType: z.string(),
|
|
212
208
|
statusCode: z.number().int(),
|
|
213
209
|
rawResponse: z.instanceof(Response).transform(() => {
|
|
214
210
|
throw new Error("Response cannot be serialized");
|
|
215
211
|
}),
|
|
216
|
-
object: z.lazy(() =>
|
|
212
|
+
object: z.lazy(() => UploadModelAssetResponseBody$.outboundSchema).optional(),
|
|
217
213
|
})
|
|
218
214
|
.transform((v) => {
|
|
219
215
|
return {
|