Can Sole Proprietor with earned income but no “wages” make employee-side retirement contributions?

My wife has a small business; it’s a sole proprietorship – she is the only person. We set up a solo ROTH 401(k). My understanding was that my wife can make two retirement account contributions each year – one as the “employee” and one as the “employer.” Accordingly, we made a 2022 employee-side contribution.  What I am trying to do is find authority (an IRS bulletin?) that says that this was okay.  The problem is that the IRS documents I’m aware of talk about employee-side contributions from “salary deferrals” or “wages.” But my wife doesn’t have any "wages" (e.g., she doesn’t get a W2) or a “salary” per se--just earned income.  Any ideas? I know TurboTax will let me fill out forms like it's okay, but I just want to make sure it is okay!