import {z} from 'zod'
export type Html = {value: string};
export type Markdown = {value: string};
export type Text = {value: string};
export type Content = Html | Markdown | Text;
export type File = {url: string, prettyName?: string | undefined};
export type InboundImport = {content: Content, attachments?: Array | undefined, externalId?: string | undefined, createdAt: string, attributes: unknown};
export type OutboundImport = {content: Content, agentId: string, attachments?: Array | undefined, externalId?: string | undefined, createdAt: string, attributes: unknown};
export type ImportMessageInput = InboundImport | OutboundImport;
export type Assignment = {agentId: string, assignedAt: string};
export type Closing = {closedAt: string, closedBy: string};
export type GenericConversationImport = {genericChannelName: string, requesterId: string, requesterConnectionStatus?: string | undefined, direction: string, messages?: Array | undefined, createdAt: string, assignment?: Assignment | undefined, externalId?: string | undefined, closing?: Closing | undefined, attributes: unknown};
export type CreateApiBetaConversationsImportArgs = {body: GenericConversationImport};
export type CreateApiBetaConversationsImportOptions = {baseUrl?: string | undefined, ApiKeyAuth?: string | undefined, fetch?: typeof fetch | undefined};
export const partialError = z.object({message: z.string()});
export const importConversationResponse = z.object({id: z.number().int(), partialErrors: z.array(partialError).optional()});
export const importConversationOutput = z.object({data: importConversationResponse});
export const validateResponse = async