{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atisrelay-com/json-schema/atisrelay-com-activity-subscription-schema.json",
  "title": "ActivitySubscription",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atisrelay-com-openapi.json#/components/schemas/ActivitySubscription",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "target_kind": {
          "type": "string"
        },
        "target": {
          "type": "string"
        },
        "events": {
          "type": "object",
          "properties": {
            "departed": {
              "type": "boolean"
            },
            "arrived": {
              "type": "boolean"
            },
            "behind_schedule": {
              "type": "boolean"
            },
            "diverted": {
              "type": "boolean"
            }
          }
        },
        "channels": {
          "type": "object",
          "properties": {
            "email": {
              "type": "boolean"
            },
            "webhook": {
              "type": "boolean"
            },
            "feed": {
              "type": "boolean"
            },
            "sms": {
              "type": "boolean"
            }
          }
        },
        "webhook_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "delay_threshold_minutes": {
          "type": "integer"
        },
        "last_event_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  ]
}