Skip to content

Interface: AuthzTuple

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AuthzTuple

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

An authorization tuple as stored.

Returned by GET /api/v1/authz/tuples.

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.

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

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

The subject leg, extracted for convenience.