Add portable project transfer API

This commit is contained in:
2026-07-28 18:34:57 +02:00
parent 5fa2a701dc
commit da8115fe1d
10 changed files with 552 additions and 1 deletions
@@ -0,0 +1,15 @@
import type { ProjectStateRestoreCommand } from "../models/project-state-restore-command.model.js";
import type { ProjectTransferEnvelope } from "../models/project-transfer.model.js";
export interface PreparedProjectTransferReplace {
command: ProjectStateRestoreCommand;
}
export interface ProjectTransferStore {
exportProject(projectId: string): ProjectTransferEnvelope | null;
prepareReplace(
projectId: string,
transfer: unknown
): PreparedProjectTransferReplace | null;
importDuplicate(transfer: unknown): { projectId: string; name: string };
}