UNPKG

semnet-snap-protocol

Version:

TypeScript reference implementation of the SNAP Protocol v1.1 - Agent Internet Edition

1,342 lines 423 kB
import { z } from 'zod'; export declare const UserIDSchema: z.ZodObject<{ id: z.ZodString; publicKey: z.ZodString; name: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, "strip", z.ZodTypeAny, { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; }, { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; }>; export type UserID = z.infer<typeof UserIDSchema>; export declare const AgentIDSchema: z.ZodObject<{ id: z.ZodString; publicKey: z.ZodOptional<z.ZodString>; registry: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; publicKey?: string | undefined; registry?: string | undefined; }, { id: string; publicKey?: string | undefined; registry?: string | undefined; }>; export type AgentID = z.infer<typeof AgentIDSchema>; export declare const TextPartSchema: z.ZodObject<{ type: z.ZodLiteral<"text">; content: z.ZodString; encoding: z.ZodOptional<z.ZodEnum<["utf-8", "base64"]>>; metadata: z.ZodOptional<z.ZodObject<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "text"; content: string; metadata?: z.objectOutputType<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; encoding?: "utf-8" | "base64" | undefined; }, { type: "text"; content: string; metadata?: z.objectInputType<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; encoding?: "utf-8" | "base64" | undefined; }>; export type TextPart = z.infer<typeof TextPartSchema>; export declare const DataPartSchema: z.ZodObject<{ type: z.ZodLiteral<"data">; content: z.ZodRecord<z.ZodString, z.ZodAny>; schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; metadata: z.ZodOptional<z.ZodObject<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "data"; content: Record<string, any>; metadata?: z.objectOutputType<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; schema?: Record<string, any> | undefined; }, { type: "data"; content: Record<string, any>; metadata?: z.objectInputType<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; schema?: Record<string, any> | undefined; }>; export type DataPart = z.infer<typeof DataPartSchema>; export declare const FilePartSchema: z.ZodObject<{ type: z.ZodLiteral<"file">; content: z.ZodEffects<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; bytes: z.ZodOptional<z.ZodString>; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodNumber>; hash: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }, { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }>, { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }, { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }>; metadata: z.ZodOptional<z.ZodObject<{ description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "file"; content: { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }; metadata?: z.objectOutputType<{ description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }, { type: "file"; content: { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }; metadata?: z.objectInputType<{ description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }>; export type FilePart = z.infer<typeof FilePartSchema>; export declare const ImagePartSchema: z.ZodObject<{ type: z.ZodLiteral<"image">; content: z.ZodEffects<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; bytes: z.ZodOptional<z.ZodString>; mimeType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; alt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }, { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }>, { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }, { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }>; metadata: z.ZodOptional<z.ZodObject<{ caption: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ caption: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ caption: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "image"; content: { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }; metadata?: z.objectOutputType<{ caption: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }, { type: "image"; content: { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }; metadata?: z.objectInputType<{ caption: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }>; export type ImagePart = z.infer<typeof ImagePartSchema>; export declare const AudioPartSchema: z.ZodObject<{ type: z.ZodLiteral<"audio">; content: z.ZodEffects<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; bytes: z.ZodOptional<z.ZodString>; mimeType: z.ZodEnum<["audio/mpeg", "audio/wav", "audio/ogg", "audio/webm"]>; duration: z.ZodOptional<z.ZodNumber>; sampleRate: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }, { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }>, { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }, { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }>; metadata: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "audio"; content: { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }; metadata?: z.objectOutputType<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }, { type: "audio"; content: { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }; metadata?: z.objectInputType<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }>; export type AudioPart = z.infer<typeof AudioPartSchema>; export declare const VideoPartSchema: z.ZodObject<{ type: z.ZodLiteral<"video">; content: z.ZodEffects<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; bytes: z.ZodOptional<z.ZodString>; mimeType: z.ZodEnum<["video/mp4", "video/webm", "video/quicktime"]>; duration: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; frameRate: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }, { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }>, { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }, { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }>; metadata: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "video"; content: { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }; metadata?: z.objectOutputType<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }, { type: "video"; content: { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }; metadata?: z.objectInputType<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }>; export type VideoPart = z.infer<typeof VideoPartSchema>; export declare const PartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"text">; content: z.ZodString; encoding: z.ZodOptional<z.ZodEnum<["utf-8", "base64"]>>; metadata: z.ZodOptional<z.ZodObject<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "text"; content: string; metadata?: z.objectOutputType<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; encoding?: "utf-8" | "base64" | undefined; }, { type: "text"; content: string; metadata?: z.objectInputType<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; encoding?: "utf-8" | "base64" | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"data">; content: z.ZodRecord<z.ZodString, z.ZodAny>; schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; metadata: z.ZodOptional<z.ZodObject<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "data"; content: Record<string, any>; metadata?: z.objectOutputType<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; schema?: Record<string, any> | undefined; }, { type: "data"; content: Record<string, any>; metadata?: z.objectInputType<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; schema?: Record<string, any> | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; content: z.ZodEffects<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; bytes: z.ZodOptional<z.ZodString>; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodNumber>; hash: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }, { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }>, { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }, { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }>; metadata: z.ZodOptional<z.ZodObject<{ description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "file"; content: { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }; metadata?: z.objectOutputType<{ description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }, { type: "file"; content: { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }; metadata?: z.objectInputType<{ description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; content: z.ZodEffects<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; bytes: z.ZodOptional<z.ZodString>; mimeType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; alt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }, { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }>, { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }, { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }>; metadata: z.ZodOptional<z.ZodObject<{ caption: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ caption: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ caption: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "image"; content: { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }; metadata?: z.objectOutputType<{ caption: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }, { type: "image"; content: { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }; metadata?: z.objectInputType<{ caption: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; content: z.ZodEffects<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; bytes: z.ZodOptional<z.ZodString>; mimeType: z.ZodEnum<["audio/mpeg", "audio/wav", "audio/ogg", "audio/webm"]>; duration: z.ZodOptional<z.ZodNumber>; sampleRate: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }, { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }>, { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }, { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }>; metadata: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "audio"; content: { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }; metadata?: z.objectOutputType<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }, { type: "audio"; content: { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }; metadata?: z.objectInputType<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; content: z.ZodEffects<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; bytes: z.ZodOptional<z.ZodString>; mimeType: z.ZodEnum<["video/mp4", "video/webm", "video/quicktime"]>; duration: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; frameRate: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }, { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }>, { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }, { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }>; metadata: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "video"; content: { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }; metadata?: z.objectOutputType<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }, { type: "video"; content: { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }; metadata?: z.objectInputType<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }>]>; export type Part = z.infer<typeof PartSchema>; export declare const PaymentSchema: z.ZodObject<{ amount: z.ZodNumber; currency: z.ZodLiteral<"SEMNET">; from: z.ZodUnion<[z.ZodObject<{ id: z.ZodString; publicKey: z.ZodOptional<z.ZodString>; registry: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; publicKey?: string | undefined; registry?: string | undefined; }, { id: string; publicKey?: string | undefined; registry?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; publicKey: z.ZodString; name: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, "strip", z.ZodTypeAny, { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; }, { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; }>]>; to: z.ZodUnion<[z.ZodObject<{ id: z.ZodString; publicKey: z.ZodOptional<z.ZodString>; registry: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; publicKey?: string | undefined; registry?: string | undefined; }, { id: string; publicKey?: string | undefined; registry?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; publicKey: z.ZodString; name: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, "strip", z.ZodTypeAny, { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; }, { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; }>]>; reference: z.ZodOptional<z.ZodString>; memo: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["pending", "authorized", "executed", "failed"]>>; }, "strip", z.ZodTypeAny, { amount: number; currency: "SEMNET"; from: { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; } | { id: string; publicKey?: string | undefined; registry?: string | undefined; }; to: { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; } | { id: string; publicKey?: string | undefined; registry?: string | undefined; }; status?: "pending" | "authorized" | "executed" | "failed" | undefined; reference?: string | undefined; memo?: string | undefined; }, { amount: number; currency: "SEMNET"; from: { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; } | { id: string; publicKey?: string | undefined; registry?: string | undefined; }; to: { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; } | { id: string; publicKey?: string | undefined; registry?: string | undefined; }; status?: "pending" | "authorized" | "executed" | "failed" | undefined; reference?: string | undefined; memo?: string | undefined; }>; export type Payment = z.infer<typeof PaymentSchema>; export declare const SNAPMessageSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodDefault<z.ZodEnum<["1.0", "1.1"]>>; from: z.ZodUnion<[z.ZodObject<{ id: z.ZodString; publicKey: z.ZodOptional<z.ZodString>; registry: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; publicKey?: string | undefined; registry?: string | undefined; }, { id: string; publicKey?: string | undefined; registry?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; publicKey: z.ZodString; name: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, "strip", z.ZodTypeAny, { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; }, { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; }>]>; to: z.ZodOptional<z.ZodUnion<[z.ZodObject<{ id: z.ZodString; publicKey: z.ZodOptional<z.ZodString>; registry: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; publicKey?: string | undefined; registry?: string | undefined; }, { id: string; publicKey?: string | undefined; registry?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; publicKey: z.ZodString; name: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, "strip", z.ZodTypeAny, { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; }, { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; }>]>>; timestamp: z.ZodString; parts: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"text">; content: z.ZodString; encoding: z.ZodOptional<z.ZodEnum<["utf-8", "base64"]>>; metadata: z.ZodOptional<z.ZodObject<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "text"; content: string; metadata?: z.objectOutputType<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; encoding?: "utf-8" | "base64" | undefined; }, { type: "text"; content: string; metadata?: z.objectInputType<{ format: z.ZodOptional<z.ZodEnum<["plain", "markdown", "html"]>>; language: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; encoding?: "utf-8" | "base64" | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"data">; content: z.ZodRecord<z.ZodString, z.ZodAny>; schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; metadata: z.ZodOptional<z.ZodObject<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "data"; content: Record<string, any>; metadata?: z.objectOutputType<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; schema?: Record<string, any> | undefined; }, { type: "data"; content: Record<string, any>; metadata?: z.objectInputType<{ format: z.ZodOptional<z.ZodEnum<["json", "xml", "yaml"]>>; encoding: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; schema?: Record<string, any> | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"file">; content: z.ZodEffects<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; bytes: z.ZodOptional<z.ZodString>; name: z.ZodString; mimeType: z.ZodString; size: z.ZodOptional<z.ZodNumber>; hash: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }, { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }>, { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }, { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }>; metadata: z.ZodOptional<z.ZodObject<{ description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "file"; content: { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }; metadata?: z.objectOutputType<{ description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }, { type: "file"; content: { name: string; mimeType: string; uri?: string | undefined; bytes?: string | undefined; size?: number | undefined; hash?: string | undefined; }; metadata?: z.objectInputType<{ description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; content: z.ZodEffects<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; bytes: z.ZodOptional<z.ZodString>; mimeType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; alt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }, { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }>, { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }, { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }>; metadata: z.ZodOptional<z.ZodObject<{ caption: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ caption: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ caption: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "image"; content: { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }; metadata?: z.objectOutputType<{ caption: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }, { type: "image"; content: { mimeType: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; alt?: string | undefined; }; metadata?: z.objectInputType<{ caption: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"audio">; content: z.ZodEffects<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; bytes: z.ZodOptional<z.ZodString>; mimeType: z.ZodEnum<["audio/mpeg", "audio/wav", "audio/ogg", "audio/webm"]>; duration: z.ZodOptional<z.ZodNumber>; sampleRate: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }, { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }>, { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }, { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }>; metadata: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "audio"; content: { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }; metadata?: z.objectOutputType<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }, { type: "audio"; content: { mimeType: "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/webm"; uri?: string | undefined; bytes?: string | undefined; duration?: number | undefined; sampleRate?: number | undefined; }; metadata?: z.objectInputType<{ title: z.ZodOptional<z.ZodString>; artist: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"video">; content: z.ZodEffects<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; bytes: z.ZodOptional<z.ZodString>; mimeType: z.ZodEnum<["video/mp4", "video/webm", "video/quicktime"]>; duration: z.ZodOptional<z.ZodNumber>; width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; frameRate: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }, { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }>, { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }, { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }>; metadata: z.ZodOptional<z.ZodObject<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodAny, z.objectOutputType<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">, z.objectInputType<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip">>>; }, "strip", z.ZodTypeAny, { type: "video"; content: { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }; metadata?: z.objectOutputType<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }, { type: "video"; content: { mimeType: "video/mp4" | "video/webm" | "video/quicktime"; uri?: string | undefined; bytes?: string | undefined; width?: number | undefined; height?: number | undefined; duration?: number | undefined; frameRate?: number | undefined; }; metadata?: z.objectInputType<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, z.ZodAny, "strip"> | undefined; }>]>, "many">; context: z.ZodOptional<z.ZodString>; payment: z.ZodOptional<z.ZodObject<{ amount: z.ZodNumber; currency: z.ZodLiteral<"SEMNET">; from: z.ZodUnion<[z.ZodObject<{ id: z.ZodString; publicKey: z.ZodOptional<z.ZodString>; registry: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; publicKey?: string | undefined; registry?: string | undefined; }, { id: string; publicKey?: string | undefined; registry?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; publicKey: z.ZodString; name: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, "strip", z.ZodTypeAny, { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; }, { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; }>]>; to: z.ZodUnion<[z.ZodObject<{ id: z.ZodString; publicKey: z.ZodOptional<z.ZodString>; registry: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; publicKey?: string | undefined; registry?: string | undefined; }, { id: string; publicKey?: string | undefined; registry?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; publicKey: z.ZodString; name: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; }, "strip", z.ZodTypeAny, { id: string; publicKey: string; name?: string | undefined; metadata?: Record<string, any> | undefined; }, { id: string; publicKey: string;