Type Alias: AuthzTupleWriteRequest
@kortexya/reasoninglayer / AuthzTupleWriteRequest
Type Alias: AuthzTupleWriteRequest
Section titled “Type Alias: AuthzTupleWriteRequest”AuthzTupleWriteRequest =
AuthzCanTupleWriteRequest|AuthzHasRoleTupleWriteRequest
Defined in: src/types/authz.ts:188
Body of POST /api/v1/authz/tuples — one authorization tuple to write.
Remarks
Section titled “Remarks”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.