{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/converly-io/json-schema/converly-io-install-status-schema.json",
  "title": "InstallStatus",
  "description": "Two detection signals, in preference order. Loader heartbeat: 'confirmed' with source 'heartbeat' means the loader was seen running within 48h (advisory), with origin_authorized/last_origin alongside. Captured events fallback: 'confirmed' without a source means at least one conversion event exists. 'never_seen' = neither signal — NOT proof the snippet is missing. 'pending' = the lookups failed; try again.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/converly-io-openapi.yml#/components/schemas/InstallStatus",
  "type": "object",
  "properties": {
    "installed": {
      "type": "boolean"
    },
    "last_seen_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "detection": {
      "type": "string",
      "enum": [
        "pending",
        "confirmed",
        "never_seen"
      ]
    },
    "source": {
      "type": "string",
      "enum": [
        "heartbeat"
      ],
      "description": "Present when the detection came from the loader heartbeat (the loader was seen running within 48h). Advisory — treat as 'loader seen recently', not verified installation."
    },
    "origin_authorized": {
      "type": "boolean",
      "description": "Heartbeat detections only. false = the loader is running on an origin this site is not authorized for, so conversions are being rejected — fix the site's domain."
    },
    "last_origin": {
      "type": [
        "string",
        "null"
      ],
      "description": "Heartbeat detections only: the origin the loader was last seen on."
    }
  },
  "required": [
    "installed",
    "last_seen_at",
    "detection"
  ]
}