{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/track/json-schema/track-import-batch-upload-schema.json",
  "title": "ImportBatchUpload",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/track-imports-api-openapi.yml#/components/schemas/ImportBatchUpload",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "label": {
      "type": "string",
      "format": "uuid"
    },
    "vendor": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 64
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 255
    },
    "type": {
      "$ref": "#/$defs/TypeB4bEnum"
    },
    "file": {
      "type": "string",
      "format": "uri",
      "writeOnly": true
    },
    "period_start": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "period_end": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "statement_received_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/StatusEaaEnum"
        }
      ],
      "readOnly": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  },
  "required": [
    "created_at",
    "file",
    "id",
    "label",
    "status"
  ],
  "$defs": {
    "StatusEaaEnum": {
      "enum": [
        "pending",
        "analyzing",
        "analyzed",
        "importing",
        "completed",
        "failed",
        "canceled"
      ],
      "type": "string",
      "description": "* `pending` - Pending\n* `analyzing` - Analyzing\n* `analyzed` - Analyzed\n* `importing` - Importing\n* `completed` - Completed\n* `failed` - Failed\n* `canceled` - Canceled"
    },
    "TypeB4bEnum": {
      "enum": [
        "catalog",
        "statement"
      ],
      "type": "string",
      "description": "* `catalog` - Catalog\n* `statement` - Statement"
    }
  }
}