'use strict';

var chunkZYXDUS6Q_cjs = require('./chunk-ZYXDUS6Q.cjs');
var zod = require('zod');

var mcpServerIdPathParams = zod.z.object({
  serverId: zod.z.string().describe("MCP server ID")
});
var mcpServerDetailPathParams = zod.z.object({
  id: zod.z.string().describe("MCP server ID")
});
var mcpServerToolPathParams = zod.z.object({
  serverId: zod.z.string().describe("MCP server ID"),
  toolId: zod.z.string().describe("Tool ID")
});
var executeToolBodySchema = zod.z.object({
  data: zod.z.unknown().optional()
});
var listMcpServersQuerySchema = chunkZYXDUS6Q_cjs.createCombinedPaginationSchema();
var getMcpServerDetailQuerySchema = zod.z.object({
  version: zod.z.string().optional()
});
var versionDetailSchema = zod.z.object({
  version: zod.z.string(),
  release_date: zod.z.string(),
  is_latest: zod.z.boolean()
});
var serverInfoSchema = zod.z.object({
  id: zod.z.string(),
  name: zod.z.string(),
  version_detail: versionDetailSchema
});
var listMcpServersResponseSchema = zod.z.object({
  servers: zod.z.array(serverInfoSchema),
  total_count: zod.z.number(),
  next: zod.z.string().nullable()
});
var serverDetailSchema = zod.z.object({
  id: zod.z.string(),
  name: zod.z.string(),
  description: zod.z.string().optional(),
  version_detail: versionDetailSchema,
  package_canonical: zod.z.string().optional(),
  packages: zod.z.array(zod.z.unknown()).optional(),
  remotes: zod.z.array(zod.z.unknown()).optional()
});
var mcpToolInfoSchema = zod.z.object({
  name: zod.z.string(),
  description: zod.z.string().optional(),
  inputSchema: zod.z.unknown(),
  outputSchema: zod.z.unknown().optional(),
  toolType: zod.z.string().optional()
});
var listMcpServerToolsResponseSchema = zod.z.object({
  tools: zod.z.array(mcpToolInfoSchema)
});
var executeToolResponseSchema = zod.z.object({
  result: zod.z.unknown()
});
var jsonRpcErrorSchema = zod.z.object({
  jsonrpc: zod.z.literal("2.0"),
  error: zod.z.object({
    code: zod.z.number(),
    message: zod.z.string()
  }),
  id: zod.z.null()
});

exports.executeToolBodySchema = executeToolBodySchema;
exports.executeToolResponseSchema = executeToolResponseSchema;
exports.getMcpServerDetailQuerySchema = getMcpServerDetailQuerySchema;
exports.jsonRpcErrorSchema = jsonRpcErrorSchema;
exports.listMcpServerToolsResponseSchema = listMcpServerToolsResponseSchema;
exports.listMcpServersQuerySchema = listMcpServersQuerySchema;
exports.listMcpServersResponseSchema = listMcpServersResponseSchema;
exports.mcpServerDetailPathParams = mcpServerDetailPathParams;
exports.mcpServerIdPathParams = mcpServerIdPathParams;
exports.mcpServerToolPathParams = mcpServerToolPathParams;
exports.mcpToolInfoSchema = mcpToolInfoSchema;
exports.serverDetailSchema = serverDetailSchema;
exports.serverInfoSchema = serverInfoSchema;
exports.versionDetailSchema = versionDetailSchema;
//# sourceMappingURL=chunk-QTBCX6KF.cjs.map
//# sourceMappingURL=chunk-QTBCX6KF.cjs.map