Observation from #5362, filed unassigned. Not a defect — nothing is wrong at runtime — recording dead declaration surface.
Fact (at the #5362 branch, base da8db03a6)
packages/types/src/field-types.ts exports two hand-written interfaces whose only reason-for-being was the retired ObjectSchemaMetadata mirror's members:
ObjectTrigger — was referenced solely by the mirror's triggers?: ObjectTrigger[]
ObjectRelationship — solely by the mirror's relationships?: ObjectRelationship[]
With the mirror retired (derivation from @objectstack/spec/data's ServiceObject), both are exported from @object-ui/types (src/index.ts) with zero in-repo references outside their own declaration and the index re-export (repo-wide grep over packages/ apps/ examples/, *.ts/*.tsx, node_modules and dist excluded). The spec's object document declares neither a triggers nor a relationships member, so they do not correspond to any spec surface either.
#5362 deliberately did NOT remove them: they are published surface, and cutting exports is a separate decision from the ruled derivation. DataModelDesigner's relationships state is its own local model, not these types (checked).
Options
- A — retire both exports in a follow-up (breaking-ish for external consumers; changeset
minor with the semantics stated, per the version-alignment convention).
- B — keep them with a comment stating they are client-side vocabulary awaiting a consumer, if one is expected.
No urgency either way; this exists so the dead surface is on the books rather than rediscovered.
Generated by Claude Code
Observation from #5362, filed unassigned. Not a defect — nothing is wrong at runtime — recording dead declaration surface.
Fact (at the #5362 branch, base
da8db03a6)packages/types/src/field-types.tsexports two hand-written interfaces whose only reason-for-being was the retiredObjectSchemaMetadatamirror's members:ObjectTrigger— was referenced solely by the mirror'striggers?: ObjectTrigger[]ObjectRelationship— solely by the mirror'srelationships?: ObjectRelationship[]With the mirror retired (derivation from
@objectstack/spec/data'sServiceObject), both are exported from@object-ui/types(src/index.ts) with zero in-repo references outside their own declaration and the index re-export (repo-wide grep overpackages/ apps/ examples/,*.ts/*.tsx, node_modules and dist excluded). The spec's object document declares neither atriggersnor arelationshipsmember, so they do not correspond to any spec surface either.#5362 deliberately did NOT remove them: they are published surface, and cutting exports is a separate decision from the ruled derivation.
DataModelDesigner'srelationshipsstate is its own local model, not these types (checked).Options
minorwith the semantics stated, per the version-alignment convention).No urgency either way; this exists so the dead surface is on the books rather than rediscovered.
Generated by Claude Code