PayloadMasks
The response masks of the payloads a state read and the events model return outside a snapshot query: an aggregate's state and an event's body, masked by the x-wow-sensitive and x-wow-mask keywords of their schemas in manifest's $defs, as a snapshot query masks its records (SchemaMasker): every sensitive value, whatever its level, is replaced by its mask for every caller. A payload that declares nothing sensitive is returned as it is.
What the node finds no schema for is masked whole: an event the Manifest does not know, by its name or by a revision newer than the Manifest's (EventManifest.revision), such as one a newer node wrote during a rolling upgrade, is answered with the body JSON null, never as it is: the node cannot tell what in it is sensitive. An event the Manifest lists without carrying its schema declares nothing sensitive, and is returned as it is. Wow's own events (wow.lifecycle.*, wow.schedule.*) are known to every node, whatever the Manifest lists.
Each schema is compiled once, on first use; strategies resolves the custom mask strategies, and one it does not know fails the read rather than return the raw value. A read that reveals DISPLAY values (me.ahoo.wow.query.QueryCaller.revealsDisplay) is masked by the schema's CONFIDENTIAL masks alone, compiled on its first such read.
A read answers only what its schema declares (DeclaredOnly): a property of a closed object that the schema does not declare is removed from a state, from the body of an event the Manifest knows at its revision, and from a scheduled command, such as one a newer node's version added, which could be sensitive there. An open object, a typed map's or a free one, keeps its properties.
They are the node's StateMasks too (stateMaskOf, eventMaskOf): a writer that stores or publishes a state or an event's body where a reader takes it as a read, the state view cache's sink or the transport sink, masks it by the very masks a read applies, without removing what the schema does not declare: what it publishes is the node's own serialisation, and a state of nothing sensitive is published as its text. An event is found by its name once, then by the name it was asked by.
A schedule's event, wow.schedule.ScheduleSet, holds the body of the command it will send: that command is masked as a body of its command type (commandType, context.aggregate.Command) is, by its schema in manifest or, for a command of another context, in one of peers, the contracts of the contexts the node sends commands to: the first that names the type and holds its schema in its $defs. A command whose type none of them names with its schema (a contract may list a command without its definition), or that names no type, or that is not an object, is masked whole, null, as an event the Manifest does not know is: the node cannot tell what in it is sensitive. So is a command of Wow's own types (wow.schedule.SetSchedule, wow.lifecycle.*), which no Manifest names as a context.aggregate.Command, and a command it holds with it: matched, such a type's free command would answer the command inside it as stored. A command is answered with what its schema declares, whether or not the schema masks anything: a property of a closed object that the schema does not declare is left out. A writer's mask does the same, as a read does: the command is the serialisation of whichever node scheduled it, of a type with no revision, so a node of an older version publishes one a newer node scheduled without the properties its own schema does not declare, a @Sensitive one among them.
NONE masks nothing, not even what it knows no schema for (masksUnknown false): it is for a read that is not masked at all.
Constructors
Functions
body, the body of type's event named name stored at revision, masked in place where it can be; null when the Manifest does not know the event at that revision. name is the event's name in the log (<context>.<aggregate>.<Name>) or the Manifest's, or one of its aliases. With revealsDisplay, its DISPLAY values are left raw.
The mask of the body of type's event named event, at its current revision, as event masks it: one that masks the body whole when the Manifest does not know the event; null when its schema masks nothing. A schedule's event is masked as a read masks it, its command answering only what its command type's schema declares.
state, a state of type, masked in place where it can be; the masked value. With revealsDisplay, its DISPLAY values are left raw.