mediawiktory 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/CONTRIBUTING.md +16 -0
- data/LICENSE.txt +22 -0
- data/README.md +5 -5
- data/examples/query_generator.rb +1 -1
- data/lib/mediawiktory.rb +2 -1
- data/lib/mediawiktory/action.rb +9 -0
- data/lib/mediawiktory/client.rb +27 -2
- data/lib/mediawiktory/generated/abusefilters.rb +3 -3
- data/lib/mediawiktory/generated/abuselog.rb +2 -2
- data/lib/mediawiktory/generated/allcategories.rb +2 -2
- data/lib/mediawiktory/generated/alldeletedrevisions.rb +4 -4
- data/lib/mediawiktory/generated/allfileusages.rb +2 -2
- data/lib/mediawiktory/generated/allimages.rb +4 -4
- data/lib/mediawiktory/generated/alllinks.rb +3 -3
- data/lib/mediawiktory/generated/allmessages.rb +2 -2
- data/lib/mediawiktory/generated/allpages.rb +8 -8
- data/lib/mediawiktory/generated/allredirects.rb +3 -3
- data/lib/mediawiktory/generated/alltransclusions.rb +3 -3
- data/lib/mediawiktory/generated/allusers.rb +5 -5
- data/lib/mediawiktory/generated/backlinks.rb +3 -3
- data/lib/mediawiktory/generated/blocks.rb +3 -3
- data/lib/mediawiktory/generated/categories.rb +3 -3
- data/lib/mediawiktory/generated/categorymembers.rb +5 -5
- data/lib/mediawiktory/generated/checktoken.rb +1 -1
- data/lib/mediawiktory/generated/checkuser.rb +1 -1
- data/lib/mediawiktory/generated/checkuserlog.rb +1 -1
- data/lib/mediawiktory/generated/close-open-topic.rb +1 -1
- data/lib/mediawiktory/generated/contenttranslation.rb +1 -1
- data/lib/mediawiktory/generated/contenttranslationlangtrend.rb +1 -1
- data/lib/mediawiktory/generated/contributors.rb +4 -4
- data/lib/mediawiktory/generated/coordinates.rb +2 -2
- data/lib/mediawiktory/generated/cxpublish.rb +1 -1
- data/lib/mediawiktory/generated/delete.rb +1 -1
- data/lib/mediawiktory/generated/deletedrevisions.rb +3 -3
- data/lib/mediawiktory/generated/deletedrevs.rb +3 -3
- data/lib/mediawiktory/generated/deleteeducation.rb +1 -1
- data/lib/mediawiktory/generated/duplicatefiles.rb +1 -1
- data/lib/mediawiktory/generated/echomarkread.rb +1 -1
- data/lib/mediawiktory/generated/echomarkseen.rb +1 -1
- data/lib/mediawiktory/generated/edit-header.rb +1 -1
- data/lib/mediawiktory/generated/edit-post.rb +1 -1
- data/lib/mediawiktory/generated/edit-topic-summary.rb +1 -1
- data/lib/mediawiktory/generated/edit.rb +4 -4
- data/lib/mediawiktory/generated/editlist.rb +2 -2
- data/lib/mediawiktory/generated/embeddedin.rb +3 -3
- data/lib/mediawiktory/generated/enlist.rb +2 -2
- data/lib/mediawiktory/generated/expandtemplates.rb +1 -1
- data/lib/mediawiktory/generated/extlinks.rb +1 -1
- data/lib/mediawiktory/generated/extracts.rb +1 -1
- data/lib/mediawiktory/generated/exturlusage.rb +3 -3
- data/lib/mediawiktory/generated/featuredfeed.rb +2 -2
- data/lib/mediawiktory/generated/feedcontributions.rb +3 -3
- data/lib/mediawiktory/generated/feedrecentchanges.rb +2 -2
- data/lib/mediawiktory/generated/feedwatchlist.rb +3 -3
- data/lib/mediawiktory/generated/filearchive.rb +2 -2
- data/lib/mediawiktory/generated/filerepoinfo.rb +1 -1
- data/lib/mediawiktory/generated/fileusage.rb +3 -3
- data/lib/mediawiktory/generated/flow-parsoid-utils.rb +2 -2
- data/lib/mediawiktory/generated/gadgetcategories.rb +1 -1
- data/lib/mediawiktory/generated/gadgets.rb +1 -1
- data/lib/mediawiktory/generated/geosearch.rb +4 -4
- data/lib/mediawiktory/generated/globalallusers.rb +4 -4
- data/lib/mediawiktory/generated/globalblocks.rb +2 -2
- data/lib/mediawiktory/generated/globalgroups.rb +1 -1
- data/lib/mediawiktory/generated/globalusage.rb +1 -1
- data/lib/mediawiktory/generated/globaluserinfo.rb +1 -1
- data/lib/mediawiktory/generated/globaluserrights.rb +2 -2
- data/lib/mediawiktory/generated/imageinfo.rb +1 -1
- data/lib/mediawiktory/generated/images.rb +1 -1
- data/lib/mediawiktory/generated/imageusage.rb +3 -3
- data/lib/mediawiktory/generated/import.rb +2 -2
- data/lib/mediawiktory/generated/info.rb +2 -2
- data/lib/mediawiktory/generated/iwbacklinks.rb +2 -2
- data/lib/mediawiktory/generated/iwlinks.rb +2 -2
- data/lib/mediawiktory/generated/jsonconfig.rb +1 -1
- data/lib/mediawiktory/generated/langbacklinks.rb +2 -2
- data/lib/mediawiktory/generated/langlinks.rb +2 -2
- data/lib/mediawiktory/generated/links.rb +2 -2
- data/lib/mediawiktory/generated/linkshere.rb +3 -3
- data/lib/mediawiktory/generated/listpages.rb +3 -3
- data/lib/mediawiktory/generated/lists.rb +2 -2
- data/lib/mediawiktory/generated/liststudents.rb +1 -1
- data/lib/mediawiktory/generated/lock-topic.rb +1 -1
- data/lib/mediawiktory/generated/logevents.rb +5 -5
- data/lib/mediawiktory/generated/managetags.rb +1 -1
- data/lib/mediawiktory/generated/mobileview.rb +3 -3
- data/lib/mediawiktory/generated/moderate-post.rb +1 -1
- data/lib/mediawiktory/generated/moderate-topic.rb +1 -1
- data/lib/mediawiktory/generated/move.rb +1 -1
- data/lib/mediawiktory/generated/new-topic.rb +1 -1
- data/lib/mediawiktory/generated/notifications.rb +3 -3
- data/lib/mediawiktory/generated/oldreviewedpages.rb +4 -4
- data/lib/mediawiktory/generated/opensearch.rb +3 -3
- data/lib/mediawiktory/generated/options.rb +1 -1
- data/lib/mediawiktory/generated/pageimages.rb +1 -1
- data/lib/mediawiktory/generated/pageswithprop.rb +2 -2
- data/lib/mediawiktory/generated/pageterms.rb +1 -1
- data/lib/mediawiktory/generated/pagetriageaction.rb +1 -1
- data/lib/mediawiktory/generated/paraminfo.rb +3 -3
- data/lib/mediawiktory/generated/parse.rb +3 -3
- data/lib/mediawiktory/generated/prefixsearch.rb +1 -1
- data/lib/mediawiktory/generated/protect.rb +1 -1
- data/lib/mediawiktory/generated/protectedtitles.rb +4 -4
- data/lib/mediawiktory/generated/querypage.rb +1 -1
- data/lib/mediawiktory/generated/random.rb +2 -2
- data/lib/mediawiktory/generated/recentchanges.rb +6 -6
- data/lib/mediawiktory/generated/redirects.rb +3 -3
- data/lib/mediawiktory/generated/refresheducation.rb +1 -1
- data/lib/mediawiktory/generated/reply.rb +1 -1
- data/lib/mediawiktory/generated/reviewactivity.rb +1 -1
- data/lib/mediawiktory/generated/revisiondelete.rb +4 -4
- data/lib/mediawiktory/generated/revisions.rb +4 -4
- data/lib/mediawiktory/generated/rollback.rb +1 -1
- data/lib/mediawiktory/generated/search.rb +4 -4
- data/lib/mediawiktory/generated/setglobalaccountstatus.rb +2 -2
- data/lib/mediawiktory/generated/siteinfo.rb +2 -2
- data/lib/mediawiktory/generated/sitematrix.rb +4 -4
- data/lib/mediawiktory/generated/stabilize.rb +1 -1
- data/lib/mediawiktory/generated/stashedit.rb +2 -2
- data/lib/mediawiktory/generated/stashimageinfo.rb +1 -1
- data/lib/mediawiktory/generated/strikevote.rb +1 -1
- data/lib/mediawiktory/generated/tag.rb +1 -1
- data/lib/mediawiktory/generated/tags.rb +1 -1
- data/lib/mediawiktory/generated/templatedata.rb +1 -1
- data/lib/mediawiktory/generated/templates.rb +2 -2
- data/lib/mediawiktory/generated/titleblacklist.rb +1 -1
- data/lib/mediawiktory/generated/tokens.rb +1 -1
- data/lib/mediawiktory/generated/transcludedin.rb +3 -3
- data/lib/mediawiktory/generated/undelete.rb +1 -1
- data/lib/mediawiktory/generated/upload.rb +1 -1
- data/lib/mediawiktory/generated/usercontribs.rb +4 -4
- data/lib/mediawiktory/generated/userinfo.rb +1 -1
- data/lib/mediawiktory/generated/userrights.rb +2 -2
- data/lib/mediawiktory/generated/users.rb +2 -2
- data/lib/mediawiktory/generated/videoinfo.rb +1 -1
- data/lib/mediawiktory/generated/view-header.rb +1 -1
- data/lib/mediawiktory/generated/view-post-history.rb +1 -1
- data/lib/mediawiktory/generated/view-post.rb +1 -1
- data/lib/mediawiktory/generated/view-topic-history.rb +1 -1
- data/lib/mediawiktory/generated/view-topic-summary.rb +1 -1
- data/lib/mediawiktory/generated/view-topic.rb +1 -1
- data/lib/mediawiktory/generated/view-topiclist.rb +3 -3
- data/lib/mediawiktory/generated/visualeditor.rb +2 -2
- data/lib/mediawiktory/generated/watchlist.rb +5 -5
- data/lib/mediawiktory/generated/watchlistraw.rb +4 -4
- data/lib/mediawiktory/generated/wikibase.rb +1 -1
- data/lib/mediawiktory/generated/wikisets.rb +1 -1
- data/lib/mediawiktory/generated/zeroconfig.rb +1 -1
- data/lib/mediawiktory/mw_module.rb +6 -2
- data/lib/mediawiktory/page.rb +46 -0
- data/lib/mediawiktory/query.rb +21 -23
- data/lib/mediawiktory/version.rb +4 -1
- data/script/lib/parameter.rb +2 -5
- metadata +6 -4
- data/Gemfile.lock +0 -63
- data/lib/mediawiktory/array_with_keys.rb +0 -41
@@ -3,9 +3,9 @@ module MediaWiktory
|
|
3
3
|
symbol :pageswithprop
|
4
4
|
prefix "pwp"
|
5
5
|
param :propname, Params::String
|
6
|
-
param :prop, Params::List[Params::Enum[
|
6
|
+
param :prop, Params::List[Params::Enum[:ids, :title, :value]]
|
7
7
|
param :continue, Params::String
|
8
8
|
param :limit, Params::IntegerOrMax
|
9
|
-
param :dir, Params::Enum[
|
9
|
+
param :dir, Params::Enum[:ascending, :descending]
|
10
10
|
end
|
11
11
|
end
|
@@ -3,7 +3,7 @@ module MediaWiktory
|
|
3
3
|
symbol :pagetriageaction
|
4
4
|
post!
|
5
5
|
param :pageid, Params::Integer
|
6
|
-
param :reviewed, Params::Enum["1", "0"]
|
6
|
+
param :reviewed, Params::Enum[:"1", :"0"]
|
7
7
|
param :token, Params::String
|
8
8
|
param :note, Params::String
|
9
9
|
param :skipnotif, Params::Boolean
|
@@ -2,10 +2,10 @@ module MediaWiktory
|
|
2
2
|
class Paraminfo < Action
|
3
3
|
symbol :paraminfo
|
4
4
|
param :modules, Params::List[Params::String]
|
5
|
-
param :helpformat, Params::Enum[
|
6
|
-
param :querymodules, Params::List[Params::Enum[
|
5
|
+
param :helpformat, Params::Enum[:html, :wikitext, :raw, :none]
|
6
|
+
param :querymodules, Params::List[Params::Enum[:abusefilters, :abuselog, :allcategories, :alldeletedrevisions, :allfileusages, :allimages, :alllinks, :allmessages, :allpages, :allredirects, :alltransclusions, :allusers, :backlinks, :betafeatures, :blocks, :categories, :categoryinfo, :categorymembers, :centralnoticelogs, :checkuser, :checkuserlog, :contenttranslation, :contenttranslationlangtrend, :contenttranslationstats, :contenttranslationsuggestions, :contributors, :coordinates, :cxpublishedtranslations, :deletedrevisions, :deletedrevs, :duplicatefiles, :embeddedin, :extlinks, :extracts, :exturlusage, :featureusage, :filearchive, :filerepoinfo, :fileusage, :flagged, :flowinfo, :gadgetcategories, :gadgets, :geosearch, :gettingstartedgetpages, :globalallusers, :globalblocks, :globalgroups, :globalusage, :globaluserinfo, :imageinfo, :images, :imageusage, :info, :iwbacklinks, :iwlinks, :langbacklinks, :langlinks, :links, :linkshere, :listmembership, :listpages, :lists, :logevents, :mmsites, :notifications, :oldreviewedpages, :pageimages, :pagepropnames, :pageprops, :pageswithprop, :pageterms, :prefixsearch, :protectedtitles, :querypage, :random, :recentchanges, :redirects, :revisions, :search, :siteinfo, :stashimageinfo, :tags, :templates, :tokens, :transcludedin, :transcodestatus, :usercontribs, :userinfo, :users, :videoinfo, :watchlist, :watchlistraw, :wikibase, :wikisets]]
|
7
7
|
param :mainmodule, Params::String
|
8
8
|
param :pagesetmodule, Params::String
|
9
|
-
param :formatmodules, Params::List[Params::Enum[
|
9
|
+
param :formatmodules, Params::List[Params::Enum[:dbg, :dbgfm, :json, :jsonfm, :none, :php, :phpfm, :rawfm, :txt, :txtfm, :xml, :xmlfm, :yaml, :yamlfm]]
|
10
10
|
end
|
11
11
|
end
|
@@ -8,7 +8,7 @@ module MediaWiktory
|
|
8
8
|
param :pageid, Params::Integer
|
9
9
|
param :redirects, Params::Boolean
|
10
10
|
param :oldid, Params::Integer
|
11
|
-
param :prop, Params::List[Params::Enum[
|
11
|
+
param :prop, Params::List[Params::Enum[:text, :langlinks, :categories, :categorieshtml, :links, :templates, :images, :externallinks, :sections, :revid, :displaytitle, :headitems, :headhtml, :modules, :jsconfigvars, :encodedjsconfigvars, :indicators, :iwlinks, :wikitext, :properties, :limitreportdata, :limitreporthtml, :parsetree]]
|
12
12
|
param :pst, Params::Boolean
|
13
13
|
param :onlypst, Params::Boolean
|
14
14
|
param :effectivelanglinks, Params::Boolean
|
@@ -22,8 +22,8 @@ module MediaWiktory
|
|
22
22
|
param :preview, Params::Boolean
|
23
23
|
param :sectionpreview, Params::Boolean
|
24
24
|
param :disabletoc, Params::Boolean
|
25
|
-
param :contentformat, Params::Enum["application/json", "text/x-wiki", "text/javascript", "text/css", "text/plain"]
|
26
|
-
param :contentmodel, Params::Enum[
|
25
|
+
param :contentformat, Params::Enum[:"application/json", :"text/x-wiki", :"text/javascript", :"text/css", :"text/plain"]
|
26
|
+
param :contentmodel, Params::Enum[:MassMessageListContent, :wikitext, :javascript, :json, :css, :text, :SecurePoll, :"flow-board", :Scribunto, :JsonSchema]
|
27
27
|
param :mobileformat, Params::Boolean
|
28
28
|
param :noimages, Params::Boolean
|
29
29
|
param :mainpage, Params::Boolean
|
@@ -3,7 +3,7 @@ module MediaWiktory
|
|
3
3
|
symbol :prefixsearch
|
4
4
|
prefix "ps"
|
5
5
|
param :search, Params::String
|
6
|
-
param :namespace, Params::List[Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]]
|
6
|
+
param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]]
|
7
7
|
param :limit, Params::IntegerOrMax
|
8
8
|
param :offset, Params::Integer
|
9
9
|
end
|
@@ -9,7 +9,7 @@ module MediaWiktory
|
|
9
9
|
param :reason, Params::String
|
10
10
|
param :cascade, Params::Boolean
|
11
11
|
param :watch, Params::Boolean
|
12
|
-
param :watchlist, Params::Enum[
|
12
|
+
param :watchlist, Params::Enum[:watch, :unwatch, :preferences, :nochange]
|
13
13
|
param :token, Params::String
|
14
14
|
end
|
15
15
|
end
|
@@ -2,13 +2,13 @@ module MediaWiktory
|
|
2
2
|
class Protectedtitles < MWModule
|
3
3
|
symbol :protectedtitles
|
4
4
|
prefix "pt"
|
5
|
-
param :namespace, Params::List[Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]]
|
6
|
-
param :level, Params::List[Params::Enum[
|
5
|
+
param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]]
|
6
|
+
param :level, Params::List[Params::Enum[:autoconfirmed, :templateeditor, :sysop, :superprotect]]
|
7
7
|
param :limit, Params::IntegerOrMax
|
8
|
-
param :dir, Params::Enum[
|
8
|
+
param :dir, Params::Enum[:newer, :older]
|
9
9
|
param :start, Params::Timestamp
|
10
10
|
param :end, Params::Timestamp
|
11
|
-
param :prop, Params::List[Params::Enum[
|
11
|
+
param :prop, Params::List[Params::Enum[:timestamp, :user, :userid, :comment, :parsedcomment, :expiry, :level]]
|
12
12
|
param :continue, Params::String
|
13
13
|
end
|
14
14
|
end
|
@@ -2,7 +2,7 @@ module MediaWiktory
|
|
2
2
|
class Querypage < MWModule
|
3
3
|
symbol :querypage
|
4
4
|
prefix "qp"
|
5
|
-
param :page, Params::Enum[
|
5
|
+
param :page, Params::Enum[:Ancientpages, :BrokenRedirects, :Deadendpages, :DoubleRedirects, :ListDuplicatedFiles, :Listredirects, :Lonelypages, :Longpages, :MediaStatistics, :Mostcategories, :Mostimages, :Mostinterwikis, :Mostlinkedcategories, :Mostlinkedtemplates, :Mostlinked, :Mostrevisions, :Fewestrevisions, :Shortpages, :Uncategorizedcategories, :Uncategorizedpages, :Uncategorizedimages, :Uncategorizedtemplates, :Unusedcategories, :Unusedimages, :Wantedcategories, :Wantedfiles, :Wantedpages, :Wantedtemplates, :Unwatchedpages, :Unusedtemplates, :Withoutinterwiki, :DisambiguationPages, :DisambiguationPageLinks, :UnconnectedPages, :PagesWithBadges]
|
6
6
|
param :offset, Params::Integer
|
7
7
|
param :limit, Params::IntegerOrMax
|
8
8
|
end
|
@@ -2,8 +2,8 @@ module MediaWiktory
|
|
2
2
|
class Random < MWModule
|
3
3
|
symbol :random
|
4
4
|
prefix "rn"
|
5
|
-
param :namespace, Params::List[Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]]
|
6
|
-
param :filterredir, Params::Enum[
|
5
|
+
param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]]
|
6
|
+
param :filterredir, Params::Enum[:all, :redirects, :nonredirects]
|
7
7
|
param :redirect, Params::Boolean
|
8
8
|
param :limit, Params::IntegerOrMax
|
9
9
|
param :continue, Params::String
|
@@ -4,16 +4,16 @@ module MediaWiktory
|
|
4
4
|
prefix "rc"
|
5
5
|
param :start, Params::Timestamp
|
6
6
|
param :end, Params::Timestamp
|
7
|
-
param :dir, Params::Enum[
|
8
|
-
param :namespace, Params::List[Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]]
|
7
|
+
param :dir, Params::Enum[:newer, :older]
|
8
|
+
param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]]
|
9
9
|
param :user, Params::String
|
10
10
|
param :excludeuser, Params::String
|
11
11
|
param :tag, Params::String
|
12
|
-
param :prop, Params::List[Params::Enum[
|
13
|
-
param :token, Params::List[Params::Enum[
|
14
|
-
param :show, Params::List[Params::Enum[
|
12
|
+
param :prop, Params::List[Params::Enum[:user, :userid, :comment, :parsedcomment, :flags, :timestamp, :title, :ids, :sizes, :redirect, :patrolled, :loginfo, :tags, :sha1]]
|
13
|
+
param :token, Params::List[Params::Enum[:patrol]]
|
14
|
+
param :show, Params::List[Params::Enum[:minor, :"!minor", :bot, :"!bot", :anon, :"!anon", :redirect, :"!redirect", :patrolled, :"!patrolled", :unpatrolled]]
|
15
15
|
param :limit, Params::IntegerOrMax
|
16
|
-
param :type, Params::List[Params::Enum[
|
16
|
+
param :type, Params::List[Params::Enum[:edit, :external, :new, :log]]
|
17
17
|
param :toponly, Params::Boolean
|
18
18
|
param :continue, Params::String
|
19
19
|
end
|
@@ -2,9 +2,9 @@ module MediaWiktory
|
|
2
2
|
class Redirects < MWModule
|
3
3
|
symbol :redirects
|
4
4
|
prefix "rd"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
6
|
-
param :namespace, Params::List[Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]]
|
7
|
-
param :show, Params::List[Params::Enum[
|
5
|
+
param :prop, Params::List[Params::Enum[:pageid, :title, :fragment]]
|
6
|
+
param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]]
|
7
|
+
param :show, Params::List[Params::Enum[:fragment, :"!fragment"]]
|
8
8
|
param :limit, Params::IntegerOrMax
|
9
9
|
param :continue, Params::String
|
10
10
|
end
|
@@ -2,12 +2,12 @@ module MediaWiktory
|
|
2
2
|
class Revisiondelete < Action
|
3
3
|
symbol :revisiondelete
|
4
4
|
post!
|
5
|
-
param :type, Params::Enum[
|
5
|
+
param :type, Params::Enum[:revision, :archive, :oldimage, :filearchive, :logging]
|
6
6
|
param :target, Params::String
|
7
7
|
param :ids, Params::List[Params::String]
|
8
|
-
param :hide, Params::List[Params::Enum[
|
9
|
-
param :show, Params::List[Params::Enum[
|
10
|
-
param :suppress, Params::Enum[
|
8
|
+
param :hide, Params::List[Params::Enum[:content, :comment, :user]]
|
9
|
+
param :show, Params::List[Params::Enum[:content, :comment, :user]]
|
10
|
+
param :suppress, Params::Enum[:yes, :no, :nochange]
|
11
11
|
param :reason, Params::String
|
12
12
|
param :token, Params::String
|
13
13
|
end
|
@@ -2,7 +2,7 @@ module MediaWiktory
|
|
2
2
|
class Revisions < MWModule
|
3
3
|
symbol :revisions
|
4
4
|
prefix "rv"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
5
|
+
param :prop, Params::List[Params::Enum[:ids, :flags, :timestamp, :user, :userid, :size, :sha1, :contentmodel, :comment, :parsedcomment, :content, :tags, :parsetree, :flagged]]
|
6
6
|
param :limit, Params::IntegerOrMax
|
7
7
|
param :expandtemplates, Params::Boolean
|
8
8
|
param :generatexml, Params::Boolean
|
@@ -10,16 +10,16 @@ module MediaWiktory
|
|
10
10
|
param :section, Params::String
|
11
11
|
param :diffto, Params::String
|
12
12
|
param :difftotext, Params::String
|
13
|
-
param :contentformat, Params::Enum["application/json", "text/x-wiki", "text/javascript", "text/css", "text/plain"]
|
13
|
+
param :contentformat, Params::Enum[:"application/json", :"text/x-wiki", :"text/javascript", :"text/css", :"text/plain"]
|
14
14
|
param :startid, Params::Integer
|
15
15
|
param :endid, Params::Integer
|
16
16
|
param :start, Params::Timestamp
|
17
17
|
param :end, Params::Timestamp
|
18
|
-
param :dir, Params::Enum[
|
18
|
+
param :dir, Params::Enum[:newer, :older]
|
19
19
|
param :user, Params::String
|
20
20
|
param :excludeuser, Params::String
|
21
21
|
param :tag, Params::String
|
22
|
-
param :token, Params::List[Params::Enum[
|
22
|
+
param :token, Params::List[Params::Enum[:rollback]]
|
23
23
|
param :continue, Params::String
|
24
24
|
end
|
25
25
|
end
|
@@ -7,7 +7,7 @@ module MediaWiktory
|
|
7
7
|
param :user, Params::String
|
8
8
|
param :summary, Params::String
|
9
9
|
param :markbot, Params::Boolean
|
10
|
-
param :watchlist, Params::Enum[
|
10
|
+
param :watchlist, Params::Enum[:watch, :unwatch, :preferences, :nochange]
|
11
11
|
param :token, Params::String
|
12
12
|
end
|
13
13
|
end
|
@@ -3,10 +3,10 @@ module MediaWiktory
|
|
3
3
|
symbol :search
|
4
4
|
prefix "sr"
|
5
5
|
param :search, Params::String
|
6
|
-
param :namespace, Params::List[Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]]
|
7
|
-
param :what, Params::Enum[
|
8
|
-
param :info, Params::List[Params::Enum[
|
9
|
-
param :prop, Params::List[Params::Enum[
|
6
|
+
param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]]
|
7
|
+
param :what, Params::Enum[:title, :text, :nearmatch]
|
8
|
+
param :info, Params::List[Params::Enum[:totalhits, :suggestion, :rewrittenquery]]
|
9
|
+
param :prop, Params::List[Params::Enum[:size, :wordcount, :timestamp, :snippet, :titlesnippet, :redirecttitle, :redirectsnippet, :sectiontitle, :sectionsnippet, :isfilematch, :categorysnippet, :score, :hasrelated]]
|
10
10
|
param :offset, Params::Integer
|
11
11
|
param :limit, Params::IntegerOrMax
|
12
12
|
param :interwiki, Params::Boolean
|
@@ -3,8 +3,8 @@ module MediaWiktory
|
|
3
3
|
symbol :setglobalaccountstatus
|
4
4
|
post!
|
5
5
|
param :user, Params::String
|
6
|
-
param :locked, Params::Enum[
|
7
|
-
param :hidden, Params::Enum[
|
6
|
+
param :locked, Params::Enum[:lock, :unlock]
|
7
|
+
param :hidden, Params::Enum[:lists, :suppressed]
|
8
8
|
param :reason, Params::String
|
9
9
|
param :token, Params::String
|
10
10
|
param :statecheck, Params::String
|
@@ -2,8 +2,8 @@ module MediaWiktory
|
|
2
2
|
class Siteinfo < MWModule
|
3
3
|
symbol :siteinfo
|
4
4
|
prefix "si"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
6
|
-
param :filteriw, Params::Enum[
|
5
|
+
param :prop, Params::List[Params::Enum[:general, :namespaces, :namespacealiases, :specialpagealiases, :magicwords, :interwikimap, :dbrepllag, :statistics, :usergroups, :libraries, :extensions, :fileextensions, :rightsinfo, :restrictions, :languages, :skins, :extensiontags, :functionhooks, :showhooks, :variables, :protocols, :defaultoptions]]
|
6
|
+
param :filteriw, Params::Enum[:local, :"!local"]
|
7
7
|
param :showalldb, Params::Boolean
|
8
8
|
param :numberingroup, Params::Boolean
|
9
9
|
param :inlanguagecode, Params::String
|
@@ -2,10 +2,10 @@ module MediaWiktory
|
|
2
2
|
class Sitematrix < Action
|
3
3
|
symbol :sitematrix
|
4
4
|
prefix "sm"
|
5
|
-
param :type, Params::List[Params::Enum[
|
6
|
-
param :state, Params::List[Params::Enum[
|
7
|
-
param :langprop, Params::List[Params::Enum[
|
8
|
-
param :siteprop, Params::List[Params::Enum[
|
5
|
+
param :type, Params::List[Params::Enum[:special, :language]]
|
6
|
+
param :state, Params::List[Params::Enum[:closed, :private, :fishbowl]]
|
7
|
+
param :langprop, Params::List[Params::Enum[:code, :name, :site, :localname]]
|
8
|
+
param :siteprop, Params::List[Params::Enum[:url, :dbname, :code, :sitename]]
|
9
9
|
param :limit, Params::IntegerOrMax
|
10
10
|
param :continue, Params::String
|
11
11
|
end
|
@@ -2,7 +2,7 @@ module MediaWiktory
|
|
2
2
|
class Stabilize < Action
|
3
3
|
symbol :stabilize
|
4
4
|
post!
|
5
|
-
param :protectlevel, Params::Enum[
|
5
|
+
param :protectlevel, Params::Enum[:autoconfirmed, :review, :none]
|
6
6
|
param :expiry, Params::String
|
7
7
|
param :reason, Params::String
|
8
8
|
param :watch, Params::String
|
@@ -6,8 +6,8 @@ module MediaWiktory
|
|
6
6
|
param :section, Params::String
|
7
7
|
param :sectiontitle, Params::String
|
8
8
|
param :text, Params::String
|
9
|
-
param :contentmodel, Params::Enum[
|
10
|
-
param :contentformat, Params::Enum["application/json", "text/x-wiki", "text/javascript", "text/css", "text/plain"]
|
9
|
+
param :contentmodel, Params::Enum[:MassMessageListContent, :wikitext, :javascript, :json, :css, :text, :SecurePoll, :"flow-board", :Scribunto, :JsonSchema]
|
10
|
+
param :contentformat, Params::Enum[:"application/json", :"text/x-wiki", :"text/javascript", :"text/css", :"text/plain"]
|
11
11
|
param :baserevid, Params::Integer
|
12
12
|
param :token, Params::String
|
13
13
|
end
|
@@ -4,7 +4,7 @@ module MediaWiktory
|
|
4
4
|
prefix "sii"
|
5
5
|
param :filekey, Params::List[Params::String]
|
6
6
|
param :sessionkey, Params::List[Params::String]
|
7
|
-
param :prop, Params::List[Params::Enum[
|
7
|
+
param :prop, Params::List[Params::Enum[:timestamp, :canonicaltitle, :url, :size, :dimensions, :sha1, :mime, :thumbmime, :metadata, :commonmetadata, :extmetadata, :bitdepth]]
|
8
8
|
param :urlwidth, Params::Integer
|
9
9
|
param :urlheight, Params::Integer
|
10
10
|
param :urlparam, Params::String
|
@@ -2,7 +2,7 @@ module MediaWiktory
|
|
2
2
|
class Strikevote < Action
|
3
3
|
symbol :strikevote
|
4
4
|
post!
|
5
|
-
param :option, Params::Enum[
|
5
|
+
param :option, Params::Enum[:strike, :unstrike]
|
6
6
|
param :reason, Params::String
|
7
7
|
param :voteid, Params::Integer
|
8
8
|
param :token, Params::String
|
@@ -5,7 +5,7 @@ module MediaWiktory
|
|
5
5
|
param :rcid, Params::List[Params::Integer]
|
6
6
|
param :revid, Params::List[Params::Integer]
|
7
7
|
param :logid, Params::List[Params::Integer]
|
8
|
-
param :add, Params::List[Params::Enum[
|
8
|
+
param :add, Params::List[Params::Enum[:Huggle, :WPCleaner, :huggle]]
|
9
9
|
param :remove, Params::List[Params::String]
|
10
10
|
param :reason, Params::String
|
11
11
|
param :token, Params::String
|
@@ -4,6 +4,6 @@ module MediaWiktory
|
|
4
4
|
prefix "tg"
|
5
5
|
param :continue, Params::String
|
6
6
|
param :limit, Params::IntegerOrMax
|
7
|
-
param :prop, Params::List[Params::Enum[
|
7
|
+
param :prop, Params::List[Params::Enum[:name, :displayname, :description, :hitcount, :defined, :source, :active]]
|
8
8
|
end
|
9
9
|
end
|
@@ -7,7 +7,7 @@ module MediaWiktory
|
|
7
7
|
param :generator, Params::Module[:allcategories, :alldeletedrevisions, :allfileusages, :allimages, :alllinks, :allpages, :allredirects, :alltransclusions, :backlinks, :categories, :categorymembers, :contenttranslation, :contenttranslationsuggestions, :deletedrevisions, :duplicatefiles, :embeddedin, :exturlusage, :fileusage, :geosearch, :gettingstartedgetpages, :images, :imageusage, :iwbacklinks, :langbacklinks, :links, :linkshere, :listpages, :oldreviewedpages, :pageswithprop, :prefixsearch, :protectedtitles, :querypage, :random, :recentchanges, :redirects, :revisions, :search, :templates, :transcludedin, :watchlist, :watchlistraw]
|
8
8
|
param :redirects, Params::Boolean
|
9
9
|
param :converttitles, Params::Boolean
|
10
|
-
param :format, Params::Enum[
|
10
|
+
param :format, Params::Enum[:json, :jsonfm]
|
11
11
|
param :lang, Params::String
|
12
12
|
end
|
13
13
|
end
|
@@ -2,10 +2,10 @@ module MediaWiktory
|
|
2
2
|
class Templates < MWModule
|
3
3
|
symbol :templates
|
4
4
|
prefix "tl"
|
5
|
-
param :namespace, Params::List[Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]]
|
5
|
+
param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]]
|
6
6
|
param :limit, Params::IntegerOrMax
|
7
7
|
param :continue, Params::String
|
8
8
|
param :templates, Params::List[Params::String]
|
9
|
-
param :dir, Params::Enum[
|
9
|
+
param :dir, Params::Enum[:ascending, :descending]
|
10
10
|
end
|
11
11
|
end
|
@@ -3,7 +3,7 @@ module MediaWiktory
|
|
3
3
|
symbol :titleblacklist
|
4
4
|
prefix "tb"
|
5
5
|
param :title, Params::String
|
6
|
-
param :action, Params::Enum[
|
6
|
+
param :action, Params::Enum[:create, :edit, :upload, :createtalk, :createpage, :move, :"new-account"]
|
7
7
|
param :nooverride, Params::String
|
8
8
|
end
|
9
9
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module MediaWiktory
|
2
2
|
class Tokens < Action
|
3
3
|
symbol :tokens
|
4
|
-
param :type, Params::List[Params::Enum[
|
4
|
+
param :type, Params::List[Params::Enum[:block, :centralauth, :delete, :deleteglobalaccount, :edit, :email, :import, :move, :options, :patrol, :protect, :setglobalaccountstatus, :unblock, :watch]]
|
5
5
|
end
|
6
6
|
end
|
@@ -2,9 +2,9 @@ module MediaWiktory
|
|
2
2
|
class Transcludedin < MWModule
|
3
3
|
symbol :transcludedin
|
4
4
|
prefix "ti"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
6
|
-
param :namespace, Params::List[Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]]
|
7
|
-
param :show, Params::List[Params::Enum[
|
5
|
+
param :prop, Params::List[Params::Enum[:pageid, :title, :redirect]]
|
6
|
+
param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]]
|
7
|
+
param :show, Params::List[Params::Enum[:redirect, :"!redirect"]]
|
8
8
|
param :limit, Params::IntegerOrMax
|
9
9
|
param :continue, Params::String
|
10
10
|
end
|
@@ -6,7 +6,7 @@ module MediaWiktory
|
|
6
6
|
param :reason, Params::String
|
7
7
|
param :timestamps, Params::List[Params::Timestamp]
|
8
8
|
param :fileids, Params::List[Params::Integer]
|
9
|
-
param :watchlist, Params::Enum[
|
9
|
+
param :watchlist, Params::Enum[:watch, :unwatch, :preferences, :nochange]
|
10
10
|
param :token, Params::String
|
11
11
|
end
|
12
12
|
end
|
@@ -6,7 +6,7 @@ module MediaWiktory
|
|
6
6
|
param :comment, Params::String
|
7
7
|
param :text, Params::String
|
8
8
|
param :watch, Params::Boolean
|
9
|
-
param :watchlist, Params::Enum[
|
9
|
+
param :watchlist, Params::Enum[:watch, :preferences, :nochange]
|
10
10
|
param :ignorewarnings, Params::Boolean
|
11
11
|
param :file, Params::String
|
12
12
|
param :url, Params::String
|
@@ -8,10 +8,10 @@ module MediaWiktory
|
|
8
8
|
param :continue, Params::String
|
9
9
|
param :user, Params::List[Params::String]
|
10
10
|
param :userprefix, Params::String
|
11
|
-
param :dir, Params::Enum[
|
12
|
-
param :namespace, Params::List[Params::Enum["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "2300", "2301", "2302", "2303", "710", "711", "446", "447", "2600", "828", "829"]]
|
13
|
-
param :prop, Params::List[Params::Enum[
|
14
|
-
param :show, Params::List[Params::Enum[
|
11
|
+
param :dir, Params::Enum[:newer, :older]
|
12
|
+
param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"2300", :"2301", :"2302", :"2303", :"710", :"711", :"446", :"447", :"2600", :"828", :"829"]]
|
13
|
+
param :prop, Params::List[Params::Enum[:ids, :title, :timestamp, :comment, :parsedcomment, :size, :sizediff, :flags, :patrolled, :tags]]
|
14
|
+
param :show, Params::List[Params::Enum[:minor, :"!minor", :patrolled, :"!patrolled", :top, :"!top", :new, :"!new"]]
|
15
15
|
param :tag, Params::String
|
16
16
|
param :toponly, Params::Boolean
|
17
17
|
end
|