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

Defined in: [core/protect.ts:16](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/protect.ts#L16)

One applied protection (`type` → level, plus `expiry`).

## Indexable

> \[`type`: `string`]: `string` | `undefined`

Extension-provided restriction types are carried through as string levels.

## Properties

### create?

> `optional` **create?**: `string`

Defined in: [core/protect.ts:24](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/protect.ts#L24)

Create-protection level, when the `create` restriction is set.

***

### edit?

> `optional` **edit?**: `string`

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

Edit-protection level (right/group name), when the `edit` restriction is set.

***

### expiry

> **expiry**: `string`

Defined in: [core/protect.ts:30](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/protect.ts#L30)

Expiry for this restriction, or `infinite`.

***

### move?

> `optional` **move?**: `string`

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

Move-protection level, when the `move` restriction is set.

***

### upload?

> `optional` **upload?**: `string`

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

Upload-protection level, when the `upload` restriction is set.
