Skip to content

Interface: AuthzDryRunResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Authz / AuthzDryRunResponse

Interface: AuthzDryRunResponse

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

The dry-run outcome.

Remarks

Returned by POST /api/v1/authz/dry-run. sortAncestorsUsed is the ancestor list the decision actually used — the client-supplied list, or the one resolved from the sort lattice when the request omitted sortAncestors.

Example

const response: AuthzDryRunResponse = {
effect: 'allow',
sortAncestorsUsed: ['record', 'entity'],
};

Properties

effect

effect: AuthzEffect

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

What every enforcement locus would decide for this access.


sortAncestorsUsed

sortAncestorsUsed: string[]

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

The ancestor list the decision actually used (client-supplied, or lattice-resolved when the request omitted sortAncestors).