{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/productindex-ai/json-schema/productindex-ai-search-request-schema.json",
  "title": "SearchRequest",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/productindex-ai-openapi.json#/components/schemas/SearchRequest",
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Free-text search query."
    },
    "session_id": {
      "type": "string",
      "description": "Anonymous session UUID for search-analytics correlation; not an auth credential."
    },
    "bundle": {
      "type": "boolean",
      "description": "Explicitly opt into the bundle-search path (skips the keyword-trigger gate, still requires a verified-email session). Ignored for anonymous callers."
    },
    "filters": {
      "type": "object",
      "properties": {
        "category": {
          "type": "string",
          "description": "Category slug. Setting this disables bundle-search consideration entirely."
        },
        "max_price": {
          "type": "number"
        },
        "min_price": {
          "type": "number"
        },
        "on_sale": {
          "type": "boolean"
        }
      }
    },
    "limit": {
      "type": "number"
    }
  }
}