@rebornteam/reborn-api 2.9.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +11 -2
  3. package/api.ts +280 -100
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +197 -97
  8. package/dist/api.js +149 -51
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +197 -97
  16. package/dist/esm/api.js +147 -50
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/AdminApplyPunishmentRequest.md +1 -1
  28. package/docs/AdminApplyPunishmentResult.md +1 -1
  29. package/docs/AdminConnectionCheckResult.md +25 -0
  30. package/docs/AdminConnectionsApi.md +59 -0
  31. package/docs/AdminCreatePunishmentDraftRequest.md +1 -1
  32. package/docs/AdminDashboardConnectionResponse.md +2 -0
  33. package/docs/AdminPunishmentEvaluation.md +1 -1
  34. package/docs/AdminPunishmentListItem.md +2 -2
  35. package/docs/AdminPunishmentSearchResponse.md +1 -1
  36. package/docs/AdminPunishmentsApi.md +5 -5
  37. package/docs/ConnectionGetConnectionDetailsResponse.md +11 -7
  38. package/docs/ConnectionResult.md +25 -0
  39. package/docs/ConnectionResultResultCode.md +20 -0
  40. package/docs/GameType.md +12 -0
  41. package/docs/PlayerApi.md +7 -8
  42. package/docs/PlayerGetPlayerInformation.md +4 -4
  43. package/docs/PunishmentApi.md +4 -4
  44. package/docs/PunishmentGetPunishmentResponse.md +1 -1
  45. package/docs/PunishmentSeveritiesResponsePunishmentTypeInfo.md +1 -1
  46. package/docs/PunishmentTargetType.md +10 -0
  47. package/docs/PunishmentType.md +12 -0
  48. package/docs/Region.md +12 -0
  49. package/docs/SearchKind.md +11 -0
  50. package/docs/ServerRegisterRequest.md +2 -2
  51. package/docs/ServerSessionDTO.md +2 -2
  52. package/index.ts +1 -1
  53. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Reborn API
6
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.9.1
8
+ * The version of the OpenAPI document: 3.1.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,32 +22,54 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ServerSessionsApi = exports.ServerSessionsApiFactory = exports.ServerSessionsApiFp = exports.ServerSessionsApiAxiosParamCreator = 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.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.AdminPunishmentsApi = exports.AdminPunishmentsApiFactory = exports.AdminPunishmentsApiFp = exports.AdminPunishmentsApiAxiosParamCreator = exports.AdminPlayersApi = exports.AdminPlayersApiFactory = exports.AdminPlayersApiFp = exports.AdminPlayersApiAxiosParamCreator = exports.AdminDashboardApi = exports.AdminDashboardApiFactory = exports.AdminDashboardApiFp = exports.AdminDashboardApiAxiosParamCreator = exports.AdminConnectionsApi = exports.AdminConnectionsApiFactory = exports.AdminConnectionsApiFp = exports.AdminConnectionsApiAxiosParamCreator = exports.AdminClientCredentialsApi = exports.AdminClientCredentialsApiFactory = exports.AdminClientCredentialsApiFp = exports.AdminClientCredentialsApiAxiosParamCreator = exports.Rank = exports.AdminPunishmentSearchResponseKindEnum = exports.AdminCreatePunishmentDraftRequestTypeEnum = exports.AdminApplyPunishmentRequestTypeEnum = void 0;
25
+ exports.ServerSessionsApiFactory = exports.ServerSessionsApiFp = exports.ServerSessionsApiAxiosParamCreator = 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.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.AdminPunishmentsApi = exports.AdminPunishmentsApiFactory = exports.AdminPunishmentsApiFp = exports.AdminPunishmentsApiAxiosParamCreator = exports.AdminPlayersApi = exports.AdminPlayersApiFactory = exports.AdminPlayersApiFp = exports.AdminPlayersApiAxiosParamCreator = exports.AdminDashboardApi = exports.AdminDashboardApiFactory = exports.AdminDashboardApiFp = exports.AdminDashboardApiAxiosParamCreator = exports.AdminConnectionsApi = exports.AdminConnectionsApiFactory = exports.AdminConnectionsApiFp = exports.AdminConnectionsApiAxiosParamCreator = exports.AdminClientCredentialsApi = exports.AdminClientCredentialsApiFactory = exports.AdminClientCredentialsApiFp = exports.AdminClientCredentialsApiAxiosParamCreator = exports.SearchKind = exports.Region = exports.Rank = exports.PunishmentType = exports.PunishmentTargetType = exports.GameType = exports.ConnectionResultResultCode = void 0;
26
+ exports.ServerSessionsApi = void 0;
26
27
  const axios_1 = require("axios");
27
28
  // Some imports not used depending on template conditions
28
29
  // @ts-ignore
29
30
  const common_1 = require("./common");
30
31
  // @ts-ignore
31
32
  const base_1 = require("./base");
32
- exports.AdminApplyPunishmentRequestTypeEnum = {
33
- Ban: 'BAN',
34
- Mute: 'MUTE',
35
- Warning: 'WARNING'
33
+ exports.ConnectionResultResultCode = {
34
+ Allowed: 'ALLOWED',
35
+ AllowedBypass: 'ALLOWED_BYPASS',
36
+ AllowedPlayerBypass: 'ALLOWED_PLAYER_BYPASS',
37
+ Banned: 'BANNED',
38
+ VpnDetected: 'VPN_DETECTED',
39
+ VpnRetry: 'VPN_RETRY',
40
+ VpnTempBanned: 'VPN_TEMP_BANNED'
41
+ };
42
+ exports.GameType = {
43
+ Rotj: 'ROTJ',
44
+ Legacy: 'LEGACY',
45
+ Classic: 'CLASSIC'
36
46
  };
37
- exports.AdminCreatePunishmentDraftRequestTypeEnum = {
47
+ exports.PunishmentTargetType = {
48
+ Player: 'PLAYER',
49
+ Connection: 'CONNECTION'
50
+ };
51
+ exports.PunishmentType = {
38
52
  Ban: 'BAN',
39
53
  Mute: 'MUTE',
40
54
  Warning: 'WARNING'
41
55
  };
42
- exports.AdminPunishmentSearchResponseKindEnum = {
43
- Player: 'player',
44
- Ip: 'ip'
45
- };
46
56
  exports.Rank = {
47
57
  Administrator: 'ADMINISTRATOR',
48
58
  Moderator: 'MODERATOR',
49
59
  Service: 'SERVICE'
50
60
  };
61
+ exports.Region = {
62
+ Us: 'US',
63
+ Eu: 'EU',
64
+ Au: 'AU'
65
+ };
66
+ /**
67
+ * Search kind — PLAYER for UUID/username searches, IP for IP address searches
68
+ */
69
+ exports.SearchKind = {
70
+ Player: 'PLAYER',
71
+ Ip: 'IP'
72
+ };
51
73
  /**
52
74
  * AdminClientCredentialsApi - axios parameter creator
53
75
  */
@@ -707,6 +729,43 @@ const AdminConnectionsApiAxiosParamCreator = function (configuration) {
707
729
  options: localVarRequestOptions,
708
730
  };
709
731
  }),
732
+ /**
733
+ * Re-runs one named VPN detection service for a specific connection, persists the updated result, and recalculates the connection\'s overall `percentPositive` and `numberOfChecks` from all stored checks. Returns the refreshed check result including its new `checkedAt` timestamp.
734
+ * @summary Refresh a single VPN check
735
+ * @param {number} connectionId
736
+ * @param {string} service
737
+ * @param {*} [options] Override http request option.
738
+ * @throws {RequiredError}
739
+ */
740
+ recheckService: (connectionId_1, service_1, ...args_1) => __awaiter(this, [connectionId_1, service_1, ...args_1], void 0, function* (connectionId, service, options = {}) {
741
+ // verify required parameter 'connectionId' is not null or undefined
742
+ (0, common_1.assertParamExists)('recheckService', 'connectionId', connectionId);
743
+ // verify required parameter 'service' is not null or undefined
744
+ (0, common_1.assertParamExists)('recheckService', 'service', service);
745
+ const localVarPath = `/admin/connection/{connectionId}/recheck/{service}`
746
+ .replace(`{${"connectionId"}}`, encodeURIComponent(String(connectionId)))
747
+ .replace(`{${"service"}}`, encodeURIComponent(String(service)));
748
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
749
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
750
+ let baseOptions;
751
+ if (configuration) {
752
+ baseOptions = configuration.baseOptions;
753
+ }
754
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
755
+ const localVarHeaderParameter = {};
756
+ const localVarQueryParameter = {};
757
+ // authentication DiscordAuth required
758
+ // http bearer authentication required
759
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
760
+ localVarHeaderParameter['Accept'] = 'application/json';
761
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
762
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
763
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
764
+ return {
765
+ url: (0, common_1.toPathString)(localVarUrlObj),
766
+ options: localVarRequestOptions,
767
+ };
768
+ }),
710
769
  };
711
770
  };
712
771
  exports.AdminConnectionsApiAxiosParamCreator = AdminConnectionsApiAxiosParamCreator;
@@ -774,6 +833,23 @@ const AdminConnectionsApiFp = function (configuration) {
774
833
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
775
834
  });
776
835
  },
836
+ /**
837
+ * Re-runs one named VPN detection service for a specific connection, persists the updated result, and recalculates the connection\'s overall `percentPositive` and `numberOfChecks` from all stored checks. Returns the refreshed check result including its new `checkedAt` timestamp.
838
+ * @summary Refresh a single VPN check
839
+ * @param {number} connectionId
840
+ * @param {string} service
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ */
844
+ recheckService(connectionId, service, options) {
845
+ return __awaiter(this, void 0, void 0, function* () {
846
+ var _a, _b, _c;
847
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.recheckService(connectionId, service, options);
848
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
849
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminConnectionsApi.recheckService']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
850
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
851
+ });
852
+ },
777
853
  };
778
854
  };
779
855
  exports.AdminConnectionsApiFp = AdminConnectionsApiFp;
@@ -823,6 +899,17 @@ const AdminConnectionsApiFactory = function (configuration, basePath, axios) {
823
899
  listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options) {
824
900
  return localVarFp.listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options).then((request) => request(axios, basePath));
825
901
  },
902
+ /**
903
+ * Re-runs one named VPN detection service for a specific connection, persists the updated result, and recalculates the connection\'s overall `percentPositive` and `numberOfChecks` from all stored checks. Returns the refreshed check result including its new `checkedAt` timestamp.
904
+ * @summary Refresh a single VPN check
905
+ * @param {number} connectionId
906
+ * @param {string} service
907
+ * @param {*} [options] Override http request option.
908
+ * @throws {RequiredError}
909
+ */
910
+ recheckService(connectionId, service, options) {
911
+ return localVarFp.recheckService(connectionId, service, options).then((request) => request(axios, basePath));
912
+ },
826
913
  };
827
914
  };
828
915
  exports.AdminConnectionsApiFactory = AdminConnectionsApiFactory;
@@ -870,6 +957,17 @@ class AdminConnectionsApi extends base_1.BaseAPI {
870
957
  listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options) {
871
958
  return (0, exports.AdminConnectionsApiFp)(this.configuration).listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options).then((request) => request(this.axios, this.basePath));
872
959
  }
960
+ /**
961
+ * Re-runs one named VPN detection service for a specific connection, persists the updated result, and recalculates the connection\'s overall `percentPositive` and `numberOfChecks` from all stored checks. Returns the refreshed check result including its new `checkedAt` timestamp.
962
+ * @summary Refresh a single VPN check
963
+ * @param {number} connectionId
964
+ * @param {string} service
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ recheckService(connectionId, service, options) {
969
+ return (0, exports.AdminConnectionsApiFp)(this.configuration).recheckService(connectionId, service, options).then((request) => request(this.axios, this.basePath));
970
+ }
873
971
  }
874
972
  exports.AdminConnectionsApi = AdminConnectionsApi;
875
973
  /**
@@ -1160,7 +1258,7 @@ exports.AdminPlayersApi = AdminPlayersApi;
1160
1258
  const AdminPunishmentsApiAxiosParamCreator = function (configuration) {
1161
1259
  return {
1162
1260
  /**
1163
- * Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
1261
+ * Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
1164
1262
  * @summary Apply punishment
1165
1263
  * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
1166
1264
  * @param {*} [options] Override http request option.
@@ -1194,7 +1292,7 @@ const AdminPunishmentsApiAxiosParamCreator = function (configuration) {
1194
1292
  };
1195
1293
  }),
1196
1294
  /**
1197
- * Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
1295
+ * Preview the impact of a punishment across one or more targets. No changes are made.
1198
1296
  * @summary Evaluate punishment impact
1199
1297
  * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
1200
1298
  * @param {*} [options] Override http request option.
@@ -1235,7 +1333,7 @@ const AdminPunishmentsApiAxiosParamCreator = function (configuration) {
1235
1333
  * @param {string | null} [uuid] Filter by player UUID
1236
1334
  * @param {string | null} [username] Filter by player username (case-insensitive substring match)
1237
1335
  * @param {string | null} [ipAddress] Filter by IP address
1238
- * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
1336
+ * @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
1239
1337
  * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
1240
1338
  * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
1241
1339
  * @param {*} [options] Override http request option.
@@ -1293,7 +1391,7 @@ const AdminPunishmentsApiAxiosParamCreator = function (configuration) {
1293
1391
  };
1294
1392
  }),
1295
1393
  /**
1296
- * Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
1394
+ * Search for players by UUID or username, or look up all players associated with an IP address.
1297
1395
  * @summary Search punishment targets
1298
1396
  * @param {string} q UUID, username, or partial/full IP address to search for
1299
1397
  * @param {*} [options] Override http request option.
@@ -1337,7 +1435,7 @@ const AdminPunishmentsApiFp = function (configuration) {
1337
1435
  const localVarAxiosParamCreator = (0, exports.AdminPunishmentsApiAxiosParamCreator)(configuration);
1338
1436
  return {
1339
1437
  /**
1340
- * Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
1438
+ * Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
1341
1439
  * @summary Apply punishment
1342
1440
  * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
1343
1441
  * @param {*} [options] Override http request option.
@@ -1353,7 +1451,7 @@ const AdminPunishmentsApiFp = function (configuration) {
1353
1451
  });
1354
1452
  },
1355
1453
  /**
1356
- * Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
1454
+ * Preview the impact of a punishment across one or more targets. No changes are made.
1357
1455
  * @summary Evaluate punishment impact
1358
1456
  * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
1359
1457
  * @param {*} [options] Override http request option.
@@ -1376,7 +1474,7 @@ const AdminPunishmentsApiFp = function (configuration) {
1376
1474
  * @param {string | null} [uuid] Filter by player UUID
1377
1475
  * @param {string | null} [username] Filter by player username (case-insensitive substring match)
1378
1476
  * @param {string | null} [ipAddress] Filter by IP address
1379
- * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
1477
+ * @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
1380
1478
  * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
1381
1479
  * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
1382
1480
  * @param {*} [options] Override http request option.
@@ -1392,7 +1490,7 @@ const AdminPunishmentsApiFp = function (configuration) {
1392
1490
  });
1393
1491
  },
1394
1492
  /**
1395
- * Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
1493
+ * Search for players by UUID or username, or look up all players associated with an IP address.
1396
1494
  * @summary Search punishment targets
1397
1495
  * @param {string} q UUID, username, or partial/full IP address to search for
1398
1496
  * @param {*} [options] Override http request option.
@@ -1417,7 +1515,7 @@ const AdminPunishmentsApiFactory = function (configuration, basePath, axios) {
1417
1515
  const localVarFp = (0, exports.AdminPunishmentsApiFp)(configuration);
1418
1516
  return {
1419
1517
  /**
1420
- * Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
1518
+ * Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
1421
1519
  * @summary Apply punishment
1422
1520
  * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
1423
1521
  * @param {*} [options] Override http request option.
@@ -1427,7 +1525,7 @@ const AdminPunishmentsApiFactory = function (configuration, basePath, axios) {
1427
1525
  return localVarFp.applyPunishment(adminApplyPunishmentRequest, options).then((request) => request(axios, basePath));
1428
1526
  },
1429
1527
  /**
1430
- * Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
1528
+ * Preview the impact of a punishment across one or more targets. No changes are made.
1431
1529
  * @summary Evaluate punishment impact
1432
1530
  * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
1433
1531
  * @param {*} [options] Override http request option.
@@ -1444,7 +1542,7 @@ const AdminPunishmentsApiFactory = function (configuration, basePath, axios) {
1444
1542
  * @param {string | null} [uuid] Filter by player UUID
1445
1543
  * @param {string | null} [username] Filter by player username (case-insensitive substring match)
1446
1544
  * @param {string | null} [ipAddress] Filter by IP address
1447
- * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
1545
+ * @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
1448
1546
  * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
1449
1547
  * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
1450
1548
  * @param {*} [options] Override http request option.
@@ -1454,7 +1552,7 @@ const AdminPunishmentsApiFactory = function (configuration, basePath, axios) {
1454
1552
  return localVarFp.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(axios, basePath));
1455
1553
  },
1456
1554
  /**
1457
- * Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
1555
+ * Search for players by UUID or username, or look up all players associated with an IP address.
1458
1556
  * @summary Search punishment targets
1459
1557
  * @param {string} q UUID, username, or partial/full IP address to search for
1460
1558
  * @param {*} [options] Override http request option.
@@ -1471,7 +1569,7 @@ exports.AdminPunishmentsApiFactory = AdminPunishmentsApiFactory;
1471
1569
  */
1472
1570
  class AdminPunishmentsApi extends base_1.BaseAPI {
1473
1571
  /**
1474
- * Apply a punishment to one or more targets. Player targets are linked via player_punishment; IP targets are linked via connection_punishment. The authenticated user is recorded as the issuer.
1572
+ * Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
1475
1573
  * @summary Apply punishment
1476
1574
  * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
1477
1575
  * @param {*} [options] Override http request option.
@@ -1481,7 +1579,7 @@ class AdminPunishmentsApi extends base_1.BaseAPI {
1481
1579
  return (0, exports.AdminPunishmentsApiFp)(this.configuration).applyPunishment(adminApplyPunishmentRequest, options).then((request) => request(this.axios, this.basePath));
1482
1580
  }
1483
1581
  /**
1484
- * Preview the impact of a punishment across one or more targets. Returns current score, points to add, projected new score, and affected players per target. No changes are made.
1582
+ * Preview the impact of a punishment across one or more targets. No changes are made.
1485
1583
  * @summary Evaluate punishment impact
1486
1584
  * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
1487
1585
  * @param {*} [options] Override http request option.
@@ -1498,7 +1596,7 @@ class AdminPunishmentsApi extends base_1.BaseAPI {
1498
1596
  * @param {string | null} [uuid] Filter by player UUID
1499
1597
  * @param {string | null} [username] Filter by player username (case-insensitive substring match)
1500
1598
  * @param {string | null} [ipAddress] Filter by IP address
1501
- * @param {Array<string> | null} [type] Filter by punishment type (BAN, MUTE, WARNING). Repeatable.
1599
+ * @param {Array<PunishmentType> | null} [type] Filter by punishment type. Repeatable.
1502
1600
  * @param {number | null} [issuedAfter] Filter punishments issued after this epoch timestamp (ms)
1503
1601
  * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (ms)
1504
1602
  * @param {*} [options] Override http request option.
@@ -1508,7 +1606,7 @@ class AdminPunishmentsApi extends base_1.BaseAPI {
1508
1606
  return (0, exports.AdminPunishmentsApiFp)(this.configuration).getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(this.axios, this.basePath));
1509
1607
  }
1510
1608
  /**
1511
- * Search for players by UUID or username, or look up all players associated with an IP address. Used to populate the target table before issuing a punishment.
1609
+ * Search for players by UUID or username, or look up all players associated with an IP address.
1512
1610
  * @summary Search punishment targets
1513
1611
  * @param {string} q UUID, username, or partial/full IP address to search for
1514
1612
  * @param {*} [options] Override http request option.
@@ -2145,9 +2243,9 @@ exports.ConnectionApi = ConnectionApi;
2145
2243
  const PlayerApiAxiosParamCreator = function (configuration) {
2146
2244
  return {
2147
2245
  /**
2148
- * Retrieves player information by their Minecraft UUID. Returns whether this is the player\'s first join and their first login timestamp. This endpoint is useful for tracking player join history and implementing first-join rewards or tutorials.
2246
+ * Retrieves player information by Minecraft UUID including first join status and login timestamp.
2149
2247
  * @summary Get player information
2150
- * @param {string} uuid The Minecraft player UUID (with or without dashes)
2248
+ * @param {string} uuid
2151
2249
  * @param {*} [options] Override http request option.
2152
2250
  * @throws {RequiredError}
2153
2251
  */
@@ -2178,9 +2276,9 @@ const PlayerApiAxiosParamCreator = function (configuration) {
2178
2276
  };
2179
2277
  }),
2180
2278
  /**
2181
- * Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record (e.g. players who have never joined) are omitted from the response. Used by the web UI to display player names in the chat log.
2279
+ * Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record are omitted from the response.
2182
2280
  * @summary Batch resolve UUIDs to usernames
2183
- * @param {Array<string>} uuids List of player UUIDs to resolve (repeatable query param)
2281
+ * @param {Array<string>} uuids List of player UUIDs to resolve
2184
2282
  * @param {*} [options] Override http request option.
2185
2283
  * @throws {RequiredError}
2186
2284
  */
@@ -2222,9 +2320,9 @@ const PlayerApiFp = function (configuration) {
2222
2320
  const localVarAxiosParamCreator = (0, exports.PlayerApiAxiosParamCreator)(configuration);
2223
2321
  return {
2224
2322
  /**
2225
- * Retrieves player information by their Minecraft UUID. Returns whether this is the player\'s first join and their first login timestamp. This endpoint is useful for tracking player join history and implementing first-join rewards or tutorials.
2323
+ * Retrieves player information by Minecraft UUID including first join status and login timestamp.
2226
2324
  * @summary Get player information
2227
- * @param {string} uuid The Minecraft player UUID (with or without dashes)
2325
+ * @param {string} uuid
2228
2326
  * @param {*} [options] Override http request option.
2229
2327
  * @throws {RequiredError}
2230
2328
  */
@@ -2238,9 +2336,9 @@ const PlayerApiFp = function (configuration) {
2238
2336
  });
2239
2337
  },
2240
2338
  /**
2241
- * Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record (e.g. players who have never joined) are omitted from the response. Used by the web UI to display player names in the chat log.
2339
+ * Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record are omitted from the response.
2242
2340
  * @summary Batch resolve UUIDs to usernames
2243
- * @param {Array<string>} uuids List of player UUIDs to resolve (repeatable query param)
2341
+ * @param {Array<string>} uuids List of player UUIDs to resolve
2244
2342
  * @param {*} [options] Override http request option.
2245
2343
  * @throws {RequiredError}
2246
2344
  */
@@ -2263,9 +2361,9 @@ const PlayerApiFactory = function (configuration, basePath, axios) {
2263
2361
  const localVarFp = (0, exports.PlayerApiFp)(configuration);
2264
2362
  return {
2265
2363
  /**
2266
- * Retrieves player information by their Minecraft UUID. Returns whether this is the player\'s first join and their first login timestamp. This endpoint is useful for tracking player join history and implementing first-join rewards or tutorials.
2364
+ * Retrieves player information by Minecraft UUID including first join status and login timestamp.
2267
2365
  * @summary Get player information
2268
- * @param {string} uuid The Minecraft player UUID (with or without dashes)
2366
+ * @param {string} uuid
2269
2367
  * @param {*} [options] Override http request option.
2270
2368
  * @throws {RequiredError}
2271
2369
  */
@@ -2273,9 +2371,9 @@ const PlayerApiFactory = function (configuration, basePath, axios) {
2273
2371
  return localVarFp.getPlayer1(uuid, options).then((request) => request(axios, basePath));
2274
2372
  },
2275
2373
  /**
2276
- * Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record (e.g. players who have never joined) are omitted from the response. Used by the web UI to display player names in the chat log.
2374
+ * Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record are omitted from the response.
2277
2375
  * @summary Batch resolve UUIDs to usernames
2278
- * @param {Array<string>} uuids List of player UUIDs to resolve (repeatable query param)
2376
+ * @param {Array<string>} uuids List of player UUIDs to resolve
2279
2377
  * @param {*} [options] Override http request option.
2280
2378
  * @throws {RequiredError}
2281
2379
  */
@@ -2290,9 +2388,9 @@ exports.PlayerApiFactory = PlayerApiFactory;
2290
2388
  */
2291
2389
  class PlayerApi extends base_1.BaseAPI {
2292
2390
  /**
2293
- * Retrieves player information by their Minecraft UUID. Returns whether this is the player\'s first join and their first login timestamp. This endpoint is useful for tracking player join history and implementing first-join rewards or tutorials.
2391
+ * Retrieves player information by Minecraft UUID including first join status and login timestamp.
2294
2392
  * @summary Get player information
2295
- * @param {string} uuid The Minecraft player UUID (with or without dashes)
2393
+ * @param {string} uuid
2296
2394
  * @param {*} [options] Override http request option.
2297
2395
  * @throws {RequiredError}
2298
2396
  */
@@ -2300,9 +2398,9 @@ class PlayerApi extends base_1.BaseAPI {
2300
2398
  return (0, exports.PlayerApiFp)(this.configuration).getPlayer1(uuid, options).then((request) => request(this.axios, this.basePath));
2301
2399
  }
2302
2400
  /**
2303
- * Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record (e.g. players who have never joined) are omitted from the response. Used by the web UI to display player names in the chat log.
2401
+ * Accepts a list of player UUIDs and returns a map of `uuid → username` for those that have a recorded username. UUIDs with no username record are omitted from the response.
2304
2402
  * @summary Batch resolve UUIDs to usernames
2305
- * @param {Array<string>} uuids List of player UUIDs to resolve (repeatable query param)
2403
+ * @param {Array<string>} uuids List of player UUIDs to resolve
2306
2404
  * @param {*} [options] Override http request option.
2307
2405
  * @throws {RequiredError}
2308
2406
  */
@@ -2350,7 +2448,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
2350
2448
  * @summary Get punishments by player
2351
2449
  * @param {string | null} [uuid] Player UUID
2352
2450
  * @param {string | null} [username] Player username
2353
- * @param {Array<string> | null} [type] Filter by punishment types
2451
+ * @param {Array<PunishmentType> | null} [type] Filter by punishment types
2354
2452
  * @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
2355
2453
  * @param {*} [options] Override http request option.
2356
2454
  * @throws {RequiredError}
@@ -2434,7 +2532,7 @@ const PunishmentApiAxiosParamCreator = function (configuration) {
2434
2532
  * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
2435
2533
  * @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
2436
2534
  * @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
2437
- * @param {Array<string> | null} [type] Filter by punishment types
2535
+ * @param {Array<PunishmentType> | null} [type] Filter by punishment types
2438
2536
  * @param {string | null} [uuid] Filter by player UUID
2439
2537
  * @param {string | null} [ipAddress] Filter by IP address
2440
2538
  * @param {*} [options] Override http request option.
@@ -2523,7 +2621,7 @@ const PunishmentApiFp = function (configuration) {
2523
2621
  * @summary Get punishments by player
2524
2622
  * @param {string | null} [uuid] Player UUID
2525
2623
  * @param {string | null} [username] Player username
2526
- * @param {Array<string> | null} [type] Filter by punishment types
2624
+ * @param {Array<PunishmentType> | null} [type] Filter by punishment types
2527
2625
  * @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
2528
2626
  * @param {*} [options] Override http request option.
2529
2627
  * @throws {RequiredError}
@@ -2562,7 +2660,7 @@ const PunishmentApiFp = function (configuration) {
2562
2660
  * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
2563
2661
  * @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
2564
2662
  * @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
2565
- * @param {Array<string> | null} [type] Filter by punishment types
2663
+ * @param {Array<PunishmentType> | null} [type] Filter by punishment types
2566
2664
  * @param {string | null} [uuid] Filter by player UUID
2567
2665
  * @param {string | null} [ipAddress] Filter by IP address
2568
2666
  * @param {*} [options] Override http request option.
@@ -2600,7 +2698,7 @@ const PunishmentApiFactory = function (configuration, basePath, axios) {
2600
2698
  * @summary Get punishments by player
2601
2699
  * @param {string | null} [uuid] Player UUID
2602
2700
  * @param {string | null} [username] Player username
2603
- * @param {Array<string> | null} [type] Filter by punishment types
2701
+ * @param {Array<PunishmentType> | null} [type] Filter by punishment types
2604
2702
  * @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
2605
2703
  * @param {*} [options] Override http request option.
2606
2704
  * @throws {RequiredError}
@@ -2627,7 +2725,7 @@ const PunishmentApiFactory = function (configuration, basePath, axios) {
2627
2725
  * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
2628
2726
  * @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
2629
2727
  * @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
2630
- * @param {Array<string> | null} [type] Filter by punishment types
2728
+ * @param {Array<PunishmentType> | null} [type] Filter by punishment types
2631
2729
  * @param {string | null} [uuid] Filter by player UUID
2632
2730
  * @param {string | null} [ipAddress] Filter by IP address
2633
2731
  * @param {*} [options] Override http request option.
@@ -2657,7 +2755,7 @@ class PunishmentApi extends base_1.BaseAPI {
2657
2755
  * @summary Get punishments by player
2658
2756
  * @param {string | null} [uuid] Player UUID
2659
2757
  * @param {string | null} [username] Player username
2660
- * @param {Array<string> | null} [type] Filter by punishment types
2758
+ * @param {Array<PunishmentType> | null} [type] Filter by punishment types
2661
2759
  * @param {number | null} [since] Filter punishments created after this Unix epoch timestamp (milliseconds)
2662
2760
  * @param {*} [options] Override http request option.
2663
2761
  * @throws {RequiredError}
@@ -2684,7 +2782,7 @@ class PunishmentApi extends base_1.BaseAPI {
2684
2782
  * @param {number | null} [issuedBefore] Filter punishments issued before this epoch timestamp (milliseconds)
2685
2783
  * @param {number | null} [expiresAfter] Filter punishments expiring after this epoch timestamp (milliseconds)
2686
2784
  * @param {number | null} [expiresBefore] Filter punishments expiring before this epoch timestamp (milliseconds)
2687
- * @param {Array<string> | null} [type] Filter by punishment types
2785
+ * @param {Array<PunishmentType> | null} [type] Filter by punishment types
2688
2786
  * @param {string | null} [uuid] Filter by player UUID
2689
2787
  * @param {string | null} [ipAddress] Filter by IP address
2690
2788
  * @param {*} [options] Override http request option.
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Reborn API
3
3
  * 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
4
4
  *
5
- * The version of the OpenAPI document: 2.9.1
5
+ * The version of the OpenAPI document: 3.1.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Reborn API
6
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.9.1
8
+ * The version of the OpenAPI document: 3.1.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Reborn API
3
3
  * 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
4
4
  *
5
- * The version of the OpenAPI document: 2.9.1
5
+ * The version of the OpenAPI document: 3.1.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Reborn API
6
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.9.1
8
+ * The version of the OpenAPI document: 3.1.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Reborn API
3
3
  * 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
4
4
  *
5
- * The version of the OpenAPI document: 2.9.1
5
+ * The version of the OpenAPI document: 3.1.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Reborn API
5
5
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
6
6
  *
7
- * The version of the OpenAPI document: 2.9.1
7
+ * The version of the OpenAPI document: 3.1.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).