{"$defs": {"CommandExecutionState": {"enum": ["CREATED", "CANCELLED", "SENT", "CONFIRMED", "DONE", "ERROR"], "title": "CommandExecutionState", "type": "string"}, "DeviceCommandChangeWebhook": {"properties": {"deviceType": {"$ref": "#/$defs/DeviceType"}, "deviceId": {"title": "Deviceid", "type": "string"}, "campsiteId": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Campsiteid"}, "type": {"const": "DeviceCommandChangeEvent", "default": "DeviceCommandChangeEvent", "title": "Type", "type": "string"}, "commandType": {"title": "Commandtype", "type": "string"}, "commandId": {"title": "Commandid", "type": "string"}, "executionState": {"$ref": "#/$defs/CommandExecutionState"}}, "required": ["deviceType", "deviceId", "campsiteId", "commandType", "commandId", "executionState"], "title": "DeviceCommandChangeWebhook", "type": "object"}, "DeviceMetadataWebhook": {"properties": {"deviceType": {"$ref": "#/$defs/DeviceType"}, "deviceId": {"title": "Deviceid", "type": "string"}, "campsiteId": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Campsiteid"}, "type": {"const": "DeviceMetadataChangeEvent", "default": "DeviceMetadataChangeEvent", "title": "Type", "type": "string"}}, "required": ["deviceType", "deviceId", "campsiteId"], "title": "DeviceMetadataWebhook", "type": "object"}, "DeviceReportWebhook": {"properties": {"deviceType": {"$ref": "#/$defs/DeviceType"}, "deviceId": {"title": "Deviceid", "type": "string"}, "campsiteId": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Campsiteid"}, "type": {"const": "DeviceReportEvent", "default": "DeviceReportEvent", "title": "Type", "type": "string"}, "reportType": {"title": "Reporttype", "type": "string"}, "reportId": {"title": "Reportid", "type": "string"}}, "required": ["deviceType", "deviceId", "campsiteId", "reportType", "reportId"], "title": "DeviceReportWebhook", "type": "object"}, "DeviceStatus": {"enum": ["UNKNOWN", "AVAILABLE", "UNAVAILABLE", "DISABLED", "OFFLINE"], "title": "DeviceStatus", "type": "string"}, "DeviceStatusWebhook": {"properties": {"deviceType": {"$ref": "#/$defs/DeviceType"}, "deviceId": {"title": "Deviceid", "type": "string"}, "campsiteId": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Campsiteid"}, "type": {"const": "DeviceStatusChangeEvent", "default": "DeviceStatusChangeEvent", "title": "Type", "type": "string"}, "status": {"$ref": "#/$defs/DeviceStatus"}}, "required": ["deviceType", "deviceId", "campsiteId", "status"], "title": "DeviceStatusWebhook", "type": "object"}, "DeviceType": {"enum": ["SocketMaster", "CampCardReader", "CampCardDispenser", "PaymentTerminal", "AccessControlDevice"], "title": "DeviceType", "type": "string"}, "NewDeviceCommandWebhook": {"properties": {"deviceType": {"$ref": "#/$defs/DeviceType"}, "deviceId": {"title": "Deviceid", "type": "string"}, "campsiteId": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Campsiteid"}, "type": {"const": "NewDeviceCommandEvent", "default": "NewDeviceCommandEvent", "title": "Type", "type": "string"}, "commandType": {"title": "Commandtype", "type": "string"}, "commandId": {"title": "Commandid", "type": "string"}}, "required": ["deviceType", "deviceId", "campsiteId", "commandType", "commandId"], "title": "NewDeviceCommandWebhook", "type": "object"}}, "properties": {"eventId": {"title": "Eventid", "type": "string"}, "eventTimestamp": {"format": "date-time", "title": "Eventtimestamp", "type": "string"}, "data": {"discriminator": {"mapping": {"DeviceCommandChangeEvent": "#/$defs/DeviceCommandChangeWebhook", "DeviceMetadataChangeEvent": "#/$defs/DeviceMetadataWebhook", "DeviceReportEvent": "#/$defs/DeviceReportWebhook", "DeviceStatusChangeEvent": "#/$defs/DeviceStatusWebhook", "NewDeviceCommandEvent": "#/$defs/NewDeviceCommandWebhook"}, "propertyName": "type"}, "oneOf": [{"$ref": "#/$defs/DeviceMetadataWebhook"}, {"$ref": "#/$defs/DeviceStatusWebhook"}, {"$ref": "#/$defs/NewDeviceCommandWebhook"}, {"$ref": "#/$defs/DeviceCommandChangeWebhook"}, {"$ref": "#/$defs/DeviceReportWebhook"}], "title": "Data"}}, "required": ["eventId", "eventTimestamp", "data"], "title": "WebhookBody", "type": "object"}