/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { smartUnion } from "../types/smart-union.js"; import { Attachment, Attachment$Outbound, Attachment$outboundSchema, } from "./attachment.js"; export type AttachmentInput = Attachment | string; /** @internal */ export type AttachmentInput$Outbound = Attachment$Outbound | string; /** @internal */ export const AttachmentInput$outboundSchema: z.ZodMiniType< AttachmentInput$Outbound, AttachmentInput > = smartUnion([Attachment$outboundSchema, z.string()]); export function attachmentInputToJSON( attachmentInput: AttachmentInput, ): string { return JSON.stringify(AttachmentInput$outboundSchema.parse(attachmentInput)); }