/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 1513a8cc35ec */ import * as z from "zod/v4"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetSearchIndexSchemaSDFileResponseSDFile = { content: string | null; }; /** @internal */ export const GetSearchIndexSchemaSDFileResponseSDFile$inboundSchema: z.ZodType< GetSearchIndexSchemaSDFileResponseSDFile, unknown > = z.object({ content: z.nullable(z.string()), }); export function getSearchIndexSchemaSDFileResponseSDFileFromJSON( jsonString: string, ): SafeParseResult< GetSearchIndexSchemaSDFileResponseSDFile, SDKValidationError > { return safeParse( jsonString, (x) => GetSearchIndexSchemaSDFileResponseSDFile$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'GetSearchIndexSchemaSDFileResponseSDFile' from JSON`, ); }