type

CapabilityOptions

Proposed data, actor, trash, and locale input for side-effect-free access evaluation.

Properties

PropertyTypeDescription
Datastore.ValuesProposed create or update values evaluated by access rules.
Actor*store.DocumentAuthenticated actor, or nil for an anonymous request.
ActorCollectionschema.CollectionSlugExact auth collection that owns Actor.
TrashOnlyboolEvaluate permanent-delete capability for an already trashed document.
Localeschema.LocaleCodeContent locale; empty selects the application default.
FallbackLocales[]schema.LocaleCodeOptional replacement fallback chain.
DisableFallbackboolRequire an exact localized value instead of following fallbacks.
AllLocalesboolEvaluate localized fields across every configured locale.

How it works

Data models proposed create/update values. Capabilities runs no hooks, validation, or mutation and returns booleans only—not access predicates.

Full signature