{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "id": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "embeddedDeploymentId": { "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" }, "deviceId": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "deviceName": { "type": "string", "minLength": 1, "maxLength": 255 }, "deviceConnectionInfo": { "type": "object", "properties": { "time": { "type": "string", "format": "date-time" }, "connected": { "enum": [ 1, 0, null ] } } }, "flows": { "type": "object", "patternProperties": { "^[A-Fa-f\\d]{24}$": { "type": "object", "properties": { "flowName": { "type": "string", "minLength": 1, "maxLength": 255 }, "currentVersion": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 255 }, "desiredVersion": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 255 } } } }, "additionalProperties": false }, "currentBundleVersion": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 255 }, "desiredBundleVersion": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 255 }, "unknownBundle": { "type": "boolean" }, "logs": { "type": "array", "items": { "type": "object", "properties": { "sourceType": { "type": "string", "enum": [ "flow", "user", "device", "apiToken", "notebook" ] }, "sourceId": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "date": { "type": "string", "format": "date-time" }, "changeType": { "type": "string", "enum": [ "current", "desired" ] }, "updateType": { "type": "string", "enum": [ "newFlow", "replaceFlow", "removeFlow", "clear", "globals", "device", "unknownBundle", "knownBundle" ] }, "updateFlowId": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "desiredVersion": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 255 }, "newBundle": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 255 }, "attemptedBundle": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 255 }, "error": { "type": "string" } } } } } }