{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "id": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "integrationId": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "applicationId": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "creationDate": { "type": "string", "format": "date-time" }, "lastUpdated": { "type": "string", "format": "date-time" }, "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "credentialName": { "type": "string", "minLength": 1, "maxLength": 255 }, "integrationType": { "type": "string", "enum": [ "azureEventHub", "googlePubSub", "mqtt", "particle", "sqs" ] }, "enabled": { "type": "boolean" }, "topics": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 1024 }, "uniqueItems": true }, "azureEventHubConfig": { "type": "object", "properties": { "hubName": { "type": "string", "maxLength": 256, "minLength": 1 }, "hostName": { "type": "string", "maxLength": 256, "minLength": 1 }, "consumerGroup": { "type": "string", "maxLength": 256, "minLength": 1 }, "connectionString": { "type": "string", "minLength": 1, "maxLength": 1024 } }, "additionalProperties": false, "oneOf": [ { "required": [ "hubName", "consumerGroup", "connectionString" ] }, { "required": [ "hubName", "consumerGroup", "hostName" ] } ] }, "googlePubSubConfig": { "type": "object", "properties": { "projectId": { "type": "string", "maxLength": 255, "minLength": 1 }, "keyJson": { "type": "string", "maxLength": 32767, "minLength": 4 } }, "additionalProperties": false }, "mqttConfig": { "type": "object", "properties": { "clientId": { "type": "string", "minLength": 1, "maxLength": 1024 }, "username": { "type": "string", "minLength": 1, "maxLength": 1024 }, "password": { "type": "string", "minLength": 1, "maxLength": 1024 }, "clean": { "type": "boolean" }, "port": { "type": "number", "minimum": 1, "maximum": 65535 }, "protocol": { "type": "string", "enum": [ "mqtt", "mqtts", "ws", "wss" ] }, "host": { "type": "string", "minLength": 1, "maxLength": 1024 }, "privateKey": { "type": "string", "maxLength": 32767, "minLength": 4 }, "certificate": { "type": "string", "maxLength": 32767, "minLength": 4 }, "caCertificate": { "type": "string", "maxLength": 32767, "minLength": 4 }, "disableSSLVerification": { "type": "boolean" } }, "additionalProperties": false, "required": [ "port", "protocol", "host" ] }, "particleConfig": { "type": "object", "properties": { "accessToken": { "type": "string", "minLength": 1, "maxLength": 1024 }, "productSlugOrId": { "type": "string", "minLength": 1, "maxLength": 1024 }, "orgSlugOrId": { "type": "string", "minLength": 1, "maxLength": 1024 }, "deviceNameOrId": { "type": "string", "minLength": 1, "maxLength": 1024 } }, "additionalProperties": false, "required": [ "accessToken" ] }, "sqsConfig": { "type": "object", "properties": { "accessKeyId": { "type": "string", "min": 4, "max": 128 }, "secretAccessKey": { "type": "string", "min": 4, "max": 128 }, "region": { "type": "string", "min": 4, "max": 128 }, "queueUrl": { "type": "string", "min": 1, "max": 256 } }, "additionalProperties": false, "required": [ "queueUrl" ] }, "status": { "lastKeepAlive": { "type": [ "number" ] }, "nextAttempt": { "type": [ "number" ] }, "connectInfo": { "type": "object", "properties": { "ts": { "type": [ "number", "null" ] } } }, "disconnectInfo": { "type": "object", "properties": { "ts": { "type": [ "number", "null" ] }, "error": { "type": "string" } } } } } }