For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/core/ApiWatchEntry.md.
  • 中文
  • Interface: ApiWatchEntry

    Defined in: core/watch.ts:13

    One watched/unwatched page.

    Properties

    errors?

    optional errors?: (ApiMessage | ApiError | ApiSpecMessage)[]

    Defined in: core/watch.ts:45

    In-band messages when the watch/unwatch operation failed (pageset mode; the legacy title mode dies with a top-level error instead). Heterogeneous: messages raised by the operation itself follow the request's errorformat (ApiSpecMessage under bc, ApiMessage under a modern one), while a watchlist-label failure carries the legacy { code, info } shape under bc, and an ApiMessage under a modern one.


    expiry?

    optional expiry?: string

    Defined in: core/watch.ts:35

    Expiry applied to the watch (the expiry parameter echoed back). Watch direction only.


    labels?

    optional labels?: ApiWatchlistLabel[]

    Defined in: core/watch.ts:56

    Watchlist labels just saved for this page, echoed back when the request passed labels and $wgEnableWatchlistLabels is on.

    Since

    MediaWiki 1.46


    ns

    ns: number

    Defined in: core/watch.ts:18

    Namespace index.


    title

    title: string

    Defined in: core/watch.ts:15

    Page title.


    unwatched?

    optional unwatched?: boolean

    Defined in: core/watch.ts:24

    The page was removed from the watchlist. A real boolean.


    warnings?

    optional warnings?: ApiMessage[] | ApiSpecMessage[]

    Defined in: core/watch.ts:48

    In-band warnings for a failed operation (present when non-empty), shaped per the request's errorformat.


    watchable?

    optional watchable?: 0

    Defined in: core/watch.ts:29

    The page is not watchable — always 0; watched/unwatched are absent.


    watched?

    optional watched?: boolean

    Defined in: core/watch.ts:21

    The page was added to the watchlist. A real boolean.