Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.6
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Oct 2, 2024
1 parent 77089f3 commit 985db35
Show file tree
Hide file tree
Showing 272 changed files with 2,488 additions and 1,159 deletions.
129 changes: 102 additions & 27 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

4 changes: 3 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.3.1
additionalDependencies:
dev: {}
main: {}
Expand All @@ -22,6 +22,8 @@ python:
clientServerStatusCodesAsErrors: true
description: Python Client SDK for Livepeer Studio
enumFormat: enum
fixFlags:
responseRequiredSep2024: false
flattenGlobalSecurity: true
flattenRequests: false
imports:
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.405.6
sources:
livepeer-studio-api:
sourceNamespace: livepeer-studio-api
sourceRevisionDigest: sha256:05b8e6f32af10787d3e904f94a0924c304ec1dd8357de9351eebd75f8ea9c3ca
sourceBlobDigest: sha256:aa27f19cd706fdbc92320eea5ca4d28aefd20557554f78a6fa0393320d8ee1d6
sourceRevisionDigest: sha256:994883abb1c89fda9fa5d6b5fb6fdb14b5902bc63d8b3a016ed73496322b3ef6
sourceBlobDigest: sha256:8f5abbeb4b51a28c9cc0e49ea6daa0b0d630a3e54ab40aedbf238f632ccafcb2
tags:
- latest
- main
targets:
livepeer-python:
source: livepeer-studio-api
sourceNamespace: livepeer-studio-api
sourceRevisionDigest: sha256:05b8e6f32af10787d3e904f94a0924c304ec1dd8357de9351eebd75f8ea9c3ca
sourceBlobDigest: sha256:aa27f19cd706fdbc92320eea5ca4d28aefd20557554f78a6fa0393320d8ee1d6
sourceRevisionDigest: sha256:994883abb1c89fda9fa5d6b5fb6fdb14b5902bc63d8b3a016ed73496322b3ef6
sourceBlobDigest: sha256:8f5abbeb4b51a28c9cc0e49ea6daa0b0d630a3e54ab40aedbf238f632ccafcb2
my-first-target:
source: livepeer-studio-api
sourceNamespace: livepeer-studio-api
Expand Down
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ res = s.stream.create(request={
"multistream": {
"targets": [
{
"profile": "720p",
"profile": "720p0",
"video_only": False,
"id": "PUSH123",
"spec": {
Expand Down Expand Up @@ -346,7 +346,7 @@ res = s.stream.create(request={
"multistream": {
"targets": [
{
"profile": "720p",
"profile": "720p0",
"video_only": False,
"id": "PUSH123",
"spec": {
Expand All @@ -368,12 +368,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 +569,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-02 00:17:10
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.3.1] .
### Releases
- [PyPI v0.3.1] https://pypi.org/project/livepeer/0.3.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
Loading

0 comments on commit 985db35

Please sign in to comment.