{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anyhook-net/json-schema/anyhook-net-event-schema.json",
  "title": "Event",
  "description": "An event summary, as GET /api/v1/events lists it.",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anyhook-net-openapi.json#/components/schemas/Event",
  "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"
      ]
    },
    "outboundStatus": {
      "type": [
        "integer",
        "null"
      ]
    },
    "latencyMs": {
      "type": [
        "integer",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "nextRetryAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}