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

    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:

    Example

    declare module "types-mediawiki-response" {
      interface ApiLogEventParams {
        // a site-custom log action, or a legacy key form still in the data
        "4::target"?: string;
      }
    }

    Indexable

    [key: string]: unknown

    Any other parameter a log action attaches — a log action registered by an extension or site configuration, or a legacy key form on rows written by an older MediaWiki version.

    Properties

    auto?

    optional auto?: boolean

    Defined in: core/query/logparams.ts:275

    Always false: automatic patrols are not logged.


    blockId?

    optional blockId?: number

    Defined in: core/query/logparams.ts:73

    Id of the block the row created or changed.

    Since

    MediaWiki 1.44


    cascade?

    optional cascade?: boolean

    Defined in: core/query/logparams.ts:104

    Whether cascading protection was requested.


    count?

    optional count?: number | { files: number; revisions: number; }

    Defined in: core/query/logparams.ts:125

    How many revisions and archived file versions the undeletion restored (delete/restore), how many revisions an import created (import/upload, import/interwiki), or how many uses a managed tag had (managetags/activate|deactivate|delete).


    curid?

    optional curid?: number

    Defined in: core/query/logparams.ts:269

    Revision id that was marked patrolled, on patrol/patrol rows.


    description?

    optional description?: string

    Defined in: core/query/logparams.ts:101

    Content-language protection summary (e.g. '[edit=autoconfirmed] (indefinite)'), aimed at machine feeds; the structured data lives in details.


    dest_ns?

    optional dest_ns?: number

    Defined in: core/query/logparams.ts:193

    Namespace of the page the history was merged into.


    dest_title?

    optional dest_title?: string

    Defined in: core/query/logparams.ts:196

    Title of the page the history was merged into.


    details?

    optional details?: ApiLogProtectDetail[]

    Defined in: core/query/logparams.ts:107

    Protection restrictions in force.


    duration?

    optional duration?: string

    Defined in: core/query/logparams.ts:39

    Block duration as configured: 'infinity' or the raw specifier ('2 weeks', …), on block/block, block/reblock, suppress/block and suppress/reblock rows. Older rows without one are normalized to 'infinity'.


    duration-l10n?

    optional duration-l10n?: string

    Defined in: core/query/logparams.ts:81

    Localized duration text (e.g. '14 days', 'infinite'), in the requesting user's language.

    Since

    MediaWiki 1.44


    expiry?

    optional expiry?: string

    Defined in: core/query/logparams.ts:60

    Absolute expiry of the block (ISO 8601), on rows with a finite duration.


    flags?

    optional flags?: ("anononly" | "nocreate" | "noautoblock" | "noemail" | "nousertalk" | "hiddenname" | "autoblock" | "angry-autoblock")[]

    Defined in: core/query/logparams.ts:46

    Options in force on the block. Rows written by very old MediaWiki versions may carry the legacy values autoblock or angry-autoblock instead of the current flag set. An array ([] when none).


    ids?

    optional ids?: (string | number)[]

    Defined in: core/query/logparams.ts:140

    Ids of the targeted revisions, file versions or log entries — numbers on current rows, strings on legacy ones.


    img_sha1?

    optional img_sha1?: string

    Defined in: core/query/logparams.ts:261

    SHA-1 of the uploaded file (base36), on upload/upload, upload/overwrite and upload/revert rows.


    img_timestamp?

    optional img_timestamp?: string

    Defined in: core/query/logparams.ts:264

    File timestamp (ISO 8601), which can differ from the row's timestamp.


    initialTags?

    optional initialTags?: string[]

    Defined in: core/query/logparams.ts:305

    Tags the target carried before the update.


    interwiki_ns?

    optional interwiki_ns?: number

    Defined in: core/query/logparams.ts:250

    Namespace of the source page on the foreign wiki (import/interwiki).


    interwiki_title?

    optional interwiki_title?: string

    Defined in: core/query/logparams.ts:253

    Source page on the foreign wiki, with its interwiki prefix (import/interwiki).


    logid?

    optional logid?: string | number | false

    Defined in: core/query/logparams.ts:290

    Log entry the tags were applied to, on rows that targeted one; a raw value like revid — false when the update targeted a revision.


    mergepoint?

    optional mergepoint?: string

    Defined in: core/query/logparams.ts:219

    Revision the histories were interleaved at (ISO 8601), on merge/merge and merge/merge-into rows.


    mergerevid?

    optional mergerevid?: string | number

    Defined in: core/query/logparams.ts:227

    Boundary revision id the merge stopped at; stored raw, so it appears as a number or its decimal string.

    Since

    MediaWiki 1.42


    mergestart?

    optional mergestart?: string

    Defined in: core/query/logparams.ts:237

    Timestamp of the first revision kept out of the merge, when a start boundary was used (ISO 8601); the id of that revision is mergestartid. Only merge/merge rows carry it — merge/merge-into rows do not report the start boundary at all.

    Since

    MediaWiki 1.45


    mergestartid?

    optional mergestartid?: string | number

    Defined in: core/query/logparams.ts:245

    First revision id kept out of the merge; stored raw like mergerevid.

    Since

    MediaWiki 1.45


    new?

    optional new?: ApiLogRevDelVisibility

    Defined in: core/query/logparams.ts:146

    Visibility state after the change.


    newgroups?

    optional newgroups?: string[]

    Defined in: core/query/logparams.ts:165

    Groups after the change.


    newlanguage?

    optional newlanguage?: string

    Defined in: core/query/logparams.ts:321

    Page language after the change; also [def]-suffixed when set to default.


    newmetadata?

    optional newmetadata?: ApiLogGroupMetadata[]

    Defined in: core/query/logparams.ts:177

    Per-group membership expiry, parallel to newgroups; [] when permanent. Absent on rights/autopromote rows.


    newmodel?

    optional newmodel?: ContentModel

    Defined in: core/query/logparams.ts:188

    Content model after the change.


    old?

    optional old?: ApiLogRevDelVisibility

    Defined in: core/query/logparams.ts:143

    Visibility state before the change.


    oldgroups?

    optional oldgroups?: string[]

    Defined in: core/query/logparams.ts:162

    Groups the target user belonged to before the change (on rights/rights and rights/autopromote rows).


    oldlanguage?

    optional oldlanguage?: string

    Defined in: core/query/logparams.ts:318

    Page language before the change, on pagelang/pagelang rows; the wiki's default language carries a [def] suffix (e.g. 'en[def]').


    oldmetadata?

    optional oldmetadata?: ApiLogGroupMetadata[]

    Defined in: core/query/logparams.ts:171

    Per-group membership expiry, parallel to oldgroups; [] when the memberships were all permanent. Absent on rights/autopromote rows.


    oldmodel?

    optional oldmodel?: ContentModel

    Defined in: core/query/logparams.ts:185

    Content model before the change (on contentmodel/change and contentmodel/new rows).


    oldtitle_ns?

    optional oldtitle_ns?: number

    Defined in: core/query/logparams.ts:112

    Namespace of the title the protection moved away from.


    oldtitle_title?

    optional oldtitle_title?: string

    Defined in: core/query/logparams.ts:115

    Title the protection moved away from.


    previd?

    optional previd?: number

    Defined in: core/query/logparams.ts:272

    Revision id the patrolled one followed.


    restrictions?

    optional restrictions?: ApiLogBlockRestrictions

    Defined in: core/query/logparams.ts:66

    Scope of a partial block; absent for sitewide blocks.


    revid?

    optional revid?: string | number | false

    Defined in: core/query/logparams.ts:284

    Revision the tags were applied to (tag/update rows); a raw value from the tagging caller, so forms vary (a number, its decimal string, or false when the update targeted a log entry).


    sitewide?

    optional sitewide?: boolean

    Defined in: core/query/logparams.ts:63

    Whether the block covers the whole site (false for a partial block).


    src_ns?

    optional src_ns?: number

    Defined in: core/query/logparams.ts:206

    Namespace of the page whose history was merged in (merge/merge-into row filed on the destination page).

    Since

    MediaWiki 1.45


    src_title?

    optional src_title?: string

    Defined in: core/query/logparams.ts:213

    Title of the page whose history was merged in (merge/merge-into).

    Since

    MediaWiki 1.45


    suppressredirect?

    optional suppressredirect?: boolean

    Defined in: core/query/logparams.ts:92

    Whether the move left no redirect behind.


    tag?

    optional tag?: string

    Defined in: core/query/logparams.ts:310

    Name of the managed tag (managetags/create|activate|deactivate|delete).


    tagsAdded?

    optional tagsAdded?: string[]

    Defined in: core/query/logparams.ts:293

    Tags the update added.


    tagsAddedCount?

    optional tagsAddedCount?: number

    Defined in: core/query/logparams.ts:296

    How many tags tagsAdded holds.


    tagsRemoved?

    optional tagsRemoved?: string[]

    Defined in: core/query/logparams.ts:299

    Tags the update removed.


    tagsRemovedCount?

    optional tagsRemovedCount?: number

    Defined in: core/query/logparams.ts:302

    How many tags tagsRemoved holds.


    target_ns?

    optional target_ns?: number

    Defined in: core/query/logparams.ts:86

    Namespace of the move destination (on move/move and move/move_redir rows).


    target_title?

    optional target_title?: string

    Defined in: core/query/logparams.ts:89

    Title of the move destination.


    type?

    optional type?: "revision" | "archive" | "oldimage" | "filearchive" | "logging"

    Defined in: core/query/logparams.ts:134

    What the visibility change targeted: 'revision', 'archive', 'oldimage' or 'filearchive' on …/revision rows; 'logging' on …/event rows.


    userid?

    optional userid?: number

    Defined in: core/query/logparams.ts:154

    Id of the account the row reports (on newusers/create, newusers/create2 and newusers/autocreate rows).