DocumentRecoveryOptions
Defined in: packages/core/src/document-recovery.ts:48
Properties
Section titled “Properties”locator
Section titled “locator”
readonlylocator:DurableDocumentRecoveryLocator
Defined in: packages/core/src/document-recovery.ts:49
Methods
Section titled “Methods”authorize()
Section titled “authorize()”authorize(
approval):boolean|Promise<boolean>
Defined in: packages/core/src/document-recovery.ts:51
Authorize the exact detached approval using application trust.
Parameters
Section titled “Parameters”approval
Section titled “approval”Returns
Section titled “Returns”boolean | Promise<boolean>
stage()
Section titled “stage()”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.
Parameters
Section titled “Parameters”selectedContent
Section titled “selectedContent”Uint8Array
Returns
Section titled “Returns”Promise<boolean>