Provide environment information
System:
OS: macOS 11.7.5
CPU: (8) x64 Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz
Memory: 153.83 MB / 32.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 18.17.1 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 9.6.7 - /usr/local/bin/npm
Watchman: 2023.02.27.00 - /usr/local/bin/watchman
Describe the bug
TypeScript: Type instantiation is excessively deep and possibly infinite

Reproduction repo
N/A
To reproduce
Create a new job with invokeTrigger and provide Zod schema to it
Additional information
No response