AccessSubject
katanakit-js / AccessSubject
Type Alias: AccessSubject
Section titled “Type Alias: AccessSubject”type AccessSubject = z.infer<typeof AccessSubjectSchema>;Defined in: types/core/access.ts:56
Structural subject for access checks. Decoupled from the persistence layer:
any object with an id and a role list can be checked (e.g. a Prisma
Account row, a JWT payload, or a test fixture). Extra keys are preserved,
so a subject can also carry the principal it was resolved from.