TS-3225: add more API support to ts_lua plugin