Skip to content

Interface: AuthzHasRoleTupleWriteRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AuthzHasRoleTupleWriteRequest

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

Write a has_role tuple: the subject is bound to a role.

const tuple: AuthzHasRoleTupleWriteRequest = {
relation: 'has_role',
subject: 'user:alice',
role: 'editor',
};

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: string

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

The subject the binding is about. Must not be empty.


optional when?: string

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

Optional validity annotation, as on AuthzCanTupleWriteRequest.when.