mediawiktory 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +63 -0
- data/README.md +103 -0
- data/bin/mediawiktory +13 -0
- data/doc/mediawiki_api_types.md +14 -0
- data/examples/query.rb +15 -0
- data/examples/query_generator.rb +15 -0
- data/lib/faraday/naive_cache.rb +40 -0
- data/lib/media_wiktory.rb +1 -0
- data/lib/mediawiktory/action.rb +48 -0
- data/lib/mediawiktory/array_with_keys.rb +41 -0
- data/lib/mediawiktory/client.rb +22 -0
- data/lib/mediawiktory/generated/abusefiltercheckmatch.rb +9 -0
- data/lib/mediawiktory/generated/abusefilterchecksyntax.rb +6 -0
- data/lib/mediawiktory/generated/abusefilterevalexpression.rb +6 -0
- data/lib/mediawiktory/generated/abusefilters.rb +12 -0
- data/lib/mediawiktory/generated/abusefilterunblockautopromote.rb +8 -0
- data/lib/mediawiktory/generated/abuselog.rb +14 -0
- data/lib/mediawiktory/generated/actions_mixin.rb +313 -0
- data/lib/mediawiktory/generated/addstudents.rb +9 -0
- data/lib/mediawiktory/generated/allcategories.rb +15 -0
- data/lib/mediawiktory/generated/alldeletedrevisions.rb +27 -0
- data/lib/mediawiktory/generated/allfileusages.rb +14 -0
- data/lib/mediawiktory/generated/allimages.rb +23 -0
- data/lib/mediawiktory/generated/alllinks.rb +15 -0
- data/lib/mediawiktory/generated/allmessages.rb +19 -0
- data/lib/mediawiktory/generated/allpages.rb +21 -0
- data/lib/mediawiktory/generated/allredirects.rb +15 -0
- data/lib/mediawiktory/generated/alltransclusions.rb +15 -0
- data/lib/mediawiktory/generated/allusers.rb +17 -0
- data/lib/mediawiktory/generated/antispoof.rb +6 -0
- data/lib/mediawiktory/generated/backlinks.rb +14 -0
- data/lib/mediawiktory/generated/betafeatures.rb +7 -0
- data/lib/mediawiktory/generated/block.rb +18 -0
- data/lib/mediawiktory/generated/blocks.rb +16 -0
- data/lib/mediawiktory/generated/bouncehandler.rb +7 -0
- data/lib/mediawiktory/generated/categories.rb +12 -0
- data/lib/mediawiktory/generated/categoryinfo.rb +7 -0
- data/lib/mediawiktory/generated/categorymembers.rb +23 -0
- data/lib/mediawiktory/generated/centralauthtoken.rb +5 -0
- data/lib/mediawiktory/generated/centralnoticechoicedata.rb +7 -0
- data/lib/mediawiktory/generated/centralnoticelogs.rb +11 -0
- data/lib/mediawiktory/generated/centralnoticequerycampaign.rb +6 -0
- data/lib/mediawiktory/generated/checktoken.rb +8 -0
- data/lib/mediawiktory/generated/checkuser.rb +14 -0
- data/lib/mediawiktory/generated/checkuserlog.rb +13 -0
- data/lib/mediawiktory/generated/cirrus-config-dump.rb +5 -0
- data/lib/mediawiktory/generated/cirrus-mapping-dump.rb +5 -0
- data/lib/mediawiktory/generated/cirrus-settings-dump.rb +5 -0
- data/lib/mediawiktory/generated/cirrus-suggest.rb +8 -0
- data/lib/mediawiktory/generated/clearhasmsg.rb +5 -0
- data/lib/mediawiktory/generated/close-open-topic.rb +10 -0
- data/lib/mediawiktory/generated/compare.rb +11 -0
- data/lib/mediawiktory/generated/contenttranslation.rb +12 -0
- data/lib/mediawiktory/generated/contenttranslationlangtrend.rb +8 -0
- data/lib/mediawiktory/generated/contenttranslationstats.rb +5 -0
- data/lib/mediawiktory/generated/contenttranslationsuggestions.rb +10 -0
- data/lib/mediawiktory/generated/contributors.rb +12 -0
- data/lib/mediawiktory/generated/coordinates.rb +12 -0
- data/lib/mediawiktory/generated/createaccount.rb +18 -0
- data/lib/mediawiktory/generated/cxconfiguration.rb +7 -0
- data/lib/mediawiktory/generated/cxdelete.rb +10 -0
- data/lib/mediawiktory/generated/cxpublish.rb +18 -0
- data/lib/mediawiktory/generated/cxpublishedtranslations.rb +9 -0
- data/lib/mediawiktory/generated/cxtoken.rb +7 -0
- data/lib/mediawiktory/generated/delete.rb +14 -0
- data/lib/mediawiktory/generated/deletedrevisions.rb +22 -0
- data/lib/mediawiktory/generated/deletedrevs.rb +20 -0
- data/lib/mediawiktory/generated/deleteeducation.rb +10 -0
- data/lib/mediawiktory/generated/deleteglobalaccount.rb +9 -0
- data/lib/mediawiktory/generated/duplicatefiles.rb +10 -0
- data/lib/mediawiktory/generated/echomarkread.rb +10 -0
- data/lib/mediawiktory/generated/echomarkseen.rb +8 -0
- data/lib/mediawiktory/generated/edit-header.rb +11 -0
- data/lib/mediawiktory/generated/edit-post.rb +12 -0
- data/lib/mediawiktory/generated/edit-title.rb +10 -0
- data/lib/mediawiktory/generated/edit-topic-summary.rb +11 -0
- data/lib/mediawiktory/generated/edit.rb +35 -0
- data/lib/mediawiktory/generated/editlist.rb +20 -0
- data/lib/mediawiktory/generated/editmassmessagelist.rb +10 -0
- data/lib/mediawiktory/generated/emailuser.rb +11 -0
- data/lib/mediawiktory/generated/embeddedin.rb +13 -0
- data/lib/mediawiktory/generated/enlist.rb +13 -0
- data/lib/mediawiktory/generated/expandtemplates.rb +11 -0
- data/lib/mediawiktory/generated/extlinks.rb +11 -0
- data/lib/mediawiktory/generated/extracts.rb +14 -0
- data/lib/mediawiktory/generated/exturlusage.rb +13 -0
- data/lib/mediawiktory/generated/fancycaptchareload.rb +5 -0
- data/lib/mediawiktory/generated/featuredfeed.rb +8 -0
- data/lib/mediawiktory/generated/featureusage.rb +10 -0
- data/lib/mediawiktory/generated/feedcontributions.rb +15 -0
- data/lib/mediawiktory/generated/feedrecentchanges.rb +21 -0
- data/lib/mediawiktory/generated/feedwatchlist.rb +14 -0
- data/lib/mediawiktory/generated/filearchive.rb +15 -0
- data/lib/mediawiktory/generated/filerepoinfo.rb +7 -0
- data/lib/mediawiktory/generated/filerevert.rb +10 -0
- data/lib/mediawiktory/generated/fileusage.rb +11 -0
- data/lib/mediawiktory/generated/flagconfig.rb +5 -0
- data/lib/mediawiktory/generated/flagged.rb +5 -0
- data/lib/mediawiktory/generated/flow-parsoid-utils.rb +10 -0
- data/lib/mediawiktory/generated/flow.rb +8 -0
- data/lib/mediawiktory/generated/flowinfo.rb +6 -0
- data/lib/mediawiktory/generated/flowthank.rb +8 -0
- data/lib/mediawiktory/generated/gadgetcategories.rb +8 -0
- data/lib/mediawiktory/generated/gadgets.rb +11 -0
- data/lib/mediawiktory/generated/geosearch.rb +15 -0
- data/lib/mediawiktory/generated/gettingstartedgetpages.rb +9 -0
- data/lib/mediawiktory/generated/globalallusers.rb +14 -0
- data/lib/mediawiktory/generated/globalblock.rb +12 -0
- data/lib/mediawiktory/generated/globalblocks.rb +14 -0
- data/lib/mediawiktory/generated/globalgroups.rb +7 -0
- data/lib/mediawiktory/generated/globalusage.rb +10 -0
- data/lib/mediawiktory/generated/globaluserinfo.rb +8 -0
- data/lib/mediawiktory/generated/globaluserrights.rb +12 -0
- data/lib/mediawiktory/generated/help.rb +10 -0
- data/lib/mediawiktory/generated/imageinfo.rb +19 -0
- data/lib/mediawiktory/generated/imagerotate.rb +5 -0
- data/lib/mediawiktory/generated/images.rb +10 -0
- data/lib/mediawiktory/generated/imageusage.rb +14 -0
- data/lib/mediawiktory/generated/import.rb +15 -0
- data/lib/mediawiktory/generated/info.rb +10 -0
- data/lib/mediawiktory/generated/iwbacklinks.rb +12 -0
- data/lib/mediawiktory/generated/iwlinks.rb +13 -0
- data/lib/mediawiktory/generated/jsonconfig.rb +8 -0
- data/lib/mediawiktory/generated/langbacklinks.rb +12 -0
- data/lib/mediawiktory/generated/langlinks.rb +14 -0
- data/lib/mediawiktory/generated/languagesearch.rb +7 -0
- data/lib/mediawiktory/generated/links.rb +11 -0
- data/lib/mediawiktory/generated/linkshere.rb +11 -0
- data/lib/mediawiktory/generated/listmembership.rb +10 -0
- data/lib/mediawiktory/generated/listpages.rb +14 -0
- data/lib/mediawiktory/generated/lists.rb +15 -0
- data/lib/mediawiktory/generated/liststudents.rb +9 -0
- data/lib/mediawiktory/generated/lock-topic.rb +10 -0
- data/lib/mediawiktory/generated/logevents.rb +19 -0
- data/lib/mediawiktory/generated/login.rb +11 -0
- data/lib/mediawiktory/generated/logout.rb +5 -0
- data/lib/mediawiktory/generated/managetags.rb +11 -0
- data/lib/mediawiktory/generated/massmessage.rb +10 -0
- data/lib/mediawiktory/generated/mmsites.rb +6 -0
- data/lib/mediawiktory/generated/mobileview.rb +21 -0
- data/lib/mediawiktory/generated/moderate-post.rb +11 -0
- data/lib/mediawiktory/generated/moderate-topic.rb +10 -0
- data/lib/mediawiktory/generated/move.rb +18 -0
- data/lib/mediawiktory/generated/new-topic.rb +11 -0
- data/lib/mediawiktory/generated/notifications.rb +17 -0
- data/lib/mediawiktory/generated/oldreviewedpages.rb +15 -0
- data/lib/mediawiktory/generated/opensearch.rb +12 -0
- data/lib/mediawiktory/generated/options.rb +12 -0
- data/lib/mediawiktory/generated/pageimages.rb +10 -0
- data/lib/mediawiktory/generated/pagepropnames.rb +8 -0
- data/lib/mediawiktory/generated/pageprops.rb +8 -0
- data/lib/mediawiktory/generated/pageswithprop.rb +11 -0
- data/lib/mediawiktory/generated/pageterms.rb +8 -0
- data/lib/mediawiktory/generated/pagetriageaction.rb +11 -0
- data/lib/mediawiktory/generated/pagetriagelist.rb +21 -0
- data/lib/mediawiktory/generated/pagetriagestats.rb +10 -0
- data/lib/mediawiktory/generated/pagetriagetagging.rb +13 -0
- data/lib/mediawiktory/generated/pagetriagetemplate.rb +7 -0
- data/lib/mediawiktory/generated/paraminfo.rb +11 -0
- data/lib/mediawiktory/generated/parse.rb +31 -0
- data/lib/mediawiktory/generated/parsoid-batch.rb +6 -0
- data/lib/mediawiktory/generated/patrol.rb +9 -0
- data/lib/mediawiktory/generated/prefixsearch.rb +10 -0
- data/lib/mediawiktory/generated/protect.rb +15 -0
- data/lib/mediawiktory/generated/protectedtitles.rb +14 -0
- data/lib/mediawiktory/generated/purge.rb +15 -0
- data/lib/mediawiktory/generated/query.rb +20 -0
- data/lib/mediawiktory/generated/querypage.rb +9 -0
- data/lib/mediawiktory/generated/random.rb +11 -0
- data/lib/mediawiktory/generated/recentchanges.rb +20 -0
- data/lib/mediawiktory/generated/redirects.rb +11 -0
- data/lib/mediawiktory/generated/refresheducation.rb +9 -0
- data/lib/mediawiktory/generated/reply.rb +11 -0
- data/lib/mediawiktory/generated/review.rb +10 -0
- data/lib/mediawiktory/generated/reviewactivity.rb +10 -0
- data/lib/mediawiktory/generated/revisiondelete.rb +14 -0
- data/lib/mediawiktory/generated/revisions.rb +25 -0
- data/lib/mediawiktory/generated/rollback.rb +13 -0
- data/lib/mediawiktory/generated/rsd.rb +5 -0
- data/lib/mediawiktory/generated/scribunto-console.rb +10 -0
- data/lib/mediawiktory/generated/search.rb +15 -0
- data/lib/mediawiktory/generated/setglobalaccountstatus.rb +12 -0
- data/lib/mediawiktory/generated/setnotificationtimestamp.rb +18 -0
- data/lib/mediawiktory/generated/siteinfo.rb +11 -0
- data/lib/mediawiktory/generated/sitematrix.rb +12 -0
- data/lib/mediawiktory/generated/spamblacklist.rb +6 -0
- data/lib/mediawiktory/generated/stabilize.rb +12 -0
- data/lib/mediawiktory/generated/stashedit.rb +14 -0
- data/lib/mediawiktory/generated/stashimageinfo.rb +12 -0
- data/lib/mediawiktory/generated/strikevote.rb +10 -0
- data/lib/mediawiktory/generated/tag.rb +13 -0
- data/lib/mediawiktory/generated/tags.rb +9 -0
- data/lib/mediawiktory/generated/templatedata.rb +13 -0
- data/lib/mediawiktory/generated/templates.rb +11 -0
- data/lib/mediawiktory/generated/thank.rb +9 -0
- data/lib/mediawiktory/generated/titleblacklist.rb +9 -0
- data/lib/mediawiktory/generated/tokens.rb +6 -0
- data/lib/mediawiktory/generated/transcludedin.rb +11 -0
- data/lib/mediawiktory/generated/transcodereset.rb +9 -0
- data/lib/mediawiktory/generated/transcodestatus.rb +5 -0
- data/lib/mediawiktory/generated/ulslocalization.rb +6 -0
- data/lib/mediawiktory/generated/unblock.rb +10 -0
- data/lib/mediawiktory/generated/undelete.rb +12 -0
- data/lib/mediawiktory/generated/undo-edit-header.rb +8 -0
- data/lib/mediawiktory/generated/undo-edit-post.rb +8 -0
- data/lib/mediawiktory/generated/undo-edit-topic-summary.rb +8 -0
- data/lib/mediawiktory/generated/upload.rb +26 -0
- data/lib/mediawiktory/generated/usercontribs.rb +18 -0
- data/lib/mediawiktory/generated/userdailycontribs.rb +8 -0
- data/lib/mediawiktory/generated/userinfo.rb +7 -0
- data/lib/mediawiktory/generated/userrights.rb +12 -0
- data/lib/mediawiktory/generated/users.rb +9 -0
- data/lib/mediawiktory/generated/videoinfo.rb +14 -0
- data/lib/mediawiktory/generated/view-header.rb +8 -0
- data/lib/mediawiktory/generated/view-post-history.rb +8 -0
- data/lib/mediawiktory/generated/view-post.rb +8 -0
- data/lib/mediawiktory/generated/view-topic-history.rb +7 -0
- data/lib/mediawiktory/generated/view-topic-summary.rb +8 -0
- data/lib/mediawiktory/generated/view-topic.rb +7 -0
- data/lib/mediawiktory/generated/view-topiclist.rb +15 -0
- data/lib/mediawiktory/generated/visualeditor.rb +13 -0
- data/lib/mediawiktory/generated/visualeditoredit.rb +19 -0
- data/lib/mediawiktory/generated/watch.rb +16 -0
- data/lib/mediawiktory/generated/watchlist.rb +20 -0
- data/lib/mediawiktory/generated/watchlistraw.rb +16 -0
- data/lib/mediawiktory/generated/wikibase.rb +7 -0
- data/lib/mediawiktory/generated/wikilove.rb +12 -0
- data/lib/mediawiktory/generated/wikisets.rb +10 -0
- data/lib/mediawiktory/generated/zeroconfig.rb +7 -0
- data/lib/mediawiktory/mw_module.rb +320 -0
- data/lib/mediawiktory/query.rb +60 -0
- data/lib/mediawiktory/version.rb +3 -0
- data/lib/mediawiktory.rb +16 -0
- data/lib/nokogiri/more.rb +72 -0
- data/mediawiktory.gemspec +30 -0
- data/script/data/api.yaml +40239 -0
- data/script/lib/api.rb +14 -0
- data/script/lib/module.rb +132 -0
- data/script/lib/parameter.rb +133 -0
- data/script/parse_api.rb +21 -0
- data/test/cache.rb +15 -0
- metadata +340 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Search < MWModule
|
3
|
+
symbol :search
|
4
|
+
prefix "sr"
|
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["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
|
+
param :offset, Params::Integer
|
11
|
+
param :limit, Params::IntegerOrMax
|
12
|
+
param :interwiki, Params::Boolean
|
13
|
+
param :enablerewrites, Params::Boolean
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Setglobalaccountstatus < Action
|
3
|
+
symbol :setglobalaccountstatus
|
4
|
+
post!
|
5
|
+
param :user, Params::String
|
6
|
+
param :locked, Params::Enum["lock", "unlock"]
|
7
|
+
param :hidden, Params::Enum["lists", "suppressed"]
|
8
|
+
param :reason, Params::String
|
9
|
+
param :token, Params::String
|
10
|
+
param :statecheck, Params::String
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Setnotificationtimestamp < Action
|
3
|
+
symbol :setnotificationtimestamp
|
4
|
+
post!
|
5
|
+
param :entirewatchlist, Params::Boolean
|
6
|
+
param :timestamp, Params::Timestamp
|
7
|
+
param :torevid, Params::Integer
|
8
|
+
param :newerthanrevid, Params::Integer
|
9
|
+
param :continue, Params::String
|
10
|
+
param :titles, Params::List[Params::String]
|
11
|
+
param :pageids, Params::List[Params::Integer]
|
12
|
+
param :revids, Params::List[Params::Integer]
|
13
|
+
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]
|
14
|
+
param :redirects, Params::Boolean
|
15
|
+
param :converttitles, Params::Boolean
|
16
|
+
param :token, Params::String
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Siteinfo < MWModule
|
3
|
+
symbol :siteinfo
|
4
|
+
prefix "si"
|
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
|
+
param :showalldb, Params::Boolean
|
8
|
+
param :numberingroup, Params::Boolean
|
9
|
+
param :inlanguagecode, Params::String
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Sitematrix < Action
|
3
|
+
symbol :sitematrix
|
4
|
+
prefix "sm"
|
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
|
+
param :limit, Params::IntegerOrMax
|
10
|
+
param :continue, Params::String
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Stabilize < Action
|
3
|
+
symbol :stabilize
|
4
|
+
post!
|
5
|
+
param :protectlevel, Params::Enum["autoconfirmed", "review", "none"]
|
6
|
+
param :expiry, Params::String
|
7
|
+
param :reason, Params::String
|
8
|
+
param :watch, Params::String
|
9
|
+
param :token, Params::String
|
10
|
+
param :title, Params::String
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Stashedit < Action
|
3
|
+
symbol :stashedit
|
4
|
+
post!
|
5
|
+
param :title, Params::String
|
6
|
+
param :section, Params::String
|
7
|
+
param :sectiontitle, Params::String
|
8
|
+
param :text, Params::String
|
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
|
+
param :baserevid, Params::Integer
|
12
|
+
param :token, Params::String
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Stashimageinfo < MWModule
|
3
|
+
symbol :stashimageinfo
|
4
|
+
prefix "sii"
|
5
|
+
param :filekey, Params::List[Params::String]
|
6
|
+
param :sessionkey, Params::List[Params::String]
|
7
|
+
param :prop, Params::List[Params::Enum["timestamp", "canonicaltitle", "url", "size", "dimensions", "sha1", "mime", "thumbmime", "metadata", "commonmetadata", "extmetadata", "bitdepth"]]
|
8
|
+
param :urlwidth, Params::Integer
|
9
|
+
param :urlheight, Params::Integer
|
10
|
+
param :urlparam, Params::String
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Tag < Action
|
3
|
+
symbol :tag
|
4
|
+
post!
|
5
|
+
param :rcid, Params::List[Params::Integer]
|
6
|
+
param :revid, Params::List[Params::Integer]
|
7
|
+
param :logid, Params::List[Params::Integer]
|
8
|
+
param :add, Params::List[Params::Enum["Huggle", "WPCleaner", "huggle"]]
|
9
|
+
param :remove, Params::List[Params::String]
|
10
|
+
param :reason, Params::String
|
11
|
+
param :token, Params::String
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Tags < MWModule
|
3
|
+
symbol :tags
|
4
|
+
prefix "tg"
|
5
|
+
param :continue, Params::String
|
6
|
+
param :limit, Params::IntegerOrMax
|
7
|
+
param :prop, Params::List[Params::Enum["name", "displayname", "description", "hitcount", "defined", "source", "active"]]
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Templatedata < Action
|
3
|
+
symbol :templatedata
|
4
|
+
param :titles, Params::List[Params::String]
|
5
|
+
param :pageids, Params::List[Params::Integer]
|
6
|
+
param :revids, Params::List[Params::Integer]
|
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
|
+
param :redirects, Params::Boolean
|
9
|
+
param :converttitles, Params::Boolean
|
10
|
+
param :format, Params::Enum["json", "jsonfm"]
|
11
|
+
param :lang, Params::String
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Templates < MWModule
|
3
|
+
symbol :templates
|
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"]]
|
6
|
+
param :limit, Params::IntegerOrMax
|
7
|
+
param :continue, Params::String
|
8
|
+
param :templates, Params::List[Params::String]
|
9
|
+
param :dir, Params::Enum["ascending", "descending"]
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Titleblacklist < Action
|
3
|
+
symbol :titleblacklist
|
4
|
+
prefix "tb"
|
5
|
+
param :title, Params::String
|
6
|
+
param :action, Params::Enum["create", "edit", "upload", "createtalk", "createpage", "move", "new-account"]
|
7
|
+
param :nooverride, Params::String
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Tokens < Action
|
3
|
+
symbol :tokens
|
4
|
+
param :type, Params::List[Params::Enum["block", "centralauth", "delete", "deleteglobalaccount", "edit", "email", "import", "move", "options", "patrol", "protect", "setglobalaccountstatus", "unblock", "watch"]]
|
5
|
+
end
|
6
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Transcludedin < MWModule
|
3
|
+
symbol :transcludedin
|
4
|
+
prefix "ti"
|
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
|
+
param :limit, Params::IntegerOrMax
|
9
|
+
param :continue, Params::String
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Undelete < Action
|
3
|
+
symbol :undelete
|
4
|
+
post!
|
5
|
+
param :title, Params::String
|
6
|
+
param :reason, Params::String
|
7
|
+
param :timestamps, Params::List[Params::Timestamp]
|
8
|
+
param :fileids, Params::List[Params::Integer]
|
9
|
+
param :watchlist, Params::Enum["watch", "unwatch", "preferences", "nochange"]
|
10
|
+
param :token, Params::String
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Upload < Action
|
3
|
+
symbol :upload
|
4
|
+
post!
|
5
|
+
param :filename, Params::String
|
6
|
+
param :comment, Params::String
|
7
|
+
param :text, Params::String
|
8
|
+
param :watch, Params::Boolean
|
9
|
+
param :watchlist, Params::Enum["watch", "preferences", "nochange"]
|
10
|
+
param :ignorewarnings, Params::Boolean
|
11
|
+
param :file, Params::String
|
12
|
+
param :url, Params::String
|
13
|
+
param :filekey, Params::String
|
14
|
+
param :sessionkey, Params::String
|
15
|
+
param :stash, Params::Boolean
|
16
|
+
param :filesize, Params::Integer
|
17
|
+
param :offset, Params::Integer
|
18
|
+
param :chunk, Params::String
|
19
|
+
param :async, Params::Boolean
|
20
|
+
param :asyncdownload, Params::Boolean
|
21
|
+
param :leavemessage, Params::Boolean
|
22
|
+
param :statuskey, Params::String
|
23
|
+
param :checkstatus, Params::Boolean
|
24
|
+
param :token, Params::String
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Usercontribs < MWModule
|
3
|
+
symbol :usercontribs
|
4
|
+
prefix "uc"
|
5
|
+
param :limit, Params::IntegerOrMax
|
6
|
+
param :start, Params::Timestamp
|
7
|
+
param :end, Params::Timestamp
|
8
|
+
param :continue, Params::String
|
9
|
+
param :user, Params::List[Params::String]
|
10
|
+
param :userprefix, Params::String
|
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
|
+
param :tag, Params::String
|
16
|
+
param :toponly, Params::Boolean
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Userinfo < MWModule
|
3
|
+
symbol :userinfo
|
4
|
+
prefix "ui"
|
5
|
+
param :prop, Params::List[Params::Enum["blockinfo", "hasmsg", "groups", "implicitgroups", "rights", "changeablegroups", "options", "preferencestoken", "editcount", "ratelimits", "email", "realname", "acceptlang", "registrationdate", "unreadcount"]]
|
6
|
+
end
|
7
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Userrights < Action
|
3
|
+
symbol :userrights
|
4
|
+
post!
|
5
|
+
param :user, Params::String
|
6
|
+
param :userid, Params::Integer
|
7
|
+
param :add, Params::List[Params::Enum["bot", "sysop", "bureaucrat", "reviewer", "steward", "accountcreator", "import", "transwiki", "ipblock-exempt", "oversight", "founder", "rollbacker", "autoreviewer", "researcher", "filemover", "checkuser", "templateeditor", "massmessage-sender", "abusefilter", "epcoordinator", "eponline", "epcampus", "epinstructor", "suppress", "flow-bot", "confirmed"]]
|
8
|
+
param :remove, Params::List[Params::Enum["bot", "sysop", "bureaucrat", "reviewer", "steward", "accountcreator", "import", "transwiki", "ipblock-exempt", "oversight", "founder", "rollbacker", "autoreviewer", "researcher", "filemover", "checkuser", "templateeditor", "massmessage-sender", "abusefilter", "epcoordinator", "eponline", "epcampus", "epinstructor", "suppress", "flow-bot", "confirmed"]]
|
9
|
+
param :reason, Params::String
|
10
|
+
param :token, Params::String
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Users < MWModule
|
3
|
+
symbol :users
|
4
|
+
prefix "us"
|
5
|
+
param :prop, Params::List[Params::Enum["blockinfo", "groups", "implicitgroups", "rights", "editcount", "registration", "emailable", "gender"]]
|
6
|
+
param :users, Params::List[Params::String]
|
7
|
+
param :token, Params::List[Params::Enum["userrights"]]
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Videoinfo < MWModule
|
3
|
+
symbol :videoinfo
|
4
|
+
prefix "vi"
|
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", "derivatives"]]
|
6
|
+
param :limit, Params::IntegerOrMax
|
7
|
+
param :start, Params::Timestamp
|
8
|
+
param :end, Params::Timestamp
|
9
|
+
param :urlwidth, Params::Integer
|
10
|
+
param :urlheight, Params::Integer
|
11
|
+
param :urlparam, Params::String
|
12
|
+
param :continue, Params::String
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class ViewTopiclist < MWModule
|
3
|
+
symbol :"view-topiclist"
|
4
|
+
prefix "vtl"
|
5
|
+
param :"offset-dir", Params::Enum["fwd", "rev"]
|
6
|
+
param :sortby, Params::Enum["newest", "updated", "user"]
|
7
|
+
param :savesortby, Params::Boolean
|
8
|
+
param :"offset-id", Params::String
|
9
|
+
param :offset, Params::String
|
10
|
+
param :"include-offset", Params::Boolean
|
11
|
+
param :limit, Params::IntegerOrMax
|
12
|
+
param :toconly, Params::Boolean
|
13
|
+
param :format, Params::Enum["html", "wikitext", "fixed-html"]
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Visualeditor < Action
|
3
|
+
symbol :visualeditor
|
4
|
+
param :page, Params::String
|
5
|
+
param :format, Params::Enum["json", "jsonfm"]
|
6
|
+
param :paction, Params::Enum["parse", "metadata", "parsefragment", "serialize", "serializeforcache", "diff", "getlanglinks"]
|
7
|
+
param :wikitext, Params::String
|
8
|
+
param :oldid, Params::String
|
9
|
+
param :html, Params::String
|
10
|
+
param :cachekey, Params::String
|
11
|
+
param :pst, Params::Boolean
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Visualeditoredit < Action
|
3
|
+
symbol :visualeditoredit
|
4
|
+
post!
|
5
|
+
param :page, Params::String
|
6
|
+
param :token, Params::String
|
7
|
+
param :wikitext, Params::String
|
8
|
+
param :basetimestamp, Params::String
|
9
|
+
param :starttimestamp, Params::String
|
10
|
+
param :oldid, Params::String
|
11
|
+
param :minor, Params::String
|
12
|
+
param :watch, Params::String
|
13
|
+
param :html, Params::String
|
14
|
+
param :summary, Params::String
|
15
|
+
param :captchaid, Params::String
|
16
|
+
param :captchaword, Params::String
|
17
|
+
param :cachekey, Params::String
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Watch < Action
|
3
|
+
symbol :watch
|
4
|
+
post!
|
5
|
+
param :title, Params::String
|
6
|
+
param :unwatch, Params::Boolean
|
7
|
+
param :continue, Params::String
|
8
|
+
param :titles, Params::List[Params::String]
|
9
|
+
param :pageids, Params::List[Params::Integer]
|
10
|
+
param :revids, Params::List[Params::Integer]
|
11
|
+
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]
|
12
|
+
param :redirects, Params::Boolean
|
13
|
+
param :converttitles, Params::Boolean
|
14
|
+
param :token, Params::String
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Watchlist < MWModule
|
3
|
+
symbol :watchlist
|
4
|
+
prefix "wl"
|
5
|
+
param :allrev, Params::Boolean
|
6
|
+
param :start, Params::Timestamp
|
7
|
+
param :end, Params::Timestamp
|
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 :user, Params::String
|
10
|
+
param :excludeuser, Params::String
|
11
|
+
param :dir, Params::Enum["newer", "older"]
|
12
|
+
param :limit, Params::IntegerOrMax
|
13
|
+
param :prop, Params::List[Params::Enum["ids", "title", "flags", "user", "userid", "comment", "parsedcomment", "timestamp", "patrol", "sizes", "notificationtimestamp", "loginfo"]]
|
14
|
+
param :show, Params::List[Params::Enum["minor", "!minor", "bot", "!bot", "anon", "!anon", "patrolled", "!patrolled", "unread", "!unread"]]
|
15
|
+
param :type, Params::List[Params::Enum["edit", "external", "new", "log"]]
|
16
|
+
param :owner, Params::String
|
17
|
+
param :token, Params::String
|
18
|
+
param :continue, Params::String
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Watchlistraw < MWModule
|
3
|
+
symbol :watchlistraw
|
4
|
+
prefix "wr"
|
5
|
+
param :continue, 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 :limit, Params::IntegerOrMax
|
8
|
+
param :prop, Params::List[Params::Enum["changed"]]
|
9
|
+
param :show, Params::List[Params::Enum["changed", "!changed"]]
|
10
|
+
param :owner, Params::String
|
11
|
+
param :token, Params::String
|
12
|
+
param :dir, Params::Enum["newer", "older"]
|
13
|
+
param :fromtitle, Params::String
|
14
|
+
param :totitle, Params::String
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Wikilove < Action
|
3
|
+
symbol :wikilove
|
4
|
+
param :title, Params::String
|
5
|
+
param :text, Params::String
|
6
|
+
param :message, Params::String
|
7
|
+
param :token, Params::String
|
8
|
+
param :subject, Params::String
|
9
|
+
param :type, Params::String
|
10
|
+
param :email, Params::String
|
11
|
+
end
|
12
|
+
end
|