Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc v1.0.0, Speakeasy CLI 1.114.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 7, 2023
1 parent dad5329 commit 55d080b
Show file tree
Hide file tree
Showing 88 changed files with 976 additions and 987 deletions.
50 changes: 42 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ import { Leonardo } from "@leonardo-ai/sdk";
* [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)

* [getUserSelf](docs/sdks/user/README.md#getuserself) - Get user information

### [.model](docs/sdks/model/README.md)

* [createModel](docs/sdks/model/README.md#createmodel) - Train a Custom Model
Expand All @@ -90,10 +94,6 @@ 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

### [.user](docs/sdks/user/README.md)

* [getUserSelf](docs/sdks/user/README.md#getuserself) - Get user information

### [.variation](docs/sdks/variation/README.md)

* [createVariationNoBG](docs/sdks/variation/README.md#createvariationnobg) - Create no background
Expand Down Expand Up @@ -174,14 +174,13 @@ You can override the default server globally by passing a server index to the `s

For example:


```typescript
import { Leonardo } from "@leonardo-ai/sdk";
(async () => {
const sdk = new Leonardo({
bearerAuth: "",
serverIdx: 0,
bearerAuth: "",
});
const res = await sdk.dataset.createDataset({
Expand All @@ -200,14 +199,13 @@ import { Leonardo } from "@leonardo-ai/sdk";

The default server can also be overridden globally by passing a URL to the `serverURL: str` optional parameter when initializing the SDK client instance. For example:


```typescript
import { Leonardo } from "@leonardo-ai/sdk";
(async () => {
const sdk = new Leonardo({
bearerAuth: "",
serverURL: "https://cloud.leonardo.ai/api/rest/v1",
bearerAuth: "",
});
const res = await sdk.dataset.createDataset({
Expand All @@ -222,6 +220,42 @@ import { Leonardo } from "@leonardo-ai/sdk";
```
<!-- End Server Selection -->



<!-- Start Authentication -->

# Authentication

## Per-Client Security Schemes

Your SDK supports the following security scheme globally:

| Name | Type | Scheme |
| ------------ | ------------ | ------------ |
| `bearerAuth` | http | HTTP Bearer |

To authenticate with the API the `bearerAuth` parameter must be set when initializing the SDK client instance. For example:

```typescript
import { Leonardo } from "@leonardo-ai/sdk";
(async () => {
const sdk = new Leonardo({
bearerAuth: "",
});
const res = await sdk.dataset.createDataset({
name: "string",
});
if (res.statusCode == 200) {
// handle response
}
})();
```
<!-- End Authentication -->

<!-- Placeholder for Future Speakeasy SDK Sections -->


Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1379,4 +1379,14 @@ Based on:
### Generated
- [typescript v2.0.0] .
### Releases
- [NPM v2.0.0] https://www.npmjs.com/package/@leonardo-ai/sdk/v/2.0.0 - .
- [NPM v2.0.0] https://www.npmjs.com/package/@leonardo-ai/sdk/v/2.0.0 - .

## 2023-11-07 11:01:50
### Changes
Based on:
- OpenAPI Doc v1.0.0 https://api-docs-nine-delta.vercel.app/cloud/openapi.json
- Speakeasy CLI 1.114.1 (2.181.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v2.1.0] .
### Releases
- [NPM v2.1.0] https://www.npmjs.com/package/@leonardo-ai/sdk/v/2.1.0 - .
12 changes: 6 additions & 6 deletions docs/models/operations/createdatasetresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## 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` | [CreateDatasetResponseBody](../../models/operations/createdatasetresponsebody.md) | :heavy_minus_sign: | Responses for POST /datasets |
| 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 |
6 changes: 3 additions & 3 deletions docs/models/operations/createdatasetresponsebody.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Responses for POST /datasets

## Fields

| Field | Type | Required | Description |
| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- |
| `insertDatasetsOne` | [Datasets](../../models/operations/datasets.md) | :heavy_minus_sign: | columns and relationships of "datasets" |
| Field | Type | Required | Description |
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
| `insertDatasetsOne` | [operations.Datasets](../../models/operations/datasets.md) | :heavy_minus_sign: | columns and relationships of "datasets" |
12 changes: 6 additions & 6 deletions docs/models/operations/creategenerationresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## 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` | [CreateGenerationResponseBody](../../models/operations/creategenerationresponsebody.md) | :heavy_minus_sign: | Responses for POST /generations |
| 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 |
6 changes: 3 additions & 3 deletions docs/models/operations/creategenerationresponsebody.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Responses for POST /generations

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
| `sdGenerationJob` | [SDGenerationOutput](../../models/operations/sdgenerationoutput.md) | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
| `sdGenerationJob` | [operations.SDGenerationOutput](../../models/operations/sdgenerationoutput.md) | :heavy_minus_sign: | N/A |
12 changes: 6 additions & 6 deletions docs/models/operations/createmodelresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## 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` | [CreateModelResponseBody](../../models/operations/createmodelresponsebody.md) | :heavy_minus_sign: | Responses for POST /models |
| 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 |
Loading

0 comments on commit 55d080b

Please sign in to comment.