@leonardo-ai/sdk 1.3.5 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/dist/internal/utils/headers.js +4 -4
- package/dist/internal/utils/pathparams.d.ts +1 -8
- package/dist/internal/utils/pathparams.js +11 -18
- package/dist/internal/utils/queryparams.d.ts +1 -2
- package/dist/internal/utils/queryparams.js +100 -50
- package/dist/internal/utils/requestbody.js +90 -57
- package/dist/internal/utils/security.js +69 -57
- package/dist/internal/utils/utils.d.ts +11 -2
- package/dist/internal/utils/utils.js +51 -15
- package/dist/sdk/dataset.js +11 -10
- package/dist/sdk/generation.js +11 -11
- package/dist/sdk/initimage.js +7 -6
- package/dist/sdk/model.js +7 -6
- package/dist/sdk/models/operations/createdataset.d.ts +2 -0
- package/dist/sdk/models/operations/createdataset.js +14 -4
- package/dist/sdk/models/operations/creategeneration.d.ts +2 -0
- package/dist/sdk/models/operations/creategeneration.js +42 -18
- package/dist/sdk/models/operations/createmodel.d.ts +2 -0
- package/dist/sdk/models/operations/createmodel.js +28 -11
- package/dist/sdk/models/operations/createvariationupscale.d.ts +2 -0
- package/dist/sdk/models/operations/createvariationupscale.js +12 -3
- package/dist/sdk/models/operations/deletedatasetbyid.d.ts +2 -0
- package/dist/sdk/models/operations/deletedatasetbyid.js +10 -2
- package/dist/sdk/models/operations/deletegenerationbyid.d.ts +2 -0
- package/dist/sdk/models/operations/deletegenerationbyid.js +10 -2
- package/dist/sdk/models/operations/deleteinitimagebyid.d.ts +2 -0
- package/dist/sdk/models/operations/deleteinitimagebyid.js +10 -2
- package/dist/sdk/models/operations/deletemodelbyid.d.ts +2 -0
- package/dist/sdk/models/operations/deletemodelbyid.js +10 -2
- package/dist/sdk/models/operations/getdatasetbyid.d.ts +2 -0
- package/dist/sdk/models/operations/getdatasetbyid.js +27 -10
- package/dist/sdk/models/operations/getgenerationbyid.d.ts +2 -0
- package/dist/sdk/models/operations/getgenerationbyid.js +60 -26
- package/dist/sdk/models/operations/getgenerationsbyuserid.d.ts +2 -0
- package/dist/sdk/models/operations/getgenerationsbyuserid.js +60 -26
- package/dist/sdk/models/operations/getinitimagebyid.d.ts +2 -0
- package/dist/sdk/models/operations/getinitimagebyid.js +14 -4
- package/dist/sdk/models/operations/getmodelbyid.d.ts +2 -0
- package/dist/sdk/models/operations/getmodelbyid.js +32 -13
- package/dist/sdk/models/operations/getuserself.d.ts +2 -0
- package/dist/sdk/models/operations/getuserself.js +17 -5
- package/dist/sdk/models/operations/getvariationbyid.d.ts +2 -0
- package/dist/sdk/models/operations/getvariationbyid.js +18 -6
- package/dist/sdk/models/operations/uploaddatasetimage.d.ts +2 -0
- package/dist/sdk/models/operations/uploaddatasetimage.js +18 -6
- package/dist/sdk/models/operations/uploaddatasetimagefromgen.d.ts +2 -0
- package/dist/sdk/models/operations/uploaddatasetimagefromgen.js +12 -3
- package/dist/sdk/models/operations/uploadinitimage.d.ts +2 -0
- package/dist/sdk/models/operations/uploadinitimage.js +20 -7
- package/dist/sdk/sdk.d.ts +2 -2
- package/dist/sdk/sdk.js +5 -4
- package/dist/sdk/user.js +4 -2
- package/dist/sdk/variation.js +5 -4
- package/package.json +2 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
2
|
import * as shared from "../shared";
|
|
3
|
+
import { AxiosResponse } from "axios";
|
|
3
4
|
export declare class CreateGenerationRequestBody extends SpeakeasyBase {
|
|
4
5
|
guidanceScale?: number;
|
|
5
6
|
height?: number;
|
|
@@ -30,5 +31,6 @@ export declare class CreateGeneration200ApplicationJSON extends SpeakeasyBase {
|
|
|
30
31
|
export declare class CreateGenerationResponse extends SpeakeasyBase {
|
|
31
32
|
contentType: string;
|
|
32
33
|
statusCode: number;
|
|
34
|
+
rawResponse?: AxiosResponse;
|
|
33
35
|
createGeneration200ApplicationJSONObject?: CreateGeneration200ApplicationJSON;
|
|
34
36
|
}
|
|
@@ -50,73 +50,90 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
50
50
|
exports.CreateGenerationResponse = exports.CreateGeneration200ApplicationJSON = exports.CreateGeneration200ApplicationJSONSDGenerationOutput = exports.CreateGenerationRequest = exports.CreateGenerationRequestBody = void 0;
|
|
51
51
|
var utils_1 = require("../../../internal/utils");
|
|
52
52
|
var shared = __importStar(require("../shared"));
|
|
53
|
+
var class_transformer_1 = require("class-transformer");
|
|
53
54
|
var CreateGenerationRequestBody = /** @class */ (function (_super) {
|
|
54
55
|
__extends(CreateGenerationRequestBody, _super);
|
|
55
56
|
function CreateGenerationRequestBody() {
|
|
56
57
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
57
58
|
}
|
|
58
59
|
__decorate([
|
|
59
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
60
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
61
|
+
(0, class_transformer_1.Expose)({ name: "guidance_scale" }),
|
|
60
62
|
__metadata("design:type", Number)
|
|
61
63
|
], CreateGenerationRequestBody.prototype, "guidanceScale", void 0);
|
|
62
64
|
__decorate([
|
|
63
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
65
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
66
|
+
(0, class_transformer_1.Expose)({ name: "height" }),
|
|
64
67
|
__metadata("design:type", Number)
|
|
65
68
|
], CreateGenerationRequestBody.prototype, "height", void 0);
|
|
66
69
|
__decorate([
|
|
67
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
70
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
71
|
+
(0, class_transformer_1.Expose)({ name: "init_generation_image_id" }),
|
|
68
72
|
__metadata("design:type", String)
|
|
69
73
|
], CreateGenerationRequestBody.prototype, "initGenerationImageId", void 0);
|
|
70
74
|
__decorate([
|
|
71
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
75
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
76
|
+
(0, class_transformer_1.Expose)({ name: "init_image_id" }),
|
|
72
77
|
__metadata("design:type", String)
|
|
73
78
|
], CreateGenerationRequestBody.prototype, "initImageId", void 0);
|
|
74
79
|
__decorate([
|
|
75
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
80
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
81
|
+
(0, class_transformer_1.Expose)({ name: "init_strength" }),
|
|
76
82
|
__metadata("design:type", Number)
|
|
77
83
|
], CreateGenerationRequestBody.prototype, "initStrength", void 0);
|
|
78
84
|
__decorate([
|
|
79
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
85
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
86
|
+
(0, class_transformer_1.Expose)({ name: "modelId" }),
|
|
80
87
|
__metadata("design:type", String)
|
|
81
88
|
], CreateGenerationRequestBody.prototype, "modelId", void 0);
|
|
82
89
|
__decorate([
|
|
83
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
90
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
91
|
+
(0, class_transformer_1.Expose)({ name: "negative_prompt" }),
|
|
84
92
|
__metadata("design:type", String)
|
|
85
93
|
], CreateGenerationRequestBody.prototype, "negativePrompt", void 0);
|
|
86
94
|
__decorate([
|
|
87
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
95
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
96
|
+
(0, class_transformer_1.Expose)({ name: "num_images" }),
|
|
88
97
|
__metadata("design:type", Number)
|
|
89
98
|
], CreateGenerationRequestBody.prototype, "numImages", void 0);
|
|
90
99
|
__decorate([
|
|
91
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
100
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
101
|
+
(0, class_transformer_1.Expose)({ name: "num_inference_steps" }),
|
|
92
102
|
__metadata("design:type", Number)
|
|
93
103
|
], CreateGenerationRequestBody.prototype, "numInferenceSteps", void 0);
|
|
94
104
|
__decorate([
|
|
95
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
105
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
106
|
+
(0, class_transformer_1.Expose)({ name: "presetStyle" }),
|
|
96
107
|
__metadata("design:type", String)
|
|
97
108
|
], CreateGenerationRequestBody.prototype, "presetStyle", void 0);
|
|
98
109
|
__decorate([
|
|
99
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
110
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
111
|
+
(0, class_transformer_1.Expose)({ name: "prompt" }),
|
|
100
112
|
__metadata("design:type", String)
|
|
101
113
|
], CreateGenerationRequestBody.prototype, "prompt", void 0);
|
|
102
114
|
__decorate([
|
|
103
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
115
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
116
|
+
(0, class_transformer_1.Expose)({ name: "public" }),
|
|
104
117
|
__metadata("design:type", Boolean)
|
|
105
118
|
], CreateGenerationRequestBody.prototype, "public", void 0);
|
|
106
119
|
__decorate([
|
|
107
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
120
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
121
|
+
(0, class_transformer_1.Expose)({ name: "scheduler" }),
|
|
108
122
|
__metadata("design:type", String)
|
|
109
123
|
], CreateGenerationRequestBody.prototype, "scheduler", void 0);
|
|
110
124
|
__decorate([
|
|
111
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
125
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
126
|
+
(0, class_transformer_1.Expose)({ name: "sd_version" }),
|
|
112
127
|
__metadata("design:type", String)
|
|
113
128
|
], CreateGenerationRequestBody.prototype, "sdVersion", void 0);
|
|
114
129
|
__decorate([
|
|
115
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
130
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
131
|
+
(0, class_transformer_1.Expose)({ name: "tiling" }),
|
|
116
132
|
__metadata("design:type", Boolean)
|
|
117
133
|
], CreateGenerationRequestBody.prototype, "tiling", void 0);
|
|
118
134
|
__decorate([
|
|
119
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
135
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
136
|
+
(0, class_transformer_1.Expose)({ name: "width" }),
|
|
120
137
|
__metadata("design:type", Number)
|
|
121
138
|
], CreateGenerationRequestBody.prototype, "width", void 0);
|
|
122
139
|
return CreateGenerationRequestBody;
|
|
@@ -140,7 +157,8 @@ var CreateGeneration200ApplicationJSONSDGenerationOutput = /** @class */ (functi
|
|
|
140
157
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
141
158
|
}
|
|
142
159
|
__decorate([
|
|
143
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
160
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
161
|
+
(0, class_transformer_1.Expose)({ name: "generationId" }),
|
|
144
162
|
__metadata("design:type", String)
|
|
145
163
|
], CreateGeneration200ApplicationJSONSDGenerationOutput.prototype, "generationId", void 0);
|
|
146
164
|
return CreateGeneration200ApplicationJSONSDGenerationOutput;
|
|
@@ -152,7 +170,9 @@ var CreateGeneration200ApplicationJSON = /** @class */ (function (_super) {
|
|
|
152
170
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
153
171
|
}
|
|
154
172
|
__decorate([
|
|
155
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
173
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
174
|
+
(0, class_transformer_1.Expose)({ name: "sdGenerationJob" }),
|
|
175
|
+
(0, class_transformer_1.Type)(function () { return CreateGeneration200ApplicationJSONSDGenerationOutput; }),
|
|
156
176
|
__metadata("design:type", CreateGeneration200ApplicationJSONSDGenerationOutput)
|
|
157
177
|
], CreateGeneration200ApplicationJSON.prototype, "sdGenerationJob", void 0);
|
|
158
178
|
return CreateGeneration200ApplicationJSON;
|
|
@@ -171,6 +191,10 @@ var CreateGenerationResponse = /** @class */ (function (_super) {
|
|
|
171
191
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
172
192
|
__metadata("design:type", Number)
|
|
173
193
|
], CreateGenerationResponse.prototype, "statusCode", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
196
|
+
__metadata("design:type", Object)
|
|
197
|
+
], CreateGenerationResponse.prototype, "rawResponse", void 0);
|
|
174
198
|
__decorate([
|
|
175
199
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
176
200
|
__metadata("design:type", CreateGeneration200ApplicationJSON)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
2
|
import * as shared from "../shared";
|
|
3
|
+
import { AxiosResponse } from "axios";
|
|
3
4
|
export declare class CreateModelRequestBody extends SpeakeasyBase {
|
|
4
5
|
datasetId: string;
|
|
5
6
|
description?: string;
|
|
@@ -23,5 +24,6 @@ export declare class CreateModel200ApplicationJSON extends SpeakeasyBase {
|
|
|
23
24
|
export declare class CreateModelResponse extends SpeakeasyBase {
|
|
24
25
|
contentType: string;
|
|
25
26
|
statusCode: number;
|
|
27
|
+
rawResponse?: AxiosResponse;
|
|
26
28
|
createModel200ApplicationJSONObject?: CreateModel200ApplicationJSON;
|
|
27
29
|
}
|
|
@@ -50,45 +50,55 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
50
50
|
exports.CreateModelResponse = exports.CreateModel200ApplicationJSON = exports.CreateModel200ApplicationJSONSDTrainingOutput = exports.CreateModelRequest = exports.CreateModelRequestBody = void 0;
|
|
51
51
|
var utils_1 = require("../../../internal/utils");
|
|
52
52
|
var shared = __importStar(require("../shared"));
|
|
53
|
+
var class_transformer_1 = require("class-transformer");
|
|
53
54
|
var CreateModelRequestBody = /** @class */ (function (_super) {
|
|
54
55
|
__extends(CreateModelRequestBody, _super);
|
|
55
56
|
function CreateModelRequestBody() {
|
|
56
57
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
57
58
|
}
|
|
58
59
|
__decorate([
|
|
59
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
60
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
61
|
+
(0, class_transformer_1.Expose)({ name: "datasetId" }),
|
|
60
62
|
__metadata("design:type", String)
|
|
61
63
|
], CreateModelRequestBody.prototype, "datasetId", void 0);
|
|
62
64
|
__decorate([
|
|
63
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
65
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
66
|
+
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
64
67
|
__metadata("design:type", String)
|
|
65
68
|
], CreateModelRequestBody.prototype, "description", void 0);
|
|
66
69
|
__decorate([
|
|
67
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
70
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
71
|
+
(0, class_transformer_1.Expose)({ name: "instance_prompt" }),
|
|
68
72
|
__metadata("design:type", String)
|
|
69
73
|
], CreateModelRequestBody.prototype, "instancePrompt", void 0);
|
|
70
74
|
__decorate([
|
|
71
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
75
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
76
|
+
(0, class_transformer_1.Expose)({ name: "modelType" }),
|
|
72
77
|
__metadata("design:type", String)
|
|
73
78
|
], CreateModelRequestBody.prototype, "modelType", void 0);
|
|
74
79
|
__decorate([
|
|
75
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
80
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
81
|
+
(0, class_transformer_1.Expose)({ name: "name" }),
|
|
76
82
|
__metadata("design:type", String)
|
|
77
83
|
], CreateModelRequestBody.prototype, "name", void 0);
|
|
78
84
|
__decorate([
|
|
79
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
85
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
86
|
+
(0, class_transformer_1.Expose)({ name: "nsfw" }),
|
|
80
87
|
__metadata("design:type", Boolean)
|
|
81
88
|
], CreateModelRequestBody.prototype, "nsfw", void 0);
|
|
82
89
|
__decorate([
|
|
83
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
90
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
91
|
+
(0, class_transformer_1.Expose)({ name: "resolution" }),
|
|
84
92
|
__metadata("design:type", Number)
|
|
85
93
|
], CreateModelRequestBody.prototype, "resolution", void 0);
|
|
86
94
|
__decorate([
|
|
87
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
95
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
96
|
+
(0, class_transformer_1.Expose)({ name: "sd_Version" }),
|
|
88
97
|
__metadata("design:type", String)
|
|
89
98
|
], CreateModelRequestBody.prototype, "sdVersion", void 0);
|
|
90
99
|
__decorate([
|
|
91
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
100
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
101
|
+
(0, class_transformer_1.Expose)({ name: "strength" }),
|
|
92
102
|
__metadata("design:type", String)
|
|
93
103
|
], CreateModelRequestBody.prototype, "strength", void 0);
|
|
94
104
|
return CreateModelRequestBody;
|
|
@@ -112,7 +122,8 @@ var CreateModel200ApplicationJSONSDTrainingOutput = /** @class */ (function (_su
|
|
|
112
122
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
113
123
|
}
|
|
114
124
|
__decorate([
|
|
115
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
125
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
126
|
+
(0, class_transformer_1.Expose)({ name: "customModelId" }),
|
|
116
127
|
__metadata("design:type", String)
|
|
117
128
|
], CreateModel200ApplicationJSONSDTrainingOutput.prototype, "customModelId", void 0);
|
|
118
129
|
return CreateModel200ApplicationJSONSDTrainingOutput;
|
|
@@ -124,7 +135,9 @@ var CreateModel200ApplicationJSON = /** @class */ (function (_super) {
|
|
|
124
135
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
125
136
|
}
|
|
126
137
|
__decorate([
|
|
127
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
138
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
139
|
+
(0, class_transformer_1.Expose)({ name: "sdTrainingJob" }),
|
|
140
|
+
(0, class_transformer_1.Type)(function () { return CreateModel200ApplicationJSONSDTrainingOutput; }),
|
|
128
141
|
__metadata("design:type", CreateModel200ApplicationJSONSDTrainingOutput)
|
|
129
142
|
], CreateModel200ApplicationJSON.prototype, "sdTrainingJob", void 0);
|
|
130
143
|
return CreateModel200ApplicationJSON;
|
|
@@ -143,6 +156,10 @@ var CreateModelResponse = /** @class */ (function (_super) {
|
|
|
143
156
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
144
157
|
__metadata("design:type", Number)
|
|
145
158
|
], CreateModelResponse.prototype, "statusCode", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
161
|
+
__metadata("design:type", Object)
|
|
162
|
+
], CreateModelResponse.prototype, "rawResponse", void 0);
|
|
146
163
|
__decorate([
|
|
147
164
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
148
165
|
__metadata("design:type", CreateModel200ApplicationJSON)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
2
3
|
export declare class CreateVariationUpscaleRequestBody extends SpeakeasyBase {
|
|
3
4
|
id: string;
|
|
4
5
|
}
|
|
@@ -14,5 +15,6 @@ export declare class CreateVariationUpscale200ApplicationJSON extends SpeakeasyB
|
|
|
14
15
|
export declare class CreateVariationUpscaleResponse extends SpeakeasyBase {
|
|
15
16
|
contentType: string;
|
|
16
17
|
statusCode: number;
|
|
18
|
+
rawResponse?: AxiosResponse;
|
|
17
19
|
createVariationUpscale200ApplicationJSONObject?: CreateVariationUpscale200ApplicationJSON;
|
|
18
20
|
}
|
|
@@ -26,13 +26,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.CreateVariationUpscaleResponse = exports.CreateVariationUpscale200ApplicationJSON = exports.CreateVariationUpscale200ApplicationJSONSDUpscaleJobOutput = exports.CreateVariationUpscaleRequest = exports.CreateVariationUpscaleRequestBody = void 0;
|
|
28
28
|
var utils_1 = require("../../../internal/utils");
|
|
29
|
+
var class_transformer_1 = require("class-transformer");
|
|
29
30
|
var CreateVariationUpscaleRequestBody = /** @class */ (function (_super) {
|
|
30
31
|
__extends(CreateVariationUpscaleRequestBody, _super);
|
|
31
32
|
function CreateVariationUpscaleRequestBody() {
|
|
32
33
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
33
34
|
}
|
|
34
35
|
__decorate([
|
|
35
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
36
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
37
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
36
38
|
__metadata("design:type", String)
|
|
37
39
|
], CreateVariationUpscaleRequestBody.prototype, "id", void 0);
|
|
38
40
|
return CreateVariationUpscaleRequestBody;
|
|
@@ -56,7 +58,8 @@ var CreateVariationUpscale200ApplicationJSONSDUpscaleJobOutput = /** @class */ (
|
|
|
56
58
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
57
59
|
}
|
|
58
60
|
__decorate([
|
|
59
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
61
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
62
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
60
63
|
__metadata("design:type", String)
|
|
61
64
|
], CreateVariationUpscale200ApplicationJSONSDUpscaleJobOutput.prototype, "id", void 0);
|
|
62
65
|
return CreateVariationUpscale200ApplicationJSONSDUpscaleJobOutput;
|
|
@@ -68,7 +71,9 @@ var CreateVariationUpscale200ApplicationJSON = /** @class */ (function (_super)
|
|
|
68
71
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
72
|
}
|
|
70
73
|
__decorate([
|
|
71
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
74
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
75
|
+
(0, class_transformer_1.Expose)({ name: "sdUpscaleJob" }),
|
|
76
|
+
(0, class_transformer_1.Type)(function () { return CreateVariationUpscale200ApplicationJSONSDUpscaleJobOutput; }),
|
|
72
77
|
__metadata("design:type", CreateVariationUpscale200ApplicationJSONSDUpscaleJobOutput)
|
|
73
78
|
], CreateVariationUpscale200ApplicationJSON.prototype, "sdUpscaleJob", void 0);
|
|
74
79
|
return CreateVariationUpscale200ApplicationJSON;
|
|
@@ -87,6 +92,10 @@ var CreateVariationUpscaleResponse = /** @class */ (function (_super) {
|
|
|
87
92
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
88
93
|
__metadata("design:type", Number)
|
|
89
94
|
], CreateVariationUpscaleResponse.prototype, "statusCode", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
97
|
+
__metadata("design:type", Object)
|
|
98
|
+
], CreateVariationUpscaleResponse.prototype, "rawResponse", void 0);
|
|
90
99
|
__decorate([
|
|
91
100
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
92
101
|
__metadata("design:type", CreateVariationUpscale200ApplicationJSON)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
2
3
|
export declare class DeleteDatasetByIdPathParams extends SpeakeasyBase {
|
|
3
4
|
id: string;
|
|
4
5
|
}
|
|
@@ -17,5 +18,6 @@ export declare class DeleteDatasetById200ApplicationJSON extends SpeakeasyBase {
|
|
|
17
18
|
export declare class DeleteDatasetByIdResponse extends SpeakeasyBase {
|
|
18
19
|
contentType: string;
|
|
19
20
|
statusCode: number;
|
|
21
|
+
rawResponse?: AxiosResponse;
|
|
20
22
|
deleteDatasetById200ApplicationJSONObject?: DeleteDatasetById200ApplicationJSON;
|
|
21
23
|
}
|
|
@@ -26,6 +26,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.DeleteDatasetByIdResponse = exports.DeleteDatasetById200ApplicationJSON = exports.DeleteDatasetById200ApplicationJSONDatasets = exports.DeleteDatasetByIdRequest = exports.DeleteDatasetByIdPathParams = void 0;
|
|
28
28
|
var utils_1 = require("../../../internal/utils");
|
|
29
|
+
var class_transformer_1 = require("class-transformer");
|
|
29
30
|
var DeleteDatasetByIdPathParams = /** @class */ (function (_super) {
|
|
30
31
|
__extends(DeleteDatasetByIdPathParams, _super);
|
|
31
32
|
function DeleteDatasetByIdPathParams() {
|
|
@@ -60,7 +61,8 @@ var DeleteDatasetById200ApplicationJSONDatasets = /** @class */ (function (_supe
|
|
|
60
61
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
61
62
|
}
|
|
62
63
|
__decorate([
|
|
63
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
64
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
64
66
|
__metadata("design:type", String)
|
|
65
67
|
], DeleteDatasetById200ApplicationJSONDatasets.prototype, "id", void 0);
|
|
66
68
|
return DeleteDatasetById200ApplicationJSONDatasets;
|
|
@@ -72,7 +74,9 @@ var DeleteDatasetById200ApplicationJSON = /** @class */ (function (_super) {
|
|
|
72
74
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
73
75
|
}
|
|
74
76
|
__decorate([
|
|
75
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
77
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
78
|
+
(0, class_transformer_1.Expose)({ name: "delete_datasets_by_pk" }),
|
|
79
|
+
(0, class_transformer_1.Type)(function () { return DeleteDatasetById200ApplicationJSONDatasets; }),
|
|
76
80
|
__metadata("design:type", DeleteDatasetById200ApplicationJSONDatasets)
|
|
77
81
|
], DeleteDatasetById200ApplicationJSON.prototype, "deleteDatasetsByPk", void 0);
|
|
78
82
|
return DeleteDatasetById200ApplicationJSON;
|
|
@@ -91,6 +95,10 @@ var DeleteDatasetByIdResponse = /** @class */ (function (_super) {
|
|
|
91
95
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
92
96
|
__metadata("design:type", Number)
|
|
93
97
|
], DeleteDatasetByIdResponse.prototype, "statusCode", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], DeleteDatasetByIdResponse.prototype, "rawResponse", void 0);
|
|
94
102
|
__decorate([
|
|
95
103
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
96
104
|
__metadata("design:type", DeleteDatasetById200ApplicationJSON)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
2
3
|
export declare class DeleteGenerationByIdPathParams extends SpeakeasyBase {
|
|
3
4
|
id: string;
|
|
4
5
|
}
|
|
@@ -17,5 +18,6 @@ export declare class DeleteGenerationById200ApplicationJSON extends SpeakeasyBas
|
|
|
17
18
|
export declare class DeleteGenerationByIdResponse extends SpeakeasyBase {
|
|
18
19
|
contentType: string;
|
|
19
20
|
statusCode: number;
|
|
21
|
+
rawResponse?: AxiosResponse;
|
|
20
22
|
deleteGenerationById200ApplicationJSONObject?: DeleteGenerationById200ApplicationJSON;
|
|
21
23
|
}
|
|
@@ -26,6 +26,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.DeleteGenerationByIdResponse = exports.DeleteGenerationById200ApplicationJSON = exports.DeleteGenerationById200ApplicationJSONGenerations = exports.DeleteGenerationByIdRequest = exports.DeleteGenerationByIdPathParams = void 0;
|
|
28
28
|
var utils_1 = require("../../../internal/utils");
|
|
29
|
+
var class_transformer_1 = require("class-transformer");
|
|
29
30
|
var DeleteGenerationByIdPathParams = /** @class */ (function (_super) {
|
|
30
31
|
__extends(DeleteGenerationByIdPathParams, _super);
|
|
31
32
|
function DeleteGenerationByIdPathParams() {
|
|
@@ -60,7 +61,8 @@ var DeleteGenerationById200ApplicationJSONGenerations = /** @class */ (function
|
|
|
60
61
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
61
62
|
}
|
|
62
63
|
__decorate([
|
|
63
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
64
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
64
66
|
__metadata("design:type", String)
|
|
65
67
|
], DeleteGenerationById200ApplicationJSONGenerations.prototype, "id", void 0);
|
|
66
68
|
return DeleteGenerationById200ApplicationJSONGenerations;
|
|
@@ -72,7 +74,9 @@ var DeleteGenerationById200ApplicationJSON = /** @class */ (function (_super) {
|
|
|
72
74
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
73
75
|
}
|
|
74
76
|
__decorate([
|
|
75
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
77
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
78
|
+
(0, class_transformer_1.Expose)({ name: "delete_generations_by_pk" }),
|
|
79
|
+
(0, class_transformer_1.Type)(function () { return DeleteGenerationById200ApplicationJSONGenerations; }),
|
|
76
80
|
__metadata("design:type", DeleteGenerationById200ApplicationJSONGenerations)
|
|
77
81
|
], DeleteGenerationById200ApplicationJSON.prototype, "deleteGenerationsByPk", void 0);
|
|
78
82
|
return DeleteGenerationById200ApplicationJSON;
|
|
@@ -91,6 +95,10 @@ var DeleteGenerationByIdResponse = /** @class */ (function (_super) {
|
|
|
91
95
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
92
96
|
__metadata("design:type", Number)
|
|
93
97
|
], DeleteGenerationByIdResponse.prototype, "statusCode", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], DeleteGenerationByIdResponse.prototype, "rawResponse", void 0);
|
|
94
102
|
__decorate([
|
|
95
103
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
96
104
|
__metadata("design:type", DeleteGenerationById200ApplicationJSON)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
2
3
|
export declare class DeleteInitImageByIdPathParams extends SpeakeasyBase {
|
|
3
4
|
id: string;
|
|
4
5
|
}
|
|
@@ -17,5 +18,6 @@ export declare class DeleteInitImageById200ApplicationJSON extends SpeakeasyBase
|
|
|
17
18
|
export declare class DeleteInitImageByIdResponse extends SpeakeasyBase {
|
|
18
19
|
contentType: string;
|
|
19
20
|
statusCode: number;
|
|
21
|
+
rawResponse?: AxiosResponse;
|
|
20
22
|
deleteInitImageById200ApplicationJSONObject?: DeleteInitImageById200ApplicationJSON;
|
|
21
23
|
}
|
|
@@ -26,6 +26,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.DeleteInitImageByIdResponse = exports.DeleteInitImageById200ApplicationJSON = exports.DeleteInitImageById200ApplicationJSONInitImages = exports.DeleteInitImageByIdRequest = exports.DeleteInitImageByIdPathParams = void 0;
|
|
28
28
|
var utils_1 = require("../../../internal/utils");
|
|
29
|
+
var class_transformer_1 = require("class-transformer");
|
|
29
30
|
var DeleteInitImageByIdPathParams = /** @class */ (function (_super) {
|
|
30
31
|
__extends(DeleteInitImageByIdPathParams, _super);
|
|
31
32
|
function DeleteInitImageByIdPathParams() {
|
|
@@ -60,7 +61,8 @@ var DeleteInitImageById200ApplicationJSONInitImages = /** @class */ (function (_
|
|
|
60
61
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
61
62
|
}
|
|
62
63
|
__decorate([
|
|
63
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
64
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
64
66
|
__metadata("design:type", String)
|
|
65
67
|
], DeleteInitImageById200ApplicationJSONInitImages.prototype, "id", void 0);
|
|
66
68
|
return DeleteInitImageById200ApplicationJSONInitImages;
|
|
@@ -72,7 +74,9 @@ var DeleteInitImageById200ApplicationJSON = /** @class */ (function (_super) {
|
|
|
72
74
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
73
75
|
}
|
|
74
76
|
__decorate([
|
|
75
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
77
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
78
|
+
(0, class_transformer_1.Expose)({ name: "delete_init_images_by_pk" }),
|
|
79
|
+
(0, class_transformer_1.Type)(function () { return DeleteInitImageById200ApplicationJSONInitImages; }),
|
|
76
80
|
__metadata("design:type", DeleteInitImageById200ApplicationJSONInitImages)
|
|
77
81
|
], DeleteInitImageById200ApplicationJSON.prototype, "deleteInitImagesByPk", void 0);
|
|
78
82
|
return DeleteInitImageById200ApplicationJSON;
|
|
@@ -91,6 +95,10 @@ var DeleteInitImageByIdResponse = /** @class */ (function (_super) {
|
|
|
91
95
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
92
96
|
__metadata("design:type", Number)
|
|
93
97
|
], DeleteInitImageByIdResponse.prototype, "statusCode", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], DeleteInitImageByIdResponse.prototype, "rawResponse", void 0);
|
|
94
102
|
__decorate([
|
|
95
103
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
96
104
|
__metadata("design:type", DeleteInitImageById200ApplicationJSON)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
2
3
|
export declare class DeleteModelByIdPathParams extends SpeakeasyBase {
|
|
3
4
|
id: string;
|
|
4
5
|
}
|
|
@@ -17,5 +18,6 @@ export declare class DeleteModelById200ApplicationJSON extends SpeakeasyBase {
|
|
|
17
18
|
export declare class DeleteModelByIdResponse extends SpeakeasyBase {
|
|
18
19
|
contentType: string;
|
|
19
20
|
statusCode: number;
|
|
21
|
+
rawResponse?: AxiosResponse;
|
|
20
22
|
deleteModelById200ApplicationJSONObject?: DeleteModelById200ApplicationJSON;
|
|
21
23
|
}
|
|
@@ -26,6 +26,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
exports.DeleteModelByIdResponse = exports.DeleteModelById200ApplicationJSON = exports.DeleteModelById200ApplicationJSONCustomModels = exports.DeleteModelByIdRequest = exports.DeleteModelByIdPathParams = void 0;
|
|
28
28
|
var utils_1 = require("../../../internal/utils");
|
|
29
|
+
var class_transformer_1 = require("class-transformer");
|
|
29
30
|
var DeleteModelByIdPathParams = /** @class */ (function (_super) {
|
|
30
31
|
__extends(DeleteModelByIdPathParams, _super);
|
|
31
32
|
function DeleteModelByIdPathParams() {
|
|
@@ -60,7 +61,8 @@ var DeleteModelById200ApplicationJSONCustomModels = /** @class */ (function (_su
|
|
|
60
61
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
61
62
|
}
|
|
62
63
|
__decorate([
|
|
63
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
64
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
64
66
|
__metadata("design:type", String)
|
|
65
67
|
], DeleteModelById200ApplicationJSONCustomModels.prototype, "id", void 0);
|
|
66
68
|
return DeleteModelById200ApplicationJSONCustomModels;
|
|
@@ -72,7 +74,9 @@ var DeleteModelById200ApplicationJSON = /** @class */ (function (_super) {
|
|
|
72
74
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
73
75
|
}
|
|
74
76
|
__decorate([
|
|
75
|
-
(0, utils_1.SpeakeasyMetadata)(
|
|
77
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
78
|
+
(0, class_transformer_1.Expose)({ name: "delete_custom_models_by_pk" }),
|
|
79
|
+
(0, class_transformer_1.Type)(function () { return DeleteModelById200ApplicationJSONCustomModels; }),
|
|
76
80
|
__metadata("design:type", DeleteModelById200ApplicationJSONCustomModels)
|
|
77
81
|
], DeleteModelById200ApplicationJSON.prototype, "deleteCustomModelsByPk", void 0);
|
|
78
82
|
return DeleteModelById200ApplicationJSON;
|
|
@@ -91,6 +95,10 @@ var DeleteModelByIdResponse = /** @class */ (function (_super) {
|
|
|
91
95
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
92
96
|
__metadata("design:type", Number)
|
|
93
97
|
], DeleteModelByIdResponse.prototype, "statusCode", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], DeleteModelByIdResponse.prototype, "rawResponse", void 0);
|
|
94
102
|
__decorate([
|
|
95
103
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
96
104
|
__metadata("design:type", DeleteModelById200ApplicationJSON)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
2
3
|
export declare class GetDatasetByIdPathParams extends SpeakeasyBase {
|
|
3
4
|
id: string;
|
|
4
5
|
}
|
|
@@ -30,5 +31,6 @@ export declare class GetDatasetById200ApplicationJSON extends SpeakeasyBase {
|
|
|
30
31
|
export declare class GetDatasetByIdResponse extends SpeakeasyBase {
|
|
31
32
|
contentType: string;
|
|
32
33
|
statusCode: number;
|
|
34
|
+
rawResponse?: AxiosResponse;
|
|
33
35
|
getDatasetById200ApplicationJSONObject?: GetDatasetById200ApplicationJSON;
|
|
34
36
|
}
|