@rebornteam/reborn-api 2.5.1 → 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.
- package/.openapi-generator/FILES +20 -4
- package/README.md +32 -12
- package/api.ts +1372 -357
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +795 -176
- package/dist/api.js +954 -268
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +795 -176
- package/dist/esm/api.js +917 -243
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/AdminApplyPunishmentRequest.md +33 -0
- package/docs/AdminApplyPunishmentResponse.md +21 -0
- package/docs/AdminApplyPunishmentResult.md +33 -0
- package/docs/AdminClientCredentialResponse.md +2 -0
- package/docs/AdminClientCredentialsApi.md +17 -17
- package/docs/AdminConnectionsApi.md +70 -4
- package/docs/AdminCreatePunishmentDraftRequest.md +31 -0
- package/docs/AdminDashboardApi.md +2 -2
- package/docs/AdminIpSearchResult.md +23 -0
- package/docs/AdminPagedConnectionResponse.md +29 -0
- package/docs/AdminPagedPlayerResponse.md +29 -0
- package/docs/AdminPagedPunishmentResponse.md +29 -0
- package/docs/AdminPlayerDetailResponse.md +37 -0
- package/docs/AdminPlayerSearchResult.md +23 -0
- package/docs/AdminPlayerSummary.md +35 -0
- package/docs/AdminPlayersApi.md +122 -0
- package/docs/AdminPunishmentDraftResponse.md +21 -0
- package/docs/AdminPunishmentEvaluation.md +39 -0
- package/docs/AdminPunishmentListItem.md +42 -0
- package/docs/AdminPunishmentSearchResponse.md +25 -0
- package/docs/AdminPunishmentTarget.md +23 -0
- package/docs/AdminPunishmentsApi.md +248 -0
- package/docs/AdminUsernameHistoryEntry.md +23 -0
- package/docs/ClientCredentialRequest.md +2 -0
- package/docs/ConnectionApi.md +1 -1
- package/docs/DefaultApi.md +105 -0
- package/docs/PlayerApi.md +5 -5
- package/docs/PunishmentApi.md +8 -114
- package/docs/PunishmentGetPunishmentResponse.md +5 -3
- package/index.ts +2 -2
- package/package.json +2 -2
- package/docs/ApplyPunishmentRequest.md +0 -31
- package/docs/ApplyPunishmentResponse.md +0 -33
- package/docs/CreatePunishmentDraftRequest.md +0 -29
- package/docs/PunishmentDraftResponse.md +0 -39
package/dist/api.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Reborn API
|
|
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 - **
|
|
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: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.6.4
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,6 +13,87 @@ 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
|
+
* Request to apply a punishment to one or more targets
|
|
18
|
+
*/
|
|
19
|
+
export interface AdminApplyPunishmentRequest {
|
|
20
|
+
/**
|
|
21
|
+
* List of targets to punish — each must have either a uuid or ipAddress
|
|
22
|
+
*/
|
|
23
|
+
'targets': Array<AdminPunishmentTarget>;
|
|
24
|
+
/**
|
|
25
|
+
* Punishment type
|
|
26
|
+
*/
|
|
27
|
+
'type': AdminApplyPunishmentRequestTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
* Severity level: 1=Minor, 2=Moderate, 3=Severe, 4=Critical
|
|
30
|
+
*/
|
|
31
|
+
'severity'?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Reason for the punishment
|
|
34
|
+
*/
|
|
35
|
+
'reason': string;
|
|
36
|
+
/**
|
|
37
|
+
* Custom duration in seconds — if omitted the suggested duration for the type and severity is used
|
|
38
|
+
*/
|
|
39
|
+
'durationSeconds'?: number | null;
|
|
40
|
+
/**
|
|
41
|
+
* Force the punishment to be permanent regardless of the target\'s current score
|
|
42
|
+
*/
|
|
43
|
+
'forcePermanent'?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Internal notes visible only to administrators — not shown to the punished player
|
|
46
|
+
*/
|
|
47
|
+
'notes'?: string | null;
|
|
48
|
+
}
|
|
49
|
+
export declare const AdminApplyPunishmentRequestTypeEnum: {
|
|
50
|
+
readonly Ban: "BAN";
|
|
51
|
+
readonly Mute: "MUTE";
|
|
52
|
+
readonly Warning: "WARNING";
|
|
53
|
+
};
|
|
54
|
+
export type AdminApplyPunishmentRequestTypeEnum = typeof AdminApplyPunishmentRequestTypeEnum[keyof typeof AdminApplyPunishmentRequestTypeEnum];
|
|
55
|
+
/**
|
|
56
|
+
* Batch punishment apply result — one result per target
|
|
57
|
+
*/
|
|
58
|
+
export interface AdminApplyPunishmentResponse {
|
|
59
|
+
/**
|
|
60
|
+
* Ordered list of results, one per target in the request
|
|
61
|
+
*/
|
|
62
|
+
'results'?: Array<AdminApplyPunishmentResult>;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Result of applying a punishment to a single target
|
|
66
|
+
*/
|
|
67
|
+
export interface AdminApplyPunishmentResult {
|
|
68
|
+
/**
|
|
69
|
+
* The target this result applies to
|
|
70
|
+
*/
|
|
71
|
+
'target'?: AdminPunishmentTarget;
|
|
72
|
+
/**
|
|
73
|
+
* ID of the created punishment record
|
|
74
|
+
*/
|
|
75
|
+
'punishmentId'?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Punishment type applied
|
|
78
|
+
*/
|
|
79
|
+
'type'?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Severity level applied
|
|
82
|
+
*/
|
|
83
|
+
'severity'?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Updated punishment score after applying
|
|
86
|
+
*/
|
|
87
|
+
'newScore'?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the punishment was made permanent
|
|
90
|
+
*/
|
|
91
|
+
'isPermanent'?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* When the punishment expires — null if permanent or a WARNING
|
|
94
|
+
*/
|
|
95
|
+
'expiresAt'?: string | null;
|
|
96
|
+
}
|
|
16
97
|
/**
|
|
17
98
|
* Client credential response
|
|
18
99
|
*/
|
|
@@ -45,6 +126,10 @@ export interface AdminClientCredentialResponse {
|
|
|
45
126
|
* Timestamp when the credential was created (ISO-8601 format)
|
|
46
127
|
*/
|
|
47
128
|
'createdAt'?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Timestamp when the credential expires (ISO-8601 format). Null means the credential never expires.
|
|
131
|
+
*/
|
|
132
|
+
'expiresAt'?: string | null;
|
|
48
133
|
}
|
|
49
134
|
/**
|
|
50
135
|
* Connection bypass response
|
|
@@ -67,6 +152,41 @@ export interface AdminConnectionBypassResponse {
|
|
|
67
152
|
*/
|
|
68
153
|
'createdAt'?: string;
|
|
69
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* Request to evaluate the impact of a punishment across one or more targets before applying
|
|
157
|
+
*/
|
|
158
|
+
export interface AdminCreatePunishmentDraftRequest {
|
|
159
|
+
/**
|
|
160
|
+
* List of targets to evaluate — each must have either a uuid or ipAddress
|
|
161
|
+
*/
|
|
162
|
+
'targets': Array<AdminPunishmentTarget>;
|
|
163
|
+
/**
|
|
164
|
+
* Punishment type
|
|
165
|
+
*/
|
|
166
|
+
'type': AdminCreatePunishmentDraftRequestTypeEnum;
|
|
167
|
+
/**
|
|
168
|
+
* Severity level: 1=Minor, 2=Moderate, 3=Severe, 4=Critical
|
|
169
|
+
*/
|
|
170
|
+
'severity'?: number;
|
|
171
|
+
/**
|
|
172
|
+
* Reason for the punishment (not used in evaluation, required for apply)
|
|
173
|
+
*/
|
|
174
|
+
'reason': string;
|
|
175
|
+
/**
|
|
176
|
+
* Custom duration in seconds — if omitted the suggested duration for the type and severity is used
|
|
177
|
+
*/
|
|
178
|
+
'durationSeconds'?: number | null;
|
|
179
|
+
/**
|
|
180
|
+
* Force the punishment to be permanent regardless of the target\'s current score
|
|
181
|
+
*/
|
|
182
|
+
'forcePermanent'?: boolean;
|
|
183
|
+
}
|
|
184
|
+
export declare const AdminCreatePunishmentDraftRequestTypeEnum: {
|
|
185
|
+
readonly Ban: "BAN";
|
|
186
|
+
readonly Mute: "MUTE";
|
|
187
|
+
readonly Warning: "WARNING";
|
|
188
|
+
};
|
|
189
|
+
export type AdminCreatePunishmentDraftRequestTypeEnum = typeof AdminCreatePunishmentDraftRequestTypeEnum[keyof typeof AdminCreatePunishmentDraftRequestTypeEnum];
|
|
70
190
|
export interface AdminDashboardConnectionResponse {
|
|
71
191
|
'id': number;
|
|
72
192
|
'ipAddress': string;
|
|
@@ -85,66 +205,299 @@ export interface AdminGetDashboardStats {
|
|
|
85
205
|
'totalClients': number;
|
|
86
206
|
}
|
|
87
207
|
/**
|
|
88
|
-
*
|
|
208
|
+
* A single IP address match in a punishment search, with all players ever seen on that IP
|
|
89
209
|
*/
|
|
90
|
-
export interface
|
|
210
|
+
export interface AdminIpSearchResult {
|
|
91
211
|
/**
|
|
92
|
-
*
|
|
212
|
+
* IP address
|
|
93
213
|
*/
|
|
94
|
-
'
|
|
214
|
+
'ipAddress'?: string;
|
|
95
215
|
/**
|
|
96
|
-
*
|
|
216
|
+
* Players ever seen on this IP
|
|
97
217
|
*/
|
|
98
|
-
'
|
|
218
|
+
'players'?: Array<AdminPlayerSearchResult>;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Paginated connection list response
|
|
222
|
+
*/
|
|
223
|
+
export interface AdminPagedConnectionResponse {
|
|
99
224
|
/**
|
|
100
|
-
*
|
|
225
|
+
* Connections on the current page
|
|
101
226
|
*/
|
|
102
|
-
'
|
|
227
|
+
'data'?: Array<AdminDashboardConnectionResponse>;
|
|
103
228
|
/**
|
|
104
|
-
*
|
|
229
|
+
* Total number of connections matching the filters
|
|
105
230
|
*/
|
|
106
|
-
'
|
|
231
|
+
'total'?: number;
|
|
107
232
|
/**
|
|
108
|
-
*
|
|
233
|
+
* Current page (1-indexed)
|
|
109
234
|
*/
|
|
110
|
-
'
|
|
235
|
+
'page'?: number;
|
|
111
236
|
/**
|
|
112
|
-
*
|
|
237
|
+
* Page size
|
|
113
238
|
*/
|
|
114
|
-
'
|
|
239
|
+
'limit'?: number;
|
|
240
|
+
/**
|
|
241
|
+
* Total number of pages
|
|
242
|
+
*/
|
|
243
|
+
'totalPages'?: number;
|
|
115
244
|
}
|
|
116
245
|
/**
|
|
117
|
-
*
|
|
246
|
+
* Paginated player list response
|
|
118
247
|
*/
|
|
119
|
-
export interface
|
|
248
|
+
export interface AdminPagedPlayerResponse {
|
|
120
249
|
/**
|
|
121
|
-
*
|
|
250
|
+
* Players on the current page
|
|
122
251
|
*/
|
|
123
|
-
'
|
|
252
|
+
'data'?: Array<AdminPlayerSummary>;
|
|
124
253
|
/**
|
|
125
|
-
*
|
|
254
|
+
* Total number of players matching the search filter
|
|
126
255
|
*/
|
|
127
|
-
'
|
|
256
|
+
'total'?: number;
|
|
128
257
|
/**
|
|
129
|
-
*
|
|
258
|
+
* Current page (1-indexed)
|
|
130
259
|
*/
|
|
131
|
-
'
|
|
260
|
+
'page'?: number;
|
|
132
261
|
/**
|
|
133
|
-
*
|
|
262
|
+
* Page size
|
|
134
263
|
*/
|
|
135
|
-
'
|
|
264
|
+
'limit'?: number;
|
|
265
|
+
/**
|
|
266
|
+
* Total number of pages
|
|
267
|
+
*/
|
|
268
|
+
'totalPages'?: number;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Paginated punishment list response
|
|
272
|
+
*/
|
|
273
|
+
export interface AdminPagedPunishmentResponse {
|
|
274
|
+
/**
|
|
275
|
+
* Punishments on the current page
|
|
276
|
+
*/
|
|
277
|
+
'data'?: Array<AdminPunishmentListItem>;
|
|
278
|
+
/**
|
|
279
|
+
* Total number of punishments matching the filters
|
|
280
|
+
*/
|
|
281
|
+
'total'?: number;
|
|
282
|
+
/**
|
|
283
|
+
* Current page (1-indexed)
|
|
284
|
+
*/
|
|
285
|
+
'page'?: number;
|
|
286
|
+
/**
|
|
287
|
+
* Page size
|
|
288
|
+
*/
|
|
289
|
+
'limit'?: number;
|
|
290
|
+
/**
|
|
291
|
+
* Total number of pages
|
|
292
|
+
*/
|
|
293
|
+
'totalPages'?: number;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Full player detail including punishment history and all known usernames
|
|
297
|
+
*/
|
|
298
|
+
export interface AdminPlayerDetailResponse {
|
|
299
|
+
/**
|
|
300
|
+
* Internal player ID
|
|
301
|
+
*/
|
|
302
|
+
'id'?: number;
|
|
303
|
+
/**
|
|
304
|
+
* Player Minecraft UUID
|
|
305
|
+
*/
|
|
306
|
+
'uuid'?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Most recently seen username
|
|
309
|
+
*/
|
|
310
|
+
'username'?: string | null;
|
|
311
|
+
/**
|
|
312
|
+
* Whether this player still has first-join status
|
|
313
|
+
*/
|
|
314
|
+
'firstJoin'?: boolean;
|
|
315
|
+
/**
|
|
316
|
+
* Timestamp of first connection (ISO-8601)
|
|
317
|
+
*/
|
|
318
|
+
'firstLogin'?: string;
|
|
319
|
+
/**
|
|
320
|
+
* Timestamp of most recent connection (ISO-8601)
|
|
321
|
+
*/
|
|
322
|
+
'lastUsedAt'?: string | null;
|
|
323
|
+
/**
|
|
324
|
+
* Raw punishment score
|
|
325
|
+
*/
|
|
326
|
+
'punishmentPointsRaw'?: number;
|
|
136
327
|
/**
|
|
137
|
-
*
|
|
328
|
+
* Punishment score as a percentage
|
|
329
|
+
*/
|
|
330
|
+
'punishmentPointsPercent'?: number;
|
|
331
|
+
/**
|
|
332
|
+
* All usernames this player has used, newest first
|
|
333
|
+
*/
|
|
334
|
+
'usernameHistory'?: Array<AdminUsernameHistoryEntry>;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Lightweight player reference used in search results and punishment evaluations
|
|
338
|
+
*/
|
|
339
|
+
export interface AdminPlayerSearchResult {
|
|
340
|
+
/**
|
|
341
|
+
* Player Minecraft UUID
|
|
342
|
+
*/
|
|
343
|
+
'uuid'?: string;
|
|
344
|
+
/**
|
|
345
|
+
* Most recently seen username, null if never recorded
|
|
346
|
+
*/
|
|
347
|
+
'username'?: string | null;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Summary of a player record, used in list views
|
|
351
|
+
*/
|
|
352
|
+
export interface AdminPlayerSummary {
|
|
353
|
+
/**
|
|
354
|
+
* Internal player ID
|
|
355
|
+
*/
|
|
356
|
+
'id'?: number;
|
|
357
|
+
/**
|
|
358
|
+
* Player Minecraft UUID
|
|
359
|
+
*/
|
|
360
|
+
'uuid'?: string;
|
|
361
|
+
/**
|
|
362
|
+
* Most recently seen username, null if never recorded
|
|
363
|
+
*/
|
|
364
|
+
'username'?: string | null;
|
|
365
|
+
/**
|
|
366
|
+
* Whether this player still has first-join status
|
|
367
|
+
*/
|
|
368
|
+
'firstJoin'?: boolean;
|
|
369
|
+
/**
|
|
370
|
+
* Timestamp of first connection (ISO-8601)
|
|
371
|
+
*/
|
|
372
|
+
'firstLogin'?: string;
|
|
373
|
+
/**
|
|
374
|
+
* Timestamp of most recent connection (ISO-8601)
|
|
375
|
+
*/
|
|
376
|
+
'lastUsedAt'?: string | null;
|
|
377
|
+
/**
|
|
378
|
+
* Raw punishment score (sum of weighted punishment values)
|
|
379
|
+
*/
|
|
380
|
+
'punishmentPointsRaw'?: number;
|
|
381
|
+
/**
|
|
382
|
+
* Punishment score as a percentage. Values above 100 indicate future punishments should be permanent.
|
|
383
|
+
*/
|
|
384
|
+
'punishmentPointsPercent'?: number;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Batch punishment draft — one evaluation per target
|
|
388
|
+
*/
|
|
389
|
+
export interface AdminPunishmentDraftResponse {
|
|
390
|
+
/**
|
|
391
|
+
* Ordered list of evaluations, one per target in the request
|
|
392
|
+
*/
|
|
393
|
+
'evaluations'?: Array<AdminPunishmentEvaluation>;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Evaluation of a punishment\'s impact on a single target
|
|
397
|
+
*/
|
|
398
|
+
export interface AdminPunishmentEvaluation {
|
|
399
|
+
/**
|
|
400
|
+
* The target this evaluation applies to
|
|
401
|
+
*/
|
|
402
|
+
'target'?: AdminPunishmentTarget;
|
|
403
|
+
/**
|
|
404
|
+
* Players affected — one player for UUID targets, all players on the IP for connection targets
|
|
405
|
+
*/
|
|
406
|
+
'affectedPlayers'?: Array<AdminPlayerSearchResult>;
|
|
407
|
+
/**
|
|
408
|
+
* Current punishment score before applying this punishment (0–100+)
|
|
409
|
+
*/
|
|
410
|
+
'currentScore'?: number;
|
|
411
|
+
/**
|
|
412
|
+
* Points this punishment would add to the score
|
|
413
|
+
*/
|
|
414
|
+
'pointsToAdd'?: number;
|
|
415
|
+
/**
|
|
416
|
+
* Projected score after applying this punishment
|
|
138
417
|
*/
|
|
139
418
|
'newScore'?: number;
|
|
140
419
|
/**
|
|
141
|
-
* Whether this punishment
|
|
420
|
+
* Whether this punishment would be permanent based on the current score threshold
|
|
142
421
|
*/
|
|
143
|
-
'
|
|
422
|
+
'willBePermanent'?: boolean;
|
|
144
423
|
/**
|
|
145
|
-
*
|
|
424
|
+
* Resolved duration in seconds — null if permanent or a WARNING
|
|
146
425
|
*/
|
|
147
|
-
'
|
|
426
|
+
'durationSeconds'?: number | null;
|
|
427
|
+
/**
|
|
428
|
+
* Number of existing punishments on this target
|
|
429
|
+
*/
|
|
430
|
+
'previousPunishmentCount'?: number;
|
|
431
|
+
/**
|
|
432
|
+
* True when the target is an IP address (connection punishment) rather than a player UUID
|
|
433
|
+
*/
|
|
434
|
+
'isConnectionTarget'?: boolean;
|
|
435
|
+
/**
|
|
436
|
+
* The effective punishment type that will be applied — may differ from the requested type if escalated to BAN at threshold
|
|
437
|
+
*/
|
|
438
|
+
'effectiveType'?: string;
|
|
439
|
+
}
|
|
440
|
+
export interface AdminPunishmentListItem {
|
|
441
|
+
'id': number;
|
|
442
|
+
'reason': string;
|
|
443
|
+
'notes'?: string | null;
|
|
444
|
+
'type': string;
|
|
445
|
+
'severity': number;
|
|
446
|
+
'createdBy': string;
|
|
447
|
+
'expiresAt'?: string | null;
|
|
448
|
+
'createdAt': string;
|
|
449
|
+
'targetType': string;
|
|
450
|
+
'targetUuid'?: string | null;
|
|
451
|
+
'targetUsername'?: string | null;
|
|
452
|
+
'targetIp'?: string | null;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Result of a punishment target search — either a list of matching players or a list of matching IP addresses
|
|
456
|
+
*/
|
|
457
|
+
export interface AdminPunishmentSearchResponse {
|
|
458
|
+
/**
|
|
459
|
+
* Search kind — \'player\' for UUID/username searches, \'ip\' for IP address searches
|
|
460
|
+
*/
|
|
461
|
+
'kind'?: AdminPunishmentSearchResponseKindEnum;
|
|
462
|
+
/**
|
|
463
|
+
* Matching players — only populated when kind=\'player\'
|
|
464
|
+
*/
|
|
465
|
+
'players'?: Array<AdminPlayerSearchResult>;
|
|
466
|
+
/**
|
|
467
|
+
* Matching IP addresses with their associated players — only populated when kind=\'ip\'
|
|
468
|
+
*/
|
|
469
|
+
'ipResults'?: Array<AdminIpSearchResult>;
|
|
470
|
+
}
|
|
471
|
+
export declare const AdminPunishmentSearchResponseKindEnum: {
|
|
472
|
+
readonly Player: "player";
|
|
473
|
+
readonly Ip: "ip";
|
|
474
|
+
};
|
|
475
|
+
export type AdminPunishmentSearchResponseKindEnum = typeof AdminPunishmentSearchResponseKindEnum[keyof typeof AdminPunishmentSearchResponseKindEnum];
|
|
476
|
+
/**
|
|
477
|
+
* A target for a punishment — either a player UUID or an IP address (mutually exclusive)
|
|
478
|
+
*/
|
|
479
|
+
export interface AdminPunishmentTarget {
|
|
480
|
+
/**
|
|
481
|
+
* Player Minecraft UUID
|
|
482
|
+
*/
|
|
483
|
+
'uuid'?: string | null;
|
|
484
|
+
/**
|
|
485
|
+
* IP address — when specified, the punishment is linked to the connection record and all players on that IP are shown as affected
|
|
486
|
+
*/
|
|
487
|
+
'ipAddress'?: string | null;
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* A single entry in a player\'s username history
|
|
491
|
+
*/
|
|
492
|
+
export interface AdminUsernameHistoryEntry {
|
|
493
|
+
/**
|
|
494
|
+
* The username at this point in time
|
|
495
|
+
*/
|
|
496
|
+
'username'?: string;
|
|
497
|
+
/**
|
|
498
|
+
* When this username was first observed (ISO-8601)
|
|
499
|
+
*/
|
|
500
|
+
'changedAt'?: string;
|
|
148
501
|
}
|
|
149
502
|
/**
|
|
150
503
|
* Request to create new client credentials
|
|
@@ -158,6 +511,10 @@ export interface ClientCredentialRequest {
|
|
|
158
511
|
* Optional description of the client\'s purpose
|
|
159
512
|
*/
|
|
160
513
|
'description'?: string;
|
|
514
|
+
/**
|
|
515
|
+
* Optional expiration timestamp (ISO-8601). Null means the credential never expires.
|
|
516
|
+
*/
|
|
517
|
+
'expiresAt'?: string | null;
|
|
161
518
|
}
|
|
162
519
|
/**
|
|
163
520
|
* Comprehensive connection analysis response including VPN detection, geolocation, bypass status, and optional player information
|
|
@@ -206,31 +563,6 @@ export interface CreateBypassRequest {
|
|
|
206
563
|
*/
|
|
207
564
|
'expiresAtEpoch': number;
|
|
208
565
|
}
|
|
209
|
-
/**
|
|
210
|
-
* Request to create a punishment draft for preview before applying
|
|
211
|
-
*/
|
|
212
|
-
export interface CreatePunishmentDraftRequest {
|
|
213
|
-
/**
|
|
214
|
-
* Player UUID to punish
|
|
215
|
-
*/
|
|
216
|
-
'playerUuid': string;
|
|
217
|
-
/**
|
|
218
|
-
* Reason for the punishment
|
|
219
|
-
*/
|
|
220
|
-
'reason': string;
|
|
221
|
-
/**
|
|
222
|
-
* Type of punishment
|
|
223
|
-
*/
|
|
224
|
-
'type': string;
|
|
225
|
-
/**
|
|
226
|
-
* Severity level of the punishment (1-10)
|
|
227
|
-
*/
|
|
228
|
-
'severity': number;
|
|
229
|
-
/**
|
|
230
|
-
* Duration of the punishment in seconds. Null means permanent.
|
|
231
|
-
*/
|
|
232
|
-
'durationSeconds'?: number | null;
|
|
233
|
-
}
|
|
234
566
|
/**
|
|
235
567
|
* Player information including join history, tracking data, and punishment scoring
|
|
236
568
|
*/
|
|
@@ -252,51 +584,6 @@ export interface PlayerGetPlayerInformation {
|
|
|
252
584
|
*/
|
|
253
585
|
'punishmentPointsPercent'?: number;
|
|
254
586
|
}
|
|
255
|
-
/**
|
|
256
|
-
* Response containing punishment draft preview with calculated points and thresholds
|
|
257
|
-
*/
|
|
258
|
-
export interface PunishmentDraftResponse {
|
|
259
|
-
/**
|
|
260
|
-
* Player UUID this punishment would apply to
|
|
261
|
-
*/
|
|
262
|
-
'playerUuid'?: string;
|
|
263
|
-
/**
|
|
264
|
-
* Reason for the punishment
|
|
265
|
-
*/
|
|
266
|
-
'reason'?: string;
|
|
267
|
-
/**
|
|
268
|
-
* Type of punishment
|
|
269
|
-
*/
|
|
270
|
-
'type'?: string;
|
|
271
|
-
/**
|
|
272
|
-
* Severity level (1-10)
|
|
273
|
-
*/
|
|
274
|
-
'severity'?: number;
|
|
275
|
-
/**
|
|
276
|
-
* Current total punishment score before applying this punishment
|
|
277
|
-
*/
|
|
278
|
-
'currentScore'?: number;
|
|
279
|
-
/**
|
|
280
|
-
* Points this punishment would add
|
|
281
|
-
*/
|
|
282
|
-
'pointsToAdd'?: number;
|
|
283
|
-
/**
|
|
284
|
-
* New total score after applying this punishment
|
|
285
|
-
*/
|
|
286
|
-
'newScore'?: number;
|
|
287
|
-
/**
|
|
288
|
-
* Whether this punishment will be permanent
|
|
289
|
-
*/
|
|
290
|
-
'willBePermanent'?: boolean;
|
|
291
|
-
/**
|
|
292
|
-
* Duration in seconds (null if permanent)
|
|
293
|
-
*/
|
|
294
|
-
'durationSeconds'?: number;
|
|
295
|
-
/**
|
|
296
|
-
* Number of previous punishments for this player
|
|
297
|
-
*/
|
|
298
|
-
'previousPunishmentCount'?: number;
|
|
299
|
-
}
|
|
300
587
|
/**
|
|
301
588
|
* Punishment information including reason, type, creator, and expiration
|
|
302
589
|
*/
|
|
@@ -306,15 +593,19 @@ export interface PunishmentGetPunishmentResponse {
|
|
|
306
593
|
*/
|
|
307
594
|
'id'?: number;
|
|
308
595
|
/**
|
|
309
|
-
* Reason for the punishment
|
|
596
|
+
* Reason for the punishment, shown to the punished player
|
|
310
597
|
*/
|
|
311
598
|
'reason'?: string;
|
|
312
599
|
/**
|
|
313
|
-
*
|
|
600
|
+
* Internal administrator notes — not shown to the punished player
|
|
601
|
+
*/
|
|
602
|
+
'notes'?: string | null;
|
|
603
|
+
/**
|
|
604
|
+
* Type of punishment (BAN, MUTE, WARNING)
|
|
314
605
|
*/
|
|
315
606
|
'type'?: string;
|
|
316
607
|
/**
|
|
317
|
-
* Severity level
|
|
608
|
+
* Severity level (1=Minor, 2=Moderate, 3=Severe, 4=Critical)
|
|
318
609
|
*/
|
|
319
610
|
'severity'?: number;
|
|
320
611
|
/**
|
|
@@ -634,6 +925,18 @@ export declare const AdminConnectionsApiAxiosParamCreator: (configuration?: Conf
|
|
|
634
925
|
* @throws {RequiredError}
|
|
635
926
|
*/
|
|
636
927
|
createBypass: (createBypassRequest: CreateBypassRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
928
|
+
/**
|
|
929
|
+
* Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
|
|
930
|
+
* @summary List all connections (paginated)
|
|
931
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
932
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
933
|
+
* @param {boolean | null} [isVpn] Filter by VPN status
|
|
934
|
+
* @param {number | null} [page] Page number (1-indexed)
|
|
935
|
+
* @param {number | null} [limit] Page size
|
|
936
|
+
* @param {*} [options] Override http request option.
|
|
937
|
+
* @throws {RequiredError}
|
|
938
|
+
*/
|
|
939
|
+
listAllConnections: (ipAddress?: string | null, uuid?: string | null, isVpn?: boolean | null, page?: number | null, limit?: number | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
637
940
|
/**
|
|
638
941
|
* Returns a list of recent connections with VPN detection status, bypass information, and associated player data. Optionally filter by epoch timestamp (seconds since Unix epoch).
|
|
639
942
|
* @summary List recent connections
|
|
@@ -661,6 +964,18 @@ export declare const AdminConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
661
964
|
* @throws {RequiredError}
|
|
662
965
|
*/
|
|
663
966
|
createBypass(createBypassRequest: CreateBypassRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminConnectionBypassResponse>>;
|
|
967
|
+
/**
|
|
968
|
+
* Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
|
|
969
|
+
* @summary List all connections (paginated)
|
|
970
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
971
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
972
|
+
* @param {boolean | null} [isVpn] Filter by VPN status
|
|
973
|
+
* @param {number | null} [page] Page number (1-indexed)
|
|
974
|
+
* @param {number | null} [limit] Page size
|
|
975
|
+
* @param {*} [options] Override http request option.
|
|
976
|
+
* @throws {RequiredError}
|
|
977
|
+
*/
|
|
978
|
+
listAllConnections(ipAddress?: string | null, uuid?: string | null, isVpn?: boolean | null, page?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPagedConnectionResponse>>;
|
|
664
979
|
/**
|
|
665
980
|
* Returns a list of recent connections with VPN detection status, bypass information, and associated player data. Optionally filter by epoch timestamp (seconds since Unix epoch).
|
|
666
981
|
* @summary List recent connections
|
|
@@ -688,6 +1003,18 @@ export declare const AdminConnectionsApiFactory: (configuration?: Configuration,
|
|
|
688
1003
|
* @throws {RequiredError}
|
|
689
1004
|
*/
|
|
690
1005
|
createBypass(createBypassRequest: CreateBypassRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminConnectionBypassResponse>;
|
|
1006
|
+
/**
|
|
1007
|
+
* Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
|
|
1008
|
+
* @summary List all connections (paginated)
|
|
1009
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1010
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1011
|
+
* @param {boolean | null} [isVpn] Filter by VPN status
|
|
1012
|
+
* @param {number | null} [page] Page number (1-indexed)
|
|
1013
|
+
* @param {number | null} [limit] Page size
|
|
1014
|
+
* @param {*} [options] Override http request option.
|
|
1015
|
+
* @throws {RequiredError}
|
|
1016
|
+
*/
|
|
1017
|
+
listAllConnections(ipAddress?: string | null, uuid?: string | null, isVpn?: boolean | null, page?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<AdminPagedConnectionResponse>;
|
|
691
1018
|
/**
|
|
692
1019
|
* Returns a list of recent connections with VPN detection status, bypass information, and associated player data. Optionally filter by epoch timestamp (seconds since Unix epoch).
|
|
693
1020
|
* @summary List recent connections
|
|
@@ -715,6 +1042,18 @@ export declare class AdminConnectionsApi extends BaseAPI {
|
|
|
715
1042
|
* @throws {RequiredError}
|
|
716
1043
|
*/
|
|
717
1044
|
createBypass(createBypassRequest: CreateBypassRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminConnectionBypassResponse, any, {}>>;
|
|
1045
|
+
/**
|
|
1046
|
+
* Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
|
|
1047
|
+
* @summary List all connections (paginated)
|
|
1048
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1049
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1050
|
+
* @param {boolean | null} [isVpn] Filter by VPN status
|
|
1051
|
+
* @param {number | null} [page] Page number (1-indexed)
|
|
1052
|
+
* @param {number | null} [limit] Page size
|
|
1053
|
+
* @param {*} [options] Override http request option.
|
|
1054
|
+
* @throws {RequiredError}
|
|
1055
|
+
*/
|
|
1056
|
+
listAllConnections(ipAddress?: string | null, uuid?: string | null, isVpn?: boolean | null, page?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminPagedConnectionResponse, any, {}>>;
|
|
718
1057
|
/**
|
|
719
1058
|
* Returns a list of recent connections with VPN detection status, bypass information, and associated player data. Optionally filter by epoch timestamp (seconds since Unix epoch).
|
|
720
1059
|
* @summary List recent connections
|
|
@@ -778,6 +1117,274 @@ export declare class AdminDashboardApi extends BaseAPI {
|
|
|
778
1117
|
*/
|
|
779
1118
|
dashboardStats(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminGetDashboardStats, any, {}>>;
|
|
780
1119
|
}
|
|
1120
|
+
/**
|
|
1121
|
+
* AdminPlayersApi - axios parameter creator
|
|
1122
|
+
*/
|
|
1123
|
+
export declare const AdminPlayersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1124
|
+
/**
|
|
1125
|
+
* Returns full detail for a single player including all known usernames and punishment scoring.
|
|
1126
|
+
* @summary Get player detail
|
|
1127
|
+
* @param {string} uuid Player Minecraft UUID
|
|
1128
|
+
* @param {*} [options] Override http request option.
|
|
1129
|
+
* @throws {RequiredError}
|
|
1130
|
+
*/
|
|
1131
|
+
getPlayer: (uuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1132
|
+
/**
|
|
1133
|
+
* Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
|
|
1134
|
+
* @summary List players
|
|
1135
|
+
* @param {number} page Page number (1-indexed)
|
|
1136
|
+
* @param {number} limit Page size
|
|
1137
|
+
* @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
|
|
1138
|
+
* @param {*} [options] Override http request option.
|
|
1139
|
+
* @throws {RequiredError}
|
|
1140
|
+
*/
|
|
1141
|
+
listPlayers: (page: number, limit: number, search?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1142
|
+
};
|
|
1143
|
+
/**
|
|
1144
|
+
* AdminPlayersApi - functional programming interface
|
|
1145
|
+
*/
|
|
1146
|
+
export declare const AdminPlayersApiFp: (configuration?: Configuration) => {
|
|
1147
|
+
/**
|
|
1148
|
+
* Returns full detail for a single player including all known usernames and punishment scoring.
|
|
1149
|
+
* @summary Get player detail
|
|
1150
|
+
* @param {string} uuid Player Minecraft UUID
|
|
1151
|
+
* @param {*} [options] Override http request option.
|
|
1152
|
+
* @throws {RequiredError}
|
|
1153
|
+
*/
|
|
1154
|
+
getPlayer(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPlayerDetailResponse>>;
|
|
1155
|
+
/**
|
|
1156
|
+
* Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
|
|
1157
|
+
* @summary List players
|
|
1158
|
+
* @param {number} page Page number (1-indexed)
|
|
1159
|
+
* @param {number} limit Page size
|
|
1160
|
+
* @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
|
|
1161
|
+
* @param {*} [options] Override http request option.
|
|
1162
|
+
* @throws {RequiredError}
|
|
1163
|
+
*/
|
|
1164
|
+
listPlayers(page: number, limit: number, search?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPagedPlayerResponse>>;
|
|
1165
|
+
};
|
|
1166
|
+
/**
|
|
1167
|
+
* AdminPlayersApi - factory interface
|
|
1168
|
+
*/
|
|
1169
|
+
export declare const AdminPlayersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1170
|
+
/**
|
|
1171
|
+
* Returns full detail for a single player including all known usernames and punishment scoring.
|
|
1172
|
+
* @summary Get player detail
|
|
1173
|
+
* @param {string} uuid Player Minecraft UUID
|
|
1174
|
+
* @param {*} [options] Override http request option.
|
|
1175
|
+
* @throws {RequiredError}
|
|
1176
|
+
*/
|
|
1177
|
+
getPlayer(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminPlayerDetailResponse>;
|
|
1178
|
+
/**
|
|
1179
|
+
* Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
|
|
1180
|
+
* @summary List players
|
|
1181
|
+
* @param {number} page Page number (1-indexed)
|
|
1182
|
+
* @param {number} limit Page size
|
|
1183
|
+
* @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
|
|
1184
|
+
* @param {*} [options] Override http request option.
|
|
1185
|
+
* @throws {RequiredError}
|
|
1186
|
+
*/
|
|
1187
|
+
listPlayers(page: number, limit: number, search?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<AdminPagedPlayerResponse>;
|
|
1188
|
+
};
|
|
1189
|
+
/**
|
|
1190
|
+
* AdminPlayersApi - object-oriented interface
|
|
1191
|
+
*/
|
|
1192
|
+
export declare class AdminPlayersApi extends BaseAPI {
|
|
1193
|
+
/**
|
|
1194
|
+
* Returns full detail for a single player including all known usernames and punishment scoring.
|
|
1195
|
+
* @summary Get player detail
|
|
1196
|
+
* @param {string} uuid Player Minecraft UUID
|
|
1197
|
+
* @param {*} [options] Override http request option.
|
|
1198
|
+
* @throws {RequiredError}
|
|
1199
|
+
*/
|
|
1200
|
+
getPlayer(uuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminPlayerDetailResponse, any, {}>>;
|
|
1201
|
+
/**
|
|
1202
|
+
* Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
|
|
1203
|
+
* @summary List players
|
|
1204
|
+
* @param {number} page Page number (1-indexed)
|
|
1205
|
+
* @param {number} limit Page size
|
|
1206
|
+
* @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
|
|
1207
|
+
* @param {*} [options] Override http request option.
|
|
1208
|
+
* @throws {RequiredError}
|
|
1209
|
+
*/
|
|
1210
|
+
listPlayers(page: number, limit: number, search?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminPagedPlayerResponse, any, {}>>;
|
|
1211
|
+
}
|
|
1212
|
+
/**
|
|
1213
|
+
* AdminPunishmentsApi - axios parameter creator
|
|
1214
|
+
*/
|
|
1215
|
+
export declare const AdminPunishmentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1216
|
+
/**
|
|
1217
|
+
* 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.
|
|
1218
|
+
* @summary Apply punishment
|
|
1219
|
+
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
1220
|
+
* @param {*} [options] Override http request option.
|
|
1221
|
+
* @throws {RequiredError}
|
|
1222
|
+
*/
|
|
1223
|
+
applyPunishment: (adminApplyPunishmentRequest: AdminApplyPunishmentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1224
|
+
/**
|
|
1225
|
+
* 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.
|
|
1226
|
+
* @summary Evaluate punishment impact
|
|
1227
|
+
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
1228
|
+
* @param {*} [options] Override http request option.
|
|
1229
|
+
* @throws {RequiredError}
|
|
1230
|
+
*/
|
|
1231
|
+
createDraft: (adminCreatePunishmentDraftRequest: AdminCreatePunishmentDraftRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
|
|
1234
|
+
* @summary List punishments
|
|
1235
|
+
* @param {number} page Page number (1-indexed)
|
|
1236
|
+
* @param {number} limit Page size
|
|
1237
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1238
|
+
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
1239
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1240
|
+
* @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
|
|
1241
|
+
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
1242
|
+
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
1243
|
+
* @param {*} [options] Override http request option.
|
|
1244
|
+
* @throws {RequiredError}
|
|
1245
|
+
*/
|
|
1246
|
+
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) => Promise<RequestArgs>;
|
|
1247
|
+
/**
|
|
1248
|
+
* 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.
|
|
1249
|
+
* @summary Search punishment targets
|
|
1250
|
+
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
1251
|
+
* @param {*} [options] Override http request option.
|
|
1252
|
+
* @throws {RequiredError}
|
|
1253
|
+
*/
|
|
1254
|
+
searchTargets: (q: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1255
|
+
};
|
|
1256
|
+
/**
|
|
1257
|
+
* AdminPunishmentsApi - functional programming interface
|
|
1258
|
+
*/
|
|
1259
|
+
export declare const AdminPunishmentsApiFp: (configuration?: Configuration) => {
|
|
1260
|
+
/**
|
|
1261
|
+
* 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.
|
|
1262
|
+
* @summary Apply punishment
|
|
1263
|
+
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
1264
|
+
* @param {*} [options] Override http request option.
|
|
1265
|
+
* @throws {RequiredError}
|
|
1266
|
+
*/
|
|
1267
|
+
applyPunishment(adminApplyPunishmentRequest: AdminApplyPunishmentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminApplyPunishmentResponse>>;
|
|
1268
|
+
/**
|
|
1269
|
+
* 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.
|
|
1270
|
+
* @summary Evaluate punishment impact
|
|
1271
|
+
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
1272
|
+
* @param {*} [options] Override http request option.
|
|
1273
|
+
* @throws {RequiredError}
|
|
1274
|
+
*/
|
|
1275
|
+
createDraft(adminCreatePunishmentDraftRequest: AdminCreatePunishmentDraftRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPunishmentDraftResponse>>;
|
|
1276
|
+
/**
|
|
1277
|
+
* Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
|
|
1278
|
+
* @summary List punishments
|
|
1279
|
+
* @param {number} page Page number (1-indexed)
|
|
1280
|
+
* @param {number} limit Page size
|
|
1281
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1282
|
+
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
1283
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1284
|
+
* @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
|
|
1285
|
+
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
1286
|
+
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
1287
|
+
* @param {*} [options] Override http request option.
|
|
1288
|
+
* @throws {RequiredError}
|
|
1289
|
+
*/
|
|
1290
|
+
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): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPagedPunishmentResponse>>;
|
|
1291
|
+
/**
|
|
1292
|
+
* 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.
|
|
1293
|
+
* @summary Search punishment targets
|
|
1294
|
+
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
1295
|
+
* @param {*} [options] Override http request option.
|
|
1296
|
+
* @throws {RequiredError}
|
|
1297
|
+
*/
|
|
1298
|
+
searchTargets(q: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPunishmentSearchResponse>>;
|
|
1299
|
+
};
|
|
1300
|
+
/**
|
|
1301
|
+
* AdminPunishmentsApi - factory interface
|
|
1302
|
+
*/
|
|
1303
|
+
export declare const AdminPunishmentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1304
|
+
/**
|
|
1305
|
+
* 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.
|
|
1306
|
+
* @summary Apply punishment
|
|
1307
|
+
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
1308
|
+
* @param {*} [options] Override http request option.
|
|
1309
|
+
* @throws {RequiredError}
|
|
1310
|
+
*/
|
|
1311
|
+
applyPunishment(adminApplyPunishmentRequest: AdminApplyPunishmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminApplyPunishmentResponse>;
|
|
1312
|
+
/**
|
|
1313
|
+
* 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.
|
|
1314
|
+
* @summary Evaluate punishment impact
|
|
1315
|
+
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
1316
|
+
* @param {*} [options] Override http request option.
|
|
1317
|
+
* @throws {RequiredError}
|
|
1318
|
+
*/
|
|
1319
|
+
createDraft(adminCreatePunishmentDraftRequest: AdminCreatePunishmentDraftRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminPunishmentDraftResponse>;
|
|
1320
|
+
/**
|
|
1321
|
+
* Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
|
|
1322
|
+
* @summary List punishments
|
|
1323
|
+
* @param {number} page Page number (1-indexed)
|
|
1324
|
+
* @param {number} limit Page size
|
|
1325
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1326
|
+
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
1327
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1328
|
+
* @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
|
|
1329
|
+
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
1330
|
+
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
1331
|
+
* @param {*} [options] Override http request option.
|
|
1332
|
+
* @throws {RequiredError}
|
|
1333
|
+
*/
|
|
1334
|
+
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>;
|
|
1335
|
+
/**
|
|
1336
|
+
* 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.
|
|
1337
|
+
* @summary Search punishment targets
|
|
1338
|
+
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
1339
|
+
* @param {*} [options] Override http request option.
|
|
1340
|
+
* @throws {RequiredError}
|
|
1341
|
+
*/
|
|
1342
|
+
searchTargets(q: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminPunishmentSearchResponse>;
|
|
1343
|
+
};
|
|
1344
|
+
/**
|
|
1345
|
+
* AdminPunishmentsApi - object-oriented interface
|
|
1346
|
+
*/
|
|
1347
|
+
export declare class AdminPunishmentsApi extends BaseAPI {
|
|
1348
|
+
/**
|
|
1349
|
+
* 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.
|
|
1350
|
+
* @summary Apply punishment
|
|
1351
|
+
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
1352
|
+
* @param {*} [options] Override http request option.
|
|
1353
|
+
* @throws {RequiredError}
|
|
1354
|
+
*/
|
|
1355
|
+
applyPunishment(adminApplyPunishmentRequest: AdminApplyPunishmentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminApplyPunishmentResponse, any, {}>>;
|
|
1356
|
+
/**
|
|
1357
|
+
* 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.
|
|
1358
|
+
* @summary Evaluate punishment impact
|
|
1359
|
+
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
1360
|
+
* @param {*} [options] Override http request option.
|
|
1361
|
+
* @throws {RequiredError}
|
|
1362
|
+
*/
|
|
1363
|
+
createDraft(adminCreatePunishmentDraftRequest: AdminCreatePunishmentDraftRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminPunishmentDraftResponse, any, {}>>;
|
|
1364
|
+
/**
|
|
1365
|
+
* Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
|
|
1366
|
+
* @summary List punishments
|
|
1367
|
+
* @param {number} page Page number (1-indexed)
|
|
1368
|
+
* @param {number} limit Page size
|
|
1369
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1370
|
+
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
1371
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1372
|
+
* @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
|
|
1373
|
+
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
1374
|
+
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
1375
|
+
* @param {*} [options] Override http request option.
|
|
1376
|
+
* @throws {RequiredError}
|
|
1377
|
+
*/
|
|
1378
|
+
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): Promise<import("axios").AxiosResponse<AdminPagedPunishmentResponse, any, {}>>;
|
|
1379
|
+
/**
|
|
1380
|
+
* 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.
|
|
1381
|
+
* @summary Search punishment targets
|
|
1382
|
+
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
1383
|
+
* @param {*} [options] Override http request option.
|
|
1384
|
+
* @throws {RequiredError}
|
|
1385
|
+
*/
|
|
1386
|
+
searchTargets(q: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminPunishmentSearchResponse, any, {}>>;
|
|
1387
|
+
}
|
|
781
1388
|
/**
|
|
782
1389
|
* ConnectionApi - axios parameter creator
|
|
783
1390
|
*/
|
|
@@ -838,6 +1445,82 @@ export declare class ConnectionApi extends BaseAPI {
|
|
|
838
1445
|
*/
|
|
839
1446
|
getConnectionDetails(ip: string, forceRecheck: boolean, associateUuid?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConnectionGetConnectionDetailsResponse, any, {}>>;
|
|
840
1447
|
}
|
|
1448
|
+
/**
|
|
1449
|
+
* DefaultApi - axios parameter creator
|
|
1450
|
+
*/
|
|
1451
|
+
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1452
|
+
/**
|
|
1453
|
+
*
|
|
1454
|
+
* @param {string | null} [code]
|
|
1455
|
+
* @param {string | null} [error]
|
|
1456
|
+
* @param {*} [options] Override http request option.
|
|
1457
|
+
* @throws {RequiredError}
|
|
1458
|
+
*/
|
|
1459
|
+
callback: (code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1460
|
+
/**
|
|
1461
|
+
*
|
|
1462
|
+
* @param {*} [options] Override http request option.
|
|
1463
|
+
* @throws {RequiredError}
|
|
1464
|
+
*/
|
|
1465
|
+
initiateLogin: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1466
|
+
};
|
|
1467
|
+
/**
|
|
1468
|
+
* DefaultApi - functional programming interface
|
|
1469
|
+
*/
|
|
1470
|
+
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
1471
|
+
/**
|
|
1472
|
+
*
|
|
1473
|
+
* @param {string | null} [code]
|
|
1474
|
+
* @param {string | null} [error]
|
|
1475
|
+
* @param {*} [options] Override http request option.
|
|
1476
|
+
* @throws {RequiredError}
|
|
1477
|
+
*/
|
|
1478
|
+
callback(code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
1479
|
+
/**
|
|
1480
|
+
*
|
|
1481
|
+
* @param {*} [options] Override http request option.
|
|
1482
|
+
* @throws {RequiredError}
|
|
1483
|
+
*/
|
|
1484
|
+
initiateLogin(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
1485
|
+
};
|
|
1486
|
+
/**
|
|
1487
|
+
* DefaultApi - factory interface
|
|
1488
|
+
*/
|
|
1489
|
+
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1490
|
+
/**
|
|
1491
|
+
*
|
|
1492
|
+
* @param {string | null} [code]
|
|
1493
|
+
* @param {string | null} [error]
|
|
1494
|
+
* @param {*} [options] Override http request option.
|
|
1495
|
+
* @throws {RequiredError}
|
|
1496
|
+
*/
|
|
1497
|
+
callback(code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1498
|
+
/**
|
|
1499
|
+
*
|
|
1500
|
+
* @param {*} [options] Override http request option.
|
|
1501
|
+
* @throws {RequiredError}
|
|
1502
|
+
*/
|
|
1503
|
+
initiateLogin(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
1504
|
+
};
|
|
1505
|
+
/**
|
|
1506
|
+
* DefaultApi - object-oriented interface
|
|
1507
|
+
*/
|
|
1508
|
+
export declare class DefaultApi extends BaseAPI {
|
|
1509
|
+
/**
|
|
1510
|
+
*
|
|
1511
|
+
* @param {string | null} [code]
|
|
1512
|
+
* @param {string | null} [error]
|
|
1513
|
+
* @param {*} [options] Override http request option.
|
|
1514
|
+
* @throws {RequiredError}
|
|
1515
|
+
*/
|
|
1516
|
+
callback(code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
1517
|
+
/**
|
|
1518
|
+
*
|
|
1519
|
+
* @param {*} [options] Override http request option.
|
|
1520
|
+
* @throws {RequiredError}
|
|
1521
|
+
*/
|
|
1522
|
+
initiateLogin(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
1523
|
+
}
|
|
841
1524
|
/**
|
|
842
1525
|
* PlayerApi - axios parameter creator
|
|
843
1526
|
*/
|
|
@@ -849,7 +1532,7 @@ export declare const PlayerApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
849
1532
|
* @param {*} [options] Override http request option.
|
|
850
1533
|
* @throws {RequiredError}
|
|
851
1534
|
*/
|
|
852
|
-
|
|
1535
|
+
getPlayer1: (uuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
853
1536
|
};
|
|
854
1537
|
/**
|
|
855
1538
|
* PlayerApi - functional programming interface
|
|
@@ -862,7 +1545,7 @@ export declare const PlayerApiFp: (configuration?: Configuration) => {
|
|
|
862
1545
|
* @param {*} [options] Override http request option.
|
|
863
1546
|
* @throws {RequiredError}
|
|
864
1547
|
*/
|
|
865
|
-
|
|
1548
|
+
getPlayer1(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerGetPlayerInformation>>;
|
|
866
1549
|
};
|
|
867
1550
|
/**
|
|
868
1551
|
* PlayerApi - factory interface
|
|
@@ -875,7 +1558,7 @@ export declare const PlayerApiFactory: (configuration?: Configuration, basePath?
|
|
|
875
1558
|
* @param {*} [options] Override http request option.
|
|
876
1559
|
* @throws {RequiredError}
|
|
877
1560
|
*/
|
|
878
|
-
|
|
1561
|
+
getPlayer1(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise<PlayerGetPlayerInformation>;
|
|
879
1562
|
};
|
|
880
1563
|
/**
|
|
881
1564
|
* PlayerApi - object-oriented interface
|
|
@@ -888,28 +1571,12 @@ export declare class PlayerApi extends BaseAPI {
|
|
|
888
1571
|
* @param {*} [options] Override http request option.
|
|
889
1572
|
* @throws {RequiredError}
|
|
890
1573
|
*/
|
|
891
|
-
|
|
1574
|
+
getPlayer1(uuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PlayerGetPlayerInformation, any, {}>>;
|
|
892
1575
|
}
|
|
893
1576
|
/**
|
|
894
1577
|
* PunishmentApi - axios parameter creator
|
|
895
1578
|
*/
|
|
896
1579
|
export declare const PunishmentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
897
|
-
/**
|
|
898
|
-
* Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
|
|
899
|
-
* @summary Apply a punishment
|
|
900
|
-
* @param {ApplyPunishmentRequest} applyPunishmentRequest
|
|
901
|
-
* @param {*} [options] Override http request option.
|
|
902
|
-
* @throws {RequiredError}
|
|
903
|
-
*/
|
|
904
|
-
applyPunishment: (applyPunishmentRequest: ApplyPunishmentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
905
|
-
/**
|
|
906
|
-
* Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
|
|
907
|
-
* @summary Create a punishment draft
|
|
908
|
-
* @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
|
|
909
|
-
* @param {*} [options] Override http request option.
|
|
910
|
-
* @throws {RequiredError}
|
|
911
|
-
*/
|
|
912
|
-
createPunishmentDraft: (createPunishmentDraftRequest: CreatePunishmentDraftRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
913
1580
|
/**
|
|
914
1581
|
* Retrieve duration information for each punishment type and severity level (1-10)
|
|
915
1582
|
* @summary Get punishment severities
|
|
@@ -927,7 +1594,7 @@ export declare const PunishmentApiAxiosParamCreator: (configuration?: Configurat
|
|
|
927
1594
|
* @param {*} [options] Override http request option.
|
|
928
1595
|
* @throws {RequiredError}
|
|
929
1596
|
*/
|
|
930
|
-
|
|
1597
|
+
getPunishments1: (uuid?: string | null, username?: string | null, type?: Array<string> | null, since?: number | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
931
1598
|
/**
|
|
932
1599
|
* Retrieve all active punishments associated with an IP address
|
|
933
1600
|
* @summary Get punishments by IP address
|
|
@@ -957,22 +1624,6 @@ export declare const PunishmentApiAxiosParamCreator: (configuration?: Configurat
|
|
|
957
1624
|
* PunishmentApi - functional programming interface
|
|
958
1625
|
*/
|
|
959
1626
|
export declare const PunishmentApiFp: (configuration?: Configuration) => {
|
|
960
|
-
/**
|
|
961
|
-
* Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
|
|
962
|
-
* @summary Apply a punishment
|
|
963
|
-
* @param {ApplyPunishmentRequest} applyPunishmentRequest
|
|
964
|
-
* @param {*} [options] Override http request option.
|
|
965
|
-
* @throws {RequiredError}
|
|
966
|
-
*/
|
|
967
|
-
applyPunishment(applyPunishmentRequest: ApplyPunishmentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplyPunishmentResponse>>;
|
|
968
|
-
/**
|
|
969
|
-
* Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
|
|
970
|
-
* @summary Create a punishment draft
|
|
971
|
-
* @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
|
|
972
|
-
* @param {*} [options] Override http request option.
|
|
973
|
-
* @throws {RequiredError}
|
|
974
|
-
*/
|
|
975
|
-
createPunishmentDraft(createPunishmentDraftRequest: CreatePunishmentDraftRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PunishmentDraftResponse>>;
|
|
976
1627
|
/**
|
|
977
1628
|
* Retrieve duration information for each punishment type and severity level (1-10)
|
|
978
1629
|
* @summary Get punishment severities
|
|
@@ -990,7 +1641,7 @@ export declare const PunishmentApiFp: (configuration?: Configuration) => {
|
|
|
990
1641
|
* @param {*} [options] Override http request option.
|
|
991
1642
|
* @throws {RequiredError}
|
|
992
1643
|
*/
|
|
993
|
-
|
|
1644
|
+
getPunishments1(uuid?: string | null, username?: string | null, type?: Array<string> | null, since?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PunishmentGetPunishmentResponse>>>;
|
|
994
1645
|
/**
|
|
995
1646
|
* Retrieve all active punishments associated with an IP address
|
|
996
1647
|
* @summary Get punishments by IP address
|
|
@@ -1020,22 +1671,6 @@ export declare const PunishmentApiFp: (configuration?: Configuration) => {
|
|
|
1020
1671
|
* PunishmentApi - factory interface
|
|
1021
1672
|
*/
|
|
1022
1673
|
export declare const PunishmentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1023
|
-
/**
|
|
1024
|
-
* Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
|
|
1025
|
-
* @summary Apply a punishment
|
|
1026
|
-
* @param {ApplyPunishmentRequest} applyPunishmentRequest
|
|
1027
|
-
* @param {*} [options] Override http request option.
|
|
1028
|
-
* @throws {RequiredError}
|
|
1029
|
-
*/
|
|
1030
|
-
applyPunishment(applyPunishmentRequest: ApplyPunishmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApplyPunishmentResponse>;
|
|
1031
|
-
/**
|
|
1032
|
-
* Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
|
|
1033
|
-
* @summary Create a punishment draft
|
|
1034
|
-
* @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
|
|
1035
|
-
* @param {*} [options] Override http request option.
|
|
1036
|
-
* @throws {RequiredError}
|
|
1037
|
-
*/
|
|
1038
|
-
createPunishmentDraft(createPunishmentDraftRequest: CreatePunishmentDraftRequest, options?: RawAxiosRequestConfig): AxiosPromise<PunishmentDraftResponse>;
|
|
1039
1674
|
/**
|
|
1040
1675
|
* Retrieve duration information for each punishment type and severity level (1-10)
|
|
1041
1676
|
* @summary Get punishment severities
|
|
@@ -1053,7 +1688,7 @@ export declare const PunishmentApiFactory: (configuration?: Configuration, baseP
|
|
|
1053
1688
|
* @param {*} [options] Override http request option.
|
|
1054
1689
|
* @throws {RequiredError}
|
|
1055
1690
|
*/
|
|
1056
|
-
|
|
1691
|
+
getPunishments1(uuid?: string | null, username?: string | null, type?: Array<string> | null, since?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<PunishmentGetPunishmentResponse>>;
|
|
1057
1692
|
/**
|
|
1058
1693
|
* Retrieve all active punishments associated with an IP address
|
|
1059
1694
|
* @summary Get punishments by IP address
|
|
@@ -1083,22 +1718,6 @@ export declare const PunishmentApiFactory: (configuration?: Configuration, baseP
|
|
|
1083
1718
|
* PunishmentApi - object-oriented interface
|
|
1084
1719
|
*/
|
|
1085
1720
|
export declare class PunishmentApi extends BaseAPI {
|
|
1086
|
-
/**
|
|
1087
|
-
* Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
|
|
1088
|
-
* @summary Apply a punishment
|
|
1089
|
-
* @param {ApplyPunishmentRequest} applyPunishmentRequest
|
|
1090
|
-
* @param {*} [options] Override http request option.
|
|
1091
|
-
* @throws {RequiredError}
|
|
1092
|
-
*/
|
|
1093
|
-
applyPunishment(applyPunishmentRequest: ApplyPunishmentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApplyPunishmentResponse, any, {}>>;
|
|
1094
|
-
/**
|
|
1095
|
-
* Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
|
|
1096
|
-
* @summary Create a punishment draft
|
|
1097
|
-
* @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
|
|
1098
|
-
* @param {*} [options] Override http request option.
|
|
1099
|
-
* @throws {RequiredError}
|
|
1100
|
-
*/
|
|
1101
|
-
createPunishmentDraft(createPunishmentDraftRequest: CreatePunishmentDraftRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PunishmentDraftResponse, any, {}>>;
|
|
1102
1721
|
/**
|
|
1103
1722
|
* Retrieve duration information for each punishment type and severity level (1-10)
|
|
1104
1723
|
* @summary Get punishment severities
|
|
@@ -1116,7 +1735,7 @@ export declare class PunishmentApi extends BaseAPI {
|
|
|
1116
1735
|
* @param {*} [options] Override http request option.
|
|
1117
1736
|
* @throws {RequiredError}
|
|
1118
1737
|
*/
|
|
1119
|
-
|
|
1738
|
+
getPunishments1(uuid?: string | null, username?: string | null, type?: Array<string> | null, since?: number | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PunishmentGetPunishmentResponse[], any, {}>>;
|
|
1120
1739
|
/**
|
|
1121
1740
|
* Retrieve all active punishments associated with an IP address
|
|
1122
1741
|
* @summary Get punishments by IP address
|