/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import * as components from "../components/index.js"; export type ListInformationRequestEvidenceRequest = { auditId: string; requestId: string; /** * Maximum number of evidence entries to return per page. */ pageSize?: number | undefined; /** * Pagination cursor from a previous response. Provide to fetch the next page of evidence. */ pageCursor?: string | undefined; /** * Includes all evidence that have changed since changedSinceDate. Considers creationDate, * * @remarks * modificationDate, deletionDate, and visibleToAuditorDate timestamps when determining changes. */ changedSinceDate?: Date | undefined; /** * Limits results to the provided evidence types. Must include at least one of: * * @remarks * UPLOADED_DOCUMENT, OBSERVATION, LINK, VANTA_DOCUMENT, VANTA_POLICY, VANTA_TEST, * VANTA_TEST_SNAPSHOT. */ evidenceTypeMatchesAny?: | Array | undefined; }; /** @internal */ export type ListInformationRequestEvidenceRequest$Outbound = { auditId: string; requestId: string; pageSize: number; pageCursor?: string | undefined; changedSinceDate?: string | undefined; evidenceTypeMatchesAny?: Array | undefined; }; /** @internal */ export const ListInformationRequestEvidenceRequest$outboundSchema: z.ZodType< ListInformationRequestEvidenceRequest$Outbound, z.ZodTypeDef, ListInformationRequestEvidenceRequest > = z.object({ auditId: z.string(), requestId: z.string(), pageSize: z.number().int().default(10), pageCursor: z.string().optional(), changedSinceDate: z.date().transform(v => v.toISOString()).optional(), evidenceTypeMatchesAny: z.array( components.InformationRequestSupportedEvidenceType$outboundSchema, ).optional(), }); export function listInformationRequestEvidenceRequestToJSON( listInformationRequestEvidenceRequest: ListInformationRequestEvidenceRequest, ): string { return JSON.stringify( ListInformationRequestEvidenceRequest$outboundSchema.parse( listInformationRequestEvidenceRequest, ), ); }