/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type ListAuditControlsRequest = { auditId: string; pageSize?: number | undefined; pageCursor?: string | undefined; /** * Filter controls whose externalId matches any of the provided values (exact, case-sensitive match). */ externalIdMatchesAny?: Array | undefined; /** * Return only controls whose `inScopeSegmentIds` include at least one of * * @remarks * these segment IDs from the audit's `segments[].id` (exact, * case-sensitive). IDs that aren't segments on this audit match nothing. * Repeat the parameter for several IDs, and send the same filters with * every `pageCursor`. */ segmentIdsMatchesAny?: Array | undefined; }; /** @internal */ export type ListAuditControlsRequest$Outbound = { auditId: string; pageSize: number; pageCursor?: string | undefined; externalIdMatchesAny?: Array | undefined; segmentIdsMatchesAny?: Array | undefined; }; /** @internal */ export const ListAuditControlsRequest$outboundSchema: z.ZodType< ListAuditControlsRequest$Outbound, z.ZodTypeDef, ListAuditControlsRequest > = z.object({ auditId: z.string(), pageSize: z.number().int().default(10), pageCursor: z.string().optional(), externalIdMatchesAny: z.array(z.string()).optional(), segmentIdsMatchesAny: z.array(z.string()).optional(), }); export function listAuditControlsRequestToJSON( listAuditControlsRequest: ListAuditControlsRequest, ): string { return JSON.stringify( ListAuditControlsRequest$outboundSchema.parse(listAuditControlsRequest), ); }