/* * 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 ListPersonnelAccountAccessRequest = { /** * The audit ID */ auditId: string; /** * The service ID from the /services endpoint */ serviceId: 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 account name or email */ search?: string | undefined; /** * Filter by account status */ status?: components.AccountAccessStatus | undefined; }; /** @internal */ export type ListPersonnelAccountAccessRequest$Outbound = { auditId: string; serviceId: string; pageSize: number; pageCursor?: string | undefined; search?: string | undefined; status?: string | undefined; }; /** @internal */ export const ListPersonnelAccountAccessRequest$outboundSchema: z.ZodType< ListPersonnelAccountAccessRequest$Outbound, z.ZodTypeDef, ListPersonnelAccountAccessRequest > = z.object({ auditId: z.string(), serviceId: z.string(), pageSize: z.number().int().default(10), pageCursor: z.string().optional(), search: z.string().optional(), status: components.AccountAccessStatus$outboundSchema.optional(), }); export function listPersonnelAccountAccessRequestToJSON( listPersonnelAccountAccessRequest: ListPersonnelAccountAccessRequest, ): string { return JSON.stringify( ListPersonnelAccountAccessRequest$outboundSchema.parse( listPersonnelAccountAccessRequest, ), ); }