/* * 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"; import { ElasticSearchResultsNodeInfoClusterCombinedInfoFilesystem, ElasticSearchResultsNodeInfoClusterCombinedInfoFilesystem$inboundSchema, } from "./elasticsearchresultsnodeinfoclustercombinedinfofilesystem.js"; import { ElasticSearchResultsNodeInfoClusterCombinedInfoIndices, ElasticSearchResultsNodeInfoClusterCombinedInfoIndices$inboundSchema, } from "./elasticsearchresultsnodeinfoclustercombinedinfoindices.js"; export type ElasticSearchResultsNodeInfoClusterCombinedInfo = { filesystem?: | ElasticSearchResultsNodeInfoClusterCombinedInfoFilesystem | undefined; indices?: ElasticSearchResultsNodeInfoClusterCombinedInfoIndices | undefined; name?: string | undefined; status?: string | undefined; timestamp?: number | undefined; uuid?: string | undefined; }; /** @internal */ export const ElasticSearchResultsNodeInfoClusterCombinedInfo$inboundSchema: z.ZodType< ElasticSearchResultsNodeInfoClusterCombinedInfo, z.ZodTypeDef, unknown > = z.object({ filesystem: ElasticSearchResultsNodeInfoClusterCombinedInfoFilesystem$inboundSchema .optional(), indices: ElasticSearchResultsNodeInfoClusterCombinedInfoIndices$inboundSchema .optional(), name: z.string().optional(), status: z.string().optional(), timestamp: z.number().int().optional(), uuid: z.string().optional(), }); export function elasticSearchResultsNodeInfoClusterCombinedInfoFromJSON( jsonString: string, ): SafeParseResult< ElasticSearchResultsNodeInfoClusterCombinedInfo, SDKValidationError > { return safeParse( jsonString, (x) => ElasticSearchResultsNodeInfoClusterCombinedInfo$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'ElasticSearchResultsNodeInfoClusterCombinedInfo' from JSON`, ); }