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
Property | Modifier | Type | Defined in |
---|---|---|---|
mnemonic | readonly | string & Brand <"Trimmed" > & Brand <"MinLength1" > & Brand <"Mnemonic" > | packages/common/src/Evolu/Owner.ts:132 |
type | readonly | "SharedOwner" | packages/common/src/Evolu/Owner.ts:131 |
writeKey | readonly | Uint8Array <ArrayBufferLike > & Brand <`Length${number & Brand<"Int"> & Brand<"NonNegative">}` > & Brand <"WriteKey" > | packages/common/src/Evolu/Owner.ts:133 |