Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 🐝 Update SDK - Generate 0.4.0 #26

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 68 additions & 30 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ generation:
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 0.3.0
version: 0.4.0
additionalDependencies:
dev: {}
main: {}
Expand All @@ -22,8 +23,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
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.399.0
speakeasyVersion: 1.434.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
24 changes: 18 additions & 6 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 All @@ -368,12 +369,23 @@ if res.stream is not None:
<!-- Start Error Handling [errors] -->
## Error Handling

Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception.

| Error Object | Status Code | Content Type |
By default, an API error will raise a errors.SDKError exception, which has the following properties:

| Property | Type | Description |
|-----------------|------------------|-----------------------|
| `.status_code` | *int* | The HTTP status code |
| `.message` | *str* | The error message |
| `.raw_response` | *httpx.Response* | The raw HTTP response |
| `.body` | *str* | The response content |

When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `get_async` method may raise the following exceptions:

| Error Type | Status Code | Content Type |
| ---------------- | ---------------- | ---------------- |
| errors.Error | 404 | application/json |
| errors.SDKError | 4xx-5xx | */* |
| errors.SDKError | 4XX, 5XX | \*/\* |

### Example

Expand Down Expand Up @@ -558,7 +570,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-11-07 00:17:15
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.434.0 (2.452.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.4.0] .
### Releases
- [PyPI v0.4.0] https://pypi.org/project/livepeer/0.4.0 - .
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
Loading