lemmy-js-client 0.20.0-private-community.7 → 0.20.0-remove-aggregate-tables.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 (439) hide show
  1. package/README.md +1 -1
  2. package/dist/http.d.ts +326 -489
  3. package/dist/http.js +1437 -609
  4. package/dist/index.d.ts +74 -26
  5. package/dist/other_types.d.ts +81 -17
  6. package/dist/other_types.js +1 -1
  7. package/dist/types/AddAdmin.d.ts +5 -2
  8. package/dist/types/AddAdminResponse.d.ts +5 -2
  9. package/dist/types/AddModToCommunity.d.ts +5 -2
  10. package/dist/types/AddModToCommunityResponse.d.ts +5 -2
  11. package/dist/types/AdminAllowInstance.d.ts +11 -0
  12. package/dist/types/AdminAllowInstanceId.d.ts +1 -0
  13. package/dist/types/AdminAllowInstanceParams.d.ts +5 -0
  14. package/dist/types/AdminAllowInstanceView.d.ts +11 -0
  15. package/dist/types/AdminBlockInstance.d.ts +12 -0
  16. package/dist/types/AdminBlockInstanceId.d.ts +1 -0
  17. package/dist/types/AdminBlockInstanceParams.d.ts +6 -0
  18. package/dist/types/AdminBlockInstanceParams.js +3 -0
  19. package/dist/types/AdminBlockInstanceView.d.ts +11 -0
  20. package/dist/types/AdminPurgeComment.d.ts +8 -4
  21. package/dist/types/AdminPurgeCommentId.d.ts +1 -0
  22. package/dist/types/AdminPurgeCommentId.js +3 -0
  23. package/dist/types/AdminPurgeCommentView.d.ts +5 -2
  24. package/dist/types/AdminPurgeCommunity.d.ts +8 -4
  25. package/dist/types/AdminPurgeCommunityId.d.ts +1 -0
  26. package/dist/types/AdminPurgeCommunityId.js +3 -0
  27. package/dist/types/AdminPurgeCommunityView.d.ts +5 -2
  28. package/dist/types/AdminPurgePerson.d.ts +8 -4
  29. package/dist/types/AdminPurgePersonId.d.ts +1 -0
  30. package/dist/types/AdminPurgePersonId.js +3 -0
  31. package/dist/types/AdminPurgePersonView.d.ts +5 -2
  32. package/dist/types/AdminPurgePost.d.ts +8 -4
  33. package/dist/types/AdminPurgePostId.d.ts +1 -0
  34. package/dist/types/AdminPurgePostId.js +3 -0
  35. package/dist/types/AdminPurgePostView.d.ts +5 -2
  36. package/dist/types/ApproveCommunityPendingFollower.d.ts +2 -2
  37. package/dist/types/ApproveRegistrationApplication.d.ts +5 -2
  38. package/dist/types/AuthenticateWithOauth.d.ts +14 -3
  39. package/dist/types/AuthenticateWithOauth.js +0 -1
  40. package/dist/types/BanFromCommunity.d.ts +14 -2
  41. package/dist/types/BanFromCommunityResponse.d.ts +5 -2
  42. package/dist/types/BanPerson.d.ts +14 -2
  43. package/dist/types/BanPersonResponse.d.ts +5 -2
  44. package/dist/types/BannedPersonsResponse.d.ts +5 -2
  45. package/dist/types/BlockCommunity.d.ts +5 -2
  46. package/dist/types/BlockCommunityResponse.d.ts +5 -2
  47. package/dist/types/BlockPerson.d.ts +5 -2
  48. package/dist/types/BlockPersonResponse.d.ts +5 -2
  49. package/dist/types/CaptchaResponse.d.ts +14 -2
  50. package/dist/types/ChangePassword.d.ts +9 -5
  51. package/dist/types/ChangePassword.js +0 -1
  52. package/dist/types/Comment.d.ts +36 -3
  53. package/dist/types/CommentId.d.ts +3 -0
  54. package/dist/types/CommentReply.d.ts +5 -2
  55. package/dist/types/CommentReplyId.d.ts +3 -0
  56. package/dist/types/CommentReplyView.d.ts +5 -4
  57. package/dist/types/CommentReport.d.ts +5 -2
  58. package/dist/types/CommentReportId.d.ts +3 -0
  59. package/dist/types/CommentReportResponse.d.ts +5 -2
  60. package/dist/types/CommentReportView.d.ts +5 -4
  61. package/dist/types/CommentResponse.d.ts +5 -2
  62. package/dist/types/CommentSlimView.d.ts +18 -0
  63. package/dist/types/CommentSortType.d.ts +3 -0
  64. package/dist/types/CommentView.d.ts +5 -4
  65. package/dist/types/Community.d.ts +69 -6
  66. package/dist/types/CommunityFollowerView.d.ts +5 -2
  67. package/dist/types/CommunityId.d.ts +3 -0
  68. package/dist/types/CommunityModeratorView.d.ts +5 -2
  69. package/dist/types/CommunityReport.d.ts +22 -0
  70. package/dist/types/CommunityReportId.d.ts +4 -0
  71. package/dist/types/CommunityReportId.js +3 -0
  72. package/dist/types/CommunityReportView.d.ts +14 -0
  73. package/dist/types/CommunityResponse.d.ts +5 -2
  74. package/dist/types/CommunitySortType.d.ts +4 -0
  75. package/dist/types/CommunitySortType.js +3 -0
  76. package/dist/types/CommunityView.d.ts +5 -4
  77. package/dist/types/CommunityVisibility.d.ts +3 -0
  78. package/dist/types/CreateComment.d.ts +5 -2
  79. package/dist/types/CreateCommentLike.d.ts +8 -2
  80. package/dist/types/CreateCommentReport.d.ts +5 -2
  81. package/dist/types/CreateCommunity.d.ts +30 -2
  82. package/dist/types/CreateCustomEmoji.d.ts +5 -2
  83. package/dist/types/CreateOAuthProvider.d.ts +6 -2
  84. package/dist/types/CreatePost.d.ts +22 -2
  85. package/dist/types/CreatePostLike.d.ts +8 -2
  86. package/dist/types/CreatePostReport.d.ts +5 -2
  87. package/dist/types/CreatePrivateMessage.d.ts +5 -2
  88. package/dist/types/CreatePrivateMessageReport.d.ts +5 -2
  89. package/dist/types/CreateSite.d.ts +6 -8
  90. package/dist/types/CreateTagline.d.ts +5 -2
  91. package/dist/types/CustomEmoji.d.ts +7 -3
  92. package/dist/types/CustomEmojiId.d.ts +3 -0
  93. package/dist/types/CustomEmojiKeyword.d.ts +5 -2
  94. package/dist/types/CustomEmojiResponse.d.ts +5 -2
  95. package/dist/types/CustomEmojiView.d.ts +5 -2
  96. package/dist/types/DbUrl.d.ts +1 -0
  97. package/dist/types/DbUrl.js +3 -0
  98. package/dist/types/DeleteAccount.d.ts +7 -3
  99. package/dist/types/DeleteAccount.js +0 -1
  100. package/dist/types/DeleteComment.d.ts +5 -2
  101. package/dist/types/DeleteCommunity.d.ts +5 -2
  102. package/dist/types/DeleteCustomEmoji.d.ts +5 -2
  103. package/dist/types/DeleteImageParams.d.ts +3 -0
  104. package/dist/types/DeleteImageParams.js +3 -0
  105. package/dist/types/DeleteOAuthProvider.d.ts +5 -2
  106. package/dist/types/DeletePost.d.ts +5 -2
  107. package/dist/types/DeletePrivateMessage.d.ts +5 -2
  108. package/dist/types/DeleteTagline.d.ts +5 -2
  109. package/dist/types/DistinguishComment.d.ts +5 -2
  110. package/dist/types/EditComment.d.ts +5 -2
  111. package/dist/types/EditCommunity.d.ts +21 -4
  112. package/dist/types/EditCustomEmoji.d.ts +5 -2
  113. package/dist/types/EditOAuthProvider.d.ts +6 -2
  114. package/dist/types/EditPost.d.ts +19 -2
  115. package/dist/types/EditPrivateMessage.d.ts +5 -2
  116. package/dist/types/EditSite.d.ts +113 -8
  117. package/dist/types/FeaturePost.d.ts +5 -2
  118. package/dist/types/FederatedInstances.d.ts +5 -2
  119. package/dist/types/FederationBlockList.d.ts +7 -0
  120. package/dist/types/FederationError.d.ts +10 -0
  121. package/dist/types/FederationError.js +3 -0
  122. package/dist/types/FederationMode.d.ts +3 -0
  123. package/dist/types/FollowCommunity.d.ts +5 -2
  124. package/dist/types/GenerateTotpSecretResponse.d.ts +4 -3
  125. package/dist/types/GenerateTotpSecretResponse.js +0 -1
  126. package/dist/types/GetCaptchaResponse.d.ts +8 -2
  127. package/dist/types/GetComment.d.ts +5 -2
  128. package/dist/types/GetComments.d.ts +5 -3
  129. package/dist/types/GetCommentsResponse.d.ts +5 -2
  130. package/dist/types/GetCommentsSlimResponse.d.ts +7 -0
  131. package/dist/types/GetCommunity.d.ts +8 -2
  132. package/dist/types/GetCommunityPendingFollowsCount.d.ts +2 -2
  133. package/dist/types/GetCommunityPendingFollowsCountResponse.d.ts +2 -2
  134. package/dist/types/GetCommunityResponse.d.ts +5 -2
  135. package/dist/types/GetFederatedInstancesResponse.d.ts +8 -2
  136. package/dist/types/GetModlog.d.ts +8 -4
  137. package/dist/types/GetModlogResponse.d.ts +7 -32
  138. package/dist/types/GetPersonDetails.d.ts +10 -9
  139. package/dist/types/GetPersonDetailsResponse.d.ts +5 -6
  140. package/dist/types/GetPost.d.ts +5 -2
  141. package/dist/types/GetPostResponse.d.ts +8 -2
  142. package/dist/types/GetPosts.d.ts +28 -2
  143. package/dist/types/GetPostsResponse.d.ts +8 -2
  144. package/dist/types/GetRandomCommunity.d.ts +6 -2
  145. package/dist/types/GetRegistrationApplication.d.ts +5 -2
  146. package/dist/types/GetReportCount.d.ts +5 -2
  147. package/dist/types/GetReportCountResponse.d.ts +6 -7
  148. package/dist/types/GetReportCountResponse.js +1 -0
  149. package/dist/types/GetSiteMetadata.d.ts +5 -2
  150. package/dist/types/GetSiteMetadataResponse.d.ts +5 -2
  151. package/dist/types/GetSiteResponse.d.ts +12 -6
  152. package/dist/types/GetUnreadCountResponse.d.ts +6 -5
  153. package/dist/types/GetUnreadRegistrationApplicationCountResponse.d.ts +5 -2
  154. package/dist/types/HideCommunity.d.ts +5 -2
  155. package/dist/types/HidePost.d.ts +6 -3
  156. package/dist/types/ImageDetails.d.ts +4 -3
  157. package/dist/types/ImageDetails.js +0 -1
  158. package/dist/types/ImageGetParams.d.ts +4 -0
  159. package/dist/types/ImageGetParams.js +3 -0
  160. package/dist/types/ImageProxyParams.d.ts +5 -0
  161. package/dist/types/ImageProxyParams.js +3 -0
  162. package/dist/types/InboxCombinedPaginationCursor.d.ts +4 -0
  163. package/dist/types/InboxCombinedPaginationCursor.js +3 -0
  164. package/dist/types/InboxCombinedView.d.ts +13 -0
  165. package/dist/types/InboxDataType.d.ts +4 -0
  166. package/dist/types/InboxDataType.js +3 -0
  167. package/dist/types/Instance.d.ts +5 -2
  168. package/dist/types/InstanceId.d.ts +3 -0
  169. package/dist/types/InstanceWithFederationState.d.ts +7 -3
  170. package/dist/types/Language.d.ts +5 -2
  171. package/dist/types/LanguageId.d.ts +3 -0
  172. package/dist/types/LemmyErrorType.d.ts +25 -71
  173. package/dist/types/LemmyErrorType.js +0 -1
  174. package/dist/types/LinkMetadata.d.ts +9 -5
  175. package/dist/types/LinkMetadata.js +0 -1
  176. package/dist/types/ListCommentLikes.d.ts +5 -2
  177. package/dist/types/ListCommentLikesResponse.d.ts +5 -2
  178. package/dist/types/ListCommunities.d.ts +7 -4
  179. package/dist/types/ListCommunitiesResponse.d.ts +5 -2
  180. package/dist/types/ListCommunityPendingFollows.d.ts +9 -6
  181. package/dist/types/ListCommunityPendingFollowsResponse.d.ts +2 -2
  182. package/dist/types/ListCustomEmojis.d.ts +5 -2
  183. package/dist/types/ListCustomEmojisResponse.d.ts +5 -2
  184. package/dist/types/ListInbox.d.ts +11 -0
  185. package/dist/types/ListInboxResponse.d.ts +7 -0
  186. package/dist/types/ListLoginsResponse.d.ts +2 -2
  187. package/dist/types/ListMedia.d.ts +5 -2
  188. package/dist/types/ListMediaResponse.d.ts +2 -2
  189. package/dist/types/ListPersonContent.d.ts +18 -0
  190. package/dist/types/ListPersonContentResponse.d.ts +7 -0
  191. package/dist/types/ListPersonSaved.d.ts +10 -0
  192. package/dist/types/ListPersonSavedResponse.d.ts +7 -0
  193. package/dist/types/ListPostLikes.d.ts +5 -2
  194. package/dist/types/ListPostLikesResponse.d.ts +5 -2
  195. package/dist/types/ListRegistrationApplications.d.ts +8 -2
  196. package/dist/types/ListRegistrationApplicationsResponse.d.ts +5 -2
  197. package/dist/types/ListReports.d.ts +27 -0
  198. package/dist/types/ListReportsResponse.d.ts +7 -0
  199. package/dist/types/ListTaglines.d.ts +5 -2
  200. package/dist/types/ListTaglinesResponse.d.ts +5 -2
  201. package/dist/types/ListingType.d.ts +3 -0
  202. package/dist/types/LocalImage.d.ts +2 -3
  203. package/dist/types/LocalImageView.d.ts +5 -2
  204. package/dist/types/LocalSite.d.ts +83 -2
  205. package/dist/types/LocalSiteId.d.ts +3 -0
  206. package/dist/types/LocalSiteRateLimit.d.ts +5 -2
  207. package/dist/types/LocalSiteUrlBlocklist.d.ts +2 -2
  208. package/dist/types/LocalUser.d.ts +67 -3
  209. package/dist/types/LocalUserId.d.ts +3 -0
  210. package/dist/types/LocalUserView.d.ts +5 -4
  211. package/dist/types/LocalUserVoteDisplayMode.d.ts +5 -2
  212. package/dist/types/LockPost.d.ts +5 -2
  213. package/dist/types/Login.d.ts +11 -4
  214. package/dist/types/Login.js +0 -1
  215. package/dist/types/LoginResponse.d.ts +17 -3
  216. package/dist/types/LoginResponse.js +0 -1
  217. package/dist/types/LoginToken.d.ts +12 -2
  218. package/dist/types/MarkCommentReplyAsRead.d.ts +5 -2
  219. package/dist/types/MarkManyPostsAsRead.d.ts +7 -0
  220. package/dist/types/MarkPersonCommentMentionAsRead.d.ts +8 -0
  221. package/dist/types/MarkPersonPostMentionAsRead.d.ts +8 -0
  222. package/dist/types/MarkPostAsRead.d.ts +6 -3
  223. package/dist/types/MarkPrivateMessageAsRead.d.ts +5 -2
  224. package/dist/types/ModAdd.d.ts +8 -4
  225. package/dist/types/ModAddCommunity.d.ts +8 -4
  226. package/dist/types/ModAddCommunityId.d.ts +1 -0
  227. package/dist/types/ModAddCommunityId.js +3 -0
  228. package/dist/types/ModAddCommunityView.d.ts +6 -3
  229. package/dist/types/ModAddId.d.ts +1 -0
  230. package/dist/types/ModAddId.js +3 -0
  231. package/dist/types/ModAddView.d.ts +6 -3
  232. package/dist/types/ModBan.d.ts +8 -4
  233. package/dist/types/ModBanFromCommunity.d.ts +8 -4
  234. package/dist/types/ModBanFromCommunityId.d.ts +1 -0
  235. package/dist/types/ModBanFromCommunityId.js +3 -0
  236. package/dist/types/ModBanFromCommunityView.d.ts +6 -3
  237. package/dist/types/ModBanId.d.ts +1 -0
  238. package/dist/types/ModBanId.js +3 -0
  239. package/dist/types/ModBanView.d.ts +6 -3
  240. package/dist/types/ModFeaturePost.d.ts +8 -4
  241. package/dist/types/ModFeaturePostId.d.ts +1 -0
  242. package/dist/types/ModFeaturePostId.js +3 -0
  243. package/dist/types/ModFeaturePostView.d.ts +6 -2
  244. package/dist/types/ModHideCommunity.d.ts +8 -4
  245. package/dist/types/ModHideCommunityId.d.ts +1 -0
  246. package/dist/types/ModHideCommunityId.js +3 -0
  247. package/dist/types/ModHideCommunityView.d.ts +5 -2
  248. package/dist/types/ModLockPost.d.ts +8 -4
  249. package/dist/types/ModLockPostId.d.ts +1 -0
  250. package/dist/types/ModLockPostId.js +3 -0
  251. package/dist/types/ModLockPostView.d.ts +6 -2
  252. package/dist/types/ModRemoveComment.d.ts +8 -4
  253. package/dist/types/ModRemoveCommentId.d.ts +1 -0
  254. package/dist/types/ModRemoveCommentId.js +3 -0
  255. package/dist/types/ModRemoveCommentView.d.ts +6 -3
  256. package/dist/types/ModRemoveCommunity.d.ts +8 -4
  257. package/dist/types/ModRemoveCommunityId.d.ts +1 -0
  258. package/dist/types/ModRemoveCommunityId.js +3 -0
  259. package/dist/types/ModRemoveCommunityView.d.ts +5 -2
  260. package/dist/types/ModRemovePost.d.ts +8 -4
  261. package/dist/types/ModRemovePostId.d.ts +1 -0
  262. package/dist/types/ModRemovePostId.js +3 -0
  263. package/dist/types/ModRemovePostView.d.ts +6 -2
  264. package/dist/types/ModTransferCommunity.d.ts +8 -4
  265. package/dist/types/ModTransferCommunityId.d.ts +1 -0
  266. package/dist/types/ModTransferCommunityId.js +3 -0
  267. package/dist/types/ModTransferCommunityView.d.ts +6 -3
  268. package/dist/types/ModlogActionType.d.ts +4 -1
  269. package/dist/types/ModlogCombinedPaginationCursor.d.ts +4 -0
  270. package/dist/types/ModlogCombinedPaginationCursor.js +3 -0
  271. package/dist/types/ModlogCombinedView.d.ts +52 -0
  272. package/dist/types/MyUserInfo.d.ts +5 -2
  273. package/dist/types/OAuthAccount.d.ts +5 -2
  274. package/dist/types/OAuthProvider.d.ts +48 -2
  275. package/dist/types/OAuthProviderId.d.ts +3 -0
  276. package/dist/types/OpenGraphData.d.ts +8 -4
  277. package/dist/types/OpenGraphData.js +0 -1
  278. package/dist/types/PaginationCursor.d.ts +6 -0
  279. package/dist/types/PasswordChangeAfterReset.d.ts +9 -5
  280. package/dist/types/PasswordChangeAfterReset.js +0 -1
  281. package/dist/types/PasswordReset.d.ts +7 -3
  282. package/dist/types/PasswordReset.js +0 -1
  283. package/dist/types/PendingFollow.d.ts +2 -2
  284. package/dist/types/Person.d.ts +44 -5
  285. package/dist/types/{PersonMention.d.ts → PersonCommentMention.d.ts} +7 -4
  286. package/dist/types/PersonCommentMention.js +2 -0
  287. package/dist/types/PersonCommentMentionId.d.ts +4 -0
  288. package/dist/types/PersonCommentMentionId.js +3 -0
  289. package/dist/types/{PersonMentionView.d.ts → PersonCommentMentionView.d.ts} +7 -6
  290. package/dist/types/PersonCommentMentionView.js +2 -0
  291. package/dist/types/PersonContentCombinedPaginationCursor.d.ts +4 -0
  292. package/dist/types/PersonContentCombinedPaginationCursor.js +3 -0
  293. package/dist/types/PersonContentCombinedView.d.ts +7 -0
  294. package/dist/types/PersonContentCombinedView.js +2 -0
  295. package/dist/types/PersonContentType.d.ts +4 -0
  296. package/dist/types/PersonContentType.js +3 -0
  297. package/dist/types/PersonId.d.ts +3 -0
  298. package/dist/types/PersonPostMention.d.ts +13 -0
  299. package/dist/types/PersonPostMention.js +2 -0
  300. package/dist/types/PersonPostMentionId.d.ts +4 -0
  301. package/dist/types/PersonPostMentionId.js +3 -0
  302. package/dist/types/PersonPostMentionView.d.ts +30 -0
  303. package/dist/types/PersonPostMentionView.js +2 -0
  304. package/dist/types/PersonSavedCombinedPaginationCursor.d.ts +4 -0
  305. package/dist/types/PersonSavedCombinedPaginationCursor.js +3 -0
  306. package/dist/types/PersonView.d.ts +5 -4
  307. package/dist/types/Post.d.ts +68 -6
  308. package/dist/types/PostFeatureType.d.ts +3 -0
  309. package/dist/types/PostId.d.ts +3 -0
  310. package/dist/types/PostListingMode.d.ts +3 -0
  311. package/dist/types/PostReport.d.ts +16 -3
  312. package/dist/types/PostReportId.d.ts +3 -0
  313. package/dist/types/PostReportResponse.d.ts +5 -2
  314. package/dist/types/PostReportView.d.ts +5 -4
  315. package/dist/types/PostResponse.d.ts +2 -2
  316. package/dist/types/PostSortType.d.ts +3 -0
  317. package/dist/types/PostTags.d.ts +7 -0
  318. package/dist/types/PostTags.js +2 -0
  319. package/dist/types/PostView.d.ts +7 -4
  320. package/dist/types/PrivateMessage.d.ts +7 -3
  321. package/dist/types/PrivateMessageId.d.ts +3 -0
  322. package/dist/types/PrivateMessageReport.d.ts +8 -2
  323. package/dist/types/PrivateMessageReportId.d.ts +3 -0
  324. package/dist/types/PrivateMessageReportResponse.d.ts +5 -2
  325. package/dist/types/PrivateMessageReportView.d.ts +5 -2
  326. package/dist/types/PrivateMessageResponse.d.ts +5 -2
  327. package/dist/types/PrivateMessageView.d.ts +5 -2
  328. package/dist/types/PurgeComment.d.ts +5 -2
  329. package/dist/types/PurgeCommunity.d.ts +5 -2
  330. package/dist/types/PurgePerson.d.ts +5 -2
  331. package/dist/types/PurgePost.d.ts +5 -2
  332. package/dist/types/ReadableFederationState.d.ts +15 -3
  333. package/dist/types/Register.d.ts +24 -5
  334. package/dist/types/Register.js +0 -1
  335. package/dist/types/RegistrationApplication.d.ts +5 -2
  336. package/dist/types/RegistrationApplicationId.d.ts +3 -0
  337. package/dist/types/RegistrationApplicationResponse.d.ts +5 -2
  338. package/dist/types/RegistrationApplicationView.d.ts +5 -2
  339. package/dist/types/RegistrationMode.d.ts +3 -0
  340. package/dist/types/RemoveComment.d.ts +5 -2
  341. package/dist/types/RemoveCommunity.d.ts +5 -2
  342. package/dist/types/RemovePost.d.ts +5 -2
  343. package/dist/types/ReportCombinedPaginationCursor.d.ts +4 -0
  344. package/dist/types/ReportCombinedPaginationCursor.js +3 -0
  345. package/dist/types/ReportCombinedView.d.ts +13 -0
  346. package/dist/types/ReportCombinedView.js +2 -0
  347. package/dist/types/ReportType.d.ts +4 -0
  348. package/dist/types/ReportType.js +3 -0
  349. package/dist/types/ResolveCommentReport.d.ts +5 -2
  350. package/dist/types/ResolveObject.d.ts +8 -2
  351. package/dist/types/ResolveObjectResponse.d.ts +5 -2
  352. package/dist/types/ResolvePostReport.d.ts +5 -2
  353. package/dist/types/ResolvePrivateMessageReport.d.ts +5 -2
  354. package/dist/types/SaveComment.d.ts +5 -2
  355. package/dist/types/SavePost.d.ts +5 -2
  356. package/dist/types/SaveUserSettings.d.ts +92 -5
  357. package/dist/types/Search.d.ts +11 -8
  358. package/dist/types/SearchCombinedPaginationCursor.d.ts +4 -0
  359. package/dist/types/SearchCombinedPaginationCursor.js +3 -0
  360. package/dist/types/SearchCombinedView.d.ts +13 -0
  361. package/dist/types/SearchCombinedView.js +2 -0
  362. package/dist/types/SearchResponse.d.ts +7 -12
  363. package/dist/types/SearchSortType.d.ts +4 -0
  364. package/dist/types/SearchSortType.js +3 -0
  365. package/dist/types/SearchType.d.ts +3 -0
  366. package/dist/types/SensitiveString.d.ts +1 -0
  367. package/dist/types/SensitiveString.js +3 -0
  368. package/dist/types/Site.d.ts +35 -6
  369. package/dist/types/SiteAggregates.d.ts +17 -2
  370. package/dist/types/SiteId.d.ts +3 -0
  371. package/dist/types/SiteResponse.d.ts +8 -2
  372. package/dist/types/SiteView.d.ts +5 -2
  373. package/dist/types/SubscribedType.d.ts +3 -0
  374. package/dist/types/SuccessResponse.d.ts +5 -2
  375. package/dist/types/Tag.d.ts +27 -0
  376. package/dist/types/Tag.js +2 -0
  377. package/dist/types/TagId.d.ts +4 -0
  378. package/dist/types/TagId.js +3 -0
  379. package/dist/types/Tagline.d.ts +5 -2
  380. package/dist/types/TaglineId.d.ts +3 -0
  381. package/dist/types/TaglineResponse.d.ts +2 -2
  382. package/dist/types/TransferCommunity.d.ts +5 -2
  383. package/dist/types/UpdateTagline.d.ts +5 -2
  384. package/dist/types/UpdateTotp.d.ts +2 -2
  385. package/dist/types/UpdateTotpResponse.d.ts +2 -2
  386. package/dist/types/UploadImageResponse.d.ts +4 -0
  387. package/dist/types/UploadImageResponse.js +3 -0
  388. package/dist/types/{BlockInstance.d.ts → UserBlockInstanceParams.d.ts} +5 -2
  389. package/dist/types/UserBlockInstanceParams.js +2 -0
  390. package/dist/types/VerifyEmail.d.ts +5 -2
  391. package/dist/types/VoteView.d.ts +5 -2
  392. package/package.json +10 -5
  393. package/dist/types/BlockInstanceResponse.d.ts +0 -3
  394. package/dist/types/CommentAggregates.d.ts +0 -9
  395. package/dist/types/CommentReplyResponse.d.ts +0 -4
  396. package/dist/types/CommunityAggregates.d.ts +0 -13
  397. package/dist/types/GetPersonMentions.d.ts +0 -7
  398. package/dist/types/GetPersonMentionsResponse.d.ts +0 -4
  399. package/dist/types/GetPrivateMessages.d.ts +0 -7
  400. package/dist/types/GetReplies.d.ts +0 -7
  401. package/dist/types/GetRepliesResponse.d.ts +0 -4
  402. package/dist/types/ListCommentReports.d.ts +0 -9
  403. package/dist/types/ListCommentReportsResponse.d.ts +0 -4
  404. package/dist/types/ListPostReports.d.ts +0 -9
  405. package/dist/types/ListPostReportsResponse.d.ts +0 -4
  406. package/dist/types/ListPrivateMessageReports.d.ts +0 -5
  407. package/dist/types/ListPrivateMessageReportsResponse.d.ts +0 -4
  408. package/dist/types/MarkPersonMentionAsRead.d.ts +0 -5
  409. package/dist/types/ModlogListParams.d.ts +0 -14
  410. package/dist/types/PersonAggregates.d.ts +0 -6
  411. package/dist/types/PersonMentionId.d.ts +0 -1
  412. package/dist/types/PersonMentionResponse.d.ts +0 -4
  413. package/dist/types/PostAggregates.d.ts +0 -10
  414. package/dist/types/PrivateMessagesResponse.d.ts +0 -4
  415. /package/dist/types/{BlockInstance.js → AdminAllowInstance.js} +0 -0
  416. /package/dist/types/{BlockInstanceResponse.js → AdminAllowInstanceId.js} +0 -0
  417. /package/dist/types/{ListPrivateMessageReports.js → AdminAllowInstanceParams.js} +0 -0
  418. /package/dist/types/{CommentAggregates.js → AdminAllowInstanceView.js} +0 -0
  419. /package/dist/types/{CommentReplyResponse.js → AdminBlockInstance.js} +0 -0
  420. /package/dist/types/{PersonMentionId.js → AdminBlockInstanceId.js} +0 -0
  421. /package/dist/types/{CommunityAggregates.js → AdminBlockInstanceView.js} +0 -0
  422. /package/dist/types/{GetPersonMentions.js → CommentSlimView.js} +0 -0
  423. /package/dist/types/{GetPersonMentionsResponse.js → CommunityReport.js} +0 -0
  424. /package/dist/types/{GetPrivateMessages.js → CommunityReportView.js} +0 -0
  425. /package/dist/types/{GetReplies.js → FederationBlockList.js} +0 -0
  426. /package/dist/types/{GetRepliesResponse.js → GetCommentsSlimResponse.js} +0 -0
  427. /package/dist/types/{ListCommentReports.js → InboxCombinedView.js} +0 -0
  428. /package/dist/types/{ListCommentReportsResponse.js → ListInbox.js} +0 -0
  429. /package/dist/types/{ListPostReports.js → ListInboxResponse.js} +0 -0
  430. /package/dist/types/{ListPostReportsResponse.js → ListPersonContent.js} +0 -0
  431. /package/dist/types/{ListPrivateMessageReportsResponse.js → ListPersonContentResponse.js} +0 -0
  432. /package/dist/types/{MarkPersonMentionAsRead.js → ListPersonSaved.js} +0 -0
  433. /package/dist/types/{ModlogListParams.js → ListPersonSavedResponse.js} +0 -0
  434. /package/dist/types/{PersonAggregates.js → ListReports.js} +0 -0
  435. /package/dist/types/{PersonMention.js → ListReportsResponse.js} +0 -0
  436. /package/dist/types/{PersonMentionResponse.js → MarkManyPostsAsRead.js} +0 -0
  437. /package/dist/types/{PersonMentionView.js → MarkPersonCommentMentionAsRead.js} +0 -0
  438. /package/dist/types/{PostAggregates.js → MarkPersonPostMentionAsRead.js} +0 -0
  439. /package/dist/types/{PrivateMessagesResponse.js → ModlogCombinedView.js} +0 -0
package/dist/http.js CHANGED
@@ -1,4 +1,13 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
9
+ return function (target, key) { decorator(target, key, paramIndex); }
10
+ };
2
11
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
12
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
13
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -19,33 +28,34 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
19
28
  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
29
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
21
30
  };
22
- var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_pictrsUrl, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_wrapper;
31
+ var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_upload, _LemmyHttp_wrapper;
23
32
  Object.defineProperty(exports, "__esModule", { value: true });
24
33
  exports.LemmyHttp = void 0;
25
34
  const other_types_1 = require("./other_types");
35
+ const tsoa_1 = require("tsoa");
26
36
  var HttpType;
27
37
  (function (HttpType) {
28
38
  HttpType["Get"] = "GET";
29
39
  HttpType["Post"] = "POST";
30
40
  HttpType["Put"] = "PUT";
41
+ HttpType["Delete"] = "DELETE";
31
42
  })(HttpType || (HttpType = {}));
32
43
  /**
33
44
  * Helps build lemmy HTTP requests.
34
45
  */
35
- class LemmyHttp {
46
+ let LemmyHttp = class LemmyHttp extends tsoa_1.Controller {
36
47
  /**
37
48
  * Generates a new instance of LemmyHttp.
38
49
  * @param baseUrl the base url, without the vX version: https://lemmy.ml -> goes to https://lemmy.ml/api/vX
39
50
  * @param headers optional headers. Should contain `x-real-ip` and `x-forwarded-for` .
40
51
  */
41
52
  constructor(baseUrl, options) {
53
+ super();
42
54
  _LemmyHttp_instances.add(this);
43
55
  _LemmyHttp_apiUrl.set(this, void 0);
44
56
  _LemmyHttp_headers.set(this, {});
45
- _LemmyHttp_pictrsUrl.set(this, void 0);
46
57
  _LemmyHttp_fetchFunction.set(this, fetch.bind(globalThis));
47
58
  __classPrivateFieldSet(this, _LemmyHttp_apiUrl, `${baseUrl.replace(/\/+$/, "")}/api/${other_types_1.VERSION}`, "f");
48
- __classPrivateFieldSet(this, _LemmyHttp_pictrsUrl, `${baseUrl}/pictrs/image`, "f");
49
59
  if (options === null || options === void 0 ? void 0 : options.headers) {
50
60
  __classPrivateFieldSet(this, _LemmyHttp_headers, options.headers, "f");
51
61
  }
@@ -54,939 +64,835 @@ class LemmyHttp {
54
64
  }
55
65
  }
56
66
  /**
57
- * Gets the site, and your user data.
58
- *
59
- * `HTTP.GET /site`
67
+ * @summary Gets the site, and your user data.
60
68
  */
61
- getSite() {
62
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {});
69
+ getSite(options) {
70
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/site", {}, options);
63
71
  }
64
72
  /**
65
- * Create your site.
66
- *
67
- * `HTTP.POST /site`
73
+ * @summary Create your site.
68
74
  */
69
- createSite(form) {
70
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form);
75
+ createSite(form, options) {
76
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site", form, options);
71
77
  }
72
78
  /**
73
- * Edit your site.
74
- *
75
- * `HTTP.PUT /site`
79
+ * @summary Edit your site.
76
80
  */
77
- editSite(form) {
78
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form);
81
+ editSite(form, options) {
82
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/site", form, options);
79
83
  }
80
84
  /**
81
- * Leave the Site admins.
82
- *
83
- * `HTTP.POST /user/leave_admin`
85
+ * @summary Leave the Site admins.
84
86
  */
85
- leaveAdmin() {
86
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/leave_admin", {});
87
+ leaveAdmin(options) {
88
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/leave", {}, options);
87
89
  }
88
90
  /**
89
- * Generate a TOTP / two-factor secret.
91
+ * @summary Generate a TOTP / two-factor secret.
90
92
  *
91
- * Afterwards you need to call `/user/totp/update` with a valid token to enable it.
92
- *
93
- * `HTTP.POST /user/totp/generate`
93
+ * Generate a TOTP / two-factor secret.
94
+ * Afterwards you need to call `/account/auth/totp/update` with a valid token to enable it.
95
+ */
96
+ generateTotpSecret(options) {
97
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/generate", {}, options);
98
+ }
99
+ /**
100
+ * @summary Get data of current user.
94
101
  */
95
- generateTotpSecret() {
96
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/totp/generate", {});
102
+ getMyUser(options) {
103
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account", {}, options);
97
104
  }
98
105
  /**
106
+ * @summary Export a backup of your user settings.
107
+ *
99
108
  * Export a backup of your user settings, including your saved content,
100
109
  * followed communities, and blocks.
101
- *
102
- * `HTTP.GET /user/export_settings`
103
110
  */
104
- exportSettings() {
105
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/export_settings", {});
111
+ exportSettings(options) {
112
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/settings/export", {}, options);
106
113
  }
107
114
  /**
108
- * Import a backup of your user settings.
109
- *
110
- * `HTTP.POST /user/import_settings`
115
+ * @summary Import a backup of your user settings.
111
116
  */
112
- importSettings(form) {
113
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/import_settings", form);
117
+ importSettings(form, options) {
118
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/settings/import", form, options);
114
119
  }
115
120
  /**
116
- * List login tokens for your user
117
- *
118
- * `HTTP.GET /user/list_logins`
121
+ * @summary List login tokens for your user
119
122
  */
120
- listLogins() {
121
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/list_logins", {});
123
+ listLogins(options) {
124
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_logins", {}, options);
122
125
  }
123
126
  /**
124
- * Returns an error message if your auth token is invalid
125
- *
126
- * `HTTP.GET /user/validate_auth`
127
+ * @summary Returns an error message if your auth token is invalid
127
128
  */
128
- validateAuth() {
129
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/validate_auth", {});
129
+ validateAuth(options) {
130
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/validate_auth", {}, options);
130
131
  }
131
132
  /**
132
- * List all the media for your user
133
- *
134
- * `HTTP.GET /account/list_media`
133
+ * @summary List all the media for your user
135
134
  */
136
- listMedia(form = {}) {
137
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_media", form);
135
+ listMedia(form = {}, options) {
136
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/list_media", form, options);
138
137
  }
139
138
  /**
140
- * List all the media known to your instance.
141
- *
142
- * `HTTP.GET /admin/list_all_media`
139
+ * @summary List all the media known to your instance.
143
140
  */
144
- listAllMedia(form = {}) {
145
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/list_all_media", form);
141
+ listAllMedia(form = {}, options) {
142
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/list_all_media", form, options);
146
143
  }
147
144
  /**
148
- * Enable / Disable TOTP / two-factor authentication.
145
+ * @summary Enable / Disable TOTP / two-factor authentication.
149
146
  *
150
- * To enable, you need to first call `/user/totp/generate` and then pass a valid token to this.
147
+ * To enable, you need to first call `/account/auth/totp/generate` and then pass a valid token to this.
151
148
  *
152
149
  * Disabling is only possible if 2FA was previously enabled. Again it is necessary to pass a valid token.
153
- *
154
- * `HTTP.POST /user/totp/update`
155
150
  */
156
- updateTotp(form) {
157
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/totp/update", form);
151
+ updateTotp(form, options) {
152
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/totp/update", form, options);
158
153
  }
159
154
  /**
160
- * Get the modlog.
161
- *
162
- * `HTTP.GET /modlog`
155
+ * @summary Get the modlog.
163
156
  */
164
- getModlog(form = {}) {
165
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form);
157
+ getModlog(form = {}, options) {
158
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/modlog", form, options);
166
159
  }
167
160
  /**
168
- * Search lemmy.
169
- *
170
- * `HTTP.GET /search`
161
+ * @summary Search lemmy.
171
162
  */
172
- search(form) {
173
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form);
163
+ search(form, options) {
164
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/search", form, options);
174
165
  }
175
166
  /**
176
- * Fetch a non-local / federated object.
177
- *
178
- * `HTTP.GET /resolve_object`
167
+ * @summary Fetch a non-local / federated object.
179
168
  */
180
- resolveObject(form) {
181
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form);
169
+ resolveObject(form, options) {
170
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/resolve_object", form, options);
182
171
  }
183
172
  /**
184
- * Create a new community.
185
- *
186
- * `HTTP.POST /community`
173
+ * @summary Create a new community.
187
174
  */
188
- createCommunity(form) {
189
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form);
175
+ createCommunity(form, options) {
176
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community", form, options);
190
177
  }
191
178
  /**
192
- * Get / fetch a community.
193
- *
194
- * `HTTP.GET /community`
179
+ * @summary Get / fetch a community.
195
180
  */
196
- getCommunity(form = {}) {
197
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form);
181
+ getCommunity(form = {}, options) {
182
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community", form, options);
198
183
  }
199
184
  /**
200
- * Edit a community.
201
- *
202
- * `HTTP.PUT /community`
185
+ * @summary Edit a community.
203
186
  */
204
- editCommunity(form) {
205
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form);
187
+ editCommunity(form, options) {
188
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community", form, options);
206
189
  }
207
190
  /**
208
- * List communities, with various filters.
209
- *
210
- * `HTTP.GET /community/list`
191
+ * @summary List communities, with various filters.
211
192
  */
212
- listCommunities(form = {}) {
213
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form);
193
+ listCommunities(form = {}, options) {
194
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/list", form, options);
214
195
  }
215
196
  /**
216
- * Follow / subscribe to a community.
217
- *
218
- * `HTTP.POST /community/follow`
197
+ * @summary Follow / subscribe to a community.
219
198
  */
220
- followCommunity(form) {
221
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form);
199
+ followCommunity(form, options) {
200
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/follow", form, options);
222
201
  }
223
- getCommunityPendingFollowsCount(community_id) {
224
- const form = { community_id };
225
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form);
202
+ /**
203
+ * @summary Get a community's pending follows count.
204
+ */
205
+ getCommunityPendingFollowsCount(form, options) {
206
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/count", form, options);
226
207
  }
227
- listCommunityPendingFollows(form) {
228
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form);
208
+ /**
209
+ * @summary Get a community's pending followers.
210
+ */
211
+ listCommunityPendingFollows(form, options) {
212
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/pending_follows/list", form, options);
229
213
  }
230
- approveCommunityPendingFollow(form) {
231
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form);
214
+ /**
215
+ * @summary Approve a community pending follow request.
216
+ */
217
+ approveCommunityPendingFollow(form, options) {
218
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/pending_follows/approve", form, options);
232
219
  }
233
220
  /**
234
- * Block a community.
235
- *
236
- * `HTTP.POST /community/block`
221
+ * @summary Block a community.
237
222
  */
238
- blockCommunity(form) {
239
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/block", form);
223
+ blockCommunity(form, options) {
224
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/community", form, options);
240
225
  }
241
226
  /**
242
- * Delete a community.
243
- *
244
- * `HTTP.POST /community/delete`
227
+ * @summary Delete a community.
245
228
  */
246
- deleteCommunity(form) {
247
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form);
229
+ deleteCommunity(form, options) {
230
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/delete", form, options);
248
231
  }
249
232
  /**
250
- * Hide a community from public / "All" view. Admins only.
251
- *
252
- * `HTTP.PUT /community/hide`
233
+ * @summary Hide a community from public / "All" view. Admins only.
253
234
  */
254
- hideCommunity(form) {
255
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form);
235
+ hideCommunity(form, options) {
236
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/community/hide", form, options);
256
237
  }
257
238
  /**
258
- * A moderator remove for a community.
259
- *
260
- * `HTTP.POST /community/remove`
239
+ * @summary A moderator remove for a community.
261
240
  */
262
- removeCommunity(form) {
263
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form);
241
+ removeCommunity(form, options) {
242
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/remove", form, options);
264
243
  }
265
244
  /**
266
- * Transfer your community to an existing moderator.
267
- *
268
- * `HTTP.POST /community/transfer`
245
+ * @summary Transfer your community to an existing moderator.
269
246
  */
270
- transferCommunity(form) {
271
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form);
247
+ transferCommunity(form, options) {
248
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/transfer", form, options);
272
249
  }
273
250
  /**
274
- * Ban a user from a community.
275
- *
276
- * `HTTP.POST /community/ban_user`
251
+ * @summary Ban a user from a community.
277
252
  */
278
- banFromCommunity(form) {
279
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form);
253
+ banFromCommunity(form, options) {
254
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/ban_user", form, options);
280
255
  }
281
256
  /**
282
- * Add a moderator to your community.
283
- *
284
- * `HTTP.POST /community/mod`
257
+ * @summary Add a moderator to your community.
285
258
  */
286
- addModToCommunity(form) {
287
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form);
259
+ addModToCommunity(form, options) {
260
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/community/mod", form, options);
288
261
  }
289
262
  /**
290
- * Get a random community.
291
- *
292
- * `HTTP.GET /community/random`
263
+ * @summary Get a random community.
293
264
  */
294
- getRandomCommunity(form) {
295
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form);
265
+ getRandomCommunity(form, options) {
266
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/community/random", form, options);
296
267
  }
297
268
  /**
298
- * Create a post.
299
- *
300
- * `HTTP.POST /post`
269
+ * @summary Create a post.
301
270
  */
302
- createPost(form) {
303
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form);
271
+ createPost(form, options) {
272
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post", form, options);
304
273
  }
305
274
  /**
306
- * Get / fetch a post.
307
- *
308
- * `HTTP.GET /post`
275
+ * @summary Get / fetch a post.
309
276
  */
310
- getPost(form = {}) {
311
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form);
277
+ getPost(form = {}, options) {
278
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post", form, options);
312
279
  }
313
280
  /**
314
- * Edit a post.
315
- *
316
- * `HTTP.PUT /post`
281
+ * @summary Edit a post.
317
282
  */
318
- editPost(form) {
319
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form);
283
+ editPost(form, options) {
284
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post", form, options);
320
285
  }
321
286
  /**
322
- * Delete a post.
323
- *
324
- * `HTTP.POST /post/delete`
287
+ * @summary Delete a post.
325
288
  */
326
- deletePost(form) {
327
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form);
289
+ deletePost(form, options) {
290
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/delete", form, options);
328
291
  }
329
292
  /**
330
- * A moderator remove for a post.
331
- *
332
- * `HTTP.POST /post/remove`
293
+ * @summary A moderator remove for a post.
333
294
  */
334
- removePost(form) {
335
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form);
295
+ removePost(form, options) {
296
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/remove", form, options);
336
297
  }
337
298
  /**
338
- * Mark a post as read.
339
- *
340
- * `HTTP.POST /post/mark_as_read`
299
+ * @summary Mark a post as read.
341
300
  */
342
- markPostAsRead(form) {
343
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form);
301
+ markPostAsRead(form, options) {
302
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read", form, options);
344
303
  }
345
304
  /**
346
- * Hide a post from list views.
347
- *
348
- * `HTTP.POST /post/hide`
305
+ * @summary Mark multiple posts as read.
349
306
  */
350
- hidePost(form) {
351
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form);
307
+ markManyPostAsRead(form, options) {
308
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/mark_as_read/many", form, options);
352
309
  }
353
310
  /**
354
- * A moderator can lock a post ( IE disable new comments ).
355
- *
356
- * `HTTP.POST /post/lock`
311
+ * @summary Hide a post from list views.
357
312
  */
358
- lockPost(form) {
359
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form);
313
+ hidePost(form, options) {
314
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/hide", form, options);
360
315
  }
361
316
  /**
362
- * A moderator can feature a community post ( IE stick it to the top of a community ).
363
- *
364
- * `HTTP.POST /post/feature`
317
+ * @summary A moderator can lock a post ( IE disable new comments ).
365
318
  */
366
- featurePost(form) {
367
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form);
319
+ lockPost(form, options) {
320
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/lock", form, options);
368
321
  }
369
322
  /**
370
- * Get / fetch posts, with various filters.
371
- *
372
- * `HTTP.GET /post/list`
323
+ * @summary A moderator can feature a community post ( IE stick it to the top of a community ).
373
324
  */
374
- getPosts(form = {}) {
375
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form);
325
+ featurePost(form, options) {
326
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/feature", form, options);
376
327
  }
377
328
  /**
378
- * Like / vote on a post.
379
- *
380
- * `HTTP.POST /post/like`
329
+ * @summary Get / fetch posts, with various filters.
381
330
  */
382
- likePost(form) {
383
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form);
331
+ getPosts(form = {}, options) {
332
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/list", form, options);
384
333
  }
385
334
  /**
386
- * List a post's likes. Admin-only.
387
- *
388
- * `HTTP.GET /post/like/list`
335
+ * @summary Like / vote on a post.
389
336
  */
390
- listPostLikes(form) {
391
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form);
337
+ likePost(form, options) {
338
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/like", form, options);
392
339
  }
393
340
  /**
394
- * Save a post.
395
- *
396
- * `HTTP.PUT /post/save`
341
+ * @summary List a post's likes. Admin-only.
397
342
  */
398
- savePost(form) {
399
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form);
343
+ listPostLikes(form, options) {
344
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/like/list", form, options);
400
345
  }
401
346
  /**
402
- * Report a post.
403
- *
404
- * `HTTP.POST /post/report`
347
+ * @summary Save a post.
405
348
  */
406
- createPostReport(form) {
407
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form);
349
+ savePost(form, options) {
350
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/save", form, options);
408
351
  }
409
352
  /**
410
- * Resolve a post report. Only a mod can do this.
411
- *
412
- * `HTTP.PUT /post/report/resolve`
353
+ * @summary Report a post.
413
354
  */
414
- resolvePostReport(form) {
415
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form);
355
+ createPostReport(form, options) {
356
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/post/report", form, options);
416
357
  }
417
358
  /**
418
- * List post reports.
419
- *
420
- * `HTTP.GET /post/report/list`
359
+ * @summary Resolve a post report. Only a mod can do this.
421
360
  */
422
- listPostReports(form) {
423
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/report/list", form);
361
+ resolvePostReport(form, options) {
362
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/post/report/resolve", form, options);
424
363
  }
425
364
  /**
426
- * Fetch metadata for any given site.
427
- *
428
- * `HTTP.GET /post/site_metadata`
365
+ * @summary Fetch metadata for any given site.
429
366
  */
430
- getSiteMetadata(form) {
431
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form);
367
+ getSiteMetadata(form, options) {
368
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/post/site_metadata", form, options);
432
369
  }
433
370
  /**
434
- * Create a comment.
435
- *
436
- * `HTTP.POST /comment`
371
+ * @summary Create a comment.
437
372
  */
438
- createComment(form) {
439
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form);
373
+ createComment(form, options) {
374
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment", form, options);
440
375
  }
441
376
  /**
442
- * Edit a comment.
443
- *
444
- * `HTTP.PUT /comment`
377
+ * @summary Edit a comment.
445
378
  */
446
- editComment(form) {
447
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form);
379
+ editComment(form, options) {
380
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment", form, options);
448
381
  }
449
382
  /**
450
- * Delete a comment.
451
- *
452
- * `HTTP.POST /comment/delete`
383
+ * @summary Delete a comment.
453
384
  */
454
- deleteComment(form) {
455
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form);
385
+ deleteComment(form, options) {
386
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/delete", form, options);
456
387
  }
457
388
  /**
458
- * A moderator remove for a comment.
459
- *
460
- * `HTTP.POST /comment/remove`
389
+ * @summary A moderator remove for a comment.
461
390
  */
462
- removeComment(form) {
463
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form);
391
+ removeComment(form, options) {
392
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/remove", form, options);
464
393
  }
465
394
  /**
466
- * Mark a comment as read.
467
- *
468
- * `HTTP.POST /comment/mark_as_read`
395
+ * @summary Mark a comment as read.
469
396
  */
470
- markCommentReplyAsRead(form) {
471
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form);
397
+ markCommentReplyAsRead(form, options) {
398
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/mark_as_read", form, options);
472
399
  }
473
400
  /**
474
- * Like / vote on a comment.
475
- *
476
- * `HTTP.POST /comment/like`
401
+ * @summary Like / vote on a comment.
477
402
  */
478
- likeComment(form) {
479
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form);
403
+ likeComment(form, options) {
404
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/like", form, options);
480
405
  }
481
406
  /**
482
- * List a comment's likes. Admin-only.
483
- *
484
- * `HTTP.GET /comment/like/list`
407
+ * @summary List a comment's likes. Admin-only.
485
408
  */
486
- listCommentLikes(form) {
487
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form);
409
+ listCommentLikes(form, options) {
410
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/like/list", form, options);
488
411
  }
489
412
  /**
490
- * Save a comment.
491
- *
492
- * `HTTP.PUT /comment/save`
413
+ * @summary Save a comment.
493
414
  */
494
- saveComment(form) {
495
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form);
415
+ saveComment(form, options) {
416
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/save", form, options);
496
417
  }
497
418
  /**
498
- * Distinguishes a comment (speak as moderator)
499
- *
500
- * `HTTP.POST /comment/distinguish`
419
+ * @summary Distinguishes a comment (speak as moderator)
501
420
  */
502
- distinguishComment(form) {
503
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form);
421
+ distinguishComment(form, options) {
422
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/distinguish", form, options);
504
423
  }
505
424
  /**
506
- * Get / fetch comments.
507
- *
508
- * `HTTP.GET /comment/list`
425
+ * @summary Get / fetch comments.
509
426
  */
510
- getComments(form = {}) {
511
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form);
427
+ getComments(form = {}, options) {
428
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list", form, options);
512
429
  }
513
430
  /**
514
- * Get / fetch comment.
515
- *
516
- * `HTTP.GET /comment`
431
+ * @summary Get / fetch comments, but without the post or community.
517
432
  */
518
- getComment(form) {
519
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form);
433
+ getCommentsSlim(form = {}, options) {
434
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/list/slim", form, options);
520
435
  }
521
436
  /**
522
- * Report a comment.
523
- *
524
- * `HTTP.POST /comment/report`
437
+ * @summary Get / fetch comment.
525
438
  */
526
- createCommentReport(form) {
527
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form);
439
+ getComment(form, options) {
440
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment", form, options);
528
441
  }
529
442
  /**
530
- * Resolve a comment report. Only a mod can do this.
531
- *
532
- * `HTTP.PUT /comment/report/resolve`
443
+ * @summary Report a comment.
533
444
  */
534
- resolveCommentReport(form) {
535
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form);
445
+ createCommentReport(form, options) {
446
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/comment/report", form, options);
536
447
  }
537
448
  /**
538
- * List comment reports.
539
- *
540
- * `HTTP.GET /comment/report/list`
449
+ * @summary Resolve a comment report. Only a mod can do this.
541
450
  */
542
- listCommentReports(form) {
543
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/comment/report/list", form);
451
+ resolveCommentReport(form, options) {
452
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/comment/report/resolve", form, options);
544
453
  }
545
454
  /**
546
- * Get / fetch private messages.
547
- *
548
- * `HTTP.GET /private_message/list`
455
+ * @summary Create a private message.
549
456
  */
550
- getPrivateMessages(form) {
551
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/private_message/list", form);
457
+ createPrivateMessage(form, options) {
458
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form, options);
552
459
  }
553
460
  /**
554
- * Create a private message.
555
- *
556
- * `HTTP.POST /private_message`
461
+ * @summary Edit a private message.
557
462
  */
558
- createPrivateMessage(form) {
559
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message", form);
463
+ editPrivateMessage(form, options) {
464
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form, options);
560
465
  }
561
466
  /**
562
- * Edit a private message.
563
- *
564
- * `HTTP.PUT /private_message`
467
+ * @summary Delete a private message.
565
468
  */
566
- editPrivateMessage(form) {
567
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message", form);
469
+ deletePrivateMessage(form, options) {
470
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form, options);
568
471
  }
569
472
  /**
570
- * Delete a private message.
571
- *
572
- * `HTTP.POST /private_message/delete`
473
+ * @summary Mark a private message as read.
573
474
  */
574
- deletePrivateMessage(form) {
575
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/delete", form);
475
+ markPrivateMessageAsRead(form, options) {
476
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form, options);
576
477
  }
577
478
  /**
578
- * Mark a private message as read.
579
- *
580
- * `HTTP.POST /private_message/mark_as_read`
479
+ * @summary Create a report for a private message.
581
480
  */
582
- markPrivateMessageAsRead(form) {
583
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/mark_as_read", form);
481
+ createPrivateMessageReport(form, options) {
482
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form, options);
584
483
  }
585
484
  /**
586
- * Create a report for a private message.
587
- *
588
- * `HTTP.POST /private_message/report`
485
+ * @summary Resolve a report for a private message.
589
486
  */
590
- createPrivateMessageReport(form) {
591
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/private_message/report", form);
487
+ resolvePrivateMessageReport(form, options) {
488
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form, options);
592
489
  }
593
490
  /**
594
- * Resolve a report for a private message.
595
- *
596
- * `HTTP.PUT /private_message/report/resolve`
491
+ * @summary Register a new user.
597
492
  */
598
- resolvePrivateMessageReport(form) {
599
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/private_message/report/resolve", form);
493
+ register(form, options) {
494
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/register", form, options);
600
495
  }
601
496
  /**
602
- * List private message reports.
603
- *
604
- * `HTTP.GET /private_message/report/list`
497
+ * @summary Log into lemmy.
605
498
  */
606
- listPrivateMessageReports(form) {
607
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/private_message/report/list", form);
499
+ login(form, options) {
500
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/login", form, options);
608
501
  }
609
502
  /**
610
- * Register a new user.
611
- *
612
- * `HTTP.POST /user/register`
503
+ * @summary Invalidate the currently used auth token.
613
504
  */
614
- register(form) {
615
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/register", form);
505
+ logout(options) {
506
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/logout", {}, options);
616
507
  }
617
508
  /**
618
- * Log into lemmy.
619
- *
620
- * `HTTP.POST /user/login`
509
+ * @summary Get the details for a person.
621
510
  */
622
- login(form) {
623
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/login", form);
511
+ getPersonDetails(form = {}, options) {
512
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person", form, options);
624
513
  }
625
514
  /**
626
- * Invalidate the currently used auth token.
627
- *
628
- * `HTTP.POST /user/logout`
515
+ * @summary List the content for a person.
629
516
  */
630
- logout() {
631
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/logout", {});
517
+ listPersonContent(form = {}, options) {
518
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/person/content", form, options);
632
519
  }
633
520
  /**
634
- * Get the details for a person.
635
- *
636
- * `HTTP.GET /user`
521
+ * @summary Mark a person mention as read.
637
522
  */
638
- getPersonDetails(form = {}) {
639
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user", form);
523
+ markCommentMentionAsRead(form, options) {
524
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/comment/mark_as_read", form, options);
640
525
  }
641
526
  /**
642
- * Get mentions for your user.
643
- *
644
- * `HTTP.GET /user/mention`
527
+ * @summary Mark a person post body mention as read.
645
528
  */
646
- getPersonMentions(form) {
647
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/mention", form);
529
+ markPostMentionAsRead(form, options) {
530
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mention/post/mark_as_read", form, options);
648
531
  }
649
532
  /**
650
- * Mark a person mention as read.
651
- *
652
- * `HTTP.POST /user/mention/mark_as_read`
533
+ * @summary Ban a person from your site.
653
534
  */
654
- markPersonMentionAsRead(form) {
655
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/mention/mark_as_read", form);
535
+ banPerson(form, options) {
536
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/ban", form, options);
656
537
  }
657
538
  /**
658
- * Get comment replies.
659
- *
660
- * `HTTP.GET /user/replies`
539
+ * @summary Get a list of banned users.
661
540
  */
662
- getReplies(form) {
663
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/replies", form);
541
+ getBannedPersons(options) {
542
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/banned", {}, options);
664
543
  }
665
544
  /**
666
- * Ban a person from your site.
667
- *
668
- * `HTTP.POST /user/ban`
545
+ * @summary Block a person.
669
546
  */
670
- banPerson(form) {
671
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/ban", form);
547
+ blockPerson(form, options) {
548
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/person", form, options);
672
549
  }
673
550
  /**
674
- * Get a list of banned users
675
- *
676
- * `HTTP.GET /user/banned`
551
+ * @summary Fetch a Captcha.
677
552
  */
678
- getBannedPersons() {
679
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/banned", {});
553
+ getCaptcha(options) {
554
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/get_captcha", {}, options);
680
555
  }
681
556
  /**
682
- * Block a person.
683
- *
684
- * `HTTP.POST /user/block`
557
+ * @summary Delete your account.
685
558
  */
686
- blockPerson(form) {
687
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/block", form);
559
+ deleteAccount(form, options) {
560
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/delete", form, options);
688
561
  }
689
562
  /**
690
- * Fetch a Captcha.
691
- *
692
- * `HTTP.GET /user/get_captcha`
563
+ * @summary Reset your password.
693
564
  */
694
- getCaptcha() {
695
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/get_captcha", {});
565
+ passwordReset(form, options) {
566
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_reset", form, options);
696
567
  }
697
568
  /**
698
- * Delete your account.
699
- *
700
- * `HTTP.POST /user/delete_account`
569
+ * @summary Change your password from an email / token based reset.
701
570
  */
702
- deleteAccount(form) {
703
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/delete_account", form);
571
+ passwordChangeAfterReset(form, options) {
572
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/password_change", form, options);
704
573
  }
705
574
  /**
706
- * Reset your password.
707
- *
708
- * `HTTP.POST /user/password_reset`
575
+ * @summary Mark all replies as read.
709
576
  */
710
- passwordReset(form) {
711
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/password_reset", form);
577
+ markAllNotificationsAsRead(options) {
578
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/mark_as_read/all", {}, options);
712
579
  }
713
580
  /**
714
- * Change your password from an email / token based reset.
715
- *
716
- * `HTTP.POST /user/password_change`
581
+ * @summary Save your user settings.
717
582
  */
718
- passwordChangeAfterReset(form) {
719
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/password_change", form);
583
+ saveUserSettings(form, options) {
584
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/settings/save", form, options);
720
585
  }
721
586
  /**
722
- * Mark all replies as read.
723
- *
724
- * `HTTP.POST /user/mark_all_as_read`
587
+ * @summary Change your user password.
725
588
  */
726
- markAllAsRead() {
727
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/mark_all_as_read", {});
589
+ changePassword(form, options) {
590
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/account/auth/change_password", form, options);
728
591
  }
729
592
  /**
730
- * Save your user settings.
731
- *
732
- * `HTTP.PUT /user/save_user_settings`
593
+ * @summary Get counts for your reports.
733
594
  */
734
- saveUserSettings(form) {
735
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/user/save_user_settings", form);
595
+ getReportCount(form, options) {
596
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/report_count", form, options);
736
597
  }
737
598
  /**
738
- * Change your user password.
739
- *
740
- * `HTTP.PUT /user/change_password`
599
+ * @summary Get your unread counts.
741
600
  */
742
- changePassword(form) {
743
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/user/change_password", form);
601
+ getUnreadCount(options) {
602
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/unread_count", {}, options);
744
603
  }
745
604
  /**
746
- * Get counts for your reports
747
- *
748
- * `HTTP.GET /user/report_count`
605
+ * @summary Get your inbox (replies, comment mentions, post mentions, and messages)
749
606
  */
750
- getReportCount(form) {
751
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/report_count", form);
607
+ listInbox(form, options) {
608
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/inbox", form, options);
752
609
  }
753
610
  /**
754
- * Get your unread counts
755
- *
756
- * `HTTP.GET /user/unread_count`
611
+ * @summary Verify your email
757
612
  */
758
- getUnreadCount() {
759
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/user/unread_count", {});
613
+ verifyEmail(form, options) {
614
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/auth/verify_email", form, options);
760
615
  }
761
616
  /**
762
- * Verify your email
763
- *
764
- * `HTTP.POST /user/verify_email`
617
+ * @summary List your saved content.
765
618
  */
766
- verifyEmail(form) {
767
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/user/verify_email", form);
619
+ listPersonSaved(form, options) {
620
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/account/auth/saved", form, options);
768
621
  }
769
622
  /**
770
- * Add an admin to your site.
771
- *
772
- * `HTTP.POST /admin/add`
623
+ * @summary Add an admin to your site.
773
624
  */
774
- addAdmin(form) {
775
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form);
625
+ addAdmin(form, options) {
626
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/add", form, options);
776
627
  }
777
628
  /**
778
- * Get the unread registration applications count.
779
- *
780
- * `HTTP.GET /admin/registration_application/count`
629
+ * @summary Get the unread registration applications count.
781
630
  */
782
- getUnreadRegistrationApplicationCount() {
783
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {});
631
+ getUnreadRegistrationApplicationCount(options) {
632
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/count", {}, options);
784
633
  }
785
634
  /**
786
- * List the registration applications.
787
- *
788
- * `HTTP.GET /admin/registration_application/list`
635
+ * @summary List the registration applications.
789
636
  */
790
- listRegistrationApplications(form) {
791
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form);
637
+ listRegistrationApplications(form, options) {
638
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application/list", form, options);
792
639
  }
793
640
  /**
794
- * Approve a registration application
795
- *
796
- * `HTTP.PUT /admin/registration_application/approve`
641
+ * @summary Approve a registration application
797
642
  */
798
- approveRegistrationApplication(form) {
799
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form);
643
+ approveRegistrationApplication(form, options) {
644
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/registration_application/approve", form, options);
800
645
  }
801
646
  /**
802
- * Get the application a user submitted when they first registered their account
803
- *
804
- * `HTTP.GET /admin/registration_application`
647
+ * @summary Get the application a user submitted when they first registered their account
805
648
  */
806
- getRegistrationApplication(form) {
807
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form);
649
+ getRegistrationApplication(form, options) {
650
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/registration_application", form, options);
808
651
  }
809
652
  /**
810
- * Purge / Delete a person from the database.
811
- *
812
- * `HTTP.POST /admin/purge/person`
653
+ * @summary Purge / Delete a person from the database.
813
654
  */
814
- purgePerson(form) {
815
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form);
655
+ purgePerson(form, options) {
656
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/person", form, options);
816
657
  }
817
658
  /**
818
- * Purge / Delete a community from the database.
819
- *
820
- * `HTTP.POST /admin/purge/community`
659
+ * @summary Purge / Delete a community from the database.
821
660
  */
822
- purgeCommunity(form) {
823
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form);
661
+ purgeCommunity(form, options) {
662
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/community", form, options);
824
663
  }
825
664
  /**
826
- * Purge / Delete a post from the database.
827
- *
828
- * `HTTP.POST /admin/purge/post`
665
+ * @summary Purge / Delete a post from the database.
829
666
  */
830
- purgePost(form) {
831
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form);
667
+ purgePost(form, options) {
668
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/post", form, options);
832
669
  }
833
670
  /**
834
- * Purge / Delete a comment from the database.
835
- *
836
- * `HTTP.POST /admin/purge/comment`
671
+ * @summary Purge / Delete a comment from the database.
837
672
  */
838
- purgeComment(form) {
839
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form);
673
+ purgeComment(form, options) {
674
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/purge/comment", form, options);
840
675
  }
841
676
  /**
842
- * Create a new custom emoji
843
- *
844
- * `HTTP.POST /custom_emoji`
677
+ * @summary Create a new custom emoji.
845
678
  */
846
- createCustomEmoji(form) {
847
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form);
679
+ createCustomEmoji(form, options) {
680
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji", form, options);
848
681
  }
849
682
  /**
850
- * Edit an existing custom emoji
851
- *
852
- * `HTTP.PUT /custom_emoji`
683
+ * @summary Edit an existing custom emoji.
853
684
  */
854
- editCustomEmoji(form) {
855
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form);
685
+ editCustomEmoji(form, options) {
686
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/custom_emoji", form, options);
856
687
  }
857
688
  /**
858
- * Delete a custom emoji
859
- *
860
- * `HTTP.Post /custom_emoji/delete`
689
+ * @summary Delete a custom emoji.
861
690
  */
862
- deleteCustomEmoji(form) {
863
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form);
691
+ deleteCustomEmoji(form, options) {
692
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/custom_emoji/delete", form, options);
864
693
  }
865
694
  /**
866
- * List custom emojis
867
- *
868
- * `HTTP.GET /custom_emoji/list`
695
+ * @summary List custom emojis
869
696
  */
870
- listCustomEmojis(form) {
871
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form);
697
+ listCustomEmojis(form, options) {
698
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/custom_emoji/list", form, options);
872
699
  }
873
700
  /**
874
- * Create a new tagline
875
- *
876
- * `HTTP.POST /admin/tagline`
701
+ * @summary Create a new tagline
877
702
  */
878
- createTagline(form) {
879
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form);
703
+ createTagline(form, options) {
704
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline", form, options);
880
705
  }
881
706
  /**
882
- * Edit an existing tagline
883
- *
884
- * `HTTP.PUT /admin/tagline`
707
+ * @summary Edit an existing tagline
885
708
  */
886
- editTagline(form) {
887
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form);
709
+ editTagline(form, options) {
710
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/admin/tagline", form, options);
888
711
  }
889
712
  /**
890
- * Delete a tagline
891
- *
892
- * `HTTP.Post /admin/tagline/delete`
713
+ * @summary Delete a tagline
893
714
  */
894
- deleteTagline(form) {
895
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form);
715
+ deleteTagline(form, options) {
716
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/tagline/delete", form, options);
896
717
  }
897
718
  /**
898
- * List taglines
899
- *
900
- * `HTTP.GET /admin/tagline/list`
719
+ * @summary List taglines.
901
720
  */
902
- listTaglines(form) {
903
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form);
721
+ listTaglines(form, options) {
722
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/admin/tagline/list", form, options);
904
723
  }
905
724
  /**
906
- * Create a new oauth provider method
907
- *
908
- * `HTTP.POST /oauth_provider`
725
+ * @summary Create a new oauth provider method
909
726
  */
910
- createOAuthProvider(form) {
911
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form);
727
+ createOAuthProvider(form, options) {
728
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider", form, options);
912
729
  }
913
730
  /**
914
- * Edit an existing oauth provider method
915
- *
916
- * `HTTP.PUT /oauth_provider`
731
+ * @summary Edit an existing oauth provider method
917
732
  */
918
- editOAuthProvider(form) {
919
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form);
733
+ editOAuthProvider(form, options) {
734
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Put, "/oauth_provider", form, options);
920
735
  }
921
736
  /**
922
- * Delete an oauth provider method
923
- *
924
- * `HTTP.Post /oauth_provider/delete`
737
+ * @summary Delete an oauth provider method
925
738
  */
926
- deleteOAuthProvider(form) {
927
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form);
739
+ deleteOAuthProvider(form, options) {
740
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth_provider/delete", form, options);
928
741
  }
929
742
  /**
930
- * Authenticate with OAuth
931
- *
932
- * `HTTP.Post /oauth/authenticate`
743
+ * @summary Authenticate with OAuth
933
744
  */
934
- authenticateWithOAuth(form) {
935
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form);
745
+ authenticateWithOAuth(form, options) {
746
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/oauth/authenticate", form, options);
936
747
  }
937
748
  /**
938
- * Fetch federated instances.
939
- *
940
- * `HTTP.Get /federated_instances`
749
+ * @summary Fetch federated instances.
941
750
  */
942
- getFederatedInstances() {
943
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {});
751
+ getFederatedInstances(options) {
752
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {}, options);
944
753
  }
945
754
  /**
946
- * Block an instance.
947
- *
948
- * `HTTP.Post /site/block`
949
- */
950
- blockInstance(form) {
951
- return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/site/block", form);
952
- }
953
- /**
954
- * Upload an image to the server.
955
- */
956
- uploadImage(_a) {
957
- return __awaiter(this, arguments, void 0, function* ({ image }) {
958
- const formData = createFormData(image);
959
- let url = undefined;
960
- let delete_url = undefined;
961
- const response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_pictrsUrl, "f"), {
962
- method: HttpType.Post,
963
- body: formData,
964
- headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
965
- });
966
- if (response.status === 413) {
967
- return { msg: "too_large" };
968
- }
969
- const responseJson = yield response.json();
970
- if (responseJson.msg === "ok") {
971
- const { file: hash, delete_token: deleteToken } = responseJson.files[0];
972
- delete_url = `${__classPrivateFieldGet(this, _LemmyHttp_pictrsUrl, "f")}/delete/${deleteToken}/${hash}`;
973
- url = `${__classPrivateFieldGet(this, _LemmyHttp_pictrsUrl, "f")}/${hash}`;
974
- }
975
- return Object.assign(Object.assign({}, responseJson), { url,
976
- delete_url });
755
+ * @summary List user reports.
756
+ */
757
+ listReports(form, options) {
758
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/report/list", form, options);
759
+ }
760
+ /**
761
+ * @summary Block an instance as user.
762
+ */
763
+ userBlockInstance(form, options) {
764
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/account/block/instance", form, options);
765
+ }
766
+ /**
767
+ * @summary Globally block an instance as admin.
768
+ */
769
+ adminBlockInstance(form, options) {
770
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/block", form, options);
771
+ }
772
+ /**
773
+ * @summary Globally allow an instance as admin.
774
+ */
775
+ adminAllowInstance(form, options) {
776
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Post, "/admin/instance/allow", form, options);
777
+ }
778
+ /**
779
+ * @summary Upload new user avatar.
780
+ */
781
+ uploadUserAvatar(image, options) {
782
+ return __awaiter(this, void 0, void 0, function* () {
783
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/avatar", image, options);
784
+ });
785
+ }
786
+ /**
787
+ * @summary Delete the user avatar.
788
+ */
789
+ deleteUserAvatar(options) {
790
+ return __awaiter(this, void 0, void 0, function* () {
791
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/avatar", {}, options);
792
+ });
793
+ }
794
+ /**
795
+ * @summary Upload new user banner.
796
+ */
797
+ uploadUserBanner(image, options) {
798
+ return __awaiter(this, void 0, void 0, function* () {
799
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/account/banner", image, options);
977
800
  });
978
801
  }
979
802
  /**
980
- * Delete a pictrs image
803
+ * @summary Delete the user banner.
981
804
  */
982
- deleteImage(_a) {
983
- return __awaiter(this, arguments, void 0, function* ({ token, filename }) {
984
- const deleteUrl = `${__classPrivateFieldGet(this, _LemmyHttp_pictrsUrl, "f")}/delete/${token}/${filename}`;
985
- const response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, deleteUrl, {
986
- method: HttpType.Get,
987
- headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
988
- });
989
- return response.status == 204;
805
+ deleteUserBanner(options) {
806
+ return __awaiter(this, void 0, void 0, function* () {
807
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/account/banner", {}, options);
808
+ });
809
+ }
810
+ /**
811
+ * @summary Upload new community icon.
812
+ */
813
+ uploadCommunityIcon(image, options) {
814
+ return __awaiter(this, void 0, void 0, function* () {
815
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/icon", image, options);
816
+ });
817
+ }
818
+ /**
819
+ * @summary Delete the community icon.
820
+ */
821
+ deleteCommunityIcon(options) {
822
+ return __awaiter(this, void 0, void 0, function* () {
823
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/icon", {}, options);
824
+ });
825
+ }
826
+ /**
827
+ * @summary Upload new community banner.
828
+ */
829
+ uploadCommunityBanner(image, options) {
830
+ return __awaiter(this, void 0, void 0, function* () {
831
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/community/banner", image, options);
832
+ });
833
+ }
834
+ /**
835
+ * @summary Delete the community banner.
836
+ */
837
+ deleteCommunityBanner(options) {
838
+ return __awaiter(this, void 0, void 0, function* () {
839
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/community/banner", {}, options);
840
+ });
841
+ }
842
+ /**
843
+ * @summary Upload new site icon.
844
+ */
845
+ uploadSiteIcon(image, options) {
846
+ return __awaiter(this, void 0, void 0, function* () {
847
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/icon", image, options);
848
+ });
849
+ }
850
+ /**
851
+ * @summary Delete the site icon.
852
+ */
853
+ deleteSiteIcon(options) {
854
+ return __awaiter(this, void 0, void 0, function* () {
855
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/icon", {}, options);
856
+ });
857
+ }
858
+ /**
859
+ * @summary Upload new site banner.
860
+ */
861
+ uploadSiteBanner(image, options) {
862
+ return __awaiter(this, void 0, void 0, function* () {
863
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/site/banner", image, options);
864
+ });
865
+ }
866
+ /**
867
+ * @summary Delete the site banner.
868
+ */
869
+ deleteSiteBanner(options) {
870
+ return __awaiter(this, void 0, void 0, function* () {
871
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/site/banner", {}, options);
872
+ });
873
+ }
874
+ /**
875
+ * @summary Upload an image to the server.
876
+ */
877
+ uploadImage(image, options) {
878
+ return __awaiter(this, void 0, void 0, function* () {
879
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_upload).call(this, "/image", image, options);
880
+ });
881
+ }
882
+ /**
883
+ * @summary Delete a pictrs image
884
+ */
885
+ deleteImage(form, options) {
886
+ return __awaiter(this, void 0, void 0, function* () {
887
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Delete, "/image", form, options);
888
+ });
889
+ }
890
+ /**
891
+ * @summary Health check for image functionality
892
+ */
893
+ imageHealth(options) {
894
+ return __awaiter(this, void 0, void 0, function* () {
895
+ return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/image/health", {}, options);
990
896
  });
991
897
  }
992
898
  /**
@@ -995,27 +901,32 @@ class LemmyHttp {
995
901
  setHeaders(headers) {
996
902
  __classPrivateFieldSet(this, _LemmyHttp_headers, headers, "f");
997
903
  }
998
- }
904
+ };
999
905
  exports.LemmyHttp = LemmyHttp;
1000
- _LemmyHttp_apiUrl = new WeakMap(), _LemmyHttp_headers = new WeakMap(), _LemmyHttp_pictrsUrl = new WeakMap(), _LemmyHttp_fetchFunction = new WeakMap(), _LemmyHttp_instances = new WeakSet(), _LemmyHttp_buildFullUrl = function _LemmyHttp_buildFullUrl(endpoint) {
906
+ _LemmyHttp_apiUrl = new WeakMap();
907
+ _LemmyHttp_headers = new WeakMap();
908
+ _LemmyHttp_fetchFunction = new WeakMap();
909
+ _LemmyHttp_instances = new WeakSet();
910
+ _LemmyHttp_buildFullUrl = function _LemmyHttp_buildFullUrl(endpoint) {
1001
911
  return `${__classPrivateFieldGet(this, _LemmyHttp_apiUrl, "f")}${endpoint}`;
1002
- }, _LemmyHttp_wrapper = function _LemmyHttp_wrapper(type_, endpoint, form) {
912
+ };
913
+ _LemmyHttp_upload = function _LemmyHttp_upload(path_1, _a, options_1) {
914
+ return __awaiter(this, arguments, void 0, function* (path, { image }, options) {
915
+ const formData = createFormData(image);
916
+ const response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, path), Object.assign(Object.assign({}, options), { method: HttpType.Post, body: formData, headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f") }));
917
+ return response.json();
918
+ });
919
+ };
920
+ _LemmyHttp_wrapper = function _LemmyHttp_wrapper(type_, endpoint, form, options) {
1003
921
  return __awaiter(this, void 0, void 0, function* () {
1004
922
  var _a;
1005
923
  let response;
1006
924
  if (type_ === HttpType.Get) {
1007
925
  const getUrl = `${__classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint)}?${encodeGetParams(form)}`;
1008
- response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, getUrl, {
1009
- method: HttpType.Get,
1010
- headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
1011
- });
926
+ response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, getUrl, Object.assign(Object.assign({}, options), { method: HttpType.Get, headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f") }));
1012
927
  }
1013
928
  else {
1014
- response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint), {
1015
- method: type_,
1016
- headers: Object.assign({ "Content-Type": "application/json" }, __classPrivateFieldGet(this, _LemmyHttp_headers, "f")),
1017
- body: JSON.stringify(form),
1018
- });
929
+ response = yield __classPrivateFieldGet(this, _LemmyHttp_fetchFunction, "f").call(this, __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_buildFullUrl).call(this, endpoint), Object.assign(Object.assign({}, options), { method: type_, headers: Object.assign({ "Content-Type": "application/json" }, __classPrivateFieldGet(this, _LemmyHttp_headers, "f")), body: JSON.stringify(form) }));
1019
930
  }
1020
931
  let json = undefined;
1021
932
  try {
@@ -1032,6 +943,923 @@ _LemmyHttp_apiUrl = new WeakMap(), _LemmyHttp_headers = new WeakMap(), _LemmyHtt
1032
943
  }
1033
944
  });
1034
945
  };
946
+ __decorate([
947
+ (0, tsoa_1.Security)("bearerAuth"),
948
+ (0, tsoa_1.Security)({}),
949
+ (0, tsoa_1.Get)("/site"),
950
+ (0, tsoa_1.Tags)("Site"),
951
+ __param(0, (0, tsoa_1.Inject)())
952
+ ], LemmyHttp.prototype, "getSite", null);
953
+ __decorate([
954
+ (0, tsoa_1.Security)("bearerAuth"),
955
+ (0, tsoa_1.Post)("/site"),
956
+ (0, tsoa_1.Tags)("Site"),
957
+ __param(0, (0, tsoa_1.Body)()),
958
+ __param(1, (0, tsoa_1.Inject)())
959
+ ], LemmyHttp.prototype, "createSite", null);
960
+ __decorate([
961
+ (0, tsoa_1.Security)("bearerAuth"),
962
+ (0, tsoa_1.Put)("/site"),
963
+ (0, tsoa_1.Tags)("Site"),
964
+ __param(0, (0, tsoa_1.Body)()),
965
+ __param(1, (0, tsoa_1.Inject)())
966
+ ], LemmyHttp.prototype, "editSite", null);
967
+ __decorate([
968
+ (0, tsoa_1.Security)("bearerAuth"),
969
+ (0, tsoa_1.Post)("/admin/leave"),
970
+ (0, tsoa_1.Tags)("Admin"),
971
+ __param(0, (0, tsoa_1.Inject)())
972
+ ], LemmyHttp.prototype, "leaveAdmin", null);
973
+ __decorate([
974
+ (0, tsoa_1.Security)("bearerAuth"),
975
+ (0, tsoa_1.Post)("/account/auth/totp/generate"),
976
+ (0, tsoa_1.Tags)("Account"),
977
+ __param(0, (0, tsoa_1.Inject)())
978
+ ], LemmyHttp.prototype, "generateTotpSecret", null);
979
+ __decorate([
980
+ (0, tsoa_1.Security)("bearerAuth"),
981
+ (0, tsoa_1.Get)("/account"),
982
+ (0, tsoa_1.Tags)("Account"),
983
+ __param(0, (0, tsoa_1.Inject)())
984
+ ], LemmyHttp.prototype, "getMyUser", null);
985
+ __decorate([
986
+ (0, tsoa_1.Security)("bearerAuth"),
987
+ (0, tsoa_1.Get)("/account/settings/export"),
988
+ (0, tsoa_1.Tags)("Account"),
989
+ __param(0, (0, tsoa_1.Inject)())
990
+ ], LemmyHttp.prototype, "exportSettings", null);
991
+ __decorate([
992
+ (0, tsoa_1.Security)("bearerAuth"),
993
+ (0, tsoa_1.Post)("/account/settings/import"),
994
+ (0, tsoa_1.Tags)("Account"),
995
+ __param(0, (0, tsoa_1.Body)()),
996
+ __param(1, (0, tsoa_1.Inject)())
997
+ ], LemmyHttp.prototype, "importSettings", null);
998
+ __decorate([
999
+ (0, tsoa_1.Security)("bearerAuth"),
1000
+ (0, tsoa_1.Get)("/account/list_logins"),
1001
+ (0, tsoa_1.Tags)("Account"),
1002
+ __param(0, (0, tsoa_1.Inject)())
1003
+ ], LemmyHttp.prototype, "listLogins", null);
1004
+ __decorate([
1005
+ (0, tsoa_1.Security)("bearerAuth"),
1006
+ (0, tsoa_1.Get)("/account/validate_auth"),
1007
+ (0, tsoa_1.Tags)("Account"),
1008
+ __param(0, (0, tsoa_1.Inject)())
1009
+ ], LemmyHttp.prototype, "validateAuth", null);
1010
+ __decorate([
1011
+ (0, tsoa_1.Security)("bearerAuth"),
1012
+ (0, tsoa_1.Get)("/account/list_media"),
1013
+ (0, tsoa_1.Tags)("Account", "Media"),
1014
+ __param(0, (0, tsoa_1.Queries)()),
1015
+ __param(1, (0, tsoa_1.Inject)())
1016
+ ], LemmyHttp.prototype, "listMedia", null);
1017
+ __decorate([
1018
+ (0, tsoa_1.Security)("bearerAuth"),
1019
+ (0, tsoa_1.Get)("/admin/list_all_media"),
1020
+ (0, tsoa_1.Tags)("Admin", "Media"),
1021
+ __param(0, (0, tsoa_1.Queries)()),
1022
+ __param(1, (0, tsoa_1.Inject)())
1023
+ ], LemmyHttp.prototype, "listAllMedia", null);
1024
+ __decorate([
1025
+ (0, tsoa_1.Security)("bearerAuth"),
1026
+ (0, tsoa_1.Post)("/account/auth/totp/update"),
1027
+ (0, tsoa_1.Tags)("Account"),
1028
+ __param(0, (0, tsoa_1.Body)()),
1029
+ __param(1, (0, tsoa_1.Inject)())
1030
+ ], LemmyHttp.prototype, "updateTotp", null);
1031
+ __decorate([
1032
+ (0, tsoa_1.Security)("bearerAuth"),
1033
+ (0, tsoa_1.Security)({}),
1034
+ (0, tsoa_1.Get)("/modlog"),
1035
+ (0, tsoa_1.Tags)("Miscellaneous"),
1036
+ __param(0, (0, tsoa_1.Queries)()),
1037
+ __param(1, (0, tsoa_1.Inject)())
1038
+ ], LemmyHttp.prototype, "getModlog", null);
1039
+ __decorate([
1040
+ (0, tsoa_1.Security)("bearerAuth"),
1041
+ (0, tsoa_1.Security)({}),
1042
+ (0, tsoa_1.Get)("/search"),
1043
+ (0, tsoa_1.Tags)("Miscellaneous"),
1044
+ __param(0, (0, tsoa_1.Queries)()),
1045
+ __param(1, (0, tsoa_1.Inject)())
1046
+ ], LemmyHttp.prototype, "search", null);
1047
+ __decorate([
1048
+ (0, tsoa_1.Security)("bearerAuth"),
1049
+ (0, tsoa_1.Security)({}),
1050
+ (0, tsoa_1.Get)("/resolve_object"),
1051
+ (0, tsoa_1.Tags)("Miscellaneous"),
1052
+ __param(0, (0, tsoa_1.Queries)()),
1053
+ __param(1, (0, tsoa_1.Inject)())
1054
+ ], LemmyHttp.prototype, "resolveObject", null);
1055
+ __decorate([
1056
+ (0, tsoa_1.Security)("bearerAuth"),
1057
+ (0, tsoa_1.Post)("/community"),
1058
+ (0, tsoa_1.Tags)("Community"),
1059
+ __param(0, (0, tsoa_1.Body)()),
1060
+ __param(1, (0, tsoa_1.Inject)())
1061
+ ], LemmyHttp.prototype, "createCommunity", null);
1062
+ __decorate([
1063
+ (0, tsoa_1.Security)("bearerAuth"),
1064
+ (0, tsoa_1.Security)({}),
1065
+ (0, tsoa_1.Get)("/community"),
1066
+ (0, tsoa_1.Tags)("Community"),
1067
+ __param(0, (0, tsoa_1.Queries)()),
1068
+ __param(1, (0, tsoa_1.Inject)())
1069
+ ], LemmyHttp.prototype, "getCommunity", null);
1070
+ __decorate([
1071
+ (0, tsoa_1.Security)("bearerAuth"),
1072
+ (0, tsoa_1.Put)("/community"),
1073
+ (0, tsoa_1.Tags)("Community"),
1074
+ __param(0, (0, tsoa_1.Body)()),
1075
+ __param(1, (0, tsoa_1.Inject)())
1076
+ ], LemmyHttp.prototype, "editCommunity", null);
1077
+ __decorate([
1078
+ (0, tsoa_1.Security)("bearerAuth"),
1079
+ (0, tsoa_1.Security)({}),
1080
+ (0, tsoa_1.Get)("/community/list"),
1081
+ (0, tsoa_1.Tags)("Community"),
1082
+ __param(0, (0, tsoa_1.Queries)()),
1083
+ __param(1, (0, tsoa_1.Inject)())
1084
+ ], LemmyHttp.prototype, "listCommunities", null);
1085
+ __decorate([
1086
+ (0, tsoa_1.Security)("bearerAuth"),
1087
+ (0, tsoa_1.Post)("/community/follow"),
1088
+ (0, tsoa_1.Tags)("Community"),
1089
+ __param(0, (0, tsoa_1.Body)()),
1090
+ __param(1, (0, tsoa_1.Inject)()),
1091
+ __param(1, (0, tsoa_1.Inject)())
1092
+ ], LemmyHttp.prototype, "followCommunity", null);
1093
+ __decorate([
1094
+ (0, tsoa_1.Security)("bearerAuth"),
1095
+ (0, tsoa_1.Get)("/community/pending_follows/count"),
1096
+ (0, tsoa_1.Tags)("Community"),
1097
+ __param(0, (0, tsoa_1.Queries)()),
1098
+ __param(1, (0, tsoa_1.Inject)())
1099
+ ], LemmyHttp.prototype, "getCommunityPendingFollowsCount", null);
1100
+ __decorate([
1101
+ (0, tsoa_1.Security)("bearerAuth"),
1102
+ (0, tsoa_1.Get)("/community/pending_follows/list"),
1103
+ (0, tsoa_1.Tags)("Community"),
1104
+ __param(0, (0, tsoa_1.Queries)()),
1105
+ __param(1, (0, tsoa_1.Inject)())
1106
+ ], LemmyHttp.prototype, "listCommunityPendingFollows", null);
1107
+ __decorate([
1108
+ (0, tsoa_1.Security)("bearerAuth"),
1109
+ (0, tsoa_1.Post)("/community/pending_follows/approve"),
1110
+ (0, tsoa_1.Tags)("Community"),
1111
+ __param(0, (0, tsoa_1.Body)()),
1112
+ __param(1, (0, tsoa_1.Inject)())
1113
+ ], LemmyHttp.prototype, "approveCommunityPendingFollow", null);
1114
+ __decorate([
1115
+ (0, tsoa_1.Security)("bearerAuth"),
1116
+ (0, tsoa_1.Post)("/account/block/community"),
1117
+ (0, tsoa_1.Tags)("Account", "Community"),
1118
+ __param(0, (0, tsoa_1.Body)()),
1119
+ __param(1, (0, tsoa_1.Inject)())
1120
+ ], LemmyHttp.prototype, "blockCommunity", null);
1121
+ __decorate([
1122
+ (0, tsoa_1.Security)("bearerAuth"),
1123
+ (0, tsoa_1.Post)("/community/delete"),
1124
+ (0, tsoa_1.Tags)("Community"),
1125
+ __param(0, (0, tsoa_1.Body)()),
1126
+ __param(1, (0, tsoa_1.Inject)())
1127
+ ], LemmyHttp.prototype, "deleteCommunity", null);
1128
+ __decorate([
1129
+ (0, tsoa_1.Security)("bearerAuth"),
1130
+ (0, tsoa_1.Put)("/community/hide"),
1131
+ (0, tsoa_1.Tags)("Community", "Admin"),
1132
+ __param(0, (0, tsoa_1.Body)()),
1133
+ __param(1, (0, tsoa_1.Inject)())
1134
+ ], LemmyHttp.prototype, "hideCommunity", null);
1135
+ __decorate([
1136
+ (0, tsoa_1.Security)("bearerAuth"),
1137
+ (0, tsoa_1.Post)("/community/remove"),
1138
+ (0, tsoa_1.Tags)("Community", "Moderator"),
1139
+ __param(0, (0, tsoa_1.Body)()),
1140
+ __param(1, (0, tsoa_1.Inject)())
1141
+ ], LemmyHttp.prototype, "removeCommunity", null);
1142
+ __decorate([
1143
+ (0, tsoa_1.Security)("bearerAuth"),
1144
+ (0, tsoa_1.Post)("/community/transfer"),
1145
+ (0, tsoa_1.Tags)("Community", "Moderator"),
1146
+ __param(0, (0, tsoa_1.Body)()),
1147
+ __param(1, (0, tsoa_1.Inject)())
1148
+ ], LemmyHttp.prototype, "transferCommunity", null);
1149
+ __decorate([
1150
+ (0, tsoa_1.Security)("bearerAuth"),
1151
+ (0, tsoa_1.Post)("/community/ban_user"),
1152
+ (0, tsoa_1.Tags)("Community", "Moderator"),
1153
+ __param(0, (0, tsoa_1.Body)()),
1154
+ __param(1, (0, tsoa_1.Inject)())
1155
+ ], LemmyHttp.prototype, "banFromCommunity", null);
1156
+ __decorate([
1157
+ (0, tsoa_1.Security)("bearerAuth"),
1158
+ (0, tsoa_1.Post)("/community/mod"),
1159
+ (0, tsoa_1.Tags)("Community", "Moderator"),
1160
+ __param(0, (0, tsoa_1.Body)()),
1161
+ __param(1, (0, tsoa_1.Inject)())
1162
+ ], LemmyHttp.prototype, "addModToCommunity", null);
1163
+ __decorate([
1164
+ (0, tsoa_1.Security)("bearerAuth"),
1165
+ (0, tsoa_1.Security)({}),
1166
+ (0, tsoa_1.Get)("/community/random"),
1167
+ (0, tsoa_1.Tags)("Community"),
1168
+ __param(0, (0, tsoa_1.Queries)()),
1169
+ __param(1, (0, tsoa_1.Inject)())
1170
+ ], LemmyHttp.prototype, "getRandomCommunity", null);
1171
+ __decorate([
1172
+ (0, tsoa_1.Security)("bearerAuth"),
1173
+ (0, tsoa_1.Post)("/post"),
1174
+ (0, tsoa_1.Tags)("Post"),
1175
+ __param(0, (0, tsoa_1.Body)()),
1176
+ __param(1, (0, tsoa_1.Inject)())
1177
+ ], LemmyHttp.prototype, "createPost", null);
1178
+ __decorate([
1179
+ (0, tsoa_1.Security)("bearerAuth"),
1180
+ (0, tsoa_1.Security)({}),
1181
+ (0, tsoa_1.Get)("/post"),
1182
+ (0, tsoa_1.Tags)("Post"),
1183
+ __param(0, (0, tsoa_1.Queries)()),
1184
+ __param(1, (0, tsoa_1.Inject)())
1185
+ ], LemmyHttp.prototype, "getPost", null);
1186
+ __decorate([
1187
+ (0, tsoa_1.Security)("bearerAuth"),
1188
+ (0, tsoa_1.Put)("/post"),
1189
+ (0, tsoa_1.Tags)("Post"),
1190
+ __param(0, (0, tsoa_1.Body)()),
1191
+ __param(1, (0, tsoa_1.Inject)())
1192
+ ], LemmyHttp.prototype, "editPost", null);
1193
+ __decorate([
1194
+ (0, tsoa_1.Security)("bearerAuth"),
1195
+ (0, tsoa_1.Post)("/post/delete"),
1196
+ (0, tsoa_1.Tags)("Post"),
1197
+ __param(0, (0, tsoa_1.Body)()),
1198
+ __param(1, (0, tsoa_1.Inject)())
1199
+ ], LemmyHttp.prototype, "deletePost", null);
1200
+ __decorate([
1201
+ (0, tsoa_1.Security)("bearerAuth"),
1202
+ (0, tsoa_1.Post)("/post/remove"),
1203
+ (0, tsoa_1.Tags)("Post", "Moderator"),
1204
+ __param(0, (0, tsoa_1.Body)()),
1205
+ __param(1, (0, tsoa_1.Inject)())
1206
+ ], LemmyHttp.prototype, "removePost", null);
1207
+ __decorate([
1208
+ (0, tsoa_1.Security)("bearerAuth"),
1209
+ (0, tsoa_1.Post)("/post/mark_as_read"),
1210
+ (0, tsoa_1.Tags)("Post"),
1211
+ __param(0, (0, tsoa_1.Body)()),
1212
+ __param(1, (0, tsoa_1.Inject)())
1213
+ ], LemmyHttp.prototype, "markPostAsRead", null);
1214
+ __decorate([
1215
+ (0, tsoa_1.Security)("bearerAuth"),
1216
+ (0, tsoa_1.Post)("/post/mark_as_read/many"),
1217
+ (0, tsoa_1.Tags)("Post"),
1218
+ __param(0, (0, tsoa_1.Body)()),
1219
+ __param(1, (0, tsoa_1.Inject)())
1220
+ ], LemmyHttp.prototype, "markManyPostAsRead", null);
1221
+ __decorate([
1222
+ (0, tsoa_1.Security)("bearerAuth"),
1223
+ (0, tsoa_1.Post)("/post/hide"),
1224
+ (0, tsoa_1.Tags)("Post"),
1225
+ __param(0, (0, tsoa_1.Body)()),
1226
+ __param(1, (0, tsoa_1.Inject)())
1227
+ ], LemmyHttp.prototype, "hidePost", null);
1228
+ __decorate([
1229
+ (0, tsoa_1.Security)("bearerAuth"),
1230
+ (0, tsoa_1.Post)("/post/lock"),
1231
+ (0, tsoa_1.Tags)("Post"),
1232
+ __param(0, (0, tsoa_1.Body)()),
1233
+ __param(1, (0, tsoa_1.Inject)())
1234
+ ], LemmyHttp.prototype, "lockPost", null);
1235
+ __decorate([
1236
+ (0, tsoa_1.Security)("bearerAuth"),
1237
+ (0, tsoa_1.Post)("/post/feature"),
1238
+ (0, tsoa_1.Tags)("Post", "Moderator"),
1239
+ __param(0, (0, tsoa_1.Body)()),
1240
+ __param(1, (0, tsoa_1.Inject)())
1241
+ ], LemmyHttp.prototype, "featurePost", null);
1242
+ __decorate([
1243
+ (0, tsoa_1.Security)("bearerAuth"),
1244
+ (0, tsoa_1.Security)({}),
1245
+ (0, tsoa_1.Get)("/post/list"),
1246
+ (0, tsoa_1.Tags)("Post"),
1247
+ __param(0, (0, tsoa_1.Queries)()),
1248
+ __param(1, (0, tsoa_1.Inject)())
1249
+ ], LemmyHttp.prototype, "getPosts", null);
1250
+ __decorate([
1251
+ (0, tsoa_1.Security)("bearerAuth"),
1252
+ (0, tsoa_1.Post)("/post/like"),
1253
+ (0, tsoa_1.Tags)("Post"),
1254
+ __param(0, (0, tsoa_1.Body)()),
1255
+ __param(1, (0, tsoa_1.Inject)())
1256
+ ], LemmyHttp.prototype, "likePost", null);
1257
+ __decorate([
1258
+ (0, tsoa_1.Security)("bearerAuth"),
1259
+ (0, tsoa_1.Get)("/post/like/list"),
1260
+ (0, tsoa_1.Tags)("Post", "Admin"),
1261
+ __param(0, (0, tsoa_1.Queries)()),
1262
+ __param(1, (0, tsoa_1.Inject)())
1263
+ ], LemmyHttp.prototype, "listPostLikes", null);
1264
+ __decorate([
1265
+ (0, tsoa_1.Security)("bearerAuth"),
1266
+ (0, tsoa_1.Put)("/post/save"),
1267
+ (0, tsoa_1.Tags)("Post"),
1268
+ __param(0, (0, tsoa_1.Body)()),
1269
+ __param(1, (0, tsoa_1.Inject)())
1270
+ ], LemmyHttp.prototype, "savePost", null);
1271
+ __decorate([
1272
+ (0, tsoa_1.Security)("bearerAuth"),
1273
+ (0, tsoa_1.Post)("/post/report"),
1274
+ (0, tsoa_1.Tags)("Post"),
1275
+ __param(0, (0, tsoa_1.Body)()),
1276
+ __param(1, (0, tsoa_1.Inject)())
1277
+ ], LemmyHttp.prototype, "createPostReport", null);
1278
+ __decorate([
1279
+ (0, tsoa_1.Security)("bearerAuth"),
1280
+ (0, tsoa_1.Put)("/post/report/resolve"),
1281
+ (0, tsoa_1.Tags)("Post", "Moderator"),
1282
+ __param(0, (0, tsoa_1.Body)()),
1283
+ __param(1, (0, tsoa_1.Inject)())
1284
+ ], LemmyHttp.prototype, "resolvePostReport", null);
1285
+ __decorate([
1286
+ (0, tsoa_1.Security)("bearerAuth"),
1287
+ (0, tsoa_1.Get)("/post/site_metadata"),
1288
+ (0, tsoa_1.Tags)("Miscellaneous", "Post"),
1289
+ __param(0, (0, tsoa_1.Queries)()),
1290
+ __param(1, (0, tsoa_1.Inject)())
1291
+ ], LemmyHttp.prototype, "getSiteMetadata", null);
1292
+ __decorate([
1293
+ (0, tsoa_1.Security)("bearerAuth"),
1294
+ (0, tsoa_1.Post)("/comment"),
1295
+ (0, tsoa_1.Tags)("Comment"),
1296
+ __param(0, (0, tsoa_1.Body)()),
1297
+ __param(1, (0, tsoa_1.Inject)())
1298
+ ], LemmyHttp.prototype, "createComment", null);
1299
+ __decorate([
1300
+ (0, tsoa_1.Security)("bearerAuth"),
1301
+ (0, tsoa_1.Put)("/comment"),
1302
+ (0, tsoa_1.Tags)("Comment"),
1303
+ __param(0, (0, tsoa_1.Body)()),
1304
+ __param(1, (0, tsoa_1.Inject)())
1305
+ ], LemmyHttp.prototype, "editComment", null);
1306
+ __decorate([
1307
+ (0, tsoa_1.Security)("bearerAuth"),
1308
+ (0, tsoa_1.Post)("/comment/delete"),
1309
+ (0, tsoa_1.Tags)("Comment"),
1310
+ __param(0, (0, tsoa_1.Body)()),
1311
+ __param(1, (0, tsoa_1.Inject)())
1312
+ ], LemmyHttp.prototype, "deleteComment", null);
1313
+ __decorate([
1314
+ (0, tsoa_1.Security)("bearerAuth"),
1315
+ (0, tsoa_1.Post)("/comment/remove"),
1316
+ (0, tsoa_1.Tags)("Comment", "Moderator"),
1317
+ __param(0, (0, tsoa_1.Body)()),
1318
+ __param(1, (0, tsoa_1.Inject)())
1319
+ ], LemmyHttp.prototype, "removeComment", null);
1320
+ __decorate([
1321
+ (0, tsoa_1.Security)("bearerAuth"),
1322
+ (0, tsoa_1.Post)("/comment/mark_as_read"),
1323
+ (0, tsoa_1.Tags)("Comment"),
1324
+ __param(0, (0, tsoa_1.Body)()),
1325
+ __param(1, (0, tsoa_1.Inject)())
1326
+ ], LemmyHttp.prototype, "markCommentReplyAsRead", null);
1327
+ __decorate([
1328
+ (0, tsoa_1.Security)("bearerAuth"),
1329
+ (0, tsoa_1.Post)("/comment/like"),
1330
+ (0, tsoa_1.Tags)("Comment"),
1331
+ __param(0, (0, tsoa_1.Body)()),
1332
+ __param(1, (0, tsoa_1.Inject)())
1333
+ ], LemmyHttp.prototype, "likeComment", null);
1334
+ __decorate([
1335
+ (0, tsoa_1.Security)("bearerAuth"),
1336
+ (0, tsoa_1.Get)("/comment/like/list"),
1337
+ (0, tsoa_1.Tags)("Comment", "Admin"),
1338
+ __param(0, (0, tsoa_1.Queries)()),
1339
+ __param(1, (0, tsoa_1.Inject)())
1340
+ ], LemmyHttp.prototype, "listCommentLikes", null);
1341
+ __decorate([
1342
+ (0, tsoa_1.Security)("bearerAuth"),
1343
+ (0, tsoa_1.Put)("/comment/save"),
1344
+ (0, tsoa_1.Tags)("Comment"),
1345
+ __param(0, (0, tsoa_1.Body)()),
1346
+ __param(1, (0, tsoa_1.Inject)())
1347
+ ], LemmyHttp.prototype, "saveComment", null);
1348
+ __decorate([
1349
+ (0, tsoa_1.Security)("bearerAuth"),
1350
+ (0, tsoa_1.Post)("/comment/distinguish"),
1351
+ (0, tsoa_1.Tags)("Comment", "Moderator"),
1352
+ __param(0, (0, tsoa_1.Body)()),
1353
+ __param(1, (0, tsoa_1.Inject)())
1354
+ ], LemmyHttp.prototype, "distinguishComment", null);
1355
+ __decorate([
1356
+ (0, tsoa_1.Security)("bearerAuth"),
1357
+ (0, tsoa_1.Security)({}),
1358
+ (0, tsoa_1.Get)("/comment/list"),
1359
+ (0, tsoa_1.Tags)("Comment"),
1360
+ __param(0, (0, tsoa_1.Queries)()),
1361
+ __param(1, (0, tsoa_1.Inject)())
1362
+ ], LemmyHttp.prototype, "getComments", null);
1363
+ __decorate([
1364
+ (0, tsoa_1.Security)("bearerAuth"),
1365
+ (0, tsoa_1.Security)({}),
1366
+ (0, tsoa_1.Get)("/comment/list/slim"),
1367
+ (0, tsoa_1.Tags)("Comment"),
1368
+ __param(0, (0, tsoa_1.Queries)()),
1369
+ __param(1, (0, tsoa_1.Inject)())
1370
+ ], LemmyHttp.prototype, "getCommentsSlim", null);
1371
+ __decorate([
1372
+ (0, tsoa_1.Security)("bearerAuth"),
1373
+ (0, tsoa_1.Security)({}),
1374
+ (0, tsoa_1.Get)("/comment"),
1375
+ (0, tsoa_1.Tags)("Comment"),
1376
+ __param(0, (0, tsoa_1.Queries)()),
1377
+ __param(1, (0, tsoa_1.Inject)())
1378
+ ], LemmyHttp.prototype, "getComment", null);
1379
+ __decorate([
1380
+ (0, tsoa_1.Security)("bearerAuth"),
1381
+ (0, tsoa_1.Post)("/comment/report"),
1382
+ (0, tsoa_1.Tags)("Comment"),
1383
+ __param(0, (0, tsoa_1.Body)()),
1384
+ __param(1, (0, tsoa_1.Inject)())
1385
+ ], LemmyHttp.prototype, "createCommentReport", null);
1386
+ __decorate([
1387
+ (0, tsoa_1.Security)("bearerAuth"),
1388
+ (0, tsoa_1.Put)("/comment/report/resolve"),
1389
+ (0, tsoa_1.Tags)("Comment", "Moderator"),
1390
+ __param(0, (0, tsoa_1.Body)()),
1391
+ __param(1, (0, tsoa_1.Inject)())
1392
+ ], LemmyHttp.prototype, "resolveCommentReport", null);
1393
+ __decorate([
1394
+ (0, tsoa_1.Security)("bearerAuth"),
1395
+ (0, tsoa_1.Post)("/private_message"),
1396
+ (0, tsoa_1.Tags)("PrivateMessage"),
1397
+ __param(0, (0, tsoa_1.Body)()),
1398
+ __param(1, (0, tsoa_1.Inject)())
1399
+ ], LemmyHttp.prototype, "createPrivateMessage", null);
1400
+ __decorate([
1401
+ (0, tsoa_1.Security)("bearerAuth"),
1402
+ (0, tsoa_1.Put)("/private_message"),
1403
+ (0, tsoa_1.Tags)("PrivateMessage"),
1404
+ __param(0, (0, tsoa_1.Body)()),
1405
+ __param(1, (0, tsoa_1.Inject)())
1406
+ ], LemmyHttp.prototype, "editPrivateMessage", null);
1407
+ __decorate([
1408
+ (0, tsoa_1.Security)("bearerAuth"),
1409
+ (0, tsoa_1.Post)("/private_message/delete"),
1410
+ (0, tsoa_1.Tags)("PrivateMessage"),
1411
+ __param(0, (0, tsoa_1.Body)()),
1412
+ __param(1, (0, tsoa_1.Inject)())
1413
+ ], LemmyHttp.prototype, "deletePrivateMessage", null);
1414
+ __decorate([
1415
+ (0, tsoa_1.Security)("bearerAuth"),
1416
+ (0, tsoa_1.Post)("/private_message/mark_as_read"),
1417
+ (0, tsoa_1.Tags)("PrivateMessage"),
1418
+ __param(0, (0, tsoa_1.Body)()),
1419
+ __param(1, (0, tsoa_1.Inject)())
1420
+ ], LemmyHttp.prototype, "markPrivateMessageAsRead", null);
1421
+ __decorate([
1422
+ (0, tsoa_1.Security)("bearerAuth"),
1423
+ (0, tsoa_1.Post)("/private_message/report"),
1424
+ (0, tsoa_1.Tags)("PrivateMessage"),
1425
+ __param(0, (0, tsoa_1.Body)()),
1426
+ __param(1, (0, tsoa_1.Inject)())
1427
+ ], LemmyHttp.prototype, "createPrivateMessageReport", null);
1428
+ __decorate([
1429
+ (0, tsoa_1.Security)("bearerAuth"),
1430
+ (0, tsoa_1.Put)("/private_message/report/resolve"),
1431
+ (0, tsoa_1.Tags)("PrivateMessage", "Admin"),
1432
+ __param(0, (0, tsoa_1.Body)()),
1433
+ __param(1, (0, tsoa_1.Inject)())
1434
+ ], LemmyHttp.prototype, "resolvePrivateMessageReport", null);
1435
+ __decorate([
1436
+ (0, tsoa_1.Post)("/account/auth/register"),
1437
+ (0, tsoa_1.Tags)("Account"),
1438
+ __param(0, (0, tsoa_1.Body)()),
1439
+ __param(1, (0, tsoa_1.Inject)())
1440
+ ], LemmyHttp.prototype, "register", null);
1441
+ __decorate([
1442
+ (0, tsoa_1.Post)("/account/auth/login"),
1443
+ (0, tsoa_1.Tags)("Account"),
1444
+ __param(0, (0, tsoa_1.Body)()),
1445
+ __param(1, (0, tsoa_1.Inject)())
1446
+ ], LemmyHttp.prototype, "login", null);
1447
+ __decorate([
1448
+ (0, tsoa_1.Security)("bearerAuth"),
1449
+ (0, tsoa_1.Post)("/account/auth/logout"),
1450
+ (0, tsoa_1.Tags)("Account"),
1451
+ __param(0, (0, tsoa_1.Inject)())
1452
+ ], LemmyHttp.prototype, "logout", null);
1453
+ __decorate([
1454
+ (0, tsoa_1.Security)("bearerAuth"),
1455
+ (0, tsoa_1.Security)({}),
1456
+ (0, tsoa_1.Get)("/person"),
1457
+ (0, tsoa_1.Tags)("Person"),
1458
+ __param(0, (0, tsoa_1.Queries)()),
1459
+ __param(1, (0, tsoa_1.Inject)())
1460
+ ], LemmyHttp.prototype, "getPersonDetails", null);
1461
+ __decorate([
1462
+ (0, tsoa_1.Security)("bearerAuth"),
1463
+ (0, tsoa_1.Security)({}),
1464
+ (0, tsoa_1.Get)("/person/content"),
1465
+ (0, tsoa_1.Tags)("Person"),
1466
+ __param(0, (0, tsoa_1.Queries)()),
1467
+ __param(1, (0, tsoa_1.Inject)())
1468
+ ], LemmyHttp.prototype, "listPersonContent", null);
1469
+ __decorate([
1470
+ (0, tsoa_1.Security)("bearerAuth"),
1471
+ (0, tsoa_1.Post)("/account/mention/comment/mark_as_read"),
1472
+ (0, tsoa_1.Tags)("Account", "Person"),
1473
+ __param(0, (0, tsoa_1.Body)()),
1474
+ __param(1, (0, tsoa_1.Inject)())
1475
+ ], LemmyHttp.prototype, "markCommentMentionAsRead", null);
1476
+ __decorate([
1477
+ (0, tsoa_1.Security)("bearerAuth"),
1478
+ (0, tsoa_1.Post)("/account/mention/post/mark_as_read"),
1479
+ (0, tsoa_1.Tags)("Account", "Post"),
1480
+ __param(0, (0, tsoa_1.Body)()),
1481
+ __param(1, (0, tsoa_1.Inject)())
1482
+ ], LemmyHttp.prototype, "markPostMentionAsRead", null);
1483
+ __decorate([
1484
+ (0, tsoa_1.Security)("bearerAuth"),
1485
+ (0, tsoa_1.Post)("/admin/ban"),
1486
+ (0, tsoa_1.Tags)("Admin"),
1487
+ __param(0, (0, tsoa_1.Body)()),
1488
+ __param(1, (0, tsoa_1.Inject)())
1489
+ ], LemmyHttp.prototype, "banPerson", null);
1490
+ __decorate([
1491
+ (0, tsoa_1.Security)("bearerAuth"),
1492
+ (0, tsoa_1.Get)("/admin/banned"),
1493
+ (0, tsoa_1.Tags)("Admin", "Miscellaneous"),
1494
+ __param(0, (0, tsoa_1.Inject)())
1495
+ ], LemmyHttp.prototype, "getBannedPersons", null);
1496
+ __decorate([
1497
+ (0, tsoa_1.Security)("bearerAuth"),
1498
+ (0, tsoa_1.Post)("/account/block/person"),
1499
+ (0, tsoa_1.Tags)("Account"),
1500
+ __param(0, (0, tsoa_1.Body)()),
1501
+ __param(1, (0, tsoa_1.Inject)())
1502
+ ], LemmyHttp.prototype, "blockPerson", null);
1503
+ __decorate([
1504
+ (0, tsoa_1.Get)("/account/auth/get_captcha"),
1505
+ (0, tsoa_1.Tags)("Account"),
1506
+ __param(0, (0, tsoa_1.Inject)())
1507
+ ], LemmyHttp.prototype, "getCaptcha", null);
1508
+ __decorate([
1509
+ (0, tsoa_1.Security)("bearerAuth"),
1510
+ (0, tsoa_1.Post)("/account/delete"),
1511
+ (0, tsoa_1.Tags)("Account"),
1512
+ __param(0, (0, tsoa_1.Body)()),
1513
+ __param(1, (0, tsoa_1.Inject)())
1514
+ ], LemmyHttp.prototype, "deleteAccount", null);
1515
+ __decorate([
1516
+ (0, tsoa_1.Security)("bearerAuth"),
1517
+ (0, tsoa_1.Post)("/account/auth/password_reset"),
1518
+ (0, tsoa_1.Tags)("Account"),
1519
+ __param(0, (0, tsoa_1.Body)()),
1520
+ __param(1, (0, tsoa_1.Inject)())
1521
+ ], LemmyHttp.prototype, "passwordReset", null);
1522
+ __decorate([
1523
+ (0, tsoa_1.Security)("bearerAuth"),
1524
+ (0, tsoa_1.Post)("/account/auth/password_change"),
1525
+ (0, tsoa_1.Tags)("Account"),
1526
+ __param(0, (0, tsoa_1.Body)()),
1527
+ __param(1, (0, tsoa_1.Inject)())
1528
+ ], LemmyHttp.prototype, "passwordChangeAfterReset", null);
1529
+ __decorate([
1530
+ (0, tsoa_1.Security)("bearerAuth"),
1531
+ (0, tsoa_1.Post)("/account/mark_as_read/all"),
1532
+ (0, tsoa_1.Tags)("Account"),
1533
+ __param(0, (0, tsoa_1.Inject)())
1534
+ ], LemmyHttp.prototype, "markAllNotificationsAsRead", null);
1535
+ __decorate([
1536
+ (0, tsoa_1.Security)("bearerAuth"),
1537
+ (0, tsoa_1.Put)("/account/settings/save"),
1538
+ (0, tsoa_1.Tags)("Account"),
1539
+ __param(0, (0, tsoa_1.Body)()),
1540
+ __param(1, (0, tsoa_1.Inject)())
1541
+ ], LemmyHttp.prototype, "saveUserSettings", null);
1542
+ __decorate([
1543
+ (0, tsoa_1.Security)("bearerAuth"),
1544
+ (0, tsoa_1.Put)("/account/auth/change_password"),
1545
+ (0, tsoa_1.Tags)("Account"),
1546
+ __param(0, (0, tsoa_1.Body)()),
1547
+ __param(1, (0, tsoa_1.Inject)())
1548
+ ], LemmyHttp.prototype, "changePassword", null);
1549
+ __decorate([
1550
+ (0, tsoa_1.Security)("bearerAuth"),
1551
+ (0, tsoa_1.Get)("/account/report_count"),
1552
+ (0, tsoa_1.Tags)("Account"),
1553
+ __param(0, (0, tsoa_1.Queries)()),
1554
+ __param(1, (0, tsoa_1.Inject)())
1555
+ ], LemmyHttp.prototype, "getReportCount", null);
1556
+ __decorate([
1557
+ (0, tsoa_1.Security)("bearerAuth"),
1558
+ (0, tsoa_1.Get)("/account/unread_count"),
1559
+ (0, tsoa_1.Tags)("Account"),
1560
+ __param(0, (0, tsoa_1.Inject)())
1561
+ ], LemmyHttp.prototype, "getUnreadCount", null);
1562
+ __decorate([
1563
+ (0, tsoa_1.Security)("bearerAuth"),
1564
+ (0, tsoa_1.Get)("/account/inbox"),
1565
+ (0, tsoa_1.Tags)("Account"),
1566
+ __param(0, (0, tsoa_1.Queries)()),
1567
+ __param(1, (0, tsoa_1.Inject)())
1568
+ ], LemmyHttp.prototype, "listInbox", null);
1569
+ __decorate([
1570
+ (0, tsoa_1.Post)("/account/auth/verify_email"),
1571
+ (0, tsoa_1.Tags)("Account"),
1572
+ __param(0, (0, tsoa_1.Body)()),
1573
+ __param(1, (0, tsoa_1.Inject)())
1574
+ ], LemmyHttp.prototype, "verifyEmail", null);
1575
+ __decorate([
1576
+ (0, tsoa_1.Security)("bearerAuth"),
1577
+ (0, tsoa_1.Get)("/account/auth/saved"),
1578
+ (0, tsoa_1.Tags)("Account"),
1579
+ __param(0, (0, tsoa_1.Queries)()),
1580
+ __param(1, (0, tsoa_1.Inject)())
1581
+ ], LemmyHttp.prototype, "listPersonSaved", null);
1582
+ __decorate([
1583
+ (0, tsoa_1.Security)("bearerAuth"),
1584
+ (0, tsoa_1.Post)("/admin/add"),
1585
+ (0, tsoa_1.Tags)("Admin"),
1586
+ __param(0, (0, tsoa_1.Body)()),
1587
+ __param(1, (0, tsoa_1.Inject)())
1588
+ ], LemmyHttp.prototype, "addAdmin", null);
1589
+ __decorate([
1590
+ (0, tsoa_1.Security)("bearerAuth"),
1591
+ (0, tsoa_1.Get)("/admin/registration_application/count"),
1592
+ (0, tsoa_1.Tags)("Admin"),
1593
+ __param(0, (0, tsoa_1.Inject)())
1594
+ ], LemmyHttp.prototype, "getUnreadRegistrationApplicationCount", null);
1595
+ __decorate([
1596
+ (0, tsoa_1.Security)("bearerAuth"),
1597
+ (0, tsoa_1.Get)("/admin/registration_application/list"),
1598
+ (0, tsoa_1.Tags)("Admin"),
1599
+ __param(0, (0, tsoa_1.Queries)()),
1600
+ __param(1, (0, tsoa_1.Inject)())
1601
+ ], LemmyHttp.prototype, "listRegistrationApplications", null);
1602
+ __decorate([
1603
+ (0, tsoa_1.Security)("bearerAuth"),
1604
+ (0, tsoa_1.Put)("/admin/registration_application/approve"),
1605
+ (0, tsoa_1.Tags)("Admin"),
1606
+ __param(0, (0, tsoa_1.Body)()),
1607
+ __param(1, (0, tsoa_1.Inject)())
1608
+ ], LemmyHttp.prototype, "approveRegistrationApplication", null);
1609
+ __decorate([
1610
+ (0, tsoa_1.Security)("bearerAuth"),
1611
+ (0, tsoa_1.Get)("/admin/registration_application"),
1612
+ (0, tsoa_1.Tags)("Admin"),
1613
+ __param(0, (0, tsoa_1.Queries)()),
1614
+ __param(1, (0, tsoa_1.Inject)())
1615
+ ], LemmyHttp.prototype, "getRegistrationApplication", null);
1616
+ __decorate([
1617
+ (0, tsoa_1.Security)("bearerAuth"),
1618
+ (0, tsoa_1.Post)("/admin/purge/person"),
1619
+ (0, tsoa_1.Tags)("Admin"),
1620
+ __param(0, (0, tsoa_1.Body)()),
1621
+ __param(1, (0, tsoa_1.Inject)())
1622
+ ], LemmyHttp.prototype, "purgePerson", null);
1623
+ __decorate([
1624
+ (0, tsoa_1.Security)("bearerAuth"),
1625
+ (0, tsoa_1.Post)("/admin/purge/community"),
1626
+ (0, tsoa_1.Tags)("Admin"),
1627
+ __param(0, (0, tsoa_1.Body)()),
1628
+ __param(1, (0, tsoa_1.Inject)())
1629
+ ], LemmyHttp.prototype, "purgeCommunity", null);
1630
+ __decorate([
1631
+ (0, tsoa_1.Security)("bearerAuth"),
1632
+ (0, tsoa_1.Post)("/admin/purge/post"),
1633
+ (0, tsoa_1.Tags)("Admin"),
1634
+ __param(0, (0, tsoa_1.Body)()),
1635
+ __param(1, (0, tsoa_1.Inject)())
1636
+ ], LemmyHttp.prototype, "purgePost", null);
1637
+ __decorate([
1638
+ (0, tsoa_1.Security)("bearerAuth"),
1639
+ (0, tsoa_1.Post)("/admin/purge/comment"),
1640
+ (0, tsoa_1.Tags)("Admin"),
1641
+ __param(0, (0, tsoa_1.Body)()),
1642
+ __param(1, (0, tsoa_1.Inject)())
1643
+ ], LemmyHttp.prototype, "purgeComment", null);
1644
+ __decorate([
1645
+ (0, tsoa_1.Security)("bearerAuth"),
1646
+ (0, tsoa_1.Post)("/custom_emoji"),
1647
+ (0, tsoa_1.Tags)("CustomEmoji"),
1648
+ __param(0, (0, tsoa_1.Body)()),
1649
+ __param(1, (0, tsoa_1.Inject)())
1650
+ ], LemmyHttp.prototype, "createCustomEmoji", null);
1651
+ __decorate([
1652
+ (0, tsoa_1.Security)("bearerAuth"),
1653
+ (0, tsoa_1.Put)("/custom_emoji"),
1654
+ (0, tsoa_1.Tags)("CustomEmoji"),
1655
+ __param(0, (0, tsoa_1.Body)()),
1656
+ __param(1, (0, tsoa_1.Inject)())
1657
+ ], LemmyHttp.prototype, "editCustomEmoji", null);
1658
+ __decorate([
1659
+ (0, tsoa_1.Security)("bearerAuth"),
1660
+ (0, tsoa_1.Post)("/custom_emoji/delete"),
1661
+ (0, tsoa_1.Tags)("CustomEmoji"),
1662
+ __param(0, (0, tsoa_1.Body)()),
1663
+ __param(1, (0, tsoa_1.Inject)())
1664
+ ], LemmyHttp.prototype, "deleteCustomEmoji", null);
1665
+ __decorate([
1666
+ (0, tsoa_1.Security)("bearerAuth"),
1667
+ (0, tsoa_1.Security)({}),
1668
+ (0, tsoa_1.Get)("/custom_emoji/list"),
1669
+ (0, tsoa_1.Tags)("CustomEmoji"),
1670
+ __param(0, (0, tsoa_1.Queries)()),
1671
+ __param(1, (0, tsoa_1.Inject)())
1672
+ ], LemmyHttp.prototype, "listCustomEmojis", null);
1673
+ __decorate([
1674
+ (0, tsoa_1.Security)("bearerAuth"),
1675
+ (0, tsoa_1.Post)("/admin/tagline"),
1676
+ (0, tsoa_1.Tags)("Admin", "Tagline"),
1677
+ __param(0, (0, tsoa_1.Body)()),
1678
+ __param(1, (0, tsoa_1.Inject)())
1679
+ ], LemmyHttp.prototype, "createTagline", null);
1680
+ __decorate([
1681
+ (0, tsoa_1.Security)("bearerAuth"),
1682
+ (0, tsoa_1.Put)("/admin/tagline"),
1683
+ (0, tsoa_1.Tags)("Admin", "Tagline"),
1684
+ __param(0, (0, tsoa_1.Body)()),
1685
+ __param(1, (0, tsoa_1.Inject)())
1686
+ ], LemmyHttp.prototype, "editTagline", null);
1687
+ __decorate([
1688
+ (0, tsoa_1.Security)("bearerAuth"),
1689
+ (0, tsoa_1.Post)("/admin/tagline/delete"),
1690
+ (0, tsoa_1.Tags)("Admin", "Tagline"),
1691
+ __param(0, (0, tsoa_1.Body)()),
1692
+ __param(1, (0, tsoa_1.Inject)())
1693
+ ], LemmyHttp.prototype, "deleteTagline", null);
1694
+ __decorate([
1695
+ (0, tsoa_1.Security)("bearerAuth"),
1696
+ (0, tsoa_1.Security)({}),
1697
+ (0, tsoa_1.Get)("/admin/tagline/list"),
1698
+ (0, tsoa_1.Tags)("Admin", "Tagline"),
1699
+ __param(0, (0, tsoa_1.Queries)()),
1700
+ __param(1, (0, tsoa_1.Inject)())
1701
+ ], LemmyHttp.prototype, "listTaglines", null);
1702
+ __decorate([
1703
+ (0, tsoa_1.Security)("bearerAuth"),
1704
+ (0, tsoa_1.Post)("/oauth_provider"),
1705
+ (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1706
+ __param(0, (0, tsoa_1.Body)()),
1707
+ __param(1, (0, tsoa_1.Inject)())
1708
+ ], LemmyHttp.prototype, "createOAuthProvider", null);
1709
+ __decorate([
1710
+ (0, tsoa_1.Security)("bearerAuth"),
1711
+ (0, tsoa_1.Put)("/oauth_provider"),
1712
+ (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1713
+ __param(0, (0, tsoa_1.Body)()),
1714
+ __param(1, (0, tsoa_1.Inject)())
1715
+ ], LemmyHttp.prototype, "editOAuthProvider", null);
1716
+ __decorate([
1717
+ (0, tsoa_1.Security)("bearerAuth"),
1718
+ (0, tsoa_1.Post)("/oauth_provider/delete"),
1719
+ (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1720
+ __param(0, (0, tsoa_1.Body)()),
1721
+ __param(1, (0, tsoa_1.Inject)())
1722
+ ], LemmyHttp.prototype, "deleteOAuthProvider", null);
1723
+ __decorate([
1724
+ (0, tsoa_1.Security)("bearerAuth"),
1725
+ (0, tsoa_1.Post)("/oauth/authenticate"),
1726
+ (0, tsoa_1.Tags)("Miscellaneous", "OAuth"),
1727
+ __param(0, (0, tsoa_1.Body)()),
1728
+ __param(1, (0, tsoa_1.Inject)())
1729
+ ], LemmyHttp.prototype, "authenticateWithOAuth", null);
1730
+ __decorate([
1731
+ (0, tsoa_1.Get)("/federated_instances"),
1732
+ (0, tsoa_1.Tags)("Miscellaneous"),
1733
+ __param(0, (0, tsoa_1.Inject)())
1734
+ ], LemmyHttp.prototype, "getFederatedInstances", null);
1735
+ __decorate([
1736
+ (0, tsoa_1.Security)("bearerAuth"),
1737
+ (0, tsoa_1.Get)("/report/list"),
1738
+ (0, tsoa_1.Tags)("Admin"),
1739
+ __param(0, (0, tsoa_1.Queries)()),
1740
+ __param(1, (0, tsoa_1.Inject)())
1741
+ ], LemmyHttp.prototype, "listReports", null);
1742
+ __decorate([
1743
+ (0, tsoa_1.Security)("bearerAuth"),
1744
+ (0, tsoa_1.Post)("/account/block/instance"),
1745
+ (0, tsoa_1.Tags)("Account"),
1746
+ __param(0, (0, tsoa_1.Body)()),
1747
+ __param(1, (0, tsoa_1.Inject)())
1748
+ ], LemmyHttp.prototype, "userBlockInstance", null);
1749
+ __decorate([
1750
+ (0, tsoa_1.Security)("bearerAuth"),
1751
+ (0, tsoa_1.Post)("/admin/instance/block"),
1752
+ (0, tsoa_1.Tags)("Admin"),
1753
+ __param(0, (0, tsoa_1.Body)()),
1754
+ __param(1, (0, tsoa_1.Inject)())
1755
+ ], LemmyHttp.prototype, "adminBlockInstance", null);
1756
+ __decorate([
1757
+ (0, tsoa_1.Security)("bearerAuth"),
1758
+ (0, tsoa_1.Post)("/admin/instance/allow"),
1759
+ (0, tsoa_1.Tags)("Admin"),
1760
+ __param(0, (0, tsoa_1.Body)()),
1761
+ __param(1, (0, tsoa_1.Inject)())
1762
+ ], LemmyHttp.prototype, "adminAllowInstance", null);
1763
+ __decorate([
1764
+ (0, tsoa_1.Security)("bearerAuth"),
1765
+ (0, tsoa_1.Post)("/account/avatar"),
1766
+ (0, tsoa_1.Tags)("Account", "Media"),
1767
+ __param(0, (0, tsoa_1.UploadedFile)()),
1768
+ __param(1, (0, tsoa_1.Inject)())
1769
+ ], LemmyHttp.prototype, "uploadUserAvatar", null);
1770
+ __decorate([
1771
+ (0, tsoa_1.Security)("bearerAuth"),
1772
+ (0, tsoa_1.Delete)("/account/avatar"),
1773
+ (0, tsoa_1.Tags)("Account", "Media"),
1774
+ __param(0, (0, tsoa_1.Inject)())
1775
+ ], LemmyHttp.prototype, "deleteUserAvatar", null);
1776
+ __decorate([
1777
+ (0, tsoa_1.Security)("bearerAuth"),
1778
+ (0, tsoa_1.Post)("/account/banner"),
1779
+ (0, tsoa_1.Tags)("Account", "Media"),
1780
+ __param(0, (0, tsoa_1.UploadedFile)()),
1781
+ __param(1, (0, tsoa_1.Inject)())
1782
+ ], LemmyHttp.prototype, "uploadUserBanner", null);
1783
+ __decorate([
1784
+ (0, tsoa_1.Security)("bearerAuth"),
1785
+ (0, tsoa_1.Delete)("/account/banner"),
1786
+ (0, tsoa_1.Tags)("Account", "Media"),
1787
+ __param(0, (0, tsoa_1.Inject)())
1788
+ ], LemmyHttp.prototype, "deleteUserBanner", null);
1789
+ __decorate([
1790
+ (0, tsoa_1.Security)("bearerAuth"),
1791
+ (0, tsoa_1.Post)("/community/icon"),
1792
+ (0, tsoa_1.Tags)("Community", "Media"),
1793
+ __param(0, (0, tsoa_1.UploadedFile)()),
1794
+ __param(1, (0, tsoa_1.Inject)())
1795
+ ], LemmyHttp.prototype, "uploadCommunityIcon", null);
1796
+ __decorate([
1797
+ (0, tsoa_1.Security)("bearerAuth"),
1798
+ (0, tsoa_1.Delete)("/community/icon"),
1799
+ (0, tsoa_1.Tags)("Community", "Media"),
1800
+ __param(0, (0, tsoa_1.Inject)())
1801
+ ], LemmyHttp.prototype, "deleteCommunityIcon", null);
1802
+ __decorate([
1803
+ (0, tsoa_1.Security)("bearerAuth"),
1804
+ (0, tsoa_1.Post)("/community/banner"),
1805
+ (0, tsoa_1.Tags)("Community", "Media"),
1806
+ __param(0, (0, tsoa_1.UploadedFile)()),
1807
+ __param(1, (0, tsoa_1.Inject)())
1808
+ ], LemmyHttp.prototype, "uploadCommunityBanner", null);
1809
+ __decorate([
1810
+ (0, tsoa_1.Security)("bearerAuth"),
1811
+ (0, tsoa_1.Delete)("/community/banner"),
1812
+ (0, tsoa_1.Tags)("Community", "Media"),
1813
+ __param(0, (0, tsoa_1.Inject)())
1814
+ ], LemmyHttp.prototype, "deleteCommunityBanner", null);
1815
+ __decorate([
1816
+ (0, tsoa_1.Security)("bearerAuth"),
1817
+ (0, tsoa_1.Post)("/site/icon"),
1818
+ (0, tsoa_1.Tags)("Site", "Media"),
1819
+ __param(0, (0, tsoa_1.UploadedFile)()),
1820
+ __param(1, (0, tsoa_1.Inject)())
1821
+ ], LemmyHttp.prototype, "uploadSiteIcon", null);
1822
+ __decorate([
1823
+ (0, tsoa_1.Security)("bearerAuth"),
1824
+ (0, tsoa_1.Delete)("/site/icon"),
1825
+ (0, tsoa_1.Tags)("Site", "Media"),
1826
+ __param(0, (0, tsoa_1.Inject)())
1827
+ ], LemmyHttp.prototype, "deleteSiteIcon", null);
1828
+ __decorate([
1829
+ (0, tsoa_1.Security)("bearerAuth"),
1830
+ (0, tsoa_1.Post)("/site/banner"),
1831
+ (0, tsoa_1.Tags)("Site", "Media"),
1832
+ __param(0, (0, tsoa_1.UploadedFile)()),
1833
+ __param(1, (0, tsoa_1.Inject)())
1834
+ ], LemmyHttp.prototype, "uploadSiteBanner", null);
1835
+ __decorate([
1836
+ (0, tsoa_1.Security)("bearerAuth"),
1837
+ (0, tsoa_1.Delete)("/site/banner"),
1838
+ (0, tsoa_1.Tags)("Site", "Media"),
1839
+ __param(0, (0, tsoa_1.Inject)())
1840
+ ], LemmyHttp.prototype, "deleteSiteBanner", null);
1841
+ __decorate([
1842
+ (0, tsoa_1.Security)("bearerAuth"),
1843
+ (0, tsoa_1.Post)("/image"),
1844
+ (0, tsoa_1.Tags)("Media"),
1845
+ __param(0, (0, tsoa_1.UploadedFile)()),
1846
+ __param(1, (0, tsoa_1.Inject)())
1847
+ ], LemmyHttp.prototype, "uploadImage", null);
1848
+ __decorate([
1849
+ (0, tsoa_1.Security)("bearerAuth"),
1850
+ (0, tsoa_1.Delete)("/image"),
1851
+ (0, tsoa_1.Tags)("Media"),
1852
+ __param(0, (0, tsoa_1.Queries)()),
1853
+ __param(1, (0, tsoa_1.Inject)())
1854
+ ], LemmyHttp.prototype, "deleteImage", null);
1855
+ __decorate([
1856
+ (0, tsoa_1.Get)("image/health"),
1857
+ (0, tsoa_1.Tags)("Media"),
1858
+ __param(0, (0, tsoa_1.Inject)())
1859
+ ], LemmyHttp.prototype, "imageHealth", null);
1860
+ exports.LemmyHttp = LemmyHttp = __decorate([
1861
+ (0, tsoa_1.Route)("api/v4")
1862
+ ], LemmyHttp);
1035
1863
  function encodeGetParams(p) {
1036
1864
  return Object.entries(p)
1037
1865
  .filter(kv => kv[1] !== undefined && kv[1] !== null)