{
  "type": "trigger",
  "source": "system.js",
  "method": "onEvent",
  "input-schema": {
    "type": "array",
    "items": {
      "title": "event",
      "enum": ["beforeExit", "exit", "uncaughtException", "rejectionHandled", "unhandledRejection", "SIGINT", "SIGTERM", "SIGPIPE", "SIGHUP", "SIGTERM", "SIGBREAK", "SIGWINCH", "SIGKILL"],
      "type": "string"
    }
  },
  "output-schema": {
    "type": "object",
    "properties": {
      "event": {
        "type": "string",
        "description": "Name of the event."
      },
      "data": {
        "type": "array",
        "items": {
          "type": "any"
        }
      }
    }
  },
  "meta": {
    "name": "onEvent",
    "description": "Listen on one or more process events."
  }
}