resolveAccessCall
resolveAccessCall<
A>(props):object
Defined in: packages/core/src/access/resolveAccessCall.ts:20
Resolves the access config and action for one server-function call.
Single seam for access.action / access.bypass. Bypass returns undefined for
access, which is the documented “RBAC not configured” path — no separate enforcement
branch exists or should be added.
Type Parameters
Section titled “Type Parameters”A extends string
Parameters
Section titled “Parameters”access?
Section titled “access?”Per-call overrides.
config?
Section titled “config?”Resolved Vex config; config.access supplies the matrix.
defaultAction
Section titled “defaultAction”A
The function’s natural verb.
resource
Section titled “resource”string
Subject slug: the custom-action lookup key, and the name the dev warnings report.
Returns
Section titled “Returns”object
The access config to enforce (undefined when bypassed) and the action to check.
access
Section titled “access”access:
VexAccessConfig<Record<string,SubjectEntry>, readonlyAccessResource[],string,string|undefined,Partial<Record<string,CustomActionsInput>>> |undefined
action
Section titled “action”action:
A
resource
Section titled “resource”resource:
string