If that level of functionality is desired then check_upload_to_archive() (in lib/lp/archiveuploader/permission.py|128|) should be exposed. That's the function used for source package upload authorization checks (in lib/lp/archiveuploader/nascentupload.py|491|).
Please note that check_upload_to_archive() is a plain function however, and, if memory serves right, only methods can be exposed on the LP API.
If that level of functionality is desired then check_upload_ to_archive( ) (in lib/lp/ archiveuploader /permission. py|128| ) should be exposed. That's the function used for source package upload authorization checks (in lib/lp/ archiveuploader /nascentupload. py|491| ).
Please note that check_upload_ to_archive( ) is a plain function however, and, if memory serves right, only methods can be exposed on the LP API.