@medrunner/api-client 0.6.3 → 0.7.0-beta.10

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/dist/index.d.ts CHANGED
@@ -12,10 +12,13 @@ type Headers = {
12
12
  interface DbItem {
13
13
  id: string;
14
14
  created: string;
15
+ }
16
+
17
+ interface WritableDbItem extends DbItem {
15
18
  updated: string;
16
19
  }
17
20
 
18
- interface ApiToken extends DbItem {
21
+ interface ApiToken extends WritableDbItem {
19
22
  /**
20
23
  * The user who created the token
21
24
  * */
@@ -25,13 +28,43 @@ interface ApiToken extends DbItem {
25
28
  * */
26
29
  name: string;
27
30
  /**
28
- * The timestamp at which the token will expire in Unix seconds
31
+ * The date at which the token will expire
29
32
  * */
30
- expirationDate?: number;
33
+ expirationDate?: string;
31
34
  /**
32
35
  * When the token was last used to generate a new access token, iso-8601 timestamp
33
36
  * */
34
37
  lastUsed?: string;
38
+ /**
39
+ * Whether the token has expired
40
+ * */
41
+ expired: boolean;
42
+ /**
43
+ * The version of the token
44
+ * */
45
+ version: TokenVersion;
46
+ /**
47
+ * The scopes granted to the token
48
+ * */
49
+ scopes: TokenScope[];
50
+ }
51
+ declare enum TokenVersion {
52
+ UNKNOWN = -1,
53
+ LEGACY = 0,
54
+ V3 = 3,
55
+ V4 = 4
56
+ }
57
+ declare enum TokenScope {
58
+ CLIENT_READ = "client:read",
59
+ CLIENT_WRITE = "client:write",
60
+ CLIENT_PROFILE_READ = "client:profile:read",
61
+ CLIENT_PROFILE_WRITE = "client:profile:write",
62
+ CLIENT_ORGSETTINGS_READ = "client:orgsettings:read",
63
+ STAFF_READ = "staff:read",
64
+ STAFF_WRITE = "staff:write",
65
+ STAFF_PROFILE_READ = "staff:profile:read",
66
+ STAFF_PROFILE_WRITE = "staff:profile:write",
67
+ STAFF_ORGSETTINGS_READ = "staff:orgsettings:read"
35
68
  }
36
69
 
37
70
  interface ApiResponse<T = unknown> {
@@ -130,6 +163,10 @@ interface CreateApiTokenRequest {
130
163
  * Optional expiration date for the token
131
164
  * */
132
165
  expirationDate?: Date;
166
+ /**
167
+ * List of scopes for the token
168
+ * */
169
+ scopes: TokenScope[];
133
170
  }
134
171
 
135
172
  /**
@@ -177,7 +214,7 @@ declare class AuthEndpoint extends ApiEndpoint {
177
214
  deleteApiToken(id: string): Promise<ApiResponse>;
178
215
  }
179
216
 
180
- interface ChatMessage extends DbItem {
217
+ interface ChatMessage extends WritableDbItem {
181
218
  /**
182
219
  * The emergency associated with the chat message
183
220
  * */
@@ -186,10 +223,6 @@ interface ChatMessage extends DbItem {
186
223
  * The user id of the message sender
187
224
  * */
188
225
  senderId: string;
189
- /**
190
- * The timestamp at which the message was sent in Unix seconds
191
- * */
192
- messageSentTimestamp: number;
193
226
  /**
194
227
  * The contents of the message
195
228
  * */
@@ -250,8 +283,8 @@ declare class ChatMessageEndpoint extends ApiEndpoint {
250
283
  * Gets the specified amount of chat messages for a given emergency.
251
284
  *
252
285
  * @param emergencyId - The emergency for which to fetch the chat history
253
- * @param limit - The number of emergencies to get
254
- * @param paginationToken - The number to use for pagination
286
+ * @param limit - The number of emergencies to get, max 100
287
+ * @param paginationToken - The string to use for pagination
255
288
  * */
256
289
  getMessageHistory(emergencyId: string, limit: number, paginationToken?: string): Promise<ApiResponse<PaginatedResponse<ChatMessage>>>;
257
290
  /**
@@ -283,7 +316,6 @@ declare class ChatMessageEndpoint extends ApiEndpoint {
283
316
  interface ClientHistory extends DbItem {
284
317
  emergencyId: string;
285
318
  clientId: string;
286
- emergencyCreationTimestamp: string;
287
319
  }
288
320
 
289
321
  interface EmergencyStats {
@@ -296,19 +328,6 @@ interface EmergencyStats {
296
328
  canceled: number;
297
329
  }
298
330
 
299
- interface WritableDbItem extends DbItem {
300
- updated: string;
301
- }
302
-
303
- interface PromotionalCode extends WritableDbItem {
304
- redeemerId: string;
305
- type: CodeType;
306
- }
307
- declare enum CodeType {
308
- Unknown = 0,
309
- CitizenCon2954 = 1
310
- }
311
-
312
331
  interface Person extends WritableDbItem {
313
332
  discordId: string;
314
333
  rsiHandle?: string;
@@ -318,14 +337,6 @@ interface Person extends WritableDbItem {
318
337
  deactivationReason: AccountDeactivationReason;
319
338
  clientStats: ClientStats;
320
339
  activeEmergency?: string;
321
- /**
322
- * @deprecated Use {@link Person.clientPortalPreferencesBlob} instead.
323
- */
324
- clientPortalPreferences: Record<string, unknown>;
325
- /**
326
- * @deprecated Fetch this information via {@link client.getRedeemedCodes} instead.
327
- */
328
- redeemedCodes: RedeemedCode[];
329
340
  clientPortalPreferencesBlob?: string;
330
341
  allowAnonymousAlert: boolean;
331
342
  initialJoinDate?: string;
@@ -333,6 +344,7 @@ interface Person extends WritableDbItem {
333
344
  declare enum UserRoles {
334
345
  CLIENT = 1,
335
346
  STAFF = 2,
347
+ CEO = 262144,
336
348
  DEVELOPER = 524288,
337
349
  BOT = 1048576
338
350
  }
@@ -343,9 +355,7 @@ declare enum PersonType {
343
355
  }
344
356
  declare enum AccountDeactivationReason {
345
357
  NONE = 0,
346
- CLIENT_DRIVEN_DELETION = 1,
347
- TERMINATED = 2,
348
- BLOCKED = 3
358
+ CLIENT_DRIVEN_DELETION = 1
349
359
  }
350
360
  interface ClientStats {
351
361
  missions: EmergencyStats;
@@ -353,10 +363,6 @@ interface ClientStats {
353
363
  interface BlockedStatus {
354
364
  blocked: boolean;
355
365
  }
356
- interface RedeemedCode {
357
- code: string;
358
- type: CodeType;
359
- }
360
366
 
361
367
  /**
362
368
  * Endpoints for interacting with clients.
@@ -370,10 +376,10 @@ declare class ClientEndpoint extends ApiEndpoint {
370
376
  get(): Promise<ApiResponse<Person>>;
371
377
  /**
372
378
  * Gets the specified amount of emergencies the client has created.
373
- * @param limit - The number of emergencies to get
374
- * @param paginationToken - The number to use for pagination
379
+ * @param limit - The number of emergencies to get, defaults to 10
380
+ * @param paginationToken - The string to use for pagination
375
381
  * */
376
- getHistory(limit: number, paginationToken?: string): Promise<ApiResponse<PaginatedResponse<ClientHistory>>>;
382
+ getHistory(limit?: number, paginationToken?: string): Promise<ApiResponse<PaginatedResponse<ClientHistory>>>;
377
383
  /**
378
384
  * Gets the blocklist status of the current client.
379
385
  * */
@@ -389,7 +395,7 @@ declare class ClientEndpoint extends ApiEndpoint {
389
395
  /**
390
396
  * Updates the settings of the current user for the Client Portal.
391
397
  *
392
- * @param settings - The object settings to add or update
398
+ * @param settings - The stringified object settings to add or update
393
399
  *
394
400
  * */
395
401
  setUserSettings(settings: string): Promise<ApiResponse>;
@@ -399,6 +405,14 @@ declare class ClientEndpoint extends ApiEndpoint {
399
405
  deactivate(): Promise<ApiResponse>;
400
406
  }
401
407
 
408
+ interface PromotionalCode extends WritableDbItem {
409
+ type: CodeType;
410
+ }
411
+ declare enum CodeType {
412
+ UNKNOWN = 0,
413
+ CITIZEN_CON_2954 = 1
414
+ }
415
+
402
416
  /**
403
417
  * Endpoints for interacting with promotional codes.
404
418
  * */
@@ -407,8 +421,11 @@ declare class CodeEndpoint extends ApiEndpoint {
407
421
  protected endpoint(): string;
408
422
  /**
409
423
  * Gets the redeemed codes for the current user.
424
+ *
425
+ * @param limit - The number of codes to get, max 100
426
+ * @param paginationToken - The string to use for pagination
410
427
  * */
411
- getRedeemedCodes(): Promise<ApiResponse<PromotionalCode[]>>;
428
+ getRedeemedCodes(limit: number, paginationToken?: string): Promise<ApiResponse<PaginatedResponse<PromotionalCode>>>;
412
429
  /**
413
430
  * Redeems the specified promotional code for the current user
414
431
  *
@@ -462,16 +479,16 @@ declare enum Class {
462
479
  interface TeamMember {
463
480
  discordId: string;
464
481
  id: string;
465
- rsiHandle?: string;
482
+ rsiHandle: string;
466
483
  class: Class;
467
- teamId?: string;
484
+ updated: string;
468
485
  }
469
486
 
470
487
  interface Team {
488
+ maxMembers: number;
471
489
  staff: TeamMember[];
472
490
  dispatchers: TeamMember[];
473
491
  allMembers: TeamMember[];
474
- maxMembers: number;
475
492
  }
476
493
 
477
494
  declare enum ThreatLevel {
@@ -491,28 +508,25 @@ interface Emergency extends WritableDbItem {
491
508
  clientId?: string;
492
509
  subscriptionTier: string;
493
510
  status: MissionStatus;
494
- alertMessage?: MessageCache;
495
- clientMessage?: MessageCache;
496
- coordinationThread?: MessageCache;
497
- afterActionReportMessage?: MessageCache;
511
+ cancellationReason: CancellationReason;
512
+ refusalReason?: string;
513
+ alertMessage?: DiscordMessage;
514
+ clientMessage?: DiscordMessage;
515
+ coordinationThread?: DiscordMessage;
516
+ afterActionReportMessage?: DiscordMessage;
498
517
  respondingTeam: Team;
499
518
  respondingTeams: RespondingTeam[];
500
- creationTimestamp: number;
501
- acceptedTimestamp?: number;
502
- completionTimestamp?: number;
519
+ acceptedOn?: string;
520
+ completedOn?: string;
503
521
  rating: ResponseRating;
504
522
  ratingRemarks?: string;
505
- test: boolean;
506
- cancellationReason: CancellationReason;
507
- refusalReason?: string;
508
523
  origin: Origin;
509
524
  clientData?: ClientData;
510
- isComplete: boolean;
511
525
  missionName?: string;
526
+ isComplete: boolean;
512
527
  afterActionReport?: AfterActionReport;
513
- submissionSource: SubmissionSource;
514
528
  }
515
- interface MessageCache {
529
+ interface DiscordMessage {
516
530
  id: string;
517
531
  channelId: string;
518
532
  }
@@ -520,21 +534,21 @@ interface ClientData {
520
534
  rsiHandle: string;
521
535
  rsiProfileLink: string;
522
536
  gotClientData: boolean;
523
- redactedOrgOnProfile: boolean;
524
537
  reported: boolean;
538
+ userSid?: string;
525
539
  }
526
540
  interface AfterActionReport {
527
- remarks?: string;
528
- submitterStaffId: string;
529
541
  servicesProvided: MissionServices;
530
542
  suspectedTrap: boolean;
531
- hasBeenEdited: boolean;
532
- submittedOn: number;
543
+ remarks?: string;
544
+ submitterStaffId: string;
545
+ submittedOn?: string;
533
546
  editHistory: AfterActionReportEdit[];
547
+ hasBeenEdited: boolean;
534
548
  }
535
549
  interface AfterActionReportEdit {
536
550
  editorStaffId: string;
537
- editTime: number;
551
+ editTime: string;
538
552
  }
539
553
  declare enum MissionServices {
540
554
  NONE = 0,
@@ -729,9 +743,9 @@ interface PublicOrgSettings {
729
743
  status: ServiceStatus;
730
744
  emergenciesEnabled: boolean;
731
745
  anonymousAlertsEnabled: boolean;
732
- registrationEnabled: boolean;
733
746
  messageOfTheDay?: MessageOfTheDay;
734
747
  locationSettings: LocationSettings;
748
+ registrationEnabled: boolean;
735
749
  }
736
750
  interface MessageOfTheDay {
737
751
  message: string;
@@ -747,9 +761,9 @@ interface LocationSettings {
747
761
  interface SpaceLocation {
748
762
  name: string;
749
763
  type: SpaceLocationType;
750
- characteristics: LocationCharacteristic[];
751
764
  children: SpaceLocation[];
752
765
  enabled: boolean;
766
+ characteristics: LocationCharacteristic[];
753
767
  }
754
768
  declare enum SpaceLocationType {
755
769
  UNKNOWN = 0,
@@ -759,7 +773,7 @@ declare enum SpaceLocationType {
759
773
  }
760
774
  declare enum ServiceStatus {
761
775
  UNKNOWN = 0,
762
- HEALTHY = 1,
776
+ OPERATIONAL = 1,
763
777
  SLIGHTLY_DEGRADED = 2,
764
778
  HEAVILY_DEGRADED = 3,
765
779
  OFFLINE = 4
@@ -906,4 +920,4 @@ declare enum ClientType {
906
920
  STAFF_PORTAL = 2
907
921
  }
908
922
 
909
- export { AccountDeactivationReason, type AfterActionReport, type AfterActionReportEdit, type ApiClient, type ApiConfig, ApiEndpoint, type ApiResponse, type ApiToken, type AsyncAction, type AsyncProvider, AuthEndpoint, type BlockedStatus, CancellationReason, type ChatMessage, ChatMessageEndpoint, type ChatMessageRequest, Class, type ClientData, ClientEndpoint, type ClientHistory, type ClientStats, ClientType, CodeEndpoint, CodeType, type CreateEmergencyRequest, type DateRange, type DbItem, DefaultApiConfig, type Deployment, type Emergency, EmergencyEndpoint, type EmergencyStats, type Func, type HeaderProvider, type Headers, Level, type Location, LocationCharacteristic, type LocationDetail, type LocationSettings, LocationType, type MedalInformation, MedrunnerApiClient, type MessageCache, type MessageOfTheDay, MissionServices, MissionStatus, type OrgSettings, OrgSettingsEndpoint, Origin, type PaginatedResponse, type Person, PersonType, type PromotionalCode, type PublicOrgSettings, type RedeemedCode, type ResponderDetails, type RespondingTeam, ResponseRating, ServiceStatus, type SpaceLocation, SpaceLocationType, StaffEndpoint, SubmissionSource, type Team, type TeamDetailsResponse, type TeamMember, ThreatLevel, type TokenGrant, TokenManager, UserRoles, WebsocketEndpoint, type WritableDbItem };
923
+ export { AccountDeactivationReason, type AfterActionReport, type AfterActionReportEdit, type ApiClient, type ApiConfig, ApiEndpoint, type ApiResponse, type ApiToken, type AsyncAction, type AsyncProvider, AuthEndpoint, type BlockedStatus, CancellationReason, type ChatMessage, ChatMessageEndpoint, type ChatMessageRequest, Class, type ClientData, ClientEndpoint, type ClientHistory, type ClientStats, ClientType, CodeEndpoint, CodeType, type CreateEmergencyRequest, type DateRange, type DbItem, DefaultApiConfig, type Deployment, type DiscordMessage, type Emergency, EmergencyEndpoint, type EmergencyStats, type Func, type HeaderProvider, type Headers, Level, type Location, LocationCharacteristic, type LocationDetail, type LocationSettings, LocationType, type MedalInformation, MedrunnerApiClient, type MessageOfTheDay, MissionServices, MissionStatus, type OrgSettings, OrgSettingsEndpoint, Origin, type PaginatedResponse, type Person, PersonType, type PromotionalCode, type PublicOrgSettings, type ResponderDetails, type RespondingTeam, ResponseRating, ServiceStatus, type SpaceLocation, SpaceLocationType, StaffEndpoint, SubmissionSource, type Team, type TeamDetailsResponse, type TeamMember, ThreatLevel, type TokenGrant, TokenManager, TokenScope, TokenVersion, UserRoles, WebsocketEndpoint, type WritableDbItem };
package/dist/index.js CHANGED
@@ -59,6 +59,8 @@ __export(index_exports, {
59
59
  SubmissionSource: () => SubmissionSource,
60
60
  ThreatLevel: () => ThreatLevel,
61
61
  TokenManager: () => TokenManager,
62
+ TokenScope: () => TokenScope,
63
+ TokenVersion: () => TokenVersion,
62
64
  UserRoles: () => UserRoles,
63
65
  WebsocketEndpoint: () => WebsocketEndpoint
64
66
  });
@@ -215,7 +217,8 @@ var AuthEndpoint = class extends ApiEndpoint {
215
217
  async createApiToken(newToken) {
216
218
  return await this.postRequest("/apiTokens", {
217
219
  name: newToken.name,
218
- expirationDate: newToken.expirationDate?.toISOString()
220
+ expirationDate: newToken.expirationDate?.toISOString(),
221
+ scopes: newToken.scopes
219
222
  });
220
223
  }
221
224
  /**
@@ -340,8 +343,8 @@ var ChatMessageEndpoint = class extends ApiEndpoint {
340
343
  * Gets the specified amount of chat messages for a given emergency.
341
344
  *
342
345
  * @param emergencyId - The emergency for which to fetch the chat history
343
- * @param limit - The number of emergencies to get
344
- * @param paginationToken - The number to use for pagination
346
+ * @param limit - The number of emergencies to get, max 100
347
+ * @param paginationToken - The string to use for pagination
345
348
  * */
346
349
  async getMessageHistory(emergencyId, limit, paginationToken) {
347
350
  return await this.getRequest(`/conversation/${emergencyId}`, {
@@ -400,8 +403,8 @@ var ClientEndpoint = class extends ApiEndpoint {
400
403
  }
401
404
  /**
402
405
  * Gets the specified amount of emergencies the client has created.
403
- * @param limit - The number of emergencies to get
404
- * @param paginationToken - The number to use for pagination
406
+ * @param limit - The number of emergencies to get, defaults to 10
407
+ * @param paginationToken - The string to use for pagination
405
408
  * */
406
409
  async getHistory(limit, paginationToken) {
407
410
  return await this.getRequest("/history", { limit, paginationToken });
@@ -425,7 +428,7 @@ var ClientEndpoint = class extends ApiEndpoint {
425
428
  /**
426
429
  * Updates the settings of the current user for the Client Portal.
427
430
  *
428
- * @param settings - The object settings to add or update
431
+ * @param settings - The stringified object settings to add or update
429
432
  *
430
433
  * */
431
434
  async setUserSettings(settings) {
@@ -452,9 +455,15 @@ var CodeEndpoint = class extends ApiEndpoint {
452
455
  }
453
456
  /**
454
457
  * Gets the redeemed codes for the current user.
458
+ *
459
+ * @param limit - The number of codes to get, max 100
460
+ * @param paginationToken - The string to use for pagination
455
461
  * */
456
- async getRedeemedCodes() {
457
- return await this.getRequest("/redeemed");
462
+ async getRedeemedCodes(limit, paginationToken) {
463
+ return await this.getRequest("/redeemed", {
464
+ limit,
465
+ paginationToken
466
+ });
458
467
  }
459
468
  /**
460
469
  * Redeems the specified promotional code for the current user
@@ -773,6 +782,7 @@ var MissionStatus = /* @__PURE__ */ ((MissionStatus2) => {
773
782
  var UserRoles = /* @__PURE__ */ ((UserRoles2) => {
774
783
  UserRoles2[UserRoles2["CLIENT"] = 1] = "CLIENT";
775
784
  UserRoles2[UserRoles2["STAFF"] = 2] = "STAFF";
785
+ UserRoles2[UserRoles2["CEO"] = 262144] = "CEO";
776
786
  UserRoles2[UserRoles2["DEVELOPER"] = 524288] = "DEVELOPER";
777
787
  UserRoles2[UserRoles2["BOT"] = 1048576] = "BOT";
778
788
  return UserRoles2;
@@ -786,8 +796,6 @@ var PersonType = /* @__PURE__ */ ((PersonType2) => {
786
796
  var AccountDeactivationReason = /* @__PURE__ */ ((AccountDeactivationReason2) => {
787
797
  AccountDeactivationReason2[AccountDeactivationReason2["NONE"] = 0] = "NONE";
788
798
  AccountDeactivationReason2[AccountDeactivationReason2["CLIENT_DRIVEN_DELETION"] = 1] = "CLIENT_DRIVEN_DELETION";
789
- AccountDeactivationReason2[AccountDeactivationReason2["TERMINATED"] = 2] = "TERMINATED";
790
- AccountDeactivationReason2[AccountDeactivationReason2["BLOCKED"] = 3] = "BLOCKED";
791
799
  return AccountDeactivationReason2;
792
800
  })(AccountDeactivationReason || {});
793
801
 
@@ -854,7 +862,7 @@ var SpaceLocationType = /* @__PURE__ */ ((SpaceLocationType2) => {
854
862
  })(SpaceLocationType || {});
855
863
  var ServiceStatus = /* @__PURE__ */ ((ServiceStatus2) => {
856
864
  ServiceStatus2[ServiceStatus2["UNKNOWN"] = 0] = "UNKNOWN";
857
- ServiceStatus2[ServiceStatus2["HEALTHY"] = 1] = "HEALTHY";
865
+ ServiceStatus2[ServiceStatus2["OPERATIONAL"] = 1] = "OPERATIONAL";
858
866
  ServiceStatus2[ServiceStatus2["SLIGHTLY_DEGRADED"] = 2] = "SLIGHTLY_DEGRADED";
859
867
  ServiceStatus2[ServiceStatus2["HEAVILY_DEGRADED"] = 3] = "HEAVILY_DEGRADED";
860
868
  ServiceStatus2[ServiceStatus2["OFFLINE"] = 4] = "OFFLINE";
@@ -877,10 +885,32 @@ var ClientType = /* @__PURE__ */ ((ClientType2) => {
877
885
 
878
886
  // src/models/PromotionalCode.ts
879
887
  var CodeType = /* @__PURE__ */ ((CodeType2) => {
880
- CodeType2[CodeType2["Unknown"] = 0] = "Unknown";
881
- CodeType2[CodeType2["CitizenCon2954"] = 1] = "CitizenCon2954";
888
+ CodeType2[CodeType2["UNKNOWN"] = 0] = "UNKNOWN";
889
+ CodeType2[CodeType2["CITIZEN_CON_2954"] = 1] = "CITIZEN_CON_2954";
882
890
  return CodeType2;
883
891
  })(CodeType || {});
892
+
893
+ // src/models/ApiToken.ts
894
+ var TokenVersion = /* @__PURE__ */ ((TokenVersion2) => {
895
+ TokenVersion2[TokenVersion2["UNKNOWN"] = -1] = "UNKNOWN";
896
+ TokenVersion2[TokenVersion2["LEGACY"] = 0] = "LEGACY";
897
+ TokenVersion2[TokenVersion2["V3"] = 3] = "V3";
898
+ TokenVersion2[TokenVersion2["V4"] = 4] = "V4";
899
+ return TokenVersion2;
900
+ })(TokenVersion || {});
901
+ var TokenScope = /* @__PURE__ */ ((TokenScope2) => {
902
+ TokenScope2["CLIENT_READ"] = "client:read";
903
+ TokenScope2["CLIENT_WRITE"] = "client:write";
904
+ TokenScope2["CLIENT_PROFILE_READ"] = "client:profile:read";
905
+ TokenScope2["CLIENT_PROFILE_WRITE"] = "client:profile:write";
906
+ TokenScope2["CLIENT_ORGSETTINGS_READ"] = "client:orgsettings:read";
907
+ TokenScope2["STAFF_READ"] = "staff:read";
908
+ TokenScope2["STAFF_WRITE"] = "staff:write";
909
+ TokenScope2["STAFF_PROFILE_READ"] = "staff:profile:read";
910
+ TokenScope2["STAFF_PROFILE_WRITE"] = "staff:profile:write";
911
+ TokenScope2["STAFF_ORGSETTINGS_READ"] = "staff:orgsettings:read";
912
+ return TokenScope2;
913
+ })(TokenScope || {});
884
914
  // Annotate the CommonJS export names for ESM import in node:
885
915
  0 && (module.exports = {
886
916
  AccountDeactivationReason,
@@ -911,6 +941,8 @@ var CodeType = /* @__PURE__ */ ((CodeType2) => {
911
941
  SubmissionSource,
912
942
  ThreatLevel,
913
943
  TokenManager,
944
+ TokenScope,
945
+ TokenVersion,
914
946
  UserRoles,
915
947
  WebsocketEndpoint
916
948
  });