{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "application": { "title": "Application", "description": "Schema for a single Application", "type": "object", "properties": { "id": { "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" }, "appliedTemplateIds": { "type": "array", "items": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "maxItems": 1000 }, "ownerId": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "ownerType": { "type": "string", "enum": [ "user", "organization" ] }, "organizationName": { "type": "string", "minLength": 1, "maxLength": 255 }, "organizationIconColor": { "type": "string", "maxLength": 64 }, "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "description": { "type": "string", "maxLength": 1024 }, "endpointSlug": { "type": "string", "minLength": 3, "maxLength": 63, "pattern": "^[0-9a-z-]*$" }, "expUserTokenCutoff": { "type": "string", "format": "date-time" }, "endpointDefaultCors": { "type": "boolean" }, "globals": { "type": "array", "maxItems": 100, "items": { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[0-9a-zA-Z_-]{1,255}$" }, "json": { "type": "string", "minLength": 1, "maxLength": 32767 }, "cloudOnly": { "type": "boolean", "default": false }, "description": { "type": "string", "maxLength": 1024 } }, "additionalProperties": false, "required": [ "key", "json" ] } }, "blobUrlTTL": { "type": "number", "minimum": 3600, "maximum": 604800 }, "summary": { "type": "object", "properties": { "apiTokenCount": { "type": "integer" }, "certificateCount": { "type": "integer" }, "certificateAuthorityCount": { "type": "integer" }, "credentialCount": { "type": "integer" }, "dashCount": { "type": "integer" }, "dataTableCount": { "type": "integer" }, "deviceCount": { "type": "integer" }, "deviceRecipeCount": { "type": "integer" }, "eventCount": { "type": "integer" }, "experienceDomainCount": { "type": "integer" }, "experienceEndpointCount": { "type": "integer" }, "experienceGroupCount": { "type": "integer" }, "experienceSlugCount": { "type": "integer" }, "experienceUserCount": { "type": "integer" }, "experienceVersionCount": { "type": "integer" }, "experienceViewCount": { "type": "integer" }, "fileCount": { "type": "integer" }, "flowCount": { "type": "integer" }, "integrationCount": { "type": "integer" }, "keyCount": { "type": "integer" }, "notebookCount": { "type": "integer" }, "resourceJobCount": { "type": "integer" }, "webhookCount": { "type": "integer" }, "payloadCount": { "title": "Payload Stats", "description": "Schema for the result of a payload stats request", "type": "object", "properties": { "dataTable": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "deviceCommand": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "deviceConnect": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "deviceDisconnect": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "deviceState": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "endpoint": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "event": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "flowError": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "integration": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "mqttIn": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "mqttOut": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "notebook": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "timer": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "virtualButton": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "webhook": { "type": "object", "patternProperties": { ".*": { "type": "number" } } }, "resourceJob": { "type": "object", "patternProperties": { ".*": { "type": "number" } } } } }, "storageStats": { "type": "object", "properties": { "count": { "type": "integer" }, "size": { "type": "integer" } } }, "notebookStats": { "type": "object", "properties": { "awaitingCompletion": { "type": "integer" }, "minutesThisPeriod": { "type": "integer" }, "runsThisPeriod": { "type": "integer" } } } } }, "ftueTracking": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "pattern": "^[0-9a-zA-Z_-]{1,255}$" }, "version": { "type": "number" }, "status": { "type": "string", "enum": [ "skipped", "completed" ] } }, "required": [ "name", "version", "status" ], "additionalProperties": false }, "maxItems": 100 }, "archiveConfig": { "type": "object", "properties": { "directory": { "type": "string", "maxLength": 255 }, "mode": { "type": "string", "enum": [ "all", "whitelist", "blacklist" ] }, "deviceIds": { "type": "array", "items": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "maxItems": 1000 }, "deviceTags": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "pattern": "^[0-9a-zA-Z_-]{1,255}$" }, "value": { "type": "string", "minLength": 1, "maxLength": 255 } }, "additionalProperties": false }, "maxItems": 100 }, "includeDevices": { "type": "boolean", "default": true }, "includeEvents": { "type": "boolean", "default": false }, "includeDataTables": { "type": "boolean", "default": false }, "dataTablesMode": { "type": "string", "enum": [ "all", "whitelist", "blacklist" ] }, "dataTableIds": { "type": "array", "items": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "maxItems": 1000 }, "s3": { "type": "object", "properties": { "bucket": { "type": "string", "maxLength": 255 }, "accessKeyId": { "type": "string", "minLength": 4, "maxLength": 128 }, "secretAccessKey": { "type": "string", "minLength": 4, "maxLength": 128 }, "region": { "type": "string", "maxLength": 128 } }, "required": [ "bucket" ], "additionalProperties": false }, "credentialName": { "type": "string", "minLength": 1, "maxLength": 255 }, "gcs": { "type": "object", "properties": { "projectId": { "type": "string", "minLength": 1, "maxLength": 1024 }, "keyJson": { "type": "string", "maxLength": 32767, "minLength": 4 }, "bucket": { "type": "string", "maxLength": 255 } }, "required": [ "bucket" ], "additionalProperties": false }, "azure": { "type": "object", "properties": { "account": { "type": "string", "minLength": 3, "maxLength": 24 }, "accountKey": { "type": "string", "maxLength": 255 }, "bucket": { "type": "string", "minLength": 3, "maxLength": 63 } }, "required": [ "bucket" ], "additionalProperties": false } }, "additionalProperties": false } } }, "validationErrors": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "name": { "type": "string" }, "id": { "type": "string" }, "message": { "type": "string" } } } } }, "additionalProperties": false }