{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amass-tech/json-schema/amass-tech-trial-core-changed-record-schema.json",
  "title": "TrialCoreChangedRecord",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amass-tech-openapi.json#/components/schemas/TrialCoreChangedRecord",
  "type": "object",
  "properties": {
    "amassId": {
      "type": "string"
    },
    "updateType": {
      "type": "string",
      "enum": [
        "created",
        "updated",
        "deleted"
      ],
      "description": "`created` when this delivery is the record's first appearance in the feed, `deleted` if it left its source registry, `updated` otherwise. It describes the delivery, not the record: a trial that entered inside your window and then changed again — its own record or its posted results — arrives once, as `updated`. To spot genuinely new trials, compare `createDate` against your window rather than branching on this. A record that predates create-date tracking reports `updated`."
    },
    "updateDate": {
      "type": "string",
      "format": "date",
      "description": "The change that caused this delivery — always inside the requested window, and the value the feed pages on. For a deletion this is the date the removal was observed. It can be newer than the record's own lastUpdateDate, which does not move when only the trial's posted results are revised."
    },
    "createDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Date this record first entered Amass, if known. Always null when updateType is `deleted`."
    }
  },
  "required": [
    "amassId",
    "updateType",
    "updateDate",
    "createDate"
  ]
}