mediawiktory 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile.lock +63 -0
  3. data/README.md +103 -0
  4. data/bin/mediawiktory +13 -0
  5. data/doc/mediawiki_api_types.md +14 -0
  6. data/examples/query.rb +15 -0
  7. data/examples/query_generator.rb +15 -0
  8. data/lib/faraday/naive_cache.rb +40 -0
  9. data/lib/media_wiktory.rb +1 -0
  10. data/lib/mediawiktory/action.rb +48 -0
  11. data/lib/mediawiktory/array_with_keys.rb +41 -0
  12. data/lib/mediawiktory/client.rb +22 -0
  13. data/lib/mediawiktory/generated/abusefiltercheckmatch.rb +9 -0
  14. data/lib/mediawiktory/generated/abusefilterchecksyntax.rb +6 -0
  15. data/lib/mediawiktory/generated/abusefilterevalexpression.rb +6 -0
  16. data/lib/mediawiktory/generated/abusefilters.rb +12 -0
  17. data/lib/mediawiktory/generated/abusefilterunblockautopromote.rb +8 -0
  18. data/lib/mediawiktory/generated/abuselog.rb +14 -0
  19. data/lib/mediawiktory/generated/actions_mixin.rb +313 -0
  20. data/lib/mediawiktory/generated/addstudents.rb +9 -0
  21. data/lib/mediawiktory/generated/allcategories.rb +15 -0
  22. data/lib/mediawiktory/generated/alldeletedrevisions.rb +27 -0
  23. data/lib/mediawiktory/generated/allfileusages.rb +14 -0
  24. data/lib/mediawiktory/generated/allimages.rb +23 -0
  25. data/lib/mediawiktory/generated/alllinks.rb +15 -0
  26. data/lib/mediawiktory/generated/allmessages.rb +19 -0
  27. data/lib/mediawiktory/generated/allpages.rb +21 -0
  28. data/lib/mediawiktory/generated/allredirects.rb +15 -0
  29. data/lib/mediawiktory/generated/alltransclusions.rb +15 -0
  30. data/lib/mediawiktory/generated/allusers.rb +17 -0
  31. data/lib/mediawiktory/generated/antispoof.rb +6 -0
  32. data/lib/mediawiktory/generated/backlinks.rb +14 -0
  33. data/lib/mediawiktory/generated/betafeatures.rb +7 -0
  34. data/lib/mediawiktory/generated/block.rb +18 -0
  35. data/lib/mediawiktory/generated/blocks.rb +16 -0
  36. data/lib/mediawiktory/generated/bouncehandler.rb +7 -0
  37. data/lib/mediawiktory/generated/categories.rb +12 -0
  38. data/lib/mediawiktory/generated/categoryinfo.rb +7 -0
  39. data/lib/mediawiktory/generated/categorymembers.rb +23 -0
  40. data/lib/mediawiktory/generated/centralauthtoken.rb +5 -0
  41. data/lib/mediawiktory/generated/centralnoticechoicedata.rb +7 -0
  42. data/lib/mediawiktory/generated/centralnoticelogs.rb +11 -0
  43. data/lib/mediawiktory/generated/centralnoticequerycampaign.rb +6 -0
  44. data/lib/mediawiktory/generated/checktoken.rb +8 -0
  45. data/lib/mediawiktory/generated/checkuser.rb +14 -0
  46. data/lib/mediawiktory/generated/checkuserlog.rb +13 -0
  47. data/lib/mediawiktory/generated/cirrus-config-dump.rb +5 -0
  48. data/lib/mediawiktory/generated/cirrus-mapping-dump.rb +5 -0
  49. data/lib/mediawiktory/generated/cirrus-settings-dump.rb +5 -0
  50. data/lib/mediawiktory/generated/cirrus-suggest.rb +8 -0
  51. data/lib/mediawiktory/generated/clearhasmsg.rb +5 -0
  52. data/lib/mediawiktory/generated/close-open-topic.rb +10 -0
  53. data/lib/mediawiktory/generated/compare.rb +11 -0
  54. data/lib/mediawiktory/generated/contenttranslation.rb +12 -0
  55. data/lib/mediawiktory/generated/contenttranslationlangtrend.rb +8 -0
  56. data/lib/mediawiktory/generated/contenttranslationstats.rb +5 -0
  57. data/lib/mediawiktory/generated/contenttranslationsuggestions.rb +10 -0
  58. data/lib/mediawiktory/generated/contributors.rb +12 -0
  59. data/lib/mediawiktory/generated/coordinates.rb +12 -0
  60. data/lib/mediawiktory/generated/createaccount.rb +18 -0
  61. data/lib/mediawiktory/generated/cxconfiguration.rb +7 -0
  62. data/lib/mediawiktory/generated/cxdelete.rb +10 -0
  63. data/lib/mediawiktory/generated/cxpublish.rb +18 -0
  64. data/lib/mediawiktory/generated/cxpublishedtranslations.rb +9 -0
  65. data/lib/mediawiktory/generated/cxtoken.rb +7 -0
  66. data/lib/mediawiktory/generated/delete.rb +14 -0
  67. data/lib/mediawiktory/generated/deletedrevisions.rb +22 -0
  68. data/lib/mediawiktory/generated/deletedrevs.rb +20 -0
  69. data/lib/mediawiktory/generated/deleteeducation.rb +10 -0
  70. data/lib/mediawiktory/generated/deleteglobalaccount.rb +9 -0
  71. data/lib/mediawiktory/generated/duplicatefiles.rb +10 -0
  72. data/lib/mediawiktory/generated/echomarkread.rb +10 -0
  73. data/lib/mediawiktory/generated/echomarkseen.rb +8 -0
  74. data/lib/mediawiktory/generated/edit-header.rb +11 -0
  75. data/lib/mediawiktory/generated/edit-post.rb +12 -0
  76. data/lib/mediawiktory/generated/edit-title.rb +10 -0
  77. data/lib/mediawiktory/generated/edit-topic-summary.rb +11 -0
  78. data/lib/mediawiktory/generated/edit.rb +35 -0
  79. data/lib/mediawiktory/generated/editlist.rb +20 -0
  80. data/lib/mediawiktory/generated/editmassmessagelist.rb +10 -0
  81. data/lib/mediawiktory/generated/emailuser.rb +11 -0
  82. data/lib/mediawiktory/generated/embeddedin.rb +13 -0
  83. data/lib/mediawiktory/generated/enlist.rb +13 -0
  84. data/lib/mediawiktory/generated/expandtemplates.rb +11 -0
  85. data/lib/mediawiktory/generated/extlinks.rb +11 -0
  86. data/lib/mediawiktory/generated/extracts.rb +14 -0
  87. data/lib/mediawiktory/generated/exturlusage.rb +13 -0
  88. data/lib/mediawiktory/generated/fancycaptchareload.rb +5 -0
  89. data/lib/mediawiktory/generated/featuredfeed.rb +8 -0
  90. data/lib/mediawiktory/generated/featureusage.rb +10 -0
  91. data/lib/mediawiktory/generated/feedcontributions.rb +15 -0
  92. data/lib/mediawiktory/generated/feedrecentchanges.rb +21 -0
  93. data/lib/mediawiktory/generated/feedwatchlist.rb +14 -0
  94. data/lib/mediawiktory/generated/filearchive.rb +15 -0
  95. data/lib/mediawiktory/generated/filerepoinfo.rb +7 -0
  96. data/lib/mediawiktory/generated/filerevert.rb +10 -0
  97. data/lib/mediawiktory/generated/fileusage.rb +11 -0
  98. data/lib/mediawiktory/generated/flagconfig.rb +5 -0
  99. data/lib/mediawiktory/generated/flagged.rb +5 -0
  100. data/lib/mediawiktory/generated/flow-parsoid-utils.rb +10 -0
  101. data/lib/mediawiktory/generated/flow.rb +8 -0
  102. data/lib/mediawiktory/generated/flowinfo.rb +6 -0
  103. data/lib/mediawiktory/generated/flowthank.rb +8 -0
  104. data/lib/mediawiktory/generated/gadgetcategories.rb +8 -0
  105. data/lib/mediawiktory/generated/gadgets.rb +11 -0
  106. data/lib/mediawiktory/generated/geosearch.rb +15 -0
  107. data/lib/mediawiktory/generated/gettingstartedgetpages.rb +9 -0
  108. data/lib/mediawiktory/generated/globalallusers.rb +14 -0
  109. data/lib/mediawiktory/generated/globalblock.rb +12 -0
  110. data/lib/mediawiktory/generated/globalblocks.rb +14 -0
  111. data/lib/mediawiktory/generated/globalgroups.rb +7 -0
  112. data/lib/mediawiktory/generated/globalusage.rb +10 -0
  113. data/lib/mediawiktory/generated/globaluserinfo.rb +8 -0
  114. data/lib/mediawiktory/generated/globaluserrights.rb +12 -0
  115. data/lib/mediawiktory/generated/help.rb +10 -0
  116. data/lib/mediawiktory/generated/imageinfo.rb +19 -0
  117. data/lib/mediawiktory/generated/imagerotate.rb +5 -0
  118. data/lib/mediawiktory/generated/images.rb +10 -0
  119. data/lib/mediawiktory/generated/imageusage.rb +14 -0
  120. data/lib/mediawiktory/generated/import.rb +15 -0
  121. data/lib/mediawiktory/generated/info.rb +10 -0
  122. data/lib/mediawiktory/generated/iwbacklinks.rb +12 -0
  123. data/lib/mediawiktory/generated/iwlinks.rb +13 -0
  124. data/lib/mediawiktory/generated/jsonconfig.rb +8 -0
  125. data/lib/mediawiktory/generated/langbacklinks.rb +12 -0
  126. data/lib/mediawiktory/generated/langlinks.rb +14 -0
  127. data/lib/mediawiktory/generated/languagesearch.rb +7 -0
  128. data/lib/mediawiktory/generated/links.rb +11 -0
  129. data/lib/mediawiktory/generated/linkshere.rb +11 -0
  130. data/lib/mediawiktory/generated/listmembership.rb +10 -0
  131. data/lib/mediawiktory/generated/listpages.rb +14 -0
  132. data/lib/mediawiktory/generated/lists.rb +15 -0
  133. data/lib/mediawiktory/generated/liststudents.rb +9 -0
  134. data/lib/mediawiktory/generated/lock-topic.rb +10 -0
  135. data/lib/mediawiktory/generated/logevents.rb +19 -0
  136. data/lib/mediawiktory/generated/login.rb +11 -0
  137. data/lib/mediawiktory/generated/logout.rb +5 -0
  138. data/lib/mediawiktory/generated/managetags.rb +11 -0
  139. data/lib/mediawiktory/generated/massmessage.rb +10 -0
  140. data/lib/mediawiktory/generated/mmsites.rb +6 -0
  141. data/lib/mediawiktory/generated/mobileview.rb +21 -0
  142. data/lib/mediawiktory/generated/moderate-post.rb +11 -0
  143. data/lib/mediawiktory/generated/moderate-topic.rb +10 -0
  144. data/lib/mediawiktory/generated/move.rb +18 -0
  145. data/lib/mediawiktory/generated/new-topic.rb +11 -0
  146. data/lib/mediawiktory/generated/notifications.rb +17 -0
  147. data/lib/mediawiktory/generated/oldreviewedpages.rb +15 -0
  148. data/lib/mediawiktory/generated/opensearch.rb +12 -0
  149. data/lib/mediawiktory/generated/options.rb +12 -0
  150. data/lib/mediawiktory/generated/pageimages.rb +10 -0
  151. data/lib/mediawiktory/generated/pagepropnames.rb +8 -0
  152. data/lib/mediawiktory/generated/pageprops.rb +8 -0
  153. data/lib/mediawiktory/generated/pageswithprop.rb +11 -0
  154. data/lib/mediawiktory/generated/pageterms.rb +8 -0
  155. data/lib/mediawiktory/generated/pagetriageaction.rb +11 -0
  156. data/lib/mediawiktory/generated/pagetriagelist.rb +21 -0
  157. data/lib/mediawiktory/generated/pagetriagestats.rb +10 -0
  158. data/lib/mediawiktory/generated/pagetriagetagging.rb +13 -0
  159. data/lib/mediawiktory/generated/pagetriagetemplate.rb +7 -0
  160. data/lib/mediawiktory/generated/paraminfo.rb +11 -0
  161. data/lib/mediawiktory/generated/parse.rb +31 -0
  162. data/lib/mediawiktory/generated/parsoid-batch.rb +6 -0
  163. data/lib/mediawiktory/generated/patrol.rb +9 -0
  164. data/lib/mediawiktory/generated/prefixsearch.rb +10 -0
  165. data/lib/mediawiktory/generated/protect.rb +15 -0
  166. data/lib/mediawiktory/generated/protectedtitles.rb +14 -0
  167. data/lib/mediawiktory/generated/purge.rb +15 -0
  168. data/lib/mediawiktory/generated/query.rb +20 -0
  169. data/lib/mediawiktory/generated/querypage.rb +9 -0
  170. data/lib/mediawiktory/generated/random.rb +11 -0
  171. data/lib/mediawiktory/generated/recentchanges.rb +20 -0
  172. data/lib/mediawiktory/generated/redirects.rb +11 -0
  173. data/lib/mediawiktory/generated/refresheducation.rb +9 -0
  174. data/lib/mediawiktory/generated/reply.rb +11 -0
  175. data/lib/mediawiktory/generated/review.rb +10 -0
  176. data/lib/mediawiktory/generated/reviewactivity.rb +10 -0
  177. data/lib/mediawiktory/generated/revisiondelete.rb +14 -0
  178. data/lib/mediawiktory/generated/revisions.rb +25 -0
  179. data/lib/mediawiktory/generated/rollback.rb +13 -0
  180. data/lib/mediawiktory/generated/rsd.rb +5 -0
  181. data/lib/mediawiktory/generated/scribunto-console.rb +10 -0
  182. data/lib/mediawiktory/generated/search.rb +15 -0
  183. data/lib/mediawiktory/generated/setglobalaccountstatus.rb +12 -0
  184. data/lib/mediawiktory/generated/setnotificationtimestamp.rb +18 -0
  185. data/lib/mediawiktory/generated/siteinfo.rb +11 -0
  186. data/lib/mediawiktory/generated/sitematrix.rb +12 -0
  187. data/lib/mediawiktory/generated/spamblacklist.rb +6 -0
  188. data/lib/mediawiktory/generated/stabilize.rb +12 -0
  189. data/lib/mediawiktory/generated/stashedit.rb +14 -0
  190. data/lib/mediawiktory/generated/stashimageinfo.rb +12 -0
  191. data/lib/mediawiktory/generated/strikevote.rb +10 -0
  192. data/lib/mediawiktory/generated/tag.rb +13 -0
  193. data/lib/mediawiktory/generated/tags.rb +9 -0
  194. data/lib/mediawiktory/generated/templatedata.rb +13 -0
  195. data/lib/mediawiktory/generated/templates.rb +11 -0
  196. data/lib/mediawiktory/generated/thank.rb +9 -0
  197. data/lib/mediawiktory/generated/titleblacklist.rb +9 -0
  198. data/lib/mediawiktory/generated/tokens.rb +6 -0
  199. data/lib/mediawiktory/generated/transcludedin.rb +11 -0
  200. data/lib/mediawiktory/generated/transcodereset.rb +9 -0
  201. data/lib/mediawiktory/generated/transcodestatus.rb +5 -0
  202. data/lib/mediawiktory/generated/ulslocalization.rb +6 -0
  203. data/lib/mediawiktory/generated/unblock.rb +10 -0
  204. data/lib/mediawiktory/generated/undelete.rb +12 -0
  205. data/lib/mediawiktory/generated/undo-edit-header.rb +8 -0
  206. data/lib/mediawiktory/generated/undo-edit-post.rb +8 -0
  207. data/lib/mediawiktory/generated/undo-edit-topic-summary.rb +8 -0
  208. data/lib/mediawiktory/generated/upload.rb +26 -0
  209. data/lib/mediawiktory/generated/usercontribs.rb +18 -0
  210. data/lib/mediawiktory/generated/userdailycontribs.rb +8 -0
  211. data/lib/mediawiktory/generated/userinfo.rb +7 -0
  212. data/lib/mediawiktory/generated/userrights.rb +12 -0
  213. data/lib/mediawiktory/generated/users.rb +9 -0
  214. data/lib/mediawiktory/generated/videoinfo.rb +14 -0
  215. data/lib/mediawiktory/generated/view-header.rb +8 -0
  216. data/lib/mediawiktory/generated/view-post-history.rb +8 -0
  217. data/lib/mediawiktory/generated/view-post.rb +8 -0
  218. data/lib/mediawiktory/generated/view-topic-history.rb +7 -0
  219. data/lib/mediawiktory/generated/view-topic-summary.rb +8 -0
  220. data/lib/mediawiktory/generated/view-topic.rb +7 -0
  221. data/lib/mediawiktory/generated/view-topiclist.rb +15 -0
  222. data/lib/mediawiktory/generated/visualeditor.rb +13 -0
  223. data/lib/mediawiktory/generated/visualeditoredit.rb +19 -0
  224. data/lib/mediawiktory/generated/watch.rb +16 -0
  225. data/lib/mediawiktory/generated/watchlist.rb +20 -0
  226. data/lib/mediawiktory/generated/watchlistraw.rb +16 -0
  227. data/lib/mediawiktory/generated/wikibase.rb +7 -0
  228. data/lib/mediawiktory/generated/wikilove.rb +12 -0
  229. data/lib/mediawiktory/generated/wikisets.rb +10 -0
  230. data/lib/mediawiktory/generated/zeroconfig.rb +7 -0
  231. data/lib/mediawiktory/mw_module.rb +320 -0
  232. data/lib/mediawiktory/query.rb +60 -0
  233. data/lib/mediawiktory/version.rb +3 -0
  234. data/lib/mediawiktory.rb +16 -0
  235. data/lib/nokogiri/more.rb +72 -0
  236. data/mediawiktory.gemspec +30 -0
  237. data/script/data/api.yaml +40239 -0
  238. data/script/lib/api.rb +14 -0
  239. data/script/lib/module.rb +132 -0
  240. data/script/lib/parameter.rb +133 -0
  241. data/script/parse_api.rb +21 -0
  242. data/test/cache.rb +15 -0
  243. metadata +340 -0
@@ -0,0 +1,5 @@
1
+ module MediaWiktory
2
+ class Rsd < Action
3
+ symbol :rsd
4
+ end
5
+ end
@@ -0,0 +1,10 @@
1
+ module MediaWiktory
2
+ class ScribuntoConsole < Action
3
+ symbol :"scribunto-console"
4
+ param :title, Params::String
5
+ param :content, Params::String
6
+ param :session, Params::Integer
7
+ param :question, Params::String
8
+ param :clear, Params::Boolean
9
+ end
10
+ end
@@ -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,6 @@
1
+ module MediaWiktory
2
+ class Spamblacklist < Action
3
+ symbol :spamblacklist
4
+ param :url, Params::List[Params::String]
5
+ end
6
+ 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,10 @@
1
+ module MediaWiktory
2
+ class Strikevote < Action
3
+ symbol :strikevote
4
+ post!
5
+ param :option, Params::Enum["strike", "unstrike"]
6
+ param :reason, Params::String
7
+ param :voteid, Params::Integer
8
+ param :token, Params::String
9
+ end
10
+ 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 Thank < Action
3
+ symbol :thank
4
+ post!
5
+ param :rev, Params::Integer
6
+ param :token, Params::String
7
+ param :source, Params::String
8
+ end
9
+ 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,9 @@
1
+ module MediaWiktory
2
+ class Transcodereset < Action
3
+ symbol :transcodereset
4
+ post!
5
+ param :title, Params::String
6
+ param :transcodekey, Params::String
7
+ param :token, Params::String
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ module MediaWiktory
2
+ class Transcodestatus < MWModule
3
+ symbol :transcodestatus
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ module MediaWiktory
2
+ class Ulslocalization < Action
3
+ symbol :ulslocalization
4
+ param :language, Params::String
5
+ end
6
+ end
@@ -0,0 +1,10 @@
1
+ module MediaWiktory
2
+ class Unblock < Action
3
+ symbol :unblock
4
+ post!
5
+ param :id, Params::Integer
6
+ param :user, Params::String
7
+ param :reason, Params::String
8
+ param :token, Params::String
9
+ end
10
+ 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,8 @@
1
+ module MediaWiktory
2
+ class UndoEditHeader < MWModule
3
+ symbol :"undo-edit-header"
4
+ prefix "ueh"
5
+ param :startId, Params::String
6
+ param :endId, Params::String
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module MediaWiktory
2
+ class UndoEditPost < MWModule
3
+ symbol :"undo-edit-post"
4
+ prefix "uep"
5
+ param :startId, Params::String
6
+ param :endId, Params::String
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module MediaWiktory
2
+ class UndoEditTopicSummary < MWModule
3
+ symbol :"undo-edit-topic-summary"
4
+ prefix "uets"
5
+ param :startId, Params::String
6
+ param :endId, Params::String
7
+ end
8
+ 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,8 @@
1
+ module MediaWiktory
2
+ class Userdailycontribs < Action
3
+ symbol :userdailycontribs
4
+ param :user, Params::String
5
+ param :daysago, Params::Integer
6
+ param :basetimestamp, Params::Timestamp
7
+ end
8
+ 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,8 @@
1
+ module MediaWiktory
2
+ class ViewHeader < MWModule
3
+ symbol :"view-header"
4
+ prefix "vh"
5
+ param :format, Params::Enum["html", "wikitext", "fixed-html"]
6
+ param :revId, Params::String
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module MediaWiktory
2
+ class ViewPostHistory < MWModule
3
+ symbol :"view-post-history"
4
+ prefix "vph"
5
+ param :postId, Params::String
6
+ param :format, Params::Enum["html", "wikitext", "fixed-html"]
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module MediaWiktory
2
+ class ViewPost < MWModule
3
+ symbol :"view-post"
4
+ prefix "vp"
5
+ param :postId, Params::String
6
+ param :format, Params::Enum["html", "wikitext", "fixed-html"]
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ module MediaWiktory
2
+ class ViewTopicHistory < MWModule
3
+ symbol :"view-topic-history"
4
+ prefix "vth"
5
+ param :format, Params::Enum["html", "wikitext", "fixed-html"]
6
+ end
7
+ end
@@ -0,0 +1,8 @@
1
+ module MediaWiktory
2
+ class ViewTopicSummary < MWModule
3
+ symbol :"view-topic-summary"
4
+ prefix "vts"
5
+ param :format, Params::Enum["html", "wikitext", "fixed-html"]
6
+ param :revId, Params::String
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ module MediaWiktory
2
+ class ViewTopic < MWModule
3
+ symbol :"view-topic"
4
+ prefix "vt"
5
+ param :format, Params::Enum["html", "wikitext", "fixed-html"]
6
+ end
7
+ 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,7 @@
1
+ module MediaWiktory
2
+ class Wikibase < MWModule
3
+ symbol :wikibase
4
+ prefix "wb"
5
+ param :prop, Params::List[Params::Enum["url", "siteid"]]
6
+ end
7
+ 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