mcp-memory-ts
Version:
Cloud-based vector MCP memory service for Claude.ai - TypeScript implementation
38 lines • 1.2 kB
TypeScript
/**
* Model exports for the MCP Memory Service
*/
export * from './schemas.js';
import type { User, Entity, Memory, Interaction } from '../types/base.js';
/**
* Create a new user with default values
*/
export declare function createUser(data: Partial<User>): User;
/**
* Create a new entity with default values
*/
export declare function createEntity(data: Partial<Entity>): Omit<Entity, 'id'>;
/**
* Create a new memory with default values
*/
export declare function createMemory(data: Partial<Memory>): Omit<Memory, 'id'>;
/**
* Create a new interaction with default values
*/
export declare function createInteraction(data: Partial<Interaction>): Omit<Interaction, 'id'>;
/**
* Generate a hash for API keys
*/
export declare function hashApiKey(apiKey: string): Promise<string>;
/**
* Validate and sanitize tags
*/
export declare function sanitizeTags(tags?: string[]): string[];
/**
* Parse metadata safely
*/
export declare function parseMetadata(metadata?: string | Record<string, unknown>): Record<string, unknown>;
/**
* Stringify metadata safely
*/
export declare function stringifyMetadata(metadata?: Record<string, unknown>): string;
//# sourceMappingURL=index.d.ts.map