@rebornteam/reborn-api 2.6.0 → 2.6.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.
Files changed (47) hide show
  1. package/.openapi-generator/FILES +11 -4
  2. package/README.md +16 -8
  3. package/api.ts +463 -262
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +329 -180
  8. package/dist/api.js +231 -146
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +329 -180
  16. package/dist/esm/api.js +230 -145
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/AdminApplyPunishmentRequest.md +33 -0
  28. package/docs/AdminApplyPunishmentResponse.md +21 -0
  29. package/docs/AdminApplyPunishmentResult.md +33 -0
  30. package/docs/AdminCreatePunishmentDraftRequest.md +31 -0
  31. package/docs/AdminIpSearchResult.md +23 -0
  32. package/docs/AdminPagedPunishmentResponse.md +1 -1
  33. package/docs/AdminPlayerSearchResult.md +23 -0
  34. package/docs/AdminPunishmentDraftResponse.md +21 -0
  35. package/docs/AdminPunishmentEvaluation.md +39 -0
  36. package/docs/AdminPunishmentListItem.md +42 -0
  37. package/docs/AdminPunishmentSearchResponse.md +25 -0
  38. package/docs/AdminPunishmentTarget.md +23 -0
  39. package/docs/AdminPunishmentsApi.md +168 -2
  40. package/docs/PunishmentApi.md +0 -106
  41. package/docs/PunishmentGetPunishmentResponse.md +5 -3
  42. package/index.ts +1 -1
  43. package/package.json +1 -1
  44. package/docs/ApplyPunishmentRequest.md +0 -31
  45. package/docs/ApplyPunishmentResponse.md +0 -33
  46. package/docs/CreatePunishmentDraftRequest.md +0 -29
  47. package/docs/PunishmentDraftResponse.md +0 -39
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: 2.6.0
7
+ * The version of the OpenAPI document: 2.6.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,6 +23,90 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
+ /**
27
+ * Request to apply a punishment to one or more targets
28
+ */
29
+ export interface AdminApplyPunishmentRequest {
30
+ /**
31
+ * List of targets to punish — each must have either a uuid or ipAddress
32
+ */
33
+ 'targets': Array<AdminPunishmentTarget>;
34
+ /**
35
+ * Punishment type
36
+ */
37
+ 'type': AdminApplyPunishmentRequestTypeEnum;
38
+ /**
39
+ * Severity level: 1=Minor, 2=Moderate, 3=Severe, 4=Critical
40
+ */
41
+ 'severity'?: number;
42
+ /**
43
+ * Reason for the punishment
44
+ */
45
+ 'reason': string;
46
+ /**
47
+ * Custom duration in seconds — if omitted the suggested duration for the type and severity is used
48
+ */
49
+ 'durationSeconds'?: number | null;
50
+ /**
51
+ * Force the punishment to be permanent regardless of the target\'s current score
52
+ */
53
+ 'forcePermanent'?: boolean;
54
+ /**
55
+ * Internal notes visible only to administrators — not shown to the punished player
56
+ */
57
+ 'notes'?: string | null;
58
+ }
59
+
60
+ export const AdminApplyPunishmentRequestTypeEnum = {
61
+ Ban: 'BAN',
62
+ Mute: 'MUTE',
63
+ Warning: 'WARNING'
64
+ } as const;
65
+
66
+ export type AdminApplyPunishmentRequestTypeEnum = typeof AdminApplyPunishmentRequestTypeEnum[keyof typeof AdminApplyPunishmentRequestTypeEnum];
67
+
68
+ /**
69
+ * Batch punishment apply result — one result per target
70
+ */
71
+ export interface AdminApplyPunishmentResponse {
72
+ /**
73
+ * Ordered list of results, one per target in the request
74
+ */
75
+ 'results'?: Array<AdminApplyPunishmentResult>;
76
+ }
77
+ /**
78
+ * Result of applying a punishment to a single target
79
+ */
80
+ export interface AdminApplyPunishmentResult {
81
+ /**
82
+ * The target this result applies to
83
+ */
84
+ 'target'?: AdminPunishmentTarget;
85
+ /**
86
+ * ID of the created punishment record
87
+ */
88
+ 'punishmentId'?: number;
89
+ /**
90
+ * Punishment type applied
91
+ */
92
+ 'type'?: string;
93
+ /**
94
+ * Severity level applied
95
+ */
96
+ 'severity'?: number;
97
+ /**
98
+ * Updated punishment score after applying
99
+ */
100
+ 'newScore'?: number;
101
+ /**
102
+ * Whether the punishment was made permanent
103
+ */
104
+ 'isPermanent'?: boolean;
105
+ /**
106
+ * When the punishment expires — null if permanent or a WARNING
107
+ */
108
+ 'expiresAt'?: string | null;
109
+ }
26
110
  /**
27
111
  * Client credential response
28
112
  */
@@ -81,6 +165,44 @@ export interface AdminConnectionBypassResponse {
81
165
  */
82
166
  'createdAt'?: string;
83
167
  }
168
+ /**
169
+ * Request to evaluate the impact of a punishment across one or more targets before applying
170
+ */
171
+ export interface AdminCreatePunishmentDraftRequest {
172
+ /**
173
+ * List of targets to evaluate — each must have either a uuid or ipAddress
174
+ */
175
+ 'targets': Array<AdminPunishmentTarget>;
176
+ /**
177
+ * Punishment type
178
+ */
179
+ 'type': AdminCreatePunishmentDraftRequestTypeEnum;
180
+ /**
181
+ * Severity level: 1=Minor, 2=Moderate, 3=Severe, 4=Critical
182
+ */
183
+ 'severity'?: number;
184
+ /**
185
+ * Reason for the punishment (not used in evaluation, required for apply)
186
+ */
187
+ 'reason': string;
188
+ /**
189
+ * Custom duration in seconds — if omitted the suggested duration for the type and severity is used
190
+ */
191
+ 'durationSeconds'?: number | null;
192
+ /**
193
+ * Force the punishment to be permanent regardless of the target\'s current score
194
+ */
195
+ 'forcePermanent'?: boolean;
196
+ }
197
+
198
+ export const AdminCreatePunishmentDraftRequestTypeEnum = {
199
+ Ban: 'BAN',
200
+ Mute: 'MUTE',
201
+ Warning: 'WARNING'
202
+ } as const;
203
+
204
+ export type AdminCreatePunishmentDraftRequestTypeEnum = typeof AdminCreatePunishmentDraftRequestTypeEnum[keyof typeof AdminCreatePunishmentDraftRequestTypeEnum];
205
+
84
206
  export interface AdminDashboardConnectionResponse {
85
207
  'id': number;
86
208
  'ipAddress': string;
@@ -98,6 +220,19 @@ export interface AdminGetDashboardStats {
98
220
  'totalConnections': number;
99
221
  'totalClients': number;
100
222
  }
223
+ /**
224
+ * A single IP address match in a punishment search, with all players ever seen on that IP
225
+ */
226
+ export interface AdminIpSearchResult {
227
+ /**
228
+ * IP address
229
+ */
230
+ 'ipAddress'?: string;
231
+ /**
232
+ * Players ever seen on this IP
233
+ */
234
+ 'players'?: Array<AdminPlayerSearchResult>;
235
+ }
101
236
  /**
102
237
  * Paginated connection list response
103
238
  */
@@ -155,7 +290,7 @@ export interface AdminPagedPunishmentResponse {
155
290
  /**
156
291
  * Punishments on the current page
157
292
  */
158
- 'data'?: Array<PunishmentGetPunishmentResponse>;
293
+ 'data'?: Array<AdminPunishmentListItem>;
159
294
  /**
160
295
  * Total number of punishments matching the filters
161
296
  */
@@ -214,6 +349,19 @@ export interface AdminPlayerDetailResponse {
214
349
  */
215
350
  'usernameHistory'?: Array<AdminUsernameHistoryEntry>;
216
351
  }
352
+ /**
353
+ * Lightweight player reference used in search results and punishment evaluations
354
+ */
355
+ export interface AdminPlayerSearchResult {
356
+ /**
357
+ * Player Minecraft UUID
358
+ */
359
+ 'uuid'?: string;
360
+ /**
361
+ * Most recently seen username, null if never recorded
362
+ */
363
+ 'username'?: string | null;
364
+ }
217
365
  /**
218
366
  * Summary of a player record, used in list views
219
367
  */
@@ -252,79 +400,123 @@ export interface AdminPlayerSummary {
252
400
  'punishmentPointsPercent'?: number;
253
401
  }
254
402
  /**
255
- * A single entry in a player\'s username history
403
+ * Batch punishment draft one evaluation per target
256
404
  */
257
- export interface AdminUsernameHistoryEntry {
405
+ export interface AdminPunishmentDraftResponse {
258
406
  /**
259
- * The username at this point in time
260
- */
261
- 'username'?: string;
262
- /**
263
- * When this username was first observed (ISO-8601)
407
+ * Ordered list of evaluations, one per target in the request
264
408
  */
265
- 'changedAt'?: string;
409
+ 'evaluations'?: Array<AdminPunishmentEvaluation>;
266
410
  }
267
411
  /**
268
- * Request to apply a punishment to a player
412
+ * Evaluation of a punishment\'s impact on a single target
269
413
  */
270
- export interface ApplyPunishmentRequest {
414
+ export interface AdminPunishmentEvaluation {
271
415
  /**
272
- * Player UUID to punish
416
+ * The target this evaluation applies to
273
417
  */
274
- 'playerUuid': string;
418
+ 'target'?: AdminPunishmentTarget;
275
419
  /**
276
- * Reason for the punishment
420
+ * Players affected — one player for UUID targets, all players on the IP for connection targets
277
421
  */
278
- 'reason': string;
422
+ 'affectedPlayers'?: Array<AdminPlayerSearchResult>;
279
423
  /**
280
- * Type of punishment
424
+ * Current punishment score before applying this punishment (0–100+)
281
425
  */
282
- 'type': string;
426
+ 'currentScore'?: number;
283
427
  /**
284
- * Severity level of the punishment (1-10)
428
+ * Points this punishment would add to the score
285
429
  */
286
- 'severity': number;
430
+ 'pointsToAdd'?: number;
287
431
  /**
288
- * Staff member applying the punishment
432
+ * Projected score after applying this punishment
289
433
  */
290
- 'createdBy': string;
434
+ 'newScore'?: number;
291
435
  /**
292
- * Duration of the punishment in seconds. Null means permanent.
436
+ * Whether this punishment would be permanent based on the current score threshold
437
+ */
438
+ 'willBePermanent'?: boolean;
439
+ /**
440
+ * Resolved duration in seconds — null if permanent or a WARNING
293
441
  */
294
442
  'durationSeconds'?: number | null;
443
+ /**
444
+ * Number of existing punishments on this target
445
+ */
446
+ 'previousPunishmentCount'?: number;
447
+ /**
448
+ * True when the target is an IP address (connection punishment) rather than a player UUID
449
+ */
450
+ 'isConnectionTarget'?: boolean;
451
+ /**
452
+ * The effective punishment type that will be applied — may differ from the requested type if escalated to BAN at threshold
453
+ */
454
+ 'effectiveType'?: string;
455
+ }
456
+ export interface AdminPunishmentListItem {
457
+ 'id': number;
458
+ 'reason': string;
459
+ 'notes'?: string | null;
460
+ 'type': string;
461
+ 'severity': number;
462
+ 'createdBy': string;
463
+ 'expiresAt'?: string | null;
464
+ 'createdAt': string;
465
+ 'targetType': string;
466
+ 'targetUuid'?: string | null;
467
+ 'targetUsername'?: string | null;
468
+ 'targetIp'?: string | null;
295
469
  }
296
470
  /**
297
- * Response after applying a punishment
471
+ * Result of a punishment target search — either a list of matching players or a list of matching IP addresses
298
472
  */
299
- export interface ApplyPunishmentResponse {
473
+ export interface AdminPunishmentSearchResponse {
300
474
  /**
301
- * ID of the created punishment
475
+ * Search kind \'player\' for UUID/username searches, \'ip\' for IP address searches
302
476
  */
303
- 'punishmentId'?: number;
477
+ 'kind'?: AdminPunishmentSearchResponseKindEnum;
304
478
  /**
305
- * Player UUID punished
479
+ * Matching players — only populated when kind=\'player\'
306
480
  */
307
- 'playerUuid'?: string;
481
+ 'players'?: Array<AdminPlayerSearchResult>;
308
482
  /**
309
- * Type of punishment applied
483
+ * Matching IP addresses with their associated players — only populated when kind=\'ip\'
310
484
  */
311
- 'type'?: string;
485
+ 'ipResults'?: Array<AdminIpSearchResult>;
486
+ }
487
+
488
+ export const AdminPunishmentSearchResponseKindEnum = {
489
+ Player: 'player',
490
+ Ip: 'ip'
491
+ } as const;
492
+
493
+ export type AdminPunishmentSearchResponseKindEnum = typeof AdminPunishmentSearchResponseKindEnum[keyof typeof AdminPunishmentSearchResponseKindEnum];
494
+
495
+ /**
496
+ * A target for a punishment — either a player UUID or an IP address (mutually exclusive)
497
+ */
498
+ export interface AdminPunishmentTarget {
312
499
  /**
313
- * Severity level (1-10)
500
+ * Player Minecraft UUID
314
501
  */
315
- 'severity'?: number;
502
+ 'uuid'?: string | null;
316
503
  /**
317
- * New total punishment score after applying
504
+ * IP address — when specified, the punishment is linked to the connection record and all players on that IP are shown as affected
318
505
  */
319
- 'newScore'?: number;
506
+ 'ipAddress'?: string | null;
507
+ }
508
+ /**
509
+ * A single entry in a player\'s username history
510
+ */
511
+ export interface AdminUsernameHistoryEntry {
320
512
  /**
321
- * Whether this punishment is permanent
513
+ * The username at this point in time
322
514
  */
323
- 'isPermanent'?: boolean;
515
+ 'username'?: string;
324
516
  /**
325
- * Timestamp when punishment expires (ISO-8601 format, null if permanent)
517
+ * When this username was first observed (ISO-8601)
326
518
  */
327
- 'expiresAt'?: string;
519
+ 'changedAt'?: string;
328
520
  }
329
521
  /**
330
522
  * Request to create new client credentials
@@ -390,31 +582,6 @@ export interface CreateBypassRequest {
390
582
  */
391
583
  'expiresAtEpoch': number;
392
584
  }
393
- /**
394
- * Request to create a punishment draft for preview before applying
395
- */
396
- export interface CreatePunishmentDraftRequest {
397
- /**
398
- * Player UUID to punish
399
- */
400
- 'playerUuid': string;
401
- /**
402
- * Reason for the punishment
403
- */
404
- 'reason': string;
405
- /**
406
- * Type of punishment
407
- */
408
- 'type': string;
409
- /**
410
- * Severity level of the punishment (1-10)
411
- */
412
- 'severity': number;
413
- /**
414
- * Duration of the punishment in seconds. Null means permanent.
415
- */
416
- 'durationSeconds'?: number | null;
417
- }
418
585
  /**
419
586
  * Player information including join history, tracking data, and punishment scoring
420
587
  */
@@ -436,51 +603,6 @@ export interface PlayerGetPlayerInformation {
436
603
  */
437
604
  'punishmentPointsPercent'?: number;
438
605
  }
439
- /**
440
- * Response containing punishment draft preview with calculated points and thresholds
441
- */
442
- export interface PunishmentDraftResponse {
443
- /**
444
- * Player UUID this punishment would apply to
445
- */
446
- 'playerUuid'?: string;
447
- /**
448
- * Reason for the punishment
449
- */
450
- 'reason'?: string;
451
- /**
452
- * Type of punishment
453
- */
454
- 'type'?: string;
455
- /**
456
- * Severity level (1-10)
457
- */
458
- 'severity'?: number;
459
- /**
460
- * Current total punishment score before applying this punishment
461
- */
462
- 'currentScore'?: number;
463
- /**
464
- * Points this punishment would add
465
- */
466
- 'pointsToAdd'?: number;
467
- /**
468
- * New total score after applying this punishment
469
- */
470
- 'newScore'?: number;
471
- /**
472
- * Whether this punishment will be permanent
473
- */
474
- 'willBePermanent'?: boolean;
475
- /**
476
- * Duration in seconds (null if permanent)
477
- */
478
- 'durationSeconds'?: number;
479
- /**
480
- * Number of previous punishments for this player
481
- */
482
- 'previousPunishmentCount'?: number;
483
- }
484
606
  /**
485
607
  * Punishment information including reason, type, creator, and expiration
486
608
  */
@@ -490,15 +612,19 @@ export interface PunishmentGetPunishmentResponse {
490
612
  */
491
613
  'id'?: number;
492
614
  /**
493
- * Reason for the punishment
615
+ * Reason for the punishment, shown to the punished player
494
616
  */
495
617
  'reason'?: string;
496
618
  /**
497
- * Type of punishment (e.g., BAN, MUTE, KICK, WARNING)
619
+ * Internal administrator notes not shown to the punished player
620
+ */
621
+ 'notes'?: string | null;
622
+ /**
623
+ * Type of punishment (BAN, MUTE, WARNING)
498
624
  */
499
625
  'type'?: string;
500
626
  /**
501
- * Severity level of the punishment (1-10, where 10 is most severe)
627
+ * Severity level (1=Minor, 2=Moderate, 3=Severe, 4=Critical)
502
628
  */
503
629
  'severity'?: number;
504
630
  /**
@@ -1732,6 +1858,84 @@ export class AdminPlayersApi extends BaseAPI {
1732
1858
  */
1733
1859
  export const AdminPunishmentsApiAxiosParamCreator = function (configuration?: Configuration) {
1734
1860
  return {
1861
+ /**
1862
+ * Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
1863
+ * @summary Apply punishment
1864
+ * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
1865
+ * @param {*} [options] Override http request option.
1866
+ * @throws {RequiredError}
1867
+ */
1868
+ applyPunishment: async (adminApplyPunishmentRequest: AdminApplyPunishmentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1869
+ // verify required parameter 'adminApplyPunishmentRequest' is not null or undefined
1870
+ assertParamExists('applyPunishment', 'adminApplyPunishmentRequest', adminApplyPunishmentRequest)
1871
+ const localVarPath = `/admin/punishment/apply`;
1872
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1873
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1874
+ let baseOptions;
1875
+ if (configuration) {
1876
+ baseOptions = configuration.baseOptions;
1877
+ }
1878
+
1879
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1880
+ const localVarHeaderParameter = {} as any;
1881
+ const localVarQueryParameter = {} as any;
1882
+
1883
+ // authentication DiscordAuth required
1884
+ // http bearer authentication required
1885
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1886
+
1887
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1888
+ localVarHeaderParameter['Accept'] = 'application/json';
1889
+
1890
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1891
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1892
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1893
+ localVarRequestOptions.data = serializeDataIfNeeded(adminApplyPunishmentRequest, localVarRequestOptions, configuration)
1894
+
1895
+ return {
1896
+ url: toPathString(localVarUrlObj),
1897
+ options: localVarRequestOptions,
1898
+ };
1899
+ },
1900
+ /**
1901
+ * Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
1902
+ * @summary Evaluate punishment impact
1903
+ * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
1904
+ * @param {*} [options] Override http request option.
1905
+ * @throws {RequiredError}
1906
+ */
1907
+ createDraft: async (adminCreatePunishmentDraftRequest: AdminCreatePunishmentDraftRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1908
+ // verify required parameter 'adminCreatePunishmentDraftRequest' is not null or undefined
1909
+ assertParamExists('createDraft', 'adminCreatePunishmentDraftRequest', adminCreatePunishmentDraftRequest)
1910
+ const localVarPath = `/admin/punishment/draft`;
1911
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1912
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1913
+ let baseOptions;
1914
+ if (configuration) {
1915
+ baseOptions = configuration.baseOptions;
1916
+ }
1917
+
1918
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1919
+ const localVarHeaderParameter = {} as any;
1920
+ const localVarQueryParameter = {} as any;
1921
+
1922
+ // authentication DiscordAuth required
1923
+ // http bearer authentication required
1924
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1925
+
1926
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1927
+ localVarHeaderParameter['Accept'] = 'application/json';
1928
+
1929
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1930
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1931
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1932
+ localVarRequestOptions.data = serializeDataIfNeeded(adminCreatePunishmentDraftRequest, localVarRequestOptions, configuration)
1933
+
1934
+ return {
1935
+ url: toPathString(localVarUrlObj),
1936
+ options: localVarRequestOptions,
1937
+ };
1938
+ },
1735
1939
  /**
1736
1940
  * Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
1737
1941
  * @summary List punishments
@@ -1740,7 +1944,7 @@ export const AdminPunishmentsApiAxiosParamCreator = function (configuration?: Co
1740
1944
  * @param {string | null} [uuid] Filter by player UUID
1741
1945
  * @param {string | null} [username] Filter by player username (case-insensitive substring match)
1742
1946
  * @param {string | null} [ipAddress] Filter by IP address
1743
- * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, KICK, WARNING). Repeatable.
1947
+ * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
1744
1948
  * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
1745
1949
  * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
1746
1950
  * @param {*} [options] Override http request option.
@@ -1805,6 +2009,47 @@ export const AdminPunishmentsApiAxiosParamCreator = function (configuration?: Co
1805
2009
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1806
2010
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1807
2011
 
2012
+ return {
2013
+ url: toPathString(localVarUrlObj),
2014
+ options: localVarRequestOptions,
2015
+ };
2016
+ },
2017
+ /**
2018
+ * Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
2019
+ * @summary Search punishment targets
2020
+ * @param {string} q UUID, username, or partial/full IP address to search for
2021
+ * @param {*} [options] Override http request option.
2022
+ * @throws {RequiredError}
2023
+ */
2024
+ searchTargets: async (q: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2025
+ // verify required parameter 'q' is not null or undefined
2026
+ assertParamExists('searchTargets', 'q', q)
2027
+ const localVarPath = `/admin/punishment/search`;
2028
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2029
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2030
+ let baseOptions;
2031
+ if (configuration) {
2032
+ baseOptions = configuration.baseOptions;
2033
+ }
2034
+
2035
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2036
+ const localVarHeaderParameter = {} as any;
2037
+ const localVarQueryParameter = {} as any;
2038
+
2039
+ // authentication DiscordAuth required
2040
+ // http bearer authentication required
2041
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2042
+
2043
+ if (q !== undefined) {
2044
+ localVarQueryParameter['q'] = q;
2045
+ }
2046
+
2047
+ localVarHeaderParameter['Accept'] = 'application/json';
2048
+
2049
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2050
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2051
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2052
+
1808
2053
  return {
1809
2054
  url: toPathString(localVarUrlObj),
1810
2055
  options: localVarRequestOptions,
@@ -1819,6 +2064,32 @@ export const AdminPunishmentsApiAxiosParamCreator = function (configuration?: Co
1819
2064
  export const AdminPunishmentsApiFp = function(configuration?: Configuration) {
1820
2065
  const localVarAxiosParamCreator = AdminPunishmentsApiAxiosParamCreator(configuration)
1821
2066
  return {
2067
+ /**
2068
+ * Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
2069
+ * @summary Apply punishment
2070
+ * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
2071
+ * @param {*} [options] Override http request option.
2072
+ * @throws {RequiredError}
2073
+ */
2074
+ async applyPunishment(adminApplyPunishmentRequest: AdminApplyPunishmentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminApplyPunishmentResponse>> {
2075
+ const localVarAxiosArgs = await localVarAxiosParamCreator.applyPunishment(adminApplyPunishmentRequest, options);
2076
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2077
+ const localVarOperationServerBasePath = operationServerMap['AdminPunishmentsApi.applyPunishment']?.[localVarOperationServerIndex]?.url;
2078
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2079
+ },
2080
+ /**
2081
+ * Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
2082
+ * @summary Evaluate punishment impact
2083
+ * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
2084
+ * @param {*} [options] Override http request option.
2085
+ * @throws {RequiredError}
2086
+ */
2087
+ async createDraft(adminCreatePunishmentDraftRequest: AdminCreatePunishmentDraftRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPunishmentDraftResponse>> {
2088
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createDraft(adminCreatePunishmentDraftRequest, options);
2089
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2090
+ const localVarOperationServerBasePath = operationServerMap['AdminPunishmentsApi.createDraft']?.[localVarOperationServerIndex]?.url;
2091
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2092
+ },
1822
2093
  /**
1823
2094
  * Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
1824
2095
  * @summary List punishments
@@ -1827,7 +2098,7 @@ export const AdminPunishmentsApiFp = function(configuration?: Configuration) {
1827
2098
  * @param {string | null} [uuid] Filter by player UUID
1828
2099
  * @param {string | null} [username] Filter by player username (case-insensitive substring match)
1829
2100
  * @param {string | null} [ipAddress] Filter by IP address
1830
- * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, KICK, WARNING). Repeatable.
2101
+ * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
1831
2102
  * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
1832
2103
  * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
1833
2104
  * @param {*} [options] Override http request option.
@@ -1839,6 +2110,19 @@ export const AdminPunishmentsApiFp = function(configuration?: Configuration) {
1839
2110
  const localVarOperationServerBasePath = operationServerMap['AdminPunishmentsApi.getPunishments']?.[localVarOperationServerIndex]?.url;
1840
2111
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1841
2112
  },
2113
+ /**
2114
+ * Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
2115
+ * @summary Search punishment targets
2116
+ * @param {string} q UUID, username, or partial/full IP address to search for
2117
+ * @param {*} [options] Override http request option.
2118
+ * @throws {RequiredError}
2119
+ */
2120
+ async searchTargets(q: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPunishmentSearchResponse>> {
2121
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchTargets(q, options);
2122
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2123
+ const localVarOperationServerBasePath = operationServerMap['AdminPunishmentsApi.searchTargets']?.[localVarOperationServerIndex]?.url;
2124
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2125
+ },
1842
2126
  }
1843
2127
  };
1844
2128
 
@@ -1848,6 +2132,26 @@ export const AdminPunishmentsApiFp = function(configuration?: Configuration) {
1848
2132
  export const AdminPunishmentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1849
2133
  const localVarFp = AdminPunishmentsApiFp(configuration)
1850
2134
  return {
2135
+ /**
2136
+ * Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
2137
+ * @summary Apply punishment
2138
+ * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
2139
+ * @param {*} [options] Override http request option.
2140
+ * @throws {RequiredError}
2141
+ */
2142
+ applyPunishment(adminApplyPunishmentRequest: AdminApplyPunishmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminApplyPunishmentResponse> {
2143
+ return localVarFp.applyPunishment(adminApplyPunishmentRequest, options).then((request) => request(axios, basePath));
2144
+ },
2145
+ /**
2146
+ * Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
2147
+ * @summary Evaluate punishment impact
2148
+ * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
2149
+ * @param {*} [options] Override http request option.
2150
+ * @throws {RequiredError}
2151
+ */
2152
+ createDraft(adminCreatePunishmentDraftRequest: AdminCreatePunishmentDraftRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminPunishmentDraftResponse> {
2153
+ return localVarFp.createDraft(adminCreatePunishmentDraftRequest, options).then((request) => request(axios, basePath));
2154
+ },
1851
2155
  /**
1852
2156
  * Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
1853
2157
  * @summary List punishments
@@ -1856,7 +2160,7 @@ export const AdminPunishmentsApiFactory = function (configuration?: Configuratio
1856
2160
  * @param {string | null} [uuid] Filter by player UUID
1857
2161
  * @param {string | null} [username] Filter by player username (case-insensitive substring match)
1858
2162
  * @param {string | null} [ipAddress] Filter by IP address
1859
- * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, KICK, WARNING). Repeatable.
2163
+ * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
1860
2164
  * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
1861
2165
  * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
1862
2166
  * @param {*} [options] Override http request option.
@@ -1865,6 +2169,16 @@ export const AdminPunishmentsApiFactory = function (configuration?: Configuratio
1865
2169
  getPunishments(page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<string> | null, issuedAfter?: number | null, issuedBefore?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<AdminPagedPunishmentResponse> {
1866
2170
  return localVarFp.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(axios, basePath));
1867
2171
  },
2172
+ /**
2173
+ * Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
2174
+ * @summary Search punishment targets
2175
+ * @param {string} q UUID, username, or partial/full IP address to search for
2176
+ * @param {*} [options] Override http request option.
2177
+ * @throws {RequiredError}
2178
+ */
2179
+ searchTargets(q: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminPunishmentSearchResponse> {
2180
+ return localVarFp.searchTargets(q, options).then((request) => request(axios, basePath));
2181
+ },
1868
2182
  };
1869
2183
  };
1870
2184
 
@@ -1872,6 +2186,28 @@ export const AdminPunishmentsApiFactory = function (configuration?: Configuratio
1872
2186
  * AdminPunishmentsApi - object-oriented interface
1873
2187
  */
1874
2188
  export class AdminPunishmentsApi extends BaseAPI {
2189
+ /**
2190
+ * Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
2191
+ * @summary Apply punishment
2192
+ * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
2193
+ * @param {*} [options] Override http request option.
2194
+ * @throws {RequiredError}
2195
+ */
2196
+ public applyPunishment(adminApplyPunishmentRequest: AdminApplyPunishmentRequest, options?: RawAxiosRequestConfig) {
2197
+ return AdminPunishmentsApiFp(this.configuration).applyPunishment(adminApplyPunishmentRequest, options).then((request) => request(this.axios, this.basePath));
2198
+ }
2199
+
2200
+ /**
2201
+ * Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
2202
+ * @summary Evaluate punishment impact
2203
+ * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
2204
+ * @param {*} [options] Override http request option.
2205
+ * @throws {RequiredError}
2206
+ */
2207
+ public createDraft(adminCreatePunishmentDraftRequest: AdminCreatePunishmentDraftRequest, options?: RawAxiosRequestConfig) {
2208
+ return AdminPunishmentsApiFp(this.configuration).createDraft(adminCreatePunishmentDraftRequest, options).then((request) => request(this.axios, this.basePath));
2209
+ }
2210
+
1875
2211
  /**
1876
2212
  * Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
1877
2213
  * @summary List punishments
@@ -1880,7 +2216,7 @@ export class AdminPunishmentsApi extends BaseAPI {
1880
2216
  * @param {string | null} [uuid] Filter by player UUID
1881
2217
  * @param {string | null} [username] Filter by player username (case-insensitive substring match)
1882
2218
  * @param {string | null} [ipAddress] Filter by IP address
1883
- * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, KICK, WARNING). Repeatable.
2219
+ * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
1884
2220
  * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
1885
2221
  * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
1886
2222
  * @param {*} [options] Override http request option.
@@ -1889,6 +2225,17 @@ export class AdminPunishmentsApi extends BaseAPI {
1889
2225
  public getPunishments(page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<string> | null, issuedAfter?: number | null, issuedBefore?: number | null, options?: RawAxiosRequestConfig) {
1890
2226
  return AdminPunishmentsApiFp(this.configuration).getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(this.axios, this.basePath));
1891
2227
  }
2228
+
2229
+ /**
2230
+ * Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
2231
+ * @summary Search punishment targets
2232
+ * @param {string} q UUID, username, or partial/full IP address to search for
2233
+ * @param {*} [options] Override http request option.
2234
+ * @throws {RequiredError}
2235
+ */
2236
+ public searchTargets(q: string, options?: RawAxiosRequestConfig) {
2237
+ return AdminPunishmentsApiFp(this.configuration).searchTargets(q, options).then((request) => request(this.axios, this.basePath));
2238
+ }
1892
2239
  }
1893
2240
 
1894
2241
 
@@ -2297,84 +2644,6 @@ export class PlayerApi extends BaseAPI {
2297
2644
  */
2298
2645
  export const PunishmentApiAxiosParamCreator = function (configuration?: Configuration) {
2299
2646
  return {
2300
- /**
2301
- * Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
2302
- * @summary Apply a punishment
2303
- * @param {ApplyPunishmentRequest} applyPunishmentRequest
2304
- * @param {*} [options] Override http request option.
2305
- * @throws {RequiredError}
2306
- */
2307
- applyPunishment: async (applyPunishmentRequest: ApplyPunishmentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2308
- // verify required parameter 'applyPunishmentRequest' is not null or undefined
2309
- assertParamExists('applyPunishment', 'applyPunishmentRequest', applyPunishmentRequest)
2310
- const localVarPath = `/v1/punishment/apply`;
2311
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2312
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2313
- let baseOptions;
2314
- if (configuration) {
2315
- baseOptions = configuration.baseOptions;
2316
- }
2317
-
2318
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2319
- const localVarHeaderParameter = {} as any;
2320
- const localVarQueryParameter = {} as any;
2321
-
2322
- // authentication DiscordAuth required
2323
- // http bearer authentication required
2324
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
2325
-
2326
- localVarHeaderParameter['Content-Type'] = 'application/json';
2327
- localVarHeaderParameter['Accept'] = 'application/json';
2328
-
2329
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2330
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2331
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2332
- localVarRequestOptions.data = serializeDataIfNeeded(applyPunishmentRequest, localVarRequestOptions, configuration)
2333
-
2334
- return {
2335
- url: toPathString(localVarUrlObj),
2336
- options: localVarRequestOptions,
2337
- };
2338
- },
2339
- /**
2340
- * Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
2341
- * @summary Create a punishment draft
2342
- * @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
2343
- * @param {*} [options] Override http request option.
2344
- * @throws {RequiredError}
2345
- */
2346
- createPunishmentDraft: async (createPunishmentDraftRequest: CreatePunishmentDraftRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2347
- // verify required parameter 'createPunishmentDraftRequest' is not null or undefined
2348
- assertParamExists('createPunishmentDraft', 'createPunishmentDraftRequest', createPunishmentDraftRequest)
2349
- const localVarPath = `/v1/punishment/draft`;
2350
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2351
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2352
- let baseOptions;
2353
- if (configuration) {
2354
- baseOptions = configuration.baseOptions;
2355
- }
2356
-
2357
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2358
- const localVarHeaderParameter = {} as any;
2359
- const localVarQueryParameter = {} as any;
2360
-
2361
- // authentication DiscordAuth required
2362
- // http bearer authentication required
2363
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
2364
-
2365
- localVarHeaderParameter['Content-Type'] = 'application/json';
2366
- localVarHeaderParameter['Accept'] = 'application/json';
2367
-
2368
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2369
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2370
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2371
- localVarRequestOptions.data = serializeDataIfNeeded(createPunishmentDraftRequest, localVarRequestOptions, configuration)
2372
-
2373
- return {
2374
- url: toPathString(localVarUrlObj),
2375
- options: localVarRequestOptions,
2376
- };
2377
- },
2378
2647
  /**
2379
2648
  * Retrieve duration information for each punishment type and severity level (1-10)
2380
2649
  * @summary Get punishment severities
@@ -2596,32 +2865,6 @@ export const PunishmentApiAxiosParamCreator = function (configuration?: Configur
2596
2865
  export const PunishmentApiFp = function(configuration?: Configuration) {
2597
2866
  const localVarAxiosParamCreator = PunishmentApiAxiosParamCreator(configuration)
2598
2867
  return {
2599
- /**
2600
- * Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
2601
- * @summary Apply a punishment
2602
- * @param {ApplyPunishmentRequest} applyPunishmentRequest
2603
- * @param {*} [options] Override http request option.
2604
- * @throws {RequiredError}
2605
- */
2606
- async applyPunishment(applyPunishmentRequest: ApplyPunishmentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplyPunishmentResponse>> {
2607
- const localVarAxiosArgs = await localVarAxiosParamCreator.applyPunishment(applyPunishmentRequest, options);
2608
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2609
- const localVarOperationServerBasePath = operationServerMap['PunishmentApi.applyPunishment']?.[localVarOperationServerIndex]?.url;
2610
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2611
- },
2612
- /**
2613
- * Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
2614
- * @summary Create a punishment draft
2615
- * @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
2616
- * @param {*} [options] Override http request option.
2617
- * @throws {RequiredError}
2618
- */
2619
- async createPunishmentDraft(createPunishmentDraftRequest: CreatePunishmentDraftRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PunishmentDraftResponse>> {
2620
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPunishmentDraft(createPunishmentDraftRequest, options);
2621
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2622
- const localVarOperationServerBasePath = operationServerMap['PunishmentApi.createPunishmentDraft']?.[localVarOperationServerIndex]?.url;
2623
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2624
- },
2625
2868
  /**
2626
2869
  * Retrieve duration information for each punishment type and severity level (1-10)
2627
2870
  * @summary Get punishment severities
@@ -2693,26 +2936,6 @@ export const PunishmentApiFp = function(configuration?: Configuration) {
2693
2936
  export const PunishmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2694
2937
  const localVarFp = PunishmentApiFp(configuration)
2695
2938
  return {
2696
- /**
2697
- * Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
2698
- * @summary Apply a punishment
2699
- * @param {ApplyPunishmentRequest} applyPunishmentRequest
2700
- * @param {*} [options] Override http request option.
2701
- * @throws {RequiredError}
2702
- */
2703
- applyPunishment(applyPunishmentRequest: ApplyPunishmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApplyPunishmentResponse> {
2704
- return localVarFp.applyPunishment(applyPunishmentRequest, options).then((request) => request(axios, basePath));
2705
- },
2706
- /**
2707
- * Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
2708
- * @summary Create a punishment draft
2709
- * @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
2710
- * @param {*} [options] Override http request option.
2711
- * @throws {RequiredError}
2712
- */
2713
- createPunishmentDraft(createPunishmentDraftRequest: CreatePunishmentDraftRequest, options?: RawAxiosRequestConfig): AxiosPromise<PunishmentDraftResponse> {
2714
- return localVarFp.createPunishmentDraft(createPunishmentDraftRequest, options).then((request) => request(axios, basePath));
2715
- },
2716
2939
  /**
2717
2940
  * Retrieve duration information for each punishment type and severity level (1-10)
2718
2941
  * @summary Get punishment severities
@@ -2770,28 +2993,6 @@ export const PunishmentApiFactory = function (configuration?: Configuration, bas
2770
2993
  * PunishmentApi - object-oriented interface
2771
2994
  */
2772
2995
  export class PunishmentApi extends BaseAPI {
2773
- /**
2774
- * Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
2775
- * @summary Apply a punishment
2776
- * @param {ApplyPunishmentRequest} applyPunishmentRequest
2777
- * @param {*} [options] Override http request option.
2778
- * @throws {RequiredError}
2779
- */
2780
- public applyPunishment(applyPunishmentRequest: ApplyPunishmentRequest, options?: RawAxiosRequestConfig) {
2781
- return PunishmentApiFp(this.configuration).applyPunishment(applyPunishmentRequest, options).then((request) => request(this.axios, this.basePath));
2782
- }
2783
-
2784
- /**
2785
- * Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
2786
- * @summary Create a punishment draft
2787
- * @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
2788
- * @param {*} [options] Override http request option.
2789
- * @throws {RequiredError}
2790
- */
2791
- public createPunishmentDraft(createPunishmentDraftRequest: CreatePunishmentDraftRequest, options?: RawAxiosRequestConfig) {
2792
- return PunishmentApiFp(this.configuration).createPunishmentDraft(createPunishmentDraftRequest, options).then((request) => request(this.axios, this.basePath));
2793
- }
2794
-
2795
2996
  /**
2796
2997
  * Retrieve duration information for each punishment type and severity level (1-10)
2797
2998
  * @summary Get punishment severities