@hivetechs/hive-ai
Version:
Real-time streaming AI consensus platform with HTTP+SSE MCP integration for Claude Code, VS Code, Cursor, and Windsurf - powered by OpenRouter's unified API
37 lines • 1.27 kB
TypeScript
/**
* Hive.AI Database - Library Export
*
* Unified database functionality for npm package consumers
*/
export { initializeUnifiedDatabase as initializeDatabase, getDatabase, setConfig, getConfig, createUser, getUser, saveOpenRouterApiKey, getOpenRouterApiKey, validateOpenRouterApiKey, saveLicenseKeyToDB, getLicenseKeyFromDB, getUserTier, getTierLimits, checkDailyUsageLimit, recordCompletedConversation, createConsensusProfile, getAllConsensusProfiles, getActiveConsensusProfile, setActiveConsensusProfile, createConversation, addMessage, getConversationHistory, closeUnifiedDatabase } from '../storage/unified-database.js';
export interface UsageCheck {
allowed: boolean;
used: number;
limit: number;
tier: string;
}
export interface User {
id: string;
email?: string;
license_key?: string;
tier: string;
created_at: string;
last_active: string;
}
export interface Conversation {
id: string;
user_id?: string;
consensus_profile_id?: string;
created_at: string;
last_updated: string;
}
export interface Message {
id: string;
conversation_id: string;
role: string;
content: string;
stage?: string;
model_used?: string;
created_at: string;
}
//# sourceMappingURL=database.d.ts.map