Sanity Library Reference Docs
    Preparing search index...
    PrincipalNamespace: "global" | "project" | "robot" | "sentinel" | "unknown"

    The namespace a bare principal-id string belongs to.

    • global — account-global (comparable across every org-level context)
    • project — scoped to ONE project; which project is not in the string, it comes from context (for stored engine values: the anchor resource the document lives in)
    • robot — a token principal with one universal id (never needs mapping)
    • sentinel<anonymous> / <system>, never a person
    • unknown — unclassifiable; treat as unresolvable and surface it