{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/upriver-ai/json-schema/upriver-ai-brand-v2-response-schema.json",
  "title": "BrandV2Response",
  "description": "Response model for the v2 brand research endpoint.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/upriver-ai-brands-api-openapi.yml#/components/schemas/BrandV2Response",
  "properties": {
    "brand": {
      "$ref": "#/$defs/BrandV2Brand",
      "description": "Brand information"
    },
    "industries": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Industries",
      "description": "Industry labels"
    },
    "audience": {
      "anyOf": [
        {
          "$ref": "#/$defs/BrandV2Audience"
        },
        {
          "type": "null"
        }
      ],
      "description": "Target audience summary"
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata",
      "description": "Provenance and supporting evidence"
    },
    "effort": {
      "anyOf": [
        {
          "$ref": "#/$defs/BrandResearchEffort"
        },
        {
          "type": "null"
        }
      ],
      "description": "Effort level used to generate this result. 'auto' is resolved to the actual level applied."
    }
  },
  "type": "object",
  "required": [
    "brand"
  ],
  "$defs": {
    "BrandResearchEffort": {
      "type": "string",
      "enum": [
        "auto",
        "low",
        "mid",
        "high"
      ],
      "title": "BrandResearchEffort",
      "description": "Effort level for brand research."
    },
    "BrandV2Audience": {
      "properties": {
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description",
          "description": "Narrative description of the target audience"
        }
      },
      "type": "object",
      "title": "BrandV2Audience",
      "description": "Audience summary returned by /v2/brand."
    },
    "BrandV2Brand": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name",
          "description": "Brand name"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url",
          "description": "Brand website URL"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description",
          "description": "Concise summary of what the brand/company is and does"
        },
        "identity": {
          "anyOf": [
            {
              "$ref": "#/$defs/BrandV2Identity"
            },
            {
              "type": "null"
            }
          ],
          "description": "Structured identity details"
        },
        "colors": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Colors",
          "description": "Brand color palette (primary/secondary/etc.)"
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Note",
          "description": "Additional notes or caveats from brand research"
        }
      },
      "type": "object",
      "title": "BrandV2Brand",
      "description": "Brand object for the v2 brand research endpoint."
    },
    "BrandV2Identity": {
      "properties": {
        "mission": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mission",
          "description": "Brand mission statement"
        },
        "values": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Values",
          "description": "Core brand values"
        },
        "tagline": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tagline",
          "description": "Brand tagline or slogan"
        },
        "language": {
          "anyOf": [
            {
              "$ref": "#/$defs/BrandV2Language"
            },
            {
              "type": "null"
            }
          ],
          "description": "Brand language details"
        }
      },
      "type": "object",
      "title": "BrandV2Identity",
      "description": "Structured brand identity block."
    },
    "BrandV2Language": {
      "properties": {
        "tone": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tone",
          "description": "Brand tone of voice"
        },
        "key_phrases": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Key Phrases",
          "description": "Common brand phrases or messaging"
        }
      },
      "type": "object",
      "title": "BrandV2Language",
      "description": "Structured brand language details."
    }
  }
}