The legacy application - its src, tests, landing site, promo assets, docs, release tooling, CI workflows, and root configs - leaves the tree; it stays reachable in history. Everything under AgentCompany-New moves up unchanged: same package name, so the production userData/database path is untouched, and e2e/build scripts already resolved paths relative to the project. The developer cred.txt stays gitignored at its new location. Full verify:ci passes from the new root.
54 lines
1.4 KiB
TypeScript
54 lines
1.4 KiB
TypeScript
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> = T[keyof T];
|
|
|
|
export type ComplianceExportType = ValueOf<typeof COMPLIANCE_EXPORT_TYPE>;
|
|
export type ComplianceExportState = ValueOf<typeof COMPLIANCE_EXPORT_STATE>;
|
|
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;
|
|
}
|