{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "projectId": {
      "description": "Identifier of the project returned by its create or list operation.",
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "url": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "Public HTTPS endpoint or destination URL required by this operation."
    },
    "description": {
      "description": "Optional human-readable description of this resource.",
      "type": "string",
      "maxLength": 200,
      "default": ""
    },
    "eventTypes": {
      "description": "Event type filters for this subscription; omitted means all supported types.",
      "minItems": 1,
      "maxItems": 32,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 64
      }
    },
    "feeds": {
      "description": "Independent source or destination event feeds to subscribe to.",
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "events",
          "target_events"
        ]
      },
      "default": [
        "events"
      ]
    },
    "deliveryMode": {
      "description": "Choose individual event deliveries or one digest per configured window.",
      "type": "string",
      "enum": [
        "events",
        "digest"
      ],
      "default": "events"
    },
    "digestFrequency": {
      "description": "Digest window frequency; applicable only when deliveryMode is digest.",
      "type": "string",
      "enum": [
        "daily",
        "weekly"
      ]
    },
    "digestHourUtc": {
      "description": "UTC hour from 0 to 23 when the digest window closes.",
      "type": "integer",
      "minimum": 0,
      "maximum": 23,
      "default": 9
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}
