Sounds like you actually moved plumbing to accommodate moving the toilet. While maybe not structural, it seems material. If it was a licensed plumber that did the work, but did it under the table, you likely are OK, not perfect, but OK. Not like you added a master bedroom suite. If you want to be more sure, you could have another licensed professional verify the work was sound, or to be 100% certain, have it inspected after the fact and pay any permit fees/penalties. But that has issues as well. Maybe what you did was not 'permitable', and the you gotta put it back. There are risks either way you go.