{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atisrelay-com/json-schema/atisrelay-com-activity-subscription-request-schema.json",
  "title": "ActivitySubscriptionRequest",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atisrelay-com-openapi.json#/components/schemas/ActivitySubscriptionRequest",
  "type": "object",
  "properties": {
    "target": {
      "type": "string"
    },
    "ident": {
      "type": "string"
    },
    "n_number": {
      "type": "string"
    },
    "icao_hex": {
      "type": "string"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "departed",
          "arrived",
          "behind_schedule",
          "diverted"
        ]
      }
    },
    "channels": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "email",
          "webhook",
          "feed",
          "sms"
        ]
      }
    },
    "delay_threshold_minutes": {
      "type": "integer"
    },
    "webhook_url": {
      "type": "string",
      "format": "uri"
    },
    "notify_departed": {
      "type": "boolean"
    },
    "notify_arrived": {
      "type": "boolean"
    },
    "notify_behind_schedule": {
      "type": "boolean"
    },
    "notify_diverted": {
      "type": "boolean"
    },
    "channel_email": {
      "type": "boolean"
    },
    "channel_webhook": {
      "type": "boolean"
    },
    "channel_feed": {
      "type": "boolean"
    },
    "channel_sms": {
      "type": "boolean"
    }
  }
}