minca
ApiCoreInterfaces

Interface: SpaceRecord

Defined in: packages/core/src/space/space-manager.ts:34

A space plus the secrets this node holds for it

Properties

PropertyModifierTypeDescriptionDefined in
invitereadonlyUint8Array<ArrayBufferLike> | nullAn invite link's secret, held until this account's member record is written with it — which needs the invite's own record to have arrived. Null once joined, or for a view-only invite.packages/core/src/space/space-manager.ts:64
keyreadonlySpaceKey | nullThe AES key this node reads and writes a private space with: the newest it holdspackages/core/src/space/space-manager.ts:37
keys?readonlyreadonly SpaceKey[]Every key of the space this node holds, the current one included. A private space's key changes when someone is removed (sys.key); records written before keep the key they were written with.packages/core/src/space/space-manager.ts:43
memberKey?readonlyUint8Array<ArrayBufferLike> | nullThis account's member key for the space, for a node given it without the account key (deriveMemberKeyBytes) — what a new space key is sealed to.packages/core/src/space/space-manager.ts:48
nodes?readonlyreadonly string[]Always-on nodes that hold the space, from the invite that brought it here: node URLs pinned by DID, dialled besides the hosts the account uses.packages/core/src/space/space-manager.ts:58
read?readonlySpaceKeyPair | nullThe read key pair, for a node that carries a private space without its key (space/pass.ts). With the key it is derived from that instead.packages/core/src/space/space-manager.ts:71
relays?readonlyreadonly string[]Where the space's members meet, as this node last heard: from the invite that brought it here, then from the space itself (sys.relays).packages/core/src/space/space-manager.ts:53
rolereadonlystring | nullThe role this account last held here, as the space's access history said — a hint for listing, not a gatepackages/core/src/space/space-manager.ts:66
spacereadonlySpace-packages/core/src/space/space-manager.ts:35

On this page