{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anomalyarmor-ai/json-schema/anomalyarmor-ai-gate-event-request-schema.json",
  "title": "GateEventRequest",
  "description": "Request body for logging a gate event.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anomalyarmor-ai-billing-gate-events-api-openapi.yml#/components/schemas/GateEventRequest",
  "properties": {
    "event_type": {
      "type": "string",
      "enum": [
        "gate_impression",
        "gate_upgrade_click",
        "gate_checkout_complete"
      ],
      "title": "Event Type",
      "description": "Event type"
    },
    "feature": {
      "type": "string",
      "title": "Feature",
      "description": "PlanFeatureKey value"
    },
    "current_plan": {
      "type": "string",
      "title": "Current Plan",
      "description": "User's current plan name"
    },
    "target_plan": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Plan",
      "description": "Target upgrade plan"
    }
  },
  "type": "object",
  "required": [
    "event_type",
    "feature",
    "current_plan"
  ]
}