/* * 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 ExpectedDnsRecordDto = { type: string; name: string; content: string; ttl: string; priority?: number | undefined; }; /** @internal */ export const ExpectedDnsRecordDto$inboundSchema: z.ZodType< ExpectedDnsRecordDto, z.ZodTypeDef, unknown > = z.object({ type: z.string(), name: z.string(), content: z.string(), ttl: z.string(), priority: z.number().optional(), }); export function expectedDnsRecordDtoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ExpectedDnsRecordDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExpectedDnsRecordDto' from JSON`, ); }