Interface ReplayOfflineEditPassOptions

interface ReplayOfflineEditPassOptions {
    authorizationScopeDigest: `sha256:${string}`;
    conflictPolicy?: ReplicaConflictPolicy;
    leaseDurationMs: number;
    limit: number;
    replica?: OfflineReplaySyncConflictBinding;
    signal?: AbortSignal;
    sourceId: string;
    workerId: string;
}

Hierarchy (view full)

Properties

authorizationScopeDigest: `sha256:${string}`
conflictPolicy?: ReplicaConflictPolicy

The replica's reconciliation policy, declared explicitly.

Declaring it is how an application finds out that the SDK cannot carry the policy out: client-wins and last-writer-wins need a server to decide the outcome, so the pass refuses before it claims anything, naming the policy (HonuaOfflineConflictAdjudicationError). manual retains conflicts for review — which is also what an omitted policy does — and server-wins closes each conflict against the local edit and abandons it. See OFFLINE_REPLAY_CONFLICT_POLICIES and docs/offline-regions.md.

leaseDurationMs: number

Required, positive, and no more than 24 hours.

limit: number

Required, between 1 and 100 inclusive.

Replica identity for conflict projection. Supply it to have every conflicted acknowledgement projected onto the shipped sync-conflict contracts as OfflineEditReplayItemReceipt.syncConflict; omit it and the pass behaves exactly as before. The SDK cannot derive a replica from a queue partition, so an absent binding means no projection rather than a guessed one.

signal?: AbortSignal
sourceId: string
workerId: string