Brand Studio docs
Engineering manualSchema reference

Brand Intake Normalized

Declared schema: schemas/brand-intake-normalized.schema.json

Source: schemas/brand-intake-normalized.schema.json. This is the complete declaration, including nested definitions and constraints. Its presence is not evidence that a runtime producer or consumer validates against it.

All schemas · Data structures and lineage

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://brand-studio.local/schemas/brand-intake-normalized.schema.json",
  "title": "Brand Intake Normalized",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "schema_version",
    "normalized_id",
    "brand_id",
    "brand_name",
    "source_url",
    "generated_at",
    "raw_inputs",
    "identity",
    "provider_groups",
    "visual_identity",
    "website",
    "search_presence",
    "sitemap",
    "screenshots",
    "ctas",
    "sources",
    "claims",
    "blockers",
    "review_state"
  ],
  "properties": {
    "schema_version": {
      "type": "string"
    },
    "normalized_id": {
      "type": "string",
      "minLength": 1
    },
    "brand_id": {
      "type": "string",
      "minLength": 1
    },
    "brand_name": {
      "type": "string",
      "minLength": 1
    },
    "source_url": {
      "type": "string",
      "minLength": 1
    },
    "generated_at": {
      "type": "string",
      "minLength": 1
    },
    "raw_inputs": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/source_ref"
      }
    },
    "identity": {
      "$ref": "#/$defs/normalized_section"
    },
    "provider_groups": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/normalized_section"
      }
    },
    "visual_identity": {
      "$ref": "#/$defs/normalized_section"
    },
    "website": {
      "$ref": "#/$defs/normalized_section"
    },
    "search_presence": {
      "$ref": "#/$defs/normalized_section"
    },
    "sitemap": {
      "$ref": "#/$defs/normalized_section"
    },
    "screenshots": {
      "$ref": "#/$defs/normalized_section"
    },
    "ctas": {
      "$ref": "#/$defs/normalized_section"
    },
    "sources": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/normalized_item"
      }
    },
    "claims": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/normalized_item"
      }
    },
    "blockers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/normalized_item"
      }
    },
    "review_state": {
      "type": "object",
      "required": [
        "status",
        "campaign_creation_allowed",
        "next_action"
      ],
      "properties": {
        "status": {
          "type": "string",
          "minLength": 1
        },
        "campaign_creation_allowed": {
          "type": "boolean"
        },
        "next_action": {
          "type": "string",
          "minLength": 1
        }
      }
    }
  },
  "$defs": {
    "source_ref": {
      "type": "object",
      "required": [
        "id",
        "path",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "path": {
          "type": "string",
          "minLength": 1
        },
        "status": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "normalized_section": {
      "type": "object",
      "required": [
        "id",
        "label",
        "status",
        "summary",
        "items",
        "source_refs"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "label": {
          "type": "string",
          "minLength": 1
        },
        "status": {
          "type": "string",
          "minLength": 1
        },
        "summary": {
          "type": "string",
          "minLength": 1
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/normalized_item"
          }
        },
        "source_refs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "normalized_item": {
      "type": "object",
      "required": [
        "id",
        "label",
        "status",
        "summary",
        "source_refs"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "label": {
          "type": "string",
          "minLength": 1
        },
        "status": {
          "type": "string",
          "minLength": 1
        },
        "summary": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "source_refs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}