@rebornteam/reborn-api 2.9.1 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Reborn API
5
5
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
6
6
  *
7
- * The version of the OpenAPI document: 2.9.1
7
+ * The version of the OpenAPI document: 3.0.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -700,6 +700,43 @@ export const AdminConnectionsApiAxiosParamCreator = function (configuration) {
700
700
  options: localVarRequestOptions,
701
701
  };
702
702
  }),
703
+ /**
704
+ * 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.
705
+ * @summary Refresh a single VPN check
706
+ * @param {number} connectionId
707
+ * @param {string} service
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ recheckService: (connectionId_1, service_1, ...args_1) => __awaiter(this, [connectionId_1, service_1, ...args_1], void 0, function* (connectionId, service, options = {}) {
712
+ // verify required parameter 'connectionId' is not null or undefined
713
+ assertParamExists('recheckService', 'connectionId', connectionId);
714
+ // verify required parameter 'service' is not null or undefined
715
+ assertParamExists('recheckService', 'service', service);
716
+ const localVarPath = `/admin/connection/{connectionId}/recheck/{service}`
717
+ .replace(`{${"connectionId"}}`, encodeURIComponent(String(connectionId)))
718
+ .replace(`{${"service"}}`, encodeURIComponent(String(service)));
719
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
720
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
721
+ let baseOptions;
722
+ if (configuration) {
723
+ baseOptions = configuration.baseOptions;
724
+ }
725
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
726
+ const localVarHeaderParameter = {};
727
+ const localVarQueryParameter = {};
728
+ // authentication DiscordAuth required
729
+ // http bearer authentication required
730
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
731
+ localVarHeaderParameter['Accept'] = 'application/json';
732
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
733
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
734
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
735
+ return {
736
+ url: toPathString(localVarUrlObj),
737
+ options: localVarRequestOptions,
738
+ };
739
+ }),
703
740
  };
704
741
  };
705
742
  /**
@@ -766,6 +803,23 @@ export const AdminConnectionsApiFp = function (configuration) {
766
803
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
767
804
  });
768
805
  },
806
+ /**
807
+ * 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.
808
+ * @summary Refresh a single VPN check
809
+ * @param {number} connectionId
810
+ * @param {string} service
811
+ * @param {*} [options] Override http request option.
812
+ * @throws {RequiredError}
813
+ */
814
+ recheckService(connectionId, service, options) {
815
+ return __awaiter(this, void 0, void 0, function* () {
816
+ var _a, _b, _c;
817
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.recheckService(connectionId, service, options);
818
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
819
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectionsApi.recheckService']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
820
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
821
+ });
822
+ },
769
823
  };
770
824
  };
771
825
  /**
@@ -814,6 +868,17 @@ export const AdminConnectionsApiFactory = function (configuration, basePath, axi
814
868
  listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options) {
815
869
  return localVarFp.listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options).then((request) => request(axios, basePath));
816
870
  },
871
+ /**
872
+ * 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.
873
+ * @summary Refresh a single VPN check
874
+ * @param {number} connectionId
875
+ * @param {string} service
876
+ * @param {*} [options] Override http request option.
877
+ * @throws {RequiredError}
878
+ */
879
+ recheckService(connectionId, service, options) {
880
+ return localVarFp.recheckService(connectionId, service, options).then((request) => request(axios, basePath));
881
+ },
817
882
  };
818
883
  };
819
884
  /**
@@ -860,6 +925,17 @@ export class AdminConnectionsApi extends BaseAPI {
860
925
  listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options) {
861
926
  return AdminConnectionsApiFp(this.configuration).listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options).then((request) => request(this.axios, this.basePath));
862
927
  }
928
+ /**
929
+ * 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.
930
+ * @summary Refresh a single VPN check
931
+ * @param {number} connectionId
932
+ * @param {string} service
933
+ * @param {*} [options] Override http request option.
934
+ * @throws {RequiredError}
935
+ */
936
+ recheckService(connectionId, service, options) {
937
+ return AdminConnectionsApiFp(this.configuration).recheckService(connectionId, service, options).then((request) => request(this.axios, this.basePath));
938
+ }
863
939
  }
864
940
  /**
865
941
  * AdminDashboardApi - axios parameter creator
@@ -1141,7 +1217,7 @@ export class AdminPlayersApi extends BaseAPI {
1141
1217
  export const AdminPunishmentsApiAxiosParamCreator = function (configuration) {
1142
1218
  return {
1143
1219
  /**
1144
- * 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.
1220
+ * Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
1145
1221
  * @summary Apply punishment
1146
1222
  * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
1147
1223
  * @param {*} [options] Override http request option.
@@ -1175,7 +1251,7 @@ export const AdminPunishmentsApiAxiosParamCreator = function (configuration) {
1175
1251
  };
1176
1252
  }),
1177
1253
  /**
1178
- * 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.
1254
+ * Preview the impact of a punishment across one or more targets. No changes are made.
1179
1255
  * @summary Evaluate punishment impact
1180
1256
  * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
1181
1257
  * @param {*} [options] Override http request option.
@@ -1274,7 +1350,7 @@ export const AdminPunishmentsApiAxiosParamCreator = function (configuration) {
1274
1350
  };
1275
1351
  }),
1276
1352
  /**
1277
- * 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.
1353
+ * Search for players by UUID or username, or look up all players associated with an IP address.
1278
1354
  * @summary Search punishment targets
1279
1355
  * @param {string} q UUID, username, or partial/full IP address to search for
1280
1356
  * @param {*} [options] Override http request option.
@@ -1317,7 +1393,7 @@ export const AdminPunishmentsApiFp = function (configuration) {
1317
1393
  const localVarAxiosParamCreator = AdminPunishmentsApiAxiosParamCreator(configuration);
1318
1394
  return {
1319
1395
  /**
1320
- * 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.
1396
+ * Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
1321
1397
  * @summary Apply punishment
1322
1398
  * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
1323
1399
  * @param {*} [options] Override http request option.
@@ -1333,7 +1409,7 @@ export const AdminPunishmentsApiFp = function (configuration) {
1333
1409
  });
1334
1410
  },
1335
1411
  /**
1336
- * 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.
1412
+ * Preview the impact of a punishment across one or more targets. No changes are made.
1337
1413
  * @summary Evaluate punishment impact
1338
1414
  * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
1339
1415
  * @param {*} [options] Override http request option.
@@ -1372,7 +1448,7 @@ export const AdminPunishmentsApiFp = function (configuration) {
1372
1448
  });
1373
1449
  },
1374
1450
  /**
1375
- * 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.
1451
+ * Search for players by UUID or username, or look up all players associated with an IP address.
1376
1452
  * @summary Search punishment targets
1377
1453
  * @param {string} q UUID, username, or partial/full IP address to search for
1378
1454
  * @param {*} [options] Override http request option.
@@ -1396,7 +1472,7 @@ export const AdminPunishmentsApiFactory = function (configuration, basePath, axi
1396
1472
  const localVarFp = AdminPunishmentsApiFp(configuration);
1397
1473
  return {
1398
1474
  /**
1399
- * 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.
1475
+ * Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
1400
1476
  * @summary Apply punishment
1401
1477
  * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
1402
1478
  * @param {*} [options] Override http request option.
@@ -1406,7 +1482,7 @@ export const AdminPunishmentsApiFactory = function (configuration, basePath, axi
1406
1482
  return localVarFp.applyPunishment(adminApplyPunishmentRequest, options).then((request) => request(axios, basePath));
1407
1483
  },
1408
1484
  /**
1409
- * 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.
1485
+ * Preview the impact of a punishment across one or more targets. No changes are made.
1410
1486
  * @summary Evaluate punishment impact
1411
1487
  * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
1412
1488
  * @param {*} [options] Override http request option.
@@ -1433,7 +1509,7 @@ export const AdminPunishmentsApiFactory = function (configuration, basePath, axi
1433
1509
  return localVarFp.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(axios, basePath));
1434
1510
  },
1435
1511
  /**
1436
- * 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.
1512
+ * Search for players by UUID or username, or look up all players associated with an IP address.
1437
1513
  * @summary Search punishment targets
1438
1514
  * @param {string} q UUID, username, or partial/full IP address to search for
1439
1515
  * @param {*} [options] Override http request option.
@@ -1449,7 +1525,7 @@ export const AdminPunishmentsApiFactory = function (configuration, basePath, axi
1449
1525
  */
1450
1526
  export class AdminPunishmentsApi extends BaseAPI {
1451
1527
  /**
1452
- * 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.
1528
+ * Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
1453
1529
  * @summary Apply punishment
1454
1530
  * @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
1455
1531
  * @param {*} [options] Override http request option.
@@ -1459,7 +1535,7 @@ export class AdminPunishmentsApi extends BaseAPI {
1459
1535
  return AdminPunishmentsApiFp(this.configuration).applyPunishment(adminApplyPunishmentRequest, options).then((request) => request(this.axios, this.basePath));
1460
1536
  }
1461
1537
  /**
1462
- * 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.
1538
+ * Preview the impact of a punishment across one or more targets. No changes are made.
1463
1539
  * @summary Evaluate punishment impact
1464
1540
  * @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
1465
1541
  * @param {*} [options] Override http request option.
@@ -1486,7 +1562,7 @@ export class AdminPunishmentsApi extends BaseAPI {
1486
1562
  return AdminPunishmentsApiFp(this.configuration).getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(this.axios, this.basePath));
1487
1563
  }
1488
1564
  /**
1489
- * 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.
1565
+ * Search for players by UUID or username, or look up all players associated with an IP address.
1490
1566
  * @summary Search punishment targets
1491
1567
  * @param {string} q UUID, username, or partial/full IP address to search for
1492
1568
  * @param {*} [options] Override http request option.
@@ -2110,9 +2186,9 @@ export class ConnectionApi extends BaseAPI {
2110
2186
  export const PlayerApiAxiosParamCreator = function (configuration) {
2111
2187
  return {
2112
2188
  /**
2113
- * 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.
2189
+ * Retrieves player information by Minecraft UUID including first join status and login timestamp.
2114
2190
  * @summary Get player information
2115
- * @param {string} uuid The Minecraft player UUID (with or without dashes)
2191
+ * @param {string} uuid
2116
2192
  * @param {*} [options] Override http request option.
2117
2193
  * @throws {RequiredError}
2118
2194
  */
@@ -2143,9 +2219,9 @@ export const PlayerApiAxiosParamCreator = function (configuration) {
2143
2219
  };
2144
2220
  }),
2145
2221
  /**
2146
- * 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.
2222
+ * 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.
2147
2223
  * @summary Batch resolve UUIDs to usernames
2148
- * @param {Array<string>} uuids List of player UUIDs to resolve (repeatable query param)
2224
+ * @param {Array<string>} uuids List of player UUIDs to resolve
2149
2225
  * @param {*} [options] Override http request option.
2150
2226
  * @throws {RequiredError}
2151
2227
  */
@@ -2186,9 +2262,9 @@ export const PlayerApiFp = function (configuration) {
2186
2262
  const localVarAxiosParamCreator = PlayerApiAxiosParamCreator(configuration);
2187
2263
  return {
2188
2264
  /**
2189
- * 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.
2265
+ * Retrieves player information by Minecraft UUID including first join status and login timestamp.
2190
2266
  * @summary Get player information
2191
- * @param {string} uuid The Minecraft player UUID (with or without dashes)
2267
+ * @param {string} uuid
2192
2268
  * @param {*} [options] Override http request option.
2193
2269
  * @throws {RequiredError}
2194
2270
  */
@@ -2202,9 +2278,9 @@ export const PlayerApiFp = function (configuration) {
2202
2278
  });
2203
2279
  },
2204
2280
  /**
2205
- * 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.
2281
+ * 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.
2206
2282
  * @summary Batch resolve UUIDs to usernames
2207
- * @param {Array<string>} uuids List of player UUIDs to resolve (repeatable query param)
2283
+ * @param {Array<string>} uuids List of player UUIDs to resolve
2208
2284
  * @param {*} [options] Override http request option.
2209
2285
  * @throws {RequiredError}
2210
2286
  */
@@ -2226,9 +2302,9 @@ export const PlayerApiFactory = function (configuration, basePath, axios) {
2226
2302
  const localVarFp = PlayerApiFp(configuration);
2227
2303
  return {
2228
2304
  /**
2229
- * 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.
2305
+ * Retrieves player information by Minecraft UUID including first join status and login timestamp.
2230
2306
  * @summary Get player information
2231
- * @param {string} uuid The Minecraft player UUID (with or without dashes)
2307
+ * @param {string} uuid
2232
2308
  * @param {*} [options] Override http request option.
2233
2309
  * @throws {RequiredError}
2234
2310
  */
@@ -2236,9 +2312,9 @@ export const PlayerApiFactory = function (configuration, basePath, axios) {
2236
2312
  return localVarFp.getPlayer1(uuid, options).then((request) => request(axios, basePath));
2237
2313
  },
2238
2314
  /**
2239
- * 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.
2315
+ * 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.
2240
2316
  * @summary Batch resolve UUIDs to usernames
2241
- * @param {Array<string>} uuids List of player UUIDs to resolve (repeatable query param)
2317
+ * @param {Array<string>} uuids List of player UUIDs to resolve
2242
2318
  * @param {*} [options] Override http request option.
2243
2319
  * @throws {RequiredError}
2244
2320
  */
@@ -2252,9 +2328,9 @@ export const PlayerApiFactory = function (configuration, basePath, axios) {
2252
2328
  */
2253
2329
  export class PlayerApi extends BaseAPI {
2254
2330
  /**
2255
- * 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.
2331
+ * Retrieves player information by Minecraft UUID including first join status and login timestamp.
2256
2332
  * @summary Get player information
2257
- * @param {string} uuid The Minecraft player UUID (with or without dashes)
2333
+ * @param {string} uuid
2258
2334
  * @param {*} [options] Override http request option.
2259
2335
  * @throws {RequiredError}
2260
2336
  */
@@ -2262,9 +2338,9 @@ export class PlayerApi extends BaseAPI {
2262
2338
  return PlayerApiFp(this.configuration).getPlayer1(uuid, options).then((request) => request(this.axios, this.basePath));
2263
2339
  }
2264
2340
  /**
2265
- * 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.
2341
+ * 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.
2266
2342
  * @summary Batch resolve UUIDs to usernames
2267
- * @param {Array<string>} uuids List of player UUIDs to resolve (repeatable query param)
2343
+ * @param {Array<string>} uuids List of player UUIDs to resolve
2268
2344
  * @param {*} [options] Override http request option.
2269
2345
  * @throws {RequiredError}
2270
2346
  */
@@ -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.0.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Reborn API
5
5
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
6
6
  *
7
- * The version of the OpenAPI document: 2.9.1
7
+ * The version of the OpenAPI document: 3.0.1
8
8
  *
9
9
  *
10
10
  * 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.0.1
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.0.1
8
8
  *
9
9
  *
10
10
  * 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.0.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,7 +3,7 @@
3
3
  * Reborn API
4
4
  * 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
5
5
  *
6
- * The version of the OpenAPI document: 2.9.1
6
+ * The version of the OpenAPI document: 3.0.1
7
7
  *
8
8
  *
9
9
  * 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.0.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Reborn API
5
5
  * The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
6
6
  *
7
- * The version of the OpenAPI document: 2.9.1
7
+ * The version of the OpenAPI document: 3.0.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.0.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.0.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,25 @@
1
+ # AdminConnectionCheckResult
2
+
3
+ Result from a single VPN detection service for a given IP address
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **service** | **string** | Service identifier | [optional] [default to undefined]
10
+ **result** | **boolean** | Whether this service flagged the IP as a VPN, proxy, or Tor exit node | [optional] [default to undefined]
11
+ **checkedAt** | **string** | When this check was last performed | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { AdminConnectionCheckResult } from '@rebornteam/reborn-api';
17
+
18
+ const instance: AdminConnectionCheckResult = {
19
+ service,
20
+ result,
21
+ checkedAt,
22
+ };
23
+ ```
24
+
25
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -7,6 +7,7 @@ All URIs are relative to *https://api.smsh.sh*
7
7
  |[**createBypass**](#createbypass) | **POST** /admin/connection/bypass | Create connection bypass|
8
8
  |[**listAllConnections**](#listallconnections) | **GET** /admin/connection | List all connections (paginated)|
9
9
  |[**listConnections**](#listconnections) | **GET** /admin/connection/recent | List recent connections|
10
+ |[**recheckService**](#recheckservice) | **POST** /admin/connection/{connectionId}/recheck/{service} | Refresh a single VPN check|
10
11
 
11
12
  # **createBypass**
12
13
  > AdminConnectionBypassResponse createBypass(createBypassRequest)
@@ -199,3 +200,61 @@ const { status, data } = await apiInstance.listConnections(
199
200
 
200
201
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
201
202
 
203
+ # **recheckService**
204
+ > AdminConnectionCheckResult recheckService()
205
+
206
+ 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.
207
+
208
+ ### Example
209
+
210
+ ```typescript
211
+ import {
212
+ AdminConnectionsApi,
213
+ Configuration
214
+ } from '@rebornteam/reborn-api';
215
+
216
+ const configuration = new Configuration();
217
+ const apiInstance = new AdminConnectionsApi(configuration);
218
+
219
+ let connectionId: number; // (default to undefined)
220
+ let service: string; // (default to undefined)
221
+
222
+ const { status, data } = await apiInstance.recheckService(
223
+ connectionId,
224
+ service
225
+ );
226
+ ```
227
+
228
+ ### Parameters
229
+
230
+ |Name | Type | Description | Notes|
231
+ |------------- | ------------- | ------------- | -------------|
232
+ | **connectionId** | [**number**] | | defaults to undefined|
233
+ | **service** | [**string**] | | defaults to undefined|
234
+
235
+
236
+ ### Return type
237
+
238
+ **AdminConnectionCheckResult**
239
+
240
+ ### Authorization
241
+
242
+ [DiscordAuth](../README.md#DiscordAuth)
243
+
244
+ ### HTTP request headers
245
+
246
+ - **Content-Type**: Not defined
247
+ - **Accept**: application/json
248
+
249
+
250
+ ### HTTP response details
251
+ | Status code | Description | Response headers |
252
+ |-------------|-------------|------------------|
253
+ |**200** | Check refreshed successfully | - |
254
+ |**400** | Unknown or unavailable service name | - |
255
+ |**401** | Unauthorized - Authentication required | - |
256
+ |**403** | Forbidden - Moderator role required | - |
257
+ |**404** | Connection not found | - |
258
+
259
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
260
+
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
15
15
  **lastSeen** | **string** | | [optional] [default to undefined]
16
16
  **percentPositive** | **number** | | [default to undefined]
17
17
  **numberOfChecks** | **number** | | [default to undefined]
18
+ **results** | [**Array&lt;AdminConnectionCheckResult&gt;**](AdminConnectionCheckResult.md) | Results from each VPN detection service for this IP address | [optional] [default to undefined]
18
19
 
19
20
  ## Example
20
21
 
@@ -32,6 +33,7 @@ const instance: AdminDashboardConnectionResponse = {
32
33
  lastSeen,
33
34
  percentPositive,
34
35
  numberOfChecks,
36
+ results,
35
37
  };
36
38
  ```
37
39
 
@@ -12,7 +12,7 @@ All URIs are relative to *https://api.smsh.sh*
12
12
  # **applyPunishment**
13
13
  > AdminApplyPunishmentResponse applyPunishment(adminApplyPunishmentRequest)
14
14
 
15
- 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.
15
+ Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
16
16
 
17
17
  ### Example
18
18
 
@@ -67,7 +67,7 @@ const { status, data } = await apiInstance.applyPunishment(
67
67
  # **createDraft**
68
68
  > AdminPunishmentDraftResponse createDraft(adminCreatePunishmentDraftRequest)
69
69
 
70
- 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.
70
+ Preview the impact of a punishment across one or more targets. No changes are made.
71
71
 
72
72
  ### Example
73
73
 
@@ -196,7 +196,7 @@ const { status, data } = await apiInstance.getPunishments(
196
196
  # **searchTargets**
197
197
  > AdminPunishmentSearchResponse searchTargets()
198
198
 
199
- 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.
199
+ Search for players by UUID or username, or look up all players associated with an IP address.
200
200
 
201
201
  ### Example
202
202
 
@@ -7,12 +7,13 @@ Comprehensive connection analysis response including VPN detection, geolocation,
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
9
  **ipAddress** | **string** | The analyzed IPv4 address | [optional] [default to undefined]
10
- **approximateLocation** | **string** | Approximate geographic location of the IP address, typically in \&#39;City, Country\&#39; format. Returns \&#39;Local, N/A\&#39; for localhost or private IPs. | [optional] [default to undefined]
11
- **percentPositive** | **number** | Confidence score representing the percentage of VPN detection services that flagged this IP as suspicious. Range: 0.0 (clean) to 100.0 (definitely VPN/proxy). Values above 50.0 suggest high probability of VPN usage. | [optional] [default to undefined]
12
- **numberOfChecks** | **number** | Total number of VPN detection services successfully queried during the last check. Higher numbers indicate more comprehensive analysis. | [optional] [default to undefined]
13
- **bypassed** | **boolean** | | [optional] [default to undefined]
14
- **bypassedUntil** | **string** | Expiration timestamp for the bypass (ISO-8601 format). After this time, normal VPN detection rules will apply again. Null if not bypassed or bypass is permanent. | [optional] [default to undefined]
15
- **playerInformation** | [**PlayerGetPlayerInformation**](PlayerGetPlayerInformation.md) | Player information associated with this connection. Only populated when \&#39;associate_uuid\&#39; query parameter is provided. Contains first join status and login history. | [optional] [default to undefined]
10
+ **approximateLocation** | **string** | Approximate geographic location of the IP address. Returns \&#39;Local, N/A\&#39; for localhost or private IPs. | [optional] [default to undefined]
11
+ **percentPositive** | **number** | Confidence score representing the percentage of VPN detection services that flagged this IP as suspicious. Range: 0.0 (clean) to 100.0 (definitely VPN/proxy). | [optional] [default to undefined]
12
+ **numberOfChecks** | **number** | Total number of VPN detection services successfully queried during the last check. | [optional] [default to undefined]
13
+ **isBypassed** | **boolean** | Indicates if this IP address has been administratively bypassed. | [optional] [default to undefined]
14
+ **bypassedUntil** | **string** | Expiration timestamp for the bypass (ISO-8601 format). Null if not bypassed or bypass is permanent. | [optional] [default to undefined]
15
+ **results** | [**Array&lt;AdminConnectionCheckResult&gt;**](AdminConnectionCheckResult.md) | Results from each VPN detection service that checked this IP address | [optional] [default to undefined]
16
+ **playerInformation** | [**PlayerGetPlayerInformation**](PlayerGetPlayerInformation.md) | Player information associated with this connection. Only populated when \&#39;associate_uuid\&#39; query parameter is provided. | [optional] [default to undefined]
16
17
  **punishments** | [**Array&lt;PunishmentGetPunishmentResponse&gt;**](PunishmentGetPunishmentResponse.md) | Combined list of active punishments for both the IP address and player UUID (if provided). Only includes non-expired punishments. | [optional] [default to undefined]
17
18
 
18
19
  ## Example
@@ -25,8 +26,9 @@ const instance: ConnectionGetConnectionDetailsResponse = {
25
26
  approximateLocation,
26
27
  percentPositive,
27
28
  numberOfChecks,
28
- bypassed,
29
+ isBypassed,
29
30
  bypassedUntil,
31
+ results,
30
32
  playerInformation,
31
33
  punishments,
32
34
  };