@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/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reborn API
|
|
5
5
|
* The Reborn API serves as the central backend for the platform, orchestrating secure communication between game clients and data services. This API supports two authentication methods: - **OAuth 2.0 Client Credentials**: For programmatic API access - **Discord SSO Bearer Token**: For admin endpoints requiring Discord authentication
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.9.
|
|
7
|
+
* The version of the OpenAPI document: 4.9.2
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1441,6 +1441,109 @@ export class AdminConnectionsApi extends BaseAPI {
|
|
|
1441
1441
|
*/
|
|
1442
1442
|
export const AdminDashboardApiAxiosParamCreator = function (configuration) {
|
|
1443
1443
|
return {
|
|
1444
|
+
/**
|
|
1445
|
+
* Connection volume bucketed by UTC day-of-week (0=Sunday) and hour-of-day (0–23) over the window.
|
|
1446
|
+
* @summary Connection activity heatmap
|
|
1447
|
+
* @param {number} [days] Trailing window in days
|
|
1448
|
+
* @param {*} [options] Override http request option.
|
|
1449
|
+
* @throws {RequiredError}
|
|
1450
|
+
*/
|
|
1451
|
+
activityHeatmap: (days_1, ...args_1) => __awaiter(this, [days_1, ...args_1], void 0, function* (days, options = {}) {
|
|
1452
|
+
const localVarPath = `/admin/dashboard/connections/activity`;
|
|
1453
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1454
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1455
|
+
let baseOptions;
|
|
1456
|
+
if (configuration) {
|
|
1457
|
+
baseOptions = configuration.baseOptions;
|
|
1458
|
+
}
|
|
1459
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1460
|
+
const localVarHeaderParameter = {};
|
|
1461
|
+
const localVarQueryParameter = {};
|
|
1462
|
+
// authentication DiscordAuth required
|
|
1463
|
+
// http bearer authentication required
|
|
1464
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1465
|
+
if (days !== undefined) {
|
|
1466
|
+
localVarQueryParameter['days'] = days;
|
|
1467
|
+
}
|
|
1468
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1469
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1470
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1471
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1472
|
+
return {
|
|
1473
|
+
url: toPathString(localVarUrlObj),
|
|
1474
|
+
options: localVarRequestOptions,
|
|
1475
|
+
};
|
|
1476
|
+
}),
|
|
1477
|
+
/**
|
|
1478
|
+
* Top countries by distinct connection volume over the window, with the VPN/proxy-flagged subset.
|
|
1479
|
+
* @summary Connections by country
|
|
1480
|
+
* @param {number} [days] Trailing window in days
|
|
1481
|
+
* @param {number} [limit] Max countries to return
|
|
1482
|
+
* @param {*} [options] Override http request option.
|
|
1483
|
+
* @throws {RequiredError}
|
|
1484
|
+
*/
|
|
1485
|
+
connectionsByCountry: (days_1, limit_1, ...args_1) => __awaiter(this, [days_1, limit_1, ...args_1], void 0, function* (days, limit, options = {}) {
|
|
1486
|
+
const localVarPath = `/admin/dashboard/connections/countries`;
|
|
1487
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1488
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1489
|
+
let baseOptions;
|
|
1490
|
+
if (configuration) {
|
|
1491
|
+
baseOptions = configuration.baseOptions;
|
|
1492
|
+
}
|
|
1493
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1494
|
+
const localVarHeaderParameter = {};
|
|
1495
|
+
const localVarQueryParameter = {};
|
|
1496
|
+
// authentication DiscordAuth required
|
|
1497
|
+
// http bearer authentication required
|
|
1498
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1499
|
+
if (days !== undefined) {
|
|
1500
|
+
localVarQueryParameter['days'] = days;
|
|
1501
|
+
}
|
|
1502
|
+
if (limit !== undefined) {
|
|
1503
|
+
localVarQueryParameter['limit'] = limit;
|
|
1504
|
+
}
|
|
1505
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1506
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1507
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1508
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1509
|
+
return {
|
|
1510
|
+
url: toPathString(localVarUrlObj),
|
|
1511
|
+
options: localVarRequestOptions,
|
|
1512
|
+
};
|
|
1513
|
+
}),
|
|
1514
|
+
/**
|
|
1515
|
+
* Per-day session count, distinct active players, and mean completed-session length over the requested window.
|
|
1516
|
+
* @summary Daily session activity
|
|
1517
|
+
* @param {number} [days] Trailing window in days
|
|
1518
|
+
* @param {*} [options] Override http request option.
|
|
1519
|
+
* @throws {RequiredError}
|
|
1520
|
+
*/
|
|
1521
|
+
dailySessions: (days_1, ...args_1) => __awaiter(this, [days_1, ...args_1], void 0, function* (days, options = {}) {
|
|
1522
|
+
const localVarPath = `/admin/dashboard/sessions/daily`;
|
|
1523
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1524
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1525
|
+
let baseOptions;
|
|
1526
|
+
if (configuration) {
|
|
1527
|
+
baseOptions = configuration.baseOptions;
|
|
1528
|
+
}
|
|
1529
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1530
|
+
const localVarHeaderParameter = {};
|
|
1531
|
+
const localVarQueryParameter = {};
|
|
1532
|
+
// authentication DiscordAuth required
|
|
1533
|
+
// http bearer authentication required
|
|
1534
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1535
|
+
if (days !== undefined) {
|
|
1536
|
+
localVarQueryParameter['days'] = days;
|
|
1537
|
+
}
|
|
1538
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1539
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1540
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1541
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1542
|
+
return {
|
|
1543
|
+
url: toPathString(localVarUrlObj),
|
|
1544
|
+
options: localVarRequestOptions,
|
|
1545
|
+
};
|
|
1546
|
+
}),
|
|
1444
1547
|
/**
|
|
1445
1548
|
* Returns aggregate counts for clients, connections, and players in the system.
|
|
1446
1549
|
* @summary Get dashboard statistics
|
|
@@ -1470,6 +1573,196 @@ export const AdminDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
1470
1573
|
options: localVarRequestOptions,
|
|
1471
1574
|
};
|
|
1472
1575
|
}),
|
|
1576
|
+
/**
|
|
1577
|
+
* At-a-glance counts: players online now, new players today, DAU, 7-day mean/median session length, active bans/mutes, and open reports.
|
|
1578
|
+
* @summary Dashboard overview tiles
|
|
1579
|
+
* @param {*} [options] Override http request option.
|
|
1580
|
+
* @throws {RequiredError}
|
|
1581
|
+
*/
|
|
1582
|
+
overview: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1583
|
+
const localVarPath = `/admin/dashboard/overview`;
|
|
1584
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1585
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1586
|
+
let baseOptions;
|
|
1587
|
+
if (configuration) {
|
|
1588
|
+
baseOptions = configuration.baseOptions;
|
|
1589
|
+
}
|
|
1590
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1591
|
+
const localVarHeaderParameter = {};
|
|
1592
|
+
const localVarQueryParameter = {};
|
|
1593
|
+
// authentication DiscordAuth required
|
|
1594
|
+
// http bearer authentication required
|
|
1595
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1596
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1597
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1598
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1599
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1600
|
+
return {
|
|
1601
|
+
url: toPathString(localVarUrlObj),
|
|
1602
|
+
options: localVarRequestOptions,
|
|
1603
|
+
};
|
|
1604
|
+
}),
|
|
1605
|
+
/**
|
|
1606
|
+
* Daily punishment issuance over the window, split by type (BAN/MUTE/KICK/WARNING) — feeds the stacked chart.
|
|
1607
|
+
* @summary Punishments by type over time
|
|
1608
|
+
* @param {number} [days] Trailing window in days
|
|
1609
|
+
* @param {*} [options] Override http request option.
|
|
1610
|
+
* @throws {RequiredError}
|
|
1611
|
+
*/
|
|
1612
|
+
punishmentsByType: (days_1, ...args_1) => __awaiter(this, [days_1, ...args_1], void 0, function* (days, options = {}) {
|
|
1613
|
+
const localVarPath = `/admin/dashboard/punishments/daily`;
|
|
1614
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1615
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1616
|
+
let baseOptions;
|
|
1617
|
+
if (configuration) {
|
|
1618
|
+
baseOptions = configuration.baseOptions;
|
|
1619
|
+
}
|
|
1620
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1621
|
+
const localVarHeaderParameter = {};
|
|
1622
|
+
const localVarQueryParameter = {};
|
|
1623
|
+
// authentication DiscordAuth required
|
|
1624
|
+
// http bearer authentication required
|
|
1625
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1626
|
+
if (days !== undefined) {
|
|
1627
|
+
localVarQueryParameter['days'] = days;
|
|
1628
|
+
}
|
|
1629
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1630
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1631
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1632
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1633
|
+
return {
|
|
1634
|
+
url: toPathString(localVarUrlObj),
|
|
1635
|
+
options: localVarRequestOptions,
|
|
1636
|
+
};
|
|
1637
|
+
}),
|
|
1638
|
+
/**
|
|
1639
|
+
* Open backlog, reports resolved in the window, mean resolution time, and a category breakdown.
|
|
1640
|
+
* @summary Report backlog & resolution speed
|
|
1641
|
+
* @param {number} [days] Trailing window in days
|
|
1642
|
+
* @param {*} [options] Override http request option.
|
|
1643
|
+
* @throws {RequiredError}
|
|
1644
|
+
*/
|
|
1645
|
+
reportSummary: (days_1, ...args_1) => __awaiter(this, [days_1, ...args_1], void 0, function* (days, options = {}) {
|
|
1646
|
+
const localVarPath = `/admin/dashboard/reports/summary`;
|
|
1647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1648
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1649
|
+
let baseOptions;
|
|
1650
|
+
if (configuration) {
|
|
1651
|
+
baseOptions = configuration.baseOptions;
|
|
1652
|
+
}
|
|
1653
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1654
|
+
const localVarHeaderParameter = {};
|
|
1655
|
+
const localVarQueryParameter = {};
|
|
1656
|
+
// authentication DiscordAuth required
|
|
1657
|
+
// http bearer authentication required
|
|
1658
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1659
|
+
if (days !== undefined) {
|
|
1660
|
+
localVarQueryParameter['days'] = days;
|
|
1661
|
+
}
|
|
1662
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1663
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1665
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1666
|
+
return {
|
|
1667
|
+
url: toPathString(localVarUrlObj),
|
|
1668
|
+
options: localVarRequestOptions,
|
|
1669
|
+
};
|
|
1670
|
+
}),
|
|
1671
|
+
/**
|
|
1672
|
+
* Online server count and current player load per region/game-type.
|
|
1673
|
+
* @summary Servers & players by region
|
|
1674
|
+
* @param {*} [options] Override http request option.
|
|
1675
|
+
* @throws {RequiredError}
|
|
1676
|
+
*/
|
|
1677
|
+
serverRegions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1678
|
+
const localVarPath = `/admin/dashboard/servers/summary`;
|
|
1679
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1680
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1681
|
+
let baseOptions;
|
|
1682
|
+
if (configuration) {
|
|
1683
|
+
baseOptions = configuration.baseOptions;
|
|
1684
|
+
}
|
|
1685
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1686
|
+
const localVarHeaderParameter = {};
|
|
1687
|
+
const localVarQueryParameter = {};
|
|
1688
|
+
// authentication DiscordAuth required
|
|
1689
|
+
// http bearer authentication required
|
|
1690
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1691
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1692
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1693
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1694
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1695
|
+
return {
|
|
1696
|
+
url: toPathString(localVarUrlObj),
|
|
1697
|
+
options: localVarRequestOptions,
|
|
1698
|
+
};
|
|
1699
|
+
}),
|
|
1700
|
+
/**
|
|
1701
|
+
* Moderators ranked by audit-log action count over the window.
|
|
1702
|
+
* @summary Top moderators by activity
|
|
1703
|
+
* @param {number} [days] Trailing window in days
|
|
1704
|
+
* @param {number} [limit] Max moderators to return
|
|
1705
|
+
* @param {*} [options] Override http request option.
|
|
1706
|
+
* @throws {RequiredError}
|
|
1707
|
+
*/
|
|
1708
|
+
topModerators: (days_1, limit_1, ...args_1) => __awaiter(this, [days_1, limit_1, ...args_1], void 0, function* (days, limit, options = {}) {
|
|
1709
|
+
const localVarPath = `/admin/dashboard/moderators/top`;
|
|
1710
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1711
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1712
|
+
let baseOptions;
|
|
1713
|
+
if (configuration) {
|
|
1714
|
+
baseOptions = configuration.baseOptions;
|
|
1715
|
+
}
|
|
1716
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1717
|
+
const localVarHeaderParameter = {};
|
|
1718
|
+
const localVarQueryParameter = {};
|
|
1719
|
+
// authentication DiscordAuth required
|
|
1720
|
+
// http bearer authentication required
|
|
1721
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1722
|
+
if (days !== undefined) {
|
|
1723
|
+
localVarQueryParameter['days'] = days;
|
|
1724
|
+
}
|
|
1725
|
+
if (limit !== undefined) {
|
|
1726
|
+
localVarQueryParameter['limit'] = limit;
|
|
1727
|
+
}
|
|
1728
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1729
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1730
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1731
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1732
|
+
return {
|
|
1733
|
+
url: toPathString(localVarUrlObj),
|
|
1734
|
+
options: localVarRequestOptions,
|
|
1735
|
+
};
|
|
1736
|
+
}),
|
|
1737
|
+
/**
|
|
1738
|
+
* Histogram of every player\'s latest trust factor, bucketed into ten 10-point bins.
|
|
1739
|
+
* @summary Trust-factor distribution
|
|
1740
|
+
* @param {*} [options] Override http request option.
|
|
1741
|
+
* @throws {RequiredError}
|
|
1742
|
+
*/
|
|
1743
|
+
trustDistribution: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1744
|
+
const localVarPath = `/admin/dashboard/trust/distribution`;
|
|
1745
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1746
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1747
|
+
let baseOptions;
|
|
1748
|
+
if (configuration) {
|
|
1749
|
+
baseOptions = configuration.baseOptions;
|
|
1750
|
+
}
|
|
1751
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1752
|
+
const localVarHeaderParameter = {};
|
|
1753
|
+
const localVarQueryParameter = {};
|
|
1754
|
+
// authentication DiscordAuth required
|
|
1755
|
+
// http bearer authentication required
|
|
1756
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1757
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1758
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1759
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1760
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1761
|
+
return {
|
|
1762
|
+
url: toPathString(localVarUrlObj),
|
|
1763
|
+
options: localVarRequestOptions,
|
|
1764
|
+
};
|
|
1765
|
+
}),
|
|
1473
1766
|
};
|
|
1474
1767
|
};
|
|
1475
1768
|
/**
|
|
@@ -1478,6 +1771,55 @@ export const AdminDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
1478
1771
|
export const AdminDashboardApiFp = function (configuration) {
|
|
1479
1772
|
const localVarAxiosParamCreator = AdminDashboardApiAxiosParamCreator(configuration);
|
|
1480
1773
|
return {
|
|
1774
|
+
/**
|
|
1775
|
+
* Connection volume bucketed by UTC day-of-week (0=Sunday) and hour-of-day (0–23) over the window.
|
|
1776
|
+
* @summary Connection activity heatmap
|
|
1777
|
+
* @param {number} [days] Trailing window in days
|
|
1778
|
+
* @param {*} [options] Override http request option.
|
|
1779
|
+
* @throws {RequiredError}
|
|
1780
|
+
*/
|
|
1781
|
+
activityHeatmap(days, options) {
|
|
1782
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1783
|
+
var _a, _b, _c;
|
|
1784
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.activityHeatmap(days, options);
|
|
1785
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1786
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminDashboardApi.activityHeatmap']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1787
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1788
|
+
});
|
|
1789
|
+
},
|
|
1790
|
+
/**
|
|
1791
|
+
* Top countries by distinct connection volume over the window, with the VPN/proxy-flagged subset.
|
|
1792
|
+
* @summary Connections by country
|
|
1793
|
+
* @param {number} [days] Trailing window in days
|
|
1794
|
+
* @param {number} [limit] Max countries to return
|
|
1795
|
+
* @param {*} [options] Override http request option.
|
|
1796
|
+
* @throws {RequiredError}
|
|
1797
|
+
*/
|
|
1798
|
+
connectionsByCountry(days, limit, options) {
|
|
1799
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1800
|
+
var _a, _b, _c;
|
|
1801
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.connectionsByCountry(days, limit, 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 = operationServerMap['AdminDashboardApi.connectionsByCountry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1804
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1805
|
+
});
|
|
1806
|
+
},
|
|
1807
|
+
/**
|
|
1808
|
+
* Per-day session count, distinct active players, and mean completed-session length over the requested window.
|
|
1809
|
+
* @summary Daily session activity
|
|
1810
|
+
* @param {number} [days] Trailing window in days
|
|
1811
|
+
* @param {*} [options] Override http request option.
|
|
1812
|
+
* @throws {RequiredError}
|
|
1813
|
+
*/
|
|
1814
|
+
dailySessions(days, options) {
|
|
1815
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1816
|
+
var _a, _b, _c;
|
|
1817
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.dailySessions(days, options);
|
|
1818
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1819
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminDashboardApi.dailySessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1820
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1821
|
+
});
|
|
1822
|
+
},
|
|
1481
1823
|
/**
|
|
1482
1824
|
* Returns aggregate counts for clients, connections, and players in the system.
|
|
1483
1825
|
* @summary Get dashboard statistics
|
|
@@ -1493,6 +1835,100 @@ export const AdminDashboardApiFp = function (configuration) {
|
|
|
1493
1835
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1494
1836
|
});
|
|
1495
1837
|
},
|
|
1838
|
+
/**
|
|
1839
|
+
* At-a-glance counts: players online now, new players today, DAU, 7-day mean/median session length, active bans/mutes, and open reports.
|
|
1840
|
+
* @summary Dashboard overview tiles
|
|
1841
|
+
* @param {*} [options] Override http request option.
|
|
1842
|
+
* @throws {RequiredError}
|
|
1843
|
+
*/
|
|
1844
|
+
overview(options) {
|
|
1845
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1846
|
+
var _a, _b, _c;
|
|
1847
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.overview(options);
|
|
1848
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1849
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminDashboardApi.overview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1850
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1851
|
+
});
|
|
1852
|
+
},
|
|
1853
|
+
/**
|
|
1854
|
+
* Daily punishment issuance over the window, split by type (BAN/MUTE/KICK/WARNING) — feeds the stacked chart.
|
|
1855
|
+
* @summary Punishments by type over time
|
|
1856
|
+
* @param {number} [days] Trailing window in days
|
|
1857
|
+
* @param {*} [options] Override http request option.
|
|
1858
|
+
* @throws {RequiredError}
|
|
1859
|
+
*/
|
|
1860
|
+
punishmentsByType(days, options) {
|
|
1861
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1862
|
+
var _a, _b, _c;
|
|
1863
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.punishmentsByType(days, options);
|
|
1864
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1865
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminDashboardApi.punishmentsByType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1866
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1867
|
+
});
|
|
1868
|
+
},
|
|
1869
|
+
/**
|
|
1870
|
+
* Open backlog, reports resolved in the window, mean resolution time, and a category breakdown.
|
|
1871
|
+
* @summary Report backlog & resolution speed
|
|
1872
|
+
* @param {number} [days] Trailing window in days
|
|
1873
|
+
* @param {*} [options] Override http request option.
|
|
1874
|
+
* @throws {RequiredError}
|
|
1875
|
+
*/
|
|
1876
|
+
reportSummary(days, options) {
|
|
1877
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1878
|
+
var _a, _b, _c;
|
|
1879
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reportSummary(days, options);
|
|
1880
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1881
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminDashboardApi.reportSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1882
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1883
|
+
});
|
|
1884
|
+
},
|
|
1885
|
+
/**
|
|
1886
|
+
* Online server count and current player load per region/game-type.
|
|
1887
|
+
* @summary Servers & players by region
|
|
1888
|
+
* @param {*} [options] Override http request option.
|
|
1889
|
+
* @throws {RequiredError}
|
|
1890
|
+
*/
|
|
1891
|
+
serverRegions(options) {
|
|
1892
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1893
|
+
var _a, _b, _c;
|
|
1894
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.serverRegions(options);
|
|
1895
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1896
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminDashboardApi.serverRegions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1897
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1898
|
+
});
|
|
1899
|
+
},
|
|
1900
|
+
/**
|
|
1901
|
+
* Moderators ranked by audit-log action count over the window.
|
|
1902
|
+
* @summary Top moderators by activity
|
|
1903
|
+
* @param {number} [days] Trailing window in days
|
|
1904
|
+
* @param {number} [limit] Max moderators to return
|
|
1905
|
+
* @param {*} [options] Override http request option.
|
|
1906
|
+
* @throws {RequiredError}
|
|
1907
|
+
*/
|
|
1908
|
+
topModerators(days, limit, options) {
|
|
1909
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1910
|
+
var _a, _b, _c;
|
|
1911
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.topModerators(days, limit, 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 = operationServerMap['AdminDashboardApi.topModerators']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1914
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1915
|
+
});
|
|
1916
|
+
},
|
|
1917
|
+
/**
|
|
1918
|
+
* Histogram of every player\'s latest trust factor, bucketed into ten 10-point bins.
|
|
1919
|
+
* @summary Trust-factor distribution
|
|
1920
|
+
* @param {*} [options] Override http request option.
|
|
1921
|
+
* @throws {RequiredError}
|
|
1922
|
+
*/
|
|
1923
|
+
trustDistribution(options) {
|
|
1924
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1925
|
+
var _a, _b, _c;
|
|
1926
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.trustDistribution(options);
|
|
1927
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1928
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminDashboardApi.trustDistribution']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1929
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1930
|
+
});
|
|
1931
|
+
},
|
|
1496
1932
|
};
|
|
1497
1933
|
};
|
|
1498
1934
|
/**
|
|
@@ -1501,6 +1937,37 @@ export const AdminDashboardApiFp = function (configuration) {
|
|
|
1501
1937
|
export const AdminDashboardApiFactory = function (configuration, basePath, axios) {
|
|
1502
1938
|
const localVarFp = AdminDashboardApiFp(configuration);
|
|
1503
1939
|
return {
|
|
1940
|
+
/**
|
|
1941
|
+
* Connection volume bucketed by UTC day-of-week (0=Sunday) and hour-of-day (0–23) over the window.
|
|
1942
|
+
* @summary Connection activity heatmap
|
|
1943
|
+
* @param {number} [days] Trailing window in days
|
|
1944
|
+
* @param {*} [options] Override http request option.
|
|
1945
|
+
* @throws {RequiredError}
|
|
1946
|
+
*/
|
|
1947
|
+
activityHeatmap(days, options) {
|
|
1948
|
+
return localVarFp.activityHeatmap(days, options).then((request) => request(axios, basePath));
|
|
1949
|
+
},
|
|
1950
|
+
/**
|
|
1951
|
+
* Top countries by distinct connection volume over the window, with the VPN/proxy-flagged subset.
|
|
1952
|
+
* @summary Connections by country
|
|
1953
|
+
* @param {number} [days] Trailing window in days
|
|
1954
|
+
* @param {number} [limit] Max countries to return
|
|
1955
|
+
* @param {*} [options] Override http request option.
|
|
1956
|
+
* @throws {RequiredError}
|
|
1957
|
+
*/
|
|
1958
|
+
connectionsByCountry(days, limit, options) {
|
|
1959
|
+
return localVarFp.connectionsByCountry(days, limit, options).then((request) => request(axios, basePath));
|
|
1960
|
+
},
|
|
1961
|
+
/**
|
|
1962
|
+
* Per-day session count, distinct active players, and mean completed-session length over the requested window.
|
|
1963
|
+
* @summary Daily session activity
|
|
1964
|
+
* @param {number} [days] Trailing window in days
|
|
1965
|
+
* @param {*} [options] Override http request option.
|
|
1966
|
+
* @throws {RequiredError}
|
|
1967
|
+
*/
|
|
1968
|
+
dailySessions(days, options) {
|
|
1969
|
+
return localVarFp.dailySessions(days, options).then((request) => request(axios, basePath));
|
|
1970
|
+
},
|
|
1504
1971
|
/**
|
|
1505
1972
|
* Returns aggregate counts for clients, connections, and players in the system.
|
|
1506
1973
|
* @summary Get dashboard statistics
|
|
@@ -1510,12 +1977,101 @@ export const AdminDashboardApiFactory = function (configuration, basePath, axios
|
|
|
1510
1977
|
dashboardStats(options) {
|
|
1511
1978
|
return localVarFp.dashboardStats(options).then((request) => request(axios, basePath));
|
|
1512
1979
|
},
|
|
1980
|
+
/**
|
|
1981
|
+
* At-a-glance counts: players online now, new players today, DAU, 7-day mean/median session length, active bans/mutes, and open reports.
|
|
1982
|
+
* @summary Dashboard overview tiles
|
|
1983
|
+
* @param {*} [options] Override http request option.
|
|
1984
|
+
* @throws {RequiredError}
|
|
1985
|
+
*/
|
|
1986
|
+
overview(options) {
|
|
1987
|
+
return localVarFp.overview(options).then((request) => request(axios, basePath));
|
|
1988
|
+
},
|
|
1989
|
+
/**
|
|
1990
|
+
* Daily punishment issuance over the window, split by type (BAN/MUTE/KICK/WARNING) — feeds the stacked chart.
|
|
1991
|
+
* @summary Punishments by type over time
|
|
1992
|
+
* @param {number} [days] Trailing window in days
|
|
1993
|
+
* @param {*} [options] Override http request option.
|
|
1994
|
+
* @throws {RequiredError}
|
|
1995
|
+
*/
|
|
1996
|
+
punishmentsByType(days, options) {
|
|
1997
|
+
return localVarFp.punishmentsByType(days, options).then((request) => request(axios, basePath));
|
|
1998
|
+
},
|
|
1999
|
+
/**
|
|
2000
|
+
* Open backlog, reports resolved in the window, mean resolution time, and a category breakdown.
|
|
2001
|
+
* @summary Report backlog & resolution speed
|
|
2002
|
+
* @param {number} [days] Trailing window in days
|
|
2003
|
+
* @param {*} [options] Override http request option.
|
|
2004
|
+
* @throws {RequiredError}
|
|
2005
|
+
*/
|
|
2006
|
+
reportSummary(days, options) {
|
|
2007
|
+
return localVarFp.reportSummary(days, options).then((request) => request(axios, basePath));
|
|
2008
|
+
},
|
|
2009
|
+
/**
|
|
2010
|
+
* Online server count and current player load per region/game-type.
|
|
2011
|
+
* @summary Servers & players by region
|
|
2012
|
+
* @param {*} [options] Override http request option.
|
|
2013
|
+
* @throws {RequiredError}
|
|
2014
|
+
*/
|
|
2015
|
+
serverRegions(options) {
|
|
2016
|
+
return localVarFp.serverRegions(options).then((request) => request(axios, basePath));
|
|
2017
|
+
},
|
|
2018
|
+
/**
|
|
2019
|
+
* Moderators ranked by audit-log action count over the window.
|
|
2020
|
+
* @summary Top moderators by activity
|
|
2021
|
+
* @param {number} [days] Trailing window in days
|
|
2022
|
+
* @param {number} [limit] Max moderators to return
|
|
2023
|
+
* @param {*} [options] Override http request option.
|
|
2024
|
+
* @throws {RequiredError}
|
|
2025
|
+
*/
|
|
2026
|
+
topModerators(days, limit, options) {
|
|
2027
|
+
return localVarFp.topModerators(days, limit, options).then((request) => request(axios, basePath));
|
|
2028
|
+
},
|
|
2029
|
+
/**
|
|
2030
|
+
* Histogram of every player\'s latest trust factor, bucketed into ten 10-point bins.
|
|
2031
|
+
* @summary Trust-factor distribution
|
|
2032
|
+
* @param {*} [options] Override http request option.
|
|
2033
|
+
* @throws {RequiredError}
|
|
2034
|
+
*/
|
|
2035
|
+
trustDistribution(options) {
|
|
2036
|
+
return localVarFp.trustDistribution(options).then((request) => request(axios, basePath));
|
|
2037
|
+
},
|
|
1513
2038
|
};
|
|
1514
2039
|
};
|
|
1515
2040
|
/**
|
|
1516
2041
|
* AdminDashboardApi - object-oriented interface
|
|
1517
2042
|
*/
|
|
1518
2043
|
export class AdminDashboardApi extends BaseAPI {
|
|
2044
|
+
/**
|
|
2045
|
+
* Connection volume bucketed by UTC day-of-week (0=Sunday) and hour-of-day (0–23) over the window.
|
|
2046
|
+
* @summary Connection activity heatmap
|
|
2047
|
+
* @param {number} [days] Trailing window in days
|
|
2048
|
+
* @param {*} [options] Override http request option.
|
|
2049
|
+
* @throws {RequiredError}
|
|
2050
|
+
*/
|
|
2051
|
+
activityHeatmap(days, options) {
|
|
2052
|
+
return AdminDashboardApiFp(this.configuration).activityHeatmap(days, options).then((request) => request(this.axios, this.basePath));
|
|
2053
|
+
}
|
|
2054
|
+
/**
|
|
2055
|
+
* Top countries by distinct connection volume over the window, with the VPN/proxy-flagged subset.
|
|
2056
|
+
* @summary Connections by country
|
|
2057
|
+
* @param {number} [days] Trailing window in days
|
|
2058
|
+
* @param {number} [limit] Max countries to return
|
|
2059
|
+
* @param {*} [options] Override http request option.
|
|
2060
|
+
* @throws {RequiredError}
|
|
2061
|
+
*/
|
|
2062
|
+
connectionsByCountry(days, limit, options) {
|
|
2063
|
+
return AdminDashboardApiFp(this.configuration).connectionsByCountry(days, limit, options).then((request) => request(this.axios, this.basePath));
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
* Per-day session count, distinct active players, and mean completed-session length over the requested window.
|
|
2067
|
+
* @summary Daily session activity
|
|
2068
|
+
* @param {number} [days] Trailing window in days
|
|
2069
|
+
* @param {*} [options] Override http request option.
|
|
2070
|
+
* @throws {RequiredError}
|
|
2071
|
+
*/
|
|
2072
|
+
dailySessions(days, options) {
|
|
2073
|
+
return AdminDashboardApiFp(this.configuration).dailySessions(days, options).then((request) => request(this.axios, this.basePath));
|
|
2074
|
+
}
|
|
1519
2075
|
/**
|
|
1520
2076
|
* Returns aggregate counts for clients, connections, and players in the system.
|
|
1521
2077
|
* @summary Get dashboard statistics
|
|
@@ -1525,6 +2081,64 @@ export class AdminDashboardApi extends BaseAPI {
|
|
|
1525
2081
|
dashboardStats(options) {
|
|
1526
2082
|
return AdminDashboardApiFp(this.configuration).dashboardStats(options).then((request) => request(this.axios, this.basePath));
|
|
1527
2083
|
}
|
|
2084
|
+
/**
|
|
2085
|
+
* At-a-glance counts: players online now, new players today, DAU, 7-day mean/median session length, active bans/mutes, and open reports.
|
|
2086
|
+
* @summary Dashboard overview tiles
|
|
2087
|
+
* @param {*} [options] Override http request option.
|
|
2088
|
+
* @throws {RequiredError}
|
|
2089
|
+
*/
|
|
2090
|
+
overview(options) {
|
|
2091
|
+
return AdminDashboardApiFp(this.configuration).overview(options).then((request) => request(this.axios, this.basePath));
|
|
2092
|
+
}
|
|
2093
|
+
/**
|
|
2094
|
+
* Daily punishment issuance over the window, split by type (BAN/MUTE/KICK/WARNING) — feeds the stacked chart.
|
|
2095
|
+
* @summary Punishments by type over time
|
|
2096
|
+
* @param {number} [days] Trailing window in days
|
|
2097
|
+
* @param {*} [options] Override http request option.
|
|
2098
|
+
* @throws {RequiredError}
|
|
2099
|
+
*/
|
|
2100
|
+
punishmentsByType(days, options) {
|
|
2101
|
+
return AdminDashboardApiFp(this.configuration).punishmentsByType(days, options).then((request) => request(this.axios, this.basePath));
|
|
2102
|
+
}
|
|
2103
|
+
/**
|
|
2104
|
+
* Open backlog, reports resolved in the window, mean resolution time, and a category breakdown.
|
|
2105
|
+
* @summary Report backlog & resolution speed
|
|
2106
|
+
* @param {number} [days] Trailing window in days
|
|
2107
|
+
* @param {*} [options] Override http request option.
|
|
2108
|
+
* @throws {RequiredError}
|
|
2109
|
+
*/
|
|
2110
|
+
reportSummary(days, options) {
|
|
2111
|
+
return AdminDashboardApiFp(this.configuration).reportSummary(days, options).then((request) => request(this.axios, this.basePath));
|
|
2112
|
+
}
|
|
2113
|
+
/**
|
|
2114
|
+
* Online server count and current player load per region/game-type.
|
|
2115
|
+
* @summary Servers & players by region
|
|
2116
|
+
* @param {*} [options] Override http request option.
|
|
2117
|
+
* @throws {RequiredError}
|
|
2118
|
+
*/
|
|
2119
|
+
serverRegions(options) {
|
|
2120
|
+
return AdminDashboardApiFp(this.configuration).serverRegions(options).then((request) => request(this.axios, this.basePath));
|
|
2121
|
+
}
|
|
2122
|
+
/**
|
|
2123
|
+
* Moderators ranked by audit-log action count over the window.
|
|
2124
|
+
* @summary Top moderators by activity
|
|
2125
|
+
* @param {number} [days] Trailing window in days
|
|
2126
|
+
* @param {number} [limit] Max moderators to return
|
|
2127
|
+
* @param {*} [options] Override http request option.
|
|
2128
|
+
* @throws {RequiredError}
|
|
2129
|
+
*/
|
|
2130
|
+
topModerators(days, limit, options) {
|
|
2131
|
+
return AdminDashboardApiFp(this.configuration).topModerators(days, limit, options).then((request) => request(this.axios, this.basePath));
|
|
2132
|
+
}
|
|
2133
|
+
/**
|
|
2134
|
+
* Histogram of every player\'s latest trust factor, bucketed into ten 10-point bins.
|
|
2135
|
+
* @summary Trust-factor distribution
|
|
2136
|
+
* @param {*} [options] Override http request option.
|
|
2137
|
+
* @throws {RequiredError}
|
|
2138
|
+
*/
|
|
2139
|
+
trustDistribution(options) {
|
|
2140
|
+
return AdminDashboardApiFp(this.configuration).trustDistribution(options).then((request) => request(this.axios, this.basePath));
|
|
2141
|
+
}
|
|
1528
2142
|
}
|
|
1529
2143
|
/**
|
|
1530
2144
|
* AdminJobsApi - axios parameter creator
|
|
@@ -4178,10 +4792,11 @@ export const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
4178
4792
|
* @summary Discord - OAuth2 callback
|
|
4179
4793
|
* @param {string | null} [code] Authorization code provided by Discord on successful approval
|
|
4180
4794
|
* @param {string | null} [error] Error code provided by Discord if the user denied access
|
|
4795
|
+
* @param {string | null} [state] Opaque value echoed back by Discord — carries the client\'s chosen redirect target
|
|
4181
4796
|
* @param {*} [options] Override http request option.
|
|
4182
4797
|
* @throws {RequiredError}
|
|
4183
4798
|
*/
|
|
4184
|
-
callback: (code_1, error_1, ...args_1) => __awaiter(this, [code_1, error_1, ...args_1], void 0, function* (code, error, options = {}) {
|
|
4799
|
+
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 = {}) {
|
|
4185
4800
|
const localVarPath = `/auth/discord/callback`;
|
|
4186
4801
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4187
4802
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4201,6 +4816,9 @@ export const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
4201
4816
|
if (error !== undefined) {
|
|
4202
4817
|
localVarQueryParameter['error'] = error;
|
|
4203
4818
|
}
|
|
4819
|
+
if (state !== undefined) {
|
|
4820
|
+
localVarQueryParameter['state'] = state;
|
|
4821
|
+
}
|
|
4204
4822
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4205
4823
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4206
4824
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4210,12 +4828,13 @@ export const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
4210
4828
|
};
|
|
4211
4829
|
}),
|
|
4212
4830
|
/**
|
|
4213
|
-
* Redirects the browser to Discord\'s OAuth2 authorization page.
|
|
4831
|
+
* 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.
|
|
4214
4832
|
* @summary Discord - Initiate login
|
|
4833
|
+
* @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.
|
|
4215
4834
|
* @param {*} [options] Override http request option.
|
|
4216
4835
|
* @throws {RequiredError}
|
|
4217
4836
|
*/
|
|
4218
|
-
initiateLogin: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4837
|
+
initiateLogin: (redirect_1, ...args_1) => __awaiter(this, [redirect_1, ...args_1], void 0, function* (redirect, options = {}) {
|
|
4219
4838
|
const localVarPath = `/auth/discord`;
|
|
4220
4839
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4221
4840
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4229,6 +4848,9 @@ export const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
4229
4848
|
// authentication DiscordAuth required
|
|
4230
4849
|
// http bearer authentication required
|
|
4231
4850
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4851
|
+
if (redirect !== undefined) {
|
|
4852
|
+
localVarQueryParameter['redirect'] = redirect;
|
|
4853
|
+
}
|
|
4232
4854
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4233
4855
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4234
4856
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4323,28 +4945,30 @@ export const AuthenticationApiFp = function (configuration) {
|
|
|
4323
4945
|
* @summary Discord - OAuth2 callback
|
|
4324
4946
|
* @param {string | null} [code] Authorization code provided by Discord on successful approval
|
|
4325
4947
|
* @param {string | null} [error] Error code provided by Discord if the user denied access
|
|
4948
|
+
* @param {string | null} [state] Opaque value echoed back by Discord — carries the client\'s chosen redirect target
|
|
4326
4949
|
* @param {*} [options] Override http request option.
|
|
4327
4950
|
* @throws {RequiredError}
|
|
4328
4951
|
*/
|
|
4329
|
-
callback(code, error, options) {
|
|
4952
|
+
callback(code, error, state, options) {
|
|
4330
4953
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4331
4954
|
var _a, _b, _c;
|
|
4332
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.callback(code, error, options);
|
|
4955
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.callback(code, error, state, options);
|
|
4333
4956
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4334
4957
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthenticationApi.callback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4335
4958
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4336
4959
|
});
|
|
4337
4960
|
},
|
|
4338
4961
|
/**
|
|
4339
|
-
* Redirects the browser to Discord\'s OAuth2 authorization page.
|
|
4962
|
+
* 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.
|
|
4340
4963
|
* @summary Discord - Initiate login
|
|
4964
|
+
* @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.
|
|
4341
4965
|
* @param {*} [options] Override http request option.
|
|
4342
4966
|
* @throws {RequiredError}
|
|
4343
4967
|
*/
|
|
4344
|
-
initiateLogin(options) {
|
|
4968
|
+
initiateLogin(redirect, options) {
|
|
4345
4969
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4346
4970
|
var _a, _b, _c;
|
|
4347
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateLogin(options);
|
|
4971
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateLogin(redirect, options);
|
|
4348
4972
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4349
4973
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthenticationApi.initiateLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4350
4974
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4396,20 +5020,22 @@ export const AuthenticationApiFactory = function (configuration, basePath, axios
|
|
|
4396
5020
|
* @summary Discord - OAuth2 callback
|
|
4397
5021
|
* @param {string | null} [code] Authorization code provided by Discord on successful approval
|
|
4398
5022
|
* @param {string | null} [error] Error code provided by Discord if the user denied access
|
|
5023
|
+
* @param {string | null} [state] Opaque value echoed back by Discord — carries the client\'s chosen redirect target
|
|
4399
5024
|
* @param {*} [options] Override http request option.
|
|
4400
5025
|
* @throws {RequiredError}
|
|
4401
5026
|
*/
|
|
4402
|
-
callback(code, error, options) {
|
|
4403
|
-
return localVarFp.callback(code, error, options).then((request) => request(axios, basePath));
|
|
5027
|
+
callback(code, error, state, options) {
|
|
5028
|
+
return localVarFp.callback(code, error, state, options).then((request) => request(axios, basePath));
|
|
4404
5029
|
},
|
|
4405
5030
|
/**
|
|
4406
|
-
* Redirects the browser to Discord\'s OAuth2 authorization page.
|
|
5031
|
+
* 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.
|
|
4407
5032
|
* @summary Discord - Initiate login
|
|
5033
|
+
* @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.
|
|
4408
5034
|
* @param {*} [options] Override http request option.
|
|
4409
5035
|
* @throws {RequiredError}
|
|
4410
5036
|
*/
|
|
4411
|
-
initiateLogin(options) {
|
|
4412
|
-
return localVarFp.initiateLogin(options).then((request) => request(axios, basePath));
|
|
5037
|
+
initiateLogin(redirect, options) {
|
|
5038
|
+
return localVarFp.initiateLogin(redirect, options).then((request) => request(axios, basePath));
|
|
4413
5039
|
},
|
|
4414
5040
|
/**
|
|
4415
5041
|
* Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
|
|
@@ -4443,20 +5069,22 @@ export class AuthenticationApi extends BaseAPI {
|
|
|
4443
5069
|
* @summary Discord - OAuth2 callback
|
|
4444
5070
|
* @param {string | null} [code] Authorization code provided by Discord on successful approval
|
|
4445
5071
|
* @param {string | null} [error] Error code provided by Discord if the user denied access
|
|
5072
|
+
* @param {string | null} [state] Opaque value echoed back by Discord — carries the client\'s chosen redirect target
|
|
4446
5073
|
* @param {*} [options] Override http request option.
|
|
4447
5074
|
* @throws {RequiredError}
|
|
4448
5075
|
*/
|
|
4449
|
-
callback(code, error, options) {
|
|
4450
|
-
return AuthenticationApiFp(this.configuration).callback(code, error, options).then((request) => request(this.axios, this.basePath));
|
|
5076
|
+
callback(code, error, state, options) {
|
|
5077
|
+
return AuthenticationApiFp(this.configuration).callback(code, error, state, options).then((request) => request(this.axios, this.basePath));
|
|
4451
5078
|
}
|
|
4452
5079
|
/**
|
|
4453
|
-
* Redirects the browser to Discord\'s OAuth2 authorization page.
|
|
5080
|
+
* 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.
|
|
4454
5081
|
* @summary Discord - Initiate login
|
|
5082
|
+
* @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.
|
|
4455
5083
|
* @param {*} [options] Override http request option.
|
|
4456
5084
|
* @throws {RequiredError}
|
|
4457
5085
|
*/
|
|
4458
|
-
initiateLogin(options) {
|
|
4459
|
-
return AuthenticationApiFp(this.configuration).initiateLogin(options).then((request) => request(this.axios, this.basePath));
|
|
5086
|
+
initiateLogin(redirect, options) {
|
|
5087
|
+
return AuthenticationApiFp(this.configuration).initiateLogin(redirect, options).then((request) => request(this.axios, this.basePath));
|
|
4460
5088
|
}
|
|
4461
5089
|
/**
|
|
4462
5090
|
* Returns the authenticated user\'s profile from their JWT claims. The session is already validated by the security rule before this endpoint is reached.
|