{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sibfly-com/json-schema/sibfly-com-motion-report-schema.json",
  "title": "MotionReport",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sibfly-com-openapi.json#/components/schemas/MotionReport",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "ok",
        "no_data",
        "no_coverage",
        "stale_data",
        "low_confidence",
        "low_geocode_precision",
        "no_new_data",
        "inconclusive"
      ]
    },
    "velocity_vertical_mm_yr": {
      "type": [
        "number",
        "null"
      ]
    },
    "velocity_vertical_in_yr": {
      "type": [
        "number",
        "null"
      ]
    },
    "velocity_uncertainty_mm_yr": {
      "type": [
        "number",
        "null"
      ]
    },
    "velocity_uncertainty_in_yr": {
      "type": [
        "number",
        "null"
      ]
    },
    "velocity_los_mm_yr": {
      "type": [
        "number",
        "null"
      ]
    },
    "seasonal_amplitude_mm": {
      "type": [
        "number",
        "null"
      ]
    },
    "seasonal_dominant": {
      "type": "boolean"
    },
    "total_motion_mm": {
      "type": [
        "number",
        "null"
      ]
    },
    "total_motion_in": {
      "type": [
        "number",
        "null"
      ]
    },
    "display_units": {
      "type": "string"
    },
    "velocity_display": {
      "type": "string"
    },
    "trend": {
      "type": "string",
      "enum": [
        "subsiding",
        "stable",
        "uplifting"
      ]
    },
    "assessment": {
      "type": "string"
    },
    "assessment_code": {
      "type": "string",
      "enum": [
        "rapid_subsidence",
        "notable_subsidence",
        "stable",
        "mild_uplift",
        "strong_uplift",
        "no_clear_trend"
      ]
    },
    "confidence_tier": {
      "type": "string",
      "enum": [
        "measured",
        "likely",
        "within_margin"
      ],
      "description": "trust tier from signal_to_noise=|v|/uncertainty: measured(>=2)=confident direction, likely(1-2)=suggestive, within_margin(<1)=inside error bar"
    },
    "within_margin_kind": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "stable",
        "inconclusive",
        null
      ],
      "description": "when within_margin: 'stable'=confident no-movement PASS (billed); 'inconclusive'=untrustworthy, returned as status:inconclusive cost_usd:0 (free)"
    },
    "signal_to_noise": {
      "type": [
        "number",
        "null"
      ]
    },
    "differential_motion": {
      "type": [
        "object",
        "null"
      ],
      "description": "present when the ground moves unevenly over ~150m (neighbor_spread>3); the foundation-relevant signal"
    },
    "confidence": {
      "type": [
        "number",
        "null"
      ]
    },
    "near_threshold": {
      "type": "boolean"
    },
    "significant_nonzero": {
      "type": "boolean"
    },
    "neighbor_consistent": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "neighbor_spread_mm_yr": {
      "type": [
        "number",
        "null"
      ]
    },
    "frame": {
      "type": "string"
    },
    "pixel_id": {
      "type": "string"
    },
    "pixel_polygon": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number"
        }
      }
    },
    "pixel_geojson": {
      "type": "object"
    },
    "cell_size_m": {
      "type": [
        "number",
        "null"
      ]
    },
    "n_measurements": {
      "type": [
        "number",
        "null"
      ]
    },
    "span_years": {
      "type": [
        "number",
        "null"
      ]
    },
    "last_observation": {
      "type": "string"
    },
    "data_age_days": {
      "type": [
        "integer",
        "null"
      ]
    },
    "data_freshness": {
      "type": "string",
      "enum": [
        "current",
        "recent",
        "stale",
        "very_stale",
        "unknown"
      ]
    },
    "estimated_next_acquisition": {
      "type": [
        "string",
        "null"
      ]
    },
    "data_coverage": {
      "type": "string"
    },
    "provenance": {
      "type": "object",
      "properties": {
        "calibration": {
          "type": "string",
          "enum": [
            "gps_tied",
            "relative"
          ]
        },
        "calibration_rmse_mm_yr": {
          "type": [
            "number",
            "null"
          ]
        },
        "sign_convention": {
          "type": "string"
        },
        "science_version": {
          "type": "string"
        },
        "attribution": {
          "type": "string"
        },
        "license": {
          "type": "string"
        },
        "disclaimer": {
          "type": "string"
        }
      }
    },
    "query": {
      "type": "object",
      "properties": {
        "address": {
          "type": [
            "string",
            "null"
          ]
        },
        "geocoded_address": {
          "type": [
            "string",
            "null"
          ]
        },
        "geocode": {
          "type": "object",
          "properties": {
            "match_type": {
              "type": "string"
            },
            "score": {
              "type": "number"
            }
          }
        },
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        }
      }
    },
    "queried_at": {
      "type": "string"
    },
    "cost_usd": {
      "type": "number"
    },
    "billed_usd": {
      "type": [
        "number",
        "null"
      ]
    },
    "credits_remaining_usd": {
      "type": [
        "number",
        "null"
      ]
    },
    "reports_remaining": {
      "type": [
        "integer",
        "null"
      ]
    },
    "request_id": {
      "type": "string"
    },
    "trend_analysis": {
      "type": "object"
    },
    "timeseries": {
      "type": "object"
    },
    "ground_brief": {
      "type": "string"
    }
  }
}