Interface: ApiRevision
Defined in: core/query/revisions.ts:92
A single revision entry in pages[].revisions.
Extends
Properties
anon?
optionalanon?:true
Defined in: core/query/revisions.ts:103
Made by an anonymous (IP) editor. rvprop=user|userid; a Flag.
badcontentformat?
optionalbadcontentformat?:true
Defined in: core/query/revisions.ts:180
The requested content format is not supported by this revision's model.
Top level only when rvslots= is not used; with rvslots= each slot
carries its own badcontentformat. A Flag.
comment?
optionalcomment?:string
Defined in: core/query/revisions.ts:142
Raw edit summary. rvprop=comment.
commenthidden?
optionalcommenthidden?:true
Defined in: core/query/revisions.ts:166
The edit summary is hidden (revision-deleted). rvprop=comment|parsedcomment
on a suppressed revision; a Flag. Reviewers with the delete right
still see comment (often the empty string); other viewers see it withheld.
Overrides
content?
optionalcontent?:string
Defined in: core/query/revisions.ts:133
Legacy top-level content body. Only when rvslots= is not used,
together with rvprop=content; with rvslots= the body lives in each
slot.
contentformat?
optionalcontentformat?:ContentFormat
Defined in: core/query/revisions.ts:139
Serialization format of the legacy top-level content. Only when
rvslots= is not used, with rvprop=content.
contentmodel?
optionalcontentmodel?:ContentModel
Defined in: core/query/revisions.ts:126
Content model of the main slot at this revision. rvprop=contentmodel,
and also emitted alongside the legacy top-level content body
(rvprop=content). Top level only when rvslots= is not used; with
rvslots= the content model lives in each slot.
diff?
optionaldiff?:ApiRevisionDiff
Defined in: core/query/revisions.ts:197
Diff of this revision against rvdiffto/rvdifftotext (both deprecated; prefer action=compare).
minor?
optionalminor?:boolean
Defined in: core/query/revisions.ts:100
Whether the edit was marked minor. rvprop=flags; a real boolean (present as false).
parentid?
optionalparentid?:number
Defined in: core/query/revisions.ts:97
Previous revision id; 0 for the first revision of a page. rvprop=ids.
parsedcomment?
optionalparsedcomment?:string
Defined in: core/query/revisions.ts:145
HTML-rendered edit summary. rvprop=parsedcomment.
revid?
optionalrevid?:number
Defined in: core/query/revisions.ts:94
Revision id. rvprop=ids.
roles?
optionalroles?:string[]
Defined in: core/query/revisions.ts:151
Slot roles present on this revision, e.g. ["main"]. rvprop=roles.
sha1?
optionalsha1?:string
Defined in: core/query/revisions.ts:118
SHA-1 of the revision content (hex). rvprop=sha1. May be empty ('').
sha1hidden?
optionalsha1hidden?:true
Defined in: core/query/revisions.ts:194
The SHA-1 (sha1) is withheld because the content is revision-deleted.
rvprop=sha1; a Flag.
size?
optionalsize?:number
Defined in: core/query/revisions.ts:115
Revision size in bytes. rvprop=size.
slots?
optionalslots?:ApiRevisionSlots
Defined in: core/query/revisions.ts:159
Content slots. Requires rvslots= together with one of rvprop=content,
contentmodel, slotsize, slotsha1; with none of those rvprop values
no slots map is returned. Without rvslots= the content fields appear at
the top level instead (legacy).
slotsmissing?
optionalslotsmissing?:true
Defined in: core/query/revisions.ts:200
A slot could not be read for this revision (slot access failure); a Flag.
suppressed?
optionalsuppressed?:true
Defined in: core/query/shared.ts:34
Oversight/suppression applies to the entry (set together with the
*hidden flags). A Flag.
Inherited from
tags?
optionaltags?:string[]
Defined in: core/query/revisions.ts:148
Change tags applied to this revision. rvprop=tags.
temp?
optionaltemp?:true
Defined in: core/query/revisions.ts:188
The editor is a temporary account. rvprop=user|userid on a temp-account
revision; a Flag.
Since
MediaWiki 1.42
texthidden?
optionaltexthidden?:true
Defined in: core/query/revisions.ts:173
The revision content is hidden (revision-deleted); a Flag.
Top level only when rvslots= is not used; with rvslots= each slot
carries its own texthidden.
textmissing?
optionaltextmissing?:true
Defined in: core/query/revisions.ts:207
The revision has no content to return (e.g. deleted text). Top level only
when rvslots= is not used; with rvslots= each slot carries its own
textmissing. A Flag.
timestamp?
optionaltimestamp?:string
Defined in: core/query/revisions.ts:112
Revision timestamp. rvprop=timestamp.
user?
optionaluser?:string
Defined in: core/query/revisions.ts:106
Editor user name. rvprop=user.
userhidden?
optionaluserhidden?:true
Defined in: core/query/shared.ts:25
The acting user is hidden. A Flag.
Inherited from
userid?
optionaluserid?:number
Defined in: core/query/revisions.ts:109
Editor user id; 0 for anonymous editors. rvprop=userid.