MCPcopy Create free account
hub / github.com/async-labs/async / IChatDocument

Interface IChatDocument

api/server/models/Chat.ts:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21// mongoSchema.index({ teamId: 1, chatParticipantIds: 1 }, { unique: true });
22
23interface IChatDocument extends mongoose.Document {
24 teamId: string;
25 chatCreatorId: string;
26 chatParticipantIds: string[];
27 createdAt: Date;
28 lastUpdatedAt: Date;
29 initialMessages: any[];
30 numberOfMessagesPerChat: number;
31}
32
33interface IChatModel extends mongoose.Model<IChatDocument> {
34 getChatList({ userId, teamId }: { userId: string; teamId: string }): Promise<IChatDocument[]>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected