{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infinihash-com/json-schema/infinihash-com-edd-trigger-schema.json",
  "title": "EddTrigger",
  "description": "An enhanced-due-diligence trigger raised against a submission.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infinihash-com-edd-api-openapi.yml#/components/schemas/EddTrigger",
  "type": "object",
  "required": [
    "id",
    "submissionId",
    "triggerReason",
    "triggerCode",
    "createdAt"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "submissionId": {
      "type": "string"
    },
    "triggerReason": {
      "type": "string"
    },
    "triggerCode": {
      "type": "string",
      "description": "Rule code, e.g. E-07 (liveness failed)."
    },
    "status": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "pending",
        "in_review",
        "escalated",
        "cleared",
        null
      ]
    },
    "assignedTo": {
      "type": [
        "string",
        "null"
      ]
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "resolvedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}