UNPKG

@mastra/core

Version:
23 lines 1.4 kB
import type { StorageDeleteToolProviderConnectionInput, StorageListToolProviderConnectionsInput, StorageToolProviderConnection, StorageToolProviderConnectionKey, StorageUpsertToolProviderConnectionInput } from '../../types.js'; import type { InMemoryDB } from '../inmemory-db.js'; import { ToolProviderConnectionsStorage } from './base.js'; /** * In-memory implementation of ToolProviderConnectionsStorage. Backed by the * shared InMemoryDB Map so tests can clear and inspect rows alongside other * domains. * * Atomicity is provided by the JavaScript single-threaded event loop. */ export declare class InMemoryToolProviderConnectionsStorage extends ToolProviderConnectionsStorage { private db; constructor({ db }: { db: InMemoryDB; }); init(): Promise<void>; dangerouslyClearAll(): Promise<void>; getConnectionById({ authorId, providerId, connectionId, }: StorageToolProviderConnectionKey): Promise<StorageToolProviderConnection | null>; upsertConnection(input: StorageUpsertToolProviderConnectionInput): Promise<StorageToolProviderConnection>; listConnectionsByAuthor({ authorId, providerId, toolkit, scope, }: StorageListToolProviderConnectionsInput): Promise<StorageToolProviderConnection[]>; deleteConnection({ authorId, providerId, connectionId, }: StorageDeleteToolProviderConnectionInput): Promise<void>; } //# sourceMappingURL=inmemory.d.ts.map