Sanity Library Reference Docs
    Preparing search index...
    • Every group a definition declares, in stable order: workflow groups, then per stage — the stage's groups, then per activity — the activity's groups. A membership that resolves to no declaration (rejected at deploy) is omitted — no site is invented for it.

      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 DefinitionGroupSite[]