{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/novu/json-schema/novu-webhook-result-dto-schema.json",
  "title": "WebhookResultDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/novu-activity-api-openapi.yml#/components/schemas/WebhookResultDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the webhook result"
    },
    "event": {
      "description": "Event body containing the webhook event data",
      "allOf": [
        {
          "$ref": "#/$defs/EventBody"
        }
      ]
    }
  },
  "required": [
    "id",
    "event"
  ],
  "$defs": {
    "EventBody": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "description": "Status of the event",
          "enum": [
            "opened",
            "rejected",
            "sent",
            "deferred",
            "delivered",
            "bounced",
            "dropped",
            "clicked",
            "blocked",
            "spam",
            "unsubscribed",
            "delayed",
            "complaint",
            "created",
            "delivered",
            "accepted",
            "queued",
            "sending",
            "sent",
            "failed",
            "undelivered",
            "rejected",
            "delivered",
            "opened",
            "dismissed",
            "clicked",
            "failed"
          ]
        },
        "date": {
          "type": "string",
          "description": "Date of the event"
        },
        "externalId": {
          "type": "string",
          "description": "External ID from the provider"
        },
        "attempts": {
          "type": "number",
          "description": "Number of attempts"
        },
        "response": {
          "type": "string",
          "description": "Response from the provider"
        },
        "row": {
          "type": "string",
          "description": "Raw content from the provider webhook",
          "additionalProperties": true
        }
      },
      "required": [
        "status",
        "date"
      ]
    }
  }
}