Setting mask types in plugin API

How does this

image

relate to the .isMask member of nodes?

This property is not available in the API yet