{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/redreplier-com/json-schema/redreplier-com-website-schema.json",
  "title": "Website",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/redreplier-com-openapi.json#/components/schemas/Website",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "accountGroupId": {
      "type": "string",
      "format": "uuid"
    },
    "domain": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Feeds mention scoring."
    },
    "ignoredKeywords": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Lowercased words and phrases. A mention whose title or text contains one is hidden from every mention list and count."
    },
    "createdAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "keywords": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Keyword"
      }
    }
  },
  "required": [
    "id",
    "domain",
    "url",
    "ignoredKeywords",
    "keywords"
  ],
  "$defs": {
    "Keyword": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "websiteId": {
          "type": "string",
          "format": "uuid"
        },
        "value": {
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/KeywordStatus"
        },
        "createdAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updatedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "websiteId",
        "value",
        "status"
      ]
    },
    "KeywordStatus": {
      "type": "string",
      "enum": [
        "PENDING",
        "ACTIVE",
        "DISABLED",
        "SUSPENDED"
      ],
      "description": "`PENDING` keywords are stored but not monitored until a paid slot covers them."
    }
  }
}