Another question: How can I get all permissions of a principal over a resource programmatically in cerbos-sdk like this
def what_permissions_has(principal:Principal, resource_name:str)->list[str]:
...
what_permissions_has(principalA, "book") # ["borrow", "buy"]
It should read from policies and give answer