@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.
Files changed (45) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +18 -6
  3. package/api.ts +881 -67
  4. package/base.ts +2 -2
  5. package/common.ts +2 -2
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +480 -10
  8. package/dist/api.js +639 -38
  9. package/dist/base.d.ts +2 -2
  10. package/dist/base.js +2 -2
  11. package/dist/common.d.ts +2 -2
  12. package/dist/common.js +2 -2
  13. package/dist/configuration.d.ts +2 -2
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +480 -10
  16. package/dist/esm/api.js +626 -37
  17. package/dist/esm/base.d.ts +2 -2
  18. package/dist/esm/base.js +2 -2
  19. package/dist/esm/common.d.ts +2 -2
  20. package/dist/esm/common.js +2 -2
  21. package/dist/esm/configuration.d.ts +2 -2
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +2 -2
  24. package/dist/esm/index.js +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +2 -2
  27. package/docs/AdminClientCredentialResponse.md +2 -0
  28. package/docs/AdminClientCredentialsApi.md +17 -17
  29. package/docs/AdminConnectionsApi.md +70 -4
  30. package/docs/AdminDashboardApi.md +2 -2
  31. package/docs/AdminPagedConnectionResponse.md +29 -0
  32. package/docs/AdminPagedPlayerResponse.md +29 -0
  33. package/docs/AdminPagedPunishmentResponse.md +29 -0
  34. package/docs/AdminPlayerDetailResponse.md +37 -0
  35. package/docs/AdminPlayerSummary.md +35 -0
  36. package/docs/AdminPlayersApi.md +122 -0
  37. package/docs/AdminPunishmentsApi.md +82 -0
  38. package/docs/AdminUsernameHistoryEntry.md +23 -0
  39. package/docs/ClientCredentialRequest.md +2 -0
  40. package/docs/ConnectionApi.md +1 -1
  41. package/docs/DefaultApi.md +105 -0
  42. package/docs/PlayerApi.md +5 -5
  43. package/docs/PunishmentApi.md +10 -10
  44. package/index.ts +2 -2
  45. package/package.json +2 -2
package/dist/esm/api.js CHANGED
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Reborn API
5
- * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Cognito Bearer Token**: For admin endpoints requiring AWS Cognito authentication
5
+ * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
6
6
  *
7
- * The version of the OpenAPI document: 2.5.1
7
+ * The version of the OpenAPI document: 2.6.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -52,7 +52,7 @@ export const AdminClientCredentialsApiAxiosParamCreator = function (configuratio
52
52
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
53
53
  const localVarHeaderParameter = {};
54
54
  const localVarQueryParameter = {};
55
- // authentication CognitoAuth required
55
+ // authentication DiscordAuth required
56
56
  // http bearer authentication required
57
57
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
58
58
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -84,7 +84,7 @@ export const AdminClientCredentialsApiAxiosParamCreator = function (configuratio
84
84
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
85
85
  const localVarHeaderParameter = {};
86
86
  const localVarQueryParameter = {};
87
- // authentication CognitoAuth required
87
+ // authentication DiscordAuth required
88
88
  // http bearer authentication required
89
89
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
90
90
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -115,7 +115,7 @@ export const AdminClientCredentialsApiAxiosParamCreator = function (configuratio
115
115
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
116
116
  const localVarHeaderParameter = {};
117
117
  const localVarQueryParameter = {};
118
- // authentication CognitoAuth required
118
+ // authentication DiscordAuth required
119
119
  // http bearer authentication required
120
120
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
121
121
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -146,7 +146,7 @@ export const AdminClientCredentialsApiAxiosParamCreator = function (configuratio
146
146
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
147
147
  const localVarHeaderParameter = {};
148
148
  const localVarQueryParameter = {};
149
- // authentication CognitoAuth required
149
+ // authentication DiscordAuth required
150
150
  // http bearer authentication required
151
151
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
152
152
  localVarHeaderParameter['Accept'] = 'application/json';
@@ -179,7 +179,7 @@ export const AdminClientCredentialsApiAxiosParamCreator = function (configuratio
179
179
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
180
180
  const localVarHeaderParameter = {};
181
181
  const localVarQueryParameter = {};
182
- // authentication CognitoAuth required
182
+ // authentication DiscordAuth required
183
183
  // http bearer authentication required
184
184
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
185
185
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -211,7 +211,7 @@ export const AdminClientCredentialsApiAxiosParamCreator = function (configuratio
211
211
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
212
212
  const localVarHeaderParameter = {};
213
213
  const localVarQueryParameter = {};
214
- // authentication CognitoAuth required
214
+ // authentication DiscordAuth required
215
215
  // http bearer authentication required
216
216
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
217
217
  localVarHeaderParameter['Accept'] = 'application/json';
@@ -247,7 +247,7 @@ export const AdminClientCredentialsApiAxiosParamCreator = function (configuratio
247
247
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
248
248
  const localVarHeaderParameter = {};
249
249
  const localVarQueryParameter = {};
250
- // authentication CognitoAuth required
250
+ // authentication DiscordAuth required
251
251
  // http bearer authentication required
252
252
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
253
253
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -561,7 +561,7 @@ export const AdminConnectionsApiAxiosParamCreator = function (configuration) {
561
561
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
562
562
  const localVarHeaderParameter = {};
563
563
  const localVarQueryParameter = {};
564
- // authentication CognitoAuth required
564
+ // authentication DiscordAuth required
565
565
  // http bearer authentication required
566
566
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
567
567
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -575,6 +575,55 @@ export const AdminConnectionsApiAxiosParamCreator = function (configuration) {
575
575
  options: localVarRequestOptions,
576
576
  };
577
577
  }),
578
+ /**
579
+ * Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
580
+ * @summary List all connections (paginated)
581
+ * @param {string | null} [ipAddress] Filter by IP address
582
+ * @param {string | null} [uuid] Filter by player UUID
583
+ * @param {boolean | null} [isVpn] Filter by VPN status
584
+ * @param {number | null} [page] Page number (1-indexed)
585
+ * @param {number | null} [limit] Page size
586
+ * @param {*} [options] Override http request option.
587
+ * @throws {RequiredError}
588
+ */
589
+ 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 = {}) {
590
+ const localVarPath = `/admin/connection`;
591
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
592
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
593
+ let baseOptions;
594
+ if (configuration) {
595
+ baseOptions = configuration.baseOptions;
596
+ }
597
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
598
+ const localVarHeaderParameter = {};
599
+ const localVarQueryParameter = {};
600
+ // authentication DiscordAuth required
601
+ // http bearer authentication required
602
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
603
+ if (ipAddress !== undefined) {
604
+ localVarQueryParameter['ipAddress'] = ipAddress;
605
+ }
606
+ if (uuid !== undefined) {
607
+ localVarQueryParameter['uuid'] = uuid;
608
+ }
609
+ if (isVpn !== undefined) {
610
+ localVarQueryParameter['isVpn'] = isVpn;
611
+ }
612
+ if (page !== undefined) {
613
+ localVarQueryParameter['page'] = page;
614
+ }
615
+ if (limit !== undefined) {
616
+ localVarQueryParameter['limit'] = limit;
617
+ }
618
+ localVarHeaderParameter['Accept'] = 'application/json';
619
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
620
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
621
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
622
+ return {
623
+ url: toPathString(localVarUrlObj),
624
+ options: localVarRequestOptions,
625
+ };
626
+ }),
578
627
  /**
579
628
  * 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).
580
629
  * @summary List recent connections
@@ -599,7 +648,7 @@ export const AdminConnectionsApiAxiosParamCreator = function (configuration) {
599
648
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
600
649
  const localVarHeaderParameter = {};
601
650
  const localVarQueryParameter = {};
602
- // authentication CognitoAuth required
651
+ // authentication DiscordAuth required
603
652
  // http bearer authentication required
604
653
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
605
654
  if (createdAfter !== undefined) {
@@ -656,6 +705,26 @@ export const AdminConnectionsApiFp = function (configuration) {
656
705
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
657
706
  });
658
707
  },
708
+ /**
709
+ * Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
710
+ * @summary List all connections (paginated)
711
+ * @param {string | null} [ipAddress] Filter by IP address
712
+ * @param {string | null} [uuid] Filter by player UUID
713
+ * @param {boolean | null} [isVpn] Filter by VPN status
714
+ * @param {number | null} [page] Page number (1-indexed)
715
+ * @param {number | null} [limit] Page size
716
+ * @param {*} [options] Override http request option.
717
+ * @throws {RequiredError}
718
+ */
719
+ listAllConnections(ipAddress, uuid, isVpn, page, limit, options) {
720
+ return __awaiter(this, void 0, void 0, function* () {
721
+ var _a, _b, _c;
722
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAllConnections(ipAddress, uuid, isVpn, page, limit, options);
723
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
724
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectionsApi.listAllConnections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
725
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
726
+ });
727
+ },
659
728
  /**
660
729
  * 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).
661
730
  * @summary List recent connections
@@ -696,6 +765,20 @@ export const AdminConnectionsApiFactory = function (configuration, basePath, axi
696
765
  createBypass(createBypassRequest, options) {
697
766
  return localVarFp.createBypass(createBypassRequest, options).then((request) => request(axios, basePath));
698
767
  },
768
+ /**
769
+ * Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
770
+ * @summary List all connections (paginated)
771
+ * @param {string | null} [ipAddress] Filter by IP address
772
+ * @param {string | null} [uuid] Filter by player UUID
773
+ * @param {boolean | null} [isVpn] Filter by VPN status
774
+ * @param {number | null} [page] Page number (1-indexed)
775
+ * @param {number | null} [limit] Page size
776
+ * @param {*} [options] Override http request option.
777
+ * @throws {RequiredError}
778
+ */
779
+ listAllConnections(ipAddress, uuid, isVpn, page, limit, options) {
780
+ return localVarFp.listAllConnections(ipAddress, uuid, isVpn, page, limit, options).then((request) => request(axios, basePath));
781
+ },
699
782
  /**
700
783
  * 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).
701
784
  * @summary List recent connections
@@ -728,6 +811,20 @@ export class AdminConnectionsApi extends BaseAPI {
728
811
  createBypass(createBypassRequest, options) {
729
812
  return AdminConnectionsApiFp(this.configuration).createBypass(createBypassRequest, options).then((request) => request(this.axios, this.basePath));
730
813
  }
814
+ /**
815
+ * Returns a paginated list of all connections with a total count. Supports filtering by IP address, UUID, and VPN status.
816
+ * @summary List all connections (paginated)
817
+ * @param {string | null} [ipAddress] Filter by IP address
818
+ * @param {string | null} [uuid] Filter by player UUID
819
+ * @param {boolean | null} [isVpn] Filter by VPN status
820
+ * @param {number | null} [page] Page number (1-indexed)
821
+ * @param {number | null} [limit] Page size
822
+ * @param {*} [options] Override http request option.
823
+ * @throws {RequiredError}
824
+ */
825
+ listAllConnections(ipAddress, uuid, isVpn, page, limit, options) {
826
+ return AdminConnectionsApiFp(this.configuration).listAllConnections(ipAddress, uuid, isVpn, page, limit, options).then((request) => request(this.axios, this.basePath));
827
+ }
731
828
  /**
732
829
  * 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).
733
830
  * @summary List recent connections
@@ -767,7 +864,7 @@ export const AdminDashboardApiAxiosParamCreator = function (configuration) {
767
864
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
768
865
  const localVarHeaderParameter = {};
769
866
  const localVarQueryParameter = {};
770
- // authentication CognitoAuth required
867
+ // authentication DiscordAuth required
771
868
  // http bearer authentication required
772
869
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
773
870
  localVarHeaderParameter['Accept'] = 'application/json';
@@ -835,6 +932,340 @@ export class AdminDashboardApi extends BaseAPI {
835
932
  return AdminDashboardApiFp(this.configuration).dashboardStats(options).then((request) => request(this.axios, this.basePath));
836
933
  }
837
934
  }
935
+ /**
936
+ * AdminPlayersApi - axios parameter creator
937
+ */
938
+ export const AdminPlayersApiAxiosParamCreator = function (configuration) {
939
+ return {
940
+ /**
941
+ * Returns full detail for a single player including all known usernames and punishment scoring.
942
+ * @summary Get player detail
943
+ * @param {string} uuid Player Minecraft UUID
944
+ * @param {*} [options] Override http request option.
945
+ * @throws {RequiredError}
946
+ */
947
+ getPlayer: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
948
+ // verify required parameter 'uuid' is not null or undefined
949
+ assertParamExists('getPlayer', 'uuid', uuid);
950
+ const localVarPath = `/admin/player/{uuid}`
951
+ .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
952
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
953
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
954
+ let baseOptions;
955
+ if (configuration) {
956
+ baseOptions = configuration.baseOptions;
957
+ }
958
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
959
+ const localVarHeaderParameter = {};
960
+ const localVarQueryParameter = {};
961
+ // authentication DiscordAuth required
962
+ // http bearer authentication required
963
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
964
+ localVarHeaderParameter['Accept'] = 'application/json';
965
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
966
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
967
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
968
+ return {
969
+ url: toPathString(localVarUrlObj),
970
+ options: localVarRequestOptions,
971
+ };
972
+ }),
973
+ /**
974
+ * Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
975
+ * @summary List players
976
+ * @param {number} page Page number (1-indexed)
977
+ * @param {number} limit Page size
978
+ * @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
979
+ * @param {*} [options] Override http request option.
980
+ * @throws {RequiredError}
981
+ */
982
+ 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 = {}) {
983
+ // verify required parameter 'page' is not null or undefined
984
+ assertParamExists('listPlayers', 'page', page);
985
+ // verify required parameter 'limit' is not null or undefined
986
+ assertParamExists('listPlayers', 'limit', limit);
987
+ const localVarPath = `/admin/player`;
988
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
989
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
990
+ let baseOptions;
991
+ if (configuration) {
992
+ baseOptions = configuration.baseOptions;
993
+ }
994
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
995
+ const localVarHeaderParameter = {};
996
+ const localVarQueryParameter = {};
997
+ // authentication DiscordAuth required
998
+ // http bearer authentication required
999
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1000
+ if (search !== undefined) {
1001
+ localVarQueryParameter['search'] = search;
1002
+ }
1003
+ if (page !== undefined) {
1004
+ localVarQueryParameter['page'] = page;
1005
+ }
1006
+ if (limit !== undefined) {
1007
+ localVarQueryParameter['limit'] = limit;
1008
+ }
1009
+ localVarHeaderParameter['Accept'] = 'application/json';
1010
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1011
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1012
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1013
+ return {
1014
+ url: toPathString(localVarUrlObj),
1015
+ options: localVarRequestOptions,
1016
+ };
1017
+ }),
1018
+ };
1019
+ };
1020
+ /**
1021
+ * AdminPlayersApi - functional programming interface
1022
+ */
1023
+ export const AdminPlayersApiFp = function (configuration) {
1024
+ const localVarAxiosParamCreator = AdminPlayersApiAxiosParamCreator(configuration);
1025
+ return {
1026
+ /**
1027
+ * Returns full detail for a single player including all known usernames and punishment scoring.
1028
+ * @summary Get player detail
1029
+ * @param {string} uuid Player Minecraft UUID
1030
+ * @param {*} [options] Override http request option.
1031
+ * @throws {RequiredError}
1032
+ */
1033
+ getPlayer(uuid, options) {
1034
+ return __awaiter(this, void 0, void 0, function* () {
1035
+ var _a, _b, _c;
1036
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlayer(uuid, options);
1037
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1038
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminPlayersApi.getPlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1039
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1040
+ });
1041
+ },
1042
+ /**
1043
+ * Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
1044
+ * @summary List players
1045
+ * @param {number} page Page number (1-indexed)
1046
+ * @param {number} limit Page size
1047
+ * @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
1048
+ * @param {*} [options] Override http request option.
1049
+ * @throws {RequiredError}
1050
+ */
1051
+ listPlayers(page, limit, search, options) {
1052
+ return __awaiter(this, void 0, void 0, function* () {
1053
+ var _a, _b, _c;
1054
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(page, limit, search, options);
1055
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1056
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminPlayersApi.listPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1057
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1058
+ });
1059
+ },
1060
+ };
1061
+ };
1062
+ /**
1063
+ * AdminPlayersApi - factory interface
1064
+ */
1065
+ export const AdminPlayersApiFactory = function (configuration, basePath, axios) {
1066
+ const localVarFp = AdminPlayersApiFp(configuration);
1067
+ return {
1068
+ /**
1069
+ * Returns full detail for a single player including all known usernames and punishment scoring.
1070
+ * @summary Get player detail
1071
+ * @param {string} uuid Player Minecraft UUID
1072
+ * @param {*} [options] Override http request option.
1073
+ * @throws {RequiredError}
1074
+ */
1075
+ getPlayer(uuid, options) {
1076
+ return localVarFp.getPlayer(uuid, options).then((request) => request(axios, basePath));
1077
+ },
1078
+ /**
1079
+ * Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
1080
+ * @summary List players
1081
+ * @param {number} page Page number (1-indexed)
1082
+ * @param {number} limit Page size
1083
+ * @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
1084
+ * @param {*} [options] Override http request option.
1085
+ * @throws {RequiredError}
1086
+ */
1087
+ listPlayers(page, limit, search, options) {
1088
+ return localVarFp.listPlayers(page, limit, search, options).then((request) => request(axios, basePath));
1089
+ },
1090
+ };
1091
+ };
1092
+ /**
1093
+ * AdminPlayersApi - object-oriented interface
1094
+ */
1095
+ export class AdminPlayersApi extends BaseAPI {
1096
+ /**
1097
+ * Returns full detail for a single player including all known usernames and punishment scoring.
1098
+ * @summary Get player detail
1099
+ * @param {string} uuid Player Minecraft UUID
1100
+ * @param {*} [options] Override http request option.
1101
+ * @throws {RequiredError}
1102
+ */
1103
+ getPlayer(uuid, options) {
1104
+ return AdminPlayersApiFp(this.configuration).getPlayer(uuid, options).then((request) => request(this.axios, this.basePath));
1105
+ }
1106
+ /**
1107
+ * Returns up to 500 players ordered by most recently seen. Optionally filter by UUID or username substring.
1108
+ * @summary List players
1109
+ * @param {number} page Page number (1-indexed)
1110
+ * @param {number} limit Page size
1111
+ * @param {string | null} [search] Optional search string matched against UUID or username (case-insensitive substring)
1112
+ * @param {*} [options] Override http request option.
1113
+ * @throws {RequiredError}
1114
+ */
1115
+ listPlayers(page, limit, search, options) {
1116
+ return AdminPlayersApiFp(this.configuration).listPlayers(page, limit, search, options).then((request) => request(this.axios, this.basePath));
1117
+ }
1118
+ }
1119
+ /**
1120
+ * AdminPunishmentsApi - axios parameter creator
1121
+ */
1122
+ export const AdminPunishmentsApiAxiosParamCreator = function (configuration) {
1123
+ return {
1124
+ /**
1125
+ * Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
1126
+ * @summary List punishments
1127
+ * @param {number} page Page number (1-indexed)
1128
+ * @param {number} limit Page size
1129
+ * @param {string | null} [uuid] Filter by player UUID
1130
+ * @param {string | null} [username] Filter by player username (case-insensitive substring match)
1131
+ * @param {string | null} [ipAddress] Filter by IP address
1132
+ * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, KICK, WARNING). Repeatable.
1133
+ * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
1134
+ * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
1135
+ * @param {*} [options] Override http request option.
1136
+ * @throws {RequiredError}
1137
+ */
1138
+ 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 = {}) {
1139
+ // verify required parameter 'page' is not null or undefined
1140
+ assertParamExists('getPunishments', 'page', page);
1141
+ // verify required parameter 'limit' is not null or undefined
1142
+ assertParamExists('getPunishments', 'limit', limit);
1143
+ const localVarPath = `/admin/punishment`;
1144
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1145
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1146
+ let baseOptions;
1147
+ if (configuration) {
1148
+ baseOptions = configuration.baseOptions;
1149
+ }
1150
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1151
+ const localVarHeaderParameter = {};
1152
+ const localVarQueryParameter = {};
1153
+ // authentication DiscordAuth required
1154
+ // http bearer authentication required
1155
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1156
+ if (uuid !== undefined) {
1157
+ localVarQueryParameter['uuid'] = uuid;
1158
+ }
1159
+ if (username !== undefined) {
1160
+ localVarQueryParameter['username'] = username;
1161
+ }
1162
+ if (ipAddress !== undefined) {
1163
+ localVarQueryParameter['ipAddress'] = ipAddress;
1164
+ }
1165
+ if (type) {
1166
+ localVarQueryParameter['type'] = type.join(COLLECTION_FORMATS.csv);
1167
+ }
1168
+ if (issuedAfter !== undefined) {
1169
+ localVarQueryParameter['issuedAfter'] = issuedAfter;
1170
+ }
1171
+ if (issuedBefore !== undefined) {
1172
+ localVarQueryParameter['issuedBefore'] = issuedBefore;
1173
+ }
1174
+ if (page !== undefined) {
1175
+ localVarQueryParameter['page'] = page;
1176
+ }
1177
+ if (limit !== undefined) {
1178
+ localVarQueryParameter['limit'] = limit;
1179
+ }
1180
+ localVarHeaderParameter['Accept'] = 'application/json';
1181
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1182
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1183
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1184
+ return {
1185
+ url: toPathString(localVarUrlObj),
1186
+ options: localVarRequestOptions,
1187
+ };
1188
+ }),
1189
+ };
1190
+ };
1191
+ /**
1192
+ * AdminPunishmentsApi - functional programming interface
1193
+ */
1194
+ export const AdminPunishmentsApiFp = function (configuration) {
1195
+ const localVarAxiosParamCreator = AdminPunishmentsApiAxiosParamCreator(configuration);
1196
+ return {
1197
+ /**
1198
+ * Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
1199
+ * @summary List punishments
1200
+ * @param {number} page Page number (1-indexed)
1201
+ * @param {number} limit Page size
1202
+ * @param {string | null} [uuid] Filter by player UUID
1203
+ * @param {string | null} [username] Filter by player username (case-insensitive substring match)
1204
+ * @param {string | null} [ipAddress] Filter by IP address
1205
+ * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, KICK, WARNING). Repeatable.
1206
+ * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
1207
+ * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
1208
+ * @param {*} [options] Override http request option.
1209
+ * @throws {RequiredError}
1210
+ */
1211
+ getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options) {
1212
+ return __awaiter(this, void 0, void 0, function* () {
1213
+ var _a, _b, _c;
1214
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options);
1215
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1216
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminPunishmentsApi.getPunishments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1217
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1218
+ });
1219
+ },
1220
+ };
1221
+ };
1222
+ /**
1223
+ * AdminPunishmentsApi - factory interface
1224
+ */
1225
+ export const AdminPunishmentsApiFactory = function (configuration, basePath, axios) {
1226
+ const localVarFp = AdminPunishmentsApiFp(configuration);
1227
+ return {
1228
+ /**
1229
+ * Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
1230
+ * @summary List punishments
1231
+ * @param {number} page Page number (1-indexed)
1232
+ * @param {number} limit Page size
1233
+ * @param {string | null} [uuid] Filter by player UUID
1234
+ * @param {string | null} [username] Filter by player username (case-insensitive substring match)
1235
+ * @param {string | null} [ipAddress] Filter by IP address
1236
+ * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, KICK, WARNING). Repeatable.
1237
+ * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
1238
+ * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
1239
+ * @param {*} [options] Override http request option.
1240
+ * @throws {RequiredError}
1241
+ */
1242
+ getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options) {
1243
+ return localVarFp.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(axios, basePath));
1244
+ },
1245
+ };
1246
+ };
1247
+ /**
1248
+ * AdminPunishmentsApi - object-oriented interface
1249
+ */
1250
+ export class AdminPunishmentsApi extends BaseAPI {
1251
+ /**
1252
+ * Returns a paginated list of punishments with optional filtering by player UUID, username, IP address, type, and date range.
1253
+ * @summary List punishments
1254
+ * @param {number} page Page number (1-indexed)
1255
+ * @param {number} limit Page size
1256
+ * @param {string | null} [uuid] Filter by player UUID
1257
+ * @param {string | null} [username] Filter by player username (case-insensitive substring match)
1258
+ * @param {string | null} [ipAddress] Filter by IP address
1259
+ * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, KICK, WARNING). Repeatable.
1260
+ * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
1261
+ * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
1262
+ * @param {*} [options] Override http request option.
1263
+ * @throws {RequiredError}
1264
+ */
1265
+ getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options) {
1266
+ return AdminPunishmentsApiFp(this.configuration).getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(this.axios, this.basePath));
1267
+ }
1268
+ }
838
1269
  /**
839
1270
  * ConnectionApi - axios parameter creator
840
1271
  */
@@ -865,7 +1296,7 @@ export const ConnectionApiAxiosParamCreator = function (configuration) {
865
1296
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
866
1297
  const localVarHeaderParameter = {};
867
1298
  const localVarQueryParameter = {};
868
- // authentication CognitoAuth required
1299
+ // authentication DiscordAuth required
869
1300
  // http bearer authentication required
870
1301
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
871
1302
  if (forceRecheck !== undefined) {
@@ -948,6 +1379,164 @@ export class ConnectionApi extends BaseAPI {
948
1379
  return ConnectionApiFp(this.configuration).getConnectionDetails(ip, forceRecheck, associateUuid, options).then((request) => request(this.axios, this.basePath));
949
1380
  }
950
1381
  }
1382
+ /**
1383
+ * DefaultApi - axios parameter creator
1384
+ */
1385
+ export const DefaultApiAxiosParamCreator = function (configuration) {
1386
+ return {
1387
+ /**
1388
+ *
1389
+ * @param {string | null} [code]
1390
+ * @param {string | null} [error]
1391
+ * @param {*} [options] Override http request option.
1392
+ * @throws {RequiredError}
1393
+ */
1394
+ callback: (code_1, error_1, ...args_1) => __awaiter(this, [code_1, error_1, ...args_1], void 0, function* (code, error, options = {}) {
1395
+ const localVarPath = `/auth/discord/callback`;
1396
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1397
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1398
+ let baseOptions;
1399
+ if (configuration) {
1400
+ baseOptions = configuration.baseOptions;
1401
+ }
1402
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1403
+ const localVarHeaderParameter = {};
1404
+ const localVarQueryParameter = {};
1405
+ // authentication DiscordAuth required
1406
+ // http bearer authentication required
1407
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1408
+ if (code !== undefined) {
1409
+ localVarQueryParameter['code'] = code;
1410
+ }
1411
+ if (error !== undefined) {
1412
+ localVarQueryParameter['error'] = error;
1413
+ }
1414
+ localVarHeaderParameter['Accept'] = 'application/json';
1415
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1416
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1417
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1418
+ return {
1419
+ url: toPathString(localVarUrlObj),
1420
+ options: localVarRequestOptions,
1421
+ };
1422
+ }),
1423
+ /**
1424
+ *
1425
+ * @param {*} [options] Override http request option.
1426
+ * @throws {RequiredError}
1427
+ */
1428
+ initiateLogin: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1429
+ const localVarPath = `/auth/discord`;
1430
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1431
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1432
+ let baseOptions;
1433
+ if (configuration) {
1434
+ baseOptions = configuration.baseOptions;
1435
+ }
1436
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1437
+ const localVarHeaderParameter = {};
1438
+ const localVarQueryParameter = {};
1439
+ // authentication DiscordAuth required
1440
+ // http bearer authentication required
1441
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1442
+ localVarHeaderParameter['Accept'] = 'application/json';
1443
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1444
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1445
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1446
+ return {
1447
+ url: toPathString(localVarUrlObj),
1448
+ options: localVarRequestOptions,
1449
+ };
1450
+ }),
1451
+ };
1452
+ };
1453
+ /**
1454
+ * DefaultApi - functional programming interface
1455
+ */
1456
+ export const DefaultApiFp = function (configuration) {
1457
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
1458
+ return {
1459
+ /**
1460
+ *
1461
+ * @param {string | null} [code]
1462
+ * @param {string | null} [error]
1463
+ * @param {*} [options] Override http request option.
1464
+ * @throws {RequiredError}
1465
+ */
1466
+ callback(code, error, options) {
1467
+ return __awaiter(this, void 0, void 0, function* () {
1468
+ var _a, _b, _c;
1469
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.callback(code, error, options);
1470
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1471
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.callback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1472
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1473
+ });
1474
+ },
1475
+ /**
1476
+ *
1477
+ * @param {*} [options] Override http request option.
1478
+ * @throws {RequiredError}
1479
+ */
1480
+ initiateLogin(options) {
1481
+ return __awaiter(this, void 0, void 0, function* () {
1482
+ var _a, _b, _c;
1483
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateLogin(options);
1484
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1485
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.initiateLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1486
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1487
+ });
1488
+ },
1489
+ };
1490
+ };
1491
+ /**
1492
+ * DefaultApi - factory interface
1493
+ */
1494
+ export const DefaultApiFactory = function (configuration, basePath, axios) {
1495
+ const localVarFp = DefaultApiFp(configuration);
1496
+ return {
1497
+ /**
1498
+ *
1499
+ * @param {string | null} [code]
1500
+ * @param {string | null} [error]
1501
+ * @param {*} [options] Override http request option.
1502
+ * @throws {RequiredError}
1503
+ */
1504
+ callback(code, error, options) {
1505
+ return localVarFp.callback(code, error, options).then((request) => request(axios, basePath));
1506
+ },
1507
+ /**
1508
+ *
1509
+ * @param {*} [options] Override http request option.
1510
+ * @throws {RequiredError}
1511
+ */
1512
+ initiateLogin(options) {
1513
+ return localVarFp.initiateLogin(options).then((request) => request(axios, basePath));
1514
+ },
1515
+ };
1516
+ };
1517
+ /**
1518
+ * DefaultApi - object-oriented interface
1519
+ */
1520
+ export class DefaultApi extends BaseAPI {
1521
+ /**
1522
+ *
1523
+ * @param {string | null} [code]
1524
+ * @param {string | null} [error]
1525
+ * @param {*} [options] Override http request option.
1526
+ * @throws {RequiredError}
1527
+ */
1528
+ callback(code, error, options) {
1529
+ return DefaultApiFp(this.configuration).callback(code, error, options).then((request) => request(this.axios, this.basePath));
1530
+ }
1531
+ /**
1532
+ *
1533
+ * @param {*} [options] Override http request option.
1534
+ * @throws {RequiredError}
1535
+ */
1536
+ initiateLogin(options) {
1537
+ return DefaultApiFp(this.configuration).initiateLogin(options).then((request) => request(this.axios, this.basePath));
1538
+ }
1539
+ }
951
1540
  /**
952
1541
  * PlayerApi - axios parameter creator
953
1542
  */
@@ -960,9 +1549,9 @@ export const PlayerApiAxiosParamCreator = function (configuration) {
960
1549
  * @param {*} [options] Override http request option.
961
1550
  * @throws {RequiredError}
962
1551
  */
963
- getPlayer: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
1552
+ getPlayer1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
964
1553
  // verify required parameter 'uuid' is not null or undefined
965
- assertParamExists('getPlayer', 'uuid', uuid);
1554
+ assertParamExists('getPlayer1', 'uuid', uuid);
966
1555
  const localVarPath = `/v1/player/{uuid}`
967
1556
  .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
968
1557
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -974,7 +1563,7 @@ export const PlayerApiAxiosParamCreator = function (configuration) {
974
1563
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
975
1564
  const localVarHeaderParameter = {};
976
1565
  const localVarQueryParameter = {};
977
- // authentication CognitoAuth required
1566
+ // authentication DiscordAuth required
978
1567
  // http bearer authentication required
979
1568
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
980
1569
  localVarHeaderParameter['Accept'] = 'application/json';
@@ -1001,12 +1590,12 @@ export const PlayerApiFp = function (configuration) {
1001
1590
  * @param {*} [options] Override http request option.
1002
1591
  * @throws {RequiredError}
1003
1592
  */
1004
- getPlayer(uuid, options) {
1593
+ getPlayer1(uuid, options) {
1005
1594
  return __awaiter(this, void 0, void 0, function* () {
1006
1595
  var _a, _b, _c;
1007
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlayer(uuid, options);
1596
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlayer1(uuid, options);
1008
1597
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1009
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlayerApi.getPlayer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1598
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlayerApi.getPlayer1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1010
1599
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1011
1600
  });
1012
1601
  },
@@ -1025,8 +1614,8 @@ export const PlayerApiFactory = function (configuration, basePath, axios) {
1025
1614
  * @param {*} [options] Override http request option.
1026
1615
  * @throws {RequiredError}
1027
1616
  */
1028
- getPlayer(uuid, options) {
1029
- return localVarFp.getPlayer(uuid, options).then((request) => request(axios, basePath));
1617
+ getPlayer1(uuid, options) {
1618
+ return localVarFp.getPlayer1(uuid, options).then((request) => request(axios, basePath));
1030
1619
  },
1031
1620
  };
1032
1621
  };
@@ -1041,8 +1630,8 @@ export class PlayerApi extends BaseAPI {
1041
1630
  * @param {*} [options] Override http request option.
1042
1631
  * @throws {RequiredError}
1043
1632
  */
1044
- getPlayer(uuid, options) {
1045
- return PlayerApiFp(this.configuration).getPlayer(uuid, options).then((request) => request(this.axios, this.basePath));
1633
+ getPlayer1(uuid, options) {
1634
+ return PlayerApiFp(this.configuration).getPlayer1(uuid, options).then((request) => request(this.axios, this.basePath));
1046
1635
  }
1047
1636
  }
1048
1637
  /**
@@ -1070,7 +1659,7 @@ export const PunishmentApiAxiosParamCreator = function (configuration) {
1070
1659
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1071
1660
  const localVarHeaderParameter = {};
1072
1661
  const localVarQueryParameter = {};
1073
- // authentication CognitoAuth required
1662
+ // authentication DiscordAuth required
1074
1663
  // http bearer authentication required
1075
1664
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1076
1665
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -1104,7 +1693,7 @@ export const PunishmentApiAxiosParamCreator = function (configuration) {
1104
1693
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1105
1694
  const localVarHeaderParameter = {};
1106
1695
  const localVarQueryParameter = {};
1107
- // authentication CognitoAuth required
1696
+ // authentication DiscordAuth required
1108
1697
  // http bearer authentication required
1109
1698
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1110
1699
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -1135,7 +1724,7 @@ export const PunishmentApiAxiosParamCreator = function (configuration) {
1135
1724
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1136
1725
  const localVarHeaderParameter = {};
1137
1726
  const localVarQueryParameter = {};
1138
- // authentication CognitoAuth required
1727
+ // authentication DiscordAuth required
1139
1728
  // http bearer authentication required
1140
1729
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1141
1730
  localVarHeaderParameter['Accept'] = 'application/json';
@@ -1157,7 +1746,7 @@ export const PunishmentApiAxiosParamCreator = function (configuration) {
1157
1746
  * @param {*} [options] Override http request option.
1158
1747
  * @throws {RequiredError}
1159
1748
  */
1160
- getPunishments: (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 = {}) {
1749
+ 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 = {}) {
1161
1750
  const localVarPath = `/v1/punishment`;
1162
1751
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1163
1752
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1168,7 +1757,7 @@ export const PunishmentApiAxiosParamCreator = function (configuration) {
1168
1757
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1169
1758
  const localVarHeaderParameter = {};
1170
1759
  const localVarQueryParameter = {};
1171
- // authentication CognitoAuth required
1760
+ // authentication DiscordAuth required
1172
1761
  // http bearer authentication required
1173
1762
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1174
1763
  if (uuid !== undefined) {
@@ -1212,7 +1801,7 @@ export const PunishmentApiAxiosParamCreator = function (configuration) {
1212
1801
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1213
1802
  const localVarHeaderParameter = {};
1214
1803
  const localVarQueryParameter = {};
1215
- // authentication CognitoAuth required
1804
+ // authentication DiscordAuth required
1216
1805
  // http bearer authentication required
1217
1806
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1218
1807
  if (ip !== undefined) {
@@ -1257,7 +1846,7 @@ export const PunishmentApiAxiosParamCreator = function (configuration) {
1257
1846
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1258
1847
  const localVarHeaderParameter = {};
1259
1848
  const localVarQueryParameter = {};
1260
- // authentication CognitoAuth required
1849
+ // authentication DiscordAuth required
1261
1850
  // http bearer authentication required
1262
1851
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1263
1852
  if (issuedAfter !== undefined) {
@@ -1361,12 +1950,12 @@ export const PunishmentApiFp = function (configuration) {
1361
1950
  * @param {*} [options] Override http request option.
1362
1951
  * @throws {RequiredError}
1363
1952
  */
1364
- getPunishments(uuid, username, type, since, options) {
1953
+ getPunishments1(uuid, username, type, since, options) {
1365
1954
  return __awaiter(this, void 0, void 0, function* () {
1366
1955
  var _a, _b, _c;
1367
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPunishments(uuid, username, type, since, options);
1956
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPunishments1(uuid, username, type, since, options);
1368
1957
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1369
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PunishmentApi.getPunishments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1958
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PunishmentApi.getPunishments1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1370
1959
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1371
1960
  });
1372
1961
  },
@@ -1457,8 +2046,8 @@ export const PunishmentApiFactory = function (configuration, basePath, axios) {
1457
2046
  * @param {*} [options] Override http request option.
1458
2047
  * @throws {RequiredError}
1459
2048
  */
1460
- getPunishments(uuid, username, type, since, options) {
1461
- return localVarFp.getPunishments(uuid, username, type, since, options).then((request) => request(axios, basePath));
2049
+ getPunishments1(uuid, username, type, since, options) {
2050
+ return localVarFp.getPunishments1(uuid, username, type, since, options).then((request) => request(axios, basePath));
1462
2051
  },
1463
2052
  /**
1464
2053
  * Retrieve all active punishments associated with an IP address
@@ -1533,8 +2122,8 @@ export class PunishmentApi extends BaseAPI {
1533
2122
  * @param {*} [options] Override http request option.
1534
2123
  * @throws {RequiredError}
1535
2124
  */
1536
- getPunishments(uuid, username, type, since, options) {
1537
- return PunishmentApiFp(this.configuration).getPunishments(uuid, username, type, since, options).then((request) => request(this.axios, this.basePath));
2125
+ getPunishments1(uuid, username, type, since, options) {
2126
+ return PunishmentApiFp(this.configuration).getPunishments1(uuid, username, type, since, options).then((request) => request(this.axios, this.basePath));
1538
2127
  }
1539
2128
  /**
1540
2129
  * Retrieve all active punishments associated with an IP address