{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usedby-ai/json-schema/usedby-ai-recent-changes-schema.json",
  "title": "RecentChanges",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usedby-ai-openapi.json#/components/schemas/RecentChanges",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "window": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "days": {
          "type": "integer"
        },
        "since": {
          "type": "string"
        }
      }
    },
    "listed": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "company": {
            "type": "string"
          },
          "companySlug": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          },
          "toolSlug": {
            "type": "string"
          },
          "proof": {
            "type": "string",
            "enum": [
              "CONFIRMED",
              "DECLARED",
              "OBSERVED",
              "SIGNAL"
            ],
            "description": "Proof level, strongest first. DECLARED: the company states it uses the tool, to usedby or by listing the vendor as a sub-processor on its own legal page. SIGNAL (a job post) is the weakest."
          },
          "claim": {
            "$ref": "#/$defs/ClaimProvenance"
          },
          "listedBy": {
            "type": "string"
          }
        }
      }
    },
    "truncated": {
      "type": "boolean"
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "source": {
      "$ref": "#/$defs/Source"
    }
  },
  "$defs": {
    "ClaimProvenance": {
      "type": "object",
      "additionalProperties": true,
      "description": "Public claim provenance. Null means unknown. Cite url and the original source.url when available. No calibrated confidence score or inference of current contract, spend or deployment.",
      "properties": {
        "citation": {
          "type": "string",
          "description": "Entity-pair citation, when provided by the API. Keep the matching claim and primary source URLs together."
        },
        "id": {
          "type": "string",
          "description": "Stable Usage identifier."
        },
        "url": {
          "type": "string",
          "description": "Canonical /claims/{id} citation URL; append .md for Markdown."
        },
        "relationship": {
          "type": "object",
          "additionalProperties": true,
          "description": "Relationship meaning, separate from proof strength.",
          "properties": {
            "type": {
              "type": "string"
            },
            "label": {
              "type": "string"
            }
          }
        },
        "proof": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "level": {
              "type": "string",
              "enum": [
                "CONFIRMED",
                "DECLARED",
                "OBSERVED",
                "SIGNAL"
              ],
              "description": "Proof level, strongest first. DECLARED: the company states it uses the tool, to usedby or by listing the vendor as a sub-processor on its own legal page. SIGNAL (a job post) is the weakest."
            },
            "method": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "CASE_STUDY",
                "TESTIMONIAL",
                "PRESS",
                "DECLARED",
                "SUBPROCESSOR_LIST",
                "LOGO_WALL",
                "MANUAL",
                "DOMAIN_RECORD",
                "REPO_CONFIG",
                "JOB_POST",
                null
              ]
            },
            "checkedAt": {
              "type": [
                "string",
                "null"
              ],
              "format": "date",
              "description": "Day of the latest check of this line (re-verification, last sighting or capture; line creation only when none exists). Never an adoption date. Null when no check is recorded."
            },
            "stale": {
              "type": "boolean",
              "description": "stale means the proof was not re-checked for 180 days; it is still a customer line, counted and ordered like any other."
            },
            "listing": {
              "type": "object",
              "properties": {
                "state": {
                  "const": "not_seen"
                },
                "lastSeenOn": {
                  "type": "string",
                  "format": "date"
                }
              },
              "description": "Present only when the vendor's customer pages no longer show the company at three checks in a row, fourteen days or more after lastSeenOn, the day they last showed it. The stored proof is unchanged and the line is still a customer line, counted and ordered like any other. It does not establish that the relationship ended. Absent means nothing to state, never a vendor listing."
            }
          }
        },
        "freshness": {
          "type": "object",
          "additionalProperties": true,
          "description": "usedby check dates, never adoption or publication dates.",
          "properties": {
            "lastVerifiedAt": {
              "type": [
                "string",
                "null"
              ]
            },
            "capturedAt": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "dates": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "firstPublicProofScope": {
              "const": "relationship",
              "description": "Dates the relationship, not necessarily the selected source."
            },
            "firstPublicProofSourceBinding": {
              "const": "unverified",
              "description": "No verified binding from this historical date to the selected source."
            },
            "sourcePublishedAtStatus": {
              "const": "unknown"
            },
            "firstPublicProof": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "date": {
                  "type": "string"
                },
                "kind": {
                  "enum": [
                    "on_or_before",
                    "job_post",
                    "stated"
                  ]
                }
              }
            },
            "firstSeenAt": {
              "type": [
                "string",
                "null"
              ],
              "description": "Stored first observation, never adoption."
            },
            "lastSeenAt": {
              "type": [
                "string",
                "null"
              ],
              "description": "Stored last observation, not continuing usage."
            },
            "sourcePublishedAt": {
              "type": [
                "string",
                "null"
              ],
              "description": "Unknown unless the exact source publication date is established; never inferred from checks."
            }
          }
        },
        "source": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "snapshotStatus": {
              "enum": [
                "public_snapshot_available",
                "no_public_snapshot_exposed"
              ],
              "description": "Public availability only; absence does not establish that no archive exists."
            },
            "evidenceId": {
              "type": [
                "string",
                "null"
              ]
            },
            "url": {
              "type": [
                "string",
                "null"
              ]
            },
            "excerpt": {
              "type": [
                "string",
                "null"
              ]
            },
            "snapshot": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "url": {
                  "type": "string"
                },
                "hash": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          }
        },
        "limitations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "Source": {
      "type": "object",
      "additionalProperties": true,
      "description": "Quote with a link to source.url. Bulk reuse needs written consent.",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "description": "The usedby page to cite."
        },
        "markdown": {
          "type": [
            "string",
            "null"
          ],
          "description": "Its Markdown version."
        },
        "terms": {
          "type": "string"
        },
        "citation": {
          "type": "string"
        }
      }
    }
  }
}