@genesislcap/foundation-user 14.176.1-alpha-6ef4895.0 → 14.177.0-raise-intent.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -417,6 +417,37 @@
417
417
  "isProtected": false,
418
418
  "isAbstract": false
419
419
  },
420
+ {
421
+ "kind": "Method",
422
+ "canonicalReference": "@genesislcap/foundation-user!DefaultUser#hasAdminProfile:member(1)",
423
+ "docComment": "",
424
+ "excerptTokens": [
425
+ {
426
+ "kind": "Content",
427
+ "text": "hasAdminProfile(): "
428
+ },
429
+ {
430
+ "kind": "Content",
431
+ "text": "boolean"
432
+ },
433
+ {
434
+ "kind": "Content",
435
+ "text": ";"
436
+ }
437
+ ],
438
+ "isStatic": false,
439
+ "returnTypeTokenRange": {
440
+ "startIndex": 1,
441
+ "endIndex": 2
442
+ },
443
+ "releaseTag": "Public",
444
+ "isProtected": false,
445
+ "overloadIndex": 1,
446
+ "parameters": [],
447
+ "isOptional": false,
448
+ "isAbstract": false,
449
+ "name": "hasAdminProfile"
450
+ },
420
451
  {
421
452
  "kind": "Method",
422
453
  "canonicalReference": "@genesislcap/foundation-user!DefaultUser#hasPermission:member(1)",
@@ -757,6 +788,36 @@
757
788
  "isProtected": false,
758
789
  "isAbstract": false
759
790
  },
791
+ {
792
+ "kind": "Property",
793
+ "canonicalReference": "@genesislcap/foundation-user!DefaultUser#permissions:member",
794
+ "docComment": "",
795
+ "excerptTokens": [
796
+ {
797
+ "kind": "Content",
798
+ "text": "get permissions(): "
799
+ },
800
+ {
801
+ "kind": "Content",
802
+ "text": "string[]"
803
+ },
804
+ {
805
+ "kind": "Content",
806
+ "text": ";"
807
+ }
808
+ ],
809
+ "isReadonly": true,
810
+ "isOptional": false,
811
+ "releaseTag": "Public",
812
+ "name": "permissions",
813
+ "propertyTypeTokenRange": {
814
+ "startIndex": 1,
815
+ "endIndex": 2
816
+ },
817
+ "isStatic": false,
818
+ "isProtected": false,
819
+ "isAbstract": false
820
+ },
760
821
  {
761
822
  "kind": "Property",
762
823
  "canonicalReference": "@genesislcap/foundation-user!DefaultUser#profile:member",
@@ -787,6 +848,36 @@
787
848
  "isProtected": false,
788
849
  "isAbstract": false
789
850
  },
851
+ {
852
+ "kind": "Property",
853
+ "canonicalReference": "@genesislcap/foundation-user!DefaultUser#profiles:member",
854
+ "docComment": "",
855
+ "excerptTokens": [
856
+ {
857
+ "kind": "Content",
858
+ "text": "get profiles(): "
859
+ },
860
+ {
861
+ "kind": "Content",
862
+ "text": "string[]"
863
+ },
864
+ {
865
+ "kind": "Content",
866
+ "text": ";"
867
+ }
868
+ ],
869
+ "isReadonly": true,
870
+ "isOptional": false,
871
+ "releaseTag": "Public",
872
+ "name": "profiles",
873
+ "propertyTypeTokenRange": {
874
+ "startIndex": 1,
875
+ "endIndex": 2
876
+ },
877
+ "isStatic": false,
878
+ "isProtected": false,
879
+ "isAbstract": false
880
+ },
790
881
  {
791
882
  "kind": "Property",
792
883
  "canonicalReference": "@genesislcap/foundation-user!DefaultUser#rawProperties:member",
@@ -1089,7 +1180,7 @@
1089
1180
  {
1090
1181
  "kind": "Property",
1091
1182
  "canonicalReference": "@genesislcap/foundation-user!DefaultUser#username:member",
1092
- "docComment": "/**\n * {@inheritDoc User.username}\n */\n",
1183
+ "docComment": "",
1093
1184
  "excerptTokens": [
1094
1185
  {
1095
1186
  "kind": "Content",
@@ -1207,6 +1298,162 @@
1207
1298
  "parameters": [],
1208
1299
  "name": "getUser"
1209
1300
  },
1301
+ {
1302
+ "kind": "Function",
1303
+ "canonicalReference": "@genesislcap/foundation-user!getUserChannel:function(1)",
1304
+ "docComment": "/**\n * Gets UserChannel from the DI container.\n *\n * @remarks\n *\n * A utility method for host applications that are not using decorators or the DI container.\n *\n * @example\n * ```ts\n * import { getUserChannel } from '@genesislcap/foundation-user';\n * ...\n * const channel = getUserChannel();\n * ...\n * channel.onmessage = (e) => {\n * if (channel.isMessageType('user-authentication-change', e)) {\n * logger.debug('user-authentication-change', e.data.detail);\n * return;\n * }\n * }\n * ...\n * channel.close();\n * ```\n *\n * @public\n */\n",
1305
+ "excerptTokens": [
1306
+ {
1307
+ "kind": "Content",
1308
+ "text": "export declare function getUserChannel(): "
1309
+ },
1310
+ {
1311
+ "kind": "Reference",
1312
+ "text": "UserChannel",
1313
+ "canonicalReference": "@genesislcap/foundation-user!UserChannel:interface"
1314
+ },
1315
+ {
1316
+ "kind": "Content",
1317
+ "text": ";"
1318
+ }
1319
+ ],
1320
+ "fileUrlPath": "src/config.ts",
1321
+ "returnTypeTokenRange": {
1322
+ "startIndex": 1,
1323
+ "endIndex": 2
1324
+ },
1325
+ "releaseTag": "Public",
1326
+ "overloadIndex": 1,
1327
+ "parameters": [],
1328
+ "name": "getUserChannel"
1329
+ },
1330
+ {
1331
+ "kind": "Interface",
1332
+ "canonicalReference": "@genesislcap/foundation-user!LegacyUserAPI:interface",
1333
+ "docComment": "/**\n * @remarks\n *\n * For backwards compatibility, will be removed in a future major release, likely v15.\n *\n * @public\n */\n",
1334
+ "excerptTokens": [
1335
+ {
1336
+ "kind": "Content",
1337
+ "text": "export interface LegacyUserAPI "
1338
+ }
1339
+ ],
1340
+ "fileUrlPath": "src/user.ts",
1341
+ "releaseTag": "Public",
1342
+ "name": "LegacyUserAPI",
1343
+ "preserveMemberOrder": false,
1344
+ "members": [
1345
+ {
1346
+ "kind": "MethodSignature",
1347
+ "canonicalReference": "@genesislcap/foundation-user!LegacyUserAPI#hasAdminProfile:member(1)",
1348
+ "docComment": "/**\n * @deprecated\n *\n * - Use `isAdmin` instead.\n */\n",
1349
+ "excerptTokens": [
1350
+ {
1351
+ "kind": "Content",
1352
+ "text": "hasAdminProfile(): "
1353
+ },
1354
+ {
1355
+ "kind": "Content",
1356
+ "text": "boolean"
1357
+ },
1358
+ {
1359
+ "kind": "Content",
1360
+ "text": ";"
1361
+ }
1362
+ ],
1363
+ "isOptional": false,
1364
+ "returnTypeTokenRange": {
1365
+ "startIndex": 1,
1366
+ "endIndex": 2
1367
+ },
1368
+ "releaseTag": "Public",
1369
+ "overloadIndex": 1,
1370
+ "parameters": [],
1371
+ "name": "hasAdminProfile"
1372
+ },
1373
+ {
1374
+ "kind": "PropertySignature",
1375
+ "canonicalReference": "@genesislcap/foundation-user!LegacyUserAPI#permissions:member",
1376
+ "docComment": "/**\n * @deprecated\n *\n * - Use `permission` instead.\n */\n",
1377
+ "excerptTokens": [
1378
+ {
1379
+ "kind": "Content",
1380
+ "text": "readonly permissions: "
1381
+ },
1382
+ {
1383
+ "kind": "Content",
1384
+ "text": "string[]"
1385
+ },
1386
+ {
1387
+ "kind": "Content",
1388
+ "text": ";"
1389
+ }
1390
+ ],
1391
+ "isReadonly": true,
1392
+ "isOptional": false,
1393
+ "releaseTag": "Public",
1394
+ "name": "permissions",
1395
+ "propertyTypeTokenRange": {
1396
+ "startIndex": 1,
1397
+ "endIndex": 2
1398
+ }
1399
+ },
1400
+ {
1401
+ "kind": "PropertySignature",
1402
+ "canonicalReference": "@genesislcap/foundation-user!LegacyUserAPI#profiles:member",
1403
+ "docComment": "/**\n * @deprecated\n *\n * - Use `profile` instead.\n */\n",
1404
+ "excerptTokens": [
1405
+ {
1406
+ "kind": "Content",
1407
+ "text": "readonly profiles: "
1408
+ },
1409
+ {
1410
+ "kind": "Content",
1411
+ "text": "string[]"
1412
+ },
1413
+ {
1414
+ "kind": "Content",
1415
+ "text": ";"
1416
+ }
1417
+ ],
1418
+ "isReadonly": true,
1419
+ "isOptional": false,
1420
+ "releaseTag": "Public",
1421
+ "name": "profiles",
1422
+ "propertyTypeTokenRange": {
1423
+ "startIndex": 1,
1424
+ "endIndex": 2
1425
+ }
1426
+ },
1427
+ {
1428
+ "kind": "PropertySignature",
1429
+ "canonicalReference": "@genesislcap/foundation-user!LegacyUserAPI#username:member",
1430
+ "docComment": "/**\n * @deprecated\n *\n * - Use `userName` instead.\n */\n",
1431
+ "excerptTokens": [
1432
+ {
1433
+ "kind": "Content",
1434
+ "text": "readonly username: "
1435
+ },
1436
+ {
1437
+ "kind": "Content",
1438
+ "text": "string"
1439
+ },
1440
+ {
1441
+ "kind": "Content",
1442
+ "text": ";"
1443
+ }
1444
+ ],
1445
+ "isReadonly": true,
1446
+ "isOptional": false,
1447
+ "releaseTag": "Public",
1448
+ "name": "username",
1449
+ "propertyTypeTokenRange": {
1450
+ "startIndex": 1,
1451
+ "endIndex": 2
1452
+ }
1453
+ }
1454
+ ],
1455
+ "extendsTokenRanges": []
1456
+ },
1210
1457
  {
1211
1458
  "kind": "Variable",
1212
1459
  "canonicalReference": "@genesislcap/foundation-user!logger:var",
@@ -1511,6 +1758,15 @@
1511
1758
  "text": "UserActionHistory",
1512
1759
  "canonicalReference": "@genesislcap/foundation-user!UserActionHistory:interface"
1513
1760
  },
1761
+ {
1762
+ "kind": "Content",
1763
+ "text": ", "
1764
+ },
1765
+ {
1766
+ "kind": "Reference",
1767
+ "text": "LegacyUserAPI",
1768
+ "canonicalReference": "@genesislcap/foundation-user!LegacyUserAPI:interface"
1769
+ },
1514
1770
  {
1515
1771
  "kind": "Content",
1516
1772
  "text": " "
@@ -1524,7 +1780,7 @@
1524
1780
  {
1525
1781
  "kind": "MethodSignature",
1526
1782
  "canonicalReference": "@genesislcap/foundation-user!User#addAuthenticationChangeListener:member(1)",
1527
- "docComment": "/**\n * @param listener - A listener function.\n *\n * @example\n * ```ts\n * import type { UserAuthenticationChangeEvent } from '@genesislcap/foundation-user';\n * ...\n * const unsubscribe = this.user.addAuthenticationChangeListener((event: UserAuthenticationChangeEvent) => {\n * console.log('User authenticated?', event.detail);\n * });\n * ```\n *\n */\n",
1783
+ "docComment": "/**\n * @param listener - A listener function.\n *\n * @example\n * ```ts\n * const unsubscribe = this.user.addAuthenticationChangeListener((event) => {\n * console.log('User authenticated?', event.detail);\n * });\n * ```\n *\n */\n",
1528
1784
  "excerptTokens": [
1529
1785
  {
1530
1786
  "kind": "Content",
@@ -2078,33 +2334,6 @@
2078
2334
  "endIndex": 2
2079
2335
  }
2080
2336
  },
2081
- {
2082
- "kind": "PropertySignature",
2083
- "canonicalReference": "@genesislcap/foundation-user!User#username:member",
2084
- "docComment": "",
2085
- "excerptTokens": [
2086
- {
2087
- "kind": "Content",
2088
- "text": "readonly username: "
2089
- },
2090
- {
2091
- "kind": "Content",
2092
- "text": "string"
2093
- },
2094
- {
2095
- "kind": "Content",
2096
- "text": ";"
2097
- }
2098
- ],
2099
- "isReadonly": true,
2100
- "isOptional": false,
2101
- "releaseTag": "Public",
2102
- "name": "username",
2103
- "propertyTypeTokenRange": {
2104
- "startIndex": 1,
2105
- "endIndex": 2
2106
- }
2107
- },
2108
2337
  {
2109
2338
  "kind": "PropertySignature",
2110
2339
  "canonicalReference": "@genesislcap/foundation-user!User#userName:member",
@@ -2141,6 +2370,10 @@
2141
2370
  {
2142
2371
  "startIndex": 3,
2143
2372
  "endIndex": 4
2373
+ },
2374
+ {
2375
+ "startIndex": 5,
2376
+ "endIndex": 6
2144
2377
  }
2145
2378
  ]
2146
2379
  },
@@ -2369,6 +2602,112 @@
2369
2602
  "endIndex": 0
2370
2603
  }
2371
2604
  },
2605
+ {
2606
+ "kind": "Interface",
2607
+ "canonicalReference": "@genesislcap/foundation-user!UserChannel:interface",
2608
+ "docComment": "/**\n * UserChannel DI interface.\n *\n * @example\n * ```ts\n * import { UserChannel } from '@genesislcap/foundation-user';\n * ...\n * @UserChannel protected channel: UserChannel;\n * ...\n * this.channel.onmessage = (e) => {\n * if (this.channel.isMessageType('user-authentication-change', e)) {\n * logger.debug('user-authentication-change', e.data.detail);\n * return;\n * }\n * }\n * ...\n * this.channel.close();\n * ```\n *\n * @public\n */\n",
2609
+ "excerptTokens": [
2610
+ {
2611
+ "kind": "Content",
2612
+ "text": "export interface UserChannel extends "
2613
+ },
2614
+ {
2615
+ "kind": "Reference",
2616
+ "text": "TypedBroadcastChannel",
2617
+ "canonicalReference": "@genesislcap/foundation-broadcast-channel!TypedBroadcastChannel:interface"
2618
+ },
2619
+ {
2620
+ "kind": "Content",
2621
+ "text": "<"
2622
+ },
2623
+ {
2624
+ "kind": "Reference",
2625
+ "text": "UserChannelEvents",
2626
+ "canonicalReference": "@genesislcap/foundation-user!UserChannelEvents:type"
2627
+ },
2628
+ {
2629
+ "kind": "Content",
2630
+ "text": ">"
2631
+ },
2632
+ {
2633
+ "kind": "Content",
2634
+ "text": " "
2635
+ }
2636
+ ],
2637
+ "fileUrlPath": "src/config.ts",
2638
+ "releaseTag": "Public",
2639
+ "name": "UserChannel",
2640
+ "preserveMemberOrder": false,
2641
+ "members": [],
2642
+ "extendsTokenRanges": [
2643
+ {
2644
+ "startIndex": 1,
2645
+ "endIndex": 5
2646
+ }
2647
+ ]
2648
+ },
2649
+ {
2650
+ "kind": "TypeAlias",
2651
+ "canonicalReference": "@genesislcap/foundation-user!UserChannelEvents:type",
2652
+ "docComment": "/**\n * UserChannelEvents.\n *\n * @public\n */\n",
2653
+ "excerptTokens": [
2654
+ {
2655
+ "kind": "Content",
2656
+ "text": "export type UserChannelEvents = "
2657
+ },
2658
+ {
2659
+ "kind": "Content",
2660
+ "text": "{\n ["
2661
+ },
2662
+ {
2663
+ "kind": "Reference",
2664
+ "text": "UserAuthenticationChangeType",
2665
+ "canonicalReference": "@genesislcap/foundation-user!UserAuthenticationChangeType:var"
2666
+ },
2667
+ {
2668
+ "kind": "Content",
2669
+ "text": "]: boolean;\n}"
2670
+ },
2671
+ {
2672
+ "kind": "Content",
2673
+ "text": ";"
2674
+ }
2675
+ ],
2676
+ "fileUrlPath": "src/types.ts",
2677
+ "releaseTag": "Public",
2678
+ "name": "UserChannelEvents",
2679
+ "typeTokenRange": {
2680
+ "startIndex": 1,
2681
+ "endIndex": 4
2682
+ }
2683
+ },
2684
+ {
2685
+ "kind": "Variable",
2686
+ "canonicalReference": "@genesislcap/foundation-user!UserChannelId:var",
2687
+ "docComment": "/**\n * UserChannelId.\n *\n * @public\n */\n",
2688
+ "excerptTokens": [
2689
+ {
2690
+ "kind": "Content",
2691
+ "text": "UserChannelId = "
2692
+ },
2693
+ {
2694
+ "kind": "Content",
2695
+ "text": "\"genesis-user\""
2696
+ }
2697
+ ],
2698
+ "fileUrlPath": "src/types.ts",
2699
+ "initializerTokenRange": {
2700
+ "startIndex": 1,
2701
+ "endIndex": 2
2702
+ },
2703
+ "isReadonly": true,
2704
+ "releaseTag": "Public",
2705
+ "name": "UserChannelId",
2706
+ "variableTypeTokenRange": {
2707
+ "startIndex": 0,
2708
+ "endIndex": 0
2709
+ }
2710
+ },
2372
2711
  {
2373
2712
  "kind": "Interface",
2374
2713
  "canonicalReference": "@genesislcap/foundation-user!UserConfig:interface",
@@ -2,6 +2,7 @@ import { InterfaceSymbol } from '@microsoft/fast-foundation';
2
2
  import { Listener } from '@genesislcap/foundation-utils';
3
3
  import { Logger } from '@genesislcap/foundation-logger';
4
4
  import { Observer } from '@genesislcap/foundation-utils';
5
+ import { TypedBroadcastChannel } from '@genesislcap/foundation-broadcast-channel';
5
6
 
6
7
  /**
7
8
  * Default User implementation.
@@ -36,10 +37,6 @@ export declare class DefaultUser implements User {
36
37
  set(properties: Partial<SetUserProperties>): User;
37
38
  /** {@inheritDoc User.unset} */
38
39
  unset(): User;
39
- /** @internal */
40
- protected userNameChanged(): void;
41
- /** {@inheritDoc User.username} */
42
- get username(): string;
43
40
  /** {@inheritDoc User.isAnonymous} */
44
41
  get isAnonymous(): boolean;
45
42
  /** {@inheritDoc User.isAdmin} */
@@ -72,6 +69,23 @@ export declare class DefaultUser implements User {
72
69
  addAuthenticationChangeListener(listener: Listener<UserAuthenticationChangeEvent>): () => void;
73
70
  /** @internal */
74
71
  protected isAuthenticatedChanged(): void;
72
+ /**
73
+ * Bridge legacy user apis below
74
+ */
75
+ /** @internal */
76
+ protected userNameChanged(): void;
77
+ /** {@inheritDoc LegacyUserAPI.username} */
78
+ get username(): string;
79
+ /** @internal */
80
+ protected permissionChanged(): void;
81
+ /** {@inheritDoc LegacyUserAPI.permissions} */
82
+ get permissions(): string[];
83
+ /** @internal */
84
+ protected profileChanged(): void;
85
+ /** {@inheritDoc LegacyUserAPI.profiles} */
86
+ get profiles(): string[];
87
+ /** {@inheritDoc LegacyUserAPI.hasAdminProfile} */
88
+ hasAdminProfile(): boolean;
75
89
  }
76
90
 
77
91
  /**
@@ -97,6 +111,56 @@ export declare const defaultUserConfig: UserConfig;
97
111
  */
98
112
  export declare function getUser(): User;
99
113
 
114
+ /**
115
+ * Gets UserChannel from the DI container.
116
+ *
117
+ * @remarks
118
+ * A utility method for host applications that are not using decorators or the DI container.
119
+ *
120
+ * @example
121
+ * ```ts
122
+ * import { getUserChannel } from '@genesislcap/foundation-user';
123
+ * ...
124
+ * const channel = getUserChannel();
125
+ * ...
126
+ * channel.onmessage = (e) => {
127
+ * if (channel.isMessageType('user-authentication-change', e)) {
128
+ * logger.debug('user-authentication-change', e.data.detail);
129
+ * return;
130
+ * }
131
+ * }
132
+ * ...
133
+ * channel.close();
134
+ * ```
135
+ * @public
136
+ */
137
+ export declare function getUserChannel(): UserChannel;
138
+
139
+ /**
140
+ * @remarks
141
+ * For backwards compatibility, will be removed in a future major release, likely v15.
142
+ *
143
+ * @public
144
+ */
145
+ export declare interface LegacyUserAPI {
146
+ /**
147
+ * @deprecated - Use `userName` instead.
148
+ */
149
+ readonly username: string;
150
+ /**
151
+ * @deprecated - Use `permission` instead.
152
+ */
153
+ readonly permissions: string[];
154
+ /**
155
+ * @deprecated - Use `profile` instead.
156
+ */
157
+ readonly profiles: string[];
158
+ /**
159
+ * @deprecated - Use `isAdmin` instead.
160
+ */
161
+ hasAdminProfile(): boolean;
162
+ }
163
+
100
164
  /**
101
165
  * @public
102
166
  */
@@ -123,9 +187,6 @@ export declare interface SetUserProperties extends Partial<UserQueueProperties>
123
187
  * @remarks
124
188
  * The user singleton, which always exists in either an anonymous or authenticated mode.
125
189
  *
126
- * @privateRemarks
127
- * Provides `username` and `userName` for backwards compatability.
128
- *
129
190
  * @example
130
191
  * ```ts
131
192
  * import { User } from '@genesislcap/foundation-user';
@@ -135,7 +196,7 @@ export declare interface SetUserProperties extends Partial<UserQueueProperties>
135
196
  *
136
197
  * @public
137
198
  */
138
- export declare interface User extends UserPathHistory, UserActionHistory {
199
+ export declare interface User extends UserPathHistory, UserActionHistory, LegacyUserAPI {
139
200
  readonly isAuthenticated: boolean;
140
201
  readonly isAnonymous: boolean;
141
202
  readonly userKVs: {
@@ -146,7 +207,6 @@ export declare interface User extends UserPathHistory, UserActionHistory {
146
207
  readonly profile: string[];
147
208
  readonly sourceRef: string;
148
209
  readonly userName: string;
149
- readonly username: string;
150
210
  /**
151
211
  * A structuredClone of the raw unmanaged properties used to set the user.
152
212
  *
@@ -173,9 +233,7 @@ export declare interface User extends UserPathHistory, UserActionHistory {
173
233
  /**
174
234
  * @example
175
235
  * ```ts
176
- * import type { UserAuthenticationChangeEvent } from '@genesislcap/foundation-user';
177
- * ...
178
- * const unsubscribe = this.user.addAuthenticationChangeListener((event: UserAuthenticationChangeEvent) => {
236
+ * const unsubscribe = this.user.addAuthenticationChangeListener((event) => {
179
237
  * console.log('User authenticated?', event.detail);
180
238
  * });
181
239
  * ```
@@ -243,6 +301,50 @@ export declare type UserAuthenticationChangeEvent = CustomEvent<boolean>;
243
301
  */
244
302
  export declare const UserAuthenticationChangeType = "user-authentication-change";
245
303
 
304
+ /**
305
+ * UserChannel DI interface.
306
+ * @example
307
+ * ```ts
308
+ * import { UserChannel } from '@genesislcap/foundation-user';
309
+ * ...
310
+ * @UserChannel protected channel: UserChannel;
311
+ * ...
312
+ * this.channel.onmessage = (e) => {
313
+ * if (this.channel.isMessageType('user-authentication-change', e)) {
314
+ * logger.debug('user-authentication-change', e.data.detail);
315
+ * return;
316
+ * }
317
+ * }
318
+ * ...
319
+ * this.channel.close();
320
+ * ```
321
+ * @public
322
+ */
323
+ export declare interface UserChannel extends TypedBroadcastChannel<UserChannelEvents> {
324
+ }
325
+
326
+ /**
327
+ * UserChannel DI key.
328
+ * @internal
329
+ * @privateRemarks
330
+ * Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
331
+ */
332
+ export declare const UserChannel: InterfaceSymbol<TypedBroadcastChannel<UserChannelEvents>>;
333
+
334
+ /**
335
+ * UserChannelEvents.
336
+ * @public
337
+ */
338
+ export declare type UserChannelEvents = {
339
+ [UserAuthenticationChangeType]: boolean;
340
+ };
341
+
342
+ /**
343
+ * UserChannelId.
344
+ * @public
345
+ */
346
+ export declare const UserChannelId = "genesis-user";
347
+
246
348
  /**
247
349
  * UserConfig DI interface.
248
350
  *
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-user](./foundation-user.md) &gt; [DefaultUser](./foundation-user.defaultuser.md) &gt; [hasAdminProfile](./foundation-user.defaultuser.hasadminprofile.md)
4
+
5
+ ## DefaultUser.hasAdminProfile() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ hasAdminProfile(): boolean;
11
+ ```
12
+ **Returns:**
13
+
14
+ boolean
15
+
@@ -23,7 +23,9 @@ export declare class DefaultUser implements User
23
23
  | [isAuthenticated](./foundation-user.defaultuser.isauthenticated.md) | | boolean | |
24
24
  | [pathHistory](./foundation-user.defaultuser.pathhistory.md) | | string\[\] | Array of paths that have been tracked. |
25
25
  | [permission](./foundation-user.defaultuser.permission.md) | | string\[\] | |
26
+ | [permissions](./foundation-user.defaultuser.permissions.md) | <code>readonly</code> | string\[\] | |
26
27
  | [profile](./foundation-user.defaultuser.profile.md) | | string\[\] | |
28
+ | [profiles](./foundation-user.defaultuser.profiles.md) | <code>readonly</code> | string\[\] | |
27
29
  | [rawProperties](./foundation-user.defaultuser.rawproperties.md) | | Partial&lt;[SetUserProperties](./foundation-user.setuserproperties.md)<!-- -->&gt; | A structuredClone of the raw unmanaged properties used to set the user. |
28
30
  | [sourceRef](./foundation-user.defaultuser.sourceref.md) | | string | |
29
31
  | [userKVs](./foundation-user.defaultuser.userkvs.md) | | { \[key: string\]: any; } | |
@@ -38,6 +40,7 @@ export declare class DefaultUser implements User
38
40
  | [clearActions()](./foundation-user.defaultuser.clearactions.md) | | Clears action history. |
39
41
  | [clearPaths()](./foundation-user.defaultuser.clearpaths.md) | | Clears path history. |
40
42
  | [clearTrackingHistory()](./foundation-user.defaultuser.cleartrackinghistory.md) | | |
43
+ | [hasAdminProfile()](./foundation-user.defaultuser.hasadminprofile.md) | | |
41
44
  | [hasPermission(permission)](./foundation-user.defaultuser.haspermission.md) | | |
42
45
  | [hasProfile(profile)](./foundation-user.defaultuser.hasprofile.md) | | |
43
46
  | [isAdmin()](./foundation-user.defaultuser.isadmin.md) | | |