@ughuuu/game_server 1.0.206 → 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.
Files changed (43) hide show
  1. package/README.md +37 -11
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AuthenticationApi.js +27 -29
  4. package/dist/api/FriendsApi.js +2 -2
  5. package/dist/api/HealthApi.js +2 -2
  6. package/dist/api/LobbiesApi.js +19 -43
  7. package/dist/api/UsersApi.js +64 -19
  8. package/dist/index.js +21 -0
  9. package/dist/model/CreateFriendRequestRequest.js +2 -2
  10. package/dist/model/CreateLobby401Response.js +2 -2
  11. package/dist/model/CreateLobbyRequest.js +2 -2
  12. package/dist/model/DeviceLoginRequest.js +2 -2
  13. package/dist/model/GetCurrentUser200Response.js +2 -2
  14. package/dist/model/HealthResponse.js +2 -2
  15. package/dist/model/JoinLobbyRequest.js +2 -2
  16. package/dist/model/KickUserRequest.js +2 -2
  17. package/dist/model/ListBlockedFriends200Response.js +2 -2
  18. package/dist/model/ListBlockedFriends200ResponseDataInner.js +2 -2
  19. package/dist/model/ListBlockedFriends200ResponseDataInnerRequester.js +2 -2
  20. package/dist/model/ListFriendRequests200Response.js +2 -2
  21. package/dist/model/ListFriendRequests200ResponseIncomingInner.js +2 -2
  22. package/dist/model/ListFriendRequests200ResponseIncomingInnerRequester.js +2 -2
  23. package/dist/model/ListFriendRequests200ResponseMeta.js +2 -2
  24. package/dist/model/ListFriends200Response.js +2 -2
  25. package/dist/model/ListFriends200ResponseDataInner.js +2 -2
  26. package/dist/model/ListLobbies200Response.js +2 -2
  27. package/dist/model/ListLobbies200ResponseDataInner.js +2 -2
  28. package/dist/model/ListLobbies200ResponseMeta.js +2 -2
  29. package/dist/model/Login200Response.js +2 -2
  30. package/dist/model/Login200ResponseData.js +2 -2
  31. package/dist/model/Login200ResponseDataUser.js +2 -2
  32. package/dist/model/LoginRequest.js +2 -2
  33. package/dist/model/OAuthSessionData.js +2 -2
  34. package/dist/model/OAuthSessionDataDetails.js +2 -2
  35. package/dist/model/OAuthSessionStatus.js +2 -2
  36. package/dist/model/OauthApiCallbackRequest.js +90 -0
  37. package/dist/model/OauthRequest200Response.js +2 -2
  38. package/dist/model/RefreshToken200Response.js +2 -2
  39. package/dist/model/RefreshTokenRequest.js +2 -2
  40. package/dist/model/UpdateCurrentUserDisplayNameRequest.js +112 -0
  41. package/dist/model/UpdateCurrentUserPasswordRequest.js +112 -0
  42. package/dist/model/UpdateLobbyRequest.js +2 -2
  43. package/package.json +2 -2
@@ -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 (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`
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.206
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).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ughuuu/game_server",
3
- "version": "1.0.206",
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 - **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 (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` ",
3
+ "version": "1.0.220",
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 - **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 ",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {