import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EmploymentStatus } from "./employmentstatus.js"; import { LeaveStatus } from "./leavestatus.js"; import { PersonInfoSource } from "./personinfosource.js"; import { TasksSummaryStatus } from "./taskssummarystatus.js"; import { TaskSummaryDetails } from "./tasksummarydetails.js"; export type Employment = { /** * The employment status of a person: * * @remarks * - UPCOMING: The person is not yet employed and will start employment in the future. * - CURRENT: The person is currently employed. * - ON_LEAVE: The person is on leave. * - INACTIVE: The person's employment is inactive. * - FORMER: The person was previously employed. */ status: EmploymentStatus; /** * The date the person's employment started. */ startDate: Date; /** * The person's job title. */ jobTitle: string | null; /** * If present, the date the person's employment ended. */ endDate: Date | null; }; /** * If present, the user's active/upcoming leave. Empty if the user has no active/upcoming leave. */ export type LeaveInfo = { /** * The start of the person's leave. */ startDate: Date; /** * The end of the person's leave. Null endDate implies indefinite leave. */ endDate: Date | null; /** * User can be active or upcoming leave period */ status: LeaveStatus; }; export type Name = { /** * The person's first (given) name. */ first: string | null; /** * The person's last (family) name. */ last: string | null; /** * The person's display name, used in Vanta. */ display: string; }; export type PersonEmployment = { /** * The source of the person's information. */ endDate: PersonInfoSource; /** * The source of the person's information. */ startDate: PersonInfoSource; }; /** * The sources of the person's information. */ export type Sources = { employment: PersonEmployment; /** * The source of the person's information. */ emailAddress: PersonInfoSource; }; /** * The person's tasks summary, which aggregates their current status across * * @remarks * all of their relevant tasks. */ export type TasksSummary = { /** * All detailed information about a person's tasks, split across task categories. */ details: TaskSummaryDetails; /** * The overall status of a person's outstanding tasks: * * @remarks * - NONE: There are no tasks. * - DUE_SOON: At least one task is due soon. * - OVERDUE: At least one task is overdue. Has a higher priority than DUE_SOON. * - COMPLETE: All tasks are complete. * - PAUSED: All tasks are paused. * - OFFBOARDING_DUE_SOON: At least one offboarding task is due soon. * - OFFBOARDING_OVERDUE: At least one offboarding task is overdue. Has a higher priority than OFFBOARDING_DUE_SOON. * - OFFBOARDING_COMPLETE: All offboarding tasks are complete. */ status: TasksSummaryStatus; /** * The due date of the person's earliest-due task. */ dueDate: Date | null; /** * The date when person's tasks were completed. */ completionDate: Date | null; }; export type Person = { id: string; /** * The ID of the Vanta user account associated with this person, if one exists. */ userId: string | null; emailAddress: string; employment: Employment; /** * If present, the user's active/upcoming leave. Empty if the user has no active/upcoming leave. */ leaveInfo: LeaveInfo | null; /** * The id of each group the user belongs to. This includes both manually created groups in Vanta and groups imported from an identity provider. */ groupIds: Array; name: Name; /** * The sources of the person's information. */ sources: Sources; /** * The person's tasks summary, which aggregates their current status across * * @remarks * all of their relevant tasks. */ tasksSummary: TasksSummary; }; /** @internal */ export declare const Employment$inboundSchema: z.ZodType; export declare function employmentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const LeaveInfo$inboundSchema: z.ZodType; export declare function leaveInfoFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Name$inboundSchema: z.ZodType; export declare function nameFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PersonEmployment$inboundSchema: z.ZodType; export declare function personEmploymentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Sources$inboundSchema: z.ZodType; export declare function sourcesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const TasksSummary$inboundSchema: z.ZodType; export declare function tasksSummaryFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Person$inboundSchema: z.ZodType; export declare function personFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=person.d.ts.map