Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.382.0 (#5)
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 29, 2024
1 parent 681fb5e commit f43839c
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 42 deletions.
10 changes: 5 additions & 5 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: 83217fd4aabc3c12bd4c7c073283767b
docChecksum: 130845ee701d46932641282f72ec57ab
docVersion: v0.1.2
speakeasyVersion: 1.379.0
generationVersion: 2.404.3
releaseVersion: 0.1.4
configChecksum: dc87f155690efe292553b5f415f0fe91
speakeasyVersion: 1.382.0
generationVersion: 2.404.11
releaseVersion: 0.1.5
configChecksum: 5209f43e9e6b3e3aa6085dc985caddd3
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.4
version: 0.1.5
additionalDependencies:
dependencies: {}
devDependencies: {}
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.379.0
speakeasyVersion: 1.382.0
sources:
livepeer-ai-OAS:
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:382bb92d3c451ea10e067c4c0d9eeaedc82657215d22432f9d86a4981882cb9e
sourceBlobDigest: sha256:ee28086f4eaa298e1404a97caca0662f99cb75f174c0165e35bdbf805b0f19ce
sourceRevisionDigest: sha256:d8fa8826df6c9c967d8821088dc6d16c876413565a486984e61488d0304594bb
sourceBlobDigest: sha256:25056b91ebfc680137633064f5f3d767eb0bf6541a873d9e342013ed06a636ee
tags:
- latest
- main
targets:
livepeer-ai-ts:
source: livepeer-ai-OAS
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:382bb92d3c451ea10e067c4c0d9eeaedc82657215d22432f9d86a4981882cb9e
sourceBlobDigest: sha256:ee28086f4eaa298e1404a97caca0662f99cb75f174c0165e35bdbf805b0f19ce
sourceRevisionDigest: sha256:d8fa8826df6c9c967d8821088dc6d16c876413565a486984e61488d0304594bb
sourceBlobDigest: sha256:25056b91ebfc680137633064f5f3d767eb0bf6541a873d9e342013ed06a636ee
codeSamplesNamespace: code-samples-typescript-livepeer-ts
codeSamplesRevisionDigest: sha256:3d03e6e38406e206f344c9070b67ec7bd446729e17847a349337cffdf123a4eb
outLocation: /home/ricks/development/livepeer/ai/livepeer-ai-js
codeSamplesRevisionDigest: sha256:c1ea3aee4543d250aa5e6dec8c6c01ecf6204110aed11c744fdcc68a7bf3b39b
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,13 @@ You can override the default server globally by passing a server index to the `s
| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://dream-gateway.livepeer.cloud` | None |
| 1 | `https://livepeer.studio/api/beta/generate` | None |

```typescript
import { LivepeerAI } from "livepeer-ai";

const livepeerAI = new LivepeerAI({
serverIdx: 0,
serverIdx: 1,
httpBearer: "<YOUR_BEARER_TOKEN_HERE>",
});

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

## 2024-08-29 00:01:22
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.382.0 (2.404.11) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.1.5] .
40 changes: 20 additions & 20 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ info:
title: CodeSamples overlay for typescript target
version: 0.0.0
actions:
- target: $["paths"]["/image-to-video"]["post"]
- target: $["paths"]["/upscale"]["post"]
update:
x-codeSamples:
- lang: typescript
label: image_to_video
label: upscale
source: |-
import { LivepeerAI } from "livepeer-ai";
import { openAsBlob } from "node:fs";
Expand All @@ -17,7 +17,8 @@ actions:
});
async function run() {
const result = await livepeerAI.imageToVideo({
const result = await livepeerAI.upscale({
prompt: "<value>",
image: await openAsBlob("./sample-file"),
});
Expand All @@ -26,11 +27,11 @@ actions:
}
run();
- target: $["paths"]["/upscale"]["post"]
- target: $["paths"]["/audio-to-text"]["post"]
update:
x-codeSamples:
- lang: typescript
label: upscale
label: audio_to_text
source: |-
import { LivepeerAI } from "livepeer-ai";
import { openAsBlob } from "node:fs";
Expand All @@ -40,66 +41,66 @@ actions:
});
async function run() {
const result = await livepeerAI.upscale({
prompt: "<value>",
image: await openAsBlob("./sample-file"),
const result = await livepeerAI.audioToText({
audio: await openAsBlob("./sample-file"),
});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/audio-to-text"]["post"]
- target: $["paths"]["/text-to-image"]["post"]
update:
x-codeSamples:
- lang: typescript
label: audio_to_text
label: text_to_image
source: |-
import { LivepeerAI } from "livepeer-ai";
import { openAsBlob } from "node:fs";
const livepeerAI = new LivepeerAI({
httpBearer: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeerAI.audioToText({
audio: await openAsBlob("./sample-file"),
const result = await livepeerAI.textToImage({
prompt: "<value>",
});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/text-to-image"]["post"]
- target: $["paths"]["/image-to-image"]["post"]
update:
x-codeSamples:
- lang: typescript
label: text_to_image
label: image_to_image
source: |-
import { LivepeerAI } from "livepeer-ai";
import { openAsBlob } from "node:fs";
const livepeerAI = new LivepeerAI({
httpBearer: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeerAI.textToImage({
const result = await livepeerAI.imageToImage({
prompt: "<value>",
image: await openAsBlob("./sample-file"),
});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/image-to-image"]["post"]
- target: $["paths"]["/image-to-video"]["post"]
update:
x-codeSamples:
- lang: typescript
label: image_to_image
label: image_to_video
source: |-
import { LivepeerAI } from "livepeer-ai";
import { openAsBlob } from "node:fs";
Expand All @@ -109,8 +110,7 @@ actions:
});
async function run() {
const result = await livepeerAI.imageToImage({
prompt: "<value>",
const result = await livepeerAI.imageToVideo({
image: await openAsBlob("./sample-file"),
});
Expand Down
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.4",
"version": "0.1.5",
"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.4",
"version": "0.1.5",
"author": "Livepeer",
"main": "./index.js",
"sideEffects": false,
Expand Down
10 changes: 7 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export const ServerList = [
* Livepeer Cloud Community Gateway
*/
"https://dream-gateway.livepeer.cloud",
/**
* Livepeer Studio Gateway
*/
"https://livepeer.studio/api/beta/generate",
] as const;

export type SDKOptions = {
Expand Down Expand Up @@ -57,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "v0.1.2",
sdkVersion: "0.1.4",
genVersion: "2.404.3",
userAgent: "speakeasy-sdk/typescript 0.1.4 2.404.3 v0.1.2 livepeer-ai",
sdkVersion: "0.1.5",
genVersion: "2.404.11",
userAgent: "speakeasy-sdk/typescript 0.1.5 2.404.11 v0.1.2 livepeer-ai",
} as const;

0 comments on commit f43839c

Please sign in to comment.