# types-mediawiki-response > TypeScript types for MediaWiki Action API responses ## 指南 - [快速开始](https://types-mediawiki-response.pages.dev/zh/guide/getting-started.md): 安装本包,标注第一个响应,并了解失败与扩展包的处理方式。 - [信封与错误处理](https://types-mediawiki-response.pages.dev/zh/guide/errors.md): 用 ApiResponseWith 包住成功形状,并按 errorformat 收窄 bc 与 modern 两族错误。 - [query 响应](https://types-mediawiki-response.pages.dev/zh/guide/query.md): action=query 响应的类型组织:prop= 模块并入 ApiPage,list= 与 meta= 的结果挂在 query 根下,continue 令牌负责翻页,日志明细共用一个按 action 变化的形状,QueryPage 把页面投影回本次实际请求的 prop。 - [字段约定](https://types-mediawiki-response.pages.dev/zh/guide/conventions.md): 字段类型如何对应线格式:Flag 出现即 true、否则整键缺省,无值可能回空串,连字符与 * 键逐字保留,query.pages 是数组,字符串联合分开放与封闭两种。 - [按需启用扩展包](https://types-mediawiki-response.pages.dev/zh/guide/ext-packs.md): 按站点实际安装的扩展,用按需启用的包加一条 type-only import 激活扩展响应字段;扩展 action 则按名导入响应类型。 - [示例](https://types-mediawiki-response.pages.dev/zh/guide/examples.md): 三个最小、随 CI 类型检查的示例工程覆盖常见消费场景:TS 小工具、靠 JSDoc 获得悬浮类型的纯 JS 小工具、跑在 Node 上的机器人客户端。 - [常见问题](https://types-mediawiki-response.pages.dev/zh/guide/qa.md): 只有把类型接进真实的请求代码时才会冒出来的毛刺。 ## API 参考 - [API 参考](https://types-mediawiki-response.pages.dev/zh/api/index.md): API 参考总览:本包的覆盖范围、Core 与扩展包参考的组织方式,以及各按需启用包的落点。 - [Core](https://types-mediawiki-response.pages.dev/zh/api/core/overview.md): Everything MediaWiki core can return: the response envelope, shared atoms, one response type per `action=`, and the `action=query` framework. - [Interface: ApiAcceptLang](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAcceptLang.md): Defined in: core/query/userinfo.ts:17 One entry of the acceptlang list (a browser Accept-Language parse). - [Interface: ApiAcquireTempUserNameResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAcquireTempUserNameResponse.md): Defined in: core/acquiretempusername.ts:15 Response of action=acquiretempusername. - [Interface: ApiActionPermission](https://types-mediawiki-response.pages.dev/zh/api/core/ApiActionPermission.md): Defined in: core/query/info.ts:44 One permission-check failure reported under intestactionsdetail=full|quick. The text-bearing keys depend on the request's errorformat: text for plaintext/wikitext, html for html, key/params for raw, and none of them for none. A request using the default (bc) format is rendered as plaintext here. - [Interface: ApiAllCategory](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAllCategory.md): Defined in: core/query/allcategories.ts:9 One category summary. acprop=size|hidden selects the optional fields. - [Interface: ApiAllDeletedRevisions](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAllDeletedRevisions.md): Defined in: core/query/alldeletedrevisions.ts:15 One page carrying at least one deleted revision. - [Interface: ApiAllImage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAllImage.md): Defined in: core/query/allimages.ts:13 One file listed by list=allimages. - [Interface: ApiAllLink](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAllLink.md): Defined in: core/query/alllinks.ts:14 One linked (or redirected-to / transcluded) title. - [Interface: ApiAllMessage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAllMessage.md): Defined in: core/query/allmessages.ts:13 One interface message. - [Interface: ApiAllPage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAllPage.md): Defined in: core/query/allpages.ts:11 One page listed by list=allpages. - [Interface: ApiAllRevisions](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAllRevisions.md): Defined in: core/query/allrevisions.ts:16 One page with the revisions requested for it. - [Type Alias: ApiAllusersEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAllusersEntry.md): ApiAllusersEntry = Omit & object Defined in: core/query/allusers.ts:16 One user listed by list=allusers. - [Type Alias: ApiAuthManagerMessage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAuthManagerMessage.md): ApiAuthManagerMessage = string | ApiAuthManagerRawMessage Defined in: core/query/authmanagerinfo.ts:15 A message attached to an AuthManager request or field. Its shape follows the request's amimessageformat parameter (default wikitext): a rendered string under wikitext/html, an ApiAuthManagerRawMessage under raw, and the key is absent under none. - [Interface: ApiAuthManagerRawMessage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAuthManagerRawMessage.md): Defined in: core/query/authmanagerinfo.ts:18 A message in raw form (amimessageformat=raw): the i18n key plus parameters. - [Type Alias: ApiAuthManagerStatus](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAuthManagerStatus.md): ApiAuthManagerStatus = "PASS" | "FAIL" | "UI" | "REDIRECT" | "RESTART" | "success" | string & object Defined in: core/query/authmanagerinfo.ts:32 AuthManager / password-flow status. The uppercase values are the AuthenticationResponse statuses that surface through the API (PASS/ FAIL/UI/REDIRECT/RESTART; the internal ABSTAIN never does); the lowercase success is emitted by ApiResetPassword itself. Open union. - [Interface: ApiAutoCreateTempUser](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAutoCreateTempUser.md): Defined in: core/query/siteinfo.ts:697 Temporary-account creation config (siprop=autocreatetempuser). - [Interface: ApiAutopromoteCondition](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAutopromoteCondition.md): Defined in: core/query/siteinfo.ts:661 One autopromote condition. A group's set is an object with numeric keys under fv2 (the PHP array also carries operand), so nested sets surface as "0", "1", … entries alongside operand. - [Interface: ApiAutopromoteConditions](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAutopromoteConditions.md): Defined in: core/query/siteinfo.ts:681 Autopromote condition sets keyed by group name (siprop=autopromote). A full condition set arrives as a single ApiAutopromoteCondition carrying an operand; a single-condition or bare-string configuration arrives wrapped in a one-element array. - [Interface: ApiAutopromoteOnce](https://types-mediawiki-response.pages.dev/zh/api/core/ApiAutopromoteOnce.md): Defined in: core/query/siteinfo.ts:691 Autopromote-once configuration keyed by hook name (siprop=autopromoteonce). A hook with nothing configured arrives as an empty array, because formatversion=2 cannot tell an empty PHP list from an empty map. - [Interface: ApiBacklink](https://types-mediawiki-response.pages.dev/zh/api/core/ApiBacklink.md): Defined in: core/query/backlinks.ts:16 One page that links to the target title. - [Interface: ApiBcErrorResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiBcErrorResponse.md): Defined in: envelope/index.ts:203 Error response under the default (bc) errorformat: a single error object. - [Interface: ApiBlock](https://types-mediawiki-response.pages.dev/zh/api/core/ApiBlock.md): Defined in: core/query/blocks.ts:32 One block record. bkprop controls which fields appear. - [Interface: ApiBlockInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiBlockInfo.md): Defined in: core/query/users.ts:15 Block details, as emitted for usprop=blockinfo (list=users) and uiprop=blockinfo (meta=userinfo). Only present when the user is blocked. The same shape is shared by ApiUser.blockcomponents entries. - [Interface: ApiBlockResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiBlockResponse.md): Defined in: core/block.ts:89 Response of action=block. - [Interface: ApiBlockRestrictions](https://types-mediawiki-response.pages.dev/zh/api/core/ApiBlockRestrictions.md): Defined in: core/query/blocks.ts:11 Restriction targets of a partial block, grouped by kind. - [Interface: ApiBlockResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiBlockResult.md): Defined in: core/block.ts:16 The block object of an action=block response. - [Interface: ApiCategory](https://types-mediawiki-response.pages.dev/zh/api/core/ApiCategory.md): Defined in: core/query/categories.ts:10 One category membership entry; clprop selects the optional fields. - [Interface: ApiCategoryInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiCategoryInfo.md): Defined in: core/query/categoryinfo.ts:9 Category size statistics (prop=categoryinfo). - [Interface: ApiCategoryMember](https://types-mediawiki-response.pages.dev/zh/api/core/ApiCategoryMember.md): Defined in: core/query/categorymembers.ts:17 One category member. cmprop controls which fields appear. - [Interface: ApiChangeAuthenticationDataResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiChangeAuthenticationDataResponse.md): Defined in: core/changeauthenticationdata.ts:14 Response of action=changeauthenticationdata. - [Interface: ApiChangeContentModelResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiChangeContentModelResponse.md): Defined in: core/changecontentmodel.ts:13 Response of action=changecontentmodel. - [Interface: ApiCheckTokenResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiCheckTokenResponse.md): Defined in: core/checktoken.ts:19 Response of action=checktoken. - [Type Alias: ApiCheckTokenResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiCheckTokenResult.md): ApiCheckTokenResult = "valid" | "expired" | "invalid" Defined in: core/checktoken.ts:16 Result values of ApiCheckTokenResponse. - [Interface: ApiClearHasMsgResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiClearHasMsgResponse.md): Defined in: core/clearhasmsg.ts:13 Response of action=clearhasmsg. - [Interface: ApiClientLogin](https://types-mediawiki-response.pages.dev/zh/api/core/ApiClientLogin.md): Defined in: core/clientlogin.ts:20 The clientlogin object of an action=clientlogin response. - [Interface: ApiClientLoginResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiClientLoginResponse.md): Defined in: core/clientlogin.ts:60 Response of action=clientlogin. - [Type Alias: ApiCodexIcon](https://types-mediawiki-response.pages.dev/zh/api/core/ApiCodexIcon.md): ApiCodexIcon = string | ApiCodexIconDefinition Defined in: core/query/codexicons.ts:34 A Codex icon: raw SVG markup, or a directionality/language-aware definition. - [Interface: ApiCodexIconDefinition](https://types-mediawiki-response.pages.dev/zh/api/core/ApiCodexIconDefinition.md): Defined in: core/query/codexicons.ts:13 Directionality/language-aware icon definition (object form of ApiCodexIcon). - [Interface: ApiCompareResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiCompareResponse.md): Defined in: core/compare.ts:107 Response of action=compare. - [Interface: ApiCompareResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiCompareResult.md): Defined in: core/compare.ts:15 The compare object of a successful action=compare response. - [Interface: ApiContributor](https://types-mediawiki-response.pages.dev/zh/api/core/ApiContributor.md): Defined in: core/query/contributors.ts:12 One contributor entry: a logged-in (registered or temporary) editor. - [Interface: ApiCreateAccountResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiCreateAccountResponse.md): Defined in: core/createaccount.ts:22 Response of action=createaccount. - [Interface: ApiDbReplLag](https://types-mediawiki-response.pages.dev/zh/api/core/ApiDbReplLag.md): Defined in: core/query/siteinfo.ts:569 One database host (siprop=dbrepllag). - [Interface: ApiDeleteResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiDeleteResponse.md): Defined in: core/delete.ts:33 Response of action=delete. - [Interface: ApiDeleteResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiDeleteResult.md): Defined in: core/delete.ts:14 The delete object of an action=delete response. - [Interface: ApiDeletedRev](https://types-mediawiki-response.pages.dev/zh/api/core/ApiDeletedRev.md): Defined in: core/query/deletedrevs.ts:22 One archived revision, as list=deletedrevs formats it. - [Interface: ApiDeletedRevs](https://types-mediawiki-response.pages.dev/zh/api/core/ApiDeletedRevs.md): Defined in: core/query/deletedrevs.ts:66 One page group. drprop=content also yields the revision text. - [Interface: ApiDuplicateFile](https://types-mediawiki-response.pages.dev/zh/api/core/ApiDuplicateFile.md): Defined in: core/query/duplicatefiles.ts:15 One other file with the same content. - [Interface: ApiEditCaptcha](https://types-mediawiki-response.pages.dev/zh/api/core/ApiEditCaptcha.md): Defined in: core/edit.ts:89 The captcha challenge of a result: "Failure" edit, as emitted by ConfirmEdit. - [Interface: ApiEditResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiEditResponse.md): Defined in: core/edit.ts:104 Response of action=edit. - [Interface: ApiEditResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiEditResult.md): Defined in: core/edit.ts:21 The edit object of an action=edit response. - [Interface: ApiEmailUserResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiEmailUserResponse.md): Defined in: core/emailuser.ts:19 Response of action=emailuser. - [Interface: ApiEmbeddedIn](https://types-mediawiki-response.pages.dev/zh/api/core/ApiEmbeddedIn.md): Defined in: core/query/embeddedin.ts:15 One page that embeds the target title. - [Interface: ApiEnvelope](https://types-mediawiki-response.pages.dev/zh/api/core/ApiEnvelope.md): Defined in: envelope/index.ts:171 Fields that may appear on every API response, successful or not. - [Interface: ApiError](https://types-mediawiki-response.pages.dev/zh/api/core/ApiError.md): Defined in: envelope/index.ts:138 The error object under the default (bc) errorformat. - [Type Alias: ApiErrorResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiErrorResponse.md): ApiErrorResponse = ApiBcErrorResponse | ApiModernErrorResponse Defined in: envelope/index.ts:221 An API response describing a failed request (either errorformat family). - [Interface: ApiExpandTemplatesCategory](https://types-mediawiki-response.pages.dev/zh/api/core/ApiExpandTemplatesCategory.md): Defined in: core/expandtemplates.ts:27 One category the output would add. - [Interface: ApiExpandTemplatesProperties](https://types-mediawiki-response.pages.dev/zh/api/core/ApiExpandTemplatesProperties.md): Defined in: core/expandtemplates.ts:15 Page settings surfaced by prop=properties. Open key set. - [Interface: ApiExpandTemplatesResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiExpandTemplatesResponse.md): Defined in: core/expandtemplates.ts:72 Response of action=expandtemplates. - [Interface: ApiExpandTemplatesResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiExpandTemplatesResult.md): Defined in: core/expandtemplates.ts:36 The expandtemplates object of a successful response. - [Interface: ApiExtMetadataField](https://types-mediawiki-response.pages.dev/zh/api/core/ApiExtMetadataField.md): Defined in: core/query/imageinfo.ts:43 One structured extmetadata field. - [Interface: ApiExtMetadataMultilangValue](https://types-mediawiki-response.pages.dev/zh/api/core/ApiExtMetadataMultilangValue.md): Defined in: core/query/imageinfo.ts:34 A multilang metadata value (iiextmetadatamultilang=1): the map of language codes to values that the API otherwise collapses to the best-matching language. x-default holds the fallback translation. - [Interface: ApiExtUrlUsage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiExtUrlUsage.md): Defined in: core/query/exturlusage.ts:11 One page whose content links to the searched URL. - [Interface: ApiExternalLink](https://types-mediawiki-response.pages.dev/zh/api/core/ApiExternalLink.md): Defined in: core/query/extlinks.ts:9 One external link used by a page. - [Interface: ApiFileArchiveEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiFileArchiveEntry.md): Defined in: core/query/filearchive.ts:20 One archived file. faprop selects the optional fields; id, name, ns and title are emitted regardless of faprop. - [Interface: ApiFileExtension](https://types-mediawiki-response.pages.dev/zh/api/core/ApiFileExtension.md): Defined in: core/query/siteinfo.ts:452 One uploadable file extension (siprop=fileextensions). - [Interface: ApiFileRepoInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiFileRepoInfo.md): Defined in: core/query/filerepoinfo.ts:15 One file repository: an element of the query.repos array. - [Interface: ApiFileRevertResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiFileRevertResponse.md): Defined in: core/filerevert.ts:14 Response of action=filerevert. - [Interface: ApiFileUsage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiFileUsage.md): Defined in: core/query/fileusage.ts:12 One local usage record. fuprop controls which fields appear. - [Interface: ApiGalleryOptions](https://types-mediawiki-response.pages.dev/zh/api/core/ApiGalleryOptions.md): Defined in: core/query/siteinfo.ts:319 general.galleryoptions: the site's $wgGalleryOptions, with core's defaults filled in for any key the site omits. - [Interface: ApiHiddenFlags](https://types-mediawiki-response.pages.dev/zh/api/core/ApiHiddenFlags.md): Defined in: core/query/shared.ts:23 Suppression ("RevisionDelete") visibility flags shared by the modules that report hidden users, comments and whole entries; each appears as a Flag when that part of the record is hidden. - [Interface: ApiImageInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiImageInfo.md): Defined in: core/query/imageinfo.ts:78 One image-info entry for a file page. - [Interface: ApiImageLimit](https://types-mediawiki-response.pages.dev/zh/api/core/ApiImageLimit.md): Defined in: core/query/siteinfo.ts:343 One entry of general.imagelimits: a selectable display size. - [Interface: ApiImageMetadataItem](https://types-mediawiki-response.pages.dev/zh/api/core/ApiImageMetadataItem.md): Defined in: core/query/imageinfo.ts:13 One entry in a file's raw format metadata array (may nest further items). - [Interface: ApiImageRotateEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiImageRotateEntry.md): Defined in: core/imagerotate.ts:22 One file entry of an action=imagerotate response. - [Interface: ApiImageRotateResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiImageRotateResponse.md): Defined in: core/imagerotate.ts:40 Response of action=imagerotate. - [Interface: ApiImageUsage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiImageUsage.md): Defined in: core/query/imageusage.ts:18 One page that uses the target file. - [Interface: ApiImportEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiImportEntry.md): Defined in: core/import.ts:16 One imported page reported by action=import. - [Interface: ApiImportResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiImportResponse.md): Defined in: core/import.ts:31 Response of action=import. - [Interface: ApiInterwikiLink](https://types-mediawiki-response.pages.dev/zh/api/core/ApiInterwikiLink.md): Defined in: core/query/iwlinks.ts:9 One interwiki link. - [Interface: ApiInterwikiMapEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiInterwikiMapEntry.md): Defined in: core/query/siteinfo.ts:578 One interwiki prefix (siprop=interwikimap). - [Interface: ApiIwbacklink](https://types-mediawiki-response.pages.dev/zh/api/core/ApiIwbacklink.md): Defined in: core/query/iwbacklinks.ts:11 One page carrying the searched interwiki link. - [Interface: ApiLangLink](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLangLink.md): Defined in: core/query/langlinks.ts:12 One interlanguage link. - [Interface: ApiLangbacklink](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLangbacklink.md): Defined in: core/query/langbacklinks.ts:11 One page carrying the searched language link. - [Interface: ApiLanguageInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLanguageInfo.md): Defined in: core/query/languageinfo.ts:10 Information about one language (meta=languageinfo, keyed by code). - [Interface: ApiLanguageSearchResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLanguageSearchResponse.md): Defined in: core/languagesearch.ts:16 Response of action=languagesearch. - [Interface: ApiLanguageVariant](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLanguageVariant.md): Defined in: core/query/siteinfo.ts:642 One language variant and its fallbacks (siprop=languagevariants). - [Interface: ApiLinksHere](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLinksHere.md): Defined in: core/query/linkshere.ts:11 One page in a linkshere result. lhprop controls which fields appear. - [Interface: ApiLogBlockRestrictions](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLogBlockRestrictions.md): Defined in: core/query/logparams.ts:341 Scope of a partial block (restrictions). - [Interface: ApiLogEvent](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLogEvent.md): Defined in: core/query/logevents.ts:15 One log event. leprop controls which fields appear. - [Interface: ApiLogEventParams](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLogEventParams.md): Defined in: core/query/logparams.ts:30 Structured log details — the params object of a log event (leprop=details on list=logevents, logparams under the log-info fields of list=recentchanges / list=watchlist). Each log action writes its own key set, which the server normalizes for the API. The keys below are the ones MediaWiki core itself writes; which of them a row carries depends on its type/action. The key space is open: extensions and site configuration can register further log actions, and rows written by older MediaWiki versions keep their historical key forms. Unknown keys therefore fall back to unknown instead of erroring. Consumers targeting one specific log action — or a site-custom one — can add its keys through interface merging: - [Interface: ApiLogGroupMetadata](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLogGroupMetadata.md): Defined in: core/query/logparams.ts:386 One group-membership change with its expiry (oldmetadata/newmetadata entry). - [Interface: ApiLogPageRef](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLogPageRef.md): Defined in: core/query/logparams.ts:332 One page a partial block is restricted to (restrictions.pages entry). - [Interface: ApiLogProtectDetail](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLogProtectDetail.md): Defined in: core/query/logparams.ts:353 One protection restriction (details entry on protect/protect, protect/modify). - [Interface: ApiLogRevDelVisibility](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLogRevDelVisibility.md): Defined in: core/query/logparams.ts:368 One visibility state (old/new on a RevisionDelete row). - [Interface: ApiLoginResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLoginResponse.md): Defined in: core/login.ts:18 Response of the deprecated action=login. - [Interface: ApiLogoutResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiLogoutResponse.md): Defined in: core/logout.ts:16 Response of action=logout. No payload keys are emitted on success; the type exists so the shape is explicit (the logout.status object older builds returned is gone in 1.43). - [Interface: ApiMagicWord](https://types-mediawiki-response.pages.dev/zh/api/core/ApiMagicWord.md): Defined in: core/query/siteinfo.ts:548 One magic word (siprop=magicwords). - [Type Alias: ApiManageTagsOperation](https://types-mediawiki-response.pages.dev/zh/api/core/ApiManageTagsOperation.md): ApiManageTagsOperation = "activate" | "create" | "deactivate" | "delete" Defined in: core/managetags.ts:14 action=managetags operation, echoed from the request. - [Interface: ApiManageTagsResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiManageTagsResponse.md): Defined in: core/managetags.ts:17 Response of action=managetags. - [Interface: ApiMergeHistoryResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiMergeHistoryResponse.md): Defined in: core/mergehistory.ts:12 Response of action=mergehistory. - [Interface: ApiMessage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiMessage.md): 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. - [Type Alias: ApiMessageParam](https://types-mediawiki-response.pages.dev/zh/api/core/ApiMessageParam.md): ApiMessageParam = string | number | ApiRawMessage | ApiMessageParamSpec Defined in: envelope/index.ts:22 A single i18n message parameter under errorformat=raw: a scalar, a bare nested message (ApiRawMessage, produced when a message sits inside a list), or an object spec (ApiMessageParamSpec). Plain-text parameters are inlined as scalars, and a numeric parameter may arrive as a bare number or a { num } spec. - [Interface: ApiMessageParamSpec](https://types-mediawiki-response.pages.dev/zh/api/core/ApiMessageParamSpec.md): Defined in: envelope/index.ts:79 Object form of a raw-format message parameter. Exactly one spec kind is present at runtime: a nested message (message), pre-escaped text (plaintext), raw text (raw), a number (num), a duration in seconds (duration/period), an expiry (expiry), a date/time (datetime/date/time), a user group (group), a byte size (size), a bit rate (bitrate), the deprecated object form (object), or a list (list + type). - [Interface: ApiModernErrorResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiModernErrorResponse.md): Defined in: envelope/index.ts:209 Error response under a modern errorformat: an errors array plus top-level docref. - [Interface: ApiMoveResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiMoveResponse.md): Defined in: core/move.ts:76 Response of action=move. - [Interface: ApiMoveResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiMoveResult.md): Defined in: core/move.ts:36 The move object of a successful action=move response. - [Interface: ApiMoveSubpage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiMoveSubpage.md): Defined in: core/move.ts:18 One subpage move outcome within subpages/subpages-talk. - [Interface: ApiMoveSubpageErrors](https://types-mediawiki-response.pages.dev/zh/api/core/ApiMoveSubpageErrors.md): Defined in: core/move.ts:30 The object form of subpages, returned only when the whole move failed. - [Interface: ApiNamespaceAlias](https://types-mediawiki-response.pages.dev/zh/api/core/ApiNamespaceAlias.md): Defined in: core/query/siteinfo.ts:434 One localized namespace alias (siprop=namespacealiases). - [Interface: ApiNamespaceInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiNamespaceInfo.md): Defined in: core/query/siteinfo.ts:24 One namespace entry in query.namespaces, keyed by namespace index. - [Interface: ApiNamespaces](https://types-mediawiki-response.pages.dev/zh/api/core/ApiNamespaces.md): Defined in: core/query/siteinfo.ts:61 query.namespaces: a map from namespace index to its info. Negative indexes are pseudo-namespaces; some indexes are absent (gaps). - [Interface: ApiOptionsResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiOptionsResponse.md): Defined in: core/options.ts:14 Response of action=options. - [Interface: ApiPage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPage.md): Defined in: core/query/index.ts:404 A query.pages entry carrying the union of all covered prop= fields. prop= modules widen this via declaration merging (see ./info); every field is optional because pages may be missing/invalid and because a response only contains the props that were requested. For a view scoped to the props you actually requested, use QueryPage. - [Interface: ApiPageContributors](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPageContributors.md): Defined in: core/query/contributors.ts:24 Fields prop=contributors contributes to ApiPage. ContributorsPage projects exactly this set. - [Type Alias: ApiPageExisting](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPageExisting.md): ApiPageExisting = Require Defined in: core/query/index.ts:442 A query.pages entry whose page exists. The framework resolves pageid, ns and title for every existing entry, so they are required here instead of optional as on the merged ApiPage. The other entry states do not carry all three, which is why the merged ApiPage keeps them optional: a title-supplied missing entry has no pageid; a page-id-supplied missing entry has neither ns nor title; an invalid title has only title/invalidreason; a special entry has no pageid. Narrow to this type only when the request cannot yield those states — a generator= feed, or pageids= with known-good ids. - [Interface: ApiPageIdentity](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPageIdentity.md): Defined in: core/query/index.ts:359 Framework identity fields present on every query.pages entry, regardless of which prop= modules were requested. - [Interface: ApiPageImageInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPageImageInfo.md): Defined in: core/query/imageinfo.ts:251 Page-level fields prop=imageinfo contributes to ApiPage. ImageInfoPage projects exactly this set. - [Interface: ApiPageInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPageInfo.md): Defined in: core/query/info.ts:65 Fields prop=info contributes to ApiPage. InfoPage projects exactly this set. - [Interface: ApiPageLink](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPageLink.md): Defined in: core/query/links.ts:12 One link made by a page. - [Interface: ApiPagePropName](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPagePropName.md): Defined in: core/query/pagepropnames.ts:10 One page property name in use. - [Type Alias: ApiPageProps](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPageProps.md): ApiPageProps = Record Defined in: core/query/pageprops.ts:14 The set of known property values is open-ended and site/extension-specific. - [Interface: ApiPageProtection](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPageProtection.md): Defined in: core/query/info.ts:13 One entry of a page's protection array (inprop=protection). - [Interface: ApiPageRef](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPageRef.md): Defined in: core/query/shared.ts:7 The pageid/ns/title page identity triple shared by list= module rows. - [Interface: ApiPagesWithProp](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPagesWithProp.md): Defined in: core/query/pageswithprop.ts:11 One page that defines the requested property. - [Interface: ApiParse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParse.md): Defined in: core/parse.ts:221 The parse object of a successful action=parse response. title and pageid are written before any prop value is considered; with onlypst=1 the module returns a different, metadata-free shape instead — see ApiParseOnlyPstResponse. - [Interface: ApiParseCategory](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParseCategory.md): Defined in: core/parse.ts:15 A category the parsed page would add itself to (prop=categories). - [Interface: ApiParseHeadItem](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParseHeadItem.md): Defined in: core/parse.ts:207 One raw element (prop=headitems). - [Interface: ApiParseIWLink](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParseIWLink.md): Defined in: core/parse.ts:72 An interwiki link (prop=iwlinks). - [Interface: ApiParseLangLink](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParseLangLink.md): Defined in: core/parse.ts:48 An interlanguage link (prop=langlinks). - [Interface: ApiParseLimitReportEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParseLimitReportEntry.md): Defined in: core/parse.ts:191 One row of limitreportdata (prop=limitreportdata). fv2 keeps the PHP array's numeric keys, so the measurement(s) sit under "0"/"1". - [Interface: ApiParseLink](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParseLink.md): Defined in: core/parse.ts:36 A wikilink or template used by the parsed page (prop=links / prop=templates). - [Interface: ApiParseOnlyPstResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParseOnlyPstResponse.md): Defined in: core/parse.ts:391 Response of action=parse&onlypst=1: the module builds the payload before it resolves a title, so only the pre-save-transformed text comes back — no title/pageid and none of the prop sub-objects of ApiParse. - [Interface: ApiParseRedirect](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParseRedirect.md): Defined in: core/parse.ts:84 One redirect resolution (with redirects=1, when parsing page=/pageid=). - [Interface: ApiParseResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParseResponse.md): Defined in: core/parse.ts:381 Response of action=parse. - [Interface: ApiParseSection](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParseSection.md): Defined in: core/parse.ts:98 A table-of-contents entry (prop=sections) — the legacy projection of the same outline prop=tocdata emits, with lowercase keys here (fromtitle, byteoffset) against camelCase there (fromTitle, codepointOffset); see ApiParseTocSection. extensionData appears only when non-empty. - [Interface: ApiParseTocData](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParseTocData.md): Defined in: core/parse.ts:179 The tocdata object (prop=tocdata). - [Interface: ApiParseTocSection](https://types-mediawiki-response.pages.dev/zh/api/core/ApiParseTocSection.md): Defined in: core/parse.ts:146 One tocdata section (prop=tocdata) — the same outline as ApiParseSection but camelCased, with an HTML heading level instead of a wikitext level and a code-point offset instead of a byte offset. - [Type Alias: ApiPasswordValidity](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPasswordValidity.md): ApiPasswordValidity = "Good" | "Change" | "Invalid" | string & object Defined in: core/validatepassword.ts:20 Password-policy verdict mapped from checkPasswordValidity's Status. Open union. - [Interface: ApiPatrolResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPatrolResponse.md): Defined in: core/patrol.ts:23 Response of action=patrol. - [Interface: ApiPatrolResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPatrolResult.md): Defined in: core/patrol.ts:11 The patrol object of a successful action=patrol response. - [Interface: ApiPrefixSearchResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPrefixSearchResult.md): Defined in: core/query/prefixsearch.ts:13 One prefix-search hit. - [Interface: ApiPreloadedContent](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPreloadedContent.md): Defined in: core/query/info.ts:271 Preloaded edit content (inprop=preloadcontent), which fills the main slot. - [Interface: ApiProtectResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiProtectResponse.md): Defined in: core/protect.ts:52 Response of action=protect. - [Interface: ApiProtectResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiProtectResult.md): Defined in: core/protect.ts:37 The protect object of an action=protect response. - [Interface: ApiProtectedTitle](https://types-mediawiki-response.pages.dev/zh/api/core/ApiProtectedTitle.md): Defined in: core/query/protectedtitles.ts:17 One protected title. ptprop controls which fields appear. - [Interface: ApiProtectionEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiProtectionEntry.md): Defined in: core/protect.ts:16 One applied protection (type → level, plus expiry). - [Interface: ApiPurgeEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPurgeEntry.md): Defined in: core/purge.ts:14 One purged page. - [Interface: ApiPurgeResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiPurgeResponse.md): Defined in: core/purge.ts:32 Response of action=purge. - [Interface: ApiQueryAuthManagerField](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryAuthManagerField.md): Defined in: core/query/authmanagerinfo.ts:63 A single field descriptor of an ApiQueryAuthManagerInfoRequest. - [Interface: ApiQueryAuthManagerInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryAuthManagerInfo.md): Defined in: core/query/authmanagerinfo.ts:87 The authmanagerinfo object returned under query. - [Interface: ApiQueryAuthManagerInfoRequest](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryAuthManagerInfoRequest.md): Defined in: core/query/authmanagerinfo.ts:42 One AuthManager request descriptor returned by meta=authmanagerinfo. - [Interface: ApiQueryBadRev](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryBadRev.md): Defined in: core/query/index.ts:517 One requested revid that does not exist, keyed by revision id. - [Interface: ApiQueryContinue](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryContinue.md): Defined in: core/query/index.ts:32 Continuation tokens returned by action=query. - [Interface: ApiQueryInterwikiTitle](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryInterwikiTitle.md): Defined in: core/query/index.ts:487 One title resolved to a foreign wiki through an interwiki prefix. - [Interface: ApiQueryNormalized](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryNormalized.md): Defined in: core/query/index.ts:346 One title normalization performed by the query framework. - [Interface: ApiQueryPage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryPage.md): Defined in: core/query/querypage.ts:40 The querypage container: the requested report and its rows. - [Interface: ApiQueryPageResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryPageResult.md): Defined in: core/query/querypage.ts:14 One row of a report. - [Interface: ApiQueryResolvedRedirect](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryResolvedRedirect.md): Defined in: core/query/index.ts:499 One redirect resolved by the framework (redirects=1). - [Interface: ApiQueryResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryResponse.md): Defined in: core/query/index.ts:570 Response of action=query. query widens as modules get covered. - [Interface: ApiQueryResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryResult.md): Defined in: core/query/index.ts:531 Accumulated shape of the query result object. Framework-level keys live here; per-module list/meta keys are merged in by their own files via declaration merging, keeping this open to extension. - [Interface: ApiQueryTitlePair](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryTitlePair.md): Defined in: core/query/index.ts:478 A { from, to } title pair emitted by the query framework. - [Interface: ApiQueryTokens](https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryTokens.md): Defined in: core/query/tokens.ts:9 Tokens returned by meta=tokens; which keys appear depends on type. - [Interface: ApiRandomPage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRandomPage.md): Defined in: core/query/random.ts:13 One randomly selected page. - [Interface: ApiRateLimit](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRateLimit.md): Defined in: core/query/userinfo.ts:26 A single rate-limit window under uiprop=ratelimits. - [Interface: ApiRawMessage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRawMessage.md): Defined in: envelope/index.ts:59 An i18n message spec nested inside another message's params (errorformat=raw) when a parameter is itself a message, serialized as { message: ApiRawMessage }. The nested params may recursively contain further messages. - [Interface: ApiRecentChange](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRecentChange.md): Defined in: core/query/recentchanges.ts:18 One recent-changes entry. rcprop controls which fields appear. - [Interface: ApiRedirect](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRedirect.md): Defined in: core/query/redirects.ts:10 One redirect entry. rdprop controls which fields appear. - [Interface: ApiRemoveAuthenticationDataResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRemoveAuthenticationDataResponse.md): Defined in: core/removeauthenticationdata.ts:14 Response of action=removeauthenticationdata. - [Interface: ApiResetPasswordResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiResetPasswordResponse.md): Defined in: core/resetpassword.ts:12 Response of action=resetpassword. - [Type Alias: ApiResponseWith](https://types-mediawiki-response.pages.dev/zh/api/core/ApiResponseWith.md): ApiResponseWith = ApiErrorResponse | TSuccess & ApiEnvelope Defined in: envelope/index.ts:224 Discriminated union helper: a response is either successful or an error. - [Interface: ApiRevision](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRevision.md): Defined in: core/query/revisions.ts:92 A single revision entry in pages[].revisions. - [Interface: ApiRevisionDeleteItem](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRevisionDeleteItem.md): Defined in: core/revisiondelete.ts:23 One item (revision / log entry / image) processed by the request. - [Interface: ApiRevisionDeleteResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRevisionDeleteResponse.md): Defined in: core/revisiondelete.ts:110 Response of action=revisiondelete. - [Interface: ApiRevisionDeleteResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRevisionDeleteResult.md): Defined in: core/revisiondelete.ts:92 The revisiondelete object of a successful response. - [Interface: ApiRevisionDiff](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRevisionDiff.md): Defined in: core/query/revisions.ts:74 Diff output attached to a revision (rvdiffto/rvdifftotext; both request parameters are deprecated — prefer action=compare). - [Interface: ApiRevisionSlot](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRevisionSlot.md): Defined in: core/query/revisions.ts:16 One content slot of a revision (a revision may have multiple named slots). - [Interface: ApiRevisionSlots](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRevisionSlots.md): Defined in: core/query/revisions.ts:62 The slots map, keyed by slot role. main is the default slot; extensions may add others (e.g. top, bottom). The index signature keeps it open. - [Interface: ApiRightsInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRightsInfo.md): Defined in: core/query/siteinfo.ts:425 siprop=rightsinfo: where to read the site's content-rights statement. - [Interface: ApiRollbackResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRollbackResponse.md): Defined in: core/rollback.ts:32 Response of action=rollback. - [Interface: ApiRollbackResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiRollbackResult.md): Defined in: core/rollback.ts:11 The rollback object of an action=rollback response. - [Interface: ApiSbom](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSbom.md): Defined in: core/query/siteinfo.ts:853 Software Bill of Materials in CycloneDX 1.6 form (siprop=sbom). Requires a named (logged-in, non-temporary) account. serialNumber embeds a fresh UUID per request. - [Interface: ApiSbomComponent](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSbomComponent.md): Defined in: core/query/siteinfo.ts:778 One component of the CycloneDX SBOM (siprop=sbom). Components nest: the platform entries carry their PHP extensions, MediaWiki core carries its composer packages and foreign resources, each extension carries its own composer packages. - [Type Alias: ApiSearchHit](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSearchHit.md): ApiSearchHit = ApiSearchResult & object Defined in: core/query/search.ts:83 A list=search hit. The module writes ns, title and pageid for every hit, before any srprop value is considered, so they are required here — unlike ApiSearchResult, which stays all-optional because generator=search merges the same shape into ApiPage entries. - [Interface: ApiSearchInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSearchInfo.md): Defined in: core/query/search.ts:116 Per-search metadata (list=search's searchinfo sibling). - [Interface: ApiSearchInterwikiInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSearchInterwikiInfo.md): Defined in: core/query/search.ts:110 Total-hit counter of an interwiki search section. - [Interface: ApiSearchInterwikiResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSearchInterwikiResult.md): Defined in: core/query/search.ts:101 One interwiki search hit, an element of ApiQueryResult.interwikisearch / ApiQueryResult.additionalsearch. Fields follow srprop exactly like ApiSearchResult, except title is the bare page name without the namespace, pageid is always 0, and the interwiki namespace/URL fields below are added. - [Interface: ApiSearchResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSearchResult.md): Defined in: core/query/search.ts:30 One search hit (list=search), and the page data generator=search injects into a query.pages entry. Which fields appear is controlled by srprop for list=search and by gsrprop for generator=search. The two differ in their default: gsrprop defaults to empty in generator mode, so only ns, title, pageid and the injected index appear unless gsrprop is passed explicitly. - [Interface: ApiSetNotificationTimestampEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSetNotificationTimestampEntry.md): Defined in: core/setnotificationtimestamp.ts:17 One page entry of an action=setnotificationtimestamp response. - [Interface: ApiSetNotificationTimestampResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSetNotificationTimestampResponse.md): Defined in: core/setnotificationtimestamp.ts:56 Response of action=setnotificationtimestamp. - [Interface: ApiSetNotificationTimestampWatchlistResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSetNotificationTimestampWatchlistResult.md): Defined in: core/setnotificationtimestamp.ts:50 Whole-watchlist result (entirewatchlist=1): a single object instead of the per-page array. - [Interface: ApiSetPageLanguageResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSetPageLanguageResponse.md): Defined in: core/setpagelanguage.ts:14 Response of action=setpagelanguage. - [Interface: ApiShowHook](https://types-mediawiki-response.pages.dev/zh/api/core/ApiShowHook.md): Defined in: core/query/siteinfo.ts:560 One hook and its subscribers (siprop=showhooks). - [Interface: ApiSiteExtension](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSiteExtension.md): Defined in: core/query/siteinfo.ts:461 siprop=extensions: one installed extension or skin. Keys other than type appear only when the component's extension.json declares them. - [Interface: ApiSiteGeneral](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSiteGeneral.md): Defined in: core/query/siteinfo.ts:70 Fields of query.general (siprop=general), closed on the 1.43 core key set — extend by declaration merging for site- or extension-specific keys. - [Interface: ApiSiteLanguage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSiteLanguage.md): Defined in: core/query/siteinfo.ts:630 One language entry (siprop=languages). - [Interface: ApiSiteRestrictions](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSiteRestrictions.md): Defined in: core/query/siteinfo.ts:410 siprop=restrictions: protection types and levels. levels is not a flat string list — FlaggedRevs registers a protection class as a nested array, so an element can be string[] (e.g. ["sreview"]). - [Interface: ApiSiteSkin](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSiteSkin.md): Defined in: core/query/siteinfo.ts:533 One installed skin (siprop=skins). - [Interface: ApiSiteStatistics](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSiteStatistics.md): Defined in: core/query/siteinfo.ts:352 Site counters (siprop=statistics). - [Interface: ApiSoftwareLibrary](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSoftwareLibrary.md): Defined in: core/query/siteinfo.ts:648 One software component (siprop=libraries / siprop=clientlibraries). - [Interface: ApiSpecMessage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSpecMessage.md): Defined in: common/index.ts:52 A structured in-band message — a serialized MediaWiki Message/FatalError spec ({ message, params, code, type }) nested inside an action result (e.g. password-policy messages, file-backend errors, AuthManager failures). Distinct from ApiMessage, which models the errorformat-based envelope. - [Interface: ApiSpecialPageAlias](https://types-mediawiki-response.pages.dev/zh/api/core/ApiSpecialPageAlias.md): Defined in: core/query/siteinfo.ts:443 One localized special-page alias (siprop=specialpagealiases). - [Interface: ApiStashEditResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiStashEditResponse.md): Defined in: core/stashedit.ts:15 Response of action=stashedit. - [Interface: ApiStashImageInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiStashImageInfo.md): Defined in: core/query/stashimageinfo.ts:20 Metadata of one stashed file. - [Interface: ApiStashedFile](https://types-mediawiki-response.pages.dev/zh/api/core/ApiStashedFile.md): Defined in: core/query/mystashedfiles.ts:14 One stashed file. msfprop controls the measurement fields. - [Interface: ApiTag](https://types-mediawiki-response.pages.dev/zh/api/core/ApiTag.md): Defined in: core/query/tags.ts:11 One change-tag definition. tgprop selects the optional fields. - [Interface: ApiTagEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiTagEntry.md): Defined in: core/tag.ts:17 One targeted entry of an action=tag response. - [Interface: ApiTagResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiTagResponse.md): Defined in: core/tag.ts:88 Response of action=tag. - [Interface: ApiTemplate](https://types-mediawiki-response.pages.dev/zh/api/core/ApiTemplate.md): Defined in: core/query/templates.ts:10 One page transcluded by the subject page. - [Interface: ApiThumbUrlEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiThumbUrlEntry.md): Defined in: core/query/imageinfo.ts:59 One scaled thumbnail entry (a keyed value of ApiImageInfo.thumburls). - [Interface: ApiTrackingCategory](https://types-mediawiki-response.pages.dev/zh/api/core/ApiTrackingCategory.md): Defined in: core/query/trackingcategories.ts:11 One tracking-category entry. tcprop=size|hidden controls the size fields. - [Interface: ApiTranscludedIn](https://types-mediawiki-response.pages.dev/zh/api/core/ApiTranscludedIn.md): Defined in: core/query/transcludedin.ts:11 One page in a transcludedin result. tiprop controls which fields appear. - [Interface: ApiUnblockResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUnblockResponse.md): Defined in: core/unblock.ts:38 Response of action=unblock. - [Interface: ApiUnblockResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUnblockResult.md): Defined in: core/unblock.ts:14 The unblock object of an action=unblock response. - [Interface: ApiUndeleteResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUndeleteResponse.md): Defined in: core/undelete.ts:25 Response of action=undelete. - [Interface: ApiUndeleteResult](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUndeleteResult.md): Defined in: core/undelete.ts:10 The undelete object of an action=undelete response. - [Interface: ApiUploadDialog](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUploadDialog.md): Defined in: core/query/siteinfo.ts:717 Upload dialog configuration (siprop=uploaddialog), mirroring $wgUploadDialog verbatim. - [Interface: ApiUploadExtMetadataField](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUploadExtMetadataField.md): Defined in: core/upload.ts:19 A single extmetadata field on an uploaded file's imageinfo. - [Interface: ApiUploadImageinfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUploadImageinfo.md): Defined in: core/upload.ts:40 The embedded imageinfo of an action=upload result, for the uploaded revision. - [Interface: ApiUploadMetadataItem](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUploadMetadataItem.md): Defined in: core/upload.ts:31 One { name, value } metadata entry (values nest for structured types). - [Interface: ApiUploadResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUploadResponse.md): Defined in: core/upload.ts:112 Response of action=upload. - [Interface: ApiUploadWarnings](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUploadWarnings.md): Defined in: core/upload.ts:100 In-band upload warnings (values are strings, string arrays, or objects). - [Interface: ApiUsedImage](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUsedImage.md): Defined in: core/query/images.ts:10 One image used by a page. - [Interface: ApiUser](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUser.md): Defined in: core/query/users.ts:135 A user record. usprop controls which fields appear. - [Interface: ApiUserContrib](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUserContrib.md): Defined in: core/query/usercontribs.ts:14 One contribution record. ucprop controls which fields appear. - [Interface: ApiUserCore](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUserCore.md): Defined in: core/query/users.ts:111 Fields present on both the list=users (ApiUser) and meta=userinfo user records; each is gated by the same usprop/uiprop value in both modules. - [Interface: ApiUserGroup](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUserGroup.md): Defined in: core/query/siteinfo.ts:382 One user group (siprop=usergroups). The right-granting lists come from $wgAddGroups/$wgRemoveGroups/…, so they are absent when unconfigured. - [Interface: ApiUserGroupMembership](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUserGroupMembership.md): Defined in: core/query/users.ts:98 A single group membership with grant metadata. usprop=groupmemberships (vs. the plain name list from usprop=groups). - [Interface: ApiUserInfo](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUserInfo.md): Defined in: core/query/userinfo.ts:35 The userinfo object of a meta=userinfo response. - [Interface: ApiUserrightsResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiUserrightsResponse.md): Defined in: core/userrights.ts:16 Response of action=userrights. - [Interface: ApiValidatePasswordResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiValidatePasswordResponse.md): Defined in: core/validatepassword.ts:23 Response of action=validatepassword. - [Interface: ApiWarningDetail](https://types-mediawiki-response.pages.dev/zh/api/core/ApiWarningDetail.md): Defined in: envelope/index.ts:159 One bc-format warning entry (the value of a module key in warnings). - [Type Alias: ApiWarnings](https://types-mediawiki-response.pages.dev/zh/api/core/ApiWarnings.md): ApiWarnings = Record | ApiMessage[] Defined in: envelope/index.ts:168 Warnings shape, polymorphic on errorformat: bc → object keyed by module name; modern → array of ApiMessage. - [Interface: ApiWatchEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiWatchEntry.md): Defined in: core/watch.ts:13 One watched/unwatched page. - [Interface: ApiWatchResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiWatchResponse.md): Defined in: core/watch.ts:60 Response of action=watch. - [Interface: ApiWatchlistEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiWatchlistEntry.md): Defined in: core/query/watchlist.ts:19 One watchlist entry. wlprop controls which fields appear. - [Interface: ApiWatchlistLabel](https://types-mediawiki-response.pages.dev/zh/api/core/ApiWatchlistLabel.md): Defined in: common/index.ts:77 A watchlist label ({ id, name }), as returned by meta=userinfo uiprop=watchlistlabels, prop=info inprop=watchlistlabels, list=watchlist wlprop=labels, and echoed by action=watch. Requires $wgEnableWatchlistLabels. Emitted as a list; an empty set serializes as []. - [Interface: ApiWatchlistRawEntry](https://types-mediawiki-response.pages.dev/zh/api/core/ApiWatchlistRawEntry.md): Defined in: core/query/watchlistraw.ts:18 One watched title. - [Interface: ApiWatchlistRawResponse](https://types-mediawiki-response.pages.dev/zh/api/core/ApiWatchlistRawResponse.md): Defined in: core/query/watchlistraw.ts:43 Response of a query whose only module is list=watchlistraw: because the module writes outside query, the envelope comes back without a query member. - [Type Alias: BlockExpiry](https://types-mediawiki-response.pages.dev/zh/api/core/BlockExpiry.md): BlockExpiry = Timestamp | "infinite" Defined in: common/index.ts:29 Expiry of a block as an action result reports it: a timestamp, or the literal infinite for an indefinite block. - [Type Alias: CaseSensitivity](https://types-mediawiki-response.pages.dev/zh/api/core/CaseSensitivity.md): CaseSensitivity = "first-letter" | "case-sensitive" | string & object Defined in: core/query/siteinfo.ts:21 Whether/case-sensitivity of page titles in a namespace. Open union for forward compatibility. - [Type Alias: CategoryMemberType](https://types-mediawiki-response.pages.dev/zh/api/core/CategoryMemberType.md): CategoryMemberType = "page" | "subcat" | "file" Defined in: core/query/categorymembers.ts:14 Member type (cmtype / gcmtype). - [Type Alias: ContentFormat](https://types-mediawiki-response.pages.dev/zh/api/core/ContentFormat.md): ContentFormat = "text/x-wiki" | "text/plain" | "text/javascript" | "text/css" | "application/json" | string & object Defined in: common/index.ts:127 Serialization format of a revision slot, e.g. text/x-wiki. Open union: known core formats are listed for autocomplete and (string & {}) keeps the type forward-compatible with extension-provided formats. - [Type Alias: ContentModel](https://types-mediawiki-response.pages.dev/zh/api/core/ContentModel.md): ContentModel = "wikitext" | "javascript" | "css" | "json" | "text" | "Scribunto" | ContentModelExtension[keyof ContentModelExtension] | string & object Defined in: common/index.ts:96 Content model of a page. Open union — known values are autocomplete sugar only; (string & {}) accepts any model a response may carry. Coverage policy: MediaWiki core models are listed directly; Scribunto is included as the one near-universal extension model; extension packs promote their own models by augmenting ContentModelExtension (e.g. MassMessageListContent from the MassMessage pack); consumers may augment the same interface for site-specific models registered through $wgContentHandlers. - [Interface: ContentModelExtension](https://types-mediawiki-response.pages.dev/zh/api/core/ContentModelExtension.md): Defined in: common/index.ts:120 Augmentation target for content models beyond MediaWiki core: extension packs and consumers merge members here (each mapping the model name to itself) to promote them to first-class known values of ContentModel. - [Type Alias: ContributorsPage](https://types-mediawiki-response.pages.dev/zh/api/core/ContributorsPage.md): ContributorsPage = QueryPage Defined in: core/query/contributors.ts:40 A page projected to everything prop=contributors contributes, plus the framework-injected ApiPage.index. - [Type Alias: Expiry](https://types-mediawiki-response.pages.dev/zh/api/core/Expiry.md): Expiry = Timestamp | "infinity" Defined in: common/index.ts:23 Expiry of a temporary state: a timestamp, or the literal infinity when it does not expire. Block records spell the permanent case infinite instead — see BlockExpiry. - [Type Alias: Flag](https://types-mediawiki-response.pages.dev/zh/api/core/Flag.md): Flag = true Defined in: common/index.ts:10 MediaWiki boolean-style flags: present as true when set, otherwise absent. - [Type Alias: ImageInfoPage](https://types-mediawiki-response.pages.dev/zh/api/core/ImageInfoPage.md): ImageInfoPage = QueryPage Defined in: core/query/imageinfo.ts:277 A page projected to everything prop=imageinfo contributes, plus the framework-injected ApiPage.index. - [Type Alias: InfoPage](https://types-mediawiki-response.pages.dev/zh/api/core/InfoPage.md): InfoPage = QueryPage Defined in: core/query/info.ts:261 A page projected to everything prop=info contributes, plus the framework-injected ApiPage.index. - [Type Alias: InfoPageExisting](https://types-mediawiki-response.pages.dev/zh/api/core/InfoPageExisting.md): InfoPageExisting = QueryPageExisting Defined in: core/query/info.ts:268 InfoPage for a page that exists: the identity fields and the unconditional prop=info fields (PropConstantKeys) are required; inprop-gated fields stay optional. - [Type Alias: NamespaceIndex](https://types-mediawiki-response.pages.dev/zh/api/core/NamespaceIndex.md): NamespaceIndex = number Defined in: common/index.ts:44 Namespace index. Negative indexes are pseudo-namespaces. - [Type Alias: PlainText](https://types-mediawiki-response.pages.dev/zh/api/core/PlainText.md): PlainText = string Defined in: common/index.ts:41 A block of plain text (as opposed to HTML), e.g. a TextExtracts excerpt requested with explaintext. Kept distinct from HTML-bearing string fields. - [Type Alias: PropConstantKeys](https://types-mediawiki-response.pages.dev/zh/api/core/PropConstantKeys.md): PropConstantKeys = "contentmodel" | "pagelanguage" | "pagelanguagehtmlcode" | "pagelanguagedir" | "touched" | "lastrevid" | "length" | "revisions" Defined in: core/query/index.ts:452 prop= fields their module writes unconditionally on an existing page. On QueryPageExisting these are required when picked; on the all-state QueryPage they stay optional, because invalid/special entries never carry prop fields. Every other prop= key is omitted when its data is absent (empty lists, non-file pages, non-category pages), so it stays optional even on QueryPageExisting. - [Type Alias: ProtectedTitleLevel](https://types-mediawiki-response.pages.dev/zh/api/core/ProtectedTitleLevel.md): ProtectedTitleLevel = "autoconfirmed" | "sysop" | string & object Defined in: core/query/protectedtitles.ts:14 Create-protection level of a protected title — an entry of $wgRestrictionLevels (core default: autoconfirmed, sysop). Open union: sreview comes from FlaggedRevs, so the set is site-dependent. - [Type Alias: QueryPage](https://types-mediawiki-response.pages.dev/zh/api/core/QueryPage.md): QueryPage = ApiPageIdentity & Pick Defined in: core/query/index.ts:425 A page scoped to a chosen set of prop= fields: identity fields plus the named keys only. Lets callers reflect what they requested and get a compile error when reading a prop they did not ask for. The generator-injected ApiPage.index is included as well, because it comes from the query framework rather than from a prop=. - [Type Alias: QueryPageExisting](https://types-mediawiki-response.pages.dev/zh/api/core/QueryPageExisting.md): QueryPageExisting = Require, "pageid" | "ns" | "title" | Extract> Defined in: core/query/index.ts:472 QueryPage for a page that exists: the identity fields are required rather than optional, and picked prop= fields that their module writes unconditionally (PropConstantKeys) are required too. See ApiPageExisting for when this holds. - [Type Alias: RecentChangeType](https://types-mediawiki-response.pages.dev/zh/api/core/RecentChangeType.md): RecentChangeType = "edit" | "new" | "log" | "categorize" | "external" | string & object Defined in: core/query/recentchanges.ts:15 Change type (rctype). Open union for forward compatibility. - [Type Alias: RevisionDeleteStatus](https://types-mediawiki-response.pages.dev/zh/api/core/RevisionDeleteStatus.md): RevisionDeleteStatus = "Success" | "Fail" | string & object Defined in: core/revisiondelete.ts:20 Per-item outcome. Open union for forward compatibility. - [Type Alias: SearchPage](https://types-mediawiki-response.pages.dev/zh/api/core/SearchPage.md): SearchPage = QueryPage Defined in: core/query/search.ts:181 A page projected to the hit fields generator=search injects, plus the framework-injected ApiPage.index. - [Type Alias: Timestamp](https://types-mediawiki-response.pages.dev/zh/api/core/Timestamp.md): Timestamp = string Defined in: common/index.ts:16 A MediaWiki timestamp in ISO 8601 format (UTC), e.g. 2024-01-15T08:30:00Z. - [Type Alias: WatchlistExpiry](https://types-mediawiki-response.pages.dev/zh/api/core/WatchlistExpiry.md): WatchlistExpiry = Timestamp | null Defined in: common/index.ts:35 Expiry of a watch: a timestamp, or null when the page is not watched or the watch is permanent. - [AbuseFilter](https://types-mediawiki-response.pages.dev/zh/api/extensions/abusefilters/overview.md): Opt-in extension pack: **AbuseFilter** (`list=abusefilters`, `list=abuselog`, `action=abusefilterchecksyntax`, `action=abusefilterevalexpression`, `action=abusefiltercheckmatch`, `action=abusefilterunblockautopromote`, `action=abuselogprivatedetails`). - [Type Alias: AbuseFilterSyntaxStatus](https://types-mediawiki-response.pages.dev/zh/api/extensions/abusefilters/AbuseFilterSyntaxStatus.md): AbuseFilterSyntaxStatus = "ok" | "error" | string & object Defined in: extensions/abusefilters.ts:172 Status of a syntax check (action=abusefilterchecksyntax). - [Interface: ApiAbuseFilter](https://types-mediawiki-response.pages.dev/zh/api/extensions/abusefilters/ApiAbuseFilter.md): Defined in: extensions/abusefilters.ts:33 One abuse filter definition. - [Interface: ApiAbuseFilterCheckMatchResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/abusefilters/ApiAbuseFilterCheckMatchResponse.md): Defined in: extensions/abusefilters.ts:214 Response of action=abusefiltercheckmatch. - [Interface: ApiAbuseFilterCheckSyntaxResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/abusefilters/ApiAbuseFilterCheckSyntaxResponse.md): Defined in: extensions/abusefilters.ts:175 Response of action=abusefilterchecksyntax. - [Interface: ApiAbuseFilterEvalExpressionResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/abusefilters/ApiAbuseFilterEvalExpressionResponse.md): Defined in: extensions/abusefilters.ts:202 Response of action=abusefilterevalexpression. - [Interface: ApiAbuseFilterUnblockAutopromoteResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/abusefilters/ApiAbuseFilterUnblockAutopromoteResponse.md): Defined in: extensions/abusefilters.ts:223 Response of action=abusefilterunblockautopromote. - [Interface: ApiAbuseLogEntry](https://types-mediawiki-response.pages.dev/zh/api/extensions/abusefilters/ApiAbuseLogEntry.md): Defined in: extensions/abusefilters.ts:119 One abuse-log entry (list=abuselog). - [Interface: ApiAbuseLogPrivateDetailsResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/abusefilters/ApiAbuseLogPrivateDetailsResponse.md): Defined in: extensions/abusefilters.ts:232 Response of action=abuselogprivatedetails (needs abusefilter-privatedetails). - [Babel](https://types-mediawiki-response.pages.dev/zh/api/extensions/babel/overview.md): Opt-in extension pack: **Babel** (`meta=babel`). - [Type Alias: ApiBabelResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/babel/ApiBabelResult.md): ApiBabelResult = Record Defined in: extensions/babel.ts:28 A meta=babel result: language code → Babel level string (e.g. "N", "1"… "5"). Site-configured, so the key set is open. An unknown user is an ApiErrorResponse, not this type. - [BetaFeatures](https://types-mediawiki-response.pages.dev/zh/api/extensions/betafeatures/overview.md): Opt-in extension pack: **BetaFeatures** (`list=betafeatures`). - [Interface: ApiBetaFeature](https://types-mediawiki-response.pages.dev/zh/api/extensions/betafeatures/ApiBetaFeature.md): Defined in: extensions/betafeatures.ts:24 One list=betafeatures entry: a feature id with its user count. - [CategoryTree](https://types-mediawiki-response.pages.dev/zh/api/extensions/categorytree/overview.md): Opt-in extension pack: **CategoryTree** (`action=categorytree`). - [Interface: ApiCategoryTreeResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/categorytree/ApiCategoryTreeResponse.md): Defined in: extensions/categorytree.ts:22 Response of action=categorytree. - [CentralAuth](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/overview.md): Opt-in extension pack: **CentralAuth** (`list=globalallusers`, `list=globalgroups`, `list=globalusers`, `list=wikisets`, `action=centralauthtoken`, `action=globaluserrights`, `action=setglobalaccountstatus`, `action=deleteglobalaccount`, `action=createlocalaccount`). - [Interface: ApiCentralAuthInBandErrorResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiCentralAuthInBandErrorResponse.md): Defined in: extensions/centralauth.ts:251 In-band failure of action=deleteglobalaccount / action=createlocalaccount: the messages appear under the root error key as a list of per-status lists — not as a standard ApiErrorResponse — so error carries no code/info of its own. - [Interface: ApiCentralAuthTokenResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiCentralAuthTokenResponse.md): Defined in: extensions/centralauth.ts:238 Response of action=centralauthtoken: a token that authenticates the current CentralAuth session on another wiki of the farm (sent as the centralauthtoken parameter there). Requires a logged-in user attached to a global account whose session comes from the CentralAuth session provider; every other case is a standard top-level error (notloggedin, badsession, notattached). - [Interface: ApiCreateLocalAccountResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiCreateLocalAccountResponse.md): Defined in: extensions/centralauth.ts:225 Response of action=createlocalaccount. Unlike setglobalaccountstatus, a failure returns only the root error list and no result object. - [Interface: ApiCreateLocalAccountResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiCreateLocalAccountResult.md): Defined in: extensions/centralauth.ts:211 Result of action=createlocalaccount (CSRF-token POST, centralauth-createlocal right): a local account was force-created on this wiki for the global account. - [Interface: ApiDeleteGlobalAccountResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiDeleteGlobalAccountResponse.md): Defined in: extensions/centralauth.ts:200 Response of action=deleteglobalaccount. - [Interface: ApiDeleteGlobalAccountResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiDeleteGlobalAccountResult.md): Defined in: extensions/centralauth.ts:191 Result of action=deleteglobalaccount (its own token type POST): the global account was unmerged (deleted). - [Interface: ApiGlobalCentralUser](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiGlobalCentralUser.md): Defined in: extensions/centralauth.ts:39 One list=globalallusers entry. aguprop controls which fields beyond ApiGlobalCentralUser.id / ApiGlobalCentralUser.name appear. Hidden accounts (suppressed from public lists) never appear here at all. - [Interface: ApiGlobalGroup](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiGlobalGroup.md): Defined in: extensions/centralauth.ts:71 One list=globalgroups entry: a global group defined on the wiki farm. The rows derive from the global_group_permissions table, so groups are only listed once they have at least one permission granted. - [Interface: ApiGlobalGroupMembership](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiGlobalGroupMembership.md): Defined in: extensions/centralauth.ts:328 One global group membership of a list=globalusers row. - [Interface: ApiGlobalUserFound](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiGlobalUserFound.md): Defined in: extensions/centralauth.ts:261 One list=globalusers entry for an existing global account. gusprop controls which fields beyond ApiGlobalUserFound.centralid / ApiGlobalUserFound.name appear. Results come back in request order; unknown names/ids get marker rows (see ApiGlobalUserRow). - [Interface: ApiGlobalUserInvalidName](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiGlobalUserInvalidName.md): Defined in: extensions/centralauth.ts:346 A list=globalusers row for a requested name that is not a valid username. - [Interface: ApiGlobalUserLocalInfo](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiGlobalUserLocalInfo.md): Defined in: extensions/centralauth.ts:316 The localinfo object of a list=globalusers row. - [Interface: ApiGlobalUserMissingId](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiGlobalUserMissingId.md): Defined in: extensions/centralauth.ts:355 A list=globalusers row for a requested global id with no global account. - [Interface: ApiGlobalUserMissingName](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiGlobalUserMissingName.md): Defined in: extensions/centralauth.ts:337 A list=globalusers row for a requested name with no global account. - [Interface: ApiGlobalUserRightsResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiGlobalUserRightsResponse.md): Defined in: extensions/centralauth.ts:129 Response of action=globaluserrights. Failures are standard top-level errors. - [Interface: ApiGlobalUserRightsResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiGlobalUserRightsResult.md): Defined in: extensions/centralauth.ts:114 Result of action=globaluserrights (userrights-token POST): global group memberships changed for one global account. Mirrors the core action=userrights result shape. - [Type Alias: ApiGlobalUserRow](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiGlobalUserRow.md): ApiGlobalUserRow = ApiGlobalUserFound | ApiGlobalUserMissingName | ApiGlobalUserInvalidName | ApiGlobalUserMissingId Defined in: extensions/centralauth.ts:369 One list=globalusers row: either a found account (ApiGlobalUserFound) or a marker for a name/id that is unknown (missing), syntactically invalid (invalid), or hidden from the requester (missing again — hidden accounts are reported as absent). - [Interface: ApiSetGlobalAccountStatusFailedResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiSetGlobalAccountStatusFailedResponse.md): Defined in: extensions/centralauth.ts:179 In-band failure of action=setglobalaccountstatus: the unchanged state object is returned without reason, alongside the root error list as a nested ApiSpecMessage list rather than a standard ApiErrorResponse. Use ApiResponseWith to model either outcome. - [Interface: ApiSetGlobalAccountStatusResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiSetGlobalAccountStatusResponse.md): Defined in: extensions/centralauth.ts:168 Successful response of action=setglobalaccountstatus. A failed lock/hide returns the unchanged state (without reason) plus an in-band root error — see ApiSetGlobalAccountStatusFailedResponse. - [Interface: ApiSetGlobalAccountStatusResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiSetGlobalAccountStatusResult.md): Defined in: extensions/centralauth.ts:158 Result object of action=setglobalaccountstatus (its own token type POST): the new lock / hide state of a global account plus the reason echoed back. - [Interface: ApiSetGlobalAccountStatusState](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiSetGlobalAccountStatusState.md): Defined in: extensions/centralauth.ts:140 The lock / hide state of a global account, written by action=setglobalaccountstatus on every outcome. The success response extends it with ApiSetGlobalAccountStatusResult.reason; a failed call reports only this state, alongside the in-band root error list. - [Interface: ApiWikiSet](https://types-mediawiki-response.pages.dev/zh/api/extensions/centralauth/ApiWikiSet.md): Defined in: extensions/centralauth.ts:83 One list=wikisets entry: a named wiki set (a list of wikis used for global group restrictions). The key set is farm-configured. - [CheckUser](https://types-mediawiki-response.pages.dev/zh/api/extensions/checkuser/overview.md): Opt-in extension pack: **CheckUser** (`list=checkuser`, `list=checkuserlog`, `meta=checkuserformattedblockinfo`). - [Interface: ApiCheckUserActionRow](https://types-mediawiki-response.pages.dev/zh/api/extensions/checkuser/ApiCheckUserActionRow.md): Defined in: extensions/checkuser.ts:54 One action row of curequest=actions (deprecated alias edits). - [Interface: ApiCheckUserIpRow](https://types-mediawiki-response.pages.dev/zh/api/extensions/checkuser/ApiCheckUserIpRow.md): Defined in: extensions/checkuser.ts:35 One IP row of curequest=userips: an IP the target user edited from. - [Interface: ApiCheckUserIpUserRow](https://types-mediawiki-response.pages.dev/zh/api/extensions/checkuser/ApiCheckUserIpUserRow.md): Defined in: extensions/checkuser.ts:96 One user row of curequest=ipusers: an account that edited from the target IP. - [Interface: ApiCheckUserLogEntry](https://types-mediawiki-response.pages.dev/zh/api/extensions/checkuser/ApiCheckUserLogEntry.md): Defined in: extensions/checkuser.ts:146 One entry of list=checkuserlog. - [Interface: ApiQueryCheckUserFormattedBlockInfoResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/checkuser/ApiQueryCheckUserFormattedBlockInfoResult.md): Defined in: extensions/checkuser.ts:179 The checkuserformattedblockinfo object: the sitewide-block status of the requesting user, for clients that need to explain API failures caused by their own block. - [Interface: ApiQueryCheckUserLogResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/checkuser/ApiQueryCheckUserLogResult.md): Defined in: extensions/checkuser.ts:167 The checkuserlog object of a list=checkuserlog response. - [Interface: ApiQueryCheckUserResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/checkuser/ApiQueryCheckUserResult.md): Defined in: extensions/checkuser.ts:128 The checkuser object: shaped by curequest, one key per request mode. - [Wikibase Client](https://types-mediawiki-response.pages.dev/zh/api/extensions/description/overview.md): Opt-in extension pack: **Wikibase Client** (`prop=description`). - [Type Alias: DescriptionSource](https://types-mediawiki-response.pages.dev/zh/api/extensions/description/DescriptionSource.md): DescriptionSource = "local" | "central" | string & object Defined in: extensions/description.ts:17 Where the description came from. Open union for forward compatibility. - [DiscussionTools](https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/overview.md): Opt-in extension pack: **DiscussionTools** (`action=discussiontoolspageinfo`, `action=discussiontoolsfindcomment`, `action=discussiontoolsgetsubscriptions`, `action=discussiontoolssubscribe`, `action=discussiontoolsthank`, `action=discussiontoolscompare`, `action=discussiontoolspreview`, `action=discussiontoolsedit`). - [Interface: ApiDiscussionToolsComment](https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/ApiDiscussionToolsComment.md): Defined in: extensions/discussiontools.ts:37 One node of a reply/indent tree (prop=threaditemshtml). - [Interface: ApiDiscussionToolsCommentForDiff](https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/ApiDiscussionToolsCommentForDiff.md): Defined in: extensions/discussiontools.ts:226 One comment item in a discussiontoolscompare diff: the thread-item shape (see ApiDiscussionToolsComment) with replies flattened to comment ids and the heading references appended. - [Interface: ApiDiscussionToolsCompareResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/ApiDiscussionToolsCompareResponse.md): Defined in: extensions/discussiontools.ts:253 Response of action=discussiontoolscompare (comment-level diff of two revisions). - [Interface: ApiDiscussionToolsEditResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/ApiDiscussionToolsEditResponse.md): Defined in: extensions/discussiontools.ts:286 Response of action=discussiontoolsedit. - [Interface: ApiDiscussionToolsFindCommentResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/ApiDiscussionToolsFindCommentResponse.md): Defined in: extensions/discussiontools.ts:180 Response of action=discussiontoolsfindcomment (a list of candidates). - [Interface: ApiDiscussionToolsFoundComment](https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/ApiDiscussionToolsFoundComment.md): Defined in: extensions/discussiontools.ts:147 One candidate returned by action=discussiontoolsfindcomment. - [Interface: ApiDiscussionToolsGetSubscriptionsResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/ApiDiscussionToolsGetSubscriptionsResponse.md): Defined in: extensions/discussiontools.ts:191 Response of action=discussiontoolsgetsubscriptions. The map is keyed by comment name (the same strings as the commentname request parameter); each value is 0 (unsubscribed), 1 (subscribed) or 2 (auto-subscribed) — numeric, not boolean. - [Interface: ApiDiscussionToolsPageInfoResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/ApiDiscussionToolsPageInfoResponse.md): Defined in: extensions/discussiontools.ts:135 Response of action=discussiontoolspageinfo. - [Interface: ApiDiscussionToolsPreviewResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/ApiDiscussionToolsPreviewResponse.md): Defined in: extensions/discussiontools.ts:277 Response of action=discussiontoolspreview. - [Interface: ApiDiscussionToolsSubscribeResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/ApiDiscussionToolsSubscribeResponse.md): Defined in: extensions/discussiontools.ts:197 Response of action=discussiontoolssubscribe. - [Interface: ApiDiscussionToolsThankResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/ApiDiscussionToolsThankResponse.md): Defined in: extensions/discussiontools.ts:216 Response of action=discussiontoolsthank. The module inherits the Thanks extension's result: a root-level result key, not one named after the module. - [Interface: ApiDiscussionToolsTranscludedFrom](https://types-mediawiki-response.pages.dev/zh/api/extensions/discussiontools/ApiDiscussionToolsTranscludedFrom.md): Defined in: extensions/discussiontools.ts:129 prop=transcludedfrom: whether each comment is a transclusion target here. Keyed by comment id and name; false when the content is local, true when transcluded but the source could not be determined, otherwise the source page title. - [Echo / Notifications](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/overview.md): Opt-in extension pack: **Echo / Notifications** (`meta=notifications`, `meta=unreadnotificationpages`, `action=echomute`, `action=echocreateevent`, `action=echoarticlereminder`, `action=echopushsubscriptions`). - [Interface: ApiEchoAgent](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoAgent.md): Defined in: extensions/echo.ts:131 The user whose action triggered a notification. - [Interface: ApiEchoCreateEventResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoCreateEventResponse.md): Defined in: extensions/echo.ts:350 Response of action=echocreateevent. Shape of the ApiEchoCreateEvent module (off by default — $wgEchoEnableApiEvents). - [Interface: ApiEchoMuteResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoMuteResponse.md): Defined in: extensions/echo.ts:339 Response of action=echomute. The module writes a plain status string rather than a wrapper object. - [Interface: ApiEchoNotification](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoNotification.md): Defined in: extensions/echo.ts:185 One notification row (meta=notifications, notprop=list). - [Interface: ApiEchoNotificationCount](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoNotificationCount.md): Defined in: extensions/echo.ts:38 A notification count: numeric rawcount plus a localized count string. - [Interface: ApiEchoNotificationLink](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoNotificationLink.md): Defined in: extensions/echo.ts:146 One link attached to a model-format notification. - [Interface: ApiEchoNotificationModel](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoNotificationModel.md): Defined in: extensions/echo.ts:155 Structured payload a notification's presenter exposes (notformat=model). - [Interface: ApiEchoNotificationSection](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoNotificationSection.md): Defined in: extensions/echo.ts:241 A count / list slice, either flat or grouped per section. - [Interface: ApiEchoPushSubscriptionsResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoPushSubscriptionsResponse.md): Defined in: extensions/echo.ts:372 Responses of action=echopushsubscriptions: the command value is the response key (create or delete). The module is experimental and only registered when $wgEchoEnablePush is on. - [Interface: ApiEchoTimestamp](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoTimestamp.md): Defined in: extensions/echo.ts:92 Every timestamp form Echo attaches to a notification (timestamp= object). - [Interface: ApiEchoTitle](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoTitle.md): Defined in: extensions/echo.ts:116 The title of the page a notification points at. - [Interface: ApiEchoUnreadPage](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoUnreadPage.md): Defined in: extensions/echo.ts:287 Per-wiki unread summary keyed by page title. - [Interface: ApiEchoUnreadSource](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoUnreadSource.md): Defined in: extensions/echo.ts:275 One wiki's unread-notification summary inside unreadnotificationpages. - [Interface: ApiEchoUnreadWiki](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiEchoUnreadWiki.md): Defined in: extensions/echo.ts:311 One wiki's entry in meta=unreadnotificationpages (keyed by wiki id). - [Interface: ApiQueryEchoArticleReminder](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiQueryEchoArticleReminder.md): Defined in: extensions/echo.ts:362 The echoarticlereminder object (returned under query). The module is only registered when $wgAllowArticleReminderNotification is on. - [Interface: ApiQueryEchoMarkRead](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiQueryEchoMarkRead.md): Defined in: extensions/echo.ts:47 The echomarkread object (returned under query by action=echomarkread). - [Interface: ApiQueryEchoMarkSeen](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiQueryEchoMarkSeen.md): Defined in: extensions/echo.ts:83 The echomarkseen object (returned under query by action=echomarkseen). - [Interface: ApiQueryEchoNotifications](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiQueryEchoNotifications.md): Defined in: extensions/echo.ts:263 The notifications object (returned under query by meta=notifications). - [Interface: ApiQueryEchoUnreadPages](https://types-mediawiki-response.pages.dev/zh/api/extensions/echo/ApiQueryEchoUnreadPages.md): Defined in: extensions/echo.ts:330 The unreadnotificationpages object: a map from wiki id (e.g. mediawikiwiki) to that wiki's unread summary. A PHP map, so an empty result serializes as []. - [TextExtracts](https://types-mediawiki-response.pages.dev/zh/api/extensions/extracts/overview.md): Opt-in extension pack: **TextExtracts** (`prop=extracts`). - [Type Alias: ApiExtract](https://types-mediawiki-response.pages.dev/zh/api/extensions/extracts/ApiExtract.md): ApiExtract = PlainText Defined in: extensions/extracts.ts:20 A page content extract (PlainText with explaintext, else HTML). - [FlaggedRevs](https://types-mediawiki-response.pages.dev/zh/api/extensions/flaggedrevs/overview.md): Opt-in extension pack: **FlaggedRevs** (`prop=flagged`, `list=unreviewedpages`, `list=oldreviewedpages`, `list=configuredpages`, `action=review`, `action=stabilize`, `action=flagconfig`). - [Interface: ApiConfiguredPage](https://types-mediawiki-response.pages.dev/zh/api/extensions/flaggedrevs/ApiConfiguredPage.md): Defined in: extensions/flaggedrevs.ts:126 One row of list=configuredpages (pages with explicit stability configuration). - [Interface: ApiFlagConfigEntry](https://types-mediawiki-response.pages.dev/zh/api/extensions/flaggedrevs/ApiFlagConfigEntry.md): Defined in: extensions/flaggedrevs.ts:183 One quality setting reported by action=flagconfig. - [Interface: ApiFlagConfigResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/flaggedrevs/ApiFlagConfigResponse.md): Defined in: extensions/flaggedrevs.ts:198 Response of action=flagconfig. FlaggedRevs writes this at the root of the envelope (it is not a query module), so it sits beside query, not inside it. - [Interface: ApiOldReviewedPage](https://types-mediawiki-response.pages.dev/zh/api/extensions/flaggedrevs/ApiOldReviewedPage.md): Defined in: extensions/flaggedrevs.ts:99 One row of list=oldreviewedpages (stable versions that are out of date). - [Interface: ApiPageFlagged](https://types-mediawiki-response.pages.dev/zh/api/extensions/flaggedrevs/ApiPageFlagged.md): Defined in: extensions/flaggedrevs.ts:39 A page's FlaggedRevs state (prop=flagged). - [Type Alias: ApiQueryConfiguredPages](https://types-mediawiki-response.pages.dev/zh/api/extensions/flaggedrevs/ApiQueryConfiguredPages.md): ApiQueryConfiguredPages = ApiConfiguredPage[] Defined in: extensions/flaggedrevs.ts:144 list=configuredpages rows. - [Type Alias: ApiQueryOldReviewedPages](https://types-mediawiki-response.pages.dev/zh/api/extensions/flaggedrevs/ApiQueryOldReviewedPages.md): ApiQueryOldReviewedPages = ApiOldReviewedPage[] Defined in: extensions/flaggedrevs.ts:123 list=oldreviewedpages rows. - [Type Alias: ApiQueryUnreviewedPages](https://types-mediawiki-response.pages.dev/zh/api/extensions/flaggedrevs/ApiQueryUnreviewedPages.md): ApiQueryUnreviewedPages = ApiUnreviewedPage[] Defined in: extensions/flaggedrevs.ts:96 list=unreviewedpages rows. - [Interface: ApiReviewResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/flaggedrevs/ApiReviewResponse.md): Defined in: extensions/flaggedrevs.ts:147 Response of action=review (approve or unapprove a pending revision). - [Interface: ApiRevisionFlagged](https://types-mediawiki-response.pages.dev/zh/api/extensions/flaggedrevs/ApiRevisionFlagged.md): Defined in: extensions/flaggedrevs.ts:72 Review state attached to a single revision by prop=revisions (rvprop=flagged, injected by FlaggedRevs; requires rvprop=ids — the request fails with missingparam otherwise). - [Interface: ApiStabilizeResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/flaggedrevs/ApiStabilizeResponse.md): Defined in: extensions/flaggedrevs.ts:162 Response of action=stabilize (change a page's stable-version config). Which variant serves the action depends on $wgFlaggedRevsProtection: the default mode returns default/autoreview, while the protection mode ($wgFlaggedRevsProtection=true) returns protectlevel instead. - [Interface: ApiUnreviewedPage](https://types-mediawiki-response.pages.dev/zh/api/extensions/flaggedrevs/ApiUnreviewedPage.md): Defined in: extensions/flaggedrevs.ts:90 One row of list=unreviewedpages (pages with a pending, unreviewed revision). - [Gadgets](https://types-mediawiki-response.pages.dev/zh/api/extensions/gadgets/overview.md): Opt-in extension pack: **Gadgets** (`list=gadgets`, `list=gadgetcategories`). - [Interface: ApiGadget](https://types-mediawiki-response.pages.dev/zh/api/extensions/gadgets/ApiGadget.md): Defined in: extensions/gadgets.ts:148 One gadget row (list=gadgets). - [Interface: ApiGadgetCategory](https://types-mediawiki-response.pages.dev/zh/api/extensions/gadgets/ApiGadgetCategory.md): Defined in: extensions/gadgets.ts:160 One gadget category (list=gadgetcategories, gcprop). - [Interface: ApiGadgetMetadata](https://types-mediawiki-response.pages.dev/zh/api/extensions/gadgets/ApiGadgetMetadata.md): Defined in: extensions/gadgets.ts:139 A gadget's metadata value (gaprop=metadata). - [Interface: ApiGadgetModule](https://types-mediawiki-response.pages.dev/zh/api/extensions/gadgets/ApiGadgetModule.md): Defined in: extensions/gadgets.ts:104 The metadata.module block: the ResourceLoader definition of the gadget. - [Interface: ApiGadgetSettings](https://types-mediawiki-response.pages.dev/zh/api/extensions/gadgets/ApiGadgetSettings.md): Defined in: extensions/gadgets.ts:24 The metadata.settings block of a gadget definition. - [GlobalBlocking](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalblocks/overview.md): Opt-in extension pack: **GlobalBlocking** (`list=globalblocks`, `action=globalblock`). - [Interface: ApiGlobalBlock](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalblocks/ApiGlobalBlock.md): Defined in: extensions/globalblocks.ts:31 One global block record. bgprop controls which fields appear. From MediaWiki 1.43 the flag booleans below are real booleans (false included), emitted together with bgprop=target (also for the deprecated bgprop=address); earlier versions emit a flag only when the option applies, regardless of bgprop. - [Interface: ApiGlobalBlockErrorResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalblocks/ApiGlobalBlockErrorResponse.md): Defined in: extensions/globalblocks.ts:159 Failure response of action=globalblock: the legacy error.globalblock array, written under the root error key rather than as a standard ApiErrorResponse — see ApiGlobalBlockLegacyError. - [Interface: ApiGlobalBlockLegacyError](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalblocks/ApiGlobalBlockLegacyError.md): Defined in: extensions/globalblocks.ts:146 One entry of the legacy error.globalblock array that action=globalblock writes when a block or unblock fails. Unlike every other module, this one reports the failure in-band under the root error key ({ error: { globalblock: [...] } }) instead of a top-level error object, so that error carries no code/info. The shape is the same under every errorformat. - [Interface: ApiGlobalBlockResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalblocks/ApiGlobalBlockResponse.md): Defined in: extensions/globalblocks.ts:172 Response of action=globalblock. A failed block/unblock is reported in-band under the root error key; with alsolocal=1, a failed local block is reported the same way while the global block still succeeds, so both keys can appear together — see ApiGlobalBlockLegacyError. - [Interface: ApiGlobalBlockResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalblocks/ApiGlobalBlockResult.md): Defined in: extensions/globalblocks.ts:112 Result object of action=globalblock. Which fields appear depends on the branch: blocking emits ApiGlobalBlockResult.blocked plus the applied options and ApiGlobalBlockResult.expiry; unblocking emits ApiGlobalBlockResult.unblocked. - [GlobalPreferences](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalpreferences/overview.md): Opt-in extension pack: **GlobalPreferences** (`meta=globalpreferences`, `action=globalpreferences`, `action=globalpreferenceoverrides`). - [Type Alias: ApiGlobalPreferenceOverrideValue](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalpreferences/ApiGlobalPreferenceOverrideValue.md): ApiGlobalPreferenceOverrideValue = string | number | boolean Defined in: extensions/globalpreferences.ts:34 Value of a local override: the user's option value on this wiki, passed through as whatever scalar the option store holds. - [Interface: ApiGlobalPreferenceOverridesResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalpreferences/ApiGlobalPreferenceOverridesResponse.md): Defined in: extensions/globalpreferences.ts:62 Response of action=globalpreferenceoverrides — same reply style as ApiGlobalPreferencesResponse for the local-override store. - [Type Alias: ApiGlobalPreferenceValue](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalpreferences/ApiGlobalPreferenceValue.md): ApiGlobalPreferenceValue = string Defined in: extensions/globalpreferences.ts:28 Value of a global preference: the stored value, returned verbatim (always a string). - [Interface: ApiGlobalPreferencesResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalpreferences/ApiGlobalPreferencesResponse.md): Defined in: extensions/globalpreferences.ts:53 Response of action=globalpreferences — the module key carries the plain string "success" (inherited from core ApiOptions), failures are top-level error responses. - [Interface: ApiGlobalPreferencesResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalpreferences/ApiGlobalPreferencesResult.md): Defined in: extensions/globalpreferences.ts:37 The globalpreferences object of a meta=globalpreferences response. - [GlobalUsage](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalusage/overview.md): Opt-in extension pack: **GlobalUsage** (`prop=globalusage`). - [Interface: ApiGlobalUsage](https://types-mediawiki-response.pages.dev/zh/api/extensions/globalusage/ApiGlobalUsage.md): Defined in: extensions/globalusage.ts:17 One global-usage record. guprop is namespace|pageid|url. - [CentralAuth](https://types-mediawiki-response.pages.dev/zh/api/extensions/globaluserinfo/overview.md): Opt-in extension pack: **CentralAuth** (`meta=globaluserinfo`). - [Interface: ApiGlobalUserInfo](https://types-mediawiki-response.pages.dev/zh/api/extensions/globaluserinfo/ApiGlobalUserInfo.md): Defined in: extensions/globaluserinfo.ts:79 The globaluserinfo object of a meta=globaluserinfo response. - [Interface: ApiGlobalUserLocalBlock](https://types-mediawiki-response.pages.dev/zh/api/extensions/globaluserinfo/ApiGlobalUserLocalBlock.md): Defined in: extensions/globaluserinfo.ts:22 Local block details on an attached or unattached account entry. - [Interface: ApiGlobalUserMerge](https://types-mediawiki-response.pages.dev/zh/api/extensions/globaluserinfo/ApiGlobalUserMerge.md): Defined in: extensions/globaluserinfo.ts:31 One attached (merged) local account under guiprop=merged. - [Interface: ApiGlobalUserUnattached](https://types-mediawiki-response.pages.dev/zh/api/extensions/globaluserinfo/ApiGlobalUserUnattached.md): Defined in: extensions/globaluserinfo.ts:61 One unattached (not yet merged) local account under guiprop=unattached. - [Linter](https://types-mediawiki-response.pages.dev/zh/api/extensions/linter/overview.md): Opt-in extension pack: **Linter** (`list=linterrors`, `meta=linterstats`). - [Interface: ApiLintError](https://types-mediawiki-response.pages.dev/zh/api/extensions/linter/ApiLintError.md): Defined in: extensions/linter.ts:45 One lint error (list=linterrors). - [Interface: ApiLintErrorParams](https://types-mediawiki-response.pages.dev/zh/api/extensions/linter/ApiLintErrorParams.md): Defined in: extensions/linter.ts:36 Extra parameters carried by a lint error (template name, tag, …). - [Interface: ApiLintTemplateInfo](https://types-mediawiki-response.pages.dev/zh/api/extensions/linter/ApiLintTemplateInfo.md): Defined in: extensions/linter.ts:27 Template context for an error that sits inside a transclusion. - [Interface: ApiLinterGeneralInfo](https://types-mediawiki-response.pages.dev/zh/api/extensions/linter/ApiLinterGeneralInfo.md): Defined in: extensions/linter.ts:72 Lint-error category priorities injected into siprop=general. - [Interface: ApiQueryLinterStats](https://types-mediawiki-response.pages.dev/zh/api/extensions/linter/ApiQueryLinterStats.md): Defined in: extensions/linter.ts:63 The linterstats object (returned under query by meta=linterstats). - [MassMessage](https://types-mediawiki-response.pages.dev/zh/api/extensions/massmessage/overview.md): Opt-in extension pack: **MassMessage** (`prop=mmcontent`, `action=massmessage`, `action=editmassmessagelist`). - [Interface: ApiEditMassMessageListResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/massmessage/ApiEditMassMessageListResponse.md): Defined in: extensions/massmessage.ts:97 Response of action=editmassmessagelist. - [Interface: ApiEditMassMessageListResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/massmessage/ApiEditMassMessageListResult.md): Defined in: extensions/massmessage.ts:70 The editmassmessagelist object of an action=editmassmessagelist response. - [Interface: ApiMassMessageInvalidTarget](https://types-mediawiki-response.pages.dev/zh/api/extensions/massmessage/ApiMassMessageInvalidTarget.md): Defined in: extensions/massmessage.ts:61 One invalid target of invalidadd: the submitted string under * plus an empty-string entry per error code (e.g. invalidsite, invalidtitle). invalidremove reports plain strings and an unchanged description comes back as a plain string under invaliddescription. - [Interface: ApiMassMessageResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/massmessage/ApiMassMessageResponse.md): Defined in: extensions/massmessage.ts:112 Response of action=massmessage (requires the massmessage right). - [Interface: ApiMassMessageResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/massmessage/ApiMassMessageResult.md): Defined in: extensions/massmessage.ts:103 The massmessage object of an action=massmessage response. - [Interface: ApiMassMessageTarget](https://types-mediawiki-response.pages.dev/zh/api/extensions/massmessage/ApiMassMessageTarget.md): Defined in: extensions/massmessage.ts:44 One valid target echoed back by action=editmassmessagelist. - [Interface: ApiMmContent](https://types-mediawiki-response.pages.dev/zh/api/extensions/massmessage/ApiMmContent.md): Defined in: extensions/massmessage.ts:29 The mmcontent object of a prop=mmcontent response. - [OATHAuth](https://types-mediawiki-response.pages.dev/zh/api/extensions/oathauth/overview.md): Opt-in extension pack: **OATHAuth** (two-factor authentication; `meta=oath`, `action=oathvalidate`, `action=webauthn`). - [Interface: ApiOATHStatus](https://types-mediawiki-response.pages.dev/zh/api/extensions/oathauth/ApiOATHStatus.md): Defined in: extensions/oathauth.ts:37 The oath object of a meta=oath response. - [Interface: ApiOATHValidateResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/oathauth/ApiOATHValidateResponse.md): Defined in: extensions/oathauth.ts:60 Response of action=oathvalidate. - [Interface: ApiOATHValidation](https://types-mediawiki-response.pages.dev/zh/api/extensions/oathauth/ApiOATHValidation.md): Defined in: extensions/oathauth.ts:51 The oathvalidate object of an action=oathvalidate response. - [Interface: ApiWebAuthnResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/oathauth/ApiWebAuthnResponse.md): Defined in: extensions/oathauth.ts:88 Response of action=webauthn, introduced by the 1.46 WebAuthn rewrite that replaced meta=oath/action=oathvalidate. - [Interface: ApiWebAuthnResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/oathauth/ApiWebAuthnResult.md): Defined in: extensions/oathauth.ts:71 The webauthn object of an action=webauthn response, keyed by the func parameter: getauthinfo → ApiWebAuthnResult.auth_info, getregisterinfo → ApiWebAuthnResult.register_info, register → ApiWebAuthnResult.success. - [PageImages](https://types-mediawiki-response.pages.dev/zh/api/extensions/pageimages/overview.md): Opt-in extension pack: **PageImages** (`prop=pageimages`). - [Interface: ApiThumbnail](https://types-mediawiki-response.pages.dev/zh/api/extensions/pageimages/ApiThumbnail.md): Defined in: extensions/pageimages.ts:20 A scaled image reference (piprop=thumbnail). - [PageViewInfo](https://types-mediawiki-response.pages.dev/zh/api/extensions/pageviews/overview.md): Opt-in extension pack: **PageViewInfo** (`prop=pageviews`, `meta=siteviews`, `list=mostviewed`). - [Interface: ApiMostViewedPage](https://types-mediawiki-response.pages.dev/zh/api/extensions/pageviews/ApiMostViewedPage.md): Defined in: extensions/pageviews.ts:31 One row of list=mostviewed. - [Interface: ApiPageViewServiceMetrics](https://types-mediawiki-response.pages.dev/zh/api/extensions/pageviews/ApiPageViewServiceMetrics.md): Defined in: extensions/pageviews.ts:43 Per-service metric support injected into siprop=general. - [Type Alias: ApiViewCounts](https://types-mediawiki-response.pages.dev/zh/api/extensions/pageviews/ApiViewCounts.md): ApiViewCounts = Record Defined in: extensions/pageviews.ts:28 Date-keyed (YYYY-MM-DD) view counts; the newest, incomplete day may be null. - [ReadingLists](https://types-mediawiki-response.pages.dev/zh/api/extensions/readinglists/overview.md): Opt-in extension pack: **ReadingLists** (`meta=readinglists`, `list=readinglistentries`, `action=readinglists`). - [Interface: ApiReadingListEntry](https://types-mediawiki-response.pages.dev/zh/api/extensions/readinglists/ApiReadingListEntry.md): Defined in: extensions/readinglists.ts:84 One page saved in a reading list (list=readinglistentries, and the entry/entries payload of the createentry command). - [Interface: ApiReadingListItem](https://types-mediawiki-response.pages.dev/zh/api/extensions/readinglists/ApiReadingListItem.md): Defined in: extensions/readinglists.ts:47 One reading list (meta=readinglists, and the list/lists payload of the create / update / setup commands). - [Interface: ApiReadingListsCreateEntryResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/readinglists/ApiReadingListsCreateEntryResponse.md): Defined in: extensions/readinglists.ts:187 Response of action=readinglists&command=createentry. A single project + title returns id + entry; a batch returns ids + entries. - [Interface: ApiReadingListsCreateResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/readinglists/ApiReadingListsCreateResponse.md): Defined in: extensions/readinglists.ts:130 Response of action=readinglists&command=create. A single name returns id + list; a batch returns ids + lists. - [Interface: ApiReadingListsDeleteEntryResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/readinglists/ApiReadingListsDeleteEntryResponse.md): Defined in: extensions/readinglists.ts:211 Response of action=readinglists&command=deleteentry (single entry or batch). - [Interface: ApiReadingListsDeleteResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/readinglists/ApiReadingListsDeleteResponse.md): Defined in: extensions/readinglists.ts:175 Response of action=readinglists&command=delete (single list or batch). - [Interface: ApiReadingListsSetupResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/readinglists/ApiReadingListsSetupResponse.md): Defined in: extensions/readinglists.ts:115 Response of action=readinglists&command=setup (no arguments). - [Interface: ApiReadingListsTeardownResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/readinglists/ApiReadingListsTeardownResponse.md): Defined in: extensions/readinglists.ts:220 Response of action=readinglists&command=teardown (no arguments). - [Interface: ApiReadingListsUpdateResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/readinglists/ApiReadingListsUpdateResponse.md): Defined in: extensions/readinglists.ts:154 Response of action=readinglists&command=update. A single list returns id + list; a batch returns ids + lists. - [Scribunto](https://types-mediawiki-response.pages.dev/zh/api/extensions/scribunto/overview.md): Opt-in extension pack: **Scribunto** (`action=scribunto-console`). - [Interface: ApiScribuntoConsoleError](https://types-mediawiki-response.pages.dev/zh/api/extensions/scribunto/ApiScribuntoConsoleError.md): Defined in: extensions/scribunto.ts:56 The type: "error" shape (a Lua error reported in band). - [Interface: ApiScribuntoConsoleNormal](https://types-mediawiki-response.pages.dev/zh/api/extensions/scribunto/ApiScribuntoConsoleNormal.md): Defined in: extensions/scribunto.ts:47 The type: "normal" shape (print output plus the returned value). - [Type Alias: ApiScribuntoConsoleResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/scribunto/ApiScribuntoConsoleResponse.md): ApiScribuntoConsoleResponse = ApiEnvelope & ApiScribuntoConsoleNormal | ApiScribuntoConsoleError Defined in: extensions/scribunto.ts:72 Response of action=scribunto-console. Discriminated on type: a ApiScribuntoConsoleNormal result or an ApiScribuntoConsoleError one, both merged onto the envelope at the root. - [Type Alias: ScribuntoConsoleType](https://types-mediawiki-response.pages.dev/zh/api/extensions/scribunto/ScribuntoConsoleType.md): ScribuntoConsoleType = "normal" | "error" | string & object Defined in: extensions/scribunto.ts:26 Console outcome. Scribunto reports normal / error in band; open for future kinds. - [SiteMatrix](https://types-mediawiki-response.pages.dev/zh/api/extensions/sitematrix/overview.md): Opt-in extension pack: **SiteMatrix** (`action=sitematrix`). - [Interface: ApiSiteMatrixLanguage](https://types-mediawiki-response.pages.dev/zh/api/extensions/sitematrix/ApiSiteMatrixLanguage.md): Defined in: extensions/sitematrix.ts:47 One language row of the matrix: every wiki in that language. - [Interface: ApiSiteMatrixResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/sitematrix/ApiSiteMatrixResponse.md): Defined in: extensions/sitematrix.ts:113 Response of action=sitematrix. - [Interface: ApiSiteMatrixResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/sitematrix/ApiSiteMatrixResult.md): Defined in: extensions/sitematrix.ts:101 The sitematrix object: count, specials and one key per language (numeric strings, "0", "1", …), so entries keep an open index signature. - [Interface: ApiSiteMatrixSite](https://types-mediawiki-response.pages.dev/zh/api/extensions/sitematrix/ApiSiteMatrixSite.md): Defined in: extensions/sitematrix.ts:26 One project-family wiki of a language entry. - [Interface: ApiSiteMatrixSpecial](https://types-mediawiki-response.pages.dev/zh/api/extensions/sitematrix/ApiSiteMatrixSpecial.md): Defined in: extensions/sitematrix.ts:65 One special (non-language-split) wiki, e.g. www.mediawiki.org. - [SpamBlacklist](https://types-mediawiki-response.pages.dev/zh/api/extensions/spamblacklist/overview.md): Opt-in extension pack: **SpamBlacklist** (`action=spamblacklist`). - [Interface: ApiSpamBlacklistResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/spamblacklist/ApiSpamBlacklistResponse.md): Defined in: extensions/spamblacklist.ts:19 Response of action=spamblacklist. - [TemplateData](https://types-mediawiki-response.pages.dev/zh/api/extensions/templatedata/overview.md): Opt-in extension pack: **TemplateData** (`action=templatedata`). - [Type Alias: ApiTemplateDataMap](https://types-mediawiki-response.pages.dev/zh/api/extensions/templatedata/ApiTemplateDataMap.md): ApiTemplateDataMap = Record Defined in: extensions/templatedata.ts:116 A consumer-specific mapping (maps.). Keys are consumer-defined and not validated; each value references parameters of the template — a parameter name, a list of names, or a list of lists of names. - [Interface: ApiTemplateDataPage](https://types-mediawiki-response.pages.dev/zh/api/extensions/templatedata/ApiTemplateDataPage.md): Defined in: extensions/templatedata.ts:150 One entry of pages, keyed by page id. - [Interface: ApiTemplateDataParam](https://types-mediawiki-response.pages.dev/zh/api/extensions/templatedata/ApiTemplateDataParam.md): Defined in: extensions/templatedata.ts:64 One parameter description (params.). - [Interface: ApiTemplateDataResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/templatedata/ApiTemplateDataResponse.md): Defined in: extensions/templatedata.ts:165 Response of action=templatedata, which returns no continuation cursors: every requested page arrives in a single reply. - [Interface: ApiTemplateDataRoot](https://types-mediawiki-response.pages.dev/zh/api/extensions/templatedata/ApiTemplateDataRoot.md): Defined in: extensions/templatedata.ts:119 The stored TemplateData block of one template. - [Interface: ApiTemplateDataSet](https://types-mediawiki-response.pages.dev/zh/api/extensions/templatedata/ApiTemplateDataSet.md): Defined in: extensions/templatedata.ts:103 A group of parameters presented together (sets[]). - [Type Alias: ApiTemplateDataText](https://types-mediawiki-response.pages.dev/zh/api/extensions/templatedata/ApiTemplateDataText.md): ApiTemplateDataText = string | Record Defined in: extensions/templatedata.ts:61 InterfaceText as served: a map keyed by language code ({"en": "Nowrap?"}). A plain string only when the request passes lang, which resolves each text to a single language (requested language, then its fallbacks, then the site content language). - [Type Alias: TemplateDataType](https://types-mediawiki-response.pages.dev/zh/api/extensions/templatedata/TemplateDataType.md): TemplateDataType = "boolean" | "content" | "date" | "line" | "number" | "string" | "unbalanced-wikitext" | "unknown" | "url" | "wiki-file-name" | "wiki-page-name" | "wiki-template-name" | "wiki-user-name" | string & object Defined in: extensions/templatedata.ts:39 Parameter type a template expects, as accepted by the validator (content, line, number, boolean, string, date, unbalanced-wikitext, unknown, url, wiki-page-name, wiki-user-name, wiki-file-name, wiki-template-name). Hook handlers may register additional names, so consumers must tolerate values outside this list. - [Thanks](https://types-mediawiki-response.pages.dev/zh/api/extensions/thanks/overview.md): Opt-in extension pack: **Thanks** (`action=thank`). - [Interface: ApiThankResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/thanks/ApiThankResponse.md): Defined in: extensions/thanks.ts:29 Response of action=thank. - [Interface: ApiThankResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/thanks/ApiThankResult.md): Defined in: extensions/thanks.ts:20 The result object of a successful action=thank. - [TimedMediaHandler](https://types-mediawiki-response.pages.dev/zh/api/extensions/timedmediahandler/overview.md): Opt-in extension pack: **TimedMediaHandler** (audio/video; `prop=videoinfo`, `prop=transcodestatus`, `action=transcodereset`). - [Interface: ApiTranscodeResetResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/timedmediahandler/ApiTranscodeResetResponse.md): Defined in: extensions/timedmediahandler.ts:156 Response of action=transcodereset (requires the transcode-reset right). - [Interface: ApiTranscodeState](https://types-mediawiki-response.pages.dev/zh/api/extensions/timedmediahandler/ApiTranscodeState.md): Defined in: extensions/timedmediahandler.ts:109 One transcode state of prop=transcodestatus, keyed by transcode key (e.g. 240p.vp9.webm) on the file page. The keys mirror the transcode table columns with the transcode_ prefix stripped. - [Interface: ApiVideoInfo](https://types-mediawiki-response.pages.dev/zh/api/extensions/timedmediahandler/ApiVideoInfo.md): Defined in: extensions/timedmediahandler.ts:93 One video-info entry for a file page: the imageinfo fields (viprop mirrors the iiprop names) plus TMH's derivatives and timedtext lists. - [Interface: ApiVideoSource](https://types-mediawiki-response.pages.dev/zh/api/extensions/timedmediahandler/ApiVideoSource.md): Defined in: extensions/timedmediahandler.ts:32 One source of a video's derivatives list (the original file first, then each ready transcode). Audio files report width/height as 0. - [Interface: ApiVideoTimedTextTrack](https://types-mediawiki-response.pages.dev/zh/api/extensions/timedmediahandler/ApiVideoTimedTextTrack.md): Defined in: extensions/timedmediahandler.ts:62 One subtitle track of viprop=timedtext (one entry per track format). - [TitleBlacklist](https://types-mediawiki-response.pages.dev/zh/api/extensions/titleblacklist/overview.md): Opt-in extension pack: **TitleBlacklist** (`action=titleblacklist`). - [Interface: ApiTitleBlacklistResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/titleblacklist/ApiTitleBlacklistResponse.md): Defined in: extensions/titleblacklist.ts:19 Response of action=titleblacklist. - [Translate](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/overview.md): Opt-in extension pack: **Translate** (`meta=messagegroups`, `meta=messagegroupstats`, `meta=languagestats`, `meta=messagetranslations`, `list=messagecollection`, `action=translationstats`, `action=translationaids`, `action=ttmserver`, `action=markfortranslation`, `action=translationreview`, `action=groupreview`, `action=aggregategroups`, `action=translationentitysearch`, `action=translatesandbox`, `action=translationstash`, `action=messagegroupsubscription`, `action=searchtranslations`). - [Interface: ApiAggregateGroupsResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiAggregateGroupsResponse.md): Defined in: extensions/translate.ts:450 Response of action=aggregategroups. - [Interface: ApiAggregateGroupsResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiAggregateGroupsResult.md): Defined in: extensions/translate.ts:432 Result of action=aggregategroups (CSRF-token POST, translate-manage right). The fields depend on the requested do: creating returns the new group id and the aggregate-able groups, associating returns the target page URL, dissociating and removing return only the marker. - [Interface: ApiGroupReviewResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiGroupReviewResponse.md): Defined in: extensions/translate.ts:410 Response of action=groupreview (CSRF-token POST, translate-groupreview right): the workflow state of one message group for one language was set. Requires $wgTranslateWorkflowStates on the wiki; the state names are site-configured. - [Interface: ApiLanguageStatsRow](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiLanguageStatsRow.md): Defined in: extensions/translate.ts:146 One meta=languagestats row: completeness of one message group in the requested language. - [Interface: ApiMarkForTranslationResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiMarkForTranslationResponse.md): Defined in: extensions/translate.ts:377 Response of action=markfortranslation. - [Interface: ApiMarkForTranslationResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiMarkForTranslationResult.md): Defined in: extensions/translate.ts:365 Result of action=markfortranslation (pagetranslation-token POST, pagetranslation right): a wiki page was marked for translation, creating its translation units and the page- message group. - [Interface: ApiMessageCollectionMetadata](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiMessageCollectionMetadata.md): Defined in: extensions/translate.ts:237 The query.metadata block list=messagecollection writes alongside its rows, describing the requested slice of the collection. - [Interface: ApiMessageCollectionRow](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiMessageCollectionRow.md): Defined in: extensions/translate.ts:194 One list=messagecollection row: a message of the group named in mcgroup for the language named in mclanguage. mcprop controls which fields beyond the mandatory ones appear. - [Interface: ApiMessageGroupStatsRow](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiMessageGroupStatsRow.md): Defined in: extensions/translate.ts:155 One meta=messagegroupstats row: completeness of one language in the requested group. - [Interface: ApiMessageGroupSubscriptionResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiMessageGroupSubscriptionResponse.md): Defined in: extensions/translate.ts:557 Response of action=messagegroupsubscription (CSRF-token POST): the requesting user's subscription to the group was changed. Requires $wgTranslateEnableMessageGroupSubscription. - [Interface: ApiMessageTranslation](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiMessageTranslation.md): Defined in: extensions/translate.ts:172 One meta=messagetranslations row: one existing translation of a message (the title named in mttitle). - [Interface: ApiSearchTranslationsDocument](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiSearchTranslationsDocument.md): Defined in: extensions/translate.ts:578 One action=searchtranslations match: a document of the translation memory. The fields are fixed by the search index; the result may replace content with a highlighted snippet. - [Interface: ApiSearchTranslationsResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiSearchTranslationsResponse.md): Defined in: extensions/translate.ts:604 Response of action=searchtranslations: full-text search over the translation memories. Only wikis backed by a searchable translation-memory service return hits; the response carries them with a metadata block under the root search key. - [Interface: ApiStashedTranslation](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiStashedTranslation.md): Defined in: extensions/translate.ts:520 One stashed translation of action=translationstash subaction=query. - [Interface: ApiTranslateMessageGroup](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslateMessageGroup.md): Defined in: extensions/translate.ts:39 One meta=messagegroups entry. mgprop controls which fields appear. The groups themselves are site-defined (wiki pages, YAML files, aggregate definitions), so ids beyond the dynamic !recent / !additions ones are open-ended. - [Interface: ApiTranslateSandboxActionResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslateSandboxActionResponse.md): Defined in: extensions/translate.ts:517 Response of action=translatesandbox with do=delete / do=promote / do=remind: the users were processed, no payload keys are returned. - [Interface: ApiTranslateSandboxCreateResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslateSandboxCreateResponse.md): Defined in: extensions/translate.ts:500 Response of action=translatesandbox with do=create (registers a sandboxed translator; requires $wgTranslateUseSandbox). The delete / promote / remind variants return no payload — an empty ApiEnvelope. - [Interface: ApiTranslateStatsRow](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslateStatsRow.md): Defined in: extensions/translate.ts:128 The four completeness counters shared by meta=languagestats and meta=messagegroupstats rows. A row appears only once its statistics are available; while they are still being computed the result is a continue instead. - [Interface: ApiTranslateWorkflowState](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslateWorkflowState.md): Defined in: extensions/translate.ts:111 One workflow state of a message group (meta=messagegroups + mgprop=workflowstates). - [Interface: ApiTranslationAid](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslationAid.md): Defined in: extensions/translate.ts:256 Payload of one translation aid of action=translationaids, keyed by aid type (the registry is hook-extensible, so the set is open). An aid that cannot run reports ApiTranslationAid.error instead of its data. - [Interface: ApiTranslationAidsPayload](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslationAidsPayload.md): Defined in: extensions/translate.ts:278 The helpers map of action=translationaids. Members are the aid types of the TranslationAids registry — the built-in ones are declared here for autocomplete, the index signature keeps hook-registered aids usable. - [Interface: ApiTranslationAidsResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslationAidsResponse.md): Defined in: extensions/translate.ts:313 Response of action=translationaids (root-level helpers and times). - [Interface: ApiTranslationEntitySearchGroup](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslationEntitySearchGroup.md): Defined in: extensions/translate.ts:472 One message group match of action=translationentitysearch. - [Interface: ApiTranslationEntitySearchMessage](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslationEntitySearchMessage.md): Defined in: extensions/translate.ts:481 One message prefix match of action=translationentitysearch. - [Interface: ApiTranslationEntitySearchResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslationEntitySearchResponse.md): Defined in: extensions/translate.ts:490 Response of action=translationentitysearch. - [Interface: ApiTranslationEntitySearchResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslationEntitySearchResult.md): Defined in: extensions/translate.ts:460 Result of action=translationentitysearch: message group and message key prefixes matching the query. Keys are absent when the entity type was not requested or nothing matched. - [Interface: ApiTranslationReviewResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslationReviewResponse.md): Defined in: extensions/translate.ts:388 Result of action=translationreview (CSRF-token POST, translate-messagereview right): one translation revision was marked as reviewed. Reviewing one's own translation, fuzzy translations and already reviewed revisions are errors / warnings. - [Interface: ApiTranslationStashResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslationStashResponse.md): Defined in: extensions/translate.ts:542 Response of action=translationstash (CSRF-token POST): subaction=add returns only the marker, subaction=query additionally lists the stashed translations of the requesting (sandbox) user. - [Interface: ApiTranslationStatsResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTranslationStatsResponse.md): Defined in: extensions/translate.ts:322 Response of action=translationstats: graph data for the requested series. - [Interface: ApiTtmServerResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTtmServerResponse.md): Defined in: extensions/translate.ts:355 Response of action=ttmserver. - [Interface: ApiTtmServerSuggestion](https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTtmServerSuggestion.md): Defined in: extensions/translate.ts:337 One suggestion of action=ttmserver: a translation-memory hit for the requested text. The fields are supplied by the configured translation-memory service; a unit from the local memory carries the fields below. - [Universal Language Selector](https://types-mediawiki-response.pages.dev/zh/api/extensions/uls/overview.md): Opt-in extension pack: **Universal Language Selector** (`ulssetlang`, `ulslocalization`). - [Interface: ApiUlsLocalizationMetadata](https://types-mediawiki-response.pages.dev/zh/api/extensions/uls/ApiUlsLocalizationMetadata.md): Defined in: extensions/uls.ts:35 Metadata block of a ULS localization bundle, carried over from the source i18n files. Only the keys the wiki's ULS files actually use appear. - [Interface: ApiUlsLocalizationResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/uls/ApiUlsLocalizationResponse.md): Defined in: extensions/uls.ts:51 Response of action=ulslocalization: the ULS message bundle for one language (its fallback chain merged in), returned raw as JSON — there is no envelope and no ulslocalization wrapper. Keys are ULS message ids (e.g. uls-region-WW) mapped to their translation; @metadata holds the source file credits. The module is internal to ULS; responses are cached publicly for 28 days. - [Interface: ApiUlsSetLanguageResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/uls/ApiUlsSetLanguageResponse.md): Defined in: extensions/uls.ts:29 Response of action=ulssetlang (CSRF-token POST): stores the interface language in the named user's preferences. A success response carries no payload keys. Anonymous callers only succeed when $wgULSAnonCanChangeLanguage is enabled (then only a cookie is set, likewise with no payload). - [UrlShortener](https://types-mediawiki-response.pages.dev/zh/api/extensions/urlshortener/overview.md): Opt-in extension pack: **UrlShortener** (`action=shortenurl`). - [Interface: ApiShortenUrlResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/urlshortener/ApiShortenUrlResponse.md): Defined in: extensions/urlshortener.ts:44 Response of action=shortenurl. - [Interface: ApiShortenUrlResult](https://types-mediawiki-response.pages.dev/zh/api/extensions/urlshortener/ApiShortenUrlResult.md): Defined in: extensions/urlshortener.ts:24 The shortenurl object of an action=shortenurl response. - [VisualEditor](https://types-mediawiki-response.pages.dev/zh/api/extensions/visualeditor/overview.md): Opt-in extension pack: **VisualEditor** (`action=visualeditor`, `action=visualeditoredit`, `action=editcheckreferenceurl`). - [Interface: ApiEditCheckReferenceUrlResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/visualeditor/ApiEditCheckReferenceUrlResponse.md): Defined in: extensions/visualeditor.ts:269 Response of action=editcheckreferenceurl: the verdict for the checked URL — "allowed" or "blocked". Always exactly one entry, keyed by the requested URL. - [Interface: ApiLastModified](https://types-mediawiki-response.pages.dev/zh/api/extensions/visualeditor/ApiLastModified.md): Defined in: extensions/visualeditor.ts:92 lastModified display parts of the edited page, as emitted by action=visualeditor/visualeditoredit and by DiscussionTools' discussiontoolsedit (both render the same last-modified widget data). - [Interface: ApiVisualEditorCheckboxDef](https://types-mediawiki-response.pages.dev/zh/api/extensions/visualeditor/ApiVisualEditorCheckboxDef.md): Defined in: extensions/visualeditor.ts:43 One field of the edit form (checkboxesDef.wpMinoredit, wpWatchthis, wpWatchlistExpiry). - [Interface: ApiVisualEditorEditResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/visualeditor/ApiVisualEditorEditResponse.md): Defined in: extensions/visualeditor.ts:257 Response of action=visualeditoredit. - [Interface: ApiVisualEditorPageFrame](https://types-mediawiki-response.pages.dev/zh/api/extensions/visualeditor/ApiVisualEditorPageFrame.md): Defined in: extensions/visualeditor.ts:104 The page frame both visualeditor and visualeditoredit return. - [Interface: ApiVisualEditorParseFragmentResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/visualeditor/ApiVisualEditorParseFragmentResponse.md): Defined in: extensions/visualeditor.ts:243 Response of action=visualeditor with paction=parsefragment: just the transformed fragment and the outcome flag. - [Interface: ApiVisualEditorResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/visualeditor/ApiVisualEditorResponse.md): Defined in: extensions/visualeditor.ts:175 Response of action=visualeditor for paction=parse, wikitext and metadata, which share one payload. The other paction values return different shapes — see ApiVisualEditorTemplatesUsedResponse and ApiVisualEditorParseFragmentResponse. - [Interface: ApiVisualEditorTemplatesUsedResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/visualeditor/ApiVisualEditorTemplatesUsedResponse.md): Defined in: extensions/visualeditor.ts:234 Response of action=visualeditor with paction=templatesused, where the module writes an HTML string instead of the usual object. - [Wikibase](https://types-mediawiki-response.pages.dev/zh/api/extensions/wikibase/overview.md): Opt-in extension pack: **Wikibase** (`meta=wikibase`, `prop=pageterms`, `prop=wbentityusage`, `list=wblistentityusage`). - [Interface: ApiEntityUsage](https://types-mediawiki-response.pages.dev/zh/api/extensions/wikibase/ApiEntityUsage.md): Defined in: extensions/wikibase.ts:37 A single entity's usage record: which aspects were used, and an optional repo link. - [Type Alias: ApiEntityUsageMap](https://types-mediawiki-response.pages.dev/zh/api/extensions/wikibase/ApiEntityUsageMap.md): ApiEntityUsageMap = Record<string, ApiEntityUsage> Defined in: extensions/wikibase.ts:49 Entity id → usage. Each row carries at least one entity; an empty map does not occur. - [Interface: ApiEntityUsageRow](https://types-mediawiki-response.pages.dev/zh/api/extensions/wikibase/ApiEntityUsageRow.md): Defined in: extensions/wikibase.ts:91 One row of list=wblistentityusage (a local page using the queried entity). - [Interface: ApiPageTerms](https://types-mediawiki-response.pages.dev/zh/api/extensions/wikibase/ApiPageTerms.md): Defined in: extensions/wikibase.ts:52 Terms of the entity linked to a page (prop=pageterms). - [Interface: ApiWikibaseInfo](https://types-mediawiki-response.pages.dev/zh/api/extensions/wikibase/ApiWikibaseInfo.md): Defined in: extensions/wikibase.ts:82 The wikibase object of a meta=wikibase response. - [Interface: ApiWikibaseRepo](https://types-mediawiki-response.pages.dev/zh/api/extensions/wikibase/ApiWikibaseRepo.md): Defined in: extensions/wikibase.ts:76 The repo object of meta=wikibase. - [Interface: ApiWikibaseRepoUrl](https://types-mediawiki-response.pages.dev/zh/api/extensions/wikibase/ApiWikibaseRepoUrl.md): Defined in: extensions/wikibase.ts:64 Repo location info (meta=wikibase, wbprop=url). - [WikiLove](https://types-mediawiki-response.pages.dev/zh/api/extensions/wikilove/overview.md): Opt-in extension pack: **WikiLove** (`action=wikilove`). - [Interface: ApiWikiLoveRedirect](https://types-mediawiki-response.pages.dev/zh/api/extensions/wikilove/ApiWikiLoveRedirect.md): Defined in: extensions/wikilove.ts:27 The redirect object of an action=wikilove response. - [Interface: ApiWikiLoveResponse](https://types-mediawiki-response.pages.dev/zh/api/extensions/wikilove/ApiWikiLoveResponse.md): Defined in: extensions/wikilove.ts:39 Response of action=wikilove.