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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
encryptionKey | readonly | Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length32"> & Brand<"EncryptionKey"> & Brand<"OwnerEncryptionKey"> | - | packages/common/src/Evolu/Sync.ts:106 |
id | readonly | string & Brand<"Id"> & Brand<"OwnerId"> | - | packages/common/src/Evolu/Sync.ts:105 |
transports? | readonly | readonly WebSocketTransportConfig[] | - | packages/common/src/Evolu/Sync.ts:109 |
writeKey? | readonly | Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length16"> & Brand<"OwnerWriteKey"> | Optional for read-only owners like SharedReadonlyOwner. | packages/common/src/Evolu/Sync.ts:108 |