type

CapabilityOptions

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

Source ridu.go:60

Datastore.Values
Proposed create or update values evaluated by access rules.
Actor*store.Document
Authenticated actor, or nil for an anonymous request.
ActorCollectionschema.CollectionSlug
Exact auth collection that owns Actor.
TrashOnlybool
Evaluate permanent-delete capability for an already trashed document.
Localeschema.LocaleCode
Content locale; empty selects the application default.
FallbackLocales[]schema.LocaleCode
Optional replacement fallback chain.
DisableFallbackbool
Require an exact localized value instead of following fallbacks.
AllLocalesbool
Evaluate localized fields across every configured locale.

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