export type VerifaydaPurpose = 'LOGIN' | 'PURCHASE';

export interface FaydaTokenResponse {
  access_token: string;
  id_token?: string;
  token_type: string;
  expires_in?: number;
  scope?: string;
}

export interface FaydaUserInfo {
  sub: string;
  name?: string;
  'name#en'?: string;
  'name#am'?: string;
  phone_number?: string;
  'phone_number#en'?: string;
  'phone_number#am'?: string;
  phone?: string;
  email?: string;
  gender?: string;
  birthdate?: string;
  picture?: string;
  address?: Record<string, unknown>;
  [key: string]: unknown;
}

export interface NormalizedFaydaUserInfo {
  sub: string;
  fullName?: string;
  phoneNumber?: string;
  email?: string;
  gender?: string;
  birthdate?: string;
  picture?: string;
}
