Skip to content

Commit b654f98

Browse files
committed
## Typescript SDK Changes Detected:
* `hathoracloud.nodesV1.getNode()`: **Added** * `hathoracloud.nodesV1.listProvisionedNodes()`: **Added**
1 parent 51d32ec commit b654f98

30 files changed

+1139
-25
lines changed

.speakeasy/codeSamples.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,18 @@ actions:
249249
- "lang": "typescript"
250250
"label": "SendVerificationEmail"
251251
"source": "import { HathoraCloud } from \"@hathora/cloud-sdk-typescript\";\n\nconst hathoraCloud = new HathoraCloud();\n\nasync function run() {\n const result = await hathoraCloud.managementV1.sendVerificationEmail({\n userId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
252+
- target: $["paths"]["/nodes/v1/fleet/{fleetId}/listProvisioned"]["get"]
253+
update:
254+
"x-codeSamples":
255+
- "lang": "typescript"
256+
"label": "ListProvisionedNodes"
257+
"source": "import { HathoraCloud } from \"@hathora/cloud-sdk-typescript\";\n\nconst hathoraCloud = new HathoraCloud({\n orgId: \"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\",\n hathoraDevToken: \"<YOUR_BEARER_TOKEN_HERE>\",\n});\n\nasync function run() {\n const result = await hathoraCloud.nodesV1.listProvisionedNodes(\"<id>\");\n\n console.log(result);\n}\n\nrun();"
258+
- target: $["paths"]["/nodes/v1/{nodeId}"]["get"]
259+
update:
260+
"x-codeSamples":
261+
- "lang": "typescript"
262+
"label": "GetNode"
263+
"source": "import { HathoraCloud } from \"@hathora/cloud-sdk-typescript\";\n\nconst hathoraCloud = new HathoraCloud({\n hathoraDevToken: \"<YOUR_BEARER_TOKEN_HERE>\",\n});\n\nasync function run() {\n const result = await hathoraCloud.nodesV1.getNode(\"<id>\");\n\n console.log(result);\n}\n\nrun();"
252264
- target: $["paths"]["/orgs/v1"]["get"]
253265
update:
254266
"x-codeSamples":

.speakeasy/gen.lock

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 1b06df09-5141-4b14-b0b7-5415dbf16cfb
33
management:
4-
docChecksum: 17af4545dadc394b9c08dbc40a1cba92
4+
docChecksum: 71c38602fe87295b830968e222fd4219
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.636.0
7-
generationVersion: 2.723.2
8-
releaseVersion: 2.21.1
9-
configChecksum: 59cca1777cc45fb540b3ac191a307c82
6+
speakeasyVersion: 1.636.3
7+
generationVersion: 2.723.11
8+
releaseVersion: 2.21.2
9+
configChecksum: b661c6f07f63fa72bcdb2fccf8283916
1010
repoURL: https://github.com/hathora/cloud-sdk-typescript.git
1111
installationURL: https://github.com/hathora/cloud-sdk-typescript
1212
published: true
@@ -132,6 +132,8 @@ generatedFiles:
132132
- docs/models/components/metricvalue.md
133133
- docs/models/components/nicknameobject.md
134134
- docs/models/components/nodeshape.md
135+
- docs/models/components/nodev1.md
136+
- docs/models/components/nodev1status.md
135137
- docs/models/components/organization.md
136138
- docs/models/components/orgmember.md
137139
- docs/models/components/orgmemberscopes.md
@@ -343,6 +345,7 @@ generatedFiles:
343345
- docs/models/operations/getlogsforprocessrequest.md
344346
- docs/models/operations/getmetricsdeprecatedglobals.md
345347
- docs/models/operations/getmetricsdeprecatedrequest.md
348+
- docs/models/operations/getnoderequest.md
346349
- docs/models/operations/getorgmembersrequest.md
347350
- docs/models/operations/getorgpendinginvitesrequest.md
348351
- docs/models/operations/getorgtokensrequest.md
@@ -386,6 +389,8 @@ generatedFiles:
386389
- docs/models/operations/listactivepubliclobbiesdeprecatedv2request.md
387390
- docs/models/operations/listactivepubliclobbiesglobals.md
388391
- docs/models/operations/listactivepubliclobbiesrequest.md
392+
- docs/models/operations/listprovisionednodesglobals.md
393+
- docs/models/operations/listprovisionednodesrequest.md
389394
- docs/models/operations/loginanonymousglobals.md
390395
- docs/models/operations/loginanonymousrequest.md
391396
- docs/models/operations/logingoogleglobals.md
@@ -450,6 +455,7 @@ generatedFiles:
450455
- docs/sdks/logsv1/README.md
451456
- docs/sdks/managementv1/README.md
452457
- docs/sdks/metricsv1/README.md
458+
- docs/sdks/nodesv1/README.md
453459
- docs/sdks/organizationsv1/README.md
454460
- docs/sdks/processesv1/README.md
455461
- docs/sdks/processesv2/README.md
@@ -544,6 +550,8 @@ generatedFiles:
544550
- src/funcs/logsV1GetLogsForProcess.ts
545551
- src/funcs/managementV1SendVerificationEmail.ts
546552
- src/funcs/metricsV1GetMetricsDeprecated.ts
553+
- src/funcs/nodesV1GetNode.ts
554+
- src/funcs/nodesV1ListProvisionedNodes.ts
547555
- src/funcs/organizationsV1AcceptInvite.ts
548556
- src/funcs/organizationsV1GetOrgMembers.ts
549557
- src/funcs/organizationsV1GetOrgPendingInvites.ts
@@ -674,6 +682,7 @@ generatedFiles:
674682
- src/models/components/metricvalue.ts
675683
- src/models/components/nicknameobject.ts
676684
- src/models/components/nodeshape.ts
685+
- src/models/components/nodev1.ts
677686
- src/models/components/organization.ts
678687
- src/models/components/orgmember.ts
679688
- src/models/components/orgmemberspage.ts
@@ -797,6 +806,7 @@ generatedFiles:
797806
- src/models/operations/getlobbyinfobyshortcode.ts
798807
- src/models/operations/getlogsforprocess.ts
799808
- src/models/operations/getmetricsdeprecated.ts
809+
- src/models/operations/getnode.ts
800810
- src/models/operations/getorgmembers.ts
801811
- src/models/operations/getorgpendinginvites.ts
802812
- src/models/operations/getorgtokens.ts
@@ -820,6 +830,7 @@ generatedFiles:
820830
- src/models/operations/listactivepubliclobbies.ts
821831
- src/models/operations/listactivepubliclobbiesdeprecatedv1.ts
822832
- src/models/operations/listactivepubliclobbiesdeprecatedv2.ts
833+
- src/models/operations/listprovisionednodes.ts
823834
- src/models/operations/loginanonymous.ts
824835
- src/models/operations/logingoogle.ts
825836
- src/models/operations/loginnickname.ts
@@ -863,6 +874,7 @@ generatedFiles:
863874
- src/sdk/logsv1.ts
864875
- src/sdk/managementv1.ts
865876
- src/sdk/metricsv1.ts
877+
- src/sdk/nodesv1.ts
866878
- src/sdk/organizationsv1.ts
867879
- src/sdk/processesv1.ts
868880
- src/sdk/processesv2.ts
@@ -2342,5 +2354,31 @@ examples:
23422354
application/json: {"message": "<value>"}
23432355
"500":
23442356
application/json: {"message": "<value>"}
2357+
GetNode:
2358+
speakeasy-default-get-node:
2359+
parameters:
2360+
path:
2361+
nodeId: "<id>"
2362+
responses:
2363+
"200":
2364+
application/json: {"stoppedAt": "2023-07-18T08:08:07.171Z", "startedAt": "2024-11-27T01:07:01.517Z", "gpu": 288.15, "memoryMb": 6909.12, "cpu": 965.52, "region": "Dubai", "status": "running", "hosting": "shared", "host": "shadowy-strait.org", "nodeId": "<id>"}
2365+
"401":
2366+
application/json: {"message": "<value>"}
2367+
ListProvisionedNodes:
2368+
speakeasy-default-list-provisioned-nodes:
2369+
parameters:
2370+
path:
2371+
fleetId: "<id>"
2372+
query:
2373+
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"
2374+
responses:
2375+
"200":
2376+
application/json: [{"stoppedAt": null, "startedAt": "2025-11-18T11:40:48.434Z", "gpu": 7885.75, "memoryMb": 7642.95, "cpu": 5307.53, "region": "Frankfurt", "status": "draining", "hosting": "cloud", "host": "candid-tributary.name", "nodeId": "<id>"}]
2377+
"401":
2378+
application/json: {"message": "<value>"}
23452379
examplesVersion: 1.0.2
23462380
generatedTests: {}
2381+
releaseNotes: |
2382+
## Typescript SDK Changes Detected:
2383+
* `hathoracloud.nodesV1.getNode()`: **Added**
2384+
* `hathoracloud.nodesV1.listProvisionedNodes()`: **Added**

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.636.0
1+
speakeasyVersion: 1.636.3
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:c332cc98c9e2d8c2c460afa61deed6f040c92734da1611f41ff7bcaba1ffe030
6-
sourceBlobDigest: sha256:0ef7d2d2bd43efd2d585f1e522157a56de01faf8a5a5f90eae615f5ac37e574e
5+
sourceRevisionDigest: sha256:0583eebe496a44584aa421fa543a8108278cd03552cb85b78a3f902a1aee09ed
6+
sourceBlobDigest: sha256:8e979b31cd370a83143f4bd64ce05a4291cbf3be1c3cd83506ec14d167c4d2e8
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1759882610
9+
- speakeasy-sdk-regen-1760055427
1010
- 0.0.1
1111
targets:
1212
hathora-typescript:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:c332cc98c9e2d8c2c460afa61deed6f040c92734da1611f41ff7bcaba1ffe030
16-
sourceBlobDigest: sha256:0ef7d2d2bd43efd2d585f1e522157a56de01faf8a5a5f90eae615f5ac37e574e
15+
sourceRevisionDigest: sha256:0583eebe496a44584aa421fa543a8108278cd03552cb85b78a3f902a1aee09ed
16+
sourceBlobDigest: sha256:8e979b31cd370a83143f4bd64ce05a4291cbf3be1c3cd83506ec14d167c4d2e8
1717
codeSamplesNamespace: code-samples-typescript-hathora-typescript
18-
codeSamplesRevisionDigest: sha256:277afe49326996724d20d58ec629e21aad5f7489d475ed63da84adc29fd2aacf
18+
codeSamplesRevisionDigest: sha256:1557767b9951bdbe71e2762dd74926e60d4991b0d049e6d43686c3762ed202bb
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,11 @@ run();
228228

229229
* [~~getMetricsDeprecated~~](docs/sdks/metricsv1/README.md#getmetricsdeprecated) - GetMetricsDeprecated :warning: **Deprecated**
230230

231+
### [nodesV1](docs/sdks/nodesv1/README.md)
232+
233+
* [getNode](docs/sdks/nodesv1/README.md#getnode) - GetNode
234+
* [listProvisionedNodes](docs/sdks/nodesv1/README.md#listprovisionednodes) - ListProvisionedNodes
235+
231236
### [organizationsV1](docs/sdks/organizationsv1/README.md)
232237

233238
* [getOrgs](docs/sdks/organizationsv1/README.md#getorgs) - GetOrgs
@@ -611,6 +616,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
611616
- [`logsV1DownloadLogForProcess`](docs/sdks/logsv1/README.md#downloadlogforprocess) - DownloadLogForProcess
612617
- [`logsV1GetLogsForProcess`](docs/sdks/logsv1/README.md#getlogsforprocess) - GetLogsForProcess
613618
- [`managementV1SendVerificationEmail`](docs/sdks/managementv1/README.md#sendverificationemail) - SendVerificationEmail
619+
- [`nodesV1GetNode`](docs/sdks/nodesv1/README.md#getnode) - GetNode
620+
- [`nodesV1ListProvisionedNodes`](docs/sdks/nodesv1/README.md#listprovisionednodes) - ListProvisionedNodes
614621
- [`organizationsV1AcceptInvite`](docs/sdks/organizationsv1/README.md#acceptinvite) - AcceptInvite
615622
- [`organizationsV1GetOrgMembers`](docs/sdks/organizationsv1/README.md#getorgmembers) - GetOrgMembers
616623
- [`organizationsV1GetOrgPendingInvites`](docs/sdks/organizationsv1/README.md#getorgpendinginvites) - GetOrgPendingInvites

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,4 +1370,14 @@ Based on:
13701370
### Generated
13711371
- [typescript v2.21.1] .
13721372
### Releases
1373-
- [NPM v2.21.1] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.21.1 - .
1373+
- [NPM v2.21.1] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.21.1 - .
1374+
1375+
## 2025-10-10 00:16:46
1376+
### Changes
1377+
Based on:
1378+
- OpenAPI Doc
1379+
- Speakeasy CLI 1.636.3 (2.723.11) https://github.com/speakeasy-api/speakeasy
1380+
### Generated
1381+
- [typescript v2.21.2] .
1382+
### Releases
1383+
- [NPM v2.21.2] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.21.2 - .

docs/models/components/fleet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A fleet is a collection of vCPUs across your regions that can scale up and down
88
import { Fleet } from "@hathora/cloud-sdk-typescript/models/components";
99

1010
let value: Fleet = {
11-
nodeShape: "gpu-h100-1-28-180",
11+
nodeShape: "gpu-h100-2-60-360",
1212
name: "production",
1313
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39",
1414
fleetId: "<id>",

docs/models/components/nodeshape.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ let value: NodeShape = "cpu-8-16";
1313
This is an open enum. Unrecognized values will be captured as the `Unrecognized<string>` branded type.
1414

1515
```typescript
16-
"cpu-4-8" | "cpu-8-16" | "cpu-16-32" | "cpu-32-64" | "cpu-64-128" | "cpu-4-16" | "cpu-8-32" | "cpu-16-64" | "cpu-32-128" | "gpu-l4-1-4-16" | "gpu-l4-1-12-48" | "gpu-l4-2-24-96" | "gpu-l4-4-48-192" | "gpu-l4-8-96-384" | "gpu-h100-1-26-234" | "gpu-h100-2-52-468" | "gpu-h100-4-104-936" | "gpu-h100-8-208-1872" | "gpu-h100-1-28-180" | "gpu-h100-2-60-360" | "gpu-h100-4-124-720" | "gpu-h100-8-252-1440" | Unrecognized<string>
16+
"cpu-4-8" | "cpu-8-16" | "cpu-16-32" | "cpu-32-64" | "cpu-64-128" | "cpu-4-16" | "cpu-8-32" | "cpu-16-64" | "cpu-32-128" | "gpu-l4-1-4-16" | "gpu-l4-1-12-48" | "gpu-l4-2-24-96" | "gpu-l4-4-48-192" | "gpu-l4-8-96-384" | "gpu-h100-1-26-234" | "gpu-h100-2-52-468" | "gpu-h100-4-104-936" | "gpu-h100-8-208-1872" | "gpu-h100-1-28-180" | "gpu-h100-2-60-360" | "gpu-h100-4-124-720" | "gpu-h100-8-252-1440" | "gpu-h100-8-192-1800" | Unrecognized<string>
1717
```

docs/models/components/nodev1.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# NodeV1
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { NodeV1 } from "@hathora/cloud-sdk-typescript/models/components";
7+
8+
let value: NodeV1 = {
9+
stoppedAt: null,
10+
startedAt: new Date("2024-12-24T00:27:26.087Z"),
11+
gpu: 6846.36,
12+
memoryMb: 6568.87,
13+
cpu: 2213.36,
14+
region: "Johannesburg",
15+
status: "stopped",
16+
hosting: "metal",
17+
host: "bright-airmail.net",
18+
nodeId: "<id>",
19+
};
20+
```
21+
22+
## Fields
23+
24+
| Field | Type | Required | Description |
25+
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
26+
| `stoppedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A |
27+
| `startedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A |
28+
| `gpu` | *number* | :heavy_check_mark: | N/A |
29+
| `memoryMb` | *number* | :heavy_check_mark: | N/A |
30+
| `cpu` | *number* | :heavy_check_mark: | N/A |
31+
| `region` | [components.Region](../../models/components/region.md) | :heavy_check_mark: | N/A |
32+
| `status` | [components.NodeV1Status](../../models/components/nodev1status.md) | :heavy_check_mark: | N/A |
33+
| `hosting` | [components.Hosting](../../models/components/hosting.md) | :heavy_check_mark: | N/A |
34+
| `host` | *string* | :heavy_check_mark: | N/A |
35+
| `nodeId` | *string* | :heavy_check_mark: | N/A |
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# NodeV1Status
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { NodeV1Status } from "@hathora/cloud-sdk-typescript/models/components";
7+
8+
let value: NodeV1Status = "draining";
9+
```
10+
11+
## Values
12+
13+
This is an open enum. Unrecognized values will be captured as the `Unrecognized<string>` branded type.
14+
15+
```typescript
16+
"running" | "draining" | "stopped" | Unrecognized<string>
17+
```

docs/models/operations/createfleetrequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { CreateFleetRequest } from "@hathora/cloud-sdk-typescript/models/operati
77

88
let value: CreateFleetRequest = {
99
createFleet: {
10-
nodeShape: "cpu-32-128",
10+
nodeShape: "gpu-l4-1-4-16",
1111
autoscalerConfig: {
1212
scaleUpThreshold: 513844,
1313
},

0 commit comments

Comments
 (0)