{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/upriver-ai/json-schema/upriver-ai-brand-product-detail-input-schema.json",
  "title": "BrandProductDetailInput",
  "description": "Input model for detailed product research endpoint.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/upriver-ai-products-api-openapi.yml#/components/schemas/BrandProductDetailInput",
  "properties": {
    "brand_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brand Url",
      "description": "The brand's website URL."
    },
    "brand_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brand Name",
      "description": "Deprecated — brand name is now resolved automatically from the URL. This field is accepted but ignored.",
      "deprecated": true
    },
    "product_name": {
      "type": "string",
      "title": "Product Name",
      "description": "The name of the product to research."
    },
    "product_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Product Url",
      "description": "The product page URL."
    },
    "effort": {
      "$ref": "#/$defs/EffortLevel",
      "description": "Effort level: 'low' (basic details), 'high' (includes competitive info)",
      "default": "low"
    }
  },
  "type": "object",
  "required": [
    "product_name"
  ],
  "$defs": {
    "EffortLevel": {
      "type": "string",
      "enum": [
        "auto",
        "low",
        "mid",
        "high"
      ],
      "title": "EffortLevel",
      "description": "Effort level for product research."
    }
  }
}