/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; export type ReportUpdate = { /** * The name of the report. */ name?: string | null | undefined; /** * A description of the report. */ description?: string | null | undefined; /** * Whether the report schedule is enabled. */ scheduleEnabled?: boolean | null | undefined; }; /** @internal */ export type ReportUpdate$Outbound = { name?: string | null | undefined; description?: string | null | undefined; schedule_enabled?: boolean | null | undefined; }; /** @internal */ export const ReportUpdate$outboundSchema: z.ZodType< ReportUpdate$Outbound, z.ZodTypeDef, ReportUpdate > = z.object({ name: z.nullable(z.string()).optional(), description: z.nullable(z.string()).optional(), scheduleEnabled: z.nullable(z.boolean()).optional(), }).transform((v) => { return remap$(v, { scheduleEnabled: "schedule_enabled", }); }); export function reportUpdateToJSON(reportUpdate: ReportUpdate): string { return JSON.stringify(ReportUpdate$outboundSchema.parse(reportUpdate)); }