e621 3.4.1 → 3.5.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 (58) hide show
  1. package/README.md +23 -0
  2. package/dist/browser/e621.js +919 -190
  3. package/dist/browser/e621.js.map +4 -4
  4. package/dist/lib/client.d.ts +61 -0
  5. package/dist/lib/client.js +37 -4
  6. package/dist/lib/errors.d.ts +13 -0
  7. package/dist/lib/errors.js +27 -1
  8. package/dist/lib/generated/schemas.d.ts +169 -8
  9. package/dist/lib/generated/schemas.js +215 -13
  10. package/dist/lib/generated/sdk.d.ts +77 -7
  11. package/dist/lib/generated/sdk.js +134 -9
  12. package/dist/lib/generated/types.d.ts +880 -245
  13. package/dist/lib/index.d.ts +1 -1
  14. package/dist/lib/models/Artist.d.ts +1 -0
  15. package/dist/lib/models/Artist.js +2 -1
  16. package/dist/lib/models/SavedSearch.d.ts +37 -0
  17. package/dist/lib/models/SavedSearch.js +55 -0
  18. package/dist/lib/models/TagSubscription.d.ts +25 -0
  19. package/dist/lib/models/TagSubscription.js +36 -0
  20. package/dist/lib/models/Takedown.d.ts +13 -2
  21. package/dist/lib/models/Takedown.js +21 -2
  22. package/dist/lib/models/User.d.ts +1 -1
  23. package/dist/lib/models/UserNameChangeRequest.d.ts +1 -1
  24. package/dist/lib/models/index.d.ts +2 -0
  25. package/dist/lib/models/index.js +3 -1
  26. package/dist/lib/models/posts/Actions.d.ts +6 -6
  27. package/dist/lib/modules/Artists.d.ts +2 -0
  28. package/dist/lib/modules/Artists.js +3 -1
  29. package/dist/lib/modules/Base.js +4 -2
  30. package/dist/lib/modules/DText.d.ts +2 -3
  31. package/dist/lib/modules/DText.js +5 -6
  32. package/dist/lib/modules/PostVersions.d.ts +2 -1
  33. package/dist/lib/modules/PostVersions.js +3 -2
  34. package/dist/lib/modules/Posts.d.ts +6 -6
  35. package/dist/lib/modules/Posts.js +8 -14
  36. package/dist/lib/modules/SavedSearches.d.ts +94 -0
  37. package/dist/lib/modules/SavedSearches.js +162 -0
  38. package/dist/lib/modules/SearchTrendBlacklists.js +1 -1
  39. package/dist/lib/modules/StaffUsers.d.ts +1 -1
  40. package/dist/lib/modules/StaffUsers.js +4 -2
  41. package/dist/lib/modules/TagAliases.d.ts +1 -1
  42. package/dist/lib/modules/TagAliases.js +3 -2
  43. package/dist/lib/modules/TagImplications.d.ts +1 -1
  44. package/dist/lib/modules/TagImplications.js +3 -2
  45. package/dist/lib/modules/TagSubscriptions.d.ts +49 -0
  46. package/dist/lib/modules/TagSubscriptions.js +82 -0
  47. package/dist/lib/modules/Takedowns.d.ts +16 -2
  48. package/dist/lib/modules/Takedowns.js +25 -3
  49. package/dist/lib/modules/Uploads.d.ts +29 -2
  50. package/dist/lib/modules/Uploads.js +47 -11
  51. package/dist/lib/modules/UserNameChangeRequests.d.ts +2 -2
  52. package/dist/lib/modules/UserNameChangeRequests.js +5 -3
  53. package/dist/lib/modules/index.d.ts +6 -0
  54. package/dist/lib/modules/index.js +5 -1
  55. package/dist/lib/standalone.d.ts +1 -1
  56. package/dist/lib/version.d.ts +1 -1
  57. package/dist/lib/version.js +1 -1
  58. package/package.json +1 -1
@@ -334,6 +334,12 @@ export type ForumPost = {
334
334
  updated_at: string;
335
335
  warning_type: WarningType;
336
336
  warning_user_id: number | null;
337
+ /**
338
+ * Net votes divided by total votes, from -1 to 1. Null if the post has never been voted on.
339
+ */
340
+ vote_score: string | null;
341
+ creator_name: string;
342
+ updater_name: string;
337
343
  };
338
344
  export type ForumPostVote = {
339
345
  id: number;
@@ -356,6 +362,9 @@ export type ForumTopic = {
356
362
  created_at: string;
357
363
  updated_at: string;
358
364
  category_id: number;
365
+ last_bumped_at: string;
366
+ creator_name: string;
367
+ updater_name: string;
359
368
  };
360
369
  export type FullCurrentUser = CurrentUser & FullUser;
361
370
  export type FullUser = User & {
@@ -939,6 +948,10 @@ export type PostVersion = {
939
948
  locked_tags: string | null;
940
949
  added_tags: Array<string>;
941
950
  removed_tags: Array<string>;
951
+ /**
952
+ * The tag changes as the user submitted them, before aliases, implications, and automatic tags. Removed tags are prefixed with `-`. May include metatags such as `rating:`, `pool:`, `parent:`, and `source:`.
953
+ */
954
+ original_tags: Array<string>;
942
955
  added_locked_tags: Array<string>;
943
956
  removed_locked_tags: Array<string>;
944
957
  rating_changed: boolean;
@@ -1029,6 +1042,30 @@ export type RisingSearchTrend = {
1029
1042
  post_count: number;
1030
1043
  category: TagCategory;
1031
1044
  };
1045
+ export type SavedSearch = {
1046
+ id: number;
1047
+ /**
1048
+ * Empty for the subscription search, its tags are managed through tag subscriptions.
1049
+ */
1050
+ query: string;
1051
+ name: string | null;
1052
+ is_tracked: boolean;
1053
+ /**
1054
+ * True for the search that holds the user's tag subscriptions.
1055
+ */
1056
+ is_subscription: boolean;
1057
+ last_seen_post_id: number | null;
1058
+ created_at: string;
1059
+ updated_at: string;
1060
+ /**
1061
+ * Only present on the subscription search.
1062
+ */
1063
+ tag_count?: number;
1064
+ /**
1065
+ * New posts since the search was last seen, capped at 100. Null for untracked searches, when no counts are cached, or when the search could not be evaluated.
1066
+ */
1067
+ new_count: number | null;
1068
+ };
1032
1069
  export type SearchTrend = {
1033
1070
  tag: string;
1034
1071
  count: number;
@@ -1250,6 +1287,13 @@ export type TagPreview = {
1250
1287
  alias?: string;
1251
1288
  implies?: Array<string>;
1252
1289
  };
1290
+ export type TagSubscription = {
1291
+ id: number;
1292
+ tag_id: number;
1293
+ created_at: string;
1294
+ tag_name: string;
1295
+ category: TagCategory;
1296
+ };
1253
1297
  export type TagTypeVersion = {
1254
1298
  id: number;
1255
1299
  created_at: string;
@@ -1282,6 +1326,7 @@ export type ThumbnailPost = {
1282
1326
  width: number;
1283
1327
  height: number;
1284
1328
  size: number;
1329
+ duration: number | null;
1285
1330
  preview_url: string | null;
1286
1331
  preview_webp: string | null;
1287
1332
  sample_url: string | null;
@@ -1339,16 +1384,21 @@ export type Upload = {
1339
1384
  uploader_id: number;
1340
1385
  tag_string: string;
1341
1386
  /**
1342
- * Note: The "error" status will be proceeded by an error, ex: "error: RuntimeError - No file or source URL provided"
1387
+ * Note: The "duplicate" status will be followed by the duplicate post's id, ex: "duplicate: 123"
1343
1388
  *
1344
1389
  */
1345
- status: 'completed' | 'duplicate' | 'error' | 'processing' | 'pending';
1346
- backtrace: string | null;
1390
+ status: 'completed' | `duplicate: ${number}` | 'failed' | 'processing' | 'queued' | 'pending';
1391
+ /**
1392
+ * Only visible to Staff+.
1393
+ */
1394
+ backtrace?: string | null;
1347
1395
  post_id: number | null;
1348
1396
  /**
1397
+ * Only visible to Staff+.
1398
+ *
1349
1399
  * @deprecated
1350
1400
  */
1351
- md5_confirmation: string | null;
1401
+ md5_confirmation?: string | null;
1352
1402
  created_at: string;
1353
1403
  updated_at: string;
1354
1404
  parent_id: number | null;
@@ -1358,7 +1408,24 @@ export type Upload = {
1358
1408
  image_width: number | null;
1359
1409
  image_height: number | null;
1360
1410
  description: string;
1411
+ /**
1412
+ * The step currently being processed.
1413
+ */
1414
+ processing_step: 'integrity' | 'thumbnail' | 'sound' | 'post' | null;
1415
+ error_message: string | null;
1416
+ warning_messages: Array<string>;
1417
+ is_animated: boolean;
1418
+ duration: string | null;
1419
+ has_sound: boolean;
1420
+ locked_tags: string | null;
1421
+ locked_rating: boolean;
1422
+ as_pending: boolean;
1423
+ submitted_tag_string: string | null;
1424
+ processing_started_at: string | null;
1425
+ processed_at: string | null;
1426
+ requeued_at: string | null;
1361
1427
  uploader_name: string;
1428
+ duplicate_post_id: number | null;
1362
1429
  };
1363
1430
  export type UploadWhitelist = {
1364
1431
  id: number;
@@ -1493,7 +1560,10 @@ export type WikiPageVersion = {
1493
1560
  };
1494
1561
  export type AccessDeniedResponse = {
1495
1562
  success: boolean;
1496
- reason: 'Access Denied';
1563
+ /**
1564
+ * Usually `Access Denied`, but may include more detail, ex: `Access Denied: Must be logged in`.
1565
+ */
1566
+ reason: string;
1497
1567
  };
1498
1568
  export type DTextResponse = {
1499
1569
  html: string;
@@ -1539,13 +1609,15 @@ export type OAuthError = {
1539
1609
  */
1540
1610
  export type idQuery = string | number;
1541
1611
  /**
1542
- * The maximum number of results to return. Between 0 and 320.
1612
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
1543
1613
  */
1544
1614
  export type limitQuery = number;
1545
1615
  /**
1546
- * The page number of results to get. Between 1 and 750.
1616
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
1617
+ * See [Pagination](https://e621.wiki/pagination/).
1618
+ *
1547
1619
  */
1548
- export type pageQuery = number;
1620
+ export type pageQuery = string;
1549
1621
  /**
1550
1622
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
1551
1623
  */
@@ -1555,11 +1627,11 @@ export type ipAddrQuery = string;
1555
1627
  */
1556
1628
  export type orderQuery = 'id_asc' | 'id_desc';
1557
1629
  /**
1558
- * Use the new V2 format. See the `v2=true` responses.
1630
+ * Use the new V2 format. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
1559
1631
  */
1560
1632
  export type v2Query = boolean;
1561
1633
  /**
1562
- * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses.
1634
+ * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
1563
1635
  */
1564
1636
  export type modeQuery = 'basic' | 'extended' | 'thumbnail';
1565
1637
  /**
@@ -1578,13 +1650,15 @@ export type ApiKeysIndexData = {
1578
1650
  path?: never;
1579
1651
  query?: {
1580
1652
  /**
1581
- * The maximum number of results to return. Between 0 and 320.
1653
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
1582
1654
  */
1583
1655
  limit?: number;
1584
1656
  /**
1585
- * The page number of results to get. Between 1 and 750.
1657
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
1658
+ * See [Pagination](https://e621.wiki/pagination/).
1659
+ *
1586
1660
  */
1587
- page?: number;
1661
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
1588
1662
  /**
1589
1663
  * Search for a specific id. Multiple can be separated by commas, up to 320.
1590
1664
  */
@@ -1717,13 +1791,15 @@ export type AppealsIndexData = {
1717
1791
  path?: never;
1718
1792
  query?: {
1719
1793
  /**
1720
- * The maximum number of results to return. Between 0 and 320.
1794
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
1721
1795
  */
1722
1796
  limit?: number;
1723
1797
  /**
1724
- * The page number of results to get. Between 1 and 750.
1798
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
1799
+ * See [Pagination](https://e621.wiki/pagination/).
1800
+ *
1725
1801
  */
1726
- page?: number;
1802
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
1727
1803
  /**
1728
1804
  * Search for a specific id. Multiple can be separated by commas, up to 320.
1729
1805
  */
@@ -1907,13 +1983,15 @@ export type ArtistsIndexData = {
1907
1983
  path?: never;
1908
1984
  query?: {
1909
1985
  /**
1910
- * The maximum number of results to return. Between 0 and 320.
1986
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
1911
1987
  */
1912
1988
  limit?: number;
1913
1989
  /**
1914
- * The page number of results to get. Between 1 and 750.
1990
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
1991
+ * See [Pagination](https://e621.wiki/pagination/).
1992
+ *
1915
1993
  */
1916
- page?: number;
1994
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
1917
1995
  /**
1918
1996
  * Search for a specific id. Multiple can be separated by commas, up to 320.
1919
1997
  */
@@ -2137,13 +2215,15 @@ export type ArtistVersionsIndexData = {
2137
2215
  path?: never;
2138
2216
  query?: {
2139
2217
  /**
2140
- * The maximum number of results to return. Between 0 and 320.
2218
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
2141
2219
  */
2142
2220
  limit?: number;
2143
2221
  /**
2144
- * The page number of results to get. Between 1 and 750.
2222
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
2223
+ * See [Pagination](https://e621.wiki/pagination/).
2224
+ *
2145
2225
  */
2146
- page?: number;
2226
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
2147
2227
  /**
2148
2228
  * Search for a specific id. Multiple can be separated by commas, up to 320.
2149
2229
  */
@@ -2187,13 +2267,15 @@ export type ArtistUrlsIndexData = {
2187
2267
  path?: never;
2188
2268
  query?: {
2189
2269
  /**
2190
- * The maximum number of results to return. Between 0 and 320.
2270
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
2191
2271
  */
2192
2272
  limit?: number;
2193
2273
  /**
2194
- * The page number of results to get. Between 1 and 750.
2274
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
2275
+ * See [Pagination](https://e621.wiki/pagination/).
2276
+ *
2195
2277
  */
2196
- page?: number;
2278
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
2197
2279
  /**
2198
2280
  * Search for a specific id. Multiple can be separated by commas, up to 320.
2199
2281
  */
@@ -2259,13 +2341,15 @@ export type AvoidPostingsIndexData = {
2259
2341
  path?: never;
2260
2342
  query?: {
2261
2343
  /**
2262
- * The maximum number of results to return. Between 0 and 320.
2344
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
2263
2345
  */
2264
2346
  limit?: number;
2265
2347
  /**
2266
- * The page number of results to get. Between 1 and 750.
2348
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
2349
+ * See [Pagination](https://e621.wiki/pagination/).
2350
+ *
2267
2351
  */
2268
- page?: number;
2352
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
2269
2353
  /**
2270
2354
  * Search for a specific id. Multiple can be separated by commas, up to 320.
2271
2355
  */
@@ -2520,13 +2604,15 @@ export type AvoidPostingVersionsIndexData = {
2520
2604
  path?: never;
2521
2605
  query?: {
2522
2606
  /**
2523
- * The maximum number of results to return. Between 0 and 320.
2607
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
2524
2608
  */
2525
2609
  limit?: number;
2526
2610
  /**
2527
- * The page number of results to get. Between 1 and 750.
2611
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
2612
+ * See [Pagination](https://e621.wiki/pagination/).
2613
+ *
2528
2614
  */
2529
- page?: number;
2615
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
2530
2616
  /**
2531
2617
  * Search for a specific id. Multiple can be separated by commas, up to 320.
2532
2618
  */
@@ -2586,13 +2672,15 @@ export type BansIndexData = {
2586
2672
  path?: never;
2587
2673
  query?: {
2588
2674
  /**
2589
- * The maximum number of results to return. Between 0 and 320.
2675
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
2590
2676
  */
2591
2677
  limit?: number;
2592
2678
  /**
2593
- * The page number of results to get. Between 1 and 750.
2679
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
2680
+ * See [Pagination](https://e621.wiki/pagination/).
2681
+ *
2594
2682
  */
2595
- page?: number;
2683
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
2596
2684
  /**
2597
2685
  * Search for a specific id. Multiple can be separated by commas, up to 320.
2598
2686
  */
@@ -2665,13 +2753,15 @@ export type BlipsIndexData = {
2665
2753
  path?: never;
2666
2754
  query?: {
2667
2755
  /**
2668
- * The maximum number of results to return. Between 0 and 320.
2756
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
2669
2757
  */
2670
2758
  limit?: number;
2671
2759
  /**
2672
- * The page number of results to get. Between 1 and 750.
2760
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
2761
+ * See [Pagination](https://e621.wiki/pagination/).
2762
+ *
2673
2763
  */
2674
- page?: number;
2764
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
2675
2765
  /**
2676
2766
  * Search for a specific id. Multiple can be separated by commas, up to 320.
2677
2767
  */
@@ -2901,18 +2991,20 @@ export type BulkUpdateRequestsIndexData = {
2901
2991
  path?: never;
2902
2992
  query?: {
2903
2993
  /**
2904
- * The maximum number of results to return. Between 0 and 320.
2994
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
2905
2995
  */
2906
2996
  limit?: number;
2907
2997
  /**
2908
- * The page number of results to get. Between 1 and 750.
2998
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
2999
+ * See [Pagination](https://e621.wiki/pagination/).
3000
+ *
2909
3001
  */
2910
- page?: number;
3002
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
2911
3003
  /**
2912
3004
  * Search for a specific id. Multiple can be separated by commas, up to 320.
2913
3005
  */
2914
3006
  'search[id]'?: string | number;
2915
- 'search[order]'?: 'id_asc' | 'id_desc' | 'status_desc' | 'updated_at_desc' | 'updated_at_asc';
3007
+ 'search[order]'?: 'id_asc' | 'id_desc' | 'status_desc' | 'updated_at_desc' | 'updated_at_asc' | 'score_desc' | 'score_asc';
2916
3008
  'search[user_id]'?: number;
2917
3009
  'search[user_name]'?: string;
2918
3010
  'search[approver_id]'?: number;
@@ -3106,13 +3198,15 @@ export type CommentsIndexData = {
3106
3198
  path?: never;
3107
3199
  query?: {
3108
3200
  /**
3109
- * The maximum number of results to return. Between 0 and 320.
3201
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
3110
3202
  */
3111
3203
  limit?: number;
3112
3204
  /**
3113
- * The page number of results to get. Between 1 and 750.
3205
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
3206
+ * See [Pagination](https://e621.wiki/pagination/).
3207
+ *
3114
3208
  */
3115
- page?: number;
3209
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
3116
3210
  /**
3117
3211
  * Search for a specific id. Multiple can be separated by commas, up to 320.
3118
3212
  */
@@ -3129,7 +3223,7 @@ export type CommentsIndexData = {
3129
3223
  */
3130
3224
  'search[post_id]'?: string;
3131
3225
  /**
3132
- * Only usable by Member+
3226
+ * Only usable by Member+. See [Search Syntax](https://e621.wiki/searching/).
3133
3227
  */
3134
3228
  'search[post_tags_match]'?: string;
3135
3229
  'search[post_note_updater_name]'?: string;
@@ -3461,13 +3555,15 @@ export type CommentVotesIndexData = {
3461
3555
  path?: never;
3462
3556
  query?: {
3463
3557
  /**
3464
- * The maximum number of results to return. Between 0 and 320.
3558
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
3465
3559
  */
3466
3560
  limit?: number;
3467
3561
  /**
3468
- * The page number of results to get. Between 1 and 750.
3562
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
3563
+ * See [Pagination](https://e621.wiki/pagination/).
3564
+ *
3469
3565
  */
3470
- page?: number;
3566
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
3471
3567
  /**
3472
3568
  * Search for a specific id. Multiple can be separated by commas, up to 320.
3473
3569
  */
@@ -3801,13 +3897,15 @@ export type DmailsIndexData = {
3801
3897
  path?: never;
3802
3898
  query?: {
3803
3899
  /**
3804
- * The maximum number of results to return. Between 0 and 320.
3900
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
3805
3901
  */
3806
3902
  limit?: number;
3807
3903
  /**
3808
- * The page number of results to get. Between 1 and 750.
3904
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
3905
+ * See [Pagination](https://e621.wiki/pagination/).
3906
+ *
3809
3907
  */
3810
- page?: number;
3908
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
3811
3909
  /**
3812
3910
  * Search for a specific id. Multiple can be separated by commas, up to 320.
3813
3911
  */
@@ -3976,11 +4074,27 @@ export type DmailsMarkAllAsReadResponse = DmailsMarkAllAsReadResponses[keyof Dma
3976
4074
  export type DtextPreviewsCreateData = {
3977
4075
  body?: {
3978
4076
  body: string;
4077
+ allow_color?: boolean;
3979
4078
  };
3980
4079
  path?: never;
3981
4080
  query?: never;
3982
4081
  url: '/dtext_preview.json';
3983
4082
  };
4083
+ export type DtextPreviewsCreateErrors = {
4084
+ /**
4085
+ * Access Denied
4086
+ */
4087
+ 403: AccessDeniedResponse;
4088
+ /**
4089
+ * The body or the rendered output is too large
4090
+ */
4091
+ 413: MessageErrorResponse;
4092
+ /**
4093
+ * Ratelimited
4094
+ */
4095
+ 429: MessageErrorResponse;
4096
+ };
4097
+ export type DtextPreviewsCreateError = DtextPreviewsCreateErrors[keyof DtextPreviewsCreateErrors];
3984
4098
  export type DtextPreviewsCreateResponses = {
3985
4099
  /**
3986
4100
  * Success
@@ -3993,13 +4107,15 @@ export type EditHistoriesIndexData = {
3993
4107
  path?: never;
3994
4108
  query?: {
3995
4109
  /**
3996
- * The maximum number of results to return. Between 0 and 320.
4110
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
3997
4111
  */
3998
4112
  limit?: number;
3999
4113
  /**
4000
- * The page number of results to get. Between 1 and 750.
4114
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
4115
+ * See [Pagination](https://e621.wiki/pagination/).
4116
+ *
4001
4117
  */
4002
- page?: number;
4118
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
4003
4119
  /**
4004
4120
  * Search for a specific id. Multiple can be separated by commas, up to 320.
4005
4121
  */
@@ -4070,13 +4186,15 @@ export type EmailBlacklistsIndexData = {
4070
4186
  path?: never;
4071
4187
  query?: {
4072
4188
  /**
4073
- * The maximum number of results to return. Between 0 and 320.
4189
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
4074
4190
  */
4075
4191
  limit?: number;
4076
4192
  /**
4077
- * The page number of results to get. Between 1 and 750.
4193
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
4194
+ * See [Pagination](https://e621.wiki/pagination/).
4195
+ *
4078
4196
  */
4079
- page?: number;
4197
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
4080
4198
  /**
4081
4199
  * Search for a specific id. Multiple can be separated by commas, up to 320.
4082
4200
  */
@@ -4153,19 +4271,21 @@ export type FavoritesIndexData = {
4153
4271
  path?: never;
4154
4272
  query?: {
4155
4273
  /**
4156
- * The maximum number of results to return. Between 0 and 320.
4274
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
4157
4275
  */
4158
4276
  limit?: number;
4159
4277
  /**
4160
- * The page number of results to get. Between 1 and 750.
4278
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
4279
+ * See [Pagination](https://e621.wiki/pagination/).
4280
+ *
4161
4281
  */
4162
- page?: number;
4282
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
4163
4283
  /**
4164
- * Use the new V2 format. See the `v2=true` responses.
4284
+ * Use the new V2 format. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
4165
4285
  */
4166
4286
  v2?: boolean;
4167
4287
  /**
4168
- * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses.
4288
+ * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
4169
4289
  */
4170
4290
  mode?: 'basic' | 'extended' | 'thumbnail';
4171
4291
  };
@@ -4271,13 +4391,15 @@ export type ForumPostsIndexData = {
4271
4391
  path?: never;
4272
4392
  query?: {
4273
4393
  /**
4274
- * The maximum number of results to return. Between 0 and 320.
4394
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
4275
4395
  */
4276
4396
  limit?: number;
4277
4397
  /**
4278
- * The page number of results to get. Between 1 and 750.
4398
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
4399
+ * See [Pagination](https://e621.wiki/pagination/).
4400
+ *
4279
4401
  */
4280
- page?: number;
4402
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
4281
4403
  /**
4282
4404
  * Search for a specific id. Multiple can be separated by commas, up to 320.
4283
4405
  */
@@ -4307,6 +4429,10 @@ export type ForumPostsCreateData = {
4307
4429
  body?: {
4308
4430
  'forum_post[body]': string;
4309
4431
  'forum_post[topic_id]': number;
4432
+ /**
4433
+ * Don't bump the topic.
4434
+ */
4435
+ 'forum_post[do_not_bump_topic]'?: boolean;
4310
4436
  };
4311
4437
  path?: never;
4312
4438
  query?: never;
@@ -4626,18 +4752,23 @@ export type ForumTopicsIndexData = {
4626
4752
  path?: never;
4627
4753
  query?: {
4628
4754
  /**
4629
- * The maximum number of results to return. Between 0 and 320.
4755
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
4630
4756
  */
4631
4757
  limit?: number;
4632
4758
  /**
4633
- * The page number of results to get. Between 1 and 750.
4759
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
4760
+ * See [Pagination](https://e621.wiki/pagination/).
4761
+ *
4634
4762
  */
4635
- page?: number;
4763
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
4636
4764
  /**
4637
4765
  * Search for a specific id. Multiple can be separated by commas, up to 320.
4638
4766
  */
4639
4767
  'search[id]'?: string | number;
4640
- 'search[order]'?: 'id_asc' | 'id_desc' | 'sticky';
4768
+ /**
4769
+ * `sticky` sorts by last bumped, `sticky_updated` by last updated.
4770
+ */
4771
+ 'search[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';
4641
4772
  'search[title]'?: string;
4642
4773
  'search[title_matches]'?: string;
4643
4774
  'search[category_id]'?: number;
@@ -4765,6 +4896,10 @@ export type ForumTopicsUpdateData = {
4765
4896
  * You must be Moderator+.
4766
4897
  */
4767
4898
  'forum_topic[is_sticky]'?: boolean;
4899
+ /**
4900
+ * Don't bump the topic when changing the title or category.
4901
+ */
4902
+ 'forum_topic[do_not_bump]'?: boolean;
4768
4903
  /**
4769
4904
  * You must be Moderator+.
4770
4905
  */
@@ -5122,13 +5257,15 @@ export type IpBansIndexData = {
5122
5257
  path?: never;
5123
5258
  query?: {
5124
5259
  /**
5125
- * The maximum number of results to return. Between 0 and 320.
5260
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
5126
5261
  */
5127
5262
  limit?: number;
5128
5263
  /**
5129
- * The page number of results to get. Between 1 and 750.
5264
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
5265
+ * See [Pagination](https://e621.wiki/pagination/).
5266
+ *
5130
5267
  */
5131
- page?: number;
5268
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
5132
5269
  /**
5133
5270
  * Search for a specific id. Multiple can be separated by commas, up to 320.
5134
5271
  */
@@ -5217,7 +5354,7 @@ export type IqdbQueriesShowData = {
5217
5354
  path?: never;
5218
5355
  query?: {
5219
5356
  /**
5220
- * Use the new V2 format. See the `v2=true` responses.
5357
+ * Use the new V2 format. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
5221
5358
  */
5222
5359
  v2?: boolean;
5223
5360
  'search[score_cutoff]'?: number;
@@ -5228,10 +5365,26 @@ export type IqdbQueriesShowData = {
5228
5365
  url: '/iqdb_queries.json';
5229
5366
  };
5230
5367
  export type IqdbQueriesShowErrors = {
5368
+ /**
5369
+ * Invalid input, or IQDB is disabled
5370
+ */
5371
+ 400: MessageErrorResponse;
5231
5372
  /**
5232
5373
  * Access Denied
5233
5374
  */
5234
5375
  403: AccessDeniedResponse;
5376
+ /**
5377
+ * The file could not be downloaded, or is too large
5378
+ */
5379
+ 422: MessageErrorResponse;
5380
+ /**
5381
+ * Ratelimited, or IQDB is busy
5382
+ */
5383
+ 429: MessageErrorResponse;
5384
+ /**
5385
+ * IQDB is unavailable
5386
+ */
5387
+ 503: MessageErrorResponse;
5235
5388
  };
5236
5389
  export type IqdbQueriesShowError = IqdbQueriesShowErrors[keyof IqdbQueriesShowErrors];
5237
5390
  export type IqdbQueriesShowResponses = {
@@ -5251,17 +5404,33 @@ export type IqdbQueriesShowPostData = {
5251
5404
  path?: never;
5252
5405
  query?: {
5253
5406
  /**
5254
- * Use the new V2 format. See the `v2=true` responses.
5407
+ * Use the new V2 format. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
5255
5408
  */
5256
5409
  v2?: boolean;
5257
5410
  };
5258
5411
  url: '/iqdb_queries.json';
5259
5412
  };
5260
5413
  export type IqdbQueriesShowPostErrors = {
5414
+ /**
5415
+ * Invalid input, or IQDB is disabled
5416
+ */
5417
+ 400: MessageErrorResponse;
5261
5418
  /**
5262
5419
  * Access Denied
5263
5420
  */
5264
5421
  403: AccessDeniedResponse;
5422
+ /**
5423
+ * The file could not be downloaded, or is too large
5424
+ */
5425
+ 422: MessageErrorResponse;
5426
+ /**
5427
+ * Ratelimited, or IQDB is busy
5428
+ */
5429
+ 429: MessageErrorResponse;
5430
+ /**
5431
+ * IQDB is unavailable
5432
+ */
5433
+ 503: MessageErrorResponse;
5265
5434
  };
5266
5435
  export type IqdbQueriesShowPostError = IqdbQueriesShowPostErrors[keyof IqdbQueriesShowPostErrors];
5267
5436
  export type IqdbQueriesShowPostResponses = {
@@ -5276,13 +5445,15 @@ export type MascotsIndexData = {
5276
5445
  path?: never;
5277
5446
  query?: {
5278
5447
  /**
5279
- * The maximum number of results to return. Between 0 and 320.
5448
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
5280
5449
  */
5281
5450
  limit?: number;
5282
5451
  /**
5283
- * The page number of results to get. Between 1 and 750.
5452
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
5453
+ * See [Pagination](https://e621.wiki/pagination/).
5454
+ *
5284
5455
  */
5285
- page?: number;
5456
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
5286
5457
  /**
5287
5458
  * Search for a specific id. Multiple can be separated by commas, up to 320.
5288
5459
  */
@@ -5418,13 +5589,15 @@ export type ModActionsIndexData = {
5418
5589
  path?: never;
5419
5590
  query?: {
5420
5591
  /**
5421
- * The maximum number of results to return. Between 0 and 320.
5592
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
5422
5593
  */
5423
5594
  limit?: number;
5424
5595
  /**
5425
- * The page number of results to get. Between 1 and 750.
5596
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
5597
+ * See [Pagination](https://e621.wiki/pagination/).
5598
+ *
5426
5599
  */
5427
- page?: number;
5600
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
5428
5601
  /**
5429
5602
  * Search for a specific id. Multiple can be separated by commas, up to 320.
5430
5603
  */
@@ -5477,13 +5650,15 @@ export type NewsUpdatesIndexData = {
5477
5650
  path?: never;
5478
5651
  query?: {
5479
5652
  /**
5480
- * The maximum number of results to return. Between 0 and 320.
5653
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
5481
5654
  */
5482
5655
  limit?: number;
5483
5656
  /**
5484
- * The page number of results to get. Between 1 and 750.
5657
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
5658
+ * See [Pagination](https://e621.wiki/pagination/).
5659
+ *
5485
5660
  */
5486
- page?: number;
5661
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
5487
5662
  };
5488
5663
  url: '/news_updates.json';
5489
5664
  };
@@ -5593,13 +5768,15 @@ export type NotesIndexData = {
5593
5768
  path?: never;
5594
5769
  query?: {
5595
5770
  /**
5596
- * The maximum number of results to return. Between 0 and 320.
5771
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
5597
5772
  */
5598
5773
  limit?: number;
5599
5774
  /**
5600
- * The page number of results to get. Between 1 and 750.
5775
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
5776
+ * See [Pagination](https://e621.wiki/pagination/).
5777
+ *
5601
5778
  */
5602
- page?: number;
5779
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
5603
5780
  /**
5604
5781
  * Search for a specific id. Multiple can be separated by commas, up to 320.
5605
5782
  */
@@ -5612,7 +5789,7 @@ export type NotesIndexData = {
5612
5789
  'search[is_active]'?: boolean;
5613
5790
  'search[post_id]'?: number;
5614
5791
  /**
5615
- * Only usable by Member+
5792
+ * Only usable by Member+. See [Search Syntax](https://e621.wiki/searching/).
5616
5793
  */
5617
5794
  'search[post_tags_match]'?: string;
5618
5795
  'search[post_note_updater_id]'?: number;
@@ -5811,13 +5988,15 @@ export type NoteVersionsIndexData = {
5811
5988
  path?: never;
5812
5989
  query?: {
5813
5990
  /**
5814
- * The maximum number of results to return. Between 0 and 320.
5991
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
5815
5992
  */
5816
5993
  limit?: number;
5817
5994
  /**
5818
- * The page number of results to get. Between 1 and 750.
5995
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
5996
+ * See [Pagination](https://e621.wiki/pagination/).
5997
+ *
5819
5998
  */
5820
- page?: number;
5999
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
5821
6000
  /**
5822
6001
  * Search for a specific id. Multiple can be separated by commas, up to 320.
5823
6002
  */
@@ -5851,13 +6030,15 @@ export type PoolsIndexData = {
5851
6030
  path?: never;
5852
6031
  query?: {
5853
6032
  /**
5854
- * The maximum number of results to return. Between 0 and 320.
6033
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
5855
6034
  */
5856
6035
  limit?: number;
5857
6036
  /**
5858
- * The page number of results to get. Between 1 and 750.
6037
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
6038
+ * See [Pagination](https://e621.wiki/pagination/).
6039
+ *
5859
6040
  */
5860
- page?: number;
6041
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
5861
6042
  /**
5862
6043
  * Search for a specific id. Multiple can be separated by commas, up to 320.
5863
6044
  */
@@ -6151,13 +6332,15 @@ export type PoolVersionsIndexData = {
6151
6332
  path?: never;
6152
6333
  query?: {
6153
6334
  /**
6154
- * The maximum number of results to return. Between 0 and 320.
6335
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
6155
6336
  */
6156
6337
  limit?: number;
6157
6338
  /**
6158
- * The page number of results to get. Between 1 and 750.
6339
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
6340
+ * See [Pagination](https://e621.wiki/pagination/).
6341
+ *
6159
6342
  */
6160
- page?: number;
6343
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
6161
6344
  /**
6162
6345
  * Search for a specific id. Multiple can be separated by commas, up to 320.
6163
6346
  */
@@ -6188,11 +6371,11 @@ export type PopularIndexData = {
6188
6371
  path?: never;
6189
6372
  query?: {
6190
6373
  /**
6191
- * Use the new V2 format. See the `v2=true` responses.
6374
+ * Use the new V2 format. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6192
6375
  */
6193
6376
  v2?: boolean;
6194
6377
  /**
6195
- * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses.
6378
+ * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6196
6379
  */
6197
6380
  mode?: 'basic' | 'extended' | 'thumbnail';
6198
6381
  /**
@@ -6231,21 +6414,26 @@ export type PostsIndexData = {
6231
6414
  path?: never;
6232
6415
  query?: {
6233
6416
  /**
6234
- * The maximum number of results to return. Between 0 and 320.
6417
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
6235
6418
  */
6236
6419
  limit?: number;
6237
6420
  /**
6238
- * The page number of results to get. Between 1 and 750.
6421
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
6422
+ * See [Pagination](https://e621.wiki/pagination/).
6423
+ *
6239
6424
  */
6240
- page?: number;
6425
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
6241
6426
  /**
6242
- * Use the new V2 format. See the `v2=true` responses.
6427
+ * Use the new V2 format. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6243
6428
  */
6244
6429
  v2?: boolean;
6245
6430
  /**
6246
- * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses.
6431
+ * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6247
6432
  */
6248
6433
  mode?: 'basic' | 'extended' | 'thumbnail';
6434
+ /**
6435
+ * See [Search Syntax](https://e621.wiki/searching/).
6436
+ */
6249
6437
  tags?: string;
6250
6438
  md5?: string;
6251
6439
  random?: string;
@@ -6270,13 +6458,16 @@ export type PostsRandomData = {
6270
6458
  path?: never;
6271
6459
  query?: {
6272
6460
  /**
6273
- * Use the new V2 format. See the `v2=true` responses.
6461
+ * Use the new V2 format. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6274
6462
  */
6275
6463
  v2?: boolean;
6276
6464
  /**
6277
- * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses.
6465
+ * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6278
6466
  */
6279
6467
  mode?: 'basic' | 'extended' | 'thumbnail';
6468
+ /**
6469
+ * See [Search Syntax](https://e621.wiki/searching/).
6470
+ */
6280
6471
  tags?: string;
6281
6472
  };
6282
6473
  url: '/posts/random.json';
@@ -6303,6 +6494,9 @@ export type PostsCountData = {
6303
6494
  body?: never;
6304
6495
  path?: never;
6305
6496
  query: {
6497
+ /**
6498
+ * See [Search Syntax](https://e621.wiki/searching/).
6499
+ */
6306
6500
  tags: string;
6307
6501
  };
6308
6502
  url: '/posts/count.json';
@@ -6334,11 +6528,11 @@ export type PostsShowData = {
6334
6528
  };
6335
6529
  query?: {
6336
6530
  /**
6337
- * Use the new V2 format. See the `v2=true` responses.
6531
+ * Use the new V2 format. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6338
6532
  */
6339
6533
  v2?: boolean;
6340
6534
  /**
6341
- * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses.
6535
+ * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6342
6536
  */
6343
6537
  mode?: 'basic' | 'extended' | 'thumbnail';
6344
6538
  };
@@ -6444,11 +6638,11 @@ export type PostsUpdateData = {
6444
6638
  };
6445
6639
  query?: {
6446
6640
  /**
6447
- * Use the new V2 format. See the `v2=true` responses.
6641
+ * Use the new V2 format. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6448
6642
  */
6449
6643
  v2?: boolean;
6450
6644
  /**
6451
- * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses.
6645
+ * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6452
6646
  */
6453
6647
  mode?: 'basic' | 'extended' | 'thumbnail';
6454
6648
  };
@@ -6492,11 +6686,11 @@ export type PostsUpdateIqdbData = {
6492
6686
  };
6493
6687
  query?: {
6494
6688
  /**
6495
- * Use the new V2 format. See the `v2=true` responses.
6689
+ * Use the new V2 format. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6496
6690
  */
6497
6691
  v2?: boolean;
6498
6692
  /**
6499
- * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses.
6693
+ * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6500
6694
  */
6501
6695
  mode?: 'basic' | 'extended' | 'thumbnail';
6502
6696
  };
@@ -6543,11 +6737,11 @@ export type PostsMarkAsTranslatedData = {
6543
6737
  };
6544
6738
  query?: {
6545
6739
  /**
6546
- * Use the new V2 format. See the `v2=true` responses.
6740
+ * Use the new V2 format. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6547
6741
  */
6548
6742
  v2?: boolean;
6549
6743
  /**
6550
- * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses.
6744
+ * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6551
6745
  */
6552
6746
  mode?: 'basic' | 'extended' | 'thumbnail';
6553
6747
  };
@@ -6666,11 +6860,11 @@ export type PostsShowSeqData = {
6666
6860
  };
6667
6861
  query?: {
6668
6862
  /**
6669
- * Use the new V2 format. See the `v2=true` responses.
6863
+ * Use the new V2 format. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6670
6864
  */
6671
6865
  v2?: boolean;
6672
6866
  /**
6673
- * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses.
6867
+ * Set the mode for the V2 format. Ignored if `v2` is not set or false. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
6674
6868
  */
6675
6869
  mode?: 'basic' | 'extended' | 'thumbnail';
6676
6870
  /**
@@ -6756,9 +6950,11 @@ export type PostFavoritesIndexData = {
6756
6950
  */
6757
6951
  limit?: number;
6758
6952
  /**
6759
- * The page number of results to get. Between 1 and 750.
6953
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
6954
+ * See [Pagination](https://e621.wiki/pagination/).
6955
+ *
6760
6956
  */
6761
- page?: number;
6957
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
6762
6958
  };
6763
6959
  url: '/posts/{id}/favorites.json';
6764
6960
  };
@@ -6893,13 +7089,15 @@ export type PostRecommendationsArtistData = {
6893
7089
  };
6894
7090
  query?: {
6895
7091
  /**
6896
- * The maximum number of results to return. Between 0 and 320.
7092
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
6897
7093
  */
6898
7094
  limit?: number;
6899
7095
  /**
6900
- * The page number of results to get. Between 1 and 750.
7096
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
7097
+ * See [Pagination](https://e621.wiki/pagination/).
7098
+ *
6901
7099
  */
6902
- page?: number;
7100
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
6903
7101
  };
6904
7102
  url: '/posts/{id}/similar/artist.json';
6905
7103
  };
@@ -6927,13 +7125,15 @@ export type PostRecommendationsTagsData = {
6927
7125
  };
6928
7126
  query?: {
6929
7127
  /**
6930
- * The maximum number of results to return. Between 0 and 320.
7128
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
6931
7129
  */
6932
7130
  limit?: number;
6933
7131
  /**
6934
- * The page number of results to get. Between 1 and 750.
7132
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
7133
+ * See [Pagination](https://e621.wiki/pagination/).
7134
+ *
6935
7135
  */
6936
- page?: number;
7136
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
6937
7137
  };
6938
7138
  url: '/posts/{id}/similar/tags.json';
6939
7139
  };
@@ -6956,13 +7156,15 @@ export type PostSetsIndexData = {
6956
7156
  path?: never;
6957
7157
  query?: {
6958
7158
  /**
6959
- * The maximum number of results to return. Between 0 and 320.
7159
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
6960
7160
  */
6961
7161
  limit?: number;
6962
7162
  /**
6963
- * The page number of results to get. Between 1 and 750.
7163
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
7164
+ * See [Pagination](https://e621.wiki/pagination/).
7165
+ *
6964
7166
  */
6965
- page?: number;
7167
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
6966
7168
  /**
6967
7169
  * Search for a specific id. Multiple can be separated by commas, up to 320.
6968
7170
  */
@@ -7299,13 +7501,15 @@ export type PostApprovalsIndexData = {
7299
7501
  path?: never;
7300
7502
  query?: {
7301
7503
  /**
7302
- * The maximum number of results to return. Between 0 and 320.
7504
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
7303
7505
  */
7304
7506
  limit?: number;
7305
7507
  /**
7306
- * The page number of results to get. Between 1 and 750.
7508
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
7509
+ * See [Pagination](https://e621.wiki/pagination/).
7510
+ *
7307
7511
  */
7308
- page?: number;
7512
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
7309
7513
  /**
7310
7514
  * Search for a specific id. Multiple can be separated by commas, up to 320.
7311
7515
  */
@@ -7315,7 +7519,7 @@ export type PostApprovalsIndexData = {
7315
7519
  */
7316
7520
  'search[order]'?: 'id_asc' | 'id_desc';
7317
7521
  /**
7318
- * Only usable by Member+
7522
+ * Only usable by Member+. See [Search Syntax](https://e621.wiki/searching/).
7319
7523
  */
7320
7524
  'search[post_tags_match]'?: string;
7321
7525
  'search[user_id]'?: number;
@@ -7336,13 +7540,15 @@ export type PostEventsIndexData = {
7336
7540
  path?: never;
7337
7541
  query?: {
7338
7542
  /**
7339
- * The maximum number of results to return. Between 0 and 320.
7543
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
7340
7544
  */
7341
7545
  limit?: number;
7342
7546
  /**
7343
- * The page number of results to get. Between 1 and 750.
7547
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
7548
+ * See [Pagination](https://e621.wiki/pagination/).
7549
+ *
7344
7550
  */
7345
- page?: number;
7551
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
7346
7552
  /**
7347
7553
  * Search for a specific id. Multiple can be separated by commas, up to 320.
7348
7554
  */
@@ -7352,7 +7558,7 @@ export type PostEventsIndexData = {
7352
7558
  */
7353
7559
  'search[order]'?: 'id_asc' | 'id_desc';
7354
7560
  /**
7355
- * Use the new V2 format. See the `v2=true` responses.
7561
+ * Use the new V2 format. See the `v2=true` responses, and [Post Files](https://e621.wiki/post-files/#formats).
7356
7562
  */
7357
7563
  v2?: boolean;
7358
7564
  'search[post_id]'?: number;
@@ -7376,13 +7582,15 @@ export type PostFlagsIndexData = {
7376
7582
  path?: never;
7377
7583
  query?: {
7378
7584
  /**
7379
- * The maximum number of results to return. Between 0 and 320.
7585
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
7380
7586
  */
7381
7587
  limit?: number;
7382
7588
  /**
7383
- * The page number of results to get. Between 1 and 750.
7589
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
7590
+ * See [Pagination](https://e621.wiki/pagination/).
7591
+ *
7384
7592
  */
7385
- page?: number;
7593
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
7386
7594
  /**
7387
7595
  * Search for a specific id. Multiple can be separated by commas, up to 320.
7388
7596
  */
@@ -7400,7 +7608,7 @@ export type PostFlagsIndexData = {
7400
7608
  'search[creator_name]'?: string;
7401
7609
  'search[post_id]'?: number;
7402
7610
  /**
7403
- * Only usable by Member+
7611
+ * Only usable by Member+. See [Search Syntax](https://e621.wiki/searching/).
7404
7612
  */
7405
7613
  'search[post_tags_match]'?: string;
7406
7614
  'search[type]'?: string;
@@ -7497,7 +7705,7 @@ export type PostFlagsClearNoteResponses = {
7497
7705
  /**
7498
7706
  * Success
7499
7707
  */
7500
- 201: PostFlag;
7708
+ 200: PostFlag;
7501
7709
  };
7502
7710
  export type PostFlagsClearNoteResponse = PostFlagsClearNoteResponses[keyof PostFlagsClearNoteResponses];
7503
7711
  export type PostReplacementsIndexData = {
@@ -7505,13 +7713,15 @@ export type PostReplacementsIndexData = {
7505
7713
  path?: never;
7506
7714
  query?: {
7507
7715
  /**
7508
- * The maximum number of results to return. Between 0 and 320.
7716
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
7509
7717
  */
7510
7718
  limit?: number;
7511
7719
  /**
7512
- * The page number of results to get. Between 1 and 750.
7720
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
7721
+ * See [Pagination](https://e621.wiki/pagination/).
7722
+ *
7513
7723
  */
7514
- page?: number;
7724
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
7515
7725
  /**
7516
7726
  * Search for a specific id. Multiple can be separated by commas, up to 320.
7517
7727
  */
@@ -7803,13 +8013,16 @@ export type PostVersionsIndexData = {
7803
8013
  path?: never;
7804
8014
  query?: {
7805
8015
  /**
7806
- * The maximum number of results to return. Between 0 and 320.
8016
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
7807
8017
  */
7808
8018
  limit?: number;
7809
8019
  /**
7810
- * The page number of results to get. Between 1 and 750. Note that for post versions specifically, you can only go through the 10,000 most recent results with page numbers.
8020
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
8021
+ * Page numbers can only reach the 10,000 most recent results, use `b<id>` to go further.
8022
+ * See [Pagination](https://e621.wiki/pagination/).
8023
+ *
7811
8024
  */
7812
- page?: number;
8025
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
7813
8026
  /**
7814
8027
  * Search for a specific id. Multiple can be separated by commas, up to 320.
7815
8028
  */
@@ -7921,13 +8134,15 @@ export type PostVotesIndexData = {
7921
8134
  path?: never;
7922
8135
  query?: {
7923
8136
  /**
7924
- * The maximum number of results to return. Between 0 and 320.
8137
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
7925
8138
  */
7926
8139
  limit?: number;
7927
8140
  /**
7928
- * The page number of results to get. Between 1 and 750.
8141
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
8142
+ * See [Pagination](https://e621.wiki/pagination/).
8143
+ *
7929
8144
  */
7930
- page?: number;
8145
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
7931
8146
  /**
7932
8147
  * Search for a specific id. Multiple can be separated by commas, up to 320.
7933
8148
  */
@@ -8030,18 +8245,230 @@ export type PostVotesDeleteResponses = {
8030
8245
  204: void;
8031
8246
  };
8032
8247
  export type PostVotesDeleteResponse = PostVotesDeleteResponses[keyof PostVotesDeleteResponses];
8248
+ export type SavedSearchesIndexData = {
8249
+ body?: never;
8250
+ path?: never;
8251
+ query?: never;
8252
+ url: '/saved_searches.json';
8253
+ };
8254
+ export type SavedSearchesIndexErrors = {
8255
+ /**
8256
+ * Access Denied
8257
+ */
8258
+ 403: AccessDeniedResponse;
8259
+ };
8260
+ export type SavedSearchesIndexError = SavedSearchesIndexErrors[keyof SavedSearchesIndexErrors];
8261
+ export type SavedSearchesIndexResponses = {
8262
+ /**
8263
+ * Success
8264
+ */
8265
+ 200: Array<SavedSearch>;
8266
+ };
8267
+ export type SavedSearchesIndexResponse = SavedSearchesIndexResponses[keyof SavedSearchesIndexResponses];
8268
+ export type SavedSearchesCreateData = {
8269
+ body?: {
8270
+ /**
8271
+ * See [Search Syntax](https://e621.wiki/searching/).
8272
+ */
8273
+ 'saved_search[query]': string;
8274
+ /**
8275
+ * Used to reference the search with `search:<name>`. Cannot be `subscriptions`.
8276
+ */
8277
+ 'saved_search[name]'?: string;
8278
+ /**
8279
+ * Track new posts matching the search.
8280
+ */
8281
+ 'saved_search[is_tracked]'?: boolean;
8282
+ };
8283
+ path?: never;
8284
+ query?: never;
8285
+ url: '/saved_searches.json';
8286
+ };
8287
+ export type SavedSearchesCreateErrors = {
8288
+ /**
8289
+ * Access Denied
8290
+ */
8291
+ 403: AccessDeniedResponse;
8292
+ /**
8293
+ * Error
8294
+ */
8295
+ 422: MessageErrorResponse;
8296
+ };
8297
+ export type SavedSearchesCreateError = SavedSearchesCreateErrors[keyof SavedSearchesCreateErrors];
8298
+ export type SavedSearchesCreateResponses = {
8299
+ /**
8300
+ * Success
8301
+ */
8302
+ 200: SavedSearch;
8303
+ };
8304
+ export type SavedSearchesCreateResponse = SavedSearchesCreateResponses[keyof SavedSearchesCreateResponses];
8305
+ export type SavedSearchesDestroyData = {
8306
+ body?: never;
8307
+ path: {
8308
+ /**
8309
+ * The ID of the item.
8310
+ */
8311
+ id: number;
8312
+ };
8313
+ query?: never;
8314
+ url: '/saved_searches/{id}.json';
8315
+ };
8316
+ export type SavedSearchesDestroyErrors = {
8317
+ /**
8318
+ * Access Denied
8319
+ */
8320
+ 403: AccessDeniedResponse;
8321
+ /**
8322
+ * Not Found
8323
+ */
8324
+ 404: NotFoundResponse;
8325
+ };
8326
+ export type SavedSearchesDestroyError = SavedSearchesDestroyErrors[keyof SavedSearchesDestroyErrors];
8327
+ export type SavedSearchesDestroyResponses = {
8328
+ /**
8329
+ * Success
8330
+ */
8331
+ 204: void;
8332
+ };
8333
+ export type SavedSearchesDestroyResponse = SavedSearchesDestroyResponses[keyof SavedSearchesDestroyResponses];
8334
+ export type SavedSearchesShowData = {
8335
+ body?: never;
8336
+ path: {
8337
+ /**
8338
+ * The ID of the item.
8339
+ */
8340
+ id: number;
8341
+ };
8342
+ query?: never;
8343
+ url: '/saved_searches/{id}.json';
8344
+ };
8345
+ export type SavedSearchesShowErrors = {
8346
+ /**
8347
+ * Access Denied
8348
+ */
8349
+ 403: AccessDeniedResponse;
8350
+ /**
8351
+ * Not Found
8352
+ */
8353
+ 404: NotFoundResponse;
8354
+ };
8355
+ export type SavedSearchesShowError = SavedSearchesShowErrors[keyof SavedSearchesShowErrors];
8356
+ export type SavedSearchesShowResponses = {
8357
+ /**
8358
+ * Success
8359
+ */
8360
+ 200: SavedSearch;
8361
+ };
8362
+ export type SavedSearchesShowResponse = SavedSearchesShowResponses[keyof SavedSearchesShowResponses];
8363
+ export type SavedSearchesUpdateData = {
8364
+ body?: {
8365
+ /**
8366
+ * See [Search Syntax](https://e621.wiki/searching/).
8367
+ */
8368
+ 'saved_search[query]'?: string;
8369
+ /**
8370
+ * Used to reference the search with `search:<name>`. Cannot be `subscriptions`.
8371
+ */
8372
+ 'saved_search[name]'?: string;
8373
+ /**
8374
+ * Track new posts matching the search. Changing this resets the seen post.
8375
+ */
8376
+ 'saved_search[is_tracked]'?: boolean;
8377
+ };
8378
+ path: {
8379
+ /**
8380
+ * The ID of the item.
8381
+ */
8382
+ id: number;
8383
+ };
8384
+ query?: never;
8385
+ url: '/saved_searches/{id}.json';
8386
+ };
8387
+ export type SavedSearchesUpdateErrors = {
8388
+ /**
8389
+ * Access Denied, or the saved search is the subscription search
8390
+ */
8391
+ 403: MessageErrorResponse;
8392
+ /**
8393
+ * Not Found
8394
+ */
8395
+ 404: NotFoundResponse;
8396
+ /**
8397
+ * Error
8398
+ */
8399
+ 422: MessageErrorResponse;
8400
+ };
8401
+ export type SavedSearchesUpdateError = SavedSearchesUpdateErrors[keyof SavedSearchesUpdateErrors];
8402
+ export type SavedSearchesUpdateResponses = {
8403
+ /**
8404
+ * Success
8405
+ */
8406
+ 200: SavedSearch;
8407
+ };
8408
+ export type SavedSearchesUpdateResponse = SavedSearchesUpdateResponses[keyof SavedSearchesUpdateResponses];
8409
+ export type SavedSearchesMarkAllSeenData = {
8410
+ body?: never;
8411
+ path?: never;
8412
+ query?: never;
8413
+ url: '/saved_searches/mark_all_seen.json';
8414
+ };
8415
+ export type SavedSearchesMarkAllSeenErrors = {
8416
+ /**
8417
+ * Access Denied
8418
+ */
8419
+ 403: AccessDeniedResponse;
8420
+ };
8421
+ export type SavedSearchesMarkAllSeenError = SavedSearchesMarkAllSeenErrors[keyof SavedSearchesMarkAllSeenErrors];
8422
+ export type SavedSearchesMarkAllSeenResponses = {
8423
+ /**
8424
+ * Success
8425
+ */
8426
+ 204: void;
8427
+ };
8428
+ export type SavedSearchesMarkAllSeenResponse = SavedSearchesMarkAllSeenResponses[keyof SavedSearchesMarkAllSeenResponses];
8429
+ export type SavedSearchesBadgeData = {
8430
+ body?: never;
8431
+ path?: never;
8432
+ query?: never;
8433
+ url: '/saved_searches/badge.json';
8434
+ };
8435
+ export type SavedSearchesBadgeErrors = {
8436
+ /**
8437
+ * Access Denied
8438
+ */
8439
+ 403: AccessDeniedResponse;
8440
+ };
8441
+ export type SavedSearchesBadgeError = SavedSearchesBadgeErrors[keyof SavedSearchesBadgeErrors];
8442
+ export type SavedSearchesBadgeResponses = {
8443
+ /**
8444
+ * Success
8445
+ */
8446
+ 200: {
8447
+ /**
8448
+ * Null when nothing is cached.
8449
+ */
8450
+ count: number | null;
8451
+ /**
8452
+ * False when the cached count is stale or missing.
8453
+ */
8454
+ fresh: boolean;
8455
+ };
8456
+ };
8457
+ export type SavedSearchesBadgeResponse = SavedSearchesBadgeResponses[keyof SavedSearchesBadgeResponses];
8033
8458
  export type TagsIndexData = {
8034
8459
  body?: never;
8035
8460
  path?: never;
8036
8461
  query?: {
8037
8462
  /**
8038
- * The maximum number of results to return. Between 0 and 320.
8463
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
8039
8464
  */
8040
8465
  limit?: number;
8041
8466
  /**
8042
- * The page number of results to get. Between 1 and 750.
8467
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
8468
+ * See [Pagination](https://e621.wiki/pagination/).
8469
+ *
8043
8470
  */
8044
- page?: number;
8471
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
8045
8472
  /**
8046
8473
  * Search for a specific id. Multiple can be separated by commas, up to 320.
8047
8474
  */
@@ -8241,13 +8668,15 @@ export type TagTypeVersionsIndexData = {
8241
8668
  path?: never;
8242
8669
  query?: {
8243
8670
  /**
8244
- * The maximum number of results to return. Between 0 and 320.
8671
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
8245
8672
  */
8246
8673
  limit?: number;
8247
8674
  /**
8248
- * The page number of results to get. Between 1 and 750.
8675
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
8676
+ * See [Pagination](https://e621.wiki/pagination/).
8677
+ *
8249
8678
  */
8250
- page?: number;
8679
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
8251
8680
  /**
8252
8681
  * Search for a specific id. Multiple can be separated by commas, up to 320.
8253
8682
  */
@@ -8270,18 +8699,20 @@ export type TagAliasesIndexData = {
8270
8699
  path?: never;
8271
8700
  query?: {
8272
8701
  /**
8273
- * The maximum number of results to return. Between 0 and 320.
8702
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
8274
8703
  */
8275
8704
  limit?: number;
8276
8705
  /**
8277
- * The page number of results to get. Between 1 and 750.
8706
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
8707
+ * See [Pagination](https://e621.wiki/pagination/).
8708
+ *
8278
8709
  */
8279
- page?: number;
8710
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
8280
8711
  /**
8281
8712
  * Search for a specific id. Multiple can be separated by commas, up to 320.
8282
8713
  */
8283
8714
  'search[id]'?: string | number;
8284
- 'search[order]'?: 'id_asc' | 'id_desc' | 'created_at' | 'updated_at' | 'name' | 'tag_count';
8715
+ 'search[order]'?: 'id_asc' | 'id_desc' | 'created_at' | 'updated_at' | 'name' | 'tag_count' | 'score_desc' | 'score_asc';
8285
8716
  'search[name_matches]'?: string;
8286
8717
  'search[antecedent_name]'?: string;
8287
8718
  'search[consequent_name]'?: string;
@@ -8495,18 +8926,20 @@ export type TagImplicationsIndexData = {
8495
8926
  path?: never;
8496
8927
  query?: {
8497
8928
  /**
8498
- * The maximum number of results to return. Between 0 and 320.
8929
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
8499
8930
  */
8500
8931
  limit?: number;
8501
8932
  /**
8502
- * The page number of results to get. Between 1 and 750.
8933
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
8934
+ * See [Pagination](https://e621.wiki/pagination/).
8935
+ *
8503
8936
  */
8504
- page?: number;
8937
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
8505
8938
  /**
8506
8939
  * Search for a specific id. Multiple can be separated by commas, up to 320.
8507
8940
  */
8508
8941
  'search[id]'?: string | number;
8509
- 'search[order]'?: 'id_asc' | 'id_desc' | 'created_at' | 'updated_at' | 'name' | 'tag_count';
8942
+ 'search[order]'?: 'id_asc' | 'id_desc' | 'created_at' | 'updated_at' | 'name' | 'tag_count' | 'score_desc' | 'score_asc';
8510
8943
  'search[name_matches]'?: string;
8511
8944
  'search[antecedent_name]'?: string;
8512
8945
  'search[consequent_name]'?: string;
@@ -8715,6 +9148,97 @@ export type TagImplicationRequestsCreateErrors = {
8715
9148
  406: unknown;
8716
9149
  };
8717
9150
  export type TagImplicationRequestsCreateError = TagImplicationRequestsCreateErrors[keyof TagImplicationRequestsCreateErrors];
9151
+ export type TagSubscriptionsIndexData = {
9152
+ body?: never;
9153
+ path?: never;
9154
+ query?: never;
9155
+ url: '/tag_subscriptions.json';
9156
+ };
9157
+ export type TagSubscriptionsIndexErrors = {
9158
+ /**
9159
+ * Access Denied
9160
+ */
9161
+ 403: AccessDeniedResponse;
9162
+ };
9163
+ export type TagSubscriptionsIndexError = TagSubscriptionsIndexErrors[keyof TagSubscriptionsIndexErrors];
9164
+ export type TagSubscriptionsIndexResponses = {
9165
+ /**
9166
+ * Success
9167
+ */
9168
+ 200: Array<TagSubscription>;
9169
+ };
9170
+ export type TagSubscriptionsIndexResponse = TagSubscriptionsIndexResponses[keyof TagSubscriptionsIndexResponses];
9171
+ export type TagSubscriptionsCreateData = {
9172
+ body?: {
9173
+ /**
9174
+ * A single tag. Ignored if `tag_names` is present.
9175
+ */
9176
+ tag_name?: string;
9177
+ /**
9178
+ * Space separated list of tags.
9179
+ */
9180
+ tag_names?: string;
9181
+ };
9182
+ path?: never;
9183
+ query?: never;
9184
+ url: '/tag_subscriptions.json';
9185
+ };
9186
+ export type TagSubscriptionsCreateErrors = {
9187
+ /**
9188
+ * Access Denied
9189
+ */
9190
+ 403: AccessDeniedResponse;
9191
+ /**
9192
+ * Error
9193
+ */
9194
+ 422: MessageErrorResponse;
9195
+ };
9196
+ export type TagSubscriptionsCreateError = TagSubscriptionsCreateErrors[keyof TagSubscriptionsCreateErrors];
9197
+ export type TagSubscriptionsCreateResponses = {
9198
+ /**
9199
+ * Success
9200
+ */
9201
+ 200: {
9202
+ added: Array<TagSubscription>;
9203
+ skipped: Array<{
9204
+ name: string;
9205
+ /**
9206
+ * One of `does not exist`, `already subscribed`, `over the limit of <limit>`, or `too many tags in one request`.
9207
+ */
9208
+ reason: string;
9209
+ }>;
9210
+ };
9211
+ };
9212
+ export type TagSubscriptionsCreateResponse = TagSubscriptionsCreateResponses[keyof TagSubscriptionsCreateResponses];
9213
+ export type TagSubscriptionsDestroyData = {
9214
+ body?: never;
9215
+ path: {
9216
+ /**
9217
+ * The ID of the item.
9218
+ */
9219
+ id: number;
9220
+ };
9221
+ query?: never;
9222
+ url: '/tag_subscriptions/{id}.json';
9223
+ };
9224
+ export type TagSubscriptionsDestroyErrors = {
9225
+ /**
9226
+ * Access Denied
9227
+ */
9228
+ 403: AccessDeniedResponse;
9229
+ /**
9230
+ * Not Found
9231
+ */
9232
+ 404: NotFoundResponse;
9233
+ };
9234
+ export type TagSubscriptionsDestroyError = TagSubscriptionsDestroyErrors[keyof TagSubscriptionsDestroyErrors];
9235
+ export type TagSubscriptionsDestroyResponses = {
9236
+ /**
9237
+ * Success
9238
+ */
9239
+ 204: void;
9240
+ };
9241
+ export type TagSubscriptionsDestroyResponse = TagSubscriptionsDestroyResponses[keyof TagSubscriptionsDestroyResponses];
8718
9242
  export type RelatedTagsBulkData = {
8719
9243
  body?: {
8720
9244
  query?: string;
@@ -8744,13 +9268,15 @@ export type SearchTrendsIndexData = {
8744
9268
  query?: {
8745
9269
  day?: string;
8746
9270
  /**
8747
- * The maximum number of results to return. Between 0 and 320.
9271
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
8748
9272
  */
8749
9273
  limit?: number;
8750
9274
  /**
8751
- * The page number of results to get. Between 1 and 750.
9275
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
9276
+ * See [Pagination](https://e621.wiki/pagination/).
9277
+ *
8752
9278
  */
8753
- page?: number;
9279
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
8754
9280
  };
8755
9281
  url: '/search_trends.json';
8756
9282
  };
@@ -8880,13 +9406,15 @@ export type SearchTrendBlacklistsIndexData = {
8880
9406
  path?: never;
8881
9407
  query?: {
8882
9408
  /**
8883
- * The maximum number of results to return. Between 0 and 320.
9409
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
8884
9410
  */
8885
9411
  limit?: number;
8886
9412
  /**
8887
- * The page number of results to get. Between 1 and 750.
9413
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
9414
+ * See [Pagination](https://e621.wiki/pagination/).
9415
+ *
8888
9416
  */
8889
- page?: number;
9417
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
8890
9418
  /**
8891
9419
  * The order of the results.
8892
9420
  */
@@ -9007,13 +9535,15 @@ export type SearchTrendHourliesIndexData = {
9007
9535
  path?: never;
9008
9536
  query?: {
9009
9537
  /**
9010
- * The maximum number of results to return. Between 0 and 320.
9538
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
9011
9539
  */
9012
9540
  limit?: number;
9013
9541
  /**
9014
- * The page number of results to get. Between 1 and 750.
9542
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
9543
+ * See [Pagination](https://e621.wiki/pagination/).
9544
+ *
9015
9545
  */
9016
- page?: number;
9546
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
9017
9547
  'search[name_matches]'?: string;
9018
9548
  hour?: string;
9019
9549
  };
@@ -9151,13 +9681,15 @@ export type StaffNotesIndexData = {
9151
9681
  path?: never;
9152
9682
  query?: {
9153
9683
  /**
9154
- * The maximum number of results to return. Between 0 and 320.
9684
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
9155
9685
  */
9156
9686
  limit?: number;
9157
9687
  /**
9158
- * The page number of results to get. Between 1 and 750.
9688
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
9689
+ * See [Pagination](https://e621.wiki/pagination/).
9690
+ *
9159
9691
  */
9160
- page?: number;
9692
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
9161
9693
  /**
9162
9694
  * Search for a specific id. Multiple can be separated by commas, up to 320.
9163
9695
  */
@@ -9346,13 +9878,15 @@ export type TakedownsIndexData = {
9346
9878
  path?: never;
9347
9879
  query?: {
9348
9880
  /**
9349
- * The maximum number of results to return. Between 0 and 320.
9881
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
9350
9882
  */
9351
9883
  limit?: number;
9352
9884
  /**
9353
- * The page number of results to get. Between 1 and 750.
9885
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
9886
+ * See [Pagination](https://e621.wiki/pagination/).
9887
+ *
9354
9888
  */
9355
- page?: number;
9889
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
9356
9890
  /**
9357
9891
  * Search for a specific id. Multiple can be separated by commas, up to 320.
9358
9892
  */
@@ -9604,6 +10138,9 @@ export type TakedownsAddByIdsResponses = {
9604
10138
  export type TakedownsAddByIdsResponse = TakedownsAddByIdsResponses[keyof TakedownsAddByIdsResponses];
9605
10139
  export type TakedownsAddByTagsData = {
9606
10140
  body?: {
10141
+ /**
10142
+ * See [Search Syntax](https://e621.wiki/searching/).
10143
+ */
9607
10144
  post_tags: string;
9608
10145
  };
9609
10146
  path: {
@@ -9638,6 +10175,9 @@ export type TakedownsAddByTagsResponses = {
9638
10175
  export type TakedownsAddByTagsResponse = TakedownsAddByTagsResponses[keyof TakedownsAddByTagsResponses];
9639
10176
  export type TakedownsCountMatchingPostsData = {
9640
10177
  body?: {
10178
+ /**
10179
+ * See [Search Syntax](https://e621.wiki/searching/).
10180
+ */
9641
10181
  post_tags: string;
9642
10182
  };
9643
10183
  path: {
@@ -9700,18 +10240,51 @@ export type TakedownsRemoveByIdsResponses = {
9700
10240
  204: void;
9701
10241
  };
9702
10242
  export type TakedownsRemoveByIdsResponse = TakedownsRemoveByIdsResponses[keyof TakedownsRemoveByIdsResponses];
10243
+ export type TakedownsClearPostsData = {
10244
+ body?: never;
10245
+ path: {
10246
+ /**
10247
+ * The ID of the item.
10248
+ */
10249
+ id: number;
10250
+ };
10251
+ query?: never;
10252
+ url: '/takedowns/{id}/clear_posts.json';
10253
+ };
10254
+ export type TakedownsClearPostsErrors = {
10255
+ /**
10256
+ * Access Denied
10257
+ */
10258
+ 403: AccessDeniedResponse;
10259
+ /**
10260
+ * Not Found
10261
+ */
10262
+ 404: NotFoundResponse;
10263
+ };
10264
+ export type TakedownsClearPostsError = TakedownsClearPostsErrors[keyof TakedownsClearPostsErrors];
10265
+ export type TakedownsClearPostsResponses = {
10266
+ /**
10267
+ * Success
10268
+ */
10269
+ 200: {
10270
+ removed_count: number;
10271
+ };
10272
+ };
10273
+ export type TakedownsClearPostsResponse = TakedownsClearPostsResponses[keyof TakedownsClearPostsResponses];
9703
10274
  export type TicketsIndexData = {
9704
10275
  body?: never;
9705
10276
  path?: never;
9706
10277
  query?: {
9707
10278
  /**
9708
- * The maximum number of results to return. Between 0 and 320.
10279
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
9709
10280
  */
9710
10281
  limit?: number;
9711
10282
  /**
9712
- * The page number of results to get. Between 1 and 750.
10283
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
10284
+ * See [Pagination](https://e621.wiki/pagination/).
10285
+ *
9713
10286
  */
9714
- page?: number;
10287
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
9715
10288
  /**
9716
10289
  * Search for a specific id. Multiple can be separated by commas, up to 320.
9717
10290
  */
@@ -9896,13 +10469,15 @@ export type UploadKarmaEventsIndexData = {
9896
10469
  path?: never;
9897
10470
  query?: {
9898
10471
  /**
9899
- * The maximum number of results to return. Between 0 and 320.
10472
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
9900
10473
  */
9901
10474
  limit?: number;
9902
10475
  /**
9903
- * The page number of results to get. Between 1 and 750.
10476
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
10477
+ * See [Pagination](https://e621.wiki/pagination/).
10478
+ *
9904
10479
  */
9905
- page?: number;
10480
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
9906
10481
  /**
9907
10482
  * Search for a specific id. Multiple can be separated by commas, up to 320.
9908
10483
  */
@@ -9944,13 +10519,15 @@ export type UploadsIndexData = {
9944
10519
  path?: never;
9945
10520
  query?: {
9946
10521
  /**
9947
- * The maximum number of results to return. Between 0 and 320.
10522
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
9948
10523
  */
9949
10524
  limit?: number;
9950
10525
  /**
9951
- * The page number of results to get. Between 1 and 750.
10526
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
10527
+ * See [Pagination](https://e621.wiki/pagination/).
10528
+ *
9952
10529
  */
9953
- page?: number;
10530
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
9954
10531
  /**
9955
10532
  * Search for a specific id. Multiple can be separated by commas, up to 320.
9956
10533
  */
@@ -9967,12 +10544,12 @@ export type UploadsIndexData = {
9967
10544
  'search[parent_id]'?: number;
9968
10545
  'search[post_id]'?: number;
9969
10546
  'search[has_post]'?: boolean;
9970
- 'search[post_tags_match]'?: string;
9971
10547
  /**
9972
- * Note: The "error" status will be proceeded by an error, ex: "error: RuntimeError - No file or source URL provided"
9973
- *
10548
+ * See [Search Syntax](https://e621.wiki/searching/).
9974
10549
  */
9975
- 'search[status]'?: 'completed' | 'processing' | 'pending' | 'error';
10550
+ 'search[post_tags_match]'?: string;
10551
+ 'search[status]'?: 'completed' | 'failed' | 'processing' | 'queued' | 'pending';
10552
+ 'search[error_message]'?: string;
9976
10553
  'search[backtrace]'?: string;
9977
10554
  'search[tag_string]'?: string;
9978
10555
  };
@@ -10023,9 +10600,24 @@ export type UploadsCreateErrors = {
10023
10600
  */
10024
10601
  403: AccessDeniedResponse;
10025
10602
  /**
10026
- * Error
10603
+ * The upload was invalid, failed, or is a duplicate
10027
10604
  */
10028
- 412: MessageErrorResponse;
10605
+ 412: {
10606
+ success: false;
10607
+ reason: 'invalid';
10608
+ message: string;
10609
+ } | {
10610
+ success: false;
10611
+ reason: 'duplicate';
10612
+ /**
10613
+ * The duplicate post.
10614
+ */
10615
+ location: string;
10616
+ /**
10617
+ * The duplicate post's id.
10618
+ */
10619
+ post_id: number;
10620
+ };
10029
10621
  };
10030
10622
  export type UploadsCreateError = UploadsCreateErrors[keyof UploadsCreateErrors];
10031
10623
  export type UploadsCreateResponses = {
@@ -10034,8 +10626,15 @@ export type UploadsCreateResponses = {
10034
10626
  */
10035
10627
  200: {
10036
10628
  success: true;
10629
+ /**
10630
+ * The post, or the upload if it is still being processed.
10631
+ */
10037
10632
  location: string;
10038
- post_id: number;
10633
+ /**
10634
+ * Not present if the upload is still being processed.
10635
+ */
10636
+ post_id?: number;
10637
+ upload_id: number;
10039
10638
  };
10040
10639
  };
10041
10640
  export type UploadsCreateResponse = UploadsCreateResponses[keyof UploadsCreateResponses];
@@ -10073,13 +10672,15 @@ export type UploadWhitelistsIndexData = {
10073
10672
  path?: never;
10074
10673
  query?: {
10075
10674
  /**
10076
- * The maximum number of results to return. Between 0 and 320.
10675
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
10077
10676
  */
10078
10677
  limit?: number;
10079
10678
  /**
10080
- * The page number of results to get. Between 1 and 750.
10679
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
10680
+ * See [Pagination](https://e621.wiki/pagination/).
10681
+ *
10081
10682
  */
10082
- page?: number;
10683
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
10083
10684
  /**
10084
10685
  * Search for a specific id. Multiple can be separated by commas, up to 320.
10085
10686
  */
@@ -10244,13 +10845,15 @@ export type UsersIndexData = {
10244
10845
  path?: never;
10245
10846
  query?: {
10246
10847
  /**
10247
- * The maximum number of results to return. Between 0 and 320.
10848
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
10248
10849
  */
10249
10850
  limit?: number;
10250
10851
  /**
10251
- * The page number of results to get. Between 1 and 750.
10852
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
10853
+ * See [Pagination](https://e621.wiki/pagination/).
10854
+ *
10252
10855
  */
10253
- page?: number;
10856
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
10254
10857
  /**
10255
10858
  * Search for a specific id. Multiple can be separated by commas, up to 320.
10256
10859
  */
@@ -10703,13 +11306,15 @@ export type UserFeedbacksIndexData = {
10703
11306
  path?: never;
10704
11307
  query?: {
10705
11308
  /**
10706
- * The maximum number of results to return. Between 0 and 320.
11309
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
10707
11310
  */
10708
11311
  limit?: number;
10709
11312
  /**
10710
- * The page number of results to get. Between 1 and 750.
11313
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
11314
+ * See [Pagination](https://e621.wiki/pagination/).
11315
+ *
10711
11316
  */
10712
- page?: number;
11317
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
10713
11318
  /**
10714
11319
  * Search for a specific id. Multiple can be separated by commas, up to 320.
10715
11320
  */
@@ -10928,13 +11533,15 @@ export type UserNameChangeRequestsIndexData = {
10928
11533
  path?: never;
10929
11534
  query?: {
10930
11535
  /**
10931
- * The maximum number of results to return. Between 0 and 320.
11536
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
10932
11537
  */
10933
11538
  limit?: number;
10934
11539
  /**
10935
- * The page number of results to get. Between 1 and 750.
11540
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
11541
+ * See [Pagination](https://e621.wiki/pagination/).
11542
+ *
10936
11543
  */
10937
- page?: number;
11544
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
10938
11545
  /**
10939
11546
  * Search for a specific id. Multiple can be separated by commas, up to 320.
10940
11547
  */
@@ -11031,13 +11638,15 @@ export type WikiPagesIndexData = {
11031
11638
  path?: never;
11032
11639
  query?: {
11033
11640
  /**
11034
- * The maximum number of results to return. Between 0 and 320.
11641
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
11035
11642
  */
11036
11643
  limit?: number;
11037
11644
  /**
11038
- * The page number of results to get. Between 1 and 750.
11645
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
11646
+ * See [Pagination](https://e621.wiki/pagination/).
11647
+ *
11039
11648
  */
11040
- page?: number;
11649
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
11041
11650
  /**
11042
11651
  * Search for a specific id. Multiple can be separated by commas, up to 320.
11043
11652
  */
@@ -11274,13 +11883,15 @@ export type WikiPageVersionsIndexData = {
11274
11883
  path?: never;
11275
11884
  query?: {
11276
11885
  /**
11277
- * The maximum number of results to return. Between 0 and 320.
11886
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
11278
11887
  */
11279
11888
  limit?: number;
11280
11889
  /**
11281
- * The page number of results to get. Between 1 and 750.
11890
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
11891
+ * See [Pagination](https://e621.wiki/pagination/).
11892
+ *
11282
11893
  */
11283
- page?: number;
11894
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
11284
11895
  /**
11285
11896
  * Search for a specific id. Multiple can be separated by commas, up to 320.
11286
11897
  */
@@ -11407,12 +12018,6 @@ export type StaffUsersUpdateErrors = {
11407
12018
  };
11408
12019
  };
11409
12020
  export type StaffUsersUpdateError = StaffUsersUpdateErrors[keyof StaffUsersUpdateErrors];
11410
- export type StaffUsersUpdateResponses = {
11411
- /**
11412
- * Success
11413
- */
11414
- 200: unknown;
11415
- };
11416
12021
  export type StaffUsersAnonymizeConfirmData = {
11417
12022
  body?: never;
11418
12023
  path: {
@@ -11483,13 +12088,15 @@ export type StaffDmailsIndexData = {
11483
12088
  };
11484
12089
  query?: {
11485
12090
  /**
11486
- * The maximum number of results to return. Between 0 and 320.
12091
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
11487
12092
  */
11488
12093
  limit?: number;
11489
12094
  /**
11490
- * The page number of results to get. Between 1 and 750.
12095
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
12096
+ * See [Pagination](https://e621.wiki/pagination/).
12097
+ *
11491
12098
  */
11492
- page?: number;
12099
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
11493
12100
  };
11494
12101
  url: '/staff/users/{user_id}/dmails.json';
11495
12102
  };
@@ -11549,13 +12156,15 @@ export type StaffAutomodDmailsIndexData = {
11549
12156
  path?: never;
11550
12157
  query?: {
11551
12158
  /**
11552
- * The maximum number of results to return. Between 0 and 320.
12159
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
11553
12160
  */
11554
12161
  limit?: number;
11555
12162
  /**
11556
- * The page number of results to get. Between 1 and 750.
12163
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
12164
+ * See [Pagination](https://e621.wiki/pagination/).
12165
+ *
11557
12166
  */
11558
- page?: number;
12167
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
11559
12168
  /**
11560
12169
  * Search for a specific id. Multiple can be separated by commas, up to 320.
11561
12170
  */
@@ -11671,13 +12280,15 @@ export type StaffExceptionsIndexData = {
11671
12280
  path?: never;
11672
12281
  query?: {
11673
12282
  /**
11674
- * The maximum number of results to return. Between 0 and 320.
12283
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
11675
12284
  */
11676
12285
  limit?: number;
11677
12286
  /**
11678
- * The page number of results to get. Between 1 and 750.
12287
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
12288
+ * See [Pagination](https://e621.wiki/pagination/).
12289
+ *
11679
12290
  */
11680
- page?: number;
12291
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
11681
12292
  /**
11682
12293
  * The order of the results.
11683
12294
  */
@@ -11784,6 +12395,12 @@ export type StaffPostPostsDeleteErrors = {
11784
12395
  * Not Found
11785
12396
  */
11786
12397
  404: NotFoundResponse;
12398
+ /**
12399
+ * The post is already deleted
12400
+ */
12401
+ 409: {
12402
+ reason: string;
12403
+ };
11787
12404
  /**
11788
12405
  * Invalid Input Data
11789
12406
  */
@@ -11792,6 +12409,13 @@ export type StaffPostPostsDeleteErrors = {
11792
12409
  };
11793
12410
  };
11794
12411
  export type StaffPostPostsDeleteError = StaffPostPostsDeleteErrors[keyof StaffPostPostsDeleteErrors];
12412
+ export type StaffPostPostsDeleteResponses = {
12413
+ /**
12414
+ * Success
12415
+ */
12416
+ 201: RawPost;
12417
+ };
12418
+ export type StaffPostPostsDeleteResponse = StaffPostPostsDeleteResponses[keyof StaffPostPostsDeleteResponses];
11795
12419
  export type StaffPostPostsUndeleteData = {
11796
12420
  body?: never;
11797
12421
  path: {
@@ -11824,9 +12448,7 @@ export type StaffPostPostsUndeleteResponses = {
11824
12448
  /**
11825
12449
  * Success
11826
12450
  */
11827
- 201: {
11828
- post: Post;
11829
- };
12451
+ 201: RawPost;
11830
12452
  };
11831
12453
  export type StaffPostPostsUndeleteResponse = StaffPostPostsUndeleteResponses[keyof StaffPostPostsUndeleteResponses];
11832
12454
  export type StaffPostPostsRegenerateThumbnailsData = {
@@ -11935,9 +12557,7 @@ export type StaffPostPostsExpungeResponses = {
11935
12557
  /**
11936
12558
  * Success
11937
12559
  */
11938
- 201: {
11939
- post: Post;
11940
- };
12560
+ 201: RawPost;
11941
12561
  };
11942
12562
  export type StaffPostPostsExpungeResponse = StaffPostPostsExpungeResponses[keyof StaffPostPostsExpungeResponses];
11943
12563
  export type StaffPostPostsMoveFavoritesData = {
@@ -12063,6 +12683,10 @@ export type StaffPostPostsReownerErrors = {
12063
12683
  * Not Found
12064
12684
  */
12065
12685
  404: NotFoundResponse;
12686
+ /**
12687
+ * The new owner could not be found
12688
+ */
12689
+ 422: MessageErrorResponse;
12066
12690
  };
12067
12691
  export type StaffPostPostsReownerError = StaffPostPostsReownerErrors[keyof StaffPostPostsReownerErrors];
12068
12692
  export type StaffPostPostsReownerResponses = {
@@ -12275,13 +12899,15 @@ export type StaffPostDisapprovalsIndexData = {
12275
12899
  path?: never;
12276
12900
  query?: {
12277
12901
  /**
12278
- * The maximum number of results to return. Between 0 and 320.
12902
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
12279
12903
  */
12280
12904
  limit?: number;
12281
12905
  /**
12282
- * The page number of results to get. Between 1 and 750.
12906
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
12907
+ * See [Pagination](https://e621.wiki/pagination/).
12908
+ *
12283
12909
  */
12284
- page?: number;
12910
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
12285
12911
  /**
12286
12912
  * Search for a specific id. Multiple can be separated by commas, up to 320.
12287
12913
  */
@@ -12291,6 +12917,9 @@ export type StaffPostDisapprovalsIndexData = {
12291
12917
  'search[creator_name]'?: string;
12292
12918
  'search[post_id]'?: number;
12293
12919
  'search[message]'?: string;
12920
+ /**
12921
+ * See [Search Syntax](https://e621.wiki/searching/).
12922
+ */
12294
12923
  'search[post_tags_match]'?: string;
12295
12924
  'search[reason]'?: string;
12296
12925
  'search[has_message]'?: boolean;
@@ -12339,13 +12968,15 @@ export type StaffFilesIndexData = {
12339
12968
  path?: never;
12340
12969
  query?: {
12341
12970
  /**
12342
- * The maximum number of results to return. Between 0 and 320.
12971
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
12343
12972
  */
12344
12973
  limit?: number;
12345
12974
  /**
12346
- * The page number of results to get. Between 1 and 750.
12975
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
12976
+ * See [Pagination](https://e621.wiki/pagination/).
12977
+ *
12347
12978
  */
12348
- page?: number;
12979
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
12349
12980
  /**
12350
12981
  * Search for a specific id. Multiple can be separated by commas, up to 320.
12351
12982
  */
@@ -12503,13 +13134,15 @@ export type StaffWikisIndexData = {
12503
13134
  path?: never;
12504
13135
  query?: {
12505
13136
  /**
12506
- * The maximum number of results to return. Between 0 and 320.
13137
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
12507
13138
  */
12508
13139
  limit?: number;
12509
13140
  /**
12510
- * The page number of results to get. Between 1 and 750.
13141
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
13142
+ * See [Pagination](https://e621.wiki/pagination/).
13143
+ *
12511
13144
  */
12512
- page?: number;
13145
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
12513
13146
  /**
12514
13147
  * Search for a specific id. Multiple can be separated by commas, up to 320.
12515
13148
  */
@@ -12849,13 +13482,15 @@ export type StaffWikiVersionsIndexData = {
12849
13482
  path?: never;
12850
13483
  query?: {
12851
13484
  /**
12852
- * The maximum number of results to return. Between 0 and 320.
13485
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
12853
13486
  */
12854
13487
  limit?: number;
12855
13488
  /**
12856
- * The page number of results to get. Between 1 and 750.
13489
+ * A page number between 1 and 750, or `b<id>`/`a<id>` for the results before or after an id.
13490
+ * See [Pagination](https://e621.wiki/pagination/).
13491
+ *
12857
13492
  */
12858
- page?: number;
13493
+ page?: number | `${number}` | `${'a' | 'b'}${number}`;
12859
13494
  /**
12860
13495
  * Search for a specific id. Multiple can be separated by commas, up to 320.
12861
13496
  */
@@ -12917,7 +13552,7 @@ export type StaffVoteTrendsIndexData = {
12917
13552
  path?: never;
12918
13553
  query: {
12919
13554
  /**
12920
- * The maximum number of results to return. Between 0 and 320.
13555
+ * The maximum number of results to return. Between 0 and 320. See [Pagination](https://e621.wiki/pagination/).
12921
13556
  */
12922
13557
  limit?: number;
12923
13558
  /**