perf: avoid using sentry/types in some places (#69101)
A small patch to remove the usages of `sentry/types` in some of the
places, but not all. There are currently 1200 more usages left
Using `sentry/types` and other barrel files have performance impact.
For a more detailed explanation, check out
https://marvinh.dev/blog/speeding-up-javascript-ecosystem-part-7/
---------
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>