Interface for FirestoreDBChatMessageHistory. It includes the collection name, session ID, user ID, and optionally, the app index and configuration for the Firebase app.

interface FirestoreDBChatMessageHistory {
    appIdx?: number;
    collectionName?: string;
    collections?: string[];
    config?: AppOptions;
    docs?: string[];
    sessionId: string;
    userId: string;
}

Properties

appIdx?: number
collectionName?: string

Will be removed in 0.2 use collections field instead.

collections?: string[]

An array of collection names, should match the length of docs field.

make required variable in 0.2

config?: AppOptions
docs?: string[]

An array of doc names, should match the length of collections field, or undefined if the collections field has a length of 1. In this case, it will default to use sessionId as the doc name.

make required variable in 0.2

sessionId: string
userId: string