@rebornteam/reborn-api 2.5.1 → 2.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +20 -4
- package/README.md +32 -12
- package/api.ts +1372 -357
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +795 -176
- package/dist/api.js +954 -268
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +795 -176
- package/dist/esm/api.js +917 -243
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/AdminApplyPunishmentRequest.md +33 -0
- package/docs/AdminApplyPunishmentResponse.md +21 -0
- package/docs/AdminApplyPunishmentResult.md +33 -0
- package/docs/AdminClientCredentialResponse.md +2 -0
- package/docs/AdminClientCredentialsApi.md +17 -17
- package/docs/AdminConnectionsApi.md +70 -4
- package/docs/AdminCreatePunishmentDraftRequest.md +31 -0
- package/docs/AdminDashboardApi.md +2 -2
- package/docs/AdminIpSearchResult.md +23 -0
- package/docs/AdminPagedConnectionResponse.md +29 -0
- package/docs/AdminPagedPlayerResponse.md +29 -0
- package/docs/AdminPagedPunishmentResponse.md +29 -0
- package/docs/AdminPlayerDetailResponse.md +37 -0
- package/docs/AdminPlayerSearchResult.md +23 -0
- package/docs/AdminPlayerSummary.md +35 -0
- package/docs/AdminPlayersApi.md +122 -0
- package/docs/AdminPunishmentDraftResponse.md +21 -0
- package/docs/AdminPunishmentEvaluation.md +39 -0
- package/docs/AdminPunishmentListItem.md +42 -0
- package/docs/AdminPunishmentSearchResponse.md +25 -0
- package/docs/AdminPunishmentTarget.md +23 -0
- package/docs/AdminPunishmentsApi.md +248 -0
- package/docs/AdminUsernameHistoryEntry.md +23 -0
- package/docs/ClientCredentialRequest.md +2 -0
- package/docs/ConnectionApi.md +1 -1
- package/docs/DefaultApi.md +105 -0
- package/docs/PlayerApi.md +5 -5
- package/docs/PunishmentApi.md +8 -114
- package/docs/PunishmentGetPunishmentResponse.md +5 -3
- package/index.ts +2 -2
- package/package.json +2 -2
- package/docs/ApplyPunishmentRequest.md +0 -31
- package/docs/ApplyPunishmentResponse.md +0 -33
- package/docs/CreatePunishmentDraftRequest.md +0 -29
- package/docs/PunishmentDraftResponse.md +0 -39
package/dist/api.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Reborn API
|
|
6
|
-
* 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 - **
|
|
6
|
+
* 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
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.
|
|
8
|
+
* The version of the OpenAPI document: 2.6.4
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,13 +22,27 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.PunishmentApi = exports.PunishmentApiFactory = exports.PunishmentApiFp = exports.PunishmentApiAxiosParamCreator = exports.PlayerApi = exports.PlayerApiFactory = exports.PlayerApiFp = exports.PlayerApiAxiosParamCreator = exports.ConnectionApi = exports.ConnectionApiFactory = exports.ConnectionApiFp = exports.ConnectionApiAxiosParamCreator = exports.AdminDashboardApi = exports.AdminDashboardApiFactory = exports.AdminDashboardApiFp = exports.AdminDashboardApiAxiosParamCreator = exports.AdminConnectionsApi = exports.AdminConnectionsApiFactory = exports.AdminConnectionsApiFp = exports.AdminConnectionsApiAxiosParamCreator = exports.AdminClientCredentialsApi = exports.AdminClientCredentialsApiFactory = exports.AdminClientCredentialsApiFp = exports.AdminClientCredentialsApiAxiosParamCreator = void 0;
|
|
25
|
+
exports.PunishmentApi = exports.PunishmentApiFactory = exports.PunishmentApiFp = exports.PunishmentApiAxiosParamCreator = exports.PlayerApi = exports.PlayerApiFactory = exports.PlayerApiFp = exports.PlayerApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ConnectionApi = exports.ConnectionApiFactory = exports.ConnectionApiFp = exports.ConnectionApiAxiosParamCreator = exports.AdminPunishmentsApi = exports.AdminPunishmentsApiFactory = exports.AdminPunishmentsApiFp = exports.AdminPunishmentsApiAxiosParamCreator = exports.AdminPlayersApi = exports.AdminPlayersApiFactory = exports.AdminPlayersApiFp = exports.AdminPlayersApiAxiosParamCreator = exports.AdminDashboardApi = exports.AdminDashboardApiFactory = exports.AdminDashboardApiFp = exports.AdminDashboardApiAxiosParamCreator = exports.AdminConnectionsApi = exports.AdminConnectionsApiFactory = exports.AdminConnectionsApiFp = exports.AdminConnectionsApiAxiosParamCreator = exports.AdminClientCredentialsApi = exports.AdminClientCredentialsApiFactory = exports.AdminClientCredentialsApiFp = exports.AdminClientCredentialsApiAxiosParamCreator = exports.AdminPunishmentSearchResponseKindEnum = exports.AdminCreatePunishmentDraftRequestTypeEnum = exports.AdminApplyPunishmentRequestTypeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const common_1 = require("./common");
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("./base");
|
|
32
|
+
exports.AdminApplyPunishmentRequestTypeEnum = {
|
|
33
|
+
Ban: 'BAN',
|
|
34
|
+
Mute: 'MUTE',
|
|
35
|
+
Warning: 'WARNING'
|
|
36
|
+
};
|
|
37
|
+
exports.AdminCreatePunishmentDraftRequestTypeEnum = {
|
|
38
|
+
Ban: 'BAN',
|
|
39
|
+
Mute: 'MUTE',
|
|
40
|
+
Warning: 'WARNING'
|
|
41
|
+
};
|
|
42
|
+
exports.AdminPunishmentSearchResponseKindEnum = {
|
|
43
|
+
Player: 'player',
|
|
44
|
+
Ip: 'ip'
|
|
45
|
+
};
|
|
32
46
|
/**
|
|
33
47
|
* AdminClientCredentialsApi - axios parameter creator
|
|
34
48
|
*/
|
|
@@ -55,7 +69,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
55
69
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
56
70
|
const localVarHeaderParameter = {};
|
|
57
71
|
const localVarQueryParameter = {};
|
|
58
|
-
// authentication
|
|
72
|
+
// authentication DiscordAuth required
|
|
59
73
|
// http bearer authentication required
|
|
60
74
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
61
75
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -87,7 +101,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
87
101
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
88
102
|
const localVarHeaderParameter = {};
|
|
89
103
|
const localVarQueryParameter = {};
|
|
90
|
-
// authentication
|
|
104
|
+
// authentication DiscordAuth required
|
|
91
105
|
// http bearer authentication required
|
|
92
106
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
93
107
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -118,7 +132,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
118
132
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
119
133
|
const localVarHeaderParameter = {};
|
|
120
134
|
const localVarQueryParameter = {};
|
|
121
|
-
// authentication
|
|
135
|
+
// authentication DiscordAuth required
|
|
122
136
|
// http bearer authentication required
|
|
123
137
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
124
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -149,7 +163,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
149
163
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
150
164
|
const localVarHeaderParameter = {};
|
|
151
165
|
const localVarQueryParameter = {};
|
|
152
|
-
// authentication
|
|
166
|
+
// authentication DiscordAuth required
|
|
153
167
|
// http bearer authentication required
|
|
154
168
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
155
169
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
@@ -182,7 +196,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
182
196
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
183
197
|
const localVarHeaderParameter = {};
|
|
184
198
|
const localVarQueryParameter = {};
|
|
185
|
-
// authentication
|
|
199
|
+
// authentication DiscordAuth required
|
|
186
200
|
// http bearer authentication required
|
|
187
201
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
188
202
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -214,7 +228,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
214
228
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
215
229
|
const localVarHeaderParameter = {};
|
|
216
230
|
const localVarQueryParameter = {};
|
|
217
|
-
// authentication
|
|
231
|
+
// authentication DiscordAuth required
|
|
218
232
|
// http bearer authentication required
|
|
219
233
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
220
234
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
@@ -250,7 +264,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
250
264
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
251
265
|
const localVarHeaderParameter = {};
|
|
252
266
|
const localVarQueryParameter = {};
|
|
253
|
-
// authentication
|
|
267
|
+
// authentication DiscordAuth required
|
|
254
268
|
// http bearer authentication required
|
|
255
269
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
256
270
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -568,7 +582,7 @@ const AdminConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
568
582
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
569
583
|
const localVarHeaderParameter = {};
|
|
570
584
|
const localVarQueryParameter = {};
|
|
571
|
-
// authentication
|
|
585
|
+
// authentication DiscordAuth required
|
|
572
586
|
// http bearer authentication required
|
|
573
587
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
574
588
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -582,6 +596,55 @@ const AdminConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
582
596
|
options: localVarRequestOptions,
|
|
583
597
|
};
|
|
584
598
|
}),
|
|
599
|
+
/**
|
|
600
|
+
* Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
|
|
601
|
+
* @summary List all connections (paginated)
|
|
602
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
603
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
604
|
+
* @param {boolean | null} [isVpn] Filter by VPN status
|
|
605
|
+
* @param {number | null} [page] Page number (1-indexed)
|
|
606
|
+
* @param {number | null} [limit] Page size
|
|
607
|
+
* @param {*} [options] Override http request option.
|
|
608
|
+
* @throws {RequiredError}
|
|
609
|
+
*/
|
|
610
|
+
listAllConnections: (ipAddress_1, uuid_1, isVpn_1, page_1, limit_1, ...args_1) => __awaiter(this, [ipAddress_1, uuid_1, isVpn_1, page_1, limit_1, ...args_1], void 0, function* (ipAddress, uuid, isVpn, page, limit, options = {}) {
|
|
611
|
+
const localVarPath = `/admin/connection`;
|
|
612
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
613
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
614
|
+
let baseOptions;
|
|
615
|
+
if (configuration) {
|
|
616
|
+
baseOptions = configuration.baseOptions;
|
|
617
|
+
}
|
|
618
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
619
|
+
const localVarHeaderParameter = {};
|
|
620
|
+
const localVarQueryParameter = {};
|
|
621
|
+
// authentication DiscordAuth required
|
|
622
|
+
// http bearer authentication required
|
|
623
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
624
|
+
if (ipAddress !== undefined) {
|
|
625
|
+
localVarQueryParameter['ipAddress'] = ipAddress;
|
|
626
|
+
}
|
|
627
|
+
if (uuid !== undefined) {
|
|
628
|
+
localVarQueryParameter['uuid'] = uuid;
|
|
629
|
+
}
|
|
630
|
+
if (isVpn !== undefined) {
|
|
631
|
+
localVarQueryParameter['isVpn'] = isVpn;
|
|
632
|
+
}
|
|
633
|
+
if (page !== undefined) {
|
|
634
|
+
localVarQueryParameter['page'] = page;
|
|
635
|
+
}
|
|
636
|
+
if (limit !== undefined) {
|
|
637
|
+
localVarQueryParameter['limit'] = limit;
|
|
638
|
+
}
|
|
639
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
640
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
641
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
642
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
643
|
+
return {
|
|
644
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
645
|
+
options: localVarRequestOptions,
|
|
646
|
+
};
|
|
647
|
+
}),
|
|
585
648
|
/**
|
|
586
649
|
* Returns a list of recent connections with VPN detection status, bypass information, and associated player data. Optionally filter by epoch timestamp (seconds since Unix epoch).
|
|
587
650
|
* @summary List recent connections
|
|
@@ -606,7 +669,7 @@ const AdminConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
606
669
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
607
670
|
const localVarHeaderParameter = {};
|
|
608
671
|
const localVarQueryParameter = {};
|
|
609
|
-
// authentication
|
|
672
|
+
// authentication DiscordAuth required
|
|
610
673
|
// http bearer authentication required
|
|
611
674
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
612
675
|
if (createdAfter !== undefined) {
|
|
@@ -664,6 +727,26 @@ const AdminConnectionsApiFp = function (configuration) {
|
|
|
664
727
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
665
728
|
});
|
|
666
729
|
},
|
|
730
|
+
/**
|
|
731
|
+
* Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
|
|
732
|
+
* @summary List all connections (paginated)
|
|
733
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
734
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
735
|
+
* @param {boolean | null} [isVpn] Filter by VPN status
|
|
736
|
+
* @param {number | null} [page] Page number (1-indexed)
|
|
737
|
+
* @param {number | null} [limit] Page size
|
|
738
|
+
* @param {*} [options] Override http request option.
|
|
739
|
+
* @throws {RequiredError}
|
|
740
|
+
*/
|
|
741
|
+
listAllConnections(ipAddress, uuid, isVpn, page, limit, options) {
|
|
742
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
743
|
+
var _a, _b, _c;
|
|
744
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAllConnections(ipAddress, uuid, isVpn, page, limit, options);
|
|
745
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
746
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminConnectionsApi.listAllConnections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
747
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
748
|
+
});
|
|
749
|
+
},
|
|
667
750
|
/**
|
|
668
751
|
* Returns a list of recent connections with VPN detection status, bypass information, and associated player data. Optionally filter by epoch timestamp (seconds since Unix epoch).
|
|
669
752
|
* @summary List recent connections
|
|
@@ -705,6 +788,20 @@ const AdminConnectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
705
788
|
createBypass(createBypassRequest, options) {
|
|
706
789
|
return localVarFp.createBypass(createBypassRequest, options).then((request) => request(axios, basePath));
|
|
707
790
|
},
|
|
791
|
+
/**
|
|
792
|
+
* Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
|
|
793
|
+
* @summary List all connections (paginated)
|
|
794
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
795
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
796
|
+
* @param {boolean | null} [isVpn] Filter by VPN status
|
|
797
|
+
* @param {number | null} [page] Page number (1-indexed)
|
|
798
|
+
* @param {number | null} [limit] Page size
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
listAllConnections(ipAddress, uuid, isVpn, page, limit, options) {
|
|
803
|
+
return localVarFp.listAllConnections(ipAddress, uuid, isVpn, page, limit, options).then((request) => request(axios, basePath));
|
|
804
|
+
},
|
|
708
805
|
/**
|
|
709
806
|
* Returns a list of recent connections with VPN detection status, bypass information, and associated player data. Optionally filter by epoch timestamp (seconds since Unix epoch).
|
|
710
807
|
* @summary List recent connections
|
|
@@ -738,6 +835,20 @@ class AdminConnectionsApi extends base_1.BaseAPI {
|
|
|
738
835
|
createBypass(createBypassRequest, options) {
|
|
739
836
|
return (0, exports.AdminConnectionsApiFp)(this.configuration).createBypass(createBypassRequest, options).then((request) => request(this.axios, this.basePath));
|
|
740
837
|
}
|
|
838
|
+
/**
|
|
839
|
+
* Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
|
|
840
|
+
* @summary List all connections (paginated)
|
|
841
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
842
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
843
|
+
* @param {boolean | null} [isVpn] Filter by VPN status
|
|
844
|
+
* @param {number | null} [page] Page number (1-indexed)
|
|
845
|
+
* @param {number | null} [limit] Page size
|
|
846
|
+
* @param {*} [options] Override http request option.
|
|
847
|
+
* @throws {RequiredError}
|
|
848
|
+
*/
|
|
849
|
+
listAllConnections(ipAddress, uuid, isVpn, page, limit, options) {
|
|
850
|
+
return (0, exports.AdminConnectionsApiFp)(this.configuration).listAllConnections(ipAddress, uuid, isVpn, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
851
|
+
}
|
|
741
852
|
/**
|
|
742
853
|
* Returns a list of recent connections with VPN detection status, bypass information, and associated player data. Optionally filter by epoch timestamp (seconds since Unix epoch).
|
|
743
854
|
* @summary List recent connections
|
|
@@ -778,7 +889,7 @@ const AdminDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
778
889
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
779
890
|
const localVarHeaderParameter = {};
|
|
780
891
|
const localVarQueryParameter = {};
|
|
781
|
-
// authentication
|
|
892
|
+
// authentication DiscordAuth required
|
|
782
893
|
// http bearer authentication required
|
|
783
894
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
784
895
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
@@ -851,26 +962,22 @@ class AdminDashboardApi extends base_1.BaseAPI {
|
|
|
851
962
|
}
|
|
852
963
|
exports.AdminDashboardApi = AdminDashboardApi;
|
|
853
964
|
/**
|
|
854
|
-
*
|
|
965
|
+
* AdminPlayersApi - axios parameter creator
|
|
855
966
|
*/
|
|
856
|
-
const
|
|
967
|
+
const AdminPlayersApiAxiosParamCreator = function (configuration) {
|
|
857
968
|
return {
|
|
858
969
|
/**
|
|
859
|
-
*
|
|
860
|
-
* @summary
|
|
861
|
-
* @param {string}
|
|
862
|
-
* @param {boolean} forceRecheck When true, bypasses cached results and re-runs all VPN detection services. Use this when you need the most up-to-date analysis or suspect cached data may be stale. Default: false
|
|
863
|
-
* @param {string | null} [associateUuid] Minecraft player UUID to associate with this IP address. When provided, the API will: - Link this connection to the player\'s history - Update the player\'s username from Mojang API - Return player information (first join status, first login time) in the response - Track connection history for fraud detection This operation is asynchronous and won\'t block the response.
|
|
970
|
+
* Returns full detail for a single player including all known usernames and punishment scoring.
|
|
971
|
+
* @summary Get player detail
|
|
972
|
+
* @param {string} uuid Player Minecraft UUID
|
|
864
973
|
* @param {*} [options] Override http request option.
|
|
865
974
|
* @throws {RequiredError}
|
|
866
975
|
*/
|
|
867
|
-
|
|
868
|
-
// verify required parameter '
|
|
869
|
-
(0, common_1.assertParamExists)('
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
const localVarPath = `/v1/connection/get-connection-details/{ip}`
|
|
873
|
-
.replace(`{${"ip"}}`, encodeURIComponent(String(ip)));
|
|
976
|
+
getPlayer: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
|
|
977
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
978
|
+
(0, common_1.assertParamExists)('getPlayer', 'uuid', uuid);
|
|
979
|
+
const localVarPath = `/admin/player/{uuid}`
|
|
980
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
874
981
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
875
982
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
876
983
|
let baseOptions;
|
|
@@ -880,15 +987,9 @@ const ConnectionApiAxiosParamCreator = function (configuration) {
|
|
|
880
987
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
881
988
|
const localVarHeaderParameter = {};
|
|
882
989
|
const localVarQueryParameter = {};
|
|
883
|
-
// authentication
|
|
990
|
+
// authentication DiscordAuth required
|
|
884
991
|
// http bearer authentication required
|
|
885
992
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
886
|
-
if (forceRecheck !== undefined) {
|
|
887
|
-
localVarQueryParameter['force_recheck'] = forceRecheck;
|
|
888
|
-
}
|
|
889
|
-
if (associateUuid !== undefined) {
|
|
890
|
-
localVarQueryParameter['associate_uuid'] = associateUuid;
|
|
891
|
-
}
|
|
892
993
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
893
994
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
894
995
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -898,92 +999,21 @@ const ConnectionApiAxiosParamCreator = function (configuration) {
|
|
|
898
999
|
options: localVarRequestOptions,
|
|
899
1000
|
};
|
|
900
1001
|
}),
|
|
901
|
-
};
|
|
902
|
-
};
|
|
903
|
-
exports.ConnectionApiAxiosParamCreator = ConnectionApiAxiosParamCreator;
|
|
904
|
-
/**
|
|
905
|
-
* ConnectionApi - functional programming interface
|
|
906
|
-
*/
|
|
907
|
-
const ConnectionApiFp = function (configuration) {
|
|
908
|
-
const localVarAxiosParamCreator = (0, exports.ConnectionApiAxiosParamCreator)(configuration);
|
|
909
|
-
return {
|
|
910
|
-
/**
|
|
911
|
-
* Performs comprehensive analysis of an IPv4 address to detect VPN, proxy, or suspicious connections. **Features:** - Multi-provider VPN/proxy detection with aggregated confidence scoring - Approximate geolocation lookup (city and country) - Connection bypass status and expiration tracking - Optional player UUID association for connection history **Use Cases:** - Prevent VPN/proxy usage during player authentication - Track player connection history across sessions - Implement temporary bypass systems for false positives - Monitor suspicious connection patterns **Query Parameters:** - `force_recheck`: Bypass cache and re-run all detection services - `associate_uuid`: Link this IP to a player UUID and return player info **Caching:** Results are cached unless `force_recheck=true` is specified, reducing API costs and improving response times.
|
|
912
|
-
* @summary Check Connection and Detect VPN/Proxy
|
|
913
|
-
* @param {string} ip IPv4 address to analyze for VPN/proxy detection and geolocation
|
|
914
|
-
* @param {boolean} forceRecheck When true, bypasses cached results and re-runs all VPN detection services. Use this when you need the most up-to-date analysis or suspect cached data may be stale. Default: false
|
|
915
|
-
* @param {string | null} [associateUuid] Minecraft player UUID to associate with this IP address. When provided, the API will: - Link this connection to the player\'s history - Update the player\'s username from Mojang API - Return player information (first join status, first login time) in the response - Track connection history for fraud detection This operation is asynchronous and won\'t block the response.
|
|
916
|
-
* @param {*} [options] Override http request option.
|
|
917
|
-
* @throws {RequiredError}
|
|
918
|
-
*/
|
|
919
|
-
getConnectionDetails(ip, forceRecheck, associateUuid, options) {
|
|
920
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
921
|
-
var _a, _b, _c;
|
|
922
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getConnectionDetails(ip, forceRecheck, associateUuid, options);
|
|
923
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
924
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectionApi.getConnectionDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
925
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
926
|
-
});
|
|
927
|
-
},
|
|
928
|
-
};
|
|
929
|
-
};
|
|
930
|
-
exports.ConnectionApiFp = ConnectionApiFp;
|
|
931
|
-
/**
|
|
932
|
-
* ConnectionApi - factory interface
|
|
933
|
-
*/
|
|
934
|
-
const ConnectionApiFactory = function (configuration, basePath, axios) {
|
|
935
|
-
const localVarFp = (0, exports.ConnectionApiFp)(configuration);
|
|
936
|
-
return {
|
|
937
|
-
/**
|
|
938
|
-
* Performs comprehensive analysis of an IPv4 address to detect VPN, proxy, or suspicious connections. **Features:** - Multi-provider VPN/proxy detection with aggregated confidence scoring - Approximate geolocation lookup (city and country) - Connection bypass status and expiration tracking - Optional player UUID association for connection history **Use Cases:** - Prevent VPN/proxy usage during player authentication - Track player connection history across sessions - Implement temporary bypass systems for false positives - Monitor suspicious connection patterns **Query Parameters:** - `force_recheck`: Bypass cache and re-run all detection services - `associate_uuid`: Link this IP to a player UUID and return player info **Caching:** Results are cached unless `force_recheck=true` is specified, reducing API costs and improving response times.
|
|
939
|
-
* @summary Check Connection and Detect VPN/Proxy
|
|
940
|
-
* @param {string} ip IPv4 address to analyze for VPN/proxy detection and geolocation
|
|
941
|
-
* @param {boolean} forceRecheck When true, bypasses cached results and re-runs all VPN detection services. Use this when you need the most up-to-date analysis or suspect cached data may be stale. Default: false
|
|
942
|
-
* @param {string | null} [associateUuid] Minecraft player UUID to associate with this IP address. When provided, the API will: - Link this connection to the player\'s history - Update the player\'s username from Mojang API - Return player information (first join status, first login time) in the response - Track connection history for fraud detection This operation is asynchronous and won\'t block the response.
|
|
943
|
-
* @param {*} [options] Override http request option.
|
|
944
|
-
* @throws {RequiredError}
|
|
945
|
-
*/
|
|
946
|
-
getConnectionDetails(ip, forceRecheck, associateUuid, options) {
|
|
947
|
-
return localVarFp.getConnectionDetails(ip, forceRecheck, associateUuid, options).then((request) => request(axios, basePath));
|
|
948
|
-
},
|
|
949
|
-
};
|
|
950
|
-
};
|
|
951
|
-
exports.ConnectionApiFactory = ConnectionApiFactory;
|
|
952
|
-
/**
|
|
953
|
-
* ConnectionApi - object-oriented interface
|
|
954
|
-
*/
|
|
955
|
-
class ConnectionApi extends base_1.BaseAPI {
|
|
956
|
-
/**
|
|
957
|
-
* Performs comprehensive analysis of an IPv4 address to detect VPN, proxy, or suspicious connections. **Features:** - Multi-provider VPN/proxy detection with aggregated confidence scoring - Approximate geolocation lookup (city and country) - Connection bypass status and expiration tracking - Optional player UUID association for connection history **Use Cases:** - Prevent VPN/proxy usage during player authentication - Track player connection history across sessions - Implement temporary bypass systems for false positives - Monitor suspicious connection patterns **Query Parameters:** - `force_recheck`: Bypass cache and re-run all detection services - `associate_uuid`: Link this IP to a player UUID and return player info **Caching:** Results are cached unless `force_recheck=true` is specified, reducing API costs and improving response times.
|
|
958
|
-
* @summary Check Connection and Detect VPN/Proxy
|
|
959
|
-
* @param {string} ip IPv4 address to analyze for VPN/proxy detection and geolocation
|
|
960
|
-
* @param {boolean} forceRecheck When true, bypasses cached results and re-runs all VPN detection services. Use this when you need the most up-to-date analysis or suspect cached data may be stale. Default: false
|
|
961
|
-
* @param {string | null} [associateUuid] Minecraft player UUID to associate with this IP address. When provided, the API will: - Link this connection to the player\'s history - Update the player\'s username from Mojang API - Return player information (first join status, first login time) in the response - Track connection history for fraud detection This operation is asynchronous and won\'t block the response.
|
|
962
|
-
* @param {*} [options] Override http request option.
|
|
963
|
-
* @throws {RequiredError}
|
|
964
|
-
*/
|
|
965
|
-
getConnectionDetails(ip, forceRecheck, associateUuid, options) {
|
|
966
|
-
return (0, exports.ConnectionApiFp)(this.configuration).getConnectionDetails(ip, forceRecheck, associateUuid, options).then((request) => request(this.axios, this.basePath));
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
exports.ConnectionApi = ConnectionApi;
|
|
970
|
-
/**
|
|
971
|
-
* PlayerApi - axios parameter creator
|
|
972
|
-
*/
|
|
973
|
-
const PlayerApiAxiosParamCreator = function (configuration) {
|
|
974
|
-
return {
|
|
975
1002
|
/**
|
|
976
|
-
*
|
|
977
|
-
* @summary
|
|
978
|
-
* @param {
|
|
1003
|
+
* Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
|
|
1004
|
+
* @summary List players
|
|
1005
|
+
* @param {number} page Page number (1-indexed)
|
|
1006
|
+
* @param {number} limit Page size
|
|
1007
|
+
* @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
|
|
979
1008
|
* @param {*} [options] Override http request option.
|
|
980
1009
|
* @throws {RequiredError}
|
|
981
1010
|
*/
|
|
982
|
-
|
|
983
|
-
// verify required parameter '
|
|
984
|
-
(0, common_1.assertParamExists)('
|
|
985
|
-
|
|
986
|
-
|
|
1011
|
+
listPlayers: (page_1, limit_1, search_1, ...args_1) => __awaiter(this, [page_1, limit_1, search_1, ...args_1], void 0, function* (page, limit, search, options = {}) {
|
|
1012
|
+
// verify required parameter 'page' is not null or undefined
|
|
1013
|
+
(0, common_1.assertParamExists)('listPlayers', 'page', page);
|
|
1014
|
+
// verify required parameter 'limit' is not null or undefined
|
|
1015
|
+
(0, common_1.assertParamExists)('listPlayers', 'limit', limit);
|
|
1016
|
+
const localVarPath = `/admin/player`;
|
|
987
1017
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
988
1018
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
989
1019
|
let baseOptions;
|
|
@@ -993,9 +1023,18 @@ const PlayerApiAxiosParamCreator = function (configuration) {
|
|
|
993
1023
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
994
1024
|
const localVarHeaderParameter = {};
|
|
995
1025
|
const localVarQueryParameter = {};
|
|
996
|
-
// authentication
|
|
1026
|
+
// authentication DiscordAuth required
|
|
997
1027
|
// http bearer authentication required
|
|
998
1028
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1029
|
+
if (search !== undefined) {
|
|
1030
|
+
localVarQueryParameter['search'] = search;
|
|
1031
|
+
}
|
|
1032
|
+
if (page !== undefined) {
|
|
1033
|
+
localVarQueryParameter['page'] = page;
|
|
1034
|
+
}
|
|
1035
|
+
if (limit !== undefined) {
|
|
1036
|
+
localVarQueryParameter['limit'] = limit;
|
|
1037
|
+
}
|
|
999
1038
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1000
1039
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1001
1040
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1007,17 +1046,17 @@ const PlayerApiAxiosParamCreator = function (configuration) {
|
|
|
1007
1046
|
}),
|
|
1008
1047
|
};
|
|
1009
1048
|
};
|
|
1010
|
-
exports.
|
|
1049
|
+
exports.AdminPlayersApiAxiosParamCreator = AdminPlayersApiAxiosParamCreator;
|
|
1011
1050
|
/**
|
|
1012
|
-
*
|
|
1051
|
+
* AdminPlayersApi - functional programming interface
|
|
1013
1052
|
*/
|
|
1014
|
-
const
|
|
1015
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
1053
|
+
const AdminPlayersApiFp = function (configuration) {
|
|
1054
|
+
const localVarAxiosParamCreator = (0, exports.AdminPlayersApiAxiosParamCreator)(configuration);
|
|
1016
1055
|
return {
|
|
1017
1056
|
/**
|
|
1018
|
-
*
|
|
1019
|
-
* @summary Get
|
|
1020
|
-
* @param {string} uuid
|
|
1057
|
+
* Returns full detail for a single player including all known usernames and punishment scoring.
|
|
1058
|
+
* @summary Get player detail
|
|
1059
|
+
* @param {string} uuid Player Minecraft UUID
|
|
1021
1060
|
* @param {*} [options] Override http request option.
|
|
1022
1061
|
* @throws {RequiredError}
|
|
1023
1062
|
*/
|
|
@@ -1026,64 +1065,106 @@ const PlayerApiFp = function (configuration) {
|
|
|
1026
1065
|
var _a, _b, _c;
|
|
1027
1066
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlayer(uuid, options);
|
|
1028
1067
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1029
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1068
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminPlayersApi.getPlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1069
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1070
|
+
});
|
|
1071
|
+
},
|
|
1072
|
+
/**
|
|
1073
|
+
* Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
|
|
1074
|
+
* @summary List players
|
|
1075
|
+
* @param {number} page Page number (1-indexed)
|
|
1076
|
+
* @param {number} limit Page size
|
|
1077
|
+
* @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
|
|
1078
|
+
* @param {*} [options] Override http request option.
|
|
1079
|
+
* @throws {RequiredError}
|
|
1080
|
+
*/
|
|
1081
|
+
listPlayers(page, limit, search, options) {
|
|
1082
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1083
|
+
var _a, _b, _c;
|
|
1084
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(page, limit, search, options);
|
|
1085
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1086
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminPlayersApi.listPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1030
1087
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1031
1088
|
});
|
|
1032
1089
|
},
|
|
1033
1090
|
};
|
|
1034
1091
|
};
|
|
1035
|
-
exports.
|
|
1092
|
+
exports.AdminPlayersApiFp = AdminPlayersApiFp;
|
|
1036
1093
|
/**
|
|
1037
|
-
*
|
|
1094
|
+
* AdminPlayersApi - factory interface
|
|
1038
1095
|
*/
|
|
1039
|
-
const
|
|
1040
|
-
const localVarFp = (0, exports.
|
|
1096
|
+
const AdminPlayersApiFactory = function (configuration, basePath, axios) {
|
|
1097
|
+
const localVarFp = (0, exports.AdminPlayersApiFp)(configuration);
|
|
1041
1098
|
return {
|
|
1042
1099
|
/**
|
|
1043
|
-
*
|
|
1044
|
-
* @summary Get
|
|
1045
|
-
* @param {string} uuid
|
|
1100
|
+
* Returns full detail for a single player including all known usernames and punishment scoring.
|
|
1101
|
+
* @summary Get player detail
|
|
1102
|
+
* @param {string} uuid Player Minecraft UUID
|
|
1046
1103
|
* @param {*} [options] Override http request option.
|
|
1047
1104
|
* @throws {RequiredError}
|
|
1048
1105
|
*/
|
|
1049
1106
|
getPlayer(uuid, options) {
|
|
1050
1107
|
return localVarFp.getPlayer(uuid, options).then((request) => request(axios, basePath));
|
|
1051
1108
|
},
|
|
1109
|
+
/**
|
|
1110
|
+
* Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
|
|
1111
|
+
* @summary List players
|
|
1112
|
+
* @param {number} page Page number (1-indexed)
|
|
1113
|
+
* @param {number} limit Page size
|
|
1114
|
+
* @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
|
|
1115
|
+
* @param {*} [options] Override http request option.
|
|
1116
|
+
* @throws {RequiredError}
|
|
1117
|
+
*/
|
|
1118
|
+
listPlayers(page, limit, search, options) {
|
|
1119
|
+
return localVarFp.listPlayers(page, limit, search, options).then((request) => request(axios, basePath));
|
|
1120
|
+
},
|
|
1052
1121
|
};
|
|
1053
1122
|
};
|
|
1054
|
-
exports.
|
|
1123
|
+
exports.AdminPlayersApiFactory = AdminPlayersApiFactory;
|
|
1055
1124
|
/**
|
|
1056
|
-
*
|
|
1125
|
+
* AdminPlayersApi - object-oriented interface
|
|
1057
1126
|
*/
|
|
1058
|
-
class
|
|
1127
|
+
class AdminPlayersApi extends base_1.BaseAPI {
|
|
1059
1128
|
/**
|
|
1060
|
-
*
|
|
1061
|
-
* @summary Get
|
|
1062
|
-
* @param {string} uuid
|
|
1129
|
+
* Returns full detail for a single player including all known usernames and punishment scoring.
|
|
1130
|
+
* @summary Get player detail
|
|
1131
|
+
* @param {string} uuid Player Minecraft UUID
|
|
1063
1132
|
* @param {*} [options] Override http request option.
|
|
1064
1133
|
* @throws {RequiredError}
|
|
1065
1134
|
*/
|
|
1066
1135
|
getPlayer(uuid, options) {
|
|
1067
|
-
return (0, exports.
|
|
1136
|
+
return (0, exports.AdminPlayersApiFp)(this.configuration).getPlayer(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
|
|
1140
|
+
* @summary List players
|
|
1141
|
+
* @param {number} page Page number (1-indexed)
|
|
1142
|
+
* @param {number} limit Page size
|
|
1143
|
+
* @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
|
|
1144
|
+
* @param {*} [options] Override http request option.
|
|
1145
|
+
* @throws {RequiredError}
|
|
1146
|
+
*/
|
|
1147
|
+
listPlayers(page, limit, search, options) {
|
|
1148
|
+
return (0, exports.AdminPlayersApiFp)(this.configuration).listPlayers(page, limit, search, options).then((request) => request(this.axios, this.basePath));
|
|
1068
1149
|
}
|
|
1069
1150
|
}
|
|
1070
|
-
exports.
|
|
1151
|
+
exports.AdminPlayersApi = AdminPlayersApi;
|
|
1071
1152
|
/**
|
|
1072
|
-
*
|
|
1153
|
+
* AdminPunishmentsApi - axios parameter creator
|
|
1073
1154
|
*/
|
|
1074
|
-
const
|
|
1155
|
+
const AdminPunishmentsApiAxiosParamCreator = function (configuration) {
|
|
1075
1156
|
return {
|
|
1076
1157
|
/**
|
|
1077
|
-
*
|
|
1078
|
-
* @summary Apply
|
|
1079
|
-
* @param {
|
|
1158
|
+
* Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
|
|
1159
|
+
* @summary Apply punishment
|
|
1160
|
+
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
1080
1161
|
* @param {*} [options] Override http request option.
|
|
1081
1162
|
* @throws {RequiredError}
|
|
1082
1163
|
*/
|
|
1083
|
-
applyPunishment: (
|
|
1084
|
-
// verify required parameter '
|
|
1085
|
-
(0, common_1.assertParamExists)('applyPunishment', '
|
|
1086
|
-
const localVarPath = `/
|
|
1164
|
+
applyPunishment: (adminApplyPunishmentRequest_1, ...args_1) => __awaiter(this, [adminApplyPunishmentRequest_1, ...args_1], void 0, function* (adminApplyPunishmentRequest, options = {}) {
|
|
1165
|
+
// verify required parameter 'adminApplyPunishmentRequest' is not null or undefined
|
|
1166
|
+
(0, common_1.assertParamExists)('applyPunishment', 'adminApplyPunishmentRequest', adminApplyPunishmentRequest);
|
|
1167
|
+
const localVarPath = `/admin/punishment/apply`;
|
|
1087
1168
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1088
1169
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1089
1170
|
let baseOptions;
|
|
@@ -1093,7 +1174,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1093
1174
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1094
1175
|
const localVarHeaderParameter = {};
|
|
1095
1176
|
const localVarQueryParameter = {};
|
|
1096
|
-
// authentication
|
|
1177
|
+
// authentication DiscordAuth required
|
|
1097
1178
|
// http bearer authentication required
|
|
1098
1179
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1099
1180
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -1101,23 +1182,23 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1101
1182
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1102
1183
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1103
1184
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1104
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1185
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminApplyPunishmentRequest, localVarRequestOptions, configuration);
|
|
1105
1186
|
return {
|
|
1106
1187
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1107
1188
|
options: localVarRequestOptions,
|
|
1108
1189
|
};
|
|
1109
1190
|
}),
|
|
1110
1191
|
/**
|
|
1111
|
-
* Preview
|
|
1112
|
-
* @summary
|
|
1113
|
-
* @param {
|
|
1192
|
+
* Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
|
|
1193
|
+
* @summary Evaluate punishment impact
|
|
1194
|
+
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
1114
1195
|
* @param {*} [options] Override http request option.
|
|
1115
1196
|
* @throws {RequiredError}
|
|
1116
1197
|
*/
|
|
1117
|
-
|
|
1118
|
-
// verify required parameter '
|
|
1119
|
-
(0, common_1.assertParamExists)('
|
|
1120
|
-
const localVarPath = `/
|
|
1198
|
+
createDraft: (adminCreatePunishmentDraftRequest_1, ...args_1) => __awaiter(this, [adminCreatePunishmentDraftRequest_1, ...args_1], void 0, function* (adminCreatePunishmentDraftRequest, options = {}) {
|
|
1199
|
+
// verify required parameter 'adminCreatePunishmentDraftRequest' is not null or undefined
|
|
1200
|
+
(0, common_1.assertParamExists)('createDraft', 'adminCreatePunishmentDraftRequest', adminCreatePunishmentDraftRequest);
|
|
1201
|
+
const localVarPath = `/admin/punishment/draft`;
|
|
1121
1202
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1122
1203
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1123
1204
|
let baseOptions;
|
|
@@ -1127,7 +1208,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1127
1208
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1128
1209
|
const localVarHeaderParameter = {};
|
|
1129
1210
|
const localVarQueryParameter = {};
|
|
1130
|
-
// authentication
|
|
1211
|
+
// authentication DiscordAuth required
|
|
1131
1212
|
// http bearer authentication required
|
|
1132
1213
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1133
1214
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -1135,20 +1216,32 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1135
1216
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1136
1217
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1137
1218
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1138
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1219
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminCreatePunishmentDraftRequest, localVarRequestOptions, configuration);
|
|
1139
1220
|
return {
|
|
1140
1221
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1141
1222
|
options: localVarRequestOptions,
|
|
1142
1223
|
};
|
|
1143
1224
|
}),
|
|
1144
1225
|
/**
|
|
1145
|
-
*
|
|
1146
|
-
* @summary
|
|
1226
|
+
* Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
|
|
1227
|
+
* @summary List punishments
|
|
1228
|
+
* @param {number} page Page number (1-indexed)
|
|
1229
|
+
* @param {number} limit Page size
|
|
1230
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1231
|
+
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
1232
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1233
|
+
* @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
|
|
1234
|
+
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
1235
|
+
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
1147
1236
|
* @param {*} [options] Override http request option.
|
|
1148
1237
|
* @throws {RequiredError}
|
|
1149
1238
|
*/
|
|
1150
|
-
|
|
1151
|
-
|
|
1239
|
+
getPunishments: (page_1, limit_1, uuid_1, username_1, ipAddress_1, type_1, issuedAfter_1, issuedBefore_1, ...args_1) => __awaiter(this, [page_1, limit_1, uuid_1, username_1, ipAddress_1, type_1, issuedAfter_1, issuedBefore_1, ...args_1], void 0, function* (page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options = {}) {
|
|
1240
|
+
// verify required parameter 'page' is not null or undefined
|
|
1241
|
+
(0, common_1.assertParamExists)('getPunishments', 'page', page);
|
|
1242
|
+
// verify required parameter 'limit' is not null or undefined
|
|
1243
|
+
(0, common_1.assertParamExists)('getPunishments', 'limit', limit);
|
|
1244
|
+
const localVarPath = `/admin/punishment`;
|
|
1152
1245
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1153
1246
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1154
1247
|
let baseOptions;
|
|
@@ -1158,30 +1251,695 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1158
1251
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1159
1252
|
const localVarHeaderParameter = {};
|
|
1160
1253
|
const localVarQueryParameter = {};
|
|
1161
|
-
// authentication
|
|
1254
|
+
// authentication DiscordAuth required
|
|
1162
1255
|
// http bearer authentication required
|
|
1163
1256
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1257
|
+
if (uuid !== undefined) {
|
|
1258
|
+
localVarQueryParameter['uuid'] = uuid;
|
|
1259
|
+
}
|
|
1260
|
+
if (username !== undefined) {
|
|
1261
|
+
localVarQueryParameter['username'] = username;
|
|
1262
|
+
}
|
|
1263
|
+
if (ipAddress !== undefined) {
|
|
1264
|
+
localVarQueryParameter['ipAddress'] = ipAddress;
|
|
1265
|
+
}
|
|
1266
|
+
if (type) {
|
|
1267
|
+
localVarQueryParameter['type'] = type.join(base_1.COLLECTION_FORMATS.csv);
|
|
1268
|
+
}
|
|
1269
|
+
if (issuedAfter !== undefined) {
|
|
1270
|
+
localVarQueryParameter['issuedAfter'] = issuedAfter;
|
|
1271
|
+
}
|
|
1272
|
+
if (issuedBefore !== undefined) {
|
|
1273
|
+
localVarQueryParameter['issuedBefore'] = issuedBefore;
|
|
1274
|
+
}
|
|
1275
|
+
if (page !== undefined) {
|
|
1276
|
+
localVarQueryParameter['page'] = page;
|
|
1277
|
+
}
|
|
1278
|
+
if (limit !== undefined) {
|
|
1279
|
+
localVarQueryParameter['limit'] = limit;
|
|
1280
|
+
}
|
|
1281
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1282
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1283
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1284
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1285
|
+
return {
|
|
1286
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1287
|
+
options: localVarRequestOptions,
|
|
1288
|
+
};
|
|
1289
|
+
}),
|
|
1290
|
+
/**
|
|
1291
|
+
* Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
|
|
1292
|
+
* @summary Search punishment targets
|
|
1293
|
+
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
1294
|
+
* @param {*} [options] Override http request option.
|
|
1295
|
+
* @throws {RequiredError}
|
|
1296
|
+
*/
|
|
1297
|
+
searchTargets: (q_1, ...args_1) => __awaiter(this, [q_1, ...args_1], void 0, function* (q, options = {}) {
|
|
1298
|
+
// verify required parameter 'q' is not null or undefined
|
|
1299
|
+
(0, common_1.assertParamExists)('searchTargets', 'q', q);
|
|
1300
|
+
const localVarPath = `/admin/punishment/search`;
|
|
1301
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1302
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1303
|
+
let baseOptions;
|
|
1304
|
+
if (configuration) {
|
|
1305
|
+
baseOptions = configuration.baseOptions;
|
|
1306
|
+
}
|
|
1307
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1308
|
+
const localVarHeaderParameter = {};
|
|
1309
|
+
const localVarQueryParameter = {};
|
|
1310
|
+
// authentication DiscordAuth required
|
|
1311
|
+
// http bearer authentication required
|
|
1312
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1313
|
+
if (q !== undefined) {
|
|
1314
|
+
localVarQueryParameter['q'] = q;
|
|
1315
|
+
}
|
|
1316
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1317
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1318
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1319
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1320
|
+
return {
|
|
1321
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1322
|
+
options: localVarRequestOptions,
|
|
1323
|
+
};
|
|
1324
|
+
}),
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1327
|
+
exports.AdminPunishmentsApiAxiosParamCreator = AdminPunishmentsApiAxiosParamCreator;
|
|
1328
|
+
/**
|
|
1329
|
+
* AdminPunishmentsApi - functional programming interface
|
|
1330
|
+
*/
|
|
1331
|
+
const AdminPunishmentsApiFp = function (configuration) {
|
|
1332
|
+
const localVarAxiosParamCreator = (0, exports.AdminPunishmentsApiAxiosParamCreator)(configuration);
|
|
1333
|
+
return {
|
|
1334
|
+
/**
|
|
1335
|
+
* Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
|
|
1336
|
+
* @summary Apply punishment
|
|
1337
|
+
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
1338
|
+
* @param {*} [options] Override http request option.
|
|
1339
|
+
* @throws {RequiredError}
|
|
1340
|
+
*/
|
|
1341
|
+
applyPunishment(adminApplyPunishmentRequest, options) {
|
|
1342
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1343
|
+
var _a, _b, _c;
|
|
1344
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.applyPunishment(adminApplyPunishmentRequest, options);
|
|
1345
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1346
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminPunishmentsApi.applyPunishment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1347
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1348
|
+
});
|
|
1349
|
+
},
|
|
1350
|
+
/**
|
|
1351
|
+
* Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
|
|
1352
|
+
* @summary Evaluate punishment impact
|
|
1353
|
+
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
1354
|
+
* @param {*} [options] Override http request option.
|
|
1355
|
+
* @throws {RequiredError}
|
|
1356
|
+
*/
|
|
1357
|
+
createDraft(adminCreatePunishmentDraftRequest, options) {
|
|
1358
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1359
|
+
var _a, _b, _c;
|
|
1360
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createDraft(adminCreatePunishmentDraftRequest, options);
|
|
1361
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1362
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminPunishmentsApi.createDraft']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1363
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1364
|
+
});
|
|
1365
|
+
},
|
|
1366
|
+
/**
|
|
1367
|
+
* Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
|
|
1368
|
+
* @summary List punishments
|
|
1369
|
+
* @param {number} page Page number (1-indexed)
|
|
1370
|
+
* @param {number} limit Page size
|
|
1371
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1372
|
+
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
1373
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1374
|
+
* @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
|
|
1375
|
+
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
1376
|
+
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
1377
|
+
* @param {*} [options] Override http request option.
|
|
1378
|
+
* @throws {RequiredError}
|
|
1379
|
+
*/
|
|
1380
|
+
getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options) {
|
|
1381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1382
|
+
var _a, _b, _c;
|
|
1383
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options);
|
|
1384
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1385
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminPunishmentsApi.getPunishments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1386
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1387
|
+
});
|
|
1388
|
+
},
|
|
1389
|
+
/**
|
|
1390
|
+
* Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
|
|
1391
|
+
* @summary Search punishment targets
|
|
1392
|
+
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
1393
|
+
* @param {*} [options] Override http request option.
|
|
1394
|
+
* @throws {RequiredError}
|
|
1395
|
+
*/
|
|
1396
|
+
searchTargets(q, options) {
|
|
1397
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1398
|
+
var _a, _b, _c;
|
|
1399
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchTargets(q, options);
|
|
1400
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1401
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminPunishmentsApi.searchTargets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1402
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1403
|
+
});
|
|
1404
|
+
},
|
|
1405
|
+
};
|
|
1406
|
+
};
|
|
1407
|
+
exports.AdminPunishmentsApiFp = AdminPunishmentsApiFp;
|
|
1408
|
+
/**
|
|
1409
|
+
* AdminPunishmentsApi - factory interface
|
|
1410
|
+
*/
|
|
1411
|
+
const AdminPunishmentsApiFactory = function (configuration, basePath, axios) {
|
|
1412
|
+
const localVarFp = (0, exports.AdminPunishmentsApiFp)(configuration);
|
|
1413
|
+
return {
|
|
1414
|
+
/**
|
|
1415
|
+
* Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
|
|
1416
|
+
* @summary Apply punishment
|
|
1417
|
+
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
1418
|
+
* @param {*} [options] Override http request option.
|
|
1419
|
+
* @throws {RequiredError}
|
|
1420
|
+
*/
|
|
1421
|
+
applyPunishment(adminApplyPunishmentRequest, options) {
|
|
1422
|
+
return localVarFp.applyPunishment(adminApplyPunishmentRequest, options).then((request) => request(axios, basePath));
|
|
1423
|
+
},
|
|
1424
|
+
/**
|
|
1425
|
+
* Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
|
|
1426
|
+
* @summary Evaluate punishment impact
|
|
1427
|
+
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
1428
|
+
* @param {*} [options] Override http request option.
|
|
1429
|
+
* @throws {RequiredError}
|
|
1430
|
+
*/
|
|
1431
|
+
createDraft(adminCreatePunishmentDraftRequest, options) {
|
|
1432
|
+
return localVarFp.createDraft(adminCreatePunishmentDraftRequest, options).then((request) => request(axios, basePath));
|
|
1433
|
+
},
|
|
1434
|
+
/**
|
|
1435
|
+
* Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
|
|
1436
|
+
* @summary List punishments
|
|
1437
|
+
* @param {number} page Page number (1-indexed)
|
|
1438
|
+
* @param {number} limit Page size
|
|
1439
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1440
|
+
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
1441
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1442
|
+
* @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
|
|
1443
|
+
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
1444
|
+
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
1445
|
+
* @param {*} [options] Override http request option.
|
|
1446
|
+
* @throws {RequiredError}
|
|
1447
|
+
*/
|
|
1448
|
+
getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options) {
|
|
1449
|
+
return localVarFp.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(axios, basePath));
|
|
1450
|
+
},
|
|
1451
|
+
/**
|
|
1452
|
+
* Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
|
|
1453
|
+
* @summary Search punishment targets
|
|
1454
|
+
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
1455
|
+
* @param {*} [options] Override http request option.
|
|
1456
|
+
* @throws {RequiredError}
|
|
1457
|
+
*/
|
|
1458
|
+
searchTargets(q, options) {
|
|
1459
|
+
return localVarFp.searchTargets(q, options).then((request) => request(axios, basePath));
|
|
1460
|
+
},
|
|
1461
|
+
};
|
|
1462
|
+
};
|
|
1463
|
+
exports.AdminPunishmentsApiFactory = AdminPunishmentsApiFactory;
|
|
1464
|
+
/**
|
|
1465
|
+
* AdminPunishmentsApi - object-oriented interface
|
|
1466
|
+
*/
|
|
1467
|
+
class AdminPunishmentsApi extends base_1.BaseAPI {
|
|
1468
|
+
/**
|
|
1469
|
+
* Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
|
|
1470
|
+
* @summary Apply punishment
|
|
1471
|
+
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
1472
|
+
* @param {*} [options] Override http request option.
|
|
1473
|
+
* @throws {RequiredError}
|
|
1474
|
+
*/
|
|
1475
|
+
applyPunishment(adminApplyPunishmentRequest, options) {
|
|
1476
|
+
return (0, exports.AdminPunishmentsApiFp)(this.configuration).applyPunishment(adminApplyPunishmentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1477
|
+
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
|
|
1480
|
+
* @summary Evaluate punishment impact
|
|
1481
|
+
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
1482
|
+
* @param {*} [options] Override http request option.
|
|
1483
|
+
* @throws {RequiredError}
|
|
1484
|
+
*/
|
|
1485
|
+
createDraft(adminCreatePunishmentDraftRequest, options) {
|
|
1486
|
+
return (0, exports.AdminPunishmentsApiFp)(this.configuration).createDraft(adminCreatePunishmentDraftRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1487
|
+
}
|
|
1488
|
+
/**
|
|
1489
|
+
* Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
|
|
1490
|
+
* @summary List punishments
|
|
1491
|
+
* @param {number} page Page number (1-indexed)
|
|
1492
|
+
* @param {number} limit Page size
|
|
1493
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1494
|
+
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
1495
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1496
|
+
* @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
|
|
1497
|
+
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
1498
|
+
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
1499
|
+
* @param {*} [options] Override http request option.
|
|
1500
|
+
* @throws {RequiredError}
|
|
1501
|
+
*/
|
|
1502
|
+
getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options) {
|
|
1503
|
+
return (0, exports.AdminPunishmentsApiFp)(this.configuration).getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(this.axios, this.basePath));
|
|
1504
|
+
}
|
|
1505
|
+
/**
|
|
1506
|
+
* Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
|
|
1507
|
+
* @summary Search punishment targets
|
|
1508
|
+
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
1509
|
+
* @param {*} [options] Override http request option.
|
|
1510
|
+
* @throws {RequiredError}
|
|
1511
|
+
*/
|
|
1512
|
+
searchTargets(q, options) {
|
|
1513
|
+
return (0, exports.AdminPunishmentsApiFp)(this.configuration).searchTargets(q, options).then((request) => request(this.axios, this.basePath));
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
exports.AdminPunishmentsApi = AdminPunishmentsApi;
|
|
1517
|
+
/**
|
|
1518
|
+
* ConnectionApi - axios parameter creator
|
|
1519
|
+
*/
|
|
1520
|
+
const ConnectionApiAxiosParamCreator = function (configuration) {
|
|
1521
|
+
return {
|
|
1522
|
+
/**
|
|
1523
|
+
* Performs comprehensive analysis of an IPv4 address to detect VPN, proxy, or suspicious connections. **Features:** - Multi-provider VPN/proxy detection with aggregated confidence scoring - Approximate geolocation lookup (city and country) - Connection bypass status and expiration tracking - Optional player UUID association for connection history **Use Cases:** - Prevent VPN/proxy usage during player authentication - Track player connection history across sessions - Implement temporary bypass systems for false positives - Monitor suspicious connection patterns **Query Parameters:** - `force_recheck`: Bypass cache and re-run all detection services - `associate_uuid`: Link this IP to a player UUID and return player info **Caching:** Results are cached unless `force_recheck=true` is specified, reducing API costs and improving response times.
|
|
1524
|
+
* @summary Check Connection and Detect VPN/Proxy
|
|
1525
|
+
* @param {string} ip IPv4 address to analyze for VPN/proxy detection and geolocation
|
|
1526
|
+
* @param {boolean} forceRecheck When true, bypasses cached results and re-runs all VPN detection services. Use this when you need the most up-to-date analysis or suspect cached data may be stale. Default: false
|
|
1527
|
+
* @param {string | null} [associateUuid] Minecraft player UUID to associate with this IP address. When provided, the API will: - Link this connection to the player\'s history - Update the player\'s username from Mojang API - Return player information (first join status, first login time) in the response - Track connection history for fraud detection This operation is asynchronous and won\'t block the response.
|
|
1528
|
+
* @param {*} [options] Override http request option.
|
|
1529
|
+
* @throws {RequiredError}
|
|
1530
|
+
*/
|
|
1531
|
+
getConnectionDetails: (ip_1, forceRecheck_1, associateUuid_1, ...args_1) => __awaiter(this, [ip_1, forceRecheck_1, associateUuid_1, ...args_1], void 0, function* (ip, forceRecheck, associateUuid, options = {}) {
|
|
1532
|
+
// verify required parameter 'ip' is not null or undefined
|
|
1533
|
+
(0, common_1.assertParamExists)('getConnectionDetails', 'ip', ip);
|
|
1534
|
+
// verify required parameter 'forceRecheck' is not null or undefined
|
|
1535
|
+
(0, common_1.assertParamExists)('getConnectionDetails', 'forceRecheck', forceRecheck);
|
|
1536
|
+
const localVarPath = `/v1/connection/get-connection-details/{ip}`
|
|
1537
|
+
.replace(`{${"ip"}}`, encodeURIComponent(String(ip)));
|
|
1538
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1539
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1540
|
+
let baseOptions;
|
|
1541
|
+
if (configuration) {
|
|
1542
|
+
baseOptions = configuration.baseOptions;
|
|
1543
|
+
}
|
|
1544
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1545
|
+
const localVarHeaderParameter = {};
|
|
1546
|
+
const localVarQueryParameter = {};
|
|
1547
|
+
// authentication DiscordAuth required
|
|
1548
|
+
// http bearer authentication required
|
|
1549
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1550
|
+
if (forceRecheck !== undefined) {
|
|
1551
|
+
localVarQueryParameter['force_recheck'] = forceRecheck;
|
|
1552
|
+
}
|
|
1553
|
+
if (associateUuid !== undefined) {
|
|
1554
|
+
localVarQueryParameter['associate_uuid'] = associateUuid;
|
|
1555
|
+
}
|
|
1556
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1557
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1558
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1559
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1560
|
+
return {
|
|
1561
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1562
|
+
options: localVarRequestOptions,
|
|
1563
|
+
};
|
|
1564
|
+
}),
|
|
1565
|
+
};
|
|
1566
|
+
};
|
|
1567
|
+
exports.ConnectionApiAxiosParamCreator = ConnectionApiAxiosParamCreator;
|
|
1568
|
+
/**
|
|
1569
|
+
* ConnectionApi - functional programming interface
|
|
1570
|
+
*/
|
|
1571
|
+
const ConnectionApiFp = function (configuration) {
|
|
1572
|
+
const localVarAxiosParamCreator = (0, exports.ConnectionApiAxiosParamCreator)(configuration);
|
|
1573
|
+
return {
|
|
1574
|
+
/**
|
|
1575
|
+
* Performs comprehensive analysis of an IPv4 address to detect VPN, proxy, or suspicious connections. **Features:** - Multi-provider VPN/proxy detection with aggregated confidence scoring - Approximate geolocation lookup (city and country) - Connection bypass status and expiration tracking - Optional player UUID association for connection history **Use Cases:** - Prevent VPN/proxy usage during player authentication - Track player connection history across sessions - Implement temporary bypass systems for false positives - Monitor suspicious connection patterns **Query Parameters:** - `force_recheck`: Bypass cache and re-run all detection services - `associate_uuid`: Link this IP to a player UUID and return player info **Caching:** Results are cached unless `force_recheck=true` is specified, reducing API costs and improving response times.
|
|
1576
|
+
* @summary Check Connection and Detect VPN/Proxy
|
|
1577
|
+
* @param {string} ip IPv4 address to analyze for VPN/proxy detection and geolocation
|
|
1578
|
+
* @param {boolean} forceRecheck When true, bypasses cached results and re-runs all VPN detection services. Use this when you need the most up-to-date analysis or suspect cached data may be stale. Default: false
|
|
1579
|
+
* @param {string | null} [associateUuid] Minecraft player UUID to associate with this IP address. When provided, the API will: - Link this connection to the player\'s history - Update the player\'s username from Mojang API - Return player information (first join status, first login time) in the response - Track connection history for fraud detection This operation is asynchronous and won\'t block the response.
|
|
1580
|
+
* @param {*} [options] Override http request option.
|
|
1581
|
+
* @throws {RequiredError}
|
|
1582
|
+
*/
|
|
1583
|
+
getConnectionDetails(ip, forceRecheck, associateUuid, options) {
|
|
1584
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1585
|
+
var _a, _b, _c;
|
|
1586
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getConnectionDetails(ip, forceRecheck, associateUuid, options);
|
|
1587
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1588
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectionApi.getConnectionDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1589
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1590
|
+
});
|
|
1591
|
+
},
|
|
1592
|
+
};
|
|
1593
|
+
};
|
|
1594
|
+
exports.ConnectionApiFp = ConnectionApiFp;
|
|
1595
|
+
/**
|
|
1596
|
+
* ConnectionApi - factory interface
|
|
1597
|
+
*/
|
|
1598
|
+
const ConnectionApiFactory = function (configuration, basePath, axios) {
|
|
1599
|
+
const localVarFp = (0, exports.ConnectionApiFp)(configuration);
|
|
1600
|
+
return {
|
|
1601
|
+
/**
|
|
1602
|
+
* Performs comprehensive analysis of an IPv4 address to detect VPN, proxy, or suspicious connections. **Features:** - Multi-provider VPN/proxy detection with aggregated confidence scoring - Approximate geolocation lookup (city and country) - Connection bypass status and expiration tracking - Optional player UUID association for connection history **Use Cases:** - Prevent VPN/proxy usage during player authentication - Track player connection history across sessions - Implement temporary bypass systems for false positives - Monitor suspicious connection patterns **Query Parameters:** - `force_recheck`: Bypass cache and re-run all detection services - `associate_uuid`: Link this IP to a player UUID and return player info **Caching:** Results are cached unless `force_recheck=true` is specified, reducing API costs and improving response times.
|
|
1603
|
+
* @summary Check Connection and Detect VPN/Proxy
|
|
1604
|
+
* @param {string} ip IPv4 address to analyze for VPN/proxy detection and geolocation
|
|
1605
|
+
* @param {boolean} forceRecheck When true, bypasses cached results and re-runs all VPN detection services. Use this when you need the most up-to-date analysis or suspect cached data may be stale. Default: false
|
|
1606
|
+
* @param {string | null} [associateUuid] Minecraft player UUID to associate with this IP address. When provided, the API will: - Link this connection to the player\'s history - Update the player\'s username from Mojang API - Return player information (first join status, first login time) in the response - Track connection history for fraud detection This operation is asynchronous and won\'t block the response.
|
|
1607
|
+
* @param {*} [options] Override http request option.
|
|
1608
|
+
* @throws {RequiredError}
|
|
1609
|
+
*/
|
|
1610
|
+
getConnectionDetails(ip, forceRecheck, associateUuid, options) {
|
|
1611
|
+
return localVarFp.getConnectionDetails(ip, forceRecheck, associateUuid, options).then((request) => request(axios, basePath));
|
|
1612
|
+
},
|
|
1613
|
+
};
|
|
1614
|
+
};
|
|
1615
|
+
exports.ConnectionApiFactory = ConnectionApiFactory;
|
|
1616
|
+
/**
|
|
1617
|
+
* ConnectionApi - object-oriented interface
|
|
1618
|
+
*/
|
|
1619
|
+
class ConnectionApi extends base_1.BaseAPI {
|
|
1620
|
+
/**
|
|
1621
|
+
* Performs comprehensive analysis of an IPv4 address to detect VPN, proxy, or suspicious connections. **Features:** - Multi-provider VPN/proxy detection with aggregated confidence scoring - Approximate geolocation lookup (city and country) - Connection bypass status and expiration tracking - Optional player UUID association for connection history **Use Cases:** - Prevent VPN/proxy usage during player authentication - Track player connection history across sessions - Implement temporary bypass systems for false positives - Monitor suspicious connection patterns **Query Parameters:** - `force_recheck`: Bypass cache and re-run all detection services - `associate_uuid`: Link this IP to a player UUID and return player info **Caching:** Results are cached unless `force_recheck=true` is specified, reducing API costs and improving response times.
|
|
1622
|
+
* @summary Check Connection and Detect VPN/Proxy
|
|
1623
|
+
* @param {string} ip IPv4 address to analyze for VPN/proxy detection and geolocation
|
|
1624
|
+
* @param {boolean} forceRecheck When true, bypasses cached results and re-runs all VPN detection services. Use this when you need the most up-to-date analysis or suspect cached data may be stale. Default: false
|
|
1625
|
+
* @param {string | null} [associateUuid] Minecraft player UUID to associate with this IP address. When provided, the API will: - Link this connection to the player\'s history - Update the player\'s username from Mojang API - Return player information (first join status, first login time) in the response - Track connection history for fraud detection This operation is asynchronous and won\'t block the response.
|
|
1626
|
+
* @param {*} [options] Override http request option.
|
|
1627
|
+
* @throws {RequiredError}
|
|
1628
|
+
*/
|
|
1629
|
+
getConnectionDetails(ip, forceRecheck, associateUuid, options) {
|
|
1630
|
+
return (0, exports.ConnectionApiFp)(this.configuration).getConnectionDetails(ip, forceRecheck, associateUuid, options).then((request) => request(this.axios, this.basePath));
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
exports.ConnectionApi = ConnectionApi;
|
|
1634
|
+
/**
|
|
1635
|
+
* DefaultApi - axios parameter creator
|
|
1636
|
+
*/
|
|
1637
|
+
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
1638
|
+
return {
|
|
1639
|
+
/**
|
|
1640
|
+
*
|
|
1641
|
+
* @param {string | null} [code]
|
|
1642
|
+
* @param {string | null} [error]
|
|
1643
|
+
* @param {*} [options] Override http request option.
|
|
1644
|
+
* @throws {RequiredError}
|
|
1645
|
+
*/
|
|
1646
|
+
callback: (code_1, error_1, ...args_1) => __awaiter(this, [code_1, error_1, ...args_1], void 0, function* (code, error, options = {}) {
|
|
1647
|
+
const localVarPath = `/auth/discord/callback`;
|
|
1648
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1649
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1650
|
+
let baseOptions;
|
|
1651
|
+
if (configuration) {
|
|
1652
|
+
baseOptions = configuration.baseOptions;
|
|
1653
|
+
}
|
|
1654
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1655
|
+
const localVarHeaderParameter = {};
|
|
1656
|
+
const localVarQueryParameter = {};
|
|
1657
|
+
// authentication DiscordAuth required
|
|
1658
|
+
// http bearer authentication required
|
|
1659
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1660
|
+
if (code !== undefined) {
|
|
1661
|
+
localVarQueryParameter['code'] = code;
|
|
1662
|
+
}
|
|
1663
|
+
if (error !== undefined) {
|
|
1664
|
+
localVarQueryParameter['error'] = error;
|
|
1665
|
+
}
|
|
1666
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1667
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1668
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1669
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1670
|
+
return {
|
|
1671
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1672
|
+
options: localVarRequestOptions,
|
|
1673
|
+
};
|
|
1674
|
+
}),
|
|
1675
|
+
/**
|
|
1676
|
+
*
|
|
1677
|
+
* @param {*} [options] Override http request option.
|
|
1678
|
+
* @throws {RequiredError}
|
|
1679
|
+
*/
|
|
1680
|
+
initiateLogin: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1681
|
+
const localVarPath = `/auth/discord`;
|
|
1682
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1683
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1684
|
+
let baseOptions;
|
|
1685
|
+
if (configuration) {
|
|
1686
|
+
baseOptions = configuration.baseOptions;
|
|
1687
|
+
}
|
|
1688
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1689
|
+
const localVarHeaderParameter = {};
|
|
1690
|
+
const localVarQueryParameter = {};
|
|
1691
|
+
// authentication DiscordAuth required
|
|
1692
|
+
// http bearer authentication required
|
|
1693
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1694
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1695
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1696
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1697
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1698
|
+
return {
|
|
1699
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1700
|
+
options: localVarRequestOptions,
|
|
1701
|
+
};
|
|
1702
|
+
}),
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
1706
|
+
/**
|
|
1707
|
+
* DefaultApi - functional programming interface
|
|
1708
|
+
*/
|
|
1709
|
+
const DefaultApiFp = function (configuration) {
|
|
1710
|
+
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
1711
|
+
return {
|
|
1712
|
+
/**
|
|
1713
|
+
*
|
|
1714
|
+
* @param {string | null} [code]
|
|
1715
|
+
* @param {string | null} [error]
|
|
1716
|
+
* @param {*} [options] Override http request option.
|
|
1717
|
+
* @throws {RequiredError}
|
|
1718
|
+
*/
|
|
1719
|
+
callback(code, error, options) {
|
|
1720
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1721
|
+
var _a, _b, _c;
|
|
1722
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.callback(code, error, options);
|
|
1723
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1724
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.callback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1725
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1726
|
+
});
|
|
1727
|
+
},
|
|
1728
|
+
/**
|
|
1729
|
+
*
|
|
1730
|
+
* @param {*} [options] Override http request option.
|
|
1731
|
+
* @throws {RequiredError}
|
|
1732
|
+
*/
|
|
1733
|
+
initiateLogin(options) {
|
|
1734
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1735
|
+
var _a, _b, _c;
|
|
1736
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateLogin(options);
|
|
1737
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1738
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.initiateLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1739
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1740
|
+
});
|
|
1741
|
+
},
|
|
1742
|
+
};
|
|
1743
|
+
};
|
|
1744
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
1745
|
+
/**
|
|
1746
|
+
* DefaultApi - factory interface
|
|
1747
|
+
*/
|
|
1748
|
+
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1749
|
+
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
1750
|
+
return {
|
|
1751
|
+
/**
|
|
1752
|
+
*
|
|
1753
|
+
* @param {string | null} [code]
|
|
1754
|
+
* @param {string | null} [error]
|
|
1755
|
+
* @param {*} [options] Override http request option.
|
|
1756
|
+
* @throws {RequiredError}
|
|
1757
|
+
*/
|
|
1758
|
+
callback(code, error, options) {
|
|
1759
|
+
return localVarFp.callback(code, error, options).then((request) => request(axios, basePath));
|
|
1760
|
+
},
|
|
1761
|
+
/**
|
|
1762
|
+
*
|
|
1763
|
+
* @param {*} [options] Override http request option.
|
|
1764
|
+
* @throws {RequiredError}
|
|
1765
|
+
*/
|
|
1766
|
+
initiateLogin(options) {
|
|
1767
|
+
return localVarFp.initiateLogin(options).then((request) => request(axios, basePath));
|
|
1768
|
+
},
|
|
1769
|
+
};
|
|
1770
|
+
};
|
|
1771
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
1772
|
+
/**
|
|
1773
|
+
* DefaultApi - object-oriented interface
|
|
1774
|
+
*/
|
|
1775
|
+
class DefaultApi extends base_1.BaseAPI {
|
|
1776
|
+
/**
|
|
1777
|
+
*
|
|
1778
|
+
* @param {string | null} [code]
|
|
1779
|
+
* @param {string | null} [error]
|
|
1780
|
+
* @param {*} [options] Override http request option.
|
|
1781
|
+
* @throws {RequiredError}
|
|
1782
|
+
*/
|
|
1783
|
+
callback(code, error, options) {
|
|
1784
|
+
return (0, exports.DefaultApiFp)(this.configuration).callback(code, error, options).then((request) => request(this.axios, this.basePath));
|
|
1785
|
+
}
|
|
1786
|
+
/**
|
|
1787
|
+
*
|
|
1788
|
+
* @param {*} [options] Override http request option.
|
|
1789
|
+
* @throws {RequiredError}
|
|
1790
|
+
*/
|
|
1791
|
+
initiateLogin(options) {
|
|
1792
|
+
return (0, exports.DefaultApiFp)(this.configuration).initiateLogin(options).then((request) => request(this.axios, this.basePath));
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
exports.DefaultApi = DefaultApi;
|
|
1796
|
+
/**
|
|
1797
|
+
* PlayerApi - axios parameter creator
|
|
1798
|
+
*/
|
|
1799
|
+
const PlayerApiAxiosParamCreator = function (configuration) {
|
|
1800
|
+
return {
|
|
1801
|
+
/**
|
|
1802
|
+
* Retrieves player information by their Minecraft UUID. Returns whether this is the player\'s first join and their first login timestamp. This endpoint is useful for tracking player join history and implementing first-join rewards or tutorials.
|
|
1803
|
+
* @summary Get Player Information
|
|
1804
|
+
* @param {string} uuid The Minecraft player UUID (with or without dashes)
|
|
1805
|
+
* @param {*} [options] Override http request option.
|
|
1806
|
+
* @throws {RequiredError}
|
|
1807
|
+
*/
|
|
1808
|
+
getPlayer1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
|
|
1809
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
1810
|
+
(0, common_1.assertParamExists)('getPlayer1', 'uuid', uuid);
|
|
1811
|
+
const localVarPath = `/v1/player/{uuid}`
|
|
1812
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
1813
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1814
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1815
|
+
let baseOptions;
|
|
1816
|
+
if (configuration) {
|
|
1817
|
+
baseOptions = configuration.baseOptions;
|
|
1818
|
+
}
|
|
1819
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1820
|
+
const localVarHeaderParameter = {};
|
|
1821
|
+
const localVarQueryParameter = {};
|
|
1822
|
+
// authentication DiscordAuth required
|
|
1823
|
+
// http bearer authentication required
|
|
1824
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1825
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1826
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1827
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1828
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1829
|
+
return {
|
|
1830
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1831
|
+
options: localVarRequestOptions,
|
|
1832
|
+
};
|
|
1833
|
+
}),
|
|
1834
|
+
};
|
|
1835
|
+
};
|
|
1836
|
+
exports.PlayerApiAxiosParamCreator = PlayerApiAxiosParamCreator;
|
|
1837
|
+
/**
|
|
1838
|
+
* PlayerApi - functional programming interface
|
|
1839
|
+
*/
|
|
1840
|
+
const PlayerApiFp = function (configuration) {
|
|
1841
|
+
const localVarAxiosParamCreator = (0, exports.PlayerApiAxiosParamCreator)(configuration);
|
|
1842
|
+
return {
|
|
1843
|
+
/**
|
|
1844
|
+
* Retrieves player information by their Minecraft UUID. Returns whether this is the player\'s first join and their first login timestamp. This endpoint is useful for tracking player join history and implementing first-join rewards or tutorials.
|
|
1845
|
+
* @summary Get Player Information
|
|
1846
|
+
* @param {string} uuid The Minecraft player UUID (with or without dashes)
|
|
1847
|
+
* @param {*} [options] Override http request option.
|
|
1848
|
+
* @throws {RequiredError}
|
|
1849
|
+
*/
|
|
1850
|
+
getPlayer1(uuid, options) {
|
|
1851
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1852
|
+
var _a, _b, _c;
|
|
1853
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlayer1(uuid, options);
|
|
1854
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1855
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlayerApi.getPlayer1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1856
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1857
|
+
});
|
|
1858
|
+
},
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1861
|
+
exports.PlayerApiFp = PlayerApiFp;
|
|
1862
|
+
/**
|
|
1863
|
+
* PlayerApi - factory interface
|
|
1864
|
+
*/
|
|
1865
|
+
const PlayerApiFactory = function (configuration, basePath, axios) {
|
|
1866
|
+
const localVarFp = (0, exports.PlayerApiFp)(configuration);
|
|
1867
|
+
return {
|
|
1868
|
+
/**
|
|
1869
|
+
* Retrieves player information by their Minecraft UUID. Returns whether this is the player\'s first join and their first login timestamp. This endpoint is useful for tracking player join history and implementing first-join rewards or tutorials.
|
|
1870
|
+
* @summary Get Player Information
|
|
1871
|
+
* @param {string} uuid The Minecraft player UUID (with or without dashes)
|
|
1872
|
+
* @param {*} [options] Override http request option.
|
|
1873
|
+
* @throws {RequiredError}
|
|
1874
|
+
*/
|
|
1875
|
+
getPlayer1(uuid, options) {
|
|
1876
|
+
return localVarFp.getPlayer1(uuid, options).then((request) => request(axios, basePath));
|
|
1877
|
+
},
|
|
1878
|
+
};
|
|
1879
|
+
};
|
|
1880
|
+
exports.PlayerApiFactory = PlayerApiFactory;
|
|
1881
|
+
/**
|
|
1882
|
+
* PlayerApi - object-oriented interface
|
|
1883
|
+
*/
|
|
1884
|
+
class PlayerApi extends base_1.BaseAPI {
|
|
1885
|
+
/**
|
|
1886
|
+
* Retrieves player information by their Minecraft UUID. Returns whether this is the player\'s first join and their first login timestamp. This endpoint is useful for tracking player join history and implementing first-join rewards or tutorials.
|
|
1887
|
+
* @summary Get Player Information
|
|
1888
|
+
* @param {string} uuid The Minecraft player UUID (with or without dashes)
|
|
1889
|
+
* @param {*} [options] Override http request option.
|
|
1890
|
+
* @throws {RequiredError}
|
|
1891
|
+
*/
|
|
1892
|
+
getPlayer1(uuid, options) {
|
|
1893
|
+
return (0, exports.PlayerApiFp)(this.configuration).getPlayer1(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
exports.PlayerApi = PlayerApi;
|
|
1897
|
+
/**
|
|
1898
|
+
* PunishmentApi - axios parameter creator
|
|
1899
|
+
*/
|
|
1900
|
+
const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
1901
|
+
return {
|
|
1902
|
+
/**
|
|
1903
|
+
* Retrieve duration information for each punishment type and severity level (1-10)
|
|
1904
|
+
* @summary Get punishment severities
|
|
1905
|
+
* @param {*} [options] Override http request option.
|
|
1906
|
+
* @throws {RequiredError}
|
|
1907
|
+
*/
|
|
1908
|
+
getPunishmentSeverities: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1909
|
+
const localVarPath = `/v1/punishment/severities`;
|
|
1910
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1911
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1912
|
+
let baseOptions;
|
|
1913
|
+
if (configuration) {
|
|
1914
|
+
baseOptions = configuration.baseOptions;
|
|
1915
|
+
}
|
|
1916
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1917
|
+
const localVarHeaderParameter = {};
|
|
1918
|
+
const localVarQueryParameter = {};
|
|
1919
|
+
// authentication DiscordAuth required
|
|
1920
|
+
// http bearer authentication required
|
|
1921
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1922
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1923
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1924
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1925
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1926
|
+
return {
|
|
1927
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1928
|
+
options: localVarRequestOptions,
|
|
1929
|
+
};
|
|
1930
|
+
}),
|
|
1931
|
+
/**
|
|
1932
|
+
* Retrieve all active punishments for a player by UUID or username, optionally filtered by type and time
|
|
1933
|
+
* @summary Get punishments by player
|
|
1934
|
+
* @param {string | null} [uuid] Player UUID
|
|
1935
|
+
* @param {string | null} [username] Player username
|
|
1936
|
+
* @param {Array<string> | null} [type] Filter by punishment types
|
|
1937
|
+
* @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
|
|
1938
|
+
* @param {*} [options] Override http request option.
|
|
1939
|
+
* @throws {RequiredError}
|
|
1940
|
+
*/
|
|
1941
|
+
getPunishments1: (uuid_1, username_1, type_1, since_1, ...args_1) => __awaiter(this, [uuid_1, username_1, type_1, since_1, ...args_1], void 0, function* (uuid, username, type, since, options = {}) {
|
|
1942
|
+
const localVarPath = `/v1/punishment`;
|
|
1185
1943
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1186
1944
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1187
1945
|
let baseOptions;
|
|
@@ -1191,7 +1949,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1191
1949
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1192
1950
|
const localVarHeaderParameter = {};
|
|
1193
1951
|
const localVarQueryParameter = {};
|
|
1194
|
-
// authentication
|
|
1952
|
+
// authentication DiscordAuth required
|
|
1195
1953
|
// http bearer authentication required
|
|
1196
1954
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1197
1955
|
if (uuid !== undefined) {
|
|
@@ -1235,7 +1993,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1235
1993
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1236
1994
|
const localVarHeaderParameter = {};
|
|
1237
1995
|
const localVarQueryParameter = {};
|
|
1238
|
-
// authentication
|
|
1996
|
+
// authentication DiscordAuth required
|
|
1239
1997
|
// http bearer authentication required
|
|
1240
1998
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1241
1999
|
if (ip !== undefined) {
|
|
@@ -1280,7 +2038,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1280
2038
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1281
2039
|
const localVarHeaderParameter = {};
|
|
1282
2040
|
const localVarQueryParameter = {};
|
|
1283
|
-
// authentication
|
|
2041
|
+
// authentication DiscordAuth required
|
|
1284
2042
|
// http bearer authentication required
|
|
1285
2043
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1286
2044
|
if (issuedAfter !== undefined) {
|
|
@@ -1328,38 +2086,6 @@ exports.PunishmentApiAxiosParamCreator = PunishmentApiAxiosParamCreator;
|
|
|
1328
2086
|
const PunishmentApiFp = function (configuration) {
|
|
1329
2087
|
const localVarAxiosParamCreator = (0, exports.PunishmentApiAxiosParamCreator)(configuration);
|
|
1330
2088
|
return {
|
|
1331
|
-
/**
|
|
1332
|
-
* Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
|
|
1333
|
-
* @summary Apply a punishment
|
|
1334
|
-
* @param {ApplyPunishmentRequest} applyPunishmentRequest
|
|
1335
|
-
* @param {*} [options] Override http request option.
|
|
1336
|
-
* @throws {RequiredError}
|
|
1337
|
-
*/
|
|
1338
|
-
applyPunishment(applyPunishmentRequest, options) {
|
|
1339
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1340
|
-
var _a, _b, _c;
|
|
1341
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.applyPunishment(applyPunishmentRequest, options);
|
|
1342
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1343
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PunishmentApi.applyPunishment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1344
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1345
|
-
});
|
|
1346
|
-
},
|
|
1347
|
-
/**
|
|
1348
|
-
* Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
|
|
1349
|
-
* @summary Create a punishment draft
|
|
1350
|
-
* @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
|
|
1351
|
-
* @param {*} [options] Override http request option.
|
|
1352
|
-
* @throws {RequiredError}
|
|
1353
|
-
*/
|
|
1354
|
-
createPunishmentDraft(createPunishmentDraftRequest, options) {
|
|
1355
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1356
|
-
var _a, _b, _c;
|
|
1357
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPunishmentDraft(createPunishmentDraftRequest, options);
|
|
1358
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1359
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PunishmentApi.createPunishmentDraft']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1360
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1361
|
-
});
|
|
1362
|
-
},
|
|
1363
2089
|
/**
|
|
1364
2090
|
* Retrieve duration information for each punishment type and severity level (1-10)
|
|
1365
2091
|
* @summary Get punishment severities
|
|
@@ -1385,12 +2111,12 @@ const PunishmentApiFp = function (configuration) {
|
|
|
1385
2111
|
* @param {*} [options] Override http request option.
|
|
1386
2112
|
* @throws {RequiredError}
|
|
1387
2113
|
*/
|
|
1388
|
-
|
|
2114
|
+
getPunishments1(uuid, username, type, since, options) {
|
|
1389
2115
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1390
2116
|
var _a, _b, _c;
|
|
1391
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2117
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPunishments1(uuid, username, type, since, options);
|
|
1392
2118
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1393
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PunishmentApi.
|
|
2119
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PunishmentApi.getPunishments1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1394
2120
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1395
2121
|
});
|
|
1396
2122
|
},
|
|
@@ -1443,26 +2169,6 @@ exports.PunishmentApiFp = PunishmentApiFp;
|
|
|
1443
2169
|
const PunishmentApiFactory = function (configuration, basePath, axios) {
|
|
1444
2170
|
const localVarFp = (0, exports.PunishmentApiFp)(configuration);
|
|
1445
2171
|
return {
|
|
1446
|
-
/**
|
|
1447
|
-
* Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
|
|
1448
|
-
* @summary Apply a punishment
|
|
1449
|
-
* @param {ApplyPunishmentRequest} applyPunishmentRequest
|
|
1450
|
-
* @param {*} [options] Override http request option.
|
|
1451
|
-
* @throws {RequiredError}
|
|
1452
|
-
*/
|
|
1453
|
-
applyPunishment(applyPunishmentRequest, options) {
|
|
1454
|
-
return localVarFp.applyPunishment(applyPunishmentRequest, options).then((request) => request(axios, basePath));
|
|
1455
|
-
},
|
|
1456
|
-
/**
|
|
1457
|
-
* Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
|
|
1458
|
-
* @summary Create a punishment draft
|
|
1459
|
-
* @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
|
|
1460
|
-
* @param {*} [options] Override http request option.
|
|
1461
|
-
* @throws {RequiredError}
|
|
1462
|
-
*/
|
|
1463
|
-
createPunishmentDraft(createPunishmentDraftRequest, options) {
|
|
1464
|
-
return localVarFp.createPunishmentDraft(createPunishmentDraftRequest, options).then((request) => request(axios, basePath));
|
|
1465
|
-
},
|
|
1466
2172
|
/**
|
|
1467
2173
|
* Retrieve duration information for each punishment type and severity level (1-10)
|
|
1468
2174
|
* @summary Get punishment severities
|
|
@@ -1482,8 +2188,8 @@ const PunishmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1482
2188
|
* @param {*} [options] Override http request option.
|
|
1483
2189
|
* @throws {RequiredError}
|
|
1484
2190
|
*/
|
|
1485
|
-
|
|
1486
|
-
return localVarFp.
|
|
2191
|
+
getPunishments1(uuid, username, type, since, options) {
|
|
2192
|
+
return localVarFp.getPunishments1(uuid, username, type, since, options).then((request) => request(axios, basePath));
|
|
1487
2193
|
},
|
|
1488
2194
|
/**
|
|
1489
2195
|
* Retrieve all active punishments associated with an IP address
|
|
@@ -1520,26 +2226,6 @@ exports.PunishmentApiFactory = PunishmentApiFactory;
|
|
|
1520
2226
|
* PunishmentApi - object-oriented interface
|
|
1521
2227
|
*/
|
|
1522
2228
|
class PunishmentApi extends base_1.BaseAPI {
|
|
1523
|
-
/**
|
|
1524
|
-
* Create and apply a punishment to a player. Automatically determines if permanent based on current score threshold (≥100%).
|
|
1525
|
-
* @summary Apply a punishment
|
|
1526
|
-
* @param {ApplyPunishmentRequest} applyPunishmentRequest
|
|
1527
|
-
* @param {*} [options] Override http request option.
|
|
1528
|
-
* @throws {RequiredError}
|
|
1529
|
-
*/
|
|
1530
|
-
applyPunishment(applyPunishmentRequest, options) {
|
|
1531
|
-
return (0, exports.PunishmentApiFp)(this.configuration).applyPunishment(applyPunishmentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1532
|
-
}
|
|
1533
|
-
/**
|
|
1534
|
-
* Preview punishment impact before applying. Returns calculated points, current/new thresholds, and whether it will be permanent.
|
|
1535
|
-
* @summary Create a punishment draft
|
|
1536
|
-
* @param {CreatePunishmentDraftRequest} createPunishmentDraftRequest
|
|
1537
|
-
* @param {*} [options] Override http request option.
|
|
1538
|
-
* @throws {RequiredError}
|
|
1539
|
-
*/
|
|
1540
|
-
createPunishmentDraft(createPunishmentDraftRequest, options) {
|
|
1541
|
-
return (0, exports.PunishmentApiFp)(this.configuration).createPunishmentDraft(createPunishmentDraftRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1542
|
-
}
|
|
1543
2229
|
/**
|
|
1544
2230
|
* Retrieve duration information for each punishment type and severity level (1-10)
|
|
1545
2231
|
* @summary Get punishment severities
|
|
@@ -1559,8 +2245,8 @@ class PunishmentApi extends base_1.BaseAPI {
|
|
|
1559
2245
|
* @param {*} [options] Override http request option.
|
|
1560
2246
|
* @throws {RequiredError}
|
|
1561
2247
|
*/
|
|
1562
|
-
|
|
1563
|
-
return (0, exports.PunishmentApiFp)(this.configuration).
|
|
2248
|
+
getPunishments1(uuid, username, type, since, options) {
|
|
2249
|
+
return (0, exports.PunishmentApiFp)(this.configuration).getPunishments1(uuid, username, type, since, options).then((request) => request(this.axios, this.basePath));
|
|
1564
2250
|
}
|
|
1565
2251
|
/**
|
|
1566
2252
|
* Retrieve all active punishments associated with an IP address
|