{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mantic/json-schema/mantic-document-summary-schema.json",
  "title": "DocumentSummary",
  "description": "A stored document as the library lists it, without its body text.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mantic-documents-api-openapi.yml#/components/schemas/DocumentSummary",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "file_name": {
      "type": "string",
      "title": "File Name"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Title"
    },
    "title_source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Title Source"
    },
    "mime_type": {
      "type": "string",
      "title": "Mime Type"
    },
    "extension": {
      "type": "string",
      "title": "Extension"
    },
    "byte_size": {
      "type": "integer",
      "title": "Byte Size"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "scan_status": {
      "type": "string",
      "title": "Scan Status"
    },
    "failure_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Failure Code"
    },
    "failure_detail": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Failure Detail"
    },
    "page_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Page Count"
    },
    "char_count": {
      "type": "integer",
      "title": "Char Count"
    },
    "document_form": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "paper",
            "article",
            "book",
            "report",
            "memo",
            "letter",
            "presentation",
            "contract",
            "announcement",
            "dataset",
            "specification",
            "other"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Document Form"
    },
    "document_topic": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "finance",
            "economics",
            "business",
            "legal",
            "politics",
            "technology",
            "science",
            "energy",
            "sports",
            "society",
            "media",
            "entertainment",
            "personal",
            "other"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Document Topic"
    },
    "primary_subject": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Primary Subject"
    },
    "source": {
      "type": "string",
      "title": "Source"
    },
    "has_thumbnail": {
      "type": "boolean",
      "title": "Has Thumbnail"
    },
    "usage_count": {
      "type": "integer",
      "title": "Usage Count"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "file_name",
    "title",
    "title_source",
    "mime_type",
    "extension",
    "byte_size",
    "status",
    "scan_status",
    "failure_code",
    "failure_detail",
    "page_count",
    "char_count",
    "document_form",
    "document_topic",
    "primary_subject",
    "source",
    "has_thumbnail",
    "usage_count",
    "created_at",
    "updated_at"
  ]
}