@leonardo-ai/sdk 1.2.0 → 1.2.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.
- package/README.md +4 -4
- package/dist/sdk/dataset.d.ts +2 -2
- package/dist/sdk/dataset.js +4 -4
- package/dist/sdk/generation.d.ts +2 -2
- package/dist/sdk/generation.js +4 -4
- package/dist/sdk/initimage.d.ts +2 -2
- package/dist/sdk/initimage.js +4 -4
- package/dist/sdk/model.d.ts +2 -2
- package/dist/sdk/model.js +4 -4
- package/dist/sdk/models/operations/creategeneration.d.ts +4 -3
- package/dist/sdk/models/operations/creategeneration.js +27 -3
- package/dist/sdk/models/operations/createmodel.d.ts +4 -3
- package/dist/sdk/models/operations/createmodel.js +27 -3
- package/dist/sdk/models/operations/deletedatasetbyid.d.ts +21 -0
- package/dist/sdk/models/operations/{deleteinitimageid.js → deletedatasetbyid.js} +39 -39
- package/dist/sdk/models/operations/deletegenerationbyid.d.ts +21 -0
- package/dist/sdk/models/operations/{deletedatasetsid.js → deletegenerationbyid.js} +39 -39
- package/dist/sdk/models/operations/deleteinitimagebyid.d.ts +21 -0
- package/dist/sdk/models/operations/{deletegenerationsid.js → deleteinitimagebyid.js} +39 -39
- package/dist/sdk/models/operations/deletemodelbyid.d.ts +21 -0
- package/dist/sdk/models/operations/{deletemodelsid.js → deletemodelbyid.js} +37 -37
- package/dist/sdk/models/operations/getdatasetbyid.d.ts +3 -3
- package/dist/sdk/models/operations/getdatasetbyid.js +3 -3
- package/dist/sdk/models/operations/getgenerationbyid.d.ts +10 -9
- package/dist/sdk/models/operations/getgenerationbyid.js +33 -9
- package/dist/sdk/models/operations/getgenerationsbyuserid.d.ts +10 -9
- package/dist/sdk/models/operations/getgenerationsbyuserid.js +33 -9
- package/dist/sdk/models/operations/getinitimagebyid.d.ts +1 -1
- package/dist/sdk/models/operations/getinitimagebyid.js +1 -1
- package/dist/sdk/models/operations/getmodelbyid.d.ts +6 -5
- package/dist/sdk/models/operations/getmodelbyid.js +29 -5
- package/dist/sdk/models/operations/getvariationbyid.d.ts +4 -3
- package/dist/sdk/models/operations/getvariationbyid.js +27 -3
- package/dist/sdk/models/operations/index.d.ts +4 -4
- package/dist/sdk/models/operations/index.js +4 -4
- package/dist/sdk/models/shared/custommodeltypeenum.d.ts +17 -0
- package/dist/sdk/models/shared/custommodeltypeenum.js +21 -0
- package/dist/sdk/models/shared/index.d.ts +7 -0
- package/dist/sdk/models/shared/index.js +7 -0
- package/dist/sdk/models/shared/jobstatusenum.d.ts +5 -0
- package/dist/sdk/models/shared/jobstatusenum.js +9 -0
- package/dist/sdk/models/shared/sdgenerationschedulersenum.d.ts +9 -0
- package/dist/sdk/models/shared/sdgenerationschedulersenum.js +13 -0
- package/dist/sdk/models/shared/sdgenerationstyleenum.d.ts +5 -0
- package/dist/sdk/models/shared/sdgenerationstyleenum.js +9 -0
- package/dist/sdk/models/shared/sdversionsenum.d.ts +5 -0
- package/dist/sdk/models/shared/sdversionsenum.js +9 -0
- package/dist/sdk/models/shared/strengthenum.d.ts +7 -0
- package/dist/sdk/models/shared/strengthenum.js +11 -0
- package/dist/sdk/models/shared/variationtypeenum.d.ts +8 -0
- package/dist/sdk/models/shared/variationtypeenum.js +12 -0
- package/dist/sdk/sdk.js +1 -1
- package/package.json +1 -1
- package/dist/sdk/models/operations/deletedatasetsid.d.ts +0 -21
- package/dist/sdk/models/operations/deletegenerationsid.d.ts +0 -21
- package/dist/sdk/models/operations/deleteinitimageid.d.ts +0 -21
- package/dist/sdk/models/operations/deletemodelsid.d.ts +0 -21
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import * as shared from "../shared";
|
|
2
3
|
export declare class GetGenerationsByUserIdPathParams extends SpeakeasyBase {
|
|
3
4
|
userId: string;
|
|
4
5
|
}
|
|
@@ -15,8 +16,8 @@ export declare class GetGenerationsByUserIdRequest extends SpeakeasyBase {
|
|
|
15
16
|
**/
|
|
16
17
|
export declare class GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric extends SpeakeasyBase {
|
|
17
18
|
id?: string;
|
|
18
|
-
status?:
|
|
19
|
-
transformType?:
|
|
19
|
+
status?: shared.JobStatusEnum;
|
|
20
|
+
transformType?: shared.VARIATIONTYPEEnum;
|
|
20
21
|
url?: string;
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
@@ -34,21 +35,21 @@ export declare class GetGenerationsByUserId200ApplicationJSONGenerationsGenerate
|
|
|
34
35
|
**/
|
|
35
36
|
export declare class GetGenerationsByUserId200ApplicationJSONGenerations extends SpeakeasyBase {
|
|
36
37
|
generatedImages?: GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImages[];
|
|
37
|
-
guidanceScale?:
|
|
38
|
+
guidanceScale?: number;
|
|
38
39
|
id?: string;
|
|
39
40
|
imageHeight?: number;
|
|
40
41
|
imageWidth?: number;
|
|
41
42
|
inferenceSteps?: number;
|
|
42
|
-
initStrength?:
|
|
43
|
+
initStrength?: number;
|
|
43
44
|
modelId?: string;
|
|
44
45
|
negativePrompt?: string;
|
|
45
|
-
presetStyle?:
|
|
46
|
+
presetStyle?: shared.SdGenerationStyleEnum;
|
|
46
47
|
prompt?: string;
|
|
47
48
|
public?: boolean;
|
|
48
|
-
scheduler?:
|
|
49
|
-
sdVersion?:
|
|
50
|
-
seed?:
|
|
51
|
-
status?:
|
|
49
|
+
scheduler?: shared.SdGenerationSchedulersEnum;
|
|
50
|
+
sdVersion?: shared.SdVersionsEnum;
|
|
51
|
+
seed?: number;
|
|
52
|
+
status?: shared.JobStatusEnum;
|
|
52
53
|
}
|
|
53
54
|
export declare class GetGenerationsByUserId200ApplicationJSON extends SpeakeasyBase {
|
|
54
55
|
generations?: GetGenerationsByUserId200ApplicationJSONGenerations[];
|
|
@@ -14,18 +14,42 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
17
33
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
34
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
35
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
36
|
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;
|
|
21
37
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
38
|
};
|
|
39
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
23
46
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
47
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
48
|
};
|
|
26
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
50
|
exports.GetGenerationsByUserIdResponse = exports.GetGenerationsByUserId200ApplicationJSON = exports.GetGenerationsByUserId200ApplicationJSONGenerations = exports.GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImages = exports.GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric = exports.GetGenerationsByUserIdRequest = exports.GetGenerationsByUserIdQueryParams = exports.GetGenerationsByUserIdPathParams = void 0;
|
|
28
51
|
var utils_1 = require("../../../internal/utils");
|
|
52
|
+
var shared = __importStar(require("../shared"));
|
|
29
53
|
var GetGenerationsByUserIdPathParams = /** @class */ (function (_super) {
|
|
30
54
|
__extends(GetGenerationsByUserIdPathParams, _super);
|
|
31
55
|
function GetGenerationsByUserIdPathParams() {
|
|
@@ -85,11 +109,11 @@ var GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImagesGeneratedI
|
|
|
85
109
|
], GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric.prototype, "id", void 0);
|
|
86
110
|
__decorate([
|
|
87
111
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=status" }),
|
|
88
|
-
__metadata("design:type",
|
|
112
|
+
__metadata("design:type", String)
|
|
89
113
|
], GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric.prototype, "status", void 0);
|
|
90
114
|
__decorate([
|
|
91
115
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=transformType" }),
|
|
92
|
-
__metadata("design:type",
|
|
116
|
+
__metadata("design:type", String)
|
|
93
117
|
], GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric.prototype, "transformType", void 0);
|
|
94
118
|
__decorate([
|
|
95
119
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=url" }),
|
|
@@ -145,7 +169,7 @@ var GetGenerationsByUserId200ApplicationJSONGenerations = /** @class */ (functio
|
|
|
145
169
|
], GetGenerationsByUserId200ApplicationJSONGenerations.prototype, "generatedImages", void 0);
|
|
146
170
|
__decorate([
|
|
147
171
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=guidanceScale" }),
|
|
148
|
-
__metadata("design:type",
|
|
172
|
+
__metadata("design:type", Number)
|
|
149
173
|
], GetGenerationsByUserId200ApplicationJSONGenerations.prototype, "guidanceScale", void 0);
|
|
150
174
|
__decorate([
|
|
151
175
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
|
|
@@ -165,7 +189,7 @@ var GetGenerationsByUserId200ApplicationJSONGenerations = /** @class */ (functio
|
|
|
165
189
|
], GetGenerationsByUserId200ApplicationJSONGenerations.prototype, "inferenceSteps", void 0);
|
|
166
190
|
__decorate([
|
|
167
191
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=initStrength" }),
|
|
168
|
-
__metadata("design:type",
|
|
192
|
+
__metadata("design:type", Number)
|
|
169
193
|
], GetGenerationsByUserId200ApplicationJSONGenerations.prototype, "initStrength", void 0);
|
|
170
194
|
__decorate([
|
|
171
195
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=modelId" }),
|
|
@@ -177,7 +201,7 @@ var GetGenerationsByUserId200ApplicationJSONGenerations = /** @class */ (functio
|
|
|
177
201
|
], GetGenerationsByUserId200ApplicationJSONGenerations.prototype, "negativePrompt", void 0);
|
|
178
202
|
__decorate([
|
|
179
203
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=presetStyle" }),
|
|
180
|
-
__metadata("design:type",
|
|
204
|
+
__metadata("design:type", String)
|
|
181
205
|
], GetGenerationsByUserId200ApplicationJSONGenerations.prototype, "presetStyle", void 0);
|
|
182
206
|
__decorate([
|
|
183
207
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=prompt" }),
|
|
@@ -189,19 +213,19 @@ var GetGenerationsByUserId200ApplicationJSONGenerations = /** @class */ (functio
|
|
|
189
213
|
], GetGenerationsByUserId200ApplicationJSONGenerations.prototype, "public", void 0);
|
|
190
214
|
__decorate([
|
|
191
215
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=scheduler" }),
|
|
192
|
-
__metadata("design:type",
|
|
216
|
+
__metadata("design:type", String)
|
|
193
217
|
], GetGenerationsByUserId200ApplicationJSONGenerations.prototype, "scheduler", void 0);
|
|
194
218
|
__decorate([
|
|
195
219
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=sdVersion" }),
|
|
196
|
-
__metadata("design:type",
|
|
220
|
+
__metadata("design:type", String)
|
|
197
221
|
], GetGenerationsByUserId200ApplicationJSONGenerations.prototype, "sdVersion", void 0);
|
|
198
222
|
__decorate([
|
|
199
223
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=seed" }),
|
|
200
|
-
__metadata("design:type",
|
|
224
|
+
__metadata("design:type", Number)
|
|
201
225
|
], GetGenerationsByUserId200ApplicationJSONGenerations.prototype, "seed", void 0);
|
|
202
226
|
__decorate([
|
|
203
227
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=status" }),
|
|
204
|
-
__metadata("design:type",
|
|
228
|
+
__metadata("design:type", String)
|
|
205
229
|
], GetGenerationsByUserId200ApplicationJSONGenerations.prototype, "status", void 0);
|
|
206
230
|
return GetGenerationsByUserId200ApplicationJSONGenerations;
|
|
207
231
|
}(utils_1.SpeakeasyBase));
|
|
@@ -9,7 +9,7 @@ export declare class GetInitImageByIdRequest extends SpeakeasyBase {
|
|
|
9
9
|
* columns and relationships of "init_images"
|
|
10
10
|
**/
|
|
11
11
|
export declare class GetInitImageById200ApplicationJSONInitImages extends SpeakeasyBase {
|
|
12
|
-
createdAt?:
|
|
12
|
+
createdAt?: string;
|
|
13
13
|
id?: string;
|
|
14
14
|
url?: string;
|
|
15
15
|
}
|
|
@@ -61,7 +61,7 @@ var GetInitImageById200ApplicationJSONInitImages = /** @class */ (function (_sup
|
|
|
61
61
|
}
|
|
62
62
|
__decorate([
|
|
63
63
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=createdAt" }),
|
|
64
|
-
__metadata("design:type",
|
|
64
|
+
__metadata("design:type", String)
|
|
65
65
|
], GetInitImageById200ApplicationJSONInitImages.prototype, "createdAt", void 0);
|
|
66
66
|
__decorate([
|
|
67
67
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import * as shared from "../shared";
|
|
2
3
|
export declare class GetModelByIdPathParams extends SpeakeasyBase {
|
|
3
4
|
id: string;
|
|
4
5
|
}
|
|
@@ -9,7 +10,7 @@ export declare class GetModelByIdRequest extends SpeakeasyBase {
|
|
|
9
10
|
* columns and relationships of "custom_models"
|
|
10
11
|
**/
|
|
11
12
|
export declare class GetModelById200ApplicationJSONCustomModels extends SpeakeasyBase {
|
|
12
|
-
createdAt?:
|
|
13
|
+
createdAt?: string;
|
|
13
14
|
description?: string;
|
|
14
15
|
id?: string;
|
|
15
16
|
instancePrompt?: string;
|
|
@@ -17,10 +18,10 @@ export declare class GetModelById200ApplicationJSONCustomModels extends Speakeas
|
|
|
17
18
|
modelWidth?: number;
|
|
18
19
|
name?: string;
|
|
19
20
|
public?: boolean;
|
|
20
|
-
sdVersion?:
|
|
21
|
-
status?:
|
|
22
|
-
type?:
|
|
23
|
-
updatedAt?:
|
|
21
|
+
sdVersion?: shared.SdVersionsEnum;
|
|
22
|
+
status?: shared.JobStatusEnum;
|
|
23
|
+
type?: shared.CustomModelTypeEnum;
|
|
24
|
+
updatedAt?: string;
|
|
24
25
|
}
|
|
25
26
|
export declare class GetModelById200ApplicationJSON extends SpeakeasyBase {
|
|
26
27
|
customModelsByPk?: GetModelById200ApplicationJSONCustomModels;
|
|
@@ -14,18 +14,42 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
17
33
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
34
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
35
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
36
|
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;
|
|
21
37
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
38
|
};
|
|
39
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
23
46
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
47
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
48
|
};
|
|
26
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
50
|
exports.GetModelByIdResponse = exports.GetModelById200ApplicationJSON = exports.GetModelById200ApplicationJSONCustomModels = exports.GetModelByIdRequest = exports.GetModelByIdPathParams = void 0;
|
|
28
51
|
var utils_1 = require("../../../internal/utils");
|
|
52
|
+
var shared = __importStar(require("../shared"));
|
|
29
53
|
var GetModelByIdPathParams = /** @class */ (function (_super) {
|
|
30
54
|
__extends(GetModelByIdPathParams, _super);
|
|
31
55
|
function GetModelByIdPathParams() {
|
|
@@ -61,7 +85,7 @@ var GetModelById200ApplicationJSONCustomModels = /** @class */ (function (_super
|
|
|
61
85
|
}
|
|
62
86
|
__decorate([
|
|
63
87
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=createdAt" }),
|
|
64
|
-
__metadata("design:type",
|
|
88
|
+
__metadata("design:type", String)
|
|
65
89
|
], GetModelById200ApplicationJSONCustomModels.prototype, "createdAt", void 0);
|
|
66
90
|
__decorate([
|
|
67
91
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=description" }),
|
|
@@ -93,19 +117,19 @@ var GetModelById200ApplicationJSONCustomModels = /** @class */ (function (_super
|
|
|
93
117
|
], GetModelById200ApplicationJSONCustomModels.prototype, "public", void 0);
|
|
94
118
|
__decorate([
|
|
95
119
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=sdVersion" }),
|
|
96
|
-
__metadata("design:type",
|
|
120
|
+
__metadata("design:type", String)
|
|
97
121
|
], GetModelById200ApplicationJSONCustomModels.prototype, "sdVersion", void 0);
|
|
98
122
|
__decorate([
|
|
99
123
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=status" }),
|
|
100
|
-
__metadata("design:type",
|
|
124
|
+
__metadata("design:type", String)
|
|
101
125
|
], GetModelById200ApplicationJSONCustomModels.prototype, "status", void 0);
|
|
102
126
|
__decorate([
|
|
103
127
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=type" }),
|
|
104
|
-
__metadata("design:type",
|
|
128
|
+
__metadata("design:type", String)
|
|
105
129
|
], GetModelById200ApplicationJSONCustomModels.prototype, "type", void 0);
|
|
106
130
|
__decorate([
|
|
107
131
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=updatedAt" }),
|
|
108
|
-
__metadata("design:type",
|
|
132
|
+
__metadata("design:type", String)
|
|
109
133
|
], GetModelById200ApplicationJSONCustomModels.prototype, "updatedAt", void 0);
|
|
110
134
|
return GetModelById200ApplicationJSONCustomModels;
|
|
111
135
|
}(utils_1.SpeakeasyBase));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import * as shared from "../shared";
|
|
2
3
|
export declare class GetVariationByIdPathParams extends SpeakeasyBase {
|
|
3
4
|
id: string;
|
|
4
5
|
}
|
|
@@ -9,10 +10,10 @@ export declare class GetVariationByIdRequest extends SpeakeasyBase {
|
|
|
9
10
|
* columns and relationships of "generated_image_variation_generic"
|
|
10
11
|
**/
|
|
11
12
|
export declare class GetVariationById200ApplicationJSONGeneratedImageVariationGeneric extends SpeakeasyBase {
|
|
12
|
-
createdAt?:
|
|
13
|
+
createdAt?: string;
|
|
13
14
|
id?: string;
|
|
14
|
-
status?:
|
|
15
|
-
transformType?:
|
|
15
|
+
status?: shared.JobStatusEnum;
|
|
16
|
+
transformType?: shared.VARIATIONTYPEEnum;
|
|
16
17
|
url?: string;
|
|
17
18
|
}
|
|
18
19
|
export declare class GetVariationById200ApplicationJSON extends SpeakeasyBase {
|
|
@@ -14,18 +14,42 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
17
33
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
34
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
35
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
36
|
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;
|
|
21
37
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
38
|
};
|
|
39
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
23
46
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
47
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
48
|
};
|
|
26
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
50
|
exports.GetVariationByIdResponse = exports.GetVariationById200ApplicationJSON = exports.GetVariationById200ApplicationJSONGeneratedImageVariationGeneric = exports.GetVariationByIdRequest = exports.GetVariationByIdPathParams = void 0;
|
|
28
51
|
var utils_1 = require("../../../internal/utils");
|
|
52
|
+
var shared = __importStar(require("../shared"));
|
|
29
53
|
var GetVariationByIdPathParams = /** @class */ (function (_super) {
|
|
30
54
|
__extends(GetVariationByIdPathParams, _super);
|
|
31
55
|
function GetVariationByIdPathParams() {
|
|
@@ -61,7 +85,7 @@ var GetVariationById200ApplicationJSONGeneratedImageVariationGeneric = /** @clas
|
|
|
61
85
|
}
|
|
62
86
|
__decorate([
|
|
63
87
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=createdAt" }),
|
|
64
|
-
__metadata("design:type",
|
|
88
|
+
__metadata("design:type", String)
|
|
65
89
|
], GetVariationById200ApplicationJSONGeneratedImageVariationGeneric.prototype, "createdAt", void 0);
|
|
66
90
|
__decorate([
|
|
67
91
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
|
|
@@ -69,11 +93,11 @@ var GetVariationById200ApplicationJSONGeneratedImageVariationGeneric = /** @clas
|
|
|
69
93
|
], GetVariationById200ApplicationJSONGeneratedImageVariationGeneric.prototype, "id", void 0);
|
|
70
94
|
__decorate([
|
|
71
95
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=status" }),
|
|
72
|
-
__metadata("design:type",
|
|
96
|
+
__metadata("design:type", String)
|
|
73
97
|
], GetVariationById200ApplicationJSONGeneratedImageVariationGeneric.prototype, "status", void 0);
|
|
74
98
|
__decorate([
|
|
75
99
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=transformType" }),
|
|
76
|
-
__metadata("design:type",
|
|
100
|
+
__metadata("design:type", String)
|
|
77
101
|
], GetVariationById200ApplicationJSONGeneratedImageVariationGeneric.prototype, "transformType", void 0);
|
|
78
102
|
__decorate([
|
|
79
103
|
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=url" }),
|
|
@@ -2,10 +2,10 @@ export * from "./createdataset";
|
|
|
2
2
|
export * from "./creategeneration";
|
|
3
3
|
export * from "./createmodel";
|
|
4
4
|
export * from "./createvariationupscale";
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
5
|
+
export * from "./deletedatasetbyid";
|
|
6
|
+
export * from "./deletegenerationbyid";
|
|
7
|
+
export * from "./deleteinitimagebyid";
|
|
8
|
+
export * from "./deletemodelbyid";
|
|
9
9
|
export * from "./getdatasetbyid";
|
|
10
10
|
export * from "./getgenerationbyid";
|
|
11
11
|
export * from "./getgenerationsbyuserid";
|
|
@@ -18,10 +18,10 @@ __exportStar(require("./createdataset"), exports);
|
|
|
18
18
|
__exportStar(require("./creategeneration"), exports);
|
|
19
19
|
__exportStar(require("./createmodel"), exports);
|
|
20
20
|
__exportStar(require("./createvariationupscale"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./deletedatasetbyid"), exports);
|
|
22
|
+
__exportStar(require("./deletegenerationbyid"), exports);
|
|
23
|
+
__exportStar(require("./deleteinitimagebyid"), exports);
|
|
24
|
+
__exportStar(require("./deletemodelbyid"), exports);
|
|
25
25
|
__exportStar(require("./getdatasetbyid"), exports);
|
|
26
26
|
__exportStar(require("./getgenerationbyid"), exports);
|
|
27
27
|
__exportStar(require("./getgenerationsbyuserid"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum CustomModelTypeEnum {
|
|
2
|
+
General = "GENERAL",
|
|
3
|
+
Buildings = "BUILDINGS",
|
|
4
|
+
Characters = "CHARACTERS",
|
|
5
|
+
Environments = "ENVIRONMENTS",
|
|
6
|
+
Fashion = "FASHION",
|
|
7
|
+
Illustrations = "ILLUSTRATIONS",
|
|
8
|
+
GameItems = "GAME_ITEMS",
|
|
9
|
+
GraphicalElements = "GRAPHICAL_ELEMENTS",
|
|
10
|
+
Photography = "PHOTOGRAPHY",
|
|
11
|
+
PixelArt = "PIXEL_ART",
|
|
12
|
+
ProductDesign = "PRODUCT_DESIGN",
|
|
13
|
+
Textures = "TEXTURES",
|
|
14
|
+
UiElements = "UI_ELEMENTS",
|
|
15
|
+
Vector = "VECTOR",
|
|
16
|
+
Null = "null"
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomModelTypeEnum = void 0;
|
|
4
|
+
var CustomModelTypeEnum;
|
|
5
|
+
(function (CustomModelTypeEnum) {
|
|
6
|
+
CustomModelTypeEnum["General"] = "GENERAL";
|
|
7
|
+
CustomModelTypeEnum["Buildings"] = "BUILDINGS";
|
|
8
|
+
CustomModelTypeEnum["Characters"] = "CHARACTERS";
|
|
9
|
+
CustomModelTypeEnum["Environments"] = "ENVIRONMENTS";
|
|
10
|
+
CustomModelTypeEnum["Fashion"] = "FASHION";
|
|
11
|
+
CustomModelTypeEnum["Illustrations"] = "ILLUSTRATIONS";
|
|
12
|
+
CustomModelTypeEnum["GameItems"] = "GAME_ITEMS";
|
|
13
|
+
CustomModelTypeEnum["GraphicalElements"] = "GRAPHICAL_ELEMENTS";
|
|
14
|
+
CustomModelTypeEnum["Photography"] = "PHOTOGRAPHY";
|
|
15
|
+
CustomModelTypeEnum["PixelArt"] = "PIXEL_ART";
|
|
16
|
+
CustomModelTypeEnum["ProductDesign"] = "PRODUCT_DESIGN";
|
|
17
|
+
CustomModelTypeEnum["Textures"] = "TEXTURES";
|
|
18
|
+
CustomModelTypeEnum["UiElements"] = "UI_ELEMENTS";
|
|
19
|
+
CustomModelTypeEnum["Vector"] = "VECTOR";
|
|
20
|
+
CustomModelTypeEnum["Null"] = "null";
|
|
21
|
+
})(CustomModelTypeEnum = exports.CustomModelTypeEnum || (exports.CustomModelTypeEnum = {}));
|
|
@@ -1 +1,8 @@
|
|
|
1
|
+
export * from "./custommodeltypeenum";
|
|
2
|
+
export * from "./jobstatusenum";
|
|
3
|
+
export * from "./sdgenerationschedulersenum";
|
|
4
|
+
export * from "./sdgenerationstyleenum";
|
|
5
|
+
export * from "./sdversionsenum";
|
|
1
6
|
export * from "./security";
|
|
7
|
+
export * from "./strengthenum";
|
|
8
|
+
export * from "./variationtypeenum";
|
|
@@ -14,4 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./custommodeltypeenum"), exports);
|
|
18
|
+
__exportStar(require("./jobstatusenum"), exports);
|
|
19
|
+
__exportStar(require("./sdgenerationschedulersenum"), exports);
|
|
20
|
+
__exportStar(require("./sdgenerationstyleenum"), exports);
|
|
21
|
+
__exportStar(require("./sdversionsenum"), exports);
|
|
17
22
|
__exportStar(require("./security"), exports);
|
|
23
|
+
__exportStar(require("./strengthenum"), exports);
|
|
24
|
+
__exportStar(require("./variationtypeenum"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JobStatusEnum = void 0;
|
|
4
|
+
var JobStatusEnum;
|
|
5
|
+
(function (JobStatusEnum) {
|
|
6
|
+
JobStatusEnum["Pending"] = "PENDING";
|
|
7
|
+
JobStatusEnum["Complete"] = "COMPLETE";
|
|
8
|
+
JobStatusEnum["Failed"] = "FAILED";
|
|
9
|
+
})(JobStatusEnum = exports.JobStatusEnum || (exports.JobStatusEnum = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SdGenerationSchedulersEnum = void 0;
|
|
4
|
+
var SdGenerationSchedulersEnum;
|
|
5
|
+
(function (SdGenerationSchedulersEnum) {
|
|
6
|
+
SdGenerationSchedulersEnum["Klms"] = "KLMS";
|
|
7
|
+
SdGenerationSchedulersEnum["EulerAncestralDiscrete"] = "EULER_ANCESTRAL_DISCRETE";
|
|
8
|
+
SdGenerationSchedulersEnum["EulerDiscrete"] = "EULER_DISCRETE";
|
|
9
|
+
SdGenerationSchedulersEnum["Ddim"] = "DDIM";
|
|
10
|
+
SdGenerationSchedulersEnum["DpmSolver"] = "DPM_SOLVER";
|
|
11
|
+
SdGenerationSchedulersEnum["Pndm"] = "PNDM";
|
|
12
|
+
SdGenerationSchedulersEnum["Null"] = "null";
|
|
13
|
+
})(SdGenerationSchedulersEnum = exports.SdGenerationSchedulersEnum || (exports.SdGenerationSchedulersEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SdGenerationStyleEnum = void 0;
|
|
4
|
+
var SdGenerationStyleEnum;
|
|
5
|
+
(function (SdGenerationStyleEnum) {
|
|
6
|
+
SdGenerationStyleEnum["Leonardo"] = "LEONARDO";
|
|
7
|
+
SdGenerationStyleEnum["None"] = "NONE";
|
|
8
|
+
SdGenerationStyleEnum["Null"] = "null";
|
|
9
|
+
})(SdGenerationStyleEnum = exports.SdGenerationStyleEnum || (exports.SdGenerationStyleEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SdVersionsEnum = void 0;
|
|
4
|
+
var SdVersionsEnum;
|
|
5
|
+
(function (SdVersionsEnum) {
|
|
6
|
+
SdVersionsEnum["V15"] = "v1_5";
|
|
7
|
+
SdVersionsEnum["V2"] = "v2";
|
|
8
|
+
SdVersionsEnum["Null"] = "null";
|
|
9
|
+
})(SdVersionsEnum = exports.SdVersionsEnum || (exports.SdVersionsEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StrengthEnum = void 0;
|
|
4
|
+
var StrengthEnum;
|
|
5
|
+
(function (StrengthEnum) {
|
|
6
|
+
StrengthEnum["VeryLow"] = "VERY_LOW";
|
|
7
|
+
StrengthEnum["Low"] = "LOW";
|
|
8
|
+
StrengthEnum["Medium"] = "MEDIUM";
|
|
9
|
+
StrengthEnum["High"] = "HIGH";
|
|
10
|
+
StrengthEnum["Null"] = "null";
|
|
11
|
+
})(StrengthEnum = exports.StrengthEnum || (exports.StrengthEnum = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VARIATIONTYPEEnum = void 0;
|
|
4
|
+
var VARIATIONTYPEEnum;
|
|
5
|
+
(function (VARIATIONTYPEEnum) {
|
|
6
|
+
VARIATIONTYPEEnum["Outpaint"] = "OUTPAINT";
|
|
7
|
+
VARIATIONTYPEEnum["Inpaint"] = "INPAINT";
|
|
8
|
+
VARIATIONTYPEEnum["Upscale"] = "UPSCALE";
|
|
9
|
+
VARIATIONTYPEEnum["Unzoom"] = "UNZOOM";
|
|
10
|
+
VARIATIONTYPEEnum["Nobg"] = "NOBG";
|
|
11
|
+
VARIATIONTYPEEnum["Null"] = "null";
|
|
12
|
+
})(VARIATIONTYPEEnum = exports.VARIATIONTYPEEnum || (exports.VARIATIONTYPEEnum = {}));
|
package/dist/sdk/sdk.js
CHANGED
|
@@ -43,7 +43,7 @@ var Leonardo = /** @class */ (function () {
|
|
|
43
43
|
function Leonardo(props) {
|
|
44
44
|
var _a, _b;
|
|
45
45
|
this._language = "typescript";
|
|
46
|
-
this._sdkVersion = "1.2.
|
|
46
|
+
this._sdkVersion = "1.2.1";
|
|
47
47
|
this._genVersion = "1.3.1";
|
|
48
48
|
this._serverURL = (_a = props.serverUrl) !== null && _a !== void 0 ? _a : exports.ServerList[0];
|
|
49
49
|
this._defaultClient = (_b = props.defaultClient) !== null && _b !== void 0 ? _b : axios_1.default.create({ baseURL: this._serverURL });
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
-
export declare class DeleteDatasetsIdPathParams extends SpeakeasyBase {
|
|
3
|
-
id: string;
|
|
4
|
-
}
|
|
5
|
-
export declare class DeleteDatasetsIdRequest extends SpeakeasyBase {
|
|
6
|
-
pathParams: DeleteDatasetsIdPathParams;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* columns and relationships of "datasets"
|
|
10
|
-
**/
|
|
11
|
-
export declare class DeleteDatasetsId200ApplicationJSONDatasets extends SpeakeasyBase {
|
|
12
|
-
id?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare class DeleteDatasetsId200ApplicationJSON extends SpeakeasyBase {
|
|
15
|
-
deleteDatasetsByPk?: DeleteDatasetsId200ApplicationJSONDatasets;
|
|
16
|
-
}
|
|
17
|
-
export declare class DeleteDatasetsIdResponse extends SpeakeasyBase {
|
|
18
|
-
contentType: string;
|
|
19
|
-
statusCode: number;
|
|
20
|
-
deleteDatasetsId200ApplicationJSONObject?: DeleteDatasetsId200ApplicationJSON;
|
|
21
|
-
}
|