Expose chat command metadata in snapshots

This commit is contained in:
ZacharyZhang-NY committed 2026-05-23 15:39:54 -04:00
1 parent 0b19a152e6
commit d89bbf708e
13 files changed
+113 -24

No files matched your search

+19
View File
@@ -216,6 +216,23 @@ export interface ChatAttachmentRecord {
previewKey: string | null;
}
export interface ChatMentionRecord {
messageId: string;
targetType: "employee" | "agent" | "board" | "org_group";
targetId: string;
offsetStart: number;
offsetEnd: number;
}
export interface ChatSlashInvocationRecord {
id: string;
messageId: string;
command: string;
argsJson: string;
resultRef: string | null;
createdAt: string;
}
export interface ChatPresenceRecord {
principalType: string;
principalId: string;
@@ -426,6 +443,8 @@ export interface AppSnapshot {
chatMessages: ChatMessageRecord[];
chatThreads: ChatThreadRecord[];
chatAttachments: ChatAttachmentRecord[];
chatMentions: ChatMentionRecord[];
chatSlashInvocations: ChatSlashInvocationRecord[];
chatPresence: ChatPresenceRecord[];
chatReadStates: ChatReadStateRecord[];
files: FileObjectRecord[];