Add file handoff audit records

This commit is contained in:
ZacharyZhang-NY committed 2026-05-23 21:45:49 -04:00
1 parent babbf07cb2
commit 4dbd8997c0
10 files changed
+298 -100

No files matched your search

+19
View File
@@ -287,6 +287,24 @@ export interface FileAccessGrantRecord {
createdAt: string;
}
export interface FileHandoffRecord {
id: string;
orgId: string;
messageId: string;
fileId: string;
sourcePrincipalType: "employee" | "agent" | "board" | "system";
sourcePrincipalId: string | null;
targetPrincipalType: "employee" | "agent" | "board" | "org_group";
targetPrincipalId: string;
transferType: string;
checksum: string;
scanState: FileScanState;
scanLabelsJson: string;
policyDecision: "approved_for_handoff" | "blocked_by_scan";
objectRef: string;
createdAt: string;
}
export interface ScheduledPostRecord {
id: string;
orgId: string;
@@ -432,6 +450,7 @@ export interface AppSnapshot {
chatReadStates: ChatReadStateRecord[];
files: FileObjectRecord[];
fileAccessGrants: FileAccessGrantRecord[];
fileHandoffRecords: FileHandoffRecord[];
scheduledPosts: ScheduledPostRecord[];
providers: ProviderRecord[];
providerAuthProfiles: ProviderAuthProfileRecord[];