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.
Returns the URI identifying a type entity. Always defined.
Type.Obj/Type.Relation→ typename DXN (e.g.dxn:com.example.type.person:0.1.0).Type.Typeinstance (hasid) → localEID(echo:///<objectId>).Type.Typedraft (hasid, no typename) → localEID.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.AnyEntityentities. RawSchema.Schemavalues and the brandedObj.Unknown/Relation.Unknownschemas are intentionally not supported — useinternal.getSchemaURIor the schema's typename annotation directly when working at the schema level.