IMO: Unit tests test an indivisible piece of the software under test.
An integration test is any test that isn’t a unit test.
e2e tests are the subset of integration tests that deal with user input to user-observable output/effect.
All relative to where the boundaries of your software are.