@acorex-platform/module-auth-client 0.0.15 → 0.0.20

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.
Files changed (123) hide show
  1. package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-B7tIKOw6.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-CYmUn-lw.mjs} +941 -609
  2. package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CYmUn-lw.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-auth-client-app-chooser.component-BVbu-f8h.mjs +75 -0
  4. package/fesm2022/acorex-platform-module-auth-client-app-chooser.component-BVbu-f8h.mjs.map +1 -0
  5. package/fesm2022/{acorex-platform-module-auth-client-blank.layout-BRGgntib.mjs → acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs} +6 -6
  6. package/fesm2022/acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs.map +1 -0
  7. package/fesm2022/{acorex-platform-module-auth-client-change-password.command-ZyXAjUKw.mjs → acorex-platform-module-auth-client-change-password.command-DIM_d7RO.mjs} +51 -40
  8. package/fesm2022/acorex-platform-module-auth-client-change-password.command-DIM_d7RO.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-auth-client-change-photo.command-CYGqrJV0.mjs +257 -0
  10. package/fesm2022/acorex-platform-module-auth-client-change-photo.command-CYGqrJV0.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-auth-client-contracts.mjs +46 -10
  12. package/fesm2022/acorex-platform-module-auth-client-contracts.mjs.map +1 -1
  13. package/fesm2022/{acorex-platform-module-auth-client-edit-account-info.command-B-mVlXxg.mjs → acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs} +5 -5
  14. package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs.map +1 -0
  15. package/fesm2022/{acorex-platform-module-auth-client-edit-signature.command-CcTJJwAX.mjs → acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs} +5 -5
  16. package/fesm2022/acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-auth-client-get-user-activity.query-BTpibxe9.mjs +80 -0
  18. package/fesm2022/acorex-platform-module-auth-client-get-user-activity.query-BTpibxe9.mjs.map +1 -0
  19. package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-41QnG1TQ.mjs → acorex-platform-module-auth-client-lock-screen.command-Br9O4b5c.mjs} +6 -6
  20. package/fesm2022/acorex-platform-module-auth-client-lock-screen.command-Br9O4b5c.mjs.map +1 -0
  21. package/fesm2022/{acorex-platform-module-auth-client-login.module-DYtNYzF6.mjs → acorex-platform-module-auth-client-login.module-DJVL3bAF.mjs} +8 -21
  22. package/fesm2022/acorex-platform-module-auth-client-login.module-DJVL3bAF.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-auth-client-master.layout-DZUYm22p.mjs +39 -0
  24. package/fesm2022/acorex-platform-module-auth-client-master.layout-DZUYm22p.mjs.map +1 -0
  25. package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-BspBH4Ul.mjs → acorex-platform-module-auth-client-oauth-callback.component-DnQzPUxF.mjs} +11 -15
  26. package/fesm2022/acorex-platform-module-auth-client-oauth-callback.component-DnQzPUxF.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-LZKM9fgo.mjs +200 -0
  28. package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-LZKM9fgo.mjs.map +1 -0
  29. package/fesm2022/{acorex-platform-module-auth-client-password.component-Cihg82vM.mjs → acorex-platform-module-auth-client-password.component-CNKRWfuG.mjs} +86 -45
  30. package/fesm2022/acorex-platform-module-auth-client-password.component-CNKRWfuG.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-auth-client-password.component-CW0t9fEn.mjs +87 -0
  32. package/fesm2022/acorex-platform-module-auth-client-password.component-CW0t9fEn.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-auth-client-platform-settings-unavailable.component-BEVkQ3jh.mjs +47 -0
  34. package/fesm2022/acorex-platform-module-auth-client-platform-settings-unavailable.component-BEVkQ3jh.mjs.map +1 -0
  35. package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-B8lBvZsA.mjs → acorex-platform-module-auth-client-profile-activity-chart.component-CtSrYARX.mjs} +38 -46
  36. package/fesm2022/acorex-platform-module-auth-client-profile-activity-chart.component-CtSrYARX.mjs.map +1 -0
  37. package/fesm2022/{acorex-platform-module-auth-client-profile-coming-soon.command-DBbFbzAx.mjs → acorex-platform-module-auth-client-profile-coming-soon.command-Crh2GsRA.mjs} +5 -5
  38. package/fesm2022/acorex-platform-module-auth-client-profile-coming-soon.command-Crh2GsRA.mjs.map +1 -0
  39. package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-CtJho4ab.mjs → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-D0QS8joQ.mjs} +18 -13
  40. package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-CtJho4ab.mjs.map → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-D0QS8joQ.mjs.map} +1 -1
  41. package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-B-Qtd4_j.mjs → acorex-platform-module-auth-client-profile-page-component.provider-6lNx6bKI.mjs} +7 -7
  42. package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-B-Qtd4_j.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-6lNx6bKI.mjs.map} +1 -1
  43. package/fesm2022/acorex-platform-module-auth-client-profile-page.component-CdxseoJX.mjs +650 -0
  44. package/fesm2022/acorex-platform-module-auth-client-profile-page.component-CdxseoJX.mjs.map +1 -0
  45. package/fesm2022/{acorex-platform-module-auth-client-register-password.component-hSJyEA6Q.mjs → acorex-platform-module-auth-client-register-password.component-D-tBrCJv.mjs} +15 -14
  46. package/fesm2022/acorex-platform-module-auth-client-register-password.component-D-tBrCJv.mjs.map +1 -0
  47. package/fesm2022/{acorex-platform-module-auth-client-register.module-DXm6AQpo.mjs → acorex-platform-module-auth-client-register.module-BrXqva0B.mjs} +23 -23
  48. package/fesm2022/acorex-platform-module-auth-client-register.module-BrXqva0B.mjs.map +1 -0
  49. package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-zUZooOtv.mjs → acorex-platform-module-auth-client-remove-pin-code.command-uK04-h15.mjs} +7 -7
  50. package/fesm2022/acorex-platform-module-auth-client-remove-pin-code.command-uK04-h15.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-module-auth-client-reset-password.component-CcwDb6Wb.mjs +115 -0
  52. package/fesm2022/acorex-platform-module-auth-client-reset-password.component-CcwDb6Wb.mjs.map +1 -0
  53. package/fesm2022/{acorex-platform-module-auth-client-result.component-DYJaB-FD.mjs → acorex-platform-module-auth-client-result.component-DWv1hmQR.mjs} +6 -6
  54. package/fesm2022/acorex-platform-module-auth-client-result.component-DWv1hmQR.mjs.map +1 -0
  55. package/fesm2022/acorex-platform-module-auth-client-routes-IX2qmeqU.mjs +13 -0
  56. package/fesm2022/acorex-platform-module-auth-client-routes-IX2qmeqU.mjs.map +1 -0
  57. package/fesm2022/acorex-platform-module-auth-client-session-lock-overlay.component-BhsTAmVe.mjs +361 -0
  58. package/fesm2022/acorex-platform-module-auth-client-session-lock-overlay.component-BhsTAmVe.mjs.map +1 -0
  59. package/fesm2022/acorex-platform-module-auth-client-set-pin-code.command-BJT7F-xz.mjs +116 -0
  60. package/fesm2022/acorex-platform-module-auth-client-set-pin-code.command-BJT7F-xz.mjs.map +1 -0
  61. package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-5TxB6aFi.mjs → acorex-platform-module-auth-client-set-pin-code.component-Cq4skm_3.mjs} +29 -20
  62. package/fesm2022/acorex-platform-module-auth-client-set-pin-code.component-Cq4skm_3.mjs.map +1 -0
  63. package/fesm2022/{acorex-platform-module-auth-client-settings.provider-n1qbs6e1.mjs → acorex-platform-module-auth-client-settings.provider-Yaoz8yp3.mjs} +139 -11
  64. package/fesm2022/acorex-platform-module-auth-client-settings.provider-Yaoz8yp3.mjs.map +1 -0
  65. package/fesm2022/{acorex-platform-module-auth-client-show-profile-command-CxMz1yy-.mjs → acorex-platform-module-auth-client-show-profile-command-BWoDxIdx.mjs} +5 -6
  66. package/fesm2022/acorex-platform-module-auth-client-show-profile-command-BWoDxIdx.mjs.map +1 -0
  67. package/fesm2022/{acorex-platform-module-auth-client-signout-command-DqqrP5pk.mjs → acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs} +5 -5
  68. package/fesm2022/acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs.map +1 -0
  69. package/fesm2022/acorex-platform-module-auth-client-tenant-chooser.component-CHmg7D5H.mjs +67 -0
  70. package/fesm2022/acorex-platform-module-auth-client-tenant-chooser.component-CHmg7D5H.mjs.map +1 -0
  71. package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-nsB4v25Z.mjs +40 -0
  72. package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-nsB4v25Z.mjs.map +1 -0
  73. package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-BJqdeuAz.mjs → acorex-platform-module-auth-client-two-factor.module-_jYo6xXr.mjs} +8 -11
  74. package/fesm2022/acorex-platform-module-auth-client-two-factor.module-_jYo6xXr.mjs.map +1 -0
  75. package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-Dl0os5lD.mjs → acorex-platform-module-auth-client-view-login-history.command-ovj5rdHL.mjs} +13 -11
  76. package/fesm2022/acorex-platform-module-auth-client-view-login-history.command-ovj5rdHL.mjs.map +1 -0
  77. package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
  78. package/package.json +1 -1
  79. package/types/acorex-platform-module-auth-client-contracts.d.ts +43 -9
  80. package/types/acorex-platform-module-auth-client.d.ts +63 -56
  81. package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-B7tIKOw6.mjs.map +0 -1
  82. package/fesm2022/acorex-platform-module-auth-client-app-chooser.component-Cm2ZagaI.mjs +0 -67
  83. package/fesm2022/acorex-platform-module-auth-client-app-chooser.component-Cm2ZagaI.mjs.map +0 -1
  84. package/fesm2022/acorex-platform-module-auth-client-blank.layout-BRGgntib.mjs.map +0 -1
  85. package/fesm2022/acorex-platform-module-auth-client-change-password.command-ZyXAjUKw.mjs.map +0 -1
  86. package/fesm2022/acorex-platform-module-auth-client-change-photo.command-BC8lw--F.mjs +0 -192
  87. package/fesm2022/acorex-platform-module-auth-client-change-photo.command-BC8lw--F.mjs.map +0 -1
  88. package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-B-mVlXxg.mjs.map +0 -1
  89. package/fesm2022/acorex-platform-module-auth-client-edit-signature.command-CcTJJwAX.mjs.map +0 -1
  90. package/fesm2022/acorex-platform-module-auth-client-lock-screen.command-41QnG1TQ.mjs.map +0 -1
  91. package/fesm2022/acorex-platform-module-auth-client-login.module-DYtNYzF6.mjs.map +0 -1
  92. package/fesm2022/acorex-platform-module-auth-client-master.layout-DpdD9kgk.mjs +0 -24
  93. package/fesm2022/acorex-platform-module-auth-client-master.layout-DpdD9kgk.mjs.map +0 -1
  94. package/fesm2022/acorex-platform-module-auth-client-oauth-callback.component-BspBH4Ul.mjs.map +0 -1
  95. package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-CXSGuqYp.mjs +0 -196
  96. package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-CXSGuqYp.mjs.map +0 -1
  97. package/fesm2022/acorex-platform-module-auth-client-password.component-BuqUhET7.mjs +0 -59
  98. package/fesm2022/acorex-platform-module-auth-client-password.component-BuqUhET7.mjs.map +0 -1
  99. package/fesm2022/acorex-platform-module-auth-client-password.component-Cihg82vM.mjs.map +0 -1
  100. package/fesm2022/acorex-platform-module-auth-client-profile-activity-chart.component-B8lBvZsA.mjs.map +0 -1
  101. package/fesm2022/acorex-platform-module-auth-client-profile-coming-soon.command-DBbFbzAx.mjs.map +0 -1
  102. package/fesm2022/acorex-platform-module-auth-client-profile-page.component-tbhf7K0V.mjs +0 -446
  103. package/fesm2022/acorex-platform-module-auth-client-profile-page.component-tbhf7K0V.mjs.map +0 -1
  104. package/fesm2022/acorex-platform-module-auth-client-register-password.component-hSJyEA6Q.mjs.map +0 -1
  105. package/fesm2022/acorex-platform-module-auth-client-register.module-DXm6AQpo.mjs.map +0 -1
  106. package/fesm2022/acorex-platform-module-auth-client-remove-pin-code.command-zUZooOtv.mjs.map +0 -1
  107. package/fesm2022/acorex-platform-module-auth-client-result.component-DYJaB-FD.mjs.map +0 -1
  108. package/fesm2022/acorex-platform-module-auth-client-routes-REjaWcqY.mjs +0 -9
  109. package/fesm2022/acorex-platform-module-auth-client-routes-REjaWcqY.mjs.map +0 -1
  110. package/fesm2022/acorex-platform-module-auth-client-session-lock-overlay.component-DqXGuIgN.mjs +0 -346
  111. package/fesm2022/acorex-platform-module-auth-client-session-lock-overlay.component-DqXGuIgN.mjs.map +0 -1
  112. package/fesm2022/acorex-platform-module-auth-client-set-pin-code.command-DXTVbrS0.mjs +0 -33
  113. package/fesm2022/acorex-platform-module-auth-client-set-pin-code.command-DXTVbrS0.mjs.map +0 -1
  114. package/fesm2022/acorex-platform-module-auth-client-set-pin-code.component-5TxB6aFi.mjs.map +0 -1
  115. package/fesm2022/acorex-platform-module-auth-client-settings.provider-n1qbs6e1.mjs.map +0 -1
  116. package/fesm2022/acorex-platform-module-auth-client-show-profile-command-CxMz1yy-.mjs.map +0 -1
  117. package/fesm2022/acorex-platform-module-auth-client-signout-command-DqqrP5pk.mjs.map +0 -1
  118. package/fesm2022/acorex-platform-module-auth-client-tenant-chooser.component-ihsqCJKN.mjs +0 -59
  119. package/fesm2022/acorex-platform-module-auth-client-tenant-chooser.component-ihsqCJKN.mjs.map +0 -1
  120. package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-CiENsIEh.mjs +0 -40
  121. package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-CiENsIEh.mjs.map +0 -1
  122. package/fesm2022/acorex-platform-module-auth-client-two-factor.module-BJqdeuAz.mjs.map +0 -1
  123. package/fesm2022/acorex-platform-module-auth-client-view-login-history.command-Dl0os5lD.mjs.map +0 -1
@@ -1,17 +1,14 @@
1
1
  import { AXPMultiLanguageString, AXPActionMenuItem } from '@acorex-platform/framework-shared/core';
2
2
  import * as i0 from '@angular/core';
3
3
  import { InjectionToken } from '@angular/core';
4
- import * as _acorex_platform_framework_client_core from '@acorex-platform/framework-client/core';
5
- import { AXPDataSourceDefinitionProvider, AXPDataSourceDefinition } from '@acorex-platform/framework-client/core';
6
- import * as _acorex_platform_module_auth_client from '@acorex-platform/module-auth-client';
7
4
  import { AXMSecurityManagementDeviceSessionsEntityModel } from '@acorex-platform/module-security-management-client/contracts';
8
5
  import { AXDataSourceFilterOption } from '@acorex/cdk/common';
9
- import * as i2 from '@acorex-platform/framework-client/common';
6
+ import * as i2$1 from '@acorex-platform/framework-client/common';
10
7
  import { AXPErrorHandler } from '@acorex-platform/framework-client/common';
11
- import { AuthConfig } from 'angular-oauth2-oidc';
12
8
  import * as i1 from '@angular/router';
13
9
  import { CanActivateFn } from '@angular/router';
14
10
  import * as i1$2 from '@angular/common';
11
+ import * as i2 from '@acorex-platform/framework-client/core';
15
12
  import * as i1$1 from '@acorex/core/validation';
16
13
 
17
14
  declare const PROFILE_PAGE_GROUPS_HOOK = "profile-page.groups";
@@ -22,6 +19,8 @@ type AXPUserProfileGroupsPayload = {
22
19
  };
23
20
  type AXPUserProfileSectionsPayload = {
24
21
  sections: AXPUserProfileSection[];
22
+ /** When set, hooks should only contribute or enrich this tab group. */
23
+ groupId?: string;
25
24
  };
26
25
  type AXPUserProfileHeaderMetaPayload = {
27
26
  items: AXPUserProfileHeaderMetaItem[];
@@ -96,6 +95,8 @@ interface AXPUserProfileSectionInsight {
96
95
  icon?: string;
97
96
  /** Plain line shown when no date is set. */
98
97
  text?: string;
98
+ /** Field label shown as tooltip on the insight badge. */
99
+ title?: AXPMultiLanguageString;
99
100
  /** Date value formatted in the template when valid. */
100
101
  date?: Date;
101
102
  /** Optional prefix shown before a formatted relative date. */
@@ -113,30 +114,23 @@ interface AXPUserProfileHeaderMetaItem {
113
114
  declare function resolveUserProfileSectionContent(section: AXPUserProfileSection): AXPUserProfileSectionContent;
114
115
  /** Whether the group renders a full-tab component instead of sections. */
115
116
  declare function isUserProfileGroupComponent(group: AXPUserProfileGroup): boolean;
117
+ /** True when section hooks should run for `groupId` (all groups when the payload omits it). */
118
+ declare function isUserProfileSectionsGroupRequested(payload: AXPUserProfileSectionsPayload, groupId: string): boolean;
116
119
  /** Visible actions on a section card. */
117
120
  declare function visibleUserProfileSectionActions(actions: AXPUserProfileSectionAction[]): AXPUserProfileSectionAction[];
118
121
  /** Default card action: explicit `default`, otherwise the first visible action. */
119
122
  declare function resolveDefaultUserProfileSectionAction(actions: AXPUserProfileSectionAction[]): AXPUserProfileSectionAction | undefined;
120
123
 
121
- type AXPUserAvatarStorageTarget = {
122
- kind: 'person';
123
- personId: string;
124
- userId: string;
125
- } | {
126
- kind: 'user';
127
- userId: string;
128
- };
129
124
  /**
130
125
  * Client-side profile photo operations for self-service flows.
131
- * Bidirectional Person ↔ User sync runs on the server via HCM avatar middleware.
126
+ * Canonical store is SecurityManagement.User.avatar; Person.image is mirrored
127
+ * on the server by HCM avatar sync middleware.
132
128
  */
133
129
  declare class AXPUserAvatarSyncService {
134
130
  private readonly entityService;
135
131
  private readonly fileStorage;
136
132
  private readonly sessionService;
137
- private readonly identityService;
138
133
  private readonly userAvatarService;
139
- resolveStorageTarget(userId: string): Promise<AXPUserAvatarStorageTarget>;
140
134
  getCurrentAvatarRef(userId: string): Promise<string | null>;
141
135
  getCurrentAvatarBlob(userId: string): Promise<Blob | null>;
142
136
  uploadAndSetAvatar(userId: string, file: File): Promise<string>;
@@ -144,22 +138,11 @@ declare class AXPUserAvatarSyncService {
144
138
  /** Keeps session, avatar cache, and shell avatars in sync after any avatar change. */
145
139
  notifyAvatarChanged(userId: string, avatar: string | null): Promise<void>;
146
140
  private refreshClientDisplay;
147
- private personData;
148
141
  private userData;
149
- private findPersonByUserId;
150
- private safeRemoveFile;
151
142
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPUserAvatarSyncService, never>;
152
143
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPUserAvatarSyncService>;
153
144
  }
154
145
 
155
- /**
156
- * Registers auth module data source definitions.
157
- */
158
- declare class AXMAuthDataSourceProvider implements AXPDataSourceDefinitionProvider {
159
- private readonly userActivity;
160
- items(): Promise<_acorex_platform_framework_client_core.AXPDataSourceDefinition<_acorex_platform_module_auth_client.AXPUserActivityDataSourceItem>[]>;
161
- }
162
-
163
146
  type AXPUserActivityLevel = 0 | 1 | 2 | 3 | 4;
164
147
  interface AXPUserActivityDay {
165
148
  date: string;
@@ -175,7 +158,7 @@ interface AXPUserActivityStats {
175
158
  avgPerWeek: number;
176
159
  total: number;
177
160
  }
178
- /** Single payload row returned by {@link AXMAuthDataSourceKeys.UserActivity}. */
161
+ /** Single payload row returned by Auth:GetUserActivity. */
179
162
  interface AXPUserActivityDataSourceItem {
180
163
  id: string;
181
164
  userId: string;
@@ -207,13 +190,6 @@ declare function extractUserActivityUserId(filter: AXDataSourceFilterOption | un
207
190
  declare function extractUserActivityStartDate(filter: AXDataSourceFilterOption | undefined): Date | undefined;
208
191
  declare function extractUserActivityEndDate(filter: AXDataSourceFilterOption | undefined): Date | undefined;
209
192
 
210
- /** Contribution-style user activity heatmap derived from device session sign-in dates. */
211
- declare class AXMUserActivityDataSourceDefinition implements AXPDataSourceDefinitionProvider {
212
- private readonly entityService;
213
- items(): Promise<AXPDataSourceDefinition<AXPUserActivityDataSourceItem>[]>;
214
- private loadUserSessions;
215
- }
216
-
217
193
  declare class AXMAuthErrorHandler implements AXPErrorHandler {
218
194
  private router;
219
195
  private layoutService;
@@ -230,26 +206,28 @@ declare enum AXMAuthenticationTypes {
230
206
  EmailCode = 4,
231
207
  MobileCode = 5
232
208
  }
233
- declare const AXM_AUTH_CONFIG_TOKEN: InjectionToken<AXMAuthConfigs>;
209
+ /** Map persisted credential-type setting values to {@link AXMAuthenticationTypes}. */
210
+ declare function parseAuthCredentialType(value: unknown): AXMAuthenticationTypes;
211
+ /** Optional deploy-time OAuth client overrides (defaults live in platform auth strategies). */
212
+ interface AXMAuthClientConfig {
213
+ clientId?: string;
214
+ client_id?: string;
215
+ redirectUri?: string;
216
+ scope?: string;
217
+ issuer?: string;
218
+ }
219
+ /**
220
+ * Compile-time / environment auth wiring only.
221
+ * Sign-in page branding, sign-up policy, credential type, and default strategy
222
+ * come from platform (P) settings — not this token.
223
+ */
234
224
  interface AXMAuthConfigs {
235
- type: AXMAuthenticationTypes;
236
- authConfig?: AuthConfig;
225
+ authConfig?: AXMAuthClientConfig;
237
226
  baseUrl?: string;
238
- end_url?: string;
239
- signup?: {
240
- enable: boolean;
241
- url?: string;
242
- };
243
- signinPage?: {
244
- description: string;
245
- slogan: string;
246
- };
247
- defaultStrategyName?: string;
248
- idleTimeout?: number;
249
227
  }
228
+ declare const AXM_AUTH_CONFIG_TOKEN: InjectionToken<AXMAuthConfigs>;
250
229
  declare const AXMDefaultAuthConfigs: AXMAuthConfigs;
251
230
  declare function configAuthModule(config?: Partial<AXMAuthConfigs>): AXMAuthConfigs;
252
-
253
231
  /**
254
232
  * Injection token for login page guard.
255
233
  * Apps can provide their own custom guard by providing this token.
@@ -257,9 +235,26 @@ declare function configAuthModule(config?: Partial<AXMAuthConfigs>): AXMAuthConf
257
235
  */
258
236
  declare const AXM_LOGIN_GUARD_TOKEN: InjectionToken<CanActivateFn>;
259
237
 
238
+ /**
239
+ * Reads public platform auth UI settings loaded during app startup.
240
+ * Slogan and description are multi-language strings.
241
+ */
242
+ declare class AXMAuthPlatformSettingsService {
243
+ private readonly settings;
244
+ slogan(): AXPMultiLanguageString;
245
+ description(): AXPMultiLanguageString;
246
+ signupEnabled(): boolean;
247
+ signupUrl(): string;
248
+ credentialType(): AXMAuthenticationTypes;
249
+ defaultStrategyName(): string;
250
+ private readMls;
251
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMAuthPlatformSettingsService, never>;
252
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMAuthPlatformSettingsService>;
253
+ }
254
+
260
255
  declare class AXPAccountModule {
261
256
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPAccountModule, never>;
262
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXPAccountModule, never, [typeof i1.RouterModule, typeof _acorex_platform_framework_client_core.AXPComponentSlotModule], never>;
257
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXPAccountModule, never, [typeof i1.RouterModule, typeof i2.AXPComponentSlotModule], never>;
263
258
  static ɵinj: i0.ɵɵInjectorDeclaration<AXPAccountModule>;
264
259
  }
265
260
 
@@ -272,13 +267,15 @@ declare class AXMAuthValidationRulesModule {
272
267
  declare class AXMAuthModule {
273
268
  constructor();
274
269
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMAuthModule, never>;
275
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMAuthModule, never, [typeof i1$2.CommonModule, typeof i2.AXPCommonModule, typeof i1.RouterModule, typeof AXPAccountModule, typeof AXMAuthValidationRulesModule], never>;
270
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMAuthModule, never, [typeof i1$2.CommonModule, typeof i2$1.AXPCommonModule, typeof i1.RouterModule, typeof AXPAccountModule, typeof AXMAuthValidationRulesModule], never>;
276
271
  static ɵinj: i0.ɵɵInjectorDeclaration<AXMAuthModule>;
277
272
  }
278
273
 
279
274
  /**
280
- * Guard for login page. Clears incomplete sessions so a prior OAuth attempt
281
- * does not leak into the next username/password sign-in.
275
+ * Login page guard.
276
+ * If the user already has a cookie session but has not finished tenant/app binding,
277
+ * send them to the chooser — never destroy the session.
278
+ * If the session is fully bound, send them home (do not show login again).
282
279
  */
283
280
  declare const canActivateLogin: CanActivateFn;
284
281
 
@@ -311,6 +308,7 @@ declare class AXPIdleLockService {
311
308
  private overlayRef;
312
309
  private overlayOpening;
313
310
  private enableTask;
311
+ private pendingLockScreenOffer;
314
312
  private readonly sessionService;
315
313
  private readonly settingsService;
316
314
  private readonly entityService;
@@ -325,13 +323,22 @@ declare class AXPIdleLockService {
325
323
  unlock(): void;
326
324
  /** Locks the session overlay when Lock When Idle is enabled. */
327
325
  lockScreen(): void;
326
+ /** Marks that PIN setup succeeded so the caller can offer lock-screen activation. */
327
+ requestLockScreenOffer(): void;
328
+ /** Returns whether PIN setup requested a lock-screen offer, then clears the flag. */
329
+ consumeLockScreenOffer(): boolean;
328
330
  refreshPinState(): Promise<void>;
331
+ /** Refreshes lock-when-idle settings only (no User entity fetch). Used by profile menu hooks. */
332
+ refreshLockMenuState(): Promise<void>;
329
333
  /** Refreshes lock settings and PIN state for menu/commands. */
330
334
  refreshLockState(): Promise<void>;
331
335
  /** Restores the lock overlay when the persisted session is locked. */
332
336
  restoreFromPersistedSession(): Promise<void>;
333
337
  /** Re-evaluates idle lock after the user sets or changes their security PIN. */
334
338
  notifyPinChanged(): Promise<void>;
339
+ /** PIN/password entity reads require a fully authorized app context, except when restoring a lock overlay. */
340
+ private canLoadUserSecurityFields;
341
+ private ensurePinStateLoaded;
335
342
  private scheduleEnable;
336
343
  private runEnable;
337
344
  /** Idle lock is active when enabled, or when a persisted lock must be restored/unlocked. */
@@ -386,5 +393,5 @@ declare class AXPAuthPasswordChangeTrackingService {
386
393
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPAuthPasswordChangeTrackingService>;
387
394
  }
388
395
 
389
- export { AUTH_LOGIN_EXTERNAL_PROVIDERS_SLOT, AUTH_USER_ACTIVITY_DEFAULT_WEEKS, AXMAuthDataSourceProvider, AXMAuthErrorHandler, AXMAuthModule, AXMAuthenticationTypes, AXMDefaultAuthConfigs, AXMUserActivityDataSourceDefinition, AXM_AUTH_CONFIG_TOKEN, AXM_LOGIN_GUARD_TOKEN, AXPAuthPasswordChangeTrackingService, AXPIdleLockService, AXPLoginExternalProvidersComponent, AXPLoginHistoryService, AXPUserAvatarSyncService, PROFILE_PAGE_GROUPS_HOOK, PROFILE_PAGE_HEADER_META_HOOK, PROFILE_PAGE_SECTIONS_HOOK, aggregateDailySessionCounts, buildUserActivityDataSourceItem, buildUserActivityWeeks, canActivateLogin, computeUserActivityStats, configAuthModule, countToActivityLevel, extractUserActivityEndDate, extractUserActivityStartDate, extractUserActivityUserId, formatCompactActivityCount, isUserProfileGroupComponent, resolveDefaultUserActivityDateRange, resolveDefaultUserProfileSectionAction, resolveUserProfileSectionContent, visibleUserProfileSectionActions };
390
- export type { AXMAuthConfigs, AXPLoginHistoryEntry, AXPUserActivityDataSourceItem, AXPUserActivityDay, AXPUserActivityLevel, AXPUserActivityLoadParams, AXPUserActivityStats, AXPUserActivityWeek, AXPUserAvatarStorageTarget, AXPUserProfileGroup, AXPUserProfileGroupComponentContent, AXPUserProfileGroupContent, AXPUserProfileGroupSectionsContent, AXPUserProfileGroupsPayload, AXPUserProfileHeaderMetaItem, AXPUserProfileHeaderMetaPayload, AXPUserProfileSection, AXPUserProfileSectionAction, AXPUserProfileSectionCardContent, AXPUserProfileSectionComponentContent, AXPUserProfileSectionContent, AXPUserProfileSectionInsight, AXPUserProfileSectionLayout, AXPUserProfileSectionsPayload };
396
+ export { AUTH_LOGIN_EXTERNAL_PROVIDERS_SLOT, AUTH_USER_ACTIVITY_DEFAULT_WEEKS, AXMAuthErrorHandler, AXMAuthModule, AXMAuthPlatformSettingsService, AXMAuthenticationTypes, AXMDefaultAuthConfigs, AXM_AUTH_CONFIG_TOKEN, AXM_LOGIN_GUARD_TOKEN, AXPAuthPasswordChangeTrackingService, AXPIdleLockService, AXPLoginExternalProvidersComponent, AXPLoginHistoryService, AXPUserAvatarSyncService, PROFILE_PAGE_GROUPS_HOOK, PROFILE_PAGE_HEADER_META_HOOK, PROFILE_PAGE_SECTIONS_HOOK, aggregateDailySessionCounts, buildUserActivityDataSourceItem, buildUserActivityWeeks, canActivateLogin, computeUserActivityStats, configAuthModule, countToActivityLevel, extractUserActivityEndDate, extractUserActivityStartDate, extractUserActivityUserId, formatCompactActivityCount, isUserProfileGroupComponent, isUserProfileSectionsGroupRequested, parseAuthCredentialType, resolveDefaultUserActivityDateRange, resolveDefaultUserProfileSectionAction, resolveUserProfileSectionContent, visibleUserProfileSectionActions };
397
+ export type { AXMAuthClientConfig, AXMAuthConfigs, AXPLoginHistoryEntry, AXPUserActivityDataSourceItem, AXPUserActivityDay, AXPUserActivityLevel, AXPUserActivityLoadParams, AXPUserActivityStats, AXPUserActivityWeek, AXPUserProfileGroup, AXPUserProfileGroupComponentContent, AXPUserProfileGroupContent, AXPUserProfileGroupSectionsContent, AXPUserProfileGroupsPayload, AXPUserProfileHeaderMetaItem, AXPUserProfileHeaderMetaPayload, AXPUserProfileSection, AXPUserProfileSectionAction, AXPUserProfileSectionCardContent, AXPUserProfileSectionComponentContent, AXPUserProfileSectionContent, AXPUserProfileSectionInsight, AXPUserProfileSectionLayout, AXPUserProfileSectionsPayload };