> For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt.

# Interface: ApiBlockRestrictions

Defined in: [core/query/blocks.ts:11](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/blocks.ts#L11)

Restriction targets of a partial block, grouped by kind.

## Properties

### actions?

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

Defined in: [core/query/blocks.ts:28](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/blocks.ts#L28)

Restricted actions; only on action-type entries. Before MediaWiki 1.45 these require `$wgEnablePartialActionBlocks`.

***

### namespaces?

> `optional` **namespaces?**: `number`\[]

Defined in: [core/query/blocks.ts:25](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/blocks.ts#L25)

Restricted namespace ids.

***

### pages?

> `optional` **pages?**: `object`\[]

Defined in: [core/query/blocks.ts:13](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/blocks.ts#L13)

Restricted pages.

#### id

> **id**: `number`

Page id.

#### ns?

> `optional` **ns?**: `number`

Namespace index of the restricted page.

#### title?

> `optional` **title?**: `string`

Full title of the restricted page.
