{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mantic/json-schema/mantic-attached-documents-response-schema.json",
  "title": "AttachedDocumentsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mantic-assistant-api-openapi.yml#/components/schemas/AttachedDocumentsResponse",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/AttachedDocumentView"
      },
      "type": "array",
      "title": "Items"
    }
  },
  "type": "object",
  "required": [
    "items"
  ],
  "$defs": {
    "AttachedDocumentView": {
      "properties": {
        "document_id": {
          "type": "string",
          "format": "uuid",
          "title": "Document Id"
        },
        "file_name": {
          "type": "string",
          "title": "File Name"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "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"
        },
        "mime_type": {
          "type": "string",
          "title": "Mime Type"
        },
        "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"
        },
        "has_thumbnail": {
          "type": "boolean",
          "title": "Has Thumbnail"
        },
        "paged": {
          "type": "boolean",
          "title": "Paged"
        },
        "attached_at": {
          "type": "string",
          "format": "date-time",
          "title": "Attached At"
        },
        "message_index": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Message Index"
        },
        "detached": {
          "type": "boolean",
          "title": "Detached",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "document_id",
        "file_name",
        "title",
        "status",
        "scan_status",
        "failure_code",
        "failure_detail",
        "mime_type",
        "page_count",
        "char_count",
        "document_form",
        "document_topic",
        "has_thumbnail",
        "paged",
        "attached_at",
        "message_index"
      ],
      "title": "AttachedDocumentView",
      "description": "A document attached to a conversation, as the composer and the thread render it."
    }
  }
}