/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: a2008519aab5 */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { DlpReport, DlpReport$inboundSchema } from "./dlpreport.js"; export type ListDlpReportsResponse = { reports?: Array | undefined; }; /** @internal */ export const ListDlpReportsResponse$inboundSchema: z.ZodType< ListDlpReportsResponse, z.ZodTypeDef, unknown > = z.object({ reports: z.array(DlpReport$inboundSchema).optional(), }); export function listDlpReportsResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ListDlpReportsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDlpReportsResponse' from JSON`, ); }