{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-document-pages-schema.json",
  "title": "DocumentPages",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-documents-api-openapi.yml#/components/schemas/DocumentPages",
  "properties": {
    "document_id": {
      "type": "string",
      "title": "Document Id"
    },
    "page_count": {
      "type": "integer",
      "title": "Page Count"
    },
    "render_status": {
      "type": "string",
      "title": "Render Status"
    },
    "render_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Render Reason"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/PagePreview"
      },
      "type": "array",
      "title": "Items"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "document_id",
    "page_count",
    "render_status",
    "render_reason",
    "items"
  ],
  "$defs": {
    "PagePreview": {
      "properties": {
        "page_number": {
          "type": "integer",
          "title": "Page Number"
        },
        "width_px": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Width Px"
        },
        "height_px": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Height Px"
        },
        "url": {
          "type": "string",
          "title": "Url"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "page_number",
        "width_px",
        "height_px",
        "url"
      ],
      "title": "PagePreview"
    }
  }
}