Skip to content

Commit cdbb84c

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.540.1
1 parent 2ca720d commit cdbb84c

File tree

17 files changed

+81
-39
lines changed

17 files changed

+81
-39
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.speakeasy/temp/
2+
.DS_Store
13
/mcp-server
24
/bin
35
/.eslintcache

.speakeasy/codeSamples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ actions:
122122
"x-codeSamples":
123123
- "lang": "typescript"
124124
"label": "CreateDeployment"
125-
"source": "import { HathoraCloud } from \"@hathora/cloud-sdk-typescript\";\n\nconst hathoraCloud = new HathoraCloud({\n hathoraDevToken: \"<YOUR_BEARER_TOKEN_HERE>\",\n orgId: \"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\",\n appId: \"app-af469a92-5b45-4565-b3c4-b79878de67d2\",\n});\n\nasync function run() {\n const result = await hathoraCloud.deploymentsV3.createDeployment({\n deploymentTag: \"alpha\",\n idleTimeoutEnabled: false,\n env: [\n\n ],\n roomsPerProcess: 3,\n additionalContainerPorts: [\n {\n transportType: \"tcp\",\n port: 8000,\n name: \"default\",\n },\n ],\n transportType: \"tls\",\n containerPort: 4000,\n experimentalRequestedGPU: 1,\n requestedMemoryMB: 1024,\n requestedCPU: 0.5,\n buildId: \"bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5\",\n }, \"app-af469a92-5b45-4565-b3c4-b79878de67d2\");\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
125+
"source": "import { HathoraCloud } from \"@hathora/cloud-sdk-typescript\";\n\nconst hathoraCloud = new HathoraCloud({\n hathoraDevToken: \"<YOUR_BEARER_TOKEN_HERE>\",\n orgId: \"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\",\n appId: \"app-af469a92-5b45-4565-b3c4-b79878de67d2\",\n});\n\nasync function run() {\n const result = await hathoraCloud.deploymentsV3.createDeployment({\n deploymentTag: \"alpha\",\n idleTimeoutEnabled: false,\n env: [],\n roomsPerProcess: 3,\n additionalContainerPorts: [\n {\n transportType: \"tcp\",\n port: 8000,\n name: \"default\",\n },\n ],\n transportType: \"tls\",\n containerPort: 4000,\n experimentalRequestedGPU: 1,\n requestedMemoryMB: 1024,\n requestedCPU: 0.5,\n buildId: \"bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5\",\n }, \"app-af469a92-5b45-4565-b3c4-b79878de67d2\");\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
126126
- target: $["paths"]["/deployments/v3/apps/{appId}/deployments/latest"]["get"]
127127
update:
128128
"x-codeSamples":

.speakeasy/gen.lock

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: 1b06df09-5141-4b14-b0b7-5415dbf16cfb
33
management:
4-
docChecksum: 2c90156aaf74783c9422552eb6ddbc45
4+
docChecksum: 10e30077996f3af35f5722c7de9180a4
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.531.0
7-
generationVersion: 2.568.2
8-
releaseVersion: 2.18.3
9-
configChecksum: a220b1979faf3e55ff1ec1f2c007bb2c
6+
speakeasyVersion: 1.540.1
7+
generationVersion: 2.593.4
8+
releaseVersion: 2.18.4
9+
configChecksum: 18bf1ccd7967a197be450a6314f914d9
1010
repoURL: https://github.com/hathora/cloud-sdk-typescript.git
1111
installationURL: https://github.com/hathora/cloud-sdk-typescript
1212
published: true
1313
features:
1414
typescript:
1515
additionalDependencies: 0.1.0
1616
constsAndDefaults: 0.1.11
17-
core: 3.21.5
17+
core: 3.21.6
1818
defaultEnabledRetries: 0.1.0
1919
deprecations: 2.81.1
2020
downloadStreams: 0.1.1
@@ -27,7 +27,7 @@ features:
2727
globalServerURLs: 2.82.4
2828
globals: 2.82.2
2929
groups: 2.81.2
30-
mcpServer: 0.9.1
30+
mcpServer: 0.9.2
3131
methodSecurity: 2.82.6
3232
nullables: 0.1.1
3333
openEnums: 0.1.1
@@ -2158,6 +2158,8 @@ examples:
21582158
application/json: [{"status": "paid", "amountDue": 9402.67, "pdfUrl": "https://happy-go-lucky-bakeware.biz", "dueDate": "2024-05-16T21:30:38.840Z", "year": 9590.25, "month": 8858.56, "id": "<id>"}, {"status": "overdue", "amountDue": 1743.65, "pdfUrl": "https://somber-bowling.org", "dueDate": "2025-08-05T20:02:10.376Z", "year": 614.14, "month": 4221.79, "id": "<id>"}, {"status": "pending", "amountDue": 8173.15, "pdfUrl": "https://crushing-suspension.org/", "dueDate": "2024-04-30T02:38:56.141Z", "year": 9770.57, "month": 67.53, "id": "<id>"}]
21592159
"401":
21602160
application/json: {"message": "<value>"}
2161+
"500":
2162+
application/json: {"message": "<value>"}
21612163
LoginAnonymous:
21622164
speakeasy-default-login-anonymous:
21632165
parameters:

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.531.0
1+
speakeasyVersion: 1.540.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:ba2a4a79b7977bf5f7b00581f09c5ea51688ff682a4938e19baaa61d3769294c
6-
sourceBlobDigest: sha256:d4b045de49cf680ea999494c5404fff4e9396b6d4a7e0d9eed69d2a34f74e068
5+
sourceRevisionDigest: sha256:1f84f9ae757969e5dfd4f266a0d3e1bf6cc362eb589bd4919295131294028c7a
6+
sourceBlobDigest: sha256:677dc4f971ab6c965ce5fbcd3f24614f27d7770a0c3a42f44ff3b87eb358fb3e
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1744157800
9+
- speakeasy-sdk-regen-1745885823
1010
- 0.0.1
1111
targets:
1212
hathora-typescript:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:ba2a4a79b7977bf5f7b00581f09c5ea51688ff682a4938e19baaa61d3769294c
16-
sourceBlobDigest: sha256:d4b045de49cf680ea999494c5404fff4e9396b6d4a7e0d9eed69d2a34f74e068
15+
sourceRevisionDigest: sha256:1f84f9ae757969e5dfd4f266a0d3e1bf6cc362eb589bd4919295131294028c7a
16+
sourceBlobDigest: sha256:677dc4f971ab6c965ce5fbcd3f24614f27d7770a0c3a42f44ff3b87eb358fb3e
1717
codeSamplesNamespace: code-samples-typescript-hathora-typescript
18-
codeSamplesRevisionDigest: sha256:50c0041fdd3ab7c3d99e3d9b664eee1e267a501e3f7ae7db734327b6ce7376e8
18+
codeSamplesRevisionDigest: sha256:31ab7d162e767ed99e1c5b10c34ec82e6562c0ca962f35ec9b6475137976d671
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
@@ -950,4 +950,14 @@ Based on:
950950
### Generated
951951
- [typescript v2.18.3] .
952952
### Releases
953-
- [NPM v2.18.3] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.18.3 - .
953+
- [NPM v2.18.3] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.18.3 - .
954+
955+
## 2025-04-29 00:16:47
956+
### Changes
957+
Based on:
958+
- OpenAPI Doc
959+
- Speakeasy CLI 1.540.1 (2.593.4) https://github.com/speakeasy-api/speakeasy
960+
### Generated
961+
- [typescript v2.18.4] .
962+
### Releases
963+
- [NPM v2.18.4] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.18.4 - .

docs/sdks/billingv1/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,4 +486,5 @@ run();
486486
| Error Type | Status Code | Content Type |
487487
| ------------------ | ------------------ | ------------------ |
488488
| errors.ApiError | 401, 404, 422, 429 | application/json |
489+
| errors.ApiError | 500 | application/json |
489490
| errors.SDKError | 4XX, 5XX | \*/\* |

docs/sdks/deploymentsv3/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ async function run() {
109109
const result = await hathoraCloud.deploymentsV3.createDeployment({
110110
deploymentTag: "alpha",
111111
idleTimeoutEnabled: false,
112-
env: [
113-
114-
],
112+
env: [],
115113
roomsPerProcess: 3,
116114
additionalContainerPorts: [
117115
{
@@ -155,9 +153,7 @@ async function run() {
155153
const res = await deploymentsV3CreateDeployment(hathoraCloud, {
156154
deploymentTag: "alpha",
157155
idleTimeoutEnabled: false,
158-
env: [
159-
160-
],
156+
env: [],
161157
roomsPerProcess: 3,
162158
additionalContainerPorts: [
163159
{

gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ generation:
1111
parameterOrderingFeb2024: true
1212
requestResponseComponentNamesFeb2024: true
1313
securityFeb2025: false
14+
sharedErrorComponentsApr2025: false
1415
auth:
1516
oAuth2ClientCredentialsEnabled: false
1617
oAuth2PasswordEnabled: false
@@ -21,7 +22,7 @@ management:
2122
generationVersion: 2.188.3
2223
speakeasyVersion: 1.120.0
2324
typescript:
24-
version: 2.18.3
25+
version: 2.18.4
2526
additionalDependencies:
2627
dependencies: {}
2728
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": "@hathora/cloud-sdk-typescript",
5-
"version": "2.18.3",
5+
"version": "2.18.4",
66
"exports": {
77
".": "./src/index.ts",
88
"./models/errors": "./src/models/errors/index.ts",

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hathora/cloud-sdk-typescript",
3-
"version": "2.18.3",
3+
"version": "2.18.4",
44
"author": "Hathora",
55
"bin": {
66
"mcp": "bin/mcp-server.js"
@@ -18,15 +18,15 @@
1818
"prepublishOnly": "npm run build"
1919
},
2020
"peerDependencies": {
21-
"@modelcontextprotocol/sdk": "^1.5.0",
21+
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
2222
"zod": ">= 3"
2323
},
2424
"peerDependenciesMeta": {
2525
"@modelcontextprotocol/sdk": {"optional":true}
2626
},
2727
"devDependencies": {
2828
"@eslint/js": "^9.19.0",
29-
"@modelcontextprotocol/sdk": "^1.5.0",
29+
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
3030
"@stricli/core": "^1.1.1",
3131
"@types/express": "^4.17.21",
3232
"bun": "^1.2.2",

src/funcs/billingV1GetInvoices.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export function billingV1GetInvoices(
3737
Result<
3838
Array<components.Invoice>,
3939
| errors.ApiError
40+
| errors.ApiError
4041
| SDKError
4142
| SDKValidationError
4243
| UnexpectedClientError
@@ -62,6 +63,7 @@ async function $do(
6263
Result<
6364
Array<components.Invoice>,
6465
| errors.ApiError
66+
| errors.ApiError
6567
| SDKError
6668
| SDKValidationError
6769
| UnexpectedClientError
@@ -133,7 +135,7 @@ async function $do(
133135

134136
const doResult = await client._do(req, {
135137
context,
136-
errorCodes: ["401", "404", "422", "429", "4XX", "5XX"],
138+
errorCodes: ["401", "404", "422", "429", "4XX", "500", "5XX"],
137139
retryConfig: context.retryConfig,
138140
retryCodes: context.retryCodes,
139141
});
@@ -149,6 +151,7 @@ async function $do(
149151
const [result] = await M.match<
150152
Array<components.Invoice>,
151153
| errors.ApiError
154+
| errors.ApiError
152155
| SDKError
153156
| SDKValidationError
154157
| UnexpectedClientError
@@ -159,6 +162,7 @@ async function $do(
159162
>(
160163
M.json(200, z.array(components.Invoice$inboundSchema)),
161164
M.jsonErr([401, 404, 422, 429], errors.ApiError$inboundSchema),
165+
M.jsonErr(500, errors.ApiError$inboundSchema),
162166
M.fail("4XX"),
163167
M.fail("5XX"),
164168
)(response, { extraFields: responseFields });

src/lib/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
6565
export const SDK_METADATA = {
6666
language: "typescript",
6767
openapiDocVersion: "0.0.1",
68-
sdkVersion: "2.18.3",
69-
genVersion: "2.568.2",
68+
sdkVersion: "2.18.4",
69+
genVersion: "2.593.4",
7070
userAgent:
71-
"speakeasy-sdk/typescript 2.18.3 2.568.2 0.0.1 @hathora/cloud-sdk-typescript",
71+
"speakeasy-sdk/typescript 2.18.4 2.593.4 0.0.1 @hathora/cloud-sdk-typescript",
7272
} 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: "2.18.3",
22+
currentVersion: "2.18.4",
2323
},
2424
});
2525

src/mcp-server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export function createMCPServer(deps: {
134134
}) {
135135
const server = new McpServer({
136136
name: "HathoraCloud",
137-
version: "2.18.3",
137+
version: "2.18.4",
138138
});
139139

140140
const client = new HathoraCloudCore({

0 commit comments

Comments
 (0)