Cerbos JavaScript SDK
    Preparing search index...

    Interface PolicyMetadata

    Metadata describing a policy.

    interface PolicyMetadata {
        annotations: Record<string, string>;
        hash: bigint | undefined;
        sourceAttributes: SourceAttributes;
        sourceFile: string;
        storeIdentifer: string;
        storeIdentifier: string;
    }
    Index

    Properties

    annotations: Record<string, string>

    Free-form data, for auditing purposes.

    hash: bigint | undefined

    Hash of policy contents.

    sourceAttributes: SourceAttributes

    More details about the source of the policy, for auditing purposes.

    sourceFile: string

    The source of the policy, for auditing purposes.

    storeIdentifer: string

    Deprecated.

    Use storeIdentifier instead.

    storeIdentifier: string

    The policy's identifier in the backend store.