import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AuditFocus } from "./auditfocus.js"; import { AuditSegment } from "./auditsegment.js"; import { AuditView } from "./auditview.js"; /** * Generation status of this audit's Vanta-generated information request list * * @remarks * (IRL). `PENDING`/`RUNNING` defer initial sync, `READY` permits a full sync, * and `FAILED` is terminal. Null means the audit has no generated IRL. */ export declare const IrlGenerationStatus: { readonly Pending: "PENDING"; readonly Running: "RUNNING"; readonly Ready: "READY"; readonly Failed: "FAILED"; }; /** * Generation status of this audit's Vanta-generated information request list * * @remarks * (IRL). `PENDING`/`RUNNING` defer initial sync, `READY` permits a full sync, * and `FAILED` is terminal. Null means the audit has no generated IRL. */ export type IrlGenerationStatus = ClosedEnum; /** * Metadata about the auditor request list. This field is only present for IRL (Information * * @remarks * Request List) based audits and will be undefined for standard audits. Use the presence * of this field to differentiate between IRL and non-IRL audits. */ export type AuditorRequestListMetadata = { /** * Timestamp when information requests were shared with the customer. Null if not shared. */ requestsSharedWithCustomer: Date | null; }; export type Audit = { /** * The unique identifier for the audit. */ id: string; /** * The domain name of the customer organization being audited (e.g. vanta.com) */ customerOrganizationName: string; /** * The human readable name of the customer organization being audited (e.g. Vanta) */ customerDisplayName: string | null; /** * The uuid of the customer organization being audited */ customerOrganizationId: string; /** * The start of the audit window. This is also when data collection for audit starts. */ auditStartDate: Date; /** * The end of the audit window. */ auditEndDate: Date; /** * Timestamp at which auditors gain access to the audit. Occurs before the audit window begins */ earlyAccessStartsAt: Date | null; /** * Legacy singular framework display name from the audit type. Incomplete for * * @remarks * a multi-framework audit — use `segments` instead. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ framework: string; /** * The display name for the audit. Returns the custom audit name if set, * * @remarks * otherwise returns the framework name. */ displayName: string; /** * Emails of auditors with access to audit */ allowAuditorEmails: Array; /** * Set to true if all auditors in audit firm have access */ allowAllAuditors: boolean; /** * Timestamp when the audit was deleted */ deletionDate: Date | null; /** * Timestamp when the audit was created */ creationDate: Date; /** * Timestamp when the audit was updated */ modificationDate: Date | null; /** * Timestamp when the audit was marked completed, and report was uploaded */ completionDate: Date | null; auditFocus: AuditFocus; auditView: AuditView; /** * Generation status of this audit's Vanta-generated information request list * * @remarks * (IRL). `PENDING`/`RUNNING` defer initial sync, `READY` permits a full sync, * and `FAILED` is terminal. Null means the audit has no generated IRL. */ irlGenerationStatus: IrlGenerationStatus | null; /** * Metadata about the auditor request list. This field is only present for IRL (Information * * @remarks * Request List) based audits and will be undefined for standard audits. Use the presence * of this field to differentiate between IRL and non-IRL audits. */ auditorRequestListMetadata?: AuditorRequestListMetadata | undefined; /** * The audit's scope as a list of segments. Always present. A live audit * * @remarks * returns every in-scope program and system segment; more than one segment * does not by itself imply more than one framework. Soft-deleted audits * return an empty list. Prefer this over the deprecated top-level `framework` * field. */ segments: Array; }; /** @internal */ export declare const IrlGenerationStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const AuditorRequestListMetadata$inboundSchema: z.ZodType; export declare function auditorRequestListMetadataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Audit$inboundSchema: z.ZodType; export declare function auditFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=audit.d.ts.map