@rebornteam/reborn-api 4.7.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 +70 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +33 -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 +33 -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/AdminAltGraphEdge.md +2 -0
- 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).
|
|
@@ -110,6 +110,10 @@ export interface AdminAltGraphEdge {
|
|
|
110
110
|
* Number of distinct non-promiscuous connections these two players share. Drives edge thickness.
|
|
111
111
|
*/
|
|
112
112
|
'sharedConnectionCount': number;
|
|
113
|
+
/**
|
|
114
|
+
* The distinct IP addresses the two players share — the address(es) this edge represents. Same cardinality as sharedConnectionCount.
|
|
115
|
+
*/
|
|
116
|
+
'sharedIpAddresses': Array<string>;
|
|
113
117
|
}
|
|
114
118
|
/**
|
|
115
119
|
* One player node in an alt-graph traversal.
|
|
@@ -4697,6 +4701,40 @@ export const AdminPlayersApiAxiosParamCreator = function (configuration?: Config
|
|
|
4697
4701
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4698
4702
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4699
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
|
+
|
|
4700
4738
|
return {
|
|
4701
4739
|
url: toPathString(localVarUrlObj),
|
|
4702
4740
|
options: localVarRequestOptions,
|
|
@@ -4985,6 +5023,18 @@ export const AdminPlayersApiFp = function(configuration?: Configuration) {
|
|
|
4985
5023
|
const localVarOperationServerBasePath = operationServerMap['AdminPlayersApi.trustFactorHistory']?.[localVarOperationServerIndex]?.url;
|
|
4986
5024
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4987
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
|
+
},
|
|
4988
5038
|
}
|
|
4989
5039
|
};
|
|
4990
5040
|
|
|
@@ -5208,6 +5258,15 @@ export const AdminPlayersApiFactory = function (configuration?: Configuration, b
|
|
|
5208
5258
|
trustFactorHistory(uuid: string, days?: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminTrustFactorHistoryEntry> {
|
|
5209
5259
|
return localVarFp.trustFactorHistory(uuid, days, options).then((request) => request(axios, basePath));
|
|
5210
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
|
+
},
|
|
5211
5270
|
};
|
|
5212
5271
|
};
|
|
5213
5272
|
|
|
@@ -5448,6 +5507,16 @@ export class AdminPlayersApi extends BaseAPI {
|
|
|
5448
5507
|
public trustFactorHistory(uuid: string, days?: number, options?: RawAxiosRequestConfig) {
|
|
5449
5508
|
return AdminPlayersApiFp(this.configuration).trustFactorHistory(uuid, days, options).then((request) => request(this.axios, this.basePath));
|
|
5450
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
|
+
}
|
|
5451
5520
|
}
|
|
5452
5521
|
|
|
5453
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).
|
|
@@ -100,6 +100,10 @@ export interface AdminAltGraphEdge {
|
|
|
100
100
|
* Number of distinct non-promiscuous connections these two players share. Drives edge thickness.
|
|
101
101
|
*/
|
|
102
102
|
'sharedConnectionCount': number;
|
|
103
|
+
/**
|
|
104
|
+
* The distinct IP addresses the two players share — the address(es) this edge represents. Same cardinality as sharedConnectionCount.
|
|
105
|
+
*/
|
|
106
|
+
'sharedIpAddresses': Array<string>;
|
|
103
107
|
}
|
|
104
108
|
/**
|
|
105
109
|
* One player node in an alt-graph traversal.
|
|
@@ -2940,6 +2944,13 @@ export declare const AdminPlayersApiAxiosParamCreator: (configuration?: Configur
|
|
|
2940
2944
|
* @throws {RequiredError}
|
|
2941
2945
|
*/
|
|
2942
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>;
|
|
2943
2954
|
};
|
|
2944
2955
|
/**
|
|
2945
2956
|
* AdminPlayersApi - functional programming interface
|
|
@@ -3119,6 +3130,13 @@ export declare const AdminPlayersApiFp: (configuration?: Configuration) => {
|
|
|
3119
3130
|
* @throws {RequiredError}
|
|
3120
3131
|
*/
|
|
3121
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>>;
|
|
3122
3140
|
};
|
|
3123
3141
|
/**
|
|
3124
3142
|
* AdminPlayersApi - factory interface
|
|
@@ -3298,6 +3316,13 @@ export declare const AdminPlayersApiFactory: (configuration?: Configuration, bas
|
|
|
3298
3316
|
* @throws {RequiredError}
|
|
3299
3317
|
*/
|
|
3300
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>;
|
|
3301
3326
|
};
|
|
3302
3327
|
/**
|
|
3303
3328
|
* AdminPlayersApi - object-oriented interface
|
|
@@ -3477,6 +3502,13 @@ export declare class AdminPlayersApi extends BaseAPI {
|
|
|
3477
3502
|
* @throws {RequiredError}
|
|
3478
3503
|
*/
|
|
3479
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, {}>>;
|
|
3480
3512
|
}
|
|
3481
3513
|
/**
|
|
3482
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).
|
|
@@ -100,6 +100,10 @@ export interface AdminAltGraphEdge {
|
|
|
100
100
|
* Number of distinct non-promiscuous connections these two players share. Drives edge thickness.
|
|
101
101
|
*/
|
|
102
102
|
'sharedConnectionCount': number;
|
|
103
|
+
/**
|
|
104
|
+
* The distinct IP addresses the two players share — the address(es) this edge represents. Same cardinality as sharedConnectionCount.
|
|
105
|
+
*/
|
|
106
|
+
'sharedIpAddresses': Array<string>;
|
|
103
107
|
}
|
|
104
108
|
/**
|
|
105
109
|
* One player node in an alt-graph traversal.
|
|
@@ -2940,6 +2944,13 @@ export declare const AdminPlayersApiAxiosParamCreator: (configuration?: Configur
|
|
|
2940
2944
|
* @throws {RequiredError}
|
|
2941
2945
|
*/
|
|
2942
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>;
|
|
2943
2954
|
};
|
|
2944
2955
|
/**
|
|
2945
2956
|
* AdminPlayersApi - functional programming interface
|
|
@@ -3119,6 +3130,13 @@ export declare const AdminPlayersApiFp: (configuration?: Configuration) => {
|
|
|
3119
3130
|
* @throws {RequiredError}
|
|
3120
3131
|
*/
|
|
3121
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>>;
|
|
3122
3140
|
};
|
|
3123
3141
|
/**
|
|
3124
3142
|
* AdminPlayersApi - factory interface
|
|
@@ -3298,6 +3316,13 @@ export declare const AdminPlayersApiFactory: (configuration?: Configuration, bas
|
|
|
3298
3316
|
* @throws {RequiredError}
|
|
3299
3317
|
*/
|
|
3300
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>;
|
|
3301
3326
|
};
|
|
3302
3327
|
/**
|
|
3303
3328
|
* AdminPlayersApi - object-oriented interface
|
|
@@ -3477,6 +3502,13 @@ export declare class AdminPlayersApi extends BaseAPI {
|
|
|
3477
3502
|
* @throws {RequiredError}
|
|
3478
3503
|
*/
|
|
3479
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, {}>>;
|
|
3480
3512
|
}
|
|
3481
3513
|
/**
|
|
3482
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).
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**fromUuid** | **string** | One endpoint of the edge | [default to undefined]
|
|
10
10
|
**toUuid** | **string** | Other endpoint of the edge. The pair is emitted only once — the SQL ensures fromUuid < toUuid lexicographically. | [default to undefined]
|
|
11
11
|
**sharedConnectionCount** | **number** | Number of distinct non-promiscuous connections these two players share. Drives edge thickness. | [default to undefined]
|
|
12
|
+
**sharedIpAddresses** | **Array<string>** | The distinct IP addresses the two players share — the address(es) this edge represents. Same cardinality as sharedConnectionCount. | [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -19,6 +20,7 @@ const instance: AdminAltGraphEdge = {
|
|
|
19
20
|
fromUuid,
|
|
20
21
|
toUuid,
|
|
21
22
|
sharedConnectionCount,
|
|
23
|
+
sharedIpAddresses,
|
|
22
24
|
};
|
|
23
25
|
```
|
|
24
26
|
|
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).
|