@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
31 lines • 1.7 kB
TypeScript
import type { StorageMCPClientType, StorageCreateMCPClientInput, StorageUpdateMCPClientInput, StorageListMCPClientsInput, StorageListMCPClientsOutput } from '../../types.js';
import type { InMemoryDB } from '../inmemory-db.js';
import type { MCPClientVersion, CreateMCPClientVersionInput, ListMCPClientVersionsInput, ListMCPClientVersionsOutput } from './base.js';
import { MCPClientsStorage } from './base.js';
export declare class InMemoryMCPClientsStorage extends MCPClientsStorage {
private db;
constructor({ db }: {
db: InMemoryDB;
});
dangerouslyClearAll(): Promise<void>;
getById(id: string): Promise<StorageMCPClientType | null>;
create(input: {
mcpClient: StorageCreateMCPClientInput;
}): Promise<StorageMCPClientType>;
update(input: StorageUpdateMCPClientInput): Promise<StorageMCPClientType>;
delete(id: string): Promise<void>;
list(args?: StorageListMCPClientsInput): Promise<StorageListMCPClientsOutput>;
createVersion(input: CreateMCPClientVersionInput): Promise<MCPClientVersion>;
getVersion(id: string): Promise<MCPClientVersion | null>;
getVersionByNumber(mcpClientId: string, versionNumber: number): Promise<MCPClientVersion | null>;
getLatestVersion(mcpClientId: string): Promise<MCPClientVersion | null>;
listVersions(input: ListMCPClientVersionsInput): Promise<ListMCPClientVersionsOutput>;
deleteVersion(id: string): Promise<void>;
deleteVersionsByParentId(entityId: string): Promise<void>;
countVersions(mcpClientId: string): Promise<number>;
private deepCopyConfig;
private deepCopyVersion;
private sortConfigs;
private sortVersions;
}
//# sourceMappingURL=inmemory.d.ts.map