@rebornteam/reborn-api 2.5.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +9 -0
- package/README.md +18 -6
- package/api.ts +881 -67
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +480 -10
- package/dist/api.js +639 -38
- 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 +480 -10
- package/dist/esm/api.js +626 -37
- 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/AdminClientCredentialResponse.md +2 -0
- package/docs/AdminClientCredentialsApi.md +17 -17
- package/docs/AdminConnectionsApi.md +70 -4
- package/docs/AdminDashboardApi.md +2 -2
- 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/AdminPlayerSummary.md +35 -0
- package/docs/AdminPlayersApi.md +122 -0
- package/docs/AdminPunishmentsApi.md +82 -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 +10 -10
- package/index.ts +2 -2
- package/package.json +2 -2
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.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ 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 = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -55,7 +55,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
55
55
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
56
56
|
const localVarHeaderParameter = {};
|
|
57
57
|
const localVarQueryParameter = {};
|
|
58
|
-
// authentication
|
|
58
|
+
// authentication DiscordAuth required
|
|
59
59
|
// http bearer authentication required
|
|
60
60
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
61
61
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -87,7 +87,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
87
87
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
88
88
|
const localVarHeaderParameter = {};
|
|
89
89
|
const localVarQueryParameter = {};
|
|
90
|
-
// authentication
|
|
90
|
+
// authentication DiscordAuth required
|
|
91
91
|
// http bearer authentication required
|
|
92
92
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
93
93
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -118,7 +118,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
118
118
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
119
119
|
const localVarHeaderParameter = {};
|
|
120
120
|
const localVarQueryParameter = {};
|
|
121
|
-
// authentication
|
|
121
|
+
// authentication DiscordAuth required
|
|
122
122
|
// http bearer authentication required
|
|
123
123
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
124
124
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -149,7 +149,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
149
149
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
150
150
|
const localVarHeaderParameter = {};
|
|
151
151
|
const localVarQueryParameter = {};
|
|
152
|
-
// authentication
|
|
152
|
+
// authentication DiscordAuth required
|
|
153
153
|
// http bearer authentication required
|
|
154
154
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
155
155
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
@@ -182,7 +182,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
182
182
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
183
183
|
const localVarHeaderParameter = {};
|
|
184
184
|
const localVarQueryParameter = {};
|
|
185
|
-
// authentication
|
|
185
|
+
// authentication DiscordAuth required
|
|
186
186
|
// http bearer authentication required
|
|
187
187
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
188
188
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -214,7 +214,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
214
214
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
215
215
|
const localVarHeaderParameter = {};
|
|
216
216
|
const localVarQueryParameter = {};
|
|
217
|
-
// authentication
|
|
217
|
+
// authentication DiscordAuth required
|
|
218
218
|
// http bearer authentication required
|
|
219
219
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
220
220
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
@@ -250,7 +250,7 @@ const AdminClientCredentialsApiAxiosParamCreator = function (configuration) {
|
|
|
250
250
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
251
251
|
const localVarHeaderParameter = {};
|
|
252
252
|
const localVarQueryParameter = {};
|
|
253
|
-
// authentication
|
|
253
|
+
// authentication DiscordAuth required
|
|
254
254
|
// http bearer authentication required
|
|
255
255
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
256
256
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -568,7 +568,7 @@ const AdminConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
568
568
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
569
569
|
const localVarHeaderParameter = {};
|
|
570
570
|
const localVarQueryParameter = {};
|
|
571
|
-
// authentication
|
|
571
|
+
// authentication DiscordAuth required
|
|
572
572
|
// http bearer authentication required
|
|
573
573
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
574
574
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -582,6 +582,55 @@ const AdminConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
582
582
|
options: localVarRequestOptions,
|
|
583
583
|
};
|
|
584
584
|
}),
|
|
585
|
+
/**
|
|
586
|
+
* Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
|
|
587
|
+
* @summary List all connections (paginated)
|
|
588
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
589
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
590
|
+
* @param {boolean | null} [isVpn] Filter by VPN status
|
|
591
|
+
* @param {number | null} [page] Page number (1-indexed)
|
|
592
|
+
* @param {number | null} [limit] Page size
|
|
593
|
+
* @param {*} [options] Override http request option.
|
|
594
|
+
* @throws {RequiredError}
|
|
595
|
+
*/
|
|
596
|
+
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 = {}) {
|
|
597
|
+
const localVarPath = `/admin/connection`;
|
|
598
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
599
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
600
|
+
let baseOptions;
|
|
601
|
+
if (configuration) {
|
|
602
|
+
baseOptions = configuration.baseOptions;
|
|
603
|
+
}
|
|
604
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
605
|
+
const localVarHeaderParameter = {};
|
|
606
|
+
const localVarQueryParameter = {};
|
|
607
|
+
// authentication DiscordAuth required
|
|
608
|
+
// http bearer authentication required
|
|
609
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
610
|
+
if (ipAddress !== undefined) {
|
|
611
|
+
localVarQueryParameter['ipAddress'] = ipAddress;
|
|
612
|
+
}
|
|
613
|
+
if (uuid !== undefined) {
|
|
614
|
+
localVarQueryParameter['uuid'] = uuid;
|
|
615
|
+
}
|
|
616
|
+
if (isVpn !== undefined) {
|
|
617
|
+
localVarQueryParameter['isVpn'] = isVpn;
|
|
618
|
+
}
|
|
619
|
+
if (page !== undefined) {
|
|
620
|
+
localVarQueryParameter['page'] = page;
|
|
621
|
+
}
|
|
622
|
+
if (limit !== undefined) {
|
|
623
|
+
localVarQueryParameter['limit'] = limit;
|
|
624
|
+
}
|
|
625
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
626
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
627
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
628
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
629
|
+
return {
|
|
630
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
631
|
+
options: localVarRequestOptions,
|
|
632
|
+
};
|
|
633
|
+
}),
|
|
585
634
|
/**
|
|
586
635
|
* 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
636
|
* @summary List recent connections
|
|
@@ -606,7 +655,7 @@ const AdminConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
606
655
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
607
656
|
const localVarHeaderParameter = {};
|
|
608
657
|
const localVarQueryParameter = {};
|
|
609
|
-
// authentication
|
|
658
|
+
// authentication DiscordAuth required
|
|
610
659
|
// http bearer authentication required
|
|
611
660
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
612
661
|
if (createdAfter !== undefined) {
|
|
@@ -664,6 +713,26 @@ const AdminConnectionsApiFp = function (configuration) {
|
|
|
664
713
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
665
714
|
});
|
|
666
715
|
},
|
|
716
|
+
/**
|
|
717
|
+
* Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
|
|
718
|
+
* @summary List all connections (paginated)
|
|
719
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
720
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
721
|
+
* @param {boolean | null} [isVpn] Filter by VPN status
|
|
722
|
+
* @param {number | null} [page] Page number (1-indexed)
|
|
723
|
+
* @param {number | null} [limit] Page size
|
|
724
|
+
* @param {*} [options] Override http request option.
|
|
725
|
+
* @throws {RequiredError}
|
|
726
|
+
*/
|
|
727
|
+
listAllConnections(ipAddress, uuid, isVpn, page, limit, options) {
|
|
728
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
729
|
+
var _a, _b, _c;
|
|
730
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAllConnections(ipAddress, uuid, isVpn, page, limit, options);
|
|
731
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
732
|
+
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;
|
|
733
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
734
|
+
});
|
|
735
|
+
},
|
|
667
736
|
/**
|
|
668
737
|
* 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
738
|
* @summary List recent connections
|
|
@@ -705,6 +774,20 @@ const AdminConnectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
705
774
|
createBypass(createBypassRequest, options) {
|
|
706
775
|
return localVarFp.createBypass(createBypassRequest, options).then((request) => request(axios, basePath));
|
|
707
776
|
},
|
|
777
|
+
/**
|
|
778
|
+
* Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
|
|
779
|
+
* @summary List all connections (paginated)
|
|
780
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
781
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
782
|
+
* @param {boolean | null} [isVpn] Filter by VPN status
|
|
783
|
+
* @param {number | null} [page] Page number (1-indexed)
|
|
784
|
+
* @param {number | null} [limit] Page size
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
listAllConnections(ipAddress, uuid, isVpn, page, limit, options) {
|
|
789
|
+
return localVarFp.listAllConnections(ipAddress, uuid, isVpn, page, limit, options).then((request) => request(axios, basePath));
|
|
790
|
+
},
|
|
708
791
|
/**
|
|
709
792
|
* 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
793
|
* @summary List recent connections
|
|
@@ -738,6 +821,20 @@ class AdminConnectionsApi extends base_1.BaseAPI {
|
|
|
738
821
|
createBypass(createBypassRequest, options) {
|
|
739
822
|
return (0, exports.AdminConnectionsApiFp)(this.configuration).createBypass(createBypassRequest, options).then((request) => request(this.axios, this.basePath));
|
|
740
823
|
}
|
|
824
|
+
/**
|
|
825
|
+
* Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
|
|
826
|
+
* @summary List all connections (paginated)
|
|
827
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
828
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
829
|
+
* @param {boolean | null} [isVpn] Filter by VPN status
|
|
830
|
+
* @param {number | null} [page] Page number (1-indexed)
|
|
831
|
+
* @param {number | null} [limit] Page size
|
|
832
|
+
* @param {*} [options] Override http request option.
|
|
833
|
+
* @throws {RequiredError}
|
|
834
|
+
*/
|
|
835
|
+
listAllConnections(ipAddress, uuid, isVpn, page, limit, options) {
|
|
836
|
+
return (0, exports.AdminConnectionsApiFp)(this.configuration).listAllConnections(ipAddress, uuid, isVpn, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
837
|
+
}
|
|
741
838
|
/**
|
|
742
839
|
* 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
840
|
* @summary List recent connections
|
|
@@ -778,7 +875,7 @@ const AdminDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
778
875
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
779
876
|
const localVarHeaderParameter = {};
|
|
780
877
|
const localVarQueryParameter = {};
|
|
781
|
-
// authentication
|
|
878
|
+
// authentication DiscordAuth required
|
|
782
879
|
// http bearer authentication required
|
|
783
880
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
784
881
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
@@ -850,6 +947,348 @@ class AdminDashboardApi extends base_1.BaseAPI {
|
|
|
850
947
|
}
|
|
851
948
|
}
|
|
852
949
|
exports.AdminDashboardApi = AdminDashboardApi;
|
|
950
|
+
/**
|
|
951
|
+
* AdminPlayersApi - axios parameter creator
|
|
952
|
+
*/
|
|
953
|
+
const AdminPlayersApiAxiosParamCreator = function (configuration) {
|
|
954
|
+
return {
|
|
955
|
+
/**
|
|
956
|
+
* Returns full detail for a single player including all known usernames and punishment scoring.
|
|
957
|
+
* @summary Get player detail
|
|
958
|
+
* @param {string} uuid Player Minecraft UUID
|
|
959
|
+
* @param {*} [options] Override http request option.
|
|
960
|
+
* @throws {RequiredError}
|
|
961
|
+
*/
|
|
962
|
+
getPlayer: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
|
|
963
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
964
|
+
(0, common_1.assertParamExists)('getPlayer', 'uuid', uuid);
|
|
965
|
+
const localVarPath = `/admin/player/{uuid}`
|
|
966
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
967
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
968
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
969
|
+
let baseOptions;
|
|
970
|
+
if (configuration) {
|
|
971
|
+
baseOptions = configuration.baseOptions;
|
|
972
|
+
}
|
|
973
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
974
|
+
const localVarHeaderParameter = {};
|
|
975
|
+
const localVarQueryParameter = {};
|
|
976
|
+
// authentication DiscordAuth required
|
|
977
|
+
// http bearer authentication required
|
|
978
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
979
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
980
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
981
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
982
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
983
|
+
return {
|
|
984
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
985
|
+
options: localVarRequestOptions,
|
|
986
|
+
};
|
|
987
|
+
}),
|
|
988
|
+
/**
|
|
989
|
+
* Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
|
|
990
|
+
* @summary List players
|
|
991
|
+
* @param {number} page Page number (1-indexed)
|
|
992
|
+
* @param {number} limit Page size
|
|
993
|
+
* @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
|
|
994
|
+
* @param {*} [options] Override http request option.
|
|
995
|
+
* @throws {RequiredError}
|
|
996
|
+
*/
|
|
997
|
+
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 = {}) {
|
|
998
|
+
// verify required parameter 'page' is not null or undefined
|
|
999
|
+
(0, common_1.assertParamExists)('listPlayers', 'page', page);
|
|
1000
|
+
// verify required parameter 'limit' is not null or undefined
|
|
1001
|
+
(0, common_1.assertParamExists)('listPlayers', 'limit', limit);
|
|
1002
|
+
const localVarPath = `/admin/player`;
|
|
1003
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1004
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1005
|
+
let baseOptions;
|
|
1006
|
+
if (configuration) {
|
|
1007
|
+
baseOptions = configuration.baseOptions;
|
|
1008
|
+
}
|
|
1009
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1010
|
+
const localVarHeaderParameter = {};
|
|
1011
|
+
const localVarQueryParameter = {};
|
|
1012
|
+
// authentication DiscordAuth required
|
|
1013
|
+
// http bearer authentication required
|
|
1014
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1015
|
+
if (search !== undefined) {
|
|
1016
|
+
localVarQueryParameter['search'] = search;
|
|
1017
|
+
}
|
|
1018
|
+
if (page !== undefined) {
|
|
1019
|
+
localVarQueryParameter['page'] = page;
|
|
1020
|
+
}
|
|
1021
|
+
if (limit !== undefined) {
|
|
1022
|
+
localVarQueryParameter['limit'] = limit;
|
|
1023
|
+
}
|
|
1024
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1025
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1026
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1027
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1028
|
+
return {
|
|
1029
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1030
|
+
options: localVarRequestOptions,
|
|
1031
|
+
};
|
|
1032
|
+
}),
|
|
1033
|
+
};
|
|
1034
|
+
};
|
|
1035
|
+
exports.AdminPlayersApiAxiosParamCreator = AdminPlayersApiAxiosParamCreator;
|
|
1036
|
+
/**
|
|
1037
|
+
* AdminPlayersApi - functional programming interface
|
|
1038
|
+
*/
|
|
1039
|
+
const AdminPlayersApiFp = function (configuration) {
|
|
1040
|
+
const localVarAxiosParamCreator = (0, exports.AdminPlayersApiAxiosParamCreator)(configuration);
|
|
1041
|
+
return {
|
|
1042
|
+
/**
|
|
1043
|
+
* Returns full detail for a single player including all known usernames and punishment scoring.
|
|
1044
|
+
* @summary Get player detail
|
|
1045
|
+
* @param {string} uuid Player Minecraft UUID
|
|
1046
|
+
* @param {*} [options] Override http request option.
|
|
1047
|
+
* @throws {RequiredError}
|
|
1048
|
+
*/
|
|
1049
|
+
getPlayer(uuid, options) {
|
|
1050
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1051
|
+
var _a, _b, _c;
|
|
1052
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlayer(uuid, options);
|
|
1053
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1054
|
+
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;
|
|
1055
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1056
|
+
});
|
|
1057
|
+
},
|
|
1058
|
+
/**
|
|
1059
|
+
* Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
|
|
1060
|
+
* @summary List players
|
|
1061
|
+
* @param {number} page Page number (1-indexed)
|
|
1062
|
+
* @param {number} limit Page size
|
|
1063
|
+
* @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
|
|
1064
|
+
* @param {*} [options] Override http request option.
|
|
1065
|
+
* @throws {RequiredError}
|
|
1066
|
+
*/
|
|
1067
|
+
listPlayers(page, limit, search, options) {
|
|
1068
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1069
|
+
var _a, _b, _c;
|
|
1070
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(page, limit, search, options);
|
|
1071
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1072
|
+
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;
|
|
1073
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1074
|
+
});
|
|
1075
|
+
},
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1078
|
+
exports.AdminPlayersApiFp = AdminPlayersApiFp;
|
|
1079
|
+
/**
|
|
1080
|
+
* AdminPlayersApi - factory interface
|
|
1081
|
+
*/
|
|
1082
|
+
const AdminPlayersApiFactory = function (configuration, basePath, axios) {
|
|
1083
|
+
const localVarFp = (0, exports.AdminPlayersApiFp)(configuration);
|
|
1084
|
+
return {
|
|
1085
|
+
/**
|
|
1086
|
+
* Returns full detail for a single player including all known usernames and punishment scoring.
|
|
1087
|
+
* @summary Get player detail
|
|
1088
|
+
* @param {string} uuid Player Minecraft UUID
|
|
1089
|
+
* @param {*} [options] Override http request option.
|
|
1090
|
+
* @throws {RequiredError}
|
|
1091
|
+
*/
|
|
1092
|
+
getPlayer(uuid, options) {
|
|
1093
|
+
return localVarFp.getPlayer(uuid, options).then((request) => request(axios, basePath));
|
|
1094
|
+
},
|
|
1095
|
+
/**
|
|
1096
|
+
* Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
|
|
1097
|
+
* @summary List players
|
|
1098
|
+
* @param {number} page Page number (1-indexed)
|
|
1099
|
+
* @param {number} limit Page size
|
|
1100
|
+
* @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
|
|
1101
|
+
* @param {*} [options] Override http request option.
|
|
1102
|
+
* @throws {RequiredError}
|
|
1103
|
+
*/
|
|
1104
|
+
listPlayers(page, limit, search, options) {
|
|
1105
|
+
return localVarFp.listPlayers(page, limit, search, options).then((request) => request(axios, basePath));
|
|
1106
|
+
},
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
exports.AdminPlayersApiFactory = AdminPlayersApiFactory;
|
|
1110
|
+
/**
|
|
1111
|
+
* AdminPlayersApi - object-oriented interface
|
|
1112
|
+
*/
|
|
1113
|
+
class AdminPlayersApi extends base_1.BaseAPI {
|
|
1114
|
+
/**
|
|
1115
|
+
* Returns full detail for a single player including all known usernames and punishment scoring.
|
|
1116
|
+
* @summary Get player detail
|
|
1117
|
+
* @param {string} uuid Player Minecraft UUID
|
|
1118
|
+
* @param {*} [options] Override http request option.
|
|
1119
|
+
* @throws {RequiredError}
|
|
1120
|
+
*/
|
|
1121
|
+
getPlayer(uuid, options) {
|
|
1122
|
+
return (0, exports.AdminPlayersApiFp)(this.configuration).getPlayer(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
|
|
1126
|
+
* @summary List players
|
|
1127
|
+
* @param {number} page Page number (1-indexed)
|
|
1128
|
+
* @param {number} limit Page size
|
|
1129
|
+
* @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
|
|
1130
|
+
* @param {*} [options] Override http request option.
|
|
1131
|
+
* @throws {RequiredError}
|
|
1132
|
+
*/
|
|
1133
|
+
listPlayers(page, limit, search, options) {
|
|
1134
|
+
return (0, exports.AdminPlayersApiFp)(this.configuration).listPlayers(page, limit, search, options).then((request) => request(this.axios, this.basePath));
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
exports.AdminPlayersApi = AdminPlayersApi;
|
|
1138
|
+
/**
|
|
1139
|
+
* AdminPunishmentsApi - axios parameter creator
|
|
1140
|
+
*/
|
|
1141
|
+
const AdminPunishmentsApiAxiosParamCreator = function (configuration) {
|
|
1142
|
+
return {
|
|
1143
|
+
/**
|
|
1144
|
+
* Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
|
|
1145
|
+
* @summary List punishments
|
|
1146
|
+
* @param {number} page Page number (1-indexed)
|
|
1147
|
+
* @param {number} limit Page size
|
|
1148
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1149
|
+
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
1150
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1151
|
+
* @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, KICK, WARNING). Repeatable.
|
|
1152
|
+
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
1153
|
+
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
1154
|
+
* @param {*} [options] Override http request option.
|
|
1155
|
+
* @throws {RequiredError}
|
|
1156
|
+
*/
|
|
1157
|
+
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 = {}) {
|
|
1158
|
+
// verify required parameter 'page' is not null or undefined
|
|
1159
|
+
(0, common_1.assertParamExists)('getPunishments', 'page', page);
|
|
1160
|
+
// verify required parameter 'limit' is not null or undefined
|
|
1161
|
+
(0, common_1.assertParamExists)('getPunishments', 'limit', limit);
|
|
1162
|
+
const localVarPath = `/admin/punishment`;
|
|
1163
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1164
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1165
|
+
let baseOptions;
|
|
1166
|
+
if (configuration) {
|
|
1167
|
+
baseOptions = configuration.baseOptions;
|
|
1168
|
+
}
|
|
1169
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1170
|
+
const localVarHeaderParameter = {};
|
|
1171
|
+
const localVarQueryParameter = {};
|
|
1172
|
+
// authentication DiscordAuth required
|
|
1173
|
+
// http bearer authentication required
|
|
1174
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1175
|
+
if (uuid !== undefined) {
|
|
1176
|
+
localVarQueryParameter['uuid'] = uuid;
|
|
1177
|
+
}
|
|
1178
|
+
if (username !== undefined) {
|
|
1179
|
+
localVarQueryParameter['username'] = username;
|
|
1180
|
+
}
|
|
1181
|
+
if (ipAddress !== undefined) {
|
|
1182
|
+
localVarQueryParameter['ipAddress'] = ipAddress;
|
|
1183
|
+
}
|
|
1184
|
+
if (type) {
|
|
1185
|
+
localVarQueryParameter['type'] = type.join(base_1.COLLECTION_FORMATS.csv);
|
|
1186
|
+
}
|
|
1187
|
+
if (issuedAfter !== undefined) {
|
|
1188
|
+
localVarQueryParameter['issuedAfter'] = issuedAfter;
|
|
1189
|
+
}
|
|
1190
|
+
if (issuedBefore !== undefined) {
|
|
1191
|
+
localVarQueryParameter['issuedBefore'] = issuedBefore;
|
|
1192
|
+
}
|
|
1193
|
+
if (page !== undefined) {
|
|
1194
|
+
localVarQueryParameter['page'] = page;
|
|
1195
|
+
}
|
|
1196
|
+
if (limit !== undefined) {
|
|
1197
|
+
localVarQueryParameter['limit'] = limit;
|
|
1198
|
+
}
|
|
1199
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1200
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1201
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1202
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1203
|
+
return {
|
|
1204
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1205
|
+
options: localVarRequestOptions,
|
|
1206
|
+
};
|
|
1207
|
+
}),
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1210
|
+
exports.AdminPunishmentsApiAxiosParamCreator = AdminPunishmentsApiAxiosParamCreator;
|
|
1211
|
+
/**
|
|
1212
|
+
* AdminPunishmentsApi - functional programming interface
|
|
1213
|
+
*/
|
|
1214
|
+
const AdminPunishmentsApiFp = function (configuration) {
|
|
1215
|
+
const localVarAxiosParamCreator = (0, exports.AdminPunishmentsApiAxiosParamCreator)(configuration);
|
|
1216
|
+
return {
|
|
1217
|
+
/**
|
|
1218
|
+
* Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
|
|
1219
|
+
* @summary List punishments
|
|
1220
|
+
* @param {number} page Page number (1-indexed)
|
|
1221
|
+
* @param {number} limit Page size
|
|
1222
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1223
|
+
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
1224
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1225
|
+
* @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, KICK, WARNING). Repeatable.
|
|
1226
|
+
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
1227
|
+
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
1228
|
+
* @param {*} [options] Override http request option.
|
|
1229
|
+
* @throws {RequiredError}
|
|
1230
|
+
*/
|
|
1231
|
+
getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options) {
|
|
1232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1233
|
+
var _a, _b, _c;
|
|
1234
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options);
|
|
1235
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1236
|
+
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;
|
|
1237
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1238
|
+
});
|
|
1239
|
+
},
|
|
1240
|
+
};
|
|
1241
|
+
};
|
|
1242
|
+
exports.AdminPunishmentsApiFp = AdminPunishmentsApiFp;
|
|
1243
|
+
/**
|
|
1244
|
+
* AdminPunishmentsApi - factory interface
|
|
1245
|
+
*/
|
|
1246
|
+
const AdminPunishmentsApiFactory = function (configuration, basePath, axios) {
|
|
1247
|
+
const localVarFp = (0, exports.AdminPunishmentsApiFp)(configuration);
|
|
1248
|
+
return {
|
|
1249
|
+
/**
|
|
1250
|
+
* Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
|
|
1251
|
+
* @summary List punishments
|
|
1252
|
+
* @param {number} page Page number (1-indexed)
|
|
1253
|
+
* @param {number} limit Page size
|
|
1254
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1255
|
+
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
1256
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1257
|
+
* @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, KICK, WARNING). Repeatable.
|
|
1258
|
+
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
1259
|
+
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
1260
|
+
* @param {*} [options] Override http request option.
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
*/
|
|
1263
|
+
getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options) {
|
|
1264
|
+
return localVarFp.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(axios, basePath));
|
|
1265
|
+
},
|
|
1266
|
+
};
|
|
1267
|
+
};
|
|
1268
|
+
exports.AdminPunishmentsApiFactory = AdminPunishmentsApiFactory;
|
|
1269
|
+
/**
|
|
1270
|
+
* AdminPunishmentsApi - object-oriented interface
|
|
1271
|
+
*/
|
|
1272
|
+
class AdminPunishmentsApi extends base_1.BaseAPI {
|
|
1273
|
+
/**
|
|
1274
|
+
* Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
|
|
1275
|
+
* @summary List punishments
|
|
1276
|
+
* @param {number} page Page number (1-indexed)
|
|
1277
|
+
* @param {number} limit Page size
|
|
1278
|
+
* @param {string | null} [uuid] Filter by player UUID
|
|
1279
|
+
* @param {string | null} [username] Filter by player username (case-insensitive substring match)
|
|
1280
|
+
* @param {string | null} [ipAddress] Filter by IP address
|
|
1281
|
+
* @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, KICK, WARNING). Repeatable.
|
|
1282
|
+
* @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
|
|
1283
|
+
* @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
|
|
1284
|
+
* @param {*} [options] Override http request option.
|
|
1285
|
+
* @throws {RequiredError}
|
|
1286
|
+
*/
|
|
1287
|
+
getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options) {
|
|
1288
|
+
return (0, exports.AdminPunishmentsApiFp)(this.configuration).getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(this.axios, this.basePath));
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
exports.AdminPunishmentsApi = AdminPunishmentsApi;
|
|
853
1292
|
/**
|
|
854
1293
|
* ConnectionApi - axios parameter creator
|
|
855
1294
|
*/
|
|
@@ -880,7 +1319,7 @@ const ConnectionApiAxiosParamCreator = function (configuration) {
|
|
|
880
1319
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
881
1320
|
const localVarHeaderParameter = {};
|
|
882
1321
|
const localVarQueryParameter = {};
|
|
883
|
-
// authentication
|
|
1322
|
+
// authentication DiscordAuth required
|
|
884
1323
|
// http bearer authentication required
|
|
885
1324
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
886
1325
|
if (forceRecheck !== undefined) {
|
|
@@ -967,6 +1406,168 @@ class ConnectionApi extends base_1.BaseAPI {
|
|
|
967
1406
|
}
|
|
968
1407
|
}
|
|
969
1408
|
exports.ConnectionApi = ConnectionApi;
|
|
1409
|
+
/**
|
|
1410
|
+
* DefaultApi - axios parameter creator
|
|
1411
|
+
*/
|
|
1412
|
+
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
1413
|
+
return {
|
|
1414
|
+
/**
|
|
1415
|
+
*
|
|
1416
|
+
* @param {string | null} [code]
|
|
1417
|
+
* @param {string | null} [error]
|
|
1418
|
+
* @param {*} [options] Override http request option.
|
|
1419
|
+
* @throws {RequiredError}
|
|
1420
|
+
*/
|
|
1421
|
+
callback: (code_1, error_1, ...args_1) => __awaiter(this, [code_1, error_1, ...args_1], void 0, function* (code, error, options = {}) {
|
|
1422
|
+
const localVarPath = `/auth/discord/callback`;
|
|
1423
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1424
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1425
|
+
let baseOptions;
|
|
1426
|
+
if (configuration) {
|
|
1427
|
+
baseOptions = configuration.baseOptions;
|
|
1428
|
+
}
|
|
1429
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1430
|
+
const localVarHeaderParameter = {};
|
|
1431
|
+
const localVarQueryParameter = {};
|
|
1432
|
+
// authentication DiscordAuth required
|
|
1433
|
+
// http bearer authentication required
|
|
1434
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1435
|
+
if (code !== undefined) {
|
|
1436
|
+
localVarQueryParameter['code'] = code;
|
|
1437
|
+
}
|
|
1438
|
+
if (error !== undefined) {
|
|
1439
|
+
localVarQueryParameter['error'] = error;
|
|
1440
|
+
}
|
|
1441
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1442
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1443
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1444
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1445
|
+
return {
|
|
1446
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1447
|
+
options: localVarRequestOptions,
|
|
1448
|
+
};
|
|
1449
|
+
}),
|
|
1450
|
+
/**
|
|
1451
|
+
*
|
|
1452
|
+
* @param {*} [options] Override http request option.
|
|
1453
|
+
* @throws {RequiredError}
|
|
1454
|
+
*/
|
|
1455
|
+
initiateLogin: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1456
|
+
const localVarPath = `/auth/discord`;
|
|
1457
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1458
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1459
|
+
let baseOptions;
|
|
1460
|
+
if (configuration) {
|
|
1461
|
+
baseOptions = configuration.baseOptions;
|
|
1462
|
+
}
|
|
1463
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1464
|
+
const localVarHeaderParameter = {};
|
|
1465
|
+
const localVarQueryParameter = {};
|
|
1466
|
+
// authentication DiscordAuth required
|
|
1467
|
+
// http bearer authentication required
|
|
1468
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1469
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1470
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1471
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1472
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1473
|
+
return {
|
|
1474
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1475
|
+
options: localVarRequestOptions,
|
|
1476
|
+
};
|
|
1477
|
+
}),
|
|
1478
|
+
};
|
|
1479
|
+
};
|
|
1480
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
1481
|
+
/**
|
|
1482
|
+
* DefaultApi - functional programming interface
|
|
1483
|
+
*/
|
|
1484
|
+
const DefaultApiFp = function (configuration) {
|
|
1485
|
+
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
1486
|
+
return {
|
|
1487
|
+
/**
|
|
1488
|
+
*
|
|
1489
|
+
* @param {string | null} [code]
|
|
1490
|
+
* @param {string | null} [error]
|
|
1491
|
+
* @param {*} [options] Override http request option.
|
|
1492
|
+
* @throws {RequiredError}
|
|
1493
|
+
*/
|
|
1494
|
+
callback(code, error, options) {
|
|
1495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1496
|
+
var _a, _b, _c;
|
|
1497
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.callback(code, error, options);
|
|
1498
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1499
|
+
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;
|
|
1500
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1501
|
+
});
|
|
1502
|
+
},
|
|
1503
|
+
/**
|
|
1504
|
+
*
|
|
1505
|
+
* @param {*} [options] Override http request option.
|
|
1506
|
+
* @throws {RequiredError}
|
|
1507
|
+
*/
|
|
1508
|
+
initiateLogin(options) {
|
|
1509
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1510
|
+
var _a, _b, _c;
|
|
1511
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateLogin(options);
|
|
1512
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1513
|
+
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;
|
|
1514
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1515
|
+
});
|
|
1516
|
+
},
|
|
1517
|
+
};
|
|
1518
|
+
};
|
|
1519
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
1520
|
+
/**
|
|
1521
|
+
* DefaultApi - factory interface
|
|
1522
|
+
*/
|
|
1523
|
+
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1524
|
+
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
1525
|
+
return {
|
|
1526
|
+
/**
|
|
1527
|
+
*
|
|
1528
|
+
* @param {string | null} [code]
|
|
1529
|
+
* @param {string | null} [error]
|
|
1530
|
+
* @param {*} [options] Override http request option.
|
|
1531
|
+
* @throws {RequiredError}
|
|
1532
|
+
*/
|
|
1533
|
+
callback(code, error, options) {
|
|
1534
|
+
return localVarFp.callback(code, error, options).then((request) => request(axios, basePath));
|
|
1535
|
+
},
|
|
1536
|
+
/**
|
|
1537
|
+
*
|
|
1538
|
+
* @param {*} [options] Override http request option.
|
|
1539
|
+
* @throws {RequiredError}
|
|
1540
|
+
*/
|
|
1541
|
+
initiateLogin(options) {
|
|
1542
|
+
return localVarFp.initiateLogin(options).then((request) => request(axios, basePath));
|
|
1543
|
+
},
|
|
1544
|
+
};
|
|
1545
|
+
};
|
|
1546
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
1547
|
+
/**
|
|
1548
|
+
* DefaultApi - object-oriented interface
|
|
1549
|
+
*/
|
|
1550
|
+
class DefaultApi extends base_1.BaseAPI {
|
|
1551
|
+
/**
|
|
1552
|
+
*
|
|
1553
|
+
* @param {string | null} [code]
|
|
1554
|
+
* @param {string | null} [error]
|
|
1555
|
+
* @param {*} [options] Override http request option.
|
|
1556
|
+
* @throws {RequiredError}
|
|
1557
|
+
*/
|
|
1558
|
+
callback(code, error, options) {
|
|
1559
|
+
return (0, exports.DefaultApiFp)(this.configuration).callback(code, error, options).then((request) => request(this.axios, this.basePath));
|
|
1560
|
+
}
|
|
1561
|
+
/**
|
|
1562
|
+
*
|
|
1563
|
+
* @param {*} [options] Override http request option.
|
|
1564
|
+
* @throws {RequiredError}
|
|
1565
|
+
*/
|
|
1566
|
+
initiateLogin(options) {
|
|
1567
|
+
return (0, exports.DefaultApiFp)(this.configuration).initiateLogin(options).then((request) => request(this.axios, this.basePath));
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
exports.DefaultApi = DefaultApi;
|
|
970
1571
|
/**
|
|
971
1572
|
* PlayerApi - axios parameter creator
|
|
972
1573
|
*/
|
|
@@ -979,9 +1580,9 @@ const PlayerApiAxiosParamCreator = function (configuration) {
|
|
|
979
1580
|
* @param {*} [options] Override http request option.
|
|
980
1581
|
* @throws {RequiredError}
|
|
981
1582
|
*/
|
|
982
|
-
|
|
1583
|
+
getPlayer1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
|
|
983
1584
|
// verify required parameter 'uuid' is not null or undefined
|
|
984
|
-
(0, common_1.assertParamExists)('
|
|
1585
|
+
(0, common_1.assertParamExists)('getPlayer1', 'uuid', uuid);
|
|
985
1586
|
const localVarPath = `/v1/player/{uuid}`
|
|
986
1587
|
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
987
1588
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -993,7 +1594,7 @@ const PlayerApiAxiosParamCreator = function (configuration) {
|
|
|
993
1594
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
994
1595
|
const localVarHeaderParameter = {};
|
|
995
1596
|
const localVarQueryParameter = {};
|
|
996
|
-
// authentication
|
|
1597
|
+
// authentication DiscordAuth required
|
|
997
1598
|
// http bearer authentication required
|
|
998
1599
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
999
1600
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
@@ -1021,12 +1622,12 @@ const PlayerApiFp = function (configuration) {
|
|
|
1021
1622
|
* @param {*} [options] Override http request option.
|
|
1022
1623
|
* @throws {RequiredError}
|
|
1023
1624
|
*/
|
|
1024
|
-
|
|
1625
|
+
getPlayer1(uuid, options) {
|
|
1025
1626
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1026
1627
|
var _a, _b, _c;
|
|
1027
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1628
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlayer1(uuid, options);
|
|
1028
1629
|
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['PlayerApi.
|
|
1630
|
+
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;
|
|
1030
1631
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1031
1632
|
});
|
|
1032
1633
|
},
|
|
@@ -1046,8 +1647,8 @@ const PlayerApiFactory = function (configuration, basePath, axios) {
|
|
|
1046
1647
|
* @param {*} [options] Override http request option.
|
|
1047
1648
|
* @throws {RequiredError}
|
|
1048
1649
|
*/
|
|
1049
|
-
|
|
1050
|
-
return localVarFp.
|
|
1650
|
+
getPlayer1(uuid, options) {
|
|
1651
|
+
return localVarFp.getPlayer1(uuid, options).then((request) => request(axios, basePath));
|
|
1051
1652
|
},
|
|
1052
1653
|
};
|
|
1053
1654
|
};
|
|
@@ -1063,8 +1664,8 @@ class PlayerApi extends base_1.BaseAPI {
|
|
|
1063
1664
|
* @param {*} [options] Override http request option.
|
|
1064
1665
|
* @throws {RequiredError}
|
|
1065
1666
|
*/
|
|
1066
|
-
|
|
1067
|
-
return (0, exports.PlayerApiFp)(this.configuration).
|
|
1667
|
+
getPlayer1(uuid, options) {
|
|
1668
|
+
return (0, exports.PlayerApiFp)(this.configuration).getPlayer1(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
1068
1669
|
}
|
|
1069
1670
|
}
|
|
1070
1671
|
exports.PlayerApi = PlayerApi;
|
|
@@ -1093,7 +1694,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1093
1694
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1094
1695
|
const localVarHeaderParameter = {};
|
|
1095
1696
|
const localVarQueryParameter = {};
|
|
1096
|
-
// authentication
|
|
1697
|
+
// authentication DiscordAuth required
|
|
1097
1698
|
// http bearer authentication required
|
|
1098
1699
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1099
1700
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -1127,7 +1728,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1127
1728
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1128
1729
|
const localVarHeaderParameter = {};
|
|
1129
1730
|
const localVarQueryParameter = {};
|
|
1130
|
-
// authentication
|
|
1731
|
+
// authentication DiscordAuth required
|
|
1131
1732
|
// http bearer authentication required
|
|
1132
1733
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1133
1734
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -1158,7 +1759,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1158
1759
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1159
1760
|
const localVarHeaderParameter = {};
|
|
1160
1761
|
const localVarQueryParameter = {};
|
|
1161
|
-
// authentication
|
|
1762
|
+
// authentication DiscordAuth required
|
|
1162
1763
|
// http bearer authentication required
|
|
1163
1764
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1164
1765
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
@@ -1180,7 +1781,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1180
1781
|
* @param {*} [options] Override http request option.
|
|
1181
1782
|
* @throws {RequiredError}
|
|
1182
1783
|
*/
|
|
1183
|
-
|
|
1784
|
+
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 = {}) {
|
|
1184
1785
|
const localVarPath = `/v1/punishment`;
|
|
1185
1786
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1186
1787
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1191,7 +1792,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1191
1792
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1192
1793
|
const localVarHeaderParameter = {};
|
|
1193
1794
|
const localVarQueryParameter = {};
|
|
1194
|
-
// authentication
|
|
1795
|
+
// authentication DiscordAuth required
|
|
1195
1796
|
// http bearer authentication required
|
|
1196
1797
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1197
1798
|
if (uuid !== undefined) {
|
|
@@ -1235,7 +1836,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1235
1836
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1236
1837
|
const localVarHeaderParameter = {};
|
|
1237
1838
|
const localVarQueryParameter = {};
|
|
1238
|
-
// authentication
|
|
1839
|
+
// authentication DiscordAuth required
|
|
1239
1840
|
// http bearer authentication required
|
|
1240
1841
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1241
1842
|
if (ip !== undefined) {
|
|
@@ -1280,7 +1881,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
|
|
|
1280
1881
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1281
1882
|
const localVarHeaderParameter = {};
|
|
1282
1883
|
const localVarQueryParameter = {};
|
|
1283
|
-
// authentication
|
|
1884
|
+
// authentication DiscordAuth required
|
|
1284
1885
|
// http bearer authentication required
|
|
1285
1886
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1286
1887
|
if (issuedAfter !== undefined) {
|
|
@@ -1385,12 +1986,12 @@ const PunishmentApiFp = function (configuration) {
|
|
|
1385
1986
|
* @param {*} [options] Override http request option.
|
|
1386
1987
|
* @throws {RequiredError}
|
|
1387
1988
|
*/
|
|
1388
|
-
|
|
1989
|
+
getPunishments1(uuid, username, type, since, options) {
|
|
1389
1990
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1390
1991
|
var _a, _b, _c;
|
|
1391
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1992
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPunishments1(uuid, username, type, since, options);
|
|
1392
1993
|
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.
|
|
1994
|
+
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
1995
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1395
1996
|
});
|
|
1396
1997
|
},
|
|
@@ -1482,8 +2083,8 @@ const PunishmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1482
2083
|
* @param {*} [options] Override http request option.
|
|
1483
2084
|
* @throws {RequiredError}
|
|
1484
2085
|
*/
|
|
1485
|
-
|
|
1486
|
-
return localVarFp.
|
|
2086
|
+
getPunishments1(uuid, username, type, since, options) {
|
|
2087
|
+
return localVarFp.getPunishments1(uuid, username, type, since, options).then((request) => request(axios, basePath));
|
|
1487
2088
|
},
|
|
1488
2089
|
/**
|
|
1489
2090
|
* Retrieve all active punishments associated with an IP address
|
|
@@ -1559,8 +2160,8 @@ class PunishmentApi extends base_1.BaseAPI {
|
|
|
1559
2160
|
* @param {*} [options] Override http request option.
|
|
1560
2161
|
* @throws {RequiredError}
|
|
1561
2162
|
*/
|
|
1562
|
-
|
|
1563
|
-
return (0, exports.PunishmentApiFp)(this.configuration).
|
|
2163
|
+
getPunishments1(uuid, username, type, since, options) {
|
|
2164
|
+
return (0, exports.PunishmentApiFp)(this.configuration).getPunishments1(uuid, username, type, since, options).then((request) => request(this.axios, this.basePath));
|
|
1564
2165
|
}
|
|
1565
2166
|
/**
|
|
1566
2167
|
* Retrieve all active punishments associated with an IP address
|