Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.0 (#27)
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 5d8a694 commit c4b2a03
Show file tree
Hide file tree
Showing 125 changed files with 10,215 additions and 1,452 deletions.
1,523 changes: 1,107 additions & 416 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

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
go:
version: 0.3.1
version: 0.4.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
speakeasyVersion: 1.377.1
speakeasyVersion: 1.399.0
sources:
livepeer-studio-api:
sourceNamespace: livepeer-studio-api
sourceRevisionDigest: sha256:f629cb6376730d6f7cfa28b2b8edd94d80d7d4563889f67f2b6a13ac343b54ef
sourceBlobDigest: sha256:a46e819194956636cf71bac910d6fd524046664687a96c3d9e0d62f8e08303cf
sourceRevisionDigest: sha256:f3ea883f13fc67e60cb167af92c3e9be9ec4fea50eacd4130a1b51d7f1cd5102
sourceBlobDigest: sha256:a6e21f46600c0ad7fc422459cc7392d99943317b4a24fd41190670ba78a55eb8
tags:
- latest
- main
targets:
livepeer-go:
source: livepeer-studio-api
sourceNamespace: livepeer-studio-api
sourceRevisionDigest: sha256:f629cb6376730d6f7cfa28b2b8edd94d80d7d4563889f67f2b6a13ac343b54ef
sourceBlobDigest: sha256:a46e819194956636cf71bac910d6fd524046664687a96c3d9e0d62f8e08303cf
outLocation: /github/workspace/repo
sourceRevisionDigest: sha256:f3ea883f13fc67e60cb167af92c3e9be9ec4fea50eacd4130a1b51d7f1cd5102
sourceBlobDigest: sha256:a6e21f46600c0ad7fc422459cc7392d99943317b4a24fd41190670ba78a55eb8
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
livepeer-studio-api:
inputs:
- location: https://raw.githubusercontent.com/livepeer/studio/master/packages/api/src/schema/api-schema.yaml
- location: https://raw.githubusercontent.com/livepeer/studio/master/packages/api/src/schema/ai-api-schema.yaml
overlays:
- location: ./overlay.yaml
registry:
Expand Down
166 changes: 102 additions & 64 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,32 @@ The Livepeer Go library provides convenient access to the Livepeer Studio API fr

For full documentation and examples, please visit [docs.livepeer.org](https://docs.livepeer.org/sdks/go/).

<!-- Start Summary [summary] -->
## Summary

Livepeer API Reference: Welcome to the Livepeer API reference docs. Here you will find all the
endpoints exposed on the standard Livepeer API, learn how to use them and
what they return.
<!-- End Summary [summary] -->

<!-- Start Table of Contents [toc] -->
## Table of Contents

* [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] -->
## SDK Installation

To add the SDK as a dependency to your project:
```bash
go get github.com/livepeer/livepeer-go
```
Expand Down Expand Up @@ -52,38 +75,16 @@ func main() {
<!-- Start Available Resources and Operations [operations] -->
## Available Resources and Operations

### [Stream](docs/sdks/stream/README.md)

* [Create](docs/sdks/stream/README.md#create) - Create a stream
* [GetAll](docs/sdks/stream/README.md#getall) - Retrieve streams
* [Get](docs/sdks/stream/README.md#get) - Retrieve a stream
* [Update](docs/sdks/stream/README.md#update) - Update a stream
* [Delete](docs/sdks/stream/README.md#delete) - Delete a stream
* [Terminate](docs/sdks/stream/README.md#terminate) - Terminates a live stream
* [StartPull](docs/sdks/stream/README.md#startpull) - Start ingest for a pull stream
* [CreateClip](docs/sdks/stream/README.md#createclip) - Create a clip
* [GetClips](docs/sdks/stream/README.md#getclips) - Retrieve clips of a livestream
* [AddMultistreamTarget](docs/sdks/stream/README.md#addmultistreamtarget) - Add a multistream target
* [RemoveMultistreamTarget](docs/sdks/stream/README.md#removemultistreamtarget) - Remove a multistream target

### [Multistream](docs/sdks/multistream/README.md)
<details open>
<summary>Available methods</summary>

* [GetAll](docs/sdks/multistream/README.md#getall) - Retrieve Multistream Targets
* [Create](docs/sdks/multistream/README.md#create) - Create a multistream target
* [Get](docs/sdks/multistream/README.md#get) - Retrieve a multistream target
* [Update](docs/sdks/multistream/README.md#update) - Update Multistream Target
* [Delete](docs/sdks/multistream/README.md#delete) - Delete a multistream target

### [Webhook](docs/sdks/webhook/README.md)
### [AccessControl](docs/sdks/accesscontrol/README.md)

* [GetAll](docs/sdks/webhook/README.md#getall) - Retrieve a Webhook
* [Create](docs/sdks/webhook/README.md#create) - Create a webhook
* [Get](docs/sdks/webhook/README.md#get) - Retrieve a webhook
* [Update](docs/sdks/webhook/README.md#update) - Update a webhook
* [Delete](docs/sdks/webhook/README.md#delete) - Delete a webhook
* [GetLogs](docs/sdks/webhook/README.md#getlogs) - Retrieve webhook logs
* [GetLog](docs/sdks/webhook/README.md#getlog) - Retrieve a webhook log
* [ResendLog](docs/sdks/webhook/README.md#resendlog) - Resend a webhook
* [Create](docs/sdks/accesscontrol/README.md#create) - Create a signing key
* [GetAll](docs/sdks/accesscontrol/README.md#getall) - Retrieves signing keys
* [Delete](docs/sdks/accesscontrol/README.md#delete) - Delete Signing Key
* [Get](docs/sdks/accesscontrol/README.md#get) - Retrieves a signing key
* [Update](docs/sdks/accesscontrol/README.md#update) - Update a signing key

### [Asset](docs/sdks/asset/README.md)

Expand All @@ -94,14 +95,37 @@ func main() {
* [Update](docs/sdks/asset/README.md#update) - Patch an asset
* [Delete](docs/sdks/asset/README.md#delete) - Delete an asset

### [Session](docs/sdks/session/README.md)
### [Generate](docs/sdks/generate/README.md)

* [GetClips](docs/sdks/session/README.md#getclips) - Retrieve clips of a session
* [GetAll](docs/sdks/session/README.md#getall) - Retrieve sessions
* [Get](docs/sdks/session/README.md#get) - Retrieve a session
* [GetRecorded](docs/sdks/session/README.md#getrecorded) - Retrieve Recorded Sessions
* [TextToImage](docs/sdks/generate/README.md#texttoimage) - Text To Image
* [ImageToImage](docs/sdks/generate/README.md#imagetoimage) - Image To Image
* [ImageToVideo](docs/sdks/generate/README.md#imagetovideo) - Image To Video
* [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


### [Metrics](docs/sdks/metrics/README.md)

* [GetRealtimeViewership](docs/sdks/metrics/README.md#getrealtimeviewership) - Query realtime viewership
* [GetViewership](docs/sdks/metrics/README.md#getviewership) - Query viewership metrics
* [GetCreatorViewership](docs/sdks/metrics/README.md#getcreatorviewership) - Query creator viewership metrics
* [GetPublicViewership](docs/sdks/metrics/README.md#getpublicviewership) - Query public total views metrics
* [GetUsage](docs/sdks/metrics/README.md#getusage) - Query usage metrics

### [Multistream](docs/sdks/multistream/README.md)

* [GetAll](docs/sdks/multistream/README.md#getall) - Retrieve Multistream Targets
* [Create](docs/sdks/multistream/README.md#create) - Create a multistream target
* [Get](docs/sdks/multistream/README.md#get) - Retrieve a multistream target
* [Update](docs/sdks/multistream/README.md#update) - Update Multistream Target
* [Delete](docs/sdks/multistream/README.md#delete) - Delete a multistream target

### [Playback](docs/sdks/playback/README.md)

### [Room](docs/sdks/room/README.md)
* [Get](docs/sdks/playback/README.md#get) - Retrieve Playback Info

### [~~Room~~](docs/sdks/room/README.md)

* [~~Create~~](docs/sdks/room/README.md#create) - Create a room :warning: **Deprecated**
* [~~Get~~](docs/sdks/room/README.md#get) - Retrieve a room :warning: **Deprecated**
Expand All @@ -113,21 +137,26 @@ func main() {
* [~~UpdateUser~~](docs/sdks/room/README.md#updateuser) - Update a room user :warning: **Deprecated**
* [~~DeleteUser~~](docs/sdks/room/README.md#deleteuser) - Remove a user from the room :warning: **Deprecated**

### [Metrics](docs/sdks/metrics/README.md)
### [Session](docs/sdks/session/README.md)

* [GetRealtimeViewership](docs/sdks/metrics/README.md#getrealtimeviewership) - Query realtime viewership
* [GetViewership](docs/sdks/metrics/README.md#getviewership) - Query viewership metrics
* [GetCreatorViewership](docs/sdks/metrics/README.md#getcreatorviewership) - Query creator viewership metrics
* [GetPublicViewership](docs/sdks/metrics/README.md#getpublicviewership) - Query public total views metrics
* [GetUsage](docs/sdks/metrics/README.md#getusage) - Query usage metrics
* [GetClips](docs/sdks/session/README.md#getclips) - Retrieve clips of a session
* [GetAll](docs/sdks/session/README.md#getall) - Retrieve sessions
* [Get](docs/sdks/session/README.md#get) - Retrieve a session
* [GetRecorded](docs/sdks/session/README.md#getrecorded) - Retrieve Recorded Sessions

### [AccessControl](docs/sdks/accesscontrol/README.md)
### [Stream](docs/sdks/stream/README.md)

* [Create](docs/sdks/accesscontrol/README.md#create) - Create a signing key
* [GetAll](docs/sdks/accesscontrol/README.md#getall) - Retrieves signing keys
* [Delete](docs/sdks/accesscontrol/README.md#delete) - Delete Signing Key
* [Get](docs/sdks/accesscontrol/README.md#get) - Retrieves a signing key
* [Update](docs/sdks/accesscontrol/README.md#update) - Update a signing key
* [Create](docs/sdks/stream/README.md#create) - Create a stream
* [GetAll](docs/sdks/stream/README.md#getall) - Retrieve streams
* [Get](docs/sdks/stream/README.md#get) - Retrieve a stream
* [Update](docs/sdks/stream/README.md#update) - Update a stream
* [Delete](docs/sdks/stream/README.md#delete) - Delete a stream
* [Terminate](docs/sdks/stream/README.md#terminate) - Terminates a live stream
* [StartPull](docs/sdks/stream/README.md#startpull) - Start ingest for a pull stream
* [CreateClip](docs/sdks/stream/README.md#createclip) - Create a clip
* [GetClips](docs/sdks/stream/README.md#getclips) - Retrieve clips of a livestream
* [AddMultistreamTarget](docs/sdks/stream/README.md#addmultistreamtarget) - Add a multistream target
* [RemoveMultistreamTarget](docs/sdks/stream/README.md#removemultistreamtarget) - Remove a multistream target

### [Task](docs/sdks/task/README.md)

Expand All @@ -138,9 +167,18 @@ func main() {

* [Create](docs/sdks/transcode/README.md#create) - Transcode a video

### [Playback](docs/sdks/playback/README.md)
### [Webhook](docs/sdks/webhook/README.md)

* [Get](docs/sdks/playback/README.md#get) - Retrieve Playback Info
* [GetAll](docs/sdks/webhook/README.md#getall) - Retrieve a Webhook
* [Create](docs/sdks/webhook/README.md#create) - Create a webhook
* [Get](docs/sdks/webhook/README.md#get) - Retrieve a webhook
* [Update](docs/sdks/webhook/README.md#update) - Update a webhook
* [Delete](docs/sdks/webhook/README.md#delete) - Delete a webhook
* [GetLogs](docs/sdks/webhook/README.md#getlogs) - Retrieve webhook logs
* [GetLog](docs/sdks/webhook/README.md#getlog) - Retrieve a webhook log
* [ResendLog](docs/sdks/webhook/README.md#resendlog) - Resend a webhook

</details>
<!-- End Available Resources and Operations [operations] -->

<!-- Start Error Handling [errors] -->
Expand Down Expand Up @@ -170,9 +208,9 @@ func main() {
s := livepeergo.New(
livepeergo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
var id string = "<value>"

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

var e *sdkerrors.Error
Expand Down Expand Up @@ -249,7 +287,9 @@ func main() {
s := livepeergo.New(
livepeergo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.NewStreamPayload{

ctx := context.Background()
res, err := s.Stream.Create(ctx, components.NewStreamPayload{
Name: "test_stream",
Pull: &components.Pull{
Source: "https://myservice.com/live/stream.flv",
Expand Down Expand Up @@ -312,9 +352,7 @@ func main() {
},
},
},
}
ctx := context.Background()
res, err := s.Stream.Create(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -354,7 +392,9 @@ func main() {
s := livepeergo.New(
livepeergo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.NewStreamPayload{

ctx := context.Background()
res, err := s.Stream.Create(ctx, components.NewStreamPayload{
Name: "test_stream",
Pull: &components.Pull{
Source: "https://myservice.com/live/stream.flv",
Expand Down Expand Up @@ -417,9 +457,7 @@ func main() {
},
},
},
}
ctx := context.Background()
res, err := s.Stream.Create(ctx, request, operations.WithRetries(
}, operations.WithRetries(
retry.Config{
Strategy: "backoff",
Backoff: &retry.BackoffStrategy{
Expand Down Expand Up @@ -467,7 +505,9 @@ func main() {
}),
livepeergo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.NewStreamPayload{

ctx := context.Background()
res, err := s.Stream.Create(ctx, components.NewStreamPayload{
Name: "test_stream",
Pull: &components.Pull{
Source: "https://myservice.com/live/stream.flv",
Expand Down Expand Up @@ -530,9 +570,7 @@ func main() {
},
},
},
}
ctx := context.Background()
res, err := s.Stream.Create(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,14 @@ Based on:
### Generated
- [go v0.3.1] .
### Releases
- [Go v0.3.1] https://github.com/livepeer/livepeer-go/releases/tag/v0.3.1 - .
- [Go v0.3.1] https://github.com/livepeer/livepeer-go/releases/tag/v0.3.1 - .

## 2024-09-17 20:54:54
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.399.0 (2.415.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.4.0] .
### Releases
- [Go v0.4.0] https://github.com/livepeer/livepeer-go/releases/tag/v0.4.0 - .
8 changes: 4 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ func main() {
s := livepeergo.New(
livepeergo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.NewStreamPayload{

ctx := context.Background()
res, err := s.Stream.Create(ctx, components.NewStreamPayload{
Name: "test_stream",
Pull: &components.Pull{
Source: "https://myservice.com/live/stream.flv",
Expand Down Expand Up @@ -76,9 +78,7 @@ func main() {
},
},
},
}
ctx := context.Background()
res, err := s.Stream.Create(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down
Loading

0 comments on commit c4b2a03

Please sign in to comment.