The New York City Council has struck a deal with the NYPD on two hotly debated police reform bills, which could now pass next week.

The de Blasio administration and the Council reached a last-minute compromise on the Right to Know Act — bills that would require officers to identify themselves when they make many stops, and tell people they have the right to refuse a search.

Amended legislation was submitted Monday night, just in time for a deadline to allow a vote at the Council’s last meeting on Dec. 19, the New York Daily News reports.

One bill would require officers to get consent before they search someone if there’s no other legal basis for the search, and to inform the person they have the right to say no.

The other bill will require officers to identify themselves with a business card listing their name, rank and command when they stop someone, and to state the reason for the stop. That bill was changed in negotiations so that it only applies to stops based on a suspicion of criminal activity.