UNPKG

rbac-engine

Version:

Role-based access control engine with policy-based permissions

32 lines 649 B
export interface User { id: string; name: string; roles?: string[]; policies?: string[]; } export interface Role { id: string; name: string; policies?: string[]; } export declare enum Effect { Allow = "Allow", Deny = "Deny" } export interface PolicyStatement { Effect: Effect; Action: string[]; Resource: string[]; Condition?: Record<string, any>; StartDate?: string; EndDate?: string; } export interface PolicyDocument { Version: string; Statement: PolicyStatement[]; } export interface Policy { id: string; document: PolicyDocument; } //# sourceMappingURL=models.d.ts.map