@leonardo-ai/sdk 4.4.2 → 4.4.4
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.
- package/.speakeasy/gen.lock +8 -8
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.js +4 -4
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +6 -11
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +20 -8
- package/lib/security.js.map +1 -1
- package/package.json +1 -1
- package/sdk/dataset.d.ts +1 -1
- package/sdk/dataset.d.ts.map +1 -1
- package/sdk/dataset.js +2 -2
- package/sdk/dataset.js.map +1 -1
- package/sdk/element.d.ts +1 -1
- package/sdk/element.d.ts.map +1 -1
- package/sdk/element.js +2 -2
- package/sdk/element.js.map +1 -1
- package/sdk/generation.d.ts +1 -1
- package/sdk/generation.d.ts.map +1 -1
- package/sdk/generation.js +2 -2
- package/sdk/generation.js.map +1 -1
- package/sdk/initimage.d.ts +1 -1
- package/sdk/initimage.d.ts.map +1 -1
- package/sdk/initimage.js +2 -2
- package/sdk/initimage.js.map +1 -1
- package/sdk/model.d.ts +1 -1
- package/sdk/model.d.ts.map +1 -1
- package/sdk/model.js +2 -2
- package/sdk/model.js.map +1 -1
- package/sdk/models/operations/creategeneration.d.ts +7 -1
- package/sdk/models/operations/creategeneration.d.ts.map +1 -1
- package/sdk/models/operations/creategeneration.js +5 -1
- package/sdk/models/operations/creategeneration.js.map +1 -1
- package/sdk/models/operations/createmodel.d.ts +1 -1
- package/sdk/models/operations/createmodel.d.ts.map +1 -1
- package/sdk/models/operations/createmodel.js +1 -1
- package/sdk/models/operations/createmodel.js.map +1 -1
- package/sdk/models/operations/getelements.d.ts +1 -1
- package/sdk/models/operations/getelements.d.ts.map +1 -1
- package/sdk/models/operations/getelements.js +1 -1
- package/sdk/models/operations/getelements.js.map +1 -1
- package/sdk/models/operations/getgenerationbyid.d.ts +7 -1
- package/sdk/models/operations/getgenerationbyid.d.ts.map +1 -1
- package/sdk/models/operations/getgenerationbyid.js +5 -1
- package/sdk/models/operations/getgenerationbyid.js.map +1 -1
- package/sdk/models/operations/getgenerationsbyuserid.d.ts +1 -1
- package/sdk/models/operations/getgenerationsbyuserid.d.ts.map +1 -1
- package/sdk/models/operations/getgenerationsbyuserid.js +1 -1
- package/sdk/models/operations/getgenerationsbyuserid.js.map +1 -1
- package/sdk/models/operations/getmodelbyid.d.ts +1 -1
- package/sdk/models/operations/getmodelbyid.d.ts.map +1 -1
- package/sdk/models/operations/getmodelbyid.js +1 -1
- package/sdk/models/operations/getmodelbyid.js.map +1 -1
- package/sdk/models/operations/getvariationbyid.d.ts +1 -1
- package/sdk/models/operations/getvariationbyid.d.ts.map +1 -1
- package/sdk/models/operations/getvariationbyid.js +1 -1
- package/sdk/models/operations/getvariationbyid.js.map +1 -1
- package/sdk/models/operations/postgenerationslcm.d.ts +1 -1
- package/sdk/models/operations/postgenerationslcm.d.ts.map +1 -1
- package/sdk/models/operations/postgenerationslcm.js +1 -1
- package/sdk/models/operations/postgenerationslcm.js.map +1 -1
- package/sdk/models/operations/postlcminpainting.d.ts +1 -1
- package/sdk/models/operations/postlcminpainting.d.ts.map +1 -1
- package/sdk/models/operations/postlcminpainting.js +1 -1
- package/sdk/models/operations/postlcminpainting.js.map +1 -1
- package/sdk/models/operations/postlcminstantrefine.d.ts +1 -1
- package/sdk/models/operations/postlcminstantrefine.d.ts.map +1 -1
- package/sdk/models/operations/postlcminstantrefine.js +1 -1
- package/sdk/models/operations/postlcminstantrefine.js.map +1 -1
- package/sdk/models/operations/postlcmupscale.d.ts +1 -1
- package/sdk/models/operations/postlcmupscale.d.ts.map +1 -1
- package/sdk/models/operations/postlcmupscale.js +1 -1
- package/sdk/models/operations/postlcmupscale.js.map +1 -1
- package/sdk/user.d.ts +1 -1
- package/sdk/user.d.ts.map +1 -1
- package/sdk/user.js +2 -2
- package/sdk/user.js.map +1 -1
- package/sdk/variation.d.ts +1 -1
- package/sdk/variation.d.ts.map +1 -1
- package/sdk/variation.js +2 -2
- package/sdk/variation.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +4 -4
- package/src/lib/security.ts +25 -17
- package/src/sdk/dataset.ts +2 -2
- package/src/sdk/element.ts +2 -2
- package/src/sdk/generation.ts +2 -2
- package/src/sdk/initimage.ts +2 -2
- package/src/sdk/model.ts +2 -2
- package/src/sdk/models/operations/creategeneration.ts +11 -1
- package/src/sdk/models/operations/createmodel.ts +1 -1
- package/src/sdk/models/operations/getelements.ts +1 -1
- package/src/sdk/models/operations/getgenerationbyid.ts +11 -1
- package/src/sdk/models/operations/getgenerationsbyuserid.ts +1 -1
- package/src/sdk/models/operations/getmodelbyid.ts +1 -1
- package/src/sdk/models/operations/getvariationbyid.ts +1 -1
- package/src/sdk/models/operations/postgenerationslcm.ts +1 -1
- package/src/sdk/models/operations/postlcminpainting.ts +1 -1
- package/src/sdk/models/operations/postlcminstantrefine.ts +1 -1
- package/src/sdk/models/operations/postlcmupscale.ts +1 -1
- package/src/sdk/user.ts +2 -2
- package/src/sdk/variation.ts +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as shared from "
|
|
5
|
+
import * as shared from "../shared";
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
|
|
8
8
|
export type GetGenerationByIdRequest = {
|
|
@@ -32,6 +32,10 @@ export type GetGenerationByIdGeneratedImageVariationGeneric = {
|
|
|
32
32
|
* columns and relationships of "generated_images"
|
|
33
33
|
*/
|
|
34
34
|
export type GeneratedImages = {
|
|
35
|
+
/**
|
|
36
|
+
* If fantasyAvatar feature was used.
|
|
37
|
+
*/
|
|
38
|
+
fantasyAvatar?: boolean | null | undefined;
|
|
35
39
|
generatedImageVariationGenerics?:
|
|
36
40
|
| Array<GetGenerationByIdGeneratedImageVariationGeneric>
|
|
37
41
|
| undefined;
|
|
@@ -287,6 +291,7 @@ export namespace GetGenerationByIdGeneratedImageVariationGeneric$ {
|
|
|
287
291
|
/** @internal */
|
|
288
292
|
export namespace GeneratedImages$ {
|
|
289
293
|
export type Inbound = {
|
|
294
|
+
fantasyAvatar?: boolean | null | undefined;
|
|
290
295
|
generated_image_variation_generics?:
|
|
291
296
|
| Array<GetGenerationByIdGeneratedImageVariationGeneric$.Inbound>
|
|
292
297
|
| undefined;
|
|
@@ -303,6 +308,7 @@ export namespace GeneratedImages$ {
|
|
|
303
308
|
|
|
304
309
|
export const inboundSchema: z.ZodType<GeneratedImages, z.ZodTypeDef, Inbound> = z
|
|
305
310
|
.object({
|
|
311
|
+
fantasyAvatar: z.nullable(z.boolean()).optional(),
|
|
306
312
|
generated_image_variation_generics: z
|
|
307
313
|
.array(z.lazy(() => GetGenerationByIdGeneratedImageVariationGeneric$.inboundSchema))
|
|
308
314
|
.optional(),
|
|
@@ -318,6 +324,7 @@ export namespace GeneratedImages$ {
|
|
|
318
324
|
})
|
|
319
325
|
.transform((v) => {
|
|
320
326
|
return {
|
|
327
|
+
...(v.fantasyAvatar === undefined ? null : { fantasyAvatar: v.fantasyAvatar }),
|
|
321
328
|
...(v.generated_image_variation_generics === undefined
|
|
322
329
|
? null
|
|
323
330
|
: { generatedImageVariationGenerics: v.generated_image_variation_generics }),
|
|
@@ -334,6 +341,7 @@ export namespace GeneratedImages$ {
|
|
|
334
341
|
});
|
|
335
342
|
|
|
336
343
|
export type Outbound = {
|
|
344
|
+
fantasyAvatar?: boolean | null | undefined;
|
|
337
345
|
generated_image_variation_generics?:
|
|
338
346
|
| Array<GetGenerationByIdGeneratedImageVariationGeneric$.Outbound>
|
|
339
347
|
| undefined;
|
|
@@ -350,6 +358,7 @@ export namespace GeneratedImages$ {
|
|
|
350
358
|
|
|
351
359
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GeneratedImages> = z
|
|
352
360
|
.object({
|
|
361
|
+
fantasyAvatar: z.nullable(z.boolean()).optional(),
|
|
353
362
|
generatedImageVariationGenerics: z
|
|
354
363
|
.array(
|
|
355
364
|
z.lazy(() => GetGenerationByIdGeneratedImageVariationGeneric$.outboundSchema)
|
|
@@ -367,6 +376,7 @@ export namespace GeneratedImages$ {
|
|
|
367
376
|
})
|
|
368
377
|
.transform((v) => {
|
|
369
378
|
return {
|
|
379
|
+
...(v.fantasyAvatar === undefined ? null : { fantasyAvatar: v.fantasyAvatar }),
|
|
370
380
|
...(v.generatedImageVariationGenerics === undefined
|
|
371
381
|
? null
|
|
372
382
|
: { generated_image_variation_generics: v.generatedImageVariationGenerics }),
|
package/src/sdk/user.ts
CHANGED
|
@@ -7,8 +7,8 @@ import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
|
|
7
7
|
import { HTTPClient } from "../lib/http";
|
|
8
8
|
import * as schemas$ from "../lib/schemas";
|
|
9
9
|
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
|
10
|
-
import * as errors from "
|
|
11
|
-
import * as operations from "
|
|
10
|
+
import * as errors from "./models/errors";
|
|
11
|
+
import * as operations from "./models/operations";
|
|
12
12
|
|
|
13
13
|
export class User extends ClientSDK {
|
|
14
14
|
private readonly options$: SDKOptions & { hooks?: SDKHooks };
|
package/src/sdk/variation.ts
CHANGED
|
@@ -8,8 +8,8 @@ import * as enc$ from "../lib/encodings";
|
|
|
8
8
|
import { HTTPClient } from "../lib/http";
|
|
9
9
|
import * as schemas$ from "../lib/schemas";
|
|
10
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
|
11
|
-
import * as errors from "
|
|
12
|
-
import * as operations from "
|
|
11
|
+
import * as errors from "./models/errors";
|
|
12
|
+
import * as operations from "./models/operations";
|
|
13
13
|
|
|
14
14
|
export class Variation extends ClientSDK {
|
|
15
15
|
private readonly options$: SDKOptions & { hooks?: SDKHooks };
|