Skip to content

Commit 5865f62

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.555.2
1 parent 161d384 commit 5865f62

36 files changed

+497
-224
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.DS_Store
2+
**/.speakeasy/temp/
3+
**/.speakeasy/logs/
4+
.DS_Store
15
/mcp-server
26
/bin
37
/.eslintcache

.speakeasy/gen.lock

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: 521af75f-d011-41f9-a5ff-9f8033773118
33
management:
4-
docChecksum: 80bdf0b395520d76da9a1e1e2896dae0
4+
docChecksum: 2bf97fa8e6ca517b859cc9784a1260b5
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.514.0
7-
generationVersion: 2.546.0
8-
releaseVersion: 2.4.0-beta
9-
configChecksum: ef5d56dcfd4f4ba9e07e1a535f410421
6+
speakeasyVersion: 1.555.2
7+
generationVersion: 2.620.2
8+
releaseVersion: 2.4.0-beta.1
9+
configChecksum: 64910957f265e0fd12332bd26bf0bb86
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.21.3
16+
core: 3.21.10
1717
deepObjectParams: 0.1.0
1818
defaultEnabledRetries: 0.1.0
1919
devContainers: 2.90.0
@@ -22,15 +22,15 @@ features:
2222
globalSecurity: 2.82.13
2323
globalSecurityCallbacks: 0.1.0
2424
globalSecurityFlattening: 0.1.0
25-
globalServerURLs: 2.82.4
25+
globalServerURLs: 2.82.5
2626
globals: 2.82.2
2727
groups: 2.81.2
28-
mcpServer: 0.6.0
28+
mcpServer: 0.9.2
2929
nameOverrides: 2.81.2
30-
reactQueryHooks: 0.2.2
30+
reactQueryHooks: 0.2.3
3131
responseFormat: 0.2.3
3232
retries: 2.83.0
33-
sdkHooks: 0.2.0
33+
sdkHooks: 0.3.0
3434
serverIDs: 2.81.2
3535
generatedFiles:
3636
- .devcontainer/README.md
@@ -84,6 +84,7 @@ generatedFiles:
8484
- src/mcp-server/console-logger.ts
8585
- src/mcp-server/extensions.ts
8686
- src/mcp-server/mcp-server.ts
87+
- src/mcp-server/prompts.ts
8788
- src/mcp-server/resources.ts
8889
- src/mcp-server/scopes.ts
8990
- src/mcp-server/server.ts
@@ -130,9 +131,9 @@ examples:
130131
languages: ["python", "javascript"]
131132
responses:
132133
2XX:
133-
application/json: {"snippets": [{"path": "/sbin", "method": "<value>", "operationId": "<id>", "language": "php,", "code": "<value>"}, {"path": "/root", "method": "<value>", "operationId": "<id>", "language": "unity,", "code": "<value>"}]}
134+
application/json: {"snippets": []}
134135
4XX:
135-
application/json: {"message": "<value>", "status_code": 521235}
136+
application/json: {"message": "<value>", "status_code": 887801}
136137
default:
137138
parameters:
138139
query:
@@ -143,5 +144,5 @@ examples:
143144
responses:
144145
2XX:
145146
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();"}]}
146-
examplesVersion: 1.0.0
147+
examplesVersion: 1.0.2
147148
generatedTests: {}

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ generation:
77
maintainOpenAPIOrder: true
88
usageSnippets:
99
optionalPropertyRendering: withExample
10+
sdkInitStyle: constructor
1011
useClassNamesForArrayFields: true
1112
fixes:
1213
nameResolutionFeb2025: false
1314
parameterOrderingFeb2024: false
1415
requestResponseComponentNamesFeb2024: false
1516
securityFeb2025: false
17+
sharedErrorComponentsApr2025: false
1618
auth:
1719
oAuth2ClientCredentialsEnabled: false
1820
oAuth2PasswordEnabled: false
1921
typescript:
20-
version: 2.4.0-beta
22+
version: 2.4.0-beta.1
2123
additionalDependencies:
2224
dependencies:
2325
'@emotion/css': ^11.13.5

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.514.0
1+
speakeasyVersion: 1.555.2
22
sources:
33
speakeasy-OAS:
44
sourceNamespace: speakeasy-oas
5-
sourceRevisionDigest: sha256:c95b7bde7a889f8d6461e405347f2dac28defaaf6a36cc19709b4ce29f4eaefb
6-
sourceBlobDigest: sha256:706c912b2e5755fdaff8d2a95ca3ce6fb1fff777a7aa49a8afcb0b909cc22892
5+
sourceRevisionDigest: sha256:fe90a8416878ccd977d4943bbc866ae3e1416cd82cbd596c785bfe09a0a68b07
6+
sourceBlobDigest: sha256:6d02c1da40b091bd5926fb3870db4b4a29a4f853f6b373763afda1e0969ea73d
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1741642416
9+
- speakeasy-sdk-regen-1746489958
1010
- 0.4.0
1111
targets:
1212
code_samples_typescript_sdk:
1313
source: speakeasy-OAS
1414
sourceNamespace: speakeasy-oas
15-
sourceRevisionDigest: sha256:c95b7bde7a889f8d6461e405347f2dac28defaaf6a36cc19709b4ce29f4eaefb
16-
sourceBlobDigest: sha256:706c912b2e5755fdaff8d2a95ca3ce6fb1fff777a7aa49a8afcb0b909cc22892
15+
sourceRevisionDigest: sha256:fe90a8416878ccd977d4943bbc866ae3e1416cd82cbd596c785bfe09a0a68b07
16+
sourceBlobDigest: sha256:6d02c1da40b091bd5926fb3870db4b4a29a4f853f6b373763afda1e0969ea73d
1717
codeSamplesNamespace: speakeasy-oas-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:73a780b60ccc00d5344b505208070173d62dfcb9013e97f8f123e322230d6afe
18+
codeSamplesRevisionDigest: sha256:ec546c67394b15455a4ebe23420aaf00adcd6c358c7877dea6d00e7653d24044
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

FUNCTIONS.md

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,16 @@ 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 { SDKValidationError } from "@speakeasyapi/code-samples/models/errors/sdkvalidationerror.js";
2524

2625
// Use `SpeakeasyCodeSamplesCore` for best tree-shaking performance.
2726
// You can create one instance of it to use across an application.
2827
const speakeasyCodeSamples = new SpeakeasyCodeSamplesCore({
28+
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
2929
apiKey: "<YOUR_API_KEY_HERE>",
30-
registryUrl: "https://spec.speakeasy.com/org/ws/my-source",
3130
});
3231

3332
async function run() {
3433
const res = await codeSamplesGet(speakeasyCodeSamples, {
35-
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
3634
operationIds: [
3735
"getPets",
3836
],
@@ -47,28 +45,12 @@ async function run() {
4745
"javascript",
4846
],
4947
});
50-
51-
switch (true) {
52-
case res.ok:
53-
// The success case will be handled outside of the switch block
54-
break;
55-
case res.error instanceof SDKValidationError:
56-
// Pretty-print validation errors.
57-
return console.log(res.error.pretty());
58-
case res.error instanceof Error:
59-
return console.log(res.error);
60-
default:
61-
// TypeScript's type checking will fail on the following line if the above
62-
// cases were not exhaustive.
63-
res.error satisfies never;
64-
throw new Error("Assertion failed: expected error checks to be exhaustive: " + res.error);
48+
if (res.ok) {
49+
const { value: result } = res;
50+
console.log(result);
51+
} else {
52+
console.log("codeSamplesGet failed:", res.error);
6553
}
66-
67-
68-
const { value: result } = res;
69-
70-
// Handle the result
71-
console.log(result);
7254
}
7355

7456
run();

REACT_QUERY.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import { SpeakeasyCodeSamplesProvider } from "@speakeasyapi/code-samples/react-q
2323

2424
const queryClient = new QueryClient();
2525
const speakeasyCodeSamples = new SpeakeasyCodeSamplesCore({
26+
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
2627
apiKey: "<YOUR_API_KEY_HERE>",
27-
registryUrl: "https://spec.speakeasy.com/org/ws/my-source",
2828
});
2929

3030
// Retries are handled by the underlying SDK.
@@ -55,7 +55,6 @@ import { useCodeSamples } from "@speakeasyapi/code-samples/react-query/codeSampl
5555

5656
export function Example() {
5757
const { data, error, status } = useCodeSamples({
58-
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
5958
operationIds: [
6059
"getPets",
6160
],
@@ -88,7 +87,6 @@ export function ExampleWithOptions() {
8887
const [enabled, setEnabled] = useState(true);
8988
const { data, error, status } = useCodeSamples(
9089
{
91-
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
9290
operationIds: [
9391
"getPets",
9492
],
@@ -189,8 +187,8 @@ import { useCodeSamplesSuspense } from "@speakeasyapi/code-samples/react-query/c
189187

190188
const queryClient = new QueryClient();
191189
const speakeasyCodeSamples = new SpeakeasyCodeSamplesCore({
190+
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
192191
apiKey: "<YOUR_API_KEY_HERE>",
193-
registryUrl: "https://spec.speakeasy.com/org/ws/my-source",
194192
});
195193

196194
export function App() {
@@ -222,7 +220,6 @@ export function App() {
222220

223221
function Example() {
224222
const { data } = useCodeSamplesSuspense({
225-
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
226223
operationIds: [
227224
"getPets",
228225
],
@@ -261,12 +258,11 @@ import { prefetchCodeSamples } from "@speakeasyapi/code-samples/react-query/code
261258
export default async function Page() {
262259
const queryClient = new QueryClient();
263260
const speakeasyCodeSamples = new SpeakeasyCodeSamplesCore({
261+
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
264262
apiKey: "<YOUR_API_KEY_HERE>",
265-
registryUrl: "https://spec.speakeasy.com/org/ws/my-source",
266263
});
267264

268265
await prefetchCodeSamples(queryClient, speakeasyCodeSamples, {
269-
registryUrl: "https://spec.speakeasy.com/my-org/my-workspace/my-source",
270266
operationIds: [
271267
"getPets",
272268
],

0 commit comments

Comments
 (0)