Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.400.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Sep 20, 2024
1 parent bb0421f commit 7aeac18
Show file tree
Hide file tree
Showing 218 changed files with 13,449 additions and 12,717 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/__tests__
/funcs
/core.*
/esm
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/cjs
/.tshy
/.tshy-*
/__tests__
730 changes: 433 additions & 297 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
speakeasyVersion: 1.390.1
speakeasyVersion: 1.400.1
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:68e860e0700bdd24e58887950df28e1cd3e479f87591681c86693ca856b68d91
sourceBlobDigest: sha256:7795ce93c2cd2bed48f77a05eead55d73ce1d93227c230ae806913736ad38d19
sourceRevisionDigest: sha256:10952aeb2e058c7510384583df32fa9c234f4ed3c747b21dccc7739bf0611c54
sourceBlobDigest: sha256:e7afecf93b03aba9f1c49b6db4b19ed1ae9f965bf4309cc2e5066f11d783eb16
tags:
- latest
- main
targets:
leonardo-ts-sdk:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:68e860e0700bdd24e58887950df28e1cd3e479f87591681c86693ca856b68d91
sourceBlobDigest: sha256:7795ce93c2cd2bed48f77a05eead55d73ce1d93227c230ae806913736ad38d19
outLocation: ./
sourceRevisionDigest: sha256:10952aeb2e058c7510384583df32fa9c234f4ed3c747b21dccc7739bf0611c54
sourceBlobDigest: sha256:e7afecf93b03aba9f1c49b6db4b19ed1ae9f965bf4309cc2e5066f11d783eb16
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
186 changes: 96 additions & 90 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ To get access to the API and fetch an API key, please sign up for [access](https
import { Leonardo } from "@leonardo-ai/sdk";

const leonardo = new Leonardo({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
const result = await leonardo.initImages.deleteInitImageById("<id>");
const result = await leonardo.initImages.deleteInitImageById("<id>");

// Handle the result
console.log(result);
// Handle the result
console.log(result);
}

run();
Expand All @@ -93,12 +93,8 @@ run();
<!-- Start Available Resources and Operations [operations] -->
## Available Resources and Operations

### [initImages](docs/sdks/initimages/README.md)

* [deleteInitImageById](docs/sdks/initimages/README.md#deleteinitimagebyid) - Delete init image
* [getInitImageById](docs/sdks/initimages/README.md#getinitimagebyid) - Get single init image
* [uploadCanvasInitImage](docs/sdks/initimages/README.md#uploadcanvasinitimage) - Upload Canvas Editor init and mask image
* [uploadInitImage](docs/sdks/initimages/README.md#uploadinitimage) - Upload init image
<details open>
<summary>Available methods</summary>

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

Expand All @@ -119,25 +115,13 @@ run();
* [getGenerationById](docs/sdks/image/README.md#getgenerationbyid) - Get a Single Generation
* [getGenerationsByUserId](docs/sdks/image/README.md#getgenerationsbyuserid) - Get generations by user ID

### [realtimeCanvas](docs/sdks/realtimecanvas/README.md)

* [createLCMGeneration](docs/sdks/realtimecanvas/README.md#createlcmgeneration) - Create LCM Generation
* [performAlchemyUpscaleLCM](docs/sdks/realtimecanvas/README.md#performalchemyupscalelcm) - Perform Alchemy Upscale on a LCM image
* [performInpaintingLCM](docs/sdks/realtimecanvas/README.md#performinpaintinglcm) - Perform inpainting on a LCM image
* [performInstantRefine](docs/sdks/realtimecanvas/README.md#performinstantrefine) - Perform instant refine on a LCM image

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

* [createSVDMotionGeneration](docs/sdks/motion/README.md#createsvdmotiongeneration) - Create SVD Motion Generation

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

* [createTextureGeneration](docs/sdks/texture/README.md#createtexturegeneration) - Create Texture Generation
* [deleteTextureGenerationById](docs/sdks/texture/README.md#deletetexturegenerationbyid) - Delete Texture Generation by ID
### [initImages](docs/sdks/initimages/README.md)

### [user](docs/sdks/user/README.md)
* [deleteInitImageById](docs/sdks/initimages/README.md#deleteinitimagebyid) - Delete init image
* [getInitImageById](docs/sdks/initimages/README.md#getinitimagebyid) - Get single init image
* [uploadCanvasInitImage](docs/sdks/initimages/README.md#uploadcanvasinitimage) - Upload Canvas Editor init and mask image
* [uploadInitImage](docs/sdks/initimages/README.md#uploadinitimage) - Upload init image

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

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

Expand All @@ -146,10 +130,9 @@ run();
* [getModelById](docs/sdks/models/README.md#getmodelbyid) - Get a Single Custom Model by ID
* [listPlatformModels](docs/sdks/models/README.md#listplatformmodels) - List Platform Models

### [threeDModelAssets](docs/sdks/threedmodelassets/README.md)
### [motion](docs/sdks/motion/README.md)

* [delete3DModelById](docs/sdks/threedmodelassets/README.md#delete3dmodelbyid) - Delete 3D Model by ID
* [uploadModelAsset](docs/sdks/threedmodelassets/README.md#uploadmodelasset) - Upload 3D Model
* [createSVDMotionGeneration](docs/sdks/motion/README.md#createsvdmotiongeneration) - Create SVD Motion Generation

### [pricingCalculator](docs/sdks/pricingcalculator/README.md)

Expand All @@ -160,13 +143,36 @@ run();
* [promptImprove](docs/sdks/prompt/README.md#promptimprove) - Improve a Prompt
* [promptRandom](docs/sdks/prompt/README.md#promptrandom) - Generate a Random prompt

### [realtimeCanvas](docs/sdks/realtimecanvas/README.md)

* [createLCMGeneration](docs/sdks/realtimecanvas/README.md#createlcmgeneration) - Create LCM Generation
* [performAlchemyUpscaleLCM](docs/sdks/realtimecanvas/README.md#performalchemyupscalelcm) - Perform Alchemy Upscale on a LCM image
* [performInpaintingLCM](docs/sdks/realtimecanvas/README.md#performinpaintinglcm) - Perform inpainting on a LCM image
* [performInstantRefine](docs/sdks/realtimecanvas/README.md#performinstantrefine) - Perform instant refine on a LCM image

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

* [createTextureGeneration](docs/sdks/texture/README.md#createtexturegeneration) - Create Texture Generation
* [deleteTextureGenerationById](docs/sdks/texture/README.md#deletetexturegenerationbyid) - Delete Texture Generation by ID

### [threeDModelAssets](docs/sdks/threedmodelassets/README.md)

* [delete3DModelById](docs/sdks/threedmodelassets/README.md#delete3dmodelbyid) - Delete 3D Model by ID
* [uploadModelAsset](docs/sdks/threedmodelassets/README.md#uploadmodelasset) - 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)

* [createUniversalUpscalerJob](docs/sdks/variation/README.md#createuniversalupscalerjob) - Create using Universal Upscaler
* [createVariationNoBG](docs/sdks/variation/README.md#createvariationnobg) - Create no background
* [createVariationUnzoom](docs/sdks/variation/README.md#createvariationunzoom) - Create unzoom
* [createVariationUpscale](docs/sdks/variation/README.md#createvariationupscale) - Create upscale
* [getVariationById](docs/sdks/variation/README.md#getvariationbyid) - Get variation by ID

</details>
<!-- End Available Resources and Operations [operations] -->


Expand All @@ -192,30 +198,30 @@ import { Leonardo } from "@leonardo-ai/sdk";
import { SDKValidationError } from "@leonardo-ai/sdk/sdk/models/errors";

const leonardo = new Leonardo({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
let result;
try {
result = await leonardo.initImages.deleteInitImageById("<id>");
} catch (err) {
switch (true) {
case err instanceof SDKValidationError: {
// Validation errors can be pretty-printed
console.error(err.pretty());
// Raw value may also be inspected
console.error(err.rawValue);
return;
}
default: {
throw err;
}
}
}
let result;
try {
result = await leonardo.initImages.deleteInitImageById("<id>");

// Handle the result
console.log(result);
} catch (err) {
switch (true) {
case (err instanceof SDKValidationError): {
// Validation errors can be pretty-printed
console.error(err.pretty());
// Raw value may also be inspected
console.error(err.rawValue);
return;
}
default: {
throw err;
}
}
}
}

run();
Expand Down Expand Up @@ -291,15 +297,15 @@ You can override the default server globally by passing a server index to the `s
import { Leonardo } from "@leonardo-ai/sdk";

const leonardo = new Leonardo({
serverIdx: 0,
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
serverIdx: 0,
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
const result = await leonardo.initImages.deleteInitImageById("<id>");
const result = await leonardo.initImages.deleteInitImageById("<id>");

// Handle the result
console.log(result);
// Handle the result
console.log(result);
}

run();
Expand All @@ -315,15 +321,15 @@ The default server can also be overridden globally by passing a URL to the `serv
import { Leonardo } from "@leonardo-ai/sdk";

const leonardo = new Leonardo({
serverURL: "https://cloud.leonardo.ai/api/rest/v1",
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
serverURL: "https://cloud.leonardo.ai/api/rest/v1",
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
const result = await leonardo.initImages.deleteInitImageById("<id>");
const result = await leonardo.initImages.deleteInitImageById("<id>");

// Handle the result
console.log(result);
// Handle the result
console.log(result);
}

run();
Expand All @@ -349,14 +355,14 @@ To authenticate with the API the `bearerAuth` parameter must be set when initial
import { Leonardo } from "@leonardo-ai/sdk";

const leonardo = new Leonardo({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
const result = await leonardo.initImages.deleteInitImageById("<id>");
const result = await leonardo.initImages.deleteInitImageById("<id>");

// Handle the result
console.log(result);
// Handle the result
console.log(result);
}

run();
Expand Down Expand Up @@ -436,25 +442,25 @@ To change the default retry strategy for a single API call, simply provide a ret
import { Leonardo } from "@leonardo-ai/sdk";

const leonardo = new Leonardo({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
const result = await leonardo.initImages.deleteInitImageById("<id>", {
retries: {
strategy: "backoff",
backoff: {
initialInterval: 1,
maxInterval: 50,
exponent: 1.1,
maxElapsedTime: 100,
},
retryConnectionErrors: false,
},
});
const result = await leonardo.initImages.deleteInitImageById("<id>", {
retries: {
strategy: "backoff",
backoff: {
initialInterval: 1,
maxInterval: 50,
exponent: 1.1,
maxElapsedTime: 100,
},
retryConnectionErrors: false,
},
});

// Handle the result
console.log(result);
// Handle the result
console.log(result);
}

run();
Expand All @@ -466,24 +472,24 @@ If you'd like to override the default retry strategy for all operations that sup
import { Leonardo } from "@leonardo-ai/sdk";

const leonardo = new Leonardo({
retryConfig: {
strategy: "backoff",
backoff: {
initialInterval: 1,
maxInterval: 50,
exponent: 1.1,
maxElapsedTime: 100,
},
retryConnectionErrors: false,
retryConfig: {
strategy: "backoff",
backoff: {
initialInterval: 1,
maxInterval: 50,
exponent: 1.1,
maxElapsedTime: 100,
},
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
retryConnectionErrors: false,
},
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
const result = await leonardo.initImages.deleteInitImageById("<id>");
const result = await leonardo.initImages.deleteInitImageById("<id>");

// Handle the result
console.log(result);
// Handle the result
console.log(result);
}

run();
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2449,4 +2449,14 @@ Based on:
### Generated
- [typescript v4.15.0] .
### Releases
- [NPM v4.15.0] https://www.npmjs.com/package/@leonardo-ai/sdk/v/4.15.0 - .
- [NPM v4.15.0] https://www.npmjs.com/package/@leonardo-ai/sdk/v/4.15.0 - .

## 2024-09-20 06:02:01
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.400.1 (2.420.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v4.16.0] .
### Releases
- [NPM v4.16.0] https://www.npmjs.com/package/@leonardo-ai/sdk/v/4.16.0 - .
8 changes: 4 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
import { Leonardo } from "@leonardo-ai/sdk";

const leonardo = new Leonardo({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
const result = await leonardo.initImages.deleteInitImageById("<id>");
const result = await leonardo.initImages.deleteInitImageById("<id>");

// Handle the result
console.log(result);
// Handle the result
console.log(result);
}

run();
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/models/operations/createdatasetrequestbody.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Query parameters to be provided in the request body as a JSON object
import { CreateDatasetRequestBody } from "@leonardo-ai/sdk/sdk/models/operations";

let value: CreateDatasetRequestBody = {
name: "<value>",
name: "<value>",
};
```

Expand Down
Loading

0 comments on commit 7aeac18

Please sign in to comment.