export type ID = string;

export type User = {
  id: ID;
  email: string;
  name: string;
  avatarUrl?: string;
  createdAt: string;
};

export type ApiResponse<T> =
  | { data: T; error: null }
  | { data: null; error: { message: string; code?: string } };

export type PaginatedResponse<T> = {
  items: T[];
  total: number;
  page: number;
  pageSize: number;
  hasMore: boolean;
};
