@moh-sso/announcements 0.0.0-stage → 1.3.2

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 (171) hide show
  1. package/README.md +24 -2
  2. package/dist/_types/apps/announcements/src/api/announcement.api.d.ts +3490 -0
  3. package/dist/_types/apps/announcements/src/api/index.d.ts +1 -0
  4. package/dist/_types/apps/announcements/src/components/announcement-actions-menu.component.d.ts +12 -0
  5. package/dist/_types/apps/announcements/src/components/announcement-attachments.component.d.ts +5 -0
  6. package/dist/_types/apps/announcements/src/components/announcement-bulk-actions.component.d.ts +14 -0
  7. package/dist/_types/apps/announcements/src/components/announcement-filters.component.d.ts +23 -0
  8. package/dist/_types/apps/announcements/src/components/announcements-form.component.d.ts +37 -0
  9. package/dist/_types/apps/announcements/src/components/manage-announcement-panel.d.ts +9 -0
  10. package/dist/_types/apps/announcements/src/index.d.ts +6 -0
  11. package/dist/_types/apps/announcements/src/pages/announcements.components.d.ts +1 -0
  12. package/dist/_types/apps/announcements/src/root.component.d.ts +2 -0
  13. package/dist/_types/apps/announcements/src/routes.d.ts +2 -0
  14. package/dist/_types/apps/announcements/src/single-spa.d.ts +1 -0
  15. package/dist/_types/apps/announcements/src/types/announcements.types.d.ts +172 -0
  16. package/dist/_types/apps/announcements/src/types/index.d.ts +1 -0
  17. package/dist/_types/apps/clients/src/types/client-role.types.d.ts +6 -0
  18. package/dist/_types/apps/clients/src/types/index.d.ts +2 -0
  19. package/dist/_types/apps/clients/src/types/user-role.types.d.ts +6 -0
  20. package/dist/_types/apps/rbac/src/api/health-context.api.d.ts +2482 -0
  21. package/dist/_types/apps/rbac/src/api/index.d.ts +2 -0
  22. package/dist/_types/apps/rbac/src/api/rbac.api.d.ts +10383 -0
  23. package/dist/_types/apps/rbac/src/components/AccessRequestsPanel.d.ts +6 -0
  24. package/dist/_types/apps/rbac/src/components/AuditTrailPanel.d.ts +1 -0
  25. package/dist/_types/apps/rbac/src/components/ChangeRequestsPanel.d.ts +9 -0
  26. package/dist/_types/apps/rbac/src/components/EffectiveAccessPanel.d.ts +1 -0
  27. package/dist/_types/apps/rbac/src/components/GovernanceToolsPanel.d.ts +5 -0
  28. package/dist/_types/apps/rbac/src/components/HealthContextsPanel.d.ts +1 -0
  29. package/dist/_types/apps/rbac/src/components/ImportExportPanel.d.ts +11 -0
  30. package/dist/_types/apps/rbac/src/components/PermissionCatalogPanel.d.ts +12 -0
  31. package/dist/_types/apps/rbac/src/components/PolicySimulatorPanel.d.ts +25 -0
  32. package/dist/_types/apps/rbac/src/components/RoleTemplatesPanel.d.ts +8 -0
  33. package/dist/_types/apps/rbac/src/components/SyncDriftPanel.d.ts +5 -0
  34. package/dist/_types/apps/rbac/src/index.d.ts +5 -0
  35. package/dist/_types/apps/rbac/src/pages/rbac-management.page.d.ts +1 -0
  36. package/dist/_types/apps/rbac/src/root.component.d.ts +2 -0
  37. package/dist/_types/apps/rbac/src/routes.d.ts +2 -0
  38. package/dist/_types/apps/rbac/src/types/health-context.types.d.ts +92 -0
  39. package/dist/_types/apps/rbac/src/types/index.d.ts +2 -0
  40. package/dist/_types/apps/rbac/src/types/rbac.types.d.ts +451 -0
  41. package/dist/_types/apps/users/src/api/index.d.ts +1 -0
  42. package/dist/_types/apps/users/src/api/users.api.d.ts +1799 -0
  43. package/dist/_types/apps/users/src/components/EnableUserModal.d.ts +8 -0
  44. package/dist/_types/apps/users/src/components/ResetPasswordModal.d.ts +8 -0
  45. package/dist/_types/apps/users/src/components/UserFilters.d.ts +12 -0
  46. package/dist/_types/apps/users/src/components/access-control/UserAccessPanel.d.ts +5 -0
  47. package/dist/_types/apps/users/src/components/create-user-panel.d.ts +9 -0
  48. package/dist/_types/apps/users/src/components/useEnableUserModal.d.ts +9 -0
  49. package/dist/_types/apps/users/src/components/useResetPasswordModal.d.ts +9 -0
  50. package/dist/_types/apps/users/src/index.d.ts +6 -0
  51. package/dist/_types/apps/users/src/pages/user-actions-menu.component.d.ts +11 -0
  52. package/dist/_types/apps/users/src/pages/user-bulk-actions.component.d.ts +11 -0
  53. package/dist/_types/apps/users/src/pages/user.component.d.ts +1 -0
  54. package/dist/_types/apps/users/src/root.component.d.ts +2 -0
  55. package/dist/_types/apps/users/src/routes.d.ts +2 -0
  56. package/dist/_types/apps/users/src/types/index.d.ts +1 -0
  57. package/dist/_types/apps/users/src/types/user.types.d.ts +26 -0
  58. package/dist/_types/packages/api/src/api/baseApi.d.ts +2 -0
  59. package/dist/_types/packages/api/src/index.d.ts +1 -0
  60. package/dist/_types/packages/auth/src/api/auth.api.d.ts +531 -0
  61. package/dist/_types/packages/auth/src/api/health-context.api.d.ts +374 -0
  62. package/dist/_types/packages/auth/src/auth/AuthBootstrap.d.ts +1 -0
  63. package/dist/_types/packages/auth/src/auth/HealthContextProvider.d.ts +20 -0
  64. package/dist/_types/packages/auth/src/auth/PermissionGuard.d.ts +10 -0
  65. package/dist/_types/packages/auth/src/auth/auth.selectors.d.ts +896 -0
  66. package/dist/_types/packages/auth/src/auth/auth.slice.d.ts +14 -0
  67. package/dist/_types/packages/auth/src/auth/auth.types.d.ts +61 -0
  68. package/dist/_types/packages/auth/src/auth/login-url.d.ts +2 -0
  69. package/dist/_types/packages/auth/src/auth/permissions.d.ts +58 -0
  70. package/dist/_types/packages/auth/src/auth/rbac.d.ts +8 -0
  71. package/dist/_types/packages/auth/src/auth/system-launch-url.d.ts +9 -0
  72. package/dist/_types/packages/auth/src/auth/useAuthorization.d.ts +14 -0
  73. package/dist/_types/packages/auth/src/index.d.ts +14 -0
  74. package/dist/_types/packages/config/src/appMeta.d.ts +3 -0
  75. package/dist/_types/packages/config/src/index.d.ts +6 -0
  76. package/dist/_types/packages/config/src/lib/constants/api.constants.d.ts +178 -0
  77. package/dist/_types/packages/config/src/lib/constants/document-templates.d.ts +11 -0
  78. package/dist/_types/packages/config/src/lib/errors/errorMessages.d.ts +2 -0
  79. package/dist/_types/packages/config/src/lib/errors/errorSeverity.d.ts +3 -0
  80. package/dist/_types/packages/config/src/lib/errors/errorTypes.d.ts +1 -0
  81. package/dist/_types/packages/microfrontend/src/basename.d.ts +1 -0
  82. package/dist/_types/packages/microfrontend/src/index.d.ts +6 -0
  83. package/dist/_types/packages/microfrontend/src/lifecycle.d.ts +6 -0
  84. package/dist/_types/packages/microfrontend/src/navigation.d.ts +2 -0
  85. package/dist/_types/packages/microfrontend/src/props.d.ts +44 -0
  86. package/dist/_types/packages/microfrontend/src/react-lifecycle.d.ts +11 -0
  87. package/dist/_types/packages/microfrontend/src/routes.d.ts +13 -0
  88. package/dist/_types/packages/state/src/clients/clients.selectors.d.ts +534 -0
  89. package/dist/_types/packages/state/src/clients/clients.slice.d.ts +4 -0
  90. package/dist/_types/packages/state/src/document/documents.selectors.d.ts +1 -0
  91. package/dist/_types/packages/state/src/index.d.ts +29 -0
  92. package/dist/_types/packages/state/src/ui/ui.state.d.ts +1 -0
  93. package/dist/_types/packages/types/src/index.d.ts +6 -0
  94. package/dist/_types/packages/types/src/types/announcement-summary.types.d.ts +16 -0
  95. package/dist/_types/packages/types/src/types/client-role.types.d.ts +6 -0
  96. package/dist/_types/packages/types/src/types/client.types.d.ts +46 -0
  97. package/dist/_types/packages/types/src/types/document-processing.types.d.ts +1 -0
  98. package/dist/_types/packages/types/src/types/notifications.types.d.ts +96 -0
  99. package/dist/_types/packages/types/src/types/system-navigation.types.d.ts +18 -0
  100. package/dist/_types/packages/ui/src/accessibility/index.d.ts +1 -0
  101. package/dist/_types/packages/ui/src/accessibility/useFocusTrap.d.ts +10 -0
  102. package/dist/_types/packages/ui/src/branding/BuildMeta.d.ts +6 -0
  103. package/dist/_types/packages/ui/src/branding/PublicFooter.d.ts +6 -0
  104. package/dist/_types/packages/ui/src/branding/index.d.ts +2 -0
  105. package/dist/_types/packages/ui/src/data-display/DataTablePagination.d.ts +12 -0
  106. package/dist/_types/packages/ui/src/data-display/DataTableShell.d.ts +35 -0
  107. package/dist/_types/packages/ui/src/data-display/RowActionsCell.d.ts +7 -0
  108. package/dist/_types/packages/ui/src/data-display/TableEmptyState.d.ts +8 -0
  109. package/dist/_types/packages/ui/src/data-display/TableStatusTag.d.ts +8 -0
  110. package/dist/_types/packages/ui/src/data-display/index.d.ts +5 -0
  111. package/dist/_types/packages/ui/src/feedback/comingsoon/ComingSoon.d.ts +7 -0
  112. package/dist/_types/packages/ui/src/feedback/emptystate/EmptyState.d.ts +15 -0
  113. package/dist/_types/packages/ui/src/feedback/errorstate/ErrorState.d.ts +14 -0
  114. package/dist/_types/packages/ui/src/feedback/errorstate/MicrofrontendErrorBoundary.d.ts +16 -0
  115. package/dist/_types/packages/ui/src/feedback/index.d.ts +5 -0
  116. package/dist/_types/packages/ui/src/feedback/loadingstate/LoadingState.d.ts +5 -0
  117. package/dist/_types/packages/ui/src/forms/CaseFormsGrid.d.ts +1 -0
  118. package/dist/_types/packages/ui/src/forms/index.d.ts +1 -0
  119. package/dist/_types/packages/ui/src/index.d.ts +16 -0
  120. package/dist/_types/packages/ui/src/layout/PageShell/PageShell.d.ts +9 -0
  121. package/dist/_types/packages/ui/src/layout/SectionCard/SectionCard.d.ts +11 -0
  122. package/dist/_types/packages/ui/src/layout/index.d.ts +2 -0
  123. package/dist/_types/packages/ui/src/navigation/appmenu/AppGridContent.d.ts +12 -0
  124. package/dist/_types/packages/ui/src/navigation/appmenu/AppMenu.component.d.ts +6 -0
  125. package/dist/_types/packages/ui/src/navigation/appmenu/AppMenuItem.component.d.ts +13 -0
  126. package/dist/_types/packages/ui/src/navigation/appmenu/appMenuGroups.d.ts +11 -0
  127. package/dist/_types/packages/ui/src/navigation/breadcrumbs/AppBreadcrumbs.d.ts +12 -0
  128. package/dist/_types/packages/ui/src/navigation/breadcrumbs/BreadcrumbBar.d.ts +10 -0
  129. package/dist/_types/packages/ui/src/navigation/index.d.ts +2 -0
  130. package/dist/_types/packages/ui/src/navigation/sidenav/ClientSideNav.d.ts +14 -0
  131. package/dist/_types/packages/ui/src/notifications/FormInlineAlert.d.ts +7 -0
  132. package/dist/_types/packages/ui/src/notifications/NotificationsPanel.d.ts +14 -0
  133. package/dist/_types/packages/ui/src/notifications/index.d.ts +4 -0
  134. package/dist/_types/packages/ui/src/notifications/toast/ToastProvider.d.ts +20 -0
  135. package/dist/_types/packages/ui/src/notifications/toast/useToast.d.ts +20 -0
  136. package/dist/_types/packages/ui/src/overlays/header-panel/ReusableHeaderPanel.d.ts +17 -0
  137. package/dist/_types/packages/ui/src/overlays/header-panel/header-panel.context.d.ts +23 -0
  138. package/dist/_types/packages/ui/src/overlays/index.d.ts +4 -0
  139. package/dist/_types/packages/ui/src/overlays/modal/ReusableModal.d.ts +20 -0
  140. package/dist/_types/packages/ui/src/overlays/modal/modal.context.d.ts +14 -0
  141. package/dist/_types/packages/ui/src/shell/ExternalAppHeader.d.ts +22 -0
  142. package/dist/_types/packages/ui/src/shell/PublicHeader.component.d.ts +8 -0
  143. package/dist/_types/packages/ui/src/shell/UserHeader.component.d.ts +17 -0
  144. package/dist/_types/packages/ui/src/shell/index.d.ts +5 -0
  145. package/dist/_types/packages/ui/src/theme/ThemeProvider.d.ts +8 -0
  146. package/dist/_types/packages/ui/src/theme/index.d.ts +1 -0
  147. package/dist/_types/packages/ui/src/utils/severity.d.ts +22 -0
  148. package/dist/_types/packages/ui/src/utils/status.d.ts +1 -0
  149. package/dist/_types/packages/utils/src/index.d.ts +1 -0
  150. package/dist/_types/packages/utils/src/utils/utils.d.ts +16 -0
  151. package/dist/api.d.ts +1 -0
  152. package/dist/api.js +50 -0
  153. package/dist/api.js.map +1 -0
  154. package/dist/assets/announcement.api-Di1LFSh_.js +312 -0
  155. package/dist/assets/announcement.api-Di1LFSh_.js.map +1 -0
  156. package/dist/assets/announcements-BzR5RE3Z.css +1 -0
  157. package/dist/assets/root.component-BuA-VwR7.js +2227 -0
  158. package/dist/assets/root.component-BuA-VwR7.js.map +1 -0
  159. package/dist/index.d.ts +1 -0
  160. package/dist/index.js +56 -0
  161. package/dist/index.js.map +1 -0
  162. package/dist/routes.d.ts +1 -0
  163. package/dist/routes.js +32 -0
  164. package/dist/routes.js.map +1 -0
  165. package/dist/single-spa.d.ts +1 -0
  166. package/dist/single-spa.js +32 -0
  167. package/dist/single-spa.js.map +1 -0
  168. package/dist/types.d.ts +1 -0
  169. package/dist/types.js +25 -0
  170. package/dist/types.js.map +1 -0
  171. package/package.json +65 -4
@@ -0,0 +1,6 @@
1
+ import type { RbacAccessRequest } from "../types";
2
+ type AccessRequestsPanelProps = {
3
+ accessRequests: RbacAccessRequest[];
4
+ };
5
+ export declare function AccessRequestsPanel({ accessRequests }: AccessRequestsPanelProps): import("react").JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare function AuditTrailPanel(): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { RbacChangePreview, RbacChangeRequest } from "../types";
2
+ type ChangeRequestsPanelProps = {
3
+ changeRequests: RbacChangeRequest[];
4
+ changePreview?: RbacChangePreview;
5
+ onPreviewRisk: () => void;
6
+ onCreateRequest: () => void;
7
+ };
8
+ export declare function ChangeRequestsPanel({ changeRequests, changePreview, onPreviewRisk, onCreateRequest, }: ChangeRequestsPanelProps): import("react").JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export declare function EffectiveAccessPanel(): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ type GovernanceToolsPanelProps = {
2
+ activeClientId: string;
3
+ };
4
+ export declare function GovernanceToolsPanel({ activeClientId }: GovernanceToolsPanelProps): import("react").JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare function HealthContextsPanel(): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import type { RbacImportPreview } from "../types";
2
+ type ImportExportPanelProps = {
3
+ seedText: string;
4
+ importPreview?: RbacImportPreview;
5
+ exportedSeed?: unknown;
6
+ onSeedTextChange: (value: string) => void;
7
+ onPreview: () => void;
8
+ onApply: () => void;
9
+ };
10
+ export declare function ImportExportPanel({ seedText, importPreview, exportedSeed, onSeedTextChange, onPreview, onApply, }: ImportExportPanelProps): import("react").JSX.Element;
11
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { RbacPermission } from "../types";
2
+ type PermissionCatalogPanelProps = {
3
+ permissions: RbacPermission[];
4
+ selectedPermission: string;
5
+ selectedPermissionData?: RbacPermission;
6
+ permissionDescription: string;
7
+ onSelectedPermissionChange: (value: string) => void;
8
+ onPermissionDescriptionChange: (value: string) => void;
9
+ onSave: () => void;
10
+ };
11
+ export declare function PermissionCatalogPanel({ permissions, selectedPermission, selectedPermissionData, permissionDescription, onSelectedPermissionChange, onPermissionDescriptionChange, onSave, }: PermissionCatalogPanelProps): import("react").JSX.Element;
12
+ export {};
@@ -0,0 +1,25 @@
1
+ import type { RbacSimulationResult } from "../types";
2
+ type PolicySimulatorPanelProps = {
3
+ simulationRoles: string;
4
+ simulationClientRoles: string;
5
+ simulationUser: string;
6
+ addRealmRoles: string;
7
+ removeRealmRoles: string;
8
+ addClientRoles: string;
9
+ removeClientRoles: string;
10
+ addPermissions: string;
11
+ removePermissions: string;
12
+ simulation: RbacSimulationResult | null;
13
+ onSimulationRolesChange: (value: string) => void;
14
+ onSimulationClientRolesChange: (value: string) => void;
15
+ onSimulationUserChange: (value: string) => void;
16
+ onAddRealmRolesChange: (value: string) => void;
17
+ onRemoveRealmRolesChange: (value: string) => void;
18
+ onAddClientRolesChange: (value: string) => void;
19
+ onRemoveClientRolesChange: (value: string) => void;
20
+ onAddPermissionsChange: (value: string) => void;
21
+ onRemovePermissionsChange: (value: string) => void;
22
+ onSimulate: () => void;
23
+ };
24
+ export declare function PolicySimulatorPanel({ simulationRoles, simulationClientRoles, simulationUser, addRealmRoles, removeRealmRoles, addClientRoles, removeClientRoles, addPermissions, removePermissions, simulation, onSimulationRolesChange, onSimulationClientRolesChange, onSimulationUserChange, onAddRealmRolesChange, onRemoveRealmRolesChange, onAddClientRolesChange, onRemoveClientRolesChange, onAddPermissionsChange, onRemovePermissionsChange, onSimulate, }: PolicySimulatorPanelProps): import("react").JSX.Element;
25
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { RbacRoleTemplate } from "../types";
2
+ type RoleTemplatesPanelProps = {
3
+ templates: RbacRoleTemplate[];
4
+ activeClientId: string;
5
+ onMessage: (message: string) => void;
6
+ };
7
+ export declare function RoleTemplatesPanel({ templates, activeClientId, onMessage }: RoleTemplatesPanelProps): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ type SyncDriftPanelProps = {
2
+ onSynced?: () => void;
3
+ };
4
+ export declare function SyncDriftPanel({ onSynced }: SyncDriftPanelProps): import("react").JSX.Element;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ export { RbacRoot } from "./root.component";
2
+ export * from "./api";
3
+ export * from "./types";
4
+ export { rbacRoute } from "./routes";
5
+ export { default as RbacManagementPage } from "./pages/rbac-management.page";
@@ -0,0 +1 @@
1
+ export default function RbacManagementPage(): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { MicrofrontendRuntimeProps } from "../../../packages/microfrontend/src/index.js";
2
+ export declare function RbacRoot(props: MicrofrontendRuntimeProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { MicrofrontendRoute } from "../../../packages/microfrontend/src/index.js";
2
+ export declare const rbacRoute: MicrofrontendRoute;
@@ -0,0 +1,92 @@
1
+ export type HealthContextType = "NATIONAL" | "REGION" | "DISTRICT" | "CITY" | "DIVISION" | "MUNICIPALITY" | "COUNTY" | "SUB_COUNTY" | "PARISH" | "FACILITY" | "PROGRAM" | "DEPARTMENT" | "TEAM" | "CUSTOM";
2
+ export type HealthContextScopeMode = "NODE_ONLY" | "NODE_AND_DESCENDANTS";
3
+ export type HealthContextNode = {
4
+ id: string;
5
+ code: string;
6
+ name: string;
7
+ contextType: HealthContextType;
8
+ parentId?: string;
9
+ source: string;
10
+ metadata: Record<string, unknown>;
11
+ enabled: boolean;
12
+ version: number;
13
+ };
14
+ export type HealthContextAlias = {
15
+ id: string;
16
+ contextNodeId: string;
17
+ namespace: string;
18
+ externalId: string;
19
+ metadata: Record<string, unknown>;
20
+ createdAt: string;
21
+ };
22
+ export type HealthContextAssignment = {
23
+ id: string;
24
+ userId?: string;
25
+ groupId?: string;
26
+ contextNodeId: string;
27
+ scopeMode: HealthContextScopeMode;
28
+ isDefault: boolean;
29
+ validFrom?: string;
30
+ validUntil?: string;
31
+ source: string;
32
+ sourceReference?: string;
33
+ };
34
+ export type HealthContextNodePayload = {
35
+ code: string;
36
+ name: string;
37
+ contextType: HealthContextType;
38
+ parentId?: string | null;
39
+ source: string;
40
+ metadata: Record<string, unknown>;
41
+ enabled: boolean;
42
+ version?: number;
43
+ };
44
+ export type HealthContextAssignmentPayload = {
45
+ contextNodeId: string;
46
+ scopeMode: HealthContextScopeMode;
47
+ isDefault: boolean;
48
+ validFrom?: string;
49
+ validUntil?: string;
50
+ source: string;
51
+ sourceReference?: string;
52
+ };
53
+ export type HealthContextGroupMappingDrift = {
54
+ groupId: string;
55
+ groupPath: string;
56
+ keycloakGroupId?: string;
57
+ groupEnabled: boolean;
58
+ contextNodeId?: string;
59
+ contextCode?: string;
60
+ contextName?: string;
61
+ contextEnabled: boolean;
62
+ scopeMode?: HealthContextScopeMode;
63
+ status: "IN_SYNC" | "MISSING_KEYCLOAK_LINK" | "DISABLED_GROUP" | "UNMAPPED" | "INACTIVE_CONTEXT";
64
+ recommendedAction: string;
65
+ };
66
+ export type HealthContextDriftReport = {
67
+ generatedAt: string;
68
+ total: number;
69
+ inSync: number;
70
+ drifted: number;
71
+ items: HealthContextGroupMappingDrift[];
72
+ };
73
+ export type HealthContextSyncMapping = {
74
+ groupId: string;
75
+ contextNodeId: string;
76
+ scopeMode: HealthContextScopeMode;
77
+ };
78
+ export type HealthContextSyncRequest = {
79
+ mappings: HealthContextSyncMapping[];
80
+ replaceExisting: boolean;
81
+ };
82
+ export type HealthContextSyncPreview = {
83
+ valid: boolean;
84
+ mappingCount: number;
85
+ affectedGroups: number;
86
+ replaceExisting: boolean;
87
+ drift: HealthContextDriftReport;
88
+ };
89
+ export type HealthContextSyncResult = {
90
+ appliedMappings: number;
91
+ affectedGroups: number;
92
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./rbac.types";
2
+ export * from "./health-context.types";
@@ -0,0 +1,451 @@
1
+ export type RbacPermission = {
2
+ id: string;
3
+ key: string;
4
+ displayName?: string;
5
+ description?: string;
6
+ category?: string;
7
+ status?: string;
8
+ systemRoleUsageCount?: number;
9
+ realmRoleUsageCount?: number;
10
+ };
11
+ export type ApplicationLifecycleStatus = "registered" | "configured" | "validated" | "approved" | "active" | "suspended" | "retired";
12
+ export type RbacSystem = {
13
+ lifecycleStatus: ApplicationLifecycleStatus;
14
+ integrationType: "external" | "hosted_module";
15
+ contractVersion: string;
16
+ id: string;
17
+ clientId: string;
18
+ displayName: string;
19
+ description?: string;
20
+ icon?: string;
21
+ launchUrl?: string;
22
+ authenticatedLaunchUrl?: string;
23
+ category?: string;
24
+ ownerTeam?: string;
25
+ ownerName?: string;
26
+ ownerEmail?: string;
27
+ supportUrl?: string;
28
+ documentationUrl?: string;
29
+ environment?: string;
30
+ criticality?: string;
31
+ navigation?: string;
32
+ systemType?: "platform" | "external";
33
+ displayInLauncher?: boolean;
34
+ displayInSideNav?: boolean;
35
+ launchMode?: "internal" | "new_tab" | "same_tab";
36
+ enabled: boolean;
37
+ sortOrder: number;
38
+ };
39
+ export type RbacSystemRole = {
40
+ id: string;
41
+ systemId: string;
42
+ clientId: string;
43
+ name: string;
44
+ displayName?: string;
45
+ description?: string;
46
+ enabled: boolean;
47
+ permissions: RbacPermission[];
48
+ };
49
+ export type RbacSystemDetail = RbacSystem & {
50
+ accessRoles: string[];
51
+ roles: RbacSystemRole[];
52
+ };
53
+ export type RbacRealmRolePermissionGroup = {
54
+ realmRole: string;
55
+ permissions: RbacPermission[];
56
+ };
57
+ export type RbacGroupSystemRole = {
58
+ roleId: string;
59
+ clientId: string;
60
+ roleName: string;
61
+ displayName?: string;
62
+ };
63
+ export type RbacGroup = {
64
+ id: string;
65
+ keycloakGroupId?: string;
66
+ path: string;
67
+ name: string;
68
+ displayName?: string;
69
+ description?: string;
70
+ enabled: boolean;
71
+ memberCount: number;
72
+ realmRoles: string[];
73
+ systemRoles: RbacGroupSystemRole[];
74
+ permissions: RbacPermission[];
75
+ };
76
+ export type RbacGroupSummary = {
77
+ id: string;
78
+ keycloakGroupId?: string;
79
+ path: string;
80
+ name: string;
81
+ displayName?: string;
82
+ enabled: boolean;
83
+ };
84
+ export type RbacGroupPayload = {
85
+ keycloakGroupId?: string;
86
+ path: string;
87
+ name?: string;
88
+ displayName?: string;
89
+ description?: string;
90
+ enabled?: boolean;
91
+ };
92
+ export type RbacGroupMember = {
93
+ userId: string;
94
+ username?: string;
95
+ email?: string;
96
+ };
97
+ export type RbacGroupMembersPayload = {
98
+ members: RbacGroupMember[];
99
+ };
100
+ export type RbacAddGroupMemberPayload = {
101
+ userId: string;
102
+ };
103
+ export type RbacGroupMembersSyncResult = {
104
+ members: RbacGroupMember[];
105
+ memberCount: number;
106
+ warnings?: string[];
107
+ };
108
+ export type RbacGroupRealmRolePayload = {
109
+ realmRole: string;
110
+ };
111
+ export type RbacGroupSystemRolePayload = {
112
+ clientId: string;
113
+ roleName: string;
114
+ };
115
+ export type UpsertRbacSystemPayload = {
116
+ integrationType?: "external" | "hosted_module";
117
+ contractVersion?: string;
118
+ displayName: string;
119
+ description?: string;
120
+ icon?: string;
121
+ launchUrl?: string;
122
+ authenticatedLaunchUrl?: string;
123
+ category?: string;
124
+ ownerTeam?: string;
125
+ ownerName?: string;
126
+ ownerEmail?: string;
127
+ supportUrl?: string;
128
+ documentationUrl?: string;
129
+ environment?: string;
130
+ criticality?: string;
131
+ navigation?: string;
132
+ systemType?: "platform" | "external";
133
+ displayInLauncher?: boolean;
134
+ displayInSideNav?: boolean;
135
+ launchMode?: "internal" | "new_tab" | "same_tab";
136
+ enabled?: boolean;
137
+ sortOrder?: number;
138
+ };
139
+ export type RbacRolePayload = {
140
+ name: string;
141
+ displayName?: string;
142
+ description?: string;
143
+ enabled?: boolean;
144
+ };
145
+ export type RbacPermissionPayload = {
146
+ permissionKey: string;
147
+ };
148
+ export type RbacAccessRolePayload = {
149
+ roleName: string;
150
+ };
151
+ export type RbacDriftSummary = {
152
+ systemsInSync: number;
153
+ systemsMissingInRbac: number;
154
+ systemsStaleInRbac: number;
155
+ rolesMissingInRbac: number;
156
+ rolesStaleInRbac: number;
157
+ realmRolesMissing: number;
158
+ };
159
+ export type RbacDriftSystem = {
160
+ clientId: string;
161
+ displayName: string;
162
+ keycloakStatus: string;
163
+ rbacStatus: string;
164
+ missingRolesInRbac: string[];
165
+ staleRolesInRbac: string[];
166
+ missingAccessRoles: string[];
167
+ configurationDifferences?: string[];
168
+ };
169
+ export type RbacDriftRealmRole = {
170
+ name: string;
171
+ status: string;
172
+ rbacStatus: string;
173
+ };
174
+ export type RbacDriftReport = {
175
+ source: string;
176
+ summary: RbacDriftSummary;
177
+ systems: RbacDriftSystem[];
178
+ realmRoles: RbacDriftRealmRole[];
179
+ warnings?: string[];
180
+ };
181
+ export type RbacSyncPayload = {
182
+ source?: string;
183
+ realmExport: unknown;
184
+ };
185
+ export type RbacSyncPreview = {
186
+ report: RbacDriftReport;
187
+ systemsToCreate: number;
188
+ systemsToUpdate: number;
189
+ rolesToCreate: number;
190
+ accessRolesToAdd: number;
191
+ realmRolesToTrack: number;
192
+ };
193
+ export type RbacSyncApplyResult = {
194
+ preview: RbacSyncPreview;
195
+ systemsSynced: number;
196
+ rolesSynced: number;
197
+ accessRolesSynced: number;
198
+ };
199
+ export type RbacEffectiveAccessUser = {
200
+ id: string;
201
+ username: string;
202
+ email: string;
203
+ fullName: string;
204
+ enabled: boolean;
205
+ isAdmin: boolean;
206
+ isResolved: boolean;
207
+ };
208
+ export type RbacPermissionGrantSource = {
209
+ permissionKey: string;
210
+ grantedByType: "realmRole" | "clientRole" | "groupPermission" | "groupRealmRole" | "groupClientRole" | string;
211
+ role: string;
212
+ systemClientId?: string;
213
+ systemName?: string;
214
+ groupId?: string;
215
+ groupPath?: string;
216
+ groupName?: string;
217
+ };
218
+ export type RbacSystemAccessSummary = {
219
+ clientId: string;
220
+ displayName: string;
221
+ launchUrl?: string;
222
+ authenticatedLaunchUrl?: string;
223
+ icon?: string;
224
+ category?: string;
225
+ navigation?: string;
226
+ systemType?: "platform" | "external";
227
+ displayInLauncher?: boolean;
228
+ displayInSideNav?: boolean;
229
+ launchMode?: "internal" | "new_tab" | "same_tab";
230
+ roles: string[];
231
+ };
232
+ export type RbacEffectiveAccess = {
233
+ user: RbacEffectiveAccessUser;
234
+ groups?: RbacGroupSummary[];
235
+ realmRoles: string[];
236
+ clientRoles: Record<string, string[]>;
237
+ permissions: RbacPermission[];
238
+ accessibleSystems: RbacSystemAccessSummary[];
239
+ grantSources: RbacPermissionGrantSource[];
240
+ };
241
+ export type RbacAssignableRealmRole = {
242
+ name: string;
243
+ displayName?: string;
244
+ permissions: RbacPermission[];
245
+ };
246
+ export type RbacAssignableSystemRole = {
247
+ name: string;
248
+ displayName?: string;
249
+ description?: string;
250
+ enabled: boolean;
251
+ permissions: RbacPermission[];
252
+ };
253
+ export type RbacAssignableSystemAccess = {
254
+ clientId: string;
255
+ displayName: string;
256
+ launchUrl?: string;
257
+ authenticatedLaunchUrl?: string;
258
+ icon?: string;
259
+ category?: string;
260
+ systemType?: "platform" | "external";
261
+ displayInLauncher?: boolean;
262
+ displayInSideNav?: boolean;
263
+ launchMode?: "internal" | "new_tab" | "same_tab";
264
+ roles: RbacAssignableSystemRole[];
265
+ accessRoles: string[];
266
+ };
267
+ export type RbacAssignableUserAccess = {
268
+ realmRoles: RbacAssignableRealmRole[];
269
+ systems: RbacAssignableSystemAccess[];
270
+ permissions: RbacPermission[];
271
+ };
272
+ export type RbacUserAccessProfile = {
273
+ effectiveAccess: RbacEffectiveAccess;
274
+ directAccess?: {
275
+ realmRoles: string[];
276
+ clientRoles: Record<string, string[]>;
277
+ permissions: RbacPermission[];
278
+ };
279
+ assignable: RbacAssignableUserAccess;
280
+ };
281
+ export type RbacUpdateUserAccessPayload = {
282
+ realmRoles: string[];
283
+ clientRoles: Record<string, string[]>;
284
+ permissions?: string[];
285
+ };
286
+ export type RbacPermissionMetadataPayload = {
287
+ displayName?: string;
288
+ description?: string;
289
+ category?: string;
290
+ status?: string;
291
+ };
292
+ export type RbacRoleUsage = {
293
+ role: RbacSystemRole;
294
+ permissionsCount: number;
295
+ assignedUserCount: number;
296
+ warnings: string[];
297
+ };
298
+ export type RbacRealmRoleUsage = {
299
+ realmRole: string;
300
+ permissions: RbacPermission[];
301
+ permissionsCount: number;
302
+ warnings: string[];
303
+ };
304
+ export type RbacChangePreviewPayload = {
305
+ action: string;
306
+ resourceType: string;
307
+ resourceId?: string;
308
+ systemClientId?: string;
309
+ roleName?: string;
310
+ permissionKey?: string;
311
+ };
312
+ export type RbacChangePreview = {
313
+ action: string;
314
+ resourceType: string;
315
+ resourceId?: string;
316
+ highRisk: boolean;
317
+ riskLevel: string;
318
+ warnings: string[];
319
+ permissionsAdded: string[];
320
+ permissionsRemoved: string[];
321
+ affectedSystems: string[];
322
+ affectedUsersCount: number;
323
+ };
324
+ export type RbacImportPayload = {
325
+ payload: unknown;
326
+ format?: string;
327
+ prune?: boolean;
328
+ };
329
+ export type RbacImportPreview = {
330
+ systemsToCreate: number;
331
+ systemsToUpdate: number;
332
+ rolesToCreate: number;
333
+ warnings: string[];
334
+ };
335
+ export type RbacImportApplyResult = {
336
+ preview: RbacImportPreview;
337
+ applied: boolean;
338
+ };
339
+ export type RbacRoleTemplate = {
340
+ name: string;
341
+ displayName: string;
342
+ description: string;
343
+ permissions: string[];
344
+ };
345
+ export type RbacRoleFromTemplatePayload = {
346
+ templateName: string;
347
+ roleName?: string;
348
+ displayName?: string;
349
+ };
350
+ export type RbacCopyPermissionsPayload = {
351
+ sourceRoleId: string;
352
+ };
353
+ export type RbacBulkPermissionPayload = {
354
+ roleIds: string[];
355
+ permissionKey: string;
356
+ };
357
+ export type RbacAuditEvent = {
358
+ id: string;
359
+ actorUserId?: string;
360
+ action: string;
361
+ resourceType: string;
362
+ resourceId?: string;
363
+ systemClientId?: string;
364
+ roleName?: string;
365
+ permissionKey?: string;
366
+ details?: unknown;
367
+ createdAt: string;
368
+ };
369
+ export type RbacAuditFilter = {
370
+ actor?: string;
371
+ systemClientId?: string;
372
+ roleName?: string;
373
+ permissionKey?: string;
374
+ action?: string;
375
+ from?: string;
376
+ to?: string;
377
+ limit?: number;
378
+ };
379
+ export type RbacAccessRequest = {
380
+ id: string;
381
+ userId?: string;
382
+ username?: string;
383
+ email?: string;
384
+ systemClientId: string;
385
+ requestedRole: string;
386
+ reason?: string;
387
+ status: string;
388
+ requestedBy?: string;
389
+ reviewedBy?: string;
390
+ reviewedAt?: string;
391
+ decisionNote?: string;
392
+ createdAt: string;
393
+ updatedAt: string;
394
+ };
395
+ export type RbacAccessRequestPayload = {
396
+ userId?: string;
397
+ username?: string;
398
+ email?: string;
399
+ systemClientId: string;
400
+ requestedRole: string;
401
+ reason?: string;
402
+ };
403
+ export type RbacDecisionPayload = {
404
+ note?: string;
405
+ };
406
+ export type RbacChangeRequest = {
407
+ id: string;
408
+ requestedBy?: string;
409
+ reviewedBy?: string;
410
+ status: string;
411
+ action: string;
412
+ resourceType: string;
413
+ resourceId?: string;
414
+ payload?: unknown;
415
+ riskLevel: string;
416
+ reason?: string;
417
+ decisionNote?: string;
418
+ reviewedAt?: string;
419
+ createdAt: string;
420
+ updatedAt: string;
421
+ };
422
+ export type RbacChangeRequestPayload = {
423
+ action: string;
424
+ resourceType: string;
425
+ resourceId?: string;
426
+ payload?: unknown;
427
+ riskLevel?: string;
428
+ reason?: string;
429
+ };
430
+ export type RbacSimulationPayload = {
431
+ userId?: string;
432
+ username?: string;
433
+ email?: string;
434
+ realmRoles: string[];
435
+ clientRoles: Record<string, string[]>;
436
+ addRealmRoles?: string[];
437
+ removeRealmRoles?: string[];
438
+ addClientRoles?: Record<string, string[]>;
439
+ removeClientRoles?: Record<string, string[]>;
440
+ addPermissions?: string[];
441
+ removePermissions?: string[];
442
+ };
443
+ export type RbacSimulationResult = {
444
+ baselinePermissions: RbacPermission[];
445
+ permissions: RbacPermission[];
446
+ addedPermissions: string[];
447
+ removedPermissions: string[];
448
+ accessibleSystems: RbacSystemAccessSummary[];
449
+ grantSources: RbacPermissionGrantSource[];
450
+ warnings: string[];
451
+ };
@@ -0,0 +1 @@
1
+ export * from "./users.api";