package dev.photosync.core.provider;

/** What the backend did with an {@link UploadRequest}. */
public record UploadReceipt(String assetId, Outcome outcome) {

    public enum Outcome {
        /** A new asset was stored. */
        CREATED,
        /**
         * The backend already had a byte-identical asset and kept the original.
         * This is a success, not an error: it is exactly what we want to happen
         * when a retry follows an upload whose response we never saw.
         */
        DUPLICATE
    }
}
