{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qr-manager-ai/json-schema/qr-manager-ai-update-notifications-body-schema.json",
  "title": "UpdateNotificationsBody",
  "description": "All fields are optional integers ≥ 1, or `null` to clear. Omit a field to leave it unchanged.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qr-manager-ai-openapi.yml#/components/schemas/UpdateNotificationsBody",
  "type": "object",
  "properties": {
    "notifyOnScanCount": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "Fire an alert at every multiple of N total scans."
    },
    "notifyOnScansLeft": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "Fire an alert when N scans remain before `maxScans` is reached.\nRequires the QR code to have `maxScans` set.\n"
    },
    "notifyOnExpiryDays": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "Fire an alert N days before `expiresAt`.\nRequires the QR code to have `expiresAt` set.\n"
    },
    "notifyOnInactiveDays": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "Fire an alert after N consecutive days with no scans."
    }
  }
}