Lyapunov theorems for operator algebras