{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phala/json-schema/phala-webhook-delivery-response-schema.json",
  "title": "WebhookDeliveryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phala-webhooks-api-openapi.yml#/components/schemas/WebhookDeliveryResponse",
  "properties": {
    "snowflake_id": {
      "type": "integer",
      "title": "Snowflake Id"
    },
    "event_id": {
      "type": "string",
      "title": "Event Id"
    },
    "event_type": {
      "type": "string",
      "title": "Event Type"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "attempts": {
      "type": "integer",
      "title": "Attempts"
    },
    "request_url": {
      "type": "string",
      "title": "Request Url"
    },
    "response_status": {
      "type": "integer",
      "title": "Response Status"
    },
    "error_message": {
      "type": "string",
      "title": "Error Message"
    },
    "duration_ms": {
      "type": "integer",
      "title": "Duration Ms",
      "default": 0
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "delivered_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Delivered At"
    },
    "original_event_id": {
      "type": "string",
      "title": "Original Event Id",
      "default": ""
    }
  },
  "type": "object",
  "required": [
    "snowflake_id",
    "event_id",
    "event_type",
    "status",
    "attempts",
    "request_url",
    "response_status",
    "error_message",
    "created_at"
  ]
}