{
  "source_commit": "b841bd30558c8bc49c4f6310b25aabecacb00f2d",
  "frame_off": {
    "schemaVersion": "1",
    "cameraId": 77,
    "sourceId": "77",
    "serverId": "server",
    "streamId": "stream",
    "runId": "run",
    "runGeneration": 1,
    "frameSeq": 50,
    "ptsNs": 5000000000,
    "ingestTimeWallMs": 1758000005123,
    "frameWidth": 640,
    "frameHeight": 360,
    "coordinateSpace": "SOURCE_FRAME",
    "format": "XYXY",
    "normalized": true,
    "origin": "TOP_LEFT",
    "configVersion": "revision",
    "frameTime": {
      "anchorId": "anchor",
      "startWallTimeMs": 1758000000000,
      "anchorRtpTimestamp": 0,
      "rtpClockRate": 90000,
      "rtpTimestamp": 450000,
      "rtpTimestampExt": 450000,
      "detectedAtWallMs": 1758000005000,
      "syncStatus": "SYNCED",
      "timeSource": "RTP_ZERO_BASE"
    },
    "objects": [
      {
        "objectRef": "0",
        "classId": 0,
        "modelKey": "RFDETRMedium",
        "confidence": 0.9,
        "bbox": [
          0.1,
          0.2,
          0.3,
          0.8
        ],
        "trackId": 1,
        "eventIds": [],
        "labelText": "person",
        "color": "#00CC66",
        "visible": true
      }
    ]
  },
  "frame_intrusion": {
    "schemaVersion": "1",
    "cameraId": 77,
    "sourceId": "77",
    "serverId": "server",
    "streamId": "stream",
    "runId": "run",
    "runGeneration": 1,
    "frameSeq": 50,
    "ptsNs": 5000000000,
    "ingestTimeWallMs": 1758000005123,
    "frameWidth": 640,
    "frameHeight": 360,
    "coordinateSpace": "SOURCE_FRAME",
    "format": "XYXY",
    "normalized": true,
    "origin": "TOP_LEFT",
    "configVersion": "revision",
    "frameTime": {
      "anchorId": "anchor",
      "startWallTimeMs": 1758000000000,
      "anchorRtpTimestamp": 0,
      "rtpClockRate": 90000,
      "rtpTimestamp": 450000,
      "rtpTimestampExt": 450000,
      "detectedAtWallMs": 1758000005000,
      "syncStatus": "SYNCED",
      "timeSource": "RTP_ZERO_BASE"
    },
    "objects": [
      {
        "objectRef": "0",
        "classId": 0,
        "modelKey": "RFDETRMedium",
        "confidence": 0.9,
        "bbox": [
          0.1,
          0.2,
          0.3,
          0.8
        ],
        "trackId": 1,
        "eventIds": [
          "event-01"
        ],
        "labelText": "person",
        "color": "#FF3030",
        "visible": true,
        "scenarioResults": [
          {
            "scenario": "INTRUSION",
            "point": [
              0.2,
              0.8
            ],
            "inside": true,
            "state": "INTRUSION",
            "confidence": 0.5,
            "eventId": "event-01"
          }
        ]
      }
    ],
    "scenarioConfig": {
      "INTRUSION": {
        "enabled": true,
        "roi_id": "primary",
        "roi_name": "Zone A",
        "debug_roi": true,
        "roi": [
          [
            0.0,
            0.0
          ],
          [
            1.0,
            0.0
          ],
          [
            1.0,
            1.0
          ],
          [
            0.0,
            1.0
          ]
        ],
        "point_x": 0.5,
        "point_y": 1.0,
        "confidence": 0.5,
        "dwell_seconds": 5.0,
        "rearm_seconds": 1.0,
        "grace_seconds": 1.0,
        "retention_seconds": 60.0,
        "max_states": 1024
      }
    },
    "scenarioRevision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "events": [
      {
        "schemaVersion": "1",
        "cameraId": 77,
        "sourceId": "77",
        "serverId": "server",
        "streamId": "stream",
        "runId": "run",
        "runGeneration": 1,
        "frameSeq": 50,
        "ptsNs": 5000000000,
        "ingestTimeWallMs": 1758000005123,
        "frameWidth": 640,
        "frameHeight": 360,
        "coordinateSpace": "SOURCE_FRAME",
        "format": "XYXY",
        "normalized": true,
        "origin": "TOP_LEFT",
        "configVersion": "revision",
        "frameTime": {
          "anchorId": "anchor",
          "startWallTimeMs": 1758000000000,
          "anchorRtpTimestamp": 0,
          "rtpClockRate": 90000,
          "rtpTimestamp": 450000,
          "rtpTimestampExt": 450000,
          "detectedAtWallMs": 1758000005000,
          "syncStatus": "SYNCED",
          "timeSource": "RTP_ZERO_BASE"
        },
        "eventId": "event-01",
        "scenario": "INTRUSION",
        "categoryKey": "person",
        "modelKey": "RFDETRMedium",
        "classId": 0,
        "trackId": 1,
        "roiId": "primary",
        "objectRef": "0",
        "confidence": 0.9,
        "bbox": [
          0.1,
          0.2,
          0.3,
          0.8
        ],
        "aiRecordedAtWallMs": 1758000005123,
        "clipUri": null,
        "thumbnailUri": null,
        "deliveryStatus": "NOT_SUBMITTED"
      }
    ]
  },
  "event_payload": {
    "schemaVersion": "1",
    "cameraId": 77,
    "sourceId": "77",
    "serverId": "server",
    "streamId": "stream",
    "runId": "run",
    "runGeneration": 1,
    "frameSeq": 50,
    "ptsNs": 5000000000,
    "ingestTimeWallMs": 1758000005123,
    "frameWidth": 640,
    "frameHeight": 360,
    "coordinateSpace": "SOURCE_FRAME",
    "format": "XYXY",
    "normalized": true,
    "origin": "TOP_LEFT",
    "configVersion": "revision",
    "frameTime": {
      "anchorId": "anchor",
      "startWallTimeMs": 1758000000000,
      "anchorRtpTimestamp": 0,
      "rtpClockRate": 90000,
      "rtpTimestamp": 450000,
      "rtpTimestampExt": 450000,
      "detectedAtWallMs": 1758000005000,
      "syncStatus": "SYNCED",
      "timeSource": "RTP_ZERO_BASE"
    },
    "eventId": "event-01",
    "scenario": "INTRUSION",
    "categoryKey": "person",
    "modelKey": "RFDETRMedium",
    "classId": 0,
    "trackId": 1,
    "roiId": "primary",
    "objectRef": "0",
    "confidence": 0.9,
    "bbox": [
      0.1,
      0.2,
      0.3,
      0.8
    ],
    "aiRecordedAtWallMs": 1758000005123,
    "clipUri": null,
    "thumbnailUri": null,
    "deliveryStatus": "NOT_SUBMITTED",
    "scenarioConfig": {
      "INTRUSION": {
        "enabled": true,
        "roi_id": "primary",
        "roi_name": "Zone A",
        "debug_roi": true,
        "roi": [
          [
            0.0,
            0.0
          ],
          [
            1.0,
            0.0
          ],
          [
            1.0,
            1.0
          ],
          [
            0.0,
            1.0
          ]
        ],
        "point_x": 0.5,
        "point_y": 1.0,
        "confidence": 0.5,
        "dwell_seconds": 5.0,
        "rearm_seconds": 1.0,
        "grace_seconds": 1.0,
        "retention_seconds": 60.0,
        "max_states": 1024
      }
    }
  },
  "event_body": {
    "serverId": "server",
    "events": [
      {
        "eventId": "event-01",
        "cameraId": 77,
        "eventType": "INTRUSION",
        "detectedAtWallMs": 1758000005000,
        "score": 0.7,
        "severityCode": "WARNING",
        "detail": {
          "aiRecordedAtWallMs": 1758000005123,
          "aiRecordedStage": "EVENT_CONFIRMED_BEFORE_ENQUEUE",
          "aiRecordedStageDescription": "Event confirmed; AI reference clock sampled once before asynchronous enqueue.",
          "scoreMeaning": "TEMPORARY_FIXED",
          "scoreMeasured": false,
          "runId": "run",
          "runGeneration": 1,
          "streamId": "stream",
          "frameSeq": 50,
          "ptsNs": 5000000000,
          "frameTime": {
            "anchorId": "anchor",
            "startWallTimeMs": 1758000000000,
            "anchorRtpTimestamp": 0,
            "rtpClockRate": 90000,
            "rtpTimestamp": 450000,
            "rtpTimestampExt": 450000,
            "detectedAtWallMs": 1758000005000,
            "syncStatus": "SYNCED",
            "timeSource": "RTP_ZERO_BASE"
          },
          "trackId": 1,
          "roiId": "primary",
          "artifact": {
            "clip": true,
            "thumbnail": true
          },
          "artifactError": null,
          "roiLabel": "Zone A"
        },
        "rtpTimestamp": 450000,
        "startWallTimeMs": 1758000000000,
        "clipUrl": "https://fixture.invalid/artifacts/cameras/77/2025-09-16/AI_142005.123+0900_INTRUSION_event-01/clip.mp4",
        "thumbnailUrl": "https://fixture.invalid/artifacts/cameras/77/2025-09-16/AI_142005.123+0900_INTRUSION_event-01/thumbnail.jpg"
      }
    ]
  },
  "relative": "cameras/77/2025-09-16/AI_142005.123+0900_INTRUSION_event-01"
}
