> 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: ApiPageProtection

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

One entry of a page's `protection` array (`inprop=protection`).

## Properties

### cascade?

> `optional` **cascade?**: `true`

Defined in: [core/query/info.ts:27](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/info.ts#L27)

Whether this restriction cascades to transcluded pages. Appears only when
the page has `cascade=true` set (see `action=protect`), and is a [Flag](https://types-mediawiki-response.pages.dev/zh/api/core/Flag.md).

***

### expiry

> **expiry**: `string`

Defined in: [core/query/info.ts:21](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/info.ts#L21)

Expiry, or `infinity` / `infinite` when permanent.

***

### level

> **level**: `string`

Defined in: [core/query/info.ts:18](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/info.ts#L18)

Required right/group level, e.g. `sysop` / `autoconfirmed`. Empty when unrestricted.

***

### source?

> `optional` **source?**: `string`

Defined in: [core/query/info.ts:34](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/info.ts#L34)

Title of the page whose protection cascades onto this one. Present only on
entries inherited through cascading protection, i.e. never together with
[cascade](#cascade) on the same entry.

***

### type

> **type**: `string`

Defined in: [core/query/info.ts:15](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/info.ts#L15)

Restriction kind, e.g. `edit` / `move`. Open union.
