Is there any way to create a boolean input to a ShaderNodeGroup in Blender 4.x using python?

I’m working now on a plugin that includes NodeGroups and I want to make a Boolean Socket. I remember that in the older versions it was possible to do this, but in the Interface system, I didn’t really find a way because it limits to very specific types of input when creating a Socket.
So is there a way to do it?