{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anteproof-com/json-schema/anteproof-com-alerts-body-schema.json",
  "title": "AlertsBody",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anteproof-com-openapi.json#/components/schemas/AlertsBody",
  "properties": {
    "crossing": {
      "anyOf": [
        {
          "$ref": "#/$defs/RuleUpdate"
        },
        {
          "type": "null"
        }
      ]
    },
    "move": {
      "anyOf": [
        {
          "$ref": "#/$defs/RuleUpdate"
        },
        {
          "type": "null"
        }
      ]
    },
    "resolution": {
      "anyOf": [
        {
          "$ref": "#/$defs/RuleUpdate"
        },
        {
          "type": "null"
        }
      ]
    },
    "email_enabled": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Email Enabled"
    }
  },
  "type": "object",
  "$defs": {
    "RuleUpdate": {
      "properties": {
        "enabled": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enabled"
        },
        "threshold": {
          "anyOf": [
            {
              "type": "number",
              "exclusiveMaximum": 1.0,
              "exclusiveMinimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Threshold"
        },
        "direction": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(below|above)$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Direction"
        }
      },
      "type": "object",
      "title": "RuleUpdate"
    }
  }
}