import type { Session } from 'next-auth';

export interface CurrentUserMembershipContext {
  userId: string;
  organizationId: string;
  role: string;
  businessRole: string;
  permissions: string[];
}

export interface CurrentOrganizationContext {
  id: string;
  name: string;
  slug: string;
  plan: string;
  imageUrl: string | null;
}

export interface CurrentUserContext {
  user: Session['user'];
  activeOrganization: CurrentOrganizationContext | null;
  membership: CurrentUserMembershipContext | null;
  permissions: string[];
  businessRole: string | null;
}
