{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/octolens-com/json-schema/octolens-com-company-schema.json",
  "title": "Company",
  "description": "The monitored company profile.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/octolens-com-openapi.json#/components/schemas/Company",
  "type": "object",
  "properties": {
    "id": {
      "description": "Internal Company row id.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "name": {
      "description": "Company display name. Used as the AI's subject.",
      "type": "string"
    },
    "domain": {
      "description": "Primary domain (no scheme).",
      "type": "string"
    },
    "website": {
      "description": "Full website URL.",
      "type": "string"
    },
    "logo": {
      "description": "URL to the company logo image. `null` if not enriched yet.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "industry": {
      "description": "High-level industry classification (e.g. `Technology`, `SaaS`). Sourced from enrichment and injected into AI prompts.",
      "type": "string"
    },
    "sector": {
      "description": "Finer-grained sector beneath `industry`.",
      "type": "string"
    },
    "tags": {
      "description": "Comma-separated category tags. Used as additional AI context for relevance.",
      "type": "string"
    },
    "description": {
      "description": "Prose description of the company. Fed into every relevance prompt — keep it factual and specific to improve scoring.",
      "type": "string"
    },
    "linkedin": {
      "description": "LinkedIn company slug (e.g. `vercel`). `null` if not set.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "twitter": {
      "description": "X/Twitter handle without `@`, or comma-separated list.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "relevanceContext": {
      "description": "Short context sentence (≤400 chars) injected into every AI relevance prompt for this org. Useful for disambiguating common-word brands.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "productUseCases": {
      "description": "Free-text description (often newline-separated) of what the product does and typical use cases. Injected into relevance prompts.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "competitors": {
      "description": "JSON-encoded array of competitor names/descriptions stored as a string. The UI parses this; external clients can treat it opaquely.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "companyMoat": {
      "description": "Prose description of the company's competitive advantage.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "relevanceGuidelines": {
      "description": "Org-specific guidelines injected into the `<specific_guidelines>` section of the relevance-scoring prompt. Use this to teach the AI what 'relevant' means for you.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "classificationGuidelines": {
      "description": "Org-specific guidelines injected into the `<specific_guidelines>` section of the post-classification/tagging prompt.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "name",
    "domain",
    "website",
    "logo",
    "industry",
    "sector",
    "tags",
    "description",
    "linkedin",
    "twitter",
    "relevanceContext",
    "productUseCases",
    "competitors",
    "companyMoat",
    "relevanceGuidelines",
    "classificationGuidelines"
  ],
  "additionalProperties": false
}