From 0e479c0b21024ea31fb4d6936e6e8ca553f5eec0 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 23 Oct 2024 00:15:53 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.420.0 --- .speakeasy/codeSamples.yaml | 20 +-- .speakeasy/gen.lock | 45 ++---- .speakeasy/workflow.lock | 12 +- README.md | 23 ++- RELEASES.md | 12 +- docs/models/components/application.md | 4 +- docs/models/components/applicationspage.md | 20 +-- ...applicationwithlatestdeploymentandbuild.md | 16 +- ...nwithlatestdeploymentandbuilddeployment.md | 16 +- ...nwithlatestdeploymentandbuilddeprecated.md | 22 +-- docs/models/components/build.md | 14 +- docs/models/components/buildpart.md | 4 +- docs/models/components/buildsv3page.md | 12 +- docs/models/components/buildv3.md | 10 +- .../components/buildwithmultiparturls.md | 22 +-- ...dwithmultiparturlsregionalcontainertags.md | 2 +- docs/models/components/buildwithuploadurl.md | 16 +- ...buildwithuploadurlregionalcontainertags.md | 2 +- docs/models/components/cardbrand.md | 2 +- docs/models/components/cardpaymentmethod.md | 2 +- docs/models/components/containerport.md | 2 +- .../createdbuildv3withmultiparturls.md | 20 +-- docs/models/components/createlobbyparams.md | 2 +- docs/models/components/createlobbyv3params.md | 2 +- .../components/createmultipartbuildparams.md | 2 +- docs/models/components/createroomparams.md | 2 + docs/models/components/customerportalurl.md | 2 +- docs/models/components/deployment.md | 16 +- docs/models/components/deploymentconfig.md | 2 +- docs/models/components/deploymentconfigv2.md | 2 +- docs/models/components/deploymentconfigv3.md | 2 +- docs/models/components/deploymentsv3page.md | 2 +- docs/models/components/deploymentv1.md | 6 +- .../components/deploymentv1transporttype.md | 2 +- docs/models/components/deploymentv2.md | 4 +- docs/models/components/deploymentv3.md | 4 +- .../deprecatedprocessmetricsdata.md | 19 --- docs/models/components/fleetmetricname.md | 17 --- docs/models/components/fleetmetricsdata.md | 18 --- docs/models/components/fleetregion.md | 6 +- docs/models/components/fleetregionconfig.md | 2 +- docs/models/components/invoice.md | 12 +- docs/models/components/invoiceitem.md | 8 +- docs/models/components/invoiceitempage.md | 8 +- docs/models/components/invoicestatus.md | 2 +- docs/models/components/lobby.md | 4 +- docs/models/components/lobbyv3.md | 4 +- ...atedprocessmetricname.md => metricname.md} | 8 +- .../{processmetricsdata.md => metricsdata.md} | 6 +- docs/models/components/metricvalue.md | 4 +- docs/models/components/orgmember.md | 4 +- docs/models/components/orgmemberspage.md | 4 +- docs/models/components/pendingorginvite.md | 2 +- .../components/pendingorginvitespage.md | 2 +- docs/models/components/pingendpoints.md | 6 +- docs/models/components/processmetricname.md | 19 --- .../components/regionalcontainertags.md | 2 +- docs/models/operations/createbuildrequest.md | 2 +- .../operations/createdeploymentrequest.md | 4 +- .../createdeploymentv1deprecatedrequest.md | 4 +- .../createdeploymentv2deprecatedrequest.md | 2 +- .../createlobbydeprecatedrequest.md | 2 +- docs/models/operations/createlobbyrequest.md | 2 +- .../operations/createlocallobbyrequest.md | 2 +- .../operations/createlocallobbyrequestbody.md | 2 +- .../operations/createprivatelobbyrequest.md | 2 +- .../createprivatelobbyrequestbody.md | 2 +- .../createprocessv2deprecatedrequest.md | 2 +- .../operations/createpubliclobbyrequest.md | 2 +- .../createpubliclobbyrequestbody.md | 2 +- .../operations/createroomdeprecatedrequest.md | 3 +- docs/models/operations/createroomrequest.md | 3 +- ...withmultipartuploadsv2deprecatedrequest.md | 2 +- .../operations/getfleetmetricsrequest.md | 25 --- .../operations/getfleetregionrequest.md | 2 +- .../operations/getmetricsdeprecatedglobals.md | 15 -- .../operations/getmetricsdeprecatedrequest.md | 22 --- ...metricsglobals.md => getmetricsglobals.md} | 6 +- docs/models/operations/getmetricsrequest.md | 22 +++ ...tprocessescountexperimentalresponsebody.md | 2 +- ...untexperimentalv2deprecatedresponsebody.md | 2 +- .../operations/getprocessmetricsrequest.md | 22 --- .../getupcominginvoicetotalresponsebody.md | 2 +- .../operations/updatefleetregionrequest.md | 4 +- docs/sdks/fleetsv1/README.md | 100 +----------- docs/sdks/metricsv1/README.md | 16 +- docs/sdks/processesv3/README.md | 80 +--------- docs/sdks/roomsv1/README.md | 2 + docs/sdks/roomsv2/README.md | 2 + gen.yaml | 2 +- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/funcs/fleetsV1GetFleetMetrics.ts | 143 ------------------ src/funcs/fleetsV1GetFleetRegion.ts | 3 - src/funcs/fleetsV1GetFleets.ts | 3 - src/funcs/fleetsV1UpdateFleetRegion.ts | 3 - ...csDeprecated.ts => metricsV1GetMetrics.ts} | 17 +-- src/funcs/processesV3GetProcessMetrics.ts | 139 ----------------- src/lib/config.ts | 6 +- src/models/components/createroomparams.ts | 7 + .../components/deprecatedprocessmetricname.ts | 53 ------- src/models/components/fleetmetricname.ts | 50 ------ src/models/components/fleetmetricsdata.ts | 63 -------- src/models/components/index.ts | 8 +- src/models/components/metricname.ts | 57 +++++++ ...edprocessmetricsdata.ts => metricsdata.ts} | 28 ++-- src/models/components/processmetricname.ts | 57 ------- src/models/components/processmetricsdata.ts | 67 -------- src/models/operations/getfleetmetrics.ts | 76 ---------- src/models/operations/getmetrics.ts | 115 ++++++++++++++ src/models/operations/getmetricsdeprecated.ts | 117 -------------- src/models/operations/getprocessmetrics.ts | 115 -------------- src/models/operations/index.ts | 4 +- src/sdk/fleetsv1.ts | 25 --- src/sdk/metricsv1.ts | 12 +- src/sdk/processesv3.ts | 12 -- 117 files changed, 494 insertions(+), 1563 deletions(-) delete mode 100644 docs/models/components/deprecatedprocessmetricsdata.md delete mode 100644 docs/models/components/fleetmetricname.md delete mode 100644 docs/models/components/fleetmetricsdata.md rename docs/models/components/{deprecatedprocessmetricname.md => metricname.md} (59%) rename docs/models/components/{processmetricsdata.md => metricsdata.md} (93%) delete mode 100644 docs/models/components/processmetricname.md delete mode 100644 docs/models/operations/getfleetmetricsrequest.md delete mode 100644 docs/models/operations/getmetricsdeprecatedglobals.md delete mode 100644 docs/models/operations/getmetricsdeprecatedrequest.md rename docs/models/operations/{getprocessmetricsglobals.md => getmetricsglobals.md} (81%) create mode 100644 docs/models/operations/getmetricsrequest.md delete mode 100644 docs/models/operations/getprocessmetricsrequest.md delete mode 100644 src/funcs/fleetsV1GetFleetMetrics.ts rename src/funcs/{metricsV1GetMetricsDeprecated.ts => metricsV1GetMetrics.ts} (87%) delete mode 100644 src/funcs/processesV3GetProcessMetrics.ts delete mode 100644 src/models/components/deprecatedprocessmetricname.ts delete mode 100644 src/models/components/fleetmetricname.ts delete mode 100644 src/models/components/fleetmetricsdata.ts create mode 100644 src/models/components/metricname.ts rename src/models/components/{deprecatedprocessmetricsdata.ts => metricsdata.ts} (70%) delete mode 100644 src/models/components/processmetricname.ts delete mode 100644 src/models/components/processmetricsdata.ts delete mode 100644 src/models/operations/getfleetmetrics.ts create mode 100644 src/models/operations/getmetrics.ts delete mode 100644 src/models/operations/getmetricsdeprecated.ts delete mode 100644 src/models/operations/getprocessmetrics.ts diff --git a/.speakeasy/codeSamples.yaml b/.speakeasy/codeSamples.yaml index 2996cee5..db7d5b1d 100644 --- a/.speakeasy/codeSamples.yaml +++ b/.speakeasy/codeSamples.yaml @@ -165,12 +165,6 @@ actions: - "lang": "typescript" "label": "UpdateFleetRegion" "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 await hathoraCloud.fleetsV1.updateFleetRegion({\n cloudMinVcpus: 511402,\n }, \"\", \"Singapore\", \"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\");\n\n\n}\n\nrun();" - - target: $["paths"]["/fleets/v1/fleets/{fleetId}/regions/{region}/metrics"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "GetFleetMetrics" - "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.fleetsV1.getFleetMetrics({\n fleetId: \"\",\n region: \"London\",\n orgId: \"org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" - target: $["paths"]["/lobby/v3/{appId}/create"]["post"] update: "x-codeSamples": @@ -213,6 +207,12 @@ actions: - "lang": "typescript" "label": "SendVerificationEmail" "source": "import { HathoraCloud } from \"@hathora/cloud-sdk-typescript\";\n\nconst hathoraCloud = new HathoraCloud({\n appId: \"app-af469a92-5b45-4565-b3c4-b79878de67d2\",\n});\n\nasync function run() {\n const result = await hathoraCloud.managementV1.sendVerificationEmail({\n userId: \"\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" + - target: $["paths"]["/metrics/v1/{appId}/process/{processId}"]["get"] + update: + "x-codeSamples": + - "lang": "typescript" + "label": "GetMetrics" + "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.metricsV1.getMetrics({\n processId: \"cbfcddd2-0006-43ae-996c-995fff7bed2e\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" - target: $["paths"]["/orgs/v1"]["get"] update: "x-codeSamples": @@ -273,12 +273,6 @@ actions: - "lang": "typescript" "label": "GetLatestProcesses" "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.processesV3.getLatestProcesses(\"app-af469a92-5b45-4565-b3c4-b79878de67d2\");\n\n // Handle the result\n console.log(result);\n}\n\nrun();" - - target: $["paths"]["/processes/v3/apps/{appId}/processes/process/{processId}/metrics"]["get"] - update: - "x-codeSamples": - - "lang": "typescript" - "label": "GetProcessMetrics" - "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.processesV3.getProcessMetrics({\n processId: \"cbfcddd2-0006-43ae-996c-995fff7bed2e\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" - target: $["paths"]["/processes/v3/apps/{appId}/processes/regions/{region}"]["post"] update: "x-codeSamples": @@ -308,7 +302,7 @@ actions: "x-codeSamples": - "lang": "typescript" "label": "CreateRoom" - "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.roomsV2.createRoom({\n clientIPs: [\n \"123.123.123.123\",\n ],\n roomConfig: \"{\\\"name\\\":\\\"my-room\\\"}\",\n region: \"Dallas\",\n }, \"app-af469a92-5b45-4565-b3c4-b79878de67d2\", \"2swovpy1fnunu\");\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.roomsV2.createRoom({\n deploymentId: \"dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5\",\n clientIPs: [\n \"123.123.123.123\",\n ],\n roomConfig: \"{\\\"name\\\":\\\"my-room\\\"}\",\n region: \"Dallas\",\n }, \"app-af469a92-5b45-4565-b3c4-b79878de67d2\", \"2swovpy1fnunu\");\n\n // Handle the result\n console.log(result);\n}\n\nrun();" - target: $["paths"]["/rooms/v2/{appId}/destroy/{roomId}"]["post"] update: "x-codeSamples": diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f74e6b23..5916dc35 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: fa904454ed510a65df81ad72c427e3c0 + docChecksum: 7246ca0f7c1f27676a24e3bdfe2d3a45 docVersion: 0.0.1 - speakeasyVersion: 1.418.4 - generationVersion: 2.438.3 - releaseVersion: 2.10.5 - configChecksum: 6669c85128c208660135f385c87ae26a + speakeasyVersion: 1.420.0 + generationVersion: 2.438.15 + releaseVersion: 2.10.6 + configChecksum: 573461633f88dd34e00bfc956391a6eb repoURL: https://github.com/hathora/cloud-sdk-typescript.git installationURL: https://github.com/hathora/cloud-sdk-typescript published: true @@ -97,13 +97,9 @@ generatedFiles: - docs/models/components/deploymentv2env.md - docs/models/components/deploymentv3.md - docs/models/components/deploymentv3env.md - - docs/models/components/deprecatedprocessmetricname.md - - docs/models/components/deprecatedprocessmetricsdata.md - docs/models/components/env.md - docs/models/components/exposedport.md - docs/models/components/fleet.md - - docs/models/components/fleetmetricname.md - - docs/models/components/fleetmetricsdata.md - docs/models/components/fleetregion.md - docs/models/components/fleetregionconfig.md - docs/models/components/fleetspage.md @@ -119,6 +115,8 @@ generatedFiles: - docs/models/components/lobbyv3.md - docs/models/components/lobbyv3createdby.md - docs/models/components/lobbyvisibility.md + - docs/models/components/metricname.md + - docs/models/components/metricsdata.md - docs/models/components/metricvalue.md - docs/models/components/nicknameobject.md - docs/models/components/organization.md @@ -135,8 +133,6 @@ generatedFiles: - docs/models/components/playertokenobject.md - docs/models/components/process.md - docs/models/components/processexposedport.md - - docs/models/components/processmetricname.md - - docs/models/components/processmetricsdata.md - docs/models/components/processstatus.md - docs/models/components/processv2.md - docs/models/components/processv2exposedport.md @@ -266,7 +262,6 @@ generatedFiles: - docs/models/operations/getdeploymentsv1deprecatedrequest.md - docs/models/operations/getdeploymentsv2deprecatedglobals.md - docs/models/operations/getdeploymentsv2deprecatedrequest.md - - docs/models/operations/getfleetmetricsrequest.md - docs/models/operations/getfleetregionrequest.md - docs/models/operations/getfleetsrequest.md - docs/models/operations/getinactiveroomsforprocessdeprecatedglobals.md @@ -295,8 +290,8 @@ generatedFiles: - docs/models/operations/getlogsfordeploymentrequest.md - docs/models/operations/getlogsforprocessglobals.md - docs/models/operations/getlogsforprocessrequest.md - - docs/models/operations/getmetricsdeprecatedglobals.md - - docs/models/operations/getmetricsdeprecatedrequest.md + - docs/models/operations/getmetricsglobals.md + - docs/models/operations/getmetricsrequest.md - docs/models/operations/getorgmembersrequest.md - docs/models/operations/getorgpendinginvitesrequest.md - docs/models/operations/getorgtokensrequest.md @@ -311,8 +306,6 @@ generatedFiles: - docs/models/operations/getprocessinfodeprecatedrequest.md - docs/models/operations/getprocessinfov2deprecatedglobals.md - docs/models/operations/getprocessinfov2deprecatedrequest.md - - docs/models/operations/getprocessmetricsglobals.md - - docs/models/operations/getprocessmetricsrequest.md - docs/models/operations/getprocessrequest.md - docs/models/operations/getroominfodeprecatedglobals.md - docs/models/operations/getroominfodeprecatedrequest.md @@ -444,7 +437,6 @@ generatedFiles: - src/funcs/deploymentsV3GetLatestDeployment.ts - src/funcs/discoveryV1GetPingServiceEndpointsDeprecated.ts - src/funcs/discoveryV2GetPingServiceEndpoints.ts - - src/funcs/fleetsV1GetFleetMetrics.ts - src/funcs/fleetsV1GetFleetRegion.ts - src/funcs/fleetsV1GetFleets.ts - src/funcs/fleetsV1UpdateFleetRegion.ts @@ -467,7 +459,7 @@ generatedFiles: - src/funcs/logsV1GetLogsForDeployment.ts - src/funcs/logsV1GetLogsForProcess.ts - src/funcs/managementV1SendVerificationEmail.ts - - src/funcs/metricsV1GetMetricsDeprecated.ts + - src/funcs/metricsV1GetMetrics.ts - src/funcs/organizationsV1AcceptInvite.ts - src/funcs/organizationsV1GetOrgMembers.ts - src/funcs/organizationsV1GetOrgPendingInvites.ts @@ -487,7 +479,6 @@ generatedFiles: - src/funcs/processesV3CreateProcess.ts - src/funcs/processesV3GetLatestProcesses.ts - src/funcs/processesV3GetProcess.ts - - src/funcs/processesV3GetProcessMetrics.ts - src/funcs/processesV3GetProcessesCountExperimental.ts - src/funcs/processesV3StopProcess.ts - src/funcs/roomsV1CreateRoomDeprecated.ts @@ -565,12 +556,8 @@ generatedFiles: - src/models/components/deploymentv1.ts - src/models/components/deploymentv2.ts - src/models/components/deploymentv3.ts - - src/models/components/deprecatedprocessmetricname.ts - - src/models/components/deprecatedprocessmetricsdata.ts - src/models/components/exposedport.ts - src/models/components/fleet.ts - - src/models/components/fleetmetricname.ts - - src/models/components/fleetmetricsdata.ts - src/models/components/fleetregion.ts - src/models/components/fleetregionconfig.ts - src/models/components/fleetspage.ts @@ -585,6 +572,8 @@ generatedFiles: - src/models/components/lobby.ts - src/models/components/lobbyv3.ts - src/models/components/lobbyvisibility.ts + - src/models/components/metricname.ts + - src/models/components/metricsdata.ts - src/models/components/metricvalue.ts - src/models/components/nicknameobject.ts - src/models/components/organization.ts @@ -600,8 +589,6 @@ generatedFiles: - src/models/components/planname.ts - src/models/components/playertokenobject.ts - src/models/components/process.ts - - src/models/components/processmetricname.ts - - src/models/components/processmetricsdata.ts - src/models/components/processstatus.ts - src/models/components/processv2.ts - src/models/components/processv3.ts @@ -676,7 +663,6 @@ generatedFiles: - src/models/operations/getdeployments.ts - src/models/operations/getdeploymentsv1deprecated.ts - src/models/operations/getdeploymentsv2deprecated.ts - - src/models/operations/getfleetmetrics.ts - src/models/operations/getfleetregion.ts - src/models/operations/getfleets.ts - src/models/operations/getinactiveroomsforprocess.ts @@ -692,7 +678,7 @@ generatedFiles: - src/models/operations/getlogsforapp.ts - src/models/operations/getlogsfordeployment.ts - src/models/operations/getlogsforprocess.ts - - src/models/operations/getmetricsdeprecated.ts + - src/models/operations/getmetrics.ts - src/models/operations/getorgmembers.ts - src/models/operations/getorgpendinginvites.ts - src/models/operations/getorgtokens.ts @@ -701,7 +687,6 @@ generatedFiles: - src/models/operations/getprocessescountexperimentalv2deprecated.ts - src/models/operations/getprocessinfodeprecated.ts - src/models/operations/getprocessinfov2deprecated.ts - - src/models/operations/getprocessmetrics.ts - src/models/operations/getroominfo.ts - src/models/operations/getroominfodeprecated.ts - src/models/operations/getrunningprocesses.ts @@ -809,7 +794,7 @@ examples: query: roomId: "2swovpy1fnunu" requestBody: - application/json: {"clientIPs": ["123.123.123.123"], "roomConfig": "{\"name\":\"my-room\"}", "region": "Chicago"} + application/json: {"deploymentId": "dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", "clientIPs": ["123.123.123.123"], "roomConfig": "{\"name\":\"my-room\"}", "region": "Chicago"} responses: "201": application/json: "2swovpy1fnunu" @@ -885,7 +870,7 @@ examples: query: roomId: "2swovpy1fnunu" requestBody: - application/json: {"clientIPs": ["123.123.123.123"], "roomConfig": "{\"name\":\"my-room\"}", "region": "Sao_Paulo"} + application/json: {"deploymentId": "dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", "clientIPs": ["123.123.123.123"], "roomConfig": "{\"name\":\"my-room\"}", "region": "Sao_Paulo"} responses: "201": application/json: {"additionalExposedPorts": [{"transportType": "tcp", "port": 34567, "host": "1.proxy.hathora.dev", "name": "default"}], "exposedPort": {"transportType": "tcp", "port": 34567, "host": "1.proxy.hathora.dev", "name": "default"}, "status": "starting", "roomId": "2swovpy1fnunu", "processId": "cbfcddd2-0006-43ae-996c-995fff7bed2e"} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 8787582a..f81266e9 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.418.4 +speakeasyVersion: 1.420.0 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:08516ea30fec85ad0e541e2e1d7b992e4985fb4e7f14f4cd779d5a11e5241b2d - sourceBlobDigest: sha256:6cfbc7a083687d34b73b414094de5fdfbbc82c68369795dc78804246b7eeff08 + sourceRevisionDigest: sha256:f2f7927c91240e75b9b1b27a6f01d1d5f69d70c8b80eb8c97d72767d7e117570 + sourceBlobDigest: sha256:4f8be32df07db1363406faf1b3655e237643c7e536ffa5d49c70e6da77147d71 tags: - latest - main @@ -11,10 +11,10 @@ targets: hathora-typescript: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:08516ea30fec85ad0e541e2e1d7b992e4985fb4e7f14f4cd779d5a11e5241b2d - sourceBlobDigest: sha256:6cfbc7a083687d34b73b414094de5fdfbbc82c68369795dc78804246b7eeff08 + sourceRevisionDigest: sha256:f2f7927c91240e75b9b1b27a6f01d1d5f69d70c8b80eb8c97d72767d7e117570 + sourceBlobDigest: sha256:4f8be32df07db1363406faf1b3655e237643c7e536ffa5d49c70e6da77147d71 codeSamplesNamespace: code-samples-typescript-hathora-typescript - codeSamplesRevisionDigest: sha256:7a7488eb85a2a4de8506e48a9fc9501565739ac7f3867d1ffe8fd2b1b988baf6 + codeSamplesRevisionDigest: sha256:cf0387d9884d8039207ed0e5f80d6d7194c0aa9e043b05ec4b19426489786eb3 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 27c5b9a2..4c12982e 100755 --- a/README.md +++ b/README.md @@ -186,10 +186,9 @@ Deleting a build that is actively build used by an app's deployment will cause f ### [fleetsV1](docs/sdks/fleetsv1/README.md) -* [getFleets](docs/sdks/fleetsv1/README.md#getfleets) - Returns an array of [fleets](https://hathora.dev/docs/concepts/hathora-entities#fleet). -* [getFleetRegion](docs/sdks/fleetsv1/README.md#getfleetregion) - Gets the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. -* [updateFleetRegion](docs/sdks/fleetsv1/README.md#updatefleetregion) - Updates the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. -* [getFleetMetrics](docs/sdks/fleetsv1/README.md#getfleetmetrics) - Gets metrics for a [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. +* [getFleets](docs/sdks/fleetsv1/README.md#getfleets) +* [getFleetRegion](docs/sdks/fleetsv1/README.md#getfleetregion) +* [updateFleetRegion](docs/sdks/fleetsv1/README.md#updatefleetregion) ### [~~lobbiesV1~~](docs/sdks/lobbiesv1/README.md) @@ -226,9 +225,9 @@ Deleting a build that is actively build used by an app's deployment will cause f * [sendVerificationEmail](docs/sdks/managementv1/README.md#sendverificationemail) -### [~~metricsV1~~](docs/sdks/metricsv1/README.md) +### [metricsV1](docs/sdks/metricsv1/README.md) -* [~~getMetricsDeprecated~~](docs/sdks/metricsv1/README.md#getmetricsdeprecated) - Get metrics for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. :warning: **Deprecated** +* [getMetrics](docs/sdks/metricsv1/README.md#getmetrics) - Get metrics for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. ### [organizationsV1](docs/sdks/organizationsv1/README.md) @@ -262,7 +261,6 @@ Deleting a build that is actively build used by an app's deployment will cause f * [createProcess](docs/sdks/processesv3/README.md#createprocess) - Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. * [getProcess](docs/sdks/processesv3/README.md#getprocess) - Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). * [stopProcess](docs/sdks/processesv3/README.md#stopprocess) - Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. -* [getProcessMetrics](docs/sdks/processesv3/README.md#getprocessmetrics) ### [~~roomsV1~~](docs/sdks/roomsv1/README.md) @@ -598,10 +596,9 @@ Deleting a build that is actively build used by an app's deployment will cause f - [`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). - [`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. -- [`fleetsV1GetFleetRegion`](docs/sdks/fleetsv1/README.md#getfleetregion) - Gets the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. -- [`fleetsV1GetFleets`](docs/sdks/fleetsv1/README.md#getfleets) - Returns an array of [fleets](https://hathora.dev/docs/concepts/hathora-entities#fleet). -- [`fleetsV1UpdateFleetRegion`](docs/sdks/fleetsv1/README.md#updatefleetregion) - Updates the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. +- [`fleetsV1GetFleetRegion`](docs/sdks/fleetsv1/README.md#getfleetregion) +- [`fleetsV1GetFleets`](docs/sdks/fleetsv1/README.md#getfleets) +- [`fleetsV1UpdateFleetRegion`](docs/sdks/fleetsv1/README.md#updatefleetregion) - [`lobbiesV3CreateLobby`](docs/sdks/lobbiesv3/README.md#createlobby) - Create a new lobby for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). A lobby object is a wrapper around a [room](https://hathora.dev/docs/concepts/hathora-entities#room) object. With a lobby, you get additional functionality like configuring the visibility of the room, managing the state of a match, and retrieving a list of public lobbies to display to players. - [`lobbiesV3GetLobbyInfoByRoomId`](docs/sdks/lobbiesv3/README.md#getlobbyinfobyroomid) - Get details for a lobby. - [`lobbiesV3GetLobbyInfoByShortCode`](docs/sdks/lobbiesv3/README.md#getlobbyinfobyshortcode) - Get details for a lobby. If 2 or more lobbies have the same `shortCode`, then the most recently created lobby will be returned. @@ -609,6 +606,7 @@ Deleting a build that is actively build used by an app's deployment will cause f - [`logsV1DownloadLogForProcess`](docs/sdks/logsv1/README.md#downloadlogforprocess) - Download entire log file for a stopped process. - [`logsV1GetLogsForProcess`](docs/sdks/logsv1/README.md#getlogsforprocess) - Returns a stream of logs for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. - [`managementV1SendVerificationEmail`](docs/sdks/managementv1/README.md#sendverificationemail) +- [`metricsV1GetMetrics`](docs/sdks/metricsv1/README.md#getmetrics) - Get metrics for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. - [`organizationsV1AcceptInvite`](docs/sdks/organizationsv1/README.md#acceptinvite) - [`organizationsV1GetOrgMembers`](docs/sdks/organizationsv1/README.md#getorgmembers) - [`organizationsV1GetOrgPendingInvites`](docs/sdks/organizationsv1/README.md#getorgpendinginvites) @@ -621,7 +619,6 @@ Deleting a build that is actively build used by an app's deployment will cause f - [`processesV3GetLatestProcesses`](docs/sdks/processesv3/README.md#getlatestprocesses) - Retrieve the 10 most recent [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `status` or `region`. - [`processesV3GetProcess`](docs/sdks/processesv3/README.md#getprocess) - Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). - [`processesV3GetProcessesCountExperimental`](docs/sdks/processesv3/README.md#getprocessescountexperimental) - Count the number of [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter by optionally passing in a `status` or `region`. -- [`processesV3GetProcessMetrics`](docs/sdks/processesv3/README.md#getprocessmetrics) - [`processesV3StopProcess`](docs/sdks/processesv3/README.md#stopprocess) - Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. - [`roomsV2CreateRoom`](docs/sdks/roomsv2/README.md#createroom) - Create a new [room](https://hathora.dev/docs/concepts/hathora-entities#room) for an existing [application](https://hathora.dev/docs/concepts/hathora-entities#application). Poll the [`GetConnectionInfo()`](https://hathora.dev/api#tag/RoomV2/operation/GetConnectionInfo) endpoint to get connection details for an active room. - [`roomsV2DestroyRoom`](docs/sdks/roomsv2/README.md#destroyroom) - Destroy a [room](https://hathora.dev/docs/concepts/hathora-entities#room). All associated metadata is deleted. @@ -671,7 +668,6 @@ Deleting a build that is actively build used by an app's deployment will cause f - ~~[`lobbiesV2SetLobbyState`](docs/sdks/lobbiesv2/README.md#setlobbystate)~~ - Set the state of a lobby. State is intended to be set by the server and must be smaller than 1MB. Use this endpoint to store match data like live player count to enforce max number of clients or persist end-game data (i.e. winner or final scores). :warning: **Deprecated** - ~~[`logsV1GetLogsForApp`](docs/sdks/logsv1/README.md#getlogsforapp)~~ - Returns a stream of logs for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. :warning: **Deprecated** - ~~[`logsV1GetLogsForDeployment`](docs/sdks/logsv1/README.md#getlogsfordeployment)~~ - Returns a stream of logs for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) using `appId` and `deploymentId`. :warning: **Deprecated** -- ~~[`metricsV1GetMetricsDeprecated`](docs/sdks/metricsv1/README.md#getmetricsdeprecated)~~ - Get metrics for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. :warning: **Deprecated** - ~~[`processesV1GetProcessInfoDeprecated`](docs/sdks/processesv1/README.md#getprocessinfodeprecated)~~ - Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). :warning: **Deprecated** - ~~[`processesV1GetRunningProcesses`](docs/sdks/processesv1/README.md#getrunningprocesses)~~ - Retrieve 10 most recently started [process](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `region`. :warning: **Deprecated** - ~~[`processesV1GetStoppedProcesses`](docs/sdks/processesv1/README.md#getstoppedprocesses)~~ - Retrieve 10 most recently stopped [process](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `region`. :warning: **Deprecated** @@ -722,6 +718,7 @@ const hathoraCloud = new HathoraCloud({ async function run() { const result = await hathoraCloud.roomsV2.createRoom( { + deploymentId: "dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", clientIPs: [ "123.123.123.123", ], diff --git a/RELEASES.md b/RELEASES.md index 527800ed..0c2b8ee9 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -680,4 +680,14 @@ Based on: ### Generated - [typescript v2.10.5] . ### Releases -- [NPM v2.10.5] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.10.5 - . \ No newline at end of file +- [NPM v2.10.5] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.10.5 - . + +## 2024-10-23 00:14:58 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.420.0 (2.438.15) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v2.10.6] . +### Releases +- [NPM v2.10.6] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.10.6 - . \ No newline at end of file diff --git a/docs/models/components/application.md b/docs/models/components/application.md index e93adffa..c21c72f1 100644 --- a/docs/models/components/application.md +++ b/docs/models/components/application.md @@ -9,8 +9,8 @@ import { Application } from "@hathora/cloud-sdk-typescript/models/components"; let value: Application = { deletedBy: "noreply@hathora.dev", - deletedAt: new Date("2024-08-04T18:51:28.290Z"), - createdAt: new Date("2022-05-09T19:33:28.581Z"), + deletedAt: new Date("2022-11-01T06:44:43.765Z"), + createdAt: new Date("2023-10-06T02:46:31.617Z"), createdBy: "noreply@hathora.dev", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", authConfiguration: {}, diff --git a/docs/models/components/applicationspage.md b/docs/models/components/applicationspage.md index cb6b9aa6..026a3e5f 100644 --- a/docs/models/components/applicationspage.md +++ b/docs/models/components/applicationspage.md @@ -9,8 +9,8 @@ let value: ApplicationsPage = { applications: [ { deletedBy: "noreply@hathora.dev", - deletedAt: new Date("2023-07-22T01:08:24.125Z"), - createdAt: new Date("2022-05-25T17:55:10.089Z"), + deletedAt: new Date("2024-08-04T18:51:28.290Z"), + createdAt: new Date("2022-05-09T19:33:28.581Z"), createdBy: "noreply@hathora.dev", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", authConfiguration: {}, @@ -34,11 +34,11 @@ let value: ApplicationsPage = { }, ], defaultContainerPort: { - transportType: "tls", + transportType: "udp", port: 8000, name: "default", }, - createdAt: new Date("2023-03-11T01:57:15.921Z"), + createdAt: new Date("2022-05-25T17:55:10.089Z"), createdBy: "noreply@hathora.dev", requestedMemoryMB: 1024, requestedCPU: 0.5, @@ -48,12 +48,12 @@ let value: ApplicationsPage = { appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", build: { buildTag: "0.1.14-14c793", - imageSize: 565421, - status: "created", - deletedAt: new Date("2022-06-08T18:04:31.662Z"), - finishedAt: new Date("2023-06-19T21:49:56.662Z"), - startedAt: new Date("2023-01-25T18:02:14.843Z"), - createdAt: new Date("2024-10-27T17:07:18.797Z"), + imageSize: 716860, + status: "running", + deletedAt: new Date("2023-09-12T16:50:31.874Z"), + finishedAt: new Date("2022-07-20T20:59:34.122Z"), + startedAt: new Date("2022-06-08T18:04:31.662Z"), + createdAt: new Date("2023-06-19T21:49:56.662Z"), createdBy: "noreply@hathora.dev", buildId: "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", diff --git a/docs/models/components/applicationwithlatestdeploymentandbuild.md b/docs/models/components/applicationwithlatestdeploymentandbuild.md index 899188b5..ea8f4741 100644 --- a/docs/models/components/applicationwithlatestdeploymentandbuild.md +++ b/docs/models/components/applicationwithlatestdeploymentandbuild.md @@ -9,8 +9,8 @@ import { ApplicationWithLatestDeploymentAndBuild } from "@hathora/cloud-sdk-type let value: ApplicationWithLatestDeploymentAndBuild = { deletedBy: "noreply@hathora.dev", - deletedAt: new Date("2022-09-21T22:45:36.817Z"), - createdAt: new Date("2022-04-20T22:07:54.686Z"), + deletedAt: new Date("2024-11-20T06:46:28.205Z"), + createdAt: new Date("2022-11-17T04:38:54.761Z"), createdBy: "noreply@hathora.dev", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", authConfiguration: {}, @@ -38,7 +38,7 @@ let value: ApplicationWithLatestDeploymentAndBuild = { port: 8000, name: "default", }, - createdAt: new Date("2024-10-15T18:20:20.936Z"), + createdAt: new Date("2022-04-20T22:07:54.686Z"), createdBy: "noreply@hathora.dev", requestedMemoryMB: 1024, requestedCPU: 0.5, @@ -48,12 +48,12 @@ let value: ApplicationWithLatestDeploymentAndBuild = { appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", build: { buildTag: "0.1.14-14c793", - imageSize: 669917, + imageSize: 16429, status: "failed", - deletedAt: new Date("2022-11-05T18:37:43.326Z"), - finishedAt: new Date("2023-10-05T16:55:58.841Z"), - startedAt: new Date("2022-03-12T02:16:45.552Z"), - createdAt: new Date("2023-06-17T05:56:53.820Z"), + deletedAt: new Date("2024-01-05T05:29:05.430Z"), + finishedAt: new Date("2024-05-10T12:39:43.913Z"), + startedAt: new Date("2022-11-05T18:37:43.326Z"), + createdAt: new Date("2023-10-05T16:55:58.841Z"), createdBy: "noreply@hathora.dev", buildId: "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", diff --git a/docs/models/components/applicationwithlatestdeploymentandbuilddeployment.md b/docs/models/components/applicationwithlatestdeploymentandbuilddeployment.md index 500bb7dc..b0e1ee79 100644 --- a/docs/models/components/applicationwithlatestdeploymentandbuilddeployment.md +++ b/docs/models/components/applicationwithlatestdeploymentandbuilddeployment.md @@ -22,11 +22,11 @@ let value: ApplicationWithLatestDeploymentAndBuildDeployment = { }, ], defaultContainerPort: { - transportType: "tls", + transportType: "udp", port: 8000, name: "default", }, - createdAt: new Date("2024-03-31T12:50:52.284Z"), + createdAt: new Date("2024-10-27T17:07:18.797Z"), createdBy: "noreply@hathora.dev", requestedMemoryMB: 1024, requestedCPU: 0.5, @@ -36,12 +36,12 @@ let value: ApplicationWithLatestDeploymentAndBuildDeployment = { appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", build: { buildTag: "0.1.14-14c793", - imageSize: 903720, - status: "created", - deletedAt: new Date("2023-08-29T04:52:14.624Z"), - finishedAt: new Date("2023-10-03T14:03:30.664Z"), - startedAt: new Date("2024-11-20T06:46:28.205Z"), - createdAt: new Date("2022-11-17T04:38:54.761Z"), + imageSize: 765326, + status: "succeeded", + deletedAt: new Date("2024-09-17T11:26:38.524Z"), + finishedAt: new Date("2022-04-02T10:20:37.470Z"), + startedAt: new Date("2023-08-29T04:52:14.624Z"), + createdAt: new Date("2023-10-03T14:03:30.664Z"), createdBy: "noreply@hathora.dev", buildId: "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", diff --git a/docs/models/components/applicationwithlatestdeploymentandbuilddeprecated.md b/docs/models/components/applicationwithlatestdeploymentandbuilddeprecated.md index f9de133f..92e213b4 100644 --- a/docs/models/components/applicationwithlatestdeploymentandbuilddeprecated.md +++ b/docs/models/components/applicationwithlatestdeploymentandbuilddeprecated.md @@ -9,8 +9,8 @@ import { ApplicationWithLatestDeploymentAndBuildDeprecated } from "@hathora/clou let value: ApplicationWithLatestDeploymentAndBuildDeprecated = { deletedBy: "noreply@hathora.dev", - deletedAt: new Date("2024-03-12T00:25:52.109Z"), - createdAt: new Date("2022-10-06T07:40:51.480Z"), + deletedAt: new Date("2022-08-25T04:42:50.179Z"), + createdAt: new Date("2024-11-04T07:38:09.644Z"), createdBy: "noreply@hathora.dev", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", authConfiguration: {}, @@ -34,11 +34,11 @@ let value: ApplicationWithLatestDeploymentAndBuildDeprecated = { }, ], defaultContainerPort: { - transportType: "tcp", + transportType: "tls", port: 8000, name: "default", }, - createdAt: new Date("2023-07-22T22:45:05.685Z"), + createdAt: new Date("2022-10-06T07:40:51.480Z"), createdBy: "noreply@hathora.dev", requestedMemoryMB: 1024, requestedCPU: 0.5, @@ -50,15 +50,15 @@ let value: ApplicationWithLatestDeploymentAndBuildDeprecated = { regionalContainerTags: [ { containerTag: "", - region: "Seattle", + region: "Washington_DC", }, ], - imageSize: 207470, - status: "running", - deletedAt: new Date("2023-02-15T02:10:01.786Z"), - finishedAt: new Date("2023-05-24T01:53:16.665Z"), - startedAt: new Date("2022-11-01T06:44:43.765Z"), - createdAt: new Date("2023-10-06T02:46:31.617Z"), + imageSize: 518201, + status: "created", + deletedAt: new Date("2022-08-16T09:17:34.312Z"), + finishedAt: new Date("2023-04-11T10:55:35.652Z"), + startedAt: new Date("2023-02-15T02:10:01.786Z"), + createdAt: new Date("2023-05-24T01:53:16.665Z"), createdBy: "noreply@hathora.dev", buildId: 1, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", diff --git a/docs/models/components/build.md b/docs/models/components/build.md index d3e28291..5ad0090b 100644 --- a/docs/models/components/build.md +++ b/docs/models/components/build.md @@ -12,15 +12,15 @@ let value: Build = { regionalContainerTags: [ { containerTag: "", - region: "Frankfurt", + region: "Dubai", }, ], - imageSize: 606393, - status: "created", - deletedAt: new Date("2022-11-27T12:37:26.320Z"), - finishedAt: new Date("2023-12-25T13:12:17.029Z"), - startedAt: new Date("2022-11-14T22:12:04.968Z"), - createdAt: new Date("2023-11-09T08:16:40.240Z"), + imageSize: 643990, + status: "running", + deletedAt: new Date("2023-10-27T14:34:01.576Z"), + finishedAt: new Date("2022-01-22T00:51:28.398Z"), + startedAt: new Date("2022-11-27T12:37:26.320Z"), + createdAt: new Date("2023-12-25T13:12:17.029Z"), createdBy: "noreply@hathora.dev", buildId: 1, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", diff --git a/docs/models/components/buildpart.md b/docs/models/components/buildpart.md index a76ad95f..7c6d47f0 100644 --- a/docs/models/components/buildpart.md +++ b/docs/models/components/buildpart.md @@ -6,8 +6,8 @@ import { BuildPart } from "@hathora/cloud-sdk-typescript/models/components"; let value: BuildPart = { - putRequestUrl: "https://tricky-waist.org", - partNumber: 117.14, + putRequestUrl: "https://kosher-puppet.org", + partNumber: 9755.22, }; ``` diff --git a/docs/models/components/buildsv3page.md b/docs/models/components/buildsv3page.md index 45899008..fd249953 100644 --- a/docs/models/components/buildsv3page.md +++ b/docs/models/components/buildsv3page.md @@ -9,12 +9,12 @@ let value: BuildsV3Page = { builds: [ { buildTag: "0.1.14-14c793", - imageSize: 729991, - status: "created", - deletedAt: new Date("2023-07-26T01:20:48.803Z"), - finishedAt: new Date("2022-03-01T13:18:23.203Z"), - startedAt: new Date("2022-08-08T04:42:30.927Z"), - createdAt: new Date("2022-01-21T07:11:50.213Z"), + imageSize: 11714, + status: "running", + deletedAt: new Date("2024-03-11T01:40:18.315Z"), + finishedAt: new Date("2022-07-08T02:32:49.310Z"), + startedAt: new Date("2023-07-26T01:20:48.803Z"), + createdAt: new Date("2022-03-01T13:18:23.203Z"), createdBy: "noreply@hathora.dev", buildId: "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", diff --git a/docs/models/components/buildv3.md b/docs/models/components/buildv3.md index 9320fa48..348eb3d7 100644 --- a/docs/models/components/buildv3.md +++ b/docs/models/components/buildv3.md @@ -9,12 +9,12 @@ import { BuildV3 } from "@hathora/cloud-sdk-typescript/models/components"; let value: BuildV3 = { buildTag: "0.1.14-14c793", - imageSize: 793698, + imageSize: 199996, status: "created", - deletedAt: new Date("2023-01-14T12:07:50.192Z"), - finishedAt: new Date("2024-10-14T04:15:01.236Z"), - startedAt: new Date("2024-02-12T00:54:59.142Z"), - createdAt: new Date("2022-02-04T21:29:28.328Z"), + deletedAt: new Date("2024-05-19T21:25:27.801Z"), + finishedAt: new Date("2022-09-03T10:06:53.981Z"), + startedAt: new Date("2023-01-14T12:07:50.192Z"), + createdAt: new Date("2024-10-14T04:15:01.236Z"), createdBy: "noreply@hathora.dev", buildId: "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", diff --git a/docs/models/components/buildwithmultiparturls.md b/docs/models/components/buildwithmultiparturls.md index 4cc831f8..9e1c77f2 100644 --- a/docs/models/components/buildwithmultiparturls.md +++ b/docs/models/components/buildwithmultiparturls.md @@ -12,24 +12,24 @@ let value: BuildWithMultipartUrls = { regionalContainerTags: [ { containerTag: "", - region: "Sydney", + region: "Johannesburg", }, ], - imageSize: 100226, - status: "failed", - deletedAt: new Date("2024-02-22T19:24:11.316Z"), - finishedAt: new Date("2024-12-30T17:40:17.979Z"), - startedAt: new Date("2022-06-13T19:05:17.540Z"), - createdAt: new Date("2024-08-09T11:11:16.127Z"), + imageSize: 806194, + status: "succeeded", + deletedAt: new Date("2022-04-20T20:22:04.958Z"), + finishedAt: new Date("2024-10-04T18:04:14.419Z"), + startedAt: new Date("2024-02-22T19:24:11.316Z"), + createdAt: new Date("2024-12-30T17:40:17.979Z"), createdBy: "noreply@hathora.dev", buildId: 1, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", - completeUploadPostRequestUrl: "https://plump-casket.org/", - maxChunkSize: 8073.19, + completeUploadPostRequestUrl: "https://trivial-coil.name/", + maxChunkSize: 1238.20, uploadParts: [ { - putRequestUrl: "https://impure-battle.net", - partNumber: 4535.43, + putRequestUrl: "https://strident-metal.info", + partNumber: 691.67, }, ], }; diff --git a/docs/models/components/buildwithmultiparturlsregionalcontainertags.md b/docs/models/components/buildwithmultiparturlsregionalcontainertags.md index 4eadbd34..91a18096 100644 --- a/docs/models/components/buildwithmultiparturlsregionalcontainertags.md +++ b/docs/models/components/buildwithmultiparturlsregionalcontainertags.md @@ -7,7 +7,7 @@ import { BuildWithMultipartUrlsRegionalContainerTags } from "@hathora/cloud-sdk- let value: BuildWithMultipartUrlsRegionalContainerTags = { containerTag: "", - region: "Dallas", + region: "Mumbai", }; ``` diff --git a/docs/models/components/buildwithuploadurl.md b/docs/models/components/buildwithuploadurl.md index d7a38675..426713d5 100644 --- a/docs/models/components/buildwithuploadurl.md +++ b/docs/models/components/buildwithuploadurl.md @@ -12,15 +12,15 @@ let value: BuildWithUploadUrl = { regionalContainerTags: [ { containerTag: "", - region: "London", + region: "Mumbai", }, ], - imageSize: 569965, - status: "succeeded", - deletedAt: new Date("2023-09-22T11:03:04.845Z"), - finishedAt: new Date("2023-12-17T21:47:39.716Z"), - startedAt: new Date("2023-12-16T16:55:27.891Z"), - createdAt: new Date("2023-04-18T20:01:49.892Z"), + imageSize: 135474, + status: "running", + deletedAt: new Date("2023-09-17T16:21:25.240Z"), + finishedAt: new Date("2023-10-10T14:19:01.603Z"), + startedAt: new Date("2023-09-22T11:03:04.845Z"), + createdAt: new Date("2023-12-17T21:47:39.716Z"), createdBy: "noreply@hathora.dev", buildId: 1, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", @@ -30,7 +30,7 @@ let value: BuildWithUploadUrl = { key: "", }, ], - uploadUrl: "https://hidden-hubris.org", + uploadUrl: "https://intrepid-technician.info", }; ``` diff --git a/docs/models/components/buildwithuploadurlregionalcontainertags.md b/docs/models/components/buildwithuploadurlregionalcontainertags.md index 5a5286fa..c6fe6a44 100644 --- a/docs/models/components/buildwithuploadurlregionalcontainertags.md +++ b/docs/models/components/buildwithuploadurlregionalcontainertags.md @@ -7,7 +7,7 @@ import { BuildWithUploadUrlRegionalContainerTags } from "@hathora/cloud-sdk-type let value: BuildWithUploadUrlRegionalContainerTags = { containerTag: "", - region: "Los_Angeles", + region: "Tokyo", }; ``` diff --git a/docs/models/components/cardbrand.md b/docs/models/components/cardbrand.md index 91832783..36bff565 100644 --- a/docs/models/components/cardbrand.md +++ b/docs/models/components/cardbrand.md @@ -5,7 +5,7 @@ ```typescript import { CardBrand } from "@hathora/cloud-sdk-typescript/models/components"; -let value: CardBrand = "amex"; +let value: CardBrand = "cartes_bancaires"; ``` ## Values diff --git a/docs/models/components/cardpaymentmethod.md b/docs/models/components/cardpaymentmethod.md index 6a0a067b..6cb7a0d7 100644 --- a/docs/models/components/cardpaymentmethod.md +++ b/docs/models/components/cardpaymentmethod.md @@ -7,7 +7,7 @@ import { CardPaymentMethod } from "@hathora/cloud-sdk-typescript/models/componen let value: CardPaymentMethod = { last4: "", - brand: "amex", + brand: "discover", }; ``` diff --git a/docs/models/components/containerport.md b/docs/models/components/containerport.md index 114b8f1a..b54b37f1 100644 --- a/docs/models/components/containerport.md +++ b/docs/models/components/containerport.md @@ -8,7 +8,7 @@ A container port object represents the transport configruations for how your ser import { ContainerPort } from "@hathora/cloud-sdk-typescript/models/components"; let value: ContainerPort = { - transportType: "udp", + transportType: "tcp", port: 8000, name: "default", }; diff --git a/docs/models/components/createdbuildv3withmultiparturls.md b/docs/models/components/createdbuildv3withmultiparturls.md index 2f15aed1..014082a2 100644 --- a/docs/models/components/createdbuildv3withmultiparturls.md +++ b/docs/models/components/createdbuildv3withmultiparturls.md @@ -9,21 +9,21 @@ import { CreatedBuildV3WithMultipartUrls } from "@hathora/cloud-sdk-typescript/m let value: CreatedBuildV3WithMultipartUrls = { buildTag: "0.1.14-14c793", - imageSize: 164694, - status: "succeeded", - deletedAt: new Date("2023-09-25T15:25:14.861Z"), - finishedAt: new Date("2022-09-18T17:31:57.984Z"), - startedAt: new Date("2024-10-20T21:33:54.006Z"), - createdAt: new Date("2023-11-04T21:45:37.821Z"), + imageSize: 704415, + status: "created", + deletedAt: new Date("2022-06-30T12:06:54.333Z"), + finishedAt: new Date("2023-11-13T03:22:04.343Z"), + startedAt: new Date("2023-09-25T15:25:14.861Z"), + createdAt: new Date("2022-09-18T17:31:57.984Z"), createdBy: "noreply@hathora.dev", buildId: "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", - completeUploadPostRequestUrl: "https://overcooked-ravioli.biz", - maxChunkSize: 3982.21, + completeUploadPostRequestUrl: "https://pleased-lox.name", + maxChunkSize: 7301.22, uploadParts: [ { - putRequestUrl: "https://descriptive-unblinking.net/", - partNumber: 4904.59, + putRequestUrl: "https://impeccable-cruelty.biz/", + partNumber: 9443.72, }, ], }; diff --git a/docs/models/components/createlobbyparams.md b/docs/models/components/createlobbyparams.md index 20cf796e..0fd28da2 100644 --- a/docs/models/components/createlobbyparams.md +++ b/docs/models/components/createlobbyparams.md @@ -8,7 +8,7 @@ import { CreateLobbyParams } from "@hathora/cloud-sdk-typescript/models/componen let value: CreateLobbyParams = { visibility: "private", initialConfig: "", - region: "Sydney", + region: "London", }; ``` diff --git a/docs/models/components/createlobbyv3params.md b/docs/models/components/createlobbyv3params.md index 0c4a9256..ebef12a3 100644 --- a/docs/models/components/createlobbyv3params.md +++ b/docs/models/components/createlobbyv3params.md @@ -8,7 +8,7 @@ import { CreateLobbyV3Params } from "@hathora/cloud-sdk-typescript/models/compon let value: CreateLobbyV3Params = { visibility: "private", roomConfig: "{\"name\":\"my-room\"}", - region: "London", + region: "Sao_Paulo", }; ``` diff --git a/docs/models/components/createmultipartbuildparams.md b/docs/models/components/createmultipartbuildparams.md index 415b2218..b2ca178c 100644 --- a/docs/models/components/createmultipartbuildparams.md +++ b/docs/models/components/createmultipartbuildparams.md @@ -8,7 +8,7 @@ import { CreateMultipartBuildParams } from "@hathora/cloud-sdk-typescript/models let value: CreateMultipartBuildParams = { buildId: "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", buildTag: "0.1.14-14c793", - buildSizeInBytes: 3599.78, + buildSizeInBytes: 8558.03, }; ``` diff --git a/docs/models/components/createroomparams.md b/docs/models/components/createroomparams.md index 157c7862..41d86d6e 100644 --- a/docs/models/components/createroomparams.md +++ b/docs/models/components/createroomparams.md @@ -6,6 +6,7 @@ import { CreateRoomParams } from "@hathora/cloud-sdk-typescript/models/components"; let value: CreateRoomParams = { + deploymentId: "dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", clientIPs: [ "123.123.123.123", ], @@ -18,6 +19,7 @@ let value: CreateRoomParams = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `deploymentId` | *string* | :heavy_minus_sign: | System generated id for a deployment. | dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5 | | `clientIPs` | *string*[] | :heavy_minus_sign: | N/A | | | `roomConfig` | *string* | :heavy_minus_sign: | Optional configuration parameters for the room. Can be any string including stringified JSON. It is accessible from the room via [`GetRoomInfo()`](https://hathora.dev/api#tag/RoomV2/operation/GetRoomInfo). | {"name":"my-room"} | | `region` | [components.Region](../../models/components/region.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/customerportalurl.md b/docs/models/components/customerportalurl.md index 75357223..e6377ebb 100644 --- a/docs/models/components/customerportalurl.md +++ b/docs/models/components/customerportalurl.md @@ -6,7 +6,7 @@ import { CustomerPortalUrl } from "@hathora/cloud-sdk-typescript/models/components"; let value: CustomerPortalUrl = { - returnUrl: "https://kosher-loyalty.org", + returnUrl: "https://bitter-platter.info/", }; ``` diff --git a/docs/models/components/deployment.md b/docs/models/components/deployment.md index c7cd7382..34e40d4b 100644 --- a/docs/models/components/deployment.md +++ b/docs/models/components/deployment.md @@ -26,7 +26,7 @@ let value: Deployment = { port: 8000, name: "default", }, - createdAt: new Date("2024-08-14T10:12:10.228Z"), + createdAt: new Date("2024-06-29T19:53:54.840Z"), createdBy: "noreply@hathora.dev", requestedMemoryMB: 1024, requestedCPU: 0.5, @@ -38,15 +38,15 @@ let value: Deployment = { regionalContainerTags: [ { containerTag: "", - region: "Chicago", + region: "Tokyo", }, ], - imageSize: 798047, - status: "created", - deletedAt: new Date("2024-11-10T06:13:54.282Z"), - finishedAt: new Date("2024-01-24T11:41:29.840Z"), - startedAt: new Date("2022-08-25T04:42:50.179Z"), - createdAt: new Date("2024-11-04T07:38:09.644Z"), + imageSize: 872651, + status: "running", + deletedAt: new Date("2024-05-24T15:49:26.110Z"), + finishedAt: new Date("2022-07-23T10:58:04.364Z"), + startedAt: new Date("2024-11-10T06:13:54.282Z"), + createdAt: new Date("2024-01-24T11:41:29.840Z"), createdBy: "noreply@hathora.dev", buildId: 1, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", diff --git a/docs/models/components/deploymentconfig.md b/docs/models/components/deploymentconfig.md index 9ff82228..9a5c5d04 100644 --- a/docs/models/components/deploymentconfig.md +++ b/docs/models/components/deploymentconfig.md @@ -23,7 +23,7 @@ let value: DeploymentConfig = { name: "default", }, ], - transportType: "tls", + transportType: "udp", containerPort: 4000, }; ``` diff --git a/docs/models/components/deploymentconfigv2.md b/docs/models/components/deploymentconfigv2.md index 922e31d9..75cc986d 100644 --- a/docs/models/components/deploymentconfigv2.md +++ b/docs/models/components/deploymentconfigv2.md @@ -16,7 +16,7 @@ let value: DeploymentConfigV2 = { roomsPerProcess: 3, additionalContainerPorts: [ { - transportType: "udp", + transportType: "tcp", port: 8000, name: "default", }, diff --git a/docs/models/components/deploymentconfigv3.md b/docs/models/components/deploymentconfigv3.md index e8197ede..6b94c9e3 100644 --- a/docs/models/components/deploymentconfigv3.md +++ b/docs/models/components/deploymentconfigv3.md @@ -16,7 +16,7 @@ let value: DeploymentConfigV3 = { roomsPerProcess: 3, additionalContainerPorts: [ { - transportType: "udp", + transportType: "tls", port: 8000, name: "default", }, diff --git a/docs/models/components/deploymentsv3page.md b/docs/models/components/deploymentsv3page.md index e67c8e52..2859fd4a 100644 --- a/docs/models/components/deploymentsv3page.md +++ b/docs/models/components/deploymentsv3page.md @@ -28,7 +28,7 @@ let value: DeploymentsV3Page = { port: 8000, name: "default", }, - createdAt: new Date("2024-08-24T09:10:01.050Z"), + createdAt: new Date("2024-08-23T16:32:18.589Z"), createdBy: "noreply@hathora.dev", requestedMemoryMB: 1024, requestedCPU: 0.5, diff --git a/docs/models/components/deploymentv1.md b/docs/models/components/deploymentv1.md index df79ceb3..d1cc8a39 100644 --- a/docs/models/components/deploymentv1.md +++ b/docs/models/components/deploymentv1.md @@ -24,13 +24,13 @@ let value: DeploymentV1 = { }, ], defaultContainerPort: { - transportType: "udp", + transportType: "tcp", port: 8000, name: "default", }, transportType: "udp", - containerPort: 2230.82, - createdAt: new Date("2024-11-10T05:06:35.997Z"), + containerPort: 5920.42, + createdAt: new Date("2023-09-20T04:30:50.868Z"), createdBy: "noreply@hathora.dev", requestedMemoryMB: 1024, requestedCPU: 0.5, diff --git a/docs/models/components/deploymentv1transporttype.md b/docs/models/components/deploymentv1transporttype.md index 472a3d40..0f72529d 100644 --- a/docs/models/components/deploymentv1transporttype.md +++ b/docs/models/components/deploymentv1transporttype.md @@ -7,7 +7,7 @@ ```typescript import { DeploymentV1TransportType } from "@hathora/cloud-sdk-typescript/models/components"; -let value: DeploymentV1TransportType = "udp"; +let value: DeploymentV1TransportType = "tls"; ``` ## Values diff --git a/docs/models/components/deploymentv2.md b/docs/models/components/deploymentv2.md index c2be979e..f01f23de 100644 --- a/docs/models/components/deploymentv2.md +++ b/docs/models/components/deploymentv2.md @@ -22,11 +22,11 @@ let value: DeploymentV2 = { }, ], defaultContainerPort: { - transportType: "tcp", + transportType: "tls", port: 8000, name: "default", }, - createdAt: new Date("2024-06-10T22:08:16.258Z"), + createdAt: new Date("2024-02-06T15:06:10.289Z"), createdBy: "noreply@hathora.dev", requestedMemoryMB: 1024, requestedCPU: 0.5, diff --git a/docs/models/components/deploymentv3.md b/docs/models/components/deploymentv3.md index a3b3b3ce..955dac6e 100644 --- a/docs/models/components/deploymentv3.md +++ b/docs/models/components/deploymentv3.md @@ -22,11 +22,11 @@ let value: DeploymentV3 = { }, ], defaultContainerPort: { - transportType: "tls", + transportType: "udp", port: 8000, name: "default", }, - createdAt: new Date("2024-03-05T21:05:18.875Z"), + createdAt: new Date("2024-08-24T09:10:01.050Z"), createdBy: "noreply@hathora.dev", requestedMemoryMB: 1024, requestedCPU: 0.5, diff --git a/docs/models/components/deprecatedprocessmetricsdata.md b/docs/models/components/deprecatedprocessmetricsdata.md deleted file mode 100644 index ce30b574..00000000 --- a/docs/models/components/deprecatedprocessmetricsdata.md +++ /dev/null @@ -1,19 +0,0 @@ -# DeprecatedProcessMetricsData - -## Example Usage - -```typescript -import { DeprecatedProcessMetricsData } from "@hathora/cloud-sdk-typescript/models/components"; - -let value: DeprecatedProcessMetricsData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `activeConnections` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_minus_sign: | N/A | -| `totalEgress` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_minus_sign: | N/A | -| `rateEgress` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_minus_sign: | N/A | -| `memory` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_minus_sign: | N/A | -| `cpu` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/fleetmetricname.md b/docs/models/components/fleetmetricname.md deleted file mode 100644 index 44d25e5f..00000000 --- a/docs/models/components/fleetmetricname.md +++ /dev/null @@ -1,17 +0,0 @@ -# FleetMetricName - -## Example Usage - -```typescript -import { FleetMetricName } from "@hathora/cloud-sdk-typescript/models/components"; - -let value: FleetMetricName = "provisionedTotal"; -``` - -## Values - -This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. - -```typescript -"provisionedTotal" | "provisionedBareMetal" | "provisionedCloud" | "utilized" | Unrecognized -``` \ No newline at end of file diff --git a/docs/models/components/fleetmetricsdata.md b/docs/models/components/fleetmetricsdata.md deleted file mode 100644 index 5ae924eb..00000000 --- a/docs/models/components/fleetmetricsdata.md +++ /dev/null @@ -1,18 +0,0 @@ -# FleetMetricsData - -## Example Usage - -```typescript -import { FleetMetricsData } from "@hathora/cloud-sdk-typescript/models/components"; - -let value: FleetMetricsData = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `utilized` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_minus_sign: | N/A | -| `provisionedCloud` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_minus_sign: | N/A | -| `provisionedBareMetal` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_minus_sign: | N/A | -| `provisionedTotal` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/fleetregion.md b/docs/models/components/fleetregion.md index 35d277a4..c5f8d740 100644 --- a/docs/models/components/fleetregion.md +++ b/docs/models/components/fleetregion.md @@ -10,9 +10,9 @@ scaleIncrementVcpus import { FleetRegion } from "@hathora/cloud-sdk-typescript/models/components"; let value: FleetRegion = { - cloudMinVcpusUpdatedAt: new Date("2022-07-20T18:39:56.110Z"), - cloudMinVcpus: 586513, - scaleIncrementVcpus: 20107, + cloudMinVcpusUpdatedAt: new Date("2022-11-14T04:32:16.328Z"), + cloudMinVcpus: 183191, + scaleIncrementVcpus: 586513, }; ``` diff --git a/docs/models/components/fleetregionconfig.md b/docs/models/components/fleetregionconfig.md index bffea07b..9a692421 100644 --- a/docs/models/components/fleetregionconfig.md +++ b/docs/models/components/fleetregionconfig.md @@ -6,7 +6,7 @@ import { FleetRegionConfig } from "@hathora/cloud-sdk-typescript/models/components"; let value: FleetRegionConfig = { - cloudMinVcpus: 828940, + cloudMinVcpus: 20107, }; ``` diff --git a/docs/models/components/invoice.md b/docs/models/components/invoice.md index 0513a23e..f05aac02 100644 --- a/docs/models/components/invoice.md +++ b/docs/models/components/invoice.md @@ -6,12 +6,12 @@ import { Invoice } from "@hathora/cloud-sdk-typescript/models/components"; let value: Invoice = { - status: "overdue", - amountDue: 2168.97, - pdfUrl: "https://fatherly-agreement.net", - dueDate: new Date("2022-12-17T17:43:52.087Z"), - year: 3834.64, - month: 5883.17, + status: "paid", + amountDue: 8966.71, + pdfUrl: "https://edible-pharmacopoeia.biz", + dueDate: new Date("2022-01-23T15:12:14.003Z"), + year: 7583.79, + month: 3200.17, id: "", }; ``` diff --git a/docs/models/components/invoiceitem.md b/docs/models/components/invoiceitem.md index f61265ff..d5303c87 100644 --- a/docs/models/components/invoiceitem.md +++ b/docs/models/components/invoiceitem.md @@ -6,10 +6,10 @@ import { InvoiceItem } from "@hathora/cloud-sdk-typescript/models/components"; let value: InvoiceItem = { - amount: 3117.96, - unitPrice: 6963.43, - quantity: 3777.52, - unit: "candela", + amount: 580.29, + unitPrice: 4344.17, + quantity: 3117.96, + unit: "gray", productName: "", }; ``` diff --git a/docs/models/components/invoiceitempage.md b/docs/models/components/invoiceitempage.md index 9a72ee9d..2c4ea254 100644 --- a/docs/models/components/invoiceitempage.md +++ b/docs/models/components/invoiceitempage.md @@ -8,10 +8,10 @@ import { InvoiceItemPage } from "@hathora/cloud-sdk-typescript/models/components let value: InvoiceItemPage = { invoiceItems: [ { - amount: 2274.15, - unitPrice: 2543.56, - quantity: 580.29, - unit: "watt", + amount: 7395.51, + unitPrice: 4904.59, + quantity: 2274.15, + unit: "radian", productName: "", }, ], diff --git a/docs/models/components/invoicestatus.md b/docs/models/components/invoicestatus.md index 90916218..f0ec3219 100644 --- a/docs/models/components/invoicestatus.md +++ b/docs/models/components/invoicestatus.md @@ -5,7 +5,7 @@ ```typescript import { InvoiceStatus } from "@hathora/cloud-sdk-typescript/models/components"; -let value: InvoiceStatus = "overdue"; +let value: InvoiceStatus = "paid"; ``` ## Values diff --git a/docs/models/components/lobby.md b/docs/models/components/lobby.md index f1011bd6..d2e7058d 100644 --- a/docs/models/components/lobby.md +++ b/docs/models/components/lobby.md @@ -10,11 +10,11 @@ import { Lobby } from "@hathora/cloud-sdk-typescript/models/components"; let value: Lobby = { shortCode: "LFG4", initialConfig: "", - createdAt: new Date("2024-10-15T12:12:25.852Z"), + createdAt: new Date("2023-09-24T05:41:47.829Z"), createdBy: "google-oauth2|107030234048588177467", local: false, visibility: "private", - region: "London", + region: "Dubai", roomId: "2swovpy1fnunu", appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", }; diff --git a/docs/models/components/lobbyv3.md b/docs/models/components/lobbyv3.md index a2c9129f..45ae5bcc 100644 --- a/docs/models/components/lobbyv3.md +++ b/docs/models/components/lobbyv3.md @@ -9,11 +9,11 @@ import { LobbyV3 } from "@hathora/cloud-sdk-typescript/models/components"; let value: LobbyV3 = { shortCode: "LFG4", - createdAt: new Date("2022-05-25T10:48:39.501Z"), + createdAt: new Date("2024-01-02T11:33:45.485Z"), createdBy: "google-oauth2|107030234048588177467", roomConfig: "{\"name\":\"my-room\"}", visibility: "private", - region: "Sao_Paulo", + region: "Los_Angeles", roomId: "2swovpy1fnunu", appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", }; diff --git a/docs/models/components/deprecatedprocessmetricname.md b/docs/models/components/metricname.md similarity index 59% rename from docs/models/components/deprecatedprocessmetricname.md rename to docs/models/components/metricname.md index 1bba615c..d0b192e6 100644 --- a/docs/models/components/deprecatedprocessmetricname.md +++ b/docs/models/components/metricname.md @@ -1,11 +1,13 @@ -# DeprecatedProcessMetricName +# MetricName + +Available metrics to query over time. ## Example Usage ```typescript -import { DeprecatedProcessMetricName } from "@hathora/cloud-sdk-typescript/models/components"; +import { MetricName } from "@hathora/cloud-sdk-typescript/models/components"; -let value: DeprecatedProcessMetricName = "rate_egress"; +let value: MetricName = "cpu"; ``` ## Values diff --git a/docs/models/components/processmetricsdata.md b/docs/models/components/metricsdata.md similarity index 93% rename from docs/models/components/processmetricsdata.md rename to docs/models/components/metricsdata.md index a65d6796..6e97588f 100644 --- a/docs/models/components/processmetricsdata.md +++ b/docs/models/components/metricsdata.md @@ -1,11 +1,11 @@ -# ProcessMetricsData +# MetricsData ## Example Usage ```typescript -import { ProcessMetricsData } from "@hathora/cloud-sdk-typescript/models/components"; +import { MetricsData } from "@hathora/cloud-sdk-typescript/models/components"; -let value: ProcessMetricsData = {}; +let value: MetricsData = {}; ``` ## Fields diff --git a/docs/models/components/metricvalue.md b/docs/models/components/metricvalue.md index 2c4f7f6a..3a46b67f 100644 --- a/docs/models/components/metricvalue.md +++ b/docs/models/components/metricvalue.md @@ -6,8 +6,8 @@ import { MetricValue } from "@hathora/cloud-sdk-typescript/models/components"; let value: MetricValue = { - value: 1187.28, - timestamp: 3179.83, + value: 2653.89, + timestamp: 5232.48, }; ``` diff --git a/docs/models/components/orgmember.md b/docs/models/components/orgmember.md index 7b7d6092..dc209893 100644 --- a/docs/models/components/orgmember.md +++ b/docs/models/components/orgmember.md @@ -6,8 +6,8 @@ import { OrgMember } from "@hathora/cloud-sdk-typescript/models/components"; let value: OrgMember = { - joinedAt: new Date("2023-07-28T11:31:00.474Z"), - createdAt: new Date("2022-04-13T23:00:40.302Z"), + joinedAt: new Date("2024-01-29T22:47:11.861Z"), + createdAt: new Date("2023-09-13T23:53:04.745Z"), invitedBy: "noreply@hathora.dev", userEmail: "noreply@hathora.dev", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", diff --git a/docs/models/components/orgmemberspage.md b/docs/models/components/orgmemberspage.md index 0efd160c..6ae538dc 100644 --- a/docs/models/components/orgmemberspage.md +++ b/docs/models/components/orgmemberspage.md @@ -8,8 +8,8 @@ import { OrgMembersPage } from "@hathora/cloud-sdk-typescript/models/components" let value: OrgMembersPage = { members: [ { - joinedAt: new Date("2023-09-13T23:53:04.745Z"), - createdAt: new Date("2022-10-18T20:48:18.611Z"), + joinedAt: new Date("2023-03-31T00:46:25.708Z"), + createdAt: new Date("2022-03-12T07:20:08.678Z"), invitedBy: "noreply@hathora.dev", userEmail: "noreply@hathora.dev", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", diff --git a/docs/models/components/pendingorginvite.md b/docs/models/components/pendingorginvite.md index 6fd4c9be..2eb5e7a7 100644 --- a/docs/models/components/pendingorginvite.md +++ b/docs/models/components/pendingorginvite.md @@ -6,7 +6,7 @@ import { PendingOrgInvite } from "@hathora/cloud-sdk-typescript/models/components"; let value: PendingOrgInvite = { - createdAt: new Date("2024-01-29T22:47:11.861Z"), + createdAt: new Date("2022-12-15T12:13:46.383Z"), invitedBy: "noreply@hathora.dev", userEmail: "noreply@hathora.dev", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", diff --git a/docs/models/components/pendingorginvitespage.md b/docs/models/components/pendingorginvitespage.md index e2eba1e8..5b9f4ee8 100644 --- a/docs/models/components/pendingorginvitespage.md +++ b/docs/models/components/pendingorginvitespage.md @@ -8,7 +8,7 @@ import { PendingOrgInvitesPage } from "@hathora/cloud-sdk-typescript/models/comp let value: PendingOrgInvitesPage = { invites: [ { - createdAt: new Date("2022-03-12T07:20:08.678Z"), + createdAt: new Date("2022-05-11T03:00:50.109Z"), invitedBy: "noreply@hathora.dev", userEmail: "noreply@hathora.dev", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", diff --git a/docs/models/components/pingendpoints.md b/docs/models/components/pingendpoints.md index f6799ff2..04e78392 100644 --- a/docs/models/components/pingendpoints.md +++ b/docs/models/components/pingendpoints.md @@ -6,9 +6,9 @@ import { PingEndpoints } from "@hathora/cloud-sdk-typescript/models/components"; let value: PingEndpoints = { - port: 6778.17, - host: "finished-receptor.org", - region: "Chicago", + port: 8289.40, + host: "accomplished-planula.biz", + region: "Sao_Paulo", }; ``` diff --git a/docs/models/components/processmetricname.md b/docs/models/components/processmetricname.md deleted file mode 100644 index 806bf02d..00000000 --- a/docs/models/components/processmetricname.md +++ /dev/null @@ -1,19 +0,0 @@ -# ProcessMetricName - -Available metrics to query over time. - -## Example Usage - -```typescript -import { ProcessMetricName } from "@hathora/cloud-sdk-typescript/models/components"; - -let value: ProcessMetricName = "rateEgress"; -``` - -## Values - -This is an open enum. Unrecognized values will be captured as the `Unrecognized` branded type. - -```typescript -"cpu" | "memory" | "rateEgress" | "totalEgress" | "activeConnections" | Unrecognized -``` \ No newline at end of file diff --git a/docs/models/components/regionalcontainertags.md b/docs/models/components/regionalcontainertags.md index 09870605..c48de5fe 100644 --- a/docs/models/components/regionalcontainertags.md +++ b/docs/models/components/regionalcontainertags.md @@ -7,7 +7,7 @@ import { RegionalContainerTags } from "@hathora/cloud-sdk-typescript/models/comp let value: RegionalContainerTags = { containerTag: "", - region: "Sydney", + region: "Singapore", }; ``` diff --git a/docs/models/operations/createbuildrequest.md b/docs/models/operations/createbuildrequest.md index 298fc140..6c445f59 100644 --- a/docs/models/operations/createbuildrequest.md +++ b/docs/models/operations/createbuildrequest.md @@ -10,7 +10,7 @@ let value: CreateBuildRequest = { createMultipartBuildParams: { buildId: "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", buildTag: "0.1.14-14c793", - buildSizeInBytes: 2243.17, + buildSizeInBytes: 8221.18, }, }; ``` diff --git a/docs/models/operations/createdeploymentrequest.md b/docs/models/operations/createdeploymentrequest.md index 053d1924..90c9328f 100644 --- a/docs/models/operations/createdeploymentrequest.md +++ b/docs/models/operations/createdeploymentrequest.md @@ -17,12 +17,12 @@ let value: CreateDeploymentRequest = { roomsPerProcess: 3, additionalContainerPorts: [ { - transportType: "tls", + transportType: "udp", port: 8000, name: "default", }, ], - transportType: "tcp", + transportType: "udp", containerPort: 4000, requestedMemoryMB: 1024, requestedCPU: 0.5, diff --git a/docs/models/operations/createdeploymentv1deprecatedrequest.md b/docs/models/operations/createdeploymentv1deprecatedrequest.md index dcce6bdd..fbfb5583 100644 --- a/docs/models/operations/createdeploymentv1deprecatedrequest.md +++ b/docs/models/operations/createdeploymentv1deprecatedrequest.md @@ -18,12 +18,12 @@ let value: CreateDeploymentV1DeprecatedRequest = { planName: "tiny", additionalContainerPorts: [ { - transportType: "udp", + transportType: "tcp", port: 8000, name: "default", }, ], - transportType: "udp", + transportType: "tls", containerPort: 4000, }, }; diff --git a/docs/models/operations/createdeploymentv2deprecatedrequest.md b/docs/models/operations/createdeploymentv2deprecatedrequest.md index 4efef859..c4c5087a 100644 --- a/docs/models/operations/createdeploymentv2deprecatedrequest.md +++ b/docs/models/operations/createdeploymentv2deprecatedrequest.md @@ -23,7 +23,7 @@ let value: CreateDeploymentV2DeprecatedRequest = { name: "default", }, ], - transportType: "tcp", + transportType: "udp", containerPort: 4000, requestedMemoryMB: 1024, requestedCPU: 0.5, diff --git a/docs/models/operations/createlobbydeprecatedrequest.md b/docs/models/operations/createlobbydeprecatedrequest.md index 017be784..7a837bef 100644 --- a/docs/models/operations/createlobbydeprecatedrequest.md +++ b/docs/models/operations/createlobbydeprecatedrequest.md @@ -10,7 +10,7 @@ let value: CreateLobbyDeprecatedRequest = { createLobbyParams: { visibility: "private", initialConfig: "", - region: "Tokyo", + region: "London", }, }; ``` diff --git a/docs/models/operations/createlobbyrequest.md b/docs/models/operations/createlobbyrequest.md index 317bf253..06ed2d5f 100644 --- a/docs/models/operations/createlobbyrequest.md +++ b/docs/models/operations/createlobbyrequest.md @@ -11,7 +11,7 @@ let value: CreateLobbyRequest = { createLobbyV3Params: { visibility: "private", roomConfig: "{\"name\":\"my-room\"}", - region: "Seattle", + region: "Dallas", }, }; ``` diff --git a/docs/models/operations/createlocallobbyrequest.md b/docs/models/operations/createlocallobbyrequest.md index 7258173c..a4c70ea2 100644 --- a/docs/models/operations/createlocallobbyrequest.md +++ b/docs/models/operations/createlocallobbyrequest.md @@ -9,7 +9,7 @@ let value: CreateLocalLobbyRequest = { roomId: "2swovpy1fnunu", requestBody: { initialConfig: "", - region: "Dallas", + region: "Johannesburg", }, }; ``` diff --git a/docs/models/operations/createlocallobbyrequestbody.md b/docs/models/operations/createlocallobbyrequestbody.md index d59bd4ad..5b28e9ef 100644 --- a/docs/models/operations/createlocallobbyrequestbody.md +++ b/docs/models/operations/createlocallobbyrequestbody.md @@ -7,7 +7,7 @@ import { CreateLocalLobbyRequestBody } from "@hathora/cloud-sdk-typescript/model let value: CreateLocalLobbyRequestBody = { initialConfig: "", - region: "London", + region: "Tokyo", }; ``` diff --git a/docs/models/operations/createprivatelobbyrequest.md b/docs/models/operations/createprivatelobbyrequest.md index 76692356..8630cf0b 100644 --- a/docs/models/operations/createprivatelobbyrequest.md +++ b/docs/models/operations/createprivatelobbyrequest.md @@ -9,7 +9,7 @@ let value: CreatePrivateLobbyRequest = { roomId: "2swovpy1fnunu", requestBody: { initialConfig: "", - region: "Dallas", + region: "Dubai", }, }; ``` diff --git a/docs/models/operations/createprivatelobbyrequestbody.md b/docs/models/operations/createprivatelobbyrequestbody.md index 7643e79d..8b7efe0c 100644 --- a/docs/models/operations/createprivatelobbyrequestbody.md +++ b/docs/models/operations/createprivatelobbyrequestbody.md @@ -7,7 +7,7 @@ import { CreatePrivateLobbyRequestBody } from "@hathora/cloud-sdk-typescript/mod let value: CreatePrivateLobbyRequestBody = { initialConfig: "", - region: "Dubai", + region: "Chicago", }; ``` diff --git a/docs/models/operations/createprocessv2deprecatedrequest.md b/docs/models/operations/createprocessv2deprecatedrequest.md index 1753e6bb..844a24d8 100644 --- a/docs/models/operations/createprocessv2deprecatedrequest.md +++ b/docs/models/operations/createprocessv2deprecatedrequest.md @@ -6,7 +6,7 @@ import { CreateProcessV2DeprecatedRequest } from "@hathora/cloud-sdk-typescript/models/operations"; let value: CreateProcessV2DeprecatedRequest = { - region: "Dubai", + region: "Johannesburg", }; ``` diff --git a/docs/models/operations/createpubliclobbyrequest.md b/docs/models/operations/createpubliclobbyrequest.md index 9b8c6f45..bf769f11 100644 --- a/docs/models/operations/createpubliclobbyrequest.md +++ b/docs/models/operations/createpubliclobbyrequest.md @@ -9,7 +9,7 @@ let value: CreatePublicLobbyRequest = { roomId: "2swovpy1fnunu", requestBody: { initialConfig: "", - region: "Johannesburg", + region: "Dallas", }, }; ``` diff --git a/docs/models/operations/createpubliclobbyrequestbody.md b/docs/models/operations/createpubliclobbyrequestbody.md index 4adb91d9..78618ca5 100644 --- a/docs/models/operations/createpubliclobbyrequestbody.md +++ b/docs/models/operations/createpubliclobbyrequestbody.md @@ -7,7 +7,7 @@ import { CreatePublicLobbyRequestBody } from "@hathora/cloud-sdk-typescript/mode let value: CreatePublicLobbyRequestBody = { initialConfig: "", - region: "Tokyo", + region: "Dubai", }; ``` diff --git a/docs/models/operations/createroomdeprecatedrequest.md b/docs/models/operations/createroomdeprecatedrequest.md index ccde80c1..78521cd9 100644 --- a/docs/models/operations/createroomdeprecatedrequest.md +++ b/docs/models/operations/createroomdeprecatedrequest.md @@ -8,11 +8,12 @@ import { CreateRoomDeprecatedRequest } from "@hathora/cloud-sdk-typescript/model let value: CreateRoomDeprecatedRequest = { roomId: "2swovpy1fnunu", createRoomParams: { + deploymentId: "dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", clientIPs: [ "123.123.123.123", ], roomConfig: "{\"name\":\"my-room\"}", - region: "Dubai", + region: "Seattle", }, }; ``` diff --git a/docs/models/operations/createroomrequest.md b/docs/models/operations/createroomrequest.md index 7b603a1c..c2b33813 100644 --- a/docs/models/operations/createroomrequest.md +++ b/docs/models/operations/createroomrequest.md @@ -8,11 +8,12 @@ import { CreateRoomRequest } from "@hathora/cloud-sdk-typescript/models/operatio let value: CreateRoomRequest = { roomId: "2swovpy1fnunu", createRoomParams: { + deploymentId: "dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", clientIPs: [ "123.123.123.123", ], roomConfig: "{\"name\":\"my-room\"}", - region: "Johannesburg", + region: "Mumbai", }, }; ``` diff --git a/docs/models/operations/createwithmultipartuploadsv2deprecatedrequest.md b/docs/models/operations/createwithmultipartuploadsv2deprecatedrequest.md index 4b1c6753..cb896c24 100644 --- a/docs/models/operations/createwithmultipartuploadsv2deprecatedrequest.md +++ b/docs/models/operations/createwithmultipartuploadsv2deprecatedrequest.md @@ -9,7 +9,7 @@ let value: CreateWithMultipartUploadsV2DeprecatedRequest = { createMultipartBuildParams: { buildId: "bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", buildTag: "0.1.14-14c793", - buildSizeInBytes: 5113.19, + buildSizeInBytes: 1369.00, }, }; ``` diff --git a/docs/models/operations/getfleetmetricsrequest.md b/docs/models/operations/getfleetmetricsrequest.md deleted file mode 100644 index 887c7e93..00000000 --- a/docs/models/operations/getfleetmetricsrequest.md +++ /dev/null @@ -1,25 +0,0 @@ -# GetFleetMetricsRequest - -## Example Usage - -```typescript -import { GetFleetMetricsRequest } from "@hathora/cloud-sdk-typescript/models/operations"; - -let value: GetFleetMetricsRequest = { - fleetId: "", - region: "Mumbai", - orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `fleetId` | *string* | :heavy_check_mark: | N/A | | -| `region` | [components.Region](../../models/components/region.md) | :heavy_check_mark: | N/A | | -| `metrics` | [components.FleetMetricName](../../models/components/fleetmetricname.md)[] | :heavy_minus_sign: | Available metrics to query over time. | | -| `end` | *number* | :heavy_minus_sign: | N/A | | -| `start` | *number* | :heavy_minus_sign: | Unix timestamp. Default is -1 hour from `end`. | | -| `step` | *number* | :heavy_minus_sign: | N/A | | -| `orgId` | *string* | :heavy_minus_sign: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | \ No newline at end of file diff --git a/docs/models/operations/getfleetregionrequest.md b/docs/models/operations/getfleetregionrequest.md index eb7e37ac..f87d314a 100644 --- a/docs/models/operations/getfleetregionrequest.md +++ b/docs/models/operations/getfleetregionrequest.md @@ -7,7 +7,7 @@ import { GetFleetRegionRequest } from "@hathora/cloud-sdk-typescript/models/oper let value: GetFleetRegionRequest = { fleetId: "", - region: "London", + region: "Tokyo", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", }; ``` diff --git a/docs/models/operations/getmetricsdeprecatedglobals.md b/docs/models/operations/getmetricsdeprecatedglobals.md deleted file mode 100644 index 5917d5a4..00000000 --- a/docs/models/operations/getmetricsdeprecatedglobals.md +++ /dev/null @@ -1,15 +0,0 @@ -# GetMetricsDeprecatedGlobals - -## Example Usage - -```typescript -import { GetMetricsDeprecatedGlobals } from "@hathora/cloud-sdk-typescript/models/operations"; - -let value: GetMetricsDeprecatedGlobals = {}; -``` - -## 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 diff --git a/docs/models/operations/getmetricsdeprecatedrequest.md b/docs/models/operations/getmetricsdeprecatedrequest.md deleted file mode 100644 index e487ea1b..00000000 --- a/docs/models/operations/getmetricsdeprecatedrequest.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetMetricsDeprecatedRequest - -## Example Usage - -```typescript -import { GetMetricsDeprecatedRequest } from "@hathora/cloud-sdk-typescript/models/operations"; - -let value: GetMetricsDeprecatedRequest = { - processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `appId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | -| `processId` | *string* | :heavy_check_mark: | N/A | cbfcddd2-0006-43ae-996c-995fff7bed2e | -| `metrics` | [components.DeprecatedProcessMetricName](../../models/components/deprecatedprocessmetricname.md)[] | :heavy_minus_sign: | Available metrics to query over time. | | -| `end` | *number* | :heavy_minus_sign: | Unix timestamp. Default is current time. | | -| `start` | *number* | :heavy_minus_sign: | Unix timestamp. Default is -1 hour from `end`. | | -| `step` | *number* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getprocessmetricsglobals.md b/docs/models/operations/getmetricsglobals.md similarity index 81% rename from docs/models/operations/getprocessmetricsglobals.md rename to docs/models/operations/getmetricsglobals.md index 7dd2d1f9..d4063e9b 100644 --- a/docs/models/operations/getprocessmetricsglobals.md +++ b/docs/models/operations/getmetricsglobals.md @@ -1,11 +1,11 @@ -# GetProcessMetricsGlobals +# GetMetricsGlobals ## Example Usage ```typescript -import { GetProcessMetricsGlobals } from "@hathora/cloud-sdk-typescript/models/operations"; +import { GetMetricsGlobals } from "@hathora/cloud-sdk-typescript/models/operations"; -let value: GetProcessMetricsGlobals = {}; +let value: GetMetricsGlobals = {}; ``` ## Fields diff --git a/docs/models/operations/getmetricsrequest.md b/docs/models/operations/getmetricsrequest.md new file mode 100644 index 00000000..d89c17e3 --- /dev/null +++ b/docs/models/operations/getmetricsrequest.md @@ -0,0 +1,22 @@ +# GetMetricsRequest + +## Example Usage + +```typescript +import { GetMetricsRequest } from "@hathora/cloud-sdk-typescript/models/operations"; + +let value: GetMetricsRequest = { + processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `appId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `processId` | *string* | :heavy_check_mark: | N/A | cbfcddd2-0006-43ae-996c-995fff7bed2e | +| `metrics` | [components.MetricName](../../models/components/metricname.md)[] | :heavy_minus_sign: | Available metrics to query over time. | | +| `end` | *number* | :heavy_minus_sign: | Unix timestamp. Default is current time. | | +| `start` | *number* | :heavy_minus_sign: | Unix timestamp. Default is -1 hour from `end`. | | +| `step` | *number* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getprocessescountexperimentalresponsebody.md b/docs/models/operations/getprocessescountexperimentalresponsebody.md index 5d253821..24c2b77a 100644 --- a/docs/models/operations/getprocessescountexperimentalresponsebody.md +++ b/docs/models/operations/getprocessescountexperimentalresponsebody.md @@ -8,7 +8,7 @@ Ok import { GetProcessesCountExperimentalResponseBody } from "@hathora/cloud-sdk-typescript/models/operations"; let value: GetProcessesCountExperimentalResponseBody = { - count: 2317.02, + count: 3381.59, }; ``` diff --git a/docs/models/operations/getprocessescountexperimentalv2deprecatedresponsebody.md b/docs/models/operations/getprocessescountexperimentalv2deprecatedresponsebody.md index a49c2861..fa16a776 100644 --- a/docs/models/operations/getprocessescountexperimentalv2deprecatedresponsebody.md +++ b/docs/models/operations/getprocessescountexperimentalv2deprecatedresponsebody.md @@ -8,7 +8,7 @@ Ok import { GetProcessesCountExperimentalV2DeprecatedResponseBody } from "@hathora/cloud-sdk-typescript/models/operations"; let value: GetProcessesCountExperimentalV2DeprecatedResponseBody = { - count: 3381.59, + count: 9774.95, }; ``` diff --git a/docs/models/operations/getprocessmetricsrequest.md b/docs/models/operations/getprocessmetricsrequest.md deleted file mode 100644 index 8597124d..00000000 --- a/docs/models/operations/getprocessmetricsrequest.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetProcessMetricsRequest - -## Example Usage - -```typescript -import { GetProcessMetricsRequest } from "@hathora/cloud-sdk-typescript/models/operations"; - -let value: GetProcessMetricsRequest = { - processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e", -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `appId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | -| `processId` | *string* | :heavy_check_mark: | N/A | cbfcddd2-0006-43ae-996c-995fff7bed2e | -| `metrics` | [components.ProcessMetricName](../../models/components/processmetricname.md)[] | :heavy_minus_sign: | Available metrics to query over time. | | -| `end` | *number* | :heavy_minus_sign: | Unix timestamp. Default is current time. | | -| `start` | *number* | :heavy_minus_sign: | Unix timestamp. Default is -1 hour from `end`. | | -| `step` | *number* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getupcominginvoicetotalresponsebody.md b/docs/models/operations/getupcominginvoicetotalresponsebody.md index 8193c091..2bcb1c1a 100644 --- a/docs/models/operations/getupcominginvoicetotalresponsebody.md +++ b/docs/models/operations/getupcominginvoicetotalresponsebody.md @@ -8,7 +8,7 @@ Ok import { GetUpcomingInvoiceTotalResponseBody } from "@hathora/cloud-sdk-typescript/models/operations"; let value: GetUpcomingInvoiceTotalResponseBody = { - value: 978.44, + value: 1898.48, }; ``` diff --git a/docs/models/operations/updatefleetregionrequest.md b/docs/models/operations/updatefleetregionrequest.md index 91bff8bd..fe031fa9 100644 --- a/docs/models/operations/updatefleetregionrequest.md +++ b/docs/models/operations/updatefleetregionrequest.md @@ -7,10 +7,10 @@ import { UpdateFleetRegionRequest } from "@hathora/cloud-sdk-typescript/models/o let value: UpdateFleetRegionRequest = { fleetId: "", - region: "Washington_DC", + region: "Seattle", orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", fleetRegionConfig: { - cloudMinVcpus: 981830, + cloudMinVcpus: 347233, }, }; ``` diff --git a/docs/sdks/fleetsv1/README.md b/docs/sdks/fleetsv1/README.md index eaaf5313..8597d908 100644 --- a/docs/sdks/fleetsv1/README.md +++ b/docs/sdks/fleetsv1/README.md @@ -3,19 +3,14 @@ ## Overview -Operations to manage and view a [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet). - ### Available Operations -* [getFleets](#getfleets) - Returns an array of [fleets](https://hathora.dev/docs/concepts/hathora-entities#fleet). -* [getFleetRegion](#getfleetregion) - Gets the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. -* [updateFleetRegion](#updatefleetregion) - Updates the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. -* [getFleetMetrics](#getfleetmetrics) - Gets metrics for a [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. +* [getFleets](#getfleets) +* [getFleetRegion](#getfleetregion) +* [updateFleetRegion](#updatefleetregion) ## getFleets -Returns an array of [fleets](https://hathora.dev/docs/concepts/hathora-entities#fleet). - ### Example Usage ```typescript @@ -89,8 +84,6 @@ run(); ## getFleetRegion -Gets the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. - ### Example Usage ```typescript @@ -166,8 +159,6 @@ run(); ## updateFleetRegion -Updates the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. - ### Example Usage ```typescript @@ -242,87 +233,4 @@ run(); | Error Type | Status Code | Content Type | | ----------------------- | ----------------------- | ----------------------- | | errors.ApiError | 401, 404, 422, 429, 500 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## getFleetMetrics - -Gets metrics for a [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. - -### Example Usage - -```typescript -import { HathoraCloud } from "@hathora/cloud-sdk-typescript"; - -const hathoraCloud = new HathoraCloud({ - hathoraDevToken: "", - appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", -}); - -async function run() { - const result = await hathoraCloud.fleetsV1.getFleetMetrics({ - fleetId: "", - region: "London", - orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", - }); - - // Handle the result - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { HathoraCloudCore } from "@hathora/cloud-sdk-typescript/core.js"; -import { fleetsV1GetFleetMetrics } from "@hathora/cloud-sdk-typescript/funcs/fleetsV1GetFleetMetrics.js"; - -// Use `HathoraCloudCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const hathoraCloud = new HathoraCloudCore({ - hathoraDevToken: "", - appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", -}); - -async function run() { - const res = await fleetsV1GetFleetMetrics(hathoraCloud, { - fleetId: "", - region: "London", - orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result); -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetFleetMetricsRequest](../../models/operations/getfleetmetricsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `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. | - -### Response - -**Promise\<[components.FleetMetricsData](../../models/components/fleetmetricsdata.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------ | ------------------ | ------------------ | -| errors.ApiError | 404, 422, 429, 500 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/metricsv1/README.md b/docs/sdks/metricsv1/README.md index 89a9d7db..095995cc 100644 --- a/docs/sdks/metricsv1/README.md +++ b/docs/sdks/metricsv1/README.md @@ -7,14 +7,12 @@ Operations to get metrics by [process](https://hathora.dev/docs/concepts/hathora ### Available Operations -* [~~getMetricsDeprecated~~](#getmetricsdeprecated) - Get metrics for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. :warning: **Deprecated** +* [getMetrics](#getmetrics) - Get metrics for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. -## ~~getMetricsDeprecated~~ +## getMetrics Get metrics for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. - ### Example Usage ```typescript @@ -26,7 +24,7 @@ const hathoraCloud = new HathoraCloud({ }); async function run() { - const result = await hathoraCloud.metricsV1.getMetricsDeprecated({ + const result = await hathoraCloud.metricsV1.getMetrics({ processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e", }); @@ -43,7 +41,7 @@ The standalone function version of this method: ```typescript import { HathoraCloudCore } from "@hathora/cloud-sdk-typescript/core.js"; -import { metricsV1GetMetricsDeprecated } from "@hathora/cloud-sdk-typescript/funcs/metricsV1GetMetricsDeprecated.js"; +import { metricsV1GetMetrics } from "@hathora/cloud-sdk-typescript/funcs/metricsV1GetMetrics.js"; // Use `HathoraCloudCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -53,7 +51,7 @@ const hathoraCloud = new HathoraCloudCore({ }); async function run() { - const res = await metricsV1GetMetricsDeprecated(hathoraCloud, { + const res = await metricsV1GetMetrics(hathoraCloud, { processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e", }); @@ -74,14 +72,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetMetricsDeprecatedRequest](../../models/operations/getmetricsdeprecatedrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.GetMetricsRequest](../../models/operations/getmetricsrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `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. | ### Response -**Promise\<[components.DeprecatedProcessMetricsData](../../models/components/deprecatedprocessmetricsdata.md)\>** +**Promise\<[components.MetricsData](../../models/components/metricsdata.md)\>** ### Errors diff --git a/docs/sdks/processesv3/README.md b/docs/sdks/processesv3/README.md index f7401a7a..62b639cb 100644 --- a/docs/sdks/processesv3/README.md +++ b/docs/sdks/processesv3/README.md @@ -12,7 +12,6 @@ Operations to get data on active and stopped [processes](https://hathora.dev/doc * [createProcess](#createprocess) - Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. * [getProcess](#getprocess) - Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). * [stopProcess](#stopprocess) - Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. -* [getProcessMetrics](#getprocessmetrics) ## getLatestProcesses @@ -392,81 +391,4 @@ run(); | Error Type | Status Code | Content Type | | ------------------ | ------------------ | ------------------ | | errors.ApiError | 401, 404, 429, 500 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## getProcessMetrics - -### Example Usage - -```typescript -import { HathoraCloud } from "@hathora/cloud-sdk-typescript"; - -const hathoraCloud = new HathoraCloud({ - hathoraDevToken: "", - appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", -}); - -async function run() { - const result = await hathoraCloud.processesV3.getProcessMetrics({ - processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e", - }); - - // Handle the result - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { HathoraCloudCore } from "@hathora/cloud-sdk-typescript/core.js"; -import { processesV3GetProcessMetrics } from "@hathora/cloud-sdk-typescript/funcs/processesV3GetProcessMetrics.js"; - -// Use `HathoraCloudCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const hathoraCloud = new HathoraCloudCore({ - hathoraDevToken: "", - appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2", -}); - -async function run() { - const res = await processesV3GetProcessMetrics(hathoraCloud, { - processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result); -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetProcessMetricsRequest](../../models/operations/getprocessmetricsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `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. | - -### Response - -**Promise\<[components.ProcessMetricsData](../../models/components/processmetricsdata.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ----------------------- | ----------------------- | ----------------------- | -| errors.ApiError | 401, 404, 422, 429, 500 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/roomsv1/README.md b/docs/sdks/roomsv1/README.md index 8801a3d3..f7eb1195 100644 --- a/docs/sdks/roomsv1/README.md +++ b/docs/sdks/roomsv1/README.md @@ -29,6 +29,7 @@ const hathoraCloud = new HathoraCloud({ async function run() { const result = await hathoraCloud.roomsV1.createRoomDeprecated({ + deploymentId: "dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", clientIPs: [ "123.123.123.123", ], @@ -60,6 +61,7 @@ const hathoraCloud = new HathoraCloudCore({ async function run() { const res = await roomsV1CreateRoomDeprecated(hathoraCloud, { + deploymentId: "dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", clientIPs: [ "123.123.123.123", ], diff --git a/docs/sdks/roomsv2/README.md b/docs/sdks/roomsv2/README.md index 4d679208..537c2182 100644 --- a/docs/sdks/roomsv2/README.md +++ b/docs/sdks/roomsv2/README.md @@ -30,6 +30,7 @@ const hathoraCloud = new HathoraCloud({ async function run() { const result = await hathoraCloud.roomsV2.createRoom({ + deploymentId: "dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", clientIPs: [ "123.123.123.123", ], @@ -61,6 +62,7 @@ const hathoraCloud = new HathoraCloudCore({ async function run() { const res = await roomsV2CreateRoom(hathoraCloud, { + deploymentId: "dep-6d4c6a71-2d75-4b42-94e1-f312f57f33c5", clientIPs: [ "123.123.123.123", ], diff --git a/gen.yaml b/gen.yaml index 60699727..96838108 100644 --- a/gen.yaml +++ b/gen.yaml @@ -18,7 +18,7 @@ management: generationVersion: 2.188.3 speakeasyVersion: 1.120.0 typescript: - version: 2.10.5 + version: 2.10.6 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/jsr.json b/jsr.json index e5c727c1..0609fb22 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@hathora/cloud-sdk-typescript", - "version": "2.10.5", + "version": "2.10.6", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index b03b3a50..a9cde731 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hathora/cloud-sdk-typescript", - "version": "2.10.5", + "version": "2.10.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@hathora/cloud-sdk-typescript", - "version": "2.10.5", + "version": "2.10.6", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index ae9ece22..440c96ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hathora/cloud-sdk-typescript", - "version": "2.10.5", + "version": "2.10.6", "author": "Hathora", "main": "./index.js", "sideEffects": false, diff --git a/src/funcs/fleetsV1GetFleetMetrics.ts b/src/funcs/fleetsV1GetFleetMetrics.ts deleted file mode 100644 index 573c28a5..00000000 --- a/src/funcs/fleetsV1GetFleetMetrics.ts +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { HathoraCloudCore } from "../core.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"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Gets metrics for a [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. - */ -export async function fleetsV1GetFleetMetrics( - client: HathoraCloudCore, - request: operations.GetFleetMetricsRequest, - options?: RequestOptions, -): Promise< - Result< - components.FleetMetricsData, - | errors.ApiError - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const parsed = safeParse( - request, - (value) => operations.GetFleetMetricsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return parsed; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - fleetId: encodeSimple("fleetId", payload.fleetId, { - explode: false, - charEncoding: "percent", - }), - region: encodeSimple("region", payload.region, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc( - "/fleets/v1/fleets/{fleetId}/regions/{region}/metrics", - )(pathParams); - - const query = encodeFormQuery({ - "end": payload.end, - "metrics": payload.metrics, - "orgId": payload.orgId, - "start": payload.start, - "step": payload.step, - }); - - const headers = new Headers({ - Accept: "application/json", - }); - - const secConfig = await extractSecurity(client._options.hathoraDevToken); - const securityInput = secConfig == null ? {} : { hathoraDevToken: secConfig }; - const context = { - operationID: "GetFleetMetrics", - oAuth2Scopes: [], - securitySource: client._options.hathoraDevToken, - }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - path: path, - headers: headers, - query: query, - body: body, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: ["404", "422", "429", "4XX", "500", "5XX"], - retryConfig: options?.retries - || client._options.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.FleetMetricsData, - | errors.ApiError - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - M.json(200, components.FleetMetricsData$inboundSchema), - M.jsonErr([404, 422, 429, 500], errors.ApiError$inboundSchema), - M.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields }); - if (!result.ok) { - return result; - } - - return result; -} diff --git a/src/funcs/fleetsV1GetFleetRegion.ts b/src/funcs/fleetsV1GetFleetRegion.ts index e7d50412..0c090ea0 100644 --- a/src/funcs/fleetsV1GetFleetRegion.ts +++ b/src/funcs/fleetsV1GetFleetRegion.ts @@ -23,9 +23,6 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { Result } from "../types/fp.js"; -/** - * Gets the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. - */ export async function fleetsV1GetFleetRegion( client: HathoraCloudCore, fleetId: string, diff --git a/src/funcs/fleetsV1GetFleets.ts b/src/funcs/fleetsV1GetFleets.ts index 9114a879..d7e84f46 100644 --- a/src/funcs/fleetsV1GetFleets.ts +++ b/src/funcs/fleetsV1GetFleets.ts @@ -23,9 +23,6 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { Result } from "../types/fp.js"; -/** - * Returns an array of [fleets](https://hathora.dev/docs/concepts/hathora-entities#fleet). - */ export async function fleetsV1GetFleets( client: HathoraCloudCore, orgId?: string | undefined, diff --git a/src/funcs/fleetsV1UpdateFleetRegion.ts b/src/funcs/fleetsV1UpdateFleetRegion.ts index 60397e33..073e7689 100644 --- a/src/funcs/fleetsV1UpdateFleetRegion.ts +++ b/src/funcs/fleetsV1UpdateFleetRegion.ts @@ -24,9 +24,6 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { Result } from "../types/fp.js"; -/** - * Updates the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. - */ export async function fleetsV1UpdateFleetRegion( client: HathoraCloudCore, fleetRegionConfig: components.FleetRegionConfig, diff --git a/src/funcs/metricsV1GetMetricsDeprecated.ts b/src/funcs/metricsV1GetMetrics.ts similarity index 87% rename from src/funcs/metricsV1GetMetricsDeprecated.ts rename to src/funcs/metricsV1GetMetrics.ts index 717f8835..488378ec 100644 --- a/src/funcs/metricsV1GetMetricsDeprecated.ts +++ b/src/funcs/metricsV1GetMetrics.ts @@ -25,16 +25,14 @@ import { Result } from "../types/fp.js"; /** * Get metrics for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ -export async function metricsV1GetMetricsDeprecated( +export async function metricsV1GetMetrics( client: HathoraCloudCore, - request: operations.GetMetricsDeprecatedRequest, + request: operations.GetMetricsRequest, options?: RequestOptions, ): Promise< Result< - components.DeprecatedProcessMetricsData, + components.MetricsData, | errors.ApiError | SDKError | SDKValidationError @@ -47,8 +45,7 @@ export async function metricsV1GetMetricsDeprecated( > { const parsed = safeParse( request, - (value) => - operations.GetMetricsDeprecatedRequest$outboundSchema.parse(value), + (value) => operations.GetMetricsRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { @@ -86,7 +83,7 @@ export async function metricsV1GetMetricsDeprecated( const secConfig = await extractSecurity(client._options.hathoraDevToken); const securityInput = secConfig == null ? {} : { hathoraDevToken: secConfig }; const context = { - operationID: "GetMetricsDeprecated", + operationID: "GetMetrics", oAuth2Scopes: [], securitySource: client._options.hathoraDevToken, }; @@ -123,7 +120,7 @@ export async function metricsV1GetMetricsDeprecated( }; const [result] = await M.match< - components.DeprecatedProcessMetricsData, + components.MetricsData, | errors.ApiError | SDKError | SDKValidationError @@ -133,7 +130,7 @@ export async function metricsV1GetMetricsDeprecated( | RequestTimeoutError | ConnectionError >( - M.json(200, components.DeprecatedProcessMetricsData$inboundSchema), + M.json(200, components.MetricsData$inboundSchema), M.jsonErr([401, 404, 422, 429, 500], errors.ApiError$inboundSchema), M.fail(["4XX", "5XX"]), )(response, { extraFields: responseFields }); diff --git a/src/funcs/processesV3GetProcessMetrics.ts b/src/funcs/processesV3GetProcessMetrics.ts deleted file mode 100644 index 631e17c5..00000000 --- a/src/funcs/processesV3GetProcessMetrics.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { HathoraCloudCore } from "../core.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"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import * as errors from "../models/errors/index.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -export async function processesV3GetProcessMetrics( - client: HathoraCloudCore, - request: operations.GetProcessMetricsRequest, - options?: RequestOptions, -): Promise< - Result< - components.ProcessMetricsData, - | errors.ApiError - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const parsed = safeParse( - request, - (value) => operations.GetProcessMetricsRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return parsed; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - appId: encodeSimple("appId", payload.appId ?? client._options.appId, { - explode: false, - charEncoding: "percent", - }), - processId: encodeSimple("processId", payload.processId, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc( - "/processes/v3/apps/{appId}/processes/process/{processId}/metrics", - )(pathParams); - - const query = encodeFormQuery({ - "end": payload.end, - "metrics": payload.metrics, - "start": payload.start, - "step": payload.step, - }); - - const headers = new Headers({ - Accept: "application/json", - }); - - const secConfig = await extractSecurity(client._options.hathoraDevToken); - const securityInput = secConfig == null ? {} : { hathoraDevToken: secConfig }; - const context = { - operationID: "GetProcessMetrics", - oAuth2Scopes: [], - securitySource: client._options.hathoraDevToken, - }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - path: path, - headers: headers, - query: query, - body: body, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: ["401", "404", "422", "429", "4XX", "500", "5XX"], - retryConfig: options?.retries - || client._options.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - components.ProcessMetricsData, - | errors.ApiError - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - M.json(200, components.ProcessMetricsData$inboundSchema), - M.jsonErr([401, 404, 422, 429, 500], errors.ApiError$inboundSchema), - M.fail(["4XX", "5XX"]), - )(response, { extraFields: responseFields }); - if (!result.ok) { - return result; - } - - return result; -} diff --git a/src/lib/config.ts b/src/lib/config.ts index f583c6c2..6dec43f7 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.5", - genVersion: "2.438.3", + sdkVersion: "2.10.6", + genVersion: "2.438.15", userAgent: - "speakeasy-sdk/typescript 2.10.5 2.438.3 0.0.1 @hathora/cloud-sdk-typescript", + "speakeasy-sdk/typescript 2.10.6 2.438.15 0.0.1 @hathora/cloud-sdk-typescript", } as const; diff --git a/src/models/components/createroomparams.ts b/src/models/components/createroomparams.ts index 6bf4a9b1..fa41a2fe 100644 --- a/src/models/components/createroomparams.ts +++ b/src/models/components/createroomparams.ts @@ -10,6 +10,10 @@ import { } from "./region.js"; export type CreateRoomParams = { + /** + * System generated id for a deployment. + */ + deploymentId?: string | undefined; clientIPs?: Array | undefined; /** * Optional configuration parameters for the room. Can be any string including stringified JSON. It is accessible from the room via [`GetRoomInfo()`](https://hathora.dev/api#tag/RoomV2/operation/GetRoomInfo). @@ -24,6 +28,7 @@ export const CreateRoomParams$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ + deploymentId: z.string().optional(), clientIPs: z.array(z.string()).optional(), roomConfig: z.string().optional(), region: Region$inboundSchema, @@ -31,6 +36,7 @@ export const CreateRoomParams$inboundSchema: z.ZodType< /** @internal */ export type CreateRoomParams$Outbound = { + deploymentId?: string | undefined; clientIPs?: Array | undefined; roomConfig?: string | undefined; region: string; @@ -42,6 +48,7 @@ export const CreateRoomParams$outboundSchema: z.ZodType< z.ZodTypeDef, CreateRoomParams > = z.object({ + deploymentId: z.string().optional(), clientIPs: z.array(z.string()).optional(), roomConfig: z.string().optional(), region: Region$outboundSchema, diff --git a/src/models/components/deprecatedprocessmetricname.ts b/src/models/components/deprecatedprocessmetricname.ts deleted file mode 100644 index 9c43668b..00000000 --- a/src/models/components/deprecatedprocessmetricname.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { - catchUnrecognizedEnum, - OpenEnum, - Unrecognized, -} from "../../types/enums.js"; - -export const DeprecatedProcessMetricName = { - Cpu: "cpu", - Memory: "memory", - RateEgress: "rate_egress", - TotalEgress: "total_egress", - ActiveConnections: "active_connections", -} as const; -export type DeprecatedProcessMetricName = OpenEnum< - typeof DeprecatedProcessMetricName ->; - -/** @internal */ -export const DeprecatedProcessMetricName$inboundSchema: z.ZodType< - DeprecatedProcessMetricName, - z.ZodTypeDef, - unknown -> = z - .union([ - z.nativeEnum(DeprecatedProcessMetricName), - z.string().transform(catchUnrecognizedEnum), - ]); - -/** @internal */ -export const DeprecatedProcessMetricName$outboundSchema: z.ZodType< - DeprecatedProcessMetricName, - z.ZodTypeDef, - DeprecatedProcessMetricName -> = z.union([ - z.nativeEnum(DeprecatedProcessMetricName), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeprecatedProcessMetricName$ { - /** @deprecated use `DeprecatedProcessMetricName$inboundSchema` instead. */ - export const inboundSchema = DeprecatedProcessMetricName$inboundSchema; - /** @deprecated use `DeprecatedProcessMetricName$outboundSchema` instead. */ - export const outboundSchema = DeprecatedProcessMetricName$outboundSchema; -} diff --git a/src/models/components/fleetmetricname.ts b/src/models/components/fleetmetricname.ts deleted file mode 100644 index 8ecf39b1..00000000 --- a/src/models/components/fleetmetricname.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { - catchUnrecognizedEnum, - OpenEnum, - Unrecognized, -} from "../../types/enums.js"; - -export const FleetMetricName = { - ProvisionedTotal: "provisionedTotal", - ProvisionedBareMetal: "provisionedBareMetal", - ProvisionedCloud: "provisionedCloud", - Utilized: "utilized", -} as const; -export type FleetMetricName = OpenEnum; - -/** @internal */ -export const FleetMetricName$inboundSchema: z.ZodType< - FleetMetricName, - z.ZodTypeDef, - unknown -> = z - .union([ - z.nativeEnum(FleetMetricName), - z.string().transform(catchUnrecognizedEnum), - ]); - -/** @internal */ -export const FleetMetricName$outboundSchema: z.ZodType< - FleetMetricName, - z.ZodTypeDef, - FleetMetricName -> = z.union([ - z.nativeEnum(FleetMetricName), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FleetMetricName$ { - /** @deprecated use `FleetMetricName$inboundSchema` instead. */ - export const inboundSchema = FleetMetricName$inboundSchema; - /** @deprecated use `FleetMetricName$outboundSchema` instead. */ - export const outboundSchema = FleetMetricName$outboundSchema; -} diff --git a/src/models/components/fleetmetricsdata.ts b/src/models/components/fleetmetricsdata.ts deleted file mode 100644 index e49aeb0d..00000000 --- a/src/models/components/fleetmetricsdata.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { - MetricValue, - MetricValue$inboundSchema, - MetricValue$Outbound, - MetricValue$outboundSchema, -} from "./metricvalue.js"; - -export type FleetMetricsData = { - utilized?: Array | undefined; - provisionedCloud?: Array | undefined; - provisionedBareMetal?: Array | undefined; - provisionedTotal?: Array | undefined; -}; - -/** @internal */ -export const FleetMetricsData$inboundSchema: z.ZodType< - FleetMetricsData, - z.ZodTypeDef, - unknown -> = z.object({ - utilized: z.array(MetricValue$inboundSchema).optional(), - provisionedCloud: z.array(MetricValue$inboundSchema).optional(), - provisionedBareMetal: z.array(MetricValue$inboundSchema).optional(), - provisionedTotal: z.array(MetricValue$inboundSchema).optional(), -}); - -/** @internal */ -export type FleetMetricsData$Outbound = { - utilized?: Array | undefined; - provisionedCloud?: Array | undefined; - provisionedBareMetal?: Array | undefined; - provisionedTotal?: Array | undefined; -}; - -/** @internal */ -export const FleetMetricsData$outboundSchema: z.ZodType< - FleetMetricsData$Outbound, - z.ZodTypeDef, - FleetMetricsData -> = z.object({ - utilized: z.array(MetricValue$outboundSchema).optional(), - provisionedCloud: z.array(MetricValue$outboundSchema).optional(), - provisionedBareMetal: z.array(MetricValue$outboundSchema).optional(), - provisionedTotal: z.array(MetricValue$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FleetMetricsData$ { - /** @deprecated use `FleetMetricsData$inboundSchema` instead. */ - export const inboundSchema = FleetMetricsData$inboundSchema; - /** @deprecated use `FleetMetricsData$outboundSchema` instead. */ - export const outboundSchema = FleetMetricsData$outboundSchema; - /** @deprecated use `FleetMetricsData$Outbound` instead. */ - export type Outbound = FleetMetricsData$Outbound; -} diff --git a/src/models/components/index.ts b/src/models/components/index.ts index ab122e2e..90fbe915 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -40,12 +40,8 @@ export * from "./deploymentsv3page.js"; export * from "./deploymentv1.js"; export * from "./deploymentv2.js"; export * from "./deploymentv3.js"; -export * from "./deprecatedprocessmetricname.js"; -export * from "./deprecatedprocessmetricsdata.js"; export * from "./exposedport.js"; export * from "./fleet.js"; -export * from "./fleetmetricname.js"; -export * from "./fleetmetricsdata.js"; export * from "./fleetregion.js"; export * from "./fleetregionconfig.js"; export * from "./fleetspage.js"; @@ -59,6 +55,8 @@ export * from "./listorgtokens.js"; export * from "./lobby.js"; export * from "./lobbyv3.js"; export * from "./lobbyvisibility.js"; +export * from "./metricname.js"; +export * from "./metricsdata.js"; export * from "./metricvalue.js"; export * from "./nicknameobject.js"; export * from "./organization.js"; @@ -74,8 +72,6 @@ export * from "./pingendpoints.js"; export * from "./planname.js"; export * from "./playertokenobject.js"; export * from "./process.js"; -export * from "./processmetricname.js"; -export * from "./processmetricsdata.js"; export * from "./processstatus.js"; export * from "./processv2.js"; export * from "./processv3.js"; diff --git a/src/models/components/metricname.ts b/src/models/components/metricname.ts new file mode 100644 index 00000000..eff7062c --- /dev/null +++ b/src/models/components/metricname.ts @@ -0,0 +1,57 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { + catchUnrecognizedEnum, + OpenEnum, + Unrecognized, +} from "../../types/enums.js"; + +/** + * Available metrics to query over time. + */ +export const MetricName = { + Cpu: "cpu", + Memory: "memory", + RateEgress: "rate_egress", + TotalEgress: "total_egress", + ActiveConnections: "active_connections", +} as const; +/** + * Available metrics to query over time. + */ +export type MetricName = OpenEnum; + +/** @internal */ +export const MetricName$inboundSchema: z.ZodType< + MetricName, + z.ZodTypeDef, + unknown +> = z + .union([ + z.nativeEnum(MetricName), + z.string().transform(catchUnrecognizedEnum), + ]); + +/** @internal */ +export const MetricName$outboundSchema: z.ZodType< + MetricName, + z.ZodTypeDef, + MetricName +> = z.union([ + z.nativeEnum(MetricName), + z.string().and(z.custom>()), +]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace MetricName$ { + /** @deprecated use `MetricName$inboundSchema` instead. */ + export const inboundSchema = MetricName$inboundSchema; + /** @deprecated use `MetricName$outboundSchema` instead. */ + export const outboundSchema = MetricName$outboundSchema; +} diff --git a/src/models/components/deprecatedprocessmetricsdata.ts b/src/models/components/metricsdata.ts similarity index 70% rename from src/models/components/deprecatedprocessmetricsdata.ts rename to src/models/components/metricsdata.ts index 5be4d0c8..98a0e2ae 100644 --- a/src/models/components/deprecatedprocessmetricsdata.ts +++ b/src/models/components/metricsdata.ts @@ -11,7 +11,7 @@ import { MetricValue$outboundSchema, } from "./metricvalue.js"; -export type DeprecatedProcessMetricsData = { +export type MetricsData = { activeConnections?: Array | undefined; totalEgress?: Array | undefined; rateEgress?: Array | undefined; @@ -20,8 +20,8 @@ export type DeprecatedProcessMetricsData = { }; /** @internal */ -export const DeprecatedProcessMetricsData$inboundSchema: z.ZodType< - DeprecatedProcessMetricsData, +export const MetricsData$inboundSchema: z.ZodType< + MetricsData, z.ZodTypeDef, unknown > = z.object({ @@ -39,7 +39,7 @@ export const DeprecatedProcessMetricsData$inboundSchema: z.ZodType< }); /** @internal */ -export type DeprecatedProcessMetricsData$Outbound = { +export type MetricsData$Outbound = { active_connections?: Array | undefined; total_egress?: Array | undefined; rate_egress?: Array | undefined; @@ -48,10 +48,10 @@ export type DeprecatedProcessMetricsData$Outbound = { }; /** @internal */ -export const DeprecatedProcessMetricsData$outboundSchema: z.ZodType< - DeprecatedProcessMetricsData$Outbound, +export const MetricsData$outboundSchema: z.ZodType< + MetricsData$Outbound, z.ZodTypeDef, - DeprecatedProcessMetricsData + MetricsData > = z.object({ activeConnections: z.array(MetricValue$outboundSchema).optional(), totalEgress: z.array(MetricValue$outboundSchema).optional(), @@ -70,11 +70,11 @@ export const DeprecatedProcessMetricsData$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace DeprecatedProcessMetricsData$ { - /** @deprecated use `DeprecatedProcessMetricsData$inboundSchema` instead. */ - export const inboundSchema = DeprecatedProcessMetricsData$inboundSchema; - /** @deprecated use `DeprecatedProcessMetricsData$outboundSchema` instead. */ - export const outboundSchema = DeprecatedProcessMetricsData$outboundSchema; - /** @deprecated use `DeprecatedProcessMetricsData$Outbound` instead. */ - export type Outbound = DeprecatedProcessMetricsData$Outbound; +export namespace MetricsData$ { + /** @deprecated use `MetricsData$inboundSchema` instead. */ + export const inboundSchema = MetricsData$inboundSchema; + /** @deprecated use `MetricsData$outboundSchema` instead. */ + export const outboundSchema = MetricsData$outboundSchema; + /** @deprecated use `MetricsData$Outbound` instead. */ + export type Outbound = MetricsData$Outbound; } diff --git a/src/models/components/processmetricname.ts b/src/models/components/processmetricname.ts deleted file mode 100644 index dc5b8a23..00000000 --- a/src/models/components/processmetricname.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { - catchUnrecognizedEnum, - OpenEnum, - Unrecognized, -} from "../../types/enums.js"; - -/** - * Available metrics to query over time. - */ -export const ProcessMetricName = { - Cpu: "cpu", - Memory: "memory", - RateEgress: "rateEgress", - TotalEgress: "totalEgress", - ActiveConnections: "activeConnections", -} as const; -/** - * Available metrics to query over time. - */ -export type ProcessMetricName = OpenEnum; - -/** @internal */ -export const ProcessMetricName$inboundSchema: z.ZodType< - ProcessMetricName, - z.ZodTypeDef, - unknown -> = z - .union([ - z.nativeEnum(ProcessMetricName), - z.string().transform(catchUnrecognizedEnum), - ]); - -/** @internal */ -export const ProcessMetricName$outboundSchema: z.ZodType< - ProcessMetricName, - z.ZodTypeDef, - ProcessMetricName -> = z.union([ - z.nativeEnum(ProcessMetricName), - z.string().and(z.custom>()), -]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProcessMetricName$ { - /** @deprecated use `ProcessMetricName$inboundSchema` instead. */ - export const inboundSchema = ProcessMetricName$inboundSchema; - /** @deprecated use `ProcessMetricName$outboundSchema` instead. */ - export const outboundSchema = ProcessMetricName$outboundSchema; -} diff --git a/src/models/components/processmetricsdata.ts b/src/models/components/processmetricsdata.ts deleted file mode 100644 index c35ea704..00000000 --- a/src/models/components/processmetricsdata.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { - MetricValue, - MetricValue$inboundSchema, - MetricValue$Outbound, - MetricValue$outboundSchema, -} from "./metricvalue.js"; - -export type ProcessMetricsData = { - activeConnections?: Array | undefined; - totalEgress?: Array | undefined; - rateEgress?: Array | undefined; - memory?: Array | undefined; - cpu?: Array | undefined; -}; - -/** @internal */ -export const ProcessMetricsData$inboundSchema: z.ZodType< - ProcessMetricsData, - z.ZodTypeDef, - unknown -> = z.object({ - activeConnections: z.array(MetricValue$inboundSchema).optional(), - totalEgress: z.array(MetricValue$inboundSchema).optional(), - rateEgress: z.array(MetricValue$inboundSchema).optional(), - memory: z.array(MetricValue$inboundSchema).optional(), - cpu: z.array(MetricValue$inboundSchema).optional(), -}); - -/** @internal */ -export type ProcessMetricsData$Outbound = { - activeConnections?: Array | undefined; - totalEgress?: Array | undefined; - rateEgress?: Array | undefined; - memory?: Array | undefined; - cpu?: Array | undefined; -}; - -/** @internal */ -export const ProcessMetricsData$outboundSchema: z.ZodType< - ProcessMetricsData$Outbound, - z.ZodTypeDef, - ProcessMetricsData -> = z.object({ - activeConnections: z.array(MetricValue$outboundSchema).optional(), - totalEgress: z.array(MetricValue$outboundSchema).optional(), - rateEgress: z.array(MetricValue$outboundSchema).optional(), - memory: z.array(MetricValue$outboundSchema).optional(), - cpu: z.array(MetricValue$outboundSchema).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ProcessMetricsData$ { - /** @deprecated use `ProcessMetricsData$inboundSchema` instead. */ - export const inboundSchema = ProcessMetricsData$inboundSchema; - /** @deprecated use `ProcessMetricsData$outboundSchema` instead. */ - export const outboundSchema = ProcessMetricsData$outboundSchema; - /** @deprecated use `ProcessMetricsData$Outbound` instead. */ - export type Outbound = ProcessMetricsData$Outbound; -} diff --git a/src/models/operations/getfleetmetrics.ts b/src/models/operations/getfleetmetrics.ts deleted file mode 100644 index 1cf45a5f..00000000 --- a/src/models/operations/getfleetmetrics.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import * as components from "../components/index.js"; - -export type GetFleetMetricsRequest = { - fleetId: string; - region: components.Region; - /** - * Available metrics to query over time. - */ - metrics?: Array | undefined; - end?: number | undefined; - /** - * Unix timestamp. Default is -1 hour from `end`. - */ - start?: number | undefined; - step?: number | undefined; - orgId?: string | undefined; -}; - -/** @internal */ -export const GetFleetMetricsRequest$inboundSchema: z.ZodType< - GetFleetMetricsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - fleetId: z.string(), - region: components.Region$inboundSchema, - metrics: z.array(components.FleetMetricName$inboundSchema).optional(), - end: z.number().optional(), - start: z.number().optional(), - step: z.number().int().default(60), - orgId: z.string().optional(), -}); - -/** @internal */ -export type GetFleetMetricsRequest$Outbound = { - fleetId: string; - region: string; - metrics?: Array | undefined; - end?: number | undefined; - start?: number | undefined; - step: number; - orgId?: string | undefined; -}; - -/** @internal */ -export const GetFleetMetricsRequest$outboundSchema: z.ZodType< - GetFleetMetricsRequest$Outbound, - z.ZodTypeDef, - GetFleetMetricsRequest -> = z.object({ - fleetId: z.string(), - region: components.Region$outboundSchema, - metrics: z.array(components.FleetMetricName$outboundSchema).optional(), - end: z.number().optional(), - start: z.number().optional(), - step: z.number().int().default(60), - orgId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFleetMetricsRequest$ { - /** @deprecated use `GetFleetMetricsRequest$inboundSchema` instead. */ - export const inboundSchema = GetFleetMetricsRequest$inboundSchema; - /** @deprecated use `GetFleetMetricsRequest$outboundSchema` instead. */ - export const outboundSchema = GetFleetMetricsRequest$outboundSchema; - /** @deprecated use `GetFleetMetricsRequest$Outbound` instead. */ - export type Outbound = GetFleetMetricsRequest$Outbound; -} diff --git a/src/models/operations/getmetrics.ts b/src/models/operations/getmetrics.ts new file mode 100644 index 00000000..0fd3c2d0 --- /dev/null +++ b/src/models/operations/getmetrics.ts @@ -0,0 +1,115 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import * as components from "../components/index.js"; + +export type GetMetricsGlobals = { + appId?: string | undefined; +}; + +export type GetMetricsRequest = { + appId?: string | undefined; + processId: string; + /** + * Available metrics to query over time. + */ + metrics?: Array | undefined; + /** + * Unix timestamp. Default is current time. + */ + end?: number | undefined; + /** + * Unix timestamp. Default is -1 hour from `end`. + */ + start?: number | undefined; + step?: number | undefined; +}; + +/** @internal */ +export const GetMetricsGlobals$inboundSchema: z.ZodType< + GetMetricsGlobals, + z.ZodTypeDef, + unknown +> = z.object({ + appId: z.string().optional(), +}); + +/** @internal */ +export type GetMetricsGlobals$Outbound = { + appId?: string | undefined; +}; + +/** @internal */ +export const GetMetricsGlobals$outboundSchema: z.ZodType< + GetMetricsGlobals$Outbound, + z.ZodTypeDef, + GetMetricsGlobals +> = z.object({ + appId: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMetricsGlobals$ { + /** @deprecated use `GetMetricsGlobals$inboundSchema` instead. */ + export const inboundSchema = GetMetricsGlobals$inboundSchema; + /** @deprecated use `GetMetricsGlobals$outboundSchema` instead. */ + export const outboundSchema = GetMetricsGlobals$outboundSchema; + /** @deprecated use `GetMetricsGlobals$Outbound` instead. */ + export type Outbound = GetMetricsGlobals$Outbound; +} + +/** @internal */ +export const GetMetricsRequest$inboundSchema: z.ZodType< + GetMetricsRequest, + z.ZodTypeDef, + unknown +> = z.object({ + appId: z.string().optional(), + processId: z.string(), + metrics: z.array(components.MetricName$inboundSchema).optional(), + end: z.number().optional(), + start: z.number().optional(), + step: z.number().int().default(60), +}); + +/** @internal */ +export type GetMetricsRequest$Outbound = { + appId?: string | undefined; + processId: string; + metrics?: Array | undefined; + end?: number | undefined; + start?: number | undefined; + step: number; +}; + +/** @internal */ +export const GetMetricsRequest$outboundSchema: z.ZodType< + GetMetricsRequest$Outbound, + z.ZodTypeDef, + GetMetricsRequest +> = z.object({ + appId: z.string().optional(), + processId: z.string(), + metrics: z.array(components.MetricName$outboundSchema).optional(), + end: z.number().optional(), + start: z.number().optional(), + step: z.number().int().default(60), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetMetricsRequest$ { + /** @deprecated use `GetMetricsRequest$inboundSchema` instead. */ + export const inboundSchema = GetMetricsRequest$inboundSchema; + /** @deprecated use `GetMetricsRequest$outboundSchema` instead. */ + export const outboundSchema = GetMetricsRequest$outboundSchema; + /** @deprecated use `GetMetricsRequest$Outbound` instead. */ + export type Outbound = GetMetricsRequest$Outbound; +} diff --git a/src/models/operations/getmetricsdeprecated.ts b/src/models/operations/getmetricsdeprecated.ts deleted file mode 100644 index 283a03b0..00000000 --- a/src/models/operations/getmetricsdeprecated.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import * as components from "../components/index.js"; - -export type GetMetricsDeprecatedGlobals = { - appId?: string | undefined; -}; - -export type GetMetricsDeprecatedRequest = { - appId?: string | undefined; - processId: string; - /** - * Available metrics to query over time. - */ - metrics?: Array | undefined; - /** - * Unix timestamp. Default is current time. - */ - end?: number | undefined; - /** - * Unix timestamp. Default is -1 hour from `end`. - */ - start?: number | undefined; - step?: number | undefined; -}; - -/** @internal */ -export const GetMetricsDeprecatedGlobals$inboundSchema: z.ZodType< - GetMetricsDeprecatedGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type GetMetricsDeprecatedGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const GetMetricsDeprecatedGlobals$outboundSchema: z.ZodType< - GetMetricsDeprecatedGlobals$Outbound, - z.ZodTypeDef, - GetMetricsDeprecatedGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetricsDeprecatedGlobals$ { - /** @deprecated use `GetMetricsDeprecatedGlobals$inboundSchema` instead. */ - export const inboundSchema = GetMetricsDeprecatedGlobals$inboundSchema; - /** @deprecated use `GetMetricsDeprecatedGlobals$outboundSchema` instead. */ - export const outboundSchema = GetMetricsDeprecatedGlobals$outboundSchema; - /** @deprecated use `GetMetricsDeprecatedGlobals$Outbound` instead. */ - export type Outbound = GetMetricsDeprecatedGlobals$Outbound; -} - -/** @internal */ -export const GetMetricsDeprecatedRequest$inboundSchema: z.ZodType< - GetMetricsDeprecatedRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - processId: z.string(), - metrics: z.array(components.DeprecatedProcessMetricName$inboundSchema) - .optional(), - end: z.number().optional(), - start: z.number().optional(), - step: z.number().int().default(60), -}); - -/** @internal */ -export type GetMetricsDeprecatedRequest$Outbound = { - appId?: string | undefined; - processId: string; - metrics?: Array | undefined; - end?: number | undefined; - start?: number | undefined; - step: number; -}; - -/** @internal */ -export const GetMetricsDeprecatedRequest$outboundSchema: z.ZodType< - GetMetricsDeprecatedRequest$Outbound, - z.ZodTypeDef, - GetMetricsDeprecatedRequest -> = z.object({ - appId: z.string().optional(), - processId: z.string(), - metrics: z.array(components.DeprecatedProcessMetricName$outboundSchema) - .optional(), - end: z.number().optional(), - start: z.number().optional(), - step: z.number().int().default(60), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetMetricsDeprecatedRequest$ { - /** @deprecated use `GetMetricsDeprecatedRequest$inboundSchema` instead. */ - export const inboundSchema = GetMetricsDeprecatedRequest$inboundSchema; - /** @deprecated use `GetMetricsDeprecatedRequest$outboundSchema` instead. */ - export const outboundSchema = GetMetricsDeprecatedRequest$outboundSchema; - /** @deprecated use `GetMetricsDeprecatedRequest$Outbound` instead. */ - export type Outbound = GetMetricsDeprecatedRequest$Outbound; -} diff --git a/src/models/operations/getprocessmetrics.ts b/src/models/operations/getprocessmetrics.ts deleted file mode 100644 index d7d8ea23..00000000 --- a/src/models/operations/getprocessmetrics.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import * as components from "../components/index.js"; - -export type GetProcessMetricsGlobals = { - appId?: string | undefined; -}; - -export type GetProcessMetricsRequest = { - appId?: string | undefined; - processId: string; - /** - * Available metrics to query over time. - */ - metrics?: Array | undefined; - /** - * Unix timestamp. Default is current time. - */ - end?: number | undefined; - /** - * Unix timestamp. Default is -1 hour from `end`. - */ - start?: number | undefined; - step?: number | undefined; -}; - -/** @internal */ -export const GetProcessMetricsGlobals$inboundSchema: z.ZodType< - GetProcessMetricsGlobals, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), -}); - -/** @internal */ -export type GetProcessMetricsGlobals$Outbound = { - appId?: string | undefined; -}; - -/** @internal */ -export const GetProcessMetricsGlobals$outboundSchema: z.ZodType< - GetProcessMetricsGlobals$Outbound, - z.ZodTypeDef, - GetProcessMetricsGlobals -> = z.object({ - appId: z.string().optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetProcessMetricsGlobals$ { - /** @deprecated use `GetProcessMetricsGlobals$inboundSchema` instead. */ - export const inboundSchema = GetProcessMetricsGlobals$inboundSchema; - /** @deprecated use `GetProcessMetricsGlobals$outboundSchema` instead. */ - export const outboundSchema = GetProcessMetricsGlobals$outboundSchema; - /** @deprecated use `GetProcessMetricsGlobals$Outbound` instead. */ - export type Outbound = GetProcessMetricsGlobals$Outbound; -} - -/** @internal */ -export const GetProcessMetricsRequest$inboundSchema: z.ZodType< - GetProcessMetricsRequest, - z.ZodTypeDef, - unknown -> = z.object({ - appId: z.string().optional(), - processId: z.string(), - metrics: z.array(components.ProcessMetricName$inboundSchema).optional(), - end: z.number().optional(), - start: z.number().optional(), - step: z.number().int().default(60), -}); - -/** @internal */ -export type GetProcessMetricsRequest$Outbound = { - appId?: string | undefined; - processId: string; - metrics?: Array | undefined; - end?: number | undefined; - start?: number | undefined; - step: number; -}; - -/** @internal */ -export const GetProcessMetricsRequest$outboundSchema: z.ZodType< - GetProcessMetricsRequest$Outbound, - z.ZodTypeDef, - GetProcessMetricsRequest -> = z.object({ - appId: z.string().optional(), - processId: z.string(), - metrics: z.array(components.ProcessMetricName$outboundSchema).optional(), - end: z.number().optional(), - start: z.number().optional(), - step: z.number().int().default(60), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetProcessMetricsRequest$ { - /** @deprecated use `GetProcessMetricsRequest$inboundSchema` instead. */ - export const inboundSchema = GetProcessMetricsRequest$inboundSchema; - /** @deprecated use `GetProcessMetricsRequest$outboundSchema` instead. */ - export const outboundSchema = GetProcessMetricsRequest$outboundSchema; - /** @deprecated use `GetProcessMetricsRequest$Outbound` instead. */ - export type Outbound = GetProcessMetricsRequest$Outbound; -} diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index 19c93e27..4b143080 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -51,7 +51,6 @@ export * from "./getdeploymentinfov2deprecated.js"; export * from "./getdeployments.js"; export * from "./getdeploymentsv1deprecated.js"; export * from "./getdeploymentsv2deprecated.js"; -export * from "./getfleetmetrics.js"; export * from "./getfleetregion.js"; export * from "./getfleets.js"; export * from "./getinactiveroomsforprocess.js"; @@ -67,7 +66,7 @@ export * from "./getlobbyinfobyshortcode.js"; export * from "./getlogsforapp.js"; export * from "./getlogsfordeployment.js"; export * from "./getlogsforprocess.js"; -export * from "./getmetricsdeprecated.js"; +export * from "./getmetrics.js"; export * from "./getorgmembers.js"; export * from "./getorgpendinginvites.js"; export * from "./getorgtokens.js"; @@ -76,7 +75,6 @@ export * from "./getprocessescountexperimental.js"; export * from "./getprocessescountexperimentalv2deprecated.js"; export * from "./getprocessinfodeprecated.js"; export * from "./getprocessinfov2deprecated.js"; -export * from "./getprocessmetrics.js"; export * from "./getroominfo.js"; export * from "./getroominfodeprecated.js"; export * from "./getrunningprocesses.js"; diff --git a/src/sdk/fleetsv1.ts b/src/sdk/fleetsv1.ts index 7096192a..84599836 100644 --- a/src/sdk/fleetsv1.ts +++ b/src/sdk/fleetsv1.ts @@ -2,19 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { fleetsV1GetFleetMetrics } from "../funcs/fleetsV1GetFleetMetrics.js"; import { fleetsV1GetFleetRegion } from "../funcs/fleetsV1GetFleetRegion.js"; import { fleetsV1GetFleets } from "../funcs/fleetsV1GetFleets.js"; import { fleetsV1UpdateFleetRegion } from "../funcs/fleetsV1UpdateFleetRegion.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class FleetsV1 extends ClientSDK { - /** - * Returns an array of [fleets](https://hathora.dev/docs/concepts/hathora-entities#fleet). - */ async getFleets( orgId?: string | undefined, options?: RequestOptions, @@ -26,9 +21,6 @@ export class FleetsV1 extends ClientSDK { )); } - /** - * Gets the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. - */ async getFleetRegion( fleetId: string, region: components.Region, @@ -44,9 +36,6 @@ export class FleetsV1 extends ClientSDK { )); } - /** - * Updates the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. - */ async updateFleetRegion( fleetRegionConfig: components.FleetRegionConfig, fleetId: string, @@ -63,18 +52,4 @@ export class FleetsV1 extends ClientSDK { options, )); } - - /** - * Gets metrics for a [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. - */ - async getFleetMetrics( - request: operations.GetFleetMetricsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(fleetsV1GetFleetMetrics( - this, - request, - options, - )); - } } diff --git a/src/sdk/metricsv1.ts b/src/sdk/metricsv1.ts index 339cd95c..46c79710 100644 --- a/src/sdk/metricsv1.ts +++ b/src/sdk/metricsv1.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { metricsV1GetMetricsDeprecated } from "../funcs/metricsV1GetMetricsDeprecated.js"; +import { metricsV1GetMetrics } from "../funcs/metricsV1GetMetrics.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; @@ -11,14 +11,12 @@ import { unwrapAsync } from "../types/fp.js"; export class MetricsV1 extends ClientSDK { /** * Get metrics for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. - * - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ - async getMetricsDeprecated( - request: operations.GetMetricsDeprecatedRequest, + async getMetrics( + request: operations.GetMetricsRequest, options?: RequestOptions, - ): Promise { - return unwrapAsync(metricsV1GetMetricsDeprecated( + ): Promise { + return unwrapAsync(metricsV1GetMetrics( this, request, options, diff --git a/src/sdk/processesv3.ts b/src/sdk/processesv3.ts index a2dcb58a..6568c0b0 100644 --- a/src/sdk/processesv3.ts +++ b/src/sdk/processesv3.ts @@ -6,7 +6,6 @@ import { processesV3CreateProcess } from "../funcs/processesV3CreateProcess.js"; import { processesV3GetLatestProcesses } from "../funcs/processesV3GetLatestProcesses.js"; import { processesV3GetProcess } from "../funcs/processesV3GetProcess.js"; import { processesV3GetProcessesCountExperimental } from "../funcs/processesV3GetProcessesCountExperimental.js"; -import { processesV3GetProcessMetrics } from "../funcs/processesV3GetProcessMetrics.js"; import { processesV3StopProcess } from "../funcs/processesV3StopProcess.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; @@ -97,15 +96,4 @@ export class ProcessesV3 extends ClientSDK { options, )); } - - async getProcessMetrics( - request: operations.GetProcessMetricsRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(processesV3GetProcessMetrics( - this, - request, - options, - )); - } }