Riksdagsmonitor Intelligence Platform โ€” API Documentation - v0.8.68
    Preparing search index...

    Interface ArticleData

    Full data payload passed to the article HTML template

    interface ArticleData {
    ย ย ย ย slug: string;
    ย ย ย ย title: string;
    ย ย ย ย subtitle: string;
    ย ย ย ย date: string;
    ย ย ย ย type: ArticleCategory;
    ย ย ย ย articleType?: ArticleType;
    ย ย ย ย readTime?: string;
    ย ย ย ย lang?: Language;
    ย ย ย ย locale?: string;
    ย ย ย ย content: string;
    ย ย ย ย events?: EventGridItem[];
    ย ย ย ย watchPoints?: WatchPoint[];
    ย ย ย ย sources?: string[];
    ย ย ย ย keywords?: string[];
    ย ย ย ย topics?: string[];
    ย ย ย ย tags?: string[];
    ย ย ย ย sections?: TemplateSection[];
    ย ย ย ย significance?: number;
    ย ย ย ย urgency?: UrgencyLabel;
    ย ย ย ย classificationLevel?: ClassificationLevel;
    ย ย ย ย riskLevel?: RiskLevel;
    ย ย ย ย confidenceLabel?: ConfidenceLabel;
    ย ย ย ย analysisReferencesHtml?: string;
    ย ย ย ย faqItems?: FAQItem[];
    }
    Index

    Properties

    slug: string
    title: string
    subtitle: string
    date: string
    articleType?: ArticleType

    Optional routing article type used for CSS theming and template registry lookup (e.g. 'week-ahead', 'motions', 'interpellations'). When provided, generateArticleHTML will apply the matching article-type-* CSS class to the <article> element. When omitted, no per-type class is applied โ€” the article keeps base .news-article styling. (type: ArticleCategory values like 'analysis' are not valid ArticleType keys.)

    readTime?: string
    lang?: Language
    locale?: string
    content: string
    events?: EventGridItem[]
    watchPoints?: WatchPoint[]
    sources?: string[]
    keywords?: string[]
    topics?: string[]
    tags?: string[]
    sections?: TemplateSection[]

    Optional extensible sections appended after the main article content. Each entry is rendered as an isolated <div> block, allowing new content types to be injected without changing the template core.

    significance?: number

    Political significance score (0-100) from the significance scorer

    urgency?: UrgencyLabel

    Editorial urgency label derived from the significance score

    classificationLevel?: ClassificationLevel

    Political intelligence classification level (CRITICAL/HIGH/MEDIUM/LOW). Derived from pre-computed analysis files when available.

    riskLevel?: RiskLevel

    Political risk level (high/elevated/moderate/low). Derived from pre-computed risk assessment analysis.

    confidenceLabel?: ConfidenceLabel

    Confidence label for the article's analytical claims (HIGH/MEDIUM/LOW). Reflects the evidence quality of the pre-computed analysis.

    analysisReferencesHtml?: string

    Pre-rendered HTML for the "๐Ÿ“Š Analysis & Sources" section linking to all analysis files used during this article's generation run. Generated by generateAnalysisReferencesHtml() in analysis-references.ts. When present, it is injected between the article content and the footer.

    faqItems?: FAQItem[]

    Optional FAQ items rendered as an HTML section and emitted as Schema.org FAQPage structured data for rich SERP snippets and voice assistants. Each item contains a plain-text question and a concise answer.