Skip to content
Sheetwrite

@sheetwrite/core/history

HistoryPinRequestinterface

Report a problem

On this page

Acquire or release a five-minute renewable reader lease through the storage seam.

Members

Properties

kind: "pin" | "release";

pin takes or renews the lease; release gives it up.

token: string;

The reader's lease ID; the same token renews or releases it.

versionId: string;

Marker ID, or "head" to lease the committed head returned in the manifest.

documentId: string;

ID of the document whose history the call is about.

limits: Readonly<HistoryLimits>;

The archive's limits; the adapter must refuse work that goes over them.

signal?: AbortSignal;

optional

Aborts when the archive stops waiting for the call.

Declaration

View full TypeScript declaration
export interface HistoryPinRequest {
kind: "pin" | "release";
token: string;
versionId: string;
documentId: string;
limits: Readonly<HistoryLimits>;
signal?: AbortSignal;
}

Referenced by

Public exports naming HistoryPinRequest