@leonardo-ai/sdk 4.4.7 → 4.5.1

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 (126) hide show
  1. package/.speakeasy/gen.lock +68 -68
  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/lib/security.d.ts.map +1 -1
  14. package/lib/security.js +11 -9
  15. package/lib/security.js.map +1 -1
  16. package/package.json +1 -1
  17. package/sdk/element.d.ts +1 -1
  18. package/sdk/element.d.ts.map +1 -1
  19. package/sdk/element.js +3 -3
  20. package/sdk/element.js.map +1 -1
  21. package/sdk/generation.d.ts +27 -27
  22. package/sdk/generation.d.ts.map +1 -1
  23. package/sdk/generation.js +124 -122
  24. package/sdk/generation.js.map +1 -1
  25. package/sdk/model.d.ts +8 -8
  26. package/sdk/model.d.ts.map +1 -1
  27. package/sdk/model.js +25 -25
  28. package/sdk/model.js.map +1 -1
  29. package/sdk/models/operations/{postgenerationslcm.d.ts → createlcmgeneration.d.ts} +16 -16
  30. package/sdk/models/operations/createlcmgeneration.d.ts.map +1 -0
  31. package/sdk/models/operations/{postgenerationslcm.js → createlcmgeneration.js} +19 -19
  32. package/sdk/models/operations/createlcmgeneration.js.map +1 -0
  33. package/sdk/models/operations/{postgenerationsmotionsvd.d.ts → createsvdmotiongeneration.d.ts} +16 -16
  34. package/sdk/models/operations/createsvdmotiongeneration.d.ts.map +1 -0
  35. package/sdk/models/operations/{postgenerationsmotionsvd.js → createsvdmotiongeneration.js} +19 -21
  36. package/sdk/models/operations/createsvdmotiongeneration.js.map +1 -0
  37. package/sdk/models/operations/{postgenerationstexture.d.ts → createtexturegeneration.d.ts} +16 -16
  38. package/sdk/models/operations/createtexturegeneration.d.ts.map +1 -0
  39. package/sdk/models/operations/{postgenerationstexture.js → createtexturegeneration.js} +19 -19
  40. package/sdk/models/operations/createtexturegeneration.js.map +1 -0
  41. package/sdk/models/operations/{postvariationsunzoom.d.ts → createvariationunzoom.d.ts} +16 -16
  42. package/sdk/models/operations/createvariationunzoom.d.ts.map +1 -0
  43. package/sdk/models/operations/{postvariationsunzoom.js → createvariationunzoom.js} +19 -19
  44. package/sdk/models/operations/createvariationunzoom.js.map +1 -0
  45. package/sdk/models/operations/{deletemodels3did.d.ts → delete3dmodelbyid.d.ts} +23 -23
  46. package/sdk/models/operations/delete3dmodelbyid.d.ts.map +1 -0
  47. package/sdk/models/operations/{deletemodels3did.js → delete3dmodelbyid.js} +29 -27
  48. package/sdk/models/operations/delete3dmodelbyid.js.map +1 -0
  49. package/sdk/models/operations/{deletegenerationstextureid.d.ts → deletetexturegenerationbyid.d.ts} +23 -23
  50. package/sdk/models/operations/deletetexturegenerationbyid.d.ts.map +1 -0
  51. package/sdk/models/operations/{deletegenerationstextureid.js → deletetexturegenerationbyid.js} +28 -26
  52. package/sdk/models/operations/deletetexturegenerationbyid.js.map +1 -0
  53. package/sdk/models/operations/index.d.ts +12 -12
  54. package/sdk/models/operations/index.d.ts.map +1 -1
  55. package/sdk/models/operations/index.js +12 -12
  56. package/sdk/models/operations/index.js.map +1 -1
  57. package/sdk/models/operations/{getelements.d.ts → listelements.d.ts} +12 -12
  58. package/sdk/models/operations/listelements.d.ts.map +1 -0
  59. package/sdk/models/operations/{getelements.js → listelements.js} +14 -14
  60. package/sdk/models/operations/listelements.js.map +1 -0
  61. package/sdk/models/operations/{getplatformmodels.d.ts → listplatformmodels.d.ts} +26 -26
  62. package/sdk/models/operations/listplatformmodels.d.ts.map +1 -0
  63. package/sdk/models/operations/{getplatformmodels.js → listplatformmodels.js} +28 -28
  64. package/sdk/models/operations/listplatformmodels.js.map +1 -0
  65. package/sdk/models/operations/{postlcmupscale.d.ts → performalchemyupscalelcm.d.ts} +23 -23
  66. package/sdk/models/operations/performalchemyupscalelcm.d.ts.map +1 -0
  67. package/sdk/models/operations/{postlcmupscale.js → performalchemyupscalelcm.js} +28 -26
  68. package/sdk/models/operations/performalchemyupscalelcm.js.map +1 -0
  69. package/sdk/models/operations/{postlcminpainting.d.ts → performinpaintinglcm.d.ts} +23 -23
  70. package/sdk/models/operations/performinpaintinglcm.d.ts.map +1 -0
  71. package/sdk/models/operations/{postlcminpainting.js → performinpaintinglcm.js} +26 -26
  72. package/sdk/models/operations/performinpaintinglcm.js.map +1 -0
  73. package/sdk/models/operations/{postlcminstantrefine.d.ts → performinstantrefine.d.ts} +23 -23
  74. package/sdk/models/operations/{postlcminstantrefine.d.ts.map → performinstantrefine.d.ts.map} +1 -1
  75. package/sdk/models/operations/{postlcminstantrefine.js → performinstantrefine.js} +26 -26
  76. package/sdk/models/operations/{postlcminstantrefine.js.map → performinstantrefine.js.map} +1 -1
  77. package/sdk/models/operations/{postmodels3dupload.d.ts → uploadmodelasset.d.ts} +16 -16
  78. package/sdk/models/operations/uploadmodelasset.d.ts.map +1 -0
  79. package/sdk/models/operations/{postmodels3dupload.js → uploadmodelasset.js} +20 -22
  80. package/sdk/models/operations/uploadmodelasset.js.map +1 -0
  81. package/sdk/variation.d.ts +7 -7
  82. package/sdk/variation.d.ts.map +1 -1
  83. package/sdk/variation.js +34 -32
  84. package/sdk/variation.js.map +1 -1
  85. package/src/lib/config.ts +3 -3
  86. package/src/lib/http.ts +21 -9
  87. package/src/lib/security.ts +10 -11
  88. package/src/sdk/element.ts +3 -3
  89. package/src/sdk/generation.ts +160 -158
  90. package/src/sdk/model.ts +33 -33
  91. package/src/sdk/models/operations/{postgenerationslcm.ts → createlcmgeneration.ts} +39 -35
  92. package/src/sdk/models/operations/{postgenerationsmotionsvd.ts → createsvdmotiongeneration.ts} +34 -33
  93. package/src/sdk/models/operations/{postgenerationstexture.ts → createtexturegeneration.ts} +49 -45
  94. package/src/sdk/models/operations/{postvariationsunzoom.ts → createvariationunzoom.ts} +45 -41
  95. package/src/sdk/models/operations/{deletemodels3did.ts → delete3dmodelbyid.ts} +39 -36
  96. package/src/sdk/models/operations/{deletegenerationstextureid.ts → deletetexturegenerationbyid.ts} +28 -26
  97. package/src/sdk/models/operations/index.ts +12 -12
  98. package/src/sdk/models/operations/{getelements.ts → listelements.ts} +13 -13
  99. package/src/sdk/models/operations/{getplatformmodels.ts → listplatformmodels.ts} +45 -42
  100. package/src/sdk/models/operations/{postlcmupscale.ts → performalchemyupscalelcm.ts} +62 -39
  101. package/src/sdk/models/operations/{postlcminpainting.ts → performinpaintinglcm.ts} +80 -71
  102. package/src/sdk/models/operations/{postlcminstantrefine.ts → performinstantrefine.ts} +26 -26
  103. package/src/sdk/models/operations/{postmodels3dupload.ts → uploadmodelasset.ts} +39 -43
  104. package/src/sdk/variation.ts +44 -42
  105. package/sdk/models/operations/deletegenerationstextureid.d.ts.map +0 -1
  106. package/sdk/models/operations/deletegenerationstextureid.js.map +0 -1
  107. package/sdk/models/operations/deletemodels3did.d.ts.map +0 -1
  108. package/sdk/models/operations/deletemodels3did.js.map +0 -1
  109. package/sdk/models/operations/getelements.d.ts.map +0 -1
  110. package/sdk/models/operations/getelements.js.map +0 -1
  111. package/sdk/models/operations/getplatformmodels.d.ts.map +0 -1
  112. package/sdk/models/operations/getplatformmodels.js.map +0 -1
  113. package/sdk/models/operations/postgenerationslcm.d.ts.map +0 -1
  114. package/sdk/models/operations/postgenerationslcm.js.map +0 -1
  115. package/sdk/models/operations/postgenerationsmotionsvd.d.ts.map +0 -1
  116. package/sdk/models/operations/postgenerationsmotionsvd.js.map +0 -1
  117. package/sdk/models/operations/postgenerationstexture.d.ts.map +0 -1
  118. package/sdk/models/operations/postgenerationstexture.js.map +0 -1
  119. package/sdk/models/operations/postlcminpainting.d.ts.map +0 -1
  120. package/sdk/models/operations/postlcminpainting.js.map +0 -1
  121. package/sdk/models/operations/postlcmupscale.d.ts.map +0 -1
  122. package/sdk/models/operations/postlcmupscale.js.map +0 -1
  123. package/sdk/models/operations/postmodels3dupload.d.ts.map +0 -1
  124. package/sdk/models/operations/postmodels3dupload.js.map +0 -1
  125. package/sdk/models/operations/postvariationsunzoom.d.ts.map +0 -1
  126. package/sdk/models/operations/postvariationsunzoom.js.map +0 -1
@@ -50,11 +50,11 @@ export type Loras = {
50
50
  /**
51
51
  * Responses for GET /api/rest/v1/elements
52
52
  */
53
- export type GetElementsResponseBody = {
53
+ export type ListElementsResponseBody = {
54
54
  loras?: Array<Loras> | undefined;
55
55
  };
56
56
 
57
- export type GetElementsResponse = {
57
+ export type ListElementsResponse = {
58
58
  /**
59
59
  * HTTP response content type for this operation
60
60
  */
@@ -70,7 +70,7 @@ export type GetElementsResponse = {
70
70
  /**
71
71
  * Responses for GET /api/rest/v1/elements
72
72
  */
73
- object?: GetElementsResponseBody | undefined;
73
+ object?: ListElementsResponseBody | undefined;
74
74
  };
75
75
 
76
76
  /** @internal */
@@ -153,12 +153,12 @@ export namespace Loras$ {
153
153
  }
154
154
 
155
155
  /** @internal */
156
- export namespace GetElementsResponseBody$ {
156
+ export namespace ListElementsResponseBody$ {
157
157
  export type Inbound = {
158
158
  loras?: Array<Loras$.Inbound> | undefined;
159
159
  };
160
160
 
161
- export const inboundSchema: z.ZodType<GetElementsResponseBody, z.ZodTypeDef, Inbound> = z
161
+ export const inboundSchema: z.ZodType<ListElementsResponseBody, z.ZodTypeDef, Inbound> = z
162
162
  .object({
163
163
  loras: z.array(z.lazy(() => Loras$.inboundSchema)).optional(),
164
164
  })
@@ -172,7 +172,7 @@ export namespace GetElementsResponseBody$ {
172
172
  loras?: Array<Loras$.Outbound> | undefined;
173
173
  };
174
174
 
175
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetElementsResponseBody> = z
175
+ export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ListElementsResponseBody> = z
176
176
  .object({
177
177
  loras: z.array(z.lazy(() => Loras$.outboundSchema)).optional(),
178
178
  })
@@ -184,20 +184,20 @@ export namespace GetElementsResponseBody$ {
184
184
  }
185
185
 
186
186
  /** @internal */
187
- export namespace GetElementsResponse$ {
187
+ export namespace ListElementsResponse$ {
188
188
  export type Inbound = {
189
189
  ContentType: string;
190
190
  StatusCode: number;
191
191
  RawResponse: Response;
192
- object?: GetElementsResponseBody$.Inbound | undefined;
192
+ object?: ListElementsResponseBody$.Inbound | undefined;
193
193
  };
194
194
 
195
- export const inboundSchema: z.ZodType<GetElementsResponse, z.ZodTypeDef, Inbound> = z
195
+ export const inboundSchema: z.ZodType<ListElementsResponse, z.ZodTypeDef, Inbound> = z
196
196
  .object({
197
197
  ContentType: z.string(),
198
198
  StatusCode: z.number().int(),
199
199
  RawResponse: z.instanceof(Response),
200
- object: z.lazy(() => GetElementsResponseBody$.inboundSchema).optional(),
200
+ object: z.lazy(() => ListElementsResponseBody$.inboundSchema).optional(),
201
201
  })
202
202
  .transform((v) => {
203
203
  return {
@@ -212,17 +212,17 @@ export namespace GetElementsResponse$ {
212
212
  ContentType: string;
213
213
  StatusCode: number;
214
214
  RawResponse: never;
215
- object?: GetElementsResponseBody$.Outbound | undefined;
215
+ object?: ListElementsResponseBody$.Outbound | undefined;
216
216
  };
217
217
 
218
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetElementsResponse> = z
218
+ export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ListElementsResponse> = z
219
219
  .object({
220
220
  contentType: z.string(),
221
221
  statusCode: z.number().int(),
222
222
  rawResponse: z.instanceof(Response).transform(() => {
223
223
  throw new Error("Response cannot be serialized");
224
224
  }),
225
- object: z.lazy(() => GetElementsResponseBody$.outboundSchema).optional(),
225
+ object: z.lazy(() => ListElementsResponseBody$.outboundSchema).optional(),
226
226
  })
227
227
  .transform((v) => {
228
228
  return {
@@ -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
  */
@@ -53,7 +53,7 @@ export type PostLcmUpscaleRequestBody = {
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;
@@ -108,7 +108,11 @@ export namespace PostLcmUpscaleRequestBody$ {
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)),
@@ -157,7 +161,11 @@ export namespace PostLcmUpscaleRequestBody$ {
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)),
@@ -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 {