Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.383.2 (#6)
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 Aug 30, 2024
1 parent f43839c commit 604c55a
Show file tree
Hide file tree
Showing 10 changed files with 74 additions and 28 deletions.
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 8766970f-4397-4dff-8082-81333329536d
management:
docChecksum: 130845ee701d46932641282f72ec57ab
docVersion: v0.1.2
speakeasyVersion: 1.382.0
generationVersion: 2.404.11
releaseVersion: 0.1.5
configChecksum: 5209f43e9e6b3e3aa6085dc985caddd3
docChecksum: 24fe39a0fb7794800b7d995f98944b86
docVersion: v0.1.3
speakeasyVersion: 1.383.2
generationVersion: 2.407.0
releaseVersion: 0.1.6
configChecksum: acd240653e474292cc47a4d915ea6a83
repoURL: https://github.com/livepeer/livepeer-ai-js.git
installationURL: https://github.com/livepeer/livepeer-ai-js
features:
Expand Down
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.1.5
version: 0.1.6
additionalDependencies:
dependencies: {}
devDependencies: {}
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.382.0
speakeasyVersion: 1.383.2
sources:
livepeer-ai-OAS:
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:d8fa8826df6c9c967d8821088dc6d16c876413565a486984e61488d0304594bb
sourceBlobDigest: sha256:25056b91ebfc680137633064f5f3d767eb0bf6541a873d9e342013ed06a636ee
sourceRevisionDigest: sha256:1f692e5ce7a00cd1d21f94c0de2f1984edc3f7aaea3efe0de3cca938d90f5417
sourceBlobDigest: sha256:6062f3b4ac6538ff6f4465a264f1806261e6509c5581be6c2189430acb21b315
tags:
- latest
- main
targets:
livepeer-ai-ts:
source: livepeer-ai-OAS
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:d8fa8826df6c9c967d8821088dc6d16c876413565a486984e61488d0304594bb
sourceBlobDigest: sha256:25056b91ebfc680137633064f5f3d767eb0bf6541a873d9e342013ed06a636ee
sourceRevisionDigest: sha256:1f692e5ce7a00cd1d21f94c0de2f1984edc3f7aaea3efe0de3cca938d90f5417
sourceBlobDigest: sha256:6062f3b4ac6538ff6f4465a264f1806261e6509c5581be6c2189430acb21b315
codeSamplesNamespace: code-samples-typescript-livepeer-ts
codeSamplesRevisionDigest: sha256:c1ea3aee4543d250aa5e6dec8c6c01ecf6204110aed11c744fdcc68a7bf3b39b
codeSamplesRevisionDigest: sha256:1c78aecda79a28b59b82956c246fb9e1b3d6d4f683833677899e2bd9e21e4137
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
37 changes: 32 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Welcome to the [Livepeer AI](https://livepeer.ai/) JavaScript/TypeScript Library
<!-- Start SDK Installation [installation] -->
## SDK Installation

The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers.

### NPM

```bash
Expand Down Expand Up @@ -234,7 +236,7 @@ Validation errors can also occur when either method arguments or data returned f

```typescript
import { LivepeerAI } from "livepeer-ai";
import { SDKValidationError } from "livepeer-ai/models/errors";
import { HTTPError, HTTPValidationError, SDKValidationError } from "livepeer-ai/models/errors";

const livepeerAI = new LivepeerAI({
httpBearer: "<YOUR_BEARER_TOKEN_HERE>",
Expand All @@ -255,12 +257,14 @@ async function run() {
console.error(err.rawValue);
return;
}
case err instanceof errors.HTTPError: {
console.error(err); // handle exception
case err instanceof HTTPError: {
// Handle err.data$: HTTPErrorData
console.error(err);
return;
}
case err instanceof errors.HTTPValidationError: {
console.error(err); // handle exception
case err instanceof HTTPValidationError: {
// Handle err.data$: HTTPValidationErrorData
console.error(err);
return;
}
default: {
Expand Down Expand Up @@ -437,6 +441,29 @@ const sdk = new LivepeerAI({ debugLogger: console });
```
<!-- End Debugging [debug] -->

<!-- Start Summary [summary] -->
## Summary

Livepeer AI Runner: An application to run AI pipelines
<!-- End Summary [summary] -->

<!-- Start Table of Contents [toc] -->
## Table of Contents

* [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 -->

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

## 2024-08-30 00:01:21
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.383.2 (2.407.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.1.6] .
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "livepeer-ai",
"version": "0.1.5",
"version": "0.1.6",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "livepeer-ai",
"version": "0.1.5",
"version": "0.1.6",
"author": "Livepeer",
"main": "./index.js",
"sideEffects": false,
Expand Down
8 changes: 4 additions & 4 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {

export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "v0.1.2",
sdkVersion: "0.1.5",
genVersion: "2.404.11",
userAgent: "speakeasy-sdk/typescript 0.1.5 2.404.11 v0.1.2 livepeer-ai",
openapiDocVersion: "v0.1.3",
sdkVersion: "0.1.6",
genVersion: "2.407.0",
userAgent: "speakeasy-sdk/typescript 0.1.6 2.407.0 v0.1.3 livepeer-ai",
} as const;
13 changes: 12 additions & 1 deletion src/lib/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,20 @@ type SecurityInputOAuth2ClientCredentials = {
fieldName: string;
};

type SecurityInputCustom = {
type: "http:custom";
value: any | null | undefined;
fieldName: string;
};

export type SecurityInput =
| SecurityInputBasic
| SecurityInputBearer
| SecurityInputAPIKey
| SecurityInputOAuth2
| SecurityInputOAuth2ClientCredentials
| SecurityInputOIDC;
| SecurityInputOIDC
| SecurityInputCustom;

export function resolveSecurity(...options: SecurityInput[][]): SecurityState | null {
const state: SecurityState = {
Expand All @@ -93,6 +100,8 @@ export function resolveSecurity(...options: SecurityInput[][]): SecurityState |
return false;
} else if (o.type === "http:basic") {
return o.value.username != null || o.value.password != null;
} else if (o.type === "http:custom") {
return null;
} else if (typeof o.value === "string") {
return !!o.value;
} else {
Expand Down Expand Up @@ -126,6 +135,8 @@ export function resolveSecurity(...options: SecurityInput[][]): SecurityState |
case "http:basic":
applyBasic(state, spec);
break;
case "http:custom":
break;
case "http:bearer":
applyBearer(state, spec);
break;
Expand Down

0 comments on commit 604c55a

Please sign in to comment.