Sanity Library Reference Docs
    Preparing search index...
    • Computes a deterministic, non-cryptographic fingerprint of authored definition content. The result is 16 lowercase hexadecimal characters. Object-key order does not affect it; array order and field values do. Pass authored content without stored-document envelope fields: this function strips none of them. The authoring-only runtime block is the one key it ignores, so two definitions that differ only in a hosting kind fingerprint identically.

      Parameters

      • def: {
            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 string