export const COMPLIANCE_EXPORT_TYPE = { GDPR_EXPORT: "gdpr_export", GDPR_DELETE: "gdpr_delete", } as const; export const COMPLIANCE_EXPORT_STATE = { COMPLETED: "completed", } as const; type ValueOf = T[keyof T]; export type ComplianceExportType = ValueOf; export type ComplianceExportState = ValueOf; export type ComplianceSubjectType = "employee" | "agent"; export type LegalHoldEntityType = "organization" | "employee" | "agent" | "chat_thread" | "file_object"; export type RetentionFreezeScopeType = "organization" | "chat_space" | "file_object"; export interface ComplianceExportRecord { id: string; orgId: string; subjectType: ComplianceSubjectType; subjectId: string; exportType: ComplianceExportType; state: ComplianceExportState; payloadJson: string; requestedByEmployeeId: string | null; createdAt: string; completedAt: string | null; } export interface LegalHoldRecord { id: string; orgId: string; entityType: LegalHoldEntityType; entityId: string; reason: string; createdByEmployeeId: string | null; active: boolean; createdAt: string; releasedAt: string | null; } export interface RetentionFreezeRecord { id: string; orgId: string; scopeType: RetentionFreezeScopeType; scopeId: string; reason: string; createdByEmployeeId: string | null; active: boolean; createdAt: string; releasedAt: string | null; }