Is there a recommended way to register query types?

Is there a recommended way to register custom query types, similar to how registering dynamic data tags works?

Looking through the documented hooks, the closest option to implement this seems to be bricks/setup/control_options to add an item to the list of query items in the interface and then later catch if the item was the active type with the bricks/query/run filter (and likely others). Is bricks/setup/control_options intended to be used for this, or are there other options?

For clarity, what I mean is something close to how ACF repeaters are listed as their own Type value for queries –

Yes you setup your custom Queries via bricks/setup/control_options and then through these filters bricks/query/run, bricks/query/loop_object, bricks/query/loop_object_id & bricks/query/loop_object_type.

In my custom Child Theme I created an abstract Class of Queries that handles the filters and is easily extensible - similar as to how Bricks handles custom Elements.

Just ask Claude or any other AI to create you something similar - link it the Bricks Query-Class and the documentation of the filters I wrote above and you will get something you can work and adjust as you please :wink:

Best Regards
Suat