Skip to content

Commit 6fa02f7

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.638.1
1 parent 9d505a3 commit 6fa02f7

File tree

332 files changed

+10011
-6967
lines changed

Some content is hidden

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

332 files changed

+10011
-6967
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.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.env
2+
.env.local
13
.DS_Store
24
**/.speakeasy/temp/
35
**/.speakeasy/logs/

.speakeasy/gen.lock

Lines changed: 276 additions & 279 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.638.1
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:27eccaf3b23754cdf4dde0633f2c49a41daa79c65d40a2801b4d829f9c4bba74
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 39 additions & 37 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.Pointer("<YOUR_API_KEY_HERE>"),
6868
}),
6969
)
7070

@@ -172,7 +172,6 @@ func main() {
172172

173173
* [Create](docs/sdks/shorturls/README.md#create) - Shorten a URL.
174174

175-
176175
### [Subscriptions](docs/sdks/subscriptions/README.md)
177176

178177
* [ActivateSubscriptionNamespace](docs/sdks/subscriptions/README.md#activatesubscriptionnamespace) - Activate an ignored namespace for a subscription
@@ -236,7 +235,7 @@ package main
236235
import (
237236
"context"
238237
"errors"
239-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
238+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
240239
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/sdkerrors"
241240
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
242241
"log"
@@ -245,9 +244,9 @@ import (
245244
func main() {
246245
ctx := context.Background()
247246

248-
s := speakeasyclientsdkgo.New(
249-
speakeasyclientsdkgo.WithSecurity(shared.Security{
250-
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
247+
s := v3.New(
248+
v3.WithSecurity(shared.Security{
249+
APIKey: v3.Pointer("<YOUR_API_KEY_HERE>"),
251250
}),
252251
)
253252

@@ -291,18 +290,18 @@ package main
291290

292291
import (
293292
"context"
294-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
293+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
295294
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
296295
"log"
297296
)
298297

299298
func main() {
300299
ctx := context.Background()
301300

302-
s := speakeasyclientsdkgo.New(
303-
speakeasyclientsdkgo.WithServer("prod"),
304-
speakeasyclientsdkgo.WithSecurity(shared.Security{
305-
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
301+
s := v3.New(
302+
v3.WithServer("prod"),
303+
v3.WithSecurity(shared.Security{
304+
APIKey: v3.Pointer("<YOUR_API_KEY_HERE>"),
306305
}),
307306
)
308307

@@ -325,18 +324,18 @@ package main
325324

326325
import (
327326
"context"
328-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
327+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
329328
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
330329
"log"
331330
)
332331

333332
func main() {
334333
ctx := context.Background()
335334

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>"),
335+
s := v3.New(
336+
v3.WithServerURL("https://api.prod.speakeasy.com"),
337+
v3.WithSecurity(shared.Security{
338+
APIKey: v3.Pointer("<YOUR_API_KEY_HERE>"),
340339
}),
341340
)
342341

@@ -371,12 +370,13 @@ The built-in `net/http` client satisfies this interface and a default client bas
371370
import (
372371
"net/http"
373372
"time"
374-
"github.com/myorg/your-go-sdk"
373+
374+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
375375
)
376376

377377
var (
378378
httpClient = &http.Client{Timeout: 30 * time.Second}
379-
sdkClient = sdk.New(sdk.WithClient(httpClient))
379+
sdkClient = v3.New(v3.WithClient(httpClient))
380380
)
381381
```
382382

@@ -404,17 +404,17 @@ package main
404404

405405
import (
406406
"context"
407-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
407+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
408408
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
409409
"log"
410410
)
411411

412412
func main() {
413413
ctx := context.Background()
414414

415-
s := speakeasyclientsdkgo.New(
416-
speakeasyclientsdkgo.WithSecurity(shared.Security{
417-
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
415+
s := v3.New(
416+
v3.WithSecurity(shared.Security{
417+
APIKey: v3.Pointer("<YOUR_API_KEY_HERE>"),
418418
}),
419419
)
420420

@@ -453,15 +453,17 @@ package main
453453

454454
import (
455455
"context"
456-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
456+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
457457
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
458458
"log"
459459
)
460460

461461
func main() {
462462
ctx := context.Background()
463463

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

466468
res, err := s.Auth.GetAccessToken(ctx, operations.GetAccessTokenRequest{
467469
WorkspaceID: "<id>",
@@ -488,7 +490,7 @@ package main
488490

489491
import (
490492
"context"
491-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
493+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
492494
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
493495
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/retry"
494496
"log"
@@ -498,9 +500,9 @@ import (
498500
func main() {
499501
ctx := context.Background()
500502

501-
s := speakeasyclientsdkgo.New(
502-
speakeasyclientsdkgo.WithSecurity(shared.Security{
503-
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
503+
s := v3.New(
504+
v3.WithSecurity(shared.Security{
505+
APIKey: v3.Pointer("<YOUR_API_KEY_HERE>"),
504506
}),
505507
)
506508

@@ -531,7 +533,7 @@ package main
531533

532534
import (
533535
"context"
534-
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
536+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
535537
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
536538
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/retry"
537539
"log"
@@ -540,8 +542,8 @@ import (
540542
func main() {
541543
ctx := context.Background()
542544

543-
s := speakeasyclientsdkgo.New(
544-
speakeasyclientsdkgo.WithRetryConfig(
545+
s := v3.New(
546+
v3.WithRetryConfig(
545547
retry.Config{
546548
Strategy: "backoff",
547549
Backoff: &retry.BackoffStrategy{
@@ -552,8 +554,8 @@ func main() {
552554
},
553555
RetryConnectionErrors: false,
554556
}),
555-
speakeasyclientsdkgo.WithSecurity(shared.Security{
556-
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
557+
v3.WithSecurity(shared.Security{
558+
APIKey: v3.Pointer("<YOUR_API_KEY_HERE>"),
557559
}),
558560
)
559561

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-10-22 22:07:34
1742+
### Changes
1743+
Based on:
1744+
- OpenAPI Doc
1745+
- Speakeasy CLI 1.638.1 (2.729.2) 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 - .

0 commit comments

Comments
 (0)