{
  "$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": "url recorded for this result."
    },
    "description": {
      "type": "string",
      "description": "description recorded for this result."
    },
    "state": {
      "type": "string",
      "description": "Saved lifecycle or evidence state, as enumerated for this record."
    },
    "active_secret_count": {
      "type": "number",
      "description": "active secret count recorded for this result."
    },
    "event_types": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string",
            "description": "event types recorded for this result."
          },
          "description": "event types recorded for this result."
        },
        {
          "type": "null"
        }
      ],
      "description": "event types recorded for this result."
    },
    "feeds": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "feeds recorded for this result."
      },
      "description": "feeds recorded for this result."
    },
    "delivery_mode": {
      "type": "string",
      "description": "delivery mode recorded for this result."
    },
    "digest_frequency": {
      "anyOf": [
        {
          "type": "string",
          "description": "digest frequency recorded for this result."
        },
        {
          "type": "null"
        }
      ],
      "description": "digest frequency recorded for this result."
    },
    "digest_hour_utc": {
      "anyOf": [
        {
          "type": "number",
          "description": "digest hour utc recorded for this result."
        },
        {
          "type": "null"
        }
      ],
      "description": "digest hour utc recorded for this result."
    },
    "digest_last_sent_at": {
      "anyOf": [
        {
          "type": "string",
          "description": "digest last sent at recorded for this result."
        },
        {
          "type": "null"
        }
      ],
      "description": "digest last sent at recorded for this result."
    },
    "consecutive_failures": {
      "type": "number",
      "description": "consecutive failures recorded for this result."
    },
    "disabled_at": {
      "anyOf": [
        {
          "type": "string",
          "description": "disabled at recorded for this result."
        },
        {
          "type": "null"
        }
      ],
      "description": "disabled at recorded for this result."
    },
    "disabled_reason": {
      "anyOf": [
        {
          "type": "string",
          "description": "disabled reason recorded for this result."
        },
        {
          "type": "null"
        }
      ],
      "description": "disabled reason recorded for this result."
    },
    "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": {}
}
