@rebornteam/reborn-api 3.0.1 → 3.1.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 +133 -60
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +93 -57
- 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 +93 -57
- 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 +1 -1
- package/docs/AdminApplyPunishmentResult.md +1 -1
- package/docs/AdminCreatePunishmentDraftRequest.md +1 -1
- package/docs/AdminPunishmentEvaluation.md +1 -1
- package/docs/AdminPunishmentListItem.md +2 -2
- package/docs/AdminPunishmentSearchResponse.md +1 -1
- package/docs/AdminPunishmentsApi.md +2 -2
- package/docs/ConnectionGetConnectionDetailsResponse.md +2 -0
- package/docs/ConnectionResult.md +25 -0
- package/docs/ConnectionResultResultCode.md +20 -0
- package/docs/GameType.md +12 -0
- package/docs/PunishmentApi.md +4 -4
- package/docs/PunishmentGetPunishmentResponse.md +1 -1
- package/docs/PunishmentSeveritiesResponsePunishmentTypeInfo.md +1 -1
- 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/.openapi-generator/FILES
CHANGED
|
@@ -40,7 +40,10 @@ docs/ChatMessageRequest.md
|
|
|
40
40
|
docs/ClientCredentialRequest.md
|
|
41
41
|
docs/ConnectionApi.md
|
|
42
42
|
docs/ConnectionGetConnectionDetailsResponse.md
|
|
43
|
+
docs/ConnectionResult.md
|
|
44
|
+
docs/ConnectionResultResultCode.md
|
|
43
45
|
docs/CreateBypassRequest.md
|
|
46
|
+
docs/GameType.md
|
|
44
47
|
docs/PlayerApi.md
|
|
45
48
|
docs/PlayerGetPlayerInformation.md
|
|
46
49
|
docs/PunishmentApi.md
|
|
@@ -48,7 +51,11 @@ docs/PunishmentGetPunishmentResponse.md
|
|
|
48
51
|
docs/PunishmentSeveritiesResponse.md
|
|
49
52
|
docs/PunishmentSeveritiesResponsePunishmentTypeInfo.md
|
|
50
53
|
docs/PunishmentSeveritiesResponseSeverityInfo.md
|
|
54
|
+
docs/PunishmentTargetType.md
|
|
55
|
+
docs/PunishmentType.md
|
|
51
56
|
docs/Rank.md
|
|
57
|
+
docs/Region.md
|
|
58
|
+
docs/SearchKind.md
|
|
52
59
|
docs/ServerRegisterRequest.md
|
|
53
60
|
docs/ServerSessionDTO.md
|
|
54
61
|
docs/ServerSessionsApi.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @rebornteam/reborn-api@3.0
|
|
1
|
+
## @rebornteam/reborn-api@3.1.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.0
|
|
39
|
+
npm install @rebornteam/reborn-api@3.1.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -117,13 +117,20 @@ Class | Method | HTTP request | Description
|
|
|
117
117
|
- [ChatMessageRequest](docs/ChatMessageRequest.md)
|
|
118
118
|
- [ClientCredentialRequest](docs/ClientCredentialRequest.md)
|
|
119
119
|
- [ConnectionGetConnectionDetailsResponse](docs/ConnectionGetConnectionDetailsResponse.md)
|
|
120
|
+
- [ConnectionResult](docs/ConnectionResult.md)
|
|
121
|
+
- [ConnectionResultResultCode](docs/ConnectionResultResultCode.md)
|
|
120
122
|
- [CreateBypassRequest](docs/CreateBypassRequest.md)
|
|
123
|
+
- [GameType](docs/GameType.md)
|
|
121
124
|
- [PlayerGetPlayerInformation](docs/PlayerGetPlayerInformation.md)
|
|
122
125
|
- [PunishmentGetPunishmentResponse](docs/PunishmentGetPunishmentResponse.md)
|
|
123
126
|
- [PunishmentSeveritiesResponse](docs/PunishmentSeveritiesResponse.md)
|
|
124
127
|
- [PunishmentSeveritiesResponsePunishmentTypeInfo](docs/PunishmentSeveritiesResponsePunishmentTypeInfo.md)
|
|
125
128
|
- [PunishmentSeveritiesResponseSeverityInfo](docs/PunishmentSeveritiesResponseSeverityInfo.md)
|
|
129
|
+
- [PunishmentTargetType](docs/PunishmentTargetType.md)
|
|
130
|
+
- [PunishmentType](docs/PunishmentType.md)
|
|
126
131
|
- [Rank](docs/Rank.md)
|
|
132
|
+
- [Region](docs/Region.md)
|
|
133
|
+
- [SearchKind](docs/SearchKind.md)
|
|
127
134
|
- [ServerRegisterRequest](docs/ServerRegisterRequest.md)
|
|
128
135
|
- [ServerSessionDTO](docs/ServerSessionDTO.md)
|
|
129
136
|
- [TokenRequest](docs/TokenRequest.md)
|
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.1.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ 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
|
*/
|
|
@@ -57,13 +57,6 @@ export interface AdminApplyPunishmentRequest {
|
|
|
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
|
|
@@ -89,7 +82,7 @@ export interface AdminApplyPunishmentResult {
|
|
|
89
82
|
/**
|
|
90
83
|
* Punishment type applied
|
|
91
84
|
*/
|
|
92
|
-
'type'?:
|
|
85
|
+
'type'?: PunishmentType;
|
|
93
86
|
/**
|
|
94
87
|
* Severity level applied
|
|
95
88
|
*/
|
|
@@ -107,6 +100,8 @@ export interface AdminApplyPunishmentResult {
|
|
|
107
100
|
*/
|
|
108
101
|
'expiresAt'?: string | null;
|
|
109
102
|
}
|
|
103
|
+
|
|
104
|
+
|
|
110
105
|
/**
|
|
111
106
|
* Client credential response
|
|
112
107
|
*/
|
|
@@ -193,7 +188,7 @@ export interface AdminCreatePunishmentDraftRequest {
|
|
|
193
188
|
/**
|
|
194
189
|
* Punishment type
|
|
195
190
|
*/
|
|
196
|
-
'type':
|
|
191
|
+
'type': PunishmentType;
|
|
197
192
|
/**
|
|
198
193
|
* Severity level: 1=Minor, 2=Moderate, 3=Severe, 4=Critical
|
|
199
194
|
*/
|
|
@@ -212,13 +207,6 @@ export interface AdminCreatePunishmentDraftRequest {
|
|
|
212
207
|
'forcePermanent'?: boolean;
|
|
213
208
|
}
|
|
214
209
|
|
|
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
210
|
|
|
223
211
|
export interface AdminDashboardConnectionResponse {
|
|
224
212
|
'id': number;
|
|
@@ -472,30 +460,34 @@ export interface AdminPunishmentEvaluation {
|
|
|
472
460
|
/**
|
|
473
461
|
* The effective punishment type that will be applied — may differ from the requested type if escalated to BAN at threshold
|
|
474
462
|
*/
|
|
475
|
-
'effectiveType'?:
|
|
463
|
+
'effectiveType'?: PunishmentType;
|
|
476
464
|
}
|
|
465
|
+
|
|
466
|
+
|
|
477
467
|
export interface AdminPunishmentListItem {
|
|
478
468
|
'id': number;
|
|
479
469
|
'reason': string;
|
|
480
470
|
'notes'?: string | null;
|
|
481
|
-
'type':
|
|
471
|
+
'type': PunishmentType;
|
|
482
472
|
'severity': number;
|
|
483
473
|
'createdBy': string;
|
|
484
474
|
'expiresAt'?: string | null;
|
|
485
475
|
'createdAt': string;
|
|
486
|
-
'targetType':
|
|
476
|
+
'targetType': PunishmentTargetType;
|
|
487
477
|
'targetUuid'?: string | null;
|
|
488
478
|
'targetUsername'?: string | null;
|
|
489
479
|
'targetIp'?: string | null;
|
|
490
480
|
}
|
|
481
|
+
|
|
482
|
+
|
|
491
483
|
/**
|
|
492
484
|
* Result of a punishment target search — either a list of matching players or a list of matching IP addresses
|
|
493
485
|
*/
|
|
494
486
|
export interface AdminPunishmentSearchResponse {
|
|
495
487
|
/**
|
|
496
|
-
* Search kind —
|
|
488
|
+
* Search kind — PLAYER for UUID/username searches, IP for IP address searches
|
|
497
489
|
*/
|
|
498
|
-
'kind'?:
|
|
490
|
+
'kind'?: SearchKind;
|
|
499
491
|
/**
|
|
500
492
|
* Matching players — only populated when kind=\'player\'
|
|
501
493
|
*/
|
|
@@ -506,12 +498,6 @@ export interface AdminPunishmentSearchResponse {
|
|
|
506
498
|
'ipResults'?: Array<AdminIpSearchResult>;
|
|
507
499
|
}
|
|
508
500
|
|
|
509
|
-
export const AdminPunishmentSearchResponseKindEnum = {
|
|
510
|
-
Player: 'player',
|
|
511
|
-
Ip: 'ip'
|
|
512
|
-
} as const;
|
|
513
|
-
|
|
514
|
-
export type AdminPunishmentSearchResponseKindEnum = typeof AdminPunishmentSearchResponseKindEnum[keyof typeof AdminPunishmentSearchResponseKindEnum];
|
|
515
501
|
|
|
516
502
|
/**
|
|
517
503
|
* A target for a punishment — either a player UUID or an IP address (mutually exclusive)
|
|
@@ -610,7 +596,35 @@ export interface ConnectionGetConnectionDetailsResponse {
|
|
|
610
596
|
* Combined list of active punishments for both the IP address and player UUID (if provided). Only includes non-expired punishments.
|
|
611
597
|
*/
|
|
612
598
|
'punishments'?: Array<PunishmentGetPunishmentResponse>;
|
|
599
|
+
/**
|
|
600
|
+
* 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
|
+
*/
|
|
602
|
+
'connectionResult'?: ConnectionResult | null;
|
|
613
603
|
}
|
|
604
|
+
/**
|
|
605
|
+
* 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.
|
|
606
|
+
*/
|
|
607
|
+
export interface ConnectionResult {
|
|
608
|
+
'code': ConnectionResultResultCode;
|
|
609
|
+
'allowed': boolean;
|
|
610
|
+
'message'?: string | null;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
export const ConnectionResultResultCode = {
|
|
616
|
+
Allowed: 'ALLOWED',
|
|
617
|
+
AllowedBypass: 'ALLOWED_BYPASS',
|
|
618
|
+
AllowedPlayerBypass: 'ALLOWED_PLAYER_BYPASS',
|
|
619
|
+
Banned: 'BANNED',
|
|
620
|
+
VpnDetected: 'VPN_DETECTED',
|
|
621
|
+
VpnRetry: 'VPN_RETRY',
|
|
622
|
+
VpnTempBanned: 'VPN_TEMP_BANNED'
|
|
623
|
+
} as const;
|
|
624
|
+
|
|
625
|
+
export type ConnectionResultResultCode = typeof ConnectionResultResultCode[keyof typeof ConnectionResultResultCode];
|
|
626
|
+
|
|
627
|
+
|
|
614
628
|
/**
|
|
615
629
|
* Request to create a connection bypass
|
|
616
630
|
*/
|
|
@@ -624,6 +638,16 @@ export interface CreateBypassRequest {
|
|
|
624
638
|
*/
|
|
625
639
|
'expiresAtEpoch': number;
|
|
626
640
|
}
|
|
641
|
+
|
|
642
|
+
export const GameType = {
|
|
643
|
+
Rotj: 'ROTJ',
|
|
644
|
+
Legacy: 'LEGACY',
|
|
645
|
+
Classic: 'CLASSIC'
|
|
646
|
+
} as const;
|
|
647
|
+
|
|
648
|
+
export type GameType = typeof GameType[keyof typeof GameType];
|
|
649
|
+
|
|
650
|
+
|
|
627
651
|
/**
|
|
628
652
|
* Player information including join history, tracking data, and punishment scoring
|
|
629
653
|
*/
|
|
@@ -662,9 +686,9 @@ export interface PunishmentGetPunishmentResponse {
|
|
|
662
686
|
*/
|
|
663
687
|
'notes'?: string | null;
|
|
664
688
|
/**
|
|
665
|
-
* Type of punishment
|
|
689
|
+
* Type of punishment
|
|
666
690
|
*/
|
|
667
|
-
'type'?:
|
|
691
|
+
'type'?: PunishmentType;
|
|
668
692
|
/**
|
|
669
693
|
* Severity level (1=Minor, 2=Moderate, 3=Severe, 4=Critical)
|
|
670
694
|
*/
|
|
@@ -682,6 +706,8 @@ export interface PunishmentGetPunishmentResponse {
|
|
|
682
706
|
*/
|
|
683
707
|
'createdAt'?: string;
|
|
684
708
|
}
|
|
709
|
+
|
|
710
|
+
|
|
685
711
|
/**
|
|
686
712
|
* Response containing punishment severity durations for each type
|
|
687
713
|
*/
|
|
@@ -698,12 +724,14 @@ export interface PunishmentSeveritiesResponsePunishmentTypeInfo {
|
|
|
698
724
|
/**
|
|
699
725
|
* Type of punishment
|
|
700
726
|
*/
|
|
701
|
-
'type'?:
|
|
727
|
+
'type'?: PunishmentType;
|
|
702
728
|
/**
|
|
703
729
|
* List of severity levels with durations
|
|
704
730
|
*/
|
|
705
731
|
'severities'?: Array<PunishmentSeveritiesResponseSeverityInfo>;
|
|
706
732
|
}
|
|
733
|
+
|
|
734
|
+
|
|
707
735
|
/**
|
|
708
736
|
* Severity level with duration information
|
|
709
737
|
*/
|
|
@@ -718,6 +746,25 @@ export interface PunishmentSeveritiesResponseSeverityInfo {
|
|
|
718
746
|
'durationSeconds'?: number;
|
|
719
747
|
}
|
|
720
748
|
|
|
749
|
+
export const PunishmentTargetType = {
|
|
750
|
+
Player: 'PLAYER',
|
|
751
|
+
Connection: 'CONNECTION'
|
|
752
|
+
} as const;
|
|
753
|
+
|
|
754
|
+
export type PunishmentTargetType = typeof PunishmentTargetType[keyof typeof PunishmentTargetType];
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
export const PunishmentType = {
|
|
759
|
+
Ban: 'BAN',
|
|
760
|
+
Mute: 'MUTE',
|
|
761
|
+
Warning: 'WARNING'
|
|
762
|
+
} as const;
|
|
763
|
+
|
|
764
|
+
export type PunishmentType = typeof PunishmentType[keyof typeof PunishmentType];
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
|
|
721
768
|
export const Rank = {
|
|
722
769
|
Administrator: 'ADMINISTRATOR',
|
|
723
770
|
Moderator: 'MODERATOR',
|
|
@@ -727,15 +774,39 @@ export const Rank = {
|
|
|
727
774
|
export type Rank = typeof Rank[keyof typeof Rank];
|
|
728
775
|
|
|
729
776
|
|
|
777
|
+
|
|
778
|
+
export const Region = {
|
|
779
|
+
Us: 'US',
|
|
780
|
+
Eu: 'EU',
|
|
781
|
+
Au: 'AU'
|
|
782
|
+
} as const;
|
|
783
|
+
|
|
784
|
+
export type Region = typeof Region[keyof typeof Region];
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* Search kind — PLAYER for UUID/username searches, IP for IP address searches
|
|
789
|
+
*/
|
|
790
|
+
|
|
791
|
+
export const SearchKind = {
|
|
792
|
+
Player: 'PLAYER',
|
|
793
|
+
Ip: 'IP'
|
|
794
|
+
} as const;
|
|
795
|
+
|
|
796
|
+
export type SearchKind = typeof SearchKind[keyof typeof SearchKind];
|
|
797
|
+
|
|
798
|
+
|
|
730
799
|
export interface ServerRegisterRequest {
|
|
731
|
-
'region':
|
|
732
|
-
'gameType':
|
|
800
|
+
'region': Region;
|
|
801
|
+
'gameType': GameType;
|
|
733
802
|
'containerId'?: string | null;
|
|
734
803
|
}
|
|
804
|
+
|
|
805
|
+
|
|
735
806
|
export interface ServerSessionDTO {
|
|
736
807
|
'id': string;
|
|
737
|
-
'region':
|
|
738
|
-
'gameType':
|
|
808
|
+
'region': Region;
|
|
809
|
+
'gameType': GameType;
|
|
739
810
|
'instanceName': string;
|
|
740
811
|
'containerId'?: string | null;
|
|
741
812
|
'startedAt': string;
|
|
@@ -743,6 +814,8 @@ export interface ServerSessionDTO {
|
|
|
743
814
|
'endedAt'?: string | null;
|
|
744
815
|
'online': boolean;
|
|
745
816
|
}
|
|
817
|
+
|
|
818
|
+
|
|
746
819
|
export interface TokenRequest {
|
|
747
820
|
'grant_type'?: string | null;
|
|
748
821
|
'client_id'?: string | null;
|
|
@@ -2106,13 +2179,13 @@ export const AdminPunishmentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
2106
2179
|
* @param {string | null} [uuid] Filter by player UUID
|
|
2107
2180
|
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
2108
2181
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
2109
|
-
* @param {Array<
|
|
2182
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
|
|
2110
2183
|
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
2111
2184
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
2112
2185
|
* @param {*} [options] Override http request option.
|
|
2113
2186
|
* @throws {RequiredError}
|
|
2114
2187
|
*/
|
|
2115
|
-
getPunishments: async (page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<
|
|
2188
|
+
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
2189
|
// verify required parameter 'page' is not null or undefined
|
|
2117
2190
|
assertParamExists('getPunishments', 'page', page)
|
|
2118
2191
|
// verify required parameter 'limit' is not null or undefined
|
|
@@ -2260,13 +2333,13 @@ export const AdminPunishmentsApiFp = function(configuration?: Configuration) {
|
|
|
2260
2333
|
* @param {string | null} [uuid] Filter by player UUID
|
|
2261
2334
|
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
2262
2335
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
2263
|
-
* @param {Array<
|
|
2336
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
|
|
2264
2337
|
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
2265
2338
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
2266
2339
|
* @param {*} [options] Override http request option.
|
|
2267
2340
|
* @throws {RequiredError}
|
|
2268
2341
|
*/
|
|
2269
|
-
async getPunishments(page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<
|
|
2342
|
+
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
2343
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options);
|
|
2271
2344
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2272
2345
|
const localVarOperationServerBasePath = operationServerMap['AdminPunishmentsApi.getPunishments']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2322,13 +2395,13 @@ export const AdminPunishmentsApiFactory = function (configuration?: Configuratio
|
|
|
2322
2395
|
* @param {string | null} [uuid] Filter by player UUID
|
|
2323
2396
|
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
2324
2397
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
2325
|
-
* @param {Array<
|
|
2398
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
|
|
2326
2399
|
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
2327
2400
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
2328
2401
|
* @param {*} [options] Override http request option.
|
|
2329
2402
|
* @throws {RequiredError}
|
|
2330
2403
|
*/
|
|
2331
|
-
getPunishments(page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<
|
|
2404
|
+
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
2405
|
return localVarFp.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(axios, basePath));
|
|
2333
2406
|
},
|
|
2334
2407
|
/**
|
|
@@ -2378,13 +2451,13 @@ export class AdminPunishmentsApi extends BaseAPI {
|
|
|
2378
2451
|
* @param {string | null} [uuid] Filter by player UUID
|
|
2379
2452
|
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
2380
2453
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
2381
|
-
* @param {Array<
|
|
2454
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
|
|
2382
2455
|
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
2383
2456
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
2384
2457
|
* @param {*} [options] Override http request option.
|
|
2385
2458
|
* @throws {RequiredError}
|
|
2386
2459
|
*/
|
|
2387
|
-
public getPunishments(page: number, limit: number, uuid?: string | null, username?: string | null, ipAddress?: string | null, type?: Array<
|
|
2460
|
+
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
2461
|
return AdminPunishmentsApiFp(this.configuration).getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(this.axios, this.basePath));
|
|
2389
2462
|
}
|
|
2390
2463
|
|
|
@@ -3280,12 +3353,12 @@ export const PunishmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3280
3353
|
* @summary Get punishments by player
|
|
3281
3354
|
* @param {string | null} [uuid] Player UUID
|
|
3282
3355
|
* @param {string | null} [username] Player username
|
|
3283
|
-
* @param {Array<
|
|
3356
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3284
3357
|
* @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
|
|
3285
3358
|
* @param {*} [options] Override http request option.
|
|
3286
3359
|
* @throws {RequiredError}
|
|
3287
3360
|
*/
|
|
3288
|
-
getPunishments1: async (uuid?: string | null, username?: string | null, type?: Array<
|
|
3361
|
+
getPunishments1: async (uuid?: string | null, username?: string | null, type?: Array<PunishmentType> | null, since?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3289
3362
|
const localVarPath = `/v1/punishment`;
|
|
3290
3363
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3291
3364
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3379,13 +3452,13 @@ export const PunishmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3379
3452
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
|
|
3380
3453
|
* @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
|
|
3381
3454
|
* @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
|
|
3382
|
-
* @param {Array<
|
|
3455
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3383
3456
|
* @param {string | null} [uuid] Filter by player UUID
|
|
3384
3457
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
3385
3458
|
* @param {*} [options] Override http request option.
|
|
3386
3459
|
* @throws {RequiredError}
|
|
3387
3460
|
*/
|
|
3388
|
-
getRecentPunishments: async (limit: number, page: number, issuedAfter?: number | null, issuedBefore?: number | null, expiresAfter?: number | null, expiresBefore?: number | null, type?: Array<
|
|
3461
|
+
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
3462
|
// verify required parameter 'limit' is not null or undefined
|
|
3390
3463
|
assertParamExists('getRecentPunishments', 'limit', limit)
|
|
3391
3464
|
// verify required parameter 'page' is not null or undefined
|
|
@@ -3479,12 +3552,12 @@ export const PunishmentApiFp = function(configuration?: Configuration) {
|
|
|
3479
3552
|
* @summary Get punishments by player
|
|
3480
3553
|
* @param {string | null} [uuid] Player UUID
|
|
3481
3554
|
* @param {string | null} [username] Player username
|
|
3482
|
-
* @param {Array<
|
|
3555
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3483
3556
|
* @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
|
|
3484
3557
|
* @param {*} [options] Override http request option.
|
|
3485
3558
|
* @throws {RequiredError}
|
|
3486
3559
|
*/
|
|
3487
|
-
async getPunishments1(uuid?: string | null, username?: string | null, type?: Array<
|
|
3560
|
+
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
3561
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPunishments1(uuid, username, type, since, options);
|
|
3489
3562
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3490
3563
|
const localVarOperationServerBasePath = operationServerMap['PunishmentApi.getPunishments1']?.[localVarOperationServerIndex]?.url;
|
|
@@ -3512,13 +3585,13 @@ export const PunishmentApiFp = function(configuration?: Configuration) {
|
|
|
3512
3585
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
|
|
3513
3586
|
* @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
|
|
3514
3587
|
* @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
|
|
3515
|
-
* @param {Array<
|
|
3588
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3516
3589
|
* @param {string | null} [uuid] Filter by player UUID
|
|
3517
3590
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
3518
3591
|
* @param {*} [options] Override http request option.
|
|
3519
3592
|
* @throws {RequiredError}
|
|
3520
3593
|
*/
|
|
3521
|
-
async getRecentPunishments(limit: number, page: number, issuedAfter?: number | null, issuedBefore?: number | null, expiresAfter?: number | null, expiresBefore?: number | null, type?: Array<
|
|
3594
|
+
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
3595
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options);
|
|
3523
3596
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3524
3597
|
const localVarOperationServerBasePath = operationServerMap['PunishmentApi.getRecentPunishments']?.[localVarOperationServerIndex]?.url;
|
|
@@ -3547,12 +3620,12 @@ export const PunishmentApiFactory = function (configuration?: Configuration, bas
|
|
|
3547
3620
|
* @summary Get punishments by player
|
|
3548
3621
|
* @param {string | null} [uuid] Player UUID
|
|
3549
3622
|
* @param {string | null} [username] Player username
|
|
3550
|
-
* @param {Array<
|
|
3623
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3551
3624
|
* @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
|
|
3552
3625
|
* @param {*} [options] Override http request option.
|
|
3553
3626
|
* @throws {RequiredError}
|
|
3554
3627
|
*/
|
|
3555
|
-
getPunishments1(uuid?: string | null, username?: string | null, type?: Array<
|
|
3628
|
+
getPunishments1(uuid?: string | null, username?: string | null, type?: Array<PunishmentType> | null, since?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<PunishmentGetPunishmentResponse>> {
|
|
3556
3629
|
return localVarFp.getPunishments1(uuid, username, type, since, options).then((request) => request(axios, basePath));
|
|
3557
3630
|
},
|
|
3558
3631
|
/**
|
|
@@ -3574,13 +3647,13 @@ export const PunishmentApiFactory = function (configuration?: Configuration, bas
|
|
|
3574
3647
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
|
|
3575
3648
|
* @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
|
|
3576
3649
|
* @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
|
|
3577
|
-
* @param {Array<
|
|
3650
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3578
3651
|
* @param {string | null} [uuid] Filter by player UUID
|
|
3579
3652
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
3580
3653
|
* @param {*} [options] Override http request option.
|
|
3581
3654
|
* @throws {RequiredError}
|
|
3582
3655
|
*/
|
|
3583
|
-
getRecentPunishments(limit: number, page: number, issuedAfter?: number | null, issuedBefore?: number | null, expiresAfter?: number | null, expiresBefore?: number | null, type?: Array<
|
|
3656
|
+
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
3657
|
return localVarFp.getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options).then((request) => request(axios, basePath));
|
|
3585
3658
|
},
|
|
3586
3659
|
};
|
|
@@ -3605,12 +3678,12 @@ export class PunishmentApi extends BaseAPI {
|
|
|
3605
3678
|
* @summary Get punishments by player
|
|
3606
3679
|
* @param {string | null} [uuid] Player UUID
|
|
3607
3680
|
* @param {string | null} [username] Player username
|
|
3608
|
-
* @param {Array<
|
|
3681
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3609
3682
|
* @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
|
|
3610
3683
|
* @param {*} [options] Override http request option.
|
|
3611
3684
|
* @throws {RequiredError}
|
|
3612
3685
|
*/
|
|
3613
|
-
public getPunishments1(uuid?: string | null, username?: string | null, type?: Array<
|
|
3686
|
+
public getPunishments1(uuid?: string | null, username?: string | null, type?: Array<PunishmentType> | null, since?: number | null, options?: RawAxiosRequestConfig) {
|
|
3614
3687
|
return PunishmentApiFp(this.configuration).getPunishments1(uuid, username, type, since, options).then((request) => request(this.axios, this.basePath));
|
|
3615
3688
|
}
|
|
3616
3689
|
|
|
@@ -3634,13 +3707,13 @@ export class PunishmentApi extends BaseAPI {
|
|
|
3634
3707
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
|
|
3635
3708
|
* @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
|
|
3636
3709
|
* @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
|
|
3637
|
-
* @param {Array<
|
|
3710
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3638
3711
|
* @param {string | null} [uuid] Filter by player UUID
|
|
3639
3712
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
3640
3713
|
* @param {*} [options] Override http request option.
|
|
3641
3714
|
* @throws {RequiredError}
|
|
3642
3715
|
*/
|
|
3643
|
-
public getRecentPunishments(limit: number, page: number, issuedAfter?: number | null, issuedBefore?: number | null, expiresAfter?: number | null, expiresBefore?: number | null, type?: Array<
|
|
3716
|
+
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
3717
|
return PunishmentApiFp(this.configuration).getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options).then((request) => request(this.axios, this.basePath));
|
|
3645
3718
|
}
|
|
3646
3719
|
}
|
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.0
|
|
7
|
+
* The version of the OpenAPI document: 3.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 3.1.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.0
|
|
6
|
+
* The version of the OpenAPI document: 3.1.0
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|