e621 3.3.0 → 3.4.0

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.
Files changed (68) hide show
  1. package/dist/browser/e621.js +431 -216
  2. package/dist/browser/e621.js.map +4 -4
  3. package/dist/lib/generated/schemas.d.ts +23 -42
  4. package/dist/lib/generated/schemas.js +33 -57
  5. package/dist/lib/generated/sdk.d.ts +28 -5
  6. package/dist/lib/generated/sdk.js +216 -96
  7. package/dist/lib/generated/types.d.ts +484 -356
  8. package/dist/lib/models/Blip.d.ts +2 -3
  9. package/dist/lib/models/Blip.js +2 -2
  10. package/dist/lib/models/Comment.d.ts +2 -2
  11. package/dist/lib/models/Comment.js +2 -2
  12. package/dist/lib/models/ForumPost.d.ts +4 -5
  13. package/dist/lib/models/ForumPost.js +3 -3
  14. package/dist/lib/models/UploadKarmaEvent.d.ts +9 -0
  15. package/dist/lib/models/UploadKarmaEvent.js +6 -0
  16. package/dist/lib/models/index.d.ts +1 -0
  17. package/dist/lib/models/index.js +2 -1
  18. package/dist/lib/modules/Appeals.js +2 -2
  19. package/dist/lib/modules/Artists.js +3 -3
  20. package/dist/lib/modules/AvoidPostings.d.ts +16 -2
  21. package/dist/lib/modules/AvoidPostings.js +22 -3
  22. package/dist/lib/modules/Blips.d.ts +1 -1
  23. package/dist/lib/modules/Blips.js +4 -4
  24. package/dist/lib/modules/BulkUpdateRequests.js +3 -3
  25. package/dist/lib/modules/Comments.d.ts +3 -3
  26. package/dist/lib/modules/Comments.js +4 -4
  27. package/dist/lib/modules/EmailBlacklists.js +2 -2
  28. package/dist/lib/modules/ForumPostVotes.d.ts +1 -1
  29. package/dist/lib/modules/ForumPostVotes.js +2 -2
  30. package/dist/lib/modules/ForumPosts.d.ts +3 -3
  31. package/dist/lib/modules/ForumPosts.js +4 -4
  32. package/dist/lib/modules/ForumTopics.d.ts +13 -2
  33. package/dist/lib/modules/ForumTopics.js +19 -3
  34. package/dist/lib/modules/HelpPages.js +4 -4
  35. package/dist/lib/modules/IpBans.js +2 -2
  36. package/dist/lib/modules/NewsUpdates.js +3 -3
  37. package/dist/lib/modules/Notes.js +3 -3
  38. package/dist/lib/modules/Pools.js +3 -3
  39. package/dist/lib/modules/PostDisapprovals.js +2 -2
  40. package/dist/lib/modules/PostFlags.js +2 -2
  41. package/dist/lib/modules/PostSets.js +6 -6
  42. package/dist/lib/modules/Posts.js +5 -2
  43. package/dist/lib/modules/SearchTrendBlacklists.js +4 -4
  44. package/dist/lib/modules/SearchTrends.js +3 -3
  45. package/dist/lib/modules/StaffNotes.js +3 -3
  46. package/dist/lib/modules/StaffUsers.js +4 -4
  47. package/dist/lib/modules/TagAliases.d.ts +11 -0
  48. package/dist/lib/modules/TagAliases.js +26 -4
  49. package/dist/lib/modules/TagImplications.d.ts +11 -0
  50. package/dist/lib/modules/TagImplications.js +26 -4
  51. package/dist/lib/modules/Tags.js +2 -2
  52. package/dist/lib/modules/Takedowns.js +2 -2
  53. package/dist/lib/modules/Tickets.js +2 -2
  54. package/dist/lib/modules/UploadKarmaEvents.d.ts +18 -0
  55. package/dist/lib/modules/UploadKarmaEvents.js +28 -0
  56. package/dist/lib/modules/UploadWhitelists.js +3 -3
  57. package/dist/lib/modules/UserFeedbacks.js +3 -3
  58. package/dist/lib/modules/UserNameChangeRequests.js +2 -2
  59. package/dist/lib/modules/Users.d.ts +17 -2
  60. package/dist/lib/modules/Users.js +26 -4
  61. package/dist/lib/modules/WikiPages.js +3 -3
  62. package/dist/lib/modules/index.d.ts +3 -0
  63. package/dist/lib/modules/index.js +3 -1
  64. package/dist/lib/util.d.ts +4 -2
  65. package/dist/lib/util.js +3 -2
  66. package/dist/lib/version.d.ts +1 -1
  67. package/dist/lib/version.js +1 -1
  68. package/package.json +1 -1
@@ -6,7 +6,7 @@ export type AppealType = 'flag';
6
6
  export type DBExportName = 'artists' | 'bulk_update_requests' | 'pools' | 'post_replacements' | 'posts' | 'post_versions' | 'tag_aliases' | 'tag_implications' | 'tags' | 'wiki_pages';
7
7
  export type EditHistoryVersionableType = 'Blip' | 'Comment' | 'ForumPost';
8
8
  export type JWKSAlgorithm = 'RS256';
9
- export type ModActionAction = 'admin_user_delete' | 'artist_delete' | 'artist_page_rename' | 'artist_page_lock' | 'artist_page_unlock' | 'artist_user_linked' | 'artist_user_unlinked' | 'avoid_posting_create' | 'avoid_posting_update' | 'avoid_posting_delete' | 'avoid_posting_undelete' | 'avoid_posting_destroy' | 'staff_note_create' | 'staff_note_update' | 'staff_note_delete' | 'staff_note_undelete' | 'blip_destroy' | 'blip_delete' | 'blip_undelete' | 'blip_update' | 'comment_delete' | 'comment_hide' | 'comment_unhide' | 'comment_update' | 'forum_category_create' | 'forum_category_delete' | 'forum_category_update' | 'forum_post_delete' | 'forum_post_hide' | 'forum_post_unhide' | 'forum_post_update' | 'forum_topic_delete' | 'forum_topic_hide' | 'forum_topic_unhide' | 'forum_topic_lock' | 'forum_topic_unlock' | 'forum_topic_stick' | 'forum_topic_unstick' | 'forum_topic_update' | 'help_create' | 'help_delete' | 'help_update' | 'ip_ban_create' | 'ip_ban_delete' | 'search_trend_blacklist_create' | 'search_trend_blacklist_update' | 'search_trend_blacklist_delete' | 'search_trend_blacklist_purge' | 'mascot_create' | 'mascot_update' | 'mascot_delete' | 'staff_file_create' | 'staff_file_update' | 'staff_file_delete' | 'pool_delete' | 'report_reason_create' | 'report_reason_delete' | 'report_reason_update' | 'set_update' | 'set_delete' | 'set_change_visibility' | 'tag_destroy' | 'tag_alias_create' | 'tag_alias_update' | 'tag_implication_create' | 'tag_implication_update' | 'ticket_claim' | 'ticket_unclaim' | 'ticket_update' | 'appeal_claim' | 'appeal_unclaim' | 'appeal_update' | 'upload_whitelist_create' | 'upload_whitelist_update' | 'upload_whitelist_delete' | 'user_avatar_clear' | 'user_profile_clear' | 'user_comments_hide' | 'user_forum_posts_hide' | 'user_blips_delete' | 'user_blacklist_changed' | 'totp_reset' | 'password_reset' | 'user_text_change' | 'user_custom_title_change' | 'user_upload_limit_change' | 'user_karma_change' | 'user_karma_free_toggle' | 'user_uploads_toggle' | 'user_flags_change' | 'user_level_change' | 'user_name_change' | 'user_delete' | 'user_ban' | 'user_ban_update' | 'user_unban' | 'user_feedback_create' | 'user_feedback_update' | 'user_feedback_delete' | 'user_feedback_undelete' | 'user_feedback_destroy' | 'user_flush_favorites' | 'wiki_page_rename' | 'wiki_page_delete' | 'wiki_page_lock' | 'wiki_page_unlock' | 'mass_update' | 'nuke_tag' | 'takedown_delete' | 'takedown_process' | 'post_version_hide' | 'post_version_unhide' | 'created_positive_record' | 'created_neutral_record' | 'created_negative_record' | 'created_flag_reason' | 'edited_flag_reason' | 'deleted_flag_reason' | 'post_move_favorites' | 'post_delete' | 'post_undelete' | 'post_destroy' | 'post_rating_lock' | 'post_unapprove' | 'post_replacement_accept' | 'post_replacement_reject' | 'post_replacement_delete';
9
+ export type ModActionAction = 'admin_user_delete' | 'artist_delete' | 'artist_page_rename' | 'artist_page_lock' | 'artist_page_unlock' | 'artist_user_linked' | 'artist_user_unlinked' | 'avoid_posting_create' | 'avoid_posting_update' | 'avoid_posting_delete' | 'avoid_posting_undelete' | 'avoid_posting_destroy' | 'staff_note_create' | 'staff_note_update' | 'staff_note_delete' | 'staff_note_undelete' | 'blip_destroy' | 'blip_delete' | 'blip_undelete' | 'blip_update' | 'comment_delete' | 'comment_hide' | 'comment_unhide' | 'comment_update' | 'forum_category_create' | 'forum_category_delete' | 'forum_category_update' | 'forum_post_delete' | 'forum_post_hide' | 'forum_post_unhide' | 'forum_post_update' | 'forum_topic_delete' | 'forum_topic_hide' | 'forum_topic_unhide' | 'forum_topic_lock' | 'forum_topic_unlock' | 'forum_topic_stick' | 'forum_topic_unstick' | 'forum_topic_update' | 'help_create' | 'help_delete' | 'help_update' | 'ip_ban_create' | 'ip_ban_delete' | 'search_trend_blacklist_create' | 'search_trend_blacklist_update' | 'search_trend_blacklist_delete' | 'search_trend_blacklist_purge' | 'mascot_create' | 'mascot_update' | 'mascot_delete' | 'staff_file_create' | 'staff_file_update' | 'staff_file_delete' | 'pool_delete' | 'report_reason_create' | 'report_reason_delete' | 'report_reason_update' | 'set_update' | 'set_delete' | 'set_change_visibility' | 'tag_destroy' | 'tag_alias_create' | 'tag_alias_update' | 'tag_alias_undo' | 'tag_implication_create' | 'tag_implication_update' | 'tag_implication_undo' | 'ticket_claim' | 'ticket_unclaim' | 'ticket_update' | 'appeal_claim' | 'appeal_unclaim' | 'appeal_update' | 'upload_whitelist_create' | 'upload_whitelist_update' | 'upload_whitelist_delete' | 'user_avatar_clear' | 'user_profile_clear' | 'user_comments_hide' | 'user_forum_posts_hide' | 'user_blips_delete' | 'user_blacklist_changed' | 'totp_reset' | 'password_reset' | 'user_text_change' | 'user_custom_title_change' | 'user_upload_limit_change' | 'user_karma_change' | 'user_karma_free_toggle' | 'user_uploads_toggle' | 'user_flags_change' | 'user_level_change' | 'user_name_change' | 'user_delete' | 'user_ban' | 'user_ban_update' | 'user_unban' | 'user_feedback_create' | 'user_feedback_update' | 'user_feedback_delete' | 'user_feedback_undelete' | 'user_feedback_destroy' | 'user_flush_favorites' | 'wiki_page_rename' | 'wiki_page_delete' | 'wiki_page_lock' | 'wiki_page_unlock' | 'mass_update' | 'nuke_tag' | 'takedown_delete' | 'takedown_process' | 'post_version_hide' | 'post_version_unhide' | 'created_positive_record' | 'created_neutral_record' | 'created_negative_record' | 'created_flag_reason' | 'edited_flag_reason' | 'deleted_flag_reason' | 'post_move_favorites' | 'post_delete' | 'post_undelete' | 'post_destroy' | 'post_rating_lock' | 'post_unapprove' | 'post_replacement_accept' | 'post_replacement_reject' | 'post_replacement_delete';
10
10
  export type OAuthClaim = 'iss' | 'sub' | 'aud' | 'exp' | 'iat' | 'preferred_username' | 'name' | 'picture' | 'updated_at' | 'e621_level' | 'e621_level_string' | 'e621_avatar_id' | 'e621_permissions' | 'email' | 'email_verified';
11
11
  export type OAuthClaimType = 'normal';
12
12
  export type OAuthCodeChallengeMethod = 'S256';
@@ -34,6 +34,7 @@ export type UpDownVote = 1 | -1;
34
34
  export type UserFeedbackCategory = 'negative' | 'neutral' | 'positive';
35
35
  export type UserLevel = 0 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80;
36
36
  export type UserLevelName = 'Anonymous' | 'Blocked' | 'Member' | 'Privileged' | 'Former Staff' | 'Staff' | 'Janitor' | 'Moderator' | 'Admin';
37
+ export type WarningRecordType = 'warning' | 'record' | 'ban' | 'unmark';
37
38
  export type WarningType = 'warning' | 'record' | 'ban';
38
39
  export type APIKey = {
39
40
  id: number;
@@ -147,9 +148,6 @@ export type Blip = {
147
148
  updater_id: number;
148
149
  creator_name: string;
149
150
  };
150
- export type BulkRelatedTag = RelatedTag & {
151
- count: number;
152
- };
153
151
  export type BulkUpdateRequest = {
154
152
  id: number;
155
153
  creator_id: number;
@@ -200,7 +198,6 @@ export type CurrentUser = User & {
200
198
  receive_email_notifications: boolean;
201
199
  enable_keyboard_navigation: boolean;
202
200
  enable_privacy_mode: boolean;
203
- style_usernames: boolean;
204
201
  enable_auto_complete: boolean;
205
202
  can_approve_posts?: boolean;
206
203
  disable_cropped_thumbnails: boolean;
@@ -1011,10 +1008,6 @@ export type RecommendedPosts = {
1011
1008
  model_version: string;
1012
1009
  results: Array<PostRecommendation>;
1013
1010
  };
1014
- export type RelatedTag = {
1015
- name: string;
1016
- category_id: TagCategory;
1017
- };
1018
1011
  export type RisingSearchTrend = {
1019
1012
  name: string;
1020
1013
  pretty_name: string;
@@ -1149,7 +1142,7 @@ export type Stats = {
1149
1142
  blocked_users: number;
1150
1143
  member_users: number;
1151
1144
  privileged_users: number;
1152
- 'former staff_users': number;
1145
+ former_staff_users: number;
1153
1146
  staff_users: number;
1154
1147
  janitor_users: number;
1155
1148
  moderator_users: number;
@@ -1252,6 +1245,11 @@ export type TagTypeVersion = {
1252
1245
  tag_id: number;
1253
1246
  creator_id: number;
1254
1247
  };
1248
+ export type TagWithCount = {
1249
+ name: string;
1250
+ category_id: TagCategory;
1251
+ count: number;
1252
+ };
1255
1253
  export type Takedown = {
1256
1254
  id: number;
1257
1255
  status: 'approved' | 'denied' | 'partial' | 'pending';
@@ -1447,9 +1445,6 @@ export type VoteTrendUploader = {
1447
1445
  uploader_id: number;
1448
1446
  uploader: User;
1449
1447
  };
1450
- export type WarningRecordType = {
1451
- record_type: 'unmark' | 'ban' | 'record' | 'warning';
1452
- };
1453
1448
  export type WikiPage = {
1454
1449
  id: number;
1455
1450
  created_at: string;
@@ -1560,7 +1555,9 @@ export type idPath = number;
1560
1555
  * An ID that can be either an integer or a name.
1561
1556
  */
1562
1557
  export type idOrNamePath = number | string;
1563
- export type warning = WarningRecordType;
1558
+ export type warning = {
1559
+ record_type: WarningRecordType;
1560
+ };
1564
1561
  export type ApiKeysIndexData = {
1565
1562
  body?: never;
1566
1563
  path?: never;
@@ -1798,12 +1795,12 @@ export type AppealsShowResponses = {
1798
1795
  export type AppealsShowResponse = AppealsShowResponses[keyof AppealsShowResponses];
1799
1796
  export type AppealsUpdateData = {
1800
1797
  body?: {
1801
- status?: 'partial' | 'approved';
1802
- response?: string;
1798
+ 'appeal[status]'?: 'partial' | 'approved';
1799
+ 'appeal[response]'?: string;
1803
1800
  /**
1804
1801
  * An update dmail will always be sent when the status is changed.
1805
1802
  */
1806
- send_update_dmail?: boolean;
1803
+ 'appeal[send_update_dmail]'?: boolean;
1807
1804
  };
1808
1805
  path: {
1809
1806
  /**
@@ -1933,20 +1930,20 @@ export type ArtistsIndexResponses = {
1933
1930
  export type ArtistsIndexResponse = ArtistsIndexResponses[keyof ArtistsIndexResponses];
1934
1931
  export type ArtistsCreateData = {
1935
1932
  body?: {
1936
- name: string;
1937
- other_names?: Array<string>;
1938
- other_names_string?: string;
1939
- url_string?: string;
1940
- notes?: string;
1941
- group_name?: string;
1933
+ 'artist[name]': string;
1934
+ 'artist[other_names][]'?: Array<string>;
1935
+ 'artist[other_names_string]'?: string;
1936
+ 'artist[url_string]'?: string;
1937
+ 'artist[notes]'?: string;
1938
+ 'artist[group_name]'?: string;
1942
1939
  /**
1943
1940
  * Only usable for Staff+
1944
1941
  */
1945
- linked_user_id?: number | null;
1942
+ 'artist[linked_user_id]'?: number | null;
1946
1943
  /**
1947
1944
  * Only usable for Staff+
1948
1945
  */
1949
- is_locked?: boolean;
1946
+ 'artist[is_locked]'?: boolean;
1950
1947
  };
1951
1948
  path?: never;
1952
1949
  query?: never;
@@ -2034,20 +2031,20 @@ export type ArtistsUpdateData = {
2034
2031
  /**
2035
2032
  * Only usable for Staff+
2036
2033
  */
2037
- name?: string;
2038
- other_names?: Array<string>;
2039
- other_names_string?: string;
2040
- url_string?: string;
2041
- notes?: string;
2042
- group_name?: string;
2034
+ 'artist[name]'?: string;
2035
+ 'artist[other_names][]'?: Array<string>;
2036
+ 'artist[other_names_string]'?: string;
2037
+ 'artist[url_string]'?: string;
2038
+ 'artist[notes]'?: string;
2039
+ 'artist[group_name]'?: string;
2043
2040
  /**
2044
2041
  * Only usable for Staff+
2045
2042
  */
2046
- linked_user_id?: number | null;
2043
+ 'artist[linked_user_id]'?: number | null;
2047
2044
  /**
2048
2045
  * Only usable for Staff+
2049
2046
  */
2050
- is_locked?: boolean;
2047
+ 'artist[is_locked]'?: boolean;
2051
2048
  };
2052
2049
  path: {
2053
2050
  /**
@@ -2308,19 +2305,17 @@ export type AvoidPostingsIndexResponses = {
2308
2305
  export type AvoidPostingsIndexResponse = AvoidPostingsIndexResponses[keyof AvoidPostingsIndexResponses];
2309
2306
  export type AvoidPostingsCreateData = {
2310
2307
  body?: {
2311
- details?: string;
2312
- staff_notes?: string;
2313
- is_active?: boolean;
2314
- artist_attributes: {
2315
- /**
2316
- * If provided and the artist does not exist, an artist will be created.
2317
- */
2318
- name: string;
2319
- other_names_string?: string;
2320
- other_names?: Array<string>;
2321
- group_name?: string;
2322
- linked_user_id?: number;
2323
- };
2308
+ 'avoid_posting[details]'?: string;
2309
+ 'avoid_posting[staff_notes]'?: string;
2310
+ 'avoid_posting[is_active]'?: boolean;
2311
+ /**
2312
+ * If provided and the artist does not exist, an artist will be created.
2313
+ */
2314
+ 'avoid_posting[artist_attributes][name]': string;
2315
+ 'avoid_posting[artist_attributes][other_names_string]'?: string;
2316
+ 'avoid_posting[artist_attributes][other_names][]'?: Array<string>;
2317
+ 'avoid_posting[artist_attributes][group_name]'?: string;
2318
+ 'avoid_posting[artist_attributes][linked_user_id]'?: number;
2324
2319
  };
2325
2320
  path?: never;
2326
2321
  query?: never;
@@ -2402,19 +2397,17 @@ export type AvoidPostingsShowResponses = {
2402
2397
  export type AvoidPostingsShowResponse = AvoidPostingsShowResponses[keyof AvoidPostingsShowResponses];
2403
2398
  export type AvoidPostingsUpdateData = {
2404
2399
  body?: {
2405
- details?: string;
2406
- staff_notes?: string;
2407
- is_active?: boolean;
2408
- artist_attributes?: {
2409
- /**
2410
- * If provided and the artist does not exist, an artist will be created.
2411
- */
2412
- name?: string;
2413
- other_names_string?: string;
2414
- other_names?: Array<string>;
2415
- group_name?: string;
2416
- linked_user_id?: number;
2417
- };
2400
+ 'avoid_posting[details]'?: string;
2401
+ 'avoid_posting[staff_notes]'?: string;
2402
+ 'avoid_posting[is_active]'?: boolean;
2403
+ /**
2404
+ * If provided and the artist does not exist, an artist will be created.
2405
+ */
2406
+ 'avoid_posting[artist_attributes][name]'?: string;
2407
+ 'avoid_posting[artist_attributes][other_names_string]'?: string;
2408
+ 'avoid_posting[artist_attributes][other_names][]'?: Array<string>;
2409
+ 'avoid_posting[artist_attributes][group_name]'?: string;
2410
+ 'avoid_posting[artist_attributes][linked_user_id]'?: number;
2418
2411
  };
2419
2412
  path: {
2420
2413
  /**
@@ -2689,8 +2682,8 @@ export type BlipsIndexResponses = {
2689
2682
  export type BlipsIndexResponse = BlipsIndexResponses[keyof BlipsIndexResponses];
2690
2683
  export type BlipsCreateData = {
2691
2684
  body?: {
2692
- body: string;
2693
- response_to?: number;
2685
+ 'blip[body]': string;
2686
+ 'blip[response_to]'?: number;
2694
2687
  };
2695
2688
  path?: never;
2696
2689
  query?: never;
@@ -2780,7 +2773,7 @@ export type BlipsShowResponses = {
2780
2773
  export type BlipsShowResponse = BlipsShowResponses[keyof BlipsShowResponses];
2781
2774
  export type BlipsUpdateData = {
2782
2775
  body?: {
2783
- body?: string;
2776
+ 'blip[body]'?: string;
2784
2777
  };
2785
2778
  path: {
2786
2779
  /**
@@ -2929,17 +2922,17 @@ export type BulkUpdateRequestsIndexResponses = {
2929
2922
  export type BulkUpdateRequestsIndexResponse = BulkUpdateRequestsIndexResponses[keyof BulkUpdateRequestsIndexResponses];
2930
2923
  export type BulkUpdateRequestsCreateData = {
2931
2924
  body?: {
2932
- script: string;
2933
- title: string;
2934
- reason: string;
2925
+ 'bulk_update_request[script]': string;
2926
+ 'bulk_update_request[title]': string;
2927
+ 'bulk_update_request[reason]': string;
2935
2928
  /**
2936
2929
  * You must be able to reply to the topic.
2937
2930
  */
2938
- forum_topic_id?: number;
2931
+ 'bulk_update_request[forum_topic_id]'?: number;
2939
2932
  /**
2940
2933
  * Only usable for Admin+
2941
2934
  */
2942
- skip_forum?: boolean;
2935
+ 'bulk_update_request[skip_forum]'?: boolean;
2943
2936
  };
2944
2937
  path?: never;
2945
2938
  query?: never;
@@ -3021,15 +3014,15 @@ export type BulkUpdateRequestsShowResponses = {
3021
3014
  export type BulkUpdateRequestsShowResponse = BulkUpdateRequestsShowResponses[keyof BulkUpdateRequestsShowResponses];
3022
3015
  export type BulkUpdateRequestsUpdateData = {
3023
3016
  body?: {
3024
- script?: string;
3017
+ 'bulk_update_request[script]'?: string;
3025
3018
  /**
3026
3019
  * You must be Admin+.
3027
3020
  */
3028
- forum_topic_id?: string;
3021
+ 'bulk_update_request[forum_topic_id]'?: string;
3029
3022
  /**
3030
3023
  * You must be Admin+.
3031
3024
  */
3032
- forum_post_id?: string;
3025
+ 'bulk_update_request[forum_post_id]'?: string;
3033
3026
  };
3034
3027
  path: {
3035
3028
  /**
@@ -3146,17 +3139,17 @@ export type CommentsIndexResponses = {
3146
3139
  export type CommentsIndexResponse = CommentsIndexResponses[keyof CommentsIndexResponses];
3147
3140
  export type CommentsCreateData = {
3148
3141
  body?: {
3149
- body: string;
3150
- post_id: number;
3151
- do_not_bump_post?: boolean;
3142
+ 'comment[body]': string;
3143
+ 'comment[post_id]': number;
3144
+ 'comment[do_not_bump_post]'?: boolean;
3152
3145
  /**
3153
3146
  * Only usable for Staff+
3154
3147
  */
3155
- is_sticky?: boolean;
3148
+ 'comment[is_sticky]'?: boolean;
3156
3149
  /**
3157
3150
  * Only usable for Moderator+
3158
3151
  */
3159
- is_hidden?: boolean;
3152
+ 'comment[is_hidden]'?: boolean;
3160
3153
  };
3161
3154
  path?: never;
3162
3155
  query?: never;
@@ -3242,15 +3235,15 @@ export type CommentsShowResponses = {
3242
3235
  export type CommentsShowResponse = CommentsShowResponses[keyof CommentsShowResponses];
3243
3236
  export type CommentsUpdateData = {
3244
3237
  body?: {
3245
- body?: string;
3238
+ 'comment[body]'?: string;
3246
3239
  /**
3247
3240
  * Only usable for Staff+
3248
3241
  */
3249
- is_sticky?: boolean;
3242
+ 'comment[is_sticky]'?: boolean;
3250
3243
  /**
3251
3244
  * Only usable for Moderator+
3252
3245
  */
3253
- is_hidden?: boolean;
3246
+ 'comment[is_hidden]'?: boolean;
3254
3247
  };
3255
3248
  path: {
3256
3249
  /**
@@ -3285,31 +3278,6 @@ export type CommentsUpdateResponses = {
3285
3278
  204: void;
3286
3279
  };
3287
3280
  export type CommentsUpdateResponse = CommentsUpdateResponses[keyof CommentsUpdateResponses];
3288
- export type CommentsForPostData = {
3289
- body?: never;
3290
- path: {
3291
- /**
3292
- * The ID of the item.
3293
- */
3294
- id: number;
3295
- };
3296
- query?: never;
3297
- url: '/comments/{id}/for_post.json';
3298
- };
3299
- export type CommentsForPostErrors = {
3300
- /**
3301
- * Not Found
3302
- */
3303
- 404: NotFoundResponse;
3304
- };
3305
- export type CommentsForPostError = CommentsForPostErrors[keyof CommentsForPostErrors];
3306
- export type CommentsForPostResponses = {
3307
- /**
3308
- * Success
3309
- */
3310
- 200: DTextResponse;
3311
- };
3312
- export type CommentsForPostResponse = CommentsForPostResponses[keyof CommentsForPostResponses];
3313
3281
  export type CommentsHideData = {
3314
3282
  body?: never;
3315
3283
  path: {
@@ -4112,8 +4080,8 @@ export type EmailBlacklistsIndexResponses = {
4112
4080
  export type EmailBlacklistsIndexResponse = EmailBlacklistsIndexResponses[keyof EmailBlacklistsIndexResponses];
4113
4081
  export type EmailBlacklistsCreateData = {
4114
4082
  body?: {
4115
- domain: string;
4116
- reason: string;
4083
+ 'email_blacklist[domain]': string;
4084
+ 'email_blacklist[reason]': string;
4117
4085
  };
4118
4086
  path?: never;
4119
4087
  query?: never;
@@ -4321,8 +4289,8 @@ export type ForumPostsIndexResponses = {
4321
4289
  export type ForumPostsIndexResponse = ForumPostsIndexResponses[keyof ForumPostsIndexResponses];
4322
4290
  export type ForumPostsCreateData = {
4323
4291
  body?: {
4324
- body: string;
4325
- topic_id: number;
4292
+ 'forum_post[body]': string;
4293
+ 'forum_post[topic_id]': number;
4326
4294
  };
4327
4295
  path?: never;
4328
4296
  query?: never;
@@ -4408,7 +4376,7 @@ export type ForumPostsShowResponses = {
4408
4376
  export type ForumPostsShowResponse = ForumPostsShowResponses[keyof ForumPostsShowResponses];
4409
4377
  export type ForumPostsUpdateData = {
4410
4378
  body?: {
4411
- body?: string;
4379
+ 'forum_post[body]'?: string;
4412
4380
  };
4413
4381
  path: {
4414
4382
  /**
@@ -4602,7 +4570,7 @@ export type ForumPostVotesShowResponses = {
4602
4570
  export type ForumPostVotesShowResponse = ForumPostVotesShowResponses[keyof ForumPostVotesShowResponses];
4603
4571
  export type ForumPostVotesCreateData = {
4604
4572
  body?: {
4605
- score: UpDownMehFlipVote;
4573
+ 'forum_post_vote[score]': UpDownMehFlipVote;
4606
4574
  };
4607
4575
  path: {
4608
4576
  /**
@@ -4671,27 +4639,25 @@ export type ForumTopicsIndexResponses = {
4671
4639
  };
4672
4640
  export type ForumTopicsIndexResponse = ForumTopicsIndexResponses[keyof ForumTopicsIndexResponses];
4673
4641
  export type ForumTopicsCreateData = {
4674
- body?: {
4675
- title: string;
4676
- category_id: number;
4642
+ body?: unknown & {
4643
+ 'forum_topic[title]': string;
4644
+ 'forum_topic[category_id]': number;
4677
4645
  /**
4678
4646
  * You must be Moderator+.
4679
4647
  */
4680
- is_sticky?: boolean;
4648
+ 'forum_topic[is_sticky]'?: boolean;
4681
4649
  /**
4682
4650
  * You must be Moderator+.
4683
4651
  */
4684
- is_locked?: boolean;
4685
- original_post_attributes: {
4686
- /**
4687
- * Forum post ID. Mutually exclusive with body, one must be provided.
4688
- */
4689
- id?: number;
4690
- /**
4691
- * First forum post body. Mutually exclusive with id, one must be provided.
4692
- */
4693
- body?: string;
4694
- };
4652
+ 'forum_topic[is_locked]'?: boolean;
4653
+ /**
4654
+ * Forum post ID. Mutually exclusive with body, one must be provided.
4655
+ */
4656
+ 'forum_topic[original_post_attributes][id]'?: number;
4657
+ /**
4658
+ * First forum post body. Mutually exclusive with id, one must be provided.
4659
+ */
4660
+ 'forum_topic[original_post_attributes][body]'?: string;
4695
4661
  };
4696
4662
  path?: never;
4697
4663
  query?: never;
@@ -4777,26 +4743,24 @@ export type ForumTopicsShowResponses = {
4777
4743
  export type ForumTopicsShowResponse = ForumTopicsShowResponses[keyof ForumTopicsShowResponses];
4778
4744
  export type ForumTopicsUpdateData = {
4779
4745
  body?: {
4780
- title?: string;
4781
- category_id?: number;
4746
+ 'forum_topic[title]'?: string;
4747
+ 'forum_topic[category_id]'?: number;
4782
4748
  /**
4783
4749
  * You must be Moderator+.
4784
4750
  */
4785
- is_sticky?: boolean;
4751
+ 'forum_topic[is_sticky]'?: boolean;
4786
4752
  /**
4787
4753
  * You must be Moderator+.
4788
4754
  */
4789
- is_locked?: boolean;
4790
- original_post_attributes?: {
4791
- /**
4792
- * Forum post ID. Silently ignored
4793
- */
4794
- id?: number;
4795
- /**
4796
- * First forum post body.
4797
- */
4798
- body?: string;
4799
- };
4755
+ 'forum_topic[is_locked]'?: boolean;
4756
+ /**
4757
+ * Forum post ID. Silently ignored
4758
+ */
4759
+ 'forum_topic[original_post_attributes][id]'?: number;
4760
+ /**
4761
+ * First forum post body.
4762
+ */
4763
+ 'forum_topic[original_post_attributes][body]'?: string;
4800
4764
  };
4801
4765
  path: {
4802
4766
  /**
@@ -4991,13 +4955,13 @@ export type HelpIndexResponses = {
4991
4955
  export type HelpIndexResponse = HelpIndexResponses[keyof HelpIndexResponses];
4992
4956
  export type HelpCreateData = {
4993
4957
  body?: {
4994
- name: string;
4995
- wiki_page: string;
4958
+ 'help_page[name]': string;
4959
+ 'help_page[wiki_page]': string;
4996
4960
  /**
4997
4961
  * Separate with a comma followed by a space.
4998
4962
  */
4999
- related?: string;
5000
- title?: string;
4963
+ 'help_page[related]'?: string;
4964
+ 'help_page[title]'?: string;
5001
4965
  };
5002
4966
  path?: never;
5003
4967
  query?: never;
@@ -5096,13 +5060,13 @@ export type HelpShowResponses = {
5096
5060
  export type HelpShowResponse = HelpShowResponses[keyof HelpShowResponses];
5097
5061
  export type HelpUpdateData = {
5098
5062
  body?: {
5099
- name?: string;
5100
- wiki_page?: string;
5063
+ 'help_page[name]'?: string;
5064
+ 'help_page[wiki_page]'?: string;
5101
5065
  /**
5102
5066
  * Separate with a comma followed by a space.
5103
5067
  */
5104
- related?: string;
5105
- title?: string;
5068
+ 'help_page[related]'?: string;
5069
+ 'help_page[title]'?: string;
5106
5070
  };
5107
5071
  path: {
5108
5072
  /**
@@ -5176,8 +5140,8 @@ export type IpBansIndexResponses = {
5176
5140
  export type IpBansIndexResponse = IpBansIndexResponses[keyof IpBansIndexResponses];
5177
5141
  export type IpBansCreateData = {
5178
5142
  body?: {
5179
- ip_addr: string;
5180
- reason: string;
5143
+ 'ip_ban[ip_addr]': string;
5144
+ 'ip_ban[reason]': string;
5181
5145
  };
5182
5146
  path?: never;
5183
5147
  query?: never;
@@ -5322,6 +5286,8 @@ export type MascotsCreateData = {
5322
5286
  'mascot[mascot_file]': Blob | File;
5323
5287
  'mascot[display_name]': string;
5324
5288
  'mascot[background_color]': string;
5289
+ 'mascot[foreground_color]'?: string;
5290
+ 'mascot[is_layered]'?: boolean;
5325
5291
  'mascot[artist_url]': string;
5326
5292
  'mascot[artist_name]': string;
5327
5293
  /**
@@ -5329,7 +5295,6 @@ export type MascotsCreateData = {
5329
5295
  */
5330
5296
  'mascot[available_on_string]'?: string;
5331
5297
  'mascot[active]'?: boolean;
5332
- 'mascot[hide_anonymous]'?: boolean;
5333
5298
  };
5334
5299
  path?: never;
5335
5300
  query?: never;
@@ -5389,6 +5354,8 @@ export type MascotsUpdateData = {
5389
5354
  'mascot[mascot_file]'?: Blob | File;
5390
5355
  'mascot[display_name]'?: string;
5391
5356
  'mascot[background_color]'?: string;
5357
+ 'mascot[foreground_color]'?: string;
5358
+ 'mascot[is_layered]'?: boolean;
5392
5359
  'mascot[artist_url]'?: string;
5393
5360
  'mascot[artist_name]'?: string;
5394
5361
  /**
@@ -5396,7 +5363,6 @@ export type MascotsUpdateData = {
5396
5363
  */
5397
5364
  'mascot[available_on_string]'?: string;
5398
5365
  'mascot[active]'?: boolean;
5399
- 'mascot[hide_anonymous]'?: boolean;
5400
5366
  };
5401
5367
  path: {
5402
5368
  /**
@@ -5514,7 +5480,7 @@ export type NewsUpdatesIndexResponses = {
5514
5480
  export type NewsUpdatesIndexResponse = NewsUpdatesIndexResponses[keyof NewsUpdatesIndexResponses];
5515
5481
  export type NewsUpdatesCreateData = {
5516
5482
  body?: {
5517
- message: string;
5483
+ 'news_update[message]': string;
5518
5484
  };
5519
5485
  path?: never;
5520
5486
  query?: never;
@@ -5571,7 +5537,7 @@ export type NewsUpdatesDestroyResponses = {
5571
5537
  export type NewsUpdatesDestroyResponse = NewsUpdatesDestroyResponses[keyof NewsUpdatesDestroyResponses];
5572
5538
  export type NewsUpdatesUpdateData = {
5573
5539
  body?: {
5574
- message: string;
5540
+ 'news_update[message]': string;
5575
5541
  };
5576
5542
  path: {
5577
5543
  /**
@@ -5649,16 +5615,16 @@ export type NotesIndexResponses = {
5649
5615
  export type NotesIndexResponse = NotesIndexResponses[keyof NotesIndexResponses];
5650
5616
  export type NotesCreateData = {
5651
5617
  body?: {
5652
- post_id: number;
5653
- x: number;
5654
- y: number;
5655
- width: number;
5656
- height: number;
5657
- body: string;
5618
+ 'note[post_id]': number;
5619
+ 'note[x]': number;
5620
+ 'note[y]': number;
5621
+ 'note[width]': number;
5622
+ 'note[height]': number;
5623
+ 'note[body]': string;
5658
5624
  /**
5659
5625
  * Passthrough, used in frontend.
5660
5626
  */
5661
- html_id?: string;
5627
+ 'note[html_id]'?: string;
5662
5628
  };
5663
5629
  path?: never;
5664
5630
  query?: never;
@@ -5745,11 +5711,11 @@ export type NotesShowResponses = {
5745
5711
  export type NotesShowResponse = NotesShowResponses[keyof NotesShowResponses];
5746
5712
  export type NotesUpdateData = {
5747
5713
  body?: {
5748
- x?: number;
5749
- y?: number;
5750
- width?: number;
5751
- height?: number;
5752
- body?: string;
5714
+ 'note[x]'?: number;
5715
+ 'note[y]'?: number;
5716
+ 'note[width]'?: number;
5717
+ 'note[height]'?: number;
5718
+ 'note[body]'?: string;
5753
5719
  };
5754
5720
  path: {
5755
5721
  /**
@@ -5899,18 +5865,18 @@ export type PoolsIndexResponses = {
5899
5865
  export type PoolsIndexResponse = PoolsIndexResponses[keyof PoolsIndexResponses];
5900
5866
  export type PoolsCreateData = {
5901
5867
  body?: {
5902
- name: string;
5903
- description?: string;
5904
- category?: PoolCategory;
5905
- is_active?: boolean;
5868
+ 'pool[name]': string;
5869
+ 'pool[description]'?: string;
5870
+ 'pool[category]'?: PoolCategory;
5871
+ 'pool[is_active]'?: boolean;
5906
5872
  /**
5907
5873
  * Space separated list of post IDs. Mutually exclusive with post_ids.
5908
5874
  */
5909
- post_ids_string?: string;
5875
+ 'pool[post_ids_string]'?: string;
5910
5876
  /**
5911
5877
  * Array of post IDs. Mutually exclusive with post_ids_string.
5912
5878
  */
5913
- post_ids?: Array<number>;
5879
+ 'pool[post_ids][]'?: Array<number>;
5914
5880
  };
5915
5881
  path?: never;
5916
5882
  query?: never;
@@ -5992,18 +5958,18 @@ export type PoolsShowResponses = {
5992
5958
  export type PoolsShowResponse = PoolsShowResponses[keyof PoolsShowResponses];
5993
5959
  export type PoolsUpdateData = {
5994
5960
  body?: {
5995
- name?: string;
5996
- description?: string;
5997
- is_active?: boolean;
5998
- category?: PoolCategory;
5961
+ 'pool[name]'?: string;
5962
+ 'pool[description]'?: string;
5963
+ 'pool[is_active]'?: boolean;
5964
+ 'pool[category]'?: PoolCategory;
5999
5965
  /**
6000
5966
  * Space separated list of post IDs. Mutually exclusive with post_ids.
6001
5967
  */
6002
- post_ids_string?: string;
5968
+ 'pool[post_ids_string]'?: string;
6003
5969
  /**
6004
5970
  * Array of post IDs. Mutually exclusive with post_ids_string.
6005
5971
  */
6006
- post_ids?: Array<number>;
5972
+ 'pool[post_ids][]'?: Array<number>;
6007
5973
  };
6008
5974
  path: {
6009
5975
  /**
@@ -6385,70 +6351,74 @@ export type PostsUpdateData = {
6385
6351
  /**
6386
6352
  * Replaces all tags on the post.
6387
6353
  */
6388
- tag_string?: string;
6354
+ 'post[tag_string]'?: string;
6389
6355
  /**
6390
6356
  * The tag string before your edits, used to reconcile conflicts.
6391
6357
  */
6392
- old_tag_string?: string;
6358
+ 'post[old_tag_string]'?: string;
6393
6359
  /**
6394
6360
  * Tags with a minus are removed, else they are added. Mutually exclusive with tag_string.
6395
6361
  */
6396
- tag_string_diff?: string;
6362
+ 'post[tag_string_diff]'?: string;
6397
6363
  /**
6398
6364
  * Sources with a minus are removed, else they are added. It is not possible to add inactive sources through this. Mutually exclusive with source.
6399
6365
  */
6400
- source_diff?: string;
6366
+ 'post[source_diff]'?: string;
6401
6367
  /**
6402
6368
  * Replaces all sources on the post.
6403
6369
  */
6404
- source?: string;
6370
+ 'post[source]'?: string;
6405
6371
  /**
6406
6372
  * The sources before your edits, used to reconcile conflicts.
6407
6373
  */
6408
- old_source?: string;
6409
- parent_id?: number;
6410
- old_parent_id?: number;
6411
- description?: string;
6412
- old_description?: string;
6413
- rating?: Rating;
6414
- old_rating?: Rating;
6415
- edit_reason?: string;
6374
+ 'post[old_source]'?: string;
6375
+ 'post[parent_id]'?: number;
6376
+ 'post[old_parent_id]'?: number;
6377
+ 'post[description]'?: string;
6378
+ 'post[old_description]'?: string;
6379
+ 'post[rating]'?: Rating;
6380
+ 'post[old_rating]'?: Rating;
6381
+ 'post[edit_reason]'?: string;
6416
6382
  /**
6417
6383
  * You must be Privileged+.
6418
6384
  */
6419
- is_rating_locked?: boolean;
6385
+ 'post[is_rating_locked]'?: boolean;
6420
6386
  /**
6421
6387
  * You must be Staff+.
6422
6388
  */
6423
- is_note_locked?: boolean;
6389
+ 'post[is_note_locked]'?: boolean;
6424
6390
  /**
6425
6391
  * You must be Staff+.
6426
6392
  */
6427
- bg_color?: string;
6393
+ 'post[bg_color]'?: string;
6428
6394
  /**
6429
6395
  * You must be Moderator+.
6430
6396
  */
6431
- is_comment_locked?: boolean;
6397
+ 'post[is_comment_locked]'?: boolean;
6398
+ /**
6399
+ * You must be Admin+.
6400
+ */
6401
+ 'post[is_comment_disabled]'?: boolean;
6432
6402
  /**
6433
6403
  * You must be Admin+.
6434
6404
  */
6435
- is_comment_disabled?: boolean;
6405
+ 'post[is_status_locked]'?: boolean;
6436
6406
  /**
6437
6407
  * You must be Admin+.
6438
6408
  */
6439
- is_status_locked?: boolean;
6409
+ 'post[locked_tags]'?: string;
6440
6410
  /**
6441
6411
  * You must be Admin+.
6442
6412
  */
6443
- locked_tags?: string;
6413
+ 'post[hide_from_anonymous]'?: boolean;
6444
6414
  /**
6445
6415
  * You must be Admin+.
6446
6416
  */
6447
- hide_from_anonymous?: boolean;
6417
+ 'post[hide_from_search_engines]'?: boolean;
6448
6418
  /**
6449
6419
  * You must be Admin+.
6450
6420
  */
6451
- hide_from_search_engines?: boolean;
6421
+ 'post[hide_favorites_list]'?: boolean;
6452
6422
  };
6453
6423
  path: {
6454
6424
  /**
@@ -6546,8 +6516,8 @@ export type PostsUpdateIqdbResponses = {
6546
6516
  export type PostsUpdateIqdbResponse = PostsUpdateIqdbResponses[keyof PostsUpdateIqdbResponses];
6547
6517
  export type PostsMarkAsTranslatedData = {
6548
6518
  body?: {
6549
- translation_check?: boolean;
6550
- partially_translated?: boolean;
6519
+ 'post[translation_check]'?: boolean;
6520
+ 'post[partially_translated]'?: boolean;
6551
6521
  };
6552
6522
  path: {
6553
6523
  /**
@@ -6872,6 +6842,31 @@ export type PostVotesCreateResponses = {
6872
6842
  };
6873
6843
  };
6874
6844
  export type PostVotesCreateResponse = PostVotesCreateResponses[keyof PostVotesCreateResponses];
6845
+ export type CommentsForPostData = {
6846
+ body?: never;
6847
+ path: {
6848
+ /**
6849
+ * The ID of the item.
6850
+ */
6851
+ id: number;
6852
+ };
6853
+ query?: never;
6854
+ url: '/posts/{id}/comments.json';
6855
+ };
6856
+ export type CommentsForPostErrors = {
6857
+ /**
6858
+ * Not Found
6859
+ */
6860
+ 404: NotFoundResponse;
6861
+ };
6862
+ export type CommentsForPostError = CommentsForPostErrors[keyof CommentsForPostErrors];
6863
+ export type CommentsForPostResponses = {
6864
+ /**
6865
+ * Success
6866
+ */
6867
+ 200: DTextResponse;
6868
+ };
6869
+ export type CommentsForPostResponse = CommentsForPostResponses[keyof CommentsForPostResponses];
6875
6870
  export type PostRecommendationsArtistData = {
6876
6871
  body?: never;
6877
6872
  path: {
@@ -6979,11 +6974,11 @@ export type PostSetsIndexResponses = {
6979
6974
  export type PostSetsIndexResponse = PostSetsIndexResponses[keyof PostSetsIndexResponses];
6980
6975
  export type PostSetsCreateData = {
6981
6976
  body?: {
6982
- name: string;
6983
- shortname: string;
6984
- description?: string;
6985
- is_public?: boolean;
6986
- ransfer_on_delete?: boolean;
6977
+ 'post_set[name]': string;
6978
+ 'post_set[shortname]': string;
6979
+ 'post_set[description]'?: string;
6980
+ 'post_set[is_public]'?: boolean;
6981
+ 'post_set[transfer_on_delete]'?: boolean;
6987
6982
  };
6988
6983
  path?: never;
6989
6984
  query?: never;
@@ -7069,11 +7064,11 @@ export type PostSetsShowResponses = {
7069
7064
  export type PostSetsShowResponse = PostSetsShowResponses[keyof PostSetsShowResponses];
7070
7065
  export type PostSetsUpdateData = {
7071
7066
  body?: {
7072
- name?: string;
7073
- shortname?: string;
7074
- description?: string;
7075
- is_public?: boolean;
7076
- transfer_on_delete?: boolean;
7067
+ 'post_set[name]'?: string;
7068
+ 'post_set[shortname]'?: string;
7069
+ 'post_set[description]'?: string;
7070
+ 'post_set[is_public]'?: boolean;
7071
+ 'post_set[transfer_on_delete]'?: boolean;
7077
7072
  };
7078
7073
  path: {
7079
7074
  /**
@@ -7139,7 +7134,7 @@ export type PostSetsPostListResponses = {
7139
7134
  export type PostSetsPostListResponse = PostSetsPostListResponses[keyof PostSetsPostListResponses];
7140
7135
  export type PostSetsUpdatePostsData = {
7141
7136
  body?: {
7142
- post_ids_string: string;
7137
+ 'post_set[post_ids_string]': string;
7143
7138
  };
7144
7139
  path: {
7145
7140
  /**
@@ -7179,7 +7174,7 @@ export type PostSetsAddPostsData = {
7179
7174
  /**
7180
7175
  * post_ids[]=1&post_ids[]=2
7181
7176
  */
7182
- post_ids: Array<number>;
7177
+ 'post_ids[]': Array<number>;
7183
7178
  };
7184
7179
  path: {
7185
7180
  /**
@@ -7219,7 +7214,7 @@ export type PostSetsRemovePostsData = {
7219
7214
  /**
7220
7215
  * post_ids[]=1&post_ids[]=2
7221
7216
  */
7222
- post_ids: Array<number>;
7217
+ 'post_ids[]': Array<number>;
7223
7218
  };
7224
7219
  path: {
7225
7220
  /**
@@ -7406,10 +7401,10 @@ export type PostFlagsIndexResponses = {
7406
7401
  export type PostFlagsIndexResponse = PostFlagsIndexResponses[keyof PostFlagsIndexResponses];
7407
7402
  export type PostFlagsCreateData = {
7408
7403
  body?: {
7409
- post_id: number;
7410
- reason_name: 'uploading_guidelines' | 'young_human' | 'dnp_artist' | 'pay_content' | 'trace' | 'previously_deleted' | 'real_porn' | 'corrupt' | 'inferior';
7411
- parent_id?: number;
7412
- note?: string;
7404
+ 'post_flag[post_id]': number;
7405
+ 'post_flag[reason_name]': 'uploading_guidelines' | 'young_human' | 'dnp_artist' | 'pay_content' | 'trace' | 'previously_deleted' | 'real_porn' | 'corrupt' | 'inferior';
7406
+ 'post_flag[parent_id]'?: number;
7407
+ 'post_flag[note]'?: string;
7413
7408
  };
7414
7409
  path?: never;
7415
7410
  query?: never;
@@ -8108,11 +8103,11 @@ export type TagsShowResponses = {
8108
8103
  export type TagsShowResponse = TagsShowResponses[keyof TagsShowResponses];
8109
8104
  export type TagsUpdateData = {
8110
8105
  body?: {
8111
- category?: TagCategory;
8106
+ 'tag[category]'?: TagCategory;
8112
8107
  /**
8113
8108
  * Must be Admin+.
8114
8109
  */
8115
- is_locked?: boolean;
8110
+ 'tag[is_locked]'?: boolean;
8116
8111
  };
8117
8112
  path: {
8118
8113
  /**
@@ -8346,9 +8341,9 @@ export type TagAliasesShowResponses = {
8346
8341
  export type TagAliasesShowResponse = TagAliasesShowResponses[keyof TagAliasesShowResponses];
8347
8342
  export type TagAliasesUpdateData = {
8348
8343
  body?: {
8349
- antecedent_name?: string;
8350
- consequent_name?: string;
8351
- forum_topic_id?: string;
8344
+ 'tag_alias[antecedent_name]'?: string;
8345
+ 'tag_alias[consequent_name]'?: string;
8346
+ 'tag_alias[forum_topic_id]'?: string;
8352
8347
  };
8353
8348
  path: {
8354
8349
  /**
@@ -8418,15 +8413,50 @@ export type TagAliasesApproveResponses = {
8418
8413
  204: void;
8419
8414
  };
8420
8415
  export type TagAliasesApproveResponse = TagAliasesApproveResponses[keyof TagAliasesApproveResponses];
8416
+ export type TagAliasesUndoData = {
8417
+ body?: never;
8418
+ path: {
8419
+ /**
8420
+ * The ID of the item.
8421
+ */
8422
+ id: number;
8423
+ };
8424
+ query?: never;
8425
+ url: '/tag_aliases/{id}/undo.json';
8426
+ };
8427
+ export type TagAliasesUndoErrors = {
8428
+ /**
8429
+ * Access Denied
8430
+ */
8431
+ 403: AccessDeniedResponse;
8432
+ /**
8433
+ * Not Found
8434
+ */
8435
+ 404: NotFoundResponse;
8436
+ /**
8437
+ * Invalid Input Data
8438
+ */
8439
+ 422: {
8440
+ errors: Array<string>;
8441
+ };
8442
+ };
8443
+ export type TagAliasesUndoError = TagAliasesUndoErrors[keyof TagAliasesUndoErrors];
8444
+ export type TagAliasesUndoResponses = {
8445
+ /**
8446
+ * Success
8447
+ */
8448
+ 204: void;
8449
+ };
8450
+ export type TagAliasesUndoResponse = TagAliasesUndoResponses[keyof TagAliasesUndoResponses];
8421
8451
  export type TagAliasRequestsCreateData = {
8422
8452
  body?: {
8423
- antecedent_name: string;
8424
- consequent_name: string;
8425
- reason: string;
8453
+ 'tag_alias_request[antecedent_name]': string;
8454
+ 'tag_alias_request[consequent_name]': string;
8455
+ 'tag_alias_request[reason]': string;
8426
8456
  /**
8427
8457
  * Must be Admin+.
8428
8458
  */
8429
- skip_forum?: boolean;
8459
+ 'tag_alias_request[skip_forum]'?: boolean;
8430
8460
  };
8431
8461
  path?: never;
8432
8462
  query?: never;
@@ -8536,9 +8566,9 @@ export type TagImplicationsShowResponses = {
8536
8566
  export type TagImplicationsShowResponse = TagImplicationsShowResponses[keyof TagImplicationsShowResponses];
8537
8567
  export type TagImplicationsUpdateData = {
8538
8568
  body?: {
8539
- antecedent_name?: string;
8540
- consequent_name?: string;
8541
- forum_topic_id?: string;
8569
+ 'tag_implication[antecedent_name]'?: string;
8570
+ 'tag_implication[consequent_name]'?: string;
8571
+ 'tag_implication[forum_topic_id]'?: string;
8542
8572
  };
8543
8573
  path: {
8544
8574
  /**
@@ -8608,15 +8638,50 @@ export type TagImplicationsApproveResponses = {
8608
8638
  204: void;
8609
8639
  };
8610
8640
  export type TagImplicationsApproveResponse = TagImplicationsApproveResponses[keyof TagImplicationsApproveResponses];
8641
+ export type TagImplicationsUndoData = {
8642
+ body?: never;
8643
+ path: {
8644
+ /**
8645
+ * The ID of the item.
8646
+ */
8647
+ id: number;
8648
+ };
8649
+ query?: never;
8650
+ url: '/tag_implications/{id}/undo.json';
8651
+ };
8652
+ export type TagImplicationsUndoErrors = {
8653
+ /**
8654
+ * Access Denied
8655
+ */
8656
+ 403: AccessDeniedResponse;
8657
+ /**
8658
+ * Not Found
8659
+ */
8660
+ 404: NotFoundResponse;
8661
+ /**
8662
+ * Invalid Input Data
8663
+ */
8664
+ 422: {
8665
+ errors: Array<string>;
8666
+ };
8667
+ };
8668
+ export type TagImplicationsUndoError = TagImplicationsUndoErrors[keyof TagImplicationsUndoErrors];
8669
+ export type TagImplicationsUndoResponses = {
8670
+ /**
8671
+ * Success
8672
+ */
8673
+ 204: void;
8674
+ };
8675
+ export type TagImplicationsUndoResponse = TagImplicationsUndoResponses[keyof TagImplicationsUndoResponses];
8611
8676
  export type TagImplicationRequestsCreateData = {
8612
8677
  body?: {
8613
- antecedent_name: string;
8614
- consequent_name: string;
8615
- reason: string;
8678
+ 'tag_implication_request[antecedent_name]': string;
8679
+ 'tag_implication_request[consequent_name]': string;
8680
+ 'tag_implication_request[reason]': string;
8616
8681
  /**
8617
8682
  * Must be Admin+.
8618
8683
  */
8619
- skip_forum?: boolean;
8684
+ 'tag_implication_request[skip_forum]'?: boolean;
8620
8685
  };
8621
8686
  path?: never;
8622
8687
  query?: never;
@@ -8653,7 +8718,7 @@ export type RelatedTagsBulkResponses = {
8653
8718
  /**
8654
8719
  * Success
8655
8720
  */
8656
- 200: BulkRelatedTag;
8721
+ 200: TagWithCount;
8657
8722
  };
8658
8723
  export type RelatedTagsBulkResponse = RelatedTagsBulkResponses[keyof RelatedTagsBulkResponses];
8659
8724
  export type SearchTrendsIndexData = {
@@ -8734,15 +8799,15 @@ export type SearchTrendsClearCacheResponses = {
8734
8799
  export type SearchTrendsClearCacheResponse = SearchTrendsClearCacheResponses[keyof SearchTrendsClearCacheResponses];
8735
8800
  export type SearchTrendsUpdateSettingsData = {
8736
8801
  body?: {
8737
- trends_enabled?: boolean;
8738
- trends_displayed?: boolean;
8739
- trends_min_today?: number;
8740
- trends_min_dleta?: number;
8741
- trends_min_ratio?: number;
8742
- trends_ip_limit?: number;
8743
- trends_ip_window?: number;
8744
- trends_tag_limit?: number;
8745
- trends_tag_window?: number;
8802
+ 'search_trend_settings[trends_enabled]'?: boolean;
8803
+ 'search_trend_settings[trends_displayed]'?: boolean;
8804
+ 'search_trend_settings[trends_min_today]'?: number;
8805
+ 'search_trend_settings[trends_min_delta]'?: number;
8806
+ 'search_trend_settings[trends_min_ratio]'?: number;
8807
+ 'search_trend_settings[trends_ip_limit]'?: number;
8808
+ 'search_trend_settings[trends_ip_window]'?: number;
8809
+ 'search_trend_settings[trends_tag_limit]'?: number;
8810
+ 'search_trend_settings[trends_tag_window]'?: number;
8746
8811
  };
8747
8812
  path?: never;
8748
8813
  query?: never;
@@ -8830,8 +8895,8 @@ export type SearchTrendBlacklistsIndexResponses = {
8830
8895
  export type SearchTrendBlacklistsIndexResponse = SearchTrendBlacklistsIndexResponses[keyof SearchTrendBlacklistsIndexResponses];
8831
8896
  export type SearchTrendBlacklistsCreateData = {
8832
8897
  body?: {
8833
- tag: string;
8834
- reason: string;
8898
+ 'search_trend_blacklist[tag]': string;
8899
+ 'search_trend_blacklist[reason]': string;
8835
8900
  };
8836
8901
  path?: never;
8837
8902
  query?: never;
@@ -8888,8 +8953,8 @@ export type SearchTrendBlacklistsDestroyResponses = {
8888
8953
  export type SearchTrendBlacklistsDestroyResponse = SearchTrendBlacklistsDestroyResponses[keyof SearchTrendBlacklistsDestroyResponses];
8889
8954
  export type SearchTrendBlacklistsUpdateData = {
8890
8955
  body?: {
8891
- tag?: string;
8892
- reason?: string;
8956
+ 'search_trend_blacklist[tag]'?: string;
8957
+ 'search_trend_blacklist[reason]'?: string;
8893
8958
  };
8894
8959
  path: {
8895
8960
  /**
@@ -9105,7 +9170,7 @@ export type StaffNotesIndexResponses = {
9105
9170
  export type StaffNotesIndexResponse = StaffNotesIndexResponses[keyof StaffNotesIndexResponses];
9106
9171
  export type StaffNotesCreateData = {
9107
9172
  body?: {
9108
- body: string;
9173
+ 'staff_note[body]': string;
9109
9174
  };
9110
9175
  path?: never;
9111
9176
  query?: never;
@@ -9166,7 +9231,7 @@ export type StaffNotesShowResponses = {
9166
9231
  export type StaffNotesShowResponse = StaffNotesShowResponses[keyof StaffNotesShowResponses];
9167
9232
  export type StaffNotesUpdateData = {
9168
9233
  body?: {
9169
- body?: string;
9234
+ 'staff_note[body]'?: string;
9170
9235
  };
9171
9236
  path: {
9172
9237
  /**
@@ -9340,29 +9405,29 @@ export type TakedownsIndexResponses = {
9340
9405
  export type TakedownsIndexResponse = TakedownsIndexResponses[keyof TakedownsIndexResponses];
9341
9406
  export type TakedownsCreateData = {
9342
9407
  body?: {
9343
- email: string;
9344
- source?: string;
9345
- instructions?: string;
9346
- reason: string;
9408
+ 'takedown[email]': string;
9409
+ 'takedown[source]'?: string;
9410
+ 'takedown[instructions]'?: string;
9411
+ 'takedown[reason]': string;
9347
9412
  /**
9348
- * post_ids][]=1&takedown[post_ids][=2
9413
+ * takedown[post_ids][]=1&takedown[post_ids][]=2
9349
9414
  */
9350
- post_ids?: Array<number>;
9351
- reason_hidden?: boolean;
9415
+ 'takedown[post_ids][]'?: Array<number>;
9416
+ 'takedown[reason_hidden]'?: boolean;
9352
9417
  /**
9353
9418
  * Must have the bd staff user flag to use.
9354
9419
  */
9355
- notes?: string;
9420
+ 'takedown[notes]'?: string;
9356
9421
  /**
9357
9422
  * Must have the bd staff user flag to use.
9358
- * del_post_ids][]=1&takedown[del_post_ids][=2
9423
+ * takedown[del_post_ids][]=1&takedown[del_post_ids][]=2
9359
9424
  *
9360
9425
  */
9361
- del_post_ids?: Array<number>;
9426
+ 'takedown[del_post_ids][]'?: Array<number>;
9362
9427
  /**
9363
9428
  * Must have the bd staff user flag to use.
9364
9429
  */
9365
- status?: string;
9430
+ 'takedown[status]'?: string;
9366
9431
  };
9367
9432
  path?: never;
9368
9433
  query?: never;
@@ -9444,8 +9509,8 @@ export type TakedownsShowResponses = {
9444
9509
  export type TakedownsShowResponse = TakedownsShowResponses[keyof TakedownsShowResponses];
9445
9510
  export type TakedownsUpdateData = {
9446
9511
  body?: {
9447
- notes?: string;
9448
- reason_hidden?: boolean;
9512
+ 'takedown[notes]'?: string;
9513
+ 'takedown[reason_hidden]'?: boolean;
9449
9514
  takedown_posts?: string;
9450
9515
  /**
9451
9516
  * If not truthy, the takedown will be denied.
@@ -9716,13 +9781,13 @@ export type TicketsShowResponses = {
9716
9781
  export type TicketsShowResponse = TicketsShowResponses[keyof TicketsShowResponses];
9717
9782
  export type TicketsUpdateData = {
9718
9783
  body?: {
9719
- status?: 'partial' | 'approved';
9720
- response: string;
9721
- record_type?: WarningType;
9784
+ 'ticket[status]'?: 'partial' | 'approved';
9785
+ 'ticket[response]': string;
9786
+ 'ticket[record_type]'?: WarningRecordType;
9722
9787
  /**
9723
9788
  * An update dmail will always be sent when the status is changed.
9724
9789
  */
9725
- send_update_dmail?: boolean;
9790
+ 'ticket[send_update_dmail]'?: boolean;
9726
9791
  };
9727
9792
  path: {
9728
9793
  /**
@@ -9809,6 +9874,54 @@ export type TicketsUnclaimResponses = {
9809
9874
  201: Ticket;
9810
9875
  };
9811
9876
  export type TicketsUnclaimResponse = TicketsUnclaimResponses[keyof TicketsUnclaimResponses];
9877
+ export type UploadKarmaEventsIndexData = {
9878
+ body?: never;
9879
+ path?: never;
9880
+ query?: {
9881
+ /**
9882
+ * The maximum number of results to return. Between 0 and 320.
9883
+ */
9884
+ limit?: number;
9885
+ /**
9886
+ * The page number of results to get. Between 1 and 750.
9887
+ */
9888
+ page?: number;
9889
+ /**
9890
+ * Search for a specific id. Multiple can be separated by commas, up to 320.
9891
+ */
9892
+ 'search[id]'?: string | number;
9893
+ /**
9894
+ * The order of the results.
9895
+ */
9896
+ 'search[order]'?: 'id_asc' | 'id_desc';
9897
+ 'search[user_id]'?: number;
9898
+ 'search[user_name]'?: string;
9899
+ 'search[creator_id]'?: number;
9900
+ 'search[creator_name]'?: string;
9901
+ 'search[post_id]'?: number;
9902
+ 'search[reason]'?: 'approved' | 'unapproved' | 'deleted' | 'undeleted' | 'replacement_penalty' | 'replacement_penalty_reversed' | 'replacement_transfer' | 'owner_change' | 'staff_override' | 'queue_bypass';
9903
+ };
9904
+ url: '/upload_karma_events.json';
9905
+ };
9906
+ export type UploadKarmaEventsIndexResponses = {
9907
+ /**
9908
+ * Success
9909
+ */
9910
+ 200: Array<{
9911
+ id: number;
9912
+ user_id: number;
9913
+ creator_id: number;
9914
+ post_id: number | null;
9915
+ reason: 'approved' | 'unapproved' | 'deleted' | 'undeleted' | 'replacement_penalty' | 'replacement_penalty_reversed' | 'replacement_transfer' | 'owner_change' | 'staff_override' | 'queue_bypass';
9916
+ delta: number;
9917
+ balance: number;
9918
+ extra_data: {
9919
+ [key: string]: unknown;
9920
+ };
9921
+ created_at: string;
9922
+ }>;
9923
+ };
9924
+ export type UploadKarmaEventsIndexResponse = UploadKarmaEventsIndexResponses[keyof UploadKarmaEventsIndexResponses];
9812
9925
  export type UploadsIndexData = {
9813
9926
  body?: never;
9814
9927
  path?: never;
@@ -9971,12 +10084,12 @@ export type UploadWhitelistsIndexResponses = {
9971
10084
  export type UploadWhitelistsIndexResponse = UploadWhitelistsIndexResponses[keyof UploadWhitelistsIndexResponses];
9972
10085
  export type UploadWhitelistsCreateData = {
9973
10086
  body?: {
9974
- allowed: string;
9975
- domain: string;
9976
- path: string;
9977
- reason?: string;
9978
- note?: string;
9979
- hidden?: boolean;
10087
+ 'upload_whitelist[allowed]': string;
10088
+ 'upload_whitelist[domain]': string;
10089
+ 'upload_whitelist[path]': string;
10090
+ 'upload_whitelist[reason]'?: string;
10091
+ 'upload_whitelist[note]'?: string;
10092
+ 'upload_whitelist[hidden]'?: boolean;
9980
10093
  };
9981
10094
  path?: never;
9982
10095
  query?: never;
@@ -10033,11 +10146,11 @@ export type UploadWhitelistsDestroyResponses = {
10033
10146
  export type UploadWhitelistsDestroyResponse = UploadWhitelistsDestroyResponses[keyof UploadWhitelistsDestroyResponses];
10034
10147
  export type UploadWhitelistsUpdateData = {
10035
10148
  body?: {
10036
- allowed?: string;
10037
- pattern?: string;
10038
- reason?: string;
10039
- note?: string;
10040
- hidden?: boolean;
10149
+ 'upload_whitelist[allowed]'?: string;
10150
+ 'upload_whitelist[pattern]'?: string;
10151
+ 'upload_whitelist[reason]'?: string;
10152
+ 'upload_whitelist[note]'?: string;
10153
+ 'upload_whitelist[hidden]'?: boolean;
10041
10154
  };
10042
10155
  path: {
10043
10156
  /**
@@ -10191,6 +10304,29 @@ export type UsersAvatarMenuResponses = {
10191
10304
  200: UserAvatarMenu;
10192
10305
  };
10193
10306
  export type UsersAvatarMenuResponse = UsersAvatarMenuResponses[keyof UsersAvatarMenuResponses];
10307
+ export type UsersUploadTagsData = {
10308
+ body?: never;
10309
+ path?: never;
10310
+ query?: never;
10311
+ url: '/users/upload_tags.json';
10312
+ };
10313
+ export type UsersUploadTagsErrors = {
10314
+ /**
10315
+ * Access Denied
10316
+ */
10317
+ 403: AccessDeniedResponse;
10318
+ };
10319
+ export type UsersUploadTagsError = UsersUploadTagsErrors[keyof UsersUploadTagsErrors];
10320
+ export type UsersUploadTagsResponses = {
10321
+ /**
10322
+ * Success
10323
+ */
10324
+ 200: {
10325
+ upload_tags: Array<TagWithCount>;
10326
+ recent_tags: Array<TagWithCount>;
10327
+ };
10328
+ };
10329
+ export type UsersUploadTagsResponse = UsersUploadTagsResponses[keyof UsersUploadTagsResponses];
10194
10330
  export type UsersCustomStyleData = {
10195
10331
  body?: never;
10196
10332
  path?: never;
@@ -10236,40 +10372,39 @@ export type UsersShowResponses = {
10236
10372
  export type UsersShowResponse = UsersShowResponses[keyof UsersShowResponses];
10237
10373
  export type UsersUpdateData = {
10238
10374
  body?: {
10239
- comment_threshold?: number;
10240
- default_image_size?: 'large' | 'fit' | 'fitv' | 'original';
10241
- favorite_tags?: string;
10242
- blacklisted_tags?: string;
10375
+ 'user[comment_threshold]'?: number;
10376
+ 'user[default_image_size]'?: 'large' | 'fit' | 'fitv' | 'original';
10377
+ 'user[favorite_tags]'?: string;
10378
+ 'user[blacklisted_tags]'?: string;
10243
10379
  /**
10244
10380
  * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
10245
10381
  */
10246
- time_zone?: string;
10247
- per_page?: number;
10248
- custom_style?: string;
10249
- description_collapsed_initially?: boolean;
10250
- hide_comments?: boolean;
10251
- receive_email_notifications?: boolean;
10252
- enable_keyboard_navigation?: boolean;
10253
- enable_privacy_mode?: boolean;
10254
- disable_user_dmails?: boolean;
10255
- blacklist_users?: boolean;
10256
- show_post_statistics?: boolean;
10257
- style_usernames?: boolean;
10258
- show_hidden_comments?: boolean;
10259
- enable_autocomplete?: boolean;
10260
- disable_cropped_thumbnails?: boolean;
10261
- enable_safe_mode?: boolean;
10262
- disable_responsive_mode?: boolean;
10263
- 'dmail_filter_attributes][id'?: number;
10264
- 'dmail_filter_attributes][words'?: string;
10265
- profile_about?: string;
10266
- profile_artinfo?: string;
10267
- avatar_id?: number;
10382
+ 'user[time_zone]'?: string;
10383
+ 'user[per_page]'?: number;
10384
+ 'user[custom_style]'?: string;
10385
+ 'user[description_collapsed_initially]'?: boolean;
10386
+ 'user[hide_comments]'?: boolean;
10387
+ 'user[receive_email_notifications]'?: boolean;
10388
+ 'user[enable_keyboard_navigation]'?: boolean;
10389
+ 'user[enable_privacy_mode]'?: boolean;
10390
+ 'user[disable_user_dmails]'?: boolean;
10391
+ 'user[blacklist_users]'?: boolean;
10392
+ 'user[show_post_statistics]'?: boolean;
10393
+ 'user[show_hidden_comments]'?: boolean;
10394
+ 'user[enable_autocomplete]'?: boolean;
10395
+ 'user[disable_cropped_thumbnails]'?: boolean;
10396
+ 'user[enable_safe_mode]'?: boolean;
10397
+ 'user[disable_responsive_mode]'?: boolean;
10398
+ 'user[dmail_filter_attributes][id]'?: number;
10399
+ 'user[dmail_filter_attributes][words]'?: string;
10400
+ 'user[profile_about]'?: string;
10401
+ 'user[profile_artinfo]'?: string;
10402
+ 'user[avatar_id]'?: number;
10268
10403
  /**
10269
10404
  * You must have uploaded at least 10 posts.
10270
10405
  */
10271
- enable_compact_uploader?: boolean;
10272
- forum_notification_dot?: boolean;
10406
+ 'user[enable_compact_uploader]'?: boolean;
10407
+ 'user[forum_notification_dot]'?: boolean;
10273
10408
  };
10274
10409
  path: {
10275
10410
  /**
@@ -10495,7 +10630,7 @@ export type MaintenanceUserCountFixesCreateErrors = {
10495
10630
  export type MaintenanceUserCountFixesCreateError = MaintenanceUserCountFixesCreateErrors[keyof MaintenanceUserCountFixesCreateErrors];
10496
10631
  export type MaintenanceUserDmailFiltersUpdateData = {
10497
10632
  body?: {
10498
- words: string;
10633
+ 'dmail_filter[words]': string;
10499
10634
  };
10500
10635
  path?: never;
10501
10636
  query: {
@@ -10588,10 +10723,10 @@ export type UserFeedbacksIndexResponses = {
10588
10723
  export type UserFeedbacksIndexResponse = UserFeedbacksIndexResponses[keyof UserFeedbacksIndexResponses];
10589
10724
  export type UserFeedbacksCreateData = {
10590
10725
  body?: {
10591
- user_id?: number;
10592
- user_name?: string;
10593
- body: string;
10594
- category: UserFeedbackCategory;
10726
+ 'user_feedback[user_id]'?: number;
10727
+ 'user_feedback[user_name]'?: string;
10728
+ 'user_feedback[body]': string;
10729
+ 'user_feedback[category]': UserFeedbackCategory;
10595
10730
  };
10596
10731
  path?: never;
10597
10732
  query?: never;
@@ -10677,8 +10812,8 @@ export type UserFeedbacksShowResponses = {
10677
10812
  export type UserFeedbacksShowResponse = UserFeedbacksShowResponses[keyof UserFeedbacksShowResponses];
10678
10813
  export type UserFeedbacksUpdateData = {
10679
10814
  body?: {
10680
- body?: string;
10681
- category?: UserFeedbackCategory;
10815
+ 'user_feedback[body]'?: string;
10816
+ 'user_feedback[category]'?: UserFeedbackCategory;
10682
10817
  };
10683
10818
  path: {
10684
10819
  /**
@@ -10807,8 +10942,8 @@ export type UserNameChangeRequestsIndexResponses = {
10807
10942
  export type UserNameChangeRequestsIndexResponse = UserNameChangeRequestsIndexResponses[keyof UserNameChangeRequestsIndexResponses];
10808
10943
  export type UserNameChangeRequestsCreateData = {
10809
10944
  body?: {
10810
- desired_name: string;
10811
- change_reason?: string;
10945
+ 'user_name_change_request[desired_name]': string;
10946
+ 'user_name_change_request[change_reason]'?: string;
10812
10947
  };
10813
10948
  path?: never;
10814
10949
  query?: never;
@@ -10913,29 +11048,29 @@ export type WikiPagesIndexResponses = {
10913
11048
  export type WikiPagesIndexResponse = WikiPagesIndexResponses[keyof WikiPagesIndexResponses];
10914
11049
  export type WikiPagesCreateData = {
10915
11050
  body?: {
10916
- title: string;
10917
- body: string;
10918
- edit_reason?: string;
11051
+ 'wiki_page[title]': string;
11052
+ 'wiki_page[body]': string;
11053
+ 'wiki_page[edit_reason]'?: string;
10919
11054
  /**
10920
11055
  * Must be Privileged+ to use.
10921
11056
  */
10922
- parent?: string;
11057
+ 'wiki_page[parent]'?: string;
10923
11058
  /**
10924
11059
  * Must be Staff+ to use.
10925
11060
  */
10926
- is_locked?: boolean;
11061
+ 'wiki_page[is_locked]'?: boolean;
10927
11062
  /**
10928
11063
  * Must be Staff+ to use.
10929
11064
  */
10930
- is_deleted?: boolean;
11065
+ 'wiki_page[is_deleted]'?: boolean;
10931
11066
  /**
10932
11067
  * Must be Staff+ to use.
10933
11068
  */
10934
- skip_secondary_validations?: boolean;
11069
+ 'wiki_page[skip_secondary_validations]'?: boolean;
10935
11070
  /**
10936
11071
  * Space separated
10937
11072
  */
10938
- featured_posts_string?: string;
11073
+ 'wiki_page[featured_posts_string]'?: string;
10939
11074
  };
10940
11075
  path?: never;
10941
11076
  query?: never;
@@ -11017,37 +11152,32 @@ export type WikiPagesShowResponses = {
11017
11152
  export type WikiPagesShowResponse = WikiPagesShowResponses[keyof WikiPagesShowResponses];
11018
11153
  export type WikiPagesUpdateData = {
11019
11154
  body?: {
11020
- body?: string;
11021
- edit_reason?: string;
11155
+ 'wiki_page[body]'?: string;
11156
+ 'wiki_page[edit_reason]'?: string;
11022
11157
  /**
11023
11158
  * Must be Privileged+ to use.
11024
11159
  */
11025
- parent?: string;
11160
+ 'wiki_page[parent]'?: string;
11026
11161
  /**
11027
11162
  * Must be Staff+ to use.
11028
11163
  */
11029
- title?: string;
11164
+ 'wiki_page[title]'?: string;
11030
11165
  /**
11031
11166
  * Must be Staff+ to use.
11032
11167
  */
11033
- is_locked?: boolean;
11168
+ 'wiki_page[is_locked]'?: boolean;
11034
11169
  /**
11035
11170
  * Must be Staff+ to use.
11036
11171
  */
11037
- is_deleted?: boolean;
11172
+ 'wiki_page[is_deleted]'?: boolean;
11038
11173
  /**
11039
11174
  * Must be Staff+ to use.
11040
11175
  */
11041
- skip_secondary_validations?: boolean;
11042
- category_id?: TagCategory;
11043
- /**
11044
- * Must be Admin+ to use.
11045
- */
11046
- category_is_locked?: boolean;
11176
+ 'wiki_page[skip_secondary_validations]'?: boolean;
11047
11177
  /**
11048
11178
  * Space separated
11049
11179
  */
11050
- featured_posts_string?: string;
11180
+ 'wiki_page[featured_posts_string]'?: string;
11051
11181
  };
11052
11182
  path: {
11053
11183
  /**
@@ -11211,24 +11341,24 @@ export type StaffUsersUpdateData = {
11211
11341
  /**
11212
11342
  * Must have the bd staff user flag to use.
11213
11343
  */
11214
- verified?: boolean;
11215
- level?: UserLevel;
11216
- name?: string;
11217
- profile_about?: string;
11218
- profile_artinfo?: string;
11219
- base_upload_limit?: number;
11220
- enable_privacy_mode?: boolean;
11344
+ 'user[verified]'?: boolean;
11345
+ 'user[level]'?: UserLevel;
11346
+ 'user[name]'?: string;
11347
+ 'user[profile_about]'?: string;
11348
+ 'user[profile_artinfo]'?: string;
11349
+ 'user[base_upload_limit]'?: number;
11350
+ 'user[enable_privacy_mode]'?: boolean;
11221
11351
  /**
11222
11352
  * Must have the bd staff user flag to use.
11223
11353
  */
11224
- email?: string;
11225
- can_approve_posts?: boolean;
11226
- can_upload_free?: boolean;
11227
- no_flagging?: boolean;
11228
- replacements_beta?: boolean;
11229
- custom_title?: string;
11230
- tag_warden?: boolean;
11231
- raised_favorite_limit?: boolean;
11354
+ 'user[email]'?: string;
11355
+ 'user[can_approve_posts]'?: boolean;
11356
+ 'user[can_upload_free]'?: boolean;
11357
+ 'user[no_flagging]'?: boolean;
11358
+ 'user[replacements_beta]'?: boolean;
11359
+ 'user[custom_title]'?: string;
11360
+ 'user[tag_warden]'?: boolean;
11361
+ 'user[raised_favorite_limit]'?: boolean;
11232
11362
  };
11233
11363
  path: {
11234
11364
  /**
@@ -11304,9 +11434,7 @@ export type StaffUsersTotpResetErrors = {
11304
11434
  export type StaffUsersTotpResetError = StaffUsersTotpResetErrors[keyof StaffUsersTotpResetErrors];
11305
11435
  export type StaffUsersUpdateBlacklistData = {
11306
11436
  body?: {
11307
- user: {
11308
- blacklisted_tags: string;
11309
- };
11437
+ 'user[blacklisted_tags]': string;
11310
11438
  };
11311
11439
  path: {
11312
11440
  /**
@@ -12161,9 +12289,9 @@ export type StaffPostDisapprovalsIndexResponses = {
12161
12289
  export type StaffPostDisapprovalsIndexResponse = StaffPostDisapprovalsIndexResponses[keyof StaffPostDisapprovalsIndexResponses];
12162
12290
  export type StaffPostDisapprovalsCreateData = {
12163
12291
  body?: {
12164
- post_id: number;
12165
- reason: 'borderline_quality' | 'borderline_relevancy' | 'other';
12166
- message?: string;
12292
+ 'post_disapproval[post_id]': number;
12293
+ 'post_disapproval[reason]': 'borderline_quality' | 'borderline_relevancy' | 'other';
12294
+ 'post_disapproval[message]'?: string;
12167
12295
  };
12168
12296
  path?: never;
12169
12297
  query?: never;