Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.462.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jan 6, 2025
1 parent c4b2a03 commit d42818b
Show file tree
Hide file tree
Showing 204 changed files with 3,702 additions and 4,051 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.speakeasy/reports
# .gitignore
140 changes: 99 additions & 41 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 @@ -11,11 +11,13 @@ generation:
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
go:
version: 0.4.0
version: 0.5.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
flattenGlobalSecurity: true
imports:
option: openapi
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.462.2
sources:
livepeer-studio-api:
sourceNamespace: livepeer-studio-api
sourceRevisionDigest: sha256:f3ea883f13fc67e60cb167af92c3e9be9ec4fea50eacd4130a1b51d7f1cd5102
sourceBlobDigest: sha256:a6e21f46600c0ad7fc422459cc7392d99943317b4a24fd41190670ba78a55eb8
sourceRevisionDigest: sha256:2b3f2f9996117b5a1534960683d86fe0eb3190b1ac820a454644c40103974eaf
sourceBlobDigest: sha256:34f05da404b8cb67a833aca39b6c09d0fdfa7c7781122295f35d4fef72c6ef5c
tags:
- latest
- main
- speakeasy-sdk-regen-1731112098
- 1.0.0
targets:
livepeer-go:
source: livepeer-studio-api
sourceNamespace: livepeer-studio-api
sourceRevisionDigest: sha256:f3ea883f13fc67e60cb167af92c3e9be9ec4fea50eacd4130a1b51d7f1cd5102
sourceBlobDigest: sha256:a6e21f46600c0ad7fc422459cc7392d99943317b4a24fd41190670ba78a55eb8
sourceRevisionDigest: sha256:2b3f2f9996117b5a1534960683d86fe0eb3190b1ac820a454644c40103974eaf
sourceBlobDigest: sha256:34f05da404b8cb67a833aca39b6c09d0fdfa7c7781122295f35d4fef72c6ef5c
codeSamplesNamespace: livepeer-studio-api-go-code-samples
codeSamplesRevisionDigest: sha256:55e250613e72700433cc9c5f349c8e81b20b9cb774cbfdeaebedff754887d83c
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -31,3 +34,5 @@ workflow:
source: livepeer-studio-api
codeSamples:
output: codeSamples.yaml
registry:
location: registry.speakeasyapi.dev/livepeer/livepeer-studio/livepeer-studio-api-go-code-samples
2 changes: 2 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ targets:
source: livepeer-studio-api
codeSamples:
output: codeSamples.yaml
registry:
location: registry.speakeasyapi.dev/livepeer/livepeer-studio/livepeer-studio-api-go-code-samples
85 changes: 37 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ what they return.

<!-- Start Table of Contents [toc] -->
## Table of Contents
<!-- $toc-max-depth=2 -->
* [Livepeer Go SDK](#livepeer-go-sdk)
* [Documentation](#documentation)
* [SDK Installation](#sdk-installation)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Error Handling](#error-handling)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Retries](#retries)

* [SDK Installation](#sdk-installation)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Retries](#retries)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Special Types](#special-types)
<!-- End Table of Contents [toc] -->

<!-- Start SDK Installation [installation] -->
Expand Down Expand Up @@ -103,6 +104,7 @@ func main() {
* [Upscale](docs/sdks/generate/README.md#upscale) - Upscale
* [AudioToText](docs/sdks/generate/README.md#audiototext) - Audio To Text
* [SegmentAnything2](docs/sdks/generate/README.md#segmentanything2) - Segment Anything 2
* [Llm](docs/sdks/generate/README.md#llm) - LLM


### [Metrics](docs/sdks/metrics/README.md)
Expand Down Expand Up @@ -184,12 +186,16 @@ func main() {
<!-- Start Error Handling [errors] -->
## Error Handling

Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both. When specified by the OpenAPI spec document, the SDK will return the appropriate subclass.
Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both.

| Error Object | Status Code | Content Type |
| ------------------ | ------------------ | ------------------ |
| sdkerrors.Error | 404 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* |
By Default, an API error will return `sdkerrors.SDKError`. When custom error responses are specified for an operation, the SDK may also return their associated error. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation.

For example, the `Get` function may return the following errors:

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

### Example

Expand All @@ -205,11 +211,12 @@ import (
)

func main() {
ctx := context.Background()

s := livepeergo.New(
livepeergo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

ctx := context.Background()
res, err := s.Playback.Get(ctx, "<id>")
if err != nil {

Expand Down Expand Up @@ -268,9 +275,9 @@ This can be a convenient way to configure timeouts, cookies, proxies, custom hea

This SDK supports the following security scheme globally:

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

You can configure it using the `WithSecurity` option when initializing the SDK client instance. For example:
```go
Expand All @@ -284,11 +291,12 @@ import (
)

func main() {
ctx := context.Background()

s := livepeergo.New(
livepeergo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

ctx := context.Background()
res, err := s.Stream.Create(ctx, components.NewStreamPayload{
Name: "test_stream",
Pull: &components.Pull{
Expand Down Expand Up @@ -342,13 +350,8 @@ func main() {
Multistream: &components.Multistream{
Targets: []components.Target{
components.Target{
Profile: "720p",
VideoOnly: livepeergo.Bool(false),
ID: livepeergo.String("PUSH123"),
Spec: &components.TargetSpec{
Name: livepeergo.String("My target"),
URL: "rtmps://live.my-service.tv/channel/secretKey",
},
Profile: "720p0",
ID: livepeergo.String("PUSH123"),
},
},
},
Expand All @@ -364,12 +367,6 @@ func main() {
```
<!-- End Authentication [security] -->

<!-- Start Special Types [types] -->
## Special Types


<!-- End Special Types [types] -->

<!-- Start Retries [retries] -->
## Retries

Expand All @@ -389,11 +386,12 @@ import (
)

func main() {
ctx := context.Background()

s := livepeergo.New(
livepeergo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

ctx := context.Background()
res, err := s.Stream.Create(ctx, components.NewStreamPayload{
Name: "test_stream",
Pull: &components.Pull{
Expand Down Expand Up @@ -447,13 +445,8 @@ func main() {
Multistream: &components.Multistream{
Targets: []components.Target{
components.Target{
Profile: "720p",
VideoOnly: livepeergo.Bool(false),
ID: livepeergo.String("PUSH123"),
Spec: &components.TargetSpec{
Name: livepeergo.String("My target"),
URL: "rtmps://live.my-service.tv/channel/secretKey",
},
Profile: "720p0",
ID: livepeergo.String("PUSH123"),
},
},
},
Expand Down Expand Up @@ -491,6 +484,8 @@ import (
)

func main() {
ctx := context.Background()

s := livepeergo.New(
livepeergo.WithRetryConfig(
retry.Config{
Expand All @@ -506,7 +501,6 @@ func main() {
livepeergo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

ctx := context.Background()
res, err := s.Stream.Create(ctx, components.NewStreamPayload{
Name: "test_stream",
Pull: &components.Pull{
Expand Down Expand Up @@ -560,13 +554,8 @@ func main() {
Multistream: &components.Multistream{
Targets: []components.Target{
components.Target{
Profile: "720p",
VideoOnly: livepeergo.Bool(false),
ID: livepeergo.String("PUSH123"),
Spec: &components.TargetSpec{
Name: livepeergo.String("My target"),
URL: "rtmps://live.my-service.tv/channel/secretKey",
},
Profile: "720p0",
ID: livepeergo.String("PUSH123"),
},
},
},
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,14 @@ Based on:
### Generated
- [go v0.4.0] .
### Releases
- [Go v0.4.0] https://github.com/livepeer/livepeer-go/releases/tag/v0.4.0 - .
- [Go v0.4.0] https://github.com/livepeer/livepeer-go/releases/tag/v0.4.0 - .

## 2025-01-06 00:31:24
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.462.2 (2.486.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.5.0] .
### Releases
- [Go v0.5.0] https://github.com/livepeer/livepeer-go/releases/tag/v0.5.0 - .
12 changes: 4 additions & 8 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ import (
)

func main() {
ctx := context.Background()

s := livepeergo.New(
livepeergo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

ctx := context.Background()
res, err := s.Stream.Create(ctx, components.NewStreamPayload{
Name: "test_stream",
Pull: &components.Pull{
Expand Down Expand Up @@ -68,13 +69,8 @@ func main() {
Multistream: &components.Multistream{
Targets: []components.Target{
components.Target{
Profile: "720p",
VideoOnly: livepeergo.Bool(false),
ID: livepeergo.String("PUSH123"),
Spec: &components.TargetSpec{
Name: livepeergo.String("My target"),
URL: "rtmps://live.my-service.tv/channel/secretKey",
},
Profile: "720p0",
ID: livepeergo.String("PUSH123"),
},
},
},
Expand Down
Loading

0 comments on commit d42818b

Please sign in to comment.