brows3r — TypeScript API
    Preparing search index...

    Type Alias CopyOutcome

    CopyOutcome:
        | { result: CopyResult; type: "serverSideCopy" }
        | { result: CopyResult; sourceSize: number; type: "fallbackUsed" }

    Discriminated result returned by objectCopy.

    type === "serverSideCopy" — the S3 server-side CopyObject API succeeded. type === "fallbackUsed" — cross-account detected; download+upload fallback was used.

    OCP: new variants (asyncTransferQueued, …) may be added without breaking existing call sites that switch on type.

    Mirrors src-tauri/src/s3/object.rs CopyOutcome.

    Type Declaration

    • { result: CopyResult; type: "serverSideCopy" }
    • { result: CopyResult; sourceSize: number; type: "fallbackUsed" }
      • result: CopyResult
      • sourceSize: number

        Byte size of the source object transferred via fallback.

      • type: "fallbackUsed"