Skip to content

Type Alias: AuthzTupleWriteRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AuthzTupleWriteRequest

AuthzTupleWriteRequest = AuthzCanTupleWriteRequest | AuthzHasRoleTupleWriteRequest

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

Body of POST /api/v1/authz/tuples — one authorization tuple to write.

Discriminated on relation, because the required legs depend on it: can needs permission and resource, has_role needs role. The tuple id is content-addressed from the relation and the identity legs, so writing the same tuple again is an idempotent upsert onto the same id.