{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lumethic-com/json-schema/lumethic-com-verification-api-response-v2-schema.json",
  "title": "VerificationApiResponseV2",
  "description": "Enhanced verification response with attestation data (v2).",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lumethic-com-openapi.json#/components/schemas/VerificationApiResponseV2",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id",
      "description": "Unique identifier for the verification"
    },
    "psd_export": {
      "anyOf": [
        {
          "$ref": "#/$defs/PsdExportSummary"
        },
        {
          "type": "null"
        }
      ],
      "description": "PSD flicker-export state (PSD_EXPORT_PLAN.md P4): whether the account can request one for this verification, and the current export's status when one exists."
    },
    "anchored_in": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/AnchoredIn"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Anchored In",
      "description": "Offloads whose anchored hash lists contain this verification's RAW file (ACQUISITION_MANIFEST_PLAN.md §4). anchored_at is attested by the timestamp authority; it is distinct from and earlier than verification time."
    },
    "status": {
      "$ref": "#/$defs/VerificationStatus",
      "description": "Current processing status of the verification"
    },
    "failure_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Failure Reason",
      "description": "Why a `failed` verification failed, in client terms: `sandbox_rejected` (the RAW sandbox rejected the file; its message is in `raw_metadata.raw_validation_error`), `attempts_exhausted` (every processing attempt died the same way, e.g. timed out on a very large RAW; a plain retry will not help) or `processing_error` (ours; worth a retry). Null unless status is `failed`. Decoder refusals do not fail: they complete as `unrated_unsupported_format` with the variant named."
    },
    "results": {
      "items": {
        "$ref": "#/$defs/VerificationResult"
      },
      "type": "array",
      "title": "Results",
      "description": "Array of detailed results from each verification algorithm"
    },
    "result": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Result",
      "description": "Overall authenticity determination: true = authentic, false = not authentic, null = pending"
    },
    "result_confidence": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Result Confidence",
      "description": "Legacy 0.0-1.0 score. NOT a probability of authenticity: for pair verifications it is the plain mean of the six non-informational checks (RAW_AUTHENTICITY, RECAPTURE, SSIM, IMAGEHASH, HISTOGRAM, FACES; EXIF, C2PA and image forensics are excluded). SSIM, IMAGEHASH and HISTOGRAM measure how closely the JPEG matches a neutral render of the RAW, so cropping, grading and resizing lower it; FACES contributes a fixed 0.8 when neither file has a face and RECAPTURE a fixed 0.9 when clean, so an unedited camera JPEG scores about 0.95. An abstaining check contributes 0.0. For image-only verifications it is the C2PA check's own confidence. Key on assurance_level; do not present this value as a percentage of certainty."
    },
    "assurance_level": {
      "anyOf": [
        {
          "$ref": "#/$defs/AssuranceLevel"
        },
        {
          "type": "null"
        }
      ],
      "description": "Graded assurance level: verified/provisional (capture verified) | provenance (C2PA only) | unrated | flagged. Prefer this and capture_verified over the legacy `result` boolean."
    },
    "assurance_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Assurance Reason",
      "description": "Qualifier for the level, e.g. 'unrated_no_evidence' or 'unrated_unsupported_format'"
    },
    "verdict": {
      "anyOf": [
        {
          "$ref": "#/$defs/Verdict"
        },
        {
          "type": "null"
        }
      ],
      "description": "Evidence-report verdict category (image-only). Additive: assurance_level is derived from it by a fixed mapping, so the two can never contradict."
    },
    "verdict_reason": {
      "anyOf": [
        {
          "$ref": "#/$defs/VerdictReason"
        },
        {
          "type": "null"
        }
      ],
      "description": "Machine-readable refinement of the verdict, e.g. 'c2pa_trusted_capture'"
    },
    "evidence_report": {
      "anyOf": [
        {
          "$ref": "#/$defs/EvidenceReport"
        },
        {
          "type": "null"
        }
      ],
      "description": "Full evidence report (findings, coverage, boundaries) for completed image-only verifications"
    },
    "verification_mode": {
      "$ref": "#/$defs/VerificationMode",
      "description": "Inputs used: raw_pair or image_only",
      "default": "raw_pair"
    },
    "capture_verified": {
      "type": "boolean",
      "title": "Capture Verified",
      "description": "True only when optical capture was forensically verified (verified/provisional). Integrators should treat this as the authoritative 'passed' signal.",
      "default": false
    },
    "raw_metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Raw Metadata",
      "description": "EXIF and technical metadata from the RAW file"
    },
    "image_metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image Metadata",
      "description": "EXIF and technical metadata from the JPEG file"
    },
    "rendition_info": {
      "anyOf": [
        {
          "$ref": "#/$defs/RenditionInfo"
        },
        {
          "type": "null"
        }
      ],
      "description": "Transformation details between RAW and JPEG"
    },
    "rendition_corrected_info": {
      "anyOf": [
        {
          "$ref": "#/$defs/RenditionInfo"
        },
        {
          "type": "null"
        }
      ],
      "description": "Lens-corrected transformation details between RAW and JPEG"
    },
    "raw_photo_hash": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Raw Photo Hash",
      "description": "SHA-256 hash of the RAW file for integrity verification"
    },
    "image_photo_hash": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image Photo Hash",
      "description": "SHA-256 hash of the JPEG file for integrity verification"
    },
    "image_thumbnail_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image Thumbnail Url",
      "description": "CDN URL for the verification thumbnail image"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name",
      "description": "User-provided name or original filename"
    },
    "request_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Request Id",
      "description": "The verification request this record answers, when it came in through a request link"
    },
    "pipeline_build": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pipeline Build",
      "description": "CI image tag of the pipeline that produced the result; a build identifier"
    },
    "tags": {
      "items": {
        "$ref": "#/$defs/TagResponse"
      },
      "type": "array",
      "title": "Tags",
      "description": "Account tags on this verification (owner-only; never on public responses)"
    },
    "comment_count": {
      "type": "integer",
      "title": "Comment Count",
      "description": "Number of internal comments on this verification",
      "default": 0
    },
    "account_id": {
      "type": "string",
      "format": "uuid",
      "title": "Account Id",
      "description": "Account that owns this verification"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At",
      "description": "ISO 8601 timestamp of last update"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At",
      "description": "ISO 8601 timestamp when verification was created"
    },
    "security_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Security Score",
      "description": "Device security score from 0.0 to 1.0 if attestation was provided. Higher = more trustworthy."
    },
    "attestation_validated": {
      "type": "boolean",
      "title": "Attestation Validated",
      "description": "Whether device attestation was provided and validated",
      "default": false
    },
    "device_fingerprint_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Device Fingerprint Id",
      "description": "Unique identifier for the device that captured the photo"
    },
    "camera_fingerprint_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Camera Fingerprint Id",
      "description": "Unique identifier for the camera hardware used"
    },
    "sequence_number": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sequence Number",
      "description": "Sequential capture number from the app session for tamper detection"
    },
    "integrity_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Integrity Score",
      "description": "App integrity score from attestation (0.0 to 1.0)"
    },
    "jailbreak_indicators": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Jailbreak Indicators",
      "description": "List of detected jailbreak/root indicators on the device"
    },
    "capture_gps_latitude": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Capture Gps Latitude",
      "description": "GPS latitude at time of capture"
    },
    "capture_gps_longitude": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Capture Gps Longitude",
      "description": "GPS longitude at time of capture"
    }
  },
  "type": "object",
  "required": [
    "id",
    "status",
    "results",
    "result",
    "result_confidence",
    "raw_metadata",
    "image_metadata",
    "rendition_info",
    "rendition_corrected_info",
    "raw_photo_hash",
    "image_photo_hash",
    "image_thumbnail_url",
    "name",
    "account_id",
    "updated_at",
    "created_at"
  ],
  "$defs": {
    "AlignmentTransformInfo": {
      "properties": {
        "homography": {
          "items": {
            "items": {
              "type": "number"
            },
            "type": "array"
          },
          "type": "array",
          "title": "Homography"
        },
        "crop_offset_x": {
          "type": "integer",
          "title": "Crop Offset X"
        },
        "crop_offset_y": {
          "type": "integer",
          "title": "Crop Offset Y"
        },
        "image_working_width": {
          "type": "integer",
          "title": "Image Working Width"
        },
        "image_working_height": {
          "type": "integer",
          "title": "Image Working Height"
        },
        "raw_working_width": {
          "type": "integer",
          "title": "Raw Working Width"
        },
        "raw_working_height": {
          "type": "integer",
          "title": "Raw Working Height"
        },
        "image_scale_x": {
          "type": "number",
          "title": "Image Scale X"
        },
        "image_scale_y": {
          "type": "number",
          "title": "Image Scale Y"
        },
        "raw_scale_x": {
          "type": "number",
          "title": "Raw Scale X"
        },
        "raw_scale_y": {
          "type": "number",
          "title": "Raw Scale Y"
        }
      },
      "type": "object",
      "required": [
        "homography",
        "crop_offset_x",
        "crop_offset_y",
        "image_working_width",
        "image_working_height",
        "raw_working_width",
        "raw_working_height",
        "image_scale_x",
        "image_scale_y",
        "raw_scale_x",
        "raw_scale_y"
      ],
      "title": "AlignmentTransformInfo",
      "description": "Exact aligned-pair geometry for the PSD export (PSD_EXPORT_PLAN.md step 3).\n\nMaps: original JPEG -> (per-axis scale) -> working JPEG -> (homography)\n-> working raw frame -> (translate by -crop_offset) -> aligned crop.\nPresent only when the pipeline tracked every step exactly."
    },
    "AnchoredIn": {
      "properties": {
        "offload_id": {
          "type": "string",
          "format": "uuid",
          "title": "Offload Id"
        },
        "offload_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Offload Label"
        },
        "anchored_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Anchored At"
        },
        "match_algorithm": {
          "$ref": "#/$defs/MatchAlgorithm"
        },
        "match_grade": {
          "$ref": "#/$defs/AssuranceGrade"
        }
      },
      "type": "object",
      "required": [
        "offload_id",
        "offload_label",
        "anchored_at",
        "match_algorithm",
        "match_grade"
      ],
      "title": "AnchoredIn",
      "description": "Provenance block on verification responses (plan §4)."
    },
    "AssuranceGrade": {
      "type": "string",
      "enum": [
        "content_bound",
        "event_only"
      ],
      "title": "AssuranceGrade",
      "description": "Hash-binding strength of an anchor.\n\ncontent_bound: the hash binds file contents. event_only: the anchor\nproves the offload event only."
    },
    "AssuranceLevel": {
      "type": "string",
      "enum": [
        "verified",
        "provisional",
        "provenance",
        "unrated",
        "flagged"
      ],
      "title": "AssuranceLevel",
      "description": "Graded authenticity outcome (replaces the flat pass/fail).\n\n- verified: RAW+JPEG pair, capture forensically verified, zero abstentions.\n- provisional: pair, capture verified with one incidental abstention.\n- provenance: JPEG-only, C2PA capture-claim from a trusted device signer;\n  provenance only, capture NOT forensically verified.\n- unrated: no usable evidence (see the accompanying reason code). Image-only\n  screening that raises advisory forensic flags also lands here\n  (``unrated_indeterminate``) — the flags stay in ``results[].details`` but,\n  being uncalibrated, they do not brand the photo or demand human review.\n- flagged: checks failed / tampering indicators.\n\nOnly ``verified`` and ``provisional`` set ``capture_verified=True``."
    },
    "BoundingBox": {
      "properties": {
        "corners": {
          "items": {
            "prefixItems": [
              {
                "type": "integer"
              },
              {
                "type": "integer"
              }
            ],
            "type": "array",
            "maxItems": 2,
            "minItems": 2
          },
          "type": "array",
          "title": "Corners"
        }
      },
      "type": "object",
      "required": [
        "corners"
      ],
      "title": "BoundingBox",
      "description": "Represents a bounding box that can be non-rectangular due to perspective transforms."
    },
    "CoverageEntry": {
      "properties": {
        "check": {
          "type": "string",
          "title": "Check",
          "description": "Stable check id, e.g. 'ela', 'synthid'"
        },
        "reason": {
          "type": "string",
          "title": "Reason",
          "description": "Why the check has this coverage state, e.g. 'non_jpeg_input'"
        }
      },
      "type": "object",
      "required": [
        "check",
        "reason"
      ],
      "title": "CoverageEntry"
    },
    "CropInfo": {
      "properties": {
        "top": {
          "type": "integer",
          "title": "Top"
        },
        "bottom": {
          "type": "integer",
          "title": "Bottom"
        },
        "left": {
          "type": "integer",
          "title": "Left"
        },
        "right": {
          "type": "integer",
          "title": "Right"
        }
      },
      "type": "object",
      "required": [
        "top",
        "bottom",
        "left",
        "right"
      ],
      "title": "CropInfo"
    },
    "EvidenceCoverage": {
      "properties": {
        "ran": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Ran",
          "description": "Checks that ran and whose findings are shown"
        },
        "unavailable": {
          "items": {
            "$ref": "#/$defs/CoverageEntry"
          },
          "type": "array",
          "title": "Unavailable",
          "description": "Checks Lumethic cannot run at all yet (e.g. unlicensed watermark detectors)"
        },
        "skipped": {
          "items": {
            "$ref": "#/$defs/CoverageEntry"
          },
          "type": "array",
          "title": "Skipped",
          "description": "Checks skipped for this input (format, resolution, preconditions)"
        },
        "withheld": {
          "items": {
            "$ref": "#/$defs/CoverageEntry"
          },
          "type": "array",
          "title": "Withheld",
          "description": "Checks that ran but whose findings are withheld pending corpus calibration (§9 dark-shipping)"
        },
        "errored": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Errored",
          "description": "Checks that raised; errors are never findings"
        }
      },
      "type": "object",
      "title": "EvidenceCoverage",
      "description": "What was and wasn't checked. Mandatory: silent degradation is a spec violation."
    },
    "EvidenceFinding": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id",
          "description": "Stable finding code, e.g. 'c2pa.manifest' (EVIDENCE_REPORT_BACKEND_SPEC §5.3)"
        },
        "layer": {
          "$ref": "#/$defs/FindingLayer",
          "description": "Evidence layer that produced the finding"
        },
        "kind": {
          "$ref": "#/$defs/FindingKind",
          "description": "fact | declaration | observation; observations never drive the verdict"
        },
        "result": {
          "type": "string",
          "title": "Result",
          "description": "Finding-specific result value; observations use consistent|inconsistent|unclear"
        },
        "statement": {
          "type": "string",
          "title": "Statement",
          "description": "i18n code for what was observed; resolved by the frontend"
        },
        "why_it_matters": {
          "type": "string",
          "title": "Why It Matters",
          "description": "i18n code for why it matters (incl. benign explanations)"
        },
        "details": {
          "additionalProperties": true,
          "type": "object",
          "title": "Details",
          "description": "Structured measurement evidence for the expandable view. Never contains detector confidences."
        }
      },
      "type": "object",
      "required": [
        "id",
        "layer",
        "kind",
        "result",
        "statement",
        "why_it_matters"
      ],
      "title": "EvidenceFinding",
      "description": "One finding in the evidence report. Text is i18n codes, never prose."
    },
    "EvidenceReport": {
      "properties": {
        "verdict": {
          "$ref": "#/$defs/Verdict"
        },
        "verdict_reason": {
          "$ref": "#/$defs/VerdictReason"
        },
        "findings": {
          "items": {
            "$ref": "#/$defs/EvidenceFinding"
          },
          "type": "array",
          "title": "Findings"
        },
        "coverage": {
          "$ref": "#/$defs/EvidenceCoverage"
        },
        "boundaries": {
          "type": "string",
          "title": "Boundaries",
          "description": "i18n code for the what-this-cannot-tell-you block"
        },
        "next_step": {
          "$ref": "#/$defs/NextStep",
          "default": "raw_verification"
        }
      },
      "type": "object",
      "required": [
        "verdict",
        "verdict_reason",
        "coverage",
        "boundaries"
      ],
      "title": "EvidenceReport",
      "description": "Single-image evidence report (EVIDENCE_REPORT_BACKEND_SPEC §2.2-2.3).\n\nAssembled on read from stored verificator results; emits stable codes only."
    },
    "FindingKind": {
      "type": "string",
      "enum": [
        "fact",
        "declaration",
        "observation"
      ],
      "title": "FindingKind",
      "description": "Kind taxonomy for evidence findings (EVIDENCE_REPORT_BACKEND_SPEC §5.3).\n\nOnly facts (and generative declarations, for `self_declared_ai`) may drive\nthe verdict; observations never do — enforced in the derivation, which takes\nno observation input."
    },
    "FindingLayer": {
      "type": "string",
      "enum": [
        "provenance",
        "watermark",
        "file",
        "physics"
      ],
      "title": "FindingLayer"
    },
    "MatchAlgorithm": {
      "type": "string",
      "enum": [
        "sha512",
        "sha256",
        "xxh64"
      ],
      "title": "MatchAlgorithm"
    },
    "NextStep": {
      "type": "string",
      "enum": [
        "raw_verification",
        "request_verification"
      ],
      "title": "NextStep",
      "description": "The flip (product spec P6): the constructive path out of the report."
    },
    "PsdExportSummary": {
      "properties": {
        "available": {
          "type": "boolean",
          "title": "Available"
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/$defs/VerificationStatus"
            },
            {
              "type": "null"
            }
          ]
        },
        "expires_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expires At"
        }
      },
      "type": "object",
      "required": [
        "available"
      ],
      "title": "PsdExportSummary",
      "description": "Compact PSD-export state embedded in the v2 verification response."
    },
    "RenditionInfo": {
      "properties": {
        "image_thumbnail_url": {
          "type": "string",
          "title": "Image Thumbnail Url"
        },
        "raw_thumbnail_url": {
          "type": "string",
          "title": "Raw Thumbnail Url"
        },
        "rendition_longest_edge": {
          "type": "integer",
          "title": "Rendition Longest Edge"
        },
        "rendition_thumbnail_longest_edge": {
          "type": "integer",
          "title": "Rendition Thumbnail Longest Edge"
        },
        "crop_percentage": {
          "type": "number",
          "title": "Crop Percentage"
        },
        "crop_pixels": {
          "$ref": "#/$defs/CropInfo"
        },
        "rotation_degrees": {
          "type": "number",
          "title": "Rotation Degrees"
        },
        "resize_info": {
          "$ref": "#/$defs/ResizeInfo"
        },
        "bounding_box": {
          "$ref": "#/$defs/BoundingBox"
        },
        "original_image_width": {
          "type": "integer",
          "title": "Original Image Width"
        },
        "original_image_height": {
          "type": "integer",
          "title": "Original Image Height"
        },
        "original_raw_width": {
          "type": "integer",
          "title": "Original Raw Width"
        },
        "original_raw_height": {
          "type": "integer",
          "title": "Original Raw Height"
        },
        "rendition_image_width": {
          "type": "integer",
          "title": "Rendition Image Width"
        },
        "rendition_image_height": {
          "type": "integer",
          "title": "Rendition Image Height"
        },
        "rendition_raw_width": {
          "type": "integer",
          "title": "Rendition Raw Width"
        },
        "rendition_raw_height": {
          "type": "integer",
          "title": "Rendition Raw Height"
        },
        "thumbnail_image_width": {
          "type": "integer",
          "title": "Thumbnail Image Width"
        },
        "thumbnail_image_height": {
          "type": "integer",
          "title": "Thumbnail Image Height"
        },
        "thumbnail_raw_width": {
          "type": "integer",
          "title": "Thumbnail Raw Width"
        },
        "thumbnail_raw_height": {
          "type": "integer",
          "title": "Thumbnail Raw Height"
        },
        "exp_shift": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Exp Shift"
        },
        "gamma_power": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Gamma Power"
        },
        "gamma_slope": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Gamma Slope"
        },
        "no_auto_bright": {
          "type": "boolean",
          "title": "No Auto Bright",
          "default": false
        },
        "lens_correction_aperture": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lens Correction Aperture"
        },
        "lens_correction_focal_length": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lens Correction Focal Length"
        },
        "lens_correction_distance": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lens Correction Distance"
        },
        "lens_correction_crop_factor": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lens Correction Crop Factor"
        },
        "lens_correction_source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lens Correction Source"
        },
        "lens_correction_fit": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lens Correction Fit"
        },
        "alignment_transform": {
          "anyOf": [
            {
              "$ref": "#/$defs/AlignmentTransformInfo"
            },
            {
              "type": "null"
            }
          ]
        },
        "alignment_fallback": {
          "type": "boolean",
          "title": "Alignment Fallback",
          "default": false
        },
        "alignment_inlier_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alignment Inlier Count"
        },
        "alignment_rmse_px": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alignment Rmse Px"
        },
        "alignment_rmse_frac": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alignment Rmse Frac"
        },
        "alignment_ecc_refined": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alignment Ecc Refined"
        },
        "alignment_template_outside_fraction": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alignment Template Outside Fraction"
        },
        "alignment_raw_covered_fraction": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alignment Raw Covered Fraction"
        },
        "alignment_inlier_extent_fraction": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alignment Inlier Extent Fraction"
        },
        "alignment_residual_by_radius": {
          "anyOf": [
            {
              "items": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alignment Residual By Radius"
        }
      },
      "type": "object",
      "required": [
        "image_thumbnail_url",
        "raw_thumbnail_url",
        "rendition_longest_edge",
        "rendition_thumbnail_longest_edge",
        "crop_percentage",
        "crop_pixels",
        "rotation_degrees",
        "resize_info",
        "bounding_box",
        "original_image_width",
        "original_image_height",
        "original_raw_width",
        "original_raw_height",
        "rendition_image_width",
        "rendition_image_height",
        "rendition_raw_width",
        "rendition_raw_height",
        "thumbnail_image_width",
        "thumbnail_image_height",
        "thumbnail_raw_width",
        "thumbnail_raw_height"
      ],
      "title": "RenditionInfo",
      "description": "Rendition information containing transformation and dimension details."
    },
    "ResizeInfo": {
      "properties": {
        "width_scale": {
          "type": "number",
          "title": "Width Scale"
        },
        "height_scale": {
          "type": "number",
          "title": "Height Scale"
        }
      },
      "type": "object",
      "required": [
        "width_scale",
        "height_scale"
      ],
      "title": "ResizeInfo"
    },
    "TagResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id",
          "description": "Tag identifier"
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "Display name (case preserved; matching is case-insensitive)"
        },
        "color": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Color",
          "description": "Optional '#rrggbb' colour"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "title": "TagResponse",
      "description": "One tag of the account's vocabulary as attached to a verification."
    },
    "Verdict": {
      "type": "string",
      "enum": [
        "ai_declared",
        "modified_after_signing",
        "provenance_verified",
        "self_declared_ai",
        "unrated"
      ],
      "title": "Verdict",
      "description": "Evidence-report verdict category (EVIDENCE_REPORT_BACKEND_SPEC §3).\n\nAdditive to ``AssuranceLevel``: the legacy level is derived from the verdict\nby a fixed mapping, so the two fields can never contradict. Exactly one\nverdict applies, decided by precedence over fact/declaration findings only —\nobservations never participate."
    },
    "VerdictReason": {
      "type": "string",
      "enum": [
        "watermark_detected",
        "c2pa_generative_declared",
        "tampered",
        "invalid_signature",
        "c2pa_trusted_capture",
        "untrusted_signer_generative",
        "iptc_digital_source_type",
        "generator_metadata",
        "container_signature",
        "untrusted_signer",
        "trust_unverified",
        "no_capture_claim",
        "no_trusted_timestamp",
        "signing_credential_expired",
        "unlisted_actions_present",
        "computational_capture_only",
        "unrated_indeterminate",
        "unrated_reviewed_clean",
        "unrated_no_evidence"
      ],
      "title": "VerdictReason",
      "description": "Machine-readable refinement of the verdict (EVIDENCE_REPORT_BACKEND_SPEC §3).\n\nA closed enum so the frontend can pre-translate every value. Includes codes\nfor checks that ship in later phases (watermarks, IPTC) — additive rollout\nwithout a schema change."
    },
    "VerificationMode": {
      "type": "string",
      "enum": [
        "raw_pair",
        "image_only"
      ],
      "title": "VerificationMode",
      "description": "Which inputs a verification was run against.\n\n- raw_pair: RAW + JPEG pair through the full comparison pipeline.\n- image_only: single JPEG through the dedicated C2PA-only flow."
    },
    "VerificationResult": {
      "properties": {
        "verificator_id": {
          "type": "string",
          "format": "uuid",
          "title": "Verificator Id"
        },
        "verification_id": {
          "type": "string",
          "format": "uuid",
          "title": "Verification Id"
        },
        "details": {
          "additionalProperties": true,
          "type": "object",
          "title": "Details"
        },
        "result": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Result"
        },
        "confidence_score": {
          "type": "number",
          "title": "Confidence Score"
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Updated At"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "verificator_id",
        "verification_id",
        "details",
        "result",
        "confidence_score",
        "id",
        "updated_at",
        "created_at"
      ],
      "title": "VerificationResult"
    },
    "VerificationStatus": {
      "type": "string",
      "enum": [
        "pending",
        "queued",
        "in_progress",
        "completed",
        "failed"
      ],
      "title": "VerificationStatus",
      "description": "Processing status of a photo verification.\n\n- pending: Verification created, awaiting processing\n- queued: Added to processing queue\n- in_progress: Actively being analyzed\n- completed: Analysis finished (check result field for outcome)\n- failed: Analysis failed due to an error"
    }
  }
}