{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/novumos-app/json-schema/novumos-app-bx-session-detail-schema.json",
  "title": "BxSessionDetail",
  "description": "One session plus the two blobs the list has no room for.\n\n``consent`` is the WIRE-4 assertion the visit was captured under — the\nproof-of-consent record, and the first thing anyone auditing a capture\ndecision asks for. ``replay_manifest`` is the summary P3a stores on the\nsession row; it is ``None`` for a session that was never recorded, and it\ncan outlive the chunks it describes — the player's own endpoint reports the\nlive count beside it.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/novumos-app-openapi.json#/components/schemas/BxSessionDetail",
  "properties": {
    "object": {
      "type": "string",
      "title": "Object",
      "default": "bx_session"
    },
    "id": {
      "type": "string",
      "title": "Id"
    },
    "property": {
      "type": "string",
      "title": "Property"
    },
    "session_id": {
      "type": "string",
      "title": "Session Id"
    },
    "visitor": {
      "type": "string",
      "title": "Visitor"
    },
    "org_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Org Id"
    },
    "user_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Id"
    },
    "user_kind": {
      "type": "string",
      "title": "User Kind"
    },
    "started_at": {
      "type": "string",
      "format": "date-time",
      "title": "Started At"
    },
    "ended_at": {
      "type": "string",
      "format": "date-time",
      "title": "Ended At"
    },
    "duration_ms": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Duration Ms"
    },
    "active_ms": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Active Ms"
    },
    "device_class": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Device Class"
    },
    "browser": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Browser"
    },
    "os": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Os"
    },
    "country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Country"
    },
    "entry_route": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Entry Route"
    },
    "exit_route": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Exit Route"
    },
    "event_count": {
      "type": "integer",
      "title": "Event Count",
      "default": 0
    },
    "click_count": {
      "type": "integer",
      "title": "Click Count",
      "default": 0
    },
    "error_count": {
      "type": "integer",
      "title": "Error Count",
      "default": 0
    },
    "rage_count": {
      "type": "integer",
      "title": "Rage Count",
      "default": 0
    },
    "dead_count": {
      "type": "integer",
      "title": "Dead Count",
      "default": 0
    },
    "quickback_count": {
      "type": "integer",
      "title": "Quickback Count",
      "default": 0
    },
    "friction_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Friction Score"
    },
    "frustrated": {
      "type": "boolean",
      "title": "Frustrated",
      "default": false
    },
    "internal_traffic": {
      "type": "boolean",
      "title": "Internal Traffic",
      "default": false
    },
    "has_replay": {
      "type": "boolean",
      "title": "Has Replay",
      "default": false
    },
    "consent": {
      "additionalProperties": true,
      "type": "object",
      "title": "Consent"
    },
    "replay_manifest": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Replay Manifest"
    }
  },
  "type": "object",
  "required": [
    "id",
    "property",
    "session_id",
    "visitor",
    "user_kind",
    "started_at",
    "ended_at"
  ]
}