@rebornteam/reborn-api 4.9.1 → 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/api.ts 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.1
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).
@@ -511,6 +511,36 @@ export interface AdminCreatePunishmentDraftRequest {
511
511
  }
512
512
 
513
513
 
514
+ /**
515
+ * One cell of the activity heatmap: connection volume bucketed by UTC day-of-week (0 = Sunday) and hour-of-day (0--23).
516
+ */
517
+ export interface AdminDashboardActivityCell {
518
+ /**
519
+ * UTC day of week, 0 = Sunday … 6 = Saturday
520
+ */
521
+ 'dayOfWeek': number;
522
+ /**
523
+ * UTC hour of day, 0–23
524
+ */
525
+ 'hourOfDay': number;
526
+ /**
527
+ * Connections in this bucket
528
+ */
529
+ 'count': number;
530
+ }
531
+ /**
532
+ * Report count for one category over the window.
533
+ */
534
+ export interface AdminDashboardCategoryCount {
535
+ /**
536
+ * Report category
537
+ */
538
+ 'category': string;
539
+ /**
540
+ * Reports filed in this category
541
+ */
542
+ 'count': number;
543
+ }
514
544
  export interface AdminDashboardConnectionResponse {
515
545
  'id': number;
516
546
  'ipAddress': string;
@@ -534,6 +564,166 @@ export interface AdminDashboardConnectionResponse {
534
564
  */
535
565
  'results': Array<AdminConnectionCheckResult>;
536
566
  }
567
+ /**
568
+ * Connection volume for one country over the requested window.
569
+ */
570
+ export interface AdminDashboardCountryCount {
571
+ /**
572
+ * ISO country code
573
+ */
574
+ 'country': string;
575
+ /**
576
+ * Distinct connections geolocated to this country
577
+ */
578
+ 'connections': number;
579
+ /**
580
+ * Of those, how many were flagged VPN/proxy
581
+ */
582
+ 'vpnConnections': number;
583
+ }
584
+ /**
585
+ * One day of the session-activity timeseries (UTC day).
586
+ */
587
+ export interface AdminDashboardDailySessions {
588
+ /**
589
+ * UTC day, YYYY-MM-DD
590
+ */
591
+ 'day': string;
592
+ /**
593
+ * Sessions started this day
594
+ */
595
+ 'sessionCount': number;
596
+ /**
597
+ * Distinct players active this day
598
+ */
599
+ 'activePlayers': number;
600
+ /**
601
+ * Mean completed-session length this day, seconds
602
+ */
603
+ 'avgDurationSeconds': number;
604
+ }
605
+ /**
606
+ * A moderator and their audit-log action count over the window.
607
+ */
608
+ export interface AdminDashboardModeratorActivity {
609
+ /**
610
+ * Moderator username
611
+ */
612
+ 'actor': string;
613
+ /**
614
+ * Audit-log actions performed
615
+ */
616
+ 'actionCount': number;
617
+ }
618
+ /**
619
+ * \"At a glance\" dashboard tiles --- current pulse of the network plus rolling 7-day session averages. Session durations are in seconds.
620
+ */
621
+ export interface AdminDashboardOverview {
622
+ /**
623
+ * Players with an open session right now
624
+ */
625
+ 'onlinePlayers': number;
626
+ /**
627
+ * Players whose first join was today (UTC)
628
+ */
629
+ 'newPlayersToday': number;
630
+ /**
631
+ * Distinct players seen today (UTC)
632
+ */
633
+ 'dauToday': number;
634
+ /**
635
+ * Mean completed-session length over the last 7 days, seconds
636
+ */
637
+ 'avgSessionSeconds': number;
638
+ /**
639
+ * Median completed-session length over the last 7 days, seconds
640
+ */
641
+ 'medianSessionSeconds': number;
642
+ /**
643
+ * Unexpired BAN punishments
644
+ */
645
+ 'activeBans': number;
646
+ /**
647
+ * Unexpired MUTE punishments
648
+ */
649
+ 'activeMutes': number;
650
+ /**
651
+ * Reports awaiting resolution
652
+ */
653
+ 'openReports': number;
654
+ }
655
+ /**
656
+ * Punishments issued on one UTC day for a single type (BAN/MUTE/KICK/WARNING).
657
+ */
658
+ export interface AdminDashboardPunishmentDaily {
659
+ /**
660
+ * UTC day, YYYY-MM-DD
661
+ */
662
+ 'day': string;
663
+ /**
664
+ * Punishment type
665
+ */
666
+ 'type': string;
667
+ /**
668
+ * Issued this day of this type
669
+ */
670
+ 'count': number;
671
+ }
672
+ /**
673
+ * Report backlog, resolution speed, and category breakdown over the window.
674
+ */
675
+ export interface AdminDashboardReportSummary {
676
+ /**
677
+ * Reports awaiting resolution (all time)
678
+ */
679
+ 'openReports': number;
680
+ /**
681
+ * Reports resolved within the window
682
+ */
683
+ 'resolvedReports': number;
684
+ /**
685
+ * Mean time-to-resolution within the window, seconds
686
+ */
687
+ 'avgResolutionSeconds': number;
688
+ /**
689
+ * Reports filed within the window, grouped by category
690
+ */
691
+ 'byCategory': Array<AdminDashboardCategoryCount>;
692
+ }
693
+ /**
694
+ * Online server count and current player load for a region/game-type pair.
695
+ */
696
+ export interface AdminDashboardServerRegion {
697
+ /**
698
+ * Server region
699
+ */
700
+ 'region': string;
701
+ /**
702
+ * Game type
703
+ */
704
+ 'gameType': string;
705
+ /**
706
+ * Online server instances
707
+ */
708
+ 'onlineServers': number;
709
+ /**
710
+ * Players currently in open sessions on those servers
711
+ */
712
+ 'players': number;
713
+ }
714
+ /**
715
+ * One bar of the trust-factor distribution histogram. Bucket 0 = scores 0--9, bucket 9 = scores 90--100; count is players whose latest snapshot falls in it.
716
+ */
717
+ export interface AdminDashboardTrustBucket {
718
+ /**
719
+ * Histogram bucket index, 0–9 (each spans 10 trust points)
720
+ */
721
+ 'bucket': number;
722
+ /**
723
+ * Players in this bucket
724
+ */
725
+ 'count': number;
726
+ }
537
727
  export interface AdminGetDashboardStats {
538
728
  'totalPlayers': number;
539
729
  'totalConnections': number;
@@ -3438,13 +3628,14 @@ export class AdminConnectionsApi extends BaseAPI {
3438
3628
  export const AdminDashboardApiAxiosParamCreator = function (configuration?: Configuration) {
3439
3629
  return {
3440
3630
  /**
3441
- * Returns aggregate counts for clients, connections, and players in the system.
3442
- * @summary Get dashboard statistics
3631
+ * Connection volume bucketed by UTC day-of-week (0=Sunday) and hour-of-day (0–23) over the window.
3632
+ * @summary Connection activity heatmap
3633
+ * @param {number} [days] Trailing window in days
3443
3634
  * @param {*} [options] Override http request option.
3444
3635
  * @throws {RequiredError}
3445
3636
  */
3446
- dashboardStats: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3447
- const localVarPath = `/admin/dashboard`;
3637
+ activityHeatmap: async (days?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3638
+ const localVarPath = `/admin/dashboard/connections/activity`;
3448
3639
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3449
3640
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3450
3641
  let baseOptions;
@@ -3460,6 +3651,10 @@ export const AdminDashboardApiAxiosParamCreator = function (configuration?: Conf
3460
3651
  // http bearer authentication required
3461
3652
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
3462
3653
 
3654
+ if (days !== undefined) {
3655
+ localVarQueryParameter['days'] = days;
3656
+ }
3657
+
3463
3658
  localVarHeaderParameter['Accept'] = 'application/json';
3464
3659
 
3465
3660
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -3471,60 +3666,704 @@ export const AdminDashboardApiAxiosParamCreator = function (configuration?: Conf
3471
3666
  options: localVarRequestOptions,
3472
3667
  };
3473
3668
  },
3474
- }
3475
- };
3476
-
3477
- /**
3478
- * AdminDashboardApi - functional programming interface
3479
- */
3480
- export const AdminDashboardApiFp = function(configuration?: Configuration) {
3481
- const localVarAxiosParamCreator = AdminDashboardApiAxiosParamCreator(configuration)
3482
- return {
3483
3669
  /**
3484
- * Returns aggregate counts for clients, connections, and players in the system.
3485
- * @summary Get dashboard statistics
3670
+ * Top countries by distinct connection volume over the window, with the VPN/proxy-flagged subset.
3671
+ * @summary Connections by country
3672
+ * @param {number} [days] Trailing window in days
3673
+ * @param {number} [limit] Max countries to return
3486
3674
  * @param {*} [options] Override http request option.
3487
3675
  * @throws {RequiredError}
3488
3676
  */
3489
- async dashboardStats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminGetDashboardStats>> {
3490
- const localVarAxiosArgs = await localVarAxiosParamCreator.dashboardStats(options);
3491
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3492
- const localVarOperationServerBasePath = operationServerMap['AdminDashboardApi.dashboardStats']?.[localVarOperationServerIndex]?.url;
3493
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3677
+ connectionsByCountry: async (days?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3678
+ const localVarPath = `/admin/dashboard/connections/countries`;
3679
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3680
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3681
+ let baseOptions;
3682
+ if (configuration) {
3683
+ baseOptions = configuration.baseOptions;
3684
+ }
3685
+
3686
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3687
+ const localVarHeaderParameter = {} as any;
3688
+ const localVarQueryParameter = {} as any;
3689
+
3690
+ // authentication DiscordAuth required
3691
+ // http bearer authentication required
3692
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3693
+
3694
+ if (days !== undefined) {
3695
+ localVarQueryParameter['days'] = days;
3696
+ }
3697
+
3698
+ if (limit !== undefined) {
3699
+ localVarQueryParameter['limit'] = limit;
3700
+ }
3701
+
3702
+ localVarHeaderParameter['Accept'] = 'application/json';
3703
+
3704
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3705
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3706
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3707
+
3708
+ return {
3709
+ url: toPathString(localVarUrlObj),
3710
+ options: localVarRequestOptions,
3711
+ };
3494
3712
  },
3495
- }
3496
- };
3713
+ /**
3714
+ * Per-day session count, distinct active players, and mean completed-session length over the requested window.
3715
+ * @summary Daily session activity
3716
+ * @param {number} [days] Trailing window in days
3717
+ * @param {*} [options] Override http request option.
3718
+ * @throws {RequiredError}
3719
+ */
3720
+ dailySessions: async (days?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3721
+ const localVarPath = `/admin/dashboard/sessions/daily`;
3722
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3723
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3724
+ let baseOptions;
3725
+ if (configuration) {
3726
+ baseOptions = configuration.baseOptions;
3727
+ }
3497
3728
 
3498
- /**
3499
- * AdminDashboardApi - factory interface
3500
- */
3501
- export const AdminDashboardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3502
- const localVarFp = AdminDashboardApiFp(configuration)
3503
- return {
3729
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3730
+ const localVarHeaderParameter = {} as any;
3731
+ const localVarQueryParameter = {} as any;
3732
+
3733
+ // authentication DiscordAuth required
3734
+ // http bearer authentication required
3735
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3736
+
3737
+ if (days !== undefined) {
3738
+ localVarQueryParameter['days'] = days;
3739
+ }
3740
+
3741
+ localVarHeaderParameter['Accept'] = 'application/json';
3742
+
3743
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3744
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3745
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3746
+
3747
+ return {
3748
+ url: toPathString(localVarUrlObj),
3749
+ options: localVarRequestOptions,
3750
+ };
3751
+ },
3504
3752
  /**
3505
3753
  * Returns aggregate counts for clients, connections, and players in the system.
3506
3754
  * @summary Get dashboard statistics
3507
3755
  * @param {*} [options] Override http request option.
3508
3756
  * @throws {RequiredError}
3509
3757
  */
3510
- dashboardStats(options?: RawAxiosRequestConfig): AxiosPromise<AdminGetDashboardStats> {
3511
- return localVarFp.dashboardStats(options).then((request) => request(axios, basePath));
3758
+ dashboardStats: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3759
+ const localVarPath = `/admin/dashboard`;
3760
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3761
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3762
+ let baseOptions;
3763
+ if (configuration) {
3764
+ baseOptions = configuration.baseOptions;
3765
+ }
3766
+
3767
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3768
+ const localVarHeaderParameter = {} as any;
3769
+ const localVarQueryParameter = {} as any;
3770
+
3771
+ // authentication DiscordAuth required
3772
+ // http bearer authentication required
3773
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3774
+
3775
+ localVarHeaderParameter['Accept'] = 'application/json';
3776
+
3777
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3778
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3779
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3780
+
3781
+ return {
3782
+ url: toPathString(localVarUrlObj),
3783
+ options: localVarRequestOptions,
3784
+ };
3512
3785
  },
3513
- };
3514
- };
3786
+ /**
3787
+ * At-a-glance counts: players online now, new players today, DAU, 7-day mean/median session length, active bans/mutes, and open reports.
3788
+ * @summary Dashboard overview tiles
3789
+ * @param {*} [options] Override http request option.
3790
+ * @throws {RequiredError}
3791
+ */
3792
+ overview: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3793
+ const localVarPath = `/admin/dashboard/overview`;
3794
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3795
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3796
+ let baseOptions;
3797
+ if (configuration) {
3798
+ baseOptions = configuration.baseOptions;
3799
+ }
3515
3800
 
3516
- /**
3517
- * AdminDashboardApi - object-oriented interface
3518
- */
3519
- export class AdminDashboardApi extends BaseAPI {
3520
- /**
3521
- * Returns aggregate counts for clients, connections, and players in the system.
3522
- * @summary Get dashboard statistics
3523
- * @param {*} [options] Override http request option.
3524
- * @throws {RequiredError}
3525
- */
3526
- public dashboardStats(options?: RawAxiosRequestConfig) {
3527
- return AdminDashboardApiFp(this.configuration).dashboardStats(options).then((request) => request(this.axios, this.basePath));
3801
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3802
+ const localVarHeaderParameter = {} as any;
3803
+ const localVarQueryParameter = {} as any;
3804
+
3805
+ // authentication DiscordAuth required
3806
+ // http bearer authentication required
3807
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3808
+
3809
+ localVarHeaderParameter['Accept'] = 'application/json';
3810
+
3811
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3812
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3813
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3814
+
3815
+ return {
3816
+ url: toPathString(localVarUrlObj),
3817
+ options: localVarRequestOptions,
3818
+ };
3819
+ },
3820
+ /**
3821
+ * Daily punishment issuance over the window, split by type (BAN/MUTE/KICK/WARNING) — feeds the stacked chart.
3822
+ * @summary Punishments by type over time
3823
+ * @param {number} [days] Trailing window in days
3824
+ * @param {*} [options] Override http request option.
3825
+ * @throws {RequiredError}
3826
+ */
3827
+ punishmentsByType: async (days?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3828
+ const localVarPath = `/admin/dashboard/punishments/daily`;
3829
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3830
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3831
+ let baseOptions;
3832
+ if (configuration) {
3833
+ baseOptions = configuration.baseOptions;
3834
+ }
3835
+
3836
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3837
+ const localVarHeaderParameter = {} as any;
3838
+ const localVarQueryParameter = {} as any;
3839
+
3840
+ // authentication DiscordAuth required
3841
+ // http bearer authentication required
3842
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3843
+
3844
+ if (days !== undefined) {
3845
+ localVarQueryParameter['days'] = days;
3846
+ }
3847
+
3848
+ localVarHeaderParameter['Accept'] = 'application/json';
3849
+
3850
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3851
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3852
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3853
+
3854
+ return {
3855
+ url: toPathString(localVarUrlObj),
3856
+ options: localVarRequestOptions,
3857
+ };
3858
+ },
3859
+ /**
3860
+ * Open backlog, reports resolved in the window, mean resolution time, and a category breakdown.
3861
+ * @summary Report backlog & resolution speed
3862
+ * @param {number} [days] Trailing window in days
3863
+ * @param {*} [options] Override http request option.
3864
+ * @throws {RequiredError}
3865
+ */
3866
+ reportSummary: async (days?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3867
+ const localVarPath = `/admin/dashboard/reports/summary`;
3868
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3869
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3870
+ let baseOptions;
3871
+ if (configuration) {
3872
+ baseOptions = configuration.baseOptions;
3873
+ }
3874
+
3875
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3876
+ const localVarHeaderParameter = {} as any;
3877
+ const localVarQueryParameter = {} as any;
3878
+
3879
+ // authentication DiscordAuth required
3880
+ // http bearer authentication required
3881
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3882
+
3883
+ if (days !== undefined) {
3884
+ localVarQueryParameter['days'] = days;
3885
+ }
3886
+
3887
+ localVarHeaderParameter['Accept'] = 'application/json';
3888
+
3889
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3890
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3891
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3892
+
3893
+ return {
3894
+ url: toPathString(localVarUrlObj),
3895
+ options: localVarRequestOptions,
3896
+ };
3897
+ },
3898
+ /**
3899
+ * Online server count and current player load per region/game-type.
3900
+ * @summary Servers & players by region
3901
+ * @param {*} [options] Override http request option.
3902
+ * @throws {RequiredError}
3903
+ */
3904
+ serverRegions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3905
+ const localVarPath = `/admin/dashboard/servers/summary`;
3906
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3907
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3908
+ let baseOptions;
3909
+ if (configuration) {
3910
+ baseOptions = configuration.baseOptions;
3911
+ }
3912
+
3913
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3914
+ const localVarHeaderParameter = {} as any;
3915
+ const localVarQueryParameter = {} as any;
3916
+
3917
+ // authentication DiscordAuth required
3918
+ // http bearer authentication required
3919
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3920
+
3921
+ localVarHeaderParameter['Accept'] = 'application/json';
3922
+
3923
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3924
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3925
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3926
+
3927
+ return {
3928
+ url: toPathString(localVarUrlObj),
3929
+ options: localVarRequestOptions,
3930
+ };
3931
+ },
3932
+ /**
3933
+ * Moderators ranked by audit-log action count over the window.
3934
+ * @summary Top moderators by activity
3935
+ * @param {number} [days] Trailing window in days
3936
+ * @param {number} [limit] Max moderators to return
3937
+ * @param {*} [options] Override http request option.
3938
+ * @throws {RequiredError}
3939
+ */
3940
+ topModerators: async (days?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3941
+ const localVarPath = `/admin/dashboard/moderators/top`;
3942
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3943
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3944
+ let baseOptions;
3945
+ if (configuration) {
3946
+ baseOptions = configuration.baseOptions;
3947
+ }
3948
+
3949
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3950
+ const localVarHeaderParameter = {} as any;
3951
+ const localVarQueryParameter = {} as any;
3952
+
3953
+ // authentication DiscordAuth required
3954
+ // http bearer authentication required
3955
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3956
+
3957
+ if (days !== undefined) {
3958
+ localVarQueryParameter['days'] = days;
3959
+ }
3960
+
3961
+ if (limit !== undefined) {
3962
+ localVarQueryParameter['limit'] = limit;
3963
+ }
3964
+
3965
+ localVarHeaderParameter['Accept'] = 'application/json';
3966
+
3967
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3968
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3969
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3970
+
3971
+ return {
3972
+ url: toPathString(localVarUrlObj),
3973
+ options: localVarRequestOptions,
3974
+ };
3975
+ },
3976
+ /**
3977
+ * Histogram of every player\'s latest trust factor, bucketed into ten 10-point bins.
3978
+ * @summary Trust-factor distribution
3979
+ * @param {*} [options] Override http request option.
3980
+ * @throws {RequiredError}
3981
+ */
3982
+ trustDistribution: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3983
+ const localVarPath = `/admin/dashboard/trust/distribution`;
3984
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3985
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3986
+ let baseOptions;
3987
+ if (configuration) {
3988
+ baseOptions = configuration.baseOptions;
3989
+ }
3990
+
3991
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3992
+ const localVarHeaderParameter = {} as any;
3993
+ const localVarQueryParameter = {} as any;
3994
+
3995
+ // authentication DiscordAuth required
3996
+ // http bearer authentication required
3997
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3998
+
3999
+ localVarHeaderParameter['Accept'] = 'application/json';
4000
+
4001
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4002
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4003
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4004
+
4005
+ return {
4006
+ url: toPathString(localVarUrlObj),
4007
+ options: localVarRequestOptions,
4008
+ };
4009
+ },
4010
+ }
4011
+ };
4012
+
4013
+ /**
4014
+ * AdminDashboardApi - functional programming interface
4015
+ */
4016
+ export const AdminDashboardApiFp = function(configuration?: Configuration) {
4017
+ const localVarAxiosParamCreator = AdminDashboardApiAxiosParamCreator(configuration)
4018
+ return {
4019
+ /**
4020
+ * Connection volume bucketed by UTC day-of-week (0=Sunday) and hour-of-day (0–23) over the window.
4021
+ * @summary Connection activity heatmap
4022
+ * @param {number} [days] Trailing window in days
4023
+ * @param {*} [options] Override http request option.
4024
+ * @throws {RequiredError}
4025
+ */
4026
+ async activityHeatmap(days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AdminDashboardActivityCell>>> {
4027
+ const localVarAxiosArgs = await localVarAxiosParamCreator.activityHeatmap(days, options);
4028
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4029
+ const localVarOperationServerBasePath = operationServerMap['AdminDashboardApi.activityHeatmap']?.[localVarOperationServerIndex]?.url;
4030
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4031
+ },
4032
+ /**
4033
+ * Top countries by distinct connection volume over the window, with the VPN/proxy-flagged subset.
4034
+ * @summary Connections by country
4035
+ * @param {number} [days] Trailing window in days
4036
+ * @param {number} [limit] Max countries to return
4037
+ * @param {*} [options] Override http request option.
4038
+ * @throws {RequiredError}
4039
+ */
4040
+ async connectionsByCountry(days?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AdminDashboardCountryCount>>> {
4041
+ const localVarAxiosArgs = await localVarAxiosParamCreator.connectionsByCountry(days, limit, options);
4042
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4043
+ const localVarOperationServerBasePath = operationServerMap['AdminDashboardApi.connectionsByCountry']?.[localVarOperationServerIndex]?.url;
4044
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4045
+ },
4046
+ /**
4047
+ * Per-day session count, distinct active players, and mean completed-session length over the requested window.
4048
+ * @summary Daily session activity
4049
+ * @param {number} [days] Trailing window in days
4050
+ * @param {*} [options] Override http request option.
4051
+ * @throws {RequiredError}
4052
+ */
4053
+ async dailySessions(days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AdminDashboardDailySessions>>> {
4054
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dailySessions(days, options);
4055
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4056
+ const localVarOperationServerBasePath = operationServerMap['AdminDashboardApi.dailySessions']?.[localVarOperationServerIndex]?.url;
4057
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4058
+ },
4059
+ /**
4060
+ * Returns aggregate counts for clients, connections, and players in the system.
4061
+ * @summary Get dashboard statistics
4062
+ * @param {*} [options] Override http request option.
4063
+ * @throws {RequiredError}
4064
+ */
4065
+ async dashboardStats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminGetDashboardStats>> {
4066
+ const localVarAxiosArgs = await localVarAxiosParamCreator.dashboardStats(options);
4067
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4068
+ const localVarOperationServerBasePath = operationServerMap['AdminDashboardApi.dashboardStats']?.[localVarOperationServerIndex]?.url;
4069
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4070
+ },
4071
+ /**
4072
+ * At-a-glance counts: players online now, new players today, DAU, 7-day mean/median session length, active bans/mutes, and open reports.
4073
+ * @summary Dashboard overview tiles
4074
+ * @param {*} [options] Override http request option.
4075
+ * @throws {RequiredError}
4076
+ */
4077
+ async overview(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminDashboardOverview>> {
4078
+ const localVarAxiosArgs = await localVarAxiosParamCreator.overview(options);
4079
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4080
+ const localVarOperationServerBasePath = operationServerMap['AdminDashboardApi.overview']?.[localVarOperationServerIndex]?.url;
4081
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4082
+ },
4083
+ /**
4084
+ * Daily punishment issuance over the window, split by type (BAN/MUTE/KICK/WARNING) — feeds the stacked chart.
4085
+ * @summary Punishments by type over time
4086
+ * @param {number} [days] Trailing window in days
4087
+ * @param {*} [options] Override http request option.
4088
+ * @throws {RequiredError}
4089
+ */
4090
+ async punishmentsByType(days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AdminDashboardPunishmentDaily>>> {
4091
+ const localVarAxiosArgs = await localVarAxiosParamCreator.punishmentsByType(days, options);
4092
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4093
+ const localVarOperationServerBasePath = operationServerMap['AdminDashboardApi.punishmentsByType']?.[localVarOperationServerIndex]?.url;
4094
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4095
+ },
4096
+ /**
4097
+ * Open backlog, reports resolved in the window, mean resolution time, and a category breakdown.
4098
+ * @summary Report backlog & resolution speed
4099
+ * @param {number} [days] Trailing window in days
4100
+ * @param {*} [options] Override http request option.
4101
+ * @throws {RequiredError}
4102
+ */
4103
+ async reportSummary(days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminDashboardReportSummary>> {
4104
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reportSummary(days, options);
4105
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4106
+ const localVarOperationServerBasePath = operationServerMap['AdminDashboardApi.reportSummary']?.[localVarOperationServerIndex]?.url;
4107
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4108
+ },
4109
+ /**
4110
+ * Online server count and current player load per region/game-type.
4111
+ * @summary Servers & players by region
4112
+ * @param {*} [options] Override http request option.
4113
+ * @throws {RequiredError}
4114
+ */
4115
+ async serverRegions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AdminDashboardServerRegion>>> {
4116
+ const localVarAxiosArgs = await localVarAxiosParamCreator.serverRegions(options);
4117
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4118
+ const localVarOperationServerBasePath = operationServerMap['AdminDashboardApi.serverRegions']?.[localVarOperationServerIndex]?.url;
4119
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4120
+ },
4121
+ /**
4122
+ * Moderators ranked by audit-log action count over the window.
4123
+ * @summary Top moderators by activity
4124
+ * @param {number} [days] Trailing window in days
4125
+ * @param {number} [limit] Max moderators to return
4126
+ * @param {*} [options] Override http request option.
4127
+ * @throws {RequiredError}
4128
+ */
4129
+ async topModerators(days?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AdminDashboardModeratorActivity>>> {
4130
+ const localVarAxiosArgs = await localVarAxiosParamCreator.topModerators(days, limit, options);
4131
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4132
+ const localVarOperationServerBasePath = operationServerMap['AdminDashboardApi.topModerators']?.[localVarOperationServerIndex]?.url;
4133
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4134
+ },
4135
+ /**
4136
+ * Histogram of every player\'s latest trust factor, bucketed into ten 10-point bins.
4137
+ * @summary Trust-factor distribution
4138
+ * @param {*} [options] Override http request option.
4139
+ * @throws {RequiredError}
4140
+ */
4141
+ async trustDistribution(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AdminDashboardTrustBucket>>> {
4142
+ const localVarAxiosArgs = await localVarAxiosParamCreator.trustDistribution(options);
4143
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4144
+ const localVarOperationServerBasePath = operationServerMap['AdminDashboardApi.trustDistribution']?.[localVarOperationServerIndex]?.url;
4145
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4146
+ },
4147
+ }
4148
+ };
4149
+
4150
+ /**
4151
+ * AdminDashboardApi - factory interface
4152
+ */
4153
+ export const AdminDashboardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4154
+ const localVarFp = AdminDashboardApiFp(configuration)
4155
+ return {
4156
+ /**
4157
+ * Connection volume bucketed by UTC day-of-week (0=Sunday) and hour-of-day (0–23) over the window.
4158
+ * @summary Connection activity heatmap
4159
+ * @param {number} [days] Trailing window in days
4160
+ * @param {*} [options] Override http request option.
4161
+ * @throws {RequiredError}
4162
+ */
4163
+ activityHeatmap(days?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<AdminDashboardActivityCell>> {
4164
+ return localVarFp.activityHeatmap(days, options).then((request) => request(axios, basePath));
4165
+ },
4166
+ /**
4167
+ * Top countries by distinct connection volume over the window, with the VPN/proxy-flagged subset.
4168
+ * @summary Connections by country
4169
+ * @param {number} [days] Trailing window in days
4170
+ * @param {number} [limit] Max countries to return
4171
+ * @param {*} [options] Override http request option.
4172
+ * @throws {RequiredError}
4173
+ */
4174
+ connectionsByCountry(days?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<AdminDashboardCountryCount>> {
4175
+ return localVarFp.connectionsByCountry(days, limit, options).then((request) => request(axios, basePath));
4176
+ },
4177
+ /**
4178
+ * Per-day session count, distinct active players, and mean completed-session length over the requested window.
4179
+ * @summary Daily session activity
4180
+ * @param {number} [days] Trailing window in days
4181
+ * @param {*} [options] Override http request option.
4182
+ * @throws {RequiredError}
4183
+ */
4184
+ dailySessions(days?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<AdminDashboardDailySessions>> {
4185
+ return localVarFp.dailySessions(days, options).then((request) => request(axios, basePath));
4186
+ },
4187
+ /**
4188
+ * Returns aggregate counts for clients, connections, and players in the system.
4189
+ * @summary Get dashboard statistics
4190
+ * @param {*} [options] Override http request option.
4191
+ * @throws {RequiredError}
4192
+ */
4193
+ dashboardStats(options?: RawAxiosRequestConfig): AxiosPromise<AdminGetDashboardStats> {
4194
+ return localVarFp.dashboardStats(options).then((request) => request(axios, basePath));
4195
+ },
4196
+ /**
4197
+ * At-a-glance counts: players online now, new players today, DAU, 7-day mean/median session length, active bans/mutes, and open reports.
4198
+ * @summary Dashboard overview tiles
4199
+ * @param {*} [options] Override http request option.
4200
+ * @throws {RequiredError}
4201
+ */
4202
+ overview(options?: RawAxiosRequestConfig): AxiosPromise<AdminDashboardOverview> {
4203
+ return localVarFp.overview(options).then((request) => request(axios, basePath));
4204
+ },
4205
+ /**
4206
+ * Daily punishment issuance over the window, split by type (BAN/MUTE/KICK/WARNING) — feeds the stacked chart.
4207
+ * @summary Punishments by type over time
4208
+ * @param {number} [days] Trailing window in days
4209
+ * @param {*} [options] Override http request option.
4210
+ * @throws {RequiredError}
4211
+ */
4212
+ punishmentsByType(days?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<AdminDashboardPunishmentDaily>> {
4213
+ return localVarFp.punishmentsByType(days, options).then((request) => request(axios, basePath));
4214
+ },
4215
+ /**
4216
+ * Open backlog, reports resolved in the window, mean resolution time, and a category breakdown.
4217
+ * @summary Report backlog & resolution speed
4218
+ * @param {number} [days] Trailing window in days
4219
+ * @param {*} [options] Override http request option.
4220
+ * @throws {RequiredError}
4221
+ */
4222
+ reportSummary(days?: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminDashboardReportSummary> {
4223
+ return localVarFp.reportSummary(days, options).then((request) => request(axios, basePath));
4224
+ },
4225
+ /**
4226
+ * Online server count and current player load per region/game-type.
4227
+ * @summary Servers & players by region
4228
+ * @param {*} [options] Override http request option.
4229
+ * @throws {RequiredError}
4230
+ */
4231
+ serverRegions(options?: RawAxiosRequestConfig): AxiosPromise<Array<AdminDashboardServerRegion>> {
4232
+ return localVarFp.serverRegions(options).then((request) => request(axios, basePath));
4233
+ },
4234
+ /**
4235
+ * Moderators ranked by audit-log action count over the window.
4236
+ * @summary Top moderators by activity
4237
+ * @param {number} [days] Trailing window in days
4238
+ * @param {number} [limit] Max moderators to return
4239
+ * @param {*} [options] Override http request option.
4240
+ * @throws {RequiredError}
4241
+ */
4242
+ topModerators(days?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<AdminDashboardModeratorActivity>> {
4243
+ return localVarFp.topModerators(days, limit, options).then((request) => request(axios, basePath));
4244
+ },
4245
+ /**
4246
+ * Histogram of every player\'s latest trust factor, bucketed into ten 10-point bins.
4247
+ * @summary Trust-factor distribution
4248
+ * @param {*} [options] Override http request option.
4249
+ * @throws {RequiredError}
4250
+ */
4251
+ trustDistribution(options?: RawAxiosRequestConfig): AxiosPromise<Array<AdminDashboardTrustBucket>> {
4252
+ return localVarFp.trustDistribution(options).then((request) => request(axios, basePath));
4253
+ },
4254
+ };
4255
+ };
4256
+
4257
+ /**
4258
+ * AdminDashboardApi - object-oriented interface
4259
+ */
4260
+ export class AdminDashboardApi extends BaseAPI {
4261
+ /**
4262
+ * Connection volume bucketed by UTC day-of-week (0=Sunday) and hour-of-day (0–23) over the window.
4263
+ * @summary Connection activity heatmap
4264
+ * @param {number} [days] Trailing window in days
4265
+ * @param {*} [options] Override http request option.
4266
+ * @throws {RequiredError}
4267
+ */
4268
+ public activityHeatmap(days?: number, options?: RawAxiosRequestConfig) {
4269
+ return AdminDashboardApiFp(this.configuration).activityHeatmap(days, options).then((request) => request(this.axios, this.basePath));
4270
+ }
4271
+
4272
+ /**
4273
+ * Top countries by distinct connection volume over the window, with the VPN/proxy-flagged subset.
4274
+ * @summary Connections by country
4275
+ * @param {number} [days] Trailing window in days
4276
+ * @param {number} [limit] Max countries to return
4277
+ * @param {*} [options] Override http request option.
4278
+ * @throws {RequiredError}
4279
+ */
4280
+ public connectionsByCountry(days?: number, limit?: number, options?: RawAxiosRequestConfig) {
4281
+ return AdminDashboardApiFp(this.configuration).connectionsByCountry(days, limit, options).then((request) => request(this.axios, this.basePath));
4282
+ }
4283
+
4284
+ /**
4285
+ * Per-day session count, distinct active players, and mean completed-session length over the requested window.
4286
+ * @summary Daily session activity
4287
+ * @param {number} [days] Trailing window in days
4288
+ * @param {*} [options] Override http request option.
4289
+ * @throws {RequiredError}
4290
+ */
4291
+ public dailySessions(days?: number, options?: RawAxiosRequestConfig) {
4292
+ return AdminDashboardApiFp(this.configuration).dailySessions(days, options).then((request) => request(this.axios, this.basePath));
4293
+ }
4294
+
4295
+ /**
4296
+ * Returns aggregate counts for clients, connections, and players in the system.
4297
+ * @summary Get dashboard statistics
4298
+ * @param {*} [options] Override http request option.
4299
+ * @throws {RequiredError}
4300
+ */
4301
+ public dashboardStats(options?: RawAxiosRequestConfig) {
4302
+ return AdminDashboardApiFp(this.configuration).dashboardStats(options).then((request) => request(this.axios, this.basePath));
4303
+ }
4304
+
4305
+ /**
4306
+ * At-a-glance counts: players online now, new players today, DAU, 7-day mean/median session length, active bans/mutes, and open reports.
4307
+ * @summary Dashboard overview tiles
4308
+ * @param {*} [options] Override http request option.
4309
+ * @throws {RequiredError}
4310
+ */
4311
+ public overview(options?: RawAxiosRequestConfig) {
4312
+ return AdminDashboardApiFp(this.configuration).overview(options).then((request) => request(this.axios, this.basePath));
4313
+ }
4314
+
4315
+ /**
4316
+ * Daily punishment issuance over the window, split by type (BAN/MUTE/KICK/WARNING) — feeds the stacked chart.
4317
+ * @summary Punishments by type over time
4318
+ * @param {number} [days] Trailing window in days
4319
+ * @param {*} [options] Override http request option.
4320
+ * @throws {RequiredError}
4321
+ */
4322
+ public punishmentsByType(days?: number, options?: RawAxiosRequestConfig) {
4323
+ return AdminDashboardApiFp(this.configuration).punishmentsByType(days, options).then((request) => request(this.axios, this.basePath));
4324
+ }
4325
+
4326
+ /**
4327
+ * Open backlog, reports resolved in the window, mean resolution time, and a category breakdown.
4328
+ * @summary Report backlog & resolution speed
4329
+ * @param {number} [days] Trailing window in days
4330
+ * @param {*} [options] Override http request option.
4331
+ * @throws {RequiredError}
4332
+ */
4333
+ public reportSummary(days?: number, options?: RawAxiosRequestConfig) {
4334
+ return AdminDashboardApiFp(this.configuration).reportSummary(days, options).then((request) => request(this.axios, this.basePath));
4335
+ }
4336
+
4337
+ /**
4338
+ * Online server count and current player load per region/game-type.
4339
+ * @summary Servers & players by region
4340
+ * @param {*} [options] Override http request option.
4341
+ * @throws {RequiredError}
4342
+ */
4343
+ public serverRegions(options?: RawAxiosRequestConfig) {
4344
+ return AdminDashboardApiFp(this.configuration).serverRegions(options).then((request) => request(this.axios, this.basePath));
4345
+ }
4346
+
4347
+ /**
4348
+ * Moderators ranked by audit-log action count over the window.
4349
+ * @summary Top moderators by activity
4350
+ * @param {number} [days] Trailing window in days
4351
+ * @param {number} [limit] Max moderators to return
4352
+ * @param {*} [options] Override http request option.
4353
+ * @throws {RequiredError}
4354
+ */
4355
+ public topModerators(days?: number, limit?: number, options?: RawAxiosRequestConfig) {
4356
+ return AdminDashboardApiFp(this.configuration).topModerators(days, limit, options).then((request) => request(this.axios, this.basePath));
4357
+ }
4358
+
4359
+ /**
4360
+ * Histogram of every player\'s latest trust factor, bucketed into ten 10-point bins.
4361
+ * @summary Trust-factor distribution
4362
+ * @param {*} [options] Override http request option.
4363
+ * @throws {RequiredError}
4364
+ */
4365
+ public trustDistribution(options?: RawAxiosRequestConfig) {
4366
+ return AdminDashboardApiFp(this.configuration).trustDistribution(options).then((request) => request(this.axios, this.basePath));
3528
4367
  }
3529
4368
  }
3530
4369