botbuilder-core
Version:
Core components for Microsoft Bot Builder. Components in this library can run either in a browser or on the server.
54 lines • 2.21 kB
TypeScript
/**
* @module botbuilder
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { Activity } from 'botframework-schema';
import { PagedResult, TranscriptInfo, TranscriptStore } from './transcriptLogger';
/**
* The memory transcript store stores transcripts in volatile memory in a Map.
*
* @remarks
* Because this uses an unbounded volatile dictionary this should only be used for unit tests or
* non-production environments.
*/
export declare class MemoryTranscriptStore implements TranscriptStore {
private static readonly pageSize;
private channels;
/**
* Log an activity to the transcript.
*
* @param activity Activity to log.
* @returns {Promise<void>} A promise representing the async operation.
*/
logActivity(activity: Activity): void | Promise<void>;
/**
* Get activities from the memory transcript store.
*
* @param channelId Channel Id.
* @param conversationId Conversation Id.
* @param continuationToken Continuation token to page through results.
* @param startDate Earliest time to include.
* @returns {Promise<PagedResult<Activity>>} A page of matching activities.
*/
getTranscriptActivities(channelId: string, conversationId: string, continuationToken?: string, startDate?: Date): Promise<PagedResult<Activity>>;
/**
* List conversations in the channelId.
*
* @param channelId Channel Id.
* @param continuationToken Continuation token to page through results.
* @returns {Promise<PagedResult<TranscriptInfo>>} A page of conversations for a channel from the store.
*/
listTranscripts(channelId: string, continuationToken?: string): Promise<PagedResult<TranscriptInfo>>;
/**
* Delete a specific conversation and all of it's activities.
*
* @param channelId Channel Id where conversation took place.
* @param conversationId Id of the conversation to delete.
* @returns {Promise<void>} A promise representing the async operation.
*/
deleteTranscript(channelId: string, conversationId: string): Promise<void>;
}
//# sourceMappingURL=memoryTranscriptStore.d.ts.map