@rebornteam/reborn-api 4.9.0 → 4.9.2
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 +10 -0
- package/README.md +21 -2
- package/api.ts +981 -126
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +495 -13
- package/dist/api.js +647 -19
- 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 +495 -13
- package/dist/esm/api.js +647 -19
- 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/AdminDashboardActivityCell.md +25 -0
- package/docs/AdminDashboardApi.md +453 -0
- package/docs/AdminDashboardCategoryCount.md +23 -0
- package/docs/AdminDashboardCountryCount.md +25 -0
- package/docs/AdminDashboardDailySessions.md +27 -0
- package/docs/AdminDashboardModeratorActivity.md +23 -0
- package/docs/AdminDashboardOverview.md +35 -0
- package/docs/AdminDashboardPunishmentDaily.md +25 -0
- package/docs/AdminDashboardReportSummary.md +27 -0
- package/docs/AdminDashboardServerRegion.md +27 -0
- package/docs/AdminDashboardTrustBucket.md +23 -0
- package/docs/AuthenticationApi.md +15 -4
- 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: 4.9.
|
|
8
|
+
* The version of the OpenAPI document: 4.9.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1457,6 +1457,109 @@ exports.AdminConnectionsApi = AdminConnectionsApi;
|
|
|
1457
1457
|
*/
|
|
1458
1458
|
const AdminDashboardApiAxiosParamCreator = function (configuration) {
|
|
1459
1459
|
return {
|
|
1460
|
+
/**
|
|
1461
|
+
* Connection volume bucketed by UTC day-of-week (0=Sunday) and hour-of-day (0–23) over the window.
|
|
1462
|
+
* @summary Connection activity heatmap
|
|
1463
|
+
* @param {number} [days] Trailing window in days
|
|
1464
|
+
* @param {*} [options] Override http request option.
|
|
1465
|
+
* @throws {RequiredError}
|
|
1466
|
+
*/
|
|
1467
|
+
activityHeatmap: (days_1, ...args_1) => __awaiter(this, [days_1, ...args_1], void 0, function* (days, options = {}) {
|
|
1468
|
+
const localVarPath = `/admin/dashboard/connections/activity`;
|
|
1469
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1470
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1471
|
+
let baseOptions;
|
|
1472
|
+
if (configuration) {
|
|
1473
|
+
baseOptions = configuration.baseOptions;
|
|
1474
|
+
}
|
|
1475
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1476
|
+
const localVarHeaderParameter = {};
|
|
1477
|
+
const localVarQueryParameter = {};
|
|
1478
|
+
// authentication DiscordAuth required
|
|
1479
|
+
// http bearer authentication required
|
|
1480
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1481
|
+
if (days !== undefined) {
|
|
1482
|
+
localVarQueryParameter['days'] = days;
|
|
1483
|
+
}
|
|
1484
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1485
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1486
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1487
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1488
|
+
return {
|
|
1489
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1490
|
+
options: localVarRequestOptions,
|
|
1491
|
+
};
|
|
1492
|
+
}),
|
|
1493
|
+
/**
|
|
1494
|
+
* Top countries by distinct connection volume over the window, with the VPN/proxy-flagged subset.
|
|
1495
|
+
* @summary Connections by country
|
|
1496
|
+
* @param {number} [days] Trailing window in days
|
|
1497
|
+
* @param {number} [limit] Max countries to return
|
|
1498
|
+
* @param {*} [options] Override http request option.
|
|
1499
|
+
* @throws {RequiredError}
|
|
1500
|
+
*/
|
|
1501
|
+
connectionsByCountry: (days_1, limit_1, ...args_1) => __awaiter(this, [days_1, limit_1, ...args_1], void 0, function* (days, limit, options = {}) {
|
|
1502
|
+
const localVarPath = `/admin/dashboard/connections/countries`;
|
|
1503
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1504
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1505
|
+
let baseOptions;
|
|
1506
|
+
if (configuration) {
|
|
1507
|
+
baseOptions = configuration.baseOptions;
|
|
1508
|
+
}
|
|
1509
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1510
|
+
const localVarHeaderParameter = {};
|
|
1511
|
+
const localVarQueryParameter = {};
|
|
1512
|
+
// authentication DiscordAuth required
|
|
1513
|
+
// http bearer authentication required
|
|
1514
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1515
|
+
if (days !== undefined) {
|
|
1516
|
+
localVarQueryParameter['days'] = days;
|
|
1517
|
+
}
|
|
1518
|
+
if (limit !== undefined) {
|
|
1519
|
+
localVarQueryParameter['limit'] = limit;
|
|
1520
|
+
}
|
|
1521
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1522
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1523
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1524
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1525
|
+
return {
|
|
1526
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1527
|
+
options: localVarRequestOptions,
|
|
1528
|
+
};
|
|
1529
|
+
}),
|
|
1530
|
+
/**
|
|
1531
|
+
* Per-day session count, distinct active players, and mean completed-session length over the requested window.
|
|
1532
|
+
* @summary Daily session activity
|
|
1533
|
+
* @param {number} [days] Trailing window in days
|
|
1534
|
+
* @param {*} [options] Override http request option.
|
|
1535
|
+
* @throws {RequiredError}
|
|
1536
|
+
*/
|
|
1537
|
+
dailySessions: (days_1, ...args_1) => __awaiter(this, [days_1, ...args_1], void 0, function* (days, options = {}) {
|
|
1538
|
+
const localVarPath = `/admin/dashboard/sessions/daily`;
|
|
1539
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1540
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1541
|
+
let baseOptions;
|
|
1542
|
+
if (configuration) {
|
|
1543
|
+
baseOptions = configuration.baseOptions;
|
|
1544
|
+
}
|
|
1545
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1546
|
+
const localVarHeaderParameter = {};
|
|
1547
|
+
const localVarQueryParameter = {};
|
|
1548
|
+
// authentication DiscordAuth required
|
|
1549
|
+
// http bearer authentication required
|
|
1550
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1551
|
+
if (days !== undefined) {
|
|
1552
|
+
localVarQueryParameter['days'] = days;
|
|
1553
|
+
}
|
|
1554
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1555
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1556
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1557
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1558
|
+
return {
|
|
1559
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1560
|
+
options: localVarRequestOptions,
|
|
1561
|
+
};
|
|
1562
|
+
}),
|
|
1460
1563
|
/**
|
|
1461
1564
|
* Returns aggregate counts for clients, connections, and players in the system.
|
|
1462
1565
|
* @summary Get dashboard statistics
|
|
@@ -1486,6 +1589,196 @@ const AdminDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
1486
1589
|
options: localVarRequestOptions,
|
|
1487
1590
|
};
|
|
1488
1591
|
}),
|
|
1592
|
+
/**
|
|
1593
|
+
* At-a-glance counts: players online now, new players today, DAU, 7-day mean/median session length, active bans/mutes, and open reports.
|
|
1594
|
+
* @summary Dashboard overview tiles
|
|
1595
|
+
* @param {*} [options] Override http request option.
|
|
1596
|
+
* @throws {RequiredError}
|
|
1597
|
+
*/
|
|
1598
|
+
overview: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1599
|
+
const localVarPath = `/admin/dashboard/overview`;
|
|
1600
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1601
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1602
|
+
let baseOptions;
|
|
1603
|
+
if (configuration) {
|
|
1604
|
+
baseOptions = configuration.baseOptions;
|
|
1605
|
+
}
|
|
1606
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1607
|
+
const localVarHeaderParameter = {};
|
|
1608
|
+
const localVarQueryParameter = {};
|
|
1609
|
+
// authentication DiscordAuth required
|
|
1610
|
+
// http bearer authentication required
|
|
1611
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1612
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1613
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1614
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1615
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1616
|
+
return {
|
|
1617
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1618
|
+
options: localVarRequestOptions,
|
|
1619
|
+
};
|
|
1620
|
+
}),
|
|
1621
|
+
/**
|
|
1622
|
+
* Daily punishment issuance over the window, split by type (BAN/MUTE/KICK/WARNING) — feeds the stacked chart.
|
|
1623
|
+
* @summary Punishments by type over time
|
|
1624
|
+
* @param {number} [days] Trailing window in days
|
|
1625
|
+
* @param {*} [options] Override http request option.
|
|
1626
|
+
* @throws {RequiredError}
|
|
1627
|
+
*/
|
|
1628
|
+
punishmentsByType: (days_1, ...args_1) => __awaiter(this, [days_1, ...args_1], void 0, function* (days, options = {}) {
|
|
1629
|
+
const localVarPath = `/admin/dashboard/punishments/daily`;
|
|
1630
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1631
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1632
|
+
let baseOptions;
|
|
1633
|
+
if (configuration) {
|
|
1634
|
+
baseOptions = configuration.baseOptions;
|
|
1635
|
+
}
|
|
1636
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1637
|
+
const localVarHeaderParameter = {};
|
|
1638
|
+
const localVarQueryParameter = {};
|
|
1639
|
+
// authentication DiscordAuth required
|
|
1640
|
+
// http bearer authentication required
|
|
1641
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1642
|
+
if (days !== undefined) {
|
|
1643
|
+
localVarQueryParameter['days'] = days;
|
|
1644
|
+
}
|
|
1645
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1646
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1647
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1648
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1649
|
+
return {
|
|
1650
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1651
|
+
options: localVarRequestOptions,
|
|
1652
|
+
};
|
|
1653
|
+
}),
|
|
1654
|
+
/**
|
|
1655
|
+
* Open backlog, reports resolved in the window, mean resolution time, and a category breakdown.
|
|
1656
|
+
* @summary Report backlog & resolution speed
|
|
1657
|
+
* @param {number} [days] Trailing window in days
|
|
1658
|
+
* @param {*} [options] Override http request option.
|
|
1659
|
+
* @throws {RequiredError}
|
|
1660
|
+
*/
|
|
1661
|
+
reportSummary: (days_1, ...args_1) => __awaiter(this, [days_1, ...args_1], void 0, function* (days, options = {}) {
|
|
1662
|
+
const localVarPath = `/admin/dashboard/reports/summary`;
|
|
1663
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1664
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1665
|
+
let baseOptions;
|
|
1666
|
+
if (configuration) {
|
|
1667
|
+
baseOptions = configuration.baseOptions;
|
|
1668
|
+
}
|
|
1669
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1670
|
+
const localVarHeaderParameter = {};
|
|
1671
|
+
const localVarQueryParameter = {};
|
|
1672
|
+
// authentication DiscordAuth required
|
|
1673
|
+
// http bearer authentication required
|
|
1674
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1675
|
+
if (days !== undefined) {
|
|
1676
|
+
localVarQueryParameter['days'] = days;
|
|
1677
|
+
}
|
|
1678
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1679
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1680
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1681
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1682
|
+
return {
|
|
1683
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1684
|
+
options: localVarRequestOptions,
|
|
1685
|
+
};
|
|
1686
|
+
}),
|
|
1687
|
+
/**
|
|
1688
|
+
* Online server count and current player load per region/game-type.
|
|
1689
|
+
* @summary Servers & players by region
|
|
1690
|
+
* @param {*} [options] Override http request option.
|
|
1691
|
+
* @throws {RequiredError}
|
|
1692
|
+
*/
|
|
1693
|
+
serverRegions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1694
|
+
const localVarPath = `/admin/dashboard/servers/summary`;
|
|
1695
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1696
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1697
|
+
let baseOptions;
|
|
1698
|
+
if (configuration) {
|
|
1699
|
+
baseOptions = configuration.baseOptions;
|
|
1700
|
+
}
|
|
1701
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1702
|
+
const localVarHeaderParameter = {};
|
|
1703
|
+
const localVarQueryParameter = {};
|
|
1704
|
+
// authentication DiscordAuth required
|
|
1705
|
+
// http bearer authentication required
|
|
1706
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1707
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1708
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1709
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1710
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1711
|
+
return {
|
|
1712
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1713
|
+
options: localVarRequestOptions,
|
|
1714
|
+
};
|
|
1715
|
+
}),
|
|
1716
|
+
/**
|
|
1717
|
+
* Moderators ranked by audit-log action count over the window.
|
|
1718
|
+
* @summary Top moderators by activity
|
|
1719
|
+
* @param {number} [days] Trailing window in days
|
|
1720
|
+
* @param {number} [limit] Max moderators to return
|
|
1721
|
+
* @param {*} [options] Override http request option.
|
|
1722
|
+
* @throws {RequiredError}
|
|
1723
|
+
*/
|
|
1724
|
+
topModerators: (days_1, limit_1, ...args_1) => __awaiter(this, [days_1, limit_1, ...args_1], void 0, function* (days, limit, options = {}) {
|
|
1725
|
+
const localVarPath = `/admin/dashboard/moderators/top`;
|
|
1726
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1727
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1728
|
+
let baseOptions;
|
|
1729
|
+
if (configuration) {
|
|
1730
|
+
baseOptions = configuration.baseOptions;
|
|
1731
|
+
}
|
|
1732
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1733
|
+
const localVarHeaderParameter = {};
|
|
1734
|
+
const localVarQueryParameter = {};
|
|
1735
|
+
// authentication DiscordAuth required
|
|
1736
|
+
// http bearer authentication required
|
|
1737
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1738
|
+
if (days !== undefined) {
|
|
1739
|
+
localVarQueryParameter['days'] = days;
|
|
1740
|
+
}
|
|
1741
|
+
if (limit !== undefined) {
|
|
1742
|
+
localVarQueryParameter['limit'] = limit;
|
|
1743
|
+
}
|
|
1744
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1745
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1746
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1747
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1748
|
+
return {
|
|
1749
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1750
|
+
options: localVarRequestOptions,
|
|
1751
|
+
};
|
|
1752
|
+
}),
|
|
1753
|
+
/**
|
|
1754
|
+
* Histogram of every player\'s latest trust factor, bucketed into ten 10-point bins.
|
|
1755
|
+
* @summary Trust-factor distribution
|
|
1756
|
+
* @param {*} [options] Override http request option.
|
|
1757
|
+
* @throws {RequiredError}
|
|
1758
|
+
*/
|
|
1759
|
+
trustDistribution: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1760
|
+
const localVarPath = `/admin/dashboard/trust/distribution`;
|
|
1761
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1762
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1763
|
+
let baseOptions;
|
|
1764
|
+
if (configuration) {
|
|
1765
|
+
baseOptions = configuration.baseOptions;
|
|
1766
|
+
}
|
|
1767
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1768
|
+
const localVarHeaderParameter = {};
|
|
1769
|
+
const localVarQueryParameter = {};
|
|
1770
|
+
// authentication DiscordAuth required
|
|
1771
|
+
// http bearer authentication required
|
|
1772
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1773
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1774
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1775
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1776
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1777
|
+
return {
|
|
1778
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1779
|
+
options: localVarRequestOptions,
|
|
1780
|
+
};
|
|
1781
|
+
}),
|
|
1489
1782
|
};
|
|
1490
1783
|
};
|
|
1491
1784
|
exports.AdminDashboardApiAxiosParamCreator = AdminDashboardApiAxiosParamCreator;
|
|
@@ -1495,6 +1788,55 @@ exports.AdminDashboardApiAxiosParamCreator = AdminDashboardApiAxiosParamCreator;
|
|
|
1495
1788
|
const AdminDashboardApiFp = function (configuration) {
|
|
1496
1789
|
const localVarAxiosParamCreator = (0, exports.AdminDashboardApiAxiosParamCreator)(configuration);
|
|
1497
1790
|
return {
|
|
1791
|
+
/**
|
|
1792
|
+
* Connection volume bucketed by UTC day-of-week (0=Sunday) and hour-of-day (0–23) over the window.
|
|
1793
|
+
* @summary Connection activity heatmap
|
|
1794
|
+
* @param {number} [days] Trailing window in days
|
|
1795
|
+
* @param {*} [options] Override http request option.
|
|
1796
|
+
* @throws {RequiredError}
|
|
1797
|
+
*/
|
|
1798
|
+
activityHeatmap(days, options) {
|
|
1799
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1800
|
+
var _a, _b, _c;
|
|
1801
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.activityHeatmap(days, options);
|
|
1802
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1803
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminDashboardApi.activityHeatmap']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1804
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1805
|
+
});
|
|
1806
|
+
},
|
|
1807
|
+
/**
|
|
1808
|
+
* Top countries by distinct connection volume over the window, with the VPN/proxy-flagged subset.
|
|
1809
|
+
* @summary Connections by country
|
|
1810
|
+
* @param {number} [days] Trailing window in days
|
|
1811
|
+
* @param {number} [limit] Max countries to return
|
|
1812
|
+
* @param {*} [options] Override http request option.
|
|
1813
|
+
* @throws {RequiredError}
|
|
1814
|
+
*/
|
|
1815
|
+
connectionsByCountry(days, limit, options) {
|
|
1816
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1817
|
+
var _a, _b, _c;
|
|
1818
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.connectionsByCountry(days, limit, options);
|
|
1819
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1820
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminDashboardApi.connectionsByCountry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1821
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1822
|
+
});
|
|
1823
|
+
},
|
|
1824
|
+
/**
|
|
1825
|
+
* Per-day session count, distinct active players, and mean completed-session length over the requested window.
|
|
1826
|
+
* @summary Daily session activity
|
|
1827
|
+
* @param {number} [days] Trailing window in days
|
|
1828
|
+
* @param {*} [options] Override http request option.
|
|
1829
|
+
* @throws {RequiredError}
|
|
1830
|
+
*/
|
|
1831
|
+
dailySessions(days, options) {
|
|
1832
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1833
|
+
var _a, _b, _c;
|
|
1834
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.dailySessions(days, options);
|
|
1835
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1836
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminDashboardApi.dailySessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1837
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1838
|
+
});
|
|
1839
|
+
},
|
|
1498
1840
|
/**
|
|
1499
1841
|
* Returns aggregate counts for clients, connections, and players in the system.
|
|
1500
1842
|
* @summary Get dashboard statistics
|
|
@@ -1510,6 +1852,100 @@ const AdminDashboardApiFp = function (configuration) {
|
|
|
1510
1852
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1511
1853
|
});
|
|
1512
1854
|
},
|
|
1855
|
+
/**
|
|
1856
|
+
* At-a-glance counts: players online now, new players today, DAU, 7-day mean/median session length, active bans/mutes, and open reports.
|
|
1857
|
+
* @summary Dashboard overview tiles
|
|
1858
|
+
* @param {*} [options] Override http request option.
|
|
1859
|
+
* @throws {RequiredError}
|
|
1860
|
+
*/
|
|
1861
|
+
overview(options) {
|
|
1862
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1863
|
+
var _a, _b, _c;
|
|
1864
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.overview(options);
|
|
1865
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1866
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminDashboardApi.overview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1867
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1868
|
+
});
|
|
1869
|
+
},
|
|
1870
|
+
/**
|
|
1871
|
+
* Daily punishment issuance over the window, split by type (BAN/MUTE/KICK/WARNING) — feeds the stacked chart.
|
|
1872
|
+
* @summary Punishments by type over time
|
|
1873
|
+
* @param {number} [days] Trailing window in days
|
|
1874
|
+
* @param {*} [options] Override http request option.
|
|
1875
|
+
* @throws {RequiredError}
|
|
1876
|
+
*/
|
|
1877
|
+
punishmentsByType(days, options) {
|
|
1878
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1879
|
+
var _a, _b, _c;
|
|
1880
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.punishmentsByType(days, options);
|
|
1881
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1882
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminDashboardApi.punishmentsByType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1883
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1884
|
+
});
|
|
1885
|
+
},
|
|
1886
|
+
/**
|
|
1887
|
+
* Open backlog, reports resolved in the window, mean resolution time, and a category breakdown.
|
|
1888
|
+
* @summary Report backlog & resolution speed
|
|
1889
|
+
* @param {number} [days] Trailing window in days
|
|
1890
|
+
* @param {*} [options] Override http request option.
|
|
1891
|
+
* @throws {RequiredError}
|
|
1892
|
+
*/
|
|
1893
|
+
reportSummary(days, options) {
|
|
1894
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1895
|
+
var _a, _b, _c;
|
|
1896
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reportSummary(days, options);
|
|
1897
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1898
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminDashboardApi.reportSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1899
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1900
|
+
});
|
|
1901
|
+
},
|
|
1902
|
+
/**
|
|
1903
|
+
* Online server count and current player load per region/game-type.
|
|
1904
|
+
* @summary Servers & players by region
|
|
1905
|
+
* @param {*} [options] Override http request option.
|
|
1906
|
+
* @throws {RequiredError}
|
|
1907
|
+
*/
|
|
1908
|
+
serverRegions(options) {
|
|
1909
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1910
|
+
var _a, _b, _c;
|
|
1911
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.serverRegions(options);
|
|
1912
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1913
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminDashboardApi.serverRegions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1914
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1915
|
+
});
|
|
1916
|
+
},
|
|
1917
|
+
/**
|
|
1918
|
+
* Moderators ranked by audit-log action count over the window.
|
|
1919
|
+
* @summary Top moderators by activity
|
|
1920
|
+
* @param {number} [days] Trailing window in days
|
|
1921
|
+
* @param {number} [limit] Max moderators to return
|
|
1922
|
+
* @param {*} [options] Override http request option.
|
|
1923
|
+
* @throws {RequiredError}
|
|
1924
|
+
*/
|
|
1925
|
+
topModerators(days, limit, options) {
|
|
1926
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1927
|
+
var _a, _b, _c;
|
|
1928
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.topModerators(days, limit, options);
|
|
1929
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1930
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminDashboardApi.topModerators']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1931
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1932
|
+
});
|
|
1933
|
+
},
|
|
1934
|
+
/**
|
|
1935
|
+
* Histogram of every player\'s latest trust factor, bucketed into ten 10-point bins.
|
|
1936
|
+
* @summary Trust-factor distribution
|
|
1937
|
+
* @param {*} [options] Override http request option.
|
|
1938
|
+
* @throws {RequiredError}
|
|
1939
|
+
*/
|
|
1940
|
+
trustDistribution(options) {
|
|
1941
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1942
|
+
var _a, _b, _c;
|
|
1943
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.trustDistribution(options);
|
|
1944
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1945
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminDashboardApi.trustDistribution']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1946
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1947
|
+
});
|
|
1948
|
+
},
|
|
1513
1949
|
};
|
|
1514
1950
|
};
|
|
1515
1951
|
exports.AdminDashboardApiFp = AdminDashboardApiFp;
|
|
@@ -1519,6 +1955,37 @@ exports.AdminDashboardApiFp = AdminDashboardApiFp;
|
|
|
1519
1955
|
const AdminDashboardApiFactory = function (configuration, basePath, axios) {
|
|
1520
1956
|
const localVarFp = (0, exports.AdminDashboardApiFp)(configuration);
|
|
1521
1957
|
return {
|
|
1958
|
+
/**
|
|
1959
|
+
* Connection volume bucketed by UTC day-of-week (0=Sunday) and hour-of-day (0–23) over the window.
|
|
1960
|
+
* @summary Connection activity heatmap
|
|
1961
|
+
* @param {number} [days] Trailing window in days
|
|
1962
|
+
* @param {*} [options] Override http request option.
|
|
1963
|
+
* @throws {RequiredError}
|
|
1964
|
+
*/
|
|
1965
|
+
activityHeatmap(days, options) {
|
|
1966
|
+
return localVarFp.activityHeatmap(days, options).then((request) => request(axios, basePath));
|
|
1967
|
+
},
|
|
1968
|
+
/**
|
|
1969
|
+
* Top countries by distinct connection volume over the window, with the VPN/proxy-flagged subset.
|
|
1970
|
+
* @summary Connections by country
|
|
1971
|
+
* @param {number} [days] Trailing window in days
|
|
1972
|
+
* @param {number} [limit] Max countries to return
|
|
1973
|
+
* @param {*} [options] Override http request option.
|
|
1974
|
+
* @throws {RequiredError}
|
|
1975
|
+
*/
|
|
1976
|
+
connectionsByCountry(days, limit, options) {
|
|
1977
|
+
return localVarFp.connectionsByCountry(days, limit, options).then((request) => request(axios, basePath));
|
|
1978
|
+
},
|
|
1979
|
+
/**
|
|
1980
|
+
* Per-day session count, distinct active players, and mean completed-session length over the requested window.
|
|
1981
|
+
* @summary Daily session activity
|
|
1982
|
+
* @param {number} [days] Trailing window in days
|
|
1983
|
+
* @param {*} [options] Override http request option.
|
|
1984
|
+
* @throws {RequiredError}
|
|
1985
|
+
*/
|
|
1986
|
+
dailySessions(days, options) {
|
|
1987
|
+
return localVarFp.dailySessions(days, options).then((request) => request(axios, basePath));
|
|
1988
|
+
},
|
|
1522
1989
|
/**
|
|
1523
1990
|
* Returns aggregate counts for clients, connections, and players in the system.
|
|
1524
1991
|
* @summary Get dashboard statistics
|
|
@@ -1528,6 +1995,64 @@ const AdminDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
1528
1995
|
dashboardStats(options) {
|
|
1529
1996
|
return localVarFp.dashboardStats(options).then((request) => request(axios, basePath));
|
|
1530
1997
|
},
|
|
1998
|
+
/**
|
|
1999
|
+
* At-a-glance counts: players online now, new players today, DAU, 7-day mean/median session length, active bans/mutes, and open reports.
|
|
2000
|
+
* @summary Dashboard overview tiles
|
|
2001
|
+
* @param {*} [options] Override http request option.
|
|
2002
|
+
* @throws {RequiredError}
|
|
2003
|
+
*/
|
|
2004
|
+
overview(options) {
|
|
2005
|
+
return localVarFp.overview(options).then((request) => request(axios, basePath));
|
|
2006
|
+
},
|
|
2007
|
+
/**
|
|
2008
|
+
* Daily punishment issuance over the window, split by type (BAN/MUTE/KICK/WARNING) — feeds the stacked chart.
|
|
2009
|
+
* @summary Punishments by type over time
|
|
2010
|
+
* @param {number} [days] Trailing window in days
|
|
2011
|
+
* @param {*} [options] Override http request option.
|
|
2012
|
+
* @throws {RequiredError}
|
|
2013
|
+
*/
|
|
2014
|
+
punishmentsByType(days, options) {
|
|
2015
|
+
return localVarFp.punishmentsByType(days, options).then((request) => request(axios, basePath));
|
|
2016
|
+
},
|
|
2017
|
+
/**
|
|
2018
|
+
* Open backlog, reports resolved in the window, mean resolution time, and a category breakdown.
|
|
2019
|
+
* @summary Report backlog & resolution speed
|
|
2020
|
+
* @param {number} [days] Trailing window in days
|
|
2021
|
+
* @param {*} [options] Override http request option.
|
|
2022
|
+
* @throws {RequiredError}
|
|
2023
|
+
*/
|
|
2024
|
+
reportSummary(days, options) {
|
|
2025
|
+
return localVarFp.reportSummary(days, options).then((request) => request(axios, basePath));
|
|
2026
|
+
},
|
|
2027
|
+
/**
|
|
2028
|
+
* Online server count and current player load per region/game-type.
|
|
2029
|
+
* @summary Servers & players by region
|
|
2030
|
+
* @param {*} [options] Override http request option.
|
|
2031
|
+
* @throws {RequiredError}
|
|
2032
|
+
*/
|
|
2033
|
+
serverRegions(options) {
|
|
2034
|
+
return localVarFp.serverRegions(options).then((request) => request(axios, basePath));
|
|
2035
|
+
},
|
|
2036
|
+
/**
|
|
2037
|
+
* Moderators ranked by audit-log action count over the window.
|
|
2038
|
+
* @summary Top moderators by activity
|
|
2039
|
+
* @param {number} [days] Trailing window in days
|
|
2040
|
+
* @param {number} [limit] Max moderators to return
|
|
2041
|
+
* @param {*} [options] Override http request option.
|
|
2042
|
+
* @throws {RequiredError}
|
|
2043
|
+
*/
|
|
2044
|
+
topModerators(days, limit, options) {
|
|
2045
|
+
return localVarFp.topModerators(days, limit, options).then((request) => request(axios, basePath));
|
|
2046
|
+
},
|
|
2047
|
+
/**
|
|
2048
|
+
* Histogram of every player\'s latest trust factor, bucketed into ten 10-point bins.
|
|
2049
|
+
* @summary Trust-factor distribution
|
|
2050
|
+
* @param {*} [options] Override http request option.
|
|
2051
|
+
* @throws {RequiredError}
|
|
2052
|
+
*/
|
|
2053
|
+
trustDistribution(options) {
|
|
2054
|
+
return localVarFp.trustDistribution(options).then((request) => request(axios, basePath));
|
|
2055
|
+
},
|
|
1531
2056
|
};
|
|
1532
2057
|
};
|
|
1533
2058
|
exports.AdminDashboardApiFactory = AdminDashboardApiFactory;
|
|
@@ -1535,6 +2060,37 @@ exports.AdminDashboardApiFactory = AdminDashboardApiFactory;
|
|
|
1535
2060
|
* AdminDashboardApi - object-oriented interface
|
|
1536
2061
|
*/
|
|
1537
2062
|
class AdminDashboardApi extends base_1.BaseAPI {
|
|
2063
|
+
/**
|
|
2064
|
+
* Connection volume bucketed by UTC day-of-week (0=Sunday) and hour-of-day (0–23) over the window.
|
|
2065
|
+
* @summary Connection activity heatmap
|
|
2066
|
+
* @param {number} [days] Trailing window in days
|
|
2067
|
+
* @param {*} [options] Override http request option.
|
|
2068
|
+
* @throws {RequiredError}
|
|
2069
|
+
*/
|
|
2070
|
+
activityHeatmap(days, options) {
|
|
2071
|
+
return (0, exports.AdminDashboardApiFp)(this.configuration).activityHeatmap(days, options).then((request) => request(this.axios, this.basePath));
|
|
2072
|
+
}
|
|
2073
|
+
/**
|
|
2074
|
+
* Top countries by distinct connection volume over the window, with the VPN/proxy-flagged subset.
|
|
2075
|
+
* @summary Connections by country
|
|
2076
|
+
* @param {number} [days] Trailing window in days
|
|
2077
|
+
* @param {number} [limit] Max countries to return
|
|
2078
|
+
* @param {*} [options] Override http request option.
|
|
2079
|
+
* @throws {RequiredError}
|
|
2080
|
+
*/
|
|
2081
|
+
connectionsByCountry(days, limit, options) {
|
|
2082
|
+
return (0, exports.AdminDashboardApiFp)(this.configuration).connectionsByCountry(days, limit, options).then((request) => request(this.axios, this.basePath));
|
|
2083
|
+
}
|
|
2084
|
+
/**
|
|
2085
|
+
* Per-day session count, distinct active players, and mean completed-session length over the requested window.
|
|
2086
|
+
* @summary Daily session activity
|
|
2087
|
+
* @param {number} [days] Trailing window in days
|
|
2088
|
+
* @param {*} [options] Override http request option.
|
|
2089
|
+
* @throws {RequiredError}
|
|
2090
|
+
*/
|
|
2091
|
+
dailySessions(days, options) {
|
|
2092
|
+
return (0, exports.AdminDashboardApiFp)(this.configuration).dailySessions(days, options).then((request) => request(this.axios, this.basePath));
|
|
2093
|
+
}
|
|
1538
2094
|
/**
|
|
1539
2095
|
* Returns aggregate counts for clients, connections, and players in the system.
|
|
1540
2096
|
* @summary Get dashboard statistics
|
|
@@ -1544,6 +2100,64 @@ class AdminDashboardApi extends base_1.BaseAPI {
|
|
|
1544
2100
|
dashboardStats(options) {
|
|
1545
2101
|
return (0, exports.AdminDashboardApiFp)(this.configuration).dashboardStats(options).then((request) => request(this.axios, this.basePath));
|
|
1546
2102
|
}
|
|
2103
|
+
/**
|
|
2104
|
+
* At-a-glance counts: players online now, new players today, DAU, 7-day mean/median session length, active bans/mutes, and open reports.
|
|
2105
|
+
* @summary Dashboard overview tiles
|
|
2106
|
+
* @param {*} [options] Override http request option.
|
|
2107
|
+
* @throws {RequiredError}
|
|
2108
|
+
*/
|
|
2109
|
+
overview(options) {
|
|
2110
|
+
return (0, exports.AdminDashboardApiFp)(this.configuration).overview(options).then((request) => request(this.axios, this.basePath));
|
|
2111
|
+
}
|
|
2112
|
+
/**
|
|
2113
|
+
* Daily punishment issuance over the window, split by type (BAN/MUTE/KICK/WARNING) — feeds the stacked chart.
|
|
2114
|
+
* @summary Punishments by type over time
|
|
2115
|
+
* @param {number} [days] Trailing window in days
|
|
2116
|
+
* @param {*} [options] Override http request option.
|
|
2117
|
+
* @throws {RequiredError}
|
|
2118
|
+
*/
|
|
2119
|
+
punishmentsByType(days, options) {
|
|
2120
|
+
return (0, exports.AdminDashboardApiFp)(this.configuration).punishmentsByType(days, options).then((request) => request(this.axios, this.basePath));
|
|
2121
|
+
}
|
|
2122
|
+
/**
|
|
2123
|
+
* Open backlog, reports resolved in the window, mean resolution time, and a category breakdown.
|
|
2124
|
+
* @summary Report backlog & resolution speed
|
|
2125
|
+
* @param {number} [days] Trailing window in days
|
|
2126
|
+
* @param {*} [options] Override http request option.
|
|
2127
|
+
* @throws {RequiredError}
|
|
2128
|
+
*/
|
|
2129
|
+
reportSummary(days, options) {
|
|
2130
|
+
return (0, exports.AdminDashboardApiFp)(this.configuration).reportSummary(days, options).then((request) => request(this.axios, this.basePath));
|
|
2131
|
+
}
|
|
2132
|
+
/**
|
|
2133
|
+
* Online server count and current player load per region/game-type.
|
|
2134
|
+
* @summary Servers & players by region
|
|
2135
|
+
* @param {*} [options] Override http request option.
|
|
2136
|
+
* @throws {RequiredError}
|
|
2137
|
+
*/
|
|
2138
|
+
serverRegions(options) {
|
|
2139
|
+
return (0, exports.AdminDashboardApiFp)(this.configuration).serverRegions(options).then((request) => request(this.axios, this.basePath));
|
|
2140
|
+
}
|
|
2141
|
+
/**
|
|
2142
|
+
* Moderators ranked by audit-log action count over the window.
|
|
2143
|
+
* @summary Top moderators by activity
|
|
2144
|
+
* @param {number} [days] Trailing window in days
|
|
2145
|
+
* @param {number} [limit] Max moderators to return
|
|
2146
|
+
* @param {*} [options] Override http request option.
|
|
2147
|
+
* @throws {RequiredError}
|
|
2148
|
+
*/
|
|
2149
|
+
topModerators(days, limit, options) {
|
|
2150
|
+
return (0, exports.AdminDashboardApiFp)(this.configuration).topModerators(days, limit, options).then((request) => request(this.axios, this.basePath));
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
* Histogram of every player\'s latest trust factor, bucketed into ten 10-point bins.
|
|
2154
|
+
* @summary Trust-factor distribution
|
|
2155
|
+
* @param {*} [options] Override http request option.
|
|
2156
|
+
* @throws {RequiredError}
|
|
2157
|
+
*/
|
|
2158
|
+
trustDistribution(options) {
|
|
2159
|
+
return (0, exports.AdminDashboardApiFp)(this.configuration).trustDistribution(options).then((request) => request(this.axios, this.basePath));
|
|
2160
|
+
}
|
|
1547
2161
|
}
|
|
1548
2162
|
exports.AdminDashboardApi = AdminDashboardApi;
|
|
1549
2163
|
/**
|
|
@@ -4214,10 +4828,11 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
4214
4828
|
* @summary Discord - OAuth2 callback
|
|
4215
4829
|
* @param {string | null} [code] Authorization code provided by Discord on successful approval
|
|
4216
4830
|
* @param {string | null} [error] Error code provided by Discord if the user denied access
|
|
4831
|
+
* @param {string | null} [state] Opaque value echoed back by Discord — carries the client\'s chosen redirect target
|
|
4217
4832
|
* @param {*} [options] Override http request option.
|
|
4218
4833
|
* @throws {RequiredError}
|
|
4219
4834
|
*/
|
|
4220
|
-
callback: (code_1, error_1, ...args_1) => __awaiter(this, [code_1, error_1, ...args_1], void 0, function* (code, error, options = {}) {
|
|
4835
|
+
callback: (code_1, error_1, state_1, ...args_1) => __awaiter(this, [code_1, error_1, state_1, ...args_1], void 0, function* (code, error, state, options = {}) {
|
|
4221
4836
|
const localVarPath = `/auth/discord/callback`;
|
|
4222
4837
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4223
4838
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4237,6 +4852,9 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
4237
4852
|
if (error !== undefined) {
|
|
4238
4853
|
localVarQueryParameter['error'] = error;
|
|
4239
4854
|
}
|
|
4855
|
+
if (state !== undefined) {
|
|
4856
|
+
localVarQueryParameter['state'] = state;
|
|
4857
|
+
}
|
|
4240
4858
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4241
4859
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4242
4860
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4246,12 +4864,13 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
4246
4864
|
};
|
|
4247
4865
|
}),
|
|
4248
4866
|
/**
|
|
4249
|
-
* Redirects the browser to Discord\'s OAuth2 authorization page.
|
|
4867
|
+
* Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
|
|
4250
4868
|
* @summary Discord - Initiate login
|
|
4869
|
+
* @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
|
|
4251
4870
|
* @param {*} [options] Override http request option.
|
|
4252
4871
|
* @throws {RequiredError}
|
|
4253
4872
|
*/
|
|
4254
|
-
initiateLogin: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4873
|
+
initiateLogin: (redirect_1, ...args_1) => __awaiter(this, [redirect_1, ...args_1], void 0, function* (redirect, options = {}) {
|
|
4255
4874
|
const localVarPath = `/auth/discord`;
|
|
4256
4875
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4257
4876
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4265,6 +4884,9 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
4265
4884
|
// authentication DiscordAuth required
|
|
4266
4885
|
// http bearer authentication required
|
|
4267
4886
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4887
|
+
if (redirect !== undefined) {
|
|
4888
|
+
localVarQueryParameter['redirect'] = redirect;
|
|
4889
|
+
}
|
|
4268
4890
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4269
4891
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4270
4892
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4360,28 +4982,30 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
4360
4982
|
* @summary Discord - OAuth2 callback
|
|
4361
4983
|
* @param {string | null} [code] Authorization code provided by Discord on successful approval
|
|
4362
4984
|
* @param {string | null} [error] Error code provided by Discord if the user denied access
|
|
4985
|
+
* @param {string | null} [state] Opaque value echoed back by Discord — carries the client\'s chosen redirect target
|
|
4363
4986
|
* @param {*} [options] Override http request option.
|
|
4364
4987
|
* @throws {RequiredError}
|
|
4365
4988
|
*/
|
|
4366
|
-
callback(code, error, options) {
|
|
4989
|
+
callback(code, error, state, options) {
|
|
4367
4990
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4368
4991
|
var _a, _b, _c;
|
|
4369
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.callback(code, error, options);
|
|
4992
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.callback(code, error, state, options);
|
|
4370
4993
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4371
4994
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.callback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4372
4995
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4373
4996
|
});
|
|
4374
4997
|
},
|
|
4375
4998
|
/**
|
|
4376
|
-
* Redirects the browser to Discord\'s OAuth2 authorization page.
|
|
4999
|
+
* Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
|
|
4377
5000
|
* @summary Discord - Initiate login
|
|
5001
|
+
* @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
|
|
4378
5002
|
* @param {*} [options] Override http request option.
|
|
4379
5003
|
* @throws {RequiredError}
|
|
4380
5004
|
*/
|
|
4381
|
-
initiateLogin(options) {
|
|
5005
|
+
initiateLogin(redirect, options) {
|
|
4382
5006
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4383
5007
|
var _a, _b, _c;
|
|
4384
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateLogin(options);
|
|
5008
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateLogin(redirect, options);
|
|
4385
5009
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4386
5010
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.initiateLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4387
5011
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4434,20 +5058,22 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
4434
5058
|
* @summary Discord - OAuth2 callback
|
|
4435
5059
|
* @param {string | null} [code] Authorization code provided by Discord on successful approval
|
|
4436
5060
|
* @param {string | null} [error] Error code provided by Discord if the user denied access
|
|
5061
|
+
* @param {string | null} [state] Opaque value echoed back by Discord — carries the client\'s chosen redirect target
|
|
4437
5062
|
* @param {*} [options] Override http request option.
|
|
4438
5063
|
* @throws {RequiredError}
|
|
4439
5064
|
*/
|
|
4440
|
-
callback(code, error, options) {
|
|
4441
|
-
return localVarFp.callback(code, error, options).then((request) => request(axios, basePath));
|
|
5065
|
+
callback(code, error, state, options) {
|
|
5066
|
+
return localVarFp.callback(code, error, state, options).then((request) => request(axios, basePath));
|
|
4442
5067
|
},
|
|
4443
5068
|
/**
|
|
4444
|
-
* Redirects the browser to Discord\'s OAuth2 authorization page.
|
|
5069
|
+
* Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
|
|
4445
5070
|
* @summary Discord - Initiate login
|
|
5071
|
+
* @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
|
|
4446
5072
|
* @param {*} [options] Override http request option.
|
|
4447
5073
|
* @throws {RequiredError}
|
|
4448
5074
|
*/
|
|
4449
|
-
initiateLogin(options) {
|
|
4450
|
-
return localVarFp.initiateLogin(options).then((request) => request(axios, basePath));
|
|
5075
|
+
initiateLogin(redirect, options) {
|
|
5076
|
+
return localVarFp.initiateLogin(redirect, options).then((request) => request(axios, basePath));
|
|
4451
5077
|
},
|
|
4452
5078
|
/**
|
|
4453
5079
|
* Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
|
|
@@ -4482,20 +5108,22 @@ class AuthenticationApi extends base_1.BaseAPI {
|
|
|
4482
5108
|
* @summary Discord - OAuth2 callback
|
|
4483
5109
|
* @param {string | null} [code] Authorization code provided by Discord on successful approval
|
|
4484
5110
|
* @param {string | null} [error] Error code provided by Discord if the user denied access
|
|
5111
|
+
* @param {string | null} [state] Opaque value echoed back by Discord — carries the client\'s chosen redirect target
|
|
4485
5112
|
* @param {*} [options] Override http request option.
|
|
4486
5113
|
* @throws {RequiredError}
|
|
4487
5114
|
*/
|
|
4488
|
-
callback(code, error, options) {
|
|
4489
|
-
return (0, exports.AuthenticationApiFp)(this.configuration).callback(code, error, options).then((request) => request(this.axios, this.basePath));
|
|
5115
|
+
callback(code, error, state, options) {
|
|
5116
|
+
return (0, exports.AuthenticationApiFp)(this.configuration).callback(code, error, state, options).then((request) => request(this.axios, this.basePath));
|
|
4490
5117
|
}
|
|
4491
5118
|
/**
|
|
4492
|
-
* Redirects the browser to Discord\'s OAuth2 authorization page.
|
|
5119
|
+
* Redirects the browser (or native in-app browser session) to Discord\'s OAuth2 authorization page. The optional `redirect` parameter names the final destination the signed JWT should be sent to once auth completes — the web app URL (default) or a native deep-link scheme such as `reborn://auth/callback`. It must be allowlisted (DISCORD_ADMIN_FRONTEND_URL or one of DISCORD_ADMIN_ALLOWED_REDIRECTS); the value is carried through Discord via the OAuth `state` parameter and re-validated on the callback.
|
|
4493
5120
|
* @summary Discord - Initiate login
|
|
5121
|
+
* @param {string | null} [redirect] Final redirect target for the JWT (web URL or native deep link). Must be allowlisted. Defaults to the web admin frontend.
|
|
4494
5122
|
* @param {*} [options] Override http request option.
|
|
4495
5123
|
* @throws {RequiredError}
|
|
4496
5124
|
*/
|
|
4497
|
-
initiateLogin(options) {
|
|
4498
|
-
return (0, exports.AuthenticationApiFp)(this.configuration).initiateLogin(options).then((request) => request(this.axios, this.basePath));
|
|
5125
|
+
initiateLogin(redirect, options) {
|
|
5126
|
+
return (0, exports.AuthenticationApiFp)(this.configuration).initiateLogin(redirect, options).then((request) => request(this.axios, this.basePath));
|
|
4499
5127
|
}
|
|
4500
5128
|
/**
|
|
4501
5129
|
* Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
|