minca
ApiCoreInterfaces

Interface: Version\<T\>

Defined in: packages/core/src/types.ts:170

Version — the atomic data unit

Extends

Type Parameters

Type ParameterDefault type
Tunknown

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
authorreadonlystring-Omit.authorpackages/core/src/types.ts:91
body?readonlyTThe content — absent on a stub (see UnsignedVersion.body)-packages/core/src/types.ts:172
bodyHash?readonlystringContent id of the canonical body, signed in its place. Absent on a delete.-packages/core/src/types.ts:175
collectionreadonlystring-Omit.collectionpackages/core/src/types.ts:92
createdAtreadonlystring-Omit.createdAtpackages/core/src/types.ts:97
deleted?readonlytrueThis version deletes the record; its body is nullOmit.deletedpackages/core/src/types.ts:131
genesis?readonlystringId of the record's first version — who created it. Absent on seq 0.Omit.genesispackages/core/src/types.ts:113
idreadonlystring--packages/core/src/types.ts:173
keyreadonlystringThe record's identity, stable across versions. Links point here.Omit.keypackages/core/src/types.ts:107
links?readonlyreadonly Link[]Links to other records. Signed with the rest. In a private space they are sealed inside the encrypted body instead, and this is absent.Omit.linkspackages/core/src/types.ts:136
log?readonlyWriterLogIts place in its writer's line for its collection in this space: a key's writes in one collection of a space form one line, n from 0, each naming the one before. Two versions by one key at one place are a fork (02 §4.10). Required in a space.Omit.logpackages/core/src/types.ts:120
prev?readonlystringId of the version this one replaces. Absent on seq 0.Omit.prevpackages/core/src/types.ts:111
proof?readonlyDelegationThe note that lets the author write this, one token from its account, if delegated — signed along with the restOmit.proofpackages/core/src/types.ts:105
retain?readonlytrueKeep this version once it is superseded — set by the writer, from the collection's historyOmit.retainpackages/core/src/types.ts:122
seen?readonlyreadonly string[]The latest changes to the space's access history — roles, members, invites, revoked notes, collection definitions — its writer knew of. It is judged by who held what, and which definition was in force, as of those (space/roles.ts).Omit.seenpackages/core/src/types.ts:129
seqreadonlynumber0 for a record's first version; each later version is one more than the one it replacesOmit.seqpackages/core/src/types.ts:109
signaturereadonlystring--packages/core/src/types.ts:176
space?readonlystringSpace this belongs to — signed, so it cannot be replayed into another space. Omitted for unscoped data.Omit.spacepackages/core/src/types.ts:94
tags?readonlyreadonly string[]Topic tags: a keyed hash of each value of each field the collection names as a topic (records/topics.ts), so a node that can't read the body can still match what it's about. Signed with the rest; checked by any node that can read the body.Omit.tagspackages/core/src/types.ts:143
to?readonlystringFor a loose version (no space), the public key it is sealed to: signed, so it can't be re-sealed to another (02 §3.5)Omit.topackages/core/src/types.ts:96

On this page