e621_openapi 1.0.385

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1517 @@
1
+ # Generated by scripts/generate.rb from the E621OpenAPI spec, don't edit by hand.
2
+
3
+ module E621OpenAPI
4
+ module Operations
5
+ # API Keys Index
6
+ #
7
+ # Requires [browser authentication](#operations-Sessions-login) (username & password), as well as hourly password confirmations (reauthentication).
8
+ def api_keys_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id" | "id_asc" | "id_desc" | "name" | "name_asc" | "name_desc" | "created_at" | "created_at_asc" | "created_at_desc" | "updated_at" | "updated_at_asc" | "updated_at_desc" | "expires_at" | "expires_at_asc" | "expires_at_desc" | "last_used_at" | "last_used_at_asc" | "last_used_at_desc"), ?name_matches: String, ?is_expired: bool }) -> Array[Types::api_key]
9
+
10
+ # Create API Key
11
+ #
12
+ # Requires [browser authentication](#operations-Sessions-login) (username & password), as well as hourly password confirmations (reauthentication).
13
+ def api_keys_create: (authenticity_token: String, api_key: { name: String, ?duration: (Integer | ("never" | "custom")), ?expires_at: String }) -> Types::api_key
14
+
15
+ # Delete API Key
16
+ #
17
+ # Requires [browser authentication](#operations-Sessions-login) (username & password), as well as hourly password confirmations (reauthentication).
18
+ def api_keys_destroy: (Integer id) -> nil
19
+
20
+ # Regenerate API Key
21
+ #
22
+ # Requires [browser authentication](#operations-Sessions-login) (username & password), as well as hourly password confirmations (reauthentication).
23
+ def api_keys_regenerate: (Integer id, authenticity_token: String) -> Types::api_key
24
+
25
+ # Appeals Index
26
+ #
27
+ # Requires Janitor+ to see appeals not created by you.
28
+ def appeals_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc"), ?creator_id: Integer, ?creator_name: String, ?claimant_id: Integer, ?claimant_name: String, ?accused_id: Integer, ?accused_name: String, ?qtype: Types::appeal_type, ?status: ("pending" | "partial" | "approved" | "rejected" | "pending_claimed" | "pending_unclaimed") }) -> Array[Types::appeal]
29
+
30
+ # Get Appeal
31
+ #
32
+ # Requires Janitor+ to see appeals not created by you.
33
+ def appeals_show: (Integer id) -> Types::appeal
34
+
35
+ # Update Appeal
36
+ #
37
+ # You must be Janitor+.
38
+ def appeals_update: (Integer id, ?appeal: { ?status: ("partial" | "approved"), ?response: String, ?send_update_dmail: bool }) -> nil
39
+
40
+ # Claim Appeal
41
+ #
42
+ # You must be Janitor+
43
+ def appeals_claim: (Integer id) -> Types::appeal
44
+
45
+ # Unclaim Appeal
46
+ #
47
+ # You must be Janitor+
48
+ def appeals_unclaim: (Integer id) -> Types::appeal
49
+
50
+ # Artists Index
51
+ def artists_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "updated_at" | "name" | "post_count"), ?name: String, ?group_name: String, ?any_other_name_like: String, ?any_name_matches: String, ?any_name_or_url_matches: String, ?url_matches: String, ?creator_name: String, ?creator_id: Integer, ?has_tag: bool, ?is_linked: String, ?linked_user_id: Integer, ?linked_user_name: String }) -> Array[{ id: Integer, name: String, updated_at: String, is_active: bool, other_names: Array[String], group_name: String, linked_user_id: Integer?, created_at: String, creator_id: Integer, is_locked: bool, notes: String?, urls: Array[Types::artist_url] }]
52
+
53
+ # Create Artist
54
+ #
55
+ # `other_names` & `urls` are silently truncated to 25 entries.
56
+ # `notes` is silently truncated to the wiki page limit (250,000).
57
+ # Individual `other_names` are silently truncated to 100 characters.
58
+ # Individual `urls` cannot be longer than 512 characters.
59
+ def artists_create: (artist: { name: String, ?other_names: Array[String], ?other_names_string: String, ?url_string: String, ?notes: String, ?group_name: String, ?linked_user_id: Integer?, ?is_locked: bool }) -> Types::artist
60
+
61
+ # Get Artist By Name
62
+ #
63
+ # Like `GET /artists/{idOrName}.json`, but always looks up by name, even if it is numeric.
64
+ def artists_show_or_new: (name: String) -> { id: Integer, name: String, updated_at: String, is_active: bool, other_names: Array[String], group_name: String, linked_user_id: Integer?, created_at: String, creator_id: Integer, is_locked: bool, notes: String?, urls: Array[Types::artist_url], domains: Array[Array[(String | Integer)]] }
65
+
66
+ # Get Artist
67
+ def artists_show: ((Integer | String) id_or_name) -> { id: Integer, name: String, updated_at: String, is_active: bool, other_names: Array[String], group_name: String, linked_user_id: Integer?, created_at: String, creator_id: Integer, is_locked: bool, notes: String?, urls: Array[Types::artist_url], domains: Array[Array[(String | Integer)]] }
68
+
69
+ # Update Artist
70
+ #
71
+ # If an artist is locked, you must be Staff+ to edit them.
72
+ # `other_names` & `urls` are silently truncated to 25 entries.
73
+ # `notes` is silently truncated to the wiki page limit (250,000).
74
+ # Individual `other_names` are silently truncated to 100 characters.
75
+ # Individual `urls` cannot be longer than 512 characters.
76
+ # If an artist is on the avoid posting list, you must have the bd staff user flag to edit name, other_names, or group_name.
77
+ def artists_update: ((Integer | String) id_or_name, ?artist: { ?name: String, ?other_names: Array[String], ?other_names_string: String, ?url_string: String, ?notes: String, ?group_name: String, ?linked_user_id: Integer?, ?is_locked: bool }) -> nil
78
+
79
+ # Delete Artist
80
+ #
81
+ # You must be an Admin+ to delete an artist.
82
+ def artists_destroy: ((Integer | String) id_or_name) -> nil
83
+
84
+ # Revert Artist
85
+ #
86
+ # If an artist is locked, you must be Staff+ to revert them.
87
+ def artists_revert: ((Integer | String) id_or_name, version_id: Integer) -> nil
88
+
89
+ # Artist Versions Index
90
+ def artist_versions_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc" | "name"), ?name: String, ?artist_id: String, ?updater_name: String, ?updater_id: String }) -> Array[Types::artist_version]
91
+
92
+ # Artist URLs Index
93
+ def artist_urls_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id" | "id_asc" | "id_desc" | "artist_id" | "artist_id_asc" | "artist_id_desc" | "url" | "url_asc" | "url_desc" | "normalized_url" | "normalized_url_asc" | "normalized_url_desc" | "created_at" | "created_at_asc" | "created_at_desc" | "updated_at" | "updated_at_asc" | "updated_at_desc"), ?artist_name: String, ?artist_id: String, ?is_active: bool, ?url: String, ?normalized_url: String, ?artist: Hash[Symbol, untyped], ?url_matches: String, ?normalized_url_matches: String }) -> Array[{ id: Integer, artist_id: Integer, url: String, normalized_url: String, created_at: String, updated_at: String, is_active: bool, artist: Types::artist }]
94
+
95
+ # Avoid Posting Index
96
+ def avoid_postings_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc"), ?creator_name: String, ?creator_id: String, ?any_name_matches: String, ?artist_name: String, ?artist_id: String, ?any_other_name_matches: String, ?details: String, ?staff_notes: String, ?is_active: bool }) -> Array[Types::avoid_posting]
97
+
98
+ # Create Avoid Posting
99
+ #
100
+ # Must have the bd staff user flag.
101
+ def avoid_postings_create: (avoid_posting: { ?details: String, ?staff_notes: String, ?is_active: bool, artist_attributes: { name: String, ?other_names_string: String, ?other_names: Array[String], ?group_name: String, ?linked_user_id: Integer } }) -> Types::avoid_posting
102
+
103
+ # Get Avoid Posting
104
+ def avoid_postings_show: ((Integer | String) id_or_name) -> Types::avoid_posting
105
+
106
+ # Update Avoid Posting
107
+ #
108
+ # Must have the bd staff user flag.
109
+ def avoid_postings_update: ((Integer | String) id_or_name, ?avoid_posting: { ?details: String, ?staff_notes: String, ?is_active: bool, ?artist_attributes: { ?name: String, ?other_names_string: String, ?other_names: Array[String], ?group_name: String, ?linked_user_id: Integer } }) -> nil
110
+
111
+ # Destroy Avoid Posting
112
+ #
113
+ # Must have the bd staff user flag.
114
+ def avoid_postings_destroy: ((Integer | String) id_or_name) -> nil
115
+
116
+ # Delete Avoid Posting
117
+ #
118
+ # Soft deletion. Must have the bd staff user flag.
119
+ def avoid_postings_delete: ((Integer | String) id_or_name) -> nil
120
+
121
+ # Undelete Avoid Posting
122
+ #
123
+ # Must have the bd staff user flag.
124
+ def avoid_postings_undelete: ((Integer | String) id_or_name) -> nil
125
+
126
+ # Avoid Posting Versions Index
127
+ def avoid_posting_versions_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc"), ?updater_name: String, ?updater_id: String, ?any_name_matches: String, ?artist_name: String, ?artist_id: String, ?any_other_name_matches: String, ?group_name: String, ?is_active: bool }) -> Array[Types::avoid_posting_version]
128
+
129
+ # Bans Index
130
+ def bans_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "expires_at_desc"), ?banner_id: String, ?banner_name: String, ?user_id: String, ?user_name: String, ?reason_matches: String, ?expired: String }) -> Array[Types::ban]
131
+
132
+ # Get Ban
133
+ def bans_show: (Integer id) -> Types::ban
134
+
135
+ # Blips Index
136
+ def blips_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc" | "updated_at" | "updated_at_desc"), ?creator_id: Integer, ?creator_name: String, ?body_matches: String, ?response_to: Integer }) -> Array[Types::blip]
137
+
138
+ # Create Blip
139
+ def blips_create: (blip: { body: String, ?response_to: Integer }) -> Types::blip
140
+
141
+ # Get Blip
142
+ def blips_show: (Integer id) -> Types::blip
143
+
144
+ # Update Blip
145
+ #
146
+ # Unless Admin+, blips cannot be edited after 5 minutes. Marked blips cannot be edited.
147
+ def blips_update: (Integer id, ?blip: { ?body: String }) -> nil
148
+
149
+ # Destroy Blip
150
+ #
151
+ # You must be Admin+.
152
+ def blips_destroy: (Integer id) -> nil
153
+
154
+ # Delete Blip
155
+ #
156
+ # Soft deletion. You must be the creator or Moderator+.
157
+ def blips_delete: (Integer id) -> nil
158
+
159
+ # Undelete Blip
160
+ #
161
+ # You must be Moderator+.
162
+ def blips_undelete: (Integer id) -> nil
163
+
164
+ # Mark Blip
165
+ #
166
+ # You must be Moderator+.
167
+ def blips_warning: (Integer id, record_type: Types::warning_record_type) -> Types::d_text_response
168
+
169
+ # Bulk Update Requests Index
170
+ def bulk_update_requests_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "status_desc" | "updated_at_desc" | "updated_at_asc" | "score_desc" | "score_asc"), ?user_id: Integer, ?user_name: String, ?approver_id: Integer, ?approver_name: String, ?forum_topic_id: Integer, ?forum_post_id: Integer, ?status: ("approved" | "rejected" | "pending"), ?title_matches: String, ?script_matches: String }) -> Array[Types::bulk_update_request]
171
+
172
+ # Create Bulk Update Request
173
+ def bulk_update_requests_create: (bulk_update_request: { script: String, title: String, reason: String, ?forum_topic_id: Integer, ?skip_forum: bool }) -> Types::bulk_update_request
174
+
175
+ # Get Bulk Update Request
176
+ def bulk_update_requests_show: (Integer id) -> Types::bulk_update_request
177
+
178
+ # Update Bulk Update Request
179
+ #
180
+ # You must be the creator of the BUR, or Admin+.
181
+ def bulk_update_requests_update: (Integer id, ?bulk_update_request: { ?script: String, ?forum_topic_id: String, ?forum_post_id: String }) -> nil
182
+
183
+ # Reject Bulk Update Request
184
+ #
185
+ # You must be the creator of the BUR, or Admin+.
186
+ def bulk_update_requests_destroy: (Integer id) -> nil
187
+
188
+ # Approve Bulk Update Request
189
+ #
190
+ # Must be Admin+.
191
+ def bulk_update_requests_approve: (Integer id) -> nil
192
+
193
+ # Comments Index
194
+ #
195
+ # For searching comments, group_by=comment must be set.
196
+ def comments_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc" | "status" | "status_desc" | "updated_at_desc"), ?body_matches: String, ?post_id: String, ?post_tags_match: String, ?post_note_updater_name: String, ?post_note_updater_id: Integer, ?creator_name: String, ?creator_id: Integer, ?is_sticky: bool, ?is_hidden: bool, ?do_not_bump_post: bool }, ?group_by: ("comment" | "post")) -> Array[Types::comment]
197
+
198
+ # Create Comment
199
+ def comments_create: (comment: { body: String, post_id: Integer, ?do_not_bump_post: bool, ?is_sticky: bool, ?is_hidden: bool }) -> Types::comment
200
+
201
+ # Get Comment
202
+ #
203
+ # If the comment is hidden, you must be the creator or Staff+ to see it.
204
+ def comments_show: (Integer id) -> Types::comment
205
+
206
+ # Update Comment
207
+ #
208
+ # You must be the creator of the comment, or Admin+ to edit. Marked comments cannot be edited.
209
+ def comments_update: (Integer id, ?comment: { ?body: String, ?is_sticky: bool, ?is_hidden: bool }) -> nil
210
+
211
+ # Delete Comment
212
+ #
213
+ # You must be Admin+.
214
+ def comments_destroy: (Integer id) -> nil
215
+
216
+ # Hide Comment
217
+ #
218
+ # You must be the creator or Moderator+.
219
+ def comments_hide: (Integer id) -> Types::comment
220
+
221
+ # Unhide Comment
222
+ #
223
+ # You must be Moderator+.
224
+ def comments_unhide: (Integer id) -> Types::comment
225
+
226
+ # Mark Comment
227
+ #
228
+ # You must be Moderator+.
229
+ def comments_warning: (Integer id, record_type: Types::warning_record_type) -> Types::d_text_response
230
+
231
+ # Create Comment Vote
232
+ def comment_votes_create: (Integer id, score: Types::up_down_vote, ?no_unvote: bool) -> { score: Integer, our_score: Integer }
233
+
234
+ # Delete Comment Vote
235
+ def comment_votes_destroy: (Integer id) -> nil
236
+
237
+ # Comment Votes Index
238
+ #
239
+ # You must be Moderator+.
240
+ def comment_votes_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "ip_addr"), ?comment_id: Integer, ?user_name: String, ?user_id: Integer, ?comment_creator_name: String, ?comment_creator_id: Integer, ?user_ip_addr: String, ?score: Types::up_down_vote, ?timeframe: Integer, ?duplicates_only: bool }) -> Array[Types::comment_vote]
241
+
242
+ # Lock Comment Votes
243
+ #
244
+ # You must be Moderator+. Errors if ids is not provided.
245
+ def comment_votes_lock: (ids: String) -> nil
246
+
247
+ # Delete Comment Votes
248
+ #
249
+ # You must be Admin+. Errors if ids is not provided.
250
+ def comment_votes_delete: (ids: String) -> nil
251
+
252
+ # Get DB Exports
253
+ def db_exports_index: () -> Array[Types::db_export]
254
+
255
+ # Get health
256
+ def health_index: () -> String
257
+
258
+ # Get status
259
+ def rails_health_show: () -> { status: "up", timestamp: String }
260
+
261
+ # Get OpenID Connect Discovery Document
262
+ #
263
+ # Returns e621's [OpenID Connect discovery document](https://openid.net/specs/openid-connect-discovery-1_0.html),
264
+ # advertising its OAuth 2.0/OIDC endpoints and the capabilities it supports on them.
265
+ def doorkeeper_openid_connect_discovery_provider: () -> Types::open_id_configuration
266
+
267
+ # Get OpenID Connect JSON Web Key Set
268
+ #
269
+ # Returns the [JSON Web Key Set](https://www.rfc-editor.org/rfc/rfc7517) used to verify the
270
+ # signature of issued ID tokens, as advertised by `jwks_uri` in the discovery document.
271
+ def doorkeeper_openid_connect_discovery_keys: () -> Types::jwks
272
+
273
+ # Get OpenID Connect User Info
274
+ #
275
+ # Returns claims about the authenticated user, gated by the scopes granted to the access token.
276
+ # Also reachable via POST with an identical response.
277
+ def doorkeeper_openid_connect_userinfo_show: () -> Types::oauth_user_info
278
+
279
+ # Create OAuth Token
280
+ #
281
+ # OAuth 2.0 token endpoint. Supports the `authorization_code` and `refresh_token` grant types.
282
+ # The client can authenticate with `client_id`/`client_secret` as form fields (below) or via HTTP Basic Auth instead.
283
+ def doorkeeper_tokens_create: (grant_type: ("authorization_code" | "refresh_token"), ?code: String, ?redirect_uri: String, ?code_verifier: String, ?refresh_token: String, ?scope: String, ?client_id: String, ?client_secret: String) -> Types::oauth_token
284
+
285
+ # Revoke OAuth Token
286
+ #
287
+ # [RFC 7009](https://datatracker.ietf.org/doc/html/rfc7009) token revocation. Always responds
288
+ # with 200 and an empty body, even if the token was already invalid - the client can authenticate
289
+ # with `client_id`/`client_secret` as form fields (below) or via HTTP Basic Auth instead.
290
+ def doorkeeper_tokens_revoke: (token: String, ?token_type_hint: ("access_token" | "refresh_token"), ?client_id: String, ?client_secret: String) -> Hash[Symbol, untyped]
291
+
292
+ # Introspect OAuth Token
293
+ #
294
+ # [RFC 7662](https://datatracker.ietf.org/doc/html/rfc7662) token introspection. The caller must
295
+ # authenticate as the token's OAuth client (`client_id`/`client_secret` as form fields below, or
296
+ # HTTP Basic Auth), or present the token itself as a Bearer token in the `Authorization` header.
297
+ def doorkeeper_tokens_introspect: (token: String, ?token_type_hint: ("access_token" | "refresh_token"), ?client_id: String, ?client_secret: String) -> Types::oauth_introspection
298
+
299
+ # Get OAuth Token Info
300
+ #
301
+ # Returns metadata about the access token used to authenticate the request.
302
+ def doorkeeper_token_info_show: () -> Types::oauth_token_info
303
+
304
+ # DMails Index
305
+ def dmails_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?title_matches: String, ?message_matches: String, ?to_name: String, ?to_id: Integer, ?from_name: String, ?from_id: Integer, ?is_read: bool, ?is_deleted: bool, ?read: bool }) -> Array[Types::d_mail]
306
+
307
+ # Get DMail
308
+ #
309
+ # Fetching a dmail will not mark it as read.
310
+ # Unless the dmail is owned:
311
+ # - The current user must be staff and the dmail must be to or from the automod
312
+ # - The current user must be Moderator+ and a ticket must exist for the dmail
313
+ # - The current user must be Admin+ and the dmail must be to or from Admin+
314
+ # - The current user must be Staff and have a share key for the dmail
315
+ def dmails_show: (Integer id, ?key: String) -> Types::d_mail
316
+
317
+ # Delete DMail
318
+ #
319
+ # Deleting simply hides your copy of the dmail.
320
+ def dmails_destroy: (Integer id) -> nil
321
+
322
+ # Mark DMail As Read
323
+ def dmails_mark_as_read: (Integer id) -> nil
324
+
325
+ # Mark DMail As Unread
326
+ def dmails_mark_as_unread: (Integer id) -> nil
327
+
328
+ # Mark All DMails As Read
329
+ def dmails_mark_all_as_read: () -> nil
330
+
331
+ # Preview DText
332
+ #
333
+ # Limited to 20 requests per minute.
334
+ def dtext_previews_create: (body: String, ?allow_color: bool, ?wiki_includes: bool) -> Types::d_text_response
335
+
336
+ # Edit Histories Index
337
+ #
338
+ # You must be Moderator+.
339
+ def edit_histories_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc"), ?body_matches: String, ?subject_matches: String, ?versionable_type: ("Blip" | "Comment" | "ForumPost"), ?versionable_id: Integer, ?editor_id: Integer, ?editor_name: String }) -> Array[Types::edit_history]
340
+
341
+ # Get Edit History
342
+ #
343
+ # You must be Moderator+.
344
+ def edit_histories_show: (Integer id, type: ("Blip" | "Comment" | "ForumPost")) -> Array[Types::edit_history]
345
+
346
+ # Email Blacklists Index
347
+ def email_blacklists_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "reason" | "domain"), ?domain: String, ?reason: String }) -> Array[Types::email_blacklist]
348
+
349
+ # Create Email Blacklist
350
+ #
351
+ # You must be Admin+.
352
+ def email_blacklists_create: (email_blacklist: { domain: String, reason: String }) -> Types::email_blacklist
353
+
354
+ # Delete Email Blacklist
355
+ #
356
+ # You must be Admin+.
357
+ def email_blacklists_destroy: (Integer id) -> nil
358
+
359
+ # Favorites Index
360
+ def favorites_index: (?limit: Integer, ?page: Integer | String, ?v1: bool, ?mode: ("basic" | "extended" | "thumbnail")) -> (Array[Types::basic_post] | Array[Types::extended_post] | Array[Types::thumbnail_post] | { posts: Array[Types::legacy_post] })
361
+
362
+ # Create Favorite
363
+ #
364
+ # Creates and deletes share a limit of 60 per minute. They don't count towards the general write limit.
365
+ def favorites_create: (post_id: Integer) -> { post_id: Integer, favorite_count: Integer }
366
+
367
+ # Delete Favorite
368
+ #
369
+ # Creates and deletes share a limit of 60 per minute. They don't count towards the general write limit.
370
+ def favorites_destroy: (Integer id) -> { post_id: Integer, favorite_count: Integer }
371
+
372
+ # Forum Posts Index
373
+ def forum_posts_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc"), ?creator_id: Integer, ?creator_name: String, ?topic_id: Integer, ?topic_title_matches: String, ?body_matches: String, ?topic_category_id: Integer, ?is_hidden: bool }) -> Array[Types::forum_post]
374
+
375
+ # Create Forum Post
376
+ def forum_posts_create: (forum_post: { body: String, topic_id: Integer, ?do_not_bump_topic: bool }) -> Types::forum_post
377
+
378
+ # Get Forum Post
379
+ #
380
+ # If the forum post is hidden, you must be the creator or Moderator+ to see it.
381
+ def forum_posts_show: (Integer id) -> Types::forum_post
382
+
383
+ # Update Forum Post
384
+ #
385
+ # You must be the creator of the forum post, or Admin+ to edit. Marked forum posts cannot be edited.
386
+ def forum_posts_update: (Integer id, ?forum_post: { ?body: String }) -> nil
387
+
388
+ # Delete Forum Post
389
+ #
390
+ # You must be Admin+.
391
+ def forum_posts_destroy: (Integer id) -> nil
392
+
393
+ # Hide Forum Post
394
+ #
395
+ # You must be the creator or Moderator+.
396
+ def forum_posts_hide: (Integer id) -> Types::forum_post
397
+
398
+ # Unhide Forum Post
399
+ #
400
+ # You must be Moderator+.
401
+ def forum_posts_unhide: (Integer id) -> Types::forum_post
402
+
403
+ # Mark Forum Post
404
+ #
405
+ # You must be Moderator+.
406
+ def forum_posts_warning: (Integer id, record_type: Types::warning_record_type) -> Types::d_text_response
407
+
408
+ # Forum Post Votes Index
409
+ def forum_post_votes_show: (Integer id) -> Array[Types::forum_post_vote]
410
+
411
+ # Create Forum Post Vote
412
+ def forum_post_votes_create: (Integer id, forum_post_vote: { score: Types::up_down_meh_flip_vote }) -> Types::forum_post_vote
413
+
414
+ # Delete Forum Post Vote
415
+ def forum_post_votes_destroy: (Integer id) -> nil
416
+
417
+ # Forum Topics Index
418
+ def forum_topics_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "sticky" | "sticky_updated" | "created_at" | "created_at_desc" | "created_at_asc" | "updated_at" | "updated_at_desc" | "updated_at_asc" | "bumped"), ?title: String, ?title_matches: String, ?category_id: Integer, ?is_sticky: bool, ?is_locked: bool, ?is_hidden: bool }) -> Array[Types::forum_topic]
419
+
420
+ # Create Forum Topic
421
+ def forum_topics_create: (forum_topic: { title: String, category_id: Integer, ?is_sticky: bool, ?is_locked: bool, ?original_post_attributes: { ?id: Integer, ?body: String } }) -> Types::forum_topic
422
+
423
+ # Get Forum Forum Topic
424
+ #
425
+ # If the forum topic is hidden, you must be the creator or Moderator+ to see it.
426
+ def forum_topics_show: (Integer id) -> Types::forum_topic
427
+
428
+ # Update Forum Topic
429
+ def forum_topics_update: (Integer id, ?forum_topic: { ?title: String, ?category_id: Integer, ?is_sticky: bool, ?do_not_bump: bool, ?is_locked: bool, ?original_post_attributes: { ?id: Integer, ?body: String } }) -> nil
430
+
431
+ # Delete Forum Topic
432
+ #
433
+ # You must be Admin+.
434
+ def forum_topics_destroy: (Integer id) -> nil
435
+
436
+ # Hide Forum Topic
437
+ #
438
+ # You must be the creator or Moderator+.
439
+ def forum_topics_hide: (Integer id) -> Types::forum_topic
440
+
441
+ # Unhide Forum Topic
442
+ #
443
+ # You must be Moderator+.
444
+ def forum_topics_unhide: (Integer id) -> Types::forum_topic
445
+
446
+ # Subscribe To Forum Topic
447
+ def forum_topics_subscribe: (Integer id) -> Types::forum_topic
448
+
449
+ # Unsubscribe From Forum Topic
450
+ def forum_topics_unsubscribe: (Integer id) -> Types::forum_topic
451
+
452
+ # Mark All Forum Topics As Read
453
+ def forum_topics_mark_all_as_read: (category_id: Integer) -> nil
454
+
455
+ # Get Landing Help Page
456
+ def help_index: () -> Types::help_page
457
+
458
+ # Create Help Page
459
+ #
460
+ # You must be Admin+.
461
+ def help_create: (help_page: { name: String, wiki_page: String, ?related: String, ?title: String }) -> Types::help_page
462
+
463
+ # Help Pages Index
464
+ def help_list: () -> Array[Types::help_page]
465
+
466
+ # Get Help Page
467
+ def help_show: ((Integer | String) id) -> Types::help_page
468
+
469
+ # Update Help Page
470
+ #
471
+ # You must be Admin+
472
+ def help_update: (Integer id, ?help_page: { ?name: String, ?wiki_page: String, ?related: String, ?title: String }) -> nil
473
+
474
+ # Delete Help Page
475
+ #
476
+ # You must be Admin+.
477
+ def help_destroy: (Integer id) -> nil
478
+
479
+ # IP Bans Index
480
+ def ip_bans_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc"), ?banner_id: Integer, ?banner_name: String, ?reason: String }) -> Array[Types::ip_ban]
481
+
482
+ # Create IP Ban
483
+ #
484
+ # You must be Admin+.
485
+ def ip_bans_create: (ip_ban: { ip_addr: String, reason: String }) -> Types::ip_ban
486
+
487
+ # Delete IP Ban
488
+ #
489
+ # You must be Admin+.
490
+ def ip_bans_destroy: (Integer id) -> nil
491
+
492
+ # Query IQDB
493
+ def iqdb_queries_show: (?v1: bool, ?search: { ?score_cutoff: Integer, ?url: String, ?post_id: Integer, ?hash: String }) -> (Array[Types::iqdb_response_v2] | Array[Types::iqdb_response])
494
+
495
+ # Query IQDB
496
+ def iqdb_queries_show_post: (?v1: bool, ?search: { ?file: (::IO | ::StringIO), ?score_cutoff: Integer, ?url: String, ?post_id: String, ?hash: String }) -> (Array[Types::iqdb_response_v2] | Array[Types::iqdb_response])
497
+
498
+ # Mascots Index
499
+ def mascots_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer) }) -> Array[Types::mascot]
500
+
501
+ # Create Mascot
502
+ #
503
+ # You must be Admin+.
504
+ def mascots_create: (mascot: { mascot_file: (::IO | ::StringIO), display_name: String, background_color: String, ?foreground_color: String, ?is_layered: bool, artist_url: String, artist_name: String, ?available_on_string: String, ?active: bool }) -> Types::mascot
505
+
506
+ # Update Mascot
507
+ #
508
+ # You must be Admin+.
509
+ def mascots_update: (Integer id, ?mascot: { ?mascot_file: (::IO | ::StringIO), ?display_name: String, ?background_color: String, ?foreground_color: String, ?is_layered: bool, ?artist_url: String, ?artist_name: String, ?available_on_string: String, ?active: bool }) -> nil
510
+
511
+ # Delete Mascot
512
+ #
513
+ # You must be Admin+.
514
+ def mascots_destroy: (Integer id) -> nil
515
+
516
+ # Mod Actions Index
517
+ #
518
+ # Note that some mod actions are not in use anymore. Their entries exist for historical purposes only.<br>
519
+ # The current legacy actions are as follows:<br>
520
+ # * `created_positive_record`, `created_neutral_record`, `created_negative_record`
521
+ # * `created_flag_reason`, `edited_flag_reason`, `deleted_flag_reason`
522
+ # * `post_move_favorites`, `post_delete`, `post_undelete`, `post_destroy`, `post_rating_lock`, `post_unapprove`
523
+ # * `post_replacement_accept`, `post_replacement_reject`, `post_replacement_delete`
524
+ def mod_actions_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc"), ?creator_id: Integer, ?creator_name: String, ?action: Types::mod_action_action }) -> Array[Types::mod_action]
525
+
526
+ # Get Mod Action
527
+ def mod_actions_show: (Integer id) -> Types::mod_action
528
+
529
+ # News Updates Index
530
+ def news_updates_index: (?limit: Integer, ?page: Integer | String) -> Array[Types::news_update]
531
+
532
+ # Create News Update
533
+ #
534
+ # You must be Admin+.
535
+ def news_updates_create: (news_update: { message: String }) -> Types::news_update
536
+
537
+ # Update News Update
538
+ #
539
+ # You must be Admin+
540
+ def news_updates_update: (Integer id, news_update: { message: String }) -> nil
541
+
542
+ # Delete News Update
543
+ #
544
+ # You must be Admin+.
545
+ def news_updates_destroy: (Integer id) -> nil
546
+
547
+ # Notes Index
548
+ def notes_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc"), ?body_matches: String, ?is_active: bool, ?post_id: Integer, ?post_tags_match: String, ?post_note_updater_id: Integer, ?post_note_updater_name: String, ?creator_id: Integer, ?creator_name: String }) -> Array[Types::note]
549
+
550
+ # Create Note
551
+ def notes_create: (note: { post_id: Integer, x: Integer, y: Integer, width: Integer, height: Integer, body: String, ?html_id: String }) -> { id: Integer, created_at: String, updated_at: String, creator_id: Integer, x: Integer, y: Integer, width: Integer, height: Integer, version: Integer, is_active: bool, post_id: Integer, body: String, creator_name: String, html_id: String }
552
+
553
+ # Get Note
554
+ def notes_show: (Integer id) -> Types::note
555
+
556
+ # Update Note
557
+ def notes_update: (Integer id, ?note: { ?x: Integer, ?y: Integer, ?width: Integer, ?height: Integer, ?body: String }) -> nil
558
+
559
+ # Delete Note
560
+ def notes_destroy: (Integer id) -> nil
561
+
562
+ # Revert Note
563
+ def notes_revert: (Integer id, version_id: Integer) -> nil
564
+
565
+ # Note Versions Index
566
+ def note_versions_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc"), ?updater_id: Integer, ?updater_name: String, ?post_id: Integer, ?note_id: Integer, ?is_active: bool, ?body_matches: String }) -> Array[Types::note_version]
567
+
568
+ # Pools Index
569
+ def pools_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "name" | "name_desc" | "created_at" | "updated_at_asc" | "post_count" | "post_count_asc"), ?name_matches: String, ?description_matches: String, ?creator_id: Integer, ?creator_name: String, ?category: Types::pool_category, ?is_active: bool }) -> Array[Types::pool]
570
+
571
+ # Create Pool
572
+ def pools_create: (pool: { name: String, ?description: String, ?category: Types::pool_category, ?is_active: bool, ?post_ids_string: String, ?post_ids: Array[Integer] }) -> Types::pool
573
+
574
+ # Get Pool
575
+ def pools_show: (Integer id) -> Types::pool
576
+
577
+ # Update Pool
578
+ def pools_update: (Integer id, ?pool: { ?name: String, ?description: String, ?is_active: bool, ?category: Types::pool_category, ?post_ids_string: String, ?post_ids: Array[Integer] }) -> nil
579
+
580
+ # Delete Pool
581
+ #
582
+ # You must be Staff+.
583
+ def pools_destroy: (Integer id) -> nil
584
+
585
+ # Revert Pool
586
+ def pools_revert: (Integer id, version_id: Integer) -> nil
587
+
588
+ # Add Post To Pool
589
+ def pool_elements_create: (?pool_id: Integer, ?pool_name: String, post_id: Integer) -> Types::pool
590
+
591
+ # Remove Post From Pool
592
+ def pool_elements_destroy: (?pool_id: Integer, ?pool_name: String, post_id: Integer) -> nil
593
+
594
+ # Get Recent Pools
595
+ def pool_elements_recent: (?pool_id: Integer, ?pool_name: String, post_id: Integer) -> Array[{ id: String, name: String }]
596
+
597
+ # Pool Versions Index
598
+ def pool_versions_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc"), ?updater_id: Integer, ?updater_name: String, ?pool_id: Integer }) -> Array[Types::pool_version]
599
+
600
+ # Popular Index
601
+ def popular_index: (?v1: bool, ?mode: ("basic" | "extended" | "thumbnail"), ?date: String, ?scale: ("month" | "week" | "day")) -> (Array[Types::basic_post] | Array[Types::extended_post] | Array[Types::thumbnail_post] | { posts: Array[Types::legacy_post] })
602
+
603
+ # Posts Index
604
+ def posts_index: (?limit: Integer, ?page: Integer | String, ?v1: bool, ?mode: ("basic" | "extended" | "thumbnail"), ?tags: String, ?md5: String, ?random: String) -> (Array[Types::basic_post] | Array[Types::extended_post] | Array[Types::thumbnail_post] | Types::basic_post | Types::extended_post | Types::thumbnail_post | { posts: Array[Types::legacy_post] } | { post: Types::legacy_post })
605
+
606
+ # Get Random Post
607
+ def posts_random: (?v1: bool, ?mode: ("basic" | "extended" | "thumbnail"), ?tags: String) -> (Types::basic_post | Types::extended_post | Types::thumbnail_post | { post: Types::legacy_post })
608
+
609
+ # Count Posts
610
+ def posts_count: (tags: String) -> { count: Integer, capped: bool }
611
+
612
+ # Get Post
613
+ def posts_show: (Integer id, ?v1: bool, ?mode: ("basic" | "extended" | "thumbnail")) -> (Types::basic_post | Types::extended_post | Types::thumbnail_post | { post: Types::legacy_post })
614
+
615
+ # Update Post
616
+ #
617
+ # Most errors are silently swallowed.
618
+ def posts_update: (Integer id, ?v1: bool, ?mode: ("basic" | "extended" | "thumbnail"), ?post: { ?tag_string: String, ?old_tag_string: String, ?tag_string_diff: String, ?source_diff: String, ?source: String, ?old_source: String, ?parent_id: Integer, ?old_parent_id: Integer, ?description: String, ?old_description: String, ?rating: Types::rating, ?old_rating: Types::rating, ?edit_reason: String, ?is_rating_locked: bool, ?is_note_locked: bool, ?bg_color: String, ?is_comment_locked: bool, ?is_comment_disabled: bool, ?is_status_locked: bool, ?locked_tags: String, ?hide_from_anonymous: bool, ?hide_from_search_engines: bool, ?hide_favorites_list: bool }) -> (Types::basic_post | Types::extended_post | Types::thumbnail_post | { post: Types::legacy_post })
619
+
620
+ # Update Post IQDB
621
+ #
622
+ # You must be Admin+.
623
+ def posts_update_iqdb: (Integer id, ?v1: bool, ?mode: ("basic" | "extended" | "thumbnail")) -> (Types::basic_post | Types::extended_post | Types::thumbnail_post | { post: Types::legacy_post })
624
+
625
+ # Mark Post As Translated
626
+ #
627
+ # Will error if no body is provided.
628
+ def posts_mark_as_translated: (Integer id, ?v1: bool, ?mode: ("basic" | "extended" | "thumbnail"), ?post: { ?translation_check: bool, ?partially_translated: bool }) -> (Types::basic_post | Types::extended_post | Types::thumbnail_post | { post: Types::legacy_post })
629
+
630
+ # Copy Notes To Post
631
+ def posts_copy_notes: (Integer id, other_post_id: Integer) -> nil
632
+
633
+ # Revert Post
634
+ def posts_revert: (Integer id, version_id: Integer) -> nil
635
+
636
+ # Get Post In Sequence
637
+ def posts_show_seq: (Integer id, ?v1: bool, ?mode: ("basic" | "extended" | "thumbnail"), ?seq: ("next" | "prev")) -> (Types::basic_post | Types::extended_post | Types::thumbnail_post | { post: Types::legacy_post })
638
+
639
+ # Unflag Post
640
+ #
641
+ # You must have the "Approve Posts" permission.
642
+ def post_flags_destroy: (Integer id, ?approval: String) -> Types::raw_post
643
+
644
+ # Post Favorites Index
645
+ #
646
+ # You must be the user or Moderator+ to see users that have their favorites hidden.
647
+ def post_favorites_index: (Integer id, ?limit: Integer, ?page: Integer | String) -> Array[Types::minimal_user]
648
+
649
+ # Create Post Vote
650
+ def post_votes_create: (Integer id, score: Types::up_down_vote, ?no_unvote: bool) -> { score: Integer, up: Integer, down: Integer, our_score: Integer }
651
+
652
+ # Delete Post Vote
653
+ def post_votes_destroy: (Integer id) -> nil
654
+
655
+ # Comments For Post
656
+ def comments_for_post: (Integer id) -> Types::d_text_response
657
+
658
+ # Get Recommended Posts For Artist
659
+ def post_recommendations_artist: (Integer id, ?limit: Integer, ?page: Integer | String) -> { post_id: Integer, model_version: String, results: Array[Types::post_recommendation], post_data: Array[Types::thumbnail_post] }
660
+
661
+ # Get Recommended Posts For Tags
662
+ def post_recommendations_tags: (Integer id, ?limit: Integer, ?page: Integer | String) -> { post_id: Integer, model_version: String, results: Array[Types::post_recommendation], post_data: Array[Types::thumbnail_post] }
663
+
664
+ # Post Sets Index
665
+ def post_sets_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "name" | "shortname" | "post_count" | "postcount" | "created_at" | "updated_at" | "update"), ?creator_id: Integer, ?creator_name: String, ?name: String, ?shortname: String, ?is_public: bool, ?post_id: Integer, ?maintainer_id: Integer }) -> Array[Types::post_set]
666
+
667
+ # Create Post Set
668
+ def post_sets_create: (post_set: { name: String, shortname: String, ?description: String, ?is_public: bool, ?transfer_on_delete: bool }) -> Types::post_set
669
+
670
+ # Get Post Set
671
+ #
672
+ # You must be Moderator+ if the set is not public.
673
+ def post_sets_show: (Integer id) -> Types::post_set
674
+
675
+ # Update Post Set
676
+ #
677
+ # You must be the owner of the set, or Admin+.
678
+ def post_sets_update: (Integer id, ?post_set: { ?name: String, ?shortname: String, ?description: String, ?is_public: bool, ?transfer_on_delete: bool }) -> nil
679
+
680
+ # Delete Post Set
681
+ #
682
+ # You must be the owner of the set, or Admin+.
683
+ def post_sets_destroy: (Integer id) -> nil
684
+
685
+ # Post Set Post List
686
+ #
687
+ # You must be Moderator+ if the set is not public.
688
+ def post_sets_post_list: (Integer id) -> Types::post_set
689
+
690
+ # Update Post Set Posts
691
+ #
692
+ # You must be the owner of the set, a maintainer (if public), or Admin+.
693
+ def post_sets_update_posts: (Integer id, post_set: { post_ids_string: String }) -> Types::post_set
694
+
695
+ # Add Posts To Post Set
696
+ #
697
+ # You must be the owner of the set, a maintainer (if public), or Admin+.
698
+ def post_sets_add_posts: (Integer id, post_ids: Array[Integer]) -> Types::post_set
699
+
700
+ # Remove Posts From Post Set
701
+ #
702
+ # You must be the owner of the set, a maintainer (if public), or Admin+.
703
+ def post_sets_remove_posts: (Integer id, post_ids: Array[Integer]) -> Types::post_set
704
+
705
+ # List Post Sets For Select
706
+ #
707
+ # You must be the owner of the set, a maintainer (if public), or Admin+.
708
+ def post_sets_for_select: () -> { ?:"Owned" => Array[(String | Integer)], ?:"Maintained" => Array[(String | Integer)] }
709
+
710
+ # Post Approvals Index
711
+ def post_approvals_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc"), ?post_tags_match: String, ?user_id: Integer, ?user_name: String, ?post_id: Integer }) -> Array[Types::post_approval]
712
+
713
+ # Post Events Index
714
+ def post_events_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc"), ?post_id: Integer, ?creator_id: Integer, ?creator_name: String, ?action: Types::post_event_action }, ?v1: bool) -> (Array[Types::post_event] | { post_events: Array[Types::post_event] })
715
+
716
+ # Post Deletions Index
717
+ #
718
+ # Only lists deletions that haven't been undone, unless `search[is_undeleted]`, `search[undeleted_at]`, `search[id]` or `search[post_id]` is given.
719
+ def post_deletions_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc"), ?reason_matches: String, ?deleter_id: Integer, ?deleter_name: String, ?uploader_id: Integer, ?uploader_name: String, ?post_id: String, ?post_tags_match: String, ?is_undeleted: ("true" | "false" | "any"), ?undeleted_at: String }) -> Array[Types::post_deletion]
720
+
721
+ # Get Post Deletion
722
+ def post_deletions_show: (Integer id) -> Types::post_deletion
723
+
724
+ # Post Flags Index
725
+ def post_flags_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc"), ?reason_matches: String, ?creator_id: Integer, ?creator_name: String, ?post_id: Integer, ?post_tags_match: String, ?is_resolved: bool }) -> Array[Types::post_flag]
726
+
727
+ # Create Post Flag
728
+ #
729
+ # Will error if post_id is not provided.
730
+ def post_flags_create: (post_flag: { post_id: Integer, reason_name: ("uploading_guidelines" | "young_human" | "dnp_artist" | "pay_content" | "trace" | "previously_deleted" | "real_porn" | "corrupt" | "inferior"), ?parent_id: Integer, ?note: String }) -> Types::post_flag
731
+
732
+ # Get Post Flag
733
+ def post_flags_show: (Integer id) -> Types::post_flag
734
+
735
+ # Clear Post Flag Note
736
+ #
737
+ # You must be Janitor+
738
+ def post_flags_clear_note: (Integer id) -> Types::post_flag
739
+
740
+ # Post Replacements Index
741
+ #
742
+ # Rejected replacements can only be seen by staff.
743
+ def post_replacements_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?file_ext: String, ?md5: String, ?status: String, ?creator_id: Integer, ?creator_name: String, ?approver_id: Integer, ?approver_name: String, ?uploader_name_on_approve: String, ?uploader_id_on_approve: Integer, ?post_id: String, ?reason: String, ?penalized: bool, ?source: String, ?file_name: String }) -> Array[Types::post_replacement]
744
+
745
+ # Create Post Replacement
746
+ def post_replacements_create: (post_replacement: { ?replacement_file: (::IO | ::StringIO), ?replacement_url: String, reason: String, ?source: String, ?as_pending: bool }) -> { success: true, location: String }
747
+
748
+ # Delete Post Replacement
749
+ #
750
+ # You must be Admin+.
751
+ def post_replacements_destroy: (Integer id) -> nil
752
+
753
+ # Approve Post Replacement
754
+ #
755
+ # You must have the "Approve Posts" permission.
756
+ def post_replacements_approve: (Integer id) -> nil
757
+
758
+ # Reject Post Replacement
759
+ #
760
+ # You must have the "Approve Posts" permission.
761
+ def post_replacements_reject: (Integer id) -> nil
762
+
763
+ # Promote Post Replacement
764
+ #
765
+ # You must have the "Approve Posts" permission.
766
+ def post_replacements_promote: (Integer id) -> { post: Types::post }
767
+
768
+ # Toggle Post Replacement Penalty
769
+ #
770
+ # You must have the "Approve Posts" permission.
771
+ def post_replacements_toggle_penalize: (Integer id) -> nil
772
+
773
+ # Transfer Post Replacement
774
+ #
775
+ # You must have the "Approve Posts" permission.
776
+ def post_replacements_transfer: (Integer id, new_post_id: Integer) -> nil
777
+
778
+ # Post Versions Index
779
+ def post_versions_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?updater_name: String, ?updater_id: Integer, ?post_id: Integer, ?start_id: Integer, ?rating: Types::rating, ?rating_changed: ("e" | "q" | "s" | "any"), ?parent_id: Integer, ?parent_id_changed: bool, ?tags: String, ?tags_removed: String, ?tags_added: String, ?locked_tags: String, ?locked_tags_removed: String, ?locked_tags_added: String, ?reason: String, ?description: String, ?description_changed: bool, ?source_changed: bool, ?uploads: ("included" | "excluded" | "only") }) -> Array[Types::post_version]
780
+
781
+ # Hide Post Version
782
+ #
783
+ # You must be Admin+.
784
+ def post_versions_hide: (Integer id) -> nil
785
+
786
+ # Unhide Post Version
787
+ #
788
+ # You must be Admin+.
789
+ def post_versions_unhide: (Integer id) -> nil
790
+
791
+ # Undo Post Version
792
+ def post_versions_undo: (Integer id) -> nil
793
+
794
+ # Post Votes Index
795
+ #
796
+ # You must be Moderator+.
797
+ def post_votes_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "ip_addr"), ?post_id: Integer, ?user_name: String, ?user_id: Integer, ?post_creator_name: String, ?post_creator_id: Integer, ?user_ip_addr: String, ?score: Types::up_down_vote, ?timeframe: Integer, ?duplicates_only: bool }) -> Array[Types::post_vote]
798
+
799
+ # Lock Post Votes
800
+ #
801
+ # You must be Moderator+. Errors if ids is not provided.
802
+ def post_votes_lock: (ids: String) -> nil
803
+
804
+ # Delete Post Votes
805
+ #
806
+ # You must be Admin+. Errors if ids is not provided.
807
+ def post_votes_delete: (ids: String) -> nil
808
+
809
+ # List Saved Searches
810
+ #
811
+ # Lists the current user's saved searches. New post counts are refreshed when this is called.
812
+ def saved_searches_index: () -> Array[Types::saved_search]
813
+
814
+ # Create Saved Search
815
+ #
816
+ # Users can have up to 250 saved searches, and track up to 50 of them.
817
+ # Saved search queries cannot contain wildcard tags or `search:` metatags.
818
+ def saved_searches_create: (saved_search: { query: String, ?name: String, ?is_tracked: bool }) -> Types::saved_search
819
+
820
+ # Get Saved Search
821
+ #
822
+ # You must be the owner of the saved search. `new_count` is read from cache and may be stale.
823
+ def saved_searches_show: (Integer id) -> Types::saved_search
824
+
825
+ # Update Saved Search
826
+ #
827
+ # You must be the owner of the saved search. The subscription search cannot be updated.
828
+ def saved_searches_update: (Integer id, ?saved_search: { ?query: String, ?name: String, ?is_tracked: bool }) -> Types::saved_search
829
+
830
+ # Delete Saved Search
831
+ #
832
+ # You must be the owner of the saved search.
833
+ def saved_searches_destroy: (Integer id) -> nil
834
+
835
+ # Mark All Saved Searches Seen
836
+ def saved_searches_mark_all_seen: () -> nil
837
+
838
+ # Get Saved Search Badge
839
+ #
840
+ # Total new post count across the current user's tracked saved searches. Read from cache only.
841
+ def saved_searches_badge: () -> { count: Integer?, fresh: bool }
842
+
843
+ # Tags Index
844
+ def tags_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "name" | "date" | "count" | "similarity"), ?fuzzy_name_matches: String, ?name_matches: String, ?name: String, ?category: Types::tag_category, ?hide_empty: bool, ?has_wiki: bool, ?has_artist: bool }) -> Array[Types::tag]
845
+
846
+ # Get Tag
847
+ def tags_show: ((Integer | String) id) -> Types::tag
848
+
849
+ # Update Tag
850
+ #
851
+ # Must be Admin+ if the tag is locked or post count is >100.
852
+ def tags_update: (Integer id, ?tag: { ?category: Types::tag_category, ?is_locked: bool }) -> nil
853
+
854
+ # Delete Tag
855
+ #
856
+ # You must have the bd staff user flag.
857
+ def tags_destroy: (Integer id) -> nil
858
+
859
+ # Get Tag Correction
860
+ def tag_corrections_show: (Integer id) -> Types::tag_correction
861
+
862
+ # Correct Tag
863
+ #
864
+ # You must be Staff+. `commit=Fix` must be set.
865
+ def tag_corrections_create: (Integer id, commit: "Fix") -> nil
866
+
867
+ # Preview Tags
868
+ def tags_preview: (tags: String) -> Array[Types::tag_preview]
869
+
870
+ # Tag Type Versions Index
871
+ def tag_type_versions_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?tag: String, ?user_id: String, ?user_name: String }) -> Array[Types::tag_type_version]
872
+
873
+ # Tag Aliases Index
874
+ def tag_aliases_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "created_at" | "updated_at" | "name" | "tag_count" | "score_desc" | "score_asc"), ?name_matches: String, ?antecedent_name: String, ?consequent_name: String, ?status: Types::tag_request_status, ?antecedent_tag_category: Types::tag_category, ?consequent_tag_category: Types::tag_category, ?creator_id: Integer, ?creator_name: String, ?approver_id: Integer, ?approver_name: String }) -> Array[Types::tag_alias]
875
+
876
+ # Get Tag Alias
877
+ def tag_aliases_show: (Integer id) -> Types::tag_alias
878
+
879
+ # Update Tag Alias
880
+ #
881
+ # You must be Admin+.
882
+ def tag_aliases_update: (Integer id, ?tag_alias: { ?antecedent_name: String, ?consequent_name: String, ?forum_topic_id: String }) -> nil
883
+
884
+ # Reject Tag Alias
885
+ #
886
+ # You must be the creator of the request (if pending), or Admin+.
887
+ def tag_aliases_destroy: (Integer id) -> nil
888
+
889
+ # Approve Tag Alias
890
+ #
891
+ # You must be Admin+.
892
+ def tag_aliases_approve: (Integer id) -> nil
893
+
894
+ # Undo Tag Alias
895
+ #
896
+ # You must be Admin+.
897
+ def tag_aliases_undo: (Integer id) -> nil
898
+
899
+ # Create Tag Alias
900
+ #
901
+ # Errors will result in a 406 with no information.
902
+ def tag_alias_requests_create: (tag_alias_request: { antecedent_name: String, consequent_name: String, reason: String, ?skip_forum: bool }) -> nil
903
+
904
+ # Tag Implications Index
905
+ def tag_implications_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "created_at" | "updated_at" | "name" | "tag_count" | "score_desc" | "score_asc"), ?name_matches: String, ?antecedent_name: String, ?consequent_name: String, ?status: Types::tag_request_status, ?antecedent_tag_category: Types::tag_category, ?consequent_tag_category: Types::tag_category, ?creator_id: Integer, ?creator_name: String, ?approver_id: Integer, ?approver_name: String }) -> Array[Types::tag_implication]
906
+
907
+ # Get Tag Implication
908
+ def tag_implications_show: (Integer id) -> Types::tag_implication
909
+
910
+ # Update Tag Implication
911
+ #
912
+ # You must be Admin+.
913
+ def tag_implications_update: (Integer id, ?tag_implication: { ?antecedent_name: String, ?consequent_name: String, ?forum_topic_id: String }) -> nil
914
+
915
+ # Reject Tag Implication
916
+ #
917
+ # You must be the creator of the request (if pending), or Admin+.
918
+ def tag_implications_destroy: (Integer id) -> nil
919
+
920
+ # Approve Tag Implication
921
+ #
922
+ # You must be Admin+.
923
+ def tag_implications_approve: (Integer id) -> nil
924
+
925
+ # Undo Tag Implication
926
+ #
927
+ # You must be Admin+.
928
+ def tag_implications_undo: (Integer id) -> nil
929
+
930
+ # Create Tag Implication
931
+ #
932
+ # Errors will result in a 406 with no information.
933
+ def tag_implication_requests_create: (tag_implication_request: { antecedent_name: String, consequent_name: String, reason: String, ?skip_forum: bool }) -> nil
934
+
935
+ # List Tag Subscriptions
936
+ #
937
+ # Lists the current user's tag subscriptions, ordered by tag name.
938
+ def tag_subscriptions_index: () -> Array[Types::tag_subscription]
939
+
940
+ # Create Tag Subscriptions
941
+ #
942
+ # Subscribes to one or more tags, following aliases. Users can subscribe to up to 500 tags.
943
+ # Subscribed tags can be searched with the `search:subscriptions` metatag.
944
+ def tag_subscriptions_create: (?tag_name: String, ?tag_names: String) -> { added: Array[Types::tag_subscription], skipped: Array[{ name: String, reason: String }] }
945
+
946
+ # Delete Tag Subscription
947
+ #
948
+ # You must be the owner of the tag subscription.
949
+ def tag_subscriptions_destroy: (Integer id) -> nil
950
+
951
+ # List Bulk Related Tags
952
+ #
953
+ # Limited to 300 looked up tags per minute, so each tag in `query` counts once.
954
+ def related_tags_bulk: (?query: String, ?category_id: Types::tag_category) -> Types::tag_with_count
955
+
956
+ # Search Trends Index
957
+ def search_trends_index: (?day: String, ?limit: Integer, ?page: Integer | String) -> Array[Types::search_trend]
958
+
959
+ # List Rising Search Trends
960
+ #
961
+ # Tags searched notably more than usual in the last 24 hours, compared to the 24 hours before and the daily average over the previous 7 days.<br>
962
+ # Ranked by how much they rose, not by search count. Searches from the rising list itself (`ref=rising`) aren't counted.
963
+ def search_trends_rising: () -> Array[Types::rising_search_trend]
964
+
965
+ # Search Trends Track
966
+ def search_trends_track: (?tag: String) -> Hash[Symbol, Array[Types::tracked_search_trend]]
967
+
968
+ # Clear Search Trends Cache
969
+ #
970
+ # You must be Admin+.
971
+ def search_trends_clear_cache: () -> Types::message_success_response
972
+
973
+ # Update Search Trends Settings
974
+ #
975
+ # You must be Admin+.
976
+ def search_trends_update_settings: (?search_trend_settings: { ?trends_enabled: bool, ?trends_displayed: bool, ?trends_min_today: Integer, ?trends_min_delta: Integer, ?trends_min_ratio: Numeric, ?trends_ip_limit: Integer, ?trends_ip_window: Integer, ?trends_tag_limit: Integer, ?trends_tag_window: Integer }) -> Types::message_success_response
977
+
978
+ # Purge Search Trends
979
+ #
980
+ # You must be Admin+.
981
+ def search_trends_purge: (Integer id) -> { deleted_count: Integer }
982
+
983
+ # Search Trend Blacklists Index
984
+ #
985
+ # You must be Admin+.
986
+ def search_trend_blacklists_index: (?limit: Integer, ?page: Integer | String, ?search: { ?order: ("id_asc" | "id_desc") }, ?tag: String, ?reason: String) -> Array[Types::search_trend_blacklist]
987
+
988
+ # Create Search Trend Blacklist
989
+ #
990
+ # You must be Admin+.
991
+ def search_trend_blacklists_create: (search_trend_blacklist: { tag: String, reason: String }) -> Types::search_trend_blacklist
992
+
993
+ # Update Search Trend Blacklist
994
+ #
995
+ # You must be Admin+.
996
+ def search_trend_blacklists_update: (Integer id, ?search_trend_blacklist: { ?tag: String, ?reason: String }) -> nil
997
+
998
+ # Delete Search Trend Blacklist
999
+ #
1000
+ # You must be Admin+.
1001
+ def search_trend_blacklists_destroy: (Integer id) -> nil
1002
+
1003
+ # Search Trend Hourlies Index
1004
+ #
1005
+ # You must be Admin+.
1006
+ def search_trend_hourlies_index: (?limit: Integer, ?page: Integer | String, ?search: { ?name_matches: String }, ?hour: String) -> Array[Types::search_trend_hourly]
1007
+
1008
+ # Login
1009
+ def sessions_create: (authenticity_token: String, session: { ?url: String, name: String, password: String, ?remember: bool }) -> { url: String }
1010
+
1011
+ # Logout
1012
+ #
1013
+ # Ends the login session on the server, so copies of its cookies stop working too.
1014
+ def sessions_destroy: (authenticity_token: String) -> nil
1015
+
1016
+ # Verify TOTP
1017
+ def sessions_verify_totp: (authenticity_token: String, totp: { code: String }) -> { url: String }
1018
+
1019
+ # Staff Notes Index
1020
+ def staff_notes_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc"), ?creator_id: Integer, ?creator_name: String, ?updater_id: Integer, ?updater_name: String, ?user_id: Integer, ?user_name: String, ?body_matches: String, ?without_system_user: bool, ?include_deleted: bool }) -> Array[Types::staff_note]
1021
+
1022
+ # Create Staff Note
1023
+ def staff_notes_create: (staff_note: { body: String }) -> Types::staff_note
1024
+
1025
+ # Get Staff Note
1026
+ def staff_notes_show: (Integer id) -> Types::staff_note
1027
+
1028
+ # Update Staff Note
1029
+ #
1030
+ # You must be the creator or Admin+.
1031
+ def staff_notes_update: (Integer id, ?staff_note: { ?body: String }) -> Types::staff_note
1032
+
1033
+ # Delete Staff Note
1034
+ #
1035
+ # You must be the creator or Admin+.
1036
+ def staff_notes_delete: (Integer id) -> Types::staff_note
1037
+
1038
+ # Undelete Staff Note
1039
+ #
1040
+ # You must be the creator or Admin+.
1041
+ def staff_notes_undelete: (Integer id) -> Types::staff_note
1042
+
1043
+ # Takedowns Index
1044
+ def takedowns_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc" | "status" | "post_count"), ?status: String, ?source: String, ?reason: String, ?creator_id: Integer, ?creator_name: String, ?reason_hidden: bool, ?instructions: String, ?post_id: Integer, ?notes: String, ?creator_logged_in: bool, ?email: String, ?vericode: String }) -> Array[Types::takedown]
1045
+
1046
+ # Create Takedown
1047
+ def takedowns_create: (takedown: { email: String, ?source: String, ?instructions: String, reason: String, ?post_ids: Array[Integer], ?reason_hidden: bool, ?notes: String, ?del_post_ids: Array[Integer], ?status: String }) -> Types::takedown
1048
+
1049
+ # Get Takedown
1050
+ def takedowns_show: (Integer id) -> Types::takedown
1051
+
1052
+ # Update Takedown
1053
+ #
1054
+ # You must have the bd staff user flag.
1055
+ def takedowns_update: (Integer id, ?takedown: { ?notes: String, ?reason_hidden: bool }, ?takedown_posts: String, ?process_takedown: bool, ?delete_reason: String) -> nil
1056
+
1057
+ # Delete Takedown
1058
+ #
1059
+ # You must have the bd staff user flag.
1060
+ def takedowns_destroy: (Integer id) -> nil
1061
+
1062
+ # Add Posts To Takedown By IDs
1063
+ #
1064
+ # You must have the bd staff user flag.
1065
+ def takedowns_add_by_ids: (Integer id, post_ids: String) -> { added_count: Integer, added_post_ids: Array[Integer] }
1066
+
1067
+ # Add Posts To Takedown By Tags
1068
+ #
1069
+ # You must have the bd staff user flag.
1070
+ def takedowns_add_by_tags: (Integer id, post_tags: String) -> { added_count: Integer, added_post_ids: Array[Integer] }
1071
+
1072
+ # Count Matching Posts
1073
+ #
1074
+ # You must have the bd staff user flag. Deleted posts are not counted.
1075
+ def takedowns_count_matching_posts: (Integer id, post_tags: String) -> { matched_post_count: Integer }
1076
+
1077
+ # Remove Posts From Takedown By IDs
1078
+ #
1079
+ # You must have the bd staff user flag.
1080
+ def takedowns_remove_by_ids: (Integer id, post_ids: String) -> nil
1081
+
1082
+ # Clear Posts
1083
+ #
1084
+ # You must have the bd staff user flag. Removes all posts from the takedown.
1085
+ def takedowns_clear_posts: (Integer id) -> { removed_count: Integer }
1086
+
1087
+ # Tickets Index
1088
+ #
1089
+ # You must be Staff+ to see tickets you did not create.
1090
+ def tickets_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?creator_name: String, ?creator_id: Integer, ?claimant_name: String, ?claimant_id: Integer, ?accused_name: String, ?accused_id: Integer, ?disp_id: Integer, ?qtype: Types::ticket_type, ?reason: String, ?status: ("pending" | "partial" | "approved" | "pending_claimed" | "pending_unclaimed") }) -> Array[Types::ticket]
1091
+
1092
+ # Get Ticket
1093
+ #
1094
+ # You must be Staff+ to see tickets you did not create.
1095
+ def tickets_show: (Integer id) -> Types::ticket
1096
+
1097
+ # Update Ticket
1098
+ #
1099
+ # You must be Moderator+.
1100
+ def tickets_update: (Integer id, ticket: { ?status: ("partial" | "approved"), response: String, ?record_type: Types::warning_record_type, ?send_update_dmail: bool }) -> nil
1101
+
1102
+ # Claim Ticket
1103
+ #
1104
+ # You must be Moderator+. Errors are quietly swallowed and shown as notices in html.
1105
+ def tickets_claim: (Integer id) -> Types::ticket
1106
+
1107
+ # Unclaim Ticket
1108
+ #
1109
+ # You must be Moderator+. Errors are quietly swallowed and shown as notices in html.
1110
+ def tickets_unclaim: (Integer id) -> Types::ticket
1111
+
1112
+ # Upload Karma Events Index
1113
+ def upload_karma_events_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc"), ?user_id: Integer, ?user_name: String, ?creator_id: Integer, ?creator_name: String, ?post_id: Integer, ?reason: Types::upload_karma_event_reason }) -> Array[Types::upload_karma_event]
1114
+
1115
+ # Uploads Index
1116
+ def uploads_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc"), ?uploader_id: Integer, ?uploader_name: String, ?source: String, ?source_matches: String, ?rating: Types::rating, ?parent_id: Integer, ?post_id: Integer, ?has_post: bool, ?post_tags_match: String, ?status: ("completed" | "failed" | "processing" | "queued" | "pending"), ?error_message: String, ?backtrace: String, ?tag_string: String }) -> Array[Types::upload]
1117
+
1118
+ # Upload Post
1119
+ def uploads_create: (upload: { ?file: (::IO | ::StringIO), ?direct_url: String, ?source: String, tag_string: String, rating: Types::rating, ?parent_id: Integer, ?description: String, ?as_pending: bool, ?locked_rating: bool, ?locked_tags: String }) -> { success: true, location: String, ?post_id: Integer, upload_id: Integer }
1120
+
1121
+ # Get Upload
1122
+ #
1123
+ # You must be the uploader, or Staff+. Can be polled while an upload is processing.
1124
+ def uploads_show: (Integer id) -> Types::upload
1125
+
1126
+ # Upload URL Rules Index
1127
+ def upload_url_rules_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "label" | "updated_at"), ?label: String, ?pattern: String, ?handling: ("recommend" | "block"), ?enabled: bool }) -> Array[Types::upload_url_rule]
1128
+
1129
+ # Check URL Against Upload URL Rules
1130
+ #
1131
+ # Checks a direct upload url against the enabled rules. The first matching `block` rule wins, otherwise the first matching `recommend` rule.<br>
1132
+ # Limited to 60 requests per minute.
1133
+ def upload_url_rules_check: (url: String) -> { match: bool, ?handling: ("recommend" | "block"), ?label: String, ?message: String, ?suggested_url: String?, ?canonical_url: String }
1134
+
1135
+ # Upload Whitelists Index
1136
+ def upload_whitelists_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "domain" | "path" | "updated_at" | "created_at"), ?domain: String, ?path: String, ?note: String, ?reason: String }) -> Array[Types::upload_whitelist]
1137
+
1138
+ # Create Upload Whitelist
1139
+ #
1140
+ # You must be Admin+.
1141
+ def upload_whitelists_create: (upload_whitelist: { allowed: String, domain: String, path: String, ?reason: String, ?note: String, ?hidden: bool }) -> Types::upload_whitelist
1142
+
1143
+ # Update Upload Whitelist
1144
+ def upload_whitelists_update: (Integer id, ?upload_whitelist: { ?allowed: String, ?pattern: String, ?reason: String, ?note: String, ?hidden: bool }) -> nil
1145
+
1146
+ # Delete Upload Whitelist
1147
+ #
1148
+ # You must be Admin+.
1149
+ def upload_whitelists_destroy: (Integer id) -> nil
1150
+
1151
+ # Check If URL Is Allowed
1152
+ def upload_whitelists_is_allowed: (?url: String) -> { url: String, domain: String, is_allowed: bool, reason: String }
1153
+
1154
+ # Users Index
1155
+ def users_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc" | "name" | "post_upload_count" | "note_count" | "post_update_count" | "upload_karma"), ?name_matches: String, ?about_me: String, ?avatar_id: Integer, ?level: Types::user_level, ?min_level: Types::user_level, ?max_level: Types::user_level, ?can_upload_free: bool, ?can_karma_free: bool, ?can_approve_posts: bool, ?email_matches: String }) -> Array[(Types::user | Types::current_user)]
1156
+
1157
+ # Get Current User
1158
+ #
1159
+ # This will return the default settings for anonymous users if no authentication is used.
1160
+ # This most interesting part is probably the default blacklist, located in `blacklisted_tags`.
1161
+ def users_me: () -> Types::full_current_user
1162
+
1163
+ # Get Avatar Menu
1164
+ def users_avatar_menu: () -> Types::user_avatar_menu
1165
+
1166
+ # Get Upload Tags
1167
+ #
1168
+ # Returns the current user's favorite tags and recently used tags, for use in the upload tag editor.
1169
+ def users_upload_tags: () -> { upload_tags: Array[Types::tag_with_count], recent_tags: Array[Types::tag_with_count] }
1170
+
1171
+ # Get User
1172
+ def users_show: ((Integer | String) id_or_name) -> (Types::full_user | Types::full_current_user)
1173
+
1174
+ # Update Current User
1175
+ def users_update: ((Integer | String) id_or_name, ?user: { ?comment_threshold: Integer, ?default_image_size: ("large" | "fit" | "fitv" | "original"), ?favorite_tags: String, ?blacklisted_tags: String, ?time_zone: String, ?per_page: Integer, ?custom_style: String, ?description_collapsed_initially: bool, ?hide_comments: bool, ?receive_email_notifications: bool, ?enable_keyboard_navigation: bool, ?enable_privacy_mode: bool, ?disable_user_dmails: bool, ?blacklist_users: bool, ?show_post_statistics: bool, ?show_hidden_comments: bool, ?enable_autocomplete: bool, ?disable_cropped_thumbnails: bool, ?enable_safe_mode: bool, ?disable_responsive_mode: bool, ?dmail_filter_attributes: { ?id: Integer, ?words: String }, ?profile_about: String, ?profile_artinfo: String, ?avatar_id: Integer, ?enable_compact_uploader: bool, ?forum_notification_dot: bool }) -> nil
1176
+
1177
+ # Get User Upload Limit
1178
+ def users_upload_limit: ((Integer | String) id_or_name) -> (Types::full_user | Types::full_current_user)
1179
+
1180
+ # Clear User Favorites
1181
+ #
1182
+ # You must be Admin+.
1183
+ def users_flush_favorites: ((Integer | String) id_or_name) -> nil
1184
+
1185
+ # Staff Fix User Counts
1186
+ #
1187
+ # You must be Janitor+.
1188
+ def users_fix_counts: ((Integer | String) id_or_name) -> nil
1189
+
1190
+ # Fix User Counts
1191
+ def maintenance_user_count_fixes_create: () -> nil
1192
+
1193
+ # Update User Dmail Filter
1194
+ def maintenance_user_dmail_filters_update: (dmail_id: Integer, dmail_filter: { words: String }) -> nil
1195
+
1196
+ # Update Avatar Crop
1197
+ def maintenance_user_avatars_update: (avatar_crop_x: Integer, avatar_crop_y: Integer, avatar_crop_w: Integer) -> nil
1198
+
1199
+ # User Feedbacks Index
1200
+ def user_feedbacks_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc"), ?deleted: ("included" | "excluded" | "only"), ?body_matches: String, ?user_id: Integer, ?user_name: String, ?creator_id: Integer, ?creator_name: String, ?category: Types::user_feedback_category }) -> Array[Types::user_feedback]
1201
+
1202
+ # Create User Feedback
1203
+ #
1204
+ # You must be Moderator+.
1205
+ def user_feedbacks_create: (user_feedback: { ?user_id: Integer, ?user_name: String, body: String, category: Types::user_feedback_category }) -> Types::user_feedback
1206
+
1207
+ # Get User Feedback
1208
+ #
1209
+ # You must be Staff+ if the feedback is deleted.
1210
+ def user_feedbacks_show: (Integer id) -> Types::user_feedback
1211
+
1212
+ # Update User Feedback
1213
+ #
1214
+ # You must be Moderator+.
1215
+ def user_feedbacks_update: (Integer id, ?user_feedback: { ?body: String, ?category: Types::user_feedback_category }) -> nil
1216
+
1217
+ # Destroy User Feedback
1218
+ #
1219
+ # You must be Admin+, or the creator and Moderator+.
1220
+ def user_feedbacks_destroy: (Integer id) -> nil
1221
+
1222
+ # Delete User Feedback
1223
+ #
1224
+ # You must be Moderator+.
1225
+ def user_feedbacks_delete: (Integer id) -> nil
1226
+
1227
+ # Undelete User Feedback
1228
+ #
1229
+ # You must be Moderator+.
1230
+ def user_feedbacks_undelete: (Integer id) -> nil
1231
+
1232
+ # User Name Change Requests Index
1233
+ #
1234
+ # You must be Moderator+.
1235
+ def user_name_change_requests_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc"), ?current_id: Integer, ?current_name: String, ?original_name: String, ?desired_name: String }) -> Array[Types::user_name_change_request]
1236
+
1237
+ # Create User Name Change Request
1238
+ #
1239
+ # Requires [browser authentication](#operations-Sessions-login) (username & password), as well as hourly password confirmations (reauthentication).
1240
+ def user_name_change_requests_create: (authenticity_token: String, user_name_change_request: { desired_name: String, ?change_reason: String }) -> nil
1241
+
1242
+ # Get User Name Change Request
1243
+ #
1244
+ # You must be the creator of the request or Moderator+.
1245
+ def user_name_change_requests_show: (Integer id) -> Types::user_name_change_request
1246
+
1247
+ # Delete User Name Change Request
1248
+ #
1249
+ # You must be Moderator+.
1250
+ def user_name_change_requests_destroy: (Integer id) -> nil
1251
+
1252
+ # Wiki Pages Index
1253
+ def wiki_pages_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "title" | "post_count"), ?title: String, ?title_matches: String, ?body_matches: String, ?other_names_match: String, ?creator_id: Integer, ?creator_name: String, ?parent: String, ?other_names_present: bool, ?is_locked: bool, ?is_deleted: bool }) -> Array[Types::wiki_page]
1254
+
1255
+ # Create Wiki Page
1256
+ def wiki_pages_create: (wiki_page: { title: String, body: String, ?edit_reason: String, ?parent: String, ?is_locked: bool, ?is_deleted: bool, ?skip_secondary_validations: bool, ?featured_posts_string: String }) -> Types::wiki_page
1257
+
1258
+ # Get Wiki Page
1259
+ def wiki_pages_show: ((Integer | String) id) -> Types::wiki_page
1260
+
1261
+ # Update Wiki Page
1262
+ #
1263
+ # You must be Staff+ if the wiki page is locked.
1264
+ def wiki_pages_update: (Integer id, ?wiki_page: { ?body: String, ?edit_reason: String, ?parent: String, ?title: String, ?is_locked: bool, ?is_deleted: bool, ?skip_secondary_validations: bool, ?featured_posts_string: String }) -> nil
1265
+
1266
+ # Delete Wiki Page
1267
+ #
1268
+ # You must be Admin+
1269
+ def wiki_pages_destroy: (Integer id) -> nil
1270
+
1271
+ # Revert Wiki Page
1272
+ def wiki_pages_revert: (Integer id, version_id: Integer) -> nil
1273
+
1274
+ # Wiki Page Versions Index
1275
+ def wiki_page_versions_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?ip_addr: String, ?order: ("id_asc" | "id_desc"), ?updater_id: Integer, ?updater_name: String, ?wiki_page_id: Integer, ?title: String, ?body: String, ?is_locked: bool, ?is_deleted: bool }) -> Array[Types::wiki_page_version]
1276
+
1277
+ # Get Wiki Page Version
1278
+ def wiki_page_versions_show: (Integer id) -> Types::wiki_page_version
1279
+
1280
+ # Admin Edit User
1281
+ #
1282
+ # You must be Admin+. If editing an Admin+, you must be Owner+.
1283
+ def staff_users_update: (Integer id, ?user: { ?verified: bool, ?level: Types::user_level, ?name: String, ?profile_about: String, ?profile_artinfo: String, ?base_upload_limit: Integer, ?enable_privacy_mode: bool, ?email: String, ?can_approve_posts: bool, ?can_upload_free: bool, ?no_flagging: bool, ?replacements_beta: bool, ?oauth_applications_beta: bool, ?custom_title: String, ?tag_warden: bool, ?raised_favorite_limit: bool }) -> nil
1284
+
1285
+ # Audit User DMails
1286
+ #
1287
+ # Must have the bd auditor user flag.
1288
+ def staff_dmails_index: (Integer user_id, ?limit: Integer, ?page: Integer | String) -> Array[Types::d_mail]
1289
+
1290
+ # Audit User DMail
1291
+ #
1292
+ # Must have the bd auditor user flag.
1293
+ def staff_dmails_show: (Integer user_id, Integer id) -> Types::d_mail
1294
+
1295
+ # Get Automod DMails
1296
+ #
1297
+ # You must be Staff+.
1298
+ def staff_automod_dmails_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?title_matches: String, ?message_matches: String, ?to_name: String, ?to_id: Integer, ?from_name: String, ?from_id: Integer, ?is_read: bool, ?is_deleted: bool, ?read: bool }) -> Array[Types::d_mail]
1299
+
1300
+ # Get Automod DMail
1301
+ #
1302
+ # You must be Staff+.
1303
+ def staff_automod_dmails_show: (Integer id) -> Types::d_mail
1304
+
1305
+ # Mark Automod DMail As Read
1306
+ #
1307
+ # You must be Staff+.
1308
+ def staff_automod_dmails_mark_as_read: (Integer id) -> nil
1309
+
1310
+ # Mark Automod DMail As Unread
1311
+ #
1312
+ # You must be Staff+.
1313
+ def staff_automod_dmails_mark_as_unread: (Integer id) -> nil
1314
+
1315
+ # Get Exception Logs
1316
+ #
1317
+ # You must be Staff+.
1318
+ def staff_exceptions_index: (?limit: Integer, ?page: Integer | String, ?search: { ?order: ("id_asc" | "id_desc"), ?id: (String | Integer), ?user_name: String, ?code: String, ?commit: String, ?class_name: String, ?without_class_name: String }) -> Array[Types::exception_log]
1319
+
1320
+ # Get Exception Log
1321
+ #
1322
+ # You must be Staff+.
1323
+ def staff_exceptions_show: (Integer id) -> Types::exception_log
1324
+
1325
+ # Delete Post
1326
+ #
1327
+ # You must have the "Approve Posts" permission. `commit=Delete` must be set.
1328
+ def staff_post_posts_delete: (Integer id, ?reason: String, ?move_favorites: bool, ?copy_sources: bool, ?copy_tags: bool, ?dmail: String, ?dmail_title: String, ?commit: "Delete") -> (Types::raw_post | nil)
1329
+
1330
+ # Undelete Post
1331
+ #
1332
+ # You must have the "Approve Posts" permission.
1333
+ def staff_post_posts_undelete: (Integer id) -> Types::raw_post
1334
+
1335
+ # Regenerate Post Thumbnails
1336
+ #
1337
+ # You must be Janitor+.
1338
+ def staff_post_posts_regenerate_thumbnails: (Integer id) -> { post: Types::post }
1339
+
1340
+ # Regenerate Post Videos
1341
+ #
1342
+ # You must be Janitor+.
1343
+ def staff_post_posts_regenerate_videos: (Integer id) -> nil
1344
+
1345
+ # Expunge Post
1346
+ #
1347
+ # You must have the "Approve Posts" permission and be Admin+.
1348
+ def staff_post_posts_expunge: (Integer id, ?reason: String) -> Types::raw_post
1349
+
1350
+ # Move Post Favorites
1351
+ #
1352
+ # You must have the "Approve Posts" permission. `commit=Submit`` must be set.
1353
+ def staff_post_posts_move_favorites: (Integer id, commit: "Submit") -> nil
1354
+
1355
+ # AI Check Post
1356
+ #
1357
+ # You must be Janitor+.
1358
+ def staff_post_posts_ai_check: (Integer id) -> nil
1359
+
1360
+ # Get Post Previous Owners
1361
+ #
1362
+ # You must be an Approver
1363
+ def staff_post_posts_previous_owners: (Integer id) -> Array[{ id: Integer, name: String }]
1364
+
1365
+ # Reown Post
1366
+ #
1367
+ # You must have be Janitor+ and an Approver
1368
+ def staff_post_posts_reowner: (Integer id, reowner: { new_owner: String, ?reowner_versions: bool, ?post_events: bool }) -> (Types::raw_post | nil)
1369
+
1370
+ # Approve Post
1371
+ #
1372
+ # You must have the "Approve Posts" permission.
1373
+ def staff_post_approvals_create: (post_id: Integer) -> (Hash[Symbol, untyped] | nil)
1374
+
1375
+ # Unapprove Post
1376
+ #
1377
+ # You must have the "Approve Posts" permission. The response does not differ for success or failure.
1378
+ def staff_post_approvals_destroy: (post_id: Integer) -> nil
1379
+
1380
+ # Get User Alts
1381
+ #
1382
+ # You must be Moderator+.
1383
+ def staff_user_alts_show: (user_id: Integer) -> Array[Types::user_alt]
1384
+
1385
+ # Clear User Avatar
1386
+ #
1387
+ # You must be Moderator+.
1388
+ def staff_user_cleanups_clear_avatar: (Integer id) -> nil
1389
+
1390
+ # Clear User Profile
1391
+ #
1392
+ # You must be Moderator+.
1393
+ def staff_user_cleanups_clear_profile: (Integer id) -> nil
1394
+
1395
+ # Hide User Comments
1396
+ #
1397
+ # You must be Moderator+.
1398
+ def staff_user_cleanups_hide_comments: (Integer id) -> nil
1399
+
1400
+ # Hide User Forum Posts
1401
+ #
1402
+ # You must be Moderator+.
1403
+ def staff_user_cleanups_hide_forum_posts: (Integer id) -> nil
1404
+
1405
+ # Hide User Blips
1406
+ #
1407
+ # You must be Moderator+.
1408
+ def staff_user_cleanups_hide_blips: (Integer id) -> nil
1409
+
1410
+ # Post Disapprovals Index
1411
+ #
1412
+ # You must have the "Approve Posts" permission.
1413
+ def staff_post_disapprovals_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "post_id" | "post_id_desc"), ?creator_id: Integer, ?creator_name: String, ?post_id: Integer, ?message: String, ?post_tags_match: String, ?reason: String, ?has_message: bool }) -> Array[Types::post_disapproval]
1414
+
1415
+ # Create Post Disapproval
1416
+ #
1417
+ # You must have the "Approve Posts" permission.
1418
+ def staff_post_disapprovals_create: (post_disapproval: { post_id: Integer, reason: ("borderline_quality" | "borderline_relevancy" | "other"), ?message: String }) -> Types::post_disapproval
1419
+
1420
+ # Staff Files Index
1421
+ #
1422
+ # You must be Staff+.
1423
+ def staff_files_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "original_filename" | "time"), ?creator_id: Integer, ?creator_name: String, ?original_filename: String, ?file_ext: String }) -> Array[Types::staff_file]
1424
+
1425
+ # Create Staff File
1426
+ #
1427
+ # You must be Staff+
1428
+ def staff_files_create: (staff_file: { file: (::IO | ::StringIO), ?title: String, ?description: String }) -> Types::staff_file
1429
+
1430
+ # Get Staff File
1431
+ #
1432
+ # You must be Staff+.
1433
+ def staff_files_show: (Integer id) -> Types::staff_file
1434
+
1435
+ # Update Staff File
1436
+ #
1437
+ # You must be Admin+ if you did not create the file, else Staff+
1438
+ def staff_files_update: (Integer id, ?staff_file: { ?title: String, ?description: String }) -> nil
1439
+
1440
+ # Delete Staff File
1441
+ #
1442
+ # You must be Admin+ if you did not created the file, else Staff+
1443
+ def staff_files_destroy: (Integer id) -> nil
1444
+
1445
+ # Staff Wikis Index
1446
+ #
1447
+ # You must be Staff+.
1448
+ def staff_wikis_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "title"), ?creator_id: Integer, ?creator_name: String, ?title: String, ?body_matches: String, ?editor_id: Integer }) -> Array[Types::staff_wiki]
1449
+
1450
+ # Create Staff Wiki
1451
+ #
1452
+ # You must be Staff+
1453
+ def staff_wikis_create: (staff_wiki: { title: String, ?body: String, ?related_type: ("User" | "Artist" | "StaffWiki"), ?related_id: Integer }) -> Types::staff_wiki
1454
+
1455
+ # Get Staff Wiki
1456
+ #
1457
+ # You must be Staff+.
1458
+ def staff_wikis_show: (Integer id) -> Types::staff_wiki
1459
+
1460
+ # Update Staff Wiki
1461
+ #
1462
+ # You must be Staff+
1463
+ def staff_wikis_update: (Integer id, ?staff_wiki: { ?title: String, ?body: String }) -> nil
1464
+
1465
+ # Delete Staff Wiki
1466
+ #
1467
+ # You must be Staff+.
1468
+ def staff_wikis_destroy: (Integer id) -> nil
1469
+
1470
+ # Claim Staff Wiki
1471
+ #
1472
+ # You must be Staff+
1473
+ def staff_wikis_claim: (Integer id) -> Types::staff_wiki
1474
+
1475
+ # Unclaim Staff Wiki
1476
+ #
1477
+ # You must be Staff+
1478
+ def staff_wikis_unclaim: (Integer id) -> Types::staff_wiki
1479
+
1480
+ # Revert Staff Wiki
1481
+ def staff_wikis_revert: (Integer id, version_id: Integer) -> nil
1482
+
1483
+ # Staff Wiki Versions Index
1484
+ #
1485
+ # You must be Staff+.
1486
+ def staff_wiki_versions_index: (?limit: Integer, ?page: Integer | String, ?search: { ?id: (String | Integer), ?order: ("id_asc" | "id_desc" | "title"), ?updater_id: Integer, ?updater_name: String, ?staff_wiki_id: Integer, ?title: String, ?body: String }) -> Array[Types::staff_wiki_version]
1487
+
1488
+ # Get Staff Wiki Version
1489
+ #
1490
+ # You must be Staff+.
1491
+ def staff_wiki_versions_show: (Integer id) -> Types::staff_wiki_version
1492
+
1493
+ # Get Vote Trends
1494
+ #
1495
+ # You must be Staff+.
1496
+ def staff_vote_trends_index: (?limit: Integer, user: (String | Integer), ?disable_vote_normality: Integer, ?threshold: Integer, ?duration: Integer) -> Array[(Types::vote_trend | Array[Integer])]
1497
+
1498
+ # Staff IP Addrs Index
1499
+ #
1500
+ # You must be Admin+.
1501
+ def staff_ip_addrs_index: (?search: { ?with_history: bool, ?user_id: String, ?user_name: String, ?ip_addr: String, ?add_ip_mask: bool }) -> Array[(Types::staff_ip_addr_user_listing | Types::staff_ip_addr_ip_listing)]
1502
+
1503
+ # Staff IP Addrs Export
1504
+ #
1505
+ # You must be Admin+. Nothing will be returned if one of the `user_id`/`user_name` search options is not specified.
1506
+ def staff_ip_addrs_export: (?search: { ?with_history: bool, ?user_id: String, ?user_name: String, ?ip_addr: String, ?add_ip_mask: bool }) -> Array[String]
1507
+
1508
+ # Reown Posts
1509
+ def staff_reowner_create: (reowner: { new_owner: String, ?reowner_versions: bool, ?post_events: bool }) -> nil
1510
+
1511
+ # Stuck DNP
1512
+ def staff_stuck_dnp_create: (stuck_dnp: { query: String }) -> nil
1513
+
1514
+ # Get Site Stats
1515
+ def stats_index: () -> Types::stats
1516
+ end
1517
+ end