> 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.

# Interface: ApiAbuseFilter

Defined in: [extensions/abusefilters.ts:33](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L33)

One abuse filter definition.

## Properties

### actions?

> `optional` **actions?**: `string` | `string`\[]

Defined in: [extensions/abusefilters.ts:49](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L49)

The actions the filter performs. `abfprop=actions`.

- Up to MediaWiki 1.46: the raw `af_actions` column, a comma-joined
  string such as `"disallow,tag"`.
- 1.47 onward: the same value split into a `string[]`.

***

### comments?

> `optional` **comments?**: `string`

Defined in: [extensions/abusefilters.ts:52](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L52)

The filter's comments. `abfprop=comments` (withheld for private/protected filters).

***

### commentsredacted?

> `optional` **commentsredacted?**: `true`

Defined in: [extensions/abusefilters.ts:79](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L79)

`true` when `comments` was withheld from this viewer. A [Flag](https://types-mediawiki-response.pages.dev/api/core/Flag.md).
Before 1.47, a withheld [comments](#comments) was simply omitted.

#### Since

MediaWiki 1.47

***

### deleted?

> `optional` **deleted?**: `boolean` | `""`

Defined in: [extensions/abusefilters.ts:95](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L95)

Whether the filter is soft-deleted. `abfprop=status`; same `""` (1.43) vs real boolean (newer `abfprop=flags`) behaviour as [enabled](#enabled).

***

### description?

> `optional` **description?**: `string`

Defined in: [extensions/abusefilters.ts:38](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L38)

Human-readable filter description. `abfprop=description`.

***

### enabled?

> `optional` **enabled?**: `boolean` | `""`

Defined in: [extensions/abusefilters.ts:92](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L92)

Whether the filter is enabled. `abfprop=status`.

- 1.43: present as an **empty string** when the flag applies, and absent otherwise.
- Newer builds (`abfprop=flags`): real booleans.

***

### hits?

> `optional` **hits?**: `number`

Defined in: [extensions/abusefilters.ts:55](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L55)

Number of matches (only when the viewer may see it). `abfprop=hits`.

***

### hitsredacted?

> `optional` **hitsredacted?**: `true`

Defined in: [extensions/abusefilters.ts:63](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L63)

`true` when `hits` was withheld from this viewer. A [Flag](https://types-mediawiki-response.pages.dev/api/core/Flag.md). Before
1.47, a withheld [hits](#hits) was simply omitted.

#### Since

MediaWiki 1.47

***

### id?

> `optional` **id?**: `number`

Defined in: [extensions/abusefilters.ts:35](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L35)

Filter id.

***

### lasteditor?

> `optional` **lasteditor?**: `string`

Defined in: [extensions/abusefilters.ts:82](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L82)

Last editor of the filter. `abfprop=lasteditor`.

***

### lastedittime?

> `optional` **lastedittime?**: `string`

Defined in: [extensions/abusefilters.ts:85](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L85)

Last edit timestamp. `abfprop=lastedittime`.

***

### pattern?

> `optional` **pattern?**: `string`

Defined in: [extensions/abusefilters.ts:41](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L41)

The filter's regex/rule string. `abfprop=pattern` (withheld for private/protected filters).

***

### patternredacted?

> `optional` **patternredacted?**: `true`

Defined in: [extensions/abusefilters.ts:71](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L71)

`true` when `pattern` was withheld from this viewer. A [Flag](https://types-mediawiki-response.pages.dev/api/core/Flag.md).
Before 1.47, a withheld [pattern](#pattern) was simply omitted.

#### Since

MediaWiki 1.47

***

### private?

> `optional` **private?**: `boolean` | `""`

Defined in: [extensions/abusefilters.ts:98](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L98)

Whether the filter is private (hidden from the viewer). `abfprop=private`; same `""` (1.43) vs real boolean (newer `abfprop=flags`) behaviour as [enabled](#enabled).

***

### protected?

> `optional` **protected?**: `boolean` | `""`

Defined in: [extensions/abusefilters.ts:106](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L106)

Whether the filter's protected variables are hidden. Same `""` (1.43) vs
real boolean (newer `abfprop=flags`) behaviour as [enabled](#enabled).

#### Since

MediaWiki 1.43

***

### suppressed?

> `optional` **suppressed?**: `boolean`

Defined in: [extensions/abusefilters.ts:115](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/abusefilters.ts#L115)

Whether the filter is suppressed (oversight). A real `boolean` under
`abfprop=flags`; the per-flag `abfprop=suppressed` alias is itself
deprecated since 1.47.

#### Since

MediaWiki 1.47
