Skip to content

Commit 63ebc82

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.469.1
1 parent a846e90 commit 63ebc82

File tree

19 files changed

+287
-27
lines changed

19 files changed

+287
-27
lines changed

.speakeasy/gen.lock

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 2858c6d9-f946-4185-ae68-3b8e708830fb
33
management:
4-
docChecksum: 37a13cf25882217bb6883efc4407294c
4+
docChecksum: 1766b7749df601fc084985fa6f54c7be
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.468.9
6+
speakeasyVersion: 1.469.1
77
generationVersion: 2.493.21
8-
releaseVersion: 3.19.4
9-
configChecksum: 740e28bc9e9c18688289ea42ad39d30c
8+
releaseVersion: 3.20.0
9+
configChecksum: 0ea4d7c78a5733ae04e0d5ea02cfd08a
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go
@@ -16,6 +16,7 @@ features:
1616
acceptHeaders: 2.81.2
1717
additionalDependencies: 0.1.0
1818
core: 3.6.6
19+
deepObjectParams: 0.1.1
1920
defaultEnabledRetries: 0.2.0
2021
deprecations: 2.81.2
2122
devContainers: 2.90.0
@@ -130,6 +131,7 @@ generatedFiles:
130131
- /pkg/models/shared/githubsetupstateresponse.go
131132
- /pkg/models/shared/githubstorepublishingsecretsrequest.go
132133
- /pkg/models/shared/githubtriggeractionrequest.go
134+
- /pkg/models/shared/httpmethod.go
133135
- /pkg/models/shared/interactiontype.go
134136
- /pkg/models/shared/manifest.go
135137
- /pkg/models/shared/namespace.go
@@ -268,6 +270,7 @@ generatedFiles:
268270
- docs/pkg/models/operations/linkgithubaccessresponse.md
269271
- docs/pkg/models/operations/listremotesourcesrequest.md
270272
- docs/pkg/models/operations/listremotesourcesresponse.md
273+
- docs/pkg/models/operations/methodpaths.md
271274
- docs/pkg/models/operations/option.md
272275
- docs/pkg/models/operations/posttagsrequest.md
273276
- docs/pkg/models/operations/posttagsresponse.md
@@ -335,6 +338,7 @@ generatedFiles:
335338
- docs/pkg/models/shared/githubsetupstateresponse.md
336339
- docs/pkg/models/shared/githubstorepublishingsecretsrequest.md
337340
- docs/pkg/models/shared/githubtriggeractionrequest.md
341+
- docs/pkg/models/shared/httpmethod.md
338342
- docs/pkg/models/shared/interactiontype.md
339343
- docs/pkg/models/shared/level.md
340344
- docs/pkg/models/shared/license.md
@@ -527,6 +531,7 @@ generatedFiles:
527531
- tests/mockserver/internal/sdk/models/components/githubstorepublishingsecretsrequest.go
528532
- tests/mockserver/internal/sdk/models/components/githubtriggeractionrequest.go
529533
- tests/mockserver/internal/sdk/models/components/httpmetadata.go
534+
- tests/mockserver/internal/sdk/models/components/httpmethod.go
530535
- tests/mockserver/internal/sdk/models/components/interactiontype.go
531536
- tests/mockserver/internal/sdk/models/components/manifest.go
532537
- tests/mockserver/internal/sdk/models/components/namespace.go
@@ -1826,10 +1831,12 @@ examples:
18261831
parameters:
18271832
query:
18281833
registry_url: "https://spec.speakeasy.com/my-org/my-workspace/my-source"
1829-
operation_ids: ["getPetById"]
1834+
operation_ids: ["getPets"]
1835+
method_paths: [{"method": "get", "path": "/pets"}]
1836+
languages: ["python", "javascript"]
18301837
responses:
18311838
2XX:
1832-
application/json: {"snippets": [{"code": "<value>", "language": "<value>", "operationId": "<id>"}, {"code": "<value>", "language": "<value>", "operationId": "<id>"}]}
1839+
application/json: {"snippets": [{"code": "<value>", "language": "<value>", "method": "<value>", "operationId": "<id>", "path": "/usr/bin"}, {"code": "<value>", "language": "<value>", "method": "<value>", "operationId": "<id>", "path": "/sbin"}]}
18331840
4XX:
18341841
application/json: {"message": "<value>", "status_code": 558834}
18351842
python:
@@ -1869,10 +1876,12 @@ examples:
18691876
parameters:
18701877
query:
18711878
registry_url: "https://spec.speakeasy.com/my-org/my-workspace/my-source"
1872-
operation_ids: ["getPetById"]
1879+
operation_ids: ["getPets"]
1880+
method_paths: [{"method": "get", "path": "/pets"}]
1881+
languages: ["python", "javascript"]
18731882
responses:
18741883
2XX:
1875-
application/json: {"snippets": [{"code": "import { Petstore } from \"petstore-sdk\";\n\nconst petstore = new Petstore({\n apiKey: \"<YOUR_API_KEY_HERE>\",\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();", "language": "typescript", "operationId": "getPetById"}]}
1884+
application/json: {"snippets": [{"code": "import { Petstore } from \"petstore-sdk\";\n\nconst petstore = new Petstore({\n apiKey: \"<YOUR_API_KEY_HERE>\",\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();", "language": "typescript", "method": "get", "operationId": "getPetById", "path": "/pet/{id}"}]}
18761885
setWorkspaceFeatureFlags:
18771886
speakeasy-default-set-workspace-feature-flags:
18781887
requestBody:

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.468.9
1+
speakeasyVersion: 1.469.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:dcfd0e20cf07a7c4a0a7dda16ceb197a596551c82ff66118822aaa0d0c8694fb
6-
sourceBlobDigest: sha256:8f42a23c071ea4583fdaac6d8f79bd01e9162d8ac53fe951400456d9773591a3
5+
sourceRevisionDigest: sha256:1061f37e6cab40c394b417d8d91a3a213cc0f6ba425d93f71027862542d223ce
6+
sourceBlobDigest: sha256:89100d40a58b27e5294c921a7c698253b084d037635894f0a7c15ab40e224589
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:dcfd0e20cf07a7c4a0a7dda16ceb197a596551c82ff66118822aaa0d0c8694fb
16-
sourceBlobDigest: sha256:8f42a23c071ea4583fdaac6d8f79bd01e9162d8ac53fe951400456d9773591a3
15+
sourceRevisionDigest: sha256:1061f37e6cab40c394b417d8d91a3a213cc0f6ba425d93f71027862542d223ce
16+
sourceBlobDigest: sha256:89100d40a58b27e5294c921a7c698253b084d037635894f0a7c15ab40e224589
1717
codeSamplesNamespace: code-samples-go-speakeasy-client-sdk-go
18-
codeSamplesRevisionDigest: sha256:032898a9fef0da1e9fda2f8a69d84a901a271de88891310ebb6cd59255786a71
18+
codeSamplesRevisionDigest: sha256:6e4a408a0333f476b976bcefceae2027136eb782f2d7b7e2f40124263b0082eb
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,4 +1566,14 @@ Based on:
15661566
### Generated
15671567
- [go v3.19.4] .
15681568
### Releases
1569-
- [Go v3.19.4] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.19.4 - .
1569+
- [Go v3.19.4] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.19.4 - .
1570+
1571+
## 2025-01-18 22:02:14
1572+
### Changes
1573+
Based on:
1574+
- OpenAPI Doc
1575+
- Speakeasy CLI 1.469.1 (2.493.21) https://github.com/speakeasy-api/speakeasy
1576+
### Generated
1577+
- [go v3.20.0] .
1578+
### Releases
1579+
- [Go v3.20.0] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.20.0 - .

codeSamples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ actions:
6868
x-codeSamples:
6969
- lang: go
7070
label: getCodeSamples
71-
source: "package main\n\nimport(\n\t\"context\"\n\tspeakeasyclientsdkgo \"github.com/speakeasy-api/speakeasy-client-sdk-go/v3\"\n\t\"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared\"\n\t\"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := speakeasyclientsdkgo.New(\n speakeasyclientsdkgo.WithSecurity(shared.Security{\n APIKey: speakeasyclientsdkgo.String(\"<YOUR_API_KEY_HERE>\"),\n }),\n )\n\n res, err := s.CodeSamples.Get(ctx, operations.GetCodeSamplesRequest{\n RegistryURL: \"https://spec.speakeasy.com/my-org/my-workspace/my-source\",\n OperationIds: []string{\n \"getPetById\",\n },\n Languages: []string{\n \"python\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.UsageSnippets != nil {\n // handle response\n }\n}"
71+
source: "package main\n\nimport(\n\t\"context\"\n\tspeakeasyclientsdkgo \"github.com/speakeasy-api/speakeasy-client-sdk-go/v3\"\n\t\"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared\"\n\t\"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := speakeasyclientsdkgo.New(\n speakeasyclientsdkgo.WithSecurity(shared.Security{\n APIKey: speakeasyclientsdkgo.String(\"<YOUR_API_KEY_HERE>\"),\n }),\n )\n\n res, err := s.CodeSamples.Get(ctx, operations.GetCodeSamplesRequest{\n RegistryURL: \"https://spec.speakeasy.com/my-org/my-workspace/my-source\",\n OperationIds: []string{\n \"getPets\",\n },\n MethodPaths: []operations.MethodPaths{\n operations.MethodPaths{\n Method: shared.HTTPMethodGet,\n Path: \"/pets\",\n },\n },\n Languages: []string{\n \"python\",\n \"javascript\",\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res.UsageSnippets != nil {\n // handle response\n }\n}"
7272
- target: $["paths"]["/v1/code_sample/preview"]["post"]
7373
update:
7474
x-codeSamples:

docs/pkg/models/operations/getcodesamplesrequest.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
8-
| `Languages` | []*string* | :heavy_minus_sign: | The languages to retrieve snippets for. | |
9-
| `OperationIds` | []*string* | :heavy_minus_sign: | The operation IDs to retrieve snippets for. | getPetById |
10-
| `RegistryURL` | *string* | :heavy_check_mark: | The registry URL from which to retrieve the snippets. | https://spec.speakeasy.com/my-org/my-workspace/my-source |
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
8+
| `Languages` | []*string* | :heavy_minus_sign: | The languages to retrieve snippets for. | [<br/>"python",<br/>"javascript"<br/>] |
9+
| `MethodPaths` | [][operations.MethodPaths](../../../pkg/models/operations/methodpaths.md) | :heavy_minus_sign: | The method paths to retrieve snippets for. | [<br/>{<br/>"method": "get",<br/>"path": "/pets"<br/>}<br/>] |
10+
| `OperationIds` | []*string* | :heavy_minus_sign: | The operation IDs to retrieve snippets for. | getPets |
11+
| `RegistryURL` | *string* | :heavy_check_mark: | The registry URL from which to retrieve the snippets. | https://spec.speakeasy.com/my-org/my-workspace/my-source |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# MethodPaths
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- |
8+
| `Method` | [shared.HTTPMethod](../../../pkg/models/shared/httpmethod.md) | :heavy_check_mark: | N/A |
9+
| `Path` | *string* | :heavy_check_mark: | N/A |

docs/pkg/models/shared/httpmethod.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# HTTPMethod
2+
3+
4+
## Values
5+
6+
| Name | Value |
7+
| ------------------- | ------------------- |
8+
| `HTTPMethodGet` | get |
9+
| `HTTPMethodPost` | post |
10+
| `HTTPMethodPut` | put |
11+
| `HTTPMethodPatch` | patch |
12+
| `HTTPMethodDelete` | delete |
13+
| `HTTPMethodHead` | head |
14+
| `HTTPMethodOptions` | options |
15+
| `HTTPMethodTrace` | trace |

docs/pkg/models/shared/usagesnippet.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@
77
| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- |
88
| `Code` | *string* | :heavy_check_mark: | The code snippet |
99
| `Language` | *string* | :heavy_check_mark: | The language of the snippet |
10-
| `OperationID` | *string* | :heavy_check_mark: | The operation ID for the snippet |
10+
| `Method` | *any* | :heavy_check_mark: | The HTTP method of the operation |
11+
| `OperationID` | *string* | :heavy_check_mark: | The operation ID for the snippet |
12+
| `Path` | *string* | :heavy_check_mark: | The path of the operation |

docs/sdks/codesamples/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ func main() {
157157

158158
Retrieve usage snippets from an OpenAPI document stored in the registry. Supports filtering by language and operation ID.
159159

160-
161160
### Example Usage
162161

163162
```go
@@ -183,9 +182,16 @@ func main() {
183182
res, err := s.CodeSamples.Get(ctx, operations.GetCodeSamplesRequest{
184183
Languages: []string{
185184
"python",
185+
"javascript",
186+
},
187+
MethodPaths: []operations.MethodPaths{
188+
operations.MethodPaths{
189+
Method: shared.HTTPMethodGet,
190+
Path: "/pets",
191+
},
186192
},
187193
OperationIds: []string{
188-
"getPetById",
194+
"getPets",
189195
},
190196
RegistryURL: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
191197
})

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ generation:
1818
tests:
1919
generateNewTests: true
2020
go:
21-
version: 3.19.4
21+
version: 3.20.0
2222
additionalDependencies: {}
2323
allowUnknownFieldsInWeakUnions: false
2424
clientServerStatusCodesAsErrors: true

0 commit comments

Comments
 (0)