{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peopleprincipia-com/json-schema/peopleprincipia-com-items-changed-since-schema.json",
  "title": "ItemsChangedSince",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peopleprincipia-com-items-api-openapi.yml#/components/schemas/ItemsChangedSince",
  "type": "object",
  "required": [
    "items_changed",
    "items_retired",
    "as_of",
    "total",
    "basis"
  ],
  "properties": {
    "items_changed": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "canonical_item_id values whose row-level updated_at is >= ts. Never includes a retired id."
    },
    "items_retired": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "reason"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "superseded_by": {
            "type": "string",
            "description": "Successor canonical_item_id, when one exists."
          },
          "reason": {
            "type": "string"
          }
        }
      }
    },
    "as_of": {
      "type": "string",
      "description": "Pass back as the next poll's ts for exact (non-overlapping) polling."
    },
    "total": {
      "type": "integer",
      "description": "items_changed.length + items_retired.length."
    },
    "basis": {
      "type": "string",
      "description": "One sentence naming what was compared, present even when both arrays are empty."
    }
  }
}