@rebornteam/reborn-api 3.1.0 → 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.
Files changed (52) hide show
  1. package/README.md +2 -2
  2. package/api.ts +103 -95
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +1 -1
  6. package/dist/api.d.ts +103 -95
  7. package/dist/api.js +1 -1
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +1 -1
  14. package/dist/esm/api.d.ts +103 -95
  15. package/dist/esm/api.js +1 -1
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +1 -1
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/AdminApplyPunishmentRequest.md +2 -2
  27. package/docs/AdminApplyPunishmentResponse.md +1 -1
  28. package/docs/AdminApplyPunishmentResult.md +6 -6
  29. package/docs/AdminClientCredentialResponse.md +6 -6
  30. package/docs/AdminConnectionBypassResponse.md +4 -4
  31. package/docs/AdminConnectionCheckResult.md +7 -3
  32. package/docs/AdminCreatePunishmentDraftRequest.md +2 -2
  33. package/docs/AdminDashboardConnectionResponse.md +2 -2
  34. package/docs/AdminIpSearchResult.md +2 -2
  35. package/docs/AdminPagedConnectionResponse.md +5 -5
  36. package/docs/AdminPagedPlayerResponse.md +5 -5
  37. package/docs/AdminPagedPunishmentResponse.md +5 -5
  38. package/docs/AdminPlayerDetailResponse.md +7 -7
  39. package/docs/AdminPlayerSearchResult.md +1 -1
  40. package/docs/AdminPlayerSummary.md +6 -6
  41. package/docs/AdminPunishmentDraftResponse.md +1 -1
  42. package/docs/AdminPunishmentEvaluation.md +9 -9
  43. package/docs/AdminPunishmentSearchResponse.md +3 -3
  44. package/docs/AdminUsernameHistoryEntry.md +2 -2
  45. package/docs/ConnectionGetConnectionDetailsResponse.md +7 -7
  46. package/docs/PlayerGetPlayerInformation.md +4 -4
  47. package/docs/PunishmentGetPunishmentResponse.md +6 -6
  48. package/docs/PunishmentSeveritiesResponse.md +1 -1
  49. package/docs/PunishmentSeveritiesResponsePunishmentTypeInfo.md +2 -2
  50. package/docs/PunishmentSeveritiesResponseSeverityInfo.md +2 -2
  51. package/index.ts +1 -1
  52. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @rebornteam/reborn-api@3.1.0
1
+ ## @rebornteam/reborn-api@3.2.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @rebornteam/reborn-api@3.1.0 --save
39
+ npm install @rebornteam/reborn-api@3.2.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
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.1.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).
@@ -38,7 +38,7 @@ export interface AdminApplyPunishmentRequest {
38
38
  /**
39
39
  * Severity level: 1=Minor, 2=Moderate, 3=Severe, 4=Critical
40
40
  */
41
- 'severity'?: number;
41
+ 'severity': number;
42
42
  /**
43
43
  * Reason for the punishment
44
44
  */
@@ -50,7 +50,7 @@ export interface AdminApplyPunishmentRequest {
50
50
  /**
51
51
  * Force the punishment to be permanent regardless of the target\'s current score
52
52
  */
53
- 'forcePermanent'?: boolean;
53
+ 'forcePermanent': boolean;
54
54
  /**
55
55
  * Internal notes visible only to administrators — not shown to the punished player
56
56
  */
@@ -65,7 +65,7 @@ export interface AdminApplyPunishmentResponse {
65
65
  /**
66
66
  * Ordered list of results, one per target in the request
67
67
  */
68
- 'results'?: Array<AdminApplyPunishmentResult>;
68
+ 'results': Array<AdminApplyPunishmentResult>;
69
69
  }
70
70
  /**
71
71
  * Result of applying a punishment to a single target
@@ -74,27 +74,27 @@ export interface AdminApplyPunishmentResult {
74
74
  /**
75
75
  * The target this result applies to
76
76
  */
77
- 'target'?: AdminPunishmentTarget;
77
+ 'target': AdminPunishmentTarget;
78
78
  /**
79
79
  * ID of the created punishment record
80
80
  */
81
- 'punishmentId'?: number;
81
+ 'punishmentId': number;
82
82
  /**
83
83
  * Punishment type applied
84
84
  */
85
- 'type'?: PunishmentType;
85
+ 'type': PunishmentType;
86
86
  /**
87
87
  * Severity level applied
88
88
  */
89
- 'severity'?: number;
89
+ 'severity': number;
90
90
  /**
91
91
  * Updated punishment score after applying
92
92
  */
93
- 'newScore'?: number;
93
+ 'newScore': number;
94
94
  /**
95
95
  * Whether the punishment was made permanent
96
96
  */
97
- 'isPermanent'?: boolean;
97
+ 'isPermanent': boolean;
98
98
  /**
99
99
  * When the punishment expires — null if permanent or a WARNING
100
100
  */
@@ -109,11 +109,11 @@ export interface AdminClientCredentialResponse {
109
109
  /**
110
110
  * Unique identifier for the client credential
111
111
  */
112
- 'id'?: number;
112
+ 'id': number;
113
113
  /**
114
114
  * Client ID used for authentication
115
115
  */
116
- 'clientId'?: string;
116
+ 'clientId': string;
117
117
  /**
118
118
  * Client secret (only returned on generation/rotation, null otherwise)
119
119
  */
@@ -121,19 +121,19 @@ export interface AdminClientCredentialResponse {
121
121
  /**
122
122
  * Human-readable name for the client
123
123
  */
124
- 'name'?: string;
124
+ 'name': string;
125
125
  /**
126
126
  * Optional description of the client\'s purpose
127
127
  */
128
- 'description'?: string;
128
+ 'description': string;
129
129
  /**
130
130
  * Whether the client credential is currently enabled
131
131
  */
132
- 'enabled'?: boolean;
132
+ 'enabled': boolean;
133
133
  /**
134
134
  * Timestamp when the credential was created (ISO-8601 format)
135
135
  */
136
- 'createdAt'?: string;
136
+ 'createdAt': string;
137
137
  /**
138
138
  * Timestamp when the credential expires (ISO-8601 format). Null means the credential never expires.
139
139
  */
@@ -146,19 +146,19 @@ export interface AdminConnectionBypassResponse {
146
146
  /**
147
147
  * Unique identifier for the bypass
148
148
  */
149
- 'id'?: number;
149
+ 'id': number;
150
150
  /**
151
151
  * IP address that is bypassed
152
152
  */
153
- 'ipAddress'?: string;
153
+ 'ipAddress': string;
154
154
  /**
155
155
  * Timestamp when the bypass expires (ISO-8601 format)
156
156
  */
157
- 'expiresAt'?: string;
157
+ 'expiresAt': string;
158
158
  /**
159
159
  * Timestamp when the bypass was created (ISO-8601 format)
160
160
  */
161
- 'createdAt'?: string;
161
+ 'createdAt': string;
162
162
  }
163
163
  /**
164
164
  * Result from a single VPN detection service for a given IP address
@@ -167,15 +167,23 @@ export interface AdminConnectionCheckResult {
167
167
  /**
168
168
  * Service identifier
169
169
  */
170
- 'service'?: string;
170
+ 'service': string;
171
171
  /**
172
172
  * Whether this service flagged the IP as a VPN, proxy, or Tor exit node
173
173
  */
174
- 'result'?: boolean;
174
+ 'result': boolean;
175
175
  /**
176
176
  * When this check was last performed
177
177
  */
178
- 'checkedAt'?: string;
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;
179
187
  }
180
188
  /**
181
189
  * Request to evaluate the impact of a punishment across one or more targets before applying
@@ -192,7 +200,7 @@ export interface AdminCreatePunishmentDraftRequest {
192
200
  /**
193
201
  * Severity level: 1=Minor, 2=Moderate, 3=Severe, 4=Critical
194
202
  */
195
- 'severity'?: number;
203
+ 'severity': number;
196
204
  /**
197
205
  * Reason for the punishment (not used in evaluation, required for apply)
198
206
  */
@@ -204,14 +212,14 @@ export interface AdminCreatePunishmentDraftRequest {
204
212
  /**
205
213
  * Force the punishment to be permanent regardless of the target\'s current score
206
214
  */
207
- 'forcePermanent'?: boolean;
215
+ 'forcePermanent': boolean;
208
216
  }
209
217
 
210
218
 
211
219
  export interface AdminDashboardConnectionResponse {
212
220
  'id': number;
213
221
  'ipAddress': string;
214
- 'location': string;
222
+ 'location'?: string | null;
215
223
  'isVpn': boolean;
216
224
  'isBypassed': boolean;
217
225
  'bypassExpiresAt'?: string | null;
@@ -222,7 +230,7 @@ export interface AdminDashboardConnectionResponse {
222
230
  /**
223
231
  * Results from each VPN detection service for this IP address
224
232
  */
225
- 'results'?: Array<AdminConnectionCheckResult>;
233
+ 'results': Array<AdminConnectionCheckResult>;
226
234
  }
227
235
  export interface AdminGetDashboardStats {
228
236
  'totalPlayers': number;
@@ -236,11 +244,11 @@ export interface AdminIpSearchResult {
236
244
  /**
237
245
  * IP address
238
246
  */
239
- 'ipAddress'?: string;
247
+ 'ipAddress': string;
240
248
  /**
241
249
  * Players ever seen on this IP
242
250
  */
243
- 'players'?: Array<AdminPlayerSearchResult>;
251
+ 'players': Array<AdminPlayerSearchResult>;
244
252
  }
245
253
  /**
246
254
  * Paginated connection list response
@@ -249,23 +257,23 @@ export interface AdminPagedConnectionResponse {
249
257
  /**
250
258
  * Connections on the current page
251
259
  */
252
- 'data'?: Array<AdminDashboardConnectionResponse>;
260
+ 'data': Array<AdminDashboardConnectionResponse>;
253
261
  /**
254
262
  * Total number of connections matching the filters
255
263
  */
256
- 'total'?: number;
264
+ 'total': number;
257
265
  /**
258
266
  * Current page (1-indexed)
259
267
  */
260
- 'page'?: number;
268
+ 'page': number;
261
269
  /**
262
270
  * Page size
263
271
  */
264
- 'limit'?: number;
272
+ 'limit': number;
265
273
  /**
266
274
  * Total number of pages
267
275
  */
268
- 'totalPages'?: number;
276
+ 'totalPages': number;
269
277
  }
270
278
  /**
271
279
  * Paginated player list response
@@ -274,23 +282,23 @@ export interface AdminPagedPlayerResponse {
274
282
  /**
275
283
  * Players on the current page
276
284
  */
277
- 'data'?: Array<AdminPlayerSummary>;
285
+ 'data': Array<AdminPlayerSummary>;
278
286
  /**
279
287
  * Total number of players matching the search filter
280
288
  */
281
- 'total'?: number;
289
+ 'total': number;
282
290
  /**
283
291
  * Current page (1-indexed)
284
292
  */
285
- 'page'?: number;
293
+ 'page': number;
286
294
  /**
287
295
  * Page size
288
296
  */
289
- 'limit'?: number;
297
+ 'limit': number;
290
298
  /**
291
299
  * Total number of pages
292
300
  */
293
- 'totalPages'?: number;
301
+ 'totalPages': number;
294
302
  }
295
303
  /**
296
304
  * Paginated punishment list response
@@ -299,23 +307,23 @@ export interface AdminPagedPunishmentResponse {
299
307
  /**
300
308
  * Punishments on the current page
301
309
  */
302
- 'data'?: Array<AdminPunishmentListItem>;
310
+ 'data': Array<AdminPunishmentListItem>;
303
311
  /**
304
312
  * Total number of punishments matching the filters
305
313
  */
306
- 'total'?: number;
314
+ 'total': number;
307
315
  /**
308
316
  * Current page (1-indexed)
309
317
  */
310
- 'page'?: number;
318
+ 'page': number;
311
319
  /**
312
320
  * Page size
313
321
  */
314
- 'limit'?: number;
322
+ 'limit': number;
315
323
  /**
316
324
  * Total number of pages
317
325
  */
318
- 'totalPages'?: number;
326
+ 'totalPages': number;
319
327
  }
320
328
  /**
321
329
  * Full player detail including punishment history and all known usernames
@@ -324,11 +332,11 @@ export interface AdminPlayerDetailResponse {
324
332
  /**
325
333
  * Internal player ID
326
334
  */
327
- 'id'?: number;
335
+ 'id': number;
328
336
  /**
329
337
  * Player Minecraft UUID
330
338
  */
331
- 'uuid'?: string;
339
+ 'uuid': string;
332
340
  /**
333
341
  * Most recently seen username
334
342
  */
@@ -336,11 +344,11 @@ export interface AdminPlayerDetailResponse {
336
344
  /**
337
345
  * Whether this player still has first-join status
338
346
  */
339
- 'firstJoin'?: boolean;
347
+ 'firstJoin': boolean;
340
348
  /**
341
349
  * Timestamp of first connection (ISO-8601)
342
350
  */
343
- 'firstLogin'?: string;
351
+ 'firstLogin': string;
344
352
  /**
345
353
  * Timestamp of most recent connection (ISO-8601)
346
354
  */
@@ -348,15 +356,15 @@ export interface AdminPlayerDetailResponse {
348
356
  /**
349
357
  * Raw punishment score
350
358
  */
351
- 'punishmentPointsRaw'?: number;
359
+ 'punishmentPointsRaw': number;
352
360
  /**
353
361
  * Punishment score as a percentage
354
362
  */
355
- 'punishmentPointsPercent'?: number;
363
+ 'punishmentPointsPercent': number;
356
364
  /**
357
365
  * All usernames this player has used, newest first
358
366
  */
359
- 'usernameHistory'?: Array<AdminUsernameHistoryEntry>;
367
+ 'usernameHistory': Array<AdminUsernameHistoryEntry>;
360
368
  }
361
369
  /**
362
370
  * Lightweight player reference used in search results and punishment evaluations
@@ -365,7 +373,7 @@ export interface AdminPlayerSearchResult {
365
373
  /**
366
374
  * Player Minecraft UUID
367
375
  */
368
- 'uuid'?: string;
376
+ 'uuid': string;
369
377
  /**
370
378
  * Most recently seen username, null if never recorded
371
379
  */
@@ -378,11 +386,11 @@ export interface AdminPlayerSummary {
378
386
  /**
379
387
  * Internal player ID
380
388
  */
381
- 'id'?: number;
389
+ 'id': number;
382
390
  /**
383
391
  * Player Minecraft UUID
384
392
  */
385
- 'uuid'?: string;
393
+ 'uuid': string;
386
394
  /**
387
395
  * Most recently seen username, null if never recorded
388
396
  */
@@ -390,11 +398,11 @@ export interface AdminPlayerSummary {
390
398
  /**
391
399
  * Whether this player still has first-join status
392
400
  */
393
- 'firstJoin'?: boolean;
401
+ 'firstJoin': boolean;
394
402
  /**
395
403
  * Timestamp of first connection (ISO-8601)
396
404
  */
397
- 'firstLogin'?: string;
405
+ 'firstLogin': string;
398
406
  /**
399
407
  * Timestamp of most recent connection (ISO-8601)
400
408
  */
@@ -402,11 +410,11 @@ export interface AdminPlayerSummary {
402
410
  /**
403
411
  * Raw punishment score (sum of weighted punishment values)
404
412
  */
405
- 'punishmentPointsRaw'?: number;
413
+ 'punishmentPointsRaw': number;
406
414
  /**
407
415
  * Punishment score as a percentage. Values above 100 indicate future punishments should be permanent.
408
416
  */
409
- 'punishmentPointsPercent'?: number;
417
+ 'punishmentPointsPercent': number;
410
418
  }
411
419
  /**
412
420
  * Batch punishment draft — one evaluation per target
@@ -415,7 +423,7 @@ export interface AdminPunishmentDraftResponse {
415
423
  /**
416
424
  * Ordered list of evaluations, one per target in the request
417
425
  */
418
- 'evaluations'?: Array<AdminPunishmentEvaluation>;
426
+ 'evaluations': Array<AdminPunishmentEvaluation>;
419
427
  }
420
428
  /**
421
429
  * Evaluation of a punishment\'s impact on a single target
@@ -424,27 +432,27 @@ export interface AdminPunishmentEvaluation {
424
432
  /**
425
433
  * The target this evaluation applies to
426
434
  */
427
- 'target'?: AdminPunishmentTarget;
435
+ 'target': AdminPunishmentTarget;
428
436
  /**
429
437
  * Players affected — one player for UUID targets, all players on the IP for connection targets
430
438
  */
431
- 'affectedPlayers'?: Array<AdminPlayerSearchResult>;
439
+ 'affectedPlayers': Array<AdminPlayerSearchResult>;
432
440
  /**
433
441
  * Current punishment score before applying this punishment (0–100+)
434
442
  */
435
- 'currentScore'?: number;
443
+ 'currentScore': number;
436
444
  /**
437
445
  * Points this punishment would add to the score
438
446
  */
439
- 'pointsToAdd'?: number;
447
+ 'pointsToAdd': number;
440
448
  /**
441
449
  * Projected score after applying this punishment
442
450
  */
443
- 'newScore'?: number;
451
+ 'newScore': number;
444
452
  /**
445
453
  * Whether this punishment would be permanent based on the current score threshold
446
454
  */
447
- 'willBePermanent'?: boolean;
455
+ 'willBePermanent': boolean;
448
456
  /**
449
457
  * Resolved duration in seconds — null if permanent or a WARNING
450
458
  */
@@ -452,15 +460,15 @@ export interface AdminPunishmentEvaluation {
452
460
  /**
453
461
  * Number of existing punishments on this target
454
462
  */
455
- 'previousPunishmentCount'?: number;
463
+ 'previousPunishmentCount': number;
456
464
  /**
457
465
  * True when the target is an IP address (connection punishment) rather than a player UUID
458
466
  */
459
- 'isConnectionTarget'?: boolean;
467
+ 'isConnectionTarget': boolean;
460
468
  /**
461
469
  * The effective punishment type that will be applied — may differ from the requested type if escalated to BAN at threshold
462
470
  */
463
- 'effectiveType'?: PunishmentType;
471
+ 'effectiveType': PunishmentType;
464
472
  }
465
473
 
466
474
 
@@ -487,15 +495,15 @@ export interface AdminPunishmentSearchResponse {
487
495
  /**
488
496
  * Search kind — PLAYER for UUID/username searches, IP for IP address searches
489
497
  */
490
- 'kind'?: SearchKind;
498
+ 'kind': SearchKind;
491
499
  /**
492
500
  * Matching players — only populated when kind=\'player\'
493
501
  */
494
- 'players'?: Array<AdminPlayerSearchResult>;
502
+ 'players': Array<AdminPlayerSearchResult>;
495
503
  /**
496
504
  * Matching IP addresses with their associated players — only populated when kind=\'ip\'
497
505
  */
498
- 'ipResults'?: Array<AdminIpSearchResult>;
506
+ 'ipResults': Array<AdminIpSearchResult>;
499
507
  }
500
508
 
501
509
 
@@ -519,11 +527,11 @@ export interface AdminUsernameHistoryEntry {
519
527
  /**
520
528
  * The username at this point in time
521
529
  */
522
- 'username'?: string;
530
+ 'username': string;
523
531
  /**
524
532
  * When this username was first observed (ISO-8601)
525
533
  */
526
- 'changedAt'?: string;
534
+ 'changedAt': string;
527
535
  }
528
536
  export interface ChatMessageDTO {
529
537
  'id': number;
@@ -563,23 +571,23 @@ export interface ConnectionGetConnectionDetailsResponse {
563
571
  /**
564
572
  * The analyzed IPv4 address
565
573
  */
566
- 'ipAddress'?: string;
574
+ 'ipAddress': string;
567
575
  /**
568
576
  * Approximate geographic location of the IP address. Returns \'Local, N/A\' for localhost or private IPs.
569
577
  */
570
- 'approximateLocation'?: string;
578
+ 'approximateLocation': string;
571
579
  /**
572
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).
573
581
  */
574
- 'percentPositive'?: number;
582
+ 'percentPositive': number;
575
583
  /**
576
584
  * Total number of VPN detection services successfully queried during the last check.
577
585
  */
578
- 'numberOfChecks'?: number;
586
+ 'numberOfChecks': number;
579
587
  /**
580
588
  * Indicates if this IP address has been administratively bypassed.
581
589
  */
582
- 'isBypassed'?: boolean;
590
+ 'isBypassed': boolean;
583
591
  /**
584
592
  * Expiration timestamp for the bypass (ISO-8601 format). Null if not bypassed or bypass is permanent.
585
593
  */
@@ -587,7 +595,7 @@ export interface ConnectionGetConnectionDetailsResponse {
587
595
  /**
588
596
  * Results from each VPN detection service that checked this IP address
589
597
  */
590
- 'results'?: Array<AdminConnectionCheckResult>;
598
+ 'results': Array<AdminConnectionCheckResult>;
591
599
  /**
592
600
  * Player information associated with this connection. Only populated when \'associate_uuid\' query parameter is provided.
593
601
  */
@@ -595,7 +603,7 @@ export interface ConnectionGetConnectionDetailsResponse {
595
603
  /**
596
604
  * Combined list of active punishments for both the IP address and player UUID (if provided). Only includes non-expired punishments.
597
605
  */
598
- 'punishments'?: Array<PunishmentGetPunishmentResponse>;
606
+ 'punishments': Array<PunishmentGetPunishmentResponse>;
599
607
  /**
600
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.
601
609
  */
@@ -655,19 +663,19 @@ export interface PlayerGetPlayerInformation {
655
663
  /**
656
664
  * Indicates whether this is the player\'s first time joining the server.
657
665
  */
658
- 'firstJoin'?: boolean;
666
+ 'firstJoin': boolean;
659
667
  /**
660
668
  * Timestamp of when the player first connected to the server (ISO-8601 format).
661
669
  */
662
- 'firstLogin'?: string;
670
+ 'firstLogin': string;
663
671
  /**
664
672
  * Raw punishment score calculated as: SUM((base_weight × severity/10)). Used for tracking overall punishment severity.
665
673
  */
666
- 'punishmentPointsRaw'?: number;
674
+ 'punishmentPointsRaw': number;
667
675
  /**
668
676
  * Punishment score as a percentage (0-100). When >100% before applying a new punishment, the new punishment should be made permanent.
669
677
  */
670
- 'punishmentPointsPercent'?: number;
678
+ 'punishmentPointsPercent': number;
671
679
  }
672
680
  /**
673
681
  * Punishment information including reason, type, creator, and expiration
@@ -676,11 +684,11 @@ export interface PunishmentGetPunishmentResponse {
676
684
  /**
677
685
  * Unique identifier for the punishment
678
686
  */
679
- 'id'?: number;
687
+ 'id': number;
680
688
  /**
681
689
  * Reason for the punishment, shown to the punished player
682
690
  */
683
- 'reason'?: string;
691
+ 'reason': string;
684
692
  /**
685
693
  * Internal administrator notes — not shown to the punished player
686
694
  */
@@ -688,15 +696,15 @@ export interface PunishmentGetPunishmentResponse {
688
696
  /**
689
697
  * Type of punishment
690
698
  */
691
- 'type'?: PunishmentType;
699
+ 'type': PunishmentType;
692
700
  /**
693
701
  * Severity level (1=Minor, 2=Moderate, 3=Severe, 4=Critical)
694
702
  */
695
- 'severity'?: number;
703
+ 'severity': number;
696
704
  /**
697
705
  * Username or identifier of the person who created this punishment
698
706
  */
699
- 'createdBy'?: string;
707
+ 'createdBy': string;
700
708
  /**
701
709
  * Timestamp when the punishment expires (ISO-8601 format). Null for permanent punishments.
702
710
  */
@@ -704,7 +712,7 @@ export interface PunishmentGetPunishmentResponse {
704
712
  /**
705
713
  * Timestamp when the punishment was created (ISO-8601 format)
706
714
  */
707
- 'createdAt'?: string;
715
+ 'createdAt': string;
708
716
  }
709
717
 
710
718
 
@@ -715,7 +723,7 @@ export interface PunishmentSeveritiesResponse {
715
723
  /**
716
724
  * List of punishment types with their severity durations
717
725
  */
718
- 'punishmentTypes'?: Array<PunishmentSeveritiesResponsePunishmentTypeInfo>;
726
+ 'punishmentTypes': Array<PunishmentSeveritiesResponsePunishmentTypeInfo>;
719
727
  }
720
728
  /**
721
729
  * Punishment type with severity information
@@ -724,11 +732,11 @@ export interface PunishmentSeveritiesResponsePunishmentTypeInfo {
724
732
  /**
725
733
  * Type of punishment
726
734
  */
727
- 'type'?: PunishmentType;
735
+ 'type': PunishmentType;
728
736
  /**
729
737
  * List of severity levels with durations
730
738
  */
731
- 'severities'?: Array<PunishmentSeveritiesResponseSeverityInfo>;
739
+ 'severities': Array<PunishmentSeveritiesResponseSeverityInfo>;
732
740
  }
733
741
 
734
742
 
@@ -739,11 +747,11 @@ export interface PunishmentSeveritiesResponseSeverityInfo {
739
747
  /**
740
748
  * Severity level
741
749
  */
742
- 'severity'?: number;
750
+ 'severity': number;
743
751
  /**
744
752
  * Duration in seconds (0 means no duration)
745
753
  */
746
- 'durationSeconds'?: number;
754
+ 'durationSeconds': number;
747
755
  }
748
756
 
749
757
  export const PunishmentTargetType = {
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Reborn API
5
5
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
6
6
  *
7
- * The version of the OpenAPI document: 3.1.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).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Reborn API
5
5
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
6
6
  *
7
- * The version of the OpenAPI document: 3.1.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).
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Reborn API
4
4
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
5
5
  *
6
- * The version of the OpenAPI document: 3.1.0
6
+ * The version of the OpenAPI document: 3.2.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).