@leonardo-ai/sdk 1.64.3 → 2.0.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 +7 -7
- package/dist/sdk/dataset.js +5 -5
- package/dist/sdk/element.js +1 -1
- package/dist/sdk/generation.js +6 -6
- package/dist/sdk/initimage.js +3 -3
- package/dist/sdk/model.js +6 -6
- package/dist/sdk/models/operations/createdataset.d.ts +4 -4
- package/dist/sdk/models/operations/createdataset.js +17 -17
- package/dist/sdk/models/operations/creategeneration.d.ts +4 -4
- package/dist/sdk/models/operations/creategeneration.js +18 -18
- package/dist/sdk/models/operations/createmodel.d.ts +4 -4
- package/dist/sdk/models/operations/createmodel.js +18 -18
- package/dist/sdk/models/operations/createvariationnobg.d.ts +4 -4
- package/dist/sdk/models/operations/createvariationnobg.js +18 -18
- package/dist/sdk/models/operations/createvariationupscale.d.ts +4 -4
- package/dist/sdk/models/operations/createvariationupscale.js +18 -18
- package/dist/sdk/models/operations/deletedatasetbyid.d.ts +4 -4
- package/dist/sdk/models/operations/deletedatasetbyid.js +17 -17
- package/dist/sdk/models/operations/deletegenerationbyid.d.ts +4 -4
- package/dist/sdk/models/operations/deletegenerationbyid.js +17 -17
- package/dist/sdk/models/operations/deletegenerationstextureid.d.ts +4 -4
- package/dist/sdk/models/operations/deletegenerationstextureid.js +17 -17
- package/dist/sdk/models/operations/deleteinitimagebyid.d.ts +4 -4
- package/dist/sdk/models/operations/deleteinitimagebyid.js +17 -17
- package/dist/sdk/models/operations/deletemodelbyid.d.ts +4 -4
- package/dist/sdk/models/operations/deletemodelbyid.js +17 -17
- package/dist/sdk/models/operations/deletemodels3did.d.ts +4 -4
- package/dist/sdk/models/operations/deletemodels3did.js +17 -17
- package/dist/sdk/models/operations/getdatasetbyid.d.ts +6 -6
- package/dist/sdk/models/operations/getdatasetbyid.js +32 -32
- package/dist/sdk/models/operations/getelements.d.ts +4 -4
- package/dist/sdk/models/operations/getelements.js +25 -25
- package/dist/sdk/models/operations/getgenerationbyid.d.ts +12 -12
- package/dist/sdk/models/operations/getgenerationbyid.js +87 -93
- package/dist/sdk/models/operations/getgenerationsbyuserid.d.ts +12 -12
- package/dist/sdk/models/operations/getgenerationsbyuserid.js +87 -95
- package/dist/sdk/models/operations/getinitimagebyid.d.ts +4 -4
- package/dist/sdk/models/operations/getinitimagebyid.js +19 -19
- package/dist/sdk/models/operations/getmodelbyid.d.ts +4 -4
- package/dist/sdk/models/operations/getmodelbyid.js +28 -28
- package/dist/sdk/models/operations/getplatformmodels.d.ts +6 -6
- package/dist/sdk/models/operations/getplatformmodels.js +31 -31
- package/dist/sdk/models/operations/getuserself.d.ts +6 -6
- package/dist/sdk/models/operations/getuserself.js +31 -31
- package/dist/sdk/models/operations/getvariationbyid.d.ts +4 -4
- package/dist/sdk/models/operations/getvariationbyid.js +21 -23
- package/dist/sdk/models/operations/postgenerationstexture.d.ts +4 -4
- package/dist/sdk/models/operations/postgenerationstexture.js +18 -18
- package/dist/sdk/models/operations/postmodels3dupload.d.ts +4 -4
- package/dist/sdk/models/operations/postmodels3dupload.js +20 -20
- package/dist/sdk/models/operations/postvariationsunzoom.d.ts +4 -4
- package/dist/sdk/models/operations/postvariationsunzoom.js +18 -18
- package/dist/sdk/models/operations/uploaddatasetimage.d.ts +4 -4
- package/dist/sdk/models/operations/uploaddatasetimage.js +20 -20
- package/dist/sdk/models/operations/uploaddatasetimagefromgen.d.ts +4 -4
- package/dist/sdk/models/operations/uploaddatasetimagefromgen.js +17 -17
- package/dist/sdk/models/operations/uploadinitimage.d.ts +4 -4
- package/dist/sdk/models/operations/uploadinitimage.js +20 -20
- package/dist/sdk/sdk.js +3 -3
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/variation.js +4 -4
- package/docs/models/operations/createdatasetresponse.md +6 -6
- package/docs/models/operations/createdatasetresponsebody.md +10 -0
- package/docs/models/operations/creategenerationresponse.md +6 -6
- package/docs/models/operations/creategenerationresponsebody.md +10 -0
- package/docs/models/operations/createmodelresponse.md +6 -6
- package/docs/models/operations/createmodelresponsebody.md +10 -0
- package/docs/models/operations/createvariationnobgresponse.md +6 -6
- package/docs/models/operations/createvariationnobgresponsebody.md +10 -0
- package/docs/models/operations/createvariationupscaleresponse.md +6 -6
- package/docs/models/operations/{getdatasetbyid200applicationjson.md → createvariationupscaleresponsebody.md} +3 -3
- package/docs/models/operations/{createvariationupscale200applicationjsonsdupscalejoboutput.md → createvariationupscalesdupscalejoboutput.md} +1 -1
- package/docs/models/operations/{deletemodelbyid200applicationjsoncustommodels.md → custommodels.md} +1 -1
- package/docs/models/operations/{uploaddatasetimagefromgen200applicationjsondatasetgenuploadoutput.md → datasetgenuploadoutput.md} +1 -1
- package/docs/models/operations/{getdatasetbyid200applicationjsondatasetsdatasetimages.md → datasetimages.md} +1 -1
- package/docs/models/operations/{createdataset200applicationjsondatasets.md → datasets.md} +1 -1
- package/docs/models/operations/{uploadinitimage200applicationjsoninitimageuploadoutput.md → datasetuploadoutput.md} +1 -1
- package/docs/models/operations/{deletedatasetbyid200applicationjsondatasets.md → deletedatasetbyiddatasets.md} +1 -1
- package/docs/models/operations/deletedatasetbyidresponse.md +6 -6
- package/docs/models/operations/deletedatasetbyidresponsebody.md +10 -0
- package/docs/models/operations/deletegenerationbyidresponse.md +6 -6
- package/docs/models/operations/deletegenerationbyidresponsebody.md +10 -0
- package/docs/models/operations/deletegenerationstextureidresponse.md +6 -6
- package/docs/models/operations/deletegenerationstextureidresponsebody.md +10 -0
- package/docs/models/operations/deleteinitimagebyidresponse.md +6 -6
- package/docs/models/operations/deleteinitimagebyidresponsebody.md +10 -0
- package/docs/models/operations/deletemodelbyidresponse.md +6 -6
- package/docs/models/operations/deletemodelbyidresponsebody.md +10 -0
- package/docs/models/operations/deletemodels3didresponse.md +6 -6
- package/docs/models/operations/deletemodels3didresponsebody.md +10 -0
- package/docs/models/operations/{getgenerationbyid200applicationjsongenerationsgenerationelementsloras.md → elements.md} +1 -1
- package/docs/models/operations/generatedimages.md +14 -0
- package/docs/models/operations/{getvariationbyid200applicationjsongeneratedimagevariationgeneric.md → generatedimagevariationgeneric.md} +1 -1
- package/docs/models/operations/generationelements.md +12 -0
- package/docs/models/operations/{deletegenerationbyid200applicationjsongenerations.md → generations.md} +1 -1
- package/docs/models/operations/getdatasetbyiddatasets.md +15 -0
- package/docs/models/operations/getdatasetbyidresponse.md +6 -6
- package/docs/models/operations/getdatasetbyidresponsebody.md +10 -0
- package/docs/models/operations/getelementsresponse.md +6 -6
- package/docs/models/operations/getelementsresponsebody.md +10 -0
- package/docs/models/operations/{getgenerationbyid200applicationjsongenerationsgeneratedimagesgeneratedimagevariationgeneric.md → getgenerationbyidgeneratedimagevariationgeneric.md} +1 -1
- package/docs/models/operations/{getgenerationbyid200applicationjsongenerations.md → getgenerationbyidgenerations.md} +3 -3
- package/docs/models/operations/{getgenerationsbyuserid200applicationjsongenerationsgenerationelementselements.md → getgenerationbyidloras.md} +1 -1
- package/docs/models/operations/getgenerationbyidresponse.md +6 -6
- package/docs/models/operations/getgenerationbyidresponsebody.md +10 -0
- package/docs/models/operations/{getgenerationbyid200applicationjsongenerationsgenerationelements.md → getgenerationsbyuseridgeneratedimages.md} +9 -7
- package/docs/models/operations/{getgenerationsbyuserid200applicationjsongenerationsgeneratedimagesgeneratedimagevariationgeneric.md → getgenerationsbyuseridgeneratedimagevariationgeneric.md} +1 -1
- package/docs/models/operations/getgenerationsbyuseridgenerationelements.md +12 -0
- package/docs/models/operations/{getgenerationsbyuserid200applicationjsongenerations.md → getgenerationsbyuseridgenerations.md} +3 -3
- package/docs/models/operations/getgenerationsbyuseridresponse.md +6 -6
- package/docs/models/operations/getgenerationsbyuseridresponsebody.md +10 -0
- package/docs/models/operations/{getinitimagebyid200applicationjsoninitimages.md → getinitimagebyidinitimages.md} +1 -1
- package/docs/models/operations/getinitimagebyidresponse.md +6 -6
- package/docs/models/operations/getinitimagebyidresponsebody.md +10 -0
- package/docs/models/operations/{getmodelbyid200applicationjsoncustommodels.md → getmodelbyidcustommodels.md} +1 -1
- package/docs/models/operations/getmodelbyidresponse.md +6 -6
- package/docs/models/operations/getmodelbyidresponsebody.md +10 -0
- package/docs/models/operations/getplatformmodelscustommodels.md +15 -0
- package/docs/models/operations/{getplatformmodels200applicationjsoncustommodelsgeneratedimages.md → getplatformmodelsgeneratedimages.md} +1 -1
- package/docs/models/operations/getplatformmodelsresponse.md +6 -6
- package/docs/models/operations/getplatformmodelsresponsebody.md +10 -0
- package/docs/models/operations/getuserselfresponse.md +6 -6
- package/docs/models/operations/getuserselfresponsebody.md +10 -0
- package/docs/models/operations/getvariationbyidresponse.md +6 -6
- package/docs/models/operations/getvariationbyidresponsebody.md +10 -0
- package/docs/models/operations/{deleteinitimagebyid200applicationjsoninitimages.md → initimages.md} +1 -1
- package/docs/models/operations/{uploaddatasetimage200applicationjsondatasetuploadoutput.md → initimageuploadoutput.md} +1 -1
- package/docs/models/operations/{getelements200applicationjsonloras.md → loras.md} +1 -1
- package/docs/models/operations/{deletemodels3did200applicationjsonmodelassets.md → modelassets.md} +1 -1
- package/docs/models/operations/{deletegenerationstextureid200applicationjsonmodelassettexturegenerations.md → modelassettexturegenerations.md} +1 -1
- package/docs/models/operations/{postmodels3dupload200applicationjsonmodelassetuploadoutput.md → modelassetuploadoutput.md} +1 -1
- package/docs/models/operations/postgenerationstextureresponse.md +6 -6
- package/docs/models/operations/postgenerationstextureresponsebody.md +10 -0
- package/docs/models/operations/postmodels3duploadresponse.md +6 -6
- package/docs/models/operations/postmodels3duploadresponsebody.md +10 -0
- package/docs/models/operations/postvariationsunzoomresponse.md +6 -6
- package/docs/models/operations/postvariationsunzoomresponsebody.md +10 -0
- package/docs/models/operations/{creategeneration200applicationjsonsdgenerationoutput.md → sdgenerationoutput.md} +1 -1
- package/docs/models/operations/{createmodel200applicationjsonsdtrainingoutput.md → sdtrainingoutput.md} +1 -1
- package/docs/models/operations/{postvariationsunzoom200applicationjsonsdunzoomoutput.md → sdunzoomoutput.md} +1 -1
- package/docs/models/operations/{createvariationnobg200applicationjsonsdupscalejoboutput.md → sdupscalejoboutput.md} +1 -1
- package/docs/models/operations/{postgenerationstexture200applicationjsontexturegenerationjoboutput.md → texturegenerationjoboutput.md} +1 -1
- package/docs/models/operations/uploaddatasetimagefromgenresponse.md +6 -6
- package/docs/models/operations/uploaddatasetimagefromgenresponsebody.md +10 -0
- package/docs/models/operations/uploaddatasetimageresponse.md +6 -6
- package/docs/models/operations/uploaddatasetimageresponsebody.md +10 -0
- package/docs/models/operations/uploadinitimageresponse.md +6 -6
- package/docs/models/operations/uploadinitimageresponsebody.md +10 -0
- package/docs/models/operations/userdetails.md +15 -0
- package/docs/models/operations/{getuserself200applicationjsonuserdetailsusers.md → users.md} +1 -1
- package/docs/sdks/dataset/README.md +1 -1
- package/docs/sdks/element/README.md +1 -1
- package/docs/sdks/generation/README.md +1 -1
- package/docs/sdks/initimage/README.md +1 -1
- package/docs/sdks/model/README.md +1 -1
- package/docs/sdks/user/README.md +1 -1
- package/docs/sdks/variation/README.md +1 -1
- package/package.json +1 -1
- package/docs/models/operations/createdataset200applicationjson.md +0 -10
- package/docs/models/operations/creategeneration200applicationjson.md +0 -10
- package/docs/models/operations/createmodel200applicationjson.md +0 -10
- package/docs/models/operations/createvariationnobg200applicationjson.md +0 -10
- package/docs/models/operations/createvariationupscale200applicationjson.md +0 -10
- package/docs/models/operations/deletedatasetbyid200applicationjson.md +0 -10
- package/docs/models/operations/deletegenerationbyid200applicationjson.md +0 -10
- package/docs/models/operations/deletegenerationstextureid200applicationjson.md +0 -10
- package/docs/models/operations/deleteinitimagebyid200applicationjson.md +0 -10
- package/docs/models/operations/deletemodelbyid200applicationjson.md +0 -10
- package/docs/models/operations/deletemodels3did200applicationjson.md +0 -10
- package/docs/models/operations/getdatasetbyid200applicationjsondatasets.md +0 -15
- package/docs/models/operations/getelements200applicationjson.md +0 -10
- package/docs/models/operations/getgenerationbyid200applicationjson.md +0 -10
- package/docs/models/operations/getgenerationbyid200applicationjsongenerationsgeneratedimages.md +0 -14
- package/docs/models/operations/getgenerationsbyuserid200applicationjson.md +0 -10
- package/docs/models/operations/getgenerationsbyuserid200applicationjsongenerationsgeneratedimages.md +0 -14
- package/docs/models/operations/getgenerationsbyuserid200applicationjsongenerationsgenerationelements.md +0 -12
- package/docs/models/operations/getinitimagebyid200applicationjson.md +0 -10
- package/docs/models/operations/getmodelbyid200applicationjson.md +0 -10
- package/docs/models/operations/getplatformmodels200applicationjson.md +0 -10
- package/docs/models/operations/getplatformmodels200applicationjsoncustommodels.md +0 -15
- package/docs/models/operations/getuserself200applicationjson.md +0 -10
- package/docs/models/operations/getuserself200applicationjsonuserdetails.md +0 -15
- package/docs/models/operations/getvariationbyid200applicationjson.md +0 -10
- package/docs/models/operations/postgenerationstexture200applicationjson.md +0 -10
- package/docs/models/operations/postmodels3dupload200applicationjson.md +0 -10
- package/docs/models/operations/postvariationsunzoom200applicationjson.md +0 -10
- package/docs/models/operations/uploaddatasetimage200applicationjson.md +0 -10
- package/docs/models/operations/uploaddatasetimagefromgen200applicationjson.md +0 -10
- package/docs/models/operations/uploadinitimage200applicationjson.md +0 -10
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ import { Leonardo } from "@leonardo-ai/sdk";
|
|
|
54
54
|
## Available Resources and Operations
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
### [dataset](docs/sdks/dataset/README.md)
|
|
57
|
+
### [.dataset](docs/sdks/dataset/README.md)
|
|
58
58
|
|
|
59
59
|
* [createDataset](docs/sdks/dataset/README.md#createdataset) - Create a Dataset
|
|
60
60
|
* [deleteDatasetById](docs/sdks/dataset/README.md#deletedatasetbyid) - Delete a Single Dataset by ID
|
|
@@ -62,11 +62,11 @@ import { Leonardo } from "@leonardo-ai/sdk";
|
|
|
62
62
|
* [uploadDatasetImage](docs/sdks/dataset/README.md#uploaddatasetimage) - Upload dataset image
|
|
63
63
|
* [uploadDatasetImageFromGen](docs/sdks/dataset/README.md#uploaddatasetimagefromgen) - Upload a Single Generated Image to a Dataset
|
|
64
64
|
|
|
65
|
-
### [element](docs/sdks/element/README.md)
|
|
65
|
+
### [.element](docs/sdks/element/README.md)
|
|
66
66
|
|
|
67
67
|
* [getElements](docs/sdks/element/README.md#getelements) - List Elements
|
|
68
68
|
|
|
69
|
-
### [generation](docs/sdks/generation/README.md)
|
|
69
|
+
### [.generation](docs/sdks/generation/README.md)
|
|
70
70
|
|
|
71
71
|
* [createGeneration](docs/sdks/generation/README.md#creategeneration) - Create a Generation of Images
|
|
72
72
|
* [deleteGenerationById](docs/sdks/generation/README.md#deletegenerationbyid) - Delete a Single Generation
|
|
@@ -75,13 +75,13 @@ import { Leonardo } from "@leonardo-ai/sdk";
|
|
|
75
75
|
* [getGenerationsByUserId](docs/sdks/generation/README.md#getgenerationsbyuserid) - Get generations by user ID
|
|
76
76
|
* [postGenerationsTexture](docs/sdks/generation/README.md#postgenerationstexture) - Create Texture Generation
|
|
77
77
|
|
|
78
|
-
### [initImage](docs/sdks/initimage/README.md)
|
|
78
|
+
### [.initImage](docs/sdks/initimage/README.md)
|
|
79
79
|
|
|
80
80
|
* [deleteInitImageById](docs/sdks/initimage/README.md#deleteinitimagebyid) - Delete init image
|
|
81
81
|
* [getInitImageById](docs/sdks/initimage/README.md#getinitimagebyid) - Get single init image
|
|
82
82
|
* [uploadInitImage](docs/sdks/initimage/README.md#uploadinitimage) - Upload init image
|
|
83
83
|
|
|
84
|
-
### [model](docs/sdks/model/README.md)
|
|
84
|
+
### [.model](docs/sdks/model/README.md)
|
|
85
85
|
|
|
86
86
|
* [createModel](docs/sdks/model/README.md#createmodel) - Train a Custom Model
|
|
87
87
|
* [deleteModelById](docs/sdks/model/README.md#deletemodelbyid) - Delete a Single Custom Model by ID
|
|
@@ -90,11 +90,11 @@ import { Leonardo } from "@leonardo-ai/sdk";
|
|
|
90
90
|
* [getPlatformModels](docs/sdks/model/README.md#getplatformmodels) - List Platform Models
|
|
91
91
|
* [postModels3dUpload](docs/sdks/model/README.md#postmodels3dupload) - Upload 3D Model
|
|
92
92
|
|
|
93
|
-
### [user](docs/sdks/user/README.md)
|
|
93
|
+
### [.user](docs/sdks/user/README.md)
|
|
94
94
|
|
|
95
95
|
* [getUserSelf](docs/sdks/user/README.md#getuserself) - Get user information
|
|
96
96
|
|
|
97
|
-
### [variation](docs/sdks/variation/README.md)
|
|
97
|
+
### [.variation](docs/sdks/variation/README.md)
|
|
98
98
|
|
|
99
99
|
* [createVariationNoBG](docs/sdks/variation/README.md#createvariationnobg) - Create no background
|
|
100
100
|
* [createVariationUpscale](docs/sdks/variation/README.md#createvariationupscale) - Create upscale
|
package/dist/sdk/dataset.js
CHANGED
|
@@ -159,7 +159,7 @@ var Dataset = /** @class */ (function () {
|
|
|
159
159
|
switch (true) {
|
|
160
160
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
161
161
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
162
|
-
res.
|
|
162
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.CreateDatasetResponseBody);
|
|
163
163
|
}
|
|
164
164
|
else {
|
|
165
165
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -220,7 +220,7 @@ var Dataset = /** @class */ (function () {
|
|
|
220
220
|
switch (true) {
|
|
221
221
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
222
222
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
223
|
-
res.
|
|
223
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteDatasetByIdResponseBody);
|
|
224
224
|
}
|
|
225
225
|
else {
|
|
226
226
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -281,7 +281,7 @@ var Dataset = /** @class */ (function () {
|
|
|
281
281
|
switch (true) {
|
|
282
282
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
283
283
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
284
|
-
res.
|
|
284
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetDatasetByIdResponseBody);
|
|
285
285
|
}
|
|
286
286
|
else {
|
|
287
287
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -355,7 +355,7 @@ var Dataset = /** @class */ (function () {
|
|
|
355
355
|
switch (true) {
|
|
356
356
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
357
357
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
358
|
-
res.
|
|
358
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.UploadDatasetImageResponseBody);
|
|
359
359
|
}
|
|
360
360
|
else {
|
|
361
361
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -429,7 +429,7 @@ var Dataset = /** @class */ (function () {
|
|
|
429
429
|
switch (true) {
|
|
430
430
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
431
431
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
432
|
-
res.
|
|
432
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.UploadDatasetImageFromGenResponseBody);
|
|
433
433
|
}
|
|
434
434
|
else {
|
|
435
435
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/element.js
CHANGED
|
@@ -128,7 +128,7 @@ var Element = /** @class */ (function () {
|
|
|
128
128
|
switch (true) {
|
|
129
129
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
130
130
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
131
|
-
res.
|
|
131
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetElementsResponseBody);
|
|
132
132
|
}
|
|
133
133
|
else {
|
|
134
134
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/generation.js
CHANGED
|
@@ -159,7 +159,7 @@ var Generation = /** @class */ (function () {
|
|
|
159
159
|
switch (true) {
|
|
160
160
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
161
161
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
162
|
-
res.
|
|
162
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.CreateGenerationResponseBody);
|
|
163
163
|
}
|
|
164
164
|
else {
|
|
165
165
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -220,7 +220,7 @@ var Generation = /** @class */ (function () {
|
|
|
220
220
|
switch (true) {
|
|
221
221
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
222
222
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
223
|
-
res.
|
|
223
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteGenerationByIdResponseBody);
|
|
224
224
|
}
|
|
225
225
|
else {
|
|
226
226
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -292,7 +292,7 @@ var Generation = /** @class */ (function () {
|
|
|
292
292
|
switch (true) {
|
|
293
293
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
294
294
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
295
|
-
res.
|
|
295
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteGenerationsTextureIdResponseBody);
|
|
296
296
|
}
|
|
297
297
|
else {
|
|
298
298
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -353,7 +353,7 @@ var Generation = /** @class */ (function () {
|
|
|
353
353
|
switch (true) {
|
|
354
354
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
355
355
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
356
|
-
res.
|
|
356
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetGenerationByIdResponseBody);
|
|
357
357
|
}
|
|
358
358
|
else {
|
|
359
359
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -417,7 +417,7 @@ var Generation = /** @class */ (function () {
|
|
|
417
417
|
switch (true) {
|
|
418
418
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
419
419
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
420
|
-
res.
|
|
420
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetGenerationsByUserIdResponseBody);
|
|
421
421
|
}
|
|
422
422
|
else {
|
|
423
423
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -488,7 +488,7 @@ var Generation = /** @class */ (function () {
|
|
|
488
488
|
switch (true) {
|
|
489
489
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
490
490
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
491
|
-
res.
|
|
491
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.PostGenerationsTextureResponseBody);
|
|
492
492
|
}
|
|
493
493
|
else {
|
|
494
494
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/initimage.js
CHANGED
|
@@ -147,7 +147,7 @@ var InitImage = /** @class */ (function () {
|
|
|
147
147
|
switch (true) {
|
|
148
148
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
149
149
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
150
|
-
res.
|
|
150
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteInitImageByIdResponseBody);
|
|
151
151
|
}
|
|
152
152
|
else {
|
|
153
153
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -208,7 +208,7 @@ var InitImage = /** @class */ (function () {
|
|
|
208
208
|
switch (true) {
|
|
209
209
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
210
210
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
211
|
-
res.
|
|
211
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetInitImageByIdResponseBody);
|
|
212
212
|
}
|
|
213
213
|
else {
|
|
214
214
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -281,7 +281,7 @@ var InitImage = /** @class */ (function () {
|
|
|
281
281
|
switch (true) {
|
|
282
282
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
283
283
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
284
|
-
res.
|
|
284
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.UploadInitImageResponseBody);
|
|
285
285
|
}
|
|
286
286
|
else {
|
|
287
287
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/model.js
CHANGED
|
@@ -159,7 +159,7 @@ var Model = /** @class */ (function () {
|
|
|
159
159
|
switch (true) {
|
|
160
160
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
161
161
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
162
|
-
res.
|
|
162
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.CreateModelResponseBody);
|
|
163
163
|
}
|
|
164
164
|
else {
|
|
165
165
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -220,7 +220,7 @@ var Model = /** @class */ (function () {
|
|
|
220
220
|
switch (true) {
|
|
221
221
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
222
222
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
223
|
-
res.
|
|
223
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteModelByIdResponseBody);
|
|
224
224
|
}
|
|
225
225
|
else {
|
|
226
226
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -292,7 +292,7 @@ var Model = /** @class */ (function () {
|
|
|
292
292
|
switch (true) {
|
|
293
293
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
294
294
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
295
|
-
res.
|
|
295
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.DeleteModels3dIdResponseBody);
|
|
296
296
|
}
|
|
297
297
|
else {
|
|
298
298
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -353,7 +353,7 @@ var Model = /** @class */ (function () {
|
|
|
353
353
|
switch (true) {
|
|
354
354
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
355
355
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
356
|
-
res.
|
|
356
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetModelByIdResponseBody);
|
|
357
357
|
}
|
|
358
358
|
else {
|
|
359
359
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -416,7 +416,7 @@ var Model = /** @class */ (function () {
|
|
|
416
416
|
switch (true) {
|
|
417
417
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
418
418
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
419
|
-
res.
|
|
419
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.GetPlatformModelsResponseBody);
|
|
420
420
|
}
|
|
421
421
|
else {
|
|
422
422
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -487,7 +487,7 @@ var Model = /** @class */ (function () {
|
|
|
487
487
|
switch (true) {
|
|
488
488
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
489
489
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
490
|
-
res.
|
|
490
|
+
res.object = utils.objectToClass(JSON.parse(decodedRes), operations.PostModels3dUploadResponseBody);
|
|
491
491
|
}
|
|
492
492
|
else {
|
|
493
493
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -16,17 +16,17 @@ export declare class CreateDatasetRequestBody extends SpeakeasyBase {
|
|
|
16
16
|
/**
|
|
17
17
|
* columns and relationships of "datasets"
|
|
18
18
|
*/
|
|
19
|
-
export declare class
|
|
19
|
+
export declare class Datasets extends SpeakeasyBase {
|
|
20
20
|
id?: string;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Responses for POST /datasets
|
|
24
24
|
*/
|
|
25
|
-
export declare class
|
|
25
|
+
export declare class CreateDatasetResponseBody extends SpeakeasyBase {
|
|
26
26
|
/**
|
|
27
27
|
* columns and relationships of "datasets"
|
|
28
28
|
*/
|
|
29
|
-
insertDatasetsOne?:
|
|
29
|
+
insertDatasetsOne?: Datasets;
|
|
30
30
|
}
|
|
31
31
|
export declare class CreateDatasetResponse extends SpeakeasyBase {
|
|
32
32
|
/**
|
|
@@ -44,5 +44,5 @@ export declare class CreateDatasetResponse extends SpeakeasyBase {
|
|
|
44
44
|
/**
|
|
45
45
|
* Responses for POST /datasets
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
object?: CreateDatasetResponseBody;
|
|
48
48
|
}
|
|
@@ -27,7 +27,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
27
27
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.CreateDatasetResponse = exports.
|
|
30
|
+
exports.CreateDatasetResponse = exports.CreateDatasetResponseBody = exports.Datasets = exports.CreateDatasetRequestBody = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
32
|
var class_transformer_1 = require("class-transformer");
|
|
33
33
|
/**
|
|
@@ -54,36 +54,36 @@ exports.CreateDatasetRequestBody = CreateDatasetRequestBody;
|
|
|
54
54
|
/**
|
|
55
55
|
* columns and relationships of "datasets"
|
|
56
56
|
*/
|
|
57
|
-
var
|
|
58
|
-
__extends(
|
|
59
|
-
function
|
|
57
|
+
var Datasets = /** @class */ (function (_super) {
|
|
58
|
+
__extends(Datasets, _super);
|
|
59
|
+
function Datasets() {
|
|
60
60
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
61
61
|
}
|
|
62
62
|
__decorate([
|
|
63
63
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
64
64
|
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
65
65
|
__metadata("design:type", String)
|
|
66
|
-
],
|
|
67
|
-
return
|
|
66
|
+
], Datasets.prototype, "id", void 0);
|
|
67
|
+
return Datasets;
|
|
68
68
|
}(utils_1.SpeakeasyBase));
|
|
69
|
-
exports.
|
|
69
|
+
exports.Datasets = Datasets;
|
|
70
70
|
/**
|
|
71
71
|
* Responses for POST /datasets
|
|
72
72
|
*/
|
|
73
|
-
var
|
|
74
|
-
__extends(
|
|
75
|
-
function
|
|
73
|
+
var CreateDatasetResponseBody = /** @class */ (function (_super) {
|
|
74
|
+
__extends(CreateDatasetResponseBody, _super);
|
|
75
|
+
function CreateDatasetResponseBody() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
__decorate([
|
|
79
79
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
80
80
|
(0, class_transformer_1.Expose)({ name: "insert_datasets_one" }),
|
|
81
|
-
(0, class_transformer_1.Type)(function () { return
|
|
82
|
-
__metadata("design:type",
|
|
83
|
-
],
|
|
84
|
-
return
|
|
81
|
+
(0, class_transformer_1.Type)(function () { return Datasets; }),
|
|
82
|
+
__metadata("design:type", Datasets)
|
|
83
|
+
], CreateDatasetResponseBody.prototype, "insertDatasetsOne", void 0);
|
|
84
|
+
return CreateDatasetResponseBody;
|
|
85
85
|
}(utils_1.SpeakeasyBase));
|
|
86
|
-
exports.
|
|
86
|
+
exports.CreateDatasetResponseBody = CreateDatasetResponseBody;
|
|
87
87
|
var CreateDatasetResponse = /** @class */ (function (_super) {
|
|
88
88
|
__extends(CreateDatasetResponse, _super);
|
|
89
89
|
function CreateDatasetResponse() {
|
|
@@ -103,8 +103,8 @@ var CreateDatasetResponse = /** @class */ (function (_super) {
|
|
|
103
103
|
], CreateDatasetResponse.prototype, "rawResponse", void 0);
|
|
104
104
|
__decorate([
|
|
105
105
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
106
|
-
__metadata("design:type",
|
|
107
|
-
], CreateDatasetResponse.prototype, "
|
|
106
|
+
__metadata("design:type", CreateDatasetResponseBody)
|
|
107
|
+
], CreateDatasetResponse.prototype, "object", void 0);
|
|
108
108
|
return CreateDatasetResponse;
|
|
109
109
|
}(utils_1.SpeakeasyBase));
|
|
110
110
|
exports.CreateDatasetResponse = CreateDatasetResponse;
|
|
@@ -142,7 +142,7 @@ export declare class CreateGenerationRequestBody extends SpeakeasyBase {
|
|
|
142
142
|
*/
|
|
143
143
|
width?: number;
|
|
144
144
|
}
|
|
145
|
-
export declare class
|
|
145
|
+
export declare class SDGenerationOutput extends SpeakeasyBase {
|
|
146
146
|
/**
|
|
147
147
|
* API Credits Cost for Image Generation. Available for Production API Users.
|
|
148
148
|
*/
|
|
@@ -152,8 +152,8 @@ export declare class CreateGeneration200ApplicationJSONSDGenerationOutput extend
|
|
|
152
152
|
/**
|
|
153
153
|
* Responses for POST /generations
|
|
154
154
|
*/
|
|
155
|
-
export declare class
|
|
156
|
-
sdGenerationJob?:
|
|
155
|
+
export declare class CreateGenerationResponseBody extends SpeakeasyBase {
|
|
156
|
+
sdGenerationJob?: SDGenerationOutput;
|
|
157
157
|
}
|
|
158
158
|
export declare class CreateGenerationResponse extends SpeakeasyBase {
|
|
159
159
|
/**
|
|
@@ -171,5 +171,5 @@ export declare class CreateGenerationResponse extends SpeakeasyBase {
|
|
|
171
171
|
/**
|
|
172
172
|
* Responses for POST /generations
|
|
173
173
|
*/
|
|
174
|
-
|
|
174
|
+
object?: CreateGenerationResponseBody;
|
|
175
175
|
}
|
|
@@ -50,7 +50,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
50
50
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
51
51
|
};
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.CreateGenerationResponse = exports.
|
|
53
|
+
exports.CreateGenerationResponse = exports.CreateGenerationResponseBody = exports.SDGenerationOutput = exports.CreateGenerationRequestBody = void 0;
|
|
54
54
|
var utils_1 = require("../../../internal/utils");
|
|
55
55
|
var shared = __importStar(require("../shared"));
|
|
56
56
|
var class_transformer_1 = require("class-transformer");
|
|
@@ -251,41 +251,41 @@ var CreateGenerationRequestBody = /** @class */ (function (_super) {
|
|
|
251
251
|
return CreateGenerationRequestBody;
|
|
252
252
|
}(utils_1.SpeakeasyBase));
|
|
253
253
|
exports.CreateGenerationRequestBody = CreateGenerationRequestBody;
|
|
254
|
-
var
|
|
255
|
-
__extends(
|
|
256
|
-
function
|
|
254
|
+
var SDGenerationOutput = /** @class */ (function (_super) {
|
|
255
|
+
__extends(SDGenerationOutput, _super);
|
|
256
|
+
function SDGenerationOutput() {
|
|
257
257
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
258
258
|
}
|
|
259
259
|
__decorate([
|
|
260
260
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
261
261
|
(0, class_transformer_1.Expose)({ name: "apiCreditCost" }),
|
|
262
262
|
__metadata("design:type", Number)
|
|
263
|
-
],
|
|
263
|
+
], SDGenerationOutput.prototype, "apiCreditCost", void 0);
|
|
264
264
|
__decorate([
|
|
265
265
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
266
266
|
(0, class_transformer_1.Expose)({ name: "generationId" }),
|
|
267
267
|
__metadata("design:type", String)
|
|
268
|
-
],
|
|
269
|
-
return
|
|
268
|
+
], SDGenerationOutput.prototype, "generationId", void 0);
|
|
269
|
+
return SDGenerationOutput;
|
|
270
270
|
}(utils_1.SpeakeasyBase));
|
|
271
|
-
exports.
|
|
271
|
+
exports.SDGenerationOutput = SDGenerationOutput;
|
|
272
272
|
/**
|
|
273
273
|
* Responses for POST /generations
|
|
274
274
|
*/
|
|
275
|
-
var
|
|
276
|
-
__extends(
|
|
277
|
-
function
|
|
275
|
+
var CreateGenerationResponseBody = /** @class */ (function (_super) {
|
|
276
|
+
__extends(CreateGenerationResponseBody, _super);
|
|
277
|
+
function CreateGenerationResponseBody() {
|
|
278
278
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
279
279
|
}
|
|
280
280
|
__decorate([
|
|
281
281
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
282
282
|
(0, class_transformer_1.Expose)({ name: "sdGenerationJob" }),
|
|
283
|
-
(0, class_transformer_1.Type)(function () { return
|
|
284
|
-
__metadata("design:type",
|
|
285
|
-
],
|
|
286
|
-
return
|
|
283
|
+
(0, class_transformer_1.Type)(function () { return SDGenerationOutput; }),
|
|
284
|
+
__metadata("design:type", SDGenerationOutput)
|
|
285
|
+
], CreateGenerationResponseBody.prototype, "sdGenerationJob", void 0);
|
|
286
|
+
return CreateGenerationResponseBody;
|
|
287
287
|
}(utils_1.SpeakeasyBase));
|
|
288
|
-
exports.
|
|
288
|
+
exports.CreateGenerationResponseBody = CreateGenerationResponseBody;
|
|
289
289
|
var CreateGenerationResponse = /** @class */ (function (_super) {
|
|
290
290
|
__extends(CreateGenerationResponse, _super);
|
|
291
291
|
function CreateGenerationResponse() {
|
|
@@ -305,8 +305,8 @@ var CreateGenerationResponse = /** @class */ (function (_super) {
|
|
|
305
305
|
], CreateGenerationResponse.prototype, "rawResponse", void 0);
|
|
306
306
|
__decorate([
|
|
307
307
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
308
|
-
__metadata("design:type",
|
|
309
|
-
], CreateGenerationResponse.prototype, "
|
|
308
|
+
__metadata("design:type", CreateGenerationResponseBody)
|
|
309
|
+
], CreateGenerationResponse.prototype, "object", void 0);
|
|
310
310
|
return CreateGenerationResponse;
|
|
311
311
|
}(utils_1.SpeakeasyBase));
|
|
312
312
|
exports.CreateGenerationResponse = CreateGenerationResponse;
|
|
@@ -42,7 +42,7 @@ export declare class CreateModelRequestBody extends SpeakeasyBase {
|
|
|
42
42
|
*/
|
|
43
43
|
strength?: shared.Strength;
|
|
44
44
|
}
|
|
45
|
-
export declare class
|
|
45
|
+
export declare class SDTrainingOutput extends SpeakeasyBase {
|
|
46
46
|
/**
|
|
47
47
|
* API Credits Cost for Model Training. Available for Production API Users.
|
|
48
48
|
*/
|
|
@@ -52,8 +52,8 @@ export declare class CreateModel200ApplicationJSONSDTrainingOutput extends Speak
|
|
|
52
52
|
/**
|
|
53
53
|
* Responses for POST /models
|
|
54
54
|
*/
|
|
55
|
-
export declare class
|
|
56
|
-
sdTrainingJob?:
|
|
55
|
+
export declare class CreateModelResponseBody extends SpeakeasyBase {
|
|
56
|
+
sdTrainingJob?: SDTrainingOutput;
|
|
57
57
|
}
|
|
58
58
|
export declare class CreateModelResponse extends SpeakeasyBase {
|
|
59
59
|
/**
|
|
@@ -71,5 +71,5 @@ export declare class CreateModelResponse extends SpeakeasyBase {
|
|
|
71
71
|
/**
|
|
72
72
|
* Responses for POST /models
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
object?: CreateModelResponseBody;
|
|
75
75
|
}
|
|
@@ -50,7 +50,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
50
50
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
51
51
|
};
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.CreateModelResponse = exports.
|
|
53
|
+
exports.CreateModelResponse = exports.CreateModelResponseBody = exports.SDTrainingOutput = exports.CreateModelRequestBody = void 0;
|
|
54
54
|
var utils_1 = require("../../../internal/utils");
|
|
55
55
|
var shared = __importStar(require("../shared"));
|
|
56
56
|
var class_transformer_1 = require("class-transformer");
|
|
@@ -110,41 +110,41 @@ var CreateModelRequestBody = /** @class */ (function (_super) {
|
|
|
110
110
|
return CreateModelRequestBody;
|
|
111
111
|
}(utils_1.SpeakeasyBase));
|
|
112
112
|
exports.CreateModelRequestBody = CreateModelRequestBody;
|
|
113
|
-
var
|
|
114
|
-
__extends(
|
|
115
|
-
function
|
|
113
|
+
var SDTrainingOutput = /** @class */ (function (_super) {
|
|
114
|
+
__extends(SDTrainingOutput, _super);
|
|
115
|
+
function SDTrainingOutput() {
|
|
116
116
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
117
117
|
}
|
|
118
118
|
__decorate([
|
|
119
119
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
120
120
|
(0, class_transformer_1.Expose)({ name: "apiCreditCost" }),
|
|
121
121
|
__metadata("design:type", Number)
|
|
122
|
-
],
|
|
122
|
+
], SDTrainingOutput.prototype, "apiCreditCost", void 0);
|
|
123
123
|
__decorate([
|
|
124
124
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
125
125
|
(0, class_transformer_1.Expose)({ name: "customModelId" }),
|
|
126
126
|
__metadata("design:type", String)
|
|
127
|
-
],
|
|
128
|
-
return
|
|
127
|
+
], SDTrainingOutput.prototype, "customModelId", void 0);
|
|
128
|
+
return SDTrainingOutput;
|
|
129
129
|
}(utils_1.SpeakeasyBase));
|
|
130
|
-
exports.
|
|
130
|
+
exports.SDTrainingOutput = SDTrainingOutput;
|
|
131
131
|
/**
|
|
132
132
|
* Responses for POST /models
|
|
133
133
|
*/
|
|
134
|
-
var
|
|
135
|
-
__extends(
|
|
136
|
-
function
|
|
134
|
+
var CreateModelResponseBody = /** @class */ (function (_super) {
|
|
135
|
+
__extends(CreateModelResponseBody, _super);
|
|
136
|
+
function CreateModelResponseBody() {
|
|
137
137
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
138
138
|
}
|
|
139
139
|
__decorate([
|
|
140
140
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
141
141
|
(0, class_transformer_1.Expose)({ name: "sdTrainingJob" }),
|
|
142
|
-
(0, class_transformer_1.Type)(function () { return
|
|
143
|
-
__metadata("design:type",
|
|
144
|
-
],
|
|
145
|
-
return
|
|
142
|
+
(0, class_transformer_1.Type)(function () { return SDTrainingOutput; }),
|
|
143
|
+
__metadata("design:type", SDTrainingOutput)
|
|
144
|
+
], CreateModelResponseBody.prototype, "sdTrainingJob", void 0);
|
|
145
|
+
return CreateModelResponseBody;
|
|
146
146
|
}(utils_1.SpeakeasyBase));
|
|
147
|
-
exports.
|
|
147
|
+
exports.CreateModelResponseBody = CreateModelResponseBody;
|
|
148
148
|
var CreateModelResponse = /** @class */ (function (_super) {
|
|
149
149
|
__extends(CreateModelResponse, _super);
|
|
150
150
|
function CreateModelResponse() {
|
|
@@ -164,8 +164,8 @@ var CreateModelResponse = /** @class */ (function (_super) {
|
|
|
164
164
|
], CreateModelResponse.prototype, "rawResponse", void 0);
|
|
165
165
|
__decorate([
|
|
166
166
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
167
|
-
__metadata("design:type",
|
|
168
|
-
], CreateModelResponse.prototype, "
|
|
167
|
+
__metadata("design:type", CreateModelResponseBody)
|
|
168
|
+
], CreateModelResponse.prototype, "object", void 0);
|
|
169
169
|
return CreateModelResponse;
|
|
170
170
|
}(utils_1.SpeakeasyBase));
|
|
171
171
|
exports.CreateModelResponse = CreateModelResponse;
|
|
@@ -7,7 +7,7 @@ export declare class CreateVariationNoBGRequestBody extends SpeakeasyBase {
|
|
|
7
7
|
id: string;
|
|
8
8
|
isVariation?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
10
|
+
export declare class SDUpscaleJobOutput extends SpeakeasyBase {
|
|
11
11
|
/**
|
|
12
12
|
* API Credits Cost for No Background Variation. Available for Production API Users.
|
|
13
13
|
*/
|
|
@@ -17,8 +17,8 @@ export declare class CreateVariationNoBg200ApplicationJSONSDUpscaleJobOutput ext
|
|
|
17
17
|
/**
|
|
18
18
|
* Responses for POST /variations/nobg
|
|
19
19
|
*/
|
|
20
|
-
export declare class
|
|
21
|
-
sdNobgJob?:
|
|
20
|
+
export declare class CreateVariationNoBGResponseBody extends SpeakeasyBase {
|
|
21
|
+
sdNobgJob?: SDUpscaleJobOutput;
|
|
22
22
|
}
|
|
23
23
|
export declare class CreateVariationNoBGResponse extends SpeakeasyBase {
|
|
24
24
|
/**
|
|
@@ -36,5 +36,5 @@ export declare class CreateVariationNoBGResponse extends SpeakeasyBase {
|
|
|
36
36
|
/**
|
|
37
37
|
* Responses for POST /variations/nobg
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
object?: CreateVariationNoBGResponseBody;
|
|
40
40
|
}
|