/** * Copyright 2025 The Artinet Project * SPDX-License-Identifier: Apache-2.0 */ import { z } from 'zod/v4'; /** * @description Defines base properties common to all message or artifact parts. */ export declare const PartBaseSchema: z.ZodObject<{ metadata: z.ZodOptional>; }, z.core.$strip>; export type PartBase = z.output; /** * @description Defines base properties for a file. */ export declare const FileBaseSchema: z.ZodObject<{ name: z.ZodOptional; mimeType: z.ZodOptional; }, z.core.$strip>; export type FileBase = z.output; /** * @description Represents a file with its content provided directly as a base64-encoded string. */ export declare const FileWithBytesSchema: z.ZodObject<{ name: z.ZodOptional; mimeType: z.ZodOptional; bytes: z.ZodString; uri: z.ZodOptional; }, z.core.$strip>; export type FileWithBytes = z.output; /** * @description Represents a file with its content located at a specific URI. */ export declare const FileWithUriSchema: z.ZodObject<{ name: z.ZodOptional; mimeType: z.ZodOptional; uri: z.ZodString; bytes: z.ZodOptional; }, z.core.$strip>; export type FileWithUri = z.output; /** * @description Represents a file with its content provided directly as a base64-encoded string or located at a specific URI. */ export declare const FileSchema: z.ZodUnion; mimeType: z.ZodOptional; bytes: z.ZodString; uri: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ name: z.ZodOptional; mimeType: z.ZodOptional; uri: z.ZodString; bytes: z.ZodOptional; }, z.core.$strip>]>; export type File = z.output; /** * @description Represents a file segment within a message or artifact. The file content can be * provided either directly as bytes or as a URI. */ export declare const FilePartSchema: z.ZodObject<{ metadata: z.ZodOptional>; kind: z.ZodLiteral<"file">; file: z.ZodUnion; mimeType: z.ZodOptional; bytes: z.ZodString; uri: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ name: z.ZodOptional; mimeType: z.ZodOptional; uri: z.ZodString; bytes: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>; export type FilePart = z.output; /** * @description Represents a text segment within a message or artifact. */ export declare const TextPartSchema: z.ZodObject<{ metadata: z.ZodOptional>; kind: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>; export type TextPart = z.output; /** * @description Represents a structured data segment (e.g., JSON) within a message or artifact. */ export declare const DataPartSchema: z.ZodObject<{ metadata: z.ZodOptional>; kind: z.ZodLiteral<"data">; data: z.ZodRecord; }, z.core.$strip>; export type DataPart = z.output; /** * @description A discriminated union representing a part of a message or artifact, which can * be text, a file, or structured data. */ export declare const PartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ metadata: z.ZodOptional>; kind: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ metadata: z.ZodOptional>; kind: z.ZodLiteral<"file">; file: z.ZodUnion; mimeType: z.ZodOptional; bytes: z.ZodString; uri: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ name: z.ZodOptional; mimeType: z.ZodOptional; uri: z.ZodString; bytes: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>, z.ZodObject<{ metadata: z.ZodOptional>; kind: z.ZodLiteral<"data">; data: z.ZodRecord; }, z.core.$strip>]>; export type Part = z.output; /** * @description Represents a file, data structure, or other resource generated by an agent during a task. */ export declare const ArtifactSchema: z.ZodObject<{ artifactId: z.ZodString; name: z.ZodOptional; description: z.ZodOptional; parts: z.ZodArray>; kind: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ metadata: z.ZodOptional>; kind: z.ZodLiteral<"file">; file: z.ZodUnion; mimeType: z.ZodOptional; bytes: z.ZodString; uri: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ name: z.ZodOptional; mimeType: z.ZodOptional; uri: z.ZodString; bytes: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>, z.ZodObject<{ metadata: z.ZodOptional>; kind: z.ZodLiteral<"data">; data: z.ZodRecord; }, z.core.$strip>]>>; metadata: z.ZodOptional>; extension: z.ZodOptional>; }, z.core.$strip>; export type Artifact = z.output; export declare const isArtifact: (input: unknown) => input is Artifact; /** * @description Represents a single message in the conversation between a user and an agent. */ export declare const MessageSchema: z.ZodObject<{ role: z.ZodEnum<{ user: "user"; agent: "agent"; }>; parts: z.ZodArray>; kind: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ metadata: z.ZodOptional>; kind: z.ZodLiteral<"file">; file: z.ZodUnion; mimeType: z.ZodOptional; bytes: z.ZodString; uri: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ name: z.ZodOptional; mimeType: z.ZodOptional; uri: z.ZodString; bytes: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>, z.ZodObject<{ metadata: z.ZodOptional>; kind: z.ZodLiteral<"data">; data: z.ZodRecord; }, z.core.$strip>]>>; metadata: z.ZodOptional>; extensions: z.ZodOptional>; referenceTaskIds: z.ZodOptional>; messageId: z.ZodString; taskId: z.ZodOptional; contextId: z.ZodOptional; kind: z.ZodLiteral<"message">; }, z.core.$strip>; export type Message = z.output; export declare const isMessage: (input: unknown) => input is Message; //# sourceMappingURL=parameters.d.ts.map