Upgrade zod to v4
Description
This PR upgrades the Zod dependency from version 3.x to version 4.0.5 and updates the schema definitions to use Zod v4's new .looseObject() method (.passthrough is now deprecated)
Type of change
- [x] New feature (non-breaking change which adds functionality)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
- [ ] ~~Unit tests~~ N/A no unit tests
- [x] tsc typecheck
Checklist:
- [x] My code follows the guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings or errors
- [ ] ~~I have added tests that prove my fix is effective or that my feature works~~ N/A
- [ ] ~~New and existing unit tests pass locally with my changes~~ N/A
- [x] Any dependent changes have been merged and published in downstream modules
@MonsterDeveloper can you please resolve conflicts, LGTM!
also feel free to bump a patch and i'll release after merging
@AlemTuzlak done
@AlemTuzlak any ETA on when can this be merged? Anything I can do to help?
Remind me tomorrow 🫡