contractOf
The contract of the contexts of fragments, the completed Manifest fragments of a domain module: per context its name, description, aggregates (state, snapshot, ownership, query models, the commands no edge mounts with their names, aliases, schemas, creation and produced events, and the events), subscriptions (kind, source, function, and the commands they derive, call, handle the rejections of and the commits of: what a wait chain follows), published streams and errors; the framework's errors; and the $defs these refer to, transitively. Routes, schedules, retries and jobs are left out. The service is the one service names, the one that hosts the contexts, which a peer finds by its name: its name alone, none when not given.
The state schema is a peer's compile-time API (the api module's generated query fields come from it), except that of an aggregate whose stream is published without its state (@AggregateRoot(publishState = false)): its state stays a reference whose definition is {"type": "object"}, an object of undisclosed structure, unless a command or an event of the contract refers to the same class.