Readonly~@dxos/echo/ReadonlyidOptional ReadonlyindexingIndexing options; absent means indexing is enabled. Set with setIndexing.
Readonlyenabled: booleanWhen false, the feed's items are not indexed at all; there is no partial mode.
Optional Readonlymode?: "main" | "all"Which branches the index holds: main (the default) or all. There is no selected subset.
A feed whose items mutate objects keeps main; a feed of messages from people can index all.
Optional ReadonlykindIdentifier for the feed's kind (e.g., plugin id).
Optional ReadonlynameUser-facing display name.
Optional ReadonlynamespaceFeed namespace. Controls how feed data is stored and replicated.
data: Data feed (default).trace: Trace feed.Optional ReadonlyretentionRetention options; absent means nothing is trimmed. Set with setRetention.
Optional ReadonlymaxAge?: numberMaximum age of an item in milliseconds, measured from its append timestamp.
Milliseconds rather than a Duration because ECHO stores plain JSON; setRetention converts.
Optional ReadonlymaxLength?: numberMaximum number of items kept; the oldest beyond it are dropped.
Optional ReadonlyrewindEarliest item a pending rewind discards — set when a soft fork is decided but not yet expressed, because the writer may be a different process than the one that decided it.
Stored as the first discarded item rather than the new parent so that rewinding to the very first item needs no sentinel: nothing precedes it, so the continuation simply starts a new line. Readers show what precedes it; the next append parents to that and clears this.
Transient intent, never a source of truth for history. The fork itself lives in item lineage (see PARENT_KEY), which is what history walks and what replicates in a defined order relative to the blocks.
Static Readonly~@dxos/echo/Entity-kind brand of the type-entity value itself — always EntityKind.Type.
The kind of instance the type describes lives on [SchemaKindId]
(Object / Relation / Type). Lets Obj.isObject / Relation.isRelation
reject type entities by a single [KindId] check.
Static Readonly~@dxos/echo/Schema-kind brand (object).
Static Optional Readonly~@dxos/echo/Static Readonly~@dxos/echo/Source Effect Schema — used internally by Type.getSchema(self).
Static ReadonlyfieldsThe fields defined in the original struct schema. Allows accessing field definitions for introspection.
Static ReadonlyidObject id. Like all ECHO entities, type entities always carry an id —
stamped at construction for in-memory (static) declarations and assigned by
the database once persisted. The id does NOT determine the entity's URI:
static types resolve to their typename DXN, persisted types to echo:///<id>
(see getTypeURIFromSpecifier).
Static ReadonlyjsonStatic Optional Readonlyname
Runtime schema for a Feed object.
Example