/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ 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"; export type EvidenceControl = { /** * Name of control associated to this evidence */ name: string; /** * A list sections associated to the control */ sectionNames: Array; }; /** @internal */ export const EvidenceControl$inboundSchema: z.ZodType< EvidenceControl, z.ZodTypeDef, unknown > = z.object({ name: z.string(), sectionNames: z.array(z.string()), }); export function evidenceControlFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => EvidenceControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EvidenceControl' from JSON`, ); }