Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.454.0 (#22)
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 Dec 12, 2024
1 parent 653c9c9 commit f9c6f01
Show file tree
Hide file tree
Showing 68 changed files with 1,121 additions and 83 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/react-query
/__tests__
# Speakeasy
/models
Expand Down
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
**/*
!/FUNCTIONS.md
!/RUNTIMES.md
!/REACT_QUERY.md
!/**/*.ts
!/**/*.js
!/**/*.map
Expand Down
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: a690daf53c97c95bb6c912a2c59f804d
docVersion: 0.0.0
speakeasyVersion: 1.434.0
generationVersion: 2.452.0
releaseVersion: 0.5.0
configChecksum: aedc0e9ba8ffdca9aa407f90c308a96c
speakeasyVersion: 1.454.0
generationVersion: 2.477.0
releaseVersion: 0.6.0
configChecksum: 46257babca85eed2675780b7015dc1c1
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.9
defaultEnabledRetries: 0.1.0
envVarSecurityUsage: 0.1.2
globalSecurity: 2.82.11
Expand All @@ -25,7 +25,6 @@ features:
responseFormat: 0.2.3
retries: 2.83.0
sdkHooks: 0.2.0
tests: 0.7.0
unions: 2.85.8
uploadStreams: 0.1.0
generatedFiles:
Expand Down Expand Up @@ -267,3 +266,4 @@ examples:
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
generatedTests: {}
4 changes: 3 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.6.0
additionalDependencies:
dependencies:
jest: ^29.7.0
Expand All @@ -24,6 +24,8 @@ typescript:
additionalPackageJSON: {}
author: Livepeer
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
enableReactQuery: false
enumFormat: enum
flattenGlobalSecurity: true
flatteningOrder: body-first
Expand Down
15 changes: 8 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
speakeasyVersion: 1.434.0
speakeasyVersion: 1.454.0
sources:
livepeer-ai-OAS:
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:2b05b4d158138f959e4c1780587470df5cbe29ce56bea9714d8e202946f7e06b
sourceBlobDigest: sha256:c56907fa67feba848782a2720c447e2d442b420d4c1feae871ac97b3476e2c08
sourceRevisionDigest: sha256:26819ab7f27b32612a3068222ed66a3115c07d562aa7afa6ca5b9ce28c3baec9
sourceBlobDigest: sha256:96965175cd37993dd71c66039301a689b5a65b4068d704a3f31b91666c0df03b
tags:
- latest
- main
- speakeasy-sdk-regen-1732060880
- 0.0.0
targets:
livepeer-ai-ts:
source: livepeer-ai-OAS
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:2b05b4d158138f959e4c1780587470df5cbe29ce56bea9714d8e202946f7e06b
sourceBlobDigest: sha256:c56907fa67feba848782a2720c447e2d442b420d4c1feae871ac97b3476e2c08
sourceRevisionDigest: sha256:26819ab7f27b32612a3068222ed66a3115c07d562aa7afa6ca5b9ce28c3baec9
sourceBlobDigest: sha256:96965175cd37993dd71c66039301a689b5a65b4068d704a3f31b91666c0df03b
codeSamplesNamespace: code-samples-typescript-livepeer-ts
codeSamplesRevisionDigest: sha256:a455e5bc3bf0384a0ec996d72d5f856137508822bc5b725be51cea223ff91477
codeSamplesRevisionDigest: sha256:022be69bfb60ba8471e0c9c73eb59a38827f90384ba8493989e5ef3a11a6c3f4
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
65 changes: 35 additions & 30 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 Expand Up @@ -476,19 +476,24 @@ Livepeer AI Runner: An application to run AI pipelines

<!-- Start Table of Contents [toc] -->
## Table of Contents
<!-- $toc-max-depth=2 -->
* [Livepeer AI JavaScript/TypeScript Library](#livepeer-ai-javascripttypescript-library)
* [SDK Installation](#sdk-installation)
* [Requirements](#requirements)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Standalone functions](#standalone-functions)
* [File uploads](#file-uploads)
* [Retries](#retries)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Debugging](#debugging)
* [Development](#development)
* [Maturity](#maturity)
* [Contributions](#contributions)

* [SDK Installation](#sdk-installation)
* [Requirements](#requirements)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Standalone functions](#standalone-functions)
* [File uploads](#file-uploads)
* [Retries](#retries)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Debugging](#debugging)
<!-- End Table of Contents [toc] -->

<!-- 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 @@ -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-12-12 00:01:12
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.454.0 (2.477.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.6.0] .
### Releases
- [NPM v0.6.0] https://www.npmjs.com/package/@livepeer/ai/v/0.6.0 - .
Loading

0 comments on commit f9c6f01

Please sign in to comment.