Store sync event definitions as Effect Schema and derive Zod only at the bus and OpenAPI edges. Bridge the remaining Zod-native session payloads through Schema annotations so the sync layer no longer needs mixed-schema definition helpers.
To install dependencies:
bun install
To run:
bun run index.ts
This project was created using bun init in bun v1.2.12. Bun is a fast all-in-one JavaScript runtime.
bun init