{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/file-convert-online/json-schema/file-convert-online-file-dto-schema.json",
  "title": "FileDTO",
  "description": "File metadata returned by the file-service.",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/file-convert-online-mcp-openapi.json#/components/schemas/FileDTO",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Internal numeric ID."
    },
    "uid": {
      "type": "string",
      "description": "Public UUID used in all subsequent API calls."
    },
    "name": {
      "type": "string",
      "description": "Original filename."
    },
    "status": {
      "type": "string",
      "description": "File lifecycle status. Key values: `uploaded` (ready to use), `expired` (retention window elapsed, no longer downloadable).\n"
    },
    "upload_time": {
      "type": "string",
      "format": "date-time",
      "description": "UTC timestamp of upload."
    },
    "last_access_time": {
      "type": "string",
      "format": "date-time",
      "description": "UTC timestamp of last download."
    },
    "original": {
      "type": "boolean",
      "description": "True for source files uploaded by the caller; false for converted outputs."
    },
    "metadata": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FileMetadata"
      }
    }
  },
  "required": [
    "id",
    "uid",
    "name",
    "status",
    "upload_time",
    "original"
  ],
  "$defs": {
    "FileMetadata": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "key": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    }
  }
}