@rebornteam/reborn-api 4.8.0 → 4.9.0
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 +3 -2
- package/api.ts +66 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +29 -1
- package/dist/api.js +63 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +29 -1
- package/dist/esm/api.js +63 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AdminPlayersApi.md +47 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @rebornteam/reborn-api@4.
|
|
1
|
+
## @rebornteam/reborn-api@4.9.0
|
|
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.
|
|
39
|
+
npm install @rebornteam/reborn-api@4.9.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -92,6 +92,7 @@ Class | Method | HTTP request | Description
|
|
|
92
92
|
*AdminPlayersApi* | [**setAggressiveModeImmunity**](docs/AdminPlayersApi.md#setaggressivemodeimmunity) | **PATCH** /admin/player/{uuid}/aggressive-mode-immunity | Toggle aggressive-mode immunity
|
|
93
93
|
*AdminPlayersApi* | [**trustFactorBreakdown**](docs/AdminPlayersApi.md#trustfactorbreakdown) | **GET** /admin/player/{uuid}/trust-factor-breakdown | Trust factor breakdown for a player
|
|
94
94
|
*AdminPlayersApi* | [**trustFactorHistory**](docs/AdminPlayersApi.md#trustfactorhistory) | **GET** /admin/player/{uuid}/trust-factor-history | Trust factor history for a player
|
|
95
|
+
*AdminPlayersApi* | [**trustFactorRecompute**](docs/AdminPlayersApi.md#trustfactorrecompute) | **POST** /admin/player/trust-factor-recompute | Start a trust-factor recompute job
|
|
95
96
|
*AdminPunishmentsApi* | [**applyPunishment**](docs/AdminPunishmentsApi.md#applypunishment) | **POST** /admin/punishment/apply | Apply punishment
|
|
96
97
|
*AdminPunishmentsApi* | [**createDraft**](docs/AdminPunishmentsApi.md#createdraft) | **POST** /admin/punishment/draft | Evaluate punishment impact
|
|
97
98
|
*AdminPunishmentsApi* | [**editPunishment**](docs/AdminPunishmentsApi.md#editpunishment) | **PATCH** /admin/punishment/{id} | Edit a punishment
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 4.9.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4701,6 +4701,40 @@ export const AdminPlayersApiAxiosParamCreator = function (configuration?: Config
|
|
|
4701
4701
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4702
4702
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4703
4703
|
|
|
4704
|
+
return {
|
|
4705
|
+
url: toPathString(localVarUrlObj),
|
|
4706
|
+
options: localVarRequestOptions,
|
|
4707
|
+
};
|
|
4708
|
+
},
|
|
4709
|
+
/**
|
|
4710
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
4711
|
+
* @summary Start a trust-factor recompute job
|
|
4712
|
+
* @param {*} [options] Override http request option.
|
|
4713
|
+
* @throws {RequiredError}
|
|
4714
|
+
*/
|
|
4715
|
+
trustFactorRecompute: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4716
|
+
const localVarPath = `/admin/player/trust-factor-recompute`;
|
|
4717
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4718
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4719
|
+
let baseOptions;
|
|
4720
|
+
if (configuration) {
|
|
4721
|
+
baseOptions = configuration.baseOptions;
|
|
4722
|
+
}
|
|
4723
|
+
|
|
4724
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4725
|
+
const localVarHeaderParameter = {} as any;
|
|
4726
|
+
const localVarQueryParameter = {} as any;
|
|
4727
|
+
|
|
4728
|
+
// authentication DiscordAuth required
|
|
4729
|
+
// http bearer authentication required
|
|
4730
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4731
|
+
|
|
4732
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
4733
|
+
|
|
4734
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4735
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4736
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4737
|
+
|
|
4704
4738
|
return {
|
|
4705
4739
|
url: toPathString(localVarUrlObj),
|
|
4706
4740
|
options: localVarRequestOptions,
|
|
@@ -4989,6 +5023,18 @@ export const AdminPlayersApiFp = function(configuration?: Configuration) {
|
|
|
4989
5023
|
const localVarOperationServerBasePath = operationServerMap['AdminPlayersApi.trustFactorHistory']?.[localVarOperationServerIndex]?.url;
|
|
4990
5024
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4991
5025
|
},
|
|
5026
|
+
/**
|
|
5027
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
5028
|
+
* @summary Start a trust-factor recompute job
|
|
5029
|
+
* @param {*} [options] Override http request option.
|
|
5030
|
+
* @throws {RequiredError}
|
|
5031
|
+
*/
|
|
5032
|
+
async trustFactorRecompute(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAsyncJobStartResponse>> {
|
|
5033
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.trustFactorRecompute(options);
|
|
5034
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5035
|
+
const localVarOperationServerBasePath = operationServerMap['AdminPlayersApi.trustFactorRecompute']?.[localVarOperationServerIndex]?.url;
|
|
5036
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5037
|
+
},
|
|
4992
5038
|
}
|
|
4993
5039
|
};
|
|
4994
5040
|
|
|
@@ -5212,6 +5258,15 @@ export const AdminPlayersApiFactory = function (configuration?: Configuration, b
|
|
|
5212
5258
|
trustFactorHistory(uuid: string, days?: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminTrustFactorHistoryEntry> {
|
|
5213
5259
|
return localVarFp.trustFactorHistory(uuid, days, options).then((request) => request(axios, basePath));
|
|
5214
5260
|
},
|
|
5261
|
+
/**
|
|
5262
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
5263
|
+
* @summary Start a trust-factor recompute job
|
|
5264
|
+
* @param {*} [options] Override http request option.
|
|
5265
|
+
* @throws {RequiredError}
|
|
5266
|
+
*/
|
|
5267
|
+
trustFactorRecompute(options?: RawAxiosRequestConfig): AxiosPromise<AdminAsyncJobStartResponse> {
|
|
5268
|
+
return localVarFp.trustFactorRecompute(options).then((request) => request(axios, basePath));
|
|
5269
|
+
},
|
|
5215
5270
|
};
|
|
5216
5271
|
};
|
|
5217
5272
|
|
|
@@ -5452,6 +5507,16 @@ export class AdminPlayersApi extends BaseAPI {
|
|
|
5452
5507
|
public trustFactorHistory(uuid: string, days?: number, options?: RawAxiosRequestConfig) {
|
|
5453
5508
|
return AdminPlayersApiFp(this.configuration).trustFactorHistory(uuid, days, options).then((request) => request(this.axios, this.basePath));
|
|
5454
5509
|
}
|
|
5510
|
+
|
|
5511
|
+
/**
|
|
5512
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
5513
|
+
* @summary Start a trust-factor recompute job
|
|
5514
|
+
* @param {*} [options] Override http request option.
|
|
5515
|
+
* @throws {RequiredError}
|
|
5516
|
+
*/
|
|
5517
|
+
public trustFactorRecompute(options?: RawAxiosRequestConfig) {
|
|
5518
|
+
return AdminPlayersApiFp(this.configuration).trustFactorRecompute(options).then((request) => request(this.axios, this.basePath));
|
|
5519
|
+
}
|
|
5455
5520
|
}
|
|
5456
5521
|
|
|
5457
5522
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 4.9.0
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 4.9.0
|
|
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.
|
|
6
|
+
* The version of the OpenAPI document: 4.9.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 4.9.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2944,6 +2944,13 @@ export declare const AdminPlayersApiAxiosParamCreator: (configuration?: Configur
|
|
|
2944
2944
|
* @throws {RequiredError}
|
|
2945
2945
|
*/
|
|
2946
2946
|
trustFactorHistory: (uuid: string, days?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2947
|
+
/**
|
|
2948
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
2949
|
+
* @summary Start a trust-factor recompute job
|
|
2950
|
+
* @param {*} [options] Override http request option.
|
|
2951
|
+
* @throws {RequiredError}
|
|
2952
|
+
*/
|
|
2953
|
+
trustFactorRecompute: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2947
2954
|
};
|
|
2948
2955
|
/**
|
|
2949
2956
|
* AdminPlayersApi - functional programming interface
|
|
@@ -3123,6 +3130,13 @@ export declare const AdminPlayersApiFp: (configuration?: Configuration) => {
|
|
|
3123
3130
|
* @throws {RequiredError}
|
|
3124
3131
|
*/
|
|
3125
3132
|
trustFactorHistory(uuid: string, days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminTrustFactorHistoryEntry>>;
|
|
3133
|
+
/**
|
|
3134
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
3135
|
+
* @summary Start a trust-factor recompute job
|
|
3136
|
+
* @param {*} [options] Override http request option.
|
|
3137
|
+
* @throws {RequiredError}
|
|
3138
|
+
*/
|
|
3139
|
+
trustFactorRecompute(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAsyncJobStartResponse>>;
|
|
3126
3140
|
};
|
|
3127
3141
|
/**
|
|
3128
3142
|
* AdminPlayersApi - factory interface
|
|
@@ -3302,6 +3316,13 @@ export declare const AdminPlayersApiFactory: (configuration?: Configuration, bas
|
|
|
3302
3316
|
* @throws {RequiredError}
|
|
3303
3317
|
*/
|
|
3304
3318
|
trustFactorHistory(uuid: string, days?: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminTrustFactorHistoryEntry>;
|
|
3319
|
+
/**
|
|
3320
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
3321
|
+
* @summary Start a trust-factor recompute job
|
|
3322
|
+
* @param {*} [options] Override http request option.
|
|
3323
|
+
* @throws {RequiredError}
|
|
3324
|
+
*/
|
|
3325
|
+
trustFactorRecompute(options?: RawAxiosRequestConfig): AxiosPromise<AdminAsyncJobStartResponse>;
|
|
3305
3326
|
};
|
|
3306
3327
|
/**
|
|
3307
3328
|
* AdminPlayersApi - object-oriented interface
|
|
@@ -3481,6 +3502,13 @@ export declare class AdminPlayersApi extends BaseAPI {
|
|
|
3481
3502
|
* @throws {RequiredError}
|
|
3482
3503
|
*/
|
|
3483
3504
|
trustFactorHistory(uuid: string, days?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminTrustFactorHistoryEntry, any, {}>>;
|
|
3505
|
+
/**
|
|
3506
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
3507
|
+
* @summary Start a trust-factor recompute job
|
|
3508
|
+
* @param {*} [options] Override http request option.
|
|
3509
|
+
* @throws {RequiredError}
|
|
3510
|
+
*/
|
|
3511
|
+
trustFactorRecompute(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminAsyncJobStartResponse, any, {}>>;
|
|
3484
3512
|
}
|
|
3485
3513
|
/**
|
|
3486
3514
|
* AdminPunishmentsApi - axios parameter creator
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 4.9.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2597,6 +2597,35 @@ const AdminPlayersApiAxiosParamCreator = function (configuration) {
|
|
|
2597
2597
|
options: localVarRequestOptions,
|
|
2598
2598
|
};
|
|
2599
2599
|
}),
|
|
2600
|
+
/**
|
|
2601
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
2602
|
+
* @summary Start a trust-factor recompute job
|
|
2603
|
+
* @param {*} [options] Override http request option.
|
|
2604
|
+
* @throws {RequiredError}
|
|
2605
|
+
*/
|
|
2606
|
+
trustFactorRecompute: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2607
|
+
const localVarPath = `/admin/player/trust-factor-recompute`;
|
|
2608
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2609
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2610
|
+
let baseOptions;
|
|
2611
|
+
if (configuration) {
|
|
2612
|
+
baseOptions = configuration.baseOptions;
|
|
2613
|
+
}
|
|
2614
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2615
|
+
const localVarHeaderParameter = {};
|
|
2616
|
+
const localVarQueryParameter = {};
|
|
2617
|
+
// authentication DiscordAuth required
|
|
2618
|
+
// http bearer authentication required
|
|
2619
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2620
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2621
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2622
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2623
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2624
|
+
return {
|
|
2625
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2626
|
+
options: localVarRequestOptions,
|
|
2627
|
+
};
|
|
2628
|
+
}),
|
|
2600
2629
|
};
|
|
2601
2630
|
};
|
|
2602
2631
|
exports.AdminPlayersApiAxiosParamCreator = AdminPlayersApiAxiosParamCreator;
|
|
@@ -2940,6 +2969,21 @@ const AdminPlayersApiFp = function (configuration) {
|
|
|
2940
2969
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2941
2970
|
});
|
|
2942
2971
|
},
|
|
2972
|
+
/**
|
|
2973
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
2974
|
+
* @summary Start a trust-factor recompute job
|
|
2975
|
+
* @param {*} [options] Override http request option.
|
|
2976
|
+
* @throws {RequiredError}
|
|
2977
|
+
*/
|
|
2978
|
+
trustFactorRecompute(options) {
|
|
2979
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2980
|
+
var _a, _b, _c;
|
|
2981
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.trustFactorRecompute(options);
|
|
2982
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2983
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminPlayersApi.trustFactorRecompute']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2984
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2985
|
+
});
|
|
2986
|
+
},
|
|
2943
2987
|
};
|
|
2944
2988
|
};
|
|
2945
2989
|
exports.AdminPlayersApiFp = AdminPlayersApiFp;
|
|
@@ -3163,6 +3207,15 @@ const AdminPlayersApiFactory = function (configuration, basePath, axios) {
|
|
|
3163
3207
|
trustFactorHistory(uuid, days, options) {
|
|
3164
3208
|
return localVarFp.trustFactorHistory(uuid, days, options).then((request) => request(axios, basePath));
|
|
3165
3209
|
},
|
|
3210
|
+
/**
|
|
3211
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
3212
|
+
* @summary Start a trust-factor recompute job
|
|
3213
|
+
* @param {*} [options] Override http request option.
|
|
3214
|
+
* @throws {RequiredError}
|
|
3215
|
+
*/
|
|
3216
|
+
trustFactorRecompute(options) {
|
|
3217
|
+
return localVarFp.trustFactorRecompute(options).then((request) => request(axios, basePath));
|
|
3218
|
+
},
|
|
3166
3219
|
};
|
|
3167
3220
|
};
|
|
3168
3221
|
exports.AdminPlayersApiFactory = AdminPlayersApiFactory;
|
|
@@ -3384,6 +3437,15 @@ class AdminPlayersApi extends base_1.BaseAPI {
|
|
|
3384
3437
|
trustFactorHistory(uuid, days, options) {
|
|
3385
3438
|
return (0, exports.AdminPlayersApiFp)(this.configuration).trustFactorHistory(uuid, days, options).then((request) => request(this.axios, this.basePath));
|
|
3386
3439
|
}
|
|
3440
|
+
/**
|
|
3441
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
3442
|
+
* @summary Start a trust-factor recompute job
|
|
3443
|
+
* @param {*} [options] Override http request option.
|
|
3444
|
+
* @throws {RequiredError}
|
|
3445
|
+
*/
|
|
3446
|
+
trustFactorRecompute(options) {
|
|
3447
|
+
return (0, exports.AdminPlayersApiFp)(this.configuration).trustFactorRecompute(options).then((request) => request(this.axios, this.basePath));
|
|
3448
|
+
}
|
|
3387
3449
|
}
|
|
3388
3450
|
exports.AdminPlayersApi = AdminPlayersApi;
|
|
3389
3451
|
/**
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 4.9.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 4.9.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 4.9.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 4.9.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.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.
|
|
5
|
+
* The version of the OpenAPI document: 4.9.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.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.
|
|
7
|
+
* The version of the OpenAPI document: 4.9.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 4.9.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2944,6 +2944,13 @@ export declare const AdminPlayersApiAxiosParamCreator: (configuration?: Configur
|
|
|
2944
2944
|
* @throws {RequiredError}
|
|
2945
2945
|
*/
|
|
2946
2946
|
trustFactorHistory: (uuid: string, days?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2947
|
+
/**
|
|
2948
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
2949
|
+
* @summary Start a trust-factor recompute job
|
|
2950
|
+
* @param {*} [options] Override http request option.
|
|
2951
|
+
* @throws {RequiredError}
|
|
2952
|
+
*/
|
|
2953
|
+
trustFactorRecompute: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2947
2954
|
};
|
|
2948
2955
|
/**
|
|
2949
2956
|
* AdminPlayersApi - functional programming interface
|
|
@@ -3123,6 +3130,13 @@ export declare const AdminPlayersApiFp: (configuration?: Configuration) => {
|
|
|
3123
3130
|
* @throws {RequiredError}
|
|
3124
3131
|
*/
|
|
3125
3132
|
trustFactorHistory(uuid: string, days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminTrustFactorHistoryEntry>>;
|
|
3133
|
+
/**
|
|
3134
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
3135
|
+
* @summary Start a trust-factor recompute job
|
|
3136
|
+
* @param {*} [options] Override http request option.
|
|
3137
|
+
* @throws {RequiredError}
|
|
3138
|
+
*/
|
|
3139
|
+
trustFactorRecompute(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAsyncJobStartResponse>>;
|
|
3126
3140
|
};
|
|
3127
3141
|
/**
|
|
3128
3142
|
* AdminPlayersApi - factory interface
|
|
@@ -3302,6 +3316,13 @@ export declare const AdminPlayersApiFactory: (configuration?: Configuration, bas
|
|
|
3302
3316
|
* @throws {RequiredError}
|
|
3303
3317
|
*/
|
|
3304
3318
|
trustFactorHistory(uuid: string, days?: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminTrustFactorHistoryEntry>;
|
|
3319
|
+
/**
|
|
3320
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
3321
|
+
* @summary Start a trust-factor recompute job
|
|
3322
|
+
* @param {*} [options] Override http request option.
|
|
3323
|
+
* @throws {RequiredError}
|
|
3324
|
+
*/
|
|
3325
|
+
trustFactorRecompute(options?: RawAxiosRequestConfig): AxiosPromise<AdminAsyncJobStartResponse>;
|
|
3305
3326
|
};
|
|
3306
3327
|
/**
|
|
3307
3328
|
* AdminPlayersApi - object-oriented interface
|
|
@@ -3481,6 +3502,13 @@ export declare class AdminPlayersApi extends BaseAPI {
|
|
|
3481
3502
|
* @throws {RequiredError}
|
|
3482
3503
|
*/
|
|
3483
3504
|
trustFactorHistory(uuid: string, days?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminTrustFactorHistoryEntry, any, {}>>;
|
|
3505
|
+
/**
|
|
3506
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
3507
|
+
* @summary Start a trust-factor recompute job
|
|
3508
|
+
* @param {*} [options] Override http request option.
|
|
3509
|
+
* @throws {RequiredError}
|
|
3510
|
+
*/
|
|
3511
|
+
trustFactorRecompute(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminAsyncJobStartResponse, any, {}>>;
|
|
3484
3512
|
}
|
|
3485
3513
|
/**
|
|
3486
3514
|
* AdminPunishmentsApi - axios parameter creator
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 4.9.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2573,6 +2573,35 @@ export const AdminPlayersApiAxiosParamCreator = function (configuration) {
|
|
|
2573
2573
|
options: localVarRequestOptions,
|
|
2574
2574
|
};
|
|
2575
2575
|
}),
|
|
2576
|
+
/**
|
|
2577
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
2578
|
+
* @summary Start a trust-factor recompute job
|
|
2579
|
+
* @param {*} [options] Override http request option.
|
|
2580
|
+
* @throws {RequiredError}
|
|
2581
|
+
*/
|
|
2582
|
+
trustFactorRecompute: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2583
|
+
const localVarPath = `/admin/player/trust-factor-recompute`;
|
|
2584
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2585
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2586
|
+
let baseOptions;
|
|
2587
|
+
if (configuration) {
|
|
2588
|
+
baseOptions = configuration.baseOptions;
|
|
2589
|
+
}
|
|
2590
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2591
|
+
const localVarHeaderParameter = {};
|
|
2592
|
+
const localVarQueryParameter = {};
|
|
2593
|
+
// authentication DiscordAuth required
|
|
2594
|
+
// http bearer authentication required
|
|
2595
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2596
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2597
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2598
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2599
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2600
|
+
return {
|
|
2601
|
+
url: toPathString(localVarUrlObj),
|
|
2602
|
+
options: localVarRequestOptions,
|
|
2603
|
+
};
|
|
2604
|
+
}),
|
|
2576
2605
|
};
|
|
2577
2606
|
};
|
|
2578
2607
|
/**
|
|
@@ -2915,6 +2944,21 @@ export const AdminPlayersApiFp = function (configuration) {
|
|
|
2915
2944
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2916
2945
|
});
|
|
2917
2946
|
},
|
|
2947
|
+
/**
|
|
2948
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
2949
|
+
* @summary Start a trust-factor recompute job
|
|
2950
|
+
* @param {*} [options] Override http request option.
|
|
2951
|
+
* @throws {RequiredError}
|
|
2952
|
+
*/
|
|
2953
|
+
trustFactorRecompute(options) {
|
|
2954
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2955
|
+
var _a, _b, _c;
|
|
2956
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.trustFactorRecompute(options);
|
|
2957
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2958
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminPlayersApi.trustFactorRecompute']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2959
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2960
|
+
});
|
|
2961
|
+
},
|
|
2918
2962
|
};
|
|
2919
2963
|
};
|
|
2920
2964
|
/**
|
|
@@ -3137,6 +3181,15 @@ export const AdminPlayersApiFactory = function (configuration, basePath, axios)
|
|
|
3137
3181
|
trustFactorHistory(uuid, days, options) {
|
|
3138
3182
|
return localVarFp.trustFactorHistory(uuid, days, options).then((request) => request(axios, basePath));
|
|
3139
3183
|
},
|
|
3184
|
+
/**
|
|
3185
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
3186
|
+
* @summary Start a trust-factor recompute job
|
|
3187
|
+
* @param {*} [options] Override http request option.
|
|
3188
|
+
* @throws {RequiredError}
|
|
3189
|
+
*/
|
|
3190
|
+
trustFactorRecompute(options) {
|
|
3191
|
+
return localVarFp.trustFactorRecompute(options).then((request) => request(axios, basePath));
|
|
3192
|
+
},
|
|
3140
3193
|
};
|
|
3141
3194
|
};
|
|
3142
3195
|
/**
|
|
@@ -3357,6 +3410,15 @@ export class AdminPlayersApi extends BaseAPI {
|
|
|
3357
3410
|
trustFactorHistory(uuid, days, options) {
|
|
3358
3411
|
return AdminPlayersApiFp(this.configuration).trustFactorHistory(uuid, days, options).then((request) => request(this.axios, this.basePath));
|
|
3359
3412
|
}
|
|
3413
|
+
/**
|
|
3414
|
+
* Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
3415
|
+
* @summary Start a trust-factor recompute job
|
|
3416
|
+
* @param {*} [options] Override http request option.
|
|
3417
|
+
* @throws {RequiredError}
|
|
3418
|
+
*/
|
|
3419
|
+
trustFactorRecompute(options) {
|
|
3420
|
+
return AdminPlayersApiFp(this.configuration).trustFactorRecompute(options).then((request) => request(this.axios, this.basePath));
|
|
3421
|
+
}
|
|
3360
3422
|
}
|
|
3361
3423
|
/**
|
|
3362
3424
|
* AdminPunishmentsApi - axios parameter creator
|
package/dist/esm/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.
|
|
5
|
+
* The version of the OpenAPI document: 4.9.0
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 4.9.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/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.
|
|
5
|
+
* The version of the OpenAPI document: 4.9.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.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.
|
|
7
|
+
* The version of the OpenAPI document: 4.9.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 4.9.0
|
|
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.
|
|
6
|
+
* The version of the OpenAPI document: 4.9.0
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/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.
|
|
5
|
+
* The version of the OpenAPI document: 4.9.0
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 4.9.0
|
|
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.
|
|
5
|
+
* The version of the OpenAPI document: 4.9.0
|
|
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.
|
|
8
|
+
* The version of the OpenAPI document: 4.9.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/AdminPlayersApi.md
CHANGED
|
@@ -24,6 +24,7 @@ All URIs are relative to *https://api.smsh.sh*
|
|
|
24
24
|
|[**setAggressiveModeImmunity**](#setaggressivemodeimmunity) | **PATCH** /admin/player/{uuid}/aggressive-mode-immunity | Toggle aggressive-mode immunity|
|
|
25
25
|
|[**trustFactorBreakdown**](#trustfactorbreakdown) | **GET** /admin/player/{uuid}/trust-factor-breakdown | Trust factor breakdown for a player|
|
|
26
26
|
|[**trustFactorHistory**](#trustfactorhistory) | **GET** /admin/player/{uuid}/trust-factor-history | Trust factor history for a player|
|
|
27
|
+
|[**trustFactorRecompute**](#trustfactorrecompute) | **POST** /admin/player/trust-factor-recompute | Start a trust-factor recompute job|
|
|
27
28
|
|
|
28
29
|
# **addAltExemption**
|
|
29
30
|
> addAltExemption(adminCreateAltExemptionRequest)
|
|
@@ -1144,3 +1145,49 @@ const { status, data } = await apiInstance.trustFactorHistory(
|
|
|
1144
1145
|
|
|
1145
1146
|
[[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)
|
|
1146
1147
|
|
|
1148
|
+
# **trustFactorRecompute**
|
|
1149
|
+
> AdminAsyncJobStartResponse trustFactorRecompute()
|
|
1150
|
+
|
|
1151
|
+
Submits an async job that recomputes every player\'s trust factor, refreshes the cached player.trust_factor column, and appends today\'s player_trust_factor_history snapshot — the same work the nightly job does, runnable on demand (e.g. to populate the cache immediately after deploy instead of waiting for 03:00 UTC, or after a trust-factor formula change). Returns immediately with a job id — poll GET /admin/job/{id} for progress and DELETE /admin/job/{id} to cancel. Idempotent.
|
|
1152
|
+
|
|
1153
|
+
### Example
|
|
1154
|
+
|
|
1155
|
+
```typescript
|
|
1156
|
+
import {
|
|
1157
|
+
AdminPlayersApi,
|
|
1158
|
+
Configuration
|
|
1159
|
+
} from '@rebornteam/reborn-api';
|
|
1160
|
+
|
|
1161
|
+
const configuration = new Configuration();
|
|
1162
|
+
const apiInstance = new AdminPlayersApi(configuration);
|
|
1163
|
+
|
|
1164
|
+
const { status, data } = await apiInstance.trustFactorRecompute();
|
|
1165
|
+
```
|
|
1166
|
+
|
|
1167
|
+
### Parameters
|
|
1168
|
+
This endpoint does not have any parameters.
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
### Return type
|
|
1172
|
+
|
|
1173
|
+
**AdminAsyncJobStartResponse**
|
|
1174
|
+
|
|
1175
|
+
### Authorization
|
|
1176
|
+
|
|
1177
|
+
[DiscordAuth](../README.md#DiscordAuth)
|
|
1178
|
+
|
|
1179
|
+
### HTTP request headers
|
|
1180
|
+
|
|
1181
|
+
- **Content-Type**: Not defined
|
|
1182
|
+
- **Accept**: application/json
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
### HTTP response details
|
|
1186
|
+
| Status code | Description | Response headers |
|
|
1187
|
+
|-------------|-------------|------------------|
|
|
1188
|
+
|**202** | Job accepted; poll /admin/job/{id} for progress | - |
|
|
1189
|
+
|**401** | Unauthorized | - |
|
|
1190
|
+
|**403** | Forbidden - Moderator role required | - |
|
|
1191
|
+
|
|
1192
|
+
[[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)
|
|
1193
|
+
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 4.9.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|