@ughuuu/game_server 1.0.0 → 1.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +30 -30
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AuthenticationApi.js +1 -1
  4. package/dist/api/HealthApi.js +1 -1
  5. package/dist/api/UsersApi.js +1 -1
  6. package/dist/model/GetCurrentUser200Response.js +1 -1
  7. package/dist/model/GetCurrentUser200ResponseData.js +1 -1
  8. package/dist/model/HealthResponse.js +1 -1
  9. package/dist/model/Login200Response.js +1 -1
  10. package/dist/model/Login200ResponseData.js +1 -1
  11. package/dist/model/Login200ResponseDataUser.js +1 -1
  12. package/dist/model/LoginRequest.js +1 -1
  13. package/dist/model/Logout200Response.js +1 -1
  14. package/dist/model/OauthRequest200Response.js +1 -1
  15. package/dist/model/OauthSessionStatus200Response.js +1 -1
  16. package/dist/model/RefreshToken200Response.js +1 -1
  17. package/dist/model/RefreshToken200ResponseData.js +1 -1
  18. package/dist/model/RefreshTokenRequest.js +1 -1
  19. package/package.json +1 -1
  20. package/dist/model/GameServerWebApiV1MeControllerShow200Response.js +0 -91
  21. package/dist/model/GameServerWebApiV1MeControllerShow200ResponseData.js +0 -125
  22. package/dist/model/GameServerWebApiV1SessionControllerCreate200Response.js +0 -91
  23. package/dist/model/GameServerWebApiV1SessionControllerCreate200ResponseData.js +0 -139
  24. package/dist/model/GameServerWebApiV1SessionControllerCreate200ResponseDataUser.js +0 -97
  25. package/dist/model/GameServerWebApiV1SessionControllerCreateRequest.js +0 -128
  26. package/dist/model/GameServerWebApiV1SessionControllerDelete200Response.js +0 -89
  27. package/dist/model/GameServerWebApiV1SessionControllerRefresh200Response.js +0 -91
  28. package/dist/model/GameServerWebApiV1SessionControllerRefresh200ResponseData.js +0 -126
  29. package/dist/model/GameServerWebApiV1SessionControllerRefreshRequest.js +0 -113
  30. package/dist/model/GameServerWebAuthControllerApiCallback200Response.js +0 -91
  31. package/dist/model/GameServerWebAuthControllerApiCallback200ResponseData.js +0 -139
  32. package/dist/model/GameServerWebAuthControllerApiCallback200ResponseDataUser.js +0 -109
  33. package/dist/model/GameServerWebAuthControllerApiCallback409Response.js +0 -97
  34. package/dist/model/GameServerWebAuthControllerApiRequest200Response.js +0 -103
  35. package/dist/model/GameServerWebAuthControllerApiSessionStatus200Response.js +0 -140
@@ -1,91 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _GameServerWebApiV1SessionControllerCreate200ResponseData = _interopRequireDefault(require("./GameServerWebApiV1SessionControllerCreate200ResponseData"));
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
12
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
13
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
14
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
- * Game Server API
17
- * API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow (API flow not yet implemented) Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Endpoints All API endpoints are under `/api/v1`
18
- *
19
- * The version of the OpenAPI document: 1.0.0
20
- *
21
- *
22
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
- * https://openapi-generator.tech
24
- * Do not edit the class manually.
25
- *
26
- */
27
- /**
28
- * The GameServerWebApiV1SessionControllerCreate200Response model module.
29
- * @module model/GameServerWebApiV1SessionControllerCreate200Response
30
- * @version 1.0.0
31
- */
32
- var GameServerWebApiV1SessionControllerCreate200Response = /*#__PURE__*/function () {
33
- /**
34
- * Constructs a new <code>GameServerWebApiV1SessionControllerCreate200Response</code>.
35
- * @alias module:model/GameServerWebApiV1SessionControllerCreate200Response
36
- */
37
- function GameServerWebApiV1SessionControllerCreate200Response() {
38
- _classCallCheck(this, GameServerWebApiV1SessionControllerCreate200Response);
39
- GameServerWebApiV1SessionControllerCreate200Response.initialize(this);
40
- }
41
-
42
- /**
43
- * Initializes the fields of this object.
44
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
- * Only for internal use.
46
- */
47
- return _createClass(GameServerWebApiV1SessionControllerCreate200Response, null, [{
48
- key: "initialize",
49
- value: function initialize(obj) {}
50
-
51
- /**
52
- * Constructs a <code>GameServerWebApiV1SessionControllerCreate200Response</code> from a plain JavaScript object, optionally creating a new instance.
53
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
54
- * @param {Object} data The plain JavaScript object bearing properties of interest.
55
- * @param {module:model/GameServerWebApiV1SessionControllerCreate200Response} obj Optional instance to populate.
56
- * @return {module:model/GameServerWebApiV1SessionControllerCreate200Response} The populated <code>GameServerWebApiV1SessionControllerCreate200Response</code> instance.
57
- */
58
- }, {
59
- key: "constructFromObject",
60
- value: function constructFromObject(data, obj) {
61
- if (data) {
62
- obj = obj || new GameServerWebApiV1SessionControllerCreate200Response();
63
- if (data.hasOwnProperty('data')) {
64
- obj['data'] = _GameServerWebApiV1SessionControllerCreate200ResponseData["default"].constructFromObject(data['data']);
65
- }
66
- }
67
- return obj;
68
- }
69
-
70
- /**
71
- * Validates the JSON data with respect to <code>GameServerWebApiV1SessionControllerCreate200Response</code>.
72
- * @param {Object} data The plain JavaScript object bearing properties of interest.
73
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GameServerWebApiV1SessionControllerCreate200Response</code>.
74
- */
75
- }, {
76
- key: "validateJSON",
77
- value: function validateJSON(data) {
78
- // validate the optional field `data`
79
- if (data['data']) {
80
- // data not null
81
- _GameServerWebApiV1SessionControllerCreate200ResponseData["default"].validateJSON(data['data']);
82
- }
83
- return true;
84
- }
85
- }]);
86
- }();
87
- /**
88
- * @member {module:model/GameServerWebApiV1SessionControllerCreate200ResponseData} data
89
- */
90
- GameServerWebApiV1SessionControllerCreate200Response.prototype['data'] = undefined;
91
- var _default = exports["default"] = GameServerWebApiV1SessionControllerCreate200Response;
@@ -1,139 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _GameServerWebApiV1SessionControllerCreate200ResponseDataUser = _interopRequireDefault(require("./GameServerWebApiV1SessionControllerCreate200ResponseDataUser"));
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
12
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
13
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
14
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
- * Game Server API
17
- * API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow (API flow not yet implemented) Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Endpoints All API endpoints are under `/api/v1`
18
- *
19
- * The version of the OpenAPI document: 1.0.0
20
- *
21
- *
22
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
- * https://openapi-generator.tech
24
- * Do not edit the class manually.
25
- *
26
- */
27
- /**
28
- * The GameServerWebApiV1SessionControllerCreate200ResponseData model module.
29
- * @module model/GameServerWebApiV1SessionControllerCreate200ResponseData
30
- * @version 1.0.0
31
- */
32
- var GameServerWebApiV1SessionControllerCreate200ResponseData = /*#__PURE__*/function () {
33
- /**
34
- * Constructs a new <code>GameServerWebApiV1SessionControllerCreate200ResponseData</code>.
35
- * @alias module:model/GameServerWebApiV1SessionControllerCreate200ResponseData
36
- */
37
- function GameServerWebApiV1SessionControllerCreate200ResponseData() {
38
- _classCallCheck(this, GameServerWebApiV1SessionControllerCreate200ResponseData);
39
- GameServerWebApiV1SessionControllerCreate200ResponseData.initialize(this);
40
- }
41
-
42
- /**
43
- * Initializes the fields of this object.
44
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
- * Only for internal use.
46
- */
47
- return _createClass(GameServerWebApiV1SessionControllerCreate200ResponseData, null, [{
48
- key: "initialize",
49
- value: function initialize(obj) {}
50
-
51
- /**
52
- * Constructs a <code>GameServerWebApiV1SessionControllerCreate200ResponseData</code> from a plain JavaScript object, optionally creating a new instance.
53
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
54
- * @param {Object} data The plain JavaScript object bearing properties of interest.
55
- * @param {module:model/GameServerWebApiV1SessionControllerCreate200ResponseData} obj Optional instance to populate.
56
- * @return {module:model/GameServerWebApiV1SessionControllerCreate200ResponseData} The populated <code>GameServerWebApiV1SessionControllerCreate200ResponseData</code> instance.
57
- */
58
- }, {
59
- key: "constructFromObject",
60
- value: function constructFromObject(data, obj) {
61
- if (data) {
62
- obj = obj || new GameServerWebApiV1SessionControllerCreate200ResponseData();
63
- if (data.hasOwnProperty('access_token')) {
64
- obj['access_token'] = _ApiClient["default"].convertToType(data['access_token'], 'String');
65
- }
66
- if (data.hasOwnProperty('expires_in')) {
67
- obj['expires_in'] = _ApiClient["default"].convertToType(data['expires_in'], 'Number');
68
- }
69
- if (data.hasOwnProperty('refresh_token')) {
70
- obj['refresh_token'] = _ApiClient["default"].convertToType(data['refresh_token'], 'String');
71
- }
72
- if (data.hasOwnProperty('token_type')) {
73
- obj['token_type'] = _ApiClient["default"].convertToType(data['token_type'], 'String');
74
- }
75
- if (data.hasOwnProperty('user')) {
76
- obj['user'] = _GameServerWebApiV1SessionControllerCreate200ResponseDataUser["default"].constructFromObject(data['user']);
77
- }
78
- }
79
- return obj;
80
- }
81
-
82
- /**
83
- * Validates the JSON data with respect to <code>GameServerWebApiV1SessionControllerCreate200ResponseData</code>.
84
- * @param {Object} data The plain JavaScript object bearing properties of interest.
85
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GameServerWebApiV1SessionControllerCreate200ResponseData</code>.
86
- */
87
- }, {
88
- key: "validateJSON",
89
- value: function validateJSON(data) {
90
- // ensure the json data is a string
91
- if (data['access_token'] && !(typeof data['access_token'] === 'string' || data['access_token'] instanceof String)) {
92
- throw new Error("Expected the field `access_token` to be a primitive type in the JSON string but got " + data['access_token']);
93
- }
94
- // ensure the json data is a string
95
- if (data['refresh_token'] && !(typeof data['refresh_token'] === 'string' || data['refresh_token'] instanceof String)) {
96
- throw new Error("Expected the field `refresh_token` to be a primitive type in the JSON string but got " + data['refresh_token']);
97
- }
98
- // ensure the json data is a string
99
- if (data['token_type'] && !(typeof data['token_type'] === 'string' || data['token_type'] instanceof String)) {
100
- throw new Error("Expected the field `token_type` to be a primitive type in the JSON string but got " + data['token_type']);
101
- }
102
- // validate the optional field `user`
103
- if (data['user']) {
104
- // data not null
105
- _GameServerWebApiV1SessionControllerCreate200ResponseDataUser["default"].validateJSON(data['user']);
106
- }
107
- return true;
108
- }
109
- }]);
110
- }();
111
- /**
112
- * JWT access token (15 min)
113
- * @member {String} access_token
114
- */
115
- GameServerWebApiV1SessionControllerCreate200ResponseData.prototype['access_token'] = undefined;
116
-
117
- /**
118
- * Seconds until access token expires
119
- * @member {Number} expires_in
120
- */
121
- GameServerWebApiV1SessionControllerCreate200ResponseData.prototype['expires_in'] = undefined;
122
-
123
- /**
124
- * JWT refresh token (30 days)
125
- * @member {String} refresh_token
126
- */
127
- GameServerWebApiV1SessionControllerCreate200ResponseData.prototype['refresh_token'] = undefined;
128
-
129
- /**
130
- * Token type
131
- * @member {String} token_type
132
- */
133
- GameServerWebApiV1SessionControllerCreate200ResponseData.prototype['token_type'] = undefined;
134
-
135
- /**
136
- * @member {module:model/GameServerWebApiV1SessionControllerCreate200ResponseDataUser} user
137
- */
138
- GameServerWebApiV1SessionControllerCreate200ResponseData.prototype['user'] = undefined;
139
- var _default = exports["default"] = GameServerWebApiV1SessionControllerCreate200ResponseData;
@@ -1,97 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
- * Game Server API
16
- * API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow (API flow not yet implemented) Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Endpoints All API endpoints are under `/api/v1`
17
- *
18
- * The version of the OpenAPI document: 1.0.0
19
- *
20
- *
21
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
22
- * https://openapi-generator.tech
23
- * Do not edit the class manually.
24
- *
25
- */
26
- /**
27
- * The GameServerWebApiV1SessionControllerCreate200ResponseDataUser model module.
28
- * @module model/GameServerWebApiV1SessionControllerCreate200ResponseDataUser
29
- * @version 1.0.0
30
- */
31
- var GameServerWebApiV1SessionControllerCreate200ResponseDataUser = /*#__PURE__*/function () {
32
- /**
33
- * Constructs a new <code>GameServerWebApiV1SessionControllerCreate200ResponseDataUser</code>.
34
- * @alias module:model/GameServerWebApiV1SessionControllerCreate200ResponseDataUser
35
- */
36
- function GameServerWebApiV1SessionControllerCreate200ResponseDataUser() {
37
- _classCallCheck(this, GameServerWebApiV1SessionControllerCreate200ResponseDataUser);
38
- GameServerWebApiV1SessionControllerCreate200ResponseDataUser.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(GameServerWebApiV1SessionControllerCreate200ResponseDataUser, null, [{
47
- key: "initialize",
48
- value: function initialize(obj) {}
49
-
50
- /**
51
- * Constructs a <code>GameServerWebApiV1SessionControllerCreate200ResponseDataUser</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/GameServerWebApiV1SessionControllerCreate200ResponseDataUser} obj Optional instance to populate.
55
- * @return {module:model/GameServerWebApiV1SessionControllerCreate200ResponseDataUser} The populated <code>GameServerWebApiV1SessionControllerCreate200ResponseDataUser</code> instance.
56
- */
57
- }, {
58
- key: "constructFromObject",
59
- value: function constructFromObject(data, obj) {
60
- if (data) {
61
- obj = obj || new GameServerWebApiV1SessionControllerCreate200ResponseDataUser();
62
- if (data.hasOwnProperty('email')) {
63
- obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
64
- }
65
- if (data.hasOwnProperty('id')) {
66
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
67
- }
68
- }
69
- return obj;
70
- }
71
-
72
- /**
73
- * Validates the JSON data with respect to <code>GameServerWebApiV1SessionControllerCreate200ResponseDataUser</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>GameServerWebApiV1SessionControllerCreate200ResponseDataUser</code>.
76
- */
77
- }, {
78
- key: "validateJSON",
79
- value: function validateJSON(data) {
80
- // ensure the json data is a string
81
- if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
82
- throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
83
- }
84
- return true;
85
- }
86
- }]);
87
- }();
88
- /**
89
- * @member {String} email
90
- */
91
- GameServerWebApiV1SessionControllerCreate200ResponseDataUser.prototype['email'] = undefined;
92
-
93
- /**
94
- * @member {Number} id
95
- */
96
- GameServerWebApiV1SessionControllerCreate200ResponseDataUser.prototype['id'] = undefined;
97
- var _default = exports["default"] = GameServerWebApiV1SessionControllerCreate200ResponseDataUser;
@@ -1,128 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
- function _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 - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow (API flow not yet implemented) Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Endpoints All API endpoints are under `/api/v1`
20
- *
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 GameServerWebApiV1SessionControllerCreateRequest model module.
31
- * @module model/GameServerWebApiV1SessionControllerCreateRequest
32
- * @version 1.0.0
33
- */
34
- var GameServerWebApiV1SessionControllerCreateRequest = /*#__PURE__*/function () {
35
- /**
36
- * Constructs a new <code>GameServerWebApiV1SessionControllerCreateRequest</code>.
37
- * @alias module:model/GameServerWebApiV1SessionControllerCreateRequest
38
- * @param email {String} User email
39
- * @param password {String} User password
40
- */
41
- function GameServerWebApiV1SessionControllerCreateRequest(email, password) {
42
- _classCallCheck(this, GameServerWebApiV1SessionControllerCreateRequest);
43
- GameServerWebApiV1SessionControllerCreateRequest.initialize(this, email, password);
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(GameServerWebApiV1SessionControllerCreateRequest, null, [{
52
- key: "initialize",
53
- value: function initialize(obj, email, password) {
54
- obj['email'] = email;
55
- obj['password'] = password;
56
- }
57
-
58
- /**
59
- * Constructs a <code>GameServerWebApiV1SessionControllerCreateRequest</code> from a plain JavaScript object, optionally creating a new instance.
60
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
- * @param {Object} data The plain JavaScript object bearing properties of interest.
62
- * @param {module:model/GameServerWebApiV1SessionControllerCreateRequest} obj Optional instance to populate.
63
- * @return {module:model/GameServerWebApiV1SessionControllerCreateRequest} The populated <code>GameServerWebApiV1SessionControllerCreateRequest</code> instance.
64
- */
65
- }, {
66
- key: "constructFromObject",
67
- value: function constructFromObject(data, obj) {
68
- if (data) {
69
- obj = obj || new GameServerWebApiV1SessionControllerCreateRequest();
70
- if (data.hasOwnProperty('email')) {
71
- obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
72
- }
73
- if (data.hasOwnProperty('password')) {
74
- obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
75
- }
76
- }
77
- return obj;
78
- }
79
-
80
- /**
81
- * Validates the JSON data with respect to <code>GameServerWebApiV1SessionControllerCreateRequest</code>.
82
- * @param {Object} data The plain JavaScript object bearing properties of interest.
83
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GameServerWebApiV1SessionControllerCreateRequest</code>.
84
- */
85
- }, {
86
- key: "validateJSON",
87
- value: function validateJSON(data) {
88
- // check to make sure all required properties are present in the JSON string
89
- var _iterator = _createForOfIteratorHelper(GameServerWebApiV1SessionControllerCreateRequest.RequiredProperties),
90
- _step;
91
- try {
92
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
93
- var property = _step.value;
94
- if (!data.hasOwnProperty(property)) {
95
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
96
- }
97
- }
98
- // ensure the json data is a string
99
- } catch (err) {
100
- _iterator.e(err);
101
- } finally {
102
- _iterator.f();
103
- }
104
- if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
105
- throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
106
- }
107
- // ensure the json data is a string
108
- if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
109
- throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
110
- }
111
- return true;
112
- }
113
- }]);
114
- }();
115
- GameServerWebApiV1SessionControllerCreateRequest.RequiredProperties = ["email", "password"];
116
-
117
- /**
118
- * User email
119
- * @member {String} email
120
- */
121
- GameServerWebApiV1SessionControllerCreateRequest.prototype['email'] = undefined;
122
-
123
- /**
124
- * User password
125
- * @member {String} password
126
- */
127
- GameServerWebApiV1SessionControllerCreateRequest.prototype['password'] = undefined;
128
- var _default = exports["default"] = GameServerWebApiV1SessionControllerCreateRequest;
@@ -1,89 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
- * Game Server API
16
- * API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow (API flow not yet implemented) Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Endpoints All API endpoints are under `/api/v1`
17
- *
18
- * The version of the OpenAPI document: 1.0.0
19
- *
20
- *
21
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
22
- * https://openapi-generator.tech
23
- * Do not edit the class manually.
24
- *
25
- */
26
- /**
27
- * The GameServerWebApiV1SessionControllerDelete200Response model module.
28
- * @module model/GameServerWebApiV1SessionControllerDelete200Response
29
- * @version 1.0.0
30
- */
31
- var GameServerWebApiV1SessionControllerDelete200Response = /*#__PURE__*/function () {
32
- /**
33
- * Constructs a new <code>GameServerWebApiV1SessionControllerDelete200Response</code>.
34
- * @alias module:model/GameServerWebApiV1SessionControllerDelete200Response
35
- */
36
- function GameServerWebApiV1SessionControllerDelete200Response() {
37
- _classCallCheck(this, GameServerWebApiV1SessionControllerDelete200Response);
38
- GameServerWebApiV1SessionControllerDelete200Response.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(GameServerWebApiV1SessionControllerDelete200Response, null, [{
47
- key: "initialize",
48
- value: function initialize(obj) {}
49
-
50
- /**
51
- * Constructs a <code>GameServerWebApiV1SessionControllerDelete200Response</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/GameServerWebApiV1SessionControllerDelete200Response} obj Optional instance to populate.
55
- * @return {module:model/GameServerWebApiV1SessionControllerDelete200Response} The populated <code>GameServerWebApiV1SessionControllerDelete200Response</code> instance.
56
- */
57
- }, {
58
- key: "constructFromObject",
59
- value: function constructFromObject(data, obj) {
60
- if (data) {
61
- obj = obj || new GameServerWebApiV1SessionControllerDelete200Response();
62
- if (data.hasOwnProperty('message')) {
63
- obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
64
- }
65
- }
66
- return obj;
67
- }
68
-
69
- /**
70
- * Validates the JSON data with respect to <code>GameServerWebApiV1SessionControllerDelete200Response</code>.
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>GameServerWebApiV1SessionControllerDelete200Response</code>.
73
- */
74
- }, {
75
- key: "validateJSON",
76
- value: function validateJSON(data) {
77
- // ensure the json data is a string
78
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
79
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
80
- }
81
- return true;
82
- }
83
- }]);
84
- }();
85
- /**
86
- * @member {String} message
87
- */
88
- GameServerWebApiV1SessionControllerDelete200Response.prototype['message'] = undefined;
89
- var _default = exports["default"] = GameServerWebApiV1SessionControllerDelete200Response;
@@ -1,91 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _GameServerWebApiV1SessionControllerRefresh200ResponseData = _interopRequireDefault(require("./GameServerWebApiV1SessionControllerRefresh200ResponseData"));
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
12
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
13
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
14
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
- * Game Server API
17
- * API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow (API flow not yet implemented) Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Endpoints All API endpoints are under `/api/v1`
18
- *
19
- * The version of the OpenAPI document: 1.0.0
20
- *
21
- *
22
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
- * https://openapi-generator.tech
24
- * Do not edit the class manually.
25
- *
26
- */
27
- /**
28
- * The GameServerWebApiV1SessionControllerRefresh200Response model module.
29
- * @module model/GameServerWebApiV1SessionControllerRefresh200Response
30
- * @version 1.0.0
31
- */
32
- var GameServerWebApiV1SessionControllerRefresh200Response = /*#__PURE__*/function () {
33
- /**
34
- * Constructs a new <code>GameServerWebApiV1SessionControllerRefresh200Response</code>.
35
- * @alias module:model/GameServerWebApiV1SessionControllerRefresh200Response
36
- */
37
- function GameServerWebApiV1SessionControllerRefresh200Response() {
38
- _classCallCheck(this, GameServerWebApiV1SessionControllerRefresh200Response);
39
- GameServerWebApiV1SessionControllerRefresh200Response.initialize(this);
40
- }
41
-
42
- /**
43
- * Initializes the fields of this object.
44
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
- * Only for internal use.
46
- */
47
- return _createClass(GameServerWebApiV1SessionControllerRefresh200Response, null, [{
48
- key: "initialize",
49
- value: function initialize(obj) {}
50
-
51
- /**
52
- * Constructs a <code>GameServerWebApiV1SessionControllerRefresh200Response</code> from a plain JavaScript object, optionally creating a new instance.
53
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
54
- * @param {Object} data The plain JavaScript object bearing properties of interest.
55
- * @param {module:model/GameServerWebApiV1SessionControllerRefresh200Response} obj Optional instance to populate.
56
- * @return {module:model/GameServerWebApiV1SessionControllerRefresh200Response} The populated <code>GameServerWebApiV1SessionControllerRefresh200Response</code> instance.
57
- */
58
- }, {
59
- key: "constructFromObject",
60
- value: function constructFromObject(data, obj) {
61
- if (data) {
62
- obj = obj || new GameServerWebApiV1SessionControllerRefresh200Response();
63
- if (data.hasOwnProperty('data')) {
64
- obj['data'] = _GameServerWebApiV1SessionControllerRefresh200ResponseData["default"].constructFromObject(data['data']);
65
- }
66
- }
67
- return obj;
68
- }
69
-
70
- /**
71
- * Validates the JSON data with respect to <code>GameServerWebApiV1SessionControllerRefresh200Response</code>.
72
- * @param {Object} data The plain JavaScript object bearing properties of interest.
73
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GameServerWebApiV1SessionControllerRefresh200Response</code>.
74
- */
75
- }, {
76
- key: "validateJSON",
77
- value: function validateJSON(data) {
78
- // validate the optional field `data`
79
- if (data['data']) {
80
- // data not null
81
- _GameServerWebApiV1SessionControllerRefresh200ResponseData["default"].validateJSON(data['data']);
82
- }
83
- return true;
84
- }
85
- }]);
86
- }();
87
- /**
88
- * @member {module:model/GameServerWebApiV1SessionControllerRefresh200ResponseData} data
89
- */
90
- GameServerWebApiV1SessionControllerRefresh200Response.prototype['data'] = undefined;
91
- var _default = exports["default"] = GameServerWebApiV1SessionControllerRefresh200Response;