{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/luckpanda-app/json-schema/luckpanda-app-webhook-delivery-schema.json",
  "title": "WebhookDelivery",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/luckpanda-app-openapi.yaml#/components/schemas/WebhookDelivery",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/Uuid"
    },
    "event_type": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "enum": [
        "pending",
        "delivered",
        "failed"
      ]
    },
    "attempts": {
      "type": "integer",
      "maximum": 8
    },
    "next_attempt_at": {
      "type": "string",
      "format": "date-time"
    },
    "last_status_code": {
      "type": [
        "integer",
        "null"
      ]
    },
    "last_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_attempt_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "delivered_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "payload": {
      "type": "string",
      "description": "The exact JSON body that is signed (GET /webhook-deliveries/{deliveryId} only)."
    }
  },
  "$defs": {
    "Uuid": {
      "type": "string",
      "format": "uuid"
    }
  }
}