Where is gi, gi.documentation, etc documented ?
Found it
https://gitlab.gnome.org/GNOME/gimp/-/tree/master/devel-docs/GIMP3-plug-in-porting-guide