Skip to content

Commit 77089f3

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.0 (#25)
Co-authored-by: speakeasybot <[email protected]>
1 parent eb46c5e commit 77089f3

26 files changed

+158
-487
lines changed

.speakeasy/gen.lock

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
lockVersion: 2.0.0
22
id: 8c3ff122-1fb8-439c-8680-989f956dfd8d
33
management:
4-
docChecksum: 435fd84a2b3131f1117db532d7dc36aa
4+
docChecksum: a4f46cb330dd59f1f60caa6eaccdbd3b
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.398.1
6+
speakeasyVersion: 1.399.0
77
generationVersion: 2.415.8
8-
releaseVersion: 0.2.0
9-
configChecksum: 274e324c9ee60c7fda251c90665003b3
8+
releaseVersion: 0.3.0
9+
configChecksum: e2a3f034034c8b68bbb6d9b34363d9f6
1010
repoURL: https://github.com/livepeer/livepeer-python.git
1111
installationURL: https://github.com/livepeer/livepeer-python.git
12+
published: true
1213
features:
1314
python:
1415
additionalDependencies: 1.0.0
@@ -26,7 +27,6 @@ features:
2627
globalSecurityFlattening: 1.0.0
2728
globalServerURLs: 3.0.0
2829
inputOutputModels: 3.0.0
29-
methodSecurity: 3.0.0
3030
multipartFileContentType: 1.0.0
3131
nameOverrides: 3.0.0
3232
nullables: 1.0.0
@@ -289,17 +289,11 @@ generatedFiles:
289289
- docs/models/operations/deletewebhookresponse.md
290290
- docs/models/operations/from_.md
291291
- docs/models/operations/genaudiototextresponse.md
292-
- docs/models/operations/genaudiototextsecurity.md
293292
- docs/models/operations/genimagetoimageresponse.md
294-
- docs/models/operations/genimagetoimagesecurity.md
295293
- docs/models/operations/genimagetovideoresponse.md
296-
- docs/models/operations/genimagetovideosecurity.md
297294
- docs/models/operations/gensegmentanything2response.md
298-
- docs/models/operations/gensegmentanything2security.md
299295
- docs/models/operations/gentexttoimageresponse.md
300-
- docs/models/operations/gentexttoimagesecurity.md
301296
- docs/models/operations/genupscaleresponse.md
302-
- docs/models/operations/genupscalesecurity.md
303297
- docs/models/operations/getassetrequest.md
304298
- docs/models/operations/getassetresponse.md
305299
- docs/models/operations/getassetsresponse.md

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: true
1414
python:
15-
version: 0.2.0
15+
version: 0.3.0
1616
additionalDependencies:
1717
dev: {}
1818
main: {}

.speakeasy/workflow.lock

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
speakeasyVersion: 1.398.1
1+
speakeasyVersion: 1.399.0
22
sources:
33
livepeer-studio-api:
44
sourceNamespace: livepeer-studio-api
5-
sourceRevisionDigest: sha256:a3526ec2de6aec694c70ec0f0eabff4e4fd3bed4c106366a7e9ec4d127f93adb
6-
sourceBlobDigest: sha256:2f90b2238bc559477e75134c6c63fe740188463a049ff343c3a0d252ccbd7645
5+
sourceRevisionDigest: sha256:05b8e6f32af10787d3e904f94a0924c304ec1dd8357de9351eebd75f8ea9c3ca
6+
sourceBlobDigest: sha256:aa27f19cd706fdbc92320eea5ca4d28aefd20557554f78a6fa0393320d8ee1d6
77
tags:
88
- latest
9+
- main
910
targets:
1011
livepeer-python:
1112
source: livepeer-studio-api
1213
sourceNamespace: livepeer-studio-api
13-
sourceRevisionDigest: sha256:a3526ec2de6aec694c70ec0f0eabff4e4fd3bed4c106366a7e9ec4d127f93adb
14-
sourceBlobDigest: sha256:2f90b2238bc559477e75134c6c63fe740188463a049ff343c3a0d252ccbd7645
14+
sourceRevisionDigest: sha256:05b8e6f32af10787d3e904f94a0924c304ec1dd8357de9351eebd75f8ea9c3ca
15+
sourceBlobDigest: sha256:aa27f19cd706fdbc92320eea5ca4d28aefd20557554f78a6fa0393320d8ee1d6
1516
my-first-target:
1617
source: livepeer-studio-api
1718
sourceNamespace: livepeer-studio-api
@@ -31,5 +32,8 @@ workflow:
3132
livepeer-python:
3233
target: python
3334
source: livepeer-studio-api
35+
publish:
36+
pypi:
37+
token: $pypi_token
3438
codeSamples:
3539
output: codeSamples.yaml

README.md

Lines changed: 17 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ The SDK can be installed with either *pip* or *poetry* package managers.
1717
*PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line.
1818

1919
```bash
20-
pip install git+https://github.com/livepeer/livepeer-python.git
20+
pip install livepeer
2121
```
2222

2323
### Poetry
2424

2525
*Poetry* is a modern tool that simplifies dependency management and package publishing by using a single `pyproject.toml` file to handle project metadata and dependencies.
2626

2727
```bash
28-
poetry add git+https://github.com/livepeer/livepeer-python.git
28+
poetry add livepeer
2929
```
3030
<!-- End SDK Installation [installation] -->
3131

@@ -175,13 +175,12 @@ Certain SDK methods accept file objects as part of a request body or multi-part
175175
176176
```python
177177
from livepeer import Livepeer
178-
from livepeer.models import operations
179178

180-
s = Livepeer()
179+
s = Livepeer(
180+
api_key="<YOUR_BEARER_TOKEN_HERE>",
181+
)
181182

182-
res = s.generate.image_to_image(security=operations.GenImageToImageSecurity(
183-
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
184-
), request={
183+
res = s.generate.image_to_image(request={
185184
"prompt": "<value>",
186185
"image": {
187186
"file_name": "example.file",
@@ -575,27 +574,6 @@ if res.stream is not None:
575574
# handle response
576575
pass
577576

578-
```
579-
580-
### Per-Operation Security Schemes
581-
582-
Some operations in this SDK require the security scheme to be specified at the request level. For example:
583-
```python
584-
from livepeer import Livepeer
585-
from livepeer.models import operations
586-
587-
s = Livepeer()
588-
589-
res = s.generate.text_to_image(security=operations.GenTextToImageSecurity(
590-
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
591-
), request={
592-
"prompt": "<value>",
593-
})
594-
595-
if res.image_response is not None:
596-
# handle response
597-
pass
598-
599577
```
600578
<!-- End Authentication [security] -->
601579

@@ -610,39 +588,17 @@ what they return.
610588
<!-- Start Table of Contents [toc] -->
611589
## Table of Contents
612590

613-
- [Livepeer Python Library](#livepeer-python-library)
614-
- [Documentation](#documentation)
615-
- [SDK Installation](#sdk-installation)
616-
- [PIP](#pip)
617-
- [Poetry](#poetry)
618-
- [SDK Example Usage](#sdk-example-usage)
619-
- [Example](#example)
620-
- [Available Resources and Operations](#available-resources-and-operations)
621-
- [access\_control](#access_control)
622-
- [asset](#asset)
623-
- [generate](#generate)
624-
- [metrics](#metrics)
625-
- [multistream](#multistream)
626-
- [playback](#playback)
627-
- [~~room~~](#room)
628-
- [session](#session)
629-
- [stream](#stream)
630-
- [task](#task)
631-
- [transcode](#transcode)
632-
- [webhook](#webhook)
633-
- [File uploads](#file-uploads)
634-
- [Retries](#retries)
635-
- [Error Handling](#error-handling)
636-
- [Example](#example-1)
637-
- [Custom HTTP Client](#custom-http-client)
638-
- [Authentication](#authentication)
639-
- [Per-Client Security Schemes](#per-client-security-schemes)
640-
- [Per-Operation Security Schemes](#per-operation-security-schemes)
641-
- [Summary](#summary)
642-
- [Table of Contents](#table-of-contents)
643-
- [IDE Support](#ide-support)
644-
- [PyCharm](#pycharm)
645-
- [Debugging](#debugging)
591+
* [SDK Installation](#sdk-installation)
592+
* [IDE Support](#ide-support)
593+
* [SDK Example Usage](#sdk-example-usage)
594+
* [Available Resources and Operations](#available-resources-and-operations)
595+
* [File uploads](#file-uploads)
596+
* [Retries](#retries)
597+
* [Error Handling](#error-handling)
598+
* [Server Selection](#server-selection)
599+
* [Custom HTTP Client](#custom-http-client)
600+
* [Authentication](#authentication)
601+
* [Debugging](#debugging)
646602
<!-- End Table of Contents [toc] -->
647603

648604
<!-- Start IDE Support [idesupport] -->

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,14 @@ Based on:
9494
- OpenAPI Doc
9595
- Speakeasy CLI 1.398.1 (2.415.8) https://github.com/speakeasy-api/speakeasy
9696
### Generated
97-
- [python v0.2.0] .
97+
- [python v0.2.0] .
98+
99+
## 2024-09-17 20:54:48
100+
### Changes
101+
Based on:
102+
- OpenAPI Doc
103+
- Speakeasy CLI 1.399.0 (2.415.8) https://github.com/speakeasy-api/speakeasy
104+
### Generated
105+
- [python v0.3.0] .
106+
### Releases
107+
- [PyPI v0.3.0] https://pypi.org/project/livepeer/0.3.0 - .

codeSamples.yaml

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,12 @@ actions:
9595
label: genAudioToText
9696
source: |-
9797
from livepeer import Livepeer
98-
from livepeer.models import operations
9998
100-
s = Livepeer()
99+
s = Livepeer(
100+
api_key="<YOUR_BEARER_TOKEN_HERE>",
101+
)
101102
102-
res = s.generate.audio_to_text(security=operations.GenAudioToTextSecurity(
103-
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
104-
), request={
103+
res = s.generate.audio_to_text(request={
105104
"audio": {
106105
"file_name": "example.file",
107106
"content": open("example.file", "rb"),
@@ -118,13 +117,12 @@ actions:
118117
label: genImageToImage
119118
source: |-
120119
from livepeer import Livepeer
121-
from livepeer.models import operations
122120
123-
s = Livepeer()
121+
s = Livepeer(
122+
api_key="<YOUR_BEARER_TOKEN_HERE>",
123+
)
124124
125-
res = s.generate.image_to_image(security=operations.GenImageToImageSecurity(
126-
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
127-
), request={
125+
res = s.generate.image_to_image(request={
128126
"prompt": "<value>",
129127
"image": {
130128
"file_name": "example.file",
@@ -142,13 +140,12 @@ actions:
142140
label: genImageToVideo
143141
source: |-
144142
from livepeer import Livepeer
145-
from livepeer.models import operations
146143
147-
s = Livepeer()
144+
s = Livepeer(
145+
api_key="<YOUR_BEARER_TOKEN_HERE>",
146+
)
148147
149-
res = s.generate.image_to_video(security=operations.GenImageToVideoSecurity(
150-
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
151-
), request={
148+
res = s.generate.image_to_video(request={
152149
"image": {
153150
"file_name": "example.file",
154151
"content": open("example.file", "rb"),
@@ -165,13 +162,12 @@ actions:
165162
label: genSegmentAnything2
166163
source: |-
167164
from livepeer import Livepeer
168-
from livepeer.models import operations
169165
170-
s = Livepeer()
166+
s = Livepeer(
167+
api_key="<YOUR_BEARER_TOKEN_HERE>",
168+
)
171169
172-
res = s.generate.segment_anything2(security=operations.GenSegmentAnything2Security(
173-
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
174-
), request={
170+
res = s.generate.segment_anything2(request={
175171
"image": {
176172
"file_name": "example.file",
177173
"content": open("example.file", "rb"),
@@ -188,13 +184,12 @@ actions:
188184
label: genTextToImage
189185
source: |-
190186
from livepeer import Livepeer
191-
from livepeer.models import operations
192187
193-
s = Livepeer()
188+
s = Livepeer(
189+
api_key="<YOUR_BEARER_TOKEN_HERE>",
190+
)
194191
195-
res = s.generate.text_to_image(security=operations.GenTextToImageSecurity(
196-
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
197-
), request={
192+
res = s.generate.text_to_image(request={
198193
"prompt": "<value>",
199194
})
200195
@@ -208,13 +203,12 @@ actions:
208203
label: genUpscale
209204
source: |-
210205
from livepeer import Livepeer
211-
from livepeer.models import operations
212206
213-
s = Livepeer()
207+
s = Livepeer(
208+
api_key="<YOUR_BEARER_TOKEN_HERE>",
209+
)
214210
215-
res = s.generate.upscale(security=operations.GenUpscaleSecurity(
216-
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
217-
), request={
211+
res = s.generate.upscale(request={
218212
"prompt": "<value>",
219213
"image": {
220214
"file_name": "example.file",

docs/models/components/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
| Field | Type | Required | Description |
77
| ------------------ | ------------------ | ------------------ | ------------------ |
8-
| `api_key` | *Optional[str]* | :heavy_minus_sign: | N/A |
8+
| `api_key` | *str* | :heavy_check_mark: | N/A |

docs/models/operations/genaudiototextsecurity.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/models/operations/genimagetoimagesecurity.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/models/operations/genimagetovideosecurity.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)