FWIW, the distinction is not as clear cut to me. In the 1970s, the ruling government body (social democrats) passed on information in order to make registers of political opponents in the far left and far right to SÄPO.
More of that part here: https://sv.wikipedia.org/wiki/S%C3%A4kerhetspolisen#%C3%96ve...
The Nixon watergate scandal was also similar to your first definition there.
Palantir, founded by Peter Thiel (currently funding JD Vance), is building a vast person database [1].
I believe their biggest customer is the US government, and is being used by ICE [2].
1: https://beyondthefirewall.substack.com/p/palantirs-new-maste...
2: https://www.404media.co/leaked-palantirs-plan-to-help-ice-de...