Type Alias: AuthzRelation
@kortexya/reasoninglayer / AuthzRelation
Type Alias: AuthzRelation
Section titled “Type Alias: AuthzRelation”AuthzRelation =
"can"|"has_role"
Defined in: src/types/authz.ts:124
The relation an authorization tuple asserts.
Remarks
Section titled “Remarks”Both are reserved authorization sorts: can(subject, permission, resource)
and has_role(subject, role). Sent verbatim on the wire.
Example
Section titled “Example”const relation: AuthzRelation = 'has_role';