Skip to content

Commit

Permalink
Merge pull request #40 from speakeasy-api/speakeasy-sdk-regen-1723586521
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 3.13.0
  • Loading branch information
chase-crumbaugh authored Sep 3, 2024
2 parents b1acf41 + ddfefed commit 7e8a8b5
Show file tree
Hide file tree
Showing 61 changed files with 1,699 additions and 1,664 deletions.
43 changes: 20 additions & 23 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 2858c6d9-f946-4185-ae68-3b8e708830fb
management:
docChecksum: f406fdb120a976f69c3be12c8676cbac
docChecksum: 11eaddc370e7d2043750bcff56df17e1
docVersion: 0.4.0 .
speakeasyVersion: 1.364.0
generationVersion: 2.396.0
releaseVersion: 3.12.5
configChecksum: 06754b207a20130a897c23f6a2d79b0e
speakeasyVersion: 1.389.0
generationVersion: 2.409.0
releaseVersion: 3.13.0
configChecksum: 0e57f08adff3fdc7db9bcc690cdfe792
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go.git
repoSubDirectory: .
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go
Expand All @@ -15,12 +15,12 @@ features:
go:
acceptHeaders: 2.81.2
additionalDependencies: 0.1.0
core: 3.5.3
core: 3.5.5
defaultEnabledRetries: 0.2.0
deprecations: 2.81.1
devContainers: 2.90.0
downloadStreams: 0.1.1
envVarSecurityUsage: 0.3.0
envVarSecurityUsage: 0.3.1
examples: 2.81.3
globalSecurity: 2.82.10
globalSecurityCallbacks: 0.1.0
Expand All @@ -35,6 +35,7 @@ features:
sdkHooks: 0.1.0
serverEventsSentinels: 0.1.0
serverIDs: 2.81.1
uploadStreams: 0.1.0
generatedFiles:
- apis.go
- apiendpoints.go
Expand Down Expand Up @@ -129,8 +130,8 @@ generatedFiles:
- /pkg/models/operations/uploadreport.go
- /pkg/models/operations/create.go
- /pkg/models/operations/applyoperationids.go
- /pkg/models/operations/suggestoperationids.go
- /pkg/models/operations/suggestoperationidsregistry.go
- /pkg/models/operations/suggestopenapi.go
- /pkg/models/operations/suggestopenapiregistry.go
- /pkg/models/operations/getembedaccesstoken.go
- /pkg/models/operations/getvalidembedaccesstokens.go
- /pkg/models/operations/revokeembedaccesstoken.go
Expand Down Expand Up @@ -190,8 +191,8 @@ generatedFiles:
- /pkg/models/shared/organizationusage.go
- /pkg/models/shared/report.go
- /pkg/models/shared/shorturl.go
- /pkg/models/shared/suggestedoperationids.go
- /pkg/models/shared/suggestoperationidsopts.go
- /pkg/models/shared/suggestopts.go
- /pkg/models/shared/diagnostic.go
- /pkg/models/shared/embedaccesstokenresponse.go
- /pkg/models/shared/embedtoken.go
- /pkg/models/shared/workspace.go
Expand Down Expand Up @@ -313,11 +314,11 @@ generatedFiles:
- docs/pkg/models/operations/applyoperationidsrequest.md
- docs/pkg/models/operations/applyoperationidsresponse.md
- docs/pkg/models/operations/schema.md
- docs/pkg/models/operations/suggestoperationidsrequestbody.md
- docs/pkg/models/operations/suggestoperationidsrequest.md
- docs/pkg/models/operations/suggestoperationidsresponse.md
- docs/pkg/models/operations/suggestoperationidsregistryrequest.md
- docs/pkg/models/operations/suggestoperationidsregistryresponse.md
- docs/pkg/models/operations/suggestopenapirequestbody.md
- docs/pkg/models/operations/suggestopenapirequest.md
- docs/pkg/models/operations/suggestopenapiresponse.md
- docs/pkg/models/operations/suggestopenapiregistryrequest.md
- docs/pkg/models/operations/suggestopenapiregistryresponse.md
- docs/pkg/models/operations/getembedaccesstokenrequest.md
- docs/pkg/models/operations/getembedaccesstokenresponse.md
- docs/pkg/models/operations/getvalidembedaccesstokensresponse.md
Expand All @@ -341,11 +342,8 @@ generatedFiles:
- docs/pkg/models/sdkerrors/error.md
- docs/pkg/models/shared/generateopenapispecdiff.md
- docs/pkg/models/shared/api.md
- docs/pkg/models/shared/apiinput.md
- docs/pkg/models/shared/apiendpoint.md
- docs/pkg/models/shared/apiendpointinput.md
- docs/pkg/models/shared/versionmetadata.md
- docs/pkg/models/shared/versionmetadatainput.md
- docs/pkg/models/shared/schema.md
- docs/pkg/models/shared/valuechange.md
- docs/pkg/models/shared/schemadiff.md
Expand Down Expand Up @@ -397,10 +395,9 @@ generatedFiles:
- docs/pkg/models/shared/type.md
- docs/pkg/models/shared/report.md
- docs/pkg/models/shared/shorturl.md
- docs/pkg/models/shared/suggestedoperationids.md
- docs/pkg/models/shared/depthstyle.md
- docs/pkg/models/shared/style.md
- docs/pkg/models/shared/suggestoperationidsopts.md
- docs/pkg/models/shared/suggestiontype.md
- docs/pkg/models/shared/suggestopts.md
- docs/pkg/models/shared/diagnostic.md
- docs/pkg/models/shared/embedaccesstokenresponse.md
- docs/pkg/models/shared/embedtoken.md
- docs/pkg/models/shared/workspace.md
Expand Down
16 changes: 9 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
speakeasyVersion: 1.364.0
speakeasyVersion: 1.389.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:792c2fb338319e1154996f5bf090cb645d34eba8ed55a33543419d203436a9e4
sourceBlobDigest: sha256:28d39c7e07004c22ce179aa3921d03b1199e30f9ed1cf219f7eaf4142999ddff
sourceRevisionDigest: sha256:e8e46bf1e8b973c7df40628e8a6e0e7fb4d195c5a146cd446fed590095658f6a
sourceBlobDigest: sha256:b56a194fb3535bb9dbb12efd4d11218689d6ef2ad99519daab3614a2f7776301
tags:
- latest
- main
targets:
speakeasy-client-sdk-go:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:792c2fb338319e1154996f5bf090cb645d34eba8ed55a33543419d203436a9e4
sourceBlobDigest: sha256:28d39c7e07004c22ce179aa3921d03b1199e30f9ed1cf219f7eaf4142999ddff
sourceRevisionDigest: sha256:e8e46bf1e8b973c7df40628e8a6e0e7fb4d195c5a146cd446fed590095658f6a
sourceBlobDigest: sha256:b56a194fb3535bb9dbb12efd4d11218689d6ef2ad99519daab3614a2f7776301
codeSamplesNamespace: code-samples-go-speakeasy-client-sdk-go
codeSamplesRevisionDigest: sha256:7744acbde74cb039e57601dacdf9572f71963d4953793b868aea1ca0c72d1a17
codeSamplesRevisionDigest: sha256:05cfaecf01fcc6fd779c0c7987b40b10d82141f1be49e8493153fca83aec4901
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
my-source:
inputs:
- location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/speakeasy-api:main
- location: https://www.speakeasy.com/openapi.yaml
registry:
location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/my-source
targets:
speakeasy-client-sdk-go:
target: go
Expand Down
2 changes: 2 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ sources:
my-source:
inputs:
- location: https://www.speakeasy.com/openapi.yaml
registry:
location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/my-source
targets:
speakeasy-client-sdk-go:
target: go
Expand Down
84 changes: 54 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
# github.com/speakeasy-api/speakeasy-client-sdk-go

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

Speakeasy API: The Speakeasy API allows teams to manage common operations with their APIs

For more information about the API: [The Speakeasy Platform Documentation](/docs)
<!-- 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)
* [Global Parameters](#global-parameters)
* [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/speakeasy-api/speakeasy-client-sdk-go
```
Expand Down Expand Up @@ -30,9 +54,9 @@ func main() {
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
request := operations.GetApisRequest{}

ctx := context.Background()
res, err := s.Apis.GetApis(ctx, request)
res, err := s.Apis.GetApis(ctx, operations.GetApisRequest{})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -140,8 +164,8 @@ func main() {
### [Suggest](docs/sdks/suggest/README.md)

* [ApplyOperationIDs](docs/sdks/suggest/README.md#applyoperationids) - Apply operation ID suggestions and download result.
* [SuggestOperationIDs](docs/sdks/suggest/README.md#suggestoperationids) - Generate operation ID suggestions.
* [SuggestOperationIDsRegistry](docs/sdks/suggest/README.md#suggestoperationidsregistry) - Generate operation ID suggestions.
* [SuggestOpenAPI](docs/sdks/suggest/README.md#suggestopenapi) - Generate suggestions for improving an OpenAPI document.
* [SuggestOpenAPIRegistry](docs/sdks/suggest/README.md#suggestopenapiregistry) - Generate suggestions for improving an OpenAPI document stored in the registry.

### [Embeds](docs/sdks/embeds/README.md)

Expand Down Expand Up @@ -206,11 +230,11 @@ func main() {
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
request := operations.GetWorkspaceEventsByTargetRequest{
TargetID: "<value>",
}

ctx := context.Background()
res, err := s.Events.GetWorkspaceEventsByTarget(ctx, request)
res, err := s.Events.GetWorkspaceEventsByTarget(ctx, operations.GetWorkspaceEventsByTargetRequest{
TargetID: "<value>",
})
if err != nil {

var e *sdkerrors.Error
Expand Down Expand Up @@ -263,12 +287,12 @@ func main() {
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
request := operations.DeleteAPIRequest{

ctx := context.Background()
res, err := s.Apis.DeleteAPI(ctx, operations.DeleteAPIRequest{
APIID: "<value>",
VersionID: "<value>",
}
ctx := context.Background()
res, err := s.Apis.DeleteAPI(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -301,12 +325,12 @@ func main() {
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
request := operations.DeleteAPIRequest{

ctx := context.Background()
res, err := s.Apis.DeleteAPI(ctx, operations.DeleteAPIRequest{
APIID: "<value>",
VersionID: "<value>",
}
ctx := context.Background()
res, err := s.Apis.DeleteAPI(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -381,12 +405,12 @@ func main() {
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
request := operations.DeleteAPIRequest{

ctx := context.Background()
res, err := s.Apis.DeleteAPI(ctx, operations.DeleteAPIRequest{
APIID: "<value>",
VersionID: "<value>",
}
ctx := context.Background()
res, err := s.Apis.DeleteAPI(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -434,9 +458,9 @@ func main() {
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
request := operations.GetWorkspaceRequest{}

ctx := context.Background()
res, err := s.Workspaces.GetWorkspace(ctx, request)
res, err := s.Workspaces.GetWorkspace(ctx, operations.GetWorkspaceRequest{})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -473,12 +497,12 @@ func main() {
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
request := operations.DeleteAPIRequest{

ctx := context.Background()
res, err := s.Apis.DeleteAPI(ctx, operations.DeleteAPIRequest{
APIID: "<value>",
VersionID: "<value>",
}
ctx := context.Background()
res, err := s.Apis.DeleteAPI(ctx, request, operations.WithRetries(
}, operations.WithRetries(
retry.Config{
Strategy: "backoff",
Backoff: &retry.BackoffStrategy{
Expand Down Expand Up @@ -529,12 +553,12 @@ func main() {
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
request := operations.DeleteAPIRequest{

ctx := context.Background()
res, err := s.Apis.DeleteAPI(ctx, operations.DeleteAPIRequest{
APIID: "<value>",
VersionID: "<value>",
}
ctx := context.Background()
res, err := s.Apis.DeleteAPI(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 @@ -1186,4 +1186,14 @@ Based on:
### Generated
- [go v3.12.5] .
### Releases
- [Go v3.12.5] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.12.5 - .
- [Go v3.12.5] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.12.5 - .

## 2024-09-03 19:25:21
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.389.0 (2.409.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v3.13.0] .
### Releases
- [Go v3.13.0] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.13.0 - .
4 changes: 2 additions & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ func main() {
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
request := operations.GetApisRequest{}

ctx := context.Background()
res, err := s.Apis.GetApis(ctx, request)
res, err := s.Apis.GetApis(ctx, operations.GetApisRequest{})
if err != nil {
log.Fatal(err)
}
Expand Down
Loading

0 comments on commit 7e8a8b5

Please sign in to comment.