Skip to content

Commit ddf421b

Browse files
authored
Merge pull request #33 from hathora/speakeasy-sdk-regen-1718755959
chore: 🐝 Update SDK - Generate
2 parents bcd39c3 + 3ee57b8 commit ddf421b

File tree

163 files changed

+1581
-1160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+1581
-1160
lines changed
File renamed without changes.

.speakeasy/codeSamples.yaml

Lines changed: 426 additions & 405 deletions
Large diffs are not rendered by default.

.speakeasy/gen.lock

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: 1b06df09-5141-4b14-b0b7-5415dbf16cfb
33
management:
4-
docChecksum: 53e36cebc1d6ed2da766af26147d99c1
4+
docChecksum: b23bc3f0fcf53aed56d191405da129f6
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.308.1
7-
generationVersion: 2.342.6
8-
releaseVersion: 2.3.2
9-
configChecksum: 64dc66d7182dd879269625a46d774d00
6+
speakeasyVersion: 1.310.0
7+
generationVersion: 2.347.4
8+
releaseVersion: 2.4.0
9+
configChecksum: a99a82350801aa36fa385ae0305df76f
1010
repoURL: https://github.com/hathora/cloud-sdk-typescript.git
1111
installationURL: https://github.com/hathora/cloud-sdk-typescript
1212
published: true
1313
features:
1414
typescript:
1515
additionalDependencies: 0.1.0
1616
constsAndDefaults: 0.1.5
17-
core: 3.9.14
17+
core: 3.10.0
1818
deprecations: 2.81.1
1919
downloadStreams: 0.1.1
2020
flattening: 2.81.1
@@ -53,7 +53,7 @@ generatedFiles:
5353
- src/sdk/roomsv2.ts
5454
- src/sdk/tokensv1.ts
5555
- src/sdk/sdk.ts
56-
- .eslintrc.js
56+
- .eslintrc.cjs
5757
- .npmignore
5858
- RUNTIMES.md
5959
- jsr.json
@@ -121,6 +121,8 @@ generatedFiles:
121121
- src/models/components/metricname.ts
122122
- src/models/components/orgspage.ts
123123
- src/models/components/organization.ts
124+
- src/models/components/orgmemberspage.ts
125+
- src/models/components/orgmember.ts
124126
- src/models/components/orgpermission.ts
125127
- src/models/components/organizationinvitestatus.ts
126128
- src/models/components/invitestatuspending.ts
@@ -198,6 +200,7 @@ generatedFiles:
198200
- src/models/operations/downloadlogforprocess.ts
199201
- src/models/operations/getlogsfordeployment.ts
200202
- src/models/operations/getmetrics.ts
203+
- src/models/operations/getorgmembers.ts
201204
- src/models/operations/inviteuser.ts
202205
- src/models/operations/rescindinvite.ts
203206
- src/models/operations/getorgpendinginvites.ts
@@ -286,6 +289,8 @@ generatedFiles:
286289
- docs/models/components/metricname.md
287290
- docs/models/components/orgspage.md
288291
- docs/models/components/organization.md
292+
- docs/models/components/orgmemberspage.md
293+
- docs/models/components/orgmember.md
289294
- docs/models/components/orgpermission.md
290295
- docs/models/components/organizationinvitestatus.md
291296
- docs/models/components/type.md
@@ -432,6 +437,7 @@ generatedFiles:
432437
- docs/models/operations/getlogsfordeploymentrequest.md
433438
- docs/models/operations/getmetricsglobals.md
434439
- docs/models/operations/getmetricsrequest.md
440+
- docs/models/operations/getorgmembersrequest.md
435441
- docs/models/operations/inviteuserrequest.md
436442
- docs/models/operations/rescindinviterequest.md
437443
- docs/models/operations/getorgpendinginvitesrequest.md

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.308.1
1+
speakeasyVersion: 1.310.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:436e09801b37a6004b5c5163b6832d7fc58547591b708f550e7ddf00b112bcca
6-
sourceBlobDigest: sha256:33e83b2f97ed18e394b65a9a700f6eeb29685f42d6aeef7189d8707b16a54e5d
5+
sourceRevisionDigest: sha256:f506622ec98c2539ef8b18012e57bc0e72fcd6895f6b8a8de590c996362d7ea0
6+
sourceBlobDigest: sha256:e777a220587b9989184dceb142228717e0e27173a03e932ed542212bf696798d
77
tags:
88
- latest
99
- main
1010
targets:
1111
hathora-typescript:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:436e09801b37a6004b5c5163b6832d7fc58547591b708f550e7ddf00b112bcca
15-
sourceBlobDigest: sha256:33e83b2f97ed18e394b65a9a700f6eeb29685f42d6aeef7189d8707b16a54e5d
14+
sourceRevisionDigest: sha256:f506622ec98c2539ef8b18012e57bc0e72fcd6895f6b8a8de590c996362d7ea0
15+
sourceBlobDigest: sha256:e777a220587b9989184dceb142228717e0e27173a03e932ed542212bf696798d
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,25 @@
1616
npm add @hathora/cloud-sdk-typescript
1717
```
1818

19+
### PNPM
20+
21+
```bash
22+
pnpm add @hathora/cloud-sdk-typescript
23+
```
24+
25+
### Bun
26+
27+
```bash
28+
bun add @hathora/cloud-sdk-typescript
29+
```
30+
1931
### Yarn
2032

2133
```bash
22-
yarn add @hathora/cloud-sdk-typescript
34+
yarn add @hathora/cloud-sdk-typescript zod
35+
36+
# Note that Yarn does not install peer dependencies automatically. You will need
37+
# to install zod as shown above.
2338
```
2439
<!-- End SDK Installation [installation] -->
2540

@@ -152,6 +167,7 @@ run();
152167
### [organizationsV1](docs/sdks/organizationsv1/README.md)
153168

154169
* [getOrgs](docs/sdks/organizationsv1/README.md#getorgs) - Returns an unsorted list of all organizations that you are a member of (an accepted membership invite). An organization is uniquely identified by an `orgId`.
170+
* [getOrgMembers](docs/sdks/organizationsv1/README.md#getorgmembers)
155171
* [inviteUser](docs/sdks/organizationsv1/README.md#inviteuser)
156172
* [rescindInvite](docs/sdks/organizationsv1/README.md#rescindinvite)
157173
* [getOrgPendingInvites](docs/sdks/organizationsv1/README.md#getorgpendinginvites)
@@ -213,15 +229,15 @@ All SDK methods return a response object or throw an error. If Error objects are
213229

214230
| Error Object | Status Code | Content Type |
215231
| ---------------- | ---------------- | ---------------- |
216-
| errors.ApiError | 401 | application/json |
232+
| errors.ApiError | 401,429 | application/json |
217233
| errors.SDKError | 4xx-5xx | */* |
218234

219235
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
220236

221237

222238
```typescript
223239
import { HathoraCloud } from "@hathora/cloud-sdk-typescript";
224-
import * as errors from "@hathora/cloud-sdk-typescript/models/errors";
240+
import { SDKValidationError } from "@hathora/cloud-sdk-typescript/models/errors";
225241

226242
const hathoraCloud = new HathoraCloud({
227243
hathoraDevToken: "<YOUR_BEARER_TOKEN_HERE>",
@@ -234,7 +250,7 @@ async function run() {
234250
result = await hathoraCloud.appsV1.getApps();
235251
} catch (err) {
236252
switch (true) {
237-
case err instanceof errors.SDKValidationError: {
253+
case err instanceof SDKValidationError: {
238254
// Validation errors can be pretty-printed
239255
console.error(err.pretty());
240256
// Raw value may also be inspected

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,4 +490,14 @@ Based on:
490490
### Generated
491491
- [typescript v2.3.2] .
492492
### Releases
493-
- [NPM v2.3.2] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.3.2 - .
493+
- [NPM v2.3.2] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.3.2 - .
494+
495+
## 2024-06-20 00:12:15
496+
### Changes
497+
Based on:
498+
- OpenAPI Doc
499+
- Speakeasy CLI 1.310.0 (2.347.4) https://github.com/speakeasy-api/speakeasy
500+
### Generated
501+
- [typescript v2.4.0] .
502+
### Releases
503+
- [NPM v2.4.0] https://www.npmjs.com/package/@hathora/cloud-sdk-typescript/v/2.4.0 - .

docs/models/components/connectioninfo.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,18 @@
22

33
Connection information to the default port.
44

5+
6+
## Supported Types
7+
8+
### `components.StartingConnectionInfo`
9+
10+
```typescript
11+
const value: components.StartingConnectionInfo = /* values here */
12+
```
13+
14+
### `components.ActiveConnectionInfo`
15+
16+
```typescript
17+
const value: components.ActiveConnectionInfo = /* values here */
18+
```
19+

docs/models/components/createdby.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,18 @@
22

33
UserId or email address for the user that created the lobby.
44

5+
6+
## Supported Types
7+
8+
### `string`
9+
10+
```typescript
11+
const value: string = /* values here */
12+
```
13+
14+
### `number`
15+
16+
```typescript
17+
const value: number = /* values here */
18+
```
19+

docs/models/components/lobbyv3createdby.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,18 @@
22

33
UserId or email address for the user that created the lobby.
44

5+
6+
## Supported Types
7+
8+
### `string`
9+
10+
```typescript
11+
const value: string = /* values here */
12+
```
13+
14+
### `number`
15+
16+
```typescript
17+
const value: number = /* values here */
18+
```
19+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
11
# OrganizationInviteStatus
22

3+
4+
## Supported Types
5+
6+
### `components.InviteStatusPending`
7+
8+
```typescript
9+
const value: components.InviteStatusPending = /* values here */
10+
```
11+
12+
### `components.InviteStatusAccepted`
13+
14+
```typescript
15+
const value: components.InviteStatusAccepted = /* values here */
16+
```
17+
18+
### `components.InviteStatusRejected`
19+
20+
```typescript
21+
const value: components.InviteStatusRejected = /* values here */
22+
```
23+
24+
### `components.InviteStatusRescinded`
25+
26+
```typescript
27+
const value: components.InviteStatusRescinded = /* values here */
28+
```
29+

docs/models/components/orgmember.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# OrgMember
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
8+
| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A | |
9+
| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A | |
10+
| `invitedBy` | *string* | :heavy_check_mark: | System generated unique identifier for a user. Not guaranteed to have a specific format. | auth0\|646bdf96f7fb73d04c8c84db |
11+
| `userId` | *string* | :heavy_check_mark: | System generated unique identifier for a user. Not guaranteed to have a specific format. | auth0\|646bdf96f7fb73d04c8c84db |
12+
| `orgId` | *string* | :heavy_check_mark: | System generated unique identifier for an organization. Not guaranteed to have a specific format. | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# OrgMembersPage
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
8+
| `members` | [components.OrgMember](../../models/components/orgmember.md)[] | :heavy_check_mark: | N/A |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# GetOrgMembersRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
8+
| `orgId` | *string* | :heavy_check_mark: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |

docs/sdks/appsv1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ run();
4848

4949
| Error Object | Status Code | Content Type |
5050
| ---------------- | ---------------- | ---------------- |
51-
| errors.ApiError | 401 | application/json |
51+
| errors.ApiError | 401,429 | application/json |
5252
| errors.SDKError | 4xx-5xx | */* |
5353

5454
## createApp
@@ -184,7 +184,7 @@ run();
184184

185185
| Error Object | Status Code | Content Type |
186186
| ---------------- | ---------------- | ---------------- |
187-
| errors.ApiError | 401,404 | application/json |
187+
| errors.ApiError | 401,404,429 | application/json |
188188
| errors.SDKError | 4xx-5xx | */* |
189189

190190
## deleteApp

docs/sdks/authv1/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ run();
5050

5151
| Error Object | Status Code | Content Type |
5252
| ---------------- | ---------------- | ---------------- |
53-
| errors.ApiError | 404 | application/json |
53+
| errors.ApiError | 404,429 | application/json |
5454
| errors.SDKError | 4xx-5xx | */* |
5555

5656
## loginNickname
@@ -95,7 +95,7 @@ run();
9595

9696
| Error Object | Status Code | Content Type |
9797
| ---------------- | ---------------- | ---------------- |
98-
| errors.ApiError | 404 | application/json |
98+
| errors.ApiError | 404,429 | application/json |
9999
| errors.SDKError | 4xx-5xx | */* |
100100

101101
## loginGoogle
@@ -140,5 +140,5 @@ run();
140140

141141
| Error Object | Status Code | Content Type |
142142
| ---------------- | ---------------- | ---------------- |
143-
| errors.ApiError | 401,404 | application/json |
143+
| errors.ApiError | 401,404,429 | application/json |
144144
| errors.SDKError | 4xx-5xx | */* |

docs/sdks/billingv1/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ run();
4949

5050
| Error Object | Status Code | Content Type |
5151
| ---------------- | ---------------- | ---------------- |
52-
| errors.ApiError | 401,404 | application/json |
52+
| errors.ApiError | 401,404,429 | application/json |
5353
| errors.SDKError | 4xx-5xx | */* |
5454

5555
## getPaymentMethod
@@ -89,7 +89,7 @@ run();
8989

9090
| Error Object | Status Code | Content Type |
9191
| ---------------- | ---------------- | ---------------- |
92-
| errors.ApiError | 401,404,500 | application/json |
92+
| errors.ApiError | 401,404,429,500 | application/json |
9393
| errors.SDKError | 4xx-5xx | */* |
9494

9595
## initStripeCustomerPortalUrl
@@ -172,5 +172,5 @@ run();
172172

173173
| Error Object | Status Code | Content Type |
174174
| ---------------- | ---------------- | ---------------- |
175-
| errors.ApiError | 401,404 | application/json |
175+
| errors.ApiError | 401,404,429 | application/json |
176176
| errors.SDKError | 4xx-5xx | */* |

docs/sdks/buildsv1/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ run();
5151

5252
| Error Object | Status Code | Content Type |
5353
| ---------------- | ---------------- | ---------------- |
54-
| errors.ApiError | 401,404 | application/json |
54+
| errors.ApiError | 401,404,429 | application/json |
5555
| errors.SDKError | 4xx-5xx | */* |
5656

5757
## ~~getBuildInfoDeprecated~~
@@ -97,7 +97,7 @@ run();
9797

9898
| Error Object | Status Code | Content Type |
9999
| ---------------- | ---------------- | ---------------- |
100-
| errors.ApiError | 401,404 | application/json |
100+
| errors.ApiError | 401,404,429 | application/json |
101101
| errors.SDKError | 4xx-5xx | */* |
102102

103103
## ~~createBuildDeprecated~~
@@ -238,7 +238,7 @@ run();
238238
**Promise\<void\>**
239239
### Errors
240240

241-
| Error Object | Status Code | Content Type |
242-
| ---------------- | ---------------- | ---------------- |
243-
| errors.ApiError | 401,404,422,500 | application/json |
244-
| errors.SDKError | 4xx-5xx | */* |
241+
| Error Object | Status Code | Content Type |
242+
| ------------------- | ------------------- | ------------------- |
243+
| errors.ApiError | 401,404,422,429,500 | application/json |
244+
| errors.SDKError | 4xx-5xx | */* |

0 commit comments

Comments
 (0)