Sanity Library Reference Docs
    Preparing search index...

    A blueprint with the values its deployed Stack holds

    interface StackInfo {
        blueprint: Blueprint;
        configPath?: string;
        module?: BlueprintModule;
        organizationId?: string;
        path: string;
        projectId?: string;
        resources: LiveResource[];
        resourcesByName: Record<string, LiveResource>;
        scopeId?: string;
        scopeType?: ScopeType;
        sources: {
            organizationId?: ConfigSource;
            projectId?: ConfigSource;
            stackId?: ConfigSource;
        };
        stack: DeployedStack;
        stackId?: string;
        values: Record<string, Record<string, unknown>>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    blueprint: Blueprint

    The blueprint document the module returned or the JSON file held

    configPath?: string

    The .sanity/blueprint.config.json that was read, when one exists

    module?: BlueprintModule

    The default export of a JS or TS file. Absent when the file was JSON.

    organizationId?: string
    path: string

    The absolute path of the blueprint file

    projectId?: string
    resources: LiveResource[]

    blueprint.resources, or an empty list

    resourcesByName: Record<string, LiveResource>

    resources keyed by name. A later duplicate name wins.

    scopeId?: string
    scopeType?: ScopeType

    project when a project id is known, else organization when an organization id is known

    sources: {
        organizationId?: ConfigSource;
        projectId?: ConfigSource;
        stackId?: ConfigSource;
    }

    Which source supplied each id

    stackId?: string
    values: Record<string, Record<string, unknown>>

    live parameters by resource name, for the resources the Stack has deployed