How to fetch latest package version (Generic Packages Repository)

I just started to use the GitLab Generic Packages Repository.

Publishing and downloading work fine as documented

However, is there an easy way go get the latest version of a package? Or at least to list all versions of a package using the API?

e.g.:

curl --header "PRIVATE-TOKEN: <your_access_token>" \
     "https://gitlab.com/api/v4/projects/24/packages/generic/my_package/LATEST_VERSION/file.txt"

If not, how can Continuous Deployment (CD) be achieved using the Generic Packages Repository?

I found a way to list all versions of a packge:

curl --header "PRIVATE-TOKEN: <API-TOKEN>" "https://gitlab.com/api/v4/projects/:id/packages?package_name=:name&order_by=version&sort=desc"

Unfortunately, this only works with API-Tokens, and not with Deploy-Tokens.

In my case, I can’t allow complete API access to all users and nodes where a new version should be deployed at :frowning:

Is something like a latest version tag planed for generic packages?