Reference

Reference index

Where to look things up: entry points, options, rules API, engine, CLI, files, codes, defaults and environment variables.

Read as Markdown

Find a name, then follow the link to the page that defines it.

Entry points

ImportNamesPage
@aventara/accessdefinePolicies, createAccessEngine, defineGuardrails, policiesHash, guardrailsHash, AccessErrorRules, Reference, Guardrails
@aventara/access/authcreateAccess, agentOfcreateAccess, Agents over MCP
@aventara/access/better-authaventaraAccess, accessOf, aventaraAccessClient, agentOfThe Better Auth plugin
@aventara/access/standaloneserveHosts
avaccesspush, pull, verify, status, diff, keys, generate, schema, serveCLI reference

The rules builder

CallPage
definePolicies(model, { namespace })Rules, Namespaces
.principal<P>(), .roles(), .govern(), .grants(), .denies()Rules
grant(subjects, actions, resources, { name, where, in, fields, after, write })Rules, Updates
deny(actions, resources, { name, where, if: { claims, origin } })Rules
.contract(), .engine(options)Rules, Reference
defineGuardrails({ claims }).denies()Guardrails

The engine

MemberPage
can, scopeOf, fieldsOfRules
grantsOf, and beforeGrants on canUpdates
explainRules
checkBeaconsBeacons and foreign
governed, afterChecks, pathsReference
Engine options guardrails, lock, requireLockThe lock at startup

createAccess options

OptionPage
betterAuth, policies (rules, claims, claimsOf, guardrails, lock, requireLock, tokenTtl), principalcreateAccess
profile (web, service, kiosk)createAccess, The kiosk profile
registry (enabled, ownership)Namespaces, the registry and the CLI
auditThe audit log
resources (users, members, authTables)Better Auth tables as Resources
passwords (argon2id, legacyScrypt)Passwords
mcp (resource, openRegistration), audienceAgents over MCP

aventaraAccess() takes the same blocks, plus organization (The organization bridge).

The instance

MemberPage
handler, api, options, $Infer, policy, state, registry, client, kiosk, mcp, beaconcreateAccess
client.verbs: signIn, signUp, signOut, resetPassword, meThe $access verbs
kiosk.listDevices(), kiosk.revokeDevice()The kiosk profile
registry.createNamespace, rotateKey, revokeKey, assignResource, releaseResource, pushGuardrailsRegistry
authClient.access.canThe client plugin

Routes

RoutePage
Better Auth's routes under /api/auth, plus GET /me, GET /token, GET /jwksHosts, createAccess
/access/v1/... (the registry)Registry
/kiosk/...The kiosk profile
POST {api}/_access/can (the framework's)The $access verbs
GET /health (standalone server)Hosts

Files and formats

FilePage
aventara-access/policies@1, guardrails@1, lock@1, foreign@1, beacons@1File formats
avAccess.lock.jsonThe lock
avAccess.beacons.<env>.jsonBeacons and foreign
src/generated/avAccess.tsThe generated client

Lookups

I wantPage
A CLI flag or environment variableCLI reference
An error codeError codes
A default, bound or timingLimits and defaults
A word I do not knowGlossary
A message I seeTroubleshooting
What the framework does with the answersPolicies in the framework docs