Non Account Objects Creation for Scripted REST Connector in IDCloud

I am trying to add entitlement types for my Scripted REST connector in Forgerock IDCloud. But I am not able to figure out how can I define it. In the sample schema script provided by forerock, only ACCOUNT & GROUPS can be defined. When I am trying to define new type as ROLES, its throwing error as this class “org.identityconnectors.framework.common.objects.ObjectClass” is only having ACCOUNT & GROUPS types as predefined. Please guide me on how can I create a different entitlement type rather than GROUPS for SCRIPTED REST Connector.