/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { lazySchema as lazySchema$, safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type LinkedFolder = { /** * A unique identifier for an object. */ id: string; /** * The name of the folder */ name?: string | null | undefined; }; /** @internal */ export const LinkedFolder$inboundSchema: z.ZodType< LinkedFolder, z.ZodTypeDef, unknown > = /* @__PURE__ */ lazySchema$(() => z.object({ id: types.string(), name: z.nullable(types.string()).optional(), }) ); export function linkedFolderFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => LinkedFolder$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LinkedFolder' from JSON`, ); }