lemmy-js-client 1.0.0-post-tags.0 → 1.0.0-post-notifications.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/README.md +12 -3
  2. package/dist/http.d.ts +99 -59
  3. package/dist/http.js +1002 -870
  4. package/dist/index.d.ts +52 -30
  5. package/dist/other_types.d.ts +21 -0
  6. package/dist/types/AdminAllowInstance.d.ts +1 -1
  7. package/dist/types/AdminBlockInstance.d.ts +2 -2
  8. package/dist/types/AdminBlockInstanceParams.d.ts +1 -1
  9. package/dist/types/AdminListUsers.d.ts +7 -0
  10. package/dist/types/AdminListUsersResponse.d.ts +10 -0
  11. package/dist/types/AdminPurgeComment.d.ts +1 -1
  12. package/dist/types/AdminPurgeCommunity.d.ts +1 -1
  13. package/dist/types/AdminPurgePerson.d.ts +1 -1
  14. package/dist/types/AdminPurgePost.d.ts +1 -1
  15. package/dist/types/BanFromCommunity.d.ts +1 -1
  16. package/dist/types/BanPerson.d.ts +1 -1
  17. package/dist/types/Comment.d.ts +16 -2
  18. package/dist/types/CommentActions.d.ts +14 -0
  19. package/dist/types/CommentReply.d.ts +1 -1
  20. package/dist/types/CommentReport.d.ts +3 -2
  21. package/dist/types/CommentReportView.d.ts +7 -10
  22. package/dist/types/CommentResponse.d.ts +0 -2
  23. package/dist/types/CommentSlimView.d.ts +10 -10
  24. package/dist/types/CommentView.d.ts +14 -10
  25. package/dist/types/Community.d.ts +27 -8
  26. package/dist/types/CommunityActions.d.ts +27 -0
  27. package/dist/types/CommunityIdQuery.d.ts +8 -0
  28. package/dist/types/CommunityReport.d.ts +2 -2
  29. package/dist/types/CommunityReportResponse.d.ts +7 -0
  30. package/dist/types/CommunityReportView.d.ts +0 -4
  31. package/dist/types/CommunitySortType.d.ts +1 -1
  32. package/dist/types/CommunityView.d.ts +7 -6
  33. package/dist/types/CommunityVisibility.d.ts +1 -1
  34. package/dist/types/CreateCommentReport.d.ts +1 -0
  35. package/dist/types/CreateCommunityReport.d.ts +8 -0
  36. package/dist/types/CreateCommunityTag.d.ts +1 -2
  37. package/dist/types/CreateMultiCommunity.d.ts +5 -0
  38. package/dist/types/CreateOrDeleteMultiCommunityEntry.d.ts +6 -0
  39. package/dist/types/CreatePost.d.ts +1 -1
  40. package/dist/types/CreatePostReport.d.ts +1 -0
  41. package/dist/types/CreateSite.d.ts +19 -14
  42. package/dist/types/CustomEmoji.d.ts +2 -2
  43. package/dist/types/EditPost.d.ts +3 -1
  44. package/dist/types/EditSite.d.ts +32 -19
  45. package/dist/types/ExportDataResponse.d.ts +13 -0
  46. package/dist/types/FederationBlockList.d.ts +3 -3
  47. package/dist/types/FederationError.d.ts +1 -1
  48. package/dist/types/FollowMultiCommunity.d.ts +5 -0
  49. package/dist/types/GetComments.d.ts +8 -3
  50. package/dist/types/GetCommentsResponse.d.ts +3 -0
  51. package/dist/types/GetCommentsSlimResponse.d.ts +3 -0
  52. package/dist/types/GetModlog.d.ts +27 -2
  53. package/dist/types/GetModlogResponse.d.ts +6 -0
  54. package/dist/types/GetMultiCommunity.d.ts +4 -0
  55. package/dist/types/GetMultiCommunityResponse.d.ts +6 -0
  56. package/dist/types/GetPostResponse.d.ts +0 -2
  57. package/dist/types/GetPosts.d.ts +7 -7
  58. package/dist/types/GetPostsResponse.d.ts +1 -0
  59. package/dist/types/GetSiteResponse.d.ts +4 -2
  60. package/dist/types/ImageDetails.d.ts +1 -0
  61. package/dist/types/InboxDataType.d.ts +1 -1
  62. package/dist/types/Instance.d.ts +13 -3
  63. package/dist/types/InstanceActions.d.ts +14 -0
  64. package/dist/types/InstanceWithFederationState.d.ts +11 -2
  65. package/dist/types/LemmyErrorType.d.ts +95 -28
  66. package/dist/types/LikeType.d.ts +4 -0
  67. package/dist/types/ListCommentLikes.d.ts +3 -1
  68. package/dist/types/ListCommentLikesResponse.d.ts +6 -0
  69. package/dist/types/ListCommunities.d.ts +8 -1
  70. package/dist/types/ListCommunitiesResponse.d.ts +6 -0
  71. package/dist/types/ListCommunityPendingFollows.d.ts +3 -1
  72. package/dist/types/ListCommunityPendingFollows.js +0 -1
  73. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +6 -0
  74. package/dist/types/ListCustomEmojis.d.ts +0 -3
  75. package/dist/types/ListInbox.d.ts +3 -2
  76. package/dist/types/ListInboxResponse.d.ts +8 -2
  77. package/dist/types/ListMedia.d.ts +3 -1
  78. package/dist/types/ListMedia.js +0 -1
  79. package/dist/types/ListMediaResponse.d.ts +6 -0
  80. package/dist/types/ListMultiCommunities.d.ts +5 -0
  81. package/dist/types/ListMultiCommunitiesResponse.d.ts +4 -0
  82. package/dist/types/ListPersonContent.d.ts +3 -2
  83. package/dist/types/ListPersonContentResponse.d.ts +6 -0
  84. package/dist/types/ListPersonHidden.d.ts +9 -0
  85. package/dist/types/ListPersonHiddenResponse.d.ts +13 -0
  86. package/dist/types/ListPersonLiked.d.ts +13 -0
  87. package/dist/types/ListPersonLikedResponse.d.ts +13 -0
  88. package/dist/types/ListPersonRead.d.ts +9 -0
  89. package/dist/types/ListPersonReadResponse.d.ts +13 -0
  90. package/dist/types/ListPersonSaved.d.ts +3 -2
  91. package/dist/types/ListPersonSavedResponse.d.ts +8 -2
  92. package/dist/types/ListPostLikes.d.ts +3 -1
  93. package/dist/types/ListPostLikesResponse.d.ts +6 -0
  94. package/dist/types/ListRegistrationApplications.d.ts +3 -1
  95. package/dist/types/ListRegistrationApplications.js +0 -1
  96. package/dist/types/ListRegistrationApplicationsResponse.d.ts +6 -0
  97. package/dist/types/ListReports.d.ts +11 -2
  98. package/dist/types/ListReportsResponse.d.ts +6 -0
  99. package/dist/types/ListTaglines.d.ts +3 -1
  100. package/dist/types/ListTaglines.js +0 -1
  101. package/dist/types/ListTaglinesResponse.d.ts +6 -0
  102. package/dist/types/ListingType.d.ts +1 -1
  103. package/dist/types/LocalImage.d.ts +8 -3
  104. package/dist/types/LocalImageView.d.ts +2 -0
  105. package/dist/types/LocalSite.d.ts +36 -9
  106. package/dist/types/LocalSiteRateLimit.d.ts +16 -16
  107. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  108. package/dist/types/LocalUser.d.ts +11 -1
  109. package/dist/types/LocalUserView.d.ts +1 -4
  110. package/dist/types/LockPost.d.ts +1 -0
  111. package/dist/types/Login.d.ts +3 -0
  112. package/dist/types/LoginToken.d.ts +1 -1
  113. package/dist/types/MarkNotificationAsRead.d.ts +8 -0
  114. package/dist/types/ModAdd.d.ts +1 -1
  115. package/dist/types/ModAddCommunity.d.ts +1 -1
  116. package/dist/types/ModBan.d.ts +4 -2
  117. package/dist/types/ModBanFromCommunity.d.ts +2 -2
  118. package/dist/types/ModChangeCommunityVisibility.d.ts +11 -0
  119. package/dist/types/ModChangeCommunityVisibilityId.d.ts +1 -0
  120. package/dist/types/ModChangeCommunityVisibilityView.d.ts +11 -0
  121. package/dist/types/ModChangeCommunityVisibilityView.js +2 -0
  122. package/dist/types/ModFeaturePost.d.ts +1 -1
  123. package/dist/types/ModLockPost.d.ts +2 -1
  124. package/dist/types/ModRemoveComment.d.ts +1 -1
  125. package/dist/types/ModRemoveCommunity.d.ts +1 -1
  126. package/dist/types/ModRemovePost.d.ts +1 -1
  127. package/dist/types/ModTransferCommunity.d.ts +1 -1
  128. package/dist/types/ModlogActionType.d.ts +1 -1
  129. package/dist/types/ModlogCombinedView.d.ts +3 -3
  130. package/dist/types/MultiCommunity.d.ts +17 -0
  131. package/dist/types/MultiCommunity.js +2 -0
  132. package/dist/types/MultiCommunityFollow.d.ts +8 -0
  133. package/dist/types/MultiCommunityFollow.js +2 -0
  134. package/dist/types/MultiCommunityId.d.ts +1 -0
  135. package/dist/types/MultiCommunityView.d.ts +6 -0
  136. package/dist/types/MultiCommunityView.js +2 -0
  137. package/dist/types/MyUserInfo.d.ts +1 -0
  138. package/dist/types/NotePerson.d.ts +10 -0
  139. package/dist/types/NotePerson.js +2 -0
  140. package/dist/types/Notification.d.ts +14 -0
  141. package/dist/types/Notification.js +2 -0
  142. package/dist/types/NotificationId.d.ts +1 -0
  143. package/dist/types/NotificationTypes.d.ts +4 -0
  144. package/dist/types/NotificationView.d.ts +36 -0
  145. package/dist/types/NotificationView.js +2 -0
  146. package/dist/types/NotificationsMode.d.ts +4 -0
  147. package/dist/types/OAuthAccount.d.ts +2 -2
  148. package/dist/types/OAuthProvider.d.ts +2 -2
  149. package/dist/types/PaginationCursor.d.ts +1 -4
  150. package/dist/types/PendingFollow.d.ts +2 -2
  151. package/dist/types/Person.d.ts +6 -12
  152. package/dist/types/PersonActions.d.ts +26 -0
  153. package/dist/types/PersonActions.js +3 -0
  154. package/dist/types/PersonCommentMention.d.ts +1 -1
  155. package/dist/types/PersonLikedCombinedView.d.ts +7 -0
  156. package/dist/types/PersonLikedCombinedView.js +2 -0
  157. package/dist/types/PersonNotification.d.ts +9 -0
  158. package/dist/types/PersonNotification.js +2 -0
  159. package/dist/types/PersonPostMention.d.ts +1 -1
  160. package/dist/types/PersonSavedCombinedView.d.ts +7 -0
  161. package/dist/types/PersonSavedCombinedView.js +2 -0
  162. package/dist/types/PersonView.d.ts +3 -2
  163. package/dist/types/PluginMetadata.d.ts +5 -0
  164. package/dist/types/PluginMetadata.js +3 -0
  165. package/dist/types/Post.d.ts +18 -3
  166. package/dist/types/PostActions.d.ts +33 -0
  167. package/dist/types/PostActions.js +2 -0
  168. package/dist/types/PostOrCommentOrPrivateMessage.d.ts +10 -0
  169. package/dist/types/PostOrCommentOrPrivateMessage.js +2 -0
  170. package/dist/types/PostReport.d.ts +3 -2
  171. package/dist/types/PostReportView.d.ts +7 -13
  172. package/dist/types/PostSortType.d.ts +1 -1
  173. package/dist/types/PostView.d.ts +14 -15
  174. package/dist/types/PrivateMessage.d.ts +3 -2
  175. package/dist/types/PrivateMessageReport.d.ts +2 -2
  176. package/dist/types/PrivateMessageReportView.d.ts +1 -1
  177. package/dist/types/ReadableFederationState.d.ts +2 -2
  178. package/dist/types/RegistrationApplication.d.ts +1 -1
  179. package/dist/types/ResendVerificationEmail.d.ts +7 -0
  180. package/dist/types/ResendVerificationEmail.js +2 -0
  181. package/dist/types/ResolveCommunityReport.d.ts +8 -0
  182. package/dist/types/ResolveCommunityReport.js +2 -0
  183. package/dist/types/SaveUserSettings.d.ts +11 -1
  184. package/dist/types/Search.d.ts +13 -3
  185. package/dist/types/SearchCombinedView.d.ts +4 -1
  186. package/dist/types/SearchResponse.d.ts +6 -0
  187. package/dist/types/SearchType.d.ts +1 -1
  188. package/dist/types/Site.d.ts +6 -5
  189. package/dist/types/SiteResponse.d.ts +0 -4
  190. package/dist/types/SiteView.d.ts +2 -2
  191. package/dist/types/Tag.d.ts +10 -8
  192. package/dist/types/Tagline.d.ts +4 -3
  193. package/dist/types/Tagline.js +0 -1
  194. package/dist/types/{PostTags.d.ts → TagsView.d.ts} +1 -1
  195. package/dist/types/TagsView.js +2 -0
  196. package/dist/types/UpdateCommunityNotifications.d.ts +9 -0
  197. package/dist/types/UpdateCommunityNotifications.js +2 -0
  198. package/dist/types/UpdateCommunityTag.d.ts +1 -1
  199. package/dist/types/UpdateMultiCommunity.d.ts +7 -0
  200. package/dist/types/UpdateMultiCommunity.js +2 -0
  201. package/dist/types/UpdatePostNotifications.d.ts +9 -0
  202. package/dist/types/UpdatePostNotifications.js +2 -0
  203. package/dist/types/UserSettingsBackup.d.ts +26 -0
  204. package/dist/types/UserSettingsBackup.js +2 -0
  205. package/dist/types/VoteShow.d.ts +4 -0
  206. package/dist/types/VoteShow.js +3 -0
  207. package/package.json +8 -5
  208. package/dist/types/BannedPersonsResponse.d.ts +0 -7
  209. package/dist/types/CommentAggregates.d.ts +0 -17
  210. package/dist/types/CommentReplyView.d.ts +0 -27
  211. package/dist/types/CommunityAggregates.d.ts +0 -30
  212. package/dist/types/CommunityTagResponse.d.ts +0 -7
  213. package/dist/types/InboxCombinedPaginationCursor.d.ts +0 -4
  214. package/dist/types/InboxCombinedView.d.ts +0 -13
  215. package/dist/types/ListCommunityTags.d.ts +0 -7
  216. package/dist/types/ListCommunityTagsResponse.d.ts +0 -4
  217. package/dist/types/LocalUserVoteDisplayMode.d.ts +0 -9
  218. package/dist/types/MarkCommentReplyAsRead.d.ts +0 -8
  219. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +0 -8
  220. package/dist/types/MarkPersonPostMentionAsRead.d.ts +0 -8
  221. package/dist/types/ModHideCommunity.d.ts +0 -14
  222. package/dist/types/ModHideCommunityId.d.ts +0 -1
  223. package/dist/types/ModHideCommunityView.d.ts +0 -11
  224. package/dist/types/ModlogCombinedPaginationCursor.d.ts +0 -4
  225. package/dist/types/PersonAggregates.d.ts +0 -9
  226. package/dist/types/PersonCommentMentionView.d.ts +0 -27
  227. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +0 -4
  228. package/dist/types/PersonPostMentionView.d.ts +0 -32
  229. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +0 -4
  230. package/dist/types/PostAggregates.d.ts +0 -18
  231. package/dist/types/ReportCombinedPaginationCursor.d.ts +0 -4
  232. package/dist/types/ResolveObjectResponse.d.ts +0 -13
  233. package/dist/types/SearchCombinedPaginationCursor.d.ts +0 -4
  234. package/dist/types/SiteAggregates.d.ts +0 -27
  235. package/dist/types/SubscribedType.d.ts +0 -4
  236. package/dist/types/UpdatePostTags.d.ts +0 -9
  237. /package/dist/types/{BannedPersonsResponse.js → AdminListUsers.js} +0 -0
  238. /package/dist/types/{CommentAggregates.js → AdminListUsersResponse.js} +0 -0
  239. /package/dist/types/{InboxCombinedPaginationCursor.js → CommentActions.js} +0 -0
  240. /package/dist/types/{CommentReplyView.js → CommunityActions.js} +0 -0
  241. /package/dist/types/{CommunityAggregates.js → CommunityIdQuery.js} +0 -0
  242. /package/dist/types/{CommunityTagResponse.js → CommunityReportResponse.js} +0 -0
  243. /package/dist/types/{InboxCombinedView.js → CreateCommunityReport.js} +0 -0
  244. /package/dist/types/{LocalUserVoteDisplayMode.js → CreateMultiCommunity.js} +0 -0
  245. /package/dist/types/{ListCommunityTags.js → CreateOrDeleteMultiCommunityEntry.js} +0 -0
  246. /package/dist/types/{ListCommunityTagsResponse.js → ExportDataResponse.js} +0 -0
  247. /package/dist/types/{MarkCommentReplyAsRead.js → FollowMultiCommunity.js} +0 -0
  248. /package/dist/types/{MarkPersonCommentMentionAsRead.js → GetMultiCommunity.js} +0 -0
  249. /package/dist/types/{MarkPersonPostMentionAsRead.js → GetMultiCommunityResponse.js} +0 -0
  250. /package/dist/types/{ModHideCommunityId.js → InstanceActions.js} +0 -0
  251. /package/dist/types/{ModlogCombinedPaginationCursor.js → LikeType.js} +0 -0
  252. /package/dist/types/{ModHideCommunity.js → ListMultiCommunities.js} +0 -0
  253. /package/dist/types/{ModHideCommunityView.js → ListMultiCommunitiesResponse.js} +0 -0
  254. /package/dist/types/{PersonAggregates.js → ListPersonHidden.js} +0 -0
  255. /package/dist/types/{PersonCommentMentionView.js → ListPersonHiddenResponse.js} +0 -0
  256. /package/dist/types/{PersonPostMentionView.js → ListPersonLiked.js} +0 -0
  257. /package/dist/types/{PostAggregates.js → ListPersonLikedResponse.js} +0 -0
  258. /package/dist/types/{PostTags.js → ListPersonRead.js} +0 -0
  259. /package/dist/types/{ResolveObjectResponse.js → ListPersonReadResponse.js} +0 -0
  260. /package/dist/types/{SiteAggregates.js → MarkNotificationAsRead.js} +0 -0
  261. /package/dist/types/{UpdatePostTags.js → ModChangeCommunityVisibility.js} +0 -0
  262. /package/dist/types/{PersonContentCombinedPaginationCursor.js → ModChangeCommunityVisibilityId.js} +0 -0
  263. /package/dist/types/{PersonSavedCombinedPaginationCursor.js → MultiCommunityId.js} +0 -0
  264. /package/dist/types/{ReportCombinedPaginationCursor.js → NotificationId.js} +0 -0
  265. /package/dist/types/{SearchCombinedPaginationCursor.js → NotificationTypes.js} +0 -0
  266. /package/dist/types/{SubscribedType.js → NotificationsMode.js} +0 -0
package/dist/http.js CHANGED
@@ -19,11 +19,11 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
19
19
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
20
20
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
21
21
  };
22
- var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_wrapper;
22
+ var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_uploadWithQuery, _LemmyHttp_wrapper;
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.LemmyHttp = void 0;
24
+ exports.LemmyError = exports.LemmyHttp = void 0;
25
+ const runtime_1 = require("@tsoa/runtime");
25
26
  const other_types_1 = require("./other_types");
26
- const tsoa_1 = require("tsoa");
27
27
  var HttpType;
28
28
  (function (HttpType) {
29
29
  HttpType["Get"] = "GET";
@@ -34,7 +34,7 @@ var HttpType;
34
34
  /**
35
35
  * Helps build lemmy HTTP requests.
36
36
  */
37
- let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
37
+ let LemmyHttp = class LemmyHttp extends runtime_1.Controller {
38
38
  /**
39
39
  * Generates a new instance of LemmyHttp.
40
40
  * @param baseUrl the base url, without the vX version: https://lemmy.ml -> goes to https://lemmy.ml/api/vX
@@ -57,25 +57,25 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
57
57
  /**
58
58
  * @summary Gets the site, and your user data.
59
59
  */
60
- getSite(options) {
60
+ async getSite(options) {
61
61
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {}, options);
62
62
  }
63
63
  /**
64
64
  * @summary Create your site.
65
65
  */
66
- createSite(form, options) {
66
+ async createSite(form, options) {
67
67
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form, options);
68
68
  }
69
69
  /**
70
70
  * @summary Edit your site.
71
71
  */
72
- editSite(form, options) {
72
+ async editSite(form, options) {
73
73
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form, options);
74
74
  }
75
75
  /**
76
76
  * @summary Leave the Site admins.
77
77
  */
78
- leaveAdmin(options) {
78
+ async leaveAdmin(options) {
79
79
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/leave", {}, options);
80
80
  }
81
81
  /**
@@ -84,13 +84,13 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
84
84
  * Generate a TOTP / two-factor secret.
85
85
  * Afterwards you need to call `/account/auth/totp/update` with a valid token to enable it.
86
86
  */
87
- generateTotpSecret(options) {
87
+ async generateTotpSecret(options) {
88
88
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/generate", {}, options);
89
89
  }
90
90
  /**
91
91
  * @summary Get data of current user.
92
92
  */
93
- getMyUser(options) {
93
+ async getMyUser(options) {
94
94
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account", {}, options);
95
95
  }
96
96
  /**
@@ -99,38 +99,50 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
99
99
  * Export a backup of your user settings, including your saved content,
100
100
  * followed communities, and blocks.
101
101
  */
102
- exportSettings(options) {
102
+ async exportSettings(options) {
103
103
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/settings/export", {}, options);
104
104
  }
105
105
  /**
106
106
  * @summary Import a backup of your user settings.
107
107
  */
108
- importSettings(form, options) {
108
+ async importSettings(form, options) {
109
109
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/settings/import", form, options);
110
110
  }
111
111
  /**
112
112
  * @summary List login tokens for your user
113
113
  */
114
- listLogins(options) {
114
+ async listLogins(options) {
115
115
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_logins", {}, options);
116
116
  }
117
117
  /**
118
118
  * @summary Returns an error message if your auth token is invalid
119
119
  */
120
- validateAuth(options) {
120
+ async validateAuth(options) {
121
121
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/validate_auth", {}, options);
122
122
  }
123
123
  /**
124
- * @summary List all the media for your user
124
+ * @summary List all the media for your account.
125
125
  */
126
- listMedia(form = {}, options) {
127
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_media", form, options);
126
+ async listMedia(form = {}, options) {
127
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/media/list", form, options);
128
+ }
129
+ /**
130
+ * @summary Delete media for your account.
131
+ */
132
+ async deleteMedia(form, options) {
133
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/media", form, options);
134
+ }
135
+ /**
136
+ * @summary Delete any media. (Admin only)
137
+ */
138
+ async deleteMediaAdmin(form, options) {
139
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
128
140
  }
129
141
  /**
130
142
  * @summary List all the media known to your instance.
131
143
  */
132
- listAllMedia(form = {}, options) {
133
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/list_all_media", form, options);
144
+ async listMediaAdmin(form = {}, options) {
145
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/list", form, options);
134
146
  }
135
147
  /**
136
148
  * @summary Enable / Disable TOTP / two-factor authentication.
@@ -139,661 +151,673 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
139
151
  *
140
152
  * Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
141
153
  */
142
- updateTotp(form, options) {
154
+ async updateTotp(form, options) {
143
155
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/update", form, options);
144
156
  }
145
157
  /**
146
158
  * @summary Get the modlog.
147
159
  */
148
- getModlog(form = {}, options) {
160
+ async getModlog(form = {}, options) {
149
161
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form, options);
150
162
  }
151
163
  /**
152
- * @summary Search lemmy.
164
+ * @summary Search lemmy. If `search_term` is a url it also attempts to fetch it, just like `resolve_object`.
153
165
  */
154
- search(form, options) {
166
+ async search(form, options) {
155
167
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form, options);
156
168
  }
157
169
  /**
158
170
  * @summary Fetch a non-local / federated object.
159
171
  */
160
- resolveObject(form, options) {
172
+ async resolveObject(form, options) {
161
173
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form, options);
162
174
  }
163
175
  /**
164
176
  * @summary Create a new community.
165
177
  */
166
- createCommunity(form, options) {
178
+ async createCommunity(form, options) {
167
179
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form, options);
168
180
  }
169
181
  /**
170
182
  * @summary Get / fetch a community.
171
183
  */
172
- getCommunity(form = {}, options) {
184
+ async getCommunity(form = {}, options) {
173
185
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form, options);
174
186
  }
175
187
  /**
176
188
  * @summary Edit a community.
177
189
  */
178
- editCommunity(form, options) {
190
+ async editCommunity(form, options) {
179
191
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form, options);
180
192
  }
181
193
  /**
182
194
  * @summary List communities, with various filters.
183
195
  */
184
- listCommunities(form = {}, options) {
196
+ async listCommunities(form = {}, options) {
185
197
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form, options);
186
198
  }
187
199
  /**
188
200
  * @summary Follow / subscribe to a community.
189
201
  */
190
- followCommunity(form, options) {
202
+ async followCommunity(form, options) {
191
203
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form, options);
192
204
  }
193
205
  /**
194
206
  * @summary Get a community's pending follows count.
195
207
  */
196
- getCommunityPendingFollowsCount(form, options) {
208
+ async getCommunityPendingFollowsCount(form, options) {
197
209
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form, options);
198
210
  }
199
211
  /**
200
212
  * @summary Get a community's pending followers.
201
213
  */
202
- listCommunityPendingFollows(form, options) {
214
+ async listCommunityPendingFollows(form, options) {
203
215
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form, options);
204
216
  }
205
217
  /**
206
218
  * @summary Approve a community pending follow request.
207
219
  */
208
- approveCommunityPendingFollow(form, options) {
220
+ async approveCommunityPendingFollow(form, options) {
209
221
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form, options);
210
222
  }
211
223
  /**
212
224
  * @summary Block a community.
213
225
  */
214
- blockCommunity(form, options) {
226
+ async blockCommunity(form, options) {
215
227
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/community", form, options);
216
228
  }
217
229
  /**
218
230
  * @summary Delete a community.
219
231
  */
220
- deleteCommunity(form, options) {
232
+ async deleteCommunity(form, options) {
221
233
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form, options);
222
234
  }
223
235
  /**
224
236
  * @summary Hide a community from public / "All" view. Admins only.
225
237
  */
226
- hideCommunity(form, options) {
238
+ async hideCommunity(form, options) {
227
239
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form, options);
228
240
  }
229
241
  /**
230
242
  * @summary A moderator remove for a community.
231
243
  */
232
- removeCommunity(form, options) {
244
+ async removeCommunity(form, options) {
233
245
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form, options);
234
246
  }
235
247
  /**
236
248
  * @summary Transfer your community to an existing moderator.
237
249
  */
238
- transferCommunity(form, options) {
250
+ async transferCommunity(form, options) {
239
251
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form, options);
240
252
  }
241
253
  /**
242
254
  * @summary Ban a user from a community.
243
255
  */
244
- banFromCommunity(form, options) {
256
+ async banFromCommunity(form, options) {
245
257
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form, options);
246
258
  }
247
259
  /**
248
260
  * @summary Add a moderator to your community.
249
261
  */
250
- addModToCommunity(form, options) {
262
+ async addModToCommunity(form, options) {
251
263
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form, options);
252
264
  }
253
265
  /**
254
266
  * @summary Get a random community.
255
267
  */
256
- getRandomCommunity(form, options) {
268
+ async getRandomCommunity(form, options) {
257
269
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form, options);
258
270
  }
271
+ /**
272
+ * @summary Create a report for a community.
273
+ */
274
+ async createCommunityReport(form, options) {
275
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/report", form, options);
276
+ }
277
+ /**
278
+ * @summary Resolve a report for a private message.
279
+ */
280
+ async resolveCommunityReport(form, options) {
281
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/report/resolve", form, options);
282
+ }
259
283
  /**
260
284
  * @summary Create a post.
261
285
  */
262
- createPost(form, options) {
286
+ async createPost(form, options) {
263
287
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form, options);
264
288
  }
265
289
  /**
266
290
  * @summary Get / fetch a post.
267
291
  */
268
- getPost(form = {}, options) {
292
+ async getPost(form = {}, options) {
269
293
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form, options);
270
294
  }
271
295
  /**
272
296
  * @summary Edit a post.
273
297
  */
274
- editPost(form, options) {
298
+ async editPost(form, options) {
275
299
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
276
300
  }
277
301
  /**
278
302
  * @summary Delete a post.
279
303
  */
280
- deletePost(form, options) {
304
+ async deletePost(form, options) {
281
305
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form, options);
282
306
  }
283
307
  /**
284
308
  * @summary A moderator remove for a post.
285
309
  */
286
- removePost(form, options) {
310
+ async removePost(form, options) {
287
311
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form, options);
288
312
  }
289
313
  /**
290
314
  * @summary Mark a post as read.
291
315
  */
292
- markPostAsRead(form, options) {
316
+ async markPostAsRead(form, options) {
293
317
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form, options);
294
318
  }
295
319
  /**
296
320
  * @summary Mark multiple posts as read.
297
321
  */
298
- markManyPostAsRead(form, options) {
322
+ async markManyPostAsRead(form, options) {
299
323
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read/many", form, options);
300
324
  }
301
325
  /**
302
326
  * @summary Hide a post from list views.
303
327
  */
304
- hidePost(form, options) {
328
+ async hidePost(form, options) {
305
329
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form, options);
306
330
  }
307
331
  /**
308
332
  * @summary A moderator can lock a post ( IE disable new comments ).
309
333
  */
310
- lockPost(form, options) {
334
+ async lockPost(form, options) {
311
335
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form, options);
312
336
  }
313
337
  /**
314
338
  * @summary A moderator can feature a community post ( IE stick it to the top of a community ).
315
339
  */
316
- featurePost(form, options) {
340
+ async featurePost(form, options) {
317
341
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form, options);
318
342
  }
319
343
  /**
320
344
  * @summary Get / fetch posts, with various filters.
321
345
  */
322
- getPosts(form = {}, options) {
346
+ async getPosts(form = {}, options) {
323
347
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form, options);
324
348
  }
325
349
  /**
326
350
  * @summary Like / vote on a post.
327
351
  */
328
- likePost(form, options) {
352
+ async likePost(form, options) {
329
353
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form, options);
330
354
  }
331
355
  /**
332
356
  * @summary List a post's likes. Admin-only.
333
357
  */
334
- listPostLikes(form, options) {
358
+ async listPostLikes(form, options) {
335
359
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form, options);
336
360
  }
337
361
  /**
338
362
  * @summary Save a post.
339
363
  */
340
- savePost(form, options) {
364
+ async savePost(form, options) {
341
365
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form, options);
342
366
  }
343
367
  /**
344
368
  * @summary Report a post.
345
369
  */
346
- createPostReport(form, options) {
370
+ async createPostReport(form, options) {
347
371
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form, options);
348
372
  }
349
373
  /**
350
374
  * @summary Resolve a post report. Only a mod can do this.
351
375
  */
352
- resolvePostReport(form, options) {
376
+ async resolvePostReport(form, options) {
353
377
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form, options);
354
378
  }
355
379
  /**
356
380
  * @summary Fetch metadata for any given site.
357
381
  */
358
- getSiteMetadata(form, options) {
382
+ async getSiteMetadata(form, options) {
359
383
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form, options);
360
384
  }
361
385
  /**
362
386
  * @summary Create a comment.
363
387
  */
364
- createComment(form, options) {
388
+ async createComment(form, options) {
365
389
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form, options);
366
390
  }
367
391
  /**
368
392
  * @summary Edit a comment.
369
393
  */
370
- editComment(form, options) {
394
+ async editComment(form, options) {
371
395
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form, options);
372
396
  }
373
397
  /**
374
398
  * @summary Delete a comment.
375
399
  */
376
- deleteComment(form, options) {
400
+ async deleteComment(form, options) {
377
401
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form, options);
378
402
  }
379
403
  /**
380
404
  * @summary A moderator remove for a comment.
381
405
  */
382
- removeComment(form, options) {
406
+ async removeComment(form, options) {
383
407
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
384
408
  }
385
- /**
386
- * @summary Mark a comment as read.
387
- */
388
- markCommentReplyAsRead(form, options) {
389
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form, options);
390
- }
391
409
  /**
392
410
  * @summary Like / vote on a comment.
393
411
  */
394
- likeComment(form, options) {
412
+ async likeComment(form, options) {
395
413
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
396
414
  }
397
415
  /**
398
416
  * @summary List a comment's likes. Admin-only.
399
417
  */
400
- listCommentLikes(form, options) {
418
+ async listCommentLikes(form, options) {
401
419
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form, options);
402
420
  }
403
421
  /**
404
422
  * @summary Save a comment.
405
423
  */
406
- saveComment(form, options) {
424
+ async saveComment(form, options) {
407
425
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form, options);
408
426
  }
409
427
  /**
410
428
  * @summary Distinguishes a comment (speak as moderator)
411
429
  */
412
- distinguishComment(form, options) {
430
+ async distinguishComment(form, options) {
413
431
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form, options);
414
432
  }
415
433
  /**
416
434
  * @summary Get / fetch comments.
417
435
  */
418
- getComments(form = {}, options) {
436
+ async getComments(form = {}, options) {
419
437
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form, options);
420
438
  }
421
439
  /**
422
440
  * @summary Get / fetch comments, but without the post or community.
423
441
  */
424
- getCommentsSlim(form = {}, options) {
442
+ async getCommentsSlim(form = {}, options) {
425
443
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list/slim", form, options);
426
444
  }
427
445
  /**
428
446
  * @summary Get / fetch comment.
429
447
  */
430
- getComment(form, options) {
448
+ async getComment(form, options) {
431
449
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form, options);
432
450
  }
433
451
  /**
434
452
  * @summary Report a comment.
435
453
  */
436
- createCommentReport(form, options) {
454
+ async createCommentReport(form, options) {
437
455
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form, options);
438
456
  }
439
457
  /**
440
458
  * @summary Resolve a comment report. Only a mod can do this.
441
459
  */
442
- resolveCommentReport(form, options) {
460
+ async resolveCommentReport(form, options) {
443
461
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form, options);
444
462
  }
445
463
  /**
446
464
  * @summary Create a private message.
447
465
  */
448
- createPrivateMessage(form, options) {
466
+ async createPrivateMessage(form, options) {
449
467
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form, options);
450
468
  }
451
469
  /**
452
470
  * @summary Edit a private message.
453
471
  */
454
- editPrivateMessage(form, options) {
472
+ async editPrivateMessage(form, options) {
455
473
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form, options);
456
474
  }
457
475
  /**
458
476
  * @summary Delete a private message.
459
477
  */
460
- deletePrivateMessage(form, options) {
478
+ async deletePrivateMessage(form, options) {
461
479
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
462
480
  }
463
481
  /**
464
482
  * @summary Mark a private message as read.
465
483
  */
466
- markPrivateMessageAsRead(form, options) {
484
+ async markPrivateMessageAsRead(form, options) {
467
485
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
468
486
  }
469
487
  /**
470
488
  * @summary Create a report for a private message.
471
489
  */
472
- createPrivateMessageReport(form, options) {
490
+ async createPrivateMessageReport(form, options) {
473
491
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form, options);
474
492
  }
475
493
  /**
476
494
  * @summary Resolve a report for a private message.
477
495
  */
478
- resolvePrivateMessageReport(form, options) {
496
+ async resolvePrivateMessageReport(form, options) {
479
497
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form, options);
480
498
  }
481
499
  /**
482
500
  * @summary Register a new user.
483
501
  */
484
- register(form, options) {
502
+ async register(form, options) {
485
503
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/register", form, options);
486
504
  }
487
505
  /**
488
506
  * @summary Log into lemmy.
489
507
  */
490
- login(form, options) {
508
+ async login(form, options) {
491
509
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/login", form, options);
492
510
  }
493
511
  /**
494
512
  * @summary Invalidate the currently used auth token.
495
513
  */
496
- logout(options) {
514
+ async logout(options) {
497
515
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/logout", {}, options);
498
516
  }
499
517
  /**
500
518
  * @summary Get the details for a person.
501
519
  */
502
- getPersonDetails(form = {}, options) {
520
+ async getPersonDetails(form = {}, options) {
503
521
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
504
522
  }
505
523
  /**
506
524
  * @summary List the content for a person.
507
525
  */
508
- listPersonContent(form = {}, options) {
526
+ async listPersonContent(form = {}, options) {
509
527
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
510
528
  }
511
- /**
512
- * @summary Mark a person mention as read.
513
- */
514
- markCommentMentionAsRead(form, options) {
515
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
516
- }
517
- /**
518
- * @summary Mark a person post body mention as read.
519
- */
520
- markPostMentionAsRead(form, options) {
521
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/post/mark_as_read", form, options);
522
- }
523
529
  /**
524
530
  * @summary Ban a person from your site.
525
531
  */
526
- banPerson(form, options) {
532
+ async banPerson(form, options) {
527
533
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/ban", form, options);
528
534
  }
529
535
  /**
530
- * @summary Get a list of banned users.
536
+ * @summary Get a list of users.
531
537
  */
532
- getBannedPersons(options) {
533
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned", {}, options);
538
+ async listUsers(form = {}, options) {
539
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/users", form, options);
534
540
  }
535
541
  /**
536
542
  * @summary Block a person.
537
543
  */
538
- blockPerson(form, options) {
544
+ async blockPerson(form, options) {
539
545
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/person", form, options);
540
546
  }
541
547
  /**
542
548
  * @summary Fetch a Captcha.
543
549
  */
544
- getCaptcha(options) {
550
+ async getCaptcha(options) {
545
551
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/get_captcha", {}, options);
546
552
  }
547
553
  /**
548
554
  * @summary Delete your account.
549
555
  */
550
- deleteAccount(form, options) {
556
+ async deleteAccount(form, options) {
551
557
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/delete", form, options);
552
558
  }
553
559
  /**
554
560
  * @summary Reset your password.
555
561
  */
556
- passwordReset(form, options) {
562
+ async passwordReset(form, options) {
557
563
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_reset", form, options);
558
564
  }
559
565
  /**
560
566
  * @summary Change your password from an email / token based reset.
561
567
  */
562
- passwordChangeAfterReset(form, options) {
568
+ async passwordChangeAfterReset(form, options) {
563
569
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
564
570
  }
565
571
  /**
566
572
  * @summary Mark all replies as read.
567
573
  */
568
- markAllNotificationsAsRead(options) {
574
+ async markAllNotificationsAsRead(options) {
569
575
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
570
576
  }
577
+ /**
578
+ * @summary Mark a comment as read.
579
+ */
580
+ async markNotificationAsRead(form, options) {
581
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read", form, options);
582
+ }
571
583
  /**
572
584
  * @summary Save your user settings.
573
585
  */
574
- saveUserSettings(form, options) {
586
+ async saveUserSettings(form, options) {
575
587
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/settings/save", form, options);
576
588
  }
577
589
  /**
578
590
  * @summary Change your user password.
579
591
  */
580
- changePassword(form, options) {
592
+ async changePassword(form, options) {
581
593
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/auth/change_password", form, options);
582
594
  }
583
595
  /**
584
596
  * @summary Get counts for your reports.
585
597
  */
586
- getReportCount(form, options) {
598
+ async getReportCount(form, options) {
587
599
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/report_count", form, options);
588
600
  }
589
601
  /**
590
602
  * @summary Get your unread counts.
591
603
  */
592
- getUnreadCount(options) {
604
+ async getUnreadCount(options) {
593
605
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
594
606
  }
595
607
  /**
596
608
  * @summary Get your inbox (replies, comment mentions, post mentions, and messages)
597
609
  */
598
- listInbox(form, options) {
610
+ async listInbox(form, options) {
599
611
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/inbox", form, options);
600
612
  }
601
613
  /**
602
614
  * @summary Verify your email
603
615
  */
604
- verifyEmail(form, options) {
616
+ async verifyEmail(form, options) {
605
617
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
606
618
  }
619
+ /**
620
+ * @summary Resend a verification email.
621
+ */
622
+ async resendVerificationEmail(form, options) {
623
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/resend_verification_email", form, options);
624
+ }
607
625
  /**
608
626
  * @summary List your saved content.
609
627
  */
610
- listPersonSaved(form, options) {
611
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/saved", form, options);
628
+ async listPersonSaved(form, options) {
629
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/saved", form, options);
630
+ }
631
+ /**
632
+ * @summary List your read content.
633
+ */
634
+ async listPersonRead(form, options) {
635
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/read", form, options);
636
+ }
637
+ /**
638
+ * @summary List your hidden content.
639
+ */
640
+ async listPersonHidden(form, options) {
641
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/hidden", form, options);
642
+ }
643
+ /**
644
+ * @summary List your liked content.
645
+ */
646
+ async listPersonLiked(form, options) {
647
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/liked", form, options);
612
648
  }
613
649
  /**
614
650
  * @summary Add an admin to your site.
615
651
  */
616
- addAdmin(form, options) {
652
+ async addAdmin(form, options) {
617
653
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form, options);
618
654
  }
619
655
  /**
620
656
  * @summary Get the unread registration applications count.
621
657
  */
622
- getUnreadRegistrationApplicationCount(options) {
658
+ async getUnreadRegistrationApplicationCount(options) {
623
659
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {}, options);
624
660
  }
625
661
  /**
626
662
  * @summary List the registration applications.
627
663
  */
628
- listRegistrationApplications(form, options) {
664
+ async listRegistrationApplications(form, options) {
629
665
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form, options);
630
666
  }
631
667
  /**
632
668
  * @summary Approve a registration application
633
669
  */
634
- approveRegistrationApplication(form, options) {
670
+ async approveRegistrationApplication(form, options) {
635
671
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form, options);
636
672
  }
637
673
  /**
638
674
  * @summary Get the application a user submitted when they first registered their account
639
675
  */
640
- getRegistrationApplication(form, options) {
676
+ async getRegistrationApplication(form, options) {
641
677
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form, options);
642
678
  }
643
679
  /**
644
680
  * @summary Purge / Delete a person from the database.
645
681
  */
646
- purgePerson(form, options) {
682
+ async purgePerson(form, options) {
647
683
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form, options);
648
684
  }
649
685
  /**
650
686
  * @summary Purge / Delete a community from the database.
651
687
  */
652
- purgeCommunity(form, options) {
688
+ async purgeCommunity(form, options) {
653
689
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form, options);
654
690
  }
655
691
  /**
656
692
  * @summary Purge / Delete a post from the database.
657
693
  */
658
- purgePost(form, options) {
694
+ async purgePost(form, options) {
659
695
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form, options);
660
696
  }
661
697
  /**
662
698
  * @summary Purge / Delete a comment from the database.
663
699
  */
664
- purgeComment(form, options) {
700
+ async purgeComment(form, options) {
665
701
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form, options);
666
702
  }
667
703
  /**
668
704
  * @summary Create a new custom emoji.
669
705
  */
670
- createCustomEmoji(form, options) {
706
+ async createCustomEmoji(form, options) {
671
707
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form, options);
672
708
  }
673
709
  /**
674
710
  * @summary Edit an existing custom emoji.
675
711
  */
676
- editCustomEmoji(form, options) {
712
+ async editCustomEmoji(form, options) {
677
713
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form, options);
678
714
  }
679
715
  /**
680
716
  * @summary Delete a custom emoji.
681
717
  */
682
- deleteCustomEmoji(form, options) {
718
+ async deleteCustomEmoji(form, options) {
683
719
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form, options);
684
720
  }
685
721
  /**
686
722
  * @summary List custom emojis
687
723
  */
688
- listCustomEmojis(form, options) {
724
+ async listCustomEmojis(form, options) {
689
725
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form, options);
690
726
  }
691
727
  /**
692
728
  * @summary Create a new tagline
693
729
  */
694
- createTagline(form, options) {
730
+ async createTagline(form, options) {
695
731
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form, options);
696
732
  }
697
733
  /**
698
734
  * @summary Edit an existing tagline
699
735
  */
700
- editTagline(form, options) {
736
+ async editTagline(form, options) {
701
737
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form, options);
702
738
  }
703
739
  /**
704
740
  * @summary Delete a tagline
705
741
  */
706
- deleteTagline(form, options) {
742
+ async deleteTagline(form, options) {
707
743
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form, options);
708
744
  }
709
745
  /**
710
746
  * @summary List taglines.
711
747
  */
712
- listTaglines(form, options) {
748
+ async listTaglines(form, options) {
713
749
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form, options);
714
750
  }
715
751
  /**
716
- * @summary Create a community tag.
752
+ * @summary Create a community post tag.
717
753
  */
718
754
  createCommunityTag(form, options) {
719
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/post_tag", form, options);
755
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/tag", form, options);
720
756
  }
721
757
  /**
722
- * @summary Update a community tag.
758
+ * @summary Update a community post tag.
723
759
  */
724
760
  updateCommunityTag(form, options) {
725
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/post_tag", form, options);
726
- }
727
- /**
728
- * @summary List community tags.
729
- */
730
- listCommunityTags(form, options) {
731
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/post_tag/list", form, options);
761
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/tag", form, options);
732
762
  }
733
763
  /**
734
- * @summary Delete a community tag.
764
+ * @summary Delete a post tag in a community.
735
765
  */
736
766
  deleteCommunityTag(form, options) {
737
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/post_tag", form, options);
738
- }
739
- /**
740
- * @summary Update post tags.
741
- */
742
- updatePostTags(form, options) {
743
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/tags", form, options);
767
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/tag", form, options);
744
768
  }
745
769
  /**
746
770
  * @summary Create a new oauth provider method
747
771
  */
748
- createOAuthProvider(form, options) {
772
+ async createOAuthProvider(form, options) {
749
773
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form, options);
750
774
  }
751
775
  /**
752
776
  * @summary Edit an existing oauth provider method
753
777
  */
754
- editOAuthProvider(form, options) {
778
+ async editOAuthProvider(form, options) {
755
779
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form, options);
756
780
  }
757
781
  /**
758
782
  * @summary Delete an oauth provider method
759
783
  */
760
- deleteOAuthProvider(form, options) {
784
+ async deleteOAuthProvider(form, options) {
761
785
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form, options);
762
786
  }
763
787
  /**
764
788
  * @summary Authenticate with OAuth
765
789
  */
766
- authenticateWithOAuth(form, options) {
790
+ async authenticateWithOAuth(form, options) {
767
791
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form, options);
768
792
  }
769
793
  /**
770
794
  * @summary Fetch federated instances.
771
795
  */
772
- getFederatedInstances(options) {
796
+ async getFederatedInstances(options) {
773
797
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {}, options);
774
798
  }
775
799
  /**
776
800
  * @summary List user reports.
777
801
  */
778
- listReports(form, options) {
802
+ async listReports(form, options) {
779
803
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
780
804
  }
781
805
  /**
782
806
  * @summary Block an instance as user.
783
807
  */
784
- userBlockInstance(form, options) {
808
+ async userBlockInstance(form, options) {
785
809
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
786
810
  }
787
811
  /**
788
812
  * @summary Globally block an instance as admin.
789
813
  */
790
- adminBlockInstance(form, options) {
814
+ async adminBlockInstance(form, options) {
791
815
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/block", form, options);
792
816
  }
793
817
  /**
794
818
  * @summary Globally allow an instance as admin.
795
819
  */
796
- adminAllowInstance(form, options) {
820
+ async adminAllowInstance(form, options) {
797
821
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/allow", form, options);
798
822
  }
799
823
  /**
@@ -823,26 +847,26 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
823
847
  /**
824
848
  * @summary Upload new community icon.
825
849
  */
826
- async uploadCommunityIcon(image, options) {
827
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/icon", image, options);
850
+ async uploadCommunityIcon(query, image, options) {
851
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_uploadWithQuery).call(this, "/community/icon", query, image, options);
828
852
  }
829
853
  /**
830
854
  * @summary Delete the community icon.
831
855
  */
832
- async deleteCommunityIcon(options) {
833
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon", {}, options);
856
+ async deleteCommunityIcon(form, options) {
857
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon", form, options);
834
858
  }
835
859
  /**
836
860
  * @summary Upload new community banner.
837
861
  */
838
- async uploadCommunityBanner(image, options) {
839
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/banner", image, options);
862
+ async uploadCommunityBanner(query, image, options) {
863
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_uploadWithQuery).call(this, "/community/banner", query, image, options);
840
864
  }
841
865
  /**
842
866
  * @summary Delete the community banner.
843
867
  */
844
- async deleteCommunityBanner(options) {
845
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner", {}, options);
868
+ async deleteCommunityBanner(form, options) {
869
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner", form, options);
846
870
  }
847
871
  /**
848
872
  * @summary Upload new site icon.
@@ -874,18 +898,39 @@ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
874
898
  async uploadImage(image, options) {
875
899
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/image", image, options);
876
900
  }
877
- /**
878
- * @summary Delete a pictrs image
879
- */
880
- async deleteImage(form, options) {
881
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
882
- }
883
901
  /**
884
902
  * @summary Health check for image functionality
885
903
  */
886
904
  async imageHealth(options) {
887
905
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/health", {}, options);
888
906
  }
907
+ /**
908
+ * Mark donation dialog as shown, so it isn't displayed anymore.
909
+ */
910
+ donationDialogShown(options) {
911
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/donation_dialog_shown", {}, options);
912
+ }
913
+ createMultiCommunity(form, options) {
914
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community", form, options);
915
+ }
916
+ updateMultiCommunity(form, options) {
917
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/multi_community", form, options);
918
+ }
919
+ getMultiCommunity(form, options) {
920
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community", form, options);
921
+ }
922
+ createMultiCommunityEntry(form, options) {
923
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/entry", form, options);
924
+ }
925
+ deleteMultiCommunityEntry(form, options) {
926
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/multi_community/entry", form, options);
927
+ }
928
+ listMultiCommunities(form, options) {
929
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/multi_community/list", form, options);
930
+ }
931
+ followMultiCommunity(form, options) {
932
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/multi_community/follow", form, options);
933
+ }
889
934
  /**
890
935
  * Set the headers (can be used to set the auth header)
891
936
  */
@@ -911,6 +956,9 @@ _LemmyHttp_upload = async function _LemmyHttp_upload(path, { image }, options) {
911
956
  });
912
957
  return response.json();
913
958
  };
959
+ _LemmyHttp_uploadWithQuery = async function _LemmyHttp_uploadWithQuery(path, query, { image }, options) {
960
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, `${path}?${encodeGetParams(query)}`, { image }, options);
961
+ };
914
962
  _LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, options) {
915
963
  let response;
916
964
  if (type_ === HttpType.Get) {
@@ -937,967 +985,1036 @@ _LemmyHttp_wrapper = async function _LemmyHttp_wrapper(type_, endpoint, form, op
937
985
  json = await response.json();
938
986
  }
939
987
  catch {
940
- throw new Error(response.statusText);
988
+ throw new LemmyError(response.statusText);
941
989
  }
942
990
  if (!response.ok) {
943
- throw new Error(json["error"] ?? response.statusText);
991
+ let err = new LemmyError(json.error ?? response.statusText, json.message);
992
+ throw err;
944
993
  }
945
994
  else {
946
995
  return json;
947
996
  }
948
997
  };
949
998
  __decorate([
950
- (0, tsoa_1.Security)("bearerAuth"),
951
- (0, tsoa_1.Security)({}),
952
- (0, tsoa_1.Get)("/site"),
953
- (0, tsoa_1.Tags)("Site"),
954
- __param(0, (0, tsoa_1.Inject)())
999
+ (0, runtime_1.Security)("bearerAuth"),
1000
+ (0, runtime_1.Security)({}),
1001
+ (0, runtime_1.Get)("/site"),
1002
+ (0, runtime_1.Tags)("Site"),
1003
+ __param(0, (0, runtime_1.Inject)())
955
1004
  ], LemmyHttp.prototype, "getSite", null);
956
1005
  __decorate([
957
- (0, tsoa_1.Security)("bearerAuth"),
958
- (0, tsoa_1.Post)("/site"),
959
- (0, tsoa_1.Tags)("Site"),
960
- __param(0, (0, tsoa_1.Body)()),
961
- __param(1, (0, tsoa_1.Inject)())
1006
+ (0, runtime_1.Security)("bearerAuth"),
1007
+ (0, runtime_1.Post)("/site"),
1008
+ (0, runtime_1.Tags)("Site"),
1009
+ __param(0, (0, runtime_1.Body)()),
1010
+ __param(1, (0, runtime_1.Inject)())
962
1011
  ], LemmyHttp.prototype, "createSite", null);
963
1012
  __decorate([
964
- (0, tsoa_1.Security)("bearerAuth"),
965
- (0, tsoa_1.Put)("/site"),
966
- (0, tsoa_1.Tags)("Site"),
967
- __param(0, (0, tsoa_1.Body)()),
968
- __param(1, (0, tsoa_1.Inject)())
1013
+ (0, runtime_1.Security)("bearerAuth"),
1014
+ (0, runtime_1.Put)("/site"),
1015
+ (0, runtime_1.Tags)("Site"),
1016
+ __param(0, (0, runtime_1.Body)()),
1017
+ __param(1, (0, runtime_1.Inject)())
969
1018
  ], LemmyHttp.prototype, "editSite", null);
970
1019
  __decorate([
971
- (0, tsoa_1.Security)("bearerAuth"),
972
- (0, tsoa_1.Post)("/admin/leave"),
973
- (0, tsoa_1.Tags)("Admin"),
974
- __param(0, (0, tsoa_1.Inject)())
1020
+ (0, runtime_1.Security)("bearerAuth"),
1021
+ (0, runtime_1.Post)("/admin/leave"),
1022
+ (0, runtime_1.Tags)("Admin"),
1023
+ __param(0, (0, runtime_1.Inject)())
975
1024
  ], LemmyHttp.prototype, "leaveAdmin", null);
976
1025
  __decorate([
977
- (0, tsoa_1.Security)("bearerAuth"),
978
- (0, tsoa_1.Post)("/account/auth/totp/generate"),
979
- (0, tsoa_1.Tags)("Account"),
980
- __param(0, (0, tsoa_1.Inject)())
1026
+ (0, runtime_1.Security)("bearerAuth"),
1027
+ (0, runtime_1.Post)("/account/auth/totp/generate"),
1028
+ (0, runtime_1.Tags)("Account"),
1029
+ __param(0, (0, runtime_1.Inject)())
981
1030
  ], LemmyHttp.prototype, "generateTotpSecret", null);
982
1031
  __decorate([
983
- (0, tsoa_1.Security)("bearerAuth"),
984
- (0, tsoa_1.Get)("/account"),
985
- (0, tsoa_1.Tags)("Account"),
986
- __param(0, (0, tsoa_1.Inject)())
1032
+ (0, runtime_1.Security)("bearerAuth"),
1033
+ (0, runtime_1.Get)("/account"),
1034
+ (0, runtime_1.Tags)("Account"),
1035
+ __param(0, (0, runtime_1.Inject)())
987
1036
  ], LemmyHttp.prototype, "getMyUser", null);
988
1037
  __decorate([
989
- (0, tsoa_1.Security)("bearerAuth"),
990
- (0, tsoa_1.Get)("/account/settings/export"),
991
- (0, tsoa_1.Tags)("Account"),
992
- __param(0, (0, tsoa_1.Inject)())
1038
+ (0, runtime_1.Security)("bearerAuth"),
1039
+ (0, runtime_1.Get)("/account/settings/export"),
1040
+ (0, runtime_1.Tags)("Account"),
1041
+ __param(0, (0, runtime_1.Inject)())
993
1042
  ], LemmyHttp.prototype, "exportSettings", null);
994
1043
  __decorate([
995
- (0, tsoa_1.Security)("bearerAuth"),
996
- (0, tsoa_1.Post)("/account/settings/import"),
997
- (0, tsoa_1.Tags)("Account"),
998
- __param(0, (0, tsoa_1.Body)()),
999
- __param(1, (0, tsoa_1.Inject)())
1044
+ (0, runtime_1.Security)("bearerAuth"),
1045
+ (0, runtime_1.Post)("/account/settings/import"),
1046
+ (0, runtime_1.Tags)("Account"),
1047
+ __param(0, (0, runtime_1.Body)()),
1048
+ __param(1, (0, runtime_1.Inject)())
1000
1049
  ], LemmyHttp.prototype, "importSettings", null);
1001
1050
  __decorate([
1002
- (0, tsoa_1.Security)("bearerAuth"),
1003
- (0, tsoa_1.Get)("/account/list_logins"),
1004
- (0, tsoa_1.Tags)("Account"),
1005
- __param(0, (0, tsoa_1.Inject)())
1051
+ (0, runtime_1.Security)("bearerAuth"),
1052
+ (0, runtime_1.Get)("/account/list_logins"),
1053
+ (0, runtime_1.Tags)("Account"),
1054
+ __param(0, (0, runtime_1.Inject)())
1006
1055
  ], LemmyHttp.prototype, "listLogins", null);
1007
1056
  __decorate([
1008
- (0, tsoa_1.Security)("bearerAuth"),
1009
- (0, tsoa_1.Get)("/account/validate_auth"),
1010
- (0, tsoa_1.Tags)("Account"),
1011
- __param(0, (0, tsoa_1.Inject)())
1057
+ (0, runtime_1.Security)("bearerAuth"),
1058
+ (0, runtime_1.Get)("/account/validate_auth"),
1059
+ (0, runtime_1.Tags)("Account"),
1060
+ __param(0, (0, runtime_1.Inject)())
1012
1061
  ], LemmyHttp.prototype, "validateAuth", null);
1013
1062
  __decorate([
1014
- (0, tsoa_1.Security)("bearerAuth"),
1015
- (0, tsoa_1.Get)("/account/list_media"),
1016
- (0, tsoa_1.Tags)("Account", "Media"),
1017
- __param(0, (0, tsoa_1.Queries)()),
1018
- __param(1, (0, tsoa_1.Inject)())
1063
+ (0, runtime_1.Security)("bearerAuth"),
1064
+ (0, runtime_1.Get)("/account/media/list"),
1065
+ (0, runtime_1.Tags)("Account", "Media"),
1066
+ __param(0, (0, runtime_1.Queries)()),
1067
+ __param(1, (0, runtime_1.Inject)())
1019
1068
  ], LemmyHttp.prototype, "listMedia", null);
1020
1069
  __decorate([
1021
- (0, tsoa_1.Security)("bearerAuth"),
1022
- (0, tsoa_1.Get)("/admin/list_all_media"),
1023
- (0, tsoa_1.Tags)("Admin", "Media"),
1024
- __param(0, (0, tsoa_1.Queries)()),
1025
- __param(1, (0, tsoa_1.Inject)())
1026
- ], LemmyHttp.prototype, "listAllMedia", null);
1027
- __decorate([
1028
- (0, tsoa_1.Security)("bearerAuth"),
1029
- (0, tsoa_1.Post)("/account/auth/totp/update"),
1030
- (0, tsoa_1.Tags)("Account"),
1031
- __param(0, (0, tsoa_1.Body)()),
1032
- __param(1, (0, tsoa_1.Inject)())
1070
+ (0, runtime_1.Security)("bearerAuth"),
1071
+ (0, runtime_1.Delete)("/account/media"),
1072
+ (0, runtime_1.Tags)("Account", "Media"),
1073
+ __param(0, (0, runtime_1.Queries)()),
1074
+ __param(1, (0, runtime_1.Inject)())
1075
+ ], LemmyHttp.prototype, "deleteMedia", null);
1076
+ __decorate([
1077
+ (0, runtime_1.Security)("bearerAuth"),
1078
+ (0, runtime_1.Delete)("/image"),
1079
+ (0, runtime_1.Tags)("Admin", "Media"),
1080
+ __param(0, (0, runtime_1.Queries)()),
1081
+ __param(1, (0, runtime_1.Inject)())
1082
+ ], LemmyHttp.prototype, "deleteMediaAdmin", null);
1083
+ __decorate([
1084
+ (0, runtime_1.Security)("bearerAuth"),
1085
+ (0, runtime_1.Get)("/image/list"),
1086
+ (0, runtime_1.Tags)("Admin", "Media"),
1087
+ __param(0, (0, runtime_1.Queries)()),
1088
+ __param(1, (0, runtime_1.Inject)())
1089
+ ], LemmyHttp.prototype, "listMediaAdmin", null);
1090
+ __decorate([
1091
+ (0, runtime_1.Security)("bearerAuth"),
1092
+ (0, runtime_1.Post)("/account/auth/totp/update"),
1093
+ (0, runtime_1.Tags)("Account"),
1094
+ __param(0, (0, runtime_1.Body)()),
1095
+ __param(1, (0, runtime_1.Inject)())
1033
1096
  ], LemmyHttp.prototype, "updateTotp", null);
1034
1097
  __decorate([
1035
- (0, tsoa_1.Security)("bearerAuth"),
1036
- (0, tsoa_1.Security)({}),
1037
- (0, tsoa_1.Get)("/modlog"),
1038
- (0, tsoa_1.Tags)("Miscellaneous"),
1039
- __param(0, (0, tsoa_1.Queries)()),
1040
- __param(1, (0, tsoa_1.Inject)())
1098
+ (0, runtime_1.Security)("bearerAuth"),
1099
+ (0, runtime_1.Security)({}),
1100
+ (0, runtime_1.Get)("/modlog"),
1101
+ (0, runtime_1.Tags)("Miscellaneous"),
1102
+ __param(0, (0, runtime_1.Queries)()),
1103
+ __param(1, (0, runtime_1.Inject)())
1041
1104
  ], LemmyHttp.prototype, "getModlog", null);
1042
1105
  __decorate([
1043
- (0, tsoa_1.Security)("bearerAuth"),
1044
- (0, tsoa_1.Security)({}),
1045
- (0, tsoa_1.Get)("/search"),
1046
- (0, tsoa_1.Tags)("Miscellaneous"),
1047
- __param(0, (0, tsoa_1.Queries)()),
1048
- __param(1, (0, tsoa_1.Inject)())
1106
+ (0, runtime_1.Security)("bearerAuth"),
1107
+ (0, runtime_1.Security)({}),
1108
+ (0, runtime_1.Get)("/search"),
1109
+ (0, runtime_1.Tags)("Miscellaneous"),
1110
+ __param(0, (0, runtime_1.Queries)()),
1111
+ __param(1, (0, runtime_1.Inject)())
1049
1112
  ], LemmyHttp.prototype, "search", null);
1050
1113
  __decorate([
1051
- (0, tsoa_1.Security)("bearerAuth"),
1052
- (0, tsoa_1.Security)({}),
1053
- (0, tsoa_1.Get)("/resolve_object"),
1054
- (0, tsoa_1.Tags)("Miscellaneous"),
1055
- __param(0, (0, tsoa_1.Queries)()),
1056
- __param(1, (0, tsoa_1.Inject)())
1114
+ (0, runtime_1.Security)("bearerAuth"),
1115
+ (0, runtime_1.Security)({}),
1116
+ (0, runtime_1.Get)("/resolve_object"),
1117
+ (0, runtime_1.Tags)("Miscellaneous"),
1118
+ __param(0, (0, runtime_1.Queries)()),
1119
+ __param(1, (0, runtime_1.Inject)())
1057
1120
  ], LemmyHttp.prototype, "resolveObject", null);
1058
1121
  __decorate([
1059
- (0, tsoa_1.Security)("bearerAuth"),
1060
- (0, tsoa_1.Post)("/community"),
1061
- (0, tsoa_1.Tags)("Community"),
1062
- __param(0, (0, tsoa_1.Body)()),
1063
- __param(1, (0, tsoa_1.Inject)())
1122
+ (0, runtime_1.Security)("bearerAuth"),
1123
+ (0, runtime_1.Post)("/community"),
1124
+ (0, runtime_1.Tags)("Community"),
1125
+ __param(0, (0, runtime_1.Body)()),
1126
+ __param(1, (0, runtime_1.Inject)())
1064
1127
  ], LemmyHttp.prototype, "createCommunity", null);
1065
1128
  __decorate([
1066
- (0, tsoa_1.Security)("bearerAuth"),
1067
- (0, tsoa_1.Security)({}),
1068
- (0, tsoa_1.Get)("/community"),
1069
- (0, tsoa_1.Tags)("Community"),
1070
- __param(0, (0, tsoa_1.Queries)()),
1071
- __param(1, (0, tsoa_1.Inject)())
1129
+ (0, runtime_1.Security)("bearerAuth"),
1130
+ (0, runtime_1.Security)({}),
1131
+ (0, runtime_1.Get)("/community"),
1132
+ (0, runtime_1.Tags)("Community"),
1133
+ __param(0, (0, runtime_1.Queries)()),
1134
+ __param(1, (0, runtime_1.Inject)())
1072
1135
  ], LemmyHttp.prototype, "getCommunity", null);
1073
1136
  __decorate([
1074
- (0, tsoa_1.Security)("bearerAuth"),
1075
- (0, tsoa_1.Put)("/community"),
1076
- (0, tsoa_1.Tags)("Community"),
1077
- __param(0, (0, tsoa_1.Body)()),
1078
- __param(1, (0, tsoa_1.Inject)())
1137
+ (0, runtime_1.Security)("bearerAuth"),
1138
+ (0, runtime_1.Put)("/community"),
1139
+ (0, runtime_1.Tags)("Community"),
1140
+ __param(0, (0, runtime_1.Body)()),
1141
+ __param(1, (0, runtime_1.Inject)())
1079
1142
  ], LemmyHttp.prototype, "editCommunity", null);
1080
1143
  __decorate([
1081
- (0, tsoa_1.Security)("bearerAuth"),
1082
- (0, tsoa_1.Security)({}),
1083
- (0, tsoa_1.Get)("/community/list"),
1084
- (0, tsoa_1.Tags)("Community"),
1085
- __param(0, (0, tsoa_1.Queries)()),
1086
- __param(1, (0, tsoa_1.Inject)())
1144
+ (0, runtime_1.Security)("bearerAuth"),
1145
+ (0, runtime_1.Security)({}),
1146
+ (0, runtime_1.Get)("/community/list"),
1147
+ (0, runtime_1.Tags)("Community"),
1148
+ __param(0, (0, runtime_1.Queries)()),
1149
+ __param(1, (0, runtime_1.Inject)())
1087
1150
  ], LemmyHttp.prototype, "listCommunities", null);
1088
1151
  __decorate([
1089
- (0, tsoa_1.Security)("bearerAuth"),
1090
- (0, tsoa_1.Post)("/community/follow"),
1091
- (0, tsoa_1.Tags)("Community"),
1092
- __param(0, (0, tsoa_1.Body)()),
1093
- __param(1, (0, tsoa_1.Inject)()),
1094
- __param(1, (0, tsoa_1.Inject)())
1152
+ (0, runtime_1.Security)("bearerAuth"),
1153
+ (0, runtime_1.Post)("/community/follow"),
1154
+ (0, runtime_1.Tags)("Community"),
1155
+ __param(0, (0, runtime_1.Body)()),
1156
+ __param(1, (0, runtime_1.Inject)()),
1157
+ __param(1, (0, runtime_1.Inject)())
1095
1158
  ], LemmyHttp.prototype, "followCommunity", null);
1096
1159
  __decorate([
1097
- (0, tsoa_1.Security)("bearerAuth"),
1098
- (0, tsoa_1.Get)("/community/pending_follows/count"),
1099
- (0, tsoa_1.Tags)("Community"),
1100
- __param(0, (0, tsoa_1.Queries)()),
1101
- __param(1, (0, tsoa_1.Inject)())
1160
+ (0, runtime_1.Security)("bearerAuth"),
1161
+ (0, runtime_1.Get)("/community/pending_follows/count"),
1162
+ (0, runtime_1.Tags)("Community"),
1163
+ __param(0, (0, runtime_1.Queries)()),
1164
+ __param(1, (0, runtime_1.Inject)())
1102
1165
  ], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
1103
1166
  __decorate([
1104
- (0, tsoa_1.Security)("bearerAuth"),
1105
- (0, tsoa_1.Get)("/community/pending_follows/list"),
1106
- (0, tsoa_1.Tags)("Community"),
1107
- __param(0, (0, tsoa_1.Queries)()),
1108
- __param(1, (0, tsoa_1.Inject)())
1167
+ (0, runtime_1.Security)("bearerAuth"),
1168
+ (0, runtime_1.Get)("/community/pending_follows/list"),
1169
+ (0, runtime_1.Tags)("Community"),
1170
+ __param(0, (0, runtime_1.Queries)()),
1171
+ __param(1, (0, runtime_1.Inject)())
1109
1172
  ], LemmyHttp.prototype, "listCommunityPendingFollows", null);
1110
1173
  __decorate([
1111
- (0, tsoa_1.Security)("bearerAuth"),
1112
- (0, tsoa_1.Post)("/community/pending_follows/approve"),
1113
- (0, tsoa_1.Tags)("Community"),
1114
- __param(0, (0, tsoa_1.Body)()),
1115
- __param(1, (0, tsoa_1.Inject)())
1174
+ (0, runtime_1.Security)("bearerAuth"),
1175
+ (0, runtime_1.Post)("/community/pending_follows/approve"),
1176
+ (0, runtime_1.Tags)("Community"),
1177
+ __param(0, (0, runtime_1.Body)()),
1178
+ __param(1, (0, runtime_1.Inject)())
1116
1179
  ], LemmyHttp.prototype, "approveCommunityPendingFollow", null);
1117
1180
  __decorate([
1118
- (0, tsoa_1.Security)("bearerAuth"),
1119
- (0, tsoa_1.Post)("/account/block/community"),
1120
- (0, tsoa_1.Tags)("Account", "Community"),
1121
- __param(0, (0, tsoa_1.Body)()),
1122
- __param(1, (0, tsoa_1.Inject)())
1181
+ (0, runtime_1.Security)("bearerAuth"),
1182
+ (0, runtime_1.Post)("/account/block/community"),
1183
+ (0, runtime_1.Tags)("Account", "Community"),
1184
+ __param(0, (0, runtime_1.Body)()),
1185
+ __param(1, (0, runtime_1.Inject)())
1123
1186
  ], LemmyHttp.prototype, "blockCommunity", null);
1124
1187
  __decorate([
1125
- (0, tsoa_1.Security)("bearerAuth"),
1126
- (0, tsoa_1.Post)("/community/delete"),
1127
- (0, tsoa_1.Tags)("Community"),
1128
- __param(0, (0, tsoa_1.Body)()),
1129
- __param(1, (0, tsoa_1.Inject)())
1188
+ (0, runtime_1.Security)("bearerAuth"),
1189
+ (0, runtime_1.Post)("/community/delete"),
1190
+ (0, runtime_1.Tags)("Community"),
1191
+ __param(0, (0, runtime_1.Body)()),
1192
+ __param(1, (0, runtime_1.Inject)())
1130
1193
  ], LemmyHttp.prototype, "deleteCommunity", null);
1131
1194
  __decorate([
1132
- (0, tsoa_1.Security)("bearerAuth"),
1133
- (0, tsoa_1.Put)("/community/hide"),
1134
- (0, tsoa_1.Tags)("Community", "Admin"),
1135
- __param(0, (0, tsoa_1.Body)()),
1136
- __param(1, (0, tsoa_1.Inject)())
1195
+ (0, runtime_1.Security)("bearerAuth"),
1196
+ (0, runtime_1.Put)("/community/hide"),
1197
+ (0, runtime_1.Tags)("Community", "Admin"),
1198
+ __param(0, (0, runtime_1.Body)()),
1199
+ __param(1, (0, runtime_1.Inject)())
1137
1200
  ], LemmyHttp.prototype, "hideCommunity", null);
1138
1201
  __decorate([
1139
- (0, tsoa_1.Security)("bearerAuth"),
1140
- (0, tsoa_1.Post)("/community/remove"),
1141
- (0, tsoa_1.Tags)("Community", "Moderator"),
1142
- __param(0, (0, tsoa_1.Body)()),
1143
- __param(1, (0, tsoa_1.Inject)())
1202
+ (0, runtime_1.Security)("bearerAuth"),
1203
+ (0, runtime_1.Post)("/community/remove"),
1204
+ (0, runtime_1.Tags)("Community", "Moderator"),
1205
+ __param(0, (0, runtime_1.Body)()),
1206
+ __param(1, (0, runtime_1.Inject)())
1144
1207
  ], LemmyHttp.prototype, "removeCommunity", null);
1145
1208
  __decorate([
1146
- (0, tsoa_1.Security)("bearerAuth"),
1147
- (0, tsoa_1.Post)("/community/transfer"),
1148
- (0, tsoa_1.Tags)("Community", "Moderator"),
1149
- __param(0, (0, tsoa_1.Body)()),
1150
- __param(1, (0, tsoa_1.Inject)())
1209
+ (0, runtime_1.Security)("bearerAuth"),
1210
+ (0, runtime_1.Post)("/community/transfer"),
1211
+ (0, runtime_1.Tags)("Community", "Moderator"),
1212
+ __param(0, (0, runtime_1.Body)()),
1213
+ __param(1, (0, runtime_1.Inject)())
1151
1214
  ], LemmyHttp.prototype, "transferCommunity", null);
1152
1215
  __decorate([
1153
- (0, tsoa_1.Security)("bearerAuth"),
1154
- (0, tsoa_1.Post)("/community/ban_user"),
1155
- (0, tsoa_1.Tags)("Community", "Moderator"),
1156
- __param(0, (0, tsoa_1.Body)()),
1157
- __param(1, (0, tsoa_1.Inject)())
1216
+ (0, runtime_1.Security)("bearerAuth"),
1217
+ (0, runtime_1.Post)("/community/ban_user"),
1218
+ (0, runtime_1.Tags)("Community", "Moderator"),
1219
+ __param(0, (0, runtime_1.Body)()),
1220
+ __param(1, (0, runtime_1.Inject)())
1158
1221
  ], LemmyHttp.prototype, "banFromCommunity", null);
1159
1222
  __decorate([
1160
- (0, tsoa_1.Security)("bearerAuth"),
1161
- (0, tsoa_1.Post)("/community/mod"),
1162
- (0, tsoa_1.Tags)("Community", "Moderator"),
1163
- __param(0, (0, tsoa_1.Body)()),
1164
- __param(1, (0, tsoa_1.Inject)())
1223
+ (0, runtime_1.Security)("bearerAuth"),
1224
+ (0, runtime_1.Post)("/community/mod"),
1225
+ (0, runtime_1.Tags)("Community", "Moderator"),
1226
+ __param(0, (0, runtime_1.Body)()),
1227
+ __param(1, (0, runtime_1.Inject)())
1165
1228
  ], LemmyHttp.prototype, "addModToCommunity", null);
1166
1229
  __decorate([
1167
- (0, tsoa_1.Security)("bearerAuth"),
1168
- (0, tsoa_1.Security)({}),
1169
- (0, tsoa_1.Get)("/community/random"),
1170
- (0, tsoa_1.Tags)("Community"),
1171
- __param(0, (0, tsoa_1.Queries)()),
1172
- __param(1, (0, tsoa_1.Inject)())
1230
+ (0, runtime_1.Security)("bearerAuth"),
1231
+ (0, runtime_1.Security)({}),
1232
+ (0, runtime_1.Get)("/community/random"),
1233
+ (0, runtime_1.Tags)("Community"),
1234
+ __param(0, (0, runtime_1.Queries)()),
1235
+ __param(1, (0, runtime_1.Inject)())
1173
1236
  ], LemmyHttp.prototype, "getRandomCommunity", null);
1174
1237
  __decorate([
1175
- (0, tsoa_1.Security)("bearerAuth"),
1176
- (0, tsoa_1.Post)("/post"),
1177
- (0, tsoa_1.Tags)("Post"),
1178
- __param(0, (0, tsoa_1.Body)()),
1179
- __param(1, (0, tsoa_1.Inject)())
1238
+ (0, runtime_1.Security)("bearerAuth"),
1239
+ (0, runtime_1.Post)("/community/report"),
1240
+ (0, runtime_1.Tags)("Community"),
1241
+ __param(0, (0, runtime_1.Body)()),
1242
+ __param(1, (0, runtime_1.Inject)())
1243
+ ], LemmyHttp.prototype, "createCommunityReport", null);
1244
+ __decorate([
1245
+ (0, runtime_1.Security)("bearerAuth"),
1246
+ (0, runtime_1.Put)("/community/report/resolve"),
1247
+ (0, runtime_1.Tags)("Community", "Admin"),
1248
+ __param(0, (0, runtime_1.Body)()),
1249
+ __param(1, (0, runtime_1.Inject)())
1250
+ ], LemmyHttp.prototype, "resolveCommunityReport", null);
1251
+ __decorate([
1252
+ (0, runtime_1.Security)("bearerAuth"),
1253
+ (0, runtime_1.Post)("/post"),
1254
+ (0, runtime_1.Tags)("Post"),
1255
+ __param(0, (0, runtime_1.Body)()),
1256
+ __param(1, (0, runtime_1.Inject)())
1180
1257
  ], LemmyHttp.prototype, "createPost", null);
1181
1258
  __decorate([
1182
- (0, tsoa_1.Security)("bearerAuth"),
1183
- (0, tsoa_1.Security)({}),
1184
- (0, tsoa_1.Get)("/post"),
1185
- (0, tsoa_1.Tags)("Post"),
1186
- __param(0, (0, tsoa_1.Queries)()),
1187
- __param(1, (0, tsoa_1.Inject)())
1259
+ (0, runtime_1.Security)("bearerAuth"),
1260
+ (0, runtime_1.Security)({}),
1261
+ (0, runtime_1.Get)("/post"),
1262
+ (0, runtime_1.Tags)("Post"),
1263
+ __param(0, (0, runtime_1.Queries)()),
1264
+ __param(1, (0, runtime_1.Inject)())
1188
1265
  ], LemmyHttp.prototype, "getPost", null);
1189
1266
  __decorate([
1190
- (0, tsoa_1.Security)("bearerAuth"),
1191
- (0, tsoa_1.Put)("/post"),
1192
- (0, tsoa_1.Tags)("Post"),
1193
- __param(0, (0, tsoa_1.Body)()),
1194
- __param(1, (0, tsoa_1.Inject)())
1267
+ (0, runtime_1.Security)("bearerAuth"),
1268
+ (0, runtime_1.Put)("/post"),
1269
+ (0, runtime_1.Tags)("Post"),
1270
+ __param(0, (0, runtime_1.Body)()),
1271
+ __param(1, (0, runtime_1.Inject)())
1195
1272
  ], LemmyHttp.prototype, "editPost", null);
1196
1273
  __decorate([
1197
- (0, tsoa_1.Security)("bearerAuth"),
1198
- (0, tsoa_1.Post)("/post/delete"),
1199
- (0, tsoa_1.Tags)("Post"),
1200
- __param(0, (0, tsoa_1.Body)()),
1201
- __param(1, (0, tsoa_1.Inject)())
1274
+ (0, runtime_1.Security)("bearerAuth"),
1275
+ (0, runtime_1.Post)("/post/delete"),
1276
+ (0, runtime_1.Tags)("Post"),
1277
+ __param(0, (0, runtime_1.Body)()),
1278
+ __param(1, (0, runtime_1.Inject)())
1202
1279
  ], LemmyHttp.prototype, "deletePost", null);
1203
1280
  __decorate([
1204
- (0, tsoa_1.Security)("bearerAuth"),
1205
- (0, tsoa_1.Post)("/post/remove"),
1206
- (0, tsoa_1.Tags)("Post", "Moderator"),
1207
- __param(0, (0, tsoa_1.Body)()),
1208
- __param(1, (0, tsoa_1.Inject)())
1281
+ (0, runtime_1.Security)("bearerAuth"),
1282
+ (0, runtime_1.Post)("/post/remove"),
1283
+ (0, runtime_1.Tags)("Post", "Moderator"),
1284
+ __param(0, (0, runtime_1.Body)()),
1285
+ __param(1, (0, runtime_1.Inject)())
1209
1286
  ], LemmyHttp.prototype, "removePost", null);
1210
1287
  __decorate([
1211
- (0, tsoa_1.Security)("bearerAuth"),
1212
- (0, tsoa_1.Post)("/post/mark_as_read"),
1213
- (0, tsoa_1.Tags)("Post"),
1214
- __param(0, (0, tsoa_1.Body)()),
1215
- __param(1, (0, tsoa_1.Inject)())
1288
+ (0, runtime_1.Security)("bearerAuth"),
1289
+ (0, runtime_1.Post)("/post/mark_as_read"),
1290
+ (0, runtime_1.Tags)("Post"),
1291
+ __param(0, (0, runtime_1.Body)()),
1292
+ __param(1, (0, runtime_1.Inject)())
1216
1293
  ], LemmyHttp.prototype, "markPostAsRead", null);
1217
1294
  __decorate([
1218
- (0, tsoa_1.Security)("bearerAuth"),
1219
- (0, tsoa_1.Post)("/post/mark_as_read/many"),
1220
- (0, tsoa_1.Tags)("Post"),
1221
- __param(0, (0, tsoa_1.Body)()),
1222
- __param(1, (0, tsoa_1.Inject)())
1295
+ (0, runtime_1.Security)("bearerAuth"),
1296
+ (0, runtime_1.Post)("/post/mark_as_read/many"),
1297
+ (0, runtime_1.Tags)("Post"),
1298
+ __param(0, (0, runtime_1.Body)()),
1299
+ __param(1, (0, runtime_1.Inject)())
1223
1300
  ], LemmyHttp.prototype, "markManyPostAsRead", null);
1224
1301
  __decorate([
1225
- (0, tsoa_1.Security)("bearerAuth"),
1226
- (0, tsoa_1.Post)("/post/hide"),
1227
- (0, tsoa_1.Tags)("Post"),
1228
- __param(0, (0, tsoa_1.Body)()),
1229
- __param(1, (0, tsoa_1.Inject)())
1302
+ (0, runtime_1.Security)("bearerAuth"),
1303
+ (0, runtime_1.Post)("/post/hide"),
1304
+ (0, runtime_1.Tags)("Post"),
1305
+ __param(0, (0, runtime_1.Body)()),
1306
+ __param(1, (0, runtime_1.Inject)())
1230
1307
  ], LemmyHttp.prototype, "hidePost", null);
1231
1308
  __decorate([
1232
- (0, tsoa_1.Security)("bearerAuth"),
1233
- (0, tsoa_1.Post)("/post/lock"),
1234
- (0, tsoa_1.Tags)("Post"),
1235
- __param(0, (0, tsoa_1.Body)()),
1236
- __param(1, (0, tsoa_1.Inject)())
1309
+ (0, runtime_1.Security)("bearerAuth"),
1310
+ (0, runtime_1.Post)("/post/lock"),
1311
+ (0, runtime_1.Tags)("Post"),
1312
+ __param(0, (0, runtime_1.Body)()),
1313
+ __param(1, (0, runtime_1.Inject)())
1237
1314
  ], LemmyHttp.prototype, "lockPost", null);
1238
1315
  __decorate([
1239
- (0, tsoa_1.Security)("bearerAuth"),
1240
- (0, tsoa_1.Post)("/post/feature"),
1241
- (0, tsoa_1.Tags)("Post", "Moderator"),
1242
- __param(0, (0, tsoa_1.Body)()),
1243
- __param(1, (0, tsoa_1.Inject)())
1316
+ (0, runtime_1.Security)("bearerAuth"),
1317
+ (0, runtime_1.Post)("/post/feature"),
1318
+ (0, runtime_1.Tags)("Post", "Moderator"),
1319
+ __param(0, (0, runtime_1.Body)()),
1320
+ __param(1, (0, runtime_1.Inject)())
1244
1321
  ], LemmyHttp.prototype, "featurePost", null);
1245
1322
  __decorate([
1246
- (0, tsoa_1.Security)("bearerAuth"),
1247
- (0, tsoa_1.Security)({}),
1248
- (0, tsoa_1.Get)("/post/list"),
1249
- (0, tsoa_1.Tags)("Post"),
1250
- __param(0, (0, tsoa_1.Queries)()),
1251
- __param(1, (0, tsoa_1.Inject)())
1323
+ (0, runtime_1.Security)("bearerAuth"),
1324
+ (0, runtime_1.Security)({}),
1325
+ (0, runtime_1.Get)("/post/list"),
1326
+ (0, runtime_1.Tags)("Post"),
1327
+ __param(0, (0, runtime_1.Queries)()),
1328
+ __param(1, (0, runtime_1.Inject)())
1252
1329
  ], LemmyHttp.prototype, "getPosts", null);
1253
1330
  __decorate([
1254
- (0, tsoa_1.Security)("bearerAuth"),
1255
- (0, tsoa_1.Post)("/post/like"),
1256
- (0, tsoa_1.Tags)("Post"),
1257
- __param(0, (0, tsoa_1.Body)()),
1258
- __param(1, (0, tsoa_1.Inject)())
1331
+ (0, runtime_1.Security)("bearerAuth"),
1332
+ (0, runtime_1.Post)("/post/like"),
1333
+ (0, runtime_1.Tags)("Post"),
1334
+ __param(0, (0, runtime_1.Body)()),
1335
+ __param(1, (0, runtime_1.Inject)())
1259
1336
  ], LemmyHttp.prototype, "likePost", null);
1260
1337
  __decorate([
1261
- (0, tsoa_1.Security)("bearerAuth"),
1262
- (0, tsoa_1.Get)("/post/like/list"),
1263
- (0, tsoa_1.Tags)("Post", "Admin"),
1264
- __param(0, (0, tsoa_1.Queries)()),
1265
- __param(1, (0, tsoa_1.Inject)())
1338
+ (0, runtime_1.Security)("bearerAuth"),
1339
+ (0, runtime_1.Get)("/post/like/list"),
1340
+ (0, runtime_1.Tags)("Post", "Admin"),
1341
+ __param(0, (0, runtime_1.Queries)()),
1342
+ __param(1, (0, runtime_1.Inject)())
1266
1343
  ], LemmyHttp.prototype, "listPostLikes", null);
1267
1344
  __decorate([
1268
- (0, tsoa_1.Security)("bearerAuth"),
1269
- (0, tsoa_1.Put)("/post/save"),
1270
- (0, tsoa_1.Tags)("Post"),
1271
- __param(0, (0, tsoa_1.Body)()),
1272
- __param(1, (0, tsoa_1.Inject)())
1345
+ (0, runtime_1.Security)("bearerAuth"),
1346
+ (0, runtime_1.Put)("/post/save"),
1347
+ (0, runtime_1.Tags)("Post"),
1348
+ __param(0, (0, runtime_1.Body)()),
1349
+ __param(1, (0, runtime_1.Inject)())
1273
1350
  ], LemmyHttp.prototype, "savePost", null);
1274
1351
  __decorate([
1275
- (0, tsoa_1.Security)("bearerAuth"),
1276
- (0, tsoa_1.Post)("/post/report"),
1277
- (0, tsoa_1.Tags)("Post"),
1278
- __param(0, (0, tsoa_1.Body)()),
1279
- __param(1, (0, tsoa_1.Inject)())
1352
+ (0, runtime_1.Security)("bearerAuth"),
1353
+ (0, runtime_1.Post)("/post/report"),
1354
+ (0, runtime_1.Tags)("Post"),
1355
+ __param(0, (0, runtime_1.Body)()),
1356
+ __param(1, (0, runtime_1.Inject)())
1280
1357
  ], LemmyHttp.prototype, "createPostReport", null);
1281
1358
  __decorate([
1282
- (0, tsoa_1.Security)("bearerAuth"),
1283
- (0, tsoa_1.Put)("/post/report/resolve"),
1284
- (0, tsoa_1.Tags)("Post", "Moderator"),
1285
- __param(0, (0, tsoa_1.Body)()),
1286
- __param(1, (0, tsoa_1.Inject)())
1359
+ (0, runtime_1.Security)("bearerAuth"),
1360
+ (0, runtime_1.Put)("/post/report/resolve"),
1361
+ (0, runtime_1.Tags)("Post", "Moderator"),
1362
+ __param(0, (0, runtime_1.Body)()),
1363
+ __param(1, (0, runtime_1.Inject)())
1287
1364
  ], LemmyHttp.prototype, "resolvePostReport", null);
1288
1365
  __decorate([
1289
- (0, tsoa_1.Security)("bearerAuth"),
1290
- (0, tsoa_1.Get)("/post/site_metadata"),
1291
- (0, tsoa_1.Tags)("Miscellaneous", "Post"),
1292
- __param(0, (0, tsoa_1.Queries)()),
1293
- __param(1, (0, tsoa_1.Inject)())
1366
+ (0, runtime_1.Security)("bearerAuth"),
1367
+ (0, runtime_1.Get)("/post/site_metadata"),
1368
+ (0, runtime_1.Tags)("Miscellaneous", "Post"),
1369
+ __param(0, (0, runtime_1.Queries)()),
1370
+ __param(1, (0, runtime_1.Inject)())
1294
1371
  ], LemmyHttp.prototype, "getSiteMetadata", null);
1295
1372
  __decorate([
1296
- (0, tsoa_1.Security)("bearerAuth"),
1297
- (0, tsoa_1.Post)("/comment"),
1298
- (0, tsoa_1.Tags)("Comment"),
1299
- __param(0, (0, tsoa_1.Body)()),
1300
- __param(1, (0, tsoa_1.Inject)())
1373
+ (0, runtime_1.Security)("bearerAuth"),
1374
+ (0, runtime_1.Post)("/comment"),
1375
+ (0, runtime_1.Tags)("Comment"),
1376
+ __param(0, (0, runtime_1.Body)()),
1377
+ __param(1, (0, runtime_1.Inject)())
1301
1378
  ], LemmyHttp.prototype, "createComment", null);
1302
1379
  __decorate([
1303
- (0, tsoa_1.Security)("bearerAuth"),
1304
- (0, tsoa_1.Put)("/comment"),
1305
- (0, tsoa_1.Tags)("Comment"),
1306
- __param(0, (0, tsoa_1.Body)()),
1307
- __param(1, (0, tsoa_1.Inject)())
1380
+ (0, runtime_1.Security)("bearerAuth"),
1381
+ (0, runtime_1.Put)("/comment"),
1382
+ (0, runtime_1.Tags)("Comment"),
1383
+ __param(0, (0, runtime_1.Body)()),
1384
+ __param(1, (0, runtime_1.Inject)())
1308
1385
  ], LemmyHttp.prototype, "editComment", null);
1309
1386
  __decorate([
1310
- (0, tsoa_1.Security)("bearerAuth"),
1311
- (0, tsoa_1.Post)("/comment/delete"),
1312
- (0, tsoa_1.Tags)("Comment"),
1313
- __param(0, (0, tsoa_1.Body)()),
1314
- __param(1, (0, tsoa_1.Inject)())
1387
+ (0, runtime_1.Security)("bearerAuth"),
1388
+ (0, runtime_1.Post)("/comment/delete"),
1389
+ (0, runtime_1.Tags)("Comment"),
1390
+ __param(0, (0, runtime_1.Body)()),
1391
+ __param(1, (0, runtime_1.Inject)())
1315
1392
  ], LemmyHttp.prototype, "deleteComment", null);
1316
1393
  __decorate([
1317
- (0, tsoa_1.Security)("bearerAuth"),
1318
- (0, tsoa_1.Post)("/comment/remove"),
1319
- (0, tsoa_1.Tags)("Comment", "Moderator"),
1320
- __param(0, (0, tsoa_1.Body)()),
1321
- __param(1, (0, tsoa_1.Inject)())
1394
+ (0, runtime_1.Security)("bearerAuth"),
1395
+ (0, runtime_1.Post)("/comment/remove"),
1396
+ (0, runtime_1.Tags)("Comment", "Moderator"),
1397
+ __param(0, (0, runtime_1.Body)()),
1398
+ __param(1, (0, runtime_1.Inject)())
1322
1399
  ], LemmyHttp.prototype, "removeComment", null);
1323
1400
  __decorate([
1324
- (0, tsoa_1.Security)("bearerAuth"),
1325
- (0, tsoa_1.Post)("/comment/mark_as_read"),
1326
- (0, tsoa_1.Tags)("Comment"),
1327
- __param(0, (0, tsoa_1.Body)()),
1328
- __param(1, (0, tsoa_1.Inject)())
1329
- ], LemmyHttp.prototype, "markCommentReplyAsRead", null);
1330
- __decorate([
1331
- (0, tsoa_1.Security)("bearerAuth"),
1332
- (0, tsoa_1.Post)("/comment/like"),
1333
- (0, tsoa_1.Tags)("Comment"),
1334
- __param(0, (0, tsoa_1.Body)()),
1335
- __param(1, (0, tsoa_1.Inject)())
1401
+ (0, runtime_1.Security)("bearerAuth"),
1402
+ (0, runtime_1.Post)("/comment/like"),
1403
+ (0, runtime_1.Tags)("Comment"),
1404
+ __param(0, (0, runtime_1.Body)()),
1405
+ __param(1, (0, runtime_1.Inject)())
1336
1406
  ], LemmyHttp.prototype, "likeComment", null);
1337
1407
  __decorate([
1338
- (0, tsoa_1.Security)("bearerAuth"),
1339
- (0, tsoa_1.Get)("/comment/like/list"),
1340
- (0, tsoa_1.Tags)("Comment", "Admin"),
1341
- __param(0, (0, tsoa_1.Queries)()),
1342
- __param(1, (0, tsoa_1.Inject)())
1408
+ (0, runtime_1.Security)("bearerAuth"),
1409
+ (0, runtime_1.Get)("/comment/like/list"),
1410
+ (0, runtime_1.Tags)("Comment", "Admin"),
1411
+ __param(0, (0, runtime_1.Queries)()),
1412
+ __param(1, (0, runtime_1.Inject)())
1343
1413
  ], LemmyHttp.prototype, "listCommentLikes", null);
1344
1414
  __decorate([
1345
- (0, tsoa_1.Security)("bearerAuth"),
1346
- (0, tsoa_1.Put)("/comment/save"),
1347
- (0, tsoa_1.Tags)("Comment"),
1348
- __param(0, (0, tsoa_1.Body)()),
1349
- __param(1, (0, tsoa_1.Inject)())
1415
+ (0, runtime_1.Security)("bearerAuth"),
1416
+ (0, runtime_1.Put)("/comment/save"),
1417
+ (0, runtime_1.Tags)("Comment"),
1418
+ __param(0, (0, runtime_1.Body)()),
1419
+ __param(1, (0, runtime_1.Inject)())
1350
1420
  ], LemmyHttp.prototype, "saveComment", null);
1351
1421
  __decorate([
1352
- (0, tsoa_1.Security)("bearerAuth"),
1353
- (0, tsoa_1.Post)("/comment/distinguish"),
1354
- (0, tsoa_1.Tags)("Comment", "Moderator"),
1355
- __param(0, (0, tsoa_1.Body)()),
1356
- __param(1, (0, tsoa_1.Inject)())
1422
+ (0, runtime_1.Security)("bearerAuth"),
1423
+ (0, runtime_1.Post)("/comment/distinguish"),
1424
+ (0, runtime_1.Tags)("Comment", "Moderator"),
1425
+ __param(0, (0, runtime_1.Body)()),
1426
+ __param(1, (0, runtime_1.Inject)())
1357
1427
  ], LemmyHttp.prototype, "distinguishComment", null);
1358
1428
  __decorate([
1359
- (0, tsoa_1.Security)("bearerAuth"),
1360
- (0, tsoa_1.Security)({}),
1361
- (0, tsoa_1.Get)("/comment/list"),
1362
- (0, tsoa_1.Tags)("Comment"),
1363
- __param(0, (0, tsoa_1.Queries)()),
1364
- __param(1, (0, tsoa_1.Inject)())
1429
+ (0, runtime_1.Security)("bearerAuth"),
1430
+ (0, runtime_1.Security)({}),
1431
+ (0, runtime_1.Get)("/comment/list"),
1432
+ (0, runtime_1.Tags)("Comment"),
1433
+ __param(0, (0, runtime_1.Queries)()),
1434
+ __param(1, (0, runtime_1.Inject)())
1365
1435
  ], LemmyHttp.prototype, "getComments", null);
1366
1436
  __decorate([
1367
- (0, tsoa_1.Security)("bearerAuth"),
1368
- (0, tsoa_1.Security)({}),
1369
- (0, tsoa_1.Get)("/comment/list/slim"),
1370
- (0, tsoa_1.Tags)("Comment"),
1371
- __param(0, (0, tsoa_1.Queries)()),
1372
- __param(1, (0, tsoa_1.Inject)())
1437
+ (0, runtime_1.Security)("bearerAuth"),
1438
+ (0, runtime_1.Security)({}),
1439
+ (0, runtime_1.Get)("/comment/list/slim"),
1440
+ (0, runtime_1.Tags)("Comment"),
1441
+ __param(0, (0, runtime_1.Queries)()),
1442
+ __param(1, (0, runtime_1.Inject)())
1373
1443
  ], LemmyHttp.prototype, "getCommentsSlim", null);
1374
1444
  __decorate([
1375
- (0, tsoa_1.Security)("bearerAuth"),
1376
- (0, tsoa_1.Security)({}),
1377
- (0, tsoa_1.Get)("/comment"),
1378
- (0, tsoa_1.Tags)("Comment"),
1379
- __param(0, (0, tsoa_1.Queries)()),
1380
- __param(1, (0, tsoa_1.Inject)())
1445
+ (0, runtime_1.Security)("bearerAuth"),
1446
+ (0, runtime_1.Security)({}),
1447
+ (0, runtime_1.Get)("/comment"),
1448
+ (0, runtime_1.Tags)("Comment"),
1449
+ __param(0, (0, runtime_1.Queries)()),
1450
+ __param(1, (0, runtime_1.Inject)())
1381
1451
  ], LemmyHttp.prototype, "getComment", null);
1382
1452
  __decorate([
1383
- (0, tsoa_1.Security)("bearerAuth"),
1384
- (0, tsoa_1.Post)("/comment/report"),
1385
- (0, tsoa_1.Tags)("Comment"),
1386
- __param(0, (0, tsoa_1.Body)()),
1387
- __param(1, (0, tsoa_1.Inject)())
1453
+ (0, runtime_1.Security)("bearerAuth"),
1454
+ (0, runtime_1.Post)("/comment/report"),
1455
+ (0, runtime_1.Tags)("Comment"),
1456
+ __param(0, (0, runtime_1.Body)()),
1457
+ __param(1, (0, runtime_1.Inject)())
1388
1458
  ], LemmyHttp.prototype, "createCommentReport", null);
1389
1459
  __decorate([
1390
- (0, tsoa_1.Security)("bearerAuth"),
1391
- (0, tsoa_1.Put)("/comment/report/resolve"),
1392
- (0, tsoa_1.Tags)("Comment", "Moderator"),
1393
- __param(0, (0, tsoa_1.Body)()),
1394
- __param(1, (0, tsoa_1.Inject)())
1460
+ (0, runtime_1.Security)("bearerAuth"),
1461
+ (0, runtime_1.Put)("/comment/report/resolve"),
1462
+ (0, runtime_1.Tags)("Comment", "Moderator"),
1463
+ __param(0, (0, runtime_1.Body)()),
1464
+ __param(1, (0, runtime_1.Inject)())
1395
1465
  ], LemmyHttp.prototype, "resolveCommentReport", null);
1396
1466
  __decorate([
1397
- (0, tsoa_1.Security)("bearerAuth"),
1398
- (0, tsoa_1.Post)("/private_message"),
1399
- (0, tsoa_1.Tags)("PrivateMessage"),
1400
- __param(0, (0, tsoa_1.Body)()),
1401
- __param(1, (0, tsoa_1.Inject)())
1467
+ (0, runtime_1.Security)("bearerAuth"),
1468
+ (0, runtime_1.Post)("/private_message"),
1469
+ (0, runtime_1.Tags)("PrivateMessage"),
1470
+ __param(0, (0, runtime_1.Body)()),
1471
+ __param(1, (0, runtime_1.Inject)())
1402
1472
  ], LemmyHttp.prototype, "createPrivateMessage", null);
1403
1473
  __decorate([
1404
- (0, tsoa_1.Security)("bearerAuth"),
1405
- (0, tsoa_1.Put)("/private_message"),
1406
- (0, tsoa_1.Tags)("PrivateMessage"),
1407
- __param(0, (0, tsoa_1.Body)()),
1408
- __param(1, (0, tsoa_1.Inject)())
1474
+ (0, runtime_1.Security)("bearerAuth"),
1475
+ (0, runtime_1.Put)("/private_message"),
1476
+ (0, runtime_1.Tags)("PrivateMessage"),
1477
+ __param(0, (0, runtime_1.Body)()),
1478
+ __param(1, (0, runtime_1.Inject)())
1409
1479
  ], LemmyHttp.prototype, "editPrivateMessage", null);
1410
1480
  __decorate([
1411
- (0, tsoa_1.Security)("bearerAuth"),
1412
- (0, tsoa_1.Post)("/private_message/delete"),
1413
- (0, tsoa_1.Tags)("PrivateMessage"),
1414
- __param(0, (0, tsoa_1.Body)()),
1415
- __param(1, (0, tsoa_1.Inject)())
1481
+ (0, runtime_1.Security)("bearerAuth"),
1482
+ (0, runtime_1.Post)("/private_message/delete"),
1483
+ (0, runtime_1.Tags)("PrivateMessage"),
1484
+ __param(0, (0, runtime_1.Body)()),
1485
+ __param(1, (0, runtime_1.Inject)())
1416
1486
  ], LemmyHttp.prototype, "deletePrivateMessage", null);
1417
1487
  __decorate([
1418
- (0, tsoa_1.Security)("bearerAuth"),
1419
- (0, tsoa_1.Post)("/private_message/mark_as_read"),
1420
- (0, tsoa_1.Tags)("PrivateMessage"),
1421
- __param(0, (0, tsoa_1.Body)()),
1422
- __param(1, (0, tsoa_1.Inject)())
1488
+ (0, runtime_1.Security)("bearerAuth"),
1489
+ (0, runtime_1.Post)("/private_message/mark_as_read"),
1490
+ (0, runtime_1.Tags)("PrivateMessage"),
1491
+ __param(0, (0, runtime_1.Body)()),
1492
+ __param(1, (0, runtime_1.Inject)())
1423
1493
  ], LemmyHttp.prototype, "markPrivateMessageAsRead", null);
1424
1494
  __decorate([
1425
- (0, tsoa_1.Security)("bearerAuth"),
1426
- (0, tsoa_1.Post)("/private_message/report"),
1427
- (0, tsoa_1.Tags)("PrivateMessage"),
1428
- __param(0, (0, tsoa_1.Body)()),
1429
- __param(1, (0, tsoa_1.Inject)())
1495
+ (0, runtime_1.Security)("bearerAuth"),
1496
+ (0, runtime_1.Post)("/private_message/report"),
1497
+ (0, runtime_1.Tags)("PrivateMessage"),
1498
+ __param(0, (0, runtime_1.Body)()),
1499
+ __param(1, (0, runtime_1.Inject)())
1430
1500
  ], LemmyHttp.prototype, "createPrivateMessageReport", null);
1431
1501
  __decorate([
1432
- (0, tsoa_1.Security)("bearerAuth"),
1433
- (0, tsoa_1.Put)("/private_message/report/resolve"),
1434
- (0, tsoa_1.Tags)("PrivateMessage", "Admin"),
1435
- __param(0, (0, tsoa_1.Body)()),
1436
- __param(1, (0, tsoa_1.Inject)())
1502
+ (0, runtime_1.Security)("bearerAuth"),
1503
+ (0, runtime_1.Put)("/private_message/report/resolve"),
1504
+ (0, runtime_1.Tags)("PrivateMessage", "Admin"),
1505
+ __param(0, (0, runtime_1.Body)()),
1506
+ __param(1, (0, runtime_1.Inject)())
1437
1507
  ], LemmyHttp.prototype, "resolvePrivateMessageReport", null);
1438
1508
  __decorate([
1439
- (0, tsoa_1.Post)("/account/auth/register"),
1440
- (0, tsoa_1.Tags)("Account"),
1441
- __param(0, (0, tsoa_1.Body)()),
1442
- __param(1, (0, tsoa_1.Inject)())
1509
+ (0, runtime_1.Post)("/account/auth/register"),
1510
+ (0, runtime_1.Tags)("Account"),
1511
+ __param(0, (0, runtime_1.Body)()),
1512
+ __param(1, (0, runtime_1.Inject)())
1443
1513
  ], LemmyHttp.prototype, "register", null);
1444
1514
  __decorate([
1445
- (0, tsoa_1.Post)("/account/auth/login"),
1446
- (0, tsoa_1.Tags)("Account"),
1447
- __param(0, (0, tsoa_1.Body)()),
1448
- __param(1, (0, tsoa_1.Inject)())
1515
+ (0, runtime_1.Post)("/account/auth/login"),
1516
+ (0, runtime_1.Tags)("Account"),
1517
+ __param(0, (0, runtime_1.Body)()),
1518
+ __param(1, (0, runtime_1.Inject)())
1449
1519
  ], LemmyHttp.prototype, "login", null);
1450
1520
  __decorate([
1451
- (0, tsoa_1.Security)("bearerAuth"),
1452
- (0, tsoa_1.Post)("/account/auth/logout"),
1453
- (0, tsoa_1.Tags)("Account"),
1454
- __param(0, (0, tsoa_1.Inject)())
1521
+ (0, runtime_1.Security)("bearerAuth"),
1522
+ (0, runtime_1.Post)("/account/auth/logout"),
1523
+ (0, runtime_1.Tags)("Account"),
1524
+ __param(0, (0, runtime_1.Inject)())
1455
1525
  ], LemmyHttp.prototype, "logout", null);
1456
1526
  __decorate([
1457
- (0, tsoa_1.Security)("bearerAuth"),
1458
- (0, tsoa_1.Security)({}),
1459
- (0, tsoa_1.Get)("/person"),
1460
- (0, tsoa_1.Tags)("Person"),
1461
- __param(0, (0, tsoa_1.Queries)()),
1462
- __param(1, (0, tsoa_1.Inject)())
1527
+ (0, runtime_1.Security)("bearerAuth"),
1528
+ (0, runtime_1.Security)({}),
1529
+ (0, runtime_1.Get)("/person"),
1530
+ (0, runtime_1.Tags)("Person"),
1531
+ __param(0, (0, runtime_1.Queries)()),
1532
+ __param(1, (0, runtime_1.Inject)())
1463
1533
  ], LemmyHttp.prototype, "getPersonDetails", null);
1464
1534
  __decorate([
1465
- (0, tsoa_1.Security)("bearerAuth"),
1466
- (0, tsoa_1.Security)({}),
1467
- (0, tsoa_1.Get)("/person/content"),
1468
- (0, tsoa_1.Tags)("Person"),
1469
- __param(0, (0, tsoa_1.Queries)()),
1470
- __param(1, (0, tsoa_1.Inject)())
1535
+ (0, runtime_1.Security)("bearerAuth"),
1536
+ (0, runtime_1.Security)({}),
1537
+ (0, runtime_1.Get)("/person/content"),
1538
+ (0, runtime_1.Tags)("Person"),
1539
+ __param(0, (0, runtime_1.Queries)()),
1540
+ __param(1, (0, runtime_1.Inject)())
1471
1541
  ], LemmyHttp.prototype, "listPersonContent", null);
1472
1542
  __decorate([
1473
- (0, tsoa_1.Security)("bearerAuth"),
1474
- (0, tsoa_1.Post)("/account/mention/comment/mark_as_read"),
1475
- (0, tsoa_1.Tags)("Account", "Person"),
1476
- __param(0, (0, tsoa_1.Body)()),
1477
- __param(1, (0, tsoa_1.Inject)())
1478
- ], LemmyHttp.prototype, "markCommentMentionAsRead", null);
1479
- __decorate([
1480
- (0, tsoa_1.Security)("bearerAuth"),
1481
- (0, tsoa_1.Post)("/account/mention/post/mark_as_read"),
1482
- (0, tsoa_1.Tags)("Account", "Post"),
1483
- __param(0, (0, tsoa_1.Body)()),
1484
- __param(1, (0, tsoa_1.Inject)())
1485
- ], LemmyHttp.prototype, "markPostMentionAsRead", null);
1486
- __decorate([
1487
- (0, tsoa_1.Security)("bearerAuth"),
1488
- (0, tsoa_1.Post)("/admin/ban"),
1489
- (0, tsoa_1.Tags)("Admin"),
1490
- __param(0, (0, tsoa_1.Body)()),
1491
- __param(1, (0, tsoa_1.Inject)())
1543
+ (0, runtime_1.Security)("bearerAuth"),
1544
+ (0, runtime_1.Post)("/admin/ban"),
1545
+ (0, runtime_1.Tags)("Admin"),
1546
+ __param(0, (0, runtime_1.Body)()),
1547
+ __param(1, (0, runtime_1.Inject)())
1492
1548
  ], LemmyHttp.prototype, "banPerson", null);
1493
1549
  __decorate([
1494
- (0, tsoa_1.Security)("bearerAuth"),
1495
- (0, tsoa_1.Get)("/admin/banned"),
1496
- (0, tsoa_1.Tags)("Admin", "Miscellaneous"),
1497
- __param(0, (0, tsoa_1.Inject)())
1498
- ], LemmyHttp.prototype, "getBannedPersons", null);
1499
- __decorate([
1500
- (0, tsoa_1.Security)("bearerAuth"),
1501
- (0, tsoa_1.Post)("/account/block/person"),
1502
- (0, tsoa_1.Tags)("Account"),
1503
- __param(0, (0, tsoa_1.Body)()),
1504
- __param(1, (0, tsoa_1.Inject)())
1550
+ (0, runtime_1.Security)("bearerAuth"),
1551
+ (0, runtime_1.Get)("/admin/users"),
1552
+ (0, runtime_1.Tags)("Admin", "Miscellaneous"),
1553
+ __param(0, (0, runtime_1.Queries)()),
1554
+ __param(1, (0, runtime_1.Inject)())
1555
+ ], LemmyHttp.prototype, "listUsers", null);
1556
+ __decorate([
1557
+ (0, runtime_1.Security)("bearerAuth"),
1558
+ (0, runtime_1.Post)("/account/block/person"),
1559
+ (0, runtime_1.Tags)("Account"),
1560
+ __param(0, (0, runtime_1.Body)()),
1561
+ __param(1, (0, runtime_1.Inject)())
1505
1562
  ], LemmyHttp.prototype, "blockPerson", null);
1506
1563
  __decorate([
1507
- (0, tsoa_1.Get)("/account/auth/get_captcha"),
1508
- (0, tsoa_1.Tags)("Account"),
1509
- __param(0, (0, tsoa_1.Inject)())
1564
+ (0, runtime_1.Get)("/account/auth/get_captcha"),
1565
+ (0, runtime_1.Tags)("Account"),
1566
+ __param(0, (0, runtime_1.Inject)())
1510
1567
  ], LemmyHttp.prototype, "getCaptcha", null);
1511
1568
  __decorate([
1512
- (0, tsoa_1.Security)("bearerAuth"),
1513
- (0, tsoa_1.Post)("/account/delete"),
1514
- (0, tsoa_1.Tags)("Account"),
1515
- __param(0, (0, tsoa_1.Body)()),
1516
- __param(1, (0, tsoa_1.Inject)())
1569
+ (0, runtime_1.Security)("bearerAuth"),
1570
+ (0, runtime_1.Post)("/account/delete"),
1571
+ (0, runtime_1.Tags)("Account"),
1572
+ __param(0, (0, runtime_1.Body)()),
1573
+ __param(1, (0, runtime_1.Inject)())
1517
1574
  ], LemmyHttp.prototype, "deleteAccount", null);
1518
1575
  __decorate([
1519
- (0, tsoa_1.Security)("bearerAuth"),
1520
- (0, tsoa_1.Post)("/account/auth/password_reset"),
1521
- (0, tsoa_1.Tags)("Account"),
1522
- __param(0, (0, tsoa_1.Body)()),
1523
- __param(1, (0, tsoa_1.Inject)())
1576
+ (0, runtime_1.Security)("bearerAuth"),
1577
+ (0, runtime_1.Post)("/account/auth/password_reset"),
1578
+ (0, runtime_1.Tags)("Account"),
1579
+ __param(0, (0, runtime_1.Body)()),
1580
+ __param(1, (0, runtime_1.Inject)())
1524
1581
  ], LemmyHttp.prototype, "passwordReset", null);
1525
1582
  __decorate([
1526
- (0, tsoa_1.Security)("bearerAuth"),
1527
- (0, tsoa_1.Post)("/account/auth/password_change"),
1528
- (0, tsoa_1.Tags)("Account"),
1529
- __param(0, (0, tsoa_1.Body)()),
1530
- __param(1, (0, tsoa_1.Inject)())
1583
+ (0, runtime_1.Security)("bearerAuth"),
1584
+ (0, runtime_1.Post)("/account/auth/password_change"),
1585
+ (0, runtime_1.Tags)("Account"),
1586
+ __param(0, (0, runtime_1.Body)()),
1587
+ __param(1, (0, runtime_1.Inject)())
1531
1588
  ], LemmyHttp.prototype, "passwordChangeAfterReset", null);
1532
1589
  __decorate([
1533
- (0, tsoa_1.Security)("bearerAuth"),
1534
- (0, tsoa_1.Post)("/account/mark_as_read/all"),
1535
- (0, tsoa_1.Tags)("Account"),
1536
- __param(0, (0, tsoa_1.Inject)())
1590
+ (0, runtime_1.Security)("bearerAuth"),
1591
+ (0, runtime_1.Post)("/account/mark_as_read/all"),
1592
+ (0, runtime_1.Tags)("Account"),
1593
+ __param(0, (0, runtime_1.Inject)())
1537
1594
  ], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
1538
1595
  __decorate([
1539
- (0, tsoa_1.Security)("bearerAuth"),
1540
- (0, tsoa_1.Put)("/account/settings/save"),
1541
- (0, tsoa_1.Tags)("Account"),
1542
- __param(0, (0, tsoa_1.Body)()),
1543
- __param(1, (0, tsoa_1.Inject)())
1596
+ (0, runtime_1.Security)("bearerAuth"),
1597
+ (0, runtime_1.Post)("/account/mark_as_read"),
1598
+ (0, runtime_1.Tags)("Account"),
1599
+ __param(0, (0, runtime_1.Body)()),
1600
+ __param(1, (0, runtime_1.Inject)())
1601
+ ], LemmyHttp.prototype, "markNotificationAsRead", null);
1602
+ __decorate([
1603
+ (0, runtime_1.Security)("bearerAuth"),
1604
+ (0, runtime_1.Put)("/account/settings/save"),
1605
+ (0, runtime_1.Tags)("Account"),
1606
+ __param(0, (0, runtime_1.Body)()),
1607
+ __param(1, (0, runtime_1.Inject)())
1544
1608
  ], LemmyHttp.prototype, "saveUserSettings", null);
1545
1609
  __decorate([
1546
- (0, tsoa_1.Security)("bearerAuth"),
1547
- (0, tsoa_1.Put)("/account/auth/change_password"),
1548
- (0, tsoa_1.Tags)("Account"),
1549
- __param(0, (0, tsoa_1.Body)()),
1550
- __param(1, (0, tsoa_1.Inject)())
1610
+ (0, runtime_1.Security)("bearerAuth"),
1611
+ (0, runtime_1.Put)("/account/auth/change_password"),
1612
+ (0, runtime_1.Tags)("Account"),
1613
+ __param(0, (0, runtime_1.Body)()),
1614
+ __param(1, (0, runtime_1.Inject)())
1551
1615
  ], LemmyHttp.prototype, "changePassword", null);
1552
1616
  __decorate([
1553
- (0, tsoa_1.Security)("bearerAuth"),
1554
- (0, tsoa_1.Get)("/account/report_count"),
1555
- (0, tsoa_1.Tags)("Account"),
1556
- __param(0, (0, tsoa_1.Queries)()),
1557
- __param(1, (0, tsoa_1.Inject)())
1617
+ (0, runtime_1.Security)("bearerAuth"),
1618
+ (0, runtime_1.Get)("/account/report_count"),
1619
+ (0, runtime_1.Tags)("Account"),
1620
+ __param(0, (0, runtime_1.Queries)()),
1621
+ __param(1, (0, runtime_1.Inject)())
1558
1622
  ], LemmyHttp.prototype, "getReportCount", null);
1559
1623
  __decorate([
1560
- (0, tsoa_1.Security)("bearerAuth"),
1561
- (0, tsoa_1.Get)("/account/unread_count"),
1562
- (0, tsoa_1.Tags)("Account"),
1563
- __param(0, (0, tsoa_1.Inject)())
1624
+ (0, runtime_1.Security)("bearerAuth"),
1625
+ (0, runtime_1.Get)("/account/unread_count"),
1626
+ (0, runtime_1.Tags)("Account"),
1627
+ __param(0, (0, runtime_1.Inject)())
1564
1628
  ], LemmyHttp.prototype, "getUnreadCount", null);
1565
1629
  __decorate([
1566
- (0, tsoa_1.Security)("bearerAuth"),
1567
- (0, tsoa_1.Get)("/account/inbox"),
1568
- (0, tsoa_1.Tags)("Account"),
1569
- __param(0, (0, tsoa_1.Queries)()),
1570
- __param(1, (0, tsoa_1.Inject)())
1630
+ (0, runtime_1.Security)("bearerAuth"),
1631
+ (0, runtime_1.Get)("/account/inbox"),
1632
+ (0, runtime_1.Tags)("Account"),
1633
+ __param(0, (0, runtime_1.Queries)()),
1634
+ __param(1, (0, runtime_1.Inject)())
1571
1635
  ], LemmyHttp.prototype, "listInbox", null);
1572
1636
  __decorate([
1573
- (0, tsoa_1.Post)("/account/auth/verify_email"),
1574
- (0, tsoa_1.Tags)("Account"),
1575
- __param(0, (0, tsoa_1.Body)()),
1576
- __param(1, (0, tsoa_1.Inject)())
1637
+ (0, runtime_1.Post)("/account/auth/verify_email"),
1638
+ (0, runtime_1.Tags)("Account"),
1639
+ __param(0, (0, runtime_1.Body)()),
1640
+ __param(1, (0, runtime_1.Inject)())
1577
1641
  ], LemmyHttp.prototype, "verifyEmail", null);
1578
1642
  __decorate([
1579
- (0, tsoa_1.Security)("bearerAuth"),
1580
- (0, tsoa_1.Get)("/account/auth/saved"),
1581
- (0, tsoa_1.Tags)("Account"),
1582
- __param(0, (0, tsoa_1.Queries)()),
1583
- __param(1, (0, tsoa_1.Inject)())
1643
+ (0, runtime_1.Post)("/account/auth/resend_verification_email"),
1644
+ (0, runtime_1.Tags)("Account"),
1645
+ __param(0, (0, runtime_1.Body)()),
1646
+ __param(1, (0, runtime_1.Inject)())
1647
+ ], LemmyHttp.prototype, "resendVerificationEmail", null);
1648
+ __decorate([
1649
+ (0, runtime_1.Security)("bearerAuth"),
1650
+ (0, runtime_1.Get)("/account/saved"),
1651
+ (0, runtime_1.Tags)("Account"),
1652
+ __param(0, (0, runtime_1.Queries)()),
1653
+ __param(1, (0, runtime_1.Inject)())
1584
1654
  ], LemmyHttp.prototype, "listPersonSaved", null);
1585
1655
  __decorate([
1586
- (0, tsoa_1.Security)("bearerAuth"),
1587
- (0, tsoa_1.Post)("/admin/add"),
1588
- (0, tsoa_1.Tags)("Admin"),
1589
- __param(0, (0, tsoa_1.Body)()),
1590
- __param(1, (0, tsoa_1.Inject)())
1656
+ (0, runtime_1.Security)("bearerAuth"),
1657
+ (0, runtime_1.Get)("/account/read"),
1658
+ (0, runtime_1.Tags)("Account"),
1659
+ __param(0, (0, runtime_1.Queries)()),
1660
+ __param(1, (0, runtime_1.Inject)())
1661
+ ], LemmyHttp.prototype, "listPersonRead", null);
1662
+ __decorate([
1663
+ (0, runtime_1.Security)("bearerAuth"),
1664
+ (0, runtime_1.Get)("/account/hidden"),
1665
+ (0, runtime_1.Tags)("Account"),
1666
+ __param(0, (0, runtime_1.Queries)()),
1667
+ __param(1, (0, runtime_1.Inject)())
1668
+ ], LemmyHttp.prototype, "listPersonHidden", null);
1669
+ __decorate([
1670
+ (0, runtime_1.Security)("bearerAuth"),
1671
+ (0, runtime_1.Get)("/account/liked"),
1672
+ (0, runtime_1.Tags)("Account"),
1673
+ __param(0, (0, runtime_1.Queries)()),
1674
+ __param(1, (0, runtime_1.Inject)())
1675
+ ], LemmyHttp.prototype, "listPersonLiked", null);
1676
+ __decorate([
1677
+ (0, runtime_1.Security)("bearerAuth"),
1678
+ (0, runtime_1.Post)("/admin/add"),
1679
+ (0, runtime_1.Tags)("Admin"),
1680
+ __param(0, (0, runtime_1.Body)()),
1681
+ __param(1, (0, runtime_1.Inject)())
1591
1682
  ], LemmyHttp.prototype, "addAdmin", null);
1592
1683
  __decorate([
1593
- (0, tsoa_1.Security)("bearerAuth"),
1594
- (0, tsoa_1.Get)("/admin/registration_application/count"),
1595
- (0, tsoa_1.Tags)("Admin"),
1596
- __param(0, (0, tsoa_1.Inject)())
1684
+ (0, runtime_1.Security)("bearerAuth"),
1685
+ (0, runtime_1.Get)("/admin/registration_application/count"),
1686
+ (0, runtime_1.Tags)("Admin"),
1687
+ __param(0, (0, runtime_1.Inject)())
1597
1688
  ], LemmyHttp.prototype, "getUnreadRegistrationApplicationCount", null);
1598
1689
  __decorate([
1599
- (0, tsoa_1.Security)("bearerAuth"),
1600
- (0, tsoa_1.Get)("/admin/registration_application/list"),
1601
- (0, tsoa_1.Tags)("Admin"),
1602
- __param(0, (0, tsoa_1.Queries)()),
1603
- __param(1, (0, tsoa_1.Inject)())
1690
+ (0, runtime_1.Security)("bearerAuth"),
1691
+ (0, runtime_1.Get)("/admin/registration_application/list"),
1692
+ (0, runtime_1.Tags)("Admin"),
1693
+ __param(0, (0, runtime_1.Queries)()),
1694
+ __param(1, (0, runtime_1.Inject)())
1604
1695
  ], LemmyHttp.prototype, "listRegistrationApplications", null);
1605
1696
  __decorate([
1606
- (0, tsoa_1.Security)("bearerAuth"),
1607
- (0, tsoa_1.Put)("/admin/registration_application/approve"),
1608
- (0, tsoa_1.Tags)("Admin"),
1609
- __param(0, (0, tsoa_1.Body)()),
1610
- __param(1, (0, tsoa_1.Inject)())
1697
+ (0, runtime_1.Security)("bearerAuth"),
1698
+ (0, runtime_1.Put)("/admin/registration_application/approve"),
1699
+ (0, runtime_1.Tags)("Admin"),
1700
+ __param(0, (0, runtime_1.Body)()),
1701
+ __param(1, (0, runtime_1.Inject)())
1611
1702
  ], LemmyHttp.prototype, "approveRegistrationApplication", null);
1612
1703
  __decorate([
1613
- (0, tsoa_1.Security)("bearerAuth"),
1614
- (0, tsoa_1.Get)("/admin/registration_application"),
1615
- (0, tsoa_1.Tags)("Admin"),
1616
- __param(0, (0, tsoa_1.Queries)()),
1617
- __param(1, (0, tsoa_1.Inject)())
1704
+ (0, runtime_1.Security)("bearerAuth"),
1705
+ (0, runtime_1.Get)("/admin/registration_application"),
1706
+ (0, runtime_1.Tags)("Admin"),
1707
+ __param(0, (0, runtime_1.Queries)()),
1708
+ __param(1, (0, runtime_1.Inject)())
1618
1709
  ], LemmyHttp.prototype, "getRegistrationApplication", null);
1619
1710
  __decorate([
1620
- (0, tsoa_1.Security)("bearerAuth"),
1621
- (0, tsoa_1.Post)("/admin/purge/person"),
1622
- (0, tsoa_1.Tags)("Admin"),
1623
- __param(0, (0, tsoa_1.Body)()),
1624
- __param(1, (0, tsoa_1.Inject)())
1711
+ (0, runtime_1.Security)("bearerAuth"),
1712
+ (0, runtime_1.Post)("/admin/purge/person"),
1713
+ (0, runtime_1.Tags)("Admin"),
1714
+ __param(0, (0, runtime_1.Body)()),
1715
+ __param(1, (0, runtime_1.Inject)())
1625
1716
  ], LemmyHttp.prototype, "purgePerson", null);
1626
1717
  __decorate([
1627
- (0, tsoa_1.Security)("bearerAuth"),
1628
- (0, tsoa_1.Post)("/admin/purge/community"),
1629
- (0, tsoa_1.Tags)("Admin"),
1630
- __param(0, (0, tsoa_1.Body)()),
1631
- __param(1, (0, tsoa_1.Inject)())
1718
+ (0, runtime_1.Security)("bearerAuth"),
1719
+ (0, runtime_1.Post)("/admin/purge/community"),
1720
+ (0, runtime_1.Tags)("Admin"),
1721
+ __param(0, (0, runtime_1.Body)()),
1722
+ __param(1, (0, runtime_1.Inject)())
1632
1723
  ], LemmyHttp.prototype, "purgeCommunity", null);
1633
1724
  __decorate([
1634
- (0, tsoa_1.Security)("bearerAuth"),
1635
- (0, tsoa_1.Post)("/admin/purge/post"),
1636
- (0, tsoa_1.Tags)("Admin"),
1637
- __param(0, (0, tsoa_1.Body)()),
1638
- __param(1, (0, tsoa_1.Inject)())
1725
+ (0, runtime_1.Security)("bearerAuth"),
1726
+ (0, runtime_1.Post)("/admin/purge/post"),
1727
+ (0, runtime_1.Tags)("Admin"),
1728
+ __param(0, (0, runtime_1.Body)()),
1729
+ __param(1, (0, runtime_1.Inject)())
1639
1730
  ], LemmyHttp.prototype, "purgePost", null);
1640
1731
  __decorate([
1641
- (0, tsoa_1.Security)("bearerAuth"),
1642
- (0, tsoa_1.Post)("/admin/purge/comment"),
1643
- (0, tsoa_1.Tags)("Admin"),
1644
- __param(0, (0, tsoa_1.Body)()),
1645
- __param(1, (0, tsoa_1.Inject)())
1732
+ (0, runtime_1.Security)("bearerAuth"),
1733
+ (0, runtime_1.Post)("/admin/purge/comment"),
1734
+ (0, runtime_1.Tags)("Admin"),
1735
+ __param(0, (0, runtime_1.Body)()),
1736
+ __param(1, (0, runtime_1.Inject)())
1646
1737
  ], LemmyHttp.prototype, "purgeComment", null);
1647
1738
  __decorate([
1648
- (0, tsoa_1.Security)("bearerAuth"),
1649
- (0, tsoa_1.Post)("/custom_emoji"),
1650
- (0, tsoa_1.Tags)("CustomEmoji"),
1651
- __param(0, (0, tsoa_1.Body)()),
1652
- __param(1, (0, tsoa_1.Inject)())
1739
+ (0, runtime_1.Security)("bearerAuth"),
1740
+ (0, runtime_1.Post)("/custom_emoji"),
1741
+ (0, runtime_1.Tags)("CustomEmoji"),
1742
+ __param(0, (0, runtime_1.Body)()),
1743
+ __param(1, (0, runtime_1.Inject)())
1653
1744
  ], LemmyHttp.prototype, "createCustomEmoji", null);
1654
1745
  __decorate([
1655
- (0, tsoa_1.Security)("bearerAuth"),
1656
- (0, tsoa_1.Put)("/custom_emoji"),
1657
- (0, tsoa_1.Tags)("CustomEmoji"),
1658
- __param(0, (0, tsoa_1.Body)()),
1659
- __param(1, (0, tsoa_1.Inject)())
1746
+ (0, runtime_1.Security)("bearerAuth"),
1747
+ (0, runtime_1.Put)("/custom_emoji"),
1748
+ (0, runtime_1.Tags)("CustomEmoji"),
1749
+ __param(0, (0, runtime_1.Body)()),
1750
+ __param(1, (0, runtime_1.Inject)())
1660
1751
  ], LemmyHttp.prototype, "editCustomEmoji", null);
1661
1752
  __decorate([
1662
- (0, tsoa_1.Security)("bearerAuth"),
1663
- (0, tsoa_1.Post)("/custom_emoji/delete"),
1664
- (0, tsoa_1.Tags)("CustomEmoji"),
1665
- __param(0, (0, tsoa_1.Body)()),
1666
- __param(1, (0, tsoa_1.Inject)())
1753
+ (0, runtime_1.Security)("bearerAuth"),
1754
+ (0, runtime_1.Post)("/custom_emoji/delete"),
1755
+ (0, runtime_1.Tags)("CustomEmoji"),
1756
+ __param(0, (0, runtime_1.Body)()),
1757
+ __param(1, (0, runtime_1.Inject)())
1667
1758
  ], LemmyHttp.prototype, "deleteCustomEmoji", null);
1668
1759
  __decorate([
1669
- (0, tsoa_1.Security)("bearerAuth"),
1670
- (0, tsoa_1.Security)({}),
1671
- (0, tsoa_1.Get)("/custom_emoji/list"),
1672
- (0, tsoa_1.Tags)("CustomEmoji"),
1673
- __param(0, (0, tsoa_1.Queries)()),
1674
- __param(1, (0, tsoa_1.Inject)())
1760
+ (0, runtime_1.Security)("bearerAuth"),
1761
+ (0, runtime_1.Security)({}),
1762
+ (0, runtime_1.Get)("/custom_emoji/list"),
1763
+ (0, runtime_1.Tags)("CustomEmoji"),
1764
+ __param(0, (0, runtime_1.Queries)()),
1765
+ __param(1, (0, runtime_1.Inject)())
1675
1766
  ], LemmyHttp.prototype, "listCustomEmojis", null);
1676
1767
  __decorate([
1677
- (0, tsoa_1.Security)("bearerAuth"),
1678
- (0, tsoa_1.Post)("/admin/tagline"),
1679
- (0, tsoa_1.Tags)("Admin", "Tagline"),
1680
- __param(0, (0, tsoa_1.Body)()),
1681
- __param(1, (0, tsoa_1.Inject)())
1768
+ (0, runtime_1.Security)("bearerAuth"),
1769
+ (0, runtime_1.Post)("/admin/tagline"),
1770
+ (0, runtime_1.Tags)("Admin", "Tagline"),
1771
+ __param(0, (0, runtime_1.Body)()),
1772
+ __param(1, (0, runtime_1.Inject)())
1682
1773
  ], LemmyHttp.prototype, "createTagline", null);
1683
1774
  __decorate([
1684
- (0, tsoa_1.Security)("bearerAuth"),
1685
- (0, tsoa_1.Put)("/admin/tagline"),
1686
- (0, tsoa_1.Tags)("Admin", "Tagline"),
1687
- __param(0, (0, tsoa_1.Body)()),
1688
- __param(1, (0, tsoa_1.Inject)())
1775
+ (0, runtime_1.Security)("bearerAuth"),
1776
+ (0, runtime_1.Put)("/admin/tagline"),
1777
+ (0, runtime_1.Tags)("Admin", "Tagline"),
1778
+ __param(0, (0, runtime_1.Body)()),
1779
+ __param(1, (0, runtime_1.Inject)())
1689
1780
  ], LemmyHttp.prototype, "editTagline", null);
1690
1781
  __decorate([
1691
- (0, tsoa_1.Security)("bearerAuth"),
1692
- (0, tsoa_1.Post)("/admin/tagline/delete"),
1693
- (0, tsoa_1.Tags)("Admin", "Tagline"),
1694
- __param(0, (0, tsoa_1.Body)()),
1695
- __param(1, (0, tsoa_1.Inject)())
1782
+ (0, runtime_1.Security)("bearerAuth"),
1783
+ (0, runtime_1.Post)("/admin/tagline/delete"),
1784
+ (0, runtime_1.Tags)("Admin", "Tagline"),
1785
+ __param(0, (0, runtime_1.Body)()),
1786
+ __param(1, (0, runtime_1.Inject)())
1696
1787
  ], LemmyHttp.prototype, "deleteTagline", null);
1697
1788
  __decorate([
1698
- (0, tsoa_1.Security)("bearerAuth"),
1699
- (0, tsoa_1.Security)({}),
1700
- (0, tsoa_1.Get)("/admin/tagline/list"),
1701
- (0, tsoa_1.Tags)("Admin", "Tagline"),
1702
- __param(0, (0, tsoa_1.Queries)()),
1703
- __param(1, (0, tsoa_1.Inject)())
1789
+ (0, runtime_1.Security)("bearerAuth"),
1790
+ (0, runtime_1.Security)({}),
1791
+ (0, runtime_1.Get)("/admin/tagline/list"),
1792
+ (0, runtime_1.Tags)("Admin", "Tagline"),
1793
+ __param(0, (0, runtime_1.Queries)()),
1794
+ __param(1, (0, runtime_1.Inject)())
1704
1795
  ], LemmyHttp.prototype, "listTaglines", null);
1705
1796
  __decorate([
1706
- (0, tsoa_1.Security)("bearerAuth"),
1707
- (0, tsoa_1.Post)("/community/post_tag"),
1708
- (0, tsoa_1.Tags)("Community"),
1709
- __param(0, (0, tsoa_1.Body)()),
1710
- __param(1, (0, tsoa_1.Inject)())
1797
+ (0, runtime_1.Security)("bearerAuth"),
1798
+ (0, runtime_1.Post)("/community/tag"),
1799
+ (0, runtime_1.Tags)("Community"),
1800
+ __param(0, (0, runtime_1.Body)()),
1801
+ __param(1, (0, runtime_1.Inject)())
1711
1802
  ], LemmyHttp.prototype, "createCommunityTag", null);
1712
1803
  __decorate([
1713
- (0, tsoa_1.Security)("bearerAuth"),
1714
- (0, tsoa_1.Put)("/community/post_tag"),
1715
- (0, tsoa_1.Tags)("Community"),
1716
- __param(0, (0, tsoa_1.Body)()),
1717
- __param(1, (0, tsoa_1.Inject)())
1804
+ (0, runtime_1.Security)("bearerAuth"),
1805
+ (0, runtime_1.Put)("/community/tag"),
1806
+ (0, runtime_1.Tags)("Community"),
1807
+ __param(0, (0, runtime_1.Body)()),
1808
+ __param(1, (0, runtime_1.Inject)())
1718
1809
  ], LemmyHttp.prototype, "updateCommunityTag", null);
1719
1810
  __decorate([
1720
- (0, tsoa_1.Security)("bearerAuth"),
1721
- (0, tsoa_1.Security)({}),
1722
- (0, tsoa_1.Get)("/community/post_tag/list"),
1723
- (0, tsoa_1.Tags)("Community"),
1724
- __param(0, (0, tsoa_1.Queries)()),
1725
- __param(1, (0, tsoa_1.Inject)())
1726
- ], LemmyHttp.prototype, "listCommunityTags", null);
1727
- __decorate([
1728
- (0, tsoa_1.Security)("bearerAuth"),
1729
- (0, tsoa_1.Post)("/community/post_tag"),
1730
- (0, tsoa_1.Tags)("Community"),
1731
- __param(0, (0, tsoa_1.Body)()),
1732
- __param(1, (0, tsoa_1.Inject)())
1811
+ (0, runtime_1.Security)("bearerAuth"),
1812
+ (0, runtime_1.Delete)("/community/tag"),
1813
+ (0, runtime_1.Tags)("Community"),
1814
+ __param(0, (0, runtime_1.Body)()),
1815
+ __param(1, (0, runtime_1.Inject)())
1733
1816
  ], LemmyHttp.prototype, "deleteCommunityTag", null);
1734
1817
  __decorate([
1735
- (0, tsoa_1.Security)("bearerAuth"),
1736
- (0, tsoa_1.Put)("/post/tags"),
1737
- (0, tsoa_1.Tags)("Post"),
1738
- __param(0, (0, tsoa_1.Body)()),
1739
- __param(1, (0, tsoa_1.Inject)())
1740
- ], LemmyHttp.prototype, "updatePostTags", null);
1741
- __decorate([
1742
- (0, tsoa_1.Security)("bearerAuth"),
1743
- (0, tsoa_1.Post)("/oauth_provider"),
1744
- (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1745
- __param(0, (0, tsoa_1.Body)()),
1746
- __param(1, (0, tsoa_1.Inject)())
1818
+ (0, runtime_1.Security)("bearerAuth"),
1819
+ (0, runtime_1.Post)("/oauth_provider"),
1820
+ (0, runtime_1.Tags)("Miscellaneous", "OAuth"),
1821
+ __param(0, (0, runtime_1.Body)()),
1822
+ __param(1, (0, runtime_1.Inject)())
1747
1823
  ], LemmyHttp.prototype, "createOAuthProvider", null);
1748
1824
  __decorate([
1749
- (0, tsoa_1.Security)("bearerAuth"),
1750
- (0, tsoa_1.Put)("/oauth_provider"),
1751
- (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1752
- __param(0, (0, tsoa_1.Body)()),
1753
- __param(1, (0, tsoa_1.Inject)())
1825
+ (0, runtime_1.Security)("bearerAuth"),
1826
+ (0, runtime_1.Put)("/oauth_provider"),
1827
+ (0, runtime_1.Tags)("Miscellaneous", "OAuth"),
1828
+ __param(0, (0, runtime_1.Body)()),
1829
+ __param(1, (0, runtime_1.Inject)())
1754
1830
  ], LemmyHttp.prototype, "editOAuthProvider", null);
1755
1831
  __decorate([
1756
- (0, tsoa_1.Security)("bearerAuth"),
1757
- (0, tsoa_1.Post)("/oauth_provider/delete"),
1758
- (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1759
- __param(0, (0, tsoa_1.Body)()),
1760
- __param(1, (0, tsoa_1.Inject)())
1832
+ (0, runtime_1.Security)("bearerAuth"),
1833
+ (0, runtime_1.Post)("/oauth_provider/delete"),
1834
+ (0, runtime_1.Tags)("Miscellaneous", "OAuth"),
1835
+ __param(0, (0, runtime_1.Body)()),
1836
+ __param(1, (0, runtime_1.Inject)())
1761
1837
  ], LemmyHttp.prototype, "deleteOAuthProvider", null);
1762
1838
  __decorate([
1763
- (0, tsoa_1.Security)("bearerAuth"),
1764
- (0, tsoa_1.Post)("/oauth/authenticate"),
1765
- (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1766
- __param(0, (0, tsoa_1.Body)()),
1767
- __param(1, (0, tsoa_1.Inject)())
1839
+ (0, runtime_1.Security)("bearerAuth"),
1840
+ (0, runtime_1.Post)("/oauth/authenticate"),
1841
+ (0, runtime_1.Tags)("Miscellaneous", "OAuth"),
1842
+ __param(0, (0, runtime_1.Body)()),
1843
+ __param(1, (0, runtime_1.Inject)())
1768
1844
  ], LemmyHttp.prototype, "authenticateWithOAuth", null);
1769
1845
  __decorate([
1770
- (0, tsoa_1.Get)("/federated_instances"),
1771
- (0, tsoa_1.Tags)("Miscellaneous"),
1772
- __param(0, (0, tsoa_1.Inject)())
1846
+ (0, runtime_1.Get)("/federated_instances"),
1847
+ (0, runtime_1.Tags)("Miscellaneous"),
1848
+ __param(0, (0, runtime_1.Inject)())
1773
1849
  ], LemmyHttp.prototype, "getFederatedInstances", null);
1774
1850
  __decorate([
1775
- (0, tsoa_1.Security)("bearerAuth"),
1776
- (0, tsoa_1.Get)("/report/list"),
1777
- (0, tsoa_1.Tags)("Admin"),
1778
- __param(0, (0, tsoa_1.Queries)()),
1779
- __param(1, (0, tsoa_1.Inject)())
1851
+ (0, runtime_1.Security)("bearerAuth"),
1852
+ (0, runtime_1.Get)("/report/list"),
1853
+ (0, runtime_1.Tags)("Admin"),
1854
+ __param(0, (0, runtime_1.Queries)()),
1855
+ __param(1, (0, runtime_1.Inject)())
1780
1856
  ], LemmyHttp.prototype, "listReports", null);
1781
1857
  __decorate([
1782
- (0, tsoa_1.Security)("bearerAuth"),
1783
- (0, tsoa_1.Post)("/account/block/instance"),
1784
- (0, tsoa_1.Tags)("Account"),
1785
- __param(0, (0, tsoa_1.Body)()),
1786
- __param(1, (0, tsoa_1.Inject)())
1858
+ (0, runtime_1.Security)("bearerAuth"),
1859
+ (0, runtime_1.Post)("/account/block/instance"),
1860
+ (0, runtime_1.Tags)("Account"),
1861
+ __param(0, (0, runtime_1.Body)()),
1862
+ __param(1, (0, runtime_1.Inject)())
1787
1863
  ], LemmyHttp.prototype, "userBlockInstance", null);
1788
1864
  __decorate([
1789
- (0, tsoa_1.Security)("bearerAuth"),
1790
- (0, tsoa_1.Post)("/admin/instance/block"),
1791
- (0, tsoa_1.Tags)("Admin"),
1792
- __param(0, (0, tsoa_1.Body)()),
1793
- __param(1, (0, tsoa_1.Inject)())
1865
+ (0, runtime_1.Security)("bearerAuth"),
1866
+ (0, runtime_1.Post)("/admin/instance/block"),
1867
+ (0, runtime_1.Tags)("Admin"),
1868
+ __param(0, (0, runtime_1.Body)()),
1869
+ __param(1, (0, runtime_1.Inject)())
1794
1870
  ], LemmyHttp.prototype, "adminBlockInstance", null);
1795
1871
  __decorate([
1796
- (0, tsoa_1.Security)("bearerAuth"),
1797
- (0, tsoa_1.Post)("/admin/instance/allow"),
1798
- (0, tsoa_1.Tags)("Admin"),
1799
- __param(0, (0, tsoa_1.Body)()),
1800
- __param(1, (0, tsoa_1.Inject)())
1872
+ (0, runtime_1.Security)("bearerAuth"),
1873
+ (0, runtime_1.Post)("/admin/instance/allow"),
1874
+ (0, runtime_1.Tags)("Admin"),
1875
+ __param(0, (0, runtime_1.Body)()),
1876
+ __param(1, (0, runtime_1.Inject)())
1801
1877
  ], LemmyHttp.prototype, "adminAllowInstance", null);
1802
1878
  __decorate([
1803
- (0, tsoa_1.Security)("bearerAuth"),
1804
- (0, tsoa_1.Post)("/account/avatar"),
1805
- (0, tsoa_1.Tags)("Account", "Media"),
1806
- __param(0, (0, tsoa_1.UploadedFile)()),
1807
- __param(1, (0, tsoa_1.Inject)())
1879
+ (0, runtime_1.Security)("bearerAuth"),
1880
+ (0, runtime_1.Post)("/account/avatar"),
1881
+ (0, runtime_1.Tags)("Account", "Media"),
1882
+ __param(0, (0, runtime_1.UploadedFile)()),
1883
+ __param(1, (0, runtime_1.Inject)())
1808
1884
  ], LemmyHttp.prototype, "uploadUserAvatar", null);
1809
1885
  __decorate([
1810
- (0, tsoa_1.Security)("bearerAuth"),
1811
- (0, tsoa_1.Delete)("/account/avatar"),
1812
- (0, tsoa_1.Tags)("Account", "Media"),
1813
- __param(0, (0, tsoa_1.Inject)())
1886
+ (0, runtime_1.Security)("bearerAuth"),
1887
+ (0, runtime_1.Delete)("/account/avatar"),
1888
+ (0, runtime_1.Tags)("Account", "Media"),
1889
+ __param(0, (0, runtime_1.Inject)())
1814
1890
  ], LemmyHttp.prototype, "deleteUserAvatar", null);
1815
1891
  __decorate([
1816
- (0, tsoa_1.Security)("bearerAuth"),
1817
- (0, tsoa_1.Post)("/account/banner"),
1818
- (0, tsoa_1.Tags)("Account", "Media"),
1819
- __param(0, (0, tsoa_1.UploadedFile)()),
1820
- __param(1, (0, tsoa_1.Inject)())
1892
+ (0, runtime_1.Security)("bearerAuth"),
1893
+ (0, runtime_1.Post)("/account/banner"),
1894
+ (0, runtime_1.Tags)("Account", "Media"),
1895
+ __param(0, (0, runtime_1.UploadedFile)()),
1896
+ __param(1, (0, runtime_1.Inject)())
1821
1897
  ], LemmyHttp.prototype, "uploadUserBanner", null);
1822
1898
  __decorate([
1823
- (0, tsoa_1.Security)("bearerAuth"),
1824
- (0, tsoa_1.Delete)("/account/banner"),
1825
- (0, tsoa_1.Tags)("Account", "Media"),
1826
- __param(0, (0, tsoa_1.Inject)())
1899
+ (0, runtime_1.Security)("bearerAuth"),
1900
+ (0, runtime_1.Delete)("/account/banner"),
1901
+ (0, runtime_1.Tags)("Account", "Media"),
1902
+ __param(0, (0, runtime_1.Inject)())
1827
1903
  ], LemmyHttp.prototype, "deleteUserBanner", null);
1828
1904
  __decorate([
1829
- (0, tsoa_1.Security)("bearerAuth"),
1830
- (0, tsoa_1.Post)("/community/icon"),
1831
- (0, tsoa_1.Tags)("Community", "Media"),
1832
- __param(0, (0, tsoa_1.UploadedFile)()),
1833
- __param(1, (0, tsoa_1.Inject)())
1905
+ (0, runtime_1.Security)("bearerAuth"),
1906
+ (0, runtime_1.Post)("/community/icon"),
1907
+ (0, runtime_1.Tags)("Community", "Media"),
1908
+ __param(0, (0, runtime_1.Queries)()),
1909
+ __param(1, (0, runtime_1.UploadedFile)()),
1910
+ __param(2, (0, runtime_1.Inject)())
1834
1911
  ], LemmyHttp.prototype, "uploadCommunityIcon", null);
1835
1912
  __decorate([
1836
- (0, tsoa_1.Security)("bearerAuth"),
1837
- (0, tsoa_1.Delete)("/community/icon"),
1838
- (0, tsoa_1.Tags)("Community", "Media"),
1839
- __param(0, (0, tsoa_1.Inject)())
1913
+ (0, runtime_1.Security)("bearerAuth"),
1914
+ (0, runtime_1.Delete)("/community/icon"),
1915
+ (0, runtime_1.Tags)("Community", "Media"),
1916
+ __param(0, (0, runtime_1.Body)()),
1917
+ __param(1, (0, runtime_1.Inject)())
1840
1918
  ], LemmyHttp.prototype, "deleteCommunityIcon", null);
1841
1919
  __decorate([
1842
- (0, tsoa_1.Security)("bearerAuth"),
1843
- (0, tsoa_1.Post)("/community/banner"),
1844
- (0, tsoa_1.Tags)("Community", "Media"),
1845
- __param(0, (0, tsoa_1.UploadedFile)()),
1846
- __param(1, (0, tsoa_1.Inject)())
1920
+ (0, runtime_1.Security)("bearerAuth"),
1921
+ (0, runtime_1.Post)("/community/banner"),
1922
+ (0, runtime_1.Tags)("Community", "Media"),
1923
+ __param(0, (0, runtime_1.Queries)()),
1924
+ __param(1, (0, runtime_1.UploadedFile)()),
1925
+ __param(2, (0, runtime_1.Inject)())
1847
1926
  ], LemmyHttp.prototype, "uploadCommunityBanner", null);
1848
1927
  __decorate([
1849
- (0, tsoa_1.Security)("bearerAuth"),
1850
- (0, tsoa_1.Delete)("/community/banner"),
1851
- (0, tsoa_1.Tags)("Community", "Media"),
1852
- __param(0, (0, tsoa_1.Inject)())
1928
+ (0, runtime_1.Security)("bearerAuth"),
1929
+ (0, runtime_1.Delete)("/community/banner"),
1930
+ (0, runtime_1.Tags)("Community", "Media"),
1931
+ __param(0, (0, runtime_1.Body)()),
1932
+ __param(1, (0, runtime_1.Inject)())
1853
1933
  ], LemmyHttp.prototype, "deleteCommunityBanner", null);
1854
1934
  __decorate([
1855
- (0, tsoa_1.Security)("bearerAuth"),
1856
- (0, tsoa_1.Post)("/site/icon"),
1857
- (0, tsoa_1.Tags)("Site", "Media"),
1858
- __param(0, (0, tsoa_1.UploadedFile)()),
1859
- __param(1, (0, tsoa_1.Inject)())
1935
+ (0, runtime_1.Security)("bearerAuth"),
1936
+ (0, runtime_1.Post)("/site/icon"),
1937
+ (0, runtime_1.Tags)("Site", "Media"),
1938
+ __param(0, (0, runtime_1.UploadedFile)()),
1939
+ __param(1, (0, runtime_1.Inject)())
1860
1940
  ], LemmyHttp.prototype, "uploadSiteIcon", null);
1861
1941
  __decorate([
1862
- (0, tsoa_1.Security)("bearerAuth"),
1863
- (0, tsoa_1.Delete)("/site/icon"),
1864
- (0, tsoa_1.Tags)("Site", "Media"),
1865
- __param(0, (0, tsoa_1.Inject)())
1942
+ (0, runtime_1.Security)("bearerAuth"),
1943
+ (0, runtime_1.Delete)("/site/icon"),
1944
+ (0, runtime_1.Tags)("Site", "Media"),
1945
+ __param(0, (0, runtime_1.Inject)())
1866
1946
  ], LemmyHttp.prototype, "deleteSiteIcon", null);
1867
1947
  __decorate([
1868
- (0, tsoa_1.Security)("bearerAuth"),
1869
- (0, tsoa_1.Post)("/site/banner"),
1870
- (0, tsoa_1.Tags)("Site", "Media"),
1871
- __param(0, (0, tsoa_1.UploadedFile)()),
1872
- __param(1, (0, tsoa_1.Inject)())
1948
+ (0, runtime_1.Security)("bearerAuth"),
1949
+ (0, runtime_1.Post)("/site/banner"),
1950
+ (0, runtime_1.Tags)("Site", "Media"),
1951
+ __param(0, (0, runtime_1.UploadedFile)()),
1952
+ __param(1, (0, runtime_1.Inject)())
1873
1953
  ], LemmyHttp.prototype, "uploadSiteBanner", null);
1874
1954
  __decorate([
1875
- (0, tsoa_1.Security)("bearerAuth"),
1876
- (0, tsoa_1.Delete)("/site/banner"),
1877
- (0, tsoa_1.Tags)("Site", "Media"),
1878
- __param(0, (0, tsoa_1.Inject)())
1955
+ (0, runtime_1.Security)("bearerAuth"),
1956
+ (0, runtime_1.Delete)("/site/banner"),
1957
+ (0, runtime_1.Tags)("Site", "Media"),
1958
+ __param(0, (0, runtime_1.Inject)())
1879
1959
  ], LemmyHttp.prototype, "deleteSiteBanner", null);
1880
1960
  __decorate([
1881
- (0, tsoa_1.Security)("bearerAuth"),
1882
- (0, tsoa_1.Post)("/image"),
1883
- (0, tsoa_1.Tags)("Media"),
1884
- __param(0, (0, tsoa_1.UploadedFile)()),
1885
- __param(1, (0, tsoa_1.Inject)())
1961
+ (0, runtime_1.Security)("bearerAuth"),
1962
+ (0, runtime_1.Post)("/image"),
1963
+ (0, runtime_1.Tags)("Media"),
1964
+ __param(0, (0, runtime_1.UploadedFile)()),
1965
+ __param(1, (0, runtime_1.Inject)())
1886
1966
  ], LemmyHttp.prototype, "uploadImage", null);
1887
1967
  __decorate([
1888
- (0, tsoa_1.Security)("bearerAuth"),
1889
- (0, tsoa_1.Delete)("/image"),
1890
- (0, tsoa_1.Tags)("Media"),
1891
- __param(0, (0, tsoa_1.Queries)()),
1892
- __param(1, (0, tsoa_1.Inject)())
1893
- ], LemmyHttp.prototype, "deleteImage", null);
1894
- __decorate([
1895
- (0, tsoa_1.Get)("image/health"),
1896
- (0, tsoa_1.Tags)("Media"),
1897
- __param(0, (0, tsoa_1.Inject)())
1968
+ (0, runtime_1.Get)("/image/health"),
1969
+ (0, runtime_1.Tags)("Media"),
1970
+ __param(0, (0, runtime_1.Inject)())
1898
1971
  ], LemmyHttp.prototype, "imageHealth", null);
1972
+ __decorate([
1973
+ (0, runtime_1.Security)("bearerAuth"),
1974
+ (0, runtime_1.Post)("/user/donation_dialog_shown"),
1975
+ __param(0, (0, runtime_1.Inject)())
1976
+ ], LemmyHttp.prototype, "donationDialogShown", null);
1977
+ __decorate([
1978
+ (0, runtime_1.Security)("bearerAuth"),
1979
+ (0, runtime_1.Post)("/multi_community"),
1980
+ __param(0, (0, runtime_1.Body)()),
1981
+ __param(1, (0, runtime_1.Inject)())
1982
+ ], LemmyHttp.prototype, "createMultiCommunity", null);
1983
+ __decorate([
1984
+ (0, runtime_1.Security)("bearerAuth"),
1985
+ (0, runtime_1.Put)("/multi_community"),
1986
+ __param(0, (0, runtime_1.Body)()),
1987
+ __param(1, (0, runtime_1.Inject)())
1988
+ ], LemmyHttp.prototype, "updateMultiCommunity", null);
1989
+ __decorate([
1990
+ (0, runtime_1.Get)("/multi_community"),
1991
+ __param(0, (0, runtime_1.Queries)()),
1992
+ __param(1, (0, runtime_1.Inject)())
1993
+ ], LemmyHttp.prototype, "getMultiCommunity", null);
1994
+ __decorate([
1995
+ (0, runtime_1.Security)("bearerAuth"),
1996
+ (0, runtime_1.Post)("/multi_community/entry"),
1997
+ __param(0, (0, runtime_1.Body)()),
1998
+ __param(1, (0, runtime_1.Inject)())
1999
+ ], LemmyHttp.prototype, "createMultiCommunityEntry", null);
2000
+ __decorate([
2001
+ (0, runtime_1.Security)("bearerAuth"),
2002
+ (0, runtime_1.Delete)("/multi_community/entry"),
2003
+ __param(0, (0, runtime_1.Body)()),
2004
+ __param(1, (0, runtime_1.Inject)())
2005
+ ], LemmyHttp.prototype, "deleteMultiCommunityEntry", null);
2006
+ __decorate([
2007
+ (0, runtime_1.Get)("/multi_community/list"),
2008
+ __param(0, (0, runtime_1.Queries)()),
2009
+ __param(1, (0, runtime_1.Inject)())
2010
+ ], LemmyHttp.prototype, "listMultiCommunities", null);
2011
+ __decorate([
2012
+ (0, runtime_1.Post)("/multi_community/follow"),
2013
+ __param(0, (0, runtime_1.Body)()),
2014
+ __param(1, (0, runtime_1.Inject)())
2015
+ ], LemmyHttp.prototype, "followMultiCommunity", null);
1899
2016
  exports.LemmyHttp = LemmyHttp = __decorate([
1900
- (0, tsoa_1.Route)("api/v4")
2017
+ (0, runtime_1.Route)("api/v4")
1901
2018
  ], LemmyHttp);
1902
2019
  function encodeGetParams(p) {
1903
2020
  return Object.entries(p)
@@ -1916,3 +2033,18 @@ function createFormData(image) {
1916
2033
  }
1917
2034
  return formData;
1918
2035
  }
2036
+ /**
2037
+ * A Lemmy error type.
2038
+ *
2039
+ * The name is the i18n translatable error code.
2040
+ * The msg is either an empty string, or extra non-translatable info.
2041
+ */
2042
+ class LemmyError extends Error {
2043
+ constructor(name, msg) {
2044
+ super(msg ?? "");
2045
+ this.name = name;
2046
+ // Set the prototype explicitly.
2047
+ Object.setPrototypeOf(this, LemmyError.prototype);
2048
+ }
2049
+ }
2050
+ exports.LemmyError = LemmyError;