Skip to content

AccessCallOptions

Defined in: packages/core/src/api/types.ts:45

Per-call access options. Server-side only — NEVER accept these from a registered Convex function’s args: an action no role declares falls through to defaultPermissionMode (default allow), so a client-chosen action reads anything.

A extends string = string

Action union accepted for this call shape.

optional action?: A

Defined in: packages/core/src/api/types.ts:52

Permission action to check instead of the function’s natural verb. Use for custom actions (listFeatured) and for draft reads (readDrafts).

the function’s natural verb (read, create, update, delete)


optional bypass?: boolean

Defined in: packages/core/src/api/types.ts:59

Skip RBAC for this call entirely. Also skips getAuth, so a public read costs no session lookup.

false