The nvim-treesitter InstallInfo type now has an optional queries field.
---Directory with queries to be installed
---@field queries? string
Currently, there isn't a single entry in their parsers.lua that has this field set, but it looks like the plan is to use this to install the queries that are bundled with the parser in the future (and the logic has already been implemented).