API reference / @evolu/common / Evolu/Internal / SyncOwner

Interface: SyncOwner

Defined in: packages/common/src/Evolu/Sync.ts:104

Represents an owner for sync operations. This is a unified interface that abstracts over the specific owner types (ShardOwner, SharedOwner, SharedReadonlyOwner) for the sync layer.

The sync layer only needs the essential data for synchronization and doesn't need to distinguish between different owner types.

Properties

PropertyModifierTypeDescriptionDefined in
encryptionKeyreadonlyUint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length32"> & Brand<"EncryptionKey"> & Brand<"OwnerEncryptionKey">-packages/common/src/Evolu/Sync.ts:106
idreadonlystring & Brand<"Id"> & Brand<"OwnerId">-packages/common/src/Evolu/Sync.ts:105
transports?readonlyreadonly WebSocketTransportConfig[]-packages/common/src/Evolu/Sync.ts:109
writeKey?readonlyUint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length16"> & Brand<"OwnerWriteKey">Optional for read-only owners like SharedReadonlyOwner.packages/common/src/Evolu/Sync.ts:108

Was this page helpful?