ultimate-mcp-server
Version:
The definitive all-in-one Model Context Protocol server for AI-assisted coding across 30+ platforms
57 lines • 3.33 kB
TypeScript
/**
* In-Memory Content Storage
* Simple implementation for development and testing
*/
import { BaseContentStorage } from './base.js';
import { ContentEntry, ContentAsset, ContentType, ContentSpace, ContentEnvironment, ContentComment, ContentSearchOptions, ContentHistory, ContentManagerStats, ContentPagination } from '../types.js';
export declare class MemoryContentStorage extends BaseContentStorage {
protected name: string;
private spaces;
private environments;
private contentTypes;
private entries;
private assets;
private comments;
private history;
createSpace(space: Omit<ContentSpace, 'id' | 'createdAt' | 'updatedAt'>): Promise<ContentSpace>;
getSpace(spaceId: string): Promise<ContentSpace | null>;
updateSpace(spaceId: string, updates: Partial<ContentSpace>): Promise<ContentSpace>;
deleteSpace(spaceId: string): Promise<void>;
listSpaces(): Promise<ContentSpace[]>;
createEnvironment(spaceId: string, environment: Omit<ContentEnvironment, 'id' | 'spaceId' | 'createdAt' | 'updatedAt'>): Promise<ContentEnvironment>;
getEnvironment(environmentId: string): Promise<ContentEnvironment | null>;
listEnvironments(spaceId: string): Promise<ContentEnvironment[]>;
deleteEnvironment(environmentId: string): Promise<void>;
createContentType(spaceId: string, contentType: Omit<ContentType, 'id'>): Promise<ContentType>;
getContentType(typeId: string): Promise<ContentType | null>;
updateContentType(typeId: string, updates: Partial<ContentType>): Promise<ContentType>;
deleteContentType(typeId: string): Promise<void>;
listContentTypes(spaceId: string): Promise<ContentType[]>;
createEntry(spaceId: string, entry: Omit<ContentEntry, 'id' | 'createdAt' | 'updatedAt' | 'version'>): Promise<ContentEntry>;
getEntry(entryId: string): Promise<ContentEntry | null>;
updateEntry(entryId: string, updates: Partial<ContentEntry>): Promise<ContentEntry>;
deleteEntry(entryId: string): Promise<void>;
searchEntries(options: ContentSearchOptions): Promise<{
entries: ContentEntry[];
pagination: ContentPagination;
}>;
createAsset(spaceId: string, asset: Omit<ContentAsset, 'id' | 'createdAt' | 'updatedAt' | 'version'>): Promise<ContentAsset>;
getAsset(assetId: string): Promise<ContentAsset | null>;
updateAsset(assetId: string, updates: Partial<ContentAsset>): Promise<ContentAsset>;
deleteAsset(assetId: string): Promise<void>;
searchAssets(options: ContentSearchOptions): Promise<{
assets: ContentAsset[];
pagination: ContentPagination;
}>;
createComment(comment: Omit<ContentComment, 'id' | 'createdAt' | 'updatedAt'>): Promise<ContentComment>;
getComment(commentId: string): Promise<ContentComment | null>;
updateComment(commentId: string, updates: Partial<ContentComment>): Promise<ContentComment>;
deleteComment(commentId: string): Promise<void>;
getEntryComments(entryId: string): Promise<ContentComment[]>;
getCommentThread(commentId: string): Promise<ContentComment[]>;
getEntryHistory(entryId: string): Promise<ContentHistory>;
restoreVersion(entryId: string, version: number): Promise<ContentEntry>;
getStats(spaceId?: string): Promise<ContentManagerStats>;
private addToHistory;
}
//# sourceMappingURL=memory.d.ts.map