File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ export {
8888// Export storage
8989export {
9090 InMemoryPermissionStorage ,
91+ ObjectQLPermissionStorage ,
9192} from './storage.js' ;
9293export type {
9394 PermissionStorage ,
Original file line number Diff line number Diff line change 55 */
66
77import type { PluginContext } from '@objectstack/runtime' ;
8- import type { PermissionStorage , PermissionSet } from './types.js' ;
8+ import type { PermissionSet } from './types.js' ;
9+ import type { PermissionStorage } from './storage.js' ;
910
1011export class ObjectQLPermissionStorage implements PermissionStorage {
1112 private context : PluginContext ;
Original file line number Diff line number Diff line change @@ -88,3 +88,6 @@ export class InMemoryPermissionStorage implements PermissionStorage {
8888 this . objectIndex . clear ( ) ;
8989 }
9090}
91+
92+ // Re-export ObjectQL storage
93+ export { ObjectQLPermissionStorage } from './objectql-storage.js' ;
Original file line number Diff line number Diff line change @@ -382,6 +382,8 @@ export interface PermissionPluginConfig {
382382 permissionsDir ?: string ;
383383 /** Cache permission sets */
384384 cachePermissions ?: boolean ;
385+ /** Custom storage implementation */
386+ storage ?: any ; // PermissionStorage
385387}
386388
387389// ─── Kernel Compliance Types (from @objectstack/spec) ──────────────────────────
You can’t perform that action at this time.
0 commit comments