Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.396.9 (#10)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Sep 14, 2024
1 parent b17868e commit 6c7f44a
Show file tree
Hide file tree
Showing 48 changed files with 1,152 additions and 1,105 deletions.
140 changes: 102 additions & 38 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
lockVersion: 2.0.0
id: 8766970f-4397-4dff-8082-81333329536d
management:
docChecksum: 57e99cb8e6e8b32242245c05aacb18c7
docVersion: v0.2.0
speakeasyVersion: 1.396.6
generationVersion: 2.415.6
releaseVersion: 0.2.0
configChecksum: 070fffd68711f91890b67094a60e2aaa
docChecksum: 5649b2692e9b9f3c1065851a47fbba06
docVersion: v0.5.0
speakeasyVersion: 1.396.9
generationVersion: 2.415.7
releaseVersion: 0.3.0
configChecksum: c8aa17308629ebd7735417f6e6f6e9ed
repoURL: https://github.com/livepeer/livepeer-ai-js.git
installationURL: https://github.com/livepeer/livepeer-ai-js
published: true
features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.11
core: 3.17.2
core: 3.17.3
defaultEnabledRetries: 0.1.0
devContainers: 2.90.0
envVarSecurityUsage: 0.1.1
globalSecurity: 2.82.11
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
globalServerURLs: 2.82.4
nameOverrides: 2.81.2
responseFormat: 0.2.3
retries: 2.83.0
sdkHooks: 0.1.0
Expand All @@ -40,14 +42,14 @@ generatedFiles:
- docs/lib/utils/retryconfig.md
- docs/models/components/apierror.md
- docs/models/components/audio.md
- docs/models/components/bodyaudiototextaudiototextpost.md
- docs/models/components/bodyimagetoimageimagetoimagepost.md
- docs/models/components/bodyimagetovideoimagetovideopost.md
- docs/models/components/bodyimagetovideoimagetovideopostimage.md
- docs/models/components/bodysegmentanything2segmentanything2post.md
- docs/models/components/bodysegmentanything2segmentanything2postimage.md
- docs/models/components/bodyupscaleupscalepost.md
- docs/models/components/bodyupscaleupscalepostimage.md
- docs/models/components/bodygenaudiototext.md
- docs/models/components/bodygenimagetoimage.md
- docs/models/components/bodygenimagetovideo.md
- docs/models/components/bodygenimagetovideoimage.md
- docs/models/components/bodygensegmentanything2.md
- docs/models/components/bodygensegmentanything2image.md
- docs/models/components/bodygenupscale.md
- docs/models/components/bodygenupscaleimage.md
- docs/models/components/chunk.md
- docs/models/components/image.md
- docs/models/components/imageresponse.md
Expand All @@ -61,22 +63,23 @@ generatedFiles:
- docs/models/components/videoresponse.md
- docs/models/errors/httperror.md
- docs/models/errors/httpvalidationerror.md
- docs/models/operations/audiototextresponse.md
- docs/models/operations/imagetoimageresponse.md
- docs/models/operations/imagetovideoresponse.md
- docs/models/operations/segmentanything2response.md
- docs/models/operations/texttoimageresponse.md
- docs/models/operations/upscaleresponse.md
- docs/models/operations/genaudiototextresponse.md
- docs/models/operations/genimagetoimageresponse.md
- docs/models/operations/genimagetovideoresponse.md
- docs/models/operations/gensegmentanything2response.md
- docs/models/operations/gentexttoimageresponse.md
- docs/models/operations/genupscaleresponse.md
- docs/sdks/generate/README.md
- docs/sdks/livepeerai/README.md
- jsr.json
- package.json
- src/core.ts
- src/funcs/audioToText.ts
- src/funcs/imageToImage.ts
- src/funcs/imageToVideo.ts
- src/funcs/segmentAnything2.ts
- src/funcs/textToImage.ts
- src/funcs/upscale.ts
- src/funcs/generateAudioToText.ts
- src/funcs/generateImageToImage.ts
- src/funcs/generateImageToVideo.ts
- src/funcs/generateSegmentAnything2.ts
- src/funcs/generateTextToImage.ts
- src/funcs/generateUpscale.ts
- src/hooks/hooks.ts
- src/hooks/index.ts
- src/hooks/types.ts
Expand All @@ -97,11 +100,11 @@ generatedFiles:
- src/lib/security.ts
- src/lib/url.ts
- src/models/components/apierror.ts
- src/models/components/bodyaudiototextaudiototextpost.ts
- src/models/components/bodyimagetoimageimagetoimagepost.ts
- src/models/components/bodyimagetovideoimagetovideopost.ts
- src/models/components/bodysegmentanything2segmentanything2post.ts
- src/models/components/bodyupscaleupscalepost.ts
- src/models/components/bodygenaudiototext.ts
- src/models/components/bodygenimagetoimage.ts
- src/models/components/bodygenimagetovideo.ts
- src/models/components/bodygensegmentanything2.ts
- src/models/components/bodygenupscale.ts
- src/models/components/chunk.ts
- src/models/components/imageresponse.ts
- src/models/components/index.ts
Expand All @@ -118,13 +121,14 @@ generatedFiles:
- src/models/errors/index.ts
- src/models/errors/sdkerror.ts
- src/models/errors/sdkvalidationerror.ts
- src/models/operations/audiototext.ts
- src/models/operations/imagetoimage.ts
- src/models/operations/imagetovideo.ts
- src/models/operations/genaudiototext.ts
- src/models/operations/genimagetoimage.ts
- src/models/operations/genimagetovideo.ts
- src/models/operations/gensegmentanything2.ts
- src/models/operations/gentexttoimage.ts
- src/models/operations/genupscale.ts
- src/models/operations/index.ts
- src/models/operations/segmentanything2.ts
- src/models/operations/texttoimage.ts
- src/models/operations/upscale.ts
- src/sdk/generate.ts
- src/sdk/index.ts
- src/sdk/sdk.ts
- src/types/blobs.ts
Expand Down Expand Up @@ -197,3 +201,63 @@ examples:
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
genTextToImage:
speakeasy-default-gen-text-to-image:
requestBody:
application/json: {"prompt": "<value>"}
responses:
"200":
application/json: {"images": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
genImageToImage:
speakeasy-default-gen-image-to-image:
requestBody:
multipart/form-data: {"prompt": "<value>", "image": {}}
responses:
"200":
application/json: {"images": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
genImageToVideo:
speakeasy-default-gen-image-to-video:
requestBody:
multipart/form-data: {"image": {}}
responses:
"200":
application/json: {"images": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
genUpscale:
speakeasy-default-gen-upscale:
requestBody:
multipart/form-data: {"prompt": "<value>", "image": {}}
responses:
"200":
application/json: {"images": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
genAudioToText:
speakeasy-default-gen-audio-to-text:
requestBody:
multipart/form-data: {"audio": {}}
responses:
"200":
application/json: {"text": "<value>", "chunks": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
genSegmentAnything2:
speakeasy-default-gen-segment-anything2:
requestBody:
multipart/form-data: {"image": {}}
responses:
"200":
application/json: {"masks": "<value>", "scores": "<value>", "logits": "<value>"}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.2.0
version: 0.3.0
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
4 changes: 2 additions & 2 deletions FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ specific category of applications.

```typescript
import { LivepeerAICore } from "livepeer-ai/core.js";
import { textToImage } from "livepeer-ai/funcs/textToImage.js";
import { generateTextToImage } from "livepeer-ai/funcs/generateTextToImage.js";
import { SDKValidationError } from "livepeer-ai/models/errors/sdkvalidationerror.js";

// Use `LivepeerAICore` for best tree-shaking performance.
Expand All @@ -30,7 +30,7 @@ const livepeerAI = new LivepeerAICore({
});

async function run() {
const res = await textToImage(livepeerAI, {
const res = await generateTextToImage(livepeerAI, {
prompt: "<value>",
});

Expand Down
51 changes: 26 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@ The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https
### NPM

```bash
npm add https://github.com/livepeer/livepeer-ai-js
npm add livepeer-ai
```

### PNPM

```bash
pnpm add https://github.com/livepeer/livepeer-ai-js
pnpm add livepeer-ai
```

### Bun

```bash
bun add https://github.com/livepeer/livepeer-ai-js
bun add livepeer-ai
```

### Yarn

```bash
yarn add https://github.com/livepeer/livepeer-ai-js zod
yarn add livepeer-ai zod

# Note that Yarn does not install peer dependencies automatically. You will need
# to install zod as shown above.
Expand All @@ -61,7 +61,7 @@ const livepeerAI = new LivepeerAI({
});

async function run() {
const result = await livepeerAI.textToImage({
const result = await livepeerAI.generate.textToImage({
prompt: "<value>",
});

Expand All @@ -80,14 +80,15 @@ run();
<details open>
<summary>Available methods</summary>

### [LivepeerAI SDK](docs/sdks/livepeerai/README.md)
### [generate](docs/sdks/generate/README.md)

* [textToImage](docs/sdks/generate/README.md#texttoimage) - Text To Image
* [imageToImage](docs/sdks/generate/README.md#imagetoimage) - Image To Image
* [imageToVideo](docs/sdks/generate/README.md#imagetovideo) - Image To Video
* [upscale](docs/sdks/generate/README.md#upscale) - Upscale
* [audioToText](docs/sdks/generate/README.md#audiototext) - Audio To Text
* [segmentAnything2](docs/sdks/generate/README.md#segmentanything2) - Segment Anything 2

* [textToImage](docs/sdks/livepeerai/README.md#texttoimage) - Text To Image
* [imageToImage](docs/sdks/livepeerai/README.md#imagetoimage) - Image To Image
* [imageToVideo](docs/sdks/livepeerai/README.md#imagetovideo) - Image To Video
* [upscale](docs/sdks/livepeerai/README.md#upscale) - Upscale
* [audioToText](docs/sdks/livepeerai/README.md#audiototext) - Audio To Text
* [segmentAnything2](docs/sdks/livepeerai/README.md#segmentanything2) - Segment Anything 2

</details>
<!-- End Available Resources and Operations [operations] -->
Expand All @@ -107,12 +108,12 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).

<summary>Available standalone functions</summary>

- [audioToText](docs/sdks/livepeerai/README.md#audiototext)
- [imageToImage](docs/sdks/livepeerai/README.md#imagetoimage)
- [imageToVideo](docs/sdks/livepeerai/README.md#imagetovideo)
- [segmentAnything2](docs/sdks/livepeerai/README.md#segmentanything2)
- [textToImage](docs/sdks/livepeerai/README.md#texttoimage)
- [upscale](docs/sdks/livepeerai/README.md#upscale)
- [generateAudioToText](docs/sdks/generate/README.md#audiototext)
- [generateImageToImage](docs/sdks/generate/README.md#imagetoimage)
- [generateImageToVideo](docs/sdks/generate/README.md#imagetovideo)
- [generateSegmentAnything2](docs/sdks/generate/README.md#segmentanything2)
- [generateTextToImage](docs/sdks/generate/README.md#texttoimage)
- [generateUpscale](docs/sdks/generate/README.md#upscale)


</details>
Expand Down Expand Up @@ -141,7 +142,7 @@ const livepeerAI = new LivepeerAI({
});

async function run() {
const result = await livepeerAI.imageToImage({
const result = await livepeerAI.generate.imageToImage({
image: await openAsBlob("example.file"),
prompt: "<value>",
});
Expand Down Expand Up @@ -169,7 +170,7 @@ const livepeerAI = new LivepeerAI({
});

async function run() {
const result = await livepeerAI.textToImage({
const result = await livepeerAI.generate.textToImage({
prompt: "<value>",
}, {
retries: {
Expand Down Expand Up @@ -211,7 +212,7 @@ const livepeerAI = new LivepeerAI({
});

async function run() {
const result = await livepeerAI.textToImage({
const result = await livepeerAI.generate.textToImage({
prompt: "<value>",
});

Expand Down Expand Up @@ -253,7 +254,7 @@ const livepeerAI = new LivepeerAI({
async function run() {
let result;
try {
result = await livepeerAI.textToImage({
result = await livepeerAI.generate.textToImage({
prompt: "<value>",
});

Expand Down Expand Up @@ -311,7 +312,7 @@ const livepeerAI = new LivepeerAI({
});

async function run() {
const result = await livepeerAI.textToImage({
const result = await livepeerAI.generate.textToImage({
prompt: "<value>",
});

Expand All @@ -337,7 +338,7 @@ const livepeerAI = new LivepeerAI({
});

async function run() {
const result = await livepeerAI.textToImage({
const result = await livepeerAI.generate.textToImage({
prompt: "<value>",
});

Expand Down Expand Up @@ -419,7 +420,7 @@ const livepeerAI = new LivepeerAI({
});

async function run() {
const result = await livepeerAI.textToImage({
const result = await livepeerAI.generate.textToImage({
prompt: "<value>",
});

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,14 @@ Based on:
- OpenAPI Doc
- Speakeasy CLI 1.396.6 (2.415.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.2.0] .
- [typescript v0.2.0] .

## 2024-09-14 00:29:13
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.396.9 (2.415.7) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.3.0] .
### Releases
- [NPM v0.3.0] https://www.npmjs.com/package/livepeer-ai/v/0.3.0 - .
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const livepeerAI = new LivepeerAI({
});

async function run() {
const result = await livepeerAI.textToImage({
const result = await livepeerAI.generate.textToImage({
prompt: "<value>",
});

Expand Down
Loading

0 comments on commit 6c7f44a

Please sign in to comment.