Kibana inline script

The only scripting language that is built-in is Painless. Painless uses a shared API based on Java classes.

Are you asking if there is the ability to disable the shared API Java classes but keep Painless scripting?