Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.421.2 (#19)
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 Oct 25, 2024
1 parent fc8808a commit a2e15c2
Show file tree
Hide file tree
Showing 35 changed files with 702 additions and 63 deletions.
31 changes: 25 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
lockVersion: 2.0.0
id: 8bd6d3b6-cae6-4e55-b72f-6fdc1dbce9a1
management:
docChecksum: 21334b8071b6c8e28a5dda229ceafd7e
speakeasyVersion: 1.405.6
generationVersion: 2.428.1
releaseVersion: 0.4.0
configChecksum: afd3c6579111409ef5d5b0b954be5634
docChecksum: a140881cbcff74961991f5dfff13f0a0
docVersion: 0.0.0
speakeasyVersion: 1.421.2
generationVersion: 2.438.15
releaseVersion: 0.4.1
configChecksum: 2d2321dd652b40627a863461eab6e343
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.1
core: 3.18.2
defaultEnabledRetries: 0.1.0
envVarSecurityUsage: 0.1.1
globalSecurity: 2.82.11
Expand All @@ -38,6 +39,8 @@ generatedFiles:
- docs/models/components/audio.md
- docs/models/components/bodygenaudiototext.md
- docs/models/components/bodygenimagetoimage.md
- docs/models/components/bodygenimagetotext.md
- docs/models/components/bodygenimagetotextimage.md
- docs/models/components/bodygenimagetovideo.md
- docs/models/components/bodygenimagetovideoimage.md
- docs/models/components/bodygenllm.md
Expand All @@ -48,6 +51,7 @@ generatedFiles:
- docs/models/components/chunk.md
- docs/models/components/image.md
- docs/models/components/imageresponse.md
- docs/models/components/imagetotextresponse.md
- docs/models/components/llmresponse.md
- docs/models/components/loc.md
- docs/models/components/masksresponse.md
Expand All @@ -61,6 +65,7 @@ generatedFiles:
- docs/models/errors/httpvalidationerror.md
- docs/models/operations/genaudiototextresponse.md
- docs/models/operations/genimagetoimageresponse.md
- docs/models/operations/genimagetotextresponse.md
- docs/models/operations/genimagetovideoresponse.md
- docs/models/operations/genllmresponse.md
- docs/models/operations/gensegmentanything2response.md
Expand All @@ -73,6 +78,7 @@ generatedFiles:
- src/core.ts
- src/funcs/generateAudioToText.ts
- src/funcs/generateImageToImage.ts
- src/funcs/generateImageToText.ts
- src/funcs/generateImageToVideo.ts
- src/funcs/generateLlm.ts
- src/funcs/generateSegmentAnything2.ts
Expand Down Expand Up @@ -100,12 +106,14 @@ generatedFiles:
- src/models/components/apierror.ts
- src/models/components/bodygenaudiototext.ts
- src/models/components/bodygenimagetoimage.ts
- src/models/components/bodygenimagetotext.ts
- src/models/components/bodygenimagetovideo.ts
- src/models/components/bodygenllm.ts
- src/models/components/bodygensegmentanything2.ts
- src/models/components/bodygenupscale.ts
- src/models/components/chunk.ts
- src/models/components/imageresponse.ts
- src/models/components/imagetotextresponse.ts
- src/models/components/index.ts
- src/models/components/llmresponse.ts
- src/models/components/masksresponse.ts
Expand All @@ -123,6 +131,7 @@ generatedFiles:
- src/models/errors/sdkvalidationerror.ts
- src/models/operations/genaudiototext.ts
- src/models/operations/genimagetoimage.ts
- src/models/operations/genimagetotext.ts
- src/models/operations/genimagetovideo.ts
- src/models/operations/genllm.ts
- src/models/operations/gensegmentanything2.ts
Expand Down Expand Up @@ -212,3 +221,13 @@ examples:
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
genImageToText:
speakeasy-default-gen-image-to-text:
requestBody:
multipart/form-data: {"image": {}}
responses:
"200":
application/json: {"text": "<value>"}
"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 @@ -11,7 +11,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.4.0
version: 0.4.1
additionalDependencies:
dependencies:
jest: ^29.7.0
Expand All @@ -25,6 +25,7 @@ typescript:
clientServerStatusCodesAsErrors: true
enumFormat: enum
flattenGlobalSecurity: true
flatteningOrder: body-first
imports:
option: openapi
paths:
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.405.6
speakeasyVersion: 1.421.2
sources:
livepeer-ai-OAS:
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:28d29014d26e0617906dcc16a4ceef1e093bd486b956a13eba844f8653004fca
sourceBlobDigest: sha256:1381f76cad0ec28b51d5559fdf87a0b14f39e2946fe25e0c21c0b8b0fe42cf99
sourceRevisionDigest: sha256:5354d8a69a4e1db3706c645db7becd62271bfc93572f1a65dc1df1fc8575ed1a
sourceBlobDigest: sha256:ad0b2e92bea306b60b1929309669cb1c3ca574325bb0ab4a2e44949fc8249a9f
tags:
- latest
- main
targets:
livepeer-ai-ts:
source: livepeer-ai-OAS
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:28d29014d26e0617906dcc16a4ceef1e093bd486b956a13eba844f8653004fca
sourceBlobDigest: sha256:1381f76cad0ec28b51d5559fdf87a0b14f39e2946fe25e0c21c0b8b0fe42cf99
sourceRevisionDigest: sha256:5354d8a69a4e1db3706c645db7becd62271bfc93572f1a65dc1df1fc8575ed1a
sourceBlobDigest: sha256:ad0b2e92bea306b60b1929309669cb1c3ca574325bb0ab4a2e44949fc8249a9f
codeSamplesNamespace: code-samples-typescript-livepeer-ts
codeSamplesRevisionDigest: sha256:dbf36c79c6b1c0a0c034081e1b0b210571b9f155e26c0f5bdf524ae4f3d05214
codeSamplesRevisionDigest: sha256:18cc5cd255be78c6bec9835dcfab751472a892f985bc172cb82f5cb6dadd6cb1
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ run();
* [audioToText](docs/sdks/generate/README.md#audiototext) - Audio To Text
* [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


</details>
Expand All @@ -109,14 +110,14 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).

<summary>Available standalone functions</summary>

- [generateAudioToText](docs/sdks/generate/README.md#audiototext)
- [generateImageToImage](docs/sdks/generate/README.md#imagetoimage)
- [generateImageToVideo](docs/sdks/generate/README.md#imagetovideo)
- [generateLlm](docs/sdks/generate/README.md#llm)
- [generateSegmentAnything2](docs/sdks/generate/README.md#segmentanything2)
- [generateTextToImage](docs/sdks/generate/README.md#texttoimage)
- [generateUpscale](docs/sdks/generate/README.md#upscale)

- [`generateAudioToText`](docs/sdks/generate/README.md#audiototext) - Audio To Text
- [`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
- [`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
- [`generateUpscale`](docs/sdks/generate/README.md#upscale) - Upscale

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

## 2024-10-25 00:01:21
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.421.2 (2.438.15) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.4.1] .
### Releases
- [NPM v0.4.1] https://www.npmjs.com/package/@livepeer/ai/v/0.4.1 - .
23 changes: 23 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,29 @@ actions:
console.log(result);
}
run();
- target: $["paths"]["/image-to-text"]["post"]
update:
x-codeSamples:
- lang: typescript
label: genImageToText
source: |-
import { Livepeer } from "@livepeer/ai";
import { openAsBlob } from "node:fs";
const livepeer = new Livepeer({
httpBearer: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.generate.imageToText({
image: await openAsBlob("example.file"),
});
// Handle the result
console.log(result);
}
run();
- target: $["paths"]["/image-to-video"]["post"]
update:
Expand Down
17 changes: 17 additions & 0 deletions docs/models/components/bodygenimagetotext.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# BodyGenImageToText

## Example Usage

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

// No examples available for this model
```

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `image` | [File](https://developer.mozilla.org/en-US/docs/Web/API/File) \| [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) \| [components.BodyGenImageToTextImage](../../models/components/bodygenimagetotextimage.md) | :heavy_check_mark: | Uploaded image to transform with the pipeline. |
| `modelId` | *string* | :heavy_minus_sign: | Hugging Face model ID used for transformation. |
| `prompt` | *string* | :heavy_minus_sign: | Text prompt(s) to guide transformation. |
16 changes: 16 additions & 0 deletions docs/models/components/bodygenimagetotextimage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# BodyGenImageToTextImage

## Example Usage

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

// No examples available for this model
```

## Fields

| Field | Type | Required | Description |
| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- |
| `fileName` | *string* | :heavy_check_mark: | N/A |
| `content` | *ReadableStream<Uint8Array>* | :heavy_check_mark: | N/A |
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://bright-agreement.net/",
seed: 778157,
url: "https://talkative-sauerkraut.org/",
seed: 978619,
nsfw: false,
},
],
Expand Down
19 changes: 19 additions & 0 deletions docs/models/components/imagetotextresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ImageToTextResponse

Response model for text generation.

## Example Usage

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

let value: ImageToTextResponse = {
text: "<value>",
};
```

## Fields

| Field | Type | Required | Description |
| ------------------- | ------------------- | ------------------- | ------------------- |
| `text` | *string* | :heavy_check_mark: | The generated text. |
2 changes: 1 addition & 1 deletion docs/models/components/llmresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { LLMResponse } from "@livepeer/ai/models/components";

let value: LLMResponse = {
response: "<value>",
tokensUsed: 456150,
tokensUsed: 18789,
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/loc.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ const value: string = "<value>";
### `number`

```typescript
const value: number = 118274;
const value: number = 143353;
```

4 changes: 2 additions & 2 deletions docs/models/components/media.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ A media object containing information about the generated media.
import { Media } from "@livepeer/ai/models/components";

let value: Media = {
url: "https://wonderful-sediment.info",
seed: 780529,
url: "https://leading-scaffold.com",
seed: 639921,
nsfw: false,
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/validationerror.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ValidationError } from "@livepeer/ai/models/components";

let value: ValidationError = {
loc: [
143353,
521848,
],
msg: "<value>",
type: "<value>",
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/videoresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { VideoResponse } from "@livepeer/ai/models/components";
let value: VideoResponse = {
images: [
{
url: "https://misguided-hawk.biz",
seed: 774234,
url: "https://favorable-sand.info/",
seed: 568434,
nsfw: false,
},
],
Expand Down
24 changes: 24 additions & 0 deletions docs/models/operations/genimagetotextresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# GenImageToTextResponse

## Example Usage

```typescript
import { GenImageToTextResponse } from "@livepeer/ai/models/operations";

let value: GenImageToTextResponse = {
contentType: "<value>",
statusCode: 100,
rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" },
}),
};
```

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `imageToTextResponse` | [components.ImageToTextResponse](../../models/components/imagetotextresponse.md) | :heavy_minus_sign: | Successful Response |
Loading

0 comments on commit a2e15c2

Please sign in to comment.