/** * Canonical JSON schemas for AI Universe MCP API contracts * * These schemas define the authoritative API contract for MCP operations. * All implementations (backend, frontend, tests) must validate against these schemas. */ import agentSecondOpinionSchema from './agent.second-opinion.schema.json' with { type: 'json' }; import conversationDeleteSchema from './conversation.delete.schema.json' with { type: 'json' }; import conversationGetHistorySchema from './conversation.get-history.schema.json' with { type: 'json' }; import conversationHealthSchema from './conversation.health.schema.json' with { type: 'json' }; import conversationListSchema from './conversation.list.schema.json' with { type: 'json' }; import conversationSendMessageSchema from './conversation.send-message.schema.json' with { type: 'json' }; /** * Canonical JSON schemas as parsed objects */ export const schemas = { agentSecondOpinion: agentSecondOpinionSchema, conversationDelete: conversationDeleteSchema, conversationGetHistory: conversationGetHistorySchema, conversationHealth: conversationHealthSchema, conversationList: conversationListSchema, conversationSendMessage: conversationSendMessageSchema } as const; // Note: schemaPaths removed - not compatible with ES modules and unused in codebase // The schemas export above provides the actual schema objects for validation // Re-export individual schemas for direct imports export { agentSecondOpinionSchema }; export { conversationDeleteSchema }; export { conversationGetHistorySchema }; export { conversationHealthSchema }; export { conversationListSchema }; export { conversationSendMessageSchema };