/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 52658a96001a */ 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 { IconConfig, IconConfig$inboundSchema } from "./iconconfig.js"; export type ResultsDescription = { /** * Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about this topic' for experts in people tab. */ text?: string | undefined; /** * Defines how to render an icon */ iconConfig?: IconConfig | undefined; }; /** @internal */ export const ResultsDescription$inboundSchema: z.ZodType< ResultsDescription, z.ZodTypeDef, unknown > = z.object({ text: z.string().optional(), iconConfig: IconConfig$inboundSchema.optional(), }); export function resultsDescriptionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ResultsDescription$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultsDescription' from JSON`, ); }