{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/viralnote-app/json-schema/viralnote-app-brand-profile-schema.json",
  "title": "BrandProfile",
  "description": "Returns null if the user hasn't saved a brand profile yet.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/viralnote-app-openapi.json#/components/schemas/BrandProfile",
  "type": [
    "object",
    "null"
  ],
  "properties": {
    "brandName": {
      "type": "string"
    },
    "websiteUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "about": {
      "type": "string"
    },
    "primaryColor": {
      "type": "string"
    },
    "secondaryColor": {
      "type": "string"
    },
    "accentColor": {
      "type": "string"
    },
    "fontStyle": {
      "type": "string"
    },
    "toneOfVoice": {
      "type": "string"
    },
    "tagline": {
      "type": "string"
    },
    "defaultHashtags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "audience": {
      "type": "string",
      "description": "Who the brand sells to."
    },
    "offering": {
      "type": "string",
      "description": "What the brand actually sells."
    },
    "toneNotes": {
      "type": "string",
      "description": "Free-text nuance beyond toneOfVoice."
    },
    "voiceSamples": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Up to 3 real posts the AI imitates for rhythm and structure. Treated as data, never as instructions."
    },
    "avoidWords": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Words and phrases generated copy must never use."
    },
    "preferredPhrases": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "House terminology to prefer."
    },
    "ctas": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Reusable calls to action the AI picks from instead of inventing an offer."
    },
    "emojiPolicy": {
      "type": "string",
      "enum": [
        "none",
        "sparing",
        "liberal"
      ],
      "default": "sparing"
    },
    "hashtagStrategy": {
      "type": "object",
      "description": "How many hashtags to use. perPlatform overrides defaultCount; 0 means none.",
      "properties": {
        "defaultCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10,
          "default": 3
        },
        "perPlatform": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10
          }
        }
      }
    },
    "colors": {
      "type": "array",
      "description": "Named palette. primaryColor / secondaryColor / accentColor mirror the primary, secondary and accent roles and stay in sync with this list.",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "primary",
              "secondary",
              "accent",
              "surface",
              "text"
            ]
          },
          "name": {
            "type": "string"
          },
          "hex": {
            "type": "string"
          }
        }
      }
    },
    "logoUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}