@ughuuu/game_server 1.0.0 → 1.0.101

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.
Files changed (35) hide show
  1. package/README.md +30 -30
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AuthenticationApi.js +1 -1
  4. package/dist/api/HealthApi.js +1 -1
  5. package/dist/api/UsersApi.js +1 -1
  6. package/dist/model/GetCurrentUser200Response.js +1 -1
  7. package/dist/model/GetCurrentUser200ResponseData.js +1 -1
  8. package/dist/model/HealthResponse.js +1 -1
  9. package/dist/model/Login200Response.js +1 -1
  10. package/dist/model/Login200ResponseData.js +1 -1
  11. package/dist/model/Login200ResponseDataUser.js +1 -1
  12. package/dist/model/LoginRequest.js +1 -1
  13. package/dist/model/Logout200Response.js +1 -1
  14. package/dist/model/OauthRequest200Response.js +1 -1
  15. package/dist/model/OauthSessionStatus200Response.js +1 -1
  16. package/dist/model/RefreshToken200Response.js +1 -1
  17. package/dist/model/RefreshToken200ResponseData.js +1 -1
  18. package/dist/model/RefreshTokenRequest.js +1 -1
  19. package/package.json +1 -1
  20. package/dist/model/GameServerWebApiV1MeControllerShow200Response.js +0 -91
  21. package/dist/model/GameServerWebApiV1MeControllerShow200ResponseData.js +0 -125
  22. package/dist/model/GameServerWebApiV1SessionControllerCreate200Response.js +0 -91
  23. package/dist/model/GameServerWebApiV1SessionControllerCreate200ResponseData.js +0 -139
  24. package/dist/model/GameServerWebApiV1SessionControllerCreate200ResponseDataUser.js +0 -97
  25. package/dist/model/GameServerWebApiV1SessionControllerCreateRequest.js +0 -128
  26. package/dist/model/GameServerWebApiV1SessionControllerDelete200Response.js +0 -89
  27. package/dist/model/GameServerWebApiV1SessionControllerRefresh200Response.js +0 -91
  28. package/dist/model/GameServerWebApiV1SessionControllerRefresh200ResponseData.js +0 -126
  29. package/dist/model/GameServerWebApiV1SessionControllerRefreshRequest.js +0 -113
  30. package/dist/model/GameServerWebAuthControllerApiCallback200Response.js +0 -91
  31. package/dist/model/GameServerWebAuthControllerApiCallback200ResponseData.js +0 -139
  32. package/dist/model/GameServerWebAuthControllerApiCallback200ResponseDataUser.js +0 -109
  33. package/dist/model/GameServerWebAuthControllerApiCallback409Response.js +0 -97
  34. package/dist/model/GameServerWebAuthControllerApiRequest200Response.js +0 -103
  35. package/dist/model/GameServerWebAuthControllerApiSessionStatus200Response.js +0 -140
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # game_server
1
+ # @ughuuu/game_server
2
2
 
3
- GameServer - JavaScript client for game_server
3
+ UghuuuGameServer - JavaScript client for @ughuuu/game_server
4
4
  API for Game Server application
5
5
 
6
6
  ## Authentication
@@ -48,7 +48,7 @@ To publish the library as a [npm](https://www.npmjs.com/), please follow the pro
48
48
  Then install it via:
49
49
 
50
50
  ```shell
51
- npm install game_server --save
51
+ npm install @ughuuu/game_server --save
52
52
  ```
53
53
 
54
54
  Finally, you need to build the module:
@@ -71,7 +71,7 @@ Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the follow
71
71
  npm link
72
72
  ```
73
73
 
74
- To use the link you just defined in your project, switch to the directory you want to use your game_server from, and run:
74
+ To use the link you just defined in your project, switch to the directory you want to use your @ughuuu/game_server from, and run:
75
75
 
76
76
  ```shell
77
77
  npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
@@ -127,12 +127,12 @@ module: {
127
127
  Please follow the [installation](#installation) instruction and execute the following JS code:
128
128
 
129
129
  ```javascript
130
- var GameServer = require('game_server');
130
+ var UghuuuGameServer = require('@ughuuu/game_server');
131
131
 
132
132
 
133
- var api = new GameServer.AuthenticationApi()
133
+ var api = new UghuuuGameServer.AuthenticationApi()
134
134
  var opts = {
135
- 'loginRequest': new GameServer.LoginRequest() // {LoginRequest} Login credentials
135
+ 'loginRequest': new UghuuuGameServer.LoginRequest() // {LoginRequest} Login credentials
136
136
  };
137
137
  api.login(opts).then(function(data) {
138
138
  console.log('API called successfully. Returned data: ' + data);
@@ -149,33 +149,33 @@ All URIs are relative to *http://localhost:4000*
149
149
 
150
150
  Class | Method | HTTP request | Description
151
151
  ------------ | ------------- | ------------- | -------------
152
- *GameServer.AuthenticationApi* | [**login**](docs/AuthenticationApi.md#login) | **POST** /api/v1/login | Login
153
- *GameServer.AuthenticationApi* | [**logout**](docs/AuthenticationApi.md#logout) | **DELETE** /api/v1/logout | Logout
154
- *GameServer.AuthenticationApi* | [**oauthConflictDelete**](docs/AuthenticationApi.md#oauthConflictDelete) | **POST** /api/v1/auth/{provider}/conflict-delete | Delete conflicting provider account
155
- *GameServer.AuthenticationApi* | [**oauthRequest**](docs/AuthenticationApi.md#oauthRequest) | **GET** /api/v1/auth/{provider} | Initiate API OAuth
156
- *GameServer.AuthenticationApi* | [**oauthSessionStatus**](docs/AuthenticationApi.md#oauthSessionStatus) | **GET** /api/v1/auth/session/{session_id} | Get OAuth session status
157
- *GameServer.AuthenticationApi* | [**refreshToken**](docs/AuthenticationApi.md#refreshToken) | **POST** /api/v1/refresh | Refresh access token
158
- *GameServer.AuthenticationApi* | [**unlinkProvider**](docs/AuthenticationApi.md#unlinkProvider) | **DELETE** /api/v1/me/providers/{provider} | Unlink OAuth provider
159
- *GameServer.HealthApi* | [**index**](docs/HealthApi.md#index) | **GET** /api/v1/health | Health check
160
- *GameServer.UsersApi* | [**getCurrentUser**](docs/UsersApi.md#getCurrentUser) | **GET** /api/v1/me | Return current user info
161
- *GameServer.UsersApi* | [**getUserMetadata**](docs/UsersApi.md#getUserMetadata) | **GET** /api/v1/me/metadata | Return current user&#39;s metadata
152
+ *UghuuuGameServer.AuthenticationApi* | [**login**](docs/AuthenticationApi.md#login) | **POST** /api/v1/login | Login
153
+ *UghuuuGameServer.AuthenticationApi* | [**logout**](docs/AuthenticationApi.md#logout) | **DELETE** /api/v1/logout | Logout
154
+ *UghuuuGameServer.AuthenticationApi* | [**oauthConflictDelete**](docs/AuthenticationApi.md#oauthConflictDelete) | **POST** /api/v1/auth/{provider}/conflict-delete | Delete conflicting provider account
155
+ *UghuuuGameServer.AuthenticationApi* | [**oauthRequest**](docs/AuthenticationApi.md#oauthRequest) | **GET** /api/v1/auth/{provider} | Initiate API OAuth
156
+ *UghuuuGameServer.AuthenticationApi* | [**oauthSessionStatus**](docs/AuthenticationApi.md#oauthSessionStatus) | **GET** /api/v1/auth/session/{session_id} | Get OAuth session status
157
+ *UghuuuGameServer.AuthenticationApi* | [**refreshToken**](docs/AuthenticationApi.md#refreshToken) | **POST** /api/v1/refresh | Refresh access token
158
+ *UghuuuGameServer.AuthenticationApi* | [**unlinkProvider**](docs/AuthenticationApi.md#unlinkProvider) | **DELETE** /api/v1/me/providers/{provider} | Unlink OAuth provider
159
+ *UghuuuGameServer.HealthApi* | [**index**](docs/HealthApi.md#index) | **GET** /api/v1/health | Health check
160
+ *UghuuuGameServer.UsersApi* | [**getCurrentUser**](docs/UsersApi.md#getCurrentUser) | **GET** /api/v1/me | Return current user info
161
+ *UghuuuGameServer.UsersApi* | [**getUserMetadata**](docs/UsersApi.md#getUserMetadata) | **GET** /api/v1/me/metadata | Return current user&#39;s metadata
162
162
 
163
163
 
164
164
  ## Documentation for Models
165
165
 
166
- - [GameServer.GetCurrentUser200Response](docs/GetCurrentUser200Response.md)
167
- - [GameServer.GetCurrentUser200ResponseData](docs/GetCurrentUser200ResponseData.md)
168
- - [GameServer.HealthResponse](docs/HealthResponse.md)
169
- - [GameServer.Login200Response](docs/Login200Response.md)
170
- - [GameServer.Login200ResponseData](docs/Login200ResponseData.md)
171
- - [GameServer.Login200ResponseDataUser](docs/Login200ResponseDataUser.md)
172
- - [GameServer.LoginRequest](docs/LoginRequest.md)
173
- - [GameServer.Logout200Response](docs/Logout200Response.md)
174
- - [GameServer.OauthRequest200Response](docs/OauthRequest200Response.md)
175
- - [GameServer.OauthSessionStatus200Response](docs/OauthSessionStatus200Response.md)
176
- - [GameServer.RefreshToken200Response](docs/RefreshToken200Response.md)
177
- - [GameServer.RefreshToken200ResponseData](docs/RefreshToken200ResponseData.md)
178
- - [GameServer.RefreshTokenRequest](docs/RefreshTokenRequest.md)
166
+ - [UghuuuGameServer.GetCurrentUser200Response](docs/GetCurrentUser200Response.md)
167
+ - [UghuuuGameServer.GetCurrentUser200ResponseData](docs/GetCurrentUser200ResponseData.md)
168
+ - [UghuuuGameServer.HealthResponse](docs/HealthResponse.md)
169
+ - [UghuuuGameServer.Login200Response](docs/Login200Response.md)
170
+ - [UghuuuGameServer.Login200ResponseData](docs/Login200ResponseData.md)
171
+ - [UghuuuGameServer.Login200ResponseDataUser](docs/Login200ResponseDataUser.md)
172
+ - [UghuuuGameServer.LoginRequest](docs/LoginRequest.md)
173
+ - [UghuuuGameServer.Logout200Response](docs/Logout200Response.md)
174
+ - [UghuuuGameServer.OauthRequest200Response](docs/OauthRequest200Response.md)
175
+ - [UghuuuGameServer.OauthSessionStatus200Response](docs/OauthSessionStatus200Response.md)
176
+ - [UghuuuGameServer.RefreshToken200Response](docs/RefreshToken200Response.md)
177
+ - [UghuuuGameServer.RefreshToken200ResponseData](docs/RefreshToken200ResponseData.md)
178
+ - [UghuuuGameServer.RefreshTokenRequest](docs/RefreshTokenRequest.md)
179
179
 
180
180
 
181
181
  ## Documentation for Authorization
package/dist/ApiClient.js CHANGED
@@ -12,7 +12,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
12
12
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
15
+ * Game Server API
16
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
17
17
  *
18
18
  * The version of the OpenAPI document: 1.0.0
@@ -19,7 +19,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
19
19
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
22
+ * Game Server API
23
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
24
24
  *
25
25
  * The version of the OpenAPI document: 1.0.0
@@ -13,7 +13,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
13
13
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
16
+ * Game Server API
17
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
18
18
  *
19
19
  * The version of the OpenAPI document: 1.0.0
@@ -13,7 +13,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
13
13
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
16
+ * Game Server API
17
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
18
18
  *
19
19
  * The version of the OpenAPI document: 1.0.0
@@ -13,7 +13,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
13
13
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
16
+ * Game Server API
17
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
18
18
  *
19
19
  * The version of the OpenAPI document: 1.0.0
@@ -12,7 +12,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
12
12
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
15
+ * Game Server API
16
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
17
17
  *
18
18
  * The version of the OpenAPI document: 1.0.0
@@ -15,7 +15,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
15
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  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
- * Game Server
18
+ * Game Server API
19
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
20
20
  *
21
21
  * The version of the OpenAPI document: 1.0.0
@@ -13,7 +13,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
13
13
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
16
+ * Game Server API
17
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
18
18
  *
19
19
  * The version of the OpenAPI document: 1.0.0
@@ -13,7 +13,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
13
13
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
16
+ * Game Server API
17
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
18
18
  *
19
19
  * The version of the OpenAPI document: 1.0.0
@@ -12,7 +12,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
12
12
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
15
+ * Game Server API
16
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
17
17
  *
18
18
  * The version of the OpenAPI document: 1.0.0
@@ -15,7 +15,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
15
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  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
- * Game Server
18
+ * Game Server API
19
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
20
20
  *
21
21
  * The version of the OpenAPI document: 1.0.0
@@ -12,7 +12,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
12
12
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
15
+ * Game Server API
16
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
17
17
  *
18
18
  * The version of the OpenAPI document: 1.0.0
@@ -12,7 +12,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
12
12
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
15
+ * Game Server API
16
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
17
17
  *
18
18
  * The version of the OpenAPI document: 1.0.0
@@ -12,7 +12,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
12
12
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
15
+ * Game Server API
16
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
17
17
  *
18
18
  * The version of the OpenAPI document: 1.0.0
@@ -13,7 +13,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
13
13
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
16
+ * Game Server API
17
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
18
18
  *
19
19
  * The version of the OpenAPI document: 1.0.0
@@ -13,7 +13,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
13
13
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
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
- * Game Server
16
+ * Game Server API
17
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
18
18
  *
19
19
  * The version of the OpenAPI document: 1.0.0
@@ -15,7 +15,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
15
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  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
- * Game Server
18
+ * Game Server API
19
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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
20
20
  *
21
21
  * The version of the OpenAPI document: 1.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ughuuu/game_server",
3
- "version": "1.0.0",
3
+ "version": "1.0.101",
4
4
  "description": "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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1` ",
5
5
  "license": "Unlicense",
6
6
  "main": "dist/index.js",
@@ -1,91 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _GameServerWebApiV1MeControllerShow200ResponseData = _interopRequireDefault(require("./GameServerWebApiV1MeControllerShow200ResponseData"));
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
- 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); }
11
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
12
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
13
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
14
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
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
- * 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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
18
- *
19
- * The version of the OpenAPI document: 1.0.0
20
- *
21
- *
22
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
- * https://openapi-generator.tech
24
- * Do not edit the class manually.
25
- *
26
- */
27
- /**
28
- * The GameServerWebApiV1MeControllerShow200Response model module.
29
- * @module model/GameServerWebApiV1MeControllerShow200Response
30
- * @version 1.0.0
31
- */
32
- var GameServerWebApiV1MeControllerShow200Response = /*#__PURE__*/function () {
33
- /**
34
- * Constructs a new <code>GameServerWebApiV1MeControllerShow200Response</code>.
35
- * @alias module:model/GameServerWebApiV1MeControllerShow200Response
36
- */
37
- function GameServerWebApiV1MeControllerShow200Response() {
38
- _classCallCheck(this, GameServerWebApiV1MeControllerShow200Response);
39
- GameServerWebApiV1MeControllerShow200Response.initialize(this);
40
- }
41
-
42
- /**
43
- * Initializes the fields of this object.
44
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
- * Only for internal use.
46
- */
47
- return _createClass(GameServerWebApiV1MeControllerShow200Response, null, [{
48
- key: "initialize",
49
- value: function initialize(obj) {}
50
-
51
- /**
52
- * Constructs a <code>GameServerWebApiV1MeControllerShow200Response</code> from a plain JavaScript object, optionally creating a new instance.
53
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
54
- * @param {Object} data The plain JavaScript object bearing properties of interest.
55
- * @param {module:model/GameServerWebApiV1MeControllerShow200Response} obj Optional instance to populate.
56
- * @return {module:model/GameServerWebApiV1MeControllerShow200Response} The populated <code>GameServerWebApiV1MeControllerShow200Response</code> instance.
57
- */
58
- }, {
59
- key: "constructFromObject",
60
- value: function constructFromObject(data, obj) {
61
- if (data) {
62
- obj = obj || new GameServerWebApiV1MeControllerShow200Response();
63
- if (data.hasOwnProperty('data')) {
64
- obj['data'] = _GameServerWebApiV1MeControllerShow200ResponseData["default"].constructFromObject(data['data']);
65
- }
66
- }
67
- return obj;
68
- }
69
-
70
- /**
71
- * Validates the JSON data with respect to <code>GameServerWebApiV1MeControllerShow200Response</code>.
72
- * @param {Object} data The plain JavaScript object bearing properties of interest.
73
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GameServerWebApiV1MeControllerShow200Response</code>.
74
- */
75
- }, {
76
- key: "validateJSON",
77
- value: function validateJSON(data) {
78
- // validate the optional field `data`
79
- if (data['data']) {
80
- // data not null
81
- _GameServerWebApiV1MeControllerShow200ResponseData["default"].validateJSON(data['data']);
82
- }
83
- return true;
84
- }
85
- }]);
86
- }();
87
- /**
88
- * @member {module:model/GameServerWebApiV1MeControllerShow200ResponseData} data
89
- */
90
- GameServerWebApiV1MeControllerShow200Response.prototype['data'] = undefined;
91
- var _default = exports["default"] = GameServerWebApiV1MeControllerShow200Response;
@@ -1,125 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- 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); }
10
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
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
- * 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 - **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 (API flow not yet implemented) 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. ## Endpoints All API endpoints are under `/api/v1`
17
- *
18
- * The version of the OpenAPI document: 1.0.0
19
- *
20
- *
21
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
22
- * https://openapi-generator.tech
23
- * Do not edit the class manually.
24
- *
25
- */
26
- /**
27
- * The GameServerWebApiV1MeControllerShow200ResponseData model module.
28
- * @module model/GameServerWebApiV1MeControllerShow200ResponseData
29
- * @version 1.0.0
30
- */
31
- var GameServerWebApiV1MeControllerShow200ResponseData = /*#__PURE__*/function () {
32
- /**
33
- * Constructs a new <code>GameServerWebApiV1MeControllerShow200ResponseData</code>.
34
- * @alias module:model/GameServerWebApiV1MeControllerShow200ResponseData
35
- */
36
- function GameServerWebApiV1MeControllerShow200ResponseData() {
37
- _classCallCheck(this, GameServerWebApiV1MeControllerShow200ResponseData);
38
- GameServerWebApiV1MeControllerShow200ResponseData.initialize(this);
39
- }
40
-
41
- /**
42
- * Initializes the fields of this object.
43
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
44
- * Only for internal use.
45
- */
46
- return _createClass(GameServerWebApiV1MeControllerShow200ResponseData, null, [{
47
- key: "initialize",
48
- value: function initialize(obj) {}
49
-
50
- /**
51
- * Constructs a <code>GameServerWebApiV1MeControllerShow200ResponseData</code> from a plain JavaScript object, optionally creating a new instance.
52
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
53
- * @param {Object} data The plain JavaScript object bearing properties of interest.
54
- * @param {module:model/GameServerWebApiV1MeControllerShow200ResponseData} obj Optional instance to populate.
55
- * @return {module:model/GameServerWebApiV1MeControllerShow200ResponseData} The populated <code>GameServerWebApiV1MeControllerShow200ResponseData</code> instance.
56
- */
57
- }, {
58
- key: "constructFromObject",
59
- value: function constructFromObject(data, obj) {
60
- if (data) {
61
- obj = obj || new GameServerWebApiV1MeControllerShow200ResponseData();
62
- if (data.hasOwnProperty('email')) {
63
- obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
64
- }
65
- if (data.hasOwnProperty('id')) {
66
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
67
- }
68
- if (data.hasOwnProperty('is_admin')) {
69
- obj['is_admin'] = _ApiClient["default"].convertToType(data['is_admin'], 'Boolean');
70
- }
71
- if (data.hasOwnProperty('metadata')) {
72
- obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object);
73
- }
74
- if (data.hasOwnProperty('profile_url')) {
75
- obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String');
76
- }
77
- }
78
- return obj;
79
- }
80
-
81
- /**
82
- * Validates the JSON data with respect to <code>GameServerWebApiV1MeControllerShow200ResponseData</code>.
83
- * @param {Object} data The plain JavaScript object bearing properties of interest.
84
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GameServerWebApiV1MeControllerShow200ResponseData</code>.
85
- */
86
- }, {
87
- key: "validateJSON",
88
- value: function validateJSON(data) {
89
- // ensure the json data is a string
90
- if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
91
- throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
92
- }
93
- // ensure the json data is a string
94
- if (data['profile_url'] && !(typeof data['profile_url'] === 'string' || data['profile_url'] instanceof String)) {
95
- throw new Error("Expected the field `profile_url` to be a primitive type in the JSON string but got " + data['profile_url']);
96
- }
97
- return true;
98
- }
99
- }]);
100
- }();
101
- /**
102
- * @member {String} email
103
- */
104
- GameServerWebApiV1MeControllerShow200ResponseData.prototype['email'] = undefined;
105
-
106
- /**
107
- * @member {Number} id
108
- */
109
- GameServerWebApiV1MeControllerShow200ResponseData.prototype['id'] = undefined;
110
-
111
- /**
112
- * @member {Boolean} is_admin
113
- */
114
- GameServerWebApiV1MeControllerShow200ResponseData.prototype['is_admin'] = undefined;
115
-
116
- /**
117
- * @member {Object} metadata
118
- */
119
- GameServerWebApiV1MeControllerShow200ResponseData.prototype['metadata'] = undefined;
120
-
121
- /**
122
- * @member {String} profile_url
123
- */
124
- GameServerWebApiV1MeControllerShow200ResponseData.prototype['profile_url'] = undefined;
125
- var _default = exports["default"] = GameServerWebApiV1MeControllerShow200ResponseData;