The EntityDerivedCriteriaFields as concrete values, matching what
entityCriteriaSql emits (is_set / is_not_set matchers can tell
an absent key from a false, so the four below are never absent).
identityId / organizationId are the exception, and optional here for
the same reason they are branch-exclusive in the SQL: exactly one is ever
present, and the other must be genuinely absent rather than undefined
-valued. Read them through entityType — the pair is a discriminated
union in everything but the type.
The EntityDerivedCriteriaFields as concrete values, matching what entityCriteriaSql emits (
is_set/is_not_setmatchers can tell an absent key from afalse, so the four below are never absent).identityId/organizationIdare the exception, and optional here for the same reason they are branch-exclusive in the SQL: exactly one is ever present, and the other must be genuinely absent rather thanundefined-valued. Read them throughentityType— the pair is a discriminated union in everything but the type.