@jmruthers/pace-core 0.5.109 → 0.5.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/{AuthService-DrHrvXNZ.d.ts → AuthService-CVgsgtaZ.d.ts} +8 -0
- package/dist/{DataTable-5HITILXS.js → DataTable-5W2HVLLV.js} +8 -8
- package/dist/{UnifiedAuthProvider-A7I23UCN.js → UnifiedAuthProvider-LUM3QLS5.js} +3 -3
- package/dist/{api-5I3E47G2.js → api-SIZPFBFX.js} +5 -3
- package/dist/{audit-65VNHEV2.js → audit-5JI5T3SL.js} +2 -2
- package/dist/{chunk-P72NKAT5.js → chunk-2BIDKXQU.js} +157 -120
- package/dist/chunk-2BIDKXQU.js.map +1 -0
- package/dist/{chunk-S4D3Z723.js → chunk-ACYQNYHB.js} +7 -7
- package/dist/{chunk-D6MEKC27.js → chunk-EFVQBYFN.js} +2 -2
- package/dist/{chunk-EZ64QG2I.js → chunk-I5YM5BGS.js} +2 -2
- package/dist/{chunk-Q7APDV6H.js → chunk-IWJYNWXN.js} +13 -5
- package/dist/chunk-IWJYNWXN.js.map +1 -0
- package/dist/{chunk-YFMENCR4.js → chunk-JE2GFA3O.js} +3 -3
- package/dist/{chunk-AUXS7XSO.js → chunk-MW73E7SP.js} +35 -11
- package/dist/chunk-MW73E7SP.js.map +1 -0
- package/dist/{chunk-F6TSYCKP.js → chunk-PXXS26G5.js} +68 -29
- package/dist/chunk-PXXS26G5.js.map +1 -0
- package/dist/{chunk-UW2DE6JX.js → chunk-TD4BXGPE.js} +4 -4
- package/dist/{chunk-EYSXQ756.js → chunk-TDFBX7KJ.js} +2 -2
- package/dist/{chunk-WWNOVFDC.js → chunk-UGVU7L7N.js} +52 -90
- package/dist/chunk-UGVU7L7N.js.map +1 -0
- package/dist/{chunk-2W4WKJVF.js → chunk-X7SPKHYZ.js} +290 -255
- package/dist/chunk-X7SPKHYZ.js.map +1 -0
- package/dist/{chunk-3TKTL5AZ.js → chunk-ZL45MG76.js} +60 -60
- package/dist/chunk-ZL45MG76.js.map +1 -0
- package/dist/components.js +10 -10
- package/dist/hooks.d.ts +11 -1
- package/dist/hooks.js +9 -7
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -13
- package/dist/providers.d.ts +2 -2
- package/dist/providers.js +2 -2
- package/dist/rbac/index.d.ts +46 -29
- package/dist/rbac/index.js +9 -9
- package/dist/utils.js +1 -1
- package/docs/api/classes/ColumnFactory.md +1 -1
- package/docs/api/classes/ErrorBoundary.md +1 -1
- package/docs/api/classes/InvalidScopeError.md +4 -4
- package/docs/api/classes/MissingUserContextError.md +4 -4
- package/docs/api/classes/OrganisationContextRequiredError.md +4 -4
- package/docs/api/classes/PermissionDeniedError.md +4 -4
- package/docs/api/classes/PublicErrorBoundary.md +1 -1
- package/docs/api/classes/RBACAuditManager.md +8 -8
- package/docs/api/classes/RBACCache.md +8 -8
- package/docs/api/classes/RBACEngine.md +9 -8
- package/docs/api/classes/RBACError.md +4 -4
- package/docs/api/classes/RBACNotInitializedError.md +4 -4
- package/docs/api/classes/SecureSupabaseClient.md +1 -1
- package/docs/api/classes/StorageUtils.md +1 -1
- package/docs/api/enums/FileCategory.md +1 -1
- package/docs/api/interfaces/AggregateConfig.md +1 -1
- package/docs/api/interfaces/ButtonProps.md +1 -1
- package/docs/api/interfaces/CardProps.md +1 -1
- package/docs/api/interfaces/ColorPalette.md +1 -1
- package/docs/api/interfaces/ColorShade.md +1 -1
- package/docs/api/interfaces/DataAccessRecord.md +1 -1
- package/docs/api/interfaces/DataRecord.md +1 -1
- package/docs/api/interfaces/DataTableAction.md +1 -1
- package/docs/api/interfaces/DataTableColumn.md +1 -1
- package/docs/api/interfaces/DataTableProps.md +1 -1
- package/docs/api/interfaces/DataTableToolbarButton.md +1 -1
- package/docs/api/interfaces/EmptyStateConfig.md +1 -1
- package/docs/api/interfaces/EnhancedNavigationMenuProps.md +1 -1
- package/docs/api/interfaces/FileDisplayProps.md +1 -1
- package/docs/api/interfaces/FileMetadata.md +1 -1
- package/docs/api/interfaces/FileReference.md +1 -1
- package/docs/api/interfaces/FileSizeLimits.md +1 -1
- package/docs/api/interfaces/FileUploadOptions.md +1 -1
- package/docs/api/interfaces/FileUploadProps.md +1 -1
- package/docs/api/interfaces/FooterProps.md +1 -1
- package/docs/api/interfaces/InactivityWarningModalProps.md +1 -1
- package/docs/api/interfaces/InputProps.md +1 -1
- package/docs/api/interfaces/LabelProps.md +1 -1
- package/docs/api/interfaces/LoginFormProps.md +1 -1
- package/docs/api/interfaces/NavigationAccessRecord.md +1 -1
- package/docs/api/interfaces/NavigationContextType.md +1 -1
- package/docs/api/interfaces/NavigationGuardProps.md +1 -1
- package/docs/api/interfaces/NavigationItem.md +1 -1
- package/docs/api/interfaces/NavigationMenuProps.md +1 -1
- package/docs/api/interfaces/NavigationProviderProps.md +1 -1
- package/docs/api/interfaces/Organisation.md +1 -1
- package/docs/api/interfaces/OrganisationContextType.md +1 -1
- package/docs/api/interfaces/OrganisationMembership.md +1 -1
- package/docs/api/interfaces/OrganisationProviderProps.md +1 -1
- package/docs/api/interfaces/OrganisationSecurityError.md +1 -1
- package/docs/api/interfaces/PaceAppLayoutProps.md +27 -27
- package/docs/api/interfaces/PaceLoginPageProps.md +4 -4
- package/docs/api/interfaces/PageAccessRecord.md +1 -1
- package/docs/api/interfaces/PagePermissionContextType.md +1 -1
- package/docs/api/interfaces/PagePermissionGuardProps.md +1 -1
- package/docs/api/interfaces/PagePermissionProviderProps.md +1 -1
- package/docs/api/interfaces/PaletteData.md +1 -1
- package/docs/api/interfaces/PermissionEnforcerProps.md +1 -1
- package/docs/api/interfaces/ProtectedRouteProps.md +1 -1
- package/docs/api/interfaces/PublicErrorBoundaryProps.md +1 -1
- package/docs/api/interfaces/PublicErrorBoundaryState.md +1 -1
- package/docs/api/interfaces/PublicLoadingSpinnerProps.md +1 -1
- package/docs/api/interfaces/PublicPageFooterProps.md +1 -1
- package/docs/api/interfaces/PublicPageHeaderProps.md +1 -1
- package/docs/api/interfaces/PublicPageLayoutProps.md +1 -1
- package/docs/api/interfaces/RBACConfig.md +19 -8
- package/docs/api/interfaces/RBACLogger.md +5 -5
- package/docs/api/interfaces/RoleBasedRouterContextType.md +8 -8
- package/docs/api/interfaces/RoleBasedRouterProps.md +10 -10
- package/docs/api/interfaces/RouteAccessRecord.md +10 -10
- package/docs/api/interfaces/RouteConfig.md +19 -6
- package/docs/api/interfaces/SecureDataContextType.md +1 -1
- package/docs/api/interfaces/SecureDataProviderProps.md +1 -1
- package/docs/api/interfaces/StorageConfig.md +1 -1
- package/docs/api/interfaces/StorageFileInfo.md +1 -1
- package/docs/api/interfaces/StorageFileMetadata.md +1 -1
- package/docs/api/interfaces/StorageListOptions.md +1 -1
- package/docs/api/interfaces/StorageListResult.md +1 -1
- package/docs/api/interfaces/StorageUploadOptions.md +1 -1
- package/docs/api/interfaces/StorageUploadResult.md +1 -1
- package/docs/api/interfaces/StorageUrlOptions.md +1 -1
- package/docs/api/interfaces/StyleImport.md +1 -1
- package/docs/api/interfaces/SwitchProps.md +1 -1
- package/docs/api/interfaces/ToastActionElement.md +1 -1
- package/docs/api/interfaces/ToastProps.md +1 -1
- package/docs/api/interfaces/UnifiedAuthContextType.md +1 -1
- package/docs/api/interfaces/UnifiedAuthProviderProps.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerOptions.md +1 -1
- package/docs/api/interfaces/UseInactivityTrackerReturn.md +1 -1
- package/docs/api/interfaces/UsePublicEventOptions.md +1 -1
- package/docs/api/interfaces/UsePublicEventReturn.md +1 -1
- package/docs/api/interfaces/UsePublicFileDisplayOptions.md +1 -1
- package/docs/api/interfaces/UsePublicFileDisplayReturn.md +1 -1
- package/docs/api/interfaces/UsePublicRouteParamsReturn.md +1 -1
- package/docs/api/interfaces/UseResolvedScopeOptions.md +1 -1
- package/docs/api/interfaces/UseResolvedScopeReturn.md +1 -1
- package/docs/api/interfaces/UserEventAccess.md +1 -1
- package/docs/api/interfaces/UserMenuProps.md +1 -1
- package/docs/api/interfaces/UserProfile.md +1 -1
- package/docs/api/modules.md +44 -43
- package/docs/api-reference/hooks.md +8 -4
- package/docs/architecture/rpc-function-standards.md +3 -1
- package/docs/best-practices/common-patterns.md +3 -3
- package/docs/best-practices/deployment.md +10 -4
- package/docs/best-practices/performance.md +11 -3
- package/docs/core-concepts/organisations.md +8 -8
- package/docs/core-concepts/permissions.md +133 -72
- package/docs/documentation-index.md +0 -2
- package/docs/migration/rbac-migration.md +65 -66
- package/docs/rbac/README.md +114 -38
- package/docs/rbac/advanced-patterns.md +15 -22
- package/docs/rbac/api-reference.md +63 -16
- package/docs/rbac/examples.md +12 -12
- package/docs/rbac/getting-started.md +19 -19
- package/docs/rbac/quick-start.md +110 -35
- package/docs/rbac/troubleshooting.md +127 -3
- package/package.json +1 -1
- package/src/components/DataTable/components/__tests__/ActionButtons.test.tsx +913 -0
- package/src/components/DataTable/components/__tests__/ColumnFilter.test.tsx +609 -0
- package/src/components/DataTable/components/__tests__/EmptyState.test.tsx +434 -0
- package/src/components/DataTable/components/__tests__/LoadingState.test.tsx +120 -0
- package/src/components/DataTable/components/__tests__/PaginationControls.test.tsx +519 -0
- package/src/components/DataTable/examples/__tests__/HierarchicalActionsExample.test.tsx +316 -0
- package/src/components/DataTable/examples/__tests__/InitialPageSizeExample.test.tsx +211 -0
- package/src/components/FileUpload/FileUpload.tsx +2 -8
- package/src/components/NavigationMenu/NavigationMenu.test.tsx +38 -4
- package/src/components/NavigationMenu/NavigationMenu.tsx +71 -6
- package/src/components/PaceAppLayout/PaceAppLayout.test.tsx +193 -63
- package/src/components/PaceAppLayout/PaceAppLayout.tsx +102 -135
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.accessibility.test.tsx +41 -2
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.integration.test.tsx +61 -6
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.performance.test.tsx +71 -21
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.security.test.tsx +113 -41
- package/src/components/PaceAppLayout/__tests__/PaceAppLayout.unit.test.tsx +155 -45
- package/src/components/PaceLoginPage/PaceLoginPage.tsx +30 -1
- package/src/hooks/__tests__/usePermissionCache.simple.test.ts +63 -5
- package/src/hooks/__tests__/usePermissionCache.unit.test.ts +156 -72
- package/src/hooks/__tests__/useRBAC.unit.test.ts +4 -38
- package/src/hooks/index.ts +1 -1
- package/src/hooks/useFileDisplay.ts +51 -0
- package/src/hooks/usePermissionCache.test.ts +112 -68
- package/src/hooks/usePermissionCache.ts +55 -15
- package/src/rbac/README.md +81 -39
- package/src/rbac/__tests__/adapters.comprehensive.test.tsx +3 -3
- package/src/rbac/__tests__/engine.comprehensive.test.ts +15 -6
- package/src/rbac/__tests__/rbac-core.test.tsx +1 -1
- package/src/rbac/__tests__/rbac-engine-core-logic.test.ts +57 -4
- package/src/rbac/__tests__/rbac-engine-simplified.test.ts +3 -2
- package/src/rbac/adapters.tsx +4 -4
- package/src/rbac/api.test.ts +39 -15
- package/src/rbac/api.ts +27 -9
- package/src/rbac/audit.test.ts +2 -2
- package/src/rbac/audit.ts +14 -5
- package/src/rbac/cache.test.ts +12 -0
- package/src/rbac/cache.ts +29 -9
- package/src/rbac/components/EnhancedNavigationMenu.test.tsx +1 -1
- package/src/rbac/components/NavigationGuard.tsx +14 -14
- package/src/rbac/components/NavigationProvider.test.tsx +1 -1
- package/src/rbac/components/PagePermissionGuard.tsx +22 -38
- package/src/rbac/components/PagePermissionProvider.test.tsx +1 -1
- package/src/rbac/components/PermissionEnforcer.tsx +19 -15
- package/src/rbac/components/RoleBasedRouter.tsx +16 -9
- package/src/rbac/components/__tests__/NavigationGuard.test.tsx +123 -107
- package/src/rbac/components/__tests__/PagePermissionGuard.test.tsx +2 -2
- package/src/rbac/components/__tests__/PermissionEnforcer.test.tsx +121 -103
- package/src/rbac/config.ts +2 -0
- package/src/rbac/docs/event-based-apps.md +6 -6
- package/src/rbac/engine.ts +27 -7
- package/src/rbac/hooks/useCan.test.ts +29 -2
- package/src/rbac/hooks/usePermissions.test.ts +25 -25
- package/src/rbac/hooks/usePermissions.ts +47 -23
- package/src/rbac/hooks/useRBAC.simple.test.ts +1 -8
- package/src/rbac/hooks/useRBAC.test.ts +3 -40
- package/src/rbac/hooks/useRBAC.ts +0 -55
- package/src/rbac/hooks/useResolvedScope.ts +23 -31
- package/src/rbac/permissions.test.ts +11 -7
- package/src/rbac/security.test.ts +2 -2
- package/src/rbac/security.ts +23 -8
- package/src/rbac/types.test.ts +2 -2
- package/src/rbac/types.ts +1 -2
- package/src/services/EventService.ts +41 -13
- package/src/services/__tests__/EventService.test.ts +25 -4
- package/src/services/interfaces/IEventService.ts +1 -0
- package/src/utils/file-reference.ts +9 -0
- package/dist/chunk-2W4WKJVF.js.map +0 -1
- package/dist/chunk-3TKTL5AZ.js.map +0 -1
- package/dist/chunk-AUXS7XSO.js.map +0 -1
- package/dist/chunk-F6TSYCKP.js.map +0 -1
- package/dist/chunk-P72NKAT5.js.map +0 -1
- package/dist/chunk-Q7APDV6H.js.map +0 -1
- package/dist/chunk-WWNOVFDC.js.map +0 -1
- package/docs/rbac/breaking-changes-v3.md +0 -222
- package/docs/rbac/migration-guide.md +0 -260
- /package/dist/{DataTable-5HITILXS.js.map → DataTable-5W2HVLLV.js.map} +0 -0
- /package/dist/{UnifiedAuthProvider-A7I23UCN.js.map → UnifiedAuthProvider-LUM3QLS5.js.map} +0 -0
- /package/dist/{api-5I3E47G2.js.map → api-SIZPFBFX.js.map} +0 -0
- /package/dist/{audit-65VNHEV2.js.map → audit-5JI5T3SL.js.map} +0 -0
- /package/dist/{chunk-S4D3Z723.js.map → chunk-ACYQNYHB.js.map} +0 -0
- /package/dist/{chunk-D6MEKC27.js.map → chunk-EFVQBYFN.js.map} +0 -0
- /package/dist/{chunk-EZ64QG2I.js.map → chunk-I5YM5BGS.js.map} +0 -0
- /package/dist/{chunk-YFMENCR4.js.map → chunk-JE2GFA3O.js.map} +0 -0
- /package/dist/{chunk-UW2DE6JX.js.map → chunk-TD4BXGPE.js.map} +0 -0
- /package/dist/{chunk-EYSXQ756.js.map → chunk-TDFBX7KJ.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.111](../README.md) / [Exports](../modules.md) / PermissionDeniedError
|
|
2
2
|
|
|
3
3
|
# Class: PermissionDeniedError
|
|
4
4
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
#### Defined in
|
|
44
44
|
|
|
45
|
-
[packages/core/src/rbac/types.ts:
|
|
45
|
+
[packages/core/src/rbac/types.ts:304](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/types.ts#L304)
|
|
46
46
|
|
|
47
47
|
## Properties
|
|
48
48
|
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
#### Defined in
|
|
58
58
|
|
|
59
|
-
[packages/core/src/rbac/types.ts:
|
|
59
|
+
[packages/core/src/rbac/types.ts:295](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/types.ts#L295)
|
|
60
60
|
|
|
61
61
|
___
|
|
62
62
|
|
|
@@ -70,4 +70,4 @@ ___
|
|
|
70
70
|
|
|
71
71
|
#### Defined in
|
|
72
72
|
|
|
73
|
-
[packages/core/src/rbac/types.ts:
|
|
73
|
+
[packages/core/src/rbac/types.ts:296](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/types.ts#L296)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.111](../README.md) / [Exports](../modules.md) / RBACAuditManager
|
|
2
2
|
|
|
3
3
|
# Class: RBACAuditManager
|
|
4
4
|
|
|
@@ -129,7 +129,7 @@ Emit a permission check audit event
|
|
|
129
129
|
|
|
130
130
|
#### Defined in
|
|
131
131
|
|
|
132
|
-
[packages/core/src/rbac/audit.ts:
|
|
132
|
+
[packages/core/src/rbac/audit.ts:224](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/audit.ts#L224)
|
|
133
133
|
|
|
134
134
|
___
|
|
135
135
|
|
|
@@ -151,7 +151,7 @@ Emit a permission denied audit event
|
|
|
151
151
|
|
|
152
152
|
#### Defined in
|
|
153
153
|
|
|
154
|
-
[packages/core/src/rbac/audit.ts:
|
|
154
|
+
[packages/core/src/rbac/audit.ts:236](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/audit.ts#L236)
|
|
155
155
|
|
|
156
156
|
___
|
|
157
157
|
|
|
@@ -173,7 +173,7 @@ Emit a role granted audit event
|
|
|
173
173
|
|
|
174
174
|
#### Defined in
|
|
175
175
|
|
|
176
|
-
[packages/core/src/rbac/audit.ts:
|
|
176
|
+
[packages/core/src/rbac/audit.ts:248](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/audit.ts#L248)
|
|
177
177
|
|
|
178
178
|
___
|
|
179
179
|
|
|
@@ -195,7 +195,7 @@ Emit a role revoked audit event
|
|
|
195
195
|
|
|
196
196
|
#### Defined in
|
|
197
197
|
|
|
198
|
-
[packages/core/src/rbac/audit.ts:
|
|
198
|
+
[packages/core/src/rbac/audit.ts:260](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/audit.ts#L260)
|
|
199
199
|
|
|
200
200
|
___
|
|
201
201
|
|
|
@@ -217,7 +217,7 @@ Emit an RLS denied audit event
|
|
|
217
217
|
|
|
218
218
|
#### Defined in
|
|
219
219
|
|
|
220
|
-
[packages/core/src/rbac/audit.ts:
|
|
220
|
+
[packages/core/src/rbac/audit.ts:272](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/audit.ts#L272)
|
|
221
221
|
|
|
222
222
|
___
|
|
223
223
|
|
|
@@ -242,7 +242,7 @@ Promise resolving to audit events
|
|
|
242
242
|
|
|
243
243
|
#### Defined in
|
|
244
244
|
|
|
245
|
-
[packages/core/src/rbac/audit.ts:
|
|
245
|
+
[packages/core/src/rbac/audit.ts:286](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/audit.ts#L286)
|
|
246
246
|
|
|
247
247
|
___
|
|
248
248
|
|
|
@@ -267,4 +267,4 @@ Promise resolving to audit events
|
|
|
267
267
|
|
|
268
268
|
#### Defined in
|
|
269
269
|
|
|
270
|
-
[packages/core/src/rbac/audit.ts:
|
|
270
|
+
[packages/core/src/rbac/audit.ts:308](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/audit.ts#L308)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.111](../README.md) / [Exports](../modules.md) / RBACCache
|
|
2
2
|
|
|
3
3
|
# Class: RBACCache
|
|
4
4
|
|
|
@@ -154,7 +154,7 @@ Clear all cache entries
|
|
|
154
154
|
|
|
155
155
|
#### Defined in
|
|
156
156
|
|
|
157
|
-
[packages/core/src/rbac/cache.ts:
|
|
157
|
+
[packages/core/src/rbac/cache.ts:112](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L112)
|
|
158
158
|
|
|
159
159
|
___
|
|
160
160
|
|
|
@@ -176,7 +176,7 @@ Get cache statistics
|
|
|
176
176
|
|
|
177
177
|
#### Defined in
|
|
178
178
|
|
|
179
|
-
[packages/core/src/rbac/cache.ts:
|
|
179
|
+
[packages/core/src/rbac/cache.ts:119](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L119)
|
|
180
180
|
|
|
181
181
|
___
|
|
182
182
|
|
|
@@ -204,7 +204,7 @@ Add an invalidation callback
|
|
|
204
204
|
|
|
205
205
|
#### Defined in
|
|
206
206
|
|
|
207
|
-
[packages/core/src/rbac/cache.ts:
|
|
207
|
+
[packages/core/src/rbac/cache.ts:136](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L136)
|
|
208
208
|
|
|
209
209
|
___
|
|
210
210
|
|
|
@@ -233,7 +233,7 @@ String cache key
|
|
|
233
233
|
|
|
234
234
|
#### Defined in
|
|
235
235
|
|
|
236
|
-
[packages/core/src/rbac/cache.ts:
|
|
236
|
+
[packages/core/src/rbac/cache.ts:156](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L156)
|
|
237
237
|
|
|
238
238
|
___
|
|
239
239
|
|
|
@@ -257,7 +257,7 @@ String cache key
|
|
|
257
257
|
|
|
258
258
|
#### Defined in
|
|
259
259
|
|
|
260
|
-
[packages/core/src/rbac/cache.ts:
|
|
260
|
+
[packages/core/src/rbac/cache.ts:183](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L183)
|
|
261
261
|
|
|
262
262
|
___
|
|
263
263
|
|
|
@@ -284,7 +284,7 @@ String cache key
|
|
|
284
284
|
|
|
285
285
|
#### Defined in
|
|
286
286
|
|
|
287
|
-
[packages/core/src/rbac/cache.ts:
|
|
287
|
+
[packages/core/src/rbac/cache.ts:206](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L206)
|
|
288
288
|
|
|
289
289
|
___
|
|
290
290
|
|
|
@@ -311,4 +311,4 @@ String cache key
|
|
|
311
311
|
|
|
312
312
|
#### Defined in
|
|
313
313
|
|
|
314
|
-
[packages/core/src/rbac/cache.ts:
|
|
314
|
+
[packages/core/src/rbac/cache.ts:232](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/cache.ts#L232)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.111](../README.md) / [Exports](../modules.md) / RBACEngine
|
|
2
2
|
|
|
3
3
|
# Class: RBACEngine
|
|
4
4
|
|
|
@@ -25,13 +25,14 @@ This reduces complexity, improves performance, and enhances security.
|
|
|
25
25
|
|
|
26
26
|
### constructor
|
|
27
27
|
|
|
28
|
-
• **new RBACEngine**(`supabase`): [`RBACEngine`](RBACEngine.md)
|
|
28
|
+
• **new RBACEngine**(`supabase`, `securityConfig?`): [`RBACEngine`](RBACEngine.md)
|
|
29
29
|
|
|
30
30
|
#### Parameters
|
|
31
31
|
|
|
32
32
|
| Name | Type |
|
|
33
33
|
| :------ | :------ |
|
|
34
34
|
| `supabase` | `default`\<`Database`, ``"public"``, ``"public"``, `never`, {}\> |
|
|
35
|
+
| `securityConfig?` | `Partial`\<`RBACSecurityConfig`\> |
|
|
35
36
|
|
|
36
37
|
#### Returns
|
|
37
38
|
|
|
@@ -39,7 +40,7 @@ This reduces complexity, improves performance, and enhances security.
|
|
|
39
40
|
|
|
40
41
|
#### Defined in
|
|
41
42
|
|
|
42
|
-
[packages/core/src/rbac/engine.ts:
|
|
43
|
+
[packages/core/src/rbac/engine.ts:53](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/engine.ts#L53)
|
|
43
44
|
|
|
44
45
|
## Methods
|
|
45
46
|
|
|
@@ -66,7 +67,7 @@ Promise resolving to permission result
|
|
|
66
67
|
|
|
67
68
|
#### Defined in
|
|
68
69
|
|
|
69
|
-
[packages/core/src/rbac/engine.ts:
|
|
70
|
+
[packages/core/src/rbac/engine.ts:75](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/engine.ts#L75)
|
|
70
71
|
|
|
71
72
|
___
|
|
72
73
|
|
|
@@ -94,7 +95,7 @@ Promise resolving to access level
|
|
|
94
95
|
|
|
95
96
|
#### Defined in
|
|
96
97
|
|
|
97
|
-
[packages/core/src/rbac/engine.ts:
|
|
98
|
+
[packages/core/src/rbac/engine.ts:288](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/engine.ts#L288)
|
|
98
99
|
|
|
99
100
|
___
|
|
100
101
|
|
|
@@ -123,7 +124,7 @@ Promise resolving to permission map
|
|
|
123
124
|
|
|
124
125
|
#### Defined in
|
|
125
126
|
|
|
126
|
-
[packages/core/src/rbac/engine.ts:
|
|
127
|
+
[packages/core/src/rbac/engine.ts:373](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/engine.ts#L373)
|
|
127
128
|
|
|
128
129
|
___
|
|
129
130
|
|
|
@@ -145,7 +146,7 @@ ___
|
|
|
145
146
|
|
|
146
147
|
#### Defined in
|
|
147
148
|
|
|
148
|
-
[packages/core/src/rbac/engine.ts:
|
|
149
|
+
[packages/core/src/rbac/engine.ts:452](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/engine.ts#L452)
|
|
149
150
|
|
|
150
151
|
___
|
|
151
152
|
|
|
@@ -167,4 +168,4 @@ ___
|
|
|
167
168
|
|
|
168
169
|
#### Defined in
|
|
169
170
|
|
|
170
|
-
[packages/core/src/rbac/engine.ts:
|
|
171
|
+
[packages/core/src/rbac/engine.ts:484](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/engine.ts#L484)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.111](../README.md) / [Exports](../modules.md) / RBACError
|
|
2
2
|
|
|
3
3
|
# Class: RBACError
|
|
4
4
|
|
|
@@ -53,7 +53,7 @@ Error.constructor
|
|
|
53
53
|
|
|
54
54
|
#### Defined in
|
|
55
55
|
|
|
56
|
-
[packages/core/src/rbac/types.ts:
|
|
56
|
+
[packages/core/src/rbac/types.ts:293](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/types.ts#L293)
|
|
57
57
|
|
|
58
58
|
## Properties
|
|
59
59
|
|
|
@@ -63,7 +63,7 @@ Error.constructor
|
|
|
63
63
|
|
|
64
64
|
#### Defined in
|
|
65
65
|
|
|
66
|
-
[packages/core/src/rbac/types.ts:
|
|
66
|
+
[packages/core/src/rbac/types.ts:295](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/types.ts#L295)
|
|
67
67
|
|
|
68
68
|
___
|
|
69
69
|
|
|
@@ -73,4 +73,4 @@ ___
|
|
|
73
73
|
|
|
74
74
|
#### Defined in
|
|
75
75
|
|
|
76
|
-
[packages/core/src/rbac/types.ts:
|
|
76
|
+
[packages/core/src/rbac/types.ts:296](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/types.ts#L296)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[@jmruthers/pace-core - v0.5.
|
|
1
|
+
[@jmruthers/pace-core - v0.5.111](../README.md) / [Exports](../modules.md) / RBACNotInitializedError
|
|
2
2
|
|
|
3
3
|
# Class: RBACNotInitializedError
|
|
4
4
|
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
#### Defined in
|
|
37
37
|
|
|
38
|
-
[packages/core/src/rbac/types.ts:
|
|
38
|
+
[packages/core/src/rbac/types.ts:325](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/types.ts#L325)
|
|
39
39
|
|
|
40
40
|
## Properties
|
|
41
41
|
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
|
|
50
50
|
#### Defined in
|
|
51
51
|
|
|
52
|
-
[packages/core/src/rbac/types.ts:
|
|
52
|
+
[packages/core/src/rbac/types.ts:295](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/types.ts#L295)
|
|
53
53
|
|
|
54
54
|
___
|
|
55
55
|
|
|
@@ -63,4 +63,4 @@ ___
|
|
|
63
63
|
|
|
64
64
|
#### Defined in
|
|
65
65
|
|
|
66
|
-
[packages/core/src/rbac/types.ts:
|
|
66
|
+
[packages/core/src/rbac/types.ts:296](https://github.com/jmruthers/pace-core/blob/main/packages/core/src/rbac/types.ts#L296)
|