Interface: AuthzHasRoleTupleWriteRequest
@kortexya/reasoninglayer / AuthzHasRoleTupleWriteRequest
Interface: AuthzHasRoleTupleWriteRequest
Section titled “Interface: AuthzHasRoleTupleWriteRequest”Defined in: src/types/authz.ts:168
Write a has_role tuple: the subject is bound to a role.
Example
Section titled “Example”const tuple: AuthzHasRoleTupleWriteRequest = { relation: 'has_role', subject: 'user:alice', role: 'editor',};Properties
Section titled “Properties”relation
Section titled “relation”relation:
"has_role"
Defined in: src/types/authz.ts:170
Discriminant.
role:
string
Defined in: src/types/authz.ts:174
The role bound to the subject. Must not be empty.
subject
Section titled “subject”subject:
string
Defined in: src/types/authz.ts:172
The subject the binding is about. Must not be empty.
optionalwhen?:string
Defined in: src/types/authz.ts:176
Optional validity annotation, as on AuthzCanTupleWriteRequest.when.