{
  "about": {
    "faviconurl": "/images/favicon.png",
    "imageurl": "/images/favicon.png",
    "name": "CirrusWave",
    "url": "https://www.cirruswave.com/",
    "description": "Sample services provided as documentation"
  },
  "logenable": {
    "comment": "change logenable to log for logging to localhost elasticsearch",
    "eshostname": "http://localhost"
  },
  "nologging": false,
  "services": {
    "keymgr": {
      "init": {
        "class": "./apikeymgr.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "appdir",
            "aclconfig",
            "appserviceconfig",
            "secret"
          ],
          "properties": {
            "appdir": {
              "description": "path to the application directory. All files are relative to this directory",
              "type": "string"
            },
            "aclconfig": {
              "description": "callee provided path where access-control-list for the microservice is stored",
              "type": "string"
            },
            "appserviceconfig": {
              "description": "callee provided fully qualified path to the appserviceconfig.json, This will let keymgr support issuing keys for the app services that are setup with security acckey",
              "type": "string"
            },
            "secret": {
              "description": "secret used to encrypt the acl file",
              "type": "string"
            },
            "persistence": {
              "type": "object",
              "oneOf": [
                {
                  "required": [
                    "type",
                    "bucketname",
                    "acckey",
                    "secret",
                    "region"
                  ]
                },
                {
                  "required": [
                    "type",
                    "storageaccount",
                    "container",
                    "acckey"
                  ]
                }
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "file",
                      "s3",
                      "azblob"
                    ]
                  }
                },
                "bucketname": {
                  "description": "name of s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "storageaccount": {
                  "description": "name of azure storage account",
                  "type": "string",
                  "minLength": 1
                },
                "container": {
                  "description": "name of azure container",
                  "type": "string",
                  "minLength": 1
                },
                "acckey": {
                  "description": "access key part of credentials that gives access to the s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "secret": {
                  "description": "secret key part of credentials that gives access to the s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "region": {
                  "description": "region in which this s3 bucket exists",
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        },
        "options": {
          "appdir": ".",
          "aclconfigpath": "./deploy/lib/aclconfig.json",
          "appserviceconfigpath": "./deploy/lib/serviceconfig.json",
          "secret": "password",
          "persistence": {
            "type": "file",
            "bucketName": "bucketname",
            "acckey": "ackey",
            "secret": "secret",
            "region": "region"
          }
        }
      },
      "protocol": "https",
      "port": 4003,
      "hostname": "localhost",
      "certPath": "security/keymgr",
      "description": "REST Endpoint service for managing devloper keys.",
      "configfilepath": "./lib/keymgrconfig.json",
      "security": "nokey"
    },
    "nvstore": {
      "init": {
        "class": "./nvstore.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "secret": {
              "description": "secret used to encrypt the acl file or values stored in s3 under keys",
              "type": "string"
            },
            "persistence": {
              "type": "object",
              "required": [
                "type",
                "bucketname",
                "acckey",
                "secret",
                "region"
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "s3"
                    ]
                  }
                },
                "bucketname": {
                  "description": "name of s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "acckey": {
                  "description": "access key part of credentials that gives access to the s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "secret": {
                  "description": "secret key part of credentials that gives access to the s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "region": {
                  "description": "region in which this s3 bucket exists",
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "type": "s3",
            "bucketname": "bucketname",
            "acckey": "acckey",
            "secret": "secretkey",
            "region": "region"
          }
        }
      },
      "disabled": true,
      "protocol": "https",
      "port": 4005,
      "hostname": "localhost",
      "certPath": "security/nvstore",
      "description": "REST Endpoint service for name value store.",
      "configfilepath": "./lib/nvstoreconfig.json",
      "security": "nokey"
    },
    "azblob": {
      "init": {
        "class": "./azblobstore.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "secret": {
              "description": "secret used to encrypt the acl file or values stored in s3 under keys",
              "type": "string"
            },
            "persistence": {
              "type": "object",
              "required": [
                "type",
                "storageaccount",
                "container",
                "acckey"
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "azblob"
                    ]
                  }
                },
                "storageaccount": {
                  "description": "name of blob storageaccount",
                  "type": "string",
                  "minLength": 1
                },
                "container": {
                  "description": "name of container",
                  "type": "string",
                  "minLength": 1
                },
                "acckey": {
                  "description": "access key part of credentials that gives access to the blob account",
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "type": "azblob",
            "storageaccount": "account",
            "container": "container",
            "acckey": "acckey"
          }
        }
      },
      "disabled": true,
      "protocol": "https",
      "port": 4005,
      "hostname": "localhost",
      "certPath": "security/nvstore",
      "description": "REST Endpoint service for name value azure blog store.",
      "configfilepath": "./lib/azblobstoreconfig.json",
      "security": "nokey"
    },
    "jira": {
      "init": {
        "class": "./jira.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "persistence": {
              "type": "object",
              "required": [
                "host",
                "email",
                "accesstoken"
              ],
              "properties": {
                "host": {
                  "description": "host name for the jira server",
                  "type": "string",
                  "minLength": 1
                },
                "email": {
                  "description": "email",
                  "type": "string",
                  "minLength": 1
                },
                "accesstoken": {
                  "description": "accesstoken for this email account against the host",
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "email": "email",
            "accesstoken": "accesstoken",
            "host": "jira-host"
          }
        }
      },
      "disabled": true,
      "protocol": "https",
      "port": 4006,
      "hostname": "localhost",
      "certPath": "security/nvstore",
      "description": "REST Endpoint service for jira.",
      "configfilepath": "./lib/jiraconfig.json",
      "security": "nokey"
    },
    "relstore": {
      "init": {
        "class": "./relstore.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "persistence": {
              "type": "object",
              "required": [
                "type",
                "host",
                "user",
                "password"
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "mysql"
                    ]
                  }
                },
                "host": {
                  "description": "host name for the mysql server",
                  "type": "string",
                  "minLength": 1
                },
                "user": {
                  "description": "username",
                  "type": "string",
                  "minLength": 1
                },
                "password": {
                  "description": "password",
                  "type": "string",
                  "minLength": 1
                },
                "ssl": {
                  "description": "set to true if the postgresql server has ssl enabled.",
                  "type": "boolean"
                },
                "connectionlimit": {
                  "description": "Connections to the relational store are pooled. This sets the limit on the pool allocated",
                  "type": "integer",
                  "minimum": 1
                },
                "port": {
                  "description": "Port number",
                  "type": "integer",
                  "minimum": 1000
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "type": "mysql",
            "user": "mysql-user",
            "password": "mysql-password",
            "host": "mysql-host",
            "connectionlimit": 10,
            "port": 3306
          }
        }
      },
      "disabled": true,
      "protocol": "https",
      "port": 4006,
      "hostname": "localhost",
      "certPath": "security/nvstore",
      "description": "REST Endpoint service for relational store.",
      "configfilepath": "./lib/relstoreconfig.json",
      "security": "nokey"
    },
    "mssqlstore": {
      "init": {
        "class": "./mssqlstore.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "persistence": {
              "type": "object",
              "anyOf": [
                {
                  "required": [
                    "host",
                    "user",
                    "password"
                  ]    
                },
                {
                  "required": [
                    "type",
                    "connectionstring"
                  ]    
                }
              ],
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "mssql"
                    ]
                  }
                },
                "connectionstring": {
                  "description": "database connectionstring",
                  "type": "string",
                  "minLength": 1
                },
                "host": {
                  "description": "host name for the mssql server",
                  "type": "string",
                  "minLength": 1
                },
                "encsecretfilename": {
                  "description": "json file where the encryption key is stored which is used to encrypt the password. file is always located in the app directory",
                  "type": "string",
                  "minLength": 1
                },
                "user": {
                  "description": "username",
                  "type": "string",
                  "minLength": 1
                },
                "password": {
                  "description": "password or secret key if authtype is set and has value azure-active-directory-password",
                  "type": "string",
                  "minLength": 1
                },
                "authtype": {
                  "description": " auth type currently supported is azure-active-directory-password can be omiitted or --- to indicate it's undefined",
                  "enum": [
                    "azure-active-directory-password",
                    "azure-vault"
                  ]
                },
                "database": {
                  "description": "database name to connect to - azure sqlserver requires this. Name --- (three hyphens) or not present indicates database field is undefined",
                  "type": "string",
                  "minLength": 1
                },
                "appid": {
                  "description": "application id for the registered application",
                  "type": "string",
                  "minLength": 1
                },
                "apppassword": {
                  "description": "application password for the registered application",
                  "type": "string",
                  "minLength": 1
                },
                "apptenant": {
                  "description": "tenant the app belongs to",
                  "type": "string",
                  "minLength": 1
                },
                "vaulturi": {
                  "description": "azure vault uri in this case the host,user,password,database indicate the keynames to get these values from in the vault",
                  "type": "string",
                  "minLength": 1
                },
                "connectionlimit": {
                  "description": "Connections to the relational store are pooled. This sets the limit on the pool allocated",
                  "type": "integer",
                  "minimum": 1
                },
                "port": {
                  "description": "Port number",
                  "type": "integer",
                  "minimum": 1000
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "type": "mssql",
            "user": "mssql-user",
            "password": "mssql-password",
            "host": "mssql-host",
            "connectionlimit": 10,
            "port": 1433
          }
        }
      },
      "disabled": true,
      "protocol": "https",
      "port": 4006,
      "hostname": "localhost",
      "certPath": "security/nvstore",
      "description": "REST Endpoint service for relational store.",
      "configfilepath": "./lib/mssqlstoreconfig.json",
      "security": "nokey"
    },
    "oracledbstore": {
      "init": {
        "class": "./oracledbstore.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "persistence": {
              "type": "object",
              "required": [
                "type",
                "host",
                "user",
                "password"
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "oracledb"
                    ]
                  }
                },
                "host": {
                  "description": "host name for the oracledb server",
                  "type": "string",
                  "minLength": 1
                },
                "user": {
                  "description": "username",
                  "type": "string",
                  "minLength": 1
                },
                "password": {
                  "description": "password",
                  "type": "string",
                  "minLength": 1
                },
                "connectionlimit": {
                  "description": "Connections to the relational store are pooled. This sets the limit on the pool allocated",
                  "type": "integer",
                  "minimum": 1
                },
                "port": {
                  "description": "Port number",
                  "type": "integer",
                  "minimum": 1000
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "type": "oracledb",
            "user": "oracledb-user",
            "password": "oracledb-password",
            "host": "oracledb-host",
            "connectionlimit": 10,
            "port": 1521
          }
        }
      },
      "disabled": true,
      "protocol": "https",
      "port": 4006,
      "hostname": "localhost",
      "certPath": "security/nvstore",
      "description": "REST Endpoint service for relational store.",
      "configfilepath": "./lib/oracledbstoreconfig.json",
      "security": "nokey"
    },
    "pgsqlstore": {
      "init": {
        "class": "./pgsqlstore.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "persistence": {
              "type": "object",
              "required": [
                "type",
                "host",
                "user",
                "password"
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "pgsql"
                    ]
                  }
                },
                "host": {
                  "description": "host name for the mysql server",
                  "type": "string",
                  "minLength": 1
                },
                "user": {
                  "description": "username",
                  "type": "string",
                  "minLength": 1
                },
                "password": {
                  "description": "password",
                  "type": "string",
                  "minLength": 1
                },
                "connectionlimit": {
                  "description": "Connections to the relational store are pooled. This sets the limit on the pool allocated",
                  "type": "integer",
                  "minimum": 1
                },
                "port": {
                  "description": "Port number",
                  "type": "integer",
                  "minimum": 1000
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "type": "pgsql",
            "user": "pgsql-user",
            "password": "pgsql-password",
            "host": "pgsql-host",
            "connectionlimit": 10,
            "port": 5432
          }
        }
      },
      "disabled": true,
      "protocol": "https",
      "port": 4006,
      "hostname": "localhost",
      "certPath": "security/nvstore",
      "description": "REST Endpoint service for relational store.",
      "configfilepath": "./lib/pgsqlstoreconfig.json",
      "security": "nokey"
    },
    "db2store": {
      "init": {
        "class": "./db2store.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "persistence": {
              "type": "object",
              "required": [
                "type",
                "host",
                "user",
                "password"
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "db2"
                    ]
                  }
                },
                "host": {
                  "description": "host name for the mysql server",
                  "type": "string",
                  "minLength": 1
                },
                "user": {
                  "description": "username",
                  "type": "string",
                  "minLength": 1
                },
                "password": {
                  "description": "password",
                  "type": "string",
                  "minLength": 1
                },
                "connectionlimit": {
                  "description": "Connections to the relational store are pooled. This sets the limit on the pool allocated",
                  "type": "integer",
                  "minimum": 1
                },
                "port": {
                  "description": "Port number",
                  "type": "integer",
                  "minimum": 1000
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "type": "db2",
            "user": "db2-user",
            "password": "db2-password",
            "host": "db2-host",
            "connectionlimit": 10,
            "port": 50000
          }
        }
      },
      "disabled": true,
      "protocol": "https",
      "port": 4006,
      "hostname": "localhost",
      "certPath": "security/nvstore",
      "description": "REST Endpoint service for relational store.",
      "configfilepath": "./lib/db2storeconfig.json",
      "security": "nokey"
    },
    "snowflake": {
      "init": {
        "class": "./snowflake.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "persistence": {
              "type": "object",
              "required": [
                "type",
                "account",
                "user",
                "password"
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "snowflake"
                    ]
                  }
                },
                "account": {
                  "description": "host name for the snowflake server",
                  "type": "string",
                  "minLength": 1
                },
                "user": {
                  "description": "username",
                  "type": "string",
                  "minLength": 1
                },
                "password": {
                  "description": "password",
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "type": "snowflake",
            "account": "snowflake-accountname",
            "user": "snowflake-user",
            "password": "snowflake-password"
          }
        }
      },
      "disabled": true,
      "protocol": "https",
      "port": "4008",
      "hostname": "localhost",
      "certPath": "security/nvstore",
      "description": "REST END POINT for your project with no security restrictions",
      "configfilepath": "./lib/snowflake_appconfig.json",
      "security": "nokey"
    },
    "n4jsvc": {
      "init": {
        "class": "./n4jsvc.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "persistence": {
              "type": "object",
              "required": [
                "type",
                "host",
                "user",
                "password"
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "neo4j"
                    ]
                  }
                },
                "host": {
                  "description": "host name for the graphdb server",
                  "type": "string",
                  "minLength": 1
                },
                "user": {
                  "description": "username",
                  "type": "string",
                  "minLength": 1
                },
                "password": {
                  "description": "password",
                  "type": "string",
                  "minLength": 1
                },
                "connectionlimit": {
                  "description": "Connections to the relational store are pooled. This sets the limit on the pool allocated",
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "type": "neo4j",
            "user": "user",
            "password": "password",
            "host": "host"
          }
        }
      },
      "disabled": true,
      "port": "4111",
      "description": "REST Endpoint for graph service",
      "hostname": "localhost",
      "protocol": "https",
      "certPath": "security/nvstore",
      "configfilepath": "lib/n4jsvcconfig.json",
      "security": "nokey"
    },
    "esservice": {
      "init": {
        "class": "./esservice.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "persistence": {
              "type": "object",
              "required": [
                "host"
              ],
              "properties": {
                "host": {
                  "description": "host name for the elasticsearch server",
                  "type": "string",
                  "minLength": 1
                },
                "port": {
                  "description": "sftp port for the connection",
                  "type": "integer",
                  "minimum": 1
                },
                "username": {
                  "description": "user name for the elasticsearch server",
                  "type": "string",
                  "minLength": 1
                },
                "password": {
                  "description": "password for the elasticsearch server",
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "host": "host",
            "port": 9200,
            "username": "username",
            "password": "password"
          }
        }
      },
      "disabled": true,
      "port": "4008",
      "description": "",
      "hostname": "localhost",
      "protocol": "https",
      "certPath": "security/nvstore",
      "configfilepath": "./lib/esserviceconfig.json",
      "security": "nokey"
    },
    "azcosmosdb": {
      "init": {
        "class": "./azcosmosdb.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "persistence": {
              "type": "object",
              "required": [
                "endpoint",
                "key"
              ],
              "properties": {
                "endpoint": {
                  "description": "endpoint for the cosmosdb connection",
                  "type": "string",
                  "minLength": 1
                },
                "key": {
                  "description": "access key",
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "endpoint": "endpoint",
            "key": "key"
          }
        }
      },
      "disabled": true,
      "port": "4008",
      "description": "",
      "hostname": "localhost",
      "protocol": "https",
      "certPath": "security/nvstore",
      "configfilepath": "./lib/azcosmosdbconfig.json",
      "security": "nokey"
    },
    "connector": {
      "init": {
        "class": "./connector.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "connections"
          ],
          "properties": {
            "connections": {
              "patternProperties": {
                "type": "object",
                "^[a-z0-9]*$": {
                  "required": [
                    "service"
                  ],
                  "properties": {
                    "service": {
                      "description": "service name which implements the connector",
                      "type": "string",
                      "minLength": 1
                    },
                    "initoptions": {
                      "description": "initialization options specific to the specific connector. Refer to the service that implements the connection for the schema for these options",
                      "type": "object"
                    }
                  }
                }
              },
              "additionalProperties": false
            }
          }
        },
        "options": {
          "appserviceconfigfilepath": "./appserviceconfig.json",
          "connections": [
            {
              "name": "s3example1",
              "service": "nvstore",
              "initoptions": {
                "persistence": {
                  "type": "s3",
                  "bucketname": "bucketname",
                  "acckey": "acckey",
                  "secret": "secretkey",
                  "region": "region"
                }
              }
            },
            {
              "name": "mysqlexample",
              "service": "relstore",
              "initoptions": {
                "persistence": {
                  "type": "mysql",
                  "user": "mysql-user",
                  "password": "mysql-password",
                  "host": "mysql-host1",
                  "connectionlimit": 10
                }
              }
            },
            {
              "name": "sampleexample1",
              "service": "sampleservice"
            },
            {
              "name": "sampleexample2",
              "service": "sampleservice"
            }
          ]
        }
      },
      "protocol": "https",
      "port": 4007,
      "hostname": "localhost",
      "certPath": "security/nvstore",
      "description": "REST Endpoint connector service.",
      "configfilepath": "./lib/connectorconfig.json",
      "security": "nokey"
    },
    "workflow": {
      "init": {
        "class": "./workflow.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "appdir",
            "appserviceconfig",
            "persistence"
          ],
          "properties": {
            "appdir": {
              "description": "path to the application directory. All files are relative to this directory",
              "type": "string"
            },
            "appserviceconfig": {
              "description": "callee provided fully qualified path to the appserviceconfig.json, This will let keymgr support issuing keys for the app services that are setup with security acckey",
              "type": "string"
            },
            "secret": {
              "description": "secret used to encrypt the workflow plan in s3",
              "type": "string"
            },
            "persistence": {
              "type": "object",
              "oneOf": [
                {
                  "required": [
                    "type",
                    "bucketname",
                    "acckey",
                    "secret",
                    "region"
                  ]
                },
                {
                  "required": [
                    "type",
                    "storageaccount",
                    "container",
                    "acckey"
                  ]
                }
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "s3",
                      "azblob"
                    ]
                  }
                },
                "bucketname": {
                  "description": "name of s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "storageaccount": {
                  "description": "name of azure storage account",
                  "type": "string",
                  "minLength": 1
                },
                "container": {
                  "description": "name of azure container",
                  "type": "string",
                  "minLength": 1
                },
                "acckey": {
                  "description": "access key part of credentials that gives access to the s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "secret": {
                  "description": "secret key part of credentials that gives access to the s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "region": {
                  "description": "region in which this s3 bucket exists",
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        },
        "options": {
          "appdir": ".",
          "appserviceconfig": "./deploy/lib/serviceconfig.json",
          "secret": "password",
          "persistence": {
            "type": "s3",
            "bucketname": "bucketname",
            "acckey": "acckey",
            "secret": "secretkey",
            "region": "region"
          }
        }
      },
      "protocol": "https",
      "port": 4004,
      "hostname": "localhost",
      "certPath": "security/nvstore",
      "description": "REST Endpoint for workflow service.",
      "configfilepath": "./lib/workflowconfig.json",
      "pathsamples": "./testworkflow",
      "security": "nokey"
    },
    "sftp": {
      "init": {
        "class": "./sftpconnection.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "persistence": {
              "type": "object",
              "required": [
                "host",
                "username",
                "password",
                "port"
              ],
              "properties": {
                "host": {
                  "description": "host name for the sftp server",
                  "type": "string",
                  "minLength": 1
                },
                "username": {
                  "description": "username",
                  "type": "string",
                  "minLength": 1
                },
                "password": {
                  "description": "password",
                  "type": "string",
                  "minLength": 1
                },
                "port": {
                  "description": "sftp port for the connection",
                  "type": "integer",
                  "minimum": 1
                },
                "type": {
                  "description": "type of connection default is sftp but it can be ftp",
                  "type": "string",
                  "enum": [
                    "sftp"
                  ]
                },
                "forceIPv4": {
                  "description": "IPV4 only",
                  "type": "boolean"
                },
                "forceIPv6": {
                  "description": "IPV6 only",
                  "type": "boolean"
                },
                "readyTimeout": {
                  "description": "Connection Timeout",
                  "type": "integer"
                },
                "retries": {
                  "description": "number of retries",
                  "type": "integer"
                },
                "retry_factor": {
                  "description": "retry factor",
                  "type": "integer"
                },
                "retry_minTimeout": {
                  "description": "min timeout",
                  "type": "integer"
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "host": "demo.wftpserver.com",
            "port": 2222,
            "forceIPv4": false,
            "forceIPv6": false,
            "username": "demo-user",
            "password": "demo-user",
            "readyTimeout": 20000,
            "strictVendor": true,
            "retries": 2,
            "retry_factor": 2,
            "retry_minTimeout": 2000
          }
        }
      },
      "port": "4010",
      "disabled": true,
      "description": "Sftp Connector for CirrusWave",
      "hostname": "localhost",
      "protocol": "https",
      "certPath": "./certs/sftpconnection",
      "configfilepath": "./lib/sftpconfig.json",
      "security": "nokey"
    },
    "ftp": {
      "init": {
        "class": "./sftpconnection.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "persistence"
          ],
          "properties": {
            "persistence": {
              "type": "object",
              "required": [
                "host",
                "username",
                "password",
                "port"
              ],
              "properties": {
                "host": {
                  "description": "host name for the sftp server",
                  "type": "string",
                  "minLength": 1
                },
                "username": {
                  "description": "username",
                  "type": "string",
                  "minLength": 1
                },
                "password": {
                  "description": "password",
                  "type": "string",
                  "minLength": 1
                },
                "port": {
                  "description": "sftp port for the connection",
                  "type": "integer",
                  "minimum": 1
                },
                "type": {
                  "description": "type of connection default is sftp but it can be ftp",
                  "type": "string",
                  "enum": [
                    "ftp"
                  ]
                },
                "forceIPv4": {
                  "description": "IPV4 only",
                  "type": "boolean"
                },
                "forceIPv6": {
                  "description": "IPV6 only",
                  "type": "boolean"
                },
                "readyTimeout": {
                  "description": "Connection Timeout",
                  "type": "integer"
                },
                "retries": {
                  "description": "number of retries",
                  "type": "integer"
                },
                "retry_factor": {
                  "description": "retry factor",
                  "type": "integer"
                },
                "retry_minTimeout": {
                  "description": "min timeout",
                  "type": "integer"
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "host": "demo.wftpserver.com",
            "port": 21,
            "forceIPv4": false,
            "forceIPv6": false,
            "username": "demo-user",
            "password": "demo-user",
            "readyTimeout": 20000,
            "strictVendor": true,
            "retries": 2,
            "retry_factor": 2,
            "retry_minTimeout": 2000
          }
        }
      },
      "port": "4010",
      "disabled": true,
      "description": "Sftp Connector for CirrusWave",
      "hostname": "localhost",
      "protocol": "https",
      "certPath": "./certs/sftpconnection",
      "configfilepath": "./lib/sftpconfig.json",
      "security": "nokey"
    },
    "email": {
      "init": {
        "class": "./email.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "imaphost",
            "smtphost",
            "username",
            "password",
            "persistence"
          ],
          "properties": {
            "imaphost": {
              "description": "hostname for imap server e.g. imap.gmail.com",
              "type": "string"
            },
            "smtphost": {
              "description": "hostname for smtp server e.g. smtp.gmail.com",
              "type": "string"
            },
            "username": {
              "description": "emai username",
              "type": "string"
            },
            "password": {
              "description": "email password",
              "type": "string"
            },
            "imapport": {
              "description": "port if not 993 for imap",
              "type": "integer"
            },
            "smtpport": {
              "description": "port if not 465 for smtp",
              "type": "integer"
            },
            "tlsunauthorized": {
              "description": "gmail requires this.",
              "type": "boolean"
            },
            "invalidcertificate": {
              "description": "under extreme cicrumstances if the email server has invalid certificate, you can override security check with this.",
              "type": "boolean"
            },
            "persistence": {
              "type": "object",
              "description": "used to store the attachments downloaded from email",
              "oneOf": [
                {
                  "required": [
                    "type",
                    "dir"
                  ]
                },
                {
                  "required": [
                    "type",
                    "bucketname",
                    "acckey",
                    "secret",
                    "region"
                  ]
                },
                {
                  "required": [
                    "type",
                    "storageaccount",
                    "container",
                    "acckey"
                  ]
                }
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "s3",
                      "azblob",
                      "file"
                    ]
                  }
                },
                "dir": {
                  "description": "directory path to download the attachments to if type of persistence is file",
                  "type": "string",
                  "minLength": 1
                },
                "bucketname": {
                  "description": "name of s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "storageaccount": {
                  "description": "name of azure storage account",
                  "type": "string",
                  "minLength": 1
                },
                "container": {
                  "description": "name of azure container",
                  "type": "string",
                  "minLength": 1
                },
                "acckey": {
                  "description": "access key part of credentials that gives access to the s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "secret": {
                  "description": "secret key part of credentials that gives access to the s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "region": {
                  "description": "region in which this s3 bucket exists",
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        },
        "options": {
          "imaphost":"imap.email.com",
          "smpthost": "smtp.email.com",
          "username":"username",
          "password":"password",
          "imapport":993,
          "smtpport":465,
          "tlsunauthorized":true,
          "invalidcertificate":false,
          "persistence": {
            "type": "s3",
            "bucketname": "bucketname",
            "acckey": "acckey",
            "secret": "secretkey",
            "region": "region"
          }
        }
      },
      "port": "4011",
      "disabled":true,
      "description": "Email connector for CirrusWave. Uses IMap for reading email and SMTP for sending email",
      "hostname": "localhost",
      "protocol": "https",
      "certPath": "./certs/email",
      "configfilepath": "./lib/email_appconfig.json"
    },
    "rabbitmq": {
      "init": {
        "class": "./rmq.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "required": [
            "uri"
          ],
          "properties": {
            "uri": {
              "description": "uri for publish and subscribe operrations",
              "type": "string"
            },
            "adminuri": {
              "description": "uri to do 'admin' tasks. These tasks need extreme caution as they can affect the rabbitmq server and if wrongly used might disrupt and/or cause data loss.",
              "type": "string"
            }
          }
        },
        "options": {
          "uri":"amqp://guest:guest@localhost:5672",
          "adminuri":"http://guest:guest@localhost:15672"
        }
      },
      "port": "4011",
      "disabled":true,
      "description": "RabbitMQ connector for CirrusWave.",
      "hostname": "localhost",
      "protocol": "https",
      "certPath": "./certs/nvstore",
      "configfilepath": "./lib/rmqconfig.json"
    },
    "wsoc": {
      "init": {
        "class": "./wsoc.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "properties": {
            "persistence": {
              "type": "object",
              "description": "store client information",
              "oneOf": [
                {
                  "required": [
                    "type",
                    "bucketname",
                    "acckey",
                    "secret",
                    "region"
                  ]
                },
                {
                  "required": [
                    "type",
                    "storageaccount",
                    "container",
                    "acckey"
                  ]
                }
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "s3",
                      "azblob"
                    ]
                  }
                },
                "bucketname": {
                  "description": "name of s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "storageaccount": {
                  "description": "name of azure storage account",
                  "type": "string",
                  "minLength": 1
                },
                "container": {
                  "description": "name of azure container",
                  "type": "string",
                  "minLength": 1
                },
                "acckey": {
                  "description": "access key part of credentials that gives access to the s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "secret": {
                  "description": "secret key part of credentials that gives access to the s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "region": {
                  "description": "region in which this s3 bucket exists",
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "type": "s3",
            "bucketname": "bucketname",
            "acckey": "acckey",
            "secret": "secretkey",
            "region": "region"
          }
        }
      },
      "port": "4011",
      "disabled":true,
      "description": "Websocket client connector for CirrusWave.",
      "hostname": "localhost",
      "protocol": "https",
      "certPath": "./certs/nvstore",
      "configfilepath": "./lib/wsocconfig.json"
    },
    "wsocserver": {
      "init": {
        "class": "./wsocserver.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "properties": {
            "persistence": {
              "type": "object",
              "description": "store server information",
              "oneOf": [
                {
                  "required": [
                    "type",
                    "bucketname",
                    "acckey",
                    "secret",
                    "region"
                  ]
                },
                {
                  "required": [
                    "type",
                    "storageaccount",
                    "container",
                    "acckey"
                  ]
                }
              ],
              "properties": {
                "type": {
                  "description": "type of persistence",
                  "type": {
                    "enum": [
                      "s3",
                      "azblob"
                    ]
                  }
                },
                "bucketname": {
                  "description": "name of s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "storageaccount": {
                  "description": "name of azure storage account",
                  "type": "string",
                  "minLength": 1
                },
                "container": {
                  "description": "name of azure container",
                  "type": "string",
                  "minLength": 1
                },
                "acckey": {
                  "description": "access key part of credentials that gives access to the s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "secret": {
                  "description": "secret key part of credentials that gives access to the s3 bucket",
                  "type": "string",
                  "minLength": 1
                },
                "region": {
                  "description": "region in which this s3 bucket exists",
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }
        },
        "options": {
          "persistence": {
            "type": "s3",
            "bucketname": "bucketname",
            "acckey": "acckey",
            "secret": "secretkey",
            "region": "region"
          }
        }
      },
      "notifyserver": {
        "class": "./wsocserver.js",
        "function": "notifyserver"
      },
  
      "port": "4009",
      "disabled":false,
      "description": "Websocket server for CirrusWave.",
      "hostname": "localhost",
      "protocol": "https",
      "certPath": "security/nvstore",
      "configfilepath": "./lib/wsocserverconfig.json"
    },
    "converter": {
      "init": {
        "class": "./converter.js",
        "function": "initialize",
        "optionschema": {
          "type": "object",
          "properties": {}
        },
        "options": {}
      },
      "port": "4008",
      "description": "",
      "hostname": "localhost",
      "protocol": "https",
      "certPath": "security/nvstore",
      "configfilepath": "./lib/converterconfig.json",
      "security": "nokey"
    }
  }
}