@rebornteam/reborn-api 4.9.2 → 4.9.4

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.
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Reborn API
6
6
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
7
7
  *
8
- * The version of the OpenAPI document: 4.9.2
8
+ * The version of the OpenAPI document: 4.9.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.AdminReportsApi = exports.AdminReportsApiFactory = exports.AdminReportsApiFp = exports.AdminReportsApiAxiosParamCreator = exports.AdminPunishmentsApi = exports.AdminPunishmentsApiFactory = exports.AdminPunishmentsApiFp = exports.AdminPunishmentsApiAxiosParamCreator = exports.AdminPlayersApi = exports.AdminPlayersApiFactory = exports.AdminPlayersApiFp = exports.AdminPlayersApiAxiosParamCreator = exports.AdminJobsApi = exports.AdminJobsApiFactory = exports.AdminJobsApiFp = exports.AdminJobsApiAxiosParamCreator = exports.AdminDashboardApi = exports.AdminDashboardApiFactory = exports.AdminDashboardApiFp = exports.AdminDashboardApiAxiosParamCreator = exports.AdminConnectionsApi = exports.AdminConnectionsApiFactory = exports.AdminConnectionsApiFp = exports.AdminConnectionsApiAxiosParamCreator = exports.AdminClientCredentialsApi = exports.AdminClientCredentialsApiFactory = exports.AdminClientCredentialsApiFp = exports.AdminClientCredentialsApiAxiosParamCreator = exports.AdminAuditLogApi = exports.AdminAuditLogApiFactory = exports.AdminAuditLogApiFp = exports.AdminAuditLogApiAxiosParamCreator = exports.SortOrderDirection = exports.SearchKind = exports.ReportCategory = exports.Region = exports.Rank = exports.PunishmentType = exports.PunishmentTargetType = exports.PunishmentSource = exports.PageableMode = exports.JobStatus = exports.GameType = exports.ConnectionResultResultCode = void 0;
26
- exports.ServerSessionsApi = exports.ServerSessionsApiFactory = exports.ServerSessionsApiFp = exports.ServerSessionsApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PunishmentApi = exports.PunishmentApiFactory = exports.PunishmentApiFp = exports.PunishmentApiAxiosParamCreator = exports.PlayerSessionsApi = exports.PlayerSessionsApiFactory = exports.PlayerSessionsApiFp = exports.PlayerSessionsApiAxiosParamCreator = exports.PlayerApi = exports.PlayerApiFactory = exports.PlayerApiFp = exports.PlayerApiAxiosParamCreator = exports.ConnectionApi = exports.ConnectionApiFactory = exports.ConnectionApiFp = exports.ConnectionApiAxiosParamCreator = exports.ChatApi = exports.ChatApiFactory = void 0;
25
+ exports.AuthenticationApiAxiosParamCreator = exports.AdminReportsApi = exports.AdminReportsApiFactory = exports.AdminReportsApiFp = exports.AdminReportsApiAxiosParamCreator = exports.AdminPunishmentsApi = exports.AdminPunishmentsApiFactory = exports.AdminPunishmentsApiFp = exports.AdminPunishmentsApiAxiosParamCreator = exports.AdminPlayersApi = exports.AdminPlayersApiFactory = exports.AdminPlayersApiFp = exports.AdminPlayersApiAxiosParamCreator = exports.AdminJobsApi = exports.AdminJobsApiFactory = exports.AdminJobsApiFp = exports.AdminJobsApiAxiosParamCreator = exports.AdminImportApi = exports.AdminImportApiFactory = exports.AdminImportApiFp = exports.AdminImportApiAxiosParamCreator = exports.AdminDashboardApi = exports.AdminDashboardApiFactory = exports.AdminDashboardApiFp = exports.AdminDashboardApiAxiosParamCreator = exports.AdminConnectionsApi = exports.AdminConnectionsApiFactory = exports.AdminConnectionsApiFp = exports.AdminConnectionsApiAxiosParamCreator = exports.AdminClientCredentialsApi = exports.AdminClientCredentialsApiFactory = exports.AdminClientCredentialsApiFp = exports.AdminClientCredentialsApiAxiosParamCreator = exports.AdminAuditLogApi = exports.AdminAuditLogApiFactory = exports.AdminAuditLogApiFp = exports.AdminAuditLogApiAxiosParamCreator = exports.SortOrderDirection = exports.SearchKind = exports.ReportCategory = exports.Region = exports.Rank = exports.PunishmentType = exports.PunishmentTargetType = exports.PunishmentSource = exports.PageableMode = exports.JobStatus = exports.JobFieldType = exports.GameType = exports.ConnectionResultResultCode = void 0;
26
+ exports.ServerSessionsApi = exports.ServerSessionsApiFactory = exports.ServerSessionsApiFp = exports.ServerSessionsApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PunishmentApi = exports.PunishmentApiFactory = exports.PunishmentApiFp = exports.PunishmentApiAxiosParamCreator = exports.PlayerSessionsApi = exports.PlayerSessionsApiFactory = exports.PlayerSessionsApiFp = exports.PlayerSessionsApiAxiosParamCreator = exports.PlayerApi = exports.PlayerApiFactory = exports.PlayerApiFp = exports.PlayerApiAxiosParamCreator = exports.ConnectionApi = exports.ConnectionApiFactory = exports.ConnectionApiFp = exports.ConnectionApiAxiosParamCreator = exports.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -44,6 +44,15 @@ exports.GameType = {
44
44
  Legacy: 'LEGACY',
45
45
  Classic: 'CLASSIC'
46
46
  };
47
+ /**
48
+ * Input type
49
+ */
50
+ exports.JobFieldType = {
51
+ Text: 'TEXT',
52
+ Number: 'NUMBER',
53
+ Password: 'PASSWORD',
54
+ Boolean: 'BOOLEAN'
55
+ };
47
56
  /**
48
57
  * Current lifecycle state.
49
58
  */
@@ -2160,6 +2169,108 @@ class AdminDashboardApi extends base_1.BaseAPI {
2160
2169
  }
2161
2170
  }
2162
2171
  exports.AdminDashboardApi = AdminDashboardApi;
2172
+ /**
2173
+ * AdminImportApi - axios parameter creator
2174
+ */
2175
+ const AdminImportApiAxiosParamCreator = function (configuration) {
2176
+ return {
2177
+ /**
2178
+ * Connects to the supplied AdvancedBan MySQL database, reads its active and history punishment tables, and imports each as a Reborn punishment. Idempotent: rows already imported (matched on import_source + the AdvancedBan row id) are skipped, so existing punishments are never overridden. Runs as an async job — poll /admin/job/{id} for progress and the result payload.
2179
+ * @summary Import punishments from an AdvancedBan MySQL database
2180
+ * @param {AdminAdvancedBanImportRequest} adminAdvancedBanImportRequest
2181
+ * @param {*} [options] Override http request option.
2182
+ * @throws {RequiredError}
2183
+ */
2184
+ importAdvancedBan: (adminAdvancedBanImportRequest_1, ...args_1) => __awaiter(this, [adminAdvancedBanImportRequest_1, ...args_1], void 0, function* (adminAdvancedBanImportRequest, options = {}) {
2185
+ // verify required parameter 'adminAdvancedBanImportRequest' is not null or undefined
2186
+ (0, common_1.assertParamExists)('importAdvancedBan', 'adminAdvancedBanImportRequest', adminAdvancedBanImportRequest);
2187
+ const localVarPath = `/admin/import/advancedban`;
2188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2189
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2190
+ let baseOptions;
2191
+ if (configuration) {
2192
+ baseOptions = configuration.baseOptions;
2193
+ }
2194
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2195
+ const localVarHeaderParameter = {};
2196
+ const localVarQueryParameter = {};
2197
+ // authentication DiscordAuth required
2198
+ // http bearer authentication required
2199
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2200
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2201
+ localVarHeaderParameter['Accept'] = 'application/json';
2202
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2203
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2204
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2205
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminAdvancedBanImportRequest, localVarRequestOptions, configuration);
2206
+ return {
2207
+ url: (0, common_1.toPathString)(localVarUrlObj),
2208
+ options: localVarRequestOptions,
2209
+ };
2210
+ }),
2211
+ };
2212
+ };
2213
+ exports.AdminImportApiAxiosParamCreator = AdminImportApiAxiosParamCreator;
2214
+ /**
2215
+ * AdminImportApi - functional programming interface
2216
+ */
2217
+ const AdminImportApiFp = function (configuration) {
2218
+ const localVarAxiosParamCreator = (0, exports.AdminImportApiAxiosParamCreator)(configuration);
2219
+ return {
2220
+ /**
2221
+ * Connects to the supplied AdvancedBan MySQL database, reads its active and history punishment tables, and imports each as a Reborn punishment. Idempotent: rows already imported (matched on import_source + the AdvancedBan row id) are skipped, so existing punishments are never overridden. Runs as an async job — poll /admin/job/{id} for progress and the result payload.
2222
+ * @summary Import punishments from an AdvancedBan MySQL database
2223
+ * @param {AdminAdvancedBanImportRequest} adminAdvancedBanImportRequest
2224
+ * @param {*} [options] Override http request option.
2225
+ * @throws {RequiredError}
2226
+ */
2227
+ importAdvancedBan(adminAdvancedBanImportRequest, options) {
2228
+ return __awaiter(this, void 0, void 0, function* () {
2229
+ var _a, _b, _c;
2230
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.importAdvancedBan(adminAdvancedBanImportRequest, options);
2231
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2232
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminImportApi.importAdvancedBan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2233
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2234
+ });
2235
+ },
2236
+ };
2237
+ };
2238
+ exports.AdminImportApiFp = AdminImportApiFp;
2239
+ /**
2240
+ * AdminImportApi - factory interface
2241
+ */
2242
+ const AdminImportApiFactory = function (configuration, basePath, axios) {
2243
+ const localVarFp = (0, exports.AdminImportApiFp)(configuration);
2244
+ return {
2245
+ /**
2246
+ * Connects to the supplied AdvancedBan MySQL database, reads its active and history punishment tables, and imports each as a Reborn punishment. Idempotent: rows already imported (matched on import_source + the AdvancedBan row id) are skipped, so existing punishments are never overridden. Runs as an async job — poll /admin/job/{id} for progress and the result payload.
2247
+ * @summary Import punishments from an AdvancedBan MySQL database
2248
+ * @param {AdminAdvancedBanImportRequest} adminAdvancedBanImportRequest
2249
+ * @param {*} [options] Override http request option.
2250
+ * @throws {RequiredError}
2251
+ */
2252
+ importAdvancedBan(adminAdvancedBanImportRequest, options) {
2253
+ return localVarFp.importAdvancedBan(adminAdvancedBanImportRequest, options).then((request) => request(axios, basePath));
2254
+ },
2255
+ };
2256
+ };
2257
+ exports.AdminImportApiFactory = AdminImportApiFactory;
2258
+ /**
2259
+ * AdminImportApi - object-oriented interface
2260
+ */
2261
+ class AdminImportApi extends base_1.BaseAPI {
2262
+ /**
2263
+ * Connects to the supplied AdvancedBan MySQL database, reads its active and history punishment tables, and imports each as a Reborn punishment. Idempotent: rows already imported (matched on import_source + the AdvancedBan row id) are skipped, so existing punishments are never overridden. Runs as an async job — poll /admin/job/{id} for progress and the result payload.
2264
+ * @summary Import punishments from an AdvancedBan MySQL database
2265
+ * @param {AdminAdvancedBanImportRequest} adminAdvancedBanImportRequest
2266
+ * @param {*} [options] Override http request option.
2267
+ * @throws {RequiredError}
2268
+ */
2269
+ importAdvancedBan(adminAdvancedBanImportRequest, options) {
2270
+ return (0, exports.AdminImportApiFp)(this.configuration).importAdvancedBan(adminAdvancedBanImportRequest, options).then((request) => request(this.axios, this.basePath));
2271
+ }
2272
+ }
2273
+ exports.AdminImportApi = AdminImportApi;
2163
2274
  /**
2164
2275
  * AdminJobsApi - axios parameter creator
2165
2276
  */
@@ -2197,6 +2308,35 @@ const AdminJobsApiAxiosParamCreator = function (configuration) {
2197
2308
  options: localVarRequestOptions,
2198
2309
  };
2199
2310
  }),
2311
+ /**
2312
+ * Metadata for jobs that take configuration: the fields the configure dialog should render and the path to POST the filled values to. Field keys match the target endpoint\'s request body. Paramless jobs are not listed here.
2313
+ * @summary List configurable jobs
2314
+ * @param {*} [options] Override http request option.
2315
+ * @throws {RequiredError}
2316
+ */
2317
+ config: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2318
+ const localVarPath = `/admin/job/config`;
2319
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2320
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2321
+ let baseOptions;
2322
+ if (configuration) {
2323
+ baseOptions = configuration.baseOptions;
2324
+ }
2325
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2326
+ const localVarHeaderParameter = {};
2327
+ const localVarQueryParameter = {};
2328
+ // authentication DiscordAuth required
2329
+ // http bearer authentication required
2330
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2331
+ localVarHeaderParameter['Accept'] = 'application/json';
2332
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2333
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2334
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2335
+ return {
2336
+ url: (0, common_1.toPathString)(localVarUrlObj),
2337
+ options: localVarRequestOptions,
2338
+ };
2339
+ }),
2200
2340
  /**
2201
2341
  * Returns the CSV emitted by the job — typically one row per record the job touched. The first line is a header; subsequent lines are RFC-4180 escaped data rows. 404 when the job has no artifact (either it didn\'t emit one, or it hasn\'t finished yet).
2202
2342
  * @summary Download a job\'s CSV artifact
@@ -2327,6 +2467,21 @@ const AdminJobsApiFp = function (configuration) {
2327
2467
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2328
2468
  });
2329
2469
  },
2470
+ /**
2471
+ * Metadata for jobs that take configuration: the fields the configure dialog should render and the path to POST the filled values to. Field keys match the target endpoint\'s request body. Paramless jobs are not listed here.
2472
+ * @summary List configurable jobs
2473
+ * @param {*} [options] Override http request option.
2474
+ * @throws {RequiredError}
2475
+ */
2476
+ config(options) {
2477
+ return __awaiter(this, void 0, void 0, function* () {
2478
+ var _a, _b, _c;
2479
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.config(options);
2480
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2481
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminJobsApi.config']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2482
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2483
+ });
2484
+ },
2330
2485
  /**
2331
2486
  * Returns the CSV emitted by the job — typically one row per record the job touched. The first line is a header; subsequent lines are RFC-4180 escaped data rows. 404 when the job has no artifact (either it didn\'t emit one, or it hasn\'t finished yet).
2332
2487
  * @summary Download a job\'s CSV artifact
@@ -2395,6 +2550,15 @@ const AdminJobsApiFactory = function (configuration, basePath, axios) {
2395
2550
  cancel(id, options) {
2396
2551
  return localVarFp.cancel(id, options).then((request) => request(axios, basePath));
2397
2552
  },
2553
+ /**
2554
+ * Metadata for jobs that take configuration: the fields the configure dialog should render and the path to POST the filled values to. Field keys match the target endpoint\'s request body. Paramless jobs are not listed here.
2555
+ * @summary List configurable jobs
2556
+ * @param {*} [options] Override http request option.
2557
+ * @throws {RequiredError}
2558
+ */
2559
+ config(options) {
2560
+ return localVarFp.config(options).then((request) => request(axios, basePath));
2561
+ },
2398
2562
  /**
2399
2563
  * Returns the CSV emitted by the job — typically one row per record the job touched. The first line is a header; subsequent lines are RFC-4180 escaped data rows. 404 when the job has no artifact (either it didn\'t emit one, or it hasn\'t finished yet).
2400
2564
  * @summary Download a job\'s CSV artifact
@@ -2443,6 +2607,15 @@ class AdminJobsApi extends base_1.BaseAPI {
2443
2607
  cancel(id, options) {
2444
2608
  return (0, exports.AdminJobsApiFp)(this.configuration).cancel(id, options).then((request) => request(this.axios, this.basePath));
2445
2609
  }
2610
+ /**
2611
+ * Metadata for jobs that take configuration: the fields the configure dialog should render and the path to POST the filled values to. Field keys match the target endpoint\'s request body. Paramless jobs are not listed here.
2612
+ * @summary List configurable jobs
2613
+ * @param {*} [options] Override http request option.
2614
+ * @throws {RequiredError}
2615
+ */
2616
+ config(options) {
2617
+ return (0, exports.AdminJobsApiFp)(this.configuration).config(options).then((request) => request(this.axios, this.basePath));
2618
+ }
2446
2619
  /**
2447
2620
  * Returns the CSV emitted by the job — typically one row per record the job touched. The first line is a header; subsequent lines are RFC-4180 escaped data rows. 404 when the job has no artifact (either it didn\'t emit one, or it hasn\'t finished yet).
2448
2621
  * @summary Download a job\'s CSV artifact
@@ -4823,6 +4996,39 @@ exports.AdminReportsApi = AdminReportsApi;
4823
4996
  */
4824
4997
  const AuthenticationApiAxiosParamCreator = function (configuration) {
4825
4998
  return {
4999
+ /**
5000
+ * Returns the Discord OAuth2 authorize URL as JSON so a native app can open it directly (system browser → Discord-app universal-link hand-off) instead of following the 302. The `redirect` is validated against the allowlist and carried through Discord via `state`, exactly like the browser flow; the callback still bounces the JWT to that target.
5001
+ * @summary Discord - Authorize URL (native clients)
5002
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
5003
+ * @param {*} [options] Override http request option.
5004
+ * @throws {RequiredError}
5005
+ */
5006
+ authorizeUrl: (redirect_1, ...args_1) => __awaiter(this, [redirect_1, ...args_1], void 0, function* (redirect, options = {}) {
5007
+ const localVarPath = `/auth/discord/url`;
5008
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5009
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5010
+ let baseOptions;
5011
+ if (configuration) {
5012
+ baseOptions = configuration.baseOptions;
5013
+ }
5014
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5015
+ const localVarHeaderParameter = {};
5016
+ const localVarQueryParameter = {};
5017
+ // authentication DiscordAuth required
5018
+ // http bearer authentication required
5019
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5020
+ if (redirect !== undefined) {
5021
+ localVarQueryParameter['redirect'] = redirect;
5022
+ }
5023
+ localVarHeaderParameter['Accept'] = 'application/json';
5024
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5025
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5026
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5027
+ return {
5028
+ url: (0, common_1.toPathString)(localVarUrlObj),
5029
+ options: localVarRequestOptions,
5030
+ };
5031
+ }),
4826
5032
  /**
4827
5033
  * Receives the authorization code from Discord after the user approves the OAuth2 prompt. Exchanges the code for an access token, verifies the user holds an admin guild role, then redirects back to the admin frontend with a signed JWT in the query string (`?token=...`). On failure, redirects with `?error=<reason>` instead.
4828
5034
  * @summary Discord - OAuth2 callback
@@ -4977,6 +5183,22 @@ exports.AuthenticationApiAxiosParamCreator = AuthenticationApiAxiosParamCreator;
4977
5183
  const AuthenticationApiFp = function (configuration) {
4978
5184
  const localVarAxiosParamCreator = (0, exports.AuthenticationApiAxiosParamCreator)(configuration);
4979
5185
  return {
5186
+ /**
5187
+ * Returns the Discord OAuth2 authorize URL as JSON so a native app can open it directly (system browser → Discord-app universal-link hand-off) instead of following the 302. The `redirect` is validated against the allowlist and carried through Discord via `state`, exactly like the browser flow; the callback still bounces the JWT to that target.
5188
+ * @summary Discord - Authorize URL (native clients)
5189
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
5190
+ * @param {*} [options] Override http request option.
5191
+ * @throws {RequiredError}
5192
+ */
5193
+ authorizeUrl(redirect, options) {
5194
+ return __awaiter(this, void 0, void 0, function* () {
5195
+ var _a, _b, _c;
5196
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authorizeUrl(redirect, options);
5197
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5198
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.authorizeUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5199
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5200
+ });
5201
+ },
4980
5202
  /**
4981
5203
  * Receives the authorization code from Discord after the user approves the OAuth2 prompt. Exchanges the code for an access token, verifies the user holds an admin guild role, then redirects back to the admin frontend with a signed JWT in the query string (`?token=...`). On failure, redirects with `?error=<reason>` instead.
4982
5204
  * @summary Discord - OAuth2 callback
@@ -5053,6 +5275,16 @@ exports.AuthenticationApiFp = AuthenticationApiFp;
5053
5275
  const AuthenticationApiFactory = function (configuration, basePath, axios) {
5054
5276
  const localVarFp = (0, exports.AuthenticationApiFp)(configuration);
5055
5277
  return {
5278
+ /**
5279
+ * Returns the Discord OAuth2 authorize URL as JSON so a native app can open it directly (system browser → Discord-app universal-link hand-off) instead of following the 302. The `redirect` is validated against the allowlist and carried through Discord via `state`, exactly like the browser flow; the callback still bounces the JWT to that target.
5280
+ * @summary Discord - Authorize URL (native clients)
5281
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
5282
+ * @param {*} [options] Override http request option.
5283
+ * @throws {RequiredError}
5284
+ */
5285
+ authorizeUrl(redirect, options) {
5286
+ return localVarFp.authorizeUrl(redirect, options).then((request) => request(axios, basePath));
5287
+ },
5056
5288
  /**
5057
5289
  * Receives the authorization code from Discord after the user approves the OAuth2 prompt. Exchanges the code for an access token, verifies the user holds an admin guild role, then redirects back to the admin frontend with a signed JWT in the query string (`?token=...`). On failure, redirects with `?error=<reason>` instead.
5058
5290
  * @summary Discord - OAuth2 callback
@@ -5103,6 +5335,16 @@ exports.AuthenticationApiFactory = AuthenticationApiFactory;
5103
5335
  * AuthenticationApi - object-oriented interface
5104
5336
  */
5105
5337
  class AuthenticationApi extends base_1.BaseAPI {
5338
+ /**
5339
+ * Returns the Discord OAuth2 authorize URL as JSON so a native app can open it directly (system browser → Discord-app universal-link hand-off) instead of following the 302. The `redirect` is validated against the allowlist and carried through Discord via `state`, exactly like the browser flow; the callback still bounces the JWT to that target.
5340
+ * @summary Discord - Authorize URL (native clients)
5341
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
5342
+ * @param {*} [options] Override http request option.
5343
+ * @throws {RequiredError}
5344
+ */
5345
+ authorizeUrl(redirect, options) {
5346
+ return (0, exports.AuthenticationApiFp)(this.configuration).authorizeUrl(redirect, options).then((request) => request(this.axios, this.basePath));
5347
+ }
5106
5348
  /**
5107
5349
  * Receives the authorization code from Discord after the user approves the OAuth2 prompt. Exchanges the code for an access token, verifies the user holds an admin guild role, then redirects back to the admin frontend with a signed JWT in the query string (`?token=...`). On failure, redirects with `?error=<reason>` instead.
5108
5350
  * @summary Discord - OAuth2 callback
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Reborn API
3
3
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
4
4
  *
5
- * The version of the OpenAPI document: 4.9.2
5
+ * The version of the OpenAPI document: 4.9.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Reborn API
6
6
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
7
7
  *
8
- * The version of the OpenAPI document: 4.9.2
8
+ * The version of the OpenAPI document: 4.9.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Reborn API
3
3
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
4
4
  *
5
- * The version of the OpenAPI document: 4.9.2
5
+ * The version of the OpenAPI document: 4.9.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Reborn API
6
6
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
7
7
  *
8
- * The version of the OpenAPI document: 4.9.2
8
+ * The version of the OpenAPI document: 4.9.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Reborn API
3
3
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
4
4
  *
5
- * The version of the OpenAPI document: 4.9.2
5
+ * The version of the OpenAPI document: 4.9.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Reborn API
5
5
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
6
6
  *
7
- * The version of the OpenAPI document: 4.9.2
7
+ * The version of the OpenAPI document: 4.9.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).