@ughuuu/game_server 1.0.296 → 1.0.319

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 (53) hide show
  1. package/README.md +17 -4
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AuthenticationApi.js +8 -7
  4. package/dist/api/FriendsApi.js +1 -1
  5. package/dist/api/HealthApi.js +1 -1
  6. package/dist/api/HooksApi.js +1 -1
  7. package/dist/api/LeaderboardsApi.js +283 -0
  8. package/dist/api/LobbiesApi.js +58 -7
  9. package/dist/api/UsersApi.js +1 -1
  10. package/dist/index.js +73 -17
  11. package/dist/model/CallHookRequest.js +1 -1
  12. package/dist/model/CreateFriendRequestRequest.js +1 -1
  13. package/dist/model/CreateLobbyRequest.js +1 -1
  14. package/dist/model/DeviceLoginRequest.js +1 -1
  15. package/dist/model/GetCurrentUser200Response.js +1 -1
  16. package/dist/model/HealthResponse.js +1 -1
  17. package/dist/model/JoinLobbyRequest.js +1 -1
  18. package/dist/model/{CreateLobby401Response.js → KickUser401Response.js} +18 -18
  19. package/dist/model/KickUserRequest.js +1 -1
  20. package/dist/model/ListBlockedFriends200Response.js +5 -5
  21. package/dist/model/ListBlockedFriends200ResponseDataInner.js +1 -1
  22. package/dist/model/ListBlockedFriends200ResponseDataInnerRequester.js +1 -1
  23. package/dist/model/ListFriendRequests200Response.js +1 -1
  24. package/dist/model/ListFriendRequests200ResponseIncomingInner.js +1 -1
  25. package/dist/model/ListFriendRequests200ResponseIncomingInnerRequester.js +1 -1
  26. package/dist/model/ListFriendRequests200ResponseMeta.js +1 -1
  27. package/dist/model/ListFriends200Response.js +5 -5
  28. package/dist/model/ListFriends200ResponseDataInner.js +1 -1
  29. package/dist/model/ListLeaderboardRecords200Response.js +124 -0
  30. package/dist/model/ListLeaderboardRecords200ResponseDataInner.js +134 -0
  31. package/dist/model/{ListLobbies200ResponseMeta.js → ListLeaderboardRecords200ResponseMeta.js} +23 -23
  32. package/dist/model/ListLeaderboards200Response.js +124 -0
  33. package/dist/model/ListLeaderboards200ResponseDataInner.js +238 -0
  34. package/dist/model/ListLobbies200Response.js +5 -5
  35. package/dist/model/ListLobbies200ResponseDataInner.js +10 -1
  36. package/dist/model/ListRecordsAroundUser200Response.js +110 -0
  37. package/dist/model/Login200Response.js +1 -1
  38. package/dist/model/Login200ResponseData.js +5 -11
  39. package/dist/model/LoginRequest.js +1 -1
  40. package/dist/model/OAuthSessionData.js +10 -1
  41. package/dist/model/OAuthSessionDataDetails.js +1 -1
  42. package/dist/model/OAuthSessionStatus.js +1 -1
  43. package/dist/model/{Login200ResponseDataUser.js → OauthApiCallback200Response.js} +26 -32
  44. package/dist/model/OauthApiCallbackRequest.js +1 -1
  45. package/dist/model/OauthRequest200Response.js +1 -1
  46. package/dist/model/QuickJoinRequest.js +108 -0
  47. package/dist/model/RefreshToken200Response.js +10 -18
  48. package/dist/model/RefreshToken200ResponseData.js +99 -0
  49. package/dist/model/RefreshTokenRequest.js +1 -1
  50. package/dist/model/UpdateCurrentUserDisplayNameRequest.js +1 -1
  51. package/dist/model/UpdateCurrentUserPasswordRequest.js +1 -1
  52. package/dist/model/UpdateLobbyRequest.js +1 -1
  53. package/package.json +1 -1
@@ -0,0 +1,238 @@
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.319
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 ListLeaderboards200ResponseDataInner model module.
28
+ * @module model/ListLeaderboards200ResponseDataInner
29
+ * @version 1.0.0
30
+ */
31
+ var ListLeaderboards200ResponseDataInner = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>ListLeaderboards200ResponseDataInner</code>.
34
+ * @alias module:model/ListLeaderboards200ResponseDataInner
35
+ */
36
+ function ListLeaderboards200ResponseDataInner() {
37
+ _classCallCheck(this, ListLeaderboards200ResponseDataInner);
38
+ ListLeaderboards200ResponseDataInner.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(ListLeaderboards200ResponseDataInner, null, [{
47
+ key: "initialize",
48
+ value: function initialize(obj) {}
49
+
50
+ /**
51
+ * Constructs a <code>ListLeaderboards200ResponseDataInner</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/ListLeaderboards200ResponseDataInner} obj Optional instance to populate.
55
+ * @return {module:model/ListLeaderboards200ResponseDataInner} The populated <code>ListLeaderboards200ResponseDataInner</code> instance.
56
+ */
57
+ }, {
58
+ key: "constructFromObject",
59
+ value: function constructFromObject(data, obj) {
60
+ if (data) {
61
+ obj = obj || new ListLeaderboards200ResponseDataInner();
62
+ if (data.hasOwnProperty('description')) {
63
+ obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
64
+ }
65
+ if (data.hasOwnProperty('ends_at')) {
66
+ obj['ends_at'] = _ApiClient["default"].convertToType(data['ends_at'], 'Date');
67
+ }
68
+ if (data.hasOwnProperty('id')) {
69
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('inserted_at')) {
72
+ obj['inserted_at'] = _ApiClient["default"].convertToType(data['inserted_at'], 'Date');
73
+ }
74
+ if (data.hasOwnProperty('is_active')) {
75
+ obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean');
76
+ }
77
+ if (data.hasOwnProperty('metadata')) {
78
+ obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object);
79
+ }
80
+ if (data.hasOwnProperty('operator')) {
81
+ obj['operator'] = _ApiClient["default"].convertToType(data['operator'], 'String');
82
+ }
83
+ if (data.hasOwnProperty('sort_order')) {
84
+ obj['sort_order'] = _ApiClient["default"].convertToType(data['sort_order'], 'String');
85
+ }
86
+ if (data.hasOwnProperty('starts_at')) {
87
+ obj['starts_at'] = _ApiClient["default"].convertToType(data['starts_at'], 'Date');
88
+ }
89
+ if (data.hasOwnProperty('title')) {
90
+ obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
91
+ }
92
+ if (data.hasOwnProperty('updated_at')) {
93
+ obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
94
+ }
95
+ }
96
+ return obj;
97
+ }
98
+
99
+ /**
100
+ * Validates the JSON data with respect to <code>ListLeaderboards200ResponseDataInner</code>.
101
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
102
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListLeaderboards200ResponseDataInner</code>.
103
+ */
104
+ }, {
105
+ key: "validateJSON",
106
+ value: function validateJSON(data) {
107
+ // ensure the json data is a string
108
+ if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
109
+ throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
110
+ }
111
+ // ensure the json data is a string
112
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
113
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
114
+ }
115
+ // ensure the json data is a string
116
+ if (data['operator'] && !(typeof data['operator'] === 'string' || data['operator'] instanceof String)) {
117
+ throw new Error("Expected the field `operator` to be a primitive type in the JSON string but got " + data['operator']);
118
+ }
119
+ // ensure the json data is a string
120
+ if (data['sort_order'] && !(typeof data['sort_order'] === 'string' || data['sort_order'] instanceof String)) {
121
+ throw new Error("Expected the field `sort_order` to be a primitive type in the JSON string but got " + data['sort_order']);
122
+ }
123
+ // ensure the json data is a string
124
+ if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
125
+ throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
126
+ }
127
+ return true;
128
+ }
129
+ }]);
130
+ }();
131
+ /**
132
+ * Description
133
+ * @member {String} description
134
+ */
135
+ ListLeaderboards200ResponseDataInner.prototype['description'] = undefined;
136
+
137
+ /**
138
+ * @member {Date} ends_at
139
+ */
140
+ ListLeaderboards200ResponseDataInner.prototype['ends_at'] = undefined;
141
+
142
+ /**
143
+ * Leaderboard ID
144
+ * @member {String} id
145
+ */
146
+ ListLeaderboards200ResponseDataInner.prototype['id'] = undefined;
147
+
148
+ /**
149
+ * @member {Date} inserted_at
150
+ */
151
+ ListLeaderboards200ResponseDataInner.prototype['inserted_at'] = undefined;
152
+
153
+ /**
154
+ * Whether the leaderboard is still active
155
+ * @member {Boolean} is_active
156
+ */
157
+ ListLeaderboards200ResponseDataInner.prototype['is_active'] = undefined;
158
+
159
+ /**
160
+ * Arbitrary metadata
161
+ * @member {Object} metadata
162
+ */
163
+ ListLeaderboards200ResponseDataInner.prototype['metadata'] = undefined;
164
+
165
+ /**
166
+ * Score operator
167
+ * @member {module:model/ListLeaderboards200ResponseDataInner.OperatorEnum} operator
168
+ */
169
+ ListLeaderboards200ResponseDataInner.prototype['operator'] = undefined;
170
+
171
+ /**
172
+ * Sort order - desc (higher is better) or asc (lower is better)
173
+ * @member {module:model/ListLeaderboards200ResponseDataInner.SortOrderEnum} sort_order
174
+ */
175
+ ListLeaderboards200ResponseDataInner.prototype['sort_order'] = undefined;
176
+
177
+ /**
178
+ * @member {Date} starts_at
179
+ */
180
+ ListLeaderboards200ResponseDataInner.prototype['starts_at'] = undefined;
181
+
182
+ /**
183
+ * Display title
184
+ * @member {String} title
185
+ */
186
+ ListLeaderboards200ResponseDataInner.prototype['title'] = undefined;
187
+
188
+ /**
189
+ * @member {Date} updated_at
190
+ */
191
+ ListLeaderboards200ResponseDataInner.prototype['updated_at'] = undefined;
192
+
193
+ /**
194
+ * Allowed values for the <code>operator</code> property.
195
+ * @enum {String}
196
+ * @readonly
197
+ */
198
+ ListLeaderboards200ResponseDataInner['OperatorEnum'] = {
199
+ /**
200
+ * value: "set"
201
+ * @const
202
+ */
203
+ "set": "set",
204
+ /**
205
+ * value: "best"
206
+ * @const
207
+ */
208
+ "best": "best",
209
+ /**
210
+ * value: "incr"
211
+ * @const
212
+ */
213
+ "incr": "incr",
214
+ /**
215
+ * value: "decr"
216
+ * @const
217
+ */
218
+ "decr": "decr"
219
+ };
220
+
221
+ /**
222
+ * Allowed values for the <code>sort_order</code> property.
223
+ * @enum {String}
224
+ * @readonly
225
+ */
226
+ ListLeaderboards200ResponseDataInner['SortOrderEnum'] = {
227
+ /**
228
+ * value: "desc"
229
+ * @const
230
+ */
231
+ "desc": "desc",
232
+ /**
233
+ * value: "asc"
234
+ * @const
235
+ */
236
+ "asc": "asc"
237
+ };
238
+ var _default = exports["default"] = ListLeaderboards200ResponseDataInner;
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _ListLeaderboardRecords200ResponseMeta = _interopRequireDefault(require("./ListLeaderboardRecords200ResponseMeta"));
8
9
  var _ListLobbies200ResponseDataInner = _interopRequireDefault(require("./ListLobbies200ResponseDataInner"));
9
- var _ListLobbies200ResponseMeta = _interopRequireDefault(require("./ListLobbies200ResponseMeta"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
11
  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); }
12
12
  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; } } }; }
@@ -20,7 +20,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
20
20
  * Game Server API
21
21
  * API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow or apple sdk flow - **Steam (OpenID)**: Use `/api/v1/auth/steam` flow Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Users Users endpoints cover the user lifecycle and profile features. Key highlights: - **Registration and login** (email/password, device token for SDKs, and OAuth providers) - **Profile metadata** (JSON blob per user) and editable profile fields - **Account lifecycle**: password reset, email confirmation, and account deletion - **Sessions & tokens**: both browser sessions and JWT-based API tokens are supported ## Friends The Friends domain offers lightweight social features: - **Friend requests** (send / accept / reject / block flows) - **Friend listing & pagination**, with basic privacy controls - **Domain helpers** to manage and query friend relationships from API or UI contexts ## Lobbies Lobbies provide matchmaking / room management primitives. Highlights: - **Create / list / update / delete** lobbies with rich metadata (mode, region, tags) - **Host-managed or hostless** modes (hostless allowed internally, not creatable via public API) - **Membership management**: join, leave, kick users, and automatic host transfer - **Controls & protection**: max users, hidden/locked states, and optional password protection - **Hidden lobbies** are excluded from public listings; public listing endpoints are paginated
22
22
  *
23
- * The version of the OpenAPI document: 1.0.296
23
+ * The version of the OpenAPI document: 1.0.319
24
24
  *
25
25
  *
26
26
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -68,7 +68,7 @@ var ListLobbies200Response = /*#__PURE__*/function () {
68
68
  obj['data'] = _ApiClient["default"].convertToType(data['data'], [_ListLobbies200ResponseDataInner["default"]]);
69
69
  }
70
70
  if (data.hasOwnProperty('meta')) {
71
- obj['meta'] = _ListLobbies200ResponseMeta["default"].constructFromObject(data['meta']);
71
+ obj['meta'] = _ListLeaderboardRecords200ResponseMeta["default"].constructFromObject(data['meta']);
72
72
  }
73
73
  }
74
74
  return obj;
@@ -106,7 +106,7 @@ var ListLobbies200Response = /*#__PURE__*/function () {
106
106
  // validate the optional field `meta`
107
107
  if (data['meta']) {
108
108
  // data not null
109
- _ListLobbies200ResponseMeta["default"].validateJSON(data['meta']);
109
+ _ListLeaderboardRecords200ResponseMeta["default"].validateJSON(data['meta']);
110
110
  }
111
111
  return true;
112
112
  }
@@ -118,7 +118,7 @@ var ListLobbies200Response = /*#__PURE__*/function () {
118
118
  ListLobbies200Response.prototype['data'] = undefined;
119
119
 
120
120
  /**
121
- * @member {module:model/ListLobbies200ResponseMeta} meta
121
+ * @member {module:model/ListLeaderboardRecords200ResponseMeta} meta
122
122
  */
123
123
  ListLobbies200Response.prototype['meta'] = undefined;
124
124
  var _default = exports["default"] = ListLobbies200Response;
@@ -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.296
18
+ * The version of the OpenAPI document: 1.0.319
19
19
  *
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -74,6 +74,9 @@ var ListLobbies200ResponseDataInner = /*#__PURE__*/function () {
74
74
  if (data.hasOwnProperty('is_locked')) {
75
75
  obj['is_locked'] = _ApiClient["default"].convertToType(data['is_locked'], 'Boolean');
76
76
  }
77
+ if (data.hasOwnProperty('is_passworded')) {
78
+ obj['is_passworded'] = _ApiClient["default"].convertToType(data['is_passworded'], 'Boolean');
79
+ }
77
80
  if (data.hasOwnProperty('max_users')) {
78
81
  obj['max_users'] = _ApiClient["default"].convertToType(data['max_users'], 'Number');
79
82
  }
@@ -133,6 +136,12 @@ ListLobbies200ResponseDataInner.prototype['is_hidden'] = undefined;
133
136
  */
134
137
  ListLobbies200ResponseDataInner.prototype['is_locked'] = undefined;
135
138
 
139
+ /**
140
+ * Whether this lobby requires a password to join
141
+ * @member {Boolean} is_passworded
142
+ */
143
+ ListLobbies200ResponseDataInner.prototype['is_passworded'] = undefined;
144
+
136
145
  /**
137
146
  * Maximum number of users allowed
138
147
  * @member {Number} max_users
@@ -0,0 +1,110 @@
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 _ListLeaderboardRecords200ResponseDataInner = _interopRequireDefault(require("./ListLeaderboardRecords200ResponseDataInner"));
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 _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; } } }; }
12
+ 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; } }
13
+ 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; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ 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); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
+ * Game Server API
20
+ * API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow 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
+ *
22
+ * The version of the OpenAPI document: 1.0.319
23
+ *
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+ /**
31
+ * The ListRecordsAroundUser200Response model module.
32
+ * @module model/ListRecordsAroundUser200Response
33
+ * @version 1.0.0
34
+ */
35
+ var ListRecordsAroundUser200Response = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new <code>ListRecordsAroundUser200Response</code>.
38
+ * @alias module:model/ListRecordsAroundUser200Response
39
+ */
40
+ function ListRecordsAroundUser200Response() {
41
+ _classCallCheck(this, ListRecordsAroundUser200Response);
42
+ ListRecordsAroundUser200Response.initialize(this);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(ListRecordsAroundUser200Response, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+
54
+ /**
55
+ * Constructs a <code>ListRecordsAroundUser200Response</code> from a plain JavaScript object, optionally creating a new instance.
56
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
57
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
58
+ * @param {module:model/ListRecordsAroundUser200Response} obj Optional instance to populate.
59
+ * @return {module:model/ListRecordsAroundUser200Response} The populated <code>ListRecordsAroundUser200Response</code> instance.
60
+ */
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new ListRecordsAroundUser200Response();
66
+ if (data.hasOwnProperty('data')) {
67
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_ListLeaderboardRecords200ResponseDataInner["default"]]);
68
+ }
69
+ }
70
+ return obj;
71
+ }
72
+
73
+ /**
74
+ * Validates the JSON data with respect to <code>ListRecordsAroundUser200Response</code>.
75
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
76
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListRecordsAroundUser200Response</code>.
77
+ */
78
+ }, {
79
+ key: "validateJSON",
80
+ value: function validateJSON(data) {
81
+ if (data['data']) {
82
+ // data not null
83
+ // ensure the json data is an array
84
+ if (!Array.isArray(data['data'])) {
85
+ throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
86
+ }
87
+ // validate the optional field `data` (array)
88
+ var _iterator = _createForOfIteratorHelper(data['data']),
89
+ _step;
90
+ try {
91
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
92
+ var item = _step.value;
93
+ _ListLeaderboardRecords200ResponseDataInner["default"].validateJSON(item);
94
+ }
95
+ } catch (err) {
96
+ _iterator.e(err);
97
+ } finally {
98
+ _iterator.f();
99
+ }
100
+ ;
101
+ }
102
+ return true;
103
+ }
104
+ }]);
105
+ }();
106
+ /**
107
+ * @member {Array.<module:model/ListLeaderboardRecords200ResponseDataInner>} data
108
+ */
109
+ ListRecordsAroundUser200Response.prototype['data'] = undefined;
110
+ var _default = exports["default"] = ListRecordsAroundUser200Response;
@@ -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.296
19
+ * The version of the OpenAPI document: 1.0.319
20
20
  *
21
21
  *
22
22
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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 _Login200ResponseDataUser = _interopRequireDefault(require("./Login200ResponseDataUser"));
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -16,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
16
15
  * Game Server API
17
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
18
17
  *
19
- * The version of the OpenAPI document: 1.0.296
18
+ * The version of the OpenAPI document: 1.0.319
20
19
  *
21
20
  *
22
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -69,8 +68,8 @@ var Login200ResponseData = /*#__PURE__*/function () {
69
68
  if (data.hasOwnProperty('refresh_token')) {
70
69
  obj['refresh_token'] = _ApiClient["default"].convertToType(data['refresh_token'], 'String');
71
70
  }
72
- if (data.hasOwnProperty('user')) {
73
- obj['user'] = _Login200ResponseDataUser["default"].constructFromObject(data['user']);
71
+ if (data.hasOwnProperty('user_id')) {
72
+ obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
74
73
  }
75
74
  }
76
75
  return obj;
@@ -92,11 +91,6 @@ var Login200ResponseData = /*#__PURE__*/function () {
92
91
  if (data['refresh_token'] && !(typeof data['refresh_token'] === 'string' || data['refresh_token'] instanceof String)) {
93
92
  throw new Error("Expected the field `refresh_token` to be a primitive type in the JSON string but got " + data['refresh_token']);
94
93
  }
95
- // validate the optional field `user`
96
- if (data['user']) {
97
- // data not null
98
- _Login200ResponseDataUser["default"].validateJSON(data['user']);
99
- }
100
94
  return true;
101
95
  }
102
96
  }]);
@@ -120,7 +114,7 @@ Login200ResponseData.prototype['expires_in'] = undefined;
120
114
  Login200ResponseData.prototype['refresh_token'] = undefined;
121
115
 
122
116
  /**
123
- * @member {module:model/Login200ResponseDataUser} user
117
+ * @member {Number} user_id
124
118
  */
125
- Login200ResponseData.prototype['user'] = undefined;
119
+ Login200ResponseData.prototype['user_id'] = undefined;
126
120
  var _default = exports["default"] = Login200ResponseData;
@@ -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.296
21
+ * The version of the OpenAPI document: 1.0.319
22
22
  *
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.296
19
+ * The version of the OpenAPI document: 1.0.319
20
20
  *
21
21
  *
22
22
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -73,6 +73,9 @@ var OAuthSessionData = /*#__PURE__*/function () {
73
73
  if (data.hasOwnProperty('refresh_token')) {
74
74
  obj['refresh_token'] = _ApiClient["default"].convertToType(data['refresh_token'], 'String');
75
75
  }
76
+ if (data.hasOwnProperty('user_id')) {
77
+ obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
78
+ }
76
79
  }
77
80
  return obj;
78
81
  }
@@ -124,4 +127,10 @@ OAuthSessionData.prototype['expires_in'] = undefined;
124
127
  * @member {String} refresh_token
125
128
  */
126
129
  OAuthSessionData.prototype['refresh_token'] = undefined;
130
+
131
+ /**
132
+ * User id that was authenticated for this session (when completed)
133
+ * @member {Number} user_id
134
+ */
135
+ OAuthSessionData.prototype['user_id'] = undefined;
127
136
  var _default = exports["default"] = OAuthSessionData;
@@ -17,7 +17,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
17
17
  * Game Server API
18
18
  * 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
19
19
  *
20
- * The version of the OpenAPI document: 1.0.296
20
+ * The version of the OpenAPI document: 1.0.319
21
21
  *
22
22
  *
23
23
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
19
19
  * Game Server API
20
20
  * API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow or apple sdk flow - **Steam (OpenID)**: Use `/api/v1/auth/steam` flow Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Users Users endpoints cover the user lifecycle and profile features. Key highlights: - **Registration and login** (email/password, device token for SDKs, and OAuth providers) - **Profile metadata** (JSON blob per user) and editable profile fields - **Account lifecycle**: password reset, email confirmation, and account deletion - **Sessions & tokens**: both browser sessions and JWT-based API tokens are supported ## Friends The Friends domain offers lightweight social features: - **Friend requests** (send / accept / reject / block flows) - **Friend listing & pagination**, with basic privacy controls - **Domain helpers** to manage and query friend relationships from API or UI contexts ## Lobbies Lobbies provide matchmaking / room management primitives. Highlights: - **Create / list / update / delete** lobbies with rich metadata (mode, region, tags) - **Host-managed or hostless** modes (hostless allowed internally, not creatable via public API) - **Membership management**: join, leave, kick users, and automatic host transfer - **Controls & protection**: max users, hidden/locked states, and optional password protection - **Hidden lobbies** are excluded from public listings; public listing endpoints are paginated
21
21
  *
22
- * The version of the OpenAPI document: 1.0.296
22
+ * The version of the OpenAPI document: 1.0.319
23
23
  *
24
24
  *
25
25
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).