Add structured chat delivery records

This commit is contained in:
ZacharyZhang-NY committed 2026-05-23 21:04:59 -04:00
1 parent a27658b56f
commit 18e0c6338e
10 files changed
+133 -8

No files matched your search

+1
View File
@@ -129,6 +129,7 @@ export interface CreateChatSpaceInput {
name: string;
topic: string;
visibility: "workspace" | "restricted";
retentionPolicy?: "standard_365d" | "restricted_365d";
memberEmployeeIds?: string[];
memberAgentIds?: string[];
}
+11
View File
@@ -182,11 +182,21 @@ export interface ChatMessageRecord {
senderType: "employee" | "agent" | "board" | "system";
senderId: string | null;
bodyMd: string;
bodyStructuredJson: string;
deliveryState: string;
createdAt: string;
editedAt: string | null;
deletedAt: string | null;
}
export interface ChatMembershipRecord {
spaceId: string;
principalType: "employee" | "agent";
principalId: string;
role: string;
muteState: string;
}
export interface ChatThreadRecord {
id: string;
orgId: string;
@@ -439,6 +449,7 @@ export interface AppSnapshot {
taskRuns: TaskRunRecord[];
approvals: ApprovalRecord[];
chatSpaces: ChatSpaceRecord[];
chatMemberships: ChatMembershipRecord[];
chatMessages: ChatMessageRecord[];
chatThreads: ChatThreadRecord[];
chatAttachments: ChatAttachmentRecord[];