N.Y. Real Property Actions & Proceedings Law § 797-A
* § 797-a. Person who may maintain proceeding. 1. The proceeding may be maintained by any party, known herein as a tenant, who is an occupant of residential real property for thirty consecutive days or longer under an agreement not created by deed.