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 { InformationRequestActivityType } from "./informationrequestactivitytype.js"; /** * Previous approval status before the status change. * * @remarks * Only populated for status change activities. Null for all other activity types. */ export declare const OldStatus: { readonly ReadyForAudit: "READY_FOR_AUDIT"; readonly NeedsEvidence: "NEEDS_EVIDENCE"; readonly AuditorApproved: "AUDITOR_APPROVED"; readonly AuditorFlagged: "AUDITOR_FLAGGED"; readonly ReadyForInternalReview: "READY_FOR_INTERNAL_REVIEW"; }; /** * Previous approval status before the status change. * * @remarks * Only populated for status change activities. Null for all other activity types. */ export type OldStatus = ClosedEnum; /** * New approval status after the status change. * * @remarks * Only populated for status change activities. Null for all other activity types. */ export declare const NewStatus: { readonly ReadyForAudit: "READY_FOR_AUDIT"; readonly NeedsEvidence: "NEEDS_EVIDENCE"; readonly AuditorApproved: "AUDITOR_APPROVED"; readonly AuditorFlagged: "AUDITOR_FLAGGED"; readonly ReadyForInternalReview: "READY_FOR_INTERNAL_REVIEW"; }; /** * New approval status after the status change. * * @remarks * Only populated for status change activities. Null for all other activity types. */ export type NewStatus = ClosedEnum; /** * Result of an automated evidence fill. Always null: only evidence fill activities * * @remarks * could populate it, and those are never returned, so nothing can set it. Do not * branch on it. * * @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible. */ export declare const FillOutcome: { readonly Success: "SUCCESS"; readonly Partial: "PARTIAL"; readonly Failed: "FAILED"; }; /** * Result of an automated evidence fill. Always null: only evidence fill activities * * @remarks * could populate it, and those are never returned, so nothing can set it. Do not * branch on it. * * @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible. */ export type FillOutcome = ClosedEnum; /** * Activity log entry tracking changes and actions on an information request. * * @remarks * * The activity log provides an audit trail of operations performed on an * information request, including status changes, evidence uploads, edits, * and evidence sharing. This enables tracking compliance activities and understanding * the request's history. Which entries are visible depends on the endpoint returning * them; see the endpoint's own description. */ export type InformationRequestActivityLog = { /** * The unique identifier for the activity log entry within Vanta's system. * * @remarks * Format: ObjectId as a string (e.g., "6890e473dce1da5d8406f5e7"). */ id: string; activityType: InformationRequestActivityType; /** * Timestamp when the activity occurred. * * @remarks * Format: ISO 8601 UTC timestamp. */ timestamp: Date; /** * Email address of the user who performed the activity. * * @remarks * Null for system-generated activities (rare, such as automated status changes). * This email uniquely identifies users across systems. */ userEmail: string | null; /** * Previous approval status before the status change. * * @remarks * Only populated for status change activities. Null for all other activity types. */ oldStatus: OldStatus | null; /** * New approval status after the status change. * * @remarks * Only populated for status change activities. Null for all other activity types. */ newStatus: NewStatus | null; /** * Optional explanation for the status change. * * @remarks * Only populated for status change activities when a reason is provided * (e.g., when flagging evidence). Null for all other cases. */ reason: string | null; /** * Result of an automated evidence fill. Always null: only evidence fill activities * * @remarks * could populate it, and those are never returned, so nothing can set it. Do not * branch on it. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ fillOutcome: FillOutcome | null; /** * Identifier of the information request this one was copied from when its * * @remarks * audit was duplicated. * Only populated for audit-duplication trail activities. Null for all other activity types. * Format: ObjectId as a string. */ sourceInformationRequestId: string | null; /** * Identifier of the audit this request's audit was duplicated from. * * @remarks * Only populated for audit-duplication trail activities. Null for all other activity types. * Format: ObjectId as a string. */ sourceAuditId: string | null; }; /** @internal */ export declare const OldStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const NewStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const FillOutcome$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const InformationRequestActivityLog$inboundSchema: z.ZodType; export declare function informationRequestActivityLogFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=informationrequestactivitylog.d.ts.map