Skip to content

CoordinatedDocumentOptions

Defined in: packages/core/src/coordinated-document.ts:298

readonly authority: DocumentAuthority

Defined in: packages/core/src/coordinated-document.ts:300


readonly optional authorizeCatchUp?: (memberId) => boolean | Promise<boolean>

Defined in: packages/core/src/coordinated-document.ts:324

On the controller, decide whether an authenticated member’s topic request gets a checkpoint, which holds the whole document state and its history. Any answer but true refuses it. Without it, every current member does.

Uint8Array

boolean | Promise<boolean>


readonly coordinator: GroupSecurityCoordinator

Defined in: packages/core/src/coordinated-document.ts:299


readonly optional enableAuthenticatedCatchUp?: boolean

Defined in: packages/core/src/coordinated-document.ts:318

Allow catch-up from the current unrestricted controller: requested on the document topic, or relayed by the application.


readonly optional joinPublications?: boolean

Defined in: packages/core/src/coordinated-document.ts:304

Append each local frame to the queued tail publication while it fits.


readonly optional journal?: DocumentReplayJournal

Defined in: packages/core/src/coordinated-document.ts:301


readonly optional onCatchUpRefused?: (refusal) => void

Defined in: packages/core/src/coordinated-document.ts:330

Called when the controller refuses this replica’s topic request; it then stops requesting until requestSecurityCatchUp() is called. Without it, a warning is logged.

CoordinatedCatchUpRefusal

void


readonly optional onPublicationsDropped?: (frames) => void

Defined in: packages/core/src/coordinated-document.ts:337

Called with the number of unsent frames dropped because they were sealed for an earlier group context or authority head and their author cannot re-sign them, or its current roles deny the re-signed frames. Without it, a warning is logged.

number

void


readonly optional persistPublications?: boolean

Defined in: packages/core/src/coordinated-document.ts:302


readonly optional requireGroupRosterMatch?: boolean

Defined in: packages/core/src/coordinated-document.ts:313

Require the signed roles to enumerate the provider’s exact decrypting roster. Defaults to true when authority is a DocumentAuthorityLog and the coordinator’s provider implements getAuthenticatedMemberIds, the configuration strict matching needs, and to false otherwise. Pass false to opt out. With true, another authority throws here and a provider that cannot report its members fails activation.