diff --git a/README.md b/README.md index 0fe38af7..2c5b7ad4 100755 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ import { Leonardo } from "@leonardo-ai/sdk"; ## Available Resources and Operations -### [.dataset](docs/sdks/dataset/README.md) +### [dataset](docs/sdks/dataset/README.md) * [createDataset](docs/sdks/dataset/README.md#createdataset) - Create a Dataset * [deleteDatasetById](docs/sdks/dataset/README.md#deletedatasetbyid) - Delete a Single Dataset by ID @@ -62,11 +62,11 @@ import { Leonardo } from "@leonardo-ai/sdk"; * [uploadDatasetImage](docs/sdks/dataset/README.md#uploaddatasetimage) - Upload dataset image * [uploadDatasetImageFromGen](docs/sdks/dataset/README.md#uploaddatasetimagefromgen) - Upload a Single Generated Image to a Dataset -### [.element](docs/sdks/element/README.md) +### [element](docs/sdks/element/README.md) * [getElements](docs/sdks/element/README.md#getelements) - List Elements -### [.generation](docs/sdks/generation/README.md) +### [generation](docs/sdks/generation/README.md) * [createGeneration](docs/sdks/generation/README.md#creategeneration) - Create a Generation of Images * [deleteGenerationById](docs/sdks/generation/README.md#deletegenerationbyid) - Delete a Single Generation @@ -75,17 +75,17 @@ import { Leonardo } from "@leonardo-ai/sdk"; * [getGenerationsByUserId](docs/sdks/generation/README.md#getgenerationsbyuserid) - Get generations by user ID * [postGenerationsTexture](docs/sdks/generation/README.md#postgenerationstexture) - Create Texture Generation -### [.initImage](docs/sdks/initimage/README.md) +### [initImage](docs/sdks/initimage/README.md) * [deleteInitImageById](docs/sdks/initimage/README.md#deleteinitimagebyid) - Delete init image * [getInitImageById](docs/sdks/initimage/README.md#getinitimagebyid) - Get single init image * [uploadInitImage](docs/sdks/initimage/README.md#uploadinitimage) - Upload init image -### [.user](docs/sdks/user/README.md) +### [user](docs/sdks/user/README.md) * [getUserSelf](docs/sdks/user/README.md#getuserself) - Get user information -### [.model](docs/sdks/model/README.md) +### [model](docs/sdks/model/README.md) * [createModel](docs/sdks/model/README.md#createmodel) - Train a Custom Model * [deleteModelById](docs/sdks/model/README.md#deletemodelbyid) - Delete a Single Custom Model by ID @@ -94,7 +94,7 @@ import { Leonardo } from "@leonardo-ai/sdk"; * [getPlatformModels](docs/sdks/model/README.md#getplatformmodels) - List Platform Models * [postModels3dUpload](docs/sdks/model/README.md#postmodels3dupload) - Upload 3D Model -### [.variation](docs/sdks/variation/README.md) +### [variation](docs/sdks/variation/README.md) * [createVariationNoBG](docs/sdks/variation/README.md#createvariationnobg) - Create no background * [createVariationUpscale](docs/sdks/variation/README.md#createvariationupscale) - Create upscale @@ -133,7 +133,36 @@ Here's an example of one such pagination call: # Error Handling -Handling errors in your SDK should largely match your expectations. All operations return a response object or throw an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Error type. +Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Error type. + +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | + + +## Example + +```typescript +import { Leonardo } from "@leonardo-ai/sdk"; + +(async () => { + const sdk = new Leonardo({ + bearerAuth: "", + }); + + let res; + try { + res = await sdk.dataset.createDataset({ + name: "string", + }); + } catch (e) {} + + if (res.statusCode == 200) { + // handle response + } +})(); + +``` @@ -223,12 +252,11 @@ import { Leonardo } from "@leonardo-ai/sdk"; - # Authentication ## Per-Client Security Schemes -Your SDK supports the following security scheme globally: +This SDK supports the following security scheme globally: | Name | Type | Scheme | | ------------ | ------------ | ------------ | diff --git a/RELEASES.md b/RELEASES.md index de0f35c1..1c6bfcda 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1389,4 +1389,14 @@ Based on: ### Generated - [typescript v2.1.0] . ### Releases -- [NPM v2.1.0] https://www.npmjs.com/package/@leonardo-ai/sdk/v/2.1.0 - . \ No newline at end of file +- [NPM v2.1.0] https://www.npmjs.com/package/@leonardo-ai/sdk/v/2.1.0 - . + +## 2023-11-08 14:01:55 +### Changes +Based on: +- OpenAPI Doc v1.0.0 https://api-docs-nine-delta.vercel.app/cloud/openapi.json +- Speakeasy CLI 1.116.0 (2.185.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v2.1.1] . +### Releases +- [NPM v2.1.1] https://www.npmjs.com/package/@leonardo-ai/sdk/v/2.1.1 - . \ No newline at end of file diff --git a/docs/models/operations/createdatasetresponse.md b/docs/models/operations/createdatasetresponse.md deleted file mode 100755 index fe19d8b7..00000000 --- a/docs/models/operations/createdatasetresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreateDatasetResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.CreateDatasetResponseBody](../../models/operations/createdatasetresponsebody.md) | :heavy_minus_sign: | Responses for POST /datasets | \ No newline at end of file diff --git a/docs/models/operations/createdatasetresponsebody.md b/docs/models/operations/createdatasetresponsebody.md deleted file mode 100755 index c7a4a76c..00000000 --- a/docs/models/operations/createdatasetresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# CreateDatasetResponseBody - -Responses for POST /datasets - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `insertDatasetsOne` | [operations.Datasets](../../models/operations/datasets.md) | :heavy_minus_sign: | columns and relationships of "datasets" | \ No newline at end of file diff --git a/docs/models/operations/creategenerationresponse.md b/docs/models/operations/creategenerationresponse.md deleted file mode 100755 index ad571e9e..00000000 --- a/docs/models/operations/creategenerationresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreateGenerationResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.CreateGenerationResponseBody](../../models/operations/creategenerationresponsebody.md) | :heavy_minus_sign: | Responses for POST /generations | \ No newline at end of file diff --git a/docs/models/operations/creategenerationresponsebody.md b/docs/models/operations/creategenerationresponsebody.md deleted file mode 100755 index 5930c093..00000000 --- a/docs/models/operations/creategenerationresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# CreateGenerationResponseBody - -Responses for POST /generations - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `sdGenerationJob` | [operations.SDGenerationOutput](../../models/operations/sdgenerationoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createmodelresponse.md b/docs/models/operations/createmodelresponse.md deleted file mode 100755 index 46cb1bc5..00000000 --- a/docs/models/operations/createmodelresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreateModelResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.CreateModelResponseBody](../../models/operations/createmodelresponsebody.md) | :heavy_minus_sign: | Responses for POST /models | \ No newline at end of file diff --git a/docs/models/operations/createmodelresponsebody.md b/docs/models/operations/createmodelresponsebody.md deleted file mode 100755 index 1b7581c9..00000000 --- a/docs/models/operations/createmodelresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# CreateModelResponseBody - -Responses for POST /models - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `sdTrainingJob` | [operations.SDTrainingOutput](../../models/operations/sdtrainingoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createvariationnobgresponse.md b/docs/models/operations/createvariationnobgresponse.md deleted file mode 100755 index f7e7cc38..00000000 --- a/docs/models/operations/createvariationnobgresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreateVariationNoBGResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.CreateVariationNoBGResponseBody](../../models/operations/createvariationnobgresponsebody.md) | :heavy_minus_sign: | Responses for POST /variations/nobg | \ No newline at end of file diff --git a/docs/models/operations/createvariationnobgresponsebody.md b/docs/models/operations/createvariationnobgresponsebody.md deleted file mode 100755 index bf66a4bb..00000000 --- a/docs/models/operations/createvariationnobgresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# CreateVariationNoBGResponseBody - -Responses for POST /variations/nobg - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `sdNobgJob` | [operations.SDUpscaleJobOutput](../../models/operations/sdupscalejoboutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createvariationupscaleresponse.md b/docs/models/operations/createvariationupscaleresponse.md deleted file mode 100755 index 0ff16b1f..00000000 --- a/docs/models/operations/createvariationupscaleresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# CreateVariationUpscaleResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.CreateVariationUpscaleResponseBody](../../models/operations/createvariationupscaleresponsebody.md) | :heavy_minus_sign: | Responses for POST /variations/upscale | \ No newline at end of file diff --git a/docs/models/operations/createvariationupscaleresponsebody.md b/docs/models/operations/createvariationupscaleresponsebody.md deleted file mode 100755 index b384a731..00000000 --- a/docs/models/operations/createvariationupscaleresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# CreateVariationUpscaleResponseBody - -Responses for POST /variations/upscale - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `sdUpscaleJob` | [operations.CreateVariationUpscaleSDUpscaleJobOutput](../../models/operations/createvariationupscalesdupscalejoboutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/deletedatasetbyidresponse.md b/docs/models/operations/deletedatasetbyidresponse.md deleted file mode 100755 index b940e10a..00000000 --- a/docs/models/operations/deletedatasetbyidresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# DeleteDatasetByIdResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.DeleteDatasetByIdResponseBody](../../models/operations/deletedatasetbyidresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /datasets/{id} | \ No newline at end of file diff --git a/docs/models/operations/deletedatasetbyidresponsebody.md b/docs/models/operations/deletedatasetbyidresponsebody.md deleted file mode 100755 index 9a2e3ee0..00000000 --- a/docs/models/operations/deletedatasetbyidresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# DeleteDatasetByIdResponseBody - -Responses for DELETE /datasets/{id} - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `deleteDatasetsByPk` | [operations.DeleteDatasetByIdDatasets](../../models/operations/deletedatasetbyiddatasets.md) | :heavy_minus_sign: | columns and relationships of "datasets" | \ No newline at end of file diff --git a/docs/models/operations/deletegenerationbyidresponse.md b/docs/models/operations/deletegenerationbyidresponse.md deleted file mode 100755 index 6bfe7c8c..00000000 --- a/docs/models/operations/deletegenerationbyidresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# DeleteGenerationByIdResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.DeleteGenerationByIdResponseBody](../../models/operations/deletegenerationbyidresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /generations/{id} | \ No newline at end of file diff --git a/docs/models/operations/deletegenerationbyidresponsebody.md b/docs/models/operations/deletegenerationbyidresponsebody.md deleted file mode 100755 index 8b6cc971..00000000 --- a/docs/models/operations/deletegenerationbyidresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# DeleteGenerationByIdResponseBody - -Responses for DELETE /generations/{id} - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `deleteGenerationsByPk` | [operations.Generations](../../models/operations/generations.md) | :heavy_minus_sign: | columns and relationships of "generations" | \ No newline at end of file diff --git a/docs/models/operations/deletegenerationstextureidrequest.md b/docs/models/operations/deletegenerationstextureidrequest.md deleted file mode 100755 index 768a50b2..00000000 --- a/docs/models/operations/deletegenerationstextureidrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# DeleteGenerationsTextureIdRequest - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | _"id" is required (enter it either in parameters or request body)_ | -| `requestBody` | [operations.DeleteGenerationsTextureIdRequestBody](../../models/operations/deletegenerationstextureidrequestbody.md) | :heavy_minus_sign: | Query parameters can also be provided in the request body as a JSON object | \ No newline at end of file diff --git a/docs/models/operations/deletegenerationstextureidresponse.md b/docs/models/operations/deletegenerationstextureidresponse.md deleted file mode 100755 index 56d95f7f..00000000 --- a/docs/models/operations/deletegenerationstextureidresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# DeleteGenerationsTextureIdResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.DeleteGenerationsTextureIdResponseBody](../../models/operations/deletegenerationstextureidresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /api/rest/v1/generations-texture/{id} | \ No newline at end of file diff --git a/docs/models/operations/deletegenerationstextureidresponsebody.md b/docs/models/operations/deletegenerationstextureidresponsebody.md deleted file mode 100755 index 65daf95e..00000000 --- a/docs/models/operations/deletegenerationstextureidresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# DeleteGenerationsTextureIdResponseBody - -Responses for DELETE /api/rest/v1/generations-texture/{id} - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `deleteModelAssetTextureGenerationsByPk` | [operations.ModelAssetTextureGenerations](../../models/operations/modelassettexturegenerations.md) | :heavy_minus_sign: | columns and relationships of "model_asset_texture_generations" | \ No newline at end of file diff --git a/docs/models/operations/deleteinitimagebyidresponse.md b/docs/models/operations/deleteinitimagebyidresponse.md deleted file mode 100755 index 90fb5d1e..00000000 --- a/docs/models/operations/deleteinitimagebyidresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# DeleteInitImageByIdResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.DeleteInitImageByIdResponseBody](../../models/operations/deleteinitimagebyidresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /init-image/{id} | \ No newline at end of file diff --git a/docs/models/operations/deleteinitimagebyidresponsebody.md b/docs/models/operations/deleteinitimagebyidresponsebody.md deleted file mode 100755 index 09b7958a..00000000 --- a/docs/models/operations/deleteinitimagebyidresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# DeleteInitImageByIdResponseBody - -Responses for DELETE /init-image/{id} - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `deleteInitImagesByPk` | [operations.InitImages](../../models/operations/initimages.md) | :heavy_minus_sign: | columns and relationships of "init_images" | \ No newline at end of file diff --git a/docs/models/operations/deletemodelbyidresponse.md b/docs/models/operations/deletemodelbyidresponse.md deleted file mode 100755 index aa64777e..00000000 --- a/docs/models/operations/deletemodelbyidresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# DeleteModelByIdResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.DeleteModelByIdResponseBody](../../models/operations/deletemodelbyidresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /models/{id} | \ No newline at end of file diff --git a/docs/models/operations/deletemodelbyidresponsebody.md b/docs/models/operations/deletemodelbyidresponsebody.md deleted file mode 100755 index 5216f6b9..00000000 --- a/docs/models/operations/deletemodelbyidresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# DeleteModelByIdResponseBody - -Responses for DELETE /models/{id} - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `deleteCustomModelsByPk` | [operations.CustomModels](../../models/operations/custommodels.md) | :heavy_minus_sign: | columns and relationships of "custom_models" | \ No newline at end of file diff --git a/docs/models/operations/deletemodels3didrequest.md b/docs/models/operations/deletemodels3didrequest.md deleted file mode 100755 index cf1c7b82..00000000 --- a/docs/models/operations/deletemodels3didrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# DeleteModels3dIdRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `id` | *string* | :heavy_check_mark: | _"id" is required (enter it either in parameters or request body)_ | -| `requestBody` | [operations.DeleteModels3dIdRequestBody](../../models/operations/deletemodels3didrequestbody.md) | :heavy_minus_sign: | Query parameters can also be provided in the request body as a JSON object | \ No newline at end of file diff --git a/docs/models/operations/deletemodels3didresponse.md b/docs/models/operations/deletemodels3didresponse.md deleted file mode 100755 index eec948f5..00000000 --- a/docs/models/operations/deletemodels3didresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# DeleteModels3dIdResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.DeleteModels3dIdResponseBody](../../models/operations/deletemodels3didresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /api/rest/v1/models-3d/{id} | \ No newline at end of file diff --git a/docs/models/operations/deletemodels3didresponsebody.md b/docs/models/operations/deletemodels3didresponsebody.md deleted file mode 100755 index 8862ed29..00000000 --- a/docs/models/operations/deletemodels3didresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# DeleteModels3dIdResponseBody - -Responses for DELETE /api/rest/v1/models-3d/{id} - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `deleteModelAssetsByPk` | [operations.ModelAssets](../../models/operations/modelassets.md) | :heavy_minus_sign: | columns and relationships of "model_assets" | \ No newline at end of file diff --git a/docs/models/operations/generatedimagevariationgeneric.md b/docs/models/operations/generatedimagevariationgeneric.md deleted file mode 100755 index b90081ea..00000000 --- a/docs/models/operations/generatedimagevariationgeneric.md +++ /dev/null @@ -1,14 +0,0 @@ -# GeneratedImageVariationGeneric - -columns and relationships of "generated_image_variation_generic" - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `createdAt` | *string* | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `status` | [shared.JobStatus](../../models/shared/jobstatus.md) | :heavy_minus_sign: | The status of the current task. | -| `transformType` | [shared.VariationType](../../models/shared/variationtype.md) | :heavy_minus_sign: | The type of variation. | -| `url` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/generationelements.md b/docs/models/operations/generationelements.md deleted file mode 100755 index 83323660..00000000 --- a/docs/models/operations/generationelements.md +++ /dev/null @@ -1,12 +0,0 @@ -# GenerationElements - -This table captures the elements that are applied to Generations. - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `id` | *number* | :heavy_minus_sign: | N/A | -| `lora` | [operations.GetGenerationByIdLoras](../../models/operations/getgenerationbyidloras.md) | :heavy_minus_sign: | Element used for the generation. | -| `weightApplied` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getdatasetbyiddatasets.md b/docs/models/operations/getdatasetbyiddatasets.md deleted file mode 100755 index 33fa8ad5..00000000 --- a/docs/models/operations/getdatasetbyiddatasets.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetDatasetByIdDatasets - -columns and relationships of "datasets" - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `createdAt` | *string* | :heavy_minus_sign: | N/A | -| `datasetImages` | [operations.DatasetImages](../../models/operations/datasetimages.md)[] | :heavy_minus_sign: | N/A | -| `description` | *string* | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `updatedAt` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getdatasetbyidresponse.md b/docs/models/operations/getdatasetbyidresponse.md deleted file mode 100755 index a884bbc8..00000000 --- a/docs/models/operations/getdatasetbyidresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetDatasetByIdResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetDatasetByIdResponseBody](../../models/operations/getdatasetbyidresponsebody.md) | :heavy_minus_sign: | Responses for GET /datasets/{id} | \ No newline at end of file diff --git a/docs/models/operations/getdatasetbyidresponsebody.md b/docs/models/operations/getdatasetbyidresponsebody.md deleted file mode 100755 index baa41cd3..00000000 --- a/docs/models/operations/getdatasetbyidresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetDatasetByIdResponseBody - -Responses for GET /datasets/{id} - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `datasetsByPk` | [operations.GetDatasetByIdDatasets](../../models/operations/getdatasetbyiddatasets.md) | :heavy_minus_sign: | columns and relationships of "datasets" | \ No newline at end of file diff --git a/docs/models/operations/getelementsresponse.md b/docs/models/operations/getelementsresponse.md deleted file mode 100755 index d4ffafd5..00000000 --- a/docs/models/operations/getelementsresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetElementsResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetElementsResponseBody](../../models/operations/getelementsresponsebody.md) | :heavy_minus_sign: | Responses for GET /api/rest/v1/elements | \ No newline at end of file diff --git a/docs/models/operations/getelementsresponsebody.md b/docs/models/operations/getelementsresponsebody.md deleted file mode 100755 index b13ac656..00000000 --- a/docs/models/operations/getelementsresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetElementsResponseBody - -Responses for GET /api/rest/v1/elements - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | -| `loras` | [operations.Loras](../../models/operations/loras.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getgenerationbyidgeneratedimagevariationgeneric.md b/docs/models/operations/getgenerationbyidgeneratedimagevariationgeneric.md deleted file mode 100755 index 0450a094..00000000 --- a/docs/models/operations/getgenerationbyidgeneratedimagevariationgeneric.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetGenerationByIdGeneratedImageVariationGeneric - -columns and relationships of "generated_image_variation_generic" - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `status` | [shared.JobStatus](../../models/shared/jobstatus.md) | :heavy_minus_sign: | The status of the current task. | -| `transformType` | [shared.VariationType](../../models/shared/variationtype.md) | :heavy_minus_sign: | The type of variation. | -| `url` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getgenerationbyidresponse.md b/docs/models/operations/getgenerationbyidresponse.md deleted file mode 100755 index ea017282..00000000 --- a/docs/models/operations/getgenerationbyidresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetGenerationByIdResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetGenerationByIdResponseBody](../../models/operations/getgenerationbyidresponsebody.md) | :heavy_minus_sign: | Responses for GET /generations/{id} | \ No newline at end of file diff --git a/docs/models/operations/getgenerationbyidresponsebody.md b/docs/models/operations/getgenerationbyidresponsebody.md deleted file mode 100755 index b7759405..00000000 --- a/docs/models/operations/getgenerationbyidresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetGenerationByIdResponseBody - -Responses for GET /generations/{id} - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `generationsByPk` | [operations.GetGenerationByIdGenerations](../../models/operations/getgenerationbyidgenerations.md) | :heavy_minus_sign: | columns and relationships of "generations" | \ No newline at end of file diff --git a/docs/models/operations/getgenerationsbyuseridgeneratedimagevariationgeneric.md b/docs/models/operations/getgenerationsbyuseridgeneratedimagevariationgeneric.md deleted file mode 100755 index fd23d617..00000000 --- a/docs/models/operations/getgenerationsbyuseridgeneratedimagevariationgeneric.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetGenerationsByUserIdGeneratedImageVariationGeneric - -columns and relationships of "generated_image_variation_generic" - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `status` | [shared.JobStatus](../../models/shared/jobstatus.md) | :heavy_minus_sign: | The status of the current task. | -| `transformType` | [shared.VariationType](../../models/shared/variationtype.md) | :heavy_minus_sign: | The type of variation. | -| `url` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getgenerationsbyuseridgenerationelements.md b/docs/models/operations/getgenerationsbyuseridgenerationelements.md deleted file mode 100755 index d00ba1ea..00000000 --- a/docs/models/operations/getgenerationsbyuseridgenerationelements.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetGenerationsByUserIdGenerationElements - -This table captures the elements that are applied to a Generations, also the order and weightings used when applied. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `id` | *number* | :heavy_minus_sign: | N/A | -| `lora` | [operations.Elements](../../models/operations/elements.md) | :heavy_minus_sign: | Element used for the generation. | -| `weightApplied` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getgenerationsbyuseridresponse.md b/docs/models/operations/getgenerationsbyuseridresponse.md deleted file mode 100755 index 86f582e2..00000000 --- a/docs/models/operations/getgenerationsbyuseridresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetGenerationsByUserIdResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetGenerationsByUserIdResponseBody](../../models/operations/getgenerationsbyuseridresponsebody.md) | :heavy_minus_sign: | Responses for GET /generations/user/{userId} | \ No newline at end of file diff --git a/docs/models/operations/getgenerationsbyuseridresponsebody.md b/docs/models/operations/getgenerationsbyuseridresponsebody.md deleted file mode 100755 index 014bbfe1..00000000 --- a/docs/models/operations/getgenerationsbyuseridresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetGenerationsByUserIdResponseBody - -Responses for GET /generations/user/{userId} - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `generations` | [operations.GetGenerationsByUserIdGenerations](../../models/operations/getgenerationsbyuseridgenerations.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getinitimagebyidresponse.md b/docs/models/operations/getinitimagebyidresponse.md deleted file mode 100755 index 8d61e3d2..00000000 --- a/docs/models/operations/getinitimagebyidresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetInitImageByIdResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetInitImageByIdResponseBody](../../models/operations/getinitimagebyidresponsebody.md) | :heavy_minus_sign: | Responses for GET /init-image/{id} | \ No newline at end of file diff --git a/docs/models/operations/getinitimagebyidresponsebody.md b/docs/models/operations/getinitimagebyidresponsebody.md deleted file mode 100755 index b6f2dca7..00000000 --- a/docs/models/operations/getinitimagebyidresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetInitImageByIdResponseBody - -Responses for GET /init-image/{id} - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `initImagesByPk` | [operations.GetInitImageByIdInitImages](../../models/operations/getinitimagebyidinitimages.md) | :heavy_minus_sign: | columns and relationships of "init_images" | \ No newline at end of file diff --git a/docs/models/operations/getmodelbyidresponse.md b/docs/models/operations/getmodelbyidresponse.md deleted file mode 100755 index f7f375d2..00000000 --- a/docs/models/operations/getmodelbyidresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetModelByIdResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetModelByIdResponseBody](../../models/operations/getmodelbyidresponsebody.md) | :heavy_minus_sign: | Responses for GET /models/{id} | \ No newline at end of file diff --git a/docs/models/operations/getmodelbyidresponsebody.md b/docs/models/operations/getmodelbyidresponsebody.md deleted file mode 100755 index 7cd49f1f..00000000 --- a/docs/models/operations/getmodelbyidresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetModelByIdResponseBody - -Responses for GET /models/{id} - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `customModelsByPk` | [operations.GetModelByIdCustomModels](../../models/operations/getmodelbyidcustommodels.md) | :heavy_minus_sign: | columns and relationships of "custom_models" | \ No newline at end of file diff --git a/docs/models/operations/getplatformmodelscustommodels.md b/docs/models/operations/getplatformmodelscustommodels.md deleted file mode 100755 index 84fb561a..00000000 --- a/docs/models/operations/getplatformmodelscustommodels.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetPlatformModelsCustomModels - -columns and relationships of "custom_models" - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `description` | *string* | :heavy_minus_sign: | N/A | -| `featured` | *boolean* | :heavy_minus_sign: | N/A | -| `generatedImage` | [operations.GetPlatformModelsGeneratedImages](../../models/operations/getplatformmodelsgeneratedimages.md) | :heavy_minus_sign: | columns and relationships of "generated_images" | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `nsfw` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getplatformmodelsresponse.md b/docs/models/operations/getplatformmodelsresponse.md deleted file mode 100755 index ad778ee4..00000000 --- a/docs/models/operations/getplatformmodelsresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetPlatformModelsResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetPlatformModelsResponseBody](../../models/operations/getplatformmodelsresponsebody.md) | :heavy_minus_sign: | Responses for GET /api/rest/v1/platformModels | \ No newline at end of file diff --git a/docs/models/operations/getplatformmodelsresponsebody.md b/docs/models/operations/getplatformmodelsresponsebody.md deleted file mode 100755 index 6754a3b2..00000000 --- a/docs/models/operations/getplatformmodelsresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetPlatformModelsResponseBody - -Responses for GET /api/rest/v1/platformModels - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `customModels` | [operations.GetPlatformModelsCustomModels](../../models/operations/getplatformmodelscustommodels.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getuserselfresponse.md b/docs/models/operations/getuserselfresponse.md deleted file mode 100755 index 74e021d7..00000000 --- a/docs/models/operations/getuserselfresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetUserSelfResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetUserSelfResponseBody](../../models/operations/getuserselfresponsebody.md) | :heavy_minus_sign: | Responses for GET /me | \ No newline at end of file diff --git a/docs/models/operations/getuserselfresponsebody.md b/docs/models/operations/getuserselfresponsebody.md deleted file mode 100755 index baec95b4..00000000 --- a/docs/models/operations/getuserselfresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetUserSelfResponseBody - -Responses for GET /me - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `userDetails` | [operations.UserDetails](../../models/operations/userdetails.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getvariationbyidresponse.md b/docs/models/operations/getvariationbyidresponse.md deleted file mode 100755 index 365ccf44..00000000 --- a/docs/models/operations/getvariationbyidresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetVariationByIdResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.GetVariationByIdResponseBody](../../models/operations/getvariationbyidresponsebody.md) | :heavy_minus_sign: | Responses for GET /variations/{id} | \ No newline at end of file diff --git a/docs/models/operations/getvariationbyidresponsebody.md b/docs/models/operations/getvariationbyidresponsebody.md deleted file mode 100755 index a5a88cc0..00000000 --- a/docs/models/operations/getvariationbyidresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetVariationByIdResponseBody - -Responses for GET /variations/{id} - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `generatedImageVariationGeneric` | [operations.GeneratedImageVariationGeneric](../../models/operations/generatedimagevariationgeneric.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/postgenerationstextureresponse.md b/docs/models/operations/postgenerationstextureresponse.md deleted file mode 100755 index ee78096c..00000000 --- a/docs/models/operations/postgenerationstextureresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# PostGenerationsTextureResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.PostGenerationsTextureResponseBody](../../models/operations/postgenerationstextureresponsebody.md) | :heavy_minus_sign: | Responses for POST /api/rest/v1/generations-texture | \ No newline at end of file diff --git a/docs/models/operations/postgenerationstextureresponsebody.md b/docs/models/operations/postgenerationstextureresponsebody.md deleted file mode 100755 index 69133ff6..00000000 --- a/docs/models/operations/postgenerationstextureresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# PostGenerationsTextureResponseBody - -Responses for POST /api/rest/v1/generations-texture - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `textureGenerationJob` | [operations.TextureGenerationJobOutput](../../models/operations/texturegenerationjoboutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/postmodels3duploadresponse.md b/docs/models/operations/postmodels3duploadresponse.md deleted file mode 100755 index 17b4114a..00000000 --- a/docs/models/operations/postmodels3duploadresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# PostModels3dUploadResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.PostModels3dUploadResponseBody](../../models/operations/postmodels3duploadresponsebody.md) | :heavy_minus_sign: | Responses for POST /api/rest/v1/models-3d/upload | \ No newline at end of file diff --git a/docs/models/operations/postmodels3duploadresponsebody.md b/docs/models/operations/postmodels3duploadresponsebody.md deleted file mode 100755 index d0a91d4a..00000000 --- a/docs/models/operations/postmodels3duploadresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# PostModels3dUploadResponseBody - -Responses for POST /api/rest/v1/models-3d/upload - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `uploadModelAsset` | [operations.ModelAssetUploadOutput](../../models/operations/modelassetuploadoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/postvariationsunzoomresponse.md b/docs/models/operations/postvariationsunzoomresponse.md deleted file mode 100755 index b00ee4b5..00000000 --- a/docs/models/operations/postvariationsunzoomresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# PostVariationsUnzoomResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.PostVariationsUnzoomResponseBody](../../models/operations/postvariationsunzoomresponsebody.md) | :heavy_minus_sign: | Responses for POST /api/rest/v1/variations/unzoom | \ No newline at end of file diff --git a/docs/models/operations/postvariationsunzoomresponsebody.md b/docs/models/operations/postvariationsunzoomresponsebody.md deleted file mode 100755 index 3456a658..00000000 --- a/docs/models/operations/postvariationsunzoomresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# PostVariationsUnzoomResponseBody - -Responses for POST /api/rest/v1/variations/unzoom - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `sdUnzoomJob` | [operations.SDUnzoomOutput](../../models/operations/sdunzoomoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/uploaddatasetimagefromgenrequest.md b/docs/models/operations/uploaddatasetimagefromgenrequest.md deleted file mode 100755 index bd0f32d8..00000000 --- a/docs/models/operations/uploaddatasetimagefromgenrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# UploadDatasetImageFromGenRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `requestBody` | [operations.UploadDatasetImageFromGenRequestBody](../../models/operations/uploaddatasetimagefromgenrequestbody.md) | :heavy_check_mark: | Query parameters to be provided in the request body as a JSON object | -| `datasetId` | *string* | :heavy_check_mark: | The ID of the dataset to upload the image to. | \ No newline at end of file diff --git a/docs/models/operations/uploaddatasetimagefromgenresponse.md b/docs/models/operations/uploaddatasetimagefromgenresponse.md deleted file mode 100755 index 12510f4c..00000000 --- a/docs/models/operations/uploaddatasetimagefromgenresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# UploadDatasetImageFromGenResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.UploadDatasetImageFromGenResponseBody](../../models/operations/uploaddatasetimagefromgenresponsebody.md) | :heavy_minus_sign: | Responses for POST /datasets/{datasetId}/upload/gen | \ No newline at end of file diff --git a/docs/models/operations/uploaddatasetimagefromgenresponsebody.md b/docs/models/operations/uploaddatasetimagefromgenresponsebody.md deleted file mode 100755 index 6c459d59..00000000 --- a/docs/models/operations/uploaddatasetimagefromgenresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# UploadDatasetImageFromGenResponseBody - -Responses for POST /datasets/{datasetId}/upload/gen - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `uploadDatasetImageFromGen` | [operations.DatasetGenUploadOutput](../../models/operations/datasetgenuploadoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/uploaddatasetimagerequest.md b/docs/models/operations/uploaddatasetimagerequest.md deleted file mode 100755 index ba5c6e88..00000000 --- a/docs/models/operations/uploaddatasetimagerequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# UploadDatasetImageRequest - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `requestBody` | [operations.UploadDatasetImageRequestBody](../../models/operations/uploaddatasetimagerequestbody.md) | :heavy_check_mark: | Query parameters provided in the request body as a JSON object | -| `datasetId` | *string* | :heavy_check_mark: | _"datasetId" is required | \ No newline at end of file diff --git a/docs/models/operations/uploaddatasetimageresponse.md b/docs/models/operations/uploaddatasetimageresponse.md deleted file mode 100755 index ad0fdb36..00000000 --- a/docs/models/operations/uploaddatasetimageresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# UploadDatasetImageResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.UploadDatasetImageResponseBody](../../models/operations/uploaddatasetimageresponsebody.md) | :heavy_minus_sign: | Responses for POST /datasets/{datasetId}/upload | \ No newline at end of file diff --git a/docs/models/operations/uploaddatasetimageresponsebody.md b/docs/models/operations/uploaddatasetimageresponsebody.md deleted file mode 100755 index 2f61a0c9..00000000 --- a/docs/models/operations/uploaddatasetimageresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# UploadDatasetImageResponseBody - -Responses for POST /datasets/{datasetId}/upload - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `uploadDatasetImage` | [operations.DatasetUploadOutput](../../models/operations/datasetuploadoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/uploadinitimageresponse.md b/docs/models/operations/uploadinitimageresponse.md deleted file mode 100755 index b25a8c71..00000000 --- a/docs/models/operations/uploadinitimageresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# UploadInitImageResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `object` | [operations.UploadInitImageResponseBody](../../models/operations/uploadinitimageresponsebody.md) | :heavy_minus_sign: | Responses for POST /init-image | \ No newline at end of file diff --git a/docs/models/operations/uploadinitimageresponsebody.md b/docs/models/operations/uploadinitimageresponsebody.md deleted file mode 100755 index 82593597..00000000 --- a/docs/models/operations/uploadinitimageresponsebody.md +++ /dev/null @@ -1,10 +0,0 @@ -# UploadInitImageResponseBody - -Responses for POST /init-image - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `uploadInitImage` | [operations.InitImageUploadOutput](../../models/operations/initimageuploadoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/userdetails.md b/docs/models/operations/userdetails.md deleted file mode 100755 index e76a7502..00000000 --- a/docs/models/operations/userdetails.md +++ /dev/null @@ -1,15 +0,0 @@ -# UserDetails - -columns and relationships of "user_details" - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `apiConcurrencySlots` | *number* | :heavy_minus_sign: | N/A | -| `subscriptionGptTokens` | *number* | :heavy_minus_sign: | N/A | -| `subscriptionModelTokens` | *number* | :heavy_minus_sign: | N/A | -| `subscriptionTokens` | *number* | :heavy_minus_sign: | N/A | -| `tokenRenewalDate` | *string* | :heavy_minus_sign: | N/A | -| `user` | [operations.Users](../../models/operations/users.md) | :heavy_minus_sign: | columns and relationships of "users" | \ No newline at end of file diff --git a/docs/models/operations/createdatasetrequestbody.md b/docs/sdk/models/operations/createdatasetrequestbody.md similarity index 100% rename from docs/models/operations/createdatasetrequestbody.md rename to docs/sdk/models/operations/createdatasetrequestbody.md diff --git a/docs/sdk/models/operations/createdatasetresponse.md b/docs/sdk/models/operations/createdatasetresponse.md new file mode 100755 index 00000000..d4364ce8 --- /dev/null +++ b/docs/sdk/models/operations/createdatasetresponse.md @@ -0,0 +1,11 @@ +# CreateDatasetResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.CreateDatasetResponseBody](../../../sdk/models/operations/createdatasetresponsebody.md) | :heavy_minus_sign: | Responses for POST /datasets | \ No newline at end of file diff --git a/docs/sdk/models/operations/createdatasetresponsebody.md b/docs/sdk/models/operations/createdatasetresponsebody.md new file mode 100755 index 00000000..db9f5040 --- /dev/null +++ b/docs/sdk/models/operations/createdatasetresponsebody.md @@ -0,0 +1,10 @@ +# CreateDatasetResponseBody + +Responses for POST /datasets + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `insertDatasetsOne` | [operations.Datasets](../../../sdk/models/operations/datasets.md) | :heavy_minus_sign: | columns and relationships of "datasets" | \ No newline at end of file diff --git a/docs/models/operations/creategenerationrequestbody.md b/docs/sdk/models/operations/creategenerationrequestbody.md similarity index 98% rename from docs/models/operations/creategenerationrequestbody.md rename to docs/sdk/models/operations/creategenerationrequestbody.md index a5dd5935..2e25fac5 100755 --- a/docs/models/operations/creategenerationrequestbody.md +++ b/docs/sdk/models/operations/creategenerationrequestbody.md @@ -10,8 +10,8 @@ Query parameters to be provided in the request body as a JSON object | `alchemy` | *boolean* | :heavy_minus_sign: | Enable to use Alchemy. | | `contrastRatio` | *number* | :heavy_minus_sign: | Contrast Ratio to use with Alchemy. | | `controlNet` | *boolean* | :heavy_minus_sign: | Enable to use ControlNet. Requires an init image to be provided. Requires a model based on SD v1.5 | -| `controlNetType` | [shared.ControlnetType](../../models/shared/controlnettype.md) | :heavy_minus_sign: | The type of ControlNet to use. | -| `elements` | [shared.ElementInput](../../models/shared/elementinput.md)[] | :heavy_minus_sign: | N/A | +| `controlNetType` | [shared.ControlnetType](../../../sdk/models/shared/controlnettype.md) | :heavy_minus_sign: | The type of ControlNet to use. | +| `elements` | [shared.ElementInput](../../../sdk/models/shared/elementinput.md)[] | :heavy_minus_sign: | N/A | | `expandedDomain` | *boolean* | :heavy_minus_sign: | Enable to use the Expanded Domain feature of Alchemy. | | `guidanceScale` | *number* | :heavy_minus_sign: | How strongly the generation should reflect the prompt. 7 is recommended. Must be between 1 and 20. | | `height` | *number* | :heavy_minus_sign: | The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features. | @@ -29,14 +29,14 @@ Query parameters to be provided in the request body as a JSON object | `numInferenceSteps` | *number* | :heavy_minus_sign: | The number of inference steps to use for the generation. Must be between 30 and 60. | | `photoReal` | *boolean* | :heavy_minus_sign: | Enable the photoReal feature. Requires enabling alchemy and unspecifying modelId. | | `photoRealStrength` | *number* | :heavy_minus_sign: | Depth of field of photoReal. Must be 0.55 for low, 0.5 for medium, or 0.45 for high. Defaults to 0.55 if not specified. | -| `presetStyle` | [shared.SdGenerationStyle](../../models/shared/sdgenerationstyle.md) | :heavy_minus_sign: | The style to generate images with. When photoReal is enabled, use CINEMATIC, CREATIVE, VIBRANT, or NONE. When alchemy is disabled, use LEONARDO or NONE. When alchemy is enabled, use ANIME, CREATIVE, DYNAMIC, ENVIRONMENT, GENERAL, ILLUSTRATION, PHOTOGRAPHY, RAYTRACED, RENDER_3D, SKETCH_BW, SKETCH_COLOR, or NONE. | +| `presetStyle` | [shared.SdGenerationStyle](../../../sdk/models/shared/sdgenerationstyle.md) | :heavy_minus_sign: | The style to generate images with. When photoReal is enabled, use CINEMATIC, CREATIVE, VIBRANT, or NONE. When alchemy is disabled, use LEONARDO or NONE. When alchemy is enabled, use ANIME, CREATIVE, DYNAMIC, ENVIRONMENT, GENERAL, ILLUSTRATION, PHOTOGRAPHY, RAYTRACED, RENDER_3D, SKETCH_BW, SKETCH_COLOR, or NONE. | | `prompt` | *string* | :heavy_minus_sign: | The prompt used to generate images | | `promptMagic` | *boolean* | :heavy_minus_sign: | Enable to use Prompt Magic. | | `promptMagicStrength` | *number* | :heavy_minus_sign: | Strength of prompt magic. Must be a float between 0.1 and 1.0 | | `promptMagicVersion` | *string* | :heavy_minus_sign: | Prompt magic version v2 or v3, for use when promptMagic: true | | `public` | *boolean* | :heavy_minus_sign: | Whether the generated images should show in the community feed. | -| `scheduler` | [shared.SdGenerationSchedulers](../../models/shared/sdgenerationschedulers.md) | :heavy_minus_sign: | The scheduler to generate images with. Defaults to EULER_DISCRETE if not specified. | -| `sdVersion` | [shared.SdVersions](../../models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | +| `scheduler` | [shared.SdGenerationSchedulers](../../../sdk/models/shared/sdgenerationschedulers.md) | :heavy_minus_sign: | The scheduler to generate images with. Defaults to EULER_DISCRETE if not specified. | +| `sdVersion` | [shared.SdVersions](../../../sdk/models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | | `seed` | *number* | :heavy_minus_sign: | N/A | | `tiling` | *boolean* | :heavy_minus_sign: | Whether the generated images should tile on all axis. | | `unzoom` | *boolean* | :heavy_minus_sign: | Whether the generated images should be unzoomed (requires unzoomAmount and init_image_id to be set). | diff --git a/docs/sdk/models/operations/creategenerationresponse.md b/docs/sdk/models/operations/creategenerationresponse.md new file mode 100755 index 00000000..edeccf2f --- /dev/null +++ b/docs/sdk/models/operations/creategenerationresponse.md @@ -0,0 +1,11 @@ +# CreateGenerationResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.CreateGenerationResponseBody](../../../sdk/models/operations/creategenerationresponsebody.md) | :heavy_minus_sign: | Responses for POST /generations | \ No newline at end of file diff --git a/docs/sdk/models/operations/creategenerationresponsebody.md b/docs/sdk/models/operations/creategenerationresponsebody.md new file mode 100755 index 00000000..b69f0a42 --- /dev/null +++ b/docs/sdk/models/operations/creategenerationresponsebody.md @@ -0,0 +1,10 @@ +# CreateGenerationResponseBody + +Responses for POST /generations + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `sdGenerationJob` | [operations.SDGenerationOutput](../../../sdk/models/operations/sdgenerationoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createmodelrequestbody.md b/docs/sdk/models/operations/createmodelrequestbody.md similarity index 93% rename from docs/models/operations/createmodelrequestbody.md rename to docs/sdk/models/operations/createmodelrequestbody.md index e173ab9b..a8836235 100755 --- a/docs/models/operations/createmodelrequestbody.md +++ b/docs/sdk/models/operations/createmodelrequestbody.md @@ -10,9 +10,9 @@ Query parameters to be provided in the request body as a JSON object | `datasetId` | *string* | :heavy_check_mark: | The ID of the dataset to train the model on. | | `description` | *string* | :heavy_minus_sign: | The description of the model. | | `instancePrompt` | *string* | :heavy_check_mark: | The instance prompt to use during training. | -| `modelType` | [shared.CustomModelType](../../models/shared/custommodeltype.md) | :heavy_minus_sign: | The category the most accurately reflects the model. | +| `modelType` | [shared.CustomModelType](../../../sdk/models/shared/custommodeltype.md) | :heavy_minus_sign: | The category the most accurately reflects the model. | | `name` | *string* | :heavy_check_mark: | The name of the model. | | `nsfw` | *boolean* | :heavy_minus_sign: | Whether or not the model is NSFW. | | `resolution` | *number* | :heavy_minus_sign: | The resolution for training. Must be 512 or 768. | -| `sdVersion` | [shared.SdVersions](../../models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | -| `strength` | [shared.Strength](../../models/shared/strength.md) | :heavy_minus_sign: | When training using the PIXEL_ART model type, this influences the training strength. | \ No newline at end of file +| `sdVersion` | [shared.SdVersions](../../../sdk/models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | +| `strength` | [shared.Strength](../../../sdk/models/shared/strength.md) | :heavy_minus_sign: | When training using the PIXEL_ART model type, this influences the training strength. | \ No newline at end of file diff --git a/docs/sdk/models/operations/createmodelresponse.md b/docs/sdk/models/operations/createmodelresponse.md new file mode 100755 index 00000000..f6b5ee0a --- /dev/null +++ b/docs/sdk/models/operations/createmodelresponse.md @@ -0,0 +1,11 @@ +# CreateModelResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.CreateModelResponseBody](../../../sdk/models/operations/createmodelresponsebody.md) | :heavy_minus_sign: | Responses for POST /models | \ No newline at end of file diff --git a/docs/sdk/models/operations/createmodelresponsebody.md b/docs/sdk/models/operations/createmodelresponsebody.md new file mode 100755 index 00000000..c340e98d --- /dev/null +++ b/docs/sdk/models/operations/createmodelresponsebody.md @@ -0,0 +1,10 @@ +# CreateModelResponseBody + +Responses for POST /models + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `sdTrainingJob` | [operations.SDTrainingOutput](../../../sdk/models/operations/sdtrainingoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createvariationnobgrequestbody.md b/docs/sdk/models/operations/createvariationnobgrequestbody.md similarity index 100% rename from docs/models/operations/createvariationnobgrequestbody.md rename to docs/sdk/models/operations/createvariationnobgrequestbody.md diff --git a/docs/sdk/models/operations/createvariationnobgresponse.md b/docs/sdk/models/operations/createvariationnobgresponse.md new file mode 100755 index 00000000..903a2d50 --- /dev/null +++ b/docs/sdk/models/operations/createvariationnobgresponse.md @@ -0,0 +1,11 @@ +# CreateVariationNoBGResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.CreateVariationNoBGResponseBody](../../../sdk/models/operations/createvariationnobgresponsebody.md) | :heavy_minus_sign: | Responses for POST /variations/nobg | \ No newline at end of file diff --git a/docs/sdk/models/operations/createvariationnobgresponsebody.md b/docs/sdk/models/operations/createvariationnobgresponsebody.md new file mode 100755 index 00000000..6e4240e1 --- /dev/null +++ b/docs/sdk/models/operations/createvariationnobgresponsebody.md @@ -0,0 +1,10 @@ +# CreateVariationNoBGResponseBody + +Responses for POST /variations/nobg + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `sdNobgJob` | [operations.SDUpscaleJobOutput](../../../sdk/models/operations/sdupscalejoboutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createvariationupscalerequestbody.md b/docs/sdk/models/operations/createvariationupscalerequestbody.md similarity index 100% rename from docs/models/operations/createvariationupscalerequestbody.md rename to docs/sdk/models/operations/createvariationupscalerequestbody.md diff --git a/docs/sdk/models/operations/createvariationupscaleresponse.md b/docs/sdk/models/operations/createvariationupscaleresponse.md new file mode 100755 index 00000000..aaf4dbfc --- /dev/null +++ b/docs/sdk/models/operations/createvariationupscaleresponse.md @@ -0,0 +1,11 @@ +# CreateVariationUpscaleResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.CreateVariationUpscaleResponseBody](../../../sdk/models/operations/createvariationupscaleresponsebody.md) | :heavy_minus_sign: | Responses for POST /variations/upscale | \ No newline at end of file diff --git a/docs/sdk/models/operations/createvariationupscaleresponsebody.md b/docs/sdk/models/operations/createvariationupscaleresponsebody.md new file mode 100755 index 00000000..20b003fd --- /dev/null +++ b/docs/sdk/models/operations/createvariationupscaleresponsebody.md @@ -0,0 +1,10 @@ +# CreateVariationUpscaleResponseBody + +Responses for POST /variations/upscale + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | +| `sdUpscaleJob` | [operations.CreateVariationUpscaleSDUpscaleJobOutput](../../../sdk/models/operations/createvariationupscalesdupscalejoboutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createvariationupscalesdupscalejoboutput.md b/docs/sdk/models/operations/createvariationupscalesdupscalejoboutput.md similarity index 100% rename from docs/models/operations/createvariationupscalesdupscalejoboutput.md rename to docs/sdk/models/operations/createvariationupscalesdupscalejoboutput.md diff --git a/docs/models/operations/custommodels.md b/docs/sdk/models/operations/custommodels.md similarity index 100% rename from docs/models/operations/custommodels.md rename to docs/sdk/models/operations/custommodels.md diff --git a/docs/models/operations/datasetgenuploadoutput.md b/docs/sdk/models/operations/datasetgenuploadoutput.md similarity index 100% rename from docs/models/operations/datasetgenuploadoutput.md rename to docs/sdk/models/operations/datasetgenuploadoutput.md diff --git a/docs/models/operations/datasetimages.md b/docs/sdk/models/operations/datasetimages.md similarity index 100% rename from docs/models/operations/datasetimages.md rename to docs/sdk/models/operations/datasetimages.md diff --git a/docs/models/operations/datasets.md b/docs/sdk/models/operations/datasets.md similarity index 100% rename from docs/models/operations/datasets.md rename to docs/sdk/models/operations/datasets.md diff --git a/docs/models/operations/datasetuploadoutput.md b/docs/sdk/models/operations/datasetuploadoutput.md similarity index 100% rename from docs/models/operations/datasetuploadoutput.md rename to docs/sdk/models/operations/datasetuploadoutput.md diff --git a/docs/models/operations/deletedatasetbyiddatasets.md b/docs/sdk/models/operations/deletedatasetbyiddatasets.md similarity index 100% rename from docs/models/operations/deletedatasetbyiddatasets.md rename to docs/sdk/models/operations/deletedatasetbyiddatasets.md diff --git a/docs/models/operations/deletedatasetbyidrequest.md b/docs/sdk/models/operations/deletedatasetbyidrequest.md similarity index 100% rename from docs/models/operations/deletedatasetbyidrequest.md rename to docs/sdk/models/operations/deletedatasetbyidrequest.md diff --git a/docs/sdk/models/operations/deletedatasetbyidresponse.md b/docs/sdk/models/operations/deletedatasetbyidresponse.md new file mode 100755 index 00000000..1ffcac6c --- /dev/null +++ b/docs/sdk/models/operations/deletedatasetbyidresponse.md @@ -0,0 +1,11 @@ +# DeleteDatasetByIdResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.DeleteDatasetByIdResponseBody](../../../sdk/models/operations/deletedatasetbyidresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /datasets/{id} | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletedatasetbyidresponsebody.md b/docs/sdk/models/operations/deletedatasetbyidresponsebody.md new file mode 100755 index 00000000..b9a96c48 --- /dev/null +++ b/docs/sdk/models/operations/deletedatasetbyidresponsebody.md @@ -0,0 +1,10 @@ +# DeleteDatasetByIdResponseBody + +Responses for DELETE /datasets/{id} + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `deleteDatasetsByPk` | [operations.DeleteDatasetByIdDatasets](../../../sdk/models/operations/deletedatasetbyiddatasets.md) | :heavy_minus_sign: | columns and relationships of "datasets" | \ No newline at end of file diff --git a/docs/models/operations/deletegenerationbyidrequest.md b/docs/sdk/models/operations/deletegenerationbyidrequest.md similarity index 100% rename from docs/models/operations/deletegenerationbyidrequest.md rename to docs/sdk/models/operations/deletegenerationbyidrequest.md diff --git a/docs/sdk/models/operations/deletegenerationbyidresponse.md b/docs/sdk/models/operations/deletegenerationbyidresponse.md new file mode 100755 index 00000000..32d7e6ef --- /dev/null +++ b/docs/sdk/models/operations/deletegenerationbyidresponse.md @@ -0,0 +1,11 @@ +# DeleteGenerationByIdResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.DeleteGenerationByIdResponseBody](../../../sdk/models/operations/deletegenerationbyidresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /generations/{id} | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletegenerationbyidresponsebody.md b/docs/sdk/models/operations/deletegenerationbyidresponsebody.md new file mode 100755 index 00000000..f66c65a5 --- /dev/null +++ b/docs/sdk/models/operations/deletegenerationbyidresponsebody.md @@ -0,0 +1,10 @@ +# DeleteGenerationByIdResponseBody + +Responses for DELETE /generations/{id} + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `deleteGenerationsByPk` | [operations.Generations](../../../sdk/models/operations/generations.md) | :heavy_minus_sign: | columns and relationships of "generations" | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletegenerationstextureidrequest.md b/docs/sdk/models/operations/deletegenerationstextureidrequest.md new file mode 100755 index 00000000..9cf1fdeb --- /dev/null +++ b/docs/sdk/models/operations/deletegenerationstextureidrequest.md @@ -0,0 +1,9 @@ +# DeleteGenerationsTextureIdRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | _"id" is required (enter it either in parameters or request body)_ | +| `requestBody` | [operations.DeleteGenerationsTextureIdRequestBody](../../../sdk/models/operations/deletegenerationstextureidrequestbody.md) | :heavy_minus_sign: | Query parameters can also be provided in the request body as a JSON object | \ No newline at end of file diff --git a/docs/models/operations/deletegenerationstextureidrequestbody.md b/docs/sdk/models/operations/deletegenerationstextureidrequestbody.md similarity index 100% rename from docs/models/operations/deletegenerationstextureidrequestbody.md rename to docs/sdk/models/operations/deletegenerationstextureidrequestbody.md diff --git a/docs/sdk/models/operations/deletegenerationstextureidresponse.md b/docs/sdk/models/operations/deletegenerationstextureidresponse.md new file mode 100755 index 00000000..37ed30c3 --- /dev/null +++ b/docs/sdk/models/operations/deletegenerationstextureidresponse.md @@ -0,0 +1,11 @@ +# DeleteGenerationsTextureIdResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.DeleteGenerationsTextureIdResponseBody](../../../sdk/models/operations/deletegenerationstextureidresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /api/rest/v1/generations-texture/{id} | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletegenerationstextureidresponsebody.md b/docs/sdk/models/operations/deletegenerationstextureidresponsebody.md new file mode 100755 index 00000000..0989175a --- /dev/null +++ b/docs/sdk/models/operations/deletegenerationstextureidresponsebody.md @@ -0,0 +1,10 @@ +# DeleteGenerationsTextureIdResponseBody + +Responses for DELETE /api/rest/v1/generations-texture/{id} + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `deleteModelAssetTextureGenerationsByPk` | [operations.ModelAssetTextureGenerations](../../../sdk/models/operations/modelassettexturegenerations.md) | :heavy_minus_sign: | columns and relationships of "model_asset_texture_generations" | \ No newline at end of file diff --git a/docs/models/operations/deleteinitimagebyidrequest.md b/docs/sdk/models/operations/deleteinitimagebyidrequest.md similarity index 100% rename from docs/models/operations/deleteinitimagebyidrequest.md rename to docs/sdk/models/operations/deleteinitimagebyidrequest.md diff --git a/docs/sdk/models/operations/deleteinitimagebyidresponse.md b/docs/sdk/models/operations/deleteinitimagebyidresponse.md new file mode 100755 index 00000000..813539d0 --- /dev/null +++ b/docs/sdk/models/operations/deleteinitimagebyidresponse.md @@ -0,0 +1,11 @@ +# DeleteInitImageByIdResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.DeleteInitImageByIdResponseBody](../../../sdk/models/operations/deleteinitimagebyidresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /init-image/{id} | \ No newline at end of file diff --git a/docs/sdk/models/operations/deleteinitimagebyidresponsebody.md b/docs/sdk/models/operations/deleteinitimagebyidresponsebody.md new file mode 100755 index 00000000..19db4bec --- /dev/null +++ b/docs/sdk/models/operations/deleteinitimagebyidresponsebody.md @@ -0,0 +1,10 @@ +# DeleteInitImageByIdResponseBody + +Responses for DELETE /init-image/{id} + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `deleteInitImagesByPk` | [operations.InitImages](../../../sdk/models/operations/initimages.md) | :heavy_minus_sign: | columns and relationships of "init_images" | \ No newline at end of file diff --git a/docs/models/operations/deletemodelbyidrequest.md b/docs/sdk/models/operations/deletemodelbyidrequest.md similarity index 100% rename from docs/models/operations/deletemodelbyidrequest.md rename to docs/sdk/models/operations/deletemodelbyidrequest.md diff --git a/docs/sdk/models/operations/deletemodelbyidresponse.md b/docs/sdk/models/operations/deletemodelbyidresponse.md new file mode 100755 index 00000000..71bbfaad --- /dev/null +++ b/docs/sdk/models/operations/deletemodelbyidresponse.md @@ -0,0 +1,11 @@ +# DeleteModelByIdResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.DeleteModelByIdResponseBody](../../../sdk/models/operations/deletemodelbyidresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /models/{id} | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemodelbyidresponsebody.md b/docs/sdk/models/operations/deletemodelbyidresponsebody.md new file mode 100755 index 00000000..486b7c58 --- /dev/null +++ b/docs/sdk/models/operations/deletemodelbyidresponsebody.md @@ -0,0 +1,10 @@ +# DeleteModelByIdResponseBody + +Responses for DELETE /models/{id} + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `deleteCustomModelsByPk` | [operations.CustomModels](../../../sdk/models/operations/custommodels.md) | :heavy_minus_sign: | columns and relationships of "custom_models" | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemodels3didrequest.md b/docs/sdk/models/operations/deletemodels3didrequest.md new file mode 100755 index 00000000..ebde79ae --- /dev/null +++ b/docs/sdk/models/operations/deletemodels3didrequest.md @@ -0,0 +1,9 @@ +# DeleteModels3dIdRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | _"id" is required (enter it either in parameters or request body)_ | +| `requestBody` | [operations.DeleteModels3dIdRequestBody](../../../sdk/models/operations/deletemodels3didrequestbody.md) | :heavy_minus_sign: | Query parameters can also be provided in the request body as a JSON object | \ No newline at end of file diff --git a/docs/models/operations/deletemodels3didrequestbody.md b/docs/sdk/models/operations/deletemodels3didrequestbody.md similarity index 100% rename from docs/models/operations/deletemodels3didrequestbody.md rename to docs/sdk/models/operations/deletemodels3didrequestbody.md diff --git a/docs/sdk/models/operations/deletemodels3didresponse.md b/docs/sdk/models/operations/deletemodels3didresponse.md new file mode 100755 index 00000000..9c9517f7 --- /dev/null +++ b/docs/sdk/models/operations/deletemodels3didresponse.md @@ -0,0 +1,11 @@ +# DeleteModels3dIdResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.DeleteModels3dIdResponseBody](../../../sdk/models/operations/deletemodels3didresponsebody.md) | :heavy_minus_sign: | Responses for DELETE /api/rest/v1/models-3d/{id} | \ No newline at end of file diff --git a/docs/sdk/models/operations/deletemodels3didresponsebody.md b/docs/sdk/models/operations/deletemodels3didresponsebody.md new file mode 100755 index 00000000..76a54da1 --- /dev/null +++ b/docs/sdk/models/operations/deletemodels3didresponsebody.md @@ -0,0 +1,10 @@ +# DeleteModels3dIdResponseBody + +Responses for DELETE /api/rest/v1/models-3d/{id} + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `deleteModelAssetsByPk` | [operations.ModelAssets](../../../sdk/models/operations/modelassets.md) | :heavy_minus_sign: | columns and relationships of "model_assets" | \ No newline at end of file diff --git a/docs/models/operations/elements.md b/docs/sdk/models/operations/elements.md similarity index 97% rename from docs/models/operations/elements.md rename to docs/sdk/models/operations/elements.md index fd86916c..82dc67a0 100755 --- a/docs/models/operations/elements.md +++ b/docs/sdk/models/operations/elements.md @@ -8,7 +8,7 @@ Element used for the generation. | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | | `akUUID` | *string* | :heavy_minus_sign: | Unique identifier for the element. Elements can be found from the List Elements endpoint. | -| `baseModel` | [shared.SdVersions](../../models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | +| `baseModel` | [shared.SdVersions](../../../sdk/models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | | `description` | *string* | :heavy_minus_sign: | Description for the element | | `name` | *string* | :heavy_minus_sign: | Name of the element | | `urlImage` | *string* | :heavy_minus_sign: | URL of the element image | diff --git a/docs/models/operations/generatedimages.md b/docs/sdk/models/operations/generatedimages.md similarity index 53% rename from docs/models/operations/generatedimages.md rename to docs/sdk/models/operations/generatedimages.md index 507706d4..aa9bc0e3 100755 --- a/docs/models/operations/generatedimages.md +++ b/docs/sdk/models/operations/generatedimages.md @@ -5,10 +5,10 @@ columns and relationships of "generated_images" ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `generatedImageVariationGenerics` | [operations.GetGenerationByIdGeneratedImageVariationGeneric](../../models/operations/getgenerationbyidgeneratedimagevariationgeneric.md)[] | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `likeCount` | *number* | :heavy_minus_sign: | N/A | -| `nsfw` | *boolean* | :heavy_minus_sign: | N/A | -| `url` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | +| `generatedImageVariationGenerics` | [operations.GetGenerationByIdGeneratedImageVariationGeneric](../../../sdk/models/operations/getgenerationbyidgeneratedimagevariationgeneric.md)[] | :heavy_minus_sign: | N/A | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `likeCount` | *number* | :heavy_minus_sign: | N/A | +| `nsfw` | *boolean* | :heavy_minus_sign: | N/A | +| `url` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/generatedimagevariationgeneric.md b/docs/sdk/models/operations/generatedimagevariationgeneric.md new file mode 100755 index 00000000..ab267bc0 --- /dev/null +++ b/docs/sdk/models/operations/generatedimagevariationgeneric.md @@ -0,0 +1,14 @@ +# GeneratedImageVariationGeneric + +columns and relationships of "generated_image_variation_generic" + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `createdAt` | *string* | :heavy_minus_sign: | N/A | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `status` | [shared.JobStatus](../../../sdk/models/shared/jobstatus.md) | :heavy_minus_sign: | The status of the current task. | +| `transformType` | [shared.VariationType](../../../sdk/models/shared/variationtype.md) | :heavy_minus_sign: | The type of variation. | +| `url` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/generationelements.md b/docs/sdk/models/operations/generationelements.md new file mode 100755 index 00000000..ce1083d9 --- /dev/null +++ b/docs/sdk/models/operations/generationelements.md @@ -0,0 +1,12 @@ +# GenerationElements + +This table captures the elements that are applied to Generations. + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `id` | *number* | :heavy_minus_sign: | N/A | +| `lora` | [operations.GetGenerationByIdLoras](../../../sdk/models/operations/getgenerationbyidloras.md) | :heavy_minus_sign: | Element used for the generation. | +| `weightApplied` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/generations.md b/docs/sdk/models/operations/generations.md similarity index 100% rename from docs/models/operations/generations.md rename to docs/sdk/models/operations/generations.md diff --git a/docs/sdk/models/operations/getdatasetbyiddatasets.md b/docs/sdk/models/operations/getdatasetbyiddatasets.md new file mode 100755 index 00000000..0f2273af --- /dev/null +++ b/docs/sdk/models/operations/getdatasetbyiddatasets.md @@ -0,0 +1,15 @@ +# GetDatasetByIdDatasets + +columns and relationships of "datasets" + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `createdAt` | *string* | :heavy_minus_sign: | N/A | +| `datasetImages` | [operations.DatasetImages](../../../sdk/models/operations/datasetimages.md)[] | :heavy_minus_sign: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `name` | *string* | :heavy_minus_sign: | N/A | +| `updatedAt` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getdatasetbyidrequest.md b/docs/sdk/models/operations/getdatasetbyidrequest.md similarity index 100% rename from docs/models/operations/getdatasetbyidrequest.md rename to docs/sdk/models/operations/getdatasetbyidrequest.md diff --git a/docs/sdk/models/operations/getdatasetbyidresponse.md b/docs/sdk/models/operations/getdatasetbyidresponse.md new file mode 100755 index 00000000..dd65a54b --- /dev/null +++ b/docs/sdk/models/operations/getdatasetbyidresponse.md @@ -0,0 +1,11 @@ +# GetDatasetByIdResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetDatasetByIdResponseBody](../../../sdk/models/operations/getdatasetbyidresponsebody.md) | :heavy_minus_sign: | Responses for GET /datasets/{id} | \ No newline at end of file diff --git a/docs/sdk/models/operations/getdatasetbyidresponsebody.md b/docs/sdk/models/operations/getdatasetbyidresponsebody.md new file mode 100755 index 00000000..e78ce14a --- /dev/null +++ b/docs/sdk/models/operations/getdatasetbyidresponsebody.md @@ -0,0 +1,10 @@ +# GetDatasetByIdResponseBody + +Responses for GET /datasets/{id} + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `datasetsByPk` | [operations.GetDatasetByIdDatasets](../../../sdk/models/operations/getdatasetbyiddatasets.md) | :heavy_minus_sign: | columns and relationships of "datasets" | \ No newline at end of file diff --git a/docs/sdk/models/operations/getelementsresponse.md b/docs/sdk/models/operations/getelementsresponse.md new file mode 100755 index 00000000..67f9b68f --- /dev/null +++ b/docs/sdk/models/operations/getelementsresponse.md @@ -0,0 +1,11 @@ +# GetElementsResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetElementsResponseBody](../../../sdk/models/operations/getelementsresponsebody.md) | :heavy_minus_sign: | Responses for GET /api/rest/v1/elements | \ No newline at end of file diff --git a/docs/sdk/models/operations/getelementsresponsebody.md b/docs/sdk/models/operations/getelementsresponsebody.md new file mode 100755 index 00000000..5aceaa91 --- /dev/null +++ b/docs/sdk/models/operations/getelementsresponsebody.md @@ -0,0 +1,10 @@ +# GetElementsResponseBody + +Responses for GET /api/rest/v1/elements + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `loras` | [operations.Loras](../../../sdk/models/operations/loras.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getgenerationbyidgeneratedimagevariationgeneric.md b/docs/sdk/models/operations/getgenerationbyidgeneratedimagevariationgeneric.md new file mode 100755 index 00000000..7bd360af --- /dev/null +++ b/docs/sdk/models/operations/getgenerationbyidgeneratedimagevariationgeneric.md @@ -0,0 +1,13 @@ +# GetGenerationByIdGeneratedImageVariationGeneric + +columns and relationships of "generated_image_variation_generic" + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `status` | [shared.JobStatus](../../../sdk/models/shared/jobstatus.md) | :heavy_minus_sign: | The status of the current task. | +| `transformType` | [shared.VariationType](../../../sdk/models/shared/variationtype.md) | :heavy_minus_sign: | The type of variation. | +| `url` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getgenerationbyidgenerations.md b/docs/sdk/models/operations/getgenerationbyidgenerations.md similarity index 97% rename from docs/models/operations/getgenerationbyidgenerations.md rename to docs/sdk/models/operations/getgenerationbyidgenerations.md index 9bd97dad..44e8d035 100755 --- a/docs/models/operations/getgenerationbyidgenerations.md +++ b/docs/sdk/models/operations/getgenerationbyidgenerations.md @@ -8,8 +8,8 @@ columns and relationships of "generations" | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `createdAt` | *string* | :heavy_minus_sign: | N/A | -| `generatedImages` | [operations.GeneratedImages](../../models/operations/generatedimages.md)[] | :heavy_minus_sign: | N/A | -| `generationElements` | [operations.GenerationElements](../../models/operations/generationelements.md)[] | :heavy_minus_sign: | N/A | +| `generatedImages` | [operations.GeneratedImages](../../../sdk/models/operations/generatedimages.md)[] | :heavy_minus_sign: | N/A | +| `generationElements` | [operations.GenerationElements](../../../sdk/models/operations/generationelements.md)[] | :heavy_minus_sign: | N/A | | `guidanceScale` | *number* | :heavy_minus_sign: | N/A | | `id` | *string* | :heavy_minus_sign: | N/A | | `imageHeight` | *number* | :heavy_minus_sign: | N/A | @@ -20,13 +20,13 @@ columns and relationships of "generations" | `negativePrompt` | *string* | :heavy_minus_sign: | N/A | | `photoReal` | *boolean* | :heavy_minus_sign: | If photoReal feature was used. | | `photoRealStrength` | *number* | :heavy_minus_sign: | Depth of field of photoReal used. 0.55 is low, 0.5 is medium, and 0.45 is high. Default is 0.55. | -| `presetStyle` | [shared.SdGenerationStyle](../../models/shared/sdgenerationstyle.md) | :heavy_minus_sign: | The style to generate images with. When photoReal is enabled, use CINEMATIC, CREATIVE, VIBRANT, or NONE. When alchemy is disabled, use LEONARDO or NONE. When alchemy is enabled, use ANIME, CREATIVE, DYNAMIC, ENVIRONMENT, GENERAL, ILLUSTRATION, PHOTOGRAPHY, RAYTRACED, RENDER_3D, SKETCH_BW, SKETCH_COLOR, or NONE. | +| `presetStyle` | [shared.SdGenerationStyle](../../../sdk/models/shared/sdgenerationstyle.md) | :heavy_minus_sign: | The style to generate images with. When photoReal is enabled, use CINEMATIC, CREATIVE, VIBRANT, or NONE. When alchemy is disabled, use LEONARDO or NONE. When alchemy is enabled, use ANIME, CREATIVE, DYNAMIC, ENVIRONMENT, GENERAL, ILLUSTRATION, PHOTOGRAPHY, RAYTRACED, RENDER_3D, SKETCH_BW, SKETCH_COLOR, or NONE. | | `prompt` | *string* | :heavy_minus_sign: | N/A | | `promptMagic` | *boolean* | :heavy_minus_sign: | If prompt magic was used. | | `promptMagicStrength` | *number* | :heavy_minus_sign: | Strength of prompt magic used. | | `promptMagicVersion` | *string* | :heavy_minus_sign: | Version of prompt magic used. | | `public` | *boolean* | :heavy_minus_sign: | N/A | -| `scheduler` | [shared.SdGenerationSchedulers](../../models/shared/sdgenerationschedulers.md) | :heavy_minus_sign: | The scheduler to generate images with. Defaults to EULER_DISCRETE if not specified. | -| `sdVersion` | [shared.SdVersions](../../models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | +| `scheduler` | [shared.SdGenerationSchedulers](../../../sdk/models/shared/sdgenerationschedulers.md) | :heavy_minus_sign: | The scheduler to generate images with. Defaults to EULER_DISCRETE if not specified. | +| `sdVersion` | [shared.SdVersions](../../../sdk/models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | | `seed` | *number* | :heavy_minus_sign: | N/A | -| `status` | [shared.JobStatus](../../models/shared/jobstatus.md) | :heavy_minus_sign: | The status of the current task. | \ No newline at end of file +| `status` | [shared.JobStatus](../../../sdk/models/shared/jobstatus.md) | :heavy_minus_sign: | The status of the current task. | \ No newline at end of file diff --git a/docs/models/operations/getgenerationbyidloras.md b/docs/sdk/models/operations/getgenerationbyidloras.md similarity index 97% rename from docs/models/operations/getgenerationbyidloras.md rename to docs/sdk/models/operations/getgenerationbyidloras.md index e16b5a19..eafbddbe 100755 --- a/docs/models/operations/getgenerationbyidloras.md +++ b/docs/sdk/models/operations/getgenerationbyidloras.md @@ -8,7 +8,7 @@ Element used for the generation. | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | | `akUUID` | *string* | :heavy_minus_sign: | Unique identifier for the element. Elements can be found from the List Elements endpoint. | -| `baseModel` | [shared.SdVersions](../../models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | +| `baseModel` | [shared.SdVersions](../../../sdk/models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | | `description` | *string* | :heavy_minus_sign: | Description for the element | | `name` | *string* | :heavy_minus_sign: | Name of the element | | `urlImage` | *string* | :heavy_minus_sign: | URL of the element image | diff --git a/docs/models/operations/getgenerationbyidrequest.md b/docs/sdk/models/operations/getgenerationbyidrequest.md similarity index 100% rename from docs/models/operations/getgenerationbyidrequest.md rename to docs/sdk/models/operations/getgenerationbyidrequest.md diff --git a/docs/sdk/models/operations/getgenerationbyidresponse.md b/docs/sdk/models/operations/getgenerationbyidresponse.md new file mode 100755 index 00000000..4401c97e --- /dev/null +++ b/docs/sdk/models/operations/getgenerationbyidresponse.md @@ -0,0 +1,11 @@ +# GetGenerationByIdResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetGenerationByIdResponseBody](../../../sdk/models/operations/getgenerationbyidresponsebody.md) | :heavy_minus_sign: | Responses for GET /generations/{id} | \ No newline at end of file diff --git a/docs/sdk/models/operations/getgenerationbyidresponsebody.md b/docs/sdk/models/operations/getgenerationbyidresponsebody.md new file mode 100755 index 00000000..1390e9c0 --- /dev/null +++ b/docs/sdk/models/operations/getgenerationbyidresponsebody.md @@ -0,0 +1,10 @@ +# GetGenerationByIdResponseBody + +Responses for GET /generations/{id} + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `generationsByPk` | [operations.GetGenerationByIdGenerations](../../../sdk/models/operations/getgenerationbyidgenerations.md) | :heavy_minus_sign: | columns and relationships of "generations" | \ No newline at end of file diff --git a/docs/models/operations/getgenerationsbyuseridgeneratedimages.md b/docs/sdk/models/operations/getgenerationsbyuseridgeneratedimages.md similarity index 51% rename from docs/models/operations/getgenerationsbyuseridgeneratedimages.md rename to docs/sdk/models/operations/getgenerationsbyuseridgeneratedimages.md index 7af18fa5..ef79f0dd 100755 --- a/docs/models/operations/getgenerationsbyuseridgeneratedimages.md +++ b/docs/sdk/models/operations/getgenerationsbyuseridgeneratedimages.md @@ -5,10 +5,10 @@ columns and relationships of "generated_images" ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `generatedImageVariationGenerics` | [operations.GetGenerationsByUserIdGeneratedImageVariationGeneric](../../models/operations/getgenerationsbyuseridgeneratedimagevariationgeneric.md)[] | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `likeCount` | *number* | :heavy_minus_sign: | N/A | -| `nsfw` | *boolean* | :heavy_minus_sign: | N/A | -| `url` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `generatedImageVariationGenerics` | [operations.GetGenerationsByUserIdGeneratedImageVariationGeneric](../../../sdk/models/operations/getgenerationsbyuseridgeneratedimagevariationgeneric.md)[] | :heavy_minus_sign: | N/A | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `likeCount` | *number* | :heavy_minus_sign: | N/A | +| `nsfw` | *boolean* | :heavy_minus_sign: | N/A | +| `url` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getgenerationsbyuseridgeneratedimagevariationgeneric.md b/docs/sdk/models/operations/getgenerationsbyuseridgeneratedimagevariationgeneric.md new file mode 100755 index 00000000..a4d8a44b --- /dev/null +++ b/docs/sdk/models/operations/getgenerationsbyuseridgeneratedimagevariationgeneric.md @@ -0,0 +1,13 @@ +# GetGenerationsByUserIdGeneratedImageVariationGeneric + +columns and relationships of "generated_image_variation_generic" + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `status` | [shared.JobStatus](../../../sdk/models/shared/jobstatus.md) | :heavy_minus_sign: | The status of the current task. | +| `transformType` | [shared.VariationType](../../../sdk/models/shared/variationtype.md) | :heavy_minus_sign: | The type of variation. | +| `url` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getgenerationsbyuseridgenerationelements.md b/docs/sdk/models/operations/getgenerationsbyuseridgenerationelements.md new file mode 100755 index 00000000..f3ee60ca --- /dev/null +++ b/docs/sdk/models/operations/getgenerationsbyuseridgenerationelements.md @@ -0,0 +1,12 @@ +# GetGenerationsByUserIdGenerationElements + +This table captures the elements that are applied to a Generations, also the order and weightings used when applied. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `id` | *number* | :heavy_minus_sign: | N/A | +| `lora` | [operations.Elements](../../../sdk/models/operations/elements.md) | :heavy_minus_sign: | Element used for the generation. | +| `weightApplied` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getgenerationsbyuseridgenerations.md b/docs/sdk/models/operations/getgenerationsbyuseridgenerations.md similarity index 97% rename from docs/models/operations/getgenerationsbyuseridgenerations.md rename to docs/sdk/models/operations/getgenerationsbyuseridgenerations.md index 7cd93936..1fa5587c 100755 --- a/docs/models/operations/getgenerationsbyuseridgenerations.md +++ b/docs/sdk/models/operations/getgenerationsbyuseridgenerations.md @@ -8,8 +8,8 @@ columns and relationships of "generations" | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `createdAt` | *string* | :heavy_minus_sign: | N/A | -| `generatedImages` | [operations.GetGenerationsByUserIdGeneratedImages](../../models/operations/getgenerationsbyuseridgeneratedimages.md)[] | :heavy_minus_sign: | N/A | -| `generationElements` | [operations.GetGenerationsByUserIdGenerationElements](../../models/operations/getgenerationsbyuseridgenerationelements.md)[] | :heavy_minus_sign: | N/A | +| `generatedImages` | [operations.GetGenerationsByUserIdGeneratedImages](../../../sdk/models/operations/getgenerationsbyuseridgeneratedimages.md)[] | :heavy_minus_sign: | N/A | +| `generationElements` | [operations.GetGenerationsByUserIdGenerationElements](../../../sdk/models/operations/getgenerationsbyuseridgenerationelements.md)[] | :heavy_minus_sign: | N/A | | `guidanceScale` | *number* | :heavy_minus_sign: | N/A | | `id` | *string* | :heavy_minus_sign: | N/A | | `imageHeight` | *number* | :heavy_minus_sign: | N/A | @@ -20,13 +20,13 @@ columns and relationships of "generations" | `negativePrompt` | *string* | :heavy_minus_sign: | N/A | | `photoReal` | *boolean* | :heavy_minus_sign: | If photoReal feature was used. | | `photoRealStrength` | *number* | :heavy_minus_sign: | Depth of field of photoReal used. 0.55 is low, 0.5 is medium, and 0.45 is high. Default is 0.55. | -| `presetStyle` | [shared.SdGenerationStyle](../../models/shared/sdgenerationstyle.md) | :heavy_minus_sign: | The style to generate images with. When photoReal is enabled, use CINEMATIC, CREATIVE, VIBRANT, or NONE. When alchemy is disabled, use LEONARDO or NONE. When alchemy is enabled, use ANIME, CREATIVE, DYNAMIC, ENVIRONMENT, GENERAL, ILLUSTRATION, PHOTOGRAPHY, RAYTRACED, RENDER_3D, SKETCH_BW, SKETCH_COLOR, or NONE. | +| `presetStyle` | [shared.SdGenerationStyle](../../../sdk/models/shared/sdgenerationstyle.md) | :heavy_minus_sign: | The style to generate images with. When photoReal is enabled, use CINEMATIC, CREATIVE, VIBRANT, or NONE. When alchemy is disabled, use LEONARDO or NONE. When alchemy is enabled, use ANIME, CREATIVE, DYNAMIC, ENVIRONMENT, GENERAL, ILLUSTRATION, PHOTOGRAPHY, RAYTRACED, RENDER_3D, SKETCH_BW, SKETCH_COLOR, or NONE. | | `prompt` | *string* | :heavy_minus_sign: | N/A | | `promptMagic` | *boolean* | :heavy_minus_sign: | If prompt magic was used. | | `promptMagicStrength` | *number* | :heavy_minus_sign: | Strength of prompt magic used. | | `promptMagicVersion` | *string* | :heavy_minus_sign: | Version of prompt magic used. | | `public` | *boolean* | :heavy_minus_sign: | N/A | -| `scheduler` | [shared.SdGenerationSchedulers](../../models/shared/sdgenerationschedulers.md) | :heavy_minus_sign: | The scheduler to generate images with. Defaults to EULER_DISCRETE if not specified. | -| `sdVersion` | [shared.SdVersions](../../models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | +| `scheduler` | [shared.SdGenerationSchedulers](../../../sdk/models/shared/sdgenerationschedulers.md) | :heavy_minus_sign: | The scheduler to generate images with. Defaults to EULER_DISCRETE if not specified. | +| `sdVersion` | [shared.SdVersions](../../../sdk/models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | | `seed` | *number* | :heavy_minus_sign: | N/A | -| `status` | [shared.JobStatus](../../models/shared/jobstatus.md) | :heavy_minus_sign: | The status of the current task. | \ No newline at end of file +| `status` | [shared.JobStatus](../../../sdk/models/shared/jobstatus.md) | :heavy_minus_sign: | The status of the current task. | \ No newline at end of file diff --git a/docs/models/operations/getgenerationsbyuseridrequest.md b/docs/sdk/models/operations/getgenerationsbyuseridrequest.md similarity index 100% rename from docs/models/operations/getgenerationsbyuseridrequest.md rename to docs/sdk/models/operations/getgenerationsbyuseridrequest.md diff --git a/docs/sdk/models/operations/getgenerationsbyuseridresponse.md b/docs/sdk/models/operations/getgenerationsbyuseridresponse.md new file mode 100755 index 00000000..c4d5312a --- /dev/null +++ b/docs/sdk/models/operations/getgenerationsbyuseridresponse.md @@ -0,0 +1,11 @@ +# GetGenerationsByUserIdResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetGenerationsByUserIdResponseBody](../../../sdk/models/operations/getgenerationsbyuseridresponsebody.md) | :heavy_minus_sign: | Responses for GET /generations/user/{userId} | \ No newline at end of file diff --git a/docs/sdk/models/operations/getgenerationsbyuseridresponsebody.md b/docs/sdk/models/operations/getgenerationsbyuseridresponsebody.md new file mode 100755 index 00000000..bfdaf4b3 --- /dev/null +++ b/docs/sdk/models/operations/getgenerationsbyuseridresponsebody.md @@ -0,0 +1,10 @@ +# GetGenerationsByUserIdResponseBody + +Responses for GET /generations/user/{userId} + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `generations` | [operations.GetGenerationsByUserIdGenerations](../../../sdk/models/operations/getgenerationsbyuseridgenerations.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getinitimagebyidinitimages.md b/docs/sdk/models/operations/getinitimagebyidinitimages.md similarity index 100% rename from docs/models/operations/getinitimagebyidinitimages.md rename to docs/sdk/models/operations/getinitimagebyidinitimages.md diff --git a/docs/models/operations/getinitimagebyidrequest.md b/docs/sdk/models/operations/getinitimagebyidrequest.md similarity index 100% rename from docs/models/operations/getinitimagebyidrequest.md rename to docs/sdk/models/operations/getinitimagebyidrequest.md diff --git a/docs/sdk/models/operations/getinitimagebyidresponse.md b/docs/sdk/models/operations/getinitimagebyidresponse.md new file mode 100755 index 00000000..6afc0dc0 --- /dev/null +++ b/docs/sdk/models/operations/getinitimagebyidresponse.md @@ -0,0 +1,11 @@ +# GetInitImageByIdResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetInitImageByIdResponseBody](../../../sdk/models/operations/getinitimagebyidresponsebody.md) | :heavy_minus_sign: | Responses for GET /init-image/{id} | \ No newline at end of file diff --git a/docs/sdk/models/operations/getinitimagebyidresponsebody.md b/docs/sdk/models/operations/getinitimagebyidresponsebody.md new file mode 100755 index 00000000..31b6ed96 --- /dev/null +++ b/docs/sdk/models/operations/getinitimagebyidresponsebody.md @@ -0,0 +1,10 @@ +# GetInitImageByIdResponseBody + +Responses for GET /init-image/{id} + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `initImagesByPk` | [operations.GetInitImageByIdInitImages](../../../sdk/models/operations/getinitimagebyidinitimages.md) | :heavy_minus_sign: | columns and relationships of "init_images" | \ No newline at end of file diff --git a/docs/models/operations/getmodelbyidcustommodels.md b/docs/sdk/models/operations/getmodelbyidcustommodels.md similarity index 95% rename from docs/models/operations/getmodelbyidcustommodels.md rename to docs/sdk/models/operations/getmodelbyidcustommodels.md index 76ce1a8c..d6f549cc 100755 --- a/docs/models/operations/getmodelbyidcustommodels.md +++ b/docs/sdk/models/operations/getmodelbyidcustommodels.md @@ -15,7 +15,7 @@ columns and relationships of "custom_models" | `modelWidth` | *number* | :heavy_minus_sign: | N/A | | `name` | *string* | :heavy_minus_sign: | N/A | | `public` | *boolean* | :heavy_minus_sign: | N/A | -| `sdVersion` | [shared.SdVersions](../../models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | -| `status` | [shared.JobStatus](../../models/shared/jobstatus.md) | :heavy_minus_sign: | The status of the current task. | -| `type` | [shared.CustomModelType](../../models/shared/custommodeltype.md) | :heavy_minus_sign: | The category the most accurately reflects the model. | +| `sdVersion` | [shared.SdVersions](../../../sdk/models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | +| `status` | [shared.JobStatus](../../../sdk/models/shared/jobstatus.md) | :heavy_minus_sign: | The status of the current task. | +| `type` | [shared.CustomModelType](../../../sdk/models/shared/custommodeltype.md) | :heavy_minus_sign: | The category the most accurately reflects the model. | | `updatedAt` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getmodelbyidrequest.md b/docs/sdk/models/operations/getmodelbyidrequest.md similarity index 100% rename from docs/models/operations/getmodelbyidrequest.md rename to docs/sdk/models/operations/getmodelbyidrequest.md diff --git a/docs/sdk/models/operations/getmodelbyidresponse.md b/docs/sdk/models/operations/getmodelbyidresponse.md new file mode 100755 index 00000000..7126c541 --- /dev/null +++ b/docs/sdk/models/operations/getmodelbyidresponse.md @@ -0,0 +1,11 @@ +# GetModelByIdResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetModelByIdResponseBody](../../../sdk/models/operations/getmodelbyidresponsebody.md) | :heavy_minus_sign: | Responses for GET /models/{id} | \ No newline at end of file diff --git a/docs/sdk/models/operations/getmodelbyidresponsebody.md b/docs/sdk/models/operations/getmodelbyidresponsebody.md new file mode 100755 index 00000000..1bb3ba6f --- /dev/null +++ b/docs/sdk/models/operations/getmodelbyidresponsebody.md @@ -0,0 +1,10 @@ +# GetModelByIdResponseBody + +Responses for GET /models/{id} + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `customModelsByPk` | [operations.GetModelByIdCustomModels](../../../sdk/models/operations/getmodelbyidcustommodels.md) | :heavy_minus_sign: | columns and relationships of "custom_models" | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplatformmodelscustommodels.md b/docs/sdk/models/operations/getplatformmodelscustommodels.md new file mode 100755 index 00000000..cbe7533b --- /dev/null +++ b/docs/sdk/models/operations/getplatformmodelscustommodels.md @@ -0,0 +1,15 @@ +# GetPlatformModelsCustomModels + +columns and relationships of "custom_models" + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `featured` | *boolean* | :heavy_minus_sign: | N/A | +| `generatedImage` | [operations.GetPlatformModelsGeneratedImages](../../../sdk/models/operations/getplatformmodelsgeneratedimages.md) | :heavy_minus_sign: | columns and relationships of "generated_images" | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `name` | *string* | :heavy_minus_sign: | N/A | +| `nsfw` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getplatformmodelsgeneratedimages.md b/docs/sdk/models/operations/getplatformmodelsgeneratedimages.md similarity index 100% rename from docs/models/operations/getplatformmodelsgeneratedimages.md rename to docs/sdk/models/operations/getplatformmodelsgeneratedimages.md diff --git a/docs/models/operations/getplatformmodelsrequest.md b/docs/sdk/models/operations/getplatformmodelsrequest.md similarity index 100% rename from docs/models/operations/getplatformmodelsrequest.md rename to docs/sdk/models/operations/getplatformmodelsrequest.md diff --git a/docs/sdk/models/operations/getplatformmodelsresponse.md b/docs/sdk/models/operations/getplatformmodelsresponse.md new file mode 100755 index 00000000..e29f7761 --- /dev/null +++ b/docs/sdk/models/operations/getplatformmodelsresponse.md @@ -0,0 +1,11 @@ +# GetPlatformModelsResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetPlatformModelsResponseBody](../../../sdk/models/operations/getplatformmodelsresponsebody.md) | :heavy_minus_sign: | Responses for GET /api/rest/v1/platformModels | \ No newline at end of file diff --git a/docs/sdk/models/operations/getplatformmodelsresponsebody.md b/docs/sdk/models/operations/getplatformmodelsresponsebody.md new file mode 100755 index 00000000..f1cbf2c3 --- /dev/null +++ b/docs/sdk/models/operations/getplatformmodelsresponsebody.md @@ -0,0 +1,10 @@ +# GetPlatformModelsResponseBody + +Responses for GET /api/rest/v1/platformModels + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `customModels` | [operations.GetPlatformModelsCustomModels](../../../sdk/models/operations/getplatformmodelscustommodels.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/getuserselfresponse.md b/docs/sdk/models/operations/getuserselfresponse.md new file mode 100755 index 00000000..b3e61849 --- /dev/null +++ b/docs/sdk/models/operations/getuserselfresponse.md @@ -0,0 +1,11 @@ +# GetUserSelfResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetUserSelfResponseBody](../../../sdk/models/operations/getuserselfresponsebody.md) | :heavy_minus_sign: | Responses for GET /me | \ No newline at end of file diff --git a/docs/sdk/models/operations/getuserselfresponsebody.md b/docs/sdk/models/operations/getuserselfresponsebody.md new file mode 100755 index 00000000..015b0cd9 --- /dev/null +++ b/docs/sdk/models/operations/getuserselfresponsebody.md @@ -0,0 +1,10 @@ +# GetUserSelfResponseBody + +Responses for GET /me + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `userDetails` | [operations.UserDetails](../../../sdk/models/operations/userdetails.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getvariationbyidrequest.md b/docs/sdk/models/operations/getvariationbyidrequest.md similarity index 100% rename from docs/models/operations/getvariationbyidrequest.md rename to docs/sdk/models/operations/getvariationbyidrequest.md diff --git a/docs/sdk/models/operations/getvariationbyidresponse.md b/docs/sdk/models/operations/getvariationbyidresponse.md new file mode 100755 index 00000000..557da5f1 --- /dev/null +++ b/docs/sdk/models/operations/getvariationbyidresponse.md @@ -0,0 +1,11 @@ +# GetVariationByIdResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.GetVariationByIdResponseBody](../../../sdk/models/operations/getvariationbyidresponsebody.md) | :heavy_minus_sign: | Responses for GET /variations/{id} | \ No newline at end of file diff --git a/docs/sdk/models/operations/getvariationbyidresponsebody.md b/docs/sdk/models/operations/getvariationbyidresponsebody.md new file mode 100755 index 00000000..01af0fa0 --- /dev/null +++ b/docs/sdk/models/operations/getvariationbyidresponsebody.md @@ -0,0 +1,10 @@ +# GetVariationByIdResponseBody + +Responses for GET /variations/{id} + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `generatedImageVariationGeneric` | [operations.GeneratedImageVariationGeneric](../../../sdk/models/operations/generatedimagevariationgeneric.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/initimages.md b/docs/sdk/models/operations/initimages.md similarity index 100% rename from docs/models/operations/initimages.md rename to docs/sdk/models/operations/initimages.md diff --git a/docs/models/operations/initimageuploadoutput.md b/docs/sdk/models/operations/initimageuploadoutput.md similarity index 100% rename from docs/models/operations/initimageuploadoutput.md rename to docs/sdk/models/operations/initimageuploadoutput.md diff --git a/docs/models/operations/loras.md b/docs/sdk/models/operations/loras.md similarity index 97% rename from docs/models/operations/loras.md rename to docs/sdk/models/operations/loras.md index 72a3c815..a8f1f60b 100755 --- a/docs/models/operations/loras.md +++ b/docs/sdk/models/operations/loras.md @@ -8,7 +8,7 @@ columns and relationships of "elements" | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | | `akUUID` | *string* | :heavy_minus_sign: | Unique identifier for the element. Elements can be found from the List Elements endpoint. | -| `baseModel` | [shared.SdVersions](../../models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | +| `baseModel` | [shared.SdVersions](../../../sdk/models/shared/sdversions.md) | :heavy_minus_sign: | The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. | | `creatorName` | *string* | :heavy_minus_sign: | Name of the creator of the element | | `description` | *string* | :heavy_minus_sign: | Description for the element | | `name` | *string* | :heavy_minus_sign: | Name of the element | diff --git a/docs/models/operations/modelassets.md b/docs/sdk/models/operations/modelassets.md similarity index 100% rename from docs/models/operations/modelassets.md rename to docs/sdk/models/operations/modelassets.md diff --git a/docs/models/operations/modelassettexturegenerations.md b/docs/sdk/models/operations/modelassettexturegenerations.md similarity index 100% rename from docs/models/operations/modelassettexturegenerations.md rename to docs/sdk/models/operations/modelassettexturegenerations.md diff --git a/docs/models/operations/modelassetuploadoutput.md b/docs/sdk/models/operations/modelassetuploadoutput.md similarity index 100% rename from docs/models/operations/modelassetuploadoutput.md rename to docs/sdk/models/operations/modelassetuploadoutput.md diff --git a/docs/models/operations/postgenerationstexturerequestbody.md b/docs/sdk/models/operations/postgenerationstexturerequestbody.md similarity index 100% rename from docs/models/operations/postgenerationstexturerequestbody.md rename to docs/sdk/models/operations/postgenerationstexturerequestbody.md diff --git a/docs/sdk/models/operations/postgenerationstextureresponse.md b/docs/sdk/models/operations/postgenerationstextureresponse.md new file mode 100755 index 00000000..21231762 --- /dev/null +++ b/docs/sdk/models/operations/postgenerationstextureresponse.md @@ -0,0 +1,11 @@ +# PostGenerationsTextureResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.PostGenerationsTextureResponseBody](../../../sdk/models/operations/postgenerationstextureresponsebody.md) | :heavy_minus_sign: | Responses for POST /api/rest/v1/generations-texture | \ No newline at end of file diff --git a/docs/sdk/models/operations/postgenerationstextureresponsebody.md b/docs/sdk/models/operations/postgenerationstextureresponsebody.md new file mode 100755 index 00000000..0a830282 --- /dev/null +++ b/docs/sdk/models/operations/postgenerationstextureresponsebody.md @@ -0,0 +1,10 @@ +# PostGenerationsTextureResponseBody + +Responses for POST /api/rest/v1/generations-texture + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `textureGenerationJob` | [operations.TextureGenerationJobOutput](../../../sdk/models/operations/texturegenerationjoboutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/postmodels3duploadrequestbody.md b/docs/sdk/models/operations/postmodels3duploadrequestbody.md similarity index 100% rename from docs/models/operations/postmodels3duploadrequestbody.md rename to docs/sdk/models/operations/postmodels3duploadrequestbody.md diff --git a/docs/sdk/models/operations/postmodels3duploadresponse.md b/docs/sdk/models/operations/postmodels3duploadresponse.md new file mode 100755 index 00000000..bac26600 --- /dev/null +++ b/docs/sdk/models/operations/postmodels3duploadresponse.md @@ -0,0 +1,11 @@ +# PostModels3dUploadResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.PostModels3dUploadResponseBody](../../../sdk/models/operations/postmodels3duploadresponsebody.md) | :heavy_minus_sign: | Responses for POST /api/rest/v1/models-3d/upload | \ No newline at end of file diff --git a/docs/sdk/models/operations/postmodels3duploadresponsebody.md b/docs/sdk/models/operations/postmodels3duploadresponsebody.md new file mode 100755 index 00000000..f08a7e14 --- /dev/null +++ b/docs/sdk/models/operations/postmodels3duploadresponsebody.md @@ -0,0 +1,10 @@ +# PostModels3dUploadResponseBody + +Responses for POST /api/rest/v1/models-3d/upload + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `uploadModelAsset` | [operations.ModelAssetUploadOutput](../../../sdk/models/operations/modelassetuploadoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/postvariationsunzoomrequestbody.md b/docs/sdk/models/operations/postvariationsunzoomrequestbody.md similarity index 100% rename from docs/models/operations/postvariationsunzoomrequestbody.md rename to docs/sdk/models/operations/postvariationsunzoomrequestbody.md diff --git a/docs/sdk/models/operations/postvariationsunzoomresponse.md b/docs/sdk/models/operations/postvariationsunzoomresponse.md new file mode 100755 index 00000000..c3932a9f --- /dev/null +++ b/docs/sdk/models/operations/postvariationsunzoomresponse.md @@ -0,0 +1,11 @@ +# PostVariationsUnzoomResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.PostVariationsUnzoomResponseBody](../../../sdk/models/operations/postvariationsunzoomresponsebody.md) | :heavy_minus_sign: | Responses for POST /api/rest/v1/variations/unzoom | \ No newline at end of file diff --git a/docs/sdk/models/operations/postvariationsunzoomresponsebody.md b/docs/sdk/models/operations/postvariationsunzoomresponsebody.md new file mode 100755 index 00000000..127b7e56 --- /dev/null +++ b/docs/sdk/models/operations/postvariationsunzoomresponsebody.md @@ -0,0 +1,10 @@ +# PostVariationsUnzoomResponseBody + +Responses for POST /api/rest/v1/variations/unzoom + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `sdUnzoomJob` | [operations.SDUnzoomOutput](../../../sdk/models/operations/sdunzoomoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/sdgenerationoutput.md b/docs/sdk/models/operations/sdgenerationoutput.md similarity index 100% rename from docs/models/operations/sdgenerationoutput.md rename to docs/sdk/models/operations/sdgenerationoutput.md diff --git a/docs/models/operations/sdtrainingoutput.md b/docs/sdk/models/operations/sdtrainingoutput.md similarity index 100% rename from docs/models/operations/sdtrainingoutput.md rename to docs/sdk/models/operations/sdtrainingoutput.md diff --git a/docs/models/operations/sdunzoomoutput.md b/docs/sdk/models/operations/sdunzoomoutput.md similarity index 100% rename from docs/models/operations/sdunzoomoutput.md rename to docs/sdk/models/operations/sdunzoomoutput.md diff --git a/docs/models/operations/sdupscalejoboutput.md b/docs/sdk/models/operations/sdupscalejoboutput.md similarity index 100% rename from docs/models/operations/sdupscalejoboutput.md rename to docs/sdk/models/operations/sdupscalejoboutput.md diff --git a/docs/models/operations/texturegenerationjoboutput.md b/docs/sdk/models/operations/texturegenerationjoboutput.md similarity index 100% rename from docs/models/operations/texturegenerationjoboutput.md rename to docs/sdk/models/operations/texturegenerationjoboutput.md diff --git a/docs/sdk/models/operations/uploaddatasetimagefromgenrequest.md b/docs/sdk/models/operations/uploaddatasetimagefromgenrequest.md new file mode 100755 index 00000000..2e92acf6 --- /dev/null +++ b/docs/sdk/models/operations/uploaddatasetimagefromgenrequest.md @@ -0,0 +1,9 @@ +# UploadDatasetImageFromGenRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `requestBody` | [operations.UploadDatasetImageFromGenRequestBody](../../../sdk/models/operations/uploaddatasetimagefromgenrequestbody.md) | :heavy_check_mark: | Query parameters to be provided in the request body as a JSON object | +| `datasetId` | *string* | :heavy_check_mark: | The ID of the dataset to upload the image to. | \ No newline at end of file diff --git a/docs/models/operations/uploaddatasetimagefromgenrequestbody.md b/docs/sdk/models/operations/uploaddatasetimagefromgenrequestbody.md similarity index 100% rename from docs/models/operations/uploaddatasetimagefromgenrequestbody.md rename to docs/sdk/models/operations/uploaddatasetimagefromgenrequestbody.md diff --git a/docs/sdk/models/operations/uploaddatasetimagefromgenresponse.md b/docs/sdk/models/operations/uploaddatasetimagefromgenresponse.md new file mode 100755 index 00000000..5524bff9 --- /dev/null +++ b/docs/sdk/models/operations/uploaddatasetimagefromgenresponse.md @@ -0,0 +1,11 @@ +# UploadDatasetImageFromGenResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.UploadDatasetImageFromGenResponseBody](../../../sdk/models/operations/uploaddatasetimagefromgenresponsebody.md) | :heavy_minus_sign: | Responses for POST /datasets/{datasetId}/upload/gen | \ No newline at end of file diff --git a/docs/sdk/models/operations/uploaddatasetimagefromgenresponsebody.md b/docs/sdk/models/operations/uploaddatasetimagefromgenresponsebody.md new file mode 100755 index 00000000..b3862411 --- /dev/null +++ b/docs/sdk/models/operations/uploaddatasetimagefromgenresponsebody.md @@ -0,0 +1,10 @@ +# UploadDatasetImageFromGenResponseBody + +Responses for POST /datasets/{datasetId}/upload/gen + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `uploadDatasetImageFromGen` | [operations.DatasetGenUploadOutput](../../../sdk/models/operations/datasetgenuploadoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/uploaddatasetimagerequest.md b/docs/sdk/models/operations/uploaddatasetimagerequest.md new file mode 100755 index 00000000..ea432650 --- /dev/null +++ b/docs/sdk/models/operations/uploaddatasetimagerequest.md @@ -0,0 +1,9 @@ +# UploadDatasetImageRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `requestBody` | [operations.UploadDatasetImageRequestBody](../../../sdk/models/operations/uploaddatasetimagerequestbody.md) | :heavy_check_mark: | Query parameters provided in the request body as a JSON object | +| `datasetId` | *string* | :heavy_check_mark: | _"datasetId" is required | \ No newline at end of file diff --git a/docs/models/operations/uploaddatasetimagerequestbody.md b/docs/sdk/models/operations/uploaddatasetimagerequestbody.md similarity index 100% rename from docs/models/operations/uploaddatasetimagerequestbody.md rename to docs/sdk/models/operations/uploaddatasetimagerequestbody.md diff --git a/docs/sdk/models/operations/uploaddatasetimageresponse.md b/docs/sdk/models/operations/uploaddatasetimageresponse.md new file mode 100755 index 00000000..81281a56 --- /dev/null +++ b/docs/sdk/models/operations/uploaddatasetimageresponse.md @@ -0,0 +1,11 @@ +# UploadDatasetImageResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.UploadDatasetImageResponseBody](../../../sdk/models/operations/uploaddatasetimageresponsebody.md) | :heavy_minus_sign: | Responses for POST /datasets/{datasetId}/upload | \ No newline at end of file diff --git a/docs/sdk/models/operations/uploaddatasetimageresponsebody.md b/docs/sdk/models/operations/uploaddatasetimageresponsebody.md new file mode 100755 index 00000000..6993a16b --- /dev/null +++ b/docs/sdk/models/operations/uploaddatasetimageresponsebody.md @@ -0,0 +1,10 @@ +# UploadDatasetImageResponseBody + +Responses for POST /datasets/{datasetId}/upload + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `uploadDatasetImage` | [operations.DatasetUploadOutput](../../../sdk/models/operations/datasetuploadoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/uploadinitimagerequestbody.md b/docs/sdk/models/operations/uploadinitimagerequestbody.md similarity index 100% rename from docs/models/operations/uploadinitimagerequestbody.md rename to docs/sdk/models/operations/uploadinitimagerequestbody.md diff --git a/docs/sdk/models/operations/uploadinitimageresponse.md b/docs/sdk/models/operations/uploadinitimageresponse.md new file mode 100755 index 00000000..3b9e9329 --- /dev/null +++ b/docs/sdk/models/operations/uploadinitimageresponse.md @@ -0,0 +1,11 @@ +# UploadInitImageResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `object` | [operations.UploadInitImageResponseBody](../../../sdk/models/operations/uploadinitimageresponsebody.md) | :heavy_minus_sign: | Responses for POST /init-image | \ No newline at end of file diff --git a/docs/sdk/models/operations/uploadinitimageresponsebody.md b/docs/sdk/models/operations/uploadinitimageresponsebody.md new file mode 100755 index 00000000..545aa2be --- /dev/null +++ b/docs/sdk/models/operations/uploadinitimageresponsebody.md @@ -0,0 +1,10 @@ +# UploadInitImageResponseBody + +Responses for POST /init-image + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `uploadInitImage` | [operations.InitImageUploadOutput](../../../sdk/models/operations/initimageuploadoutput.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdk/models/operations/userdetails.md b/docs/sdk/models/operations/userdetails.md new file mode 100755 index 00000000..2c4dc819 --- /dev/null +++ b/docs/sdk/models/operations/userdetails.md @@ -0,0 +1,15 @@ +# UserDetails + +columns and relationships of "user_details" + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `apiConcurrencySlots` | *number* | :heavy_minus_sign: | N/A | +| `subscriptionGptTokens` | *number* | :heavy_minus_sign: | N/A | +| `subscriptionModelTokens` | *number* | :heavy_minus_sign: | N/A | +| `subscriptionTokens` | *number* | :heavy_minus_sign: | N/A | +| `tokenRenewalDate` | *string* | :heavy_minus_sign: | N/A | +| `user` | [operations.Users](../../../sdk/models/operations/users.md) | :heavy_minus_sign: | columns and relationships of "users" | \ No newline at end of file diff --git a/docs/models/operations/users.md b/docs/sdk/models/operations/users.md similarity index 100% rename from docs/models/operations/users.md rename to docs/sdk/models/operations/users.md diff --git a/docs/models/shared/controlnettype.md b/docs/sdk/models/shared/controlnettype.md similarity index 100% rename from docs/models/shared/controlnettype.md rename to docs/sdk/models/shared/controlnettype.md diff --git a/docs/models/shared/custommodeltype.md b/docs/sdk/models/shared/custommodeltype.md similarity index 100% rename from docs/models/shared/custommodeltype.md rename to docs/sdk/models/shared/custommodeltype.md diff --git a/docs/models/shared/elementinput.md b/docs/sdk/models/shared/elementinput.md similarity index 100% rename from docs/models/shared/elementinput.md rename to docs/sdk/models/shared/elementinput.md diff --git a/docs/models/shared/jobstatus.md b/docs/sdk/models/shared/jobstatus.md similarity index 100% rename from docs/models/shared/jobstatus.md rename to docs/sdk/models/shared/jobstatus.md diff --git a/docs/models/shared/sdgenerationschedulers.md b/docs/sdk/models/shared/sdgenerationschedulers.md similarity index 100% rename from docs/models/shared/sdgenerationschedulers.md rename to docs/sdk/models/shared/sdgenerationschedulers.md diff --git a/docs/models/shared/sdgenerationstyle.md b/docs/sdk/models/shared/sdgenerationstyle.md similarity index 100% rename from docs/models/shared/sdgenerationstyle.md rename to docs/sdk/models/shared/sdgenerationstyle.md diff --git a/docs/models/shared/sdversions.md b/docs/sdk/models/shared/sdversions.md similarity index 100% rename from docs/models/shared/sdversions.md rename to docs/sdk/models/shared/sdversions.md diff --git a/docs/models/shared/security.md b/docs/sdk/models/shared/security.md similarity index 100% rename from docs/models/shared/security.md rename to docs/sdk/models/shared/security.md diff --git a/docs/models/shared/strength.md b/docs/sdk/models/shared/strength.md similarity index 100% rename from docs/models/shared/strength.md rename to docs/sdk/models/shared/strength.md diff --git a/docs/models/shared/variationtype.md b/docs/sdk/models/shared/variationtype.md similarity index 100% rename from docs/models/shared/variationtype.md rename to docs/sdk/models/shared/variationtype.md diff --git a/docs/sdks/dataset/README.md b/docs/sdks/dataset/README.md index ebf54cf5..1dd43889 100755 --- a/docs/sdks/dataset/README.md +++ b/docs/sdks/dataset/README.md @@ -1,5 +1,5 @@ # Dataset -(*.dataset*) +(*dataset*) ### Available Operations @@ -27,7 +27,6 @@ import { Leonardo } from "@leonardo-ai/sdk"; name: "string", }); - if (res.statusCode == 200) { // handle response } @@ -36,16 +35,20 @@ import { Leonardo } from "@leonardo-ai/sdk"; ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateDatasetRequestBody](../../models/operations/createdatasetrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | -| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `request` | [operations.CreateDatasetRequestBody](../../sdk/models/operations/createdatasetrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response -**Promise<[operations.CreateDatasetResponse](../../models/operations/createdatasetresponse.md)>** +**Promise<[operations.CreateDatasetResponse](../../sdk/models/operations/createdatasetresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## deleteDatasetById @@ -65,7 +68,6 @@ const id: string = "string"; const res = await sdk.dataset.deleteDatasetById(id); - if (res.statusCode == 200) { // handle response } @@ -82,8 +84,12 @@ const id: string = "string"; ### Response -**Promise<[operations.DeleteDatasetByIdResponse](../../models/operations/deletedatasetbyidresponse.md)>** +**Promise<[operations.DeleteDatasetByIdResponse](../../sdk/models/operations/deletedatasetbyidresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## getDatasetById @@ -103,7 +109,6 @@ const id: string = "string"; const res = await sdk.dataset.getDatasetById(id); - if (res.statusCode == 200) { // handle response } @@ -120,8 +125,12 @@ const id: string = "string"; ### Response -**Promise<[operations.GetDatasetByIdResponse](../../models/operations/getdatasetbyidresponse.md)>** +**Promise<[operations.GetDatasetByIdResponse](../../sdk/models/operations/getdatasetbyidresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## uploadDatasetImage @@ -144,7 +153,6 @@ const datasetId: string = "string"; const res = await sdk.dataset.uploadDatasetImage(requestBody, datasetId); - if (res.statusCode == 200) { // handle response } @@ -153,17 +161,21 @@ const datasetId: string = "string"; ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `requestBody` | [operations.UploadDatasetImageRequestBody](../../models/operations/uploaddatasetimagerequestbody.md) | :heavy_check_mark: | Query parameters provided in the request body as a JSON object | -| `datasetId` | *string* | :heavy_check_mark: | _"datasetId" is required | -| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `requestBody` | [operations.UploadDatasetImageRequestBody](../../../sdk/models/operations/uploaddatasetimagerequestbody.md) | :heavy_check_mark: | Query parameters provided in the request body as a JSON object | +| `datasetId` | *string* | :heavy_check_mark: | _"datasetId" is required | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response -**Promise<[operations.UploadDatasetImageResponse](../../models/operations/uploaddatasetimageresponse.md)>** +**Promise<[operations.UploadDatasetImageResponse](../../sdk/models/operations/uploaddatasetimageresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## uploadDatasetImageFromGen @@ -186,7 +198,6 @@ const datasetId: string = "string"; const res = await sdk.dataset.uploadDatasetImageFromGen(requestBody, datasetId); - if (res.statusCode == 200) { // handle response } @@ -195,14 +206,18 @@ const datasetId: string = "string"; ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `requestBody` | [operations.UploadDatasetImageFromGenRequestBody](../../models/operations/uploaddatasetimagefromgenrequestbody.md) | :heavy_check_mark: | Query parameters to be provided in the request body as a JSON object | -| `datasetId` | *string* | :heavy_check_mark: | The ID of the dataset to upload the image to. | -| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `requestBody` | [operations.UploadDatasetImageFromGenRequestBody](../../../sdk/models/operations/uploaddatasetimagefromgenrequestbody.md) | :heavy_check_mark: | Query parameters to be provided in the request body as a JSON object | +| `datasetId` | *string* | :heavy_check_mark: | The ID of the dataset to upload the image to. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response -**Promise<[operations.UploadDatasetImageFromGenResponse](../../models/operations/uploaddatasetimagefromgenresponse.md)>** +**Promise<[operations.UploadDatasetImageFromGenResponse](../../sdk/models/operations/uploaddatasetimagefromgenresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | diff --git a/docs/sdks/element/README.md b/docs/sdks/element/README.md index 97489756..45deac12 100755 --- a/docs/sdks/element/README.md +++ b/docs/sdks/element/README.md @@ -1,5 +1,5 @@ # Element -(*.element*) +(*element*) ### Available Operations @@ -21,7 +21,6 @@ import { Leonardo } from "@leonardo-ai/sdk"; const res = await sdk.element.getElements(); - if (res.statusCode == 200) { // handle response } @@ -37,5 +36,9 @@ import { Leonardo } from "@leonardo-ai/sdk"; ### Response -**Promise<[operations.GetElementsResponse](../../models/operations/getelementsresponse.md)>** +**Promise<[operations.GetElementsResponse](../../sdk/models/operations/getelementsresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | diff --git a/docs/sdks/generation/README.md b/docs/sdks/generation/README.md index dc658ead..e04f6b21 100755 --- a/docs/sdks/generation/README.md +++ b/docs/sdks/generation/README.md @@ -1,5 +1,5 @@ # Generation -(*.generation*) +(*generation*) ### Available Operations @@ -34,7 +34,6 @@ import { ControlnetType, SdGenerationSchedulers, SdGenerationStyle, SdVersions } ], }); - if (res.statusCode == 200) { // handle response } @@ -43,16 +42,20 @@ import { ControlnetType, SdGenerationSchedulers, SdGenerationStyle, SdVersions } ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateGenerationRequestBody](../../models/operations/creategenerationrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | -| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `request` | [operations.CreateGenerationRequestBody](../../sdk/models/operations/creategenerationrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response -**Promise<[operations.CreateGenerationResponse](../../models/operations/creategenerationresponse.md)>** +**Promise<[operations.CreateGenerationResponse](../../sdk/models/operations/creategenerationresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## deleteGenerationById @@ -72,7 +75,6 @@ const id: string = "string"; const res = await sdk.generation.deleteGenerationById(id); - if (res.statusCode == 200) { // handle response } @@ -89,8 +91,12 @@ const id: string = "string"; ### Response -**Promise<[operations.DeleteGenerationByIdResponse](../../models/operations/deletegenerationbyidresponse.md)>** +**Promise<[operations.DeleteGenerationByIdResponse](../../sdk/models/operations/deletegenerationbyidresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## deleteGenerationsTextureId @@ -111,7 +117,6 @@ const requestBody: DeleteGenerationsTextureIdRequestBody = {}; const res = await sdk.generation.deleteGenerationsTextureId(id, requestBody); - if (res.statusCode == 200) { // handle response } @@ -120,17 +125,21 @@ const requestBody: DeleteGenerationsTextureIdRequestBody = {}; ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | _"id" is required (enter it either in parameters or request body)_ | -| `requestBody` | [operations.DeleteGenerationsTextureIdRequestBody](../../models/operations/deletegenerationstextureidrequestbody.md) | :heavy_minus_sign: | Query parameters can also be provided in the request body as a JSON object | -| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | _"id" is required (enter it either in parameters or request body)_ | +| `requestBody` | [operations.DeleteGenerationsTextureIdRequestBody](../../../sdk/models/operations/deletegenerationstextureidrequestbody.md) | :heavy_minus_sign: | Query parameters can also be provided in the request body as a JSON object | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response -**Promise<[operations.DeleteGenerationsTextureIdResponse](../../models/operations/deletegenerationstextureidresponse.md)>** +**Promise<[operations.DeleteGenerationsTextureIdResponse](../../sdk/models/operations/deletegenerationstextureidresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## getGenerationById @@ -150,7 +159,6 @@ const id: string = "string"; const res = await sdk.generation.getGenerationById(id); - if (res.statusCode == 200) { // handle response } @@ -167,8 +175,12 @@ const id: string = "string"; ### Response -**Promise<[operations.GetGenerationByIdResponse](../../models/operations/getgenerationbyidresponse.md)>** +**Promise<[operations.GetGenerationByIdResponse](../../sdk/models/operations/getgenerationbyidresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## getGenerationsByUserId @@ -190,7 +202,6 @@ const offset: number = 770121; const res = await sdk.generation.getGenerationsByUserId(userId, limit, offset); - if (res.statusCode == 200) { // handle response } @@ -209,8 +220,12 @@ const offset: number = 770121; ### Response -**Promise<[operations.GetGenerationsByUserIdResponse](../../models/operations/getgenerationsbyuseridresponse.md)>** +**Promise<[operations.GetGenerationsByUserIdResponse](../../sdk/models/operations/getgenerationsbyuseridresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## postGenerationsTexture @@ -228,7 +243,6 @@ import { Leonardo } from "@leonardo-ai/sdk"; const res = await sdk.generation.postGenerationsTexture({}); - if (res.statusCode == 200) { // handle response } @@ -237,13 +251,17 @@ import { Leonardo } from "@leonardo-ai/sdk"; ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.PostGenerationsTextureRequestBody](../../models/operations/postgenerationstexturerequestbody.md) | :heavy_check_mark: | The request object to use for the request. | -| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `request` | [operations.PostGenerationsTextureRequestBody](../../sdk/models/operations/postgenerationstexturerequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response -**Promise<[operations.PostGenerationsTextureResponse](../../models/operations/postgenerationstextureresponse.md)>** +**Promise<[operations.PostGenerationsTextureResponse](../../sdk/models/operations/postgenerationstextureresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | diff --git a/docs/sdks/initimage/README.md b/docs/sdks/initimage/README.md index 1920019a..c16d491d 100755 --- a/docs/sdks/initimage/README.md +++ b/docs/sdks/initimage/README.md @@ -1,5 +1,5 @@ # InitImage -(*.initImage*) +(*initImage*) ### Available Operations @@ -25,7 +25,6 @@ const id: string = "string"; const res = await sdk.initImage.deleteInitImageById(id); - if (res.statusCode == 200) { // handle response } @@ -42,8 +41,12 @@ const id: string = "string"; ### Response -**Promise<[operations.DeleteInitImageByIdResponse](../../models/operations/deleteinitimagebyidresponse.md)>** +**Promise<[operations.DeleteInitImageByIdResponse](../../sdk/models/operations/deleteinitimagebyidresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## getInitImageById @@ -63,7 +66,6 @@ const id: string = "string"; const res = await sdk.initImage.getInitImageById(id); - if (res.statusCode == 200) { // handle response } @@ -80,8 +82,12 @@ const id: string = "string"; ### Response -**Promise<[operations.GetInitImageByIdResponse](../../models/operations/getinitimagebyidresponse.md)>** +**Promise<[operations.GetInitImageByIdResponse](../../sdk/models/operations/getinitimagebyidresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## uploadInitImage @@ -101,7 +107,6 @@ import { Leonardo } from "@leonardo-ai/sdk"; extension: "png", }); - if (res.statusCode == 200) { // handle response } @@ -110,13 +115,17 @@ import { Leonardo } from "@leonardo-ai/sdk"; ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `request` | [operations.UploadInitImageRequestBody](../../models/operations/uploadinitimagerequestbody.md) | :heavy_check_mark: | The request object to use for the request. | -| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `request` | [operations.UploadInitImageRequestBody](../../sdk/models/operations/uploadinitimagerequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response -**Promise<[operations.UploadInitImageResponse](../../models/operations/uploadinitimageresponse.md)>** +**Promise<[operations.UploadInitImageResponse](../../sdk/models/operations/uploadinitimageresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | diff --git a/docs/sdks/model/README.md b/docs/sdks/model/README.md index 4bf6a601..a75449e2 100755 --- a/docs/sdks/model/README.md +++ b/docs/sdks/model/README.md @@ -1,5 +1,5 @@ # Model -(*.model*) +(*model*) ### Available Operations @@ -31,7 +31,6 @@ import { CustomModelType, SdVersions, Strength } from "@leonardo-ai/sdk/dist/sdk name: "string", }); - if (res.statusCode == 200) { // handle response } @@ -40,16 +39,20 @@ import { CustomModelType, SdVersions, Strength } from "@leonardo-ai/sdk/dist/sdk ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `request` | [operations.CreateModelRequestBody](../../models/operations/createmodelrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | -| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `request` | [operations.CreateModelRequestBody](../../sdk/models/operations/createmodelrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response -**Promise<[operations.CreateModelResponse](../../models/operations/createmodelresponse.md)>** +**Promise<[operations.CreateModelResponse](../../sdk/models/operations/createmodelresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## deleteModelById @@ -69,7 +72,6 @@ const id: string = "string"; const res = await sdk.model.deleteModelById(id); - if (res.statusCode == 200) { // handle response } @@ -86,8 +88,12 @@ const id: string = "string"; ### Response -**Promise<[operations.DeleteModelByIdResponse](../../models/operations/deletemodelbyidresponse.md)>** +**Promise<[operations.DeleteModelByIdResponse](../../sdk/models/operations/deletemodelbyidresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## deleteModels3dId @@ -108,7 +114,6 @@ const requestBody: DeleteModels3dIdRequestBody = {}; const res = await sdk.model.deleteModels3dId(id, requestBody); - if (res.statusCode == 200) { // handle response } @@ -117,17 +122,21 @@ const requestBody: DeleteModels3dIdRequestBody = {}; ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `id` | *string* | :heavy_check_mark: | _"id" is required (enter it either in parameters or request body)_ | -| `requestBody` | [operations.DeleteModels3dIdRequestBody](../../models/operations/deletemodels3didrequestbody.md) | :heavy_minus_sign: | Query parameters can also be provided in the request body as a JSON object | -| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | _"id" is required (enter it either in parameters or request body)_ | +| `requestBody` | [operations.DeleteModels3dIdRequestBody](../../../sdk/models/operations/deletemodels3didrequestbody.md) | :heavy_minus_sign: | Query parameters can also be provided in the request body as a JSON object | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response -**Promise<[operations.DeleteModels3dIdResponse](../../models/operations/deletemodels3didresponse.md)>** +**Promise<[operations.DeleteModels3dIdResponse](../../sdk/models/operations/deletemodels3didresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## getModelById @@ -147,7 +156,6 @@ const id: string = "string"; const res = await sdk.model.getModelById(id); - if (res.statusCode == 200) { // handle response } @@ -164,8 +172,12 @@ const id: string = "string"; ### Response -**Promise<[operations.GetModelByIdResponse](../../models/operations/getmodelbyidresponse.md)>** +**Promise<[operations.GetModelByIdResponse](../../sdk/models/operations/getmodelbyidresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## getPlatformModels @@ -186,7 +198,6 @@ const offset: number = 472174; const res = await sdk.model.getPlatformModels(limit, offset); - if (res.statusCode == 200) { // handle response } @@ -204,8 +215,12 @@ const offset: number = 472174; ### Response -**Promise<[operations.GetPlatformModelsResponse](../../models/operations/getplatformmodelsresponse.md)>** +**Promise<[operations.GetPlatformModelsResponse](../../sdk/models/operations/getplatformmodelsresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## postModels3dUpload @@ -223,7 +238,6 @@ import { Leonardo } from "@leonardo-ai/sdk"; const res = await sdk.model.postModels3dUpload({}); - if (res.statusCode == 200) { // handle response } @@ -232,13 +246,17 @@ import { Leonardo } from "@leonardo-ai/sdk"; ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `request` | [operations.PostModels3dUploadRequestBody](../../models/operations/postmodels3duploadrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | -| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `request` | [operations.PostModels3dUploadRequestBody](../../sdk/models/operations/postmodels3duploadrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response -**Promise<[operations.PostModels3dUploadResponse](../../models/operations/postmodels3duploadresponse.md)>** +**Promise<[operations.PostModels3dUploadResponse](../../sdk/models/operations/postmodels3duploadresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | diff --git a/docs/sdks/user/README.md b/docs/sdks/user/README.md index 61a7bdd0..4b2bd959 100755 --- a/docs/sdks/user/README.md +++ b/docs/sdks/user/README.md @@ -1,5 +1,5 @@ # User -(*.user*) +(*user*) ### Available Operations @@ -21,7 +21,6 @@ import { Leonardo } from "@leonardo-ai/sdk"; const res = await sdk.user.getUserSelf(); - if (res.statusCode == 200) { // handle response } @@ -37,5 +36,9 @@ import { Leonardo } from "@leonardo-ai/sdk"; ### Response -**Promise<[operations.GetUserSelfResponse](../../models/operations/getuserselfresponse.md)>** +**Promise<[operations.GetUserSelfResponse](../../sdk/models/operations/getuserselfresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | diff --git a/docs/sdks/variation/README.md b/docs/sdks/variation/README.md index 9b17d681..7eef5189 100755 --- a/docs/sdks/variation/README.md +++ b/docs/sdks/variation/README.md @@ -1,5 +1,5 @@ # Variation -(*.variation*) +(*variation*) ### Available Operations @@ -26,7 +26,6 @@ import { Leonardo } from "@leonardo-ai/sdk"; id: "", }); - if (res.statusCode == 200) { // handle response } @@ -35,16 +34,20 @@ import { Leonardo } from "@leonardo-ai/sdk"; ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateVariationNoBGRequestBody](../../models/operations/createvariationnobgrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | -| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `request` | [operations.CreateVariationNoBGRequestBody](../../sdk/models/operations/createvariationnobgrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response -**Promise<[operations.CreateVariationNoBGResponse](../../models/operations/createvariationnobgresponse.md)>** +**Promise<[operations.CreateVariationNoBGResponse](../../sdk/models/operations/createvariationnobgresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## createVariationUpscale @@ -64,7 +67,6 @@ import { Leonardo } from "@leonardo-ai/sdk"; id: "", }); - if (res.statusCode == 200) { // handle response } @@ -73,16 +75,20 @@ import { Leonardo } from "@leonardo-ai/sdk"; ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateVariationUpscaleRequestBody](../../models/operations/createvariationupscalerequestbody.md) | :heavy_check_mark: | The request object to use for the request. | -| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `request` | [operations.CreateVariationUpscaleRequestBody](../../sdk/models/operations/createvariationupscalerequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response -**Promise<[operations.CreateVariationUpscaleResponse](../../models/operations/createvariationupscaleresponse.md)>** +**Promise<[operations.CreateVariationUpscaleResponse](../../sdk/models/operations/createvariationupscaleresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## getVariationById @@ -102,7 +108,6 @@ const id: string = "string"; const res = await sdk.variation.getVariationById(id); - if (res.statusCode == 200) { // handle response } @@ -119,8 +124,12 @@ const id: string = "string"; ### Response -**Promise<[operations.GetVariationByIdResponse](../../models/operations/getvariationbyidresponse.md)>** +**Promise<[operations.GetVariationByIdResponse](../../sdk/models/operations/getvariationbyidresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | ## postVariationsUnzoom @@ -138,7 +147,6 @@ import { Leonardo } from "@leonardo-ai/sdk"; const res = await sdk.variation.postVariationsUnzoom({}); - if (res.statusCode == 200) { // handle response } @@ -147,13 +155,17 @@ import { Leonardo } from "@leonardo-ai/sdk"; ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `request` | [operations.PostVariationsUnzoomRequestBody](../../models/operations/postvariationsunzoomrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | -| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.PostVariationsUnzoomRequestBody](../../sdk/models/operations/postvariationsunzoomrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. | ### Response -**Promise<[operations.PostVariationsUnzoomResponse](../../models/operations/postvariationsunzoomresponse.md)>** +**Promise<[operations.PostVariationsUnzoomResponse](../../sdk/models/operations/postvariationsunzoomresponse.md)>** +### Errors +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 400-600 | */* | diff --git a/files.gen b/files.gen index 252b8a72..36fb942b 100755 --- a/files.gen +++ b/files.gen @@ -65,133 +65,133 @@ src/sdk/models/errors/index.ts src/sdk/models/operations/index.ts src/sdk/models/shared/index.ts USAGE.md -docs/models/operations/createdatasetrequestbody.md -docs/models/operations/datasets.md -docs/models/operations/createdatasetresponsebody.md -docs/models/operations/createdatasetresponse.md -docs/models/operations/deletedatasetbyidrequest.md -docs/models/operations/deletedatasetbyiddatasets.md -docs/models/operations/deletedatasetbyidresponsebody.md -docs/models/operations/deletedatasetbyidresponse.md -docs/models/operations/getdatasetbyidrequest.md -docs/models/operations/datasetimages.md -docs/models/operations/getdatasetbyiddatasets.md -docs/models/operations/getdatasetbyidresponsebody.md -docs/models/operations/getdatasetbyidresponse.md -docs/models/operations/uploaddatasetimagerequestbody.md -docs/models/operations/uploaddatasetimagerequest.md -docs/models/operations/datasetuploadoutput.md -docs/models/operations/uploaddatasetimageresponsebody.md -docs/models/operations/uploaddatasetimageresponse.md -docs/models/operations/uploaddatasetimagefromgenrequestbody.md -docs/models/operations/uploaddatasetimagefromgenrequest.md -docs/models/operations/datasetgenuploadoutput.md -docs/models/operations/uploaddatasetimagefromgenresponsebody.md -docs/models/operations/uploaddatasetimagefromgenresponse.md -docs/models/operations/loras.md -docs/models/operations/getelementsresponsebody.md -docs/models/operations/getelementsresponse.md -docs/models/operations/creategenerationrequestbody.md -docs/models/operations/sdgenerationoutput.md -docs/models/operations/creategenerationresponsebody.md -docs/models/operations/creategenerationresponse.md -docs/models/operations/deletegenerationbyidrequest.md -docs/models/operations/generations.md -docs/models/operations/deletegenerationbyidresponsebody.md -docs/models/operations/deletegenerationbyidresponse.md -docs/models/operations/deletegenerationstextureidrequestbody.md -docs/models/operations/deletegenerationstextureidrequest.md -docs/models/operations/modelassettexturegenerations.md -docs/models/operations/deletegenerationstextureidresponsebody.md -docs/models/operations/deletegenerationstextureidresponse.md -docs/models/operations/getgenerationbyidrequest.md -docs/models/operations/getgenerationbyidgeneratedimagevariationgeneric.md -docs/models/operations/generatedimages.md -docs/models/operations/getgenerationbyidloras.md -docs/models/operations/generationelements.md -docs/models/operations/getgenerationbyidgenerations.md -docs/models/operations/getgenerationbyidresponsebody.md -docs/models/operations/getgenerationbyidresponse.md -docs/models/operations/getgenerationsbyuseridrequest.md -docs/models/operations/getgenerationsbyuseridgeneratedimagevariationgeneric.md -docs/models/operations/getgenerationsbyuseridgeneratedimages.md -docs/models/operations/elements.md -docs/models/operations/getgenerationsbyuseridgenerationelements.md -docs/models/operations/getgenerationsbyuseridgenerations.md -docs/models/operations/getgenerationsbyuseridresponsebody.md -docs/models/operations/getgenerationsbyuseridresponse.md -docs/models/operations/postgenerationstexturerequestbody.md -docs/models/operations/texturegenerationjoboutput.md -docs/models/operations/postgenerationstextureresponsebody.md -docs/models/operations/postgenerationstextureresponse.md -docs/models/operations/deleteinitimagebyidrequest.md -docs/models/operations/initimages.md -docs/models/operations/deleteinitimagebyidresponsebody.md -docs/models/operations/deleteinitimagebyidresponse.md -docs/models/operations/getinitimagebyidrequest.md -docs/models/operations/getinitimagebyidinitimages.md -docs/models/operations/getinitimagebyidresponsebody.md -docs/models/operations/getinitimagebyidresponse.md -docs/models/operations/uploadinitimagerequestbody.md -docs/models/operations/initimageuploadoutput.md -docs/models/operations/uploadinitimageresponsebody.md -docs/models/operations/uploadinitimageresponse.md -docs/models/operations/users.md -docs/models/operations/userdetails.md -docs/models/operations/getuserselfresponsebody.md -docs/models/operations/getuserselfresponse.md -docs/models/operations/createmodelrequestbody.md -docs/models/operations/sdtrainingoutput.md -docs/models/operations/createmodelresponsebody.md -docs/models/operations/createmodelresponse.md -docs/models/operations/deletemodelbyidrequest.md -docs/models/operations/custommodels.md -docs/models/operations/deletemodelbyidresponsebody.md -docs/models/operations/deletemodelbyidresponse.md -docs/models/operations/deletemodels3didrequestbody.md -docs/models/operations/deletemodels3didrequest.md -docs/models/operations/modelassets.md -docs/models/operations/deletemodels3didresponsebody.md -docs/models/operations/deletemodels3didresponse.md -docs/models/operations/getmodelbyidrequest.md -docs/models/operations/getmodelbyidcustommodels.md -docs/models/operations/getmodelbyidresponsebody.md -docs/models/operations/getmodelbyidresponse.md -docs/models/operations/getplatformmodelsrequest.md -docs/models/operations/getplatformmodelsgeneratedimages.md -docs/models/operations/getplatformmodelscustommodels.md -docs/models/operations/getplatformmodelsresponsebody.md -docs/models/operations/getplatformmodelsresponse.md -docs/models/operations/postmodels3duploadrequestbody.md -docs/models/operations/modelassetuploadoutput.md -docs/models/operations/postmodels3duploadresponsebody.md -docs/models/operations/postmodels3duploadresponse.md -docs/models/operations/createvariationnobgrequestbody.md -docs/models/operations/sdupscalejoboutput.md -docs/models/operations/createvariationnobgresponsebody.md -docs/models/operations/createvariationnobgresponse.md -docs/models/operations/createvariationupscalerequestbody.md -docs/models/operations/createvariationupscalesdupscalejoboutput.md -docs/models/operations/createvariationupscaleresponsebody.md -docs/models/operations/createvariationupscaleresponse.md -docs/models/operations/getvariationbyidrequest.md -docs/models/operations/generatedimagevariationgeneric.md -docs/models/operations/getvariationbyidresponsebody.md -docs/models/operations/getvariationbyidresponse.md -docs/models/operations/postvariationsunzoomrequestbody.md -docs/models/operations/sdunzoomoutput.md -docs/models/operations/postvariationsunzoomresponsebody.md -docs/models/operations/postvariationsunzoomresponse.md -docs/models/shared/sdversions.md -docs/models/shared/sdgenerationschedulers.md -docs/models/shared/sdgenerationstyle.md -docs/models/shared/elementinput.md -docs/models/shared/controlnettype.md -docs/models/shared/jobstatus.md -docs/models/shared/variationtype.md -docs/models/shared/strength.md -docs/models/shared/custommodeltype.md -docs/models/shared/security.md +docs/sdk/models/operations/createdatasetrequestbody.md +docs/sdk/models/operations/datasets.md +docs/sdk/models/operations/createdatasetresponsebody.md +docs/sdk/models/operations/createdatasetresponse.md +docs/sdk/models/operations/deletedatasetbyidrequest.md +docs/sdk/models/operations/deletedatasetbyiddatasets.md +docs/sdk/models/operations/deletedatasetbyidresponsebody.md +docs/sdk/models/operations/deletedatasetbyidresponse.md +docs/sdk/models/operations/getdatasetbyidrequest.md +docs/sdk/models/operations/datasetimages.md +docs/sdk/models/operations/getdatasetbyiddatasets.md +docs/sdk/models/operations/getdatasetbyidresponsebody.md +docs/sdk/models/operations/getdatasetbyidresponse.md +docs/sdk/models/operations/uploaddatasetimagerequestbody.md +docs/sdk/models/operations/uploaddatasetimagerequest.md +docs/sdk/models/operations/datasetuploadoutput.md +docs/sdk/models/operations/uploaddatasetimageresponsebody.md +docs/sdk/models/operations/uploaddatasetimageresponse.md +docs/sdk/models/operations/uploaddatasetimagefromgenrequestbody.md +docs/sdk/models/operations/uploaddatasetimagefromgenrequest.md +docs/sdk/models/operations/datasetgenuploadoutput.md +docs/sdk/models/operations/uploaddatasetimagefromgenresponsebody.md +docs/sdk/models/operations/uploaddatasetimagefromgenresponse.md +docs/sdk/models/operations/loras.md +docs/sdk/models/operations/getelementsresponsebody.md +docs/sdk/models/operations/getelementsresponse.md +docs/sdk/models/operations/creategenerationrequestbody.md +docs/sdk/models/operations/sdgenerationoutput.md +docs/sdk/models/operations/creategenerationresponsebody.md +docs/sdk/models/operations/creategenerationresponse.md +docs/sdk/models/operations/deletegenerationbyidrequest.md +docs/sdk/models/operations/generations.md +docs/sdk/models/operations/deletegenerationbyidresponsebody.md +docs/sdk/models/operations/deletegenerationbyidresponse.md +docs/sdk/models/operations/deletegenerationstextureidrequestbody.md +docs/sdk/models/operations/deletegenerationstextureidrequest.md +docs/sdk/models/operations/modelassettexturegenerations.md +docs/sdk/models/operations/deletegenerationstextureidresponsebody.md +docs/sdk/models/operations/deletegenerationstextureidresponse.md +docs/sdk/models/operations/getgenerationbyidrequest.md +docs/sdk/models/operations/getgenerationbyidgeneratedimagevariationgeneric.md +docs/sdk/models/operations/generatedimages.md +docs/sdk/models/operations/getgenerationbyidloras.md +docs/sdk/models/operations/generationelements.md +docs/sdk/models/operations/getgenerationbyidgenerations.md +docs/sdk/models/operations/getgenerationbyidresponsebody.md +docs/sdk/models/operations/getgenerationbyidresponse.md +docs/sdk/models/operations/getgenerationsbyuseridrequest.md +docs/sdk/models/operations/getgenerationsbyuseridgeneratedimagevariationgeneric.md +docs/sdk/models/operations/getgenerationsbyuseridgeneratedimages.md +docs/sdk/models/operations/elements.md +docs/sdk/models/operations/getgenerationsbyuseridgenerationelements.md +docs/sdk/models/operations/getgenerationsbyuseridgenerations.md +docs/sdk/models/operations/getgenerationsbyuseridresponsebody.md +docs/sdk/models/operations/getgenerationsbyuseridresponse.md +docs/sdk/models/operations/postgenerationstexturerequestbody.md +docs/sdk/models/operations/texturegenerationjoboutput.md +docs/sdk/models/operations/postgenerationstextureresponsebody.md +docs/sdk/models/operations/postgenerationstextureresponse.md +docs/sdk/models/operations/deleteinitimagebyidrequest.md +docs/sdk/models/operations/initimages.md +docs/sdk/models/operations/deleteinitimagebyidresponsebody.md +docs/sdk/models/operations/deleteinitimagebyidresponse.md +docs/sdk/models/operations/getinitimagebyidrequest.md +docs/sdk/models/operations/getinitimagebyidinitimages.md +docs/sdk/models/operations/getinitimagebyidresponsebody.md +docs/sdk/models/operations/getinitimagebyidresponse.md +docs/sdk/models/operations/uploadinitimagerequestbody.md +docs/sdk/models/operations/initimageuploadoutput.md +docs/sdk/models/operations/uploadinitimageresponsebody.md +docs/sdk/models/operations/uploadinitimageresponse.md +docs/sdk/models/operations/users.md +docs/sdk/models/operations/userdetails.md +docs/sdk/models/operations/getuserselfresponsebody.md +docs/sdk/models/operations/getuserselfresponse.md +docs/sdk/models/operations/createmodelrequestbody.md +docs/sdk/models/operations/sdtrainingoutput.md +docs/sdk/models/operations/createmodelresponsebody.md +docs/sdk/models/operations/createmodelresponse.md +docs/sdk/models/operations/deletemodelbyidrequest.md +docs/sdk/models/operations/custommodels.md +docs/sdk/models/operations/deletemodelbyidresponsebody.md +docs/sdk/models/operations/deletemodelbyidresponse.md +docs/sdk/models/operations/deletemodels3didrequestbody.md +docs/sdk/models/operations/deletemodels3didrequest.md +docs/sdk/models/operations/modelassets.md +docs/sdk/models/operations/deletemodels3didresponsebody.md +docs/sdk/models/operations/deletemodels3didresponse.md +docs/sdk/models/operations/getmodelbyidrequest.md +docs/sdk/models/operations/getmodelbyidcustommodels.md +docs/sdk/models/operations/getmodelbyidresponsebody.md +docs/sdk/models/operations/getmodelbyidresponse.md +docs/sdk/models/operations/getplatformmodelsrequest.md +docs/sdk/models/operations/getplatformmodelsgeneratedimages.md +docs/sdk/models/operations/getplatformmodelscustommodels.md +docs/sdk/models/operations/getplatformmodelsresponsebody.md +docs/sdk/models/operations/getplatformmodelsresponse.md +docs/sdk/models/operations/postmodels3duploadrequestbody.md +docs/sdk/models/operations/modelassetuploadoutput.md +docs/sdk/models/operations/postmodels3duploadresponsebody.md +docs/sdk/models/operations/postmodels3duploadresponse.md +docs/sdk/models/operations/createvariationnobgrequestbody.md +docs/sdk/models/operations/sdupscalejoboutput.md +docs/sdk/models/operations/createvariationnobgresponsebody.md +docs/sdk/models/operations/createvariationnobgresponse.md +docs/sdk/models/operations/createvariationupscalerequestbody.md +docs/sdk/models/operations/createvariationupscalesdupscalejoboutput.md +docs/sdk/models/operations/createvariationupscaleresponsebody.md +docs/sdk/models/operations/createvariationupscaleresponse.md +docs/sdk/models/operations/getvariationbyidrequest.md +docs/sdk/models/operations/generatedimagevariationgeneric.md +docs/sdk/models/operations/getvariationbyidresponsebody.md +docs/sdk/models/operations/getvariationbyidresponse.md +docs/sdk/models/operations/postvariationsunzoomrequestbody.md +docs/sdk/models/operations/sdunzoomoutput.md +docs/sdk/models/operations/postvariationsunzoomresponsebody.md +docs/sdk/models/operations/postvariationsunzoomresponse.md +docs/sdk/models/shared/sdversions.md +docs/sdk/models/shared/sdgenerationschedulers.md +docs/sdk/models/shared/sdgenerationstyle.md +docs/sdk/models/shared/elementinput.md +docs/sdk/models/shared/controlnettype.md +docs/sdk/models/shared/jobstatus.md +docs/sdk/models/shared/variationtype.md +docs/sdk/models/shared/strength.md +docs/sdk/models/shared/custommodeltype.md +docs/sdk/models/shared/security.md docs/sdks/leonardo/README.md docs/sdks/dataset/README.md docs/sdks/element/README.md diff --git a/gen.yaml b/gen.yaml index 3d8a1fe3..3682e017 100644 --- a/gen.yaml +++ b/gen.yaml @@ -2,8 +2,8 @@ configVersion: 1.0.0 management: docChecksum: 5c46d09a773b28588fedd4bb31a1647c docVersion: v1.0.0 - speakeasyVersion: 1.114.1 - generationVersion: 2.181.1 + speakeasyVersion: 1.116.0 + generationVersion: 2.185.0 generation: comments: {} devContainers: @@ -13,13 +13,13 @@ generation: repoURL: https://github.com/Leonardo-Interactive/leonardo-ts-sdk.git features: typescript: - core: 3.1.0 + core: 3.1.2 devContainers: 2.88.0 flattening: 2.81.1 globalSecurity: 2.82.0 globalServerURLs: 2.82.0 typescript: - version: 2.1.0 + version: 2.1.1 author: leonardoai clientServerStatusCodesAsErrors: false flattenGlobalSecurity: true @@ -31,8 +31,10 @@ typescript: operations: sdk/models/operations shared: sdk/models/shared webhooks: sdk/models/webhooks + inputModelSuffix: input installationURL: https://github.com/Leonardo-Interactive/leonardo-ts-sdk maxMethodParams: 5 + outputModelSuffix: output packageName: '@leonardo-ai/sdk' published: true repoSubDirectory: . diff --git a/jest.config.js b/jest.config.js index e3f8611e..e4519885 100755 --- a/jest.config.js +++ b/jest.config.js @@ -1,5 +1,8 @@ module.exports = { preset: "ts-jest", testEnvironment: "node", - testPathIgnorePatterns: ["/__tests__/helpers.ts", "/__tests__/common_helpers.ts"], + testPathIgnorePatterns: [ + "/__tests__/helpers.ts", + "/__tests__/common_helpers.ts", + ], }; diff --git a/package-lock.json b/package-lock.json index a16b6285..1ca9557e 100755 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@leonardo-ai/sdk", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@leonardo-ai/sdk", - "version": "2.1.0", + "version": "2.1.1", "dependencies": { "axios": "^1.1.3", "class-transformer": "^0.5.1", diff --git a/package.json b/package.json index fd80ca9d..ffa7e6d1 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@leonardo-ai/sdk", - "version": "2.1.0", + "version": "2.1.1", "author": "leonardoai", "scripts": { "prepare": "tsc --build", diff --git a/src/internal/utils/contenttype.ts b/src/internal/utils/contenttype.ts index 9aaafa94..ddf6c82b 100755 --- a/src/internal/utils/contenttype.ts +++ b/src/internal/utils/contenttype.ts @@ -4,7 +4,7 @@ export function matchContentType( contentType: string, - pattern: string + pattern: string, ): boolean { let res = false; contentType diff --git a/src/internal/utils/headers.ts b/src/internal/utils/headers.ts index d570fda6..489ba673 100755 --- a/src/internal/utils/headers.ts +++ b/src/internal/utils/headers.ts @@ -27,7 +27,7 @@ export function getHeadersFromRequest(headerParams: any): any { const requestBodyAnn: string = Reflect.getMetadata( requestMetadataKey, headerParams, - fname + fname, ); if (requestBodyAnn) return; @@ -35,7 +35,7 @@ export function getHeadersFromRequest(headerParams: any): any { const headerAnn: string = Reflect.getMetadata( headerMetadataKey, headerParams, - fname + fname, ); if (headerAnn == null) return; @@ -44,14 +44,14 @@ export function getHeadersFromRequest(headerParams: any): any { headerAnn, fname, "simple", - false + false, ); if (headerDecorator == null) return; const value: string = serializeHeader( headerParams[fname], - headerDecorator.Explode + headerDecorator.Explode, ); if (value != "") headers[headerDecorator.ParamName] = value; @@ -61,7 +61,7 @@ export function getHeadersFromRequest(headerParams: any): any { } export function getHeadersFromResponse( - headers: RawAxiosResponseHeaders | AxiosResponseHeaders + headers: RawAxiosResponseHeaders | AxiosResponseHeaders, ): Record { const reponseHeaders: Record = {}; @@ -110,7 +110,7 @@ function serializeHeader(header: any, explode: boolean): string { const headerAnn: string = Reflect.getMetadata( headerMetadataKey, header, - headerKey + headerKey, ); if (headerAnn == null) return; @@ -119,7 +119,7 @@ function serializeHeader(header: any, explode: boolean): string { headerAnn, headerKey, "simple", - explode + explode, ); if (headerDecorator == null) return; diff --git a/src/internal/utils/pathparams.ts b/src/internal/utils/pathparams.ts index cdc9d8c7..0b8137ac 100755 --- a/src/internal/utils/pathparams.ts +++ b/src/internal/utils/pathparams.ts @@ -17,7 +17,7 @@ export const ppMetadataKey = "pathParam"; export function getSimplePathParams( paramName: string, paramValue: any, - explode: boolean + explode: boolean, ): Map { const pathParams: Map = new Map(); const ppVals: string[] = []; @@ -34,7 +34,7 @@ export function getSimplePathParams( ) { Object.getOwnPropertyNames(paramValue).forEach((paramKey: string) => { const paramFieldValue = encodeURIComponent( - valToString(paramValue[paramKey]) + valToString(paramValue[paramKey]), ); if (explode) ppVals.push(`${paramKey}=${paramFieldValue}`); @@ -47,7 +47,7 @@ export function getSimplePathParams( const ppAnn: string = Reflect.getMetadata( ppMetadataKey, paramValue, - paramKey + paramKey, ); if (ppAnn == null) return; @@ -56,13 +56,13 @@ export function getSimplePathParams( ppAnn, paramKey, "simple", - explode + explode, ); if (ppDecorator == null) return; const paramFieldValue = encodeURIComponent( - valToString(paramValue[paramKey]) + valToString(paramValue[paramKey]), ); if (isEmpty(paramFieldValue)) return; diff --git a/src/internal/utils/queryparams.ts b/src/internal/utils/queryparams.ts index 0279e006..34a9f714 100755 --- a/src/internal/utils/queryparams.ts +++ b/src/internal/utils/queryparams.ts @@ -7,15 +7,16 @@ import { parseParamDecorator, populateFromGlobals, shouldQueryParamSerialize, - valToString + valToString, } from "./utils"; -import {requestMetadataKey} from "./requestbody"; +import { requestMetadataKey } from "./requestbody"; export const qpMetadataKey = "queryParam"; const queryStringPrefix = "?"; -const filterAndJoin = (strings: string[]):string => strings.filter(s => !!s).join("&") +const filterAndJoin = (strings: string[]): string => + strings.filter((s) => !!s).join("&"); export function serializeQueryParams(queryParams: any, globals?: any): string { const queryStringParts: string[] = []; @@ -30,7 +31,7 @@ export function serializeQueryParams(queryParams: any, globals?: any): string { const requestBodyAnn: string = Reflect.getMetadata( requestMetadataKey, queryParams, - fname + fname, ); if (requestBodyAnn) return; @@ -38,16 +39,16 @@ export function serializeQueryParams(queryParams: any, globals?: any): string { const qpAnn: string = Reflect.getMetadata( qpMetadataKey, queryParams, - fname + fname, ); - if (!qpAnn) return {serialize: () => ""}; + if (!qpAnn) return { serialize: () => "" }; const qpDecorator: ParamDecorator = parseParamDecorator( qpAnn, fname, "form", - true + true, ); if (!qpDecorator) return; @@ -56,38 +57,38 @@ export function serializeQueryParams(queryParams: any, globals?: any): string { value = populateFromGlobals(value, fname, "queryParam", globals); if (qpDecorator.Serialization === "json") - queryStringParts.push(jsonSerializer({[qpDecorator.ParamName]: value})); + queryStringParts.push(jsonSerializer({ [qpDecorator.ParamName]: value })); else { switch (qpDecorator.Style) { case "deepObject": queryStringParts.push( - deepObjectSerializer({[qpDecorator.ParamName]: value}) + deepObjectSerializer({ [qpDecorator.ParamName]: value }), ); return; case "form": if (!qpDecorator.Explode) queryStringParts.push( - noExplodeSerializer({[qpDecorator.ParamName]: value}) + noExplodeSerializer({ [qpDecorator.ParamName]: value }), ); else queryStringParts.push( - formSerializerExplode({[qpDecorator.ParamName]: value}) + formSerializerExplode({ [qpDecorator.ParamName]: value }), ); return; case "pipeDelimited": if (!qpDecorator.Explode) { queryStringParts.push( - noExplodeSerializer({[qpDecorator.ParamName]: value}, "|") + noExplodeSerializer({ [qpDecorator.ParamName]: value }, "|"), ); } else { queryStringParts.push( - formSerializerExplode({[qpDecorator.ParamName]: value}) + formSerializerExplode({ [qpDecorator.ParamName]: value }), ); } return; default: queryStringParts.push( - formSerializerExplode({[qpDecorator.ParamName]: value}) + formSerializerExplode({ [qpDecorator.ParamName]: value }), ); } } @@ -106,7 +107,10 @@ function jsonSerializer(params: Record): string { } // TODO: Add support for disabling percent encoding for reserved characters -function noExplodeSerializer(params: Record, delimiter = ","): string { +function noExplodeSerializer( + params: Record, + delimiter = ",", +): string { const query: string[] = []; Object.entries(Object.assign({}, params)).forEach(([key, value]) => { @@ -123,19 +127,19 @@ function noExplodeSerializer(params: Record, delimiter = ","): stri const qpAnn: string = Reflect.getMetadata( qpMetadataKey, value, - paramKey + paramKey, ); const qpDecorator: ParamDecorator = parseParamDecorator( qpAnn, paramKey, "form", - true + true, ); if (qpDecorator == null) return; - const key = qpDecorator.ParamName || paramKey + const key = qpDecorator.ParamName || paramKey; return `${key}${delimiter}${valToString(value[paramKey])}`; }) .join(delimiter); @@ -155,9 +159,9 @@ function formSerializerExplode(params: Record): string { query.push(`${key}=${encodeURIComponent(value)}`); else if (Array.isArray(value)) { query.push( - value + value .map((aValue) => `${key}=${encodeURIComponent(valToString(aValue))}`) - .join("&") + .join("&"), ); } else query.push( @@ -166,14 +170,14 @@ function formSerializerExplode(params: Record): string { const qpAnn: string = Reflect.getMetadata( qpMetadataKey, value, - paramKey + paramKey, ); const qpDecorator: ParamDecorator = parseParamDecorator( qpAnn, paramKey, "form", - true + true, ); if (qpDecorator == null) return; @@ -181,7 +185,7 @@ function formSerializerExplode(params: Record): string { const key = qpDecorator.ParamName || paramKey; return `${key}=${encodeURIComponent(valToString(value[paramKey]))}`; }) - .join("&") + .join("&"), ); }); return filterAndJoin(query); @@ -200,9 +204,9 @@ function deepObjectSerializer(params: Record): string { value .map( ([objKey, objValue]) => - `${key}[${objKey}]=${encodeURIComponent(valToString(objValue))}` + `${key}[${objKey}]=${encodeURIComponent(valToString(objValue))}`, ) - .join("&") + .join("&"), ); } else query.push( @@ -211,14 +215,14 @@ function deepObjectSerializer(params: Record): string { const qpAnn: string = Reflect.getMetadata( qpMetadataKey, value, - paramKey + paramKey, ); const qpDecorator: ParamDecorator = parseParamDecorator( qpAnn, paramKey, "form", - true + true, ); if (qpDecorator == null) return; @@ -229,15 +233,15 @@ function deepObjectSerializer(params: Record): string { .map( (arrValue: any) => `${key}[${paramKey}]=${encodeURIComponent( - valToString(arrValue) - )}` + valToString(arrValue), + )}`, ) .join("&"); return `${key}[${paramKey}]=${encodeURIComponent( - valToString(value[paramKey]) + valToString(value[paramKey]), )}`; }) - .join("&") + .join("&"), ); }); return filterAndJoin(query); diff --git a/src/internal/utils/retries.ts b/src/internal/utils/retries.ts index 8fea21de..6b03d6f3 100755 --- a/src/internal/utils/retries.ts +++ b/src/internal/utils/retries.ts @@ -14,7 +14,7 @@ export class BackoffStrategy { initialInterval: number, maxInterval: number, exponent: number, - maxElapsedTime: number + maxElapsedTime: number, ) { this.initialInterval = initialInterval; this.maxInterval = maxInterval; @@ -31,7 +31,7 @@ export class RetryConfig { constructor( strategy: "backoff" | "none", backoff?: BackoffStrategy, - retryConnectionErrors = true + retryConnectionErrors = true, ) { this.strategy = strategy; this.backoff = backoff; @@ -73,7 +73,7 @@ class TemporaryError extends Error { export async function Retry( fn: () => Promise>, - retries: Retries + retries: Retries, ): Promise> { switch (retries.config.strategy) { case "backoff": @@ -107,7 +107,7 @@ export async function Retry( retries.config.backoff?.initialInterval ?? 500, retries.config.backoff?.maxInterval ?? 60000, retries.config.backoff?.exponent ?? 1.5, - retries.config.backoff?.maxElapsedTime ?? 3600000 + retries.config.backoff?.maxElapsedTime ?? 3600000, ); default: return await fn(); @@ -116,7 +116,7 @@ export async function Retry( function isRetryableResponse( res: AxiosResponse, - statusCodes: string[] + statusCodes: string[], ): boolean { for (const code of statusCodes) { if (code.toUpperCase().includes("X")) { @@ -143,12 +143,13 @@ async function retryBackoff( initialInterval: number, maxInterval: number, exponent: number, - maxElapsedTime: number + maxElapsedTime: number, ): Promise> { const start = Date.now(); let x = 0; - while (true) { /* eslint-disable-line no-constant-condition */ + // eslint-disable-next-line no-constant-condition + while (true) { try { return await fn(); } catch (err) { @@ -167,7 +168,7 @@ async function retryBackoff( const d = Math.min( initialInterval * Math.pow(x, exponent) + Math.random() * 1000, - maxInterval + maxInterval, ); await delay(d); diff --git a/src/internal/utils/security.ts b/src/internal/utils/security.ts index 5071b33a..d9c693d4 100755 --- a/src/internal/utils/security.ts +++ b/src/internal/utils/security.ts @@ -5,13 +5,11 @@ const securityMetadataKey = "security"; export type SecurityProperties = { - params: Record, - headers: Record, -} + params: Record; + headers: Record; +}; -export function parseSecurityProperties( - security: any -): SecurityProperties { +export function parseSecurityProperties(security: any): SecurityProperties { return parseSecurityClass(security); } @@ -48,23 +46,21 @@ function parseSecurityDecorator(securityAnn: string): SecurityDecorator { securityType, option, scheme, - securitySubType + securitySubType, ); } -function parseSecurityClass( - security: any -): SecurityProperties { +function parseSecurityClass(security: any): SecurityProperties { const fieldNames: string[] = Object.getOwnPropertyNames(security); const properties: SecurityProperties = { params: {}, headers: {}, - } + }; fieldNames.forEach((fname) => { const securityAnn: string = Reflect.getMetadata( securityMetadataKey, security, - fname + fname, ); if (securityAnn == null) return; const securityDecorator: SecurityDecorator = @@ -89,27 +85,31 @@ function parseSecurityClass( function parseSecurityOption( properties: SecurityProperties, - optionType: any + optionType: any, ): void { const fieldNames: string[] = Object.getOwnPropertyNames(optionType); fieldNames.forEach((fname) => { const securityAnn: string = Reflect.getMetadata( securityMetadataKey, optionType, - fname + fname, ); if (securityAnn == null) return; const securityDecorator: SecurityDecorator = parseSecurityDecorator(securityAnn); if (securityDecorator == null || !securityDecorator.Scheme) return; - return parseSecurityScheme(properties, securityDecorator, optionType[fname]); + return parseSecurityScheme( + properties, + securityDecorator, + optionType[fname], + ); }); } function parseSecurityScheme( properties: SecurityProperties, schemeDecorator: SecurityDecorator, - scheme: any + scheme: any, ): void { if (scheme === Object(scheme)) { if ( @@ -124,7 +124,7 @@ function parseSecurityScheme( const securityAnn: string = Reflect.getMetadata( securityMetadataKey, scheme, - fname + fname, ); if (securityAnn == null) return; const securityDecorator: SecurityDecorator = @@ -135,7 +135,7 @@ function parseSecurityScheme( properties, schemeDecorator, securityDecorator, - scheme[fname] + scheme[fname], ); }); } else { @@ -143,7 +143,7 @@ function parseSecurityScheme( properties, schemeDecorator, schemeDecorator, - scheme + scheme, ); } } @@ -152,7 +152,7 @@ function parseSecuritySchemeValue( properties: SecurityProperties, schemeDecorator: SecurityDecorator, securityDecorator: SecurityDecorator, - value: any + value: any, ): void { switch (schemeDecorator.Type) { case "apiKey": @@ -166,9 +166,7 @@ function parseSecuritySchemeValue( case "cookie": { const securityDecoratorName: string = securityDecorator.Name; const val: string = value; - properties.headers[ - "Cookie" - ] = `${securityDecoratorName}=${val}`; + properties.headers["Cookie"] = `${securityDecoratorName}=${val}`; break; } default: @@ -179,14 +177,22 @@ function parseSecuritySchemeValue( properties.headers[securityDecorator.Name] = value; break; case "oauth2": - properties.headers[securityDecorator.Name] = value.toLowerCase().startsWith("bearer ") ? value : `Bearer ${value}`; + properties.headers[securityDecorator.Name] = value + .toLowerCase() + .startsWith("bearer ") + ? value + : `Bearer ${value}`; break; case "http": switch (schemeDecorator.SubType) { case "basic": break; case "bearer": - properties.headers[securityDecorator.Name] = value.toLowerCase().startsWith("bearer ") ? value : `Bearer ${value}`; + properties.headers[securityDecorator.Name] = value + .toLowerCase() + .startsWith("bearer ") + ? value + : `Bearer ${value}`; break; default: throw new Error("not supported"); @@ -199,7 +205,7 @@ function parseSecuritySchemeValue( function parseBasicAuthScheme( properties: SecurityProperties, - scheme: any + scheme: any, ): void { let username, password = ""; @@ -209,7 +215,7 @@ function parseBasicAuthScheme( const securityAnn: string = Reflect.getMetadata( securityMetadataKey, scheme, - fname + fname, ); if (securityAnn == null) return; const securityDecorator: SecurityDecorator = @@ -226,7 +232,9 @@ function parseBasicAuthScheme( } }); - properties.headers["Authorization"] = `Basic ${Buffer.from(`${username}:${password}`).toString('base64')}`; + properties.headers["Authorization"] = `Basic ${Buffer.from( + `${username}:${password}`, + ).toString("base64")}`; } class SecurityDecorator { @@ -240,7 +248,7 @@ class SecurityDecorator { Type: string, Option: boolean, Scheme: boolean, - SubType: string + SubType: string, ) { this.Name = Name; this.Type = Type; diff --git a/src/sdk/dataset.ts b/src/sdk/dataset.ts index f5d90a45..6805165e 100755 --- a/src/sdk/dataset.ts +++ b/src/sdk/dataset.ts @@ -34,7 +34,7 @@ export class Dataset { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = baseURL.replace(/\/$/, "") + "/datasets"; + const operationUrl: string = baseURL.replace(/\/$/, "") + "/datasets"; let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; @@ -66,7 +66,7 @@ export class Dataset { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", @@ -124,7 +124,7 @@ export class Dataset { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/datasets/{id}", req); + const operationUrl: string = utils.generateURL(baseURL, "/datasets/{id}", req); const client: AxiosInstance = this.sdkConfiguration.defaultClient; let globalSecurity = this.sdkConfiguration.security; if (typeof globalSecurity === "function") { @@ -141,7 +141,7 @@ export class Dataset { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer", @@ -198,7 +198,7 @@ export class Dataset { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/datasets/{id}", req); + const operationUrl: string = utils.generateURL(baseURL, "/datasets/{id}", req); const client: AxiosInstance = this.sdkConfiguration.defaultClient; let globalSecurity = this.sdkConfiguration.security; if (typeof globalSecurity === "function") { @@ -215,7 +215,7 @@ export class Dataset { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "get", headers: headers, responseType: "arraybuffer", @@ -274,7 +274,11 @@ export class Dataset { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/datasets/{datasetId}/upload", req); + const operationUrl: string = utils.generateURL( + baseURL, + "/datasets/{datasetId}/upload", + req + ); let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; @@ -306,7 +310,7 @@ export class Dataset { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", @@ -367,7 +371,11 @@ export class Dataset { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/datasets/{datasetId}/upload/gen", req); + const operationUrl: string = utils.generateURL( + baseURL, + "/datasets/{datasetId}/upload/gen", + req + ); let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; @@ -399,7 +407,7 @@ export class Dataset { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", diff --git a/src/sdk/element.ts b/src/sdk/element.ts index 648e865d..cb22a6c8 100755 --- a/src/sdk/element.ts +++ b/src/sdk/element.ts @@ -27,7 +27,7 @@ export class Element { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = baseURL.replace(/\/$/, "") + "/elements"; + const operationUrl: string = baseURL.replace(/\/$/, "") + "/elements"; const client: AxiosInstance = this.sdkConfiguration.defaultClient; let globalSecurity = this.sdkConfiguration.security; if (typeof globalSecurity === "function") { @@ -44,7 +44,7 @@ export class Element { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "get", headers: headers, responseType: "arraybuffer", diff --git a/src/sdk/generation.ts b/src/sdk/generation.ts index 43252181..38bacc76 100755 --- a/src/sdk/generation.ts +++ b/src/sdk/generation.ts @@ -34,7 +34,7 @@ export class Generation { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = baseURL.replace(/\/$/, "") + "/generations"; + const operationUrl: string = baseURL.replace(/\/$/, "") + "/generations"; let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; @@ -66,7 +66,7 @@ export class Generation { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", @@ -124,7 +124,7 @@ export class Generation { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/generations/{id}", req); + const operationUrl: string = utils.generateURL(baseURL, "/generations/{id}", req); const client: AxiosInstance = this.sdkConfiguration.defaultClient; let globalSecurity = this.sdkConfiguration.security; if (typeof globalSecurity === "function") { @@ -141,7 +141,7 @@ export class Generation { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer", @@ -201,7 +201,7 @@ export class Generation { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/generations-texture/{id}", req); + const operationUrl: string = utils.generateURL(baseURL, "/generations-texture/{id}", req); let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; @@ -232,7 +232,7 @@ export class Generation { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer", @@ -291,7 +291,7 @@ export class Generation { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/generations/{id}", req); + const operationUrl: string = utils.generateURL(baseURL, "/generations/{id}", req); const client: AxiosInstance = this.sdkConfiguration.defaultClient; let globalSecurity = this.sdkConfiguration.security; if (typeof globalSecurity === "function") { @@ -308,7 +308,7 @@ export class Generation { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "get", headers: headers, responseType: "arraybuffer", @@ -369,7 +369,7 @@ export class Generation { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/generations/user/{userId}", req); + const operationUrl: string = utils.generateURL(baseURL, "/generations/user/{userId}", req); const client: AxiosInstance = this.sdkConfiguration.defaultClient; let globalSecurity = this.sdkConfiguration.security; if (typeof globalSecurity === "function") { @@ -387,7 +387,7 @@ export class Generation { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url + queryParams, + url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer", @@ -446,7 +446,7 @@ export class Generation { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = baseURL.replace(/\/$/, "") + "/generations-texture"; + const operationUrl: string = baseURL.replace(/\/$/, "") + "/generations-texture"; let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; @@ -477,7 +477,7 @@ export class Generation { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", diff --git a/src/sdk/initimage.ts b/src/sdk/initimage.ts index 4d2045db..bd0964e7 100755 --- a/src/sdk/initimage.ts +++ b/src/sdk/initimage.ts @@ -33,7 +33,7 @@ export class InitImage { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/init-image/{id}", req); + const operationUrl: string = utils.generateURL(baseURL, "/init-image/{id}", req); const client: AxiosInstance = this.sdkConfiguration.defaultClient; let globalSecurity = this.sdkConfiguration.security; if (typeof globalSecurity === "function") { @@ -50,7 +50,7 @@ export class InitImage { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer", @@ -108,7 +108,7 @@ export class InitImage { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/init-image/{id}", req); + const operationUrl: string = utils.generateURL(baseURL, "/init-image/{id}", req); const client: AxiosInstance = this.sdkConfiguration.defaultClient; let globalSecurity = this.sdkConfiguration.security; if (typeof globalSecurity === "function") { @@ -125,7 +125,7 @@ export class InitImage { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "get", headers: headers, responseType: "arraybuffer", @@ -183,7 +183,7 @@ export class InitImage { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = baseURL.replace(/\/$/, "") + "/init-image"; + const operationUrl: string = baseURL.replace(/\/$/, "") + "/init-image"; let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; @@ -215,7 +215,7 @@ export class InitImage { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", diff --git a/src/sdk/model.ts b/src/sdk/model.ts index f012acea..d5882988 100755 --- a/src/sdk/model.ts +++ b/src/sdk/model.ts @@ -34,7 +34,7 @@ export class Model { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = baseURL.replace(/\/$/, "") + "/models"; + const operationUrl: string = baseURL.replace(/\/$/, "") + "/models"; let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; @@ -66,7 +66,7 @@ export class Model { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", @@ -124,7 +124,7 @@ export class Model { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/models/{id}", req); + const operationUrl: string = utils.generateURL(baseURL, "/models/{id}", req); const client: AxiosInstance = this.sdkConfiguration.defaultClient; let globalSecurity = this.sdkConfiguration.security; if (typeof globalSecurity === "function") { @@ -141,7 +141,7 @@ export class Model { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer", @@ -200,7 +200,7 @@ export class Model { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/models-3d/{id}", req); + const operationUrl: string = utils.generateURL(baseURL, "/models-3d/{id}", req); let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; @@ -231,7 +231,7 @@ export class Model { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer", @@ -289,7 +289,7 @@ export class Model { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/models/{id}", req); + const operationUrl: string = utils.generateURL(baseURL, "/models/{id}", req); const client: AxiosInstance = this.sdkConfiguration.defaultClient; let globalSecurity = this.sdkConfiguration.security; if (typeof globalSecurity === "function") { @@ -306,7 +306,7 @@ export class Model { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "get", headers: headers, responseType: "arraybuffer", @@ -365,7 +365,7 @@ export class Model { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = baseURL.replace(/\/$/, "") + "/platformModels"; + const operationUrl: string = baseURL.replace(/\/$/, "") + "/platformModels"; const client: AxiosInstance = this.sdkConfiguration.defaultClient; let globalSecurity = this.sdkConfiguration.security; if (typeof globalSecurity === "function") { @@ -383,7 +383,7 @@ export class Model { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url + queryParams, + url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer", @@ -441,7 +441,7 @@ export class Model { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = baseURL.replace(/\/$/, "") + "/models-3d/upload"; + const operationUrl: string = baseURL.replace(/\/$/, "") + "/models-3d/upload"; let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; @@ -472,7 +472,7 @@ export class Model { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", diff --git a/src/sdk/models/errors/sdkerror.ts b/src/sdk/models/errors/sdkerror.ts index 0d698728..f12b6e29 100755 --- a/src/sdk/models/errors/sdkerror.ts +++ b/src/sdk/models/errors/sdkerror.ts @@ -13,7 +13,7 @@ export class SDKError extends Error { message: string, statusCode: number, body: string, - rawResponse: AxiosResponse + rawResponse: AxiosResponse, ) { let bodyString = ""; if (body?.length > 0) { diff --git a/src/sdk/sdk.ts b/src/sdk/sdk.ts index a2df244d..a784a5b0 100755 --- a/src/sdk/sdk.ts +++ b/src/sdk/sdk.ts @@ -57,9 +57,9 @@ export class SDKConfiguration { serverDefaults: any; language = "typescript"; openapiDocVersion = "v1.0.0"; - sdkVersion = "2.1.0"; - genVersion = "2.181.1"; - userAgent = "speakeasy-sdk/typescript 2.1.0 2.181.1 v1.0.0 @leonardo-ai/sdk"; + sdkVersion = "2.1.1"; + genVersion = "2.185.0"; + userAgent = "speakeasy-sdk/typescript 2.1.1 2.185.0 v1.0.0 @leonardo-ai/sdk"; retryConfig?: utils.RetryConfig; public constructor(init?: Partial) { Object.assign(this, init); @@ -88,7 +88,7 @@ export class Leonardo { serverURL = ServerList[serverIdx]; } - const defaultClient = props?.defaultClient ?? axios.create({ baseURL: serverURL }); + const defaultClient = props?.defaultClient ?? axios.create(); this.sdkConfiguration = new SDKConfiguration({ defaultClient: defaultClient, security: new shared.Security({ bearerAuth: props?.bearerAuth }), diff --git a/src/sdk/types/rfcdate.ts b/src/sdk/types/rfcdate.ts index 903ac7da..f423fd4a 100755 --- a/src/sdk/types/rfcdate.ts +++ b/src/sdk/types/rfcdate.ts @@ -5,7 +5,7 @@ export class RFCDate { private date: Date; - constructor(date: Date | {date:string} | string | undefined) { + constructor(date: Date | { date: string } | string | undefined) { if (!date) { this.date = new Date(); return; @@ -16,11 +16,11 @@ export class RFCDate { return; } if (date instanceof Date) { - this.date = date as Date + this.date = date as Date; return; } - const anyDate = (date as any); + const anyDate = date as any; if (date && !!anyDate.date) { this.date = new Date(anyDate.date); } diff --git a/src/sdk/user.ts b/src/sdk/user.ts index aab9b323..e57a32e5 100755 --- a/src/sdk/user.ts +++ b/src/sdk/user.ts @@ -27,7 +27,7 @@ export class User { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = baseURL.replace(/\/$/, "") + "/me"; + const operationUrl: string = baseURL.replace(/\/$/, "") + "/me"; const client: AxiosInstance = this.sdkConfiguration.defaultClient; let globalSecurity = this.sdkConfiguration.security; if (typeof globalSecurity === "function") { @@ -44,7 +44,7 @@ export class User { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "get", headers: headers, responseType: "arraybuffer", diff --git a/src/sdk/variation.ts b/src/sdk/variation.ts index afa5b990..17e9c40d 100755 --- a/src/sdk/variation.ts +++ b/src/sdk/variation.ts @@ -34,7 +34,7 @@ export class Variation { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = baseURL.replace(/\/$/, "") + "/variations/nobg"; + const operationUrl: string = baseURL.replace(/\/$/, "") + "/variations/nobg"; let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; @@ -66,7 +66,7 @@ export class Variation { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", @@ -126,7 +126,7 @@ export class Variation { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = baseURL.replace(/\/$/, "") + "/variations/upscale"; + const operationUrl: string = baseURL.replace(/\/$/, "") + "/variations/upscale"; let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; @@ -157,7 +157,7 @@ export class Variation { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", @@ -216,7 +216,7 @@ export class Variation { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = utils.generateURL(baseURL, "/variations/{id}", req); + const operationUrl: string = utils.generateURL(baseURL, "/variations/{id}", req); const client: AxiosInstance = this.sdkConfiguration.defaultClient; let globalSecurity = this.sdkConfiguration.security; if (typeof globalSecurity === "function") { @@ -233,7 +233,7 @@ export class Variation { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "get", headers: headers, responseType: "arraybuffer", @@ -291,7 +291,7 @@ export class Variation { this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults ); - const url: string = baseURL.replace(/\/$/, "") + "/variations/unzoom"; + const operationUrl: string = baseURL.replace(/\/$/, "") + "/variations/unzoom"; let [reqBodyHeaders, reqBody]: [object, any] = [{}, null]; @@ -322,7 +322,7 @@ export class Variation { const httpRes: AxiosResponse = await client.request({ validateStatus: () => true, - url: url, + url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer",