Skip to content
Français

FileWorkspaceRecoveryAuthorization

import type { FileWorkspaceRecoveryAuthorization } from "@elie-laloum/outpost/workspaces";
  • expectedRevisionRequired
    string
    Revision obtained by inspection; recovery refuses a changed persisted record.
  • processesStoppedRequired
    true
    Explicit assertion that the prior owner and its processes have stopped; never inferred from heartbeat expiry.
  • allocationReleasedOptional
    true | undefined
    Explicit evidence that an uncertain allocation has been released when the provider cannot recover it.
  • adoptInterruptedFilesOptional
    boolean | undefined
    Explicitly adopt retained files from an interrupted attempt after stopping its processes.
  • adoptMountedSourceOptional
    boolean | undefined
    Explicitly adopt a changed mounted source after inspection; never converts the mount into a copy.
export interface FileWorkspaceRecoveryAuthorization {
  readonly expectedRevision: string;
  readonly processesStopped: true;
  readonly allocationReleased?: true;
  readonly adoptInterruptedFiles?: boolean;
  readonly adoptMountedSource?: boolean;
}