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
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?
optionalauto?:boolean
Defined in: core/query/logparams.ts:275
Always false: automatic patrols are not logged.
blockId?
optionalblockId?:number
Defined in: core/query/logparams.ts:73
Id of the block the row created or changed.
Since
MediaWiki 1.44
cascade?
optionalcascade?:boolean
Defined in: core/query/logparams.ts:104
Whether cascading protection was requested.
count?
optionalcount?: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?
optionalcurid?:number
Defined in: core/query/logparams.ts:269
Revision id that was marked patrolled, on patrol/patrol rows.
description?
optionaldescription?: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?
optionaldest_ns?:number
Defined in: core/query/logparams.ts:193
Namespace of the page the history was merged into.
dest_title?
optionaldest_title?:string
Defined in: core/query/logparams.ts:196
Title of the page the history was merged into.
details?
optionaldetails?:ApiLogProtectDetail[]
Defined in: core/query/logparams.ts:107
Protection restrictions in force.
duration?
optionalduration?: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?
optionalduration-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?
optionalexpiry?:string
Defined in: core/query/logparams.ts:60
Absolute expiry of the block (ISO 8601), on rows with a finite duration.
flags?
optionalflags?: ("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?
optionalids?: (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?
optionalimg_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?
optionalimg_timestamp?:string
Defined in: core/query/logparams.ts:264
File timestamp (ISO 8601), which can differ from the row's timestamp.
initialTags?
optionalinitialTags?:string[]
Defined in: core/query/logparams.ts:305
Tags the target carried before the update.
interwiki_ns?
optionalinterwiki_ns?:number
Defined in: core/query/logparams.ts:250
Namespace of the source page on the foreign wiki (import/interwiki).
interwiki_title?
optionalinterwiki_title?:string
Defined in: core/query/logparams.ts:253
Source page on the foreign wiki, with its interwiki prefix (import/interwiki).
logid?
optionallogid?: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?
optionalmergepoint?: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?
optionalmergerevid?: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?
optionalmergestart?: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?
optionalmergestartid?: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?
optionalnew?:ApiLogRevDelVisibility
Defined in: core/query/logparams.ts:146
Visibility state after the change.
newgroups?
optionalnewgroups?:string[]
Defined in: core/query/logparams.ts:165
Groups after the change.
newlanguage?
optionalnewlanguage?:string
Defined in: core/query/logparams.ts:321
Page language after the change; also [def]-suffixed when set to default.
newmetadata?
optionalnewmetadata?:ApiLogGroupMetadata[]
Defined in: core/query/logparams.ts:177
Per-group membership expiry, parallel to newgroups; [] when
permanent. Absent on rights/autopromote rows.
newmodel?
optionalnewmodel?:ContentModel
Defined in: core/query/logparams.ts:188
Content model after the change.
old?
optionalold?:ApiLogRevDelVisibility
Defined in: core/query/logparams.ts:143
Visibility state before the change.
oldgroups?
optionaloldgroups?: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?
optionaloldlanguage?: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?
optionaloldmetadata?: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?
optionaloldmodel?:ContentModel
Defined in: core/query/logparams.ts:185
Content model before the change (on contentmodel/change and
contentmodel/new rows).
oldtitle_ns?
optionaloldtitle_ns?:number
Defined in: core/query/logparams.ts:112
Namespace of the title the protection moved away from.
oldtitle_title?
optionaloldtitle_title?:string
Defined in: core/query/logparams.ts:115
Title the protection moved away from.
previd?
optionalprevid?:number
Defined in: core/query/logparams.ts:272
Revision id the patrolled one followed.
restrictions?
optionalrestrictions?:ApiLogBlockRestrictions
Defined in: core/query/logparams.ts:66
Scope of a partial block; absent for sitewide blocks.
revid?
optionalrevid?: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?
optionalsitewide?:boolean
Defined in: core/query/logparams.ts:63
Whether the block covers the whole site (false for a partial block).
src_ns?
optionalsrc_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?
optionalsrc_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?
optionalsuppressredirect?:boolean
Defined in: core/query/logparams.ts:92
Whether the move left no redirect behind.
tag?
optionaltag?:string
Defined in: core/query/logparams.ts:310
Name of the managed tag (managetags/create|activate|deactivate|delete).
tagsAdded?
optionaltagsAdded?:string[]
Defined in: core/query/logparams.ts:293
Tags the update added.
tagsAddedCount?
optionaltagsAddedCount?:number
Defined in: core/query/logparams.ts:296
How many tags tagsAdded holds.
tagsRemoved?
optionaltagsRemoved?:string[]
Defined in: core/query/logparams.ts:299
Tags the update removed.
tagsRemovedCount?
optionaltagsRemovedCount?:number
Defined in: core/query/logparams.ts:302
How many tags tagsRemoved holds.
target_ns?
optionaltarget_ns?:number
Defined in: core/query/logparams.ts:86
Namespace of the move destination (on move/move and move/move_redir rows).
target_title?
optionaltarget_title?:string
Defined in: core/query/logparams.ts:89
Title of the move destination.
type?
optionaltype?:"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?
optionaluserid?:number
Defined in: core/query/logparams.ts:154
Id of the account the row reports (on newusers/create, newusers/create2
and newusers/autocreate rows).