Get all collections for product in Checkout Validation Function Input

Hello, we’re trying to use token gate api and it will be much convenient for our merchants to use Collections instead of single products, but to protect collection in the function we should know if product connected to this collection. Now we can use only inCollections or inAnyCollection for products, in the Input step.
But we will receive protected collections list only after input step, in the function body, from product.gates object

It will be convenient to receive all products collections as array(or just ids), and check it in the cycle, probably it won’t be a thousands of collections