{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/run402-com/json-schema/run402-com-notification-preferences-patch-schema.json",
  "title": "NotificationPreferencesPatch",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/run402-com-agent-api-openapi.yml#/components/schemas/NotificationPreferencesPatch",
  "type": "object",
  "properties": {
    "digest_cadence": {
      "type": "string",
      "enum": [
        "off",
        "daily",
        "weekly",
        "monthly"
      ]
    },
    "digest_day_of_week": {
      "type": "integer",
      "minimum": 1,
      "maximum": 7
    },
    "digest_hour_utc": {
      "type": "integer",
      "minimum": 0,
      "maximum": 23
    },
    "threshold_alerts": {
      "type": "string",
      "enum": [
        "off",
        "digest_only",
        "immediate"
      ]
    },
    "lifecycle_events": {
      "type": "string",
      "enum": [
        "off",
        "critical_only",
        "all"
      ]
    },
    "webhook_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "locale": {
      "type": "string"
    },
    "timezone": {
      "type": "string"
    }
  }
}