{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cadencz-com/json-schema/cadencz-com-company-profile-read-schema.json",
  "title": "CompanyProfileRead",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cadencz-com-company-api-openapi.yml#/components/schemas/CompanyProfileRead",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "source_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Url"
    },
    "brain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brain Id"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "profile": {
      "$ref": "#/$defs/CompanyProfileData"
    },
    "documents": {
      "items": {
        "$ref": "#/$defs/CompanyDocumentRead"
      },
      "type": "array",
      "title": "Documents"
    },
    "audit": {
      "additionalProperties": true,
      "type": "object",
      "title": "Audit"
    },
    "month_plan": {
      "additionalProperties": true,
      "type": "object",
      "title": "Month Plan"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "status",
    "profile",
    "updated_at"
  ],
  "$defs": {
    "CompanyDocumentRead": {
      "properties": {
        "slug": {
          "type": "string",
          "title": "Slug"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "description": {
          "type": "string",
          "title": "Description",
          "default": ""
        },
        "content": {
          "type": "string",
          "title": "Content",
          "default": ""
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At"
        }
      },
      "type": "object",
      "required": [
        "slug",
        "title"
      ],
      "title": "CompanyDocumentRead"
    },
    "CompanyProfileData": {
      "properties": {
        "brand_name": {
          "type": "string",
          "maxLength": 120,
          "title": "Brand Name",
          "default": ""
        },
        "one_liner": {
          "type": "string",
          "maxLength": 300,
          "title": "One Liner",
          "description": "One sentence: what it is, for whom.",
          "default": ""
        },
        "core_identity": {
          "type": "string",
          "maxLength": 600,
          "title": "Core Identity",
          "default": ""
        },
        "product_offering": {
          "type": "string",
          "maxLength": 750,
          "title": "Product Offering",
          "default": ""
        },
        "unique_benefits": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 8,
          "title": "Unique Benefits"
        },
        "problem_solution": {
          "type": "string",
          "maxLength": 600,
          "title": "Problem Solution",
          "default": ""
        },
        "mission": {
          "type": "string",
          "maxLength": 450,
          "title": "Mission",
          "default": ""
        },
        "differentiation": {
          "type": "string",
          "maxLength": 600,
          "title": "Differentiation",
          "default": ""
        },
        "positioning": {
          "type": "string",
          "maxLength": 450,
          "title": "Positioning",
          "default": ""
        },
        "category": {
          "type": "string",
          "maxLength": 200,
          "title": "Category",
          "default": ""
        },
        "audience": {
          "type": "string",
          "maxLength": 600,
          "title": "Audience",
          "default": ""
        },
        "competitors": {
          "items": {
            "$ref": "#/$defs/CompetitorEntry"
          },
          "type": "array",
          "maxItems": 6,
          "title": "Competitors"
        },
        "tone": {
          "type": "string",
          "maxLength": 450,
          "title": "Tone",
          "description": "How the site sounds, in plain language.",
          "default": ""
        },
        "business_model": {
          "type": "string",
          "maxLength": 600,
          "title": "Business Model",
          "default": ""
        },
        "primary_cta": {
          "type": "string",
          "maxLength": 200,
          "title": "Primary Cta",
          "default": ""
        },
        "content_angles": {
          "items": {
            "$ref": "#/$defs/ContentAngle"
          },
          "type": "array",
          "maxItems": 5,
          "title": "Content Angles"
        },
        "pricing_notes": {
          "type": "string",
          "maxLength": 450,
          "title": "Pricing Notes",
          "default": ""
        }
      },
      "type": "object",
      "title": "CompanyProfileData",
      "description": "The structured company knowledge shown in the /today company panel.\n\nSections mirror the product spec: Identity & Product, Purpose & Positioning,\nMarket & Competition. Every field is plain prose the user can edit."
    },
    "CompetitorEntry": {
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 80,
          "title": "Name"
        },
        "positioning": {
          "type": "string",
          "maxLength": 220,
          "title": "Positioning",
          "description": "How they position themselves.",
          "default": ""
        },
        "gap": {
          "type": "string",
          "maxLength": 300,
          "title": "Gap",
          "description": "Where this company wins against them.",
          "default": ""
        }
      },
      "type": "object",
      "required": [
        "name"
      ],
      "title": "CompetitorEntry"
    },
    "ContentAngle": {
      "properties": {
        "title": {
          "type": "string",
          "maxLength": 80,
          "title": "Title"
        },
        "rationale": {
          "type": "string",
          "maxLength": 220,
          "title": "Rationale",
          "default": ""
        }
      },
      "type": "object",
      "required": [
        "title"
      ],
      "title": "ContentAngle"
    }
  }
}