UNPKG

node-nlp

Version:

Library for NLU (Natural Language Understanding) done in Node.js

46 lines (45 loc) 1.78 kB
/** * @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. */ 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. */ 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. */ 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. */ deleteTranscript(channelId: string, conversationId: string): Promise<void>; }