{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anyhook-net/json-schema/anyhook-net-event-detail-schema.json",
  "title": "EventDetail",
  "description": "One event with its payload.",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anyhook-net-openapi.json#/components/schemas/EventDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "appId": {
      "type": "string"
    },
    "appName": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "eventType": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "success",
        "retrying",
        "failed",
        "rejected",
        "circuit_open",
        "quota_exceeded"
      ]
    },
    "attempt": {
      "type": "integer"
    },
    "maxAttempts": {
      "type": "integer"
    },
    "isReplay": {
      "type": "boolean"
    },
    "replayOf": {
      "type": [
        "string",
        "null"
      ]
    },
    "outboundUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "latencyMs": {
      "type": [
        "integer",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "nextRetryAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "inboundHeaders": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      }
    },
    "inboundBody": {
      "type": [
        "object",
        "null"
      ],
      "description": "The inbound body parsed as JSON."
    },
    "outboundResponse": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "status_code": {
          "type": "integer"
        },
        "body": {
          "type": "string"
        },
        "headers": {
          "type": "object"
        }
      }
    }
  }
}