import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { VantaDocumentLinkEvidence } from "./vantadocumentlinkevidence.js"; import { VantaDocumentUploadedEvidence } from "./vantadocumentuploadedevidence.js"; /** * Information about the user who added this file version to the document. * * @remarks * Undefined if the user information is not available. */ export type AddedBy = { email: string; name: string; }; /** * The file or link associated with this document version. * * @remarks * Use the `type` discriminator to determine whether it's an uploaded file * or an external link. */ export type FileT = VantaDocumentUploadedEvidence | VantaDocumentLinkEvidence; /** * Evidence in the form of a Vanta Document. * * @remarks * Vanta Documents are managed documents with metadata like expiration dates * and versioning. They can either be uploaded files stored in Vanta or * links to external documentation. */ export type VantaDocumentEvidence = { /** * The title of the document as displayed in Vanta. */ title: string; /** * Optional description providing additional context about the document. */ description?: string | undefined; /** * The date when the document version expires and should be renewed. * * @remarks * Undefined if no expiration is set. * Format: ISO 8601 UTC timestamp. */ expirationDate?: Date | undefined; /** * Information about the user who added this file version to the document. * * @remarks * Undefined if the user information is not available. */ addedBy?: AddedBy | undefined; /** * The unique identifier of the document version submitted as evidence. */ documentVersionId: string; /** * The file or link associated with this document version. * * @remarks * Use the `type` discriminator to determine whether it's an uploaded file * or an external link. */ file: VantaDocumentUploadedEvidence | VantaDocumentLinkEvidence; }; /** @internal */ export declare const AddedBy$inboundSchema: z.ZodType; export declare function addedByFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const FileT$inboundSchema: z.ZodType; export declare function fileFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const VantaDocumentEvidence$inboundSchema: z.ZodType; export declare function vantaDocumentEvidenceFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=vantadocumentevidence.d.ts.map