{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "projectId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "revision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Optimistic concurrency revision; supply it as expectedRevision on the next write."
    },
    "frequency": {
      "type": "string",
      "enum": [
        "off",
        "daily",
        "weekly"
      ]
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "placements",
          "destinations",
          "competitors",
          "index",
          "renewals"
        ]
      }
    },
    "recipient": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "hourUtc": {
      "type": "number",
      "const": 3
    },
    "weekdayUtc": {
      "type": "number",
      "const": 1
    },
    "nextAt": {
      "anyOf": [
        {
          "type": "string",
          "description": "UTC timestamp of the next scheduled summary; null while notifications are disabled."
        },
        {
          "type": "null"
        }
      ],
      "description": "UTC timestamp of the next scheduled summary; null while notifications are disabled."
    },
    "delivery": {
      "type": "string",
      "enum": [
        "disabled",
        "ready"
      ]
    }
  },
  "required": [
    "projectId",
    "revision",
    "frequency",
    "categories",
    "recipient",
    "hourUtc",
    "weekdayUtc",
    "nextAt",
    "delivery"
  ],
  "additionalProperties": {}
}
