Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.441.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 20, 2024
1 parent 653c9c9 commit 06d1e04
Show file tree
Hide file tree
Showing 64 changed files with 976 additions and 66 deletions.
14 changes: 7 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
lockVersion: 2.0.0
id: 8bd6d3b6-cae6-4e55-b72f-6fdc1dbce9a1
management:
docChecksum: c22f8c1b01f75ba608165e53e64fb450
docChecksum: cacc787e7d3b631df883f90b11af5a79
docVersion: 0.0.0
speakeasyVersion: 1.434.0
generationVersion: 2.452.0
releaseVersion: 0.5.0
configChecksum: aedc0e9ba8ffdca9aa407f90c308a96c
speakeasyVersion: 1.441.0
generationVersion: 2.460.1
releaseVersion: 0.5.1
configChecksum: 6f60a2184f458ae4912ee7d664f76129
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.3
core: 3.18.5
defaultEnabledRetries: 0.1.0
envVarSecurityUsage: 0.1.2
globalSecurity: 2.82.11
Expand Down Expand Up @@ -255,7 +255,7 @@ examples:
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"}
application/json: {"subscribe_url": "https://vain-kiss.name", "publish_url": "https://frail-duffel.com", "control_url": "https://soulful-lava.org/"}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
Expand Down
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
typescript:
version: 0.5.0
version: 0.5.1
additionalDependencies:
dependencies:
jest: ^29.7.0
Expand All @@ -24,6 +24,7 @@ typescript:
additionalPackageJSON: {}
author: Livepeer
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
enumFormat: enum
flattenGlobalSecurity: true
flatteningOrder: body-first
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.434.0
speakeasyVersion: 1.441.0
sources:
livepeer-ai-OAS:
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:2b05b4d158138f959e4c1780587470df5cbe29ce56bea9714d8e202946f7e06b
sourceBlobDigest: sha256:c56907fa67feba848782a2720c447e2d442b420d4c1feae871ac97b3476e2c08
sourceRevisionDigest: sha256:db880aba3ede050c55bbff1aae6e347dc92e09ab9d2c421f4937f004528983c2
sourceBlobDigest: sha256:7d35270a5265c19b25bf254166f73a6d95e11e863b24841941b1c2ab406b10ea
tags:
- latest
- main
- speakeasy-sdk-regen-1732060880
targets:
livepeer-ai-ts:
source: livepeer-ai-OAS
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:2b05b4d158138f959e4c1780587470df5cbe29ce56bea9714d8e202946f7e06b
sourceBlobDigest: sha256:c56907fa67feba848782a2720c447e2d442b420d4c1feae871ac97b3476e2c08
sourceRevisionDigest: sha256:db880aba3ede050c55bbff1aae6e347dc92e09ab9d2c421f4937f004528983c2
sourceBlobDigest: sha256:7d35270a5265c19b25bf254166f73a6d95e11e863b24841941b1c2ab406b10ea
codeSamplesNamespace: code-samples-typescript-livepeer-ts
codeSamplesRevisionDigest: sha256:a455e5bc3bf0384a0ec996d72d5f856137508822bc5b725be51cea223ff91477
codeSamplesRevisionDigest: sha256:60cf6f45025c240f8c9f1918cb7493d1f62b4b65132cf3ecabc5d21f0bc96a3a
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ 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
* [liveVideoToVideo](docs/sdks/generate/README.md#livevideotovideo) - Live Video To Video
* [textToSpeech](docs/sdks/generate/README.md#texttospeech) - Text To Speech


Expand All @@ -116,7 +116,7 @@ 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
- [`generateLiveVideoToVideo`](docs/sdks/generate/README.md#livevideotovideo) - Live 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
Expand Down Expand Up @@ -249,11 +249,11 @@ If a HTTP request fails, an operation my also throw an error from the `models/er

In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `textToImage` method may throw the following errors:

| Error Type | Status Code | Content Type |
| -------------------------- | -------------------------- | -------------------------- |
| errors.HTTPError | 400, 401, 500 | application/json |
| errors.HTTPValidationError | 422 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |
| Error Type | Status Code | Content Type |
| -------------------------- | ------------- | ---------------- |
| errors.HTTPError | 400, 401, 500 | application/json |
| errors.HTTPValidationError | 422 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |

```typescript
import { Livepeer } from "@livepeer/ai";
Expand Down Expand Up @@ -314,12 +314,14 @@ Validation errors can also occur when either method arguments or data returned f

### Select Server by Index

You can override the default server globally by passing a server index to the `serverIdx` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
You can override the default server globally by passing a server index to the `serverIdx: number` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:

| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://dream-gateway.livepeer.cloud` | None |
| 1 | `https://livepeer.studio/api/beta/generate` | None |
| # | Server |
| --- | ------------------------------------------- |
| 0 | `https://dream-gateway.livepeer.cloud` |
| 1 | `https://livepeer.studio/api/beta/generate` |

#### Example

```typescript
import { Livepeer } from "@livepeer/ai";
Expand All @@ -342,11 +344,9 @@ run();

```


### Override Server URL Per-Client

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

The default server can also be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:
```typescript
import { Livepeer } from "@livepeer/ai";

Expand Down Expand Up @@ -425,9 +425,9 @@ const sdk = new Livepeer({ httpClient });

This SDK supports the following security scheme globally:

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

To authenticate with the API the `httpBearer` parameter must be set when initializing the SDK client instance. For example:
```typescript
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,14 @@ Based on:
### Generated
- [typescript v0.5.0] .
### Releases
- [NPM v0.5.0] https://www.npmjs.com/package/@livepeer/ai/v/0.5.0 - .
- [NPM v0.5.0] https://www.npmjs.com/package/@livepeer/ai/v/0.5.0 - .

## 2024-11-20 00:01:17
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.441.0 (2.460.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.5.1] .
### Releases
- [NPM v0.5.1] https://www.npmjs.com/package/@livepeer/ai/v/0.5.1 - .
2 changes: 1 addition & 1 deletion docs/models/components/audioresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { AudioResponse } from "@livepeer/ai/models/components";

let value: AudioResponse = {
audio: {
url: "https://quarrelsome-disappointment.info/",
url: "https://cumbersome-calculus.name/",
},
};
```
Expand Down
17 changes: 9 additions & 8 deletions docs/models/components/livevideotovideoparams.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@
import { LiveVideoToVideoParams } from "@livepeer/ai/models/components";

let value: LiveVideoToVideoParams = {
subscribeUrl: "https://gigantic-freezing.name/",
publishUrl: "https://writhing-brochure.biz/",
subscribeUrl: "https://writhing-brochure.biz/",
publishUrl: "https://quarrelsome-disappointment.info/",
};
```

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ |
| `subscribeUrl` | *string* | :heavy_check_mark: | Source URL of the incoming stream to subscribe to. |
| `publishUrl` | *string* | :heavy_check_mark: | Destination URL of the outgoing stream to publish. |
| `modelId` | *string* | :heavy_minus_sign: | Hugging Face model ID used for image generation. |
| `params` | [components.Params](../../models/components/params.md) | :heavy_minus_sign: | Initial parameters for the model. |
| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `subscribeUrl` | *string* | :heavy_check_mark: | Source URL of the incoming stream to subscribe to. |
| `publishUrl` | *string* | :heavy_check_mark: | Destination URL of the outgoing stream to publish. |
| `controlUrl` | *string* | :heavy_minus_sign: | URL for subscribing via Trickle protocol for updates in the live video-to-video generation params. |
| `modelId` | *string* | :heavy_minus_sign: | Name of the pipeline to run in the live video to video job. Notice that this is named model_id for consistency with other routes, but it does not refer to a Hugging Face model ID. The exact model(s) depends on the pipeline implementation and might be configurable via the `params` argument. |
| `params` | [components.Params](../../models/components/params.md) | :heavy_minus_sign: | Initial parameters for the pipeline. |
Loading

0 comments on commit 06d1e04

Please sign in to comment.