Issue #3280391: Allow anonymous requests when valid credentials are supplied
- Refactor interfaces for GetObjectParams and GetObjectByPathParams to share some types
- Added more detailed comments in params interface to enhance DX
- Added the optional anon type to the shared params to make requests anonymous
- Added a test
- Refactored a test to better check if auth headers were used for the fetch
- Added docs for the new feature
Closes #3280391