@dxos/echo
    Preparing search index...

    Function getMeta

    • Get the metadata for an entity. Returns mutable meta when passed a mutable entity (inside change callback). Returns read-only meta when passed a regular entity or snapshot.

      Parameters

      • entity: { "~@dxos/echo/Kind": EntityKind; id: string }

      Returns {
          annotations: {
              [key: string & Brand<"~@dxos/echo/AnnotationKey">]: unknown;
          };
          convergenceKey?: string;
          createdAt?: number;
          key?: string;
          keys: { id: string; source: string }[];
          tags: {
              "~@dxos/echo/Kind": Object;
              hue?: string;
              id: string;
              label: string;
          }[];
          updatedAt?: number;
          version?: string;
      }

      • annotations: { [key: string & Brand<"~@dxos/echo/AnnotationKey">]: unknown }

        Dictionary of annotations to this entity.

      • OptionalconvergenceKey?: string

        Caller-supplied domain identity, unique within a space: two entities carrying the same convergence key are the same entity and are merged into one. Declared by assigning this field inside an update callback — Entity.update(x, (x) => { Entity.getMeta(x).convergenceKey = '…' }) — so it batches with the caller's other writes; there is deliberately no dedicated setter.

        Objects only: the merge engine ignores the field on relations and types (not merge subjects yet), and treats the empty string as no key — both are verified at detection, in the worker, and in the client executor rather than at write time, since the field replicates from peers that cannot be trusted to have validated it.

        Opaque to the storage engine — callers that need generations encode them in the string (e.g. com.example.seed@2), which yields distinct entities because the strings differ. Distinct from key/version above, which record the registry entry an instance was created from (provenance, not identity).

      • OptionalcreatedAt?: number

        Unix ms timestamp when this entity was created. Read-only; sourced from the system section of the automerge document — not stored in meta.

      • Optionalkey?: string

        Fully-qualified registry key for the object (FQN format, e.g. com.example.type.foo). Identifies the canonical registry entry the object instance was created from.

      • keys: { id: string; source: string }[]
      • tags: { "~@dxos/echo/Kind": Object; hue?: string; id: string; label: string }[]

        Tags applied to this entity: Tag objects, loaded with the entity as strong dependencies.

      • OptionalupdatedAt?: number

        Unix ms timestamp of the last automerge change on this entity's document. Read-only; derived from the automerge change graph — not stored in meta.

      • Optionalversion?: string

        Semantic version of the registry entry the object was created from. Must be a valid semver string (e.g. 1.2.3).

      O(1); returns the live (memoized) meta proxy, not a copy.

    • Get the metadata for an entity. Returns mutable meta when passed a mutable entity (inside change callback). Returns read-only meta when passed a regular entity or snapshot.

      Parameters

      Returns {
          annotations: {
              readonly [key: string & Brand<"~@dxos/echo/AnnotationKey">]: unknown;
          };
          convergenceKey?: string;
          createdAt?: number;
          key?: string;
          keys: readonly { id: string; source: string }[];
          tags: readonly {
              "~@dxos/echo/Kind": Object;
              hue?: string;
              id: string;
              label: string;
          }[];
          updatedAt?: number;
          version?: string;
      }

      • Readonlyannotations: { readonly [key: string & Brand<"~@dxos/echo/AnnotationKey">]: unknown }

        Dictionary of annotations to this entity.

      • Optional ReadonlyconvergenceKey?: string

        Caller-supplied domain identity, unique within a space: two entities carrying the same convergence key are the same entity and are merged into one. Declared by assigning this field inside an update callback — Entity.update(x, (x) => { Entity.getMeta(x).convergenceKey = '…' }) — so it batches with the caller's other writes; there is deliberately no dedicated setter.

        Objects only: the merge engine ignores the field on relations and types (not merge subjects yet), and treats the empty string as no key — both are verified at detection, in the worker, and in the client executor rather than at write time, since the field replicates from peers that cannot be trusted to have validated it.

        Opaque to the storage engine — callers that need generations encode them in the string (e.g. com.example.seed@2), which yields distinct entities because the strings differ. Distinct from key/version above, which record the registry entry an instance was created from (provenance, not identity).

      • Optional ReadonlycreatedAt?: number

        Unix ms timestamp when this entity was created. Read-only; sourced from the system section of the automerge document — not stored in meta.

      • Optional Readonlykey?: string

        Fully-qualified registry key for the object (FQN format, e.g. com.example.type.foo). Identifies the canonical registry entry the object instance was created from.

      • Readonlykeys: readonly { id: string; source: string }[]
      • Readonlytags: readonly { "~@dxos/echo/Kind": Object; hue?: string; id: string; label: string }[]

        Tags applied to this entity: Tag objects, loaded with the entity as strong dependencies.

      • Optional ReadonlyupdatedAt?: number

        Unix ms timestamp of the last automerge change on this entity's document. Read-only; derived from the automerge change graph — not stored in meta.

      • Optional Readonlyversion?: string

        Semantic version of the registry entry the object was created from. Must be a valid semver string (e.g. 1.2.3).

      O(1); returns the live (memoized) meta proxy, not a copy.