@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
28 lines • 1.68 kB
TypeScript
import type { FilesystemDB } from '../../filesystem-db.js';
import type { StoragePromptBlockType, StorageCreatePromptBlockInput, StorageUpdatePromptBlockInput, StorageListPromptBlocksInput, StorageListPromptBlocksOutput } from '../../types.js';
import type { PromptBlockVersion, CreatePromptBlockVersionInput, ListPromptBlockVersionsInput, ListPromptBlockVersionsOutput } from './base.js';
import { PromptBlocksStorage } from './base.js';
export declare class FilesystemPromptBlocksStorage extends PromptBlocksStorage {
private helpers;
constructor({ db }: {
db: FilesystemDB;
});
init(): Promise<void>;
dangerouslyClearAll(): Promise<void>;
getById(id: string): Promise<StoragePromptBlockType | null>;
create(input: {
promptBlock: StorageCreatePromptBlockInput;
}): Promise<StoragePromptBlockType>;
update(input: StorageUpdatePromptBlockInput): Promise<StoragePromptBlockType>;
delete(id: string): Promise<void>;
list(args?: StorageListPromptBlocksInput): Promise<StorageListPromptBlocksOutput>;
createVersion(input: CreatePromptBlockVersionInput): Promise<PromptBlockVersion>;
getVersion(id: string): Promise<PromptBlockVersion | null>;
getVersionByNumber(blockId: string, versionNumber: number): Promise<PromptBlockVersion | null>;
getLatestVersion(blockId: string): Promise<PromptBlockVersion | null>;
listVersions(input: ListPromptBlockVersionsInput): Promise<ListPromptBlockVersionsOutput>;
deleteVersion(id: string): Promise<void>;
deleteVersionsByParentId(entityId: string): Promise<void>;
countVersions(blockId: string): Promise<number>;
}
//# sourceMappingURL=filesystem.d.ts.map