@openvireo/sdk - v0.2.0
    Preparing search index...

    Interface SyncOptions

    interface SyncOptions {
        acceptServerState?: boolean;
        beforeUpload?: (db: Kdbx) => void | Promise<void>;
        blob: BlobHandle;
        credentials: CredentialsFactory | CredentialsFactory[];
        db: Kdbx;
        localChanged?: boolean;
        maxAttempts?: number;
        merge?: MergeOptions;
        onProgress?: (
            step: "checking" | "downloading" | "merging" | "uploading",
        ) => void;
        signal?: AbortSignal;
        state?: SyncState | null;
    }
    Index
    acceptServerState?: boolean

    start over from what the server has (after the user confirmed a rollback/loss)

    beforeUpload?: (db: Kdbx) => void | Promise<void>

    runs on the copy about to be uploaded (rotation re-keys here); forces an upload

    opens the server copy and the base, tried in order (newest key first)

    db: Kdbx

    the local working copy; merged in place

    localChanged?: boolean

    whether the local copy changed since the last sync (default true). False → a cheap HEAD check first.

    maxAttempts?: number

    attempts on 412 (default 5, like Qt's MaxAttempts)

    merge?: MergeOptions
    onProgress?: (
        step: "checking" | "downloading" | "merging" | "uploading",
    ) => void
    signal?: AbortSignal
    state?: SyncState | null