@ughuuu/game_server 1.0.207 → 1.0.220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -9
- package/dist/ApiClient.js +2 -2
- package/dist/api/AuthenticationApi.js +27 -29
- package/dist/api/FriendsApi.js +2 -2
- package/dist/api/HealthApi.js +2 -2
- package/dist/api/LobbiesApi.js +19 -43
- package/dist/api/UsersApi.js +64 -19
- package/dist/index.js +21 -0
- package/dist/model/CreateFriendRequestRequest.js +2 -2
- package/dist/model/CreateLobby401Response.js +2 -2
- package/dist/model/CreateLobbyRequest.js +2 -2
- package/dist/model/DeviceLoginRequest.js +2 -2
- package/dist/model/GetCurrentUser200Response.js +2 -2
- package/dist/model/HealthResponse.js +2 -2
- package/dist/model/JoinLobbyRequest.js +2 -2
- package/dist/model/KickUserRequest.js +2 -2
- package/dist/model/ListBlockedFriends200Response.js +2 -2
- package/dist/model/ListBlockedFriends200ResponseDataInner.js +2 -2
- package/dist/model/ListBlockedFriends200ResponseDataInnerRequester.js +2 -2
- package/dist/model/ListFriendRequests200Response.js +2 -2
- package/dist/model/ListFriendRequests200ResponseIncomingInner.js +2 -2
- package/dist/model/ListFriendRequests200ResponseIncomingInnerRequester.js +2 -2
- package/dist/model/ListFriendRequests200ResponseMeta.js +2 -2
- package/dist/model/ListFriends200Response.js +2 -2
- package/dist/model/ListFriends200ResponseDataInner.js +2 -2
- package/dist/model/ListLobbies200Response.js +2 -2
- package/dist/model/ListLobbies200ResponseDataInner.js +2 -2
- package/dist/model/ListLobbies200ResponseMeta.js +2 -2
- package/dist/model/Login200Response.js +2 -2
- package/dist/model/Login200ResponseData.js +2 -2
- package/dist/model/Login200ResponseDataUser.js +2 -2
- package/dist/model/LoginRequest.js +2 -2
- package/dist/model/OAuthSessionData.js +2 -2
- package/dist/model/OAuthSessionDataDetails.js +2 -2
- package/dist/model/OAuthSessionStatus.js +2 -2
- package/dist/model/OauthApiCallbackRequest.js +90 -0
- package/dist/model/OauthRequest200Response.js +2 -2
- package/dist/model/RefreshToken200Response.js +2 -2
- package/dist/model/RefreshTokenRequest.js +2 -2
- package/dist/model/UpdateCurrentUserDisplayNameRequest.js +112 -0
- package/dist/model/UpdateCurrentUserPasswordRequest.js +112 -0
- package/dist/model/UpdateLobbyRequest.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,7 +13,8 @@ This API uses JWT (JSON Web Tokens) with access and refresh tokens:
|
|
|
13
13
|
- **Discord OAuth**: Use `/api/v1/auth/discord` flow
|
|
14
14
|
- **Google OAuth**: Use `/api/v1/auth/google` flow
|
|
15
15
|
- **Facebook OAuth**: Use `/api/v1/auth/facebook` flow
|
|
16
|
-
- **Apple Sign In**: Use `/auth/apple` browser flow
|
|
16
|
+
- **Apple Sign In**: Use `/auth/apple` browser flow or apple sdk flow
|
|
17
|
+
- **Steam (OpenID)**: Use `/api/v1/auth/steam` flow
|
|
17
18
|
|
|
18
19
|
Both methods return:
|
|
19
20
|
- `access_token` - Short-lived (15 min), use for API requests
|
|
@@ -54,7 +55,7 @@ Lobbies provide matchmaking / room management primitives. Highlights:
|
|
|
54
55
|
|
|
55
56
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
56
57
|
|
|
57
|
-
- API version: 1.0.
|
|
58
|
+
- API version: 1.0.220
|
|
58
59
|
- Package version: 1.0.0
|
|
59
60
|
- Generator version: 7.17.0
|
|
60
61
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
@@ -171,10 +172,10 @@ All URIs are relative to *http://localhost:4000*
|
|
|
171
172
|
|
|
172
173
|
Class | Method | HTTP request | Description
|
|
173
174
|
------------ | ------------- | ------------- | -------------
|
|
174
|
-
*UghuuuGameServer.AuthenticationApi* | [**deviceLogin**](docs/AuthenticationApi.md#deviceLogin) | **POST** /api/v1/login/device | Device login
|
|
175
|
+
*UghuuuGameServer.AuthenticationApi* | [**deviceLogin**](docs/AuthenticationApi.md#deviceLogin) | **POST** /api/v1/login/device | Device login
|
|
175
176
|
*UghuuuGameServer.AuthenticationApi* | [**login**](docs/AuthenticationApi.md#login) | **POST** /api/v1/login | Login
|
|
176
177
|
*UghuuuGameServer.AuthenticationApi* | [**logout**](docs/AuthenticationApi.md#logout) | **DELETE** /api/v1/logout | Logout
|
|
177
|
-
*UghuuuGameServer.AuthenticationApi* | [**
|
|
178
|
+
*UghuuuGameServer.AuthenticationApi* | [**oauthApiCallback**](docs/AuthenticationApi.md#oauthApiCallback) | **POST** /api/v1/auth/{provider}/callback | API callback / code exchange
|
|
178
179
|
*UghuuuGameServer.AuthenticationApi* | [**oauthRequest**](docs/AuthenticationApi.md#oauthRequest) | **GET** /api/v1/auth/{provider} | Initiate API OAuth
|
|
179
180
|
*UghuuuGameServer.AuthenticationApi* | [**oauthSessionStatus**](docs/AuthenticationApi.md#oauthSessionStatus) | **GET** /api/v1/auth/session/{session_id} | Get OAuth session status
|
|
180
181
|
*UghuuuGameServer.AuthenticationApi* | [**refreshToken**](docs/AuthenticationApi.md#refreshToken) | **POST** /api/v1/refresh | Refresh access token
|
|
@@ -191,13 +192,14 @@ Class | Method | HTTP request | Description
|
|
|
191
192
|
*UghuuuGameServer.HealthApi* | [**index**](docs/HealthApi.md#index) | **GET** /api/v1/health | Health check
|
|
192
193
|
*UghuuuGameServer.LobbiesApi* | [**createLobby**](docs/LobbiesApi.md#createLobby) | **POST** /api/v1/lobbies | Create a lobby
|
|
193
194
|
*UghuuuGameServer.LobbiesApi* | [**joinLobby**](docs/LobbiesApi.md#joinLobby) | **POST** /api/v1/lobbies/{id}/join | Join a lobby
|
|
194
|
-
*UghuuuGameServer.LobbiesApi* | [**kickUser**](docs/LobbiesApi.md#kickUser) | **POST** /api/v1/lobbies/
|
|
195
|
-
*UghuuuGameServer.LobbiesApi* | [**leaveLobby**](docs/LobbiesApi.md#leaveLobby) | **POST** /api/v1/lobbies/
|
|
195
|
+
*UghuuuGameServer.LobbiesApi* | [**kickUser**](docs/LobbiesApi.md#kickUser) | **POST** /api/v1/lobbies/kick | Kick a user from the lobby (host only)
|
|
196
|
+
*UghuuuGameServer.LobbiesApi* | [**leaveLobby**](docs/LobbiesApi.md#leaveLobby) | **POST** /api/v1/lobbies/leave | Leave the current lobby
|
|
196
197
|
*UghuuuGameServer.LobbiesApi* | [**listLobbies**](docs/LobbiesApi.md#listLobbies) | **GET** /api/v1/lobbies | List lobbies
|
|
197
|
-
*UghuuuGameServer.LobbiesApi* | [**updateLobby**](docs/LobbiesApi.md#updateLobby) | **PATCH** /api/v1/lobbies
|
|
198
|
+
*UghuuuGameServer.LobbiesApi* | [**updateLobby**](docs/LobbiesApi.md#updateLobby) | **PATCH** /api/v1/lobbies | Update lobby (host only)
|
|
199
|
+
*UghuuuGameServer.UsersApi* | [**deleteCurrentUser**](docs/UsersApi.md#deleteCurrentUser) | **DELETE** /api/v1/me | Delete current user
|
|
198
200
|
*UghuuuGameServer.UsersApi* | [**getCurrentUser**](docs/UsersApi.md#getCurrentUser) | **GET** /api/v1/me | Return current user info
|
|
199
|
-
*UghuuuGameServer.UsersApi* | [**getUser**](docs/UsersApi.md#getUser) | **GET** /api/v1/users/{id} | Get a user by id
|
|
200
|
-
*UghuuuGameServer.UsersApi* | [**searchUsers**](docs/UsersApi.md#searchUsers) | **GET** /api/v1/users | Search users by id/email/display_name
|
|
201
|
+
*UghuuuGameServer.UsersApi* | [**getUser**](docs/UsersApi.md#getUser) | **GET** /api/v1/users/{id} | Get a user by id
|
|
202
|
+
*UghuuuGameServer.UsersApi* | [**searchUsers**](docs/UsersApi.md#searchUsers) | **GET** /api/v1/users | Search users by id/email/display_name
|
|
201
203
|
*UghuuuGameServer.UsersApi* | [**updateCurrentUserDisplayName**](docs/UsersApi.md#updateCurrentUserDisplayName) | **PATCH** /api/v1/me/display_name | Update current user's display name
|
|
202
204
|
*UghuuuGameServer.UsersApi* | [**updateCurrentUserPassword**](docs/UsersApi.md#updateCurrentUserPassword) | **PATCH** /api/v1/me/password | Update current user password
|
|
203
205
|
|
|
@@ -231,9 +233,12 @@ Class | Method | HTTP request | Description
|
|
|
231
233
|
- [UghuuuGameServer.OAuthSessionData](docs/OAuthSessionData.md)
|
|
232
234
|
- [UghuuuGameServer.OAuthSessionDataDetails](docs/OAuthSessionDataDetails.md)
|
|
233
235
|
- [UghuuuGameServer.OAuthSessionStatus](docs/OAuthSessionStatus.md)
|
|
236
|
+
- [UghuuuGameServer.OauthApiCallbackRequest](docs/OauthApiCallbackRequest.md)
|
|
234
237
|
- [UghuuuGameServer.OauthRequest200Response](docs/OauthRequest200Response.md)
|
|
235
238
|
- [UghuuuGameServer.RefreshToken200Response](docs/RefreshToken200Response.md)
|
|
236
239
|
- [UghuuuGameServer.RefreshTokenRequest](docs/RefreshTokenRequest.md)
|
|
240
|
+
- [UghuuuGameServer.UpdateCurrentUserDisplayNameRequest](docs/UpdateCurrentUserDisplayNameRequest.md)
|
|
241
|
+
- [UghuuuGameServer.UpdateCurrentUserPasswordRequest](docs/UpdateCurrentUserPasswordRequest.md)
|
|
237
242
|
- [UghuuuGameServer.UpdateLobbyRequest](docs/UpdateLobbyRequest.md)
|
|
238
243
|
|
|
239
244
|
|
package/dist/ApiClient.js
CHANGED
|
@@ -13,9 +13,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
15
|
* Game Server API
|
|
16
|
-
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow
|
|
16
|
+
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow or apple sdk flow - **Steam (OpenID)**: Use `/api/v1/auth/steam` flow Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Users Users endpoints cover the user lifecycle and profile features. Key highlights: - **Registration and login** (email/password, device token for SDKs, and OAuth providers) - **Profile metadata** (JSON blob per user) and editable profile fields - **Account lifecycle**: password reset, email confirmation, and account deletion - **Sessions & tokens**: both browser sessions and JWT-based API tokens are supported ## Friends The Friends domain offers lightweight social features: - **Friend requests** (send / accept / reject / block flows) - **Friend listing & pagination**, with basic privacy controls - **Domain helpers** to manage and query friend relationships from API or UI contexts ## Lobbies Lobbies provide matchmaking / room management primitives. Highlights: - **Create / list / update / delete** lobbies with rich metadata (mode, region, tags) - **Host-managed or hostless** modes (hostless allowed internally, not creatable via public API) - **Membership management**: join, leave, kick users, and automatic host transfer - **Controls & protection**: max users, hidden/locked states, and optional password protection - **Hidden lobbies** are excluded from public listings; public listing endpoints are paginated
|
|
17
17
|
*
|
|
18
|
-
* The version of the OpenAPI document: 1.0.
|
|
18
|
+
* The version of the OpenAPI document: 1.0.220
|
|
19
19
|
*
|
|
20
20
|
*
|
|
21
21
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -9,6 +9,7 @@ var _DeviceLoginRequest = _interopRequireDefault(require("../model/DeviceLoginRe
|
|
|
9
9
|
var _Login200Response = _interopRequireDefault(require("../model/Login200Response"));
|
|
10
10
|
var _LoginRequest = _interopRequireDefault(require("../model/LoginRequest"));
|
|
11
11
|
var _OAuthSessionStatus = _interopRequireDefault(require("../model/OAuthSessionStatus"));
|
|
12
|
+
var _OauthApiCallbackRequest = _interopRequireDefault(require("../model/OauthApiCallbackRequest"));
|
|
12
13
|
var _OauthRequest200Response = _interopRequireDefault(require("../model/OauthRequest200Response"));
|
|
13
14
|
var _RefreshToken200Response = _interopRequireDefault(require("../model/RefreshToken200Response"));
|
|
14
15
|
var _RefreshTokenRequest = _interopRequireDefault(require("../model/RefreshTokenRequest"));
|
|
@@ -20,9 +21,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
20
21
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
21
22
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
22
23
|
* Game Server API
|
|
23
|
-
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow
|
|
24
|
+
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow or apple sdk flow - **Steam (OpenID)**: Use `/api/v1/auth/steam` flow Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Users Users endpoints cover the user lifecycle and profile features. Key highlights: - **Registration and login** (email/password, device token for SDKs, and OAuth providers) - **Profile metadata** (JSON blob per user) and editable profile fields - **Account lifecycle**: password reset, email confirmation, and account deletion - **Sessions & tokens**: both browser sessions and JWT-based API tokens are supported ## Friends The Friends domain offers lightweight social features: - **Friend requests** (send / accept / reject / block flows) - **Friend listing & pagination**, with basic privacy controls - **Domain helpers** to manage and query friend relationships from API or UI contexts ## Lobbies Lobbies provide matchmaking / room management primitives. Highlights: - **Create / list / update / delete** lobbies with rich metadata (mode, region, tags) - **Host-managed or hostless** modes (hostless allowed internally, not creatable via public API) - **Membership management**: join, leave, kick users, and automatic host transfer - **Controls & protection**: max users, hidden/locked states, and optional password protection - **Hidden lobbies** are excluded from public listings; public listing endpoints are paginated
|
|
24
25
|
*
|
|
25
|
-
* The version of the OpenAPI document: 1.0.
|
|
26
|
+
* The version of the OpenAPI document: 1.0.220
|
|
26
27
|
*
|
|
27
28
|
*
|
|
28
29
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -49,7 +50,7 @@ var AuthenticationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
/**
|
|
52
|
-
* Device login
|
|
53
|
+
* Device login
|
|
53
54
|
* Authenticate or create a device-backed user using a device_id (no password).
|
|
54
55
|
* @param {Object} opts Optional parameters
|
|
55
56
|
* @param {module:model/DeviceLoginRequest} [deviceLoginRequest] Device login
|
|
@@ -72,7 +73,7 @@ var AuthenticationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
|
-
* Device login
|
|
76
|
+
* Device login
|
|
76
77
|
* Authenticate or create a device-backed user using a device_id (no password).
|
|
77
78
|
* @param {Object} opts Optional parameters
|
|
78
79
|
* @param {module:model/DeviceLoginRequest} opts.deviceLoginRequest Device login
|
|
@@ -158,50 +159,47 @@ var AuthenticationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
158
159
|
}
|
|
159
160
|
|
|
160
161
|
/**
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
* @param {
|
|
164
|
-
* @param {
|
|
162
|
+
* API callback / code exchange
|
|
163
|
+
* Accepts an OAuth authorization code via the API and returns access/refresh tokens on success. For the Steam provider, the `code` field should contain a server-verifiable Steam credential (for example a Steam auth ticket or Steam identifier) and will be validated via the Steam Web API.
|
|
164
|
+
* @param {String} provider
|
|
165
|
+
* @param {Object} opts Optional parameters
|
|
166
|
+
* @param {module:model/OauthApiCallbackRequest} [oauthApiCallbackRequest] Code exchange or steam payload
|
|
165
167
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
166
168
|
*/
|
|
167
169
|
}, {
|
|
168
|
-
key: "
|
|
169
|
-
value: function
|
|
170
|
-
|
|
170
|
+
key: "oauthApiCallbackWithHttpInfo",
|
|
171
|
+
value: function oauthApiCallbackWithHttpInfo(provider, opts) {
|
|
172
|
+
opts = opts || {};
|
|
173
|
+
var postBody = opts['oauthApiCallbackRequest'];
|
|
171
174
|
// verify the required parameter 'provider' is set
|
|
172
175
|
if (provider === undefined || provider === null) {
|
|
173
|
-
throw new Error("Missing the required parameter 'provider' when calling
|
|
174
|
-
}
|
|
175
|
-
// verify the required parameter 'conflictUserId' is set
|
|
176
|
-
if (conflictUserId === undefined || conflictUserId === null) {
|
|
177
|
-
throw new Error("Missing the required parameter 'conflictUserId' when calling oauthConflictDelete");
|
|
176
|
+
throw new Error("Missing the required parameter 'provider' when calling oauthApiCallback");
|
|
178
177
|
}
|
|
179
178
|
var pathParams = {
|
|
180
179
|
'provider': provider
|
|
181
180
|
};
|
|
182
|
-
var queryParams = {
|
|
183
|
-
'conflict_user_id': conflictUserId
|
|
184
|
-
};
|
|
181
|
+
var queryParams = {};
|
|
185
182
|
var headerParams = {};
|
|
186
183
|
var formParams = {};
|
|
187
|
-
var authNames = [
|
|
188
|
-
var contentTypes = [];
|
|
184
|
+
var authNames = [];
|
|
185
|
+
var contentTypes = ['application/json'];
|
|
189
186
|
var accepts = ['application/json'];
|
|
190
187
|
var returnType = Object;
|
|
191
|
-
return this.apiClient.callApi('/api/v1/auth/{provider}/
|
|
188
|
+
return this.apiClient.callApi('/api/v1/auth/{provider}/callback', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
192
189
|
}
|
|
193
190
|
|
|
194
191
|
/**
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
* @param {
|
|
198
|
-
* @param {
|
|
192
|
+
* API callback / code exchange
|
|
193
|
+
* Accepts an OAuth authorization code via the API and returns access/refresh tokens on success. For the Steam provider, the `code` field should contain a server-verifiable Steam credential (for example a Steam auth ticket or Steam identifier) and will be validated via the Steam Web API.
|
|
194
|
+
* @param {String} provider
|
|
195
|
+
* @param {Object} opts Optional parameters
|
|
196
|
+
* @param {module:model/OauthApiCallbackRequest} opts.oauthApiCallbackRequest Code exchange or steam payload
|
|
199
197
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
200
198
|
*/
|
|
201
199
|
}, {
|
|
202
|
-
key: "
|
|
203
|
-
value: function
|
|
204
|
-
return this.
|
|
200
|
+
key: "oauthApiCallback",
|
|
201
|
+
value: function oauthApiCallback(provider, opts) {
|
|
202
|
+
return this.oauthApiCallbackWithHttpInfo(provider, opts).then(function (response_and_data) {
|
|
205
203
|
return response_and_data.data;
|
|
206
204
|
});
|
|
207
205
|
}
|
package/dist/api/FriendsApi.js
CHANGED
|
@@ -17,9 +17,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
19
|
* Game Server API
|
|
20
|
-
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow
|
|
20
|
+
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow or apple sdk flow - **Steam (OpenID)**: Use `/api/v1/auth/steam` flow Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Users Users endpoints cover the user lifecycle and profile features. Key highlights: - **Registration and login** (email/password, device token for SDKs, and OAuth providers) - **Profile metadata** (JSON blob per user) and editable profile fields - **Account lifecycle**: password reset, email confirmation, and account deletion - **Sessions & tokens**: both browser sessions and JWT-based API tokens are supported ## Friends The Friends domain offers lightweight social features: - **Friend requests** (send / accept / reject / block flows) - **Friend listing & pagination**, with basic privacy controls - **Domain helpers** to manage and query friend relationships from API or UI contexts ## Lobbies Lobbies provide matchmaking / room management primitives. Highlights: - **Create / list / update / delete** lobbies with rich metadata (mode, region, tags) - **Host-managed or hostless** modes (hostless allowed internally, not creatable via public API) - **Membership management**: join, leave, kick users, and automatic host transfer - **Controls & protection**: max users, hidden/locked states, and optional password protection - **Hidden lobbies** are excluded from public listings; public listing endpoints are paginated
|
|
21
21
|
*
|
|
22
|
-
* The version of the OpenAPI document: 1.0.
|
|
22
|
+
* The version of the OpenAPI document: 1.0.220
|
|
23
23
|
*
|
|
24
24
|
*
|
|
25
25
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api/HealthApi.js
CHANGED
|
@@ -14,9 +14,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
16
16
|
* Game Server API
|
|
17
|
-
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow
|
|
17
|
+
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow or apple sdk flow - **Steam (OpenID)**: Use `/api/v1/auth/steam` flow Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Users Users endpoints cover the user lifecycle and profile features. Key highlights: - **Registration and login** (email/password, device token for SDKs, and OAuth providers) - **Profile metadata** (JSON blob per user) and editable profile fields - **Account lifecycle**: password reset, email confirmation, and account deletion - **Sessions & tokens**: both browser sessions and JWT-based API tokens are supported ## Friends The Friends domain offers lightweight social features: - **Friend requests** (send / accept / reject / block flows) - **Friend listing & pagination**, with basic privacy controls - **Domain helpers** to manage and query friend relationships from API or UI contexts ## Lobbies Lobbies provide matchmaking / room management primitives. Highlights: - **Create / list / update / delete** lobbies with rich metadata (mode, region, tags) - **Host-managed or hostless** modes (hostless allowed internally, not creatable via public API) - **Membership management**: join, leave, kick users, and automatic host transfer - **Controls & protection**: max users, hidden/locked states, and optional password protection - **Hidden lobbies** are excluded from public listings; public listing endpoints are paginated
|
|
18
18
|
*
|
|
19
|
-
* The version of the OpenAPI document: 1.0.
|
|
19
|
+
* The version of the OpenAPI document: 1.0.220
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api/LobbiesApi.js
CHANGED
|
@@ -20,9 +20,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
20
20
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
21
21
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
22
22
|
* Game Server API
|
|
23
|
-
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow
|
|
23
|
+
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow or apple sdk flow - **Steam (OpenID)**: Use `/api/v1/auth/steam` flow Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Users Users endpoints cover the user lifecycle and profile features. Key highlights: - **Registration and login** (email/password, device token for SDKs, and OAuth providers) - **Profile metadata** (JSON blob per user) and editable profile fields - **Account lifecycle**: password reset, email confirmation, and account deletion - **Sessions & tokens**: both browser sessions and JWT-based API tokens are supported ## Friends The Friends domain offers lightweight social features: - **Friend requests** (send / accept / reject / block flows) - **Friend listing & pagination**, with basic privacy controls - **Domain helpers** to manage and query friend relationships from API or UI contexts ## Lobbies Lobbies provide matchmaking / room management primitives. Highlights: - **Create / list / update / delete** lobbies with rich metadata (mode, region, tags) - **Host-managed or hostless** modes (hostless allowed internally, not creatable via public API) - **Membership management**: join, leave, kick users, and automatic host transfer - **Controls & protection**: max users, hidden/locked states, and optional password protection - **Hidden lobbies** are excluded from public listings; public listing endpoints are paginated
|
|
24
24
|
*
|
|
25
|
-
* The version of the OpenAPI document: 1.0.
|
|
25
|
+
* The version of the OpenAPI document: 1.0.220
|
|
26
26
|
*
|
|
27
27
|
*
|
|
28
28
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -133,25 +133,18 @@ var LobbiesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* Kick a user from the lobby
|
|
136
|
+
* Kick a user from the lobby (host only)
|
|
137
137
|
* Remove a user from the lobby. Only the host can kick users via the API (returns 403 if not host).
|
|
138
|
-
* @param {Number} id Lobby ID
|
|
139
138
|
* @param {Object} opts Optional parameters
|
|
140
139
|
* @param {module:model/KickUserRequest} [kickUserRequest] Kick parameters
|
|
141
140
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
142
141
|
*/
|
|
143
142
|
}, {
|
|
144
143
|
key: "kickUserWithHttpInfo",
|
|
145
|
-
value: function kickUserWithHttpInfo(
|
|
144
|
+
value: function kickUserWithHttpInfo(opts) {
|
|
146
145
|
opts = opts || {};
|
|
147
146
|
var postBody = opts['kickUserRequest'];
|
|
148
|
-
|
|
149
|
-
if (id === undefined || id === null) {
|
|
150
|
-
throw new Error("Missing the required parameter 'id' when calling kickUser");
|
|
151
|
-
}
|
|
152
|
-
var pathParams = {
|
|
153
|
-
'id': id
|
|
154
|
-
};
|
|
147
|
+
var pathParams = {};
|
|
155
148
|
var queryParams = {};
|
|
156
149
|
var headerParams = {};
|
|
157
150
|
var formParams = {};
|
|
@@ -159,21 +152,20 @@ var LobbiesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
159
152
|
var contentTypes = ['application/json'];
|
|
160
153
|
var accepts = ['application/json'];
|
|
161
154
|
var returnType = null;
|
|
162
|
-
return this.apiClient.callApi('/api/v1/lobbies/
|
|
155
|
+
return this.apiClient.callApi('/api/v1/lobbies/kick', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
163
156
|
}
|
|
164
157
|
|
|
165
158
|
/**
|
|
166
|
-
* Kick a user from the lobby
|
|
159
|
+
* Kick a user from the lobby (host only)
|
|
167
160
|
* Remove a user from the lobby. Only the host can kick users via the API (returns 403 if not host).
|
|
168
|
-
* @param {Number} id Lobby ID
|
|
169
161
|
* @param {Object} opts Optional parameters
|
|
170
162
|
* @param {module:model/KickUserRequest} opts.kickUserRequest Kick parameters
|
|
171
163
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
172
164
|
*/
|
|
173
165
|
}, {
|
|
174
166
|
key: "kickUser",
|
|
175
|
-
value: function kickUser(
|
|
176
|
-
return this.kickUserWithHttpInfo(
|
|
167
|
+
value: function kickUser(opts) {
|
|
168
|
+
return this.kickUserWithHttpInfo(opts).then(function (response_and_data) {
|
|
177
169
|
return response_and_data.data;
|
|
178
170
|
});
|
|
179
171
|
}
|
|
@@ -181,20 +173,13 @@ var LobbiesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
181
173
|
/**
|
|
182
174
|
* Leave the current lobby
|
|
183
175
|
* Leave the lobby you are currently in.
|
|
184
|
-
* @param {Number} id Lobby ID
|
|
185
176
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
186
177
|
*/
|
|
187
178
|
}, {
|
|
188
179
|
key: "leaveLobbyWithHttpInfo",
|
|
189
|
-
value: function leaveLobbyWithHttpInfo(
|
|
180
|
+
value: function leaveLobbyWithHttpInfo() {
|
|
190
181
|
var postBody = null;
|
|
191
|
-
|
|
192
|
-
if (id === undefined || id === null) {
|
|
193
|
-
throw new Error("Missing the required parameter 'id' when calling leaveLobby");
|
|
194
|
-
}
|
|
195
|
-
var pathParams = {
|
|
196
|
-
'id': id
|
|
197
|
-
};
|
|
182
|
+
var pathParams = {};
|
|
198
183
|
var queryParams = {};
|
|
199
184
|
var headerParams = {};
|
|
200
185
|
var formParams = {};
|
|
@@ -202,19 +187,18 @@ var LobbiesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
202
187
|
var contentTypes = [];
|
|
203
188
|
var accepts = ['application/json'];
|
|
204
189
|
var returnType = null;
|
|
205
|
-
return this.apiClient.callApi('/api/v1/lobbies/
|
|
190
|
+
return this.apiClient.callApi('/api/v1/lobbies/leave', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
206
191
|
}
|
|
207
192
|
|
|
208
193
|
/**
|
|
209
194
|
* Leave the current lobby
|
|
210
195
|
* Leave the lobby you are currently in.
|
|
211
|
-
* @param {Number} id Lobby ID
|
|
212
196
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
213
197
|
*/
|
|
214
198
|
}, {
|
|
215
199
|
key: "leaveLobby",
|
|
216
|
-
value: function leaveLobby(
|
|
217
|
-
return this.leaveLobbyWithHttpInfo(
|
|
200
|
+
value: function leaveLobby() {
|
|
201
|
+
return this.leaveLobbyWithHttpInfo().then(function (response_and_data) {
|
|
218
202
|
return response_and_data.data;
|
|
219
203
|
});
|
|
220
204
|
}
|
|
@@ -274,23 +258,16 @@ var LobbiesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
274
258
|
/**
|
|
275
259
|
* Update lobby (host only)
|
|
276
260
|
* Update lobby settings. Only the host can update the lobby via the API (returns 403 if not host). Admins can still modify lobbies from the admin console - those changes are broadcast to viewers.
|
|
277
|
-
* @param {Number} id Lobby ID
|
|
278
261
|
* @param {Object} opts Optional parameters
|
|
279
262
|
* @param {module:model/UpdateLobbyRequest} [updateLobbyRequest] Lobby update parameters
|
|
280
263
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListLobbies200ResponseDataInner} and HTTP response
|
|
281
264
|
*/
|
|
282
265
|
}, {
|
|
283
266
|
key: "updateLobbyWithHttpInfo",
|
|
284
|
-
value: function updateLobbyWithHttpInfo(
|
|
267
|
+
value: function updateLobbyWithHttpInfo(opts) {
|
|
285
268
|
opts = opts || {};
|
|
286
269
|
var postBody = opts['updateLobbyRequest'];
|
|
287
|
-
|
|
288
|
-
if (id === undefined || id === null) {
|
|
289
|
-
throw new Error("Missing the required parameter 'id' when calling updateLobby");
|
|
290
|
-
}
|
|
291
|
-
var pathParams = {
|
|
292
|
-
'id': id
|
|
293
|
-
};
|
|
270
|
+
var pathParams = {};
|
|
294
271
|
var queryParams = {};
|
|
295
272
|
var headerParams = {};
|
|
296
273
|
var formParams = {};
|
|
@@ -298,21 +275,20 @@ var LobbiesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
298
275
|
var contentTypes = ['application/json'];
|
|
299
276
|
var accepts = ['application/json'];
|
|
300
277
|
var returnType = _ListLobbies200ResponseDataInner["default"];
|
|
301
|
-
return this.apiClient.callApi('/api/v1/lobbies
|
|
278
|
+
return this.apiClient.callApi('/api/v1/lobbies', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
302
279
|
}
|
|
303
280
|
|
|
304
281
|
/**
|
|
305
282
|
* Update lobby (host only)
|
|
306
283
|
* Update lobby settings. Only the host can update the lobby via the API (returns 403 if not host). Admins can still modify lobbies from the admin console - those changes are broadcast to viewers.
|
|
307
|
-
* @param {Number} id Lobby ID
|
|
308
284
|
* @param {Object} opts Optional parameters
|
|
309
285
|
* @param {module:model/UpdateLobbyRequest} opts.updateLobbyRequest Lobby update parameters
|
|
310
286
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListLobbies200ResponseDataInner}
|
|
311
287
|
*/
|
|
312
288
|
}, {
|
|
313
289
|
key: "updateLobby",
|
|
314
|
-
value: function updateLobby(
|
|
315
|
-
return this.updateLobbyWithHttpInfo(
|
|
290
|
+
value: function updateLobby(opts) {
|
|
291
|
+
return this.updateLobbyWithHttpInfo(opts).then(function (response_and_data) {
|
|
316
292
|
return response_and_data.data;
|
|
317
293
|
});
|
|
318
294
|
}
|
package/dist/api/UsersApi.js
CHANGED
|
@@ -8,6 +8,8 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
|
8
8
|
var _GetCurrentUser200Response = _interopRequireDefault(require("../model/GetCurrentUser200Response"));
|
|
9
9
|
var _ListFriends200Response = _interopRequireDefault(require("../model/ListFriends200Response"));
|
|
10
10
|
var _ListFriends200ResponseDataInner = _interopRequireDefault(require("../model/ListFriends200ResponseDataInner"));
|
|
11
|
+
var _UpdateCurrentUserDisplayNameRequest = _interopRequireDefault(require("../model/UpdateCurrentUserDisplayNameRequest"));
|
|
12
|
+
var _UpdateCurrentUserPasswordRequest = _interopRequireDefault(require("../model/UpdateCurrentUserPasswordRequest"));
|
|
11
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
14
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
15
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -16,9 +18,9 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
19
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
20
|
* Game Server API
|
|
19
|
-
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow
|
|
21
|
+
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow or apple sdk flow - **Steam (OpenID)**: Use `/api/v1/auth/steam` flow Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Users Users endpoints cover the user lifecycle and profile features. Key highlights: - **Registration and login** (email/password, device token for SDKs, and OAuth providers) - **Profile metadata** (JSON blob per user) and editable profile fields - **Account lifecycle**: password reset, email confirmation, and account deletion - **Sessions & tokens**: both browser sessions and JWT-based API tokens are supported ## Friends The Friends domain offers lightweight social features: - **Friend requests** (send / accept / reject / block flows) - **Friend listing & pagination**, with basic privacy controls - **Domain helpers** to manage and query friend relationships from API or UI contexts ## Lobbies Lobbies provide matchmaking / room management primitives. Highlights: - **Create / list / update / delete** lobbies with rich metadata (mode, region, tags) - **Host-managed or hostless** modes (hostless allowed internally, not creatable via public API) - **Membership management**: join, leave, kick users, and automatic host transfer - **Controls & protection**: max users, hidden/locked states, and optional password protection - **Hidden lobbies** are excluded from public listings; public listing endpoints are paginated
|
|
20
22
|
*
|
|
21
|
-
* The version of the OpenAPI document: 1.0.
|
|
23
|
+
* The version of the OpenAPI document: 1.0.220
|
|
22
24
|
*
|
|
23
25
|
*
|
|
24
26
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -45,11 +47,44 @@ var UsersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing
|
|
50
|
+
* Delete current user
|
|
51
|
+
* Deletes the authenticated user's account
|
|
52
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
51
53
|
*/
|
|
52
54
|
return _createClass(UsersApi, [{
|
|
55
|
+
key: "deleteCurrentUserWithHttpInfo",
|
|
56
|
+
value: function deleteCurrentUserWithHttpInfo() {
|
|
57
|
+
var postBody = null;
|
|
58
|
+
var pathParams = {};
|
|
59
|
+
var queryParams = {};
|
|
60
|
+
var headerParams = {};
|
|
61
|
+
var formParams = {};
|
|
62
|
+
var authNames = ['authorization'];
|
|
63
|
+
var contentTypes = [];
|
|
64
|
+
var accepts = ['application/json'];
|
|
65
|
+
var returnType = null;
|
|
66
|
+
return this.apiClient.callApi('/api/v1/me', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Delete current user
|
|
71
|
+
* Deletes the authenticated user's account
|
|
72
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
73
|
+
*/
|
|
74
|
+
}, {
|
|
75
|
+
key: "deleteCurrentUser",
|
|
76
|
+
value: function deleteCurrentUser() {
|
|
77
|
+
return this.deleteCurrentUserWithHttpInfo().then(function (response_and_data) {
|
|
78
|
+
return response_and_data.data;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Return current user info
|
|
84
|
+
* Returns the current authenticated user's basic information.
|
|
85
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetCurrentUser200Response} and HTTP response
|
|
86
|
+
*/
|
|
87
|
+
}, {
|
|
53
88
|
key: "getCurrentUserWithHttpInfo",
|
|
54
89
|
value: function getCurrentUserWithHttpInfo() {
|
|
55
90
|
var postBody = null;
|
|
@@ -78,7 +113,7 @@ var UsersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
78
113
|
}
|
|
79
114
|
|
|
80
115
|
/**
|
|
81
|
-
* Get a user by id
|
|
116
|
+
* Get a user by id
|
|
82
117
|
* @param {Number} id
|
|
83
118
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListFriends200ResponseDataInner} and HTTP response
|
|
84
119
|
*/
|
|
@@ -104,7 +139,7 @@ var UsersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
104
139
|
}
|
|
105
140
|
|
|
106
141
|
/**
|
|
107
|
-
* Get a user by id
|
|
142
|
+
* Get a user by id
|
|
108
143
|
* @param {Number} id
|
|
109
144
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListFriends200ResponseDataInner}
|
|
110
145
|
*/
|
|
@@ -117,7 +152,7 @@ var UsersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
117
152
|
}
|
|
118
153
|
|
|
119
154
|
/**
|
|
120
|
-
* Search users by id/email/display_name
|
|
155
|
+
* Search users by id/email/display_name
|
|
121
156
|
* @param {Object} opts Optional parameters
|
|
122
157
|
* @param {String} [q]
|
|
123
158
|
* @param {Number} [page]
|
|
@@ -145,7 +180,7 @@ var UsersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
145
180
|
}
|
|
146
181
|
|
|
147
182
|
/**
|
|
148
|
-
* Search users by id/email/display_name
|
|
183
|
+
* Search users by id/email/display_name
|
|
149
184
|
* @param {Object} opts Optional parameters
|
|
150
185
|
* @param {String} opts.q
|
|
151
186
|
* @param {Number} opts.page
|
|
@@ -162,18 +197,21 @@ var UsersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
162
197
|
|
|
163
198
|
/**
|
|
164
199
|
* Update current user's display name
|
|
200
|
+
* @param {Object} opts Optional parameters
|
|
201
|
+
* @param {module:model/UpdateCurrentUserDisplayNameRequest} [updateCurrentUserDisplayNameRequest] Display name payload
|
|
165
202
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
166
203
|
*/
|
|
167
204
|
}, {
|
|
168
205
|
key: "updateCurrentUserDisplayNameWithHttpInfo",
|
|
169
|
-
value: function updateCurrentUserDisplayNameWithHttpInfo() {
|
|
170
|
-
|
|
206
|
+
value: function updateCurrentUserDisplayNameWithHttpInfo(opts) {
|
|
207
|
+
opts = opts || {};
|
|
208
|
+
var postBody = opts['updateCurrentUserDisplayNameRequest'];
|
|
171
209
|
var pathParams = {};
|
|
172
210
|
var queryParams = {};
|
|
173
211
|
var headerParams = {};
|
|
174
212
|
var formParams = {};
|
|
175
213
|
var authNames = ['authorization'];
|
|
176
|
-
var contentTypes = [];
|
|
214
|
+
var contentTypes = ['application/json'];
|
|
177
215
|
var accepts = ['application/json'];
|
|
178
216
|
var returnType = null;
|
|
179
217
|
return this.apiClient.callApi('/api/v1/me/display_name', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
@@ -181,30 +219,35 @@ var UsersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
181
219
|
|
|
182
220
|
/**
|
|
183
221
|
* Update current user's display name
|
|
222
|
+
* @param {Object} opts Optional parameters
|
|
223
|
+
* @param {module:model/UpdateCurrentUserDisplayNameRequest} opts.updateCurrentUserDisplayNameRequest Display name payload
|
|
184
224
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
185
225
|
*/
|
|
186
226
|
}, {
|
|
187
227
|
key: "updateCurrentUserDisplayName",
|
|
188
|
-
value: function updateCurrentUserDisplayName() {
|
|
189
|
-
return this.updateCurrentUserDisplayNameWithHttpInfo().then(function (response_and_data) {
|
|
228
|
+
value: function updateCurrentUserDisplayName(opts) {
|
|
229
|
+
return this.updateCurrentUserDisplayNameWithHttpInfo(opts).then(function (response_and_data) {
|
|
190
230
|
return response_and_data.data;
|
|
191
231
|
});
|
|
192
232
|
}
|
|
193
233
|
|
|
194
234
|
/**
|
|
195
235
|
* Update current user password
|
|
236
|
+
* @param {Object} opts Optional parameters
|
|
237
|
+
* @param {module:model/UpdateCurrentUserPasswordRequest} [updateCurrentUserPasswordRequest] New password payload
|
|
196
238
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
197
239
|
*/
|
|
198
240
|
}, {
|
|
199
241
|
key: "updateCurrentUserPasswordWithHttpInfo",
|
|
200
|
-
value: function updateCurrentUserPasswordWithHttpInfo() {
|
|
201
|
-
|
|
242
|
+
value: function updateCurrentUserPasswordWithHttpInfo(opts) {
|
|
243
|
+
opts = opts || {};
|
|
244
|
+
var postBody = opts['updateCurrentUserPasswordRequest'];
|
|
202
245
|
var pathParams = {};
|
|
203
246
|
var queryParams = {};
|
|
204
247
|
var headerParams = {};
|
|
205
248
|
var formParams = {};
|
|
206
249
|
var authNames = ['authorization'];
|
|
207
|
-
var contentTypes = [];
|
|
250
|
+
var contentTypes = ['application/json'];
|
|
208
251
|
var accepts = ['application/json'];
|
|
209
252
|
var returnType = null;
|
|
210
253
|
return this.apiClient.callApi('/api/v1/me/password', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
@@ -212,12 +255,14 @@ var UsersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
212
255
|
|
|
213
256
|
/**
|
|
214
257
|
* Update current user password
|
|
258
|
+
* @param {Object} opts Optional parameters
|
|
259
|
+
* @param {module:model/UpdateCurrentUserPasswordRequest} opts.updateCurrentUserPasswordRequest New password payload
|
|
215
260
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
216
261
|
*/
|
|
217
262
|
}, {
|
|
218
263
|
key: "updateCurrentUserPassword",
|
|
219
|
-
value: function updateCurrentUserPassword() {
|
|
220
|
-
return this.updateCurrentUserPasswordWithHttpInfo().then(function (response_and_data) {
|
|
264
|
+
value: function updateCurrentUserPassword(opts) {
|
|
265
|
+
return this.updateCurrentUserPasswordWithHttpInfo(opts).then(function (response_and_data) {
|
|
221
266
|
return response_and_data.data;
|
|
222
267
|
});
|
|
223
268
|
}
|