keanu-weblite/src/models/proof.ts

40 lines
842 B
TypeScript

export type AIInferenceResult = {
aiGenerated: boolean;
aiProbability: number;
humanProbability: number;
}
export type C2PAActionsAssertion = {
actions: {
action: string;
softwareAgent?: string;
}[];
}
export type C2PAAssertion = {
label: string;
data: C2PAActionsAssertion | undefined;
}
export type C2PAManifest = {
assertions: C2PAAssertion[];
signature_info: {
time: string;
}
}
export type C2PAManifestInfo = {
active_manifest: string;
manifests: {[key: string]: C2PAManifest};
}
export type C2PAData = {
manifest_info: C2PAManifestInfo;
}
export type Proof = {
name?: string;
json?: string;
integrity?: { pgp?: any; c2pa?: any; exif?: {[key: string]: string | Object}; opentimestamps?: any };
ai?: { inferenceResult?: AIInferenceResult};
}