Sanity Library Reference Docs
    Preparing search index...

    One cascade-fired (when) action, narrated as automation: the engine fires it on its own the moment the trigger holds — it is never invocable via workflows_fire_action, so it must not read as a button.

    interface ProjectedAutomation {
        action: string;
        firesWhen: string;
        pending?: string;
        title?: string;
    }
    Index

    Properties

    action: string

    The cascade-fired action's name. Not accepted by workflows_fire_action.

    firesWhen: string

    The trigger — the GROQ condition whose truth makes the engine fire it.

    pending?: string

    What still stands between the current state and the trigger, as one English line ("Needs: …"). Absent when the trigger is already satisfied or already fired this stage visit.

    title?: string

    Human label, if provided.