@dxos/echo
    Preparing search index...

    Class Feed

    Runtime schema for a Feed object.

    const feed = Obj.make(Feed.Feed, { name: 'notifications', kind: 'org.dxos.plugin.notifications.v1' });
    

    Hierarchy

    • {
          indexing?: { enabled: boolean; mode?: "main" | "all" };
          kind?: string;
          name?: string;
          namespace?: "data" | "trace";
          retention?: { maxAge?: number; maxLength?: number };
          rewindFrom?: string;
      } & OfKind<Object, this>
      • Feed
    Index

    Constructors

    • Parameters

      • _: never

      Returns Feed.Feed

    Properties

    "~@dxos/echo/Kind": Object
    id: string
    indexing?: { enabled: boolean; mode?: "main" | "all" } = ...

    Indexing options; absent means indexing is enabled. Set with setIndexing.

    Type declaration

    • Readonlyenabled: boolean

      When 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.

    kind?: string = ...

    Identifier for the feed's kind (e.g., plugin id).

    name?: string = ...

    User-facing display name.

    namespace?: "data" | "trace" = ...

    Feed namespace. Controls how feed data is stored and replicated.

    • data: Data feed (default).
    • trace: Trace feed.
    retention?: { maxAge?: number; maxLength?: number } = ...

    Retention options; absent means nothing is trimmed. Set with setRetention.

    Type declaration

    • Optional ReadonlymaxAge?: number

      Maximum 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?: number

      Maximum number of items kept; the oldest beyond it are dropped.

    rewindFrom?: string = ...

    Earliest 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.

    "~@dxos/echo/Kind": Type

    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.

    "~@dxos/echo/SchemaKind": Object

    Schema-kind brand (object).

    "~@dxos/echo/Type.Instance"?: Feed.Feed & OfKind<Object>
    "~@dxos/echo/Type.StaticSchema": Codec<any, any>

    Source Effect Schema — used internally by Type.getSchema(self).

    fields: {}

    The fields defined in the original struct schema. Allows accessing field definitions for introspection.

    id: string

    Object 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).

    jsonSchema: JsonSchemaType
    name?: string