export const passwordResponses = {
  init: {
    choiceRequired: {
      success: true,
      process_token: 'pt_pwd_123',
      status: 'choice_required',
      has_phone: true,
      masked_email: 'al***@domain.com',
      masked_phone: '+221 ****567',
    },
    pendingOtp: {
      success: true,
      process_token: 'pt_pwd_124',
      status: 'pending_otp',
      otp_code: '482913',
      receive_mode: 'email',
      masked_email: 'al***@domain.com',
      email_sent: true,
    },
    errors: {
      validation_error: {
        success: false,
        error_type: 'validation_error',
        message: 'Adresse email invalide',
      },
      invalid_app: {
        success: false,
        error_type: 'invalid_app',
        message: 'Application non trouvee',
      },
      email_not_found: {
        success: false,
        error_type: 'email_not_found',
        message: 'Aucun compte trouve avec cet email',
      },
    },
  },

  selectMethod: {
    success: {
      success: true,
      process_token: 'pt_pwd_125',
      status: 'pending_otp',
      otp_code: '482913',
      receive_mode: 'phone',
      masked_contact: '+221 ****567',
      sent: true,
    },
    errors: {
      validation_error: {
        success: false,
        error_type: 'validation_error',
        message: 'Donnees invalides',
      },
      invalid_token: {
        success: false,
        error_type: 'invalid_token',
        message: 'Session expiree ou invalide',
      },
      invalid_type: {
        success: false,
        error_type: 'invalid_type',
        message: 'Session invalide pour cette action',
      },
      invalid_status: {
        success: false,
        error_type: 'invalid_status',
        message: "Cette session n'attend pas de choix de methode",
      },
    },
  },

  reset: {
    success: {
      success: true,
      status: 'completed',
      message: 'Mot de passe modifie avec succes',
    },
    errors: {
      validation_error: {
        success: false,
        error_type: 'validation_error',
        message: 'Donnees invalides',
      },
      invalid_token: {
        success: false,
        error_type: 'invalid_token',
        message: 'Session expiree ou invalide',
      },
      invalid_type: {
        success: false,
        error_type: 'invalid_type',
        message: 'Session invalide pour cette action',
      },
      invalid_status: {
        success: false,
        error_type: 'invalid_status',
        message: 'Session non valide pour cette action',
      },
      user_not_found: {
        success: false,
        error_type: 'user_not_found',
        message: 'Utilisateur non trouve',
      },
    },
  },

  resendOtp: {
    success: {
      success: true,
      otp_code: '482913',
      receive_mode: 'email',
      sent: true,
      cooldown_remaining: 60,
    },
    errors: {
      validation_error: {
        success: false,
        error_type: 'validation_error',
        message: 'Donnees invalides',
      },
      invalid_token: {
        success: false,
        error_type: 'invalid_token',
        message: 'Session expiree ou invalide',
      },
      invalid_type: {
        success: false,
        error_type: 'invalid_type',
        message: 'Session invalide pour cette action',
      },
      cooldown_active: {
        success: false,
        error_type: 'cooldown_active',
        message: 'Veuillez patienter avant de renvoyer',
        cooldown_remaining: 30,
      },
    },
  },
} as const;

