@globalscoutme/api-client 1.2.7 → 1.4.0

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/index.ts CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  export {
4
4
  Achievements,
5
+ Admin,
5
6
  Auth,
6
7
  Billing,
7
8
  Body,
@@ -31,7 +32,36 @@ export {
31
32
  Videos,
32
33
  } from './sdk.gen.js';
33
34
  export type {
35
+ AccessCodeBadRequestResponseDto,
36
+ AccessCodeConflictResponseDto,
34
37
  AchievementCatalogDto,
38
+ AdminAccessCodeDto,
39
+ AdminAccessCodeListResultDto,
40
+ AdminAccessCodePlanDto,
41
+ AdminAccessCodeRedemptionDto,
42
+ AdminAccessCodeRedemptionListResultDto,
43
+ AdminAccessGrantDto,
44
+ AdminAccountActionResponseDto,
45
+ AdminActivityBucketDto,
46
+ AdminCreateAccessCodeDto,
47
+ AdminCreateAccessCodeResponseDto,
48
+ AdminDashboardMetricsDto,
49
+ AdminDashboardResponseDto,
50
+ AdminGrantAccessDto,
51
+ AdminKycListItemDto,
52
+ AdminKycListResultDto,
53
+ AdminMetricDto,
54
+ AdminPasswordResetResponseDto,
55
+ AdminRevokeAccessGrantDto,
56
+ AdminSetAccessCodeStateDto,
57
+ AdminSubscriptionHealthDto,
58
+ AdminSubscriptionListItemDto,
59
+ AdminSubscriptionListResultDto,
60
+ AdminUserAccessDto,
61
+ AdminUserActionRequestDto,
62
+ AdminUserDetailDto,
63
+ AdminUserListItemDto,
64
+ AdminUserListResultDto,
35
65
  AiReportClipDto,
36
66
  AiReportClipTargetDto,
37
67
  AiReportGsiBodySourceInputDto,
@@ -141,6 +171,35 @@ export type {
141
171
  GetApiAchievementsMeResponses,
142
172
  GetApiAchievementsResponse,
143
173
  GetApiAchievementsResponses,
174
+ GetApiAdminAccessCodesByIdRedemptionsData,
175
+ GetApiAdminAccessCodesByIdRedemptionsResponse,
176
+ GetApiAdminAccessCodesByIdRedemptionsResponses,
177
+ GetApiAdminAccessCodesData,
178
+ GetApiAdminAccessCodesPlansData,
179
+ GetApiAdminAccessCodesPlansResponse,
180
+ GetApiAdminAccessCodesPlansResponses,
181
+ GetApiAdminAccessCodesResponse,
182
+ GetApiAdminAccessCodesResponses,
183
+ GetApiAdminDashboardData,
184
+ GetApiAdminDashboardErrors,
185
+ GetApiAdminDashboardResponse,
186
+ GetApiAdminDashboardResponses,
187
+ GetApiAdminKycData,
188
+ GetApiAdminKycResponse,
189
+ GetApiAdminKycResponses,
190
+ GetApiAdminSubscriptionsData,
191
+ GetApiAdminSubscriptionsResponse,
192
+ GetApiAdminSubscriptionsResponses,
193
+ GetApiAdminUsersByIdAccessData,
194
+ GetApiAdminUsersByIdAccessResponse,
195
+ GetApiAdminUsersByIdAccessResponses,
196
+ GetApiAdminUsersByIdData,
197
+ GetApiAdminUsersByIdErrors,
198
+ GetApiAdminUsersByIdResponse,
199
+ GetApiAdminUsersByIdResponses,
200
+ GetApiAdminUsersData,
201
+ GetApiAdminUsersResponse,
202
+ GetApiAdminUsersResponses,
144
203
  GetApiAuthMeData,
145
204
  GetApiAuthMeErrors,
146
205
  GetApiAuthMeResponse,
@@ -213,6 +272,7 @@ export type {
213
272
  GetApiIndexCountriesResponse,
214
273
  GetApiIndexCountriesResponses,
215
274
  GetApiInvitationsData,
275
+ GetApiInvitationsErrors,
216
276
  GetApiInvitationsResponse,
217
277
  GetApiInvitationsResponses,
218
278
  GetApiKycMobileReturnData,
@@ -352,6 +412,9 @@ export type {
352
412
  OkDto,
353
413
  OrganizationResponseDto,
354
414
  PaginatedTrainingContentDto,
415
+ PatchApiAdminAccessCodesByIdData,
416
+ PatchApiAdminAccessCodesByIdResponse,
417
+ PatchApiAdminAccessCodesByIdResponses,
355
418
  PatchApiClubsMeByIdData,
356
419
  PatchApiClubsMeByIdErrors,
357
420
  PatchApiClubsMeByIdResponse,
@@ -393,7 +456,29 @@ export type {
393
456
  PlayerVideoDto,
394
457
  PlayUrlResponseDto,
395
458
  PortalResultDto,
459
+ PostApiAdminAccessCodesData,
460
+ PostApiAdminAccessCodesResponse,
461
+ PostApiAdminAccessCodesResponses,
462
+ PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeData,
463
+ PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeResponses,
464
+ PostApiAdminUsersByIdAccessGrantsData,
465
+ PostApiAdminUsersByIdAccessGrantsResponse,
466
+ PostApiAdminUsersByIdAccessGrantsResponses,
467
+ PostApiAdminUsersByIdDeactivateData,
468
+ PostApiAdminUsersByIdDeactivateResponse,
469
+ PostApiAdminUsersByIdDeactivateResponses,
470
+ PostApiAdminUsersByIdReactivateData,
471
+ PostApiAdminUsersByIdReactivateResponse,
472
+ PostApiAdminUsersByIdReactivateResponses,
473
+ PostApiAdminUsersByIdResetPasswordData,
474
+ PostApiAdminUsersByIdResetPasswordResponse,
475
+ PostApiAdminUsersByIdResetPasswordResponses,
476
+ PostApiAdminUsersByIdSuspendData,
477
+ PostApiAdminUsersByIdSuspendResponse,
478
+ PostApiAdminUsersByIdSuspendResponses,
396
479
  PostApiBillingAccessCodesRedeemData,
480
+ PostApiBillingAccessCodesRedeemError,
481
+ PostApiBillingAccessCodesRedeemErrors,
397
482
  PostApiBillingAccessCodesRedeemResponse,
398
483
  PostApiBillingAccessCodesRedeemResponses,
399
484
  PostApiBillingAppleSyncPurchaseData,
@@ -442,6 +527,7 @@ export type {
442
527
  PostApiGlobalChatMessagesResponse,
443
528
  PostApiGlobalChatMessagesResponses,
444
529
  PostApiInvitationsAcceptData,
530
+ PostApiInvitationsAcceptErrors,
445
531
  PostApiInvitationsAcceptResponse,
446
532
  PostApiInvitationsAcceptResponses,
447
533
  PostApiInvitationsByIdResendData,
@@ -555,6 +641,7 @@ export type {
555
641
  PutApiProfileMeResponses,
556
642
  QualitySummaryDto,
557
643
  RedeemAccessCodeDto,
644
+ RedeemAccessCodeResponseDto,
558
645
  RegisterAgentDto,
559
646
  RegisterAgentResponseDto,
560
647
  RegisterClubDto,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalscoutme/api-client",
3
- "version": "1.2.7",
3
+ "version": "1.4.0",
4
4
  "description": "GlobalScoutMe API client (generated)",
5
5
  "author": "GlobalScoutMe",
6
6
  "license": "UNLICENSED",
package/sdk.gen.ts CHANGED
@@ -36,6 +36,26 @@ import type {
36
36
  GetApiAchievementsMeErrors,
37
37
  GetApiAchievementsMeResponses,
38
38
  GetApiAchievementsResponses,
39
+ GetApiAdminAccessCodesByIdRedemptionsData,
40
+ GetApiAdminAccessCodesByIdRedemptionsResponses,
41
+ GetApiAdminAccessCodesData,
42
+ GetApiAdminAccessCodesPlansData,
43
+ GetApiAdminAccessCodesPlansResponses,
44
+ GetApiAdminAccessCodesResponses,
45
+ GetApiAdminDashboardData,
46
+ GetApiAdminDashboardErrors,
47
+ GetApiAdminDashboardResponses,
48
+ GetApiAdminKycData,
49
+ GetApiAdminKycResponses,
50
+ GetApiAdminSubscriptionsData,
51
+ GetApiAdminSubscriptionsResponses,
52
+ GetApiAdminUsersByIdAccessData,
53
+ GetApiAdminUsersByIdAccessResponses,
54
+ GetApiAdminUsersByIdData,
55
+ GetApiAdminUsersByIdErrors,
56
+ GetApiAdminUsersByIdResponses,
57
+ GetApiAdminUsersData,
58
+ GetApiAdminUsersResponses,
39
59
  GetApiAuthMeData,
40
60
  GetApiAuthMeErrors,
41
61
  GetApiAuthMeResponses,
@@ -88,6 +108,7 @@ import type {
88
108
  GetApiIndexCountriesErrors,
89
109
  GetApiIndexCountriesResponses,
90
110
  GetApiInvitationsData,
111
+ GetApiInvitationsErrors,
91
112
  GetApiInvitationsResponses,
92
113
  GetApiKycMobileReturnData,
93
114
  GetApiKycMobileReturnResponses,
@@ -166,6 +187,8 @@ import type {
166
187
  GetApiVideosMeData,
167
188
  GetApiVideosMeErrors,
168
189
  GetApiVideosMeResponses,
190
+ PatchApiAdminAccessCodesByIdData,
191
+ PatchApiAdminAccessCodesByIdResponses,
169
192
  PatchApiClubsMeByIdData,
170
193
  PatchApiClubsMeByIdErrors,
171
194
  PatchApiClubsMeByIdResponses,
@@ -184,7 +207,22 @@ import type {
184
207
  PatchApiTrainingAdminContentByIdData,
185
208
  PatchApiTrainingAdminContentByIdErrors,
186
209
  PatchApiTrainingAdminContentByIdResponses,
210
+ PostApiAdminAccessCodesData,
211
+ PostApiAdminAccessCodesResponses,
212
+ PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeData,
213
+ PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeResponses,
214
+ PostApiAdminUsersByIdAccessGrantsData,
215
+ PostApiAdminUsersByIdAccessGrantsResponses,
216
+ PostApiAdminUsersByIdDeactivateData,
217
+ PostApiAdminUsersByIdDeactivateResponses,
218
+ PostApiAdminUsersByIdReactivateData,
219
+ PostApiAdminUsersByIdReactivateResponses,
220
+ PostApiAdminUsersByIdResetPasswordData,
221
+ PostApiAdminUsersByIdResetPasswordResponses,
222
+ PostApiAdminUsersByIdSuspendData,
223
+ PostApiAdminUsersByIdSuspendResponses,
187
224
  PostApiBillingAccessCodesRedeemData,
225
+ PostApiBillingAccessCodesRedeemErrors,
188
226
  PostApiBillingAccessCodesRedeemResponses,
189
227
  PostApiBillingAppleSyncPurchaseData,
190
228
  PostApiBillingAppleSyncPurchaseResponses,
@@ -221,6 +259,7 @@ import type {
221
259
  PostApiGlobalChatMessagesData,
222
260
  PostApiGlobalChatMessagesResponses,
223
261
  PostApiInvitationsAcceptData,
262
+ PostApiInvitationsAcceptErrors,
224
263
  PostApiInvitationsAcceptResponses,
225
264
  PostApiInvitationsByIdResendData,
226
265
  PostApiInvitationsByIdResendErrors,
@@ -573,7 +612,7 @@ export class Billing extends HeyApiClient {
573
612
  ) {
574
613
  return (options.client ?? this.client).post<
575
614
  PostApiBillingAccessCodesRedeemResponses,
576
- unknown,
615
+ PostApiBillingAccessCodesRedeemErrors,
577
616
  ThrowOnError
578
617
  >({
579
618
  url: '/api/billing/access-codes/redeem',
@@ -1202,10 +1241,11 @@ export class Invitations extends HeyApiClient {
1202
1241
  public listInvitations<ThrowOnError extends boolean = false>(
1203
1242
  options?: Options<GetApiInvitationsData, ThrowOnError>
1204
1243
  ) {
1205
- return (options?.client ?? this.client).get<GetApiInvitationsResponses, unknown, ThrowOnError>({
1206
- url: '/api/invitations',
1207
- ...options,
1208
- });
1244
+ return (options?.client ?? this.client).get<
1245
+ GetApiInvitationsResponses,
1246
+ GetApiInvitationsErrors,
1247
+ ThrowOnError
1248
+ >({ url: '/api/invitations', ...options });
1209
1249
  }
1210
1250
 
1211
1251
  public sendInvitation<ThrowOnError extends boolean = false>(
@@ -1253,7 +1293,7 @@ export class Invitations extends HeyApiClient {
1253
1293
  ) {
1254
1294
  return (options?.client ?? this.client).post<
1255
1295
  PostApiInvitationsAcceptResponses,
1256
- unknown,
1296
+ PostApiInvitationsAcceptErrors,
1257
1297
  ThrowOnError
1258
1298
  >({ url: '/api/invitations/accept', ...options });
1259
1299
  }
@@ -1882,6 +1922,283 @@ export class GlobalChat extends HeyApiClient {
1882
1922
  }
1883
1923
  }
1884
1924
 
1925
+ export class Admin extends HeyApiClient {
1926
+ /**
1927
+ * Get Super Admin platform metrics
1928
+ */
1929
+ public getAdminDashboard<ThrowOnError extends boolean = false>(
1930
+ options?: Options<GetApiAdminDashboardData, ThrowOnError>
1931
+ ) {
1932
+ return (options?.client ?? this.client).get<
1933
+ GetApiAdminDashboardResponses,
1934
+ GetApiAdminDashboardErrors,
1935
+ ThrowOnError
1936
+ >({ url: '/api/admin/dashboard', ...options });
1937
+ }
1938
+
1939
+ /**
1940
+ * List registered users for Super Admin
1941
+ */
1942
+ public getAdminUsers<ThrowOnError extends boolean = false>(
1943
+ options?: Options<GetApiAdminUsersData, ThrowOnError>
1944
+ ) {
1945
+ return (options?.client ?? this.client).get<GetApiAdminUsersResponses, unknown, ThrowOnError>({
1946
+ url: '/api/admin/users',
1947
+ ...options,
1948
+ });
1949
+ }
1950
+
1951
+ /**
1952
+ * Get registered user detail
1953
+ */
1954
+ public getAdminUserById<ThrowOnError extends boolean = false>(
1955
+ options: Options<GetApiAdminUsersByIdData, ThrowOnError>
1956
+ ) {
1957
+ return (options.client ?? this.client).get<
1958
+ GetApiAdminUsersByIdResponses,
1959
+ GetApiAdminUsersByIdErrors,
1960
+ ThrowOnError
1961
+ >({ url: '/api/admin/users/{id}', ...options });
1962
+ }
1963
+
1964
+ /**
1965
+ * List platform subscriptions
1966
+ */
1967
+ public getAdminSubscriptions<ThrowOnError extends boolean = false>(
1968
+ options?: Options<GetApiAdminSubscriptionsData, ThrowOnError>
1969
+ ) {
1970
+ return (options?.client ?? this.client).get<
1971
+ GetApiAdminSubscriptionsResponses,
1972
+ unknown,
1973
+ ThrowOnError
1974
+ >({ url: '/api/admin/subscriptions', ...options });
1975
+ }
1976
+
1977
+ /**
1978
+ * List latest KYC verifications
1979
+ */
1980
+ public getAdminKycQueue<ThrowOnError extends boolean = false>(
1981
+ options?: Options<GetApiAdminKycData, ThrowOnError>
1982
+ ) {
1983
+ return (options?.client ?? this.client).get<GetApiAdminKycResponses, unknown, ThrowOnError>({
1984
+ url: '/api/admin/kyc',
1985
+ ...options,
1986
+ });
1987
+ }
1988
+
1989
+ /**
1990
+ * List plans available to access codes
1991
+ */
1992
+ public getAdminAccessCodePlans<ThrowOnError extends boolean = false>(
1993
+ options?: Options<GetApiAdminAccessCodesPlansData, ThrowOnError>
1994
+ ) {
1995
+ return (options?.client ?? this.client).get<
1996
+ GetApiAdminAccessCodesPlansResponses,
1997
+ unknown,
1998
+ ThrowOnError
1999
+ >({ url: '/api/admin/access-codes/plans', ...options });
2000
+ }
2001
+
2002
+ /**
2003
+ * List access-code campaigns
2004
+ */
2005
+ public getAdminAccessCodes<ThrowOnError extends boolean = false>(
2006
+ options?: Options<GetApiAdminAccessCodesData, ThrowOnError>
2007
+ ) {
2008
+ return (options?.client ?? this.client).get<
2009
+ GetApiAdminAccessCodesResponses,
2010
+ unknown,
2011
+ ThrowOnError
2012
+ >({ url: '/api/admin/access-codes', ...options });
2013
+ }
2014
+
2015
+ /**
2016
+ * Create an access-code campaign
2017
+ */
2018
+ public createAdminAccessCode<ThrowOnError extends boolean = false>(
2019
+ options: Options<PostApiAdminAccessCodesData, ThrowOnError>
2020
+ ) {
2021
+ return (options.client ?? this.client).post<
2022
+ PostApiAdminAccessCodesResponses,
2023
+ unknown,
2024
+ ThrowOnError
2025
+ >({
2026
+ url: '/api/admin/access-codes',
2027
+ ...options,
2028
+ headers: {
2029
+ 'Content-Type': 'application/json',
2030
+ ...options.headers,
2031
+ },
2032
+ });
2033
+ }
2034
+
2035
+ /**
2036
+ * Activate or deactivate an access code
2037
+ */
2038
+ public setAdminAccessCodeState<ThrowOnError extends boolean = false>(
2039
+ options: Options<PatchApiAdminAccessCodesByIdData, ThrowOnError>
2040
+ ) {
2041
+ return (options.client ?? this.client).patch<
2042
+ PatchApiAdminAccessCodesByIdResponses,
2043
+ unknown,
2044
+ ThrowOnError
2045
+ >({
2046
+ url: '/api/admin/access-codes/{id}',
2047
+ ...options,
2048
+ headers: {
2049
+ 'Content-Type': 'application/json',
2050
+ ...options.headers,
2051
+ },
2052
+ });
2053
+ }
2054
+
2055
+ /**
2056
+ * List access-code redemptions
2057
+ */
2058
+ public getAdminAccessCodeRedemptions<ThrowOnError extends boolean = false>(
2059
+ options: Options<GetApiAdminAccessCodesByIdRedemptionsData, ThrowOnError>
2060
+ ) {
2061
+ return (options.client ?? this.client).get<
2062
+ GetApiAdminAccessCodesByIdRedemptionsResponses,
2063
+ unknown,
2064
+ ThrowOnError
2065
+ >({ url: '/api/admin/access-codes/{id}/redemptions', ...options });
2066
+ }
2067
+
2068
+ /**
2069
+ * Get effective billing access for a user
2070
+ */
2071
+ public getAdminUserAccess<ThrowOnError extends boolean = false>(
2072
+ options: Options<GetApiAdminUsersByIdAccessData, ThrowOnError>
2073
+ ) {
2074
+ return (options.client ?? this.client).get<
2075
+ GetApiAdminUsersByIdAccessResponses,
2076
+ unknown,
2077
+ ThrowOnError
2078
+ >({ url: '/api/admin/users/{id}/access', ...options });
2079
+ }
2080
+
2081
+ /**
2082
+ * Grant temporary manual access to a user
2083
+ */
2084
+ public grantAdminUserAccess<ThrowOnError extends boolean = false>(
2085
+ options: Options<PostApiAdminUsersByIdAccessGrantsData, ThrowOnError>
2086
+ ) {
2087
+ return (options.client ?? this.client).post<
2088
+ PostApiAdminUsersByIdAccessGrantsResponses,
2089
+ unknown,
2090
+ ThrowOnError
2091
+ >({
2092
+ url: '/api/admin/users/{id}/access-grants',
2093
+ ...options,
2094
+ headers: {
2095
+ 'Content-Type': 'application/json',
2096
+ ...options.headers,
2097
+ },
2098
+ });
2099
+ }
2100
+
2101
+ /**
2102
+ * Revoke an Admin-managed access grant
2103
+ */
2104
+ public revokeAdminUserAccess<ThrowOnError extends boolean = false>(
2105
+ options: Options<PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeData, ThrowOnError>
2106
+ ) {
2107
+ return (options.client ?? this.client).post<
2108
+ PostApiAdminUsersByIdAccessGrantsByGrantIdRevokeResponses,
2109
+ unknown,
2110
+ ThrowOnError
2111
+ >({
2112
+ url: '/api/admin/users/{id}/access-grants/{grantId}/revoke',
2113
+ ...options,
2114
+ headers: {
2115
+ 'Content-Type': 'application/json',
2116
+ ...options.headers,
2117
+ },
2118
+ });
2119
+ }
2120
+
2121
+ /**
2122
+ * Suspend a user account
2123
+ */
2124
+ public suspendAdminUser<ThrowOnError extends boolean = false>(
2125
+ options: Options<PostApiAdminUsersByIdSuspendData, ThrowOnError>
2126
+ ) {
2127
+ return (options.client ?? this.client).post<
2128
+ PostApiAdminUsersByIdSuspendResponses,
2129
+ unknown,
2130
+ ThrowOnError
2131
+ >({
2132
+ url: '/api/admin/users/{id}/suspend',
2133
+ ...options,
2134
+ headers: {
2135
+ 'Content-Type': 'application/json',
2136
+ ...options.headers,
2137
+ },
2138
+ });
2139
+ }
2140
+
2141
+ /**
2142
+ * Reactivate a suspended account
2143
+ */
2144
+ public reactivateAdminUser<ThrowOnError extends boolean = false>(
2145
+ options: Options<PostApiAdminUsersByIdReactivateData, ThrowOnError>
2146
+ ) {
2147
+ return (options.client ?? this.client).post<
2148
+ PostApiAdminUsersByIdReactivateResponses,
2149
+ unknown,
2150
+ ThrowOnError
2151
+ >({
2152
+ url: '/api/admin/users/{id}/reactivate',
2153
+ ...options,
2154
+ headers: {
2155
+ 'Content-Type': 'application/json',
2156
+ ...options.headers,
2157
+ },
2158
+ });
2159
+ }
2160
+
2161
+ /**
2162
+ * Send a password recovery email
2163
+ */
2164
+ public resetAdminUserPassword<ThrowOnError extends boolean = false>(
2165
+ options: Options<PostApiAdminUsersByIdResetPasswordData, ThrowOnError>
2166
+ ) {
2167
+ return (options.client ?? this.client).post<
2168
+ PostApiAdminUsersByIdResetPasswordResponses,
2169
+ unknown,
2170
+ ThrowOnError
2171
+ >({
2172
+ url: '/api/admin/users/{id}/reset-password',
2173
+ ...options,
2174
+ headers: {
2175
+ 'Content-Type': 'application/json',
2176
+ ...options.headers,
2177
+ },
2178
+ });
2179
+ }
2180
+
2181
+ /**
2182
+ * Soft-deactivate a user account
2183
+ */
2184
+ public deactivateAdminUser<ThrowOnError extends boolean = false>(
2185
+ options: Options<PostApiAdminUsersByIdDeactivateData, ThrowOnError>
2186
+ ) {
2187
+ return (options.client ?? this.client).post<
2188
+ PostApiAdminUsersByIdDeactivateResponses,
2189
+ unknown,
2190
+ ThrowOnError
2191
+ >({
2192
+ url: '/api/admin/users/{id}/deactivate',
2193
+ ...options,
2194
+ headers: {
2195
+ 'Content-Type': 'application/json',
2196
+ ...options.headers,
2197
+ },
2198
+ });
2199
+ }
2200
+ }
2201
+
1885
2202
  export class GlobalScoutMeClient extends HeyApiClient {
1886
2203
  public static readonly __registry = new HeyApiRegistry<GlobalScoutMeClient>();
1887
2204
 
@@ -2019,4 +2336,9 @@ export class GlobalScoutMeClient extends HeyApiClient {
2019
2336
  get globalChat(): GlobalChat {
2020
2337
  return (this._globalChat ??= new GlobalChat({ client: this.client }));
2021
2338
  }
2339
+
2340
+ private _admin?: Admin;
2341
+ get admin(): Admin {
2342
+ return (this._admin ??= new Admin({ client: this.client }));
2343
+ }
2022
2344
  }