@rebornteam/reborn-api 4.9.0 → 4.9.1

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @rebornteam/reborn-api@4.9.0
1
+ ## @rebornteam/reborn-api@4.9.1
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.0 --save
39
+ npm install @rebornteam/reborn-api@4.9.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
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.0
7
+ * The version of the OpenAPI document: 4.9.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6327,10 +6327,11 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
6327
6327
  * @summary Discord - OAuth2 callback
6328
6328
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
6329
6329
  * @param {string | null} [error] Error code provided by Discord if the user denied access
6330
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\'s chosen redirect target
6330
6331
  * @param {*} [options] Override http request option.
6331
6332
  * @throws {RequiredError}
6332
6333
  */
6333
- callback: async (code?: string | null, error?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6334
+ callback: async (code?: string | null, error?: string | null, state?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6334
6335
  const localVarPath = `/auth/discord/callback`;
6335
6336
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6336
6337
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6355,6 +6356,10 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
6355
6356
  localVarQueryParameter['error'] = error;
6356
6357
  }
6357
6358
 
6359
+ if (state !== undefined) {
6360
+ localVarQueryParameter['state'] = state;
6361
+ }
6362
+
6358
6363
 
6359
6364
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6360
6365
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -6366,12 +6371,13 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
6366
6371
  };
6367
6372
  },
6368
6373
  /**
6369
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
6374
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
6370
6375
  * @summary Discord - Initiate login
6376
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
6371
6377
  * @param {*} [options] Override http request option.
6372
6378
  * @throws {RequiredError}
6373
6379
  */
6374
- initiateLogin: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6380
+ initiateLogin: async (redirect?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6375
6381
  const localVarPath = `/auth/discord`;
6376
6382
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6377
6383
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6388,6 +6394,10 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
6388
6394
  // http bearer authentication required
6389
6395
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
6390
6396
 
6397
+ if (redirect !== undefined) {
6398
+ localVarQueryParameter['redirect'] = redirect;
6399
+ }
6400
+
6391
6401
 
6392
6402
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6393
6403
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -6498,23 +6508,25 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
6498
6508
  * @summary Discord - OAuth2 callback
6499
6509
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
6500
6510
  * @param {string | null} [error] Error code provided by Discord if the user denied access
6511
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
6501
6512
  * @param {*} [options] Override http request option.
6502
6513
  * @throws {RequiredError}
6503
6514
  */
6504
- async callback(code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6505
- const localVarAxiosArgs = await localVarAxiosParamCreator.callback(code, error, options);
6515
+ async callback(code?: string | null, error?: string | null, state?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6516
+ const localVarAxiosArgs = await localVarAxiosParamCreator.callback(code, error, state, options);
6506
6517
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6507
6518
  const localVarOperationServerBasePath = operationServerMap['AuthenticationApi.callback']?.[localVarOperationServerIndex]?.url;
6508
6519
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6509
6520
  },
6510
6521
  /**
6511
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
6522
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
6512
6523
  * @summary Discord - Initiate login
6524
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
6513
6525
  * @param {*} [options] Override http request option.
6514
6526
  * @throws {RequiredError}
6515
6527
  */
6516
- async initiateLogin(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6517
- const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLogin(options);
6528
+ async initiateLogin(redirect?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6529
+ const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLogin(redirect, options);
6518
6530
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6519
6531
  const localVarOperationServerBasePath = operationServerMap['AuthenticationApi.initiateLogin']?.[localVarOperationServerIndex]?.url;
6520
6532
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -6560,20 +6572,22 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
6560
6572
  * @summary Discord - OAuth2 callback
6561
6573
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
6562
6574
  * @param {string | null} [error] Error code provided by Discord if the user denied access
6575
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
6563
6576
  * @param {*} [options] Override http request option.
6564
6577
  * @throws {RequiredError}
6565
6578
  */
6566
- callback(code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<void> {
6567
- return localVarFp.callback(code, error, options).then((request) => request(axios, basePath));
6579
+ callback(code?: string | null, error?: string | null, state?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<void> {
6580
+ return localVarFp.callback(code, error, state, options).then((request) => request(axios, basePath));
6568
6581
  },
6569
6582
  /**
6570
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
6583
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
6571
6584
  * @summary Discord - Initiate login
6585
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
6572
6586
  * @param {*} [options] Override http request option.
6573
6587
  * @throws {RequiredError}
6574
6588
  */
6575
- initiateLogin(options?: RawAxiosRequestConfig): AxiosPromise<void> {
6576
- return localVarFp.initiateLogin(options).then((request) => request(axios, basePath));
6589
+ initiateLogin(redirect?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<void> {
6590
+ return localVarFp.initiateLogin(redirect, options).then((request) => request(axios, basePath));
6577
6591
  },
6578
6592
  /**
6579
6593
  * Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
@@ -6608,21 +6622,23 @@ export class AuthenticationApi extends BaseAPI {
6608
6622
  * @summary Discord - OAuth2 callback
6609
6623
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
6610
6624
  * @param {string | null} [error] Error code provided by Discord if the user denied access
6625
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
6611
6626
  * @param {*} [options] Override http request option.
6612
6627
  * @throws {RequiredError}
6613
6628
  */
6614
- public callback(code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) {
6615
- return AuthenticationApiFp(this.configuration).callback(code, error, options).then((request) => request(this.axios, this.basePath));
6629
+ public callback(code?: string | null, error?: string | null, state?: string | null, options?: RawAxiosRequestConfig) {
6630
+ return AuthenticationApiFp(this.configuration).callback(code, error, state, options).then((request) => request(this.axios, this.basePath));
6616
6631
  }
6617
6632
 
6618
6633
  /**
6619
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
6634
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
6620
6635
  * @summary Discord - Initiate login
6636
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
6621
6637
  * @param {*} [options] Override http request option.
6622
6638
  * @throws {RequiredError}
6623
6639
  */
6624
- public initiateLogin(options?: RawAxiosRequestConfig) {
6625
- return AuthenticationApiFp(this.configuration).initiateLogin(options).then((request) => request(this.axios, this.basePath));
6640
+ public initiateLogin(redirect?: string | null, options?: RawAxiosRequestConfig) {
6641
+ return AuthenticationApiFp(this.configuration).initiateLogin(redirect, options).then((request) => request(this.axios, this.basePath));
6626
6642
  }
6627
6643
 
6628
6644
  /**
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.0
7
+ * The version of the OpenAPI document: 4.9.1
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.0
7
+ * The version of the OpenAPI document: 4.9.1
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.0
6
+ * The version of the OpenAPI document: 4.9.1
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.0
5
+ * The version of the OpenAPI document: 4.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3883,17 +3883,19 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
3883
3883
  * @summary Discord - OAuth2 callback
3884
3884
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
3885
3885
  * @param {string | null} [error] Error code provided by Discord if the user denied access
3886
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
3886
3887
  * @param {*} [options] Override http request option.
3887
3888
  * @throws {RequiredError}
3888
3889
  */
3889
- callback: (code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3890
+ callback: (code?: string | null, error?: string | null, state?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3890
3891
  /**
3891
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
3892
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
3892
3893
  * @summary Discord - Initiate login
3894
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
3893
3895
  * @param {*} [options] Override http request option.
3894
3896
  * @throws {RequiredError}
3895
3897
  */
3896
- initiateLogin: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3898
+ initiateLogin: (redirect?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3897
3899
  /**
3898
3900
  * Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
3899
3901
  * @summary Get current user profile
@@ -3921,17 +3923,19 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
3921
3923
  * @summary Discord - OAuth2 callback
3922
3924
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
3923
3925
  * @param {string | null} [error] Error code provided by Discord if the user denied access
3926
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
3924
3927
  * @param {*} [options] Override http request option.
3925
3928
  * @throws {RequiredError}
3926
3929
  */
3927
- callback(code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3930
+ callback(code?: string | null, error?: string | null, state?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3928
3931
  /**
3929
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
3932
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
3930
3933
  * @summary Discord - Initiate login
3934
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
3931
3935
  * @param {*} [options] Override http request option.
3932
3936
  * @throws {RequiredError}
3933
3937
  */
3934
- initiateLogin(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3938
+ initiateLogin(redirect?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3935
3939
  /**
3936
3940
  * Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
3937
3941
  * @summary Get current user profile
@@ -3959,17 +3963,19 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
3959
3963
  * @summary Discord - OAuth2 callback
3960
3964
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
3961
3965
  * @param {string | null} [error] Error code provided by Discord if the user denied access
3966
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
3962
3967
  * @param {*} [options] Override http request option.
3963
3968
  * @throws {RequiredError}
3964
3969
  */
3965
- callback(code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3970
+ callback(code?: string | null, error?: string | null, state?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3966
3971
  /**
3967
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
3972
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
3968
3973
  * @summary Discord - Initiate login
3974
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
3969
3975
  * @param {*} [options] Override http request option.
3970
3976
  * @throws {RequiredError}
3971
3977
  */
3972
- initiateLogin(options?: RawAxiosRequestConfig): AxiosPromise<void>;
3978
+ initiateLogin(redirect?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3973
3979
  /**
3974
3980
  * Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
3975
3981
  * @summary Get current user profile
@@ -3997,17 +4003,19 @@ export declare class AuthenticationApi extends BaseAPI {
3997
4003
  * @summary Discord - OAuth2 callback
3998
4004
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
3999
4005
  * @param {string | null} [error] Error code provided by Discord if the user denied access
4006
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
4000
4007
  * @param {*} [options] Override http request option.
4001
4008
  * @throws {RequiredError}
4002
4009
  */
4003
- callback(code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4010
+ callback(code?: string | null, error?: string | null, state?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4004
4011
  /**
4005
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
4012
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
4006
4013
  * @summary Discord - Initiate login
4014
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
4007
4015
  * @param {*} [options] Override http request option.
4008
4016
  * @throws {RequiredError}
4009
4017
  */
4010
- initiateLogin(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4018
+ initiateLogin(redirect?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4011
4019
  /**
4012
4020
  * Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
4013
4021
  * @summary Get current user profile
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.0
8
+ * The version of the OpenAPI document: 4.9.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4214,10 +4214,11 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
4214
4214
  * @summary Discord - OAuth2 callback
4215
4215
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
4216
4216
  * @param {string | null} [error] Error code provided by Discord if the user denied access
4217
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
4217
4218
  * @param {*} [options] Override http request option.
4218
4219
  * @throws {RequiredError}
4219
4220
  */
4220
- callback: (code_1, error_1, ...args_1) => __awaiter(this, [code_1, error_1, ...args_1], void 0, function* (code, error, options = {}) {
4221
+ callback: (code_1, error_1, state_1, ...args_1) => __awaiter(this, [code_1, error_1, state_1, ...args_1], void 0, function* (code, error, state, options = {}) {
4221
4222
  const localVarPath = `/auth/discord/callback`;
4222
4223
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4223
4224
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4237,6 +4238,9 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
4237
4238
  if (error !== undefined) {
4238
4239
  localVarQueryParameter['error'] = error;
4239
4240
  }
4241
+ if (state !== undefined) {
4242
+ localVarQueryParameter['state'] = state;
4243
+ }
4240
4244
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4241
4245
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4242
4246
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4246,12 +4250,13 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
4246
4250
  };
4247
4251
  }),
4248
4252
  /**
4249
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
4253
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
4250
4254
  * @summary Discord - Initiate login
4255
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
4251
4256
  * @param {*} [options] Override http request option.
4252
4257
  * @throws {RequiredError}
4253
4258
  */
4254
- initiateLogin: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4259
+ initiateLogin: (redirect_1, ...args_1) => __awaiter(this, [redirect_1, ...args_1], void 0, function* (redirect, options = {}) {
4255
4260
  const localVarPath = `/auth/discord`;
4256
4261
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4257
4262
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4265,6 +4270,9 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
4265
4270
  // authentication DiscordAuth required
4266
4271
  // http bearer authentication required
4267
4272
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4273
+ if (redirect !== undefined) {
4274
+ localVarQueryParameter['redirect'] = redirect;
4275
+ }
4268
4276
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4269
4277
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4270
4278
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4360,28 +4368,30 @@ const AuthenticationApiFp = function (configuration) {
4360
4368
  * @summary Discord - OAuth2 callback
4361
4369
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
4362
4370
  * @param {string | null} [error] Error code provided by Discord if the user denied access
4371
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
4363
4372
  * @param {*} [options] Override http request option.
4364
4373
  * @throws {RequiredError}
4365
4374
  */
4366
- callback(code, error, options) {
4375
+ callback(code, error, state, options) {
4367
4376
  return __awaiter(this, void 0, void 0, function* () {
4368
4377
  var _a, _b, _c;
4369
- const localVarAxiosArgs = yield localVarAxiosParamCreator.callback(code, error, options);
4378
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.callback(code, error, state, options);
4370
4379
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4371
4380
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.callback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4372
4381
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4373
4382
  });
4374
4383
  },
4375
4384
  /**
4376
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
4385
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
4377
4386
  * @summary Discord - Initiate login
4387
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
4378
4388
  * @param {*} [options] Override http request option.
4379
4389
  * @throws {RequiredError}
4380
4390
  */
4381
- initiateLogin(options) {
4391
+ initiateLogin(redirect, options) {
4382
4392
  return __awaiter(this, void 0, void 0, function* () {
4383
4393
  var _a, _b, _c;
4384
- const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateLogin(options);
4394
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateLogin(redirect, options);
4385
4395
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4386
4396
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.initiateLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4387
4397
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4434,20 +4444,22 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
4434
4444
  * @summary Discord - OAuth2 callback
4435
4445
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
4436
4446
  * @param {string | null} [error] Error code provided by Discord if the user denied access
4447
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
4437
4448
  * @param {*} [options] Override http request option.
4438
4449
  * @throws {RequiredError}
4439
4450
  */
4440
- callback(code, error, options) {
4441
- return localVarFp.callback(code, error, options).then((request) => request(axios, basePath));
4451
+ callback(code, error, state, options) {
4452
+ return localVarFp.callback(code, error, state, options).then((request) => request(axios, basePath));
4442
4453
  },
4443
4454
  /**
4444
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
4455
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
4445
4456
  * @summary Discord - Initiate login
4457
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
4446
4458
  * @param {*} [options] Override http request option.
4447
4459
  * @throws {RequiredError}
4448
4460
  */
4449
- initiateLogin(options) {
4450
- return localVarFp.initiateLogin(options).then((request) => request(axios, basePath));
4461
+ initiateLogin(redirect, options) {
4462
+ return localVarFp.initiateLogin(redirect, options).then((request) => request(axios, basePath));
4451
4463
  },
4452
4464
  /**
4453
4465
  * Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
@@ -4482,20 +4494,22 @@ class AuthenticationApi extends base_1.BaseAPI {
4482
4494
  * @summary Discord - OAuth2 callback
4483
4495
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
4484
4496
  * @param {string | null} [error] Error code provided by Discord if the user denied access
4497
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
4485
4498
  * @param {*} [options] Override http request option.
4486
4499
  * @throws {RequiredError}
4487
4500
  */
4488
- callback(code, error, options) {
4489
- return (0, exports.AuthenticationApiFp)(this.configuration).callback(code, error, options).then((request) => request(this.axios, this.basePath));
4501
+ callback(code, error, state, options) {
4502
+ return (0, exports.AuthenticationApiFp)(this.configuration).callback(code, error, state, options).then((request) => request(this.axios, this.basePath));
4490
4503
  }
4491
4504
  /**
4492
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
4505
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
4493
4506
  * @summary Discord - Initiate login
4507
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
4494
4508
  * @param {*} [options] Override http request option.
4495
4509
  * @throws {RequiredError}
4496
4510
  */
4497
- initiateLogin(options) {
4498
- return (0, exports.AuthenticationApiFp)(this.configuration).initiateLogin(options).then((request) => request(this.axios, this.basePath));
4511
+ initiateLogin(redirect, options) {
4512
+ return (0, exports.AuthenticationApiFp)(this.configuration).initiateLogin(redirect, options).then((request) => request(this.axios, this.basePath));
4499
4513
  }
4500
4514
  /**
4501
4515
  * Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
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.0
5
+ * The version of the OpenAPI document: 4.9.1
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.0
8
+ * The version of the OpenAPI document: 4.9.1
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.0
5
+ * The version of the OpenAPI document: 4.9.1
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.0
8
+ * The version of the OpenAPI document: 4.9.1
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.0
5
+ * The version of the OpenAPI document: 4.9.1
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.0
7
+ * The version of the OpenAPI document: 4.9.1
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.0
5
+ * The version of the OpenAPI document: 4.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3883,17 +3883,19 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
3883
3883
  * @summary Discord - OAuth2 callback
3884
3884
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
3885
3885
  * @param {string | null} [error] Error code provided by Discord if the user denied access
3886
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
3886
3887
  * @param {*} [options] Override http request option.
3887
3888
  * @throws {RequiredError}
3888
3889
  */
3889
- callback: (code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3890
+ callback: (code?: string | null, error?: string | null, state?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3890
3891
  /**
3891
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
3892
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
3892
3893
  * @summary Discord - Initiate login
3894
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
3893
3895
  * @param {*} [options] Override http request option.
3894
3896
  * @throws {RequiredError}
3895
3897
  */
3896
- initiateLogin: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3898
+ initiateLogin: (redirect?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3897
3899
  /**
3898
3900
  * Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
3899
3901
  * @summary Get current user profile
@@ -3921,17 +3923,19 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
3921
3923
  * @summary Discord - OAuth2 callback
3922
3924
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
3923
3925
  * @param {string | null} [error] Error code provided by Discord if the user denied access
3926
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
3924
3927
  * @param {*} [options] Override http request option.
3925
3928
  * @throws {RequiredError}
3926
3929
  */
3927
- callback(code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3930
+ callback(code?: string | null, error?: string | null, state?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3928
3931
  /**
3929
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
3932
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
3930
3933
  * @summary Discord - Initiate login
3934
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
3931
3935
  * @param {*} [options] Override http request option.
3932
3936
  * @throws {RequiredError}
3933
3937
  */
3934
- initiateLogin(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3938
+ initiateLogin(redirect?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3935
3939
  /**
3936
3940
  * Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
3937
3941
  * @summary Get current user profile
@@ -3959,17 +3963,19 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
3959
3963
  * @summary Discord - OAuth2 callback
3960
3964
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
3961
3965
  * @param {string | null} [error] Error code provided by Discord if the user denied access
3966
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
3962
3967
  * @param {*} [options] Override http request option.
3963
3968
  * @throws {RequiredError}
3964
3969
  */
3965
- callback(code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3970
+ callback(code?: string | null, error?: string | null, state?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3966
3971
  /**
3967
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
3972
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
3968
3973
  * @summary Discord - Initiate login
3974
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
3969
3975
  * @param {*} [options] Override http request option.
3970
3976
  * @throws {RequiredError}
3971
3977
  */
3972
- initiateLogin(options?: RawAxiosRequestConfig): AxiosPromise<void>;
3978
+ initiateLogin(redirect?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3973
3979
  /**
3974
3980
  * Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
3975
3981
  * @summary Get current user profile
@@ -3997,17 +4003,19 @@ export declare class AuthenticationApi extends BaseAPI {
3997
4003
  * @summary Discord - OAuth2 callback
3998
4004
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
3999
4005
  * @param {string | null} [error] Error code provided by Discord if the user denied access
4006
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
4000
4007
  * @param {*} [options] Override http request option.
4001
4008
  * @throws {RequiredError}
4002
4009
  */
4003
- callback(code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4010
+ callback(code?: string | null, error?: string | null, state?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4004
4011
  /**
4005
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
4012
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
4006
4013
  * @summary Discord - Initiate login
4014
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
4007
4015
  * @param {*} [options] Override http request option.
4008
4016
  * @throws {RequiredError}
4009
4017
  */
4010
- initiateLogin(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4018
+ initiateLogin(redirect?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
4011
4019
  /**
4012
4020
  * Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
4013
4021
  * @summary Get current user profile
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.0
7
+ * The version of the OpenAPI document: 4.9.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4178,10 +4178,11 @@ export const AuthenticationApiAxiosParamCreator = function (configuration) {
4178
4178
  * @summary Discord - OAuth2 callback
4179
4179
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
4180
4180
  * @param {string | null} [error] Error code provided by Discord if the user denied access
4181
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
4181
4182
  * @param {*} [options] Override http request option.
4182
4183
  * @throws {RequiredError}
4183
4184
  */
4184
- callback: (code_1, error_1, ...args_1) => __awaiter(this, [code_1, error_1, ...args_1], void 0, function* (code, error, options = {}) {
4185
+ callback: (code_1, error_1, state_1, ...args_1) => __awaiter(this, [code_1, error_1, state_1, ...args_1], void 0, function* (code, error, state, options = {}) {
4185
4186
  const localVarPath = `/auth/discord/callback`;
4186
4187
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4187
4188
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4201,6 +4202,9 @@ export const AuthenticationApiAxiosParamCreator = function (configuration) {
4201
4202
  if (error !== undefined) {
4202
4203
  localVarQueryParameter['error'] = error;
4203
4204
  }
4205
+ if (state !== undefined) {
4206
+ localVarQueryParameter['state'] = state;
4207
+ }
4204
4208
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4205
4209
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4206
4210
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4210,12 +4214,13 @@ export const AuthenticationApiAxiosParamCreator = function (configuration) {
4210
4214
  };
4211
4215
  }),
4212
4216
  /**
4213
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
4217
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
4214
4218
  * @summary Discord - Initiate login
4219
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
4215
4220
  * @param {*} [options] Override http request option.
4216
4221
  * @throws {RequiredError}
4217
4222
  */
4218
- initiateLogin: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4223
+ initiateLogin: (redirect_1, ...args_1) => __awaiter(this, [redirect_1, ...args_1], void 0, function* (redirect, options = {}) {
4219
4224
  const localVarPath = `/auth/discord`;
4220
4225
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4221
4226
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4229,6 +4234,9 @@ export const AuthenticationApiAxiosParamCreator = function (configuration) {
4229
4234
  // authentication DiscordAuth required
4230
4235
  // http bearer authentication required
4231
4236
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4237
+ if (redirect !== undefined) {
4238
+ localVarQueryParameter['redirect'] = redirect;
4239
+ }
4232
4240
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4233
4241
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4234
4242
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4323,28 +4331,30 @@ export const AuthenticationApiFp = function (configuration) {
4323
4331
  * @summary Discord - OAuth2 callback
4324
4332
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
4325
4333
  * @param {string | null} [error] Error code provided by Discord if the user denied access
4334
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
4326
4335
  * @param {*} [options] Override http request option.
4327
4336
  * @throws {RequiredError}
4328
4337
  */
4329
- callback(code, error, options) {
4338
+ callback(code, error, state, options) {
4330
4339
  return __awaiter(this, void 0, void 0, function* () {
4331
4340
  var _a, _b, _c;
4332
- const localVarAxiosArgs = yield localVarAxiosParamCreator.callback(code, error, options);
4341
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.callback(code, error, state, options);
4333
4342
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4334
4343
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthenticationApi.callback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4335
4344
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4336
4345
  });
4337
4346
  },
4338
4347
  /**
4339
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
4348
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
4340
4349
  * @summary Discord - Initiate login
4350
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
4341
4351
  * @param {*} [options] Override http request option.
4342
4352
  * @throws {RequiredError}
4343
4353
  */
4344
- initiateLogin(options) {
4354
+ initiateLogin(redirect, options) {
4345
4355
  return __awaiter(this, void 0, void 0, function* () {
4346
4356
  var _a, _b, _c;
4347
- const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateLogin(options);
4357
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateLogin(redirect, options);
4348
4358
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4349
4359
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthenticationApi.initiateLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4350
4360
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4396,20 +4406,22 @@ export const AuthenticationApiFactory = function (configuration, basePath, axios
4396
4406
  * @summary Discord - OAuth2 callback
4397
4407
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
4398
4408
  * @param {string | null} [error] Error code provided by Discord if the user denied access
4409
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
4399
4410
  * @param {*} [options] Override http request option.
4400
4411
  * @throws {RequiredError}
4401
4412
  */
4402
- callback(code, error, options) {
4403
- return localVarFp.callback(code, error, options).then((request) => request(axios, basePath));
4413
+ callback(code, error, state, options) {
4414
+ return localVarFp.callback(code, error, state, options).then((request) => request(axios, basePath));
4404
4415
  },
4405
4416
  /**
4406
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
4417
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
4407
4418
  * @summary Discord - Initiate login
4419
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
4408
4420
  * @param {*} [options] Override http request option.
4409
4421
  * @throws {RequiredError}
4410
4422
  */
4411
- initiateLogin(options) {
4412
- return localVarFp.initiateLogin(options).then((request) => request(axios, basePath));
4423
+ initiateLogin(redirect, options) {
4424
+ return localVarFp.initiateLogin(redirect, options).then((request) => request(axios, basePath));
4413
4425
  },
4414
4426
  /**
4415
4427
  * Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
@@ -4443,20 +4455,22 @@ export class AuthenticationApi extends BaseAPI {
4443
4455
  * @summary Discord - OAuth2 callback
4444
4456
  * @param {string | null} [code] Authorization code provided by Discord on successful approval
4445
4457
  * @param {string | null} [error] Error code provided by Discord if the user denied access
4458
+ * @param {string | null} [state] Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target
4446
4459
  * @param {*} [options] Override http request option.
4447
4460
  * @throws {RequiredError}
4448
4461
  */
4449
- callback(code, error, options) {
4450
- return AuthenticationApiFp(this.configuration).callback(code, error, options).then((request) => request(this.axios, this.basePath));
4462
+ callback(code, error, state, options) {
4463
+ return AuthenticationApiFp(this.configuration).callback(code, error, state, options).then((request) => request(this.axios, this.basePath));
4451
4464
  }
4452
4465
  /**
4453
- * Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
4466
+ * Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
4454
4467
  * @summary Discord - Initiate login
4468
+ * @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
4455
4469
  * @param {*} [options] Override http request option.
4456
4470
  * @throws {RequiredError}
4457
4471
  */
4458
- initiateLogin(options) {
4459
- return AuthenticationApiFp(this.configuration).initiateLogin(options).then((request) => request(this.axios, this.basePath));
4472
+ initiateLogin(redirect, options) {
4473
+ return AuthenticationApiFp(this.configuration).initiateLogin(redirect, options).then((request) => request(this.axios, this.basePath));
4460
4474
  }
4461
4475
  /**
4462
4476
  * Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
@@ -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.0
5
+ * The version of the OpenAPI document: 4.9.1
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.0
7
+ * The version of the OpenAPI document: 4.9.1
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.0
5
+ * The version of the OpenAPI document: 4.9.1
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.0
7
+ * The version of the OpenAPI document: 4.9.1
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.0
5
+ * The version of the OpenAPI document: 4.9.1
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.0
6
+ * The version of the OpenAPI document: 4.9.1
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.0
5
+ * The version of the OpenAPI document: 4.9.1
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.0
7
+ * The version of the OpenAPI document: 4.9.1
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.0
5
+ * The version of the OpenAPI document: 4.9.1
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.0
8
+ * The version of the OpenAPI document: 4.9.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,10 +27,12 @@ const apiInstance = new AuthenticationApi(configuration);
27
27
 
28
28
  let code: string; //Authorization code provided by Discord on successful approval (optional) (default to undefined)
29
29
  let error: string; //Error code provided by Discord if the user denied access (optional) (default to undefined)
30
+ let state: string; //Opaque value echoed back by Discord — carries the client\'s chosen redirect target (optional) (default to undefined)
30
31
 
31
32
  const { status, data } = await apiInstance.callback(
32
33
  code,
33
- error
34
+ error,
35
+ state
34
36
  );
35
37
  ```
36
38
 
@@ -40,6 +42,7 @@ const { status, data } = await apiInstance.callback(
40
42
  |------------- | ------------- | ------------- | -------------|
41
43
  | **code** | [**string**] | Authorization code provided by Discord on successful approval | (optional) defaults to undefined|
42
44
  | **error** | [**string**] | Error code provided by Discord if the user denied access | (optional) defaults to undefined|
45
+ | **state** | [**string**] | Opaque value echoed back by Discord — carries the client\&#39;s chosen redirect target | (optional) defaults to undefined|
43
46
 
44
47
 
45
48
  ### Return type
@@ -66,7 +69,7 @@ void (empty response body)
66
69
  # **initiateLogin**
67
70
  > initiateLogin()
68
71
 
69
- Redirects the browser to Discord\'s OAuth2 authorization page. Not called directly the admin frontend navigates to this URL to begin the login flow.
72
+ Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
70
73
 
71
74
  ### Example
72
75
 
@@ -79,11 +82,18 @@ import {
79
82
  const configuration = new Configuration();
80
83
  const apiInstance = new AuthenticationApi(configuration);
81
84
 
82
- const { status, data } = await apiInstance.initiateLogin();
85
+ let redirect: string; //Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend. (optional) (default to undefined)
86
+
87
+ const { status, data } = await apiInstance.initiateLogin(
88
+ redirect
89
+ );
83
90
  ```
84
91
 
85
92
  ### Parameters
86
- This endpoint does not have any parameters.
93
+
94
+ |Name | Type | Description | Notes|
95
+ |------------- | ------------- | ------------- | -------------|
96
+ | **redirect** | [**string**] | Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend. | (optional) defaults to undefined|
87
97
 
88
98
 
89
99
  ### Return type
@@ -104,6 +114,7 @@ void (empty response body)
104
114
  | Status code | Description | Response headers |
105
115
  |-------------|-------------|------------------|
106
116
  |**302** | Redirect to Discord authorization URL | - |
117
+ |**400** | The requested &#x60;redirect&#x60; is not allowlisted | - |
107
118
 
108
119
  [[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)
109
120
 
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.0
7
+ * The version of the OpenAPI document: 4.9.1
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.0",
3
+ "version": "4.9.1",
4
4
  "description": "OpenAPI client for @rebornteam/reborn-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {