@rebornteam/reborn-api 4.9.1 → 4.9.3
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 +11 -0
- package/README.md +23 -2
- package/api.ts +1104 -183
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +516 -1
- package/dist/api.js +684 -1
- 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 +516 -1
- package/dist/esm/api.js +684 -1
- 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 +53 -0
- package/docs/DiscordAuthUrlResponse.md +21 -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: 4.9.
|
|
8
|
+
* The version of the OpenAPI document: 4.9.3
|
|
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
|
/**
|
|
@@ -4209,6 +4823,39 @@ exports.AdminReportsApi = AdminReportsApi;
|
|
|
4209
4823
|
*/
|
|
4210
4824
|
const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
4211
4825
|
return {
|
|
4826
|
+
/**
|
|
4827
|
+
* Returns the Discord OAuth2 authorize URL as JSON so a native app can open it directly (system browser → Discord-app universal-link hand-off) instead of following the 302. The `redirect` is validated against the allowlist and carried through Discord via `state`, exactly like the browser flow; the callback still bounces the JWT to that target.
|
|
4828
|
+
* @summary Discord - Authorize URL (native clients)
|
|
4829
|
+
* @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
|
|
4830
|
+
* @param {*} [options] Override http request option.
|
|
4831
|
+
* @throws {RequiredError}
|
|
4832
|
+
*/
|
|
4833
|
+
authorizeUrl: (redirect_1, ...args_1) => __awaiter(this, [redirect_1, ...args_1], void 0, function* (redirect, options = {}) {
|
|
4834
|
+
const localVarPath = `/auth/discord/url`;
|
|
4835
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4836
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4837
|
+
let baseOptions;
|
|
4838
|
+
if (configuration) {
|
|
4839
|
+
baseOptions = configuration.baseOptions;
|
|
4840
|
+
}
|
|
4841
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4842
|
+
const localVarHeaderParameter = {};
|
|
4843
|
+
const localVarQueryParameter = {};
|
|
4844
|
+
// authentication DiscordAuth required
|
|
4845
|
+
// http bearer authentication required
|
|
4846
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4847
|
+
if (redirect !== undefined) {
|
|
4848
|
+
localVarQueryParameter['redirect'] = redirect;
|
|
4849
|
+
}
|
|
4850
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
4851
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4852
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4853
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4854
|
+
return {
|
|
4855
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4856
|
+
options: localVarRequestOptions,
|
|
4857
|
+
};
|
|
4858
|
+
}),
|
|
4212
4859
|
/**
|
|
4213
4860
|
* Receives the authorization code from Discord after the user approves the OAuth2 prompt. Exchanges the code for an access token, verifies the user holds an admin guild role, then redirects back to the admin frontend with a signed JWT in the query string (`?token=...`). On failure, redirects with `?error=<reason>` instead.
|
|
4214
4861
|
* @summary Discord - OAuth2 callback
|
|
@@ -4363,6 +5010,22 @@ exports.AuthenticationApiAxiosParamCreator = AuthenticationApiAxiosParamCreator;
|
|
|
4363
5010
|
const AuthenticationApiFp = function (configuration) {
|
|
4364
5011
|
const localVarAxiosParamCreator = (0, exports.AuthenticationApiAxiosParamCreator)(configuration);
|
|
4365
5012
|
return {
|
|
5013
|
+
/**
|
|
5014
|
+
* Returns the Discord OAuth2 authorize URL as JSON so a native app can open it directly (system browser → Discord-app universal-link hand-off) instead of following the 302. The `redirect` is validated against the allowlist and carried through Discord via `state`, exactly like the browser flow; the callback still bounces the JWT to that target.
|
|
5015
|
+
* @summary Discord - Authorize URL (native clients)
|
|
5016
|
+
* @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
|
|
5017
|
+
* @param {*} [options] Override http request option.
|
|
5018
|
+
* @throws {RequiredError}
|
|
5019
|
+
*/
|
|
5020
|
+
authorizeUrl(redirect, options) {
|
|
5021
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5022
|
+
var _a, _b, _c;
|
|
5023
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authorizeUrl(redirect, options);
|
|
5024
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5025
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthenticationApi.authorizeUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5026
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5027
|
+
});
|
|
5028
|
+
},
|
|
4366
5029
|
/**
|
|
4367
5030
|
* Receives the authorization code from Discord after the user approves the OAuth2 prompt. Exchanges the code for an access token, verifies the user holds an admin guild role, then redirects back to the admin frontend with a signed JWT in the query string (`?token=...`). On failure, redirects with `?error=<reason>` instead.
|
|
4368
5031
|
* @summary Discord - OAuth2 callback
|
|
@@ -4439,6 +5102,16 @@ exports.AuthenticationApiFp = AuthenticationApiFp;
|
|
|
4439
5102
|
const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
4440
5103
|
const localVarFp = (0, exports.AuthenticationApiFp)(configuration);
|
|
4441
5104
|
return {
|
|
5105
|
+
/**
|
|
5106
|
+
* Returns the Discord OAuth2 authorize URL as JSON so a native app can open it directly (system browser → Discord-app universal-link hand-off) instead of following the 302. The `redirect` is validated against the allowlist and carried through Discord via `state`, exactly like the browser flow; the callback still bounces the JWT to that target.
|
|
5107
|
+
* @summary Discord - Authorize URL (native clients)
|
|
5108
|
+
* @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
|
|
5109
|
+
* @param {*} [options] Override http request option.
|
|
5110
|
+
* @throws {RequiredError}
|
|
5111
|
+
*/
|
|
5112
|
+
authorizeUrl(redirect, options) {
|
|
5113
|
+
return localVarFp.authorizeUrl(redirect, options).then((request) => request(axios, basePath));
|
|
5114
|
+
},
|
|
4442
5115
|
/**
|
|
4443
5116
|
* Receives the authorization code from Discord after the user approves the OAuth2 prompt. Exchanges the code for an access token, verifies the user holds an admin guild role, then redirects back to the admin frontend with a signed JWT in the query string (`?token=...`). On failure, redirects with `?error=<reason>` instead.
|
|
4444
5117
|
* @summary Discord - OAuth2 callback
|
|
@@ -4489,6 +5162,16 @@ exports.AuthenticationApiFactory = AuthenticationApiFactory;
|
|
|
4489
5162
|
* AuthenticationApi - object-oriented interface
|
|
4490
5163
|
*/
|
|
4491
5164
|
class AuthenticationApi extends base_1.BaseAPI {
|
|
5165
|
+
/**
|
|
5166
|
+
* Returns the Discord OAuth2 authorize URL as JSON so a native app can open it directly (system browser → Discord-app universal-link hand-off) instead of following the 302. The `redirect` is validated against the allowlist and carried through Discord via `state`, exactly like the browser flow; the callback still bounces the JWT to that target.
|
|
5167
|
+
* @summary Discord - Authorize URL (native clients)
|
|
5168
|
+
* @param {string | null} [redirect] Final redirect target for the JWT (native deep link). Must be allowlisted.
|
|
5169
|
+
* @param {*} [options] Override http request option.
|
|
5170
|
+
* @throws {RequiredError}
|
|
5171
|
+
*/
|
|
5172
|
+
authorizeUrl(redirect, options) {
|
|
5173
|
+
return (0, exports.AuthenticationApiFp)(this.configuration).authorizeUrl(redirect, options).then((request) => request(this.axios, this.basePath));
|
|
5174
|
+
}
|
|
4492
5175
|
/**
|
|
4493
5176
|
* Receives the authorization code from Discord after the user approves the OAuth2 prompt. Exchanges the code for an access token, verifies the user holds an admin guild role, then redirects back to the admin frontend with a signed JWT in the query string (`?token=...`). On failure, redirects with `?error=<reason>` instead.
|
|
4494
5177
|
* @summary Discord - OAuth2 callback
|