@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.
Files changed (122) hide show
  1. package/.speakeasy/gen.lock +67 -67
  2. package/README.md +12 -12
  3. package/docs/sdks/element/README.md +4 -4
  4. package/docs/sdks/generation/README.md +76 -76
  5. package/docs/sdks/model/README.md +22 -22
  6. package/docs/sdks/variation/README.md +20 -20
  7. package/lib/config.d.ts +3 -3
  8. package/lib/config.js +3 -3
  9. package/lib/http.d.ts +4 -3
  10. package/lib/http.d.ts.map +1 -1
  11. package/lib/http.js +13 -6
  12. package/lib/http.js.map +1 -1
  13. package/package.json +1 -1
  14. package/sdk/element.d.ts +1 -1
  15. package/sdk/element.d.ts.map +1 -1
  16. package/sdk/element.js +3 -3
  17. package/sdk/element.js.map +1 -1
  18. package/sdk/generation.d.ts +27 -27
  19. package/sdk/generation.d.ts.map +1 -1
  20. package/sdk/generation.js +124 -122
  21. package/sdk/generation.js.map +1 -1
  22. package/sdk/model.d.ts +8 -8
  23. package/sdk/model.d.ts.map +1 -1
  24. package/sdk/model.js +25 -25
  25. package/sdk/model.js.map +1 -1
  26. package/sdk/models/operations/{postgenerationslcm.d.ts → createlcmgeneration.d.ts} +16 -16
  27. package/sdk/models/operations/createlcmgeneration.d.ts.map +1 -0
  28. package/sdk/models/operations/{postgenerationslcm.js → createlcmgeneration.js} +19 -19
  29. package/sdk/models/operations/createlcmgeneration.js.map +1 -0
  30. package/sdk/models/operations/{postgenerationsmotionsvd.d.ts → createsvdmotiongeneration.d.ts} +16 -16
  31. package/sdk/models/operations/createsvdmotiongeneration.d.ts.map +1 -0
  32. package/sdk/models/operations/{postgenerationsmotionsvd.js → createsvdmotiongeneration.js} +19 -21
  33. package/sdk/models/operations/createsvdmotiongeneration.js.map +1 -0
  34. package/sdk/models/operations/{postgenerationstexture.d.ts → createtexturegeneration.d.ts} +16 -16
  35. package/sdk/models/operations/createtexturegeneration.d.ts.map +1 -0
  36. package/sdk/models/operations/{postgenerationstexture.js → createtexturegeneration.js} +19 -19
  37. package/sdk/models/operations/createtexturegeneration.js.map +1 -0
  38. package/sdk/models/operations/{postvariationsunzoom.d.ts → createvariationunzoom.d.ts} +16 -16
  39. package/sdk/models/operations/createvariationunzoom.d.ts.map +1 -0
  40. package/sdk/models/operations/{postvariationsunzoom.js → createvariationunzoom.js} +19 -19
  41. package/sdk/models/operations/createvariationunzoom.js.map +1 -0
  42. package/sdk/models/operations/{deletemodels3did.d.ts → delete3dmodelbyid.d.ts} +23 -23
  43. package/sdk/models/operations/delete3dmodelbyid.d.ts.map +1 -0
  44. package/sdk/models/operations/{deletemodels3did.js → delete3dmodelbyid.js} +29 -27
  45. package/sdk/models/operations/delete3dmodelbyid.js.map +1 -0
  46. package/sdk/models/operations/{deletegenerationstextureid.d.ts → deletetexturegenerationbyid.d.ts} +23 -23
  47. package/sdk/models/operations/deletetexturegenerationbyid.d.ts.map +1 -0
  48. package/sdk/models/operations/{deletegenerationstextureid.js → deletetexturegenerationbyid.js} +28 -26
  49. package/sdk/models/operations/deletetexturegenerationbyid.js.map +1 -0
  50. package/sdk/models/operations/index.d.ts +12 -12
  51. package/sdk/models/operations/index.d.ts.map +1 -1
  52. package/sdk/models/operations/index.js +12 -12
  53. package/sdk/models/operations/index.js.map +1 -1
  54. package/sdk/models/operations/{getelements.d.ts → listelements.d.ts} +12 -12
  55. package/sdk/models/operations/listelements.d.ts.map +1 -0
  56. package/sdk/models/operations/{getelements.js → listelements.js} +14 -14
  57. package/sdk/models/operations/listelements.js.map +1 -0
  58. package/sdk/models/operations/{getplatformmodels.d.ts → listplatformmodels.d.ts} +26 -26
  59. package/sdk/models/operations/listplatformmodels.d.ts.map +1 -0
  60. package/sdk/models/operations/{getplatformmodels.js → listplatformmodels.js} +28 -28
  61. package/sdk/models/operations/listplatformmodels.js.map +1 -0
  62. package/sdk/models/operations/{postlcmupscale.d.ts → performalchemyupscalelcm.d.ts} +23 -23
  63. package/sdk/models/operations/performalchemyupscalelcm.d.ts.map +1 -0
  64. package/sdk/models/operations/{postlcmupscale.js → performalchemyupscalelcm.js} +28 -26
  65. package/sdk/models/operations/performalchemyupscalelcm.js.map +1 -0
  66. package/sdk/models/operations/{postlcminpainting.d.ts → performinpaintinglcm.d.ts} +23 -23
  67. package/sdk/models/operations/performinpaintinglcm.d.ts.map +1 -0
  68. package/sdk/models/operations/{postlcminpainting.js → performinpaintinglcm.js} +26 -26
  69. package/sdk/models/operations/performinpaintinglcm.js.map +1 -0
  70. package/sdk/models/operations/{postlcminstantrefine.d.ts → performinstantrefine.d.ts} +23 -23
  71. package/sdk/models/operations/{postlcminstantrefine.d.ts.map → performinstantrefine.d.ts.map} +1 -1
  72. package/sdk/models/operations/{postlcminstantrefine.js → performinstantrefine.js} +26 -26
  73. package/sdk/models/operations/{postlcminstantrefine.js.map → performinstantrefine.js.map} +1 -1
  74. package/sdk/models/operations/{postmodels3dupload.d.ts → uploadmodelasset.d.ts} +16 -16
  75. package/sdk/models/operations/uploadmodelasset.d.ts.map +1 -0
  76. package/sdk/models/operations/{postmodels3dupload.js → uploadmodelasset.js} +20 -22
  77. package/sdk/models/operations/uploadmodelasset.js.map +1 -0
  78. package/sdk/variation.d.ts +7 -7
  79. package/sdk/variation.d.ts.map +1 -1
  80. package/sdk/variation.js +34 -32
  81. package/sdk/variation.js.map +1 -1
  82. package/src/lib/config.ts +3 -3
  83. package/src/lib/http.ts +21 -9
  84. package/src/sdk/element.ts +3 -3
  85. package/src/sdk/generation.ts +160 -158
  86. package/src/sdk/model.ts +33 -33
  87. package/src/sdk/models/operations/{postgenerationslcm.ts → createlcmgeneration.ts} +39 -35
  88. package/src/sdk/models/operations/{postgenerationsmotionsvd.ts → createsvdmotiongeneration.ts} +34 -33
  89. package/src/sdk/models/operations/{postgenerationstexture.ts → createtexturegeneration.ts} +49 -45
  90. package/src/sdk/models/operations/{postvariationsunzoom.ts → createvariationunzoom.ts} +45 -41
  91. package/src/sdk/models/operations/{deletemodels3did.ts → delete3dmodelbyid.ts} +39 -36
  92. package/src/sdk/models/operations/{deletegenerationstextureid.ts → deletetexturegenerationbyid.ts} +28 -26
  93. package/src/sdk/models/operations/index.ts +12 -12
  94. package/src/sdk/models/operations/{getelements.ts → listelements.ts} +13 -13
  95. package/src/sdk/models/operations/{getplatformmodels.ts → listplatformmodels.ts} +45 -42
  96. package/src/sdk/models/operations/{postlcmupscale.ts → performalchemyupscalelcm.ts} +62 -39
  97. package/src/sdk/models/operations/{postlcminpainting.ts → performinpaintinglcm.ts} +80 -71
  98. package/src/sdk/models/operations/{postlcminstantrefine.ts → performinstantrefine.ts} +26 -26
  99. package/src/sdk/models/operations/{postmodels3dupload.ts → uploadmodelasset.ts} +39 -43
  100. package/src/sdk/variation.ts +44 -42
  101. package/sdk/models/operations/deletegenerationstextureid.d.ts.map +0 -1
  102. package/sdk/models/operations/deletegenerationstextureid.js.map +0 -1
  103. package/sdk/models/operations/deletemodels3did.d.ts.map +0 -1
  104. package/sdk/models/operations/deletemodels3did.js.map +0 -1
  105. package/sdk/models/operations/getelements.d.ts.map +0 -1
  106. package/sdk/models/operations/getelements.js.map +0 -1
  107. package/sdk/models/operations/getplatformmodels.d.ts.map +0 -1
  108. package/sdk/models/operations/getplatformmodels.js.map +0 -1
  109. package/sdk/models/operations/postgenerationslcm.d.ts.map +0 -1
  110. package/sdk/models/operations/postgenerationslcm.js.map +0 -1
  111. package/sdk/models/operations/postgenerationsmotionsvd.d.ts.map +0 -1
  112. package/sdk/models/operations/postgenerationsmotionsvd.js.map +0 -1
  113. package/sdk/models/operations/postgenerationstexture.d.ts.map +0 -1
  114. package/sdk/models/operations/postgenerationstexture.js.map +0 -1
  115. package/sdk/models/operations/postlcminpainting.d.ts.map +0 -1
  116. package/sdk/models/operations/postlcminpainting.js.map +0 -1
  117. package/sdk/models/operations/postlcmupscale.d.ts.map +0 -1
  118. package/sdk/models/operations/postlcmupscale.js.map +0 -1
  119. package/sdk/models/operations/postmodels3dupload.d.ts.map +0 -1
  120. package/sdk/models/operations/postmodels3dupload.js.map +0 -1
  121. package/sdk/models/operations/postvariationsunzoom.d.ts.map +0 -1
  122. package/sdk/models/operations/postvariationsunzoom.js.map +0 -1
package/sdk/generation.js CHANGED
@@ -119,25 +119,20 @@ class Generation extends sdks_1.ClientSDK {
119
119
  }
120
120
  }
121
121
  /**
122
- * Delete a Single Generation
122
+ * Create LCM Generation
123
123
  *
124
124
  * @remarks
125
- * This endpoint deletes a specific generation
125
+ * This endpoint will generate a LCM image generation.
126
126
  */
127
- async deleteGenerationById(id, options) {
127
+ async createLCMGeneration(input, options) {
128
128
  var _a;
129
- const input$ = {
130
- id: id,
131
- };
132
129
  const headers$ = new Headers();
133
130
  headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
131
+ headers$.set("Content-Type", "application/json");
134
132
  headers$.set("Accept", "application/json");
135
- const payload$ = schemas$.parse(input$, (value$) => operations.DeleteGenerationByIdRequest$.outboundSchema.parse(value$), "Input validation failed");
136
- const body$ = null;
137
- const pathParams$ = {
138
- id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
139
- };
140
- const path$ = this.templateURLComponent("/generations/{id}")(pathParams$);
133
+ const payload$ = schemas$.parse(input, (value$) => operations.CreateLCMGenerationRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
134
+ const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
135
+ const path$ = this.templateURLComponent("/generations-lcm")();
141
136
  const query$ = "";
142
137
  let security$;
143
138
  if (typeof this.options$.bearerAuth === "function") {
@@ -150,7 +145,7 @@ class Generation extends sdks_1.ClientSDK {
150
145
  security$ = {};
151
146
  }
152
147
  const context = {
153
- operationID: "deleteGenerationById",
148
+ operationID: "createLCMGeneration",
154
149
  oAuth2Scopes: [],
155
150
  securitySource: this.options$.bearerAuth,
156
151
  };
@@ -158,7 +153,7 @@ class Generation extends sdks_1.ClientSDK {
158
153
  const doOptions = { context, errorCodes: [] };
159
154
  const request = this.createRequest$({
160
155
  security: securitySettings$,
161
- method: "DELETE",
156
+ method: "POST",
162
157
  path: path$,
163
158
  headers: headers$,
164
159
  query: query$,
@@ -173,7 +168,7 @@ class Generation extends sdks_1.ClientSDK {
173
168
  if (this.matchResponse(response, 200, "application/json")) {
174
169
  const responseBody = await response.json();
175
170
  const result = schemas$.parse(responseBody, (val$) => {
176
- return operations.DeleteGenerationByIdResponse$.inboundSchema.parse({
171
+ return operations.CreateLCMGenerationResponse$.inboundSchema.parse({
177
172
  ...responseFields$,
178
173
  object: val$,
179
174
  });
@@ -186,27 +181,22 @@ class Generation extends sdks_1.ClientSDK {
186
181
  }
187
182
  }
188
183
  /**
189
- * Delete Texture Generation by ID
184
+ * Create SVD Motion Generation
190
185
  *
191
186
  * @remarks
192
- * This endpoint deletes the specific texture generation.
187
+ * This endpoint will generate a SVD motion generation.
193
188
  */
194
- async deleteGenerationsTextureId(id, requestBody, options) {
189
+ async createSVDMotionGeneration(input, options) {
195
190
  var _a;
196
- const input$ = {
197
- id: id,
198
- requestBody: requestBody,
199
- };
200
191
  const headers$ = new Headers();
201
192
  headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
202
193
  headers$.set("Content-Type", "application/json");
203
194
  headers$.set("Accept", "application/json");
204
- const payload$ = schemas$.parse(input$, (value$) => operations.DeleteGenerationsTextureIdRequest$.outboundSchema.parse(value$), "Input validation failed");
205
- const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
206
- const pathParams$ = {
207
- id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
208
- };
209
- const path$ = this.templateURLComponent("/generations-texture/{id}")(pathParams$);
195
+ const payload$ = schemas$.parse(input, (value$) => operations.CreateSVDMotionGenerationRequestBody$.outboundSchema
196
+ .optional()
197
+ .parse(value$), "Input validation failed");
198
+ const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
199
+ const path$ = this.templateURLComponent("/generations-motion-svd")();
210
200
  const query$ = "";
211
201
  let security$;
212
202
  if (typeof this.options$.bearerAuth === "function") {
@@ -219,7 +209,7 @@ class Generation extends sdks_1.ClientSDK {
219
209
  security$ = {};
220
210
  }
221
211
  const context = {
222
- operationID: "delete_/generations-texture/{id}",
212
+ operationID: "createSVDMotionGeneration",
223
213
  oAuth2Scopes: [],
224
214
  securitySource: this.options$.bearerAuth,
225
215
  };
@@ -227,7 +217,7 @@ class Generation extends sdks_1.ClientSDK {
227
217
  const doOptions = { context, errorCodes: [] };
228
218
  const request = this.createRequest$({
229
219
  security: securitySettings$,
230
- method: "DELETE",
220
+ method: "POST",
231
221
  path: path$,
232
222
  headers: headers$,
233
223
  query: query$,
@@ -242,7 +232,7 @@ class Generation extends sdks_1.ClientSDK {
242
232
  if (this.matchResponse(response, 200, "application/json")) {
243
233
  const responseBody = await response.json();
244
234
  const result = schemas$.parse(responseBody, (val$) => {
245
- return operations.DeleteGenerationsTextureIdResponse$.inboundSchema.parse({
235
+ return operations.CreateSVDMotionGenerationResponse$.inboundSchema.parse({
246
236
  ...responseFields$,
247
237
  object: val$,
248
238
  });
@@ -255,25 +245,22 @@ class Generation extends sdks_1.ClientSDK {
255
245
  }
256
246
  }
257
247
  /**
258
- * Get a Single Generation
248
+ * Create Texture Generation
259
249
  *
260
250
  * @remarks
261
- * This endpoint will provide information about a specific generation
251
+ * This endpoint will generate a texture generation.
262
252
  */
263
- async getGenerationById(id, options) {
253
+ async createTextureGeneration(input, options) {
264
254
  var _a;
265
- const input$ = {
266
- id: id,
267
- };
268
255
  const headers$ = new Headers();
269
256
  headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
257
+ headers$.set("Content-Type", "application/json");
270
258
  headers$.set("Accept", "application/json");
271
- const payload$ = schemas$.parse(input$, (value$) => operations.GetGenerationByIdRequest$.outboundSchema.parse(value$), "Input validation failed");
272
- const body$ = null;
273
- const pathParams$ = {
274
- id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
275
- };
276
- const path$ = this.templateURLComponent("/generations/{id}")(pathParams$);
259
+ const payload$ = schemas$.parse(input, (value$) => operations.CreateTextureGenerationRequestBody$.outboundSchema
260
+ .optional()
261
+ .parse(value$), "Input validation failed");
262
+ const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
263
+ const path$ = this.templateURLComponent("/generations-texture")();
277
264
  const query$ = "";
278
265
  let security$;
279
266
  if (typeof this.options$.bearerAuth === "function") {
@@ -286,7 +273,7 @@ class Generation extends sdks_1.ClientSDK {
286
273
  security$ = {};
287
274
  }
288
275
  const context = {
289
- operationID: "getGenerationById",
276
+ operationID: "createTextureGeneration",
290
277
  oAuth2Scopes: [],
291
278
  securitySource: this.options$.bearerAuth,
292
279
  };
@@ -294,7 +281,7 @@ class Generation extends sdks_1.ClientSDK {
294
281
  const doOptions = { context, errorCodes: [] };
295
282
  const request = this.createRequest$({
296
283
  security: securitySettings$,
297
- method: "GET",
284
+ method: "POST",
298
285
  path: path$,
299
286
  headers: headers$,
300
287
  query: query$,
@@ -309,7 +296,7 @@ class Generation extends sdks_1.ClientSDK {
309
296
  if (this.matchResponse(response, 200, "application/json")) {
310
297
  const responseBody = await response.json();
311
298
  const result = schemas$.parse(responseBody, (val$) => {
312
- return operations.GetGenerationByIdResponse$.inboundSchema.parse({
299
+ return operations.CreateTextureGenerationResponse$.inboundSchema.parse({
313
300
  ...responseFields$,
314
301
  object: val$,
315
302
  });
@@ -322,36 +309,26 @@ class Generation extends sdks_1.ClientSDK {
322
309
  }
323
310
  }
324
311
  /**
325
- * Get generations by user ID
312
+ * Delete a Single Generation
326
313
  *
327
314
  * @remarks
328
- * This endpoint returns all generations by a specific user
315
+ * This endpoint deletes a specific generation
329
316
  */
330
- async getGenerationsByUserId(userId, limit, offset, options) {
317
+ async deleteGenerationById(id, options) {
331
318
  var _a;
332
319
  const input$ = {
333
- userId: userId,
334
- limit: limit,
335
- offset: offset,
320
+ id: id,
336
321
  };
337
322
  const headers$ = new Headers();
338
323
  headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
339
324
  headers$.set("Accept", "application/json");
340
- const payload$ = schemas$.parse(input$, (value$) => operations.GetGenerationsByUserIdRequest$.outboundSchema.parse(value$), "Input validation failed");
325
+ const payload$ = schemas$.parse(input$, (value$) => operations.DeleteGenerationByIdRequest$.outboundSchema.parse(value$), "Input validation failed");
341
326
  const body$ = null;
342
327
  const pathParams$ = {
343
- userId: enc$.encodeSimple("userId", payload$.userId, {
344
- explode: false,
345
- charEncoding: "percent",
346
- }),
328
+ id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
347
329
  };
348
- const path$ = this.templateURLComponent("/generations/user/{userId}")(pathParams$);
349
- const query$ = [
350
- enc$.encodeForm("limit", payload$.limit, { explode: true, charEncoding: "percent" }),
351
- enc$.encodeForm("offset", payload$.offset, { explode: true, charEncoding: "percent" }),
352
- ]
353
- .filter(Boolean)
354
- .join("&");
330
+ const path$ = this.templateURLComponent("/generations/{id}")(pathParams$);
331
+ const query$ = "";
355
332
  let security$;
356
333
  if (typeof this.options$.bearerAuth === "function") {
357
334
  security$ = { bearerAuth: await this.options$.bearerAuth() };
@@ -363,7 +340,7 @@ class Generation extends sdks_1.ClientSDK {
363
340
  security$ = {};
364
341
  }
365
342
  const context = {
366
- operationID: "getGenerationsByUserId",
343
+ operationID: "deleteGenerationById",
367
344
  oAuth2Scopes: [],
368
345
  securitySource: this.options$.bearerAuth,
369
346
  };
@@ -371,7 +348,7 @@ class Generation extends sdks_1.ClientSDK {
371
348
  const doOptions = { context, errorCodes: [] };
372
349
  const request = this.createRequest$({
373
350
  security: securitySettings$,
374
- method: "GET",
351
+ method: "DELETE",
375
352
  path: path$,
376
353
  headers: headers$,
377
354
  query: query$,
@@ -386,7 +363,7 @@ class Generation extends sdks_1.ClientSDK {
386
363
  if (this.matchResponse(response, 200, "application/json")) {
387
364
  const responseBody = await response.json();
388
365
  const result = schemas$.parse(responseBody, (val$) => {
389
- return operations.GetGenerationsByUserIdResponse$.inboundSchema.parse({
366
+ return operations.DeleteGenerationByIdResponse$.inboundSchema.parse({
390
367
  ...responseFields$,
391
368
  object: val$,
392
369
  });
@@ -399,20 +376,27 @@ class Generation extends sdks_1.ClientSDK {
399
376
  }
400
377
  }
401
378
  /**
402
- * Create LCM Generation
379
+ * Delete Texture Generation by ID
403
380
  *
404
381
  * @remarks
405
- * This endpoint will generate a LCM image generation.
382
+ * This endpoint deletes the specific texture generation.
406
383
  */
407
- async postGenerationsLcm(input, options) {
384
+ async deleteTextureGenerationById(id, requestBody, options) {
408
385
  var _a;
386
+ const input$ = {
387
+ id: id,
388
+ requestBody: requestBody,
389
+ };
409
390
  const headers$ = new Headers();
410
391
  headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
411
392
  headers$.set("Content-Type", "application/json");
412
393
  headers$.set("Accept", "application/json");
413
- const payload$ = schemas$.parse(input, (value$) => operations.PostGenerationsLcmRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
414
- const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
415
- const path$ = this.templateURLComponent("/generations-lcm")();
394
+ const payload$ = schemas$.parse(input$, (value$) => operations.DeleteTextureGenerationByIdRequest$.outboundSchema.parse(value$), "Input validation failed");
395
+ const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
396
+ const pathParams$ = {
397
+ id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
398
+ };
399
+ const path$ = this.templateURLComponent("/generations-texture/{id}")(pathParams$);
416
400
  const query$ = "";
417
401
  let security$;
418
402
  if (typeof this.options$.bearerAuth === "function") {
@@ -425,7 +409,7 @@ class Generation extends sdks_1.ClientSDK {
425
409
  security$ = {};
426
410
  }
427
411
  const context = {
428
- operationID: "post_/generations-lcm",
412
+ operationID: "deleteTextureGenerationById",
429
413
  oAuth2Scopes: [],
430
414
  securitySource: this.options$.bearerAuth,
431
415
  };
@@ -433,7 +417,7 @@ class Generation extends sdks_1.ClientSDK {
433
417
  const doOptions = { context, errorCodes: [] };
434
418
  const request = this.createRequest$({
435
419
  security: securitySettings$,
436
- method: "POST",
420
+ method: "DELETE",
437
421
  path: path$,
438
422
  headers: headers$,
439
423
  query: query$,
@@ -448,7 +432,7 @@ class Generation extends sdks_1.ClientSDK {
448
432
  if (this.matchResponse(response, 200, "application/json")) {
449
433
  const responseBody = await response.json();
450
434
  const result = schemas$.parse(responseBody, (val$) => {
451
- return operations.PostGenerationsLcmResponse$.inboundSchema.parse({
435
+ return operations.DeleteTextureGenerationByIdResponse$.inboundSchema.parse({
452
436
  ...responseFields$,
453
437
  object: val$,
454
438
  });
@@ -461,22 +445,25 @@ class Generation extends sdks_1.ClientSDK {
461
445
  }
462
446
  }
463
447
  /**
464
- * Create SVD Motion Generation
448
+ * Get a Single Generation
465
449
  *
466
450
  * @remarks
467
- * This endpoint will generate a SVD motion generation.
451
+ * This endpoint will provide information about a specific generation
468
452
  */
469
- async postGenerationsMotionSvd(input, options) {
453
+ async getGenerationById(id, options) {
470
454
  var _a;
455
+ const input$ = {
456
+ id: id,
457
+ };
471
458
  const headers$ = new Headers();
472
459
  headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
473
- headers$.set("Content-Type", "application/json");
474
460
  headers$.set("Accept", "application/json");
475
- const payload$ = schemas$.parse(input, (value$) => operations.PostGenerationsMotionSvdRequestBody$.outboundSchema
476
- .optional()
477
- .parse(value$), "Input validation failed");
478
- const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
479
- const path$ = this.templateURLComponent("/generations-motion-svd")();
461
+ const payload$ = schemas$.parse(input$, (value$) => operations.GetGenerationByIdRequest$.outboundSchema.parse(value$), "Input validation failed");
462
+ const body$ = null;
463
+ const pathParams$ = {
464
+ id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
465
+ };
466
+ const path$ = this.templateURLComponent("/generations/{id}")(pathParams$);
480
467
  const query$ = "";
481
468
  let security$;
482
469
  if (typeof this.options$.bearerAuth === "function") {
@@ -489,7 +476,7 @@ class Generation extends sdks_1.ClientSDK {
489
476
  security$ = {};
490
477
  }
491
478
  const context = {
492
- operationID: "post_/generations-motion-svd",
479
+ operationID: "getGenerationById",
493
480
  oAuth2Scopes: [],
494
481
  securitySource: this.options$.bearerAuth,
495
482
  };
@@ -497,7 +484,7 @@ class Generation extends sdks_1.ClientSDK {
497
484
  const doOptions = { context, errorCodes: [] };
498
485
  const request = this.createRequest$({
499
486
  security: securitySettings$,
500
- method: "POST",
487
+ method: "GET",
501
488
  path: path$,
502
489
  headers: headers$,
503
490
  query: query$,
@@ -512,7 +499,7 @@ class Generation extends sdks_1.ClientSDK {
512
499
  if (this.matchResponse(response, 200, "application/json")) {
513
500
  const responseBody = await response.json();
514
501
  const result = schemas$.parse(responseBody, (val$) => {
515
- return operations.PostGenerationsMotionSvdResponse$.inboundSchema.parse({
502
+ return operations.GetGenerationByIdResponse$.inboundSchema.parse({
516
503
  ...responseFields$,
517
504
  object: val$,
518
505
  });
@@ -525,23 +512,36 @@ class Generation extends sdks_1.ClientSDK {
525
512
  }
526
513
  }
527
514
  /**
528
- * Create Texture Generation
515
+ * Get generations by user ID
529
516
  *
530
517
  * @remarks
531
- * This endpoint will generate a texture generation.
518
+ * This endpoint returns all generations by a specific user
532
519
  */
533
- async postGenerationsTexture(input, options) {
520
+ async getGenerationsByUserId(userId, limit, offset, options) {
534
521
  var _a;
522
+ const input$ = {
523
+ userId: userId,
524
+ limit: limit,
525
+ offset: offset,
526
+ };
535
527
  const headers$ = new Headers();
536
528
  headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
537
- headers$.set("Content-Type", "application/json");
538
529
  headers$.set("Accept", "application/json");
539
- const payload$ = schemas$.parse(input, (value$) => operations.PostGenerationsTextureRequestBody$.outboundSchema
540
- .optional()
541
- .parse(value$), "Input validation failed");
542
- const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
543
- const path$ = this.templateURLComponent("/generations-texture")();
544
- const query$ = "";
530
+ const payload$ = schemas$.parse(input$, (value$) => operations.GetGenerationsByUserIdRequest$.outboundSchema.parse(value$), "Input validation failed");
531
+ const body$ = null;
532
+ const pathParams$ = {
533
+ userId: enc$.encodeSimple("userId", payload$.userId, {
534
+ explode: false,
535
+ charEncoding: "percent",
536
+ }),
537
+ };
538
+ const path$ = this.templateURLComponent("/generations/user/{userId}")(pathParams$);
539
+ const query$ = [
540
+ enc$.encodeForm("limit", payload$.limit, { explode: true, charEncoding: "percent" }),
541
+ enc$.encodeForm("offset", payload$.offset, { explode: true, charEncoding: "percent" }),
542
+ ]
543
+ .filter(Boolean)
544
+ .join("&");
545
545
  let security$;
546
546
  if (typeof this.options$.bearerAuth === "function") {
547
547
  security$ = { bearerAuth: await this.options$.bearerAuth() };
@@ -553,7 +553,7 @@ class Generation extends sdks_1.ClientSDK {
553
553
  security$ = {};
554
554
  }
555
555
  const context = {
556
- operationID: "post_/generations-texture",
556
+ operationID: "getGenerationsByUserId",
557
557
  oAuth2Scopes: [],
558
558
  securitySource: this.options$.bearerAuth,
559
559
  };
@@ -561,7 +561,7 @@ class Generation extends sdks_1.ClientSDK {
561
561
  const doOptions = { context, errorCodes: [] };
562
562
  const request = this.createRequest$({
563
563
  security: securitySettings$,
564
- method: "POST",
564
+ method: "GET",
565
565
  path: path$,
566
566
  headers: headers$,
567
567
  query: query$,
@@ -576,7 +576,7 @@ class Generation extends sdks_1.ClientSDK {
576
576
  if (this.matchResponse(response, 200, "application/json")) {
577
577
  const responseBody = await response.json();
578
578
  const result = schemas$.parse(responseBody, (val$) => {
579
- return operations.PostGenerationsTextureResponse$.inboundSchema.parse({
579
+ return operations.GetGenerationsByUserIdResponse$.inboundSchema.parse({
580
580
  ...responseFields$,
581
581
  object: val$,
582
582
  });
@@ -589,20 +589,22 @@ class Generation extends sdks_1.ClientSDK {
589
589
  }
590
590
  }
591
591
  /**
592
- * Perform inpainting on a LCM image
592
+ * Perform Alchemy Upscale on a LCM image
593
593
  *
594
594
  * @remarks
595
- * This endpoint will perform a inpainting on a LCM image
595
+ * This endpoint will perform Alchemy Upscale on a LCM image
596
596
  */
597
- async postLcmInpainting(input, options) {
597
+ async performAlchemyUpscaleLCM(input, options) {
598
598
  var _a;
599
599
  const headers$ = new Headers();
600
600
  headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
601
601
  headers$.set("Content-Type", "application/json");
602
602
  headers$.set("Accept", "application/json");
603
- const payload$ = schemas$.parse(input, (value$) => operations.PostLcmInpaintingRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
603
+ const payload$ = schemas$.parse(input, (value$) => operations.PerformAlchemyUpscaleLCMRequestBody$.outboundSchema
604
+ .optional()
605
+ .parse(value$), "Input validation failed");
604
606
  const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
605
- const path$ = this.templateURLComponent("/lcm-inpainting")();
607
+ const path$ = this.templateURLComponent("/lcm-upscale")();
606
608
  const query$ = "";
607
609
  let security$;
608
610
  if (typeof this.options$.bearerAuth === "function") {
@@ -615,7 +617,7 @@ class Generation extends sdks_1.ClientSDK {
615
617
  security$ = {};
616
618
  }
617
619
  const context = {
618
- operationID: "post_/lcm-inpainting",
620
+ operationID: "performAlchemyUpscaleLCM",
619
621
  oAuth2Scopes: [],
620
622
  securitySource: this.options$.bearerAuth,
621
623
  };
@@ -638,7 +640,7 @@ class Generation extends sdks_1.ClientSDK {
638
640
  if (this.matchResponse(response, 200, "application/json")) {
639
641
  const responseBody = await response.json();
640
642
  const result = schemas$.parse(responseBody, (val$) => {
641
- return operations.PostLcmInpaintingResponse$.inboundSchema.parse({
643
+ return operations.PerformAlchemyUpscaleLCMResponse$.inboundSchema.parse({
642
644
  ...responseFields$,
643
645
  object: val$,
644
646
  });
@@ -651,20 +653,20 @@ class Generation extends sdks_1.ClientSDK {
651
653
  }
652
654
  }
653
655
  /**
654
- * Perform instant refine on a LCM image
656
+ * Perform inpainting on a LCM image
655
657
  *
656
658
  * @remarks
657
- * This endpoint will perform instant refine on a LCM image
659
+ * This endpoint will perform a inpainting on a LCM image
658
660
  */
659
- async postLcmInstantRefine(input, options) {
661
+ async performInpaintingLCM(input, options) {
660
662
  var _a;
661
663
  const headers$ = new Headers();
662
664
  headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
663
665
  headers$.set("Content-Type", "application/json");
664
666
  headers$.set("Accept", "application/json");
665
- const payload$ = schemas$.parse(input, (value$) => operations.PostLcmInstantRefineRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
667
+ const payload$ = schemas$.parse(input, (value$) => operations.PerformInpaintingLCMRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
666
668
  const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
667
- const path$ = this.templateURLComponent("/lcm-instant-refine")();
669
+ const path$ = this.templateURLComponent("/lcm-inpainting")();
668
670
  const query$ = "";
669
671
  let security$;
670
672
  if (typeof this.options$.bearerAuth === "function") {
@@ -677,7 +679,7 @@ class Generation extends sdks_1.ClientSDK {
677
679
  security$ = {};
678
680
  }
679
681
  const context = {
680
- operationID: "post_/lcm-instant-refine",
682
+ operationID: "performInpaintingLCM",
681
683
  oAuth2Scopes: [],
682
684
  securitySource: this.options$.bearerAuth,
683
685
  };
@@ -700,7 +702,7 @@ class Generation extends sdks_1.ClientSDK {
700
702
  if (this.matchResponse(response, 200, "application/json")) {
701
703
  const responseBody = await response.json();
702
704
  const result = schemas$.parse(responseBody, (val$) => {
703
- return operations.PostLcmInstantRefineResponse$.inboundSchema.parse({
705
+ return operations.PerformInpaintingLCMResponse$.inboundSchema.parse({
704
706
  ...responseFields$,
705
707
  object: val$,
706
708
  });
@@ -713,20 +715,20 @@ class Generation extends sdks_1.ClientSDK {
713
715
  }
714
716
  }
715
717
  /**
716
- * Perform Alchemy Upscale on a LCM image
718
+ * Perform instant refine on a LCM image
717
719
  *
718
720
  * @remarks
719
- * This endpoint will perform Alchemy Upscale on a LCM image
721
+ * This endpoint will perform instant refine on a LCM image
720
722
  */
721
- async postLcmUpscale(input, options) {
723
+ async performInstantRefine(input, options) {
722
724
  var _a;
723
725
  const headers$ = new Headers();
724
726
  headers$.set("user-agent", config_1.SDK_METADATA.userAgent);
725
727
  headers$.set("Content-Type", "application/json");
726
728
  headers$.set("Accept", "application/json");
727
- const payload$ = schemas$.parse(input, (value$) => operations.PostLcmUpscaleRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
729
+ const payload$ = schemas$.parse(input, (value$) => operations.PerformInstantRefineRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
728
730
  const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
729
- const path$ = this.templateURLComponent("/lcm-upscale")();
731
+ const path$ = this.templateURLComponent("/lcm-instant-refine")();
730
732
  const query$ = "";
731
733
  let security$;
732
734
  if (typeof this.options$.bearerAuth === "function") {
@@ -739,7 +741,7 @@ class Generation extends sdks_1.ClientSDK {
739
741
  security$ = {};
740
742
  }
741
743
  const context = {
742
- operationID: "post_/lcm-upscale",
744
+ operationID: "performInstantRefine",
743
745
  oAuth2Scopes: [],
744
746
  securitySource: this.options$.bearerAuth,
745
747
  };
@@ -762,7 +764,7 @@ class Generation extends sdks_1.ClientSDK {
762
764
  if (this.matchResponse(response, 200, "application/json")) {
763
765
  const responseBody = await response.json();
764
766
  const result = schemas$.parse(responseBody, (val$) => {
765
- return operations.PostLcmUpscaleResponse$.inboundSchema.parse({
767
+ return operations.PerformInstantRefineResponse$.inboundSchema.parse({
766
768
  ...responseFields$,
767
769
  object: val$,
768
770
  });