Interface: ThreadStore
Interface: ThreadStore
Methods
addMessage()
addMessage(
threadId: string,
userId: string,
message: Message): Promise<void>;Parameters
| Parameter | Type |
|---|---|
threadId | string |
userId | string |
message | Message |
Returns
Promise<void>
create()
create(userId: string): Promise<Thread>;Parameters
| Parameter | Type |
|---|---|
userId | string |
Returns
Promise<Thread>
delete()
delete(threadId: string, userId: string): Promise<boolean>;Parameters
| Parameter | Type |
|---|---|
threadId | string |
userId | string |
Returns
Promise<boolean>
get()
get(threadId: string, userId: string): Promise<Thread | null>;Parameters
| Parameter | Type |
|---|---|
threadId | string |
userId | string |
Returns
Promise<Thread | null>
list()
list(userId: string): Promise<Thread[]>;Parameters
| Parameter | Type |
|---|---|
userId | string |
Returns
Promise<Thread[]>