@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.
Files changed (453) hide show
  1. package/contracts/src/AXM_USER_ACCESS_STATE_DEFINITION_KEY.js.map +1 -1
  2. package/contracts/src/AXM_USER_EFFECTIVE_STATE_DEFINITION_KEY.js.map +1 -1
  3. package/contracts/src/ROLE_PERMISSIONS_PAGE_COMPONENT_KEY.d.ts +2 -0
  4. package/contracts/src/ROLE_PERMISSIONS_PAGE_COMPONENT_KEY.js +6 -0
  5. package/contracts/src/ROLE_PERMISSIONS_PAGE_COMPONENT_KEY.js.map +1 -0
  6. package/contracts/src/USER_ROLES_PAGE_COMPONENT_KEY.d.ts +1 -0
  7. package/contracts/src/USER_ROLES_PAGE_COMPONENT_KEY.js +5 -0
  8. package/contracts/src/USER_ROLES_PAGE_COMPONENT_KEY.js.map +1 -0
  9. package/contracts/src/create-application-role-rows.util.d.ts +15 -0
  10. package/contracts/src/create-application-role-rows.util.js +67 -0
  11. package/contracts/src/create-application-role-rows.util.js.map +1 -0
  12. package/contracts/src/device-session-admin-scope.d.ts +15 -0
  13. package/contracts/src/device-session-admin-scope.js +16 -0
  14. package/contracts/src/device-session-admin-scope.js.map +1 -0
  15. package/contracts/src/entities/device-sessions/device-sessions.entity.js +50 -1
  16. package/contracts/src/entities/device-sessions/device-sessions.entity.js.map +1 -1
  17. package/contracts/src/entities/device-sessions/device-sessions.types.d.ts +7 -0
  18. package/contracts/src/entities/device-sessions/device-sessions.types.js.map +1 -1
  19. package/contracts/src/entities/device-sessions/index.d.ts +0 -1
  20. package/contracts/src/entities/device-sessions/index.js +0 -1
  21. package/contracts/src/entities/device-sessions/index.js.map +1 -1
  22. package/contracts/src/entities/identity-provider/identity-provider.entity.d.ts +2 -0
  23. package/contracts/src/entities/identity-provider/identity-provider.entity.js +453 -0
  24. package/contracts/src/entities/identity-provider/identity-provider.entity.js.map +1 -0
  25. package/contracts/src/entities/identity-provider/identity-provider.types.d.ts +61 -0
  26. package/contracts/src/entities/identity-provider/identity-provider.types.js +14 -0
  27. package/contracts/src/entities/identity-provider/identity-provider.types.js.map +1 -0
  28. package/contracts/src/entities/identity-provider/index.d.ts +1 -0
  29. package/contracts/src/entities/identity-provider/index.js +5 -0
  30. package/contracts/src/entities/identity-provider/index.js.map +1 -0
  31. package/contracts/src/entities/index.d.ts +4 -0
  32. package/contracts/src/entities/index.js +4 -0
  33. package/contracts/src/entities/index.js.map +1 -1
  34. package/contracts/src/entities/policy/index.d.ts +0 -1
  35. package/contracts/src/entities/policy/index.js +0 -1
  36. package/contracts/src/entities/policy/index.js.map +1 -1
  37. package/contracts/src/entities/policy/policy.entity.js +15 -0
  38. package/contracts/src/entities/policy/policy.entity.js.map +1 -1
  39. package/contracts/src/entities/policy/policy.types.js.map +1 -1
  40. package/contracts/src/entities/profile/index.d.ts +0 -1
  41. package/contracts/src/entities/profile/index.js +0 -1
  42. package/contracts/src/entities/profile/index.js.map +1 -1
  43. package/contracts/src/entities/profile/profile.entity.js +15 -0
  44. package/contracts/src/entities/profile/profile.entity.js.map +1 -1
  45. package/contracts/src/entities/profile/profile.types.js.map +1 -1
  46. package/contracts/src/entities/role-permission/index.d.ts +1 -0
  47. package/contracts/src/entities/role-permission/index.js +5 -0
  48. package/contracts/src/entities/role-permission/index.js.map +1 -0
  49. package/contracts/src/entities/role-permission/role-permission.entity.d.ts +2 -0
  50. package/contracts/src/entities/role-permission/role-permission.entity.js +163 -0
  51. package/contracts/src/entities/role-permission/role-permission.entity.js.map +1 -0
  52. package/contracts/src/entities/role-permission/role-permission.types.d.ts +11 -0
  53. package/contracts/src/entities/role-permission/role-permission.types.js +5 -0
  54. package/contracts/src/entities/role-permission/role-permission.types.js.map +1 -0
  55. package/contracts/src/entities/roles/index.d.ts +0 -1
  56. package/contracts/src/entities/roles/index.js +0 -1
  57. package/contracts/src/entities/roles/index.js.map +1 -1
  58. package/contracts/src/entities/roles/roles.entity.js +73 -144
  59. package/contracts/src/entities/roles/roles.entity.js.map +1 -1
  60. package/contracts/src/entities/roles/roles.types.d.ts +4 -1
  61. package/contracts/src/entities/roles/roles.types.js.map +1 -1
  62. package/contracts/src/entities/user-role/index.d.ts +1 -0
  63. package/{src/lib/seed/tenant → contracts/src/entities/user-role}/index.js +1 -1
  64. package/contracts/src/entities/user-role/index.js.map +1 -0
  65. package/contracts/src/entities/user-role/user-role.entity.d.ts +2 -0
  66. package/contracts/src/entities/user-role/user-role.entity.js +164 -0
  67. package/contracts/src/entities/user-role/user-role.entity.js.map +1 -0
  68. package/contracts/src/entities/user-role/user-role.types.d.ts +11 -0
  69. package/contracts/src/entities/user-role/user-role.types.js +5 -0
  70. package/contracts/src/entities/user-role/user-role.types.js.map +1 -0
  71. package/contracts/src/entities/user-two-factor/index.d.ts +2 -0
  72. package/contracts/src/entities/user-two-factor/index.js +8 -0
  73. package/contracts/src/entities/user-two-factor/index.js.map +1 -0
  74. package/contracts/src/entities/user-two-factor/user-two-factor.entity.d.ts +6 -0
  75. package/contracts/src/entities/user-two-factor/user-two-factor.entity.js +103 -0
  76. package/contracts/src/entities/user-two-factor/user-two-factor.entity.js.map +1 -0
  77. package/contracts/src/entities/user-two-factor/user-two-factor.types.d.ts +24 -0
  78. package/contracts/src/entities/user-two-factor/user-two-factor.types.js +4 -0
  79. package/contracts/src/entities/user-two-factor/user-two-factor.types.js.map +1 -0
  80. package/contracts/src/entities/users/index.d.ts +1 -1
  81. package/contracts/src/entities/users/index.js +1 -1
  82. package/contracts/src/entities/users/index.js.map +1 -1
  83. package/contracts/src/entities/users/user-provisioning-list-actions.d.ts +8 -0
  84. package/contracts/src/entities/users/user-provisioning-list-actions.js +95 -0
  85. package/contracts/src/entities/users/user-provisioning-list-actions.js.map +1 -0
  86. package/contracts/src/entities/users/users.entity.js +244 -83
  87. package/contracts/src/entities/users/users.entity.js.map +1 -1
  88. package/contracts/src/entities/users/users.types.d.ts +15 -0
  89. package/contracts/src/entities/users/users.types.js.map +1 -1
  90. package/contracts/src/entity-catalog.d.ts +7 -0
  91. package/contracts/src/entity-catalog.js +28 -0
  92. package/contracts/src/entity-catalog.js.map +1 -0
  93. package/contracts/src/entity-entry.device-sessions.d.ts +1 -0
  94. package/contracts/src/entity-entry.device-sessions.js +6 -0
  95. package/contracts/src/entity-entry.device-sessions.js.map +1 -0
  96. package/contracts/src/entity-entry.identity-provider.d.ts +1 -0
  97. package/contracts/src/entity-entry.identity-provider.js +6 -0
  98. package/contracts/src/entity-entry.identity-provider.js.map +1 -0
  99. package/contracts/src/entity-entry.policy.d.ts +1 -0
  100. package/contracts/src/entity-entry.policy.js +6 -0
  101. package/contracts/src/entity-entry.policy.js.map +1 -0
  102. package/contracts/src/entity-entry.profile.d.ts +1 -0
  103. package/contracts/src/entity-entry.profile.js +6 -0
  104. package/contracts/src/entity-entry.profile.js.map +1 -0
  105. package/contracts/src/entity-entry.role-permission.d.ts +1 -0
  106. package/contracts/src/entity-entry.role-permission.js +6 -0
  107. package/contracts/src/entity-entry.role-permission.js.map +1 -0
  108. package/contracts/src/entity-entry.roles.d.ts +1 -0
  109. package/contracts/src/entity-entry.roles.js +6 -0
  110. package/contracts/src/entity-entry.roles.js.map +1 -0
  111. package/contracts/src/entity-entry.user-role.d.ts +1 -0
  112. package/contracts/src/entity-entry.user-role.js +6 -0
  113. package/contracts/src/entity-entry.user-role.js.map +1 -0
  114. package/contracts/src/entity-entry.user-two-factor.d.ts +1 -0
  115. package/contracts/src/entity-entry.user-two-factor.js +6 -0
  116. package/contracts/src/entity-entry.user-two-factor.js.map +1 -0
  117. package/contracts/src/entity-entry.users.d.ts +1 -0
  118. package/contracts/src/entity-entry.users.js +6 -0
  119. package/contracts/src/entity-entry.users.js.map +1 -0
  120. package/contracts/src/features.keys.d.ts +4 -0
  121. package/contracts/src/features.keys.js +4 -0
  122. package/contracts/src/features.keys.js.map +1 -1
  123. package/contracts/src/index.d.ts +10 -1
  124. package/contracts/src/index.js +10 -1
  125. package/contracts/src/index.js.map +1 -1
  126. package/contracts/src/invite-application-role-rows.util.d.ts +16 -0
  127. package/contracts/src/invite-application-role-rows.util.js +68 -0
  128. package/contracts/src/invite-application-role-rows.util.js.map +1 -0
  129. package/contracts/src/invite-assignable-roles.util.d.ts +34 -0
  130. package/contracts/src/invite-assignable-roles.util.js +75 -0
  131. package/contracts/src/invite-assignable-roles.util.js.map +1 -0
  132. package/contracts/src/lib/context.definitions.d.ts +2 -0
  133. package/contracts/src/lib/context.definitions.js +15 -0
  134. package/contracts/src/lib/context.definitions.js.map +1 -0
  135. package/contracts/src/manifest.d.ts +6 -0
  136. package/contracts/src/manifest.js +24 -0
  137. package/contracts/src/manifest.js.map +1 -0
  138. package/contracts/src/menu.keys.d.ts +1 -0
  139. package/contracts/src/menu.keys.js +1 -0
  140. package/contracts/src/menu.keys.js.map +1 -1
  141. package/contracts/src/permission.keys.d.ts +48 -18
  142. package/contracts/src/permission.keys.js +49 -21
  143. package/contracts/src/permission.keys.js.map +1 -1
  144. package/contracts/src/resolve-user-effective-state.js.map +1 -1
  145. package/contracts/src/root-config.d.ts +33 -0
  146. package/contracts/src/root-config.js +33 -0
  147. package/contracts/src/root-config.js.map +1 -1
  148. package/contracts/src/server-commands.d.ts +322 -0
  149. package/contracts/src/server-commands.js +77 -1
  150. package/contracts/src/server-commands.js.map +1 -1
  151. package/contracts/src/settings.keys.d.ts +16 -0
  152. package/contracts/src/settings.keys.js +21 -0
  153. package/contracts/src/settings.keys.js.map +1 -0
  154. package/contracts/src/user-access-state.js.map +1 -1
  155. package/contracts/src/user-effective-state.js.map +1 -1
  156. package/contracts/src/user-invitation.d.ts +41 -0
  157. package/contracts/src/user-invitation.js +18 -0
  158. package/contracts/src/user-invitation.js.map +1 -0
  159. package/contracts/src/user-password-reset.js.map +1 -1
  160. package/package.json +16 -18
  161. package/server/src/index.d.ts +3 -0
  162. package/server/src/index.js +11 -0
  163. package/server/src/index.js.map +1 -0
  164. package/server/src/lib/effective-access-history/effective-access-history.service.d.ts +35 -0
  165. package/server/src/lib/effective-access-history/effective-access-history.service.js +486 -0
  166. package/server/src/lib/effective-access-history/effective-access-history.service.js.map +1 -0
  167. package/server/src/lib/effective-access-history/effective-access-history.types.d.ts +64 -0
  168. package/server/src/lib/effective-access-history/effective-access-history.types.js +5 -0
  169. package/server/src/lib/effective-access-history/effective-access-history.types.js.map +1 -0
  170. package/server/src/lib/effective-access-history/version-as-of.util.d.ts +37 -0
  171. package/server/src/lib/effective-access-history/version-as-of.util.js +167 -0
  172. package/server/src/lib/effective-access-history/version-as-of.util.js.map +1 -0
  173. package/server/src/lib/entities/index.d.ts +1 -0
  174. package/server/src/lib/entities/index.js +5 -0
  175. package/{src/lib/seed/tenant → server/src/lib/entities}/index.js.map +1 -1
  176. package/server/src/lib/entities/security-management.entity-catalog.d.ts +1 -0
  177. package/server/src/lib/entities/security-management.entity-catalog.js +12 -0
  178. package/server/src/lib/entities/security-management.entity-catalog.js.map +1 -0
  179. package/server/src/lib/handlers/security-report.handlers.d.ts +36 -0
  180. package/server/src/lib/handlers/security-report.handlers.js +164 -0
  181. package/server/src/lib/handlers/security-report.handlers.js.map +1 -0
  182. package/server/src/lib/identity-provider/auth-oauth-clients.constants.d.ts +5 -0
  183. package/server/src/lib/identity-provider/auth-oauth-clients.constants.js +11 -0
  184. package/server/src/lib/identity-provider/auth-oauth-clients.constants.js.map +1 -0
  185. package/server/src/lib/identity-provider/identity-provider-catalog.service.d.ts +20 -0
  186. package/server/src/lib/identity-provider/identity-provider-catalog.service.js +169 -0
  187. package/server/src/lib/identity-provider/identity-provider-catalog.service.js.map +1 -0
  188. package/server/src/lib/identity-provider/identity-provider-ids.constants.d.ts +8 -0
  189. package/server/src/lib/identity-provider/identity-provider-ids.constants.js +19 -0
  190. package/server/src/lib/identity-provider/identity-provider-ids.constants.js.map +1 -0
  191. package/server/src/lib/identity-provider/identity-provider-stub.bootstrap.d.ts +12 -0
  192. package/server/src/lib/identity-provider/identity-provider-stub.bootstrap.js +48 -0
  193. package/server/src/lib/identity-provider/identity-provider-stub.bootstrap.js.map +1 -0
  194. package/server/src/lib/identity-provider/identity-provider.constants.d.ts +1 -0
  195. package/server/src/lib/identity-provider/identity-provider.constants.js +7 -0
  196. package/server/src/lib/identity-provider/identity-provider.constants.js.map +1 -0
  197. package/server/src/lib/middlewares/device-sessions-active.middleware.d.ts +15 -0
  198. package/server/src/lib/middlewares/device-sessions-active.middleware.js +76 -0
  199. package/server/src/lib/middlewares/device-sessions-active.middleware.js.map +1 -0
  200. package/server/src/lib/middlewares/device-sessions-app-scope.middleware.d.ts +29 -0
  201. package/server/src/lib/middlewares/device-sessions-app-scope.middleware.js +137 -0
  202. package/server/src/lib/middlewares/device-sessions-app-scope.middleware.js.map +1 -0
  203. package/server/src/lib/middlewares/device-sessions-app-scope.util.d.ts +41 -0
  204. package/server/src/lib/middlewares/device-sessions-app-scope.util.js +69 -0
  205. package/server/src/lib/middlewares/device-sessions-app-scope.util.js.map +1 -0
  206. package/server/src/lib/middlewares/device-sessions-token-revoke.middleware.d.ts +18 -0
  207. package/server/src/lib/middlewares/device-sessions-token-revoke.middleware.js +90 -0
  208. package/server/src/lib/middlewares/device-sessions-token-revoke.middleware.js.map +1 -0
  209. package/server/src/lib/middlewares/user-assigned-roles.middleware.d.ts +36 -0
  210. package/server/src/lib/middlewares/user-assigned-roles.middleware.js +359 -0
  211. package/server/src/lib/middlewares/user-assigned-roles.middleware.js.map +1 -0
  212. package/{src → server/src}/lib/middlewares/user-effective-state.middleware.js +1 -1
  213. package/server/src/lib/middlewares/user-effective-state.middleware.js.map +1 -0
  214. package/server/src/lib/middlewares/user-invitation-list.middleware.d.ts +32 -0
  215. package/server/src/lib/middlewares/user-invitation-list.middleware.js +250 -0
  216. package/server/src/lib/middlewares/user-invitation-list.middleware.js.map +1 -0
  217. package/server/src/lib/middlewares/user-profile-write.middleware.d.ts +18 -0
  218. package/server/src/lib/middlewares/user-profile-write.middleware.js +206 -0
  219. package/server/src/lib/middlewares/user-profile-write.middleware.js.map +1 -0
  220. package/server/src/lib/password-reset/change-own-password.command.d.ts +8 -0
  221. package/server/src/lib/password-reset/change-own-password.command.js +38 -0
  222. package/server/src/lib/password-reset/change-own-password.command.js.map +1 -0
  223. package/{src → server/src}/lib/password-reset/complete-password-reset.command.d.ts +3 -4
  224. package/{src → server/src}/lib/password-reset/complete-password-reset.command.js +8 -12
  225. package/server/src/lib/password-reset/complete-password-reset.command.js.map +1 -0
  226. package/server/src/lib/password-reset/get-own-password-status.command.d.ts +8 -0
  227. package/server/src/lib/password-reset/get-own-password-status.command.js +31 -0
  228. package/server/src/lib/password-reset/get-own-password-status.command.js.map +1 -0
  229. package/{src → server/src}/lib/password-reset/send-password-reset-email.command.d.ts +12 -13
  230. package/{src → server/src}/lib/password-reset/send-password-reset-email.command.js +10 -15
  231. package/server/src/lib/password-reset/send-password-reset-email.command.js.map +1 -0
  232. package/server/src/lib/password-reset/user-change-password.service.d.ts +24 -0
  233. package/server/src/lib/password-reset/user-change-password.service.js +92 -0
  234. package/server/src/lib/password-reset/user-change-password.service.js.map +1 -0
  235. package/{src → server/src}/lib/password-reset/user-password-reset.service.d.ts +2 -7
  236. package/{src → server/src}/lib/password-reset/user-password-reset.service.js +29 -90
  237. package/server/src/lib/password-reset/user-password-reset.service.js.map +1 -0
  238. package/server/src/lib/queries/get-permission-holders-history.query.d.ts +4 -0
  239. package/server/src/lib/queries/get-permission-holders-history.query.definition.d.ts +5 -0
  240. package/server/src/lib/queries/get-permission-holders-history.query.definition.js +38 -0
  241. package/server/src/lib/queries/get-permission-holders-history.query.definition.js.map +1 -0
  242. package/server/src/lib/queries/get-permission-holders-history.query.js +25 -0
  243. package/server/src/lib/queries/get-permission-holders-history.query.js.map +1 -0
  244. package/server/src/lib/queries/get-role-holders-history.query.d.ts +4 -0
  245. package/server/src/lib/queries/get-role-holders-history.query.definition.d.ts +5 -0
  246. package/server/src/lib/queries/get-role-holders-history.query.definition.js +38 -0
  247. package/server/src/lib/queries/get-role-holders-history.query.definition.js.map +1 -0
  248. package/server/src/lib/queries/get-role-holders-history.query.js +25 -0
  249. package/server/src/lib/queries/get-role-holders-history.query.js.map +1 -0
  250. package/server/src/lib/queries/get-user-effective-permissions-history.query.d.ts +4 -0
  251. package/server/src/lib/queries/get-user-effective-permissions-history.query.definition.d.ts +5 -0
  252. package/server/src/lib/queries/get-user-effective-permissions-history.query.definition.js +35 -0
  253. package/server/src/lib/queries/get-user-effective-permissions-history.query.definition.js.map +1 -0
  254. package/server/src/lib/queries/get-user-effective-permissions-history.query.js +26 -0
  255. package/server/src/lib/queries/get-user-effective-permissions-history.query.js.map +1 -0
  256. package/server/src/lib/queries/get-user-effective-roles-history.query.d.ts +4 -0
  257. package/server/src/lib/queries/get-user-effective-roles-history.query.definition.d.ts +5 -0
  258. package/server/src/lib/queries/get-user-effective-roles-history.query.definition.js +36 -0
  259. package/server/src/lib/queries/get-user-effective-roles-history.query.definition.js.map +1 -0
  260. package/server/src/lib/queries/get-user-effective-roles-history.query.js +25 -0
  261. package/server/src/lib/queries/get-user-effective-roles-history.query.js.map +1 -0
  262. package/server/src/lib/queries/get-user-password-change-history.query.d.ts +4 -0
  263. package/server/src/lib/queries/get-user-password-change-history.query.definition.d.ts +5 -0
  264. package/server/src/lib/queries/get-user-password-change-history.query.definition.js +33 -0
  265. package/server/src/lib/queries/get-user-password-change-history.query.definition.js.map +1 -0
  266. package/server/src/lib/queries/get-user-password-change-history.query.js +23 -0
  267. package/server/src/lib/queries/get-user-password-change-history.query.js.map +1 -0
  268. package/server/src/lib/queries/security-query.helpers.d.ts +47 -0
  269. package/server/src/lib/queries/security-query.helpers.js +184 -0
  270. package/server/src/lib/queries/security-query.helpers.js.map +1 -0
  271. package/server/src/lib/reports/password-change-history.service.d.ts +14 -0
  272. package/server/src/lib/reports/password-change-history.service.js +74 -0
  273. package/server/src/lib/reports/password-change-history.service.js.map +1 -0
  274. package/server/src/lib/reports/permission-display-catalog.d.ts +7 -0
  275. package/server/src/lib/reports/permission-display-catalog.js +101 -0
  276. package/server/src/lib/reports/permission-display-catalog.js.map +1 -0
  277. package/server/src/lib/reports/security-report-definition.provider.d.ts +5 -0
  278. package/server/src/lib/reports/security-report-definition.provider.js +23 -0
  279. package/server/src/lib/reports/security-report-definition.provider.js.map +1 -0
  280. package/server/src/lib/reports/security-report-parameter-groups.d.ts +343 -0
  281. package/server/src/lib/reports/security-report-parameter-groups.js +167 -0
  282. package/server/src/lib/reports/security-report-parameter-groups.js.map +1 -0
  283. package/server/src/lib/reports/security-report-scope.constants.d.ts +5 -0
  284. package/server/src/lib/reports/security-report-scope.constants.js +11 -0
  285. package/server/src/lib/reports/security-report-scope.constants.js.map +1 -0
  286. package/server/src/lib/reports/security-report.definitions.d.ts +12 -0
  287. package/server/src/lib/reports/security-report.definitions.js +386 -0
  288. package/server/src/lib/reports/security-report.definitions.js.map +1 -0
  289. package/server/src/lib/security-management-entity-storage.bootstrap.d.ts +26 -0
  290. package/server/src/lib/security-management-entity-storage.bootstrap.js +56 -0
  291. package/server/src/lib/security-management-entity-storage.bootstrap.js.map +1 -0
  292. package/server/src/lib/security-management-server.module.d.ts +7 -0
  293. package/server/src/lib/security-management-server.module.js +190 -0
  294. package/server/src/lib/security-management-server.module.js.map +1 -0
  295. package/server/src/lib/two-factor/admin-reset-two-factor.command.d.ts +8 -0
  296. package/server/src/lib/two-factor/admin-reset-two-factor.command.js +35 -0
  297. package/server/src/lib/two-factor/admin-reset-two-factor.command.js.map +1 -0
  298. package/server/src/lib/two-factor/confirm-two-factor-enrollment.command.d.ts +8 -0
  299. package/server/src/lib/two-factor/confirm-two-factor-enrollment.command.js +34 -0
  300. package/server/src/lib/two-factor/confirm-two-factor-enrollment.command.js.map +1 -0
  301. package/server/src/lib/two-factor/disable-two-factor.command.d.ts +8 -0
  302. package/server/src/lib/two-factor/disable-two-factor.command.js +31 -0
  303. package/server/src/lib/two-factor/disable-two-factor.command.js.map +1 -0
  304. package/server/src/lib/two-factor/generate-two-factor-recovery-codes.command.d.ts +8 -0
  305. package/server/src/lib/two-factor/generate-two-factor-recovery-codes.command.js +34 -0
  306. package/server/src/lib/two-factor/generate-two-factor-recovery-codes.command.js.map +1 -0
  307. package/server/src/lib/two-factor/get-two-factor-status.command.d.ts +8 -0
  308. package/server/src/lib/two-factor/get-two-factor-status.command.js +31 -0
  309. package/server/src/lib/two-factor/get-two-factor-status.command.js.map +1 -0
  310. package/server/src/lib/two-factor/recovery-codes.util.d.ts +11 -0
  311. package/server/src/lib/two-factor/recovery-codes.util.js +73 -0
  312. package/server/src/lib/two-factor/recovery-codes.util.js.map +1 -0
  313. package/server/src/lib/two-factor/start-two-factor-enrollment.command.d.ts +8 -0
  314. package/server/src/lib/two-factor/start-two-factor-enrollment.command.js +31 -0
  315. package/server/src/lib/two-factor/start-two-factor-enrollment.command.js.map +1 -0
  316. package/server/src/lib/two-factor/totp.util.d.ts +32 -0
  317. package/server/src/lib/two-factor/totp.util.js +128 -0
  318. package/server/src/lib/two-factor/totp.util.js.map +1 -0
  319. package/server/src/lib/two-factor/two-factor-encryption.util.d.ts +25 -0
  320. package/server/src/lib/two-factor/two-factor-encryption.util.js +123 -0
  321. package/server/src/lib/two-factor/two-factor-encryption.util.js.map +1 -0
  322. package/server/src/lib/two-factor/two-factor-gate.bootstrap.d.ts +9 -0
  323. package/server/src/lib/two-factor/two-factor-gate.bootstrap.js +65 -0
  324. package/server/src/lib/two-factor/two-factor-gate.bootstrap.js.map +1 -0
  325. package/server/src/lib/two-factor/two-factor-redis.store.d.ts +63 -0
  326. package/server/src/lib/two-factor/two-factor-redis.store.js +321 -0
  327. package/server/src/lib/two-factor/two-factor-redis.store.js.map +1 -0
  328. package/server/src/lib/two-factor/user-two-factor.service.d.ts +62 -0
  329. package/server/src/lib/two-factor/user-two-factor.service.js +573 -0
  330. package/server/src/lib/two-factor/user-two-factor.service.js.map +1 -0
  331. package/server/src/lib/two-factor/verify-two-factor-login.command.d.ts +18 -0
  332. package/server/src/lib/two-factor/verify-two-factor-login.command.js +54 -0
  333. package/server/src/lib/two-factor/verify-two-factor-login.command.js.map +1 -0
  334. package/server/src/lib/user-invitation/accept-invitation.command.d.ts +8 -0
  335. package/server/src/lib/user-invitation/accept-invitation.command.js +41 -0
  336. package/server/src/lib/user-invitation/accept-invitation.command.js.map +1 -0
  337. package/server/src/lib/user-invitation/accept-my-invitation.command.d.ts +8 -0
  338. package/server/src/lib/user-invitation/accept-my-invitation.command.js +40 -0
  339. package/server/src/lib/user-invitation/accept-my-invitation.command.js.map +1 -0
  340. package/server/src/lib/user-invitation/approve-join-request.command.d.ts +8 -0
  341. package/server/src/lib/user-invitation/approve-join-request.command.js +41 -0
  342. package/server/src/lib/user-invitation/approve-join-request.command.js.map +1 -0
  343. package/server/src/lib/user-invitation/cancel-invitation.command.d.ts +8 -0
  344. package/server/src/lib/user-invitation/cancel-invitation.command.js +37 -0
  345. package/server/src/lib/user-invitation/cancel-invitation.command.js.map +1 -0
  346. package/server/src/lib/user-invitation/cancel-my-join-request.command.d.ts +8 -0
  347. package/server/src/lib/user-invitation/cancel-my-join-request.command.js +40 -0
  348. package/server/src/lib/user-invitation/cancel-my-join-request.command.js.map +1 -0
  349. package/server/src/lib/user-invitation/create-user-in-tenant.command.d.ts +8 -0
  350. package/server/src/lib/user-invitation/create-user-in-tenant.command.js +37 -0
  351. package/server/src/lib/user-invitation/create-user-in-tenant.command.js.map +1 -0
  352. package/server/src/lib/user-invitation/decline-invitation.command.d.ts +8 -0
  353. package/server/src/lib/user-invitation/decline-invitation.command.js +37 -0
  354. package/server/src/lib/user-invitation/decline-invitation.command.js.map +1 -0
  355. package/server/src/lib/user-invitation/invite-user.command.d.ts +8 -0
  356. package/server/src/lib/user-invitation/invite-user.command.js +37 -0
  357. package/server/src/lib/user-invitation/invite-user.command.js.map +1 -0
  358. package/server/src/lib/user-invitation/list-invite-assignable-roles.command.d.ts +8 -0
  359. package/server/src/lib/user-invitation/list-invite-assignable-roles.command.js +41 -0
  360. package/server/src/lib/user-invitation/list-invite-assignable-roles.command.js.map +1 -0
  361. package/server/src/lib/user-invitation/list-my-join-requests.command.d.ts +8 -0
  362. package/server/src/lib/user-invitation/list-my-join-requests.command.js +40 -0
  363. package/server/src/lib/user-invitation/list-my-join-requests.command.js.map +1 -0
  364. package/server/src/lib/user-invitation/list-my-pending-invitations.command.d.ts +8 -0
  365. package/server/src/lib/user-invitation/list-my-pending-invitations.command.js +37 -0
  366. package/server/src/lib/user-invitation/list-my-pending-invitations.command.js.map +1 -0
  367. package/server/src/lib/user-invitation/list-tenant-entitled-applications.command.d.ts +8 -0
  368. package/server/src/lib/user-invitation/list-tenant-entitled-applications.command.js +41 -0
  369. package/server/src/lib/user-invitation/list-tenant-entitled-applications.command.js.map +1 -0
  370. package/server/src/lib/user-invitation/lookup-tenant-by-unique-name.command.d.ts +8 -0
  371. package/server/src/lib/user-invitation/lookup-tenant-by-unique-name.command.js +40 -0
  372. package/server/src/lib/user-invitation/lookup-tenant-by-unique-name.command.js.map +1 -0
  373. package/server/src/lib/user-invitation/reject-join-request.command.d.ts +8 -0
  374. package/server/src/lib/user-invitation/reject-join-request.command.js +41 -0
  375. package/server/src/lib/user-invitation/reject-join-request.command.js.map +1 -0
  376. package/server/src/lib/user-invitation/request-tenant-membership.command.d.ts +8 -0
  377. package/server/src/lib/user-invitation/request-tenant-membership.command.js +40 -0
  378. package/server/src/lib/user-invitation/request-tenant-membership.command.js.map +1 -0
  379. package/server/src/lib/user-invitation/resend-invitation.command.d.ts +12 -0
  380. package/server/src/lib/user-invitation/resend-invitation.command.js +37 -0
  381. package/server/src/lib/user-invitation/resend-invitation.command.js.map +1 -0
  382. package/server/src/lib/user-invitation/user-invitation-application-access.util.d.ts +25 -0
  383. package/server/src/lib/user-invitation/user-invitation-application-access.util.js +121 -0
  384. package/server/src/lib/user-invitation/user-invitation-application-access.util.js.map +1 -0
  385. package/server/src/lib/user-invitation/user-invitation.service.d.ts +162 -0
  386. package/server/src/lib/user-invitation/user-invitation.service.js +1658 -0
  387. package/server/src/lib/user-invitation/user-invitation.service.js.map +1 -0
  388. package/contracts/src/datasource.keys.d.ts +0 -4
  389. package/contracts/src/datasource.keys.js +0 -10
  390. package/contracts/src/datasource.keys.js.map +0 -1
  391. package/src/index.d.ts +0 -5
  392. package/src/index.js +0 -13
  393. package/src/index.js.map +0 -1
  394. package/src/lib/middlewares/user-effective-state.middleware.js.map +0 -1
  395. package/src/lib/password-reset/complete-password-reset.command.js.map +0 -1
  396. package/src/lib/password-reset/send-password-reset-email.command.js.map +0 -1
  397. package/src/lib/password-reset/user-password-reset.service.js.map +0 -1
  398. package/src/lib/security-management-server.module.d.ts +0 -2
  399. package/src/lib/security-management-server.module.js +0 -48
  400. package/src/lib/security-management-server.module.js.map +0 -1
  401. package/src/lib/seed/index.d.ts +0 -22
  402. package/src/lib/seed/index.js +0 -24
  403. package/src/lib/seed/index.js.map +0 -1
  404. package/src/lib/seed/policy/index.d.ts +0 -2
  405. package/src/lib/seed/policy/index.js +0 -6
  406. package/src/lib/seed/policy/index.js.map +0 -1
  407. package/src/lib/seed/policy/policy.mock.d.ts +0 -7
  408. package/src/lib/seed/policy/policy.mock.js +0 -40
  409. package/src/lib/seed/policy/policy.mock.js.map +0 -1
  410. package/src/lib/seed/policy/policy.seed.d.ts +0 -5
  411. package/src/lib/seed/policy/policy.seed.js +0 -31
  412. package/src/lib/seed/policy/policy.seed.js.map +0 -1
  413. package/src/lib/seed/role/index.d.ts +0 -4
  414. package/src/lib/seed/role/index.js +0 -8
  415. package/src/lib/seed/role/index.js.map +0 -1
  416. package/src/lib/seed/role/role-ids.constants.d.ts +0 -14
  417. package/src/lib/seed/role/role-ids.constants.js +0 -20
  418. package/src/lib/seed/role/role-ids.constants.js.map +0 -1
  419. package/src/lib/seed/role/role-permission-keys.constants.d.ts +0 -578
  420. package/src/lib/seed/role/role-permission-keys.constants.js +0 -620
  421. package/src/lib/seed/role/role-permission-keys.constants.js.map +0 -1
  422. package/src/lib/seed/role/role.mock.d.ts +0 -4
  423. package/src/lib/seed/role/role.mock.js +0 -321
  424. package/src/lib/seed/role/role.mock.js.map +0 -1
  425. package/src/lib/seed/role/role.seed.d.ts +0 -5
  426. package/src/lib/seed/role/role.seed.js +0 -31
  427. package/src/lib/seed/role/role.seed.js.map +0 -1
  428. package/src/lib/seed/security-management-seed.provider.d.ts +0 -4
  429. package/src/lib/seed/security-management-seed.provider.js +0 -18
  430. package/src/lib/seed/security-management-seed.provider.js.map +0 -1
  431. package/src/lib/seed/security-management-seed.tokens.d.ts +0 -1
  432. package/src/lib/seed/security-management-seed.tokens.js +0 -7
  433. package/src/lib/seed/security-management-seed.tokens.js.map +0 -1
  434. package/src/lib/seed/security-management.seed-catalog.d.ts +0 -2
  435. package/src/lib/seed/security-management.seed-catalog.js +0 -17
  436. package/src/lib/seed/security-management.seed-catalog.js.map +0 -1
  437. package/src/lib/seed/tenant/index.d.ts +0 -1
  438. package/src/lib/seed/tenant/tenant-ids.constants.d.ts +0 -11
  439. package/src/lib/seed/tenant/tenant-ids.constants.js +0 -17
  440. package/src/lib/seed/tenant/tenant-ids.constants.js.map +0 -1
  441. package/src/lib/seed/user/index.d.ts +0 -4
  442. package/src/lib/seed/user/index.js +0 -13
  443. package/src/lib/seed/user/index.js.map +0 -1
  444. package/src/lib/seed/user/resolve-user-effective-state.util.d.ts +0 -4
  445. package/src/lib/seed/user/resolve-user-effective-state.util.js +0 -10
  446. package/src/lib/seed/user/resolve-user-effective-state.util.js.map +0 -1
  447. package/src/lib/seed/user/user.mock.d.ts +0 -21
  448. package/src/lib/seed/user/user.mock.js +0 -338
  449. package/src/lib/seed/user/user.mock.js.map +0 -1
  450. package/src/lib/seed/user/user.seed.d.ts +0 -5
  451. package/src/lib/seed/user/user.seed.js +0 -31
  452. package/src/lib/seed/user/user.seed.js.map +0 -1
  453. /package/{src → server/src}/lib/middlewares/user-effective-state.middleware.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"roles.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/server/contracts/src/entities/roles/roles.entity.ts"],"names":[],"mappings":";;AAIA,oCAkRC;;AAtRD,iEAA2E;AAC3E,qEAAoK;AACpK,mDAA+C;AAE/C,SAAsB,YAAY;;QAChC,MAAM,IAAI,GAAG,wBAAU,CAAC,MAAM,CAAC,IAAI,CAAC;QAEpC,MAAM,SAAS,GAAc;YAC3B,MAAM,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;YAC9B,IAAI,EAAE,wBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI;YACpC,KAAK,EAAE,wBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK;YACtC,IAAI,EAAE,wBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI;YACpC,OAAO,EAAE;gBACP,UAAU,EAAE,wBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK;gBAC3C,MAAM,EAAE,wBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW;aAC9C;YACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;YAC1F,eAAe,EAAE,EAAE;YACnB,MAAM,EAAE;gBACN;oBACE,EAAE,EAAE,YAAY;oBAChB,KAAK,EAAE,qCAAqC;iBAC7C;gBACD;oBACE,EAAE,EAAE,aAAa;oBACjB,KAAK,EAAE,IAAI,IAAI,wCAAwC;iBACxD;aACF;YACD,UAAU,EAAE;gBACV;oBACE,IAAI,EAAE,IAAI;oBACV,KAAK,EAAE,0BAA0B;oBACjC,OAAO,EAAE,YAAY;oBACrB,MAAM,EAAE;wBACN,QAAQ,EAAE,QAAQ;wBAClB,OAAO,EAAE,KAAK;wBACd,QAAQ,EAAE,KAAK;wBACf,QAAQ,EAAE,IAAI;w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QAEF,OAAO,SAAS,CAAC;IACnB,CAAC;CAAA"}
1
+ {"version":3,"file":"roles.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/contracts/src/entities/roles/roles.entity.ts"],"names":[],"mappings":";;AAWA,oCA0MC;;AArND,iEAA2E;AAC3E,qEAMkD;AAClD,mGAAgG;AAChG,mDAA+C;AAE/C,SAAsB,YAAY;;QAChC,MAAM,IAAI,GAAG,wBAAU,CAAC,MAAM,CAAC,IAAI,CAAC;QAEpC,MAAM,SAAS,GAAc;YAC3B,MAAM,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;YAC9B,IAAI,EAAE,wBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI;YACpC,KAAK,EAAE,wBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK;YACtC,IAAI,EAAE,wBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI;YACpC,UAAU,EAAE;gBACV,MAAM;gBACN,OAAO;gBACP,MAAM;gBACN,mBAAmB;gBACnB,eAAe;gBACf,gBAAgB;gBAChB,YAAY;gBACZ,uBAAuB;gBACvB,cAAc;gBACd,KAAK;gBACL,QAAQ;gBACR,MAAM;gBACN,QAAQ;gBACR,OAAO;aACR;YACD,OAAO,EAAE;gBACP,UAAU,EAAE,wBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK;gBAC3C,MAAM,EAAE,wBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW;aAC9C;YACD,OAAO,EAAE;gBACP,EAAE,IAAI,EAAE,SAAS,EAAE;gBACnB,EAAE,IAAI,EAAE,MAAM,EAAE;gBAChB,EAAE,IAAI,EAAE,SAAS,EAAE;gBACnB,EAAE,IAAI,EAAE,SAAS,EAAE;gBACnB,EAAE,IAAI,EAAE,SAAS,EAAE;aACpB;YACD,eAAe,EAAE,EAAE;YACnB,KAAK,EAAE;gBACL;oBACE,YAAY,EAAE,yEAAmC;oBACjD,KAAK,EAAE,kEAA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E;wBACJ,OAAO,EAAE;4BACP,GAAG,IAAA,gCAAuB,GAAE;4BAC5B;gCACE,KAAK,EAAE,IAAI,IAAI,2CAA2C;gCAC1D,OAAO,EAAE,oBAAoB;gCAC7B,QAAQ,EAAE,WAAW;gCACrB,IAAI,EAAE,MAAM;gCACZ,KAAK,EAAE,8BAAqB,CAAC,UAAU;6BACxC;yBACF;wBACD,KAAK,EAAE,CAAC,IAAA,2BAAkB,GAAE,CAAC;qBAC9B;iBACF;aACF;SACF,CAAC;QAEF,OAAO,SAAS,CAAC;IACnB,CAAC;CAAA"}
@@ -1,7 +1,10 @@
1
1
  import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
2
+ /**
3
+ * Role identity only. Capability grants live on
4
+ * {@link AXMSecurityManagementRolePermissionEntityModel}.
5
+ */
2
6
  export interface AXMSecurityManagementRolesEntityModel extends AXPEntityModel<string> {
3
7
  name: string;
4
8
  title: string;
5
9
  description?: string;
6
- permissions?: string[];
7
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"roles.types.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/server/contracts/src/entities/roles/roles.types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"roles.types.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/contracts/src/entities/roles/roles.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './user-role.types';
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./tenant-ids.constants"), exports);
4
+ tslib_1.__exportStar(require("./user-role.types"), exports);
5
5
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/contracts/src/entities/user-role/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC"}
@@ -0,0 +1,2 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+ export declare function userRoleFactory(): Promise<AXPEntity | null>;
@@ -0,0 +1,164 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userRoleFactory = userRoleFactory;
4
+ const tslib_1 = require("tslib");
5
+ const core_1 = require("@acorex-platform/framework-shared/core");
6
+ const entity_1 = require("@acorex-platform/framework-shared/entity");
7
+ const root_config_1 = require("../../root-config");
8
+ function userRoleFactory() {
9
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
10
+ const i18n = root_config_1.RootConfig.config.i18n;
11
+ const entityDef = {
12
+ module: root_config_1.RootConfig.module.name,
13
+ name: root_config_1.RootConfig.entities.userRole.name,
14
+ title: root_config_1.RootConfig.entities.userRole.title,
15
+ icon: root_config_1.RootConfig.entities.userRole.icon,
16
+ searchTags: [
17
+ 'user-role',
18
+ 'user-roles',
19
+ 'role-assignment',
20
+ 'membership',
21
+ 'access-grant',
22
+ 'user',
23
+ 'role',
24
+ 'join-table',
25
+ 'authorization',
26
+ 'نقش کاربر',
27
+ 'نقش‌های کاربر',
28
+ 'کاربر',
29
+ 'نقش',
30
+ 'تخصیص نقش',
31
+ ],
32
+ formats: {
33
+ individual: root_config_1.RootConfig.entities.userRole.title,
34
+ plural: root_config_1.RootConfig.entities.userRole.titlePlural,
35
+ },
36
+ plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'archive' }],
37
+ relatedEntities: [],
38
+ groups: [
39
+ {
40
+ id: 'basic-info',
41
+ title: `@general:terms.interface.basic-info`,
42
+ },
43
+ {
44
+ id: 'roles',
45
+ title: `@${i18n}:users.entities.user.fields.roles.title`,
46
+ },
47
+ ],
48
+ properties: [
49
+ {
50
+ name: 'id',
51
+ title: `@general:terms.common.id`,
52
+ groupId: 'basic-info',
53
+ schema: {
54
+ dataType: 'string',
55
+ visible: false,
56
+ nullable: false,
57
+ readonly: true,
58
+ unique: {
59
+ enabled: true,
60
+ },
61
+ },
62
+ },
63
+ {
64
+ name: 'userId',
65
+ title: `@${i18n}:user-roles.entities.user-role.fields.user.title`,
66
+ groupId: 'basic-info',
67
+ schema: {
68
+ dataType: 'string',
69
+ nullable: false,
70
+ interface: {
71
+ type: core_1.AXPWidgetsCatalog.text,
72
+ },
73
+ },
74
+ validations: [{ rule: 'required' }],
75
+ },
76
+ {
77
+ name: 'roleIds',
78
+ title: `@${i18n}:users.entities.user.fields.roles.title`,
79
+ groupId: 'roles',
80
+ schema: {
81
+ dataType: 'object',
82
+ interface: {
83
+ type: core_1.AXPWidgetsCatalog.lookup,
84
+ options: {
85
+ entity: 'SecurityManagement.Role',
86
+ multiple: true,
87
+ look: 'select',
88
+ expose: [
89
+ { source: 'id', target: 'rolesList.{id}' },
90
+ { source: 'title', target: 'rolesList.{title}' },
91
+ ],
92
+ },
93
+ },
94
+ },
95
+ validations: [{ rule: 'required' }],
96
+ },
97
+ ],
98
+ columns: [
99
+ { name: 'userId' },
100
+ { name: 'roleIds', options: { dataPath: 'rolesList' } },
101
+ ],
102
+ interfaces: {
103
+ master: {
104
+ create: {
105
+ sections: [
106
+ {
107
+ id: 'basic-info',
108
+ order: 1,
109
+ layout: { positions: { lg: { colSpan: 12, colStart: 1 } } },
110
+ },
111
+ {
112
+ id: 'roles',
113
+ order: 2,
114
+ layout: { positions: { lg: { colSpan: 12, colStart: 1 } } },
115
+ },
116
+ ],
117
+ properties: [
118
+ { name: 'userId', layout: { positions: { lg: { colSpan: 12 } } } },
119
+ { name: 'roleIds', layout: { positions: { lg: { colSpan: 12 } } } },
120
+ ],
121
+ },
122
+ update: {
123
+ sections: [
124
+ {
125
+ id: 'basic-info',
126
+ order: 1,
127
+ layout: { positions: { lg: { colSpan: 12, colStart: 1 } } },
128
+ },
129
+ {
130
+ id: 'roles',
131
+ order: 2,
132
+ layout: { positions: { lg: { colSpan: 12, colStart: 1 } } },
133
+ },
134
+ ],
135
+ properties: [
136
+ { name: 'userId', layout: { positions: { lg: { colSpan: 12 } } } },
137
+ { name: 'roleIds', layout: { positions: { lg: { colSpan: 12 } } } },
138
+ ],
139
+ },
140
+ single: {
141
+ title: '{{userId}}',
142
+ sections: [
143
+ {
144
+ id: 'basic-info',
145
+ order: 1,
146
+ layout: { positions: { lg: { colSpan: 12, colStart: 1 } } },
147
+ },
148
+ ],
149
+ properties: [
150
+ { name: 'userId', layout: { positions: { lg: { colSpan: 12 } } } },
151
+ { name: 'roleIds', layout: { positions: { lg: { colSpan: 12 } } } },
152
+ ],
153
+ },
154
+ list: {
155
+ actions: [...(0, entity_1.entityMasterCrudActions)()],
156
+ views: [(0, entity_1.createAllQueryView)()],
157
+ },
158
+ },
159
+ },
160
+ };
161
+ return entityDef;
162
+ });
163
+ }
164
+ //# sourceMappingURL=user-role.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-role.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/contracts/src/entities/user-role/user-role.entity.ts"],"names":[],"mappings":";;AAQA,0CA2JC;;AAnKD,iEAA2E;AAC3E,qEAIkD;AAClD,mDAA+C;AAE/C,SAAsB,eAAe;;QACnC,MAAM,IAAI,GAAG,wBAAU,CAAC,MAAM,CAAC,IAAI,CAAC;QAEpC,MAAM,SAAS,GAAc;YAC3B,MAAM,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;YAC9B,IAAI,EAAE,wBAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI;YACvC,KAAK,EAAE,wBAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK;YACzC,IAAI,EAAE,wBAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI;YACvC,UAAU,EAAE;gBACV,WAAW;gBACX,YAAY;gBACZ,iBAAiB;gBACjB,YAAY;gBACZ,cAAc;gBACd,MAAM;gBACN,MAAM;gBACN,YAAY;gBACZ,eAAe;gBACf,WAAW;gBACX,eAAe;gBACf,OAAO;gBACP,KAAK;gBACL,WAAW;aACZ;YACD,OAAO,EAAE;gBACP,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AAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;yBACpE;qBACF;oBACD,IAAI,EAAE;wBACJ,OAAO,EAAE,CAAC,GAAG,IAAA,gCAAuB,GAAE,CAAC;wBACvC,KAAK,EAAE,CAAC,IAAA,2BAAkB,GAAE,CAAC;qBAC9B;iBACF;aACF;SACF,CAAC;QAEF,OAAO,SAAS,CAAC;IACnB,CAAC;CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
2
+ /**
3
+ * Scoped role assignments for a User.
4
+ * User rows are identity-only for roles; all role memberships live here.
5
+ */
6
+ export interface AXMSecurityManagementUserRoleEntityModel extends AXPEntityModel<string> {
7
+ /** Target {@link SecurityManagement.User} id. */
8
+ userId: string;
9
+ /** Role ids granted for this scope. */
10
+ roleIds: string[];
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ //#region ----- UserRole types -----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //#endregion
5
+ //# sourceMappingURL=user-role.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-role.types.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/contracts/src/entities/user-role/user-role.types.ts"],"names":[],"mappings":";AAAA,oCAAoC;;AAepC,YAAY"}
@@ -0,0 +1,2 @@
1
+ export * from './user-two-factor.types';
2
+ export { userTwoFactorFactory } from './user-two-factor.entity';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userTwoFactorFactory = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./user-two-factor.types"), exports);
6
+ var user_two_factor_entity_1 = require("./user-two-factor.entity");
7
+ Object.defineProperty(exports, "userTwoFactorFactory", { enumerable: true, get: function () { return user_two_factor_entity_1.userTwoFactorFactory; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/contracts/src/entities/user-two-factor/index.ts"],"names":[],"mappings":";;;;AAAA,kEAAwC;AACxC,mEAAgE;AAAvD,8HAAA,oBAAoB,OAAA"}
@@ -0,0 +1,6 @@
1
+ import { AXPEntity } from '@acorex-platform/framework-shared/entity';
2
+ /**
3
+ * Schema-only entity for authenticator enrollment.
4
+ * No secret fields in UI; all mutations go through dedicated 2FA commands.
5
+ */
6
+ export declare function userTwoFactorFactory(): Promise<AXPEntity | null>;
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userTwoFactorFactory = userTwoFactorFactory;
4
+ const tslib_1 = require("tslib");
5
+ const core_1 = require("@acorex-platform/framework-shared/core");
6
+ const entity_1 = require("@acorex-platform/framework-shared/entity");
7
+ const root_config_1 = require("../../root-config");
8
+ /**
9
+ * Schema-only entity for authenticator enrollment.
10
+ * No secret fields in UI; all mutations go through dedicated 2FA commands.
11
+ */
12
+ function userTwoFactorFactory() {
13
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
14
+ const i18n = root_config_1.RootConfig.config.i18n;
15
+ const entityDef = {
16
+ module: root_config_1.RootConfig.module.name,
17
+ name: root_config_1.RootConfig.entities.userTwoFactor.name,
18
+ title: root_config_1.RootConfig.entities.userTwoFactor.title,
19
+ icon: root_config_1.RootConfig.entities.userTwoFactor.icon,
20
+ searchTags: ['two-factor', '2fa', 'totp', 'authenticator', 'احراز هویت دو مرحله‌ای'],
21
+ formats: {
22
+ individual: root_config_1.RootConfig.entities.userTwoFactor.title,
23
+ plural: root_config_1.RootConfig.entities.userTwoFactor.titlePlural,
24
+ searchResult: {
25
+ title: '{{ userId }}',
26
+ description: root_config_1.RootConfig.module.title,
27
+ },
28
+ },
29
+ groups: [
30
+ {
31
+ id: 'basic-info',
32
+ title: `@general:terms.interface.basic-info`,
33
+ },
34
+ ],
35
+ properties: [
36
+ {
37
+ name: 'userId',
38
+ title: `@${i18n}:user-two-factor.fields.user-id.title`,
39
+ groupId: 'basic-info',
40
+ schema: {
41
+ dataType: 'string',
42
+ interface: {
43
+ type: core_1.AXPWidgetsCatalog.text,
44
+ options: { readOnly: true },
45
+ },
46
+ },
47
+ validations: [{ rule: 'required' }],
48
+ },
49
+ {
50
+ name: 'method',
51
+ title: `@${i18n}:user-two-factor.fields.method.title`,
52
+ groupId: 'basic-info',
53
+ schema: {
54
+ dataType: 'string',
55
+ interface: {
56
+ type: core_1.AXPWidgetsCatalog.text,
57
+ options: { readOnly: true },
58
+ },
59
+ },
60
+ validations: [{ rule: 'required' }],
61
+ },
62
+ {
63
+ name: 'verifiedAt',
64
+ title: `@${i18n}:user-two-factor.fields.verified-at.title`,
65
+ groupId: 'basic-info',
66
+ schema: {
67
+ dataType: 'dateTime',
68
+ interface: {
69
+ type: core_1.AXPWidgetsCatalog.dateTime,
70
+ options: { readOnly: true },
71
+ },
72
+ },
73
+ },
74
+ ],
75
+ columns: [{ name: 'userId' }, { name: 'method' }, { name: 'verifiedAt' }],
76
+ interfaces: {
77
+ master: {
78
+ single: {
79
+ title: '{{ userId }}',
80
+ sections: [
81
+ {
82
+ id: 'basic-info',
83
+ layout: { positions: { lg: { colSpan: 12 } } },
84
+ },
85
+ ],
86
+ properties: [
87
+ { name: 'userId', layout: { positions: { lg: { colSpan: 6 } } } },
88
+ { name: 'method', layout: { positions: { lg: { colSpan: 6 } } } },
89
+ { name: 'verifiedAt', layout: { positions: { lg: { colSpan: 6 } } } },
90
+ ],
91
+ actions: [],
92
+ },
93
+ list: {
94
+ actions: [...(0, entity_1.entityMasterCrudActions)({ create: false, delete: false, edit: false })],
95
+ views: [(0, entity_1.createAllQueryView)({ sorts: [{ name: 'verifiedAt', dir: 'desc' }] })],
96
+ },
97
+ },
98
+ },
99
+ };
100
+ return entityDef;
101
+ });
102
+ }
103
+ //# sourceMappingURL=user-two-factor.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-two-factor.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/contracts/src/entities/user-two-factor/user-two-factor.entity.ts"],"names":[],"mappings":";;AAQA,oDA0FC;;AAlGD,iEAA2E;AAC3E,qEAAkH;AAClH,mDAA+C;AAE/C;;;GAGG;AACH,SAAsB,oBAAoB;;QACxC,MAAM,IAAI,GAAG,wBAAU,CAAC,MAAM,CAAC,IAAI,CAAC;QAEpC,MAAM,SAAS,GAAc;YAC3B,MAAM,EAAE,wBAAU,CAAC,MAAM,CAAC,IAAI;YAC9B,IAAI,EAAE,wBAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI;YAC5C,KAAK,EAAE,wBAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK;YAC9C,IAAI,EAAE,wBAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI;YAC5C,UAAU,EAAE,CAAC,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,wBAAwB,CAAC;YACpF,OAAO,EAAE;gBACP,UAAU,EAAE,wBAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK;gBACnD,MAAM,EAAE,wBAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,WAAW;gBACrD,YAAY,EAAE;oBACZ,KAAK,EAAE,cAAc;oBACrB,WAAW,EAAE,wBAAU,CAAC,MAAM,CAAC,KAAK;iBACrC;aACF;YACD,MAAM,EAAE;gBACN;oBACE,EAAE,EAAE,YAAY;oBAChB,KAAK,EAAE,qCAAqC;iBAC7C;aACF;YACD,UAAU,EAAE;gBACV;oBACE,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,IAAI,IAAI,uCAAuC;oBACtD,OAAO,EAAE,YAAY;oBACrB,MAAM,EAAE;wBACN,QAAQ,EAAE,QAAQ;wBAClB,SAAS,EAAE;4BACT,IAAI,EAAE,wBAAiB,CAAC,IAAI;4BAC5B,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;yBAC5B;qBACF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,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;4BACjE,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;yBACtE;wBACD,OAAO,EAAE,EAAE;qBACZ;oBACD,IAAI,EAAE;wBACJ,OAAO,EAAE,CAAC,GAAG,IAAA,gCAAuB,EAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;wBACpF,KAAK,EAAE,CAAC,IAAA,2BAAkB,EAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;qBAC9E;iBACF;aACF;SACF,CAAC;QAEF,OAAO,SAAS,CAAC;IACnB,CAAC;CAAA"}
@@ -0,0 +1,24 @@
1
+ import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
2
+ export type AXMUserTwoFactorMethod = 'authenticator';
3
+ export interface AXMUserTwoFactorRecoveryCode {
4
+ hash: string;
5
+ /** Salt / hashing metadata (e.g. full pbkdf2 encoded string already embeds salt — optional extra). */
6
+ salt?: string;
7
+ usedAt?: string | null;
8
+ }
9
+ /**
10
+ * Persisted authenticator enrollment for one user.
11
+ * Secrets must never be returned on client/entity APIs.
12
+ */
13
+ export interface AXMSecurityManagementUserTwoFactorEntityModel extends AXPEntityModel<string> {
14
+ userId: string;
15
+ method: AXMUserTwoFactorMethod;
16
+ encryptedSecret: string;
17
+ iv: string;
18
+ authTag: string;
19
+ keyVersion: number;
20
+ verifiedAt: string;
21
+ /** Last accepted TOTP time-step (floor(unix/period)); replay guard. */
22
+ lastAcceptedStep?: number | null;
23
+ recoveryCodes?: AXMUserTwoFactorRecoveryCode[];
24
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //#endregion
4
+ //# sourceMappingURL=user-two-factor.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-two-factor.types.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/contracts/src/entities/user-two-factor/user-two-factor.types.ts"],"names":[],"mappings":";;AA8BA,YAAY"}
@@ -1,2 +1,2 @@
1
- export * from './users.entity';
2
1
  export * from './users.types';
2
+ export * from './user-provisioning-list-actions';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./users.entity"), exports);
5
4
  tslib_1.__exportStar(require("./users.types"), exports);
5
+ tslib_1.__exportStar(require("./user-provisioning-list-actions"), exports);
6
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/server/contracts/src/entities/users/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,wDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/contracts/src/entities/users/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B;AAC9B,2EAAiD"}
@@ -0,0 +1,8 @@
1
+ import { type AXPEntityAction } from '@acorex-platform/framework-shared/entity';
2
+ /** Type-level Invite / Create actions, including the legacy Create dropdown. */
3
+ export declare function isUserProvisioningListAction(action: AXPEntityAction): boolean;
4
+ /**
5
+ * Users list add actions driven by the platform provisioning setting.
6
+ * Create-only and invite-only stay primary. Both are secondary menu items.
7
+ */
8
+ export declare function userProvisioningListActions(): AXPEntityAction[];
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ //#region ----- Imports -----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.isUserProvisioningListAction = isUserProvisioningListAction;
5
+ exports.userProvisioningListActions = userProvisioningListActions;
6
+ const core_1 = require("@acorex-platform/framework-shared/core");
7
+ const entity_1 = require("@acorex-platform/framework-shared/entity");
8
+ const server_commands_1 = require("../../server-commands");
9
+ const settings_keys_1 = require("../../settings.keys");
10
+ //#endregion
11
+ //#region ----- List actions -----
12
+ const PROVISIONING_MODE_KEY = settings_keys_1.AXMSecurityManagementSettings.UserProvisioningMode;
13
+ /**
14
+ * Hides the action unless the platform provisioning setting matches `mode`.
15
+ * A missing value uses {@link AXM_USER_PROVISIONING_MODE_DEFAULT}.
16
+ * Select widgets may persist either the scalar or `{ value }`.
17
+ */
18
+ function hiddenUnlessProvisioningMode(mode) {
19
+ return `{{ (((await settings.get('${PROVISIONING_MODE_KEY}'))?.value ?? (await settings.get('${PROVISIONING_MODE_KEY}'))) || '${settings_keys_1.AXM_USER_PROVISIONING_MODE_DEFAULT}') !== '${mode}' }}`;
20
+ }
21
+ const USER_ADD_COMMANDS = new Set([server_commands_1.AXM_USER_INVITE_COMMAND, server_commands_1.AXM_USER_CREATE_IN_TENANT_COMMAND]);
22
+ function commandNameOf(action) {
23
+ var _a;
24
+ return typeof action.command === 'string' ? action.command : (_a = action.command) === null || _a === void 0 ? void 0 : _a.name;
25
+ }
26
+ /** Type-level Invite / Create actions, including the legacy Create dropdown. */
27
+ function isUserProvisioningListAction(action) {
28
+ var _a, _b;
29
+ if (action.scope !== entity_1.AXPEntityCommandScope.TypeLevel) {
30
+ return false;
31
+ }
32
+ if (USER_ADD_COMMANDS.has((_a = commandNameOf(action)) !== null && _a !== void 0 ? _a : '')) {
33
+ return true;
34
+ }
35
+ return ((_b = action.items) !== null && _b !== void 0 ? _b : []).some((child) => { var _a; return USER_ADD_COMMANDS.has((_a = commandNameOf(child)) !== null && _a !== void 0 ? _a : ''); });
36
+ }
37
+ function provisioningAction(input) {
38
+ return {
39
+ name: input.name,
40
+ title: input.title,
41
+ icon: input.icon,
42
+ command: { name: input.command },
43
+ priority: input.priority,
44
+ type: core_1.AXPSystemActionType.Create,
45
+ scope: entity_1.AXPEntityCommandScope.TypeLevel,
46
+ order: input.order,
47
+ hidden: hiddenUnlessProvisioningMode(input.mode),
48
+ };
49
+ }
50
+ /**
51
+ * Users list add actions driven by the platform provisioning setting.
52
+ * Create-only and invite-only stay primary. Both are secondary menu items.
53
+ */
54
+ function userProvisioningListActions() {
55
+ return [
56
+ provisioningAction({
57
+ name: 'provision-create',
58
+ title: '@general:actions.create.title',
59
+ icon: 'fa-light fa-user-plus',
60
+ command: server_commands_1.AXM_USER_CREATE_IN_TENANT_COMMAND,
61
+ priority: 'primary',
62
+ mode: settings_keys_1.AXMUserProvisioningMode.Create,
63
+ order: 1,
64
+ }),
65
+ provisioningAction({
66
+ name: 'provision-invite',
67
+ title: '@security-management:users.entities.user.actions.invite.title',
68
+ icon: 'fa-light fa-envelope',
69
+ command: server_commands_1.AXM_USER_INVITE_COMMAND,
70
+ priority: 'primary',
71
+ mode: settings_keys_1.AXMUserProvisioningMode.Invite,
72
+ order: 1,
73
+ }),
74
+ provisioningAction({
75
+ name: 'provision-invite-secondary',
76
+ title: '@security-management:users.entities.user.actions.invite.title',
77
+ icon: 'fa-light fa-envelope',
78
+ command: server_commands_1.AXM_USER_INVITE_COMMAND,
79
+ priority: 'secondary',
80
+ mode: settings_keys_1.AXMUserProvisioningMode.Both,
81
+ order: 1,
82
+ }),
83
+ provisioningAction({
84
+ name: 'provision-create-secondary',
85
+ title: '@security-management:users.entities.user.actions.create-in-tenant.title',
86
+ icon: 'fa-light fa-user-plus',
87
+ command: server_commands_1.AXM_USER_CREATE_IN_TENANT_COMMAND,
88
+ priority: 'secondary',
89
+ mode: settings_keys_1.AXMUserProvisioningMode.Both,
90
+ order: 2,
91
+ }),
92
+ ];
93
+ }
94
+ //#endregion
95
+ //# sourceMappingURL=user-provisioning-list-actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-provisioning-list-actions.js","sourceRoot":"","sources":["../../../../../../../libs/mod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