{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-document-schema.json",
  "title": "Document",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-documents-api-openapi.yml#/components/schemas/Document",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "environment": {
      "type": "string",
      "enum": [
        "live",
        "test"
      ],
      "title": "Environment"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "source": {
      "type": "string",
      "title": "Source"
    },
    "filename": {
      "type": "string",
      "title": "Filename"
    },
    "content_type": {
      "type": "string",
      "title": "Content Type"
    },
    "size_bytes": {
      "type": "integer",
      "title": "Size Bytes"
    },
    "sha256": {
      "type": "string",
      "title": "Sha256"
    },
    "page_count": {
      "type": "integer",
      "title": "Page Count"
    },
    "render_status": {
      "type": "string",
      "title": "Render Status"
    },
    "render_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Render Reason"
    },
    "validation": {
      "additionalProperties": true,
      "type": "object",
      "title": "Validation"
    },
    "upload_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Upload Id"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "deleted_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Deleted At"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "id",
    "environment",
    "status",
    "source",
    "filename",
    "content_type",
    "size_bytes",
    "sha256",
    "page_count",
    "render_status",
    "render_reason",
    "validation",
    "upload_id",
    "created_at",
    "expires_at",
    "deleted_at"
  ]
}