{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/componecat-ai/json-schema/componecat-ai-outgoing-webhook-resource-schema.json",
  "title": "OutgoingWebhookResource",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/componecat-ai-openapi.yml#/components/schemas/OutgoingWebhookResource",
  "required": [
    "id",
    "url",
    "description",
    "entityTypeFilters",
    "eventFilters",
    "customFilters",
    "customHeaderNames",
    "detailLevel",
    "status",
    "consecutiveFailures",
    "lastDeliveryAt",
    "createdAt",
    "updatedAt"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "url": {
      "type": "string"
    },
    "description": {
      "type": [
        "null",
        "string"
      ]
    },
    "entityTypeFilters": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "string"
      }
    },
    "eventFilters": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "string"
      }
    },
    "customFilters": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/OutgoingWebhookCustomFilterSelectionResource"
      }
    },
    "customHeaderNames": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "detailLevel": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "consecutiveFailures": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int32"
    },
    "lastDeliveryAt": {
      "type": [
        "null",
        "string"
      ],
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "OutgoingWebhookCustomFilterSelectionResource": {
      "required": [
        "key",
        "values"
      ],
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}