UNPKG

@permitio/permit-prisma

Version:

Prisma extension for integrating Permit.io authorization (RBAC, ABAC, ReBAC) into your Prisma application.

18 lines (17 loc) 393 B
export type User = string | { key: string; attributes?: Record<string, any>; }; export type Action = string; export type Resource = string | { type: string; key?: string; tenant?: string; attributes?: Record<string, any>; }; export type Context = Record<string, any>; export declare enum AccessControlModel { RBAC = "rbac", ABAC = "abac", ReBAC = "rebac" }