@ughuuu/game_server 1.0.375 → 1.0.376

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 (100) hide show
  1. package/README.md +66 -5
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AdminKVApi.js +305 -0
  4. package/dist/api/AdminLeaderboardsApi.js +396 -0
  5. package/dist/api/AdminLobbiesApi.js +190 -0
  6. package/dist/api/AdminSessionsApi.js +165 -0
  7. package/dist/api/AdminUsersApi.js +130 -0
  8. package/dist/api/AuthenticationApi.js +82 -1
  9. package/dist/api/FriendsApi.js +6 -4
  10. package/dist/api/HealthApi.js +1 -1
  11. package/dist/api/HooksApi.js +6 -4
  12. package/dist/api/KVApi.js +95 -0
  13. package/dist/api/LeaderboardsApi.js +7 -7
  14. package/dist/api/LobbiesApi.js +6 -6
  15. package/dist/api/UsersApi.js +17 -15
  16. package/dist/index.js +269 -3
  17. package/dist/model/AdminCreateKvEntry200Response.js +91 -0
  18. package/dist/model/AdminCreateKvEntryRequest.js +146 -0
  19. package/dist/model/AdminCreateLeaderboardRequest.js +232 -0
  20. package/dist/model/AdminEndLeaderboard200Response.js +91 -0
  21. package/dist/model/AdminEndLeaderboard200ResponseData.js +231 -0
  22. package/dist/model/AdminListKvEntries200Response.js +124 -0
  23. package/dist/model/AdminListKvEntries200ResponseDataInner.js +147 -0
  24. package/dist/model/AdminListLobbies200Response.js +124 -0
  25. package/dist/model/AdminListLobbies200ResponseDataInner.js +153 -0
  26. package/dist/model/AdminListSessions200Response.js +124 -0
  27. package/dist/model/AdminListSessions200ResponseDataInner.js +133 -0
  28. package/dist/model/AdminSubmitLeaderboardScore200Response.js +91 -0
  29. package/dist/model/AdminSubmitLeaderboardScore200ResponseData.js +141 -0
  30. package/dist/model/AdminSubmitLeaderboardScoreRequest.js +126 -0
  31. package/dist/model/AdminUpdateKvEntryRequest.js +121 -0
  32. package/dist/model/AdminUpdateLeaderboardRecordRequest.js +93 -0
  33. package/dist/model/AdminUpdateLeaderboardRequest.js +125 -0
  34. package/dist/model/AdminUpdateLobby200Response.js +91 -0
  35. package/dist/model/AdminUpdateLobbyRequest.js +133 -0
  36. package/dist/model/AdminUpdateUser200Response.js +91 -0
  37. package/dist/model/AdminUpdateUser200ResponseData.js +149 -0
  38. package/dist/model/AdminUpdateUserRequest.js +105 -0
  39. package/dist/model/CallHook200Response.js +88 -0
  40. package/dist/model/CallHookRequest.js +23 -8
  41. package/dist/model/CreateFriendRequestRequest.js +1 -1
  42. package/dist/model/{KickUser401Response.js → CreateLobby401Response.js} +18 -18
  43. package/dist/model/CreateLobbyRequest.js +1 -1
  44. package/dist/model/DeviceLoginRequest.js +1 -1
  45. package/dist/model/ErrorResponse.js +114 -0
  46. package/dist/model/GetCurrentUser200Response.js +10 -1
  47. package/dist/model/GetCurrentUser200ResponseLinkedProviders.js +1 -1
  48. package/dist/model/GetKv200Response.js +93 -0
  49. package/dist/model/GetMyRecord200Response.js +91 -0
  50. package/dist/model/HealthResponse.js +1 -1
  51. package/dist/model/JoinLobby200Response.js +89 -0
  52. package/dist/model/JoinLobbyRequest.js +1 -1
  53. package/dist/model/KickUser200Response.js +89 -0
  54. package/dist/model/KickUserRequest.js +1 -1
  55. package/dist/model/LeaveLobby200Response.js +89 -0
  56. package/dist/model/LinkDeviceRequest.js +1 -1
  57. package/dist/model/ListBlockedFriends200Response.js +1 -1
  58. package/dist/model/ListBlockedFriends200ResponseDataInner.js +1 -1
  59. package/dist/model/ListBlockedFriends200ResponseDataInnerRequester.js +1 -1
  60. package/dist/model/ListFriendRequests200Response.js +1 -1
  61. package/dist/model/ListFriendRequests200ResponseIncomingInner.js +1 -1
  62. package/dist/model/ListFriendRequests200ResponseIncomingInnerRequester.js +1 -1
  63. package/dist/model/ListFriendRequests200ResponseMeta.js +1 -1
  64. package/dist/model/ListFriends200Response.js +1 -1
  65. package/dist/model/ListFriends200ResponseDataInner.js +9 -1
  66. package/dist/model/ListLeaderboardRecords200Response.js +1 -1
  67. package/dist/model/ListLeaderboardRecords200ResponseDataInner.js +1 -1
  68. package/dist/model/ListLeaderboardRecords200ResponseMeta.js +1 -1
  69. package/dist/model/ListLeaderboards200Response.js +1 -1
  70. package/dist/model/ListLeaderboards200ResponseDataInner.js +1 -1
  71. package/dist/model/ListLobbies200Response.js +1 -1
  72. package/dist/model/ListLobbies200ResponseDataInner.js +1 -1
  73. package/dist/model/ListLobbies200ResponseInner.js +153 -0
  74. package/dist/model/ListLobbies200ResponseMeta.js +125 -0
  75. package/dist/model/ListRecordsAroundUser200Response.js +1 -1
  76. package/dist/model/Login200Response.js +1 -1
  77. package/dist/model/Login200ResponseData.js +1 -1
  78. package/dist/model/Login200ResponseDataUser.js +97 -0
  79. package/dist/model/LoginRequest.js +1 -1
  80. package/dist/model/OAuthSessionData.js +1 -1
  81. package/dist/model/OAuthSessionDataDetails.js +1 -1
  82. package/dist/model/OAuthSessionStatus.js +9 -5
  83. package/dist/model/OauthApiCallback200Response.js +1 -1
  84. package/dist/model/OauthApiCallbackRequest.js +1 -1
  85. package/dist/model/OauthCallbackApiAppleIosRequest.js +113 -0
  86. package/dist/model/OauthGoogleIdTokenRequest.js +113 -0
  87. package/dist/model/OauthRequest200Response.js +1 -1
  88. package/dist/model/OauthSessionStatus404Response.js +126 -0
  89. package/dist/model/QuickJoinRequest.js +1 -1
  90. package/dist/model/RefreshToken200Response.js +1 -1
  91. package/dist/model/RefreshToken200ResponseData.js +1 -1
  92. package/dist/model/RefreshTokenRequest.js +1 -1
  93. package/dist/model/RemoveFriendship401Response.js +89 -0
  94. package/dist/model/SearchUsers200Response.js +124 -0
  95. package/dist/model/SearchUsers200ResponseDataInner.js +130 -0
  96. package/dist/model/UpdateCurrentUserDisplayNameRequest.js +1 -1
  97. package/dist/model/UpdateCurrentUserPassword400Response.js +97 -0
  98. package/dist/model/UpdateCurrentUserPasswordRequest.js +1 -1
  99. package/dist/model/UpdateLobbyRequest.js +1 -1
  100. package/package.json +5 -1
@@ -0,0 +1,88 @@
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 - **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
+ *
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 CallHook200Response model module.
28
+ * @module model/CallHook200Response
29
+ * @version 1.0.0
30
+ */
31
+ var CallHook200Response = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>CallHook200Response</code>.
34
+ * @alias module:model/CallHook200Response
35
+ */
36
+ function CallHook200Response() {
37
+ _classCallCheck(this, CallHook200Response);
38
+ CallHook200Response.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(CallHook200Response, null, [{
47
+ key: "initialize",
48
+ value: function initialize(obj) {}
49
+
50
+ /**
51
+ * Constructs a <code>CallHook200Response</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/CallHook200Response} obj Optional instance to populate.
55
+ * @return {module:model/CallHook200Response} The populated <code>CallHook200Response</code> instance.
56
+ */
57
+ }, {
58
+ key: "constructFromObject",
59
+ value: function constructFromObject(data, obj) {
60
+ if (data) {
61
+ obj = obj || new CallHook200Response();
62
+ if (data.hasOwnProperty('data')) {
63
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], {
64
+ 'String': Object
65
+ });
66
+ }
67
+ }
68
+ return obj;
69
+ }
70
+
71
+ /**
72
+ * Validates the JSON data with respect to <code>CallHook200Response</code>.
73
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
74
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CallHook200Response</code>.
75
+ */
76
+ }, {
77
+ key: "validateJSON",
78
+ value: function validateJSON(data) {
79
+ return true;
80
+ }
81
+ }]);
82
+ }();
83
+ /**
84
+ * JSON object with arbitrary properties
85
+ * @member {Object.<String, Object>} data
86
+ */
87
+ CallHook200Response.prototype['data'] = undefined;
88
+ var _default = exports["default"] = CallHook200Response;
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _Any = _interopRequireDefault(require("./Any"));
9
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
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); }
11
10
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -19,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
19
18
  * Game Server API
20
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 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
20
  *
22
- * The version of the OpenAPI document: 1.0.375
21
+ * The version of the OpenAPI document: 1.0.0
23
22
  *
24
23
  *
25
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -37,10 +36,11 @@ var CallHookRequest = /*#__PURE__*/function () {
37
36
  * Constructs a new <code>CallHookRequest</code>.
38
37
  * @alias module:model/CallHookRequest
39
38
  * @param fn {String}
39
+ * @param plugin {String}
40
40
  */
41
- function CallHookRequest(fn) {
41
+ function CallHookRequest(fn, plugin) {
42
42
  _classCallCheck(this, CallHookRequest);
43
- CallHookRequest.initialize(this, fn);
43
+ CallHookRequest.initialize(this, fn, plugin);
44
44
  }
45
45
 
46
46
  /**
@@ -50,8 +50,9 @@ var CallHookRequest = /*#__PURE__*/function () {
50
50
  */
51
51
  return _createClass(CallHookRequest, null, [{
52
52
  key: "initialize",
53
- value: function initialize(obj, fn) {
53
+ value: function initialize(obj, fn, plugin) {
54
54
  obj['fn'] = fn;
55
+ obj['plugin'] = plugin;
55
56
  }
56
57
 
57
58
  /**
@@ -67,11 +68,16 @@ var CallHookRequest = /*#__PURE__*/function () {
67
68
  if (data) {
68
69
  obj = obj || new CallHookRequest();
69
70
  if (data.hasOwnProperty('args')) {
70
- obj['args'] = _ApiClient["default"].convertToType(data['args'], [_Any["default"]]);
71
+ obj['args'] = _ApiClient["default"].convertToType(data['args'], [{
72
+ 'String': Object
73
+ }]);
71
74
  }
72
75
  if (data.hasOwnProperty('fn')) {
73
76
  obj['fn'] = _ApiClient["default"].convertToType(data['fn'], 'String');
74
77
  }
78
+ if (data.hasOwnProperty('plugin')) {
79
+ obj['plugin'] = _ApiClient["default"].convertToType(data['plugin'], 'String');
80
+ }
75
81
  }
76
82
  return obj;
77
83
  }
@@ -107,14 +113,18 @@ var CallHookRequest = /*#__PURE__*/function () {
107
113
  if (data['fn'] && !(typeof data['fn'] === 'string' || data['fn'] instanceof String)) {
108
114
  throw new Error("Expected the field `fn` to be a primitive type in the JSON string but got " + data['fn']);
109
115
  }
116
+ // ensure the json data is a string
117
+ if (data['plugin'] && !(typeof data['plugin'] === 'string' || data['plugin'] instanceof String)) {
118
+ throw new Error("Expected the field `plugin` to be a primitive type in the JSON string but got " + data['plugin']);
119
+ }
110
120
  return true;
111
121
  }
112
122
  }]);
113
123
  }();
114
- CallHookRequest.RequiredProperties = ["fn"];
124
+ CallHookRequest.RequiredProperties = ["fn", "plugin"];
115
125
 
116
126
  /**
117
- * @member {Array.<module:model/Any>} args
127
+ * @member {Array.<Object.<String, Object>>} args
118
128
  */
119
129
  CallHookRequest.prototype['args'] = undefined;
120
130
 
@@ -122,4 +132,9 @@ CallHookRequest.prototype['args'] = undefined;
122
132
  * @member {String} fn
123
133
  */
124
134
  CallHookRequest.prototype['fn'] = undefined;
135
+
136
+ /**
137
+ * @member {String} plugin
138
+ */
139
+ CallHookRequest.prototype['plugin'] = undefined;
125
140
  var _default = exports["default"] = CallHookRequest;
@@ -18,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
18
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 - **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
20
  *
21
- * The version of the OpenAPI document: 1.0.375
21
+ * The version of the OpenAPI document: 1.0.0
22
22
  *
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
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 - **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.375
18
+ * The version of the OpenAPI document: 1.0.0
19
19
  *
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,18 +24,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
24
24
  *
25
25
  */
26
26
  /**
27
- * The KickUser401Response model module.
28
- * @module model/KickUser401Response
27
+ * The CreateLobby401Response model module.
28
+ * @module model/CreateLobby401Response
29
29
  * @version 1.0.0
30
30
  */
31
- var KickUser401Response = /*#__PURE__*/function () {
31
+ var CreateLobby401Response = /*#__PURE__*/function () {
32
32
  /**
33
- * Constructs a new <code>KickUser401Response</code>.
34
- * @alias module:model/KickUser401Response
33
+ * Constructs a new <code>CreateLobby401Response</code>.
34
+ * @alias module:model/CreateLobby401Response
35
35
  */
36
- function KickUser401Response() {
37
- _classCallCheck(this, KickUser401Response);
38
- KickUser401Response.initialize(this);
36
+ function CreateLobby401Response() {
37
+ _classCallCheck(this, CreateLobby401Response);
38
+ CreateLobby401Response.initialize(this);
39
39
  }
40
40
 
41
41
  /**
@@ -43,22 +43,22 @@ var KickUser401Response = /*#__PURE__*/function () {
43
43
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
44
44
  * Only for internal use.
45
45
  */
46
- return _createClass(KickUser401Response, null, [{
46
+ return _createClass(CreateLobby401Response, null, [{
47
47
  key: "initialize",
48
48
  value: function initialize(obj) {}
49
49
 
50
50
  /**
51
- * Constructs a <code>KickUser401Response</code> from a plain JavaScript object, optionally creating a new instance.
51
+ * Constructs a <code>CreateLobby401Response</code> from a plain JavaScript object, optionally creating a new instance.
52
52
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
53
53
  * @param {Object} data The plain JavaScript object bearing properties of interest.
54
- * @param {module:model/KickUser401Response} obj Optional instance to populate.
55
- * @return {module:model/KickUser401Response} The populated <code>KickUser401Response</code> instance.
54
+ * @param {module:model/CreateLobby401Response} obj Optional instance to populate.
55
+ * @return {module:model/CreateLobby401Response} The populated <code>CreateLobby401Response</code> instance.
56
56
  */
57
57
  }, {
58
58
  key: "constructFromObject",
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
- obj = obj || new KickUser401Response();
61
+ obj = obj || new CreateLobby401Response();
62
62
  if (data.hasOwnProperty('error')) {
63
63
  obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String');
64
64
  }
@@ -67,9 +67,9 @@ var KickUser401Response = /*#__PURE__*/function () {
67
67
  }
68
68
 
69
69
  /**
70
- * Validates the JSON data with respect to <code>KickUser401Response</code>.
70
+ * Validates the JSON data with respect to <code>CreateLobby401Response</code>.
71
71
  * @param {Object} data The plain JavaScript object bearing properties of interest.
72
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>KickUser401Response</code>.
72
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateLobby401Response</code>.
73
73
  */
74
74
  }, {
75
75
  key: "validateJSON",
@@ -85,5 +85,5 @@ var KickUser401Response = /*#__PURE__*/function () {
85
85
  /**
86
86
  * @member {String} error
87
87
  */
88
- KickUser401Response.prototype['error'] = undefined;
89
- var _default = exports["default"] = KickUser401Response;
88
+ CreateLobby401Response.prototype['error'] = undefined;
89
+ var _default = exports["default"] = CreateLobby401Response;
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
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 - **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.375
18
+ * The version of the OpenAPI document: 1.0.0
19
19
  *
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
18
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 - **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
20
  *
21
- * The version of the OpenAPI document: 1.0.375
21
+ * The version of the OpenAPI document: 1.0.0
22
22
  *
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,114 @@
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 _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ 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); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
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 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 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
+ *
21
+ * The version of the OpenAPI document: 1.0.0
22
+ *
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The ErrorResponse model module.
31
+ * @module model/ErrorResponse
32
+ * @version 1.0.0
33
+ */
34
+ var ErrorResponse = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>ErrorResponse</code>.
37
+ * Error response
38
+ * @alias module:model/ErrorResponse
39
+ * @param error {String} Error message
40
+ */
41
+ function ErrorResponse(error) {
42
+ _classCallCheck(this, ErrorResponse);
43
+ ErrorResponse.initialize(this, error);
44
+ }
45
+
46
+ /**
47
+ * Initializes the fields of this object.
48
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
+ * Only for internal use.
50
+ */
51
+ return _createClass(ErrorResponse, null, [{
52
+ key: "initialize",
53
+ value: function initialize(obj, error) {
54
+ obj['error'] = error;
55
+ }
56
+
57
+ /**
58
+ * Constructs a <code>ErrorResponse</code> from a plain JavaScript object, optionally creating a new instance.
59
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
61
+ * @param {module:model/ErrorResponse} obj Optional instance to populate.
62
+ * @return {module:model/ErrorResponse} The populated <code>ErrorResponse</code> instance.
63
+ */
64
+ }, {
65
+ key: "constructFromObject",
66
+ value: function constructFromObject(data, obj) {
67
+ if (data) {
68
+ obj = obj || new ErrorResponse();
69
+ if (data.hasOwnProperty('error')) {
70
+ obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String');
71
+ }
72
+ }
73
+ return obj;
74
+ }
75
+
76
+ /**
77
+ * Validates the JSON data with respect to <code>ErrorResponse</code>.
78
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
79
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ErrorResponse</code>.
80
+ */
81
+ }, {
82
+ key: "validateJSON",
83
+ value: function validateJSON(data) {
84
+ // check to make sure all required properties are present in the JSON string
85
+ var _iterator = _createForOfIteratorHelper(ErrorResponse.RequiredProperties),
86
+ _step;
87
+ try {
88
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
89
+ var property = _step.value;
90
+ if (!data.hasOwnProperty(property)) {
91
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
92
+ }
93
+ }
94
+ // ensure the json data is a string
95
+ } catch (err) {
96
+ _iterator.e(err);
97
+ } finally {
98
+ _iterator.f();
99
+ }
100
+ if (data['error'] && !(typeof data['error'] === 'string' || data['error'] instanceof String)) {
101
+ throw new Error("Expected the field `error` to be a primitive type in the JSON string but got " + data['error']);
102
+ }
103
+ return true;
104
+ }
105
+ }]);
106
+ }();
107
+ ErrorResponse.RequiredProperties = ["error"];
108
+
109
+ /**
110
+ * Error message
111
+ * @member {String} error
112
+ */
113
+ ErrorResponse.prototype['error'] = undefined;
114
+ var _default = exports["default"] = ErrorResponse;
@@ -16,7 +16,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
16
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 - **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.375
19
+ * The version of the OpenAPI document: 1.0.0
20
20
  *
21
21
  *
22
22
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -75,6 +75,9 @@ var GetCurrentUser200Response = /*#__PURE__*/function () {
75
75
  if (data.hasOwnProperty('linked_providers')) {
76
76
  obj['linked_providers'] = _GetCurrentUser200ResponseLinkedProviders["default"].constructFromObject(data['linked_providers']);
77
77
  }
78
+ if (data.hasOwnProperty('lobby_id')) {
79
+ obj['lobby_id'] = _ApiClient["default"].convertToType(data['lobby_id'], 'Number');
80
+ }
78
81
  if (data.hasOwnProperty('metadata')) {
79
82
  obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object);
80
83
  }
@@ -140,6 +143,12 @@ GetCurrentUser200Response.prototype['id'] = undefined;
140
143
  */
141
144
  GetCurrentUser200Response.prototype['linked_providers'] = undefined;
142
145
 
146
+ /**
147
+ * Lobby ID when user is currently in a lobby. -1 means not currently in a lobby.
148
+ * @member {Number} lobby_id
149
+ */
150
+ GetCurrentUser200Response.prototype['lobby_id'] = undefined;
151
+
143
152
  /**
144
153
  * @member {Object} metadata
145
154
  */
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
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 - **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.375
18
+ * The version of the OpenAPI document: 1.0.0
19
19
  *
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,93 @@
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 - **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
+ *
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 GetKv200Response model module.
28
+ * @module model/GetKv200Response
29
+ * @version 1.0.0
30
+ */
31
+ var GetKv200Response = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>GetKv200Response</code>.
34
+ * @alias module:model/GetKv200Response
35
+ */
36
+ function GetKv200Response() {
37
+ _classCallCheck(this, GetKv200Response);
38
+ GetKv200Response.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(GetKv200Response, null, [{
47
+ key: "initialize",
48
+ value: function initialize(obj) {}
49
+
50
+ /**
51
+ * Constructs a <code>GetKv200Response</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/GetKv200Response} obj Optional instance to populate.
55
+ * @return {module:model/GetKv200Response} The populated <code>GetKv200Response</code> instance.
56
+ */
57
+ }, {
58
+ key: "constructFromObject",
59
+ value: function constructFromObject(data, obj) {
60
+ if (data) {
61
+ obj = obj || new GetKv200Response();
62
+ if (data.hasOwnProperty('data')) {
63
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
64
+ }
65
+ if (data.hasOwnProperty('metadata')) {
66
+ obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object);
67
+ }
68
+ }
69
+ return obj;
70
+ }
71
+
72
+ /**
73
+ * Validates the JSON data with respect to <code>GetKv200Response</code>.
74
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
75
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetKv200Response</code>.
76
+ */
77
+ }, {
78
+ key: "validateJSON",
79
+ value: function validateJSON(data) {
80
+ return true;
81
+ }
82
+ }]);
83
+ }();
84
+ /**
85
+ * @member {Object} data
86
+ */
87
+ GetKv200Response.prototype['data'] = undefined;
88
+
89
+ /**
90
+ * @member {Object} metadata
91
+ */
92
+ GetKv200Response.prototype['metadata'] = undefined;
93
+ var _default = exports["default"] = GetKv200Response;