/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 3975dfbad717 */ 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"; /** * UI configurations for each item of the list */ export type DisplayableListItemUIConfig = { /** * show a "New" pill next to the item */ showNewIndicator?: boolean | undefined; }; /** @internal */ export const DisplayableListItemUIConfig$inboundSchema: z.ZodType< DisplayableListItemUIConfig, z.ZodTypeDef, unknown > = z.object({ showNewIndicator: z.boolean().optional(), }); export function displayableListItemUIConfigFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DisplayableListItemUIConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DisplayableListItemUIConfig' from JSON`, ); }