@leonardo-ai/sdk 1.1.1 → 1.2.0
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 +28 -27
- package/dist/sdk/{creatingdatasets.d.ts → dataset.d.ts} +13 -13
- package/dist/sdk/{creatingdatasets.js → dataset.js} +46 -46
- package/dist/sdk/{generatingimages.d.ts → generation.d.ts} +12 -12
- package/dist/sdk/{generatingimages.js → generation.js} +45 -45
- package/dist/sdk/{initimages.d.ts → initimage.d.ts} +5 -5
- package/dist/sdk/{initimages.js → initimage.js} +15 -15
- package/dist/sdk/{trainingmodels.d.ts → model.d.ts} +9 -9
- package/dist/sdk/{trainingmodels.js → model.js} +38 -38
- package/dist/sdk/models/operations/createdataset.d.ts +22 -0
- package/dist/sdk/models/operations/createdataset.js +104 -0
- package/dist/sdk/models/operations/creategeneration.d.ts +33 -0
- package/dist/sdk/models/operations/{postgenerations.js → creategeneration.js} +62 -38
- package/dist/sdk/models/operations/createmodel.d.ts +26 -0
- package/dist/sdk/models/operations/{postmodels.js → createmodel.js} +55 -31
- package/dist/sdk/models/operations/createvariationupscale.d.ts +18 -0
- package/dist/sdk/models/operations/createvariationupscale.js +96 -0
- package/dist/sdk/models/operations/deletedatasetsid.d.ts +10 -1
- package/dist/sdk/models/operations/deletedatasetsid.js +31 -3
- package/dist/sdk/models/operations/deletegenerationsid.d.ts +10 -1
- package/dist/sdk/models/operations/deletegenerationsid.js +31 -3
- package/dist/sdk/models/operations/deleteinitimageid.d.ts +10 -1
- package/dist/sdk/models/operations/deleteinitimageid.js +31 -3
- package/dist/sdk/models/operations/deletemodelsid.d.ts +10 -1
- package/dist/sdk/models/operations/deletemodelsid.js +31 -3
- package/dist/sdk/models/operations/getdatasetbyid.d.ts +34 -0
- package/dist/sdk/models/operations/getdatasetbyid.js +144 -0
- package/dist/sdk/models/operations/getgenerationbyid.d.ts +55 -0
- package/dist/sdk/models/operations/getgenerationbyid.js +220 -0
- package/dist/sdk/models/operations/getgenerationsbyuserid.d.ts +60 -0
- package/dist/sdk/models/operations/getgenerationsbyuserid.js +240 -0
- package/dist/sdk/models/operations/getinitimagebyid.d.ts +23 -0
- package/dist/sdk/models/operations/getinitimagebyid.js +108 -0
- package/dist/sdk/models/operations/getmodelbyid.d.ts +32 -0
- package/dist/sdk/models/operations/getmodelbyid.js +144 -0
- package/dist/sdk/models/operations/getuserself.d.ts +23 -0
- package/dist/sdk/models/operations/getuserself.js +100 -0
- package/dist/sdk/models/operations/getvariationbyid.d.ts +25 -0
- package/dist/sdk/models/operations/getvariationbyid.js +116 -0
- package/dist/sdk/models/operations/index.d.ts +14 -14
- package/dist/sdk/models/operations/index.js +14 -14
- package/dist/sdk/models/operations/uploaddatasetimage.d.ts +25 -0
- package/dist/sdk/models/operations/uploaddatasetimage.js +124 -0
- package/dist/sdk/models/operations/uploaddatasetimagefromgen.d.ts +22 -0
- package/dist/sdk/models/operations/uploaddatasetimagefromgen.js +112 -0
- package/dist/sdk/models/operations/uploadinitimage.d.ts +22 -0
- package/dist/sdk/models/operations/uploadinitimage.js +112 -0
- package/dist/sdk/sdk.d.ts +12 -12
- package/dist/sdk/sdk.js +13 -13
- package/dist/sdk/{userinformation.d.ts → user.d.ts} +3 -3
- package/dist/sdk/{userinformation.js → user.js} +8 -8
- package/dist/sdk/{imagevariations.d.ts → variation.d.ts} +7 -7
- package/dist/sdk/{imagevariations.js → variation.js} +30 -30
- package/package.json +2 -19
- package/dist/sdk/models/operations/getdatasetsid.d.ts +0 -12
- package/dist/sdk/models/operations/getdatasetsid.js +0 -72
- package/dist/sdk/models/operations/getgenerationsid.d.ts +0 -12
- package/dist/sdk/models/operations/getgenerationsid.js +0 -72
- package/dist/sdk/models/operations/getgenerationsuseruserid.d.ts +0 -17
- package/dist/sdk/models/operations/getgenerationsuseruserid.js +0 -92
- package/dist/sdk/models/operations/getinitimageid.d.ts +0 -12
- package/dist/sdk/models/operations/getinitimageid.js +0 -72
- package/dist/sdk/models/operations/getme.d.ts +0 -6
- package/dist/sdk/models/operations/getme.js +0 -48
- package/dist/sdk/models/operations/getmodelsid.d.ts +0 -12
- package/dist/sdk/models/operations/getmodelsid.js +0 -72
- package/dist/sdk/models/operations/getvariationsid.d.ts +0 -12
- package/dist/sdk/models/operations/getvariationsid.js +0 -72
- package/dist/sdk/models/operations/postdatasets.d.ts +0 -13
- package/dist/sdk/models/operations/postdatasets.js +0 -76
- package/dist/sdk/models/operations/postdatasetsdatasetidupload.d.ts +0 -16
- package/dist/sdk/models/operations/postdatasetsdatasetidupload.js +0 -88
- package/dist/sdk/models/operations/postdatasetsdatasetiduploadgen.d.ts +0 -16
- package/dist/sdk/models/operations/postdatasetsdatasetiduploadgen.js +0 -88
- package/dist/sdk/models/operations/postgenerations.d.ts +0 -27
- package/dist/sdk/models/operations/postinitimage.d.ts +0 -12
- package/dist/sdk/models/operations/postinitimage.js +0 -72
- package/dist/sdk/models/operations/postmodels.d.ts +0 -20
- package/dist/sdk/models/operations/postvariationsupscale.d.ts +0 -12
- package/dist/sdk/models/operations/postvariationsupscale.js +0 -72
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.GetDatasetByIdResponse = exports.GetDatasetById200ApplicationJSON = exports.GetDatasetById200ApplicationJSONDatasets = exports.GetDatasetById200ApplicationJSONDatasetsDatasetImages = exports.GetDatasetByIdRequest = exports.GetDatasetByIdPathParams = void 0;
|
|
28
|
+
var utils_1 = require("../../../internal/utils");
|
|
29
|
+
var GetDatasetByIdPathParams = /** @class */ (function (_super) {
|
|
30
|
+
__extends(GetDatasetByIdPathParams, _super);
|
|
31
|
+
function GetDatasetByIdPathParams() {
|
|
32
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
33
|
+
}
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], GetDatasetByIdPathParams.prototype, "id", void 0);
|
|
38
|
+
return GetDatasetByIdPathParams;
|
|
39
|
+
}(utils_1.SpeakeasyBase));
|
|
40
|
+
exports.GetDatasetByIdPathParams = GetDatasetByIdPathParams;
|
|
41
|
+
var GetDatasetByIdRequest = /** @class */ (function (_super) {
|
|
42
|
+
__extends(GetDatasetByIdRequest, _super);
|
|
43
|
+
function GetDatasetByIdRequest() {
|
|
44
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
45
|
+
}
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
48
|
+
__metadata("design:type", GetDatasetByIdPathParams)
|
|
49
|
+
], GetDatasetByIdRequest.prototype, "pathParams", void 0);
|
|
50
|
+
return GetDatasetByIdRequest;
|
|
51
|
+
}(utils_1.SpeakeasyBase));
|
|
52
|
+
exports.GetDatasetByIdRequest = GetDatasetByIdRequest;
|
|
53
|
+
// GetDatasetById200ApplicationJSONDatasetsDatasetImages
|
|
54
|
+
/**
|
|
55
|
+
* columns and relationships of "dataset_images"
|
|
56
|
+
**/
|
|
57
|
+
var GetDatasetById200ApplicationJSONDatasetsDatasetImages = /** @class */ (function (_super) {
|
|
58
|
+
__extends(GetDatasetById200ApplicationJSONDatasetsDatasetImages, _super);
|
|
59
|
+
function GetDatasetById200ApplicationJSONDatasetsDatasetImages() {
|
|
60
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
61
|
+
}
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=createdAt" }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], GetDatasetById200ApplicationJSONDatasetsDatasetImages.prototype, "createdAt", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], GetDatasetById200ApplicationJSONDatasetsDatasetImages.prototype, "id", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=url" }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], GetDatasetById200ApplicationJSONDatasetsDatasetImages.prototype, "url", void 0);
|
|
74
|
+
return GetDatasetById200ApplicationJSONDatasetsDatasetImages;
|
|
75
|
+
}(utils_1.SpeakeasyBase));
|
|
76
|
+
exports.GetDatasetById200ApplicationJSONDatasetsDatasetImages = GetDatasetById200ApplicationJSONDatasetsDatasetImages;
|
|
77
|
+
// GetDatasetById200ApplicationJSONDatasets
|
|
78
|
+
/**
|
|
79
|
+
* columns and relationships of "datasets"
|
|
80
|
+
**/
|
|
81
|
+
var GetDatasetById200ApplicationJSONDatasets = /** @class */ (function (_super) {
|
|
82
|
+
__extends(GetDatasetById200ApplicationJSONDatasets, _super);
|
|
83
|
+
function GetDatasetById200ApplicationJSONDatasets() {
|
|
84
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
85
|
+
}
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=createdAt" }),
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
|
+
], GetDatasetById200ApplicationJSONDatasets.prototype, "createdAt", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=dataset_images", elemType: GetDatasetById200ApplicationJSONDatasetsDatasetImages }),
|
|
92
|
+
__metadata("design:type", Array)
|
|
93
|
+
], GetDatasetById200ApplicationJSONDatasets.prototype, "datasetImages", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=description" }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], GetDatasetById200ApplicationJSONDatasets.prototype, "description", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], GetDatasetById200ApplicationJSONDatasets.prototype, "id", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=name" }),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], GetDatasetById200ApplicationJSONDatasets.prototype, "name", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=updatedAt" }),
|
|
108
|
+
__metadata("design:type", Object)
|
|
109
|
+
], GetDatasetById200ApplicationJSONDatasets.prototype, "updatedAt", void 0);
|
|
110
|
+
return GetDatasetById200ApplicationJSONDatasets;
|
|
111
|
+
}(utils_1.SpeakeasyBase));
|
|
112
|
+
exports.GetDatasetById200ApplicationJSONDatasets = GetDatasetById200ApplicationJSONDatasets;
|
|
113
|
+
var GetDatasetById200ApplicationJSON = /** @class */ (function (_super) {
|
|
114
|
+
__extends(GetDatasetById200ApplicationJSON, _super);
|
|
115
|
+
function GetDatasetById200ApplicationJSON() {
|
|
116
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
117
|
+
}
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=datasets_by_pk" }),
|
|
120
|
+
__metadata("design:type", GetDatasetById200ApplicationJSONDatasets)
|
|
121
|
+
], GetDatasetById200ApplicationJSON.prototype, "datasetsByPk", void 0);
|
|
122
|
+
return GetDatasetById200ApplicationJSON;
|
|
123
|
+
}(utils_1.SpeakeasyBase));
|
|
124
|
+
exports.GetDatasetById200ApplicationJSON = GetDatasetById200ApplicationJSON;
|
|
125
|
+
var GetDatasetByIdResponse = /** @class */ (function (_super) {
|
|
126
|
+
__extends(GetDatasetByIdResponse, _super);
|
|
127
|
+
function GetDatasetByIdResponse() {
|
|
128
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
129
|
+
}
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], GetDatasetByIdResponse.prototype, "contentType", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
136
|
+
__metadata("design:type", Number)
|
|
137
|
+
], GetDatasetByIdResponse.prototype, "statusCode", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
140
|
+
__metadata("design:type", GetDatasetById200ApplicationJSON)
|
|
141
|
+
], GetDatasetByIdResponse.prototype, "getDatasetById200ApplicationJSONObject", void 0);
|
|
142
|
+
return GetDatasetByIdResponse;
|
|
143
|
+
}(utils_1.SpeakeasyBase));
|
|
144
|
+
exports.GetDatasetByIdResponse = GetDatasetByIdResponse;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
export declare class GetGenerationByIdPathParams extends SpeakeasyBase {
|
|
3
|
+
id: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class GetGenerationByIdRequest extends SpeakeasyBase {
|
|
6
|
+
pathParams: GetGenerationByIdPathParams;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* columns and relationships of "generated_image_variation_generic"
|
|
10
|
+
**/
|
|
11
|
+
export declare class GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric extends SpeakeasyBase {
|
|
12
|
+
id?: string;
|
|
13
|
+
status?: any;
|
|
14
|
+
transformType?: any;
|
|
15
|
+
url?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* columns and relationships of "generated_images"
|
|
19
|
+
**/
|
|
20
|
+
export declare class GetGenerationById200ApplicationJSONGenerationsGeneratedImages extends SpeakeasyBase {
|
|
21
|
+
generatedImageVariationGenerics?: GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric[];
|
|
22
|
+
id?: string;
|
|
23
|
+
likeCount?: number;
|
|
24
|
+
nsfw?: boolean;
|
|
25
|
+
url?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* columns and relationships of "generations"
|
|
29
|
+
**/
|
|
30
|
+
export declare class GetGenerationById200ApplicationJSONGenerations extends SpeakeasyBase {
|
|
31
|
+
generatedImages?: GetGenerationById200ApplicationJSONGenerationsGeneratedImages[];
|
|
32
|
+
guidanceScale?: any;
|
|
33
|
+
id?: string;
|
|
34
|
+
imageHeight?: number;
|
|
35
|
+
imageWidth?: number;
|
|
36
|
+
inferenceSteps?: number;
|
|
37
|
+
initStrength?: any;
|
|
38
|
+
modelId?: string;
|
|
39
|
+
negativePrompt?: string;
|
|
40
|
+
presetStyle?: any;
|
|
41
|
+
prompt?: string;
|
|
42
|
+
public?: boolean;
|
|
43
|
+
scheduler?: any;
|
|
44
|
+
sdVersion?: any;
|
|
45
|
+
seed?: any;
|
|
46
|
+
status?: any;
|
|
47
|
+
}
|
|
48
|
+
export declare class GetGenerationById200ApplicationJSON extends SpeakeasyBase {
|
|
49
|
+
generationsByPk?: GetGenerationById200ApplicationJSONGenerations;
|
|
50
|
+
}
|
|
51
|
+
export declare class GetGenerationByIdResponse extends SpeakeasyBase {
|
|
52
|
+
contentType: string;
|
|
53
|
+
statusCode: number;
|
|
54
|
+
getGenerationById200ApplicationJSONObject?: GetGenerationById200ApplicationJSON;
|
|
55
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.GetGenerationByIdResponse = exports.GetGenerationById200ApplicationJSON = exports.GetGenerationById200ApplicationJSONGenerations = exports.GetGenerationById200ApplicationJSONGenerationsGeneratedImages = exports.GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric = exports.GetGenerationByIdRequest = exports.GetGenerationByIdPathParams = void 0;
|
|
28
|
+
var utils_1 = require("../../../internal/utils");
|
|
29
|
+
var GetGenerationByIdPathParams = /** @class */ (function (_super) {
|
|
30
|
+
__extends(GetGenerationByIdPathParams, _super);
|
|
31
|
+
function GetGenerationByIdPathParams() {
|
|
32
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
33
|
+
}
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], GetGenerationByIdPathParams.prototype, "id", void 0);
|
|
38
|
+
return GetGenerationByIdPathParams;
|
|
39
|
+
}(utils_1.SpeakeasyBase));
|
|
40
|
+
exports.GetGenerationByIdPathParams = GetGenerationByIdPathParams;
|
|
41
|
+
var GetGenerationByIdRequest = /** @class */ (function (_super) {
|
|
42
|
+
__extends(GetGenerationByIdRequest, _super);
|
|
43
|
+
function GetGenerationByIdRequest() {
|
|
44
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
45
|
+
}
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
48
|
+
__metadata("design:type", GetGenerationByIdPathParams)
|
|
49
|
+
], GetGenerationByIdRequest.prototype, "pathParams", void 0);
|
|
50
|
+
return GetGenerationByIdRequest;
|
|
51
|
+
}(utils_1.SpeakeasyBase));
|
|
52
|
+
exports.GetGenerationByIdRequest = GetGenerationByIdRequest;
|
|
53
|
+
// GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric
|
|
54
|
+
/**
|
|
55
|
+
* columns and relationships of "generated_image_variation_generic"
|
|
56
|
+
**/
|
|
57
|
+
var GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric = /** @class */ (function (_super) {
|
|
58
|
+
__extends(GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric, _super);
|
|
59
|
+
function GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric() {
|
|
60
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
61
|
+
}
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric.prototype, "id", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=status" }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric.prototype, "status", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=transformType" }),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric.prototype, "transformType", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=url" }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric.prototype, "url", void 0);
|
|
78
|
+
return GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric;
|
|
79
|
+
}(utils_1.SpeakeasyBase));
|
|
80
|
+
exports.GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric = GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric;
|
|
81
|
+
// GetGenerationById200ApplicationJSONGenerationsGeneratedImages
|
|
82
|
+
/**
|
|
83
|
+
* columns and relationships of "generated_images"
|
|
84
|
+
**/
|
|
85
|
+
var GetGenerationById200ApplicationJSONGenerationsGeneratedImages = /** @class */ (function (_super) {
|
|
86
|
+
__extends(GetGenerationById200ApplicationJSONGenerationsGeneratedImages, _super);
|
|
87
|
+
function GetGenerationById200ApplicationJSONGenerationsGeneratedImages() {
|
|
88
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
89
|
+
}
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=generated_image_variation_generics", elemType: GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric }),
|
|
92
|
+
__metadata("design:type", Array)
|
|
93
|
+
], GetGenerationById200ApplicationJSONGenerationsGeneratedImages.prototype, "generatedImageVariationGenerics", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], GetGenerationById200ApplicationJSONGenerationsGeneratedImages.prototype, "id", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=likeCount" }),
|
|
100
|
+
__metadata("design:type", Number)
|
|
101
|
+
], GetGenerationById200ApplicationJSONGenerationsGeneratedImages.prototype, "likeCount", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=nsfw" }),
|
|
104
|
+
__metadata("design:type", Boolean)
|
|
105
|
+
], GetGenerationById200ApplicationJSONGenerationsGeneratedImages.prototype, "nsfw", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=url" }),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], GetGenerationById200ApplicationJSONGenerationsGeneratedImages.prototype, "url", void 0);
|
|
110
|
+
return GetGenerationById200ApplicationJSONGenerationsGeneratedImages;
|
|
111
|
+
}(utils_1.SpeakeasyBase));
|
|
112
|
+
exports.GetGenerationById200ApplicationJSONGenerationsGeneratedImages = GetGenerationById200ApplicationJSONGenerationsGeneratedImages;
|
|
113
|
+
// GetGenerationById200ApplicationJSONGenerations
|
|
114
|
+
/**
|
|
115
|
+
* columns and relationships of "generations"
|
|
116
|
+
**/
|
|
117
|
+
var GetGenerationById200ApplicationJSONGenerations = /** @class */ (function (_super) {
|
|
118
|
+
__extends(GetGenerationById200ApplicationJSONGenerations, _super);
|
|
119
|
+
function GetGenerationById200ApplicationJSONGenerations() {
|
|
120
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
121
|
+
}
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=generated_images", elemType: GetGenerationById200ApplicationJSONGenerationsGeneratedImages }),
|
|
124
|
+
__metadata("design:type", Array)
|
|
125
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "generatedImages", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=guidanceScale" }),
|
|
128
|
+
__metadata("design:type", Object)
|
|
129
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "guidanceScale", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "id", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=imageHeight" }),
|
|
136
|
+
__metadata("design:type", Number)
|
|
137
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "imageHeight", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=imageWidth" }),
|
|
140
|
+
__metadata("design:type", Number)
|
|
141
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "imageWidth", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=inferenceSteps" }),
|
|
144
|
+
__metadata("design:type", Number)
|
|
145
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "inferenceSteps", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=initStrength" }),
|
|
148
|
+
__metadata("design:type", Object)
|
|
149
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "initStrength", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=modelId" }),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "modelId", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=negativePrompt" }),
|
|
156
|
+
__metadata("design:type", String)
|
|
157
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "negativePrompt", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=presetStyle" }),
|
|
160
|
+
__metadata("design:type", Object)
|
|
161
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "presetStyle", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=prompt" }),
|
|
164
|
+
__metadata("design:type", String)
|
|
165
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "prompt", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=public" }),
|
|
168
|
+
__metadata("design:type", Boolean)
|
|
169
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "public", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=scheduler" }),
|
|
172
|
+
__metadata("design:type", Object)
|
|
173
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "scheduler", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=sdVersion" }),
|
|
176
|
+
__metadata("design:type", Object)
|
|
177
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "sdVersion", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=seed" }),
|
|
180
|
+
__metadata("design:type", Object)
|
|
181
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "seed", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=status" }),
|
|
184
|
+
__metadata("design:type", Object)
|
|
185
|
+
], GetGenerationById200ApplicationJSONGenerations.prototype, "status", void 0);
|
|
186
|
+
return GetGenerationById200ApplicationJSONGenerations;
|
|
187
|
+
}(utils_1.SpeakeasyBase));
|
|
188
|
+
exports.GetGenerationById200ApplicationJSONGenerations = GetGenerationById200ApplicationJSONGenerations;
|
|
189
|
+
var GetGenerationById200ApplicationJSON = /** @class */ (function (_super) {
|
|
190
|
+
__extends(GetGenerationById200ApplicationJSON, _super);
|
|
191
|
+
function GetGenerationById200ApplicationJSON() {
|
|
192
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
193
|
+
}
|
|
194
|
+
__decorate([
|
|
195
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "json, name=generations_by_pk" }),
|
|
196
|
+
__metadata("design:type", GetGenerationById200ApplicationJSONGenerations)
|
|
197
|
+
], GetGenerationById200ApplicationJSON.prototype, "generationsByPk", void 0);
|
|
198
|
+
return GetGenerationById200ApplicationJSON;
|
|
199
|
+
}(utils_1.SpeakeasyBase));
|
|
200
|
+
exports.GetGenerationById200ApplicationJSON = GetGenerationById200ApplicationJSON;
|
|
201
|
+
var GetGenerationByIdResponse = /** @class */ (function (_super) {
|
|
202
|
+
__extends(GetGenerationByIdResponse, _super);
|
|
203
|
+
function GetGenerationByIdResponse() {
|
|
204
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
205
|
+
}
|
|
206
|
+
__decorate([
|
|
207
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
208
|
+
__metadata("design:type", String)
|
|
209
|
+
], GetGenerationByIdResponse.prototype, "contentType", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
212
|
+
__metadata("design:type", Number)
|
|
213
|
+
], GetGenerationByIdResponse.prototype, "statusCode", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
216
|
+
__metadata("design:type", GetGenerationById200ApplicationJSON)
|
|
217
|
+
], GetGenerationByIdResponse.prototype, "getGenerationById200ApplicationJSONObject", void 0);
|
|
218
|
+
return GetGenerationByIdResponse;
|
|
219
|
+
}(utils_1.SpeakeasyBase));
|
|
220
|
+
exports.GetGenerationByIdResponse = GetGenerationByIdResponse;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
export declare class GetGenerationsByUserIdPathParams extends SpeakeasyBase {
|
|
3
|
+
userId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class GetGenerationsByUserIdQueryParams extends SpeakeasyBase {
|
|
6
|
+
limit?: number;
|
|
7
|
+
offset?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare class GetGenerationsByUserIdRequest extends SpeakeasyBase {
|
|
10
|
+
pathParams: GetGenerationsByUserIdPathParams;
|
|
11
|
+
queryParams: GetGenerationsByUserIdQueryParams;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* columns and relationships of "generated_image_variation_generic"
|
|
15
|
+
**/
|
|
16
|
+
export declare class GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric extends SpeakeasyBase {
|
|
17
|
+
id?: string;
|
|
18
|
+
status?: any;
|
|
19
|
+
transformType?: any;
|
|
20
|
+
url?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* columns and relationships of "generated_images"
|
|
24
|
+
**/
|
|
25
|
+
export declare class GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImages extends SpeakeasyBase {
|
|
26
|
+
generatedImageVariationGenerics?: GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric[];
|
|
27
|
+
id?: string;
|
|
28
|
+
likeCount?: number;
|
|
29
|
+
nsfw?: boolean;
|
|
30
|
+
url?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* columns and relationships of "generations"
|
|
34
|
+
**/
|
|
35
|
+
export declare class GetGenerationsByUserId200ApplicationJSONGenerations extends SpeakeasyBase {
|
|
36
|
+
generatedImages?: GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImages[];
|
|
37
|
+
guidanceScale?: any;
|
|
38
|
+
id?: string;
|
|
39
|
+
imageHeight?: number;
|
|
40
|
+
imageWidth?: number;
|
|
41
|
+
inferenceSteps?: number;
|
|
42
|
+
initStrength?: any;
|
|
43
|
+
modelId?: string;
|
|
44
|
+
negativePrompt?: string;
|
|
45
|
+
presetStyle?: any;
|
|
46
|
+
prompt?: string;
|
|
47
|
+
public?: boolean;
|
|
48
|
+
scheduler?: any;
|
|
49
|
+
sdVersion?: any;
|
|
50
|
+
seed?: any;
|
|
51
|
+
status?: any;
|
|
52
|
+
}
|
|
53
|
+
export declare class GetGenerationsByUserId200ApplicationJSON extends SpeakeasyBase {
|
|
54
|
+
generations?: GetGenerationsByUserId200ApplicationJSONGenerations[];
|
|
55
|
+
}
|
|
56
|
+
export declare class GetGenerationsByUserIdResponse extends SpeakeasyBase {
|
|
57
|
+
contentType: string;
|
|
58
|
+
statusCode: number;
|
|
59
|
+
getGenerationsByUserId200ApplicationJSONObject?: GetGenerationsByUserId200ApplicationJSON;
|
|
60
|
+
}
|