Skip to content

Commit 207d399

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.454.0
1 parent 8cf9a4c commit 207d399

File tree

309 files changed

+1118
-21415
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

309 files changed

+1118
-21415
lines changed

.speakeasy/gen.lock

Lines changed: 8 additions & 225 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
speakeasyVersion: 1.453.6
1+
speakeasyVersion: 1.454.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:cffe8388230b0489dc3ff11b68bac00c9593ac05f9077ba04b608e180a639cf6
6-
sourceBlobDigest: sha256:94614599491dcd3859835f58fbbadca00059a54206c33f328525b43e96e85be9
5+
sourceRevisionDigest: sha256:a6ee89d0f6b246f18a2cde389d974de239fd89ee85e87efd31edcfb006418e68
6+
sourceBlobDigest: sha256:26a46be5de9ed96aa51fff627a4d5e0d053829f8202788fb60af47f61f648098
77
tags:
88
- latest
9+
- main
910
- 0.4.0
1011
targets:
1112
speakeasy-client-sdk-go:
1213
source: my-source
1314
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:cffe8388230b0489dc3ff11b68bac00c9593ac05f9077ba04b608e180a639cf6
15-
sourceBlobDigest: sha256:94614599491dcd3859835f58fbbadca00059a54206c33f328525b43e96e85be9
15+
sourceRevisionDigest: sha256:a6ee89d0f6b246f18a2cde389d974de239fd89ee85e87efd31edcfb006418e68
16+
sourceBlobDigest: sha256:26a46be5de9ed96aa51fff627a4d5e0d053829f8202788fb60af47f61f648098
1617
codeSamplesNamespace: code-samples-go-speakeasy-client-sdk-go
17-
codeSamplesRevisionDigest: sha256:4d0d8093502948a8bc8761b78dd791f147ca2db932d776277c5949b561ee4b54
18+
codeSamplesRevisionDigest: sha256:63a279d2fec77a993aa1155be252d62da6e1db0a72b5a97fce2b5bbb3680b514
1819
workflow:
1920
workflowVersion: 1.0.0
2021
speakeasyVersion: latest

README.md

Lines changed: 33 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,39 @@ package main
5555
import (
5656
"context"
5757
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
58-
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
5958
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
6059
"log"
60+
"os"
6161
)
6262

6363
func main() {
64+
ctx := context.Background()
65+
6466
s := speakeasyclientsdkgo.New(
6567
speakeasyclientsdkgo.WithSecurity(shared.Security{
6668
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
6769
}),
6870
)
6971

70-
ctx := context.Background()
71-
res, err := s.Apis.GetApis(ctx, operations.GetApisRequest{})
72+
content, fileErr := os.Open("example.file")
73+
if fileErr != nil {
74+
panic(fileErr)
75+
}
76+
77+
res, err := s.GenerateCodeSamplePreview(ctx, shared.CodeSampleSchemaInput{
78+
Languages: []string{
79+
"<value>",
80+
"<value>",
81+
},
82+
SchemaFile: shared.SchemaFile{
83+
Content: content,
84+
FileName: "example.file",
85+
},
86+
})
7287
if err != nil {
7388
log.Fatal(err)
7489
}
75-
if res.Apis != nil {
90+
if res.TwoHundredApplicationJSONResponseStream != nil {
7691
// handle response
7792
}
7893
}
@@ -86,26 +101,6 @@ func main() {
86101
<details open>
87102
<summary>Available methods</summary>
88103

89-
### [APIEndpoints](docs/sdks/apiendpoints/README.md)
90-
91-
* [DeleteAPIEndpoint](docs/sdks/apiendpoints/README.md#deleteapiendpoint) - Delete an ApiEndpoint.
92-
* [FindAPIEndpoint](docs/sdks/apiendpoints/README.md#findapiendpoint) - Find an ApiEndpoint via its displayName.
93-
* [GenerateOpenAPISpecForAPIEndpoint](docs/sdks/apiendpoints/README.md#generateopenapispecforapiendpoint) - Generate an OpenAPI specification for a particular ApiEndpoint.
94-
* [GeneratePostmanCollectionForAPIEndpoint](docs/sdks/apiendpoints/README.md#generatepostmancollectionforapiendpoint) - Generate a Postman collection for a particular ApiEndpoint.
95-
* [GetAllAPIEndpoints](docs/sdks/apiendpoints/README.md#getallapiendpoints) - Get all Api endpoints for a particular apiID.
96-
* [GetAllForVersionAPIEndpoints](docs/sdks/apiendpoints/README.md#getallforversionapiendpoints) - Get all ApiEndpoints for a particular apiID and versionID.
97-
* [GetAPIEndpoint](docs/sdks/apiendpoints/README.md#getapiendpoint) - Get an ApiEndpoint.
98-
* [UpsertAPIEndpoint](docs/sdks/apiendpoints/README.md#upsertapiendpoint) - Upsert an ApiEndpoint.
99-
100-
### [Apis](docs/sdks/apis/README.md)
101-
102-
* [DeleteAPI](docs/sdks/apis/README.md#deleteapi) - Delete an Api.
103-
* [GenerateOpenAPISpec](docs/sdks/apis/README.md#generateopenapispec) - Generate an OpenAPI specification for a particular Api.
104-
* [GeneratePostmanCollection](docs/sdks/apis/README.md#generatepostmancollection) - Generate a Postman collection for a particular Api.
105-
* [GetAllAPIVersions](docs/sdks/apis/README.md#getallapiversions) - Get all Api versions for a particular ApiEndpoint.
106-
* [GetApis](docs/sdks/apis/README.md#getapis) - Get a list of Apis for a given workspace
107-
* [UpsertAPI](docs/sdks/apis/README.md#upsertapi) - Upsert an Api
108-
109104
### [Artifacts](docs/sdks/artifacts/README.md)
110105

111106
* [CreateRemoteSource](docs/sdks/artifacts/README.md#createremotesource) - Configure a new remote source
@@ -126,12 +121,6 @@ func main() {
126121
* [GetUser](docs/sdks/auth/README.md#getuser) - Get information about the current user.
127122
* [ValidateAPIKey](docs/sdks/auth/README.md#validateapikey) - Validate the current api key.
128123

129-
### [Embeds](docs/sdks/embeds/README.md)
130-
131-
* [GetEmbedAccessToken](docs/sdks/embeds/README.md#getembedaccesstoken) - Get an embed access token for the current workspace.
132-
* [GetValidEmbedAccessTokens](docs/sdks/embeds/README.md#getvalidembedaccesstokens) - Get all valid embed access tokens for the current workspace.
133-
* [RevokeEmbedAccessToken](docs/sdks/embeds/README.md#revokeembedaccesstoken) - Revoke an embed access EmbedToken.
134-
135124
### [Events](docs/sdks/events/README.md)
136125

137126
* [GetEventsByTarget](docs/sdks/events/README.md#geteventsbytarget) - Load recent events for a particular workspace
@@ -154,12 +143,6 @@ func main() {
154143
* [StorePublishingSecrets](docs/sdks/github/README.md#storepublishingsecrets)
155144
* [TriggerAction](docs/sdks/github/README.md#triggeraction)
156145

157-
### [Metadata](docs/sdks/metadata/README.md)
158-
159-
* [DeleteVersionMetadata](docs/sdks/metadata/README.md#deleteversionmetadata) - Delete metadata for a particular apiID and versionID.
160-
* [GetVersionMetadata](docs/sdks/metadata/README.md#getversionmetadata) - Get all metadata for a particular apiID and versionID.
161-
* [InsertVersionMetadata](docs/sdks/metadata/README.md#insertversionmetadata) - Insert metadata for a particular apiID and versionID.
162-
163146
### [Organizations](docs/sdks/organizations/README.md)
164147

165148
* [Create](docs/sdks/organizations/README.md#create) - Create an organization
@@ -174,23 +157,6 @@ func main() {
174157
* [GetLintingReportSignedURL](docs/sdks/reports/README.md#getlintingreportsignedurl) - Get the signed access url for the linting reports for a particular document.
175158
* [UploadReport](docs/sdks/reports/README.md#uploadreport) - Upload a report.
176159

177-
### [Requests](docs/sdks/requests/README.md)
178-
179-
* [GenerateRequestPostmanCollection](docs/sdks/requests/README.md#generaterequestpostmancollection) - Generate a Postman collection for a particular request.
180-
* [GetRequestFromEventLog](docs/sdks/requests/README.md#getrequestfromeventlog) - Get information about a particular request.
181-
* [QueryEventLog](docs/sdks/requests/README.md#queryeventlog) - Query the event log to retrieve a list of requests.
182-
183-
### [Schemas](docs/sdks/schemas/README.md)
184-
185-
* [DeleteSchema](docs/sdks/schemas/README.md#deleteschema) - Delete a particular schema revision for an Api.
186-
* [DownloadSchema](docs/sdks/schemas/README.md#downloadschema) - Download the latest schema for a particular apiID.
187-
* [DownloadSchemaRevision](docs/sdks/schemas/README.md#downloadschemarevision) - Download a particular schema revision for an Api.
188-
* [GetSchema](docs/sdks/schemas/README.md#getschema) - Get information about the latest schema.
189-
* [GetSchemaDiff](docs/sdks/schemas/README.md#getschemadiff) - Get a diff of two schema revisions for an Api.
190-
* [GetSchemaRevision](docs/sdks/schemas/README.md#getschemarevision) - Get information about a particular schema revision for an Api.
191-
* [GetSchemas](docs/sdks/schemas/README.md#getschemas) - Get information about all schemas associated with a particular apiID.
192-
* [RegisterSchema](docs/sdks/schemas/README.md#registerschema) - Register a schema.
193-
194160
### [ShortURLs](docs/sdks/shorturls/README.md)
195161

196162
* [Create](docs/sdks/shorturls/README.md#create) - Shorten a URL.
@@ -270,6 +236,8 @@ import (
270236
)
271237

272238
func main() {
239+
ctx := context.Background()
240+
273241
s := speakeasyclientsdkgo.New(
274242
speakeasyclientsdkgo.WithSecurity(shared.Security{
275243
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
@@ -281,7 +249,6 @@ func main() {
281249
panic(fileErr)
282250
}
283251

284-
ctx := context.Background()
285252
res, err := s.GenerateCodeSamplePreview(ctx, shared.CodeSampleSchemaInput{
286253
Languages: []string{
287254
"<value>",
@@ -338,6 +305,8 @@ import (
338305
)
339306

340307
func main() {
308+
ctx := context.Background()
309+
341310
s := speakeasyclientsdkgo.New(
342311
speakeasyclientsdkgo.WithServer("prod"),
343312
speakeasyclientsdkgo.WithSecurity(shared.Security{
@@ -350,7 +319,6 @@ func main() {
350319
panic(fileErr)
351320
}
352321

353-
ctx := context.Background()
354322
res, err := s.GenerateCodeSamplePreview(ctx, shared.CodeSampleSchemaInput{
355323
Languages: []string{
356324
"<value>",
@@ -386,6 +354,8 @@ import (
386354
)
387355

388356
func main() {
357+
ctx := context.Background()
358+
389359
s := speakeasyclientsdkgo.New(
390360
speakeasyclientsdkgo.WithServerURL("https://api.prod.speakeasyapi.dev"),
391361
speakeasyclientsdkgo.WithSecurity(shared.Security{
@@ -398,7 +368,6 @@ func main() {
398368
panic(fileErr)
399369
}
400370

401-
ctx := context.Background()
402371
res, err := s.GenerateCodeSamplePreview(ctx, shared.CodeSampleSchemaInput{
403372
Languages: []string{
404373
"<value>",
@@ -479,6 +448,8 @@ import (
479448
)
480449

481450
func main() {
451+
ctx := context.Background()
452+
482453
s := speakeasyclientsdkgo.New(
483454
speakeasyclientsdkgo.WithSecurity(shared.Security{
484455
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
@@ -490,7 +461,6 @@ func main() {
490461
panic(fileErr)
491462
}
492463

493-
ctx := context.Background()
494464
res, err := s.GenerateCodeSamplePreview(ctx, shared.CodeSampleSchemaInput{
495465
Languages: []string{
496466
"<value>",
@@ -541,9 +511,10 @@ import (
541511
)
542512

543513
func main() {
514+
ctx := context.Background()
515+
544516
s := speakeasyclientsdkgo.New()
545517

546-
ctx := context.Background()
547518
res, err := s.Auth.GetAccessToken(ctx, operations.GetAccessTokenRequest{
548519
WorkspaceID: "<value>",
549520
})
@@ -578,6 +549,8 @@ import (
578549
)
579550

580551
func main() {
552+
ctx := context.Background()
553+
581554
s := speakeasyclientsdkgo.New(
582555
speakeasyclientsdkgo.WithSecurity(shared.Security{
583556
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
@@ -589,7 +562,6 @@ func main() {
589562
panic(fileErr)
590563
}
591564

592-
ctx := context.Background()
593565
res, err := s.GenerateCodeSamplePreview(ctx, shared.CodeSampleSchemaInput{
594566
Languages: []string{
595567
"<value>",
@@ -634,6 +606,8 @@ import (
634606
)
635607

636608
func main() {
609+
ctx := context.Background()
610+
637611
s := speakeasyclientsdkgo.New(
638612
speakeasyclientsdkgo.WithRetryConfig(
639613
retry.Config{
@@ -656,7 +630,6 @@ func main() {
656630
panic(fileErr)
657631
}
658632

659-
ctx := context.Background()
660633
res, err := s.GenerateCodeSamplePreview(ctx, shared.CodeSampleSchemaInput{
661634
Languages: []string{
662635
"<value>",

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,4 +1476,14 @@ Based on:
14761476
### Generated
14771477
- [go v3.16.4] .
14781478
### Releases
1479-
- [Go v3.16.4] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.16.4 - .
1479+
- [Go v3.16.4] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.16.4 - .
1480+
1481+
## 2024-12-11 22:00:20
1482+
### Changes
1483+
Based on:
1484+
- OpenAPI Doc
1485+
- Speakeasy CLI 1.454.0 (2.477.0) https://github.com/speakeasy-api/speakeasy
1486+
### Generated
1487+
- [go v3.17.0] .
1488+
### Releases
1489+
- [Go v3.17.0] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.17.0 - .

USAGE.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,39 @@ package main
55
import (
66
"context"
77
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
8-
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
98
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
109
"log"
10+
"os"
1111
)
1212

1313
func main() {
14+
ctx := context.Background()
15+
1416
s := speakeasyclientsdkgo.New(
1517
speakeasyclientsdkgo.WithSecurity(shared.Security{
1618
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
1719
}),
1820
)
1921

20-
ctx := context.Background()
21-
res, err := s.Apis.GetApis(ctx, operations.GetApisRequest{})
22+
content, fileErr := os.Open("example.file")
23+
if fileErr != nil {
24+
panic(fileErr)
25+
}
26+
27+
res, err := s.GenerateCodeSamplePreview(ctx, shared.CodeSampleSchemaInput{
28+
Languages: []string{
29+
"<value>",
30+
"<value>",
31+
},
32+
SchemaFile: shared.SchemaFile{
33+
Content: content,
34+
FileName: "example.file",
35+
},
36+
})
2237
if err != nil {
2338
log.Fatal(err)
2439
}
25-
if res.Apis != nil {
40+
if res.TwoHundredApplicationJSONResponseStream != nil {
2641
// handle response
2742
}
2843
}

0 commit comments

Comments
 (0)