Skip to content

DocumentRecoveryOptions

Defined in: packages/core/src/document-recovery.ts:48

readonly locator: DurableDocumentRecoveryLocator

Defined in: packages/core/src/document-recovery.ts:49

authorize(approval): boolean | Promise<boolean>

Defined in: packages/core/src/document-recovery.ts:51

Authorize the exact detached approval using application trust.

DocumentRecoveryApproval

boolean | Promise<boolean>


stage(next, selectedContent): Promise<boolean>

Defined in: packages/core/src/document-recovery.ts:58

Durably prepare the replacement using only the selected content and fresh key state. Return true after the artifact is ready. Stage privately and idempotently by the full locator, including the receipt. Resolve live reads through the CAS locator so a losing stage cannot shadow an accepted one.

DocumentRecoveryLocator

Uint8Array

Promise<boolean>