From ea4244e9e0598eff2f5a557c190d01cd55c9aef0 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 30 Oct 2024 00:16:10 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.423.2 --- .speakeasy/codeSamples.yaml | 4 ++-- .speakeasy/gen.lock | 14 ++++++++------ .speakeasy/workflow.lock | 12 ++++++------ README.md | 4 ++-- RELEASES.md | 12 +++++++++++- docs/models/components/deploymentconfigv3.md | 2 ++ docs/models/operations/createdeploymentrequest.md | 1 + docs/models/operations/getdeploymentsrequest.md | 7 +++++-- docs/sdks/deploymentsv3/README.md | 11 +++++++---- gen.yaml | 2 +- jsr.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/funcs/deploymentsV3GetDeployments.ts | 11 +++++++++-- src/lib/config.ts | 6 +++--- src/models/components/deploymentconfigv3.ts | 7 +++++++ src/models/operations/getdeployments.ts | 4 ++++ src/sdk/deploymentsv3.ts | 4 +++- 18 files changed, 75 insertions(+), 34 deletions(-) diff --git a/.speakeasy/codeSamples.yaml b/.speakeasy/codeSamples.yaml index d58ac040..dfdbc650 100644 --- a/.speakeasy/codeSamples.yaml +++ b/.speakeasy/codeSamples.yaml @@ -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: \"\",\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: \"\",\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: \"\",\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: \"\",\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": diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index b7f87762..61cbce29 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -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 @@ -1515,6 +1515,8 @@ examples: parameters: path: appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2" + query: + deploymentTag: "alpha" responses: "200": application/json: {"deployments": []} @@ -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": "noreply@hathora.dev", "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"} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 1f305ae9..26d7c7bd 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -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 @@ -11,10 +11,10 @@ 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 diff --git a/README.md b/README.md index 7ef997e4..01adc590 100755 --- a/README.md +++ b/README.md @@ -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). @@ -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://:/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. diff --git a/RELEASES.md b/RELEASES.md index a3b66933..6a88f585 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -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 - . \ No newline at end of file +- [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 - . \ No newline at end of file diff --git a/docs/models/components/deploymentconfigv3.md b/docs/models/components/deploymentconfigv3.md index e8197ede..57598531 100644 --- a/docs/models/components/deploymentconfigv3.md +++ b/docs/models/components/deploymentconfigv3.md @@ -6,6 +6,7 @@ import { DeploymentConfigV3 } from "@hathora/cloud-sdk-typescript/models/components"; let value: DeploymentConfigV3 = { + deploymentTag: "alpha", idleTimeoutEnabled: false, env: [ { @@ -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
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 | diff --git a/docs/models/operations/createdeploymentrequest.md b/docs/models/operations/createdeploymentrequest.md index 053d1924..e9adeb53 100644 --- a/docs/models/operations/createdeploymentrequest.md +++ b/docs/models/operations/createdeploymentrequest.md @@ -7,6 +7,7 @@ import { CreateDeploymentRequest } from "@hathora/cloud-sdk-typescript/models/op let value: CreateDeploymentRequest = { deploymentConfigV3: { + deploymentTag: "alpha", idleTimeoutEnabled: false, env: [ { diff --git a/docs/models/operations/getdeploymentsrequest.md b/docs/models/operations/getdeploymentsrequest.md index 0449533a..4810f63a 100644 --- a/docs/models/operations/getdeploymentsrequest.md +++ b/docs/models/operations/getdeploymentsrequest.md @@ -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 | \ No newline at end of file +| `appId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `deploymentTag` | *string* | :heavy_minus_sign: | N/A | alpha | \ No newline at end of file diff --git a/docs/sdks/deploymentsv3/README.md b/docs/sdks/deploymentsv3/README.md index ffd57980..9f3a55d5 100644 --- a/docs/sdks/deploymentsv3/README.md +++ b/docs/sdks/deploymentsv3/README.md @@ -7,14 +7,14 @@ Operations that allow you configure and manage an application's [build](https:// ### Available Operations -* [getDeployments](#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](#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](#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](#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](#getdeployment) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). ## 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). +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. ### Example Usage @@ -27,7 +27,7 @@ const hathoraCloud = new HathoraCloud({ }); async function run() { - const result = await hathoraCloud.deploymentsV3.getDeployments("app-af469a92-5b45-4565-b3c4-b79878de67d2"); + const result = await hathoraCloud.deploymentsV3.getDeployments("app-af469a92-5b45-4565-b3c4-b79878de67d2", "alpha"); // Handle the result console.log(result); @@ -52,7 +52,7 @@ const hathoraCloud = new HathoraCloudCore({ }); async function run() { - const res = await deploymentsV3GetDeployments(hathoraCloud, "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + const res = await deploymentsV3GetDeployments(hathoraCloud, "app-af469a92-5b45-4565-b3c4-b79878de67d2", "alpha"); if (!res.ok) { throw res.error; @@ -72,6 +72,7 @@ run(); | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `appId` | *string* | :heavy_minus_sign: | N/A | [object Object] | +| `deploymentTag` | *string* | :heavy_minus_sign: | N/A | [object Object] | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | | @@ -103,6 +104,7 @@ const hathoraCloud = new HathoraCloud({ async function run() { const result = await hathoraCloud.deploymentsV3.createDeployment({ + deploymentTag: "alpha", idleTimeoutEnabled: true, env: [ { @@ -149,6 +151,7 @@ const hathoraCloud = new HathoraCloudCore({ async function run() { const res = await deploymentsV3CreateDeployment(hathoraCloud, { + deploymentTag: "alpha", idleTimeoutEnabled: true, env: [ { diff --git a/gen.yaml b/gen.yaml index 0661006f..36dddb59 100644 --- a/gen.yaml +++ b/gen.yaml @@ -18,7 +18,7 @@ management: generationVersion: 2.188.3 speakeasyVersion: 1.120.0 typescript: - version: 2.10.7 + version: 2.10.8 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/jsr.json b/jsr.json index b04e2b5b..80470e40 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@hathora/cloud-sdk-typescript", - "version": "2.10.7", + "version": "2.10.8", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 6ce17359..1d1b3367 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hathora/cloud-sdk-typescript", - "version": "2.10.7", + "version": "2.10.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@hathora/cloud-sdk-typescript", - "version": "2.10.7", + "version": "2.10.8", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index 19855b56..186af2b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hathora/cloud-sdk-typescript", - "version": "2.10.7", + "version": "2.10.8", "author": "Hathora", "main": "./index.js", "sideEffects": false, diff --git a/src/funcs/deploymentsV3GetDeployments.ts b/src/funcs/deploymentsV3GetDeployments.ts index 8a397fcb..4aa5d010 100644 --- a/src/funcs/deploymentsV3GetDeployments.ts +++ b/src/funcs/deploymentsV3GetDeployments.ts @@ -3,7 +3,7 @@ */ import { HathoraCloudCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { safeParse } from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; @@ -24,11 +24,12 @@ import * as operations from "../models/operations/index.js"; import { Result } from "../types/fp.js"; /** - * Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). + * 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. */ export async function deploymentsV3GetDeployments( client: HathoraCloudCore, appId?: string | undefined, + deploymentTag?: string | undefined, options?: RequestOptions, ): Promise< Result< @@ -45,6 +46,7 @@ export async function deploymentsV3GetDeployments( > { const input: operations.GetDeploymentsRequest = { appId: appId, + deploymentTag: deploymentTag, }; const parsed = safeParse( @@ -69,6 +71,10 @@ export async function deploymentsV3GetDeployments( pathParams, ); + const query = encodeFormQuery({ + "deploymentTag": payload.deploymentTag, + }); + const headers = new Headers({ Accept: "application/json", }); @@ -87,6 +93,7 @@ export async function deploymentsV3GetDeployments( method: "GET", path: path, headers: headers, + query: query, body: body, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, }, options); diff --git a/src/lib/config.ts b/src/lib/config.ts index 43dea87c..fde65a85 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -60,8 +60,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.1", - sdkVersion: "2.10.7", - genVersion: "2.438.15", + sdkVersion: "2.10.8", + genVersion: "2.442.11", userAgent: - "speakeasy-sdk/typescript 2.10.7 2.438.15 0.0.1 @hathora/cloud-sdk-typescript", + "speakeasy-sdk/typescript 2.10.8 2.442.11 0.0.1 @hathora/cloud-sdk-typescript", } as const; diff --git a/src/models/components/deploymentconfigv3.ts b/src/models/components/deploymentconfigv3.ts index 5969e5a3..110488e5 100644 --- a/src/models/components/deploymentconfigv3.ts +++ b/src/models/components/deploymentconfigv3.ts @@ -21,6 +21,10 @@ export type DeploymentConfigV3Env = { }; export type DeploymentConfigV3 = { + /** + * Arbitrary metadata associated with a deployment. + */ + deploymentTag?: string | undefined; /** * Option to shut down processes that have had no new connections or rooms * @@ -107,6 +111,7 @@ export const DeploymentConfigV3$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ + deploymentTag: z.string().optional(), idleTimeoutEnabled: z.boolean(), env: z.array(z.lazy(() => DeploymentConfigV3Env$inboundSchema)), roomsPerProcess: z.number().int(), @@ -120,6 +125,7 @@ export const DeploymentConfigV3$inboundSchema: z.ZodType< /** @internal */ export type DeploymentConfigV3$Outbound = { + deploymentTag?: string | undefined; idleTimeoutEnabled: boolean; env: Array; roomsPerProcess: number; @@ -137,6 +143,7 @@ export const DeploymentConfigV3$outboundSchema: z.ZodType< z.ZodTypeDef, DeploymentConfigV3 > = z.object({ + deploymentTag: z.string().optional(), idleTimeoutEnabled: z.boolean(), env: z.array(z.lazy(() => DeploymentConfigV3Env$outboundSchema)), roomsPerProcess: z.number().int(), diff --git a/src/models/operations/getdeployments.ts b/src/models/operations/getdeployments.ts index c19926c8..bb3bc540 100644 --- a/src/models/operations/getdeployments.ts +++ b/src/models/operations/getdeployments.ts @@ -10,6 +10,7 @@ export type GetDeploymentsGlobals = { export type GetDeploymentsRequest = { appId?: string | undefined; + deploymentTag?: string | undefined; }; /** @internal */ @@ -55,11 +56,13 @@ export const GetDeploymentsRequest$inboundSchema: z.ZodType< unknown > = z.object({ appId: z.string().optional(), + deploymentTag: z.string().optional(), }); /** @internal */ export type GetDeploymentsRequest$Outbound = { appId?: string | undefined; + deploymentTag?: string | undefined; }; /** @internal */ @@ -69,6 +72,7 @@ export const GetDeploymentsRequest$outboundSchema: z.ZodType< GetDeploymentsRequest > = z.object({ appId: z.string().optional(), + deploymentTag: z.string().optional(), }); /** diff --git a/src/sdk/deploymentsv3.ts b/src/sdk/deploymentsv3.ts index 74db2c4a..e2e3d798 100644 --- a/src/sdk/deploymentsv3.ts +++ b/src/sdk/deploymentsv3.ts @@ -12,15 +12,17 @@ import { unwrapAsync } from "../types/fp.js"; export class DeploymentsV3 extends ClientSDK { /** - * Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). + * 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. */ async getDeployments( appId?: string | undefined, + deploymentTag?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(deploymentsV3GetDeployments( this, appId, + deploymentTag, options, )); }