{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/recorded-future/main/json-schema/recorded-future-file-directory-response-schema.json",
  "title": "FileDirectoryResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recorded-future-fusion-api-openapi.yml#/components/schemas/FileDirectoryResponse",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "directory"
      ]
    },
    "name": {
      "type": "string"
    },
    "path": {
      "type": "string"
    },
    "files": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "$ref": "#/$defs/FileDirectory"
          },
          {
            "$ref": "#/$defs/File"
          }
        ]
      }
    }
  },
  "$defs": {
    "File": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "file"
          ]
        },
        "name": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "format": {
          "type": "string"
        },
        "hash": {
          "type": "string"
        },
        "flow": {
          "type": "string",
          "description": "Flow that produced the file"
        },
        "created": {
          "type": "string",
          "format": "date-string"
        },
        "size": {
          "type": "number",
          "description": "File size in bytes."
        },
        "owner": {
          "type": "string",
          "description": "The owner of the file."
        }
      }
    },
    "FileDirectory": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "directory"
          ]
        },
        "name": {
          "type": "string"
        },
        "path": {
          "type": "string"
        }
      }
    }
  }
}