{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/robosystems-ai/json-schema/robosystems-ai-list-table-files-response-schema.json",
  "title": "ListTableFilesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/robosystems-ai-files-api-openapi.yml#/components/schemas/ListTableFilesResponse",
  "properties": {
    "graph_id": {
      "type": "string",
      "title": "Graph Id",
      "description": "Graph database identifier"
    },
    "table_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Table Name",
      "description": "Table name (null if listing all files in graph)"
    },
    "files": {
      "items": {
        "$ref": "#/$defs/FileInfo"
      },
      "type": "array",
      "title": "Files",
      "description": "List of files in the table"
    },
    "total_files": {
      "type": "integer",
      "title": "Total Files",
      "description": "Total number of files"
    },
    "total_size_bytes": {
      "type": "integer",
      "title": "Total Size Bytes",
      "description": "Total size of all files in bytes"
    }
  },
  "type": "object",
  "required": [
    "graph_id",
    "files",
    "total_files",
    "total_size_bytes"
  ],
  "$defs": {
    "FileInfo": {
      "properties": {
        "file_id": {
          "type": "string",
          "title": "File Id",
          "description": "Unique file identifier"
        },
        "file_name": {
          "type": "string",
          "title": "File Name",
          "description": "Original file name"
        },
        "file_format": {
          "type": "string",
          "title": "File Format",
          "description": "File format (parquet, csv, etc.)"
        },
        "size_bytes": {
          "type": "integer",
          "title": "Size Bytes",
          "description": "File size in bytes"
        },
        "row_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Row Count",
          "description": "Estimated row count"
        },
        "upload_status": {
          "type": "string",
          "title": "Upload Status",
          "description": "Current upload status"
        },
        "upload_method": {
          "type": "string",
          "title": "Upload Method",
          "description": "Upload method used"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At",
          "description": "File creation timestamp"
        },
        "uploaded_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Uploaded At",
          "description": "File upload completion timestamp"
        },
        "s3_key": {
          "type": "string",
          "title": "S3 Key",
          "description": "S3 object key"
        }
      },
      "type": "object",
      "required": [
        "file_id",
        "file_name",
        "file_format",
        "size_bytes",
        "upload_status",
        "upload_method",
        "s3_key"
      ],
      "title": "FileInfo"
    }
  }
}