Sanity Library Reference Docs
    Preparing search index...
    • Every condition a definition declares, in stable order: author predicates, then per stage — transitions, activities (filter, requirements, action filters and when triggers), editable gates, tighten-overrides. Editable gates resolve through the same helper the runtime projection uses (entry editable ANDed with the stage tighten-override), so every live editable-field address exists here with the same EFFECTIVE predicate the edit insight explains — including override-only gates on editable: true entries, and workflow-scope fields once per stage (the effective predicate is per-stage).

      Parameters

      • definition: {
            description?: string;
            fields?: FieldEntry[];
            groups?: Group[];
            initialStage: string;
            lifecycle?: WorkflowLifecycle;
            name: string;
            predicates?: Record<string, string>;
            roleAliases?: RoleAliases;
            semantics?: Semantic[];
            stages: Stage[];
            start?: StartBlock;
            title: string;
        }

      Returns DefinitionConditionSite[]