@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/src/sdk/model.ts CHANGED
@@ -120,33 +120,36 @@ export class Model extends ClientSDK {
120
120
  }
121
121
 
122
122
  /**
123
- * Delete a Single Custom Model by ID
123
+ * Delete 3D Model by ID
124
124
  *
125
125
  * @remarks
126
- * This endpoint will delete a specific custom model
126
+ * This endpoint deletes the specific 3D Model
127
127
  */
128
- async deleteModelById(
128
+ async delete3DModelById(
129
129
  id: string,
130
+ requestBody?: operations.Delete3DModelByIdRequestBody | undefined,
130
131
  options?: RequestOptions
131
- ): Promise<operations.DeleteModelByIdResponse> {
132
- const input$: operations.DeleteModelByIdRequest = {
132
+ ): Promise<operations.Delete3DModelByIdResponse> {
133
+ const input$: operations.Delete3DModelByIdRequest = {
133
134
  id: id,
135
+ requestBody: requestBody,
134
136
  };
135
137
  const headers$ = new Headers();
136
138
  headers$.set("user-agent", SDK_METADATA.userAgent);
139
+ headers$.set("Content-Type", "application/json");
137
140
  headers$.set("Accept", "application/json");
138
141
 
139
142
  const payload$ = schemas$.parse(
140
143
  input$,
141
- (value$) => operations.DeleteModelByIdRequest$.outboundSchema.parse(value$),
144
+ (value$) => operations.Delete3DModelByIdRequest$.outboundSchema.parse(value$),
142
145
  "Input validation failed"
143
146
  );
144
- const body$ = null;
147
+ const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
145
148
 
146
149
  const pathParams$ = {
147
150
  id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
148
151
  };
149
- const path$ = this.templateURLComponent("/models/{id}")(pathParams$);
152
+ const path$ = this.templateURLComponent("/models-3d/{id}")(pathParams$);
150
153
 
151
154
  const query$ = "";
152
155
 
@@ -159,7 +162,7 @@ export class Model extends ClientSDK {
159
162
  security$ = {};
160
163
  }
161
164
  const context = {
162
- operationID: "deleteModelById",
165
+ operationID: "delete3DModelById",
163
166
  oAuth2Scopes: [],
164
167
  securitySource: this.options$.bearerAuth,
165
168
  };
@@ -191,7 +194,7 @@ export class Model extends ClientSDK {
191
194
  const result = schemas$.parse(
192
195
  responseBody,
193
196
  (val$) => {
194
- return operations.DeleteModelByIdResponse$.inboundSchema.parse({
197
+ return operations.Delete3DModelByIdResponse$.inboundSchema.parse({
195
198
  ...responseFields$,
196
199
  object: val$,
197
200
  });
@@ -206,36 +209,33 @@ export class Model extends ClientSDK {
206
209
  }
207
210
 
208
211
  /**
209
- * Delete 3D Model by ID
212
+ * Delete a Single Custom Model by ID
210
213
  *
211
214
  * @remarks
212
- * This endpoint deletes the specific 3D Model
215
+ * This endpoint will delete a specific custom model
213
216
  */
214
- async deleteModels3dId(
217
+ async deleteModelById(
215
218
  id: string,
216
- requestBody?: operations.DeleteModels3dIdRequestBody | undefined,
217
219
  options?: RequestOptions
218
- ): Promise<operations.DeleteModels3dIdResponse> {
219
- const input$: operations.DeleteModels3dIdRequest = {
220
+ ): Promise<operations.DeleteModelByIdResponse> {
221
+ const input$: operations.DeleteModelByIdRequest = {
220
222
  id: id,
221
- requestBody: requestBody,
222
223
  };
223
224
  const headers$ = new Headers();
224
225
  headers$.set("user-agent", SDK_METADATA.userAgent);
225
- headers$.set("Content-Type", "application/json");
226
226
  headers$.set("Accept", "application/json");
227
227
 
228
228
  const payload$ = schemas$.parse(
229
229
  input$,
230
- (value$) => operations.DeleteModels3dIdRequest$.outboundSchema.parse(value$),
230
+ (value$) => operations.DeleteModelByIdRequest$.outboundSchema.parse(value$),
231
231
  "Input validation failed"
232
232
  );
233
- const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
233
+ const body$ = null;
234
234
 
235
235
  const pathParams$ = {
236
236
  id: enc$.encodeSimple("id", payload$.id, { explode: false, charEncoding: "percent" }),
237
237
  };
238
- const path$ = this.templateURLComponent("/models-3d/{id}")(pathParams$);
238
+ const path$ = this.templateURLComponent("/models/{id}")(pathParams$);
239
239
 
240
240
  const query$ = "";
241
241
 
@@ -248,7 +248,7 @@ export class Model extends ClientSDK {
248
248
  security$ = {};
249
249
  }
250
250
  const context = {
251
- operationID: "delete_/models-3d/{id}",
251
+ operationID: "deleteModelById",
252
252
  oAuth2Scopes: [],
253
253
  securitySource: this.options$.bearerAuth,
254
254
  };
@@ -280,7 +280,7 @@ export class Model extends ClientSDK {
280
280
  const result = schemas$.parse(
281
281
  responseBody,
282
282
  (val$) => {
283
- return operations.DeleteModels3dIdResponse$.inboundSchema.parse({
283
+ return operations.DeleteModelByIdResponse$.inboundSchema.parse({
284
284
  ...responseFields$,
285
285
  object: val$,
286
286
  });
@@ -386,9 +386,9 @@ export class Model extends ClientSDK {
386
386
  * @remarks
387
387
  * Get a list of public Platform Models available for use with generations.
388
388
  */
389
- async getPlatformModels(
389
+ async listPlatformModels(
390
390
  options?: RequestOptions
391
- ): Promise<operations.GetPlatformModelsResponse> {
391
+ ): Promise<operations.ListPlatformModelsResponse> {
392
392
  const headers$ = new Headers();
393
393
  headers$.set("user-agent", SDK_METADATA.userAgent);
394
394
  headers$.set("Accept", "application/json");
@@ -406,7 +406,7 @@ export class Model extends ClientSDK {
406
406
  security$ = {};
407
407
  }
408
408
  const context = {
409
- operationID: "get_/platformModels",
409
+ operationID: "listPlatformModels",
410
410
  oAuth2Scopes: [],
411
411
  securitySource: this.options$.bearerAuth,
412
412
  };
@@ -437,7 +437,7 @@ export class Model extends ClientSDK {
437
437
  const result = schemas$.parse(
438
438
  responseBody,
439
439
  (val$) => {
440
- return operations.GetPlatformModelsResponse$.inboundSchema.parse({
440
+ return operations.ListPlatformModelsResponse$.inboundSchema.parse({
441
441
  ...responseFields$,
442
442
  object: val$,
443
443
  });
@@ -457,10 +457,10 @@ export class Model extends ClientSDK {
457
457
  * @remarks
458
458
  * This endpoint returns presigned details to upload a 3D model to S3
459
459
  */
460
- async postModels3dUpload(
461
- input: operations.PostModels3dUploadRequestBody | undefined,
460
+ async uploadModelAsset(
461
+ input: operations.UploadModelAssetRequestBody | undefined,
462
462
  options?: RequestOptions
463
- ): Promise<operations.PostModels3dUploadResponse> {
463
+ ): Promise<operations.UploadModelAssetResponse> {
464
464
  const headers$ = new Headers();
465
465
  headers$.set("user-agent", SDK_METADATA.userAgent);
466
466
  headers$.set("Content-Type", "application/json");
@@ -469,7 +469,7 @@ export class Model extends ClientSDK {
469
469
  const payload$ = schemas$.parse(
470
470
  input,
471
471
  (value$) =>
472
- operations.PostModels3dUploadRequestBody$.outboundSchema.optional().parse(value$),
472
+ operations.UploadModelAssetRequestBody$.outboundSchema.optional().parse(value$),
473
473
  "Input validation failed"
474
474
  );
475
475
  const body$ =
@@ -488,7 +488,7 @@ export class Model extends ClientSDK {
488
488
  security$ = {};
489
489
  }
490
490
  const context = {
491
- operationID: "post_/models-3d/upload",
491
+ operationID: "uploadModelAsset",
492
492
  oAuth2Scopes: [],
493
493
  securitySource: this.options$.bearerAuth,
494
494
  };
@@ -520,7 +520,7 @@ export class Model extends ClientSDK {
520
520
  const result = schemas$.parse(
521
521
  responseBody,
522
522
  (val$) => {
523
- return operations.PostModels3dUploadResponse$.inboundSchema.parse({
523
+ return operations.UploadModelAssetResponse$.inboundSchema.parse({
524
524
  ...responseFields$,
525
525
  object: val$,
526
526
  });
@@ -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 PostGenerationsLcmRequestBody = {
11
+ export type CreateLCMGenerationRequestBody = {
12
12
  /**
13
13
  * How strongly the generation should reflect the prompt. Must be a float between 0.5 and 20.
14
14
  */
@@ -57,11 +57,11 @@ export type LcmGenerationOutput = {
57
57
  /**
58
58
  * Responses for POST /generations-lcm
59
59
  */
60
- export type PostGenerationsLcmResponseBody = {
60
+ export type CreateLCMGenerationResponseBody = {
61
61
  lcmGenerationJob?: LcmGenerationOutput | null | undefined;
62
62
  };
63
63
 
64
- export type PostGenerationsLcmResponse = {
64
+ export type CreateLCMGenerationResponse = {
65
65
  /**
66
66
  * HTTP response content type for this operation
67
67
  */
@@ -77,11 +77,11 @@ export type PostGenerationsLcmResponse = {
77
77
  /**
78
78
  * Responses for POST /generations-lcm
79
79
  */
80
- object?: PostGenerationsLcmResponseBody | undefined;
80
+ object?: CreateLCMGenerationResponseBody | undefined;
81
81
  };
82
82
 
83
83
  /** @internal */
84
- export namespace PostGenerationsLcmRequestBody$ {
84
+ export namespace CreateLCMGenerationRequestBody$ {
85
85
  export type Inbound = {
86
86
  guidance?: number | null | undefined;
87
87
  height?: number | null | undefined;
@@ -95,7 +95,7 @@ export namespace PostGenerationsLcmRequestBody$ {
95
95
  width?: number | null | undefined;
96
96
  };
97
97
 
98
- export const inboundSchema: z.ZodType<PostGenerationsLcmRequestBody, z.ZodTypeDef, Inbound> = z
98
+ export const inboundSchema: z.ZodType<CreateLCMGenerationRequestBody, z.ZodTypeDef, Inbound> = z
99
99
  .object({
100
100
  guidance: z.nullable(z.number()).optional(),
101
101
  height: z.nullable(z.number().int().default(512)),
@@ -138,7 +138,7 @@ export namespace PostGenerationsLcmRequestBody$ {
138
138
  width: number | null;
139
139
  };
140
140
 
141
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PostGenerationsLcmRequestBody> =
141
+ export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateLCMGenerationRequestBody> =
142
142
  z
143
143
  .object({
144
144
  guidance: z.nullable(z.number()).optional(),
@@ -218,34 +218,16 @@ export namespace LcmGenerationOutput$ {
218
218
  }
219
219
 
220
220
  /** @internal */
221
- export namespace PostGenerationsLcmResponseBody$ {
221
+ export namespace CreateLCMGenerationResponseBody$ {
222
222
  export type Inbound = {
223
223
  lcmGenerationJob?: LcmGenerationOutput$.Inbound | null | undefined;
224
224
  };
225
225
 
226
- export const inboundSchema: z.ZodType<PostGenerationsLcmResponseBody, z.ZodTypeDef, Inbound> = z
227
- .object({
228
- lcmGenerationJob: z
229
- .nullable(z.lazy(() => LcmGenerationOutput$.inboundSchema))
230
- .optional(),
231
- })
232
- .transform((v) => {
233
- return {
234
- ...(v.lcmGenerationJob === undefined
235
- ? null
236
- : { lcmGenerationJob: v.lcmGenerationJob }),
237
- };
238
- });
239
-
240
- export type Outbound = {
241
- lcmGenerationJob?: LcmGenerationOutput$.Outbound | null | undefined;
242
- };
243
-
244
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PostGenerationsLcmResponseBody> =
226
+ export const inboundSchema: z.ZodType<CreateLCMGenerationResponseBody, z.ZodTypeDef, Inbound> =
245
227
  z
246
228
  .object({
247
229
  lcmGenerationJob: z
248
- .nullable(z.lazy(() => LcmGenerationOutput$.outboundSchema))
230
+ .nullable(z.lazy(() => LcmGenerationOutput$.inboundSchema))
249
231
  .optional(),
250
232
  })
251
233
  .transform((v) => {
@@ -255,23 +237,45 @@ export namespace PostGenerationsLcmResponseBody$ {
255
237
  : { lcmGenerationJob: v.lcmGenerationJob }),
256
238
  };
257
239
  });
240
+
241
+ export type Outbound = {
242
+ lcmGenerationJob?: LcmGenerationOutput$.Outbound | null | undefined;
243
+ };
244
+
245
+ export const outboundSchema: z.ZodType<
246
+ Outbound,
247
+ z.ZodTypeDef,
248
+ CreateLCMGenerationResponseBody
249
+ > = z
250
+ .object({
251
+ lcmGenerationJob: z
252
+ .nullable(z.lazy(() => LcmGenerationOutput$.outboundSchema))
253
+ .optional(),
254
+ })
255
+ .transform((v) => {
256
+ return {
257
+ ...(v.lcmGenerationJob === undefined
258
+ ? null
259
+ : { lcmGenerationJob: v.lcmGenerationJob }),
260
+ };
261
+ });
258
262
  }
259
263
 
260
264
  /** @internal */
261
- export namespace PostGenerationsLcmResponse$ {
265
+ export namespace CreateLCMGenerationResponse$ {
262
266
  export type Inbound = {
263
267
  ContentType: string;
264
268
  StatusCode: number;
265
269
  RawResponse: Response;
266
- object?: PostGenerationsLcmResponseBody$.Inbound | undefined;
270
+ object?: CreateLCMGenerationResponseBody$.Inbound | undefined;
267
271
  };
268
272
 
269
- export const inboundSchema: z.ZodType<PostGenerationsLcmResponse, z.ZodTypeDef, Inbound> = z
273
+ export const inboundSchema: z.ZodType<CreateLCMGenerationResponse, z.ZodTypeDef, Inbound> = z
270
274
  .object({
271
275
  ContentType: z.string(),
272
276
  StatusCode: z.number().int(),
273
277
  RawResponse: z.instanceof(Response),
274
- object: z.lazy(() => PostGenerationsLcmResponseBody$.inboundSchema).optional(),
278
+ object: z.lazy(() => CreateLCMGenerationResponseBody$.inboundSchema).optional(),
275
279
  })
276
280
  .transform((v) => {
277
281
  return {
@@ -286,17 +290,17 @@ export namespace PostGenerationsLcmResponse$ {
286
290
  ContentType: string;
287
291
  StatusCode: number;
288
292
  RawResponse: never;
289
- object?: PostGenerationsLcmResponseBody$.Outbound | undefined;
293
+ object?: CreateLCMGenerationResponseBody$.Outbound | undefined;
290
294
  };
291
295
 
292
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PostGenerationsLcmResponse> = z
296
+ export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateLCMGenerationResponse> = z
293
297
  .object({
294
298
  contentType: z.string(),
295
299
  statusCode: z.number().int(),
296
300
  rawResponse: z.instanceof(Response).transform(() => {
297
301
  throw new Error("Response cannot be serialized");
298
302
  }),
299
- object: z.lazy(() => PostGenerationsLcmResponseBody$.outboundSchema).optional(),
303
+ object: z.lazy(() => CreateLCMGenerationResponseBody$.outboundSchema).optional(),
300
304
  })
301
305
  .transform((v) => {
302
306
  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 PostGenerationsMotionSvdRequestBody = {
10
+ export type CreateSVDMotionGenerationRequestBody = {
11
11
  /**
12
12
  * The ID of the image, supports generated images, variation images, and init images.
13
13
  */
@@ -41,11 +41,11 @@ export type MotionSvdGenerationOutput = {
41
41
  /**
42
42
  * Responses for POST /generations-motion-svd
43
43
  */
44
- export type PostGenerationsMotionSvdResponseBody = {
44
+ export type CreateSVDMotionGenerationResponseBody = {
45
45
  sdGenerationJob?: MotionSvdGenerationOutput | null | undefined;
46
46
  };
47
47
 
48
- export type PostGenerationsMotionSvdResponse = {
48
+ export type CreateSVDMotionGenerationResponse = {
49
49
  /**
50
50
  * HTTP response content type for this operation
51
51
  */
@@ -61,11 +61,11 @@ export type PostGenerationsMotionSvdResponse = {
61
61
  /**
62
62
  * Responses for POST /generations-motion-svd
63
63
  */
64
- object?: PostGenerationsMotionSvdResponseBody | undefined;
64
+ object?: CreateSVDMotionGenerationResponseBody | undefined;
65
65
  };
66
66
 
67
67
  /** @internal */
68
- export namespace PostGenerationsMotionSvdRequestBody$ {
68
+ export namespace CreateSVDMotionGenerationRequestBody$ {
69
69
  export type Inbound = {
70
70
  imageId: string;
71
71
  isInitImage?: boolean | null | undefined;
@@ -75,7 +75,7 @@ export namespace PostGenerationsMotionSvdRequestBody$ {
75
75
  };
76
76
 
77
77
  export const inboundSchema: z.ZodType<
78
- PostGenerationsMotionSvdRequestBody,
78
+ CreateSVDMotionGenerationRequestBody,
79
79
  z.ZodTypeDef,
80
80
  Inbound
81
81
  > = z
@@ -107,7 +107,7 @@ export namespace PostGenerationsMotionSvdRequestBody$ {
107
107
  export const outboundSchema: z.ZodType<
108
108
  Outbound,
109
109
  z.ZodTypeDef,
110
- PostGenerationsMotionSvdRequestBody
110
+ CreateSVDMotionGenerationRequestBody
111
111
  > = z
112
112
  .object({
113
113
  imageId: z.string(),
@@ -165,13 +165,13 @@ export namespace MotionSvdGenerationOutput$ {
165
165
  }
166
166
 
167
167
  /** @internal */
168
- export namespace PostGenerationsMotionSvdResponseBody$ {
168
+ export namespace CreateSVDMotionGenerationResponseBody$ {
169
169
  export type Inbound = {
170
170
  sdGenerationJob?: MotionSvdGenerationOutput$.Inbound | null | undefined;
171
171
  };
172
172
 
173
173
  export const inboundSchema: z.ZodType<
174
- PostGenerationsMotionSvdResponseBody,
174
+ CreateSVDMotionGenerationResponseBody,
175
175
  z.ZodTypeDef,
176
176
  Inbound
177
177
  > = z
@@ -195,7 +195,7 @@ export namespace PostGenerationsMotionSvdResponseBody$ {
195
195
  export const outboundSchema: z.ZodType<
196
196
  Outbound,
197
197
  z.ZodTypeDef,
198
- PostGenerationsMotionSvdResponseBody
198
+ CreateSVDMotionGenerationResponseBody
199
199
  > = z
200
200
  .object({
201
201
  sdGenerationJob: z
@@ -212,44 +212,45 @@ export namespace PostGenerationsMotionSvdResponseBody$ {
212
212
  }
213
213
 
214
214
  /** @internal */
215
- export namespace PostGenerationsMotionSvdResponse$ {
215
+ export namespace CreateSVDMotionGenerationResponse$ {
216
216
  export type Inbound = {
217
217
  ContentType: string;
218
218
  StatusCode: number;
219
219
  RawResponse: Response;
220
- object?: PostGenerationsMotionSvdResponseBody$.Inbound | undefined;
220
+ object?: CreateSVDMotionGenerationResponseBody$.Inbound | undefined;
221
221
  };
222
222
 
223
- export const inboundSchema: z.ZodType<PostGenerationsMotionSvdResponse, z.ZodTypeDef, Inbound> =
224
- z
225
- .object({
226
- ContentType: z.string(),
227
- StatusCode: z.number().int(),
228
- RawResponse: z.instanceof(Response),
229
- object: z
230
- .lazy(() => PostGenerationsMotionSvdResponseBody$.inboundSchema)
231
- .optional(),
232
- })
233
- .transform((v) => {
234
- return {
235
- contentType: v.ContentType,
236
- statusCode: v.StatusCode,
237
- rawResponse: v.RawResponse,
238
- ...(v.object === undefined ? null : { object: v.object }),
239
- };
240
- });
223
+ export const inboundSchema: z.ZodType<
224
+ CreateSVDMotionGenerationResponse,
225
+ z.ZodTypeDef,
226
+ Inbound
227
+ > = z
228
+ .object({
229
+ ContentType: z.string(),
230
+ StatusCode: z.number().int(),
231
+ RawResponse: z.instanceof(Response),
232
+ object: z.lazy(() => CreateSVDMotionGenerationResponseBody$.inboundSchema).optional(),
233
+ })
234
+ .transform((v) => {
235
+ return {
236
+ contentType: v.ContentType,
237
+ statusCode: v.StatusCode,
238
+ rawResponse: v.RawResponse,
239
+ ...(v.object === undefined ? null : { object: v.object }),
240
+ };
241
+ });
241
242
 
242
243
  export type Outbound = {
243
244
  ContentType: string;
244
245
  StatusCode: number;
245
246
  RawResponse: never;
246
- object?: PostGenerationsMotionSvdResponseBody$.Outbound | undefined;
247
+ object?: CreateSVDMotionGenerationResponseBody$.Outbound | undefined;
247
248
  };
248
249
 
249
250
  export const outboundSchema: z.ZodType<
250
251
  Outbound,
251
252
  z.ZodTypeDef,
252
- PostGenerationsMotionSvdResponse
253
+ CreateSVDMotionGenerationResponse
253
254
  > = z
254
255
  .object({
255
256
  contentType: z.string(),
@@ -257,7 +258,7 @@ export namespace PostGenerationsMotionSvdResponse$ {
257
258
  rawResponse: z.instanceof(Response).transform(() => {
258
259
  throw new Error("Response cannot be serialized");
259
260
  }),
260
- object: z.lazy(() => PostGenerationsMotionSvdResponseBody$.outboundSchema).optional(),
261
+ object: z.lazy(() => CreateSVDMotionGenerationResponseBody$.outboundSchema).optional(),
261
262
  })
262
263
  .transform((v) => {
263
264
  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 PostGenerationsTextureRequestBody = {
10
+ export type CreateTextureGenerationRequestBody = {
11
11
  frontRotationOffset?: number | null | undefined;
12
12
  modelAssetId?: string | undefined;
13
13
  negativePrompt?: string | null | undefined;
@@ -29,11 +29,11 @@ export type TextureGenerationJobOutput = {
29
29
  /**
30
30
  * Responses for POST /api/rest/v1/generations-texture
31
31
  */
32
- export type PostGenerationsTextureResponseBody = {
32
+ export type CreateTextureGenerationResponseBody = {
33
33
  textureGenerationJob?: TextureGenerationJobOutput | null | undefined;
34
34
  };
35
35
 
36
- export type PostGenerationsTextureResponse = {
36
+ export type CreateTextureGenerationResponse = {
37
37
  /**
38
38
  * HTTP response content type for this operation
39
39
  */
@@ -49,11 +49,11 @@ export type PostGenerationsTextureResponse = {
49
49
  /**
50
50
  * Responses for POST /api/rest/v1/generations-texture
51
51
  */
52
- object?: PostGenerationsTextureResponseBody | undefined;
52
+ object?: CreateTextureGenerationResponseBody | undefined;
53
53
  };
54
54
 
55
55
  /** @internal */
56
- export namespace PostGenerationsTextureRequestBody$ {
56
+ export namespace CreateTextureGenerationRequestBody$ {
57
57
  export type Inbound = {
58
58
  front_rotation_offset?: number | null | undefined;
59
59
  modelAssetId?: string | undefined;
@@ -66,7 +66,7 @@ export namespace PostGenerationsTextureRequestBody$ {
66
66
  };
67
67
 
68
68
  export const inboundSchema: z.ZodType<
69
- PostGenerationsTextureRequestBody,
69
+ CreateTextureGenerationRequestBody,
70
70
  z.ZodTypeDef,
71
71
  Inbound
72
72
  > = z
@@ -111,7 +111,7 @@ export namespace PostGenerationsTextureRequestBody$ {
111
111
  export const outboundSchema: z.ZodType<
112
112
  Outbound,
113
113
  z.ZodTypeDef,
114
- PostGenerationsTextureRequestBody
114
+ CreateTextureGenerationRequestBody
115
115
  > = z
116
116
  .object({
117
117
  frontRotationOffset: z.nullable(z.number().int()).optional(),
@@ -179,13 +179,13 @@ export namespace TextureGenerationJobOutput$ {
179
179
  }
180
180
 
181
181
  /** @internal */
182
- export namespace PostGenerationsTextureResponseBody$ {
182
+ export namespace CreateTextureGenerationResponseBody$ {
183
183
  export type Inbound = {
184
184
  textureGenerationJob?: TextureGenerationJobOutput$.Inbound | null | undefined;
185
185
  };
186
186
 
187
187
  export const inboundSchema: z.ZodType<
188
- PostGenerationsTextureResponseBody,
188
+ CreateTextureGenerationResponseBody,
189
189
  z.ZodTypeDef,
190
190
  Inbound
191
191
  > = z
@@ -209,7 +209,7 @@ export namespace PostGenerationsTextureResponseBody$ {
209
209
  export const outboundSchema: z.ZodType<
210
210
  Outbound,
211
211
  z.ZodTypeDef,
212
- PostGenerationsTextureResponseBody
212
+ CreateTextureGenerationResponseBody
213
213
  > = z
214
214
  .object({
215
215
  textureGenerationJob: z
@@ -226,53 +226,57 @@ export namespace PostGenerationsTextureResponseBody$ {
226
226
  }
227
227
 
228
228
  /** @internal */
229
- export namespace PostGenerationsTextureResponse$ {
229
+ export namespace CreateTextureGenerationResponse$ {
230
230
  export type Inbound = {
231
231
  ContentType: string;
232
232
  StatusCode: number;
233
233
  RawResponse: Response;
234
- object?: PostGenerationsTextureResponseBody$.Inbound | undefined;
234
+ object?: CreateTextureGenerationResponseBody$.Inbound | undefined;
235
235
  };
236
236
 
237
- export const inboundSchema: z.ZodType<PostGenerationsTextureResponse, z.ZodTypeDef, Inbound> = z
238
- .object({
239
- ContentType: z.string(),
240
- StatusCode: z.number().int(),
241
- RawResponse: z.instanceof(Response),
242
- object: z.lazy(() => PostGenerationsTextureResponseBody$.inboundSchema).optional(),
243
- })
244
- .transform((v) => {
245
- return {
246
- contentType: v.ContentType,
247
- statusCode: v.StatusCode,
248
- rawResponse: v.RawResponse,
249
- ...(v.object === undefined ? null : { object: v.object }),
250
- };
251
- });
252
-
253
- export type Outbound = {
254
- ContentType: string;
255
- StatusCode: number;
256
- RawResponse: never;
257
- object?: PostGenerationsTextureResponseBody$.Outbound | undefined;
258
- };
259
-
260
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PostGenerationsTextureResponse> =
237
+ export const inboundSchema: z.ZodType<CreateTextureGenerationResponse, z.ZodTypeDef, Inbound> =
261
238
  z
262
239
  .object({
263
- contentType: z.string(),
264
- statusCode: z.number().int(),
265
- rawResponse: z.instanceof(Response).transform(() => {
266
- throw new Error("Response cannot be serialized");
267
- }),
268
- object: z.lazy(() => PostGenerationsTextureResponseBody$.outboundSchema).optional(),
240
+ ContentType: z.string(),
241
+ StatusCode: z.number().int(),
242
+ RawResponse: z.instanceof(Response),
243
+ object: z.lazy(() => CreateTextureGenerationResponseBody$.inboundSchema).optional(),
269
244
  })
270
245
  .transform((v) => {
271
246
  return {
272
- ContentType: v.contentType,
273
- StatusCode: v.statusCode,
274
- RawResponse: v.rawResponse,
247
+ contentType: v.ContentType,
248
+ statusCode: v.StatusCode,
249
+ rawResponse: v.RawResponse,
275
250
  ...(v.object === undefined ? null : { object: v.object }),
276
251
  };
277
252
  });
253
+
254
+ export type Outbound = {
255
+ ContentType: string;
256
+ StatusCode: number;
257
+ RawResponse: never;
258
+ object?: CreateTextureGenerationResponseBody$.Outbound | undefined;
259
+ };
260
+
261
+ export const outboundSchema: z.ZodType<
262
+ Outbound,
263
+ z.ZodTypeDef,
264
+ CreateTextureGenerationResponse
265
+ > = z
266
+ .object({
267
+ contentType: z.string(),
268
+ statusCode: z.number().int(),
269
+ rawResponse: z.instanceof(Response).transform(() => {
270
+ throw new Error("Response cannot be serialized");
271
+ }),
272
+ object: z.lazy(() => CreateTextureGenerationResponseBody$.outboundSchema).optional(),
273
+ })
274
+ .transform((v) => {
275
+ return {
276
+ ContentType: v.contentType,
277
+ StatusCode: v.statusCode,
278
+ RawResponse: v.rawResponse,
279
+ ...(v.object === undefined ? null : { object: v.object }),
280
+ };
281
+ });
278
282
  }