/* * 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 ListPeopleInAuditScopeRequest = { auditId: string; pageSize?: number | undefined; pageCursor?: string | undefined; /** * Filter individuals by those whose tasksSummary status is any of the provided values. */ tasksSummaryStatusMatchesAny?: | Array | undefined; /** * Requires taskStatusMatchesAny. Includes all people for whom any of the provided taskType values in taskTypeMatchesAny * * @remarks * is any of the provided taskStatus values in taskStatusMatchesAny. */ taskTypeMatchesAny?: Array | undefined; /** * Requires taskTypeMatchesAny. Includes all people for whom any of the provided taskType values in taskTypeMatchesAny * * @remarks * is any of the provided taskStatus values in taskStatusMatchesAny. */ taskStatusMatchesAny?: Array | undefined; }; /** @internal */ export type ListPeopleInAuditScopeRequest$Outbound = { auditId: string; pageSize: number; pageCursor?: string | undefined; tasksSummaryStatusMatchesAny?: Array | undefined; taskTypeMatchesAny?: Array | undefined; taskStatusMatchesAny?: Array | undefined; }; /** @internal */ export const ListPeopleInAuditScopeRequest$outboundSchema: z.ZodType< ListPeopleInAuditScopeRequest$Outbound, z.ZodTypeDef, ListPeopleInAuditScopeRequest > = z.object({ auditId: z.string(), pageSize: z.number().int().default(10), pageCursor: z.string().optional(), tasksSummaryStatusMatchesAny: z.array( components.TasksSummaryStatus$outboundSchema, ).optional(), taskTypeMatchesAny: z.array(components.TaskType$outboundSchema).optional(), taskStatusMatchesAny: z.array(components.TaskStatus$outboundSchema) .optional(), }); export function listPeopleInAuditScopeRequestToJSON( listPeopleInAuditScopeRequest: ListPeopleInAuditScopeRequest, ): string { return JSON.stringify( ListPeopleInAuditScopeRequest$outboundSchema.parse( listPeopleInAuditScopeRequest, ), ); }