mediawiktory 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/mediawiktory/action.rb +5 -1
- data/lib/mediawiktory/generated/actions_mixin.rb +57 -18
- data/lib/mediawiktory/generated/alldeletedrevisions.rb +2 -1
- data/lib/mediawiktory/generated/allimages.rb +1 -1
- data/lib/mediawiktory/generated/alllinks.rb +1 -1
- data/lib/mediawiktory/generated/allpages.rb +2 -2
- data/lib/mediawiktory/generated/allredirects.rb +1 -1
- data/lib/mediawiktory/generated/allrevisions.rb +24 -0
- data/lib/mediawiktory/generated/alltransclusions.rb +1 -1
- data/lib/mediawiktory/generated/allusers.rb +5 -4
- data/lib/mediawiktory/generated/authmanagerinfo.rb +10 -0
- data/lib/mediawiktory/generated/babel.rb +7 -0
- data/lib/mediawiktory/generated/backlinks.rb +1 -1
- data/lib/mediawiktory/generated/block.rb +2 -0
- data/lib/mediawiktory/generated/categorymembers.rb +1 -1
- data/lib/mediawiktory/generated/categorytree.rb +7 -0
- data/lib/mediawiktory/generated/changeauthenticationdata.rb +10 -0
- data/lib/mediawiktory/generated/checktoken.rb +1 -1
- data/lib/mediawiktory/generated/clearhasmsg.rb +1 -0
- data/lib/mediawiktory/generated/clientlogin.rb +15 -0
- data/lib/mediawiktory/generated/contenttranslationcorpora.rb +8 -0
- data/lib/mediawiktory/generated/contenttranslationsuggestions.rb +1 -0
- data/lib/mediawiktory/generated/contributors.rb +4 -4
- data/lib/mediawiktory/generated/createaccount.rb +8 -11
- data/lib/mediawiktory/generated/cspreport.rb +8 -0
- data/lib/mediawiktory/generated/cxdelete.rb +1 -1
- data/lib/mediawiktory/generated/cxpublish.rb +1 -4
- data/lib/mediawiktory/generated/cxsave.rb +14 -0
- data/lib/mediawiktory/generated/cxsuggestionlist.rb +12 -0
- data/lib/mediawiktory/generated/cxtranslatorstats.rb +6 -0
- data/lib/mediawiktory/generated/delete.rb +1 -0
- data/lib/mediawiktory/generated/deletedrevisions.rb +1 -0
- data/lib/mediawiktory/generated/deletedrevs.rb +1 -1
- data/lib/mediawiktory/generated/echomarkread.rb +1 -0
- data/lib/mediawiktory/generated/echomarkseen.rb +1 -0
- data/lib/mediawiktory/generated/edit.rb +2 -2
- data/lib/mediawiktory/generated/embeddedin.rb +1 -1
- data/lib/mediawiktory/generated/expandtemplates.rb +5 -0
- data/lib/mediawiktory/generated/extracts.rb +0 -1
- data/lib/mediawiktory/generated/exturlusage.rb +1 -1
- data/lib/mediawiktory/generated/feedcontributions.rb +3 -2
- data/lib/mediawiktory/generated/feedrecentchanges.rb +2 -1
- data/lib/mediawiktory/generated/feedwatchlist.rb +1 -1
- data/lib/mediawiktory/generated/fileusage.rb +1 -1
- data/lib/mediawiktory/generated/geosearch.rb +3 -1
- data/lib/mediawiktory/generated/globalallusers.rb +2 -2
- data/lib/mediawiktory/generated/globalblock.rb +1 -0
- data/lib/mediawiktory/generated/globaluserrights.rb +3 -2
- data/lib/mediawiktory/generated/graph.rb +8 -0
- data/lib/mediawiktory/generated/imageinfo.rb +2 -1
- data/lib/mediawiktory/generated/imageusage.rb +1 -1
- data/lib/mediawiktory/generated/import.rb +2 -1
- data/lib/mediawiktory/generated/info.rb +1 -1
- data/lib/mediawiktory/generated/jsonconfig.rb +1 -0
- data/lib/mediawiktory/generated/jsondata.rb +6 -0
- data/lib/mediawiktory/generated/linkaccount.rb +14 -0
- data/lib/mediawiktory/generated/links.rb +1 -1
- data/lib/mediawiktory/generated/linkshere.rb +1 -1
- data/lib/mediawiktory/generated/logevents.rb +3 -3
- data/lib/mediawiktory/generated/managetags.rb +1 -0
- data/lib/mediawiktory/generated/mapdata.rb +9 -0
- data/lib/mediawiktory/generated/mergehistory.rb +13 -0
- data/lib/mediawiktory/generated/mobileview.rb +1 -0
- data/lib/mediawiktory/generated/mostviewed.rb +9 -0
- data/lib/mediawiktory/generated/move.rb +1 -0
- data/lib/mediawiktory/generated/mystashedfiles.rb +9 -0
- data/lib/mediawiktory/generated/notifications.rb +8 -3
- data/lib/mediawiktory/generated/oath.rb +7 -0
- data/lib/mediawiktory/generated/oathvalidate.rb +9 -0
- data/lib/mediawiktory/generated/oldreviewedpages.rb +1 -1
- data/lib/mediawiktory/generated/opensearch.rb +1 -1
- data/lib/mediawiktory/generated/ores.rb +6 -0
- data/lib/mediawiktory/generated/pageassessments.rb +9 -0
- data/lib/mediawiktory/generated/pageimages.rb +2 -1
- data/lib/mediawiktory/generated/pageviews.rb +9 -0
- data/lib/mediawiktory/generated/paraminfo.rb +2 -2
- data/lib/mediawiktory/generated/parse.rb +6 -1
- data/lib/mediawiktory/generated/patrol.rb +1 -0
- data/lib/mediawiktory/generated/prefixsearch.rb +1 -1
- data/lib/mediawiktory/generated/projectpages.rb +10 -0
- data/lib/mediawiktory/generated/projects.rb +7 -0
- data/lib/mediawiktory/generated/protect.rb +1 -0
- data/lib/mediawiktory/generated/protectedtitles.rb +2 -2
- data/lib/mediawiktory/generated/purge.rb +1 -1
- data/lib/mediawiktory/generated/query.rb +4 -4
- data/lib/mediawiktory/generated/querypage.rb +1 -1
- data/lib/mediawiktory/generated/random.rb +1 -1
- data/lib/mediawiktory/generated/recentchanges.rb +3 -2
- data/lib/mediawiktory/generated/redirects.rb +1 -1
- data/lib/mediawiktory/generated/references.rb +7 -0
- data/lib/mediawiktory/generated/removeauthenticationdata.rb +8 -0
- data/lib/mediawiktory/generated/resetpassword.rb +9 -0
- data/lib/mediawiktory/generated/revisiondelete.rb +1 -0
- data/lib/mediawiktory/generated/revisions.rb +1 -0
- data/lib/mediawiktory/generated/rollback.rb +1 -0
- data/lib/mediawiktory/generated/sanitize-mapdata.rb +8 -0
- data/lib/mediawiktory/generated/search.rb +4 -3
- data/lib/mediawiktory/generated/setglobalaccountstatus.rb +1 -1
- data/lib/mediawiktory/generated/setnotificationtimestamp.rb +1 -1
- data/lib/mediawiktory/generated/setpagelanguage.rb +12 -0
- data/lib/mediawiktory/generated/shortenurl.rb +7 -0
- data/lib/mediawiktory/generated/siteinfo.rb +1 -1
- data/lib/mediawiktory/generated/sitematrix.rb +1 -1
- data/lib/mediawiktory/generated/siteviews.rb +8 -0
- data/lib/mediawiktory/generated/stabilize.rb +1 -1
- data/lib/mediawiktory/generated/stashedit.rb +3 -1
- data/lib/mediawiktory/generated/stashimageinfo.rb +1 -1
- data/lib/mediawiktory/generated/tag.rb +2 -1
- data/lib/mediawiktory/generated/templatedata.rb +1 -2
- data/lib/mediawiktory/generated/templates.rb +1 -1
- data/lib/mediawiktory/generated/titleblacklist.rb +1 -1
- data/lib/mediawiktory/generated/tokens.rb +1 -1
- data/lib/mediawiktory/generated/transcludedin.rb +1 -1
- data/lib/mediawiktory/generated/unblock.rb +2 -0
- data/lib/mediawiktory/generated/undelete.rb +1 -0
- data/lib/mediawiktory/generated/unlinkaccount.rb +8 -0
- data/lib/mediawiktory/generated/unreadnotificationpages.rb +9 -0
- data/lib/mediawiktory/generated/upload.rb +1 -3
- data/lib/mediawiktory/generated/usercontribs.rb +2 -1
- data/lib/mediawiktory/generated/userinfo.rb +2 -1
- data/lib/mediawiktory/generated/userrights.rb +3 -2
- data/lib/mediawiktory/generated/users.rb +3 -1
- data/lib/mediawiktory/generated/validatepassword.rb +10 -0
- data/lib/mediawiktory/generated/videoinfo.rb +7 -1
- data/lib/mediawiktory/generated/visualeditor.rb +3 -3
- data/lib/mediawiktory/generated/visualeditoredit.rb +4 -0
- data/lib/mediawiktory/generated/watch.rb +1 -1
- data/lib/mediawiktory/generated/watchlist.rb +2 -2
- data/lib/mediawiktory/generated/watchlistraw.rb +2 -2
- data/lib/mediawiktory/generated/wbentityusage.rb +11 -0
- data/lib/mediawiktory/generated/wblistentityusage.rb +11 -0
- data/lib/mediawiktory/generated/webapp-manifest.rb +5 -0
- data/lib/mediawiktory/generated/wikilove.rb +1 -0
- data/lib/mediawiktory/page.rb +6 -2
- data/lib/mediawiktory/version.rb +1 -1
- data/script/data/api.yaml +10104 -9929
- data/script/lib/parameter.rb +11 -8
- metadata +41 -33
- data/lib/mediawiktory/generated/cirrus-suggest.rb +0 -8
- data/lib/mediawiktory/generated/close-open-topic.rb +0 -10
- data/lib/mediawiktory/generated/edit-header.rb +0 -11
- data/lib/mediawiktory/generated/edit-post.rb +0 -12
- data/lib/mediawiktory/generated/edit-title.rb +0 -10
- data/lib/mediawiktory/generated/edit-topic-summary.rb +0 -11
- data/lib/mediawiktory/generated/editlist.rb +0 -20
- data/lib/mediawiktory/generated/flow-parsoid-utils.rb +0 -10
- data/lib/mediawiktory/generated/flow.rb +0 -8
- data/lib/mediawiktory/generated/flowinfo.rb +0 -6
- data/lib/mediawiktory/generated/flowthank.rb +0 -8
- data/lib/mediawiktory/generated/listmembership.rb +0 -10
- data/lib/mediawiktory/generated/listpages.rb +0 -14
- data/lib/mediawiktory/generated/lists.rb +0 -15
- data/lib/mediawiktory/generated/lock-topic.rb +0 -10
- data/lib/mediawiktory/generated/moderate-post.rb +0 -11
- data/lib/mediawiktory/generated/moderate-topic.rb +0 -10
- data/lib/mediawiktory/generated/new-topic.rb +0 -11
- data/lib/mediawiktory/generated/reply.rb +0 -11
- data/lib/mediawiktory/generated/undo-edit-header.rb +0 -8
- data/lib/mediawiktory/generated/undo-edit-post.rb +0 -8
- data/lib/mediawiktory/generated/undo-edit-topic-summary.rb +0 -8
- data/lib/mediawiktory/generated/userdailycontribs.rb +0 -8
- data/lib/mediawiktory/generated/view-header.rb +0 -8
- data/lib/mediawiktory/generated/view-post-history.rb +0 -8
- data/lib/mediawiktory/generated/view-post.rb +0 -8
- data/lib/mediawiktory/generated/view-topic-history.rb +0 -7
- data/lib/mediawiktory/generated/view-topic-summary.rb +0 -8
- data/lib/mediawiktory/generated/view-topic.rb +0 -7
- data/lib/mediawiktory/generated/view-topiclist.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 653255269bbd0a100edd618e44a25050ccb9b0cc
|
4
|
+
data.tar.gz: 072d290adc899957ec46bdf787b30eee5cd6ed32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f681541924daaac250a2ba34775fb4fcbf1312217d31199545d4bfcaed7cf2f428a0961728136153d0793d13c1ec9efbf37dfbc9e6bf3670151e88c8c7a5440
|
7
|
+
data.tar.gz: bcce8fcff0eb4d3f18839b38d3fd00e6f1dee1bc421ca4b061319c5d05caed70b7e3dc7d391abf53905a76288d8b97817e28c1e7cecc402ab8ade3ecc1f97de0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# MediaWiktory Changelog
|
2
2
|
|
3
|
+
# 0.0.3 (18.03.2017)
|
4
|
+
|
5
|
+
* Regenerated Wikipedia wrapper in correspondence to current API version;
|
6
|
+
* Preparing to independent wrappers concept.
|
7
|
+
|
3
8
|
# 0.0.2 (21.11.2015)
|
4
9
|
|
5
10
|
* `Page` class for grouping records in `Query::Response`;
|
data/lib/mediawiktory/action.rb
CHANGED
@@ -2,6 +2,10 @@ require 'json'
|
|
2
2
|
require 'hashie'
|
3
3
|
|
4
4
|
module MediaWiktory
|
5
|
+
class Mash < Hashie::Mash
|
6
|
+
disable_warnings
|
7
|
+
end
|
8
|
+
|
5
9
|
class Action < MWModule
|
6
10
|
attr_reader :client
|
7
11
|
|
@@ -33,7 +37,7 @@ module MediaWiktory
|
|
33
37
|
|
34
38
|
def initialize(action, raw)
|
35
39
|
@action = action
|
36
|
-
@raw =
|
40
|
+
@raw = Mash.new(raw)
|
37
41
|
raise RequestError, @raw.error.info unless @raw.error.nil?
|
38
42
|
end
|
39
43
|
|
@@ -24,6 +24,9 @@ module MediaWiktory
|
|
24
24
|
def bouncehandler
|
25
25
|
Bouncehandler.new(self)
|
26
26
|
end
|
27
|
+
def categorytree
|
28
|
+
Categorytree.new(self)
|
29
|
+
end
|
27
30
|
def centralauthtoken
|
28
31
|
Centralauthtoken.new(self)
|
29
32
|
end
|
@@ -33,6 +36,9 @@ module MediaWiktory
|
|
33
36
|
def centralnoticequerycampaign
|
34
37
|
Centralnoticequerycampaign.new(self)
|
35
38
|
end
|
39
|
+
def changeauthenticationdata
|
40
|
+
Changeauthenticationdata.new(self)
|
41
|
+
end
|
36
42
|
def checktoken
|
37
43
|
Checktoken.new(self)
|
38
44
|
end
|
@@ -45,18 +51,21 @@ module MediaWiktory
|
|
45
51
|
def cirrus_settings_dump
|
46
52
|
CirrusSettingsDump.new(self)
|
47
53
|
end
|
48
|
-
def cirrus_suggest
|
49
|
-
CirrusSuggest.new(self)
|
50
|
-
end
|
51
54
|
def clearhasmsg
|
52
55
|
Clearhasmsg.new(self)
|
53
56
|
end
|
57
|
+
def clientlogin
|
58
|
+
Clientlogin.new(self)
|
59
|
+
end
|
54
60
|
def compare
|
55
61
|
Compare.new(self)
|
56
62
|
end
|
57
63
|
def createaccount
|
58
64
|
Createaccount.new(self)
|
59
65
|
end
|
66
|
+
def cspreport
|
67
|
+
Cspreport.new(self)
|
68
|
+
end
|
60
69
|
def cxconfiguration
|
61
70
|
Cxconfiguration.new(self)
|
62
71
|
end
|
@@ -66,6 +75,12 @@ module MediaWiktory
|
|
66
75
|
def cxpublish
|
67
76
|
Cxpublish.new(self)
|
68
77
|
end
|
78
|
+
def cxsave
|
79
|
+
Cxsave.new(self)
|
80
|
+
end
|
81
|
+
def cxsuggestionlist
|
82
|
+
Cxsuggestionlist.new(self)
|
83
|
+
end
|
69
84
|
def cxtoken
|
70
85
|
Cxtoken.new(self)
|
71
86
|
end
|
@@ -87,9 +102,6 @@ module MediaWiktory
|
|
87
102
|
def edit
|
88
103
|
Edit.new(self)
|
89
104
|
end
|
90
|
-
def editlist
|
91
|
-
Editlist.new(self)
|
92
|
-
end
|
93
105
|
def editmassmessagelist
|
94
106
|
Editmassmessagelist.new(self)
|
95
107
|
end
|
@@ -123,21 +135,15 @@ module MediaWiktory
|
|
123
135
|
def flagconfig
|
124
136
|
Flagconfig.new(self)
|
125
137
|
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
138
|
def globalblock
|
136
139
|
Globalblock.new(self)
|
137
140
|
end
|
138
141
|
def globaluserrights
|
139
142
|
Globaluserrights.new(self)
|
140
143
|
end
|
144
|
+
def graph
|
145
|
+
Graph.new(self)
|
146
|
+
end
|
141
147
|
def help
|
142
148
|
Help.new(self)
|
143
149
|
end
|
@@ -150,9 +156,15 @@ module MediaWiktory
|
|
150
156
|
def jsonconfig
|
151
157
|
Jsonconfig.new(self)
|
152
158
|
end
|
159
|
+
def jsondata
|
160
|
+
Jsondata.new(self)
|
161
|
+
end
|
153
162
|
def languagesearch
|
154
163
|
Languagesearch.new(self)
|
155
164
|
end
|
165
|
+
def linkaccount
|
166
|
+
Linkaccount.new(self)
|
167
|
+
end
|
156
168
|
def liststudents
|
157
169
|
Liststudents.new(self)
|
158
170
|
end
|
@@ -168,12 +180,18 @@ module MediaWiktory
|
|
168
180
|
def massmessage
|
169
181
|
Massmessage.new(self)
|
170
182
|
end
|
183
|
+
def mergehistory
|
184
|
+
Mergehistory.new(self)
|
185
|
+
end
|
171
186
|
def mobileview
|
172
187
|
Mobileview.new(self)
|
173
188
|
end
|
174
189
|
def move
|
175
190
|
Move.new(self)
|
176
191
|
end
|
192
|
+
def oathvalidate
|
193
|
+
Oathvalidate.new(self)
|
194
|
+
end
|
177
195
|
def opensearch
|
178
196
|
Opensearch.new(self)
|
179
197
|
end
|
@@ -219,6 +237,12 @@ module MediaWiktory
|
|
219
237
|
def refresheducation
|
220
238
|
Refresheducation.new(self)
|
221
239
|
end
|
240
|
+
def removeauthenticationdata
|
241
|
+
Removeauthenticationdata.new(self)
|
242
|
+
end
|
243
|
+
def resetpassword
|
244
|
+
Resetpassword.new(self)
|
245
|
+
end
|
222
246
|
def review
|
223
247
|
Review.new(self)
|
224
248
|
end
|
@@ -234,6 +258,9 @@ module MediaWiktory
|
|
234
258
|
def rsd
|
235
259
|
Rsd.new(self)
|
236
260
|
end
|
261
|
+
def sanitize_mapdata
|
262
|
+
SanitizeMapdata.new(self)
|
263
|
+
end
|
237
264
|
def scribunto_console
|
238
265
|
ScribuntoConsole.new(self)
|
239
266
|
end
|
@@ -243,6 +270,12 @@ module MediaWiktory
|
|
243
270
|
def setnotificationtimestamp
|
244
271
|
Setnotificationtimestamp.new(self)
|
245
272
|
end
|
273
|
+
def setpagelanguage
|
274
|
+
Setpagelanguage.new(self)
|
275
|
+
end
|
276
|
+
def shortenurl
|
277
|
+
Shortenurl.new(self)
|
278
|
+
end
|
246
279
|
def sitematrix
|
247
280
|
Sitematrix.new(self)
|
248
281
|
end
|
@@ -285,15 +318,18 @@ module MediaWiktory
|
|
285
318
|
def undelete
|
286
319
|
Undelete.new(self)
|
287
320
|
end
|
321
|
+
def unlinkaccount
|
322
|
+
Unlinkaccount.new(self)
|
323
|
+
end
|
288
324
|
def upload
|
289
325
|
Upload.new(self)
|
290
326
|
end
|
291
|
-
def userdailycontribs
|
292
|
-
Userdailycontribs.new(self)
|
293
|
-
end
|
294
327
|
def userrights
|
295
328
|
Userrights.new(self)
|
296
329
|
end
|
330
|
+
def validatepassword
|
331
|
+
Validatepassword.new(self)
|
332
|
+
end
|
297
333
|
def visualeditor
|
298
334
|
Visualeditor.new(self)
|
299
335
|
end
|
@@ -303,6 +339,9 @@ module MediaWiktory
|
|
303
339
|
def watch
|
304
340
|
Watch.new(self)
|
305
341
|
end
|
342
|
+
def webapp_manifest
|
343
|
+
WebappManifest.new(self)
|
344
|
+
end
|
306
345
|
def wikilove
|
307
346
|
Wikilove.new(self)
|
308
347
|
end
|
@@ -10,9 +10,10 @@ module MediaWiktory
|
|
10
10
|
param :section, Params::String
|
11
11
|
param :diffto, Params::String
|
12
12
|
param :difftotext, Params::String
|
13
|
+
param :difftotextpst, Params::Boolean
|
13
14
|
param :contentformat, Params::Enum[:"application/json", :"text/x-wiki", :"text/javascript", :"text/css", :"text/plain"]
|
14
15
|
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", :"
|
16
|
+
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", :"446", :"447", :"710", :"711", :"828", :"829", :"2300", :"2301", :"2302", :"2303"]]
|
16
17
|
param :start, Params::Timestamp
|
17
18
|
param :end, Params::Timestamp
|
18
19
|
param :dir, Params::Enum[:newer, :older]
|
@@ -9,7 +9,7 @@ module MediaWiktory
|
|
9
9
|
param :continue, Params::String
|
10
10
|
param :start, Params::Timestamp
|
11
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]]
|
12
|
+
param :prop, Params::List[Params::Enum[:timestamp, :user, :userid, :comment, :parsedcomment, :canonicaltitle, :url, :size, :dimensions, :sha1, :mime, :mediatype, :metadata, :commonmetadata, :extmetadata, :bitdepth, :badfile]]
|
13
13
|
param :prefix, Params::String
|
14
14
|
param :minsize, Params::Integer
|
15
15
|
param :maxsize, Params::Integer
|
@@ -8,7 +8,7 @@ module MediaWiktory
|
|
8
8
|
param :prefix, Params::String
|
9
9
|
param :unique, Params::Boolean
|
10
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", :"
|
11
|
+
param :namespace, Params::Enum[:"-2", :"-1", :"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"446", :"447", :"710", :"711", :"828", :"829", :"2300", :"2301", :"2302", :"2303"]
|
12
12
|
param :limit, Params::IntegerOrMax
|
13
13
|
param :dir, Params::Enum[:ascending, :descending]
|
14
14
|
end
|
@@ -6,12 +6,12 @@ module MediaWiktory
|
|
6
6
|
param :continue, Params::String
|
7
7
|
param :to, Params::String
|
8
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", :"
|
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", :"446", :"447", :"710", :"711", :"828", :"829", :"2300", :"2301", :"2302", :"2303"]
|
10
10
|
param :filterredir, Params::Enum[:all, :redirects, :nonredirects]
|
11
11
|
param :minsize, Params::Integer
|
12
12
|
param :maxsize, Params::Integer
|
13
13
|
param :prtype, Params::List[Params::Enum[:edit, :move, :upload]]
|
14
|
-
param :prlevel, Params::List[Params::Enum[:autoconfirmed, :
|
14
|
+
param :prlevel, Params::List[Params::Enum[:autoconfirmed, :extendedconfirmed, :templateeditor, :sysop]]
|
15
15
|
param :prfiltercascade, Params::Enum[:cascading, :noncascading, :all]
|
16
16
|
param :limit, Params::IntegerOrMax
|
17
17
|
param :dir, Params::Enum[:ascending, :descending]
|
@@ -8,7 +8,7 @@ module MediaWiktory
|
|
8
8
|
param :prefix, Params::String
|
9
9
|
param :unique, Params::Boolean
|
10
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", :"
|
11
|
+
param :namespace, Params::Enum[:"-2", :"-1", :"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"446", :"447", :"710", :"711", :"828", :"829", :"2300", :"2301", :"2302", :"2303"]
|
12
12
|
param :limit, Params::IntegerOrMax
|
13
13
|
param :dir, Params::Enum[:ascending, :descending]
|
14
14
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Allrevisions < MWModule
|
3
|
+
symbol :allrevisions
|
4
|
+
prefix "arv"
|
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 :difftotextpst, Params::Boolean
|
14
|
+
param :contentformat, Params::Enum[:"application/json", :"text/x-wiki", :"text/javascript", :"text/css", :"text/plain"]
|
15
|
+
param :user, Params::String
|
16
|
+
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", :"446", :"447", :"710", :"711", :"828", :"829", :"2300", :"2301", :"2302", :"2303"]]
|
17
|
+
param :start, Params::Timestamp
|
18
|
+
param :end, Params::Timestamp
|
19
|
+
param :dir, Params::Enum[:newer, :older]
|
20
|
+
param :excludeuser, Params::String
|
21
|
+
param :continue, Params::String
|
22
|
+
param :generatetitles, Params::Boolean
|
23
|
+
end
|
24
|
+
end
|
@@ -8,7 +8,7 @@ module MediaWiktory
|
|
8
8
|
param :prefix, Params::String
|
9
9
|
param :unique, Params::Boolean
|
10
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", :"
|
11
|
+
param :namespace, Params::Enum[:"-2", :"-1", :"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"446", :"447", :"710", :"711", :"828", :"829", :"2300", :"2301", :"2302", :"2303"]
|
12
12
|
param :limit, Params::IntegerOrMax
|
13
13
|
param :dir, Params::Enum[:ascending, :descending]
|
14
14
|
end
|
@@ -6,12 +6,13 @@ module MediaWiktory
|
|
6
6
|
param :to, Params::String
|
7
7
|
param :prefix, Params::String
|
8
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", :
|
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", :
|
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, :
|
12
|
-
param :prop, Params::List[Params::Enum[:blockinfo, :groups, :implicitgroups, :rights, :editcount, :registration]]
|
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", :extendedconfirmed, :extendedmover, :patroller, :abusefilter, :epcoordinator, :eponline, :epcampus, :epinstructor, :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", :extendedconfirmed, :extendedmover, :patroller, :abusefilter, :epcoordinator, :eponline, :epcampus, :epinstructor, :confirmed]]
|
11
|
+
param :rights, Params::List[Params::Enum[:apihighlimits, :applychangetags, :autoconfirmed, :autocreateaccount, :autopatrol, :bigdelete, :block, :blockemail, :bot, :browsearchive, :changetags, :createaccount, :createpage, :createtalk, :delete, :deletechangetags, :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, :patrol, :patrolmarks, :protect, :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", :globalblock, :"globalblock-whitelist", :"globalblock-exempt", :"securepoll-create-poll", :renameuser, :nuke, :torunblocked, :skipcaptcha, :"override-antispoof", :"centralauth-merge", :"centralauth-unmerge", :"centralauth-lock", :"centralauth-oversight", :globalgrouppermissions, :globalgroupmembership, :"centralauth-rename", :"centralauth-usermerge", :"abusefilter-modify", :"abusefilter-log-detail", :"abusefilter-view", :"abusefilter-log", :"abusefilter-private", :"abusefilter-modify-restricted", :"abusefilter-revert", :"abusefilter-view-private", :"abusefilter-log-private", :"abusefilter-hidden-log", :"abusefilter-hide-log", :"abusefilter-modify-global", :massmessage, :"vipsscaler-test", :usermerge, :mwoauthproposeconsumer, :mwoauthupdateownconsumer, :mwoauthmanageconsumer, :mwoauthsuppress, :mwoauthviewsuppressed, :mwoauthviewprivate, :mwoauthmanagemygrants, :"oathauth-enable", :"oathauth-api-all", :checkuser, :"checkuser-log", :autoreviewrestore, :stablesettings, :review, :unreviewedpages, :movestable, :validate, :templateeditor, :editeditorprotected, :editextendedsemiprotected, :extendedconfirmed, :"flow-create-board", :"flow-edit-post", :"flow-suppress", :"flow-hide", :"flow-delete", :viewdeletedfile, :autoreview, :"transcode-reset", :"transcode-status", :collectionsaveasuserpage, :collectionsaveascommunitypage, :"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"]]
|
12
|
+
param :prop, Params::List[Params::Enum[:blockinfo, :groups, :implicitgroups, :rights, :editcount, :registration, :centralids]]
|
13
13
|
param :limit, Params::IntegerOrMax
|
14
14
|
param :witheditsonly, Params::Boolean
|
15
15
|
param :activeusers, Params::Boolean
|
16
|
+
param :attachedwiki, Params::String
|
16
17
|
end
|
17
18
|
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module MediaWiktory
|
2
|
+
class Authmanagerinfo < MWModule
|
3
|
+
symbol :authmanagerinfo
|
4
|
+
prefix "ami"
|
5
|
+
param :securitysensitiveoperation, Params::String
|
6
|
+
param :requestsfor, Params::Enum[:login, :"login-continue", :create, :"create-continue", :link, :"link-continue", :change, :remove, :unlink]
|
7
|
+
param :mergerequestfields, Params::Boolean
|
8
|
+
param :messageformat, Params::Enum[:html, :wikitext, :raw, :none]
|
9
|
+
end
|
10
|
+
end
|
@@ -5,7 +5,7 @@ module MediaWiktory
|
|
5
5
|
param :title, Params::String
|
6
6
|
param :pageid, Params::Integer
|
7
7
|
param :continue, Params::String
|
8
|
-
param :namespace, Params::List[Params::Enum[:"0", :"1", :"2", :"3", :"4", :"5", :"6", :"7", :"8", :"9", :"10", :"11", :"12", :"13", :"14", :"15", :"100", :"101", :"108", :"109", :"118", :"119", :"
|
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", :"446", :"447", :"710", :"711", :"828", :"829", :"2300", :"2301", :"2302", :"2303"]]
|
9
9
|
param :dir, Params::Enum[:ascending, :descending]
|
10
10
|
param :filterredir, Params::Enum[:all, :redirects, :nonredirects]
|
11
11
|
param :limit, Params::IntegerOrMax
|
@@ -3,6 +3,7 @@ module MediaWiktory
|
|
3
3
|
symbol :block
|
4
4
|
post!
|
5
5
|
param :user, Params::String
|
6
|
+
param :userid, Params::Integer
|
6
7
|
param :expiry, Params::String
|
7
8
|
param :reason, Params::String
|
8
9
|
param :anononly, Params::Boolean
|
@@ -13,6 +14,7 @@ module MediaWiktory
|
|
13
14
|
param :allowusertalk, Params::Boolean
|
14
15
|
param :reblock, Params::Boolean
|
15
16
|
param :watchuser, Params::Boolean
|
17
|
+
param :tags, Params::List[Params::Enum[:Noticeboarddisruption, :ProveItedit, :WPCleaner, :huggle, :largeplotaddition]]
|
16
18
|
param :token, Params::String
|
17
19
|
end
|
18
20
|
end
|
@@ -5,7 +5,7 @@ module MediaWiktory
|
|
5
5
|
param :title, Params::String
|
6
6
|
param :pageid, Params::Integer
|
7
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", :"
|
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", :"446", :"447", :"710", :"711", :"828", :"829", :"2300", :"2301", :"2302", :"2303"]]
|
9
9
|
param :type, Params::List[Params::Enum[:page, :subcat, :file]]
|
10
10
|
param :continue, Params::String
|
11
11
|
param :limit, Params::IntegerOrMax
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module MediaWiktory
|
2
2
|
class Checktoken < Action
|
3
3
|
symbol :checktoken
|
4
|
-
param :type, Params::Enum[:csrf, :deleteglobalaccount, :patrol, :rollback, :setglobalaccountstatus, :userrights, :watch]
|
4
|
+
param :type, Params::Enum[:createaccount, :csrf, :deleteglobalaccount, :login, :patrol, :rollback, :setglobalaccountstatus, :userrights, :watch]
|
5
5
|
param :token, Params::String
|
6
6
|
param :maxtokenage, Params::Integer
|
7
7
|
end
|