Sanity Library Reference Docs
    Preparing search index...
    • The deployment's autonomous-start definitions, name ascending; a spawn-only (child) definition never appears. Includes definitions no write can start, so filter with startableFromAWrite for the ones a write can; a watcher is emitted for those of them that are not 'selfHosted'.

      Parameters

      • deployment: {
            definitions: DefinedWorkflow[];
            expectedMinReaderModel?: number;
            name: string;
            resourceAliases?: {
                name: string;
                resource:
                    | { id: string; type: "dataset" }
                    | { id: string; type: "canvas" }
                    | { id: string; type: "media-library" }
                    | { id: string; type: "dashboard" };
            }[];
            runtime?: RuntimeBlock;
            tag: string;
            workflowResource: | { id: string; type: "dataset" }
            | { id: string; type: "canvas" }
            | { id: string; type: "media-library" }
            | { id: string; type: "dashboard" };
        }

      Returns {
          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;
      }[]