The two functions accept the pagination data but do not provide them to the URL.
They should be provided as query strings i.e.:
/db/repo?page=1&size=25&desc=true
In the Go library the desc=true is added only when the user wants to sort descending order.
It might be better to accept a defined type (I guess class in Python?), for example there's a new sortby field that's in the work and it will be easier to change for further version vs. function parameters. For example
class ListParams:
page: int
size: int
desc: bool
def list_documents(self, repo, lp: ListParams)
This will prevent breaking caller code and give flexibility to allow for additional meta data.