Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.434.0 (#21)
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 Nov 7, 2024
1 parent a2e15c2 commit 653c9c9
Show file tree
Hide file tree
Showing 50 changed files with 1,474 additions and 115 deletions.
54 changes: 45 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
lockVersion: 2.0.0
id: 8bd6d3b6-cae6-4e55-b72f-6fdc1dbce9a1
management:
docChecksum: a140881cbcff74961991f5dfff13f0a0
docChecksum: c22f8c1b01f75ba608165e53e64fb450
docVersion: 0.0.0
speakeasyVersion: 1.421.2
generationVersion: 2.438.15
releaseVersion: 0.4.1
configChecksum: 2d2321dd652b40627a863461eab6e343
speakeasyVersion: 1.434.0
generationVersion: 2.452.0
releaseVersion: 0.5.0
configChecksum: aedc0e9ba8ffdca9aa407f90c308a96c
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.18.2
core: 3.18.3
defaultEnabledRetries: 0.1.0
envVarSecurityUsage: 0.1.1
envVarSecurityUsage: 0.1.2
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
unions: 2.85.7
sdkHooks: 0.2.0
tests: 0.7.0
unions: 2.85.8
uploadStreams: 0.1.0
generatedFiles:
- .eslintrc.cjs
Expand All @@ -37,6 +38,7 @@ generatedFiles:
- docs/lib/utils/retryconfig.md
- docs/models/components/apierror.md
- docs/models/components/audio.md
- docs/models/components/audioresponse.md
- docs/models/components/bodygenaudiototext.md
- docs/models/components/bodygenimagetoimage.md
- docs/models/components/bodygenimagetotext.md
Expand All @@ -52,13 +54,18 @@ generatedFiles:
- docs/models/components/image.md
- docs/models/components/imageresponse.md
- docs/models/components/imagetotextresponse.md
- docs/models/components/livevideotovideoparams.md
- docs/models/components/livevideotovideoresponse.md
- docs/models/components/llmresponse.md
- docs/models/components/loc.md
- docs/models/components/masksresponse.md
- docs/models/components/media.md
- docs/models/components/mediaurl.md
- docs/models/components/params.md
- docs/models/components/security.md
- docs/models/components/textresponse.md
- docs/models/components/texttoimageparams.md
- docs/models/components/texttospeechparams.md
- docs/models/components/validationerror.md
- docs/models/components/videoresponse.md
- docs/models/errors/httperror.md
Expand All @@ -67,9 +74,11 @@ generatedFiles:
- docs/models/operations/genimagetoimageresponse.md
- docs/models/operations/genimagetotextresponse.md
- docs/models/operations/genimagetovideoresponse.md
- docs/models/operations/genlivevideotovideoresponse.md
- docs/models/operations/genllmresponse.md
- docs/models/operations/gensegmentanything2response.md
- docs/models/operations/gentexttoimageresponse.md
- docs/models/operations/gentexttospeechresponse.md
- docs/models/operations/genupscaleresponse.md
- docs/sdks/generate/README.md
- docs/sdks/livepeer/README.md
Expand All @@ -80,9 +89,11 @@ generatedFiles:
- src/funcs/generateImageToImage.ts
- src/funcs/generateImageToText.ts
- src/funcs/generateImageToVideo.ts
- src/funcs/generateLiveVideoToVideo.ts
- src/funcs/generateLlm.ts
- src/funcs/generateSegmentAnything2.ts
- src/funcs/generateTextToImage.ts
- src/funcs/generateTextToSpeech.ts
- src/funcs/generateUpscale.ts
- src/hooks/hooks.ts
- src/hooks/index.ts
Expand All @@ -104,6 +115,7 @@ generatedFiles:
- src/lib/security.ts
- src/lib/url.ts
- src/models/components/apierror.ts
- src/models/components/audioresponse.ts
- src/models/components/bodygenaudiototext.ts
- src/models/components/bodygenimagetoimage.ts
- src/models/components/bodygenimagetotext.ts
Expand All @@ -115,12 +127,16 @@ generatedFiles:
- src/models/components/imageresponse.ts
- src/models/components/imagetotextresponse.ts
- src/models/components/index.ts
- src/models/components/livevideotovideoparams.ts
- src/models/components/livevideotovideoresponse.ts
- src/models/components/llmresponse.ts
- src/models/components/masksresponse.ts
- src/models/components/media.ts
- src/models/components/mediaurl.ts
- src/models/components/security.ts
- src/models/components/textresponse.ts
- src/models/components/texttoimageparams.ts
- src/models/components/texttospeechparams.ts
- src/models/components/validationerror.ts
- src/models/components/videoresponse.ts
- src/models/errors/httpclienterrors.ts
Expand All @@ -133,9 +149,11 @@ generatedFiles:
- src/models/operations/genimagetoimage.ts
- src/models/operations/genimagetotext.ts
- src/models/operations/genimagetovideo.ts
- src/models/operations/genlivevideotovideo.ts
- src/models/operations/genllm.ts
- src/models/operations/gensegmentanything2.ts
- src/models/operations/gentexttoimage.ts
- src/models/operations/gentexttospeech.ts
- src/models/operations/genupscale.ts
- src/models/operations/index.ts
- src/sdk/generate.ts
Expand Down Expand Up @@ -231,3 +249,21 @@ examples:
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
genLiveVideoToVideo:
speakeasy-default-gen-live-video-to-video:
requestBody:
application/json: {"subscribe_url": "https://soulful-lava.org/", "publish_url": "https://vain-tabletop.biz"}
responses:
"200":
application/json: {"subscribe_url": "https://vain-kiss.name", "publish_url": "https://frail-duffel.com"}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
genTextToSpeech:
speakeasy-default-gen-text-to-speech:
responses:
"200":
application/json: {"audio": {"url": "https://accurate-parsnip.net/"}}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ generation:
requestResponseComponentNamesFeb2024: false
auth:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
typescript:
version: 0.4.1
version: 0.5.0
additionalDependencies:
dependencies:
jest: ^29.7.0
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.421.2
speakeasyVersion: 1.434.0
sources:
livepeer-ai-OAS:
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:5354d8a69a4e1db3706c645db7becd62271bfc93572f1a65dc1df1fc8575ed1a
sourceBlobDigest: sha256:ad0b2e92bea306b60b1929309669cb1c3ca574325bb0ab4a2e44949fc8249a9f
sourceRevisionDigest: sha256:2b05b4d158138f959e4c1780587470df5cbe29ce56bea9714d8e202946f7e06b
sourceBlobDigest: sha256:c56907fa67feba848782a2720c447e2d442b420d4c1feae871ac97b3476e2c08
tags:
- latest
- main
targets:
livepeer-ai-ts:
source: livepeer-ai-OAS
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:5354d8a69a4e1db3706c645db7becd62271bfc93572f1a65dc1df1fc8575ed1a
sourceBlobDigest: sha256:ad0b2e92bea306b60b1929309669cb1c3ca574325bb0ab4a2e44949fc8249a9f
sourceRevisionDigest: sha256:2b05b4d158138f959e4c1780587470df5cbe29ce56bea9714d8e202946f7e06b
sourceBlobDigest: sha256:c56907fa67feba848782a2720c447e2d442b420d4c1feae871ac97b3476e2c08
codeSamplesNamespace: code-samples-typescript-livepeer-ts
codeSamplesRevisionDigest: sha256:18cc5cd255be78c6bec9835dcfab751472a892f985bc172cb82f5cb6dadd6cb1
codeSamplesRevisionDigest: sha256:a455e5bc3bf0384a0ec996d72d5f856137508822bc5b725be51cea223ff91477
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ run();
* [segmentAnything2](docs/sdks/generate/README.md#segmentanything2) - Segment Anything 2
* [llm](docs/sdks/generate/README.md#llm) - LLM
* [imageToText](docs/sdks/generate/README.md#imagetotext) - Image To Text
* [liveVideoToVideo](docs/sdks/generate/README.md#livevideotovideo) - Video To Video
* [textToSpeech](docs/sdks/generate/README.md#texttospeech) - Text To Speech


</details>
Expand All @@ -114,9 +116,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [`generateImageToImage`](docs/sdks/generate/README.md#imagetoimage) - Image To Image
- [`generateImageToText`](docs/sdks/generate/README.md#imagetotext) - Image To Text
- [`generateImageToVideo`](docs/sdks/generate/README.md#imagetovideo) - Image To Video
- [`generateLiveVideoToVideo`](docs/sdks/generate/README.md#livevideotovideo) - Video To Video
- [`generateLlm`](docs/sdks/generate/README.md#llm) - LLM
- [`generateSegmentAnything2`](docs/sdks/generate/README.md#segmentanything2) - Segment Anything 2
- [`generateTextToImage`](docs/sdks/generate/README.md#texttoimage) - Text To Image
- [`generateTextToSpeech`](docs/sdks/generate/README.md#texttospeech) - Text To Speech
- [`generateUpscale`](docs/sdks/generate/README.md#upscale) - Upscale

</details>
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,14 @@ Based on:
### Generated
- [typescript v0.4.1] .
### Releases
- [NPM v0.4.1] https://www.npmjs.com/package/@livepeer/ai/v/0.4.1 - .
- [NPM v0.4.1] https://www.npmjs.com/package/@livepeer/ai/v/0.4.1 - .

## 2024-11-07 00:01:06
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.434.0 (2.452.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.5.0] .
### Releases
- [NPM v0.5.0] https://www.npmjs.com/package/@livepeer/ai/v/0.5.0 - .
43 changes: 43 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,29 @@ actions:
console.log(result);
}
run();
- target: $["paths"]["/live-video-to-video"]["post"]
update:
x-codeSamples:
- lang: typescript
label: genLiveVideoToVideo
source: |-
import { Livepeer } from "@livepeer/ai";
const livepeer = new Livepeer({
httpBearer: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.generate.liveVideoToVideo({
subscribeUrl: "https://soulful-lava.org/",
publishUrl: "https://vain-tabletop.biz",
});
// Handle the result
console.log(result);
}
run();
- target: $["paths"]["/llm"]["post"]
update:
Expand Down Expand Up @@ -162,6 +185,26 @@ actions:
console.log(result);
}
run();
- target: $["paths"]["/text-to-speech"]["post"]
update:
x-codeSamples:
- lang: typescript
label: genTextToSpeech
source: |-
import { Livepeer } from "@livepeer/ai";
const livepeer = new Livepeer({
httpBearer: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.generate.textToSpeech({});
// Handle the result
console.log(result);
}
run();
- target: $["paths"]["/upscale"]["post"]
update:
Expand Down
21 changes: 21 additions & 0 deletions docs/models/components/audioresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# AudioResponse

Response model for audio generation.

## Example Usage

```typescript
import { AudioResponse } from "@livepeer/ai/models/components";

let value: AudioResponse = {
audio: {
url: "https://quarrelsome-disappointment.info/",
},
};
```

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
| `audio` | [components.MediaURL](../../models/components/mediaurl.md) | :heavy_check_mark: | The generated audio. |
9 changes: 5 additions & 4 deletions docs/models/components/bodygenaudiototext.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { BodyGenAudioToText } from "@livepeer/ai/models/components";

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `audio` | [File](https://developer.mozilla.org/en-US/docs/Web/API/File) \| [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) \| [components.Audio](../../models/components/audio.md) | :heavy_check_mark: | Uploaded audio file to be transcribed. |
| `modelId` | *string* | :heavy_minus_sign: | Hugging Face model ID used for transcription. |
| Field | Type | Required | Description |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `audio` | [File](https://developer.mozilla.org/en-US/docs/Web/API/File) \| [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) \| [components.Audio](../../models/components/audio.md) | :heavy_check_mark: | Uploaded audio file to be transcribed. |
| `modelId` | *string* | :heavy_minus_sign: | Hugging Face model ID used for transcription. |
| `returnTimestamps` | *string* | :heavy_minus_sign: | Return timestamps for the transcribed text. Supported values: 'sentence', 'word', or a string boolean ('true' or 'false'). Default is 'true' ('sentence'). 'false' means no timestamps. 'word' means word-based timestamps. |
4 changes: 2 additions & 2 deletions docs/models/components/imageresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { ImageResponse } from "@livepeer/ai/models/components";
let value: ImageResponse = {
images: [
{
url: "https://talkative-sauerkraut.org/",
seed: 978619,
url: "https://steep-independence.net",
seed: 118274,
nsfw: false,
},
],
Expand Down
Loading

0 comments on commit 653c9c9

Please sign in to comment.