@leonardo-ai/sdk 4.5.2 → 4.5.3

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.
@@ -1,12 +1,12 @@
1
1
  lockVersion: 2.0.0
2
2
  id: edadaac9-e645-4ef4-a6c7-a1f73bc19385
3
3
  management:
4
- docChecksum: 7c91bc95d1730e698a2ae7dc1bf78a2b
4
+ docChecksum: 339173b7deb9a3222da893656355435c
5
5
  docVersion: v1.0.0
6
- speakeasyVersion: 1.235.0
7
- generationVersion: 2.298.0
8
- releaseVersion: 4.5.2
9
- configChecksum: 6dbd2c5ff2c8d9577594119860014395
6
+ speakeasyVersion: 1.235.2
7
+ generationVersion: 2.298.2
8
+ releaseVersion: 4.5.3
9
+ configChecksum: d1606ce5d958b9dc2a3719b474e37196
10
10
  repoURL: https://github.com/Leonardo-Interactive/leonardo-ts-sdk.git
11
11
  repoSubDirectory: .
12
12
  installationURL: https://github.com/Leonardo-Interactive/leonardo-ts-sdk
package/lib/config.d.ts CHANGED
@@ -24,8 +24,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
24
24
  export declare const SDK_METADATA: Readonly<{
25
25
  language: "typescript";
26
26
  openapiDocVersion: "v1.0.0";
27
- sdkVersion: "4.5.2";
28
- genVersion: "2.298.0";
29
- userAgent: "speakeasy-sdk/typescript 4.5.2 2.298.0 v1.0.0 @leonardo-ai/sdk";
27
+ sdkVersion: "4.5.3";
28
+ genVersion: "2.298.2";
29
+ userAgent: "speakeasy-sdk/typescript 4.5.3 2.298.2 v1.0.0 @leonardo-ai/sdk";
30
30
  }>;
31
31
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -32,8 +32,8 @@ exports.serverURLFromOptions = serverURLFromOptions;
32
32
  exports.SDK_METADATA = Object.freeze({
33
33
  language: "typescript",
34
34
  openapiDocVersion: "v1.0.0",
35
- sdkVersion: "4.5.2",
36
- genVersion: "2.298.0",
37
- userAgent: "speakeasy-sdk/typescript 4.5.2 2.298.0 v1.0.0 @leonardo-ai/sdk",
35
+ sdkVersion: "4.5.3",
36
+ genVersion: "2.298.2",
37
+ userAgent: "speakeasy-sdk/typescript 4.5.3 2.298.2 v1.0.0 @leonardo-ai/sdk",
38
38
  });
39
39
  //# sourceMappingURL=config.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leonardo-ai/sdk",
3
- "version": "4.5.2",
3
+ "version": "4.5.3",
4
4
  "author": "leonardoai",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
@@ -127,7 +127,7 @@ export type CreateGenerationRequestBody = {
127
127
  */
128
128
  scheduler?: shared.SdGenerationSchedulers | undefined;
129
129
  /**
130
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
130
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
131
131
  */
132
132
  sdVersion?: shared.SdVersions | undefined;
133
133
  seed?: number | null | undefined;
@@ -33,7 +33,7 @@ export type CreateModelRequestBody = {
33
33
  */
34
34
  resolution?: number | null | undefined;
35
35
  /**
36
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
36
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
37
37
  */
38
38
  sdVersion?: shared.SdVersions | undefined;
39
39
  /**
@@ -64,7 +64,7 @@ export type GetGenerationByIdLoras = {
64
64
  */
65
65
  akUUID?: string | null | undefined;
66
66
  /**
67
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
67
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
68
68
  */
69
69
  baseModel?: shared.SdVersions | undefined;
70
70
  /**
@@ -149,7 +149,7 @@ export type GetGenerationByIdGenerations = {
149
149
  */
150
150
  scheduler?: shared.SdGenerationSchedulers | undefined;
151
151
  /**
152
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
152
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
153
153
  */
154
154
  sdVersion?: shared.SdVersions | undefined;
155
155
  seed?: number | null | undefined;
@@ -59,7 +59,7 @@ export type Elements = {
59
59
  */
60
60
  akUUID?: string | null | undefined;
61
61
  /**
62
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
62
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
63
63
  */
64
64
  baseModel?: shared.SdVersions | undefined;
65
65
  /**
@@ -144,7 +144,7 @@ export type GetGenerationsByUserIdGenerations = {
144
144
  */
145
145
  scheduler?: shared.SdGenerationSchedulers | undefined;
146
146
  /**
147
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
147
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
148
148
  */
149
149
  sdVersion?: shared.SdVersions | undefined;
150
150
  seed?: number | null | undefined;
@@ -19,7 +19,7 @@ export type GetModelByIdCustomModels = {
19
19
  name?: string | undefined;
20
20
  public?: boolean | undefined;
21
21
  /**
22
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
22
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
23
23
  */
24
24
  sdVersion?: shared.SdVersions | undefined;
25
25
  /**
@@ -9,7 +9,7 @@ export type Loras = {
9
9
  */
10
10
  akUUID?: string | null | undefined;
11
11
  /**
12
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
12
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
13
13
  */
14
14
  baseModel?: shared.SdVersions | undefined;
15
15
  /**
@@ -1,10 +1,15 @@
1
1
  import * as z from "zod";
2
2
  /**
3
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
3
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
4
4
  */
5
5
  export declare enum SdVersions {
6
6
  V15 = "v1_5",
7
- V2 = "v2"
7
+ V2 = "v2",
8
+ V3 = "v3",
9
+ Sdxl08 = "SDXL_0_8",
10
+ Sdxl09 = "SDXL_0_9",
11
+ Sdxl10 = "SDXL_1_0",
12
+ SdxlLightning = "SDXL_LIGHTNING"
8
13
  }
9
14
  /** @internal */
10
15
  export declare const SdVersions$: z.ZodNativeEnum<typeof SdVersions>;
@@ -1 +1 @@
1
- {"version":3,"file":"sdversions.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/sdversions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;GAEG;AACH,oBAAY,UAAU;IAClB,GAAG,SAAS;IACZ,EAAE,OAAO;CACZ;AAED,gBAAgB;AAChB,eAAO,MAAM,WAAW,oCAA2B,CAAC"}
1
+ {"version":3,"file":"sdversions.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/sdversions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;GAEG;AACH,oBAAY,UAAU;IAClB,GAAG,SAAS;IACZ,EAAE,OAAO;IACT,EAAE,OAAO;IACT,MAAM,aAAa;IACnB,MAAM,aAAa;IACnB,MAAM,aAAa;IACnB,aAAa,mBAAmB;CACnC;AAED,gBAAgB;AAChB,eAAO,MAAM,WAAW,oCAA2B,CAAC"}
@@ -29,12 +29,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SdVersions$ = exports.SdVersions = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  /**
32
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
32
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
33
33
  */
34
34
  var SdVersions;
35
35
  (function (SdVersions) {
36
36
  SdVersions["V15"] = "v1_5";
37
37
  SdVersions["V2"] = "v2";
38
+ SdVersions["V3"] = "v3";
39
+ SdVersions["Sdxl08"] = "SDXL_0_8";
40
+ SdVersions["Sdxl09"] = "SDXL_0_9";
41
+ SdVersions["Sdxl10"] = "SDXL_1_0";
42
+ SdVersions["SdxlLightning"] = "SDXL_LIGHTNING";
38
43
  })(SdVersions || (exports.SdVersions = SdVersions = {}));
39
44
  /** @internal */
40
45
  exports.SdVersions$ = z.nativeEnum(SdVersions);
@@ -1 +1 @@
1
- {"version":3,"file":"sdversions.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/sdversions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAEzB;;GAEG;AACH,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,0BAAY,CAAA;IACZ,uBAAS,CAAA;AACb,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED,gBAAgB;AACH,QAAA,WAAW,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"sdversions.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/sdversions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAEzB;;GAEG;AACH,IAAY,UAQX;AARD,WAAY,UAAU;IAClB,0BAAY,CAAA;IACZ,uBAAS,CAAA;IACT,uBAAS,CAAA;IACT,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,8CAAgC,CAAA;AACpC,CAAC,EARW,UAAU,0BAAV,UAAU,QAQrB;AAED,gBAAgB;AACH,QAAA,WAAW,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC"}
package/src/lib/config.ts CHANGED
@@ -54,7 +54,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
54
54
  export const SDK_METADATA = Object.freeze({
55
55
  language: "typescript",
56
56
  openapiDocVersion: "v1.0.0",
57
- sdkVersion: "4.5.2",
58
- genVersion: "2.298.0",
59
- userAgent: "speakeasy-sdk/typescript 4.5.2 2.298.0 v1.0.0 @leonardo-ai/sdk",
57
+ sdkVersion: "4.5.3",
58
+ genVersion: "2.298.2",
59
+ userAgent: "speakeasy-sdk/typescript 4.5.3 2.298.2 v1.0.0 @leonardo-ai/sdk",
60
60
  });
@@ -133,7 +133,7 @@ export type CreateGenerationRequestBody = {
133
133
  */
134
134
  scheduler?: shared.SdGenerationSchedulers | undefined;
135
135
  /**
136
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
136
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
137
137
  */
138
138
  sdVersion?: shared.SdVersions | undefined;
139
139
  seed?: number | null | undefined;
@@ -38,7 +38,7 @@ export type CreateModelRequestBody = {
38
38
  */
39
39
  resolution?: number | null | undefined;
40
40
  /**
41
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
41
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
42
42
  */
43
43
  sdVersion?: shared.SdVersions | undefined;
44
44
  /**
@@ -74,7 +74,7 @@ export type GetGenerationByIdLoras = {
74
74
  */
75
75
  akUUID?: string | null | undefined;
76
76
  /**
77
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
77
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
78
78
  */
79
79
  baseModel?: shared.SdVersions | undefined;
80
80
  /**
@@ -161,7 +161,7 @@ export type GetGenerationByIdGenerations = {
161
161
  */
162
162
  scheduler?: shared.SdGenerationSchedulers | undefined;
163
163
  /**
164
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
164
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
165
165
  */
166
166
  sdVersion?: shared.SdVersions | undefined;
167
167
  seed?: number | null | undefined;
@@ -69,7 +69,7 @@ export type Elements = {
69
69
  */
70
70
  akUUID?: string | null | undefined;
71
71
  /**
72
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
72
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
73
73
  */
74
74
  baseModel?: shared.SdVersions | undefined;
75
75
  /**
@@ -156,7 +156,7 @@ export type GetGenerationsByUserIdGenerations = {
156
156
  */
157
157
  scheduler?: shared.SdGenerationSchedulers | undefined;
158
158
  /**
159
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
159
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
160
160
  */
161
161
  sdVersion?: shared.SdVersions | undefined;
162
162
  seed?: number | null | undefined;
@@ -25,7 +25,7 @@ export type GetModelByIdCustomModels = {
25
25
  name?: string | undefined;
26
26
  public?: boolean | undefined;
27
27
  /**
28
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
28
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
29
29
  */
30
30
  sdVersion?: shared.SdVersions | undefined;
31
31
  /**
@@ -14,7 +14,7 @@ export type Loras = {
14
14
  */
15
15
  akUUID?: string | null | undefined;
16
16
  /**
17
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
17
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
18
18
  */
19
19
  baseModel?: shared.SdVersions | undefined;
20
20
  /**
@@ -5,11 +5,16 @@
5
5
  import * as z from "zod";
6
6
 
7
7
  /**
8
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5.
8
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
9
9
  */
10
10
  export enum SdVersions {
11
11
  V15 = "v1_5",
12
12
  V2 = "v2",
13
+ V3 = "v3",
14
+ Sdxl08 = "SDXL_0_8",
15
+ Sdxl09 = "SDXL_0_9",
16
+ Sdxl10 = "SDXL_1_0",
17
+ SdxlLightning = "SDXL_LIGHTNING",
13
18
  }
14
19
 
15
20
  /** @internal */