Skip to content

Generated reference documents model types missing from the SDK #797

Description

@kritikmodi

Environment

  • openrouter/sdk@1.2.27
  • TypeScript 5.9.3
  • NodeNext module resolution

Problem

Three generated reference pages import types that @openrouter/sdk/models does not export:

import {
  Analysis,
  AnthropicCitationSearchResultLocation,
  AnthropicCitationWebSearchResultLocation,
} from "@openrouter/sdk/models";

This produces TS2305 and TS2724.

Affected pages:

The SDK currently suggests the similarly named *Param citation types, but I cannot determine whether the documented types were renamed, accidentally omitted, or should no longer be documented.

Expected

Either the docs are incorrect or the SDK missed something. In any case, generated reference pages should only document types exported by the corresponding published SDK version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions