Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Oct 21, 2024
1 parent 77089f3 commit 7e5b7d6
Show file tree
Hide file tree
Showing 40 changed files with 769 additions and 78 deletions.
58 changes: 43 additions & 15 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
python:
version: 0.3.0
version: 0.4.1
additionalDependencies:
dev: {}
main: {}
Expand All @@ -22,8 +22,11 @@ python:
clientServerStatusCodesAsErrors: true
description: Python Client SDK for Livepeer Studio
enumFormat: enum
fixFlags:
responseRequiredSep2024: false
flattenGlobalSecurity: true
flattenRequests: false
flatteningOrder: parameters-first
imports:
option: openapi
paths:
Expand Down
8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ speakeasyVersion: 1.399.0
sources:
livepeer-studio-api:
sourceNamespace: livepeer-studio-api
sourceRevisionDigest: sha256:05b8e6f32af10787d3e904f94a0924c304ec1dd8357de9351eebd75f8ea9c3ca
sourceBlobDigest: sha256:aa27f19cd706fdbc92320eea5ca4d28aefd20557554f78a6fa0393320d8ee1d6
sourceRevisionDigest: sha256:8b1a8f7df796dc893e646e4b6678b39b4634783c064d30cc5eab1865604ef08d
sourceBlobDigest: sha256:8bdf57f7f10d5e51da7d611bfcc08b2c29912a6b9512de7ffcfaae90a0723183
tags:
- latest
- main
targets:
livepeer-python:
source: livepeer-studio-api
sourceNamespace: livepeer-studio-api
sourceRevisionDigest: sha256:05b8e6f32af10787d3e904f94a0924c304ec1dd8357de9351eebd75f8ea9c3ca
sourceBlobDigest: sha256:aa27f19cd706fdbc92320eea5ca4d28aefd20557554f78a6fa0393320d8ee1d6
sourceRevisionDigest: sha256:8b1a8f7df796dc893e646e4b6678b39b4634783c064d30cc5eab1865604ef08d
sourceBlobDigest: sha256:8bdf57f7f10d5e51da7d611bfcc08b2c29912a6b9512de7ffcfaae90a0723183
my-first-target:
source: livepeer-studio-api
sourceNamespace: livepeer-studio-api
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ if res.stream is not None:
* [upscale](docs/sdks/generate/README.md#upscale) - Upscale
* [audio_to_text](docs/sdks/generate/README.md#audio_to_text) - Audio To Text
* [segment_anything2](docs/sdks/generate/README.md#segment_anything2) - Segment Anything 2
* [llm](docs/sdks/generate/README.md#llm) - LLM


### [metrics](docs/sdks/metrics/README.md)
Expand Down Expand Up @@ -263,7 +264,7 @@ res = s.stream.create(request={
"multistream": {
"targets": [
{
"profile": "720p",
"profile": "720p0",
"video_only": False,
"id": "PUSH123",
"spec": {
Expand Down Expand Up @@ -346,7 +347,7 @@ res = s.stream.create(request={
"multistream": {
"targets": [
{
"profile": "720p",
"profile": "720p0",
"video_only": False,
"id": "PUSH123",
"spec": {
Expand Down Expand Up @@ -558,7 +559,7 @@ res = s.stream.create(request={
"multistream": {
"targets": [
{
"profile": "720p",
"profile": "720p0",
"video_only": False,
"id": "PUSH123",
"spec": {
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,14 @@ Based on:
### Generated
- [python v0.3.0] .
### Releases
- [PyPI v0.3.0] https://pypi.org/project/livepeer/0.3.0 - .
- [PyPI v0.3.0] https://pypi.org/project/livepeer/0.3.0 - .

## 2024-10-21 00:18:11
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.399.0 (2.415.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.4.1] .
### Releases
- [PyPI v0.4.1] https://pypi.org/project/livepeer/0.4.1 - .
4 changes: 2 additions & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ res = s.stream.create(request={
"multistream": {
"targets": [
{
"profile": "720p",
"profile": "720p0",
"video_only": False,
"id": "PUSH123",
"spec": {
Expand Down Expand Up @@ -144,7 +144,7 @@ async def main():
"multistream": {
"targets": [
{
"profile": "720p",
"profile": "720p0",
"video_only": False,
"id": "PUSH123",
"spec": {
Expand Down
32 changes: 26 additions & 6 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ actions:
if res is not None:
# handle response
pass
- target: $["paths"]["/api/beta/generate/audio-to-text"]["post"]
- target: $["paths"]["/api/generate/audio-to-text"]["post"]
update:
x-codeSamples:
- lang: python
Expand All @@ -110,7 +110,7 @@ actions:
if res.text_response is not None:
# handle response
pass
- target: $["paths"]["/api/beta/generate/image-to-image"]["post"]
- target: $["paths"]["/api/generate/image-to-image"]["post"]
update:
x-codeSamples:
- lang: python
Expand All @@ -133,7 +133,7 @@ actions:
if res.image_response is not None:
# handle response
pass
- target: $["paths"]["/api/beta/generate/image-to-video"]["post"]
- target: $["paths"]["/api/generate/image-to-video"]["post"]
update:
x-codeSamples:
- lang: python
Expand All @@ -155,7 +155,26 @@ actions:
if res.video_response is not None:
# handle response
pass
- target: $["paths"]["/api/beta/generate/segment-anything-2"]["post"]
- target: $["paths"]["/api/generate/llm"]["post"]
update:
x-codeSamples:
- lang: python
label: genLLM
source: |-
from livepeer import Livepeer
s = Livepeer(
api_key="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.generate.llm(request={
"prompt": "<value>",
})
if res.llm_response is not None:
# handle response
pass
- target: $["paths"]["/api/generate/segment-anything-2"]["post"]
update:
x-codeSamples:
- lang: python
Expand All @@ -177,7 +196,7 @@ actions:
if res.masks_response is not None:
# handle response
pass
- target: $["paths"]["/api/beta/generate/text-to-image"]["post"]
- target: $["paths"]["/api/generate/text-to-image"]["post"]
update:
x-codeSamples:
- lang: python
Expand All @@ -196,7 +215,7 @@ actions:
if res.image_response is not None:
# handle response
pass
- target: $["paths"]["/api/beta/generate/upscale"]["post"]
- target: $["paths"]["/api/generate/upscale"]["post"]
update:
x-codeSamples:
- lang: python
Expand Down Expand Up @@ -1009,6 +1028,7 @@ actions:
},
],
},
"name": "test_stream",
})
if res is not None:
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/asset.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
| `playback_id` | *Optional[str]* | :heavy_minus_sign: | The playback ID to use with the Playback Info endpoint to retrieve playback URLs. | eaw4nk06ts2d0mzb |
| ~~`user_id`~~ | *Optional[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | 66E2161C-7670-4D05-B71D-DA2D6979556F |
| `playback_url` | *Optional[str]* | :heavy_minus_sign: | URL for HLS playback. **It is recommended to not use this URL**, and instead use playback IDs with the Playback Info endpoint to retrieve the playback URLs - this URL format is subject to change (e.g. https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8). | https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8 |
| `download_url` | *Optional[str]* | :heavy_minus_sign: | The URL to directly download the asset, e.g. `https://livepeercdn.com/asset/eawrrk06ts2d0mzb/video`. It is not recommended to use this for playback. | https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video |
| `download_url` | *Optional[str]* | :heavy_minus_sign: | The URL to directly download the asset, e.g. `https://livepeercdn.com/asset/eawrrk06ts2d0mzb/video`. It is not recommended to use this for playback. | https://livepeercdn.com/asset/eaw4nk06ts2d0mzb/video/download.mp4 |
| `playback_policy` | [OptionalNullable[components.PlaybackPolicy]](../../models/components/playbackpolicy.md) | :heavy_minus_sign: | Whether the playback policy for an asset or stream is public or signed | |
| `creator_id` | [Optional[components.CreatorID]](../../models/components/creatorid.md) | :heavy_minus_sign: | N/A | |
| `profiles` | List[[components.TranscodeProfile](../../models/components/transcodeprofile.md)] | :heavy_minus_sign: | Requested profiles for the asset to be transcoded into. Configured<br/>on the upload APIs payload or through the `stream.recordingSpec`<br/>field for recordings. If not specified, default profiles are derived<br/>based on the source input. If this is a recording, the source will<br/>not be present in this list but will be available for playback.<br/> | |
Expand Down
Loading

0 comments on commit 7e5b7d6

Please sign in to comment.