import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export declare const ChatMessageContentType: { readonly ImageUrl: "image_url"; }; export type ChatMessageContentType = ClosedEnum; export type ChatMessageContentImageUrl = { /** * base64 encoded string for image formatted as MIME_TYPE,\ * * @remarks * eg. data:image/jpeg;base64,\ */ url?: string | undefined; }; /** * A message containing image */ export type ChatMessageContent2 = { type?: ChatMessageContentType | undefined; imageUrl?: ChatMessageContentImageUrl | undefined; }; export declare const ChatMessageContent1Type: { readonly Text: "text"; }; export type ChatMessageContent1Type = ClosedEnum; /** * A message containing text */ export type One = { type?: ChatMessageContent1Type | undefined; /** * The content of the message. */ text?: string | undefined; }; /** * The content of the message. Can either be text or image_url. * * @remarks */ export type ChatMessageContent = One | ChatMessageContent2; /** @internal */ export declare const ChatMessageContentType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ChatMessageContentType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ChatMessageContentType$ { /** @deprecated use `ChatMessageContentType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly ImageUrl: "image_url"; }>; /** @deprecated use `ChatMessageContentType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly ImageUrl: "image_url"; }>; } /** @internal */ export declare const ChatMessageContentImageUrl$inboundSchema: z.ZodType; /** @internal */ export type ChatMessageContentImageUrl$Outbound = { url?: string | undefined; }; /** @internal */ export declare const ChatMessageContentImageUrl$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ChatMessageContentImageUrl$ { /** @deprecated use `ChatMessageContentImageUrl$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ChatMessageContentImageUrl$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ChatMessageContentImageUrl$Outbound` instead. */ type Outbound = ChatMessageContentImageUrl$Outbound; } export declare function chatMessageContentImageUrlToJSON(chatMessageContentImageUrl: ChatMessageContentImageUrl): string; export declare function chatMessageContentImageUrlFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ChatMessageContent2$inboundSchema: z.ZodType; /** @internal */ export type ChatMessageContent2$Outbound = { type?: string | undefined; image_url?: ChatMessageContentImageUrl$Outbound | undefined; }; /** @internal */ export declare const ChatMessageContent2$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ChatMessageContent2$ { /** @deprecated use `ChatMessageContent2$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ChatMessageContent2$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ChatMessageContent2$Outbound` instead. */ type Outbound = ChatMessageContent2$Outbound; } export declare function chatMessageContent2ToJSON(chatMessageContent2: ChatMessageContent2): string; export declare function chatMessageContent2FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ChatMessageContent1Type$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ChatMessageContent1Type$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ChatMessageContent1Type$ { /** @deprecated use `ChatMessageContent1Type$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Text: "text"; }>; /** @deprecated use `ChatMessageContent1Type$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Text: "text"; }>; } /** @internal */ export declare const One$inboundSchema: z.ZodType; /** @internal */ export type One$Outbound = { type?: string | undefined; text?: string | undefined; }; /** @internal */ export declare const One$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace One$ { /** @deprecated use `One$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `One$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `One$Outbound` instead. */ type Outbound = One$Outbound; } export declare function oneToJSON(one: One): string; export declare function oneFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ChatMessageContent$inboundSchema: z.ZodType; /** @internal */ export type ChatMessageContent$Outbound = One$Outbound | ChatMessageContent2$Outbound; /** @internal */ export declare const ChatMessageContent$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ChatMessageContent$ { /** @deprecated use `ChatMessageContent$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ChatMessageContent$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ChatMessageContent$Outbound` instead. */ type Outbound = ChatMessageContent$Outbound; } export declare function chatMessageContentToJSON(chatMessageContent: ChatMessageContent): string; export declare function chatMessageContentFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=chatmessagecontent.d.ts.map