Declaring schemas
A central part of @zimic/http is an HTTP schema, which is a TypeScript type describing the structure of an API. The schema serves as a centralized source of truth about paths, parameters, and returns of the service, and can be used to automatically type your requests and responses with @zimic/fetch and @zimic/interceptor.
Typegen
An HTTP schema is one of the main aspects of @zimic/http. It allows you to define the structure of an API in readable TypeScript types. @zimic/fetch and @zimic/interceptor use these schemas to provide type-safe APIs for sending, receiving, and mocking requests.