The page [[Special:ProtectedPages]] has a option "Indefinite protections only". I have not found a api param for this.
Maybe add a apprfilterindefinite with all, indefinite and nonindefinite to list=allpages.
Thanks.
Version: 1.18.x
Severity: enhancement