/** * Copyright 2022 Adobe * All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute this file in * accordance with the terms of the Adobe license agreement accompanying * it. */ import { ClaimGeneratorInfo, Credential, SignatureInfo, Manifest as ToolkitManifest } from '@contentauth/toolkit'; import { AssertionAccessor } from './assertions'; import { Ingredient } from './ingredient'; import { ManifestMap } from './manifestStore'; import { Thumbnail } from './thumbnail'; import { CawgReport, VerifiedIdentity } from './lib/cawg'; declare type ResolvedClaimGeneratorInfo = Omit & { icon: Thumbnail | null; }; export interface Manifest { /** * Label for this manifest in the manifest store */ label: string | null; /** * Human-readable title, generally source filename */ title: string; /** * MIME type of the asset associated with this manifest */ format: string; /** * Optional prefix added to the generated manifest label */ vendor: string | null; /** * User Agent string identifying the software/hardware/system that created this manifest */ claimGenerator: string | null; claimGeneratorHints: Record | null; claimGeneratorInfo: ResolvedClaimGeneratorInfo[]; /** * Instance ID from `xmpMM:InstanceID` in XMP metadata. */ instanceId: string; /** * Signature information (issuer, date) associated with this manifest */ signatureInfo: SignatureInfo | null; /** * List of Verifiable Credentials */ credentials: Credential[]; /** * List of ingredients included within this manifest */ ingredients: Ingredient[]; /** * List of URIs referencing redacted assertions */ redactions: string[]; /** * The manifest this manifest is an ingredient of, if applicable */ parent: Manifest | null; /** * Thumbnail accessor, if available */ thumbnail: Thumbnail | null; /** * Interface providing access to assertions contained within this manifest */ assertions: AssertionAccessor; verifiedIdentities: VerifiedIdentity[]; cawgIssuers: string[]; } /** * Creates a facade object with convenience methods over manifest data returned from the toolkit. * * @param manifestData Raw manifest data returned by the toolkit * @param manifests A map of previously-created manifest objects to be provided to ingredients. Must contain any manifest referenced by this manifest's ingredients. * @param cawgData Deserialized CAWG report returned by the toolkit */ export declare function createManifest(manifestData: ToolkitManifest, manifests: ManifestMap, cawgData: CawgReport): Manifest; export {}; //# sourceMappingURL=manifest.d.ts.map