hacifootprint
hcifootprintType Aliases

ActionGuardContract

Type Alias: ActionGuardContract

ActionGuardContract = object & { when: WhereFilter; } | { enabledWhen: WhereFilter; } | { blockedBecause: NonNullable<object["blockedBecause"]>; }

Defined in: src/action/types.ts:97

Grouped, declarative availability metadata owned by one action definition.

Type Declaration

blockedBecause?

readonly optional blockedBecause?: BlockedBecause | (() => BlockedBecause | undefined)

The app-authored explanation served while the action is unavailable.

enabledWhen?

readonly optional enabledWhen?: WhereFilter<Record<string, unknown>>

Projected-state condition for enabledness.

when?

readonly optional when?: WhereFilter<Record<string, unknown>>

Projected-state condition for presence.

On this page