{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clment-com/json-schema/clment-com-mention-schema.json",
  "title": "Mention",
  "description": "One @-mention of a user, on a review note or a finding note.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clment-com-collaborators-api-openapi.yml#/components/schemas/Mention",
  "type": "object",
  "properties": {
    "reviewId": {
      "type": "string"
    },
    "contractId": {
      "type": "string"
    },
    "contractClmNumber": {
      "type": [
        "integer",
        "null"
      ]
    },
    "contractTitle": {
      "type": "string"
    },
    "rulebookName": {
      "type": "string"
    },
    "surface": {
      "type": "string",
      "enum": [
        "review_note",
        "finding_note"
      ],
      "description": "Which surface carried the mention."
    },
    "findingId": {
      "type": "string",
      "description": "Present when surface is finding_note."
    },
    "findingTitle": {
      "type": "string"
    },
    "mentionedByUserId": {
      "type": "string"
    },
    "mentionedByUserName": {
      "type": [
        "string",
        "null"
      ]
    },
    "mentionedAt": {
      "type": "string",
      "format": "date-time",
      "description": "When the note was last touched. The best available signal of when the mention was set — there is no per-mention audit row."
    },
    "noteText": {
      "type": "string",
      "description": "The note text containing the mention, truncated to 500 characters."
    },
    "reviewSessionStatus": {
      "type": "string",
      "description": "Lifecycle of the parent review — active, complete, signed_off. Useful for telling a live action item from a stale one."
    },
    "url": {
      "type": "string"
    }
  }
}