e621 3.3.0 → 3.4.1
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.
- package/dist/browser/e621.js +489 -220
- package/dist/browser/e621.js.map +4 -4
- package/dist/lib/generated/schemas.d.ts +72 -43
- package/dist/lib/generated/schemas.js +90 -60
- package/dist/lib/generated/sdk.d.ts +28 -5
- package/dist/lib/generated/sdk.js +216 -96
- package/dist/lib/generated/types.d.ts +511 -366
- package/dist/lib/models/Blip.d.ts +2 -3
- package/dist/lib/models/Blip.js +2 -2
- package/dist/lib/models/Comment.d.ts +2 -2
- package/dist/lib/models/Comment.js +2 -2
- package/dist/lib/models/ForumPost.d.ts +4 -5
- package/dist/lib/models/ForumPost.js +3 -3
- package/dist/lib/models/PostFlag.d.ts +2 -1
- package/dist/lib/models/PostFlag.js +1 -1
- package/dist/lib/models/UploadKarmaEvent.d.ts +9 -0
- package/dist/lib/models/UploadKarmaEvent.js +6 -0
- package/dist/lib/models/index.d.ts +1 -0
- package/dist/lib/models/index.js +2 -1
- package/dist/lib/modules/Appeals.js +2 -2
- package/dist/lib/modules/Artists.js +3 -3
- package/dist/lib/modules/AvoidPostings.d.ts +16 -2
- package/dist/lib/modules/AvoidPostings.js +22 -3
- package/dist/lib/modules/Blips.d.ts +1 -1
- package/dist/lib/modules/Blips.js +4 -4
- package/dist/lib/modules/BulkUpdateRequests.js +3 -3
- package/dist/lib/modules/Comments.d.ts +3 -3
- package/dist/lib/modules/Comments.js +4 -4
- package/dist/lib/modules/EmailBlacklists.js +2 -2
- package/dist/lib/modules/ForumPostVotes.d.ts +1 -1
- package/dist/lib/modules/ForumPostVotes.js +2 -2
- package/dist/lib/modules/ForumPosts.d.ts +3 -3
- package/dist/lib/modules/ForumPosts.js +4 -4
- package/dist/lib/modules/ForumTopics.d.ts +13 -2
- package/dist/lib/modules/ForumTopics.js +19 -3
- package/dist/lib/modules/HelpPages.js +4 -4
- package/dist/lib/modules/IpBans.js +2 -2
- package/dist/lib/modules/NewsUpdates.js +3 -3
- package/dist/lib/modules/Notes.js +3 -3
- package/dist/lib/modules/Pools.js +3 -3
- package/dist/lib/modules/PostDisapprovals.js +2 -2
- package/dist/lib/modules/PostFlags.d.ts +6 -3
- package/dist/lib/modules/PostFlags.js +3 -3
- package/dist/lib/modules/PostSets.js +6 -6
- package/dist/lib/modules/Posts.js +5 -2
- package/dist/lib/modules/SearchTrendBlacklists.js +4 -4
- package/dist/lib/modules/SearchTrends.js +3 -3
- package/dist/lib/modules/StaffNotes.js +3 -3
- package/dist/lib/modules/StaffUsers.js +4 -4
- package/dist/lib/modules/TagAliases.d.ts +11 -0
- package/dist/lib/modules/TagAliases.js +26 -4
- package/dist/lib/modules/TagImplications.d.ts +11 -0
- package/dist/lib/modules/TagImplications.js +26 -4
- package/dist/lib/modules/Tags.js +2 -2
- package/dist/lib/modules/Takedowns.js +2 -2
- package/dist/lib/modules/Tickets.js +2 -2
- package/dist/lib/modules/UploadKarmaEvents.d.ts +18 -0
- package/dist/lib/modules/UploadKarmaEvents.js +28 -0
- package/dist/lib/modules/UploadWhitelists.js +3 -3
- package/dist/lib/modules/UserFeedbacks.js +3 -3
- package/dist/lib/modules/UserNameChangeRequests.js +2 -2
- package/dist/lib/modules/Users.d.ts +17 -2
- package/dist/lib/modules/Users.js +26 -4
- package/dist/lib/modules/WikiPages.js +3 -3
- package/dist/lib/modules/index.d.ts +3 -0
- package/dist/lib/modules/index.js +3 -1
- package/dist/lib/util.d.ts +4 -2
- package/dist/lib/util.js +3 -2
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/package.json +1 -1
package/dist/browser/e621.js
CHANGED
|
@@ -787,7 +787,7 @@ var createClient = (config = {}) => {
|
|
|
787
787
|
};
|
|
788
788
|
|
|
789
789
|
// dist/lib/version.js
|
|
790
|
-
var VERSION = "3.
|
|
790
|
+
var VERSION = "3.4.1";
|
|
791
791
|
|
|
792
792
|
// dist/lib/client.js
|
|
793
793
|
function createE621Client(options) {
|
|
@@ -1139,6 +1139,7 @@ __export(sdk_exports, {
|
|
|
1139
1139
|
tagAliases_destroy: () => tagAliases_destroy,
|
|
1140
1140
|
tagAliases_index: () => tagAliases_index,
|
|
1141
1141
|
tagAliases_show: () => tagAliases_show,
|
|
1142
|
+
tagAliases_undo: () => tagAliases_undo,
|
|
1142
1143
|
tagAliases_update: () => tagAliases_update,
|
|
1143
1144
|
tagCorrections_create: () => tagCorrections_create,
|
|
1144
1145
|
tagCorrections_show: () => tagCorrections_show,
|
|
@@ -1147,6 +1148,7 @@ __export(sdk_exports, {
|
|
|
1147
1148
|
tagImplications_destroy: () => tagImplications_destroy,
|
|
1148
1149
|
tagImplications_index: () => tagImplications_index,
|
|
1149
1150
|
tagImplications_show: () => tagImplications_show,
|
|
1151
|
+
tagImplications_undo: () => tagImplications_undo,
|
|
1150
1152
|
tagImplications_update: () => tagImplications_update,
|
|
1151
1153
|
tagTypeVersions_index: () => tagTypeVersions_index,
|
|
1152
1154
|
tags_destroy: () => tags_destroy,
|
|
@@ -1168,6 +1170,7 @@ __export(sdk_exports, {
|
|
|
1168
1170
|
tickets_show: () => tickets_show,
|
|
1169
1171
|
tickets_unclaim: () => tickets_unclaim,
|
|
1170
1172
|
tickets_update: () => tickets_update,
|
|
1173
|
+
uploadKarmaEvents_index: () => uploadKarmaEvents_index,
|
|
1171
1174
|
uploadWhitelists_create: () => uploadWhitelists_create,
|
|
1172
1175
|
uploadWhitelists_destroy: () => uploadWhitelists_destroy,
|
|
1173
1176
|
uploadWhitelists_index: () => uploadWhitelists_index,
|
|
@@ -1201,6 +1204,7 @@ __export(sdk_exports, {
|
|
|
1201
1204
|
users_toggleUploads: () => users_toggleUploads,
|
|
1202
1205
|
users_update: () => users_update,
|
|
1203
1206
|
users_uploadLimit: () => users_uploadLimit,
|
|
1207
|
+
users_uploadTags: () => users_uploadTags,
|
|
1204
1208
|
wikiPageVersions_index: () => wikiPageVersions_index,
|
|
1205
1209
|
wikiPageVersions_show: () => wikiPageVersions_show,
|
|
1206
1210
|
wikiPages_create: () => wikiPages_create,
|
|
@@ -1471,11 +1475,12 @@ var appeals_show = (options) => (options.client ?? client).get({
|
|
|
1471
1475
|
...options
|
|
1472
1476
|
});
|
|
1473
1477
|
var appeals_update = (options) => (options.client ?? client).patch({
|
|
1478
|
+
...urlSearchParamsBodySerializer,
|
|
1474
1479
|
security: [{ scheme: "basic", type: "http" }],
|
|
1475
1480
|
url: "/appeals/{id}.json",
|
|
1476
1481
|
...options,
|
|
1477
1482
|
headers: {
|
|
1478
|
-
"Content-Type": "application/
|
|
1483
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1479
1484
|
...options.headers
|
|
1480
1485
|
}
|
|
1481
1486
|
});
|
|
@@ -1491,11 +1496,12 @@ var appeals_unclaim = (options) => (options.client ?? client).post({
|
|
|
1491
1496
|
});
|
|
1492
1497
|
var artists_index = (options) => (options?.client ?? client).get({ url: "/artists.json", ...options });
|
|
1493
1498
|
var artists_create = (options) => (options?.client ?? client).post({
|
|
1499
|
+
...urlSearchParamsBodySerializer,
|
|
1494
1500
|
security: [{ scheme: "basic", type: "http" }],
|
|
1495
1501
|
url: "/artists.json",
|
|
1496
1502
|
...options,
|
|
1497
1503
|
headers: {
|
|
1498
|
-
"Content-Type": "application/
|
|
1504
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1499
1505
|
...options?.headers
|
|
1500
1506
|
}
|
|
1501
1507
|
});
|
|
@@ -1506,11 +1512,12 @@ var artists_destroy = (options) => (options.client ?? client).delete({
|
|
|
1506
1512
|
});
|
|
1507
1513
|
var artists_show = (options) => (options.client ?? client).get({ url: "/artists/{idOrName}.json", ...options });
|
|
1508
1514
|
var artists_update = (options) => (options.client ?? client).patch({
|
|
1515
|
+
...urlSearchParamsBodySerializer,
|
|
1509
1516
|
security: [{ scheme: "basic", type: "http" }],
|
|
1510
1517
|
url: "/artists/{idOrName}.json",
|
|
1511
1518
|
...options,
|
|
1512
1519
|
headers: {
|
|
1513
|
-
"Content-Type": "application/
|
|
1520
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1514
1521
|
...options.headers
|
|
1515
1522
|
}
|
|
1516
1523
|
});
|
|
@@ -1527,11 +1534,12 @@ var artistUrls_index = (options) => (options?.client ?? client).get({
|
|
|
1527
1534
|
});
|
|
1528
1535
|
var avoidPostings_index = (options) => (options?.client ?? client).get({ url: "/avoid_postings.json", ...options });
|
|
1529
1536
|
var avoidPostings_create = (options) => (options?.client ?? client).post({
|
|
1537
|
+
...urlSearchParamsBodySerializer,
|
|
1530
1538
|
security: [{ scheme: "basic", type: "http" }],
|
|
1531
1539
|
url: "/avoid_postings.json",
|
|
1532
1540
|
...options,
|
|
1533
1541
|
headers: {
|
|
1534
|
-
"Content-Type": "application/
|
|
1542
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1535
1543
|
...options?.headers
|
|
1536
1544
|
}
|
|
1537
1545
|
});
|
|
@@ -1542,11 +1550,12 @@ var avoidPostings_destroy = (options) => (options.client ?? client).delete({
|
|
|
1542
1550
|
});
|
|
1543
1551
|
var avoidPostings_show = (options) => (options.client ?? client).get({ url: "/avoid_postings/{idOrName}.json", ...options });
|
|
1544
1552
|
var avoidPostings_update = (options) => (options.client ?? client).patch({
|
|
1553
|
+
...urlSearchParamsBodySerializer,
|
|
1545
1554
|
security: [{ scheme: "basic", type: "http" }],
|
|
1546
1555
|
url: "/avoid_postings/{idOrName}.json",
|
|
1547
1556
|
...options,
|
|
1548
1557
|
headers: {
|
|
1549
|
-
"Content-Type": "application/
|
|
1558
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1550
1559
|
...options.headers
|
|
1551
1560
|
}
|
|
1552
1561
|
});
|
|
@@ -1565,11 +1574,12 @@ var bans_index = (options) => (options?.client ?? client).get({ url: "/bans.json
|
|
|
1565
1574
|
var bans_show = (options) => (options.client ?? client).get({ url: "/bans/{id}.json", ...options });
|
|
1566
1575
|
var blips_index = (options) => (options?.client ?? client).get({ url: "/blips.json", ...options });
|
|
1567
1576
|
var blips_create = (options) => (options?.client ?? client).post({
|
|
1577
|
+
...urlSearchParamsBodySerializer,
|
|
1568
1578
|
security: [{ scheme: "basic", type: "http" }],
|
|
1569
1579
|
url: "/blips.json",
|
|
1570
1580
|
...options,
|
|
1571
1581
|
headers: {
|
|
1572
|
-
"Content-Type": "application/
|
|
1582
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1573
1583
|
...options?.headers
|
|
1574
1584
|
}
|
|
1575
1585
|
});
|
|
@@ -1580,11 +1590,12 @@ var blips_destroy = (options) => (options.client ?? client).delete({
|
|
|
1580
1590
|
});
|
|
1581
1591
|
var blips_show = (options) => (options.client ?? client).get({ url: "/blips/{id}.json", ...options });
|
|
1582
1592
|
var blips_update = (options) => (options.client ?? client).patch({
|
|
1593
|
+
...urlSearchParamsBodySerializer,
|
|
1583
1594
|
security: [{ scheme: "basic", type: "http" }],
|
|
1584
1595
|
url: "/blips/{id}.json",
|
|
1585
1596
|
...options,
|
|
1586
1597
|
headers: {
|
|
1587
|
-
"Content-Type": "application/
|
|
1598
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1588
1599
|
...options.headers
|
|
1589
1600
|
}
|
|
1590
1601
|
});
|
|
@@ -1599,21 +1610,23 @@ var blips_undelete = (options) => (options.client ?? client).post({
|
|
|
1599
1610
|
...options
|
|
1600
1611
|
});
|
|
1601
1612
|
var blips_warning = (options) => (options.client ?? client).post({
|
|
1613
|
+
...urlSearchParamsBodySerializer,
|
|
1602
1614
|
security: [{ scheme: "basic", type: "http" }],
|
|
1603
1615
|
url: "/blips/{id}/warning.json",
|
|
1604
1616
|
...options,
|
|
1605
1617
|
headers: {
|
|
1606
|
-
"Content-Type": "application/
|
|
1618
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1607
1619
|
...options.headers
|
|
1608
1620
|
}
|
|
1609
1621
|
});
|
|
1610
1622
|
var bulkUpdateRequests_index = (options) => (options?.client ?? client).get({ url: "/bulk_update_requests.json", ...options });
|
|
1611
1623
|
var bulkUpdateRequests_create = (options) => (options?.client ?? client).post({
|
|
1624
|
+
...urlSearchParamsBodySerializer,
|
|
1612
1625
|
security: [{ scheme: "basic", type: "http" }],
|
|
1613
1626
|
url: "/bulk_update_requests.json",
|
|
1614
1627
|
...options,
|
|
1615
1628
|
headers: {
|
|
1616
|
-
"Content-Type": "application/
|
|
1629
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1617
1630
|
...options?.headers
|
|
1618
1631
|
}
|
|
1619
1632
|
});
|
|
@@ -1624,22 +1637,24 @@ var bulkUpdateRequests_destroy = (options) => (options.client ?? client).delete(
|
|
|
1624
1637
|
});
|
|
1625
1638
|
var bulkUpdateRequests_show = (options) => (options.client ?? client).get({ url: "/bulk_update_requests/{id}.json", ...options });
|
|
1626
1639
|
var bulkUpdateRequests_update = (options) => (options.client ?? client).patch({
|
|
1640
|
+
...urlSearchParamsBodySerializer,
|
|
1627
1641
|
security: [{ scheme: "basic", type: "http" }],
|
|
1628
1642
|
url: "/bulk_update_requests/{id}.json",
|
|
1629
1643
|
...options,
|
|
1630
1644
|
headers: {
|
|
1631
|
-
"Content-Type": "application/
|
|
1645
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1632
1646
|
...options.headers
|
|
1633
1647
|
}
|
|
1634
1648
|
});
|
|
1635
1649
|
var bulkUpdateRequests_approve = (options) => (options.client ?? client).post({ url: "/bulk_update_requests/{id}/approve.json", ...options });
|
|
1636
1650
|
var comments_index = (options) => (options?.client ?? client).get({ url: "/comments.json", ...options });
|
|
1637
1651
|
var comments_create = (options) => (options?.client ?? client).post({
|
|
1652
|
+
...urlSearchParamsBodySerializer,
|
|
1638
1653
|
security: [{ scheme: "basic", type: "http" }],
|
|
1639
1654
|
url: "/comments.json",
|
|
1640
1655
|
...options,
|
|
1641
1656
|
headers: {
|
|
1642
|
-
"Content-Type": "application/
|
|
1657
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1643
1658
|
...options?.headers
|
|
1644
1659
|
}
|
|
1645
1660
|
});
|
|
@@ -1650,15 +1665,15 @@ var comments_destroy = (options) => (options.client ?? client).delete({
|
|
|
1650
1665
|
});
|
|
1651
1666
|
var comments_show = (options) => (options.client ?? client).get({ url: "/comments/{id}.json", ...options });
|
|
1652
1667
|
var comments_update = (options) => (options.client ?? client).patch({
|
|
1668
|
+
...urlSearchParamsBodySerializer,
|
|
1653
1669
|
security: [{ scheme: "basic", type: "http" }],
|
|
1654
1670
|
url: "/comments/{id}.json",
|
|
1655
1671
|
...options,
|
|
1656
1672
|
headers: {
|
|
1657
|
-
"Content-Type": "application/
|
|
1673
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1658
1674
|
...options.headers
|
|
1659
1675
|
}
|
|
1660
1676
|
});
|
|
1661
|
-
var comments_forPost = (options) => (options.client ?? client).get({ url: "/comments/{id}/for_post.json", ...options });
|
|
1662
1677
|
var comments_hide = (options) => (options.client ?? client).post({
|
|
1663
1678
|
security: [{ scheme: "basic", type: "http" }],
|
|
1664
1679
|
url: "/comments/{id}/hide.json",
|
|
@@ -1670,11 +1685,12 @@ var comments_unhide = (options) => (options.client ?? client).post({
|
|
|
1670
1685
|
...options
|
|
1671
1686
|
});
|
|
1672
1687
|
var comments_warning = (options) => (options.client ?? client).post({
|
|
1688
|
+
...urlSearchParamsBodySerializer,
|
|
1673
1689
|
security: [{ scheme: "basic", type: "http" }],
|
|
1674
1690
|
url: "/comments/{id}/warning.json",
|
|
1675
1691
|
...options,
|
|
1676
1692
|
headers: {
|
|
1677
|
-
"Content-Type": "application/
|
|
1693
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1678
1694
|
...options.headers
|
|
1679
1695
|
}
|
|
1680
1696
|
});
|
|
@@ -1776,6 +1792,7 @@ var dmails_markAllAsRead = (options) => (options?.client ?? client).put({
|
|
|
1776
1792
|
...options
|
|
1777
1793
|
});
|
|
1778
1794
|
var dtextPreviews_create = (options) => (options?.client ?? client).post({
|
|
1795
|
+
...urlSearchParamsBodySerializer,
|
|
1779
1796
|
security: [{ scheme: "basic", type: "http" }, {
|
|
1780
1797
|
in: "query",
|
|
1781
1798
|
name: "authenticity_token",
|
|
@@ -1784,7 +1801,7 @@ var dtextPreviews_create = (options) => (options?.client ?? client).post({
|
|
|
1784
1801
|
url: "/dtext_preview.json",
|
|
1785
1802
|
...options,
|
|
1786
1803
|
headers: {
|
|
1787
|
-
"Content-Type": "application/
|
|
1804
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1788
1805
|
...options?.headers
|
|
1789
1806
|
}
|
|
1790
1807
|
});
|
|
@@ -1800,11 +1817,12 @@ var editHistories_show = (options) => (options.client ?? client).get({
|
|
|
1800
1817
|
});
|
|
1801
1818
|
var emailBlacklists_index = (options) => (options?.client ?? client).get({ url: "/email_blacklists.json", ...options });
|
|
1802
1819
|
var emailBlacklists_create = (options) => (options?.client ?? client).post({
|
|
1820
|
+
...urlSearchParamsBodySerializer,
|
|
1803
1821
|
security: [{ scheme: "basic", type: "http" }],
|
|
1804
1822
|
url: "/email_blacklists.json",
|
|
1805
1823
|
...options,
|
|
1806
1824
|
headers: {
|
|
1807
|
-
"Content-Type": "application/
|
|
1825
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1808
1826
|
...options?.headers
|
|
1809
1827
|
}
|
|
1810
1828
|
});
|
|
@@ -1815,11 +1833,12 @@ var emailBlacklists_destroy = (options) => (options.client ?? client).delete({
|
|
|
1815
1833
|
});
|
|
1816
1834
|
var favorites_index = (options) => (options?.client ?? client).get({ url: "/favorites.json", ...options });
|
|
1817
1835
|
var favorites_create = (options) => (options?.client ?? client).post({
|
|
1836
|
+
...urlSearchParamsBodySerializer,
|
|
1818
1837
|
security: [{ scheme: "basic", type: "http" }],
|
|
1819
1838
|
url: "/favorites.json",
|
|
1820
1839
|
...options,
|
|
1821
1840
|
headers: {
|
|
1822
|
-
"Content-Type": "application/
|
|
1841
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1823
1842
|
...options?.headers
|
|
1824
1843
|
}
|
|
1825
1844
|
});
|
|
@@ -1830,11 +1849,12 @@ var favorites_destroy = (options) => (options.client ?? client).delete({
|
|
|
1830
1849
|
});
|
|
1831
1850
|
var forumPosts_index = (options) => (options?.client ?? client).get({ url: "/forum_posts.json", ...options });
|
|
1832
1851
|
var forumPosts_create = (options) => (options?.client ?? client).post({
|
|
1852
|
+
...urlSearchParamsBodySerializer,
|
|
1833
1853
|
security: [{ scheme: "basic", type: "http" }],
|
|
1834
1854
|
url: "/forum_posts.json",
|
|
1835
1855
|
...options,
|
|
1836
1856
|
headers: {
|
|
1837
|
-
"Content-Type": "application/
|
|
1857
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1838
1858
|
...options?.headers
|
|
1839
1859
|
}
|
|
1840
1860
|
});
|
|
@@ -1845,11 +1865,12 @@ var forumPosts_destroy = (options) => (options.client ?? client).delete({
|
|
|
1845
1865
|
});
|
|
1846
1866
|
var forumPosts_show = (options) => (options.client ?? client).get({ url: "/forum_posts/{id}.json", ...options });
|
|
1847
1867
|
var forumPosts_update = (options) => (options.client ?? client).patch({
|
|
1868
|
+
...urlSearchParamsBodySerializer,
|
|
1848
1869
|
security: [{ scheme: "basic", type: "http" }],
|
|
1849
1870
|
url: "/forum_posts/{id}.json",
|
|
1850
1871
|
...options,
|
|
1851
1872
|
headers: {
|
|
1852
|
-
"Content-Type": "application/
|
|
1873
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1853
1874
|
...options.headers
|
|
1854
1875
|
}
|
|
1855
1876
|
});
|
|
@@ -1864,11 +1885,12 @@ var forumPosts_unhide = (options) => (options.client ?? client).post({
|
|
|
1864
1885
|
...options
|
|
1865
1886
|
});
|
|
1866
1887
|
var forumPosts_warning = (options) => (options.client ?? client).post({
|
|
1888
|
+
...urlSearchParamsBodySerializer,
|
|
1867
1889
|
security: [{ scheme: "basic", type: "http" }],
|
|
1868
1890
|
url: "/forum_posts/{id}/warning.json",
|
|
1869
1891
|
...options,
|
|
1870
1892
|
headers: {
|
|
1871
|
-
"Content-Type": "application/
|
|
1893
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1872
1894
|
...options.headers
|
|
1873
1895
|
}
|
|
1874
1896
|
});
|
|
@@ -1883,21 +1905,23 @@ var forumPostVotes_show = (options) => (options.client ?? client).get({
|
|
|
1883
1905
|
...options
|
|
1884
1906
|
});
|
|
1885
1907
|
var forumPostVotes_create = (options) => (options.client ?? client).post({
|
|
1908
|
+
...urlSearchParamsBodySerializer,
|
|
1886
1909
|
security: [{ scheme: "basic", type: "http" }],
|
|
1887
1910
|
url: "/forum_posts/{id}/votes.json",
|
|
1888
1911
|
...options,
|
|
1889
1912
|
headers: {
|
|
1890
|
-
"Content-Type": "application/
|
|
1913
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1891
1914
|
...options.headers
|
|
1892
1915
|
}
|
|
1893
1916
|
});
|
|
1894
1917
|
var forumTopics_index = (options) => (options?.client ?? client).get({ url: "/forum_topics.json", ...options });
|
|
1895
1918
|
var forumTopics_create = (options) => (options?.client ?? client).post({
|
|
1919
|
+
...urlSearchParamsBodySerializer,
|
|
1896
1920
|
security: [{ scheme: "basic", type: "http" }],
|
|
1897
1921
|
url: "/forum_topics.json",
|
|
1898
1922
|
...options,
|
|
1899
1923
|
headers: {
|
|
1900
|
-
"Content-Type": "application/
|
|
1924
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1901
1925
|
...options?.headers
|
|
1902
1926
|
}
|
|
1903
1927
|
});
|
|
@@ -1908,11 +1932,12 @@ var forumTopics_destroy = (options) => (options.client ?? client).delete({
|
|
|
1908
1932
|
});
|
|
1909
1933
|
var forumTopics_show = (options) => (options.client ?? client).get({ url: "/forum_topics/{id}.json", ...options });
|
|
1910
1934
|
var forumTopics_update = (options) => (options.client ?? client).patch({
|
|
1935
|
+
...urlSearchParamsBodySerializer,
|
|
1911
1936
|
security: [{ scheme: "basic", type: "http" }],
|
|
1912
1937
|
url: "/forum_topics/{id}.json",
|
|
1913
1938
|
...options,
|
|
1914
1939
|
headers: {
|
|
1915
|
-
"Content-Type": "application/
|
|
1940
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1916
1941
|
...options.headers
|
|
1917
1942
|
}
|
|
1918
1943
|
});
|
|
@@ -1937,21 +1962,23 @@ var forumTopics_unsubscribe = (options) => (options.client ?? client).post({
|
|
|
1937
1962
|
...options
|
|
1938
1963
|
});
|
|
1939
1964
|
var forumTopics_markAllAsRead = (options) => (options?.client ?? client).post({
|
|
1965
|
+
...urlSearchParamsBodySerializer,
|
|
1940
1966
|
security: [{ scheme: "basic", type: "http" }],
|
|
1941
1967
|
url: "/forum_topics/mark_all_as_read.json",
|
|
1942
1968
|
...options,
|
|
1943
1969
|
headers: {
|
|
1944
|
-
"Content-Type": "application/
|
|
1970
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1945
1971
|
...options?.headers
|
|
1946
1972
|
}
|
|
1947
1973
|
});
|
|
1948
1974
|
var help_index = (options) => (options?.client ?? client).get({ url: "/help.json", ...options });
|
|
1949
1975
|
var help_create = (options) => (options?.client ?? client).post({
|
|
1976
|
+
...urlSearchParamsBodySerializer,
|
|
1950
1977
|
security: [{ scheme: "basic", type: "http" }],
|
|
1951
1978
|
url: "/help.json",
|
|
1952
1979
|
...options,
|
|
1953
1980
|
headers: {
|
|
1954
|
-
"Content-Type": "application/
|
|
1981
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1955
1982
|
...options?.headers
|
|
1956
1983
|
}
|
|
1957
1984
|
});
|
|
@@ -1963,11 +1990,12 @@ var help_destroy = (options) => (options.client ?? client).delete({
|
|
|
1963
1990
|
});
|
|
1964
1991
|
var help_show = (options) => (options.client ?? client).get({ url: "/help/{id}.json", ...options });
|
|
1965
1992
|
var help_update = (options) => (options.client ?? client).patch({
|
|
1993
|
+
...urlSearchParamsBodySerializer,
|
|
1966
1994
|
security: [{ scheme: "basic", type: "http" }],
|
|
1967
1995
|
url: "/help/{id}.json",
|
|
1968
1996
|
...options,
|
|
1969
1997
|
headers: {
|
|
1970
|
-
"Content-Type": "application/
|
|
1998
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1971
1999
|
...options.headers
|
|
1972
2000
|
}
|
|
1973
2001
|
});
|
|
@@ -1977,11 +2005,12 @@ var ipBans_index = (options) => (options?.client ?? client).get({
|
|
|
1977
2005
|
...options
|
|
1978
2006
|
});
|
|
1979
2007
|
var ipBans_create = (options) => (options?.client ?? client).post({
|
|
2008
|
+
...urlSearchParamsBodySerializer,
|
|
1980
2009
|
security: [{ scheme: "basic", type: "http" }],
|
|
1981
2010
|
url: "/ip_bans.json",
|
|
1982
2011
|
...options,
|
|
1983
2012
|
headers: {
|
|
1984
|
-
"Content-Type": "application/
|
|
2013
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1985
2014
|
...options?.headers
|
|
1986
2015
|
}
|
|
1987
2016
|
});
|
|
@@ -2029,11 +2058,12 @@ var modActions_index = (options) => (options?.client ?? client).get({ url: "/mod
|
|
|
2029
2058
|
var modActions_show = (options) => (options.client ?? client).get({ url: "/mod_actions/{id}.json", ...options });
|
|
2030
2059
|
var newsUpdates_index = (options) => (options?.client ?? client).get({ url: "/news_updates.json", ...options });
|
|
2031
2060
|
var newsUpdates_create = (options) => (options?.client ?? client).post({
|
|
2061
|
+
...urlSearchParamsBodySerializer,
|
|
2032
2062
|
security: [{ scheme: "basic", type: "http" }],
|
|
2033
2063
|
url: "/news_updates.json",
|
|
2034
2064
|
...options,
|
|
2035
2065
|
headers: {
|
|
2036
|
-
"Content-Type": "application/
|
|
2066
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2037
2067
|
...options?.headers
|
|
2038
2068
|
}
|
|
2039
2069
|
});
|
|
@@ -2043,21 +2073,23 @@ var newsUpdates_destroy = (options) => (options.client ?? client).delete({
|
|
|
2043
2073
|
...options
|
|
2044
2074
|
});
|
|
2045
2075
|
var newsUpdates_update = (options) => (options.client ?? client).patch({
|
|
2076
|
+
...urlSearchParamsBodySerializer,
|
|
2046
2077
|
security: [{ scheme: "basic", type: "http" }],
|
|
2047
2078
|
url: "/news_updates/{id}.json",
|
|
2048
2079
|
...options,
|
|
2049
2080
|
headers: {
|
|
2050
|
-
"Content-Type": "application/
|
|
2081
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2051
2082
|
...options.headers
|
|
2052
2083
|
}
|
|
2053
2084
|
});
|
|
2054
2085
|
var notes_index = (options) => (options?.client ?? client).get({ url: "/notes.json", ...options });
|
|
2055
2086
|
var notes_create = (options) => (options?.client ?? client).post({
|
|
2087
|
+
...urlSearchParamsBodySerializer,
|
|
2056
2088
|
security: [{ scheme: "basic", type: "http" }],
|
|
2057
2089
|
url: "/notes.json",
|
|
2058
2090
|
...options,
|
|
2059
2091
|
headers: {
|
|
2060
|
-
"Content-Type": "application/
|
|
2092
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2061
2093
|
...options?.headers
|
|
2062
2094
|
}
|
|
2063
2095
|
});
|
|
@@ -2068,11 +2100,12 @@ var notes_destroy = (options) => (options.client ?? client).delete({
|
|
|
2068
2100
|
});
|
|
2069
2101
|
var notes_show = (options) => (options.client ?? client).get({ url: "/notes/{id}.json", ...options });
|
|
2070
2102
|
var notes_update = (options) => (options.client ?? client).patch({
|
|
2103
|
+
...urlSearchParamsBodySerializer,
|
|
2071
2104
|
security: [{ scheme: "basic", type: "http" }],
|
|
2072
2105
|
url: "/notes/{id}.json",
|
|
2073
2106
|
...options,
|
|
2074
2107
|
headers: {
|
|
2075
|
-
"Content-Type": "application/
|
|
2108
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2076
2109
|
...options.headers
|
|
2077
2110
|
}
|
|
2078
2111
|
});
|
|
@@ -2084,11 +2117,12 @@ var notes_revert = (options) => (options.client ?? client).put({
|
|
|
2084
2117
|
var noteVersions_index = (options) => (options?.client ?? client).get({ url: "/note_versions.json", ...options });
|
|
2085
2118
|
var pools_index = (options) => (options?.client ?? client).get({ url: "/pools.json", ...options });
|
|
2086
2119
|
var pools_create = (options) => (options?.client ?? client).post({
|
|
2120
|
+
...urlSearchParamsBodySerializer,
|
|
2087
2121
|
security: [{ scheme: "basic", type: "http" }],
|
|
2088
2122
|
url: "/pools.json",
|
|
2089
2123
|
...options,
|
|
2090
2124
|
headers: {
|
|
2091
|
-
"Content-Type": "application/
|
|
2125
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2092
2126
|
...options?.headers
|
|
2093
2127
|
}
|
|
2094
2128
|
});
|
|
@@ -2099,11 +2133,12 @@ var pools_destroy = (options) => (options.client ?? client).delete({
|
|
|
2099
2133
|
});
|
|
2100
2134
|
var pools_show = (options) => (options.client ?? client).get({ url: "/pools/{id}.json", ...options });
|
|
2101
2135
|
var pools_update = (options) => (options.client ?? client).patch({
|
|
2136
|
+
...urlSearchParamsBodySerializer,
|
|
2102
2137
|
security: [{ scheme: "basic", type: "http" }],
|
|
2103
2138
|
url: "/pools/{id}.json",
|
|
2104
2139
|
...options,
|
|
2105
2140
|
headers: {
|
|
2106
|
-
"Content-Type": "application/
|
|
2141
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2107
2142
|
...options.headers
|
|
2108
2143
|
}
|
|
2109
2144
|
});
|
|
@@ -2113,29 +2148,32 @@ var pools_revert = (options) => (options.client ?? client).put({
|
|
|
2113
2148
|
...options
|
|
2114
2149
|
});
|
|
2115
2150
|
var poolElements_destroy = (options) => (options?.client ?? client).delete({
|
|
2151
|
+
...urlSearchParamsBodySerializer,
|
|
2116
2152
|
security: [{ scheme: "basic", type: "http" }],
|
|
2117
2153
|
url: "/pool_element.json",
|
|
2118
2154
|
...options,
|
|
2119
2155
|
headers: {
|
|
2120
|
-
"Content-Type": "application/
|
|
2156
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2121
2157
|
...options?.headers
|
|
2122
2158
|
}
|
|
2123
2159
|
});
|
|
2124
2160
|
var poolElements_create = (options) => (options?.client ?? client).post({
|
|
2161
|
+
...urlSearchParamsBodySerializer,
|
|
2125
2162
|
security: [{ scheme: "basic", type: "http" }],
|
|
2126
2163
|
url: "/pool_element.json",
|
|
2127
2164
|
...options,
|
|
2128
2165
|
headers: {
|
|
2129
|
-
"Content-Type": "application/
|
|
2166
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2130
2167
|
...options?.headers
|
|
2131
2168
|
}
|
|
2132
2169
|
});
|
|
2133
2170
|
var poolElements_recent = (options) => (options?.client ?? client).get({
|
|
2171
|
+
...urlSearchParamsBodySerializer,
|
|
2134
2172
|
security: [{ scheme: "basic", type: "http" }],
|
|
2135
2173
|
url: "/pool_element/recent.json",
|
|
2136
2174
|
...options,
|
|
2137
2175
|
headers: {
|
|
2138
|
-
"Content-Type": "application/
|
|
2176
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2139
2177
|
...options?.headers
|
|
2140
2178
|
}
|
|
2141
2179
|
});
|
|
@@ -2146,11 +2184,12 @@ var posts_random = (options) => (options?.client ?? client).get({ url: "/posts/r
|
|
|
2146
2184
|
var posts_count = (options) => (options.client ?? client).get({ url: "/posts/count.json", ...options });
|
|
2147
2185
|
var posts_show = (options) => (options.client ?? client).get({ url: "/posts/{id}.json", ...options });
|
|
2148
2186
|
var posts_update = (options) => (options.client ?? client).patch({
|
|
2187
|
+
...urlSearchParamsBodySerializer,
|
|
2149
2188
|
security: [{ scheme: "basic", type: "http" }],
|
|
2150
2189
|
url: "/posts/{id}.json",
|
|
2151
2190
|
...options,
|
|
2152
2191
|
headers: {
|
|
2153
|
-
"Content-Type": "application/
|
|
2192
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2154
2193
|
...options.headers
|
|
2155
2194
|
}
|
|
2156
2195
|
});
|
|
@@ -2160,20 +2199,22 @@ var posts_updateIqdb = (options) => (options.client ?? client).get({
|
|
|
2160
2199
|
...options
|
|
2161
2200
|
});
|
|
2162
2201
|
var posts_markAsTranslated = (options) => (options.client ?? client).put({
|
|
2202
|
+
...urlSearchParamsBodySerializer,
|
|
2163
2203
|
security: [{ scheme: "basic", type: "http" }],
|
|
2164
2204
|
url: "/posts/{id}/mark_as_translated.json",
|
|
2165
2205
|
...options,
|
|
2166
2206
|
headers: {
|
|
2167
|
-
"Content-Type": "application/
|
|
2207
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2168
2208
|
...options.headers
|
|
2169
2209
|
}
|
|
2170
2210
|
});
|
|
2171
2211
|
var posts_copyNotes = (options) => (options.client ?? client).put({
|
|
2212
|
+
...urlSearchParamsBodySerializer,
|
|
2172
2213
|
security: [{ scheme: "basic", type: "http" }],
|
|
2173
2214
|
url: "/posts/{id}/copy_notes.json",
|
|
2174
2215
|
...options,
|
|
2175
2216
|
headers: {
|
|
2176
|
-
"Content-Type": "application/
|
|
2217
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2177
2218
|
...options.headers
|
|
2178
2219
|
}
|
|
2179
2220
|
});
|
|
@@ -2184,11 +2225,12 @@ var posts_revert = (options) => (options.client ?? client).put({
|
|
|
2184
2225
|
});
|
|
2185
2226
|
var posts_showSeq = (options) => (options.client ?? client).get({ url: "/posts/{id}/show_seq.json", ...options });
|
|
2186
2227
|
var postFlags_destroy = (options) => (options.client ?? client).delete({
|
|
2228
|
+
...urlSearchParamsBodySerializer,
|
|
2187
2229
|
security: [{ scheme: "basic", type: "http" }],
|
|
2188
2230
|
url: "/posts/{id}/flag.json",
|
|
2189
2231
|
...options,
|
|
2190
2232
|
headers: {
|
|
2191
|
-
"Content-Type": "application/
|
|
2233
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2192
2234
|
...options.headers
|
|
2193
2235
|
}
|
|
2194
2236
|
});
|
|
@@ -2203,15 +2245,17 @@ var postVotes_create = (options) => (options.client ?? client).post({
|
|
|
2203
2245
|
url: "/posts/{id}/votes.json",
|
|
2204
2246
|
...options
|
|
2205
2247
|
});
|
|
2248
|
+
var comments_forPost = (options) => (options.client ?? client).get({ url: "/posts/{id}/comments.json", ...options });
|
|
2206
2249
|
var postRecommendations_artist = (options) => (options.client ?? client).get({ url: "/posts/{id}/similar/artist.json", ...options });
|
|
2207
2250
|
var postRecommendations_tags = (options) => (options.client ?? client).get({ url: "/posts/{id}/similar/tags.json", ...options });
|
|
2208
2251
|
var postSets_index = (options) => (options?.client ?? client).get({ url: "/post_sets.json", ...options });
|
|
2209
2252
|
var postSets_create = (options) => (options?.client ?? client).post({
|
|
2253
|
+
...urlSearchParamsBodySerializer,
|
|
2210
2254
|
security: [{ scheme: "basic", type: "http" }],
|
|
2211
2255
|
url: "/post_sets.json",
|
|
2212
2256
|
...options,
|
|
2213
2257
|
headers: {
|
|
2214
|
-
"Content-Type": "application/
|
|
2258
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2215
2259
|
...options?.headers
|
|
2216
2260
|
}
|
|
2217
2261
|
});
|
|
@@ -2222,39 +2266,43 @@ var postSets_destroy = (options) => (options.client ?? client).delete({
|
|
|
2222
2266
|
});
|
|
2223
2267
|
var postSets_show = (options) => (options.client ?? client).get({ url: "/post_sets/{id}.json", ...options });
|
|
2224
2268
|
var postSets_update = (options) => (options.client ?? client).patch({
|
|
2269
|
+
...urlSearchParamsBodySerializer,
|
|
2225
2270
|
security: [{ scheme: "basic", type: "http" }],
|
|
2226
2271
|
url: "/post_sets/{id}.json",
|
|
2227
2272
|
...options,
|
|
2228
2273
|
headers: {
|
|
2229
|
-
"Content-Type": "application/
|
|
2274
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2230
2275
|
...options.headers
|
|
2231
2276
|
}
|
|
2232
2277
|
});
|
|
2233
2278
|
var postSets_postList = (options) => (options.client ?? client).get({ url: "/post_sets/{id}/post_list.json", ...options });
|
|
2234
2279
|
var postSets_updatePosts = (options) => (options.client ?? client).post({
|
|
2280
|
+
...urlSearchParamsBodySerializer,
|
|
2235
2281
|
security: [{ scheme: "basic", type: "http" }],
|
|
2236
2282
|
url: "/post_sets/{id}/update_posts.json",
|
|
2237
2283
|
...options,
|
|
2238
2284
|
headers: {
|
|
2239
|
-
"Content-Type": "application/
|
|
2285
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2240
2286
|
...options.headers
|
|
2241
2287
|
}
|
|
2242
2288
|
});
|
|
2243
2289
|
var postSets_addPosts = (options) => (options.client ?? client).post({
|
|
2290
|
+
...urlSearchParamsBodySerializer,
|
|
2244
2291
|
security: [{ scheme: "basic", type: "http" }],
|
|
2245
2292
|
url: "/post_sets/{id}/add_posts.json",
|
|
2246
2293
|
...options,
|
|
2247
2294
|
headers: {
|
|
2248
|
-
"Content-Type": "application/
|
|
2295
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2249
2296
|
...options.headers
|
|
2250
2297
|
}
|
|
2251
2298
|
});
|
|
2252
2299
|
var postSets_removePosts = (options) => (options.client ?? client).post({
|
|
2300
|
+
...urlSearchParamsBodySerializer,
|
|
2253
2301
|
security: [{ scheme: "basic", type: "http" }],
|
|
2254
2302
|
url: "/post_sets/{id}/remove_posts.json",
|
|
2255
2303
|
...options,
|
|
2256
2304
|
headers: {
|
|
2257
|
-
"Content-Type": "application/
|
|
2305
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2258
2306
|
...options.headers
|
|
2259
2307
|
}
|
|
2260
2308
|
});
|
|
@@ -2271,11 +2319,12 @@ var postEvents_index = (options) => (options?.client ?? client).get({
|
|
|
2271
2319
|
});
|
|
2272
2320
|
var postFlags_index = (options) => (options?.client ?? client).get({ url: "/post_flags.json", ...options });
|
|
2273
2321
|
var postFlags_create = (options) => (options?.client ?? client).post({
|
|
2322
|
+
...urlSearchParamsBodySerializer,
|
|
2274
2323
|
security: [{ scheme: "basic", type: "http" }],
|
|
2275
2324
|
url: "/post_flags.json",
|
|
2276
2325
|
...options,
|
|
2277
2326
|
headers: {
|
|
2278
|
-
"Content-Type": "application/
|
|
2327
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2279
2328
|
...options?.headers
|
|
2280
2329
|
}
|
|
2281
2330
|
});
|
|
@@ -2322,11 +2371,12 @@ var postReplacements_togglePenalize = (options) => (options.client ?? client).pu
|
|
|
2322
2371
|
...options
|
|
2323
2372
|
});
|
|
2324
2373
|
var postReplacements_transfer = (options) => (options.client ?? client).put({
|
|
2374
|
+
...urlSearchParamsBodySerializer,
|
|
2325
2375
|
security: [{ scheme: "basic", type: "http" }],
|
|
2326
2376
|
url: "/post_replacements/{id}/transfer.json",
|
|
2327
2377
|
...options,
|
|
2328
2378
|
headers: {
|
|
2329
|
-
"Content-Type": "application/
|
|
2379
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2330
2380
|
...options.headers
|
|
2331
2381
|
}
|
|
2332
2382
|
});
|
|
@@ -2369,30 +2419,33 @@ var tags_destroy = (options) => (options.client ?? client).delete({
|
|
|
2369
2419
|
});
|
|
2370
2420
|
var tags_show = (options) => (options.client ?? client).get({ url: "/tags/{id}.json", ...options });
|
|
2371
2421
|
var tags_update = (options) => (options.client ?? client).patch({
|
|
2422
|
+
...urlSearchParamsBodySerializer,
|
|
2372
2423
|
security: [{ scheme: "basic", type: "http" }],
|
|
2373
2424
|
url: "/tags/{id}.json",
|
|
2374
2425
|
...options,
|
|
2375
2426
|
headers: {
|
|
2376
|
-
"Content-Type": "application/
|
|
2427
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2377
2428
|
...options.headers
|
|
2378
2429
|
}
|
|
2379
2430
|
});
|
|
2380
2431
|
var tagCorrections_show = (options) => (options.client ?? client).get({ url: "/tags/{id}/correction.json", ...options });
|
|
2381
2432
|
var tagCorrections_create = (options) => (options.client ?? client).post({
|
|
2433
|
+
...urlSearchParamsBodySerializer,
|
|
2382
2434
|
security: [{ scheme: "basic", type: "http" }],
|
|
2383
2435
|
url: "/tags/{id}/correction.json",
|
|
2384
2436
|
...options,
|
|
2385
2437
|
headers: {
|
|
2386
|
-
"Content-Type": "application/
|
|
2438
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2387
2439
|
...options.headers
|
|
2388
2440
|
}
|
|
2389
2441
|
});
|
|
2390
2442
|
var tags_preview = (options) => (options?.client ?? client).post({
|
|
2443
|
+
...urlSearchParamsBodySerializer,
|
|
2391
2444
|
security: [{ scheme: "basic", type: "http" }],
|
|
2392
2445
|
url: "/tags/preview.json",
|
|
2393
2446
|
...options,
|
|
2394
2447
|
headers: {
|
|
2395
|
-
"Content-Type": "application/
|
|
2448
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2396
2449
|
...options?.headers
|
|
2397
2450
|
}
|
|
2398
2451
|
});
|
|
@@ -2405,11 +2458,12 @@ var tagAliases_destroy = (options) => (options.client ?? client).delete({
|
|
|
2405
2458
|
});
|
|
2406
2459
|
var tagAliases_show = (options) => (options.client ?? client).get({ url: "/tag_aliases/{id}.json", ...options });
|
|
2407
2460
|
var tagAliases_update = (options) => (options.client ?? client).patch({
|
|
2461
|
+
...urlSearchParamsBodySerializer,
|
|
2408
2462
|
security: [{ scheme: "basic", type: "http" }],
|
|
2409
2463
|
url: "/tag_aliases/{id}.json",
|
|
2410
2464
|
...options,
|
|
2411
2465
|
headers: {
|
|
2412
|
-
"Content-Type": "application/
|
|
2466
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2413
2467
|
...options.headers
|
|
2414
2468
|
}
|
|
2415
2469
|
});
|
|
@@ -2418,12 +2472,18 @@ var tagAliases_approve = (options) => (options.client ?? client).post({
|
|
|
2418
2472
|
url: "/tag_aliases/{id}/approve.json",
|
|
2419
2473
|
...options
|
|
2420
2474
|
});
|
|
2475
|
+
var tagAliases_undo = (options) => (options.client ?? client).post({
|
|
2476
|
+
security: [{ scheme: "basic", type: "http" }],
|
|
2477
|
+
url: "/tag_aliases/{id}/undo.json",
|
|
2478
|
+
...options
|
|
2479
|
+
});
|
|
2421
2480
|
var tagAliasRequests_create = (options) => (options?.client ?? client).post({
|
|
2481
|
+
...urlSearchParamsBodySerializer,
|
|
2422
2482
|
security: [{ scheme: "basic", type: "http" }],
|
|
2423
2483
|
url: "/tag_alias_requests.json",
|
|
2424
2484
|
...options,
|
|
2425
2485
|
headers: {
|
|
2426
|
-
"Content-Type": "application/
|
|
2486
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2427
2487
|
...options?.headers
|
|
2428
2488
|
}
|
|
2429
2489
|
});
|
|
@@ -2435,11 +2495,12 @@ var tagImplications_destroy = (options) => (options.client ?? client).delete({
|
|
|
2435
2495
|
});
|
|
2436
2496
|
var tagImplications_show = (options) => (options.client ?? client).get({ url: "/tag_implications/{id}.json", ...options });
|
|
2437
2497
|
var tagImplications_update = (options) => (options.client ?? client).patch({
|
|
2498
|
+
...urlSearchParamsBodySerializer,
|
|
2438
2499
|
security: [{ scheme: "basic", type: "http" }],
|
|
2439
2500
|
url: "/tag_implications/{id}.json",
|
|
2440
2501
|
...options,
|
|
2441
2502
|
headers: {
|
|
2442
|
-
"Content-Type": "application/
|
|
2503
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2443
2504
|
...options.headers
|
|
2444
2505
|
}
|
|
2445
2506
|
});
|
|
@@ -2448,21 +2509,28 @@ var tagImplications_approve = (options) => (options.client ?? client).post({
|
|
|
2448
2509
|
url: "/tag_implications/{id}/approve.json",
|
|
2449
2510
|
...options
|
|
2450
2511
|
});
|
|
2512
|
+
var tagImplications_undo = (options) => (options.client ?? client).post({
|
|
2513
|
+
security: [{ scheme: "basic", type: "http" }],
|
|
2514
|
+
url: "/tag_implications/{id}/undo.json",
|
|
2515
|
+
...options
|
|
2516
|
+
});
|
|
2451
2517
|
var tagImplicationRequests_create = (options) => (options?.client ?? client).post({
|
|
2518
|
+
...urlSearchParamsBodySerializer,
|
|
2452
2519
|
security: [{ scheme: "basic", type: "http" }],
|
|
2453
2520
|
url: "/tag_implication_requests.json",
|
|
2454
2521
|
...options,
|
|
2455
2522
|
headers: {
|
|
2456
|
-
"Content-Type": "application/
|
|
2523
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2457
2524
|
...options?.headers
|
|
2458
2525
|
}
|
|
2459
2526
|
});
|
|
2460
2527
|
var relatedTags_bulk = (options) => (options?.client ?? client).post({
|
|
2528
|
+
...urlSearchParamsBodySerializer,
|
|
2461
2529
|
security: [{ scheme: "basic", type: "http" }],
|
|
2462
2530
|
url: "/related_tag/bulk.json",
|
|
2463
2531
|
...options,
|
|
2464
2532
|
headers: {
|
|
2465
|
-
"Content-Type": "application/
|
|
2533
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2466
2534
|
...options?.headers
|
|
2467
2535
|
}
|
|
2468
2536
|
});
|
|
@@ -2475,11 +2543,12 @@ var searchTrends_clearCache = (options) => (options?.client ?? client).post({
|
|
|
2475
2543
|
...options
|
|
2476
2544
|
});
|
|
2477
2545
|
var searchTrends_updateSettings = (options) => (options?.client ?? client).post({
|
|
2546
|
+
...urlSearchParamsBodySerializer,
|
|
2478
2547
|
security: [{ scheme: "basic", type: "http" }],
|
|
2479
2548
|
url: "/search_trends/update_settings.json",
|
|
2480
2549
|
...options,
|
|
2481
2550
|
headers: {
|
|
2482
|
-
"Content-Type": "application/
|
|
2551
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2483
2552
|
...options?.headers
|
|
2484
2553
|
}
|
|
2485
2554
|
});
|
|
@@ -2494,11 +2563,12 @@ var searchTrendBlacklists_index = (options) => (options?.client ?? client).get({
|
|
|
2494
2563
|
...options
|
|
2495
2564
|
});
|
|
2496
2565
|
var searchTrendBlacklists_create = (options) => (options?.client ?? client).post({
|
|
2566
|
+
...urlSearchParamsBodySerializer,
|
|
2497
2567
|
security: [{ scheme: "basic", type: "http" }],
|
|
2498
2568
|
url: "/search_trend_blacklists.json",
|
|
2499
2569
|
...options,
|
|
2500
2570
|
headers: {
|
|
2501
|
-
"Content-Type": "application/
|
|
2571
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2502
2572
|
...options?.headers
|
|
2503
2573
|
}
|
|
2504
2574
|
});
|
|
@@ -2508,11 +2578,12 @@ var searchTrendBlacklists_destroy = (options) => (options.client ?? client).dele
|
|
|
2508
2578
|
...options
|
|
2509
2579
|
});
|
|
2510
2580
|
var searchTrendBlacklists_update = (options) => (options.client ?? client).patch({
|
|
2581
|
+
...urlSearchParamsBodySerializer,
|
|
2511
2582
|
security: [{ scheme: "basic", type: "http" }],
|
|
2512
2583
|
url: "/search_trend_blacklists/{id}.json",
|
|
2513
2584
|
...options,
|
|
2514
2585
|
headers: {
|
|
2515
|
-
"Content-Type": "application/
|
|
2586
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2516
2587
|
...options.headers
|
|
2517
2588
|
}
|
|
2518
2589
|
});
|
|
@@ -2565,21 +2636,23 @@ var sessions_verifyTotp = (options) => (options?.client ?? client).post({
|
|
|
2565
2636
|
});
|
|
2566
2637
|
var staffNotes_index = (options) => (options?.client ?? client).get({ url: "/staff_notes.json", ...options });
|
|
2567
2638
|
var staffNotes_create = (options) => (options?.client ?? client).post({
|
|
2639
|
+
...urlSearchParamsBodySerializer,
|
|
2568
2640
|
security: [{ scheme: "basic", type: "http" }],
|
|
2569
2641
|
url: "/staff_notes.json",
|
|
2570
2642
|
...options,
|
|
2571
2643
|
headers: {
|
|
2572
|
-
"Content-Type": "application/
|
|
2644
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2573
2645
|
...options?.headers
|
|
2574
2646
|
}
|
|
2575
2647
|
});
|
|
2576
2648
|
var staffNotes_show = (options) => (options.client ?? client).get({ url: "/staff_notes/{id}.json", ...options });
|
|
2577
2649
|
var staffNotes_update = (options) => (options.client ?? client).patch({
|
|
2650
|
+
...urlSearchParamsBodySerializer,
|
|
2578
2651
|
security: [{ scheme: "basic", type: "http" }],
|
|
2579
2652
|
url: "/staff_notes/{id}.json",
|
|
2580
2653
|
...options,
|
|
2581
2654
|
headers: {
|
|
2582
|
-
"Content-Type": "application/
|
|
2655
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2583
2656
|
...options.headers
|
|
2584
2657
|
}
|
|
2585
2658
|
});
|
|
@@ -2595,11 +2668,12 @@ var staffNotes_undelete = (options) => (options.client ?? client).put({
|
|
|
2595
2668
|
});
|
|
2596
2669
|
var takedowns_index = (options) => (options?.client ?? client).get({ url: "/takedowns.json", ...options });
|
|
2597
2670
|
var takedowns_create = (options) => (options?.client ?? client).post({
|
|
2671
|
+
...urlSearchParamsBodySerializer,
|
|
2598
2672
|
security: [{ scheme: "basic", type: "http" }],
|
|
2599
2673
|
url: "/takedowns.json",
|
|
2600
2674
|
...options,
|
|
2601
2675
|
headers: {
|
|
2602
|
-
"Content-Type": "application/
|
|
2676
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2603
2677
|
...options?.headers
|
|
2604
2678
|
}
|
|
2605
2679
|
});
|
|
@@ -2610,47 +2684,52 @@ var takedowns_destroy = (options) => (options.client ?? client).delete({
|
|
|
2610
2684
|
});
|
|
2611
2685
|
var takedowns_show = (options) => (options.client ?? client).get({ url: "/takedowns/{id}.json", ...options });
|
|
2612
2686
|
var takedowns_update = (options) => (options.client ?? client).patch({
|
|
2687
|
+
...urlSearchParamsBodySerializer,
|
|
2613
2688
|
security: [{ scheme: "basic", type: "http" }],
|
|
2614
2689
|
url: "/takedowns/{id}.json",
|
|
2615
2690
|
...options,
|
|
2616
2691
|
headers: {
|
|
2617
|
-
"Content-Type": "application/
|
|
2692
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2618
2693
|
...options.headers
|
|
2619
2694
|
}
|
|
2620
2695
|
});
|
|
2621
2696
|
var takedowns_addByIds = (options) => (options.client ?? client).post({
|
|
2697
|
+
...urlSearchParamsBodySerializer,
|
|
2622
2698
|
security: [{ scheme: "basic", type: "http" }],
|
|
2623
2699
|
url: "/takedowns/{id}/add_by_ids.json",
|
|
2624
2700
|
...options,
|
|
2625
2701
|
headers: {
|
|
2626
|
-
"Content-Type": "application/
|
|
2702
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2627
2703
|
...options.headers
|
|
2628
2704
|
}
|
|
2629
2705
|
});
|
|
2630
2706
|
var takedowns_addByTags = (options) => (options.client ?? client).post({
|
|
2707
|
+
...urlSearchParamsBodySerializer,
|
|
2631
2708
|
security: [{ scheme: "basic", type: "http" }],
|
|
2632
2709
|
url: "/takedowns/{id}/add_by_tags.json",
|
|
2633
2710
|
...options,
|
|
2634
2711
|
headers: {
|
|
2635
|
-
"Content-Type": "application/
|
|
2712
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2636
2713
|
...options.headers
|
|
2637
2714
|
}
|
|
2638
2715
|
});
|
|
2639
2716
|
var takedowns_countMatchingPosts = (options) => (options.client ?? client).post({
|
|
2717
|
+
...urlSearchParamsBodySerializer,
|
|
2640
2718
|
security: [{ scheme: "basic", type: "http" }],
|
|
2641
2719
|
url: "/takedowns/{id}/count_matching_posts.json",
|
|
2642
2720
|
...options,
|
|
2643
2721
|
headers: {
|
|
2644
|
-
"Content-Type": "application/
|
|
2722
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2645
2723
|
...options.headers
|
|
2646
2724
|
}
|
|
2647
2725
|
});
|
|
2648
2726
|
var takedowns_removeByIds = (options) => (options.client ?? client).post({
|
|
2727
|
+
...urlSearchParamsBodySerializer,
|
|
2649
2728
|
security: [{ scheme: "basic", type: "http" }],
|
|
2650
2729
|
url: "/takedowns/{id}/remove_by_ids.json",
|
|
2651
2730
|
...options,
|
|
2652
2731
|
headers: {
|
|
2653
|
-
"Content-Type": "application/
|
|
2732
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2654
2733
|
...options.headers
|
|
2655
2734
|
}
|
|
2656
2735
|
});
|
|
@@ -2661,11 +2740,12 @@ var tickets_show = (options) => (options.client ?? client).get({
|
|
|
2661
2740
|
...options
|
|
2662
2741
|
});
|
|
2663
2742
|
var tickets_update = (options) => (options.client ?? client).patch({
|
|
2743
|
+
...urlSearchParamsBodySerializer,
|
|
2664
2744
|
security: [{ scheme: "basic", type: "http" }],
|
|
2665
2745
|
url: "/tickets/{id}.json",
|
|
2666
2746
|
...options,
|
|
2667
2747
|
headers: {
|
|
2668
|
-
"Content-Type": "application/
|
|
2748
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2669
2749
|
...options.headers
|
|
2670
2750
|
}
|
|
2671
2751
|
});
|
|
@@ -2679,6 +2759,7 @@ var tickets_unclaim = (options) => (options.client ?? client).post({
|
|
|
2679
2759
|
url: "/tickets/{id}/unclaim.json",
|
|
2680
2760
|
...options
|
|
2681
2761
|
});
|
|
2762
|
+
var uploadKarmaEvents_index = (options) => (options?.client ?? client).get({ url: "/upload_karma_events.json", ...options });
|
|
2682
2763
|
var uploads_index = (options) => (options?.client ?? client).get({ url: "/uploads.json", ...options });
|
|
2683
2764
|
var uploads_create = (options) => (options?.client ?? client).post({
|
|
2684
2765
|
...formDataBodySerializer,
|
|
@@ -2693,11 +2774,12 @@ var uploads_create = (options) => (options?.client ?? client).post({
|
|
|
2693
2774
|
var uploads_show = (options) => (options.client ?? client).get({ url: "/uploads/{id}.json", ...options });
|
|
2694
2775
|
var uploadWhitelists_index = (options) => (options?.client ?? client).get({ url: "/upload_whitelists.json", ...options });
|
|
2695
2776
|
var uploadWhitelists_create = (options) => (options?.client ?? client).post({
|
|
2777
|
+
...urlSearchParamsBodySerializer,
|
|
2696
2778
|
security: [{ scheme: "basic", type: "http" }],
|
|
2697
2779
|
url: "/upload_whitelists.json",
|
|
2698
2780
|
...options,
|
|
2699
2781
|
headers: {
|
|
2700
|
-
"Content-Type": "application/
|
|
2782
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2701
2783
|
...options?.headers
|
|
2702
2784
|
}
|
|
2703
2785
|
});
|
|
@@ -2707,11 +2789,12 @@ var uploadWhitelists_destroy = (options) => (options.client ?? client).delete({
|
|
|
2707
2789
|
...options
|
|
2708
2790
|
});
|
|
2709
2791
|
var uploadWhitelists_update = (options) => (options.client ?? client).patch({
|
|
2792
|
+
...urlSearchParamsBodySerializer,
|
|
2710
2793
|
security: [{ scheme: "basic", type: "http" }],
|
|
2711
2794
|
url: "/upload_whitelists/{id}.json",
|
|
2712
2795
|
...options,
|
|
2713
2796
|
headers: {
|
|
2714
|
-
"Content-Type": "application/
|
|
2797
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2715
2798
|
...options.headers
|
|
2716
2799
|
}
|
|
2717
2800
|
});
|
|
@@ -2727,6 +2810,11 @@ var users_avatarMenu = (options) => (options?.client ?? client).get({
|
|
|
2727
2810
|
url: "/users/avatar_menu.json",
|
|
2728
2811
|
...options
|
|
2729
2812
|
});
|
|
2813
|
+
var users_uploadTags = (options) => (options?.client ?? client).get({
|
|
2814
|
+
security: [{ scheme: "basic", type: "http" }],
|
|
2815
|
+
url: "/users/upload_tags.json",
|
|
2816
|
+
...options
|
|
2817
|
+
});
|
|
2730
2818
|
var users_customStyle = (options) => (options?.client ?? client).get({
|
|
2731
2819
|
security: [{ scheme: "basic", type: "http" }],
|
|
2732
2820
|
url: "/users/custom_style.css",
|
|
@@ -2734,11 +2822,12 @@ var users_customStyle = (options) => (options?.client ?? client).get({
|
|
|
2734
2822
|
});
|
|
2735
2823
|
var users_show = (options) => (options.client ?? client).get({ url: "/users/{idOrName}.json", ...options });
|
|
2736
2824
|
var users_update = (options) => (options.client ?? client).patch({
|
|
2825
|
+
...urlSearchParamsBodySerializer,
|
|
2737
2826
|
security: [{ scheme: "basic", type: "http" }],
|
|
2738
2827
|
url: "/users/{idOrName}.json",
|
|
2739
2828
|
...options,
|
|
2740
2829
|
headers: {
|
|
2741
|
-
"Content-Type": "application/
|
|
2830
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2742
2831
|
...options.headers
|
|
2743
2832
|
}
|
|
2744
2833
|
});
|
|
@@ -2788,11 +2877,12 @@ var users_disableKarmaFree = (options) => (options.client ?? client).post({
|
|
|
2788
2877
|
}
|
|
2789
2878
|
});
|
|
2790
2879
|
var userReverts_create = (options) => (options?.client ?? client).post({
|
|
2880
|
+
...urlSearchParamsBodySerializer,
|
|
2791
2881
|
security: [{ scheme: "basic", type: "http" }],
|
|
2792
2882
|
url: "/user_reverts",
|
|
2793
2883
|
...options,
|
|
2794
2884
|
headers: {
|
|
2795
|
-
"Content-Type": "application/
|
|
2885
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2796
2886
|
...options?.headers
|
|
2797
2887
|
}
|
|
2798
2888
|
});
|
|
@@ -2802,30 +2892,33 @@ var maintenanceUserCountFixes_create = (options) => (options?.client ?? client).
|
|
|
2802
2892
|
...options
|
|
2803
2893
|
});
|
|
2804
2894
|
var maintenanceUserDmailFilters_update = (options) => (options.client ?? client).patch({
|
|
2895
|
+
...urlSearchParamsBodySerializer,
|
|
2805
2896
|
security: [{ scheme: "basic", type: "http" }],
|
|
2806
2897
|
url: "/maintenance/user/dmail_filter.json",
|
|
2807
2898
|
...options,
|
|
2808
2899
|
headers: {
|
|
2809
|
-
"Content-Type": "application/
|
|
2900
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2810
2901
|
...options.headers
|
|
2811
2902
|
}
|
|
2812
2903
|
});
|
|
2813
2904
|
var maintenanceUserAvatars_update = (options) => (options?.client ?? client).patch({
|
|
2905
|
+
...urlSearchParamsBodySerializer,
|
|
2814
2906
|
security: [{ scheme: "basic", type: "http" }],
|
|
2815
2907
|
url: "/maintenance/user/avatar.json",
|
|
2816
2908
|
...options,
|
|
2817
2909
|
headers: {
|
|
2818
|
-
"Content-Type": "application/
|
|
2910
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2819
2911
|
...options?.headers
|
|
2820
2912
|
}
|
|
2821
2913
|
});
|
|
2822
2914
|
var userFeedbacks_index = (options) => (options?.client ?? client).get({ url: "/user_feedbacks.json", ...options });
|
|
2823
2915
|
var userFeedbacks_create = (options) => (options?.client ?? client).post({
|
|
2916
|
+
...urlSearchParamsBodySerializer,
|
|
2824
2917
|
security: [{ scheme: "basic", type: "http" }],
|
|
2825
2918
|
url: "/user_feedbacks.json",
|
|
2826
2919
|
...options,
|
|
2827
2920
|
headers: {
|
|
2828
|
-
"Content-Type": "application/
|
|
2921
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2829
2922
|
...options?.headers
|
|
2830
2923
|
}
|
|
2831
2924
|
});
|
|
@@ -2836,11 +2929,12 @@ var userFeedbacks_destroy = (options) => (options.client ?? client).delete({
|
|
|
2836
2929
|
});
|
|
2837
2930
|
var userFeedbacks_show = (options) => (options.client ?? client).get({ url: "/user_feedbacks/{id}.json", ...options });
|
|
2838
2931
|
var userFeedbacks_update = (options) => (options.client ?? client).patch({
|
|
2932
|
+
...urlSearchParamsBodySerializer,
|
|
2839
2933
|
security: [{ scheme: "basic", type: "http" }],
|
|
2840
2934
|
url: "/user_feedbacks/{id}.json",
|
|
2841
2935
|
...options,
|
|
2842
2936
|
headers: {
|
|
2843
|
-
"Content-Type": "application/
|
|
2937
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2844
2938
|
...options.headers
|
|
2845
2939
|
}
|
|
2846
2940
|
});
|
|
@@ -2860,11 +2954,12 @@ var userNameChangeRequests_index = (options) => (options?.client ?? client).get(
|
|
|
2860
2954
|
...options
|
|
2861
2955
|
});
|
|
2862
2956
|
var userNameChangeRequests_create = (options) => (options?.client ?? client).post({
|
|
2957
|
+
...urlSearchParamsBodySerializer,
|
|
2863
2958
|
security: [{ scheme: "basic", type: "http" }],
|
|
2864
2959
|
url: "/user_name_change_requests.json",
|
|
2865
2960
|
...options,
|
|
2866
2961
|
headers: {
|
|
2867
|
-
"Content-Type": "application/
|
|
2962
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2868
2963
|
...options?.headers
|
|
2869
2964
|
}
|
|
2870
2965
|
});
|
|
@@ -2880,11 +2975,12 @@ var userNameChangeRequests_show = (options) => (options.client ?? client).get({
|
|
|
2880
2975
|
});
|
|
2881
2976
|
var wikiPages_index = (options) => (options?.client ?? client).get({ url: "/wiki_pages.json", ...options });
|
|
2882
2977
|
var wikiPages_create = (options) => (options?.client ?? client).post({
|
|
2978
|
+
...urlSearchParamsBodySerializer,
|
|
2883
2979
|
security: [{ scheme: "basic", type: "http" }],
|
|
2884
2980
|
url: "/wiki_pages.json",
|
|
2885
2981
|
...options,
|
|
2886
2982
|
headers: {
|
|
2887
|
-
"Content-Type": "application/
|
|
2983
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2888
2984
|
...options?.headers
|
|
2889
2985
|
}
|
|
2890
2986
|
});
|
|
@@ -2895,11 +2991,12 @@ var wikiPages_destroy = (options) => (options.client ?? client).delete({
|
|
|
2895
2991
|
});
|
|
2896
2992
|
var wikiPages_show = (options) => (options.client ?? client).get({ url: "/wiki_pages/{id}.json", ...options });
|
|
2897
2993
|
var wikiPages_update = (options) => (options.client ?? client).patch({
|
|
2994
|
+
...urlSearchParamsBodySerializer,
|
|
2898
2995
|
security: [{ scheme: "basic", type: "http" }],
|
|
2899
2996
|
url: "/wiki_pages/{id}.json",
|
|
2900
2997
|
...options,
|
|
2901
2998
|
headers: {
|
|
2902
|
-
"Content-Type": "application/
|
|
2999
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2903
3000
|
...options.headers
|
|
2904
3001
|
}
|
|
2905
3002
|
});
|
|
@@ -2916,11 +3013,12 @@ var staffUsers_altList = (options) => (options?.client ?? client).get({
|
|
|
2916
3013
|
...options
|
|
2917
3014
|
});
|
|
2918
3015
|
var staffUsers_update = (options) => (options.client ?? client).patch({
|
|
3016
|
+
...urlSearchParamsBodySerializer,
|
|
2919
3017
|
security: [{ scheme: "basic", type: "http" }],
|
|
2920
3018
|
url: "/staff/users/{id}.json",
|
|
2921
3019
|
...options,
|
|
2922
3020
|
headers: {
|
|
2923
|
-
"Content-Type": "application/
|
|
3021
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2924
3022
|
...options.headers
|
|
2925
3023
|
}
|
|
2926
3024
|
});
|
|
@@ -2935,11 +3033,12 @@ var staffUsers_totpReset = (options) => (options.client ?? client).post({
|
|
|
2935
3033
|
...options
|
|
2936
3034
|
});
|
|
2937
3035
|
var staffUsers_updateBlacklist = (options) => (options.client ?? client).post({
|
|
3036
|
+
...urlSearchParamsBodySerializer,
|
|
2938
3037
|
security: [{ scheme: "basic", type: "http" }],
|
|
2939
3038
|
url: "/staff/users/{id}/update_blacklist",
|
|
2940
3039
|
...options,
|
|
2941
3040
|
headers: {
|
|
2942
|
-
"Content-Type": "application/
|
|
3041
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2943
3042
|
...options.headers
|
|
2944
3043
|
}
|
|
2945
3044
|
});
|
|
@@ -2984,11 +3083,12 @@ var staffExceptions_show = (options) => (options.client ?? client).get({
|
|
|
2984
3083
|
...options
|
|
2985
3084
|
});
|
|
2986
3085
|
var staffPostPosts_delete = (options) => (options.client ?? client).post({
|
|
3086
|
+
...urlSearchParamsBodySerializer,
|
|
2987
3087
|
security: [{ scheme: "basic", type: "http" }],
|
|
2988
3088
|
url: "/staff/post/posts/{id}/delete.json",
|
|
2989
3089
|
...options,
|
|
2990
3090
|
headers: {
|
|
2991
|
-
"Content-Type": "application/
|
|
3091
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
2992
3092
|
...options.headers
|
|
2993
3093
|
}
|
|
2994
3094
|
});
|
|
@@ -3008,20 +3108,22 @@ var staffPostPosts_regenerateVideos = (options) => (options.client ?? client).po
|
|
|
3008
3108
|
...options
|
|
3009
3109
|
});
|
|
3010
3110
|
var staffPostPosts_expunge = (options) => (options.client ?? client).post({
|
|
3111
|
+
...urlSearchParamsBodySerializer,
|
|
3011
3112
|
security: [{ scheme: "basic", type: "http" }],
|
|
3012
3113
|
url: "/staff/post/posts/{id}/expunge.json",
|
|
3013
3114
|
...options,
|
|
3014
3115
|
headers: {
|
|
3015
|
-
"Content-Type": "application/
|
|
3116
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
3016
3117
|
...options.headers
|
|
3017
3118
|
}
|
|
3018
3119
|
});
|
|
3019
3120
|
var staffPostPosts_moveFavorites = (options) => (options.client ?? client).post({
|
|
3121
|
+
...urlSearchParamsBodySerializer,
|
|
3020
3122
|
security: [{ scheme: "basic", type: "http" }],
|
|
3021
3123
|
url: "/staff/post/posts/{id}/move_favorites.json",
|
|
3022
3124
|
...options,
|
|
3023
3125
|
headers: {
|
|
3024
|
-
"Content-Type": "application/
|
|
3126
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
3025
3127
|
...options.headers
|
|
3026
3128
|
}
|
|
3027
3129
|
});
|
|
@@ -3046,20 +3148,22 @@ var staffPostPosts_reowner = (options) => (options.client ?? client).post({
|
|
|
3046
3148
|
}
|
|
3047
3149
|
});
|
|
3048
3150
|
var staffPostApprovals_destroy = (options) => (options?.client ?? client).delete({
|
|
3151
|
+
...urlSearchParamsBodySerializer,
|
|
3049
3152
|
security: [{ scheme: "basic", type: "http" }],
|
|
3050
3153
|
url: "/staff/post/approval.json",
|
|
3051
3154
|
...options,
|
|
3052
3155
|
headers: {
|
|
3053
|
-
"Content-Type": "application/
|
|
3156
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
3054
3157
|
...options?.headers
|
|
3055
3158
|
}
|
|
3056
3159
|
});
|
|
3057
3160
|
var staffPostApprovals_create = (options) => (options?.client ?? client).post({
|
|
3161
|
+
...urlSearchParamsBodySerializer,
|
|
3058
3162
|
security: [{ scheme: "basic", type: "http" }],
|
|
3059
3163
|
url: "/staff/post/approval.json",
|
|
3060
3164
|
...options,
|
|
3061
3165
|
headers: {
|
|
3062
|
-
"Content-Type": "application/
|
|
3166
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
3063
3167
|
...options?.headers
|
|
3064
3168
|
}
|
|
3065
3169
|
});
|
|
@@ -3099,11 +3203,12 @@ var staffPostDisapprovals_index = (options) => (options?.client ?? client).get({
|
|
|
3099
3203
|
...options
|
|
3100
3204
|
});
|
|
3101
3205
|
var staffPostDisapprovals_create = (options) => (options?.client ?? client).post({
|
|
3206
|
+
...urlSearchParamsBodySerializer,
|
|
3102
3207
|
security: [{ scheme: "basic", type: "http" }],
|
|
3103
3208
|
url: "/staff/post/disapprovals.json",
|
|
3104
3209
|
...options,
|
|
3105
3210
|
headers: {
|
|
3106
|
-
"Content-Type": "application/
|
|
3211
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
3107
3212
|
...options?.headers
|
|
3108
3213
|
}
|
|
3109
3214
|
});
|
|
@@ -3133,12 +3238,12 @@ var staffFiles_show = (options) => (options.client ?? client).get({
|
|
|
3133
3238
|
...options
|
|
3134
3239
|
});
|
|
3135
3240
|
var staffFiles_update = (options) => (options.client ?? client).patch({
|
|
3136
|
-
...
|
|
3241
|
+
...urlSearchParamsBodySerializer,
|
|
3137
3242
|
security: [{ scheme: "basic", type: "http" }],
|
|
3138
3243
|
url: "/staff/files/{id}.json",
|
|
3139
3244
|
...options,
|
|
3140
3245
|
headers: {
|
|
3141
|
-
"Content-Type":
|
|
3246
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
3142
3247
|
...options.headers
|
|
3143
3248
|
}
|
|
3144
3249
|
});
|
|
@@ -3148,12 +3253,12 @@ var staffWikis_index = (options) => (options?.client ?? client).get({
|
|
|
3148
3253
|
...options
|
|
3149
3254
|
});
|
|
3150
3255
|
var staffWikis_create = (options) => (options?.client ?? client).post({
|
|
3151
|
-
...
|
|
3256
|
+
...urlSearchParamsBodySerializer,
|
|
3152
3257
|
security: [{ scheme: "basic", type: "http" }],
|
|
3153
3258
|
url: "/staff/wikis.json",
|
|
3154
3259
|
...options,
|
|
3155
3260
|
headers: {
|
|
3156
|
-
"Content-Type":
|
|
3261
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
3157
3262
|
...options?.headers
|
|
3158
3263
|
}
|
|
3159
3264
|
});
|
|
@@ -3168,12 +3273,12 @@ var staffWikis_show = (options) => (options.client ?? client).get({
|
|
|
3168
3273
|
...options
|
|
3169
3274
|
});
|
|
3170
3275
|
var staffWikis_update = (options) => (options.client ?? client).patch({
|
|
3171
|
-
...
|
|
3276
|
+
...urlSearchParamsBodySerializer,
|
|
3172
3277
|
security: [{ scheme: "basic", type: "http" }],
|
|
3173
3278
|
url: "/staff/wikis/{id}.json",
|
|
3174
3279
|
...options,
|
|
3175
3280
|
headers: {
|
|
3176
|
-
"Content-Type":
|
|
3281
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
3177
3282
|
...options.headers
|
|
3178
3283
|
}
|
|
3179
3284
|
});
|
|
@@ -3274,7 +3379,8 @@ function prefixKeys(obj, root, exclude) {
|
|
|
3274
3379
|
if (excludeSet.has(key)) {
|
|
3275
3380
|
result[key] = obj[key];
|
|
3276
3381
|
} else {
|
|
3277
|
-
|
|
3382
|
+
const value = obj[key];
|
|
3383
|
+
result[`${root}[${key}]${Array.isArray(value) ? "[]" : ""}`] = value;
|
|
3278
3384
|
}
|
|
3279
3385
|
}
|
|
3280
3386
|
return result;
|
|
@@ -3549,7 +3655,7 @@ var Appeals = class extends Base2 {
|
|
|
3549
3655
|
return appeals_update({
|
|
3550
3656
|
client: this.client,
|
|
3551
3657
|
path: { id },
|
|
3552
|
-
body: options
|
|
3658
|
+
body: prefixKeys(options, "appeal")
|
|
3553
3659
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
3554
3660
|
}
|
|
3555
3661
|
};
|
|
@@ -3677,7 +3783,7 @@ var Artists = class extends Base2 {
|
|
|
3677
3783
|
async create(options) {
|
|
3678
3784
|
return artists_create({
|
|
3679
3785
|
client: this.client,
|
|
3680
|
-
body: options
|
|
3786
|
+
body: prefixKeys(options, "artist")
|
|
3681
3787
|
}).then((res) => this._handleResponse(res, 201, true, Artist_default));
|
|
3682
3788
|
}
|
|
3683
3789
|
/**
|
|
@@ -3758,7 +3864,7 @@ var Artists = class extends Base2 {
|
|
|
3758
3864
|
return artists_update({
|
|
3759
3865
|
client: this.client,
|
|
3760
3866
|
path: { idOrName },
|
|
3761
|
-
body: options
|
|
3867
|
+
body: prefixKeys(options, "artist")
|
|
3762
3868
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
3763
3869
|
}
|
|
3764
3870
|
};
|
|
@@ -3946,6 +4052,17 @@ AvoidPosting = __decorate([
|
|
|
3946
4052
|
var AvoidPosting_default = AvoidPosting;
|
|
3947
4053
|
|
|
3948
4054
|
// dist/lib/modules/AvoidPostings.js
|
|
4055
|
+
function flattenArtistAttributes(artist_attributes) {
|
|
4056
|
+
if (!artist_attributes)
|
|
4057
|
+
return {};
|
|
4058
|
+
return {
|
|
4059
|
+
"avoid_posting[artist_attributes][name]": artist_attributes.name,
|
|
4060
|
+
"avoid_posting[artist_attributes][other_names_string]": artist_attributes.other_names_string,
|
|
4061
|
+
"avoid_posting[artist_attributes][other_names][]": artist_attributes.other_names,
|
|
4062
|
+
"avoid_posting[artist_attributes][group_name]": artist_attributes.group_name,
|
|
4063
|
+
"avoid_posting[artist_attributes][linked_user_id]": artist_attributes.linked_user_id
|
|
4064
|
+
};
|
|
4065
|
+
}
|
|
3949
4066
|
var AvoidPostings = class extends Base2 {
|
|
3950
4067
|
static moduleKey = "avoidPostings";
|
|
3951
4068
|
/**
|
|
@@ -3959,9 +4076,13 @@ var AvoidPostings = class extends Base2 {
|
|
|
3959
4076
|
* @see {@link https://e621.wiki/#operations-Avoid_Postings-avoid_postings\#create Documentation} for more details.
|
|
3960
4077
|
*/
|
|
3961
4078
|
async create(options) {
|
|
4079
|
+
const { artist_attributes, ...rest } = options;
|
|
3962
4080
|
return avoidPostings_create({
|
|
3963
4081
|
client: this.client,
|
|
3964
|
-
body:
|
|
4082
|
+
body: {
|
|
4083
|
+
...prefixKeys(rest, "avoid_posting"),
|
|
4084
|
+
...flattenArtistAttributes(artist_attributes)
|
|
4085
|
+
}
|
|
3965
4086
|
}).then((res) => this._handleResponse(res, 201, true, AvoidPosting_default));
|
|
3966
4087
|
}
|
|
3967
4088
|
/**
|
|
@@ -4047,10 +4168,14 @@ var AvoidPostings = class extends Base2 {
|
|
|
4047
4168
|
* @see {@link https://e621.wiki/#operations-Avoid_Postings-avoid_postings\#update Documentation} for more details.
|
|
4048
4169
|
*/
|
|
4049
4170
|
async update(idOrName, options) {
|
|
4171
|
+
const { artist_attributes, ...rest } = options ?? {};
|
|
4050
4172
|
return avoidPostings_update({
|
|
4051
4173
|
client: this.client,
|
|
4052
4174
|
path: { idOrName },
|
|
4053
|
-
body:
|
|
4175
|
+
body: {
|
|
4176
|
+
...prefixKeys(rest, "avoid_posting"),
|
|
4177
|
+
...flattenArtistAttributes(artist_attributes)
|
|
4178
|
+
}
|
|
4054
4179
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
4055
4180
|
}
|
|
4056
4181
|
};
|
|
@@ -4263,7 +4388,7 @@ __decorate([
|
|
|
4263
4388
|
__decorate([
|
|
4264
4389
|
OperationID("blips#warning"),
|
|
4265
4390
|
__metadata("design:type", Function),
|
|
4266
|
-
__metadata("design:paramtypes", [
|
|
4391
|
+
__metadata("design:paramtypes", [String]),
|
|
4267
4392
|
__metadata("design:returntype", Promise)
|
|
4268
4393
|
], Blip.prototype, "mark", null);
|
|
4269
4394
|
__decorate([
|
|
@@ -4297,7 +4422,7 @@ var Blips = class extends Base2 {
|
|
|
4297
4422
|
async create(options) {
|
|
4298
4423
|
return blips_create({
|
|
4299
4424
|
client: this.client,
|
|
4300
|
-
body: options
|
|
4425
|
+
body: prefixKeys(options, "blip")
|
|
4301
4426
|
}).then((res) => this._handleResponse(res, 201, true, Blip_default));
|
|
4302
4427
|
}
|
|
4303
4428
|
/**
|
|
@@ -4408,7 +4533,7 @@ var Blips = class extends Base2 {
|
|
|
4408
4533
|
return blips_update({
|
|
4409
4534
|
client: this.client,
|
|
4410
4535
|
path: { id },
|
|
4411
|
-
body: options
|
|
4536
|
+
body: prefixKeys(options, "blip")
|
|
4412
4537
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
4413
4538
|
}
|
|
4414
4539
|
};
|
|
@@ -4439,7 +4564,7 @@ __decorate([
|
|
|
4439
4564
|
__decorate([
|
|
4440
4565
|
OperationID("blips#warning"),
|
|
4441
4566
|
__metadata("design:type", Function),
|
|
4442
|
-
__metadata("design:paramtypes", [Number,
|
|
4567
|
+
__metadata("design:paramtypes", [Number, String]),
|
|
4443
4568
|
__metadata("design:returntype", Promise)
|
|
4444
4569
|
], Blips.prototype, "mark", null);
|
|
4445
4570
|
__decorate([
|
|
@@ -4552,7 +4677,7 @@ var BulkUpdateRequests = class extends Base2 {
|
|
|
4552
4677
|
async create(options) {
|
|
4553
4678
|
return bulkUpdateRequests_create({
|
|
4554
4679
|
client: this.client,
|
|
4555
|
-
body: options
|
|
4680
|
+
body: prefixKeys(options, "bulk_update_request")
|
|
4556
4681
|
}).then((res) => this._handleResponse(res, 201, true, BulkUpdateRequest_default));
|
|
4557
4682
|
}
|
|
4558
4683
|
/**
|
|
@@ -4609,7 +4734,7 @@ var BulkUpdateRequests = class extends Base2 {
|
|
|
4609
4734
|
return bulkUpdateRequests_update({
|
|
4610
4735
|
client: this.client,
|
|
4611
4736
|
path: { id },
|
|
4612
|
-
body: options
|
|
4737
|
+
body: prefixKeys(options, "bulk_update_request")
|
|
4613
4738
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
4614
4739
|
}
|
|
4615
4740
|
};
|
|
@@ -4765,7 +4890,7 @@ __decorate([
|
|
|
4765
4890
|
__decorate([
|
|
4766
4891
|
OperationID("comments#warning"),
|
|
4767
4892
|
__metadata("design:type", Function),
|
|
4768
|
-
__metadata("design:paramtypes", [
|
|
4893
|
+
__metadata("design:paramtypes", [String]),
|
|
4769
4894
|
__metadata("design:returntype", Promise)
|
|
4770
4895
|
], Comment.prototype, "mark", null);
|
|
4771
4896
|
__decorate([
|
|
@@ -4805,7 +4930,7 @@ var Comments = class extends Base2 {
|
|
|
4805
4930
|
async create(options) {
|
|
4806
4931
|
return comments_create({
|
|
4807
4932
|
client: this.client,
|
|
4808
|
-
body: options
|
|
4933
|
+
body: prefixKeys(options, "comment")
|
|
4809
4934
|
}).then((res) => this._handleResponse(res, 201, true, Comment_default));
|
|
4810
4935
|
}
|
|
4811
4936
|
/**
|
|
@@ -4931,7 +5056,7 @@ var Comments = class extends Base2 {
|
|
|
4931
5056
|
return comments_update({
|
|
4932
5057
|
client: this.client,
|
|
4933
5058
|
path: { id },
|
|
4934
|
-
body: options
|
|
5059
|
+
body: prefixKeys(options, "comment")
|
|
4935
5060
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
4936
5061
|
}
|
|
4937
5062
|
};
|
|
@@ -4968,7 +5093,7 @@ __decorate([
|
|
|
4968
5093
|
__decorate([
|
|
4969
5094
|
OperationID("comments#warning"),
|
|
4970
5095
|
__metadata("design:type", Function),
|
|
4971
|
-
__metadata("design:paramtypes", [Number,
|
|
5096
|
+
__metadata("design:paramtypes", [Number, String]),
|
|
4972
5097
|
__metadata("design:returntype", Promise)
|
|
4973
5098
|
], Comments.prototype, "mark", null);
|
|
4974
5099
|
__decorate([
|
|
@@ -5333,7 +5458,7 @@ var EmailBlacklists = class extends Base2 {
|
|
|
5333
5458
|
async create(options) {
|
|
5334
5459
|
return emailBlacklists_create({
|
|
5335
5460
|
client: this.client,
|
|
5336
|
-
body: options
|
|
5461
|
+
body: prefixKeys(options, "email_blacklist")
|
|
5337
5462
|
}).then((res) => this._handleResponse(res, 201, true, EmailBlacklist_default));
|
|
5338
5463
|
}
|
|
5339
5464
|
/**
|
|
@@ -6099,7 +6224,7 @@ __decorate([
|
|
|
6099
6224
|
__decorate([
|
|
6100
6225
|
OperationID("forum_posts#warning"),
|
|
6101
6226
|
__metadata("design:type", Function),
|
|
6102
|
-
__metadata("design:paramtypes", [
|
|
6227
|
+
__metadata("design:paramtypes", [String]),
|
|
6103
6228
|
__metadata("design:returntype", Promise)
|
|
6104
6229
|
], ForumPost.prototype, "mark", null);
|
|
6105
6230
|
__decorate([
|
|
@@ -6123,7 +6248,7 @@ __decorate([
|
|
|
6123
6248
|
__decorate([
|
|
6124
6249
|
OperationID("forum_post_votes#create"),
|
|
6125
6250
|
__metadata("design:type", Function),
|
|
6126
|
-
__metadata("design:paramtypes", [
|
|
6251
|
+
__metadata("design:paramtypes", [Number]),
|
|
6127
6252
|
__metadata("design:returntype", Promise)
|
|
6128
6253
|
], ForumPost.prototype, "vote", null);
|
|
6129
6254
|
__decorate([
|
|
@@ -6151,7 +6276,7 @@ var ForumPosts = class extends Base2 {
|
|
|
6151
6276
|
async create(options) {
|
|
6152
6277
|
return forumPosts_create({
|
|
6153
6278
|
client: this.client,
|
|
6154
|
-
body: options
|
|
6279
|
+
body: prefixKeys(options, "forum_post")
|
|
6155
6280
|
}).then((res) => this._handleResponse(res, 201, true, ForumPost_default));
|
|
6156
6281
|
}
|
|
6157
6282
|
/**
|
|
@@ -6260,7 +6385,7 @@ var ForumPosts = class extends Base2 {
|
|
|
6260
6385
|
return forumPosts_update({
|
|
6261
6386
|
client: this.client,
|
|
6262
6387
|
path: { id },
|
|
6263
|
-
body: options
|
|
6388
|
+
body: prefixKeys(options, "forum_post")
|
|
6264
6389
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
6265
6390
|
}
|
|
6266
6391
|
};
|
|
@@ -6291,7 +6416,7 @@ __decorate([
|
|
|
6291
6416
|
__decorate([
|
|
6292
6417
|
OperationID("forum_posts#warning"),
|
|
6293
6418
|
__metadata("design:type", Function),
|
|
6294
|
-
__metadata("design:paramtypes", [Number,
|
|
6419
|
+
__metadata("design:paramtypes", [Number, String]),
|
|
6295
6420
|
__metadata("design:returntype", Promise)
|
|
6296
6421
|
], ForumPosts.prototype, "mark", null);
|
|
6297
6422
|
__decorate([
|
|
@@ -6430,6 +6555,14 @@ ForumTopic = __decorate([
|
|
|
6430
6555
|
var ForumTopic_default = ForumTopic;
|
|
6431
6556
|
|
|
6432
6557
|
// dist/lib/modules/ForumTopics.js
|
|
6558
|
+
function flattenOriginalPostAttributes(original_post_attributes) {
|
|
6559
|
+
if (!original_post_attributes)
|
|
6560
|
+
return {};
|
|
6561
|
+
return {
|
|
6562
|
+
"forum_topic[original_post_attributes][id]": original_post_attributes.id,
|
|
6563
|
+
"forum_topic[original_post_attributes][body]": original_post_attributes.body
|
|
6564
|
+
};
|
|
6565
|
+
}
|
|
6433
6566
|
var ForumTopics = class extends Base2 {
|
|
6434
6567
|
static moduleKey = "forumTopics";
|
|
6435
6568
|
/**
|
|
@@ -6441,9 +6574,13 @@ var ForumTopics = class extends Base2 {
|
|
|
6441
6574
|
* @see {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#create Documentation} for more details.
|
|
6442
6575
|
*/
|
|
6443
6576
|
async create(options) {
|
|
6577
|
+
const { original_post_attributes, ...rest } = options;
|
|
6444
6578
|
return forumTopics_create({
|
|
6445
6579
|
client: this.client,
|
|
6446
|
-
body:
|
|
6580
|
+
body: {
|
|
6581
|
+
...prefixKeys(rest, "forum_topic"),
|
|
6582
|
+
...flattenOriginalPostAttributes(original_post_attributes)
|
|
6583
|
+
}
|
|
6447
6584
|
}).then((res) => this._handleResponse(res, 201, true, ForumTopic_default));
|
|
6448
6585
|
}
|
|
6449
6586
|
/**
|
|
@@ -6570,10 +6707,14 @@ var ForumTopics = class extends Base2 {
|
|
|
6570
6707
|
* @see {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#update Documentation} for more details.
|
|
6571
6708
|
*/
|
|
6572
6709
|
async update(id, options) {
|
|
6710
|
+
const { original_post_attributes, ...rest } = options;
|
|
6573
6711
|
return forumTopics_update({
|
|
6574
6712
|
client: this.client,
|
|
6575
6713
|
path: { id },
|
|
6576
|
-
body:
|
|
6714
|
+
body: {
|
|
6715
|
+
...prefixKeys(rest, "forum_topic"),
|
|
6716
|
+
...flattenOriginalPostAttributes(original_post_attributes)
|
|
6717
|
+
}
|
|
6577
6718
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
6578
6719
|
}
|
|
6579
6720
|
};
|
|
@@ -6722,7 +6863,7 @@ var HelpPages = class extends Base2 {
|
|
|
6722
6863
|
async create(options) {
|
|
6723
6864
|
return help_create({
|
|
6724
6865
|
client: this.client,
|
|
6725
|
-
body: options
|
|
6866
|
+
body: prefixKeys(options, "help_page")
|
|
6726
6867
|
}).then((res) => this._handleResponse(res, 201, true, HelpPage_default));
|
|
6727
6868
|
}
|
|
6728
6869
|
/**
|
|
@@ -6789,7 +6930,7 @@ var HelpPages = class extends Base2 {
|
|
|
6789
6930
|
return help_update({
|
|
6790
6931
|
client: this.client,
|
|
6791
6932
|
path: { id },
|
|
6792
|
-
body: options
|
|
6933
|
+
body: prefixKeys(options, "help_page")
|
|
6793
6934
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
6794
6935
|
}
|
|
6795
6936
|
};
|
|
@@ -6873,7 +7014,7 @@ var IpBans = class extends Base2 {
|
|
|
6873
7014
|
async create(options) {
|
|
6874
7015
|
return ipBans_create({
|
|
6875
7016
|
client: this.client,
|
|
6876
|
-
body: options
|
|
7017
|
+
body: prefixKeys(options, "ip_ban")
|
|
6877
7018
|
}).then((res) => this._handleResponse(res, 201, true, IPBan_default));
|
|
6878
7019
|
}
|
|
6879
7020
|
/**
|
|
@@ -7258,7 +7399,7 @@ var NewsUpdates = class extends Base2 {
|
|
|
7258
7399
|
async create(options) {
|
|
7259
7400
|
return newsUpdates_create({
|
|
7260
7401
|
client: this.client,
|
|
7261
|
-
body: options
|
|
7402
|
+
body: prefixKeys(options, "news_update")
|
|
7262
7403
|
}).then((res) => this._handleResponse(res, 201, true, NewsUpdate_default));
|
|
7263
7404
|
}
|
|
7264
7405
|
/**
|
|
@@ -7303,7 +7444,7 @@ var NewsUpdates = class extends Base2 {
|
|
|
7303
7444
|
return newsUpdates_update({
|
|
7304
7445
|
client: this.client,
|
|
7305
7446
|
path: { id },
|
|
7306
|
-
body: options
|
|
7447
|
+
body: prefixKeys(options, "news_update")
|
|
7307
7448
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
7308
7449
|
}
|
|
7309
7450
|
};
|
|
@@ -7405,7 +7546,7 @@ var Notes = class extends Base2 {
|
|
|
7405
7546
|
async create(options) {
|
|
7406
7547
|
return notes_create({
|
|
7407
7548
|
client: this.client,
|
|
7408
|
-
body: options
|
|
7549
|
+
body: prefixKeys(options, "note")
|
|
7409
7550
|
}).then((res) => this._handleResponse(res, 201, true, Note_default));
|
|
7410
7551
|
}
|
|
7411
7552
|
/**
|
|
@@ -7473,7 +7614,7 @@ var Notes = class extends Base2 {
|
|
|
7473
7614
|
return notes_update({
|
|
7474
7615
|
client: this.client,
|
|
7475
7616
|
path: { id },
|
|
7476
|
-
body: options
|
|
7617
|
+
body: prefixKeys(options, "note")
|
|
7477
7618
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
7478
7619
|
}
|
|
7479
7620
|
};
|
|
@@ -7685,7 +7826,7 @@ var Pools = class extends Base2 {
|
|
|
7685
7826
|
async create(options) {
|
|
7686
7827
|
return pools_create({
|
|
7687
7828
|
client: this.client,
|
|
7688
|
-
body: options
|
|
7829
|
+
body: prefixKeys(options, "pool")
|
|
7689
7830
|
}).then((res) => this._handleResponse(res, 201, true, Pool_default));
|
|
7690
7831
|
}
|
|
7691
7832
|
/**
|
|
@@ -7782,7 +7923,7 @@ var Pools = class extends Base2 {
|
|
|
7782
7923
|
return pools_update({
|
|
7783
7924
|
client: this.client,
|
|
7784
7925
|
path: { id },
|
|
7785
|
-
body: options
|
|
7926
|
+
body: prefixKeys(options, "pool")
|
|
7786
7927
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
7787
7928
|
}
|
|
7788
7929
|
};
|
|
@@ -8287,7 +8428,10 @@ var Posts = class extends Base2 {
|
|
|
8287
8428
|
client: this.client,
|
|
8288
8429
|
path: { id },
|
|
8289
8430
|
query: { v2, mode },
|
|
8290
|
-
body
|
|
8431
|
+
// `body` is typed as `UpdatePostOptions` minus `v2`/`mode`, which still carries the query
|
|
8432
|
+
// transform's raw shape alongside the body one - cast to just the body transform so
|
|
8433
|
+
// `prefixKeys` resolves against the right raw shape.
|
|
8434
|
+
body: prefixKeys(body, "post")
|
|
8291
8435
|
}).then((res) => {
|
|
8292
8436
|
const data = this._handleResponse(res, 200, true);
|
|
8293
8437
|
const raw = v2 ? data : data.post;
|
|
@@ -8571,7 +8715,7 @@ var PostSets = class extends Base2 {
|
|
|
8571
8715
|
return postSets_addPosts({
|
|
8572
8716
|
client: this.client,
|
|
8573
8717
|
path: { id },
|
|
8574
|
-
body: { post_ids }
|
|
8718
|
+
body: { "post_ids[]": post_ids }
|
|
8575
8719
|
}).then((res) => this._handleResponse(res, 201, true, PostSet_default));
|
|
8576
8720
|
}
|
|
8577
8721
|
/**
|
|
@@ -8585,7 +8729,7 @@ var PostSets = class extends Base2 {
|
|
|
8585
8729
|
async create(options) {
|
|
8586
8730
|
return postSets_create({
|
|
8587
8731
|
client: this.client,
|
|
8588
|
-
body: options
|
|
8732
|
+
body: prefixKeys(options, "post_set")
|
|
8589
8733
|
}).then((res) => this._handleResponse(res, 201, true, PostSet_default));
|
|
8590
8734
|
}
|
|
8591
8735
|
/**
|
|
@@ -8661,7 +8805,7 @@ var PostSets = class extends Base2 {
|
|
|
8661
8805
|
return postSets_removePosts({
|
|
8662
8806
|
client: this.client,
|
|
8663
8807
|
path: { id },
|
|
8664
|
-
body: { post_ids }
|
|
8808
|
+
body: { "post_ids[]": post_ids }
|
|
8665
8809
|
}).then((res) => this._handleResponse(res, 201, true, PostSet_default));
|
|
8666
8810
|
}
|
|
8667
8811
|
/**
|
|
@@ -8690,7 +8834,7 @@ var PostSets = class extends Base2 {
|
|
|
8690
8834
|
return postSets_update({
|
|
8691
8835
|
client: this.client,
|
|
8692
8836
|
path: { id },
|
|
8693
|
-
body: options
|
|
8837
|
+
body: prefixKeys(options, "post_set")
|
|
8694
8838
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
8695
8839
|
}
|
|
8696
8840
|
/**
|
|
@@ -8707,7 +8851,7 @@ var PostSets = class extends Base2 {
|
|
|
8707
8851
|
return postSets_updatePosts({
|
|
8708
8852
|
client: this.client,
|
|
8709
8853
|
path: { id },
|
|
8710
|
-
body: { post_ids_string: post_ids.join(" ") }
|
|
8854
|
+
body: { "post_set[post_ids_string]": post_ids.join(" ") }
|
|
8711
8855
|
}).then((res) => this._handleResponse(res, 200, true, PostSet_default));
|
|
8712
8856
|
}
|
|
8713
8857
|
};
|
|
@@ -8921,7 +9065,7 @@ var SearchTrendBlacklists = class extends Base2 {
|
|
|
8921
9065
|
async create(options) {
|
|
8922
9066
|
return searchTrendBlacklists_create({
|
|
8923
9067
|
client: this.client,
|
|
8924
|
-
body: options
|
|
9068
|
+
body: prefixKeys(options, "search_trend_blacklist")
|
|
8925
9069
|
}).then((res) => this._handleResponse(res, 200, true, SearchTrendBlacklist_default));
|
|
8926
9070
|
}
|
|
8927
9071
|
/**
|
|
@@ -8970,7 +9114,7 @@ var SearchTrendBlacklists = class extends Base2 {
|
|
|
8970
9114
|
return searchTrendBlacklists_update({
|
|
8971
9115
|
client: this.client,
|
|
8972
9116
|
path: { id },
|
|
8973
|
-
body: options
|
|
9117
|
+
body: prefixKeys(options, "search_trend_blacklist")
|
|
8974
9118
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
8975
9119
|
}
|
|
8976
9120
|
};
|
|
@@ -9097,7 +9241,7 @@ var SearchTrends = class extends Base2 {
|
|
|
9097
9241
|
async updateSettings(options) {
|
|
9098
9242
|
return searchTrends_updateSettings({
|
|
9099
9243
|
client: this.client,
|
|
9100
|
-
body: options
|
|
9244
|
+
body: prefixKeys(options, "search_trend_settings")
|
|
9101
9245
|
}).then((res) => this._handleResponse(res, 200, true));
|
|
9102
9246
|
}
|
|
9103
9247
|
};
|
|
@@ -9219,7 +9363,7 @@ var StaffNotes = class extends Base2 {
|
|
|
9219
9363
|
async create(options) {
|
|
9220
9364
|
return staffNotes_create({
|
|
9221
9365
|
client: this.client,
|
|
9222
|
-
body: options
|
|
9366
|
+
body: prefixKeys(options, "staff_note")
|
|
9223
9367
|
}).then((res) => this._handleResponse(res, 201, true, StaffNote_default));
|
|
9224
9368
|
}
|
|
9225
9369
|
/**
|
|
@@ -9294,7 +9438,7 @@ var StaffNotes = class extends Base2 {
|
|
|
9294
9438
|
return staffNotes_update({
|
|
9295
9439
|
client: this.client,
|
|
9296
9440
|
path: { id },
|
|
9297
|
-
body: options
|
|
9441
|
+
body: prefixKeys(options, "staff_note")
|
|
9298
9442
|
}).then((res) => this._handleResponse(res, 200, true, StaffNote_default));
|
|
9299
9443
|
}
|
|
9300
9444
|
};
|
|
@@ -9492,7 +9636,7 @@ var Tags = class extends Base2 {
|
|
|
9492
9636
|
return tags_update({
|
|
9493
9637
|
client: this.client,
|
|
9494
9638
|
path: { id },
|
|
9495
|
-
body: options
|
|
9639
|
+
body: prefixKeys(options, "tag")
|
|
9496
9640
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
9497
9641
|
}
|
|
9498
9642
|
};
|
|
@@ -9714,7 +9858,7 @@ var Takedowns = class extends Base2 {
|
|
|
9714
9858
|
async create(options) {
|
|
9715
9859
|
return takedowns_create({
|
|
9716
9860
|
client: this.client,
|
|
9717
|
-
body: options
|
|
9861
|
+
body: prefixKeys(options, "takedown")
|
|
9718
9862
|
}).then((res) => this._handleResponse(res, 201, true, Takedown_default));
|
|
9719
9863
|
}
|
|
9720
9864
|
/**
|
|
@@ -9991,7 +10135,7 @@ var Tickets = class extends Base2 {
|
|
|
9991
10135
|
return tickets_update({
|
|
9992
10136
|
client: this.client,
|
|
9993
10137
|
path: { id },
|
|
9994
|
-
body: options
|
|
10138
|
+
body: prefixKeys(options, "ticket")
|
|
9995
10139
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
9996
10140
|
}
|
|
9997
10141
|
};
|
|
@@ -10026,6 +10170,34 @@ __decorate([
|
|
|
10026
10170
|
__metadata("design:returntype", Promise)
|
|
10027
10171
|
], Tickets.prototype, "update", null);
|
|
10028
10172
|
|
|
10173
|
+
// dist/lib/models/UploadKarmaEvent.js
|
|
10174
|
+
var UploadKarmaEvent = class extends Base {
|
|
10175
|
+
};
|
|
10176
|
+
var UploadKarmaEvent_default = UploadKarmaEvent;
|
|
10177
|
+
|
|
10178
|
+
// dist/lib/modules/UploadKarmaEvents.js
|
|
10179
|
+
var UploadKarmaEvents = class extends Base2 {
|
|
10180
|
+
static moduleKey = "uploadKarmaEvents";
|
|
10181
|
+
/**
|
|
10182
|
+
*
|
|
10183
|
+
* @operationId {@link https://e621.wiki/#operations-Upload_Karma_Events-upload_karma_events\#index upload_karma_events#index}
|
|
10184
|
+
*
|
|
10185
|
+
* @see {@link https://e621.wiki/#operations-Upload_Karma_Events-upload_karma_events\#index Documentation} for more details.
|
|
10186
|
+
*/
|
|
10187
|
+
async search(options) {
|
|
10188
|
+
return uploadKarmaEvents_index({
|
|
10189
|
+
client: this.client,
|
|
10190
|
+
query: prefixKeys(options, "search", ["limit", "page"])
|
|
10191
|
+
}).then((res) => this._handleResponse(res, 200, true, UploadKarmaEvent_default));
|
|
10192
|
+
}
|
|
10193
|
+
};
|
|
10194
|
+
__decorate([
|
|
10195
|
+
OperationID("upload_karma_events#index"),
|
|
10196
|
+
__metadata("design:type", Function),
|
|
10197
|
+
__metadata("design:paramtypes", [Object]),
|
|
10198
|
+
__metadata("design:returntype", Promise)
|
|
10199
|
+
], UploadKarmaEvents.prototype, "search", null);
|
|
10200
|
+
|
|
10029
10201
|
// dist/lib/models/Upload.js
|
|
10030
10202
|
var Upload = class Upload2 extends Base {
|
|
10031
10203
|
};
|
|
@@ -10178,7 +10350,7 @@ var UploadWhitelists = class extends Base2 {
|
|
|
10178
10350
|
async create(options) {
|
|
10179
10351
|
return uploadWhitelists_create({
|
|
10180
10352
|
client: this.client,
|
|
10181
|
-
body: options
|
|
10353
|
+
body: prefixKeys(options, "upload_whitelist")
|
|
10182
10354
|
}).then((res) => this._handleResponse(res, 201, true, UploadWhitelist_default));
|
|
10183
10355
|
}
|
|
10184
10356
|
/**
|
|
@@ -10221,7 +10393,7 @@ var UploadWhitelists = class extends Base2 {
|
|
|
10221
10393
|
return uploadWhitelists_update({
|
|
10222
10394
|
client: this.client,
|
|
10223
10395
|
path: { id },
|
|
10224
|
-
body: options
|
|
10396
|
+
body: prefixKeys(options, "upload_whitelist")
|
|
10225
10397
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
10226
10398
|
}
|
|
10227
10399
|
};
|
|
@@ -10694,7 +10866,7 @@ var Users = class extends Base2 {
|
|
|
10694
10866
|
return users_update({
|
|
10695
10867
|
client: this.client,
|
|
10696
10868
|
path: { idOrName },
|
|
10697
|
-
body: options
|
|
10869
|
+
body: prefixKeys(options, "user")
|
|
10698
10870
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
10699
10871
|
}
|
|
10700
10872
|
/**
|
|
@@ -10723,7 +10895,7 @@ var Users = class extends Base2 {
|
|
|
10723
10895
|
async updateDmailFilter(dmail_id, words) {
|
|
10724
10896
|
return maintenanceUserDmailFilters_update({
|
|
10725
10897
|
client: this.client,
|
|
10726
|
-
body: { words },
|
|
10898
|
+
body: { "dmail_filter[words]": words },
|
|
10727
10899
|
query: {
|
|
10728
10900
|
dmail_id
|
|
10729
10901
|
}
|
|
@@ -10746,6 +10918,22 @@ var Users = class extends Base2 {
|
|
|
10746
10918
|
return data === null ? null : "blacklisted_tags" in data ? new FullCurrentUser_default(this.e621, data) : new FullUser_default(this.e621, data);
|
|
10747
10919
|
});
|
|
10748
10920
|
}
|
|
10921
|
+
/**
|
|
10922
|
+
*
|
|
10923
|
+
* Returns the current user's favorite tags and recently used tags, for use in the upload tag editor.
|
|
10924
|
+
|
|
10925
|
+
*
|
|
10926
|
+
* @requiresApiKeyAuth
|
|
10927
|
+
*
|
|
10928
|
+
* @operationId {@link https://e621.wiki/#operations-Users-users\#upload_tags users#upload_tags}
|
|
10929
|
+
*
|
|
10930
|
+
* @see {@link https://e621.wiki/#operations-Users-users\#upload_tags Documentation} for more details.
|
|
10931
|
+
*/
|
|
10932
|
+
async uploadTags() {
|
|
10933
|
+
return users_uploadTags({
|
|
10934
|
+
client: this.client
|
|
10935
|
+
}).then((res) => this._handleResponse(res, 200, true));
|
|
10936
|
+
}
|
|
10749
10937
|
};
|
|
10750
10938
|
__decorate([
|
|
10751
10939
|
OperationID("users#avatar_menu"),
|
|
@@ -10843,6 +11031,12 @@ __decorate([
|
|
|
10843
11031
|
__metadata("design:paramtypes", [Object]),
|
|
10844
11032
|
__metadata("design:returntype", Promise)
|
|
10845
11033
|
], Users.prototype, "uploadLimit", null);
|
|
11034
|
+
__decorate([
|
|
11035
|
+
OperationID("users#upload_tags"),
|
|
11036
|
+
__metadata("design:type", Function),
|
|
11037
|
+
__metadata("design:paramtypes", []),
|
|
11038
|
+
__metadata("design:returntype", Promise)
|
|
11039
|
+
], Users.prototype, "uploadTags", null);
|
|
10846
11040
|
|
|
10847
11041
|
// dist/lib/models/UserFeedback.js
|
|
10848
11042
|
var UserFeedback = class UserFeedback2 extends Base {
|
|
@@ -10944,7 +11138,7 @@ var UserFeedbacks = class extends Base2 {
|
|
|
10944
11138
|
async create(options) {
|
|
10945
11139
|
return userFeedbacks_create({
|
|
10946
11140
|
client: this.client,
|
|
10947
|
-
body: options
|
|
11141
|
+
body: prefixKeys(options, "user_feedback")
|
|
10948
11142
|
}).then((res) => this._handleResponse(res, 201, true, UserFeedback_default));
|
|
10949
11143
|
}
|
|
10950
11144
|
/**
|
|
@@ -11035,7 +11229,7 @@ var UserFeedbacks = class extends Base2 {
|
|
|
11035
11229
|
return userFeedbacks_update({
|
|
11036
11230
|
client: this.client,
|
|
11037
11231
|
path: { id },
|
|
11038
|
-
body: options
|
|
11232
|
+
body: prefixKeys(options, "user_feedback")
|
|
11039
11233
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
11040
11234
|
}
|
|
11041
11235
|
};
|
|
@@ -11123,7 +11317,7 @@ var UserNameChangeRequests = class extends Base2 {
|
|
|
11123
11317
|
async create(options) {
|
|
11124
11318
|
return userNameChangeRequests_create({
|
|
11125
11319
|
client: this.client,
|
|
11126
|
-
body: options
|
|
11320
|
+
body: prefixKeys(options, "user_name_change_request")
|
|
11127
11321
|
}).then((res) => this._handleResponse(res, 200, true));
|
|
11128
11322
|
}
|
|
11129
11323
|
/**
|
|
@@ -11277,7 +11471,7 @@ var WikiPages = class extends Base2 {
|
|
|
11277
11471
|
async create(options) {
|
|
11278
11472
|
return wikiPages_create({
|
|
11279
11473
|
client: this.client,
|
|
11280
|
-
body: options
|
|
11474
|
+
body: prefixKeys(options, "wiki_page")
|
|
11281
11475
|
}).then((res) => this._handleResponse(res, 201, true, WikiPage_default));
|
|
11282
11476
|
}
|
|
11283
11477
|
/**
|
|
@@ -11349,7 +11543,7 @@ var WikiPages = class extends Base2 {
|
|
|
11349
11543
|
return wikiPages_update({
|
|
11350
11544
|
client: this.client,
|
|
11351
11545
|
path: { id },
|
|
11352
|
-
body: options
|
|
11546
|
+
body: prefixKeys(options, "wiki_page")
|
|
11353
11547
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
11354
11548
|
}
|
|
11355
11549
|
};
|
|
@@ -11820,7 +12014,7 @@ var PostDisapprovals = class extends Base2 {
|
|
|
11820
12014
|
async create(options) {
|
|
11821
12015
|
return staffPostDisapprovals_create({
|
|
11822
12016
|
client: this.client,
|
|
11823
|
-
body: options
|
|
12017
|
+
body: prefixKeys(options, "post_disapproval")
|
|
11824
12018
|
}).then((res) => this._handleResponse(res, 201, true, PostDisapproval_default));
|
|
11825
12019
|
}
|
|
11826
12020
|
/**
|
|
@@ -11968,7 +12162,7 @@ var PostFlags = class extends Base2 {
|
|
|
11968
12162
|
async create(options) {
|
|
11969
12163
|
return postFlags_create({
|
|
11970
12164
|
client: this.client,
|
|
11971
|
-
body: options
|
|
12165
|
+
body: prefixKeys(options, "post_flag")
|
|
11972
12166
|
}).then((res) => this._handleResponse(res, 201, true, PostFlag_default));
|
|
11973
12167
|
}
|
|
11974
12168
|
/**
|
|
@@ -11997,7 +12191,7 @@ var PostFlags = class extends Base2 {
|
|
|
11997
12191
|
return postFlags_destroy({
|
|
11998
12192
|
client: this.client,
|
|
11999
12193
|
path: { id: post_id }
|
|
12000
|
-
}).then((res) => this._handleResponse(res,
|
|
12194
|
+
}).then((res) => this._handleResponse(res, 200, true));
|
|
12001
12195
|
}
|
|
12002
12196
|
/**
|
|
12003
12197
|
*
|
|
@@ -12449,7 +12643,7 @@ var TagAliases = class extends Base2 {
|
|
|
12449
12643
|
async create(options) {
|
|
12450
12644
|
return tagAliasRequests_create({
|
|
12451
12645
|
client: this.client,
|
|
12452
|
-
body: options
|
|
12646
|
+
body: prefixKeys(options, "tag_alias_request")
|
|
12453
12647
|
}).then((res) => this._handleResponse(res, 200, true));
|
|
12454
12648
|
}
|
|
12455
12649
|
/**
|
|
@@ -12492,6 +12686,22 @@ var TagAliases = class extends Base2 {
|
|
|
12492
12686
|
query: prefixKeys(options, "search", ["limit", "page"])
|
|
12493
12687
|
}).then((res) => this._handleResponse(res, 200, true, TagAlias_default));
|
|
12494
12688
|
}
|
|
12689
|
+
/**
|
|
12690
|
+
*
|
|
12691
|
+
* You must be Admin+.
|
|
12692
|
+
*
|
|
12693
|
+
* @requiresApiKeyAuth
|
|
12694
|
+
*
|
|
12695
|
+
* @operationId {@link https://e621.wiki/#operations-Tag_Aliases-tag_aliases\#undo tag_aliases#undo}
|
|
12696
|
+
*
|
|
12697
|
+
* @see {@link https://e621.wiki/#operations-Tag_Aliases-tag_aliases\#undo Documentation} for more details.
|
|
12698
|
+
*/
|
|
12699
|
+
async undo(id) {
|
|
12700
|
+
return tagAliases_undo({
|
|
12701
|
+
client: this.client,
|
|
12702
|
+
path: { id }
|
|
12703
|
+
}).then((res) => this._handleResponse(res, 204, true));
|
|
12704
|
+
}
|
|
12495
12705
|
/**
|
|
12496
12706
|
*
|
|
12497
12707
|
* You must be Admin+.
|
|
@@ -12506,7 +12716,7 @@ var TagAliases = class extends Base2 {
|
|
|
12506
12716
|
return tagAliases_update({
|
|
12507
12717
|
client: this.client,
|
|
12508
12718
|
path: { id },
|
|
12509
|
-
body: options
|
|
12719
|
+
body: prefixKeys(options, "tag_alias")
|
|
12510
12720
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
12511
12721
|
}
|
|
12512
12722
|
};
|
|
@@ -12540,6 +12750,12 @@ __decorate([
|
|
|
12540
12750
|
__metadata("design:paramtypes", [Object]),
|
|
12541
12751
|
__metadata("design:returntype", Promise)
|
|
12542
12752
|
], TagAliases.prototype, "search", null);
|
|
12753
|
+
__decorate([
|
|
12754
|
+
OperationID("tag_aliases#undo"),
|
|
12755
|
+
__metadata("design:type", Function),
|
|
12756
|
+
__metadata("design:paramtypes", [Number]),
|
|
12757
|
+
__metadata("design:returntype", Promise)
|
|
12758
|
+
], TagAliases.prototype, "undo", null);
|
|
12543
12759
|
__decorate([
|
|
12544
12760
|
OperationID("tag_aliases#update"),
|
|
12545
12761
|
__metadata("design:type", Function),
|
|
@@ -12701,7 +12917,7 @@ var TagImplications = class extends Base2 {
|
|
|
12701
12917
|
async create(options) {
|
|
12702
12918
|
return tagImplicationRequests_create({
|
|
12703
12919
|
client: this.client,
|
|
12704
|
-
body: options
|
|
12920
|
+
body: prefixKeys(options, "tag_implication_request")
|
|
12705
12921
|
}).then((res) => this._handleResponse(res, 200, true));
|
|
12706
12922
|
}
|
|
12707
12923
|
/**
|
|
@@ -12744,6 +12960,22 @@ var TagImplications = class extends Base2 {
|
|
|
12744
12960
|
query: prefixKeys(options, "search", ["limit", "page"])
|
|
12745
12961
|
}).then((res) => this._handleResponse(res, 200, true, TagImplication_default));
|
|
12746
12962
|
}
|
|
12963
|
+
/**
|
|
12964
|
+
*
|
|
12965
|
+
* You must be Admin+.
|
|
12966
|
+
*
|
|
12967
|
+
* @requiresApiKeyAuth
|
|
12968
|
+
*
|
|
12969
|
+
* @operationId {@link https://e621.wiki/#operations-Tag_Implications-tag_implications\#undo tag_implications#undo}
|
|
12970
|
+
*
|
|
12971
|
+
* @see {@link https://e621.wiki/#operations-Tag_Implications-tag_implications\#undo Documentation} for more details.
|
|
12972
|
+
*/
|
|
12973
|
+
async undo(id) {
|
|
12974
|
+
return tagImplications_undo({
|
|
12975
|
+
client: this.client,
|
|
12976
|
+
path: { id }
|
|
12977
|
+
}).then((res) => this._handleResponse(res, 204, true));
|
|
12978
|
+
}
|
|
12747
12979
|
/**
|
|
12748
12980
|
*
|
|
12749
12981
|
* You must be Admin+.
|
|
@@ -12758,7 +12990,7 @@ var TagImplications = class extends Base2 {
|
|
|
12758
12990
|
return tagImplications_update({
|
|
12759
12991
|
client: this.client,
|
|
12760
12992
|
path: { id },
|
|
12761
|
-
body: options
|
|
12993
|
+
body: prefixKeys(options, "tag_implication")
|
|
12762
12994
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
12763
12995
|
}
|
|
12764
12996
|
};
|
|
@@ -12792,6 +13024,12 @@ __decorate([
|
|
|
12792
13024
|
__metadata("design:paramtypes", [Object]),
|
|
12793
13025
|
__metadata("design:returntype", Promise)
|
|
12794
13026
|
], TagImplications.prototype, "search", null);
|
|
13027
|
+
__decorate([
|
|
13028
|
+
OperationID("tag_implications#undo"),
|
|
13029
|
+
__metadata("design:type", Function),
|
|
13030
|
+
__metadata("design:paramtypes", [Number]),
|
|
13031
|
+
__metadata("design:returntype", Promise)
|
|
13032
|
+
], TagImplications.prototype, "undo", null);
|
|
12795
13033
|
__decorate([
|
|
12796
13034
|
OperationID("tag_implications#update"),
|
|
12797
13035
|
__metadata("design:type", Function),
|
|
@@ -13045,7 +13283,7 @@ var ForumPostVotes = class extends Base2 {
|
|
|
13045
13283
|
return forumPostVotes_create({
|
|
13046
13284
|
client: this.client,
|
|
13047
13285
|
path: { id },
|
|
13048
|
-
body: { score }
|
|
13286
|
+
body: { "forum_post_vote[score]": score }
|
|
13049
13287
|
}).then((res) => this._handleResponse(res, 200, true));
|
|
13050
13288
|
}
|
|
13051
13289
|
/**
|
|
@@ -13641,7 +13879,7 @@ var StaffUsers = class extends Base2 {
|
|
|
13641
13879
|
return staffUsers_update({
|
|
13642
13880
|
client: this.client,
|
|
13643
13881
|
path: { id },
|
|
13644
|
-
body: options
|
|
13882
|
+
body: prefixKeys(options, "user")
|
|
13645
13883
|
}).then((res) => this._handleResponse(res, 204, true));
|
|
13646
13884
|
}
|
|
13647
13885
|
/**
|
|
@@ -13656,7 +13894,7 @@ var StaffUsers = class extends Base2 {
|
|
|
13656
13894
|
return staffUsers_updateBlacklist({
|
|
13657
13895
|
client: this.client,
|
|
13658
13896
|
path: { id },
|
|
13659
|
-
body: { user:
|
|
13897
|
+
body: { "user[blacklisted_tags]": blacklisted_tags }
|
|
13660
13898
|
}).then((res) => this._handleResponse(res, 302, true));
|
|
13661
13899
|
}
|
|
13662
13900
|
};
|
|
@@ -14673,6 +14911,7 @@ function apply(e621, client2, defaultPostFormat = {}) {
|
|
|
14673
14911
|
tags: new Tags(baseE621, client2),
|
|
14674
14912
|
takedowns: new Takedowns(baseE621, client2),
|
|
14675
14913
|
tickets: new Tickets(baseE621, client2),
|
|
14914
|
+
uploadKarmaEvents: new UploadKarmaEvents(baseE621, client2),
|
|
14676
14915
|
uploads: new Uploads(e621, client2),
|
|
14677
14916
|
uploadWhitelists: new UploadWhitelists(baseE621, client2),
|
|
14678
14917
|
users: new Users(baseE621, client2),
|
|
@@ -14801,7 +15040,6 @@ __export(schemas_exports, {
|
|
|
14801
15040
|
BanSchema: () => BanSchema,
|
|
14802
15041
|
BasicPostSchema: () => BasicPostSchema,
|
|
14803
15042
|
BlipSchema: () => BlipSchema,
|
|
14804
|
-
BulkRelatedTagSchema: () => BulkRelatedTagSchema,
|
|
14805
15043
|
BulkUpdateRequestSchema: () => BulkUpdateRequestSchema,
|
|
14806
15044
|
CommentSchema: () => CommentSchema,
|
|
14807
15045
|
CommentVoteSchema: () => CommentVoteSchema,
|
|
@@ -14887,7 +15125,6 @@ __export(schemas_exports, {
|
|
|
14887
15125
|
RatingSchema: () => RatingSchema,
|
|
14888
15126
|
RawPostSchema: () => RawPostSchema,
|
|
14889
15127
|
RecommendedPostsSchema: () => RecommendedPostsSchema,
|
|
14890
|
-
RelatedTagSchema: () => RelatedTagSchema,
|
|
14891
15128
|
RisingSearchTrendSchema: () => RisingSearchTrendSchema,
|
|
14892
15129
|
SearchTrendBlacklistSchema: () => SearchTrendBlacklistSchema,
|
|
14893
15130
|
SearchTrendHourlySchema: () => SearchTrendHourlySchema,
|
|
@@ -14911,6 +15148,7 @@ __export(schemas_exports, {
|
|
|
14911
15148
|
TagRequestStatusSchema: () => TagRequestStatusSchema,
|
|
14912
15149
|
TagSchema: () => TagSchema,
|
|
14913
15150
|
TagTypeVersionSchema: () => TagTypeVersionSchema,
|
|
15151
|
+
TagWithCountSchema: () => TagWithCountSchema,
|
|
14914
15152
|
TakedownSchema: () => TakedownSchema,
|
|
14915
15153
|
ThumbnailPostSchema: () => ThumbnailPostSchema,
|
|
14916
15154
|
TicketSchema: () => TicketSchema,
|
|
@@ -15050,8 +15288,10 @@ var ModActionActionSchema = {
|
|
|
15050
15288
|
"tag_destroy",
|
|
15051
15289
|
"tag_alias_create",
|
|
15052
15290
|
"tag_alias_update",
|
|
15291
|
+
"tag_alias_undo",
|
|
15053
15292
|
"tag_implication_create",
|
|
15054
15293
|
"tag_implication_update",
|
|
15294
|
+
"tag_implication_undo",
|
|
15055
15295
|
"ticket_claim",
|
|
15056
15296
|
"ticket_unclaim",
|
|
15057
15297
|
"ticket_update",
|
|
@@ -15409,6 +15649,15 @@ var UserLevelNameSchema = {
|
|
|
15409
15649
|
"Admin"
|
|
15410
15650
|
]
|
|
15411
15651
|
};
|
|
15652
|
+
var WarningRecordTypeSchema = {
|
|
15653
|
+
type: "string",
|
|
15654
|
+
enum: [
|
|
15655
|
+
"warning",
|
|
15656
|
+
"record",
|
|
15657
|
+
"ban",
|
|
15658
|
+
"unmark"
|
|
15659
|
+
]
|
|
15660
|
+
};
|
|
15412
15661
|
var WarningTypeSchema = {
|
|
15413
15662
|
type: "string",
|
|
15414
15663
|
enum: [
|
|
@@ -15889,24 +16138,6 @@ var BlipSchema = {
|
|
|
15889
16138
|
}
|
|
15890
16139
|
}
|
|
15891
16140
|
};
|
|
15892
|
-
var BulkRelatedTagSchema = {
|
|
15893
|
-
allOf: [
|
|
15894
|
-
{
|
|
15895
|
-
$ref: "#/components/schemas/RelatedTag"
|
|
15896
|
-
},
|
|
15897
|
-
{
|
|
15898
|
-
type: "object",
|
|
15899
|
-
required: [
|
|
15900
|
-
"count"
|
|
15901
|
-
],
|
|
15902
|
-
properties: {
|
|
15903
|
-
count: {
|
|
15904
|
-
type: "integer"
|
|
15905
|
-
}
|
|
15906
|
-
}
|
|
15907
|
-
}
|
|
15908
|
-
]
|
|
15909
|
-
};
|
|
15910
16141
|
var BulkUpdateRequestSchema = {
|
|
15911
16142
|
type: "object",
|
|
15912
16143
|
required: [
|
|
@@ -16091,7 +16322,6 @@ var CurrentUserSchema = {
|
|
|
16091
16322
|
"receive_email_notifications",
|
|
16092
16323
|
"enable_keyboard_navigation",
|
|
16093
16324
|
"enable_privacy_mode",
|
|
16094
|
-
"style_usernames",
|
|
16095
16325
|
"enable_auto_complete",
|
|
16096
16326
|
"disable_cropped_thumbnails",
|
|
16097
16327
|
"enable_safe_mode",
|
|
@@ -16147,9 +16377,6 @@ var CurrentUserSchema = {
|
|
|
16147
16377
|
enable_privacy_mode: {
|
|
16148
16378
|
type: "boolean"
|
|
16149
16379
|
},
|
|
16150
|
-
style_usernames: {
|
|
16151
|
-
type: "boolean"
|
|
16152
|
-
},
|
|
16153
16380
|
enable_auto_complete: {
|
|
16154
16381
|
type: "boolean"
|
|
16155
16382
|
},
|
|
@@ -17337,6 +17564,10 @@ var LegacyPostSchema = {
|
|
|
17337
17564
|
url: {
|
|
17338
17565
|
type: "string",
|
|
17339
17566
|
nullable: true
|
|
17567
|
+
},
|
|
17568
|
+
alt: {
|
|
17569
|
+
type: "string",
|
|
17570
|
+
nullable: true
|
|
17340
17571
|
}
|
|
17341
17572
|
}
|
|
17342
17573
|
},
|
|
@@ -17365,6 +17596,10 @@ var LegacyPostSchema = {
|
|
|
17365
17596
|
type: "string",
|
|
17366
17597
|
nullable: true
|
|
17367
17598
|
},
|
|
17599
|
+
alt: {
|
|
17600
|
+
type: "string",
|
|
17601
|
+
nullable: true
|
|
17602
|
+
},
|
|
17368
17603
|
alternates: {
|
|
17369
17604
|
type: "object",
|
|
17370
17605
|
properties: {
|
|
@@ -18516,6 +18751,45 @@ var PostFilesSchema = {
|
|
|
18516
18751
|
},
|
|
18517
18752
|
sample: {
|
|
18518
18753
|
$ref: "#/components/schemas/PostFilesSample"
|
|
18754
|
+
},
|
|
18755
|
+
video: {
|
|
18756
|
+
type: "object",
|
|
18757
|
+
required: [
|
|
18758
|
+
"has",
|
|
18759
|
+
"original",
|
|
18760
|
+
"variants",
|
|
18761
|
+
"samples"
|
|
18762
|
+
],
|
|
18763
|
+
properties: {
|
|
18764
|
+
has: {
|
|
18765
|
+
type: "boolean"
|
|
18766
|
+
},
|
|
18767
|
+
original: {
|
|
18768
|
+
$ref: "#/components/schemas/PostSampleAlternate"
|
|
18769
|
+
},
|
|
18770
|
+
variants: {
|
|
18771
|
+
type: "object",
|
|
18772
|
+
properties: {
|
|
18773
|
+
webm: {
|
|
18774
|
+
$ref: "#/components/schemas/PostSampleAlternate"
|
|
18775
|
+
},
|
|
18776
|
+
mp4: {
|
|
18777
|
+
$ref: "#/components/schemas/PostSampleAlternate"
|
|
18778
|
+
}
|
|
18779
|
+
}
|
|
18780
|
+
},
|
|
18781
|
+
samples: {
|
|
18782
|
+
type: "object",
|
|
18783
|
+
properties: {
|
|
18784
|
+
"480p": {
|
|
18785
|
+
$ref: "#/components/schemas/PostSampleAlternate"
|
|
18786
|
+
},
|
|
18787
|
+
"720p": {
|
|
18788
|
+
$ref: "#/components/schemas/PostSampleAlternate"
|
|
18789
|
+
}
|
|
18790
|
+
}
|
|
18791
|
+
}
|
|
18792
|
+
}
|
|
18519
18793
|
}
|
|
18520
18794
|
}
|
|
18521
18795
|
};
|
|
@@ -18868,7 +19142,8 @@ var PostSampleAlternateSchema = {
|
|
|
18868
19142
|
format: "float"
|
|
18869
19143
|
},
|
|
18870
19144
|
codec: {
|
|
18871
|
-
type: "string"
|
|
19145
|
+
type: "string",
|
|
19146
|
+
nullable: true
|
|
18872
19147
|
},
|
|
18873
19148
|
size: {
|
|
18874
19149
|
type: "integer",
|
|
@@ -18882,7 +19157,8 @@ var PostSampleAlternateSchema = {
|
|
|
18882
19157
|
},
|
|
18883
19158
|
url: {
|
|
18884
19159
|
type: "string",
|
|
18885
|
-
format: "uri"
|
|
19160
|
+
format: "uri",
|
|
19161
|
+
nullable: true
|
|
18886
19162
|
}
|
|
18887
19163
|
}
|
|
18888
19164
|
};
|
|
@@ -18949,7 +19225,8 @@ var PostStatsSchema = {
|
|
|
18949
19225
|
"fav_count",
|
|
18950
19226
|
"is_favorited",
|
|
18951
19227
|
"vote",
|
|
18952
|
-
"comment_count"
|
|
19228
|
+
"comment_count",
|
|
19229
|
+
"hotness"
|
|
18953
19230
|
],
|
|
18954
19231
|
properties: {
|
|
18955
19232
|
score: {
|
|
@@ -18966,6 +19243,10 @@ var PostStatsSchema = {
|
|
|
18966
19243
|
},
|
|
18967
19244
|
comment_count: {
|
|
18968
19245
|
type: "integer"
|
|
19246
|
+
},
|
|
19247
|
+
hotness: {
|
|
19248
|
+
type: "number",
|
|
19249
|
+
format: "float"
|
|
18969
19250
|
}
|
|
18970
19251
|
}
|
|
18971
19252
|
};
|
|
@@ -19421,21 +19702,6 @@ var RecommendedPostsSchema = {
|
|
|
19421
19702
|
}
|
|
19422
19703
|
}
|
|
19423
19704
|
};
|
|
19424
|
-
var RelatedTagSchema = {
|
|
19425
|
-
type: "object",
|
|
19426
|
-
required: [
|
|
19427
|
-
"name",
|
|
19428
|
-
"category_id"
|
|
19429
|
-
],
|
|
19430
|
-
properties: {
|
|
19431
|
-
name: {
|
|
19432
|
-
type: "string"
|
|
19433
|
-
},
|
|
19434
|
-
category_id: {
|
|
19435
|
-
$ref: "#/components/schemas/TagCategory"
|
|
19436
|
-
}
|
|
19437
|
-
}
|
|
19438
|
-
};
|
|
19439
19705
|
var RisingSearchTrendSchema = {
|
|
19440
19706
|
type: "object",
|
|
19441
19707
|
required: [
|
|
@@ -19847,7 +20113,7 @@ var StatsSchema = {
|
|
|
19847
20113
|
"blocked_users",
|
|
19848
20114
|
"member_users",
|
|
19849
20115
|
"privileged_users",
|
|
19850
|
-
"
|
|
20116
|
+
"former_staff_users",
|
|
19851
20117
|
"staff_users",
|
|
19852
20118
|
"janitor_users",
|
|
19853
20119
|
"moderator_users",
|
|
@@ -19989,7 +20255,7 @@ var StatsSchema = {
|
|
|
19989
20255
|
privileged_users: {
|
|
19990
20256
|
type: "integer"
|
|
19991
20257
|
},
|
|
19992
|
-
|
|
20258
|
+
former_staff_users: {
|
|
19993
20259
|
type: "integer"
|
|
19994
20260
|
},
|
|
19995
20261
|
staff_users: {
|
|
@@ -20367,6 +20633,25 @@ var TagTypeVersionSchema = {
|
|
|
20367
20633
|
}
|
|
20368
20634
|
}
|
|
20369
20635
|
};
|
|
20636
|
+
var TagWithCountSchema = {
|
|
20637
|
+
type: "object",
|
|
20638
|
+
required: [
|
|
20639
|
+
"name",
|
|
20640
|
+
"category_id",
|
|
20641
|
+
"count"
|
|
20642
|
+
],
|
|
20643
|
+
properties: {
|
|
20644
|
+
name: {
|
|
20645
|
+
type: "string"
|
|
20646
|
+
},
|
|
20647
|
+
category_id: {
|
|
20648
|
+
$ref: "#/components/schemas/TagCategory"
|
|
20649
|
+
},
|
|
20650
|
+
count: {
|
|
20651
|
+
type: "integer"
|
|
20652
|
+
}
|
|
20653
|
+
}
|
|
20654
|
+
};
|
|
20370
20655
|
var TakedownSchema = {
|
|
20371
20656
|
type: "object",
|
|
20372
20657
|
required: [
|
|
@@ -21124,23 +21409,6 @@ var VoteTrendUploaderSchema = {
|
|
|
21124
21409
|
}
|
|
21125
21410
|
}
|
|
21126
21411
|
};
|
|
21127
|
-
var WarningRecordTypeSchema = {
|
|
21128
|
-
type: "object",
|
|
21129
|
-
required: [
|
|
21130
|
-
"record_type"
|
|
21131
|
-
],
|
|
21132
|
-
properties: {
|
|
21133
|
-
record_type: {
|
|
21134
|
-
type: "string",
|
|
21135
|
-
enum: [
|
|
21136
|
-
"unmark",
|
|
21137
|
-
"ban",
|
|
21138
|
-
"record",
|
|
21139
|
-
"warning"
|
|
21140
|
-
]
|
|
21141
|
-
}
|
|
21142
|
-
}
|
|
21143
|
-
};
|
|
21144
21412
|
var WikiPageSchema = {
|
|
21145
21413
|
type: "object",
|
|
21146
21414
|
required: [
|
|
@@ -21525,6 +21793,7 @@ export {
|
|
|
21525
21793
|
Ticket_default as Ticket,
|
|
21526
21794
|
UnexpectedResponseError,
|
|
21527
21795
|
Upload_default as Upload,
|
|
21796
|
+
UploadKarmaEvent_default as UploadKarmaEvent,
|
|
21528
21797
|
UploadWhitelist_default as UploadWhitelist,
|
|
21529
21798
|
User_default as User,
|
|
21530
21799
|
UserAlt_default as UserAlt,
|