{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Resource identifier returned by the operation."
    },
    "workspace_id": {
      "type": "string",
      "description": "Workspace that owns this record."
    },
    "project_id": {
      "anyOf": [
        {
          "type": "string",
          "description": "Project that owns this record."
        },
        {
          "type": "null"
        }
      ],
      "description": "Project that owns this record."
    },
    "url": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "description": "Saved lifecycle or evidence state, as enumerated for this record."
    },
    "active_secret_count": {
      "type": "number"
    },
    "event_types": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "feeds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "delivery_mode": {
      "type": "string"
    },
    "digest_frequency": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "digest_hour_utc": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "digest_last_sent_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "consecutive_failures": {
      "type": "number"
    },
    "disabled_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "disabled_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "description": "UTC timestamp when the record was created."
    },
    "updated_at": {
      "type": "string",
      "description": "UTC timestamp of the last record update."
    },
    "secret": {
      "description": "Webhook signing secret returned only when created or rotated. Store it securely.",
      "type": "string"
    }
  },
  "required": [
    "id",
    "workspace_id",
    "project_id",
    "url",
    "description",
    "state",
    "active_secret_count",
    "event_types",
    "feeds",
    "delivery_mode",
    "digest_frequency",
    "digest_hour_utc",
    "digest_last_sent_at",
    "consecutive_failures",
    "disabled_at",
    "disabled_reason",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": {}
}
