/** * Copyright 2025 The Artinet Project * SPDX-License-Identifier: Apache-2.0 */ import { z } from "zod/v4"; /** * @description Error code for JSON Parse Error (-32700). Invalid JSON was received by the server. */ export declare const ErrorCodeParseError = -32700; export declare const JSONParseErrorSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32700>; message: z.ZodDefault; }, z.core.$strict>; export type JSONParseError = z.output; /** * @description Error code for Invalid Request (-32600). The JSON sent is not a valid Request object. */ export declare const ErrorCodeInvalidRequest = -32600; export declare const InvalidRequestErrorSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32600>; message: z.ZodDefault; }, z.core.$strict>; export type InvalidRequestError = z.output; /** * @description Error code for Method Not Found (-32601). The method does not exist / is not available. */ export declare const ErrorCodeMethodNotFound = -32601; export declare const MethodNotFoundErrorSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32601>; message: z.ZodDefault; }, z.core.$strict>; export type MethodNotFoundError = z.output; /** * @description Error code for Invalid Params (-32602). Invalid method parameter(s). */ export declare const ErrorCodeInvalidParams = -32602; export declare const InvalidParamsErrorSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32602>; message: z.ZodDefault; }, z.core.$strict>; export type InvalidParamsError = z.output; /** * @description Error code for Internal Error (-32603). Internal JSON-RPC error. */ export declare const ErrorCodeInternalError = -32603; export declare const InternalErrorSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32603>; message: z.ZodDefault; }, z.core.$strict>; export type InternalError = z.output; /** * @description Error code for Task Not Found (-32001). The specified task was not found. */ export declare const ErrorCodeTaskNotFound = -32001; export declare const TaskNotFoundErrorSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32001>; message: z.ZodDefault; }, z.core.$strict>; export type TaskNotFoundError = z.output; /** * @description Error code for Task Not Cancelable (-32002). The specified task cannot be canceled. */ export declare const ErrorCodeTaskNotCancelable = -32002; export declare const TaskNotCancelableErrorSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32002>; message: z.ZodDefault; }, z.core.$strict>; export type TaskNotCancelableError = z.output; /** * @description Error code for Push Notification Not Supported (-32003). Push Notifications are not supported for this operation or agent. */ export declare const ErrorCodePushNotificationNotSupported = -32003; export declare const PushNotificationNotSupportedErrorSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32003>; message: z.ZodDefault; }, z.core.$strict>; export type PushNotificationNotSupportedError = z.output; /** * @description Error code for Unsupported Operation (-32004). The requested operation is not supported by the agent. */ export declare const ErrorCodeUnsupportedOperation = -32004; export declare const UnsupportedOperationErrorSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32004>; message: z.ZodDefault; }, z.core.$strict>; export type UnsupportedOperationError = z.output; /** * @description Error code for Content Type Not Supported (-32005). The requested content type is not supported by the agent. */ export declare const ErrorCodeContentTypeNotSupported = -32005; export declare const ContentTypeNotSupportedErrorSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32005>; message: z.ZodDefault; }, z.core.$strict>; export type ContentTypeNotSupportedError = z.output; /** * @description Error code for Invalid Agent Response (-32006). The agent returned an invalid response for the current method. */ export declare const ErrorCodeInvalidAgentResponse = -32006; export declare const InvalidAgentResponseErrorSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32006>; message: z.ZodDefault; }, z.core.$strict>; export type InvalidAgentResponseError = z.output; /** * An A2A-specific error indicating that the agent does not have an Authenticated Extended Card configured */ export declare const ErrorCodeAuthenticatedExtendedCardNotConfigured = -32007; export declare const AuthenticatedExtendedCardNotConfiguredErrorSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32007>; message: z.ZodDefault; }, z.core.$strict>; export type AuthenticatedExtendedCardNotConfiguredError = z.output; /** * Union of all well-known A2A and standard JSON-RPC error codes defined in this schema. */ export declare const KnownErrorCodeSchema: z.ZodUnion, z.ZodLiteral<-32600>, z.ZodLiteral<-32601>, z.ZodLiteral<-32602>, z.ZodLiteral<-32603>, z.ZodLiteral<-32001>, z.ZodLiteral<-32002>, z.ZodLiteral<-32003>, z.ZodLiteral<-32004>, z.ZodLiteral<-32005>, z.ZodLiteral<-32006>, z.ZodLiteral<-32007>]>; export type KnownErrorCode = z.output; export declare const A2AErrorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32700>; message: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32600>; message: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32601>; message: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32602>; message: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32603>; message: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32001>; message: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32002>; message: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32003>; message: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32004>; message: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32005>; message: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32006>; message: z.ZodDefault; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional>; error: z.ZodObject<{ code: z.ZodNumber; message: z.ZodString; data: z.ZodOptional; }, z.core.$strip>; code: z.ZodLiteral<-32007>; message: z.ZodDefault; }, z.core.$strict>]>; export type A2AError = z.output; //# sourceMappingURL=error.d.ts.map