Skip to content

Commit

Permalink
Update API types
Browse files Browse the repository at this point in the history
  • Loading branch information
Derugon committed Dec 31, 2024
1 parent ee6b7dd commit 5ca0375
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions api_params/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,14 +422,22 @@ declare global {
aggregategroup?: string;
/**
* Message group ID. See {@link https://www.mediawiki.org/wiki/Special:ApiHelp/query%2Bmessagegroups `action=query&meta=messagegroups`}.
*
* @deprecated
*/
group?: string;
/**
* List of message group IDs. See {@link https://www.mediawiki.org/wiki/Special:ApiHelp/query%2Bmessagegroups `action=query&meta=messagegroups`}.
*/
groups?: string | string[];
/**
* Aggregate message group name.
*/
groupname?: string;
/**
* Aggregate message group description.
*
* Defaults to an empty string.
*/
groupdescription?: string;
/**
Expand Down Expand Up @@ -464,6 +472,10 @@ declare global {
*/
interface Block extends Params {
action: "block";
/**
* The block ID to modify.
*/
id?: number;
/**
* User to block.
*/
Expand Down Expand Up @@ -511,9 +523,13 @@ declare global {
*/
allowusertalk?: boolean;
/**
* If the user is already blocked, overwrite the existing block.
* If the user is already blocked by a single block, overwrite the existing block. If the user is blocked more than once, this will fail -- use the id parameter instead to specify which block to overwrite.
*/
reblock?: boolean;
/**
* Add another block even if the user is already blocked.
*/
newblock?: boolean;
/**
* Watch the user's or IP address's user and talk pages.
*/
Expand Down Expand Up @@ -764,7 +780,12 @@ declare global {
* Defaults to `globals`, `namespacemap`, `profiles`, and `replicagroup`.
*/
prop?: OneOrMore<
"globals" | "namespacemap" | "profiles" | "replicagroup" | "usertesting"
| "expectedindices"
| "globals"
| "namespacemap"
| "profiles"
| "replicagroup"
| "usertesting"
>;
}

Expand Down Expand Up @@ -3674,6 +3695,12 @@ declare global {
* Sensitive parameter.
*/
token: string;
/**
* Client hints data supplied alongside requests to ApiLogout. For internal use only.
*
* Sensitive parameter.
*/
checkuserclienthints?: string;
}

/**
Expand Down Expand Up @@ -14303,6 +14330,7 @@ declare global {
* - **links**: Add links between articles
* - **references**: Find references
* - **update**: Update articles
* - **link-recommendation**: Add links between articles
*/
ggttasktypes?: OneOrMore<
| "copyedit"
Expand Down Expand Up @@ -20282,6 +20310,7 @@ declare global {
* - **links**: Add links between articles
* - **references**: Find references
* - **update**: Update articles
* - **link-recommendation**: Add links between articles
*/
gttasktypes?: OneOrMore<
| "copyedit"
Expand Down Expand Up @@ -24819,6 +24848,7 @@ declare global {
* - **links**: Add links between articles
* - **references**: Find references
* - **update**: Update articles
* - **link-recommendation**: Add links between articles
*/
ggttasktypes?: OneOrMore<
| "copyedit"
Expand Down Expand Up @@ -28380,6 +28410,7 @@ declare global {
* - **links**: Add links between articles
* - **references**: Find references
* - **update**: Update articles
* - **link-recommendation**: Add links between articles
*/
ggttasktypes?: OneOrMore<
| "copyedit"
Expand Down Expand Up @@ -31798,6 +31829,7 @@ declare global {
* - **links**: Add links between articles
* - **references**: Find references
* - **update**: Update articles
* - **link-recommendation**: Add links between articles
*/
ggttasktypes?: OneOrMore<
| "copyedit"
Expand Down Expand Up @@ -35216,6 +35248,7 @@ declare global {
* - **links**: Add links between articles
* - **references**: Find references
* - **update**: Update articles
* - **link-recommendation**: Add links between articles
*/
ggttasktypes?: OneOrMore<
| "copyedit"
Expand Down

0 comments on commit 5ca0375

Please sign in to comment.