{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nevlo-io/json-schema/nevlo-io-sync-job-status-schema.json",
  "title": "SyncJobStatus",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/nevlo-io-api-openapi.json#/components/schemas/SyncJobStatus",
  "type": "object",
  "required": [
    "syncId",
    "status",
    "createdAt"
  ],
  "properties": {
    "syncId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "syncing",
        "importing",
        "completed",
        "failed"
      ],
      "description": "- `pending` — Job created, not yet started\n- `syncing` — Waiting for bank data from finAPI\n- `importing` — Bank data received, importing transactions\n- `completed` — Sync finished successfully\n- `failed` — Sync failed (see error field)\n"
    },
    "newTransactions": {
      "type": "integer",
      "description": "Number of new transactions imported (only set when completed)"
    },
    "error": {
      "type": [
        "string",
        "null"
      ],
      "description": "Error details (only set when failed)"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}