nomos_types 0.2.0
nomos_types: ^0.2.0 copied to clipboard
Pure kernel wire/data types for Nomos Dart frontends — no transport, no bridge, no runtime. The hand-written serde-JSON-compatible types plus the offer codec, reactive read engine, schema validation, [...]
0.2.0 #
NomosPrincipal/NomosDeviceSecret— branded identity types for the generated cross-workspace birth methods (.births()directives).actor/authorSecretwere previously bare, adjacent, same-shaped strings — a transposition footgun with no compiler check.NomosPrincipal.user(uid)/.parse('user:<uid>')and the opaqueNomosDeviceSecret(redacts intoString()) make swapping them a type error. Purely additive.
0.1.4 #
- Custody-lifecycle types:
NomosCustodyBreak,NomosCustodyStatus,NomosCustodyEvent,CustodyBreakPolicy(adopt/reject/ask) — a workspace rebirth surfaces as a typed, app-decidable event. Purely additive.
0.1.3 #
NomosRef— THE one typed reference{workspace, type, id}: value semantics, the canonicalnomos://<workspace>/<type>/<id>uri (uri/parse, encode round-trip),fromJson(object or uri),resolve()over the multi-workspace reader.ActivityRefgainsworkspace+ a.refview;ForeignRefgains.ref. Every reference shape now converges on the one triple. Purely additive.
0.1.2 #
- Activity-feed runtime types:
ActivityEvent(the shared activity row — kind/actor/occurredAt, rendered title+message, stabletitleKey/messageKey+ params for localization, typedrefs, category/icon/ severity, domain/directiveId provenance),ActivityRef,ActivitySeverity,renderActivityTemplate. Consumed by the generatedrenderActivity/describe/describeHistory. Purely additive.
0.1.1 #
- Add
t.foreignRefruntime types:ForeignRef<T>(a typed cross-workspace locator),NomosForeignReader/NomosForeignWorkspaceReader, the sealedForeignResolveResult<T>(ForeignFound/ForeignNotFound/ForeignDenied/ForeignUnreachable), andForeignAttestation. Generated read models type aforeignReffield asForeignRef<Target>;.resolve/.resolveResult/.watch/.existsare the informational lookup,.attestis gated on the attested-read lane. Purely additive.
0.1.0 #
- Initial release. The pure-data core split out of
nomos_client: kernel wire types, the offer codec,NomosReads, the tri-stateNomosSlot, aggregate metadata, schema validation, and the data-only error/trace types (NomosBridgeError,NomosErrorInfo,NomosTraceContext) plus the typed diagnostics. No transport, no bridge, no runtime — generated per-domain TYPES files depend on only this.