Aggregate a set of subscription filters into one covering filter.
Direct port of client/stream/index.ts:#computeUnionFilter.
namespaces (wildcard), the union
is unscoped (omits the key). Otherwise, deduplicated union.depth (unbounded), the union is
unbounded (omits the key). Otherwise, take the max. depth=0 is a
valid bounded value — never omit when all subscriptions provide it.list of SubscribeParams-shaped dicts.