Skip to content

Contract helpers and wire types

View as Markdown

@sapporta/shared/contracts, @sapporta/rest-core, and project shared package exports.

  • Contracts declare method, path, path parameters, query, body, response schemas, summary, and metadata.
  • errorBodySchema is the shared structured HTTP error schema.
  • Table metadata wire types and auth/report contracts remain safe for browser imports.
  • The shared package contains no Hono handlers, Drizzle queries, database connections, or React components.