[task] (OSNG-320) added types to RoleEntity and X509CertificateEntity