Skip to content

Type Alias: AuthzRelation

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AuthzRelation

AuthzRelation = "can" | "has_role"

Defined in: src/types/authz.ts:124

The relation an authorization tuple asserts.

Both are reserved authorization sorts: can(subject, permission, resource) and has_role(subject, role). Sent verbatim on the wire.

const relation: AuthzRelation = 'has_role';