'use strict';

var z = require('zod');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var z__default = /*#__PURE__*/_interopDefault(z);

// src/server/schemas/a2a.ts
var a2aAgentIdPathParams = z__default.default.object({
  agentId: z__default.default.string().describe("Unique identifier for the agent")
});
var a2aTaskPathParams = a2aAgentIdPathParams.extend({
  taskId: z__default.default.string().describe("Unique identifier for the task")
});
var pushNotificationAuthenticationInfoSchema = z__default.default.object({
  schemes: z__default.default.array(z__default.default.string()).describe("Supported authentication schemes - e.g. Basic, Bearer"),
  credentials: z__default.default.string().optional().describe("Optional credentials")
});
var pushNotificationConfigSchema = z__default.default.object({
  url: z__default.default.string().describe("URL for sending the push notifications"),
  id: z__default.default.string().optional().describe("Push Notification ID - created by server to support multiple callbacks"),
  token: z__default.default.string().optional().describe("Token unique to this task/session"),
  authentication: pushNotificationAuthenticationInfoSchema.optional()
});
var messageSendConfigurationSchema = z__default.default.object({
  acceptedOutputModes: z__default.default.array(z__default.default.string()).describe("Accepted output modalities by the client"),
  blocking: z__default.default.boolean().optional().describe("If the server should treat the client as a blocking request"),
  historyLength: z__default.default.number().optional().describe("Number of recent messages to be retrieved"),
  pushNotificationConfig: pushNotificationConfigSchema.optional()
});
var textPartSchema = z__default.default.object({
  kind: z__default.default.literal("text").describe("Part type - text for TextParts"),
  text: z__default.default.string().describe("Text content"),
  metadata: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional().describe("Optional metadata associated with the part")
});
var fileWithBytesSchema = z__default.default.object({
  bytes: z__default.default.string().describe("base64 encoded content of the file"),
  mimeType: z__default.default.string().optional().describe("Optional mimeType for the file"),
  name: z__default.default.string().optional().describe("Optional name for the file")
});
var fileWithUriSchema = z__default.default.object({
  uri: z__default.default.string().describe("URL for the File content"),
  mimeType: z__default.default.string().optional().describe("Optional mimeType for the file"),
  name: z__default.default.string().optional().describe("Optional name for the file")
});
var filePartSchema = z__default.default.object({
  kind: z__default.default.literal("file").describe("Part type - file for FileParts"),
  file: z__default.default.union([fileWithBytesSchema, fileWithUriSchema]).describe("File content either as url or bytes"),
  metadata: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional().describe("Optional metadata associated with the part")
});
var dataPartSchema = z__default.default.object({
  kind: z__default.default.literal("data").describe("Part type - data for DataParts"),
  data: z__default.default.record(z__default.default.string(), z__default.default.unknown()).describe("Structured data content"),
  metadata: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional().describe("Optional metadata associated with the part")
});
var partSchema = z__default.default.union([textPartSchema, filePartSchema, dataPartSchema]);
var messageSchema = z__default.default.object({
  kind: z__default.default.literal("message").describe("Event type"),
  messageId: z__default.default.string().describe("Identifier created by the message creator"),
  role: z__default.default.enum(["user", "agent"]).describe("Message sender's role"),
  parts: z__default.default.array(partSchema).describe("Message content"),
  contextId: z__default.default.string().optional().describe("The context the message is associated with"),
  taskId: z__default.default.string().optional().describe("Identifier of task the message is related to"),
  referenceTaskIds: z__default.default.array(z__default.default.string()).optional().describe("List of tasks referenced as context by this message"),
  extensions: z__default.default.array(z__default.default.string()).optional().describe("The URIs of extensions that are present or contributed to this Message"),
  metadata: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional().describe("Extension metadata")
});
var messageSendParamsSchema = z__default.default.object({
  message: messageSchema,
  configuration: messageSendConfigurationSchema.optional(),
  metadata: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional().describe("Extension metadata")
});
var taskQueryParamsSchema = z__default.default.object({
  id: z__default.default.string().describe("Task id"),
  historyLength: z__default.default.number().optional().describe("Number of recent messages to be retrieved"),
  metadata: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional()
});
var taskIdParamsSchema = z__default.default.object({
  id: z__default.default.string().describe("Task id"),
  metadata: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional()
});
var messageSendBodySchema = z__default.default.object({
  message: messageSchema,
  metadata: z__default.default.record(z__default.default.string(), z__default.default.any()).optional()
});
var taskQueryBodySchema = z__default.default.object({
  id: z__default.default.string()
});
var agentExecutionParamsSchema = z__default.default.union([messageSendParamsSchema, taskQueryParamsSchema, taskIdParamsSchema]);
var agentExecutionBodySchema = z__default.default.object({
  jsonrpc: z__default.default.literal("2.0"),
  id: z__default.default.union([z__default.default.string(), z__default.default.number()]),
  method: z__default.default.enum(["message/send", "message/stream", "tasks/get", "tasks/cancel"]),
  params: agentExecutionParamsSchema
});
var agentCardResponseSchema = z__default.default.object({
  name: z__default.default.string(),
  description: z__default.default.string(),
  url: z__default.default.string(),
  provider: z__default.default.object({
    organization: z__default.default.string(),
    url: z__default.default.string()
  }).optional(),
  version: z__default.default.string(),
  capabilities: z__default.default.object({
    streaming: z__default.default.boolean().optional(),
    pushNotifications: z__default.default.boolean().optional(),
    stateTransitionHistory: z__default.default.boolean().optional()
  }),
  defaultInputModes: z__default.default.array(z__default.default.string()),
  defaultOutputModes: z__default.default.array(z__default.default.string()),
  skills: z__default.default.array(
    z__default.default.object({
      id: z__default.default.string(),
      name: z__default.default.string(),
      description: z__default.default.string(),
      tags: z__default.default.array(z__default.default.string()).optional()
    })
  )
});
var taskResponseSchema = z__default.default.unknown();
var agentExecutionResponseSchema = z__default.default.unknown();

exports.a2aAgentIdPathParams = a2aAgentIdPathParams;
exports.a2aTaskPathParams = a2aTaskPathParams;
exports.agentCardResponseSchema = agentCardResponseSchema;
exports.agentExecutionBodySchema = agentExecutionBodySchema;
exports.agentExecutionResponseSchema = agentExecutionResponseSchema;
exports.messageSendBodySchema = messageSendBodySchema;
exports.taskQueryBodySchema = taskQueryBodySchema;
exports.taskResponseSchema = taskResponseSchema;
//# sourceMappingURL=chunk-KXXILK3T.cjs.map
//# sourceMappingURL=chunk-KXXILK3T.cjs.map