Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.423.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Oct 30, 2024
1 parent 4853a35 commit ea4244e
Show file tree
Hide file tree
Showing 18 changed files with 75 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .speakeasy/codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ actions:
"x-codeSamples":
- "lang": "typescript"
"label": "GetDeployments"
"source": "import { HathoraCloud } from \"@hathora/cloud-sdk-typescript\";\n\nconst hathoraCloud = new HathoraCloud({\n hathoraDevToken: \"<YOUR_BEARER_TOKEN_HERE>\",\n appId: \"app-af469a92-5b45-4565-b3c4-b79878de67d2\",\n});\n\nasync function run() {\n const result = await hathoraCloud.deploymentsV3.getDeployments(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\");\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
"source": "import { HathoraCloud } from \"@hathora/cloud-sdk-typescript\";\n\nconst hathoraCloud = new HathoraCloud({\n hathoraDevToken: \"<YOUR_BEARER_TOKEN_HERE>\",\n appId: \"app-af469a92-5b45-4565-b3c4-b79878de67d2\",\n});\n\nasync function run() {\n const result = await hathoraCloud.deploymentsV3.getDeployments(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\", \"alpha\");\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/deployments/v3/apps/{appId}/deployments"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "CreateDeployment"
"source": "import { HathoraCloud } from \"@hathora/cloud-sdk-typescript\";\n\nconst hathoraCloud = new HathoraCloud({\n hathoraDevToken: \"<YOUR_BEARER_TOKEN_HERE>\",\n appId: \"app-af469a92-5b45-4565-b3c4-b79878de67d2\",\n});\n\nasync function run() {\n const result = await hathoraCloud.deploymentsV3.createDeployment({\n idleTimeoutEnabled: false,\n env: [\n {\n value: \"TRUE\",\n name: \"EULA\",\n },\n ],\n roomsPerProcess: 3,\n additionalContainerPorts: [\n {\n transportType: \"udp\",\n port: 8000,\n name: \"default\",\n },\n ],\n transportType: \"tcp\",\n containerPort: 4000,\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();"
"source": "import { HathoraCloud } from \"@hathora/cloud-sdk-typescript\";\n\nconst hathoraCloud = new HathoraCloud({\n hathoraDevToken: \"<YOUR_BEARER_TOKEN_HERE>\",\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 value: \"TRUE\",\n name: \"EULA\",\n },\n ],\n roomsPerProcess: 3,\n additionalContainerPorts: [\n {\n transportType: \"udp\",\n port: 8000,\n name: \"default\",\n },\n ],\n transportType: \"tcp\",\n containerPort: 4000,\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();"
- target: $["paths"]["/deployments/v3/apps/{appId}/deployments/latest"]["get"]
update:
"x-codeSamples":
Expand Down
14 changes: 8 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 1b06df09-5141-4b14-b0b7-5415dbf16cfb
management:
docChecksum: 21a416a1b30cc2a28c7e1d4dfa79202b
docChecksum: f979120c4d53a579602f5709907e5abe
docVersion: 0.0.1
speakeasyVersion: 1.422.1
generationVersion: 2.438.15
releaseVersion: 2.10.7
configChecksum: 252a21b076ce9cbf91dffcac099402aa
speakeasyVersion: 1.423.2
generationVersion: 2.442.11
releaseVersion: 2.10.8
configChecksum: 314d84c6ef245de518a91c53b2f4fce5
repoURL: https://github.com/hathora/cloud-sdk-typescript.git
installationURL: https://github.com/hathora/cloud-sdk-typescript
published: true
Expand Down Expand Up @@ -1515,6 +1515,8 @@ examples:
parameters:
path:
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"
query:
deploymentTag: "alpha"
responses:
"200":
application/json: {"deployments": []}
Expand All @@ -1526,7 +1528,7 @@ examples:
path:
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"
requestBody:
application/json: {"idleTimeoutEnabled": true, "env": [], "roomsPerProcess": 3, "additionalContainerPorts": [], "transportType": "tcp", "containerPort": 4000, "requestedMemoryMB": 1024, "requestedCPU": 0.5, "buildId": "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5"}
application/json: {"deploymentTag": "alpha", "idleTimeoutEnabled": true, "env": [], "roomsPerProcess": 3, "additionalContainerPorts": [], "transportType": "tcp", "containerPort": 4000, "requestedMemoryMB": 1024, "requestedCPU": 0.5, "buildId": "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5"}
responses:
"201":
application/json: {"idleTimeoutEnabled": false, "env": [], "roomsPerProcess": 3, "additionalContainerPorts": [{"transportType": "tcp", "port": 8000, "name": "default"}], "defaultContainerPort": {"transportType": "tcp", "port": 8000, "name": "default"}, "createdAt": "2022-09-07T00:32:02.113Z", "createdBy": "[email protected]", "requestedMemoryMB": 1024, "requestedCPU": 0.5, "deploymentId": "dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", "buildTag": "0.1.14-14c793", "buildId": "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2"}
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.422.1
speakeasyVersion: 1.423.2
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:4a78b67aae221dc8094d1cfe01ea1dbfe5bd238e1c79943028ab00187c3e8bd7
sourceBlobDigest: sha256:17d496af184c2a1507c89f3b3fc6068e830536d7ef6757a35fb6541a68f71bb3
sourceRevisionDigest: sha256:93f16c59c46b705485c6ca3b7b41cb5929cc476219b4d5c5cd3c701cb6afb479
sourceBlobDigest: sha256:48b89363b168180bb89e43d72cb65fa14cea1278973f0eab5284d64c4be416ad
tags:
- latest
- main
targets:
hathora-typescript:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:4a78b67aae221dc8094d1cfe01ea1dbfe5bd238e1c79943028ab00187c3e8bd7
sourceBlobDigest: sha256:17d496af184c2a1507c89f3b3fc6068e830536d7ef6757a35fb6541a68f71bb3
sourceRevisionDigest: sha256:93f16c59c46b705485c6ca3b7b41cb5929cc476219b4d5c5cd3c701cb6afb479
sourceBlobDigest: sha256:48b89363b168180bb89e43d72cb65fa14cea1278973f0eab5284d64c4be416ad
codeSamplesNamespace: code-samples-typescript-hathora-typescript
codeSamplesRevisionDigest: sha256:98f8c1d12856569b13f62ecbf9851af73c0ef85669cb2eefe7c15b8dba126a06
codeSamplesRevisionDigest: sha256:adfd263081057136b57979877dabca43921971b955cbf239de9b54f85db581f4
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Deleting a build that is actively build used by an app's deployment will cause f

### [deploymentsV3](docs/sdks/deploymentsv3/README.md)

* [getDeployments](docs/sdks/deploymentsv3/README.md#getdeployments) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application).
* [getDeployments](docs/sdks/deploymentsv3/README.md#getdeployments) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application), optionally filtered by deploymentTag.
* [createDeployment](docs/sdks/deploymentsv3/README.md#createdeployment) - Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected.
* [getLatestDeployment](docs/sdks/deploymentsv3/README.md#getlatestdeployment) - Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application).
* [getDeployment](docs/sdks/deploymentsv3/README.md#getdeployment) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment).
Expand Down Expand Up @@ -595,7 +595,7 @@ Deleting a build that is actively build used by an app's deployment will cause f
- [`buildsV3RunBuild`](docs/sdks/buildsv3/README.md#runbuild) - Builds a game server artifact from a tarball you provide. Pass in the `buildId` generated from [`CreateBuild()`](https://hathora.dev/api#tag/BuildV1/operation/CreateBuild).
- [`deploymentsV3CreateDeployment`](docs/sdks/deploymentsv3/README.md#createdeployment) - Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected.
- [`deploymentsV3GetDeployment`](docs/sdks/deploymentsv3/README.md#getdeployment) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment).
- [`deploymentsV3GetDeployments`](docs/sdks/deploymentsv3/README.md#getdeployments) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application).
- [`deploymentsV3GetDeployments`](docs/sdks/deploymentsv3/README.md#getdeployments) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application), optionally filtered by deploymentTag.
- [`deploymentsV3GetLatestDeployment`](docs/sdks/deploymentsv3/README.md#getlatestdeployment) - Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application).
- [`discoveryV2GetPingServiceEndpoints`](docs/sdks/discoveryv2/README.md#getpingserviceendpoints) - Returns an array of all regions with a host and port that a client can directly ping. Open a websocket connection to `wss://<host>:<port>/ws` and send a packet. To calculate ping, measure the time it takes to get an echo packet back.
- [`fleetsV1GetFleetMetrics`](docs/sdks/fleetsv1/README.md#getfleetmetrics) - Gets metrics for a [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region.
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -700,4 +700,14 @@ Based on:
### Generated
- [typescript v2.10.7] .
### Releases
- [NPM v2.10.7] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.10.7 - .
- [NPM v2.10.7] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.10.7 - .

## 2024-10-30 00:15:14
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.423.2 (2.442.11) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v2.10.8] .
### Releases
- [NPM v2.10.8] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.10.8 - .
2 changes: 2 additions & 0 deletions docs/models/components/deploymentconfigv3.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { DeploymentConfigV3 } from "@hathora/cloud-sdk-typescript/models/components";

let value: DeploymentConfigV3 = {
deploymentTag: "alpha",
idleTimeoutEnabled: false,
env: [
{
Expand Down Expand Up @@ -33,6 +34,7 @@ let value: DeploymentConfigV3 = {

| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `deploymentTag` | *string* | :heavy_minus_sign: | Arbitrary metadata associated with a deployment. | alpha |
| `idleTimeoutEnabled` | *boolean* | :heavy_check_mark: | Option to shut down processes that have had no new connections or rooms<br/>for five minutes. | |
| `env` | [components.DeploymentConfigV3Env](../../models/components/deploymentconfigv3env.md)[] | :heavy_check_mark: | The environment variable that our process will have access to at runtime. | |
| `roomsPerProcess` | *number* | :heavy_check_mark: | Governs how many [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) can be scheduled in a process. | 3 |
Expand Down
1 change: 1 addition & 0 deletions docs/models/operations/createdeploymentrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { CreateDeploymentRequest } from "@hathora/cloud-sdk-typescript/models/op

let value: CreateDeploymentRequest = {
deploymentConfigV3: {
deploymentTag: "alpha",
idleTimeoutEnabled: false,
env: [
{
Expand Down
7 changes: 5 additions & 2 deletions docs/models/operations/getdeploymentsrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
```typescript
import { GetDeploymentsRequest } from "@hathora/cloud-sdk-typescript/models/operations";

let value: GetDeploymentsRequest = {};
let value: GetDeploymentsRequest = {
deploymentTag: "alpha",
};
```

## Fields

| Field | Type | Required | Description | Example |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| `appId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
| `appId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
| `deploymentTag` | *string* | :heavy_minus_sign: | N/A | alpha |
Loading

0 comments on commit ea4244e

Please sign in to comment.