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