The General Charter of Jewish Liberties known as the Statute of Kalisz, and as the Kalisz Privilege
https://www.thecenterforruleoflaw.org/rule-of-law-blog/september-8-1264-the-statute-of-kalisz-guaranteeing-jews-safety-and-personal-liberties-and-giving-battei-din-jurisdiction-over-jewish-matters-is-promulgated-by-boleslaw-the-pious-duke-of-greater-poland