Skip to main content

c2pa.ingredient

Home > c2pa > Ingredient

Ingredient interface

Signature:
export interface Ingredient 

Properties

PropertyModifiersTypeDescription
documentIdstring | nullDocument ID from xmpMM:DocumentID in XMP metadata
formatstringMIME type of the asset associated with this ingredient
hashstring | nullOptional hash of the asset to prevent duplicates
instanceIdstringInstance ID from xmpMM:InstanceID in XMP metadata
isParentbooleantrue if this ingredient has a 'parentOf' relationship, i.e. it is the parent ingredient of its manifest
manifestManifest | nullThe manifest contained within this ingredient, if applicable
metadataMetadata | nullAdditional metadata as defined by the C2PA spec
provenancestring | nullURI from dcterms:provenance in XMP metadata
thumbnailThumbnail | nullThumbnail accessor, if available
titlestringHuman-readable title, generally source filename
validationStatusValidationStatus[]Validation errors associated with this ingredient