Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.398.1 (#10)
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 ab22cd1 commit f87586c
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 142 deletions.
35 changes: 0 additions & 35 deletions .devcontainer/README.md

This file was deleted.

59 changes: 0 additions & 59 deletions .devcontainer/devcontainer.json

This file was deleted.

15 changes: 0 additions & 15 deletions .devcontainer/setup.sh

This file was deleted.

14 changes: 5 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: 98621ff3-f200-4a5c-9c69-bc1fe845e39c
management:
docChecksum: 5649b2692e9b9f3c1065851a47fbba06
docVersion: v0.5.0
speakeasyVersion: 1.396.9
generationVersion: 2.415.7
releaseVersion: 0.3.0
configChecksum: ed5d7d075ec9eccb6474a8affc01b5fa
speakeasyVersion: 1.398.1
generationVersion: 2.415.8
releaseVersion: 0.4.0
configChecksum: ac3dd6cddc96b972e6ca8108e686e6a7
repoURL: https://github.com/livepeer/livepeer-ai-go.git
installationURL: https://github.com/livepeer/livepeer-ai-go
features:
Expand All @@ -15,7 +15,6 @@ features:
constsAndDefaults: 0.1.6
core: 3.5.8
defaultEnabledRetries: 0.2.0
devContainers: 2.90.0
envVarSecurityUsage: 0.3.1
globalSecurity: 2.82.10
globalSecurityCallbacks: 0.1.0
Expand All @@ -29,9 +28,6 @@ features:
unions: 2.85.9
uploadStreams: 0.1.0
generatedFiles:
- .devcontainer/README.md
- .devcontainer/devcontainer.json
- .devcontainer/setup.sh
- .gitattributes
- /models/components/apierror.go
- /models/components/bodygenaudiototext.go
Expand Down Expand Up @@ -102,7 +98,7 @@ generatedFiles:
- internal/utils/retries.go
- internal/utils/security.go
- internal/utils/utils.go
- livepeerai.go
- livepeer.go
- models/operations/options.go
- models/sdkerrors/sdkerror.go
- retry/config.go
Expand Down
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.0
version: 0.4.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
13 changes: 7 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
speakeasyVersion: 1.398.0
speakeasyVersion: 1.398.1
sources:
livepeerai-OAS:
sourceNamespace: livepeerai-oas
sourceRevisionDigest: sha256:43cf0ae12df6c7eaefaf51d7dc7aa9264f153a8b7ecd28563cf938eb4d382170
sourceBlobDigest: sha256:726bd47684eeb00a5a351e77d612da793deb9a236281df00a64c7109b741938c
sourceRevisionDigest: sha256:3076fe48ebeac5e7f4ac1bc2dbb39f3c7c3cf93d02570881dc3e26c17644e7ad
sourceBlobDigest: sha256:84962d1cdd2b3ec311a1e3de4848a560478cefda5b3038810a518281c8032152
tags:
- latest
- main
targets:
livepeerai:
source: livepeerai-OAS
Expand All @@ -15,10 +16,10 @@ targets:
livepeerai-go:
source: livepeerai-OAS
sourceNamespace: livepeerai-oas
sourceRevisionDigest: sha256:43cf0ae12df6c7eaefaf51d7dc7aa9264f153a8b7ecd28563cf938eb4d382170
sourceBlobDigest: sha256:726bd47684eeb00a5a351e77d612da793deb9a236281df00a64c7109b741938c
sourceRevisionDigest: sha256:3076fe48ebeac5e7f4ac1bc2dbb39f3c7c3cf93d02570881dc3e26c17644e7ad
sourceBlobDigest: sha256:84962d1cdd2b3ec311a1e3de4848a560478cefda5b3038810a518281c8032152
codeSamplesNamespace: code-samples-go-livepeerai-go
codeSamplesRevisionDigest: sha256:abcc2b2c1f048b36ce12039304e5658920491c5fd95f9e00f6478be5431bf465
codeSamplesRevisionDigest: sha256:ef940f3b3a922a45b296cb368853fb259387b9bf81f54288c29439655f30d3a5
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,14 @@ Based on:
### Generated
- [go v0.3.0] .
### Releases
- [Go v0.3.0] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.3.0 - .
- [Go v0.3.0] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.3.0 - .

## 2024-09-17 17:25:56
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.398.1 (2.415.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.4.0] .
### Releases
- [Go v0.4.0] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.4.0 - .
32 changes: 16 additions & 16 deletions livepeerai.go → livepeer.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,25 +70,25 @@ func (c *sdkConfiguration) GetServerDetails() (string, map[string]string) {
return ServerList[c.ServerIndex], nil
}

// LivepeerAI - Livepeer AI Runner: An application to run AI pipelines
type LivepeerAI struct {
// Livepeer AI Runner: An application to run AI pipelines
type Livepeer struct {
Generate *Generate

sdkConfiguration sdkConfiguration
}

type SDKOption func(*LivepeerAI)
type SDKOption func(*Livepeer)

// WithServerURL allows the overriding of the default server URL
func WithServerURL(serverURL string) SDKOption {
return func(sdk *LivepeerAI) {
return func(sdk *Livepeer) {
sdk.sdkConfiguration.ServerURL = serverURL
}
}

// WithTemplatedServerURL allows the overriding of the default server URL with a templated URL populated with the provided parameters
func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOption {
return func(sdk *LivepeerAI) {
return func(sdk *Livepeer) {
if params != nil {
serverURL = utils.ReplaceParameters(serverURL, params)
}
Expand All @@ -99,7 +99,7 @@ func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOptio

// WithServerIndex allows the overriding of the default server by index
func WithServerIndex(serverIndex int) SDKOption {
return func(sdk *LivepeerAI) {
return func(sdk *Livepeer) {
if serverIndex < 0 || serverIndex >= len(ServerList) {
panic(fmt.Errorf("server index %d out of range", serverIndex))
}
Expand All @@ -110,50 +110,50 @@ func WithServerIndex(serverIndex int) SDKOption {

// WithClient allows the overriding of the default HTTP client used by the SDK
func WithClient(client HTTPClient) SDKOption {
return func(sdk *LivepeerAI) {
return func(sdk *Livepeer) {
sdk.sdkConfiguration.Client = client
}
}

// WithSecurity configures the SDK to use the provided security details
func WithSecurity(httpBearer string) SDKOption {
return func(sdk *LivepeerAI) {
return func(sdk *Livepeer) {
security := components.Security{HTTPBearer: httpBearer}
sdk.sdkConfiguration.Security = utils.AsSecuritySource(&security)
}
}

// WithSecuritySource configures the SDK to invoke the Security Source function on each method call to determine authentication
func WithSecuritySource(security func(context.Context) (components.Security, error)) SDKOption {
return func(sdk *LivepeerAI) {
return func(sdk *Livepeer) {
sdk.sdkConfiguration.Security = func(ctx context.Context) (interface{}, error) {
return security(ctx)
}
}
}

func WithRetryConfig(retryConfig retry.Config) SDKOption {
return func(sdk *LivepeerAI) {
return func(sdk *Livepeer) {
sdk.sdkConfiguration.RetryConfig = &retryConfig
}
}

// WithTimeout Optional request timeout applied to each operation
func WithTimeout(timeout time.Duration) SDKOption {
return func(sdk *LivepeerAI) {
return func(sdk *Livepeer) {
sdk.sdkConfiguration.Timeout = &timeout
}
}

// New creates a new instance of the SDK with the provided options
func New(opts ...SDKOption) *LivepeerAI {
sdk := &LivepeerAI{
func New(opts ...SDKOption) *Livepeer {
sdk := &Livepeer{
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "v0.5.0",
SDKVersion: "0.3.0",
GenVersion: "2.415.7",
UserAgent: "speakeasy-sdk/go 0.3.0 2.415.7 v0.5.0 github.com/livepeer/livepeer-ai-go",
SDKVersion: "0.4.0",
GenVersion: "2.415.8",
UserAgent: "speakeasy-sdk/go 0.4.0 2.415.8 v0.5.0 github.com/livepeer/livepeer-ai-go",
Hooks: hooks.New(),
},
}
Expand Down

0 comments on commit f87586c

Please sign in to comment.