Thousands of Palestinian prisoners could be released in exchange for Israeli captives as part of the ceasefire deal.