Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...

    Outcome record for a single document in a top-N full-text fetch. Used in the data-download-manifest and as the return value of fetchFullTextForTopN.

    interface FullTextFetchOutcome {
    ย ย ย ย dokId: string;
    ย ย ย ย success: boolean;
    ย ย ย ย chars: number;
    ย ย ย ย filePath?: string;
    ย ย ย ย reason?: string;
    ย ย ย ย coverageState:
    ย ย ย ย ย ย ย ย | "full_text"
    ย ย ย ย ย ย ย ย | "metadata_only"
    ย ย ย ย ย ย ย ย | "not_indexed"
    ย ย ย ย ย ย ย ย | "search_empty"
    ย ย ย ย ย ย ย ย | "fetch_error";
    ย ย ย ย provenance: MCPProvenance;
    ย ย ย ย deferred?: boolean;
    }
    Index
    dokId: string

    Riksdag document identifier

    success: boolean

    Whether meaningful full-text content was retrieved and persisted

    chars: number

    Length (chars) of the persisted content; 0 when success is false

    filePath?: string

    Relative path to the persisted .md file (undefined when success is false)

    reason?: string

    Human-readable reason when success is false

    coverageState:
    ย ย ย ย | "full_text"
    ย ย ย ย | "metadata_only"
    ย ย ย ย | "not_indexed"
    ย ย ย ย | "search_empty"
    ย ย ย ย | "fetch_error"

    Machine-readable coverage state after the fetch attempt

    provenance: MCPProvenance

    Provenance block mirroring economicProvenance

    deferred?: boolean

    True when the attempt originated from the deferred retry queue