old_contents: const error = require('./lib/rest/error')
  const lib = require('./lib/netiam')
  const middleware = require('./lib/middleware')
  const plugins = require('./lib/plugins')
  const models = require('./lib/rest/models')
  const RoleSchema = require('./lib/rest/schema/role')
  const schemaPlugins = require('./lib/rest/schema/plugins')
  
  lib.error = error
  lib.middleware = middleware
  lib.plugins = plugins
  lib.models = models
  lib.schema = {
    Role: RoleSchema,
    plugins: schemaPlugins
  }
  
  module.exports = lib
  
new_contents: const lib = require('./lib/netiam')
  const middleware = require('./lib/middleware')
  const plugins = require('./lib/plugins')
  const models = require('./lib/rest/models')
  const RoleSchema = require('./lib/rest/schema/role')
  const schemaPlugins = require('./lib/rest/schema/plugins')
  
  lib.middleware = middleware
  lib.plugins = plugins
  lib.models = models
  lib.schema = {
    Role: RoleSchema,
    plugins: schemaPlugins
  }
  
  module.exports = lib
  
subject: remove error export from index