@rebornteam/reborn-api 2.9.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 +8 -0
- package/README.md +11 -2
- package/api.ts +280 -100
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +197 -97
- package/dist/api.js +149 -51
- 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 +197 -97
- package/dist/esm/api.js +147 -50
- 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/AdminConnectionCheckResult.md +25 -0
- package/docs/AdminConnectionsApi.md +59 -0
- package/docs/AdminCreatePunishmentDraftRequest.md +1 -1
- package/docs/AdminDashboardConnectionResponse.md +2 -0
- package/docs/AdminPunishmentEvaluation.md +1 -1
- package/docs/AdminPunishmentListItem.md +2 -2
- package/docs/AdminPunishmentSearchResponse.md +1 -1
- package/docs/AdminPunishmentsApi.md +5 -5
- package/docs/ConnectionGetConnectionDetailsResponse.md +11 -7
- package/docs/ConnectionResult.md +25 -0
- package/docs/ConnectionResultResultCode.md +20 -0
- package/docs/GameType.md +12 -0
- package/docs/PlayerApi.md +7 -8
- package/docs/PlayerGetPlayerInformation.md +4 -4
- 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/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:
|
|
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
|
*/
|
|
@@ -165,6 +160,23 @@ export interface AdminConnectionBypassResponse {
|
|
|
165
160
|
*/
|
|
166
161
|
'createdAt'?: string;
|
|
167
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* Result from a single VPN detection service for a given IP address
|
|
165
|
+
*/
|
|
166
|
+
export interface AdminConnectionCheckResult {
|
|
167
|
+
/**
|
|
168
|
+
* Service identifier
|
|
169
|
+
*/
|
|
170
|
+
'service'?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Whether this service flagged the IP as a VPN, proxy, or Tor exit node
|
|
173
|
+
*/
|
|
174
|
+
'result'?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* When this check was last performed
|
|
177
|
+
*/
|
|
178
|
+
'checkedAt'?: string;
|
|
179
|
+
}
|
|
168
180
|
/**
|
|
169
181
|
* Request to evaluate the impact of a punishment across one or more targets before applying
|
|
170
182
|
*/
|
|
@@ -176,7 +188,7 @@ export interface AdminCreatePunishmentDraftRequest {
|
|
|
176
188
|
/**
|
|
177
189
|
* Punishment type
|
|
178
190
|
*/
|
|
179
|
-
'type':
|
|
191
|
+
'type': PunishmentType;
|
|
180
192
|
/**
|
|
181
193
|
* Severity level: 1=Minor, 2=Moderate, 3=Severe, 4=Critical
|
|
182
194
|
*/
|
|
@@ -195,13 +207,6 @@ export interface AdminCreatePunishmentDraftRequest {
|
|
|
195
207
|
'forcePermanent'?: boolean;
|
|
196
208
|
}
|
|
197
209
|
|
|
198
|
-
export const AdminCreatePunishmentDraftRequestTypeEnum = {
|
|
199
|
-
Ban: 'BAN',
|
|
200
|
-
Mute: 'MUTE',
|
|
201
|
-
Warning: 'WARNING'
|
|
202
|
-
} as const;
|
|
203
|
-
|
|
204
|
-
export type AdminCreatePunishmentDraftRequestTypeEnum = typeof AdminCreatePunishmentDraftRequestTypeEnum[keyof typeof AdminCreatePunishmentDraftRequestTypeEnum];
|
|
205
210
|
|
|
206
211
|
export interface AdminDashboardConnectionResponse {
|
|
207
212
|
'id': number;
|
|
@@ -214,6 +219,10 @@ export interface AdminDashboardConnectionResponse {
|
|
|
214
219
|
'lastSeen'?: string | null;
|
|
215
220
|
'percentPositive': number;
|
|
216
221
|
'numberOfChecks': number;
|
|
222
|
+
/**
|
|
223
|
+
* Results from each VPN detection service for this IP address
|
|
224
|
+
*/
|
|
225
|
+
'results'?: Array<AdminConnectionCheckResult>;
|
|
217
226
|
}
|
|
218
227
|
export interface AdminGetDashboardStats {
|
|
219
228
|
'totalPlayers': number;
|
|
@@ -451,30 +460,34 @@ export interface AdminPunishmentEvaluation {
|
|
|
451
460
|
/**
|
|
452
461
|
* The effective punishment type that will be applied — may differ from the requested type if escalated to BAN at threshold
|
|
453
462
|
*/
|
|
454
|
-
'effectiveType'?:
|
|
463
|
+
'effectiveType'?: PunishmentType;
|
|
455
464
|
}
|
|
465
|
+
|
|
466
|
+
|
|
456
467
|
export interface AdminPunishmentListItem {
|
|
457
468
|
'id': number;
|
|
458
469
|
'reason': string;
|
|
459
470
|
'notes'?: string | null;
|
|
460
|
-
'type':
|
|
471
|
+
'type': PunishmentType;
|
|
461
472
|
'severity': number;
|
|
462
473
|
'createdBy': string;
|
|
463
474
|
'expiresAt'?: string | null;
|
|
464
475
|
'createdAt': string;
|
|
465
|
-
'targetType':
|
|
476
|
+
'targetType': PunishmentTargetType;
|
|
466
477
|
'targetUuid'?: string | null;
|
|
467
478
|
'targetUsername'?: string | null;
|
|
468
479
|
'targetIp'?: string | null;
|
|
469
480
|
}
|
|
481
|
+
|
|
482
|
+
|
|
470
483
|
/**
|
|
471
484
|
* Result of a punishment target search — either a list of matching players or a list of matching IP addresses
|
|
472
485
|
*/
|
|
473
486
|
export interface AdminPunishmentSearchResponse {
|
|
474
487
|
/**
|
|
475
|
-
* Search kind —
|
|
488
|
+
* Search kind — PLAYER for UUID/username searches, IP for IP address searches
|
|
476
489
|
*/
|
|
477
|
-
'kind'?:
|
|
490
|
+
'kind'?: SearchKind;
|
|
478
491
|
/**
|
|
479
492
|
* Matching players — only populated when kind=\'player\'
|
|
480
493
|
*/
|
|
@@ -485,12 +498,6 @@ export interface AdminPunishmentSearchResponse {
|
|
|
485
498
|
'ipResults'?: Array<AdminIpSearchResult>;
|
|
486
499
|
}
|
|
487
500
|
|
|
488
|
-
export const AdminPunishmentSearchResponseKindEnum = {
|
|
489
|
-
Player: 'player',
|
|
490
|
-
Ip: 'ip'
|
|
491
|
-
} as const;
|
|
492
|
-
|
|
493
|
-
export type AdminPunishmentSearchResponseKindEnum = typeof AdminPunishmentSearchResponseKindEnum[keyof typeof AdminPunishmentSearchResponseKindEnum];
|
|
494
501
|
|
|
495
502
|
/**
|
|
496
503
|
* A target for a punishment — either a player UUID or an IP address (mutually exclusive)
|
|
@@ -558,31 +565,66 @@ export interface ConnectionGetConnectionDetailsResponse {
|
|
|
558
565
|
*/
|
|
559
566
|
'ipAddress'?: string;
|
|
560
567
|
/**
|
|
561
|
-
* Approximate geographic location of the IP address
|
|
568
|
+
* Approximate geographic location of the IP address. Returns \'Local, N/A\' for localhost or private IPs.
|
|
562
569
|
*/
|
|
563
570
|
'approximateLocation'?: string;
|
|
564
571
|
/**
|
|
565
|
-
* 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).
|
|
572
|
+
* 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).
|
|
566
573
|
*/
|
|
567
574
|
'percentPositive'?: number;
|
|
568
575
|
/**
|
|
569
|
-
* Total number of VPN detection services successfully queried during the last check.
|
|
576
|
+
* Total number of VPN detection services successfully queried during the last check.
|
|
570
577
|
*/
|
|
571
578
|
'numberOfChecks'?: number;
|
|
572
|
-
'bypassed'?: boolean;
|
|
573
579
|
/**
|
|
574
|
-
*
|
|
580
|
+
* Indicates if this IP address has been administratively bypassed.
|
|
581
|
+
*/
|
|
582
|
+
'isBypassed'?: boolean;
|
|
583
|
+
/**
|
|
584
|
+
* Expiration timestamp for the bypass (ISO-8601 format). Null if not bypassed or bypass is permanent.
|
|
575
585
|
*/
|
|
576
586
|
'bypassedUntil'?: string | null;
|
|
577
587
|
/**
|
|
578
|
-
*
|
|
588
|
+
* Results from each VPN detection service that checked this IP address
|
|
589
|
+
*/
|
|
590
|
+
'results'?: Array<AdminConnectionCheckResult>;
|
|
591
|
+
/**
|
|
592
|
+
* Player information associated with this connection. Only populated when \'associate_uuid\' query parameter is provided.
|
|
579
593
|
*/
|
|
580
594
|
'playerInformation'?: PlayerGetPlayerInformation | null;
|
|
581
595
|
/**
|
|
582
596
|
* Combined list of active punishments for both the IP address and player UUID (if provided). Only includes non-expired punishments.
|
|
583
597
|
*/
|
|
584
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;
|
|
585
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
|
+
|
|
586
628
|
/**
|
|
587
629
|
* Request to create a connection bypass
|
|
588
630
|
*/
|
|
@@ -596,24 +638,34 @@ export interface CreateBypassRequest {
|
|
|
596
638
|
*/
|
|
597
639
|
'expiresAtEpoch': number;
|
|
598
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
|
+
|
|
599
651
|
/**
|
|
600
652
|
* Player information including join history, tracking data, and punishment scoring
|
|
601
653
|
*/
|
|
602
654
|
export interface PlayerGetPlayerInformation {
|
|
603
655
|
/**
|
|
604
|
-
*
|
|
656
|
+
* Indicates whether this is the player\'s first time joining the server.
|
|
605
657
|
*/
|
|
606
|
-
'
|
|
658
|
+
'firstJoin'?: boolean;
|
|
607
659
|
/**
|
|
608
|
-
*
|
|
660
|
+
* Timestamp of when the player first connected to the server (ISO-8601 format).
|
|
609
661
|
*/
|
|
610
|
-
'
|
|
662
|
+
'firstLogin'?: string;
|
|
611
663
|
/**
|
|
612
|
-
* Raw punishment score calculated as: SUM((base_weight × severity/10))
|
|
664
|
+
* Raw punishment score calculated as: SUM((base_weight × severity/10)). Used for tracking overall punishment severity.
|
|
613
665
|
*/
|
|
614
666
|
'punishmentPointsRaw'?: number;
|
|
615
667
|
/**
|
|
616
|
-
* Punishment score as a percentage (0-100). When
|
|
668
|
+
* Punishment score as a percentage (0-100). When >100% before applying a new punishment, the new punishment should be made permanent.
|
|
617
669
|
*/
|
|
618
670
|
'punishmentPointsPercent'?: number;
|
|
619
671
|
}
|
|
@@ -634,9 +686,9 @@ export interface PunishmentGetPunishmentResponse {
|
|
|
634
686
|
*/
|
|
635
687
|
'notes'?: string | null;
|
|
636
688
|
/**
|
|
637
|
-
* Type of punishment
|
|
689
|
+
* Type of punishment
|
|
638
690
|
*/
|
|
639
|
-
'type'?:
|
|
691
|
+
'type'?: PunishmentType;
|
|
640
692
|
/**
|
|
641
693
|
* Severity level (1=Minor, 2=Moderate, 3=Severe, 4=Critical)
|
|
642
694
|
*/
|
|
@@ -654,6 +706,8 @@ export interface PunishmentGetPunishmentResponse {
|
|
|
654
706
|
*/
|
|
655
707
|
'createdAt'?: string;
|
|
656
708
|
}
|
|
709
|
+
|
|
710
|
+
|
|
657
711
|
/**
|
|
658
712
|
* Response containing punishment severity durations for each type
|
|
659
713
|
*/
|
|
@@ -670,12 +724,14 @@ export interface PunishmentSeveritiesResponsePunishmentTypeInfo {
|
|
|
670
724
|
/**
|
|
671
725
|
* Type of punishment
|
|
672
726
|
*/
|
|
673
|
-
'type'?:
|
|
727
|
+
'type'?: PunishmentType;
|
|
674
728
|
/**
|
|
675
729
|
* List of severity levels with durations
|
|
676
730
|
*/
|
|
677
731
|
'severities'?: Array<PunishmentSeveritiesResponseSeverityInfo>;
|
|
678
732
|
}
|
|
733
|
+
|
|
734
|
+
|
|
679
735
|
/**
|
|
680
736
|
* Severity level with duration information
|
|
681
737
|
*/
|
|
@@ -690,6 +746,25 @@ export interface PunishmentSeveritiesResponseSeverityInfo {
|
|
|
690
746
|
'durationSeconds'?: number;
|
|
691
747
|
}
|
|
692
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
|
+
|
|
693
768
|
export const Rank = {
|
|
694
769
|
Administrator: 'ADMINISTRATOR',
|
|
695
770
|
Moderator: 'MODERATOR',
|
|
@@ -699,15 +774,39 @@ export const Rank = {
|
|
|
699
774
|
export type Rank = typeof Rank[keyof typeof Rank];
|
|
700
775
|
|
|
701
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
|
+
|
|
702
799
|
export interface ServerRegisterRequest {
|
|
703
|
-
'region':
|
|
704
|
-
'gameType':
|
|
800
|
+
'region': Region;
|
|
801
|
+
'gameType': GameType;
|
|
705
802
|
'containerId'?: string | null;
|
|
706
803
|
}
|
|
804
|
+
|
|
805
|
+
|
|
707
806
|
export interface ServerSessionDTO {
|
|
708
807
|
'id': string;
|
|
709
|
-
'region':
|
|
710
|
-
'gameType':
|
|
808
|
+
'region': Region;
|
|
809
|
+
'gameType': GameType;
|
|
711
810
|
'instanceName': string;
|
|
712
811
|
'containerId'?: string | null;
|
|
713
812
|
'startedAt': string;
|
|
@@ -715,6 +814,8 @@ export interface ServerSessionDTO {
|
|
|
715
814
|
'endedAt'?: string | null;
|
|
716
815
|
'online': boolean;
|
|
717
816
|
}
|
|
817
|
+
|
|
818
|
+
|
|
718
819
|
export interface TokenRequest {
|
|
719
820
|
'grant_type'?: string | null;
|
|
720
821
|
'client_id'?: string | null;
|
|
@@ -1447,6 +1548,48 @@ export const AdminConnectionsApiAxiosParamCreator = function (configuration?: Co
|
|
|
1447
1548
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1448
1549
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1449
1550
|
|
|
1551
|
+
return {
|
|
1552
|
+
url: toPathString(localVarUrlObj),
|
|
1553
|
+
options: localVarRequestOptions,
|
|
1554
|
+
};
|
|
1555
|
+
},
|
|
1556
|
+
/**
|
|
1557
|
+
* Re-runs one named VPN detection service for a specific connection, persists the updated result, and recalculates the connection\'s overall `percentPositive` and `numberOfChecks` from all stored checks. Returns the refreshed check result including its new `checkedAt` timestamp.
|
|
1558
|
+
* @summary Refresh a single VPN check
|
|
1559
|
+
* @param {number} connectionId
|
|
1560
|
+
* @param {string} service
|
|
1561
|
+
* @param {*} [options] Override http request option.
|
|
1562
|
+
* @throws {RequiredError}
|
|
1563
|
+
*/
|
|
1564
|
+
recheckService: async (connectionId: number, service: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1565
|
+
// verify required parameter 'connectionId' is not null or undefined
|
|
1566
|
+
assertParamExists('recheckService', 'connectionId', connectionId)
|
|
1567
|
+
// verify required parameter 'service' is not null or undefined
|
|
1568
|
+
assertParamExists('recheckService', 'service', service)
|
|
1569
|
+
const localVarPath = `/admin/connection/{connectionId}/recheck/{service}`
|
|
1570
|
+
.replace(`{${"connectionId"}}`, encodeURIComponent(String(connectionId)))
|
|
1571
|
+
.replace(`{${"service"}}`, encodeURIComponent(String(service)));
|
|
1572
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1573
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1574
|
+
let baseOptions;
|
|
1575
|
+
if (configuration) {
|
|
1576
|
+
baseOptions = configuration.baseOptions;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1580
|
+
const localVarHeaderParameter = {} as any;
|
|
1581
|
+
const localVarQueryParameter = {} as any;
|
|
1582
|
+
|
|
1583
|
+
// authentication DiscordAuth required
|
|
1584
|
+
// http bearer authentication required
|
|
1585
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1586
|
+
|
|
1587
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1588
|
+
|
|
1589
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1590
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1591
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1592
|
+
|
|
1450
1593
|
return {
|
|
1451
1594
|
url: toPathString(localVarUrlObj),
|
|
1452
1595
|
options: localVarRequestOptions,
|
|
@@ -1510,6 +1653,20 @@ export const AdminConnectionsApiFp = function(configuration?: Configuration) {
|
|
|
1510
1653
|
const localVarOperationServerBasePath = operationServerMap['AdminConnectionsApi.listConnections']?.[localVarOperationServerIndex]?.url;
|
|
1511
1654
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1512
1655
|
},
|
|
1656
|
+
/**
|
|
1657
|
+
* Re-runs one named VPN detection service for a specific connection, persists the updated result, and recalculates the connection\'s overall `percentPositive` and `numberOfChecks` from all stored checks. Returns the refreshed check result including its new `checkedAt` timestamp.
|
|
1658
|
+
* @summary Refresh a single VPN check
|
|
1659
|
+
* @param {number} connectionId
|
|
1660
|
+
* @param {string} service
|
|
1661
|
+
* @param {*} [options] Override http request option.
|
|
1662
|
+
* @throws {RequiredError}
|
|
1663
|
+
*/
|
|
1664
|
+
async recheckService(connectionId: number, service: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminConnectionCheckResult>> {
|
|
1665
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.recheckService(connectionId, service, options);
|
|
1666
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1667
|
+
const localVarOperationServerBasePath = operationServerMap['AdminConnectionsApi.recheckService']?.[localVarOperationServerIndex]?.url;
|
|
1668
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1669
|
+
},
|
|
1513
1670
|
}
|
|
1514
1671
|
};
|
|
1515
1672
|
|
|
@@ -1559,6 +1716,17 @@ export const AdminConnectionsApiFactory = function (configuration?: Configuratio
|
|
|
1559
1716
|
listConnections(createdAfter?: number | null, createdBefore?: number | null, ipAddress?: string | null, uuid?: string | null, isVpn?: boolean | null, page?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<AdminDashboardConnectionResponse>> {
|
|
1560
1717
|
return localVarFp.listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options).then((request) => request(axios, basePath));
|
|
1561
1718
|
},
|
|
1719
|
+
/**
|
|
1720
|
+
* Re-runs one named VPN detection service for a specific connection, persists the updated result, and recalculates the connection\'s overall `percentPositive` and `numberOfChecks` from all stored checks. Returns the refreshed check result including its new `checkedAt` timestamp.
|
|
1721
|
+
* @summary Refresh a single VPN check
|
|
1722
|
+
* @param {number} connectionId
|
|
1723
|
+
* @param {string} service
|
|
1724
|
+
* @param {*} [options] Override http request option.
|
|
1725
|
+
* @throws {RequiredError}
|
|
1726
|
+
*/
|
|
1727
|
+
recheckService(connectionId: number, service: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminConnectionCheckResult> {
|
|
1728
|
+
return localVarFp.recheckService(connectionId, service, options).then((request) => request(axios, basePath));
|
|
1729
|
+
},
|
|
1562
1730
|
};
|
|
1563
1731
|
};
|
|
1564
1732
|
|
|
@@ -1608,6 +1776,18 @@ export class AdminConnectionsApi extends BaseAPI {
|
|
|
1608
1776
|
public listConnections(createdAfter?: number | null, createdBefore?: number | null, ipAddress?: string | null, uuid?: string | null, isVpn?: boolean | null, page?: number | null, limit?: number | null, options?: RawAxiosRequestConfig) {
|
|
1609
1777
|
return AdminConnectionsApiFp(this.configuration).listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1610
1778
|
}
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* Re-runs one named VPN detection service for a specific connection, persists the updated result, and recalculates the connection\'s overall `percentPositive` and `numberOfChecks` from all stored checks. Returns the refreshed check result including its new `checkedAt` timestamp.
|
|
1782
|
+
* @summary Refresh a single VPN check
|
|
1783
|
+
* @param {number} connectionId
|
|
1784
|
+
* @param {string} service
|
|
1785
|
+
* @param {*} [options] Override http request option.
|
|
1786
|
+
* @throws {RequiredError}
|
|
1787
|
+
*/
|
|
1788
|
+
public recheckService(connectionId: number, service: string, options?: RawAxiosRequestConfig) {
|
|
1789
|
+
return AdminConnectionsApiFp(this.configuration).recheckService(connectionId, service, options).then((request) => request(this.axios, this.basePath));
|
|
1790
|
+
}
|
|
1611
1791
|
}
|
|
1612
1792
|
|
|
1613
1793
|
|
|
@@ -1914,7 +2094,7 @@ export class AdminPlayersApi extends BaseAPI {
|
|
|
1914
2094
|
export const AdminPunishmentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1915
2095
|
return {
|
|
1916
2096
|
/**
|
|
1917
|
-
* Apply a punishment to one or more targets.
|
|
2097
|
+
* Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
|
|
1918
2098
|
* @summary Apply punishment
|
|
1919
2099
|
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
1920
2100
|
* @param {*} [options] Override http request option.
|
|
@@ -1953,7 +2133,7 @@ export const AdminPunishmentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
1953
2133
|
};
|
|
1954
2134
|
},
|
|
1955
2135
|
/**
|
|
1956
|
-
* Preview the impact of a punishment across one or more targets.
|
|
2136
|
+
* Preview the impact of a punishment across one or more targets. No changes are made.
|
|
1957
2137
|
* @summary Evaluate punishment impact
|
|
1958
2138
|
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
1959
2139
|
* @param {*} [options] Override http request option.
|
|
@@ -1999,13 +2179,13 @@ export const AdminPunishmentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
1999
2179
|
* @param {string | null} [uuid] Filter by player UUID
|
|
2000
2180
|
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
2001
2181
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
2002
|
-
* @param {Array<
|
|
2182
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
|
|
2003
2183
|
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
2004
2184
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
2005
2185
|
* @param {*} [options] Override http request option.
|
|
2006
2186
|
* @throws {RequiredError}
|
|
2007
2187
|
*/
|
|
2008
|
-
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> => {
|
|
2009
2189
|
// verify required parameter 'page' is not null or undefined
|
|
2010
2190
|
assertParamExists('getPunishments', 'page', page)
|
|
2011
2191
|
// verify required parameter 'limit' is not null or undefined
|
|
@@ -2070,7 +2250,7 @@ export const AdminPunishmentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
2070
2250
|
};
|
|
2071
2251
|
},
|
|
2072
2252
|
/**
|
|
2073
|
-
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
2253
|
+
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
2074
2254
|
* @summary Search punishment targets
|
|
2075
2255
|
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
2076
2256
|
* @param {*} [options] Override http request option.
|
|
@@ -2120,7 +2300,7 @@ export const AdminPunishmentsApiFp = function(configuration?: Configuration) {
|
|
|
2120
2300
|
const localVarAxiosParamCreator = AdminPunishmentsApiAxiosParamCreator(configuration)
|
|
2121
2301
|
return {
|
|
2122
2302
|
/**
|
|
2123
|
-
* Apply a punishment to one or more targets.
|
|
2303
|
+
* Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
|
|
2124
2304
|
* @summary Apply punishment
|
|
2125
2305
|
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
2126
2306
|
* @param {*} [options] Override http request option.
|
|
@@ -2133,7 +2313,7 @@ export const AdminPunishmentsApiFp = function(configuration?: Configuration) {
|
|
|
2133
2313
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2134
2314
|
},
|
|
2135
2315
|
/**
|
|
2136
|
-
* Preview the impact of a punishment across one or more targets.
|
|
2316
|
+
* Preview the impact of a punishment across one or more targets. No changes are made.
|
|
2137
2317
|
* @summary Evaluate punishment impact
|
|
2138
2318
|
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
2139
2319
|
* @param {*} [options] Override http request option.
|
|
@@ -2153,20 +2333,20 @@ export const AdminPunishmentsApiFp = function(configuration?: Configuration) {
|
|
|
2153
2333
|
* @param {string | null} [uuid] Filter by player UUID
|
|
2154
2334
|
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
2155
2335
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
2156
|
-
* @param {Array<
|
|
2336
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
|
|
2157
2337
|
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
2158
2338
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
2159
2339
|
* @param {*} [options] Override http request option.
|
|
2160
2340
|
* @throws {RequiredError}
|
|
2161
2341
|
*/
|
|
2162
|
-
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>> {
|
|
2163
2343
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options);
|
|
2164
2344
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2165
2345
|
const localVarOperationServerBasePath = operationServerMap['AdminPunishmentsApi.getPunishments']?.[localVarOperationServerIndex]?.url;
|
|
2166
2346
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2167
2347
|
},
|
|
2168
2348
|
/**
|
|
2169
|
-
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
2349
|
+
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
2170
2350
|
* @summary Search punishment targets
|
|
2171
2351
|
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
2172
2352
|
* @param {*} [options] Override http request option.
|
|
@@ -2188,7 +2368,7 @@ export const AdminPunishmentsApiFactory = function (configuration?: Configuratio
|
|
|
2188
2368
|
const localVarFp = AdminPunishmentsApiFp(configuration)
|
|
2189
2369
|
return {
|
|
2190
2370
|
/**
|
|
2191
|
-
* Apply a punishment to one or more targets.
|
|
2371
|
+
* Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
|
|
2192
2372
|
* @summary Apply punishment
|
|
2193
2373
|
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
2194
2374
|
* @param {*} [options] Override http request option.
|
|
@@ -2198,7 +2378,7 @@ export const AdminPunishmentsApiFactory = function (configuration?: Configuratio
|
|
|
2198
2378
|
return localVarFp.applyPunishment(adminApplyPunishmentRequest, options).then((request) => request(axios, basePath));
|
|
2199
2379
|
},
|
|
2200
2380
|
/**
|
|
2201
|
-
* Preview the impact of a punishment across one or more targets.
|
|
2381
|
+
* Preview the impact of a punishment across one or more targets. No changes are made.
|
|
2202
2382
|
* @summary Evaluate punishment impact
|
|
2203
2383
|
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
2204
2384
|
* @param {*} [options] Override http request option.
|
|
@@ -2215,17 +2395,17 @@ export const AdminPunishmentsApiFactory = function (configuration?: Configuratio
|
|
|
2215
2395
|
* @param {string | null} [uuid] Filter by player UUID
|
|
2216
2396
|
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
2217
2397
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
2218
|
-
* @param {Array<
|
|
2398
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
|
|
2219
2399
|
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
2220
2400
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
2221
2401
|
* @param {*} [options] Override http request option.
|
|
2222
2402
|
* @throws {RequiredError}
|
|
2223
2403
|
*/
|
|
2224
|
-
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> {
|
|
2225
2405
|
return localVarFp.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(axios, basePath));
|
|
2226
2406
|
},
|
|
2227
2407
|
/**
|
|
2228
|
-
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
2408
|
+
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
2229
2409
|
* @summary Search punishment targets
|
|
2230
2410
|
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
2231
2411
|
* @param {*} [options] Override http request option.
|
|
@@ -2242,7 +2422,7 @@ export const AdminPunishmentsApiFactory = function (configuration?: Configuratio
|
|
|
2242
2422
|
*/
|
|
2243
2423
|
export class AdminPunishmentsApi extends BaseAPI {
|
|
2244
2424
|
/**
|
|
2245
|
-
* Apply a punishment to one or more targets.
|
|
2425
|
+
* Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
|
|
2246
2426
|
* @summary Apply punishment
|
|
2247
2427
|
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
2248
2428
|
* @param {*} [options] Override http request option.
|
|
@@ -2253,7 +2433,7 @@ export class AdminPunishmentsApi extends BaseAPI {
|
|
|
2253
2433
|
}
|
|
2254
2434
|
|
|
2255
2435
|
/**
|
|
2256
|
-
* Preview the impact of a punishment across one or more targets.
|
|
2436
|
+
* Preview the impact of a punishment across one or more targets. No changes are made.
|
|
2257
2437
|
* @summary Evaluate punishment impact
|
|
2258
2438
|
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
2259
2439
|
* @param {*} [options] Override http request option.
|
|
@@ -2271,18 +2451,18 @@ export class AdminPunishmentsApi extends BaseAPI {
|
|
|
2271
2451
|
* @param {string | null} [uuid] Filter by player UUID
|
|
2272
2452
|
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
2273
2453
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
2274
|
-
* @param {Array<
|
|
2454
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
|
|
2275
2455
|
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
2276
2456
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
2277
2457
|
* @param {*} [options] Override http request option.
|
|
2278
2458
|
* @throws {RequiredError}
|
|
2279
2459
|
*/
|
|
2280
|
-
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) {
|
|
2281
2461
|
return AdminPunishmentsApiFp(this.configuration).getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(this.axios, this.basePath));
|
|
2282
2462
|
}
|
|
2283
2463
|
|
|
2284
2464
|
/**
|
|
2285
|
-
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
2465
|
+
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
2286
2466
|
* @summary Search punishment targets
|
|
2287
2467
|
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
2288
2468
|
* @param {*} [options] Override http request option.
|
|
@@ -2955,9 +3135,9 @@ export class ConnectionApi extends BaseAPI {
|
|
|
2955
3135
|
export const PlayerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2956
3136
|
return {
|
|
2957
3137
|
/**
|
|
2958
|
-
* Retrieves player information by
|
|
3138
|
+
* Retrieves player information by Minecraft UUID including first join status and login timestamp.
|
|
2959
3139
|
* @summary Get player information
|
|
2960
|
-
* @param {string} uuid
|
|
3140
|
+
* @param {string} uuid
|
|
2961
3141
|
* @param {*} [options] Override http request option.
|
|
2962
3142
|
* @throws {RequiredError}
|
|
2963
3143
|
*/
|
|
@@ -2993,9 +3173,9 @@ export const PlayerApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2993
3173
|
};
|
|
2994
3174
|
},
|
|
2995
3175
|
/**
|
|
2996
|
-
* Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record
|
|
3176
|
+
* Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record are omitted from the response.
|
|
2997
3177
|
* @summary Batch resolve UUIDs to usernames
|
|
2998
|
-
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
3178
|
+
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
2999
3179
|
* @param {*} [options] Override http request option.
|
|
3000
3180
|
* @throws {RequiredError}
|
|
3001
3181
|
*/
|
|
@@ -3043,9 +3223,9 @@ export const PlayerApiFp = function(configuration?: Configuration) {
|
|
|
3043
3223
|
const localVarAxiosParamCreator = PlayerApiAxiosParamCreator(configuration)
|
|
3044
3224
|
return {
|
|
3045
3225
|
/**
|
|
3046
|
-
* Retrieves player information by
|
|
3226
|
+
* Retrieves player information by Minecraft UUID including first join status and login timestamp.
|
|
3047
3227
|
* @summary Get player information
|
|
3048
|
-
* @param {string} uuid
|
|
3228
|
+
* @param {string} uuid
|
|
3049
3229
|
* @param {*} [options] Override http request option.
|
|
3050
3230
|
* @throws {RequiredError}
|
|
3051
3231
|
*/
|
|
@@ -3056,9 +3236,9 @@ export const PlayerApiFp = function(configuration?: Configuration) {
|
|
|
3056
3236
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3057
3237
|
},
|
|
3058
3238
|
/**
|
|
3059
|
-
* Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record
|
|
3239
|
+
* Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record are omitted from the response.
|
|
3060
3240
|
* @summary Batch resolve UUIDs to usernames
|
|
3061
|
-
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
3241
|
+
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
3062
3242
|
* @param {*} [options] Override http request option.
|
|
3063
3243
|
* @throws {RequiredError}
|
|
3064
3244
|
*/
|
|
@@ -3078,9 +3258,9 @@ export const PlayerApiFactory = function (configuration?: Configuration, basePat
|
|
|
3078
3258
|
const localVarFp = PlayerApiFp(configuration)
|
|
3079
3259
|
return {
|
|
3080
3260
|
/**
|
|
3081
|
-
* Retrieves player information by
|
|
3261
|
+
* Retrieves player information by Minecraft UUID including first join status and login timestamp.
|
|
3082
3262
|
* @summary Get player information
|
|
3083
|
-
* @param {string} uuid
|
|
3263
|
+
* @param {string} uuid
|
|
3084
3264
|
* @param {*} [options] Override http request option.
|
|
3085
3265
|
* @throws {RequiredError}
|
|
3086
3266
|
*/
|
|
@@ -3088,9 +3268,9 @@ export const PlayerApiFactory = function (configuration?: Configuration, basePat
|
|
|
3088
3268
|
return localVarFp.getPlayer1(uuid, options).then((request) => request(axios, basePath));
|
|
3089
3269
|
},
|
|
3090
3270
|
/**
|
|
3091
|
-
* Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record
|
|
3271
|
+
* Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record are omitted from the response.
|
|
3092
3272
|
* @summary Batch resolve UUIDs to usernames
|
|
3093
|
-
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
3273
|
+
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
3094
3274
|
* @param {*} [options] Override http request option.
|
|
3095
3275
|
* @throws {RequiredError}
|
|
3096
3276
|
*/
|
|
@@ -3105,9 +3285,9 @@ export const PlayerApiFactory = function (configuration?: Configuration, basePat
|
|
|
3105
3285
|
*/
|
|
3106
3286
|
export class PlayerApi extends BaseAPI {
|
|
3107
3287
|
/**
|
|
3108
|
-
* Retrieves player information by
|
|
3288
|
+
* Retrieves player information by Minecraft UUID including first join status and login timestamp.
|
|
3109
3289
|
* @summary Get player information
|
|
3110
|
-
* @param {string} uuid
|
|
3290
|
+
* @param {string} uuid
|
|
3111
3291
|
* @param {*} [options] Override http request option.
|
|
3112
3292
|
* @throws {RequiredError}
|
|
3113
3293
|
*/
|
|
@@ -3116,9 +3296,9 @@ export class PlayerApi extends BaseAPI {
|
|
|
3116
3296
|
}
|
|
3117
3297
|
|
|
3118
3298
|
/**
|
|
3119
|
-
* Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record
|
|
3299
|
+
* Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record are omitted from the response.
|
|
3120
3300
|
* @summary Batch resolve UUIDs to usernames
|
|
3121
|
-
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
3301
|
+
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
3122
3302
|
* @param {*} [options] Override http request option.
|
|
3123
3303
|
* @throws {RequiredError}
|
|
3124
3304
|
*/
|
|
@@ -3173,12 +3353,12 @@ export const PunishmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3173
3353
|
* @summary Get punishments by player
|
|
3174
3354
|
* @param {string | null} [uuid] Player UUID
|
|
3175
3355
|
* @param {string | null} [username] Player username
|
|
3176
|
-
* @param {Array<
|
|
3356
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3177
3357
|
* @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
|
|
3178
3358
|
* @param {*} [options] Override http request option.
|
|
3179
3359
|
* @throws {RequiredError}
|
|
3180
3360
|
*/
|
|
3181
|
-
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> => {
|
|
3182
3362
|
const localVarPath = `/v1/punishment`;
|
|
3183
3363
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3184
3364
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3272,13 +3452,13 @@ export const PunishmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3272
3452
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
|
|
3273
3453
|
* @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
|
|
3274
3454
|
* @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
|
|
3275
|
-
* @param {Array<
|
|
3455
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3276
3456
|
* @param {string | null} [uuid] Filter by player UUID
|
|
3277
3457
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
3278
3458
|
* @param {*} [options] Override http request option.
|
|
3279
3459
|
* @throws {RequiredError}
|
|
3280
3460
|
*/
|
|
3281
|
-
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> => {
|
|
3282
3462
|
// verify required parameter 'limit' is not null or undefined
|
|
3283
3463
|
assertParamExists('getRecentPunishments', 'limit', limit)
|
|
3284
3464
|
// verify required parameter 'page' is not null or undefined
|
|
@@ -3372,12 +3552,12 @@ export const PunishmentApiFp = function(configuration?: Configuration) {
|
|
|
3372
3552
|
* @summary Get punishments by player
|
|
3373
3553
|
* @param {string | null} [uuid] Player UUID
|
|
3374
3554
|
* @param {string | null} [username] Player username
|
|
3375
|
-
* @param {Array<
|
|
3555
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3376
3556
|
* @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
|
|
3377
3557
|
* @param {*} [options] Override http request option.
|
|
3378
3558
|
* @throws {RequiredError}
|
|
3379
3559
|
*/
|
|
3380
|
-
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>>> {
|
|
3381
3561
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPunishments1(uuid, username, type, since, options);
|
|
3382
3562
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3383
3563
|
const localVarOperationServerBasePath = operationServerMap['PunishmentApi.getPunishments1']?.[localVarOperationServerIndex]?.url;
|
|
@@ -3405,13 +3585,13 @@ export const PunishmentApiFp = function(configuration?: Configuration) {
|
|
|
3405
3585
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
|
|
3406
3586
|
* @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
|
|
3407
3587
|
* @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
|
|
3408
|
-
* @param {Array<
|
|
3588
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3409
3589
|
* @param {string | null} [uuid] Filter by player UUID
|
|
3410
3590
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
3411
3591
|
* @param {*} [options] Override http request option.
|
|
3412
3592
|
* @throws {RequiredError}
|
|
3413
3593
|
*/
|
|
3414
|
-
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>>> {
|
|
3415
3595
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options);
|
|
3416
3596
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3417
3597
|
const localVarOperationServerBasePath = operationServerMap['PunishmentApi.getRecentPunishments']?.[localVarOperationServerIndex]?.url;
|
|
@@ -3440,12 +3620,12 @@ export const PunishmentApiFactory = function (configuration?: Configuration, bas
|
|
|
3440
3620
|
* @summary Get punishments by player
|
|
3441
3621
|
* @param {string | null} [uuid] Player UUID
|
|
3442
3622
|
* @param {string | null} [username] Player username
|
|
3443
|
-
* @param {Array<
|
|
3623
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3444
3624
|
* @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
|
|
3445
3625
|
* @param {*} [options] Override http request option.
|
|
3446
3626
|
* @throws {RequiredError}
|
|
3447
3627
|
*/
|
|
3448
|
-
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>> {
|
|
3449
3629
|
return localVarFp.getPunishments1(uuid, username, type, since, options).then((request) => request(axios, basePath));
|
|
3450
3630
|
},
|
|
3451
3631
|
/**
|
|
@@ -3467,13 +3647,13 @@ export const PunishmentApiFactory = function (configuration?: Configuration, bas
|
|
|
3467
3647
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
|
|
3468
3648
|
* @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
|
|
3469
3649
|
* @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
|
|
3470
|
-
* @param {Array<
|
|
3650
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3471
3651
|
* @param {string | null} [uuid] Filter by player UUID
|
|
3472
3652
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
3473
3653
|
* @param {*} [options] Override http request option.
|
|
3474
3654
|
* @throws {RequiredError}
|
|
3475
3655
|
*/
|
|
3476
|
-
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>> {
|
|
3477
3657
|
return localVarFp.getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options).then((request) => request(axios, basePath));
|
|
3478
3658
|
},
|
|
3479
3659
|
};
|
|
@@ -3498,12 +3678,12 @@ export class PunishmentApi extends BaseAPI {
|
|
|
3498
3678
|
* @summary Get punishments by player
|
|
3499
3679
|
* @param {string | null} [uuid] Player UUID
|
|
3500
3680
|
* @param {string | null} [username] Player username
|
|
3501
|
-
* @param {Array<
|
|
3681
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3502
3682
|
* @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
|
|
3503
3683
|
* @param {*} [options] Override http request option.
|
|
3504
3684
|
* @throws {RequiredError}
|
|
3505
3685
|
*/
|
|
3506
|
-
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) {
|
|
3507
3687
|
return PunishmentApiFp(this.configuration).getPunishments1(uuid, username, type, since, options).then((request) => request(this.axios, this.basePath));
|
|
3508
3688
|
}
|
|
3509
3689
|
|
|
@@ -3527,13 +3707,13 @@ export class PunishmentApi extends BaseAPI {
|
|
|
3527
3707
|
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
|
|
3528
3708
|
* @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
|
|
3529
3709
|
* @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
|
|
3530
|
-
* @param {Array<
|
|
3710
|
+
* @param {Array<PunishmentType> | null} [type] Filter by punishment types
|
|
3531
3711
|
* @param {string | null} [uuid] Filter by player UUID
|
|
3532
3712
|
* @param {string | null} [ipAddress] Filter by IP address
|
|
3533
3713
|
* @param {*} [options] Override http request option.
|
|
3534
3714
|
* @throws {RequiredError}
|
|
3535
3715
|
*/
|
|
3536
|
-
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) {
|
|
3537
3717
|
return PunishmentApiFp(this.configuration).getRecentPunishments(limit, page, issuedAfter, issuedBefore, expiresAfter, expiresBefore, type, uuid, ipAddress, options).then((request) => request(this.axios, this.basePath));
|
|
3538
3718
|
}
|
|
3539
3719
|
}
|