/* * 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 ListPersonnelPeopleRequest = { /** * The audit ID */ auditId: string; /** * Maximum number of results per page (1-100, default 10) */ pageSize?: number | undefined; /** * Pagination cursor from previous response */ pageCursor?: string | undefined; /** * Search term for filtering by name or email */ search?: string | undefined; /** * Employment status filter */ status?: components.PeopleEmploymentStatus | undefined; /** * Filter people by group IDs */ groupsMatchesAny?: Array | undefined; /** * Field to sort results by. Allowed: "name", "employmentStatus". Default: "name" */ orderBy?: components.PeopleOrderBy | undefined; /** * Sort direction: "asc" or "desc". Default: "asc" */ orderDirection?: components.OrderDirection | undefined; }; /** @internal */ export type ListPersonnelPeopleRequest$Outbound = { auditId: string; pageSize: number; pageCursor?: string | undefined; search?: string | undefined; status?: string | undefined; groupsMatchesAny?: Array | undefined; orderBy?: string | undefined; orderDirection?: string | undefined; }; /** @internal */ export const ListPersonnelPeopleRequest$outboundSchema: z.ZodType< ListPersonnelPeopleRequest$Outbound, z.ZodTypeDef, ListPersonnelPeopleRequest > = z.object({ auditId: z.string(), pageSize: z.number().int().default(10), pageCursor: z.string().optional(), search: z.string().optional(), status: components.PeopleEmploymentStatus$outboundSchema.optional(), groupsMatchesAny: z.array(z.string()).optional(), orderBy: components.PeopleOrderBy$outboundSchema.optional(), orderDirection: components.OrderDirection$outboundSchema.optional(), }); export function listPersonnelPeopleRequestToJSON( listPersonnelPeopleRequest: ListPersonnelPeopleRequest, ): string { return JSON.stringify( ListPersonnelPeopleRequest$outboundSchema.parse(listPersonnelPeopleRequest), ); }