@rebornteam/reborn-api 3.1.0 → 3.2.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.
Files changed (55) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +4 -2
  3. package/api.ts +185 -95
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +148 -95
  8. package/dist/api.js +63 -1
  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 +148 -95
  16. package/dist/esm/api.js +63 -1
  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 +2 -2
  28. package/docs/AdminApplyPunishmentResponse.md +1 -1
  29. package/docs/AdminApplyPunishmentResult.md +6 -6
  30. package/docs/AdminBackfillLocationResponse.md +25 -0
  31. package/docs/AdminClientCredentialResponse.md +6 -6
  32. package/docs/AdminConnectionBypassResponse.md +4 -4
  33. package/docs/AdminConnectionCheckResult.md +7 -3
  34. package/docs/AdminConnectionsApi.md +47 -0
  35. package/docs/AdminCreatePunishmentDraftRequest.md +2 -2
  36. package/docs/AdminDashboardConnectionResponse.md +2 -2
  37. package/docs/AdminIpSearchResult.md +2 -2
  38. package/docs/AdminPagedConnectionResponse.md +5 -5
  39. package/docs/AdminPagedPlayerResponse.md +5 -5
  40. package/docs/AdminPagedPunishmentResponse.md +5 -5
  41. package/docs/AdminPlayerDetailResponse.md +7 -7
  42. package/docs/AdminPlayerSearchResult.md +1 -1
  43. package/docs/AdminPlayerSummary.md +6 -6
  44. package/docs/AdminPunishmentDraftResponse.md +1 -1
  45. package/docs/AdminPunishmentEvaluation.md +9 -9
  46. package/docs/AdminPunishmentSearchResponse.md +3 -3
  47. package/docs/AdminUsernameHistoryEntry.md +2 -2
  48. package/docs/ConnectionGetConnectionDetailsResponse.md +7 -7
  49. package/docs/PlayerGetPlayerInformation.md +4 -4
  50. package/docs/PunishmentGetPunishmentResponse.md +6 -6
  51. package/docs/PunishmentSeveritiesResponse.md +1 -1
  52. package/docs/PunishmentSeveritiesResponsePunishmentTypeInfo.md +2 -2
  53. package/docs/PunishmentSeveritiesResponseSeverityInfo.md +2 -2
  54. package/index.ts +1 -1
  55. 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: 3.1.0
8
+ * The version of the OpenAPI document: 3.2.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -589,6 +589,35 @@ exports.AdminClientCredentialsApi = AdminClientCredentialsApi;
589
589
  */
590
590
  const AdminConnectionsApiAxiosParamCreator = function (configuration) {
591
591
  return {
592
+ /**
593
+ * Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
594
+ * @summary Backfill missing location data
595
+ * @param {*} [options] Override http request option.
596
+ * @throws {RequiredError}
597
+ */
598
+ backfillLocation: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
599
+ const localVarPath = `/admin/connection/backfill-location`;
600
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
601
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
602
+ let baseOptions;
603
+ if (configuration) {
604
+ baseOptions = configuration.baseOptions;
605
+ }
606
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
607
+ const localVarHeaderParameter = {};
608
+ const localVarQueryParameter = {};
609
+ // authentication DiscordAuth required
610
+ // http bearer authentication required
611
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
612
+ localVarHeaderParameter['Accept'] = 'application/json';
613
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
614
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
615
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
616
+ return {
617
+ url: (0, common_1.toPathString)(localVarUrlObj),
618
+ options: localVarRequestOptions,
619
+ };
620
+ }),
592
621
  /**
593
622
  * Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
594
623
  * @summary Create connection bypass
@@ -775,6 +804,21 @@ exports.AdminConnectionsApiAxiosParamCreator = AdminConnectionsApiAxiosParamCrea
775
804
  const AdminConnectionsApiFp = function (configuration) {
776
805
  const localVarAxiosParamCreator = (0, exports.AdminConnectionsApiAxiosParamCreator)(configuration);
777
806
  return {
807
+ /**
808
+ * Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
809
+ * @summary Backfill missing location data
810
+ * @param {*} [options] Override http request option.
811
+ * @throws {RequiredError}
812
+ */
813
+ backfillLocation(options) {
814
+ return __awaiter(this, void 0, void 0, function* () {
815
+ var _a, _b, _c;
816
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.backfillLocation(options);
817
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
818
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminConnectionsApi.backfillLocation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
819
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
820
+ });
821
+ },
778
822
  /**
779
823
  * Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
780
824
  * @summary Create connection bypass
@@ -859,6 +903,15 @@ exports.AdminConnectionsApiFp = AdminConnectionsApiFp;
859
903
  const AdminConnectionsApiFactory = function (configuration, basePath, axios) {
860
904
  const localVarFp = (0, exports.AdminConnectionsApiFp)(configuration);
861
905
  return {
906
+ /**
907
+ * Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
908
+ * @summary Backfill missing location data
909
+ * @param {*} [options] Override http request option.
910
+ * @throws {RequiredError}
911
+ */
912
+ backfillLocation(options) {
913
+ return localVarFp.backfillLocation(options).then((request) => request(axios, basePath));
914
+ },
862
915
  /**
863
916
  * Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
864
917
  * @summary Create connection bypass
@@ -917,6 +970,15 @@ exports.AdminConnectionsApiFactory = AdminConnectionsApiFactory;
917
970
  * AdminConnectionsApi - object-oriented interface
918
971
  */
919
972
  class AdminConnectionsApi extends base_1.BaseAPI {
973
+ /**
974
+ * Iterates every connection_check row where both city and country are NULL and re-runs that row\'s source VPN service to populate location data. Concurrency is capped to avoid overwhelming external providers. Synchronous — returns once the run completes.
975
+ * @summary Backfill missing location data
976
+ * @param {*} [options] Override http request option.
977
+ * @throws {RequiredError}
978
+ */
979
+ backfillLocation(options) {
980
+ return (0, exports.AdminConnectionsApiFp)(this.configuration).backfillLocation(options).then((request) => request(this.axios, this.basePath));
981
+ }
920
982
  /**
921
983
  * Creates a temporary bypass for an IP address, expiring at the specified epoch timestamp (milliseconds since Unix epoch).
922
984
  * @summary Create connection bypass
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: 3.1.0
5
+ * The version of the OpenAPI document: 3.2.1
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: 3.1.0
8
+ * The version of the OpenAPI document: 3.2.1
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: 3.1.0
5
+ * The version of the OpenAPI document: 3.2.1
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: 3.1.0
8
+ * The version of the OpenAPI document: 3.2.1
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: 3.1.0
5
+ * The version of the OpenAPI document: 3.2.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: 3.1.0
7
+ * The version of the OpenAPI document: 3.2.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).