Interface: AuthzTuple
@kortexya/reasoninglayer / AuthzTuple
Interface: AuthzTuple
Section titled “Interface: AuthzTuple”Defined in: src/types/authz.ts:132
An authorization tuple as stored.
Remarks
Section titled “Remarks”Returned by GET /api/v1/authz/tuples.
Properties
Section titled “Properties”features
Section titled “features”features: [
string,string][]
Defined in: src/types/authz.ts:146
Every feature leg as a [name, value] pair — subject, then
permission / resource or role, and when when set.
Remarks
Section titled “Remarks”The order is not stable across reads; look a leg up by name.
id:
string
Defined in: src/types/authz.ts:134
Content-addressed tuple (term) id — the same for the same tuple content.
relation
Section titled “relation”relation:
string
Defined in: src/types/authz.ts:136
can or has_role. Typed string so a relation a newer engine adds is not lost.
subject
Section titled “subject”subject:
string
Defined in: src/types/authz.ts:138
The subject leg, extracted for convenience.