For ease of reference, below is the working definition. 
A primary source is the contemporaneous, documented, and reliable viewpoint of an individual participant or observer usually in the form of:
—Newspapers, periodicals and other published materials reporting actual events, interviews, etc., by participants or observers.
—Journals, speeches, letters, memoranda, manuscripts, diaries and other papers in which individuals describe events in which they were participants or observers.
—Records of organizations. The minutes, reports, correspondence, etc. of an organization or agency.
—Primary accounts contained in memoir, biography and autobiography although these may be less reliable if they are written well after the event and distorted by personal agenda, dimming memory or the revised perspective that may come with hindsight.
What is not generally accepted as a primary source, nor should be acceptable in any scholarly account, is the simple referral to a previous work that itself does not rely on a primary source—this practice propagates myth.
Cure for Insomnia
As a counterpoint to this dogma read the article here for a rambling yet lighter view of how the notions of primary material factor into some aspects of Wilde.
 Based on guides prepared by The University of Central Oklahoma and The University of California Berkeley Library.