Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.0 (#25)
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 Sep 17, 2024
1 parent eb46c5e commit 77089f3
Show file tree
Hide file tree
Showing 26 changed files with 158 additions and 487 deletions.
16 changes: 5 additions & 11 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
lockVersion: 2.0.0
id: 8c3ff122-1fb8-439c-8680-989f956dfd8d
management:
docChecksum: 435fd84a2b3131f1117db532d7dc36aa
docChecksum: a4f46cb330dd59f1f60caa6eaccdbd3b
docVersion: 1.0.0
speakeasyVersion: 1.398.1
speakeasyVersion: 1.399.0
generationVersion: 2.415.8
releaseVersion: 0.2.0
configChecksum: 274e324c9ee60c7fda251c90665003b3
releaseVersion: 0.3.0
configChecksum: e2a3f034034c8b68bbb6d9b34363d9f6
repoURL: https://github.com/livepeer/livepeer-python.git
installationURL: https://github.com/livepeer/livepeer-python.git
published: true
features:
python:
additionalDependencies: 1.0.0
Expand All @@ -26,7 +27,6 @@ features:
globalSecurityFlattening: 1.0.0
globalServerURLs: 3.0.0
inputOutputModels: 3.0.0
methodSecurity: 3.0.0
multipartFileContentType: 1.0.0
nameOverrides: 3.0.0
nullables: 1.0.0
Expand Down Expand Up @@ -289,17 +289,11 @@ generatedFiles:
- docs/models/operations/deletewebhookresponse.md
- docs/models/operations/from_.md
- docs/models/operations/genaudiototextresponse.md
- docs/models/operations/genaudiototextsecurity.md
- docs/models/operations/genimagetoimageresponse.md
- docs/models/operations/genimagetoimagesecurity.md
- docs/models/operations/genimagetovideoresponse.md
- docs/models/operations/genimagetovideosecurity.md
- docs/models/operations/gensegmentanything2response.md
- docs/models/operations/gensegmentanything2security.md
- docs/models/operations/gentexttoimageresponse.md
- docs/models/operations/gentexttoimagesecurity.md
- docs/models/operations/genupscaleresponse.md
- docs/models/operations/genupscalesecurity.md
- docs/models/operations/getassetrequest.md
- docs/models/operations/getassetresponse.md
- docs/models/operations/getassetsresponse.md
Expand Down
2 changes: 1 addition & 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.2.0
version: 0.3.0
additionalDependencies:
dev: {}
main: {}
Expand Down
14 changes: 9 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
speakeasyVersion: 1.398.1
speakeasyVersion: 1.399.0
sources:
livepeer-studio-api:
sourceNamespace: livepeer-studio-api
sourceRevisionDigest: sha256:a3526ec2de6aec694c70ec0f0eabff4e4fd3bed4c106366a7e9ec4d127f93adb
sourceBlobDigest: sha256:2f90b2238bc559477e75134c6c63fe740188463a049ff343c3a0d252ccbd7645
sourceRevisionDigest: sha256:05b8e6f32af10787d3e904f94a0924c304ec1dd8357de9351eebd75f8ea9c3ca
sourceBlobDigest: sha256:aa27f19cd706fdbc92320eea5ca4d28aefd20557554f78a6fa0393320d8ee1d6
tags:
- latest
- main
targets:
livepeer-python:
source: livepeer-studio-api
sourceNamespace: livepeer-studio-api
sourceRevisionDigest: sha256:a3526ec2de6aec694c70ec0f0eabff4e4fd3bed4c106366a7e9ec4d127f93adb
sourceBlobDigest: sha256:2f90b2238bc559477e75134c6c63fe740188463a049ff343c3a0d252ccbd7645
sourceRevisionDigest: sha256:05b8e6f32af10787d3e904f94a0924c304ec1dd8357de9351eebd75f8ea9c3ca
sourceBlobDigest: sha256:aa27f19cd706fdbc92320eea5ca4d28aefd20557554f78a6fa0393320d8ee1d6
my-first-target:
source: livepeer-studio-api
sourceNamespace: livepeer-studio-api
Expand All @@ -31,5 +32,8 @@ workflow:
livepeer-python:
target: python
source: livepeer-studio-api
publish:
pypi:
token: $pypi_token
codeSamples:
output: codeSamples.yaml
78 changes: 17 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ The SDK can be installed with either *pip* or *poetry* package managers.
*PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line.

```bash
pip install git+https://github.com/livepeer/livepeer-python.git
pip install livepeer
```

### Poetry

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

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

Expand Down Expand Up @@ -175,13 +175,12 @@ Certain SDK methods accept file objects as part of a request body or multi-part
```python
from livepeer import Livepeer
from livepeer.models import operations

s = Livepeer()
s = Livepeer(
api_key="<YOUR_BEARER_TOKEN_HERE>",
)

res = s.generate.image_to_image(security=operations.GenImageToImageSecurity(
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
), request={
res = s.generate.image_to_image(request={
"prompt": "<value>",
"image": {
"file_name": "example.file",
Expand Down Expand Up @@ -575,27 +574,6 @@ if res.stream is not None:
# handle response
pass

```

### Per-Operation Security Schemes

Some operations in this SDK require the security scheme to be specified at the request level. For example:
```python
from livepeer import Livepeer
from livepeer.models import operations

s = Livepeer()

res = s.generate.text_to_image(security=operations.GenTextToImageSecurity(
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
), request={
"prompt": "<value>",
})

if res.image_response is not None:
# handle response
pass

```
<!-- End Authentication [security] -->

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

- [Livepeer Python Library](#livepeer-python-library)
- [Documentation](#documentation)
- [SDK Installation](#sdk-installation)
- [PIP](#pip)
- [Poetry](#poetry)
- [SDK Example Usage](#sdk-example-usage)
- [Example](#example)
- [Available Resources and Operations](#available-resources-and-operations)
- [access\_control](#access_control)
- [asset](#asset)
- [generate](#generate)
- [metrics](#metrics)
- [multistream](#multistream)
- [playback](#playback)
- [~~room~~](#room)
- [session](#session)
- [stream](#stream)
- [task](#task)
- [transcode](#transcode)
- [webhook](#webhook)
- [File uploads](#file-uploads)
- [Retries](#retries)
- [Error Handling](#error-handling)
- [Example](#example-1)
- [Custom HTTP Client](#custom-http-client)
- [Authentication](#authentication)
- [Per-Client Security Schemes](#per-client-security-schemes)
- [Per-Operation Security Schemes](#per-operation-security-schemes)
- [Summary](#summary)
- [Table of Contents](#table-of-contents)
- [IDE Support](#ide-support)
- [PyCharm](#pycharm)
- [Debugging](#debugging)
* [SDK Installation](#sdk-installation)
* [IDE Support](#ide-support)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [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] -->

<!-- Start IDE Support [idesupport] -->
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,14 @@ Based on:
- OpenAPI Doc
- Speakeasy CLI 1.398.1 (2.415.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.2.0] .
- [python v0.2.0] .

## 2024-09-17 20:54:48
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.399.0 (2.415.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.3.0] .
### Releases
- [PyPI v0.3.0] https://pypi.org/project/livepeer/0.3.0 - .
54 changes: 24 additions & 30 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,12 @@ actions:
label: genAudioToText
source: |-
from livepeer import Livepeer
from livepeer.models import operations
s = Livepeer()
s = Livepeer(
api_key="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.generate.audio_to_text(security=operations.GenAudioToTextSecurity(
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
), request={
res = s.generate.audio_to_text(request={
"audio": {
"file_name": "example.file",
"content": open("example.file", "rb"),
Expand All @@ -118,13 +117,12 @@ actions:
label: genImageToImage
source: |-
from livepeer import Livepeer
from livepeer.models import operations
s = Livepeer()
s = Livepeer(
api_key="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.generate.image_to_image(security=operations.GenImageToImageSecurity(
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
), request={
res = s.generate.image_to_image(request={
"prompt": "<value>",
"image": {
"file_name": "example.file",
Expand All @@ -142,13 +140,12 @@ actions:
label: genImageToVideo
source: |-
from livepeer import Livepeer
from livepeer.models import operations
s = Livepeer()
s = Livepeer(
api_key="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.generate.image_to_video(security=operations.GenImageToVideoSecurity(
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
), request={
res = s.generate.image_to_video(request={
"image": {
"file_name": "example.file",
"content": open("example.file", "rb"),
Expand All @@ -165,13 +162,12 @@ actions:
label: genSegmentAnything2
source: |-
from livepeer import Livepeer
from livepeer.models import operations
s = Livepeer()
s = Livepeer(
api_key="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.generate.segment_anything2(security=operations.GenSegmentAnything2Security(
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
), request={
res = s.generate.segment_anything2(request={
"image": {
"file_name": "example.file",
"content": open("example.file", "rb"),
Expand All @@ -188,13 +184,12 @@ actions:
label: genTextToImage
source: |-
from livepeer import Livepeer
from livepeer.models import operations
s = Livepeer()
s = Livepeer(
api_key="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.generate.text_to_image(security=operations.GenTextToImageSecurity(
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
), request={
res = s.generate.text_to_image(request={
"prompt": "<value>",
})
Expand All @@ -208,13 +203,12 @@ actions:
label: genUpscale
source: |-
from livepeer import Livepeer
from livepeer.models import operations
s = Livepeer()
s = Livepeer(
api_key="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.generate.upscale(security=operations.GenUpscaleSecurity(
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
), request={
res = s.generate.upscale(request={
"prompt": "<value>",
"image": {
"file_name": "example.file",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `api_key` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `api_key` | *str* | :heavy_check_mark: | N/A |
8 changes: 0 additions & 8 deletions docs/models/operations/genaudiototextsecurity.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/models/operations/genimagetoimagesecurity.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/models/operations/genimagetovideosecurity.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/models/operations/gensegmentanything2security.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/models/operations/gentexttoimagesecurity.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/models/operations/genupscalesecurity.md

This file was deleted.

Loading

0 comments on commit 77089f3

Please sign in to comment.