/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type ListAuditCommentsRequest = { auditId: string; pageSize?: number | undefined; pageCursor?: string | undefined; /** * Includes all comments that have changed since changedSinceDate. */ changedSinceDate?: Date | undefined; }; /** @internal */ export type ListAuditCommentsRequest$Outbound = { auditId: string; pageSize: number; pageCursor?: string | undefined; changedSinceDate?: string | undefined; }; /** @internal */ export const ListAuditCommentsRequest$outboundSchema: z.ZodType< ListAuditCommentsRequest$Outbound, z.ZodTypeDef, ListAuditCommentsRequest > = z.object({ auditId: z.string(), pageSize: z.number().int().default(10), pageCursor: z.string().optional(), changedSinceDate: z.date().transform(v => v.toISOString()).optional(), }); export function listAuditCommentsRequestToJSON( listAuditCommentsRequest: ListAuditCommentsRequest, ): string { return JSON.stringify( ListAuditCommentsRequest$outboundSchema.parse(listAuditCommentsRequest), ); }