Bernoulli's equation is merely a first integral of Newton's 2.law, as applied along a streamline. (In 2-D flow, the first integral of Newton's law as applied orthogonal to a streamline is covered by Crocco's theorem).
Thus, in principle, Bernoulli's "equation" (or, rather, the method used in deriving it!) is fully valid for ANY sort of flow.
However, only under very special conditions does something "useful" turn up in this particular decomposition of the equations of motion. (Mostly, for example in non-stationary flow, you get a nasty integral you can't simplify in any intelligent manner..)
When such usefulness occurs, we call it "Bernoulli's equation"..