@contentauth/c2pa-js
    Preparing search index...

    Use a ManifestDefinition to define a manifest and to build a ManifestStore. A manifest is a collection of ingredients and assertions used to define a claim that can be signed and embedded into a file.

    interface ManifestDefinition {
        assertions?: AssertionDefinition[];
        claim_generator_info?: ClaimGeneratorInfo[];
        claim_version?: null | number;
        format?: string;
        ingredients?: Ingredient[];
        instance_id?: string;
        label?: null | string;
        metadata?: null | AssertionMetadata[];
        redactions?: null | string[];
        thumbnail?: null | ResourceRef;
        title?: null | string;
        vendor?: null | string;
        [k: string]: unknown;
    }

    Indexable

    • [k: string]: unknown
    Index

    Properties

    assertions?: AssertionDefinition[]

    A list of assertions

    claim_generator_info?: ClaimGeneratorInfo[]

    Claim Generator Info is always required with an entry

    claim_version?: null | number

    The version of the claim. Defaults to 2.

    format?: string

    The format of the source file as a MIME type.

    ingredients?: Ingredient[]

    A List of ingredients

    instance_id?: string

    Instance ID from xmpMM:InstanceID in XMP metadata.

    label?: null | string

    Allows you to pre-define the manifest label, which must be unique. Not intended for general use. If not set, it will be assigned automatically.

    metadata?: null | AssertionMetadata[]

    Optional manifest metadata. This will be deprecated in the future; not recommended to use.

    redactions?: null | string[]

    A list of redactions - URIs to redacted assertions.

    thumbnail?: null | ResourceRef

    An optional ResourceRef to a thumbnail image that represents the asset that was signed. Must be available when the manifest is signed.

    title?: null | string

    A human-readable title, generally source filename.

    vendor?: null | string

    Optional prefix added to the generated Manifest Label This is typically a reverse domain name.