{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/abmeter-ai/json-schema/abmeter-ai-event-schema.json",
  "title": "Event",
  "description": "Recorded user action or system event for analysis",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/abmeter-ai-events-api-openapi.yml#/components/schemas/Event",
  "type": "object",
  "properties": {
    "event_slug": {
      "type": "string",
      "description": "The event type slug"
    },
    "user_id": {
      "type": "string",
      "description": "The user identifier"
    },
    "occurred_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the event occurred"
    },
    "custom_fields": {
      "type": "object",
      "additionalProperties": true,
      "description": "Custom fields defined in the event type"
    }
  },
  "required": [
    "event_slug",
    "user_id",
    "occurred_at"
  ]
}