{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/robosystems-ai/json-schema/robosystems-ai-document-list-response-schema.json",
  "title": "DocumentListResponse",
  "description": "Response from listing indexed documents.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/robosystems-ai-documents-api-openapi.yml#/components/schemas/DocumentListResponse",
  "properties": {
    "total": {
      "type": "integer",
      "title": "Total"
    },
    "documents": {
      "items": {
        "$ref": "#/$defs/DocumentListItem"
      },
      "type": "array",
      "title": "Documents"
    },
    "graph_id": {
      "type": "string",
      "title": "Graph Id"
    }
  },
  "type": "object",
  "required": [
    "total",
    "documents",
    "graph_id"
  ],
  "$defs": {
    "DocumentFileInfo": {
      "properties": {
        "file_name": {
          "type": "string",
          "title": "File Name",
          "description": "The file's name as uploaded."
        },
        "content_type": {
          "type": "string",
          "title": "Content Type",
          "description": "The file's media type."
        },
        "size_bytes": {
          "type": "integer",
          "title": "Size Bytes",
          "description": "The stored file's size."
        },
        "sha256": {
          "type": "string",
          "title": "Sha256",
          "description": "Hex SHA-256 of the stored bytes, taken when the upload completed. A stored file never changes, so this identifies it."
        }
      },
      "type": "object",
      "required": [
        "file_name",
        "content_type",
        "size_bytes",
        "sha256"
      ],
      "title": "DocumentFileInfo",
      "description": "The stored file behind a document, when it is one."
    },
    "DocumentListItem": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "document_title": {
          "type": "string",
          "title": "Document Title"
        },
        "section_count": {
          "type": "integer",
          "title": "Section Count"
        },
        "source_type": {
          "type": "string",
          "title": "Source Type"
        },
        "folder": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Folder"
        },
        "tags": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tags"
        },
        "file": {
          "anyOf": [
            {
              "$ref": "#/$defs/DocumentFileInfo"
            },
            {
              "type": "null"
            }
          ],
          "description": "The stored file, for a document that is one."
        },
        "created_at": {
          "type": "string",
          "title": "Created At"
        },
        "updated_at": {
          "type": "string",
          "title": "Updated At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "document_title",
        "section_count",
        "source_type",
        "created_at",
        "updated_at"
      ],
      "title": "DocumentListItem",
      "description": "A document in the document list."
    }
  }
}