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
@@ -2,7 +2,7 @@ module MediaWiktory
|
|
2
2
|
class Gadgetcategories < MWModule
|
3
3
|
symbol :gadgetcategories
|
4
4
|
prefix "gc"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
5
|
+
param :prop, Params::List[Params::Enum[:name, :title, :members]]
|
6
6
|
param :names, Params::List[Params::String]
|
7
7
|
end
|
8
8
|
end
|
@@ -2,7 +2,7 @@ module MediaWiktory
|
|
2
2
|
class Gadgets < MWModule
|
3
3
|
symbol :gadgets
|
4
4
|
prefix "ga"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
5
|
+
param :prop, Params::List[Params::Enum[:id, :metadata, :desc]]
|
6
6
|
param :categories, Params::List[Params::String]
|
7
7
|
param :ids, Params::List[Params::String]
|
8
8
|
param :allowedonly, Params::Boolean
|
@@ -7,9 +7,9 @@ module MediaWiktory
|
|
7
7
|
param :radius, Params::Integer
|
8
8
|
param :maxdim, Params::Integer
|
9
9
|
param :limit, Params::IntegerOrMax
|
10
|
-
param :globe, Params::Enum[
|
11
|
-
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"]]
|
12
|
-
param :prop, Params::List[Params::Enum[
|
13
|
-
param :primary, Params::Enum[
|
10
|
+
param :globe, Params::Enum[:earth]
|
11
|
+
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"]]
|
12
|
+
param :prop, Params::List[Params::Enum[:type, :name, :dim, :country, :region, :globe]]
|
13
|
+
param :primary, Params::Enum[:primary, :secondary, :all]
|
14
14
|
end
|
15
15
|
end
|
@@ -5,10 +5,10 @@ module MediaWiktory
|
|
5
5
|
param :from, Params::String
|
6
6
|
param :to, Params::String
|
7
7
|
param :prefix, Params::String
|
8
|
-
param :dir, Params::Enum[
|
9
|
-
param :group, Params::List[Params::Enum["OTRS-member", "abusefilter-helper", "apihighlimits-requestor", "captcha-exempt", "delete-global",
|
10
|
-
param :excludegroup, Params::List[Params::Enum["OTRS-member", "abusefilter-helper", "apihighlimits-requestor", "captcha-exempt", "delete-global",
|
11
|
-
param :prop, Params::List[Params::Enum[
|
8
|
+
param :dir, Params::Enum[:ascending, :descending]
|
9
|
+
param :group, Params::List[Params::Enum[:"OTRS-member", :"abusefilter-helper", :"apihighlimits-requestor", :"captcha-exempt", :"delete-global", :founder, :"global-bot", :"global-flow-create", :"global-gather-admins", :"global-interface-editor", :"global-ipblock-exempt", :"global-rollbacker", :"global-sysop", :"new-wikis-importer", :ombudsman, :"recursive-export", :staff, :steward, :sysadmin, :"wmf-ops-monitoring", :"wmf-researcher"]]
|
10
|
+
param :excludegroup, Params::List[Params::Enum[:"OTRS-member", :"abusefilter-helper", :"apihighlimits-requestor", :"captcha-exempt", :"delete-global", :founder, :"global-bot", :"global-flow-create", :"global-gather-admins", :"global-interface-editor", :"global-ipblock-exempt", :"global-rollbacker", :"global-sysop", :"new-wikis-importer", :ombudsman, :"recursive-export", :staff, :steward, :sysadmin, :"wmf-ops-monitoring", :"wmf-researcher"]]
|
11
|
+
param :prop, Params::List[Params::Enum[:lockinfo, :groups, :existslocally]]
|
12
12
|
param :limit, Params::IntegerOrMax
|
13
13
|
end
|
14
14
|
end
|
@@ -4,11 +4,11 @@ module MediaWiktory
|
|
4
4
|
prefix "bg"
|
5
5
|
param :start, Params::Timestamp
|
6
6
|
param :end, Params::Timestamp
|
7
|
-
param :dir, Params::Enum[
|
7
|
+
param :dir, Params::Enum[:newer, :older]
|
8
8
|
param :ids, Params::List[Params::Integer]
|
9
9
|
param :addresses, Params::List[Params::String]
|
10
10
|
param :ip, Params::String
|
11
11
|
param :limit, Params::IntegerOrMax
|
12
|
-
param :prop, Params::List[Params::Enum[
|
12
|
+
param :prop, Params::List[Params::Enum[:id, :address, :by, :timestamp, :expiry, :reason, :range]]
|
13
13
|
end
|
14
14
|
end
|
@@ -2,7 +2,7 @@ module MediaWiktory
|
|
2
2
|
class Globalusage < MWModule
|
3
3
|
symbol :globalusage
|
4
4
|
prefix "gu"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
5
|
+
param :prop, Params::List[Params::Enum[:url, :pageid, :namespace]]
|
6
6
|
param :limit, Params::IntegerOrMax
|
7
7
|
param :continue, Params::String
|
8
8
|
param :filterlocal, Params::Boolean
|
@@ -3,6 +3,6 @@ module MediaWiktory
|
|
3
3
|
symbol :globaluserinfo
|
4
4
|
prefix "gui"
|
5
5
|
param :user, Params::String
|
6
|
-
param :prop, Params::List[Params::Enum[
|
6
|
+
param :prop, Params::List[Params::Enum[:groups, :rights, :merged, :unattached, :editcount]]
|
7
7
|
end
|
8
8
|
end
|
@@ -4,8 +4,8 @@ module MediaWiktory
|
|
4
4
|
post!
|
5
5
|
param :user, Params::String
|
6
6
|
param :userid, Params::Integer
|
7
|
-
param :add, Params::List[Params::Enum["OTRS-member", "abusefilter-helper", "apihighlimits-requestor", "captcha-exempt", "delete-global",
|
8
|
-
param :remove, Params::List[Params::Enum["OTRS-member", "abusefilter-helper", "apihighlimits-requestor", "captcha-exempt", "delete-global",
|
7
|
+
param :add, Params::List[Params::Enum[:"OTRS-member", :"abusefilter-helper", :"apihighlimits-requestor", :"captcha-exempt", :"delete-global", :founder, :"global-bot", :"global-flow-create", :"global-gather-admins", :"global-interface-editor", :"global-ipblock-exempt", :"global-rollbacker", :"global-sysop", :"new-wikis-importer", :ombudsman, :"recursive-export", :staff, :steward, :sysadmin, :"wmf-ops-monitoring", :"wmf-researcher"]]
|
8
|
+
param :remove, Params::List[Params::Enum[:"OTRS-member", :"abusefilter-helper", :"apihighlimits-requestor", :"captcha-exempt", :"delete-global", :founder, :"global-bot", :"global-flow-create", :"global-gather-admins", :"global-interface-editor", :"global-ipblock-exempt", :"global-rollbacker", :"global-sysop", :"new-wikis-importer", :ombudsman, :"recursive-export", :staff, :steward, :sysadmin, :"wmf-ops-monitoring", :"wmf-researcher"]]
|
9
9
|
param :reason, Params::String
|
10
10
|
param :token, Params::String
|
11
11
|
end
|
@@ -2,7 +2,7 @@ module MediaWiktory
|
|
2
2
|
class Imageinfo < MWModule
|
3
3
|
symbol :imageinfo
|
4
4
|
prefix "ii"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
5
|
+
param :prop, Params::List[Params::Enum[:timestamp, :user, :userid, :comment, :parsedcomment, :canonicaltitle, :url, :size, :dimensions, :sha1, :mime, :thumbmime, :mediatype, :metadata, :commonmetadata, :extmetadata, :archivename, :bitdepth, :uploadwarning]]
|
6
6
|
param :limit, Params::IntegerOrMax
|
7
7
|
param :start, Params::Timestamp
|
8
8
|
param :end, Params::Timestamp
|
@@ -5,9 +5,9 @@ module MediaWiktory
|
|
5
5
|
param :title, Params::String
|
6
6
|
param :pageid, Params::Integer
|
7
7
|
param :continue, Params::String
|
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
|
-
param :dir, Params::Enum[
|
10
|
-
param :filterredir, 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"]]
|
9
|
+
param :dir, Params::Enum[:ascending, :descending]
|
10
|
+
param :filterredir, Params::Enum[:all, :redirects, :nonredirects]
|
11
11
|
param :limit, Params::IntegerOrMax
|
12
12
|
param :redirect, Params::Boolean
|
13
13
|
end
|
@@ -4,11 +4,11 @@ module MediaWiktory
|
|
4
4
|
post!
|
5
5
|
param :summary, Params::String
|
6
6
|
param :xml, Params::String
|
7
|
-
param :interwikisource, Params::Enum[
|
7
|
+
param :interwikisource, Params::Enum[:meta, :nost, :de, :es, :fr, :it, :pl, :outreachwiki, :test2wiki]
|
8
8
|
param :interwikipage, Params::String
|
9
9
|
param :fullhistory, Params::Boolean
|
10
10
|
param :templates, Params::Boolean
|
11
|
-
param :namespace, 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"]
|
11
|
+
param :namespace, 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"]
|
12
12
|
param :rootpage, Params::String
|
13
13
|
param :token, Params::String
|
14
14
|
end
|
@@ -2,9 +2,9 @@ module MediaWiktory
|
|
2
2
|
class Info < MWModule
|
3
3
|
symbol :info
|
4
4
|
prefix "in"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
5
|
+
param :prop, Params::List[Params::Enum[:protection, :talkid, :watched, :watchers, :notificationtimestamp, :subjectid, :url, :readable, :preload, :displaytitle]]
|
6
6
|
param :testactions, Params::List[Params::String]
|
7
|
-
param :token, Params::List[Params::Enum[
|
7
|
+
param :token, Params::List[Params::Enum[:edit, :delete, :protect, :move, :block, :unblock, :email, :import, :watch]]
|
8
8
|
param :continue, Params::String
|
9
9
|
end
|
10
10
|
end
|
@@ -6,7 +6,7 @@ module MediaWiktory
|
|
6
6
|
param :title, Params::String
|
7
7
|
param :continue, Params::String
|
8
8
|
param :limit, Params::IntegerOrMax
|
9
|
-
param :prop, Params::List[Params::Enum[
|
10
|
-
param :dir, Params::Enum[
|
9
|
+
param :prop, Params::List[Params::Enum[:iwprefix, :iwtitle]]
|
10
|
+
param :dir, Params::Enum[:ascending, :descending]
|
11
11
|
end
|
12
12
|
end
|
@@ -2,10 +2,10 @@ module MediaWiktory
|
|
2
2
|
class Iwlinks < MWModule
|
3
3
|
symbol :iwlinks
|
4
4
|
prefix "iw"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
5
|
+
param :prop, Params::List[Params::Enum[:url]]
|
6
6
|
param :prefix, Params::String
|
7
7
|
param :title, Params::String
|
8
|
-
param :dir, Params::Enum[
|
8
|
+
param :dir, Params::Enum[:ascending, :descending]
|
9
9
|
param :limit, Params::IntegerOrMax
|
10
10
|
param :continue, Params::String
|
11
11
|
param :url, Params::Boolean
|
@@ -6,7 +6,7 @@ module MediaWiktory
|
|
6
6
|
param :title, Params::String
|
7
7
|
param :continue, Params::String
|
8
8
|
param :limit, Params::IntegerOrMax
|
9
|
-
param :prop, Params::List[Params::Enum[
|
10
|
-
param :dir, Params::Enum[
|
9
|
+
param :prop, Params::List[Params::Enum[:lllang, :lltitle]]
|
10
|
+
param :dir, Params::Enum[:ascending, :descending]
|
11
11
|
end
|
12
12
|
end
|
@@ -2,10 +2,10 @@ module MediaWiktory
|
|
2
2
|
class Langlinks < MWModule
|
3
3
|
symbol :langlinks
|
4
4
|
prefix "ll"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
5
|
+
param :prop, Params::List[Params::Enum[:url, :langname, :autonym]]
|
6
6
|
param :lang, Params::String
|
7
7
|
param :title, Params::String
|
8
|
-
param :dir, Params::Enum[
|
8
|
+
param :dir, Params::Enum[:ascending, :descending]
|
9
9
|
param :inlanguagecode, Params::String
|
10
10
|
param :limit, Params::IntegerOrMax
|
11
11
|
param :continue, Params::String
|
@@ -2,10 +2,10 @@ module MediaWiktory
|
|
2
2
|
class Links < MWModule
|
3
3
|
symbol :links
|
4
4
|
prefix "pl"
|
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 :titles, Params::List[Params::String]
|
9
|
-
param :dir, Params::Enum[
|
9
|
+
param :dir, Params::Enum[:ascending, :descending]
|
10
10
|
end
|
11
11
|
end
|
@@ -2,9 +2,9 @@ module MediaWiktory
|
|
2
2
|
class Linkshere < MWModule
|
3
3
|
symbol :linkshere
|
4
4
|
prefix "lh"
|
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,9 +6,9 @@ module MediaWiktory
|
|
6
6
|
param :owner, Params::String
|
7
7
|
param :token, Params::String
|
8
8
|
param :continue, Params::String
|
9
|
-
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"]]
|
10
|
-
param :sort, Params::Enum[
|
11
|
-
param :dir, Params::Enum[
|
9
|
+
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"]]
|
10
|
+
param :sort, Params::Enum[:position, :namespace]
|
11
|
+
param :dir, Params::Enum[:ascending, :descending]
|
12
12
|
param :limit, Params::IntegerOrMax
|
13
13
|
end
|
14
14
|
end
|
@@ -2,8 +2,8 @@ module MediaWiktory
|
|
2
2
|
class Lists < MWModule
|
3
3
|
symbol :lists
|
4
4
|
prefix "lst"
|
5
|
-
param :mode, Params::Enum[
|
6
|
-
param :prop, Params::List[Params::Enum[
|
5
|
+
param :mode, Params::Enum[:allpublic, :allhidden, :review]
|
6
|
+
param :prop, Params::List[Params::Enum[:label, :description, :public, :perm, :perm_override, :flagged, :hidden, :review, :image, :count, :updated, :owner]]
|
7
7
|
param :minitems, Params::Integer
|
8
8
|
param :ids, Params::List[Params::Integer]
|
9
9
|
param :title, Params::String
|
@@ -2,7 +2,7 @@ module MediaWiktory
|
|
2
2
|
class Liststudents < Action
|
3
3
|
symbol :liststudents
|
4
4
|
param :courseids, Params::List[Params::Integer]
|
5
|
-
param :prop, Params::Enum[
|
5
|
+
param :prop, Params::Enum[:username, :id]
|
6
6
|
param :group, Params::Boolean
|
7
7
|
param :csv, Params::Boolean
|
8
8
|
end
|
@@ -3,7 +3,7 @@ module MediaWiktory
|
|
3
3
|
symbol :"lock-topic"
|
4
4
|
prefix "cot"
|
5
5
|
post!
|
6
|
-
param :moderationState, Params::Enum[
|
6
|
+
param :moderationState, Params::Enum[:lock, :unlock, :close, :reopen]
|
7
7
|
param :reason, Params::String
|
8
8
|
param :token, Params::String
|
9
9
|
end
|
@@ -2,15 +2,15 @@ module MediaWiktory
|
|
2
2
|
class Logevents < MWModule
|
3
3
|
symbol :logevents
|
4
4
|
prefix "le"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
6
|
-
param :type, Params::Enum[
|
7
|
-
param :action, Params::Enum["usermerge/mergeuser", "usermerge/deleteuser", "review/approve", "review/approve2", "review/approve-i", "review/approve2-i", "review/approve-a", "review/approve2-a", "review/approve-ia", "review/approve2-ia", "review/unapprove", "review/unapprove2", "rights/erevoke", "gblblock/gblock", "gblblock/gblock2", "gblblock/gunblock", "gblblock/whitelist", "gblblock/dwhitelist", "gblblock/modify", "globalauth/delete", "globalauth/lock", "globalauth/unlock", "globalauth/hide", "globalauth/unhide", "globalauth/lockandhid", "globalauth/setstatus", "suppress/setstatus", "suppress/cadelete", "gblrights/usergroups", "gblrights/groupperms", "gblrights/groupprms2", "gblrights/groupprms3", "suppress/hide-afl", "suppress/unhide-afl", "spamblacklist/*", "titleblacklist/*", "renameuser/renameuser", "massmessage/*", "massmessage/send", "massmessage/failure", "massmessage/skipoptout", "massmessage/skipnouser", "massmessage/skipbadns", "gather/action", "block/block", "block/reblock", "block/unblock", "contentmodel/change", "delete/delete", "delete/event", "delete/restore", "delete/revision", "import/interwiki", "import/upload", "managetags/activate", "managetags/create", "managetags/deactivate", "managetags/delete", "merge/merge", "move/move", "move/move_redir", "patrol/patrol", "protect/modify", "protect/move_prot", "protect/protect", "protect/unprotect", "rights/autopromote", "rights/rights", "suppress/block", "suppress/delete", "suppress/event", "suppress/reblock", "suppress/revision", "tag/update", "upload/overwrite", "upload/revert", "upload/upload", "stable/config", "stable/modify", "stable/reset", "gblrights/grouprename", "gblrename/rename", "gblrename/promote", "gblrename/merge", "gblrights/newset", "gblrights/setrename", "gblrights/setnewtype", "gblrights/setchange", "gblrights/deleteset", "abusefilter/modify", "abusefilter/hit", "pagetriage-curation/reviewed", "pagetriage-curation/unreviewed", "pagetriage-curation/tag", "pagetriage-curation/delete", "pagetriage-deletion/delete", "institution/*", "course/*", "student/*", "student/add", "student/remove", "online/*", "online/add", "online/remove", "campus/*", "campus/add", "campus/remove", "instructor/*", "instructor/add", "instructor/remove", "eparticle/*", "thanks/*", "delete/flow-delete-post", "delete/flow-delete-topic", "suppress/flow-suppress-post", "suppress/flow-suppress-topic", "lock/flow-lock-topic", "delete/flow-restore-post", "suppress/flow-restore-post", "delete/flow-restore-topic", "suppress/flow-restore-topic", "import/lqt-to-flow-topic", "newusers/newusers", "newusers/create", "newusers/create2", "newusers/byemail", "newusers/autocreate"]
|
5
|
+
param :prop, Params::List[Params::Enum[:ids, :title, :type, :user, :userid, :timestamp, :comment, :parsedcomment, :details, :tags]]
|
6
|
+
param :type, Params::Enum[:spamblacklist, :titleblacklist, :renameuser, :massmessage, :usermerge, :block, :protect, :rights, :delete, :upload, :move, :import, :patrol, :merge, :suppress, :tag, :managetags, :contentmodel, :review, :stable, :gblblock, :globalauth, :gblrights, :gblrename, :abusefilter, :"pagetriage-curation", :"pagetriage-deletion", :institution, :course, :student, :online, :campus, :instructor, :thanks, :newusers]
|
7
|
+
param :action, Params::Enum[:"usermerge/mergeuser", :"usermerge/deleteuser", :"review/approve", :"review/approve2", :"review/approve-i", :"review/approve2-i", :"review/approve-a", :"review/approve2-a", :"review/approve-ia", :"review/approve2-ia", :"review/unapprove", :"review/unapprove2", :"rights/erevoke", :"gblblock/gblock", :"gblblock/gblock2", :"gblblock/gunblock", :"gblblock/whitelist", :"gblblock/dwhitelist", :"gblblock/modify", :"globalauth/delete", :"globalauth/lock", :"globalauth/unlock", :"globalauth/hide", :"globalauth/unhide", :"globalauth/lockandhid", :"globalauth/setstatus", :"suppress/setstatus", :"suppress/cadelete", :"gblrights/usergroups", :"gblrights/groupperms", :"gblrights/groupprms2", :"gblrights/groupprms3", :"suppress/hide-afl", :"suppress/unhide-afl", :"spamblacklist/*", :"titleblacklist/*", :"renameuser/renameuser", :"massmessage/*", :"massmessage/send", :"massmessage/failure", :"massmessage/skipoptout", :"massmessage/skipnouser", :"massmessage/skipbadns", :"gather/action", :"block/block", :"block/reblock", :"block/unblock", :"contentmodel/change", :"delete/delete", :"delete/event", :"delete/restore", :"delete/revision", :"import/interwiki", :"import/upload", :"managetags/activate", :"managetags/create", :"managetags/deactivate", :"managetags/delete", :"merge/merge", :"move/move", :"move/move_redir", :"patrol/patrol", :"protect/modify", :"protect/move_prot", :"protect/protect", :"protect/unprotect", :"rights/autopromote", :"rights/rights", :"suppress/block", :"suppress/delete", :"suppress/event", :"suppress/reblock", :"suppress/revision", :"tag/update", :"upload/overwrite", :"upload/revert", :"upload/upload", :"stable/config", :"stable/modify", :"stable/reset", :"gblrights/grouprename", :"gblrename/rename", :"gblrename/promote", :"gblrename/merge", :"gblrights/newset", :"gblrights/setrename", :"gblrights/setnewtype", :"gblrights/setchange", :"gblrights/deleteset", :"abusefilter/modify", :"abusefilter/hit", :"pagetriage-curation/reviewed", :"pagetriage-curation/unreviewed", :"pagetriage-curation/tag", :"pagetriage-curation/delete", :"pagetriage-deletion/delete", :"institution/*", :"course/*", :"student/*", :"student/add", :"student/remove", :"online/*", :"online/add", :"online/remove", :"campus/*", :"campus/add", :"campus/remove", :"instructor/*", :"instructor/add", :"instructor/remove", :"eparticle/*", :"thanks/*", :"delete/flow-delete-post", :"delete/flow-delete-topic", :"suppress/flow-suppress-post", :"suppress/flow-suppress-topic", :"lock/flow-lock-topic", :"delete/flow-restore-post", :"suppress/flow-restore-post", :"delete/flow-restore-topic", :"suppress/flow-restore-topic", :"import/lqt-to-flow-topic", :"newusers/newusers", :"newusers/create", :"newusers/create2", :"newusers/byemail", :"newusers/autocreate"]
|
8
8
|
param :start, Params::Timestamp
|
9
9
|
param :end, Params::Timestamp
|
10
|
-
param :dir, Params::Enum[
|
10
|
+
param :dir, Params::Enum[:newer, :older]
|
11
11
|
param :user, Params::String
|
12
12
|
param :title, Params::String
|
13
|
-
param :namespace, 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 :namespace, 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"]
|
14
14
|
param :prefix, Params::String
|
15
15
|
param :tag, Params::String
|
16
16
|
param :limit, Params::IntegerOrMax
|
@@ -2,7 +2,7 @@ module MediaWiktory
|
|
2
2
|
class Managetags < Action
|
3
3
|
symbol :managetags
|
4
4
|
post!
|
5
|
-
param :operation, Params::Enum[
|
5
|
+
param :operation, Params::Enum[:create, :delete, :activate, :deactivate]
|
6
6
|
param :tag, Params::String
|
7
7
|
param :reason, Params::String
|
8
8
|
param :ignorewarnings, Params::Boolean
|
@@ -2,10 +2,10 @@ module MediaWiktory
|
|
2
2
|
class Mobileview < Action
|
3
3
|
symbol :mobileview
|
4
4
|
param :page, Params::String
|
5
|
-
param :redirect, Params::Enum[
|
5
|
+
param :redirect, Params::Enum[:yes, :no]
|
6
6
|
param :sections, Params::String
|
7
|
-
param :prop, Params::List[Params::Enum[
|
8
|
-
param :sectionprop, Params::List[Params::Enum[
|
7
|
+
param :prop, Params::List[Params::Enum[:text, :sections, :normalizedtitle, :lastmodified, :lastmodifiedby, :revision, :protection, :editable, :languagecount, :hasvariants, :displaytitle, :pageprops]]
|
8
|
+
param :sectionprop, Params::List[Params::Enum[:toclevel, :level, :line, :number, :index, :fromtitle, :anchor]]
|
9
9
|
param :pageprops, Params::String
|
10
10
|
param :variant, Params::String
|
11
11
|
param :noimages, Params::Boolean
|
@@ -3,7 +3,7 @@ module MediaWiktory
|
|
3
3
|
symbol :"moderate-post"
|
4
4
|
prefix "mp"
|
5
5
|
post!
|
6
|
-
param :moderationState, Params::Enum[
|
6
|
+
param :moderationState, Params::Enum[:delete, :hide, :suppress, :restore, :unhide, :undelete, :unsuppress]
|
7
7
|
param :reason, Params::String
|
8
8
|
param :postId, Params::String
|
9
9
|
param :token, Params::String
|
@@ -3,7 +3,7 @@ module MediaWiktory
|
|
3
3
|
symbol :"moderate-topic"
|
4
4
|
prefix "mt"
|
5
5
|
post!
|
6
|
-
param :moderationState, Params::Enum[
|
6
|
+
param :moderationState, Params::Enum[:delete, :hide, :suppress, :restore, :unhide, :undelete, :unsuppress]
|
7
7
|
param :reason, Params::String
|
8
8
|
param :token, Params::String
|
9
9
|
end
|
@@ -11,7 +11,7 @@ module MediaWiktory
|
|
11
11
|
param :noredirect, Params::Boolean
|
12
12
|
param :watch, Params::Boolean
|
13
13
|
param :unwatch, Params::Boolean
|
14
|
-
param :watchlist, Params::Enum[
|
14
|
+
param :watchlist, Params::Enum[:watch, :unwatch, :preferences, :nochange]
|
15
15
|
param :ignorewarnings, Params::Boolean
|
16
16
|
param :token, Params::String
|
17
17
|
end
|
@@ -2,10 +2,10 @@ module MediaWiktory
|
|
2
2
|
class Notifications < MWModule
|
3
3
|
symbol :notifications
|
4
4
|
prefix "not"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
6
|
-
param :sections, Params::List[Params::Enum[
|
5
|
+
param :prop, Params::List[Params::Enum[:list, :count, :index]]
|
6
|
+
param :sections, Params::List[Params::Enum[:alert, :message]]
|
7
7
|
param :groupbysection, Params::Boolean
|
8
|
-
param :format, Params::Enum[
|
8
|
+
param :format, Params::Enum[:text, :flyout, :html]
|
9
9
|
param :limit, Params::IntegerOrMax
|
10
10
|
param :index, Params::Boolean
|
11
11
|
param :continue, Params::String
|
@@ -4,12 +4,12 @@ module MediaWiktory
|
|
4
4
|
prefix "or"
|
5
5
|
param :start, Params::Timestamp
|
6
6
|
param :end, Params::Timestamp
|
7
|
-
param :dir, Params::Enum[
|
7
|
+
param :dir, Params::Enum[:newer, :older]
|
8
8
|
param :maxsize, Params::Integer
|
9
|
-
param :filterwatched, Params::Enum[
|
10
|
-
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
|
+
param :filterwatched, Params::Enum[:watched, :all]
|
10
|
+
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"]]
|
11
11
|
param :category, Params::String
|
12
|
-
param :filterredir, Params::Enum[
|
12
|
+
param :filterredir, Params::Enum[:redirects, :nonredirects, :all]
|
13
13
|
param :limit, Params::IntegerOrMax
|
14
14
|
end
|
15
15
|
end
|
@@ -3,10 +3,10 @@ module MediaWiktory
|
|
3
3
|
symbol :opensearch
|
4
4
|
param :search, Params::String
|
5
5
|
param :limit, Params::IntegerOrMax
|
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 :suggest, Params::Boolean
|
8
|
-
param :redirects, Params::Enum[
|
9
|
-
param :format, Params::Enum[
|
8
|
+
param :redirects, Params::Enum[:return, :resolve]
|
9
|
+
param :format, Params::Enum[:json, :jsonfm, :xml, :xmlfm]
|
10
10
|
param :warningsaserror, Params::Boolean
|
11
11
|
end
|
12
12
|
end
|
@@ -3,7 +3,7 @@ module MediaWiktory
|
|
3
3
|
symbol :options
|
4
4
|
post!
|
5
5
|
param :reset, Params::Boolean
|
6
|
-
param :resetkinds, Params::List[Params::Enum[
|
6
|
+
param :resetkinds, Params::List[Params::Enum[:registered, :"registered-multiselect", :"registered-checkmatrix", :userjs, :special, :unused, :all]]
|
7
7
|
param :change, Params::List[Params::String]
|
8
8
|
param :optionname, Params::String
|
9
9
|
param :optionvalue, Params::String
|
@@ -2,7 +2,7 @@ module MediaWiktory
|
|
2
2
|
class Pageimages < MWModule
|
3
3
|
symbol :pageimages
|
4
4
|
prefix "pi"
|
5
|
-
param :prop, Params::List[Params::Enum[
|
5
|
+
param :prop, Params::List[Params::Enum[:thumbnail, :name]]
|
6
6
|
param :thumbsize, Params::Integer
|
7
7
|
param :limit, Params::IntegerOrMax
|
8
8
|
param :continue, Params::Integer
|