Skip to content

ThingDetail

Class: warmhub.ThingDetail

ThingDetail(wref: str, name: str, kind: str, version: int, active: bool, pinned_wref: str | None = None, shape: str | None = None, shape_name: str | None = None, validated_shape: str | None = None, data: PayloadT | None = None, collection: JsonMapping | None = None, synthesized: bool | None = None, about_wref: str | None = None, affirmed_wrefs: tuple[str, ...] | None = None, committer_wref: str | None = None, created_by: str | None = None, revised_by: str | None = None, metadata: JsonMapping | None = None, extra: JsonMapping = _empty(), raw: JsonMapping = _empty())

Full record shape for a single-record read.

active is required here and optional on ThingItem; that asymmetry is the wire contract’s, not a modelling choice.

Generic in its payload on the same terms as ThingItem.

as_dict()

The exact server payload as a plain, mutable, serializable dict.

Wire keys, wire nesting, no client naming applied — the same content as raw, in the form you can hand to dumps, mutate, or pass to code that demands a real dict. Built fresh on each call, so editing the result cannot reach the model.

wref

Documentation is not yet available.

name

Documentation is not yet available.

kind

Documentation is not yet available.

version

Documentation is not yet available.

active

Documentation is not yet available.

pinned_wref = None

Documentation is not yet available.

shape = None

Documentation is not yet available.

shape_name = None

Documentation is not yet available.

validated_shape = None

Documentation is not yet available.

data = None

Documentation is not yet available.

collection = None

Documentation is not yet available.

synthesized = None

True on synthesized empty stubs from getReadme/getAgents.

about_wref = None

Documentation is not yet available.

affirmed_wrefs = None

Pinned target wrefs the returned assertion version affirms.

committer_wref = None

Documentation is not yet available.

created_by = None

First-version author. Optional for legacy rows.

revised_by = None

Current-version author.

metadata = None

Documentation is not yet available.

extra = field(default_factory=_empty)

Documentation is not yet available.

raw = field(default_factory=_empty)

Documentation is not yet available.