Skip to content

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.

A extends string

AccessCallOptions<A>

Per-call overrides.

VexConfig

Resolved Vex config; config.access supplies the matrix.

A

The function’s natural verb.

string

Subject slug: the custom-action lookup key, and the name the dev warnings report.

object

The access config to enforce (undefined when bypassed) and the action to check.

access: VexAccessConfig<Record<string, SubjectEntry>, readonly AccessResource[], string, string | undefined, Partial<Record<string, CustomActionsInput>>> | undefined

action: A

resource: string