Skip to content

Email for professionals and teams

326 B
Raw Blame
import type { users } from "@/db/schema";

export type ApiAuthResult = {
	/** The API key that authenticated; mobile push registrations hang off it. */
	keyId: string;
	keyKind: "legacy" | "mcp" | "device";
	userId: string;
	email: string;
	scopes: string[];
	mailboxIds: string[] | null;
	user: typeof users.$inferSelect;
};