@leonardo-ai/sdk 1.61.0 → 1.64.2

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 (72) hide show
  1. package/README.md +53 -12
  2. package/dist/internal/utils/queryparams.js +4 -2
  3. package/dist/internal/utils/security.js +1 -1
  4. package/dist/sdk/element.d.ts +14 -0
  5. package/dist/sdk/element.js +145 -0
  6. package/dist/sdk/models/operations/creategeneration.d.ts +19 -12
  7. package/dist/sdk/models/operations/creategeneration.js +21 -0
  8. package/dist/sdk/models/operations/createmodel.d.ts +4 -0
  9. package/dist/sdk/models/operations/createmodel.js +5 -0
  10. package/dist/sdk/models/operations/createvariationnobg.d.ts +40 -0
  11. package/dist/sdk/models/operations/createvariationnobg.js +112 -0
  12. package/dist/sdk/models/operations/createvariationupscale.d.ts +4 -0
  13. package/dist/sdk/models/operations/createvariationupscale.js +5 -0
  14. package/dist/sdk/models/operations/getelements.d.ts +68 -0
  15. package/dist/sdk/models/operations/getelements.js +153 -0
  16. package/dist/sdk/models/operations/getgenerationbyid.d.ts +70 -1
  17. package/dist/sdk/models/operations/getgenerationbyid.js +112 -1
  18. package/dist/sdk/models/operations/getgenerationsbyuserid.d.ts +70 -1
  19. package/dist/sdk/models/operations/getgenerationsbyuserid.js +112 -1
  20. package/dist/sdk/models/operations/getuserself.d.ts +5 -1
  21. package/dist/sdk/models/operations/getuserself.js +23 -3
  22. package/dist/sdk/models/operations/index.d.ts +2 -0
  23. package/dist/sdk/models/operations/index.js +2 -0
  24. package/dist/sdk/models/operations/postgenerationstexture.d.ts +4 -0
  25. package/dist/sdk/models/operations/postgenerationstexture.js +5 -0
  26. package/dist/sdk/models/operations/postvariationsunzoom.d.ts +4 -0
  27. package/dist/sdk/models/operations/postvariationsunzoom.js +5 -0
  28. package/dist/sdk/models/shared/elementinput.d.ts +11 -0
  29. package/dist/sdk/models/shared/elementinput.js +50 -0
  30. package/dist/sdk/models/shared/index.d.ts +1 -0
  31. package/dist/sdk/models/shared/index.js +1 -0
  32. package/dist/sdk/models/shared/sdgenerationschedulers.d.ts +2 -1
  33. package/dist/sdk/models/shared/sdgenerationschedulers.js +1 -0
  34. package/dist/sdk/models/shared/sdgenerationstyle.d.ts +15 -2
  35. package/dist/sdk/models/shared/sdgenerationstyle.js +14 -1
  36. package/dist/sdk/sdk.d.ts +2 -0
  37. package/dist/sdk/sdk.js +5 -3
  38. package/dist/sdk/user.d.ts +1 -1
  39. package/dist/sdk/user.js +1 -1
  40. package/dist/sdk/variation.d.ts +7 -0
  41. package/dist/sdk/variation.js +73 -0
  42. package/docs/models/operations/creategeneration200applicationjsonsdgenerationoutput.md +4 -3
  43. package/docs/models/operations/creategenerationrequestbody.md +39 -36
  44. package/docs/models/operations/createmodel200applicationjsonsdtrainingoutput.md +4 -3
  45. package/docs/models/operations/createvariationnobg200applicationjson.md +10 -0
  46. package/docs/models/operations/createvariationnobg200applicationjsonsdupscalejoboutput.md +9 -0
  47. package/docs/models/operations/createvariationnobgrequestbody.md +11 -0
  48. package/docs/models/operations/createvariationnobgresponse.md +11 -0
  49. package/docs/models/operations/createvariationupscale200applicationjsonsdupscalejoboutput.md +4 -3
  50. package/docs/models/operations/getelements200applicationjson.md +10 -0
  51. package/docs/models/operations/getelements200applicationjsonloras.md +18 -0
  52. package/docs/models/operations/getelementsresponse.md +11 -0
  53. package/docs/models/operations/getgenerationbyid200applicationjsongenerations.md +25 -19
  54. package/docs/models/operations/getgenerationbyid200applicationjsongenerationsgenerationelements.md +12 -0
  55. package/docs/models/operations/getgenerationbyid200applicationjsongenerationsgenerationelementsloras.md +17 -0
  56. package/docs/models/operations/getgenerationsbyuserid200applicationjsongenerations.md +25 -19
  57. package/docs/models/operations/getgenerationsbyuserid200applicationjsongenerationsgenerationelements.md +12 -0
  58. package/docs/models/operations/getgenerationsbyuserid200applicationjsongenerationsgenerationelementselements.md +17 -0
  59. package/docs/models/operations/getuserself200applicationjsonuserdetails.md +5 -1
  60. package/docs/models/operations/postgenerationstexture200applicationjsontexturegenerationjoboutput.md +4 -3
  61. package/docs/models/operations/postvariationsunzoom200applicationjsonsdunzoomoutput.md +4 -3
  62. package/docs/models/shared/elementinput.md +9 -0
  63. package/docs/models/shared/sdgenerationschedulers.md +2 -1
  64. package/docs/models/shared/sdgenerationstyle.md +18 -5
  65. package/docs/sdks/dataset/README.md +11 -21
  66. package/docs/sdks/element/README.md +40 -0
  67. package/docs/sdks/generation/README.md +16 -25
  68. package/docs/sdks/initimage/README.md +5 -11
  69. package/docs/sdks/model/README.md +12 -24
  70. package/docs/sdks/user/README.md +2 -4
  71. package/docs/sdks/variation/README.md +42 -10
  72. package/package.json +5 -2
@@ -0,0 +1,68 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import * as shared from "../shared";
3
+ import { AxiosResponse } from "axios";
4
+ /**
5
+ * columns and relationships of "elements"
6
+ */
7
+ export declare class GetElements200ApplicationJSONLoras extends SpeakeasyBase {
8
+ /**
9
+ * Unique identifier for the element. Elements can be found from the List Elements endpoint.
10
+ */
11
+ akUUID?: string;
12
+ /**
13
+ * 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.
14
+ */
15
+ baseModel?: shared.SdVersions;
16
+ /**
17
+ * Name of the creator of the element
18
+ */
19
+ creatorName?: string;
20
+ /**
21
+ * Description for the element
22
+ */
23
+ description?: string;
24
+ /**
25
+ * Name of the element
26
+ */
27
+ name?: string;
28
+ /**
29
+ * URL of the element image
30
+ */
31
+ urlImage?: string;
32
+ /**
33
+ * Default weight for the element
34
+ */
35
+ weightDefault?: number;
36
+ /**
37
+ * Maximum weight for the element
38
+ */
39
+ weightMax?: number;
40
+ /**
41
+ * Minimum weight for the element
42
+ */
43
+ weightMin?: number;
44
+ }
45
+ /**
46
+ * Responses for GET /api/rest/v1/elements
47
+ */
48
+ export declare class GetElements200ApplicationJSON extends SpeakeasyBase {
49
+ loras?: GetElements200ApplicationJSONLoras[];
50
+ }
51
+ export declare class GetElementsResponse extends SpeakeasyBase {
52
+ /**
53
+ * HTTP response content type for this operation
54
+ */
55
+ contentType: string;
56
+ /**
57
+ * HTTP response status code for this operation
58
+ */
59
+ statusCode: number;
60
+ /**
61
+ * Raw HTTP response; suitable for custom response parsing
62
+ */
63
+ rawResponse?: AxiosResponse;
64
+ /**
65
+ * Responses for GET /api/rest/v1/elements
66
+ */
67
+ getElements200ApplicationJSONObject?: GetElements200ApplicationJSON;
68
+ }
@@ -0,0 +1,153 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __extends = (this && this.__extends) || (function () {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10
+ return extendStatics(d, b);
11
+ };
12
+ return function (d, b) {
13
+ if (typeof b !== "function" && b !== null)
14
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
+ extendStatics(d, b);
16
+ function __() { this.constructor = d; }
17
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
+ };
19
+ })();
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
32
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
33
+ }) : function(o, v) {
34
+ o["default"] = v;
35
+ });
36
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
37
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
38
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
39
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
40
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
41
+ };
42
+ var __importStar = (this && this.__importStar) || function (mod) {
43
+ if (mod && mod.__esModule) return mod;
44
+ var result = {};
45
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
46
+ __setModuleDefault(result, mod);
47
+ return result;
48
+ };
49
+ var __metadata = (this && this.__metadata) || function (k, v) {
50
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
51
+ };
52
+ Object.defineProperty(exports, "__esModule", { value: true });
53
+ exports.GetElementsResponse = exports.GetElements200ApplicationJSON = exports.GetElements200ApplicationJSONLoras = void 0;
54
+ var utils_1 = require("../../../internal/utils");
55
+ var shared = __importStar(require("../shared"));
56
+ var class_transformer_1 = require("class-transformer");
57
+ /**
58
+ * columns and relationships of "elements"
59
+ */
60
+ var GetElements200ApplicationJSONLoras = /** @class */ (function (_super) {
61
+ __extends(GetElements200ApplicationJSONLoras, _super);
62
+ function GetElements200ApplicationJSONLoras() {
63
+ return _super !== null && _super.apply(this, arguments) || this;
64
+ }
65
+ __decorate([
66
+ (0, utils_1.SpeakeasyMetadata)(),
67
+ (0, class_transformer_1.Expose)({ name: "akUUID" }),
68
+ __metadata("design:type", String)
69
+ ], GetElements200ApplicationJSONLoras.prototype, "akUUID", void 0);
70
+ __decorate([
71
+ (0, utils_1.SpeakeasyMetadata)(),
72
+ (0, class_transformer_1.Expose)({ name: "baseModel" }),
73
+ __metadata("design:type", String)
74
+ ], GetElements200ApplicationJSONLoras.prototype, "baseModel", void 0);
75
+ __decorate([
76
+ (0, utils_1.SpeakeasyMetadata)(),
77
+ (0, class_transformer_1.Expose)({ name: "creatorName" }),
78
+ __metadata("design:type", String)
79
+ ], GetElements200ApplicationJSONLoras.prototype, "creatorName", void 0);
80
+ __decorate([
81
+ (0, utils_1.SpeakeasyMetadata)(),
82
+ (0, class_transformer_1.Expose)({ name: "description" }),
83
+ __metadata("design:type", String)
84
+ ], GetElements200ApplicationJSONLoras.prototype, "description", void 0);
85
+ __decorate([
86
+ (0, utils_1.SpeakeasyMetadata)(),
87
+ (0, class_transformer_1.Expose)({ name: "name" }),
88
+ __metadata("design:type", String)
89
+ ], GetElements200ApplicationJSONLoras.prototype, "name", void 0);
90
+ __decorate([
91
+ (0, utils_1.SpeakeasyMetadata)(),
92
+ (0, class_transformer_1.Expose)({ name: "urlImage" }),
93
+ __metadata("design:type", String)
94
+ ], GetElements200ApplicationJSONLoras.prototype, "urlImage", void 0);
95
+ __decorate([
96
+ (0, utils_1.SpeakeasyMetadata)(),
97
+ (0, class_transformer_1.Expose)({ name: "weightDefault" }),
98
+ __metadata("design:type", Number)
99
+ ], GetElements200ApplicationJSONLoras.prototype, "weightDefault", void 0);
100
+ __decorate([
101
+ (0, utils_1.SpeakeasyMetadata)(),
102
+ (0, class_transformer_1.Expose)({ name: "weightMax" }),
103
+ __metadata("design:type", Number)
104
+ ], GetElements200ApplicationJSONLoras.prototype, "weightMax", void 0);
105
+ __decorate([
106
+ (0, utils_1.SpeakeasyMetadata)(),
107
+ (0, class_transformer_1.Expose)({ name: "weightMin" }),
108
+ __metadata("design:type", Number)
109
+ ], GetElements200ApplicationJSONLoras.prototype, "weightMin", void 0);
110
+ return GetElements200ApplicationJSONLoras;
111
+ }(utils_1.SpeakeasyBase));
112
+ exports.GetElements200ApplicationJSONLoras = GetElements200ApplicationJSONLoras;
113
+ /**
114
+ * Responses for GET /api/rest/v1/elements
115
+ */
116
+ var GetElements200ApplicationJSON = /** @class */ (function (_super) {
117
+ __extends(GetElements200ApplicationJSON, _super);
118
+ function GetElements200ApplicationJSON() {
119
+ return _super !== null && _super.apply(this, arguments) || this;
120
+ }
121
+ __decorate([
122
+ (0, utils_1.SpeakeasyMetadata)({ elemType: GetElements200ApplicationJSONLoras }),
123
+ (0, class_transformer_1.Expose)({ name: "loras" }),
124
+ (0, class_transformer_1.Type)(function () { return GetElements200ApplicationJSONLoras; }),
125
+ __metadata("design:type", Array)
126
+ ], GetElements200ApplicationJSON.prototype, "loras", void 0);
127
+ return GetElements200ApplicationJSON;
128
+ }(utils_1.SpeakeasyBase));
129
+ exports.GetElements200ApplicationJSON = GetElements200ApplicationJSON;
130
+ var GetElementsResponse = /** @class */ (function (_super) {
131
+ __extends(GetElementsResponse, _super);
132
+ function GetElementsResponse() {
133
+ return _super !== null && _super.apply(this, arguments) || this;
134
+ }
135
+ __decorate([
136
+ (0, utils_1.SpeakeasyMetadata)(),
137
+ __metadata("design:type", String)
138
+ ], GetElementsResponse.prototype, "contentType", void 0);
139
+ __decorate([
140
+ (0, utils_1.SpeakeasyMetadata)(),
141
+ __metadata("design:type", Number)
142
+ ], GetElementsResponse.prototype, "statusCode", void 0);
143
+ __decorate([
144
+ (0, utils_1.SpeakeasyMetadata)(),
145
+ __metadata("design:type", Object)
146
+ ], GetElementsResponse.prototype, "rawResponse", void 0);
147
+ __decorate([
148
+ (0, utils_1.SpeakeasyMetadata)(),
149
+ __metadata("design:type", GetElements200ApplicationJSON)
150
+ ], GetElementsResponse.prototype, "getElements200ApplicationJSONObject", void 0);
151
+ return GetElementsResponse;
152
+ }(utils_1.SpeakeasyBase));
153
+ exports.GetElementsResponse = GetElementsResponse;
@@ -32,12 +32,61 @@ export declare class GetGenerationById200ApplicationJSONGenerationsGeneratedImag
32
32
  nsfw?: boolean;
33
33
  url?: string;
34
34
  }
35
+ /**
36
+ * Element used for the generation.
37
+ */
38
+ export declare class GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras extends SpeakeasyBase {
39
+ /**
40
+ * Unique identifier for the element. Elements can be found from the List Elements endpoint.
41
+ */
42
+ akUUID?: string;
43
+ /**
44
+ * 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.
45
+ */
46
+ baseModel?: shared.SdVersions;
47
+ /**
48
+ * Description for the element
49
+ */
50
+ description?: string;
51
+ /**
52
+ * Name of the element
53
+ */
54
+ name?: string;
55
+ /**
56
+ * URL of the element image
57
+ */
58
+ urlImage?: string;
59
+ /**
60
+ * Default weight for the element
61
+ */
62
+ weightDefault?: number;
63
+ /**
64
+ * Maximum weight for the element
65
+ */
66
+ weightMax?: number;
67
+ /**
68
+ * Minimum weight for the element
69
+ */
70
+ weightMin?: number;
71
+ }
72
+ /**
73
+ * This table captures the elements that are applied to Generations.
74
+ */
75
+ export declare class GetGenerationById200ApplicationJSONGenerationsGenerationElements extends SpeakeasyBase {
76
+ id?: number;
77
+ /**
78
+ * Element used for the generation.
79
+ */
80
+ lora?: GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras;
81
+ weightApplied?: number;
82
+ }
35
83
  /**
36
84
  * columns and relationships of "generations"
37
85
  */
38
86
  export declare class GetGenerationById200ApplicationJSONGenerations extends SpeakeasyBase {
39
87
  createdAt?: string;
40
88
  generatedImages?: GetGenerationById200ApplicationJSONGenerationsGeneratedImages[];
89
+ generationElements?: GetGenerationById200ApplicationJSONGenerationsGenerationElements[];
41
90
  guidanceScale?: number;
42
91
  id?: string;
43
92
  imageHeight?: number;
@@ -47,10 +96,30 @@ export declare class GetGenerationById200ApplicationJSONGenerations extends Spea
47
96
  modelId?: string;
48
97
  negativePrompt?: string;
49
98
  /**
50
- * The style to generate images with.
99
+ * If photoReal feature was used.
100
+ */
101
+ photoReal?: boolean;
102
+ /**
103
+ * Depth of field of photoReal used. 0.55 is low, 0.5 is medium, and 0.45 is high.
104
+ */
105
+ photoRealStrength?: number;
106
+ /**
107
+ * The style to generate images with. When photoReal is enabled, use CINEMATIC, CREATIVE, VIBRANT, or NONE. When alchemy is disabled, use LEONARDO or NONE. When alchemy is enabled, use ANIME, CREATIVE, DYNAMIC, ENVIRONMENT, GENERAL, ILLUSTRATION, PHOTOGRAPHY, RAYTRACED, RENDER_3D, SKETCH_BW, SKETCH_COLOR, or NONE.
51
108
  */
52
109
  presetStyle?: shared.SdGenerationStyle;
53
110
  prompt?: string;
111
+ /**
112
+ * If prompt magic was used.
113
+ */
114
+ promptMagic?: boolean;
115
+ /**
116
+ * Strength of prompt magic used.
117
+ */
118
+ promptMagicStrength?: number;
119
+ /**
120
+ * Version of prompt magic used.
121
+ */
122
+ promptMagicVersion?: string;
54
123
  public?: boolean;
55
124
  /**
56
125
  * The scheduler to generate images with. Defaults to EULER_DISCRETE if not specified.
@@ -50,7 +50,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
50
50
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
51
51
  };
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
- exports.GetGenerationByIdResponse = exports.GetGenerationById200ApplicationJSON = exports.GetGenerationById200ApplicationJSONGenerations = exports.GetGenerationById200ApplicationJSONGenerationsGeneratedImages = exports.GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric = exports.GetGenerationByIdRequest = void 0;
53
+ exports.GetGenerationByIdResponse = exports.GetGenerationById200ApplicationJSON = exports.GetGenerationById200ApplicationJSONGenerations = exports.GetGenerationById200ApplicationJSONGenerationsGenerationElements = exports.GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras = exports.GetGenerationById200ApplicationJSONGenerationsGeneratedImages = exports.GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric = exports.GetGenerationByIdRequest = void 0;
54
54
  var utils_1 = require("../../../internal/utils");
55
55
  var shared = __importStar(require("../shared"));
56
56
  var class_transformer_1 = require("class-transformer");
@@ -138,6 +138,84 @@ var GetGenerationById200ApplicationJSONGenerationsGeneratedImages = /** @class *
138
138
  return GetGenerationById200ApplicationJSONGenerationsGeneratedImages;
139
139
  }(utils_1.SpeakeasyBase));
140
140
  exports.GetGenerationById200ApplicationJSONGenerationsGeneratedImages = GetGenerationById200ApplicationJSONGenerationsGeneratedImages;
141
+ /**
142
+ * Element used for the generation.
143
+ */
144
+ var GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras = /** @class */ (function (_super) {
145
+ __extends(GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras, _super);
146
+ function GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras() {
147
+ return _super !== null && _super.apply(this, arguments) || this;
148
+ }
149
+ __decorate([
150
+ (0, utils_1.SpeakeasyMetadata)(),
151
+ (0, class_transformer_1.Expose)({ name: "akUUID" }),
152
+ __metadata("design:type", String)
153
+ ], GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras.prototype, "akUUID", void 0);
154
+ __decorate([
155
+ (0, utils_1.SpeakeasyMetadata)(),
156
+ (0, class_transformer_1.Expose)({ name: "baseModel" }),
157
+ __metadata("design:type", String)
158
+ ], GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras.prototype, "baseModel", void 0);
159
+ __decorate([
160
+ (0, utils_1.SpeakeasyMetadata)(),
161
+ (0, class_transformer_1.Expose)({ name: "description" }),
162
+ __metadata("design:type", String)
163
+ ], GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras.prototype, "description", void 0);
164
+ __decorate([
165
+ (0, utils_1.SpeakeasyMetadata)(),
166
+ (0, class_transformer_1.Expose)({ name: "name" }),
167
+ __metadata("design:type", String)
168
+ ], GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras.prototype, "name", void 0);
169
+ __decorate([
170
+ (0, utils_1.SpeakeasyMetadata)(),
171
+ (0, class_transformer_1.Expose)({ name: "urlImage" }),
172
+ __metadata("design:type", String)
173
+ ], GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras.prototype, "urlImage", void 0);
174
+ __decorate([
175
+ (0, utils_1.SpeakeasyMetadata)(),
176
+ (0, class_transformer_1.Expose)({ name: "weightDefault" }),
177
+ __metadata("design:type", Number)
178
+ ], GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras.prototype, "weightDefault", void 0);
179
+ __decorate([
180
+ (0, utils_1.SpeakeasyMetadata)(),
181
+ (0, class_transformer_1.Expose)({ name: "weightMax" }),
182
+ __metadata("design:type", Number)
183
+ ], GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras.prototype, "weightMax", void 0);
184
+ __decorate([
185
+ (0, utils_1.SpeakeasyMetadata)(),
186
+ (0, class_transformer_1.Expose)({ name: "weightMin" }),
187
+ __metadata("design:type", Number)
188
+ ], GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras.prototype, "weightMin", void 0);
189
+ return GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras;
190
+ }(utils_1.SpeakeasyBase));
191
+ exports.GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras = GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras;
192
+ /**
193
+ * This table captures the elements that are applied to Generations.
194
+ */
195
+ var GetGenerationById200ApplicationJSONGenerationsGenerationElements = /** @class */ (function (_super) {
196
+ __extends(GetGenerationById200ApplicationJSONGenerationsGenerationElements, _super);
197
+ function GetGenerationById200ApplicationJSONGenerationsGenerationElements() {
198
+ return _super !== null && _super.apply(this, arguments) || this;
199
+ }
200
+ __decorate([
201
+ (0, utils_1.SpeakeasyMetadata)(),
202
+ (0, class_transformer_1.Expose)({ name: "id" }),
203
+ __metadata("design:type", Number)
204
+ ], GetGenerationById200ApplicationJSONGenerationsGenerationElements.prototype, "id", void 0);
205
+ __decorate([
206
+ (0, utils_1.SpeakeasyMetadata)(),
207
+ (0, class_transformer_1.Expose)({ name: "lora" }),
208
+ (0, class_transformer_1.Type)(function () { return GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras; }),
209
+ __metadata("design:type", GetGenerationById200ApplicationJSONGenerationsGenerationElementsLoras)
210
+ ], GetGenerationById200ApplicationJSONGenerationsGenerationElements.prototype, "lora", void 0);
211
+ __decorate([
212
+ (0, utils_1.SpeakeasyMetadata)(),
213
+ (0, class_transformer_1.Expose)({ name: "weightApplied" }),
214
+ __metadata("design:type", Number)
215
+ ], GetGenerationById200ApplicationJSONGenerationsGenerationElements.prototype, "weightApplied", void 0);
216
+ return GetGenerationById200ApplicationJSONGenerationsGenerationElements;
217
+ }(utils_1.SpeakeasyBase));
218
+ exports.GetGenerationById200ApplicationJSONGenerationsGenerationElements = GetGenerationById200ApplicationJSONGenerationsGenerationElements;
141
219
  /**
142
220
  * columns and relationships of "generations"
143
221
  */
@@ -157,6 +235,14 @@ var GetGenerationById200ApplicationJSONGenerations = /** @class */ (function (_s
157
235
  (0, class_transformer_1.Type)(function () { return GetGenerationById200ApplicationJSONGenerationsGeneratedImages; }),
158
236
  __metadata("design:type", Array)
159
237
  ], GetGenerationById200ApplicationJSONGenerations.prototype, "generatedImages", void 0);
238
+ __decorate([
239
+ (0, utils_1.SpeakeasyMetadata)({
240
+ elemType: GetGenerationById200ApplicationJSONGenerationsGenerationElements,
241
+ }),
242
+ (0, class_transformer_1.Expose)({ name: "generation_elements" }),
243
+ (0, class_transformer_1.Type)(function () { return GetGenerationById200ApplicationJSONGenerationsGenerationElements; }),
244
+ __metadata("design:type", Array)
245
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "generationElements", void 0);
160
246
  __decorate([
161
247
  (0, utils_1.SpeakeasyMetadata)(),
162
248
  (0, class_transformer_1.Expose)({ name: "guidanceScale" }),
@@ -197,6 +283,16 @@ var GetGenerationById200ApplicationJSONGenerations = /** @class */ (function (_s
197
283
  (0, class_transformer_1.Expose)({ name: "negativePrompt" }),
198
284
  __metadata("design:type", String)
199
285
  ], GetGenerationById200ApplicationJSONGenerations.prototype, "negativePrompt", void 0);
286
+ __decorate([
287
+ (0, utils_1.SpeakeasyMetadata)(),
288
+ (0, class_transformer_1.Expose)({ name: "photoReal" }),
289
+ __metadata("design:type", Boolean)
290
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "photoReal", void 0);
291
+ __decorate([
292
+ (0, utils_1.SpeakeasyMetadata)(),
293
+ (0, class_transformer_1.Expose)({ name: "photoRealStrength" }),
294
+ __metadata("design:type", Number)
295
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "photoRealStrength", void 0);
200
296
  __decorate([
201
297
  (0, utils_1.SpeakeasyMetadata)(),
202
298
  (0, class_transformer_1.Expose)({ name: "presetStyle" }),
@@ -207,6 +303,21 @@ var GetGenerationById200ApplicationJSONGenerations = /** @class */ (function (_s
207
303
  (0, class_transformer_1.Expose)({ name: "prompt" }),
208
304
  __metadata("design:type", String)
209
305
  ], GetGenerationById200ApplicationJSONGenerations.prototype, "prompt", void 0);
306
+ __decorate([
307
+ (0, utils_1.SpeakeasyMetadata)(),
308
+ (0, class_transformer_1.Expose)({ name: "promptMagic" }),
309
+ __metadata("design:type", Boolean)
310
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "promptMagic", void 0);
311
+ __decorate([
312
+ (0, utils_1.SpeakeasyMetadata)(),
313
+ (0, class_transformer_1.Expose)({ name: "promptMagicStrength" }),
314
+ __metadata("design:type", Number)
315
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "promptMagicStrength", void 0);
316
+ __decorate([
317
+ (0, utils_1.SpeakeasyMetadata)(),
318
+ (0, class_transformer_1.Expose)({ name: "promptMagicVersion" }),
319
+ __metadata("design:type", String)
320
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "promptMagicVersion", void 0);
210
321
  __decorate([
211
322
  (0, utils_1.SpeakeasyMetadata)(),
212
323
  (0, class_transformer_1.Expose)({ name: "public" }),
@@ -31,12 +31,61 @@ export declare class GetGenerationsByUserId200ApplicationJSONGenerationsGenerate
31
31
  nsfw?: boolean;
32
32
  url?: string;
33
33
  }
34
+ /**
35
+ * Element used for the generation.
36
+ */
37
+ export declare class GetGenerationsByUserId200ApplicationJSONGenerationsGenerationElementsElements extends SpeakeasyBase {
38
+ /**
39
+ * Unique identifier for the element. Elements can be found from the List Elements endpoint.
40
+ */
41
+ akUUID?: string;
42
+ /**
43
+ * 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.
44
+ */
45
+ baseModel?: shared.SdVersions;
46
+ /**
47
+ * Description for the element
48
+ */
49
+ description?: string;
50
+ /**
51
+ * Name of the element
52
+ */
53
+ name?: string;
54
+ /**
55
+ * URL of the element image
56
+ */
57
+ urlImage?: string;
58
+ /**
59
+ * Default weight for the element
60
+ */
61
+ weightDefault?: number;
62
+ /**
63
+ * Maximum weight for the element
64
+ */
65
+ weightMax?: number;
66
+ /**
67
+ * Minimum weight for the element
68
+ */
69
+ weightMin?: number;
70
+ }
71
+ /**
72
+ * This table captures the elements that are applied to a Generations, also the order and weightings used when applied.
73
+ */
74
+ export declare class GetGenerationsByUserId200ApplicationJSONGenerationsGenerationElements extends SpeakeasyBase {
75
+ id?: number;
76
+ /**
77
+ * Element used for the generation.
78
+ */
79
+ lora?: GetGenerationsByUserId200ApplicationJSONGenerationsGenerationElementsElements;
80
+ weightApplied?: number;
81
+ }
34
82
  /**
35
83
  * columns and relationships of "generations"
36
84
  */
37
85
  export declare class GetGenerationsByUserId200ApplicationJSONGenerations extends SpeakeasyBase {
38
86
  createdAt?: string;
39
87
  generatedImages?: GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImages[];
88
+ generationElements?: GetGenerationsByUserId200ApplicationJSONGenerationsGenerationElements[];
40
89
  guidanceScale?: number;
41
90
  id?: string;
42
91
  imageHeight?: number;
@@ -46,10 +95,30 @@ export declare class GetGenerationsByUserId200ApplicationJSONGenerations extends
46
95
  modelId?: string;
47
96
  negativePrompt?: string;
48
97
  /**
49
- * The style to generate images with.
98
+ * If photoReal feature was used.
99
+ */
100
+ photoReal?: boolean;
101
+ /**
102
+ * Depth of field of photoReal used. 0.55 is low, 0.5 is medium, and 0.45 is high.
103
+ */
104
+ photoRealStrength?: number;
105
+ /**
106
+ * The style to generate images with. When photoReal is enabled, use CINEMATIC, CREATIVE, VIBRANT, or NONE. When alchemy is disabled, use LEONARDO or NONE. When alchemy is enabled, use ANIME, CREATIVE, DYNAMIC, ENVIRONMENT, GENERAL, ILLUSTRATION, PHOTOGRAPHY, RAYTRACED, RENDER_3D, SKETCH_BW, SKETCH_COLOR, or NONE.
50
107
  */
51
108
  presetStyle?: shared.SdGenerationStyle;
52
109
  prompt?: string;
110
+ /**
111
+ * If prompt magic was used.
112
+ */
113
+ promptMagic?: boolean;
114
+ /**
115
+ * Strength of prompt magic used.
116
+ */
117
+ promptMagicStrength?: number;
118
+ /**
119
+ * Version of prompt magic used.
120
+ */
121
+ promptMagicVersion?: string;
53
122
  public?: boolean;
54
123
  /**
55
124
  * The scheduler to generate images with. Defaults to EULER_DISCRETE if not specified.