/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import * as types from "../types/primitives.js"; import { SDKValidationError } from "./errors/sdk-validation-error.js"; export type HealthResponse = { status?: string | undefined; timestamp?: string | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export const HealthResponse$inboundSchema: z.ZodMiniType< HealthResponse, unknown > = z.catchall( z.object({ status: types.optional(types.string()), timestamp: types.optional(types.string()), }), z.any(), ); export function healthResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => HealthResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HealthResponse' from JSON`, ); }