{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hatchet/json-schema/hatchet-v1-durable-event-log-list-schema.json",
  "title": "V1DurableEventLogList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hatchet-durable-tasks-api-openapi.yml#/components/schemas/V1DurableEventLogList",
  "type": "array",
  "items": {
    "$ref": "#/$defs/V1DurableEventLogEntry"
  },
  "$defs": {
    "V1DurableEventLogEntry": {
      "type": "object",
      "properties": {
        "nodeId": {
          "type": "integer",
          "format": "int64",
          "description": "The monotonically increasing node id in the event log."
        },
        "branchId": {
          "type": "integer",
          "format": "int64",
          "description": "The branch id when this entry was first seen."
        },
        "kind": {
          "$ref": "#/$defs/V1DurableEventLogKind"
        },
        "waitData": {
          "$ref": "#/$defs/V1WaitData"
        },
        "isSatisfied": {
          "type": "boolean",
          "description": "Whether this entry has been satisfied."
        },
        "satisfiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "When this entry was satisfied, if it has been satisfied."
        },
        "insertedAt": {
          "type": "string",
          "format": "date-time",
          "description": "When this entry was inserted."
        },
        "userMessage": {
          "type": "string",
          "description": "A user-provided message or label, sent when establishing a durable wait."
        },
        "taskExternalId": {
          "type": "string",
          "format": "uuid",
          "minLength": 36,
          "maxLength": 36,
          "description": "The external id of the durable task this event log entry is associated with."
        },
        "taskDisplayName": {
          "type": "string",
          "description": "The display name of the durable task this event log entry is associated with."
        }
      },
      "required": [
        "nodeId",
        "branchId",
        "kind",
        "isSatisfied",
        "insertedAt",
        "taskExternalId",
        "taskDisplayName"
      ]
    },
    "V1DurableEventLogKind": {
      "type": "string",
      "enum": [
        "RUN",
        "WAIT_FOR",
        "MEMO"
      ]
    },
    "V1DurableWaitCondition": {
      "type": "object",
      "properties": {
        "kind": {
          "$ref": "#/$defs/V1DurableWaitConditionKind"
        },
        "sleepDurationMs": {
          "type": "integer",
          "format": "int64"
        },
        "eventKey": {
          "type": "string"
        },
        "workflowName": {
          "type": "string"
        }
      },
      "required": [
        "kind"
      ]
    },
    "V1DurableWaitConditionKind": {
      "type": "string",
      "enum": [
        "SLEEP",
        "USER_EVENT",
        "CHILD_WORKFLOW"
      ]
    },
    "V1WaitData": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/V1WaitItem"
      }
    },
    "V1WaitItem": {
      "type": "object",
      "properties": {
        "kind": {
          "$ref": "#/$defs/V1DurableWaitConditionKind"
        },
        "sleepDurationMs": {
          "type": "integer",
          "format": "int64"
        },
        "eventKey": {
          "type": "string"
        },
        "workflowName": {
          "type": "string"
        },
        "or": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/V1DurableWaitCondition"
          }
        }
      }
    }
  }
}