@dxos/echo
    Preparing search index...

    Function getURI

    • Returns the URI identifying a type entity. Always defined.

      • Static Type.Obj / Type.Relation → typename DXN (e.g. dxn:com.example.type.person:0.1.0).
      • Persisted Type.Type instance (has id) → local EID (echo:///<objectId>).
      • In-memory Type.Type draft (has id, no typename) → local EID.

      When options.prefer === 'named' the result is forced to a DXN — for persisted type entities the typename + version from meta are used to construct the DXN; static types already return a DXN by default.

      Only accepts Type.AnyEntity entities. Raw Schema.Schema values and the branded Obj.Unknown / Relation.Unknown schemas are intentionally not supported — use internal.getSchemaURI or the schema's typename annotation directly when working at the schema level.

      Parameters

      Returns URI.URI

      O(1); reads the id or schema identifier annotation, allocating a new URI string.