import { EmailAddress, UniqueID } from "@repo/rdx-ddd";
import { Request } from "express";

export type RequestUser = {
  userId: UniqueID;
  companyId: UniqueID;
  roles?: string[];
  email?: EmailAddress;
};

export type RequestWithAuth<T = any> = Request & {
  user: RequestUser;
  body: T;
};
