@rebornteam/reborn-api 4.9.3 → 4.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Reborn API
3
3
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
4
4
  *
5
- * The version of the OpenAPI document: 4.9.3
5
+ * The version of the OpenAPI document: 4.9.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,6 +13,43 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
+ /**
17
+ * Source AdvancedBan MySQL connection details for a punishment import.
18
+ */
19
+ export interface AdminAdvancedBanImportRequest {
20
+ /**
21
+ * MySQL host
22
+ */
23
+ 'host': string;
24
+ /**
25
+ * MySQL port (default 3306)
26
+ */
27
+ 'port'?: number | null;
28
+ /**
29
+ * Database / schema name
30
+ */
31
+ 'database': string;
32
+ /**
33
+ * MySQL username
34
+ */
35
+ 'username': string;
36
+ /**
37
+ * MySQL password
38
+ */
39
+ 'password'?: string | null;
40
+ /**
41
+ * Active punishments table (default \'Punishments\')
42
+ */
43
+ 'activeTable'?: string | null;
44
+ /**
45
+ * History table (default \'PunishmentHistory\')
46
+ */
47
+ 'historyTable'?: string | null;
48
+ /**
49
+ * Use TLS for the MySQL connection (default false)
50
+ */
51
+ 'useSsl'?: boolean | null;
52
+ }
16
53
  /**
17
54
  * Another player who has been seen on at least one of this player\'s historical connections — i.e. an alt account candidate.
18
55
  */
@@ -724,6 +761,68 @@ export interface AdminIpSearchResult {
724
761
  */
725
762
  'players': Array<AdminPlayerSearchResult>;
726
763
  }
764
+ /**
765
+ * Configuration metadata for a runnable job (fields + submit path).
766
+ */
767
+ export interface AdminJobConfig {
768
+ /**
769
+ * JobType name
770
+ */
771
+ 'jobType'?: string;
772
+ /**
773
+ * Display title
774
+ */
775
+ 'title'?: string;
776
+ /**
777
+ * Display description
778
+ */
779
+ 'description'?: string;
780
+ /**
781
+ * Path the filled-in {key:value} body is POSTed to
782
+ */
783
+ 'submitPath'?: string;
784
+ /**
785
+ * Whether running this job requires Administrator rank
786
+ */
787
+ 'requiresAdmin'?: boolean;
788
+ /**
789
+ * Fields to render, in order
790
+ */
791
+ 'fields'?: Array<AdminJobField>;
792
+ }
793
+ /**
794
+ * One configurable field of a runnable job.
795
+ */
796
+ export interface AdminJobField {
797
+ /**
798
+ * Field key; also the JSON property name submitted to the job\'s endpoint
799
+ */
800
+ 'key'?: string;
801
+ /**
802
+ * Human label for the input
803
+ */
804
+ 'label'?: string;
805
+ /**
806
+ * Input type
807
+ */
808
+ 'type'?: JobFieldType;
809
+ /**
810
+ * Whether the field must be provided
811
+ */
812
+ 'required'?: boolean;
813
+ /**
814
+ * Default value, string form (booleans use \"true\"/\"false\")
815
+ */
816
+ 'defaultValue'?: string | null;
817
+ /**
818
+ * Placeholder text
819
+ */
820
+ 'placeholder'?: string | null;
821
+ /**
822
+ * Optional helper text shown under the input
823
+ */
824
+ 'helpText'?: string | null;
825
+ }
727
826
  /**
728
827
  * Full player detail including punishment history and all known usernames
729
828
  */
@@ -1496,6 +1595,16 @@ export declare const GameType: {
1496
1595
  readonly Classic: "CLASSIC";
1497
1596
  };
1498
1597
  export type GameType = typeof GameType[keyof typeof GameType];
1598
+ /**
1599
+ * Input type
1600
+ */
1601
+ export declare const JobFieldType: {
1602
+ readonly Text: "TEXT";
1603
+ readonly Number: "NUMBER";
1604
+ readonly Password: "PASSWORD";
1605
+ readonly Boolean: "BOOLEAN";
1606
+ };
1607
+ export type JobFieldType = typeof JobFieldType[keyof typeof JobFieldType];
1499
1608
  /**
1500
1609
  * Current lifecycle state.
1501
1610
  */
@@ -3097,6 +3206,58 @@ export declare class AdminDashboardApi extends BaseAPI {
3097
3206
  */
3098
3207
  trustDistribution(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminDashboardTrustBucket[], any, {}>>;
3099
3208
  }
3209
+ /**
3210
+ * AdminImportApi - axios parameter creator
3211
+ */
3212
+ export declare const AdminImportApiAxiosParamCreator: (configuration?: Configuration) => {
3213
+ /**
3214
+ * Connects to the supplied AdvancedBan MySQL database, reads its active and history punishment tables, and imports each as a Reborn punishment. Idempotent: rows already imported (matched on import_source + the AdvancedBan row id) are skipped, so existing punishments are never overridden. Runs as an async job — poll /admin/job/{id} for progress and the result payload.
3215
+ * @summary Import punishments from an AdvancedBan MySQL database
3216
+ * @param {AdminAdvancedBanImportRequest} adminAdvancedBanImportRequest
3217
+ * @param {*} [options] Override http request option.
3218
+ * @throws {RequiredError}
3219
+ */
3220
+ importAdvancedBan: (adminAdvancedBanImportRequest: AdminAdvancedBanImportRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3221
+ };
3222
+ /**
3223
+ * AdminImportApi - functional programming interface
3224
+ */
3225
+ export declare const AdminImportApiFp: (configuration?: Configuration) => {
3226
+ /**
3227
+ * Connects to the supplied AdvancedBan MySQL database, reads its active and history punishment tables, and imports each as a Reborn punishment. Idempotent: rows already imported (matched on import_source + the AdvancedBan row id) are skipped, so existing punishments are never overridden. Runs as an async job — poll /admin/job/{id} for progress and the result payload.
3228
+ * @summary Import punishments from an AdvancedBan MySQL database
3229
+ * @param {AdminAdvancedBanImportRequest} adminAdvancedBanImportRequest
3230
+ * @param {*} [options] Override http request option.
3231
+ * @throws {RequiredError}
3232
+ */
3233
+ importAdvancedBan(adminAdvancedBanImportRequest: AdminAdvancedBanImportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAsyncJobStartResponse>>;
3234
+ };
3235
+ /**
3236
+ * AdminImportApi - factory interface
3237
+ */
3238
+ export declare const AdminImportApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3239
+ /**
3240
+ * Connects to the supplied AdvancedBan MySQL database, reads its active and history punishment tables, and imports each as a Reborn punishment. Idempotent: rows already imported (matched on import_source + the AdvancedBan row id) are skipped, so existing punishments are never overridden. Runs as an async job — poll /admin/job/{id} for progress and the result payload.
3241
+ * @summary Import punishments from an AdvancedBan MySQL database
3242
+ * @param {AdminAdvancedBanImportRequest} adminAdvancedBanImportRequest
3243
+ * @param {*} [options] Override http request option.
3244
+ * @throws {RequiredError}
3245
+ */
3246
+ importAdvancedBan(adminAdvancedBanImportRequest: AdminAdvancedBanImportRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminAsyncJobStartResponse>;
3247
+ };
3248
+ /**
3249
+ * AdminImportApi - object-oriented interface
3250
+ */
3251
+ export declare class AdminImportApi extends BaseAPI {
3252
+ /**
3253
+ * Connects to the supplied AdvancedBan MySQL database, reads its active and history punishment tables, and imports each as a Reborn punishment. Idempotent: rows already imported (matched on import_source + the AdvancedBan row id) are skipped, so existing punishments are never overridden. Runs as an async job — poll /admin/job/{id} for progress and the result payload.
3254
+ * @summary Import punishments from an AdvancedBan MySQL database
3255
+ * @param {AdminAdvancedBanImportRequest} adminAdvancedBanImportRequest
3256
+ * @param {*} [options] Override http request option.
3257
+ * @throws {RequiredError}
3258
+ */
3259
+ importAdvancedBan(adminAdvancedBanImportRequest: AdminAdvancedBanImportRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminAsyncJobStartResponse, any, {}>>;
3260
+ }
3100
3261
  /**
3101
3262
  * AdminJobsApi - axios parameter creator
3102
3263
  */
@@ -3109,6 +3270,13 @@ export declare const AdminJobsApiAxiosParamCreator: (configuration?: Configurati
3109
3270
  * @throws {RequiredError}
3110
3271
  */
3111
3272
  cancel: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3273
+ /**
3274
+ * Metadata for jobs that take configuration: the fields the configure dialog should render and the path to POST the filled values to. Field keys match the target endpoint\'s request body. Paramless jobs are not listed here.
3275
+ * @summary List configurable jobs
3276
+ * @param {*} [options] Override http request option.
3277
+ * @throws {RequiredError}
3278
+ */
3279
+ config: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3112
3280
  /**
3113
3281
  * Returns the CSV emitted by the job — typically one row per record the job touched. The first line is a header; subsequent lines are RFC-4180 escaped data rows. 404 when the job has no artifact (either it didn\'t emit one, or it hasn\'t finished yet).
3114
3282
  * @summary Download a job\'s CSV artifact
@@ -3147,6 +3315,13 @@ export declare const AdminJobsApiFp: (configuration?: Configuration) => {
3147
3315
  * @throws {RequiredError}
3148
3316
  */
3149
3317
  cancel(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3318
+ /**
3319
+ * Metadata for jobs that take configuration: the fields the configure dialog should render and the path to POST the filled values to. Field keys match the target endpoint\'s request body. Paramless jobs are not listed here.
3320
+ * @summary List configurable jobs
3321
+ * @param {*} [options] Override http request option.
3322
+ * @throws {RequiredError}
3323
+ */
3324
+ config(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AdminJobConfig>>>;
3150
3325
  /**
3151
3326
  * Returns the CSV emitted by the job — typically one row per record the job touched. The first line is a header; subsequent lines are RFC-4180 escaped data rows. 404 when the job has no artifact (either it didn\'t emit one, or it hasn\'t finished yet).
3152
3327
  * @summary Download a job\'s CSV artifact
@@ -3185,6 +3360,13 @@ export declare const AdminJobsApiFactory: (configuration?: Configuration, basePa
3185
3360
  * @throws {RequiredError}
3186
3361
  */
3187
3362
  cancel(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3363
+ /**
3364
+ * Metadata for jobs that take configuration: the fields the configure dialog should render and the path to POST the filled values to. Field keys match the target endpoint\'s request body. Paramless jobs are not listed here.
3365
+ * @summary List configurable jobs
3366
+ * @param {*} [options] Override http request option.
3367
+ * @throws {RequiredError}
3368
+ */
3369
+ config(options?: RawAxiosRequestConfig): AxiosPromise<Array<AdminJobConfig>>;
3188
3370
  /**
3189
3371
  * Returns the CSV emitted by the job — typically one row per record the job touched. The first line is a header; subsequent lines are RFC-4180 escaped data rows. 404 when the job has no artifact (either it didn\'t emit one, or it hasn\'t finished yet).
3190
3372
  * @summary Download a job\'s CSV artifact
@@ -3223,6 +3405,13 @@ export declare class AdminJobsApi extends BaseAPI {
3223
3405
  * @throws {RequiredError}
3224
3406
  */
3225
3407
  cancel(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
3408
+ /**
3409
+ * Metadata for jobs that take configuration: the fields the configure dialog should render and the path to POST the filled values to. Field keys match the target endpoint\'s request body. Paramless jobs are not listed here.
3410
+ * @summary List configurable jobs
3411
+ * @param {*} [options] Override http request option.
3412
+ * @throws {RequiredError}
3413
+ */
3414
+ config(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminJobConfig[], any, {}>>;
3226
3415
  /**
3227
3416
  * Returns the CSV emitted by the job — typically one row per record the job touched. The first line is a header; subsequent lines are RFC-4180 escaped data rows. 404 when the job has no artifact (either it didn\'t emit one, or it hasn\'t finished yet).
3228
3417
  * @summary Download a job\'s CSV artifact
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Reborn API
6
6
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
7
7
  *
8
- * The version of the OpenAPI document: 4.9.3
8
+ * The version of the OpenAPI document: 4.9.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.AdminReportsApi = exports.AdminReportsApiFactory = exports.AdminReportsApiFp = exports.AdminReportsApiAxiosParamCreator = exports.AdminPunishmentsApi = exports.AdminPunishmentsApiFactory = exports.AdminPunishmentsApiFp = exports.AdminPunishmentsApiAxiosParamCreator = exports.AdminPlayersApi = exports.AdminPlayersApiFactory = exports.AdminPlayersApiFp = exports.AdminPlayersApiAxiosParamCreator = exports.AdminJobsApi = exports.AdminJobsApiFactory = exports.AdminJobsApiFp = exports.AdminJobsApiAxiosParamCreator = exports.AdminDashboardApi = exports.AdminDashboardApiFactory = exports.AdminDashboardApiFp = exports.AdminDashboardApiAxiosParamCreator = exports.AdminConnectionsApi = exports.AdminConnectionsApiFactory = exports.AdminConnectionsApiFp = exports.AdminConnectionsApiAxiosParamCreator = exports.AdminClientCredentialsApi = exports.AdminClientCredentialsApiFactory = exports.AdminClientCredentialsApiFp = exports.AdminClientCredentialsApiAxiosParamCreator = exports.AdminAuditLogApi = exports.AdminAuditLogApiFactory = exports.AdminAuditLogApiFp = exports.AdminAuditLogApiAxiosParamCreator = exports.SortOrderDirection = exports.SearchKind = exports.ReportCategory = exports.Region = exports.Rank = exports.PunishmentType = exports.PunishmentTargetType = exports.PunishmentSource = exports.PageableMode = exports.JobStatus = exports.GameType = exports.ConnectionResultResultCode = void 0;
26
- exports.ServerSessionsApi = exports.ServerSessionsApiFactory = exports.ServerSessionsApiFp = exports.ServerSessionsApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PunishmentApi = exports.PunishmentApiFactory = exports.PunishmentApiFp = exports.PunishmentApiAxiosParamCreator = exports.PlayerSessionsApi = exports.PlayerSessionsApiFactory = exports.PlayerSessionsApiFp = exports.PlayerSessionsApiAxiosParamCreator = exports.PlayerApi = exports.PlayerApiFactory = exports.PlayerApiFp = exports.PlayerApiAxiosParamCreator = exports.ConnectionApi = exports.ConnectionApiFactory = exports.ConnectionApiFp = exports.ConnectionApiAxiosParamCreator = exports.ChatApi = exports.ChatApiFactory = void 0;
25
+ exports.AuthenticationApiAxiosParamCreator = exports.AdminReportsApi = exports.AdminReportsApiFactory = exports.AdminReportsApiFp = exports.AdminReportsApiAxiosParamCreator = exports.AdminPunishmentsApi = exports.AdminPunishmentsApiFactory = exports.AdminPunishmentsApiFp = exports.AdminPunishmentsApiAxiosParamCreator = exports.AdminPlayersApi = exports.AdminPlayersApiFactory = exports.AdminPlayersApiFp = exports.AdminPlayersApiAxiosParamCreator = exports.AdminJobsApi = exports.AdminJobsApiFactory = exports.AdminJobsApiFp = exports.AdminJobsApiAxiosParamCreator = exports.AdminImportApi = exports.AdminImportApiFactory = exports.AdminImportApiFp = exports.AdminImportApiAxiosParamCreator = exports.AdminDashboardApi = exports.AdminDashboardApiFactory = exports.AdminDashboardApiFp = exports.AdminDashboardApiAxiosParamCreator = exports.AdminConnectionsApi = exports.AdminConnectionsApiFactory = exports.AdminConnectionsApiFp = exports.AdminConnectionsApiAxiosParamCreator = exports.AdminClientCredentialsApi = exports.AdminClientCredentialsApiFactory = exports.AdminClientCredentialsApiFp = exports.AdminClientCredentialsApiAxiosParamCreator = exports.AdminAuditLogApi = exports.AdminAuditLogApiFactory = exports.AdminAuditLogApiFp = exports.AdminAuditLogApiAxiosParamCreator = exports.SortOrderDirection = exports.SearchKind = exports.ReportCategory = exports.Region = exports.Rank = exports.PunishmentType = exports.PunishmentTargetType = exports.PunishmentSource = exports.PageableMode = exports.JobStatus = exports.JobFieldType = exports.GameType = exports.ConnectionResultResultCode = void 0;
26
+ exports.ServerSessionsApi = exports.ServerSessionsApiFactory = exports.ServerSessionsApiFp = exports.ServerSessionsApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PunishmentApi = exports.PunishmentApiFactory = exports.PunishmentApiFp = exports.PunishmentApiAxiosParamCreator = exports.PlayerSessionsApi = exports.PlayerSessionsApiFactory = exports.PlayerSessionsApiFp = exports.PlayerSessionsApiAxiosParamCreator = exports.PlayerApi = exports.PlayerApiFactory = exports.PlayerApiFp = exports.PlayerApiAxiosParamCreator = exports.ConnectionApi = exports.ConnectionApiFactory = exports.ConnectionApiFp = exports.ConnectionApiAxiosParamCreator = exports.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -44,6 +44,15 @@ exports.GameType = {
44
44
  Legacy: 'LEGACY',
45
45
  Classic: 'CLASSIC'
46
46
  };
47
+ /**
48
+ * Input type
49
+ */
50
+ exports.JobFieldType = {
51
+ Text: 'TEXT',
52
+ Number: 'NUMBER',
53
+ Password: 'PASSWORD',
54
+ Boolean: 'BOOLEAN'
55
+ };
47
56
  /**
48
57
  * Current lifecycle state.
49
58
  */
@@ -2160,6 +2169,108 @@ class AdminDashboardApi extends base_1.BaseAPI {
2160
2169
  }
2161
2170
  }
2162
2171
  exports.AdminDashboardApi = AdminDashboardApi;
2172
+ /**
2173
+ * AdminImportApi - axios parameter creator
2174
+ */
2175
+ const AdminImportApiAxiosParamCreator = function (configuration) {
2176
+ return {
2177
+ /**
2178
+ * Connects to the supplied AdvancedBan MySQL database, reads its active and history punishment tables, and imports each as a Reborn punishment. Idempotent: rows already imported (matched on import_source + the AdvancedBan row id) are skipped, so existing punishments are never overridden. Runs as an async job — poll /admin/job/{id} for progress and the result payload.
2179
+ * @summary Import punishments from an AdvancedBan MySQL database
2180
+ * @param {AdminAdvancedBanImportRequest} adminAdvancedBanImportRequest
2181
+ * @param {*} [options] Override http request option.
2182
+ * @throws {RequiredError}
2183
+ */
2184
+ importAdvancedBan: (adminAdvancedBanImportRequest_1, ...args_1) => __awaiter(this, [adminAdvancedBanImportRequest_1, ...args_1], void 0, function* (adminAdvancedBanImportRequest, options = {}) {
2185
+ // verify required parameter 'adminAdvancedBanImportRequest' is not null or undefined
2186
+ (0, common_1.assertParamExists)('importAdvancedBan', 'adminAdvancedBanImportRequest', adminAdvancedBanImportRequest);
2187
+ const localVarPath = `/admin/import/advancedban`;
2188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2189
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2190
+ let baseOptions;
2191
+ if (configuration) {
2192
+ baseOptions = configuration.baseOptions;
2193
+ }
2194
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2195
+ const localVarHeaderParameter = {};
2196
+ const localVarQueryParameter = {};
2197
+ // authentication DiscordAuth required
2198
+ // http bearer authentication required
2199
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2200
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2201
+ localVarHeaderParameter['Accept'] = 'application/json';
2202
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2203
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2204
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2205
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminAdvancedBanImportRequest, localVarRequestOptions, configuration);
2206
+ return {
2207
+ url: (0, common_1.toPathString)(localVarUrlObj),
2208
+ options: localVarRequestOptions,
2209
+ };
2210
+ }),
2211
+ };
2212
+ };
2213
+ exports.AdminImportApiAxiosParamCreator = AdminImportApiAxiosParamCreator;
2214
+ /**
2215
+ * AdminImportApi - functional programming interface
2216
+ */
2217
+ const AdminImportApiFp = function (configuration) {
2218
+ const localVarAxiosParamCreator = (0, exports.AdminImportApiAxiosParamCreator)(configuration);
2219
+ return {
2220
+ /**
2221
+ * Connects to the supplied AdvancedBan MySQL database, reads its active and history punishment tables, and imports each as a Reborn punishment. Idempotent: rows already imported (matched on import_source + the AdvancedBan row id) are skipped, so existing punishments are never overridden. Runs as an async job — poll /admin/job/{id} for progress and the result payload.
2222
+ * @summary Import punishments from an AdvancedBan MySQL database
2223
+ * @param {AdminAdvancedBanImportRequest} adminAdvancedBanImportRequest
2224
+ * @param {*} [options] Override http request option.
2225
+ * @throws {RequiredError}
2226
+ */
2227
+ importAdvancedBan(adminAdvancedBanImportRequest, options) {
2228
+ return __awaiter(this, void 0, void 0, function* () {
2229
+ var _a, _b, _c;
2230
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.importAdvancedBan(adminAdvancedBanImportRequest, options);
2231
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2232
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminImportApi.importAdvancedBan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2233
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2234
+ });
2235
+ },
2236
+ };
2237
+ };
2238
+ exports.AdminImportApiFp = AdminImportApiFp;
2239
+ /**
2240
+ * AdminImportApi - factory interface
2241
+ */
2242
+ const AdminImportApiFactory = function (configuration, basePath, axios) {
2243
+ const localVarFp = (0, exports.AdminImportApiFp)(configuration);
2244
+ return {
2245
+ /**
2246
+ * Connects to the supplied AdvancedBan MySQL database, reads its active and history punishment tables, and imports each as a Reborn punishment. Idempotent: rows already imported (matched on import_source + the AdvancedBan row id) are skipped, so existing punishments are never overridden. Runs as an async job — poll /admin/job/{id} for progress and the result payload.
2247
+ * @summary Import punishments from an AdvancedBan MySQL database
2248
+ * @param {AdminAdvancedBanImportRequest} adminAdvancedBanImportRequest
2249
+ * @param {*} [options] Override http request option.
2250
+ * @throws {RequiredError}
2251
+ */
2252
+ importAdvancedBan(adminAdvancedBanImportRequest, options) {
2253
+ return localVarFp.importAdvancedBan(adminAdvancedBanImportRequest, options).then((request) => request(axios, basePath));
2254
+ },
2255
+ };
2256
+ };
2257
+ exports.AdminImportApiFactory = AdminImportApiFactory;
2258
+ /**
2259
+ * AdminImportApi - object-oriented interface
2260
+ */
2261
+ class AdminImportApi extends base_1.BaseAPI {
2262
+ /**
2263
+ * Connects to the supplied AdvancedBan MySQL database, reads its active and history punishment tables, and imports each as a Reborn punishment. Idempotent: rows already imported (matched on import_source + the AdvancedBan row id) are skipped, so existing punishments are never overridden. Runs as an async job — poll /admin/job/{id} for progress and the result payload.
2264
+ * @summary Import punishments from an AdvancedBan MySQL database
2265
+ * @param {AdminAdvancedBanImportRequest} adminAdvancedBanImportRequest
2266
+ * @param {*} [options] Override http request option.
2267
+ * @throws {RequiredError}
2268
+ */
2269
+ importAdvancedBan(adminAdvancedBanImportRequest, options) {
2270
+ return (0, exports.AdminImportApiFp)(this.configuration).importAdvancedBan(adminAdvancedBanImportRequest, options).then((request) => request(this.axios, this.basePath));
2271
+ }
2272
+ }
2273
+ exports.AdminImportApi = AdminImportApi;
2163
2274
  /**
2164
2275
  * AdminJobsApi - axios parameter creator
2165
2276
  */
@@ -2197,6 +2308,35 @@ const AdminJobsApiAxiosParamCreator = function (configuration) {
2197
2308
  options: localVarRequestOptions,
2198
2309
  };
2199
2310
  }),
2311
+ /**
2312
+ * Metadata for jobs that take configuration: the fields the configure dialog should render and the path to POST the filled values to. Field keys match the target endpoint\'s request body. Paramless jobs are not listed here.
2313
+ * @summary List configurable jobs
2314
+ * @param {*} [options] Override http request option.
2315
+ * @throws {RequiredError}
2316
+ */
2317
+ config: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2318
+ const localVarPath = `/admin/job/config`;
2319
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2320
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2321
+ let baseOptions;
2322
+ if (configuration) {
2323
+ baseOptions = configuration.baseOptions;
2324
+ }
2325
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2326
+ const localVarHeaderParameter = {};
2327
+ const localVarQueryParameter = {};
2328
+ // authentication DiscordAuth required
2329
+ // http bearer authentication required
2330
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2331
+ localVarHeaderParameter['Accept'] = 'application/json';
2332
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2333
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2334
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2335
+ return {
2336
+ url: (0, common_1.toPathString)(localVarUrlObj),
2337
+ options: localVarRequestOptions,
2338
+ };
2339
+ }),
2200
2340
  /**
2201
2341
  * Returns the CSV emitted by the job — typically one row per record the job touched. The first line is a header; subsequent lines are RFC-4180 escaped data rows. 404 when the job has no artifact (either it didn\'t emit one, or it hasn\'t finished yet).
2202
2342
  * @summary Download a job\'s CSV artifact
@@ -2327,6 +2467,21 @@ const AdminJobsApiFp = function (configuration) {
2327
2467
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2328
2468
  });
2329
2469
  },
2470
+ /**
2471
+ * Metadata for jobs that take configuration: the fields the configure dialog should render and the path to POST the filled values to. Field keys match the target endpoint\'s request body. Paramless jobs are not listed here.
2472
+ * @summary List configurable jobs
2473
+ * @param {*} [options] Override http request option.
2474
+ * @throws {RequiredError}
2475
+ */
2476
+ config(options) {
2477
+ return __awaiter(this, void 0, void 0, function* () {
2478
+ var _a, _b, _c;
2479
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.config(options);
2480
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2481
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminJobsApi.config']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2482
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2483
+ });
2484
+ },
2330
2485
  /**
2331
2486
  * Returns the CSV emitted by the job — typically one row per record the job touched. The first line is a header; subsequent lines are RFC-4180 escaped data rows. 404 when the job has no artifact (either it didn\'t emit one, or it hasn\'t finished yet).
2332
2487
  * @summary Download a job\'s CSV artifact
@@ -2395,6 +2550,15 @@ const AdminJobsApiFactory = function (configuration, basePath, axios) {
2395
2550
  cancel(id, options) {
2396
2551
  return localVarFp.cancel(id, options).then((request) => request(axios, basePath));
2397
2552
  },
2553
+ /**
2554
+ * Metadata for jobs that take configuration: the fields the configure dialog should render and the path to POST the filled values to. Field keys match the target endpoint\'s request body. Paramless jobs are not listed here.
2555
+ * @summary List configurable jobs
2556
+ * @param {*} [options] Override http request option.
2557
+ * @throws {RequiredError}
2558
+ */
2559
+ config(options) {
2560
+ return localVarFp.config(options).then((request) => request(axios, basePath));
2561
+ },
2398
2562
  /**
2399
2563
  * Returns the CSV emitted by the job — typically one row per record the job touched. The first line is a header; subsequent lines are RFC-4180 escaped data rows. 404 when the job has no artifact (either it didn\'t emit one, or it hasn\'t finished yet).
2400
2564
  * @summary Download a job\'s CSV artifact
@@ -2443,6 +2607,15 @@ class AdminJobsApi extends base_1.BaseAPI {
2443
2607
  cancel(id, options) {
2444
2608
  return (0, exports.AdminJobsApiFp)(this.configuration).cancel(id, options).then((request) => request(this.axios, this.basePath));
2445
2609
  }
2610
+ /**
2611
+ * Metadata for jobs that take configuration: the fields the configure dialog should render and the path to POST the filled values to. Field keys match the target endpoint\'s request body. Paramless jobs are not listed here.
2612
+ * @summary List configurable jobs
2613
+ * @param {*} [options] Override http request option.
2614
+ * @throws {RequiredError}
2615
+ */
2616
+ config(options) {
2617
+ return (0, exports.AdminJobsApiFp)(this.configuration).config(options).then((request) => request(this.axios, this.basePath));
2618
+ }
2446
2619
  /**
2447
2620
  * Returns the CSV emitted by the job — typically one row per record the job touched. The first line is a header; subsequent lines are RFC-4180 escaped data rows. 404 when the job has no artifact (either it didn\'t emit one, or it hasn\'t finished yet).
2448
2621
  * @summary Download a job\'s CSV artifact
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Reborn API
3
3
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
4
4
  *
5
- * The version of the OpenAPI document: 4.9.3
5
+ * The version of the OpenAPI document: 4.9.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Reborn API
6
6
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
7
7
  *
8
- * The version of the OpenAPI document: 4.9.3
8
+ * The version of the OpenAPI document: 4.9.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Reborn API
3
3
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
4
4
  *
5
- * The version of the OpenAPI document: 4.9.3
5
+ * The version of the OpenAPI document: 4.9.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Reborn API
6
6
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
7
7
  *
8
- * The version of the OpenAPI document: 4.9.3
8
+ * The version of the OpenAPI document: 4.9.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Reborn API
3
3
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
4
4
  *
5
- * The version of the OpenAPI document: 4.9.3
5
+ * The version of the OpenAPI document: 4.9.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Reborn API
5
5
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
6
6
  *
7
- * The version of the OpenAPI document: 4.9.3
7
+ * The version of the OpenAPI document: 4.9.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).