@rebornteam/reborn-api 4.9.2 → 4.9.3

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.
@@ -83,6 +83,7 @@ docs/CreateReportRequest.md
83
83
  docs/CreateReportResponse.md
84
84
  docs/CursoredPageAdminAuditLogEntry.md
85
85
  docs/CursoredPageable.md
86
+ docs/DiscordAuthUrlResponse.md
86
87
  docs/GameType.md
87
88
  docs/JobStatus.md
88
89
  docs/PageAdminAltAccount.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @rebornteam/reborn-api@4.9.2
1
+ ## @rebornteam/reborn-api@4.9.3
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @rebornteam/reborn-api@4.9.2 --save
39
+ npm install @rebornteam/reborn-api@4.9.3 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -111,6 +111,7 @@ Class | Method | HTTP request | Description
111
111
  *AdminPunishmentsApi* | [**searchTargets**](docs/AdminPunishmentsApi.md#searchtargets) | **GET** /admin/punishment/search | Search punishment targets
112
112
  *AdminReportsApi* | [**list1**](docs/AdminReportsApi.md#list1) | **GET** /admin/report | List reports
113
113
  *AdminReportsApi* | [**resolve**](docs/AdminReportsApi.md#resolve) | **POST** /admin/report/{id}/resolve | Resolve a report
114
+ *AuthenticationApi* | [**authorizeUrl**](docs/AuthenticationApi.md#authorizeurl) | **GET** /auth/discord/url | Discord - Authorize URL (native clients)
114
115
  *AuthenticationApi* | [**callback**](docs/AuthenticationApi.md#callback) | **GET** /auth/discord/callback | Discord - OAuth2 callback
115
116
  *AuthenticationApi* | [**initiateLogin**](docs/AuthenticationApi.md#initiatelogin) | **GET** /auth/discord | Discord - Initiate login
116
117
  *AuthenticationApi* | [**me**](docs/AuthenticationApi.md#me) | **GET** /auth/me | Get current user profile
@@ -202,6 +203,7 @@ Class | Method | HTTP request | Description
202
203
  - [CreateReportResponse](docs/CreateReportResponse.md)
203
204
  - [CursoredPageAdminAuditLogEntry](docs/CursoredPageAdminAuditLogEntry.md)
204
205
  - [CursoredPageable](docs/CursoredPageable.md)
206
+ - [DiscordAuthUrlResponse](docs/DiscordAuthUrlResponse.md)
205
207
  - [GameType](docs/GameType.md)
206
208
  - [JobStatus](docs/JobStatus.md)
207
209
  - [PageAdminAltAccount](docs/PageAdminAltAccount.md)
package/api.ts CHANGED
@@ -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.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1519,6 +1519,15 @@ export interface CursoredPageable {
1519
1519
  }
1520
1520
 
1521
1521
 
1522
+ /**
1523
+ * The Discord OAuth2 authorize URL, returned as JSON so a native client can open it directly (system browser → Discord-app universal-link hand-off) rather than following the backend\'s 302. Keeps client_id/scope server-side.
1524
+ */
1525
+ export interface DiscordAuthUrlResponse {
1526
+ /**
1527
+ * Discord OAuth2 authorize URL to open on the client.
1528
+ */
1529
+ 'authorizeUrl': string;
1530
+ }
1522
1531
 
1523
1532
  export const GameType = {
1524
1533
  Rotj: 'ROTJ',
@@ -7161,6 +7170,45 @@ export class AdminReportsApi extends BaseAPI {
7161
7170
  */
7162
7171
  export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
7163
7172
  return {
7173
+ /**
7174
+ * 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.
7175
+ * @summary Discord - Authorize URL (native clients)
7176
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
7177
+ * @param {*} [options] Override http request option.
7178
+ * @throws {RequiredError}
7179
+ */
7180
+ authorizeUrl: async (redirect?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7181
+ const localVarPath = `/auth/discord/url`;
7182
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7183
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7184
+ let baseOptions;
7185
+ if (configuration) {
7186
+ baseOptions = configuration.baseOptions;
7187
+ }
7188
+
7189
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7190
+ const localVarHeaderParameter = {} as any;
7191
+ const localVarQueryParameter = {} as any;
7192
+
7193
+ // authentication DiscordAuth required
7194
+ // http bearer authentication required
7195
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7196
+
7197
+ if (redirect !== undefined) {
7198
+ localVarQueryParameter['redirect'] = redirect;
7199
+ }
7200
+
7201
+ localVarHeaderParameter['Accept'] = 'application/json';
7202
+
7203
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7204
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7205
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7206
+
7207
+ return {
7208
+ url: toPathString(localVarUrlObj),
7209
+ options: localVarRequestOptions,
7210
+ };
7211
+ },
7164
7212
  /**
7165
7213
  * 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.
7166
7214
  * @summary Discord - OAuth2 callback
@@ -7342,6 +7390,19 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
7342
7390
  export const AuthenticationApiFp = function(configuration?: Configuration) {
7343
7391
  const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
7344
7392
  return {
7393
+ /**
7394
+ * 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.
7395
+ * @summary Discord - Authorize URL (native clients)
7396
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
7397
+ * @param {*} [options] Override http request option.
7398
+ * @throws {RequiredError}
7399
+ */
7400
+ async authorizeUrl(redirect?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DiscordAuthUrlResponse>> {
7401
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeUrl(redirect, options);
7402
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7403
+ const localVarOperationServerBasePath = operationServerMap['AuthenticationApi.authorizeUrl']?.[localVarOperationServerIndex]?.url;
7404
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7405
+ },
7345
7406
  /**
7346
7407
  * 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.
7347
7408
  * @summary Discord - OAuth2 callback
@@ -7406,6 +7467,16 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
7406
7467
  export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7407
7468
  const localVarFp = AuthenticationApiFp(configuration)
7408
7469
  return {
7470
+ /**
7471
+ * 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.
7472
+ * @summary Discord - Authorize URL (native clients)
7473
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
7474
+ * @param {*} [options] Override http request option.
7475
+ * @throws {RequiredError}
7476
+ */
7477
+ authorizeUrl(redirect?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<DiscordAuthUrlResponse> {
7478
+ return localVarFp.authorizeUrl(redirect, options).then((request) => request(axios, basePath));
7479
+ },
7409
7480
  /**
7410
7481
  * 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.
7411
7482
  * @summary Discord - OAuth2 callback
@@ -7456,6 +7527,17 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
7456
7527
  * AuthenticationApi - object-oriented interface
7457
7528
  */
7458
7529
  export class AuthenticationApi extends BaseAPI {
7530
+ /**
7531
+ * 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.
7532
+ * @summary Discord - Authorize URL (native clients)
7533
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
7534
+ * @param {*} [options] Override http request option.
7535
+ * @throws {RequiredError}
7536
+ */
7537
+ public authorizeUrl(redirect?: string | null, options?: RawAxiosRequestConfig) {
7538
+ return AuthenticationApiFp(this.configuration).authorizeUrl(redirect, options).then((request) => request(this.axios, this.basePath));
7539
+ }
7540
+
7459
7541
  /**
7460
7542
  * 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.
7461
7543
  * @summary Discord - OAuth2 callback
package/base.ts CHANGED
@@ -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.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -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.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Reborn API
4
4
  * 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
5
5
  *
6
- * The version of the OpenAPI document: 4.9.2
6
+ * The version of the OpenAPI document: 4.9.3
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.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.3
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1481,6 +1481,15 @@ export interface CursoredPageable {
1481
1481
  'sort': Sort;
1482
1482
  'backward': boolean;
1483
1483
  }
1484
+ /**
1485
+ * The Discord OAuth2 authorize URL, returned as JSON so a native client can open it directly (system browser → Discord-app universal-link hand-off) rather than following the backend\'s 302. Keeps client_id/scope server-side.
1486
+ */
1487
+ export interface DiscordAuthUrlResponse {
1488
+ /**
1489
+ * Discord OAuth2 authorize URL to open on the client.
1490
+ */
1491
+ 'authorizeUrl': string;
1492
+ }
1484
1493
  export declare const GameType: {
1485
1494
  readonly Rotj: "ROTJ";
1486
1495
  readonly Legacy: "LEGACY";
@@ -4352,6 +4361,14 @@ export declare class AdminReportsApi extends BaseAPI {
4352
4361
  * AuthenticationApi - axios parameter creator
4353
4362
  */
4354
4363
  export declare const AuthenticationApiAxiosParamCreator: (configuration?: Configuration) => {
4364
+ /**
4365
+ * 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.
4366
+ * @summary Discord - Authorize URL (native clients)
4367
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
4368
+ * @param {*} [options] Override http request option.
4369
+ * @throws {RequiredError}
4370
+ */
4371
+ authorizeUrl: (redirect?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4355
4372
  /**
4356
4373
  * 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.
4357
4374
  * @summary Discord - OAuth2 callback
@@ -4392,6 +4409,14 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
4392
4409
  * AuthenticationApi - functional programming interface
4393
4410
  */
4394
4411
  export declare const AuthenticationApiFp: (configuration?: Configuration) => {
4412
+ /**
4413
+ * 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.
4414
+ * @summary Discord - Authorize URL (native clients)
4415
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
4416
+ * @param {*} [options] Override http request option.
4417
+ * @throws {RequiredError}
4418
+ */
4419
+ authorizeUrl(redirect?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DiscordAuthUrlResponse>>;
4395
4420
  /**
4396
4421
  * 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.
4397
4422
  * @summary Discord - OAuth2 callback
@@ -4432,6 +4457,14 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
4432
4457
  * AuthenticationApi - factory interface
4433
4458
  */
4434
4459
  export declare const AuthenticationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
4460
+ /**
4461
+ * 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.
4462
+ * @summary Discord - Authorize URL (native clients)
4463
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
4464
+ * @param {*} [options] Override http request option.
4465
+ * @throws {RequiredError}
4466
+ */
4467
+ authorizeUrl(redirect?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<DiscordAuthUrlResponse>;
4435
4468
  /**
4436
4469
  * 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.
4437
4470
  * @summary Discord - OAuth2 callback
@@ -4472,6 +4505,14 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
4472
4505
  * AuthenticationApi - object-oriented interface
4473
4506
  */
4474
4507
  export declare class AuthenticationApi extends BaseAPI {
4508
+ /**
4509
+ * 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.
4510
+ * @summary Discord - Authorize URL (native clients)
4511
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
4512
+ * @param {*} [options] Override http request option.
4513
+ * @throws {RequiredError}
4514
+ */
4515
+ authorizeUrl(redirect?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DiscordAuthUrlResponse, any, {}>>;
4475
4516
  /**
4476
4517
  * 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.
4477
4518
  * @summary Discord - OAuth2 callback
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.3
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4823,6 +4823,39 @@ exports.AdminReportsApi = AdminReportsApi;
4823
4823
  */
4824
4824
  const AuthenticationApiAxiosParamCreator = function (configuration) {
4825
4825
  return {
4826
+ /**
4827
+ * 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.
4828
+ * @summary Discord - Authorize URL (native clients)
4829
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
4830
+ * @param {*} [options] Override http request option.
4831
+ * @throws {RequiredError}
4832
+ */
4833
+ authorizeUrl: (redirect_1, ...args_1) => __awaiter(this, [redirect_1, ...args_1], void 0, function* (redirect, options = {}) {
4834
+ const localVarPath = `/auth/discord/url`;
4835
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4836
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4837
+ let baseOptions;
4838
+ if (configuration) {
4839
+ baseOptions = configuration.baseOptions;
4840
+ }
4841
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4842
+ const localVarHeaderParameter = {};
4843
+ const localVarQueryParameter = {};
4844
+ // authentication DiscordAuth required
4845
+ // http bearer authentication required
4846
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4847
+ if (redirect !== undefined) {
4848
+ localVarQueryParameter['redirect'] = redirect;
4849
+ }
4850
+ localVarHeaderParameter['Accept'] = 'application/json';
4851
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4852
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4853
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4854
+ return {
4855
+ url: (0, common_1.toPathString)(localVarUrlObj),
4856
+ options: localVarRequestOptions,
4857
+ };
4858
+ }),
4826
4859
  /**
4827
4860
  * 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
4861
  * @summary Discord - OAuth2 callback
@@ -4977,6 +5010,22 @@ exports.AuthenticationApiAxiosParamCreator = AuthenticationApiAxiosParamCreator;
4977
5010
  const AuthenticationApiFp = function (configuration) {
4978
5011
  const localVarAxiosParamCreator = (0, exports.AuthenticationApiAxiosParamCreator)(configuration);
4979
5012
  return {
5013
+ /**
5014
+ * 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.
5015
+ * @summary Discord - Authorize URL (native clients)
5016
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
5017
+ * @param {*} [options] Override http request option.
5018
+ * @throws {RequiredError}
5019
+ */
5020
+ authorizeUrl(redirect, options) {
5021
+ return __awaiter(this, void 0, void 0, function* () {
5022
+ var _a, _b, _c;
5023
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authorizeUrl(redirect, options);
5024
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5025
+ 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;
5026
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5027
+ });
5028
+ },
4980
5029
  /**
4981
5030
  * 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
5031
  * @summary Discord - OAuth2 callback
@@ -5053,6 +5102,16 @@ exports.AuthenticationApiFp = AuthenticationApiFp;
5053
5102
  const AuthenticationApiFactory = function (configuration, basePath, axios) {
5054
5103
  const localVarFp = (0, exports.AuthenticationApiFp)(configuration);
5055
5104
  return {
5105
+ /**
5106
+ * 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.
5107
+ * @summary Discord - Authorize URL (native clients)
5108
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
5109
+ * @param {*} [options] Override http request option.
5110
+ * @throws {RequiredError}
5111
+ */
5112
+ authorizeUrl(redirect, options) {
5113
+ return localVarFp.authorizeUrl(redirect, options).then((request) => request(axios, basePath));
5114
+ },
5056
5115
  /**
5057
5116
  * 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
5117
  * @summary Discord - OAuth2 callback
@@ -5103,6 +5162,16 @@ exports.AuthenticationApiFactory = AuthenticationApiFactory;
5103
5162
  * AuthenticationApi - object-oriented interface
5104
5163
  */
5105
5164
  class AuthenticationApi extends base_1.BaseAPI {
5165
+ /**
5166
+ * 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.
5167
+ * @summary Discord - Authorize URL (native clients)
5168
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
5169
+ * @param {*} [options] Override http request option.
5170
+ * @throws {RequiredError}
5171
+ */
5172
+ authorizeUrl(redirect, options) {
5173
+ return (0, exports.AuthenticationApiFp)(this.configuration).authorizeUrl(redirect, options).then((request) => request(this.axios, this.basePath));
5174
+ }
5106
5175
  /**
5107
5176
  * 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
5177
  * @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.3
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.3
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.3
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.3
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.3
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.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/api.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.3
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1481,6 +1481,15 @@ export interface CursoredPageable {
1481
1481
  'sort': Sort;
1482
1482
  'backward': boolean;
1483
1483
  }
1484
+ /**
1485
+ * The Discord OAuth2 authorize URL, returned as JSON so a native client can open it directly (system browser → Discord-app universal-link hand-off) rather than following the backend\'s 302. Keeps client_id/scope server-side.
1486
+ */
1487
+ export interface DiscordAuthUrlResponse {
1488
+ /**
1489
+ * Discord OAuth2 authorize URL to open on the client.
1490
+ */
1491
+ 'authorizeUrl': string;
1492
+ }
1484
1493
  export declare const GameType: {
1485
1494
  readonly Rotj: "ROTJ";
1486
1495
  readonly Legacy: "LEGACY";
@@ -4352,6 +4361,14 @@ export declare class AdminReportsApi extends BaseAPI {
4352
4361
  * AuthenticationApi - axios parameter creator
4353
4362
  */
4354
4363
  export declare const AuthenticationApiAxiosParamCreator: (configuration?: Configuration) => {
4364
+ /**
4365
+ * 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.
4366
+ * @summary Discord - Authorize URL (native clients)
4367
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
4368
+ * @param {*} [options] Override http request option.
4369
+ * @throws {RequiredError}
4370
+ */
4371
+ authorizeUrl: (redirect?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4355
4372
  /**
4356
4373
  * 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.
4357
4374
  * @summary Discord - OAuth2 callback
@@ -4392,6 +4409,14 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
4392
4409
  * AuthenticationApi - functional programming interface
4393
4410
  */
4394
4411
  export declare const AuthenticationApiFp: (configuration?: Configuration) => {
4412
+ /**
4413
+ * 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.
4414
+ * @summary Discord - Authorize URL (native clients)
4415
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
4416
+ * @param {*} [options] Override http request option.
4417
+ * @throws {RequiredError}
4418
+ */
4419
+ authorizeUrl(redirect?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DiscordAuthUrlResponse>>;
4395
4420
  /**
4396
4421
  * 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.
4397
4422
  * @summary Discord - OAuth2 callback
@@ -4432,6 +4457,14 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
4432
4457
  * AuthenticationApi - factory interface
4433
4458
  */
4434
4459
  export declare const AuthenticationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
4460
+ /**
4461
+ * 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.
4462
+ * @summary Discord - Authorize URL (native clients)
4463
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
4464
+ * @param {*} [options] Override http request option.
4465
+ * @throws {RequiredError}
4466
+ */
4467
+ authorizeUrl(redirect?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<DiscordAuthUrlResponse>;
4435
4468
  /**
4436
4469
  * 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.
4437
4470
  * @summary Discord - OAuth2 callback
@@ -4472,6 +4505,14 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
4472
4505
  * AuthenticationApi - object-oriented interface
4473
4506
  */
4474
4507
  export declare class AuthenticationApi extends BaseAPI {
4508
+ /**
4509
+ * 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.
4510
+ * @summary Discord - Authorize URL (native clients)
4511
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
4512
+ * @param {*} [options] Override http request option.
4513
+ * @throws {RequiredError}
4514
+ */
4515
+ authorizeUrl(redirect?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DiscordAuthUrlResponse, any, {}>>;
4475
4516
  /**
4476
4517
  * 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.
4477
4518
  * @summary Discord - OAuth2 callback
package/dist/esm/api.js CHANGED
@@ -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.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4787,6 +4787,39 @@ export class AdminReportsApi extends BaseAPI {
4787
4787
  */
4788
4788
  export const AuthenticationApiAxiosParamCreator = function (configuration) {
4789
4789
  return {
4790
+ /**
4791
+ * 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.
4792
+ * @summary Discord - Authorize URL (native clients)
4793
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
4794
+ * @param {*} [options] Override http request option.
4795
+ * @throws {RequiredError}
4796
+ */
4797
+ authorizeUrl: (redirect_1, ...args_1) => __awaiter(this, [redirect_1, ...args_1], void 0, function* (redirect, options = {}) {
4798
+ const localVarPath = `/auth/discord/url`;
4799
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4800
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4801
+ let baseOptions;
4802
+ if (configuration) {
4803
+ baseOptions = configuration.baseOptions;
4804
+ }
4805
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4806
+ const localVarHeaderParameter = {};
4807
+ const localVarQueryParameter = {};
4808
+ // authentication DiscordAuth required
4809
+ // http bearer authentication required
4810
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4811
+ if (redirect !== undefined) {
4812
+ localVarQueryParameter['redirect'] = redirect;
4813
+ }
4814
+ localVarHeaderParameter['Accept'] = 'application/json';
4815
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4816
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4817
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4818
+ return {
4819
+ url: toPathString(localVarUrlObj),
4820
+ options: localVarRequestOptions,
4821
+ };
4822
+ }),
4790
4823
  /**
4791
4824
  * 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.
4792
4825
  * @summary Discord - OAuth2 callback
@@ -4940,6 +4973,22 @@ export const AuthenticationApiAxiosParamCreator = function (configuration) {
4940
4973
  export const AuthenticationApiFp = function (configuration) {
4941
4974
  const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration);
4942
4975
  return {
4976
+ /**
4977
+ * 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.
4978
+ * @summary Discord - Authorize URL (native clients)
4979
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
4980
+ * @param {*} [options] Override http request option.
4981
+ * @throws {RequiredError}
4982
+ */
4983
+ authorizeUrl(redirect, options) {
4984
+ return __awaiter(this, void 0, void 0, function* () {
4985
+ var _a, _b, _c;
4986
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authorizeUrl(redirect, options);
4987
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4988
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthenticationApi.authorizeUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4989
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4990
+ });
4991
+ },
4943
4992
  /**
4944
4993
  * 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.
4945
4994
  * @summary Discord - OAuth2 callback
@@ -5015,6 +5064,16 @@ export const AuthenticationApiFp = function (configuration) {
5015
5064
  export const AuthenticationApiFactory = function (configuration, basePath, axios) {
5016
5065
  const localVarFp = AuthenticationApiFp(configuration);
5017
5066
  return {
5067
+ /**
5068
+ * 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.
5069
+ * @summary Discord - Authorize URL (native clients)
5070
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
5071
+ * @param {*} [options] Override http request option.
5072
+ * @throws {RequiredError}
5073
+ */
5074
+ authorizeUrl(redirect, options) {
5075
+ return localVarFp.authorizeUrl(redirect, options).then((request) => request(axios, basePath));
5076
+ },
5018
5077
  /**
5019
5078
  * 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.
5020
5079
  * @summary Discord - OAuth2 callback
@@ -5064,6 +5123,16 @@ export const AuthenticationApiFactory = function (configuration, basePath, axios
5064
5123
  * AuthenticationApi - object-oriented interface
5065
5124
  */
5066
5125
  export class AuthenticationApi extends BaseAPI {
5126
+ /**
5127
+ * 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.
5128
+ * @summary Discord - Authorize URL (native clients)
5129
+ * @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
5130
+ * @param {*} [options] Override http request option.
5131
+ * @throws {RequiredError}
5132
+ */
5133
+ authorizeUrl(redirect, options) {
5134
+ return AuthenticationApiFp(this.configuration).authorizeUrl(redirect, options).then((request) => request(this.axios, this.basePath));
5135
+ }
5067
5136
  /**
5068
5137
  * 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.
5069
5138
  * @summary Discord - OAuth2 callback
@@ -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.3
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -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.3
8
8
  *
9
9
  *
10
10
  * 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.3
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.3
8
8
  *
9
9
  *
10
10
  * 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.3
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,7 +3,7 @@
3
3
  * Reborn API
4
4
  * 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
5
5
  *
6
- * The version of the OpenAPI document: 4.9.2
6
+ * The version of the OpenAPI document: 4.9.3
7
7
  *
8
8
  *
9
9
  * 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.3
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -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.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.3
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.3
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,11 +4,64 @@ All URIs are relative to *https://api.smsh.sh*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**authorizeUrl**](#authorizeurl) | **GET** /auth/discord/url | Discord - Authorize URL (native clients)|
7
8
  |[**callback**](#callback) | **GET** /auth/discord/callback | Discord - OAuth2 callback|
8
9
  |[**initiateLogin**](#initiatelogin) | **GET** /auth/discord | Discord - Initiate login|
9
10
  |[**me**](#me) | **GET** /auth/me | Get current user profile|
10
11
  |[**token**](#token) | **POST** /oauth/token | Service - Exchange client credentials for token|
11
12
 
13
+ # **authorizeUrl**
14
+ > DiscordAuthUrlResponse authorizeUrl()
15
+
16
+ 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.
17
+
18
+ ### Example
19
+
20
+ ```typescript
21
+ import {
22
+ AuthenticationApi,
23
+ Configuration
24
+ } from '@rebornteam/reborn-api';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new AuthenticationApi(configuration);
28
+
29
+ let redirect: string; //Final redirect target for the JWT (native deep link). Must be allowlisted. (optional) (default to undefined)
30
+
31
+ const { status, data } = await apiInstance.authorizeUrl(
32
+ redirect
33
+ );
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ |Name | Type | Description | Notes|
39
+ |------------- | ------------- | ------------- | -------------|
40
+ | **redirect** | [**string**] | Final redirect target for the JWT (native deep link). Must be allowlisted. | (optional) defaults to undefined|
41
+
42
+
43
+ ### Return type
44
+
45
+ **DiscordAuthUrlResponse**
46
+
47
+ ### Authorization
48
+
49
+ [DiscordAuth](../README.md#DiscordAuth)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: Not defined
54
+ - **Accept**: application/json
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**200** | Authorize URL payload | - |
61
+ |**400** | The requested &#x60;redirect&#x60; is not allowlisted | - |
62
+
63
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
64
+
12
65
  # **callback**
13
66
  > callback()
14
67
 
@@ -0,0 +1,21 @@
1
+ # DiscordAuthUrlResponse
2
+
3
+ The Discord OAuth2 authorize URL, returned as JSON so a native client can open it directly (system browser → Discord-app universal-link hand-off) rather than following the backend\'s 302. Keeps client_id/scope server-side.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **authorizeUrl** | **string** | Discord OAuth2 authorize URL to open on the client. | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { DiscordAuthUrlResponse } from '@rebornteam/reborn-api';
15
+
16
+ const instance: DiscordAuthUrlResponse = {
17
+ authorizeUrl,
18
+ };
19
+ ```
20
+
21
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -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.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebornteam/reborn-api",
3
- "version": "4.9.2",
3
+ "version": "4.9.3",
4
4
  "description": "OpenAPI client for @rebornteam/reborn-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {