// API envelope module — public surface.
//
// Shared response shapes and helpers for HTTP handlers. Server-only — these
// helpers wrap NextResponse and assume the route runtime.

export {
  ok,
  list,
  err,
  unauthorized,
  forbidden,
  notFound,
  badRequest,
  serverError,
  readPagination,
  type ApiErrorCode,
  type ApiErrorResponse,
  type ApiListMeta,
  type ApiListResponse,
  type ApiSuccessResponse,
} from './envelope'
