Skip to content

Commit c89d554

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.533.0
1 parent 87c4e34 commit c89d554

File tree

12 files changed

+59
-20
lines changed

12 files changed

+59
-20
lines changed

.speakeasy/gen.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ id: 89968bf0-a755-4d50-9acb-d47410010f05
33
management:
44
docChecksum: 711b3f6457c659edd2d9b9d7c32fc154
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.531.3
7-
generationVersion: 2.570.3
8-
releaseVersion: 5.0.0-rc.1
9-
configChecksum: 2a0ec6cae67f283e86f98022cfda3f43
6+
speakeasyVersion: 1.533.0
7+
generationVersion: 2.578.0
8+
releaseVersion: 5.0.0-rc.2
9+
configChecksum: 5141713c865752a34cd24b435a6406e4
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript

.speakeasy/workflow.lock

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
speakeasyVersion: 1.531.3
1+
speakeasyVersion: 1.533.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:a7553f9cadf93d6dec407cf1be5ba62d2dc356c0880236f05599b421725c1871
5+
sourceRevisionDigest: sha256:a158de456b60869191cb95c2fc10843faebff10e56a150837f61648cd60ae245
66
sourceBlobDigest: sha256:f9444653744aa4a4ca763e60284ec246889d5345d43d6544058196709ead8a39
77
tags:
88
- latest
9+
- speakeasy-sdk-regen-1744837761
910
- 0.4.0
1011
targets:
1112
speakeasy-client-sdk-typescript:
1213
source: my-source
1314
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:a7553f9cadf93d6dec407cf1be5ba62d2dc356c0880236f05599b421725c1871
15+
sourceRevisionDigest: sha256:a158de456b60869191cb95c2fc10843faebff10e56a150837f61648cd60ae245
1516
sourceBlobDigest: sha256:f9444653744aa4a4ca763e60284ec246889d5345d43d6544058196709ead8a39
17+
codeSamplesNamespace: my-source-typescript-code-samples
18+
codeSamplesRevisionDigest: sha256:6e5a21c8897d3628c3b153999a518f6f2678e3954e418087c458bbe9e4c4bc27
1619
workflow:
1720
workflowVersion: 1.0.0
1821
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,4 +1676,14 @@ Based on:
16761676
### Generated
16771677
- [typescript v4.0.0-rc.4] .
16781678
### Releases
1679-
- [NPM v4.0.0-rc.4] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/4.0.0-rc.4 - .
1679+
- [NPM v4.0.0-rc.4] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/4.0.0-rc.4 - .
1680+
1681+
## 2025-04-16 21:09:05
1682+
### Changes
1683+
Based on:
1684+
- OpenAPI Doc
1685+
- Speakeasy CLI 1.533.0 (2.578.0) https://github.com/speakeasy-api/speakeasy
1686+
### Generated
1687+
- [typescript v5.0.0-rc.2] .
1688+
### Releases
1689+
- [NPM v5.0.0-rc.2] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/5.0.0-rc.2 - .

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: false
1414
oAuth2PasswordEnabled: false
1515
typescript:
16-
version: 5.0.0-rc.1
16+
version: 5.0.0-rc.2
1717
additionalDependencies:
1818
dependencies: {}
1919
devDependencies: {}

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "@speakeasy-api/speakeasy-client-sdk-typescript",
5-
"version": "5.0.0-rc.1",
5+
"version": "5.0.0-rc.2",
66
"exports": {
77
".": "./src/index.ts",
88
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@speakeasy-api/speakeasy-client-sdk-typescript",
3-
"version": "5.0.0-rc.1",
3+
"version": "5.0.0-rc.2",
44
"author": "Speakeasy",
55
"bin": {
66
"mcp": "bin/mcp-server.js"

src/lib/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
6161
export const SDK_METADATA = {
6262
language: "typescript",
6363
openapiDocVersion: "0.4.0",
64-
sdkVersion: "5.0.0-rc.1",
65-
genVersion: "2.570.3",
64+
sdkVersion: "5.0.0-rc.2",
65+
genVersion: "2.578.0",
6666
userAgent:
67-
"speakeasy-sdk/typescript 5.0.0-rc.1 2.570.3 0.4.0 @speakeasy-api/speakeasy-client-sdk-typescript",
67+
"speakeasy-sdk/typescript 5.0.0-rc.2 2.578.0 0.4.0 @speakeasy-api/speakeasy-client-sdk-typescript",
6868
} as const;

src/lib/matchers.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { isPlainObject } from "./is-plain-object.js";
1010
import { safeParse } from "./schemas.js";
1111

1212
export type Encoding =
13+
| "jsonl"
1314
| "json"
1415
| "text"
1516
| "bytes"
@@ -19,6 +20,7 @@ export type Encoding =
1920
| "fail";
2021

2122
const DEFAULT_CONTENT_TYPES: Record<Encoding, string> = {
23+
jsonl: "application/jsonl",
2224
json: "application/json",
2325
text: "text/plain",
2426
bytes: "application/octet-stream",
@@ -72,6 +74,21 @@ export function json<T>(
7274
return { ...options, enc: "json", codes, schema };
7375
}
7476

77+
export function jsonl<T>(
78+
codes: StatusCodePredicate,
79+
schema: Schema<T>,
80+
options?: MatchOptions,
81+
): ValueMatcher<T> {
82+
return { ...options, enc: "jsonl", codes, schema };
83+
}
84+
85+
export function jsonlErr<E>(
86+
codes: StatusCodePredicate,
87+
schema: Schema<E>,
88+
options?: MatchOptions,
89+
): ErrorMatcher<E> {
90+
return { ...options, err: true, enc: "jsonl", codes, schema };
91+
}
7592
export function textErr<E>(
7693
codes: StatusCodePredicate,
7794
schema: Schema<E>,
@@ -204,6 +221,9 @@ export function match<T, E>(
204221
case "json":
205222
raw = await response.json();
206223
break;
224+
case "jsonl":
225+
raw = response.body;
226+
break;
207227
case "bytes":
208228
raw = new Uint8Array(await response.arrayBuffer());
209229
break;

src/lib/sdks.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ export class ClientSDK {
298298
}
299299
}
300300

301-
const jsonLikeContentTypeRE = /^application\/(?:.{0,100}\+)?json/;
301+
const jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/;
302+
const jsonlLikeContentTypeRE =
303+
/(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/;
302304
async function logRequest(logger: Logger | undefined, req: Request) {
303305
if (!logger) {
304306
return;
@@ -364,9 +366,13 @@ async function logResponse(
364366
logger.group("Body:");
365367
switch (true) {
366368
case matchContentType(res, "application/json")
367-
|| jsonLikeContentTypeRE.test(ct):
369+
|| jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct):
368370
logger.log(await res.clone().json());
369371
break;
372+
case matchContentType(res, "application/jsonl")
373+
|| jsonlLikeContentTypeRE.test(ct):
374+
logger.log(await res.clone().text());
375+
break;
370376
case matchContentType(res, "text/event-stream"):
371377
logger.log(`<${contentType}>`);
372378
break;

src/mcp-server/mcp-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
1919
export const app = buildApplication(routes, {
2020
name: "mcp",
2121
versionInfo: {
22-
currentVersion: "5.0.0-rc.1",
22+
currentVersion: "5.0.0-rc.2",
2323
},
2424
});
2525

src/mcp-server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function createMCPServer(deps: {
101101
}) {
102102
const server = new McpServer({
103103
name: "Speakeasy",
104-
version: "5.0.0-rc.1",
104+
version: "5.0.0-rc.2",
105105
});
106106

107107
const client = new SpeakeasyCore({

0 commit comments

Comments
 (0)