API Reference / @evolu/common / Evolu/Internal / SharedOwner

Interface: SharedOwner

Defined in: packages/common/src/Evolu/Owner.ts:130

Used to share data among one or more users, enabling collaboration or controlled access. Its writeKey is random (not derived from the mnemonic, stored alongside it in the app table) and rotatable, ensuring it cannot be regenerated by others if shared. Share the mnemonic alone for read-only access (as SharedReadonlyOwner) or share SharedOwner itself for write access.

This type omits id, encryptionKey, and createdAt as they are derived by Evolu from the mnemonic, reducing storage overhead.

Properties

PropertyModifierTypeDefined in
mnemonicreadonlystring & Brand<"Trimmed"> & Brand<"MinLength1"> & Brand<"Mnemonic">packages/common/src/Evolu/Owner.ts:132
typereadonly"SharedOwner"packages/common/src/Evolu/Owner.ts:131
writeKeyreadonlyUint8Array<ArrayBufferLike> & Brand<`Length${number & Brand<"Int"> & Brand<"NonNegative">}`> & Brand<"WriteKey">packages/common/src/Evolu/Owner.ts:133

Was this page helpful?