Skip to content

CreateInvitationOptions

Defined in: packages/core/src/peerborne.ts:140

beforeAcceptance: () => Promise<void>

Defined in: packages/core/src/peerborne.ts:166

Runs after the claimant’s membership is committed locally and before the acceptance that delivers the document key is signed and returned. Store a local checkpoint here: if the founder stops after the claimant has the key but before its membership is stored, a restored founder has no record of that collaborator and cannot revoke it. Peerborne cannot store the checkpoint itself, so every offer must supply this.

It runs again before the founder answers the claimant’s catch-up when the document changed after its last run, so every change the claimant receives outside a published frame is in a stored checkpoint. The catch-up waits up to 10 seconds for it; a rejection or timeout declines that catch-up, and the claimant’s exact retry runs it again.

It must settle within 10 seconds and before the offer expires. A rejection or timeout withholds the acceptance; the claimant’s exact retry runs it again while the offer is unexpired. If no acceptance has been produced when the offer expires, the founder revokes the claimant’s membership.

Promise<void>


optional expiresInMs?: number

Defined in: packages/core/src/peerborne.ts:146

Offer lifetime: 60 seconds to seven days; defaults to 15 minutes.


rendezvous: readonly string[]

Defined in: packages/core/src/peerborne.ts:144

One to eight observed addresses that end at the founder peer.


role: InvitationRole

Defined in: packages/core/src/peerborne.ts:142

Least-privilege role granted to the first valid claimant.