Skip to content

Commit

Permalink
Merge pull request #42 from hathora/speakeasy-sdk-regen-1722384668
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 2.7.0
  • Loading branch information
gwprice115 authored Aug 9, 2024
2 parents 6d48226 + 4aafe30 commit 48c9b0b
Show file tree
Hide file tree
Showing 152 changed files with 13,561 additions and 7,572 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/funcs
/core.*
/esm
/dist
/.tshy
Expand Down
516 changes: 258 additions & 258 deletions .speakeasy/codeSamples.yaml

Large diffs are not rendered by default.

109 changes: 100 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
lockVersion: 2.0.0
id: 1b06df09-5141-4b14-b0b7-5415dbf16cfb
management:
docChecksum: 9693400bd2402c6676bcfe1e754f6fd4
docChecksum: 639bc4c022948c3e348effb9c6feaabc
docVersion: 0.0.1
speakeasyVersion: 1.348.1
generationVersion: 2.380.1
releaseVersion: 2.6.0
configChecksum: 92a97213cf01507ef39218d9e1ba565a
speakeasyVersion: 1.358.0
generationVersion: 2.390.6
releaseVersion: 2.7.0
configChecksum: 6d7d9ce2663d1c979364469a80a2f1c3
repoURL: https://github.com/hathora/cloud-sdk-typescript.git
installationURL: https://github.com/hathora/cloud-sdk-typescript
published: true
features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.5
core: 3.11.11
constsAndDefaults: 0.1.6
core: 3.12.3
defaultEnabledRetries: 0.1.0
deprecations: 2.81.1
downloadStreams: 0.1.1
envVarSecurityUsage: 0.1.0
envVarSecurityUsage: 0.1.1
flattening: 2.81.1
globalSecurity: 2.82.9
globalSecurity: 2.82.11
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
globalServerURLs: 2.82.4
Expand All @@ -34,6 +34,92 @@ features:
sdkHooks: 0.1.0
unions: 2.85.6
generatedFiles:
- src/funcs/tokensV1GetOrgTokens.ts
- src/funcs/tokensV1CreateOrgToken.ts
- src/funcs/tokensV1RevokeOrgToken.ts
- src/funcs/roomsV1CreateRoomDeprecated.ts
- src/funcs/roomsV1GetRoomInfoDeprecated.ts
- src/funcs/roomsV1GetActiveRoomsForProcessDeprecated.ts
- src/funcs/roomsV1GetInactiveRoomsForProcessDeprecated.ts
- src/funcs/roomsV1DestroyRoomDeprecated.ts
- src/funcs/roomsV1SuspendRoomDeprecated.ts
- src/funcs/roomsV1GetConnectionInfoDeprecated.ts
- src/funcs/roomsV2CreateRoom.ts
- src/funcs/roomsV2GetRoomInfo.ts
- src/funcs/roomsV2GetActiveRoomsForProcess.ts
- src/funcs/roomsV2GetInactiveRoomsForProcess.ts
- src/funcs/roomsV2DestroyRoom.ts
- src/funcs/roomsV2SuspendRoomV2Deprecated.ts
- src/funcs/roomsV2GetConnectionInfo.ts
- src/funcs/roomsV2UpdateRoomConfig.ts
- src/funcs/processesV1GetRunningProcesses.ts
- src/funcs/processesV1GetStoppedProcesses.ts
- src/funcs/processesV1GetProcessInfoDeprecated.ts
- src/funcs/processesV2GetProcessInfo.ts
- src/funcs/processesV2GetLatestProcesses.ts
- src/funcs/processesV2StopProcess.ts
- src/funcs/processesV2CreateProcess.ts
- src/funcs/organizationsV1GetOrgs.ts
- src/funcs/organizationsV1GetUserPendingInvites.ts
- src/funcs/organizationsV1GetOrgMembers.ts
- src/funcs/organizationsV1InviteUser.ts
- src/funcs/organizationsV1RescindInvite.ts
- src/funcs/organizationsV1GetOrgPendingInvites.ts
- src/funcs/organizationsV1AcceptInvite.ts
- src/funcs/organizationsV1RejectInvite.ts
- src/funcs/metricsV1GetMetrics.ts
- src/funcs/managementV1SendVerificationEmail.ts
- src/funcs/logsV1GetLogsForApp.ts
- src/funcs/logsV1GetLogsForProcess.ts
- src/funcs/logsV1DownloadLogForProcess.ts
- src/funcs/logsV1GetLogsForDeployment.ts
- src/funcs/lobbiesV1CreatePrivateLobbyDeprecated.ts
- src/funcs/lobbiesV1CreatePublicLobbyDeprecated.ts
- src/funcs/lobbiesV1ListActivePublicLobbiesDeprecatedV1.ts
- src/funcs/lobbiesV2CreatePrivateLobby.ts
- src/funcs/lobbiesV2CreatePublicLobby.ts
- src/funcs/lobbiesV2CreateLocalLobby.ts
- src/funcs/lobbiesV2CreateLobbyDeprecated.ts
- src/funcs/lobbiesV2ListActivePublicLobbiesDeprecatedV2.ts
- src/funcs/lobbiesV2GetLobbyInfo.ts
- src/funcs/lobbiesV2SetLobbyState.ts
- src/funcs/lobbiesV3CreateLobby.ts
- src/funcs/lobbiesV3ListActivePublicLobbies.ts
- src/funcs/lobbiesV3GetLobbyInfoByRoomId.ts
- src/funcs/lobbiesV3GetLobbyInfoByShortCode.ts
- src/funcs/discoveryV1GetPingServiceEndpointsDeprecated.ts
- src/funcs/discoveryV2GetPingServiceEndpoints.ts
- src/funcs/deploymentsV1GetDeploymentsDeprecated.ts
- src/funcs/deploymentsV1GetLatestDeploymentDeprecated.ts
- src/funcs/deploymentsV1GetDeploymentInfoDeprecated.ts
- src/funcs/deploymentsV1CreateDeploymentDeprecated.ts
- src/funcs/deploymentsV2GetDeployments.ts
- src/funcs/deploymentsV2GetLatestDeployment.ts
- src/funcs/deploymentsV2GetDeploymentInfo.ts
- src/funcs/deploymentsV2CreateDeployment.ts
- src/funcs/buildsV1GetBuildsDeprecated.ts
- src/funcs/buildsV1GetBuildInfoDeprecated.ts
- src/funcs/buildsV1CreateBuildDeprecated.ts
- src/funcs/buildsV1DeleteBuildDeprecated.ts
- src/funcs/buildsV1RunBuildDeprecated.ts
- src/funcs/buildsV2GetBuilds.ts
- src/funcs/buildsV2GetBuildInfo.ts
- src/funcs/buildsV2CreateBuild.ts
- src/funcs/buildsV2CreateBuildWithUploadUrl.ts
- src/funcs/buildsV2DeleteBuild.ts
- src/funcs/buildsV2RunBuild.ts
- src/funcs/billingV1GetBalance.ts
- src/funcs/billingV1GetPaymentMethod.ts
- src/funcs/billingV1InitStripeCustomerPortalUrl.ts
- src/funcs/billingV1GetInvoices.ts
- src/funcs/authV1LoginAnonymous.ts
- src/funcs/authV1LoginNickname.ts
- src/funcs/authV1LoginGoogle.ts
- src/funcs/appsV1GetApps.ts
- src/funcs/appsV1CreateApp.ts
- src/funcs/appsV1UpdateApp.ts
- src/funcs/appsV1GetAppInfo.ts
- src/funcs/appsV1DeleteApp.ts
- src/sdk/tokensv1.ts
- src/sdk/roomsv1.ts
- src/sdk/roomsv2.ts
Expand Down Expand Up @@ -61,24 +147,28 @@ generatedFiles:
- RUNTIMES.md
- jsr.json
- package.json
- src/core.ts
- src/index.ts
- src/lib/base64.ts
- src/lib/config.ts
- src/lib/dlv.ts
- src/lib/encodings.ts
- src/lib/http.ts
- src/lib/is-plain-object.ts
- src/lib/matchers.ts
- src/lib/primitives.ts
- src/lib/retries.ts
- src/lib/schemas.ts
- src/lib/sdks.ts
- src/lib/security.ts
- src/lib/url.ts
- src/sdk/index.ts
- src/models/errors/httpclienterrors.ts
- src/models/errors/sdkerror.ts
- src/models/errors/sdkvalidationerror.ts
- src/types/blobs.ts
- src/types/enums.ts
- src/types/fp.ts
- src/types/index.ts
- src/types/operations.ts
- src/types/rfcdate.ts
Expand Down Expand Up @@ -244,6 +334,7 @@ generatedFiles:
- docs/models/components/room.md
- docs/models/components/roomallocation.md
- docs/models/components/roomstatus.md
- docs/models/components/roomwithoutallocationscurrentallocation.md
- docs/models/components/roomwithoutallocations.md
- docs/models/components/connectioninfo.md
- docs/models/components/status.md
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.348.1
speakeasyVersion: 1.358.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:93b0dbf1e949e0c5e7deedcb8a7b05b0087008a769a89b1fa33e527d9e285556
sourceBlobDigest: sha256:199895b39e530fc126270068cf16bcfdac7a8c47324037ac4b3a893c87b27fe6
sourceRevisionDigest: sha256:32664308b92c7dcc7aa90de891b47669aa2e1fcbf4f9216637143174ab65eb34
sourceBlobDigest: sha256:8ffbea6144e27a6ba42d7fd31953b42c1eb62d37d0bddd0813e07496a1d50093
tags:
- latest
- main
targets:
hathora-typescript:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:93b0dbf1e949e0c5e7deedcb8a7b05b0087008a769a89b1fa33e527d9e285556
sourceBlobDigest: sha256:199895b39e530fc126270068cf16bcfdac7a8c47324037ac4b3a893c87b27fe6
sourceRevisionDigest: sha256:32664308b92c7dcc7aa90de891b47669aa2e1fcbf4f9216637143174ab65eb34
sourceBlobDigest: sha256:8ffbea6144e27a6ba42d7fd31953b42c1eb62d37d0bddd0813e07496a1d50093
codeSamplesNamespace: code-samples-typescript-hathora-typescript
codeSamplesRevisionDigest: sha256:ba3d94caffacaadaa08b91d2a4f5afdfe458c54e0fa39bd4030672e61f04282d
codeSamplesRevisionDigest: sha256:456c248ca67dad18dbaaa0678aaf48ddf63437564d72bd5fa1532e5c0f2de6ac
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ yarn add @hathora/cloud-sdk-typescript zod
import { HathoraCloud } from "@hathora/cloud-sdk-typescript";

const hathoraCloud = new HathoraCloud({
hathoraDevToken: process.env.HATHORA_DEV_TOKEN,
hathoraDevToken: "<YOUR_BEARER_TOKEN_HERE>",
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
});

Expand Down Expand Up @@ -242,7 +242,7 @@ import { HathoraCloud } from "@hathora/cloud-sdk-typescript";
import { SDKValidationError } from "@hathora/cloud-sdk-typescript/models/errors";

const hathoraCloud = new HathoraCloud({
hathoraDevToken: process.env.HATHORA_DEV_TOKEN,
hathoraDevToken: "<YOUR_BEARER_TOKEN_HERE>",
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
});

Expand Down Expand Up @@ -299,7 +299,7 @@ import { HathoraCloud } from "@hathora/cloud-sdk-typescript";

const hathoraCloud = new HathoraCloud({
serverIdx: 1,
hathoraDevToken: process.env.HATHORA_DEV_TOKEN,
hathoraDevToken: "<YOUR_BEARER_TOKEN_HERE>",
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
});

Expand All @@ -326,7 +326,7 @@ import { HathoraCloud } from "@hathora/cloud-sdk-typescript";

const hathoraCloud = new HathoraCloud({
serverURL: "https://api.hathora.dev",
hathoraDevToken: process.env.HATHORA_DEV_TOKEN,
hathoraDevToken: "<YOUR_BEARER_TOKEN_HERE>",
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
});

Expand Down Expand Up @@ -413,7 +413,7 @@ To authenticate with the API the `hathoraDevToken` parameter must be set when in
import { HathoraCloud } from "@hathora/cloud-sdk-typescript";

const hathoraCloud = new HathoraCloud({
hathoraDevToken: process.env.HATHORA_DEV_TOKEN,
hathoraDevToken: "<YOUR_BEARER_TOKEN_HERE>",
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
});

Expand Down Expand Up @@ -443,11 +443,9 @@ const hathoraCloud = new HathoraCloud({
async function run() {
const result = await hathoraCloud.lobbiesV1.createPrivateLobbyDeprecated(
{
playerAuth: process.env.PLAYER_AUTH,
playerAuth: "<YOUR_BEARER_TOKEN_HERE>",
},
"app-af469a92-5b45-4565-b3c4-b79878de67d2",
"London",
false
"app-af469a92-5b45-4565-b3c4-b79878de67d2"
);

// Handle the result
Expand Down Expand Up @@ -484,7 +482,7 @@ The following global parameter is available.
import { HathoraCloud } from "@hathora/cloud-sdk-typescript";

const hathoraCloud = new HathoraCloud({
hathoraDevToken: process.env.HATHORA_DEV_TOKEN,
hathoraDevToken: "<YOUR_BEARER_TOKEN_HERE>",
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
});

Expand Down Expand Up @@ -532,7 +530,7 @@ import { HathoraCloud } from "@hathora/cloud-sdk-typescript";
import { openAsBlob } from "node:fs";

const hathoraCloud = new HathoraCloud({
hathoraDevToken: process.env.HATHORA_DEV_TOKEN,
hathoraDevToken: "<YOUR_BEARER_TOKEN_HERE>",
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
});

Expand Down Expand Up @@ -564,7 +562,7 @@ To change the default retry strategy for a single API call, simply provide a ret
import { HathoraCloud } from "@hathora/cloud-sdk-typescript";

const hathoraCloud = new HathoraCloud({
hathoraDevToken: process.env.HATHORA_DEV_TOKEN,
hathoraDevToken: "<YOUR_BEARER_TOKEN_HERE>",
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
});

Expand Down Expand Up @@ -608,7 +606,7 @@ const hathoraCloud = new HathoraCloud({
},
retryConnectionErrors: false,
},
hathoraDevToken: process.env.HATHORA_DEV_TOKEN,
hathoraDevToken: "<YOUR_BEARER_TOKEN_HERE>",
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
});

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -570,4 +570,14 @@ Based on:
### Generated
- [typescript v2.6.0] .
### Releases
- [NPM v2.6.0] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.6.0 - .
- [NPM v2.6.0] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.6.0 - .

## 2024-08-09 00:13:38
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.358.0 (2.390.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v2.7.0] .
### Releases
- [NPM v2.7.0] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.7.0 - .
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { HathoraCloud } from "@hathora/cloud-sdk-typescript";

const hathoraCloud = new HathoraCloud({
hathoraDevToken: process.env.HATHORA_DEV_TOKEN,
hathoraDevToken: "<YOUR_BEARER_TOKEN_HERE>",
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
});

Expand Down
12 changes: 5 additions & 7 deletions docs/models/components/metricsdata.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# MetricsData

Construct a type with a set of properties K of type T


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ |
| `cpu` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_check_mark: | N/A |
| `memory` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_check_mark: | N/A |
| `rateEgress` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_check_mark: | N/A |
| `totalEgress` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_check_mark: | N/A |
| `activeConnections` | [components.MetricValue](../../models/components/metricvalue.md)[] | :heavy_check_mark: | N/A |
| `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 |
Loading

0 comments on commit 48c9b0b

Please sign in to comment.