{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mentio-dev/json-schema/mentio-dev-company-schema.json",
  "title": "Company",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mentio-dev-company-api-openapi.yml#/components/schemas/Company",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Brand or company name, as the classifier should call it."
    },
    "description": {
      "type": "string",
      "description": "What the company does, one paragraph."
    },
    "useCases": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "What people use the product for."
    },
    "accounts": {
      "type": "object",
      "properties": {
        "x": {
          "type": [
            "string",
            "null"
          ],
          "description": "X handle without the @."
        },
        "linkedin": {
          "type": [
            "string",
            "null"
          ],
          "description": "LinkedIn page slug or URL."
        }
      },
      "required": [
        "x",
        "linkedin"
      ],
      "description": "Your own accounts, so your own posts are recognized."
    },
    "website": {
      "type": [
        "string",
        "null"
      ],
      "description": "The company website, as set up during onboarding."
    },
    "competitors": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Competitors by name, so the classifier reads a rival's mention as such; usually the same names as your competitor keywords."
    },
    "guidelines": {
      "type": [
        "string",
        "null"
      ],
      "description": "Free-text rules for the classifier: what counts as relevant for you and what never does (\"posts about our API, never job listings\"). The second biggest lever after the description."
    },
    "context": {
      "type": "string",
      "description": "The text the classifier reads. Composed from the fields above unless you override it."
    }
  },
  "required": [
    "name",
    "description",
    "useCases",
    "accounts",
    "website",
    "competitors",
    "guidelines",
    "context"
  ]
}