Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.444.3
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 25, 2024
1 parent 77089f3 commit de1dbda
Show file tree
Hide file tree
Showing 260 changed files with 2,354 additions and 1,650 deletions.
101 changes: 71 additions & 30 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,24 @@ generation:
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 0.3.0
version: 0.4.0
additionalDependencies:
dev: {}
main: {}
author: Livepeer
authors:
- Speakeasy
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
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
17 changes: 11 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
speakeasyVersion: 1.399.0
speakeasyVersion: 1.444.3
sources:
livepeer-studio-api:
sourceNamespace: livepeer-studio-api
sourceRevisionDigest: sha256:05b8e6f32af10787d3e904f94a0924c304ec1dd8357de9351eebd75f8ea9c3ca
sourceBlobDigest: sha256:aa27f19cd706fdbc92320eea5ca4d28aefd20557554f78a6fa0393320d8ee1d6
sourceRevisionDigest: sha256:9d60d04b8ea8e292855bfc97a4fcc14d7c6154f9c849229aecbe177eda5c9df1
sourceBlobDigest: sha256:7592f82f485dd2968fd3b6015c1c8bef5cd90c1f5328aec93b56fbe288a6cd9d
tags:
- latest
- main
- speakeasy-sdk-regen-1731889163
- 1.0.0
targets:
livepeer-python:
source: livepeer-studio-api
sourceNamespace: livepeer-studio-api
sourceRevisionDigest: sha256:05b8e6f32af10787d3e904f94a0924c304ec1dd8357de9351eebd75f8ea9c3ca
sourceBlobDigest: sha256:aa27f19cd706fdbc92320eea5ca4d28aefd20557554f78a6fa0393320d8ee1d6
sourceRevisionDigest: sha256:9d60d04b8ea8e292855bfc97a4fcc14d7c6154f9c849229aecbe177eda5c9df1
sourceBlobDigest: sha256:7592f82f485dd2968fd3b6015c1c8bef5cd90c1f5328aec93b56fbe288a6cd9d
codeSamplesNamespace: livepeer-studio-api-code-samples
codeSamplesRevisionDigest: sha256:5e8eed201a4e8b6ac05116478f2de43abe867a94d2973239e6b04ef28b3c45d0
my-first-target:
source: livepeer-studio-api
sourceNamespace: livepeer-studio-api
Expand All @@ -37,3 +40,5 @@ workflow:
token: $pypi_token
codeSamples:
output: codeSamples.yaml
registry:
location: registry.speakeasyapi.dev/livepeer/livepeer-studio/livepeer-studio-api-code-samples
2 changes: 2 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ targets:
token: $pypi_token
codeSamples:
output: codeSamples.yaml
registry:
location: registry.speakeasyapi.dev/livepeer/livepeer-studio/livepeer-studio-api-code-samples
34 changes: 23 additions & 11 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 |
| ---------------- | ---------------- | ---------------- |
| errors.Error | 404 | application/json |
| errors.SDKError | 4xx-5xx | */* |
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 | \*/\* |

### Example

Expand Down Expand Up @@ -492,9 +504,9 @@ s = Livepeer(async_client=CustomClient(httpx.AsyncClient()))

This SDK supports the following security scheme globally:

| Name | Type | Scheme |
| ----------- | ----------- | ----------- |
| `api_key` | http | HTTP Bearer |
| Name | Type | Scheme |
| --------- | ---- | ----------- |
| `api_key` | http | HTTP Bearer |

To authenticate with the API the `api_key` parameter must be set when initializing the SDK client instance. For example:
```python
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-25 00:18:59
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.444.3 (2.461.4) 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

0 comments on commit de1dbda

Please sign in to comment.