Skip to content

Commit ccea722

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.595.0
1 parent 9d505a3 commit ccea722

File tree

181 files changed

+5290
-4315
lines changed

Some content is hidden

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

181 files changed

+5290
-4315
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// README at: https://github.com/devcontainers/templates/tree/main/src/go
33
{
44
"name": "Go",
5-
"image": "mcr.microsoft.com/devcontainers/go:1-1.20-bullseye",
5+
"image": "mcr.microsoft.com/devcontainers/go:1-1.22-bullseye",
66
// Features to add to the dev container. More info: https://containers.dev/features.
77
// "features": {},
88
// Use 'forwardPorts' to make a list of ports inside the container available locally.

.speakeasy/gen.lock

Lines changed: 272 additions & 275 deletions
Large diffs are not rendered by default.

.speakeasy/tests.arazzo.yaml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,3 +1916,99 @@ workflows:
19161916
{}
19171917
type: simple
19181918
x-speakeasy-test-group: PublishingTokens
1919+
- workflowId: generateCodeSamplePreview-default
1920+
steps:
1921+
- stepId: test
1922+
operationId: generateCodeSamplePreview
1923+
requestBody:
1924+
contentType: multipart/form-data
1925+
payload:
1926+
language: <value>
1927+
schema_file: 'x-file: example.file'
1928+
successCriteria:
1929+
- condition: $statusCode == 2XX
1930+
- condition: $response.header.Content-Type == application/json
1931+
- context: $response.body
1932+
condition: |
1933+
{
1934+
"snippets": [
1935+
{
1936+
"code": "import { Petstore } from \"petstore-sdk\";\n\nconst petstore = new Petstore({\n apiKey: \"\u003cYOUR_API_KEY_HERE\u003e\",\n});\n\nasync function run() {\n const result = await petstore.pet.getById({\n id: 137396,\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();",
1937+
"language": "typescript",
1938+
"method": "get",
1939+
"operationId": "getPetById",
1940+
"path": "/pet/{id}"
1941+
}
1942+
]
1943+
}
1944+
type: simple
1945+
x-speakeasy-test-group: CodeSamples
1946+
x-speakeasy-test-rebuild: true
1947+
- workflowId: getCodeSamples-default
1948+
steps:
1949+
- stepId: test
1950+
operationId: getCodeSamples
1951+
parameters:
1952+
- name: registry_url
1953+
in: query
1954+
value: https://spec.speakeasy.com/my-org/my-workspace/my-source
1955+
- name: operation_ids
1956+
in: query
1957+
value:
1958+
- getPets
1959+
- name: method_paths
1960+
in: query
1961+
value:
1962+
- method: get
1963+
path: /pets
1964+
- name: languages
1965+
in: query
1966+
value:
1967+
- python
1968+
- javascript
1969+
successCriteria:
1970+
- condition: $statusCode == 2XX
1971+
- condition: $response.header.Content-Type == application/json
1972+
- context: $response.body
1973+
condition: |
1974+
{
1975+
"snippets": [
1976+
{
1977+
"code": "import { Petstore } from \"petstore-sdk\";\n\nconst petstore = new Petstore({\n apiKey: \"\u003cYOUR_API_KEY_HERE\u003e\",\n});\n\nasync function run() {\n const result = await petstore.pet.getById({\n id: 137396,\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();",
1978+
"language": "typescript",
1979+
"method": "get",
1980+
"operationId": "getPetById",
1981+
"path": "/pet/{id}"
1982+
}
1983+
]
1984+
}
1985+
type: simple
1986+
x-speakeasy-test-group: CodeSamples
1987+
x-speakeasy-test-rebuild: true
1988+
- workflowId: getCodeSamplePreviewAsync-default
1989+
steps:
1990+
- stepId: test
1991+
operationId: getCodeSamplePreviewAsync
1992+
parameters:
1993+
- name: jobID
1994+
in: path
1995+
value: <id>
1996+
successCriteria:
1997+
- condition: $statusCode == 2XX
1998+
- condition: $response.header.Content-Type == application/json
1999+
- context: $response.body
2000+
condition: |
2001+
{
2002+
"snippets": [
2003+
{
2004+
"code": "import { Petstore } from \"petstore-sdk\";\n\nconst petstore = new Petstore({\n apiKey: \"\u003cYOUR_API_KEY_HERE\u003e\",\n});\n\nasync function run() {\n const result = await petstore.pet.getById({\n id: 137396,\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();",
2005+
"language": "typescript",
2006+
"method": "get",
2007+
"operationId": "getPetById",
2008+
"path": "/pet/{id}"
2009+
}
2010+
]
2011+
}
2012+
type: simple
2013+
x-speakeasy-test-group: CodeSamples
2014+
x-speakeasy-test-rebuild: true

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.542.3
1+
speakeasyVersion: 1.595.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:402d99fabeef032d62c39870ff2b3f9eb8dd356a76a76f07295ac3b4a94af8e0
6-
sourceBlobDigest: sha256:0442ef7698d8979dd825b3eab0ab868ac86580f4cffcd3e0dff7afdd6191e6d9
5+
sourceRevisionDigest: sha256:9128c3df436950ca04fec9dfc74e769e8b492d434b115b197d68da656ae17d23
6+
sourceBlobDigest: sha256:6eb8a6e215c36d3e11d86fc67d5ce7af499bdb934e0f7fbad17efcdde9bffd73
77
tags:
88
- latest
99
- main
@@ -12,10 +12,10 @@ targets:
1212
speakeasy-client-sdk-go:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:402d99fabeef032d62c39870ff2b3f9eb8dd356a76a76f07295ac3b4a94af8e0
16-
sourceBlobDigest: sha256:0442ef7698d8979dd825b3eab0ab868ac86580f4cffcd3e0dff7afdd6191e6d9
15+
sourceRevisionDigest: sha256:9128c3df436950ca04fec9dfc74e769e8b492d434b115b197d68da656ae17d23
16+
sourceBlobDigest: sha256:6eb8a6e215c36d3e11d86fc67d5ce7af499bdb934e0f7fbad17efcdde9bffd73
1717
codeSamplesNamespace: code-samples-go-speakeasy-client-sdk-go
18-
codeSamplesRevisionDigest: sha256:367336fdd435084f895195faf801e7618cdb3d206b55fab1b1d220870ad39fd6
18+
codeSamplesRevisionDigest: sha256:bd25d834e9c2e37153e63f4f7e5fafba31c0ee604740716000b99747a6191c4b
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 39 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ For more information about the API: [The Speakeasy Platform Documentation](/docs
4040

4141
To add the SDK as a dependency to your project:
4242
```bash
43-
go get github.com/speakeasy-api/speakeasy-client-sdk-go
43+
go get github.com/speakeasy-api/speakeasy-client-sdk-go/v3
4444
```
4545
<!-- End SDK Installation [installation] -->
4646

@@ -54,17 +54,17 @@ package main
5454

5555
import (
5656
"context"
57-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
57+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
5858
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
5959
"log"
6060
)
6161

6262
func main() {
6363
ctx := context.Background()
6464

65-
s := speakeasyclientsdkgo.New(
66-
speakeasyclientsdkgo.WithSecurity(shared.Security{
67-
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
65+
s := v3.New(
66+
v3.WithSecurity(shared.Security{
67+
APIKey: v3.String("<YOUR_API_KEY_HERE>"),
6868
}),
6969
)
7070

@@ -236,7 +236,7 @@ package main
236236
import (
237237
"context"
238238
"errors"
239-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
239+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
240240
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/sdkerrors"
241241
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
242242
"log"
@@ -245,9 +245,9 @@ import (
245245
func main() {
246246
ctx := context.Background()
247247

248-
s := speakeasyclientsdkgo.New(
249-
speakeasyclientsdkgo.WithSecurity(shared.Security{
250-
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
248+
s := v3.New(
249+
v3.WithSecurity(shared.Security{
250+
APIKey: v3.String("<YOUR_API_KEY_HERE>"),
251251
}),
252252
)
253253

@@ -291,18 +291,18 @@ package main
291291

292292
import (
293293
"context"
294-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
294+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
295295
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
296296
"log"
297297
)
298298

299299
func main() {
300300
ctx := context.Background()
301301

302-
s := speakeasyclientsdkgo.New(
303-
speakeasyclientsdkgo.WithServer("prod"),
304-
speakeasyclientsdkgo.WithSecurity(shared.Security{
305-
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
302+
s := v3.New(
303+
v3.WithServer("prod"),
304+
v3.WithSecurity(shared.Security{
305+
APIKey: v3.String("<YOUR_API_KEY_HERE>"),
306306
}),
307307
)
308308

@@ -325,18 +325,18 @@ package main
325325

326326
import (
327327
"context"
328-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
328+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
329329
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
330330
"log"
331331
)
332332

333333
func main() {
334334
ctx := context.Background()
335335

336-
s := speakeasyclientsdkgo.New(
337-
speakeasyclientsdkgo.WithServerURL("https://api.prod.speakeasy.com"),
338-
speakeasyclientsdkgo.WithSecurity(shared.Security{
339-
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
336+
s := v3.New(
337+
v3.WithServerURL("https://api.prod.speakeasy.com"),
338+
v3.WithSecurity(shared.Security{
339+
APIKey: v3.String("<YOUR_API_KEY_HERE>"),
340340
}),
341341
)
342342

@@ -371,12 +371,13 @@ The built-in `net/http` client satisfies this interface and a default client bas
371371
import (
372372
"net/http"
373373
"time"
374-
"github.com/myorg/your-go-sdk"
374+
375+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
375376
)
376377

377378
var (
378379
httpClient = &http.Client{Timeout: 30 * time.Second}
379-
sdkClient = sdk.New(sdk.WithClient(httpClient))
380+
sdkClient = v3.New(v3.WithClient(httpClient))
380381
)
381382
```
382383

@@ -404,17 +405,17 @@ package main
404405

405406
import (
406407
"context"
407-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
408+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
408409
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
409410
"log"
410411
)
411412

412413
func main() {
413414
ctx := context.Background()
414415

415-
s := speakeasyclientsdkgo.New(
416-
speakeasyclientsdkgo.WithSecurity(shared.Security{
417-
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
416+
s := v3.New(
417+
v3.WithSecurity(shared.Security{
418+
APIKey: v3.String("<YOUR_API_KEY_HERE>"),
418419
}),
419420
)
420421

@@ -453,15 +454,17 @@ package main
453454

454455
import (
455456
"context"
456-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
457+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
457458
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
458459
"log"
459460
)
460461

461462
func main() {
462463
ctx := context.Background()
463464

464-
s := speakeasyclientsdkgo.New()
465+
s := v3.New(
466+
v3.WithWorkspaceID("<id>"),
467+
)
465468

466469
res, err := s.Auth.GetAccessToken(ctx, operations.GetAccessTokenRequest{
467470
WorkspaceID: "<id>",
@@ -488,7 +491,7 @@ package main
488491

489492
import (
490493
"context"
491-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
494+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
492495
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
493496
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/retry"
494497
"log"
@@ -498,9 +501,9 @@ import (
498501
func main() {
499502
ctx := context.Background()
500503

501-
s := speakeasyclientsdkgo.New(
502-
speakeasyclientsdkgo.WithSecurity(shared.Security{
503-
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
504+
s := v3.New(
505+
v3.WithSecurity(shared.Security{
506+
APIKey: v3.String("<YOUR_API_KEY_HERE>"),
504507
}),
505508
)
506509

@@ -531,7 +534,7 @@ package main
531534

532535
import (
533536
"context"
534-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
537+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
535538
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
536539
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/retry"
537540
"log"
@@ -540,8 +543,8 @@ import (
540543
func main() {
541544
ctx := context.Background()
542545

543-
s := speakeasyclientsdkgo.New(
544-
speakeasyclientsdkgo.WithRetryConfig(
546+
s := v3.New(
547+
v3.WithRetryConfig(
545548
retry.Config{
546549
Strategy: "backoff",
547550
Backoff: &retry.BackoffStrategy{
@@ -552,8 +555,8 @@ func main() {
552555
},
553556
RetryConnectionErrors: false,
554557
}),
555-
speakeasyclientsdkgo.WithSecurity(shared.Security{
556-
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
558+
v3.WithSecurity(shared.Security{
559+
APIKey: v3.String("<YOUR_API_KEY_HERE>"),
557560
}),
558561
)
559562

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1736,4 +1736,14 @@ Based on:
17361736
### Generated
17371737
- [go v3.26.7] .
17381738
### Releases
1739-
- [Go v3.26.7] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.26.7 - .
1739+
- [Go v3.26.7] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.26.7 - .
1740+
1741+
## 2025-07-31 22:08:01
1742+
### Changes
1743+
Based on:
1744+
- OpenAPI Doc
1745+
- Speakeasy CLI 1.595.0 (2.670.1) https://github.com/speakeasy-api/speakeasy
1746+
### Generated
1747+
- [go v3.27.0] .
1748+
### Releases
1749+
- [Go v3.27.0] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.27.0 - .

USAGE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ package main
44

55
import (
66
"context"
7-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
7+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
88
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
99
"log"
1010
)
1111

1212
func main() {
1313
ctx := context.Background()
1414

15-
s := speakeasyclientsdkgo.New(
16-
speakeasyclientsdkgo.WithSecurity(shared.Security{
17-
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
15+
s := v3.New(
16+
v3.WithSecurity(shared.Security{
17+
APIKey: v3.String("<YOUR_API_KEY_HERE>"),
1818
}),
1919
)
2020

0 commit comments

Comments
 (0)