{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alphaai/json-schema/alphaai-news-search-page-schema.json",
  "title": "NewsSearchPage",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alphaai-news-api-openapi.yml#/components/schemas/NewsSearchPage",
  "type": "object",
  "required": [
    "results",
    "count",
    "matched",
    "query"
  ],
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RichNewsArticle"
      },
      "description": "Feed items in rank order, each with `search_match`."
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass back as `cursor` for the next page; `null` past the 200-match bound."
    },
    "count": {
      "type": "integer",
      "description": "Items on this page."
    },
    "matched": {
      "type": "integer",
      "description": "Visible matches in the bounded candidate set (at most 200); never a global total."
    },
    "query": {
      "$ref": "#/$defs/NewsSearchQueryInfo"
    }
  },
  "$defs": {
    "AITradingInsights": {
      "type": "object",
      "properties": {
        "ticker_analysis": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TickerAnalysis"
          }
        },
        "news_trading_value": {
          "$ref": "#/$defs/NewsTradingValue"
        },
        "indirect_market_effects": {
          "$ref": "#/$defs/IndirectMarketEffects"
        },
        "alternative_perspectives": {
          "$ref": "#/$defs/AlternativePerspectives"
        }
      }
    },
    "Actionability": {
      "type": "string",
      "enum": [
        "high",
        "medium",
        "low",
        "negligible"
      ]
    },
    "AlternativePerspectives": {
      "type": "object",
      "properties": {
        "contrarian_view": {
          "type": "string"
        },
        "overlooked_factors": {
          "type": "string"
        }
      }
    },
    "Confidence": {
      "type": "string",
      "enum": [
        "high",
        "medium",
        "low"
      ]
    },
    "EarningsReport": {
      "type": "object",
      "description": "AlphAI's own structured analysis of an earnings release (SEC Form 8-K item 2.02, or Form 6-K for a foreign private issuer — half-year and full-year periods, IFRS and non-USD figures copied as reported). Every figure was cross-checked against the filing text before storage; consensus estimates and price targets are omitted because they are not in the filing. MCP `alphai_article` returns the structured read; connector `fetch` includes its metrics, comparisons, segments, guidance and limitations in the citation-ready `text` when a completed read exists.",
      "required": [
        "company",
        "ticker",
        "fiscal_period",
        "headline",
        "verdict",
        "key_metrics",
        "analysis"
      ],
      "properties": {
        "company": {
          "type": "string"
        },
        "ticker": {
          "type": "string"
        },
        "fiscal_period": {
          "type": "string"
        },
        "period_end": {
          "type": [
            "string",
            "null"
          ]
        },
        "headline": {
          "type": "string"
        },
        "verdict": {
          "type": "string",
          "enum": [
            "strong",
            "solid",
            "mixed",
            "weak"
          ]
        },
        "verdict_reason": {
          "type": "string"
        },
        "key_metrics": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "value": {
                "type": "string",
                "description": "The figure exactly as the filing printed it — this is the string that was verified against the document, so a table in millions arrives as `$19,345` and a press-release line as `$6.76 billion`. Use the three companions below to compute."
              },
              "basis": {
                "type": "string",
                "enum": [
                  "GAAP",
                  "non-GAAP",
                  "other"
                ]
              },
              "prior_year": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "prior_quarter": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "yoy_change": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "qoq_change": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "numeric": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "`value` as a number at the face scale it was printed, sign applied (`$(5,396)` → -5396). Null when `value` carries no figure. The amount in base units is `numeric` × the `scale` multiplier (thousands 1e3, millions 1e6, billions 1e9)."
              },
              "unit": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO-style currency code (`USD`, `EUR`, `TWD`, `CNY`, …), `pct` for a percentage, `bp` for basis points, null for a plain count (shares, units, multiples)."
              },
              "scale": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "ones",
                  "thousands",
                  "millions",
                  "billions",
                  "trillions"
                ],
                "description": "The multiplier `numeric` is expressed in. Filled only when something in the filing says it: the printed value (`$6.76 billion`, `$60,801 (In millions)`), the metric name, the row's own prior figure, the same amount printed with its unit in the filing's prose, or the filing's table header when it names one scale for its tables. Per-share and percentage figures are `ones`; a per-unit metric (revenue per customer, a price per ounce) never takes a table's scale. Null means the filing did not say — treat `numeric` as unscaled at your own risk rather than assume millions. Added 2026-09-12; the rules were tightened and every stored read recomputed on 2026-10-01."
              }
            }
          }
        },
        "segments": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "revenue": {
                "type": "string",
                "description": "The segment's figure exactly as the filing printed it. A segment table names its unit in the header far more often than in the cell, so use the three companions below to compute."
              },
              "yoy_change": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "qoq_change": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "driver": {
                "type": "string"
              },
              "numeric": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "`revenue` as a number at the face scale it was printed. Null when the field carries no figure."
              },
              "unit": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "ISO-style currency code, `pct` for a percentage, null when the cell prints no currency (or holds a volume, such as units delivered)."
              },
              "scale": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "ones",
                  "thousands",
                  "millions",
                  "billions",
                  "trillions"
                ],
                "description": "The multiplier `numeric` is expressed in, by the same rules as a `key_metrics` row. A bare segment figure takes the table header's scale only when the segments then fit under the read's own revenue line; otherwise null. Added 2026-10-01 to every stored read."
              }
            }
          }
        },
        "guidance": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "period": {
              "type": "string"
            },
            "revenue": {
              "type": [
                "string",
                "null"
              ]
            },
            "gross_margin": {
              "type": [
                "string",
                "null"
              ]
            },
            "operating_expenses": {
              "type": [
                "string",
                "null"
              ]
            },
            "tax_rate": {
              "type": [
                "string",
                "null"
              ]
            },
            "other": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "vs_prior_guidance": {
          "type": "array",
          "description": "Reported figure vs the company's own prior outlook, when available.",
          "items": {
            "type": "object",
            "properties": {
              "metric": {
                "type": "string"
              },
              "prior_guidance": {
                "type": "string"
              },
              "actual": {
                "type": "string"
              },
              "verdict": {
                "type": "string",
                "enum": [
                  "above",
                  "in line",
                  "below",
                  "n/a"
                ]
              }
            }
          }
        },
        "capital_returns": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "balance_sheet_cash_flow": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "drivers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "concerns": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "what_to_watch": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "quotes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "speaker": {
                "type": "string"
              },
              "role": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "text": {
                "type": "string"
              }
            }
          }
        },
        "analysis": {
          "type": "string",
          "description": "Several paragraphs of grounded analysis."
        },
        "missing_items": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "What the filing did NOT state, named rather than guessed."
        },
        "numbers_verified_from_document": {
          "type": "boolean"
        },
        "table_scale": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "thousands",
            "millions",
            "billions"
          ],
          "description": "The unit the filing's own table headers name (`(In millions, except per share data)`). The prose and list fields (`analysis`, `balance_sheet_cash_flow`, `capital_returns`, `concerns`, …) quote table figures as printed, so in a read with `table_scale: millions` a bare `$36,197` there is $36,197 million; per-share figures are always as printed. Null when the headers name no unit or name two without a clear majority. Added 2026-10-01 to every stored read."
        }
      }
    },
    "EightKFiling": {
      "type": "object",
      "description": "Structured SEC 8-K filing: what the filing itself says, next to the AI read of it. One news row fronts one filing.",
      "required": [
        "items",
        "accession_number",
        "filed_at"
      ],
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Every item code the filing carries, in the filing's order (`[\"5.02\", \"9.01\"]`). `?item=` matches any of them. Empty for a filing SEC served no document for (header-only)."
        },
        "primary_item": {
          "type": [
            "string",
            "null"
          ],
          "description": "The item that drove the row's `category` (`2.02` → `earnings`, `2.01` → `mergers_acquisitions`, the rest → `corporate_actions`). `null` when the filing lists no items."
        },
        "accession_number": {
          "type": "string",
          "description": "SEC accession number of the filing — the id to cite."
        },
        "filed_at": {
          "type": "string",
          "format": "date-time",
          "description": "When EDGAR accepted the filing (UTC)."
        },
        "event_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date",
          "description": "The filing's own \"date of report\" — the date of the event it reports, which can precede `filed_at` by up to four business days. `null` when the header carries none."
        },
        "exhibit_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "The press-release exhibit (EX-99.x) the summary was built from, on sec.gov. `null` when the filing has no such exhibit (the summary then reads the cover document)."
        }
      }
    },
    "EnrichedArticle": {
      "type": "object",
      "properties": {
        "category": {
          "$ref": "#/$defs/NewsCategory"
        },
        "tickers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Validated tickers the article mentions — only symbols present in `/api/symbols/` survive enrichment-time verification against the article text. Mirrors `ai_trading_insights.ticker_analysis[].ticker`."
        },
        "relevance_score": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10,
          "description": "How much trading value the article itself carries (rates the\narticle, not the company; deterministic — same article, same\nscore):\n1–2 no trading relevance · 3–4 derivative content about\nalready-known events · 5–6 macro/sector datapoints, minor-but-real\ncompany news · 7–8 real company news with a fresh catalyst ·\n9–10 primary, material, newly disclosed.\nSEC Form 4 rows are scored from the transaction itself (size,\nbuy vs. sell, 10b5-1 plan or not) rather than by the model; a\nsale tops out at 6.\n"
        },
        "ai_trading_insights": {
          "$ref": "#/$defs/AITradingInsights"
        },
        "news_context_enhancement": {
          "$ref": "#/$defs/NewsContextEnhancement"
        }
      }
    },
    "ImpactAnalysis": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "sentiment": {
          "$ref": "#/$defs/Sentiment"
        },
        "price_impact_prediction": {
          "type": "string"
        },
        "confidence": {
          "$ref": "#/$defs/Confidence"
        },
        "reasoning": {
          "type": "string"
        }
      }
    },
    "IndirectMarketEffects": {
      "type": "object",
      "properties": {
        "sector_implications": {
          "type": "string"
        },
        "regional_market_impact": {
          "type": "string"
        },
        "global_market_relevance": {
          "type": "string"
        }
      }
    },
    "InsiderEvent": {
      "type": "object",
      "description": "Structured SEC Form 4 event: the aggregate of the news row's whole transaction group (one row fronts a filing's non-derivative trades of one type and holding form, so a 10b5-1 ladder is ONE event). `shares` and `total_value_usd` are group sums; `avg_price_usd` is the value-weighted average over priced tranches. Money and share fields are decimal STRINGS to preserve precision.",
      "required": [
        "side",
        "transaction_code",
        "shares",
        "is_10b5_1",
        "insider_name",
        "insider_title",
        "is_officer",
        "is_director",
        "is_ten_percent_owner",
        "transaction_date",
        "filed_at",
        "late_filing"
      ],
      "properties": {
        "side": {
          "type": "string",
          "enum": [
            "buy",
            "sell",
            "other"
          ],
          "description": "Signal label from the transaction code: `buy` (P, open-market purchase), `sell` (S, open-market sale), `other` for everything else — including D (sale to the issuer: a buyback/redemption, not an open-market disposition). Use `transaction_code` for your own mapping."
        },
        "transaction_code": {
          "type": "string",
          "description": "Raw SEC Form 4 transaction code (`P`, `S`, `D`, …)."
        },
        "shares": {
          "type": "string",
          "description": "Total shares across the event's tranches (decimal string)."
        },
        "avg_price_usd": {
          "type": [
            "string",
            "null"
          ],
          "description": "Value-weighted average price per share over priced tranches. `null` when the filing prices no tranche."
        },
        "total_value_usd": {
          "type": [
            "string",
            "null"
          ],
          "description": "Total USD value across priced tranches (a lower bound when some tranches are unpriced). `null` when no tranche is priced."
        },
        "is_10b5_1": {
          "type": "boolean",
          "description": "True when any tranche executed under a pre-arranged 10b5-1 plan. Filterable on this endpoint: `?is_10b5_1=false` keeps only discretionary events."
        },
        "insider_name": {
          "type": "string"
        },
        "insider_title": {
          "type": "string"
        },
        "is_officer": {
          "type": "boolean"
        },
        "is_director": {
          "type": "boolean"
        },
        "is_ten_percent_owner": {
          "type": "boolean"
        },
        "transaction_date": {
          "type": "string",
          "format": "date",
          "description": "Date of the group's last fill (a ladder can span days)."
        },
        "filed_at": {
          "type": "string",
          "format": "date-time",
          "description": "When EDGAR accepted the filing (UTC). Compare against `transaction_date` for your own lateness rule."
        },
        "late_filing": {
          "type": "boolean",
          "description": "The filing missed the SEC's two-business-day deadline (Rule 16a-3(g)). Computed on Eastern dates, since EDGAR accepts filings until ~22:00 ET, and with one weekday of slack so a trade in a holiday week is not flagged: true when more than three weekday-days separate `transaction_date` from the filing. About 3% of events carry it; the long tail is catch-up filings covering trades from years earlier."
        }
      }
    },
    "KeyEntity": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "NewsCategory": {
      "type": "string",
      "description": "`market_movers` is for articles whose subject IS a notable price move (\"AMD up 5% today\"); `sector_analysis` is genuine sector-level analysis; `insider` covers SEC Form 4 insider transactions only. SEC 8-K filings categorize by their primary item: an earnings release (Item 2.02) is `earnings`, a completed acquisition or disposition (Item 2.01) is `mergers_acquisitions`, and the remaining events (material agreements, debt, executive changes, annual-meeting results, and since 2026-09-17 securities offerings, Regulation FD disclosures and other events under Items 7.01/8.01) are `corporate_actions`. A foreign private issuer's SEC 6-K appears only when it is an earnings release (`source` \"SEC EDGAR 6-K\") and is always `earnings`.",
      "enum": [
        "earnings",
        "mergers_acquisitions",
        "regulation",
        "macro_economy",
        "sector_analysis",
        "market_movers",
        "technology",
        "commodities",
        "crypto",
        "ipo",
        "geopolitics",
        "insider",
        "corporate_actions",
        "other"
      ]
    },
    "NewsContextEnhancement": {
      "type": "object",
      "properties": {
        "background_context": {
          "type": "string"
        },
        "impact_analysis": {
          "type": "string"
        },
        "key_entities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/KeyEntity"
          }
        },
        "market_relevance_summary": {
          "type": "string"
        },
        "estimated_read_time_minutes": {
          "type": "integer"
        }
      }
    },
    "NewsSearchQueryInfo": {
      "type": "object",
      "description": "How `/api/news/search/` read the query.",
      "required": [
        "mode",
        "sort",
        "terms"
      ],
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "strict",
            "broadened",
            "no_match",
            "no_terms"
          ],
          "description": "See the endpoint description."
        },
        "sort": {
          "type": "string",
          "enum": [
            "relevance",
            "published"
          ],
          "description": "`relevance` (ranked) or `published` (newest first) — the latter when every word is too common to rank on."
        },
        "terms": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The normalized words that were searched."
        },
        "required_terms": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "In `broadened` mode, the words at least one of which every row carries, when the search reports them; empty otherwise (the current engine does not — `search_match.terms_matched` on each item is the count to trust)."
        },
        "optional_terms": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "window_from": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Start of the searched window (your archive horizon, or `from_date` if later)."
        },
        "note": {
          "type": "string",
          "description": "One sentence for an agent to act on — what selected the rows, and what they are not."
        }
      }
    },
    "NewsTradingValue": {
      "type": "object",
      "properties": {
        "actionability_score": {
          "$ref": "#/$defs/Actionability"
        },
        "information_novelty": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10,
          "description": "How much NEW information the article carries (1–10), kept separate from relevance: a mega-cap post-earnings recap is high relevance but low novelty. 0 on rows enriched before the field existed."
        },
        "timing_relevance": {
          "type": "string"
        },
        "market_sentiment_alignment": {
          "type": "string"
        },
        "estimated_read_time": {
          "type": "string"
        }
      }
    },
    "OriginalArticle": {
      "type": "object",
      "description": "The article as fetched from the source. `raw_text` is intentionally NOT exposed here.",
      "required": [
        "uid",
        "title",
        "url",
        "summary",
        "time_published",
        "source"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "uid": {
          "type": "string",
          "pattern": "^[a-f0-9]{16}$"
        },
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "time_published": {
          "type": "string",
          "format": "date-time"
        },
        "authors": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Article authors. On SEC Form 4 rows: every reporting owner of the filing, primary first — a joint filing by a holding vehicle and the person behind it lists both."
        },
        "summary": {
          "type": "string",
          "description": "AI-generated summary safe to redistribute."
        },
        "banner_image": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "source": {
          "type": "string"
        },
        "source_domain": {
          "type": "string"
        },
        "topics": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Topic"
          }
        },
        "tickers_sentiment": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "ownership_form": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "direct",
            "indirect"
          ],
          "description": "SEC Form 4 insider rows only — the holding pool the transaction touched. `null` for non-insider news. A single Form 4 can surface a `direct` and an `indirect` leg of the same plan as two separate articles (same filing URL, same date); they are distinct economic events, so SUM them rather than dedupe by URL/accession."
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "When AlphAI received the article — NOT its publish time (that is `time_published`). Use it to judge how fresh a pickup is. Do not build \"what's new\" polling on this field; that is what `sort=ingested` on `/api/news/` and `/api/news/insider/` is for."
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "description": "Last time the stored article row was touched (including internal maintenance). Informational only."
        }
      }
    },
    "RichNewsArticle": {
      "type": "object",
      "required": [
        "original",
        "enrichment"
      ],
      "properties": {
        "original": {
          "$ref": "#/$defs/OriginalArticle"
        },
        "enrichment": {
          "$ref": "#/$defs/EnrichedArticle"
        },
        "search_match": {
          "allOf": [
            {
              "$ref": "#/$defs/SearchMatch"
            }
          ],
          "nullable": true,
          "description": "Present only on `/api/news/search/` rows — how this article matched the query. `null` on every other endpoint."
        },
        "earnings": {
          "allOf": [
            {
              "$ref": "#/$defs/EarningsReport"
            }
          ],
          "nullable": true,
          "description": "AlphAI's structured read of the company's SEC earnings filing (8-K item 2.02, or a foreign private issuer's 6-K earnings release). Present only on a major ticker's earnings article whose figures cleared a cross-check against the filing text; null on every other article."
        },
        "story_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The story this article belongs to: a permanent key, the same value for a given story on every surface (`/api/news/`, search, trending, the MCP tools and `/api/stories/`) and across calls. Filled on every row of `/api/news/` and `/api/news/search/` since 1.49.0, and always on `/api/news/trending/`; a lone article is a story of one and names itself. The value is the `uid` of the story's first root article and does not change when a stronger copy later takes the root over or two stories merge (before 1.49.0 it followed the live root and could move once). Resolve it with `/api/stories/{story_id}/`: `found` is a story summarised from two or more publishers, `not_a_story` means one publisher carried the event (`/api/news/{uid}/` has the article), `merged` names the surviving story. `/api/news/{uid}/` carries it too; null only on `/api/news/{uid}/related/`. The `sources_count` / `sources` pair stays collapse-only."
        },
        "sources_count": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Story-collapsed responses only. Number of distinct outlets (source domains) covering this story; the same outlet running it more than once counts once. Most stories are carried by a single outlet, so this is usually 1. Treat a value above 1 as the signal, not the number itself. May exceed the length of `sources`, which is capped at 10. `null` in the default feed."
        },
        "sources": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "Story-collapsed responses only. Distinct source domains covering this story, in first-appearance order, capped at 10. `null` in the default feed."
        },
        "insider": {
          "nullable": true,
          "allOf": [
            {
              "$ref": "#/$defs/InsiderEvent"
            }
          ],
          "description": "`/api/news/insider/` and `/api/news/{uid}/` — the structured SEC Form 4 event block, on every row whose source is a Form 4. `null` on every other row, on the other endpoints, and on rows without paired transaction data."
        },
        "filing": {
          "nullable": true,
          "allOf": [
            {
              "$ref": "#/$defs/EightKFiling"
            }
          ],
          "description": "`/api/news/` and `/api/news/{uid}/` — the structured SEC 8-K filing block, present on every row whose source is an 8-K (`original.source` is `SEC EDGAR 8-K`; filter them with `source_type=sec_form8k` or `item=`). `null` on press, Form 4 and 6-K rows, on the other endpoints, and on the rare 8-K row without structured data."
        }
      }
    },
    "SearchMatch": {
      "type": "object",
      "description": "How an article matched a `/api/news/search/` query.",
      "properties": {
        "score": {
          "type": "number",
          "description": "The engine's ranking score for this row. Comparable within one response only, never across queries or engine versions."
        },
        "terms_matched": {
          "type": [
            "integer",
            "null"
          ],
          "description": "In `broadened` mode, how many of the query's words this row carries (at least two); `null` in `strict` mode, where every word matched."
        },
        "context": {
          "type": [
            "string",
            "null"
          ],
          "description": "A fragment of the summary around the matched words, each wrapped in `**…**`; `null` when the match lies in the title or the entity names only."
        }
      }
    },
    "Sentiment": {
      "type": "string",
      "enum": [
        "positive",
        "neutral",
        "negative"
      ]
    },
    "TickerAnalysis": {
      "type": "object",
      "properties": {
        "ticker": {
          "type": "string"
        },
        "relevance_context": {
          "type": "string"
        },
        "impact_analysis": {
          "$ref": "#/$defs/ImpactAnalysis"
        }
      }
    },
    "Topic": {
      "type": "object",
      "required": [
        "topic",
        "relevance"
      ],
      "properties": {
        "topic": {
          "type": "string"
        },
        "relevance": {
          "type": "number",
          "format": "float"
        }
      }
    }
  }
}