Texecom Event Schemas

JSON Schema Documentation

Extended Unified Texecom Event Wrapper

A standardized schema for all events with detailed device information.

$idhttps://schemas.texecom-prod.com/events/v1/unified-event-model.json
$schemahttp://json-schema.org/draft-07/schema#

Properties

NameType
eventIdString
sourceString
timestampString
eventTypeString
versionString
correlationIdString
metadataObject
payloadOne of:
sourceDetailsArray

eventId

Description A unique, immutable identifier for this specific event instance. This should be a UUID.
TypeString
Required Yes
Format uuid

source

Description The origin of the event (e.g., 'PANEL_V4', 'PANEL_V5', 'SMARTCOM', 'SMARTCOMPRO', 'CLOUD', 'USER_SERVICE', 'NOTIFICATION_SERVICE').
TypeString
Required Yes

timestamp

Description The UTC timestamp when the event was generated at the source, in ISO 8601 format.
TypeString
Required Yes
Format date-time

eventType

Description A standardized classification of the event's meaning.
TypeString
Required Yes

version

Description The version of this standardized event schema. Example: '1.0.0'
TypeString
Required Yes
Pattern ^\d+\.\d+\.\d+$

correlationId

Description A unique identifier for a sequence of related events.
TypeString
Required Yes
Format uuid

metadata

Description Additional, non-essential data about the event, like routing information or device details.
TypeObject
Required No

payload

Description The original, raw event data from the source, wrapped within this unified schema. (https://texecom.atlassian.net/wiki/x/CoCWV)
TypeOne of:
Required Yes

payload.0

$id https://schemas.texecom-prod.com/events/v1/payload-options.json
Title Event Payload Options
Description Schema defining the possible payload structures for different event sources
TypeOne of:Object
Object
Object
Object

payload.0.0

Description Payload from panel devices (V4/V5)
TypeObject

payload.0.0.sourceType

Description The type of panel generating the event
TypeString
Enum
  • PANEL_V4
  • PANEL_V5

payload.0.0.data

Description Raw panel event data
TypeObject

payload.0.0.data.eventCode

Description Panel event code
TypeString

payload.0.0.data.area

Description Area number
TypeInteger

payload.0.0.data.zone

Description Zone number
TypeInteger

payload.0.0.data.user

Description User number
TypeInteger

payload.0.1

Description Payload from Smartcom/SmartcomPro devices
TypeObject

payload.0.1.sourceType

Description The type of Smartcom device
TypeString
Enum
  • SMARTCOM
  • SMARTCOMPRO

payload.0.1.data

Description Smartcom event data
TypeObject

payload.0.2

Description Payload from cloud services
TypeObject

payload.0.2.sourceType

Description Cloud-generated event
TypeString
Const CLOUD

payload.0.2.service

Description Name of the cloud service generating the event
TypeString

payload.0.2.data

Description Service-specific event data
TypeObject

payload.0.3

Description Generic payload structure for other event sources
TypeObject

payload.0.3.sourceType

Description The type of source generating the event
TypeString

payload.0.3.data

Description Event-specific data
TypeObject

sourceDetails

Description An array of structured objects for physical device-specific information.
TypeArray
Required Yes

sourceDetails.guid

Description A globally unique identifier for the physical device (e.g., panel_guid, smartcom_guid, cloud_id).
TypeString

sourceDetails.timestamp

Description The UTC timestamp when the event was processed by this service, in ISO 8601 format.
TypeString
Format date-time

sourceDetails.serialNumber

Description The serial number of the device if applicable.
TypeString

sourceDetails.deviceType

Description The type or model of the device (e.g., 'E048', 'smartcom', 'smartcompro').
TypeString

sourceDetails.firmwareVersion

Description The firmware version of the deviceType if applicable.
TypeString

sourceDetails.country

Description The ISO 3166 country code where the device is located.
TypeString

sourceDetails.language

Description The ISO 639 language code configured on the device.
TypeString

Schema

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://schemas.texecom-prod.com/events/v1/unified-event-model.json",
    "title": "Extended Unified Texecom Event Wrapper",
    "description": "A standardized schema for all events with detailed device information.",
    "type": "object",
    "required": [
        "eventId",
        "source",
        "timestamp",
        "eventType",
        "version",
        "correlationId",
        "payload",
        "sourceDetails"
    ],
    "properties": {
        "eventId": {
            "description": "A unique, immutable identifier for this specific event instance. This should be a UUID.",
            "type": "string",
            "format": "uuid"
        },
        "source": {
            "description": "The origin of the event (e.g., 'PANEL_V4', 'PANEL_V5', 'SMARTCOM', 'SMARTCOMPRO', 'CLOUD', 'USER_SERVICE', 'NOTIFICATION_SERVICE').",
            "type": "string"
        },
        "timestamp": {
            "description": "The UTC timestamp when the event was generated at the source, in ISO 8601 format.",
            "type": "string",
            "format": "date-time"
        },
        "eventType": {
            "description": "A standardized classification of the event's meaning.",
            "type": "string"
        },
        "version": {
            "description": "The version of this standardized event schema. Example: '1.0.0'",
            "type": "string",
            "pattern": "^\\d+\\.\\d+\\.\\d+$"
        },
        "correlationId": {
            "description": "A unique identifier for a sequence of related events.",
            "type": "string",
            "format": "uuid"
        },
        "metadata": {
            "description": "Additional, non-essential data about the event, like routing information or device details.",
            "type": "object"
        },
        "payload": {
            "description": "The original, raw event data from the source, wrapped within this unified schema. (https://texecom.atlassian.net/wiki/x/CoCWV)",
            "oneOf": [
                {
                    "$ref": "payload-options.json"
                }
            ]
        },
        "sourceDetails": {
            "description": "An array of structured objects for physical device-specific information.",
            "type": "array",
            "items": {
                "type": "object",
                "required": [
                    "guid"
                ],
                "properties": {
                    "guid": {
                        "description": "A globally unique identifier for the physical device (e.g., panel_guid, smartcom_guid, cloud_id).",
                        "type": "string"
                    },
                    "timestamp": {
                        "description": "The UTC timestamp when the event was processed by this service, in ISO 8601 format.",
                        "type": "string",
                        "format": "date-time"
                    },
                    "serialNumber": {
                        "description": "The serial number of the device if applicable.",
                        "type": "string"
                    },
                    "deviceType": {
                        "description": "The type or model of the device (e.g., 'E048', 'smartcom', 'smartcompro').",
                        "type": "string"
                    },
                    "firmwareVersion": {
                        "description": "The firmware version of the deviceType if applicable.",
                        "type": "string"
                    },
                    "country": {
                        "description": "The ISO 3166 country code where the device is located.",
                        "type": "string"
                    },
                    "language": {
                        "description": "The ISO 639 language code configured on the device.",
                        "type": "string"
                    }
                }
            }
        }
    }
}