Skip to content
Français

WorkspaceRetention

import type { WorkspaceRetention } from "@elie-laloum/outpost/workspaces";

The fields below cover all variants; the signature specifies their allowed combinations.

  • policyRequired
    "run" | "local" | "portable"
    run cleans successful owned work, local retains it, portable additionally requires an explicit Transport and namespace.
  • transporterVariant-dependent
    Transport
    Caller-owned Transport used for conservation; no implicit cloud SDK or credential loading.
export type WorkspaceRetention =
  | {
      readonly policy: "run" | "local";
    }
  | {
      readonly policy: "portable";
      readonly transporter: Transport;
    };