Skip to content

Commit 7673a62

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.469.1
1 parent b668a8e commit 7673a62

25 files changed

+375
-49
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
!/REACT_QUERY.md
55
!/**/*.ts
66
!/**/*.js
7+
!/**/*.json
78
!/**/*.map
89

910
/.eslintrc.js

.speakeasy/gen.lock

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
lockVersion: 2.0.0
22
id: 521af75f-d011-41f9-a5ff-9f8033773118
33
management:
4-
docChecksum: 9937567df112ab271aff66d72d0fa2fb
4+
docChecksum: a1a59c22189bc31196cf2fee084ce983
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.468.8
7-
generationVersion: 2.493.19
8-
releaseVersion: 2.0.15
9-
configChecksum: a7febf2d7327405b6ee7a59c114089ef
6+
speakeasyVersion: 1.469.1
7+
generationVersion: 2.493.21
8+
releaseVersion: 2.1.0
9+
configChecksum: 6939a47fc02096e5c82ee23222b77765
1010
repoURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts.git
1111
installationURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts
1212
published: true
1313
features:
1414
typescript:
1515
additionalDependencies: 0.1.0
16-
core: 3.18.15
16+
core: 3.18.16
17+
deepObjectParams: 0.1.0
1718
defaultEnabledRetries: 0.1.0
1819
devContainers: 2.90.0
20+
enumUnions: 0.1.0
1921
envVarSecurityUsage: 0.1.2
2022
globalSecurity: 2.82.12
2123
globalSecurityCallbacks: 0.1.0
@@ -41,12 +43,14 @@ generatedFiles:
4143
- RUNTIMES.md
4244
- USAGE.md
4345
- docs/lib/utils/retryconfig.md
46+
- docs/models/components/httpmethod.md
4447
- docs/models/components/security.md
4548
- docs/models/components/usagesnippet.md
4649
- docs/models/components/usagesnippets.md
4750
- docs/models/errors/errort.md
4851
- docs/models/operations/getcodesamplesglobals.md
4952
- docs/models/operations/getcodesamplesrequest.md
53+
- docs/models/operations/methodpaths.md
5054
- docs/sdks/codesamples/README.md
5155
- docs/sdks/speakeasycodesamples/README.md
5256
- jsr.json
@@ -72,6 +76,7 @@ generatedFiles:
7276
- src/lib/sdks.ts
7377
- src/lib/security.ts
7478
- src/lib/url.ts
79+
- src/models/components/httpmethod.ts
7580
- src/models/components/index.ts
7681
- src/models/components/security.ts
7782
- src/models/components/usagesnippet.ts
@@ -114,10 +119,12 @@ examples:
114119
parameters:
115120
query:
116121
registry_url: "https://spec.speakeasy.com/my-org/my-workspace/my-source"
117-
operation_ids: ["getPetById"]
122+
operation_ids: ["getPets"]
123+
method_paths: [{"method": "get", "path": "/pets"}]
124+
languages: ["python", "javascript"]
118125
responses:
119126
2XX:
120-
application/json: {"snippets": [{"operationId": "<id>", "language": "<value>", "code": "<value>"}, {"operationId": "<id>", "language": "<value>", "code": "<value>"}]}
127+
application/json: {"snippets": [{"path": "/usr/bin", "method": "<value>", "operationId": "<id>", "language": "<value>", "code": "<value>"}, {"path": "/sbin", "method": "<value>", "operationId": "<id>", "language": "<value>", "code": "<value>"}]}
121128
4XX:
122129
application/json: {"message": "<value>", "status_code": 558834}
123130
python:
@@ -157,8 +164,10 @@ examples:
157164
parameters:
158165
query:
159166
registry_url: "https://spec.speakeasy.com/org/ws/my-source"
160-
operation_ids: ["getPetById"]
167+
operation_ids: ["getPets"]
168+
method_paths: [{"method": "get", "path": "/pets"}]
169+
languages: ["python", "javascript"]
161170
responses:
162171
2XX:
163-
application/json: {"snippets": [{"operationId": "getPetById", "language": "typescript", "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();"}]}
172+
application/json: {"snippets": [{"path": "/pet/{id}", "method": "get", "operationId": "getPetById", "language": "typescript", "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();"}]}
164173
generatedTests: {}

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ generation:
1616
oAuth2ClientCredentialsEnabled: false
1717
oAuth2PasswordEnabled: false
1818
typescript:
19-
version: 2.0.15
19+
version: 2.1.0
2020
additionalDependencies:
2121
dependencies: {}
2222
devDependencies: {}

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.468.8
1+
speakeasyVersion: 1.469.1
22
sources:
33
speakeasy-OAS:
44
sourceNamespace: speakeasy-oas
5-
sourceRevisionDigest: sha256:1e19d685aeef858d928e7fefadbf2fdc737d6d93e20f009891ea65dbf11e87b3
6-
sourceBlobDigest: sha256:e0df819258d623f1b609d279d3017c64aac3e2156adc4dcf9fe1e2eed9ab0a93
5+
sourceRevisionDigest: sha256:02572601581947b6cb4826a9d7b16bc6e60944906419b0c14823b9a1ad612b58
6+
sourceBlobDigest: sha256:6987ce0a3f23b17659c8331786fe6fc4dc710afdeabe78a0e0cf8a3312878544
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1736995417
9+
- speakeasy-sdk-regen-1737157435
1010
- 0.4.0
1111
targets:
1212
code_samples_typescript_sdk:
1313
source: speakeasy-OAS
1414
sourceNamespace: speakeasy-oas
15-
sourceRevisionDigest: sha256:1e19d685aeef858d928e7fefadbf2fdc737d6d93e20f009891ea65dbf11e87b3
16-
sourceBlobDigest: sha256:e0df819258d623f1b609d279d3017c64aac3e2156adc4dcf9fe1e2eed9ab0a93
15+
sourceRevisionDigest: sha256:02572601581947b6cb4826a9d7b16bc6e60944906419b0c14823b9a1ad612b58
16+
sourceBlobDigest: sha256:6987ce0a3f23b17659c8331786fe6fc4dc710afdeabe78a0e0cf8a3312878544
1717
codeSamplesNamespace: speakeasy-oas-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:a0dd50fa0bb6b51d5679f8a5916f63b01912ecd87ec94f339301a08b45030d30
18+
codeSamplesRevisionDigest: sha256:ddc680c8bc7dfa699ac62fef898eb45b8316732907d43daa4f7873439ea3b96e
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

FUNCTIONS.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ specific category of applications.
2121
```typescript
2222
import { SpeakeasyCodeSamplesCore } from "@speakeasyapi/code-samples/core.js";
2323
import { codeSamplesGet } from "@speakeasyapi/code-samples/funcs/codeSamplesGet.js";
24+
import { HttpMethod } from "@speakeasyapi/code-samples/models/components";
2425
import { SDKValidationError } from "@speakeasyapi/code-samples/models/errors/sdkvalidationerror.js";
2526

2627
// Use `SpeakeasyCodeSamplesCore` for best tree-shaking performance.
@@ -34,10 +35,17 @@ async function run() {
3435
const res = await codeSamplesGet(speakeasyCodeSamples, {
3536
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
3637
operationIds: [
37-
"getPetById",
38+
"getPets",
39+
],
40+
methodPaths: [
41+
{
42+
method: HttpMethod.Get,
43+
path: "/pets",
44+
},
3845
],
3946
languages: [
4047
"python",
48+
"javascript",
4149
],
4250
});
4351

REACT_QUERY.md

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,17 @@ export function Example() {
5757
const { data, error, status } = useCodeSamplesGet({
5858
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
5959
operationIds: [
60-
"getPetById",
60+
"getPets",
61+
],
62+
methodPaths: [
63+
{
64+
method: HttpMethod.Get,
65+
path: "/pets",
66+
},
6167
],
6268
languages: [
6369
"python",
70+
"javascript",
6471
],
6572
});
6673

@@ -83,10 +90,17 @@ export function ExampleWithOptions() {
8390
{
8491
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
8592
operationIds: [
86-
"getPetById",
93+
"getPets",
94+
],
95+
methodPaths: [
96+
{
97+
method: HttpMethod.Get,
98+
path: "/pets",
99+
},
87100
],
88101
languages: [
89102
"python",
103+
"javascript",
90104
],
91105
},
92106
{
@@ -210,10 +224,17 @@ function Example() {
210224
const { data } = useCodeSamplesGetSuspense({
211225
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
212226
operationIds: [
213-
"getPetById",
227+
"getPets",
228+
],
229+
methodPaths: [
230+
{
231+
method: HttpMethod.Get,
232+
path: "/pets",
233+
},
214234
],
215235
languages: [
216236
"python",
237+
"javascript",
217238
],
218239
});
219240

@@ -247,10 +268,17 @@ export default async function Page() {
247268
await prefetchCodeSamplesGet(queryClient, speakeasyCodeSamples, {
248269
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
249270
operationIds: [
250-
"getPetById",
271+
"getPets",
272+
],
273+
methodPaths: [
274+
{
275+
method: HttpMethod.Get,
276+
path: "/pets",
277+
},
251278
],
252279
languages: [
253280
"python",
281+
"javascript",
254282
],
255283
});
256284

0 commit comments

Comments
 (0)