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.
Readonly~@dxos/echo/Schema-kind brand (object).
Optional Readonly~@dxos/echo/Readonly~@dxos/echo/Source Effect Schema — used internally by Type.getSchema(self).
ReadonlyfieldsThe fields defined in the original struct schema. Allows accessing field definitions for introspection.
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).
ReadonlyjsonOptional Readonlyname
TypeScript type for an ECHO object type — a
Type.Type<A>entity.Tis the instance type produced byObj.make(Foo, props).Fieldsis retained as a structural hint (the runtime value still carries.fields), but consumers should derive instance/encoded types viaType.InstanceType.Not a
Schema.Schema.Foo.ast/Schema.Schema.Type<typeof Foo>/Schema.extend(Foo)no longer typecheck — extract the Effect Schema viaType.getSchema(Foo)first, or derive instance types viaType.InstanceType<typeof Foo>.Example