@leonardo-ai/sdk 4.4.6 → 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 (144) 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/creategeneration.d.ts +3 -3
  27. package/sdk/models/operations/creategeneration.d.ts.map +1 -1
  28. package/sdk/models/operations/creategeneration.js +2 -2
  29. package/sdk/models/operations/creategeneration.js.map +1 -1
  30. package/sdk/models/operations/{postgenerationslcm.d.ts → createlcmgeneration.d.ts} +19 -19
  31. package/sdk/models/operations/createlcmgeneration.d.ts.map +1 -0
  32. package/sdk/models/operations/{postgenerationslcm.js → createlcmgeneration.js} +21 -21
  33. package/sdk/models/operations/createlcmgeneration.js.map +1 -0
  34. package/sdk/models/operations/{postgenerationsmotionsvd.d.ts → createsvdmotiongeneration.d.ts} +16 -16
  35. package/sdk/models/operations/createsvdmotiongeneration.d.ts.map +1 -0
  36. package/sdk/models/operations/{postgenerationsmotionsvd.js → createsvdmotiongeneration.js} +19 -21
  37. package/sdk/models/operations/createsvdmotiongeneration.js.map +1 -0
  38. package/sdk/models/operations/{postgenerationstexture.d.ts → createtexturegeneration.d.ts} +16 -16
  39. package/sdk/models/operations/createtexturegeneration.d.ts.map +1 -0
  40. package/sdk/models/operations/{postgenerationstexture.js → createtexturegeneration.js} +19 -19
  41. package/sdk/models/operations/createtexturegeneration.js.map +1 -0
  42. package/sdk/models/operations/{postvariationsunzoom.d.ts → createvariationunzoom.d.ts} +16 -16
  43. package/sdk/models/operations/createvariationunzoom.d.ts.map +1 -0
  44. package/sdk/models/operations/{postvariationsunzoom.js → createvariationunzoom.js} +19 -19
  45. package/sdk/models/operations/createvariationunzoom.js.map +1 -0
  46. package/sdk/models/operations/{deletemodels3did.d.ts → delete3dmodelbyid.d.ts} +23 -23
  47. package/sdk/models/operations/delete3dmodelbyid.d.ts.map +1 -0
  48. package/sdk/models/operations/{deletemodels3did.js → delete3dmodelbyid.js} +29 -27
  49. package/sdk/models/operations/delete3dmodelbyid.js.map +1 -0
  50. package/sdk/models/operations/{deletegenerationstextureid.d.ts → deletetexturegenerationbyid.d.ts} +23 -23
  51. package/sdk/models/operations/deletetexturegenerationbyid.d.ts.map +1 -0
  52. package/sdk/models/operations/{deletegenerationstextureid.js → deletetexturegenerationbyid.js} +28 -26
  53. package/sdk/models/operations/deletetexturegenerationbyid.js.map +1 -0
  54. package/sdk/models/operations/getgenerationbyid.d.ts +3 -3
  55. package/sdk/models/operations/getgenerationbyid.d.ts.map +1 -1
  56. package/sdk/models/operations/getgenerationbyid.js +2 -2
  57. package/sdk/models/operations/getgenerationbyid.js.map +1 -1
  58. package/sdk/models/operations/getgenerationsbyuserid.d.ts +3 -3
  59. package/sdk/models/operations/getgenerationsbyuserid.d.ts.map +1 -1
  60. package/sdk/models/operations/getgenerationsbyuserid.js +2 -2
  61. package/sdk/models/operations/getgenerationsbyuserid.js.map +1 -1
  62. package/sdk/models/operations/getuserself.d.ts +6 -6
  63. package/sdk/models/operations/getuserself.d.ts.map +1 -1
  64. package/sdk/models/operations/getuserself.js +4 -4
  65. package/sdk/models/operations/getuserself.js.map +1 -1
  66. package/sdk/models/operations/index.d.ts +12 -12
  67. package/sdk/models/operations/index.d.ts.map +1 -1
  68. package/sdk/models/operations/index.js +12 -12
  69. package/sdk/models/operations/index.js.map +1 -1
  70. package/sdk/models/operations/{getelements.d.ts → listelements.d.ts} +12 -12
  71. package/sdk/models/operations/listelements.d.ts.map +1 -0
  72. package/sdk/models/operations/{getelements.js → listelements.js} +14 -14
  73. package/sdk/models/operations/listelements.js.map +1 -0
  74. package/sdk/models/operations/{getplatformmodels.d.ts → listplatformmodels.d.ts} +26 -26
  75. package/sdk/models/operations/listplatformmodels.d.ts.map +1 -0
  76. package/sdk/models/operations/{getplatformmodels.js → listplatformmodels.js} +28 -28
  77. package/sdk/models/operations/listplatformmodels.js.map +1 -0
  78. package/sdk/models/operations/{postlcmupscale.d.ts → performalchemyupscalelcm.d.ts} +26 -26
  79. package/sdk/models/operations/performalchemyupscalelcm.d.ts.map +1 -0
  80. package/sdk/models/operations/{postlcmupscale.js → performalchemyupscalelcm.js} +30 -28
  81. package/sdk/models/operations/performalchemyupscalelcm.js.map +1 -0
  82. package/sdk/models/operations/{postlcminpainting.d.ts → performinpaintinglcm.d.ts} +26 -26
  83. package/sdk/models/operations/performinpaintinglcm.d.ts.map +1 -0
  84. package/sdk/models/operations/{postlcminpainting.js → performinpaintinglcm.js} +28 -28
  85. package/sdk/models/operations/performinpaintinglcm.js.map +1 -0
  86. package/sdk/models/operations/{postlcminstantrefine.d.ts → performinstantrefine.d.ts} +26 -26
  87. package/sdk/models/operations/performinstantrefine.d.ts.map +1 -0
  88. package/sdk/models/operations/{postlcminstantrefine.js → performinstantrefine.js} +28 -28
  89. package/sdk/models/operations/performinstantrefine.js.map +1 -0
  90. package/sdk/models/operations/{postmodels3dupload.d.ts → uploadmodelasset.d.ts} +16 -16
  91. package/sdk/models/operations/uploadmodelasset.d.ts.map +1 -0
  92. package/sdk/models/operations/{postmodels3dupload.js → uploadmodelasset.js} +20 -22
  93. package/sdk/models/operations/uploadmodelasset.js.map +1 -0
  94. package/sdk/variation.d.ts +7 -7
  95. package/sdk/variation.d.ts.map +1 -1
  96. package/sdk/variation.js +34 -32
  97. package/sdk/variation.js.map +1 -1
  98. package/src/lib/config.ts +3 -3
  99. package/src/lib/http.ts +21 -9
  100. package/src/sdk/element.ts +3 -3
  101. package/src/sdk/generation.ts +160 -158
  102. package/src/sdk/model.ts +33 -33
  103. package/src/sdk/models/operations/creategeneration.ts +5 -5
  104. package/src/sdk/models/operations/{postgenerationslcm.ts → createlcmgeneration.ts} +44 -40
  105. package/src/sdk/models/operations/{postgenerationsmotionsvd.ts → createsvdmotiongeneration.ts} +34 -33
  106. package/src/sdk/models/operations/{postgenerationstexture.ts → createtexturegeneration.ts} +49 -45
  107. package/src/sdk/models/operations/{postvariationsunzoom.ts → createvariationunzoom.ts} +45 -41
  108. package/src/sdk/models/operations/{deletemodels3did.ts → delete3dmodelbyid.ts} +39 -36
  109. package/src/sdk/models/operations/{deletegenerationstextureid.ts → deletetexturegenerationbyid.ts} +28 -26
  110. package/src/sdk/models/operations/getgenerationbyid.ts +5 -5
  111. package/src/sdk/models/operations/getgenerationsbyuserid.ts +5 -5
  112. package/src/sdk/models/operations/getuserself.ts +10 -10
  113. package/src/sdk/models/operations/index.ts +12 -12
  114. package/src/sdk/models/operations/{getelements.ts → listelements.ts} +13 -13
  115. package/src/sdk/models/operations/{getplatformmodels.ts → listplatformmodels.ts} +45 -42
  116. package/src/sdk/models/operations/{postlcmupscale.ts → performalchemyupscalelcm.ts} +67 -44
  117. package/src/sdk/models/operations/{postlcminpainting.ts → performinpaintinglcm.ts} +84 -75
  118. package/src/sdk/models/operations/{postlcminstantrefine.ts → performinstantrefine.ts} +31 -31
  119. package/src/sdk/models/operations/{postmodels3dupload.ts → uploadmodelasset.ts} +39 -43
  120. package/src/sdk/variation.ts +44 -42
  121. package/sdk/models/operations/deletegenerationstextureid.d.ts.map +0 -1
  122. package/sdk/models/operations/deletegenerationstextureid.js.map +0 -1
  123. package/sdk/models/operations/deletemodels3did.d.ts.map +0 -1
  124. package/sdk/models/operations/deletemodels3did.js.map +0 -1
  125. package/sdk/models/operations/getelements.d.ts.map +0 -1
  126. package/sdk/models/operations/getelements.js.map +0 -1
  127. package/sdk/models/operations/getplatformmodels.d.ts.map +0 -1
  128. package/sdk/models/operations/getplatformmodels.js.map +0 -1
  129. package/sdk/models/operations/postgenerationslcm.d.ts.map +0 -1
  130. package/sdk/models/operations/postgenerationslcm.js.map +0 -1
  131. package/sdk/models/operations/postgenerationsmotionsvd.d.ts.map +0 -1
  132. package/sdk/models/operations/postgenerationsmotionsvd.js.map +0 -1
  133. package/sdk/models/operations/postgenerationstexture.d.ts.map +0 -1
  134. package/sdk/models/operations/postgenerationstexture.js.map +0 -1
  135. package/sdk/models/operations/postlcminpainting.d.ts.map +0 -1
  136. package/sdk/models/operations/postlcminpainting.js.map +0 -1
  137. package/sdk/models/operations/postlcminstantrefine.d.ts.map +0 -1
  138. package/sdk/models/operations/postlcminstantrefine.js.map +0 -1
  139. package/sdk/models/operations/postlcmupscale.d.ts.map +0 -1
  140. package/sdk/models/operations/postlcmupscale.js.map +0 -1
  141. package/sdk/models/operations/postmodels3dupload.d.ts.map +0 -1
  142. package/sdk/models/operations/postmodels3dupload.js.map +0 -1
  143. package/sdk/models/operations/postvariationsunzoom.d.ts.map +0 -1
  144. package/sdk/models/operations/postvariationsunzoom.js.map +0 -1
@@ -7,7 +7,7 @@ import * as z from "zod";
7
7
  /**
8
8
  * columns and relationships of "generated_images"
9
9
  */
10
- export type GetPlatformModelsGeneratedImages = {
10
+ export type ListPlatformModelsGeneratedImages = {
11
11
  id?: string | null | undefined;
12
12
  url?: string | undefined;
13
13
  };
@@ -15,13 +15,13 @@ export type GetPlatformModelsGeneratedImages = {
15
15
  /**
16
16
  * columns and relationships of "custom_models"
17
17
  */
18
- export type GetPlatformModelsCustomModels = {
18
+ export type ListPlatformModelsCustomModels = {
19
19
  description?: string | undefined;
20
20
  featured?: boolean | undefined;
21
21
  /**
22
22
  * columns and relationships of "generated_images"
23
23
  */
24
- generatedImage?: GetPlatformModelsGeneratedImages | null | undefined;
24
+ generatedImage?: ListPlatformModelsGeneratedImages | null | undefined;
25
25
  id?: string | null | undefined;
26
26
  name?: string | undefined;
27
27
  nsfw?: boolean | undefined;
@@ -30,11 +30,11 @@ export type GetPlatformModelsCustomModels = {
30
30
  /**
31
31
  * Responses for GET /api/rest/v1/platformModels
32
32
  */
33
- export type GetPlatformModelsResponseBody = {
34
- customModels?: Array<GetPlatformModelsCustomModels> | undefined;
33
+ export type ListPlatformModelsResponseBody = {
34
+ customModels?: Array<ListPlatformModelsCustomModels> | undefined;
35
35
  };
36
36
 
37
- export type GetPlatformModelsResponse = {
37
+ export type ListPlatformModelsResponse = {
38
38
  /**
39
39
  * HTTP response content type for this operation
40
40
  */
@@ -50,28 +50,31 @@ export type GetPlatformModelsResponse = {
50
50
  /**
51
51
  * Responses for GET /api/rest/v1/platformModels
52
52
  */
53
- object?: GetPlatformModelsResponseBody | undefined;
53
+ object?: ListPlatformModelsResponseBody | undefined;
54
54
  };
55
55
 
56
56
  /** @internal */
57
- export namespace GetPlatformModelsGeneratedImages$ {
57
+ export namespace ListPlatformModelsGeneratedImages$ {
58
58
  export type Inbound = {
59
59
  id?: string | null | undefined;
60
60
  url?: string | undefined;
61
61
  };
62
62
 
63
- export const inboundSchema: z.ZodType<GetPlatformModelsGeneratedImages, z.ZodTypeDef, Inbound> =
64
- z
65
- .object({
66
- id: z.nullable(z.string()).optional(),
67
- url: z.string().optional(),
68
- })
69
- .transform((v) => {
70
- return {
71
- ...(v.id === undefined ? null : { id: v.id }),
72
- ...(v.url === undefined ? null : { url: v.url }),
73
- };
74
- });
63
+ export const inboundSchema: z.ZodType<
64
+ ListPlatformModelsGeneratedImages,
65
+ z.ZodTypeDef,
66
+ Inbound
67
+ > = z
68
+ .object({
69
+ id: z.nullable(z.string()).optional(),
70
+ url: z.string().optional(),
71
+ })
72
+ .transform((v) => {
73
+ return {
74
+ ...(v.id === undefined ? null : { id: v.id }),
75
+ ...(v.url === undefined ? null : { url: v.url }),
76
+ };
77
+ });
75
78
 
76
79
  export type Outbound = {
77
80
  id?: string | null | undefined;
@@ -81,7 +84,7 @@ export namespace GetPlatformModelsGeneratedImages$ {
81
84
  export const outboundSchema: z.ZodType<
82
85
  Outbound,
83
86
  z.ZodTypeDef,
84
- GetPlatformModelsGeneratedImages
87
+ ListPlatformModelsGeneratedImages
85
88
  > = z
86
89
  .object({
87
90
  id: z.nullable(z.string()).optional(),
@@ -96,22 +99,22 @@ export namespace GetPlatformModelsGeneratedImages$ {
96
99
  }
97
100
 
98
101
  /** @internal */
99
- export namespace GetPlatformModelsCustomModels$ {
102
+ export namespace ListPlatformModelsCustomModels$ {
100
103
  export type Inbound = {
101
104
  description?: string | undefined;
102
105
  featured?: boolean | undefined;
103
- generated_image?: GetPlatformModelsGeneratedImages$.Inbound | null | undefined;
106
+ generated_image?: ListPlatformModelsGeneratedImages$.Inbound | null | undefined;
104
107
  id?: string | null | undefined;
105
108
  name?: string | undefined;
106
109
  nsfw?: boolean | undefined;
107
110
  };
108
111
 
109
- export const inboundSchema: z.ZodType<GetPlatformModelsCustomModels, z.ZodTypeDef, Inbound> = z
112
+ export const inboundSchema: z.ZodType<ListPlatformModelsCustomModels, z.ZodTypeDef, Inbound> = z
110
113
  .object({
111
114
  description: z.string().optional(),
112
115
  featured: z.boolean().optional(),
113
116
  generated_image: z
114
- .nullable(z.lazy(() => GetPlatformModelsGeneratedImages$.inboundSchema))
117
+ .nullable(z.lazy(() => ListPlatformModelsGeneratedImages$.inboundSchema))
115
118
  .optional(),
116
119
  id: z.nullable(z.string()).optional(),
117
120
  name: z.string().optional(),
@@ -131,19 +134,19 @@ export namespace GetPlatformModelsCustomModels$ {
131
134
  export type Outbound = {
132
135
  description?: string | undefined;
133
136
  featured?: boolean | undefined;
134
- generated_image?: GetPlatformModelsGeneratedImages$.Outbound | null | undefined;
137
+ generated_image?: ListPlatformModelsGeneratedImages$.Outbound | null | undefined;
135
138
  id?: string | null | undefined;
136
139
  name?: string | undefined;
137
140
  nsfw?: boolean | undefined;
138
141
  };
139
142
 
140
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlatformModelsCustomModels> =
143
+ export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ListPlatformModelsCustomModels> =
141
144
  z
142
145
  .object({
143
146
  description: z.string().optional(),
144
147
  featured: z.boolean().optional(),
145
148
  generatedImage: z
146
- .nullable(z.lazy(() => GetPlatformModelsGeneratedImages$.outboundSchema))
149
+ .nullable(z.lazy(() => ListPlatformModelsGeneratedImages$.outboundSchema))
147
150
  .optional(),
148
151
  id: z.nullable(z.string()).optional(),
149
152
  name: z.string().optional(),
@@ -164,15 +167,15 @@ export namespace GetPlatformModelsCustomModels$ {
164
167
  }
165
168
 
166
169
  /** @internal */
167
- export namespace GetPlatformModelsResponseBody$ {
170
+ export namespace ListPlatformModelsResponseBody$ {
168
171
  export type Inbound = {
169
- custom_models?: Array<GetPlatformModelsCustomModels$.Inbound> | undefined;
172
+ custom_models?: Array<ListPlatformModelsCustomModels$.Inbound> | undefined;
170
173
  };
171
174
 
172
- export const inboundSchema: z.ZodType<GetPlatformModelsResponseBody, z.ZodTypeDef, Inbound> = z
175
+ export const inboundSchema: z.ZodType<ListPlatformModelsResponseBody, z.ZodTypeDef, Inbound> = z
173
176
  .object({
174
177
  custom_models: z
175
- .array(z.lazy(() => GetPlatformModelsCustomModels$.inboundSchema))
178
+ .array(z.lazy(() => ListPlatformModelsCustomModels$.inboundSchema))
176
179
  .optional(),
177
180
  })
178
181
  .transform((v) => {
@@ -182,14 +185,14 @@ export namespace GetPlatformModelsResponseBody$ {
182
185
  });
183
186
 
184
187
  export type Outbound = {
185
- custom_models?: Array<GetPlatformModelsCustomModels$.Outbound> | undefined;
188
+ custom_models?: Array<ListPlatformModelsCustomModels$.Outbound> | undefined;
186
189
  };
187
190
 
188
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlatformModelsResponseBody> =
191
+ export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ListPlatformModelsResponseBody> =
189
192
  z
190
193
  .object({
191
194
  customModels: z
192
- .array(z.lazy(() => GetPlatformModelsCustomModels$.outboundSchema))
195
+ .array(z.lazy(() => ListPlatformModelsCustomModels$.outboundSchema))
193
196
  .optional(),
194
197
  })
195
198
  .transform((v) => {
@@ -200,20 +203,20 @@ export namespace GetPlatformModelsResponseBody$ {
200
203
  }
201
204
 
202
205
  /** @internal */
203
- export namespace GetPlatformModelsResponse$ {
206
+ export namespace ListPlatformModelsResponse$ {
204
207
  export type Inbound = {
205
208
  ContentType: string;
206
209
  StatusCode: number;
207
210
  RawResponse: Response;
208
- object?: GetPlatformModelsResponseBody$.Inbound | undefined;
211
+ object?: ListPlatformModelsResponseBody$.Inbound | undefined;
209
212
  };
210
213
 
211
- export const inboundSchema: z.ZodType<GetPlatformModelsResponse, z.ZodTypeDef, Inbound> = z
214
+ export const inboundSchema: z.ZodType<ListPlatformModelsResponse, z.ZodTypeDef, Inbound> = z
212
215
  .object({
213
216
  ContentType: z.string(),
214
217
  StatusCode: z.number().int(),
215
218
  RawResponse: z.instanceof(Response),
216
- object: z.lazy(() => GetPlatformModelsResponseBody$.inboundSchema).optional(),
219
+ object: z.lazy(() => ListPlatformModelsResponseBody$.inboundSchema).optional(),
217
220
  })
218
221
  .transform((v) => {
219
222
  return {
@@ -228,17 +231,17 @@ export namespace GetPlatformModelsResponse$ {
228
231
  ContentType: string;
229
232
  StatusCode: number;
230
233
  RawResponse: never;
231
- object?: GetPlatformModelsResponseBody$.Outbound | undefined;
234
+ object?: ListPlatformModelsResponseBody$.Outbound | undefined;
232
235
  };
233
236
 
234
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlatformModelsResponse> = z
237
+ export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ListPlatformModelsResponse> = z
235
238
  .object({
236
239
  contentType: z.string(),
237
240
  statusCode: z.number().int(),
238
241
  rawResponse: z.instanceof(Response).transform(() => {
239
242
  throw new Error("Response cannot be serialized");
240
243
  }),
241
- object: z.lazy(() => GetPlatformModelsResponseBody$.outboundSchema).optional(),
244
+ object: z.lazy(() => ListPlatformModelsResponseBody$.outboundSchema).optional(),
242
245
  })
243
246
  .transform((v) => {
244
247
  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 PostLcmUpscaleRequestBody = {
11
+ export type PerformAlchemyUpscaleLCMRequestBody = {
12
12
  /**
13
13
  * How strongly the generation should reflect the prompt. Must be a float between 0.5 and 20.
14
14
  */
@@ -46,14 +46,14 @@ export type PostLcmUpscaleRequestBody = {
46
46
  /**
47
47
  * The style to generate LCM images with.
48
48
  */
49
- style?: shared.LcmGenerationStyle | undefined;
49
+ style?: shared.LcmGenerationStyle | null | undefined;
50
50
  /**
51
51
  * The output width of the image. Must be 512, 640 or 1024.
52
52
  */
53
53
  width?: number | null | undefined;
54
54
  };
55
55
 
56
- export type PostLcmUpscaleLcmGenerationOutput = {
56
+ export type PerformAlchemyUpscaleLCMLCMGenerationOutput = {
57
57
  /**
58
58
  * API credits cost, available for Production API users.
59
59
  */
@@ -68,11 +68,11 @@ export type PostLcmUpscaleLcmGenerationOutput = {
68
68
  /**
69
69
  * Responses for POST /lcm-upscale
70
70
  */
71
- export type PostLcmUpscaleResponseBody = {
72
- lcmGenerationJob?: PostLcmUpscaleLcmGenerationOutput | null | undefined;
71
+ export type PerformAlchemyUpscaleLCMResponseBody = {
72
+ lcmGenerationJob?: PerformAlchemyUpscaleLCMLCMGenerationOutput | null | undefined;
73
73
  };
74
74
 
75
- export type PostLcmUpscaleResponse = {
75
+ export type PerformAlchemyUpscaleLCMResponse = {
76
76
  /**
77
77
  * HTTP response content type for this operation
78
78
  */
@@ -88,11 +88,11 @@ export type PostLcmUpscaleResponse = {
88
88
  /**
89
89
  * Responses for POST /lcm-upscale
90
90
  */
91
- object?: PostLcmUpscaleResponseBody | undefined;
91
+ object?: PerformAlchemyUpscaleLCMResponseBody | undefined;
92
92
  };
93
93
 
94
94
  /** @internal */
95
- export namespace PostLcmUpscaleRequestBody$ {
95
+ export namespace PerformAlchemyUpscaleLCMRequestBody$ {
96
96
  export type Inbound = {
97
97
  guidance?: number | null | undefined;
98
98
  height?: number | null | undefined;
@@ -104,11 +104,15 @@ export namespace PostLcmUpscaleRequestBody$ {
104
104
  seed?: number | null | undefined;
105
105
  steps?: number | null | undefined;
106
106
  strength?: number | null | undefined;
107
- style?: shared.LcmGenerationStyle | undefined;
107
+ style?: shared.LcmGenerationStyle | null | undefined;
108
108
  width?: number | null | undefined;
109
109
  };
110
110
 
111
- export const inboundSchema: z.ZodType<PostLcmUpscaleRequestBody, z.ZodTypeDef, Inbound> = z
111
+ export const inboundSchema: z.ZodType<
112
+ PerformAlchemyUpscaleLCMRequestBody,
113
+ z.ZodTypeDef,
114
+ Inbound
115
+ > = z
112
116
  .object({
113
117
  guidance: z.nullable(z.number()).optional(),
114
118
  height: z.nullable(z.number().int().default(512)),
@@ -120,7 +124,7 @@ export namespace PostLcmUpscaleRequestBody$ {
120
124
  seed: z.nullable(z.number().int()).optional(),
121
125
  steps: z.nullable(z.number().int()).optional(),
122
126
  strength: z.nullable(z.number()).optional(),
123
- style: shared.LcmGenerationStyle$.optional(),
127
+ style: z.nullable(shared.LcmGenerationStyle$).optional(),
124
128
  width: z.nullable(z.number().int().default(512)),
125
129
  })
126
130
  .transform((v) => {
@@ -153,11 +157,15 @@ export namespace PostLcmUpscaleRequestBody$ {
153
157
  seed?: number | null | undefined;
154
158
  steps?: number | null | undefined;
155
159
  strength?: number | null | undefined;
156
- style?: shared.LcmGenerationStyle | undefined;
160
+ style?: shared.LcmGenerationStyle | null | undefined;
157
161
  width: number | null;
158
162
  };
159
163
 
160
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PostLcmUpscaleRequestBody> = z
164
+ export const outboundSchema: z.ZodType<
165
+ Outbound,
166
+ z.ZodTypeDef,
167
+ PerformAlchemyUpscaleLCMRequestBody
168
+ > = z
161
169
  .object({
162
170
  guidance: z.nullable(z.number()).optional(),
163
171
  height: z.nullable(z.number().int().default(512)),
@@ -169,7 +177,7 @@ export namespace PostLcmUpscaleRequestBody$ {
169
177
  seed: z.nullable(z.number().int()).optional(),
170
178
  steps: z.nullable(z.number().int()).optional(),
171
179
  strength: z.nullable(z.number()).optional(),
172
- style: shared.LcmGenerationStyle$.optional(),
180
+ style: z.nullable(shared.LcmGenerationStyle$).optional(),
173
181
  width: z.nullable(z.number().int().default(512)),
174
182
  })
175
183
  .transform((v) => {
@@ -193,7 +201,7 @@ export namespace PostLcmUpscaleRequestBody$ {
193
201
  }
194
202
 
195
203
  /** @internal */
196
- export namespace PostLcmUpscaleLcmGenerationOutput$ {
204
+ export namespace PerformAlchemyUpscaleLCMLCMGenerationOutput$ {
197
205
  export type Inbound = {
198
206
  apiCreditCost?: number | null | undefined;
199
207
  generatedImageId?: string | undefined;
@@ -204,7 +212,7 @@ export namespace PostLcmUpscaleLcmGenerationOutput$ {
204
212
  };
205
213
 
206
214
  export const inboundSchema: z.ZodType<
207
- PostLcmUpscaleLcmGenerationOutput,
215
+ PerformAlchemyUpscaleLCMLCMGenerationOutput,
208
216
  z.ZodTypeDef,
209
217
  Inbound
210
218
  > = z
@@ -243,7 +251,7 @@ export namespace PostLcmUpscaleLcmGenerationOutput$ {
243
251
  export const outboundSchema: z.ZodType<
244
252
  Outbound,
245
253
  z.ZodTypeDef,
246
- PostLcmUpscaleLcmGenerationOutput
254
+ PerformAlchemyUpscaleLCMLCMGenerationOutput
247
255
  > = z
248
256
  .object({
249
257
  apiCreditCost: z.nullable(z.number().int()).optional(),
@@ -270,15 +278,19 @@ export namespace PostLcmUpscaleLcmGenerationOutput$ {
270
278
  }
271
279
 
272
280
  /** @internal */
273
- export namespace PostLcmUpscaleResponseBody$ {
281
+ export namespace PerformAlchemyUpscaleLCMResponseBody$ {
274
282
  export type Inbound = {
275
- lcmGenerationJob?: PostLcmUpscaleLcmGenerationOutput$.Inbound | null | undefined;
283
+ lcmGenerationJob?: PerformAlchemyUpscaleLCMLCMGenerationOutput$.Inbound | null | undefined;
276
284
  };
277
285
 
278
- export const inboundSchema: z.ZodType<PostLcmUpscaleResponseBody, z.ZodTypeDef, Inbound> = z
286
+ export const inboundSchema: z.ZodType<
287
+ PerformAlchemyUpscaleLCMResponseBody,
288
+ z.ZodTypeDef,
289
+ Inbound
290
+ > = z
279
291
  .object({
280
292
  lcmGenerationJob: z
281
- .nullable(z.lazy(() => PostLcmUpscaleLcmGenerationOutput$.inboundSchema))
293
+ .nullable(z.lazy(() => PerformAlchemyUpscaleLCMLCMGenerationOutput$.inboundSchema))
282
294
  .optional(),
283
295
  })
284
296
  .transform((v) => {
@@ -290,13 +302,17 @@ export namespace PostLcmUpscaleResponseBody$ {
290
302
  });
291
303
 
292
304
  export type Outbound = {
293
- lcmGenerationJob?: PostLcmUpscaleLcmGenerationOutput$.Outbound | null | undefined;
305
+ lcmGenerationJob?: PerformAlchemyUpscaleLCMLCMGenerationOutput$.Outbound | null | undefined;
294
306
  };
295
307
 
296
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PostLcmUpscaleResponseBody> = z
308
+ export const outboundSchema: z.ZodType<
309
+ Outbound,
310
+ z.ZodTypeDef,
311
+ PerformAlchemyUpscaleLCMResponseBody
312
+ > = z
297
313
  .object({
298
314
  lcmGenerationJob: z
299
- .nullable(z.lazy(() => PostLcmUpscaleLcmGenerationOutput$.outboundSchema))
315
+ .nullable(z.lazy(() => PerformAlchemyUpscaleLCMLCMGenerationOutput$.outboundSchema))
300
316
  .optional(),
301
317
  })
302
318
  .transform((v) => {
@@ -309,45 +325,52 @@ export namespace PostLcmUpscaleResponseBody$ {
309
325
  }
310
326
 
311
327
  /** @internal */
312
- export namespace PostLcmUpscaleResponse$ {
328
+ export namespace PerformAlchemyUpscaleLCMResponse$ {
313
329
  export type Inbound = {
314
330
  ContentType: string;
315
331
  StatusCode: number;
316
332
  RawResponse: Response;
317
- object?: PostLcmUpscaleResponseBody$.Inbound | undefined;
333
+ object?: PerformAlchemyUpscaleLCMResponseBody$.Inbound | undefined;
318
334
  };
319
335
 
320
- export const inboundSchema: z.ZodType<PostLcmUpscaleResponse, z.ZodTypeDef, Inbound> = z
321
- .object({
322
- ContentType: z.string(),
323
- StatusCode: z.number().int(),
324
- RawResponse: z.instanceof(Response),
325
- object: z.lazy(() => PostLcmUpscaleResponseBody$.inboundSchema).optional(),
326
- })
327
- .transform((v) => {
328
- return {
329
- contentType: v.ContentType,
330
- statusCode: v.StatusCode,
331
- rawResponse: v.RawResponse,
332
- ...(v.object === undefined ? null : { object: v.object }),
333
- };
334
- });
336
+ export const inboundSchema: z.ZodType<PerformAlchemyUpscaleLCMResponse, z.ZodTypeDef, Inbound> =
337
+ z
338
+ .object({
339
+ ContentType: z.string(),
340
+ StatusCode: z.number().int(),
341
+ RawResponse: z.instanceof(Response),
342
+ object: z
343
+ .lazy(() => PerformAlchemyUpscaleLCMResponseBody$.inboundSchema)
344
+ .optional(),
345
+ })
346
+ .transform((v) => {
347
+ return {
348
+ contentType: v.ContentType,
349
+ statusCode: v.StatusCode,
350
+ rawResponse: v.RawResponse,
351
+ ...(v.object === undefined ? null : { object: v.object }),
352
+ };
353
+ });
335
354
 
336
355
  export type Outbound = {
337
356
  ContentType: string;
338
357
  StatusCode: number;
339
358
  RawResponse: never;
340
- object?: PostLcmUpscaleResponseBody$.Outbound | undefined;
359
+ object?: PerformAlchemyUpscaleLCMResponseBody$.Outbound | undefined;
341
360
  };
342
361
 
343
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PostLcmUpscaleResponse> = z
362
+ export const outboundSchema: z.ZodType<
363
+ Outbound,
364
+ z.ZodTypeDef,
365
+ PerformAlchemyUpscaleLCMResponse
366
+ > = z
344
367
  .object({
345
368
  contentType: z.string(),
346
369
  statusCode: z.number().int(),
347
370
  rawResponse: z.instanceof(Response).transform(() => {
348
371
  throw new Error("Response cannot be serialized");
349
372
  }),
350
- object: z.lazy(() => PostLcmUpscaleResponseBody$.outboundSchema).optional(),
373
+ object: z.lazy(() => PerformAlchemyUpscaleLCMResponseBody$.outboundSchema).optional(),
351
374
  })
352
375
  .transform((v) => {
353
376
  return {