Doing these together because they share the same types and validators.
This is the last of four diffs that simplify the code, types, and validators for endpoints mutating threads. These can be simplified following the deprecation of older codeVersions in the first diff of this stack.
I finally update the code in thread-permission-updaters.js that I mentioned here, which is sort of the whole point of this stack. I'm hoping this change will improve performance of most of these endpoints.
Depends on D8508