@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
package/src/sdk/generation.ts
CHANGED
|
@@ -120,33 +120,30 @@ export class Generation extends ClientSDK {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* Create LCM Generation
|
|
124
124
|
*
|
|
125
125
|
* @remarks
|
|
126
|
-
* This endpoint
|
|
126
|
+
* This endpoint will generate a LCM image generation.
|
|
127
127
|
*/
|
|
128
|
-
async
|
|
129
|
-
|
|
128
|
+
async createLCMGeneration(
|
|
129
|
+
input: operations.CreateLCMGenerationRequestBody | undefined,
|
|
130
130
|
options?: RequestOptions
|
|
131
|
-
): Promise<operations.
|
|
132
|
-
const input$: operations.DeleteGenerationByIdRequest = {
|
|
133
|
-
id: id,
|
|
134
|
-
};
|
|
131
|
+
): Promise<operations.CreateLCMGenerationResponse> {
|
|
135
132
|
const headers$ = new Headers();
|
|
136
133
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
134
|
+
headers$.set("Content-Type", "application/json");
|
|
137
135
|
headers$.set("Accept", "application/json");
|
|
138
136
|
|
|
139
137
|
const payload$ = schemas$.parse(
|
|
140
|
-
input
|
|
141
|
-
(value$) =>
|
|
138
|
+
input,
|
|
139
|
+
(value$) =>
|
|
140
|
+
operations.CreateLCMGenerationRequestBody$.outboundSchema.optional().parse(value$),
|
|
142
141
|
"Input validation failed"
|
|
143
142
|
);
|
|
144
|
-
const body$ =
|
|
143
|
+
const body$ =
|
|
144
|
+
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
|
|
145
145
|
|
|
146
|
-
const
|
|
147
|
-
id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
148
|
-
};
|
|
149
|
-
const path$ = this.templateURLComponent("/generations/{id}")(pathParams$);
|
|
146
|
+
const path$ = this.templateURLComponent("/generations-lcm")();
|
|
150
147
|
|
|
151
148
|
const query$ = "";
|
|
152
149
|
|
|
@@ -159,7 +156,7 @@ export class Generation extends ClientSDK {
|
|
|
159
156
|
security$ = {};
|
|
160
157
|
}
|
|
161
158
|
const context = {
|
|
162
|
-
operationID: "
|
|
159
|
+
operationID: "createLCMGeneration",
|
|
163
160
|
oAuth2Scopes: [],
|
|
164
161
|
securitySource: this.options$.bearerAuth,
|
|
165
162
|
};
|
|
@@ -169,7 +166,7 @@ export class Generation extends ClientSDK {
|
|
|
169
166
|
const request = this.createRequest$(
|
|
170
167
|
{
|
|
171
168
|
security: securitySettings$,
|
|
172
|
-
method: "
|
|
169
|
+
method: "POST",
|
|
173
170
|
path: path$,
|
|
174
171
|
headers: headers$,
|
|
175
172
|
query: query$,
|
|
@@ -191,7 +188,7 @@ export class Generation extends ClientSDK {
|
|
|
191
188
|
const result = schemas$.parse(
|
|
192
189
|
responseBody,
|
|
193
190
|
(val$) => {
|
|
194
|
-
return operations.
|
|
191
|
+
return operations.CreateLCMGenerationResponse$.inboundSchema.parse({
|
|
195
192
|
...responseFields$,
|
|
196
193
|
object: val$,
|
|
197
194
|
});
|
|
@@ -206,36 +203,32 @@ export class Generation extends ClientSDK {
|
|
|
206
203
|
}
|
|
207
204
|
|
|
208
205
|
/**
|
|
209
|
-
*
|
|
206
|
+
* Create SVD Motion Generation
|
|
210
207
|
*
|
|
211
208
|
* @remarks
|
|
212
|
-
* This endpoint
|
|
209
|
+
* This endpoint will generate a SVD motion generation.
|
|
213
210
|
*/
|
|
214
|
-
async
|
|
215
|
-
|
|
216
|
-
requestBody?: operations.DeleteGenerationsTextureIdRequestBody | undefined,
|
|
211
|
+
async createSVDMotionGeneration(
|
|
212
|
+
input: operations.CreateSVDMotionGenerationRequestBody | undefined,
|
|
217
213
|
options?: RequestOptions
|
|
218
|
-
): Promise<operations.
|
|
219
|
-
const input$: operations.DeleteGenerationsTextureIdRequest = {
|
|
220
|
-
id: id,
|
|
221
|
-
requestBody: requestBody,
|
|
222
|
-
};
|
|
214
|
+
): Promise<operations.CreateSVDMotionGenerationResponse> {
|
|
223
215
|
const headers$ = new Headers();
|
|
224
216
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
225
217
|
headers$.set("Content-Type", "application/json");
|
|
226
218
|
headers$.set("Accept", "application/json");
|
|
227
219
|
|
|
228
220
|
const payload$ = schemas$.parse(
|
|
229
|
-
input
|
|
230
|
-
(value$) =>
|
|
221
|
+
input,
|
|
222
|
+
(value$) =>
|
|
223
|
+
operations.CreateSVDMotionGenerationRequestBody$.outboundSchema
|
|
224
|
+
.optional()
|
|
225
|
+
.parse(value$),
|
|
231
226
|
"Input validation failed"
|
|
232
227
|
);
|
|
233
|
-
const body$ =
|
|
228
|
+
const body$ =
|
|
229
|
+
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
|
|
234
230
|
|
|
235
|
-
const
|
|
236
|
-
id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
237
|
-
};
|
|
238
|
-
const path$ = this.templateURLComponent("/generations-texture/{id}")(pathParams$);
|
|
231
|
+
const path$ = this.templateURLComponent("/generations-motion-svd")();
|
|
239
232
|
|
|
240
233
|
const query$ = "";
|
|
241
234
|
|
|
@@ -248,7 +241,7 @@ export class Generation extends ClientSDK {
|
|
|
248
241
|
security$ = {};
|
|
249
242
|
}
|
|
250
243
|
const context = {
|
|
251
|
-
operationID: "
|
|
244
|
+
operationID: "createSVDMotionGeneration",
|
|
252
245
|
oAuth2Scopes: [],
|
|
253
246
|
securitySource: this.options$.bearerAuth,
|
|
254
247
|
};
|
|
@@ -258,7 +251,7 @@ export class Generation extends ClientSDK {
|
|
|
258
251
|
const request = this.createRequest$(
|
|
259
252
|
{
|
|
260
253
|
security: securitySettings$,
|
|
261
|
-
method: "
|
|
254
|
+
method: "POST",
|
|
262
255
|
path: path$,
|
|
263
256
|
headers: headers$,
|
|
264
257
|
query: query$,
|
|
@@ -280,7 +273,7 @@ export class Generation extends ClientSDK {
|
|
|
280
273
|
const result = schemas$.parse(
|
|
281
274
|
responseBody,
|
|
282
275
|
(val$) => {
|
|
283
|
-
return operations.
|
|
276
|
+
return operations.CreateSVDMotionGenerationResponse$.inboundSchema.parse({
|
|
284
277
|
...responseFields$,
|
|
285
278
|
object: val$,
|
|
286
279
|
});
|
|
@@ -295,33 +288,32 @@ export class Generation extends ClientSDK {
|
|
|
295
288
|
}
|
|
296
289
|
|
|
297
290
|
/**
|
|
298
|
-
*
|
|
291
|
+
* Create Texture Generation
|
|
299
292
|
*
|
|
300
293
|
* @remarks
|
|
301
|
-
* This endpoint will
|
|
294
|
+
* This endpoint will generate a texture generation.
|
|
302
295
|
*/
|
|
303
|
-
async
|
|
304
|
-
|
|
296
|
+
async createTextureGeneration(
|
|
297
|
+
input: operations.CreateTextureGenerationRequestBody | undefined,
|
|
305
298
|
options?: RequestOptions
|
|
306
|
-
): Promise<operations.
|
|
307
|
-
const input$: operations.GetGenerationByIdRequest = {
|
|
308
|
-
id: id,
|
|
309
|
-
};
|
|
299
|
+
): Promise<operations.CreateTextureGenerationResponse> {
|
|
310
300
|
const headers$ = new Headers();
|
|
311
301
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
302
|
+
headers$.set("Content-Type", "application/json");
|
|
312
303
|
headers$.set("Accept", "application/json");
|
|
313
304
|
|
|
314
305
|
const payload$ = schemas$.parse(
|
|
315
|
-
input
|
|
316
|
-
(value$) =>
|
|
306
|
+
input,
|
|
307
|
+
(value$) =>
|
|
308
|
+
operations.CreateTextureGenerationRequestBody$.outboundSchema
|
|
309
|
+
.optional()
|
|
310
|
+
.parse(value$),
|
|
317
311
|
"Input validation failed"
|
|
318
312
|
);
|
|
319
|
-
const body$ =
|
|
313
|
+
const body$ =
|
|
314
|
+
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
|
|
320
315
|
|
|
321
|
-
const
|
|
322
|
-
id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
323
|
-
};
|
|
324
|
-
const path$ = this.templateURLComponent("/generations/{id}")(pathParams$);
|
|
316
|
+
const path$ = this.templateURLComponent("/generations-texture")();
|
|
325
317
|
|
|
326
318
|
const query$ = "";
|
|
327
319
|
|
|
@@ -334,7 +326,7 @@ export class Generation extends ClientSDK {
|
|
|
334
326
|
security$ = {};
|
|
335
327
|
}
|
|
336
328
|
const context = {
|
|
337
|
-
operationID: "
|
|
329
|
+
operationID: "createTextureGeneration",
|
|
338
330
|
oAuth2Scopes: [],
|
|
339
331
|
securitySource: this.options$.bearerAuth,
|
|
340
332
|
};
|
|
@@ -344,7 +336,7 @@ export class Generation extends ClientSDK {
|
|
|
344
336
|
const request = this.createRequest$(
|
|
345
337
|
{
|
|
346
338
|
security: securitySettings$,
|
|
347
|
-
method: "
|
|
339
|
+
method: "POST",
|
|
348
340
|
path: path$,
|
|
349
341
|
headers: headers$,
|
|
350
342
|
query: query$,
|
|
@@ -366,7 +358,7 @@ export class Generation extends ClientSDK {
|
|
|
366
358
|
const result = schemas$.parse(
|
|
367
359
|
responseBody,
|
|
368
360
|
(val$) => {
|
|
369
|
-
return operations.
|
|
361
|
+
return operations.CreateTextureGenerationResponse$.inboundSchema.parse({
|
|
370
362
|
...responseFields$,
|
|
371
363
|
object: val$,
|
|
372
364
|
});
|
|
@@ -381,21 +373,17 @@ export class Generation extends ClientSDK {
|
|
|
381
373
|
}
|
|
382
374
|
|
|
383
375
|
/**
|
|
384
|
-
*
|
|
376
|
+
* Delete a Single Generation
|
|
385
377
|
*
|
|
386
378
|
* @remarks
|
|
387
|
-
* This endpoint
|
|
379
|
+
* This endpoint deletes a specific generation
|
|
388
380
|
*/
|
|
389
|
-
async
|
|
390
|
-
|
|
391
|
-
limit?: number | undefined,
|
|
392
|
-
offset?: number | undefined,
|
|
381
|
+
async deleteGenerationById(
|
|
382
|
+
id: string,
|
|
393
383
|
options?: RequestOptions
|
|
394
|
-
): Promise<operations.
|
|
395
|
-
const input$: operations.
|
|
396
|
-
|
|
397
|
-
limit: limit,
|
|
398
|
-
offset: offset,
|
|
384
|
+
): Promise<operations.DeleteGenerationByIdResponse> {
|
|
385
|
+
const input$: operations.DeleteGenerationByIdRequest = {
|
|
386
|
+
id: id,
|
|
399
387
|
};
|
|
400
388
|
const headers$ = new Headers();
|
|
401
389
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
@@ -403,25 +391,17 @@ export class Generation extends ClientSDK {
|
|
|
403
391
|
|
|
404
392
|
const payload$ = schemas$.parse(
|
|
405
393
|
input$,
|
|
406
|
-
(value$) => operations.
|
|
394
|
+
(value$) => operations.DeleteGenerationByIdRequest$.outboundSchema.parse(value$),
|
|
407
395
|
"Input validation failed"
|
|
408
396
|
);
|
|
409
397
|
const body$ = null;
|
|
410
398
|
|
|
411
399
|
const pathParams$ = {
|
|
412
|
-
|
|
413
|
-
explode: false,
|
|
414
|
-
charEncoding: "percent",
|
|
415
|
-
}),
|
|
400
|
+
id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
416
401
|
};
|
|
417
|
-
const path$ = this.templateURLComponent("/generations/
|
|
402
|
+
const path$ = this.templateURLComponent("/generations/{id}")(pathParams$);
|
|
418
403
|
|
|
419
|
-
const query$ =
|
|
420
|
-
enc$.encodeForm("limit", payload$.limit, { explode: true, charEncoding: "percent" }),
|
|
421
|
-
enc$.encodeForm("offset", payload$.offset, { explode: true, charEncoding: "percent" }),
|
|
422
|
-
]
|
|
423
|
-
.filter(Boolean)
|
|
424
|
-
.join("&");
|
|
404
|
+
const query$ = "";
|
|
425
405
|
|
|
426
406
|
let security$;
|
|
427
407
|
if (typeof this.options$.bearerAuth === "function") {
|
|
@@ -432,7 +412,7 @@ export class Generation extends ClientSDK {
|
|
|
432
412
|
security$ = {};
|
|
433
413
|
}
|
|
434
414
|
const context = {
|
|
435
|
-
operationID: "
|
|
415
|
+
operationID: "deleteGenerationById",
|
|
436
416
|
oAuth2Scopes: [],
|
|
437
417
|
securitySource: this.options$.bearerAuth,
|
|
438
418
|
};
|
|
@@ -442,7 +422,7 @@ export class Generation extends ClientSDK {
|
|
|
442
422
|
const request = this.createRequest$(
|
|
443
423
|
{
|
|
444
424
|
security: securitySettings$,
|
|
445
|
-
method: "
|
|
425
|
+
method: "DELETE",
|
|
446
426
|
path: path$,
|
|
447
427
|
headers: headers$,
|
|
448
428
|
query: query$,
|
|
@@ -464,7 +444,7 @@ export class Generation extends ClientSDK {
|
|
|
464
444
|
const result = schemas$.parse(
|
|
465
445
|
responseBody,
|
|
466
446
|
(val$) => {
|
|
467
|
-
return operations.
|
|
447
|
+
return operations.DeleteGenerationByIdResponse$.inboundSchema.parse({
|
|
468
448
|
...responseFields$,
|
|
469
449
|
object: val$,
|
|
470
450
|
});
|
|
@@ -479,30 +459,36 @@ export class Generation extends ClientSDK {
|
|
|
479
459
|
}
|
|
480
460
|
|
|
481
461
|
/**
|
|
482
|
-
*
|
|
462
|
+
* Delete Texture Generation by ID
|
|
483
463
|
*
|
|
484
464
|
* @remarks
|
|
485
|
-
* This endpoint
|
|
465
|
+
* This endpoint deletes the specific texture generation.
|
|
486
466
|
*/
|
|
487
|
-
async
|
|
488
|
-
|
|
467
|
+
async deleteTextureGenerationById(
|
|
468
|
+
id: string,
|
|
469
|
+
requestBody?: operations.DeleteTextureGenerationByIdRequestBody | undefined,
|
|
489
470
|
options?: RequestOptions
|
|
490
|
-
): Promise<operations.
|
|
471
|
+
): Promise<operations.DeleteTextureGenerationByIdResponse> {
|
|
472
|
+
const input$: operations.DeleteTextureGenerationByIdRequest = {
|
|
473
|
+
id: id,
|
|
474
|
+
requestBody: requestBody,
|
|
475
|
+
};
|
|
491
476
|
const headers$ = new Headers();
|
|
492
477
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
493
478
|
headers$.set("Content-Type", "application/json");
|
|
494
479
|
headers$.set("Accept", "application/json");
|
|
495
480
|
|
|
496
481
|
const payload$ = schemas$.parse(
|
|
497
|
-
input
|
|
498
|
-
(value$) =>
|
|
499
|
-
operations.PostGenerationsLcmRequestBody$.outboundSchema.optional().parse(value$),
|
|
482
|
+
input$,
|
|
483
|
+
(value$) => operations.DeleteTextureGenerationByIdRequest$.outboundSchema.parse(value$),
|
|
500
484
|
"Input validation failed"
|
|
501
485
|
);
|
|
502
|
-
const body$ =
|
|
503
|
-
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
|
|
486
|
+
const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
|
|
504
487
|
|
|
505
|
-
const
|
|
488
|
+
const pathParams$ = {
|
|
489
|
+
id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
490
|
+
};
|
|
491
|
+
const path$ = this.templateURLComponent("/generations-texture/{id}")(pathParams$);
|
|
506
492
|
|
|
507
493
|
const query$ = "";
|
|
508
494
|
|
|
@@ -515,7 +501,7 @@ export class Generation extends ClientSDK {
|
|
|
515
501
|
security$ = {};
|
|
516
502
|
}
|
|
517
503
|
const context = {
|
|
518
|
-
operationID: "
|
|
504
|
+
operationID: "deleteTextureGenerationById",
|
|
519
505
|
oAuth2Scopes: [],
|
|
520
506
|
securitySource: this.options$.bearerAuth,
|
|
521
507
|
};
|
|
@@ -525,7 +511,7 @@ export class Generation extends ClientSDK {
|
|
|
525
511
|
const request = this.createRequest$(
|
|
526
512
|
{
|
|
527
513
|
security: securitySettings$,
|
|
528
|
-
method: "
|
|
514
|
+
method: "DELETE",
|
|
529
515
|
path: path$,
|
|
530
516
|
headers: headers$,
|
|
531
517
|
query: query$,
|
|
@@ -547,7 +533,7 @@ export class Generation extends ClientSDK {
|
|
|
547
533
|
const result = schemas$.parse(
|
|
548
534
|
responseBody,
|
|
549
535
|
(val$) => {
|
|
550
|
-
return operations.
|
|
536
|
+
return operations.DeleteTextureGenerationByIdResponse$.inboundSchema.parse({
|
|
551
537
|
...responseFields$,
|
|
552
538
|
object: val$,
|
|
553
539
|
});
|
|
@@ -562,32 +548,33 @@ export class Generation extends ClientSDK {
|
|
|
562
548
|
}
|
|
563
549
|
|
|
564
550
|
/**
|
|
565
|
-
*
|
|
551
|
+
* Get a Single Generation
|
|
566
552
|
*
|
|
567
553
|
* @remarks
|
|
568
|
-
* This endpoint will
|
|
554
|
+
* This endpoint will provide information about a specific generation
|
|
569
555
|
*/
|
|
570
|
-
async
|
|
571
|
-
|
|
556
|
+
async getGenerationById(
|
|
557
|
+
id: string,
|
|
572
558
|
options?: RequestOptions
|
|
573
|
-
): Promise<operations.
|
|
559
|
+
): Promise<operations.GetGenerationByIdResponse> {
|
|
560
|
+
const input$: operations.GetGenerationByIdRequest = {
|
|
561
|
+
id: id,
|
|
562
|
+
};
|
|
574
563
|
const headers$ = new Headers();
|
|
575
564
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
576
|
-
headers$.set("Content-Type", "application/json");
|
|
577
565
|
headers$.set("Accept", "application/json");
|
|
578
566
|
|
|
579
567
|
const payload$ = schemas$.parse(
|
|
580
|
-
input
|
|
581
|
-
(value$) =>
|
|
582
|
-
operations.PostGenerationsMotionSvdRequestBody$.outboundSchema
|
|
583
|
-
.optional()
|
|
584
|
-
.parse(value$),
|
|
568
|
+
input$,
|
|
569
|
+
(value$) => operations.GetGenerationByIdRequest$.outboundSchema.parse(value$),
|
|
585
570
|
"Input validation failed"
|
|
586
571
|
);
|
|
587
|
-
const body$ =
|
|
588
|
-
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
|
|
572
|
+
const body$ = null;
|
|
589
573
|
|
|
590
|
-
const
|
|
574
|
+
const pathParams$ = {
|
|
575
|
+
id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
|
|
576
|
+
};
|
|
577
|
+
const path$ = this.templateURLComponent("/generations/{id}")(pathParams$);
|
|
591
578
|
|
|
592
579
|
const query$ = "";
|
|
593
580
|
|
|
@@ -600,7 +587,7 @@ export class Generation extends ClientSDK {
|
|
|
600
587
|
security$ = {};
|
|
601
588
|
}
|
|
602
589
|
const context = {
|
|
603
|
-
operationID: "
|
|
590
|
+
operationID: "getGenerationById",
|
|
604
591
|
oAuth2Scopes: [],
|
|
605
592
|
securitySource: this.options$.bearerAuth,
|
|
606
593
|
};
|
|
@@ -610,7 +597,7 @@ export class Generation extends ClientSDK {
|
|
|
610
597
|
const request = this.createRequest$(
|
|
611
598
|
{
|
|
612
599
|
security: securitySettings$,
|
|
613
|
-
method: "
|
|
600
|
+
method: "GET",
|
|
614
601
|
path: path$,
|
|
615
602
|
headers: headers$,
|
|
616
603
|
query: query$,
|
|
@@ -632,7 +619,7 @@ export class Generation extends ClientSDK {
|
|
|
632
619
|
const result = schemas$.parse(
|
|
633
620
|
responseBody,
|
|
634
621
|
(val$) => {
|
|
635
|
-
return operations.
|
|
622
|
+
return operations.GetGenerationByIdResponse$.inboundSchema.parse({
|
|
636
623
|
...responseFields$,
|
|
637
624
|
object: val$,
|
|
638
625
|
});
|
|
@@ -647,34 +634,47 @@ export class Generation extends ClientSDK {
|
|
|
647
634
|
}
|
|
648
635
|
|
|
649
636
|
/**
|
|
650
|
-
*
|
|
637
|
+
* Get generations by user ID
|
|
651
638
|
*
|
|
652
639
|
* @remarks
|
|
653
|
-
* This endpoint
|
|
640
|
+
* This endpoint returns all generations by a specific user
|
|
654
641
|
*/
|
|
655
|
-
async
|
|
656
|
-
|
|
642
|
+
async getGenerationsByUserId(
|
|
643
|
+
userId: string,
|
|
644
|
+
limit?: number | undefined,
|
|
645
|
+
offset?: number | undefined,
|
|
657
646
|
options?: RequestOptions
|
|
658
|
-
): Promise<operations.
|
|
647
|
+
): Promise<operations.GetGenerationsByUserIdResponse> {
|
|
648
|
+
const input$: operations.GetGenerationsByUserIdRequest = {
|
|
649
|
+
userId: userId,
|
|
650
|
+
limit: limit,
|
|
651
|
+
offset: offset,
|
|
652
|
+
};
|
|
659
653
|
const headers$ = new Headers();
|
|
660
654
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
661
|
-
headers$.set("Content-Type", "application/json");
|
|
662
655
|
headers$.set("Accept", "application/json");
|
|
663
656
|
|
|
664
657
|
const payload$ = schemas$.parse(
|
|
665
|
-
input
|
|
666
|
-
(value$) =>
|
|
667
|
-
operations.PostGenerationsTextureRequestBody$.outboundSchema
|
|
668
|
-
.optional()
|
|
669
|
-
.parse(value$),
|
|
658
|
+
input$,
|
|
659
|
+
(value$) => operations.GetGenerationsByUserIdRequest$.outboundSchema.parse(value$),
|
|
670
660
|
"Input validation failed"
|
|
671
661
|
);
|
|
672
|
-
const body$ =
|
|
673
|
-
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
|
|
662
|
+
const body$ = null;
|
|
674
663
|
|
|
675
|
-
const
|
|
664
|
+
const pathParams$ = {
|
|
665
|
+
userId: enc$.encodeSimple("userId", payload$.userId, {
|
|
666
|
+
explode: false,
|
|
667
|
+
charEncoding: "percent",
|
|
668
|
+
}),
|
|
669
|
+
};
|
|
670
|
+
const path$ = this.templateURLComponent("/generations/user/{userId}")(pathParams$);
|
|
676
671
|
|
|
677
|
-
const query$ =
|
|
672
|
+
const query$ = [
|
|
673
|
+
enc$.encodeForm("limit", payload$.limit, { explode: true, charEncoding: "percent" }),
|
|
674
|
+
enc$.encodeForm("offset", payload$.offset, { explode: true, charEncoding: "percent" }),
|
|
675
|
+
]
|
|
676
|
+
.filter(Boolean)
|
|
677
|
+
.join("&");
|
|
678
678
|
|
|
679
679
|
let security$;
|
|
680
680
|
if (typeof this.options$.bearerAuth === "function") {
|
|
@@ -685,7 +685,7 @@ export class Generation extends ClientSDK {
|
|
|
685
685
|
security$ = {};
|
|
686
686
|
}
|
|
687
687
|
const context = {
|
|
688
|
-
operationID: "
|
|
688
|
+
operationID: "getGenerationsByUserId",
|
|
689
689
|
oAuth2Scopes: [],
|
|
690
690
|
securitySource: this.options$.bearerAuth,
|
|
691
691
|
};
|
|
@@ -695,7 +695,7 @@ export class Generation extends ClientSDK {
|
|
|
695
695
|
const request = this.createRequest$(
|
|
696
696
|
{
|
|
697
697
|
security: securitySettings$,
|
|
698
|
-
method: "
|
|
698
|
+
method: "GET",
|
|
699
699
|
path: path$,
|
|
700
700
|
headers: headers$,
|
|
701
701
|
query: query$,
|
|
@@ -717,7 +717,7 @@ export class Generation extends ClientSDK {
|
|
|
717
717
|
const result = schemas$.parse(
|
|
718
718
|
responseBody,
|
|
719
719
|
(val$) => {
|
|
720
|
-
return operations.
|
|
720
|
+
return operations.GetGenerationsByUserIdResponse$.inboundSchema.parse({
|
|
721
721
|
...responseFields$,
|
|
722
722
|
object: val$,
|
|
723
723
|
});
|
|
@@ -732,15 +732,15 @@ export class Generation extends ClientSDK {
|
|
|
732
732
|
}
|
|
733
733
|
|
|
734
734
|
/**
|
|
735
|
-
* Perform
|
|
735
|
+
* Perform Alchemy Upscale on a LCM image
|
|
736
736
|
*
|
|
737
737
|
* @remarks
|
|
738
|
-
* This endpoint will perform
|
|
738
|
+
* This endpoint will perform Alchemy Upscale on a LCM image
|
|
739
739
|
*/
|
|
740
|
-
async
|
|
741
|
-
input: operations.
|
|
740
|
+
async performAlchemyUpscaleLCM(
|
|
741
|
+
input: operations.PerformAlchemyUpscaleLCMRequestBody | undefined,
|
|
742
742
|
options?: RequestOptions
|
|
743
|
-
): Promise<operations.
|
|
743
|
+
): Promise<operations.PerformAlchemyUpscaleLCMResponse> {
|
|
744
744
|
const headers$ = new Headers();
|
|
745
745
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
746
746
|
headers$.set("Content-Type", "application/json");
|
|
@@ -749,13 +749,15 @@ export class Generation extends ClientSDK {
|
|
|
749
749
|
const payload$ = schemas$.parse(
|
|
750
750
|
input,
|
|
751
751
|
(value$) =>
|
|
752
|
-
operations.
|
|
752
|
+
operations.PerformAlchemyUpscaleLCMRequestBody$.outboundSchema
|
|
753
|
+
.optional()
|
|
754
|
+
.parse(value$),
|
|
753
755
|
"Input validation failed"
|
|
754
756
|
);
|
|
755
757
|
const body$ =
|
|
756
758
|
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
|
|
757
759
|
|
|
758
|
-
const path$ = this.templateURLComponent("/lcm-
|
|
760
|
+
const path$ = this.templateURLComponent("/lcm-upscale")();
|
|
759
761
|
|
|
760
762
|
const query$ = "";
|
|
761
763
|
|
|
@@ -768,7 +770,7 @@ export class Generation extends ClientSDK {
|
|
|
768
770
|
security$ = {};
|
|
769
771
|
}
|
|
770
772
|
const context = {
|
|
771
|
-
operationID: "
|
|
773
|
+
operationID: "performAlchemyUpscaleLCM",
|
|
772
774
|
oAuth2Scopes: [],
|
|
773
775
|
securitySource: this.options$.bearerAuth,
|
|
774
776
|
};
|
|
@@ -800,7 +802,7 @@ export class Generation extends ClientSDK {
|
|
|
800
802
|
const result = schemas$.parse(
|
|
801
803
|
responseBody,
|
|
802
804
|
(val$) => {
|
|
803
|
-
return operations.
|
|
805
|
+
return operations.PerformAlchemyUpscaleLCMResponse$.inboundSchema.parse({
|
|
804
806
|
...responseFields$,
|
|
805
807
|
object: val$,
|
|
806
808
|
});
|
|
@@ -815,15 +817,15 @@ export class Generation extends ClientSDK {
|
|
|
815
817
|
}
|
|
816
818
|
|
|
817
819
|
/**
|
|
818
|
-
* Perform
|
|
820
|
+
* Perform inpainting on a LCM image
|
|
819
821
|
*
|
|
820
822
|
* @remarks
|
|
821
|
-
* This endpoint will perform
|
|
823
|
+
* This endpoint will perform a inpainting on a LCM image
|
|
822
824
|
*/
|
|
823
|
-
async
|
|
824
|
-
input: operations.
|
|
825
|
+
async performInpaintingLCM(
|
|
826
|
+
input: operations.PerformInpaintingLCMRequestBody | undefined,
|
|
825
827
|
options?: RequestOptions
|
|
826
|
-
): Promise<operations.
|
|
828
|
+
): Promise<operations.PerformInpaintingLCMResponse> {
|
|
827
829
|
const headers$ = new Headers();
|
|
828
830
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
829
831
|
headers$.set("Content-Type", "application/json");
|
|
@@ -832,13 +834,13 @@ export class Generation extends ClientSDK {
|
|
|
832
834
|
const payload$ = schemas$.parse(
|
|
833
835
|
input,
|
|
834
836
|
(value$) =>
|
|
835
|
-
operations.
|
|
837
|
+
operations.PerformInpaintingLCMRequestBody$.outboundSchema.optional().parse(value$),
|
|
836
838
|
"Input validation failed"
|
|
837
839
|
);
|
|
838
840
|
const body$ =
|
|
839
841
|
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
|
|
840
842
|
|
|
841
|
-
const path$ = this.templateURLComponent("/lcm-
|
|
843
|
+
const path$ = this.templateURLComponent("/lcm-inpainting")();
|
|
842
844
|
|
|
843
845
|
const query$ = "";
|
|
844
846
|
|
|
@@ -851,7 +853,7 @@ export class Generation extends ClientSDK {
|
|
|
851
853
|
security$ = {};
|
|
852
854
|
}
|
|
853
855
|
const context = {
|
|
854
|
-
operationID: "
|
|
856
|
+
operationID: "performInpaintingLCM",
|
|
855
857
|
oAuth2Scopes: [],
|
|
856
858
|
securitySource: this.options$.bearerAuth,
|
|
857
859
|
};
|
|
@@ -883,7 +885,7 @@ export class Generation extends ClientSDK {
|
|
|
883
885
|
const result = schemas$.parse(
|
|
884
886
|
responseBody,
|
|
885
887
|
(val$) => {
|
|
886
|
-
return operations.
|
|
888
|
+
return operations.PerformInpaintingLCMResponse$.inboundSchema.parse({
|
|
887
889
|
...responseFields$,
|
|
888
890
|
object: val$,
|
|
889
891
|
});
|
|
@@ -898,15 +900,15 @@ export class Generation extends ClientSDK {
|
|
|
898
900
|
}
|
|
899
901
|
|
|
900
902
|
/**
|
|
901
|
-
* Perform
|
|
903
|
+
* Perform instant refine on a LCM image
|
|
902
904
|
*
|
|
903
905
|
* @remarks
|
|
904
|
-
* This endpoint will perform
|
|
906
|
+
* This endpoint will perform instant refine on a LCM image
|
|
905
907
|
*/
|
|
906
|
-
async
|
|
907
|
-
input: operations.
|
|
908
|
+
async performInstantRefine(
|
|
909
|
+
input: operations.PerformInstantRefineRequestBody | undefined,
|
|
908
910
|
options?: RequestOptions
|
|
909
|
-
): Promise<operations.
|
|
911
|
+
): Promise<operations.PerformInstantRefineResponse> {
|
|
910
912
|
const headers$ = new Headers();
|
|
911
913
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
912
914
|
headers$.set("Content-Type", "application/json");
|
|
@@ -915,13 +917,13 @@ export class Generation extends ClientSDK {
|
|
|
915
917
|
const payload$ = schemas$.parse(
|
|
916
918
|
input,
|
|
917
919
|
(value$) =>
|
|
918
|
-
operations.
|
|
920
|
+
operations.PerformInstantRefineRequestBody$.outboundSchema.optional().parse(value$),
|
|
919
921
|
"Input validation failed"
|
|
920
922
|
);
|
|
921
923
|
const body$ =
|
|
922
924
|
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
|
|
923
925
|
|
|
924
|
-
const path$ = this.templateURLComponent("/lcm-
|
|
926
|
+
const path$ = this.templateURLComponent("/lcm-instant-refine")();
|
|
925
927
|
|
|
926
928
|
const query$ = "";
|
|
927
929
|
|
|
@@ -934,7 +936,7 @@ export class Generation extends ClientSDK {
|
|
|
934
936
|
security$ = {};
|
|
935
937
|
}
|
|
936
938
|
const context = {
|
|
937
|
-
operationID: "
|
|
939
|
+
operationID: "performInstantRefine",
|
|
938
940
|
oAuth2Scopes: [],
|
|
939
941
|
securitySource: this.options$.bearerAuth,
|
|
940
942
|
};
|
|
@@ -966,7 +968,7 @@ export class Generation extends ClientSDK {
|
|
|
966
968
|
const result = schemas$.parse(
|
|
967
969
|
responseBody,
|
|
968
970
|
(val$) => {
|
|
969
|
-
return operations.
|
|
971
|
+
return operations.PerformInstantRefineResponse$.inboundSchema.parse({
|
|
970
972
|
...responseFields$,
|
|
971
973
|
object: val$,
|
|
972
974
|
});
|