{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/robosystems-ai/json-schema/robosystems-ai-document-file-download-response-schema.json",
  "title": "DocumentFileDownloadResponse",
  "description": "A short-lived link to a stored document file.",
  "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/DocumentFileDownloadResponse",
  "properties": {
    "document_id": {
      "type": "string",
      "title": "Document Id"
    },
    "download_url": {
      "type": "string",
      "title": "Download Url",
      "description": "Presigned URL to GET the file."
    },
    "expires_in": {
      "type": "integer",
      "title": "Expires In",
      "description": "Seconds until the URL expires."
    },
    "file": {
      "$ref": "#/$defs/DocumentFileInfo"
    }
  },
  "type": "object",
  "required": [
    "document_id",
    "download_url",
    "expires_in",
    "file"
  ],
  "$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."
    }
  }
}