Sanity Library Reference Docs
    Preparing search index...

    Interface ProjectedInstanceState

    interface ProjectedInstanceState {
        activities: ProjectedActivity[];
        autonomy: string;
        currentStage: string;
        currentStageTitle?: string;
        definition: string;
        done: boolean;
        instanceId: string;
        recentHistory: ProjectedHistoryEntry[];
        subject?: ProjectedSubject;
        workflowTitle?: string;
    }
    Index

    Properties

    activities: ProjectedActivity[]

    Activities on the current stage, with available actions.

    autonomy: string

    The workflow-level causal-autonomy narrative — "this workflow runs itself", or the stages where a run waits on someone.

    currentStage: string
    currentStageTitle?: string
    definition: string
    done: boolean
    instanceId: string
    recentHistory: ProjectedHistoryEntry[]

    Most recent history entries (newest first), capped to keep payload tight.

    What this workflow is about. See ProjectedSubject.

    workflowTitle?: string

    Workflow's human-readable title — see ProjectedInstanceSummary.workflowTitle.