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/ApiMessage.md.
  • 中文
  • Interface: ApiMessage

    Defined in: envelope/index.ts:30

    A single message under a modern errorformat (an entry of the errors or warnings array). Which text-bearing field is present depends on the format: text for plaintext/wikitext, html for html, key/params for raw.

    Properties

    code

    code: string

    Defined in: envelope/index.ts:32

    Machine-readable code, e.g. badvalue, unrecognizedparams.


    data?

    optional data?: unknown

    Defined in: envelope/index.ts:50

    Extra structured data some messages attach.


    html?

    optional html?: string

    Defined in: envelope/index.ts:38

    Parsed message HTML (errorformat=html).


    key?

    optional key?: string

    Defined in: envelope/index.ts:41

    i18n message key (errorformat=raw).


    module?

    optional module?: string

    Defined in: envelope/index.ts:47

    Module the message originated from, e.g. main, query+info.


    params?

    optional params?: ApiMessageParam[]

    Defined in: envelope/index.ts:44

    i18n message parameters (errorformat=raw).


    text?

    optional text?: string

    Defined in: envelope/index.ts:35

    Rendered message (errorformat=plaintext/wikitext).