@rebornteam/reborn-api 2.8.0 → 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/.openapi-generator/FILES +3 -0
- package/README.md +7 -2
- package/api.ts +233 -41
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +147 -41
- package/dist/api.js +173 -30
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +147 -41
- package/dist/esm/api.js +172 -29
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AdminConnectionCheckResult.md +25 -0
- package/docs/AdminConnectionsApi.md +62 -3
- package/docs/AdminDashboardApi.md +1 -1
- package/docs/AdminDashboardConnectionResponse.md +2 -0
- package/docs/AdminPlayersApi.md +2 -2
- package/docs/AdminPunishmentsApi.md +7 -7
- package/docs/AuthenticationApi.md +46 -0
- package/docs/ConnectionGetConnectionDetailsResponse.md +9 -7
- package/docs/PlayerApi.md +7 -8
- package/docs/PlayerGetPlayerInformation.md +4 -4
- package/docs/Rank.md +12 -0
- package/docs/UserProfileResponse.md +30 -0
- package/index.ts +1 -1
- 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:
|
|
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).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.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.AdminPunishmentSearchResponseKindEnum = exports.AdminCreatePunishmentDraftRequestTypeEnum = exports.AdminApplyPunishmentRequestTypeEnum = void 0;
|
|
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;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -43,6 +43,11 @@ exports.AdminPunishmentSearchResponseKindEnum = {
|
|
|
43
43
|
Player: 'player',
|
|
44
44
|
Ip: 'ip'
|
|
45
45
|
};
|
|
46
|
+
exports.Rank = {
|
|
47
|
+
Administrator: 'ADMINISTRATOR',
|
|
48
|
+
Moderator: 'MODERATOR',
|
|
49
|
+
Service: 'SERVICE'
|
|
50
|
+
};
|
|
46
51
|
/**
|
|
47
52
|
* AdminClientCredentialsApi - axios parameter creator
|
|
48
53
|
*/
|
|
@@ -702,6 +707,43 @@ const AdminConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
702
707
|
options: localVarRequestOptions,
|
|
703
708
|
};
|
|
704
709
|
}),
|
|
710
|
+
/**
|
|
711
|
+
* 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.
|
|
712
|
+
* @summary Refresh a single VPN check
|
|
713
|
+
* @param {number} connectionId
|
|
714
|
+
* @param {string} service
|
|
715
|
+
* @param {*} [options] Override http request option.
|
|
716
|
+
* @throws {RequiredError}
|
|
717
|
+
*/
|
|
718
|
+
recheckService: (connectionId_1, service_1, ...args_1) => __awaiter(this, [connectionId_1, service_1, ...args_1], void 0, function* (connectionId, service, options = {}) {
|
|
719
|
+
// verify required parameter 'connectionId' is not null or undefined
|
|
720
|
+
(0, common_1.assertParamExists)('recheckService', 'connectionId', connectionId);
|
|
721
|
+
// verify required parameter 'service' is not null or undefined
|
|
722
|
+
(0, common_1.assertParamExists)('recheckService', 'service', service);
|
|
723
|
+
const localVarPath = `/admin/connection/{connectionId}/recheck/{service}`
|
|
724
|
+
.replace(`{${"connectionId"}}`, encodeURIComponent(String(connectionId)))
|
|
725
|
+
.replace(`{${"service"}}`, encodeURIComponent(String(service)));
|
|
726
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
727
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
728
|
+
let baseOptions;
|
|
729
|
+
if (configuration) {
|
|
730
|
+
baseOptions = configuration.baseOptions;
|
|
731
|
+
}
|
|
732
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
733
|
+
const localVarHeaderParameter = {};
|
|
734
|
+
const localVarQueryParameter = {};
|
|
735
|
+
// authentication DiscordAuth required
|
|
736
|
+
// http bearer authentication required
|
|
737
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
738
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
739
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
740
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
741
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
742
|
+
return {
|
|
743
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
744
|
+
options: localVarRequestOptions,
|
|
745
|
+
};
|
|
746
|
+
}),
|
|
705
747
|
};
|
|
706
748
|
};
|
|
707
749
|
exports.AdminConnectionsApiAxiosParamCreator = AdminConnectionsApiAxiosParamCreator;
|
|
@@ -769,6 +811,23 @@ const AdminConnectionsApiFp = function (configuration) {
|
|
|
769
811
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
770
812
|
});
|
|
771
813
|
},
|
|
814
|
+
/**
|
|
815
|
+
* 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.
|
|
816
|
+
* @summary Refresh a single VPN check
|
|
817
|
+
* @param {number} connectionId
|
|
818
|
+
* @param {string} service
|
|
819
|
+
* @param {*} [options] Override http request option.
|
|
820
|
+
* @throws {RequiredError}
|
|
821
|
+
*/
|
|
822
|
+
recheckService(connectionId, service, options) {
|
|
823
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
824
|
+
var _a, _b, _c;
|
|
825
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.recheckService(connectionId, service, options);
|
|
826
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
827
|
+
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;
|
|
828
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
829
|
+
});
|
|
830
|
+
},
|
|
772
831
|
};
|
|
773
832
|
};
|
|
774
833
|
exports.AdminConnectionsApiFp = AdminConnectionsApiFp;
|
|
@@ -818,6 +877,17 @@ const AdminConnectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
818
877
|
listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options) {
|
|
819
878
|
return localVarFp.listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options).then((request) => request(axios, basePath));
|
|
820
879
|
},
|
|
880
|
+
/**
|
|
881
|
+
* 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.
|
|
882
|
+
* @summary Refresh a single VPN check
|
|
883
|
+
* @param {number} connectionId
|
|
884
|
+
* @param {string} service
|
|
885
|
+
* @param {*} [options] Override http request option.
|
|
886
|
+
* @throws {RequiredError}
|
|
887
|
+
*/
|
|
888
|
+
recheckService(connectionId, service, options) {
|
|
889
|
+
return localVarFp.recheckService(connectionId, service, options).then((request) => request(axios, basePath));
|
|
890
|
+
},
|
|
821
891
|
};
|
|
822
892
|
};
|
|
823
893
|
exports.AdminConnectionsApiFactory = AdminConnectionsApiFactory;
|
|
@@ -865,6 +935,17 @@ class AdminConnectionsApi extends base_1.BaseAPI {
|
|
|
865
935
|
listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options) {
|
|
866
936
|
return (0, exports.AdminConnectionsApiFp)(this.configuration).listConnections(createdAfter, createdBefore, ipAddress, uuid, isVpn, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
867
937
|
}
|
|
938
|
+
/**
|
|
939
|
+
* 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.
|
|
940
|
+
* @summary Refresh a single VPN check
|
|
941
|
+
* @param {number} connectionId
|
|
942
|
+
* @param {string} service
|
|
943
|
+
* @param {*} [options] Override http request option.
|
|
944
|
+
* @throws {RequiredError}
|
|
945
|
+
*/
|
|
946
|
+
recheckService(connectionId, service, options) {
|
|
947
|
+
return (0, exports.AdminConnectionsApiFp)(this.configuration).recheckService(connectionId, service, options).then((request) => request(this.axios, this.basePath));
|
|
948
|
+
}
|
|
868
949
|
}
|
|
869
950
|
exports.AdminConnectionsApi = AdminConnectionsApi;
|
|
870
951
|
/**
|
|
@@ -1155,7 +1236,7 @@ exports.AdminPlayersApi = AdminPlayersApi;
|
|
|
1155
1236
|
const AdminPunishmentsApiAxiosParamCreator = function (configuration) {
|
|
1156
1237
|
return {
|
|
1157
1238
|
/**
|
|
1158
|
-
* Apply a punishment to one or more targets.
|
|
1239
|
+
* Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
|
|
1159
1240
|
* @summary Apply punishment
|
|
1160
1241
|
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
1161
1242
|
* @param {*} [options] Override http request option.
|
|
@@ -1189,7 +1270,7 @@ const AdminPunishmentsApiAxiosParamCreator = function (configuration) {
|
|
|
1189
1270
|
};
|
|
1190
1271
|
}),
|
|
1191
1272
|
/**
|
|
1192
|
-
* Preview the impact of a punishment across one or more targets.
|
|
1273
|
+
* Preview the impact of a punishment across one or more targets. No changes are made.
|
|
1193
1274
|
* @summary Evaluate punishment impact
|
|
1194
1275
|
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
1195
1276
|
* @param {*} [options] Override http request option.
|
|
@@ -1288,7 +1369,7 @@ const AdminPunishmentsApiAxiosParamCreator = function (configuration) {
|
|
|
1288
1369
|
};
|
|
1289
1370
|
}),
|
|
1290
1371
|
/**
|
|
1291
|
-
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
1372
|
+
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
1292
1373
|
* @summary Search punishment targets
|
|
1293
1374
|
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
1294
1375
|
* @param {*} [options] Override http request option.
|
|
@@ -1332,7 +1413,7 @@ const AdminPunishmentsApiFp = function (configuration) {
|
|
|
1332
1413
|
const localVarAxiosParamCreator = (0, exports.AdminPunishmentsApiAxiosParamCreator)(configuration);
|
|
1333
1414
|
return {
|
|
1334
1415
|
/**
|
|
1335
|
-
* Apply a punishment to one or more targets.
|
|
1416
|
+
* Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
|
|
1336
1417
|
* @summary Apply punishment
|
|
1337
1418
|
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
1338
1419
|
* @param {*} [options] Override http request option.
|
|
@@ -1348,7 +1429,7 @@ const AdminPunishmentsApiFp = function (configuration) {
|
|
|
1348
1429
|
});
|
|
1349
1430
|
},
|
|
1350
1431
|
/**
|
|
1351
|
-
* Preview the impact of a punishment across one or more targets.
|
|
1432
|
+
* Preview the impact of a punishment across one or more targets. No changes are made.
|
|
1352
1433
|
* @summary Evaluate punishment impact
|
|
1353
1434
|
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
1354
1435
|
* @param {*} [options] Override http request option.
|
|
@@ -1387,7 +1468,7 @@ const AdminPunishmentsApiFp = function (configuration) {
|
|
|
1387
1468
|
});
|
|
1388
1469
|
},
|
|
1389
1470
|
/**
|
|
1390
|
-
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
1471
|
+
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
1391
1472
|
* @summary Search punishment targets
|
|
1392
1473
|
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
1393
1474
|
* @param {*} [options] Override http request option.
|
|
@@ -1412,7 +1493,7 @@ const AdminPunishmentsApiFactory = function (configuration, basePath, axios) {
|
|
|
1412
1493
|
const localVarFp = (0, exports.AdminPunishmentsApiFp)(configuration);
|
|
1413
1494
|
return {
|
|
1414
1495
|
/**
|
|
1415
|
-
* Apply a punishment to one or more targets.
|
|
1496
|
+
* Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
|
|
1416
1497
|
* @summary Apply punishment
|
|
1417
1498
|
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
1418
1499
|
* @param {*} [options] Override http request option.
|
|
@@ -1422,7 +1503,7 @@ const AdminPunishmentsApiFactory = function (configuration, basePath, axios) {
|
|
|
1422
1503
|
return localVarFp.applyPunishment(adminApplyPunishmentRequest, options).then((request) => request(axios, basePath));
|
|
1423
1504
|
},
|
|
1424
1505
|
/**
|
|
1425
|
-
* Preview the impact of a punishment across one or more targets.
|
|
1506
|
+
* Preview the impact of a punishment across one or more targets. No changes are made.
|
|
1426
1507
|
* @summary Evaluate punishment impact
|
|
1427
1508
|
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
1428
1509
|
* @param {*} [options] Override http request option.
|
|
@@ -1449,7 +1530,7 @@ const AdminPunishmentsApiFactory = function (configuration, basePath, axios) {
|
|
|
1449
1530
|
return localVarFp.getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(axios, basePath));
|
|
1450
1531
|
},
|
|
1451
1532
|
/**
|
|
1452
|
-
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
1533
|
+
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
1453
1534
|
* @summary Search punishment targets
|
|
1454
1535
|
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
1455
1536
|
* @param {*} [options] Override http request option.
|
|
@@ -1466,7 +1547,7 @@ exports.AdminPunishmentsApiFactory = AdminPunishmentsApiFactory;
|
|
|
1466
1547
|
*/
|
|
1467
1548
|
class AdminPunishmentsApi extends base_1.BaseAPI {
|
|
1468
1549
|
/**
|
|
1469
|
-
* Apply a punishment to one or more targets.
|
|
1550
|
+
* Apply a punishment to one or more targets. The authenticated user is recorded as the issuer.
|
|
1470
1551
|
* @summary Apply punishment
|
|
1471
1552
|
* @param {AdminApplyPunishmentRequest} adminApplyPunishmentRequest
|
|
1472
1553
|
* @param {*} [options] Override http request option.
|
|
@@ -1476,7 +1557,7 @@ class AdminPunishmentsApi extends base_1.BaseAPI {
|
|
|
1476
1557
|
return (0, exports.AdminPunishmentsApiFp)(this.configuration).applyPunishment(adminApplyPunishmentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1477
1558
|
}
|
|
1478
1559
|
/**
|
|
1479
|
-
* Preview the impact of a punishment across one or more targets.
|
|
1560
|
+
* Preview the impact of a punishment across one or more targets. No changes are made.
|
|
1480
1561
|
* @summary Evaluate punishment impact
|
|
1481
1562
|
* @param {AdminCreatePunishmentDraftRequest} adminCreatePunishmentDraftRequest
|
|
1482
1563
|
* @param {*} [options] Override http request option.
|
|
@@ -1503,7 +1584,7 @@ class AdminPunishmentsApi extends base_1.BaseAPI {
|
|
|
1503
1584
|
return (0, exports.AdminPunishmentsApiFp)(this.configuration).getPunishments(page, limit, uuid, username, ipAddress, type, issuedAfter, issuedBefore, options).then((request) => request(this.axios, this.basePath));
|
|
1504
1585
|
}
|
|
1505
1586
|
/**
|
|
1506
|
-
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
1587
|
+
* Search for players by UUID or username, or look up all players associated with an IP address.
|
|
1507
1588
|
* @summary Search punishment targets
|
|
1508
1589
|
* @param {string} q UUID, username, or partial/full IP address to search for
|
|
1509
1590
|
* @param {*} [options] Override http request option.
|
|
@@ -1583,6 +1664,35 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
1583
1664
|
options: localVarRequestOptions,
|
|
1584
1665
|
};
|
|
1585
1666
|
}),
|
|
1667
|
+
/**
|
|
1668
|
+
* Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
|
|
1669
|
+
* @summary Get current user profile
|
|
1670
|
+
* @param {*} [options] Override http request option.
|
|
1671
|
+
* @throws {RequiredError}
|
|
1672
|
+
*/
|
|
1673
|
+
me: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1674
|
+
const localVarPath = `/auth/me`;
|
|
1675
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1676
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1677
|
+
let baseOptions;
|
|
1678
|
+
if (configuration) {
|
|
1679
|
+
baseOptions = configuration.baseOptions;
|
|
1680
|
+
}
|
|
1681
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1682
|
+
const localVarHeaderParameter = {};
|
|
1683
|
+
const localVarQueryParameter = {};
|
|
1684
|
+
// authentication DiscordAuth required
|
|
1685
|
+
// http bearer authentication required
|
|
1686
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1687
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1688
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1689
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1690
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1691
|
+
return {
|
|
1692
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1693
|
+
options: localVarRequestOptions,
|
|
1694
|
+
};
|
|
1695
|
+
}),
|
|
1586
1696
|
/**
|
|
1587
1697
|
* Exchange service client credentials for a Bearer JWT using the OAuth2 client_credentials grant. Used by game server plugins to authenticate against the API.
|
|
1588
1698
|
* @summary Service - Exchange client credentials for token
|
|
@@ -1668,6 +1778,21 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
1668
1778
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1669
1779
|
});
|
|
1670
1780
|
},
|
|
1781
|
+
/**
|
|
1782
|
+
* Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
|
|
1783
|
+
* @summary Get current user profile
|
|
1784
|
+
* @param {*} [options] Override http request option.
|
|
1785
|
+
* @throws {RequiredError}
|
|
1786
|
+
*/
|
|
1787
|
+
me(options) {
|
|
1788
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1789
|
+
var _a, _b, _c;
|
|
1790
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.me(options);
|
|
1791
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1792
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.me']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1793
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1794
|
+
});
|
|
1795
|
+
},
|
|
1671
1796
|
/**
|
|
1672
1797
|
* Exchange service client credentials for a Bearer JWT using the OAuth2 client_credentials grant. Used by game server plugins to authenticate against the API.
|
|
1673
1798
|
* @summary Service - Exchange client credentials for token
|
|
@@ -1715,6 +1840,15 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
1715
1840
|
initiateLogin(options) {
|
|
1716
1841
|
return localVarFp.initiateLogin(options).then((request) => request(axios, basePath));
|
|
1717
1842
|
},
|
|
1843
|
+
/**
|
|
1844
|
+
* Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
|
|
1845
|
+
* @summary Get current user profile
|
|
1846
|
+
* @param {*} [options] Override http request option.
|
|
1847
|
+
* @throws {RequiredError}
|
|
1848
|
+
*/
|
|
1849
|
+
me(options) {
|
|
1850
|
+
return localVarFp.me(options).then((request) => request(axios, basePath));
|
|
1851
|
+
},
|
|
1718
1852
|
/**
|
|
1719
1853
|
* Exchange service client credentials for a Bearer JWT using the OAuth2 client_credentials grant. Used by game server plugins to authenticate against the API.
|
|
1720
1854
|
* @summary Service - Exchange client credentials for token
|
|
@@ -1754,6 +1888,15 @@ class AuthenticationApi extends base_1.BaseAPI {
|
|
|
1754
1888
|
initiateLogin(options) {
|
|
1755
1889
|
return (0, exports.AuthenticationApiFp)(this.configuration).initiateLogin(options).then((request) => request(this.axios, this.basePath));
|
|
1756
1890
|
}
|
|
1891
|
+
/**
|
|
1892
|
+
* Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
|
|
1893
|
+
* @summary Get current user profile
|
|
1894
|
+
* @param {*} [options] Override http request option.
|
|
1895
|
+
* @throws {RequiredError}
|
|
1896
|
+
*/
|
|
1897
|
+
me(options) {
|
|
1898
|
+
return (0, exports.AuthenticationApiFp)(this.configuration).me(options).then((request) => request(this.axios, this.basePath));
|
|
1899
|
+
}
|
|
1757
1900
|
/**
|
|
1758
1901
|
* Exchange service client credentials for a Bearer JWT using the OAuth2 client_credentials grant. Used by game server plugins to authenticate against the API.
|
|
1759
1902
|
* @summary Service - Exchange client credentials for token
|
|
@@ -2078,9 +2221,9 @@ exports.ConnectionApi = ConnectionApi;
|
|
|
2078
2221
|
const PlayerApiAxiosParamCreator = function (configuration) {
|
|
2079
2222
|
return {
|
|
2080
2223
|
/**
|
|
2081
|
-
* Retrieves player information by
|
|
2224
|
+
* Retrieves player information by Minecraft UUID including first join status and login timestamp.
|
|
2082
2225
|
* @summary Get player information
|
|
2083
|
-
* @param {string} uuid
|
|
2226
|
+
* @param {string} uuid
|
|
2084
2227
|
* @param {*} [options] Override http request option.
|
|
2085
2228
|
* @throws {RequiredError}
|
|
2086
2229
|
*/
|
|
@@ -2111,9 +2254,9 @@ const PlayerApiAxiosParamCreator = function (configuration) {
|
|
|
2111
2254
|
};
|
|
2112
2255
|
}),
|
|
2113
2256
|
/**
|
|
2114
|
-
* 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
|
|
2257
|
+
* 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.
|
|
2115
2258
|
* @summary Batch resolve UUIDs to usernames
|
|
2116
|
-
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
2259
|
+
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
2117
2260
|
* @param {*} [options] Override http request option.
|
|
2118
2261
|
* @throws {RequiredError}
|
|
2119
2262
|
*/
|
|
@@ -2155,9 +2298,9 @@ const PlayerApiFp = function (configuration) {
|
|
|
2155
2298
|
const localVarAxiosParamCreator = (0, exports.PlayerApiAxiosParamCreator)(configuration);
|
|
2156
2299
|
return {
|
|
2157
2300
|
/**
|
|
2158
|
-
* Retrieves player information by
|
|
2301
|
+
* Retrieves player information by Minecraft UUID including first join status and login timestamp.
|
|
2159
2302
|
* @summary Get player information
|
|
2160
|
-
* @param {string} uuid
|
|
2303
|
+
* @param {string} uuid
|
|
2161
2304
|
* @param {*} [options] Override http request option.
|
|
2162
2305
|
* @throws {RequiredError}
|
|
2163
2306
|
*/
|
|
@@ -2171,9 +2314,9 @@ const PlayerApiFp = function (configuration) {
|
|
|
2171
2314
|
});
|
|
2172
2315
|
},
|
|
2173
2316
|
/**
|
|
2174
|
-
* 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
|
|
2317
|
+
* 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.
|
|
2175
2318
|
* @summary Batch resolve UUIDs to usernames
|
|
2176
|
-
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
2319
|
+
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
2177
2320
|
* @param {*} [options] Override http request option.
|
|
2178
2321
|
* @throws {RequiredError}
|
|
2179
2322
|
*/
|
|
@@ -2196,9 +2339,9 @@ const PlayerApiFactory = function (configuration, basePath, axios) {
|
|
|
2196
2339
|
const localVarFp = (0, exports.PlayerApiFp)(configuration);
|
|
2197
2340
|
return {
|
|
2198
2341
|
/**
|
|
2199
|
-
* Retrieves player information by
|
|
2342
|
+
* Retrieves player information by Minecraft UUID including first join status and login timestamp.
|
|
2200
2343
|
* @summary Get player information
|
|
2201
|
-
* @param {string} uuid
|
|
2344
|
+
* @param {string} uuid
|
|
2202
2345
|
* @param {*} [options] Override http request option.
|
|
2203
2346
|
* @throws {RequiredError}
|
|
2204
2347
|
*/
|
|
@@ -2206,9 +2349,9 @@ const PlayerApiFactory = function (configuration, basePath, axios) {
|
|
|
2206
2349
|
return localVarFp.getPlayer1(uuid, options).then((request) => request(axios, basePath));
|
|
2207
2350
|
},
|
|
2208
2351
|
/**
|
|
2209
|
-
* 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
|
|
2352
|
+
* 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.
|
|
2210
2353
|
* @summary Batch resolve UUIDs to usernames
|
|
2211
|
-
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
2354
|
+
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
2212
2355
|
* @param {*} [options] Override http request option.
|
|
2213
2356
|
* @throws {RequiredError}
|
|
2214
2357
|
*/
|
|
@@ -2223,9 +2366,9 @@ exports.PlayerApiFactory = PlayerApiFactory;
|
|
|
2223
2366
|
*/
|
|
2224
2367
|
class PlayerApi extends base_1.BaseAPI {
|
|
2225
2368
|
/**
|
|
2226
|
-
* Retrieves player information by
|
|
2369
|
+
* Retrieves player information by Minecraft UUID including first join status and login timestamp.
|
|
2227
2370
|
* @summary Get player information
|
|
2228
|
-
* @param {string} uuid
|
|
2371
|
+
* @param {string} uuid
|
|
2229
2372
|
* @param {*} [options] Override http request option.
|
|
2230
2373
|
* @throws {RequiredError}
|
|
2231
2374
|
*/
|
|
@@ -2233,9 +2376,9 @@ class PlayerApi extends base_1.BaseAPI {
|
|
|
2233
2376
|
return (0, exports.PlayerApiFp)(this.configuration).getPlayer1(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
2234
2377
|
}
|
|
2235
2378
|
/**
|
|
2236
|
-
* 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
|
|
2379
|
+
* 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.
|
|
2237
2380
|
* @summary Batch resolve UUIDs to usernames
|
|
2238
|
-
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
2381
|
+
* @param {Array<string>} uuids List of player UUIDs to resolve
|
|
2239
2382
|
* @param {*} [options] Override http request option.
|
|
2240
2383
|
* @throws {RequiredError}
|
|
2241
2384
|
*/
|
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:
|
|
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/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:
|
|
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).
|
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:
|
|
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/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:
|
|
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).
|
package/dist/configuration.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:
|
|
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/configuration.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:
|
|
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).
|