/* * 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 TestDomainRouteWebhookResultDto = { /** * True when outbound webhooks are disabled for this environment (nothing was emitted). */ skipped?: boolean | undefined; latencyMs: number; }; /** @internal */ export const TestDomainRouteWebhookResultDto$inboundSchema: z.ZodType< TestDomainRouteWebhookResultDto, z.ZodTypeDef, unknown > = z.object({ skipped: z.boolean().optional(), latencyMs: z.number(), }); export function testDomainRouteWebhookResultDtoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TestDomainRouteWebhookResultDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TestDomainRouteWebhookResultDto' from JSON`, ); }