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, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/core/ApiSiteRestrictions.md.
  • 中文
  • Interface: ApiSiteRestrictions

    Defined in: core/query/siteinfo.ts:410

    siprop=restrictions: protection types and levels. levels is not a flat string list — FlaggedRevs registers a protection class as a nested array, so an element can be string[] (e.g. ["sreview"]).

    Properties

    cascadinglevels

    cascadinglevels: string[]

    Defined in: core/query/siteinfo.ts:418

    Levels that may cascade.


    levels

    levels: (string | string[])[]

    Defined in: core/query/siteinfo.ts:415

    Selectable protection levels; "" means unrestricted.


    semiprotectedlevels

    semiprotectedlevels: string[]

    Defined in: core/query/siteinfo.ts:421

    Levels treated as semi-protection.


    types

    types: string[]

    Defined in: core/query/siteinfo.ts:412

    Restriction kinds, e.g. create, edit, move, upload.