- anyone inside the USA borders/waters
- and any citizens of the USA no matter where they currently are (obviously only affecting the actions of US Government, government of Thailand of course wouldn't be bound by US Constitution).
But the Supreme Court disagrees with me on parts of that. So I think the answer to your question is "whatever the Supreme Court says."
To be fair, I think SCOTUS disagrees with itself on some parts of that.
>- anyone inside the USA borders/waters
They do. At least all bill of rights except the 2A do. "In theory" anyway.
This says absolutely nothing about the rights of noncitizens detained after illegal entry.
In the first half of your question you clearly show that non-citizens outside the US aren't protected by the constitution. And the vast majority of the world are non-US citizens outside of the US. So you can pretty much spy on anybody and be consistent with this decision.