{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alert-camp/json-schema/alert-camp-app-event-batch-schema.json",
  "title": "AppEventBatch",
  "description": "A batch of client events from one install/session.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alert-camp-events-api-openapi.yml#/components/schemas/AppEventBatch",
  "properties": {
    "install_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Install Id"
    },
    "session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Id"
    },
    "platform": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Platform"
    },
    "app_version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "App Version"
    },
    "events": {
      "items": {
        "$ref": "#/$defs/AppEventIn"
      },
      "type": "array",
      "maxItems": 200,
      "title": "Events"
    }
  },
  "type": "object",
  "$defs": {
    "AppEventIn": {
      "properties": {
        "event": {
          "type": "string",
          "maxLength": 64,
          "minLength": 1,
          "title": "Event"
        },
        "props": {
          "anyOf": [
            {
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Props"
        },
        "occurred_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Occurred At"
        }
      },
      "type": "object",
      "required": [
        "event"
      ],
      "title": "AppEventIn",
      "description": "One client event.  ``event`` is validated against the allowlist in the\nservice (unknown names are dropped, never rejected)."
    }
  }
}