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,313 @@
1
+ module MediaWiktory
2
+ module ActionsMixin
3
+ def abusefiltercheckmatch
4
+ Abusefiltercheckmatch.new(self)
5
+ end
6
+ def abusefilterchecksyntax
7
+ Abusefilterchecksyntax.new(self)
8
+ end
9
+ def abusefilterevalexpression
10
+ Abusefilterevalexpression.new(self)
11
+ end
12
+ def abusefilterunblockautopromote
13
+ Abusefilterunblockautopromote.new(self)
14
+ end
15
+ def addstudents
16
+ Addstudents.new(self)
17
+ end
18
+ def antispoof
19
+ Antispoof.new(self)
20
+ end
21
+ def block
22
+ Block.new(self)
23
+ end
24
+ def bouncehandler
25
+ Bouncehandler.new(self)
26
+ end
27
+ def centralauthtoken
28
+ Centralauthtoken.new(self)
29
+ end
30
+ def centralnoticechoicedata
31
+ Centralnoticechoicedata.new(self)
32
+ end
33
+ def centralnoticequerycampaign
34
+ Centralnoticequerycampaign.new(self)
35
+ end
36
+ def checktoken
37
+ Checktoken.new(self)
38
+ end
39
+ def cirrus_config_dump
40
+ CirrusConfigDump.new(self)
41
+ end
42
+ def cirrus_mapping_dump
43
+ CirrusMappingDump.new(self)
44
+ end
45
+ def cirrus_settings_dump
46
+ CirrusSettingsDump.new(self)
47
+ end
48
+ def cirrus_suggest
49
+ CirrusSuggest.new(self)
50
+ end
51
+ def clearhasmsg
52
+ Clearhasmsg.new(self)
53
+ end
54
+ def compare
55
+ Compare.new(self)
56
+ end
57
+ def createaccount
58
+ Createaccount.new(self)
59
+ end
60
+ def cxconfiguration
61
+ Cxconfiguration.new(self)
62
+ end
63
+ def cxdelete
64
+ Cxdelete.new(self)
65
+ end
66
+ def cxpublish
67
+ Cxpublish.new(self)
68
+ end
69
+ def cxtoken
70
+ Cxtoken.new(self)
71
+ end
72
+ def delete
73
+ Delete.new(self)
74
+ end
75
+ def deleteeducation
76
+ Deleteeducation.new(self)
77
+ end
78
+ def deleteglobalaccount
79
+ Deleteglobalaccount.new(self)
80
+ end
81
+ def echomarkread
82
+ Echomarkread.new(self)
83
+ end
84
+ def echomarkseen
85
+ Echomarkseen.new(self)
86
+ end
87
+ def edit
88
+ Edit.new(self)
89
+ end
90
+ def editlist
91
+ Editlist.new(self)
92
+ end
93
+ def editmassmessagelist
94
+ Editmassmessagelist.new(self)
95
+ end
96
+ def emailuser
97
+ Emailuser.new(self)
98
+ end
99
+ def enlist
100
+ Enlist.new(self)
101
+ end
102
+ def expandtemplates
103
+ Expandtemplates.new(self)
104
+ end
105
+ def fancycaptchareload
106
+ Fancycaptchareload.new(self)
107
+ end
108
+ def featuredfeed
109
+ Featuredfeed.new(self)
110
+ end
111
+ def feedcontributions
112
+ Feedcontributions.new(self)
113
+ end
114
+ def feedrecentchanges
115
+ Feedrecentchanges.new(self)
116
+ end
117
+ def feedwatchlist
118
+ Feedwatchlist.new(self)
119
+ end
120
+ def filerevert
121
+ Filerevert.new(self)
122
+ end
123
+ def flagconfig
124
+ Flagconfig.new(self)
125
+ end
126
+ def flow
127
+ Flow.new(self)
128
+ end
129
+ def flow_parsoid_utils
130
+ FlowParsoidUtils.new(self)
131
+ end
132
+ def flowthank
133
+ Flowthank.new(self)
134
+ end
135
+ def globalblock
136
+ Globalblock.new(self)
137
+ end
138
+ def globaluserrights
139
+ Globaluserrights.new(self)
140
+ end
141
+ def help
142
+ Help.new(self)
143
+ end
144
+ def imagerotate
145
+ Imagerotate.new(self)
146
+ end
147
+ def import
148
+ Import.new(self)
149
+ end
150
+ def jsonconfig
151
+ Jsonconfig.new(self)
152
+ end
153
+ def languagesearch
154
+ Languagesearch.new(self)
155
+ end
156
+ def liststudents
157
+ Liststudents.new(self)
158
+ end
159
+ def login
160
+ Login.new(self)
161
+ end
162
+ def logout
163
+ Logout.new(self)
164
+ end
165
+ def managetags
166
+ Managetags.new(self)
167
+ end
168
+ def massmessage
169
+ Massmessage.new(self)
170
+ end
171
+ def mobileview
172
+ Mobileview.new(self)
173
+ end
174
+ def move
175
+ Move.new(self)
176
+ end
177
+ def opensearch
178
+ Opensearch.new(self)
179
+ end
180
+ def options
181
+ Options.new(self)
182
+ end
183
+ def pagetriageaction
184
+ Pagetriageaction.new(self)
185
+ end
186
+ def pagetriagelist
187
+ Pagetriagelist.new(self)
188
+ end
189
+ def pagetriagestats
190
+ Pagetriagestats.new(self)
191
+ end
192
+ def pagetriagetagging
193
+ Pagetriagetagging.new(self)
194
+ end
195
+ def pagetriagetemplate
196
+ Pagetriagetemplate.new(self)
197
+ end
198
+ def paraminfo
199
+ Paraminfo.new(self)
200
+ end
201
+ def parse
202
+ Parse.new(self)
203
+ end
204
+ def parsoid_batch
205
+ ParsoidBatch.new(self)
206
+ end
207
+ def patrol
208
+ Patrol.new(self)
209
+ end
210
+ def protect
211
+ Protect.new(self)
212
+ end
213
+ def purge
214
+ Purge.new(self)
215
+ end
216
+ def query
217
+ Query.new(self)
218
+ end
219
+ def refresheducation
220
+ Refresheducation.new(self)
221
+ end
222
+ def review
223
+ Review.new(self)
224
+ end
225
+ def reviewactivity
226
+ Reviewactivity.new(self)
227
+ end
228
+ def revisiondelete
229
+ Revisiondelete.new(self)
230
+ end
231
+ def rollback
232
+ Rollback.new(self)
233
+ end
234
+ def rsd
235
+ Rsd.new(self)
236
+ end
237
+ def scribunto_console
238
+ ScribuntoConsole.new(self)
239
+ end
240
+ def setglobalaccountstatus
241
+ Setglobalaccountstatus.new(self)
242
+ end
243
+ def setnotificationtimestamp
244
+ Setnotificationtimestamp.new(self)
245
+ end
246
+ def sitematrix
247
+ Sitematrix.new(self)
248
+ end
249
+ def spamblacklist
250
+ Spamblacklist.new(self)
251
+ end
252
+ def stabilize
253
+ Stabilize.new(self)
254
+ end
255
+ def stashedit
256
+ Stashedit.new(self)
257
+ end
258
+ def strikevote
259
+ Strikevote.new(self)
260
+ end
261
+ def tag
262
+ Tag.new(self)
263
+ end
264
+ def templatedata
265
+ Templatedata.new(self)
266
+ end
267
+ def thank
268
+ Thank.new(self)
269
+ end
270
+ def titleblacklist
271
+ Titleblacklist.new(self)
272
+ end
273
+ def tokens
274
+ Tokens.new(self)
275
+ end
276
+ def transcodereset
277
+ Transcodereset.new(self)
278
+ end
279
+ def ulslocalization
280
+ Ulslocalization.new(self)
281
+ end
282
+ def unblock
283
+ Unblock.new(self)
284
+ end
285
+ def undelete
286
+ Undelete.new(self)
287
+ end
288
+ def upload
289
+ Upload.new(self)
290
+ end
291
+ def userdailycontribs
292
+ Userdailycontribs.new(self)
293
+ end
294
+ def userrights
295
+ Userrights.new(self)
296
+ end
297
+ def visualeditor
298
+ Visualeditor.new(self)
299
+ end
300
+ def visualeditoredit
301
+ Visualeditoredit.new(self)
302
+ end
303
+ def watch
304
+ Watch.new(self)
305
+ end
306
+ def wikilove
307
+ Wikilove.new(self)
308
+ end
309
+ def zeroconfig
310
+ Zeroconfig.new(self)
311
+ end
312
+ end
313
+ end
@@ -0,0 +1,9 @@
1
+ module MediaWiktory
2
+ class Addstudents < Action
3
+ symbol :addstudents
4
+ post!
5
+ param :studentusernames, Params::List[Params::String]
6
+ param :courseid, Params::Integer
7
+ param :token, Params::String
8
+ end
9
+ end
@@ -0,0 +1,15 @@
1
+ module MediaWiktory
2
+ class Allcategories < MWModule
3
+ symbol :allcategories
4
+ prefix "ac"
5
+ param :from, Params::String
6
+ param :continue, Params::String
7
+ param :to, Params::String
8
+ param :prefix, Params::String
9
+ param :dir, Params::Enum["ascending", "descending"]
10
+ param :min, Params::Integer
11
+ param :max, Params::Integer
12
+ param :limit, Params::IntegerOrMax
13
+ param :prop, Params::List[Params::Enum["size", "hidden"]]
14
+ end
15
+ end
@@ -0,0 +1,27 @@
1
+ module MediaWiktory
2
+ class Alldeletedrevisions < MWModule
3
+ symbol :alldeletedrevisions
4
+ prefix "adr"
5
+ param :prop, Params::List[Params::Enum["ids", "flags", "timestamp", "user", "userid", "size", "sha1", "contentmodel", "comment", "parsedcomment", "content", "tags", "parsetree"]]
6
+ param :limit, Params::IntegerOrMax
7
+ param :expandtemplates, Params::Boolean
8
+ param :generatexml, Params::Boolean
9
+ param :parse, Params::Boolean
10
+ param :section, Params::String
11
+ param :diffto, Params::String
12
+ param :difftotext, Params::String
13
+ param :contentformat, Params::Enum["application/json", "text/x-wiki", "text/javascript", "text/css", "text/plain"]
14
+ param :user, Params::String
15
+ 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"]]
16
+ param :start, Params::Timestamp
17
+ param :end, Params::Timestamp
18
+ param :dir, Params::Enum["newer", "older"]
19
+ param :from, Params::String
20
+ param :to, Params::String
21
+ param :prefix, Params::String
22
+ param :excludeuser, Params::String
23
+ param :tag, Params::String
24
+ param :continue, Params::String
25
+ param :generatetitles, Params::Boolean
26
+ end
27
+ end
@@ -0,0 +1,14 @@
1
+ module MediaWiktory
2
+ class Allfileusages < MWModule
3
+ symbol :allfileusages
4
+ prefix "af"
5
+ param :continue, Params::String
6
+ param :from, Params::String
7
+ param :to, Params::String
8
+ param :prefix, Params::String
9
+ param :unique, Params::Boolean
10
+ param :prop, Params::List[Params::Enum["ids", "title"]]
11
+ param :limit, Params::IntegerOrMax
12
+ param :dir, Params::Enum["ascending", "descending"]
13
+ end
14
+ end
@@ -0,0 +1,23 @@
1
+ module MediaWiktory
2
+ class Allimages < MWModule
3
+ symbol :allimages
4
+ prefix "ai"
5
+ param :sort, Params::Enum["name", "timestamp"]
6
+ param :dir, Params::Enum["ascending", "descending", "newer", "older"]
7
+ param :from, Params::String
8
+ param :to, Params::String
9
+ param :continue, Params::String
10
+ param :start, Params::Timestamp
11
+ param :end, Params::Timestamp
12
+ param :prop, Params::List[Params::Enum["timestamp", "user", "userid", "comment", "parsedcomment", "canonicaltitle", "url", "size", "dimensions", "sha1", "mime", "mediatype", "metadata", "commonmetadata", "extmetadata", "bitdepth"]]
13
+ param :prefix, Params::String
14
+ param :minsize, Params::Integer
15
+ param :maxsize, Params::Integer
16
+ param :sha1, Params::String
17
+ param :sha1base36, Params::String
18
+ param :user, Params::String
19
+ param :filterbots, Params::Enum["all", "bots", "nobots"]
20
+ param :mime, Params::List[Params::String]
21
+ param :limit, Params::IntegerOrMax
22
+ end
23
+ end
@@ -0,0 +1,15 @@
1
+ module MediaWiktory
2
+ class Alllinks < MWModule
3
+ symbol :alllinks
4
+ prefix "al"
5
+ param :continue, Params::String
6
+ param :from, Params::String
7
+ param :to, Params::String
8
+ param :prefix, Params::String
9
+ param :unique, Params::Boolean
10
+ param :prop, Params::List[Params::Enum["ids", "title"]]
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
+ param :limit, Params::IntegerOrMax
13
+ param :dir, Params::Enum["ascending", "descending"]
14
+ end
15
+ end
@@ -0,0 +1,19 @@
1
+ module MediaWiktory
2
+ class Allmessages < MWModule
3
+ symbol :allmessages
4
+ prefix "am"
5
+ param :messages, Params::List[Params::String]
6
+ param :prop, Params::List[Params::Enum["default"]]
7
+ param :enableparser, Params::Boolean
8
+ param :nocontent, Params::Boolean
9
+ param :includelocal, Params::Boolean
10
+ param :args, Params::List[Params::String]
11
+ param :filter, Params::String
12
+ param :customised, Params::Enum["all", "modified", "unmodified"]
13
+ param :lang, Params::String
14
+ param :from, Params::String
15
+ param :to, Params::String
16
+ param :title, Params::String
17
+ param :prefix, Params::String
18
+ end
19
+ end
@@ -0,0 +1,21 @@
1
+ module MediaWiktory
2
+ class Allpages < MWModule
3
+ symbol :allpages
4
+ prefix "ap"
5
+ param :from, Params::String
6
+ param :continue, Params::String
7
+ param :to, Params::String
8
+ param :prefix, Params::String
9
+ 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"]
10
+ param :filterredir, Params::Enum["all", "redirects", "nonredirects"]
11
+ param :minsize, Params::Integer
12
+ param :maxsize, Params::Integer
13
+ param :prtype, Params::List[Params::Enum["edit", "move", "upload"]]
14
+ param :prlevel, Params::List[Params::Enum["autoconfirmed", "templateeditor", "sysop", "superprotect"]]
15
+ param :prfiltercascade, Params::Enum["cascading", "noncascading", "all"]
16
+ param :limit, Params::IntegerOrMax
17
+ param :dir, Params::Enum["ascending", "descending"]
18
+ param :filterlanglinks, Params::Enum["withlanglinks", "withoutlanglinks", "all"]
19
+ param :prexpiry, Params::Enum["indefinite", "definite", "all"]
20
+ end
21
+ end
@@ -0,0 +1,15 @@
1
+ module MediaWiktory
2
+ class Allredirects < MWModule
3
+ symbol :allredirects
4
+ prefix "ar"
5
+ param :continue, Params::String
6
+ param :from, Params::String
7
+ param :to, Params::String
8
+ param :prefix, Params::String
9
+ param :unique, Params::Boolean
10
+ param :prop, Params::List[Params::Enum["ids", "title", "fragment", "interwiki"]]
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
+ param :limit, Params::IntegerOrMax
13
+ param :dir, Params::Enum["ascending", "descending"]
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ module MediaWiktory
2
+ class Alltransclusions < MWModule
3
+ symbol :alltransclusions
4
+ prefix "at"
5
+ param :continue, Params::String
6
+ param :from, Params::String
7
+ param :to, Params::String
8
+ param :prefix, Params::String
9
+ param :unique, Params::Boolean
10
+ param :prop, Params::List[Params::Enum["ids", "title"]]
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
+ param :limit, Params::IntegerOrMax
13
+ param :dir, Params::Enum["ascending", "descending"]
14
+ end
15
+ end
@@ -0,0 +1,17 @@
1
+ module MediaWiktory
2
+ class Allusers < MWModule
3
+ symbol :allusers
4
+ prefix "au"
5
+ param :from, Params::String
6
+ param :to, Params::String
7
+ param :prefix, Params::String
8
+ param :dir, Params::Enum["ascending", "descending"]
9
+ param :group, 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"]]
10
+ param :excludegroup, 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"]]
11
+ param :rights, Params::List[Params::Enum["apihighlimits", "applychangetags", "autoconfirmed", "autopatrol", "bigdelete", "block", "blockemail", "bot", "browsearchive", "changetags", "createaccount", "createpage", "createtalk", "delete", "deletedhistory", "deletedtext", "deletelogentry", "deleterevision", "edit", "editcontentmodel", "editinterface", "editprotected", "editmyoptions", "editmyprivateinfo", "editmyusercss", "editmyuserjs", "editmywatchlist", "editsemiprotected", "editusercssjs", "editusercss", "edituserjs", "hideuser", "import", "importupload", "ipblock-exempt", "managechangetags", "markbotedits", "mergehistory", "minoredit", "move", "movefile", "move-categorypages", "move-rootuserpages", "move-subpages", "nominornewtalk", "noratelimit", "override-export-depth", "pagelang", "passwordreset", "patrol", "patrolmarks", "protect", "proxyunbannable", "purge", "read", "reupload", "reupload-own", "reupload-shared", "rollback", "sendemail", "siteadmin", "suppressionlog", "suppressredirect", "suppressrevision", "unblockself", "undelete", "unwatchedpages", "upload", "upload_by_url", "userrights", "userrights-interwiki", "viewmyprivateinfo", "viewmywatchlist", "viewsuppressed", "writeapi", "spamblacklistlog", "tboverride", "tboverride-account", "titleblacklistlog", "gadgets-edit", "gadgets-definition-edit", "renameuser", "nuke", "massmessage", "gather-hidelist", "usermerge", "review", "validate", "autoreview", "autoreviewrestore", "unreviewedpages", "movestable", "stablesettings", "templateeditor", "superprotect", "editeditorprotected", "flow-edit-post", "flow-suppress", "flow-hide", "flow-delete", "transcode-reset", "transcode-status", "globalblock", "globalblock-whitelist", "globalblock-exempt", "securepoll-create-poll", "torunblocked", "skipcaptcha", "override-antispoof", "centralauth-merge", "centralauth-unmerge", "centralauth-lock", "centralauth-oversight", "globalgrouppermissions", "globalgroupmembership", "centralauth-autoaccount", "centralauth-rename", "centralauth-usermerge", "viewdeletedfile", "collectionsaveasuserpage", "collectionsaveascommunitypage", "abusefilter-modify", "abusefilter-log-detail", "abusefilter-view", "abusefilter-log", "abusefilter-modify-restricted", "abusefilter-revert", "abusefilter-view-private", "abusefilter-log-private", "abusefilter-hidden-log", "abusefilter-hide-log", "abusefilter-modify-global", "moodbar-admin", "mf-uploadbutton", "vipsscaler-test", "ep-org", "ep-course", "ep-token", "ep-enroll", "ep-remstudent", "ep-online", "ep-campus", "ep-instructor", "ep-beonline", "ep-becampus", "ep-beinstructor", "ep-bereviewer", "ep-remreviewer", "ep-bulkdelorgs", "ep-bulkdelcourses", "ep-remarticle", "ep-addstudent", "flow-lock", "flow-create-board", "mwoauthproposeconsumer", "mwoauthupdateownconsumer", "mwoauthmanageconsumer", "mwoauthsuppress", "mwoauthviewsuppressed", "mwoauthviewprivate", "mwoauthmanagemygrants", "checkuser", "checkuser-log"]]
12
+ param :prop, Params::List[Params::Enum["blockinfo", "groups", "implicitgroups", "rights", "editcount", "registration"]]
13
+ param :limit, Params::IntegerOrMax
14
+ param :witheditsonly, Params::Boolean
15
+ param :activeusers, Params::Boolean
16
+ end
17
+ end
@@ -0,0 +1,6 @@
1
+ module MediaWiktory
2
+ class Antispoof < Action
3
+ symbol :antispoof
4
+ param :username, Params::String
5
+ end
6
+ end
@@ -0,0 +1,14 @@
1
+ module MediaWiktory
2
+ class Backlinks < MWModule
3
+ symbol :backlinks
4
+ prefix "bl"
5
+ param :title, Params::String
6
+ param :pageid, Params::Integer
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["ascending", "descending"]
10
+ param :filterredir, Params::Enum["all", "redirects", "nonredirects"]
11
+ param :limit, Params::IntegerOrMax
12
+ param :redirect, Params::Boolean
13
+ end
14
+ end
@@ -0,0 +1,7 @@
1
+ module MediaWiktory
2
+ class Betafeatures < MWModule
3
+ symbol :betafeatures
4
+ prefix "bf"
5
+ param :counts, Params::String
6
+ end
7
+ end
@@ -0,0 +1,18 @@
1
+ module MediaWiktory
2
+ class Block < Action
3
+ symbol :block
4
+ post!
5
+ param :user, Params::String
6
+ param :expiry, Params::String
7
+ param :reason, Params::String
8
+ param :anononly, Params::Boolean
9
+ param :nocreate, Params::Boolean
10
+ param :autoblock, Params::Boolean
11
+ param :noemail, Params::Boolean
12
+ param :hidename, Params::Boolean
13
+ param :allowusertalk, Params::Boolean
14
+ param :reblock, Params::Boolean
15
+ param :watchuser, Params::Boolean
16
+ param :token, Params::String
17
+ end
18
+ end
@@ -0,0 +1,16 @@
1
+ module MediaWiktory
2
+ class Blocks < MWModule
3
+ symbol :blocks
4
+ prefix "bk"
5
+ param :start, Params::Timestamp
6
+ param :end, Params::Timestamp
7
+ param :dir, Params::Enum["newer", "older"]
8
+ param :ids, Params::List[Params::Integer]
9
+ param :users, Params::List[Params::String]
10
+ param :ip, Params::String
11
+ param :limit, Params::IntegerOrMax
12
+ param :prop, Params::List[Params::Enum["id", "user", "userid", "by", "byid", "timestamp", "expiry", "reason", "range", "flags"]]
13
+ param :show, Params::List[Params::Enum["account", "!account", "temp", "!temp", "ip", "!ip", "range", "!range"]]
14
+ param :continue, Params::String
15
+ end
16
+ end
@@ -0,0 +1,7 @@
1
+ module MediaWiktory
2
+ class Bouncehandler < Action
3
+ symbol :bouncehandler
4
+ post!
5
+ param :email, Params::String
6
+ end
7
+ end
@@ -0,0 +1,12 @@
1
+ module MediaWiktory
2
+ class Categories < MWModule
3
+ symbol :categories
4
+ prefix "cl"
5
+ param :prop, Params::List[Params::Enum["sortkey", "timestamp", "hidden"]]
6
+ param :show, Params::List[Params::Enum["hidden", "!hidden"]]
7
+ param :limit, Params::IntegerOrMax
8
+ param :continue, Params::String
9
+ param :categories, Params::List[Params::String]
10
+ param :dir, Params::Enum["ascending", "descending"]
11
+ end
12
+ end
@@ -0,0 +1,7 @@
1
+ module MediaWiktory
2
+ class Categoryinfo < MWModule
3
+ symbol :categoryinfo
4
+ prefix "ci"
5
+ param :continue, Params::String
6
+ end
7
+ end
@@ -0,0 +1,23 @@
1
+ module MediaWiktory
2
+ class Categorymembers < MWModule
3
+ symbol :categorymembers
4
+ prefix "cm"
5
+ param :title, Params::String
6
+ param :pageid, Params::Integer
7
+ param :prop, Params::List[Params::Enum["ids", "title", "sortkey", "sortkeyprefix", "type", "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 :type, Params::List[Params::Enum["page", "subcat", "file"]]
10
+ param :continue, Params::String
11
+ param :limit, Params::IntegerOrMax
12
+ param :sort, Params::Enum["sortkey", "timestamp"]
13
+ param :dir, Params::Enum["asc", "desc", "ascending", "descending", "newer", "older"]
14
+ param :start, Params::Timestamp
15
+ param :end, Params::Timestamp
16
+ param :starthexsortkey, Params::String
17
+ param :endhexsortkey, Params::String
18
+ param :startsortkeyprefix, Params::String
19
+ param :endsortkeyprefix, Params::String
20
+ param :startsortkey, Params::String
21
+ param :endsortkey, Params::String
22
+ end
23
+ end
@@ -0,0 +1,5 @@
1
+ module MediaWiktory
2
+ class Centralauthtoken < Action
3
+ symbol :centralauthtoken
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ module MediaWiktory
2
+ class Centralnoticechoicedata < Action
3
+ symbol :centralnoticechoicedata
4
+ param :project, Params::String
5
+ param :language, Params::String
6
+ end
7
+ end