{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rendex-dev/json-schema/rendex-dev-screenshot-json-response-schema.json",
  "title": "ScreenshotJsonResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rendex-dev-openapi.yaml#/components/schemas/ScreenshotJsonResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "const": true
    },
    "data": {
      "type": "object",
      "properties": {
        "image": {
          "type": "string",
          "format": "byte",
          "description": "Base64-encoded screenshot image"
        },
        "contentType": {
          "type": "string",
          "description": "MIME type of the image"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Captured URL"
        },
        "width": {
          "type": "integer",
          "description": "Viewport width used"
        },
        "height": {
          "type": "integer",
          "description": "Viewport height used"
        },
        "format": {
          "type": "string",
          "enum": [
            "png",
            "jpeg",
            "webp",
            "pdf"
          ]
        },
        "bytesSize": {
          "type": "integer",
          "description": "Image size in bytes"
        },
        "capturedAt": {
          "type": "string",
          "format": "date-time",
          "description": "ISO 8601 timestamp of capture"
        },
        "quality": {
          "type": "string",
          "enum": [
            "full",
            "degraded",
            "best_attempt"
          ],
          "description": "Capture quality signal"
        },
        "waitStrategy": {
          "type": "string",
          "description": "Navigation strategy that succeeded"
        },
        "loadTimeMs": {
          "type": "integer",
          "description": "Page load time in milliseconds"
        },
        "truncated": {
          "type": "boolean",
          "description": "Whether full-page capture was height-capped"
        }
      }
    },
    "meta": {
      "$ref": "#/$defs/ResponseMeta"
    }
  },
  "$defs": {
    "ResponseMeta": {
      "type": "object",
      "properties": {
        "requestId": {
          "type": "string",
          "description": "Unique request identifier"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}