Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.420.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Oct 23, 2024
1 parent d1e8c51 commit 0e479c0
Show file tree
Hide file tree
Showing 117 changed files with 494 additions and 1,563 deletions.
20 changes: 7 additions & 13 deletions .speakeasy/codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,6 @@ actions:
- "lang": "typescript"
"label": "UpdateFleetRegion"
"source": "import { HathoraCloud } from \"@hathora/cloud-sdk-typescript\";\n\nconst hathoraCloud = new HathoraCloud({\n hathoraDevToken: \"<YOUR_BEARER_TOKEN_HERE>\",\n appId: \"app-af469a92-5b45-4565-b3c4-b79878de67d2\",\n});\n\nasync function run() {\n await hathoraCloud.fleetsV1.updateFleetRegion({\n cloudMinVcpus: 511402,\n }, \"<id>\", \"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: \"<YOUR_BEARER_TOKEN_HERE>\",\n appId: \"app-af469a92-5b45-4565-b3c4-b79878de67d2\",\n});\n\nasync function run() {\n const result = await hathoraCloud.fleetsV1.getFleetMetrics({\n fleetId: \"<id>\",\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":
Expand Down Expand Up @@ -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: \"<id>\",\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: \"<YOUR_BEARER_TOKEN_HERE>\",\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":
Expand Down Expand Up @@ -273,12 +273,6 @@ actions:
- "lang": "typescript"
"label": "GetLatestProcesses"
"source": "import { HathoraCloud } from \"@hathora/cloud-sdk-typescript\";\n\nconst hathoraCloud = new HathoraCloud({\n hathoraDevToken: \"<YOUR_BEARER_TOKEN_HERE>\",\n appId: \"app-af469a92-5b45-4565-b3c4-b79878de67d2\",\n});\n\nasync function run() {\n const result = await hathoraCloud.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: \"<YOUR_BEARER_TOKEN_HERE>\",\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":
Expand Down Expand Up @@ -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: \"<YOUR_BEARER_TOKEN_HERE>\",\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: \"<YOUR_BEARER_TOKEN_HERE>\",\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":
Expand Down
45 changes: 15 additions & 30 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 1b06df09-5141-4b14-b0b7-5415dbf16cfb
management:
docChecksum: 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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"}
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.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
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
Expand Down
Loading

0 comments on commit 0e479c0

Please sign in to comment.