/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: a120c9293bf0 */ 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 { DlpSimpleResult, DlpSimpleResult$inboundSchema, } from "./dlpsimpleresult.js"; export type UpdateDlpReportResponse = { result?: DlpSimpleResult | undefined; }; /** @internal */ export const UpdateDlpReportResponse$inboundSchema: z.ZodType< UpdateDlpReportResponse, z.ZodTypeDef, unknown > = z.object({ result: DlpSimpleResult$inboundSchema.optional(), }); export function updateDlpReportResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => UpdateDlpReportResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDlpReportResponse' from JSON`, ); }