@acorex-platform/module-security-management-server 0.0.18 → 2.0.0-next.42
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/contracts/src/AXM_USER_ACCESS_STATE_DEFINITION_KEY.js.map +1 -1
- package/contracts/src/AXM_USER_EFFECTIVE_STATE_DEFINITION_KEY.js.map +1 -1
- package/contracts/src/ROLE_PERMISSIONS_PAGE_COMPONENT_KEY.d.ts +2 -0
- package/contracts/src/ROLE_PERMISSIONS_PAGE_COMPONENT_KEY.js +6 -0
- package/contracts/src/ROLE_PERMISSIONS_PAGE_COMPONENT_KEY.js.map +1 -0
- package/contracts/src/USER_ROLES_PAGE_COMPONENT_KEY.d.ts +1 -0
- package/contracts/src/USER_ROLES_PAGE_COMPONENT_KEY.js +5 -0
- package/contracts/src/USER_ROLES_PAGE_COMPONENT_KEY.js.map +1 -0
- package/contracts/src/create-application-role-rows.util.d.ts +15 -0
- package/contracts/src/create-application-role-rows.util.js +67 -0
- package/contracts/src/create-application-role-rows.util.js.map +1 -0
- package/contracts/src/device-session-admin-scope.d.ts +15 -0
- package/contracts/src/device-session-admin-scope.js +16 -0
- package/contracts/src/device-session-admin-scope.js.map +1 -0
- package/contracts/src/entities/device-sessions/device-sessions.entity.js +50 -1
- package/contracts/src/entities/device-sessions/device-sessions.entity.js.map +1 -1
- package/contracts/src/entities/device-sessions/device-sessions.types.d.ts +7 -0
- package/contracts/src/entities/device-sessions/device-sessions.types.js.map +1 -1
- package/contracts/src/entities/device-sessions/index.d.ts +0 -1
- package/contracts/src/entities/device-sessions/index.js +0 -1
- package/contracts/src/entities/device-sessions/index.js.map +1 -1
- package/contracts/src/entities/identity-provider/identity-provider.entity.d.ts +2 -0
- package/contracts/src/entities/identity-provider/identity-provider.entity.js +453 -0
- package/contracts/src/entities/identity-provider/identity-provider.entity.js.map +1 -0
- package/contracts/src/entities/identity-provider/identity-provider.types.d.ts +61 -0
- package/contracts/src/entities/identity-provider/identity-provider.types.js +14 -0
- package/contracts/src/entities/identity-provider/identity-provider.types.js.map +1 -0
- package/contracts/src/entities/identity-provider/index.d.ts +1 -0
- package/contracts/src/entities/identity-provider/index.js +5 -0
- package/contracts/src/entities/identity-provider/index.js.map +1 -0
- package/contracts/src/entities/index.d.ts +4 -0
- package/contracts/src/entities/index.js +4 -0
- package/contracts/src/entities/index.js.map +1 -1
- package/contracts/src/entities/policy/index.d.ts +0 -1
- package/contracts/src/entities/policy/index.js +0 -1
- package/contracts/src/entities/policy/index.js.map +1 -1
- package/contracts/src/entities/policy/policy.entity.js +15 -0
- package/contracts/src/entities/policy/policy.entity.js.map +1 -1
- package/contracts/src/entities/policy/policy.types.js.map +1 -1
- package/contracts/src/entities/profile/index.d.ts +0 -1
- package/contracts/src/entities/profile/index.js +0 -1
- package/contracts/src/entities/profile/index.js.map +1 -1
- package/contracts/src/entities/profile/profile.entity.js +15 -0
- package/contracts/src/entities/profile/profile.entity.js.map +1 -1
- package/contracts/src/entities/profile/profile.types.js.map +1 -1
- package/contracts/src/entities/role-permission/index.d.ts +1 -0
- package/contracts/src/entities/role-permission/index.js +5 -0
- package/contracts/src/entities/role-permission/index.js.map +1 -0
- package/contracts/src/entities/role-permission/role-permission.entity.d.ts +2 -0
- package/contracts/src/entities/role-permission/role-permission.entity.js +163 -0
- package/contracts/src/entities/role-permission/role-permission.entity.js.map +1 -0
- package/contracts/src/entities/role-permission/role-permission.types.d.ts +11 -0
- package/contracts/src/entities/role-permission/role-permission.types.js +5 -0
- package/contracts/src/entities/role-permission/role-permission.types.js.map +1 -0
- package/contracts/src/entities/roles/index.d.ts +0 -1
- package/contracts/src/entities/roles/index.js +0 -1
- package/contracts/src/entities/roles/index.js.map +1 -1
- package/contracts/src/entities/roles/roles.entity.js +73 -144
- package/contracts/src/entities/roles/roles.entity.js.map +1 -1
- package/contracts/src/entities/roles/roles.types.d.ts +4 -1
- package/contracts/src/entities/roles/roles.types.js.map +1 -1
- package/contracts/src/entities/user-role/index.d.ts +1 -0
- package/{src/lib/seed/tenant → contracts/src/entities/user-role}/index.js +1 -1
- package/contracts/src/entities/user-role/index.js.map +1 -0
- package/contracts/src/entities/user-role/user-role.entity.d.ts +2 -0
- package/contracts/src/entities/user-role/user-role.entity.js +164 -0
- package/contracts/src/entities/user-role/user-role.entity.js.map +1 -0
- package/contracts/src/entities/user-role/user-role.types.d.ts +11 -0
- package/contracts/src/entities/user-role/user-role.types.js +5 -0
- package/contracts/src/entities/user-role/user-role.types.js.map +1 -0
- package/contracts/src/entities/user-two-factor/index.d.ts +2 -0
- package/contracts/src/entities/user-two-factor/index.js +8 -0
- package/contracts/src/entities/user-two-factor/index.js.map +1 -0
- package/contracts/src/entities/user-two-factor/user-two-factor.entity.d.ts +6 -0
- package/contracts/src/entities/user-two-factor/user-two-factor.entity.js +103 -0
- package/contracts/src/entities/user-two-factor/user-two-factor.entity.js.map +1 -0
- package/contracts/src/entities/user-two-factor/user-two-factor.types.d.ts +24 -0
- package/contracts/src/entities/user-two-factor/user-two-factor.types.js +4 -0
- package/contracts/src/entities/user-two-factor/user-two-factor.types.js.map +1 -0
- package/contracts/src/entities/users/index.d.ts +1 -1
- package/contracts/src/entities/users/index.js +1 -1
- package/contracts/src/entities/users/index.js.map +1 -1
- package/contracts/src/entities/users/user-provisioning-list-actions.d.ts +8 -0
- package/contracts/src/entities/users/user-provisioning-list-actions.js +95 -0
- package/contracts/src/entities/users/user-provisioning-list-actions.js.map +1 -0
- package/contracts/src/entities/users/users.entity.js +244 -83
- package/contracts/src/entities/users/users.entity.js.map +1 -1
- package/contracts/src/entities/users/users.types.d.ts +15 -0
- package/contracts/src/entities/users/users.types.js.map +1 -1
- package/contracts/src/entity-catalog.d.ts +7 -0
- package/contracts/src/entity-catalog.js +28 -0
- package/contracts/src/entity-catalog.js.map +1 -0
- package/contracts/src/entity-entry.device-sessions.d.ts +1 -0
- package/contracts/src/entity-entry.device-sessions.js +6 -0
- package/contracts/src/entity-entry.device-sessions.js.map +1 -0
- package/contracts/src/entity-entry.identity-provider.d.ts +1 -0
- package/contracts/src/entity-entry.identity-provider.js +6 -0
- package/contracts/src/entity-entry.identity-provider.js.map +1 -0
- package/contracts/src/entity-entry.policy.d.ts +1 -0
- package/contracts/src/entity-entry.policy.js +6 -0
- package/contracts/src/entity-entry.policy.js.map +1 -0
- package/contracts/src/entity-entry.profile.d.ts +1 -0
- package/contracts/src/entity-entry.profile.js +6 -0
- package/contracts/src/entity-entry.profile.js.map +1 -0
- package/contracts/src/entity-entry.role-permission.d.ts +1 -0
- package/contracts/src/entity-entry.role-permission.js +6 -0
- package/contracts/src/entity-entry.role-permission.js.map +1 -0
- package/contracts/src/entity-entry.roles.d.ts +1 -0
- package/contracts/src/entity-entry.roles.js +6 -0
- package/contracts/src/entity-entry.roles.js.map +1 -0
- package/contracts/src/entity-entry.user-role.d.ts +1 -0
- package/contracts/src/entity-entry.user-role.js +6 -0
- package/contracts/src/entity-entry.user-role.js.map +1 -0
- package/contracts/src/entity-entry.user-two-factor.d.ts +1 -0
- package/contracts/src/entity-entry.user-two-factor.js +6 -0
- package/contracts/src/entity-entry.user-two-factor.js.map +1 -0
- package/contracts/src/entity-entry.users.d.ts +1 -0
- package/contracts/src/entity-entry.users.js +6 -0
- package/contracts/src/entity-entry.users.js.map +1 -0
- package/contracts/src/features.keys.d.ts +4 -0
- package/contracts/src/features.keys.js +4 -0
- package/contracts/src/features.keys.js.map +1 -1
- package/contracts/src/index.d.ts +10 -1
- package/contracts/src/index.js +10 -1
- package/contracts/src/index.js.map +1 -1
- package/contracts/src/invite-application-role-rows.util.d.ts +16 -0
- package/contracts/src/invite-application-role-rows.util.js +68 -0
- package/contracts/src/invite-application-role-rows.util.js.map +1 -0
- package/contracts/src/invite-assignable-roles.util.d.ts +34 -0
- package/contracts/src/invite-assignable-roles.util.js +75 -0
- package/contracts/src/invite-assignable-roles.util.js.map +1 -0
- package/contracts/src/lib/context.definitions.d.ts +2 -0
- package/contracts/src/lib/context.definitions.js +15 -0
- package/contracts/src/lib/context.definitions.js.map +1 -0
- package/contracts/src/manifest.d.ts +6 -0
- package/contracts/src/manifest.js +24 -0
- package/contracts/src/manifest.js.map +1 -0
- package/contracts/src/menu.keys.d.ts +1 -0
- package/contracts/src/menu.keys.js +1 -0
- package/contracts/src/menu.keys.js.map +1 -1
- package/contracts/src/permission.keys.d.ts +48 -18
- package/contracts/src/permission.keys.js +49 -21
- package/contracts/src/permission.keys.js.map +1 -1
- package/contracts/src/resolve-user-effective-state.js.map +1 -1
- package/contracts/src/root-config.d.ts +33 -0
- package/contracts/src/root-config.js +33 -0
- package/contracts/src/root-config.js.map +1 -1
- package/contracts/src/server-commands.d.ts +322 -0
- package/contracts/src/server-commands.js +77 -1
- package/contracts/src/server-commands.js.map +1 -1
- package/contracts/src/settings.keys.d.ts +16 -0
- package/contracts/src/settings.keys.js +21 -0
- package/contracts/src/settings.keys.js.map +1 -0
- package/contracts/src/user-access-state.js.map +1 -1
- package/contracts/src/user-effective-state.js.map +1 -1
- package/contracts/src/user-invitation.d.ts +41 -0
- package/contracts/src/user-invitation.js +18 -0
- package/contracts/src/user-invitation.js.map +1 -0
- package/contracts/src/user-password-reset.js.map +1 -1
- package/package.json +16 -18
- package/server/src/index.d.ts +3 -0
- package/server/src/index.js +11 -0
- package/server/src/index.js.map +1 -0
- package/server/src/lib/effective-access-history/effective-access-history.service.d.ts +35 -0
- package/server/src/lib/effective-access-history/effective-access-history.service.js +486 -0
- package/server/src/lib/effective-access-history/effective-access-history.service.js.map +1 -0
- package/server/src/lib/effective-access-history/effective-access-history.types.d.ts +64 -0
- package/server/src/lib/effective-access-history/effective-access-history.types.js +5 -0
- package/server/src/lib/effective-access-history/effective-access-history.types.js.map +1 -0
- package/server/src/lib/effective-access-history/version-as-of.util.d.ts +37 -0
- package/server/src/lib/effective-access-history/version-as-of.util.js +167 -0
- package/server/src/lib/effective-access-history/version-as-of.util.js.map +1 -0
- package/server/src/lib/entities/index.d.ts +1 -0
- package/server/src/lib/entities/index.js +5 -0
- package/{src/lib/seed/tenant → server/src/lib/entities}/index.js.map +1 -1
- package/server/src/lib/entities/security-management.entity-catalog.d.ts +1 -0
- package/server/src/lib/entities/security-management.entity-catalog.js +12 -0
- package/server/src/lib/entities/security-management.entity-catalog.js.map +1 -0
- package/server/src/lib/handlers/security-report.handlers.d.ts +36 -0
- package/server/src/lib/handlers/security-report.handlers.js +164 -0
- package/server/src/lib/handlers/security-report.handlers.js.map +1 -0
- package/server/src/lib/identity-provider/auth-oauth-clients.constants.d.ts +5 -0
- package/server/src/lib/identity-provider/auth-oauth-clients.constants.js +11 -0
- package/server/src/lib/identity-provider/auth-oauth-clients.constants.js.map +1 -0
- package/server/src/lib/identity-provider/identity-provider-catalog.service.d.ts +20 -0
- package/server/src/lib/identity-provider/identity-provider-catalog.service.js +169 -0
- package/server/src/lib/identity-provider/identity-provider-catalog.service.js.map +1 -0
- package/server/src/lib/identity-provider/identity-provider-ids.constants.d.ts +8 -0
- package/server/src/lib/identity-provider/identity-provider-ids.constants.js +19 -0
- package/server/src/lib/identity-provider/identity-provider-ids.constants.js.map +1 -0
- package/server/src/lib/identity-provider/identity-provider-stub.bootstrap.d.ts +12 -0
- package/server/src/lib/identity-provider/identity-provider-stub.bootstrap.js +48 -0
- package/server/src/lib/identity-provider/identity-provider-stub.bootstrap.js.map +1 -0
- package/server/src/lib/identity-provider/identity-provider.constants.d.ts +1 -0
- package/server/src/lib/identity-provider/identity-provider.constants.js +7 -0
- package/server/src/lib/identity-provider/identity-provider.constants.js.map +1 -0
- package/server/src/lib/middlewares/device-sessions-active.middleware.d.ts +15 -0
- package/server/src/lib/middlewares/device-sessions-active.middleware.js +76 -0
- package/server/src/lib/middlewares/device-sessions-active.middleware.js.map +1 -0
- package/server/src/lib/middlewares/device-sessions-app-scope.middleware.d.ts +29 -0
- package/server/src/lib/middlewares/device-sessions-app-scope.middleware.js +137 -0
- package/server/src/lib/middlewares/device-sessions-app-scope.middleware.js.map +1 -0
- package/server/src/lib/middlewares/device-sessions-app-scope.util.d.ts +41 -0
- package/server/src/lib/middlewares/device-sessions-app-scope.util.js +69 -0
- package/server/src/lib/middlewares/device-sessions-app-scope.util.js.map +1 -0
- package/server/src/lib/middlewares/device-sessions-token-revoke.middleware.d.ts +18 -0
- package/server/src/lib/middlewares/device-sessions-token-revoke.middleware.js +90 -0
- package/server/src/lib/middlewares/device-sessions-token-revoke.middleware.js.map +1 -0
- package/server/src/lib/middlewares/user-assigned-roles.middleware.d.ts +36 -0
- package/server/src/lib/middlewares/user-assigned-roles.middleware.js +359 -0
- package/server/src/lib/middlewares/user-assigned-roles.middleware.js.map +1 -0
- package/{src → server/src}/lib/middlewares/user-effective-state.middleware.js +1 -1
- package/server/src/lib/middlewares/user-effective-state.middleware.js.map +1 -0
- package/server/src/lib/middlewares/user-invitation-list.middleware.d.ts +32 -0
- package/server/src/lib/middlewares/user-invitation-list.middleware.js +250 -0
- package/server/src/lib/middlewares/user-invitation-list.middleware.js.map +1 -0
- package/server/src/lib/middlewares/user-profile-write.middleware.d.ts +18 -0
- package/server/src/lib/middlewares/user-profile-write.middleware.js +206 -0
- package/server/src/lib/middlewares/user-profile-write.middleware.js.map +1 -0
- package/server/src/lib/password-reset/change-own-password.command.d.ts +8 -0
- package/server/src/lib/password-reset/change-own-password.command.js +38 -0
- package/server/src/lib/password-reset/change-own-password.command.js.map +1 -0
- package/{src → server/src}/lib/password-reset/complete-password-reset.command.d.ts +3 -4
- package/{src → server/src}/lib/password-reset/complete-password-reset.command.js +8 -12
- package/server/src/lib/password-reset/complete-password-reset.command.js.map +1 -0
- package/server/src/lib/password-reset/get-own-password-status.command.d.ts +8 -0
- package/server/src/lib/password-reset/get-own-password-status.command.js +31 -0
- package/server/src/lib/password-reset/get-own-password-status.command.js.map +1 -0
- package/{src → server/src}/lib/password-reset/send-password-reset-email.command.d.ts +12 -13
- package/{src → server/src}/lib/password-reset/send-password-reset-email.command.js +10 -15
- package/server/src/lib/password-reset/send-password-reset-email.command.js.map +1 -0
- package/server/src/lib/password-reset/user-change-password.service.d.ts +24 -0
- package/server/src/lib/password-reset/user-change-password.service.js +92 -0
- package/server/src/lib/password-reset/user-change-password.service.js.map +1 -0
- package/{src → server/src}/lib/password-reset/user-password-reset.service.d.ts +2 -7
- package/{src → server/src}/lib/password-reset/user-password-reset.service.js +29 -90
- package/server/src/lib/password-reset/user-password-reset.service.js.map +1 -0
- package/server/src/lib/queries/get-permission-holders-history.query.d.ts +4 -0
- package/server/src/lib/queries/get-permission-holders-history.query.definition.d.ts +5 -0
- package/server/src/lib/queries/get-permission-holders-history.query.definition.js +38 -0
- package/server/src/lib/queries/get-permission-holders-history.query.definition.js.map +1 -0
- package/server/src/lib/queries/get-permission-holders-history.query.js +25 -0
- package/server/src/lib/queries/get-permission-holders-history.query.js.map +1 -0
- package/server/src/lib/queries/get-role-holders-history.query.d.ts +4 -0
- package/server/src/lib/queries/get-role-holders-history.query.definition.d.ts +5 -0
- package/server/src/lib/queries/get-role-holders-history.query.definition.js +38 -0
- package/server/src/lib/queries/get-role-holders-history.query.definition.js.map +1 -0
- package/server/src/lib/queries/get-role-holders-history.query.js +25 -0
- package/server/src/lib/queries/get-role-holders-history.query.js.map +1 -0
- package/server/src/lib/queries/get-user-effective-permissions-history.query.d.ts +4 -0
- package/server/src/lib/queries/get-user-effective-permissions-history.query.definition.d.ts +5 -0
- package/server/src/lib/queries/get-user-effective-permissions-history.query.definition.js +35 -0
- package/server/src/lib/queries/get-user-effective-permissions-history.query.definition.js.map +1 -0
- package/server/src/lib/queries/get-user-effective-permissions-history.query.js +26 -0
- package/server/src/lib/queries/get-user-effective-permissions-history.query.js.map +1 -0
- package/server/src/lib/queries/get-user-effective-roles-history.query.d.ts +4 -0
- package/server/src/lib/queries/get-user-effective-roles-history.query.definition.d.ts +5 -0
- package/server/src/lib/queries/get-user-effective-roles-history.query.definition.js +36 -0
- package/server/src/lib/queries/get-user-effective-roles-history.query.definition.js.map +1 -0
- package/server/src/lib/queries/get-user-effective-roles-history.query.js +25 -0
- package/server/src/lib/queries/get-user-effective-roles-history.query.js.map +1 -0
- package/server/src/lib/queries/get-user-password-change-history.query.d.ts +4 -0
- package/server/src/lib/queries/get-user-password-change-history.query.definition.d.ts +5 -0
- package/server/src/lib/queries/get-user-password-change-history.query.definition.js +33 -0
- package/server/src/lib/queries/get-user-password-change-history.query.definition.js.map +1 -0
- package/server/src/lib/queries/get-user-password-change-history.query.js +23 -0
- package/server/src/lib/queries/get-user-password-change-history.query.js.map +1 -0
- package/server/src/lib/queries/security-query.helpers.d.ts +47 -0
- package/server/src/lib/queries/security-query.helpers.js +184 -0
- package/server/src/lib/queries/security-query.helpers.js.map +1 -0
- package/server/src/lib/reports/password-change-history.service.d.ts +14 -0
- package/server/src/lib/reports/password-change-history.service.js +74 -0
- package/server/src/lib/reports/password-change-history.service.js.map +1 -0
- package/server/src/lib/reports/permission-display-catalog.d.ts +7 -0
- package/server/src/lib/reports/permission-display-catalog.js +101 -0
- package/server/src/lib/reports/permission-display-catalog.js.map +1 -0
- package/server/src/lib/reports/security-report-definition.provider.d.ts +5 -0
- package/server/src/lib/reports/security-report-definition.provider.js +23 -0
- package/server/src/lib/reports/security-report-definition.provider.js.map +1 -0
- package/server/src/lib/reports/security-report-parameter-groups.d.ts +343 -0
- package/server/src/lib/reports/security-report-parameter-groups.js +167 -0
- package/server/src/lib/reports/security-report-parameter-groups.js.map +1 -0
- package/server/src/lib/reports/security-report-scope.constants.d.ts +5 -0
- package/server/src/lib/reports/security-report-scope.constants.js +11 -0
- package/server/src/lib/reports/security-report-scope.constants.js.map +1 -0
- package/server/src/lib/reports/security-report.definitions.d.ts +12 -0
- package/server/src/lib/reports/security-report.definitions.js +386 -0
- package/server/src/lib/reports/security-report.definitions.js.map +1 -0
- package/server/src/lib/security-management-entity-storage.bootstrap.d.ts +26 -0
- package/server/src/lib/security-management-entity-storage.bootstrap.js +56 -0
- package/server/src/lib/security-management-entity-storage.bootstrap.js.map +1 -0
- package/server/src/lib/security-management-server.module.d.ts +7 -0
- package/server/src/lib/security-management-server.module.js +190 -0
- package/server/src/lib/security-management-server.module.js.map +1 -0
- package/server/src/lib/two-factor/admin-reset-two-factor.command.d.ts +8 -0
- package/server/src/lib/two-factor/admin-reset-two-factor.command.js +35 -0
- package/server/src/lib/two-factor/admin-reset-two-factor.command.js.map +1 -0
- package/server/src/lib/two-factor/confirm-two-factor-enrollment.command.d.ts +8 -0
- package/server/src/lib/two-factor/confirm-two-factor-enrollment.command.js +34 -0
- package/server/src/lib/two-factor/confirm-two-factor-enrollment.command.js.map +1 -0
- package/server/src/lib/two-factor/disable-two-factor.command.d.ts +8 -0
- package/server/src/lib/two-factor/disable-two-factor.command.js +31 -0
- package/server/src/lib/two-factor/disable-two-factor.command.js.map +1 -0
- package/server/src/lib/two-factor/generate-two-factor-recovery-codes.command.d.ts +8 -0
- package/server/src/lib/two-factor/generate-two-factor-recovery-codes.command.js +34 -0
- package/server/src/lib/two-factor/generate-two-factor-recovery-codes.command.js.map +1 -0
- package/server/src/lib/two-factor/get-two-factor-status.command.d.ts +8 -0
- package/server/src/lib/two-factor/get-two-factor-status.command.js +31 -0
- package/server/src/lib/two-factor/get-two-factor-status.command.js.map +1 -0
- package/server/src/lib/two-factor/recovery-codes.util.d.ts +11 -0
- package/server/src/lib/two-factor/recovery-codes.util.js +73 -0
- package/server/src/lib/two-factor/recovery-codes.util.js.map +1 -0
- package/server/src/lib/two-factor/start-two-factor-enrollment.command.d.ts +8 -0
- package/server/src/lib/two-factor/start-two-factor-enrollment.command.js +31 -0
- package/server/src/lib/two-factor/start-two-factor-enrollment.command.js.map +1 -0
- package/server/src/lib/two-factor/totp.util.d.ts +32 -0
- package/server/src/lib/two-factor/totp.util.js +128 -0
- package/server/src/lib/two-factor/totp.util.js.map +1 -0
- package/server/src/lib/two-factor/two-factor-encryption.util.d.ts +25 -0
- package/server/src/lib/two-factor/two-factor-encryption.util.js +123 -0
- package/server/src/lib/two-factor/two-factor-encryption.util.js.map +1 -0
- package/server/src/lib/two-factor/two-factor-gate.bootstrap.d.ts +9 -0
- package/server/src/lib/two-factor/two-factor-gate.bootstrap.js +65 -0
- package/server/src/lib/two-factor/two-factor-gate.bootstrap.js.map +1 -0
- package/server/src/lib/two-factor/two-factor-redis.store.d.ts +63 -0
- package/server/src/lib/two-factor/two-factor-redis.store.js +321 -0
- package/server/src/lib/two-factor/two-factor-redis.store.js.map +1 -0
- package/server/src/lib/two-factor/user-two-factor.service.d.ts +62 -0
- package/server/src/lib/two-factor/user-two-factor.service.js +573 -0
- package/server/src/lib/two-factor/user-two-factor.service.js.map +1 -0
- package/server/src/lib/two-factor/verify-two-factor-login.command.d.ts +18 -0
- package/server/src/lib/two-factor/verify-two-factor-login.command.js +54 -0
- package/server/src/lib/two-factor/verify-two-factor-login.command.js.map +1 -0
- package/server/src/lib/user-invitation/accept-invitation.command.d.ts +8 -0
- package/server/src/lib/user-invitation/accept-invitation.command.js +41 -0
- package/server/src/lib/user-invitation/accept-invitation.command.js.map +1 -0
- package/server/src/lib/user-invitation/accept-my-invitation.command.d.ts +8 -0
- package/server/src/lib/user-invitation/accept-my-invitation.command.js +40 -0
- package/server/src/lib/user-invitation/accept-my-invitation.command.js.map +1 -0
- package/server/src/lib/user-invitation/approve-join-request.command.d.ts +8 -0
- package/server/src/lib/user-invitation/approve-join-request.command.js +41 -0
- package/server/src/lib/user-invitation/approve-join-request.command.js.map +1 -0
- package/server/src/lib/user-invitation/cancel-invitation.command.d.ts +8 -0
- package/server/src/lib/user-invitation/cancel-invitation.command.js +37 -0
- package/server/src/lib/user-invitation/cancel-invitation.command.js.map +1 -0
- package/server/src/lib/user-invitation/cancel-my-join-request.command.d.ts +8 -0
- package/server/src/lib/user-invitation/cancel-my-join-request.command.js +40 -0
- package/server/src/lib/user-invitation/cancel-my-join-request.command.js.map +1 -0
- package/server/src/lib/user-invitation/create-user-in-tenant.command.d.ts +8 -0
- package/server/src/lib/user-invitation/create-user-in-tenant.command.js +37 -0
- package/server/src/lib/user-invitation/create-user-in-tenant.command.js.map +1 -0
- package/server/src/lib/user-invitation/decline-invitation.command.d.ts +8 -0
- package/server/src/lib/user-invitation/decline-invitation.command.js +37 -0
- package/server/src/lib/user-invitation/decline-invitation.command.js.map +1 -0
- package/server/src/lib/user-invitation/invite-user.command.d.ts +8 -0
- package/server/src/lib/user-invitation/invite-user.command.js +37 -0
- package/server/src/lib/user-invitation/invite-user.command.js.map +1 -0
- package/server/src/lib/user-invitation/list-invite-assignable-roles.command.d.ts +8 -0
- package/server/src/lib/user-invitation/list-invite-assignable-roles.command.js +41 -0
- package/server/src/lib/user-invitation/list-invite-assignable-roles.command.js.map +1 -0
- package/server/src/lib/user-invitation/list-my-join-requests.command.d.ts +8 -0
- package/server/src/lib/user-invitation/list-my-join-requests.command.js +40 -0
- package/server/src/lib/user-invitation/list-my-join-requests.command.js.map +1 -0
- package/server/src/lib/user-invitation/list-my-pending-invitations.command.d.ts +8 -0
- package/server/src/lib/user-invitation/list-my-pending-invitations.command.js +37 -0
- package/server/src/lib/user-invitation/list-my-pending-invitations.command.js.map +1 -0
- package/server/src/lib/user-invitation/list-tenant-entitled-applications.command.d.ts +8 -0
- package/server/src/lib/user-invitation/list-tenant-entitled-applications.command.js +41 -0
- package/server/src/lib/user-invitation/list-tenant-entitled-applications.command.js.map +1 -0
- package/server/src/lib/user-invitation/lookup-tenant-by-unique-name.command.d.ts +8 -0
- package/server/src/lib/user-invitation/lookup-tenant-by-unique-name.command.js +40 -0
- package/server/src/lib/user-invitation/lookup-tenant-by-unique-name.command.js.map +1 -0
- package/server/src/lib/user-invitation/reject-join-request.command.d.ts +8 -0
- package/server/src/lib/user-invitation/reject-join-request.command.js +41 -0
- package/server/src/lib/user-invitation/reject-join-request.command.js.map +1 -0
- package/server/src/lib/user-invitation/request-tenant-membership.command.d.ts +8 -0
- package/server/src/lib/user-invitation/request-tenant-membership.command.js +40 -0
- package/server/src/lib/user-invitation/request-tenant-membership.command.js.map +1 -0
- package/server/src/lib/user-invitation/resend-invitation.command.d.ts +12 -0
- package/server/src/lib/user-invitation/resend-invitation.command.js +37 -0
- package/server/src/lib/user-invitation/resend-invitation.command.js.map +1 -0
- package/server/src/lib/user-invitation/user-invitation-application-access.util.d.ts +25 -0
- package/server/src/lib/user-invitation/user-invitation-application-access.util.js +121 -0
- package/server/src/lib/user-invitation/user-invitation-application-access.util.js.map +1 -0
- package/server/src/lib/user-invitation/user-invitation.service.d.ts +162 -0
- package/server/src/lib/user-invitation/user-invitation.service.js +1658 -0
- package/server/src/lib/user-invitation/user-invitation.service.js.map +1 -0
- package/contracts/src/datasource.keys.d.ts +0 -4
- package/contracts/src/datasource.keys.js +0 -10
- package/contracts/src/datasource.keys.js.map +0 -1
- package/src/index.d.ts +0 -5
- package/src/index.js +0 -13
- package/src/index.js.map +0 -1
- package/src/lib/middlewares/user-effective-state.middleware.js.map +0 -1
- package/src/lib/password-reset/complete-password-reset.command.js.map +0 -1
- package/src/lib/password-reset/send-password-reset-email.command.js.map +0 -1
- package/src/lib/password-reset/user-password-reset.service.js.map +0 -1
- package/src/lib/security-management-server.module.d.ts +0 -2
- package/src/lib/security-management-server.module.js +0 -48
- package/src/lib/security-management-server.module.js.map +0 -1
- package/src/lib/seed/index.d.ts +0 -22
- package/src/lib/seed/index.js +0 -24
- package/src/lib/seed/index.js.map +0 -1
- package/src/lib/seed/policy/index.d.ts +0 -2
- package/src/lib/seed/policy/index.js +0 -6
- package/src/lib/seed/policy/index.js.map +0 -1
- package/src/lib/seed/policy/policy.mock.d.ts +0 -7
- package/src/lib/seed/policy/policy.mock.js +0 -40
- package/src/lib/seed/policy/policy.mock.js.map +0 -1
- package/src/lib/seed/policy/policy.seed.d.ts +0 -5
- package/src/lib/seed/policy/policy.seed.js +0 -31
- package/src/lib/seed/policy/policy.seed.js.map +0 -1
- package/src/lib/seed/role/index.d.ts +0 -4
- package/src/lib/seed/role/index.js +0 -8
- package/src/lib/seed/role/index.js.map +0 -1
- package/src/lib/seed/role/role-ids.constants.d.ts +0 -14
- package/src/lib/seed/role/role-ids.constants.js +0 -20
- package/src/lib/seed/role/role-ids.constants.js.map +0 -1
- package/src/lib/seed/role/role-permission-keys.constants.d.ts +0 -578
- package/src/lib/seed/role/role-permission-keys.constants.js +0 -620
- package/src/lib/seed/role/role-permission-keys.constants.js.map +0 -1
- package/src/lib/seed/role/role.mock.d.ts +0 -4
- package/src/lib/seed/role/role.mock.js +0 -321
- package/src/lib/seed/role/role.mock.js.map +0 -1
- package/src/lib/seed/role/role.seed.d.ts +0 -5
- package/src/lib/seed/role/role.seed.js +0 -31
- package/src/lib/seed/role/role.seed.js.map +0 -1
- package/src/lib/seed/security-management-seed.provider.d.ts +0 -4
- package/src/lib/seed/security-management-seed.provider.js +0 -18
- package/src/lib/seed/security-management-seed.provider.js.map +0 -1
- package/src/lib/seed/security-management-seed.tokens.d.ts +0 -1
- package/src/lib/seed/security-management-seed.tokens.js +0 -7
- package/src/lib/seed/security-management-seed.tokens.js.map +0 -1
- package/src/lib/seed/security-management.seed-catalog.d.ts +0 -2
- package/src/lib/seed/security-management.seed-catalog.js +0 -17
- package/src/lib/seed/security-management.seed-catalog.js.map +0 -1
- package/src/lib/seed/tenant/index.d.ts +0 -1
- package/src/lib/seed/tenant/tenant-ids.constants.d.ts +0 -11
- package/src/lib/seed/tenant/tenant-ids.constants.js +0 -17
- package/src/lib/seed/tenant/tenant-ids.constants.js.map +0 -1
- package/src/lib/seed/user/index.d.ts +0 -4
- package/src/lib/seed/user/index.js +0 -13
- package/src/lib/seed/user/index.js.map +0 -1
- package/src/lib/seed/user/resolve-user-effective-state.util.d.ts +0 -4
- package/src/lib/seed/user/resolve-user-effective-state.util.js +0 -10
- package/src/lib/seed/user/resolve-user-effective-state.util.js.map +0 -1
- package/src/lib/seed/user/user.mock.d.ts +0 -21
- package/src/lib/seed/user/user.mock.js +0 -338
- package/src/lib/seed/user/user.mock.js.map +0 -1
- package/src/lib/seed/user/user.seed.d.ts +0 -5
- package/src/lib/seed/user/user.seed.js +0 -31
- package/src/lib/seed/user/user.seed.js.map +0 -1
- /package/{src → server/src}/lib/middlewares/user-effective-state.middleware.d.ts +0 -0
|
@@ -1,34 +1,62 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//#region ---- Permission Keys ----
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.AXPSecurityManagementPermissionKeys = void 0;
|
|
3
|
+
exports.AXPSecurityManagementPermissionKeys = exports.AXPAdministrationPermissionKeys = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Administration capabilities used by this module.
|
|
6
|
+
* Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
|
|
7
|
+
*/
|
|
8
|
+
exports.AXPAdministrationPermissionKeys = {
|
|
9
|
+
Access: 'Administration:Permission:Access',
|
|
10
|
+
/** Create and maintain users, roles, role assignments, and related security-access reports. */
|
|
11
|
+
MaintainUsersAndRoles: 'Administration:Permission:MaintainUsersAndRoles',
|
|
12
|
+
ManageSessions: 'Administration:Permission:ManageSessions',
|
|
13
|
+
MaintainPolicies: 'Administration:Permission:MaintainPolicies',
|
|
14
|
+
ViewIntegrations: 'Administration:Permission:ViewIntegrations',
|
|
15
|
+
MaintainConnections: 'Administration:Permission:MaintainConnections',
|
|
16
|
+
ManageIntegrationActions: 'Administration:Permission:ManageIntegrationActions',
|
|
17
|
+
MaintainWorkflows: 'Administration:Permission:MaintainWorkflows',
|
|
18
|
+
ManageWorkflowActions: 'Administration:Permission:ManageWorkflowActions',
|
|
19
|
+
ViewRules: 'Administration:Permission:ViewRules',
|
|
20
|
+
MaintainRules: 'Administration:Permission:MaintainRules',
|
|
21
|
+
ManageRuleActions: 'Administration:Permission:ManageRuleActions',
|
|
22
|
+
MaintainAi: 'Administration:Permission:MaintainAi',
|
|
23
|
+
UseAiAssist: 'Administration:Permission:UseAiAssist',
|
|
24
|
+
MaintainDashboards: 'Administration:Permission:MaintainDashboards',
|
|
25
|
+
ViewJobs: 'Administration:Permission:ViewJobs',
|
|
26
|
+
ManageJobActions: 'Administration:Permission:ManageJobActions',
|
|
27
|
+
ViewObservability: 'Administration:Permission:ViewObservability',
|
|
28
|
+
MaintainObservability: 'Administration:Permission:MaintainObservability',
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Prefer {@link AXPAdministrationPermissionKeys}.
|
|
32
|
+
* Legacy nested shape kept so existing imports compile during migration.
|
|
33
|
+
*/
|
|
5
34
|
exports.AXPSecurityManagementPermissionKeys = {
|
|
6
35
|
User: {
|
|
7
|
-
Management:
|
|
8
|
-
View:
|
|
9
|
-
Edit:
|
|
10
|
-
Delete:
|
|
11
|
-
Create:
|
|
36
|
+
Management: exports.AXPAdministrationPermissionKeys.MaintainUsersAndRoles,
|
|
37
|
+
View: exports.AXPAdministrationPermissionKeys.MaintainUsersAndRoles,
|
|
38
|
+
Edit: exports.AXPAdministrationPermissionKeys.MaintainUsersAndRoles,
|
|
39
|
+
Delete: exports.AXPAdministrationPermissionKeys.MaintainUsersAndRoles,
|
|
40
|
+
Create: exports.AXPAdministrationPermissionKeys.MaintainUsersAndRoles,
|
|
12
41
|
},
|
|
13
42
|
Role: {
|
|
14
|
-
Management:
|
|
15
|
-
View:
|
|
16
|
-
Edit:
|
|
17
|
-
Delete:
|
|
18
|
-
Create:
|
|
43
|
+
Management: exports.AXPAdministrationPermissionKeys.MaintainUsersAndRoles,
|
|
44
|
+
View: exports.AXPAdministrationPermissionKeys.MaintainUsersAndRoles,
|
|
45
|
+
Edit: exports.AXPAdministrationPermissionKeys.MaintainUsersAndRoles,
|
|
46
|
+
Delete: exports.AXPAdministrationPermissionKeys.MaintainUsersAndRoles,
|
|
47
|
+
Create: exports.AXPAdministrationPermissionKeys.MaintainUsersAndRoles,
|
|
19
48
|
},
|
|
20
49
|
DeviceSession: {
|
|
21
|
-
Management:
|
|
22
|
-
View:
|
|
23
|
-
Terminate:
|
|
50
|
+
Management: exports.AXPAdministrationPermissionKeys.ManageSessions,
|
|
51
|
+
View: exports.AXPAdministrationPermissionKeys.ManageSessions,
|
|
52
|
+
Terminate: exports.AXPAdministrationPermissionKeys.ManageSessions,
|
|
24
53
|
},
|
|
25
54
|
Policy: {
|
|
26
|
-
Management:
|
|
27
|
-
View:
|
|
28
|
-
Edit:
|
|
29
|
-
Delete:
|
|
30
|
-
Create:
|
|
55
|
+
Management: exports.AXPAdministrationPermissionKeys.MaintainPolicies,
|
|
56
|
+
View: exports.AXPAdministrationPermissionKeys.MaintainPolicies,
|
|
57
|
+
Edit: exports.AXPAdministrationPermissionKeys.MaintainPolicies,
|
|
58
|
+
Delete: exports.AXPAdministrationPermissionKeys.MaintainPolicies,
|
|
59
|
+
Create: exports.AXPAdministrationPermissionKeys.MaintainPolicies,
|
|
31
60
|
},
|
|
32
61
|
};
|
|
33
|
-
//#endregion
|
|
34
62
|
//# sourceMappingURL=permission.keys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/security-management/
|
|
1
|
+
{"version":3,"file":"permission.keys.js","sourceRoot":"","sources":["../../../../../libs/modules/security-management/contracts/src/permission.keys.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,+BAA+B,GAAG;IAC7C,MAAM,EAAE,kCAAkC;IAC1C,+FAA+F;IAC/F,qBAAqB,EAAE,iDAAiD;IACxE,cAAc,EAAE,0CAA0C;IAC1D,gBAAgB,EAAE,4CAA4C;IAC9D,gBAAgB,EAAE,4CAA4C;IAC9D,mBAAmB,EAAE,+CAA+C;IACpE,wBAAwB,EAAE,oDAAoD;IAC9E,iBAAiB,EAAE,6CAA6C;IAChE,qBAAqB,EAAE,iDAAiD;IACxE,SAAS,EAAE,qCAAqC;IAChD,aAAa,EAAE,yCAAyC;IACxD,iBAAiB,EAAE,6CAA6C;IAChE,UAAU,EAAE,sCAAsC;IAClD,WAAW,EAAE,uCAAuC;IACpD,kBAAkB,EAAE,8CAA8C;IAClE,QAAQ,EAAE,oCAAoC;IAC9C,gBAAgB,EAAE,4CAA4C;IAC9D,iBAAiB,EAAE,6CAA6C;IAChE,qBAAqB,EAAE,iDAAiD;CAChE,CAAC;AAEX;;;GAGG;AACU,QAAA,mCAAmC,GAAG;IACjD,IAAI,EAAE;QACJ,UAAU,EAAE,uCAA+B,CAAC,qBAAqB;QACjE,IAAI,EAAE,uCAA+B,CAAC,qBAAqB;QAC3D,IAAI,EAAE,uCAA+B,CAAC,qBAAqB;QAC3D,MAAM,EAAE,uCAA+B,CAAC,qBAAqB;QAC7D,MAAM,EAAE,uCAA+B,CAAC,qBAAqB;KAC9D;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,uCAA+B,CAAC,qBAAqB;QACjE,IAAI,EAAE,uCAA+B,CAAC,qBAAqB;QAC3D,IAAI,EAAE,uCAA+B,CAAC,qBAAqB;QAC3D,MAAM,EAAE,uCAA+B,CAAC,qBAAqB;QAC7D,MAAM,EAAE,uCAA+B,CAAC,qBAAqB;KAC9D;IACD,aAAa,EAAE;QACb,UAAU,EAAE,uCAA+B,CAAC,cAAc;QAC1D,IAAI,EAAE,uCAA+B,CAAC,cAAc;QACpD,SAAS,EAAE,uCAA+B,CAAC,cAAc;KAC1D;IACD,MAAM,EAAE;QACN,UAAU,EAAE,uCAA+B,CAAC,gBAAgB;QAC5D,IAAI,EAAE,uCAA+B,CAAC,gBAAgB;QACtD,IAAI,EAAE,uCAA+B,CAAC,gBAAgB;QACtD,MAAM,EAAE,uCAA+B,CAAC,gBAAgB;QACxD,MAAM,EAAE,uCAA+B,CAAC,gBAAgB;KACzD;CACO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-user-effective-state.js","sourceRoot":"","sources":["../../../../../libs/modules/security-management/
|
|
1
|
+
{"version":3,"file":"resolve-user-effective-state.js","sourceRoot":"","sources":["../../../../../libs/modules/security-management/contracts/src/resolve-user-effective-state.ts"],"names":[],"mappings":";;AAiBA,oEA6BC;AA9CD,2DAAyD;AACzD,iEAA+D;AAE/D,2CAA2C;AAE3C,MAAM,qBAAqB,GAAG;IAC5B,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;CACd,CAAC;AAEX;;;GAGG;AACH,SAAgB,4BAA4B,CAAC,KAG5C;;IACC,MAAM,SAAS,GAAG,KAAK,CAAC,YAAY,CAAC;IACrC,MAAM,IAAI,GAAG,CAAC,MAAA,KAAK,CAAC,WAAW,mCAAI,sCAAkB,CAAC,OAAO,CAAW,CAAC;IAEzE,IAAI,SAAS,KAAK,qBAAqB,CAAC,QAAQ,EAAE,CAAC;QACjD,OAAO,4CAAqB,CAAC,QAAQ,CAAC;IACxC,CAAC;IACD,IAAI,SAAS,KAAK,qBAAqB,CAAC,OAAO,EAAE,CAAC;QAChD,OAAO,4CAAqB,CAAC,OAAO,CAAC;IACvC,CAAC;IACD,IAAI,SAAS,KAAK,qBAAqB,CAAC,QAAQ,EAAE,CAAC;QACjD,OAAO,4CAAqB,CAAC,QAAQ,CAAC;IACxC,CAAC;IACD,IAAI,SAAS,KAAK,qBAAqB,CAAC,SAAS,EAAE,CAAC;QAClD,OAAO,4CAAqB,CAAC,SAAS,CAAC;IACzC,CAAC;IACD,IAAI,IAAI,KAAK,sCAAkB,CAAC,OAAO,EAAE,CAAC;QACxC,OAAO,4CAAqB,CAAC,iBAAiB,CAAC;IACjD,CAAC;IACD,IAAI,IAAI,KAAK,sCAAkB,CAAC,OAAO,EAAE,CAAC;QACxC,OAAO,4CAAqB,CAAC,aAAa,CAAC;IAC7C,CAAC;IACD,IAAI,SAAS,KAAK,qBAAqB,CAAC,MAAM,EAAE,CAAC;QAC/C,OAAO,4CAAqB,CAAC,MAAM,CAAC;IACtC,CAAC;IACD,OAAO,4CAAqB,CAAC,MAAM,CAAC;AACtC,CAAC;AAED,YAAY"}
|
|
@@ -34,11 +34,44 @@ export declare const RootConfig: {
|
|
|
34
34
|
readonly titlePlural: `@${string}:roles.entities.role.plural`;
|
|
35
35
|
readonly icon: "fa-light fa-user-tag";
|
|
36
36
|
};
|
|
37
|
+
readonly rolePermission: {
|
|
38
|
+
readonly name: "RolePermission";
|
|
39
|
+
readonly title: `@${string}:role-permissions.entities.role-permission.title`;
|
|
40
|
+
readonly titlePlural: `@${string}:role-permissions.entities.role-permission.plural`;
|
|
41
|
+
readonly icon: "fa-light fa-key";
|
|
42
|
+
};
|
|
43
|
+
readonly userRole: {
|
|
44
|
+
readonly name: "UserRole";
|
|
45
|
+
readonly title: `@${string}:user-roles.entities.user-role.title`;
|
|
46
|
+
readonly titlePlural: `@${string}:user-roles.entities.user-role.plural`;
|
|
47
|
+
readonly icon: "fa-light fa-user-tag";
|
|
48
|
+
};
|
|
37
49
|
readonly profile: {
|
|
38
50
|
readonly name: "Profile";
|
|
39
51
|
readonly title: `@${string}:profile.entities.profile.title`;
|
|
40
52
|
readonly titlePlural: `@${string}:profile.entities.profile.plural`;
|
|
41
53
|
readonly icon: "fa-light fa-user";
|
|
42
54
|
};
|
|
55
|
+
readonly identityProvider: {
|
|
56
|
+
readonly name: "IdentityProvider";
|
|
57
|
+
readonly title: `@${string}:identity-providers.entities.identity-provider.title`;
|
|
58
|
+
readonly titlePlural: `@${string}:identity-providers.entities.identity-provider.plural`;
|
|
59
|
+
readonly icon: "fa-light fa-id-badge";
|
|
60
|
+
};
|
|
61
|
+
readonly userTwoFactor: {
|
|
62
|
+
readonly name: "UserTwoFactor";
|
|
63
|
+
readonly title: `@${string}:user-two-factor.entities.user-two-factor.title`;
|
|
64
|
+
readonly titlePlural: `@${string}:user-two-factor.entities.user-two-factor.plural`;
|
|
65
|
+
readonly icon: "fa-light fa-shield-keyhole";
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
readonly queries: {
|
|
69
|
+
readonly reports: {
|
|
70
|
+
readonly getUserEffectiveRolesHistory: "SecurityManagement:Reports:GetUserEffectiveRolesHistory";
|
|
71
|
+
readonly getUserEffectivePermissionsHistory: "SecurityManagement:Reports:GetUserEffectivePermissionsHistory";
|
|
72
|
+
readonly getRoleHoldersHistory: "SecurityManagement:Reports:GetRoleHoldersHistory";
|
|
73
|
+
readonly getPermissionHoldersHistory: "SecurityManagement:Reports:GetPermissionHoldersHistory";
|
|
74
|
+
readonly getUserPasswordChangeHistory: "SecurityManagement:Reports:GetUserPasswordChangeHistory";
|
|
75
|
+
};
|
|
43
76
|
};
|
|
44
77
|
};
|
|
@@ -38,12 +38,45 @@ exports.RootConfig = {
|
|
|
38
38
|
titlePlural: `@${config.i18n}:roles.entities.role.plural`,
|
|
39
39
|
icon: 'fa-light fa-user-tag',
|
|
40
40
|
},
|
|
41
|
+
rolePermission: {
|
|
42
|
+
name: 'RolePermission',
|
|
43
|
+
title: `@${config.i18n}:role-permissions.entities.role-permission.title`,
|
|
44
|
+
titlePlural: `@${config.i18n}:role-permissions.entities.role-permission.plural`,
|
|
45
|
+
icon: 'fa-light fa-key',
|
|
46
|
+
},
|
|
47
|
+
userRole: {
|
|
48
|
+
name: 'UserRole',
|
|
49
|
+
title: `@${config.i18n}:user-roles.entities.user-role.title`,
|
|
50
|
+
titlePlural: `@${config.i18n}:user-roles.entities.user-role.plural`,
|
|
51
|
+
icon: 'fa-light fa-user-tag',
|
|
52
|
+
},
|
|
41
53
|
profile: {
|
|
42
54
|
name: 'Profile',
|
|
43
55
|
title: `@${config.i18n}:profile.entities.profile.title`,
|
|
44
56
|
titlePlural: `@${config.i18n}:profile.entities.profile.plural`,
|
|
45
57
|
icon: 'fa-light fa-user',
|
|
46
58
|
},
|
|
59
|
+
identityProvider: {
|
|
60
|
+
name: 'IdentityProvider',
|
|
61
|
+
title: `@${config.i18n}:identity-providers.entities.identity-provider.title`,
|
|
62
|
+
titlePlural: `@${config.i18n}:identity-providers.entities.identity-provider.plural`,
|
|
63
|
+
icon: 'fa-light fa-id-badge',
|
|
64
|
+
},
|
|
65
|
+
userTwoFactor: {
|
|
66
|
+
name: 'UserTwoFactor',
|
|
67
|
+
title: `@${config.i18n}:user-two-factor.entities.user-two-factor.title`,
|
|
68
|
+
titlePlural: `@${config.i18n}:user-two-factor.entities.user-two-factor.plural`,
|
|
69
|
+
icon: 'fa-light fa-shield-keyhole',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
queries: {
|
|
73
|
+
reports: {
|
|
74
|
+
getUserEffectiveRolesHistory: 'SecurityManagement:Reports:GetUserEffectiveRolesHistory',
|
|
75
|
+
getUserEffectivePermissionsHistory: 'SecurityManagement:Reports:GetUserEffectivePermissionsHistory',
|
|
76
|
+
getRoleHoldersHistory: 'SecurityManagement:Reports:GetRoleHoldersHistory',
|
|
77
|
+
getPermissionHoldersHistory: 'SecurityManagement:Reports:GetPermissionHoldersHistory',
|
|
78
|
+
getUserPasswordChangeHistory: 'SecurityManagement:Reports:GetUserPasswordChangeHistory',
|
|
79
|
+
},
|
|
47
80
|
},
|
|
48
81
|
};
|
|
49
82
|
//# sourceMappingURL=root-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-config.js","sourceRoot":"","sources":["../../../../../libs/modules/security-management/
|
|
1
|
+
{"version":3,"file":"root-config.js","sourceRoot":"","sources":["../../../../../libs/modules/security-management/contracts/src/root-config.ts"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,qBAAqB;IAC3B,aAAa,EAAE,SAAS;CACzB,CAAC;AACW,QAAA,UAAU,GAAG;IACxB,MAAM;IACN,MAAM,EAAE;QACN,KAAK,EAAE,qBAAqB;QAC5B,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,eAAe;QACrC,IAAI,EAAE,2BAA2B;KAClC;IACD,QAAQ,EAAE;QACR,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,iCAAiC;YACvD,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,kCAAkC;YAC9D,IAAI,EAAE,4BAA4B;SACnC;QACD,cAAc,EAAE;YACd,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,kCAAkC;YACxD,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,mCAAmC;YAC/D,IAAI,EAAE,oBAAoB;SAC3B;QACD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,4BAA4B;YAClD,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,6BAA6B;YACzD,IAAI,EAAE,mBAAmB;SAC1B;QACD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,4BAA4B;YAClD,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,6BAA6B;YACzD,IAAI,EAAE,sBAAsB;SAC7B;QACD,cAAc,EAAE;YACd,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,kDAAkD;YACxE,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,mDAAmD;YAC/E,IAAI,EAAE,iBAAiB;SACxB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,sCAAsC;YAC5D,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,uCAAuC;YACnE,IAAI,EAAE,sBAAsB;SAC7B;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,iCAAiC;YACvD,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,kCAAkC;YAC9D,IAAI,EAAE,kBAAkB;SACzB;QACD,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,sDAAsD;YAC5E,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,uDAAuD;YACnF,IAAI,EAAE,sBAAsB;SAC7B;QACD,aAAa,EAAE;YACb,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,IAAI,MAAM,CAAC,IAAI,iDAAiD;YACvE,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,kDAAkD;YAC9E,IAAI,EAAE,4BAA4B;SACnC;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,4BAA4B,EAAE,yDAAyD;YACvF,kCAAkC,EAChC,+DAA+D;YACjE,qBAAqB,EAAE,kDAAkD;YACzE,2BAA2B,EAAE,wDAAwD;YACrF,4BAA4B,EAAE,yDAAyD;SACxF;KACF;CACO,CAAC"}
|
|
@@ -1,9 +1,53 @@
|
|
|
1
1
|
export declare const AXMSecurityManagementServerCommands: {
|
|
2
2
|
readonly SendPasswordResetEmail: "SecurityManagement:Server:SendPasswordResetEmail";
|
|
3
3
|
readonly CompletePasswordReset: "SecurityManagement:Server:CompletePasswordReset";
|
|
4
|
+
readonly ChangeOwnPassword: "SecurityManagement:Server:ChangeOwnPassword";
|
|
5
|
+
readonly GetOwnPasswordStatus: "SecurityManagement:Server:GetOwnPasswordStatus";
|
|
6
|
+
readonly InviteUser: "SecurityManagement:Server:InviteUser";
|
|
7
|
+
/** Tenant-subscribed applications for TM invite picker (ADR-TEN-001 D-05). */
|
|
8
|
+
readonly ListTenantEntitledApplications: "SecurityManagement:Server:ListTenantEntitledApplications";
|
|
9
|
+
/** Per-app Role overlays for TM invite repeater (bypasses app-catalog list isolation). */
|
|
10
|
+
readonly ListInviteAssignableRoles: "SecurityManagement:Server:ListInviteAssignableRoles";
|
|
11
|
+
readonly ResendInvitation: "SecurityManagement:Server:ResendInvitation";
|
|
12
|
+
readonly CancelInvitation: "SecurityManagement:Server:CancelInvitation";
|
|
13
|
+
readonly AcceptInvitation: "SecurityManagement:Server:AcceptInvitation";
|
|
14
|
+
readonly ListMyPendingInvitations: "SecurityManagement:Server:ListMyPendingInvitations";
|
|
15
|
+
readonly DeclineInvitation: "SecurityManagement:Server:DeclineInvitation";
|
|
16
|
+
readonly AcceptMyInvitation: "SecurityManagement:Server:AcceptMyInvitation";
|
|
17
|
+
readonly LookupTenantByUniqueName: "SecurityManagement:Server:LookupTenantByUniqueName";
|
|
18
|
+
readonly RequestTenantMembership: "SecurityManagement:Server:RequestTenantMembership";
|
|
19
|
+
readonly ListMyJoinRequests: "SecurityManagement:Server:ListMyJoinRequests";
|
|
20
|
+
readonly CancelMyJoinRequest: "SecurityManagement:Server:CancelMyJoinRequest";
|
|
21
|
+
readonly ApproveJoinRequest: "SecurityManagement:Server:ApproveJoinRequest";
|
|
22
|
+
readonly RejectJoinRequest: "SecurityManagement:Server:RejectJoinRequest";
|
|
23
|
+
readonly CreateUserInTenant: "SecurityManagement:Server:CreateUserInTenant";
|
|
24
|
+
readonly StartTwoFactorEnrollment: "SecurityManagement:Server:StartTwoFactorEnrollment";
|
|
25
|
+
readonly ConfirmTwoFactorEnrollment: "SecurityManagement:Server:ConfirmTwoFactorEnrollment";
|
|
26
|
+
readonly DisableTwoFactor: "SecurityManagement:Server:DisableTwoFactor";
|
|
27
|
+
readonly GenerateTwoFactorRecoveryCodes: "SecurityManagement:Server:GenerateTwoFactorRecoveryCodes";
|
|
28
|
+
readonly GetTwoFactorStatus: "SecurityManagement:Server:GetTwoFactorStatus";
|
|
29
|
+
readonly AdminResetTwoFactor: "SecurityManagement:Server:AdminResetTwoFactor";
|
|
30
|
+
/** Public — completes login after password challenge (TOTP or recovery). */
|
|
31
|
+
readonly VerifyTwoFactorLogin: "SecurityManagement:Server:VerifyTwoFactorLogin";
|
|
32
|
+
};
|
|
33
|
+
/** Stable codes for self-service password change (client maps to i18n). */
|
|
34
|
+
export declare const AXM_CHANGE_OWN_PASSWORD_ERROR_CODES: {
|
|
35
|
+
readonly NotSignedIn: "CHANGE_OWN_PASSWORD_NOT_SIGNED_IN";
|
|
36
|
+
readonly IncorrectCurrent: "CHANGE_OWN_PASSWORD_INCORRECT_CURRENT";
|
|
37
|
+
readonly SameAsCurrent: "CHANGE_OWN_PASSWORD_SAME_AS_CURRENT";
|
|
38
|
+
readonly InvalidInput: "CHANGE_OWN_PASSWORD_INVALID_INPUT";
|
|
4
39
|
};
|
|
5
40
|
/** Client/UI action key (confirm dialog → server send). */
|
|
6
41
|
export declare const AXM_USER_SEND_PASSWORD_RESET_COMMAND = "SecurityManagement:User:SendPasswordResetEmail";
|
|
42
|
+
/** Client/UI action key (confirm dialog → server admin reset 2FA). */
|
|
43
|
+
export declare const AXM_USER_RESET_TWO_FACTOR_COMMAND = "SecurityManagement:User:ResetTwoFactor";
|
|
44
|
+
/** Client/UI action keys for invite / create-in-tenant flows. */
|
|
45
|
+
export declare const AXM_USER_INVITE_COMMAND = "SecurityManagement:User:Invite";
|
|
46
|
+
export declare const AXM_USER_RESEND_INVITATION_COMMAND = "SecurityManagement:User:ResendInvitation";
|
|
47
|
+
export declare const AXM_USER_CANCEL_INVITATION_COMMAND = "SecurityManagement:User:CancelInvitation";
|
|
48
|
+
export declare const AXM_USER_APPROVE_JOIN_REQUEST_COMMAND = "SecurityManagement:User:ApproveJoinRequest";
|
|
49
|
+
export declare const AXM_USER_REJECT_JOIN_REQUEST_COMMAND = "SecurityManagement:User:RejectJoinRequest";
|
|
50
|
+
export declare const AXM_USER_CREATE_IN_TENANT_COMMAND = "SecurityManagement:User:CreateInTenant";
|
|
7
51
|
export interface AXMSendPasswordResetEmailInput {
|
|
8
52
|
/** Admin path: target user id. */
|
|
9
53
|
userId?: string;
|
|
@@ -16,3 +60,281 @@ export interface AXMCompletePasswordResetInput {
|
|
|
16
60
|
token: string;
|
|
17
61
|
newPassword: string;
|
|
18
62
|
}
|
|
63
|
+
export interface AXMChangeOwnPasswordInput {
|
|
64
|
+
/** Required when the account already has a password; omit/empty when setting the first password. */
|
|
65
|
+
currentPassword?: string;
|
|
66
|
+
newPassword: string;
|
|
67
|
+
}
|
|
68
|
+
export interface AXMChangeOwnPasswordResult {
|
|
69
|
+
passwordChangedAt: string;
|
|
70
|
+
}
|
|
71
|
+
export interface AXMGetOwnPasswordStatusResult {
|
|
72
|
+
/** True when the signed-in user has a non-empty stored password credential. */
|
|
73
|
+
hasPassword: boolean;
|
|
74
|
+
}
|
|
75
|
+
export interface AXMInviteUserInput {
|
|
76
|
+
email: string;
|
|
77
|
+
displayName?: string;
|
|
78
|
+
applicationIds?: string[];
|
|
79
|
+
/**
|
|
80
|
+
* Role ids to assign on invite (scoped UserRole grant).
|
|
81
|
+
* Application invite → app-scoped grant; tenant invite without per-app rows → tenant-wide grant.
|
|
82
|
+
*/
|
|
83
|
+
roleIds?: string[];
|
|
84
|
+
/**
|
|
85
|
+
* TM Tenant Users repeater: roles per selected application.
|
|
86
|
+
* When present, server upserts a UserRole grant per application (not one tenant-wide grant).
|
|
87
|
+
*/
|
|
88
|
+
applicationRoleAssignments?: Array<{
|
|
89
|
+
applicationId: string;
|
|
90
|
+
roleIds: string[];
|
|
91
|
+
}>;
|
|
92
|
+
/**
|
|
93
|
+
* True when invite is from Tenant Users (tenant-membership) with multi-app UI.
|
|
94
|
+
* Server SoT with session edition feature — not Application.code === 'TM'.
|
|
95
|
+
*/
|
|
96
|
+
tenantMembershipInvite?: boolean;
|
|
97
|
+
/** Client sets true after warning that the identity already exists. */
|
|
98
|
+
confirmExisting?: boolean;
|
|
99
|
+
webOrigin?: string;
|
|
100
|
+
}
|
|
101
|
+
/** One selectable application for TM invite (tenant subscription entitlement). */
|
|
102
|
+
export interface AXMTenantEntitledApplicationItem {
|
|
103
|
+
id: string;
|
|
104
|
+
/** Raw MLS / string title — client resolves for display. */
|
|
105
|
+
title: unknown;
|
|
106
|
+
}
|
|
107
|
+
export interface AXMListTenantEntitledApplicationsResult {
|
|
108
|
+
items: AXMTenantEntitledApplicationItem[];
|
|
109
|
+
}
|
|
110
|
+
/** One Role overlay selectable on a TM invite repeater row. */
|
|
111
|
+
export interface AXMInviteAssignableRoleItem {
|
|
112
|
+
id: string;
|
|
113
|
+
title: unknown;
|
|
114
|
+
name?: string;
|
|
115
|
+
applicationId: string;
|
|
116
|
+
}
|
|
117
|
+
export interface AXMListInviteAssignableRolesInput {
|
|
118
|
+
/** When set, only overlays for this application (current tenant). */
|
|
119
|
+
applicationId?: string;
|
|
120
|
+
}
|
|
121
|
+
export interface AXMListInviteAssignableRolesResult {
|
|
122
|
+
items: AXMInviteAssignableRoleItem[];
|
|
123
|
+
}
|
|
124
|
+
export interface AXMInviteUserResult {
|
|
125
|
+
userId: string;
|
|
126
|
+
tenantUserId: string;
|
|
127
|
+
userAlreadyExists: boolean;
|
|
128
|
+
sent: boolean;
|
|
129
|
+
}
|
|
130
|
+
export interface AXMResendInvitationInput {
|
|
131
|
+
tenantUserId?: string;
|
|
132
|
+
userId?: string;
|
|
133
|
+
webOrigin?: string;
|
|
134
|
+
}
|
|
135
|
+
export interface AXMCancelInvitationInput {
|
|
136
|
+
tenantUserId?: string;
|
|
137
|
+
userId?: string;
|
|
138
|
+
}
|
|
139
|
+
/** Stable codes for public invitation accept (client maps invalid/expired to the page, not a toast). */
|
|
140
|
+
export declare const AXM_ACCEPT_INVITATION_ERROR_CODES: {
|
|
141
|
+
readonly Invalid: "ACCEPT_INVITATION_INVALID";
|
|
142
|
+
readonly Expired: "ACCEPT_INVITATION_EXPIRED";
|
|
143
|
+
readonly PasswordRequired: "ACCEPT_INVITATION_PASSWORD_REQUIRED";
|
|
144
|
+
};
|
|
145
|
+
export type AXMAcceptInvitationReason = 'valid' | 'invalid' | 'expired';
|
|
146
|
+
export interface AXMAcceptInvitationInput {
|
|
147
|
+
token: string;
|
|
148
|
+
newPassword?: string;
|
|
149
|
+
/** Check the token only. Does not set a password or consume the link. */
|
|
150
|
+
preview?: boolean;
|
|
151
|
+
}
|
|
152
|
+
export interface AXMAcceptInvitationPreviewResult {
|
|
153
|
+
usable: boolean;
|
|
154
|
+
reason: AXMAcceptInvitationReason;
|
|
155
|
+
}
|
|
156
|
+
export interface AXMPendingInvitationItem {
|
|
157
|
+
tenantUserId: string;
|
|
158
|
+
tenantId: string;
|
|
159
|
+
tenantTitle?: string;
|
|
160
|
+
/** Tenant branding logo URL / storage id when available. */
|
|
161
|
+
tenantLogo?: string;
|
|
162
|
+
invitedByUserId?: string;
|
|
163
|
+
expiresAt?: string;
|
|
164
|
+
sentAt?: string;
|
|
165
|
+
applicationIds?: string[];
|
|
166
|
+
}
|
|
167
|
+
export interface AXMListMyPendingInvitationsResult {
|
|
168
|
+
items: AXMPendingInvitationItem[];
|
|
169
|
+
}
|
|
170
|
+
export interface AXMAcceptMyInvitationInput {
|
|
171
|
+
tenantUserId: string;
|
|
172
|
+
newPassword?: string;
|
|
173
|
+
}
|
|
174
|
+
export interface AXMDeclineInvitationInput {
|
|
175
|
+
tenantUserId: string;
|
|
176
|
+
}
|
|
177
|
+
/** Stable codes for waiting-room join-by-unique-name (client maps to i18n). */
|
|
178
|
+
export declare const AXM_JOIN_REQUEST_ERROR_CODES: {
|
|
179
|
+
readonly NotSignedIn: "JOIN_REQUEST_NOT_SIGNED_IN";
|
|
180
|
+
readonly InvalidInput: "JOIN_REQUEST_INVALID_INPUT";
|
|
181
|
+
readonly TenantNotFound: "JOIN_REQUEST_TENANT_NOT_FOUND";
|
|
182
|
+
readonly AlreadyMember: "JOIN_REQUEST_ALREADY_MEMBER";
|
|
183
|
+
readonly InvitePending: "JOIN_REQUEST_INVITE_PENDING";
|
|
184
|
+
readonly RequestNotFound: "JOIN_REQUEST_NOT_FOUND";
|
|
185
|
+
readonly NotPending: "JOIN_REQUEST_NOT_PENDING";
|
|
186
|
+
};
|
|
187
|
+
export interface AXMLookupTenantByUniqueNameInput {
|
|
188
|
+
/** Tenant unique `name` or display `title` (any locale). Case-insensitive exact match. */
|
|
189
|
+
uniqueName: string;
|
|
190
|
+
}
|
|
191
|
+
export interface AXMLookupTenantByUniqueNameItem {
|
|
192
|
+
id: string;
|
|
193
|
+
/** Stored unique name with original casing. */
|
|
194
|
+
name: string;
|
|
195
|
+
}
|
|
196
|
+
export interface AXMLookupTenantByUniqueNameResult {
|
|
197
|
+
/** Present only when the name/title matches exactly one active tenant. */
|
|
198
|
+
item?: AXMLookupTenantByUniqueNameItem | null;
|
|
199
|
+
}
|
|
200
|
+
export interface AXMRequestTenantMembershipInput {
|
|
201
|
+
/** Tenant unique `name` or display `title` (any locale). Case-insensitive exact match. */
|
|
202
|
+
uniqueName: string;
|
|
203
|
+
}
|
|
204
|
+
export interface AXMRequestTenantMembershipResult {
|
|
205
|
+
tenantUserId: string;
|
|
206
|
+
tenantId: string;
|
|
207
|
+
tenantName: string;
|
|
208
|
+
}
|
|
209
|
+
export interface AXMJoinRequestItem {
|
|
210
|
+
tenantUserId: string;
|
|
211
|
+
tenantId: string;
|
|
212
|
+
tenantName?: string;
|
|
213
|
+
tenantTitle?: string;
|
|
214
|
+
/** Tenant branding logo URL / storage id when available. */
|
|
215
|
+
tenantLogo?: string;
|
|
216
|
+
sentAt?: string;
|
|
217
|
+
expiresAt?: string;
|
|
218
|
+
}
|
|
219
|
+
export interface AXMListMyJoinRequestsResult {
|
|
220
|
+
items: AXMJoinRequestItem[];
|
|
221
|
+
}
|
|
222
|
+
export interface AXMCancelMyJoinRequestInput {
|
|
223
|
+
tenantUserId: string;
|
|
224
|
+
}
|
|
225
|
+
export interface AXMApproveJoinRequestInput {
|
|
226
|
+
tenantUserId?: string;
|
|
227
|
+
userId?: string;
|
|
228
|
+
/** Product / app-scoped approve: roles for the current session application. */
|
|
229
|
+
roleIds?: string[];
|
|
230
|
+
applicationIds?: string[];
|
|
231
|
+
/** TM Tenant Users: per-application role rows (same shape as invite). */
|
|
232
|
+
applicationRoleAssignments?: Array<{
|
|
233
|
+
applicationId: string;
|
|
234
|
+
roleIds: string[];
|
|
235
|
+
}>;
|
|
236
|
+
/**
|
|
237
|
+
* When true, allow multi-application assignment (TM Tenant Users + edition feature).
|
|
238
|
+
* Mirrors invite `tenantMembershipInvite`.
|
|
239
|
+
*/
|
|
240
|
+
tenantMembershipApprove?: boolean;
|
|
241
|
+
}
|
|
242
|
+
export interface AXMRejectJoinRequestInput {
|
|
243
|
+
tenantUserId?: string;
|
|
244
|
+
userId?: string;
|
|
245
|
+
}
|
|
246
|
+
export interface AXMCreateUserInTenantInput {
|
|
247
|
+
email?: string;
|
|
248
|
+
username?: string;
|
|
249
|
+
displayName?: string;
|
|
250
|
+
password?: string;
|
|
251
|
+
applicationIds?: string[];
|
|
252
|
+
/** Product Users create: roles for the current session application. */
|
|
253
|
+
roleIds?: string[];
|
|
254
|
+
/** TM Tenant Users create: per-application role rows (merged client-side before submit). */
|
|
255
|
+
applicationRoleAssignments?: Array<{
|
|
256
|
+
applicationId: string;
|
|
257
|
+
roleIds: string[];
|
|
258
|
+
}>;
|
|
259
|
+
/**
|
|
260
|
+
* When true, allow multi-application assignment (TM Tenant Users + edition feature).
|
|
261
|
+
* Parallel to invite `tenantMembershipInvite`; Create path only.
|
|
262
|
+
*/
|
|
263
|
+
tenantMembershipCreate?: boolean;
|
|
264
|
+
}
|
|
265
|
+
export interface AXMCreateUserInTenantResult {
|
|
266
|
+
userId: string;
|
|
267
|
+
tenantUserId: string;
|
|
268
|
+
}
|
|
269
|
+
/** Stable codes for two-factor self-service and login challenge (client maps to i18n). */
|
|
270
|
+
export declare const AXM_TWO_FACTOR_ERROR_CODES: {
|
|
271
|
+
readonly NotSignedIn: "TWO_FACTOR_NOT_SIGNED_IN";
|
|
272
|
+
readonly InvalidInput: "TWO_FACTOR_INVALID_INPUT";
|
|
273
|
+
readonly IncorrectPassword: "TWO_FACTOR_INCORRECT_PASSWORD";
|
|
274
|
+
readonly IncorrectCode: "TWO_FACTOR_INCORRECT_CODE";
|
|
275
|
+
readonly AlreadyEnabled: "TWO_FACTOR_ALREADY_ENABLED";
|
|
276
|
+
readonly NotEnabled: "TWO_FACTOR_NOT_ENABLED";
|
|
277
|
+
readonly EnrollmentExpired: "TWO_FACTOR_ENROLLMENT_EXPIRED";
|
|
278
|
+
readonly ChallengeExpired: "TWO_FACTOR_CHALLENGE_EXPIRED";
|
|
279
|
+
readonly RateLimited: "TWO_FACTOR_RATE_LIMITED";
|
|
280
|
+
readonly InvalidConfiguration: "TWO_FACTOR_INVALID_CONFIGURATION";
|
|
281
|
+
readonly ProofRequired: "TWO_FACTOR_PROOF_REQUIRED";
|
|
282
|
+
readonly UserNotFound: "TWO_FACTOR_USER_NOT_FOUND";
|
|
283
|
+
readonly Forbidden: "TWO_FACTOR_FORBIDDEN";
|
|
284
|
+
};
|
|
285
|
+
export interface AXMStartTwoFactorEnrollmentInput {
|
|
286
|
+
password: string;
|
|
287
|
+
}
|
|
288
|
+
export interface AXMStartTwoFactorEnrollmentResult {
|
|
289
|
+
enrollmentId: string;
|
|
290
|
+
otpauthUri: string;
|
|
291
|
+
/** Base32 secret for manual entry (client renders QR via ax-qrcode). */
|
|
292
|
+
secretBase32: string;
|
|
293
|
+
expiresAt: string;
|
|
294
|
+
}
|
|
295
|
+
export interface AXMConfirmTwoFactorEnrollmentInput {
|
|
296
|
+
enrollmentId: string;
|
|
297
|
+
code: string;
|
|
298
|
+
}
|
|
299
|
+
export interface AXMConfirmTwoFactorEnrollmentResult {
|
|
300
|
+
enabled: true;
|
|
301
|
+
verifiedAt: string;
|
|
302
|
+
}
|
|
303
|
+
export interface AXMDisableTwoFactorInput {
|
|
304
|
+
/** At least one of password or totpCode is required. */
|
|
305
|
+
password?: string;
|
|
306
|
+
totpCode?: string;
|
|
307
|
+
}
|
|
308
|
+
export interface AXMDisableTwoFactorResult {
|
|
309
|
+
enabled: false;
|
|
310
|
+
}
|
|
311
|
+
export interface AXMGenerateTwoFactorRecoveryCodesInput {
|
|
312
|
+
/** At least one of password or totpCode is required. */
|
|
313
|
+
password?: string;
|
|
314
|
+
totpCode?: string;
|
|
315
|
+
}
|
|
316
|
+
export interface AXMGenerateTwoFactorRecoveryCodesResult {
|
|
317
|
+
/** Plaintext codes shown once only (display format ABCD-EFGH). */
|
|
318
|
+
codes: string[];
|
|
319
|
+
}
|
|
320
|
+
export interface AXMGetTwoFactorStatusResult {
|
|
321
|
+
enabled: boolean;
|
|
322
|
+
enrolled: boolean;
|
|
323
|
+
verifiedAt?: string | null;
|
|
324
|
+
hasRecoveryCodes: boolean;
|
|
325
|
+
unusedRecoveryCodeCount: number;
|
|
326
|
+
}
|
|
327
|
+
export interface AXMAdminResetTwoFactorInput {
|
|
328
|
+
userId: string;
|
|
329
|
+
/** When true, only validates that 2FA is enabled; does not wipe or revoke sessions. */
|
|
330
|
+
dryRun?: boolean;
|
|
331
|
+
}
|
|
332
|
+
export interface AXMAdminResetTwoFactorResult {
|
|
333
|
+
reset: boolean;
|
|
334
|
+
}
|
|
335
|
+
export interface AXMVerifyTwoFactorLoginInput {
|
|
336
|
+
challengeId: string;
|
|
337
|
+
/** TOTP (6 digits) or recovery code. */
|
|
338
|
+
code: string;
|
|
339
|
+
rememberMe?: boolean;
|
|
340
|
+
}
|
|
@@ -1,12 +1,88 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
//#region ---- Security management server command keys ----
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.AXM_USER_SEND_PASSWORD_RESET_COMMAND = exports.AXMSecurityManagementServerCommands = void 0;
|
|
4
|
+
exports.AXM_TWO_FACTOR_ERROR_CODES = exports.AXM_JOIN_REQUEST_ERROR_CODES = exports.AXM_ACCEPT_INVITATION_ERROR_CODES = exports.AXM_USER_CREATE_IN_TENANT_COMMAND = exports.AXM_USER_REJECT_JOIN_REQUEST_COMMAND = exports.AXM_USER_APPROVE_JOIN_REQUEST_COMMAND = exports.AXM_USER_CANCEL_INVITATION_COMMAND = exports.AXM_USER_RESEND_INVITATION_COMMAND = exports.AXM_USER_INVITE_COMMAND = exports.AXM_USER_RESET_TWO_FACTOR_COMMAND = exports.AXM_USER_SEND_PASSWORD_RESET_COMMAND = exports.AXM_CHANGE_OWN_PASSWORD_ERROR_CODES = exports.AXMSecurityManagementServerCommands = void 0;
|
|
5
5
|
exports.AXMSecurityManagementServerCommands = {
|
|
6
6
|
SendPasswordResetEmail: 'SecurityManagement:Server:SendPasswordResetEmail',
|
|
7
7
|
CompletePasswordReset: 'SecurityManagement:Server:CompletePasswordReset',
|
|
8
|
+
ChangeOwnPassword: 'SecurityManagement:Server:ChangeOwnPassword',
|
|
9
|
+
GetOwnPasswordStatus: 'SecurityManagement:Server:GetOwnPasswordStatus',
|
|
10
|
+
InviteUser: 'SecurityManagement:Server:InviteUser',
|
|
11
|
+
/** Tenant-subscribed applications for TM invite picker (ADR-TEN-001 D-05). */
|
|
12
|
+
ListTenantEntitledApplications: 'SecurityManagement:Server:ListTenantEntitledApplications',
|
|
13
|
+
/** Per-app Role overlays for TM invite repeater (bypasses app-catalog list isolation). */
|
|
14
|
+
ListInviteAssignableRoles: 'SecurityManagement:Server:ListInviteAssignableRoles',
|
|
15
|
+
ResendInvitation: 'SecurityManagement:Server:ResendInvitation',
|
|
16
|
+
CancelInvitation: 'SecurityManagement:Server:CancelInvitation',
|
|
17
|
+
AcceptInvitation: 'SecurityManagement:Server:AcceptInvitation',
|
|
18
|
+
ListMyPendingInvitations: 'SecurityManagement:Server:ListMyPendingInvitations',
|
|
19
|
+
DeclineInvitation: 'SecurityManagement:Server:DeclineInvitation',
|
|
20
|
+
AcceptMyInvitation: 'SecurityManagement:Server:AcceptMyInvitation',
|
|
21
|
+
LookupTenantByUniqueName: 'SecurityManagement:Server:LookupTenantByUniqueName',
|
|
22
|
+
RequestTenantMembership: 'SecurityManagement:Server:RequestTenantMembership',
|
|
23
|
+
ListMyJoinRequests: 'SecurityManagement:Server:ListMyJoinRequests',
|
|
24
|
+
CancelMyJoinRequest: 'SecurityManagement:Server:CancelMyJoinRequest',
|
|
25
|
+
ApproveJoinRequest: 'SecurityManagement:Server:ApproveJoinRequest',
|
|
26
|
+
RejectJoinRequest: 'SecurityManagement:Server:RejectJoinRequest',
|
|
27
|
+
CreateUserInTenant: 'SecurityManagement:Server:CreateUserInTenant',
|
|
28
|
+
StartTwoFactorEnrollment: 'SecurityManagement:Server:StartTwoFactorEnrollment',
|
|
29
|
+
ConfirmTwoFactorEnrollment: 'SecurityManagement:Server:ConfirmTwoFactorEnrollment',
|
|
30
|
+
DisableTwoFactor: 'SecurityManagement:Server:DisableTwoFactor',
|
|
31
|
+
GenerateTwoFactorRecoveryCodes: 'SecurityManagement:Server:GenerateTwoFactorRecoveryCodes',
|
|
32
|
+
GetTwoFactorStatus: 'SecurityManagement:Server:GetTwoFactorStatus',
|
|
33
|
+
AdminResetTwoFactor: 'SecurityManagement:Server:AdminResetTwoFactor',
|
|
34
|
+
/** Public — completes login after password challenge (TOTP or recovery). */
|
|
35
|
+
VerifyTwoFactorLogin: 'SecurityManagement:Server:VerifyTwoFactorLogin',
|
|
36
|
+
};
|
|
37
|
+
/** Stable codes for self-service password change (client maps to i18n). */
|
|
38
|
+
exports.AXM_CHANGE_OWN_PASSWORD_ERROR_CODES = {
|
|
39
|
+
NotSignedIn: 'CHANGE_OWN_PASSWORD_NOT_SIGNED_IN',
|
|
40
|
+
IncorrectCurrent: 'CHANGE_OWN_PASSWORD_INCORRECT_CURRENT',
|
|
41
|
+
SameAsCurrent: 'CHANGE_OWN_PASSWORD_SAME_AS_CURRENT',
|
|
42
|
+
InvalidInput: 'CHANGE_OWN_PASSWORD_INVALID_INPUT',
|
|
8
43
|
};
|
|
9
44
|
/** Client/UI action key (confirm dialog → server send). */
|
|
10
45
|
exports.AXM_USER_SEND_PASSWORD_RESET_COMMAND = 'SecurityManagement:User:SendPasswordResetEmail';
|
|
46
|
+
/** Client/UI action key (confirm dialog → server admin reset 2FA). */
|
|
47
|
+
exports.AXM_USER_RESET_TWO_FACTOR_COMMAND = 'SecurityManagement:User:ResetTwoFactor';
|
|
48
|
+
/** Client/UI action keys for invite / create-in-tenant flows. */
|
|
49
|
+
exports.AXM_USER_INVITE_COMMAND = 'SecurityManagement:User:Invite';
|
|
50
|
+
exports.AXM_USER_RESEND_INVITATION_COMMAND = 'SecurityManagement:User:ResendInvitation';
|
|
51
|
+
exports.AXM_USER_CANCEL_INVITATION_COMMAND = 'SecurityManagement:User:CancelInvitation';
|
|
52
|
+
exports.AXM_USER_APPROVE_JOIN_REQUEST_COMMAND = 'SecurityManagement:User:ApproveJoinRequest';
|
|
53
|
+
exports.AXM_USER_REJECT_JOIN_REQUEST_COMMAND = 'SecurityManagement:User:RejectJoinRequest';
|
|
54
|
+
exports.AXM_USER_CREATE_IN_TENANT_COMMAND = 'SecurityManagement:User:CreateInTenant';
|
|
55
|
+
/** Stable codes for public invitation accept (client maps invalid/expired to the page, not a toast). */
|
|
56
|
+
exports.AXM_ACCEPT_INVITATION_ERROR_CODES = {
|
|
57
|
+
Invalid: 'ACCEPT_INVITATION_INVALID',
|
|
58
|
+
Expired: 'ACCEPT_INVITATION_EXPIRED',
|
|
59
|
+
PasswordRequired: 'ACCEPT_INVITATION_PASSWORD_REQUIRED',
|
|
60
|
+
};
|
|
61
|
+
/** Stable codes for waiting-room join-by-unique-name (client maps to i18n). */
|
|
62
|
+
exports.AXM_JOIN_REQUEST_ERROR_CODES = {
|
|
63
|
+
NotSignedIn: 'JOIN_REQUEST_NOT_SIGNED_IN',
|
|
64
|
+
InvalidInput: 'JOIN_REQUEST_INVALID_INPUT',
|
|
65
|
+
TenantNotFound: 'JOIN_REQUEST_TENANT_NOT_FOUND',
|
|
66
|
+
AlreadyMember: 'JOIN_REQUEST_ALREADY_MEMBER',
|
|
67
|
+
InvitePending: 'JOIN_REQUEST_INVITE_PENDING',
|
|
68
|
+
RequestNotFound: 'JOIN_REQUEST_NOT_FOUND',
|
|
69
|
+
NotPending: 'JOIN_REQUEST_NOT_PENDING',
|
|
70
|
+
};
|
|
71
|
+
/** Stable codes for two-factor self-service and login challenge (client maps to i18n). */
|
|
72
|
+
exports.AXM_TWO_FACTOR_ERROR_CODES = {
|
|
73
|
+
NotSignedIn: 'TWO_FACTOR_NOT_SIGNED_IN',
|
|
74
|
+
InvalidInput: 'TWO_FACTOR_INVALID_INPUT',
|
|
75
|
+
IncorrectPassword: 'TWO_FACTOR_INCORRECT_PASSWORD',
|
|
76
|
+
IncorrectCode: 'TWO_FACTOR_INCORRECT_CODE',
|
|
77
|
+
AlreadyEnabled: 'TWO_FACTOR_ALREADY_ENABLED',
|
|
78
|
+
NotEnabled: 'TWO_FACTOR_NOT_ENABLED',
|
|
79
|
+
EnrollmentExpired: 'TWO_FACTOR_ENROLLMENT_EXPIRED',
|
|
80
|
+
ChallengeExpired: 'TWO_FACTOR_CHALLENGE_EXPIRED',
|
|
81
|
+
RateLimited: 'TWO_FACTOR_RATE_LIMITED',
|
|
82
|
+
InvalidConfiguration: 'TWO_FACTOR_INVALID_CONFIGURATION',
|
|
83
|
+
ProofRequired: 'TWO_FACTOR_PROOF_REQUIRED',
|
|
84
|
+
UserNotFound: 'TWO_FACTOR_USER_NOT_FOUND',
|
|
85
|
+
Forbidden: 'TWO_FACTOR_FORBIDDEN',
|
|
86
|
+
};
|
|
11
87
|
//#endregion
|
|
12
88
|
//# sourceMappingURL=server-commands.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-commands.js","sourceRoot":"","sources":["../../../../../libs/modules/security-management/
|
|
1
|
+
{"version":3,"file":"server-commands.js","sourceRoot":"","sources":["../../../../../libs/modules/security-management/contracts/src/server-commands.ts"],"names":[],"mappings":";AAAA,2DAA2D;;;AAE9C,QAAA,mCAAmC,GAAG;IACjD,sBAAsB,EAAE,kDAAkD;IAC1E,qBAAqB,EAAE,iDAAiD;IACxE,iBAAiB,EAAE,6CAA6C;IAChE,oBAAoB,EAAE,gDAAgD;IACtE,UAAU,EAAE,sCAAsC;IAClD,8EAA8E;IAC9E,8BAA8B,EAAE,0DAA0D;IAC1F,0FAA0F;IAC1F,yBAAyB,EAAE,qDAAqD;IAChF,gBAAgB,EAAE,4CAA4C;IAC9D,gBAAgB,EAAE,4CAA4C;IAC9D,gBAAgB,EAAE,4CAA4C;IAC9D,wBAAwB,EAAE,oDAAoD;IAC9E,iBAAiB,EAAE,6CAA6C;IAChE,kBAAkB,EAAE,8CAA8C;IAClE,wBAAwB,EAAE,oDAAoD;IAC9E,uBAAuB,EAAE,mDAAmD;IAC5E,kBAAkB,EAAE,8CAA8C;IAClE,mBAAmB,EAAE,+CAA+C;IACpE,kBAAkB,EAAE,8CAA8C;IAClE,iBAAiB,EAAE,6CAA6C;IAChE,kBAAkB,EAAE,8CAA8C;IAClE,wBAAwB,EAAE,oDAAoD;IAC9E,0BAA0B,EAAE,sDAAsD;IAClF,gBAAgB,EAAE,4CAA4C;IAC9D,8BAA8B,EAAE,0DAA0D;IAC1F,kBAAkB,EAAE,8CAA8C;IAClE,mBAAmB,EAAE,+CAA+C;IACpE,4EAA4E;IAC5E,oBAAoB,EAAE,gDAAgD;CAC9D,CAAC;AAEX,2EAA2E;AAC9D,QAAA,mCAAmC,GAAG;IACjD,WAAW,EAAE,mCAAmC;IAChD,gBAAgB,EAAE,uCAAuC;IACzD,aAAa,EAAE,qCAAqC;IACpD,YAAY,EAAE,mCAAmC;CACzC,CAAC;AAEX,2DAA2D;AAC9C,QAAA,oCAAoC,GAAG,gDAAgD,CAAC;AAErG,sEAAsE;AACzD,QAAA,iCAAiC,GAAG,wCAAwC,CAAC;AAE1F,iEAAiE;AACpD,QAAA,uBAAuB,GAAG,gCAAgC,CAAC;AAC3D,QAAA,kCAAkC,GAAG,0CAA0C,CAAC;AAChF,QAAA,kCAAkC,GAAG,0CAA0C,CAAC;AAChF,QAAA,qCAAqC,GAAG,4CAA4C,CAAC;AACrF,QAAA,oCAAoC,GAAG,2CAA2C,CAAC;AACnF,QAAA,iCAAiC,GAAG,wCAAwC,CAAC;AAqG1F,wGAAwG;AAC3F,QAAA,iCAAiC,GAAG;IAC/C,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,2BAA2B;IACpC,gBAAgB,EAAE,qCAAqC;CAC/C,CAAC;AAyCX,+EAA+E;AAClE,QAAA,4BAA4B,GAAG;IAC1C,WAAW,EAAE,4BAA4B;IACzC,YAAY,EAAE,4BAA4B;IAC1C,cAAc,EAAE,+BAA+B;IAC/C,aAAa,EAAE,6BAA6B;IAC5C,aAAa,EAAE,6BAA6B;IAC5C,eAAe,EAAE,wBAAwB;IACzC,UAAU,EAAE,0BAA0B;CAC9B,CAAC;AA0FX,0FAA0F;AAC7E,QAAA,0BAA0B,GAAG;IACxC,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,0BAA0B;IACxC,iBAAiB,EAAE,+BAA+B;IAClD,aAAa,EAAE,2BAA2B;IAC1C,cAAc,EAAE,4BAA4B;IAC5C,UAAU,EAAE,wBAAwB;IACpC,iBAAiB,EAAE,+BAA+B;IAClD,gBAAgB,EAAE,8BAA8B;IAChD,WAAW,EAAE,yBAAyB;IACtC,oBAAoB,EAAE,kCAAkC;IACxD,aAAa,EAAE,2BAA2B;IAC1C,YAAY,EAAE,2BAA2B;IACzC,SAAS,EAAE,sBAAsB;CACzB,CAAC;AAsEX,YAAY"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Platform settings owned by Security Management. */
|
|
2
|
+
export declare const AXMSecurityManagementSettings: {
|
|
3
|
+
/**
|
|
4
|
+
* Which Users-list add actions are available.
|
|
5
|
+
* `create` and `invite` are primary. `both` shows them as secondary actions.
|
|
6
|
+
*/
|
|
7
|
+
readonly UserProvisioningMode: "SecurityManagement:Setting:User.ProvisioningMode";
|
|
8
|
+
};
|
|
9
|
+
export declare const AXMUserProvisioningMode: {
|
|
10
|
+
readonly Create: "create";
|
|
11
|
+
readonly Invite: "invite";
|
|
12
|
+
readonly Both: "both";
|
|
13
|
+
};
|
|
14
|
+
export type AXMUserProvisioningMode = (typeof AXMUserProvisioningMode)[keyof typeof AXMUserProvisioningMode];
|
|
15
|
+
/** Used when the platform setting has not been saved yet. */
|
|
16
|
+
export declare const AXM_USER_PROVISIONING_MODE_DEFAULT: "both";
|