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 { PeopleSecurityTaskStatus } from "./peoplesecuritytaskstatus.js"; import { PeopleTaskStatus } from "./peopletaskstatus.js"; /** * Employment status, or null if not available. */ export declare const PersonnelPersonEmploymentStatus: { readonly CurrentlyEmployed: "CURRENTLY_EMPLOYED"; readonly InactiveEmployee: "INACTIVE_EMPLOYEE"; readonly NotPeople: "NOT_PEOPLE"; readonly OnLeave: "ON_LEAVE"; readonly PreviouslyEmployed: "PREVIOUSLY_EMPLOYED"; readonly UpcomingEmployee: "UPCOMING_EMPLOYEE"; }; /** * Employment status, or null if not available. */ export type PersonnelPersonEmploymentStatus = ClosedEnum; export type Groups = { name: string; }; /** * Source of user data, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ export type Source = { /** * Main source of user data. */ mainSource: string; /** * Supplementary source, or null if none. */ supplementarySource: string | null; }; /** * Overall task status information, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ export type PersonnelPersonTaskStatus = { /** * Overall user task status. */ status: PeopleTaskStatus; /** * Due date for the earliest incomplete task in ISO 8601 format, or null if none. */ dueDate: string | null; /** * Completion date when all tasks are complete in ISO 8601 format, or null if incomplete. */ completionDate: string | null; /** * Count of completed tasks, or null if not available. */ numTasksCompleted: number | null; /** * Count of overdue tasks, or null if not available. */ numTasksOverdue: number | null; /** * Count of tasks due soon, or null if not available. */ numTasksDueSoon: number | null; }; /** * Policy acceptance task details, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ export type Policies = { /** * Security task status for individual task categories. */ status: PeopleSecurityTaskStatus; /** * Due date for incomplete task in ISO 8601 format, or null if none. */ dueDate: string | null; /** * Completion date for completed task in ISO 8601 format, or null if incomplete. */ completionDate: string | null; }; /** * Security training task details, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ export type Trainings = { /** * Security task status for individual task categories. */ status: PeopleSecurityTaskStatus; /** * Due date for incomplete task in ISO 8601 format, or null if none. */ dueDate: string | null; /** * Completion date for completed task in ISO 8601 format, or null if incomplete. */ completionDate: string | null; }; /** * Background check task details, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ export type BackgroundChecks = { /** * Security task status for individual task categories. */ status: PeopleSecurityTaskStatus; /** * Due date for incomplete task in ISO 8601 format, or null if none. */ dueDate: string | null; /** * Completion date for completed task in ISO 8601 format, or null if incomplete. */ completionDate: string | null; }; /** * Device monitoring task details, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ export type DeviceMonitoring = { /** * Security task status for individual task categories. */ status: PeopleSecurityTaskStatus; /** * Due date for incomplete task in ISO 8601 format, or null if none. */ dueDate: string | null; /** * Completion date for completed task in ISO 8601 format, or null if incomplete. */ completionDate: string | null; }; /** * Custom onboarding task details, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ export type CustomOnboarding = { /** * Security task status for individual task categories. */ status: PeopleSecurityTaskStatus; /** * Due date for incomplete task in ISO 8601 format, or null if none. */ dueDate: string | null; /** * Completion date for completed task in ISO 8601 format, or null if incomplete. */ completionDate: string | null; }; /** * Custom offboarding task details, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ export type CustomOffboarding = { /** * Security task status for individual task categories. */ status: PeopleSecurityTaskStatus; /** * Due date for incomplete task in ISO 8601 format, or null if none. */ dueDate: string | null; /** * Completion date for completed task in ISO 8601 format, or null if incomplete. */ completionDate: string | null; }; /** * Personnel person data. * * @remarks * * `id`, `name`, and `email` are required. All other fields are optional to support customizable field visibility. * * Omitted keys mean the column is not in the response; `null` means the column is present but empty. */ export type PersonnelPerson = { /** * User ID - always present. */ id: string; /** * Display name of the person - always present. */ name: string; /** * Email address of the person - always present. */ email: string; /** * IDs of the audit segments this person is in scope for. * * @remarks * Omitted when segment scoping is disabled. */ segmentIds?: Array | undefined; /** * Job title from HR system, or null if not available. */ jobTitle?: string | null | undefined; /** * Employment status, or null if not available. */ employmentStatus?: PersonnelPersonEmploymentStatus | null | undefined; /** * Start date in ISO 8601 format (YYYY-MM-DD), or null if not available. * * @remarks * Timezone depends on source: UTC if from HR system, * customer timezone if manually entered. */ startDate?: string | null | undefined; /** * End date in ISO 8601 format (YYYY-MM-DD), or null if currently employed. */ endDate?: string | null | undefined; /** * Groups (roles) the person belongs to. Present only when the column is in the response; * * @remarks * use an empty array when there are no groups. */ groups?: Array | undefined; /** * Source of user data, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ source?: Source | null | undefined; /** * Overall task status information, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ taskStatus?: PersonnelPersonTaskStatus | null | undefined; /** * Last date user was sent an onboarding reminder email in ISO 8601 format, or null if never reminded. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ lastReminded?: string | null | undefined; /** * Policy acceptance task details, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ policies?: Policies | null | undefined; /** * Security training task details, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ trainings?: Trainings | null | undefined; /** * Background check task details, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ backgroundChecks?: BackgroundChecks | null | undefined; /** * Device monitoring task details, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ deviceMonitoring?: DeviceMonitoring | null | undefined; /** * Custom onboarding task details, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ customOnboarding?: CustomOnboarding | null | undefined; /** * Custom offboarding task details, or null if not available. * * @remarks * Full Audit View only - omitted in Controlled Audit View. */ customOffboarding?: CustomOffboarding | null | undefined; }; /** @internal */ export declare const PersonnelPersonEmploymentStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Groups$inboundSchema: z.ZodType; export declare function groupsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Source$inboundSchema: z.ZodType; export declare function sourceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PersonnelPersonTaskStatus$inboundSchema: z.ZodType; export declare function personnelPersonTaskStatusFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Policies$inboundSchema: z.ZodType; export declare function policiesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Trainings$inboundSchema: z.ZodType; export declare function trainingsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BackgroundChecks$inboundSchema: z.ZodType; export declare function backgroundChecksFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeviceMonitoring$inboundSchema: z.ZodType; export declare function deviceMonitoringFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CustomOnboarding$inboundSchema: z.ZodType; export declare function customOnboardingFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CustomOffboarding$inboundSchema: z.ZodType; export declare function customOffboardingFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PersonnelPerson$inboundSchema: z.ZodType; export declare function personnelPersonFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=personnelperson.d.ts.map