{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mybankstatementanalysis-com/json-schema/mybankstatementanalysis-com-analysis-list-response-schema.json",
  "title": "AnalysisListResponse",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-v1-openapi.json#/components/schemas/AnalysisListResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "processing",
              "completed",
              "failed"
            ]
          },
          "createdAt": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "statementMonth": {
            "type": [
              "string",
              "null"
            ]
          },
          "institution": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "kind": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name",
              "kind"
            ],
            "additionalProperties": false
          },
          "pages": {
            "type": "object",
            "properties": {
              "uploaded": {
                "type": "number"
              },
              "analyzed": {
                "type": "number"
              },
              "truncated": {
                "type": "boolean"
              }
            },
            "required": [
              "uploaded",
              "analyzed",
              "truncated"
            ],
            "additionalProperties": false
          },
          "totals": {
            "type": "object",
            "properties": {
              "income": {
                "type": "number"
              },
              "expenses": {
                "type": "number"
              },
              "net": {
                "type": "number"
              }
            },
            "required": [
              "income",
              "expenses",
              "net"
            ],
            "additionalProperties": false
          },
          "transactionCount": {
            "type": "number"
          },
          "lastTransactionDate": {
            "type": [
              "string",
              "null"
            ]
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "status",
          "createdAt",
          "fileName",
          "currency",
          "statementMonth",
          "institution",
          "pages",
          "totals",
          "transactionCount",
          "lastTransactionDate",
          "expiresAt"
        ],
        "additionalProperties": false
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "data",
    "nextCursor"
  ],
  "additionalProperties": false
}