C2paValidationOutcome type

Outcome of a single C2PA validation event reported by an input. Discriminated by state: "valid" means the segment validated cleanly, "invalid" means it failed and carries machine-readable detail.

Signature:

export type C2paValidationOutcome = {
    state: "valid";
    manifestLabel?: string;
    manifestId?: string;
} | {
    state: "invalid";
    reason: string;
    codes: string[];
};