{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infinihash-com/json-schema/infinihash-com-alert-dash-list-schema.json",
  "title": "AlertDashList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infinihash-com-alerts-api-openapi.yml#/components/schemas/AlertDashList",
  "type": "object",
  "required": [
    "alerts",
    "total",
    "filters_applied",
    "page_info"
  ],
  "properties": {
    "alerts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AlertDashSarAlert"
      }
    },
    "total": {
      "type": "integer",
      "description": "Total matching alerts ignoring limit/offset."
    },
    "filters_applied": {
      "type": "object",
      "description": "Echo of the filters supplied (omitted when not supplied).",
      "properties": {
        "status": {
          "type": "string"
        },
        "alertType": {
          "type": "string"
        },
        "priority": {
          "type": "string"
        },
        "assignedTo": {
          "type": "string"
        },
        "dateFrom": {
          "type": "string"
        },
        "dateTo": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        }
      }
    },
    "page_info": {
      "type": "object",
      "required": [
        "limit",
        "offset"
      ],
      "properties": {
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        }
      }
    }
  },
  "$defs": {
    "AlertDashSarAlert": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "apiKeyId": {
          "type": "string"
        },
        "alertType": {
          "type": "string"
        },
        "stage": {
          "type": "string"
        },
        "priority": {
          "type": "string"
        },
        "subject": {
          "type": [
            "string",
            "null"
          ]
        },
        "submissionId": {
          "type": [
            "string",
            "null"
          ]
        },
        "transactionRefs": {
          "type": [
            "string",
            "null"
          ],
          "description": "Comma-joined list."
        },
        "autoFlags": {
          "type": [
            "string",
            "null"
          ],
          "description": "Comma-joined list."
        },
        "assignedTo": {
          "type": [
            "string",
            "null"
          ]
        },
        "analystNotes": {
          "type": [
            "string",
            "null"
          ]
        },
        "filingRef": {
          "type": [
            "string",
            "null"
          ]
        },
        "filedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "closureReason": {
          "type": [
            "string",
            "null"
          ]
        },
        "closedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}