@rebornteam/reborn-api 3.0.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +7 -0
- package/README.md +9 -2
- package/api.ts +230 -149
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +190 -146
- package/dist/api.js +45 -23
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +190 -146
- package/dist/esm/api.js +43 -22
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AdminApplyPunishmentRequest.md +3 -3
- package/docs/AdminApplyPunishmentResponse.md +1 -1
- package/docs/AdminApplyPunishmentResult.md +6 -6
- package/docs/AdminClientCredentialResponse.md +6 -6
- package/docs/AdminConnectionBypassResponse.md +4 -4
- package/docs/AdminConnectionCheckResult.md +7 -3
- package/docs/AdminCreatePunishmentDraftRequest.md +3 -3
- package/docs/AdminDashboardConnectionResponse.md +2 -2
- package/docs/AdminIpSearchResult.md +2 -2
- package/docs/AdminPagedConnectionResponse.md +5 -5
- package/docs/AdminPagedPlayerResponse.md +5 -5
- package/docs/AdminPagedPunishmentResponse.md +5 -5
- package/docs/AdminPlayerDetailResponse.md +7 -7
- package/docs/AdminPlayerSearchResult.md +1 -1
- package/docs/AdminPlayerSummary.md +6 -6
- package/docs/AdminPunishmentDraftResponse.md +1 -1
- package/docs/AdminPunishmentEvaluation.md +9 -9
- package/docs/AdminPunishmentListItem.md +2 -2
- package/docs/AdminPunishmentSearchResponse.md +3 -3
- package/docs/AdminPunishmentsApi.md +2 -2
- package/docs/AdminUsernameHistoryEntry.md +2 -2
- package/docs/ConnectionGetConnectionDetailsResponse.md +9 -7
- package/docs/ConnectionResult.md +25 -0
- package/docs/ConnectionResultResultCode.md +20 -0
- package/docs/GameType.md +12 -0
- package/docs/PlayerGetPlayerInformation.md +4 -4
- package/docs/PunishmentApi.md +4 -4
- package/docs/PunishmentGetPunishmentResponse.md +6 -6
- package/docs/PunishmentSeveritiesResponse.md +1 -1
- package/docs/PunishmentSeveritiesResponsePunishmentTypeInfo.md +2 -2
- package/docs/PunishmentSeveritiesResponseSeverityInfo.md +2 -2
- package/docs/PunishmentTargetType.md +10 -0
- package/docs/PunishmentType.md +12 -0
- package/docs/Region.md +12 -0
- package/docs/SearchKind.md +11 -0
- package/docs/ServerRegisterRequest.md +2 -2
- package/docs/ServerSessionDTO.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
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: 3.0
|
|
7
|
+
* The version of the OpenAPI document: 3.2.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,11 +34,11 @@ export interface AdminApplyPunishmentRequest {
|
|
|
34
34
|
/**
|
|
35
35
|
* Punishment type
|
|
36
36
|
*/
|
|
37
|
-
'type':
|
|
37
|
+
'type': PunishmentType;
|
|
38
38
|
/**
|
|
39
39
|
* Severity level: 1=Minor, 2=Moderate, 3=Severe, 4=Critical
|
|
40
40
|
*/
|
|
41
|
-
'severity'
|
|
41
|
+
'severity': number;
|
|
42
42
|
/**
|
|
43
43
|
* Reason for the punishment
|
|
44
44
|
*/
|
|
@@ -50,20 +50,13 @@ export interface AdminApplyPunishmentRequest {
|
|
|
50
50
|
/**
|
|
51
51
|
* Force the punishment to be permanent regardless of the target\'s current score
|
|
52
52
|
*/
|
|
53
|
-
'forcePermanent'
|
|
53
|
+
'forcePermanent': boolean;
|
|
54
54
|
/**
|
|
55
55
|
* Internal notes visible only to administrators — not shown to the punished player
|
|
56
56
|
*/
|
|
57
57
|
'notes'?: string | null;
|
|
58
58
|
}
|
|
59
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
60
|
|
|
68
61
|
/**
|
|
69
62
|
* Batch punishment apply result — one result per target
|
|
@@ -72,7 +65,7 @@ export interface AdminApplyPunishmentResponse {
|
|
|
72
65
|
/**
|
|
73
66
|
* Ordered list of results, one per target in the request
|
|
74
67
|
*/
|
|
75
|
-
'results'
|
|
68
|
+
'results': Array<AdminApplyPunishmentResult>;
|
|
76
69
|
}
|
|
77
70
|
/**
|
|
78
71
|
* Result of applying a punishment to a single target
|
|
@@ -81,32 +74,34 @@ export interface AdminApplyPunishmentResult {
|
|
|
81
74
|
/**
|
|
82
75
|
* The target this result applies to
|
|
83
76
|
*/
|
|
84
|
-
'target'
|
|
77
|
+
'target': AdminPunishmentTarget;
|
|
85
78
|
/**
|
|
86
79
|
* ID of the created punishment record
|
|
87
80
|
*/
|
|
88
|
-
'punishmentId'
|
|
81
|
+
'punishmentId': number;
|
|
89
82
|
/**
|
|
90
83
|
* Punishment type applied
|
|
91
84
|
*/
|
|
92
|
-
'type'
|
|
85
|
+
'type': PunishmentType;
|
|
93
86
|
/**
|
|
94
87
|
* Severity level applied
|
|
95
88
|
*/
|
|
96
|
-
'severity'
|
|
89
|
+
'severity': number;
|
|
97
90
|
/**
|
|
98
91
|
* Updated punishment score after applying
|
|
99
92
|
*/
|
|
100
|
-
'newScore'
|
|
93
|
+
'newScore': number;
|
|
101
94
|
/**
|
|
102
95
|
* Whether the punishment was made permanent
|
|
103
96
|
*/
|
|
104
|
-
'isPermanent'
|
|
97
|
+
'isPermanent': boolean;
|
|
105
98
|
/**
|
|
106
99
|
* When the punishment expires — null if permanent or a WARNING
|
|
107
100
|
*/
|
|
108
101
|
'expiresAt'?: string | null;
|
|
109
102
|
}
|
|
103
|
+
|
|
104
|
+
|
|
110
105
|
/**
|
|
111
106
|
* Client credential response
|
|
112
107
|
*/
|
|
@@ -114,11 +109,11 @@ export interface AdminClientCredentialResponse {
|
|
|
114
109
|
/**
|
|
115
110
|
* Unique identifier for the client credential
|
|
116
111
|
*/
|
|
117
|
-
'id'
|
|
112
|
+
'id': number;
|
|
118
113
|
/**
|
|
119
114
|
* Client ID used for authentication
|
|
120
115
|
*/
|
|
121
|
-
'clientId'
|
|
116
|
+
'clientId': string;
|
|
122
117
|
/**
|
|
123
118
|
* Client secret (only returned on generation/rotation, null otherwise)
|
|
124
119
|
*/
|
|
@@ -126,19 +121,19 @@ export interface AdminClientCredentialResponse {
|
|
|
126
121
|
/**
|
|
127
122
|
* Human-readable name for the client
|
|
128
123
|
*/
|
|
129
|
-
'name'
|
|
124
|
+
'name': string;
|
|
130
125
|
/**
|
|
131
126
|
* Optional description of the client\'s purpose
|
|
132
127
|
*/
|
|
133
|
-
'description'
|
|
128
|
+
'description': string;
|
|
134
129
|
/**
|
|
135
130
|
* Whether the client credential is currently enabled
|
|
136
131
|
*/
|
|
137
|
-
'enabled'
|
|
132
|
+
'enabled': boolean;
|
|
138
133
|
/**
|
|
139
134
|
* Timestamp when the credential was created (ISO-8601 format)
|
|
140
135
|
*/
|
|
141
|
-
'createdAt'
|
|
136
|
+
'createdAt': string;
|
|
142
137
|
/**
|
|
143
138
|
* Timestamp when the credential expires (ISO-8601 format). Null means the credential never expires.
|
|
144
139
|
*/
|
|
@@ -151,19 +146,19 @@ export interface AdminConnectionBypassResponse {
|
|
|
151
146
|
/**
|
|
152
147
|
* Unique identifier for the bypass
|
|
153
148
|
*/
|
|
154
|
-
'id'
|
|
149
|
+
'id': number;
|
|
155
150
|
/**
|
|
156
151
|
* IP address that is bypassed
|
|
157
152
|
*/
|
|
158
|
-
'ipAddress'
|
|
153
|
+
'ipAddress': string;
|
|
159
154
|
/**
|
|
160
155
|
* Timestamp when the bypass expires (ISO-8601 format)
|
|
161
156
|
*/
|
|
162
|
-
'expiresAt'
|
|
157
|
+
'expiresAt': string;
|
|
163
158
|
/**
|
|
164
159
|
* Timestamp when the bypass was created (ISO-8601 format)
|
|
165
160
|
*/
|
|
166
|
-
'createdAt'
|
|
161
|
+
'createdAt': string;
|
|
167
162
|
}
|
|
168
163
|
/**
|
|
169
164
|
* Result from a single VPN detection service for a given IP address
|
|
@@ -172,15 +167,23 @@ export interface AdminConnectionCheckResult {
|
|
|
172
167
|
/**
|
|
173
168
|
* Service identifier
|
|
174
169
|
*/
|
|
175
|
-
'service'
|
|
170
|
+
'service': string;
|
|
176
171
|
/**
|
|
177
172
|
* Whether this service flagged the IP as a VPN, proxy, or Tor exit node
|
|
178
173
|
*/
|
|
179
|
-
'result'
|
|
174
|
+
'result': boolean;
|
|
180
175
|
/**
|
|
181
176
|
* When this check was last performed
|
|
182
177
|
*/
|
|
183
|
-
'checkedAt'
|
|
178
|
+
'checkedAt': string;
|
|
179
|
+
/**
|
|
180
|
+
* City reported by this service, if available
|
|
181
|
+
*/
|
|
182
|
+
'city'?: string | null;
|
|
183
|
+
/**
|
|
184
|
+
* Country code reported by this service, if available
|
|
185
|
+
*/
|
|
186
|
+
'country'?: string | null;
|
|
184
187
|
}
|
|
185
188
|
/**
|
|
186
189
|
* Request to evaluate the impact of a punishment across one or more targets before applying
|
|
@@ -193,11 +196,11 @@ export interface AdminCreatePunishmentDraftRequest {
|
|
|
193
196
|
/**
|
|
194
197
|
* Punishment type
|
|
195
198
|
*/
|
|
196
|
-
'type':
|
|
199
|
+
'type': PunishmentType;
|
|
197
200
|
/**
|
|
198
201
|
* Severity level: 1=Minor, 2=Moderate, 3=Severe, 4=Critical
|
|
199
202
|
*/
|
|
200
|
-
'severity'
|
|
203
|
+
'severity': number;
|
|
201
204
|
/**
|
|
202
205
|
* Reason for the punishment (not used in evaluation, required for apply)
|
|
203
206
|
*/
|
|
@@ -209,21 +212,14 @@ export interface AdminCreatePunishmentDraftRequest {
|
|
|
209
212
|
/**
|
|
210
213
|
* Force the punishment to be permanent regardless of the target\'s current score
|
|
211
214
|
*/
|
|
212
|
-
'forcePermanent'
|
|
215
|
+
'forcePermanent': boolean;
|
|
213
216
|
}
|
|
214
217
|
|
|
215
|
-
export const AdminCreatePunishmentDraftRequestTypeEnum = {
|
|
216
|
-
Ban: 'BAN',
|
|
217
|
-
Mute: 'MUTE',
|
|
218
|
-
Warning: 'WARNING'
|
|
219
|
-
} as const;
|
|
220
|
-
|
|
221
|
-
export type AdminCreatePunishmentDraftRequestTypeEnum = typeof AdminCreatePunishmentDraftRequestTypeEnum[keyof typeof AdminCreatePunishmentDraftRequestTypeEnum];
|
|
222
218
|
|
|
223
219
|
export interface AdminDashboardConnectionResponse {
|
|
224
220
|
'id': number;
|
|
225
221
|
'ipAddress': string;
|
|
226
|
-
'location'
|
|
222
|
+
'location'?: string | null;
|
|
227
223
|
'isVpn': boolean;
|
|
228
224
|
'isBypassed': boolean;
|
|
229
225
|
'bypassExpiresAt'?: string | null;
|
|
@@ -234,7 +230,7 @@ export interface AdminDashboardConnectionResponse {
|
|
|
234
230
|
/**
|
|
235
231
|
* Results from each VPN detection service for this IP address
|
|
236
232
|
*/
|
|
237
|
-
'results'
|
|
233
|
+
'results': Array<AdminConnectionCheckResult>;
|
|
238
234
|
}
|
|
239
235
|
export interface AdminGetDashboardStats {
|
|
240
236
|
'totalPlayers': number;
|
|
@@ -248,11 +244,11 @@ export interface AdminIpSearchResult {
|
|
|
248
244
|
/**
|
|
249
245
|
* IP address
|
|
250
246
|
*/
|
|
251
|
-
'ipAddress'
|
|
247
|
+
'ipAddress': string;
|
|
252
248
|
/**
|
|
253
249
|
* Players ever seen on this IP
|
|
254
250
|
*/
|
|
255
|
-
'players'
|
|
251
|
+
'players': Array<AdminPlayerSearchResult>;
|
|
256
252
|
}
|
|
257
253
|
/**
|
|
258
254
|
* Paginated connection list response
|
|
@@ -261,23 +257,23 @@ export interface AdminPagedConnectionResponse {
|
|
|
261
257
|
/**
|
|
262
258
|
* Connections on the current page
|
|
263
259
|
*/
|
|
264
|
-
'data'
|
|
260
|
+
'data': Array<AdminDashboardConnectionResponse>;
|
|
265
261
|
/**
|
|
266
262
|
* Total number of connections matching the filters
|
|
267
263
|
*/
|
|
268
|
-
'total'
|
|
264
|
+
'total': number;
|
|
269
265
|
/**
|
|
270
266
|
* Current page (1-indexed)
|
|
271
267
|
*/
|
|
272
|
-
'page'
|
|
268
|
+
'page': number;
|
|
273
269
|
/**
|
|
274
270
|
* Page size
|
|
275
271
|
*/
|
|
276
|
-
'limit'
|
|
272
|
+
'limit': number;
|
|
277
273
|
/**
|
|
278
274
|
* Total number of pages
|
|
279
275
|
*/
|
|
280
|
-
'totalPages'
|
|
276
|
+
'totalPages': number;
|
|
281
277
|
}
|
|
282
278
|
/**
|
|
283
279
|
* Paginated player list response
|
|
@@ -286,23 +282,23 @@ export interface AdminPagedPlayerResponse {
|
|
|
286
282
|
/**
|
|
287
283
|
* Players on the current page
|
|
288
284
|
*/
|
|
289
|
-
'data'
|
|
285
|
+
'data': Array<AdminPlayerSummary>;
|
|
290
286
|
/**
|
|
291
287
|
* Total number of players matching the search filter
|
|
292
288
|
*/
|
|
293
|
-
'total'
|
|
289
|
+
'total': number;
|
|
294
290
|
/**
|
|
295
291
|
* Current page (1-indexed)
|
|
296
292
|
*/
|
|
297
|
-
'page'
|
|
293
|
+
'page': number;
|
|
298
294
|
/**
|
|
299
295
|
* Page size
|
|
300
296
|
*/
|
|
301
|
-
'limit'
|
|
297
|
+
'limit': number;
|
|
302
298
|
/**
|
|
303
299
|
* Total number of pages
|
|
304
300
|
*/
|
|
305
|
-
'totalPages'
|
|
301
|
+
'totalPages': number;
|
|
306
302
|
}
|
|
307
303
|
/**
|
|
308
304
|
* Paginated punishment list response
|
|
@@ -311,23 +307,23 @@ export interface AdminPagedPunishmentResponse {
|
|
|
311
307
|
/**
|
|
312
308
|
* Punishments on the current page
|
|
313
309
|
*/
|
|
314
|
-
'data'
|
|
310
|
+
'data': Array<AdminPunishmentListItem>;
|
|
315
311
|
/**
|
|
316
312
|
* Total number of punishments matching the filters
|
|
317
313
|
*/
|
|
318
|
-
'total'
|
|
314
|
+
'total': number;
|
|
319
315
|
/**
|
|
320
316
|
* Current page (1-indexed)
|
|
321
317
|
*/
|
|
322
|
-
'page'
|
|
318
|
+
'page': number;
|
|
323
319
|
/**
|
|
324
320
|
* Page size
|
|
325
321
|
*/
|
|
326
|
-
'limit'
|
|
322
|
+
'limit': number;
|
|
327
323
|
/**
|
|
328
324
|
* Total number of pages
|
|
329
325
|
*/
|
|
330
|
-
'totalPages'
|
|
326
|
+
'totalPages': number;
|
|
331
327
|
}
|
|
332
328
|
/**
|
|
333
329
|
* Full player detail including punishment history and all known usernames
|
|
@@ -336,11 +332,11 @@ export interface AdminPlayerDetailResponse {
|
|
|
336
332
|
/**
|
|
337
333
|
* Internal player ID
|
|
338
334
|
*/
|
|
339
|
-
'id'
|
|
335
|
+
'id': number;
|
|
340
336
|
/**
|
|
341
337
|
* Player Minecraft UUID
|
|
342
338
|
*/
|
|
343
|
-
'uuid'
|
|
339
|
+
'uuid': string;
|
|
344
340
|
/**
|
|
345
341
|
* Most recently seen username
|
|
346
342
|
*/
|
|
@@ -348,11 +344,11 @@ export interface AdminPlayerDetailResponse {
|
|
|
348
344
|
/**
|
|
349
345
|
* Whether this player still has first-join status
|
|
350
346
|
*/
|
|
351
|
-
'firstJoin'
|
|
347
|
+
'firstJoin': boolean;
|
|
352
348
|
/**
|
|
353
349
|
* Timestamp of first connection (ISO-8601)
|
|
354
350
|
*/
|
|
355
|
-
'firstLogin'
|
|
351
|
+
'firstLogin': string;
|
|
356
352
|
/**
|
|
357
353
|
* Timestamp of most recent connection (ISO-8601)
|
|
358
354
|
*/
|
|
@@ -360,15 +356,15 @@ export interface AdminPlayerDetailResponse {
|
|
|
360
356
|
/**
|
|
361
357
|
* Raw punishment score
|
|
362
358
|
*/
|
|
363
|
-
'punishmentPointsRaw'
|
|
359
|
+
'punishmentPointsRaw': number;
|
|
364
360
|
/**
|
|
365
361
|
* Punishment score as a percentage
|
|
366
362
|
*/
|
|
367
|
-
'punishmentPointsPercent'
|
|
363
|
+
'punishmentPointsPercent': number;
|
|
368
364
|
/**
|
|
369
365
|
* All usernames this player has used, newest first
|
|
370
366
|
*/
|
|
371
|
-
'usernameHistory'
|
|
367
|
+
'usernameHistory': Array<AdminUsernameHistoryEntry>;
|
|
372
368
|
}
|
|
373
369
|
/**
|
|
374
370
|
* Lightweight player reference used in search results and punishment evaluations
|
|
@@ -377,7 +373,7 @@ export interface AdminPlayerSearchResult {
|
|
|
377
373
|
/**
|
|
378
374
|
* Player Minecraft UUID
|
|
379
375
|
*/
|
|
380
|
-
'uuid'
|
|
376
|
+
'uuid': string;
|
|
381
377
|
/**
|
|
382
378
|
* Most recently seen username, null if never recorded
|
|
383
379
|
*/
|
|
@@ -390,11 +386,11 @@ export interface AdminPlayerSummary {
|
|
|
390
386
|
/**
|
|
391
387
|
* Internal player ID
|
|
392
388
|
*/
|
|
393
|
-
'id'
|
|
389
|
+
'id': number;
|
|
394
390
|
/**
|
|
395
391
|
* Player Minecraft UUID
|
|
396
392
|
*/
|
|
397
|
-
'uuid'
|
|
393
|
+
'uuid': string;
|
|
398
394
|
/**
|
|
399
395
|
* Most recently seen username, null if never recorded
|
|
400
396
|
*/
|
|
@@ -402,11 +398,11 @@ export interface AdminPlayerSummary {
|
|
|
402
398
|
/**
|
|
403
399
|
* Whether this player still has first-join status
|
|
404
400
|
*/
|
|
405
|
-
'firstJoin'
|
|
401
|
+
'firstJoin': boolean;
|
|
406
402
|
/**
|
|
407
403
|
* Timestamp of first connection (ISO-8601)
|
|
408
404
|
*/
|
|
409
|
-
'firstLogin'
|
|
405
|
+
'firstLogin': string;
|
|
410
406
|
/**
|
|
411
407
|
* Timestamp of most recent connection (ISO-8601)
|
|
412
408
|
*/
|
|
@@ -414,11 +410,11 @@ export interface AdminPlayerSummary {
|
|
|
414
410
|
/**
|
|
415
411
|
* Raw punishment score (sum of weighted punishment values)
|
|
416
412
|
*/
|
|
417
|
-
'punishmentPointsRaw'
|
|
413
|
+
'punishmentPointsRaw': number;
|
|
418
414
|
/**
|
|
419
415
|
* Punishment score as a percentage. Values above 100 indicate future punishments should be permanent.
|
|
420
416
|
*/
|
|
421
|
-
'punishmentPointsPercent'
|
|
417
|
+
'punishmentPointsPercent': number;
|
|
422
418
|
}
|
|
423
419
|
/**
|
|
424
420
|
* Batch punishment draft — one evaluation per target
|
|
@@ -427,7 +423,7 @@ export interface AdminPunishmentDraftResponse {
|
|
|
427
423
|
/**
|
|
428
424
|
* Ordered list of evaluations, one per target in the request
|
|
429
425
|
*/
|
|
430
|
-
'evaluations'
|
|
426
|
+
'evaluations': Array<AdminPunishmentEvaluation>;
|
|
431
427
|
}
|
|
432
428
|
/**
|
|
433
429
|
* Evaluation of a punishment\'s impact on a single target
|
|
@@ -436,27 +432,27 @@ export interface AdminPunishmentEvaluation {
|
|
|
436
432
|
/**
|
|
437
433
|
* The target this evaluation applies to
|
|
438
434
|
*/
|
|
439
|
-
'target'
|
|
435
|
+
'target': AdminPunishmentTarget;
|
|
440
436
|
/**
|
|
441
437
|
* Players affected — one player for UUID targets, all players on the IP for connection targets
|
|
442
438
|
*/
|
|
443
|
-
'affectedPlayers'
|
|
439
|
+
'affectedPlayers': Array<AdminPlayerSearchResult>;
|
|
444
440
|
/**
|
|
445
441
|
* Current punishment score before applying this punishment (0–100+)
|
|
446
442
|
*/
|
|
447
|
-
'currentScore'
|
|
443
|
+
'currentScore': number;
|
|
448
444
|
/**
|
|
449
445
|
* Points this punishment would add to the score
|
|
450
446
|
*/
|
|
451
|
-
'pointsToAdd'
|
|
447
|
+
'pointsToAdd': number;
|
|
452
448
|
/**
|
|
453
449
|
* Projected score after applying this punishment
|
|
454
450
|
*/
|
|
455
|
-
'newScore'
|
|
451
|
+
'newScore': number;
|
|
456
452
|
/**
|
|
457
453
|
* Whether this punishment would be permanent based on the current score threshold
|
|
458
454
|
*/
|
|
459
|
-
'willBePermanent'
|
|
455
|
+
'willBePermanent': boolean;
|
|
460
456
|
/**
|
|
461
457
|
* Resolved duration in seconds — null if permanent or a WARNING
|
|
462
458
|
*/
|
|
@@ -464,54 +460,52 @@ export interface AdminPunishmentEvaluation {
|
|
|
464
460
|
/**
|
|
465
461
|
* Number of existing punishments on this target
|
|
466
462
|
*/
|
|
467
|
-
'previousPunishmentCount'
|
|
463
|
+
'previousPunishmentCount': number;
|
|
468
464
|
/**
|
|
469
465
|
* True when the target is an IP address (connection punishment) rather than a player UUID
|
|
470
466
|
*/
|
|
471
|
-
'isConnectionTarget'
|
|
467
|
+
'isConnectionTarget': boolean;
|
|
472
468
|
/**
|
|
473
469
|
* The effective punishment type that will be applied — may differ from the requested type if escalated to BAN at threshold
|
|
474
470
|
*/
|
|
475
|
-
'effectiveType'
|
|
471
|
+
'effectiveType': PunishmentType;
|
|
476
472
|
}
|
|
473
|
+
|
|
474
|
+
|
|
477
475
|
export interface AdminPunishmentListItem {
|
|
478
476
|
'id': number;
|
|
479
477
|
'reason': string;
|
|
480
478
|
'notes'?: string | null;
|
|
481
|
-
'type':
|
|
479
|
+
'type': PunishmentType;
|
|
482
480
|
'severity': number;
|
|
483
481
|
'createdBy': string;
|
|
484
482
|
'expiresAt'?: string | null;
|
|
485
483
|
'createdAt': string;
|
|
486
|
-
'targetType':
|
|
484
|
+
'targetType': PunishmentTargetType;
|
|
487
485
|
'targetUuid'?: string | null;
|
|
488
486
|
'targetUsername'?: string | null;
|
|
489
487
|
'targetIp'?: string | null;
|
|
490
488
|
}
|
|
489
|
+
|
|
490
|
+
|
|
491
491
|
/**
|
|
492
492
|
* Result of a punishment target search — either a list of matching players or a list of matching IP addresses
|
|
493
493
|
*/
|
|
494
494
|
export interface AdminPunishmentSearchResponse {
|
|
495
495
|
/**
|
|
496
|
-
* Search kind —
|
|
496
|
+
* Search kind — PLAYER for UUID/username searches, IP for IP address searches
|
|
497
497
|
*/
|
|
498
|
-
'kind'
|
|
498
|
+
'kind': SearchKind;
|
|
499
499
|
/**
|
|
500
500
|
* Matching players — only populated when kind=\'player\'
|
|
501
501
|
*/
|
|
502
|
-
'players'
|
|
502
|
+
'players': Array<AdminPlayerSearchResult>;
|
|
503
503
|
/**
|
|
504
504
|
* Matching IP addresses with their associated players — only populated when kind=\'ip\'
|
|
505
505
|
*/
|
|
506
|
-
'ipResults'
|
|
506
|
+
'ipResults': Array<AdminIpSearchResult>;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
export const AdminPunishmentSearchResponseKindEnum = {
|
|
510
|
-
Player: 'player',
|
|
511
|
-
Ip: 'ip'
|
|
512
|
-
} as const;
|
|
513
|
-
|
|
514
|
-
export type AdminPunishmentSearchResponseKindEnum = typeof AdminPunishmentSearchResponseKindEnum[keyof typeof AdminPunishmentSearchResponseKindEnum];
|
|
515
509
|
|
|
516
510
|
/**
|
|
517
511
|
* A target for a punishment — either a player UUID or an IP address (mutually exclusive)
|
|
@@ -533,11 +527,11 @@ export interface AdminUsernameHistoryEntry {
|
|
|
533
527
|
/**
|
|
534
528
|
* The username at this point in time
|
|
535
529
|
*/
|
|
536
|
-
'username'
|
|
530
|
+
'username': string;
|
|
537
531
|
/**
|
|
538
532
|
* When this username was first observed (ISO-8601)
|
|
539
533
|
*/
|
|
540
|
-
'changedAt'
|
|
534
|
+
'changedAt': string;
|
|
541
535
|
}
|
|
542
536
|
export interface ChatMessageDTO {
|
|
543
537
|
'id': number;
|
|
@@ -577,23 +571,23 @@ export interface ConnectionGetConnectionDetailsResponse {
|
|
|
577
571
|
/**
|
|
578
572
|
* The analyzed IPv4 address
|
|
579
573
|
*/
|
|
580
|
-
'ipAddress'
|
|
574
|
+
'ipAddress': string;
|
|
581
575
|
/**
|
|
582
576
|
* Approximate geographic location of the IP address. Returns \'Local, N/A\' for localhost or private IPs.
|
|
583
577
|
*/
|
|
584
|
-
'approximateLocation'
|
|
578
|
+
'approximateLocation': string;
|
|
585
579
|
/**
|
|
586
580
|
* Confidence score representing the percentage of VPN detection services that flagged this IP as suspicious. Range: 0.0 (clean) to 100.0 (definitely VPN/proxy).
|
|
587
581
|
*/
|
|
588
|
-
'percentPositive'
|
|
582
|
+
'percentPositive': number;
|
|
589
583
|
/**
|
|
590
584
|
* Total number of VPN detection services successfully queried during the last check.
|
|
591
585
|
*/
|
|
592
|
-
'numberOfChecks'
|
|
586
|
+
'numberOfChecks': number;
|
|
593
587
|
/**
|
|
594
588
|
* Indicates if this IP address has been administratively bypassed.
|
|
595
589
|
*/
|
|
596
|
-
'isBypassed'
|
|
590
|
+
'isBypassed': boolean;
|
|
597
591
|
/**
|
|
598
592
|
* Expiration timestamp for the bypass (ISO-8601 format). Null if not bypassed or bypass is permanent.
|
|
599
593
|
*/
|
|
@@ -601,7 +595,7 @@ export interface ConnectionGetConnectionDetailsResponse {
|
|
|
601
595
|
/**
|
|
602
596
|
* Results from each VPN detection service that checked this IP address
|
|
603
597
|
*/
|
|
604
|
-
'results'
|
|
598
|
+
'results': Array<AdminConnectionCheckResult>;
|
|
605
599
|
/**
|
|
606
600
|
* Player information associated with this connection. Only populated when \'associate_uuid\' query parameter is provided.
|
|
607
601
|
*/
|
|
@@ -609,8 +603,36 @@ export interface ConnectionGetConnectionDetailsResponse {
|
|
|
609
603
|
/**
|
|
610
604
|
* Combined list of active punishments for both the IP address and player UUID (if provided). Only includes non-expired punishments.
|
|
611
605
|
*/
|
|
612
|
-
'punishments'
|
|
606
|
+
'punishments': Array<PunishmentGetPunishmentResponse>;
|
|
607
|
+
/**
|
|
608
|
+
* Join enforcement result. Only populated when \'associate_uuid\' query parameter is provided. Contains the final allow/deny decision and a formatted kick message if denied.
|
|
609
|
+
*/
|
|
610
|
+
'connectionResult'?: ConnectionResult | null;
|
|
613
611
|
}
|
|
612
|
+
/**
|
|
613
|
+
* Join enforcement result. Only populated when \'associate_uuid\' query parameter is provided. Contains the final allow/deny decision and a formatted kick message if denied.
|
|
614
|
+
*/
|
|
615
|
+
export interface ConnectionResult {
|
|
616
|
+
'code': ConnectionResultResultCode;
|
|
617
|
+
'allowed': boolean;
|
|
618
|
+
'message'?: string | null;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
export const ConnectionResultResultCode = {
|
|
624
|
+
Allowed: 'ALLOWED',
|
|
625
|
+
AllowedBypass: 'ALLOWED_BYPASS',
|
|
626
|
+
AllowedPlayerBypass: 'ALLOWED_PLAYER_BYPASS',
|
|
627
|
+
Banned: 'BANNED',
|
|
628
|
+
VpnDetected: 'VPN_DETECTED',
|
|
629
|
+
VpnRetry: 'VPN_RETRY',
|
|
630
|
+
VpnTempBanned: 'VPN_TEMP_BANNED'
|
|
631
|
+
} as const;
|
|
632
|
+
|
|
633
|
+
export type ConnectionResultResultCode = typeof ConnectionResultResultCode[keyof typeof ConnectionResultResultCode];
|
|
634
|
+
|
|
635
|
+
|
|
614
636
|
/**
|
|
615
637
|
* Request to create a connection bypass
|
|
616
638
|
*/
|
|
@@ -624,6 +646,16 @@ export interface CreateBypassRequest {
|
|
|
624
646
|
*/
|
|
625
647
|
'expiresAtEpoch': number;
|
|
626
648
|
}
|
|
649
|
+
|
|
650
|
+
export const GameType = {
|
|
651
|
+
Rotj: 'ROTJ',
|
|
652
|
+
Legacy: 'LEGACY',
|
|
653
|
+
Classic: 'CLASSIC'
|
|
654
|
+
} as const;
|
|
655
|
+
|
|
656
|
+
export type GameType = typeof GameType[keyof typeof GameType];
|
|
657
|
+
|
|
658
|
+
|
|
627
659
|
/**
|
|
628
660
|
* Player information including join history, tracking data, and punishment scoring
|
|
629
661
|
*/
|
|
@@ -631,19 +663,19 @@ export interface PlayerGetPlayerInformation {
|
|
|
631
663
|
/**
|
|
632
664
|
* Indicates whether this is the player\'s first time joining the server.
|
|
633
665
|
*/
|
|
634
|
-
'firstJoin'
|
|
666
|
+
'firstJoin': boolean;
|
|
635
667
|
/**
|
|
636
668
|
* Timestamp of when the player first connected to the server (ISO-8601 format).
|
|
637
669
|
*/
|
|
638
|
-
'firstLogin'
|
|
670
|
+
'firstLogin': string;
|
|
639
671
|
/**
|
|
640
672
|
* Raw punishment score calculated as: SUM((base_weight × severity/10)). Used for tracking overall punishment severity.
|
|
641
673
|
*/
|
|
642
|
-
'punishmentPointsRaw'
|
|
674
|
+
'punishmentPointsRaw': number;
|
|
643
675
|
/**
|
|
644
676
|
* Punishment score as a percentage (0-100). When >100% before applying a new punishment, the new punishment should be made permanent.
|
|
645
677
|
*/
|
|
646
|
-
'punishmentPointsPercent'
|
|
678
|
+
'punishmentPointsPercent': number;
|
|
647
679
|
}
|
|
648
680
|
/**
|
|
649
681
|
* Punishment information including reason, type, creator, and expiration
|
|
@@ -652,27 +684,27 @@ export interface PunishmentGetPunishmentResponse {
|
|
|
652
684
|
/**
|
|
653
685
|
* Unique identifier for the punishment
|
|
654
686
|
*/
|
|
655
|
-
'id'
|
|
687
|
+
'id': number;
|
|
656
688
|
/**
|
|
657
689
|
* Reason for the punishment, shown to the punished player
|
|
658
690
|
*/
|
|
659
|
-
'reason'
|
|
691
|
+
'reason': string;
|
|
660
692
|
/**
|
|
661
693
|
* Internal administrator notes — not shown to the punished player
|
|
662
694
|
*/
|
|
663
695
|
'notes'?: string | null;
|
|
664
696
|
/**
|
|
665
|
-
* Type of punishment
|
|
697
|
+
* Type of punishment
|
|
666
698
|
*/
|
|
667
|
-
'type'
|
|
699
|
+
'type': PunishmentType;
|
|
668
700
|
/**
|
|
669
701
|
* Severity level (1=Minor, 2=Moderate, 3=Severe, 4=Critical)
|
|
670
702
|
*/
|
|
671
|
-
'severity'
|
|
703
|
+
'severity': number;
|
|
672
704
|
/**
|
|
673
705
|
* Username or identifier of the person who created this punishment
|
|
674
706
|
*/
|
|
675
|
-
'createdBy'
|
|
707
|
+
'createdBy': string;
|
|
676
708
|
/**
|
|
677
709
|
* Timestamp when the punishment expires (ISO-8601 format). Null for permanent punishments.
|
|
678
710
|
*/
|
|
@@ -680,8 +712,10 @@ export interface PunishmentGetPunishmentResponse {
|
|
|
680
712
|
/**
|
|
681
713
|
* Timestamp when the punishment was created (ISO-8601 format)
|
|
682
714
|
*/
|
|
683
|
-
'createdAt'
|
|
715
|
+
'createdAt': string;
|
|
684
716
|
}
|
|
717
|
+
|
|
718
|
+
|
|
685
719
|
/**
|
|
686
720
|
* Response containing punishment severity durations for each type
|
|
687
721
|
*/
|
|
@@ -689,7 +723,7 @@ export interface PunishmentSeveritiesResponse {
|
|
|
689
723
|
/**
|
|
690
724
|
* List of punishment types with their severity durations
|
|
691
725
|
*/
|
|
692
|
-
'punishmentTypes'
|
|
726
|
+
'punishmentTypes': Array<PunishmentSeveritiesResponsePunishmentTypeInfo>;
|
|
693
727
|
}
|
|
694
728
|
/**
|
|
695
729
|
* Punishment type with severity information
|
|
@@ -698,12 +732,14 @@ export interface PunishmentSeveritiesResponsePunishmentTypeInfo {
|
|
|
698
732
|
/**
|
|
699
733
|
* Type of punishment
|
|
700
734
|
*/
|
|
701
|
-
'type'
|
|
735
|
+
'type': PunishmentType;
|
|
702
736
|
/**
|
|
703
737
|
* List of severity levels with durations
|
|
704
738
|
*/
|
|
705
|
-
'severities'
|
|
739
|
+
'severities': Array<PunishmentSeveritiesResponseSeverityInfo>;
|
|
706
740
|
}
|
|
741
|
+
|
|
742
|
+
|
|
707
743
|
/**
|
|
708
744
|
* Severity level with duration information
|
|
709
745
|
*/
|
|
@@ -711,13 +747,32 @@ export interface PunishmentSeveritiesResponseSeverityInfo {
|
|
|
711
747
|
/**
|
|
712
748
|
* Severity level
|
|
713
749
|
*/
|
|
714
|
-
'severity'
|
|
750
|
+
'severity': number;
|
|
715
751
|
/**
|
|
716
752
|
* Duration in seconds (0 means no duration)
|
|
717
753
|
*/
|
|
718
|
-
'durationSeconds'
|
|
754
|
+
'durationSeconds': number;
|
|
719
755
|
}
|
|
720
756
|
|
|
757
|
+
export const PunishmentTargetType = {
|
|
758
|
+
Player: 'PLAYER',
|
|
759
|
+
Connection: 'CONNECTION'
|
|
760
|
+
} as const;
|
|
761
|
+
|
|
762
|
+
export type PunishmentTargetType = typeof PunishmentTargetType[keyof typeof PunishmentTargetType];
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
export const PunishmentType = {
|
|
767
|
+
Ban: 'BAN',
|
|
768
|
+
Mute: 'MUTE',
|
|
769
|
+
Warning: 'WARNING'
|
|
770
|
+
} as const;
|
|
771
|
+
|
|
772
|
+
export type PunishmentType = typeof PunishmentType[keyof typeof PunishmentType];
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
|
|
721
776
|
export const Rank = {
|
|
722
777
|
Administrator: 'ADMINISTRATOR',
|
|
723
778
|
Moderator: 'MODERATOR',
|
|
@@ -727,15 +782,39 @@ export const Rank = {
|
|
|
727
782
|
export type Rank = typeof Rank[keyof typeof Rank];
|
|
728
783
|
|
|
729
784
|
|
|
785
|
+
|
|
786
|
+
export const Region = {
|
|
787
|
+
Us: 'US',
|
|
788
|
+
Eu: 'EU',
|
|
789
|
+
Au: 'AU'
|
|
790
|
+
} as const;
|
|
791
|
+
|
|
792
|
+
export type Region = typeof Region[keyof typeof Region];
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* Search kind — PLAYER for UUID/username searches, IP for IP address searches
|
|
797
|
+
*/
|
|
798
|
+
|
|
799
|
+
export const SearchKind = {
|
|
800
|
+
Player: 'PLAYER',
|
|
801
|
+
Ip: 'IP'
|
|
802
|
+
} as const;
|
|
803
|
+
|
|
804
|
+
export type SearchKind = typeof SearchKind[keyof typeof SearchKind];
|
|
805
|
+
|
|
806
|
+
|
|
730
807
|
export interface ServerRegisterRequest {
|
|
731
|
-
'region':
|
|
732
|
-
'gameType':
|
|
808
|
+
'region': Region;
|
|
809
|
+
'gameType': GameType;
|
|
733
810
|
'containerId'?: string | null;
|
|
734
811
|
}
|
|
812
|
+
|
|
813
|
+
|
|
735
814
|
export interface ServerSessionDTO {
|
|
736
815
|
'id': string;
|
|
737
|
-
'region':
|
|
738
|
-
'gameType':
|
|
816
|
+
'region': Region;
|
|
817
|
+
'gameType': GameType;
|
|
739
818
|
'instanceName': string;
|
|
740
819
|
'containerId'?: string | null;
|
|
741
820
|
'startedAt': string;
|
|
@@ -743,6 +822,8 @@ export interface ServerSessionDTO {
|
|
|
743
822
|
'endedAt'?: string | null;
|
|
744
823
|
'online': boolean;
|
|
745
824
|
}
|
|
825
|
+
|
|
826
|
+
|
|
746
827
|
export interface TokenRequest {
|
|
747
828
|
'grant_type'?: string | null;
|
|
748
829
|
'client_id'?: string | null;
|
|
@@ -2106,13 +2187,13 @@ export const AdminPunishmentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
2106
2187
|
* @param {string | null} [uuid] Filter by player UUID
|
|
2107
2188
|
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
2108
2189
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
2109
|
-
* @param {Array<
|
|
2190
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
|
|
2110
2191
|
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
2111
2192
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
2112
2193
|
* @param {*} [options] Override http request option.
|
|
2113
2194
|
* @throws {RequiredError}
|
|
2114
2195
|
*/
|
|
2115
|
-
getPunishments: async (page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<
|
|
2196
|
+
getPunishments: async (page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<PunishmentType> | null, issuedAfter?: number | null, issuedBefore?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2116
2197
|
// verify required parameter 'page' is not null or undefined
|
|
2117
2198
|
assertParamExists('getPunishments', 'page', page)
|
|
2118
2199
|
// verify required parameter 'limit' is not null or undefined
|
|
@@ -2260,13 +2341,13 @@ export const AdminPunishmentsApiFp = function(configuration?: Configuration) {
|
|
|
2260
2341
|
* @param {string | null} [uuid] Filter by player UUID
|
|
2261
2342
|
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
2262
2343
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
2263
|
-
* @param {Array<
|
|
2344
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
|
|
2264
2345
|
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
2265
2346
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
2266
2347
|
* @param {*} [options] Override http request option.
|
|
2267
2348
|
* @throws {RequiredError}
|
|
2268
2349
|
*/
|
|
2269
|
-
async getPunishments(page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<
|
|
2350
|
+
async getPunishments(page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<PunishmentType> | null, issuedAfter?: number | null, issuedBefore?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminPagedPunishmentResponse>> {
|
|
2270
2351
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options);
|
|
2271
2352
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2272
2353
|
const localVarOperationServerBasePath = operationServerMap['AdminPunishmentsApi.getPunishments']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2322,13 +2403,13 @@ export const AdminPunishmentsApiFactory = function (configuration?: Configuratio
|
|
|
2322
2403
|
* @param {string | null} [uuid] Filter by player UUID
|
|
2323
2404
|
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
2324
2405
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
2325
|
-
* @param {Array<
|
|
2406
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
|
|
2326
2407
|
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
2327
2408
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
2328
2409
|
* @param {*} [options] Override http request option.
|
|
2329
2410
|
* @throws {RequiredError}
|
|
2330
2411
|
*/
|
|
2331
|
-
getPunishments(page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<
|
|
2412
|
+
getPunishments(page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<PunishmentType> | null, issuedAfter?: number | null, issuedBefore?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<AdminPagedPunishmentResponse> {
|
|
2332
2413
|
return localVarFp.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(axios, basePath));
|
|
2333
2414
|
},
|
|
2334
2415
|
/**
|
|
@@ -2378,13 +2459,13 @@ export class AdminPunishmentsApi extends BaseAPI {
|
|
|
2378
2459
|
* @param {string | null} [uuid] Filter by player UUID
|
|
2379
2460
|
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
2380
2461
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
2381
|
-
* @param {Array<
|
|
2462
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
|
|
2382
2463
|
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
2383
2464
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
2384
2465
|
* @param {*} [options] Override http request option.
|
|
2385
2466
|
* @throws {RequiredError}
|
|
2386
2467
|
*/
|
|
2387
|
-
public getPunishments(page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<
|
|
2468
|
+
public getPunishments(page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<PunishmentType> | null, issuedAfter?: number | null, issuedBefore?: number | null, options?: RawAxiosRequestConfig) {
|
|
2388
2469
|
return AdminPunishmentsApiFp(this.configuration).getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(this.axios, this.basePath));
|
|
2389
2470
|
}
|
|
2390
2471
|
|
|
@@ -3280,12 +3361,12 @@ export const PunishmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3280
3361
|
* @summary Get punishments by player
|
|
3281
3362
|
* @param {string | null} [uuid] Player UUID
|
|
3282
3363
|
* @param {string | null} [username] Player username
|
|
3283
|
-
* @param {Array<
|
|
3364
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3284
3365
|
* @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
|
|
3285
3366
|
* @param {*} [options] Override http request option.
|
|
3286
3367
|
* @throws {RequiredError}
|
|
3287
3368
|
*/
|
|
3288
|
-
getPunishments1: async (uuid?: string | null, username?: string | null, type?: Array<
|
|
3369
|
+
getPunishments1: async (uuid?: string | null, username?: string | null, type?: Array<PunishmentType> | null, since?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3289
3370
|
const localVarPath = `/v1/punishment`;
|
|
3290
3371
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3291
3372
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3379,13 +3460,13 @@ export const PunishmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3379
3460
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
|
|
3380
3461
|
* @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
|
|
3381
3462
|
* @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
|
|
3382
|
-
* @param {Array<
|
|
3463
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3383
3464
|
* @param {string | null} [uuid] Filter by player UUID
|
|
3384
3465
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
3385
3466
|
* @param {*} [options] Override http request option.
|
|
3386
3467
|
* @throws {RequiredError}
|
|
3387
3468
|
*/
|
|
3388
|
-
getRecentPunishments: async (limit: number, page: number, issuedAfter?: number | null, issuedBefore?: number | null, expiresAfter?: number | null, expiresBefore?: number | null, type?: Array<
|
|
3469
|
+
getRecentPunishments: async (limit: number, page: number, issuedAfter?: number | null, issuedBefore?: number | null, expiresAfter?: number | null, expiresBefore?: number | null, type?: Array<PunishmentType> | null, uuid?: string | null, ipAddress?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3389
3470
|
// verify required parameter 'limit' is not null or undefined
|
|
3390
3471
|
assertParamExists('getRecentPunishments', 'limit', limit)
|
|
3391
3472
|
// verify required parameter 'page' is not null or undefined
|
|
@@ -3479,12 +3560,12 @@ export const PunishmentApiFp = function(configuration?: Configuration) {
|
|
|
3479
3560
|
* @summary Get punishments by player
|
|
3480
3561
|
* @param {string | null} [uuid] Player UUID
|
|
3481
3562
|
* @param {string | null} [username] Player username
|
|
3482
|
-
* @param {Array<
|
|
3563
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3483
3564
|
* @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
|
|
3484
3565
|
* @param {*} [options] Override http request option.
|
|
3485
3566
|
* @throws {RequiredError}
|
|
3486
3567
|
*/
|
|
3487
|
-
async getPunishments1(uuid?: string | null, username?: string | null, type?: Array<
|
|
3568
|
+
async getPunishments1(uuid?: string | null, username?: string | null, type?: Array<PunishmentType> | null, since?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PunishmentGetPunishmentResponse>>> {
|
|
3488
3569
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPunishments1(uuid, username, type, since, options);
|
|
3489
3570
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3490
3571
|
const localVarOperationServerBasePath = operationServerMap['PunishmentApi.getPunishments1']?.[localVarOperationServerIndex]?.url;
|
|
@@ -3512,13 +3593,13 @@ export const PunishmentApiFp = function(configuration?: Configuration) {
|
|
|
3512
3593
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
|
|
3513
3594
|
* @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
|
|
3514
3595
|
* @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
|
|
3515
|
-
* @param {Array<
|
|
3596
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3516
3597
|
* @param {string | null} [uuid] Filter by player UUID
|
|
3517
3598
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
3518
3599
|
* @param {*} [options] Override http request option.
|
|
3519
3600
|
* @throws {RequiredError}
|
|
3520
3601
|
*/
|
|
3521
|
-
async getRecentPunishments(limit: number, page: number, issuedAfter?: number | null, issuedBefore?: number | null, expiresAfter?: number | null, expiresBefore?: number | null, type?: Array<
|
|
3602
|
+
async getRecentPunishments(limit: number, page: number, issuedAfter?: number | null, issuedBefore?: number | null, expiresAfter?: number | null, expiresBefore?: number | null, type?: Array<PunishmentType> | null, uuid?: string | null, ipAddress?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PunishmentGetPunishmentResponse>>> {
|
|
3522
3603
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options);
|
|
3523
3604
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3524
3605
|
const localVarOperationServerBasePath = operationServerMap['PunishmentApi.getRecentPunishments']?.[localVarOperationServerIndex]?.url;
|
|
@@ -3547,12 +3628,12 @@ export const PunishmentApiFactory = function (configuration?: Configuration, bas
|
|
|
3547
3628
|
* @summary Get punishments by player
|
|
3548
3629
|
* @param {string | null} [uuid] Player UUID
|
|
3549
3630
|
* @param {string | null} [username] Player username
|
|
3550
|
-
* @param {Array<
|
|
3631
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3551
3632
|
* @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
|
|
3552
3633
|
* @param {*} [options] Override http request option.
|
|
3553
3634
|
* @throws {RequiredError}
|
|
3554
3635
|
*/
|
|
3555
|
-
getPunishments1(uuid?: string | null, username?: string | null, type?: Array<
|
|
3636
|
+
getPunishments1(uuid?: string | null, username?: string | null, type?: Array<PunishmentType> | null, since?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<PunishmentGetPunishmentResponse>> {
|
|
3556
3637
|
return localVarFp.getPunishments1(uuid, username, type, since, options).then((request) => request(axios, basePath));
|
|
3557
3638
|
},
|
|
3558
3639
|
/**
|
|
@@ -3574,13 +3655,13 @@ export const PunishmentApiFactory = function (configuration?: Configuration, bas
|
|
|
3574
3655
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
|
|
3575
3656
|
* @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
|
|
3576
3657
|
* @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
|
|
3577
|
-
* @param {Array<
|
|
3658
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3578
3659
|
* @param {string | null} [uuid] Filter by player UUID
|
|
3579
3660
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
3580
3661
|
* @param {*} [options] Override http request option.
|
|
3581
3662
|
* @throws {RequiredError}
|
|
3582
3663
|
*/
|
|
3583
|
-
getRecentPunishments(limit: number, page: number, issuedAfter?: number | null, issuedBefore?: number | null, expiresAfter?: number | null, expiresBefore?: number | null, type?: Array<
|
|
3664
|
+
getRecentPunishments(limit: number, page: number, issuedAfter?: number | null, issuedBefore?: number | null, expiresAfter?: number | null, expiresBefore?: number | null, type?: Array<PunishmentType> | null, uuid?: string | null, ipAddress?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<PunishmentGetPunishmentResponse>> {
|
|
3584
3665
|
return localVarFp.getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options).then((request) => request(axios, basePath));
|
|
3585
3666
|
},
|
|
3586
3667
|
};
|
|
@@ -3605,12 +3686,12 @@ export class PunishmentApi extends BaseAPI {
|
|
|
3605
3686
|
* @summary Get punishments by player
|
|
3606
3687
|
* @param {string | null} [uuid] Player UUID
|
|
3607
3688
|
* @param {string | null} [username] Player username
|
|
3608
|
-
* @param {Array<
|
|
3689
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3609
3690
|
* @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
|
|
3610
3691
|
* @param {*} [options] Override http request option.
|
|
3611
3692
|
* @throws {RequiredError}
|
|
3612
3693
|
*/
|
|
3613
|
-
public getPunishments1(uuid?: string | null, username?: string | null, type?: Array<
|
|
3694
|
+
public getPunishments1(uuid?: string | null, username?: string | null, type?: Array<PunishmentType> | null, since?: number | null, options?: RawAxiosRequestConfig) {
|
|
3614
3695
|
return PunishmentApiFp(this.configuration).getPunishments1(uuid, username, type, since, options).then((request) => request(this.axios, this.basePath));
|
|
3615
3696
|
}
|
|
3616
3697
|
|
|
@@ -3634,13 +3715,13 @@ export class PunishmentApi extends BaseAPI {
|
|
|
3634
3715
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
|
|
3635
3716
|
* @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
|
|
3636
3717
|
* @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
|
|
3637
|
-
* @param {Array<
|
|
3718
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3638
3719
|
* @param {string | null} [uuid] Filter by player UUID
|
|
3639
3720
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
3640
3721
|
* @param {*} [options] Override http request option.
|
|
3641
3722
|
* @throws {RequiredError}
|
|
3642
3723
|
*/
|
|
3643
|
-
public getRecentPunishments(limit: number, page: number, issuedAfter?: number | null, issuedBefore?: number | null, expiresAfter?: number | null, expiresBefore?: number | null, type?: Array<
|
|
3724
|
+
public getRecentPunishments(limit: number, page: number, issuedAfter?: number | null, issuedBefore?: number | null, expiresAfter?: number | null, expiresBefore?: number | null, type?: Array<PunishmentType> | null, uuid?: string | null, ipAddress?: string | null, options?: RawAxiosRequestConfig) {
|
|
3644
3725
|
return PunishmentApiFp(this.configuration).getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options).then((request) => request(this.axios, this.basePath));
|
|
3645
3726
|
}
|
|
3646
3727
|
}
|