/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: d366f270daa3 */ 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 UpdateDlpConfigResponse = { result?: DlpSimpleResult | undefined; /** * The id of the report that was just created and run. */ reportId?: string | undefined; }; /** @internal */ export const UpdateDlpConfigResponse$inboundSchema: z.ZodType< UpdateDlpConfigResponse, z.ZodTypeDef, unknown > = z.object({ result: DlpSimpleResult$inboundSchema.optional(), reportId: z.string().optional(), }); export function updateDlpConfigResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => UpdateDlpConfigResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDlpConfigResponse' from JSON`, ); }