/** Per docs/backend/PHASE-8-IDENTITY-MESSAGING-CONTRACT.md §1. */
export interface Customer {
  id: string;
  marketplaceId: string;
  name?: string;
  email?: string;
  phone?: string;
  status: 'active' | 'suspended';
  createdAt: string;
}

export type ExternalIdentityProvider = 'vk_id' | 'yandex_id' | 'telegram' | 'max';

export interface ExternalIdentity {
  customerId: string;
  provider: ExternalIdentityProvider;
  providerUserId: string;
  /** Not every provider returns one - VK frequently does not. */
  email?: string;
  phone?: string;
  displayName?: string;
  verifiedAt: string;
  lastUsedAt: string;
}

export interface ContactChannel {
  customerId: string;
  provider: 'telegram' | 'vk' | 'max';
  chatId: string;
  verified: boolean;
  notificationsEnabled: boolean;
}
