{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/redreplier-com/json-schema/redreplier-com-mention-schema.json",
  "title": "Mention",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/redreplier-com-openapi.json#/components/schemas/Mention",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "websiteId": {
      "type": "string",
      "format": "uuid"
    },
    "source": {
      "$ref": "#/$defs/MentionSource"
    },
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "The monitored keyword this conversation matched."
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "contentText": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Link to the conversation. Null when the platform gives no public link, as with some Facebook and Bluesky posts."
    },
    "author": {
      "type": [
        "string",
        "null"
      ]
    },
    "subreddit": {
      "type": [
        "string",
        "null"
      ],
      "description": "The subreddit on Reddit and the group id on Facebook. Null on other platforms."
    },
    "status": {
      "$ref": "#/$defs/MentionStatus"
    },
    "relevanceScore": {
      "type": [
        "number",
        "null"
      ],
      "description": "Higher means more likely to be worth a reply."
    },
    "relevanceReason": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why the scorer landed on that number."
    },
    "aiReplySuggestion": {
      "type": [
        "string",
        "null"
      ],
      "description": "Draft reply for a human to review before posting."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "publishedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "ingestedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "reviewedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "createdAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "websiteId",
    "source",
    "status"
  ],
  "$defs": {
    "MentionSource": {
      "type": "string",
      "enum": [
        "REDDIT_POST",
        "REDDIT_COMMENT",
        "TWITTER",
        "BLUESKY",
        "HACKERNEWS",
        "FACEBOOK",
        "FACEBOOK_GROUP"
      ]
    },
    "MentionStatus": {
      "type": "string",
      "enum": [
        "NEW",
        "REJECTED",
        "APPROVED"
      ]
    }
  }
}