Indeed, there doesn’t look to be much documentation but I did find a Github that used it:
actions:PublicActionFunction publicActionFunction = {
functionSource: "exports.main = (event, callback) => {\r\n callback({\r\n outputFields: {\r\n myOutput: \"example output value\"\r\n }\r\n });\r\n}",
functionType: "POST_ACTION_EXECUTION"
};
This post also has an example: